1 2012-11-02 Tom Tromey <tromey@redhat.com>
3 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
4 argument to complete_on_enum.
6 2012-11-02 Tom Tromey <tromey@redhat.com>
9 * configure.ac (build_warnings): Add -Wempty-body.
10 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
11 * remote.c (handle_notification): Use braces for empty 'else' body.
12 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
14 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
16 * solib-som.c (som_relocate_section_addresses): Use braces
17 for empty 'else' body.
18 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
19 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
21 2012-11-02 Pedro Alves <palves@redhat.com>
25 * infrun.c (handle_inferior_event)
26 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
27 null_ptid before handling a vfork child exec or exit. Switch to
28 the event ptid afterwards.
30 2012-11-02 Yao Qi <yao@codesourcery.com>
32 * std-operator.def: Remove OP_LABELED.
33 * eval.c: Remove the declaration of 'get_label'.
35 (evaluate_struct_tuple): Remove code handling OP_LABELED.
37 Remove local variable 'variantno' and related code.
38 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
40 * expprint.c (print_subexp_standard): Likewise.
41 (dump_subexp_body_standard): Likewise.
42 * parse.c (operator_length_standard): Likewise.
44 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
46 Incorporate ARI web page generator into GDB sources.
47 * contrib/ari/create-web-ari-in-src.sh: New file.
48 * contrib/ari/gdb_ari.sh: New file.
49 * contrib/ari/gdb_find.sh: New file.
50 * contrib/ari/update-web-ari.sh: New file.
52 2012-10-31 Tom Tromey <tromey@redhat.com>
55 * gdbarch.sh: Remove references to gdbarch_swap.
56 * corelow.c (core_open): Remove obsolete comment.
58 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
61 * c-typeprint.c (c_print_type): Don't print a space for vector
62 types, this is handled within the suffix.
63 (c_type_print_varspec_suffix): Add a space to vector suffix.
65 2012-10-26 Pedro Alves <palves@redhat.com>
67 * amd64-tdep.c (amd64_relocate_instruction): Use
68 store_unsigned_integer instead of memcpy.
69 * i386-tdep.c (i386_relocate_instruction): Ditto.
71 2012-10-26 Pedro Alves <palves@redhat.com>
73 * infrun.c (handle_inferior_event): Merge handling of
74 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
77 2012-10-26 Pedro Alves <palves@redhat.com>
79 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
82 2012-10-26 Pedro Alves <palves@redhat.com>
84 * target.c (target_waitstatus_to_string): Handle
85 TARGET_WAITKIND_VFORK_DONE.
87 2012-10-26 Pedro Alves <palves@redhat.com>
89 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
90 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
92 2012-10-24 Tristan Gingold <gingold@adacore.com>
94 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
97 2012-10-24 Joel Brobecker <brobecker@adacore.com>
99 * ravenscar-thread.c (ravenscar_wait): Only update the list
100 of threads and inferior_ptid if the inferior is still alive.
102 2012-10-24 Joel Brobecker <brobecker@adacore.com>
104 * ada-lang.c (is_known_support_routine): Use lbasename when
105 matching the symtab's filename against
106 known_runtime_file_name_patterns.
108 2012-10-24 Joel Brobecker <brobecker@adacore.com>
110 * ada-lang.c (ada_same_array_size_p): New function.
111 (ada_promote_array_of_integrals): New function.
112 (coerce_for_assign): Add handling of arrays where the elements
113 are integrals of a smaller size than the size of the target
116 2012-10-24 Joel Brobecker <brobecker@adacore.com>
118 * doublest.c (convert_doublest_to_floatformat): Fix comparison
119 against maximum exponent value.
121 2012-10-24 Joel Brobecker <brobecker@adacore.com>
123 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
126 2012-10-24 Joel Brobecker <brobecker@adacore.com>
128 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
129 strip typedef layer when computing the fixed type's field type,
130 only when computing its size.
132 2012-10-24 Mark Kettenis <kettenis@gnu.org>
135 * i386-tdep.c (i386_return_value): Handle complex double and long
138 2012-10-24 Joel Brobecker <brobecker@adacore.com>
140 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
141 New local variable args_len.
142 Quote the name of the executable when computing the command line.
144 2012-10-23 Mark Kettenis <kettenis@gnu.org>
149 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
151 * amd64-tdep.c (amd64_classify): Classify complex types.
152 (amd64_return_value): Handle the COMPLEX_X87 class.
154 2012-10-23 Joel Brobecker <brobecker@adacore.com>
156 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
157 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
159 2012-10-23 Joel Brobecker <brobecker@adacore.com>
161 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
163 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
164 to amd64_windows_auto_wide_charset.
166 2012-10-23 Yao Qi <yao@codesourcery.com>
168 * event-top.c (mark_async_signal_handler_wrapper): Remove.
169 * event-top.h: Remove its declaration.
170 (async_request_quit): Call mark_async_signal_handler instead of
171 mark_async_signal_handler_wrapper.
172 (async_do_nothing, async_disconnect): Likewise.
173 (async_stop_sig): Likewise.
174 * remote.c (handle_remote_sigint): Likewise.
175 (handle_remote_sigint_twice): Likewise.
177 2012-10-23 Yao Qi <yao@codesourcery.com>
179 * event-top.c (sigint_token, sighup_token): Replace 'void *'
180 with 'static struct async_signal_handler *'.
181 (sighup_token, sigquit_token, sigstp_token): Likewise.
183 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
185 * gdbarch.sh (function_list): Use 'pstring' when printing
186 a variable which could return NULL.
187 * gdbarch.c: Regenerate.
189 2012-10-10 Joel Brobecker <brobecker@adacore.com>
190 Tom Tromey <tromey@redhat.com>
192 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
193 inneffective if condition by gdb assertion. Add function
196 2012-10-19 Joel Brobecker <brobecker@adacore.com>
198 * parser-defs.h (struct exp_descriptor): Document constraint
199 on return value for "op_name" callbacks.
201 2012-10-18 Tom Tromey <tromey@redhat.com>
203 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
204 * symtab.c (iterate_over_some_symtabs): Constify.
205 * source.h (symtab_to_fullname): Return 'const char *'.
206 * source.c (symtab_to_fullname): Return 'const char *'.
207 * python/py-symtab.c (stpy_fullname): Constify.
208 * cli/cli-cmds.c (edit_command): Constify.
209 * breakpoint.c (print_breakpoint_location)
210 (update_static_tracepoint): Constify.
212 2012-10-18 Tom Tromey <tromey@redhat.com>
214 * breakpoint.c (compare_breakpoints): Fix comparison.
216 2012-10-18 Tom Tromey <tromey@redhat.com>
218 * valprint.c (generic_emit_char, generic_printstr): Pass size of
219 gdb_wchar_t to convert_between_encodings.
221 2012-10-17 Yao Qi <yao@codesourcery.com>
223 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
224 more parameter 'inferior'.
225 * corefile.c (write_memory_with_notification): Caller update.
227 * mi/mi-cmd-var.c: Include "mi-main.h".
228 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
229 to 1 and restore it later.
230 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
231 and "data-write-memory-bytes.
232 * mi/mi-interp.c: Include objfiles.h.
233 (mi_interpreter_init): Call observer_attach_memory_changed.
234 (mi_memory_changed): New.
235 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
238 * NEWS: Mention new MI notification "memory-changed".
240 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
242 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
244 2012-10-15 Doug Evans <dje@google.com>
246 New option -nh: inhibit loading of ~/.gdbinit.
248 * main.c (captured_main): Recognize and process -nh.
249 (print_gdb_help): Mention -nh.
250 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
252 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
256 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
258 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
259 nor pc_regnum_from_eax.
260 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
261 nor pc_regnum_from_eax.
263 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
265 Fix entry values resolving in inlined frames.
266 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
267 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
270 2012-10-15 Joel Brobecker <brobecker@adacore.com>
272 * configure.ac: Build with -DMS_WIN64 if building with Python
273 enabled using GCC on amd64-windows.
274 * configure: Regenerate.
276 2012-10-15 Tom Tromey <tromey@redhat.com>
279 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
282 2012-10-15 Tom Tromey <tromey@redhat.com>
285 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
287 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
289 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
290 reset thread numbering back to 1.
292 2012-10-11 Doug Evans <dje@google.com>
294 PR breakpoints/14643.
295 * linespec.c (struct ls_parser): New member keyword_ok.
296 (linespec_lexer_lex_string): Add comment.
297 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
299 (parse_linespec): Set keyword_ok.
301 2012-10-10 Doug Evans <dje@google.com>
303 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
304 "0x" prefix on address in log message.
306 * dwarf2read.c (read_1_byte): Add const to buf parameter.
307 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
308 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
309 (lookup_dwo_file): Add const to dwo_name parameter.
310 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
312 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
314 Fix crash during stepping on ppc32.
315 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
318 2012-10-03 Doug Evans <dje@google.com>
321 * buildsym.c (buildsym_init): Reset using_directives to NULL.
323 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
325 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
326 output and use uint32_t not long to ensure 4 byte size.
328 2012-10-02 Joel Brobecker <brobecker@adacore.com>
330 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
333 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
335 * target.c (simple_search_memory): Include access length in
338 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
339 Edjunior Machado <emachado@linux.vnet.ibm.com>
342 * solib.c (solib_find): Prevent GDB from loading native libraries when
343 debugging a cross-target corefile.
345 2012-09-28 selven <pcthegreat@gmail.com>
347 Make definition match declaration.
349 * regcache.c (regcache_register_status): Change return type to
350 enum register_status.
352 2012-09-28 Yao Qi <yao@codesourcery.com>
354 * mi/mi-main.c (mi_cmd_data_write_memory): Call
355 write_memory_with_notification instead of write_memory.
356 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
357 instead of target_write_memory.
359 2012-09-28 Yao Qi <yao@codesourcery.com>
361 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
362 when the length of content is not an even number.
364 2012-09-27 Tom Tromey <tromey@redhat.com>
366 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
367 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
369 2012-09-27 Joel Brobecker <brobecker@adacore.com>
371 * sol-thread.c (sol_thread_fetch_registers)
372 (sol_thread_store_registers): Delete commented out code.
374 2012-09-27 Joel Brobecker <brobecker@adacore.com>
376 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
377 Move these functions to sparc-sol-thread.c.
378 * sparc-sol-thread.c: New file.
379 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
380 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
382 * configure: Regenerate.
384 2012-09-27 Joel Brobecker <brobecker@adacore.com>
386 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
387 Remove commented-out code.
389 2012-09-27 Joel Brobecker <brobecker@adacore.com>
391 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
392 Enable this code for sparc hosts only.
394 2012-09-27 Joel Brobecker <brobecker@adacore.com>
396 * procfs.h (procfs_find_LDT_entry): Add declaration.
397 * sol-thread.c (ps_lgetLDT): Delete local declaration of
398 function procfs_find_LDT_entry.
400 2012-09-27 Joel Brobecker <brobecker@adacore.com>
402 * procfs.c (proc_get_LDT_entry): Make static.
404 2012-09-27 Joel Brobecker <brobecker@adacore.com>
406 * procfs.c (proc_find_memory_regions): Fix declaration.
408 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
410 * amd64-tdep.c (amd64_return_value): Revert previous change
411 that used TYPE_LENGTH directly.
412 * bfin-tdep.c (bfin_extract_return_value): Likewise.
413 (bfin_store_return_value): Likewise.
414 * cris-tdep.c (cris_store_return_value): Likewise.
415 (cris_extract_return_value): Likewise.
416 * h8300-tdep.c (h8300_extract_return_value): Likewise.
417 * hppa-tdep.c (hppa64_return_value): Likewise.
418 * lm32-tdep.c (lm32_store_return_value): Likewise.
419 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
420 * spu-tdep.c (spu_value_from_register): Likewise.
421 * vax-tdep.c (vax_return_value): Likewise.
423 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
425 * gdbtypes.c (lookup_array_range_type): Expand parameters
426 LOW_BOUND and HIGH_BOUND to LONGEST.
427 (lookup_string_range_type): Likewise.
428 * gdbtypes.h (lookup_array_range_type): Likewise.
429 (lookup_string_range_type): Likewise.
430 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
431 Expand HIGHBOUND to ssize_t.
432 (value_string): Likewise.
433 * value.h (value_cstring): Expand parameter LEN to ssize_t.
434 (value_string): Likewise.
436 2012-09-27 Yao Qi <yao@codesourcery.com>
439 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
440 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
443 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
445 * procfs.c: Add gdb_bfd header.
446 * rs6000-nat.c: Likewise.
447 * solib-pa64.c: Likewise.
448 * spu-linux-nat.c: Likewise.
449 * windows-nat.c: Likewise.
451 2012-09-26 Tom Tromey <tromey@redhat.com>
453 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
455 2012-09-26 Tom Tromey <tromey@redhat.com>
457 * dwarf2read.c (mark_common_block_symbol_computed): New function.
458 (read_common_block): Handle child DIEs with
459 DW_AT_data_member_location.
460 (new_symbol_full): Add special case for common blocks.
462 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
463 Tom Tromey <tromey@redhat.com>
465 * dwarf2read.c (read_common_block): Rewrite.
466 (new_symbol_full): Handle DW_TAG_common_block.
467 * f-lang.c (head_common_list, find_common_for_function):
469 * f-lang.h (struct common_entry, struct saved_f77_common,
470 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
471 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
472 BLANK_COMMON_NAME_LOCAL): Remove.
473 (struct common_block): New.
474 * f-valprint.c (list_all_visible_commons): Remove.
475 (info_common_command_for_block): New function.
476 (info_common_command): Use it.
477 * stack.c (iterate_over_block_locals): Special case for
479 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
481 (struct general_symbol_info) <value.common_block>: New field.
482 (SYMBOL_VALUE_COMMON_BLOCK): New define.
484 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
485 Tom Tromey <tromey@redhat.com>
487 * f-lang.c (allocate_saved_bf_node,
488 allocate_saved_function_node, allocate_saved_f77_common_node,
489 allocate_common_entry_node, tail_common_list, current_common,
490 saved_bf_list, saved_bf_list_end, current_head_bf_list,
491 tmp_bf_ptr, add_common_block, add_common_entry,
492 find_first_common_named, patch_common_entries,
493 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
494 global_remote_debug, get_bf_for_fcn, saved_function_list,
495 saved_function_list_end, clear_function_list, struct saved_fcn,
496 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
497 SAVED_BF, SAVED_BF_PTR): Remove.
498 * f-lang.h (tail_common_list, current_common,
499 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
500 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
501 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
502 real_main_c_value): Remove.
503 * f-valprint.c (there_is_a_visible_common_named): Remove.
505 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
507 * breakpoint.c (update_global_location_list): Ignore previous
508 duplicate status of a breakpoint when starting a new scan for
509 duplicate breakpoints.
511 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
513 * arm-tdep.c (arm_skip_prologue): Extending producer check to
514 support LLVM compiler.
516 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
518 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
519 * bfin-tdep.c (bfin_extract_return_value): Likewise.
520 (bfin_store_return_value): Likewise.
521 * cris-tdep.c (cris_store_return_value): Likewise.
522 (cris_extract_return_value): Likewise.
523 * h8300-tdep.c (h8300_extract_return_value): Likewise.
524 * hppa-tdep.c (hppa64_return_value): Likewise.
525 * lm32-tdep.c (lm32_store_return_value): Likewise.
526 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
527 * spu-tdep.c (spu_value_from_register): Likewise.
528 * vax-tdep.c (vax_return_value): Likewise.
530 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
532 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
533 parameter LEN to ssize_t.
535 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
537 * ada-valprint.c (ada_val_print_1): Eliminate single-use
539 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
541 (alpha_store_return_value): Likewise.
542 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
543 (amd64_push_arguments): Likewise.
544 * ax-gdb.c (gen_trace_static_fields): Likewise.
545 (gen_traced_pop): Likewise.
546 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
547 * breakpoint.c (update_watchpoint): Likewise.
548 * findcmd.c (parse_find_args): Use local variable for type
550 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
551 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
552 (h8300_store_return_value): Likewise.
553 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
554 Use i386_darwin_arg_type_alignment directly.
555 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
556 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
557 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
558 (m68hc11_extract_return_value): Likewise.
559 * mep-tdep.c (mep_push_dummy_call): Likewise.
560 * printcmd.c (float_type_from_length): Likewise.
561 * s390-tdep.c (s390_value_from_register): Likewise.
562 * stack.c (read_frame_arg): Likewise.
563 * tracepoint.c (encode_actions_1): Likewise.
564 * valops.c (value_fetch_lazy): Use local variable for type
565 instead of length. Use TYPE_LENGTH directly.
566 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
568 2012-09-25 Joel Brobecker <brobecker@adacore.com>
570 * symtab.c (skip_prologue_sal): Fix typo in comment.
572 2012-09-25 Joel Brobecker <brobecker@adacore.com>
574 * linespec.c (create_sals_line_offset): Fix typo in comment.
576 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
578 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
579 use plongest to print the array size.
581 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
583 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
584 * p-valprint.c (pascal_type_print_base): Likewise.
586 2012-09-22 Yao Qi <yao@codesourcery.com>
588 * remote.c (remote_get_trace_status): Remove setting default
589 values of fields of 'ts'.
591 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
593 Fix internal error on canonicalization of clang types.
594 * cp-name-parser.y (operator): New comment at make_operator call for
595 new, delete, new[] and delete[].
596 (exp): Use "sizeof ". Add new comment at make_operator call.
598 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
600 Fix disassemble without parameters in tailcall frame.
601 * cli/cli-cmds.c (disassemble_current_function): Use
602 get_frame_address_in_block.
604 2012-09-21 Tom Tromey <tromey@redhat.com>
606 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
607 TYPE_CODE_UNION>: Unify, removing a goto.
609 2012-09-21 Tom Tromey <tromey@redhat.com>
611 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
613 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
615 * findvar.c (read_frame_register_value): Mark the result value as
616 optimized out if any of the input registers have been optimized out.
618 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
620 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
622 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
624 * eval.c (evaluate_subexp_standard): Eliminate single-use
627 2012-09-21 Yao Qi <yao@codesourcery.com>
629 * mi/mi-interp.c: Declare mi_record_changed.
630 (mi_interpreter_init): Call observer_attach_record_changed.
631 (mi_record_changed): New.
632 * record.c (record_open): Call observer_notify_record_changed.
633 (cmd_record_stop): Call observer_notify_record_changed.
636 2012-09-20 Tom Tromey <tromey@redhat.com>
639 * python/python.c (finalize_python): New function.
640 (_initialize_python): Make a final cleanup.
642 2012-09-19 Doug Evans <dje@google.com>
644 * buildsym.h (param_symbols): Delete, unused.
645 (context_stack): Delete member "params", unused.
646 * buildsym.c (push_context): Update.
647 * dwarf2read.c (read_func_scope): Update.
649 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
651 * sh-tdep.c (sh_register_convert_to_virtual)
652 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
653 all callers. Just do a memcpy if not the little-endian case.
655 * h8300-tdep.c (h8300_gdbarch_init): Invoke
656 set_gdbarch_double_format and set_gdbarch_long_double_format.
657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
658 set_gdbarch_double_format.
659 * sh-tdep.c (sh_gdbarch_init): Likewise.
661 * NEWS: Document the removal of SH's 'regs' command.
662 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
665 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
667 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
670 2012-09-18 Joel Brobecker <brobecker@adacore.com>
672 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
673 language when iterating over symbols.
675 2012-09-18 Yao Qi <yao@codesourcery.com>
677 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
678 (mi_interpreter_init): Call observer_attach_tsv_created and
679 observer_attach_tsv_deleted.
680 (mi_tsv_created, mi_tsv_deleted): New.
681 * tracepoint.c (delete_trace_state_variable): Call
682 observer_notify_tsv_deleted.
683 (trace_variable_command): Call observer_notify_tsv_created.
684 (delete_trace_variable_command): Call
685 observer_notify_tsv_deleted.
686 (create_tsv_from_upload): Call observer_notify_tsv_created.
689 2012-09-18 Yao Qi <yao@codesourcery.com>
691 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
692 if traceframe changed.
693 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
695 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
696 (mi_interpreter_init): Hook mi_traceframe_changed to observer
697 'traceframe_changed'.
698 (mi_traceframe_changed): New.
699 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
701 * NEWS: Mention the new MI notification.
703 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
705 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
707 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
709 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
710 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
711 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
712 Extend code also for PaX support. Convert all gdb_assert to warning
715 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
717 Implement auto-load user conveniences suggested by Doug Evans.
718 * auto-load.c: Include top.h.
719 (file_is_auto_load_safe): New variable advice_printed. Print advice.
720 (_initialize_auto_load): New variable scripts_directory_help. Mention
721 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
722 scripts-directory. Document in online help one can use also files for
723 set auto-load safe-path.
724 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
725 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
727 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
729 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
732 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
734 * m2-valprint.c (m2_print_array_contents): Eliminate variable
735 ELTLEN and use TYPE_LENGTH directly.
736 (m2_val_print): Likewise.
737 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
738 variable LEN and use TYPE_LENGTH directly.
739 (m68k_svr4_store_return_value): Likewise.
740 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
741 ARGLEN and use TYPE_LENGTH directly.
742 (mips_o64_push_dummy_call): Likewise.
743 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
744 variable LENGTH and use TYPE_LENGTH directly.
745 (s390_function_arg_float): Likewise.
746 (s390_function_arg_integer): Likewise.
747 (s390_push_dummy_call): Likewise.
748 (s390_return_value_convention): Likewise.
749 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
750 TYPE_LENGTH directly.
752 2012-09-17 Yao Qi <yao@codesourcery.com>
754 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
755 Update comment to add_setshow_integer_cmd.
756 * cli/cli-setshow.c (do_set_command): Handle case
757 'var_zuinteger_unlimited'.
758 (do_show_command): Likewise.
759 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
760 for command 'remotetimeout'.
761 * command.h (enum var_types): New zuinteger_unlimited. Update comment
763 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
764 for command 'set listsize'.
766 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
768 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
771 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
774 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
775 (frame_pop): Drop also TAILCALL_FRAME frames.
776 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
778 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
779 Pedro Alves <palves@redhat.com>
782 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
783 function start if we are already at function start. Both for
784 reverse-next and for reverse-step into function without line number
787 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
789 Code cleanup - rename 'inline' depth to 'artificial' depth.
790 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
791 frame_id_artificial_p, extend the comment.
792 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
793 * frame.c (fprint_frame_id): Rename at a user, change debug output
794 text to "artificial=".
795 (skip_inlined_frames): Rename to ...
796 (skip_artificial_frames): ... here. Extend the comment.
797 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
798 (frame_id_inlined_p): Rename to ...
799 (frame_id_artificial_p): ... here. Rename at a user.
800 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
801 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
803 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
805 (frame_id_inlined_p): Rename to ...
806 (frame_id_artificial_p): ... here.
807 * inline-frame.c (inline_frame_this_id): Rename at a user.
809 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
811 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
812 vector variables using vector_size syntax rather than array
815 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
817 * valarith.c (value_concat): Replace unsafe ALLOCA with
820 2012-09-14 Pedro Alves <palves@redhat.com>
822 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
824 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
826 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
827 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
828 data-directory as appropriate.
830 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
832 * printcmd.c (ui_printf): Eliminate single-use variable
835 2012-09-14 Yao Qi <yao@codesourcery.com>
836 Pedro Alves <palves@redhat.com>
838 * valops.c (value_assign): Move observer_notify_target_changed
839 below to replace reinit_frame_cache.
841 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
843 Refactor Python "gdb" module into a proper Python package, by
844 introducing a new "_gdb" module for code implemented in C, and
845 using reload/__import__ instead of exec.
846 * python/lib/gdb/__init__.py: Import * from _gdb.
847 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
848 prompt_hook, sys.argv): Moved from finish_python_initialization.
849 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
850 (packages, auto_load_packages): New list and function replacing
851 module_dict and auto-loading code, using __file__ instead of
852 gdb.PYTHONDIR and reload/__import__ instead of exec.
853 (GdbSetPythonDirectory): Replacing function of the same name
854 from finish_python_initialization, using reload/__import__ instead
855 of exec, as well as call auto_load_packages.
856 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
857 gdb_python_module and not gdb_module.
858 * python/python-internal.h (gdb_python_module): Declare.
859 * python/python.c (gdb_python_module): New global.
860 (before_prompt_hook): Check gdb_python_module and not gdb_module.
861 (_initialize_python): Rename gdb module to _gdb.
862 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
863 (finish_python_initialization): Move Python code to
864 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
867 2012-09-13 Pedro Alves <palves@redhat.com>
869 * Makefile.in (COMMON_OBS): Add registry.o.
870 * registry.c: New file.
871 * registry.h (struct registry_container): Declare.
872 (registry_data_callback): New typedef.
873 (struct registry_data, struct registry_data_registration, struct
874 registry_data_registry): New type.
875 (register_data_with_cleanup, registry_alloc_data)
876 (registry_callback_adaptor, registry_clear_data)
877 (registry_container_free_data, registry_set_data, registry_data):
879 (DEFINE_REGISTRY): Refactor structures and functions as shims over
880 the new common structures and functions.
881 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
884 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
886 * remote.c (remote_insert_hw_breakpoint): Throw exception if
887 there is an error inserting hardware breakpoints and use the
888 error message from the target.
890 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
891 Catch this exception and print the error message contained within. Do not
892 print the default hardware error breakpoint message in this case.
894 2012-09-12 Doug Evans <dje@google.com>
896 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
899 2012-09-11 Doug Evans <dje@google.com>
901 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
902 .gdb_index symbol attributes if there are none.
904 2012-09-11 Joel Brobecker <brobecker@adacore.com>
906 * symtab.h (struct minimal_symbol) [has_size]: New field.
907 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
908 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
909 * printcmd.c (build_address_symbolic): Only filter out zero-sized
910 minimal symbols if the symbol's size is actually known.
911 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
912 of msymbol's size field. Add comment.
913 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
914 SET_MSYMBOL_SIZE to set the minimal symbol size.
916 2012-09-11 Joel Brobecker <brobecker@adacore.com>
918 * minsyms.c (install_minimal_symbols): Use memset to fill entire
919 minimal_symbol struct object, rather than setting some of its
922 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
924 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
925 passed_a_ptr flag when displaying typedef types.
927 2012-09-10 Joel Brobecker <brobecker@adacore.com>
929 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
930 the optimized_out flag is preserved.
932 2012-09-10 Anthony Green <green@moxielogic.com>
934 * moxie-tdep.c (moxie_analyze_prologue): Update for function
935 prologue changes in GCC.
937 2012-09-10 Keith Seitz <keiths@redhat.com>
940 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
941 (BOOL_CONVERSION_BADNESS): ... this.
942 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
943 (rank_one_type): Allow all boolean conversions
944 permitted by the standard.
946 2012-09-06 Tom Tromey <tromey@redhat.com>
948 * python/py-newobjfileevent.c (create_new_objfile_event_object):
949 Don't decref py_objfile.
951 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
953 Do not enable -lmcheck by default when Python is enabled with
955 * configure.ac: (python_has_threads) New variable, by testing
956 if WITH_THREAD is defined in Python.h.
957 Move --enable-lmcheck after --with-python.
958 Do not enable -lmcheck by default if python_has_threads=yes.
959 Warn if --enable-lmcheck and python_has_threads=yes.
960 * configure: Regenerate.
962 2012-08-31 Yao Qi <yao@codesourcery.com>
964 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
965 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
966 Update some commands.
967 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
968 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
971 2012-08-31 Yao Qi <yao@codesourcery.com>
973 * mi/mi-cmds.c (mi_cmds): Add 'static'.
975 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
977 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
979 2012-08-29 Doug Evans <dje@google.com>
981 * main.c (print_gdb_help): Remove reference to
982 --use-deprecated-index-sections.
984 2012-08-28 Yao Qi <yao@codesourcery.com>
986 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
987 (init_cmds): Call add_setshow_uinteger_cmd for command
988 'max-user-call-depth'.
989 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
990 declaration of 'max_user_call_depth'.
991 * frame.c (backtrace_limit): Add 'unsigned'.
992 (_initialize_frame): Call add_setshow_uinteger_cmd for command
994 * remote.c (remoteaddresssize): Add 'unsigned'.
995 (remote_address_masked): Change local var 'address_size' to
997 (_initialize_remote): Call add_setshow_uinteger_cmd for
999 * top.c (history_size): Add 'unsigned'.
1000 (show_commands): Change local variables to 'unsigned'.
1001 (set_history_size_command): Don't check history_size is negative.
1002 Adjust the condition to call unstifle_history and set history_size
1005 2012-08-28 Pedro Alves <palves@redhat.com>
1009 * infcmd.c (default_print_one_register_info): New, factored out
1010 from default_print_registers_info.
1011 (default_print_registers_info): Use it. Mark value unavailable if
1013 (registers_info): Print user registers with
1014 default_print_one_register_info.
1016 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1019 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1020 is not NULL before referencing it.
1022 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1025 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1028 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1029 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 * auto-load.c (auto_load_objfile_script): Rename to ...
1032 (auto_load_objfile_script_1): ... here, change variable realname to
1033 parameter realname, document it, add return value, add variable retval.
1034 (auto_load_objfile_script): New function.
1036 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1038 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1039 followed by a whitespace.
1041 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1045 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1046 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1049 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1051 * memattr.c (create_mem_region): Fix memory region overlapping
1054 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1056 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1057 with xmalloc/cleanup.
1058 * mt-tdep.c (mt_push_dummy_call): Likewise.
1059 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1060 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1062 2012-08-24 Yao Qi <yao@codesourcery.com>
1064 * jv-exp.y (push_expression_name): Add "." at the end of error
1067 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1069 Document how to return from "python-interactive" to GDB.
1070 * python/python.c (_initialize_python): Update documentation.
1072 2012-08-23 Pedro Alves <palves@redhat.com>
1074 * infrun.c (_initialize_infrun) <handle command help text>:
1075 Mention that multiple signals are supported.
1077 2012-08-23 Pedro Alves <palves@redhat.com>
1079 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1082 2012-08-23 Yao Qi <yao@codesourcery.com>
1084 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1085 (tfind_1): Don't call registers_changed, set_traceframe_num,
1086 and clear_traceframe_info.
1087 Call set_current_traceframe.
1088 (set_current_traceframe): call set_traceframe_num.
1090 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1092 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1093 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1095 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1097 Enable readline in Python in a GDB-specific way and block the
1098 standard Python readline module to prevent conflicts with GDB.
1099 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1100 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1101 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1102 * python/py-gdb-readline.c: New file.
1103 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1105 * python/python.c (_initialize_python): Call
1106 gdbpy_initialize_gdb_readline.
1108 2012-08-22 Keith Seitz <keiths@redhat.com>
1110 * defs.h: Include build-gnulib/config.h
1112 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1114 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1117 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1119 Add a new "python-interactive" command that starts a standard
1120 Python interactive prompt with "pi" as alias, and add "py" as
1121 an alias to "python".
1122 * NEWS: Mention the new commands.
1123 * python/python.c (eval_python_command): New function.
1124 (python_interactive_command): For "python-interactive" with
1125 arguments, call eval_python_command. For "python-interactive"
1126 without arguments, call PyRun_InteractiveLoop.
1127 (_initialize_python): Add "python-interactive" command with
1128 "pi" as alias, and add "py" as an alias to "python".
1130 2012-08-22 Tom Tromey <tromey@redhat.com>
1132 * defs.h (quit_flag): Don't declare.
1133 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1134 (QUIT): Use new functions.
1135 * event-top.c (command_handler): Use clear_quit_flag.
1136 (handle_sigint): Use set_quit_flag.
1137 (async_request_quit): Use check_quit_flag. Don't check
1139 * exceptions.c (throw_exception): Use clear_quit_flag.
1140 * main.c (captured_main): Use clear_quit_flag.
1141 * python/python.c (clear_quit_flag, set_quit_flag)
1142 (check_quit_flag): New functions.
1143 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1145 * remote.c (remote_wait_as): Use check_quit_flag,
1147 (remote_start_remote): Call QUIT.
1148 * symfile.c (load_progress): Use check_quit_flag.
1149 * top.c (command_loop): Use clear_quit_flag.
1150 (command_line_input): Call QUIT.
1151 * utils.c (quit_flag): Conditionally define.
1152 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1154 (prompt_for_continue): Call QUIT. Use quit, not
1156 * remote-mips.c (mips_expect_timeout): Call QUIT.
1157 * monitor.c (monitor_expect): Call QUIT.
1159 2012-08-22 Tom Tromey <tromey@redhat.com>
1161 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1162 (async_init_signals): Update.
1163 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1164 (SIGWINCH_HANDLER_BODY): Remove.
1166 2012-08-22 Tom Tromey <tromey@redhat.com>
1168 * jit.c (jit_object_close_impl): Don't malloc the objfile
1170 * objfiles.c (allocate_objfile): Don't malloc the objfile
1172 (free_objfile): Don't free the objfile name.
1173 * objfiles.h (struct objfile) <name>: Update comment.
1174 * symfile.c (reread_symbols): Fix reference counting. Don't
1175 malloc objfile name.
1177 2012-08-22 Tom Tromey <tromey@redhat.com>
1179 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1180 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1181 (symfile_bfd_open): Likewise.
1182 (generic_load): Likewise.
1183 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1184 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1186 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1188 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1189 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1190 (pmon_load_fast): Likewise.
1191 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1192 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1193 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1194 (macho_check_dsym): Likewise.
1195 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1196 (m32r_upload_command): Likewise.
1197 * gdb_bfd.h (gdb_bfd_cache): Declare.
1198 * gdb_bfd.c (struct gdb_bfd_data): New.
1199 (gdb_bfd_cache): New global.
1200 (struct gdb_bfd_cache_search): New.
1201 (hash_bfd): New function.
1203 (gdb_bfd_open): Likewise.
1204 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1205 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1207 * exec.c (exec_file_attach): Use gdb_bfd_open.
1208 * dsrec.c (load_srec): Use gdb_bfd_open.
1210 2012-08-22 Tom Tromey <tromey@redhat.com>
1212 * dwarf2read.c (macro_start_file): Update.
1213 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1214 (free_objfile_per_bfd_storage): Destroy macro_cache.
1215 (allocate_objfile, free_objfile): Update.
1216 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1218 (struct objfile) <macro_cache>: Remove.
1219 * symfile.c (reread_symbols): Update.
1220 * symmisc.c (print_symbol_bcache_statistics): Update.
1221 (print_objfile_statistics): Update.
1223 2012-08-22 Tom Tromey <tromey@redhat.com>
1225 * elfread.c (elf_symtab_read): Update.
1226 * objfiles.c (objfiles_bfd_data): New global.
1227 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1228 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1229 (allocate_objfile, free_objfile): Update.
1230 (_initialize_objfiles): Initialize objfiles_bfd_data.
1231 * objfiles.h (struct objfile_per_bfd_storage): New.
1232 (struct objfile) <per_bfd>: New field.
1233 <filename_cache>: Remove.
1234 (set_objfile_per_bfd): Declare.
1235 * symfile.c (reread_symbols): Update. Call
1236 set_objfile_per_bfd.
1237 (allocate_symtab): Update.
1238 * symmisc.c (print_symbol_bcache_statistics): Update.
1239 (print_objfile_statistics): Print the size of the BFD obstack.
1241 2012-08-22 Tom Tromey <tromey@redhat.com>
1243 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1244 * gdb_bfd.c: Use DEFINE_REGISTRY.
1245 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1246 (gdb_bfd_ref): Call bfd_alloc_data.
1247 (gdb_bfd_unref): Call bfd_free_data.
1249 2012-08-22 Tom Tromey <tromey@redhat.com>
1251 * registry.h (struct registry_fields): New.
1252 (REGISTRY_FIELDS): Redefine.
1253 (REGISTRY_ACCESS_FIELD): New macro.
1254 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1257 2012-08-22 Tom Tromey <tromey@redhat.com>
1259 * auto-load.c (_initialize_auto_load): Update.
1260 * solib-svr4.c (_initialize_svr4_solib): Update
1261 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1262 * solib-darwin.c (_initialize_darwin_solib): Update.
1263 * registry.h: New file.
1264 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1265 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1266 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1267 (register_program_space_data_with_cleanup)
1268 (register_program_space_data, program_space_alloc_data)
1269 (clear_program_space_data, set_program_space_data)
1270 (program_space_data): Don't declare.
1271 * progspace.c: Use DEFINE_REGISTRY.
1272 (struct program_space_data, struct
1273 program_space_data_registration, struct
1274 program_space_data_registry, program_space_data_registry)
1275 (register_program_space_data_with_cleanup)
1276 (register_program_space_data, program_space_alloc_data)
1277 (program_space_free_data, clear_program_space_data)
1278 (set_program_space_data, program_space_data): Remove.
1279 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1280 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1281 (register_objfile_data_with_cleanup, register_objfile_data)
1282 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1284 * objfiles.c: Use DEFINE_REGISTRY.
1285 (struct objfile_data, struct objfile_data_registration, struct
1286 objfile_data_registry, objfile_data_registry)
1287 (register_objfile_data_with_cleanup, register_objfile_data)
1288 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1289 (set_objfile_data, objfile_data): Remove.
1290 (_initialize_objfiles): Update.
1291 * jit.c (_initialize_jit): Update.
1292 * inflow.c (_initialize_inflow): Update.
1293 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1294 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1295 (register_inferior_data_with_cleanup, register_inferior_data)
1296 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1298 * inferior.c: Use DEFINE_REGISTRY.
1299 (struct inferior_data, struct inferior_data_registration, struct
1300 inferior_data_registry, inferior_data_registry)
1301 (register_inferior_data_with_cleanup, register_inferior_data)
1302 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1303 (set_inferior_data, inferior_data): Remove.
1304 * auxv.c (_initialize_auxv): Update.
1305 * ada-lang.c (_initialize_ada_language): Update.
1306 * breakpoint.c (_initialize_breakpoint): Update.
1307 * i386-nat.c (i386_use_watchpoints): Update.
1309 2012-08-22 Tom Tromey <tromey@redhat.com>
1311 * exec.c (exec_close, exec_file_attach): Update.
1312 (add_to_section_table): Initialize 'key' field.
1313 (add_target_sections, remove_target_sections): Add 'key' argument.
1314 * exec.h (add_target_sections, remove_target_sections): Add
1316 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1317 (reload_shared_libraries_1): Update.
1318 * target.h (struct target_section) <key>: New field.
1320 2012-08-22 Tom Tromey <tromey@redhat.com>
1322 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1324 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1326 * symfile.c (allocate_symtab): Use host_address_to_string
1327 function instead of cast of pointer to long which is not
1328 compatible with x86_64-w64-mingw32 build.
1330 2012-08-19 Andrew Pinski <apinski@cavium.com>
1332 * mips-tdep.c (is_octeon): New function.
1333 (is_octeon_bbit_op): New function.
1334 (mips32_next_pc): Handle Octeon's bbit instructions.
1335 (mips32_instruction_has_delay_slot): Likewise.
1337 2012-08-19 Andrew Pinski <apinski@cavium.com>
1339 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1340 before the function.
1342 2012-08-19 Andrew Pinski <apinski@cavium.com>
1344 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1346 2012-08-19 Keith Seitz <keiths@redhat.com>
1349 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1350 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1352 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1354 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1355 The typo broke "make TAGS".
1357 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1361 2012-08-17 Keith Seitz <keiths@redhat.com>
1364 * gdbtypes.c (strict_type_checking): New variable.
1365 (show_strict_type_checking): New function.
1366 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1367 if strict type checking is disabled.
1368 (_initialize_gdbtypes): Add "check type" subcommand.
1369 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1371 2012-08-17 Keith Seitz <keiths@redhat.com>
1373 * language.h (type_mode): Remove.
1374 (type_check): Remove.
1375 (struct language_defn): Remove la_type_check.
1376 (STRICT_TYPE): Remove unused macro.
1377 (type_error): Remove.
1378 * language.c (set_type_range_case): Renamed to ...
1379 (set_range_case): ... this. Update all callers.
1380 Remove type_mode/type_check.
1381 (type_mode): Remove.
1382 (type_check): Remove.
1383 (show_type_command): Remove.
1384 (set_type_command): Remove.
1385 (language_info): Remove type checking output.
1386 (type_error): Remove unused function.
1387 (range_error): Update comment.
1388 (unknown_language_defn): Remove la_type_check.
1389 (auto_language_defn): Likewise.
1390 (local_language_defn): Likewise.
1391 (_initialize_language): Remove "check type" subcommand.
1392 * ada-lang.c (ada_language_defn): Remove la_type_check.
1393 * c-lang.c (c_language_defn): Likewise.
1394 (cplus_language_defn): Likewise.
1395 (asm_language_defn): Likewise.
1396 (minimal_language_defn): Likewise.
1397 * d-lang.c (d_language_defn): Likewise.
1398 * f-lang.c (f_language_defn): Likewise.
1399 * go-lang.c (go_language_defn): Likewise.
1400 * jv-lang.c (java_language_defn): Likewise.
1401 * m2-lang.c (m2_language_defn): Likewise.
1402 * objc-lang.c (objc_language_defn): Likewise.
1403 * opencl-lang.c (opencl_language_defn): Likewise.
1404 * p-lang.c (pascal_language_defn): Likewise.
1406 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1408 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1410 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1412 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1414 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1415 using the regache. Use ia64_hpux_get_register_from_save_state_t
1416 to access the bsp and bspstore registers if not.
1418 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1420 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1421 * breakpoint.c (detach_breakpoints): Change pid parameter into
1422 a ptid. Adjust code accordingly.
1423 * infrun.c (handle_inferior_event): Delete variable child_pid.
1424 Update call to detach_breakpoints to pass the child ptid for
1426 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1427 assert that inferior_ptid's lwp is zero.
1428 (linux_handle_extended_wait): Update call to detach_breakpoints.
1429 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1432 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1434 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1435 parent, only call detach_breakpoints if tts.tts_event ==
1438 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1440 * dwarf2-frame.c (dwarf2_frame_cache): Use
1441 get_frame_address_in_block instead of get_frame_pc as
1442 the bound for executing the frame's FDE.
1444 2012-08-16 Yao Qi <yao@codesourcery.com>
1446 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1447 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1448 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1449 (c_type_print_varspec_suffix): Likewise.
1450 * eval.c (evaluate_subexp_standard): Likewise.
1451 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1452 (f_type_print_varspec_suffix): Likewise.
1453 * gdbtypes.c (is_scalar_type): Likewise.
1454 (recursive_dump_type): Likewise.
1455 * infcall.c (value_arg_coerce): Likewise.
1456 * m2-valprint.c (m2_val_print): Likewise.
1457 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1458 (pascal_type_print_varspec_suffix): Likewise.
1459 (pascal_type_print_base): Likewise.
1460 * p-valprint.c (pascal_val_print): Likewise.
1461 (pascal_val_print): Likewise.
1462 * valops.c (value_slice): Likewise.
1463 * valprint.c (scalar_type_p): Likewise.
1464 * valarith.c (value_bitstring_subscript): Remove.
1465 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1466 Remove comment on TYPE_CODE_BITSTRING.
1468 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1469 TYPE_CODE_BITSTRING.
1471 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1474 2012-08-16 Yao Qi <yao@codesourcery.com>
1476 * tracepoint.c (trace_find_none_command): Remove.
1477 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1479 2012-08-16 Yao Qi <yao@codesourcery.com>
1481 * remote.c (handle_notification): Remove parameter 'length'.
1482 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1484 2012-08-15 Keith Seitz <keiths@redhat.com>
1486 * gdbtypes.c (opaque_type_resolution): Make static.
1487 Add missing comment.
1488 (overload_debug): Add missing comment.
1489 (show_opaque_type_resolution): Likewise.
1490 (show_overload_debug): Likewise.
1491 (print_bit_vector): Remove unnecessary forward declaration.
1492 (print_arg_types): Likewise.
1493 (dump_fn_fieldlists): Likewise.
1494 (print_cplus_stuff): Likewise.
1496 2012-08-15 Tom Tromey <tromey@redhat.com>
1498 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1499 (gdb_bfd_ref): Initialize new field.
1500 (gdb_bfd_unref): Unref the archive BFD.
1501 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1504 2012-08-15 Tom Tromey <tromey@redhat.com>
1507 * python/py-bpevent.c (create_breakpoint_event_object): Update
1509 * python/py-event.c (evpy_add_attribute): Update comment.
1510 * python/py-exitedevent.c (create_exited_event_object): Fix
1511 reference counting and error handling.
1512 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1513 Fix reference counting.
1514 * python/py-signalevent.c (create_signal_event_object): Fix
1515 reference counting and error handling.
1516 * python/py-stopevent.c (emit_stop_event): Fix reference
1518 * python/py-threadevent.c (get_event_thread): Return a
1520 * python/py-type.c (convert_field): Fix reference counting.
1522 2012-08-15 Tom Tromey <tromey@redhat.com>
1524 * dwarf2read.c (dwarf_decode_macro_bytes)
1525 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1528 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1530 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1531 stepi, nexti, finish, next, step, jump, and continue commands.
1532 * infrun.c (_initialize_infrun): Update help text for the handle
1535 2012-08-14 Doug Evans <dje@google.com>
1537 * gdbtypes.c (struct extra): Delete, unused.
1539 * gdbtypes.c: Whitespace cleanup.
1540 (address_space_name_to_int): Remove "extern" from definition.
1541 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1543 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1544 TYPE_POINTER_TYPE (type).
1546 2012-08-14 Gary Benson <gbenson@redhat.com>
1548 * solib-svr4.c (svr4_free_library_list): Use free_so.
1550 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1552 * .gitignore: Add go-exp.c.
1554 2012-08-13 Doug Evans <dje@google.com>
1556 * value.c (show_convenience): Tweak comment.
1557 (_initialize_values): Mention convenience functions in the help text
1558 for "show convenience".
1560 2012-08-13 Yao Qi <yao@codesourcery.com>
1562 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1563 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1565 * eval.c (evaluate_subexp_standard): Likewise.
1566 * expprint.c (print_subexp_standard): Likewise.
1567 (dump_subexp_body_standard): Likewise.
1568 * parse.c (operator_length_standard): Likewise.
1570 2012-08-13 Yao Qi <yao@codesourcery.com>
1572 * std-operator.def: Remove OP_BITSTRING.
1573 * breakpoint.c (watchpoint_exp_is_const): Update.
1574 * eval.c (evaluate_subexp_standard): Remove handling to
1576 * expprint.c (print_subexp_standard): Likewise.
1577 (dump_subexp_body_standard): Likewise.
1578 * parse.c (operator_length_standard): Likewise.
1579 * valops.c (value_bitstring): Remove.
1580 * value.h: Remove the declaration of 'value_bitstring'.
1582 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1584 * linespec.c (find_methods): Remove unused variables `i1' and
1586 (decode_line_full): Likewise for `arg_start'.
1588 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1590 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1591 (zlib_decompress_section): Likewise for `section_data'.
1592 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1594 2012-08-10 Doug Evans <dje@google.com>
1596 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1597 * NEWS: Document them.
1598 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1600 * python/py-type.c (typy_array_1): New function.
1601 (typy_array): Call it.
1602 (typy_vector): New function.
1603 (type_object_methods): Add "vector".
1604 * python/lib/gdb/function/__init__.py: New file.
1605 * python/lib/gdb/function/strfns.py: New file.
1607 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1609 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1610 for TYPE_FIELD_BITPOS.
1611 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1613 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1616 * common/vec.h (VEC_merge): Define.
1617 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1618 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1619 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1620 * completer.c: Include gdb_signals.h.
1621 (signal_completer): Define.
1622 * completer.h (signal_completer): Add prototype.
1623 * infcmd.c (_initialize_infcmd): Assign the command
1624 completer for "signal" to handle_completer.
1625 * infrun.c: Include completer.h.
1626 (handle_completer): Define.
1627 (_initialize_infrun): Declare a new local variable c. Store the
1628 result of add_com("handle") to it. Assign the command
1629 completer for "handle" to handle_completer.
1631 2012-08-09 Yao Qi <yao@codesourcery.com>
1633 * cli/cli-decode.c (set_cmd_prefix): New.
1634 (lookup_cmd_for_prefixlist): New.
1635 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1636 of each cmd_list_element in *prefixlist.
1637 (add_setshow_cmd_full): set_cmd_prefix.
1638 (add_alias_cmd): Likewise.
1639 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1640 Declare 'auto_boolean_enums'.
1641 * cli/cli-setshow.c: Include "observer.h".
1642 (notify_command_param_changed_p): New.
1643 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1645 (do_setshow_command): Split it to ...
1646 (do_set_command, do_show_command): ... them. New.
1647 (do_set_command): Call observer_notify_command_param_changed if
1648 notify_command_param_changed_p returns true.
1649 (cmd_show_list): Caller update.
1650 * auto-load.c (set_auto_load_cmd): Likewise.
1651 * remote.c (show_remote_cmd): Likewise.
1652 * cli/cli-setshow.h: Update declarations.
1653 * top.c (execute_command): Call do_set_command and do_show_command.
1655 * NEWS: Mention new MI notification.
1656 * mi/mi-interp.c: Declare mi_command_param_changed.
1657 (mi_interpreter_init): Attach mi_command_param_changed to
1658 observer command_param_changed.
1659 (mi_command_param_changed): New.
1660 Remove mi_suppress_breakpoint_notifications.
1661 Define global variable mi_suppress_notification.
1662 (mi_breakpoint_created): Update.
1663 (mi_breakpoint_deleted): Likewise.
1664 (mi_breakpoint_modified): Likewise.
1665 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1666 'gdb-set' and set mi_suppress_notification.
1667 * mi/mi-main.h: (mi_suppress_notification): New struct.
1669 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1670 Jan Kratochvil <jan.kratochvil@redhat.com>
1672 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1674 2012-08-09 Yao Qi <yao@codesourcery.com>
1676 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1677 (skiplist): Move it to skip.c.
1678 (init_cmd_lists): Remove code setting enablebreaklist and
1680 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1681 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1683 * gdbcmd.h: Likewise.
1684 * skip.c (_initialize_step_skip): Move 'skiplist' from
1687 2012-08-09 Yao Qi <yao@codesourcery.com>
1689 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1690 * gnu-nat.c, symfile.c: Likewise.
1692 2012-08-08 Aaron Gamble <agamble@google.com>
1694 * utils.c (prompt_for_continue_wait_time): New static global.
1695 (make_command_stats_cleanup): Initialize it.
1696 (report_command_stats): Subtract time waiting for user.
1697 (prompt_for_continue): Track time waiting for user.
1698 (defaulted_query): Track time waiting for user.
1700 2012-08-08 Doug Evans <dje@google.com>
1702 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1704 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1705 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1706 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1707 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1708 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1709 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1711 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1712 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1713 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1714 (dump_prefix_expression): Handle OP_TYPE.
1716 2012-08-08 Keith Seitz <keiths@redhat.com>
1718 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1721 2012-08-08 Doug Evans <dje@google.com>
1723 * linux-thread-db.c: #include "gdb_vecs.h".
1724 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1726 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1727 (thread_db_load_search): Use a vector to iterate over path elements.
1728 Handle text appearing after "$pdir".
1730 * gdb_string.h: Moved to ...
1731 * common/gdb_string.h: ... here.
1732 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1733 gdb_string.h and gdb_assert.h.
1735 2012-08-08 Yao Qi <yao@codesourcery.com>
1737 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1738 (tic6x_value_to_register): Likewise.
1739 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1740 and set_gdbarch_value_to_register.
1742 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1743 Jean-Marc Saffroy <saffroy@gmail.com>
1746 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1747 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1748 * gcore.c (gcore_create_callback): New function comment. Add modified
1749 parameter. Only write modified regions. Set SEC_READONLY exactly
1750 according to MODIFIED.
1751 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1752 the passed modified value to FUNC.
1753 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1754 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1755 first. New variables modified and has_anonymous. Parse the lines of
1756 smaps file. Add the passed MODIFIED value to FUNC.
1757 * procfs.c (find_memory_regions_callback): Add the passed modified
1760 2012-08-06 Tom Tromey <tromey@redhat.com>
1762 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1763 (dwarf2_frame_cache): Use it.
1764 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1765 cache initialization constraint.
1767 2012-08-06 Tom Tromey <tromey@redhat.com>
1770 * varobj.c (update_dynamic_varobj_children): Don't call
1773 2012-08-06 Tom Tromey <tromey@redhat.com>
1776 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1778 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1780 * NEWS: New entry for 'cd' default parameters.
1781 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1783 2012-08-03 Tom Tromey <tromey@redhat.com>
1785 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1788 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1790 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1791 to attempting lseek/write.
1792 (inf_child_fileio_pread): Likewise for pread.
1794 2012-08-02 Yao Qi <yao@codesourcery.com>
1796 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1797 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1798 add_setshow_zinteger_cmd.
1799 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1800 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1801 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1802 instead of add_setshow_zinteger_cmd.
1803 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1804 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1805 instead of add_setshow_zinteger_cmd.
1806 * frame.c (frame_debug): Add 'unsigned'.
1807 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1808 add_setshow_zinteger_cmd.
1809 * frame.h: Update the declaration of 'frame_debug'.
1810 * gdbtypes.c (overload_debug): Add 'unsigned'.
1811 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1812 add_setshow_zinteger_cmd.
1813 * inferior.h: Update declaration of 'debug_infrun'.
1814 * infrun.c (debug_infrun): Add 'unsigned'.
1815 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1816 add_setshow_zinteger_cmd.
1817 * jit.c (jit_debug): Add 'unsigned'.
1818 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1819 add_setshow_zinteger_cmd.
1820 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1821 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1822 instead of add_setshow_zinteger_cmd.
1823 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1824 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1825 add_setshow_zinteger_cmd.
1826 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1827 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1828 instead of add_setshow_zinteger_cmd.
1829 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1830 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1831 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1832 intead of add_setshow_zinteger_cmd.
1833 * mips-tdep.c (mips_debug): Add 'unsigned'.
1834 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1835 instead of add_setshow_zinteger_cmd.
1836 * monitor.c (monitor_debug): Add 'unsigned'.
1837 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1838 add_setshow_zinteger_cmd.
1839 * observer.c (observer_debug): Add 'unsigned'.
1840 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1841 add_setshow_zinteger_cmd.
1842 * parse.c (expressiondebug): Add 'unsigned'.
1843 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1844 add_setshow_zinteger_cmd.
1845 * record.c (record_debug): Add 'unsigned'.
1846 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1847 add_setshow_zinteger_cmd.
1848 * record.h: Update the declaration of 'record_debug'.
1849 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1850 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1851 add_setshow_zinteger_cmd.
1852 * serial.c (global_serial_debug_p): Add 'unsigned'.
1853 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1854 add_setshow_zinteger_cmd.
1855 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1856 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1857 add_setshow_zinteger_cmd.
1858 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1859 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1860 add_setshow_zinteger_cmd.
1861 * target.c (targetdebug): Add 'unsigned'.
1862 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1863 add_setshow_zinteger_cmd.
1864 * valops.c (overload_debug): Add 'unsigned'.
1865 * varobj.c (varobjdebug): Add 'unsigned'.
1866 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1867 add_setshow_zinteger_cmd.
1868 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1869 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1870 instead of add_setshow_zinteger_cmd.
1872 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1873 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1874 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1875 instead of add_setshow_zinteger_cmd.
1876 * gdbarch.c, gdbarch.h: Re-generated.
1878 2012-08-02 Yao Qi <yao@codesourcery.com>
1880 * nto-tdep.c: Don't include cli/cli-decode.h and
1882 (_initialize_nto_tdep): Remove.
1883 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1885 Remove macro nto_internal_debugging.
1887 2012-08-01 Richard Henderson <rth@redhat.com>
1889 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1890 (mep-*-*) [gdb_target_obs]: Likewise.
1892 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1894 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1895 linux_get_siginfo_type.
1897 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1899 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1901 (call_function_by_hand) <ON_STACK>: Call write_memory with
1902 gdbarch_breakpoint_from_pc, if possible.
1903 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1906 2012-07-31 Yao Qi <yao@codesourcery.com>
1908 * tracepoint.c: Add 'static' for some variables.
1910 2012-07-31 Yao Qi <yao@codesourcery.com>
1912 * go32-nat.c: Declare _initialize_go32_nat.
1913 * ser-go32.c: Declare _initialize_ser_dos.
1914 * top.c (do_chdir_cleanup): Add 'static'.
1916 2012-07-30 Keith Seitz <keiths@redhat.com>
1918 * linespec.c (linespec_lex_number): A number followed
1919 by quotes is a valid number, too.
1921 2012-07-30 Tom Tromey <tromey@redhat.com>
1923 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1925 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1927 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1928 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1930 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1932 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1933 invalid or reevaluated to prevent prevent references to possibly
1934 delete'd type objects being left in the varobj.
1936 2012-07-27 Tom Tromey <tromey@redhat.com>
1937 Jan Kratochvil <jan.kratochvil@redhat.com>
1939 * copying.awk: Print buffer-read-only and vi ro markers.
1940 * copying.c: Rebuild.
1941 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1942 * gdbarch.c, gdbarch.h: Rebuild.
1943 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1944 buffer-read-only and vi ro markers.
1945 * features/arm-with-iwmmxt.c: Rebuild.
1946 * features/arm-with-m-fpa-layout.c: Rebuild.
1947 * features/arm-with-m-vfp-d16.c: Rebuild.
1948 * features/arm-with-m.c: Rebuild.
1949 * features/arm-with-neon.c: Rebuild.
1950 * features/arm-with-vfpv2.c: Rebuild.
1951 * features/arm-with-vfpv3.c: Rebuild.
1952 * features/i386/amd64-avx-linux.c: Rebuild.
1953 * features/i386/amd64-avx.c: Rebuild.
1954 * features/i386/amd64-linux.c: Rebuild.
1955 * features/i386/amd64.c: Rebuild.
1956 * features/i386/i386-avx-linux.c: Rebuild.
1957 * features/i386/i386-avx.c: Rebuild.
1958 * features/i386/i386-linux.c: Rebuild.
1959 * features/i386/i386-mmx-linux.c: Rebuild.
1960 * features/i386/i386-mmx.c: Rebuild.
1961 * features/i386/i386.c: Rebuild.
1962 * features/i386/x32-avx-linux.c: Rebuild.
1963 * features/i386/x32-avx.c: Rebuild.
1964 * features/i386/x32-linux.c: Rebuild.
1965 * features/i386/x32.c: Rebuild.
1966 * features/mips-dsp-linux.c: Rebuild.
1967 * features/mips-linux.c: Rebuild.
1968 * features/mips64-dsp-linux.c: Rebuild.
1969 * features/mips64-linux.c: Rebuild.
1970 * features/rs6000/powerpc-32.c: Rebuild.
1971 * features/rs6000/powerpc-32l.c: Rebuild.
1972 * features/rs6000/powerpc-403.c: Rebuild.
1973 * features/rs6000/powerpc-403gc.c: Rebuild.
1974 * features/rs6000/powerpc-405.c: Rebuild.
1975 * features/rs6000/powerpc-505.c: Rebuild.
1976 * features/rs6000/powerpc-601.c: Rebuild.
1977 * features/rs6000/powerpc-602.c: Rebuild.
1978 * features/rs6000/powerpc-603.c: Rebuild.
1979 * features/rs6000/powerpc-604.c: Rebuild.
1980 * features/rs6000/powerpc-64.c: Rebuild.
1981 * features/rs6000/powerpc-64l.c: Rebuild.
1982 * features/rs6000/powerpc-7400.c: Rebuild.
1983 * features/rs6000/powerpc-750.c: Rebuild.
1984 * features/rs6000/powerpc-860.c: Rebuild.
1985 * features/rs6000/powerpc-altivec32.c: Rebuild.
1986 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1987 * features/rs6000/powerpc-altivec64.c: Rebuild.
1988 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1989 * features/rs6000/powerpc-cell32l.c: Rebuild.
1990 * features/rs6000/powerpc-cell64l.c: Rebuild.
1991 * features/rs6000/powerpc-e500.c: Rebuild.
1992 * features/rs6000/powerpc-e500l.c: Rebuild.
1993 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1994 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1995 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1996 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1997 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1998 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1999 * features/rs6000/powerpc-vsx32.c: Rebuild.
2000 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2001 * features/rs6000/powerpc-vsx64.c: Rebuild.
2002 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2003 * features/rs6000/rs6000.c: Rebuild.
2004 * features/s390-linux32.c: Rebuild.
2005 * features/s390-linux32v1.c: Rebuild.
2006 * features/s390-linux32v2.c: Rebuild.
2007 * features/s390-linux64.c: Rebuild.
2008 * features/s390-linux64v1.c: Rebuild.
2009 * features/s390-linux64v2.c: Rebuild.
2010 * features/s390x-linux64.c: Rebuild.
2011 * features/s390x-linux64v1.c: Rebuild.
2012 * features/s390x-linux64v2.c: Rebuild.
2013 * features/tic6x-c62x-linux.c: Rebuild.
2014 * features/tic6x-c62x.c: Rebuild.
2015 * features/tic6x-c64x-linux.c: Rebuild.
2016 * features/tic6x-c64x.c: Rebuild.
2017 * features/tic6x-c64xp-linux.c: Rebuild.
2018 * features/tic6x-c64xp.c: Rebuild.
2020 2012-07-27 Tom Tromey <tromey@redhat.com>
2022 * c-exp.y (classify_name): Avoid assignment in condition.
2024 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2026 * amd64-windows-tdep.c: Include "frame.h".
2027 (amd64_windows_skip_trampoline_code): New function.
2028 (amd64_windows_init_abi): Add trampoline registration.
2030 2012-07-27 Yao Qi <yao@codesourcery.com>
2032 * tracepoint.c (cur_traceframe_number): Remove.
2033 (set_tfile_traceframe): Remove.
2034 (tfile_trace_find, tfile_fetch_registers): Update callers.
2035 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2036 (tfile_open, tfile_trace_find): Likewise.
2038 2012-07-27 Yao Qi <yao@codesourcery.com>
2040 * thread.c (switch_to_thread): Don't call registers_changed.
2042 2012-07-26 Tom Tromey <tromey@redhat.com>
2044 * Makefile.in (SFILES): Remove objc-exp.y.
2045 (YYFILES): Remove objc-exp.c.
2046 (YYOBJ): Remove objc-exp.o.
2047 (local-maintainer-clean): Don't mention objc-exp.c.
2048 * c-exp.y: Include objc-lang.h.
2049 (%union) <class>: New field.
2050 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2051 (exp): Clone subscript production for OBJC_LBRAC. Add various
2052 Objective C productions.
2053 (msglist, msgarglist, msgarg): New productions.
2054 (array_mod, func_mod, operator): Clone productions for
2056 (parse_string_or_char): Handle '@' strings.
2057 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2058 (classify_name): Check la_name_of_this. Recognize ObjC class
2060 * objc-exp.y: Remove.
2061 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2062 * objc-lang.h (objc_parse, objc_error): Don't declare.
2064 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2066 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2068 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2073 2012-07-26 Tom Tromey <tromey@redhat.com>
2075 * copying.c: Rebuild.
2076 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2079 2012-07-26 Tom Tromey <tromey@redhat.com>
2081 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2083 (print_objfile_statistics): Likewise.
2084 (maintenance_print_symbols): Likewise.
2085 (maintenance_print_msymbols): Likewise.
2086 (maintenance_print_objfiles): Likewise.
2087 * psymtab.c (print_partial_symbols): Call QUIT.
2088 (maintenance_print_psymbols): Likewise. Don't modify
2090 * copying.c (show_copying_command): Don't modify immediate_quit.
2091 (show_warranty_command): Likewise.
2092 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2094 2012-07-26 Keith Seitz <keiths@redhat.com>
2096 * linespec.c (linespec_lexer_lex_number): The input
2097 is also a valid number if the next character is a comma
2100 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2102 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2105 2012-07-26 Tristan Gingold <gingold@adacore.com>
2107 * machoread.c: Include gdb_bfd.h.
2109 2012-07-26 Tristan Gingold <gingold@adacore.com>
2111 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2114 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2116 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2118 (dwarf2_evaluate_loc_desc): Likewise.
2119 (dwarf2_loc_desc_needs_frame): Likewise.
2120 (locexpr_describe_location_1): Likewise.
2121 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2123 (struct dwarf2_loclist_baton): Likewise.
2124 * dwarf2read.c (struct dwarf_block): Likewise.
2125 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2126 (decode_locdesc): Expand SIZE and I to size_t.
2128 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2132 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2134 * doublest.c (convert_doublest_to_floatformat): If the exponent
2135 is too small, treat the value as zero. If the exponent is too
2136 large, treat the value as infinity.
2138 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2140 * configure.ac: Add --enable-lmcheck configure option.
2141 * configure: Regenerate.
2143 2012-07-25 Tom Tromey <tromey@redhat.com>
2145 * NEWS: Mention maint info bfds.
2146 * gdb_bfd.c (all_bfds): New global.
2147 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2148 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2151 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2153 * configure.tgt: Add v850*-*-rtems*.
2155 2012-07-25 Tom Tromey <tromey@redhat.com>
2157 * macrotab.c (macro_bcache_str): Remove cast.
2159 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2161 * linespec.c (linespec_lexer_lex_number): Update comments,
2162 change the return and add check to make sure the input is
2163 the decimal numbers.
2164 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2165 false, call linespec_lexer_lex_string.
2167 2012-07-24 Tom Tromey <tromey@redhat.com>
2169 * symfile.c (symbol_file_add): Don't open BFD twice.
2171 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2173 * breakpoint.c (create_breakpoint): Store condition for pending
2176 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2178 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2179 (m68k_return_value): Handle complex types like structures.
2180 (m68k_svr4_return_value): Likewise.
2182 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2184 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2185 parameters to bfd_get_section_name.
2187 2012-07-24 Yao Qi <yao@codesourcery.com>
2189 * cli/cli-setshow.c: Handle case 'var_uinteger'
2190 and 'var_zuninteger' together. Handle case 'var_integer' and
2191 'var_zinteger' together.
2193 2012-07-23 Keith Seitz <keiths@redhat.com>
2195 * linespec.c (convert_linespec_to_sal): Don't add
2196 any symbols to the result vector if symbol_to_sal
2199 2012-07-23 Keith Seitz <keiths@redhat.com>
2201 * linespec.c (decode_objc): Record the function name
2204 2012-07-23 Tom Tromey <tromey@redhat.com>
2206 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2208 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2209 (map_vmap): Acquire a reference to the BFD.
2211 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2213 * p-valprint.c (pascal_object_print_value): Replace potentially
2214 unsafe alloca with xmalloc/xfree.
2215 * valops.c (search_struct_method): Likewise.
2217 2012-07-23 Tom Tromey <tromey@redhat.com>
2219 * solib-svr4.c (enable_break): Update.
2220 * bfd-target.h (target_bfd_reopen): Update documentation.
2222 2012-07-23 Tom Tromey <tromey@redhat.com>
2224 * symfile.c (separate_debug_file_exists): Update.
2225 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2226 (reread_symbols): Update.
2227 * elfread.c (build_id_verify): Update.
2228 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2229 bfd_open_maybe_remote.
2231 2012-07-23 Tom Tromey <tromey@redhat.com>
2233 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2235 2012-07-23 Tom Tromey <tromey@redhat.com>
2237 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2239 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2241 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2242 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2244 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2245 * objfiles.c (allocate_objfile): Acquire a new reference.
2246 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2247 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2248 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2249 a cleanup for 'nbfd'.
2250 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2252 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2253 make a cleanup for 'abfd'.
2254 (symbol_file_add): Make a BFD cleanup.
2256 2012-07-23 Tom Tromey <tromey@redhat.com>
2258 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2259 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2260 * corelow.c (core_open): Use gdb_bfd_fopen.
2261 * dsrec.c (load_srec): Use gdb_bfd_openr.
2262 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2263 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2264 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2265 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2266 (gdb_bfd_fdopenr): New functions.
2267 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2268 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2269 (gdb_bfd_fdopenr): Declare.
2270 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2271 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2272 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2273 gdb_bfd_openr_next_archived_file.
2274 (macho_check_dsym): Use gdb_bfd_openr.
2275 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2276 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2277 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2278 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2280 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2281 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2282 gdb_bfd_openr_next_archived_file.
2283 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2285 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2287 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2288 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2289 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2290 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2291 (symfile_bfd_open): Use gdb_bfd_fopen.
2292 (generic_load): Use gdb_bfd_openr.
2293 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2295 2012-07-23 Tom Tromey <tromey@redhat.com>
2297 * bfd-target.c (target_bfd_reopen): Update.
2298 * cli/cli-dump.c (bfd_openr_with_cleanup)
2299 (bfd_openw_with_cleanup): Update.
2300 * corelow.c (core_open): Update.
2301 * dsrec.c (load_srec): Update.
2302 * exec.c (exec_file_attach): Update.
2303 * gcore.c (create_gcore_bfd): Update.
2304 * gdb_bfd.c (gdb_bfd_ref): Return void.
2305 (gdb_bfd_open): Update.
2306 * gdb_bfd.h (gdb_bfd_ref): Return void.
2308 * jit.c (jit_bfd_try_read_symtab): Update.
2309 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2310 * machoread.c (macho_symfile_read_all_oso): Update.
2311 (macho_check_dsym): Update.
2312 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2313 * remote-m32r-sdi.c (m32r_load): Update.
2314 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2315 * rs6000-nat.c (add_vmap): Update.
2316 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2318 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2319 * solib-spu.c (spu_bfd_open): Update.
2320 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2321 * spu-linux-nat.c (spu_bfd_open): Update.
2322 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2323 (generic_load): Update.
2324 * windows-nat.c (windows_make_so): Update.
2326 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2328 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2330 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2332 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2333 SIGTRAMP_FRAME unwinding.
2335 2012-07-20 Doug Evans <dje@google.com>
2337 * NEWS: Document new options "set/show use-deprecated-index-sections",
2338 and delete reference to --use-deprecated-index-sections.
2339 * symfile.h (use_deprecated_index_sections): Delete.
2340 * dwarf2read.c (use_deprecated_index_sections): Make static.
2341 (read_index_from_section): Update wording of how to load
2342 deprecated index sections.
2343 (_initialize_dwarf2_read): New options
2344 "set/show use-deprecated-index-sections".
2345 * main.c (captured_main): Delete --use-deprecated-index-sections.
2347 2012-07-20 Pedro Alves <palves@redhat.com>
2352 * infrun.c (handle_inferior_event) <new thread>: Don't special
2353 case minus_one_ptid.
2354 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2355 * linux-thread-db.c (thread_get_info_callback): Don't return early
2356 if the thread is zombie.
2357 (thread_from_lwp): Change return type to void. Rewrite stale
2359 (attach_thread): Don't return early if the thread is zombie,
2360 instead set its "dying" flag.
2361 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2362 (find_new_threads_callback): Don't return early if the thread is
2365 2012-07-20 Pedro Alves <palves@redhat.com>
2367 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2368 * target.c (target_wait): Likewise.
2369 (str_comma_list_concat_elem, do_option, target_options_to_string):
2371 * target.h (target_options_to_string): Declare.
2373 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2374 Tom Tromey <tromey@redhat.com>
2376 * dwarf2read.c (dwarf_decode_macros)
2377 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2378 DW_MACRO_GNU_transparent_include_alt>: New cases.
2379 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2380 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2382 2012-07-20 Tom Tromey <tromey@redhat.com>
2384 * dwarf2read.c (try_open_dwo_file): Don't call
2385 gdb_bfd_stash_filename.
2387 2012-07-20 Pedro Alves <palves@redhat.com>
2389 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2390 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2391 (i386_process_record): Tweak description comments.
2393 2012-07-20 Pedro Alves <palves@redhat.com>
2395 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2396 (i386_process_record): Use record_read_memory.
2397 * record.c (record_read_memory): New function.
2398 (record_arch_list_add_mem, record_exec_insn): Use
2400 * record.h (record_read_memory): Declare.
2402 2012-07-20 Yao Qi <yao@codesourcery.com>
2404 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2407 2012-07-19 Pedro Alves <palves@redhat.com>
2409 * record.c (record_resume): Ask the target beneath to report all
2412 2012-07-19 Doug Evans <dje@google.com>
2414 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2415 there's no section at address zero.
2416 (dwarf2_record_block_ranges): Ditto.
2418 2012-07-19 Yao Qi <yao@codesourcery.com>
2420 * command.h, remote.c: Fix a typo in comment.
2422 2012-07-19 Tom Tromey <tromey@redhat.com>
2425 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2426 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2427 OP_DECLTYPE>: New cases.
2428 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2429 (type_exp): Add new productions.
2430 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2432 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2434 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2435 OP_DECLTYPE>: New case.
2436 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2438 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2439 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2441 2012-07-19 Tom Tromey <tromey@redhat.com>
2443 * c-exp.y (enum token_flags): New.
2444 (struct token) <cxx_only>: Remove.
2446 (tokentab3, tokentab2, ident_tokens): Update.
2447 (lex_one_token): Update. Handle FLAG_SHADOW.
2449 2012-07-19 Tom Tromey <tromey@redhat.com>
2451 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2452 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2453 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2454 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2455 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2456 type_exp production where appropriate.
2457 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2458 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2459 <UNOP_MEMVAL_TYPE>: New case.
2460 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2461 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2462 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2463 <UNOP_MEMVAL_TYPE>: New case.
2464 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2465 UNOP_REINTERPRET_CAST>: Update.
2466 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2467 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2468 UNOP_REINTERPRET_CAST>: Update.
2469 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2470 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2471 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2474 2012-07-19 Yao Qi <yao@codesourcery.com>
2475 Jan Kratochvil <jan.kratochvil@redhat.com>
2477 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2478 and case 'var_optional_filename' together.
2479 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2480 instead of add_setshow_optional_filename_cmd for setshow command
2481 'args'. Set completer for 'set args'.
2483 2012-07-18 Doug Evans <dje@google.com>
2485 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2486 * common/gdb_vecs.c: New file, contents from utils.c.
2487 * common/host-defs.h: New file, contents from defs.h.
2488 * utils.h: New file, contents from defs.h.
2489 * defs.h: Move all declarations of objects defined in utils.c
2490 to utils.h (except QUIT() and related).
2491 #include "utils.h", "host-defs.h".
2492 * probe.h (probe_p): Move here from gdb_vecs.h.
2493 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2494 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2495 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2496 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2497 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2498 (COMMON_OBS): Add gdb_vecs.o.
2499 (gdb_vecs.o): New rule.
2501 2012-07-18 Keith Seitz <keiths@redhat.com>
2503 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2504 parameter. If non-zero, use SYMNAME as the canonical name
2507 (convert_linespec_to_sals): Use add_sal_to_sals for
2509 (decode_line_full): No need to "fill in missing canonical names"
2510 anymore. Simply make cleanups for the allocated names.
2512 2012-07-18 Keith Seitz <keiths@redhat.com>
2514 * linespec.c (struct linespec): Constify expression,
2515 source_filename, function_name, and label_name.
2516 (symbol_not_found_error): Make all parameters const.
2517 (linespec_parser_delete): No need to check for NULL
2518 when using xfree. Cast const char * to char * for xfree.
2520 2012-07-18 Keith Seitz <keiths@redhat.com>
2522 * breakpoint.c (invalid_thread_id_error): New function.
2523 (find_condition_and_thread): Use invalid_thread_id_error.
2524 (watch_command_1): Likewise.
2526 2012-07-18 Tom Tromey <tromey@redhat.com>
2528 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2529 * contrib/cc-with-tweaks.sh: New file.
2531 2012-07-18 Tom Tromey <tromey@redhat.com>
2533 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2534 (locate_dwz_sections): Recognize .gdb_index.
2535 (create_cus_from_index_list): New function.
2536 (create_cus_from_index): Use it. Handle .dwz data.
2537 (read_index_from_section): New function, extracted from
2539 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2542 2012-07-18 Tom Tromey <tromey@redhat.com>
2544 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2545 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2546 <is_dwz>: New field.
2547 (struct dwz_file): New.
2548 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2549 (locate_dwz_sections, dwarf2_get_dwz_file)
2550 (get_abbrev_section_for_cu): New functions.
2551 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2552 (read_and_check_type_unit_head): Add abbrev_section argument.
2553 (create_debug_types_hash_table): Update.
2554 (init_cutu_and_read_dies): Use proper abbrev section.
2555 (init_cutu_and_read_dies_no_follow): Likewise.
2556 (set_partial_user): Do nothing if PST==NULL.
2557 (read_comp_units_from_section): New function.
2558 (create_all_comp_units): Use it.
2559 (scan_partial_symbols, partial_die_parent_scope): Update.
2560 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2561 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2562 (find_partial_die): Add offset_in_dwz argument. Update.
2563 (guess_partial_die_structure_name, fixup_partial_die): Update.
2564 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2565 DW_FORM_GNU_strp_alt.
2566 (read_indirect_string_from_dwz): New function.
2567 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2568 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2569 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2570 (follow_die_offset): Add offset_in_dwz argument.
2571 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2572 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2573 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2574 Handle new macro forms.
2575 (dwarf_decode_macros): Update.
2576 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2577 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2578 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2579 (create_debug_types_hash_table): Use correct abbrev section.
2580 (get_debug_line_section): New function.
2581 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2582 (process_full_comp_unit): Pass 'required' argument to
2583 end_symtab_get_static_block.
2584 * buildsym.h (end_symtab_get_static_block): Update.
2585 * buildsym.c (end_symtab_get_static_block): Add 'required'
2587 (end_symtab, end_expandable_symtab): Update.
2589 2012-07-18 Tom Tromey <tromey@redhat.com>
2591 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2593 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2594 (zlib_decompress_section): Remove.
2595 (dwarf2_read_section): Use gdb_bfd_map_section.
2596 (munmap_section_buffer): Remove.
2597 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2598 munmap_section_buffer.
2599 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2600 (struct gdb_bfd_section_data): New.
2601 (free_one_bfd_section): New function.
2602 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2603 (get_section_descriptor, zlib_decompress_section)
2604 (gdb_bfd_map_section): New functions.
2605 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2607 2012-07-18 Tom Tromey <tromey@redhat.com>
2609 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2611 2012-07-18 Tom Tromey <tromey@redhat.com>
2613 * gdb_bfd.c (struct gdb_bfd_data): New.
2614 (gdb_bfd_cache): New global.
2615 (struct gdb_bfd_cache_search): New.
2616 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2617 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2618 * gdb_bfd.h (gdb_bfd_open): Declare.
2620 2012-07-18 Tom Tromey <tromey@redhat.com>
2622 * utils.c (make_cleanup_bfd_unref): Rename from
2623 make_cleanup_bfd_close.
2624 * defs.h (make_cleanup_bfd_unref): Rename from
2625 make_cleanup_bfd_close.
2626 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2627 (bfd_openw_with_cleanup): Update.
2628 * corelow.c (core_open): Update.
2629 * dsrec.c (load_srec): Update.
2630 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2631 * remote-m32r-sdi.c (m32r_load): Update.
2632 * remote-mips.c (mips_load_srec): Update.
2633 (pmon_load_fast): Update.
2634 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2636 (darwin_bfd_open): Update.
2637 * solib.c (solib_bfd_fopen): Update.
2638 * symfile-mem.c (symbol_file_add_from_memory): Update.
2639 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2640 (symfile_bfd_open): Update.
2641 (generic_load): Update.
2643 2012-07-18 Tom Tromey <tromey@redhat.com>
2645 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2646 (pmon_load_fast): Likewise.
2647 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2648 (m32r_upload_command): Likewise.
2649 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2650 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2651 Use make_cleanup_bfd_close.
2653 2012-07-18 Tom Tromey <tromey@redhat.com>
2655 * symfile.c (symfile_bfd_open): Don't copy name. Call
2656 gdb_bfd_stash_filename.
2657 (load_command): Open the new BFD before freeing the old.
2658 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2659 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2660 Call gdb_bfd_stash_filename.
2661 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2662 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2663 gdb_bfd_stash_filename.
2664 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2665 Free found_pathname.
2666 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2667 gdb_bfd_stash_filename.
2668 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2669 * machoread.c (macho_add_oso_symfile): Call
2670 gdb_bfd_stash_filename.
2671 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2672 gdb_bfd_stash_filename.
2673 (macho_check_dsym): Don't copy filename. Call
2674 gdb_bfd_stash_filename.
2675 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2676 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2677 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2678 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2679 * exec.c (exec_close): Don't free the BFD's filename.
2680 (exec_file_attach): Don't copy the filename. Call
2681 gdb_bfd_stash_filename.
2682 * corelow.c (core_close): Don't free the BFD's filename.
2683 (core_open): Call gdb_bfd_stash_filename.
2684 * corefile.c (reopen_exec_file): Remove #if 0 code.
2685 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2687 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2689 2012-07-18 Tom Tromey <tromey@redhat.com>
2691 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2693 (free_dwo_file): Use gdb_bfd_unref.
2694 * cli/cli-dump.c: Include gdb_bfd.h.
2695 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2696 (bfd_openr_with_cleanup): Likewise.
2697 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2699 * utils.c: Include gdb_bfd.h.
2700 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2701 * symfile.c: Include gdb_bfd.h.
2702 (separate_debug_file_exists): Use gdb_bfd_unref.
2703 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2704 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2705 (generic_load): Use gdb_bfd_ref.
2706 (reread_symbols): Use gdb_bfd_unref.
2707 * symfile-mem.c: Include gdb_bfd.h.
2708 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2709 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2710 * solib.c: Include gdb_bfd.h.
2711 (solib_bfd_fopen): Use gdb_bfd_ref.
2712 (solib_bfd_open): Use gdb_bfd_unref.
2713 (free_so_symbols): Use gdb_bfd_unref.
2714 (reload_shared_libraries_1): Use gdb_bfd_unref.
2715 * solib-spu.c: Include gdb_bfd.h.
2716 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2717 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2719 * solib-frv.c: Include gdb_bfd.h.
2720 (enable_break2): Use gdb_bfd_unref.
2721 * solib-dsbt.c: Include gdb_bfd.h.
2722 (enable_break2): Use gdb_bfd_unref.
2723 * solib-darwin.c: Include gdb_bfd.h.
2724 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2726 (darwin_bfd_open): Use gdb_bfd_unref.
2727 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2728 * remote-mips.c: Include gdb_bfd.h.
2729 (mips_load_srec): Use gdb_bfd_ref.
2730 (pmon_load_fast): Use gdb_bfd_ref.
2731 * remote-m32r-sdi.c: Include gdb_bfd.h.
2732 (m32r_load): Use gdb_bfd_ref.
2733 * record.c: Include gdb_bfd.h.
2734 (record_save_cleanups): Use gdb_bfd_unref.
2735 (cmd_record_save): Use gdb_bfd_unref.
2736 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2738 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2739 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2740 * objfiles.c: Include gdb_bfd.h.
2741 (free_objfile): Use gdb_bfd_unref.
2742 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2744 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2745 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2746 (macho_check_dsym): Likewise.
2747 * m32r-rom.c: Include gdb_bfd.h.
2748 (m32r_load): Use gdb_bfd_ref.
2749 (m32r_upload_command): Use gdb_bfd_ref.
2750 * jit.c: Include gdb_bfd.h.
2751 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2752 * gdb_bfd.h: New file.
2753 * gdb_bfd.c: New file.
2754 * gcore.c: Include gdb_bfd.h.
2755 (create_gcore_bfd): Use gdb_bfd_ref.
2756 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2757 (gcore_command): Use gdb_bfd_unref.
2758 * exec.c: Include gdb_bfd.h.
2759 (exec_close): Use gdb_bfd_unref.
2760 (exec_close_1): Use gdb_bfd_unref.
2761 (exec_file_attach): Use gdb_bfd_ref.
2762 * elfread.c: Include gdb_bfd.h.
2763 (build_id_verify): Use gdb_bfd_unref.
2764 * dsrec.c: Include gdb_bfd.h.
2765 (load_srec): Use gdb_bfd_ref.
2766 * corelow.c: Include gdb_bfd.h.
2767 (core_close): Use gdb_bfd_unref.
2768 (core_open): Use gdb_bfd_ref.
2769 * bfd-target.c: Include gdb_bfd.h.
2770 (target_bfd_xclose): Use gdb_bfd_unref.
2771 (target_bfd_reopen): Use gdb_bfd_ref.
2772 * Makefile.in (SFILES): Add gdb_bfd.c.
2773 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2774 (COMMON_OBS): Add gdb_bfd.o.
2776 2012-07-18 Keith Seitz <keiths@redhat.com>
2778 * breakpoint.c (find_condition_and_thread): Initialize
2780 (create_breakpiont): find_condition_and_thread will now
2781 initialize COND_STRING, THREAD, and REST (and TASK).
2782 (addr_string_to_sals): Likewise.
2784 2012-07-18 Pedro Alves <palves@redhat.com>
2786 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2787 Pull the single step breakpoints out of the target.
2789 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2791 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2792 * stap-probe.c (compile_probe_arg): Likewise.
2794 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2796 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2797 (elf_compile_to_ax): Likewise.
2798 * infrun.c (insert_exception_resume_from_probe): Likewise.
2799 (check_exception_resume): Remove `objfile' variable.
2800 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2801 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2802 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2803 (compare_entries): Rename to...
2804 (compare_probes): ...this. Adjust function to work with
2805 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2807 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2809 (print_ui_out_info): Adjust argument to be `struct probe *'.
2810 (info_probes_for_ops): Adjust internal computations to use
2812 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2813 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2814 gen_info_probes_table_values>: Remove `objfile' argument.
2815 (struct probe) <objfile>: New field.
2816 (find_probe_by_pc): Remove `objfile' argument.
2817 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2818 (stap_get_probe_argument_count): Likewise.
2819 (stap_get_arg): Likewise.
2820 (stap_evaluate_probe_argument): Likewise.
2821 (stap_compile_to_ax): Likewise.
2822 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2823 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2824 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2825 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2826 sym_compile_to_ax>: Likewise.
2828 2012-07-18 Terry Guo <terry.guo@arm.com>
2831 * defs.h (GDB_MI_MSG_WIDTH): New.
2832 * ser_base (ser_base_read_error_fd): New function.
2833 (do_ser_base_readchar): Poll error file descriptor as well as
2835 (generic_readchar): Refactor error handling.
2837 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2839 * NEWS: Create a new section for the next release branch.
2840 Rename the section of the current branch, now that it has
2843 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2845 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2846 * version.in: Bump version to 7.5.50.20120718-cvs.
2848 2012-07-17 Keith Seitz <keiths@redhat.com>
2850 * linespec.c (linespec_parse_line_offset): Make parameter
2853 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2856 * f-valprint.c (info_common_command): New variable frame_id.
2857 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2858 * printcmd.c (print_variable_and_value): Extend function comment.
2859 Add comment for invalidated FRAME.
2860 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2861 FI form FRAME_ID after each print_frame_local_vars.
2862 (struct print_variable_and_value_data): Change frame to frame_id.
2863 (do_print_variable_and_value): New variable frame, initialize it from
2864 p->frame_id. Add comment for invalidated FRAME.
2865 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2866 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2867 for invalidated FRAME.
2869 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2870 Pedro Alves <palves@redhat.com>
2872 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2875 2012-07-16 Tom Tromey <tromey@redhat.com>
2877 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2879 2012-07-15 Doug Evans <dje@google.com>
2881 * dwarf2read.c (stmt_list_hash): New struct.
2882 (type_unit_group): Embed "per_cu" member, remove pointer.
2883 New union member "t", move member "tus" into it, all uses updated.
2884 New member "hash", replaces member "line_offset, all uses updated.
2885 (quick_file_names): Replace member "offset" with "hash", all uses
2887 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2888 (hash_file_name_entry, eq_file_name_entry): Call them.
2889 (hash_type_unit_group, eq_type_unit_group): Ditto.
2890 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2891 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2892 (dw2_get_file_names): Update.
2893 (create_type_unit_group): Replace "per_cu" arg with "cu".
2894 All callers updated. Fix "quick" (.gdb_index) handling.
2895 (get_type_unit_group): Replace "per_cu" arg with "cu".
2896 All callers updated.
2897 (build_type_unit_groups): Don't reset tu_stats.
2899 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2900 "tab_cur_size". Change member "tab" to be a htab_t.
2901 (create_filename_seen_cache): Update.
2902 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2903 (filename_seen): Update.
2905 2012-07-13 Doug Evans <dje@google.com>
2907 * symtab.c (filename_seen): Update comment.
2909 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2910 Doug Evans <dje@google.com>
2912 * buildsym.c (end_symtab_1): Split it to ...
2913 (end_symtab_get_static_block): ... this ...
2914 (end_symtab_from_static_block): ... and this function.
2915 (end_symtab, end_expandable_symtab): Call them.
2916 * buildsym.h (end_symtab_get_static_block)
2917 (end_symtab_from_static_block): New declarations.
2918 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2919 Set its valid CU ranges.
2921 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2923 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2924 DW_OP_GNU_parameter_ref.
2926 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2928 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2929 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2931 2012-07-13 Doug Evans <dje@google.com>
2933 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2934 (filename_seen_cache): New struct.
2935 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2936 (create_filename_seen_cache): New function.
2937 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2938 (filename_seen): Delete arg "first". New arg "cache". All callers
2940 (output_source_filename_data): New struct.
2941 (output_source_filename): Delete arg "first". New arg "data".
2942 All callers updated.
2943 (sources_info): Delete local "first". New locals "data", "cleanups".
2944 Rewrite to use filename_seen_cache.
2945 (add_partial_filename_data): Delete member "first". New member
2946 "filename_seen_cache". All uses updated.
2947 (make_source_files_completion_list): Rewrite to use
2948 filename_seen_cache.
2950 2012-07-12 Doug Evans <dje@google.com>
2952 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2954 2012-07-10 Doug Evans <dje@google.com>
2957 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2958 all_type_unit_groups, type_unit_groups, tu_stats.
2959 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2960 All uses updated. Add type_unit_group to union "s".
2961 (type_unit_group): New struct.
2962 (IS_TYPE_UNIT_GROUP): New macro.
2963 (abbrev_table): Delete unused member "section".
2964 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2965 (dw2_get_cu): Assert not used with type_unit_group.
2966 (dw2_get_primary_cu): New function.
2967 (dw2_build_type_unit_groups_reader): New function.
2968 (dw2_build_type_unit_groups): New function.
2969 (dw2_get_file_names): Assert not called on type units.
2970 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2971 Redo loop to iterate over type unit groups instead of type units.
2972 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2973 (read_abbrev_offset): New function.
2974 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2976 (create_partial_symtab): New function.
2977 (process_psymtab_comp_unit_reader): Assert not used with type units.
2978 Call create_partial_symtab.
2979 (process_psymtab_type_unit): Delete.
2980 (hash_type_unit_group, eq_type_unit_group): New functions.
2981 (allocate_type_unit_groups_table): New function.
2982 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2983 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2984 (create_type_unit_group, get_type_unit_group): New functions.
2985 (tu_abbrev_offset): New struct.
2986 (sort_tu_by_abbrev_offset): New function.
2987 (add_type_unit_group_to_table): New function.
2988 (build_type_unit_groups): New function.
2989 (build_type_psymtabs_reader): New function.
2990 (build_type_psymtab_dependencies): New function.
2991 (build_type_psymtabs): Rewrite.
2992 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2993 is seen in a type unit.
2994 (process_queue): Move symtab expansion debugging printfs here.
2995 Call process_full_type_unit for type units.
2996 (compute_symtab_includes): Assert not called for type units.
2997 (process_cu_includes): Don't call compute_symtab_includes for
2999 (process_full_type_unit): New function.
3000 (process_imported_unit_die): Flag an error if called for type units.
3001 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3002 updated. Assert not called for type units.
3003 (read_file_scope): Call dwarf2_start_symtab.
3004 (setup_type_unit_groups): New function.
3005 (read_type_unit_scope): Rewrite.
3006 (abbrev_table_read_table): Initialize abbrev_table->offset.
3007 (abbrev_table_free_cleanup): New function.
3008 (dwarf2_start_symtab): New function.
3009 (load_full_type_unit): Assert not called for type unit groups.
3010 * buildsym.c (finish_block_internal): New arg "expandable".
3011 All callers updated.
3012 (start_symtab): Move most contents to ...
3013 (restart_symtab): ... here. New function.
3014 (reset_symtab_globals): New function.
3015 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3016 Call reset_symtab_globals.
3017 (end_symtab, end_expandable_symtab): New functions.
3018 (set_missing_symtab, augment_type_symtab): New functions.
3019 * buildsym.h (end_expandable_symtab): Declare.
3020 (augment_type_symtab, restart_symtab): Declare.
3021 * psympriv.h (struct partial_symtab): New member "anonymous".
3022 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3024 (read_psymtabs_with_filename): Ditto.
3025 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3026 (expand_symtabs_matching_via_partial): Ditto.
3027 (dump_psymtab): Update.
3028 * dictionary.c (dict_add_pending): New function.
3029 * dictionary.h (dict_add_pending): Declare.
3031 2012-07-09 Doug Evans <dje@google.com>
3033 * buildsym.c (start_subfile): Remove unnecessary check for
3036 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3038 * dwarf2read.c (load_full_type_unit): Simplify.
3040 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3041 to struct signatured_type **. All uses updated.
3043 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3044 All callers updated.
3046 2012-07-09 Tom Tromey <tromey@redhat.com>
3048 * c-exp.y (check_parameter_typelist): New function.
3049 (parameter_typelist): Call it.
3050 * eval.c (make_params): Handle '(void)' case.
3051 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3054 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3056 * common/linux-ptrace.c: Include gdb_assert.h.
3057 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3058 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3060 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3062 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3063 * linux-nat.c (linux_child_post_attach)
3064 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3066 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3068 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3069 nptl <2.7 bug workaround for core files.
3071 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3073 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3075 (save_siginfo): Remove.
3076 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3078 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3079 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3080 * linux-nat.h (struct lwp_info): Remove field siginfo.
3082 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3084 Code cleanup for the next patch.
3085 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3086 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3088 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3089 (ia64_linux_stopped_data_address):
3090 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3092 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3093 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3094 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3097 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3100 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3101 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3103 2012-07-06 Tom Tromey <tromey@redhat.com>
3105 * c-exp.y (DOTDOTDOT): New token.
3106 (func_mod, exp): Use parameter_typelist.
3107 (parameter_typelist): New production.
3108 (tokentab3): Add "..." token.
3109 * eval.c (make_params): Handle varargs.
3110 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3113 2012-07-06 Tom Tromey <tromey@redhat.com>
3116 * c-exp.y (%union) <tvec>: Change type.
3117 (func_mod): Now uses <tvec> type.
3118 (exp): Update for tvec change.
3119 (direct_abs_decl): Push the typelist.
3120 (func_mod): Return a typelist.
3121 (nonempty_typelist): Update for tvec change.
3122 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3123 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3124 * parse.c (pop_type_list): New function.
3125 (push_typelist): New function.
3126 (follow_types): Handle tp_function_with_arguments.
3127 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3128 (enum type_pieces) <tp_function_with_arguments>: New constant.
3129 (union type_stack_elt) <typelist_val>: New field.
3130 (push_typelist): Declare.
3132 2012-07-06 Tom Tromey <tromey@redhat.com>
3134 * c-exp.y (%union) <type_stack>: New field.
3135 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3136 (ptr_operator_ts): New production.
3138 * parse.c (type_stack_reserve): New function.
3139 (check_type_stack_depth): Use it.
3140 (pop_type_stack, append_type_stack, push_type_stack)
3141 (get_type_stack, type_stack_cleanup): New functions.
3142 (follow_types): Handle tp_type_stack.
3143 (_initialize_parse): Simplify initialization.
3144 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3146 (union type_stack_elt) <stack_val>: New field.
3147 (get_type_stack, append_type_stack, push_type_stack)
3148 (type_stack_cleanup): Declare.
3150 2012-07-06 Tom Tromey <tromey@redhat.com>
3152 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3154 (struct type_stack): New.
3155 * parse.c (type_stack, type_stack_size, type_stack_depth):
3157 (type_stack): New global.
3158 (parse_exp_in_context, check_type_stack_depth)
3159 (insert_into_type_stack, insert_type, push_type, push_type_int)
3160 (insert_type_address_space, pop_type, pop_type_int)
3161 (_initialize_parse): Update.
3163 2012-07-06 Tom Tromey <tromey@redhat.com>
3165 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3168 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3170 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3172 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3173 Jan Kratochvil <jan.kratochvil@redhat.com>
3175 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3176 alloca with xmalloc/xfree.
3178 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3180 * MAINTAINERS (Write After Approval): Add myself to the list.
3182 2012-07-05 Doug Evans <dje@google.com>
3184 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3186 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3188 * ax-gdb.c (cli/cli-utils.h): New include.
3189 (linespec.h): Ditto.
3190 (agent_eval_command_one): New function.
3191 (agent_command_1): Ditto.
3192 (agent_command): Call function agent_command_1.
3193 (agent_eval_command): Ditto.
3194 (_initialize_ax_gdb): Change help for "maint agent"
3195 and "maint agent-eval".
3197 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3199 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3200 * cli/cli-utils.c (check_for_argument): New function.
3201 * cli/cli-utils.h (check_for_argument): Ditto.
3203 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3205 * NEWS: Mention x32 ABI support.
3207 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3209 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3210 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3212 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3213 and pc_regnum_from_eax to -1. Update SP regnum from
3214 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3217 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3220 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3222 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3223 * dwarf2expr.h: Include gdbtypes.h.
3224 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3225 these forward declarations.
3226 (cu_offset, sect_offset): Move these ...
3227 * gdbtypes.h: Remove include dwarf2expr.h.
3228 (cu_offset, sect_offset): ... here.
3230 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3232 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3233 (amd64_linux_sigtramp_code): This.
3234 (amd64_x32_linux_sigtramp_code): New.
3235 (LINUX_SIGTRAMP_LEN): Updated.
3236 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3238 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3242 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3244 * config.in: Regenerate.
3245 * configure: Regenerate.
3246 * configure.ac: Remove check for gnu/libc-version.h.
3247 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3249 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3250 variables libc_version, libc_major and libc_minor. Replace sscanf by
3251 inferior_has_bug. Extend the comment.
3253 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3255 * linux-thread-db.c (inferior_has_bug): New function.
3256 (thread_db_find_new_threads_silently): Return boolean as checked by
3257 inferior_has_bug, describe it in the comments.
3258 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3259 earlier. Abort the initialization if it returned non-zero.
3260 (thread_db_new_objfile): Exclude debug files.
3261 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3264 2012-07-02 Doug Evans <dje@google.com>
3266 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3267 related to queue management.
3269 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3270 instead of "debug dwarf2-die" in debugging printfs.
3271 (create_debug_info_hash_table_reader): Ditto.
3272 (create_debug_info_hash_table): Ditto.
3273 (init_dwo_file): Ditto.
3274 (init_cutu_and_read_dies): Add debugging printf.
3275 (init_cutu_and_read_dies_no_follow): Ditto.
3276 (process_psymtab_comp_unit_reader): Ditto.
3278 2012-07-02 Stan Shebs <stan@codesourcery.com>
3280 Add target-side support for dynamic printf.
3281 * NEWS: Mention the additional style.
3282 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3283 (struct bp_location): New field cmd_bytecode.
3284 * breakpoint.c: Include format.h.
3285 (disconnected_dprintf): New global.
3286 (parse_cmd_to_aexpr): New function.
3287 (build_target_command_list): New function.
3288 (insert_bp_location): Call it.
3289 (remove_breakpoints_pid): Skip dprintf breakpoints.
3290 (print_one_breakpoint_location): Ditto.
3291 (dprintf_style_agent): New global.
3292 (dprintf_style_enums): Add dprintf_style_agent.
3293 (update_dprintf_command_list): Add agent case.
3294 (agent_printf_command): New function.
3295 (_initialize_breakpoint): Add new commands.
3296 * common/ax.def (printf): New bytecode.
3297 * ax.h (ax_string): Declare.
3298 * ax-gdb.h (gen_printf): Declare.
3299 * ax-gdb.c: Include cli-utils.h, format.h.
3300 (gen_printf): New function.
3301 (maint_agent_print_command): New function.
3302 (_initialize_ax_gdb): Add maint agent-printf command.
3303 * ax-general.c (ax_string): New function.
3304 (ax_print): Add printf disassembly.
3305 * Makefile.in (SFILES): Add format.c
3306 (COMMON_OBS): Add format.o.
3307 * common/format.h: New file.
3308 * common/format.c: New file.
3309 * printcmd.c: Include format.h.
3310 (ui_printf): Call parse_format_string.
3311 * remote.c (remote_state): New field breakpoint_commands.
3312 (PACKET_BreakpointCommands): New enum.
3313 (remote_breakpoint_commands_feature): New function.
3314 (remote_protocol_features): Add new BreakpointCommands entry.
3315 (remote_can_run_breakpoint_commands): New function.
3316 (remote_add_target_side_commands): New function.
3317 (remote_insert_breakpoint): Call it.
3318 (remote_insert_hw_breakpoint): Ditto.
3319 (_initialize_remote): Add new packet configuration for
3320 target-side breakpoint commands.
3321 * target.h (struct target_ops): New field
3322 to_can_run_breakpoint_commands.
3323 (target_can_run_breakpoint_commands): New macro.
3324 * target.c (update_current_target): Handle
3325 to_can_run_breakpoint_commands.
3327 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3329 Execute -ix and -iex only after system and user gdbinit files.
3330 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3331 processing down after gdbinit files.
3333 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3335 Add fnmatch-gnu module.
3336 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3337 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3338 * gnulib/aclocal.m4: Regenerate.
3339 * gnulib/config.in: Regenerate.
3340 * gnulib/configure: Regenerate.
3341 * gnulib/import/dummy.c: Remove.
3342 * gnulib/import/Makefile.am: Regenerate.
3343 * gnulib/import/Makefile.in: Likewise.
3344 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3345 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3346 * gnulib/import/alloca.c: New file.
3347 * gnulib/import/alloca.in.h: Likewise.
3348 * gnulib/import/config.charset: Likewise.
3349 * gnulib/import/fnmatch.c: Likewise.
3350 * gnulib/import/fnmatch.in.h: Likewise.
3351 * gnulib/import/fnmatch_loop.c: Likewise.
3352 * gnulib/import/localcharset.c: Likewise.
3353 * gnulib/import/localcharset.h: Likewise.
3354 * gnulib/import/m4/alloca.m4: Likewise.
3355 * gnulib/import/m4/codeset.m4: Likewise.
3356 * gnulib/import/m4/configmake.m4: Likewise.
3357 * gnulib/import/m4/fcntl-o.m4: Likewise.
3358 * gnulib/import/m4/fnmatch.m4: Likewise.
3359 * gnulib/import/m4/glibc21.m4: Likewise.
3360 * gnulib/import/m4/localcharset.m4: Likewise.
3361 * gnulib/import/m4/locale-fr.m4: Likewise.
3362 * gnulib/import/m4/locale-ja.m4: Likewise.
3363 * gnulib/import/m4/locale-zh.m4: Likewise.
3364 * gnulib/import/m4/mbrtowc.m4: Likewise.
3365 * gnulib/import/m4/mbsinit.m4: Likewise.
3366 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3367 * gnulib/import/m4/mbstate_t.m4: Likewise.
3368 * gnulib/import/m4/stdbool.m4: Likewise.
3369 * gnulib/import/m4/wchar_h.m4: Likewise.
3370 * gnulib/import/m4/wctype_h.m4: Likewise.
3371 * gnulib/import/m4/wint_t.m4: Likewise.
3372 * gnulib/import/mbrtowc.c: Likewise.
3373 * gnulib/import/mbsinit.c: Likewise.
3374 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3375 * gnulib/import/mbsrtowcs-state.c: Likewise.
3376 * gnulib/import/mbsrtowcs.c: Likewise.
3377 * gnulib/import/ref-add.sin: Likewise.
3378 * gnulib/import/ref-del.sin: Likewise.
3379 * gnulib/import/stdbool.in.h: Likewise.
3380 * gnulib/import/streq.h: Likewise.
3381 * gnulib/import/strnlen1.c: Likewise.
3382 * gnulib/import/strnlen1.h: Likewise.
3383 * gnulib/import/verify.h: Likewise.
3384 * gnulib/import/wchar.in.h: Likewise.
3385 * gnulib/import/wctype.in.h: Likewise.
3387 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3389 Support shell wildcards for 'set auto-load safe-path'.
3390 * auto-load.c: Include fnmatch.h.
3391 (filename_is_in_dir): Rename to ...
3392 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3393 it. Update function comment. Rename dir_len to pattern_len. New
3394 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3395 messages. Use gdb_filename_fnmatch.
3396 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3398 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3399 * defs.h (gdb_filename_fnmatch): New declaration.
3400 * utils.c: Include fnmatch.h.
3401 (gdb_filename_fnmatch): New function.
3403 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3405 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3406 `-probe' and `-probe-stap' options.
3408 2012-07-01 Yao Qi <yao@codesourcery.com>
3410 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3411 always_inserted_off, and always_inserted_enums.
3412 Change always_inserted_mode's type to 'enum auto_boolean'.
3413 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3415 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3416 of add_setshow_enum_cmd.
3417 * infrun.c: Remove can_use_displaced_stepping_auto,
3418 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3419 can_use_displaced_stepping_enum.
3420 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3421 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3422 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3423 add_setshow_enum_cmd.
3425 2012-06-30 Doug Evans <dje@google.com>
3427 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3428 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3429 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3431 2012-06-29 Doug Evans <dje@google.com>
3433 * linespec.c: #include "stack.h".
3434 (decode_line_with_current_source): Moved here from symtab.c and
3435 renamed from decode_line_spec. All callers updated.
3436 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3437 renamed from decode_line_spec_1. All callers updated.
3438 * linespec.h (decode_line_with_current_source): Move declaration here
3439 from symtab.h and renamed from decode_line_spec.
3440 (decode_line_with_last_displayed): Move declaration here from symtab.h
3441 and renamed from decode_line_spec_1.
3442 * macrocmd.c: #include "linespec.h".
3443 * symtab.c: Remove #include "linespec.h".
3445 2012-06-28 Doug Evans <dje@google.com>
3447 * dwarf2read.c (get_cu_length): New function.
3448 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3449 (create_debug_types_hash_table): Ditto.
3450 (init_cutu_and_read_dies): Ditto.
3451 (init_cutu_and_read_dies_no_follow): Ditto.
3453 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3455 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3456 (struct abbrev_table): Define.
3457 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3459 (init_cutu_and_read_dies): Update.
3460 (abbrev_table_alloc_abbrev): New function. Replaces
3461 dwarf_alloc_abbrev. All callers updated.
3462 (abbrev_table_add_abbrev): New function.
3463 (abbrev_table_lookup_abbrev): New function. Replaces
3464 dwarf2_lookup_abbrev. All callers updated.
3465 (abbrev_table_read_table): New function. Contents moved here from
3466 dwarf2_read_abbrevs.
3467 (dwarf2_read_abbrevs): Call it.
3468 (abbrev_table_free): New function.
3469 (dwarf2_free_abbrev_table): Call it.
3471 2012-06-28 Stan Shebs <stan@codesourcery.com>
3473 * osdata.c (info_osdata_command): Filter out "Title" columns
3475 * common/linux-osdata.c (struct osdata_type): Add title field.
3476 (osdata_table): Add titles to each entry.
3477 (linux_command_xfer_osdata): Add a column for title data.
3479 2012-06-28 Stan Shebs <stan@codesourcery.com>
3481 Make logging work for MI.
3483 * interps.h (interp_set_logging_ftype): New typedef.
3484 (struct interp_procs): New field set_logging_proc.
3485 (current_interp_set_logging): Declare.
3486 * interps.c (current_interp_set_logging): New function.
3487 * cli/cli-logging.c: Include interps.h.
3488 (set_logging_redirect): Call current_interp_set_logging.
3489 (pop_output_files): Ditto.
3490 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3491 * mi/mi-console.h (mi_console_set_raw): Declare.
3492 * mi/mi-console.c (mi_console_set_raw): New function.
3493 * mi/mi-interp.c (saved_raw_stdout): New global.
3494 (mi_set_logging): New function.
3495 (_initialize_mi_interp): Add it to interp procs.
3497 2012-06-28 Doug Evans <dje@google.com>
3499 * symtab.c (lookup_symbol_aux_objfile): Use
3500 ALL_OBJFILE_PRIMARY_SYMTABS.
3502 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3504 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3506 * common/buffer.c: Include inttypes.h and stdint.h.
3507 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3509 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3510 Pedro Alves <palves@redhat.com>
3512 * gdbthread.h (ALL_THREADS): New macro.
3513 (thread_list): Declare.
3514 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3515 going, but instead fall through to the stepping handling.
3516 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3517 the passed in signal. Adjust debug output.
3518 (resume_callback): Rename to ...
3519 (linux_nat_resume_callback): ... this. Pass the thread's last
3520 stop signal, if in "pass" state.
3521 (linux_nat_resume): Adjust to rename.
3522 (stop_wait_callback): New assertion. Don't respawn signals;
3523 instead let the LWP remain with SIGNALLED set.
3524 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3525 * remote.c (append_pending_thread_resumptions): New.
3526 (remote_vcont_resume): Call it.
3527 * target.h (target_resume): Extend comment.
3529 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3531 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3533 2012-06-27 Doug Evans <dje@google.com>
3535 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3536 Delete have_addr_base, unused. All uses updated.
3537 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3538 (dwarf2_get_pc_bounds): Add ranges_base.
3539 (dwarf2_record_block_ranges): Ditto.
3541 2012-06-27 Tom Tromey <tromey@redhat.com>
3544 * varobj.c (varobj_create): Update.
3545 (varobj_set_value): Update.
3546 * tracepoint.c (validate_actionline): Update.
3547 (encode_actions_1): Update.
3548 * parse.c (parse_exp_1): Add 'pc' argument.
3549 (parse_exp_in_context): Add 'pc' argument. Change how
3550 expression_context_pc is set.
3551 (parse_expression): Update.
3552 (parse_field_expression): Update.
3553 * expression.h (parse_exp_1): Update.
3554 * eval.c (parse_to_comma_and_eval): Update.
3555 * breakpoint.c (set_breakpoint_condition): Update.
3556 (update_watchpoint): Update.
3557 (init_breakpoint_sal): Update
3558 (find_condition_and_thread): Update.
3559 (watch_command_1): Update.
3560 (update_breakpoint_locations): Update.
3561 * ada-lang.c (ada_read_renaming_var_value): Update.
3562 (create_excep_cond_exprs): Update.
3564 2012-06-27 Doug Evans <dje@google.com>
3566 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3569 2012-06-26 Doug Evans <dje@google.com>
3571 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3573 (error_check_comp_unit_head): New arg abbrev_section. All callers
3575 (read_and_check_comp_unit_head): Ditto.
3576 (read_and_check_type_unit_head): Ditto.
3578 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3580 New attribute 'last' for gdb.Symtab_and_line.
3581 * NEWS (Python Scripting): Add entry about the new attribute.
3582 * python/py-symtab.c (salpy_get_last): New function which
3583 implements the get method for the 'last' attribute of
3584 gdb.Symtab_and_line.
3585 (sal_object_getset): Add entry for the 'last' attribute.
3587 2012-06-26 Doug Evans <dje@google.com>
3589 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3590 (dwo_sections): Add macinfo, macro.
3591 (dwarf2_locate_dwo_sections): Watch for macro sections.
3592 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3593 All callers updated. Handle DWO files.
3595 * NEWS: Mention new options "set debug dwarf2-read" and
3596 "set debug symtab-create".
3597 * dwarf2read.c (dwarf2_read_debug): New static global.
3598 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3599 (process_queue): Ditto.
3600 (process_full_comp_unit): Ditto.
3601 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3602 * elfread.c (elf_symfile_read): Add debugging printf.
3603 * minsyms.c (install_minimal_symbols): Ditto.
3604 * psymtab.c (allocate_psymtab): Ditto.
3605 * symfile.c (allocate_symtab): Ditto.
3606 * symtab.c (symtab_create_debug): New global.
3607 (_initialize_symtab): Add new option "set debug symtab-create".
3608 * symtab.h (symtab_create_debug): Declare.
3610 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3611 (lookup_dwo_type_unit): Ditto.
3613 2012-06-26 Roland McGrath <roland@hack.frob.com>
3614 H.J. Lu <hongjiu.lu@intel.com>
3616 * amd64-linux-nat.c: Include <sys/user.h>.
3617 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3618 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3619 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3621 * configure.ac: Check if the fs_base and gs_base members of
3622 `struct user_regs_struct' exist.
3623 * config.in: Regenerated.
3624 * configure: Likewise.
3626 2012-06-25 Michael Eager <eager@eagercon.com>
3629 * python/python.c (gdbpy_write): Check for interrupted output.
3631 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3633 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3634 register as a stack alignment in ARM mode.
3636 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3638 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3639 * gnulib/config.in: Regenerate.
3640 * gnulib/configure: Likewise.
3641 * gnulib/import/m4/extensions.m4: Update it.
3642 * gnulib/import/m4/gnulib-common.m4: Likewise.
3643 * gnulib/import/m4/memmem.m4: Likewise.
3644 * gnulib/import/m4/mmap-anon.m4: Likewise.
3645 * gnulib/import/m4/multiarch.m4: Likewise.
3646 * gnulib/import/stdint.in.h: Likewise.
3648 2012-06-24 Yao Qi <yao@codesourcery.com>
3650 * corefile.c (write_memory_with_notification): New.
3651 * gdbcore.h: Declare write_memory_with_notification.
3652 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3653 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3654 * valops.c (value_assign): Likewise.
3655 * python/py-inferior.c (infpy_write_memory): Call
3656 'write_memory_with_notification'.
3658 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3660 * cc-with-index.sh: Use also -ex "set auto-load no".
3662 2012-06-23 Doug Evans <dje@google.com>
3665 * NEWS: Document additions to .gdb_index.
3666 * dwarf2read.c: #include "gdb/gdb-index.h".
3667 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3668 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3669 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3670 (dwarf2_read_index): Recognize version 7.
3671 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3672 block_kind, domain): All callers updated.
3673 (dw2_find_symbol_file): Handle new index CU values.
3674 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3675 (add_index_entry): New args is_static, kind. All callers updated.
3676 (offset_type_compare, uniquify_cu_indices): New functions
3677 (symbol_kind): New function.
3678 (write_psymtabs_to_index): Remove duplicate CU values.
3679 (write_psymtabs_to_index): Write .gdb_index version 7.
3681 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3683 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3684 * configure: Regenerate.
3686 2012-06-20 Yao Qi <yao@codesourcery.com>
3688 * python/py-inferior.c: Update comments of infpy_read_memory
3689 and infpy_write_memory.
3691 2012-06-19 Tom Tromey <tromey@redhat.com>
3694 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3695 (push_type_address_space): Remove.
3696 * parse.c (insert_into_type_stack): New function.
3697 (insert_type): Likewise.
3698 (insert_type_address_space): Rename from push_type_address_space.
3699 Insert tp_space_identifier.
3700 * c-exp.y (ptr_operator): New production.
3701 (abs_decl): Use ptr_operator.
3702 (space_identifier): Call insert_type_address_space.
3703 (ptype): Don't use const_or_volatile_or_space_identifier.
3704 (const_or_volatile_noopt): Call insert_type.
3705 (conversion_type_id, conversion_declarator): New productions.
3706 (operator): Use conversion_type_id.
3708 2012-06-18 Doug Evans <dje@google.com>
3710 * symtab.h (minimal_symbol): New member created_by_gdb.
3711 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3713 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3714 (search_symbols): Call it instead of lookup_symbol.
3715 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3717 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3718 Adjust address for DW_OP_GNU_addr_index.
3719 * dwarf2expr.h (dwarf_expr_context): Update comment.
3720 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3721 all callers updated. Handle TLS vars described with
3722 DW_OP_GNU_const_index.
3723 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3724 and DW_OP_GNU_const_index.
3725 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3727 * block.c (find_block_in_blockvector): Make explicit the fact that we
3728 ignore GLOBAL_BLOCK.
3730 2012-06-18 Tom Tromey <tromey@redhat.com>
3732 * c-exp.y (operator): Remove trailing space after "delete" and
3735 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3736 Jan Kratochvil <jan.kratochvil@redhat.com>
3738 Switch i386 and derived targets to ON_STACK.
3739 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3740 (amd64_dicos_init_abi): Remove its installment.
3741 * dicos-tdep.c (dicos_init_abi): Remove the
3742 set_gdbarch_call_dummy_location call. Update the comment here.
3743 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3744 (i386_dicos_init_abi): Remove its installment.
3745 * i386-tdep.c (i386_push_dummy_code): New function.
3746 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3747 i386_push_dummy_code.
3749 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3751 Remove stale dummy frames.
3752 * breakpoint.c: Include dummy-frame.h.
3753 (longjmp_breakpoint_ops): New variable.
3754 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3755 bp_longjmp_call_dummy.
3756 (bpstat_what, bptype_string, print_one_breakpoint_location)
3757 (init_bp_location): Support bp_longjmp_call_dummy.
3758 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3759 (set_longjmp_breakpoint_for_call_dummy)
3760 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3762 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3763 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3764 FIXME comment and extend the other comment for bp_call_dummy.
3765 (set_longjmp_breakpoint_for_call_dummy)
3766 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3767 * dummy-frame.c: Include gdbthread.h.
3768 (pop_dummy_frame_bpt): New function.
3769 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3770 (dummy_frame_discard): New function.
3771 (cleanup_dummy_frames): Update the comment about longjmps.
3772 * dummy-frame.h (dummy_frame_discard): New declaration.
3773 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3774 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3775 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3776 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3777 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3778 keep_going if IS_LONGJMP and there is no other reason to stop.
3780 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3782 * remote-sim.c (sim_command_completer): Initialize
3785 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3788 * dwarf2loc.c (call_site_parameter_matches): Support
3789 CALL_SITE_PARAMETER_PARAM_OFFSET.
3790 (needs_dwarf_reg_entry_value): Push stub value.
3791 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3792 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3793 * gdbtypes.h (enum call_site_parameter_kind): New item
3794 CALL_SITE_PARAMETER_PARAM_OFFSET.
3795 (struct call_site.parameter.u): New field param_offset.
3797 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3799 Code cleanup: Generalize call_site.parameter key.
3800 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3801 variable dwarf_reg. New variable kind_u. Update parameters to
3802 push_dwarf_reg_entry_value.
3803 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3804 * dwarf2expr.h (enum call_site_parameter_kind)
3805 (union call_site_parameter_u): Forward declarations.
3806 (struct dwarf_expr_context_funcs): Update parameters and their
3807 description for push_dwarf_reg_entry_value.
3808 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3809 * dwarf2loc.c (call_site_parameter_matches): New function.
3810 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3811 description. Use call_site_parameter_matches.
3812 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3813 Update parameters and their description.
3814 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3815 New variable kind_u. Adjust the caller for updated parameters.
3816 (needs_dwarf_reg_entry_value): Update parameters.
3817 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3818 instead of attr. Update for the changed fields of struct
3819 call_site_parameter.
3820 * gdbtypes.h: Include dwarf2expr.h.
3821 (enum call_site_parameter_kind): New.
3822 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3823 fb_offset into new union u.
3825 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3827 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3828 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3831 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3833 * amd64-linux-nat.c (compat_x32_clock_t): New.
3834 (compat_x32_siginfo_t): Likewise.
3835 (compat_x32_siginfo_from_siginfo): Likewise.
3836 (siginfo_from_compat_x32_siginfo): Likewise.
3837 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3838 and siginfo_from_compat_x32_siginfo for x32.
3840 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3842 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3844 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3846 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3847 instead of gdbarch_ptr_bit.
3848 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3849 (amd64_supply_native_gregset): Likewise.
3850 (amd64_collect_native_gregset): Likewise.
3851 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3852 (amd64_supply_xsave): Likewise.
3853 (amd64_collect_fxsave): Likewise.
3854 (amd64_collect_xsave): Likewise.
3856 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3858 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3859 (amd64_linux_read_description): Check DS segment register for
3862 2012-06-15 Tom Tromey <tromey@redhat.com>
3864 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3865 init_cutu_and_read_dies.
3867 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3869 * MAINTAINERS (Write After Approval): Add myself to the list.
3871 2012-06-15 Tom Tromey <tromey@redhat.com>
3873 * valops.c (value_find_oload_method_list): Now static.
3874 * value.h (value_find_oload_method_list): Don't declare.
3876 2012-06-15 Tom Tromey <tromey@redhat.com>
3878 * valops.c (find_overload_match): Use value_ind.
3880 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3882 * infrun.c (handle_inferior_event): Correct indentation.
3884 2012-06-14 Doug Evans <dje@google.com>
3886 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3887 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3889 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3890 updated. Handle DEBUG_LOC_START_LENGTH.
3891 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3892 (loclist_describe_location): Ditto.
3894 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3897 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3898 after hiding inline functions.
3900 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3902 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3903 _initialize_inf_ttrace.
3905 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3907 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3908 _initialize_hppa_hpux_nat.
3910 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3912 * remote-sim.c (sim_command_completer): Change type of return
3913 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3915 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3916 Jan Kratochvil <jan.kratochvil@redhat.com>
3919 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3920 stack on a 16-byte boundary.
3922 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3924 * jit.c (finalize_symtab): Set function's return type to 'void' by
3927 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3928 H.J. Lu <hongjiu.lu@intel.com>
3930 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3931 Move bits common to both the classic LP64 and the new x32 ILP32
3933 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3934 (amd64_x32_linux_init_abi): New function.
3935 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3938 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3939 * i386-tdep.c (i386_pseudo_register_name): Make public.
3940 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3941 * amd64-tdep.c (amd64_dword_names): Add "eip".
3942 (amd64_x32_pseudo_register_type): New function
3943 (amd64_x32_init_abi): New function.
3945 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3948 * inferior.h (struct inferior_suspend_state): Comment out.
3949 (struct inferior): Comment out the field suspend.
3950 * infrun.c (struct infcall_suspend_state): Comment out the field
3952 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3955 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3958 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3959 function comment. Return ERROR for unresolved cases. Implement
3960 returning proper NAME.
3961 (yylex): Accept also NAME from classify_inner_name.
3962 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3963 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3965 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3967 2012-06-13 Tom Tromey <tromey@redhat.com>
3969 * breakpoint.c (condition_completer): New function.
3970 (_initialize_breakpoint): Use it.
3971 * value.c (complete_internalvar): New function.
3972 * value.h (complete_internalvar): Declare.
3974 2012-06-13 Tom Tromey <tromey@redhat.com>
3976 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3977 * breakpoint.c (catch_syscall_completer): Return a VEC.
3978 * cli/cli-cmds.c (complete_command): Update.
3979 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3980 (complete_on_enum): Likewise.
3981 * command.h: Include gdb_vecs.h.
3982 (completer_ftype): Change return type.
3983 (complete_on_cmdlist, complete_on_enum): Likewise.
3984 * completer.c (noop_completer, filename_completer)
3985 (location_completer): Return a VEC.
3986 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3988 (expression_completer, complete_line_internal, complete_line)
3989 (command_completer): Return a VEC.
3990 (gdb_completion_word_break_characters, line_completion_function):
3992 * completer.h: Include gdb_vecs.h.
3993 (complete_line, noop_completer, filename_completer)
3994 (expression_completer, location_completer, command_completer):
3996 * f-lang.c (f_word_break_characters): Return a VEC.
3997 * interps.c (interpreter_completer): Return a VEC.
3998 * language.h (struct language_defn)
3999 <la_make_symbol_completion_list>: Return a VEC.
4000 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4001 * symtab.c (free_completion_list): Take a VEC.
4002 (return_val_size, return_val_index): Remove.
4003 (return_val): Now a VEC.
4004 (completion_list_add_name): Update.
4005 (default_make_symbol_completion_list_break_on)
4006 (default_make_symbol_completion_list, make_symbol_completion_list)
4007 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4009 (add_filename_to_list): Update.
4010 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4012 (maybe_add_partial_symtab_filename): Update.
4013 (make_source_files_completion_list): Return a VEC.
4014 * symtab.h (default_make_symbol_completion_list_break_on)
4015 (default_make_symbol_completion_list, make_symbol_completion_list)
4016 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4017 (make_source_files_completion_list): Update.
4019 2012-06-13 Tom Tromey <tromey@redhat.com>
4021 * breakpoint.c (add_catch_command): Use completer_ftype.
4022 * breakpoint.h: Include command.h.
4023 (add_catch_command): Use completer_ftype.
4024 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4025 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4026 Use completer_ftype.
4027 * command.h (completer_ftype): New typedef.
4028 (set_cmd_completer): Use it.
4029 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4032 2012-06-13 Pedro Alves <palves@redhat.com>
4034 Partial revert of previous change.
4036 * serial.c (scb_base): New global.
4037 (serial_for_fd): New.
4038 (serial_open, serial_fdopen_ops): Link new serial in open serials
4040 (do_serial_close): Unlink serial from the open serials chain.
4042 2012-06-12 Pedro Alves <palves@redhat.com>
4044 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4046 (prepare_for_detach): No longer context switch here in non-stop
4048 (fetch_inferior_event): Ditto.
4049 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4050 to the event thread before removing breakpoints. Switch to the
4051 event thread before inserting breakpoints and resuming.
4052 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4053 event thread before resuming.
4054 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4055 Switch to the event thread before removing breakpoints.
4057 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4059 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4060 special characters correctly for the Windows shells. See
4061 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4063 [!__MINGW32__]: Remove extra double quote character from special
4066 2012-06-11 Stan Shebs <stan@codesourcery.com>
4068 * ui-out.h: Remove #if 0 declarations.
4069 * ui-out.c: Remove #if 0 functions.
4071 2012-06-11 Pedro Alves <palves@redhat.com>
4073 * ser-base.c (run_async_handler_and_reschedule): New.
4074 (fd_event, push_event): Use it.
4075 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4076 reference count to 1.
4077 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4079 (serial_is_open, serial_ref, serial_unref): New.
4080 * serial.h (serial_open): Adjust comment.
4081 (serial_is_open): Declare.
4082 (serial_close): Adjust comment.
4083 (serial_ref, serial_unref) Declare.
4084 (struct serial): New field 'refcnt'.
4086 2012-06-11 Pedro Alves <palves@redhat.com>
4088 Remove #if 0'd "connect" command, and unnecessary associated
4089 refcounting and serial reuse bits.
4091 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4092 * serial.c (last_serial_opened): Delete.
4094 (serial_open): Adjust.
4095 (serial_for_fd): Delete.
4096 (serial_fdopen_ops, do_serial_close): Adjust.
4097 (serial_fdopen_ops): Adjust.
4099 2012-06-11 Pedro Alves <palves@redhat.com>
4101 * serial.c (do_serial_close): Remove early return when SCB is
4104 2012-06-11 Tom Tromey <tromey@redhat.com>
4106 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4108 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4110 Fix regression by the "ambiguous linespec" series.
4111 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4112 get_last_displayed_symtab and get_last_displayed_line and depending
4115 2012-06-11 Tom Tromey <tromey@redhat.com>
4117 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4118 (dw2_find_symbol_file): Use it.
4120 2012-06-11 Michael Eager <eager@eagercon.com>
4122 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4123 * mips-linux-tdep.h (mips_signals): New
4125 2012-06-11 Tom Tromey <tromey@redhat.com>
4127 * infrun.c (handle_inferior_event)
4128 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4130 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4131 exception logic in all cases. Update comments.
4132 (insert_longjmp_resume_breakpoint): Set the exception resume
4135 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4137 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4139 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4141 * valarith.c (binop_types_user_defined_p): Fix a typo.
4143 2012-06-08 Yao Qi <yao@codesourcery.com>
4144 Chung-Lin Tang <cltang@codesourcery.com>
4146 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4147 * arch-utils.h: Declare.
4148 * gdbarch.sh: Add return_in_first_hidden_param_p.
4149 * gdbarch.c, gdbarch.h: Regenerated.
4150 * infcall.c (call_function_by_hand): Call
4151 gdbarch_return_in_first_hidden_param_p instead of
4152 language_pass_by_reference.
4154 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4155 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4156 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4157 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4158 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4159 `cplus_return_struct_by_reference'.
4160 (tic6x_return_value): Handle language cplusplus.
4161 (tic6x_return_in_first_hidden_param_p): New.
4162 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4164 2012-06-07 Doug Evans <dje@google.com>
4166 * dwarf2read.c (dwarf2_cu): Add comment.
4168 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4170 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4172 (mips_eabi_push_dummy_call): Likewise.
4173 (mips_n32n64_push_dummy_call): Likewise.
4174 (mips_o32_push_dummy_call): Likewise.
4175 (mips_o64_push_dummy_call): Likewise.
4177 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4179 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4181 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4183 * mips-tdep.c (mips_pseudo_register_type): Use
4184 mips_float_register_p.
4186 2012-06-06 Pedro Alves <palves@redhat.com>
4188 * infrun.c (handle_inferior_event): Remove calls to
4189 reinit_frame_cache that follow a context_switch call.
4191 2012-06-06 Pedro Alves <palves@redhat.com>
4193 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4194 context_switch and remove stale comment.
4196 2012-06-06 Pedro Alves <palves@redhat.com>
4198 * infrun.c (struct execution_control_state): Remove
4199 `new_thread_event' field.
4200 (handle_inferior_event): Simplify new threads handling; don't
4201 resume the inferior if we find a new thread.
4203 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4205 * NEWS: Document the deprecation of SH's 'regs' command.
4206 * inferior.h (all_registers_info): Add function declaration.
4207 * sh-tdep.c (sh_show_regs): Remove variable.
4208 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4209 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4210 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4211 (sh_show_regs_command): Remove functions.
4212 (sh_gdbarch_init): Don't set sh_show_regs.
4213 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4214 'info all-registers'.
4215 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4216 (sh64_show_regs): Remove functions.
4217 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4219 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4221 * configure.ac: Move development=true below AC_INIT.
4222 * configure: Regenerate.
4224 2012-06-05 Stan Shebs <stan@codesourcery.com>
4226 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4229 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4231 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4232 argument as ssize_t.
4233 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4234 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4235 * target.c (target_read_stack, target_write_memory)
4236 (target_write_raw_memory): Likewise.
4237 * target.h (target_read_stack, target_write_memory)
4238 (target_write_raw_memory): Likewise.
4240 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4242 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4243 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4244 * target.c (target_read_memory): Change LEN to ssize_t.
4245 * target.h (target_read_memory): Change LEN to ssize_t.
4247 2012-06-05 Pedro Alves <palves@redhat.com>
4251 * breakpoint.c (until_break_command): Only fetch the selected
4252 frame after decode_line_1.
4254 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4256 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4257 event breakpoint at _start, __start or main if a program
4258 interpreter is not found.
4260 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4262 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4264 * windows-tdep.c: #include "objfiles.h".
4265 (windows_iterate_over_objfiles_in_search_order): New function.
4266 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4267 iterate_over_objfiles_in_search_order gdbarch method to
4268 windows_iterate_over_objfiles_in_search_order.
4269 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4271 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4273 * gdbarch.sh: Add generation of
4274 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4275 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4276 (iterate_over_objfiles_in_search_order): New gdbarch method.
4277 * gdbarch.h, gdbarch.c: Regenerate.
4278 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4280 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4282 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4283 out of lookup_symbol_aux_symtabs.
4284 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4285 call to lookup_symbol_aux_objfile.
4286 (struct global_sym_lookup_data): New type.
4287 (lookup_symbol_global_iterator_cb): New function.
4288 (lookup_symbol_global): Search for symbol using
4289 gdbarch_iterate_over_objfiles_in_search_order and
4290 lookup_symbol_global_iterator_cb.
4291 * findvar.c (struct minsym_lookup_data): New type.
4292 (minsym_lookup_iterator_cb): New function.
4293 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4294 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4295 and minsym_lookup_iterator_cb.
4297 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4299 Revert the following patch:
4300 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4301 try locating the symbol in the symbol's own objfile first, before
4302 extending the search to all objfiles.
4303 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4304 out of lookup_symbol_aux_symtabs.
4305 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4306 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4307 Do not search EXCLUDE_OBJFILE.
4308 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4309 (lookup_symbol_global): Search for matches in the block's objfile
4310 first, before searching all other objfiles.
4312 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4314 * breakpoint.c (find_condition_and_thread): Stop parsing
4315 as soon as the first invalid keyword is found.
4317 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4319 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4321 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4323 * config/djgpp/djcheck.sh: Add copyright header.
4325 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4327 * copyright.py (update_files, main): Fix path to update-copyright
4330 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4332 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4333 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4334 for which a reminder to update by hand is printed.
4336 2012-06-04 Doug Evans <dje@google.com>
4338 * buildsym.c (make_blockvector): Add comment.
4340 2012-06-04 Pedro Alves <palves@redhat.com>
4342 * arch-utils.c (default_gdb_signal_from_target): Delete.
4343 * arch-utils.h (default_gdb_signal_from_target): Delete.
4344 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4345 gdbarch_gdb_signal_from_target_p.
4346 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4348 * gdbarch.h: Regenerate.
4349 * gdbarch.c: Regenerate.
4351 2012-06-04 Pedro Alves <palves@redhat.com>
4353 * gdbarch.sh (gdb_signal_from_target): Mention that the
4354 implementation of the method must be host independent.
4355 * gdbarch.h: Regenerate.
4357 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4361 (target_read_memory_bfd): New function.
4362 (symbol_file_add_from_memory): Use it.
4364 2012-06-03 Doug Evans <dje@google.com>
4366 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4368 (basic_lookup_transparent_type): Ditto.
4370 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4371 (ALL_PRIMARY_SYMTABS): Use it.
4372 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4373 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4374 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4375 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4376 (basic_lookup_transparent_type): Ditto.
4378 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4380 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4381 it to optimize resolution of demangled name.
4383 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 * configure.ac (development): Define new variable.
4386 Call AC_CHECK_LIB for mcheck if $development.
4387 (ERROR_ON_WARNING): Enable it by default only if $development.
4388 * config.in: Regenerate.
4389 * configure: Regenerate.
4391 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4393 * target.c (target_read_memory): Make LEN argument as size_t.
4394 * target.h (target_read_memory): Likewise.
4396 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4398 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4400 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4402 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4403 BookE interface for PowerPC server processors if not available
4404 in the Linux Kernel.
4406 2012-05-31 Keith Seitz <keiths@redhat.com>
4408 * linespec.c (decode_objc): Add cleanup to free
4410 (find_linespec_symbols): Add cleanup to free CLASSES.
4411 * symfile.c (find_separate_debug_file_by_debuglink): Add
4412 cleanup to free DEBUGLINK.
4413 * ui-out.c (clear_header_list): No need to check if
4414 HEADER_NEXT.COLHDR is NULL.
4415 Free HEADER_NEXT.COL_NAME.
4417 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4419 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4422 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4424 * configure.host (gdb_host_cpu): Handle tilegx*.
4425 (gdb_host): Handle tilegx-*-linux*.
4426 * tilegx-linux-nat.c: New file.
4427 * config/tilegx/linux.mh: New file.
4429 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4431 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4432 tilegx-linux-tdep.o.
4433 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4434 tilegx-linux-tdep.c.
4435 * configure.tgt: Handle tilegx-*-linux*.
4436 * tilegx-tdep.h: New file.
4437 * tilegx-tdep.c: New file.
4438 * tilegx-linux-tdep.c: New file.
4439 * regformats/reg-tilegx.dat: New file.
4441 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4443 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4444 accounting of hw watchpoints on ppc.
4446 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4448 * source.c (openp): Expand tilde in path entries.
4450 2012-05-29 Doug Evans <dje@google.com>
4452 * buildsym.c (block_compar): Fix comment.
4453 (end_symtab): Fix and clarify some comments.
4455 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4456 cleanup_undefined_types.
4457 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4458 All callers updated.
4460 2012-05-29 Tom Tromey <tromey@redhat.com>
4462 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4464 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4465 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4467 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4470 2012-05-29 Tristan Gingold <gingold@adacore.com>
4472 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4473 (struct darwin_info): ... New struct.
4474 (solib_darwin_pspace_data): New variable.
4475 (darwin_pspace_data_cleanup): New function.
4476 (get_darwin_info): Likewise.
4477 (darwin_dyld_version_ok, darwin_load_image_infos)
4478 (darwin_solib_get_all_image_info_addr_at_init)
4479 (darwin_solib_read_all_image_info_addr): Add info argument.
4481 (darwin_current_sos): Use per pspace structure.
4482 (darwin_solib_create_inferior_hook): Likewise.
4483 (darwin_clear_solib): Likewise.
4484 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4486 2012-05-28 Pedro Alves <palves@redhat.com>
4488 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4489 block that uses them. Clear ecss before handling each event.
4491 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4493 * solib-svr4.c (svr4_current_sos): New comment on
4494 svr4_current_sos_via_xfer_libraries fall back.
4496 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4498 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4499 it as a fallback for TYPE_IS_OPAQUE.
4500 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4501 symbols for lookup_symbol.
4503 2012-05-24 John Steele Scott <toojays@toojays.net>
4505 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4506 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4507 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4508 (check_producer): ... this new function, which also checks for ICC
4509 and caches the result.
4510 (producer_is_icc): New function.
4511 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4514 2012-05-24 Pedro Alves <palves@redhat.com>
4518 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4519 (default_gdb_signal_to_target): ... this. Add comment.
4520 (default_gdb_signal_from_host): Rename to ...
4521 (default_gdb_signal_from_target): ... this. Add comment.
4522 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4523 (default_gdb_signal_to_target): ... this.
4524 (default_gdb_signal_from_host): Rename to ...
4525 (default_gdb_signal_from_target): ... this.
4526 * corelow.c (core_open): Adjust to naming change. Replace comment.
4527 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4528 (gdb_signal_from_target): ... this. Adjust to
4529 default_gdb_signal_from_host naming change. Extend comment.
4530 (gdb_signal_to_host): Rename to ...
4531 (gdb_signal_to_target): ... this. Adjust to
4532 default_gdb_signal_to_host naming change.
4533 * gdbarch.h, gdbarch.c: Renegerate.
4535 2012-05-24 Pedro Alves <palves@redhat.com>
4539 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4541 2012-05-24 Pedro Alves <palves@redhat.com>
4545 Replace target_signal with gdb_signal throughout.
4547 2012-05-24 Pedro Alves <palves@redhat.com>
4551 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4552 string, instead of reusing the va_list argument.
4554 2012-05-24 Tom Tromey <tromey@redhat.com>
4556 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4559 2012-05-23 Doug Evans <dje@google.com>
4561 * symtab.c (search_symbols): Formatting fixes.
4562 (print_symbol_info): Formatting fixes.
4564 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4565 int64_t change to leb128 API.
4566 (read_encoded_value, decode_frame_entry_1): Ditto.
4567 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4568 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4569 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4570 (execute_stack_op): Ditto.
4571 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4572 (safe_read_uleb128, safe_read_sleb128): Ditto.
4573 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4574 (dwarf2_compile_expr_to_ax): Ditto.
4575 (locexpr_describe_location_piece): Ditto.
4576 (disassemble_dwarf_expression): Ditto.
4577 (locexpr_describe_location_1): Ditto.
4579 2012-05-23 Stan Shebs <stan@codesourcery.com>
4580 Kwok Cheung Yeung <kcy@codesourcery.com>
4582 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4583 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4584 (mi-cmd-info.o): New rule.
4585 * osdata.h (info_osdata_command): New declaration.
4586 * osdata.c (info_osdata_command): Change to non-static.
4587 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4588 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4589 * mi/mi-cmd-info.c: New file.
4591 2012-05-23 Doug Evans <dje@google.com>
4593 * symtab.c (search_symbols): Pass NULL for file_matcher to
4594 expand_symtabs_matching if there are no files to match.
4596 * gdbtypes.c (lookup_typename): Simplify.
4598 2012-05-23 Pedro Alves <palves@redhat.com>
4600 * arch-utils.h (default_target_signal_to_host): Delete.
4601 * arch-utils.c (default_target_signal_to_host): Delete.
4602 * gdbarch.sh (target_signal_to_host): Remove.
4603 * gdbarch.h, gdbarch.c: Regenerate.
4605 2012-05-22 Doug Evans <dje@google.com>
4607 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4609 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4610 (execute_cfa_program): Update to match API of leb128 functions.
4611 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4613 (read_unsigned_leb128, read_signed_leb128): Delete.
4614 (read_initial_length): Change type of buf argument to
4616 (read_encoded_value): Update to match API of leb128 functions.
4617 (decode_frame_entry): Change result to "const gdb_byte *", and
4618 similarly for "start" parameter.
4619 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4620 (dwarf2_build_frame_info): Change local frame_ptr to
4622 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4623 read_uleb128, read_sleb128. All callers updated.
4624 (safe_skip_leb128): New function.
4625 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4626 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4627 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4628 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4629 read_uleb128, read_sleb128.
4630 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4631 (execute_stack_op): Update to match API of leb128 functions.
4632 * dwarf2expr.h: #include "leb128.h".
4633 (read_uleb128, read_sleb128): Delete.
4634 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4635 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4636 * dwarf2loc.c (debug_loc_kind): New enum.
4637 (decode_debug_loc_addresses): New function.
4638 (decode_debug_loc_dwo_addresses): New function.
4639 (dwarf2_find_location_expression): Rewrite.
4640 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4641 (locexpr_describe_location_piece): Ditto.
4642 (disassemble_dwarf_expression): Ditto.
4643 (locexpr_describe_location_1): Ditto.
4644 (loclist_describe_location): Rewrite.
4645 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4646 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4647 (dwarf2_section_buffer_overflow_complaint): Renamed from
4648 dwarf2_macros_too_long_complaint. All callers updated.
4649 (skip_leb128): Delete.
4650 (init_cu_die_reader): Initialize reader->buffer_end.
4651 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4652 (skip_form_bytes): New arg buffer_end. All callers updated.
4653 Replace call to skip_leb128 with gdb_skip_leb128.
4654 (skip_unknown_opcode): New arg mac_end. All callers updated.
4655 (fill_in_loclist_baton): Initialize baton->from_dwo.
4657 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4659 * mips-linux-nat.c (mips_linux_read_description): Use a more
4660 verbose error message.
4662 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4664 * NEWS: Add MIPS/Linux DSP support.
4665 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4666 (SIGCONTEXT_DSPCTL): New macro.
4667 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4668 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4669 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4670 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4671 (N64_SIGCONTEXT_HI3): Likewise.
4672 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4673 (N64_SIGCONTEXT_LO3): Likewise.
4674 (N64_SIGCONTEXT_DSPCTL): Likewise.
4675 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4676 (mips_linux_o32_sigframe_init): Handle DSP registers.
4677 (mips_linux_n32n64_sigframe_init): Likewise.
4679 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4681 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4684 2012-05-22 Pedro Alves <palves@redhat.com>
4686 * target.h (store_waitstatus): Move declaration ...
4687 * inf-child.h (store_waitstatus): ... here.
4688 * target.c: Move inclusion of gdb_wait.h, and ...
4689 (store_waitstatus): ... this ...
4690 * inf-child.c: ... here.
4691 * linux-nat.c: Include inf-child.h.
4692 * rs6000-nat.c: Include inf-child.h.
4693 * spu-linux-nat.c: Include inf-child.h.
4695 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4697 * tracepoint.c (start_tracing): Add missing i18n markup.
4698 (stop_tracing, set_trace_user): Ditto.
4699 (set_trace_notes, set_trace_stop_notes): Ditto.
4701 2012-05-21 Tom Tromey <tromey@redhat.com>
4704 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4706 * value.h (value_cast_pointers): Update.
4707 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4708 (value_cast): Update.
4709 (update_search_result): New function.
4710 (do_search_struct_field): New, from search_struct_field. Check
4711 for ambiguous results.
4712 (search_struct_field): Rewrite.
4713 * infcall.c (value_arg_coerce): Update.
4714 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4715 value_cast_pointers.
4716 * ada-lang.c (ada_convert_actual): Update.
4718 2012-05-21 Tom Tromey <tromey@redhat.com>
4720 * macroexp.c (macro_stringify): Terminate the string.
4722 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4726 * auto-load.c (auto_load_expand_dir_vars): New function.
4727 (auto_load_safe_path_vec_update): Use it, remove the
4728 substitute_path_component call thanks to it.
4729 (auto_load_objfile_script): Remove the debug_file_directory processing.
4730 Use auto_load_expand_dir_vars, remove the substitute_path_component
4732 * configure: Regenerate.
4733 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4734 path. Escape $ also for $debugdir.
4735 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4736 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4738 2012-05-20 Doug Evans <dje@google.com>
4740 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4741 before use. Check for symtab->includes == NULL before scanning it.
4743 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4745 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4747 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4749 * NEWS: Add microMIPS support and "set mips compression",
4750 "show mips compression" commands.
4751 * mips-tdep.h (mips_isa): New enum.
4752 (gdbarch_tdep): Add mips_isa.
4753 (mips_pc_is_mips16): Update prototype.
4754 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4755 * mips-tdep.c (mips_compression_mips16): New variable.
4756 (mips_compression_micromips): Likewise.
4757 (mips_compression_strings): Likewise.
4758 (mips_compression_string): Likewise.
4759 (is_mips16_isa, is_micromips_isa): New functions.
4760 (is_mips16_addr): Rename to...
4761 (is_compact_addr): ... this.
4762 (unmake_mips16_addr): Likewise to...
4763 (unmake_compact_addr): ... this.
4764 (make_mips16_addr): Likewise to...
4765 (make_compact_addr): ... this.
4766 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4768 (mips_elf_make_msymbol_special): Handle microMIPS code.
4769 (msymbol_is_special): Rename to...
4770 (msymbol_is_mips16): ... this.
4771 (mips_make_symbol_special, mips_pc_is_mips16): Update
4773 (msymbol_is_mips, msymbol_is_micromips): New functions.
4774 (mips16_to_32_reg): Rename to...
4775 (mips_reg3_to_reg): ... this.
4776 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4777 (mips_pc_isa): Likewise.
4778 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4780 (mips_fetch_instruction): Pass return status instead of printing
4781 an error message if requested. Handle microMIPS code. Bail out
4783 (micromips_op): New macro.
4784 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4785 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4786 (b6s4_op, b7s3_reg): Likewise.
4787 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4788 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4789 (mips_insn_size): New function.
4790 (mips32_next_pc): Update mips_fetch_instruction call.
4791 (micromips_relative_offset7): New function.
4792 (micromips_relative_offset10): Likewise.
4793 (micromips_relative_offset16): Likewise.
4794 (micromips_pc_insn_size): Likewise.
4795 (micromips_bc1_pc): Likewise.
4796 (micromips_next_pc): Likewise.
4797 (unpack_mips16): Update mips_fetch_instruction call.
4798 (extended_mips16_next_pc): Update according to change to
4800 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4802 (mips16_scan_prologue): Update mips_fetch_instruction call.
4803 Update according to change to mips16_to_32_reg.
4804 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4805 (mips_insn16_frame_base_sniffer): Likewise.
4806 (micromips_decode_imm9): New function.
4807 (micromips_scan_prologue): Likewise.
4808 (mips_micro_frame_cache): Likewise.
4809 (mips_micro_frame_this_id): Likewise.
4810 (mips_micro_frame_prev_register): Likewise.
4811 (mips_micro_frame_sniffer): Likewise.
4812 (mips_micro_frame_unwind): New variable.
4813 (mips_micro_frame_base_address): New function.
4814 (mips_micro_frame_base): New variable.
4815 (mips_micro_frame_base_sniffer): New function.
4816 (mips32_scan_prologue): Update mips_fetch_instruction call.
4817 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4818 rather than for MIPS16.
4819 (mips_insn32_frame_base_sniffer): Likewise.
4820 (mips_addr_bits_remove): Handle microMIPS code.
4821 (deal_with_atomic_sequence): Rename to...
4822 (mips_deal_with_atomic_sequence): ... this. Update the type
4823 of the variable used to hold an instruction. Remove the ISA bit
4824 check. Update mips_fetch_instruction call.
4825 (micromips_deal_with_atomic_sequence): New function.
4826 (deal_with_atomic_sequence): Likewise.
4827 (mips_about_to_return): Handle microMIPS code. Update
4828 mips_fetch_instruction call.
4829 (heuristic_proc_start): Check for the standard MIPS ISA rather
4830 than for MIPS16. Update mips_pc_is_mips16 and
4831 mips_fetch_instruction calls. Handle microMIPS code.
4832 (mips_push_dummy_code): Handle microMIPS code.
4833 (mips_eabi_push_dummy_call): Likewise.
4834 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4835 (mips_o64_push_dummy_call): Handle microMIPS code.
4836 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4837 (is_delayed): Remove function.
4838 (mips_single_step_through_delay): Replace the call to is_delayed
4839 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4840 Handle microMIPS code.
4841 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4843 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4845 (micromips_in_function_epilogue_p): New function.
4846 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4848 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4850 (gdb_print_insn_mips): Likewise.
4851 (mips_breakpoint_from_pc): Likewise.
4852 (mips_remote_breakpoint_from_pc): New function.
4853 (mips32_instruction_has_delay_slot): Simplify making use of the
4854 updated mips_fetch_instruction interface.
4855 (micromips_instruction_has_delay_slot): New function.
4856 (mips16_instruction_has_delay_slot): Simplify making use of the
4857 updated mips_fetch_instruction interface.
4858 (mips_adjust_breakpoint_address): Check for the standard MIPS
4859 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4860 calls. Handle microMIPS code.
4861 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4862 (mips_skip_trampoline_code): Handle microMIPS code.
4863 (global_mips_compression): New function.
4864 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4865 file flags. Register the microMIPS remote breakpoint handler
4866 and heuristic frame unwinder.
4867 (show_mips_compression): New function.
4868 (_initialize_mips_tdep): Add the "set mips compression" and
4869 "show mips compression" commands.
4871 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4876 * amd64-darwin-tdep.c:
4877 * arm-symbian-tdep.c:
4881 * bfin-linux-tdep.c:
4888 * dwarf2-frame-tailcall.c:
4917 * microblaze-tdep.c:
4918 * mips-linux-tdep.c:
4926 * python/py-finishbreakpoint.c:
4927 * python/py-inferior.c:
4928 * python/py-infthread.c:
4932 * remote-m32r-sdi.c:
4936 * rs6000-aix-tdep.c:
4962 * amd64-darwin-tdep.c:
4963 * arm-symbian-tdep.c:
4964 * arm-tdep.c: Delete unused variables.
4966 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4968 Rename $ddir to $datadir.
4969 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4970 * auto-load.c (auto_load_safe_path_vec_update)
4971 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4972 * configure: Regenerate.
4973 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4974 Likewise. Remove the 'use $ddir' help string.
4976 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4978 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4979 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4981 2012-05-18 Tom Tromey <tromey@redhat.com>
4984 * valprint.h (struct value_print_options) <symbol_print>: New
4986 * valprint.c (user_print_options): Add default for symbol_print.
4987 (show_symbol_print): New function.
4988 (generic_val_print): Respect symbol_print.
4989 (_initialize_valprint): Add "print symbol" setting.
4990 * f-valprint.c (f_val_print): Respect symbol_print.
4991 * c-valprint.c (c_val_print): Respect symbol_print.
4993 * printcmd.c (print_address_symbolic): Return int. Ignore some
4995 (print_address_demangle): Return int.
4996 * defs.h: (print_address_symbolic): Return int.
4997 * value.h (print_address_demangle): Return int.
4999 2012-05-18 Tom Tromey <tromey@redhat.com>
5001 * valprint.c (val_print_string): Don't print leading space.
5002 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5003 print space before string or vtbl.
5004 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5006 * jv-valprint.c (java_value_print): Print space before string.
5007 * go-valprint.c (print_go_string): Print space before string.
5008 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5009 space before string.
5010 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5011 space before string or vtbl.
5012 * auxv.c (fprint_target_auxv): Print space after address.
5014 2012-05-18 Tom Tromey <tromey@redhat.com>
5016 * printcmd.c (print_address_demangle): Remove special case for 0.
5018 2012-05-18 Tom Tromey <tromey@redhat.com>
5020 * printcmd.c (print_address_demangle): Add 'opts' argument.
5021 * p-valprint.c (pascal_val_print): Update.
5022 * jv-valprint.c (java_val_print): Update.
5024 * valprint.c (generic_val_print): Update.
5025 (print_function_pointer_address): Add 'options' argument. Remove
5026 'addressprint' argument. Update.
5027 * m2-valprint.c (print_unpacked_pointer): Update.
5028 * gnu-v3-abi.c (print_one_vtable): Update.
5029 (gnuv3_print_method_ptr): Update.
5030 * f-valprint.c (f_val_print): Update.
5031 * cp-valprint.c (cp_print_value_fields): Update.
5032 * valprint.h (print_function_pointer_address): Update.
5033 * c-valprint.c (c_val_print): Update.
5035 2012-05-18 Tom Tromey <tromey@redhat.com>
5037 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5038 directly corresponding to the found psymtab.
5039 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5040 (dw2_find_pc_sect_symtab): Use it.
5041 * block.h (blockvector_contains_pc): Declare.
5042 * block.c (find_block_in_blockvector): New function.
5043 (blockvector_for_pc_sect): Use it.
5044 (blockvector_contains_pc): New function.
5046 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5048 * mips-tdep.h (mips_write_pc): New prototype.
5049 * mips-tdep.c (mips_write_pc): Make external, add description.
5050 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5053 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5055 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5057 (mips_unwind_pc, mips_write_pc): Likewise.
5058 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5061 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5063 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5064 proc_warn, proc_error, proc_get_status, proc_flags,
5065 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5066 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5067 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5068 proc_stop_process, proc_wait_for_stop, proc_run_process,
5069 proc_set_traced_signals, proc_set_traced_faults,
5070 proc_set_traced_sysentry, proc_set_traced_sysexit,
5071 proc_set_held_signals, proc_get_held_signals,
5072 proc_get_traced_signals, proc_get_traced_faults,
5073 proc_get_traced_sysentry, proc_get_traced_sysexit,
5074 proc_clear_current_fault, proc_set_current_signal,
5075 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5076 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5077 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5078 proc_get_current_thread, proc_get_current_thread,
5079 proc_get_current_thread, proc_update_threads,
5080 proc_update_threads, proc_update_threads, proc_update_threads,
5081 proc_iterate_over_threads, procfs_find_new_threads,
5082 procfs_pid_to_str): Make static. Remove advance declaration.
5083 (proc_cursig): Make static. Conditionalized defintion on
5084 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5085 (proc_syscall, proc_set_kill_on_last_close,
5086 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5087 proc_get_pending_signals, proc_get_signal_actions,
5088 proc_trace_signal, proc_ignore_signal): Delete.
5090 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5092 * coffread.c (cs_section_address): Passing proper argument for
5093 `bfd_get_section_vma'.
5094 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5095 `bfd_get_section_flags'.
5096 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5097 `bfd_get_section_vma'.
5099 2012-05-16 Tom Tromey <tromey@redhat.com>
5102 * macrotab.h: (macro_define_special): Declare.
5103 (enum macro_special_kind): New.
5104 (struct macro_definition) <argc, replacement>: Update comments.
5105 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5106 (macro_define_object_internal): New function.
5107 (macro_define_object): Use it.
5108 (macro_define_special): New function.
5109 (fixup_definition): New function.
5110 (macro_lookup_definition, foreach_macro_in_scope)
5111 (foreach_macro): Use fixup_definition.
5112 * macroexp.h (macro_stringify): Declare.
5113 * macroexp.c (free_buffer_return_text): New function.
5114 (stringify): Constify "arg".
5115 (macro_stringify): New function.
5116 * dwarf2read.c (macro_start_file): Call macro_define_special.
5118 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5119 Maciej W. Rozycki <macro@mips.com>
5121 * breakpoint.h (bp_location): Add related_address member.
5122 * inferior.h (get_return_value): Take a pointer to struct value
5123 instead of struct type for the function requested.
5124 * value.h (using_struct_return): Likewise.
5125 * gdbarch.sh (return_value): Take a pointer to struct value
5126 instead of struct type for the function requested.
5127 * breakpoint.c (set_breakpoint_location_function): Initialize
5128 related_address for bp_gnu_ifunc_resolver breakpoints.
5129 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5130 requested function's address to gdbarch_return_value.
5131 * eval.c (evaluate_subexp_standard): Pass the requested
5132 function's address to using_struct_return.
5133 * infcall.c (call_function_by_hand): Pass the requested
5134 function's address to using_struct_return and
5135 gdbarch_return_value.
5136 * infcmd.c (get_return_value): Take a pointer to struct value
5137 instead of struct type for the function requested.
5138 (print_return_value): Update accordingly.
5139 (finish_command_continuation): Likewise.
5140 * stack.c (return_command): Pass the requested function's
5141 address to using_struct_return and gdbarch_return_value.
5142 * value.c (using_struct_return): Take a pointer to struct value
5143 instead of struct type for the function requested. Pass the
5144 requested function's address to gdbarch_return_value.
5145 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5146 New function_value member, replacing function_type.
5147 (bpfinishpy_dealloc): Update accordingly.
5148 (bpfinishpy_pre_stop_hook): Likewise.
5149 (bpfinishpy_init): Likewise. Record the requested function's
5151 * mips-tdep.c (mips_fval_reg): New enum.
5152 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5153 words put in GP registers.
5154 (mips_o64_push_dummy_call): Update a comment.
5155 (mips_o32_return_value): Take a pointer to struct value instead
5156 of struct type for the function requested and use it to check if
5157 using the MIPS16 calling convention. Return the designated
5158 general purpose registers for floating-point values returned in
5160 (mips_o64_return_value): Likewise.
5161 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5162 (ppc_sysv_abi_broken_return_value): Likewise.
5163 (ppc64_sysv_abi_return_value): Likewise.
5164 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5165 value instead of struct type for the function requested.
5166 * amd64-tdep.c (amd64_return_value): Likewise.
5167 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5168 * arm-tdep.c (arm_return_value): Likewise.
5169 * avr-tdep.c (avr_return_value): Likewise.
5170 * bfin-tdep.c (bfin_return_value): Likewise.
5171 * cris-tdep.c (cris_return_value): Likewise.
5172 * frv-tdep.c (frv_return_value): Likewise.
5173 * h8300-tdep.c (h8300_return_value): Likewise.
5174 (h8300h_return_value): Likewise.
5175 * hppa-tdep.c (hppa32_return_value): Likewise.
5176 (hppa64_return_value): Likewise.
5177 * i386-tdep.c (i386_return_value): Likewise.
5178 * ia64-tdep.c (ia64_return_value): Likewise.
5179 * iq2000-tdep.c (iq2000_return_value): Likewise.
5180 * lm32-tdep.c (lm32_return_value): Likewise.
5181 * m32c-tdep.c (m32c_return_value): Likewise.
5182 * m32r-tdep.c (m32r_return_value): Likewise.
5183 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5184 * m68k-tdep.c (m68k_return_value): Likewise.
5185 (m68k_svr4_return_value): Likewise.
5186 * m88k-tdep.c (m88k_return_value): Likewise.
5187 * mep-tdep.c (mep_return_value): Likewise.
5188 * microblaze-tdep.c (microblaze_return_value): Likewise.
5189 * mn10300-tdep.c (mn10300_return_value): Likewise.
5190 * moxie-tdep.c (moxie_return_value): Likewise.
5191 * mt-tdep.c (mt_return_value): Likewise.
5192 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5193 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5194 (ppc_sysv_abi_broken_return_value): Likewise.
5195 (ppc64_sysv_abi_return_value): Likewise.
5196 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5197 * rl78-tdep.c (rl78_return_value): Likewise.
5198 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5199 * rx-tdep.c (rx_return_value): Likewise.
5200 * s390-tdep.c (s390_return_value): Likewise.
5201 * score-tdep.c (score_return_value): Likewise.
5202 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5203 (sh_return_value_fpu): Likewise.
5204 * sh64-tdep.c (sh64_return_value): Likewise.
5205 * sparc-tdep.c (sparc32_return_value): Likewise.
5206 * sparc64-tdep.c (sparc64_return_value): Likewise.
5207 * spu-tdep.c (spu_return_value): Likewise.
5208 * tic6x-tdep.c (tic6x_return_value): Likewise.
5209 * v850-tdep.c (v850_return_value): Likewise.
5210 * vax-tdep.c (vax_return_value): Likewise.
5211 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5212 * xtensa-tdep.c (xtensa_return_value): Likewise.
5213 * gdbarch.c: Regenerate.
5214 * gdbarch.h: Regenerate.
5216 2012-05-15 Tom Tromey <tromey@redhat.com>
5218 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5220 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5222 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5223 of command in two error message.
5225 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5227 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5229 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5231 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5233 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5235 * NEWS (show auto-load scripts-directory): Add forgotten command.
5237 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5239 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5242 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5244 * amd64-tdep.c: Include features/i386/x32.c and
5245 features/i386/x32-avx.c.
5246 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5247 initialize_tdesc_x32_avx.
5249 2012-05-14 Stan Shebs <stan@codesourcery.com>
5252 * breakpoint.h (enum bptype): New type bp_dprintf.
5253 (struct breakpoint): New field extra_string.
5254 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5255 (create_breakpoint): Add extra_string arg.
5256 * breakpoint.c (dprintf_breakpoint_ops): New.
5257 (is_breakpoint): Add bp_dprintf.
5258 (bpstat_what): Add dprintf case.
5259 (bptype_string): Ditto.
5260 (print_one_breakpoint_location): Ditto.
5261 (init_bp_location): Ditto.
5262 (bkpt_print_mention): Ditto.
5263 (dprintf_style_enums): New array.
5264 (dprintf_style): New global.
5265 (dprintf_function): New global.
5266 (dprintf_channel): New global.
5267 (update_dprintf_command_list): New function.
5268 (update_dprintf_commands): New function.
5269 (init_breakpoint_sal): Add extra_string argument, handle it.
5270 (create_breakpoint_sal): Add extra_string argument.
5271 (create_breakpoints_sal): Add extra_string argument, update callers.
5272 (find_condition_and_thread): Add extra argument.
5273 (create_breakpoint): Add extra_string argument, record it.
5274 (dprintf_command): New function.
5275 (break_command_1): Add arg to create_breakpoint call.
5276 (handle_gnu_v3_exceptions): Ditto.
5277 (trace_command): Ditto.
5278 (ftrace_command): Ditto.
5279 (strace_command): Ditto.
5280 (bkpt_print_mention): Add dprintf case.
5281 (create_breakpoint_sal_default): Add extra_string argument.
5282 (_initialize_breakpoint): Add new commands.
5283 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5284 * python/py-breakpoint.c (bppy_init): Ditto.
5285 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5287 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5289 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5291 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5293 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5296 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5298 Add a new function gdb.find_pc_line to the Python API.
5299 * NEWS (Python Scripting): Add entry about the new function.
5300 * python/python.c (gdbpy_find_pc_line): New function which
5301 implements gdb.find_pc_line.
5302 (GdbMethods): Add entry for the new function.
5304 2012-05-12 Pedro Alves <palves@redhat.com>
5306 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5307 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5309 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5311 * inferior.c: Include completer.h
5312 (initialize_inferiors): Set completer of add-inferior to
5315 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5317 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5318 gdbarch_ptr_bit for x32 core dump.
5320 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5322 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5323 and features/i386/x32-avx-linux.c.
5325 2012-05-11 Stan Shebs <stan@codesourcery.com>
5326 Kwok Cheung Yeung <kcy@codesourcery.com>
5328 * NEWS: Describe new info os commands.
5329 * common/linux-osdata.c (PID_T, TIME_T): Define.
5330 (MAX_PID_T_STRLEN): New.
5331 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5333 (command_from_pid): Add comment. Change to use PID_T.
5334 (commandline_from_pid): Change to use PID_T.
5335 (user_from_pid): Add comment.
5336 (get_process_owner): Add comment. Change to use PID_T and
5338 (get_number_of_cpu_cores): Add comment.
5339 (get_cores_used_by_process): Add comment. Change to use PID_T and
5341 (linux_xfer_osdata_processes): Change to use PID_T and
5343 (compare_processes): New function.
5344 (linux_xfer_osdata_processgroups): New function.
5345 (linux_xfer_osdata_threads): Change to use PID_T.
5346 (linux_xfer_osdata_fds): New function.
5347 (format_socket_state, print_sockets): New functions.
5348 (union socket_addr): New union.
5349 (linux_xfer_osdata_isockets): New function.
5350 (time_from_time_t, group_from_gid): New functions.
5351 (linux_xfer_osdata_shm): New function.
5352 (linux_xfer_osdata_sem): New function.
5353 (linux_xfer_osdata_msg): New function.
5354 (linux_xfer_osdata_modules): New function.
5355 (osdata_table): Add new entries.
5356 * common/buffer.c (buffer_xml_printf): Add support for long and
5357 long long format specifiers.
5359 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5361 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5362 (tdesc_x32_avx_linux): Likewise.
5364 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5366 Implement multi-component --with-auto-load-dir.
5367 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5369 (--with-auto-load-safe-path): Update the default value description.
5370 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5372 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5373 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5374 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5375 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5376 "set auto-load scripts-directory".
5377 * config.in: Regenerate.
5378 * configure: Regenerate.
5379 * configure.ac (--with-auto-load-dir): New configure option.
5380 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5382 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5384 Provide $ddir substitution for --with-auto-load-safe-path.
5385 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5387 * auto-load.c: Include observer.h.
5388 (auto_load_safe_path_vec_update): Call substitute_path_component for
5389 each component. New variable ddir_subst.
5390 (auto_load_gdb_datadir_changed): New function.
5391 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5392 AUTO_LOAD_SAFE_PATH. New comment.
5393 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5394 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5395 * config.in: Regenerate.
5396 * configure: Regenerate.
5397 * configure.ac (--auto-load-safe-path): Rename
5398 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5399 GDB_DATADIR/auto-load.
5400 * defs.h (substitute_path_component): New declaration.
5401 * top.c: Include observer.h.
5402 (set_gdb_datadir): New function.
5403 (init_main): Install it for "set data-directory".
5404 * utils.c (substitute_path_component): New function.
5406 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5408 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5409 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5410 DEBUG_FILE_DIRECTORY. Handle multiple components of
5411 DEBUG_FILE_DIRECTORY.
5413 2012-05-10 Tom Tromey <tromey@redhat.com>
5415 * dwarf2read.c (recursively_write_psymbols): New function.
5416 (write_psymtabs_to_index): Use it.
5418 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5420 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5421 (load_partial_comp_unit): Update.
5422 (queue_comp_unit): Add argument 'pretend_language'.
5423 (process_queue): Update.
5424 (psymtab_to_symtab_1): Skip dependencies that have a user.
5425 (load_partial_comp_unit_reader): Give meaning to the 'data'
5427 (load_full_comp_unit): Add 'pretend_language' argument.
5428 (process_full_comp_unit): Add 'pretend_language' argument. Set
5430 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5432 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5433 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5435 (prepare_one_comp_unit): Add 'pretend_language' argument.
5437 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5438 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5439 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5440 (dw2_do_instantiate_symtab): Check whether symtab was read in
5442 (dw2_instantiate_symtab): Add assertion. Call
5443 process_cu_includes.
5444 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5445 (partial_symtab_p): New typedef.
5446 (set_partial_user): New function.
5447 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5448 (scan_partial_symbols): Add imported CU to imported_symtabs.
5449 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5450 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5451 (get_symtab, recursively_compute_inclusions)
5452 (compute_symtab_includes, process_cu_includes)
5453 (process_imported_unit_die): New functions.
5454 (process_die) <DW_TAG_imported_unit>: New case.
5455 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5457 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5459 (struct partial_die_info) <locdesc>: Remove.
5461 (process_psymtab_comp_unit): Add 'read_partial' argument.
5463 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5464 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5465 (add_partial_symbol): Update.
5466 (process_die): Handle DW_TAG_partial_unit.
5467 (read_file_scope): Update comment.
5468 (load_partial_dies): Handle DW_TAG_imported_unit.
5469 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5470 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5472 2012-05-10 Tom Tromey <tromey@redhat.com>
5474 * cc-with-dwz.sh: New file.
5476 2012-05-10 Tom Tromey <tromey@redhat.com>
5478 * symtab.h (struct symtab) <includes, user>: New fields.
5479 * block.h (struct block_iterator) <d, idx, which>: New fields.
5480 * block.c (initialize_block_iterator, find_iterator_symtab)
5481 (block_iterator_step, block_iter_name_step)
5482 (block_iter_match_step): New functions.
5483 (block_iterator_first, block_iterator_next)
5484 (block_iter_name_first, block_iter_name_next)
5485 (block_iter_match_first, block_iter_match_next): Rewrite.
5486 (get_block_symtab): New function.
5488 2012-05-10 Tom Tromey <tromey@redhat.com>
5490 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5492 * jit.c (finalize_symtab): Use allocate_global_block,
5494 * buildsym.c (finish_block_internal): New function, from old
5496 (finish_block): Rewrite.
5497 (end_symtab): Use finish_block_internal, set_block_symtab.
5498 * block.h (struct global_block): New.
5499 (allocate_global_block, set_block_symtab): Declare.
5500 * block.c (allocate_global_block, set_block_symtab): New
5503 2012-05-10 Tom Tromey <tromey@redhat.com>
5505 * psymtab.c (partial_map_expand_apply): Add assertion.
5506 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5507 (psymtab_to_symtab): Find unshared psymtab.
5508 (dump_psymtab): Print including psymtabs.
5509 (recursively_search_psymtabs): New function.
5510 (expand_symtabs_matching_via_partial): Use it.
5511 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5513 (enum psymtab_search_status): New.
5515 2012-05-10 Tom Tromey <tromey@redhat.com>
5517 * tracepoint.c (scope_info): Update.
5518 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5519 (find_pc_sect_symtab, search_symbols)
5520 (default_make_symbol_completion_list_break_on)
5521 (make_file_symbol_completion_list): Update.
5522 * symmisc.c (dump_symtab_1): Update.
5523 * stack.c (print_frame_args, iterate_over_block_locals)
5524 (print_frame_labels, iterate_over_block_arg_vars): Update.
5525 * python/py-block.c (block_object) <dict>: Remove.
5527 <iter>: Change type.
5528 (blpy_iter): Update.
5529 (blpy_block_syms_iternext): Update.
5530 * psymtab.c (map_block): Use block iterators.
5531 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5532 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5533 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5534 * infrun.c (check_exception_resume): Update.
5535 * cp-support.c (make_symbol_overload_list_block): Update.
5536 * coffread.c (patch_opaque_types): Update.
5537 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5538 * block.h (struct block_iterator): New.
5539 (block_iterator_first, block_iterator_next, block_iter_name_first)
5540 (block_iter_name_next, block_iter_match_first)
5541 (block_iter_match_next): Declare.
5542 (ALL_BLOCK_SYMBOLS): Redefine.
5543 * block.c (block_iterator_first, block_iterator_next)
5544 (block_iter_name_first, block_iter_name_next)
5545 (block_iter_match_first, block_iter_match_next): New functions.
5546 * ada-lang.c (ada_add_block_symbols)
5547 (ada_make_symbol_completion_list): Use block iterator.
5549 2012-05-10 Tom Tromey <tromey@redhat.com>
5551 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5552 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5553 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5554 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5555 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5558 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5560 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5561 print-file-var-lib2.c, print-file-var-main.c and
5562 print-file-var.exp (located in gdb/testsuite/gdb.base).
5564 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5566 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5567 try locating the symbol in the symbol's own objfile first, before
5568 extending the search to all objfiles.
5569 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5570 out of lookup_symbol_aux_symtabs.
5571 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5572 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5573 Do not search EXCLUDE_OBJFILE.
5574 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5575 (lookup_symbol_global): Search for matches in the block's objfile
5576 first, before searching all other objfiles.
5578 2012-05-10 Tristan Gingold <gingold@adacore.com>
5580 * printcmd.c (set_command): Add pre/post inc/dec.
5582 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5584 * gdb.1: Document -ex option.
5586 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5588 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5589 * inferior.h (AT_SYMBOL): Delete.
5591 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5593 * mips-tdep.c (mips_push_dummy_code): New function.
5594 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5595 ON_STACK and install mips_push_dummy_code as our gdbarch
5596 push_dummy_code routine.
5598 2012-05-09 Pedro Alves <palves@redhat.com>
5600 * target.c (set_maintenance_target_async_permitted): Rename to ...
5601 (set_target_async_command): ... this.
5602 (show_maintenance_target_async_permitted): Rename to ...
5603 (show_target_async_command): ... this.
5604 (initialize_targets): Adjust.
5606 2012-05-08 Doug Evans <dje@google.com>
5608 * go-exp.y (classify_name): Add missing assignment of fields of
5611 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5613 Display the ">" prompt in interactive mode while reading canned
5614 commands, even when the current interpreter is MI.
5616 * interps.c (interp_set_temp): New function.
5618 * interps.h (interp_set_temp): Add prototype.
5620 * cli/cli-script.c (restore_interp): New cleanup function.
5621 (read_command_lines): Temporarily override the current interpreter
5622 with CLI and arrange for restoring the original one.
5624 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5626 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5628 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5630 * probe.c (parse_probes): Move conditional to check for
5631 debuginfo files from here...
5632 * stap-probe.c (stap_get_probes): ... to here.
5634 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5635 H.J. Lu <hongjiu.lu@intel.com>
5637 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5638 `movl %esp, %ebp' for the X32 ABI.
5640 2012-05-07 Tom Tromey <tromey@redhat.com>
5642 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5644 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5645 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5646 (dwarf_stack_op_name): Remove.
5647 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5648 (decode_locdesc): Use get_DW_OP_name.
5649 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5650 (dwarf2_compile_expr_to_ax): Likewise.
5651 (disassemble_dwarf_expression): Likewise.
5652 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5654 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5656 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5657 (sh_linux_sigtramp_cache): New function.
5658 (sh_linux_sigreturn_init): New function.
5659 (sh_linux_rt_sigreturn_init): New function.
5660 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5662 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5664 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5665 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5666 (sh_linux_init_abi): Add init calls to register new tramp_frame
5667 definitions under 32-bit SH, update comments.
5669 2012-05-07 Pedro Alves <palves@redhat.com>
5673 * amd64-linux-tdep.c: Include glibc-tdep.h.
5674 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5675 gdbarch_skip_solib_resolver callback.
5677 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5679 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5680 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5681 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5682 (add_auto_load_safe_path): Change the error message.
5683 (_initialize_auto_load): Change the "safe-path" help text.
5684 * configure: Regenerate
5685 * configure.ac (--without-auto-load-safe-path): Set
5686 WITH_AUTO_LOAD_SAFE_PATH to /.
5688 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5690 * stap-probe.h: Do not include unecessary `probe.h'.
5692 2012-05-05 Alan Modra <amodra@gmail.com>
5694 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5695 bfd_und_section_ptr.
5696 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5697 and bfd_com_section_ptr.
5699 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5701 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5703 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5705 * windows-nat.h (segment_register_p_ftype): New typedef.
5706 (windows_set_segment_register_p): Add declaration.
5707 * windows-nat.c (segment_register_p): New static global.
5708 (windows_set_segment_register_p): New function.
5709 (do_windows_fetch_inferior_registers): Add special handling
5710 for segment registers.
5711 * amd64-windows-nat.c: #include "amd64-tdep.h".
5712 (amd64_windows_segment_register_p): New function.
5713 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5714 * i386-windows-nat.c: #include "i386-tdep.h".
5715 (i386_windows_segment_register_p): New function.
5716 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5718 2012-05-04 Tristan Gingold <gingold@adacore.com>
5720 * printcmd.c (set_command): Emit a warning if the expression is not
5723 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5725 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5728 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5730 * stap-probe.c (stap_is_operator): Change declaration.
5731 (stap_get_opcode): Change return value.
5732 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5733 `stap_parse_argument_1'.
5735 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5737 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5740 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5742 Add two new methods global_block and static_block to gdb.Symtab
5744 * NEWS (Python scripting): Add entry about the new methods.
5745 * python/py-symtab.c (stpy_global_block): New function which
5746 implements the gdb.Symtab.global_block() method.
5747 (stpy_static_block): New function which implements the
5748 gdb.Symtab.static_block() method.
5749 (symtab_object_methods): Add entries for the two new methods.
5751 2012-05-03 Doug Evans <dje@google.com>
5753 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5756 2012-05-03 Yao Qi <yao@codesourcery.com>
5758 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5760 (i386_process_record): Ditto.
5762 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5764 * infcall.c (unwind_on_signal_p): Make static.
5766 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5768 * sol-thread.c (solaris_pid_to_str): Make static.
5769 (_initialize_sol_thread): Add prototype.
5771 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5773 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5775 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5777 * MAINTAINERS: Remove myself.
5779 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 Fix --without-auto-load-safe-path for MS-Windows host platform.
5782 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5784 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5786 * gdb_curses.h: Undefine KEY_EVENT before including curses
5787 headers. Move "#undef MOUSE_MOVED" before any curses header
5790 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5792 * features/i386/i386-mmx-linux.c: Regenerate.
5793 * features/rs6000/powerpc-32.c: Likewise.
5794 * features/rs6000/powerpc-32l.c: Likewise.
5795 * features/rs6000/powerpc-403.c: Likewise.
5796 * features/rs6000/powerpc-403gc.c: Likewise.
5797 * features/rs6000/powerpc-405.c: Likewise.
5798 * features/rs6000/powerpc-505.c: Likewise.
5799 * features/rs6000/powerpc-601.c: Likewise.
5800 * features/rs6000/powerpc-602.c: Likewise.
5801 * features/rs6000/powerpc-603.c: Likewise.
5802 * features/rs6000/powerpc-604.c: Likewise.
5803 * features/rs6000/powerpc-64.c: Likewise.
5804 * features/rs6000/powerpc-64l.c: Likewise.
5805 * features/rs6000/powerpc-750.c: Likewise.
5806 * features/rs6000/powerpc-860.c: Likewise.
5807 * features/rs6000/powerpc-e500.c: Likewise.
5808 * features/rs6000/powerpc-e500l.c: Likewise.
5809 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5810 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5811 * features/rs6000/rs6000.c: Likewise.
5813 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5815 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5817 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5818 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5819 (stap_parse_argument) <e>: Likewise.
5820 (handle_stap_probe) <byte_order>: Likewise.
5822 2012-04-30 Doug Evans <dje@google.com>
5824 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5825 init_and_read_dies_worker. All callers updated.
5826 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5827 replaced with init_cutu_and_read_dies.
5828 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5829 (find_partial_die): Remove FIXME. Don't free current CU.
5831 2012-04-30 Sterling Augustine <saugustine@google.com>
5833 * contrib: New directory.
5834 * contrib/test_pubnames_and_indexes.py: New file.
5836 2012-04-30 Doug Evans <dje@google.com>
5838 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5839 All callers updated.
5840 (init_cu_die_reader): Verify the section is non-empty.
5841 (dwarf_decode_line_header): Don't dereference section->asection
5842 until we know the section is present.
5844 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5846 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5849 2012-04-29 Yao Qi <yao@codesourcery.com>
5851 * gdb-code-style.el: New hook gdb-markup-hook
5852 and gdb-comment-hook.
5854 2012-04-28 Doug Evans <dje@google.com>
5856 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5857 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5859 * symfile.h (dwarf2_debug_sections): New member addr.
5860 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5861 (ctx_no_get_addr_index): New function.
5862 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5863 (ctx_no_get_addr_index): Declare.
5864 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5865 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5866 (dwarf_expr_ctx_funcs): Update.
5867 (needs_get_addr_index): New function.
5868 (needs_frame_ctx_funcs): Update.
5869 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5870 * dwarf2read.c: #include "gdbcore.h".
5871 (dwarf2_per_objfile): New members addr, dwo_files.
5872 (dwarf2_elf_names): Add entry for addr.
5873 (struct dwo_section_names): New type.
5874 (dwo_section_names): New static global.
5875 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5876 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5877 old debug_types_section member updated to use this.
5878 Rename member debug_types_section to info_or_types_section,
5880 (signatured_type): Rename member type_offset to type_offset_in_tu,
5881 all uses updated. New member type_offset_in_section.
5882 (struct dwo_sections): New type.
5883 (struct dwo_unit): New type.
5884 (struct dwo_file): New type.
5885 (die_reader_specs): New member dwo_file.
5886 (dwarf2_locate_sections): Watch for .debug_addr.
5887 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5888 (dwarf2_read_section): Get bfd of section from bfd's asection,
5890 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5891 (create_signatured_type_table_from_index): Initialize
5892 sig_type->info_or_types_section.
5893 (dw2_get_file_names): Statement lists for type units with DWO files
5894 live in the DWO file.
5895 (create_debug_types_hash_table): New function.
5896 (create_all_type_units): Rewrite.
5897 (init_cu_die_reader): New arg dwo_file, all callers updated.
5898 (init_and_read_dies_worker): Get section from
5899 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5900 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5901 continue reading the CU/TU from there.
5902 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5903 updated. Get section from this_cu->info_or_types_section.
5904 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5905 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5906 DW_FORM_GNU_str_index.
5907 (hash_dwo_file, eq_dwo_file): New functions.
5908 (allocate_dwo_file_hash_table): New function.
5909 (hash_dwo_unit, eq_dwo_unit): New functions.
5910 (allocate_dwo_unit_table): New function.
5911 (dwarf2_locate_dwo_sections): New function.
5912 (struct create_dwo_info_table_data): New type.
5913 (create_debug_info_hash_table_reader): New function.
5914 (create_debug_info_hash_table): New function.
5915 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5916 (lookup_dwo_file): New function.
5917 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5918 (free_dwo_file, free_dwo_file_cleanup): New functions.
5919 (free_dwo_file_from_slot, free_dwo_files): New functions.
5920 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5921 (dwarf2_record_block_ranges): Ditto.
5922 (read_partial_die): Ditto.
5923 (process_enumeration_scope): Update to use type_offset_in_section.
5924 (read_full_die_1): New function.
5925 (read_full_die): Rewrite.
5926 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5927 DW_FORM_GNU_str_index.
5928 (read_addr_index_1, read_addr_index): New functions.
5929 (read_addr_index_from_leb128): New function.
5930 (struct dwarf2_read_addr_index_data): New type.
5931 (dwarf2_read_addr_index_reader): New function.
5932 (dwarf2_read_addr_index): New function.
5933 (read_str_index): New function.
5934 (leb128_size): New function.
5935 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5936 If processing a type unit from a DWO file, get the line section
5938 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5939 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5940 DW_FORM_GNU_str_index.
5941 (lookup_die_type): Check whether section offset of type's die is
5942 known before looking it up. Remove assert. Condition can
5943 legimately happen for inter-cu type references.
5944 (dwarf_attr_name): Handle Fission attributes.
5945 (dwarf_form_name): Handle Fission forms.
5946 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5947 DW_FORM_GNU_str_index.
5948 (follow_die_sig): Update to use type_offset_in_section.
5949 (decode_locdesc): New case DW_OP_GNU_addr_index.
5950 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5951 DW_FORM_GNU_str_index.
5952 (cu_debug_loc_section): New function.
5953 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5954 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5955 Free DWO files if present.
5956 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5958 Refactor DIE reading.
5959 * dwarf2read.c (dwarf2_per_objfile): Replace members
5960 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5961 (die_reader_specs): New member "die_section". Temporarily make
5962 member "buffer" non-const, pending constifying all info_ptr uses.
5963 (die_reader_func_ftype): New typedef.
5964 (dw2_get_file_names_reader): New function.
5965 (dw2_get_file_names): Rewrite.
5966 (read_and_check_type_unit_head): Rename arg type_offset to
5968 (create_all_type_units): Improve debugging message.
5969 Improve dummy type unit check.
5970 (init_cu_die_reader): New arg "section". All callers updated.
5971 (init_and_read_dies_worker): New function.
5972 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5973 (init_cutu_and_read_dies_no_follow): New function.
5974 (init_cutu_and_read_dies_simple): New function.
5975 (process_psymtab_comp_unit_reader): New function.
5976 (process_psymtab_comp_unit): Delete args section,
5977 is_debug_types_section. Rewrite. All callers updated.
5978 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5979 All callers updated. Rewrite.
5980 (load_partial_comp_unit_reader): New function.
5981 (load_partial_comp_unit): Rewrite.
5982 (skip_children): New arg reader. Delete args buffer, cu.
5983 All callers updated.
5984 (skip_one_die): New arg reader. Delete args buffer, cu.
5985 All callers updated.
5986 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5987 All callers updated.
5988 (load_full_comp_unit_reader): New function.
5989 (load_full_comp_unit): Rewrite.
5990 (read_comp_unit): Delete.
5991 (read_die_and_children_1): Delete, contents moved ...
5992 (read_die_and_children): ... here.
5993 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5994 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5995 All callers updated.
5996 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5997 All callers updated.
5998 (find_partial_die): Rewrite load_all_dies support.
5999 (read_attribute_value): New arg reader. Delete args abfd, cu.
6000 All callers updated.
6001 (read_attribute): New arg reader. Delete args abfd, cu.
6002 All callers updated.
6003 (load_full_type_unit): Add assert.
6004 (read_signatured_type_reader): New function.
6005 (read_signatured_type): Rewrite.
6006 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6007 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6008 All callers updated. Set per_cu->cu = NULL after freeing it.
6009 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6010 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6011 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6012 (set_die_type): Update.
6013 (get_die_type_at_offset): Update.
6014 (read_file_scope): Call prepare_one_comp_unit.
6015 (read_type_unit_scope): Ditto.
6016 (prepare_one_comp_unit): Set producer if present.
6018 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6020 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6021 gettext function on `error'.
6023 2012-04-27 Doug Evans <dje@google.com>
6025 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6028 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6029 Tom Tromey <tromey@redhat.com>
6031 * breakpoint.c (struct breakpoint_objfile_data)
6032 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6033 <exception_probes>: New fields.
6034 (free_breakpoint_probes): New function.
6035 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6036 `_Unwind_DebugHook'.
6037 (create_exception_master_breakpoint): Likewise.
6038 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6039 * infrun.c: Including necessary header files for handling SystemTap
6041 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6042 via SystemTap probes.
6043 (check_exception_resume): Remove `func' argument. Handle exception
6044 unwinding breakpoint set via a SystemTap probe.
6045 (insert_exception_resume_from_probe): New function.
6047 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6048 Tom Tromey <tromey@redhat.com>
6049 Jan Kratochvil <jan.kratochvil@redhat.com>
6051 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6052 (COMMON_OBS): Likewise.
6053 (HFILES_NO_SRCDIR): Add `probe'.
6054 * NEWS: Mention support for static and SystemTap probes.
6055 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6056 SystemTap probes' arguments parser.
6057 * arm-linux-tdep.c: Including headers needed to perform the parsing
6058 of SystemTap probes' arguments.
6059 (arm_stap_is_single_operand): New function.
6060 (arm_stap_parse_special_token): Likewise.
6061 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6062 probes' arguments parser.
6063 * ax-gdb.c (require_rvalue): Removing static declaration.
6064 (gen_expr): Likewise.
6065 * ax-gdb.h (gen_expr): Declaring function.
6066 (require_rvalue): Likewise.
6067 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6068 (bkpt_probe_breakpoint_ops): New variable.
6069 (momentary_breakpoint_from_master): Set the `probe' value.
6070 (add_location_to_breakpoint): Likewise.
6071 (break_command_1): Using proper breakpoint_ops according to the
6072 argument passed by the user in the command line.
6073 (bkpt_probe_insert_location): New function.
6074 (bkpt_probe_remove_location): Likewise.
6075 (bkpt_probe_create_sals_from_address): Likewise.
6076 (bkpt_probe_decode_linespec): Likewise.
6077 (tracepoint_probe_create_sals_from_address): Likewise.
6078 (tracepoint_probe_decode_linespec): Likewise.
6079 (tracepoint_probe_breakpoint_ops): New variable.
6080 (trace_command): Using proper breakpoint_ops according to the
6081 argument passed by the user in the command line.
6082 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6083 static probes on breakpoints and tracepoints.
6084 * breakpoint.h (struct bp_location) <probe>: New field.
6085 * cli-utils.c (skip_spaces_const): New function.
6086 (extract_arg): Likewise.
6087 * cli-utils.h (skip_spaces_const): Likewise.
6088 (extract_arg): Likewise.
6089 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6090 * configure.ac: Append `stap-probe.o' to be generated when ELF
6092 * configure: Regenerate.
6093 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6094 * elfread.c: Include `probe.h' and `arch-utils.h'.
6095 (probe_key): New variable.
6096 (elf_get_probes): New function.
6097 (elf_get_probe_argument_count): Likewise.
6098 (elf_evaluate_probe_argument): Likewise.
6099 (elf_compile_to_ax): Likewise.
6100 (elf_symfile_relocate_probe): Likewise.
6101 (stap_probe_key_free): Likewise.
6102 (elf_probe_fns): New variable.
6103 (elf_sym_fns): Add `sym_probe_fns' value.
6104 (elf_sym_fns_lazy_psyms): Likewise.
6105 (elf_sym_fns_gdb_index): Likewise.
6106 (_initialize_elfread): Initialize objfile cache for static
6108 * gdb_vecs.h (struct probe): New forward declaration.
6109 (probe_p): New VEC declaration.
6110 * gdbarch.c: Regenerate.
6111 * gdbarch.h: Regenerate.
6112 * gdbarch.sh (stap_integer_prefix): New variable.
6113 (stap_integer_suffix): Likewise.
6114 (stap_register_prefix): Likewise.
6115 (stap_register_suffix): Likewise.
6116 (stap_register_indirection_prefix): Likewise.
6117 (stap_register_indirection_suffix): Likewise.
6118 (stap_gdb_register_prefix): Likewise.
6119 (stap_gdb_register_suffix): Likewise.
6120 (stap_is_single_operand): New function.
6121 (stap_parse_special_token): Likewise.
6122 (struct stap_parse_info): Forward declaration.
6123 * i386-tdep.c: Including headers needed to perform the parsing
6124 of SystemTap probes' arguments.
6125 (i386_stap_is_single_operand): New function.
6126 (i386_stap_parse_special_token): Likewise.
6127 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6128 probes' arguments parser.
6129 * i386-tdep.h (i386_stap_is_single_operand): New function.
6130 (i386_stap_parse_special_token): Likewise.
6131 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6132 * mipsread.c (ecoff_sym_fns): Likewise.
6133 * objfiles.c (objfile_relocate1): Support relocation for static
6135 * parse.c (prefixify_expression): Remove static declaration.
6136 (initialize_expout): Likewise.
6137 (reallocate_expout): Likewise.
6138 * parser-defs.h (initialize_expout): Declare function.
6139 (reallocate_expout): Likewise.
6140 (prefixify_expression): Likewise.
6141 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6142 of SystemTap probes' arguments.
6143 (ppc_stap_is_single_operand): New function.
6144 (ppc_stap_parse_special_token): Likewise.
6145 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6146 probes' arguments parser.
6147 * probe.c: New file, for generic statically defined probe support.
6148 * probe.h: Likewise.
6149 * s390-tdep.c: Including headers needed to perform the parsing of
6150 SystemTap probes' arguments.
6151 (s390_stap_is_single_operand): New function.
6152 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6153 probes' arguments parser.
6154 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6155 * stap-probe.c: New file, for SystemTap probe support.
6156 * stap-probe.h: Likewise.
6157 * symfile.h: Include `gdb_vecs.h'.
6158 (struct sym_probe_fns): New struct.
6159 (struct sym_fns) <sym_probe_fns>: New field.
6160 * symtab.c (init_sal): Initialize `probe' field.
6161 * symtab.h (struct probe): Forward declaration.
6162 (struct symtab_and_line) <probe>: New field.
6163 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6165 (stop_tracing): Likewise.
6166 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6168 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6169 Tom Tromey <tromey@redhat.com>
6171 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6172 and to compile agent expressions.
6173 * infrun.c (siginfo_make_value): New argument `ignore'.
6174 (siginfo_funcs): New struct.
6175 (_initialize_infrun): New argument when calling
6176 `create_internalvar_type_lazy'.
6177 * thread.c (thread_id_make_value): New argument `ignore'.
6178 (thread_funcs): New struct.
6179 (_initialize_thread): New argument when calling
6180 `create_internalvar_type_lazy'.
6181 * tracepoint.c (sdata_make_value): New argument `ignore'.
6182 (sdata_funcs): New struct.
6183 (_initialize_tracepoint): New argument when calling
6184 `create_internalvar_type_lazy'.
6185 * value.c (make_value): New struct.
6186 (create_internalvar_type_lazy): New argument `data'.
6187 (compile_internalvar_to_ax): New function.
6188 (value_of_internalvar): Properly handling `make_value' case.
6189 (clear_internalvar): Likewise.
6190 (show_convenience): Adding `TRY_CATCH' block.
6191 * value.h (internalvar_make_value): Delete, replace by...
6192 (struct internalvar_funcs): ... this.
6193 (create_internalvar_type_lazy) <fun>: Delete argument.
6194 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6195 (compile_internalvar_to_ax): New function.
6196 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6197 (tlb_funcs): New struct.
6198 (_initialize_windows_tdep): New argument when calling
6199 `create_internalvar_type_lazy'.
6201 2012-04-27 Mark Wielaard <mjw@redhat.com>
6203 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6204 see whether it is an address or a constant offset from DW_AT_low_pc.
6205 (dwarf2_record_block_ranges): Likewise.
6206 (read_partial_die): Likewise.
6208 2012-04-26 Mark Wielaard <mjw@redhat.com>
6210 * MAINTAINERS (Write After Approval): Add myself to the list.
6212 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6214 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6215 (proc_prettyprint_signal): Likewise.
6216 (proc_prettyprint_faultset): Likewise.
6217 (proc_prettyprint_fault): Likewise.
6218 (proc_prettyprint_actionset): Likewise.
6219 (proc_prettyprint_flags): Move to new proc-flags.c section.
6220 (proc_prettyfprint_flags): New prototype.
6221 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6222 (proc_syscall, proc_cursig): Likewise.
6223 (proc_set_kill_on_last_close): Likewise.
6224 (proc_unset_kill_on_last_close): Likewise.
6225 (proc_set_watchpoint): Make static.
6226 (proc_delete_dead_threads): Likewise.
6227 (procfs_set_watchpoint): Likewise.
6228 (_initialize_procfs): Add prototype.
6229 * proc-events.c: Include proc-utils.h.
6230 (init_syscall_table): Make static.
6231 * proc-api.c (_initialize_proc_api): Add prototype.
6232 * proc-flags.c: Include proc-utils.h.
6234 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6236 * configure.ac: Add AC_ARG_PROGRAM.
6237 * configure: Regenerate.
6239 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6241 Fix DW_AT_lower_bound defaults for DWARF-4+.
6242 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6243 high. New variable low_default_is_valid. Implement DWARF-4+
6244 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6245 no default by the DWARF standard.
6247 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6248 Maciej W. Rozycki <macro@codesourcery.com>
6250 * infrun.c (handle_inferior_event): Move the check for return
6251 trampolines ahead of the check for function trampolines.
6252 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6253 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6254 (mips_str_mips16_ret_stub): Likewise.
6255 (mips_str_call_fp_stub): Likewise.
6256 (mips_str_call_stub): Likewise.
6257 (mips_str_fn_stub): Likewise.
6258 (mips_str_pic): Likewise.
6259 (mips_in_frame_stub): New function.
6260 (mips_unwind_pc): Return the return address rather than the PC
6261 if the PC of an intermediate frame is inside a call thunk.
6262 (mips_is_stub_suffix): New function.
6263 (mips_is_stub_mode): Likewise.
6264 (mips_get_mips16_fn_stub_pc): Likewise.
6265 (mips_skip_mips16_trampoline_code): Update to handle all the
6266 currently generated stub types. Don't recurse into __fn_stub
6267 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6268 Use cooked register accesses.
6269 (mips_in_return_stub): Reintroduce function.
6270 (mips_skip_trampoline_code): Traverse trampolines recursively.
6271 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6273 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6277 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6279 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6280 * features/arm-with-m-vfp-d16.xml: New file. Describes
6281 Cortex-M with VFPv4-sp-d16 FPU register layout.
6282 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6283 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6284 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6285 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6286 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6288 2012-04-25 Doug Evans <dje@google.com>
6290 * cli/cli-decode.c (print_doc_line): Use stream instead of
6293 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6295 * features/arm-with-iwmmxt.c: Regenerate.
6296 * features/arm-with-m-fpa-layout.c: Likewise.
6297 * features/arm-with-m.c: Likewise.
6298 * features/arm-with-neon.c: Likewise.
6299 * features/arm-with-vfpv2.c: Likewise.
6300 * features/arm-with-vfpv3.c: Likewise.
6301 * features/mips-dsp-linux.c: Likewise.
6302 * features/mips-linux.c: Likewise.
6303 * features/mips64-dsp-linux.c: Likewise.
6304 * features/mips64-linux.c: Likewise.
6305 * features/s390-linux32.c: Likewise.
6306 * features/s390-linux32v1.c: Likewise.
6307 * features/s390-linux32v2.c: Likewise.
6308 * features/s390-linux64.c: Likewise.
6309 * features/s390-linux64v1.c: Likewise.
6310 * features/s390-linux64v2.c: Likewise.
6311 * features/s390x-linux64.c: Likewise.
6312 * features/s390x-linux64v1.c: Likewise.
6313 * features/s390x-linux64v2.c: Likewise.
6314 * features/tic6x-c62x-linux.c: Likewise.
6315 * features/tic6x-c62x.c: Likewise.
6316 * features/tic6x-c64x-linux.c: Likewise.
6317 * features/tic6x-c64x.c: Likewise.
6318 * features/tic6x-c64xp-linux.c: Likewise.
6319 * features/tic6x-c64xp.c: Likewise.
6320 * target-descriptions.c: Only generate `field_type' and `type'
6321 variables when needed.
6323 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6325 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6327 2012-04-25 Doug Evans <dje@google.com>
6329 Initial pass at Go language support.
6331 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6333 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6334 (YYFILES): Add go-exp.c.
6335 (YYOBJ): Add go-exp.o.
6336 (local-maintainer-clean): Delete go-exp.c.
6337 * defs.h (enum language): Add language_go.
6338 * dwarf2read.c: #include "go-lang.h".
6339 (fixup_go_packaging): New function.
6340 (process_full_comp_unit): Call it when processing Go CUs.
6341 (dwarf2_physname): Add Go support.
6342 (read_file_scope): Handle missing language spec for GNU Go.
6343 (set_cu_language): Handle DW_LANG_Go.
6344 * go-exp.y: New file.
6345 * go-lang.h: New file.
6346 * go-lang.c: New file.
6347 * go-typeprint.c: New file.
6348 * go-valprint.c: New file.
6349 * symtab.c: #include "go-lang.h".
6350 (symbol_set_language): Handle language_go.
6351 (symbol_find_demangled_name, symbol_set_names): Ditto.
6352 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6354 2012-04-24 Jim Meyering <meyering@redhat.com>
6356 avoid a few strncpy-induced buffer overruns
6357 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6358 fname and psargs before trying to concatenate.
6359 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6360 "name" before applying strchr.
6362 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6364 * CONTRIBUTE: Use unified diff instead of context diff when
6367 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6369 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6370 code. Handle JR.HB correctly.
6372 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6375 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6376 with the other MIPS16 helpers.
6378 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6380 * observer.sh: Conditionally declare `args', thus cleaning up
6381 unused instances of this variable.
6383 2012-04-24 Yao Qi <yao@codesourcery.com>
6385 Revert this patch to allow breakpoint always-inserted
6387 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6388 * breakpoint.c: Include record.h.
6389 (breakpoints_always_inserted_mode): Return false when the record
6392 * breakpoint.c (iterate_over_bp_locations): New.
6393 * breakpoint.h: Declare.
6394 New typedef walk_bp_location_callback.
6395 * record.c (record_open): Call record_init_record_breakpoints.
6396 (record_sync_record_breakpoints): New.
6397 (record_init_record_breakpoints): New.
6398 * NEWS: Mention supporting breakpoint always-inserted mode in
6401 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6403 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6406 2012-04-24 Yao Qi <yao@codesourcery.com>
6408 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6409 (is_catchpoint): ... it.
6410 (print_one_breakpoint_location): Caller update.
6411 * breakpoint.h: Update declaration.
6413 2012-04-23 David S. Miller <davem@davemloft.net>
6415 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6417 2012-04-23 Tom Tromey <tromey@redhat.com>
6419 * buildsym.c (add_free_pendings): Remove.
6420 * buildsym.h (add_free_pendings): Remove.
6422 2012-04-23 Doug Evans <dje@google.com>
6424 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6425 attr.u.unsnd instead of attr.u.addr.
6426 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6427 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6429 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6430 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6432 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6434 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6436 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6437 (mips_o32_return_value): Likewise.
6438 (mips_o64_return_value): Likewise.
6440 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6442 * ada-lang.c (ada_evaluate_subexp): Add cases for
6443 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6444 their treatment in eval.c.
6446 2012-04-21 David S. Miller <davem@davemloft.net>
6448 * sparc-tdep.c (X_DISP10): Define.
6449 (sparc_analyze_control_transfer): Handle compare-and-branch.
6451 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6453 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6454 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6456 2012-04-20 Nigel Stephens <nigel@mips.com>
6457 Maciej W. Rozycki <macro@codesourcery.com>
6459 * mips-tdep.c (mips_float_register_p): New function.
6460 (mips_convert_register_float_case_p): Use mips_float_register_p.
6461 (mips_register_type): Likewise.
6462 (mips_print_register): Likewise.
6463 (print_gp_register_row): Likewise.
6464 (mips_print_registers_info): Likewise.
6466 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6468 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6471 2012-04-20 Andrew Pinski <apinski@cavium.com>
6473 * MAINTAINERS (Write After Approval): Add myself to the list.
6475 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6477 * MAINTAINERS: Update my e-mail address.
6479 2012-04-20 Pedro Alves <palves@redhat.com>
6481 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6483 * configure: Regenerate.
6485 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6487 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6489 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6491 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6493 Fix compilation compatibility with python-2.4
6494 * python/py-type.c (convert_field): Cast ADDRSTRING for
6495 PyObject_SetAttrString as non-const. New comment.
6497 2012-04-19 Tom Tromey <tromey@redhat.com>
6499 * top.c (quit_target): Use all_cleanups.
6500 * main.c (captured_command_loop): Use all_cleanups.
6501 * exceptions.c (throw_exception): Use all_cleanups.
6503 2012-04-19 Pedro Alves <palves@redhat.com>
6505 * Makefile.in (GNULIB_BUILDDIR): New.
6506 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6507 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6508 (CLEANDIRS). Remove gnulib/import.
6509 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6511 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6512 (gnulib/import/Makefile): Replace gnulib/import with
6513 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6514 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6515 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6516 acx_configure_dir.m4.
6517 * acinclude.m4: Include acx_configure_dir.m4.
6518 * acx_configure_dir.m4: New file.
6519 * aclocal.m4: Regenerate.
6520 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6521 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6522 (GNULIB): New variable.
6523 (GNULIB_STDINT_H): Adjust.
6524 (AC_OUTPUT): Don't output gnulib/Makefile.
6525 * gdb/defs.h: Include build-gnulib/config.h.
6526 * aclocal.m4: Regenerate.
6527 * config.in: Regenerate.
6528 * configure: Regenerate.
6530 * gnulib/Makefile.in: New file.
6531 * gnulib/configure.ac: New file.
6532 * gnulib/aclocal.m4: New file.
6533 * gnulib/config.in: New file.
6534 * gnulib/configure: New file.
6535 * gnulib/: Re-run gnulib-tool to adjust.
6537 2012-04-19 Doug Evans <dje@google.com>
6539 * cleanups.h (struct cleanup): Move to cleanups.c.
6540 (make_cleanup_dtor_ftype): New typedef.
6541 (make_cleanup_dtor): Use it.
6542 (ALL_CLEANUPS): Replace with ...
6543 (all_cleanups): ... this. Declare. All uses updated.
6544 * cleanups.c: #include "gdb_assert.h".
6545 (sentinel_cleanup): New static global.
6546 (SENTINEL_CLEANUP): Define.
6547 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6548 (make_my_cleanup2): Assert result is non-NULL.
6549 (all_cleanups): New function.
6550 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6553 2012-04-19 Pedro Alves <palves@redhat.com>
6555 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6556 Adjust paths to gnulib imported files.
6558 2012-04-19 Pedro Alves <palves@redhat.com>
6560 * gnulib/: Move whole directory ...
6561 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6562 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6563 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6564 (aclocal_m4_deps): Adjust.
6565 * aclocal.m4: Regenerate.
6566 * configure: Regenerate.
6567 * configure.ac: Adjust AC_OUTPUT output.
6569 2012-04-19 Yao Qi <yao@codesourcery.com>
6571 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6573 * vec.c: Move it ...
6574 * common/vec.c: ... here.
6575 * vec.h: Move it ...
6576 * common/vec.h: ... here.
6578 2012-04-19 Yao Qi <yao@codesourcery.com>
6580 * gdb-code-style.el: New.
6582 2012-04-18 Pedro Alves <palves@redhat.com>
6584 Update gnulib from latest git.
6585 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6587 * gnulib/Makefile.am: Update.
6588 * gnulib/dummy.c: Update.
6589 * gnulib/extra/arg-nonnull.h: Update.
6590 * gnulib/extra/c++defs.h: Update.
6591 * gnulib/extra/update-copyright: Update.
6592 * gnulib/extra/warn-on-use.h: Update.
6593 * gnulib/inttypes.in.h: Update.
6594 * gnulib/m4/00gnulib.m4: Update.
6595 * gnulib/m4/extensions.m4: Update.
6596 * gnulib/m4/gnulib-cache.m4: Update.
6597 * gnulib/m4/gnulib-common.m4: Update.
6598 * gnulib/m4/gnulib-comp.m4: Update.
6599 * gnulib/m4/gnulib-tool.m4: Update.
6600 * gnulib/m4/include_next.m4: Update.
6601 * gnulib/m4/inttypes-pri.m4: Update.
6602 * gnulib/m4/inttypes.m4: Update.
6603 * gnulib/m4/longlong.m4: Update.
6604 * gnulib/m4/memchr.m4: Update.
6605 * gnulib/m4/memmem.m4: Update.
6606 * gnulib/m4/mmap-anon.m4: Update.
6607 * gnulib/m4/multiarch.m4: Update.
6608 * gnulib/m4/onceonly.m4: Update.
6609 * gnulib/m4/stddef_h.m4: Update.
6610 * gnulib/m4/stdint.m4: Update.
6611 * gnulib/m4/string_h.m4: Update.
6612 * gnulib/m4/warn-on-use.m4: Update.
6613 * gnulib/m4/wchar_h.m4: Update.
6614 * gnulib/m4/wchar_t.m4: Update.
6615 * gnulib/m4/wint_t.m4: Update.
6616 * gnulib/memchr.c: Update.
6617 * gnulib/memmem.c: Update.
6618 * gnulib/stddef.in.h: Update.
6619 * gnulib/stdint.in.h: Update.
6620 * gnulib/str-two-way.h: Update.
6621 * gnulib/string.in.h: Update.
6622 * gnulib/wchar.in.h: Update.
6624 * gnulib/extra/arg-nonnull.h: Delete.
6625 * gnulib/extra/c++defs.h: Delete.
6626 * gnulib/extra/warn-on-use.h: Delete.
6627 * gnulib/m4/wchar_h.m4: Delete.
6628 * gnulib/m4/wint_t.m4: Delete.
6629 * gnulib/wchar.in.h: Delete.
6631 * gnulib/extra/snippets/arg-nonnull.h: New.
6632 * gnulib/extra/snippets/c++defs.h: New.
6633 * gnulib/extra/snippets/warn-on-use.h: New.
6635 * aclocal.m4: Regenerate.
6636 * config.in: Regenerate.
6637 * configure: Regenerate.
6638 * gnulib/Makefile.in: Regenerate.
6640 2012-04-18 Pedro Alves <palves@redhat.com>
6642 Reimport the update-copyright module from gnulib
6643 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6645 * configure: Regenerate.
6646 * gnulib/Makefile.am: Update.
6647 * gnulib/Makefile.in: Regenerate.
6648 * gnulib/extra/update-copyright: Update.
6649 * gnulib/m4/gnulib-cache.m4: Update.
6650 * gnulib/m4/gnulib-comp.m4: Update.
6652 2012-04-18 Tristan Gingold <gingold@adacore.com>
6654 * configure.ac (aix): Put -lpthread into libs.
6655 * configure: Regenerate.
6657 2012-04-18 Tom Tromey <tromey@redhat.com>
6659 * linespec.c (convert_linespec_to_sals): Don't use
6661 (compare_msymbols): Arguments are minsym_and_objfile, not
6662 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6664 2012-04-18 Pedro Alves <palves@redhat.com>
6666 Revert gnulib/ part of:
6667 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6668 Copyright year update in most files (performed by copyright.sh).
6670 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6672 Fix 64-bit constants on 32-bit hosts.
6673 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6674 from unsigned long to ULONGEST.
6675 (read_signed_leb128): Change declaration return type from long to
6677 (dwarf2_const_value_attr): Change declaration parameter value from long
6679 (dwarf2_compute_name): Change variable value from long to LONGEST.
6680 (read_unsigned_leb128): Change return type, variable result and some
6681 casts from unsigned long to ULONGEST.
6682 (read_signed_leb128): Change return type, variable result and some
6683 casts from long to LONGEST.
6684 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6685 value from long to LONGEST.
6686 (dwarf2_const_value): Change variable value from long to LONGEST.
6687 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6688 plongest and hex_string.
6689 * symtab.h (struct general_symbol_info): Change ivalue from long to
6690 LONGEST, remove the comment.
6691 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6692 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6694 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6697 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6698 * ada-lang.c (ada_discrete_type_high_bound)
6699 (ada_discrete_type_low_bound): Fix function comment. Use
6700 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6701 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6702 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6703 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6704 Use TYPE_FIELD_ENUMVAL.
6705 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6706 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6707 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6708 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6710 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6711 * dwarf2read.c (process_enumeration_scope): Likewise.
6712 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6714 (class StructMainTypePrettyPrinter): Support also
6715 FIELD_LOC_KIND_ENUMVAL.
6716 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6718 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6719 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6720 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6721 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6723 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6724 accommodate enumval.
6725 (struct call_site): Adjust loc_kind to accommodate enumval.
6726 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6727 (TYPE_FIELD_ENUMVAL): New macros.
6728 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6729 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6731 * p-typeprint.c (pascal_type_print_base): Likewise.
6732 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6734 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6735 * python/py-type.c (convert_field): New variable addrstring. Use
6736 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6737 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6738 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6739 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6741 * valprint.c (generic_val_print): Likewise.
6743 2012-04-17 Doug Evans <dje@google.com>
6745 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6747 * dwarf2read.c: Whitespace fixes.
6748 (lookup_signatured_type): Tweak comment.
6749 (get_die_type_at_offset): Fix comment.
6751 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6753 * xcoffread.c (xcoff_secnum_to_sections): New function.
6754 (secnum_to_section, secnum_to_bfd_section): Reimplement
6755 using xcoff_secnum_to_sections. Rename "secnum" parameter
6757 (RECORD_MINIMAL_SYMBOL): Delete.
6758 (record_minimal_symbol): New function.
6759 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6760 by call to record_minimal_symbol and set misc_func_recorded
6761 to 1. Set last_csect_sec to the XCOFF section index instead
6762 of GDB's section_offset index. Update calls to
6763 prim_record_minimal_symbol_and_info to pass the BFD section
6766 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6768 * xcoffread.c (read_xcoff_symtab): Delete variables
6769 last_csect_val and last_csect_sec and associated code.
6771 2012-04-17 Doug Evans <dje@google.com>
6773 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6774 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6775 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6776 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6778 * cleanups.h: New file.
6779 * cleanups.c: New file.
6780 * Makefile.in (SFILES): Add cleanups.c.
6781 (HFILES_NO_SRCDIR): Add cleanups.h.
6782 (COMMON_OBS): Add cleanups.o.
6783 * defs.h (struct cleanup): Moved to cleanups.h.
6784 (do_cleanups,do_final_cleanups): Ditto.
6785 (discard_cleanups,discard_final_cleanups): Ditto
6786 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6787 (save_cleanups,save_final_cleanups): Ditto.
6788 (restore_cleanups,restore_final_cleanups): Ditto.
6789 (null_cleanup): Ditto.
6790 (make_my_cleanup,make_my_cleanup2): Ditto.
6791 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6792 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6793 (do_cleanups,do_final_cleanups): Ditto.
6794 (discard_cleanups,discard_final_cleanups): Ditto
6795 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6796 (save_cleanups,save_final_cleanups): Ditto.
6797 (restore_cleanups,restore_final_cleanups): Ditto.
6798 (null_cleanup): Ditto.
6799 (make_my_cleanup,make_my_cleanup2): Ditto.
6800 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6802 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6804 (make_cleanup_dyn_string_delete): Ditto.
6805 (make_cleanup_ui_file_delete): Ditto.
6806 (make_cleanup_ui_out_redirect_pop): Ditto.
6807 (make_cleanup_free_section_addr_info): Ditto.
6808 (make_cleanup_restore_integer): Ditto.
6809 (make_cleanup_unpush_target): Ditto.
6810 (make_cleanup_value_free_to_mark): Ditto.
6811 (make_cleanup_value_free): Ditto.
6812 (make_cleanup_free_so): Ditto.
6814 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6816 New option "set debug auto-load".
6817 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6818 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6819 (auto_load_safe_path_vec_update)
6820 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6822 (file_is_auto_load_safe): New parameters debug_fmt and ....
6823 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6824 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6825 caller by explanatory string.
6826 (_initialize_auto_load): Register "set debug auto-load".
6827 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6829 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6830 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6831 by explanatory string.
6832 * main.c (captured_main): Likewise.
6833 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6834 (source_section_scripts): Likewise.
6836 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6838 New option "set auto-load safe-path".
6839 * NEWS: New commands "set auto-load safe-path"
6840 and "show auto-load safe-path".
6841 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6842 (auto_load_safe_path, auto_load_safe_path_vec)
6843 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6844 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6845 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6846 (source_gdb_script_for_objfile): New variable is_safe. Call
6847 file_is_auto_load_safe. Return if it is not.
6848 (struct loaded_script): New field loaded.
6849 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6850 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6851 output "Missing" to "No".
6852 (_initialize_auto_load): New variable cmd. Initialize
6853 auto_load_safe_path. Register "set auto-load safe-path",
6854 "show auto-load safe-path" and "add-auto-load-safe-path".
6855 * auto-load.h (maybe_add_script): Add parameter loaded.
6856 (file_is_auto_load_safe): New declaration.
6857 * config.in: Regenerate.
6858 * configure: Regenerate.
6859 * configure.ac: New parameters --with-auto-load-safe-path
6860 and --without-auto-load-safe-path.
6861 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6862 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6863 * main.c (captured_main): Check file_is_auto_load_safe for
6865 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6866 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6867 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6870 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6872 auto-load: Implementation.
6873 * NEWS: New descriptions for "info auto-load",
6874 "info auto-load gdb-scripts", "info auto-load python-scripts",
6875 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6876 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6877 and "show auto-load-scripts". New description for "set auto-load",
6878 "show auto-load", "set auto-load gdb-scripts",
6879 "show auto-load gdb-scripts", "set auto-load python-scripts",
6880 "show auto-load python-scripts", "set auto-load local-gdbinit",
6881 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6882 "show auto-load libthread-db".
6883 * auto-load.c: Remove include python/python-internal.h. Add includes
6884 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6886 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6887 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6888 (gdbpy_global_auto_load): Rename to ...
6889 (global_auto_load): ... here.
6890 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6891 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6892 (script_language_gdb, source_gdb_script_for_objfile): New.
6893 (struct loaded_script): New field language.
6894 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6896 (maybe_add_script): Add parameter language. Drop redundant
6897 entry.full_path initialization. Initialize entry.language and
6899 (auto_load_objfile_script): Change parameter suffix to language.
6900 Remove the call of maybe_add_script.
6901 Call language->source_script_for_objfile.
6902 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6904 (collect_matching_scripts): Adjust it for
6905 struct collect_matching_scripts_data.
6906 (auto_load_info_scripts_pattern_nl): New variable.
6907 (info_auto_load_scripts): Rename to ...
6908 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6909 for struct collect_matching_scripts_data.
6910 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6911 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6912 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6913 (auto_load_info_cmdlist_get): New.
6914 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6915 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6916 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6917 "info auto-load local-gdbinit".
6918 * auto-load.h (struct script_language): New.
6919 (gdbpy_global_auto_load): Rename to ...
6920 (global_auto_load): ... here.
6921 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6922 (auto_load_local_gdbinit_loaded): New declarations.
6923 (maybe_add_script): New parameter language.
6924 (auto_load_objfile_script): Change parameter suffix to language.
6925 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6926 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6927 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6929 * linux-thread-db.c: Include auto-load.h and ctype.h.
6930 (auto_load_thread_db, show_auto_load_thread_db): New.
6931 (struct thread_db_info): New field filename.
6932 (delete_thread_db_info): Call xfree for FILENAME.
6933 (try_thread_db_load): Initialize FILENAME.
6934 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6935 if !AUTO_LOAD_THREAD_DB.
6936 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6937 (_initialize_thread_db): Install auto_load_thread_db
6938 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6939 as "info auto-load libthread-db".
6940 * main.c (captured_main): Rename gdbpy_global_auto_load to
6941 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6942 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6943 (print_gdb_help): Extend the help for 'local init file'.
6944 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6945 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6946 (auto_load_scripts): Rename to ...
6947 (auto_load_python_scripts): ... here, update the comment.
6948 (gdbpy_load_auto_script_for_objfile): New declaration.
6949 (show_auto_load_python_scripts, script_language_python)
6950 (gdbpy_load_auto_script_for_objfile): New.
6951 (source_section_scripts): Refactor the code.
6952 (load_auto_scripts_for_objfile): Rename to ...
6953 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6954 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6955 (info_auto_load_python_scripts): New.
6956 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6957 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6958 Register "set auto-load-scripts" as its deprecated alias. Register
6959 "info auto-load python-scripts". Register "info auto-load-scripts" as
6960 its deprecated alias.
6961 (load_auto_scripts_for_objfile): Rename to ...
6962 (gdbpy_load_auto_scripts_for_objfile): ... here.
6963 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6964 (gdbpy_load_auto_scripts_for_objfile): ... here.
6966 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6968 auto-load: Move files.
6969 * Makefile.in (SFILES): Add auto-load.c.
6970 (HFILES_NO_SRCDIR): Add auto-load.h.
6971 (COMMON_OBS): Add auto-load.o.
6972 (distclean): Change .gdbinit for gdb-gdb.gdb.
6973 * auto-load.c: New file, with parts from python/py-auto-load.c.
6974 * auto-load.h: New file, with parts from python/python.h.
6975 * configure: Regenerate.
6976 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6977 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6978 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6979 * main.c: Include auto-load.h.
6980 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6981 command.h, observer.h and progspace.h to auto-load.c. Add include
6983 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6984 (struct loaded_script, auto_load_pspace_data)
6985 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6986 (hash_loaded_script_entry, eq_loaded_script_entry)
6987 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6988 (maybe_add_script): Move to auto-load.c.
6989 (source_section_scripts): Change maybe_add_script parameters passing,
6990 use script_not_found_warning_print.
6991 (clear_section_scripts, auto_load_objfile_script)
6992 (auto_load_new_objfile, loaded_script_ptr)
6993 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6994 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6995 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6996 auto_load_new_objfile and info_auto_load_scripts initizations to
6998 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7000 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7003 * charset.c (find_charset_names): Remove variables ix and elt.
7004 Use free_char_ptr_vec.
7005 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7006 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7007 debugdir_end. New variable debugdir_len.
7008 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7009 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7011 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7012 and elt. Use free_char_ptr_vec.
7013 * source.c (add_path): Remove variables argv, arg and argv_index.
7014 New variables dir_vec, back_to, ix and name.
7015 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7016 make_cleanup_freeargv. Remove variable separator. Simplify the code
7017 no longer expecting DIRNAME_SEPARATOR.
7018 (openp): Remove variable p, p1 and len. New variables dir_vec,
7019 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7020 no longer expecting DIRNAME_SEPARATOR.
7021 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7022 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7024 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7025 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7026 (dirnames_to_char_ptr_vec): New functions.
7028 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7031 * source.c (add_path): Remove always true conditional 'p == 0' and
7032 unindent its code block.
7034 2012-04-17 Pedro Alves <palves@redhat.com>
7036 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7037 (FIELD_BITPOS_LVAL): ... this.
7038 (FIELD_BITPOS): New.
7039 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7040 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7041 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7043 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7045 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7046 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7047 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7050 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7052 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7053 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7054 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7055 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7056 * jv-lang.c (java_link_class_type): Likewise, once.
7057 * stabsread.c (read_enum_type): Likewise.
7059 2012-04-16 Yao Qi <yao@codesourcery.com>
7061 * common/agent.c (agent_run_command): Add one more parameter `len'.
7063 * common/agent.h: Update declaration.
7064 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7066 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7068 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7071 * value.c (value_actual_type): New function.
7072 * value.h (value_actual_type): New declaration.
7073 * varobj.c (update_type_if_necessary): New function.
7074 (varobj_create): Call value_actual_type instead of
7076 (install_dynamic_child): distinct changed and type changed MI variable
7078 (update_dynamic_varobj_children): Updated for install_dynamic_child
7079 change. All callers updated.
7080 (varobj_update): Support for MI variable object type change if
7081 the value changed and RTTI is used to determine the type.
7082 (create_child_with_value): Call value_actual_type instead of
7084 (adjust_value_for_child_access): Extended with a new parameter which
7085 specify whether the given value should be casted to enclosing type.
7086 All callers updated.
7088 2012-04-14 Yao Qi <yao@codesourcery.com>
7090 Import gnulib module inttypes from git
7091 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7092 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7093 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7094 gnulib/m4/inttypes-pri.m4
7095 * aclocal.m4, config.in, configure: Regenerated.
7096 * gnulib/Makefile.am: Update.
7097 * gnulib/Makefile.in: Update.
7098 * gnulib/m4/gnulib-cache.m4: Update.
7099 * gnulib/m4/gnulib-comp.m4: Update.
7100 * gnulib/inttypes.in.h: New.
7101 * gnulib/m4/inttypes-pri.m4: New.
7102 * gnulib/m4/inttypes.m4: New.
7104 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7106 * infrun.c (resume): Update PC address to the real PC after
7107 preparing to do displaced stepping.
7109 2012-04-12 Doug Evans <dje@google.com>
7111 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7112 All callers updated.
7114 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7116 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7118 2012-04-12 Doug Evans <dje@google.com>
7120 * dwarf2read.c (create_all_type_units): Renamed from
7121 create_debug_types_hash_table. All callers updated.
7123 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7124 local type_sig to sig_type, type_offset to type_offset_in_tu.
7125 (hash_signatured_type): Renamed from hash_type_signature,
7126 all callers updated.
7127 (eq_signatured_type): Renamed from eq_type_signature,
7128 all callers updated.
7129 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7130 (process_enumeration_scope): Ditto.
7131 (lookup_signatured_type_at_offset): Ditto.
7132 (load_full_type_unit, read_signatured_type): Ditto.
7134 2012-04-12 Yao Qi <yao@codesourcery.com>
7136 * remote.c (async_remote_interrupt): Correct function name in
7138 (async_remote_interrupt_twice): Ditto.
7140 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7142 * source.c (find_and_open_source): Consistently pass resulting
7143 full path through xfullpath.
7145 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7147 Provide more specific displaced-stepping memory error message.
7148 * infrun.c (displaced_step_prepare): New variable status. Call
7149 target_read_memory instead of read_memory, provide more specific
7152 2012-04-11 Tristan Gingold <gingold@adacore.com>
7155 * darwin-nat.c (darwin_execvp): Revert previous patch.
7157 2012-04-11 Tristan Gingold <gingold@adacore.com>
7160 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7163 2012-04-11 Tristan Gingold <gingold@adacore.com>
7165 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7168 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7170 New command 'explore' which helps explore values and types in
7172 * NEWS: Add an entry about the new 'explore' command.
7173 * data-directory/Makefile.in: Add gdb/command/explore.py
7174 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7175 command using the GDB Python API.
7177 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7179 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7180 extension in jump target calculation.
7182 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7184 * mips-tdep.c (mips32_next_pc): Handle JALX.
7186 2012-04-10 Yao Qi <yao@codesourcery.com>
7188 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7190 2012-04-10 Yao Qi <yao@codesourcery.com>
7192 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7193 and gnulib/m4/gnulib-tool.m4.
7195 2012-04-10 Doug Evans <dje@google.com>
7197 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7198 (load_partial_dies): Clarify comment.
7199 (find_partial_die): Support rereading type units.
7200 Clarify CU handling, if we know offset is in CU, don't search for the
7201 containing CU. Add comment regarding memory waste.
7203 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7205 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7206 i386/x32-avx and i386/x32-avx-linux.
7207 (i386/x32-expedite): New.
7208 (i386/x32-linux-expedite): Likewise.
7209 (i386/x32-avx-expedite): Likewise.
7210 (i386/x32-avx-linux-expedite): Likewise.
7211 ($(outdir)/i386/x32.dat): Likewise.
7212 ($(outdir)/i386/x32-linux.dat): Likewise.
7213 ($(outdir)/i386/x32-avx.dat): Likewise.
7214 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7216 * features/i386/x32-avx-linux.xml: New file.
7217 * features/i386/x32-avx.xml: Likewise.
7218 * features/i386/x32-core.xml: Likewise.
7219 * features/i386/x32-linux.xml: Likewise.
7220 * features/i386/x32.xml: Likewise.
7222 * features/i386/x32-avx-linux.c: New. Generated.
7223 * features/i386/x32-avx.c: Likewise.
7224 * features/i386/x32-linux.c: Likewise.
7225 * features/i386/x32.c: Likewise.
7226 * regformats/i386/x32-avx-linux.dat: Likewise.
7227 * regformats/i386/x32-avx.dat: Likewise.
7228 * regformats/i386/x32-linux.dat: Likewise.
7229 * regformats/i386/x32.dat: Likewise.
7231 2012-04-10 Tristan Gingold <gingold@adacore.com>
7233 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7234 code to kill the inferior.
7236 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7238 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7240 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7242 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7243 (yyvsp): New defines.
7244 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7246 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7248 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7250 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7252 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7255 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7257 * sparc64-tdep.c (sparc64_store_arguments)
7258 (sparc64_store_arguments): Fix coding style.
7260 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7262 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7263 complex floats, adjust some related comments and tighten a related
7265 (sparc64_extract_return_value): Handle complex floats.
7267 2012-04-07 Doug Evans <dje@google.com>
7269 * dwarf2read.c (load_partial_dies): Change condition to assert.
7271 2012-04-06 Doug Evans <dje@google.com>
7273 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7276 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7278 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7280 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7281 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7284 2012-04-05 Keith Seitz <keiths@redhat.com>
7286 * linespec.c (decode_compound): Remove.
7287 (enum offset_relative_sign): New enum.
7288 (struct line_offset): New struct.
7289 (struct linespec): New struct.
7290 (struct linespec_state): Move file_symtabs,
7291 user_filename, and user_function into struct linespec.
7292 Make result an anonymous struct holding vectors of
7293 symbolp and minsym_and_objfile_d.
7294 Add language member.
7295 (enum ls_token_type): New enum.
7296 (linespec_keywords): New array.
7297 (struct ls_token): New struct.
7298 (struct ls_parser): New struct.
7299 (linespec_lexer_lex_number): New function.
7300 (linespec_lexer_lex_keyword): New function.
7301 (is_ada_operator): New function.
7302 (skip_quote_char): New function.
7303 (copy_token_string): New function.
7304 (is_closing_quote_enclosed): New function.
7305 (find_parameter_list_end): New function.
7306 (linespec_lexer_lex_string): New function.
7307 (linespec_lexer_lex_one): New function.
7308 (linespec_lexer_consume_token): New function.
7309 (linespec_lexer_peek_token): New function.
7310 (cplusplus_error): Remove unused function.
7311 (find_methods): Update comment.
7312 (find_toplevel_char): Return const.
7313 (is_objc_method_format): Remove unused function.
7314 (find_toplevel_string): New function.
7315 (is_linespec_boundary): Remove.
7316 (symbol_not_found_error): New function.
7317 (find_method_overload_end): Remove function.
7318 (unexpected_linespec_error): New function.
7319 (keep_name_info): Remove.
7320 (linespec_parse_line_offset): New function.
7321 (linespec_parse_basic): New function.
7322 (canonicalize_linespec): New function.
7323 (decode_line_internal): Remove.
7324 (create_sals_line_offset): New function adapted from
7326 (convert_linespec_to_sals): New function.
7327 (parse_linespec): New function.
7328 (linespec_parser_new): New function.
7329 (linespec_state_destructor): Change parameter type to
7330 struct linespec_state *.
7331 Add language parameter.
7332 Remove freeing of moved members.
7333 (linespec_parser_delete): New function.
7334 (decode_line_full): Use parse_linespec and linespec_parser_new.
7335 (decode_line_1): Likewise.
7336 (decode_indirect): Rename to ...
7337 (linespec_expression_to_pc): ... this and rewrite
7338 to simply find CORE_ADDR, storing this result for later
7340 (locate_first_half): Remove.
7341 (deocde_objc): Add parameter LS.
7342 Initialize new struct collect_info members.
7343 Handle minimal symbols, too.
7344 (decode_compound): Delete.
7345 (lookup_prefix_sym): Rewrite.
7346 (compare_msymbols): New function.
7347 (find_method): Rewrite.
7348 Do not call cplusplus_error.
7349 (symtabs_from_filename): Rewrite.
7350 (collect_function_symbols): Delete.
7351 (find_function_symbols): Rewrite without ARGPTR-style
7353 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7354 (decode_dollar): Adapted and renamed to ...
7355 (linespec_parse_variable): ... this.
7356 (find_linespec_symbols): New function.
7357 (decode_label): Adapted and renamed to ...
7358 (find_label_symbols): ... this.
7359 (decode_digits_list_mode): Add and use LS argument.
7360 (decode_digits_ordinary): Likewise.
7361 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7362 If in list mode, allow any symbol class. Otherwise, only
7363 permit LOC_BLOCK symbols.
7364 (minsym_found): Update comments.
7365 (search_minsyms_for_name): Do not convert the matching symbol
7366 into a SAL. Simply push the symbol and objfile into the
7368 (decode_variable): Delete. Contents adapted into
7369 find_linespec_symbols.
7371 * cp-support.c (SKIP_SPACE): Remove.
7372 (operator_tokens): Remove unused global.
7373 (cp_validate_operator): Remove.
7374 * cp-support.h (cp_validate_operator): Remove declaration.
7376 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7378 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7379 for TYPE_VPTR_FIELDNO.
7380 * valprint.c (valprint_check_validity): Make it global, move the
7381 function comment ...
7382 * value.h (valprint_check_validity): ... to this new declaration.
7384 2012-04-02 Tristan Gingold <gingold@adacore.com>
7386 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7387 the STATE32 api for i386 state.
7388 (i386_darwin_store_inferior_registers): Likewise.
7390 2012-04-02 Tristan Gingold <gingold@adacore.com>
7392 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7394 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7397 2012-04-02 Tristan Gingold <gingold@adacore.com>
7400 * darwin-nat.c (darwin_execvp): Set binary preference.
7402 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7404 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7406 2012-03-30 Tom Tromey <tromey@redhat.com>
7408 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7409 of TRY_CATCH. Fix error handling.
7410 * python/py-value.c (convert_value_from_python): Move 'old'
7411 declaration to innermost scope.
7413 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7414 Andrey Smirnov <andrew.smirnov@gmail.com>
7416 -Wshadow warning fix.
7417 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7418 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7419 Adjust code accordingly.
7421 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7423 * ada-lang.c (symbol_completion_add): Rename parameter
7424 "encoded" into "encoded_p". Ajust code and documentation
7427 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7428 Andrey Smirnov <andrew.smirnov@gmail.com>
7430 -Wshadow warning fix.
7431 * ada-lang.c (symbol_completion_add): Rename parameter
7432 "wild_match" into wild_match_p. Update code and documentation
7435 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7437 * ada-lang.c (symbol_completion_match): Rename parameter
7438 "encoded" into "encoded_p". Ajust code and documentation
7441 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7442 Andrey Smirnov <andrew.smirnov@gmail.com>
7444 -Wshadow warning fix.
7445 * ada-lang.c (symbol_completion_match): Rename parameter
7446 "wild_match" into "wild_match_p". Adjust code and function
7447 documentation accordingly.
7449 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7450 Andrey Smirnov <andrew.smirnov@gmail.com>
7452 -Wshadow warning fix.
7453 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7454 "symbol_info" into "info". Adjust code accordingly.
7455 (ada_lookup_symbol): Likewise.
7457 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7459 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7460 of this function's documentation.
7462 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7463 Andrey Smirnov <andrew.smirnov@gmail.com>
7465 -Wshadow warning fix.
7466 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7467 variable into "wild_match_p". Adjust code accordingly.
7469 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7470 Andrey Smirnov <andrew.smirnov@gmail.com>
7472 -Wshadow warning fix.
7473 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7474 parameter into "wild_match_p". Adjust code accordingly.
7475 Document this parameter in the function description.
7477 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7478 Andrey Smirnov <andrew.smirnov@gmail.com>
7480 -Wshadow warning fix.
7481 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7482 "wild_match" parameter to "wild_match_p" (-Wshadow).
7484 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7486 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7487 in function documentation.
7489 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7490 Andrey Smirnov <andrew.smirnov@gmail.com>
7492 -Wshadow warning fix.
7493 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7494 variable into wild_match_p. Adjust code accordingly.
7496 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7497 Andrey Smirnov <andrew.smirnov@gmail.com>
7499 * ada-valprint.c (ada_val_print_1): Move the code handling
7500 TYPE_CODE_ENUM inside its own lexical block. Declare
7501 variables len and val there, instead of in the function's
7502 top level block. Avoid declaring deref_val again in a way
7503 that shadows another variable of the same name declared
7504 in one of the up-level blocks. Just re-use the up-level
7507 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7509 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7510 Replace block_found argument by symbol_info. Adjust
7511 implementation accordingly. Add function documentation.
7512 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7514 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7515 * ada-exp.y (write_object_renaming): Adjust to new
7516 ada_lookup_encoded_symbol API.
7518 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7520 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7523 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7525 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7526 (v850_register_name): Add the mpu and fpu register names.
7527 (v850e_register_name): Add the mpu and fpu register names.
7528 (v850e2_register_name): New function.
7529 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7532 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7534 * NEWS: Add entry for Ada varobj support.
7536 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7538 * varobj.c (default_value_is_changeable_p): New function,
7539 extracted from varobj_value_is_changeable_p. Add declaration.
7540 (ada_value_is_changeable_p): New function, extracted from
7541 varobj_value_is_changeable_p. Add declaration.
7542 (struct language_specific): New field "value_is_changeable_p".
7543 (languages): Add entries for new field.
7544 (varobj_create): Set language before calling install_new_value.
7545 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7546 "value_is_changeable_p" language callback.
7548 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7550 * ada-varobj.h, ada-varobj.c: New files.
7551 * Makefile.in (SFILES): Add ada-varobj.c.
7552 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7553 (COMMON_OBS): Add ada-varobj.o.
7555 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7557 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7558 (struct language_specific): New field "value_has_mutated".
7559 (languages): Set field "value_has_mutated" in each entry of array.
7560 (varobj_value_has_mutated): New function.
7561 (varobj_udpdate): Add handling of type mutation.
7562 (value_of_root): Add handling of type mutation.
7563 (ada_value_has_mutated): New function.
7565 2012-03-28 Pedro Alves <palves@redhat.com>
7567 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7568 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7570 2012-03-28 Tom Tromey <tromey@redhat.com>
7572 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7573 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7576 2012-03-28 Tom Tromey <tromey@redhat.com>
7578 * .dir-locals.el: New file.
7580 2012-03-28 Pedro Alves <palves@redhat.com>
7582 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7584 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7586 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7589 2012-03-27 Pedro Alves <palves@redhat.com>
7591 Eliminate struct ui_stream.
7593 * ui-out.h (struct ui_stream): Delete.
7594 (ui_out_field_stream): Adjust prototype.
7595 (ui_out_stream_new, ui_out_stream_delete)
7596 (make_cleanup_ui_out_stream_delete): Delete declarations.
7597 * ui-out.c (ui_out_field_stream): Change prototype to take a
7598 ui_file instead of a ui_stream. Adjust.
7599 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7600 (make_cleanup_ui_out_stream_delete): Delete.
7601 * breakpoint.c (print_breakpoint_location)
7602 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7603 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7604 * disasm.c (dump_insns): Ditto.
7605 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7607 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7608 ui_stream/ui_out_stream_new.
7609 * infcmd.c (print_return_value): Ditto.
7610 * osdata.c (info_osdata_command): Don't allocate a local
7612 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7613 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7614 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7615 allocate a local ui_stream.
7616 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7617 instead of ui_stream/ui_out_stream_new.
7618 (list_args_or_locals): Don't allocate a local ui_stream.
7619 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7620 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7621 ui_stream/ui_out_stream_new.
7622 * cli/cli-setshow.c (do_setshow_command): Ditto.
7624 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7626 * arm-linux-tdep.c (arm_linux_init_abi): Call
7627 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7628 * arm-tdep.c (arm_process_record): New function.
7629 (deallocate_reg_mem): New function.
7630 (decode_insn): New function.
7631 (thumb_record_branch): New function.
7632 (thumb_record_ldm_stm_swi(): New function.
7633 (thumb_record_misc): New function.
7634 (thumb_record_ld_st_stack): New function.
7635 (thumb_record_ld_st_imm_offset): New function.
7636 (thumb_record_ld_st_reg_offset(): New function.
7637 (thumb_record_add_sub_cmp_mov): New function.
7638 (thumb_record_shift_add_sub): New function.
7639 (arm_record_coproc_data_proc): New function.
7640 (arm_record_coproc): New function.
7641 (arm_record_b_bl): New function.
7642 (arm_record_ld_st_multiple): New function.
7643 (arm_record_ld_st_reg_offset): New function.
7644 (arm_record_ld_st_imm_offset): New function.
7645 (arm_record_data_proc_imm): New function.
7646 (arm_record_data_proc_misc_ld_str): New function.
7647 (arm_record_extension_space): New function.
7648 (arm_record_strx): New function.
7649 (sbo_sbz): New function.
7650 (struct insn_decode_record): New structure for arm insn record.
7651 (REG_ALLOC): New macro for reg allocations.
7652 (MEM_ALLOC): New macro for memory allocations.
7653 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7655 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7657 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7658 (store_register): Likewise.
7660 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7662 * MAINTAINERS (Write After Approval): Add myself to the list.
7664 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7666 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7667 Describe also the option "auto".
7669 2012-03-22 Richard Henderson <rth@redhat.com>
7671 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7672 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7674 2012-03-22 Richard Henderson <rth@redhat.com>
7676 * jit.c (jit_read_code_entry): Compute alignment and offset of
7677 int64_t member before computing entry_size.
7679 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7681 Python scripting: Add new method Value.referenced_value to
7682 gdb.Value which can dereference pointer as well as reference
7684 * NEWS: Add entry under 'Python scripting' about the new method
7685 Value.referenced_value on gdb.Value objects.
7686 * python/py-value.c (valpy_referenced_value): New function
7687 defining a new method on gdb.Value objects which can dereference
7688 pointer and reference values.
7690 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7692 * MAINTAINERS (Write After Approval): Add myself to the list.
7694 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7696 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7697 in addition to "main".
7699 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7701 * expression.h (op_name): Add declaration.
7702 * expprint.c (op_name): Remove declaration. Make non-static.
7703 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7705 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7707 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7709 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7710 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7711 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7712 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7713 (linux_nat_get_siginfo): Likewise.
7714 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7715 (linux_nat_get_siginfo): Likewise.
7716 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7717 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7718 * procfs.c (gdb_siginfo_t): Likewise.
7720 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7722 * .gitignore: Ignore more files.
7724 2012-03-20 Pedro Alves <palves@redhat.com>
7726 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7729 2012-03-20 Yao Qi <yao@codesourcery.com>
7731 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7734 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7736 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7737 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7738 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7740 * dwarf2expr.h (cu_offset, sect_offset): New types.
7741 (struct dwarf_expr_context_funcs) <dwarf_call>
7742 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7744 (struct dwarf_expr_context) <len>: Improve the comment.
7745 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7746 cu_offset and sect_offset.
7747 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7748 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7749 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7750 * dwarf2loc.h: Include dwarf2expr.h.
7751 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7753 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7754 Improve the comment.
7755 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7756 (struct signatured_type, struct line_header, struct partial_die_info)
7757 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7758 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7759 (get_die_type_at_offset, create_cus_from_index)
7760 (create_signatured_type_table_from_index, dw2_get_file_names)
7761 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7762 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7763 (create_debug_types_hash_table, process_psymtab_comp_unit)
7764 (load_partial_comp_unit, create_all_comp_units)
7765 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7766 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7767 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7768 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7769 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7770 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7771 (find_partial_die, read_attribute_value, lookup_die_type)
7772 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7773 (is_ref_attr): New function comment.
7774 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7775 Use cu_offset and sect_offset.
7776 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7777 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7778 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7779 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7780 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7781 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7782 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7785 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7788 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7789 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7791 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7793 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7795 * NEWS: Describe new options --init-command=FILE, -ix and
7796 --init-eval-command=COMMAND, -iex.
7797 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7798 CMDARG_INIT_COMMAND.
7799 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7800 "init-command", "init-eval-command", "ix" and "iex" to the variable
7801 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7802 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7803 (print_gdb_help): Describe --init-command=FILE, -ix and
7804 --init-eval-command=COMMAND, -iex.
7806 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7809 * main.c (struct cmdarg): Move it here from main. Add more comments.
7810 (cmdarg_s, VEC (cmdarg_s)): New.
7811 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7812 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7813 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7814 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7817 2012-03-19 Tom Tromey <tromey@redhat.com>
7819 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7821 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7824 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7827 2012-03-16 Chris January <chris.january@allinea.com>
7829 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7832 2012-03-16 Chris January <chris.january@allinea.com>
7834 * source.c (add_path): Use memmove instead of strcpy because the
7837 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7839 * value.h (set_value_parent): Add declaration.
7840 * value.c (set_value_parent): New function.
7841 (value_address): If VALUE->PARENT is not NULL, then use it as
7842 the base address instead of VALUE->LOCATION.address.
7843 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7844 the same as OBJ's address. Adjust V's offset accordingly.
7847 2012-03-16 Gary Benson <gbenson@redhat.com>
7849 PR breakpoints/10738
7850 * dwarf2read.c (use_deprecated_index_sections): New global.
7851 (struct partial_die_info): New member may_be_inlined.
7852 (read_partial_die): Set may_be_inlined where appropriate.
7853 (add_partial_subprogram): Add partial symbols for partial
7854 DIEs that may be inlined.
7855 (new_symbol_full): Add inlined subroutines to the current
7857 (write_psymtabs_to_index): Bump version number.
7858 (dwarf2_read_index): Read only version 6 indices unless
7859 use_deprecated_index_sections is set.
7860 * linespec.c (symbol_and_data_callback): New structure.
7861 (iterate_inline_only): New function.
7862 (iterate_over_all_matching_symtabs): New argument
7863 "include_inline". If nonzero, also call the callback for
7864 symbols representing inlined subroutines.
7865 (lookup_prefix_sym): Pass extra argument to the above.
7866 (find_function_symbols): Likewise.
7867 (add_matching_symbols_to_info): Likewise.
7868 * NEWS: Mention that GDB can now set breakpoints on inlined
7871 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7873 * p-typeprint.c (pascal_type_print_method_args):
7874 Fix display of parameter of methods.
7876 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7878 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7879 Add missing prototype.
7881 2012-03-16 Yao Qi <yao@codesourcery.com>
7882 Jan Kratochvil <jan.kratochvil@redhat.com>
7884 Fix false compilation warning.
7885 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7887 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7888 Pedro Alves <pedro@codesourcery.com>
7890 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7891 (arm_register_g_packet_guesses): New function.
7892 (arm_gdbarch_init): Don't force a target description with
7893 registers when the executable is detected as M-profile. Instead
7894 set gdbarch->tdep->is_m. Register `g' packet guesses.
7895 (_initialize_arm_tdep): Initialize the new target description.
7896 * features/arm-with-m-fpa-layout.xml: New description.
7897 * features/arm-with-m-fpa-layout.c: New, generated.
7899 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7901 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7902 Update function description.
7903 (insert_bp_location): Do not wipe bl->target_info out.
7904 * mem-break.c: #include "gdb_string.h".
7905 (default_memory_insert_breakpoint): Do not call target_read_memory
7906 with a pointer to the breakpoint's shadow_contents buffer. Use
7907 a local buffer instead.
7908 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7910 2012-03-15 Tom Tromey <tromey@redhat.com>
7912 * NEWS: Mention "info vtbl", not "info vtable".
7913 * cp-support.c (info_vtbl_command): Fix comment.
7914 (_initialize_cp_support): Fix text.
7916 2012-03-15 Tom Tromey <tromey@redhat.com>
7918 * cp-valprint.c (cp_print_value_fields): Use
7919 print_function_pointer_address for vtable slot.
7921 2012-03-15 Tom Tromey <tromey@redhat.com>
7923 * gnu-v3-abi.c (struct value_and_voffset): New.
7924 (hash_value_and_voffset, eq_value_and_voffset)
7925 (compare_value_and_voffset, compute_vtable_size)
7926 (print_one_vtable, gnuv3_print_vtable): New functions.
7927 (init_gnuv3_ops): Initialize 'print_vtable' field.
7928 * cp-support.c (info_vtbl_command): New function.
7929 (_initialize_cp_support): Add "info vtbl".
7930 * cp-abi.h (cplus_print_vtable): Declare.
7931 (struct cp_abi_ops) <print_vtable>: New field.
7932 * cp-abi.c (cplus_print_vtable): New function.
7935 2012-03-15 Tom Tromey <tromey@redhat.com>
7937 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7938 iterate_over_symbols.
7940 2012-03-14 Doug Evans <dje@google.com>
7942 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7943 DW_OP_GNU_parameter_ref.
7945 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7947 Fix double prompt of 'interpreter-exec mi'.
7948 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7949 (mi_interpreter_resume): use it.
7950 (mi_execute_command_input_handler): New function.
7951 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7952 mi_execute_command_input_handler.
7954 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7956 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7958 (darwin_debug_port_info): Make static.
7959 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7960 * machoread.c (_initialize_machoread): Add prototype.
7961 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7962 (i386_darwin_set_control, i386_darwin_get_control)
7963 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7964 i386_darwin_get_status, i386_darwin_get_control):
7965 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7967 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7969 * ax-gdb.c (gen_usual_unary): Remove special handling of
7970 enum and bool types.
7972 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7974 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7976 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7978 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7980 2012-03-13 Chris January <chris.january@allinea.com>
7982 * aix-thread.c (fill_sprs): Store the floating point registers
7983 at the correct offsets into vals.
7985 2012-03-13 Doug Evans <dje@google.com>
7987 * NEWS: Mention symbol-reloading has been deleted.
7988 * symfile.c (symbol_reloading): Delete.
7989 (show_symbol_reloading): Delete.
7990 (_initialize_symfile): Delete set/show symbol-reloading.
7992 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7993 read_in_chain until we have successfully read it in.
7994 (load_full_comp_unit): Ditto.
7995 (read_signatured_type): Add comment.
7997 2012-03-13 Chris January <chris.january@allinea.com>
7999 * stabsread.c (fix_common_block): Change type of valu argument
8002 2012-03-13 Chris January <chris.january@allinea.com>
8004 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8007 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8009 * common/linux-procfs.c (linux_proc_get_int): New, from
8010 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8012 (linux_proc_get_tgid): Only call linux_proc_get_int.
8013 (linux_proc_get_tracerpid): New.
8014 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8015 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8016 linux_proc_pid_has_state.
8017 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8018 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8019 (linux_ptrace_attach_warnings): New.
8020 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8022 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8023 (linux_nat_attach): New variables ex, buffer, message and message_s.
8024 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8026 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8028 * Makefile.in (linux-ptrace.o): New.
8029 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8031 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8032 * common/linux-ptrace.c: New file.
8033 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8034 * config/arm/linux.mh: Likewise.
8035 * config/i386/linux.mh: Likewise.
8036 * config/i386/linux64.mh: Likewise.
8037 * config/ia64/linux.mh: Likewise.
8038 * config/m32r/linux.mh: Likewise.
8039 * config/m68k/linux.mh: Likewise.
8040 * config/mips/linux.mh: Likewise.
8041 * config/pa/linux.mh: Likewise.
8042 * config/powerpc/linux.mh: Likewise.
8043 * config/powerpc/ppc64-linux.mh: Likewise.
8044 * config/powerpc/spu-linux.mh: Likewise.
8045 * config/s390/s390.mh: Likewise.
8046 * config/sparc/linux.mh: Likewise.
8047 * config/sparc/linux64.mh: Likewise.
8048 * config/xtensa/linux.mh: Likewise.
8049 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8050 common/linux-procfs.c.
8051 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8053 2012-03-13 Hui Zhu <teawater@gmail.com>
8054 Pedro Alves <palves@redhat.com>
8056 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8057 CREATE_BREAKPOINT_FLAGS_INSERTED.
8058 (create_breakpoint_sal, create_breakpoints_sal)
8059 (base_breakpoint_create_breakpoints_sal)
8060 (tracepoint_create_breakpoints_sal)
8061 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8063 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8064 (ftrace_command, strace_command): Adjust.
8065 (create_tracepoint_from_upload): Pass
8066 CREATE_BREAKPOINT_FLAGS_INSERTED.
8067 * breakpoint.h (enum breakpoint_create_flags): New.
8068 (create_breakpoint): New flags parameter.
8069 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8070 * python/py-breakpoint.c (bppy_init): Adjust.
8071 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8072 * spu-tdep.c (spu_catch_start): Adjust.
8074 2012-03-13 Pedro Alves <palves@redhat.com>
8075 Hui Zhu <teawater@gmail.com>
8076 Yao Qi <yao@codesourcery.com>
8078 * remote.c (struct remote_state): New field `starting_up'.
8079 (remote_start_remote): Set and clear it.
8080 (remote_can_download_tracepoint): If starting up, return false.
8082 2012-03-13 Yao Qi <yao@codesourcery.com>
8084 * inferior.h (struct inferior): Remove fields any_syscall_count,
8085 syscalls_counts and total_syscalls_count. Move them to new
8086 struct catch_syscall_inferior_data in breakpoint.c.
8087 * breakpoint.c: Call DEF_VEC_I(int).
8088 (struct catch_syscall_inferior_data): New.
8089 (get_catch_syscall_inferior_data): New.
8090 (catch_syscall_inferior_data_cleanup): New.
8091 (insert_catch_syscall): Update to access data in
8092 struct catch_syscall_inferior_data.
8093 (insert_catch_syscall): Likewise.
8094 (remove_catch_syscall): Likewise.
8095 (remove_catch_syscall): Likewise.
8096 (is_syscall_catchpoint_enabled): Likewise.
8097 (add_catch_command): Likewise.
8098 (_initialize_breakpoint): Register cleanup.
8099 * breakpoint.h: Removed DEF_VEC_I(int).
8100 * dwarf2loc.c: Call DEF_VEC_I(int).
8101 * mi/mi-main.c: Likewise.
8103 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8105 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8107 2012-03-12 Chris January <chris.january@allinea.com>
8109 * aix-thread.c (_initialize_aix_thread): Add prototype.
8110 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8111 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8113 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8115 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8116 include of "amd64-nat.h".
8118 2012-03-12 Tom Tromey <tromey@redhat.com>
8120 * buildsym.c (record_pending_block): Now static.
8121 * buildsym.h: (record_pending_block): Remove.
8123 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8125 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8127 2012-03-09 Tom Tromey <tromey@redhat.com>
8129 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8130 producer_is_gxx_lt_4_6>: New fields.
8131 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8133 2012-03-09 Tom Tromey <tromey@redhat.com>
8135 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8137 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8139 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8142 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8144 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8146 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8148 Fix -Wmissing-prototypes build.
8149 * arm-linux-nat.c (get_thread_id): Make it static.
8150 * xtensa-linux-nat.c (get_thread_id): Likewise.
8152 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8154 * server.c (process_point_options): If a conditional expression
8155 is found, only print a message if remote_debug is nonzero.
8157 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8159 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8160 of internal error for unknown/unsupported types.
8162 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8164 Fix CU relative vs. absolute DIE offsets.
8165 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8166 offset to offset_in_cu.
8167 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8169 (dwarf2_fetch_die_location_block): Rename parameter offset to
8170 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8172 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8174 * libunwind-frame.c: Rename to ...
8175 * ia64-libunwind-tdep.c: ... here.
8176 * libunwind-frame.h: Rename to ...
8177 * ia64-libunwind-tdep.h: ... here.
8178 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8179 ia64-libunwind-tdep.h.
8180 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8181 * README (--with-libunwind): Rename to ...
8182 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8183 * config.in: Regenerate.
8184 * configure: Regenerate.
8185 * configure.ac: New option --with-libunwind-ia64, make the
8186 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8187 Remove AC_DEFINE for HAVE_LIBUNWIND.
8188 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8189 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8190 Rename libunwind-frame in the general comment.
8191 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8192 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8193 Move forward declarations inside #ifndef. Rename libunwind-frame in
8194 the general comment.
8195 * ia64-tdep.c: Rename libunwind-frame.h #include to
8196 ia64-libunwind-tdep.h.
8197 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8198 (ia64_libunwind_descr): Rename libunwind-frame to
8199 ia64-libunwind-tdep in these function comments.
8200 * ia64-tdep.h: Rename libunwind-frame.h #include to
8201 ia64-libunwind-tdep.h.
8202 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8203 ia64-libunwind-tdep in that data comment.
8205 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8207 * libunwind-frame.h (struct frame_unwind): New declaration.
8209 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8211 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8212 "set breakpoint condition-evaluation" command.
8214 2012-03-08 Tristan Gingold <gingold@adacore.com>
8216 * sparc-stub.c: Move to stubs/
8217 * sh-stub.c: Likewise.
8218 * m68k-stub.c: Likewise.
8219 * m32r-stub.c: Likewise.
8220 * i386-stub.c: Likewise.
8222 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8224 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8225 linux_get_siginfo_type.
8227 * m68klinux-nat.c: Include "gdb_proc_service.h".
8228 (PTRACE_GET_THREAD_AREA): Define.
8229 (ps_get_thread_area): New function.
8231 2012-03-08 Yao Qi <yao@codesourcery.com>
8233 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8235 (remote_query_attached): Likewise.
8236 (remote_static_tracepoint_marker_at): Likewise.
8237 (remote_set_permissions): Likewise.
8238 (remote_detach_1, extended_remote_attach_1): Likewise.
8239 (send_g_packet, remote_vkill): Likewise.
8240 (extended_remote_disable_randomization): Likewise.
8241 (remote_add_target_side_condition): Likewise.
8242 (remote_insert_breakpoint): Likewise.
8243 (remote_remove_breakpoint): Likewise.
8244 (remote_insert_watchpoint): Likewise.
8245 (remote_remove_watchpoint): Likewise.
8246 (remote_insert_hw_breakpoint): Likewise.
8247 (remote_insert_hw_breakpoint): Likewise.
8248 (remote_remove_hw_breakpoint): Likewise.
8249 (remote_download_command_source): Likewise.
8250 (remote_download_tracepoint): Likewise.
8251 (remote_download_trace_state_variable): Likewise.
8252 (remote_disable_tracepoint): Likewise.
8253 (remote_trace_set_readonly_regions): Likewise.
8254 (remote_get_tracepoint_status): Likewise.
8255 (remote_trace_find): Likewise.
8256 (remote_get_trace_state_variable_value): Likewise.
8257 (remote_set_disconnected_tracing): Likewise.
8258 (remote_set_circular_trace_buffer): Likewise.
8259 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8260 (remote_use_agent): Likewise.
8261 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8264 2012-03-07 Pedro Alves <palves@redhat.com>
8266 * NEWS: Mention QProgramSignals.
8267 * inferior.h (update_signals_program_target): Declare.
8268 * infrun.c: (update_signals_program_target): New.
8269 (handle_command): Update the target of the new program signals
8271 * remote.c (PACKET_QProgramSignals): New enum.
8272 (last_program_signals_packet): New global.
8273 (remote_program_signals): New.
8274 (remote_start_remote): Update the target with the program signals
8276 (remote_protocol_features): Add entry for QPassSignals.
8277 (remote_open_1): Free anc clear last_program_signals_packet.
8278 (init_remote_ops): Install remote_program_signals.
8279 * target.c (update_current_target): Adjust.
8280 (target_program_signals): New.
8281 * target.h (struct target_ops) <to_program_signals>: New field.
8282 (target_program_signals): Declare.
8284 2012-03-07 Pedro Alves <palves@redhat.com>
8286 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8289 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8291 * m68klinux-nat.c (getregs_supplies): Make static.
8292 (getfpregs_supplies): Likewise.
8293 (have_ptrace_getregs): Likewise.
8295 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8297 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8298 in call to get_die_type_at_offset.
8300 2012-03-06 Stan Shebs <stan@codesourcery.com>
8302 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8303 * mi/mi-cmd-disas.c: Ditto.
8304 * mi/mi-cmd-env.c: Ditto.
8305 * mi/mi-cmd-file.c: Ditto.
8306 * mi/mi-cmd-stack.c: Ditto.
8307 * mi/mi-cmd-target.c: Ditto.
8308 * mi/mi-cmd-var.c: Ditto.
8309 * mi/mi-cmds.c: Ditto.
8310 * mi/mi-cmds.h: Ditto.
8311 * mi/mi-console.c: Ditto.
8312 * mi/mi-getopt.c: Ditto.
8313 * mi/mi-getopt.h: Ditto.
8314 * mi/mi-interp.c: Ditto.
8315 * mi/mi-main.c: Ditto.
8316 * mi/mi-out.c: Ditto.
8317 * mi/mi-parse.c: Ditto.
8318 * mi/mi-parse.h: Ditto.
8319 * mi/mi-symbol-cmds.c: Ditto.
8321 * mi/mi-getopt.h: Move mi_opt struct up.
8322 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8324 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8326 2012-03-06 Tom Tromey <tromey@redhat.com>
8328 * proc-service.c (ps_pglobal_lookup): Set the current program
8331 2012-03-06 Pedro Alves <palves@redhat.com>
8333 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8335 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8337 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8339 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8342 * common/linux-osdata.c (linux_common_core_of_thread): New function
8344 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8345 call by linux_common_core_of_thread.
8346 (linux_nat_core_of_thread_1): Remove.
8347 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8348 * linux-thread-db.c: Include linux-osdata.h.
8349 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8350 linux_common_core_of_thread.
8352 2012-03-05 Tom Tromey <tromey@redhat.com>
8354 * value.c (value_primitive_field): Don't fetch contents for
8357 2012-03-05 Tom Tromey <tromey@redhat.com>
8359 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8361 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8363 * s390-nat.c: Include "gregset.h".
8365 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8367 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8368 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8369 (libunwind_load): New variable so_error, use it for dlerror. Try to
8370 load also LIBUNWIND_SO_7.
8372 2012-03-05 Pedro Alves <palves@redhat.com>
8374 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8375 is not NULL, and remove resulting dead code.
8377 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8379 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8380 prologue to sh_analyze_prologue.
8381 (sh_analyze_prologue): Make better use of such an upper limit, and
8382 generally be more cautious about accessing memory.
8384 2012-03-05 Tom Tromey <tromey@redhat.com>
8386 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8387 _initialize_ia64_hpux_tdep.
8389 2012-03-05 Pedro Alves <palves@redhat.com>
8393 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8394 the register state is clear, supply explicit zero, instead of
8395 marking the register unavailable.
8397 2012-03-05 Tristan Gingold <gingold@adacore.com>
8399 * NEWS: Mention OpenVMS ia64 new target.
8401 2012-03-05 Tristan Gingold <gingold@adacore.com>
8403 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8404 (ia64_unw_accessors, ia64_unw_rse_accessors)
8405 (ia64_libunwind_descr): Declare.
8406 * ia64-vms-tdep.c: New file.
8407 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8408 (ia64_libunwind_descr): Make them public.
8409 * configure.tgt: Add ia64-*-*vms*.
8410 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8411 (ALLDEPFILES): Add ia64-vms-tdep.c
8413 2012-03-05 Tristan Gingold <gingold@adacore.com>
8415 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8416 * remote.c (PACKET_qXfer_uib): New enum value.
8417 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8418 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8419 (_initialize_remote): Call add_packet_config_cmd for
8422 2012-03-05 Tristan Gingold <gingold@adacore.com>
8424 * osabi.c (gdb_osabi_names): Add OpenVMS.
8425 (generic_elf_osabi_sniffer): Likewise.
8426 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8428 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8430 Removed unused code.
8431 * libunwind-frame.c (libunwind_frame_unwind)
8432 (libunwind_frame_base_address): Remove.
8433 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8435 2012-03-04 Yao Qi <yao@codesourcery.com>
8437 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8438 remove trailing new line.
8439 (agent_run_command, agent_run_command): Add _ markup.
8440 (agent_capability_check): Likewise.
8442 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8444 * breakpoint.c (set_condition_evaluation_mode): Set
8445 CONDITION_EVALUATION_MODE unconditionally.
8447 2012-03-03 Yao Qi <yao@codesourcery.com>
8449 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8450 * common/agent.h: Update declaration.
8451 * inf-child.c (inf_child_use_agent): New.
8452 (inf_child_can_use_agent): New.
8453 (inf_child_target): Initialize fields `to_use_agent'
8454 and `to_can_use_agent'.
8455 * agent.c (agent_new_objfile): New.
8456 (_initialize_agent): Add agent_new_objfile to new_objfile
8459 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8461 (linux_target_install_ops): Initialize field
8462 `to_static_tracepoint_markers_by_strid'.
8463 * remote.c (free_current_marker): Move it to ...
8464 * tracepoint.c (free_current_marker): ... here. New.
8465 (cleanup_target_stop): New.
8466 * tracepoint.h: Declare free_current_marker.
8467 * NEWS: Add one entry about `info static-tracepoint-marker'.
8469 2012-03-03 Yao Qi <yao@codesourcery.com>
8471 * common/agent.c (agent_loaded_p): New.
8472 (agent_look_up_symbols): New global.
8473 * common/agent.h: Declare agent_loaded_p.
8475 2012-03-03 Yao Qi <yao@codesourcery.com>
8477 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8478 (agent_capability_check, agent_capability_invalidate): New.
8479 (symbol_list): New array element.
8480 * common/agent.h (enum agent_capa): New.
8481 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8483 2012-03-03 Yao Qi <yao@codesourcery.com>
8485 * target.h (struct target_ops) <to_use_agent>: New field.
8486 (struct target_ops) <to_can_use_agent>: New field.
8487 (target_use_agent, target_can_use_agent): New macro.
8488 * target.c (update_current_target): Update.
8489 * remote.c: New enum `PACKET_QAgent'.
8490 (remote_protocol_features): Add a new element.
8491 (remote_use_agent, remote_can_use_agent): New.
8492 (init_remote_ops): Initialize field `can_use_agent' with
8493 remote_can_use_agent. Intiailize field `use_agent' with
8495 * common/agent.c (use_agent): New global.
8496 * common/agent.h: Declare it.
8497 * tracepoint.c (info_static_tracepoint_markers_command): Add
8499 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8500 (COMMON_OBS): Add common/agent.o and agent.o
8501 (common-agent.o): New rule.
8504 2012-03-03 Yao Qi <yao@codesourcery.com>
8506 * common/agent.c: New.
8507 * common/agent.h: New.
8508 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8510 * configure, configh.in: Regenerated.
8512 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8514 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8515 unless it exists for this architecture.
8517 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8519 * language.h (struct language_defn): New "method" la_read_var_value.
8520 * findvar.c: #include "language.h".
8521 (default_read_var_value): Renames read_var_value. Rewrite
8522 function description.
8523 (read_var_value): New function.
8524 * value.h (default_read_var_value): Add prototype.
8525 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8527 (ada_language_defn): Add entry for la_read_var_value.
8528 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8529 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8530 language_defn structures to add entry for new la_read_var_value
8533 2012-03-02 Tom Tromey <tromey@redhat.com>
8534 Pedro Alves <palves@redhat.com>
8536 PR breakpoints/13776:
8537 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8539 (delete_longjmp_breakpoint_at_next_stop): New.
8540 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8541 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8542 before deleting the inferior. Add comments.
8543 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8544 breakpoints immediately, but only on next stop. Move that code
8545 next to where we mark other breakpoints for deletion.
8547 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8549 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8551 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8554 2012-03-02 Pedro Alves <palves@redhat.com>
8556 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8558 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8560 Fix -Wmissing-prototypes build.
8561 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8562 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8563 (gdbsim_has_memory): Likewise.
8565 2012-03-02 Yao Qi <yao@codesourcery.com>
8567 Fix -Wmissing-prototypes build.
8568 * charset.c (phony_iconv_open): Make static.
8569 (phony_iconv_close, phony_iconv): Likewise.
8570 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8571 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8573 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8574 * ser-mingw.c (create_select_thread): Make static.
8575 * windows-termcap.c (tgetent): New prototype.
8576 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8578 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8580 Fix -Wmissing-prototypes build.
8581 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8582 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8583 (_initialize_loadable): New prototypes.
8585 2012-03-02 Doug Evans <dje@google.com>
8587 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8588 abbrev table, read_comp_unit will do it.
8590 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8592 Fix -Wmissing-prototypes build.
8593 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8594 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8595 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8596 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8597 (_initialize_arm_symbian_tdep): New prototype.
8598 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8599 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8600 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8602 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8603 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8605 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8606 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8607 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8609 * moxie-tdep.c (moxie_process_record): Likewise.
8610 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8611 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8612 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8613 (_initialize_rl78_tdep): New prototype.
8614 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8615 (_initialize_rx_tdep): New prototype.
8616 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8617 (_initialize_darwin_solib): New prototype.
8618 * solib-spu.c: Include solib-spu.h.
8619 (_initialize_spu_solib): New prototype.
8620 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8621 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8622 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8623 (tic6x_software_single_step): Make it static.
8624 (_initialize_tic6x_tdep): New prototype.
8626 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8628 Fix -Wmissing-prototypes build.
8629 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8630 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8632 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8634 Fix -Wmissing-prototypes build.
8635 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8636 (frv_have_stopped_data_address): Remove.
8638 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8640 Fix -Wmissing-prototypes build.
8641 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8642 * sh-tdep.c: Include sh64-tdep.h.
8643 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8644 * sh64-tdep.c: Include sh64-tdep.h.
8645 * sh64-tdep.h: New file.
8647 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8649 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8651 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8653 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8654 sp_regnum once the gdbarch_init_osabi hook has been called.
8656 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8658 * mips-tdep.c (mips32_bc1_pc): New function.
8659 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8660 BPOSGE32 and BPOSGE64 instructions.
8661 (deal_with_atomic_sequence): Likewise.
8662 (mips32_instruction_has_delay_slot): Likewise.
8664 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8665 Chris Dearman <chris@mips.com>
8666 Maciej W. Rozycki <macro@codesourcery.com>
8667 Joseph Myers <joseph@codesourcery.com>
8669 * features/mips-dsp.xml: New file.
8670 * features/mips64-dsp.xml: New file.
8671 * features/mips-dsp-linux.xml: New file.
8672 * features/mips64-dsp-linux.xml: New file.
8673 * features/Makefile (WHICH): Add mips-dsp-linux and
8675 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8676 * features/mips-dsp-linux.c: New file.
8677 * features/mips64-dsp-linux.c: New file.
8678 * regformats/mips-dsp-linux.dat: New file.
8679 * regformats/mips64-dsp-linux.dat: New file.
8680 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8682 (mips64_linux_register_addr): Likewise.
8683 (mips64_linux_regsets_fetch_registers): Likewise.
8684 (mips64_linux_regsets_store_registers): Likewise.
8685 (mips64_linux_fetch_registers): Update call to
8686 mips64_linux_regsets_fetch_registers.
8687 (mips64_linux_store_registers): Update call to
8688 mips64_linux_regsets_store_registers.
8689 (mips_linux_read_description): Probe for DSP registers.
8690 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8691 and initialize_tdesc_mips64_dsp_linux.
8692 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8693 Remove padding of no longer used embedded register slots.
8694 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8695 (MIPS_RESTART_REGNUM): Redefine enum value.
8696 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8698 (mips_tx39_reg_names): Likewise.
8699 (mips_linux_reg_names): New array of register names for Linux
8701 (mips_register_name): Check for a null pointer in
8702 mips_processor_reg_names and return an empty string.
8703 (mips_register_type): Exclude embedded registers for the IRIX
8705 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8706 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8708 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8709 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8710 (mips_gdbarch_init): Likewise. Initialize internal register
8711 indices for the Linux ABI. Use dynamic numbers to refer to
8712 registers, as applicable, while parsing the target description.
8713 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8715 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8717 * frame.h (read_frame_register_unsigned): Fix typo in function
8720 2012-03-01 Pedro Alves <palves@redhat.com>
8722 * jit-reader.in [!__cplusplus]
8723 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8725 2012-03-01 Pedro Alves <palves@redhat.com>
8727 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8728 * configure: Regenerate.
8730 2012-03-01 Pedro Alves <palves@redhat.com>
8732 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8733 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8734 (ftrace_command, strace_command): Make static.
8735 * d-lang.c (_initialize_d_language): Declare.
8736 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8737 * dwarf2loc.c (_initialize_dwarf2loc):
8738 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8739 * exec.c (exec_get_section_table): Make static.
8740 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8741 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8742 * inferior.c (remove_inferior_command, add_inferior_command)
8743 (clone_inferior_command): Make static.
8744 * linux-nat.c (linux_nat_thread_address_space)
8745 (linux_nat_core_of_thread): Make static.
8746 * linux-tdep.c (_initialize_linux_tdep): Declare.
8747 * objc-lang.c (_initialize_objc_lang): Declare.
8748 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8750 (_initialize_opencl_language): Declare.
8751 * record.c (_initialize_record): Declare.
8752 * remote.c (demand_private_info, remote_get_tib_address)
8753 (remote_supports_cond_tracepoints)
8754 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8756 * skip.c (_initialize_step_skip): Declare.
8757 * symtab.c (skip_prologue_using_lineinfo): Make static.
8758 * tracepoint.c (delete_trace_state_variable)
8759 (trace_variable_command, delete_trace_variable_command)
8760 (get_uploaded_tsv, find_matching_tracepoint_location)
8761 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8763 * value.c (pack_unsigned_long): Make static.
8764 * varobj.c (varobj_ensure_python_env): Make static.
8765 * windows-tdep.c (_initialize_windows_tdep): Declare.
8766 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8768 2012-03-01 Pedro Alves <palves@redhat.com>
8770 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8772 (linux_init_abi): Install it as has_shared_address_space gdbarch
8775 2012-03-01 Pedro Alves <palves@redhat.com>
8777 * observer.c (observer_test_first_notification_function)
8778 (observer_test_second_notification_function)
8779 (observer_test_third_notification_function): Add declarations.
8781 2012-03-01 Pedro Alves <palves@redhat.com>
8783 * common/signals.c (default_target_signal_to_host)
8784 (default_target_signal_from_host): Move ...
8785 * arch-utils.c: ... here.
8786 * arch-utils.h (default_target_signal_to_host)
8787 (default_target_signal_from_host): Declare.
8789 * common/signals.c (target_signal_from_command): Move ...
8790 * infrun.c: ... here.
8791 * inferior.h (target_signal_from_command): Declare.
8792 * target.h (target_signal_from_command)
8793 (default_target_signal_from_host, default_target_signal_to_host):
8794 Delete declarations.
8796 * common/signals.c (_initialize_signals): Delete.
8798 2012-03-01 Pedro Alves <palves@redhat.com>
8800 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8801 both __cplusplus and !__cplusplus.
8803 2012-03-01 Pedro Alves <palves@redhat.com>
8805 * psymtab.c (find_and_open_source): Delete declaration.
8806 * source.c (find_and_open_source): Move comment ...
8807 * source.h (find_and_open_source): ... to this new declaration.
8809 2012-03-01 Pedro Alves <palves@redhat.com>
8811 * inline-frame.c: Include inline-frame.h.
8813 2012-03-01 Pedro Alves <palves@redhat.com>
8815 * tui/tui-data.c (set_gen_win_origin): Delete.
8816 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8817 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8819 2012-03-01 Pedro Alves <palves@redhat.com>
8821 * remote.c (encode_actions): Delete declaration.
8822 * tracepoint.c (encode_actions): Make extern.
8823 * tracepoint.h (encode_actions): Declare.
8825 2012-03-01 Pedro Alves <palves@redhat.com>
8827 * python/py-breakpoint.c: Include python.h.
8828 * python/py-continueevent.c (create_continue_event_object): Make
8830 * python/py-lazy-string.c (stpy_get_type): Make static.
8831 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8833 * python/py-utils.c (unicode_to_target_python_string): Make
8835 * python/py-value.c: Include python.h.
8837 2012-03-01 Pedro Alves <palves@redhat.com>
8839 * inferior.c (delete_threads_of_inferior): Delete.
8841 2012-03-01 Pedro Alves <palves@redhat.com>
8843 Import fallback definitions from glibc.
8845 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8846 ps_prochandle): Forward declare.
8847 (ps_err_e): Use glibc's comments.
8848 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8849 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8850 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8851 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8852 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8853 (struct ps_prochandle): Adjust comment.
8855 2012-03-01 Pedro Alves <palves@redhat.com>
8857 * ada-lang.c (ada_modulus_from_name): Delete.
8858 * ada-lex.l (lexer_init): Make static.
8860 2012-03-01 Pedro Alves <palves@redhat.com>
8864 * frame.c (read_frame_register_unsigned): New.
8865 * frame.h (read_frame_register_unsigned): Declare.
8866 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8868 (print_i387_control_word): New parameter `control_p'. Handle it.
8869 (i387_print_float_info): Handle unavailable float registers.
8871 2012-03-01 Keith Seitz <keiths@redhat.com>
8873 * linespec.c (decode_line_2): Sort the list of methods
8874 alphabetically before presenting the user with a selection
8877 2012-03-01 Doug Evans <dje@google.com>
8879 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8881 (dwarf2_read_abbrevs): Remove corresponding initialization.
8883 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8885 * NEWS: Mention new python command class gdb.COMMAND_USER.
8886 * cli/cli-cmds.c (show_user): Print error when used on a python
8888 (init_cli_cmds): Update documentation strings for "show user" and
8889 "set/show max-user-call-depth" to clarify that it does not apply to
8891 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8893 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8895 * top.c (execute_command): Only execute a user-defined command as a
8896 legacy macro if c->user_commands is set.
8898 2012-03-01 Tom Tromey <tromey@redhat.com>
8900 * valprint.h (struct generic_val_print_decorations): New.
8901 (generic_val_print): Declare.
8902 * valprint.c (generic_val_print): New function.
8903 * p-valprint.c (p_decorations): New global.
8904 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8905 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8906 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8907 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8908 * m2-valprint.c (m2_decorations): New global.
8909 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8910 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8911 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8912 TYPE_CODE_ERROR>: Call generic_val_print.
8913 * f-valprint.c (f_decorations): New global.
8914 (f_val_print): Use print_function_pointer_address.
8915 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8916 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8917 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8919 * c-valprint.c (c_decorations): New global.
8920 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8921 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8922 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8923 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8924 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8925 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8928 2012-03-01 Tom Tromey <tromey@redhat.com>
8930 * valprint.c (val_print): Update.
8931 * p-valprint (pascal_val_print): Return void.
8932 * p-lang.h (pascal_val_print): Return void.
8933 * m2-valprint.c (m2_val_print): Return void.
8934 * m2-lang.h (m2_val_print): Return void.
8935 * language.h (struct language_defn) <la_val_print>: Return void.
8936 * language.c (unk_lang_val_print): Return void.
8937 * jv-valprint.c (java_val_print): Return void.
8938 * jv-lang.h (java_val_print): Return void.
8939 * f-valprint.c (f_val_print): Return void.
8940 * f-lang.h (f_val_print): Return void.
8941 * d-valprint.c (d_val_print): Return void.
8942 (dynamic_array_type): Update.
8943 * d-lang.h (d_val_print): Return void.
8944 * c-valprint.c (c_val_print): Return void.
8945 * c-lang.h (c_val_print): Return void.
8946 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8948 * ada-lang.h (ada_val_print): Return void.
8950 2012-03-01 Tom Tromey <tromey@redhat.com>
8952 * value.h (val_print): Return void.
8953 * valprint.c (val_print): Return void.
8955 2012-03-01 Tom Tromey <tromey@redhat.com>
8957 * value.h (common_val_print): Return void.
8958 * valprint.c (common_val_print): Return void.
8960 2012-03-01 Tom Tromey <tromey@redhat.com>
8962 * value.h (value_print): Return void.
8963 * valprint.c (value_print): Return void.
8964 * p-valprint.c (pascal_value_print): Return void.
8965 * p-lang.h (pascal_value_print): Return void.
8966 * language.h (struct language_defn) <la_value_print>: Return
8968 * language.c (unk_lang_value_print): Return void.
8969 * jv-valprint.c (java_value_print): Return void.
8970 * jv-lang.h (java_value_print): Return void.
8971 * f-valprint.c (c_value_print): Don't declare.
8973 * c-valprint.c (c_value_print): Return void.
8974 * c-lang.h (c_value_print): Return void.
8975 * ada-valprint.c (ada_value_print): Return void.
8976 * ada-lang.h (ada_value_print): Return void.
8978 2012-03-01 Tom Tromey <tromey@redhat.com>
8980 * value.c (value_primitive_field): Handle virtual base classes.
8982 2012-03-01 Tom Tromey <tromey@redhat.com>
8984 * gdbtypes.h (struct vbase): Remove.
8986 2012-03-01 Tom Tromey <tromey@redhat.com>
8988 * c-valprint.c (print_function_pointer_address): Move...
8989 * valprint.c: ... here. Make non-static.
8990 * m2-valprint.c (print_function_pointer_address): Remove.
8991 * valprint.h (print_function_pointer_address): Declare.
8993 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8995 * NEWS: Document the fact that one can provide a condition when
8996 creating an Ada exception catchpoint.
8998 2012-03-01 Tom Tromey <tromey@redhat.com>
9000 * valprint.c (val_print_type_code_flags): Fix placement of
9003 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9005 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9006 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9007 environment variable before calling update-copyright.
9009 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9011 * gnulib/extra/update-copyright: Update to the latest from
9012 gnulib's git repository.
9013 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9014 variable to 2 instead of 1.
9016 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9018 * varobj.c (c_value_of_variable): Remove dead code.
9020 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9022 * ada-lex.p (processId): Do not modify already encoded IDs.
9023 Update function documentation.
9025 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9027 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9028 "name" with "struct symbol *name_sym".
9029 * ada-exp.y (write_var_or_type): Update call to
9030 ada_find_renaming_symbol.
9031 "name" with "struct symbol *name_sym". Adjust Implementation
9032 accordingly. Adjust the function documentation.
9034 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9036 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9037 * ada-lang.c (ada_find_any_type): Add advance declaration.
9038 Make static. Replace ada_find_any_symbol by
9039 ada_find_any_type_symbol.
9040 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9041 Improve function description. Make static.
9042 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9043 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9045 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9047 * ada-lang.c (struct tag_args): Delete.
9048 (ada_get_tsd_type): Function body moved up in source file.
9049 (ada_tag_name_1, ada_tag_name_2): Delete.
9050 (ada_get_tsd_from_tag): New function.
9051 (ada_tag_name_from_tsd): New function.
9052 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9053 to determine the tag name.
9055 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9057 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9059 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9062 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9064 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9066 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9068 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9071 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9073 * ada-lang.c (constrained_packed_array_type): If there is a
9074 parallel XA type, use it to determine the array index type.
9076 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9078 * ada-valprint.c (ada_val_print_1): If our value is a reference
9079 to an array descriptor, dereference it before converting it
9082 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9084 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9085 creating fixed value.
9086 (ada_value_ind, ada_coerce_ref, assign_component)
9087 (ada_evaluate_subexp): Remove call to unwrap_value before
9088 call to ada_to_fixed_value.
9090 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9092 * ada-lang.c (to_fixed_array_type): Set result's type name.
9094 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9096 * ada-lang.c (catch_ada_exception_command_split): Add new
9097 argument cond_string. Add support for condition at end of
9098 "catch exception" commands.
9099 (ada_decode_exception_location): Add new argument cond_string.
9100 Update call to catch_ada_exception_command_split.
9101 (create_ada_exception_catchpoint): Add new argument cond_string.
9102 Set the breakpoint condition if needed.
9103 (catch_ada_exception_command): Update call to
9104 ada_decode_exception_location.
9105 (ada_decode_assert_location): Add function documentation.
9106 Add support for condition at end of "catch assert" command.
9107 (catch_assert_command): Update calls to ada_decode_assert_location
9108 and create_ada_exception_catchpoint.
9110 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9112 Fix disp-step-syscall.exp: fork: single step over fork.
9113 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9114 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9115 comment, change parameters gdbarch and ptid to regcache. Remove
9116 parameter regcache, initialize gdbarch from regcache here.
9117 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9119 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9121 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9122 'syscall'. Make the 'int' check more strict.
9124 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9126 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9127 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9128 (i386_linux_intx80_sysenter_syscall_record): ... here.
9129 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9130 Use the renamed function name.
9132 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9134 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9135 * breakpoint.c (until_break_command): Likewise.
9136 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9137 * infcall.c (call_function_by_hand): Likewise.
9138 * infcmd.c (finish_forward): Likewise.
9139 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9141 2012-02-28 Tristan Gingold <gingold@adacore.com>
9143 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9144 avoid variable assignments inside condition.
9146 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9148 Fix static analysis issue found by cppcheck.
9149 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9150 uninitialized BUF for size 2.
9152 2012-02-27 Chris Dearman <chris@mips.com>
9153 Nathan Froyd <froydnj@codesourcery.com>
9154 Maciej W. Rozycki <macro@codesourcery.com>
9156 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9157 (mips16_instruction_has_delay_slot): Likewise.
9158 (mips_segment_boundary): Likewise.
9159 (mips_adjust_breakpoint_address): Likewise.
9160 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9162 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9163 Maciej W. Rozycki <macro@codesourcery.com>
9165 * infrun.c (handle_inferior_event): Don't proceed through
9166 shared library trampolines if stepping at the machine
9169 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9171 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9174 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9176 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9177 (sh_stub_unwind_sniffer): New functions.
9178 (sh_stub_unwind): New variable.
9179 (sh_gdbarch_init): Wire everything.
9181 2012-02-27 Pedro Alves <palves@redhat.com>
9183 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9184 (linux_nat_post_attach_wait): Adjust to use
9185 linux_proc_pid_is_stopped.
9186 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9187 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9188 based on pid_is_stopped from both linux-nat.c and
9189 gdbserver/linux-low.c, and renamed.
9191 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9193 * remote.c (remote_watchpoint_addr_within_range): New function.
9194 (init_remote_ops): Use it.
9196 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9198 * target.h (target_watchpoint_addr_within_range): Document macro.
9200 2012-02-24 Pedro Alves <palves@redhat.com>
9202 * stack.c (set_last_displayed_sal): Issue internal_error instead
9203 of warning, and issue it after clearing the last displayed sal.
9205 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9206 Pedro Alves <palves@redhat.com>
9208 * breakpoint.c (until_break_command): Install breakpoints after
9209 all frame manipulations.
9211 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9213 * remote.c (remote_supports_cond_breakpoints): New forward
9215 (remote_add_target_side_condition): New function.
9216 (remote_insert_breakpoint): Add target-side breakpoint
9217 conditional if supported.
9218 (remote_insert_hw_breakpoint): Likewise.
9219 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9222 * target.c (update_current_target): Inherit
9223 to_supports_evaluation_of_breakpoint_conditions.
9224 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9226 * target.h (struct target_ops)
9227 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9228 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9230 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9231 (condition_evaluation_both, condition_evaluation_auto,
9232 condition_evaluation_host, condition_evaluation_target,
9233 condition_evaluation_enums, condition_evaluation_mode_1,
9234 condition_evaluation_mode): New static globals.
9235 (translate_condition_evaluation_mode): New function.
9236 (breakpoint_condition_evaluation_mode): New function.
9237 (gdb_evaluates_breakpoint_condition_p): New function.
9238 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9239 (mark_breakpoint_modified): New function.
9240 (mark_breakpoint_location_modified): New function.
9241 (set_condition_evaluation_mode): New function.
9242 (show_condition_evaluation_mode): New function.
9243 (bp_location_compare_addrs): New function.
9244 (get_first_location_gte_addr): New helper function.
9245 (set_breakpoint_condition): Free condition bytecode if locations
9246 has become unconditional. Call mark_breakpoint_modified (...).
9247 (condition_command): Call update_global_location_list (1) for
9249 (breakpoint_xfer_memory): Use is_breakpoint (...).
9250 (is_breakpoint): New function.
9251 (parse_cond_to_aexpr): New function.
9252 (build_target_condition_list): New function.
9253 (insert_bp_location): Handle target-side conditional
9254 breakpoints and call build_target_condition_list (...).
9255 (update_inserted_breakpoint_locations): New function.
9256 (insert_breakpoint_locations): Handle target-side conditional
9258 (bpstat_check_breakpoint_conditions): Add comment.
9259 (bp_condition_evaluator): New function.
9260 (bp_location_condition_evaluator): New function.
9261 (print_breakpoint_location): Print information on where the condition
9263 (print_one_breakpoint_location): Likewise.
9264 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9265 breakpoint location.
9266 (force_breakpoint_reinsertion): New functions.
9267 (update_global_location_list): Handle target-side breakpoint
9269 Reinsert locations that are already inserted if conditions have
9271 (bp_location_dtor): Free agent expression bytecode.
9272 (disable_breakpoint): Call mark_breakpoint_modified (...).
9273 Call update_global_location_list (...) with parameter 1 for breakpoints.
9274 (disable_command): Call mark_breakpoint_location_modified (...).
9275 Call update_global_location_list (...) with parameter 1 for breakpoints.
9276 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9277 (enable_command): mark_breakpoint_location_modified (...).
9278 (_initialize_breakpoint): Update documentation and add
9279 condition-evaluation breakpoint subcommand.
9281 * breakpoint.h: Include ax.h.
9282 (condition_list): New data structure.
9283 (condition_status): New enum.
9284 (bp_target_info) <cond_list>: New field.
9285 (bp_location) <condition_changed, cond_bytecode>: New fields.
9286 (is_breakpoint): New prototype.
9288 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9290 * remote.c (remote_state) <cond_breakpoints>: New field.
9291 (PACKET_ConditionalBreakpoints): New enum.
9292 (remote_cond_breakpoint_feature): New function.
9293 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9294 (remote_supports_cond_breakpoints): New function.
9295 (_initialize_remote): Add new packet configuration for
9296 target-side conditional breakpoints.
9298 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9300 * NEWS: Mention target-side conditional breakpoint support,
9301 new condition-evaluation breakpoint subcommand and remote
9304 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9306 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9309 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9311 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9312 (after_prologue): Remove.
9314 2012-02-23 Tom Tromey <tromey@redhat.com>
9316 * jv-valprint.c (java_val_print): Remove dead code.
9318 2012-02-23 Tristan Gingold <gingold@adacore.com>
9320 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9321 known_tasks_element and known_tasks_length fields.
9322 (read_known_tasks_array): Change argument type. Use pointer type
9323 and number of elements from DATA. Adjust.
9324 (read_known_tasks_list): Likewise.
9325 (get_known_tasks_addr): Remove.
9326 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9327 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9328 type and array length. Merge former get_known_tasks_addr code.
9330 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9333 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9334 it after set_momentary_breakpoint.
9336 2012-02-22 Sterling Augustine <saugustine@google.com>
9339 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9341 2012-02-22 Gary Benson <gbenson@redhat.com>
9343 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9344 (find_slot_in_mapped_hash): Likewise.
9346 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9349 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9350 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9351 * configure: Regenerate.
9353 2012-02-21 Tristan Gingold <gingold@adacore.com>
9354 Pedro Alves <palves@redhat.com>
9356 * ia64-tdep.c: Do not include libunwind-ia64.h.
9357 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9358 Include libunwind-ia64.h instead of libunwind.h.
9359 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9360 for libunwind.h existence.
9361 * configure, config.in: Regenerate.
9363 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9365 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9366 instead of value_rtti_target_type.
9367 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9368 instead of value_rtti_target_type.
9369 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9370 value_rtti_target_type.
9371 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9372 (value_rtti_target_type): Rename to ...
9373 (value_rtti_indirect_type): ... here and make it indirect. Update
9375 * value.c (readjust_indirect_value_type): New function.
9376 (coerce_ref): Support for enclosing type setting for references
9377 with readjust_indirect_value_type.
9378 * value.h (readjust_value_type): New declaration.
9379 (value_rtti_target_type): Rename to ...
9380 (value_rtti_indirect_type): ... here.
9382 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9384 * MAINTAINERS (Write After Approval): Add myself to the list.
9386 2012-02-20 Doug Evans <dje@google.com>
9388 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9389 Rename objfile_p_char parameter to objfilep.
9390 (build_objfile_section_table): Result is now void. All callers
9392 * objfiles.h (struct objfile): Tweak comments, whitespace.
9393 (build_objfile_section_table): Update.
9395 * elfread.c (elf_symfile_segments): Fix warning text.
9397 2012-02-20 Tom Tromey <tromey@redhat.com>
9400 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9401 particular set of file names once.
9402 (dw2_map_symbol_filenames): Likewise.
9404 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9407 * main.c (write_files): Remove the declaration.
9408 (external_editor_command): Move the declaration ...
9409 [GDBTK] (external_editor_command): ... here. Fix the comment.
9411 2012-02-20 Tom Tromey <tromey@redhat.com>
9413 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9416 2012-02-20 Tristan Gingold <gingold@adacore.com>
9418 * darwin-nat.h (enum darwin_msg_state): Add comments.
9420 2012-02-20 Tristan Gingold <gingold@adacore.com>
9422 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9425 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9427 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9428 between function description and implementation.
9430 2012-02-17 Tom Tromey <tromey@redhat.com>
9433 * python/py-event.c (event_object_getset): New global.
9434 (event_object_type): Reference it.
9435 * python/py-type.c (field_object_getset): New global.
9436 (field_object_type): Reference it.
9437 * python/python-internal.h (gdb_py_generic_dict): Declare.
9438 * python/py-utils.c (gdb_py_generic_dict): New function.
9440 2012-02-17 Tristan Gingold <gingold@adacore.com>
9442 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9444 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9446 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9447 TYPE_CALLING_CONVENTION annotation.
9449 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9451 * MAINTAINERS: Add rx to target ISA section.
9452 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9453 (ALLDEPFILES): Add rx-tdep.c.
9455 2012-02-16 Tom Tromey <tromey@redhat.com>
9457 * symfile.c (symbol_file_add_main_1): Use inferior's
9459 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9460 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9462 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9464 (follow_exec): Use inferior's symfile_flags.
9465 * inferior.h (struct inferior) <symfile_flags>: New field.
9467 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9470 * remote-sim.c (gdbsim_create_inferior): Call error() when
9471 sim_create_inferior() fails.
9473 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9475 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9477 2012-02-16 Tom Tromey <tromey@redhat.com>
9480 * thread.c (struct current_thread_cleanup) <was_removable>: New
9482 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9483 (make_cleanup_restore_current_thread): Initialize new field.
9485 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9487 * MAINTAINERS: Add rl78 to target ISA section.
9488 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9489 (ALLDEPFILES): Add rl78-tdep.c.
9490 * NEWS: Mention rl78 as a new target.
9492 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9494 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9496 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9498 2012-02-15 Tom Tromey <tromey@redhat.com>
9501 * infcmd.c (registers_info): Print just the current register's
9504 2012-02-15 Tom Tromey <tromey@redhat.com>
9506 * python/py-symbol.c (sympy_value): Use _().
9508 2012-02-15 Pedro Alves <palves@redhat.com>
9510 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9511 output to be like native targets'.
9512 (remote_pid_to_str): Special case the null ptid.
9514 2012-02-14 Stan Shebs <stan@codesourcery.com>
9516 * NEWS: Mention enable count command.
9517 * breakpoint.h (struct breakpoint): New field enable_count.
9518 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9519 (enable_breakpoint): Add arg to call.
9520 (struct disp_data): New struct.
9521 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9522 (do_map_enable_once_breakpoint): Create a struct and pass it.
9523 (do_map_enable_delete_breakpoint): Ditto.
9524 (do_map_enable_count_breakpoint): New function.
9525 (enable_count_command): New function.
9526 (bpstat_stop_status): Decrement enable_count.
9527 (print_one_breakpoint_location): Report enable count.
9528 (_initialize_breakpoint): Add enable count command.
9530 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9532 * rl78-tdep.c (reggroups.h): Include.
9533 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9534 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9535 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9536 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9537 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9538 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9539 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9540 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9541 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9542 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9543 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9544 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9545 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9546 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9547 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9548 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9549 beginning of register list.
9550 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9551 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9552 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9553 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9554 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9555 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9556 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9557 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9558 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9559 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9560 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9561 the pseudo registers. Rearrange other pseudo registers too so
9562 that the bank registers appear at the end.
9563 (rl78_register_type): Account for the fact that the byte sized
9564 bank registers are now pseudo-registers.
9565 (rl78_register_name): Rearrange the register name array. Make
9566 initial set of raw banked registers inaccessible.
9567 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9568 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9569 case for copying bytes back and forth between raw and pseudo
9570 versions of the banked registers. Update other cases to reflect
9572 (rl78_return_value): Update to account for changed names of
9574 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9575 rl78_register_sim_regno().
9577 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9579 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9580 the name parameter being passed to find_pc_partial_function().
9582 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9584 * MAINTAINERS: Step down from being ia64 target maintainer.
9586 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9588 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9589 compilation warning.
9591 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9593 Fix crash on loaded shlibs without loaded exec_bfd.
9594 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9595 (set_section_command): Replace exec_bfd by p->bfd.
9597 2012-02-10 Tom Tromey <tromey@redhat.com>
9599 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9600 when we have a C++ qualified name.
9602 2012-02-10 Pedro Alves <palves@redhat.com>
9604 * inferior.c (inferior_pid_to_str): New.
9605 (print_inferior, inferior_command): Use it.
9607 2012-02-10 Pedro Alves <palves@redhat.com>
9609 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9611 * configure: Regenerate.
9613 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9615 * linespec.c (decode_line_internal): Fix comment correctness.
9617 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9620 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9621 * amd64bsd-nat.c: Add support for debug registers (adapted from
9623 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9624 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9625 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9626 (amd64bsd_dr_get_control): New functions.
9627 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9628 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9629 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9630 watchpoints initialization.
9631 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9633 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9635 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9637 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9639 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9641 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9643 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9645 * language.h (symbol_name_cmp_ftype): Renames
9646 symbol_name_match_p_ftype.
9647 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9648 la_get_symbol_name_match_p.
9649 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9650 ada_get_symbol_name_match_p. Update comment.
9651 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9652 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9653 Renames symbol_name_match_p. Update field type.
9654 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9655 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9656 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9657 "la_get_symbol_name_cmp" in comments.
9658 * language.c: Likewise.
9660 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9662 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9664 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9665 (amd64_sol2_gregset32_reg_offs): Likewise.
9667 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9669 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9670 of the returned BFD is allocated by GDB.
9672 2012-02-07 Tom Tromey <tromey@redhat.com>
9675 * python/python-internal.h (frame_object_type): Declare.
9676 * python/py-symbol.c (sympy_needs_frame): New function.
9677 (sympy_value): New function.
9678 (symbol_object_getset): Add "needs_frame".
9679 (symbol_object_methods): Add "value".
9680 * python/py-frame.c (frame_object_type): No longer static.
9682 2012-02-07 Tom Tromey <tromey@redhat.com>
9685 * python/py-symbol.c (sympy_line): New function.
9686 (symbol_object_getset): Add "line".
9688 2012-02-07 Tom Tromey <tromey@redhat.com>
9690 * charset.c (find_charset_names): Check 'in' against NULL.
9692 2012-02-06 Doug Evans <dje@google.com>
9694 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9695 and fields.name members from char * to const char *. All uses updated.
9696 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9697 from char * to const char *. All uses updated.
9698 (type_name_no_tag): Update.
9699 (lookup_unsigned_typename, lookup_signed_typename): Update.
9700 * gdbtypes.c (type_name_no_tag): Change result type
9701 from char * to const char *. All callers updated.
9702 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9703 name parameter from char * to const char *.
9704 * symtab.h (struct cplus_specific): Change type of demangled_name
9705 member from char * to const char *. All uses updated.
9706 (struct general_symbol_info): Change type of name and
9707 mangled_lang.demangled_name members from char * to const char *.
9709 (symbol_get_demangled_name, symbol_natural_name): Update.
9710 (symbol_demangled_name, symbol_search_name): Update.
9711 * symtab.c (symbol_get_demangled_name): Change result type
9712 from char * to const char *. All callers updated.
9713 (symbol_natural_name, symbol_demangled_name): Ditto.
9714 (symbol_search_name): Ditto.
9715 (completion_list_add_name): Change type of symname,sym_text,
9716 text,word parameters from char * to const char *.
9717 (completion_list_objc_symbol): Change type of sym_text,
9718 text,word parameters from char * to const char *.
9719 * ada-lang.c (find_struct_field): Change type of name parameter
9720 from char * to const char *.
9721 (encoded_ordered_before): Similarly for N0,N1 parameters.
9722 (old_renaming_is_invisible): Similarly for function_name parameter.
9723 (ada_type_name): Change result type from char * to const char *.
9724 All callers updated.
9725 * ada-lang.h (ada_type_name): Update.
9726 * buildsym.c (hashname): Change type of name parameter
9727 from char * to const char *.
9728 * buildsym.h (hashname): Update.
9729 * dbxread.c (end_psymtab): Change type of include_list parameter
9730 from char ** to const char **.
9731 * dwarf2read.c (determine_prefix): Change result type
9732 from char * to const char *. All callers updated.
9733 * f-lang.c (find_common_for_function): Change type of name, funcname
9734 parameters from char * to const char *.
9735 * f-lang.c (find_common_for_function): Update.
9736 * f-valprint.c (list_all_visible_commons): Change type of funcname
9737 parameters from char * to const char *.
9738 * gdbarch.sh (static_transform_name): Change type of name parameter
9739 and result from char * to const char *.
9740 * gdbarch.c: Regenerate.
9741 * gdbarch.h: Regenerate.
9742 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9743 of name parameter from char * to const char *.
9744 * jv-lang.c (java_primitive_type_from_name): Ditto.
9745 (java_demangled_signature_length): Similarly for signature parameter.
9746 (java_demangled_signature_copy): Ditto.
9747 (java_demangle_type_signature): Ditto.
9748 * jv-lang.h (java_primitive_type_from_name): Update.
9749 (java_demangle_type_signature): Update.
9750 * objc-lang.c (specialcmp): Change type of a,b parameters
9751 from char * to const char *.
9752 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9753 from char * to const char *. All callers updated.
9754 * p-lang.h (is_pascal_string_type): Update.
9755 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9756 of name parameter from char * to const char *.
9757 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9758 * utils.c (fprintf_symbol_filtered): Ditto.
9759 * defs.h (fprintf_symbol_filtered): Update.
9760 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9761 * stabsread.h (end_psymtab): Update.
9762 * stack.c (find_frame_funname): Change type of funname parameter
9763 from char ** to const char **.
9764 * stack.h (find_frame_funname): Update.
9765 * typeprint.c (type_print): Change type of varstring parameter
9766 from char * to const char *.
9767 * value.h (type_print): Update.
9768 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9769 from char * to const char *. All callers updated.
9770 (xcoff_end_psymtab): Change type of include_list parameter
9771 from char ** to const char **. All callers updated.
9772 (swap_sym): Similarly for name parameter. All callers updated.
9773 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9775 (process_coff_symbol): Use xstrdup.
9776 * stabsread.c (stabs_method_name_from_physname): Renamed from
9777 update_method_name_from_physname. Change result type from void
9778 to char *. All callers updated.
9779 (read_member_functions): In has_destructor case, store name in objfile
9780 obstack instead of malloc space. In !has_stub case, fix mem leak.
9782 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9784 * configure: Rebuild.
9785 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9788 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9790 * configure.tgt (rl78-*-elf): New target.
9791 * rl78-tdep.c: New file.
9793 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9795 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9796 and continue the loop. Add QUIT statement.
9798 2012-02-03 Tom Tromey <tromey@redhat.com>
9801 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9802 bfd_lookup_symbol_from_symtab.
9803 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9804 gdb_bfd_lookup_symbol_from_symtab.
9806 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9808 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9809 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9810 symbol. Add assertion that sym2 is never NULL.
9812 2012-02-02 Doug Evans <dje@google.com>
9814 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9815 "name" parameter to const char ** from char **. All callers updated.
9816 (find_pc_partial_function): Ditto.
9817 (cache_pc_function_name): Change type to const char * from char *.
9818 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9819 (find_pc_partial_function): Update.
9820 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9821 type of "name" parameter to const char * from char *.
9823 * arch-utils.c (generic_in_solib_return_trampoline): Change
9824 type of "name" parameter to const char * from char *.
9825 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9826 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9827 type of "name" parameter to const char * from char *.
9828 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9829 * gdbarch.c: Regenerate.
9830 * gdbarch.h: Regenerate.
9831 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9832 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9833 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9834 type of "name" parameter to const char * from char *.
9835 * skip.c (skip_function_pc): Ditto.
9836 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9837 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9838 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9839 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9840 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9841 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9842 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9843 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9844 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9846 2012-02-02 Pedro Alves <palves@redhat.com>
9848 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9849 the current inferior has no execution. Make sure the current
9850 remote process matches gdb's current inferior.
9852 2012-02-02 Tom Tromey <tromey@redhat.com>
9855 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9858 2012-02-02 Tom Tromey <tromey@redhat.com>
9861 * symtab.c (lookup_language_this): Set block_found.
9863 2012-02-01 Tom Tromey <tromey@redhat.com>
9866 * jit.c (struct jit_inferior_data): Rewrite.
9867 (struct jit_objfile_data): New.
9868 (get_jit_objfile_data): New function.
9869 (add_objfile_entry): Update.
9870 (jit_read_descriptor): Return int. Replace descriptor_addr
9871 argument with inf_data. Update. Don't call error.
9872 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9874 (jit_inferior_init): Don't look up descriptor. Don't call error.
9875 (jit_reset_inferior_data_and_breakpoints)
9876 (jit_inferior_created_observer): Remove.
9877 (jit_inferior_exit_hook): Update.
9878 (jit_executable_changed_observer): Remove.
9879 (jit_event_handler): Update.
9880 (free_objfile_data): Reset inferior data if needed.
9881 (_initialize_jit): Update.
9883 2012-02-01 Tom Tromey <tromey@redhat.com>
9885 * jit.c (bfd_open_from_target_memory): Move higher in file.
9887 2012-02-01 Tristan Gingold <gingold@adacore.com>
9889 * libunwind-frame.c (libunwind_load): Display message if dlopen
9892 2012-02-01 Gary Benson <gbenson@redhat.com>
9894 * symtab.h (symbol_found_callback_ftype): New typedef.
9895 (iterate_over_symbols): Use the above.
9896 * symtab.c (iterate_over_symbols): Likewise.
9897 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9898 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9899 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9900 (iterate_name_matcher): Document return values.
9901 (collect_one_symbol): Likewise.
9902 (collect_function_symbols): Likewise.
9903 (collect_symbols): Likewise.
9905 2012-02-01 Tom Tromey <tromey@redhat.com>
9907 * ada-lang.c (resolve_subexp): Update.
9908 (ada_lookup_symbol_list): Add 'full_search' argument.
9909 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9910 ada_lookup_symbol_list.
9911 (ada_lookup_encoded_symbol): Update.
9912 (get_var_value): Update.
9913 * ada-exp.y (block_lookup): Update.
9914 (write_var_or_type): Update.
9915 (write_name_assoc): Update.
9916 * ada-lang.h (ada_lookup_symbol_list): Update.
9918 2012-01-31 Tom Tromey <tromey@redhat.com>
9920 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9923 2012-01-31 Doug Evans <dje@google.com>
9925 * symtab.h: Remove outdated comment.
9926 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9928 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9930 Fix build error in Darwin port.
9931 * i386-darwin-nat.c: Include i386-nat.h.
9933 2012-01-30 Tom Tromey <tromey@redhat.com>
9935 PR breakpoints/13568:
9936 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9937 argument. Check for recursive includes.
9938 (dwarf_decode_macros): Create an include hash.
9940 2012-01-30 Michael Eager <eager@eagercon.com>
9942 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9943 * ppc-linux-tdep.c: Include glibc-tdep.h.
9944 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9945 (powerpc_linux_in_plt_stub): New function.
9946 (powerpc_linux_in_dynsym_resolve_code): New function.
9947 (ppc_skip_trampoline_code): New function.
9948 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9949 Use glibc_skip_solib_resolver.
9951 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9953 Code cleanup: Make 1440 bytes of data segment read-only.
9954 * arch-utils.c (endian_enum): Make it const char *const [].
9955 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9957 * breakpoint.c (always_inserted_enums): Likewise.
9958 * cli/cli-cmds.c (script_ext_enums): Likewise.
9959 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9960 enumlist parameter const char *const *.
9961 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9962 const char *const *.
9963 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9964 parameter const char *const *.
9965 * cris-tdep.c (cris_modes): Make it const char *const [].
9966 * filesystem.c (target_file_system_kinds): Likewise.
9967 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9968 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9969 (can_use_displaced_stepping_enum, scheduler_enums)
9970 (exec_direction_names): Likewise.
9971 * language.c (_initialize_language): Make the type_or_range_names and
9972 case_sensitive_names variables const char *const [].
9973 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9974 * python/python.c (python_excp_enums): Likewise.
9975 * remote.c (interrupt_sequence_modes): Likewise.
9976 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9977 * serial.c (logbase_enums): Likewise.
9978 * sh-tdep.c (sh_cc_enum): Likewise.
9979 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9981 * symtab.c (multiple_symbols_modes): Likewise.
9982 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9984 * utils.c (internal_problem_modes): Likewise.
9986 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9988 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9989 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9992 2012-01-27 Doug Evans <dje@google.com>
9994 * configure.ac (with_python): Fix absolute path handling for win32.
9995 * configure: Regenerate.
9997 2012-01-26 Doug Evans <dje@google.com>
9999 * symtab.c: Whitespace cleanup, no code changes.
10001 * symtab.c (lookup_symbol_in_language): Improve comment.
10002 (lookup_symbol_aux): Fix comment.
10004 * psymtab.c (add_psymbol_to_list): Result is now "void".
10005 * psympriv.h (add_psymbol_to_list): Update.
10007 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10009 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10011 Do not open script filenames twice.
10012 * cli/cli-cmds.c (source_script_from_stream): Pass to
10013 source_python_script also STREAM.
10014 * python/py-auto-load.c (source_section_scripts): Pass to
10015 source_python_script_for_objfile also STREAM.
10016 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10018 * python/python-internal.h (source_python_script_for_objfile): New
10019 parameter file, rename parameter file to filename.
10020 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10021 instead if !_WIN32. Update the function comment.
10022 (source_python_script, source_python_script_for_objfile)
10023 (source_python_script): New parameter file, rename parameter file to
10024 filename. Pass FILENAME to python_run_simple_file.
10025 * python/python.h (source_python_script): New parameter file, rename
10026 parameter file to filename.
10028 2012-01-26 Pedro Alves <palves@redhat.com>
10030 * corelow.c (core_has_fake_pid): Delete.
10031 (core_close): Delete references to `core_has_fake_pid'.
10032 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10033 (core_open): Delete references to `core_has_fake_pid'.
10034 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10035 the removed global.
10037 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10039 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10040 Remove language parameter from name_matcher. Adjust the comment.
10041 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10042 Remove language parameter.
10043 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10044 * linespec.c (iterate_name_matcher): Likewise.
10045 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10046 name_matcher. Adjust call accordingly.
10047 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10048 (maintenance_check_symtabs): Adjust type of parameter "fun".
10049 * psymtab.h (maintenance_check_symtabs): Likewise.
10051 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10053 * language.h (symbol_name_match_p_ftype): New typedef.
10054 (struct language_defn): Replace field la_symbol_name_compare
10055 by la_get_symbol_name_match_p.
10056 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10057 (ada_language_defn): Use it.
10058 * linespec.c (struct symbol_matcher_data): New type.
10059 (iterate_name_matcher): Rewrite.
10060 (iterate_over_all_matching_symtabs): Pass a pointer to
10061 a symbol_matcher_data struct to expand_symtabs_matching
10062 instead of just the lookup name.
10063 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10064 opencl-lang.c, p-lang.c, language.c: Delete field
10065 la_symbol_name_compare, and replace by NULL for new field
10066 la_get_symbol_name_match_p.
10067 * symfile.h (struct quick_symbol_functions): Update comment.
10069 2012-01-25 Tom Tromey <tromey@redhat.com>
10071 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10074 2012-01-24 Tom Tromey <tromey@redhat.com>
10077 * solib.c (update_solib_list): Update the program space's
10078 added_solibs and deleted_solibs fields.
10079 * progspace.h (struct program_space) <added_solibs,
10080 deleted_solibs>: New fields.
10081 (clear_program_space_solib_cache): Declare.
10082 * progspace.c (release_program_space): Call
10083 clear_program_space_solib_cache.
10084 (clear_program_space_solib_cache): New function.
10085 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10086 bpstat_stop_status. Use handle_solib_event.
10087 * breakpoint.c: Include gdb_regex.h.
10088 (print_solib_event): New function.
10089 (bpstat_print): Use print_solib_event.
10090 (bpstat_stop_status): Add special case for bp_shlib_event.
10091 (handle_solib_event): New function.
10092 (bpstat_what): Use handle_solib_event.
10093 (struct solib_catchpoint): New.
10094 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10095 (breakpoint_hit_catch_solib, check_status_catch_solib)
10096 (print_it_catch_solib, print_one_catch_solib)
10097 (print_mention_catch_solib, print_recreate_catch_solib): New
10099 (catch_solib_breakpoint_ops): New global.
10100 (catch_load_or_unload, catch_load_command_1)
10101 (catch_unload_command_1): New functions.
10102 (internal_bkpt_check_status): Add special case for
10104 (internal_bkpt_print_it): Use print_solib_event.
10105 (initialize_breakpoint_ops): Initialize
10106 catch_solib_breakpoint_ops.
10107 (_initialize_breakpoint): Register "catch load" and "catch
10109 * breakpoint.h (handle_solib_event): Declare.
10110 * NEWS: Add entry for "catch load" and "catch unload".
10112 2012-01-24 Tom Tromey <tromey@redhat.com>
10114 * ada-lang.c: Include gdb_vecs.h.
10115 * charset.c: Include gdb_vecs.h.
10116 * tracepoint.h: Include gdb_vecs.h.
10117 * gdb_vecs.h: New file.
10119 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10121 * breakpoint.c (breakpoint_hit_catch_fork)
10122 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10123 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10124 * infrun.c (inferior_has_forked, inferior_has_vforked)
10125 (inferior_has_execd, inferior_has_called_syscall): Delete.
10126 (handle_syscall_event): Get syscall_number from the execution
10127 control state's wait status.
10128 (wait_for_inferior): Don't clear syscall_number.
10130 2012-01-24 Pedro Alves <palves@redhat.com>
10132 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10133 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10134 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10135 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10137 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10138 false for events other than TARGET_SIGNAL_TRAP.
10139 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10140 Add `ws' parameter.
10141 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10142 events other than TARGET_SIGNAL_TRAP.
10143 (tracepoint_breakpoint_hit): Add `ws' parameter.
10144 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10146 (bpstat_stop_status): Same.
10147 (pc_at_non_inline_function): Same.
10148 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10149 to pass the current event's waitstatus to bpstat_stop_status
10150 and pc_at_non_inline_function.
10152 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10155 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10156 Update the function comment for it.
10157 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10158 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10161 2012-01-24 Pedro Alves <palves@redhat.com>
10163 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10164 outside `bs->stop' block.
10165 (bpstat_what): Rework bp_shlib_event handling.
10166 (internal_bkpt_check_status): If the breakpoint is a
10167 bp_shlib_event, then set bs->stop and bs->print if
10168 stop_on_solib_events is set.
10170 2012-01-24 Gary Benson <gbenson@redhat.com>
10172 Delete #if 0'd out code.
10173 * stack.c (print_frame_label_vars): Remove.
10174 (catch_info): Likewise.
10175 (_initialize_stack): Remove "info catch" command.
10176 * NEWS: Mention the above.
10178 2012-01-24 Pedro Alves <palves@redhat.com>
10180 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10182 (remote_notice_new_inferior): If the remote end doesn't support
10183 the multiprocess extensions, then the PID is fake.
10184 (add_current_inferior_and_thread): New.
10185 (remote_start_remote): Use it.
10186 (extended_remote_attach_1): Adjust.
10187 (extended_remote_create_inferior_1): Use
10188 add_current_inferior_and_thread.
10190 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10192 Fix watchpoints to be specific for each inferior.
10193 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10194 current_program_space.
10195 * i386-nat.c (i386_inferior_data_cleanup): New.
10196 (i386_inferior_data_get): Replace variable inf_data_local by an
10197 inferior_data call.
10198 (i386_use_watchpoints): Initialize i386_inferior_data.
10199 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10200 specific iterate_over_lwps.
10202 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10204 Fix watchpoints across inferior fork.
10205 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10206 comment for linux_nat_iterate_watchpoint_lwps.
10207 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10208 linux_nat_iterate_watchpoint_lwps.
10209 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10210 * i386-linux-nat.c (update_debug_registers_callback): Update the
10211 comment for linux_nat_iterate_watchpoint_lwps.
10212 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10213 linux_nat_iterate_watchpoint_lwps.
10214 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10215 * i386-nat.c: Include inferior.h.
10216 (dr_mirror): Remove.
10217 (i386_inferior_data, struct i386_inferior_data)
10218 (i386_inferior_data_get): New.
10219 (i386_debug_reg_state): Use i386_inferior_data_get.
10220 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10221 (i386_insert_watchpoint, i386_remove_watchpoint)
10222 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10223 (i386_remove_hw_breakpoint): New variable state, use
10224 i386_debug_reg_state instead of DR_MIRROR.
10225 * linux-nat.c (delete_lwp): New declaration.
10226 (num_lwps): Move here from downwards.
10227 (delete_lwp_cleanup): New.
10228 (linux_child_follow_fork): Create new child_lp, call
10229 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10231 (num_lwps): Move upwards.
10232 (linux_nat_iterate_watchpoint_lwps): New.
10233 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10234 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10236 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10240 2012-01-23 Pedro Alves <palves@redhat.com>
10242 * top.c (caution): Rename to ...
10243 (confirm): ... this.
10244 (show_caution): Rename to ...
10245 (show_confirm): ... this.
10246 (quit_cover): Adjust.
10247 (init_main): Adjust.
10248 * top.h (caution): Rename to ...
10249 (confirm): ... this.
10250 * utils.c (internal_vproblem, defaulted_query): Adjust.
10252 2012-01-23 Pedro Alves <palves@redhat.com>
10254 * top.c (caution): Update comment.
10255 (execute_command): Don't consider the current value of `caution'.
10257 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10259 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10261 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10263 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10264 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10265 * target.c (target_fileio_pwrite): Remove buffer address from
10267 (target_fileio_pread): Likewise.
10269 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10271 * NEWS: Document remote "info proc" and "generate-core-file".
10273 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10275 * gdbarch.sh (find_memory_regions): New callback.
10276 * gdbarch.c, gdbarch.h: Regenerate.
10278 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10279 callback before falling back to target method.
10281 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10282 (linux_target_install_ops): No longer install it.
10284 * linux-tdep.c (linux_find_memory_regions): New function.
10285 (linux_init_abi): Install it.
10287 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10289 * gdbarch.sh (make_corefile_notes): New architecture callback.
10290 * gdbarch.c: Regenerate.
10291 * gdbarch.h: Likewise.
10293 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10294 before target_make_corefile_notes. If NULL is returned, the
10295 target does not support core file generation.
10297 * linux-nat.c: Include "linux-tdep.h".
10298 (find_signalled_thread, find_stop_signal): Remove.
10299 (linux_nat_do_thread_registers): Likewise.
10300 (struct linux_nat_corefile_thread_data): Likewise.
10301 (linux_nat_corefile_thread_callback): Likewise.
10302 (iterate_over_spus): Likewise.
10303 (struct linux_spu_corefile_data): Likewise.
10304 (linux_spu_corefile_callback): Likewise.
10305 (linux_spu_make_corefile_notes): Likewise.
10306 (linux_nat_collect_thread_registers): New function.
10307 (linux_nat_make_corefile_notes): Replace contents by call to
10308 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10309 as native-only callback.
10311 * linux-tdep.h: Include "bfd.h".
10312 (struct regcache): Add forward declaration.
10313 (linux_collect_thread_registers_ftype): New typedef.
10314 (linux_make_corefile_notes): Add prototype.
10315 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10316 "regset.h", and "elf-bfd.h".
10317 (find_signalled_thread, find_stop_signal): New functions.
10318 (linux_spu_make_corefile_notes): Likewise.
10319 (linux_collect_thread_registers): Likewise.
10320 (struct linux_corefile_thread_data): New data structure.
10321 (linux_corefile_thread_callback): New funcion.
10322 (linux_make_corefile_notes): Likewise.
10323 (linux_make_corefile_notes_1): Likewise.
10324 (linux_init_abi): Install it.
10326 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10328 * gdbarch.sh (info_proc): New callback.
10329 * gdbarch.c, gdbarch.h: Regenerate.
10331 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10332 before falling back to the target info_proc callback.
10334 * linux-nat.c: Do not include "cli/cli-utils.h".
10335 (linux_nat_info_proc): Remove.
10336 (linux_target_install_ops): No longer install it.
10338 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10339 (read_mapping): New function.
10340 (linux_info_proc): Likewise.
10341 (linux_init_abi): Install it.
10343 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10345 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10346 * infcmd.c: (info_proc_cmd_1): New function.
10347 (info_proc_cmd): New function, moved here from equivalent routine
10348 orignally in linux-nat.c.
10349 (info_proc_cmd_mappings): Likewise.
10350 (info_proc_cmd_stat): Likewise.
10351 (info_proc_cmd_status): Likewise.
10352 (info_proc_cmd_cwd): Likewise.
10353 (info_proc_cmd_cmdline): Likewise.
10354 (info_proc_cmd_exe): Likewise.
10355 (info_proc_cmd_all): Likewise.
10356 (_initialize_infcmd): Install "info proc" command and subcommands.
10358 * target.h (struct target_ops): Add to_info_proc.
10359 (target_info_proc): Add prototype.
10360 * target.c (target_info_proc): New function.
10362 * procfs.c (procfs_info_proc): Add prototype.
10363 (info_proc_cmd): Rename into ...
10364 (procfs_info_proc): ... this. Update argument types as appropriate
10365 for a to_info_proc implementation. Handle "what" argument.
10366 (procfs_target): Install procfs_info_proc.
10367 (_initialize_procfs): No longer install "info proc" command.
10369 * linux-nat.c: (enum info_proc_what): Remove.
10370 (linux_nat_info_proc_cmd_1): Rename into ...
10371 (linux_nat_info_proc): ... this. Update argument types as appropriate
10372 for a to_info_proc implementation.
10373 (linux_nat_info_proc_cmd): Remove.
10374 (linux_nat_info_proc_cmd_mappings): Likewise.
10375 (linux_nat_info_proc_cmd_stat): Likewise.
10376 (linux_nat_info_proc_cmd_status): Likewise.
10377 (linux_nat_info_proc_cmd_cwd): Likewise.
10378 (linux_nat_info_proc_cmd_cmdline): Likewise.
10379 (linux_nat_info_proc_cmd_exe): Likewise.
10380 (linux_nat_info_proc_cmd_all): Likewise.
10381 (linux_target_install_ops): Install linux_nat_info_proc.
10382 (_initialize_linux_nat): No longer install "info proc" command
10385 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10387 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10388 * config.in, configure: Regenerate.
10390 * target.h (struct target_ops): Add to_fileio_readlink.
10391 (target_fileio_readlink): Add prototype.
10392 * target.c (target_fileio_readlink): New function.
10394 * inf-child.c: Conditionally include <sys/param.h>.
10395 (inf_child_fileio_readlink): New function.
10396 (inf_child_target): Install it.
10398 * remote.c (PACKET_vFile_readlink): New enum value.
10399 (remote_hostio_readlink): New function.
10400 (init_remote_ops): Install it.
10401 (_initialize_remote): Handle vFile:readlink packet type.
10403 2012-01-20 Pedro Alves <palves@redhat.com>
10404 Ulrich Weigand <ulrich.weigand@linaro.org>
10406 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10407 * config.in, configure: Regenerate.
10409 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10410 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10411 (target_fileio_open): Add prototype.
10412 (target_fileio_pwrite): Likewise.
10413 (target_fileio_pread): Likewise.
10414 (target_fileio_close): Likewise.
10415 (target_fileio_unlink): Likewise.
10416 (target_fileio_read_alloc): Likewise.
10417 (target_fileio_read_stralloc): Likewise.
10419 * target.c: Include "gdb/fileio.h".
10420 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10421 (default_fileio_target): New function.
10422 (target_fileio_open): Likewise.
10423 (target_fileio_pwrite): Likewise.
10424 (target_fileio_pread): Likewise.
10425 (target_fileio_close): Likewise.
10426 (target_fileio_unlink): Likewise.
10427 (target_fileio_close_cleanup): Likewise.
10428 (target_fileio_read_alloc_1): Likewise.
10429 (target_fileio_read_alloc): Likewise.
10430 (target_fileio_read_stralloc): Likewise.
10432 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10433 <fcntl.h>, and <unistd.h>.
10434 (inf_child_fileio_open_flags_to_host): New function.
10435 (inf_child_errno_to_fileio_error): Likewise.
10436 (inf_child_fileio_open): Likewise.
10437 (inf_child_fileio_pwrite): Likewise.
10438 (inf_child_fileio_pread): Likewise.
10439 (inf_child_fileio_close): Likewise.
10440 (inf_child_fileio_unlink): Likewise.
10441 (inf_child_target): Install to_fileio routines.
10443 * remote.c (init_remote_ops): Install to_fileio routines.
10445 2012-01-20 Pedro Alves <palves@redhat.com>
10446 Ulrich Weigand <ulrich.weigand@linaro.org>
10448 * remote.c (remote_multi_process_p): Only check for multi-process
10449 protocol feature, do not check for extended protocol.
10450 (remote_supports_multi_process): Check for extended protocol here.
10451 (set_general_process): Likewise.
10452 (extended_remote_kill): Likewise.
10453 (remote_pid_to_str): Likewise.
10454 (remote_query_supported): Always query multiprocess mode.
10456 2012-01-20 Pedro Alves <palves@redhat.com>
10457 Ulrich Weigand <ulrich.weigand@linaro.org>
10459 * inferior.h (struct inferior): Add fake_pid_p.
10460 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10461 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10462 magic_null_ptid since the remote side doesn't provide a real PID.
10464 2012-01-19 Tom Tromey <tromey@redhat.com>
10466 * NEWS: Combine the two Python sections.
10468 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10470 * target.h (target_close): Update comment on the target's unpush state.
10472 2012-01-19 Pedro Alves <palves@redhat.com>
10474 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10475 linux_nat_async directly instead of going through the target
10477 * target.c (unpush_target): Close target after unpushing it, not
10480 2012-01-19 Gary Benson <gbenson@redhat.com>
10482 * mdebugread.c (sort_blocks): Replace integer constants with ones
10483 derived from FIRST_LOCAL_BLOCK.
10485 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10486 Jan Kratochvil <jan.kratochvil@redhat.com>
10489 * symfile.c (find_separate_debug_file): New function.
10490 (terminate_after_last_dir_separator): Likewise.
10491 (find_separate_debug_file_by_debuglink): Also try realpath.
10492 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10493 * configure: Regenerate.
10494 * config.in: Regenerate.
10496 2012-01-18 Doug Evans <dje@google.com>
10498 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10499 (main.o): Remove rule.
10500 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10501 (--with-sysroot): Rewrite.
10502 * configure: Regenerate.
10503 * config.in: Regenerate.
10505 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10507 * parse.c (initialize_expout): New function.
10508 (reallocate_expout): Likewise.
10509 (parse_exp_in_context): Use `initialize_expout' and
10510 `reallocate_expout' when appropriate.
10512 2012-01-18 Pedro Alves <palves@redhat.com>
10514 * record.c (struct record_breakpoint, record_breakpoint_p)
10515 (record_breakpoints): New.
10516 (record_insert_breakpoint, record_remove_breakpoint): Manage
10517 record breakpoints list. Only remove breakpoints from the
10518 inferior if they had been inserted there in the first place.
10520 2012-01-17 Doug Evans <dje@google.com>
10522 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10523 if we know we don't have a file name to look for.
10525 2012-01-17 Pedro Alves <palves@redhat.com>
10527 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10528 the frame's stop reason is UNWIND_UNAVAILABLE.
10530 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10532 Fix compilation error.
10533 * m2-exp.y (yyerror): Use ANSI C prototype.
10535 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10537 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10538 (growbuf_by_size): Likewise.
10539 (yyerror): Likewise.
10540 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10541 (modblock): Remove variable (was #if 0'ed).
10542 (parse_number): Convert prototype from K&R to ANSI C.
10543 (yyerror): Likewise.
10544 * objc-exp.y (parse_number): Likewise.
10545 (yyerror): Likewise.
10546 (yylex): Remove #if 0'ed code.
10547 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10548 (yyerror): Likewise.
10550 2012-01-16 Tom Tromey <tromey@redhat.com>
10553 * symtab.h (compare_filenames_for_search): Declare.
10554 * symtab.c (compare_filenames_for_search): New function.
10555 (iterate_over_some_symtabs): Use it.
10556 * symfile.h (struct quick_symbol_functions)
10557 <map_symtabs_matching_filename>: Change spec.
10558 * psymtab.c (partial_map_symtabs_matching_filename): Use
10559 compare_filenames_for_search. Update for new spec.
10560 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10561 compare_filenames_for_search. Update for new spec.
10562 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10564 2012-01-16 Tom Tromey <tromey@redhat.com>
10567 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10568 (struct main_type) <flag_flag_enum>: New field.
10569 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10570 * NEWS: Add entries.
10571 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10573 * python/lib/gdb/printing.py (_EnumInstance): New class.
10574 (FlagEnumerationPrinter): Likewise.
10576 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10578 * breakpoint.c (create_sals_from_address_default): New function.
10579 (create_breakpoints_sal_default): Likewise.
10580 (decode_linespec_default): Likewise.
10581 (is_marker_spec): Removed.
10582 (strace_marker_p): New function.
10583 (init_breakpoint_sal): Using `strace_marker_p' instead of
10585 (create_breakpoint): Call method `create_sals_from_address' from
10586 breakpoint_ops, replacing code that created SALs conditionally
10587 on the type of the breakpoint. Call method `create_breakpoints_sal',
10588 replacing code that created breakpoints conditionally on the type
10590 (base_breakpoint_create_sals_from_address): New function.
10591 (base_breakpoint_create_breakpoints_sal): Likewise.
10592 (base_breakpoint_decode_linespec): Likewise.
10593 (base_breakpoint_ops): Add methods
10594 `base_breakpoint_create_sals_from_address',
10595 `base_breakpoint_create_breakpoints_sal' and
10596 `base_breakpoint_decode_linespec'.
10597 (bkpt_create_sals_from_address): New function.
10598 (bkpt_create_breakpoints_sal): Likewise.
10599 (bkpt_decode_linespec): Likewise.
10600 (tracepoint_create_sals_from_address): Likewise.
10601 (tracepoint_create_breakpoints_sal): Likewise.
10602 (tracepoint_decode_linespec): Likewise.
10603 (strace_marker_create_sals_from_address): Likewise.
10604 (strace_marker_create_breakpoints_sal): Likewise.
10605 (strace_marker_decode_linespec): Likewise.
10606 (strace_marker_breakpoint_ops): New variable.
10607 (addr_string_to_sals): Remove `marker_spec'. Call method
10608 `decode_linespec' from breakpoint_ops, replacing code that decoded
10609 an address string into a SAL. Use `strace_marker_p' instead of
10611 (strace_command): Decide whether we are dealing with a static
10612 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10613 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10614 * breakpoint.h (linespec_result, linespec_sals): New forward
10616 (breakpoint_ops) <create_sals_from_address>,
10617 <create_breakpoints_sal>, <decode_linespec>: New methods.
10619 2012-01-14 Doug Evans <dje@google.com>
10621 * NEWS: Update text for "maint set python print-stack".
10622 It is deprecated in gdb 7.4 and deleted in 7.5.
10624 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10626 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10627 including curses.h.
10629 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10631 * configure: Regenerate.
10632 * config.in: Regenerate.
10634 2012-01-12 Keith Seitz <keiths@redhat.com>
10637 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10638 (ANONYMOUS_UNION_NAME): Define.
10639 (is_path_expr_parent): New function.
10640 (get_path_expr_parent): New function.
10641 (is_anonymous_child): New function.
10642 (create_child_with_value): If the child is anonymous and without
10643 a name, assign an object name to it.
10644 (c_describe_child): Use get_path_expr_parent to determine
10645 the parent expression.
10646 If there field represents an anonymous struct or union and
10647 has no name, set an appropriate display name and expression.
10648 (cplus_describe_child): Likewise.
10650 2012-01-12 Pedro Alves <palves@redhat.com>
10652 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10653 available when %ebp is found to be zero (outermost).
10655 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10657 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10658 an internal gdb_static_assert.
10659 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10661 2012-01-11 Tom Tromey <tromey@redhat.com>
10664 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10665 catch" and "catch throw".
10667 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10669 * blockframe.c (block_innermost_frame): Start search from selected
10670 frame, if present, or otherwise the current frame.
10672 * c-exp.y (variable): Update innermost_block for
10673 'block COLONCOLON NAME' clause.
10674 * m2-exp.y (variable): Ditto.
10675 * objc-exp.y (variable): Ditto.
10677 2012-01-10 Tom Tromey <tromey@redhat.com>
10680 * python/python.c (finish_python_initialization): Set sys.argv.
10682 2012-01-10 Doug Evans <dje@google.com>
10684 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10685 "want_line_info". All callers updated.
10686 (dwarf_decode_lines_1): New function.
10687 (handle_DW_AT_stmt_list): Add function comment.
10688 New arg "want_line_info". All callers updated.
10689 (read_file_scope,read_type_unit_scope): Move comment from
10690 handle_DW_AT_stmt_list to here.
10692 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10694 Fix regression after libiberty/ update for GCC PR 6057 and others.
10695 * c-exp.y (operator) <OPERATOR DELETE>
10696 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10697 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10698 (make_builtin_type, make_name): New variable i, add gdb_assert.
10699 (operator) <OPERATOR NEW>: Update ARGS to 3.
10700 (operator) <OPERATOR DELETE>: Add trailing space.
10701 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10702 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10703 * cp-support.c (cp_canonicalize_string): Check NULL from
10704 cp_comp_to_string, call warning and return.
10706 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10708 Fix duplicate .o files after omitting libbfd.a.
10709 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10710 (SFILES): Add corelow.c.
10711 (COMMON_OBS): Add corelow.o.
10712 (ALLDEPFILES): Remove corelow.c.
10713 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10714 * config/alpha/alpha-osf3.mh: Likewise.
10715 * config/alpha/fbsd.mh: Likewise.
10716 * config/arm/nbsdaout.mh: Likewise.
10717 * config/arm/nbsdelf.mh: Likewise.
10718 * config/i386/i386gnu.mh: Likewise.
10719 * config/ia64/hpux.mh: Likewise.
10720 * config/ia64/linux.mh: Likewise.
10721 * config/m32r/linux.mh: Likewise.
10722 * config/m68k/linux.mh: Likewise.
10723 * config/mips/irix5.mh: Likewise.
10724 * config/mips/irix6.mh: Likewise.
10725 * config/pa/hpux.mh: Likewise.
10726 * config/pa/linux.mh: Likewise.
10727 * config/powerpc/aix.mh: Likewise.
10728 * config/sparc/linux.mh: Likewise.
10729 * config/sparc/linux64.mh: Likewise.
10730 * config/sparc/sol2.mh: Likewise.
10731 * config/vax/vax.mh: Likewise.
10732 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10733 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10734 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10735 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10736 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10737 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10738 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10739 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10740 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10741 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10742 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10743 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10744 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10745 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10746 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10747 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10748 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10749 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10750 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10751 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10752 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10753 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10754 corelow.o from gdb_target_obs.
10755 * corefile.c (core_target): Update the comment on NULL value.
10756 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10757 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10758 MATCHES. Drop YUMMY set on NULL.
10759 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10760 reclaim CORE_DATA if it is already NULL.
10762 2012-01-09 Doug Evans <dje@google.com>
10764 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10765 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10767 2012-01-09 Keith Seitz <keiths@redhat.com>
10769 * breakpoint.c (wrapper.h): Don't include.
10771 2012-01-09 Keith Seitz <keiths@redhat.com>
10773 * Makefile.in (SFILES): Remove wrapper.c.
10774 (HFILES_NO_SRCDIR): Remove wrapper.h.
10775 (COMMON_OBS): Remove wrapper.o.
10776 * cli/cli-interp.c: Don't inlude wrapper.h.
10777 * corelow.c: Likewise.
10778 (core_open): Replace gdb_target_find_new_threads with
10779 TRY_CATCH around target_find_new_threads.
10780 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10781 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10782 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10783 evaluate_expression.
10784 (varobj_set_value): Likewise for evaluate_expression and
10786 (install_new_variable): Likewise for value_fetch_lazy.
10787 (adjust_value_for_child_access): Likewise for value_ind.
10788 (c_describe_child): Likewise for value_subscript and
10790 (c_value_of_root): Likewise for evaluate_expression.
10791 * wrapper.c: Remove.
10792 * wrapper.h: Remove.
10794 2012-01-09 Doug Evans <dje@google.com>
10796 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10797 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10798 "abfd" args with "section". All callers updated.
10799 Error checking code moved ...
10800 (error_check_comp_unit_head): ... here. New function.
10801 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10802 Delete arg "abfd". New arg "type_offset". All callers updated.
10803 (create_debug_types_hash_table): Simplify by using
10804 read_and_check_type_unit_head.
10806 * parser-defs.h (namecopy): Delete.
10807 * parse.c (namecopy, namecopy_size): Move into copy_name.
10809 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10811 Partially fix duplicate .o files after omitting libbfd.a.
10812 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10813 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10814 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10815 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10816 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10817 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10818 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10820 2012-01-09 Pedro Alves <palves@redhat.com>
10822 * MAINTAINERS: Update my email address.
10824 2012-01-08 Doug Evans <dje@google.com>
10826 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10827 n_type_units. Rename type_comp_units to all_type_units.
10829 (add_signatured_type_cu_to_table): Renamed from
10830 add_signatured_type_cu_to_list. All callers updated.
10832 * gdbtypes.h (struct cplus_struct_type): Delete member
10833 nfn_fields_total. All uses removed.
10835 2012-01-06 Doug Evans <dje@google.com>
10837 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10839 (dwarf2_find_comp_unit): Delete.
10840 (process_psymtab_comp_unit): Make result "void".
10841 Delete args buffer, info_ptr, buffer_size, and replace with
10842 "section". All callers updated.
10843 (dwarf2_build_psymtabs_hard): Simplify.
10845 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10846 Thiago Jung Bauermann <bauerman@br.ibm.com>
10848 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10849 before `struct gdb_exception'.
10850 * breakpoint.c (update_global_location_list_nothrow)
10851 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10852 * cp-abi.c (value_rtti_type): Likewise.
10853 * cp-support.c (cp_validate_operator): Likewise.
10854 * infrun.c (insert_exception_resume_breakpoint)
10855 (check_exception_resume, keep_going): Likewise.
10856 * mi-interp.c (mi_breakpoint_created)
10857 (mi_breakpoint_modified): Likewise.
10858 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10859 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10860 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10862 2012-01-05 Doug Evans <dje@google.com>
10864 * dwarf2read.c (statement_prologue): Delete, unused.
10866 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10867 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10869 * dwarf2read.c (comp_unit_header): Delete, unused.
10871 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10873 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10874 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10876 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10878 * infrun.c (normal_stop): Don't skip calling the normal_stop
10879 observers if the thread was doing a multi-step, but stopped for
10880 some reason other than stepping.
10882 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10884 * cli/cli-decode.h: Add comments.
10885 (CMD_LIST_AMBIGUOUS): Moved to command.h
10886 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10887 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10888 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10889 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10890 (add_com, add_com_alias, add_info, add_info_alias)
10891 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10893 * command.h: Add and adjust comments.
10894 (CMD_LIST_AMBIGUOUS): Moved here.
10895 (help_cmd, help_cmd_list): Delete declarations.
10897 2012-01-04 Doug Evans <dje@google.com>
10899 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10900 All callers updated.
10901 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10902 Replace all arguments with "per_cu". All callers updated.
10904 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10906 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10907 New arg "per_cu". All callers updated.
10909 Delete #if 0'd out code.
10910 * language.c (binop_result_type): Delete.
10911 (simple_type, ordered_type, same_type, integral_type): Delete.
10912 (numeric_type, character_type, string_type, boolean_type): Delete.
10913 (float_type, structured_type): Delete.
10914 * language.h: Update.
10916 2012-01-04 Tom Tromey <tromey@redhat.com>
10918 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10920 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10922 * corefile.c (close_exec_file): Delete.
10923 (reopen_exec_file): Remove commented out code that seems related
10924 to close_exec_file, which is being deleted here.
10925 * inferior.h (close_exec_file): Delete.
10926 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10928 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10930 * ada-lang.c: #include "cli/cli-utils.h".
10931 (get_selections): Use skip_spaces.
10932 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10933 (catch_ada_exception_command_split): Use skip_spaces.
10934 (ada_decode_assert_location): Likewise.
10936 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10938 * linespec.c (decode_line_internal): Check for C++ or Java
10939 compound constructs only if the current language is C, C++
10942 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10945 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10946 Joel Brobecker <brobecker@adacore.com>
10947 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10948 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10950 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10951 fall through into AT_ENTRY_POINT.
10952 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10953 DUMMY_ADDR with it.
10954 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10955 PPC_INSN_SIZE skip to 3 times.
10957 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10959 * linespec.c (add_minsym): Preserve function descriptors.
10961 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10963 * breakpoint.c (all_locations_are_pending): Consider locations
10964 in program spaces executing during startup pending as well.
10966 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10968 Copyright year update in most files of the GDB Project.
10970 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10972 * copyright.sh: Delete.
10973 * copyright.py: Rewrite.
10975 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10977 * gnulib/extra/update-copyright: New file, imported from gnulib.
10979 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10981 * README (Copyright and License Notices): New section.
10983 2012-01-03 Tom Tromey <tromey@redhat.com>
10986 * python/py-value.c (valpy_dereference, valpy_get_address
10987 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10988 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10989 (valpy_absolute, valpy_richcompare): Free intermediate values.
10991 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10993 * ada-lang.c: Reformat the copyright notice.
10995 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10997 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10998 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10999 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11000 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11001 Revert this part of:
11002 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11003 Build gdb directly from *.o files not using libgdb.a.
11004 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11006 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11008 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11009 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11010 Reformat the copyright header.
11012 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11014 Revert this part of:
11015 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11016 Remove the gdbtui binary.
11017 * gdb.c (main): Remove args.interpreter_p initialization.
11018 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11019 * main.h (struct captured_main_args): Remove interpreter_p.
11021 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11023 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11025 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11027 * top.c (print_gdb_version): Update copyright year.
11029 2012-01-02 Yao Qi <yao@codesourcery.com>
11031 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11033 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11034 Joel Brobecker <brobecker@adacore.com>
11036 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11037 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11039 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11040 fall through into AT_ENTRY_POINT.
11041 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11042 DUMMY_ADDR with it.
11043 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11044 PPC_INSN_SIZE skip to 3 times.
11046 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11048 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11050 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11052 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11054 Build gdb directly from *.o files not using libgdb.a.
11055 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11056 (COMMON_OBS): Remove solib-target.o.
11057 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11058 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11059 (LIBGDB_OBS, libgdb.a): Move it above.
11060 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11061 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11062 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11063 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11064 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11065 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11066 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11067 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11068 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11069 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11070 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11071 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11072 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11073 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11074 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11075 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11076 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11077 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11078 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11079 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11080 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11081 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11082 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11083 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11084 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11085 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11086 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11088 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11090 Remove the gdbtui binary.
11091 * .gitignore (/gdbtui): Remove.
11092 * Makefile.in (TUI): Remove.
11093 (SUBDIR_TUI_OBS): Remove tui-main.o.
11094 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11095 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11096 (tui-main.o): Remove.
11097 (all_object_files): Remove tui-main.o.
11098 * NEWS: New note for the gdbtui removal.
11099 * configure: Rebuilt.
11100 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11101 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11102 CONFIG_UNINSTALL respectively.
11103 * gdb.c (main): Remove args.interpreter_p initialization.
11104 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11105 * main.h (struct captured_main_args): Remove interpreter_p.
11106 * tui/tui-main.c: Remove.
11108 2012-01-01 Doug Evans <dje@google.com>
11110 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11111 (dwarf2_physname, read_import_statement): Ditto.
11112 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11113 (process_structure_scope read_subroutine_type): Ditto.
11114 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11115 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11116 (dwarf2_fetch_die_location_block): Ditto.
11117 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11119 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11120 All callers updated.
11121 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11122 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11123 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11125 * dwarf2read.c (load_cu): Move assert to more useful location.
11127 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11128 All callers updated.
11130 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11131 (dwarf2_elf_names): Minor reformat.
11132 (dwarf2_per_cu_data): Tweak comment.
11133 (dwarf2_read_section): Fix comment.
11134 (create_all_comp_units): Fix comment.
11135 (load_full_comp_unit): Fix comment.
11136 (process_full_comp_unit): Fix comment.
11137 (read_signatured_type): Fix comment.
11139 For older changes see ChangeLog-2011.
11145 version-control: never