1 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
3 Incorporate ARI web page generator into GDB sources.
4 * contrib/ari/create-web-ari-in-src.sh: New file.
5 * contrib/ari/gdb_ari.sh: New file.
6 * contrib/ari/gdb_find.sh: New file.
7 * contrib/ari/update-web-ari.sh: New file.
9 2012-10-31 Tom Tromey <tromey@redhat.com>
12 * gdbarch.sh: Remove references to gdbarch_swap.
13 * corelow.c (core_open): Remove obsolete comment.
15 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
18 * c-typeprint.c (c_print_type): Don't print a space for vector
19 types, this is handled within the suffix.
20 (c_type_print_varspec_suffix): Add a space to vector suffix.
22 2012-10-26 Pedro Alves <palves@redhat.com>
24 * amd64-tdep.c (amd64_relocate_instruction): Use
25 store_unsigned_integer instead of memcpy.
26 * i386-tdep.c (i386_relocate_instruction): Ditto.
28 2012-10-26 Pedro Alves <palves@redhat.com>
30 * infrun.c (handle_inferior_event): Merge handling of
31 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
34 2012-10-26 Pedro Alves <palves@redhat.com>
36 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
39 2012-10-26 Pedro Alves <palves@redhat.com>
41 * target.c (target_waitstatus_to_string): Handle
42 TARGET_WAITKIND_VFORK_DONE.
44 2012-10-26 Pedro Alves <palves@redhat.com>
46 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
47 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
49 2012-10-24 Tristan Gingold <gingold@adacore.com>
51 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
54 2012-10-24 Joel Brobecker <brobecker@adacore.com>
56 * ravenscar-thread.c (ravenscar_wait): Only update the list
57 of threads and inferior_ptid if the inferior is still alive.
59 2012-10-24 Joel Brobecker <brobecker@adacore.com>
61 * ada-lang.c (is_known_support_routine): Use lbasename when
62 matching the symtab's filename against
63 known_runtime_file_name_patterns.
65 2012-10-24 Joel Brobecker <brobecker@adacore.com>
67 * ada-lang.c (ada_same_array_size_p): New function.
68 (ada_promote_array_of_integrals): New function.
69 (coerce_for_assign): Add handling of arrays where the elements
70 are integrals of a smaller size than the size of the target
73 2012-10-24 Joel Brobecker <brobecker@adacore.com>
75 * doublest.c (convert_doublest_to_floatformat): Fix comparison
76 against maximum exponent value.
78 2012-10-24 Joel Brobecker <brobecker@adacore.com>
80 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
83 2012-10-24 Joel Brobecker <brobecker@adacore.com>
85 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
86 strip typedef layer when computing the fixed type's field type,
87 only when computing its size.
89 2012-10-24 Mark Kettenis <kettenis@gnu.org>
92 * i386-tdep.c (i386_return_value): Handle complex double and long
95 2012-10-24 Joel Brobecker <brobecker@adacore.com>
97 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
98 New local variable args_len.
99 Quote the name of the executable when computing the command line.
101 2012-10-23 Mark Kettenis <kettenis@gnu.org>
106 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
108 * amd64-tdep.c (amd64_classify): Classify complex types.
109 (amd64_return_value): Handle the COMPLEX_X87 class.
111 2012-10-23 Joel Brobecker <brobecker@adacore.com>
113 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
114 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
116 2012-10-23 Joel Brobecker <brobecker@adacore.com>
118 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
120 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
121 to amd64_windows_auto_wide_charset.
123 2012-10-23 Yao Qi <yao@codesourcery.com>
125 * event-top.c (mark_async_signal_handler_wrapper): Remove.
126 * event-top.h: Remove its declaration.
127 (async_request_quit): Call mark_async_signal_handler instead of
128 mark_async_signal_handler_wrapper.
129 (async_do_nothing, async_disconnect): Likewise.
130 (async_stop_sig): Likewise.
131 * remote.c (handle_remote_sigint): Likewise.
132 (handle_remote_sigint_twice): Likewise.
134 2012-10-23 Yao Qi <yao@codesourcery.com>
136 * event-top.c (sigint_token, sighup_token): Replace 'void *'
137 with 'static struct async_signal_handler *'.
138 (sighup_token, sigquit_token, sigstp_token): Likewise.
140 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
142 * gdbarch.sh (function_list): Use 'pstring' when printing
143 a variable which could return NULL.
144 * gdbarch.c: Regenerate.
146 2012-10-10 Joel Brobecker <brobecker@adacore.com>
147 Tom Tromey <tromey@redhat.com>
149 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
150 inneffective if condition by gdb assertion. Add function
153 2012-10-19 Joel Brobecker <brobecker@adacore.com>
155 * parser-defs.h (struct exp_descriptor): Document constraint
156 on return value for "op_name" callbacks.
158 2012-10-18 Tom Tromey <tromey@redhat.com>
160 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
161 * symtab.c (iterate_over_some_symtabs): Constify.
162 * source.h (symtab_to_fullname): Return 'const char *'.
163 * source.c (symtab_to_fullname): Return 'const char *'.
164 * python/py-symtab.c (stpy_fullname): Constify.
165 * cli/cli-cmds.c (edit_command): Constify.
166 * breakpoint.c (print_breakpoint_location)
167 (update_static_tracepoint): Constify.
169 2012-10-18 Tom Tromey <tromey@redhat.com>
171 * breakpoint.c (compare_breakpoints): Fix comparison.
173 2012-10-18 Tom Tromey <tromey@redhat.com>
175 * valprint.c (generic_emit_char, generic_printstr): Pass size of
176 gdb_wchar_t to convert_between_encodings.
178 2012-10-17 Yao Qi <yao@codesourcery.com>
180 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
181 more parameter 'inferior'.
182 * corefile.c (write_memory_with_notification): Caller update.
184 * mi/mi-cmd-var.c: Include "mi-main.h".
185 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
186 to 1 and restore it later.
187 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
188 and "data-write-memory-bytes.
189 * mi/mi-interp.c: Include objfiles.h.
190 (mi_interpreter_init): Call observer_attach_memory_changed.
191 (mi_memory_changed): New.
192 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
195 * NEWS: Mention new MI notification "memory-changed".
197 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
199 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
201 2012-10-15 Doug Evans <dje@google.com>
203 New option -nh: inhibit loading of ~/.gdbinit.
205 * main.c (captured_main): Recognize and process -nh.
206 (print_gdb_help): Mention -nh.
207 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
209 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
213 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
215 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
216 nor pc_regnum_from_eax.
217 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
218 nor pc_regnum_from_eax.
220 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
222 Fix entry values resolving in inlined frames.
223 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
224 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
227 2012-10-15 Joel Brobecker <brobecker@adacore.com>
229 * configure.ac: Build with -DMS_WIN64 if building with Python
230 enabled using GCC on amd64-windows.
231 * configure: Regenerate.
233 2012-10-15 Tom Tromey <tromey@redhat.com>
236 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
239 2012-10-15 Tom Tromey <tromey@redhat.com>
242 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
244 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
246 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
247 reset thread numbering back to 1.
249 2012-10-11 Doug Evans <dje@google.com>
251 PR breakpoints/14643.
252 * linespec.c (struct ls_parser): New member keyword_ok.
253 (linespec_lexer_lex_string): Add comment.
254 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
256 (parse_linespec): Set keyword_ok.
258 2012-10-10 Doug Evans <dje@google.com>
260 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
261 "0x" prefix on address in log message.
263 * dwarf2read.c (read_1_byte): Add const to buf parameter.
264 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
265 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
266 (lookup_dwo_file): Add const to dwo_name parameter.
267 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
269 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
271 Fix crash during stepping on ppc32.
272 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
275 2012-10-03 Doug Evans <dje@google.com>
278 * buildsym.c (buildsym_init): Reset using_directives to NULL.
280 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
282 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
283 output and use uint32_t not long to ensure 4 byte size.
285 2012-10-02 Joel Brobecker <brobecker@adacore.com>
287 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
290 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
292 * target.c (simple_search_memory): Include access length in
295 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
296 Edjunior Machado <emachado@linux.vnet.ibm.com>
299 * solib.c (solib_find): Prevent GDB from loading native libraries when
300 debugging a cross-target corefile.
302 2012-09-28 selven <pcthegreat@gmail.com>
304 Make definition match declaration.
306 * regcache.c (regcache_register_status): Change return type to
307 enum register_status.
309 2012-09-28 Yao Qi <yao@codesourcery.com>
311 * mi/mi-main.c (mi_cmd_data_write_memory): Call
312 write_memory_with_notification instead of write_memory.
313 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
314 instead of target_write_memory.
316 2012-09-28 Yao Qi <yao@codesourcery.com>
318 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
319 when the length of content is not an even number.
321 2012-09-27 Tom Tromey <tromey@redhat.com>
323 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
324 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
326 2012-09-27 Joel Brobecker <brobecker@adacore.com>
328 * sol-thread.c (sol_thread_fetch_registers)
329 (sol_thread_store_registers): Delete commented out code.
331 2012-09-27 Joel Brobecker <brobecker@adacore.com>
333 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
334 Move these functions to sparc-sol-thread.c.
335 * sparc-sol-thread.c: New file.
336 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
337 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
339 * configure: Regenerate.
341 2012-09-27 Joel Brobecker <brobecker@adacore.com>
343 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
344 Remove commented-out code.
346 2012-09-27 Joel Brobecker <brobecker@adacore.com>
348 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
349 Enable this code for sparc hosts only.
351 2012-09-27 Joel Brobecker <brobecker@adacore.com>
353 * procfs.h (procfs_find_LDT_entry): Add declaration.
354 * sol-thread.c (ps_lgetLDT): Delete local declaration of
355 function procfs_find_LDT_entry.
357 2012-09-27 Joel Brobecker <brobecker@adacore.com>
359 * procfs.c (proc_get_LDT_entry): Make static.
361 2012-09-27 Joel Brobecker <brobecker@adacore.com>
363 * procfs.c (proc_find_memory_regions): Fix declaration.
365 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
367 * amd64-tdep.c (amd64_return_value): Revert previous change
368 that used TYPE_LENGTH directly.
369 * bfin-tdep.c (bfin_extract_return_value): Likewise.
370 (bfin_store_return_value): Likewise.
371 * cris-tdep.c (cris_store_return_value): Likewise.
372 (cris_extract_return_value): Likewise.
373 * h8300-tdep.c (h8300_extract_return_value): Likewise.
374 * hppa-tdep.c (hppa64_return_value): Likewise.
375 * lm32-tdep.c (lm32_store_return_value): Likewise.
376 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
377 * spu-tdep.c (spu_value_from_register): Likewise.
378 * vax-tdep.c (vax_return_value): Likewise.
380 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
382 * gdbtypes.c (lookup_array_range_type): Expand parameters
383 LOW_BOUND and HIGH_BOUND to LONGEST.
384 (lookup_string_range_type): Likewise.
385 * gdbtypes.h (lookup_array_range_type): Likewise.
386 (lookup_string_range_type): Likewise.
387 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
388 Expand HIGHBOUND to ssize_t.
389 (value_string): Likewise.
390 * value.h (value_cstring): Expand parameter LEN to ssize_t.
391 (value_string): Likewise.
393 2012-09-27 Yao Qi <yao@codesourcery.com>
396 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
397 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
400 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
402 * procfs.c: Add gdb_bfd header.
403 * rs6000-nat.c: Likewise.
404 * solib-pa64.c: Likewise.
405 * spu-linux-nat.c: Likewise.
406 * windows-nat.c: Likewise.
408 2012-09-26 Tom Tromey <tromey@redhat.com>
410 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
412 2012-09-26 Tom Tromey <tromey@redhat.com>
414 * dwarf2read.c (mark_common_block_symbol_computed): New function.
415 (read_common_block): Handle child DIEs with
416 DW_AT_data_member_location.
417 (new_symbol_full): Add special case for common blocks.
419 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
420 Tom Tromey <tromey@redhat.com>
422 * dwarf2read.c (read_common_block): Rewrite.
423 (new_symbol_full): Handle DW_TAG_common_block.
424 * f-lang.c (head_common_list, find_common_for_function):
426 * f-lang.h (struct common_entry, struct saved_f77_common,
427 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
428 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
429 BLANK_COMMON_NAME_LOCAL): Remove.
430 (struct common_block): New.
431 * f-valprint.c (list_all_visible_commons): Remove.
432 (info_common_command_for_block): New function.
433 (info_common_command): Use it.
434 * stack.c (iterate_over_block_locals): Special case for
436 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
438 (struct general_symbol_info) <value.common_block>: New field.
439 (SYMBOL_VALUE_COMMON_BLOCK): New define.
441 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
442 Tom Tromey <tromey@redhat.com>
444 * f-lang.c (allocate_saved_bf_node,
445 allocate_saved_function_node, allocate_saved_f77_common_node,
446 allocate_common_entry_node, tail_common_list, current_common,
447 saved_bf_list, saved_bf_list_end, current_head_bf_list,
448 tmp_bf_ptr, add_common_block, add_common_entry,
449 find_first_common_named, patch_common_entries,
450 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
451 global_remote_debug, get_bf_for_fcn, saved_function_list,
452 saved_function_list_end, clear_function_list, struct saved_fcn,
453 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
454 SAVED_BF, SAVED_BF_PTR): Remove.
455 * f-lang.h (tail_common_list, current_common,
456 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
457 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
458 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
459 real_main_c_value): Remove.
460 * f-valprint.c (there_is_a_visible_common_named): Remove.
462 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
464 * breakpoint.c (update_global_location_list): Ignore previous
465 duplicate status of a breakpoint when starting a new scan for
466 duplicate breakpoints.
468 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
470 * arm-tdep.c (arm_skip_prologue): Extending producer check to
471 support LLVM compiler.
473 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
475 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
476 * bfin-tdep.c (bfin_extract_return_value): Likewise.
477 (bfin_store_return_value): Likewise.
478 * cris-tdep.c (cris_store_return_value): Likewise.
479 (cris_extract_return_value): Likewise.
480 * h8300-tdep.c (h8300_extract_return_value): Likewise.
481 * hppa-tdep.c (hppa64_return_value): Likewise.
482 * lm32-tdep.c (lm32_store_return_value): Likewise.
483 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
484 * spu-tdep.c (spu_value_from_register): Likewise.
485 * vax-tdep.c (vax_return_value): Likewise.
487 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
489 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
490 parameter LEN to ssize_t.
492 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
494 * ada-valprint.c (ada_val_print_1): Eliminate single-use
496 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
498 (alpha_store_return_value): Likewise.
499 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
500 (amd64_push_arguments): Likewise.
501 * ax-gdb.c (gen_trace_static_fields): Likewise.
502 (gen_traced_pop): Likewise.
503 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
504 * breakpoint.c (update_watchpoint): Likewise.
505 * findcmd.c (parse_find_args): Use local variable for type
507 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
508 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
509 (h8300_store_return_value): Likewise.
510 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
511 Use i386_darwin_arg_type_alignment directly.
512 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
513 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
514 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
515 (m68hc11_extract_return_value): Likewise.
516 * mep-tdep.c (mep_push_dummy_call): Likewise.
517 * printcmd.c (float_type_from_length): Likewise.
518 * s390-tdep.c (s390_value_from_register): Likewise.
519 * stack.c (read_frame_arg): Likewise.
520 * tracepoint.c (encode_actions_1): Likewise.
521 * valops.c (value_fetch_lazy): Use local variable for type
522 instead of length. Use TYPE_LENGTH directly.
523 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
525 2012-09-25 Joel Brobecker <brobecker@adacore.com>
527 * symtab.c (skip_prologue_sal): Fix typo in comment.
529 2012-09-25 Joel Brobecker <brobecker@adacore.com>
531 * linespec.c (create_sals_line_offset): Fix typo in comment.
533 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
535 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
536 use plongest to print the array size.
538 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
540 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
541 * p-valprint.c (pascal_type_print_base): Likewise.
543 2012-09-22 Yao Qi <yao@codesourcery.com>
545 * remote.c (remote_get_trace_status): Remove setting default
546 values of fields of 'ts'.
548 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
550 Fix internal error on canonicalization of clang types.
551 * cp-name-parser.y (operator): New comment at make_operator call for
552 new, delete, new[] and delete[].
553 (exp): Use "sizeof ". Add new comment at make_operator call.
555 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
557 Fix disassemble without parameters in tailcall frame.
558 * cli/cli-cmds.c (disassemble_current_function): Use
559 get_frame_address_in_block.
561 2012-09-21 Tom Tromey <tromey@redhat.com>
563 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
564 TYPE_CODE_UNION>: Unify, removing a goto.
566 2012-09-21 Tom Tromey <tromey@redhat.com>
568 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
570 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
572 * findvar.c (read_frame_register_value): Mark the result value as
573 optimized out if any of the input registers have been optimized out.
575 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
577 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
579 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
581 * eval.c (evaluate_subexp_standard): Eliminate single-use
584 2012-09-21 Yao Qi <yao@codesourcery.com>
586 * mi/mi-interp.c: Declare mi_record_changed.
587 (mi_interpreter_init): Call observer_attach_record_changed.
588 (mi_record_changed): New.
589 * record.c (record_open): Call observer_notify_record_changed.
590 (cmd_record_stop): Call observer_notify_record_changed.
593 2012-09-20 Tom Tromey <tromey@redhat.com>
596 * python/python.c (finalize_python): New function.
597 (_initialize_python): Make a final cleanup.
599 2012-09-19 Doug Evans <dje@google.com>
601 * buildsym.h (param_symbols): Delete, unused.
602 (context_stack): Delete member "params", unused.
603 * buildsym.c (push_context): Update.
604 * dwarf2read.c (read_func_scope): Update.
606 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
608 * sh-tdep.c (sh_register_convert_to_virtual)
609 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
610 all callers. Just do a memcpy if not the little-endian case.
612 * h8300-tdep.c (h8300_gdbarch_init): Invoke
613 set_gdbarch_double_format and set_gdbarch_long_double_format.
614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
615 set_gdbarch_double_format.
616 * sh-tdep.c (sh_gdbarch_init): Likewise.
618 * NEWS: Document the removal of SH's 'regs' command.
619 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
622 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
624 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
627 2012-09-18 Joel Brobecker <brobecker@adacore.com>
629 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
630 language when iterating over symbols.
632 2012-09-18 Yao Qi <yao@codesourcery.com>
634 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
635 (mi_interpreter_init): Call observer_attach_tsv_created and
636 observer_attach_tsv_deleted.
637 (mi_tsv_created, mi_tsv_deleted): New.
638 * tracepoint.c (delete_trace_state_variable): Call
639 observer_notify_tsv_deleted.
640 (trace_variable_command): Call observer_notify_tsv_created.
641 (delete_trace_variable_command): Call
642 observer_notify_tsv_deleted.
643 (create_tsv_from_upload): Call observer_notify_tsv_created.
646 2012-09-18 Yao Qi <yao@codesourcery.com>
648 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
649 if traceframe changed.
650 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
652 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
653 (mi_interpreter_init): Hook mi_traceframe_changed to observer
654 'traceframe_changed'.
655 (mi_traceframe_changed): New.
656 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
658 * NEWS: Mention the new MI notification.
660 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
662 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
664 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
666 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
667 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
668 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
669 Extend code also for PaX support. Convert all gdb_assert to warning
672 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
674 Implement auto-load user conveniences suggested by Doug Evans.
675 * auto-load.c: Include top.h.
676 (file_is_auto_load_safe): New variable advice_printed. Print advice.
677 (_initialize_auto_load): New variable scripts_directory_help. Mention
678 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
679 scripts-directory. Document in online help one can use also files for
680 set auto-load safe-path.
681 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
682 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
684 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
686 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
689 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
691 * m2-valprint.c (m2_print_array_contents): Eliminate variable
692 ELTLEN and use TYPE_LENGTH directly.
693 (m2_val_print): Likewise.
694 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
695 variable LEN and use TYPE_LENGTH directly.
696 (m68k_svr4_store_return_value): Likewise.
697 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
698 ARGLEN and use TYPE_LENGTH directly.
699 (mips_o64_push_dummy_call): Likewise.
700 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
701 variable LENGTH and use TYPE_LENGTH directly.
702 (s390_function_arg_float): Likewise.
703 (s390_function_arg_integer): Likewise.
704 (s390_push_dummy_call): Likewise.
705 (s390_return_value_convention): Likewise.
706 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
707 TYPE_LENGTH directly.
709 2012-09-17 Yao Qi <yao@codesourcery.com>
711 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
712 Update comment to add_setshow_integer_cmd.
713 * cli/cli-setshow.c (do_set_command): Handle case
714 'var_zuinteger_unlimited'.
715 (do_show_command): Likewise.
716 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
717 for command 'remotetimeout'.
718 * command.h (enum var_types): New zuinteger_unlimited. Update comment
720 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
721 for command 'set listsize'.
723 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
725 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
728 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
731 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
732 (frame_pop): Drop also TAILCALL_FRAME frames.
733 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
735 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
736 Pedro Alves <palves@redhat.com>
739 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
740 function start if we are already at function start. Both for
741 reverse-next and for reverse-step into function without line number
744 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
746 Code cleanup - rename 'inline' depth to 'artificial' depth.
747 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
748 frame_id_artificial_p, extend the comment.
749 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
750 * frame.c (fprint_frame_id): Rename at a user, change debug output
751 text to "artificial=".
752 (skip_inlined_frames): Rename to ...
753 (skip_artificial_frames): ... here. Extend the comment.
754 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
755 (frame_id_inlined_p): Rename to ...
756 (frame_id_artificial_p): ... here. Rename at a user.
757 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
758 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
760 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
762 (frame_id_inlined_p): Rename to ...
763 (frame_id_artificial_p): ... here.
764 * inline-frame.c (inline_frame_this_id): Rename at a user.
766 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
768 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
769 vector variables using vector_size syntax rather than array
772 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
774 * valarith.c (value_concat): Replace unsafe ALLOCA with
777 2012-09-14 Pedro Alves <palves@redhat.com>
779 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
781 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
783 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
784 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
785 data-directory as appropriate.
787 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
789 * printcmd.c (ui_printf): Eliminate single-use variable
792 2012-09-14 Yao Qi <yao@codesourcery.com>
793 Pedro Alves <palves@redhat.com>
795 * valops.c (value_assign): Move observer_notify_target_changed
796 below to replace reinit_frame_cache.
798 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
800 Refactor Python "gdb" module into a proper Python package, by
801 introducing a new "_gdb" module for code implemented in C, and
802 using reload/__import__ instead of exec.
803 * python/lib/gdb/__init__.py: Import * from _gdb.
804 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
805 prompt_hook, sys.argv): Moved from finish_python_initialization.
806 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
807 (packages, auto_load_packages): New list and function replacing
808 module_dict and auto-loading code, using __file__ instead of
809 gdb.PYTHONDIR and reload/__import__ instead of exec.
810 (GdbSetPythonDirectory): Replacing function of the same name
811 from finish_python_initialization, using reload/__import__ instead
812 of exec, as well as call auto_load_packages.
813 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
814 gdb_python_module and not gdb_module.
815 * python/python-internal.h (gdb_python_module): Declare.
816 * python/python.c (gdb_python_module): New global.
817 (before_prompt_hook): Check gdb_python_module and not gdb_module.
818 (_initialize_python): Rename gdb module to _gdb.
819 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
820 (finish_python_initialization): Move Python code to
821 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
824 2012-09-13 Pedro Alves <palves@redhat.com>
826 * Makefile.in (COMMON_OBS): Add registry.o.
827 * registry.c: New file.
828 * registry.h (struct registry_container): Declare.
829 (registry_data_callback): New typedef.
830 (struct registry_data, struct registry_data_registration, struct
831 registry_data_registry): New type.
832 (register_data_with_cleanup, registry_alloc_data)
833 (registry_callback_adaptor, registry_clear_data)
834 (registry_container_free_data, registry_set_data, registry_data):
836 (DEFINE_REGISTRY): Refactor structures and functions as shims over
837 the new common structures and functions.
838 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
841 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
843 * remote.c (remote_insert_hw_breakpoint): Throw exception if
844 there is an error inserting hardware breakpoints and use the
845 error message from the target.
847 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
848 Catch this exception and print the error message contained within. Do not
849 print the default hardware error breakpoint message in this case.
851 2012-09-12 Doug Evans <dje@google.com>
853 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
856 2012-09-11 Doug Evans <dje@google.com>
858 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
859 .gdb_index symbol attributes if there are none.
861 2012-09-11 Joel Brobecker <brobecker@adacore.com>
863 * symtab.h (struct minimal_symbol) [has_size]: New field.
864 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
865 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
866 * printcmd.c (build_address_symbolic): Only filter out zero-sized
867 minimal symbols if the symbol's size is actually known.
868 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
869 of msymbol's size field. Add comment.
870 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
871 SET_MSYMBOL_SIZE to set the minimal symbol size.
873 2012-09-11 Joel Brobecker <brobecker@adacore.com>
875 * minsyms.c (install_minimal_symbols): Use memset to fill entire
876 minimal_symbol struct object, rather than setting some of its
879 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
881 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
882 passed_a_ptr flag when displaying typedef types.
884 2012-09-10 Joel Brobecker <brobecker@adacore.com>
886 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
887 the optimized_out flag is preserved.
889 2012-09-10 Anthony Green <green@moxielogic.com>
891 * moxie-tdep.c (moxie_analyze_prologue): Update for function
892 prologue changes in GCC.
894 2012-09-10 Keith Seitz <keiths@redhat.com>
897 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
898 (BOOL_CONVERSION_BADNESS): ... this.
899 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
900 (rank_one_type): Allow all boolean conversions
901 permitted by the standard.
903 2012-09-06 Tom Tromey <tromey@redhat.com>
905 * python/py-newobjfileevent.c (create_new_objfile_event_object):
906 Don't decref py_objfile.
908 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
910 Do not enable -lmcheck by default when Python is enabled with
912 * configure.ac: (python_has_threads) New variable, by testing
913 if WITH_THREAD is defined in Python.h.
914 Move --enable-lmcheck after --with-python.
915 Do not enable -lmcheck by default if python_has_threads=yes.
916 Warn if --enable-lmcheck and python_has_threads=yes.
917 * configure: Regenerate.
919 2012-08-31 Yao Qi <yao@codesourcery.com>
921 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
922 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
923 Update some commands.
924 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
925 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
928 2012-08-31 Yao Qi <yao@codesourcery.com>
930 * mi/mi-cmds.c (mi_cmds): Add 'static'.
932 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
934 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
936 2012-08-29 Doug Evans <dje@google.com>
938 * main.c (print_gdb_help): Remove reference to
939 --use-deprecated-index-sections.
941 2012-08-28 Yao Qi <yao@codesourcery.com>
943 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
944 (init_cmds): Call add_setshow_uinteger_cmd for command
945 'max-user-call-depth'.
946 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
947 declaration of 'max_user_call_depth'.
948 * frame.c (backtrace_limit): Add 'unsigned'.
949 (_initialize_frame): Call add_setshow_uinteger_cmd for command
951 * remote.c (remoteaddresssize): Add 'unsigned'.
952 (remote_address_masked): Change local var 'address_size' to
954 (_initialize_remote): Call add_setshow_uinteger_cmd for
956 * top.c (history_size): Add 'unsigned'.
957 (show_commands): Change local variables to 'unsigned'.
958 (set_history_size_command): Don't check history_size is negative.
959 Adjust the condition to call unstifle_history and set history_size
962 2012-08-28 Pedro Alves <palves@redhat.com>
966 * infcmd.c (default_print_one_register_info): New, factored out
967 from default_print_registers_info.
968 (default_print_registers_info): Use it. Mark value unavailable if
970 (registers_info): Print user registers with
971 default_print_one_register_info.
973 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
976 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
977 is not NULL before referencing it.
979 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
981 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
982 variable pc. Call find_pc_line instead of find_pc_overlay, restore
985 2012-08-27 Eli Zaretskii <eliz@gnu.org>
986 Jan Kratochvil <jan.kratochvil@redhat.com>
988 * auto-load.c (auto_load_objfile_script): Rename to ...
989 (auto_load_objfile_script_1): ... here, change variable realname to
990 parameter realname, document it, add return value, add variable retval.
991 (auto_load_objfile_script): New function.
993 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
995 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
996 followed by a whitespace.
998 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1001 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1002 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1003 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1006 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1008 * memattr.c (create_mem_region): Fix memory region overlapping
1011 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1013 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1014 with xmalloc/cleanup.
1015 * mt-tdep.c (mt_push_dummy_call): Likewise.
1016 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1017 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1019 2012-08-24 Yao Qi <yao@codesourcery.com>
1021 * jv-exp.y (push_expression_name): Add "." at the end of error
1024 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1026 Document how to return from "python-interactive" to GDB.
1027 * python/python.c (_initialize_python): Update documentation.
1029 2012-08-23 Pedro Alves <palves@redhat.com>
1031 * infrun.c (_initialize_infrun) <handle command help text>:
1032 Mention that multiple signals are supported.
1034 2012-08-23 Pedro Alves <palves@redhat.com>
1036 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1039 2012-08-23 Yao Qi <yao@codesourcery.com>
1041 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1042 (tfind_1): Don't call registers_changed, set_traceframe_num,
1043 and clear_traceframe_info.
1044 Call set_current_traceframe.
1045 (set_current_traceframe): call set_traceframe_num.
1047 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1049 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1050 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1052 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1054 Enable readline in Python in a GDB-specific way and block the
1055 standard Python readline module to prevent conflicts with GDB.
1056 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1057 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1058 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1059 * python/py-gdb-readline.c: New file.
1060 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1062 * python/python.c (_initialize_python): Call
1063 gdbpy_initialize_gdb_readline.
1065 2012-08-22 Keith Seitz <keiths@redhat.com>
1067 * defs.h: Include build-gnulib/config.h
1069 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1071 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1074 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1076 Add a new "python-interactive" command that starts a standard
1077 Python interactive prompt with "pi" as alias, and add "py" as
1078 an alias to "python".
1079 * NEWS: Mention the new commands.
1080 * python/python.c (eval_python_command): New function.
1081 (python_interactive_command): For "python-interactive" with
1082 arguments, call eval_python_command. For "python-interactive"
1083 without arguments, call PyRun_InteractiveLoop.
1084 (_initialize_python): Add "python-interactive" command with
1085 "pi" as alias, and add "py" as an alias to "python".
1087 2012-08-22 Tom Tromey <tromey@redhat.com>
1089 * defs.h (quit_flag): Don't declare.
1090 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1091 (QUIT): Use new functions.
1092 * event-top.c (command_handler): Use clear_quit_flag.
1093 (handle_sigint): Use set_quit_flag.
1094 (async_request_quit): Use check_quit_flag. Don't check
1096 * exceptions.c (throw_exception): Use clear_quit_flag.
1097 * main.c (captured_main): Use clear_quit_flag.
1098 * python/python.c (clear_quit_flag, set_quit_flag)
1099 (check_quit_flag): New functions.
1100 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1102 * remote.c (remote_wait_as): Use check_quit_flag,
1104 (remote_start_remote): Call QUIT.
1105 * symfile.c (load_progress): Use check_quit_flag.
1106 * top.c (command_loop): Use clear_quit_flag.
1107 (command_line_input): Call QUIT.
1108 * utils.c (quit_flag): Conditionally define.
1109 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1111 (prompt_for_continue): Call QUIT. Use quit, not
1113 * remote-mips.c (mips_expect_timeout): Call QUIT.
1114 * monitor.c (monitor_expect): Call QUIT.
1116 2012-08-22 Tom Tromey <tromey@redhat.com>
1118 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1119 (async_init_signals): Update.
1120 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1121 (SIGWINCH_HANDLER_BODY): Remove.
1123 2012-08-22 Tom Tromey <tromey@redhat.com>
1125 * jit.c (jit_object_close_impl): Don't malloc the objfile
1127 * objfiles.c (allocate_objfile): Don't malloc the objfile
1129 (free_objfile): Don't free the objfile name.
1130 * objfiles.h (struct objfile) <name>: Update comment.
1131 * symfile.c (reread_symbols): Fix reference counting. Don't
1132 malloc objfile name.
1134 2012-08-22 Tom Tromey <tromey@redhat.com>
1136 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1137 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1138 (symfile_bfd_open): Likewise.
1139 (generic_load): Likewise.
1140 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1141 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1143 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1145 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1146 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1147 (pmon_load_fast): Likewise.
1148 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1149 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1150 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1151 (macho_check_dsym): Likewise.
1152 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1153 (m32r_upload_command): Likewise.
1154 * gdb_bfd.h (gdb_bfd_cache): Declare.
1155 * gdb_bfd.c (struct gdb_bfd_data): New.
1156 (gdb_bfd_cache): New global.
1157 (struct gdb_bfd_cache_search): New.
1158 (hash_bfd): New function.
1160 (gdb_bfd_open): Likewise.
1161 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1162 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1164 * exec.c (exec_file_attach): Use gdb_bfd_open.
1165 * dsrec.c (load_srec): Use gdb_bfd_open.
1167 2012-08-22 Tom Tromey <tromey@redhat.com>
1169 * dwarf2read.c (macro_start_file): Update.
1170 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1171 (free_objfile_per_bfd_storage): Destroy macro_cache.
1172 (allocate_objfile, free_objfile): Update.
1173 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1175 (struct objfile) <macro_cache>: Remove.
1176 * symfile.c (reread_symbols): Update.
1177 * symmisc.c (print_symbol_bcache_statistics): Update.
1178 (print_objfile_statistics): Update.
1180 2012-08-22 Tom Tromey <tromey@redhat.com>
1182 * elfread.c (elf_symtab_read): Update.
1183 * objfiles.c (objfiles_bfd_data): New global.
1184 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1185 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1186 (allocate_objfile, free_objfile): Update.
1187 (_initialize_objfiles): Initialize objfiles_bfd_data.
1188 * objfiles.h (struct objfile_per_bfd_storage): New.
1189 (struct objfile) <per_bfd>: New field.
1190 <filename_cache>: Remove.
1191 (set_objfile_per_bfd): Declare.
1192 * symfile.c (reread_symbols): Update. Call
1193 set_objfile_per_bfd.
1194 (allocate_symtab): Update.
1195 * symmisc.c (print_symbol_bcache_statistics): Update.
1196 (print_objfile_statistics): Print the size of the BFD obstack.
1198 2012-08-22 Tom Tromey <tromey@redhat.com>
1200 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1201 * gdb_bfd.c: Use DEFINE_REGISTRY.
1202 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1203 (gdb_bfd_ref): Call bfd_alloc_data.
1204 (gdb_bfd_unref): Call bfd_free_data.
1206 2012-08-22 Tom Tromey <tromey@redhat.com>
1208 * registry.h (struct registry_fields): New.
1209 (REGISTRY_FIELDS): Redefine.
1210 (REGISTRY_ACCESS_FIELD): New macro.
1211 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1214 2012-08-22 Tom Tromey <tromey@redhat.com>
1216 * auto-load.c (_initialize_auto_load): Update.
1217 * solib-svr4.c (_initialize_svr4_solib): Update
1218 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1219 * solib-darwin.c (_initialize_darwin_solib): Update.
1220 * registry.h: New file.
1221 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1222 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1223 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1224 (register_program_space_data_with_cleanup)
1225 (register_program_space_data, program_space_alloc_data)
1226 (clear_program_space_data, set_program_space_data)
1227 (program_space_data): Don't declare.
1228 * progspace.c: Use DEFINE_REGISTRY.
1229 (struct program_space_data, struct
1230 program_space_data_registration, struct
1231 program_space_data_registry, program_space_data_registry)
1232 (register_program_space_data_with_cleanup)
1233 (register_program_space_data, program_space_alloc_data)
1234 (program_space_free_data, clear_program_space_data)
1235 (set_program_space_data, program_space_data): Remove.
1236 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1237 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1238 (register_objfile_data_with_cleanup, register_objfile_data)
1239 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1241 * objfiles.c: Use DEFINE_REGISTRY.
1242 (struct objfile_data, struct objfile_data_registration, struct
1243 objfile_data_registry, objfile_data_registry)
1244 (register_objfile_data_with_cleanup, register_objfile_data)
1245 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1246 (set_objfile_data, objfile_data): Remove.
1247 (_initialize_objfiles): Update.
1248 * jit.c (_initialize_jit): Update.
1249 * inflow.c (_initialize_inflow): Update.
1250 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1251 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1252 (register_inferior_data_with_cleanup, register_inferior_data)
1253 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1255 * inferior.c: Use DEFINE_REGISTRY.
1256 (struct inferior_data, struct inferior_data_registration, struct
1257 inferior_data_registry, inferior_data_registry)
1258 (register_inferior_data_with_cleanup, register_inferior_data)
1259 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1260 (set_inferior_data, inferior_data): Remove.
1261 * auxv.c (_initialize_auxv): Update.
1262 * ada-lang.c (_initialize_ada_language): Update.
1263 * breakpoint.c (_initialize_breakpoint): Update.
1264 * i386-nat.c (i386_use_watchpoints): Update.
1266 2012-08-22 Tom Tromey <tromey@redhat.com>
1268 * exec.c (exec_close, exec_file_attach): Update.
1269 (add_to_section_table): Initialize 'key' field.
1270 (add_target_sections, remove_target_sections): Add 'key' argument.
1271 * exec.h (add_target_sections, remove_target_sections): Add
1273 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1274 (reload_shared_libraries_1): Update.
1275 * target.h (struct target_section) <key>: New field.
1277 2012-08-22 Tom Tromey <tromey@redhat.com>
1279 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1281 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1283 * symfile.c (allocate_symtab): Use host_address_to_string
1284 function instead of cast of pointer to long which is not
1285 compatible with x86_64-w64-mingw32 build.
1287 2012-08-19 Andrew Pinski <apinski@cavium.com>
1289 * mips-tdep.c (is_octeon): New function.
1290 (is_octeon_bbit_op): New function.
1291 (mips32_next_pc): Handle Octeon's bbit instructions.
1292 (mips32_instruction_has_delay_slot): Likewise.
1294 2012-08-19 Andrew Pinski <apinski@cavium.com>
1296 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1297 before the function.
1299 2012-08-19 Andrew Pinski <apinski@cavium.com>
1301 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1303 2012-08-19 Keith Seitz <keiths@redhat.com>
1306 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1307 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1309 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1311 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1312 The typo broke "make TAGS".
1314 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1318 2012-08-17 Keith Seitz <keiths@redhat.com>
1321 * gdbtypes.c (strict_type_checking): New variable.
1322 (show_strict_type_checking): New function.
1323 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1324 if strict type checking is disabled.
1325 (_initialize_gdbtypes): Add "check type" subcommand.
1326 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1328 2012-08-17 Keith Seitz <keiths@redhat.com>
1330 * language.h (type_mode): Remove.
1331 (type_check): Remove.
1332 (struct language_defn): Remove la_type_check.
1333 (STRICT_TYPE): Remove unused macro.
1334 (type_error): Remove.
1335 * language.c (set_type_range_case): Renamed to ...
1336 (set_range_case): ... this. Update all callers.
1337 Remove type_mode/type_check.
1338 (type_mode): Remove.
1339 (type_check): Remove.
1340 (show_type_command): Remove.
1341 (set_type_command): Remove.
1342 (language_info): Remove type checking output.
1343 (type_error): Remove unused function.
1344 (range_error): Update comment.
1345 (unknown_language_defn): Remove la_type_check.
1346 (auto_language_defn): Likewise.
1347 (local_language_defn): Likewise.
1348 (_initialize_language): Remove "check type" subcommand.
1349 * ada-lang.c (ada_language_defn): Remove la_type_check.
1350 * c-lang.c (c_language_defn): Likewise.
1351 (cplus_language_defn): Likewise.
1352 (asm_language_defn): Likewise.
1353 (minimal_language_defn): Likewise.
1354 * d-lang.c (d_language_defn): Likewise.
1355 * f-lang.c (f_language_defn): Likewise.
1356 * go-lang.c (go_language_defn): Likewise.
1357 * jv-lang.c (java_language_defn): Likewise.
1358 * m2-lang.c (m2_language_defn): Likewise.
1359 * objc-lang.c (objc_language_defn): Likewise.
1360 * opencl-lang.c (opencl_language_defn): Likewise.
1361 * p-lang.c (pascal_language_defn): Likewise.
1363 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1365 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1367 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1369 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1371 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1372 using the regache. Use ia64_hpux_get_register_from_save_state_t
1373 to access the bsp and bspstore registers if not.
1375 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1377 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1378 * breakpoint.c (detach_breakpoints): Change pid parameter into
1379 a ptid. Adjust code accordingly.
1380 * infrun.c (handle_inferior_event): Delete variable child_pid.
1381 Update call to detach_breakpoints to pass the child ptid for
1383 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1384 assert that inferior_ptid's lwp is zero.
1385 (linux_handle_extended_wait): Update call to detach_breakpoints.
1386 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1389 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1391 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1392 parent, only call detach_breakpoints if tts.tts_event ==
1395 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1397 * dwarf2-frame.c (dwarf2_frame_cache): Use
1398 get_frame_address_in_block instead of get_frame_pc as
1399 the bound for executing the frame's FDE.
1401 2012-08-16 Yao Qi <yao@codesourcery.com>
1403 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1404 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1405 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1406 (c_type_print_varspec_suffix): Likewise.
1407 * eval.c (evaluate_subexp_standard): Likewise.
1408 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1409 (f_type_print_varspec_suffix): Likewise.
1410 * gdbtypes.c (is_scalar_type): Likewise.
1411 (recursive_dump_type): Likewise.
1412 * infcall.c (value_arg_coerce): Likewise.
1413 * m2-valprint.c (m2_val_print): Likewise.
1414 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1415 (pascal_type_print_varspec_suffix): Likewise.
1416 (pascal_type_print_base): Likewise.
1417 * p-valprint.c (pascal_val_print): Likewise.
1418 (pascal_val_print): Likewise.
1419 * valops.c (value_slice): Likewise.
1420 * valprint.c (scalar_type_p): Likewise.
1421 * valarith.c (value_bitstring_subscript): Remove.
1422 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1423 Remove comment on TYPE_CODE_BITSTRING.
1425 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1426 TYPE_CODE_BITSTRING.
1428 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1431 2012-08-16 Yao Qi <yao@codesourcery.com>
1433 * tracepoint.c (trace_find_none_command): Remove.
1434 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1436 2012-08-16 Yao Qi <yao@codesourcery.com>
1438 * remote.c (handle_notification): Remove parameter 'length'.
1439 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1441 2012-08-15 Keith Seitz <keiths@redhat.com>
1443 * gdbtypes.c (opaque_type_resolution): Make static.
1444 Add missing comment.
1445 (overload_debug): Add missing comment.
1446 (show_opaque_type_resolution): Likewise.
1447 (show_overload_debug): Likewise.
1448 (print_bit_vector): Remove unnecessary forward declaration.
1449 (print_arg_types): Likewise.
1450 (dump_fn_fieldlists): Likewise.
1451 (print_cplus_stuff): Likewise.
1453 2012-08-15 Tom Tromey <tromey@redhat.com>
1455 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1456 (gdb_bfd_ref): Initialize new field.
1457 (gdb_bfd_unref): Unref the archive BFD.
1458 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1461 2012-08-15 Tom Tromey <tromey@redhat.com>
1464 * python/py-bpevent.c (create_breakpoint_event_object): Update
1466 * python/py-event.c (evpy_add_attribute): Update comment.
1467 * python/py-exitedevent.c (create_exited_event_object): Fix
1468 reference counting and error handling.
1469 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1470 Fix reference counting.
1471 * python/py-signalevent.c (create_signal_event_object): Fix
1472 reference counting and error handling.
1473 * python/py-stopevent.c (emit_stop_event): Fix reference
1475 * python/py-threadevent.c (get_event_thread): Return a
1477 * python/py-type.c (convert_field): Fix reference counting.
1479 2012-08-15 Tom Tromey <tromey@redhat.com>
1481 * dwarf2read.c (dwarf_decode_macro_bytes)
1482 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1485 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1487 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1488 stepi, nexti, finish, next, step, jump, and continue commands.
1489 * infrun.c (_initialize_infrun): Update help text for the handle
1492 2012-08-14 Doug Evans <dje@google.com>
1494 * gdbtypes.c (struct extra): Delete, unused.
1496 * gdbtypes.c: Whitespace cleanup.
1497 (address_space_name_to_int): Remove "extern" from definition.
1498 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1500 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1501 TYPE_POINTER_TYPE (type).
1503 2012-08-14 Gary Benson <gbenson@redhat.com>
1505 * solib-svr4.c (svr4_free_library_list): Use free_so.
1507 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1509 * .gitignore: Add go-exp.c.
1511 2012-08-13 Doug Evans <dje@google.com>
1513 * value.c (show_convenience): Tweak comment.
1514 (_initialize_values): Mention convenience functions in the help text
1515 for "show convenience".
1517 2012-08-13 Yao Qi <yao@codesourcery.com>
1519 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1520 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1522 * eval.c (evaluate_subexp_standard): Likewise.
1523 * expprint.c (print_subexp_standard): Likewise.
1524 (dump_subexp_body_standard): Likewise.
1525 * parse.c (operator_length_standard): Likewise.
1527 2012-08-13 Yao Qi <yao@codesourcery.com>
1529 * std-operator.def: Remove OP_BITSTRING.
1530 * breakpoint.c (watchpoint_exp_is_const): Update.
1531 * eval.c (evaluate_subexp_standard): Remove handling to
1533 * expprint.c (print_subexp_standard): Likewise.
1534 (dump_subexp_body_standard): Likewise.
1535 * parse.c (operator_length_standard): Likewise.
1536 * valops.c (value_bitstring): Remove.
1537 * value.h: Remove the declaration of 'value_bitstring'.
1539 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1541 * linespec.c (find_methods): Remove unused variables `i1' and
1543 (decode_line_full): Likewise for `arg_start'.
1545 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1547 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1548 (zlib_decompress_section): Likewise for `section_data'.
1549 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1551 2012-08-10 Doug Evans <dje@google.com>
1553 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1554 * NEWS: Document them.
1555 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1557 * python/py-type.c (typy_array_1): New function.
1558 (typy_array): Call it.
1559 (typy_vector): New function.
1560 (type_object_methods): Add "vector".
1561 * python/lib/gdb/function/__init__.py: New file.
1562 * python/lib/gdb/function/strfns.py: New file.
1564 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1566 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1567 for TYPE_FIELD_BITPOS.
1568 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1570 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1573 * common/vec.h (VEC_merge): Define.
1574 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1575 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1576 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1577 * completer.c: Include gdb_signals.h.
1578 (signal_completer): Define.
1579 * completer.h (signal_completer): Add prototype.
1580 * infcmd.c (_initialize_infcmd): Assign the command
1581 completer for "signal" to handle_completer.
1582 * infrun.c: Include completer.h.
1583 (handle_completer): Define.
1584 (_initialize_infrun): Declare a new local variable c. Store the
1585 result of add_com("handle") to it. Assign the command
1586 completer for "handle" to handle_completer.
1588 2012-08-09 Yao Qi <yao@codesourcery.com>
1590 * cli/cli-decode.c (set_cmd_prefix): New.
1591 (lookup_cmd_for_prefixlist): New.
1592 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1593 of each cmd_list_element in *prefixlist.
1594 (add_setshow_cmd_full): set_cmd_prefix.
1595 (add_alias_cmd): Likewise.
1596 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1597 Declare 'auto_boolean_enums'.
1598 * cli/cli-setshow.c: Include "observer.h".
1599 (notify_command_param_changed_p): New.
1600 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1602 (do_setshow_command): Split it to ...
1603 (do_set_command, do_show_command): ... them. New.
1604 (do_set_command): Call observer_notify_command_param_changed if
1605 notify_command_param_changed_p returns true.
1606 (cmd_show_list): Caller update.
1607 * auto-load.c (set_auto_load_cmd): Likewise.
1608 * remote.c (show_remote_cmd): Likewise.
1609 * cli/cli-setshow.h: Update declarations.
1610 * top.c (execute_command): Call do_set_command and do_show_command.
1612 * NEWS: Mention new MI notification.
1613 * mi/mi-interp.c: Declare mi_command_param_changed.
1614 (mi_interpreter_init): Attach mi_command_param_changed to
1615 observer command_param_changed.
1616 (mi_command_param_changed): New.
1617 Remove mi_suppress_breakpoint_notifications.
1618 Define global variable mi_suppress_notification.
1619 (mi_breakpoint_created): Update.
1620 (mi_breakpoint_deleted): Likewise.
1621 (mi_breakpoint_modified): Likewise.
1622 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1623 'gdb-set' and set mi_suppress_notification.
1624 * mi/mi-main.h: (mi_suppress_notification): New struct.
1626 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1627 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1631 2012-08-09 Yao Qi <yao@codesourcery.com>
1633 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1634 (skiplist): Move it to skip.c.
1635 (init_cmd_lists): Remove code setting enablebreaklist and
1637 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1638 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1640 * gdbcmd.h: Likewise.
1641 * skip.c (_initialize_step_skip): Move 'skiplist' from
1644 2012-08-09 Yao Qi <yao@codesourcery.com>
1646 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1647 * gnu-nat.c, symfile.c: Likewise.
1649 2012-08-08 Aaron Gamble <agamble@google.com>
1651 * utils.c (prompt_for_continue_wait_time): New static global.
1652 (make_command_stats_cleanup): Initialize it.
1653 (report_command_stats): Subtract time waiting for user.
1654 (prompt_for_continue): Track time waiting for user.
1655 (defaulted_query): Track time waiting for user.
1657 2012-08-08 Doug Evans <dje@google.com>
1659 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1661 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1662 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1663 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1664 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1665 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1666 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1668 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1669 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1670 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1671 (dump_prefix_expression): Handle OP_TYPE.
1673 2012-08-08 Keith Seitz <keiths@redhat.com>
1675 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1678 2012-08-08 Doug Evans <dje@google.com>
1680 * linux-thread-db.c: #include "gdb_vecs.h".
1681 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1683 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1684 (thread_db_load_search): Use a vector to iterate over path elements.
1685 Handle text appearing after "$pdir".
1687 * gdb_string.h: Moved to ...
1688 * common/gdb_string.h: ... here.
1689 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1690 gdb_string.h and gdb_assert.h.
1692 2012-08-08 Yao Qi <yao@codesourcery.com>
1694 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1695 (tic6x_value_to_register): Likewise.
1696 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1697 and set_gdbarch_value_to_register.
1699 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1700 Jean-Marc Saffroy <saffroy@gmail.com>
1703 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1704 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1705 * gcore.c (gcore_create_callback): New function comment. Add modified
1706 parameter. Only write modified regions. Set SEC_READONLY exactly
1707 according to MODIFIED.
1708 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1709 the passed modified value to FUNC.
1710 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1711 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1712 first. New variables modified and has_anonymous. Parse the lines of
1713 smaps file. Add the passed MODIFIED value to FUNC.
1714 * procfs.c (find_memory_regions_callback): Add the passed modified
1717 2012-08-06 Tom Tromey <tromey@redhat.com>
1719 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1720 (dwarf2_frame_cache): Use it.
1721 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1722 cache initialization constraint.
1724 2012-08-06 Tom Tromey <tromey@redhat.com>
1727 * varobj.c (update_dynamic_varobj_children): Don't call
1730 2012-08-06 Tom Tromey <tromey@redhat.com>
1733 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1735 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1737 * NEWS: New entry for 'cd' default parameters.
1738 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1740 2012-08-03 Tom Tromey <tromey@redhat.com>
1742 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1745 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1747 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1748 to attempting lseek/write.
1749 (inf_child_fileio_pread): Likewise for pread.
1751 2012-08-02 Yao Qi <yao@codesourcery.com>
1753 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1754 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1755 add_setshow_zinteger_cmd.
1756 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1757 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1758 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1759 instead of add_setshow_zinteger_cmd.
1760 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1761 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1762 instead of add_setshow_zinteger_cmd.
1763 * frame.c (frame_debug): Add 'unsigned'.
1764 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1765 add_setshow_zinteger_cmd.
1766 * frame.h: Update the declaration of 'frame_debug'.
1767 * gdbtypes.c (overload_debug): Add 'unsigned'.
1768 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1769 add_setshow_zinteger_cmd.
1770 * inferior.h: Update declaration of 'debug_infrun'.
1771 * infrun.c (debug_infrun): Add 'unsigned'.
1772 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1773 add_setshow_zinteger_cmd.
1774 * jit.c (jit_debug): Add 'unsigned'.
1775 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1776 add_setshow_zinteger_cmd.
1777 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1778 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1779 instead of add_setshow_zinteger_cmd.
1780 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1781 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1782 add_setshow_zinteger_cmd.
1783 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1784 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1785 instead of add_setshow_zinteger_cmd.
1786 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1787 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1788 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1789 intead of add_setshow_zinteger_cmd.
1790 * mips-tdep.c (mips_debug): Add 'unsigned'.
1791 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1792 instead of add_setshow_zinteger_cmd.
1793 * monitor.c (monitor_debug): Add 'unsigned'.
1794 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1795 add_setshow_zinteger_cmd.
1796 * observer.c (observer_debug): Add 'unsigned'.
1797 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1798 add_setshow_zinteger_cmd.
1799 * parse.c (expressiondebug): Add 'unsigned'.
1800 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1801 add_setshow_zinteger_cmd.
1802 * record.c (record_debug): Add 'unsigned'.
1803 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1804 add_setshow_zinteger_cmd.
1805 * record.h: Update the declaration of 'record_debug'.
1806 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1807 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1808 add_setshow_zinteger_cmd.
1809 * serial.c (global_serial_debug_p): Add 'unsigned'.
1810 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1811 add_setshow_zinteger_cmd.
1812 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1813 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1814 add_setshow_zinteger_cmd.
1815 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1816 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1817 add_setshow_zinteger_cmd.
1818 * target.c (targetdebug): Add 'unsigned'.
1819 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1820 add_setshow_zinteger_cmd.
1821 * valops.c (overload_debug): Add 'unsigned'.
1822 * varobj.c (varobjdebug): Add 'unsigned'.
1823 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1824 add_setshow_zinteger_cmd.
1825 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1826 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1827 instead of add_setshow_zinteger_cmd.
1829 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1830 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1831 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1832 instead of add_setshow_zinteger_cmd.
1833 * gdbarch.c, gdbarch.h: Re-generated.
1835 2012-08-02 Yao Qi <yao@codesourcery.com>
1837 * nto-tdep.c: Don't include cli/cli-decode.h and
1839 (_initialize_nto_tdep): Remove.
1840 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1842 Remove macro nto_internal_debugging.
1844 2012-08-01 Richard Henderson <rth@redhat.com>
1846 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1847 (mep-*-*) [gdb_target_obs]: Likewise.
1849 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1851 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1852 linux_get_siginfo_type.
1854 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1856 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1858 (call_function_by_hand) <ON_STACK>: Call write_memory with
1859 gdbarch_breakpoint_from_pc, if possible.
1860 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1863 2012-07-31 Yao Qi <yao@codesourcery.com>
1865 * tracepoint.c: Add 'static' for some variables.
1867 2012-07-31 Yao Qi <yao@codesourcery.com>
1869 * go32-nat.c: Declare _initialize_go32_nat.
1870 * ser-go32.c: Declare _initialize_ser_dos.
1871 * top.c (do_chdir_cleanup): Add 'static'.
1873 2012-07-30 Keith Seitz <keiths@redhat.com>
1875 * linespec.c (linespec_lex_number): A number followed
1876 by quotes is a valid number, too.
1878 2012-07-30 Tom Tromey <tromey@redhat.com>
1880 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1882 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1884 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1885 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1887 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1889 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1890 invalid or reevaluated to prevent prevent references to possibly
1891 delete'd type objects being left in the varobj.
1893 2012-07-27 Tom Tromey <tromey@redhat.com>
1894 Jan Kratochvil <jan.kratochvil@redhat.com>
1896 * copying.awk: Print buffer-read-only and vi ro markers.
1897 * copying.c: Rebuild.
1898 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1899 * gdbarch.c, gdbarch.h: Rebuild.
1900 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1901 buffer-read-only and vi ro markers.
1902 * features/arm-with-iwmmxt.c: Rebuild.
1903 * features/arm-with-m-fpa-layout.c: Rebuild.
1904 * features/arm-with-m-vfp-d16.c: Rebuild.
1905 * features/arm-with-m.c: Rebuild.
1906 * features/arm-with-neon.c: Rebuild.
1907 * features/arm-with-vfpv2.c: Rebuild.
1908 * features/arm-with-vfpv3.c: Rebuild.
1909 * features/i386/amd64-avx-linux.c: Rebuild.
1910 * features/i386/amd64-avx.c: Rebuild.
1911 * features/i386/amd64-linux.c: Rebuild.
1912 * features/i386/amd64.c: Rebuild.
1913 * features/i386/i386-avx-linux.c: Rebuild.
1914 * features/i386/i386-avx.c: Rebuild.
1915 * features/i386/i386-linux.c: Rebuild.
1916 * features/i386/i386-mmx-linux.c: Rebuild.
1917 * features/i386/i386-mmx.c: Rebuild.
1918 * features/i386/i386.c: Rebuild.
1919 * features/i386/x32-avx-linux.c: Rebuild.
1920 * features/i386/x32-avx.c: Rebuild.
1921 * features/i386/x32-linux.c: Rebuild.
1922 * features/i386/x32.c: Rebuild.
1923 * features/mips-dsp-linux.c: Rebuild.
1924 * features/mips-linux.c: Rebuild.
1925 * features/mips64-dsp-linux.c: Rebuild.
1926 * features/mips64-linux.c: Rebuild.
1927 * features/rs6000/powerpc-32.c: Rebuild.
1928 * features/rs6000/powerpc-32l.c: Rebuild.
1929 * features/rs6000/powerpc-403.c: Rebuild.
1930 * features/rs6000/powerpc-403gc.c: Rebuild.
1931 * features/rs6000/powerpc-405.c: Rebuild.
1932 * features/rs6000/powerpc-505.c: Rebuild.
1933 * features/rs6000/powerpc-601.c: Rebuild.
1934 * features/rs6000/powerpc-602.c: Rebuild.
1935 * features/rs6000/powerpc-603.c: Rebuild.
1936 * features/rs6000/powerpc-604.c: Rebuild.
1937 * features/rs6000/powerpc-64.c: Rebuild.
1938 * features/rs6000/powerpc-64l.c: Rebuild.
1939 * features/rs6000/powerpc-7400.c: Rebuild.
1940 * features/rs6000/powerpc-750.c: Rebuild.
1941 * features/rs6000/powerpc-860.c: Rebuild.
1942 * features/rs6000/powerpc-altivec32.c: Rebuild.
1943 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1944 * features/rs6000/powerpc-altivec64.c: Rebuild.
1945 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1946 * features/rs6000/powerpc-cell32l.c: Rebuild.
1947 * features/rs6000/powerpc-cell64l.c: Rebuild.
1948 * features/rs6000/powerpc-e500.c: Rebuild.
1949 * features/rs6000/powerpc-e500l.c: Rebuild.
1950 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1951 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1952 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1953 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1954 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1955 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1956 * features/rs6000/powerpc-vsx32.c: Rebuild.
1957 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1958 * features/rs6000/powerpc-vsx64.c: Rebuild.
1959 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1960 * features/rs6000/rs6000.c: Rebuild.
1961 * features/s390-linux32.c: Rebuild.
1962 * features/s390-linux32v1.c: Rebuild.
1963 * features/s390-linux32v2.c: Rebuild.
1964 * features/s390-linux64.c: Rebuild.
1965 * features/s390-linux64v1.c: Rebuild.
1966 * features/s390-linux64v2.c: Rebuild.
1967 * features/s390x-linux64.c: Rebuild.
1968 * features/s390x-linux64v1.c: Rebuild.
1969 * features/s390x-linux64v2.c: Rebuild.
1970 * features/tic6x-c62x-linux.c: Rebuild.
1971 * features/tic6x-c62x.c: Rebuild.
1972 * features/tic6x-c64x-linux.c: Rebuild.
1973 * features/tic6x-c64x.c: Rebuild.
1974 * features/tic6x-c64xp-linux.c: Rebuild.
1975 * features/tic6x-c64xp.c: Rebuild.
1977 2012-07-27 Tom Tromey <tromey@redhat.com>
1979 * c-exp.y (classify_name): Avoid assignment in condition.
1981 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1983 * amd64-windows-tdep.c: Include "frame.h".
1984 (amd64_windows_skip_trampoline_code): New function.
1985 (amd64_windows_init_abi): Add trampoline registration.
1987 2012-07-27 Yao Qi <yao@codesourcery.com>
1989 * tracepoint.c (cur_traceframe_number): Remove.
1990 (set_tfile_traceframe): Remove.
1991 (tfile_trace_find, tfile_fetch_registers): Update callers.
1992 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1993 (tfile_open, tfile_trace_find): Likewise.
1995 2012-07-27 Yao Qi <yao@codesourcery.com>
1997 * thread.c (switch_to_thread): Don't call registers_changed.
1999 2012-07-26 Tom Tromey <tromey@redhat.com>
2001 * Makefile.in (SFILES): Remove objc-exp.y.
2002 (YYFILES): Remove objc-exp.c.
2003 (YYOBJ): Remove objc-exp.o.
2004 (local-maintainer-clean): Don't mention objc-exp.c.
2005 * c-exp.y: Include objc-lang.h.
2006 (%union) <class>: New field.
2007 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2008 (exp): Clone subscript production for OBJC_LBRAC. Add various
2009 Objective C productions.
2010 (msglist, msgarglist, msgarg): New productions.
2011 (array_mod, func_mod, operator): Clone productions for
2013 (parse_string_or_char): Handle '@' strings.
2014 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2015 (classify_name): Check la_name_of_this. Recognize ObjC class
2017 * objc-exp.y: Remove.
2018 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2019 * objc-lang.h (objc_parse, objc_error): Don't declare.
2021 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2023 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2025 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2027 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2030 2012-07-26 Tom Tromey <tromey@redhat.com>
2032 * copying.c: Rebuild.
2033 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2036 2012-07-26 Tom Tromey <tromey@redhat.com>
2038 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2040 (print_objfile_statistics): Likewise.
2041 (maintenance_print_symbols): Likewise.
2042 (maintenance_print_msymbols): Likewise.
2043 (maintenance_print_objfiles): Likewise.
2044 * psymtab.c (print_partial_symbols): Call QUIT.
2045 (maintenance_print_psymbols): Likewise. Don't modify
2047 * copying.c (show_copying_command): Don't modify immediate_quit.
2048 (show_warranty_command): Likewise.
2049 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2051 2012-07-26 Keith Seitz <keiths@redhat.com>
2053 * linespec.c (linespec_lexer_lex_number): The input
2054 is also a valid number if the next character is a comma
2057 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2059 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2062 2012-07-26 Tristan Gingold <gingold@adacore.com>
2064 * machoread.c: Include gdb_bfd.h.
2066 2012-07-26 Tristan Gingold <gingold@adacore.com>
2068 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2071 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2073 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2075 (dwarf2_evaluate_loc_desc): Likewise.
2076 (dwarf2_loc_desc_needs_frame): Likewise.
2077 (locexpr_describe_location_1): Likewise.
2078 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2080 (struct dwarf2_loclist_baton): Likewise.
2081 * dwarf2read.c (struct dwarf_block): Likewise.
2082 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2083 (decode_locdesc): Expand SIZE and I to size_t.
2085 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2089 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2091 * doublest.c (convert_doublest_to_floatformat): If the exponent
2092 is too small, treat the value as zero. If the exponent is too
2093 large, treat the value as infinity.
2095 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2097 * configure.ac: Add --enable-lmcheck configure option.
2098 * configure: Regenerate.
2100 2012-07-25 Tom Tromey <tromey@redhat.com>
2102 * NEWS: Mention maint info bfds.
2103 * gdb_bfd.c (all_bfds): New global.
2104 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2105 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2108 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2110 * configure.tgt: Add v850*-*-rtems*.
2112 2012-07-25 Tom Tromey <tromey@redhat.com>
2114 * macrotab.c (macro_bcache_str): Remove cast.
2116 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2118 * linespec.c (linespec_lexer_lex_number): Update comments,
2119 change the return and add check to make sure the input is
2120 the decimal numbers.
2121 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2122 false, call linespec_lexer_lex_string.
2124 2012-07-24 Tom Tromey <tromey@redhat.com>
2126 * symfile.c (symbol_file_add): Don't open BFD twice.
2128 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2130 * breakpoint.c (create_breakpoint): Store condition for pending
2133 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2135 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2136 (m68k_return_value): Handle complex types like structures.
2137 (m68k_svr4_return_value): Likewise.
2139 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2141 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2142 parameters to bfd_get_section_name.
2144 2012-07-24 Yao Qi <yao@codesourcery.com>
2146 * cli/cli-setshow.c: Handle case 'var_uinteger'
2147 and 'var_zuninteger' together. Handle case 'var_integer' and
2148 'var_zinteger' together.
2150 2012-07-23 Keith Seitz <keiths@redhat.com>
2152 * linespec.c (convert_linespec_to_sal): Don't add
2153 any symbols to the result vector if symbol_to_sal
2156 2012-07-23 Keith Seitz <keiths@redhat.com>
2158 * linespec.c (decode_objc): Record the function name
2161 2012-07-23 Tom Tromey <tromey@redhat.com>
2163 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2165 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2166 (map_vmap): Acquire a reference to the BFD.
2168 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2170 * p-valprint.c (pascal_object_print_value): Replace potentially
2171 unsafe alloca with xmalloc/xfree.
2172 * valops.c (search_struct_method): Likewise.
2174 2012-07-23 Tom Tromey <tromey@redhat.com>
2176 * solib-svr4.c (enable_break): Update.
2177 * bfd-target.h (target_bfd_reopen): Update documentation.
2179 2012-07-23 Tom Tromey <tromey@redhat.com>
2181 * symfile.c (separate_debug_file_exists): Update.
2182 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2183 (reread_symbols): Update.
2184 * elfread.c (build_id_verify): Update.
2185 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2186 bfd_open_maybe_remote.
2188 2012-07-23 Tom Tromey <tromey@redhat.com>
2190 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2192 2012-07-23 Tom Tromey <tromey@redhat.com>
2194 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2196 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2198 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2199 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2201 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2202 * objfiles.c (allocate_objfile): Acquire a new reference.
2203 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2204 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2205 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2206 a cleanup for 'nbfd'.
2207 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2209 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2210 make a cleanup for 'abfd'.
2211 (symbol_file_add): Make a BFD cleanup.
2213 2012-07-23 Tom Tromey <tromey@redhat.com>
2215 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2216 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2217 * corelow.c (core_open): Use gdb_bfd_fopen.
2218 * dsrec.c (load_srec): Use gdb_bfd_openr.
2219 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2220 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2221 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2222 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2223 (gdb_bfd_fdopenr): New functions.
2224 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2225 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2226 (gdb_bfd_fdopenr): Declare.
2227 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2228 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2229 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2230 gdb_bfd_openr_next_archived_file.
2231 (macho_check_dsym): Use gdb_bfd_openr.
2232 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2233 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2234 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2235 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2237 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2238 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2239 gdb_bfd_openr_next_archived_file.
2240 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2242 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2244 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2245 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2246 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2247 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2248 (symfile_bfd_open): Use gdb_bfd_fopen.
2249 (generic_load): Use gdb_bfd_openr.
2250 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2252 2012-07-23 Tom Tromey <tromey@redhat.com>
2254 * bfd-target.c (target_bfd_reopen): Update.
2255 * cli/cli-dump.c (bfd_openr_with_cleanup)
2256 (bfd_openw_with_cleanup): Update.
2257 * corelow.c (core_open): Update.
2258 * dsrec.c (load_srec): Update.
2259 * exec.c (exec_file_attach): Update.
2260 * gcore.c (create_gcore_bfd): Update.
2261 * gdb_bfd.c (gdb_bfd_ref): Return void.
2262 (gdb_bfd_open): Update.
2263 * gdb_bfd.h (gdb_bfd_ref): Return void.
2265 * jit.c (jit_bfd_try_read_symtab): Update.
2266 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2267 * machoread.c (macho_symfile_read_all_oso): Update.
2268 (macho_check_dsym): Update.
2269 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2270 * remote-m32r-sdi.c (m32r_load): Update.
2271 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2272 * rs6000-nat.c (add_vmap): Update.
2273 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2275 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2276 * solib-spu.c (spu_bfd_open): Update.
2277 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2278 * spu-linux-nat.c (spu_bfd_open): Update.
2279 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2280 (generic_load): Update.
2281 * windows-nat.c (windows_make_so): Update.
2283 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2285 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2287 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2289 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2290 SIGTRAMP_FRAME unwinding.
2292 2012-07-20 Doug Evans <dje@google.com>
2294 * NEWS: Document new options "set/show use-deprecated-index-sections",
2295 and delete reference to --use-deprecated-index-sections.
2296 * symfile.h (use_deprecated_index_sections): Delete.
2297 * dwarf2read.c (use_deprecated_index_sections): Make static.
2298 (read_index_from_section): Update wording of how to load
2299 deprecated index sections.
2300 (_initialize_dwarf2_read): New options
2301 "set/show use-deprecated-index-sections".
2302 * main.c (captured_main): Delete --use-deprecated-index-sections.
2304 2012-07-20 Pedro Alves <palves@redhat.com>
2309 * infrun.c (handle_inferior_event) <new thread>: Don't special
2310 case minus_one_ptid.
2311 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2312 * linux-thread-db.c (thread_get_info_callback): Don't return early
2313 if the thread is zombie.
2314 (thread_from_lwp): Change return type to void. Rewrite stale
2316 (attach_thread): Don't return early if the thread is zombie,
2317 instead set its "dying" flag.
2318 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2319 (find_new_threads_callback): Don't return early if the thread is
2322 2012-07-20 Pedro Alves <palves@redhat.com>
2324 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2325 * target.c (target_wait): Likewise.
2326 (str_comma_list_concat_elem, do_option, target_options_to_string):
2328 * target.h (target_options_to_string): Declare.
2330 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2331 Tom Tromey <tromey@redhat.com>
2333 * dwarf2read.c (dwarf_decode_macros)
2334 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2335 DW_MACRO_GNU_transparent_include_alt>: New cases.
2336 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2337 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2339 2012-07-20 Tom Tromey <tromey@redhat.com>
2341 * dwarf2read.c (try_open_dwo_file): Don't call
2342 gdb_bfd_stash_filename.
2344 2012-07-20 Pedro Alves <palves@redhat.com>
2346 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2347 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2348 (i386_process_record): Tweak description comments.
2350 2012-07-20 Pedro Alves <palves@redhat.com>
2352 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2353 (i386_process_record): Use record_read_memory.
2354 * record.c (record_read_memory): New function.
2355 (record_arch_list_add_mem, record_exec_insn): Use
2357 * record.h (record_read_memory): Declare.
2359 2012-07-20 Yao Qi <yao@codesourcery.com>
2361 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2364 2012-07-19 Pedro Alves <palves@redhat.com>
2366 * record.c (record_resume): Ask the target beneath to report all
2369 2012-07-19 Doug Evans <dje@google.com>
2371 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2372 there's no section at address zero.
2373 (dwarf2_record_block_ranges): Ditto.
2375 2012-07-19 Yao Qi <yao@codesourcery.com>
2377 * command.h, remote.c: Fix a typo in comment.
2379 2012-07-19 Tom Tromey <tromey@redhat.com>
2382 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2383 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2384 OP_DECLTYPE>: New cases.
2385 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2386 (type_exp): Add new productions.
2387 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2389 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2391 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2392 OP_DECLTYPE>: New case.
2393 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2395 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2396 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2398 2012-07-19 Tom Tromey <tromey@redhat.com>
2400 * c-exp.y (enum token_flags): New.
2401 (struct token) <cxx_only>: Remove.
2403 (tokentab3, tokentab2, ident_tokens): Update.
2404 (lex_one_token): Update. Handle FLAG_SHADOW.
2406 2012-07-19 Tom Tromey <tromey@redhat.com>
2408 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2409 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2410 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2411 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2412 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2413 type_exp production where appropriate.
2414 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2415 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2416 <UNOP_MEMVAL_TYPE>: New case.
2417 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2418 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2419 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2420 <UNOP_MEMVAL_TYPE>: New case.
2421 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2422 UNOP_REINTERPRET_CAST>: Update.
2423 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2424 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2425 UNOP_REINTERPRET_CAST>: Update.
2426 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2427 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2428 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2431 2012-07-19 Yao Qi <yao@codesourcery.com>
2432 Jan Kratochvil <jan.kratochvil@redhat.com>
2434 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2435 and case 'var_optional_filename' together.
2436 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2437 instead of add_setshow_optional_filename_cmd for setshow command
2438 'args'. Set completer for 'set args'.
2440 2012-07-18 Doug Evans <dje@google.com>
2442 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2443 * common/gdb_vecs.c: New file, contents from utils.c.
2444 * common/host-defs.h: New file, contents from defs.h.
2445 * utils.h: New file, contents from defs.h.
2446 * defs.h: Move all declarations of objects defined in utils.c
2447 to utils.h (except QUIT() and related).
2448 #include "utils.h", "host-defs.h".
2449 * probe.h (probe_p): Move here from gdb_vecs.h.
2450 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2451 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2452 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2453 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2454 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2455 (COMMON_OBS): Add gdb_vecs.o.
2456 (gdb_vecs.o): New rule.
2458 2012-07-18 Keith Seitz <keiths@redhat.com>
2460 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2461 parameter. If non-zero, use SYMNAME as the canonical name
2464 (convert_linespec_to_sals): Use add_sal_to_sals for
2466 (decode_line_full): No need to "fill in missing canonical names"
2467 anymore. Simply make cleanups for the allocated names.
2469 2012-07-18 Keith Seitz <keiths@redhat.com>
2471 * linespec.c (struct linespec): Constify expression,
2472 source_filename, function_name, and label_name.
2473 (symbol_not_found_error): Make all parameters const.
2474 (linespec_parser_delete): No need to check for NULL
2475 when using xfree. Cast const char * to char * for xfree.
2477 2012-07-18 Keith Seitz <keiths@redhat.com>
2479 * breakpoint.c (invalid_thread_id_error): New function.
2480 (find_condition_and_thread): Use invalid_thread_id_error.
2481 (watch_command_1): Likewise.
2483 2012-07-18 Tom Tromey <tromey@redhat.com>
2485 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2486 * contrib/cc-with-tweaks.sh: New file.
2488 2012-07-18 Tom Tromey <tromey@redhat.com>
2490 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2491 (locate_dwz_sections): Recognize .gdb_index.
2492 (create_cus_from_index_list): New function.
2493 (create_cus_from_index): Use it. Handle .dwz data.
2494 (read_index_from_section): New function, extracted from
2496 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2499 2012-07-18 Tom Tromey <tromey@redhat.com>
2501 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2502 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2503 <is_dwz>: New field.
2504 (struct dwz_file): New.
2505 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2506 (locate_dwz_sections, dwarf2_get_dwz_file)
2507 (get_abbrev_section_for_cu): New functions.
2508 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2509 (read_and_check_type_unit_head): Add abbrev_section argument.
2510 (create_debug_types_hash_table): Update.
2511 (init_cutu_and_read_dies): Use proper abbrev section.
2512 (init_cutu_and_read_dies_no_follow): Likewise.
2513 (set_partial_user): Do nothing if PST==NULL.
2514 (read_comp_units_from_section): New function.
2515 (create_all_comp_units): Use it.
2516 (scan_partial_symbols, partial_die_parent_scope): Update.
2517 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2518 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2519 (find_partial_die): Add offset_in_dwz argument. Update.
2520 (guess_partial_die_structure_name, fixup_partial_die): Update.
2521 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2522 DW_FORM_GNU_strp_alt.
2523 (read_indirect_string_from_dwz): New function.
2524 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2525 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2526 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2527 (follow_die_offset): Add offset_in_dwz argument.
2528 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2529 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2530 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2531 Handle new macro forms.
2532 (dwarf_decode_macros): Update.
2533 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2534 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2535 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2536 (create_debug_types_hash_table): Use correct abbrev section.
2537 (get_debug_line_section): New function.
2538 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2539 (process_full_comp_unit): Pass 'required' argument to
2540 end_symtab_get_static_block.
2541 * buildsym.h (end_symtab_get_static_block): Update.
2542 * buildsym.c (end_symtab_get_static_block): Add 'required'
2544 (end_symtab, end_expandable_symtab): Update.
2546 2012-07-18 Tom Tromey <tromey@redhat.com>
2548 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2550 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2551 (zlib_decompress_section): Remove.
2552 (dwarf2_read_section): Use gdb_bfd_map_section.
2553 (munmap_section_buffer): Remove.
2554 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2555 munmap_section_buffer.
2556 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2557 (struct gdb_bfd_section_data): New.
2558 (free_one_bfd_section): New function.
2559 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2560 (get_section_descriptor, zlib_decompress_section)
2561 (gdb_bfd_map_section): New functions.
2562 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2564 2012-07-18 Tom Tromey <tromey@redhat.com>
2566 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2568 2012-07-18 Tom Tromey <tromey@redhat.com>
2570 * gdb_bfd.c (struct gdb_bfd_data): New.
2571 (gdb_bfd_cache): New global.
2572 (struct gdb_bfd_cache_search): New.
2573 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2574 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2575 * gdb_bfd.h (gdb_bfd_open): Declare.
2577 2012-07-18 Tom Tromey <tromey@redhat.com>
2579 * utils.c (make_cleanup_bfd_unref): Rename from
2580 make_cleanup_bfd_close.
2581 * defs.h (make_cleanup_bfd_unref): Rename from
2582 make_cleanup_bfd_close.
2583 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2584 (bfd_openw_with_cleanup): Update.
2585 * corelow.c (core_open): Update.
2586 * dsrec.c (load_srec): Update.
2587 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2588 * remote-m32r-sdi.c (m32r_load): Update.
2589 * remote-mips.c (mips_load_srec): Update.
2590 (pmon_load_fast): Update.
2591 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2593 (darwin_bfd_open): Update.
2594 * solib.c (solib_bfd_fopen): Update.
2595 * symfile-mem.c (symbol_file_add_from_memory): Update.
2596 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2597 (symfile_bfd_open): Update.
2598 (generic_load): Update.
2600 2012-07-18 Tom Tromey <tromey@redhat.com>
2602 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2603 (pmon_load_fast): Likewise.
2604 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2605 (m32r_upload_command): Likewise.
2606 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2607 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2608 Use make_cleanup_bfd_close.
2610 2012-07-18 Tom Tromey <tromey@redhat.com>
2612 * symfile.c (symfile_bfd_open): Don't copy name. Call
2613 gdb_bfd_stash_filename.
2614 (load_command): Open the new BFD before freeing the old.
2615 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2616 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2617 Call gdb_bfd_stash_filename.
2618 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2619 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2620 gdb_bfd_stash_filename.
2621 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2622 Free found_pathname.
2623 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2624 gdb_bfd_stash_filename.
2625 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2626 * machoread.c (macho_add_oso_symfile): Call
2627 gdb_bfd_stash_filename.
2628 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2629 gdb_bfd_stash_filename.
2630 (macho_check_dsym): Don't copy filename. Call
2631 gdb_bfd_stash_filename.
2632 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2633 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2634 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2635 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2636 * exec.c (exec_close): Don't free the BFD's filename.
2637 (exec_file_attach): Don't copy the filename. Call
2638 gdb_bfd_stash_filename.
2639 * corelow.c (core_close): Don't free the BFD's filename.
2640 (core_open): Call gdb_bfd_stash_filename.
2641 * corefile.c (reopen_exec_file): Remove #if 0 code.
2642 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2644 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2646 2012-07-18 Tom Tromey <tromey@redhat.com>
2648 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2650 (free_dwo_file): Use gdb_bfd_unref.
2651 * cli/cli-dump.c: Include gdb_bfd.h.
2652 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2653 (bfd_openr_with_cleanup): Likewise.
2654 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2656 * utils.c: Include gdb_bfd.h.
2657 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2658 * symfile.c: Include gdb_bfd.h.
2659 (separate_debug_file_exists): Use gdb_bfd_unref.
2660 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2661 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2662 (generic_load): Use gdb_bfd_ref.
2663 (reread_symbols): Use gdb_bfd_unref.
2664 * symfile-mem.c: Include gdb_bfd.h.
2665 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2666 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2667 * solib.c: Include gdb_bfd.h.
2668 (solib_bfd_fopen): Use gdb_bfd_ref.
2669 (solib_bfd_open): Use gdb_bfd_unref.
2670 (free_so_symbols): Use gdb_bfd_unref.
2671 (reload_shared_libraries_1): Use gdb_bfd_unref.
2672 * solib-spu.c: Include gdb_bfd.h.
2673 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2674 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2676 * solib-frv.c: Include gdb_bfd.h.
2677 (enable_break2): Use gdb_bfd_unref.
2678 * solib-dsbt.c: Include gdb_bfd.h.
2679 (enable_break2): Use gdb_bfd_unref.
2680 * solib-darwin.c: Include gdb_bfd.h.
2681 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2683 (darwin_bfd_open): Use gdb_bfd_unref.
2684 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2685 * remote-mips.c: Include gdb_bfd.h.
2686 (mips_load_srec): Use gdb_bfd_ref.
2687 (pmon_load_fast): Use gdb_bfd_ref.
2688 * remote-m32r-sdi.c: Include gdb_bfd.h.
2689 (m32r_load): Use gdb_bfd_ref.
2690 * record.c: Include gdb_bfd.h.
2691 (record_save_cleanups): Use gdb_bfd_unref.
2692 (cmd_record_save): Use gdb_bfd_unref.
2693 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2695 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2696 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2697 * objfiles.c: Include gdb_bfd.h.
2698 (free_objfile): Use gdb_bfd_unref.
2699 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2701 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2702 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2703 (macho_check_dsym): Likewise.
2704 * m32r-rom.c: Include gdb_bfd.h.
2705 (m32r_load): Use gdb_bfd_ref.
2706 (m32r_upload_command): Use gdb_bfd_ref.
2707 * jit.c: Include gdb_bfd.h.
2708 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2709 * gdb_bfd.h: New file.
2710 * gdb_bfd.c: New file.
2711 * gcore.c: Include gdb_bfd.h.
2712 (create_gcore_bfd): Use gdb_bfd_ref.
2713 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2714 (gcore_command): Use gdb_bfd_unref.
2715 * exec.c: Include gdb_bfd.h.
2716 (exec_close): Use gdb_bfd_unref.
2717 (exec_close_1): Use gdb_bfd_unref.
2718 (exec_file_attach): Use gdb_bfd_ref.
2719 * elfread.c: Include gdb_bfd.h.
2720 (build_id_verify): Use gdb_bfd_unref.
2721 * dsrec.c: Include gdb_bfd.h.
2722 (load_srec): Use gdb_bfd_ref.
2723 * corelow.c: Include gdb_bfd.h.
2724 (core_close): Use gdb_bfd_unref.
2725 (core_open): Use gdb_bfd_ref.
2726 * bfd-target.c: Include gdb_bfd.h.
2727 (target_bfd_xclose): Use gdb_bfd_unref.
2728 (target_bfd_reopen): Use gdb_bfd_ref.
2729 * Makefile.in (SFILES): Add gdb_bfd.c.
2730 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2731 (COMMON_OBS): Add gdb_bfd.o.
2733 2012-07-18 Keith Seitz <keiths@redhat.com>
2735 * breakpoint.c (find_condition_and_thread): Initialize
2737 (create_breakpiont): find_condition_and_thread will now
2738 initialize COND_STRING, THREAD, and REST (and TASK).
2739 (addr_string_to_sals): Likewise.
2741 2012-07-18 Pedro Alves <palves@redhat.com>
2743 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2744 Pull the single step breakpoints out of the target.
2746 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2748 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2749 * stap-probe.c (compile_probe_arg): Likewise.
2751 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2753 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2754 (elf_compile_to_ax): Likewise.
2755 * infrun.c (insert_exception_resume_from_probe): Likewise.
2756 (check_exception_resume): Remove `objfile' variable.
2757 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2758 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2759 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2760 (compare_entries): Rename to...
2761 (compare_probes): ...this. Adjust function to work with
2762 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2764 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2766 (print_ui_out_info): Adjust argument to be `struct probe *'.
2767 (info_probes_for_ops): Adjust internal computations to use
2769 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2770 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2771 gen_info_probes_table_values>: Remove `objfile' argument.
2772 (struct probe) <objfile>: New field.
2773 (find_probe_by_pc): Remove `objfile' argument.
2774 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2775 (stap_get_probe_argument_count): Likewise.
2776 (stap_get_arg): Likewise.
2777 (stap_evaluate_probe_argument): Likewise.
2778 (stap_compile_to_ax): Likewise.
2779 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2780 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2781 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2782 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2783 sym_compile_to_ax>: Likewise.
2785 2012-07-18 Terry Guo <terry.guo@arm.com>
2788 * defs.h (GDB_MI_MSG_WIDTH): New.
2789 * ser_base (ser_base_read_error_fd): New function.
2790 (do_ser_base_readchar): Poll error file descriptor as well as
2792 (generic_readchar): Refactor error handling.
2794 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2796 * NEWS: Create a new section for the next release branch.
2797 Rename the section of the current branch, now that it has
2800 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2802 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2803 * version.in: Bump version to 7.5.50.20120718-cvs.
2805 2012-07-17 Keith Seitz <keiths@redhat.com>
2807 * linespec.c (linespec_parse_line_offset): Make parameter
2810 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2813 * f-valprint.c (info_common_command): New variable frame_id.
2814 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2815 * printcmd.c (print_variable_and_value): Extend function comment.
2816 Add comment for invalidated FRAME.
2817 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2818 FI form FRAME_ID after each print_frame_local_vars.
2819 (struct print_variable_and_value_data): Change frame to frame_id.
2820 (do_print_variable_and_value): New variable frame, initialize it from
2821 p->frame_id. Add comment for invalidated FRAME.
2822 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2823 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2824 for invalidated FRAME.
2826 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2827 Pedro Alves <palves@redhat.com>
2829 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2832 2012-07-16 Tom Tromey <tromey@redhat.com>
2834 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2836 2012-07-15 Doug Evans <dje@google.com>
2838 * dwarf2read.c (stmt_list_hash): New struct.
2839 (type_unit_group): Embed "per_cu" member, remove pointer.
2840 New union member "t", move member "tus" into it, all uses updated.
2841 New member "hash", replaces member "line_offset, all uses updated.
2842 (quick_file_names): Replace member "offset" with "hash", all uses
2844 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2845 (hash_file_name_entry, eq_file_name_entry): Call them.
2846 (hash_type_unit_group, eq_type_unit_group): Ditto.
2847 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2848 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2849 (dw2_get_file_names): Update.
2850 (create_type_unit_group): Replace "per_cu" arg with "cu".
2851 All callers updated. Fix "quick" (.gdb_index) handling.
2852 (get_type_unit_group): Replace "per_cu" arg with "cu".
2853 All callers updated.
2854 (build_type_unit_groups): Don't reset tu_stats.
2856 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2857 "tab_cur_size". Change member "tab" to be a htab_t.
2858 (create_filename_seen_cache): Update.
2859 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2860 (filename_seen): Update.
2862 2012-07-13 Doug Evans <dje@google.com>
2864 * symtab.c (filename_seen): Update comment.
2866 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2867 Doug Evans <dje@google.com>
2869 * buildsym.c (end_symtab_1): Split it to ...
2870 (end_symtab_get_static_block): ... this ...
2871 (end_symtab_from_static_block): ... and this function.
2872 (end_symtab, end_expandable_symtab): Call them.
2873 * buildsym.h (end_symtab_get_static_block)
2874 (end_symtab_from_static_block): New declarations.
2875 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2876 Set its valid CU ranges.
2878 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2880 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2881 DW_OP_GNU_parameter_ref.
2883 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2885 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2886 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2888 2012-07-13 Doug Evans <dje@google.com>
2890 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2891 (filename_seen_cache): New struct.
2892 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2893 (create_filename_seen_cache): New function.
2894 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2895 (filename_seen): Delete arg "first". New arg "cache". All callers
2897 (output_source_filename_data): New struct.
2898 (output_source_filename): Delete arg "first". New arg "data".
2899 All callers updated.
2900 (sources_info): Delete local "first". New locals "data", "cleanups".
2901 Rewrite to use filename_seen_cache.
2902 (add_partial_filename_data): Delete member "first". New member
2903 "filename_seen_cache". All uses updated.
2904 (make_source_files_completion_list): Rewrite to use
2905 filename_seen_cache.
2907 2012-07-12 Doug Evans <dje@google.com>
2909 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2911 2012-07-10 Doug Evans <dje@google.com>
2914 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2915 all_type_unit_groups, type_unit_groups, tu_stats.
2916 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2917 All uses updated. Add type_unit_group to union "s".
2918 (type_unit_group): New struct.
2919 (IS_TYPE_UNIT_GROUP): New macro.
2920 (abbrev_table): Delete unused member "section".
2921 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2922 (dw2_get_cu): Assert not used with type_unit_group.
2923 (dw2_get_primary_cu): New function.
2924 (dw2_build_type_unit_groups_reader): New function.
2925 (dw2_build_type_unit_groups): New function.
2926 (dw2_get_file_names): Assert not called on type units.
2927 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2928 Redo loop to iterate over type unit groups instead of type units.
2929 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2930 (read_abbrev_offset): New function.
2931 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2933 (create_partial_symtab): New function.
2934 (process_psymtab_comp_unit_reader): Assert not used with type units.
2935 Call create_partial_symtab.
2936 (process_psymtab_type_unit): Delete.
2937 (hash_type_unit_group, eq_type_unit_group): New functions.
2938 (allocate_type_unit_groups_table): New function.
2939 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2940 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2941 (create_type_unit_group, get_type_unit_group): New functions.
2942 (tu_abbrev_offset): New struct.
2943 (sort_tu_by_abbrev_offset): New function.
2944 (add_type_unit_group_to_table): New function.
2945 (build_type_unit_groups): New function.
2946 (build_type_psymtabs_reader): New function.
2947 (build_type_psymtab_dependencies): New function.
2948 (build_type_psymtabs): Rewrite.
2949 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2950 is seen in a type unit.
2951 (process_queue): Move symtab expansion debugging printfs here.
2952 Call process_full_type_unit for type units.
2953 (compute_symtab_includes): Assert not called for type units.
2954 (process_cu_includes): Don't call compute_symtab_includes for
2956 (process_full_type_unit): New function.
2957 (process_imported_unit_die): Flag an error if called for type units.
2958 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2959 updated. Assert not called for type units.
2960 (read_file_scope): Call dwarf2_start_symtab.
2961 (setup_type_unit_groups): New function.
2962 (read_type_unit_scope): Rewrite.
2963 (abbrev_table_read_table): Initialize abbrev_table->offset.
2964 (abbrev_table_free_cleanup): New function.
2965 (dwarf2_start_symtab): New function.
2966 (load_full_type_unit): Assert not called for type unit groups.
2967 * buildsym.c (finish_block_internal): New arg "expandable".
2968 All callers updated.
2969 (start_symtab): Move most contents to ...
2970 (restart_symtab): ... here. New function.
2971 (reset_symtab_globals): New function.
2972 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2973 Call reset_symtab_globals.
2974 (end_symtab, end_expandable_symtab): New functions.
2975 (set_missing_symtab, augment_type_symtab): New functions.
2976 * buildsym.h (end_expandable_symtab): Declare.
2977 (augment_type_symtab, restart_symtab): Declare.
2978 * psympriv.h (struct partial_symtab): New member "anonymous".
2979 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2981 (read_psymtabs_with_filename): Ditto.
2982 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2983 (expand_symtabs_matching_via_partial): Ditto.
2984 (dump_psymtab): Update.
2985 * dictionary.c (dict_add_pending): New function.
2986 * dictionary.h (dict_add_pending): Declare.
2988 2012-07-09 Doug Evans <dje@google.com>
2990 * buildsym.c (start_subfile): Remove unnecessary check for
2993 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2995 * dwarf2read.c (load_full_type_unit): Simplify.
2997 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2998 to struct signatured_type **. All uses updated.
3000 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3001 All callers updated.
3003 2012-07-09 Tom Tromey <tromey@redhat.com>
3005 * c-exp.y (check_parameter_typelist): New function.
3006 (parameter_typelist): Call it.
3007 * eval.c (make_params): Handle '(void)' case.
3008 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3011 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3013 * common/linux-ptrace.c: Include gdb_assert.h.
3014 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3015 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3017 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3019 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3020 * linux-nat.c (linux_child_post_attach)
3021 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3023 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3026 nptl <2.7 bug workaround for core files.
3028 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3030 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3032 (save_siginfo): Remove.
3033 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3035 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3036 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3037 * linux-nat.h (struct lwp_info): Remove field siginfo.
3039 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3041 Code cleanup for the next patch.
3042 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3043 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3045 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3046 (ia64_linux_stopped_data_address):
3047 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3049 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3050 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3051 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3054 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3057 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3058 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3060 2012-07-06 Tom Tromey <tromey@redhat.com>
3062 * c-exp.y (DOTDOTDOT): New token.
3063 (func_mod, exp): Use parameter_typelist.
3064 (parameter_typelist): New production.
3065 (tokentab3): Add "..." token.
3066 * eval.c (make_params): Handle varargs.
3067 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3070 2012-07-06 Tom Tromey <tromey@redhat.com>
3073 * c-exp.y (%union) <tvec>: Change type.
3074 (func_mod): Now uses <tvec> type.
3075 (exp): Update for tvec change.
3076 (direct_abs_decl): Push the typelist.
3077 (func_mod): Return a typelist.
3078 (nonempty_typelist): Update for tvec change.
3079 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3080 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3081 * parse.c (pop_type_list): New function.
3082 (push_typelist): New function.
3083 (follow_types): Handle tp_function_with_arguments.
3084 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3085 (enum type_pieces) <tp_function_with_arguments>: New constant.
3086 (union type_stack_elt) <typelist_val>: New field.
3087 (push_typelist): Declare.
3089 2012-07-06 Tom Tromey <tromey@redhat.com>
3091 * c-exp.y (%union) <type_stack>: New field.
3092 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3093 (ptr_operator_ts): New production.
3095 * parse.c (type_stack_reserve): New function.
3096 (check_type_stack_depth): Use it.
3097 (pop_type_stack, append_type_stack, push_type_stack)
3098 (get_type_stack, type_stack_cleanup): New functions.
3099 (follow_types): Handle tp_type_stack.
3100 (_initialize_parse): Simplify initialization.
3101 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3103 (union type_stack_elt) <stack_val>: New field.
3104 (get_type_stack, append_type_stack, push_type_stack)
3105 (type_stack_cleanup): Declare.
3107 2012-07-06 Tom Tromey <tromey@redhat.com>
3109 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3111 (struct type_stack): New.
3112 * parse.c (type_stack, type_stack_size, type_stack_depth):
3114 (type_stack): New global.
3115 (parse_exp_in_context, check_type_stack_depth)
3116 (insert_into_type_stack, insert_type, push_type, push_type_int)
3117 (insert_type_address_space, pop_type, pop_type_int)
3118 (_initialize_parse): Update.
3120 2012-07-06 Tom Tromey <tromey@redhat.com>
3122 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3125 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3127 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3129 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3130 Jan Kratochvil <jan.kratochvil@redhat.com>
3132 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3133 alloca with xmalloc/xfree.
3135 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3137 * MAINTAINERS (Write After Approval): Add myself to the list.
3139 2012-07-05 Doug Evans <dje@google.com>
3141 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3143 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3145 * ax-gdb.c (cli/cli-utils.h): New include.
3146 (linespec.h): Ditto.
3147 (agent_eval_command_one): New function.
3148 (agent_command_1): Ditto.
3149 (agent_command): Call function agent_command_1.
3150 (agent_eval_command): Ditto.
3151 (_initialize_ax_gdb): Change help for "maint agent"
3152 and "maint agent-eval".
3154 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3156 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3157 * cli/cli-utils.c (check_for_argument): New function.
3158 * cli/cli-utils.h (check_for_argument): Ditto.
3160 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3162 * NEWS: Mention x32 ABI support.
3164 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3166 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3167 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3169 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3170 and pc_regnum_from_eax to -1. Update SP regnum from
3171 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3174 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3177 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3179 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3180 * dwarf2expr.h: Include gdbtypes.h.
3181 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3182 these forward declarations.
3183 (cu_offset, sect_offset): Move these ...
3184 * gdbtypes.h: Remove include dwarf2expr.h.
3185 (cu_offset, sect_offset): ... here.
3187 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3189 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3190 (amd64_linux_sigtramp_code): This.
3191 (amd64_x32_linux_sigtramp_code): New.
3192 (LINUX_SIGTRAMP_LEN): Updated.
3193 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3195 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3197 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3199 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 * config.in: Regenerate.
3202 * configure: Regenerate.
3203 * configure.ac: Remove check for gnu/libc-version.h.
3204 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3206 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3207 variables libc_version, libc_major and libc_minor. Replace sscanf by
3208 inferior_has_bug. Extend the comment.
3210 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3212 * linux-thread-db.c (inferior_has_bug): New function.
3213 (thread_db_find_new_threads_silently): Return boolean as checked by
3214 inferior_has_bug, describe it in the comments.
3215 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3216 earlier. Abort the initialization if it returned non-zero.
3217 (thread_db_new_objfile): Exclude debug files.
3218 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3221 2012-07-02 Doug Evans <dje@google.com>
3223 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3224 related to queue management.
3226 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3227 instead of "debug dwarf2-die" in debugging printfs.
3228 (create_debug_info_hash_table_reader): Ditto.
3229 (create_debug_info_hash_table): Ditto.
3230 (init_dwo_file): Ditto.
3231 (init_cutu_and_read_dies): Add debugging printf.
3232 (init_cutu_and_read_dies_no_follow): Ditto.
3233 (process_psymtab_comp_unit_reader): Ditto.
3235 2012-07-02 Stan Shebs <stan@codesourcery.com>
3237 Add target-side support for dynamic printf.
3238 * NEWS: Mention the additional style.
3239 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3240 (struct bp_location): New field cmd_bytecode.
3241 * breakpoint.c: Include format.h.
3242 (disconnected_dprintf): New global.
3243 (parse_cmd_to_aexpr): New function.
3244 (build_target_command_list): New function.
3245 (insert_bp_location): Call it.
3246 (remove_breakpoints_pid): Skip dprintf breakpoints.
3247 (print_one_breakpoint_location): Ditto.
3248 (dprintf_style_agent): New global.
3249 (dprintf_style_enums): Add dprintf_style_agent.
3250 (update_dprintf_command_list): Add agent case.
3251 (agent_printf_command): New function.
3252 (_initialize_breakpoint): Add new commands.
3253 * common/ax.def (printf): New bytecode.
3254 * ax.h (ax_string): Declare.
3255 * ax-gdb.h (gen_printf): Declare.
3256 * ax-gdb.c: Include cli-utils.h, format.h.
3257 (gen_printf): New function.
3258 (maint_agent_print_command): New function.
3259 (_initialize_ax_gdb): Add maint agent-printf command.
3260 * ax-general.c (ax_string): New function.
3261 (ax_print): Add printf disassembly.
3262 * Makefile.in (SFILES): Add format.c
3263 (COMMON_OBS): Add format.o.
3264 * common/format.h: New file.
3265 * common/format.c: New file.
3266 * printcmd.c: Include format.h.
3267 (ui_printf): Call parse_format_string.
3268 * remote.c (remote_state): New field breakpoint_commands.
3269 (PACKET_BreakpointCommands): New enum.
3270 (remote_breakpoint_commands_feature): New function.
3271 (remote_protocol_features): Add new BreakpointCommands entry.
3272 (remote_can_run_breakpoint_commands): New function.
3273 (remote_add_target_side_commands): New function.
3274 (remote_insert_breakpoint): Call it.
3275 (remote_insert_hw_breakpoint): Ditto.
3276 (_initialize_remote): Add new packet configuration for
3277 target-side breakpoint commands.
3278 * target.h (struct target_ops): New field
3279 to_can_run_breakpoint_commands.
3280 (target_can_run_breakpoint_commands): New macro.
3281 * target.c (update_current_target): Handle
3282 to_can_run_breakpoint_commands.
3284 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3286 Execute -ix and -iex only after system and user gdbinit files.
3287 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3288 processing down after gdbinit files.
3290 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 Add fnmatch-gnu module.
3293 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3294 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3295 * gnulib/aclocal.m4: Regenerate.
3296 * gnulib/config.in: Regenerate.
3297 * gnulib/configure: Regenerate.
3298 * gnulib/import/dummy.c: Remove.
3299 * gnulib/import/Makefile.am: Regenerate.
3300 * gnulib/import/Makefile.in: Likewise.
3301 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3302 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3303 * gnulib/import/alloca.c: New file.
3304 * gnulib/import/alloca.in.h: Likewise.
3305 * gnulib/import/config.charset: Likewise.
3306 * gnulib/import/fnmatch.c: Likewise.
3307 * gnulib/import/fnmatch.in.h: Likewise.
3308 * gnulib/import/fnmatch_loop.c: Likewise.
3309 * gnulib/import/localcharset.c: Likewise.
3310 * gnulib/import/localcharset.h: Likewise.
3311 * gnulib/import/m4/alloca.m4: Likewise.
3312 * gnulib/import/m4/codeset.m4: Likewise.
3313 * gnulib/import/m4/configmake.m4: Likewise.
3314 * gnulib/import/m4/fcntl-o.m4: Likewise.
3315 * gnulib/import/m4/fnmatch.m4: Likewise.
3316 * gnulib/import/m4/glibc21.m4: Likewise.
3317 * gnulib/import/m4/localcharset.m4: Likewise.
3318 * gnulib/import/m4/locale-fr.m4: Likewise.
3319 * gnulib/import/m4/locale-ja.m4: Likewise.
3320 * gnulib/import/m4/locale-zh.m4: Likewise.
3321 * gnulib/import/m4/mbrtowc.m4: Likewise.
3322 * gnulib/import/m4/mbsinit.m4: Likewise.
3323 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3324 * gnulib/import/m4/mbstate_t.m4: Likewise.
3325 * gnulib/import/m4/stdbool.m4: Likewise.
3326 * gnulib/import/m4/wchar_h.m4: Likewise.
3327 * gnulib/import/m4/wctype_h.m4: Likewise.
3328 * gnulib/import/m4/wint_t.m4: Likewise.
3329 * gnulib/import/mbrtowc.c: Likewise.
3330 * gnulib/import/mbsinit.c: Likewise.
3331 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3332 * gnulib/import/mbsrtowcs-state.c: Likewise.
3333 * gnulib/import/mbsrtowcs.c: Likewise.
3334 * gnulib/import/ref-add.sin: Likewise.
3335 * gnulib/import/ref-del.sin: Likewise.
3336 * gnulib/import/stdbool.in.h: Likewise.
3337 * gnulib/import/streq.h: Likewise.
3338 * gnulib/import/strnlen1.c: Likewise.
3339 * gnulib/import/strnlen1.h: Likewise.
3340 * gnulib/import/verify.h: Likewise.
3341 * gnulib/import/wchar.in.h: Likewise.
3342 * gnulib/import/wctype.in.h: Likewise.
3344 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3346 Support shell wildcards for 'set auto-load safe-path'.
3347 * auto-load.c: Include fnmatch.h.
3348 (filename_is_in_dir): Rename to ...
3349 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3350 it. Update function comment. Rename dir_len to pattern_len. New
3351 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3352 messages. Use gdb_filename_fnmatch.
3353 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3355 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3356 * defs.h (gdb_filename_fnmatch): New declaration.
3357 * utils.c: Include fnmatch.h.
3358 (gdb_filename_fnmatch): New function.
3360 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3362 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3363 `-probe' and `-probe-stap' options.
3365 2012-07-01 Yao Qi <yao@codesourcery.com>
3367 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3368 always_inserted_off, and always_inserted_enums.
3369 Change always_inserted_mode's type to 'enum auto_boolean'.
3370 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3372 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3373 of add_setshow_enum_cmd.
3374 * infrun.c: Remove can_use_displaced_stepping_auto,
3375 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3376 can_use_displaced_stepping_enum.
3377 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3378 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3379 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3380 add_setshow_enum_cmd.
3382 2012-06-30 Doug Evans <dje@google.com>
3384 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3385 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3386 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3388 2012-06-29 Doug Evans <dje@google.com>
3390 * linespec.c: #include "stack.h".
3391 (decode_line_with_current_source): Moved here from symtab.c and
3392 renamed from decode_line_spec. All callers updated.
3393 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3394 renamed from decode_line_spec_1. All callers updated.
3395 * linespec.h (decode_line_with_current_source): Move declaration here
3396 from symtab.h and renamed from decode_line_spec.
3397 (decode_line_with_last_displayed): Move declaration here from symtab.h
3398 and renamed from decode_line_spec_1.
3399 * macrocmd.c: #include "linespec.h".
3400 * symtab.c: Remove #include "linespec.h".
3402 2012-06-28 Doug Evans <dje@google.com>
3404 * dwarf2read.c (get_cu_length): New function.
3405 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3406 (create_debug_types_hash_table): Ditto.
3407 (init_cutu_and_read_dies): Ditto.
3408 (init_cutu_and_read_dies_no_follow): Ditto.
3410 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3412 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3413 (struct abbrev_table): Define.
3414 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3416 (init_cutu_and_read_dies): Update.
3417 (abbrev_table_alloc_abbrev): New function. Replaces
3418 dwarf_alloc_abbrev. All callers updated.
3419 (abbrev_table_add_abbrev): New function.
3420 (abbrev_table_lookup_abbrev): New function. Replaces
3421 dwarf2_lookup_abbrev. All callers updated.
3422 (abbrev_table_read_table): New function. Contents moved here from
3423 dwarf2_read_abbrevs.
3424 (dwarf2_read_abbrevs): Call it.
3425 (abbrev_table_free): New function.
3426 (dwarf2_free_abbrev_table): Call it.
3428 2012-06-28 Stan Shebs <stan@codesourcery.com>
3430 * osdata.c (info_osdata_command): Filter out "Title" columns
3432 * common/linux-osdata.c (struct osdata_type): Add title field.
3433 (osdata_table): Add titles to each entry.
3434 (linux_command_xfer_osdata): Add a column for title data.
3436 2012-06-28 Stan Shebs <stan@codesourcery.com>
3438 Make logging work for MI.
3440 * interps.h (interp_set_logging_ftype): New typedef.
3441 (struct interp_procs): New field set_logging_proc.
3442 (current_interp_set_logging): Declare.
3443 * interps.c (current_interp_set_logging): New function.
3444 * cli/cli-logging.c: Include interps.h.
3445 (set_logging_redirect): Call current_interp_set_logging.
3446 (pop_output_files): Ditto.
3447 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3448 * mi/mi-console.h (mi_console_set_raw): Declare.
3449 * mi/mi-console.c (mi_console_set_raw): New function.
3450 * mi/mi-interp.c (saved_raw_stdout): New global.
3451 (mi_set_logging): New function.
3452 (_initialize_mi_interp): Add it to interp procs.
3454 2012-06-28 Doug Evans <dje@google.com>
3456 * symtab.c (lookup_symbol_aux_objfile): Use
3457 ALL_OBJFILE_PRIMARY_SYMTABS.
3459 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3461 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 * common/buffer.c: Include inttypes.h and stdint.h.
3464 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3466 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3467 Pedro Alves <palves@redhat.com>
3469 * gdbthread.h (ALL_THREADS): New macro.
3470 (thread_list): Declare.
3471 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3472 going, but instead fall through to the stepping handling.
3473 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3474 the passed in signal. Adjust debug output.
3475 (resume_callback): Rename to ...
3476 (linux_nat_resume_callback): ... this. Pass the thread's last
3477 stop signal, if in "pass" state.
3478 (linux_nat_resume): Adjust to rename.
3479 (stop_wait_callback): New assertion. Don't respawn signals;
3480 instead let the LWP remain with SIGNALLED set.
3481 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3482 * remote.c (append_pending_thread_resumptions): New.
3483 (remote_vcont_resume): Call it.
3484 * target.h (target_resume): Extend comment.
3486 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3488 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3490 2012-06-27 Doug Evans <dje@google.com>
3492 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3493 Delete have_addr_base, unused. All uses updated.
3494 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3495 (dwarf2_get_pc_bounds): Add ranges_base.
3496 (dwarf2_record_block_ranges): Ditto.
3498 2012-06-27 Tom Tromey <tromey@redhat.com>
3501 * varobj.c (varobj_create): Update.
3502 (varobj_set_value): Update.
3503 * tracepoint.c (validate_actionline): Update.
3504 (encode_actions_1): Update.
3505 * parse.c (parse_exp_1): Add 'pc' argument.
3506 (parse_exp_in_context): Add 'pc' argument. Change how
3507 expression_context_pc is set.
3508 (parse_expression): Update.
3509 (parse_field_expression): Update.
3510 * expression.h (parse_exp_1): Update.
3511 * eval.c (parse_to_comma_and_eval): Update.
3512 * breakpoint.c (set_breakpoint_condition): Update.
3513 (update_watchpoint): Update.
3514 (init_breakpoint_sal): Update
3515 (find_condition_and_thread): Update.
3516 (watch_command_1): Update.
3517 (update_breakpoint_locations): Update.
3518 * ada-lang.c (ada_read_renaming_var_value): Update.
3519 (create_excep_cond_exprs): Update.
3521 2012-06-27 Doug Evans <dje@google.com>
3523 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3526 2012-06-26 Doug Evans <dje@google.com>
3528 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3530 (error_check_comp_unit_head): New arg abbrev_section. All callers
3532 (read_and_check_comp_unit_head): Ditto.
3533 (read_and_check_type_unit_head): Ditto.
3535 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3537 New attribute 'last' for gdb.Symtab_and_line.
3538 * NEWS (Python Scripting): Add entry about the new attribute.
3539 * python/py-symtab.c (salpy_get_last): New function which
3540 implements the get method for the 'last' attribute of
3541 gdb.Symtab_and_line.
3542 (sal_object_getset): Add entry for the 'last' attribute.
3544 2012-06-26 Doug Evans <dje@google.com>
3546 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3547 (dwo_sections): Add macinfo, macro.
3548 (dwarf2_locate_dwo_sections): Watch for macro sections.
3549 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3550 All callers updated. Handle DWO files.
3552 * NEWS: Mention new options "set debug dwarf2-read" and
3553 "set debug symtab-create".
3554 * dwarf2read.c (dwarf2_read_debug): New static global.
3555 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3556 (process_queue): Ditto.
3557 (process_full_comp_unit): Ditto.
3558 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3559 * elfread.c (elf_symfile_read): Add debugging printf.
3560 * minsyms.c (install_minimal_symbols): Ditto.
3561 * psymtab.c (allocate_psymtab): Ditto.
3562 * symfile.c (allocate_symtab): Ditto.
3563 * symtab.c (symtab_create_debug): New global.
3564 (_initialize_symtab): Add new option "set debug symtab-create".
3565 * symtab.h (symtab_create_debug): Declare.
3567 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3568 (lookup_dwo_type_unit): Ditto.
3570 2012-06-26 Roland McGrath <roland@hack.frob.com>
3571 H.J. Lu <hongjiu.lu@intel.com>
3573 * amd64-linux-nat.c: Include <sys/user.h>.
3574 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3575 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3576 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3578 * configure.ac: Check if the fs_base and gs_base members of
3579 `struct user_regs_struct' exist.
3580 * config.in: Regenerated.
3581 * configure: Likewise.
3583 2012-06-25 Michael Eager <eager@eagercon.com>
3586 * python/python.c (gdbpy_write): Check for interrupted output.
3588 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3590 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3591 register as a stack alignment in ARM mode.
3593 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3595 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3596 * gnulib/config.in: Regenerate.
3597 * gnulib/configure: Likewise.
3598 * gnulib/import/m4/extensions.m4: Update it.
3599 * gnulib/import/m4/gnulib-common.m4: Likewise.
3600 * gnulib/import/m4/memmem.m4: Likewise.
3601 * gnulib/import/m4/mmap-anon.m4: Likewise.
3602 * gnulib/import/m4/multiarch.m4: Likewise.
3603 * gnulib/import/stdint.in.h: Likewise.
3605 2012-06-24 Yao Qi <yao@codesourcery.com>
3607 * corefile.c (write_memory_with_notification): New.
3608 * gdbcore.h: Declare write_memory_with_notification.
3609 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3610 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3611 * valops.c (value_assign): Likewise.
3612 * python/py-inferior.c (infpy_write_memory): Call
3613 'write_memory_with_notification'.
3615 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3617 * cc-with-index.sh: Use also -ex "set auto-load no".
3619 2012-06-23 Doug Evans <dje@google.com>
3622 * NEWS: Document additions to .gdb_index.
3623 * dwarf2read.c: #include "gdb/gdb-index.h".
3624 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3625 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3626 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3627 (dwarf2_read_index): Recognize version 7.
3628 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3629 block_kind, domain): All callers updated.
3630 (dw2_find_symbol_file): Handle new index CU values.
3631 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3632 (add_index_entry): New args is_static, kind. All callers updated.
3633 (offset_type_compare, uniquify_cu_indices): New functions
3634 (symbol_kind): New function.
3635 (write_psymtabs_to_index): Remove duplicate CU values.
3636 (write_psymtabs_to_index): Write .gdb_index version 7.
3638 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3640 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3641 * configure: Regenerate.
3643 2012-06-20 Yao Qi <yao@codesourcery.com>
3645 * python/py-inferior.c: Update comments of infpy_read_memory
3646 and infpy_write_memory.
3648 2012-06-19 Tom Tromey <tromey@redhat.com>
3651 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3652 (push_type_address_space): Remove.
3653 * parse.c (insert_into_type_stack): New function.
3654 (insert_type): Likewise.
3655 (insert_type_address_space): Rename from push_type_address_space.
3656 Insert tp_space_identifier.
3657 * c-exp.y (ptr_operator): New production.
3658 (abs_decl): Use ptr_operator.
3659 (space_identifier): Call insert_type_address_space.
3660 (ptype): Don't use const_or_volatile_or_space_identifier.
3661 (const_or_volatile_noopt): Call insert_type.
3662 (conversion_type_id, conversion_declarator): New productions.
3663 (operator): Use conversion_type_id.
3665 2012-06-18 Doug Evans <dje@google.com>
3667 * symtab.h (minimal_symbol): New member created_by_gdb.
3668 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3670 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3671 (search_symbols): Call it instead of lookup_symbol.
3672 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3674 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3675 Adjust address for DW_OP_GNU_addr_index.
3676 * dwarf2expr.h (dwarf_expr_context): Update comment.
3677 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3678 all callers updated. Handle TLS vars described with
3679 DW_OP_GNU_const_index.
3680 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3681 and DW_OP_GNU_const_index.
3682 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3684 * block.c (find_block_in_blockvector): Make explicit the fact that we
3685 ignore GLOBAL_BLOCK.
3687 2012-06-18 Tom Tromey <tromey@redhat.com>
3689 * c-exp.y (operator): Remove trailing space after "delete" and
3692 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3693 Jan Kratochvil <jan.kratochvil@redhat.com>
3695 Switch i386 and derived targets to ON_STACK.
3696 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3697 (amd64_dicos_init_abi): Remove its installment.
3698 * dicos-tdep.c (dicos_init_abi): Remove the
3699 set_gdbarch_call_dummy_location call. Update the comment here.
3700 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3701 (i386_dicos_init_abi): Remove its installment.
3702 * i386-tdep.c (i386_push_dummy_code): New function.
3703 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3704 i386_push_dummy_code.
3706 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3708 Remove stale dummy frames.
3709 * breakpoint.c: Include dummy-frame.h.
3710 (longjmp_breakpoint_ops): New variable.
3711 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3712 bp_longjmp_call_dummy.
3713 (bpstat_what, bptype_string, print_one_breakpoint_location)
3714 (init_bp_location): Support bp_longjmp_call_dummy.
3715 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3716 (set_longjmp_breakpoint_for_call_dummy)
3717 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3719 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3720 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3721 FIXME comment and extend the other comment for bp_call_dummy.
3722 (set_longjmp_breakpoint_for_call_dummy)
3723 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3724 * dummy-frame.c: Include gdbthread.h.
3725 (pop_dummy_frame_bpt): New function.
3726 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3727 (dummy_frame_discard): New function.
3728 (cleanup_dummy_frames): Update the comment about longjmps.
3729 * dummy-frame.h (dummy_frame_discard): New declaration.
3730 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3731 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3732 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3733 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3734 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3735 keep_going if IS_LONGJMP and there is no other reason to stop.
3737 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3739 * remote-sim.c (sim_command_completer): Initialize
3742 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3745 * dwarf2loc.c (call_site_parameter_matches): Support
3746 CALL_SITE_PARAMETER_PARAM_OFFSET.
3747 (needs_dwarf_reg_entry_value): Push stub value.
3748 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3749 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3750 * gdbtypes.h (enum call_site_parameter_kind): New item
3751 CALL_SITE_PARAMETER_PARAM_OFFSET.
3752 (struct call_site.parameter.u): New field param_offset.
3754 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3756 Code cleanup: Generalize call_site.parameter key.
3757 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3758 variable dwarf_reg. New variable kind_u. Update parameters to
3759 push_dwarf_reg_entry_value.
3760 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3761 * dwarf2expr.h (enum call_site_parameter_kind)
3762 (union call_site_parameter_u): Forward declarations.
3763 (struct dwarf_expr_context_funcs): Update parameters and their
3764 description for push_dwarf_reg_entry_value.
3765 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3766 * dwarf2loc.c (call_site_parameter_matches): New function.
3767 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3768 description. Use call_site_parameter_matches.
3769 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3770 Update parameters and their description.
3771 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3772 New variable kind_u. Adjust the caller for updated parameters.
3773 (needs_dwarf_reg_entry_value): Update parameters.
3774 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3775 instead of attr. Update for the changed fields of struct
3776 call_site_parameter.
3777 * gdbtypes.h: Include dwarf2expr.h.
3778 (enum call_site_parameter_kind): New.
3779 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3780 fb_offset into new union u.
3782 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3784 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3785 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3788 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3790 * amd64-linux-nat.c (compat_x32_clock_t): New.
3791 (compat_x32_siginfo_t): Likewise.
3792 (compat_x32_siginfo_from_siginfo): Likewise.
3793 (siginfo_from_compat_x32_siginfo): Likewise.
3794 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3795 and siginfo_from_compat_x32_siginfo for x32.
3797 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3799 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3801 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3803 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3804 instead of gdbarch_ptr_bit.
3805 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3806 (amd64_supply_native_gregset): Likewise.
3807 (amd64_collect_native_gregset): Likewise.
3808 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3809 (amd64_supply_xsave): Likewise.
3810 (amd64_collect_fxsave): Likewise.
3811 (amd64_collect_xsave): Likewise.
3813 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3815 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3816 (amd64_linux_read_description): Check DS segment register for
3819 2012-06-15 Tom Tromey <tromey@redhat.com>
3821 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3822 init_cutu_and_read_dies.
3824 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3826 * MAINTAINERS (Write After Approval): Add myself to the list.
3828 2012-06-15 Tom Tromey <tromey@redhat.com>
3830 * valops.c (value_find_oload_method_list): Now static.
3831 * value.h (value_find_oload_method_list): Don't declare.
3833 2012-06-15 Tom Tromey <tromey@redhat.com>
3835 * valops.c (find_overload_match): Use value_ind.
3837 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3839 * infrun.c (handle_inferior_event): Correct indentation.
3841 2012-06-14 Doug Evans <dje@google.com>
3843 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3844 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3846 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3847 updated. Handle DEBUG_LOC_START_LENGTH.
3848 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3849 (loclist_describe_location): Ditto.
3851 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3854 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3855 after hiding inline functions.
3857 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3859 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3860 _initialize_inf_ttrace.
3862 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3864 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3865 _initialize_hppa_hpux_nat.
3867 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3869 * remote-sim.c (sim_command_completer): Change type of return
3870 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3872 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3873 Jan Kratochvil <jan.kratochvil@redhat.com>
3876 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3877 stack on a 16-byte boundary.
3879 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3881 * jit.c (finalize_symtab): Set function's return type to 'void' by
3884 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3885 H.J. Lu <hongjiu.lu@intel.com>
3887 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3888 Move bits common to both the classic LP64 and the new x32 ILP32
3890 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3891 (amd64_x32_linux_init_abi): New function.
3892 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3895 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3896 * i386-tdep.c (i386_pseudo_register_name): Make public.
3897 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3898 * amd64-tdep.c (amd64_dword_names): Add "eip".
3899 (amd64_x32_pseudo_register_type): New function
3900 (amd64_x32_init_abi): New function.
3902 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3905 * inferior.h (struct inferior_suspend_state): Comment out.
3906 (struct inferior): Comment out the field suspend.
3907 * infrun.c (struct infcall_suspend_state): Comment out the field
3909 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3912 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3914 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3915 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3916 function comment. Return ERROR for unresolved cases. Implement
3917 returning proper NAME.
3918 (yylex): Accept also NAME from classify_inner_name.
3919 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3920 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3922 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3924 2012-06-13 Tom Tromey <tromey@redhat.com>
3926 * breakpoint.c (condition_completer): New function.
3927 (_initialize_breakpoint): Use it.
3928 * value.c (complete_internalvar): New function.
3929 * value.h (complete_internalvar): Declare.
3931 2012-06-13 Tom Tromey <tromey@redhat.com>
3933 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3934 * breakpoint.c (catch_syscall_completer): Return a VEC.
3935 * cli/cli-cmds.c (complete_command): Update.
3936 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3937 (complete_on_enum): Likewise.
3938 * command.h: Include gdb_vecs.h.
3939 (completer_ftype): Change return type.
3940 (complete_on_cmdlist, complete_on_enum): Likewise.
3941 * completer.c (noop_completer, filename_completer)
3942 (location_completer): Return a VEC.
3943 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3945 (expression_completer, complete_line_internal, complete_line)
3946 (command_completer): Return a VEC.
3947 (gdb_completion_word_break_characters, line_completion_function):
3949 * completer.h: Include gdb_vecs.h.
3950 (complete_line, noop_completer, filename_completer)
3951 (expression_completer, location_completer, command_completer):
3953 * f-lang.c (f_word_break_characters): Return a VEC.
3954 * interps.c (interpreter_completer): Return a VEC.
3955 * language.h (struct language_defn)
3956 <la_make_symbol_completion_list>: Return a VEC.
3957 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3958 * symtab.c (free_completion_list): Take a VEC.
3959 (return_val_size, return_val_index): Remove.
3960 (return_val): Now a VEC.
3961 (completion_list_add_name): Update.
3962 (default_make_symbol_completion_list_break_on)
3963 (default_make_symbol_completion_list, make_symbol_completion_list)
3964 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3966 (add_filename_to_list): Update.
3967 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3969 (maybe_add_partial_symtab_filename): Update.
3970 (make_source_files_completion_list): Return a VEC.
3971 * symtab.h (default_make_symbol_completion_list_break_on)
3972 (default_make_symbol_completion_list, make_symbol_completion_list)
3973 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3974 (make_source_files_completion_list): Update.
3976 2012-06-13 Tom Tromey <tromey@redhat.com>
3978 * breakpoint.c (add_catch_command): Use completer_ftype.
3979 * breakpoint.h: Include command.h.
3980 (add_catch_command): Use completer_ftype.
3981 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3982 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3983 Use completer_ftype.
3984 * command.h (completer_ftype): New typedef.
3985 (set_cmd_completer): Use it.
3986 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3989 2012-06-13 Pedro Alves <palves@redhat.com>
3991 Partial revert of previous change.
3993 * serial.c (scb_base): New global.
3994 (serial_for_fd): New.
3995 (serial_open, serial_fdopen_ops): Link new serial in open serials
3997 (do_serial_close): Unlink serial from the open serials chain.
3999 2012-06-12 Pedro Alves <palves@redhat.com>
4001 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4003 (prepare_for_detach): No longer context switch here in non-stop
4005 (fetch_inferior_event): Ditto.
4006 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4007 to the event thread before removing breakpoints. Switch to the
4008 event thread before inserting breakpoints and resuming.
4009 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4010 event thread before resuming.
4011 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4012 Switch to the event thread before removing breakpoints.
4014 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4016 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4017 special characters correctly for the Windows shells. See
4018 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4020 [!__MINGW32__]: Remove extra double quote character from special
4023 2012-06-11 Stan Shebs <stan@codesourcery.com>
4025 * ui-out.h: Remove #if 0 declarations.
4026 * ui-out.c: Remove #if 0 functions.
4028 2012-06-11 Pedro Alves <palves@redhat.com>
4030 * ser-base.c (run_async_handler_and_reschedule): New.
4031 (fd_event, push_event): Use it.
4032 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4033 reference count to 1.
4034 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4036 (serial_is_open, serial_ref, serial_unref): New.
4037 * serial.h (serial_open): Adjust comment.
4038 (serial_is_open): Declare.
4039 (serial_close): Adjust comment.
4040 (serial_ref, serial_unref) Declare.
4041 (struct serial): New field 'refcnt'.
4043 2012-06-11 Pedro Alves <palves@redhat.com>
4045 Remove #if 0'd "connect" command, and unnecessary associated
4046 refcounting and serial reuse bits.
4048 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4049 * serial.c (last_serial_opened): Delete.
4051 (serial_open): Adjust.
4052 (serial_for_fd): Delete.
4053 (serial_fdopen_ops, do_serial_close): Adjust.
4054 (serial_fdopen_ops): Adjust.
4056 2012-06-11 Pedro Alves <palves@redhat.com>
4058 * serial.c (do_serial_close): Remove early return when SCB is
4061 2012-06-11 Tom Tromey <tromey@redhat.com>
4063 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4065 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4067 Fix regression by the "ambiguous linespec" series.
4068 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4069 get_last_displayed_symtab and get_last_displayed_line and depending
4072 2012-06-11 Tom Tromey <tromey@redhat.com>
4074 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4075 (dw2_find_symbol_file): Use it.
4077 2012-06-11 Michael Eager <eager@eagercon.com>
4079 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4080 * mips-linux-tdep.h (mips_signals): New
4082 2012-06-11 Tom Tromey <tromey@redhat.com>
4084 * infrun.c (handle_inferior_event)
4085 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4087 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4088 exception logic in all cases. Update comments.
4089 (insert_longjmp_resume_breakpoint): Set the exception resume
4092 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4094 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4096 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4098 * valarith.c (binop_types_user_defined_p): Fix a typo.
4100 2012-06-08 Yao Qi <yao@codesourcery.com>
4101 Chung-Lin Tang <cltang@codesourcery.com>
4103 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4104 * arch-utils.h: Declare.
4105 * gdbarch.sh: Add return_in_first_hidden_param_p.
4106 * gdbarch.c, gdbarch.h: Regenerated.
4107 * infcall.c (call_function_by_hand): Call
4108 gdbarch_return_in_first_hidden_param_p instead of
4109 language_pass_by_reference.
4111 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4112 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4113 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4114 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4115 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4116 `cplus_return_struct_by_reference'.
4117 (tic6x_return_value): Handle language cplusplus.
4118 (tic6x_return_in_first_hidden_param_p): New.
4119 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4121 2012-06-07 Doug Evans <dje@google.com>
4123 * dwarf2read.c (dwarf2_cu): Add comment.
4125 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4127 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4129 (mips_eabi_push_dummy_call): Likewise.
4130 (mips_n32n64_push_dummy_call): Likewise.
4131 (mips_o32_push_dummy_call): Likewise.
4132 (mips_o64_push_dummy_call): Likewise.
4134 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4136 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4138 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4140 * mips-tdep.c (mips_pseudo_register_type): Use
4141 mips_float_register_p.
4143 2012-06-06 Pedro Alves <palves@redhat.com>
4145 * infrun.c (handle_inferior_event): Remove calls to
4146 reinit_frame_cache that follow a context_switch call.
4148 2012-06-06 Pedro Alves <palves@redhat.com>
4150 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4151 context_switch and remove stale comment.
4153 2012-06-06 Pedro Alves <palves@redhat.com>
4155 * infrun.c (struct execution_control_state): Remove
4156 `new_thread_event' field.
4157 (handle_inferior_event): Simplify new threads handling; don't
4158 resume the inferior if we find a new thread.
4160 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4162 * NEWS: Document the deprecation of SH's 'regs' command.
4163 * inferior.h (all_registers_info): Add function declaration.
4164 * sh-tdep.c (sh_show_regs): Remove variable.
4165 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4166 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4167 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4168 (sh_show_regs_command): Remove functions.
4169 (sh_gdbarch_init): Don't set sh_show_regs.
4170 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4171 'info all-registers'.
4172 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4173 (sh64_show_regs): Remove functions.
4174 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4176 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4178 * configure.ac: Move development=true below AC_INIT.
4179 * configure: Regenerate.
4181 2012-06-05 Stan Shebs <stan@codesourcery.com>
4183 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4186 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4188 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4189 argument as ssize_t.
4190 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4191 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4192 * target.c (target_read_stack, target_write_memory)
4193 (target_write_raw_memory): Likewise.
4194 * target.h (target_read_stack, target_write_memory)
4195 (target_write_raw_memory): Likewise.
4197 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4199 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4200 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4201 * target.c (target_read_memory): Change LEN to ssize_t.
4202 * target.h (target_read_memory): Change LEN to ssize_t.
4204 2012-06-05 Pedro Alves <palves@redhat.com>
4208 * breakpoint.c (until_break_command): Only fetch the selected
4209 frame after decode_line_1.
4211 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4213 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4214 event breakpoint at _start, __start or main if a program
4215 interpreter is not found.
4217 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4219 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4221 * windows-tdep.c: #include "objfiles.h".
4222 (windows_iterate_over_objfiles_in_search_order): New function.
4223 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4224 iterate_over_objfiles_in_search_order gdbarch method to
4225 windows_iterate_over_objfiles_in_search_order.
4226 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4228 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4230 * gdbarch.sh: Add generation of
4231 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4232 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4233 (iterate_over_objfiles_in_search_order): New gdbarch method.
4234 * gdbarch.h, gdbarch.c: Regenerate.
4235 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4237 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4239 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4240 out of lookup_symbol_aux_symtabs.
4241 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4242 call to lookup_symbol_aux_objfile.
4243 (struct global_sym_lookup_data): New type.
4244 (lookup_symbol_global_iterator_cb): New function.
4245 (lookup_symbol_global): Search for symbol using
4246 gdbarch_iterate_over_objfiles_in_search_order and
4247 lookup_symbol_global_iterator_cb.
4248 * findvar.c (struct minsym_lookup_data): New type.
4249 (minsym_lookup_iterator_cb): New function.
4250 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4251 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4252 and minsym_lookup_iterator_cb.
4254 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4256 Revert the following patch:
4257 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4258 try locating the symbol in the symbol's own objfile first, before
4259 extending the search to all objfiles.
4260 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4261 out of lookup_symbol_aux_symtabs.
4262 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4263 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4264 Do not search EXCLUDE_OBJFILE.
4265 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4266 (lookup_symbol_global): Search for matches in the block's objfile
4267 first, before searching all other objfiles.
4269 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4271 * breakpoint.c (find_condition_and_thread): Stop parsing
4272 as soon as the first invalid keyword is found.
4274 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4276 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4278 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4280 * config/djgpp/djcheck.sh: Add copyright header.
4282 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4284 * copyright.py (update_files, main): Fix path to update-copyright
4287 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4289 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4290 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4291 for which a reminder to update by hand is printed.
4293 2012-06-04 Doug Evans <dje@google.com>
4295 * buildsym.c (make_blockvector): Add comment.
4297 2012-06-04 Pedro Alves <palves@redhat.com>
4299 * arch-utils.c (default_gdb_signal_from_target): Delete.
4300 * arch-utils.h (default_gdb_signal_from_target): Delete.
4301 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4302 gdbarch_gdb_signal_from_target_p.
4303 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4305 * gdbarch.h: Regenerate.
4306 * gdbarch.c: Regenerate.
4308 2012-06-04 Pedro Alves <palves@redhat.com>
4310 * gdbarch.sh (gdb_signal_from_target): Mention that the
4311 implementation of the method must be host independent.
4312 * gdbarch.h: Regenerate.
4314 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4318 (target_read_memory_bfd): New function.
4319 (symbol_file_add_from_memory): Use it.
4321 2012-06-03 Doug Evans <dje@google.com>
4323 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4325 (basic_lookup_transparent_type): Ditto.
4327 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4328 (ALL_PRIMARY_SYMTABS): Use it.
4329 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4330 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4331 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4332 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4333 (basic_lookup_transparent_type): Ditto.
4335 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4337 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4338 it to optimize resolution of demangled name.
4340 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4342 * configure.ac (development): Define new variable.
4343 Call AC_CHECK_LIB for mcheck if $development.
4344 (ERROR_ON_WARNING): Enable it by default only if $development.
4345 * config.in: Regenerate.
4346 * configure: Regenerate.
4348 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4350 * target.c (target_read_memory): Make LEN argument as size_t.
4351 * target.h (target_read_memory): Likewise.
4353 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4355 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4357 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4359 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4360 BookE interface for PowerPC server processors if not available
4361 in the Linux Kernel.
4363 2012-05-31 Keith Seitz <keiths@redhat.com>
4365 * linespec.c (decode_objc): Add cleanup to free
4367 (find_linespec_symbols): Add cleanup to free CLASSES.
4368 * symfile.c (find_separate_debug_file_by_debuglink): Add
4369 cleanup to free DEBUGLINK.
4370 * ui-out.c (clear_header_list): No need to check if
4371 HEADER_NEXT.COLHDR is NULL.
4372 Free HEADER_NEXT.COL_NAME.
4374 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4376 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4379 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4381 * configure.host (gdb_host_cpu): Handle tilegx*.
4382 (gdb_host): Handle tilegx-*-linux*.
4383 * tilegx-linux-nat.c: New file.
4384 * config/tilegx/linux.mh: New file.
4386 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4388 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4389 tilegx-linux-tdep.o.
4390 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4391 tilegx-linux-tdep.c.
4392 * configure.tgt: Handle tilegx-*-linux*.
4393 * tilegx-tdep.h: New file.
4394 * tilegx-tdep.c: New file.
4395 * tilegx-linux-tdep.c: New file.
4396 * regformats/reg-tilegx.dat: New file.
4398 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4400 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4401 accounting of hw watchpoints on ppc.
4403 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4405 * source.c (openp): Expand tilde in path entries.
4407 2012-05-29 Doug Evans <dje@google.com>
4409 * buildsym.c (block_compar): Fix comment.
4410 (end_symtab): Fix and clarify some comments.
4412 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4413 cleanup_undefined_types.
4414 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4415 All callers updated.
4417 2012-05-29 Tom Tromey <tromey@redhat.com>
4419 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4421 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4422 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4424 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4427 2012-05-29 Tristan Gingold <gingold@adacore.com>
4429 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4430 (struct darwin_info): ... New struct.
4431 (solib_darwin_pspace_data): New variable.
4432 (darwin_pspace_data_cleanup): New function.
4433 (get_darwin_info): Likewise.
4434 (darwin_dyld_version_ok, darwin_load_image_infos)
4435 (darwin_solib_get_all_image_info_addr_at_init)
4436 (darwin_solib_read_all_image_info_addr): Add info argument.
4438 (darwin_current_sos): Use per pspace structure.
4439 (darwin_solib_create_inferior_hook): Likewise.
4440 (darwin_clear_solib): Likewise.
4441 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4443 2012-05-28 Pedro Alves <palves@redhat.com>
4445 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4446 block that uses them. Clear ecss before handling each event.
4448 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4450 * solib-svr4.c (svr4_current_sos): New comment on
4451 svr4_current_sos_via_xfer_libraries fall back.
4453 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4456 it as a fallback for TYPE_IS_OPAQUE.
4457 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4458 symbols for lookup_symbol.
4460 2012-05-24 John Steele Scott <toojays@toojays.net>
4462 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4463 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4464 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4465 (check_producer): ... this new function, which also checks for ICC
4466 and caches the result.
4467 (producer_is_icc): New function.
4468 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4471 2012-05-24 Pedro Alves <palves@redhat.com>
4475 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4476 (default_gdb_signal_to_target): ... this. Add comment.
4477 (default_gdb_signal_from_host): Rename to ...
4478 (default_gdb_signal_from_target): ... this. Add comment.
4479 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4480 (default_gdb_signal_to_target): ... this.
4481 (default_gdb_signal_from_host): Rename to ...
4482 (default_gdb_signal_from_target): ... this.
4483 * corelow.c (core_open): Adjust to naming change. Replace comment.
4484 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4485 (gdb_signal_from_target): ... this. Adjust to
4486 default_gdb_signal_from_host naming change. Extend comment.
4487 (gdb_signal_to_host): Rename to ...
4488 (gdb_signal_to_target): ... this. Adjust to
4489 default_gdb_signal_to_host naming change.
4490 * gdbarch.h, gdbarch.c: Renegerate.
4492 2012-05-24 Pedro Alves <palves@redhat.com>
4496 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4498 2012-05-24 Pedro Alves <palves@redhat.com>
4502 Replace target_signal with gdb_signal throughout.
4504 2012-05-24 Pedro Alves <palves@redhat.com>
4508 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4509 string, instead of reusing the va_list argument.
4511 2012-05-24 Tom Tromey <tromey@redhat.com>
4513 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4516 2012-05-23 Doug Evans <dje@google.com>
4518 * symtab.c (search_symbols): Formatting fixes.
4519 (print_symbol_info): Formatting fixes.
4521 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4522 int64_t change to leb128 API.
4523 (read_encoded_value, decode_frame_entry_1): Ditto.
4524 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4525 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4526 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4527 (execute_stack_op): Ditto.
4528 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4529 (safe_read_uleb128, safe_read_sleb128): Ditto.
4530 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4531 (dwarf2_compile_expr_to_ax): Ditto.
4532 (locexpr_describe_location_piece): Ditto.
4533 (disassemble_dwarf_expression): Ditto.
4534 (locexpr_describe_location_1): Ditto.
4536 2012-05-23 Stan Shebs <stan@codesourcery.com>
4537 Kwok Cheung Yeung <kcy@codesourcery.com>
4539 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4540 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4541 (mi-cmd-info.o): New rule.
4542 * osdata.h (info_osdata_command): New declaration.
4543 * osdata.c (info_osdata_command): Change to non-static.
4544 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4545 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4546 * mi/mi-cmd-info.c: New file.
4548 2012-05-23 Doug Evans <dje@google.com>
4550 * symtab.c (search_symbols): Pass NULL for file_matcher to
4551 expand_symtabs_matching if there are no files to match.
4553 * gdbtypes.c (lookup_typename): Simplify.
4555 2012-05-23 Pedro Alves <palves@redhat.com>
4557 * arch-utils.h (default_target_signal_to_host): Delete.
4558 * arch-utils.c (default_target_signal_to_host): Delete.
4559 * gdbarch.sh (target_signal_to_host): Remove.
4560 * gdbarch.h, gdbarch.c: Regenerate.
4562 2012-05-22 Doug Evans <dje@google.com>
4564 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4566 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4567 (execute_cfa_program): Update to match API of leb128 functions.
4568 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4570 (read_unsigned_leb128, read_signed_leb128): Delete.
4571 (read_initial_length): Change type of buf argument to
4573 (read_encoded_value): Update to match API of leb128 functions.
4574 (decode_frame_entry): Change result to "const gdb_byte *", and
4575 similarly for "start" parameter.
4576 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4577 (dwarf2_build_frame_info): Change local frame_ptr to
4579 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4580 read_uleb128, read_sleb128. All callers updated.
4581 (safe_skip_leb128): New function.
4582 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4583 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4584 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4585 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4586 read_uleb128, read_sleb128.
4587 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4588 (execute_stack_op): Update to match API of leb128 functions.
4589 * dwarf2expr.h: #include "leb128.h".
4590 (read_uleb128, read_sleb128): Delete.
4591 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4592 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4593 * dwarf2loc.c (debug_loc_kind): New enum.
4594 (decode_debug_loc_addresses): New function.
4595 (decode_debug_loc_dwo_addresses): New function.
4596 (dwarf2_find_location_expression): Rewrite.
4597 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4598 (locexpr_describe_location_piece): Ditto.
4599 (disassemble_dwarf_expression): Ditto.
4600 (locexpr_describe_location_1): Ditto.
4601 (loclist_describe_location): Rewrite.
4602 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4603 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4604 (dwarf2_section_buffer_overflow_complaint): Renamed from
4605 dwarf2_macros_too_long_complaint. All callers updated.
4606 (skip_leb128): Delete.
4607 (init_cu_die_reader): Initialize reader->buffer_end.
4608 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4609 (skip_form_bytes): New arg buffer_end. All callers updated.
4610 Replace call to skip_leb128 with gdb_skip_leb128.
4611 (skip_unknown_opcode): New arg mac_end. All callers updated.
4612 (fill_in_loclist_baton): Initialize baton->from_dwo.
4614 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4616 * mips-linux-nat.c (mips_linux_read_description): Use a more
4617 verbose error message.
4619 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4621 * NEWS: Add MIPS/Linux DSP support.
4622 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4623 (SIGCONTEXT_DSPCTL): New macro.
4624 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4625 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4626 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4627 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4628 (N64_SIGCONTEXT_HI3): Likewise.
4629 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4630 (N64_SIGCONTEXT_LO3): Likewise.
4631 (N64_SIGCONTEXT_DSPCTL): Likewise.
4632 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4633 (mips_linux_o32_sigframe_init): Handle DSP registers.
4634 (mips_linux_n32n64_sigframe_init): Likewise.
4636 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4638 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4641 2012-05-22 Pedro Alves <palves@redhat.com>
4643 * target.h (store_waitstatus): Move declaration ...
4644 * inf-child.h (store_waitstatus): ... here.
4645 * target.c: Move inclusion of gdb_wait.h, and ...
4646 (store_waitstatus): ... this ...
4647 * inf-child.c: ... here.
4648 * linux-nat.c: Include inf-child.h.
4649 * rs6000-nat.c: Include inf-child.h.
4650 * spu-linux-nat.c: Include inf-child.h.
4652 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4654 * tracepoint.c (start_tracing): Add missing i18n markup.
4655 (stop_tracing, set_trace_user): Ditto.
4656 (set_trace_notes, set_trace_stop_notes): Ditto.
4658 2012-05-21 Tom Tromey <tromey@redhat.com>
4661 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4663 * value.h (value_cast_pointers): Update.
4664 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4665 (value_cast): Update.
4666 (update_search_result): New function.
4667 (do_search_struct_field): New, from search_struct_field. Check
4668 for ambiguous results.
4669 (search_struct_field): Rewrite.
4670 * infcall.c (value_arg_coerce): Update.
4671 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4672 value_cast_pointers.
4673 * ada-lang.c (ada_convert_actual): Update.
4675 2012-05-21 Tom Tromey <tromey@redhat.com>
4677 * macroexp.c (macro_stringify): Terminate the string.
4679 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4681 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4683 * auto-load.c (auto_load_expand_dir_vars): New function.
4684 (auto_load_safe_path_vec_update): Use it, remove the
4685 substitute_path_component call thanks to it.
4686 (auto_load_objfile_script): Remove the debug_file_directory processing.
4687 Use auto_load_expand_dir_vars, remove the substitute_path_component
4689 * configure: Regenerate.
4690 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4691 path. Escape $ also for $debugdir.
4692 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4693 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4695 2012-05-20 Doug Evans <dje@google.com>
4697 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4698 before use. Check for symtab->includes == NULL before scanning it.
4700 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4702 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4704 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4706 * NEWS: Add microMIPS support and "set mips compression",
4707 "show mips compression" commands.
4708 * mips-tdep.h (mips_isa): New enum.
4709 (gdbarch_tdep): Add mips_isa.
4710 (mips_pc_is_mips16): Update prototype.
4711 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4712 * mips-tdep.c (mips_compression_mips16): New variable.
4713 (mips_compression_micromips): Likewise.
4714 (mips_compression_strings): Likewise.
4715 (mips_compression_string): Likewise.
4716 (is_mips16_isa, is_micromips_isa): New functions.
4717 (is_mips16_addr): Rename to...
4718 (is_compact_addr): ... this.
4719 (unmake_mips16_addr): Likewise to...
4720 (unmake_compact_addr): ... this.
4721 (make_mips16_addr): Likewise to...
4722 (make_compact_addr): ... this.
4723 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4725 (mips_elf_make_msymbol_special): Handle microMIPS code.
4726 (msymbol_is_special): Rename to...
4727 (msymbol_is_mips16): ... this.
4728 (mips_make_symbol_special, mips_pc_is_mips16): Update
4730 (msymbol_is_mips, msymbol_is_micromips): New functions.
4731 (mips16_to_32_reg): Rename to...
4732 (mips_reg3_to_reg): ... this.
4733 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4734 (mips_pc_isa): Likewise.
4735 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4737 (mips_fetch_instruction): Pass return status instead of printing
4738 an error message if requested. Handle microMIPS code. Bail out
4740 (micromips_op): New macro.
4741 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4742 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4743 (b6s4_op, b7s3_reg): Likewise.
4744 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4745 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4746 (mips_insn_size): New function.
4747 (mips32_next_pc): Update mips_fetch_instruction call.
4748 (micromips_relative_offset7): New function.
4749 (micromips_relative_offset10): Likewise.
4750 (micromips_relative_offset16): Likewise.
4751 (micromips_pc_insn_size): Likewise.
4752 (micromips_bc1_pc): Likewise.
4753 (micromips_next_pc): Likewise.
4754 (unpack_mips16): Update mips_fetch_instruction call.
4755 (extended_mips16_next_pc): Update according to change to
4757 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4759 (mips16_scan_prologue): Update mips_fetch_instruction call.
4760 Update according to change to mips16_to_32_reg.
4761 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4762 (mips_insn16_frame_base_sniffer): Likewise.
4763 (micromips_decode_imm9): New function.
4764 (micromips_scan_prologue): Likewise.
4765 (mips_micro_frame_cache): Likewise.
4766 (mips_micro_frame_this_id): Likewise.
4767 (mips_micro_frame_prev_register): Likewise.
4768 (mips_micro_frame_sniffer): Likewise.
4769 (mips_micro_frame_unwind): New variable.
4770 (mips_micro_frame_base_address): New function.
4771 (mips_micro_frame_base): New variable.
4772 (mips_micro_frame_base_sniffer): New function.
4773 (mips32_scan_prologue): Update mips_fetch_instruction call.
4774 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4775 rather than for MIPS16.
4776 (mips_insn32_frame_base_sniffer): Likewise.
4777 (mips_addr_bits_remove): Handle microMIPS code.
4778 (deal_with_atomic_sequence): Rename to...
4779 (mips_deal_with_atomic_sequence): ... this. Update the type
4780 of the variable used to hold an instruction. Remove the ISA bit
4781 check. Update mips_fetch_instruction call.
4782 (micromips_deal_with_atomic_sequence): New function.
4783 (deal_with_atomic_sequence): Likewise.
4784 (mips_about_to_return): Handle microMIPS code. Update
4785 mips_fetch_instruction call.
4786 (heuristic_proc_start): Check for the standard MIPS ISA rather
4787 than for MIPS16. Update mips_pc_is_mips16 and
4788 mips_fetch_instruction calls. Handle microMIPS code.
4789 (mips_push_dummy_code): Handle microMIPS code.
4790 (mips_eabi_push_dummy_call): Likewise.
4791 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4792 (mips_o64_push_dummy_call): Handle microMIPS code.
4793 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4794 (is_delayed): Remove function.
4795 (mips_single_step_through_delay): Replace the call to is_delayed
4796 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4797 Handle microMIPS code.
4798 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4800 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4802 (micromips_in_function_epilogue_p): New function.
4803 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4805 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4807 (gdb_print_insn_mips): Likewise.
4808 (mips_breakpoint_from_pc): Likewise.
4809 (mips_remote_breakpoint_from_pc): New function.
4810 (mips32_instruction_has_delay_slot): Simplify making use of the
4811 updated mips_fetch_instruction interface.
4812 (micromips_instruction_has_delay_slot): New function.
4813 (mips16_instruction_has_delay_slot): Simplify making use of the
4814 updated mips_fetch_instruction interface.
4815 (mips_adjust_breakpoint_address): Check for the standard MIPS
4816 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4817 calls. Handle microMIPS code.
4818 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4819 (mips_skip_trampoline_code): Handle microMIPS code.
4820 (global_mips_compression): New function.
4821 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4822 file flags. Register the microMIPS remote breakpoint handler
4823 and heuristic frame unwinder.
4824 (show_mips_compression): New function.
4825 (_initialize_mips_tdep): Add the "set mips compression" and
4826 "show mips compression" commands.
4828 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4833 * amd64-darwin-tdep.c:
4834 * arm-symbian-tdep.c:
4838 * bfin-linux-tdep.c:
4845 * dwarf2-frame-tailcall.c:
4874 * microblaze-tdep.c:
4875 * mips-linux-tdep.c:
4883 * python/py-finishbreakpoint.c:
4884 * python/py-inferior.c:
4885 * python/py-infthread.c:
4889 * remote-m32r-sdi.c:
4893 * rs6000-aix-tdep.c:
4919 * amd64-darwin-tdep.c:
4920 * arm-symbian-tdep.c:
4921 * arm-tdep.c: Delete unused variables.
4923 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4925 Rename $ddir to $datadir.
4926 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4927 * auto-load.c (auto_load_safe_path_vec_update)
4928 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4929 * configure: Regenerate.
4930 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4931 Likewise. Remove the 'use $ddir' help string.
4933 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4935 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4936 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4938 2012-05-18 Tom Tromey <tromey@redhat.com>
4941 * valprint.h (struct value_print_options) <symbol_print>: New
4943 * valprint.c (user_print_options): Add default for symbol_print.
4944 (show_symbol_print): New function.
4945 (generic_val_print): Respect symbol_print.
4946 (_initialize_valprint): Add "print symbol" setting.
4947 * f-valprint.c (f_val_print): Respect symbol_print.
4948 * c-valprint.c (c_val_print): Respect symbol_print.
4950 * printcmd.c (print_address_symbolic): Return int. Ignore some
4952 (print_address_demangle): Return int.
4953 * defs.h: (print_address_symbolic): Return int.
4954 * value.h (print_address_demangle): Return int.
4956 2012-05-18 Tom Tromey <tromey@redhat.com>
4958 * valprint.c (val_print_string): Don't print leading space.
4959 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4960 print space before string or vtbl.
4961 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4963 * jv-valprint.c (java_value_print): Print space before string.
4964 * go-valprint.c (print_go_string): Print space before string.
4965 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4966 space before string.
4967 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4968 space before string or vtbl.
4969 * auxv.c (fprint_target_auxv): Print space after address.
4971 2012-05-18 Tom Tromey <tromey@redhat.com>
4973 * printcmd.c (print_address_demangle): Remove special case for 0.
4975 2012-05-18 Tom Tromey <tromey@redhat.com>
4977 * printcmd.c (print_address_demangle): Add 'opts' argument.
4978 * p-valprint.c (pascal_val_print): Update.
4979 * jv-valprint.c (java_val_print): Update.
4981 * valprint.c (generic_val_print): Update.
4982 (print_function_pointer_address): Add 'options' argument. Remove
4983 'addressprint' argument. Update.
4984 * m2-valprint.c (print_unpacked_pointer): Update.
4985 * gnu-v3-abi.c (print_one_vtable): Update.
4986 (gnuv3_print_method_ptr): Update.
4987 * f-valprint.c (f_val_print): Update.
4988 * cp-valprint.c (cp_print_value_fields): Update.
4989 * valprint.h (print_function_pointer_address): Update.
4990 * c-valprint.c (c_val_print): Update.
4992 2012-05-18 Tom Tromey <tromey@redhat.com>
4994 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4995 directly corresponding to the found psymtab.
4996 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4997 (dw2_find_pc_sect_symtab): Use it.
4998 * block.h (blockvector_contains_pc): Declare.
4999 * block.c (find_block_in_blockvector): New function.
5000 (blockvector_for_pc_sect): Use it.
5001 (blockvector_contains_pc): New function.
5003 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5005 * mips-tdep.h (mips_write_pc): New prototype.
5006 * mips-tdep.c (mips_write_pc): Make external, add description.
5007 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5010 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5012 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5014 (mips_unwind_pc, mips_write_pc): Likewise.
5015 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5018 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5020 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5021 proc_warn, proc_error, proc_get_status, proc_flags,
5022 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5023 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5024 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5025 proc_stop_process, proc_wait_for_stop, proc_run_process,
5026 proc_set_traced_signals, proc_set_traced_faults,
5027 proc_set_traced_sysentry, proc_set_traced_sysexit,
5028 proc_set_held_signals, proc_get_held_signals,
5029 proc_get_traced_signals, proc_get_traced_faults,
5030 proc_get_traced_sysentry, proc_get_traced_sysexit,
5031 proc_clear_current_fault, proc_set_current_signal,
5032 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5033 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5034 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5035 proc_get_current_thread, proc_get_current_thread,
5036 proc_get_current_thread, proc_update_threads,
5037 proc_update_threads, proc_update_threads, proc_update_threads,
5038 proc_iterate_over_threads, procfs_find_new_threads,
5039 procfs_pid_to_str): Make static. Remove advance declaration.
5040 (proc_cursig): Make static. Conditionalized defintion on
5041 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5042 (proc_syscall, proc_set_kill_on_last_close,
5043 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5044 proc_get_pending_signals, proc_get_signal_actions,
5045 proc_trace_signal, proc_ignore_signal): Delete.
5047 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5049 * coffread.c (cs_section_address): Passing proper argument for
5050 `bfd_get_section_vma'.
5051 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5052 `bfd_get_section_flags'.
5053 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5054 `bfd_get_section_vma'.
5056 2012-05-16 Tom Tromey <tromey@redhat.com>
5059 * macrotab.h: (macro_define_special): Declare.
5060 (enum macro_special_kind): New.
5061 (struct macro_definition) <argc, replacement>: Update comments.
5062 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5063 (macro_define_object_internal): New function.
5064 (macro_define_object): Use it.
5065 (macro_define_special): New function.
5066 (fixup_definition): New function.
5067 (macro_lookup_definition, foreach_macro_in_scope)
5068 (foreach_macro): Use fixup_definition.
5069 * macroexp.h (macro_stringify): Declare.
5070 * macroexp.c (free_buffer_return_text): New function.
5071 (stringify): Constify "arg".
5072 (macro_stringify): New function.
5073 * dwarf2read.c (macro_start_file): Call macro_define_special.
5075 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5076 Maciej W. Rozycki <macro@mips.com>
5078 * breakpoint.h (bp_location): Add related_address member.
5079 * inferior.h (get_return_value): Take a pointer to struct value
5080 instead of struct type for the function requested.
5081 * value.h (using_struct_return): Likewise.
5082 * gdbarch.sh (return_value): Take a pointer to struct value
5083 instead of struct type for the function requested.
5084 * breakpoint.c (set_breakpoint_location_function): Initialize
5085 related_address for bp_gnu_ifunc_resolver breakpoints.
5086 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5087 requested function's address to gdbarch_return_value.
5088 * eval.c (evaluate_subexp_standard): Pass the requested
5089 function's address to using_struct_return.
5090 * infcall.c (call_function_by_hand): Pass the requested
5091 function's address to using_struct_return and
5092 gdbarch_return_value.
5093 * infcmd.c (get_return_value): Take a pointer to struct value
5094 instead of struct type for the function requested.
5095 (print_return_value): Update accordingly.
5096 (finish_command_continuation): Likewise.
5097 * stack.c (return_command): Pass the requested function's
5098 address to using_struct_return and gdbarch_return_value.
5099 * value.c (using_struct_return): Take a pointer to struct value
5100 instead of struct type for the function requested. Pass the
5101 requested function's address to gdbarch_return_value.
5102 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5103 New function_value member, replacing function_type.
5104 (bpfinishpy_dealloc): Update accordingly.
5105 (bpfinishpy_pre_stop_hook): Likewise.
5106 (bpfinishpy_init): Likewise. Record the requested function's
5108 * mips-tdep.c (mips_fval_reg): New enum.
5109 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5110 words put in GP registers.
5111 (mips_o64_push_dummy_call): Update a comment.
5112 (mips_o32_return_value): Take a pointer to struct value instead
5113 of struct type for the function requested and use it to check if
5114 using the MIPS16 calling convention. Return the designated
5115 general purpose registers for floating-point values returned in
5117 (mips_o64_return_value): Likewise.
5118 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5119 (ppc_sysv_abi_broken_return_value): Likewise.
5120 (ppc64_sysv_abi_return_value): Likewise.
5121 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5122 value instead of struct type for the function requested.
5123 * amd64-tdep.c (amd64_return_value): Likewise.
5124 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5125 * arm-tdep.c (arm_return_value): Likewise.
5126 * avr-tdep.c (avr_return_value): Likewise.
5127 * bfin-tdep.c (bfin_return_value): Likewise.
5128 * cris-tdep.c (cris_return_value): Likewise.
5129 * frv-tdep.c (frv_return_value): Likewise.
5130 * h8300-tdep.c (h8300_return_value): Likewise.
5131 (h8300h_return_value): Likewise.
5132 * hppa-tdep.c (hppa32_return_value): Likewise.
5133 (hppa64_return_value): Likewise.
5134 * i386-tdep.c (i386_return_value): Likewise.
5135 * ia64-tdep.c (ia64_return_value): Likewise.
5136 * iq2000-tdep.c (iq2000_return_value): Likewise.
5137 * lm32-tdep.c (lm32_return_value): Likewise.
5138 * m32c-tdep.c (m32c_return_value): Likewise.
5139 * m32r-tdep.c (m32r_return_value): Likewise.
5140 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5141 * m68k-tdep.c (m68k_return_value): Likewise.
5142 (m68k_svr4_return_value): Likewise.
5143 * m88k-tdep.c (m88k_return_value): Likewise.
5144 * mep-tdep.c (mep_return_value): Likewise.
5145 * microblaze-tdep.c (microblaze_return_value): Likewise.
5146 * mn10300-tdep.c (mn10300_return_value): Likewise.
5147 * moxie-tdep.c (moxie_return_value): Likewise.
5148 * mt-tdep.c (mt_return_value): Likewise.
5149 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5150 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5151 (ppc_sysv_abi_broken_return_value): Likewise.
5152 (ppc64_sysv_abi_return_value): Likewise.
5153 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5154 * rl78-tdep.c (rl78_return_value): Likewise.
5155 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5156 * rx-tdep.c (rx_return_value): Likewise.
5157 * s390-tdep.c (s390_return_value): Likewise.
5158 * score-tdep.c (score_return_value): Likewise.
5159 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5160 (sh_return_value_fpu): Likewise.
5161 * sh64-tdep.c (sh64_return_value): Likewise.
5162 * sparc-tdep.c (sparc32_return_value): Likewise.
5163 * sparc64-tdep.c (sparc64_return_value): Likewise.
5164 * spu-tdep.c (spu_return_value): Likewise.
5165 * tic6x-tdep.c (tic6x_return_value): Likewise.
5166 * v850-tdep.c (v850_return_value): Likewise.
5167 * vax-tdep.c (vax_return_value): Likewise.
5168 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5169 * xtensa-tdep.c (xtensa_return_value): Likewise.
5170 * gdbarch.c: Regenerate.
5171 * gdbarch.h: Regenerate.
5173 2012-05-15 Tom Tromey <tromey@redhat.com>
5175 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5177 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5179 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5180 of command in two error message.
5182 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5184 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5186 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5188 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5190 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5192 * NEWS (show auto-load scripts-directory): Add forgotten command.
5194 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5196 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5199 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5201 * amd64-tdep.c: Include features/i386/x32.c and
5202 features/i386/x32-avx.c.
5203 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5204 initialize_tdesc_x32_avx.
5206 2012-05-14 Stan Shebs <stan@codesourcery.com>
5209 * breakpoint.h (enum bptype): New type bp_dprintf.
5210 (struct breakpoint): New field extra_string.
5211 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5212 (create_breakpoint): Add extra_string arg.
5213 * breakpoint.c (dprintf_breakpoint_ops): New.
5214 (is_breakpoint): Add bp_dprintf.
5215 (bpstat_what): Add dprintf case.
5216 (bptype_string): Ditto.
5217 (print_one_breakpoint_location): Ditto.
5218 (init_bp_location): Ditto.
5219 (bkpt_print_mention): Ditto.
5220 (dprintf_style_enums): New array.
5221 (dprintf_style): New global.
5222 (dprintf_function): New global.
5223 (dprintf_channel): New global.
5224 (update_dprintf_command_list): New function.
5225 (update_dprintf_commands): New function.
5226 (init_breakpoint_sal): Add extra_string argument, handle it.
5227 (create_breakpoint_sal): Add extra_string argument.
5228 (create_breakpoints_sal): Add extra_string argument, update callers.
5229 (find_condition_and_thread): Add extra argument.
5230 (create_breakpoint): Add extra_string argument, record it.
5231 (dprintf_command): New function.
5232 (break_command_1): Add arg to create_breakpoint call.
5233 (handle_gnu_v3_exceptions): Ditto.
5234 (trace_command): Ditto.
5235 (ftrace_command): Ditto.
5236 (strace_command): Ditto.
5237 (bkpt_print_mention): Add dprintf case.
5238 (create_breakpoint_sal_default): Add extra_string argument.
5239 (_initialize_breakpoint): Add new commands.
5240 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5241 * python/py-breakpoint.c (bppy_init): Ditto.
5242 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5244 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5246 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5248 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5250 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5253 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5255 Add a new function gdb.find_pc_line to the Python API.
5256 * NEWS (Python Scripting): Add entry about the new function.
5257 * python/python.c (gdbpy_find_pc_line): New function which
5258 implements gdb.find_pc_line.
5259 (GdbMethods): Add entry for the new function.
5261 2012-05-12 Pedro Alves <palves@redhat.com>
5263 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5264 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5266 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5268 * inferior.c: Include completer.h
5269 (initialize_inferiors): Set completer of add-inferior to
5272 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5274 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5275 gdbarch_ptr_bit for x32 core dump.
5277 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5279 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5280 and features/i386/x32-avx-linux.c.
5282 2012-05-11 Stan Shebs <stan@codesourcery.com>
5283 Kwok Cheung Yeung <kcy@codesourcery.com>
5285 * NEWS: Describe new info os commands.
5286 * common/linux-osdata.c (PID_T, TIME_T): Define.
5287 (MAX_PID_T_STRLEN): New.
5288 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5290 (command_from_pid): Add comment. Change to use PID_T.
5291 (commandline_from_pid): Change to use PID_T.
5292 (user_from_pid): Add comment.
5293 (get_process_owner): Add comment. Change to use PID_T and
5295 (get_number_of_cpu_cores): Add comment.
5296 (get_cores_used_by_process): Add comment. Change to use PID_T and
5298 (linux_xfer_osdata_processes): Change to use PID_T and
5300 (compare_processes): New function.
5301 (linux_xfer_osdata_processgroups): New function.
5302 (linux_xfer_osdata_threads): Change to use PID_T.
5303 (linux_xfer_osdata_fds): New function.
5304 (format_socket_state, print_sockets): New functions.
5305 (union socket_addr): New union.
5306 (linux_xfer_osdata_isockets): New function.
5307 (time_from_time_t, group_from_gid): New functions.
5308 (linux_xfer_osdata_shm): New function.
5309 (linux_xfer_osdata_sem): New function.
5310 (linux_xfer_osdata_msg): New function.
5311 (linux_xfer_osdata_modules): New function.
5312 (osdata_table): Add new entries.
5313 * common/buffer.c (buffer_xml_printf): Add support for long and
5314 long long format specifiers.
5316 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5318 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5319 (tdesc_x32_avx_linux): Likewise.
5321 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5323 Implement multi-component --with-auto-load-dir.
5324 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5326 (--with-auto-load-safe-path): Update the default value description.
5327 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5329 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5330 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5331 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5332 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5333 "set auto-load scripts-directory".
5334 * config.in: Regenerate.
5335 * configure: Regenerate.
5336 * configure.ac (--with-auto-load-dir): New configure option.
5337 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5339 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5341 Provide $ddir substitution for --with-auto-load-safe-path.
5342 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5344 * auto-load.c: Include observer.h.
5345 (auto_load_safe_path_vec_update): Call substitute_path_component for
5346 each component. New variable ddir_subst.
5347 (auto_load_gdb_datadir_changed): New function.
5348 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5349 AUTO_LOAD_SAFE_PATH. New comment.
5350 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5351 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5352 * config.in: Regenerate.
5353 * configure: Regenerate.
5354 * configure.ac (--auto-load-safe-path): Rename
5355 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5356 GDB_DATADIR/auto-load.
5357 * defs.h (substitute_path_component): New declaration.
5358 * top.c: Include observer.h.
5359 (set_gdb_datadir): New function.
5360 (init_main): Install it for "set data-directory".
5361 * utils.c (substitute_path_component): New function.
5363 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5365 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5366 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5367 DEBUG_FILE_DIRECTORY. Handle multiple components of
5368 DEBUG_FILE_DIRECTORY.
5370 2012-05-10 Tom Tromey <tromey@redhat.com>
5372 * dwarf2read.c (recursively_write_psymbols): New function.
5373 (write_psymtabs_to_index): Use it.
5375 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5377 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5378 (load_partial_comp_unit): Update.
5379 (queue_comp_unit): Add argument 'pretend_language'.
5380 (process_queue): Update.
5381 (psymtab_to_symtab_1): Skip dependencies that have a user.
5382 (load_partial_comp_unit_reader): Give meaning to the 'data'
5384 (load_full_comp_unit): Add 'pretend_language' argument.
5385 (process_full_comp_unit): Add 'pretend_language' argument. Set
5387 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5389 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5390 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5392 (prepare_one_comp_unit): Add 'pretend_language' argument.
5394 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5395 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5396 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5397 (dw2_do_instantiate_symtab): Check whether symtab was read in
5399 (dw2_instantiate_symtab): Add assertion. Call
5400 process_cu_includes.
5401 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5402 (partial_symtab_p): New typedef.
5403 (set_partial_user): New function.
5404 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5405 (scan_partial_symbols): Add imported CU to imported_symtabs.
5406 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5407 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5408 (get_symtab, recursively_compute_inclusions)
5409 (compute_symtab_includes, process_cu_includes)
5410 (process_imported_unit_die): New functions.
5411 (process_die) <DW_TAG_imported_unit>: New case.
5412 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5414 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5416 (struct partial_die_info) <locdesc>: Remove.
5418 (process_psymtab_comp_unit): Add 'read_partial' argument.
5420 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5421 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5422 (add_partial_symbol): Update.
5423 (process_die): Handle DW_TAG_partial_unit.
5424 (read_file_scope): Update comment.
5425 (load_partial_dies): Handle DW_TAG_imported_unit.
5426 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5427 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5429 2012-05-10 Tom Tromey <tromey@redhat.com>
5431 * cc-with-dwz.sh: New file.
5433 2012-05-10 Tom Tromey <tromey@redhat.com>
5435 * symtab.h (struct symtab) <includes, user>: New fields.
5436 * block.h (struct block_iterator) <d, idx, which>: New fields.
5437 * block.c (initialize_block_iterator, find_iterator_symtab)
5438 (block_iterator_step, block_iter_name_step)
5439 (block_iter_match_step): New functions.
5440 (block_iterator_first, block_iterator_next)
5441 (block_iter_name_first, block_iter_name_next)
5442 (block_iter_match_first, block_iter_match_next): Rewrite.
5443 (get_block_symtab): New function.
5445 2012-05-10 Tom Tromey <tromey@redhat.com>
5447 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5449 * jit.c (finalize_symtab): Use allocate_global_block,
5451 * buildsym.c (finish_block_internal): New function, from old
5453 (finish_block): Rewrite.
5454 (end_symtab): Use finish_block_internal, set_block_symtab.
5455 * block.h (struct global_block): New.
5456 (allocate_global_block, set_block_symtab): Declare.
5457 * block.c (allocate_global_block, set_block_symtab): New
5460 2012-05-10 Tom Tromey <tromey@redhat.com>
5462 * psymtab.c (partial_map_expand_apply): Add assertion.
5463 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5464 (psymtab_to_symtab): Find unshared psymtab.
5465 (dump_psymtab): Print including psymtabs.
5466 (recursively_search_psymtabs): New function.
5467 (expand_symtabs_matching_via_partial): Use it.
5468 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5470 (enum psymtab_search_status): New.
5472 2012-05-10 Tom Tromey <tromey@redhat.com>
5474 * tracepoint.c (scope_info): Update.
5475 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5476 (find_pc_sect_symtab, search_symbols)
5477 (default_make_symbol_completion_list_break_on)
5478 (make_file_symbol_completion_list): Update.
5479 * symmisc.c (dump_symtab_1): Update.
5480 * stack.c (print_frame_args, iterate_over_block_locals)
5481 (print_frame_labels, iterate_over_block_arg_vars): Update.
5482 * python/py-block.c (block_object) <dict>: Remove.
5484 <iter>: Change type.
5485 (blpy_iter): Update.
5486 (blpy_block_syms_iternext): Update.
5487 * psymtab.c (map_block): Use block iterators.
5488 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5489 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5490 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5491 * infrun.c (check_exception_resume): Update.
5492 * cp-support.c (make_symbol_overload_list_block): Update.
5493 * coffread.c (patch_opaque_types): Update.
5494 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5495 * block.h (struct block_iterator): New.
5496 (block_iterator_first, block_iterator_next, block_iter_name_first)
5497 (block_iter_name_next, block_iter_match_first)
5498 (block_iter_match_next): Declare.
5499 (ALL_BLOCK_SYMBOLS): Redefine.
5500 * block.c (block_iterator_first, block_iterator_next)
5501 (block_iter_name_first, block_iter_name_next)
5502 (block_iter_match_first, block_iter_match_next): New functions.
5503 * ada-lang.c (ada_add_block_symbols)
5504 (ada_make_symbol_completion_list): Use block iterator.
5506 2012-05-10 Tom Tromey <tromey@redhat.com>
5508 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5509 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5510 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5511 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5512 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5515 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5517 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5518 print-file-var-lib2.c, print-file-var-main.c and
5519 print-file-var.exp (located in gdb/testsuite/gdb.base).
5521 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5523 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5524 try locating the symbol in the symbol's own objfile first, before
5525 extending the search to all objfiles.
5526 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5527 out of lookup_symbol_aux_symtabs.
5528 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5529 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5530 Do not search EXCLUDE_OBJFILE.
5531 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5532 (lookup_symbol_global): Search for matches in the block's objfile
5533 first, before searching all other objfiles.
5535 2012-05-10 Tristan Gingold <gingold@adacore.com>
5537 * printcmd.c (set_command): Add pre/post inc/dec.
5539 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5541 * gdb.1: Document -ex option.
5543 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5545 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5546 * inferior.h (AT_SYMBOL): Delete.
5548 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5550 * mips-tdep.c (mips_push_dummy_code): New function.
5551 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5552 ON_STACK and install mips_push_dummy_code as our gdbarch
5553 push_dummy_code routine.
5555 2012-05-09 Pedro Alves <palves@redhat.com>
5557 * target.c (set_maintenance_target_async_permitted): Rename to ...
5558 (set_target_async_command): ... this.
5559 (show_maintenance_target_async_permitted): Rename to ...
5560 (show_target_async_command): ... this.
5561 (initialize_targets): Adjust.
5563 2012-05-08 Doug Evans <dje@google.com>
5565 * go-exp.y (classify_name): Add missing assignment of fields of
5568 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5570 Display the ">" prompt in interactive mode while reading canned
5571 commands, even when the current interpreter is MI.
5573 * interps.c (interp_set_temp): New function.
5575 * interps.h (interp_set_temp): Add prototype.
5577 * cli/cli-script.c (restore_interp): New cleanup function.
5578 (read_command_lines): Temporarily override the current interpreter
5579 with CLI and arrange for restoring the original one.
5581 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5583 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5585 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5587 * probe.c (parse_probes): Move conditional to check for
5588 debuginfo files from here...
5589 * stap-probe.c (stap_get_probes): ... to here.
5591 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5592 H.J. Lu <hongjiu.lu@intel.com>
5594 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5595 `movl %esp, %ebp' for the X32 ABI.
5597 2012-05-07 Tom Tromey <tromey@redhat.com>
5599 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5601 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5602 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5603 (dwarf_stack_op_name): Remove.
5604 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5605 (decode_locdesc): Use get_DW_OP_name.
5606 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5607 (dwarf2_compile_expr_to_ax): Likewise.
5608 (disassemble_dwarf_expression): Likewise.
5609 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5611 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5613 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5614 (sh_linux_sigtramp_cache): New function.
5615 (sh_linux_sigreturn_init): New function.
5616 (sh_linux_rt_sigreturn_init): New function.
5617 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5619 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5621 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5622 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5623 (sh_linux_init_abi): Add init calls to register new tramp_frame
5624 definitions under 32-bit SH, update comments.
5626 2012-05-07 Pedro Alves <palves@redhat.com>
5630 * amd64-linux-tdep.c: Include glibc-tdep.h.
5631 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5632 gdbarch_skip_solib_resolver callback.
5634 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5636 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5637 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5638 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5639 (add_auto_load_safe_path): Change the error message.
5640 (_initialize_auto_load): Change the "safe-path" help text.
5641 * configure: Regenerate
5642 * configure.ac (--without-auto-load-safe-path): Set
5643 WITH_AUTO_LOAD_SAFE_PATH to /.
5645 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5647 * stap-probe.h: Do not include unecessary `probe.h'.
5649 2012-05-05 Alan Modra <amodra@gmail.com>
5651 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5652 bfd_und_section_ptr.
5653 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5654 and bfd_com_section_ptr.
5656 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5658 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5660 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5662 * windows-nat.h (segment_register_p_ftype): New typedef.
5663 (windows_set_segment_register_p): Add declaration.
5664 * windows-nat.c (segment_register_p): New static global.
5665 (windows_set_segment_register_p): New function.
5666 (do_windows_fetch_inferior_registers): Add special handling
5667 for segment registers.
5668 * amd64-windows-nat.c: #include "amd64-tdep.h".
5669 (amd64_windows_segment_register_p): New function.
5670 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5671 * i386-windows-nat.c: #include "i386-tdep.h".
5672 (i386_windows_segment_register_p): New function.
5673 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5675 2012-05-04 Tristan Gingold <gingold@adacore.com>
5677 * printcmd.c (set_command): Emit a warning if the expression is not
5680 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5682 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5685 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5687 * stap-probe.c (stap_is_operator): Change declaration.
5688 (stap_get_opcode): Change return value.
5689 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5690 `stap_parse_argument_1'.
5692 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5694 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5697 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5699 Add two new methods global_block and static_block to gdb.Symtab
5701 * NEWS (Python scripting): Add entry about the new methods.
5702 * python/py-symtab.c (stpy_global_block): New function which
5703 implements the gdb.Symtab.global_block() method.
5704 (stpy_static_block): New function which implements the
5705 gdb.Symtab.static_block() method.
5706 (symtab_object_methods): Add entries for the two new methods.
5708 2012-05-03 Doug Evans <dje@google.com>
5710 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5713 2012-05-03 Yao Qi <yao@codesourcery.com>
5715 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5717 (i386_process_record): Ditto.
5719 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5721 * infcall.c (unwind_on_signal_p): Make static.
5723 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5725 * sol-thread.c (solaris_pid_to_str): Make static.
5726 (_initialize_sol_thread): Add prototype.
5728 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5730 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5732 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5734 * MAINTAINERS: Remove myself.
5736 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5738 Fix --without-auto-load-safe-path for MS-Windows host platform.
5739 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5741 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5743 * gdb_curses.h: Undefine KEY_EVENT before including curses
5744 headers. Move "#undef MOUSE_MOVED" before any curses header
5747 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5749 * features/i386/i386-mmx-linux.c: Regenerate.
5750 * features/rs6000/powerpc-32.c: Likewise.
5751 * features/rs6000/powerpc-32l.c: Likewise.
5752 * features/rs6000/powerpc-403.c: Likewise.
5753 * features/rs6000/powerpc-403gc.c: Likewise.
5754 * features/rs6000/powerpc-405.c: Likewise.
5755 * features/rs6000/powerpc-505.c: Likewise.
5756 * features/rs6000/powerpc-601.c: Likewise.
5757 * features/rs6000/powerpc-602.c: Likewise.
5758 * features/rs6000/powerpc-603.c: Likewise.
5759 * features/rs6000/powerpc-604.c: Likewise.
5760 * features/rs6000/powerpc-64.c: Likewise.
5761 * features/rs6000/powerpc-64l.c: Likewise.
5762 * features/rs6000/powerpc-750.c: Likewise.
5763 * features/rs6000/powerpc-860.c: Likewise.
5764 * features/rs6000/powerpc-e500.c: Likewise.
5765 * features/rs6000/powerpc-e500l.c: Likewise.
5766 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5767 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5768 * features/rs6000/rs6000.c: Likewise.
5770 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5772 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5774 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5775 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5776 (stap_parse_argument) <e>: Likewise.
5777 (handle_stap_probe) <byte_order>: Likewise.
5779 2012-04-30 Doug Evans <dje@google.com>
5781 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5782 init_and_read_dies_worker. All callers updated.
5783 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5784 replaced with init_cutu_and_read_dies.
5785 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5786 (find_partial_die): Remove FIXME. Don't free current CU.
5788 2012-04-30 Sterling Augustine <saugustine@google.com>
5790 * contrib: New directory.
5791 * contrib/test_pubnames_and_indexes.py: New file.
5793 2012-04-30 Doug Evans <dje@google.com>
5795 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5796 All callers updated.
5797 (init_cu_die_reader): Verify the section is non-empty.
5798 (dwarf_decode_line_header): Don't dereference section->asection
5799 until we know the section is present.
5801 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5803 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5806 2012-04-29 Yao Qi <yao@codesourcery.com>
5808 * gdb-code-style.el: New hook gdb-markup-hook
5809 and gdb-comment-hook.
5811 2012-04-28 Doug Evans <dje@google.com>
5813 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5814 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5816 * symfile.h (dwarf2_debug_sections): New member addr.
5817 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5818 (ctx_no_get_addr_index): New function.
5819 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5820 (ctx_no_get_addr_index): Declare.
5821 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5822 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5823 (dwarf_expr_ctx_funcs): Update.
5824 (needs_get_addr_index): New function.
5825 (needs_frame_ctx_funcs): Update.
5826 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5827 * dwarf2read.c: #include "gdbcore.h".
5828 (dwarf2_per_objfile): New members addr, dwo_files.
5829 (dwarf2_elf_names): Add entry for addr.
5830 (struct dwo_section_names): New type.
5831 (dwo_section_names): New static global.
5832 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5833 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5834 old debug_types_section member updated to use this.
5835 Rename member debug_types_section to info_or_types_section,
5837 (signatured_type): Rename member type_offset to type_offset_in_tu,
5838 all uses updated. New member type_offset_in_section.
5839 (struct dwo_sections): New type.
5840 (struct dwo_unit): New type.
5841 (struct dwo_file): New type.
5842 (die_reader_specs): New member dwo_file.
5843 (dwarf2_locate_sections): Watch for .debug_addr.
5844 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5845 (dwarf2_read_section): Get bfd of section from bfd's asection,
5847 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5848 (create_signatured_type_table_from_index): Initialize
5849 sig_type->info_or_types_section.
5850 (dw2_get_file_names): Statement lists for type units with DWO files
5851 live in the DWO file.
5852 (create_debug_types_hash_table): New function.
5853 (create_all_type_units): Rewrite.
5854 (init_cu_die_reader): New arg dwo_file, all callers updated.
5855 (init_and_read_dies_worker): Get section from
5856 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5857 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5858 continue reading the CU/TU from there.
5859 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5860 updated. Get section from this_cu->info_or_types_section.
5861 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5862 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5863 DW_FORM_GNU_str_index.
5864 (hash_dwo_file, eq_dwo_file): New functions.
5865 (allocate_dwo_file_hash_table): New function.
5866 (hash_dwo_unit, eq_dwo_unit): New functions.
5867 (allocate_dwo_unit_table): New function.
5868 (dwarf2_locate_dwo_sections): New function.
5869 (struct create_dwo_info_table_data): New type.
5870 (create_debug_info_hash_table_reader): New function.
5871 (create_debug_info_hash_table): New function.
5872 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5873 (lookup_dwo_file): New function.
5874 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5875 (free_dwo_file, free_dwo_file_cleanup): New functions.
5876 (free_dwo_file_from_slot, free_dwo_files): New functions.
5877 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5878 (dwarf2_record_block_ranges): Ditto.
5879 (read_partial_die): Ditto.
5880 (process_enumeration_scope): Update to use type_offset_in_section.
5881 (read_full_die_1): New function.
5882 (read_full_die): Rewrite.
5883 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5884 DW_FORM_GNU_str_index.
5885 (read_addr_index_1, read_addr_index): New functions.
5886 (read_addr_index_from_leb128): New function.
5887 (struct dwarf2_read_addr_index_data): New type.
5888 (dwarf2_read_addr_index_reader): New function.
5889 (dwarf2_read_addr_index): New function.
5890 (read_str_index): New function.
5891 (leb128_size): New function.
5892 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5893 If processing a type unit from a DWO file, get the line section
5895 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5896 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5897 DW_FORM_GNU_str_index.
5898 (lookup_die_type): Check whether section offset of type's die is
5899 known before looking it up. Remove assert. Condition can
5900 legimately happen for inter-cu type references.
5901 (dwarf_attr_name): Handle Fission attributes.
5902 (dwarf_form_name): Handle Fission forms.
5903 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5904 DW_FORM_GNU_str_index.
5905 (follow_die_sig): Update to use type_offset_in_section.
5906 (decode_locdesc): New case DW_OP_GNU_addr_index.
5907 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5908 DW_FORM_GNU_str_index.
5909 (cu_debug_loc_section): New function.
5910 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5911 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5912 Free DWO files if present.
5913 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5915 Refactor DIE reading.
5916 * dwarf2read.c (dwarf2_per_objfile): Replace members
5917 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5918 (die_reader_specs): New member "die_section". Temporarily make
5919 member "buffer" non-const, pending constifying all info_ptr uses.
5920 (die_reader_func_ftype): New typedef.
5921 (dw2_get_file_names_reader): New function.
5922 (dw2_get_file_names): Rewrite.
5923 (read_and_check_type_unit_head): Rename arg type_offset to
5925 (create_all_type_units): Improve debugging message.
5926 Improve dummy type unit check.
5927 (init_cu_die_reader): New arg "section". All callers updated.
5928 (init_and_read_dies_worker): New function.
5929 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5930 (init_cutu_and_read_dies_no_follow): New function.
5931 (init_cutu_and_read_dies_simple): New function.
5932 (process_psymtab_comp_unit_reader): New function.
5933 (process_psymtab_comp_unit): Delete args section,
5934 is_debug_types_section. Rewrite. All callers updated.
5935 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5936 All callers updated. Rewrite.
5937 (load_partial_comp_unit_reader): New function.
5938 (load_partial_comp_unit): Rewrite.
5939 (skip_children): New arg reader. Delete args buffer, cu.
5940 All callers updated.
5941 (skip_one_die): New arg reader. Delete args buffer, cu.
5942 All callers updated.
5943 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5944 All callers updated.
5945 (load_full_comp_unit_reader): New function.
5946 (load_full_comp_unit): Rewrite.
5947 (read_comp_unit): Delete.
5948 (read_die_and_children_1): Delete, contents moved ...
5949 (read_die_and_children): ... here.
5950 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5951 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5952 All callers updated.
5953 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5954 All callers updated.
5955 (find_partial_die): Rewrite load_all_dies support.
5956 (read_attribute_value): New arg reader. Delete args abfd, cu.
5957 All callers updated.
5958 (read_attribute): New arg reader. Delete args abfd, cu.
5959 All callers updated.
5960 (load_full_type_unit): Add assert.
5961 (read_signatured_type_reader): New function.
5962 (read_signatured_type): Rewrite.
5963 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5964 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5965 All callers updated. Set per_cu->cu = NULL after freeing it.
5966 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5967 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5968 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5969 (set_die_type): Update.
5970 (get_die_type_at_offset): Update.
5971 (read_file_scope): Call prepare_one_comp_unit.
5972 (read_type_unit_scope): Ditto.
5973 (prepare_one_comp_unit): Set producer if present.
5975 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5977 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5978 gettext function on `error'.
5980 2012-04-27 Doug Evans <dje@google.com>
5982 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5985 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5986 Tom Tromey <tromey@redhat.com>
5988 * breakpoint.c (struct breakpoint_objfile_data)
5989 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5990 <exception_probes>: New fields.
5991 (free_breakpoint_probes): New function.
5992 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5993 `_Unwind_DebugHook'.
5994 (create_exception_master_breakpoint): Likewise.
5995 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5996 * infrun.c: Including necessary header files for handling SystemTap
5998 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5999 via SystemTap probes.
6000 (check_exception_resume): Remove `func' argument. Handle exception
6001 unwinding breakpoint set via a SystemTap probe.
6002 (insert_exception_resume_from_probe): New function.
6004 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6005 Tom Tromey <tromey@redhat.com>
6006 Jan Kratochvil <jan.kratochvil@redhat.com>
6008 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6009 (COMMON_OBS): Likewise.
6010 (HFILES_NO_SRCDIR): Add `probe'.
6011 * NEWS: Mention support for static and SystemTap probes.
6012 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6013 SystemTap probes' arguments parser.
6014 * arm-linux-tdep.c: Including headers needed to perform the parsing
6015 of SystemTap probes' arguments.
6016 (arm_stap_is_single_operand): New function.
6017 (arm_stap_parse_special_token): Likewise.
6018 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6019 probes' arguments parser.
6020 * ax-gdb.c (require_rvalue): Removing static declaration.
6021 (gen_expr): Likewise.
6022 * ax-gdb.h (gen_expr): Declaring function.
6023 (require_rvalue): Likewise.
6024 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6025 (bkpt_probe_breakpoint_ops): New variable.
6026 (momentary_breakpoint_from_master): Set the `probe' value.
6027 (add_location_to_breakpoint): Likewise.
6028 (break_command_1): Using proper breakpoint_ops according to the
6029 argument passed by the user in the command line.
6030 (bkpt_probe_insert_location): New function.
6031 (bkpt_probe_remove_location): Likewise.
6032 (bkpt_probe_create_sals_from_address): Likewise.
6033 (bkpt_probe_decode_linespec): Likewise.
6034 (tracepoint_probe_create_sals_from_address): Likewise.
6035 (tracepoint_probe_decode_linespec): Likewise.
6036 (tracepoint_probe_breakpoint_ops): New variable.
6037 (trace_command): Using proper breakpoint_ops according to the
6038 argument passed by the user in the command line.
6039 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6040 static probes on breakpoints and tracepoints.
6041 * breakpoint.h (struct bp_location) <probe>: New field.
6042 * cli-utils.c (skip_spaces_const): New function.
6043 (extract_arg): Likewise.
6044 * cli-utils.h (skip_spaces_const): Likewise.
6045 (extract_arg): Likewise.
6046 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6047 * configure.ac: Append `stap-probe.o' to be generated when ELF
6049 * configure: Regenerate.
6050 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6051 * elfread.c: Include `probe.h' and `arch-utils.h'.
6052 (probe_key): New variable.
6053 (elf_get_probes): New function.
6054 (elf_get_probe_argument_count): Likewise.
6055 (elf_evaluate_probe_argument): Likewise.
6056 (elf_compile_to_ax): Likewise.
6057 (elf_symfile_relocate_probe): Likewise.
6058 (stap_probe_key_free): Likewise.
6059 (elf_probe_fns): New variable.
6060 (elf_sym_fns): Add `sym_probe_fns' value.
6061 (elf_sym_fns_lazy_psyms): Likewise.
6062 (elf_sym_fns_gdb_index): Likewise.
6063 (_initialize_elfread): Initialize objfile cache for static
6065 * gdb_vecs.h (struct probe): New forward declaration.
6066 (probe_p): New VEC declaration.
6067 * gdbarch.c: Regenerate.
6068 * gdbarch.h: Regenerate.
6069 * gdbarch.sh (stap_integer_prefix): New variable.
6070 (stap_integer_suffix): Likewise.
6071 (stap_register_prefix): Likewise.
6072 (stap_register_suffix): Likewise.
6073 (stap_register_indirection_prefix): Likewise.
6074 (stap_register_indirection_suffix): Likewise.
6075 (stap_gdb_register_prefix): Likewise.
6076 (stap_gdb_register_suffix): Likewise.
6077 (stap_is_single_operand): New function.
6078 (stap_parse_special_token): Likewise.
6079 (struct stap_parse_info): Forward declaration.
6080 * i386-tdep.c: Including headers needed to perform the parsing
6081 of SystemTap probes' arguments.
6082 (i386_stap_is_single_operand): New function.
6083 (i386_stap_parse_special_token): Likewise.
6084 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6085 probes' arguments parser.
6086 * i386-tdep.h (i386_stap_is_single_operand): New function.
6087 (i386_stap_parse_special_token): Likewise.
6088 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6089 * mipsread.c (ecoff_sym_fns): Likewise.
6090 * objfiles.c (objfile_relocate1): Support relocation for static
6092 * parse.c (prefixify_expression): Remove static declaration.
6093 (initialize_expout): Likewise.
6094 (reallocate_expout): Likewise.
6095 * parser-defs.h (initialize_expout): Declare function.
6096 (reallocate_expout): Likewise.
6097 (prefixify_expression): Likewise.
6098 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6099 of SystemTap probes' arguments.
6100 (ppc_stap_is_single_operand): New function.
6101 (ppc_stap_parse_special_token): Likewise.
6102 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6103 probes' arguments parser.
6104 * probe.c: New file, for generic statically defined probe support.
6105 * probe.h: Likewise.
6106 * s390-tdep.c: Including headers needed to perform the parsing of
6107 SystemTap probes' arguments.
6108 (s390_stap_is_single_operand): New function.
6109 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6110 probes' arguments parser.
6111 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6112 * stap-probe.c: New file, for SystemTap probe support.
6113 * stap-probe.h: Likewise.
6114 * symfile.h: Include `gdb_vecs.h'.
6115 (struct sym_probe_fns): New struct.
6116 (struct sym_fns) <sym_probe_fns>: New field.
6117 * symtab.c (init_sal): Initialize `probe' field.
6118 * symtab.h (struct probe): Forward declaration.
6119 (struct symtab_and_line) <probe>: New field.
6120 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6122 (stop_tracing): Likewise.
6123 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6125 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6126 Tom Tromey <tromey@redhat.com>
6128 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6129 and to compile agent expressions.
6130 * infrun.c (siginfo_make_value): New argument `ignore'.
6131 (siginfo_funcs): New struct.
6132 (_initialize_infrun): New argument when calling
6133 `create_internalvar_type_lazy'.
6134 * thread.c (thread_id_make_value): New argument `ignore'.
6135 (thread_funcs): New struct.
6136 (_initialize_thread): New argument when calling
6137 `create_internalvar_type_lazy'.
6138 * tracepoint.c (sdata_make_value): New argument `ignore'.
6139 (sdata_funcs): New struct.
6140 (_initialize_tracepoint): New argument when calling
6141 `create_internalvar_type_lazy'.
6142 * value.c (make_value): New struct.
6143 (create_internalvar_type_lazy): New argument `data'.
6144 (compile_internalvar_to_ax): New function.
6145 (value_of_internalvar): Properly handling `make_value' case.
6146 (clear_internalvar): Likewise.
6147 (show_convenience): Adding `TRY_CATCH' block.
6148 * value.h (internalvar_make_value): Delete, replace by...
6149 (struct internalvar_funcs): ... this.
6150 (create_internalvar_type_lazy) <fun>: Delete argument.
6151 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6152 (compile_internalvar_to_ax): New function.
6153 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6154 (tlb_funcs): New struct.
6155 (_initialize_windows_tdep): New argument when calling
6156 `create_internalvar_type_lazy'.
6158 2012-04-27 Mark Wielaard <mjw@redhat.com>
6160 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6161 see whether it is an address or a constant offset from DW_AT_low_pc.
6162 (dwarf2_record_block_ranges): Likewise.
6163 (read_partial_die): Likewise.
6165 2012-04-26 Mark Wielaard <mjw@redhat.com>
6167 * MAINTAINERS (Write After Approval): Add myself to the list.
6169 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6171 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6172 (proc_prettyprint_signal): Likewise.
6173 (proc_prettyprint_faultset): Likewise.
6174 (proc_prettyprint_fault): Likewise.
6175 (proc_prettyprint_actionset): Likewise.
6176 (proc_prettyprint_flags): Move to new proc-flags.c section.
6177 (proc_prettyfprint_flags): New prototype.
6178 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6179 (proc_syscall, proc_cursig): Likewise.
6180 (proc_set_kill_on_last_close): Likewise.
6181 (proc_unset_kill_on_last_close): Likewise.
6182 (proc_set_watchpoint): Make static.
6183 (proc_delete_dead_threads): Likewise.
6184 (procfs_set_watchpoint): Likewise.
6185 (_initialize_procfs): Add prototype.
6186 * proc-events.c: Include proc-utils.h.
6187 (init_syscall_table): Make static.
6188 * proc-api.c (_initialize_proc_api): Add prototype.
6189 * proc-flags.c: Include proc-utils.h.
6191 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6193 * configure.ac: Add AC_ARG_PROGRAM.
6194 * configure: Regenerate.
6196 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6198 Fix DW_AT_lower_bound defaults for DWARF-4+.
6199 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6200 high. New variable low_default_is_valid. Implement DWARF-4+
6201 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6202 no default by the DWARF standard.
6204 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6205 Maciej W. Rozycki <macro@codesourcery.com>
6207 * infrun.c (handle_inferior_event): Move the check for return
6208 trampolines ahead of the check for function trampolines.
6209 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6210 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6211 (mips_str_mips16_ret_stub): Likewise.
6212 (mips_str_call_fp_stub): Likewise.
6213 (mips_str_call_stub): Likewise.
6214 (mips_str_fn_stub): Likewise.
6215 (mips_str_pic): Likewise.
6216 (mips_in_frame_stub): New function.
6217 (mips_unwind_pc): Return the return address rather than the PC
6218 if the PC of an intermediate frame is inside a call thunk.
6219 (mips_is_stub_suffix): New function.
6220 (mips_is_stub_mode): Likewise.
6221 (mips_get_mips16_fn_stub_pc): Likewise.
6222 (mips_skip_mips16_trampoline_code): Update to handle all the
6223 currently generated stub types. Don't recurse into __fn_stub
6224 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6225 Use cooked register accesses.
6226 (mips_in_return_stub): Reintroduce function.
6227 (mips_skip_trampoline_code): Traverse trampolines recursively.
6228 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6230 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6234 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6236 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6237 * features/arm-with-m-vfp-d16.xml: New file. Describes
6238 Cortex-M with VFPv4-sp-d16 FPU register layout.
6239 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6240 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6241 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6242 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6243 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6245 2012-04-25 Doug Evans <dje@google.com>
6247 * cli/cli-decode.c (print_doc_line): Use stream instead of
6250 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6252 * features/arm-with-iwmmxt.c: Regenerate.
6253 * features/arm-with-m-fpa-layout.c: Likewise.
6254 * features/arm-with-m.c: Likewise.
6255 * features/arm-with-neon.c: Likewise.
6256 * features/arm-with-vfpv2.c: Likewise.
6257 * features/arm-with-vfpv3.c: Likewise.
6258 * features/mips-dsp-linux.c: Likewise.
6259 * features/mips-linux.c: Likewise.
6260 * features/mips64-dsp-linux.c: Likewise.
6261 * features/mips64-linux.c: Likewise.
6262 * features/s390-linux32.c: Likewise.
6263 * features/s390-linux32v1.c: Likewise.
6264 * features/s390-linux32v2.c: Likewise.
6265 * features/s390-linux64.c: Likewise.
6266 * features/s390-linux64v1.c: Likewise.
6267 * features/s390-linux64v2.c: Likewise.
6268 * features/s390x-linux64.c: Likewise.
6269 * features/s390x-linux64v1.c: Likewise.
6270 * features/s390x-linux64v2.c: Likewise.
6271 * features/tic6x-c62x-linux.c: Likewise.
6272 * features/tic6x-c62x.c: Likewise.
6273 * features/tic6x-c64x-linux.c: Likewise.
6274 * features/tic6x-c64x.c: Likewise.
6275 * features/tic6x-c64xp-linux.c: Likewise.
6276 * features/tic6x-c64xp.c: Likewise.
6277 * target-descriptions.c: Only generate `field_type' and `type'
6278 variables when needed.
6280 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6282 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6284 2012-04-25 Doug Evans <dje@google.com>
6286 Initial pass at Go language support.
6288 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6290 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6291 (YYFILES): Add go-exp.c.
6292 (YYOBJ): Add go-exp.o.
6293 (local-maintainer-clean): Delete go-exp.c.
6294 * defs.h (enum language): Add language_go.
6295 * dwarf2read.c: #include "go-lang.h".
6296 (fixup_go_packaging): New function.
6297 (process_full_comp_unit): Call it when processing Go CUs.
6298 (dwarf2_physname): Add Go support.
6299 (read_file_scope): Handle missing language spec for GNU Go.
6300 (set_cu_language): Handle DW_LANG_Go.
6301 * go-exp.y: New file.
6302 * go-lang.h: New file.
6303 * go-lang.c: New file.
6304 * go-typeprint.c: New file.
6305 * go-valprint.c: New file.
6306 * symtab.c: #include "go-lang.h".
6307 (symbol_set_language): Handle language_go.
6308 (symbol_find_demangled_name, symbol_set_names): Ditto.
6309 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6311 2012-04-24 Jim Meyering <meyering@redhat.com>
6313 avoid a few strncpy-induced buffer overruns
6314 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6315 fname and psargs before trying to concatenate.
6316 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6317 "name" before applying strchr.
6319 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6321 * CONTRIBUTE: Use unified diff instead of context diff when
6324 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6326 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6327 code. Handle JR.HB correctly.
6329 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6332 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6333 with the other MIPS16 helpers.
6335 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6337 * observer.sh: Conditionally declare `args', thus cleaning up
6338 unused instances of this variable.
6340 2012-04-24 Yao Qi <yao@codesourcery.com>
6342 Revert this patch to allow breakpoint always-inserted
6344 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6345 * breakpoint.c: Include record.h.
6346 (breakpoints_always_inserted_mode): Return false when the record
6349 * breakpoint.c (iterate_over_bp_locations): New.
6350 * breakpoint.h: Declare.
6351 New typedef walk_bp_location_callback.
6352 * record.c (record_open): Call record_init_record_breakpoints.
6353 (record_sync_record_breakpoints): New.
6354 (record_init_record_breakpoints): New.
6355 * NEWS: Mention supporting breakpoint always-inserted mode in
6358 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6360 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6363 2012-04-24 Yao Qi <yao@codesourcery.com>
6365 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6366 (is_catchpoint): ... it.
6367 (print_one_breakpoint_location): Caller update.
6368 * breakpoint.h: Update declaration.
6370 2012-04-23 David S. Miller <davem@davemloft.net>
6372 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6374 2012-04-23 Tom Tromey <tromey@redhat.com>
6376 * buildsym.c (add_free_pendings): Remove.
6377 * buildsym.h (add_free_pendings): Remove.
6379 2012-04-23 Doug Evans <dje@google.com>
6381 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6382 attr.u.unsnd instead of attr.u.addr.
6383 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6384 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6386 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6387 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6389 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6391 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6393 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6394 (mips_o32_return_value): Likewise.
6395 (mips_o64_return_value): Likewise.
6397 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6399 * ada-lang.c (ada_evaluate_subexp): Add cases for
6400 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6401 their treatment in eval.c.
6403 2012-04-21 David S. Miller <davem@davemloft.net>
6405 * sparc-tdep.c (X_DISP10): Define.
6406 (sparc_analyze_control_transfer): Handle compare-and-branch.
6408 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6410 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6411 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6413 2012-04-20 Nigel Stephens <nigel@mips.com>
6414 Maciej W. Rozycki <macro@codesourcery.com>
6416 * mips-tdep.c (mips_float_register_p): New function.
6417 (mips_convert_register_float_case_p): Use mips_float_register_p.
6418 (mips_register_type): Likewise.
6419 (mips_print_register): Likewise.
6420 (print_gp_register_row): Likewise.
6421 (mips_print_registers_info): Likewise.
6423 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6425 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6428 2012-04-20 Andrew Pinski <apinski@cavium.com>
6430 * MAINTAINERS (Write After Approval): Add myself to the list.
6432 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6434 * MAINTAINERS: Update my e-mail address.
6436 2012-04-20 Pedro Alves <palves@redhat.com>
6438 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6440 * configure: Regenerate.
6442 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6444 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6446 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6448 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6450 Fix compilation compatibility with python-2.4
6451 * python/py-type.c (convert_field): Cast ADDRSTRING for
6452 PyObject_SetAttrString as non-const. New comment.
6454 2012-04-19 Tom Tromey <tromey@redhat.com>
6456 * top.c (quit_target): Use all_cleanups.
6457 * main.c (captured_command_loop): Use all_cleanups.
6458 * exceptions.c (throw_exception): Use all_cleanups.
6460 2012-04-19 Pedro Alves <palves@redhat.com>
6462 * Makefile.in (GNULIB_BUILDDIR): New.
6463 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6464 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6465 (CLEANDIRS). Remove gnulib/import.
6466 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6468 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6469 (gnulib/import/Makefile): Replace gnulib/import with
6470 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6471 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6472 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6473 acx_configure_dir.m4.
6474 * acinclude.m4: Include acx_configure_dir.m4.
6475 * acx_configure_dir.m4: New file.
6476 * aclocal.m4: Regenerate.
6477 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6478 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6479 (GNULIB): New variable.
6480 (GNULIB_STDINT_H): Adjust.
6481 (AC_OUTPUT): Don't output gnulib/Makefile.
6482 * gdb/defs.h: Include build-gnulib/config.h.
6483 * aclocal.m4: Regenerate.
6484 * config.in: Regenerate.
6485 * configure: Regenerate.
6487 * gnulib/Makefile.in: New file.
6488 * gnulib/configure.ac: New file.
6489 * gnulib/aclocal.m4: New file.
6490 * gnulib/config.in: New file.
6491 * gnulib/configure: New file.
6492 * gnulib/: Re-run gnulib-tool to adjust.
6494 2012-04-19 Doug Evans <dje@google.com>
6496 * cleanups.h (struct cleanup): Move to cleanups.c.
6497 (make_cleanup_dtor_ftype): New typedef.
6498 (make_cleanup_dtor): Use it.
6499 (ALL_CLEANUPS): Replace with ...
6500 (all_cleanups): ... this. Declare. All uses updated.
6501 * cleanups.c: #include "gdb_assert.h".
6502 (sentinel_cleanup): New static global.
6503 (SENTINEL_CLEANUP): Define.
6504 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6505 (make_my_cleanup2): Assert result is non-NULL.
6506 (all_cleanups): New function.
6507 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6510 2012-04-19 Pedro Alves <palves@redhat.com>
6512 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6513 Adjust paths to gnulib imported files.
6515 2012-04-19 Pedro Alves <palves@redhat.com>
6517 * gnulib/: Move whole directory ...
6518 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6519 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6520 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6521 (aclocal_m4_deps): Adjust.
6522 * aclocal.m4: Regenerate.
6523 * configure: Regenerate.
6524 * configure.ac: Adjust AC_OUTPUT output.
6526 2012-04-19 Yao Qi <yao@codesourcery.com>
6528 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6530 * vec.c: Move it ...
6531 * common/vec.c: ... here.
6532 * vec.h: Move it ...
6533 * common/vec.h: ... here.
6535 2012-04-19 Yao Qi <yao@codesourcery.com>
6537 * gdb-code-style.el: New.
6539 2012-04-18 Pedro Alves <palves@redhat.com>
6541 Update gnulib from latest git.
6542 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6544 * gnulib/Makefile.am: Update.
6545 * gnulib/dummy.c: Update.
6546 * gnulib/extra/arg-nonnull.h: Update.
6547 * gnulib/extra/c++defs.h: Update.
6548 * gnulib/extra/update-copyright: Update.
6549 * gnulib/extra/warn-on-use.h: Update.
6550 * gnulib/inttypes.in.h: Update.
6551 * gnulib/m4/00gnulib.m4: Update.
6552 * gnulib/m4/extensions.m4: Update.
6553 * gnulib/m4/gnulib-cache.m4: Update.
6554 * gnulib/m4/gnulib-common.m4: Update.
6555 * gnulib/m4/gnulib-comp.m4: Update.
6556 * gnulib/m4/gnulib-tool.m4: Update.
6557 * gnulib/m4/include_next.m4: Update.
6558 * gnulib/m4/inttypes-pri.m4: Update.
6559 * gnulib/m4/inttypes.m4: Update.
6560 * gnulib/m4/longlong.m4: Update.
6561 * gnulib/m4/memchr.m4: Update.
6562 * gnulib/m4/memmem.m4: Update.
6563 * gnulib/m4/mmap-anon.m4: Update.
6564 * gnulib/m4/multiarch.m4: Update.
6565 * gnulib/m4/onceonly.m4: Update.
6566 * gnulib/m4/stddef_h.m4: Update.
6567 * gnulib/m4/stdint.m4: Update.
6568 * gnulib/m4/string_h.m4: Update.
6569 * gnulib/m4/warn-on-use.m4: Update.
6570 * gnulib/m4/wchar_h.m4: Update.
6571 * gnulib/m4/wchar_t.m4: Update.
6572 * gnulib/m4/wint_t.m4: Update.
6573 * gnulib/memchr.c: Update.
6574 * gnulib/memmem.c: Update.
6575 * gnulib/stddef.in.h: Update.
6576 * gnulib/stdint.in.h: Update.
6577 * gnulib/str-two-way.h: Update.
6578 * gnulib/string.in.h: Update.
6579 * gnulib/wchar.in.h: Update.
6581 * gnulib/extra/arg-nonnull.h: Delete.
6582 * gnulib/extra/c++defs.h: Delete.
6583 * gnulib/extra/warn-on-use.h: Delete.
6584 * gnulib/m4/wchar_h.m4: Delete.
6585 * gnulib/m4/wint_t.m4: Delete.
6586 * gnulib/wchar.in.h: Delete.
6588 * gnulib/extra/snippets/arg-nonnull.h: New.
6589 * gnulib/extra/snippets/c++defs.h: New.
6590 * gnulib/extra/snippets/warn-on-use.h: New.
6592 * aclocal.m4: Regenerate.
6593 * config.in: Regenerate.
6594 * configure: Regenerate.
6595 * gnulib/Makefile.in: Regenerate.
6597 2012-04-18 Pedro Alves <palves@redhat.com>
6599 Reimport the update-copyright module from gnulib
6600 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6602 * configure: Regenerate.
6603 * gnulib/Makefile.am: Update.
6604 * gnulib/Makefile.in: Regenerate.
6605 * gnulib/extra/update-copyright: Update.
6606 * gnulib/m4/gnulib-cache.m4: Update.
6607 * gnulib/m4/gnulib-comp.m4: Update.
6609 2012-04-18 Tristan Gingold <gingold@adacore.com>
6611 * configure.ac (aix): Put -lpthread into libs.
6612 * configure: Regenerate.
6614 2012-04-18 Tom Tromey <tromey@redhat.com>
6616 * linespec.c (convert_linespec_to_sals): Don't use
6618 (compare_msymbols): Arguments are minsym_and_objfile, not
6619 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6621 2012-04-18 Pedro Alves <palves@redhat.com>
6623 Revert gnulib/ part of:
6624 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6625 Copyright year update in most files (performed by copyright.sh).
6627 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6629 Fix 64-bit constants on 32-bit hosts.
6630 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6631 from unsigned long to ULONGEST.
6632 (read_signed_leb128): Change declaration return type from long to
6634 (dwarf2_const_value_attr): Change declaration parameter value from long
6636 (dwarf2_compute_name): Change variable value from long to LONGEST.
6637 (read_unsigned_leb128): Change return type, variable result and some
6638 casts from unsigned long to ULONGEST.
6639 (read_signed_leb128): Change return type, variable result and some
6640 casts from long to LONGEST.
6641 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6642 value from long to LONGEST.
6643 (dwarf2_const_value): Change variable value from long to LONGEST.
6644 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6645 plongest and hex_string.
6646 * symtab.h (struct general_symbol_info): Change ivalue from long to
6647 LONGEST, remove the comment.
6648 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6649 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6651 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6654 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6655 * ada-lang.c (ada_discrete_type_high_bound)
6656 (ada_discrete_type_low_bound): Fix function comment. Use
6657 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6658 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6659 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6660 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6661 Use TYPE_FIELD_ENUMVAL.
6662 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6663 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6664 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6665 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6667 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6668 * dwarf2read.c (process_enumeration_scope): Likewise.
6669 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6671 (class StructMainTypePrettyPrinter): Support also
6672 FIELD_LOC_KIND_ENUMVAL.
6673 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6675 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6676 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6677 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6678 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6680 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6681 accommodate enumval.
6682 (struct call_site): Adjust loc_kind to accommodate enumval.
6683 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6684 (TYPE_FIELD_ENUMVAL): New macros.
6685 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6686 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6688 * p-typeprint.c (pascal_type_print_base): Likewise.
6689 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6691 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6692 * python/py-type.c (convert_field): New variable addrstring. Use
6693 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6694 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6695 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6696 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6698 * valprint.c (generic_val_print): Likewise.
6700 2012-04-17 Doug Evans <dje@google.com>
6702 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6704 * dwarf2read.c: Whitespace fixes.
6705 (lookup_signatured_type): Tweak comment.
6706 (get_die_type_at_offset): Fix comment.
6708 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6710 * xcoffread.c (xcoff_secnum_to_sections): New function.
6711 (secnum_to_section, secnum_to_bfd_section): Reimplement
6712 using xcoff_secnum_to_sections. Rename "secnum" parameter
6714 (RECORD_MINIMAL_SYMBOL): Delete.
6715 (record_minimal_symbol): New function.
6716 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6717 by call to record_minimal_symbol and set misc_func_recorded
6718 to 1. Set last_csect_sec to the XCOFF section index instead
6719 of GDB's section_offset index. Update calls to
6720 prim_record_minimal_symbol_and_info to pass the BFD section
6723 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6725 * xcoffread.c (read_xcoff_symtab): Delete variables
6726 last_csect_val and last_csect_sec and associated code.
6728 2012-04-17 Doug Evans <dje@google.com>
6730 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6731 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6732 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6733 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6735 * cleanups.h: New file.
6736 * cleanups.c: New file.
6737 * Makefile.in (SFILES): Add cleanups.c.
6738 (HFILES_NO_SRCDIR): Add cleanups.h.
6739 (COMMON_OBS): Add cleanups.o.
6740 * defs.h (struct cleanup): Moved to cleanups.h.
6741 (do_cleanups,do_final_cleanups): Ditto.
6742 (discard_cleanups,discard_final_cleanups): Ditto
6743 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6744 (save_cleanups,save_final_cleanups): Ditto.
6745 (restore_cleanups,restore_final_cleanups): Ditto.
6746 (null_cleanup): Ditto.
6747 (make_my_cleanup,make_my_cleanup2): Ditto.
6748 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6749 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6750 (do_cleanups,do_final_cleanups): Ditto.
6751 (discard_cleanups,discard_final_cleanups): Ditto
6752 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6753 (save_cleanups,save_final_cleanups): Ditto.
6754 (restore_cleanups,restore_final_cleanups): Ditto.
6755 (null_cleanup): Ditto.
6756 (make_my_cleanup,make_my_cleanup2): Ditto.
6757 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6759 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6761 (make_cleanup_dyn_string_delete): Ditto.
6762 (make_cleanup_ui_file_delete): Ditto.
6763 (make_cleanup_ui_out_redirect_pop): Ditto.
6764 (make_cleanup_free_section_addr_info): Ditto.
6765 (make_cleanup_restore_integer): Ditto.
6766 (make_cleanup_unpush_target): Ditto.
6767 (make_cleanup_value_free_to_mark): Ditto.
6768 (make_cleanup_value_free): Ditto.
6769 (make_cleanup_free_so): Ditto.
6771 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6773 New option "set debug auto-load".
6774 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6775 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6776 (auto_load_safe_path_vec_update)
6777 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6779 (file_is_auto_load_safe): New parameters debug_fmt and ....
6780 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6781 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6782 caller by explanatory string.
6783 (_initialize_auto_load): Register "set debug auto-load".
6784 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6786 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6787 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6788 by explanatory string.
6789 * main.c (captured_main): Likewise.
6790 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6791 (source_section_scripts): Likewise.
6793 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6795 New option "set auto-load safe-path".
6796 * NEWS: New commands "set auto-load safe-path"
6797 and "show auto-load safe-path".
6798 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6799 (auto_load_safe_path, auto_load_safe_path_vec)
6800 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6801 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6802 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6803 (source_gdb_script_for_objfile): New variable is_safe. Call
6804 file_is_auto_load_safe. Return if it is not.
6805 (struct loaded_script): New field loaded.
6806 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6807 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6808 output "Missing" to "No".
6809 (_initialize_auto_load): New variable cmd. Initialize
6810 auto_load_safe_path. Register "set auto-load safe-path",
6811 "show auto-load safe-path" and "add-auto-load-safe-path".
6812 * auto-load.h (maybe_add_script): Add parameter loaded.
6813 (file_is_auto_load_safe): New declaration.
6814 * config.in: Regenerate.
6815 * configure: Regenerate.
6816 * configure.ac: New parameters --with-auto-load-safe-path
6817 and --without-auto-load-safe-path.
6818 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6819 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6820 * main.c (captured_main): Check file_is_auto_load_safe for
6822 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6823 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6824 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6827 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6829 auto-load: Implementation.
6830 * NEWS: New descriptions for "info auto-load",
6831 "info auto-load gdb-scripts", "info auto-load python-scripts",
6832 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6833 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6834 and "show auto-load-scripts". New description for "set auto-load",
6835 "show auto-load", "set auto-load gdb-scripts",
6836 "show auto-load gdb-scripts", "set auto-load python-scripts",
6837 "show auto-load python-scripts", "set auto-load local-gdbinit",
6838 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6839 "show auto-load libthread-db".
6840 * auto-load.c: Remove include python/python-internal.h. Add includes
6841 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6843 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6844 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6845 (gdbpy_global_auto_load): Rename to ...
6846 (global_auto_load): ... here.
6847 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6848 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6849 (script_language_gdb, source_gdb_script_for_objfile): New.
6850 (struct loaded_script): New field language.
6851 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6853 (maybe_add_script): Add parameter language. Drop redundant
6854 entry.full_path initialization. Initialize entry.language and
6856 (auto_load_objfile_script): Change parameter suffix to language.
6857 Remove the call of maybe_add_script.
6858 Call language->source_script_for_objfile.
6859 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6861 (collect_matching_scripts): Adjust it for
6862 struct collect_matching_scripts_data.
6863 (auto_load_info_scripts_pattern_nl): New variable.
6864 (info_auto_load_scripts): Rename to ...
6865 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6866 for struct collect_matching_scripts_data.
6867 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6868 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6869 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6870 (auto_load_info_cmdlist_get): New.
6871 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6872 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6873 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6874 "info auto-load local-gdbinit".
6875 * auto-load.h (struct script_language): New.
6876 (gdbpy_global_auto_load): Rename to ...
6877 (global_auto_load): ... here.
6878 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6879 (auto_load_local_gdbinit_loaded): New declarations.
6880 (maybe_add_script): New parameter language.
6881 (auto_load_objfile_script): Change parameter suffix to language.
6882 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6883 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6884 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6886 * linux-thread-db.c: Include auto-load.h and ctype.h.
6887 (auto_load_thread_db, show_auto_load_thread_db): New.
6888 (struct thread_db_info): New field filename.
6889 (delete_thread_db_info): Call xfree for FILENAME.
6890 (try_thread_db_load): Initialize FILENAME.
6891 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6892 if !AUTO_LOAD_THREAD_DB.
6893 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6894 (_initialize_thread_db): Install auto_load_thread_db
6895 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6896 as "info auto-load libthread-db".
6897 * main.c (captured_main): Rename gdbpy_global_auto_load to
6898 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6899 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6900 (print_gdb_help): Extend the help for 'local init file'.
6901 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6902 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6903 (auto_load_scripts): Rename to ...
6904 (auto_load_python_scripts): ... here, update the comment.
6905 (gdbpy_load_auto_script_for_objfile): New declaration.
6906 (show_auto_load_python_scripts, script_language_python)
6907 (gdbpy_load_auto_script_for_objfile): New.
6908 (source_section_scripts): Refactor the code.
6909 (load_auto_scripts_for_objfile): Rename to ...
6910 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6911 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6912 (info_auto_load_python_scripts): New.
6913 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6914 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6915 Register "set auto-load-scripts" as its deprecated alias. Register
6916 "info auto-load python-scripts". Register "info auto-load-scripts" as
6917 its deprecated alias.
6918 (load_auto_scripts_for_objfile): Rename to ...
6919 (gdbpy_load_auto_scripts_for_objfile): ... here.
6920 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6921 (gdbpy_load_auto_scripts_for_objfile): ... here.
6923 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6925 auto-load: Move files.
6926 * Makefile.in (SFILES): Add auto-load.c.
6927 (HFILES_NO_SRCDIR): Add auto-load.h.
6928 (COMMON_OBS): Add auto-load.o.
6929 (distclean): Change .gdbinit for gdb-gdb.gdb.
6930 * auto-load.c: New file, with parts from python/py-auto-load.c.
6931 * auto-load.h: New file, with parts from python/python.h.
6932 * configure: Regenerate.
6933 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6934 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6935 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6936 * main.c: Include auto-load.h.
6937 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6938 command.h, observer.h and progspace.h to auto-load.c. Add include
6940 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6941 (struct loaded_script, auto_load_pspace_data)
6942 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6943 (hash_loaded_script_entry, eq_loaded_script_entry)
6944 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6945 (maybe_add_script): Move to auto-load.c.
6946 (source_section_scripts): Change maybe_add_script parameters passing,
6947 use script_not_found_warning_print.
6948 (clear_section_scripts, auto_load_objfile_script)
6949 (auto_load_new_objfile, loaded_script_ptr)
6950 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6951 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6952 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6953 auto_load_new_objfile and info_auto_load_scripts initizations to
6955 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6957 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6960 * charset.c (find_charset_names): Remove variables ix and elt.
6961 Use free_char_ptr_vec.
6962 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6963 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6964 debugdir_end. New variable debugdir_len.
6965 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6966 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6968 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6969 and elt. Use free_char_ptr_vec.
6970 * source.c (add_path): Remove variables argv, arg and argv_index.
6971 New variables dir_vec, back_to, ix and name.
6972 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6973 make_cleanup_freeargv. Remove variable separator. Simplify the code
6974 no longer expecting DIRNAME_SEPARATOR.
6975 (openp): Remove variable p, p1 and len. New variables dir_vec,
6976 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6977 no longer expecting DIRNAME_SEPARATOR.
6978 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6979 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6981 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6982 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6983 (dirnames_to_char_ptr_vec): New functions.
6985 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6988 * source.c (add_path): Remove always true conditional 'p == 0' and
6989 unindent its code block.
6991 2012-04-17 Pedro Alves <palves@redhat.com>
6993 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6994 (FIELD_BITPOS_LVAL): ... this.
6995 (FIELD_BITPOS): New.
6996 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6997 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6998 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7000 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7002 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7003 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7004 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7007 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7009 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7010 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7011 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7012 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7013 * jv-lang.c (java_link_class_type): Likewise, once.
7014 * stabsread.c (read_enum_type): Likewise.
7016 2012-04-16 Yao Qi <yao@codesourcery.com>
7018 * common/agent.c (agent_run_command): Add one more parameter `len'.
7020 * common/agent.h: Update declaration.
7021 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7023 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7025 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7028 * value.c (value_actual_type): New function.
7029 * value.h (value_actual_type): New declaration.
7030 * varobj.c (update_type_if_necessary): New function.
7031 (varobj_create): Call value_actual_type instead of
7033 (install_dynamic_child): distinct changed and type changed MI variable
7035 (update_dynamic_varobj_children): Updated for install_dynamic_child
7036 change. All callers updated.
7037 (varobj_update): Support for MI variable object type change if
7038 the value changed and RTTI is used to determine the type.
7039 (create_child_with_value): Call value_actual_type instead of
7041 (adjust_value_for_child_access): Extended with a new parameter which
7042 specify whether the given value should be casted to enclosing type.
7043 All callers updated.
7045 2012-04-14 Yao Qi <yao@codesourcery.com>
7047 Import gnulib module inttypes from git
7048 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7049 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7050 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7051 gnulib/m4/inttypes-pri.m4
7052 * aclocal.m4, config.in, configure: Regenerated.
7053 * gnulib/Makefile.am: Update.
7054 * gnulib/Makefile.in: Update.
7055 * gnulib/m4/gnulib-cache.m4: Update.
7056 * gnulib/m4/gnulib-comp.m4: Update.
7057 * gnulib/inttypes.in.h: New.
7058 * gnulib/m4/inttypes-pri.m4: New.
7059 * gnulib/m4/inttypes.m4: New.
7061 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7063 * infrun.c (resume): Update PC address to the real PC after
7064 preparing to do displaced stepping.
7066 2012-04-12 Doug Evans <dje@google.com>
7068 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7069 All callers updated.
7071 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7073 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7075 2012-04-12 Doug Evans <dje@google.com>
7077 * dwarf2read.c (create_all_type_units): Renamed from
7078 create_debug_types_hash_table. All callers updated.
7080 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7081 local type_sig to sig_type, type_offset to type_offset_in_tu.
7082 (hash_signatured_type): Renamed from hash_type_signature,
7083 all callers updated.
7084 (eq_signatured_type): Renamed from eq_type_signature,
7085 all callers updated.
7086 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7087 (process_enumeration_scope): Ditto.
7088 (lookup_signatured_type_at_offset): Ditto.
7089 (load_full_type_unit, read_signatured_type): Ditto.
7091 2012-04-12 Yao Qi <yao@codesourcery.com>
7093 * remote.c (async_remote_interrupt): Correct function name in
7095 (async_remote_interrupt_twice): Ditto.
7097 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7099 * source.c (find_and_open_source): Consistently pass resulting
7100 full path through xfullpath.
7102 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 Provide more specific displaced-stepping memory error message.
7105 * infrun.c (displaced_step_prepare): New variable status. Call
7106 target_read_memory instead of read_memory, provide more specific
7109 2012-04-11 Tristan Gingold <gingold@adacore.com>
7112 * darwin-nat.c (darwin_execvp): Revert previous patch.
7114 2012-04-11 Tristan Gingold <gingold@adacore.com>
7117 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7120 2012-04-11 Tristan Gingold <gingold@adacore.com>
7122 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7125 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7127 New command 'explore' which helps explore values and types in
7129 * NEWS: Add an entry about the new 'explore' command.
7130 * data-directory/Makefile.in: Add gdb/command/explore.py
7131 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7132 command using the GDB Python API.
7134 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7136 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7137 extension in jump target calculation.
7139 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7141 * mips-tdep.c (mips32_next_pc): Handle JALX.
7143 2012-04-10 Yao Qi <yao@codesourcery.com>
7145 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7147 2012-04-10 Yao Qi <yao@codesourcery.com>
7149 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7150 and gnulib/m4/gnulib-tool.m4.
7152 2012-04-10 Doug Evans <dje@google.com>
7154 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7155 (load_partial_dies): Clarify comment.
7156 (find_partial_die): Support rereading type units.
7157 Clarify CU handling, if we know offset is in CU, don't search for the
7158 containing CU. Add comment regarding memory waste.
7160 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7162 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7163 i386/x32-avx and i386/x32-avx-linux.
7164 (i386/x32-expedite): New.
7165 (i386/x32-linux-expedite): Likewise.
7166 (i386/x32-avx-expedite): Likewise.
7167 (i386/x32-avx-linux-expedite): Likewise.
7168 ($(outdir)/i386/x32.dat): Likewise.
7169 ($(outdir)/i386/x32-linux.dat): Likewise.
7170 ($(outdir)/i386/x32-avx.dat): Likewise.
7171 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7173 * features/i386/x32-avx-linux.xml: New file.
7174 * features/i386/x32-avx.xml: Likewise.
7175 * features/i386/x32-core.xml: Likewise.
7176 * features/i386/x32-linux.xml: Likewise.
7177 * features/i386/x32.xml: Likewise.
7179 * features/i386/x32-avx-linux.c: New. Generated.
7180 * features/i386/x32-avx.c: Likewise.
7181 * features/i386/x32-linux.c: Likewise.
7182 * features/i386/x32.c: Likewise.
7183 * regformats/i386/x32-avx-linux.dat: Likewise.
7184 * regformats/i386/x32-avx.dat: Likewise.
7185 * regformats/i386/x32-linux.dat: Likewise.
7186 * regformats/i386/x32.dat: Likewise.
7188 2012-04-10 Tristan Gingold <gingold@adacore.com>
7190 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7191 code to kill the inferior.
7193 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7195 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7197 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7199 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7200 (yyvsp): New defines.
7201 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7203 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7205 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7207 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7209 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7212 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7214 * sparc64-tdep.c (sparc64_store_arguments)
7215 (sparc64_store_arguments): Fix coding style.
7217 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7219 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7220 complex floats, adjust some related comments and tighten a related
7222 (sparc64_extract_return_value): Handle complex floats.
7224 2012-04-07 Doug Evans <dje@google.com>
7226 * dwarf2read.c (load_partial_dies): Change condition to assert.
7228 2012-04-06 Doug Evans <dje@google.com>
7230 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7233 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7235 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7237 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7238 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7241 2012-04-05 Keith Seitz <keiths@redhat.com>
7243 * linespec.c (decode_compound): Remove.
7244 (enum offset_relative_sign): New enum.
7245 (struct line_offset): New struct.
7246 (struct linespec): New struct.
7247 (struct linespec_state): Move file_symtabs,
7248 user_filename, and user_function into struct linespec.
7249 Make result an anonymous struct holding vectors of
7250 symbolp and minsym_and_objfile_d.
7251 Add language member.
7252 (enum ls_token_type): New enum.
7253 (linespec_keywords): New array.
7254 (struct ls_token): New struct.
7255 (struct ls_parser): New struct.
7256 (linespec_lexer_lex_number): New function.
7257 (linespec_lexer_lex_keyword): New function.
7258 (is_ada_operator): New function.
7259 (skip_quote_char): New function.
7260 (copy_token_string): New function.
7261 (is_closing_quote_enclosed): New function.
7262 (find_parameter_list_end): New function.
7263 (linespec_lexer_lex_string): New function.
7264 (linespec_lexer_lex_one): New function.
7265 (linespec_lexer_consume_token): New function.
7266 (linespec_lexer_peek_token): New function.
7267 (cplusplus_error): Remove unused function.
7268 (find_methods): Update comment.
7269 (find_toplevel_char): Return const.
7270 (is_objc_method_format): Remove unused function.
7271 (find_toplevel_string): New function.
7272 (is_linespec_boundary): Remove.
7273 (symbol_not_found_error): New function.
7274 (find_method_overload_end): Remove function.
7275 (unexpected_linespec_error): New function.
7276 (keep_name_info): Remove.
7277 (linespec_parse_line_offset): New function.
7278 (linespec_parse_basic): New function.
7279 (canonicalize_linespec): New function.
7280 (decode_line_internal): Remove.
7281 (create_sals_line_offset): New function adapted from
7283 (convert_linespec_to_sals): New function.
7284 (parse_linespec): New function.
7285 (linespec_parser_new): New function.
7286 (linespec_state_destructor): Change parameter type to
7287 struct linespec_state *.
7288 Add language parameter.
7289 Remove freeing of moved members.
7290 (linespec_parser_delete): New function.
7291 (decode_line_full): Use parse_linespec and linespec_parser_new.
7292 (decode_line_1): Likewise.
7293 (decode_indirect): Rename to ...
7294 (linespec_expression_to_pc): ... this and rewrite
7295 to simply find CORE_ADDR, storing this result for later
7297 (locate_first_half): Remove.
7298 (deocde_objc): Add parameter LS.
7299 Initialize new struct collect_info members.
7300 Handle minimal symbols, too.
7301 (decode_compound): Delete.
7302 (lookup_prefix_sym): Rewrite.
7303 (compare_msymbols): New function.
7304 (find_method): Rewrite.
7305 Do not call cplusplus_error.
7306 (symtabs_from_filename): Rewrite.
7307 (collect_function_symbols): Delete.
7308 (find_function_symbols): Rewrite without ARGPTR-style
7310 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7311 (decode_dollar): Adapted and renamed to ...
7312 (linespec_parse_variable): ... this.
7313 (find_linespec_symbols): New function.
7314 (decode_label): Adapted and renamed to ...
7315 (find_label_symbols): ... this.
7316 (decode_digits_list_mode): Add and use LS argument.
7317 (decode_digits_ordinary): Likewise.
7318 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7319 If in list mode, allow any symbol class. Otherwise, only
7320 permit LOC_BLOCK symbols.
7321 (minsym_found): Update comments.
7322 (search_minsyms_for_name): Do not convert the matching symbol
7323 into a SAL. Simply push the symbol and objfile into the
7325 (decode_variable): Delete. Contents adapted into
7326 find_linespec_symbols.
7328 * cp-support.c (SKIP_SPACE): Remove.
7329 (operator_tokens): Remove unused global.
7330 (cp_validate_operator): Remove.
7331 * cp-support.h (cp_validate_operator): Remove declaration.
7333 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7335 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7336 for TYPE_VPTR_FIELDNO.
7337 * valprint.c (valprint_check_validity): Make it global, move the
7338 function comment ...
7339 * value.h (valprint_check_validity): ... to this new declaration.
7341 2012-04-02 Tristan Gingold <gingold@adacore.com>
7343 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7344 the STATE32 api for i386 state.
7345 (i386_darwin_store_inferior_registers): Likewise.
7347 2012-04-02 Tristan Gingold <gingold@adacore.com>
7349 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7351 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7354 2012-04-02 Tristan Gingold <gingold@adacore.com>
7357 * darwin-nat.c (darwin_execvp): Set binary preference.
7359 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7361 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7363 2012-03-30 Tom Tromey <tromey@redhat.com>
7365 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7366 of TRY_CATCH. Fix error handling.
7367 * python/py-value.c (convert_value_from_python): Move 'old'
7368 declaration to innermost scope.
7370 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7371 Andrey Smirnov <andrew.smirnov@gmail.com>
7373 -Wshadow warning fix.
7374 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7375 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7376 Adjust code accordingly.
7378 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7380 * ada-lang.c (symbol_completion_add): Rename parameter
7381 "encoded" into "encoded_p". Ajust code and documentation
7384 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7385 Andrey Smirnov <andrew.smirnov@gmail.com>
7387 -Wshadow warning fix.
7388 * ada-lang.c (symbol_completion_add): Rename parameter
7389 "wild_match" into wild_match_p. Update code and documentation
7392 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7394 * ada-lang.c (symbol_completion_match): Rename parameter
7395 "encoded" into "encoded_p". Ajust code and 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 (symbol_completion_match): Rename parameter
7403 "wild_match" into "wild_match_p". Adjust code and function
7404 documentation accordingly.
7406 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7407 Andrey Smirnov <andrew.smirnov@gmail.com>
7409 -Wshadow warning fix.
7410 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7411 "symbol_info" into "info". Adjust code accordingly.
7412 (ada_lookup_symbol): Likewise.
7414 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7416 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7417 of this function's documentation.
7419 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7420 Andrey Smirnov <andrew.smirnov@gmail.com>
7422 -Wshadow warning fix.
7423 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7424 variable into "wild_match_p". Adjust code accordingly.
7426 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7427 Andrey Smirnov <andrew.smirnov@gmail.com>
7429 -Wshadow warning fix.
7430 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7431 parameter into "wild_match_p". Adjust code accordingly.
7432 Document this parameter in the function description.
7434 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7435 Andrey Smirnov <andrew.smirnov@gmail.com>
7437 -Wshadow warning fix.
7438 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7439 "wild_match" parameter to "wild_match_p" (-Wshadow).
7441 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7443 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7444 in function documentation.
7446 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7447 Andrey Smirnov <andrew.smirnov@gmail.com>
7449 -Wshadow warning fix.
7450 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7451 variable into wild_match_p. Adjust code accordingly.
7453 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7454 Andrey Smirnov <andrew.smirnov@gmail.com>
7456 * ada-valprint.c (ada_val_print_1): Move the code handling
7457 TYPE_CODE_ENUM inside its own lexical block. Declare
7458 variables len and val there, instead of in the function's
7459 top level block. Avoid declaring deref_val again in a way
7460 that shadows another variable of the same name declared
7461 in one of the up-level blocks. Just re-use the up-level
7464 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7466 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7467 Replace block_found argument by symbol_info. Adjust
7468 implementation accordingly. Add function documentation.
7469 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7471 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7472 * ada-exp.y (write_object_renaming): Adjust to new
7473 ada_lookup_encoded_symbol API.
7475 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7477 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7480 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7482 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7483 (v850_register_name): Add the mpu and fpu register names.
7484 (v850e_register_name): Add the mpu and fpu register names.
7485 (v850e2_register_name): New function.
7486 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7489 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7491 * NEWS: Add entry for Ada varobj support.
7493 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7495 * varobj.c (default_value_is_changeable_p): New function,
7496 extracted from varobj_value_is_changeable_p. Add declaration.
7497 (ada_value_is_changeable_p): New function, extracted from
7498 varobj_value_is_changeable_p. Add declaration.
7499 (struct language_specific): New field "value_is_changeable_p".
7500 (languages): Add entries for new field.
7501 (varobj_create): Set language before calling install_new_value.
7502 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7503 "value_is_changeable_p" language callback.
7505 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7507 * ada-varobj.h, ada-varobj.c: New files.
7508 * Makefile.in (SFILES): Add ada-varobj.c.
7509 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7510 (COMMON_OBS): Add ada-varobj.o.
7512 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7514 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7515 (struct language_specific): New field "value_has_mutated".
7516 (languages): Set field "value_has_mutated" in each entry of array.
7517 (varobj_value_has_mutated): New function.
7518 (varobj_udpdate): Add handling of type mutation.
7519 (value_of_root): Add handling of type mutation.
7520 (ada_value_has_mutated): New function.
7522 2012-03-28 Pedro Alves <palves@redhat.com>
7524 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7525 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7527 2012-03-28 Tom Tromey <tromey@redhat.com>
7529 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7530 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7533 2012-03-28 Tom Tromey <tromey@redhat.com>
7535 * .dir-locals.el: New file.
7537 2012-03-28 Pedro Alves <palves@redhat.com>
7539 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7541 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7543 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7546 2012-03-27 Pedro Alves <palves@redhat.com>
7548 Eliminate struct ui_stream.
7550 * ui-out.h (struct ui_stream): Delete.
7551 (ui_out_field_stream): Adjust prototype.
7552 (ui_out_stream_new, ui_out_stream_delete)
7553 (make_cleanup_ui_out_stream_delete): Delete declarations.
7554 * ui-out.c (ui_out_field_stream): Change prototype to take a
7555 ui_file instead of a ui_stream. Adjust.
7556 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7557 (make_cleanup_ui_out_stream_delete): Delete.
7558 * breakpoint.c (print_breakpoint_location)
7559 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7560 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7561 * disasm.c (dump_insns): Ditto.
7562 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7564 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7565 ui_stream/ui_out_stream_new.
7566 * infcmd.c (print_return_value): Ditto.
7567 * osdata.c (info_osdata_command): Don't allocate a local
7569 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7570 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7571 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7572 allocate a local ui_stream.
7573 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7574 instead of ui_stream/ui_out_stream_new.
7575 (list_args_or_locals): Don't allocate a local ui_stream.
7576 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7577 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7578 ui_stream/ui_out_stream_new.
7579 * cli/cli-setshow.c (do_setshow_command): Ditto.
7581 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7583 * arm-linux-tdep.c (arm_linux_init_abi): Call
7584 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7585 * arm-tdep.c (arm_process_record): New function.
7586 (deallocate_reg_mem): New function.
7587 (decode_insn): New function.
7588 (thumb_record_branch): New function.
7589 (thumb_record_ldm_stm_swi(): New function.
7590 (thumb_record_misc): New function.
7591 (thumb_record_ld_st_stack): New function.
7592 (thumb_record_ld_st_imm_offset): New function.
7593 (thumb_record_ld_st_reg_offset(): New function.
7594 (thumb_record_add_sub_cmp_mov): New function.
7595 (thumb_record_shift_add_sub): New function.
7596 (arm_record_coproc_data_proc): New function.
7597 (arm_record_coproc): New function.
7598 (arm_record_b_bl): New function.
7599 (arm_record_ld_st_multiple): New function.
7600 (arm_record_ld_st_reg_offset): New function.
7601 (arm_record_ld_st_imm_offset): New function.
7602 (arm_record_data_proc_imm): New function.
7603 (arm_record_data_proc_misc_ld_str): New function.
7604 (arm_record_extension_space): New function.
7605 (arm_record_strx): New function.
7606 (sbo_sbz): New function.
7607 (struct insn_decode_record): New structure for arm insn record.
7608 (REG_ALLOC): New macro for reg allocations.
7609 (MEM_ALLOC): New macro for memory allocations.
7610 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7612 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7614 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7615 (store_register): Likewise.
7617 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7619 * MAINTAINERS (Write After Approval): Add myself to the list.
7621 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7623 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7624 Describe also the option "auto".
7626 2012-03-22 Richard Henderson <rth@redhat.com>
7628 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7629 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7631 2012-03-22 Richard Henderson <rth@redhat.com>
7633 * jit.c (jit_read_code_entry): Compute alignment and offset of
7634 int64_t member before computing entry_size.
7636 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7638 Python scripting: Add new method Value.referenced_value to
7639 gdb.Value which can dereference pointer as well as reference
7641 * NEWS: Add entry under 'Python scripting' about the new method
7642 Value.referenced_value on gdb.Value objects.
7643 * python/py-value.c (valpy_referenced_value): New function
7644 defining a new method on gdb.Value objects which can dereference
7645 pointer and reference values.
7647 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7649 * MAINTAINERS (Write After Approval): Add myself to the list.
7651 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7653 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7654 in addition to "main".
7656 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7658 * expression.h (op_name): Add declaration.
7659 * expprint.c (op_name): Remove declaration. Make non-static.
7660 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7662 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7664 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7666 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7667 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7668 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7669 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7670 (linux_nat_get_siginfo): Likewise.
7671 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7672 (linux_nat_get_siginfo): Likewise.
7673 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7674 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7675 * procfs.c (gdb_siginfo_t): Likewise.
7677 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7679 * .gitignore: Ignore more files.
7681 2012-03-20 Pedro Alves <palves@redhat.com>
7683 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7686 2012-03-20 Yao Qi <yao@codesourcery.com>
7688 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7691 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7693 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7694 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7695 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7697 * dwarf2expr.h (cu_offset, sect_offset): New types.
7698 (struct dwarf_expr_context_funcs) <dwarf_call>
7699 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7701 (struct dwarf_expr_context) <len>: Improve the comment.
7702 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7703 cu_offset and sect_offset.
7704 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7705 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7706 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7707 * dwarf2loc.h: Include dwarf2expr.h.
7708 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7710 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7711 Improve the comment.
7712 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7713 (struct signatured_type, struct line_header, struct partial_die_info)
7714 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7715 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7716 (get_die_type_at_offset, create_cus_from_index)
7717 (create_signatured_type_table_from_index, dw2_get_file_names)
7718 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7719 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7720 (create_debug_types_hash_table, process_psymtab_comp_unit)
7721 (load_partial_comp_unit, create_all_comp_units)
7722 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7723 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7724 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7725 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7726 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7727 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7728 (find_partial_die, read_attribute_value, lookup_die_type)
7729 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7730 (is_ref_attr): New function comment.
7731 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7732 Use cu_offset and sect_offset.
7733 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7734 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7735 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7736 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7737 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7738 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7739 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7742 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7745 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7746 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7748 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7750 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7752 * NEWS: Describe new options --init-command=FILE, -ix and
7753 --init-eval-command=COMMAND, -iex.
7754 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7755 CMDARG_INIT_COMMAND.
7756 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7757 "init-command", "init-eval-command", "ix" and "iex" to the variable
7758 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7759 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7760 (print_gdb_help): Describe --init-command=FILE, -ix and
7761 --init-eval-command=COMMAND, -iex.
7763 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7766 * main.c (struct cmdarg): Move it here from main. Add more comments.
7767 (cmdarg_s, VEC (cmdarg_s)): New.
7768 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7769 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7770 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7771 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7774 2012-03-19 Tom Tromey <tromey@redhat.com>
7776 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7778 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7784 2012-03-16 Chris January <chris.january@allinea.com>
7786 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7789 2012-03-16 Chris January <chris.january@allinea.com>
7791 * source.c (add_path): Use memmove instead of strcpy because the
7794 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7796 * value.h (set_value_parent): Add declaration.
7797 * value.c (set_value_parent): New function.
7798 (value_address): If VALUE->PARENT is not NULL, then use it as
7799 the base address instead of VALUE->LOCATION.address.
7800 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7801 the same as OBJ's address. Adjust V's offset accordingly.
7804 2012-03-16 Gary Benson <gbenson@redhat.com>
7806 PR breakpoints/10738
7807 * dwarf2read.c (use_deprecated_index_sections): New global.
7808 (struct partial_die_info): New member may_be_inlined.
7809 (read_partial_die): Set may_be_inlined where appropriate.
7810 (add_partial_subprogram): Add partial symbols for partial
7811 DIEs that may be inlined.
7812 (new_symbol_full): Add inlined subroutines to the current
7814 (write_psymtabs_to_index): Bump version number.
7815 (dwarf2_read_index): Read only version 6 indices unless
7816 use_deprecated_index_sections is set.
7817 * linespec.c (symbol_and_data_callback): New structure.
7818 (iterate_inline_only): New function.
7819 (iterate_over_all_matching_symtabs): New argument
7820 "include_inline". If nonzero, also call the callback for
7821 symbols representing inlined subroutines.
7822 (lookup_prefix_sym): Pass extra argument to the above.
7823 (find_function_symbols): Likewise.
7824 (add_matching_symbols_to_info): Likewise.
7825 * NEWS: Mention that GDB can now set breakpoints on inlined
7828 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7830 * p-typeprint.c (pascal_type_print_method_args):
7831 Fix display of parameter of methods.
7833 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7835 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7836 Add missing prototype.
7838 2012-03-16 Yao Qi <yao@codesourcery.com>
7839 Jan Kratochvil <jan.kratochvil@redhat.com>
7841 Fix false compilation warning.
7842 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7844 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7845 Pedro Alves <pedro@codesourcery.com>
7847 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7848 (arm_register_g_packet_guesses): New function.
7849 (arm_gdbarch_init): Don't force a target description with
7850 registers when the executable is detected as M-profile. Instead
7851 set gdbarch->tdep->is_m. Register `g' packet guesses.
7852 (_initialize_arm_tdep): Initialize the new target description.
7853 * features/arm-with-m-fpa-layout.xml: New description.
7854 * features/arm-with-m-fpa-layout.c: New, generated.
7856 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7858 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7859 Update function description.
7860 (insert_bp_location): Do not wipe bl->target_info out.
7861 * mem-break.c: #include "gdb_string.h".
7862 (default_memory_insert_breakpoint): Do not call target_read_memory
7863 with a pointer to the breakpoint's shadow_contents buffer. Use
7864 a local buffer instead.
7865 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7867 2012-03-15 Tom Tromey <tromey@redhat.com>
7869 * NEWS: Mention "info vtbl", not "info vtable".
7870 * cp-support.c (info_vtbl_command): Fix comment.
7871 (_initialize_cp_support): Fix text.
7873 2012-03-15 Tom Tromey <tromey@redhat.com>
7875 * cp-valprint.c (cp_print_value_fields): Use
7876 print_function_pointer_address for vtable slot.
7878 2012-03-15 Tom Tromey <tromey@redhat.com>
7880 * gnu-v3-abi.c (struct value_and_voffset): New.
7881 (hash_value_and_voffset, eq_value_and_voffset)
7882 (compare_value_and_voffset, compute_vtable_size)
7883 (print_one_vtable, gnuv3_print_vtable): New functions.
7884 (init_gnuv3_ops): Initialize 'print_vtable' field.
7885 * cp-support.c (info_vtbl_command): New function.
7886 (_initialize_cp_support): Add "info vtbl".
7887 * cp-abi.h (cplus_print_vtable): Declare.
7888 (struct cp_abi_ops) <print_vtable>: New field.
7889 * cp-abi.c (cplus_print_vtable): New function.
7892 2012-03-15 Tom Tromey <tromey@redhat.com>
7894 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7895 iterate_over_symbols.
7897 2012-03-14 Doug Evans <dje@google.com>
7899 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7900 DW_OP_GNU_parameter_ref.
7902 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7904 Fix double prompt of 'interpreter-exec mi'.
7905 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7906 (mi_interpreter_resume): use it.
7907 (mi_execute_command_input_handler): New function.
7908 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7909 mi_execute_command_input_handler.
7911 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7913 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7915 (darwin_debug_port_info): Make static.
7916 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7917 * machoread.c (_initialize_machoread): Add prototype.
7918 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7919 (i386_darwin_set_control, i386_darwin_get_control)
7920 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7921 i386_darwin_get_status, i386_darwin_get_control):
7922 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7924 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7926 * ax-gdb.c (gen_usual_unary): Remove special handling of
7927 enum and bool types.
7929 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7931 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7933 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7935 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7937 2012-03-13 Chris January <chris.january@allinea.com>
7939 * aix-thread.c (fill_sprs): Store the floating point registers
7940 at the correct offsets into vals.
7942 2012-03-13 Doug Evans <dje@google.com>
7944 * NEWS: Mention symbol-reloading has been deleted.
7945 * symfile.c (symbol_reloading): Delete.
7946 (show_symbol_reloading): Delete.
7947 (_initialize_symfile): Delete set/show symbol-reloading.
7949 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7950 read_in_chain until we have successfully read it in.
7951 (load_full_comp_unit): Ditto.
7952 (read_signatured_type): Add comment.
7954 2012-03-13 Chris January <chris.january@allinea.com>
7956 * stabsread.c (fix_common_block): Change type of valu argument
7959 2012-03-13 Chris January <chris.january@allinea.com>
7961 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7964 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7966 * common/linux-procfs.c (linux_proc_get_int): New, from
7967 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7969 (linux_proc_get_tgid): Only call linux_proc_get_int.
7970 (linux_proc_get_tracerpid): New.
7971 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7972 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7973 linux_proc_pid_has_state.
7974 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7975 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7976 (linux_ptrace_attach_warnings): New.
7977 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7979 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7980 (linux_nat_attach): New variables ex, buffer, message and message_s.
7981 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7983 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7985 * Makefile.in (linux-ptrace.o): New.
7986 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7988 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7989 * common/linux-ptrace.c: New file.
7990 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7991 * config/arm/linux.mh: Likewise.
7992 * config/i386/linux.mh: Likewise.
7993 * config/i386/linux64.mh: Likewise.
7994 * config/ia64/linux.mh: Likewise.
7995 * config/m32r/linux.mh: Likewise.
7996 * config/m68k/linux.mh: Likewise.
7997 * config/mips/linux.mh: Likewise.
7998 * config/pa/linux.mh: Likewise.
7999 * config/powerpc/linux.mh: Likewise.
8000 * config/powerpc/ppc64-linux.mh: Likewise.
8001 * config/powerpc/spu-linux.mh: Likewise.
8002 * config/s390/s390.mh: Likewise.
8003 * config/sparc/linux.mh: Likewise.
8004 * config/sparc/linux64.mh: Likewise.
8005 * config/xtensa/linux.mh: Likewise.
8006 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8007 common/linux-procfs.c.
8008 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8010 2012-03-13 Hui Zhu <teawater@gmail.com>
8011 Pedro Alves <palves@redhat.com>
8013 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8014 CREATE_BREAKPOINT_FLAGS_INSERTED.
8015 (create_breakpoint_sal, create_breakpoints_sal)
8016 (base_breakpoint_create_breakpoints_sal)
8017 (tracepoint_create_breakpoints_sal)
8018 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8020 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8021 (ftrace_command, strace_command): Adjust.
8022 (create_tracepoint_from_upload): Pass
8023 CREATE_BREAKPOINT_FLAGS_INSERTED.
8024 * breakpoint.h (enum breakpoint_create_flags): New.
8025 (create_breakpoint): New flags parameter.
8026 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8027 * python/py-breakpoint.c (bppy_init): Adjust.
8028 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8029 * spu-tdep.c (spu_catch_start): Adjust.
8031 2012-03-13 Pedro Alves <palves@redhat.com>
8032 Hui Zhu <teawater@gmail.com>
8033 Yao Qi <yao@codesourcery.com>
8035 * remote.c (struct remote_state): New field `starting_up'.
8036 (remote_start_remote): Set and clear it.
8037 (remote_can_download_tracepoint): If starting up, return false.
8039 2012-03-13 Yao Qi <yao@codesourcery.com>
8041 * inferior.h (struct inferior): Remove fields any_syscall_count,
8042 syscalls_counts and total_syscalls_count. Move them to new
8043 struct catch_syscall_inferior_data in breakpoint.c.
8044 * breakpoint.c: Call DEF_VEC_I(int).
8045 (struct catch_syscall_inferior_data): New.
8046 (get_catch_syscall_inferior_data): New.
8047 (catch_syscall_inferior_data_cleanup): New.
8048 (insert_catch_syscall): Update to access data in
8049 struct catch_syscall_inferior_data.
8050 (insert_catch_syscall): Likewise.
8051 (remove_catch_syscall): Likewise.
8052 (remove_catch_syscall): Likewise.
8053 (is_syscall_catchpoint_enabled): Likewise.
8054 (add_catch_command): Likewise.
8055 (_initialize_breakpoint): Register cleanup.
8056 * breakpoint.h: Removed DEF_VEC_I(int).
8057 * dwarf2loc.c: Call DEF_VEC_I(int).
8058 * mi/mi-main.c: Likewise.
8060 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8062 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8064 2012-03-12 Chris January <chris.january@allinea.com>
8066 * aix-thread.c (_initialize_aix_thread): Add prototype.
8067 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8068 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8070 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8072 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8073 include of "amd64-nat.h".
8075 2012-03-12 Tom Tromey <tromey@redhat.com>
8077 * buildsym.c (record_pending_block): Now static.
8078 * buildsym.h: (record_pending_block): Remove.
8080 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8082 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8084 2012-03-09 Tom Tromey <tromey@redhat.com>
8086 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8087 producer_is_gxx_lt_4_6>: New fields.
8088 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8090 2012-03-09 Tom Tromey <tromey@redhat.com>
8092 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8094 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8096 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8099 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8101 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8103 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8105 Fix -Wmissing-prototypes build.
8106 * arm-linux-nat.c (get_thread_id): Make it static.
8107 * xtensa-linux-nat.c (get_thread_id): Likewise.
8109 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8111 * server.c (process_point_options): If a conditional expression
8112 is found, only print a message if remote_debug is nonzero.
8114 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8116 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8117 of internal error for unknown/unsupported types.
8119 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8121 Fix CU relative vs. absolute DIE offsets.
8122 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8123 offset to offset_in_cu.
8124 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8126 (dwarf2_fetch_die_location_block): Rename parameter offset to
8127 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8129 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8131 * libunwind-frame.c: Rename to ...
8132 * ia64-libunwind-tdep.c: ... here.
8133 * libunwind-frame.h: Rename to ...
8134 * ia64-libunwind-tdep.h: ... here.
8135 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8136 ia64-libunwind-tdep.h.
8137 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8138 * README (--with-libunwind): Rename to ...
8139 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8140 * config.in: Regenerate.
8141 * configure: Regenerate.
8142 * configure.ac: New option --with-libunwind-ia64, make the
8143 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8144 Remove AC_DEFINE for HAVE_LIBUNWIND.
8145 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8146 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8147 Rename libunwind-frame in the general comment.
8148 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8149 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8150 Move forward declarations inside #ifndef. Rename libunwind-frame in
8151 the general comment.
8152 * ia64-tdep.c: Rename libunwind-frame.h #include to
8153 ia64-libunwind-tdep.h.
8154 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8155 (ia64_libunwind_descr): Rename libunwind-frame to
8156 ia64-libunwind-tdep in these function comments.
8157 * ia64-tdep.h: Rename libunwind-frame.h #include to
8158 ia64-libunwind-tdep.h.
8159 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8160 ia64-libunwind-tdep in that data comment.
8162 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8164 * libunwind-frame.h (struct frame_unwind): New declaration.
8166 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8168 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8169 "set breakpoint condition-evaluation" command.
8171 2012-03-08 Tristan Gingold <gingold@adacore.com>
8173 * sparc-stub.c: Move to stubs/
8174 * sh-stub.c: Likewise.
8175 * m68k-stub.c: Likewise.
8176 * m32r-stub.c: Likewise.
8177 * i386-stub.c: Likewise.
8179 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8181 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8182 linux_get_siginfo_type.
8184 * m68klinux-nat.c: Include "gdb_proc_service.h".
8185 (PTRACE_GET_THREAD_AREA): Define.
8186 (ps_get_thread_area): New function.
8188 2012-03-08 Yao Qi <yao@codesourcery.com>
8190 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8192 (remote_query_attached): Likewise.
8193 (remote_static_tracepoint_marker_at): Likewise.
8194 (remote_set_permissions): Likewise.
8195 (remote_detach_1, extended_remote_attach_1): Likewise.
8196 (send_g_packet, remote_vkill): Likewise.
8197 (extended_remote_disable_randomization): Likewise.
8198 (remote_add_target_side_condition): Likewise.
8199 (remote_insert_breakpoint): Likewise.
8200 (remote_remove_breakpoint): Likewise.
8201 (remote_insert_watchpoint): Likewise.
8202 (remote_remove_watchpoint): Likewise.
8203 (remote_insert_hw_breakpoint): Likewise.
8204 (remote_insert_hw_breakpoint): Likewise.
8205 (remote_remove_hw_breakpoint): Likewise.
8206 (remote_download_command_source): Likewise.
8207 (remote_download_tracepoint): Likewise.
8208 (remote_download_trace_state_variable): Likewise.
8209 (remote_disable_tracepoint): Likewise.
8210 (remote_trace_set_readonly_regions): Likewise.
8211 (remote_get_tracepoint_status): Likewise.
8212 (remote_trace_find): Likewise.
8213 (remote_get_trace_state_variable_value): Likewise.
8214 (remote_set_disconnected_tracing): Likewise.
8215 (remote_set_circular_trace_buffer): Likewise.
8216 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8217 (remote_use_agent): Likewise.
8218 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8221 2012-03-07 Pedro Alves <palves@redhat.com>
8223 * NEWS: Mention QProgramSignals.
8224 * inferior.h (update_signals_program_target): Declare.
8225 * infrun.c: (update_signals_program_target): New.
8226 (handle_command): Update the target of the new program signals
8228 * remote.c (PACKET_QProgramSignals): New enum.
8229 (last_program_signals_packet): New global.
8230 (remote_program_signals): New.
8231 (remote_start_remote): Update the target with the program signals
8233 (remote_protocol_features): Add entry for QPassSignals.
8234 (remote_open_1): Free anc clear last_program_signals_packet.
8235 (init_remote_ops): Install remote_program_signals.
8236 * target.c (update_current_target): Adjust.
8237 (target_program_signals): New.
8238 * target.h (struct target_ops) <to_program_signals>: New field.
8239 (target_program_signals): Declare.
8241 2012-03-07 Pedro Alves <palves@redhat.com>
8243 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8246 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8248 * m68klinux-nat.c (getregs_supplies): Make static.
8249 (getfpregs_supplies): Likewise.
8250 (have_ptrace_getregs): Likewise.
8252 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8254 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8255 in call to get_die_type_at_offset.
8257 2012-03-06 Stan Shebs <stan@codesourcery.com>
8259 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8260 * mi/mi-cmd-disas.c: Ditto.
8261 * mi/mi-cmd-env.c: Ditto.
8262 * mi/mi-cmd-file.c: Ditto.
8263 * mi/mi-cmd-stack.c: Ditto.
8264 * mi/mi-cmd-target.c: Ditto.
8265 * mi/mi-cmd-var.c: Ditto.
8266 * mi/mi-cmds.c: Ditto.
8267 * mi/mi-cmds.h: Ditto.
8268 * mi/mi-console.c: Ditto.
8269 * mi/mi-getopt.c: Ditto.
8270 * mi/mi-getopt.h: Ditto.
8271 * mi/mi-interp.c: Ditto.
8272 * mi/mi-main.c: Ditto.
8273 * mi/mi-out.c: Ditto.
8274 * mi/mi-parse.c: Ditto.
8275 * mi/mi-parse.h: Ditto.
8276 * mi/mi-symbol-cmds.c: Ditto.
8278 * mi/mi-getopt.h: Move mi_opt struct up.
8279 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8281 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8283 2012-03-06 Tom Tromey <tromey@redhat.com>
8285 * proc-service.c (ps_pglobal_lookup): Set the current program
8288 2012-03-06 Pedro Alves <palves@redhat.com>
8290 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8292 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8294 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8296 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8299 * common/linux-osdata.c (linux_common_core_of_thread): New function
8301 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8302 call by linux_common_core_of_thread.
8303 (linux_nat_core_of_thread_1): Remove.
8304 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8305 * linux-thread-db.c: Include linux-osdata.h.
8306 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8307 linux_common_core_of_thread.
8309 2012-03-05 Tom Tromey <tromey@redhat.com>
8311 * value.c (value_primitive_field): Don't fetch contents for
8314 2012-03-05 Tom Tromey <tromey@redhat.com>
8316 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8318 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8320 * s390-nat.c: Include "gregset.h".
8322 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8324 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8325 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8326 (libunwind_load): New variable so_error, use it for dlerror. Try to
8327 load also LIBUNWIND_SO_7.
8329 2012-03-05 Pedro Alves <palves@redhat.com>
8331 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8332 is not NULL, and remove resulting dead code.
8334 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8336 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8337 prologue to sh_analyze_prologue.
8338 (sh_analyze_prologue): Make better use of such an upper limit, and
8339 generally be more cautious about accessing memory.
8341 2012-03-05 Tom Tromey <tromey@redhat.com>
8343 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8344 _initialize_ia64_hpux_tdep.
8346 2012-03-05 Pedro Alves <palves@redhat.com>
8350 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8351 the register state is clear, supply explicit zero, instead of
8352 marking the register unavailable.
8354 2012-03-05 Tristan Gingold <gingold@adacore.com>
8356 * NEWS: Mention OpenVMS ia64 new target.
8358 2012-03-05 Tristan Gingold <gingold@adacore.com>
8360 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8361 (ia64_unw_accessors, ia64_unw_rse_accessors)
8362 (ia64_libunwind_descr): Declare.
8363 * ia64-vms-tdep.c: New file.
8364 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8365 (ia64_libunwind_descr): Make them public.
8366 * configure.tgt: Add ia64-*-*vms*.
8367 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8368 (ALLDEPFILES): Add ia64-vms-tdep.c
8370 2012-03-05 Tristan Gingold <gingold@adacore.com>
8372 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8373 * remote.c (PACKET_qXfer_uib): New enum value.
8374 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8375 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8376 (_initialize_remote): Call add_packet_config_cmd for
8379 2012-03-05 Tristan Gingold <gingold@adacore.com>
8381 * osabi.c (gdb_osabi_names): Add OpenVMS.
8382 (generic_elf_osabi_sniffer): Likewise.
8383 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8385 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8387 Removed unused code.
8388 * libunwind-frame.c (libunwind_frame_unwind)
8389 (libunwind_frame_base_address): Remove.
8390 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8392 2012-03-04 Yao Qi <yao@codesourcery.com>
8394 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8395 remove trailing new line.
8396 (agent_run_command, agent_run_command): Add _ markup.
8397 (agent_capability_check): Likewise.
8399 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 * breakpoint.c (set_condition_evaluation_mode): Set
8402 CONDITION_EVALUATION_MODE unconditionally.
8404 2012-03-03 Yao Qi <yao@codesourcery.com>
8406 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8407 * common/agent.h: Update declaration.
8408 * inf-child.c (inf_child_use_agent): New.
8409 (inf_child_can_use_agent): New.
8410 (inf_child_target): Initialize fields `to_use_agent'
8411 and `to_can_use_agent'.
8412 * agent.c (agent_new_objfile): New.
8413 (_initialize_agent): Add agent_new_objfile to new_objfile
8416 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8418 (linux_target_install_ops): Initialize field
8419 `to_static_tracepoint_markers_by_strid'.
8420 * remote.c (free_current_marker): Move it to ...
8421 * tracepoint.c (free_current_marker): ... here. New.
8422 (cleanup_target_stop): New.
8423 * tracepoint.h: Declare free_current_marker.
8424 * NEWS: Add one entry about `info static-tracepoint-marker'.
8426 2012-03-03 Yao Qi <yao@codesourcery.com>
8428 * common/agent.c (agent_loaded_p): New.
8429 (agent_look_up_symbols): New global.
8430 * common/agent.h: Declare agent_loaded_p.
8432 2012-03-03 Yao Qi <yao@codesourcery.com>
8434 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8435 (agent_capability_check, agent_capability_invalidate): New.
8436 (symbol_list): New array element.
8437 * common/agent.h (enum agent_capa): New.
8438 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8440 2012-03-03 Yao Qi <yao@codesourcery.com>
8442 * target.h (struct target_ops) <to_use_agent>: New field.
8443 (struct target_ops) <to_can_use_agent>: New field.
8444 (target_use_agent, target_can_use_agent): New macro.
8445 * target.c (update_current_target): Update.
8446 * remote.c: New enum `PACKET_QAgent'.
8447 (remote_protocol_features): Add a new element.
8448 (remote_use_agent, remote_can_use_agent): New.
8449 (init_remote_ops): Initialize field `can_use_agent' with
8450 remote_can_use_agent. Intiailize field `use_agent' with
8452 * common/agent.c (use_agent): New global.
8453 * common/agent.h: Declare it.
8454 * tracepoint.c (info_static_tracepoint_markers_command): Add
8456 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8457 (COMMON_OBS): Add common/agent.o and agent.o
8458 (common-agent.o): New rule.
8461 2012-03-03 Yao Qi <yao@codesourcery.com>
8463 * common/agent.c: New.
8464 * common/agent.h: New.
8465 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8467 * configure, configh.in: Regenerated.
8469 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8471 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8472 unless it exists for this architecture.
8474 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8476 * language.h (struct language_defn): New "method" la_read_var_value.
8477 * findvar.c: #include "language.h".
8478 (default_read_var_value): Renames read_var_value. Rewrite
8479 function description.
8480 (read_var_value): New function.
8481 * value.h (default_read_var_value): Add prototype.
8482 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8484 (ada_language_defn): Add entry for la_read_var_value.
8485 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8486 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8487 language_defn structures to add entry for new la_read_var_value
8490 2012-03-02 Tom Tromey <tromey@redhat.com>
8491 Pedro Alves <palves@redhat.com>
8493 PR breakpoints/13776:
8494 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8496 (delete_longjmp_breakpoint_at_next_stop): New.
8497 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8498 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8499 before deleting the inferior. Add comments.
8500 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8501 breakpoints immediately, but only on next stop. Move that code
8502 next to where we mark other breakpoints for deletion.
8504 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8506 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8508 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8511 2012-03-02 Pedro Alves <palves@redhat.com>
8513 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8515 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8517 Fix -Wmissing-prototypes build.
8518 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8519 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8520 (gdbsim_has_memory): Likewise.
8522 2012-03-02 Yao Qi <yao@codesourcery.com>
8524 Fix -Wmissing-prototypes build.
8525 * charset.c (phony_iconv_open): Make static.
8526 (phony_iconv_close, phony_iconv): Likewise.
8527 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8528 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8530 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8531 * ser-mingw.c (create_select_thread): Make static.
8532 * windows-termcap.c (tgetent): New prototype.
8533 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8535 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8537 Fix -Wmissing-prototypes build.
8538 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8539 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8540 (_initialize_loadable): New prototypes.
8542 2012-03-02 Doug Evans <dje@google.com>
8544 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8545 abbrev table, read_comp_unit will do it.
8547 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8549 Fix -Wmissing-prototypes build.
8550 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8551 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8552 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8553 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8554 (_initialize_arm_symbian_tdep): New prototype.
8555 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8556 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8557 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8559 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8560 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8562 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8563 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8564 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8566 * moxie-tdep.c (moxie_process_record): Likewise.
8567 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8568 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8569 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8570 (_initialize_rl78_tdep): New prototype.
8571 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8572 (_initialize_rx_tdep): New prototype.
8573 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8574 (_initialize_darwin_solib): New prototype.
8575 * solib-spu.c: Include solib-spu.h.
8576 (_initialize_spu_solib): New prototype.
8577 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8578 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8579 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8580 (tic6x_software_single_step): Make it static.
8581 (_initialize_tic6x_tdep): New prototype.
8583 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8585 Fix -Wmissing-prototypes build.
8586 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8587 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8589 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8591 Fix -Wmissing-prototypes build.
8592 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8593 (frv_have_stopped_data_address): Remove.
8595 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8597 Fix -Wmissing-prototypes build.
8598 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8599 * sh-tdep.c: Include sh64-tdep.h.
8600 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8601 * sh64-tdep.c: Include sh64-tdep.h.
8602 * sh64-tdep.h: New file.
8604 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8606 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8608 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8610 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8611 sp_regnum once the gdbarch_init_osabi hook has been called.
8613 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8615 * mips-tdep.c (mips32_bc1_pc): New function.
8616 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8617 BPOSGE32 and BPOSGE64 instructions.
8618 (deal_with_atomic_sequence): Likewise.
8619 (mips32_instruction_has_delay_slot): Likewise.
8621 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8622 Chris Dearman <chris@mips.com>
8623 Maciej W. Rozycki <macro@codesourcery.com>
8624 Joseph Myers <joseph@codesourcery.com>
8626 * features/mips-dsp.xml: New file.
8627 * features/mips64-dsp.xml: New file.
8628 * features/mips-dsp-linux.xml: New file.
8629 * features/mips64-dsp-linux.xml: New file.
8630 * features/Makefile (WHICH): Add mips-dsp-linux and
8632 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8633 * features/mips-dsp-linux.c: New file.
8634 * features/mips64-dsp-linux.c: New file.
8635 * regformats/mips-dsp-linux.dat: New file.
8636 * regformats/mips64-dsp-linux.dat: New file.
8637 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8639 (mips64_linux_register_addr): Likewise.
8640 (mips64_linux_regsets_fetch_registers): Likewise.
8641 (mips64_linux_regsets_store_registers): Likewise.
8642 (mips64_linux_fetch_registers): Update call to
8643 mips64_linux_regsets_fetch_registers.
8644 (mips64_linux_store_registers): Update call to
8645 mips64_linux_regsets_store_registers.
8646 (mips_linux_read_description): Probe for DSP registers.
8647 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8648 and initialize_tdesc_mips64_dsp_linux.
8649 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8650 Remove padding of no longer used embedded register slots.
8651 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8652 (MIPS_RESTART_REGNUM): Redefine enum value.
8653 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8655 (mips_tx39_reg_names): Likewise.
8656 (mips_linux_reg_names): New array of register names for Linux
8658 (mips_register_name): Check for a null pointer in
8659 mips_processor_reg_names and return an empty string.
8660 (mips_register_type): Exclude embedded registers for the IRIX
8662 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8663 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8665 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8666 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8667 (mips_gdbarch_init): Likewise. Initialize internal register
8668 indices for the Linux ABI. Use dynamic numbers to refer to
8669 registers, as applicable, while parsing the target description.
8670 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8672 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8674 * frame.h (read_frame_register_unsigned): Fix typo in function
8677 2012-03-01 Pedro Alves <palves@redhat.com>
8679 * jit-reader.in [!__cplusplus]
8680 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8682 2012-03-01 Pedro Alves <palves@redhat.com>
8684 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8685 * configure: Regenerate.
8687 2012-03-01 Pedro Alves <palves@redhat.com>
8689 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8690 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8691 (ftrace_command, strace_command): Make static.
8692 * d-lang.c (_initialize_d_language): Declare.
8693 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8694 * dwarf2loc.c (_initialize_dwarf2loc):
8695 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8696 * exec.c (exec_get_section_table): Make static.
8697 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8698 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8699 * inferior.c (remove_inferior_command, add_inferior_command)
8700 (clone_inferior_command): Make static.
8701 * linux-nat.c (linux_nat_thread_address_space)
8702 (linux_nat_core_of_thread): Make static.
8703 * linux-tdep.c (_initialize_linux_tdep): Declare.
8704 * objc-lang.c (_initialize_objc_lang): Declare.
8705 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8707 (_initialize_opencl_language): Declare.
8708 * record.c (_initialize_record): Declare.
8709 * remote.c (demand_private_info, remote_get_tib_address)
8710 (remote_supports_cond_tracepoints)
8711 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8713 * skip.c (_initialize_step_skip): Declare.
8714 * symtab.c (skip_prologue_using_lineinfo): Make static.
8715 * tracepoint.c (delete_trace_state_variable)
8716 (trace_variable_command, delete_trace_variable_command)
8717 (get_uploaded_tsv, find_matching_tracepoint_location)
8718 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8720 * value.c (pack_unsigned_long): Make static.
8721 * varobj.c (varobj_ensure_python_env): Make static.
8722 * windows-tdep.c (_initialize_windows_tdep): Declare.
8723 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8725 2012-03-01 Pedro Alves <palves@redhat.com>
8727 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8729 (linux_init_abi): Install it as has_shared_address_space gdbarch
8732 2012-03-01 Pedro Alves <palves@redhat.com>
8734 * observer.c (observer_test_first_notification_function)
8735 (observer_test_second_notification_function)
8736 (observer_test_third_notification_function): Add declarations.
8738 2012-03-01 Pedro Alves <palves@redhat.com>
8740 * common/signals.c (default_target_signal_to_host)
8741 (default_target_signal_from_host): Move ...
8742 * arch-utils.c: ... here.
8743 * arch-utils.h (default_target_signal_to_host)
8744 (default_target_signal_from_host): Declare.
8746 * common/signals.c (target_signal_from_command): Move ...
8747 * infrun.c: ... here.
8748 * inferior.h (target_signal_from_command): Declare.
8749 * target.h (target_signal_from_command)
8750 (default_target_signal_from_host, default_target_signal_to_host):
8751 Delete declarations.
8753 * common/signals.c (_initialize_signals): Delete.
8755 2012-03-01 Pedro Alves <palves@redhat.com>
8757 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8758 both __cplusplus and !__cplusplus.
8760 2012-03-01 Pedro Alves <palves@redhat.com>
8762 * psymtab.c (find_and_open_source): Delete declaration.
8763 * source.c (find_and_open_source): Move comment ...
8764 * source.h (find_and_open_source): ... to this new declaration.
8766 2012-03-01 Pedro Alves <palves@redhat.com>
8768 * inline-frame.c: Include inline-frame.h.
8770 2012-03-01 Pedro Alves <palves@redhat.com>
8772 * tui/tui-data.c (set_gen_win_origin): Delete.
8773 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8774 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8776 2012-03-01 Pedro Alves <palves@redhat.com>
8778 * remote.c (encode_actions): Delete declaration.
8779 * tracepoint.c (encode_actions): Make extern.
8780 * tracepoint.h (encode_actions): Declare.
8782 2012-03-01 Pedro Alves <palves@redhat.com>
8784 * python/py-breakpoint.c: Include python.h.
8785 * python/py-continueevent.c (create_continue_event_object): Make
8787 * python/py-lazy-string.c (stpy_get_type): Make static.
8788 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8790 * python/py-utils.c (unicode_to_target_python_string): Make
8792 * python/py-value.c: Include python.h.
8794 2012-03-01 Pedro Alves <palves@redhat.com>
8796 * inferior.c (delete_threads_of_inferior): Delete.
8798 2012-03-01 Pedro Alves <palves@redhat.com>
8800 Import fallback definitions from glibc.
8802 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8803 ps_prochandle): Forward declare.
8804 (ps_err_e): Use glibc's comments.
8805 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8806 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8807 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8808 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8809 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8810 (struct ps_prochandle): Adjust comment.
8812 2012-03-01 Pedro Alves <palves@redhat.com>
8814 * ada-lang.c (ada_modulus_from_name): Delete.
8815 * ada-lex.l (lexer_init): Make static.
8817 2012-03-01 Pedro Alves <palves@redhat.com>
8821 * frame.c (read_frame_register_unsigned): New.
8822 * frame.h (read_frame_register_unsigned): Declare.
8823 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8825 (print_i387_control_word): New parameter `control_p'. Handle it.
8826 (i387_print_float_info): Handle unavailable float registers.
8828 2012-03-01 Keith Seitz <keiths@redhat.com>
8830 * linespec.c (decode_line_2): Sort the list of methods
8831 alphabetically before presenting the user with a selection
8834 2012-03-01 Doug Evans <dje@google.com>
8836 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8838 (dwarf2_read_abbrevs): Remove corresponding initialization.
8840 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8842 * NEWS: Mention new python command class gdb.COMMAND_USER.
8843 * cli/cli-cmds.c (show_user): Print error when used on a python
8845 (init_cli_cmds): Update documentation strings for "show user" and
8846 "set/show max-user-call-depth" to clarify that it does not apply to
8848 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8850 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8852 * top.c (execute_command): Only execute a user-defined command as a
8853 legacy macro if c->user_commands is set.
8855 2012-03-01 Tom Tromey <tromey@redhat.com>
8857 * valprint.h (struct generic_val_print_decorations): New.
8858 (generic_val_print): Declare.
8859 * valprint.c (generic_val_print): New function.
8860 * p-valprint.c (p_decorations): New global.
8861 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8862 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8863 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8864 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8865 * m2-valprint.c (m2_decorations): New global.
8866 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8867 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8868 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8869 TYPE_CODE_ERROR>: Call generic_val_print.
8870 * f-valprint.c (f_decorations): New global.
8871 (f_val_print): Use print_function_pointer_address.
8872 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8873 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8874 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8876 * c-valprint.c (c_decorations): New global.
8877 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8878 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8879 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8880 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8881 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8882 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8885 2012-03-01 Tom Tromey <tromey@redhat.com>
8887 * valprint.c (val_print): Update.
8888 * p-valprint (pascal_val_print): Return void.
8889 * p-lang.h (pascal_val_print): Return void.
8890 * m2-valprint.c (m2_val_print): Return void.
8891 * m2-lang.h (m2_val_print): Return void.
8892 * language.h (struct language_defn) <la_val_print>: Return void.
8893 * language.c (unk_lang_val_print): Return void.
8894 * jv-valprint.c (java_val_print): Return void.
8895 * jv-lang.h (java_val_print): Return void.
8896 * f-valprint.c (f_val_print): Return void.
8897 * f-lang.h (f_val_print): Return void.
8898 * d-valprint.c (d_val_print): Return void.
8899 (dynamic_array_type): Update.
8900 * d-lang.h (d_val_print): Return void.
8901 * c-valprint.c (c_val_print): Return void.
8902 * c-lang.h (c_val_print): Return void.
8903 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8905 * ada-lang.h (ada_val_print): Return void.
8907 2012-03-01 Tom Tromey <tromey@redhat.com>
8909 * value.h (val_print): Return void.
8910 * valprint.c (val_print): Return void.
8912 2012-03-01 Tom Tromey <tromey@redhat.com>
8914 * value.h (common_val_print): Return void.
8915 * valprint.c (common_val_print): Return void.
8917 2012-03-01 Tom Tromey <tromey@redhat.com>
8919 * value.h (value_print): Return void.
8920 * valprint.c (value_print): Return void.
8921 * p-valprint.c (pascal_value_print): Return void.
8922 * p-lang.h (pascal_value_print): Return void.
8923 * language.h (struct language_defn) <la_value_print>: Return
8925 * language.c (unk_lang_value_print): Return void.
8926 * jv-valprint.c (java_value_print): Return void.
8927 * jv-lang.h (java_value_print): Return void.
8928 * f-valprint.c (c_value_print): Don't declare.
8930 * c-valprint.c (c_value_print): Return void.
8931 * c-lang.h (c_value_print): Return void.
8932 * ada-valprint.c (ada_value_print): Return void.
8933 * ada-lang.h (ada_value_print): Return void.
8935 2012-03-01 Tom Tromey <tromey@redhat.com>
8937 * value.c (value_primitive_field): Handle virtual base classes.
8939 2012-03-01 Tom Tromey <tromey@redhat.com>
8941 * gdbtypes.h (struct vbase): Remove.
8943 2012-03-01 Tom Tromey <tromey@redhat.com>
8945 * c-valprint.c (print_function_pointer_address): Move...
8946 * valprint.c: ... here. Make non-static.
8947 * m2-valprint.c (print_function_pointer_address): Remove.
8948 * valprint.h (print_function_pointer_address): Declare.
8950 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8952 * NEWS: Document the fact that one can provide a condition when
8953 creating an Ada exception catchpoint.
8955 2012-03-01 Tom Tromey <tromey@redhat.com>
8957 * valprint.c (val_print_type_code_flags): Fix placement of
8960 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8962 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8963 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8964 environment variable before calling update-copyright.
8966 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8968 * gnulib/extra/update-copyright: Update to the latest from
8969 gnulib's git repository.
8970 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8971 variable to 2 instead of 1.
8973 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8975 * varobj.c (c_value_of_variable): Remove dead code.
8977 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8979 * ada-lex.p (processId): Do not modify already encoded IDs.
8980 Update function documentation.
8982 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8984 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8985 "name" with "struct symbol *name_sym".
8986 * ada-exp.y (write_var_or_type): Update call to
8987 ada_find_renaming_symbol.
8988 "name" with "struct symbol *name_sym". Adjust Implementation
8989 accordingly. Adjust the function documentation.
8991 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8993 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8994 * ada-lang.c (ada_find_any_type): Add advance declaration.
8995 Make static. Replace ada_find_any_symbol by
8996 ada_find_any_type_symbol.
8997 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8998 Improve function description. Make static.
8999 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9000 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9002 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9004 * ada-lang.c (struct tag_args): Delete.
9005 (ada_get_tsd_type): Function body moved up in source file.
9006 (ada_tag_name_1, ada_tag_name_2): Delete.
9007 (ada_get_tsd_from_tag): New function.
9008 (ada_tag_name_from_tsd): New function.
9009 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9010 to determine the tag name.
9012 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9014 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9016 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9019 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9021 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9023 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9025 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9028 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9030 * ada-lang.c (constrained_packed_array_type): If there is a
9031 parallel XA type, use it to determine the array index type.
9033 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9035 * ada-valprint.c (ada_val_print_1): If our value is a reference
9036 to an array descriptor, dereference it before converting it
9039 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9041 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9042 creating fixed value.
9043 (ada_value_ind, ada_coerce_ref, assign_component)
9044 (ada_evaluate_subexp): Remove call to unwrap_value before
9045 call to ada_to_fixed_value.
9047 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9049 * ada-lang.c (to_fixed_array_type): Set result's type name.
9051 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9053 * ada-lang.c (catch_ada_exception_command_split): Add new
9054 argument cond_string. Add support for condition at end of
9055 "catch exception" commands.
9056 (ada_decode_exception_location): Add new argument cond_string.
9057 Update call to catch_ada_exception_command_split.
9058 (create_ada_exception_catchpoint): Add new argument cond_string.
9059 Set the breakpoint condition if needed.
9060 (catch_ada_exception_command): Update call to
9061 ada_decode_exception_location.
9062 (ada_decode_assert_location): Add function documentation.
9063 Add support for condition at end of "catch assert" command.
9064 (catch_assert_command): Update calls to ada_decode_assert_location
9065 and create_ada_exception_catchpoint.
9067 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9069 Fix disp-step-syscall.exp: fork: single step over fork.
9070 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9071 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9072 comment, change parameters gdbarch and ptid to regcache. Remove
9073 parameter regcache, initialize gdbarch from regcache here.
9074 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9076 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9078 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9079 'syscall'. Make the 'int' check more strict.
9081 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9083 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9084 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9085 (i386_linux_intx80_sysenter_syscall_record): ... here.
9086 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9087 Use the renamed function name.
9089 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9091 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9092 * breakpoint.c (until_break_command): Likewise.
9093 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9094 * infcall.c (call_function_by_hand): Likewise.
9095 * infcmd.c (finish_forward): Likewise.
9096 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9098 2012-02-28 Tristan Gingold <gingold@adacore.com>
9100 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9101 avoid variable assignments inside condition.
9103 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9105 Fix static analysis issue found by cppcheck.
9106 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9107 uninitialized BUF for size 2.
9109 2012-02-27 Chris Dearman <chris@mips.com>
9110 Nathan Froyd <froydnj@codesourcery.com>
9111 Maciej W. Rozycki <macro@codesourcery.com>
9113 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9114 (mips16_instruction_has_delay_slot): Likewise.
9115 (mips_segment_boundary): Likewise.
9116 (mips_adjust_breakpoint_address): Likewise.
9117 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9119 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9120 Maciej W. Rozycki <macro@codesourcery.com>
9122 * infrun.c (handle_inferior_event): Don't proceed through
9123 shared library trampolines if stepping at the machine
9126 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9128 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9131 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9133 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9134 (sh_stub_unwind_sniffer): New functions.
9135 (sh_stub_unwind): New variable.
9136 (sh_gdbarch_init): Wire everything.
9138 2012-02-27 Pedro Alves <palves@redhat.com>
9140 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9141 (linux_nat_post_attach_wait): Adjust to use
9142 linux_proc_pid_is_stopped.
9143 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9144 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9145 based on pid_is_stopped from both linux-nat.c and
9146 gdbserver/linux-low.c, and renamed.
9148 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9150 * remote.c (remote_watchpoint_addr_within_range): New function.
9151 (init_remote_ops): Use it.
9153 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9155 * target.h (target_watchpoint_addr_within_range): Document macro.
9157 2012-02-24 Pedro Alves <palves@redhat.com>
9159 * stack.c (set_last_displayed_sal): Issue internal_error instead
9160 of warning, and issue it after clearing the last displayed sal.
9162 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9163 Pedro Alves <palves@redhat.com>
9165 * breakpoint.c (until_break_command): Install breakpoints after
9166 all frame manipulations.
9168 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9170 * remote.c (remote_supports_cond_breakpoints): New forward
9172 (remote_add_target_side_condition): New function.
9173 (remote_insert_breakpoint): Add target-side breakpoint
9174 conditional if supported.
9175 (remote_insert_hw_breakpoint): Likewise.
9176 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9179 * target.c (update_current_target): Inherit
9180 to_supports_evaluation_of_breakpoint_conditions.
9181 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9183 * target.h (struct target_ops)
9184 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9185 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9187 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9188 (condition_evaluation_both, condition_evaluation_auto,
9189 condition_evaluation_host, condition_evaluation_target,
9190 condition_evaluation_enums, condition_evaluation_mode_1,
9191 condition_evaluation_mode): New static globals.
9192 (translate_condition_evaluation_mode): New function.
9193 (breakpoint_condition_evaluation_mode): New function.
9194 (gdb_evaluates_breakpoint_condition_p): New function.
9195 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9196 (mark_breakpoint_modified): New function.
9197 (mark_breakpoint_location_modified): New function.
9198 (set_condition_evaluation_mode): New function.
9199 (show_condition_evaluation_mode): New function.
9200 (bp_location_compare_addrs): New function.
9201 (get_first_location_gte_addr): New helper function.
9202 (set_breakpoint_condition): Free condition bytecode if locations
9203 has become unconditional. Call mark_breakpoint_modified (...).
9204 (condition_command): Call update_global_location_list (1) for
9206 (breakpoint_xfer_memory): Use is_breakpoint (...).
9207 (is_breakpoint): New function.
9208 (parse_cond_to_aexpr): New function.
9209 (build_target_condition_list): New function.
9210 (insert_bp_location): Handle target-side conditional
9211 breakpoints and call build_target_condition_list (...).
9212 (update_inserted_breakpoint_locations): New function.
9213 (insert_breakpoint_locations): Handle target-side conditional
9215 (bpstat_check_breakpoint_conditions): Add comment.
9216 (bp_condition_evaluator): New function.
9217 (bp_location_condition_evaluator): New function.
9218 (print_breakpoint_location): Print information on where the condition
9220 (print_one_breakpoint_location): Likewise.
9221 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9222 breakpoint location.
9223 (force_breakpoint_reinsertion): New functions.
9224 (update_global_location_list): Handle target-side breakpoint
9226 Reinsert locations that are already inserted if conditions have
9228 (bp_location_dtor): Free agent expression bytecode.
9229 (disable_breakpoint): Call mark_breakpoint_modified (...).
9230 Call update_global_location_list (...) with parameter 1 for breakpoints.
9231 (disable_command): Call mark_breakpoint_location_modified (...).
9232 Call update_global_location_list (...) with parameter 1 for breakpoints.
9233 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9234 (enable_command): mark_breakpoint_location_modified (...).
9235 (_initialize_breakpoint): Update documentation and add
9236 condition-evaluation breakpoint subcommand.
9238 * breakpoint.h: Include ax.h.
9239 (condition_list): New data structure.
9240 (condition_status): New enum.
9241 (bp_target_info) <cond_list>: New field.
9242 (bp_location) <condition_changed, cond_bytecode>: New fields.
9243 (is_breakpoint): New prototype.
9245 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9247 * remote.c (remote_state) <cond_breakpoints>: New field.
9248 (PACKET_ConditionalBreakpoints): New enum.
9249 (remote_cond_breakpoint_feature): New function.
9250 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9251 (remote_supports_cond_breakpoints): New function.
9252 (_initialize_remote): Add new packet configuration for
9253 target-side conditional breakpoints.
9255 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9257 * NEWS: Mention target-side conditional breakpoint support,
9258 new condition-evaluation breakpoint subcommand and remote
9261 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9263 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9266 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9268 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9269 (after_prologue): Remove.
9271 2012-02-23 Tom Tromey <tromey@redhat.com>
9273 * jv-valprint.c (java_val_print): Remove dead code.
9275 2012-02-23 Tristan Gingold <gingold@adacore.com>
9277 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9278 known_tasks_element and known_tasks_length fields.
9279 (read_known_tasks_array): Change argument type. Use pointer type
9280 and number of elements from DATA. Adjust.
9281 (read_known_tasks_list): Likewise.
9282 (get_known_tasks_addr): Remove.
9283 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9284 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9285 type and array length. Merge former get_known_tasks_addr code.
9287 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9290 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9291 it after set_momentary_breakpoint.
9293 2012-02-22 Sterling Augustine <saugustine@google.com>
9296 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9298 2012-02-22 Gary Benson <gbenson@redhat.com>
9300 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9301 (find_slot_in_mapped_hash): Likewise.
9303 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9306 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9307 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9308 * configure: Regenerate.
9310 2012-02-21 Tristan Gingold <gingold@adacore.com>
9311 Pedro Alves <palves@redhat.com>
9313 * ia64-tdep.c: Do not include libunwind-ia64.h.
9314 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9315 Include libunwind-ia64.h instead of libunwind.h.
9316 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9317 for libunwind.h existence.
9318 * configure, config.in: Regenerate.
9320 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9322 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9323 instead of value_rtti_target_type.
9324 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9325 instead of value_rtti_target_type.
9326 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9327 value_rtti_target_type.
9328 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9329 (value_rtti_target_type): Rename to ...
9330 (value_rtti_indirect_type): ... here and make it indirect. Update
9332 * value.c (readjust_indirect_value_type): New function.
9333 (coerce_ref): Support for enclosing type setting for references
9334 with readjust_indirect_value_type.
9335 * value.h (readjust_value_type): New declaration.
9336 (value_rtti_target_type): Rename to ...
9337 (value_rtti_indirect_type): ... here.
9339 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9341 * MAINTAINERS (Write After Approval): Add myself to the list.
9343 2012-02-20 Doug Evans <dje@google.com>
9345 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9346 Rename objfile_p_char parameter to objfilep.
9347 (build_objfile_section_table): Result is now void. All callers
9349 * objfiles.h (struct objfile): Tweak comments, whitespace.
9350 (build_objfile_section_table): Update.
9352 * elfread.c (elf_symfile_segments): Fix warning text.
9354 2012-02-20 Tom Tromey <tromey@redhat.com>
9357 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9358 particular set of file names once.
9359 (dw2_map_symbol_filenames): Likewise.
9361 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9364 * main.c (write_files): Remove the declaration.
9365 (external_editor_command): Move the declaration ...
9366 [GDBTK] (external_editor_command): ... here. Fix the comment.
9368 2012-02-20 Tom Tromey <tromey@redhat.com>
9370 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9373 2012-02-20 Tristan Gingold <gingold@adacore.com>
9375 * darwin-nat.h (enum darwin_msg_state): Add comments.
9377 2012-02-20 Tristan Gingold <gingold@adacore.com>
9379 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9382 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9384 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9385 between function description and implementation.
9387 2012-02-17 Tom Tromey <tromey@redhat.com>
9390 * python/py-event.c (event_object_getset): New global.
9391 (event_object_type): Reference it.
9392 * python/py-type.c (field_object_getset): New global.
9393 (field_object_type): Reference it.
9394 * python/python-internal.h (gdb_py_generic_dict): Declare.
9395 * python/py-utils.c (gdb_py_generic_dict): New function.
9397 2012-02-17 Tristan Gingold <gingold@adacore.com>
9399 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9401 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9403 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9404 TYPE_CALLING_CONVENTION annotation.
9406 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9408 * MAINTAINERS: Add rx to target ISA section.
9409 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9410 (ALLDEPFILES): Add rx-tdep.c.
9412 2012-02-16 Tom Tromey <tromey@redhat.com>
9414 * symfile.c (symbol_file_add_main_1): Use inferior's
9416 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9417 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9419 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9421 (follow_exec): Use inferior's symfile_flags.
9422 * inferior.h (struct inferior) <symfile_flags>: New field.
9424 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9427 * remote-sim.c (gdbsim_create_inferior): Call error() when
9428 sim_create_inferior() fails.
9430 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9432 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9434 2012-02-16 Tom Tromey <tromey@redhat.com>
9437 * thread.c (struct current_thread_cleanup) <was_removable>: New
9439 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9440 (make_cleanup_restore_current_thread): Initialize new field.
9442 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9444 * MAINTAINERS: Add rl78 to target ISA section.
9445 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9446 (ALLDEPFILES): Add rl78-tdep.c.
9447 * NEWS: Mention rl78 as a new target.
9449 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9451 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9453 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9455 2012-02-15 Tom Tromey <tromey@redhat.com>
9458 * infcmd.c (registers_info): Print just the current register's
9461 2012-02-15 Tom Tromey <tromey@redhat.com>
9463 * python/py-symbol.c (sympy_value): Use _().
9465 2012-02-15 Pedro Alves <palves@redhat.com>
9467 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9468 output to be like native targets'.
9469 (remote_pid_to_str): Special case the null ptid.
9471 2012-02-14 Stan Shebs <stan@codesourcery.com>
9473 * NEWS: Mention enable count command.
9474 * breakpoint.h (struct breakpoint): New field enable_count.
9475 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9476 (enable_breakpoint): Add arg to call.
9477 (struct disp_data): New struct.
9478 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9479 (do_map_enable_once_breakpoint): Create a struct and pass it.
9480 (do_map_enable_delete_breakpoint): Ditto.
9481 (do_map_enable_count_breakpoint): New function.
9482 (enable_count_command): New function.
9483 (bpstat_stop_status): Decrement enable_count.
9484 (print_one_breakpoint_location): Report enable count.
9485 (_initialize_breakpoint): Add enable count command.
9487 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9489 * rl78-tdep.c (reggroups.h): Include.
9490 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9491 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9492 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9493 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9494 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9495 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9496 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9497 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9498 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9499 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9500 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9501 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9502 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9503 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9504 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9505 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9506 beginning of register list.
9507 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9508 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9509 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9510 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9511 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9512 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9513 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9514 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9515 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9516 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9517 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9518 the pseudo registers. Rearrange other pseudo registers too so
9519 that the bank registers appear at the end.
9520 (rl78_register_type): Account for the fact that the byte sized
9521 bank registers are now pseudo-registers.
9522 (rl78_register_name): Rearrange the register name array. Make
9523 initial set of raw banked registers inaccessible.
9524 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9525 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9526 case for copying bytes back and forth between raw and pseudo
9527 versions of the banked registers. Update other cases to reflect
9529 (rl78_return_value): Update to account for changed names of
9531 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9532 rl78_register_sim_regno().
9534 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9536 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9537 the name parameter being passed to find_pc_partial_function().
9539 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9541 * MAINTAINERS: Step down from being ia64 target maintainer.
9543 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9545 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9546 compilation warning.
9548 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9550 Fix crash on loaded shlibs without loaded exec_bfd.
9551 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9552 (set_section_command): Replace exec_bfd by p->bfd.
9554 2012-02-10 Tom Tromey <tromey@redhat.com>
9556 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9557 when we have a C++ qualified name.
9559 2012-02-10 Pedro Alves <palves@redhat.com>
9561 * inferior.c (inferior_pid_to_str): New.
9562 (print_inferior, inferior_command): Use it.
9564 2012-02-10 Pedro Alves <palves@redhat.com>
9566 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9568 * configure: Regenerate.
9570 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9572 * linespec.c (decode_line_internal): Fix comment correctness.
9574 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9577 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9578 * amd64bsd-nat.c: Add support for debug registers (adapted from
9580 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9581 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9582 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9583 (amd64bsd_dr_get_control): New functions.
9584 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9585 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9586 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9587 watchpoints initialization.
9588 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9590 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9592 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9594 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9596 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9598 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9600 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9602 * language.h (symbol_name_cmp_ftype): Renames
9603 symbol_name_match_p_ftype.
9604 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9605 la_get_symbol_name_match_p.
9606 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9607 ada_get_symbol_name_match_p. Update comment.
9608 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9609 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9610 Renames symbol_name_match_p. Update field type.
9611 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9612 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9613 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9614 "la_get_symbol_name_cmp" in comments.
9615 * language.c: Likewise.
9617 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9619 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9621 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9622 (amd64_sol2_gregset32_reg_offs): Likewise.
9624 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9626 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9627 of the returned BFD is allocated by GDB.
9629 2012-02-07 Tom Tromey <tromey@redhat.com>
9632 * python/python-internal.h (frame_object_type): Declare.
9633 * python/py-symbol.c (sympy_needs_frame): New function.
9634 (sympy_value): New function.
9635 (symbol_object_getset): Add "needs_frame".
9636 (symbol_object_methods): Add "value".
9637 * python/py-frame.c (frame_object_type): No longer static.
9639 2012-02-07 Tom Tromey <tromey@redhat.com>
9642 * python/py-symbol.c (sympy_line): New function.
9643 (symbol_object_getset): Add "line".
9645 2012-02-07 Tom Tromey <tromey@redhat.com>
9647 * charset.c (find_charset_names): Check 'in' against NULL.
9649 2012-02-06 Doug Evans <dje@google.com>
9651 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9652 and fields.name members from char * to const char *. All uses updated.
9653 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9654 from char * to const char *. All uses updated.
9655 (type_name_no_tag): Update.
9656 (lookup_unsigned_typename, lookup_signed_typename): Update.
9657 * gdbtypes.c (type_name_no_tag): Change result type
9658 from char * to const char *. All callers updated.
9659 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9660 name parameter from char * to const char *.
9661 * symtab.h (struct cplus_specific): Change type of demangled_name
9662 member from char * to const char *. All uses updated.
9663 (struct general_symbol_info): Change type of name and
9664 mangled_lang.demangled_name members from char * to const char *.
9666 (symbol_get_demangled_name, symbol_natural_name): Update.
9667 (symbol_demangled_name, symbol_search_name): Update.
9668 * symtab.c (symbol_get_demangled_name): Change result type
9669 from char * to const char *. All callers updated.
9670 (symbol_natural_name, symbol_demangled_name): Ditto.
9671 (symbol_search_name): Ditto.
9672 (completion_list_add_name): Change type of symname,sym_text,
9673 text,word parameters from char * to const char *.
9674 (completion_list_objc_symbol): Change type of sym_text,
9675 text,word parameters from char * to const char *.
9676 * ada-lang.c (find_struct_field): Change type of name parameter
9677 from char * to const char *.
9678 (encoded_ordered_before): Similarly for N0,N1 parameters.
9679 (old_renaming_is_invisible): Similarly for function_name parameter.
9680 (ada_type_name): Change result type from char * to const char *.
9681 All callers updated.
9682 * ada-lang.h (ada_type_name): Update.
9683 * buildsym.c (hashname): Change type of name parameter
9684 from char * to const char *.
9685 * buildsym.h (hashname): Update.
9686 * dbxread.c (end_psymtab): Change type of include_list parameter
9687 from char ** to const char **.
9688 * dwarf2read.c (determine_prefix): Change result type
9689 from char * to const char *. All callers updated.
9690 * f-lang.c (find_common_for_function): Change type of name, funcname
9691 parameters from char * to const char *.
9692 * f-lang.c (find_common_for_function): Update.
9693 * f-valprint.c (list_all_visible_commons): Change type of funcname
9694 parameters from char * to const char *.
9695 * gdbarch.sh (static_transform_name): Change type of name parameter
9696 and result from char * to const char *.
9697 * gdbarch.c: Regenerate.
9698 * gdbarch.h: Regenerate.
9699 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9700 of name parameter from char * to const char *.
9701 * jv-lang.c (java_primitive_type_from_name): Ditto.
9702 (java_demangled_signature_length): Similarly for signature parameter.
9703 (java_demangled_signature_copy): Ditto.
9704 (java_demangle_type_signature): Ditto.
9705 * jv-lang.h (java_primitive_type_from_name): Update.
9706 (java_demangle_type_signature): Update.
9707 * objc-lang.c (specialcmp): Change type of a,b parameters
9708 from char * to const char *.
9709 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9710 from char * to const char *. All callers updated.
9711 * p-lang.h (is_pascal_string_type): Update.
9712 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9713 of name parameter from char * to const char *.
9714 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9715 * utils.c (fprintf_symbol_filtered): Ditto.
9716 * defs.h (fprintf_symbol_filtered): Update.
9717 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9718 * stabsread.h (end_psymtab): Update.
9719 * stack.c (find_frame_funname): Change type of funname parameter
9720 from char ** to const char **.
9721 * stack.h (find_frame_funname): Update.
9722 * typeprint.c (type_print): Change type of varstring parameter
9723 from char * to const char *.
9724 * value.h (type_print): Update.
9725 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9726 from char * to const char *. All callers updated.
9727 (xcoff_end_psymtab): Change type of include_list parameter
9728 from char ** to const char **. All callers updated.
9729 (swap_sym): Similarly for name parameter. All callers updated.
9730 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9732 (process_coff_symbol): Use xstrdup.
9733 * stabsread.c (stabs_method_name_from_physname): Renamed from
9734 update_method_name_from_physname. Change result type from void
9735 to char *. All callers updated.
9736 (read_member_functions): In has_destructor case, store name in objfile
9737 obstack instead of malloc space. In !has_stub case, fix mem leak.
9739 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9741 * configure: Rebuild.
9742 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9745 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9747 * configure.tgt (rl78-*-elf): New target.
9748 * rl78-tdep.c: New file.
9750 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9752 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9753 and continue the loop. Add QUIT statement.
9755 2012-02-03 Tom Tromey <tromey@redhat.com>
9758 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9759 bfd_lookup_symbol_from_symtab.
9760 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9761 gdb_bfd_lookup_symbol_from_symtab.
9763 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9765 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9766 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9767 symbol. Add assertion that sym2 is never NULL.
9769 2012-02-02 Doug Evans <dje@google.com>
9771 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9772 "name" parameter to const char ** from char **. All callers updated.
9773 (find_pc_partial_function): Ditto.
9774 (cache_pc_function_name): Change type to const char * from char *.
9775 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9776 (find_pc_partial_function): Update.
9777 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9778 type of "name" parameter to const char * from char *.
9780 * arch-utils.c (generic_in_solib_return_trampoline): Change
9781 type of "name" parameter to const char * from char *.
9782 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9783 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9784 type of "name" parameter to const char * from char *.
9785 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9786 * gdbarch.c: Regenerate.
9787 * gdbarch.h: Regenerate.
9788 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9789 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9790 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9791 type of "name" parameter to const char * from char *.
9792 * skip.c (skip_function_pc): Ditto.
9793 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9794 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9795 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9796 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9797 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9798 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9799 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9800 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9801 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9803 2012-02-02 Pedro Alves <palves@redhat.com>
9805 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9806 the current inferior has no execution. Make sure the current
9807 remote process matches gdb's current inferior.
9809 2012-02-02 Tom Tromey <tromey@redhat.com>
9812 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9815 2012-02-02 Tom Tromey <tromey@redhat.com>
9818 * symtab.c (lookup_language_this): Set block_found.
9820 2012-02-01 Tom Tromey <tromey@redhat.com>
9823 * jit.c (struct jit_inferior_data): Rewrite.
9824 (struct jit_objfile_data): New.
9825 (get_jit_objfile_data): New function.
9826 (add_objfile_entry): Update.
9827 (jit_read_descriptor): Return int. Replace descriptor_addr
9828 argument with inf_data. Update. Don't call error.
9829 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9831 (jit_inferior_init): Don't look up descriptor. Don't call error.
9832 (jit_reset_inferior_data_and_breakpoints)
9833 (jit_inferior_created_observer): Remove.
9834 (jit_inferior_exit_hook): Update.
9835 (jit_executable_changed_observer): Remove.
9836 (jit_event_handler): Update.
9837 (free_objfile_data): Reset inferior data if needed.
9838 (_initialize_jit): Update.
9840 2012-02-01 Tom Tromey <tromey@redhat.com>
9842 * jit.c (bfd_open_from_target_memory): Move higher in file.
9844 2012-02-01 Tristan Gingold <gingold@adacore.com>
9846 * libunwind-frame.c (libunwind_load): Display message if dlopen
9849 2012-02-01 Gary Benson <gbenson@redhat.com>
9851 * symtab.h (symbol_found_callback_ftype): New typedef.
9852 (iterate_over_symbols): Use the above.
9853 * symtab.c (iterate_over_symbols): Likewise.
9854 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9855 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9856 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9857 (iterate_name_matcher): Document return values.
9858 (collect_one_symbol): Likewise.
9859 (collect_function_symbols): Likewise.
9860 (collect_symbols): Likewise.
9862 2012-02-01 Tom Tromey <tromey@redhat.com>
9864 * ada-lang.c (resolve_subexp): Update.
9865 (ada_lookup_symbol_list): Add 'full_search' argument.
9866 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9867 ada_lookup_symbol_list.
9868 (ada_lookup_encoded_symbol): Update.
9869 (get_var_value): Update.
9870 * ada-exp.y (block_lookup): Update.
9871 (write_var_or_type): Update.
9872 (write_name_assoc): Update.
9873 * ada-lang.h (ada_lookup_symbol_list): Update.
9875 2012-01-31 Tom Tromey <tromey@redhat.com>
9877 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9880 2012-01-31 Doug Evans <dje@google.com>
9882 * symtab.h: Remove outdated comment.
9883 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9885 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9887 Fix build error in Darwin port.
9888 * i386-darwin-nat.c: Include i386-nat.h.
9890 2012-01-30 Tom Tromey <tromey@redhat.com>
9892 PR breakpoints/13568:
9893 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9894 argument. Check for recursive includes.
9895 (dwarf_decode_macros): Create an include hash.
9897 2012-01-30 Michael Eager <eager@eagercon.com>
9899 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9900 * ppc-linux-tdep.c: Include glibc-tdep.h.
9901 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9902 (powerpc_linux_in_plt_stub): New function.
9903 (powerpc_linux_in_dynsym_resolve_code): New function.
9904 (ppc_skip_trampoline_code): New function.
9905 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9906 Use glibc_skip_solib_resolver.
9908 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9910 Code cleanup: Make 1440 bytes of data segment read-only.
9911 * arch-utils.c (endian_enum): Make it const char *const [].
9912 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9914 * breakpoint.c (always_inserted_enums): Likewise.
9915 * cli/cli-cmds.c (script_ext_enums): Likewise.
9916 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9917 enumlist parameter const char *const *.
9918 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9919 const char *const *.
9920 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9921 parameter const char *const *.
9922 * cris-tdep.c (cris_modes): Make it const char *const [].
9923 * filesystem.c (target_file_system_kinds): Likewise.
9924 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9925 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9926 (can_use_displaced_stepping_enum, scheduler_enums)
9927 (exec_direction_names): Likewise.
9928 * language.c (_initialize_language): Make the type_or_range_names and
9929 case_sensitive_names variables const char *const [].
9930 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9931 * python/python.c (python_excp_enums): Likewise.
9932 * remote.c (interrupt_sequence_modes): Likewise.
9933 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9934 * serial.c (logbase_enums): Likewise.
9935 * sh-tdep.c (sh_cc_enum): Likewise.
9936 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9938 * symtab.c (multiple_symbols_modes): Likewise.
9939 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9941 * utils.c (internal_problem_modes): Likewise.
9943 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9946 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9949 2012-01-27 Doug Evans <dje@google.com>
9951 * configure.ac (with_python): Fix absolute path handling for win32.
9952 * configure: Regenerate.
9954 2012-01-26 Doug Evans <dje@google.com>
9956 * symtab.c: Whitespace cleanup, no code changes.
9958 * symtab.c (lookup_symbol_in_language): Improve comment.
9959 (lookup_symbol_aux): Fix comment.
9961 * psymtab.c (add_psymbol_to_list): Result is now "void".
9962 * psympriv.h (add_psymbol_to_list): Update.
9964 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9966 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9968 Do not open script filenames twice.
9969 * cli/cli-cmds.c (source_script_from_stream): Pass to
9970 source_python_script also STREAM.
9971 * python/py-auto-load.c (source_section_scripts): Pass to
9972 source_python_script_for_objfile also STREAM.
9973 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9975 * python/python-internal.h (source_python_script_for_objfile): New
9976 parameter file, rename parameter file to filename.
9977 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9978 instead if !_WIN32. Update the function comment.
9979 (source_python_script, source_python_script_for_objfile)
9980 (source_python_script): New parameter file, rename parameter file to
9981 filename. Pass FILENAME to python_run_simple_file.
9982 * python/python.h (source_python_script): New parameter file, rename
9983 parameter file to filename.
9985 2012-01-26 Pedro Alves <palves@redhat.com>
9987 * corelow.c (core_has_fake_pid): Delete.
9988 (core_close): Delete references to `core_has_fake_pid'.
9989 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9990 (core_open): Delete references to `core_has_fake_pid'.
9991 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9994 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9996 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9997 Remove language parameter from name_matcher. Adjust the comment.
9998 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9999 Remove language parameter.
10000 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10001 * linespec.c (iterate_name_matcher): Likewise.
10002 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10003 name_matcher. Adjust call accordingly.
10004 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10005 (maintenance_check_symtabs): Adjust type of parameter "fun".
10006 * psymtab.h (maintenance_check_symtabs): Likewise.
10008 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10010 * language.h (symbol_name_match_p_ftype): New typedef.
10011 (struct language_defn): Replace field la_symbol_name_compare
10012 by la_get_symbol_name_match_p.
10013 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10014 (ada_language_defn): Use it.
10015 * linespec.c (struct symbol_matcher_data): New type.
10016 (iterate_name_matcher): Rewrite.
10017 (iterate_over_all_matching_symtabs): Pass a pointer to
10018 a symbol_matcher_data struct to expand_symtabs_matching
10019 instead of just the lookup name.
10020 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10021 opencl-lang.c, p-lang.c, language.c: Delete field
10022 la_symbol_name_compare, and replace by NULL for new field
10023 la_get_symbol_name_match_p.
10024 * symfile.h (struct quick_symbol_functions): Update comment.
10026 2012-01-25 Tom Tromey <tromey@redhat.com>
10028 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10031 2012-01-24 Tom Tromey <tromey@redhat.com>
10034 * solib.c (update_solib_list): Update the program space's
10035 added_solibs and deleted_solibs fields.
10036 * progspace.h (struct program_space) <added_solibs,
10037 deleted_solibs>: New fields.
10038 (clear_program_space_solib_cache): Declare.
10039 * progspace.c (release_program_space): Call
10040 clear_program_space_solib_cache.
10041 (clear_program_space_solib_cache): New function.
10042 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10043 bpstat_stop_status. Use handle_solib_event.
10044 * breakpoint.c: Include gdb_regex.h.
10045 (print_solib_event): New function.
10046 (bpstat_print): Use print_solib_event.
10047 (bpstat_stop_status): Add special case for bp_shlib_event.
10048 (handle_solib_event): New function.
10049 (bpstat_what): Use handle_solib_event.
10050 (struct solib_catchpoint): New.
10051 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10052 (breakpoint_hit_catch_solib, check_status_catch_solib)
10053 (print_it_catch_solib, print_one_catch_solib)
10054 (print_mention_catch_solib, print_recreate_catch_solib): New
10056 (catch_solib_breakpoint_ops): New global.
10057 (catch_load_or_unload, catch_load_command_1)
10058 (catch_unload_command_1): New functions.
10059 (internal_bkpt_check_status): Add special case for
10061 (internal_bkpt_print_it): Use print_solib_event.
10062 (initialize_breakpoint_ops): Initialize
10063 catch_solib_breakpoint_ops.
10064 (_initialize_breakpoint): Register "catch load" and "catch
10066 * breakpoint.h (handle_solib_event): Declare.
10067 * NEWS: Add entry for "catch load" and "catch unload".
10069 2012-01-24 Tom Tromey <tromey@redhat.com>
10071 * ada-lang.c: Include gdb_vecs.h.
10072 * charset.c: Include gdb_vecs.h.
10073 * tracepoint.h: Include gdb_vecs.h.
10074 * gdb_vecs.h: New file.
10076 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10078 * breakpoint.c (breakpoint_hit_catch_fork)
10079 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10080 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10081 * infrun.c (inferior_has_forked, inferior_has_vforked)
10082 (inferior_has_execd, inferior_has_called_syscall): Delete.
10083 (handle_syscall_event): Get syscall_number from the execution
10084 control state's wait status.
10085 (wait_for_inferior): Don't clear syscall_number.
10087 2012-01-24 Pedro Alves <palves@redhat.com>
10089 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10090 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10091 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10092 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10094 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10095 false for events other than TARGET_SIGNAL_TRAP.
10096 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10097 Add `ws' parameter.
10098 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10099 events other than TARGET_SIGNAL_TRAP.
10100 (tracepoint_breakpoint_hit): Add `ws' parameter.
10101 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10103 (bpstat_stop_status): Same.
10104 (pc_at_non_inline_function): Same.
10105 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10106 to pass the current event's waitstatus to bpstat_stop_status
10107 and pc_at_non_inline_function.
10109 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10112 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10113 Update the function comment for it.
10114 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10115 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10118 2012-01-24 Pedro Alves <palves@redhat.com>
10120 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10121 outside `bs->stop' block.
10122 (bpstat_what): Rework bp_shlib_event handling.
10123 (internal_bkpt_check_status): If the breakpoint is a
10124 bp_shlib_event, then set bs->stop and bs->print if
10125 stop_on_solib_events is set.
10127 2012-01-24 Gary Benson <gbenson@redhat.com>
10129 Delete #if 0'd out code.
10130 * stack.c (print_frame_label_vars): Remove.
10131 (catch_info): Likewise.
10132 (_initialize_stack): Remove "info catch" command.
10133 * NEWS: Mention the above.
10135 2012-01-24 Pedro Alves <palves@redhat.com>
10137 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10139 (remote_notice_new_inferior): If the remote end doesn't support
10140 the multiprocess extensions, then the PID is fake.
10141 (add_current_inferior_and_thread): New.
10142 (remote_start_remote): Use it.
10143 (extended_remote_attach_1): Adjust.
10144 (extended_remote_create_inferior_1): Use
10145 add_current_inferior_and_thread.
10147 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10149 Fix watchpoints to be specific for each inferior.
10150 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10151 current_program_space.
10152 * i386-nat.c (i386_inferior_data_cleanup): New.
10153 (i386_inferior_data_get): Replace variable inf_data_local by an
10154 inferior_data call.
10155 (i386_use_watchpoints): Initialize i386_inferior_data.
10156 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10157 specific iterate_over_lwps.
10159 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10161 Fix watchpoints across inferior fork.
10162 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10163 comment for linux_nat_iterate_watchpoint_lwps.
10164 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10165 linux_nat_iterate_watchpoint_lwps.
10166 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10167 * i386-linux-nat.c (update_debug_registers_callback): Update the
10168 comment for linux_nat_iterate_watchpoint_lwps.
10169 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10170 linux_nat_iterate_watchpoint_lwps.
10171 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10172 * i386-nat.c: Include inferior.h.
10173 (dr_mirror): Remove.
10174 (i386_inferior_data, struct i386_inferior_data)
10175 (i386_inferior_data_get): New.
10176 (i386_debug_reg_state): Use i386_inferior_data_get.
10177 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10178 (i386_insert_watchpoint, i386_remove_watchpoint)
10179 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10180 (i386_remove_hw_breakpoint): New variable state, use
10181 i386_debug_reg_state instead of DR_MIRROR.
10182 * linux-nat.c (delete_lwp): New declaration.
10183 (num_lwps): Move here from downwards.
10184 (delete_lwp_cleanup): New.
10185 (linux_child_follow_fork): Create new child_lp, call
10186 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10188 (num_lwps): Move upwards.
10189 (linux_nat_iterate_watchpoint_lwps): New.
10190 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10191 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10193 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10197 2012-01-23 Pedro Alves <palves@redhat.com>
10199 * top.c (caution): Rename to ...
10200 (confirm): ... this.
10201 (show_caution): Rename to ...
10202 (show_confirm): ... this.
10203 (quit_cover): Adjust.
10204 (init_main): Adjust.
10205 * top.h (caution): Rename to ...
10206 (confirm): ... this.
10207 * utils.c (internal_vproblem, defaulted_query): Adjust.
10209 2012-01-23 Pedro Alves <palves@redhat.com>
10211 * top.c (caution): Update comment.
10212 (execute_command): Don't consider the current value of `caution'.
10214 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10216 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10218 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10220 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10221 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10222 * target.c (target_fileio_pwrite): Remove buffer address from
10224 (target_fileio_pread): Likewise.
10226 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10228 * NEWS: Document remote "info proc" and "generate-core-file".
10230 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10232 * gdbarch.sh (find_memory_regions): New callback.
10233 * gdbarch.c, gdbarch.h: Regenerate.
10235 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10236 callback before falling back to target method.
10238 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10239 (linux_target_install_ops): No longer install it.
10241 * linux-tdep.c (linux_find_memory_regions): New function.
10242 (linux_init_abi): Install it.
10244 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10246 * gdbarch.sh (make_corefile_notes): New architecture callback.
10247 * gdbarch.c: Regenerate.
10248 * gdbarch.h: Likewise.
10250 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10251 before target_make_corefile_notes. If NULL is returned, the
10252 target does not support core file generation.
10254 * linux-nat.c: Include "linux-tdep.h".
10255 (find_signalled_thread, find_stop_signal): Remove.
10256 (linux_nat_do_thread_registers): Likewise.
10257 (struct linux_nat_corefile_thread_data): Likewise.
10258 (linux_nat_corefile_thread_callback): Likewise.
10259 (iterate_over_spus): Likewise.
10260 (struct linux_spu_corefile_data): Likewise.
10261 (linux_spu_corefile_callback): Likewise.
10262 (linux_spu_make_corefile_notes): Likewise.
10263 (linux_nat_collect_thread_registers): New function.
10264 (linux_nat_make_corefile_notes): Replace contents by call to
10265 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10266 as native-only callback.
10268 * linux-tdep.h: Include "bfd.h".
10269 (struct regcache): Add forward declaration.
10270 (linux_collect_thread_registers_ftype): New typedef.
10271 (linux_make_corefile_notes): Add prototype.
10272 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10273 "regset.h", and "elf-bfd.h".
10274 (find_signalled_thread, find_stop_signal): New functions.
10275 (linux_spu_make_corefile_notes): Likewise.
10276 (linux_collect_thread_registers): Likewise.
10277 (struct linux_corefile_thread_data): New data structure.
10278 (linux_corefile_thread_callback): New funcion.
10279 (linux_make_corefile_notes): Likewise.
10280 (linux_make_corefile_notes_1): Likewise.
10281 (linux_init_abi): Install it.
10283 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10285 * gdbarch.sh (info_proc): New callback.
10286 * gdbarch.c, gdbarch.h: Regenerate.
10288 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10289 before falling back to the target info_proc callback.
10291 * linux-nat.c: Do not include "cli/cli-utils.h".
10292 (linux_nat_info_proc): Remove.
10293 (linux_target_install_ops): No longer install it.
10295 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10296 (read_mapping): New function.
10297 (linux_info_proc): Likewise.
10298 (linux_init_abi): Install it.
10300 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10302 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10303 * infcmd.c: (info_proc_cmd_1): New function.
10304 (info_proc_cmd): New function, moved here from equivalent routine
10305 orignally in linux-nat.c.
10306 (info_proc_cmd_mappings): Likewise.
10307 (info_proc_cmd_stat): Likewise.
10308 (info_proc_cmd_status): Likewise.
10309 (info_proc_cmd_cwd): Likewise.
10310 (info_proc_cmd_cmdline): Likewise.
10311 (info_proc_cmd_exe): Likewise.
10312 (info_proc_cmd_all): Likewise.
10313 (_initialize_infcmd): Install "info proc" command and subcommands.
10315 * target.h (struct target_ops): Add to_info_proc.
10316 (target_info_proc): Add prototype.
10317 * target.c (target_info_proc): New function.
10319 * procfs.c (procfs_info_proc): Add prototype.
10320 (info_proc_cmd): Rename into ...
10321 (procfs_info_proc): ... this. Update argument types as appropriate
10322 for a to_info_proc implementation. Handle "what" argument.
10323 (procfs_target): Install procfs_info_proc.
10324 (_initialize_procfs): No longer install "info proc" command.
10326 * linux-nat.c: (enum info_proc_what): Remove.
10327 (linux_nat_info_proc_cmd_1): Rename into ...
10328 (linux_nat_info_proc): ... this. Update argument types as appropriate
10329 for a to_info_proc implementation.
10330 (linux_nat_info_proc_cmd): Remove.
10331 (linux_nat_info_proc_cmd_mappings): Likewise.
10332 (linux_nat_info_proc_cmd_stat): Likewise.
10333 (linux_nat_info_proc_cmd_status): Likewise.
10334 (linux_nat_info_proc_cmd_cwd): Likewise.
10335 (linux_nat_info_proc_cmd_cmdline): Likewise.
10336 (linux_nat_info_proc_cmd_exe): Likewise.
10337 (linux_nat_info_proc_cmd_all): Likewise.
10338 (linux_target_install_ops): Install linux_nat_info_proc.
10339 (_initialize_linux_nat): No longer install "info proc" command
10342 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10344 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10345 * config.in, configure: Regenerate.
10347 * target.h (struct target_ops): Add to_fileio_readlink.
10348 (target_fileio_readlink): Add prototype.
10349 * target.c (target_fileio_readlink): New function.
10351 * inf-child.c: Conditionally include <sys/param.h>.
10352 (inf_child_fileio_readlink): New function.
10353 (inf_child_target): Install it.
10355 * remote.c (PACKET_vFile_readlink): New enum value.
10356 (remote_hostio_readlink): New function.
10357 (init_remote_ops): Install it.
10358 (_initialize_remote): Handle vFile:readlink packet type.
10360 2012-01-20 Pedro Alves <palves@redhat.com>
10361 Ulrich Weigand <ulrich.weigand@linaro.org>
10363 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10364 * config.in, configure: Regenerate.
10366 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10367 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10368 (target_fileio_open): Add prototype.
10369 (target_fileio_pwrite): Likewise.
10370 (target_fileio_pread): Likewise.
10371 (target_fileio_close): Likewise.
10372 (target_fileio_unlink): Likewise.
10373 (target_fileio_read_alloc): Likewise.
10374 (target_fileio_read_stralloc): Likewise.
10376 * target.c: Include "gdb/fileio.h".
10377 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10378 (default_fileio_target): New function.
10379 (target_fileio_open): Likewise.
10380 (target_fileio_pwrite): Likewise.
10381 (target_fileio_pread): Likewise.
10382 (target_fileio_close): Likewise.
10383 (target_fileio_unlink): Likewise.
10384 (target_fileio_close_cleanup): Likewise.
10385 (target_fileio_read_alloc_1): Likewise.
10386 (target_fileio_read_alloc): Likewise.
10387 (target_fileio_read_stralloc): Likewise.
10389 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10390 <fcntl.h>, and <unistd.h>.
10391 (inf_child_fileio_open_flags_to_host): New function.
10392 (inf_child_errno_to_fileio_error): Likewise.
10393 (inf_child_fileio_open): Likewise.
10394 (inf_child_fileio_pwrite): Likewise.
10395 (inf_child_fileio_pread): Likewise.
10396 (inf_child_fileio_close): Likewise.
10397 (inf_child_fileio_unlink): Likewise.
10398 (inf_child_target): Install to_fileio routines.
10400 * remote.c (init_remote_ops): Install to_fileio routines.
10402 2012-01-20 Pedro Alves <palves@redhat.com>
10403 Ulrich Weigand <ulrich.weigand@linaro.org>
10405 * remote.c (remote_multi_process_p): Only check for multi-process
10406 protocol feature, do not check for extended protocol.
10407 (remote_supports_multi_process): Check for extended protocol here.
10408 (set_general_process): Likewise.
10409 (extended_remote_kill): Likewise.
10410 (remote_pid_to_str): Likewise.
10411 (remote_query_supported): Always query multiprocess mode.
10413 2012-01-20 Pedro Alves <palves@redhat.com>
10414 Ulrich Weigand <ulrich.weigand@linaro.org>
10416 * inferior.h (struct inferior): Add fake_pid_p.
10417 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10418 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10419 magic_null_ptid since the remote side doesn't provide a real PID.
10421 2012-01-19 Tom Tromey <tromey@redhat.com>
10423 * NEWS: Combine the two Python sections.
10425 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10427 * target.h (target_close): Update comment on the target's unpush state.
10429 2012-01-19 Pedro Alves <palves@redhat.com>
10431 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10432 linux_nat_async directly instead of going through the target
10434 * target.c (unpush_target): Close target after unpushing it, not
10437 2012-01-19 Gary Benson <gbenson@redhat.com>
10439 * mdebugread.c (sort_blocks): Replace integer constants with ones
10440 derived from FIRST_LOCAL_BLOCK.
10442 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10443 Jan Kratochvil <jan.kratochvil@redhat.com>
10446 * symfile.c (find_separate_debug_file): New function.
10447 (terminate_after_last_dir_separator): Likewise.
10448 (find_separate_debug_file_by_debuglink): Also try realpath.
10449 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10450 * configure: Regenerate.
10451 * config.in: Regenerate.
10453 2012-01-18 Doug Evans <dje@google.com>
10455 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10456 (main.o): Remove rule.
10457 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10458 (--with-sysroot): Rewrite.
10459 * configure: Regenerate.
10460 * config.in: Regenerate.
10462 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10464 * parse.c (initialize_expout): New function.
10465 (reallocate_expout): Likewise.
10466 (parse_exp_in_context): Use `initialize_expout' and
10467 `reallocate_expout' when appropriate.
10469 2012-01-18 Pedro Alves <palves@redhat.com>
10471 * record.c (struct record_breakpoint, record_breakpoint_p)
10472 (record_breakpoints): New.
10473 (record_insert_breakpoint, record_remove_breakpoint): Manage
10474 record breakpoints list. Only remove breakpoints from the
10475 inferior if they had been inserted there in the first place.
10477 2012-01-17 Doug Evans <dje@google.com>
10479 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10480 if we know we don't have a file name to look for.
10482 2012-01-17 Pedro Alves <palves@redhat.com>
10484 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10485 the frame's stop reason is UNWIND_UNAVAILABLE.
10487 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10489 Fix compilation error.
10490 * m2-exp.y (yyerror): Use ANSI C prototype.
10492 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10494 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10495 (growbuf_by_size): Likewise.
10496 (yyerror): Likewise.
10497 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10498 (modblock): Remove variable (was #if 0'ed).
10499 (parse_number): Convert prototype from K&R to ANSI C.
10500 (yyerror): Likewise.
10501 * objc-exp.y (parse_number): Likewise.
10502 (yyerror): Likewise.
10503 (yylex): Remove #if 0'ed code.
10504 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10505 (yyerror): Likewise.
10507 2012-01-16 Tom Tromey <tromey@redhat.com>
10510 * symtab.h (compare_filenames_for_search): Declare.
10511 * symtab.c (compare_filenames_for_search): New function.
10512 (iterate_over_some_symtabs): Use it.
10513 * symfile.h (struct quick_symbol_functions)
10514 <map_symtabs_matching_filename>: Change spec.
10515 * psymtab.c (partial_map_symtabs_matching_filename): Use
10516 compare_filenames_for_search. Update for new spec.
10517 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10518 compare_filenames_for_search. Update for new spec.
10519 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10521 2012-01-16 Tom Tromey <tromey@redhat.com>
10524 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10525 (struct main_type) <flag_flag_enum>: New field.
10526 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10527 * NEWS: Add entries.
10528 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10530 * python/lib/gdb/printing.py (_EnumInstance): New class.
10531 (FlagEnumerationPrinter): Likewise.
10533 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10535 * breakpoint.c (create_sals_from_address_default): New function.
10536 (create_breakpoints_sal_default): Likewise.
10537 (decode_linespec_default): Likewise.
10538 (is_marker_spec): Removed.
10539 (strace_marker_p): New function.
10540 (init_breakpoint_sal): Using `strace_marker_p' instead of
10542 (create_breakpoint): Call method `create_sals_from_address' from
10543 breakpoint_ops, replacing code that created SALs conditionally
10544 on the type of the breakpoint. Call method `create_breakpoints_sal',
10545 replacing code that created breakpoints conditionally on the type
10547 (base_breakpoint_create_sals_from_address): New function.
10548 (base_breakpoint_create_breakpoints_sal): Likewise.
10549 (base_breakpoint_decode_linespec): Likewise.
10550 (base_breakpoint_ops): Add methods
10551 `base_breakpoint_create_sals_from_address',
10552 `base_breakpoint_create_breakpoints_sal' and
10553 `base_breakpoint_decode_linespec'.
10554 (bkpt_create_sals_from_address): New function.
10555 (bkpt_create_breakpoints_sal): Likewise.
10556 (bkpt_decode_linespec): Likewise.
10557 (tracepoint_create_sals_from_address): Likewise.
10558 (tracepoint_create_breakpoints_sal): Likewise.
10559 (tracepoint_decode_linespec): Likewise.
10560 (strace_marker_create_sals_from_address): Likewise.
10561 (strace_marker_create_breakpoints_sal): Likewise.
10562 (strace_marker_decode_linespec): Likewise.
10563 (strace_marker_breakpoint_ops): New variable.
10564 (addr_string_to_sals): Remove `marker_spec'. Call method
10565 `decode_linespec' from breakpoint_ops, replacing code that decoded
10566 an address string into a SAL. Use `strace_marker_p' instead of
10568 (strace_command): Decide whether we are dealing with a static
10569 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10570 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10571 * breakpoint.h (linespec_result, linespec_sals): New forward
10573 (breakpoint_ops) <create_sals_from_address>,
10574 <create_breakpoints_sal>, <decode_linespec>: New methods.
10576 2012-01-14 Doug Evans <dje@google.com>
10578 * NEWS: Update text for "maint set python print-stack".
10579 It is deprecated in gdb 7.4 and deleted in 7.5.
10581 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10583 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10584 including curses.h.
10586 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10588 * configure: Regenerate.
10589 * config.in: Regenerate.
10591 2012-01-12 Keith Seitz <keiths@redhat.com>
10594 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10595 (ANONYMOUS_UNION_NAME): Define.
10596 (is_path_expr_parent): New function.
10597 (get_path_expr_parent): New function.
10598 (is_anonymous_child): New function.
10599 (create_child_with_value): If the child is anonymous and without
10600 a name, assign an object name to it.
10601 (c_describe_child): Use get_path_expr_parent to determine
10602 the parent expression.
10603 If there field represents an anonymous struct or union and
10604 has no name, set an appropriate display name and expression.
10605 (cplus_describe_child): Likewise.
10607 2012-01-12 Pedro Alves <palves@redhat.com>
10609 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10610 available when %ebp is found to be zero (outermost).
10612 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10614 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10615 an internal gdb_static_assert.
10616 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10618 2012-01-11 Tom Tromey <tromey@redhat.com>
10621 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10622 catch" and "catch throw".
10624 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10626 * blockframe.c (block_innermost_frame): Start search from selected
10627 frame, if present, or otherwise the current frame.
10629 * c-exp.y (variable): Update innermost_block for
10630 'block COLONCOLON NAME' clause.
10631 * m2-exp.y (variable): Ditto.
10632 * objc-exp.y (variable): Ditto.
10634 2012-01-10 Tom Tromey <tromey@redhat.com>
10637 * python/python.c (finish_python_initialization): Set sys.argv.
10639 2012-01-10 Doug Evans <dje@google.com>
10641 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10642 "want_line_info". All callers updated.
10643 (dwarf_decode_lines_1): New function.
10644 (handle_DW_AT_stmt_list): Add function comment.
10645 New arg "want_line_info". All callers updated.
10646 (read_file_scope,read_type_unit_scope): Move comment from
10647 handle_DW_AT_stmt_list to here.
10649 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10651 Fix regression after libiberty/ update for GCC PR 6057 and others.
10652 * c-exp.y (operator) <OPERATOR DELETE>
10653 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10654 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10655 (make_builtin_type, make_name): New variable i, add gdb_assert.
10656 (operator) <OPERATOR NEW>: Update ARGS to 3.
10657 (operator) <OPERATOR DELETE>: Add trailing space.
10658 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10659 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10660 * cp-support.c (cp_canonicalize_string): Check NULL from
10661 cp_comp_to_string, call warning and return.
10663 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10665 Fix duplicate .o files after omitting libbfd.a.
10666 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10667 (SFILES): Add corelow.c.
10668 (COMMON_OBS): Add corelow.o.
10669 (ALLDEPFILES): Remove corelow.c.
10670 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10671 * config/alpha/alpha-osf3.mh: Likewise.
10672 * config/alpha/fbsd.mh: Likewise.
10673 * config/arm/nbsdaout.mh: Likewise.
10674 * config/arm/nbsdelf.mh: Likewise.
10675 * config/i386/i386gnu.mh: Likewise.
10676 * config/ia64/hpux.mh: Likewise.
10677 * config/ia64/linux.mh: Likewise.
10678 * config/m32r/linux.mh: Likewise.
10679 * config/m68k/linux.mh: Likewise.
10680 * config/mips/irix5.mh: Likewise.
10681 * config/mips/irix6.mh: Likewise.
10682 * config/pa/hpux.mh: Likewise.
10683 * config/pa/linux.mh: Likewise.
10684 * config/powerpc/aix.mh: Likewise.
10685 * config/sparc/linux.mh: Likewise.
10686 * config/sparc/linux64.mh: Likewise.
10687 * config/sparc/sol2.mh: Likewise.
10688 * config/vax/vax.mh: Likewise.
10689 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10690 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10691 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10692 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10693 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10694 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10695 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10696 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10697 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10698 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10699 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10700 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10701 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10702 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10703 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10704 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10705 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10706 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10707 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10708 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10709 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10710 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10711 corelow.o from gdb_target_obs.
10712 * corefile.c (core_target): Update the comment on NULL value.
10713 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10714 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10715 MATCHES. Drop YUMMY set on NULL.
10716 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10717 reclaim CORE_DATA if it is already NULL.
10719 2012-01-09 Doug Evans <dje@google.com>
10721 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10722 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10724 2012-01-09 Keith Seitz <keiths@redhat.com>
10726 * breakpoint.c (wrapper.h): Don't include.
10728 2012-01-09 Keith Seitz <keiths@redhat.com>
10730 * Makefile.in (SFILES): Remove wrapper.c.
10731 (HFILES_NO_SRCDIR): Remove wrapper.h.
10732 (COMMON_OBS): Remove wrapper.o.
10733 * cli/cli-interp.c: Don't inlude wrapper.h.
10734 * corelow.c: Likewise.
10735 (core_open): Replace gdb_target_find_new_threads with
10736 TRY_CATCH around target_find_new_threads.
10737 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10738 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10739 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10740 evaluate_expression.
10741 (varobj_set_value): Likewise for evaluate_expression and
10743 (install_new_variable): Likewise for value_fetch_lazy.
10744 (adjust_value_for_child_access): Likewise for value_ind.
10745 (c_describe_child): Likewise for value_subscript and
10747 (c_value_of_root): Likewise for evaluate_expression.
10748 * wrapper.c: Remove.
10749 * wrapper.h: Remove.
10751 2012-01-09 Doug Evans <dje@google.com>
10753 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10754 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10755 "abfd" args with "section". All callers updated.
10756 Error checking code moved ...
10757 (error_check_comp_unit_head): ... here. New function.
10758 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10759 Delete arg "abfd". New arg "type_offset". All callers updated.
10760 (create_debug_types_hash_table): Simplify by using
10761 read_and_check_type_unit_head.
10763 * parser-defs.h (namecopy): Delete.
10764 * parse.c (namecopy, namecopy_size): Move into copy_name.
10766 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10768 Partially fix duplicate .o files after omitting libbfd.a.
10769 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10770 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10771 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10772 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10773 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10774 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10775 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10777 2012-01-09 Pedro Alves <palves@redhat.com>
10779 * MAINTAINERS: Update my email address.
10781 2012-01-08 Doug Evans <dje@google.com>
10783 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10784 n_type_units. Rename type_comp_units to all_type_units.
10786 (add_signatured_type_cu_to_table): Renamed from
10787 add_signatured_type_cu_to_list. All callers updated.
10789 * gdbtypes.h (struct cplus_struct_type): Delete member
10790 nfn_fields_total. All uses removed.
10792 2012-01-06 Doug Evans <dje@google.com>
10794 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10796 (dwarf2_find_comp_unit): Delete.
10797 (process_psymtab_comp_unit): Make result "void".
10798 Delete args buffer, info_ptr, buffer_size, and replace with
10799 "section". All callers updated.
10800 (dwarf2_build_psymtabs_hard): Simplify.
10802 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10803 Thiago Jung Bauermann <bauerman@br.ibm.com>
10805 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10806 before `struct gdb_exception'.
10807 * breakpoint.c (update_global_location_list_nothrow)
10808 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10809 * cp-abi.c (value_rtti_type): Likewise.
10810 * cp-support.c (cp_validate_operator): Likewise.
10811 * infrun.c (insert_exception_resume_breakpoint)
10812 (check_exception_resume, keep_going): Likewise.
10813 * mi-interp.c (mi_breakpoint_created)
10814 (mi_breakpoint_modified): Likewise.
10815 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10816 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10817 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10819 2012-01-05 Doug Evans <dje@google.com>
10821 * dwarf2read.c (statement_prologue): Delete, unused.
10823 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10824 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10826 * dwarf2read.c (comp_unit_header): Delete, unused.
10828 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10830 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10831 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10833 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10835 * infrun.c (normal_stop): Don't skip calling the normal_stop
10836 observers if the thread was doing a multi-step, but stopped for
10837 some reason other than stepping.
10839 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10841 * cli/cli-decode.h: Add comments.
10842 (CMD_LIST_AMBIGUOUS): Moved to command.h
10843 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10844 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10845 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10846 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10847 (add_com, add_com_alias, add_info, add_info_alias)
10848 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10850 * command.h: Add and adjust comments.
10851 (CMD_LIST_AMBIGUOUS): Moved here.
10852 (help_cmd, help_cmd_list): Delete declarations.
10854 2012-01-04 Doug Evans <dje@google.com>
10856 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10857 All callers updated.
10858 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10859 Replace all arguments with "per_cu". All callers updated.
10861 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10863 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10864 New arg "per_cu". All callers updated.
10866 Delete #if 0'd out code.
10867 * language.c (binop_result_type): Delete.
10868 (simple_type, ordered_type, same_type, integral_type): Delete.
10869 (numeric_type, character_type, string_type, boolean_type): Delete.
10870 (float_type, structured_type): Delete.
10871 * language.h: Update.
10873 2012-01-04 Tom Tromey <tromey@redhat.com>
10875 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10877 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10879 * corefile.c (close_exec_file): Delete.
10880 (reopen_exec_file): Remove commented out code that seems related
10881 to close_exec_file, which is being deleted here.
10882 * inferior.h (close_exec_file): Delete.
10883 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10885 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10887 * ada-lang.c: #include "cli/cli-utils.h".
10888 (get_selections): Use skip_spaces.
10889 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10890 (catch_ada_exception_command_split): Use skip_spaces.
10891 (ada_decode_assert_location): Likewise.
10893 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10895 * linespec.c (decode_line_internal): Check for C++ or Java
10896 compound constructs only if the current language is C, C++
10899 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10902 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10903 Joel Brobecker <brobecker@adacore.com>
10904 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10905 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10907 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10908 fall through into AT_ENTRY_POINT.
10909 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10910 DUMMY_ADDR with it.
10911 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10912 PPC_INSN_SIZE skip to 3 times.
10914 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10916 * linespec.c (add_minsym): Preserve function descriptors.
10918 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10920 * breakpoint.c (all_locations_are_pending): Consider locations
10921 in program spaces executing during startup pending as well.
10923 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10925 Copyright year update in most files of the GDB Project.
10927 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10929 * copyright.sh: Delete.
10930 * copyright.py: Rewrite.
10932 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10934 * gnulib/extra/update-copyright: New file, imported from gnulib.
10936 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10938 * README (Copyright and License Notices): New section.
10940 2012-01-03 Tom Tromey <tromey@redhat.com>
10943 * python/py-value.c (valpy_dereference, valpy_get_address
10944 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10945 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10946 (valpy_absolute, valpy_richcompare): Free intermediate values.
10948 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10950 * ada-lang.c: Reformat the copyright notice.
10952 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10954 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10955 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10956 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10957 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10958 Revert this part of:
10959 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10960 Build gdb directly from *.o files not using libgdb.a.
10961 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10963 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10965 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10966 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10967 Reformat the copyright header.
10969 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10971 Revert this part of:
10972 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10973 Remove the gdbtui binary.
10974 * gdb.c (main): Remove args.interpreter_p initialization.
10975 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10976 * main.h (struct captured_main_args): Remove interpreter_p.
10978 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10980 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10982 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10984 * top.c (print_gdb_version): Update copyright year.
10986 2012-01-02 Yao Qi <yao@codesourcery.com>
10988 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10991 Joel Brobecker <brobecker@adacore.com>
10993 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10994 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10996 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10997 fall through into AT_ENTRY_POINT.
10998 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10999 DUMMY_ADDR with it.
11000 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11001 PPC_INSN_SIZE skip to 3 times.
11003 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11005 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11007 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11009 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11011 Build gdb directly from *.o files not using libgdb.a.
11012 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11013 (COMMON_OBS): Remove solib-target.o.
11014 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11015 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11016 (LIBGDB_OBS, libgdb.a): Move it above.
11017 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11018 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11019 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11020 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11021 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11022 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11023 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11024 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11025 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11026 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11027 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11028 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11029 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11030 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11031 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11032 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11033 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11034 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11035 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11036 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11037 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11038 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11039 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11040 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11041 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11042 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11043 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11045 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11047 Remove the gdbtui binary.
11048 * .gitignore (/gdbtui): Remove.
11049 * Makefile.in (TUI): Remove.
11050 (SUBDIR_TUI_OBS): Remove tui-main.o.
11051 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11052 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11053 (tui-main.o): Remove.
11054 (all_object_files): Remove tui-main.o.
11055 * NEWS: New note for the gdbtui removal.
11056 * configure: Rebuilt.
11057 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11058 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11059 CONFIG_UNINSTALL respectively.
11060 * gdb.c (main): Remove args.interpreter_p initialization.
11061 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11062 * main.h (struct captured_main_args): Remove interpreter_p.
11063 * tui/tui-main.c: Remove.
11065 2012-01-01 Doug Evans <dje@google.com>
11067 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11068 (dwarf2_physname, read_import_statement): Ditto.
11069 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11070 (process_structure_scope read_subroutine_type): Ditto.
11071 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11072 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11073 (dwarf2_fetch_die_location_block): Ditto.
11074 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11076 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11077 All callers updated.
11078 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11079 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11080 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11082 * dwarf2read.c (load_cu): Move assert to more useful location.
11084 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11085 All callers updated.
11087 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11088 (dwarf2_elf_names): Minor reformat.
11089 (dwarf2_per_cu_data): Tweak comment.
11090 (dwarf2_read_section): Fix comment.
11091 (create_all_comp_units): Fix comment.
11092 (load_full_comp_unit): Fix comment.
11093 (process_full_comp_unit): Fix comment.
11094 (read_signatured_type): Fix comment.
11096 For older changes see ChangeLog-2011.
11102 version-control: never