1 2012-10-26 Pedro Alves <palves@redhat.com>
3 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
4 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
6 2012-10-24 Tristan Gingold <gingold@adacore.com>
8 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
11 2012-10-24 Joel Brobecker <brobecker@adacore.com>
13 * ravenscar-thread.c (ravenscar_wait): Only update the list
14 of threads and inferior_ptid if the inferior is still alive.
16 2012-10-24 Joel Brobecker <brobecker@adacore.com>
18 * ada-lang.c (is_known_support_routine): Use lbasename when
19 matching the symtab's filename against
20 known_runtime_file_name_patterns.
22 2012-10-24 Joel Brobecker <brobecker@adacore.com>
24 * ada-lang.c (ada_same_array_size_p): New function.
25 (ada_promote_array_of_integrals): New function.
26 (coerce_for_assign): Add handling of arrays where the elements
27 are integrals of a smaller size than the size of the target
30 2012-10-24 Joel Brobecker <brobecker@adacore.com>
32 * doublest.c (convert_doublest_to_floatformat): Fix comparison
33 against maximum exponent value.
35 2012-10-24 Joel Brobecker <brobecker@adacore.com>
37 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
40 2012-10-24 Joel Brobecker <brobecker@adacore.com>
42 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
43 strip typedef layer when computing the fixed type's field type,
44 only when computing its size.
46 2012-10-24 Mark Kettenis <kettenis@gnu.org>
49 * i386-tdep.c (i386_return_value): Handle complex double and long
52 2012-10-24 Joel Brobecker <brobecker@adacore.com>
54 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
55 New local variable args_len.
56 Quote the name of the executable when computing the command line.
58 2012-10-23 Mark Kettenis <kettenis@gnu.org>
63 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
65 * amd64-tdep.c (amd64_classify): Classify complex types.
66 (amd64_return_value): Handle the COMPLEX_X87 class.
68 2012-10-23 Joel Brobecker <brobecker@adacore.com>
70 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
71 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
73 2012-10-23 Joel Brobecker <brobecker@adacore.com>
75 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
77 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
78 to amd64_windows_auto_wide_charset.
80 2012-10-23 Yao Qi <yao@codesourcery.com>
82 * event-top.c (mark_async_signal_handler_wrapper): Remove.
83 * event-top.h: Remove its declaration.
84 (async_request_quit): Call mark_async_signal_handler instead of
85 mark_async_signal_handler_wrapper.
86 (async_do_nothing, async_disconnect): Likewise.
87 (async_stop_sig): Likewise.
88 * remote.c (handle_remote_sigint): Likewise.
89 (handle_remote_sigint_twice): Likewise.
91 2012-10-23 Yao Qi <yao@codesourcery.com>
93 * event-top.c (sigint_token, sighup_token): Replace 'void *'
94 with 'static struct async_signal_handler *'.
95 (sighup_token, sigquit_token, sigstp_token): Likewise.
97 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
99 * gdbarch.sh (function_list): Use 'pstring' when printing
100 a variable which could return NULL.
101 * gdbarch.c: Regenerate.
103 2012-10-10 Joel Brobecker <brobecker@adacore.com>
104 Tom Tromey <tromey@redhat.com>
106 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
107 inneffective if condition by gdb assertion. Add function
110 2012-10-19 Joel Brobecker <brobecker@adacore.com>
112 * parser-defs.h (struct exp_descriptor): Document constraint
113 on return value for "op_name" callbacks.
115 2012-10-18 Tom Tromey <tromey@redhat.com>
117 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
118 * symtab.c (iterate_over_some_symtabs): Constify.
119 * source.h (symtab_to_fullname): Return 'const char *'.
120 * source.c (symtab_to_fullname): Return 'const char *'.
121 * python/py-symtab.c (stpy_fullname): Constify.
122 * cli/cli-cmds.c (edit_command): Constify.
123 * breakpoint.c (print_breakpoint_location)
124 (update_static_tracepoint): Constify.
126 2012-10-18 Tom Tromey <tromey@redhat.com>
128 * breakpoint.c (compare_breakpoints): Fix comparison.
130 2012-10-18 Tom Tromey <tromey@redhat.com>
132 * valprint.c (generic_emit_char, generic_printstr): Pass size of
133 gdb_wchar_t to convert_between_encodings.
135 2012-10-17 Yao Qi <yao@codesourcery.com>
137 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
138 more parameter 'inferior'.
139 * corefile.c (write_memory_with_notification): Caller update.
141 * mi/mi-cmd-var.c: Include "mi-main.h".
142 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
143 to 1 and restore it later.
144 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
145 and "data-write-memory-bytes.
146 * mi/mi-interp.c: Include objfiles.h.
147 (mi_interpreter_init): Call observer_attach_memory_changed.
148 (mi_memory_changed): New.
149 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
152 * NEWS: Mention new MI notification "memory-changed".
154 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
156 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
158 2012-10-15 Doug Evans <dje@google.com>
160 New option -nh: inhibit loading of ~/.gdbinit.
162 * main.c (captured_main): Recognize and process -nh.
163 (print_gdb_help): Mention -nh.
164 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
166 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
170 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
172 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
173 nor pc_regnum_from_eax.
174 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
175 nor pc_regnum_from_eax.
177 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
179 Fix entry values resolving in inlined frames.
180 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
181 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
184 2012-10-15 Joel Brobecker <brobecker@adacore.com>
186 * configure.ac: Build with -DMS_WIN64 if building with Python
187 enabled using GCC on amd64-windows.
188 * configure: Regenerate.
190 2012-10-15 Tom Tromey <tromey@redhat.com>
193 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
196 2012-10-15 Tom Tromey <tromey@redhat.com>
199 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
201 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
203 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
204 reset thread numbering back to 1.
206 2012-10-11 Doug Evans <dje@google.com>
208 PR breakpoints/14643.
209 * linespec.c (struct ls_parser): New member keyword_ok.
210 (linespec_lexer_lex_string): Add comment.
211 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
213 (parse_linespec): Set keyword_ok.
215 2012-10-10 Doug Evans <dje@google.com>
217 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
218 "0x" prefix on address in log message.
220 * dwarf2read.c (read_1_byte): Add const to buf parameter.
221 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
222 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
223 (lookup_dwo_file): Add const to dwo_name parameter.
224 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
226 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
228 Fix crash during stepping on ppc32.
229 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
232 2012-10-03 Doug Evans <dje@google.com>
235 * buildsym.c (buildsym_init): Reset using_directives to NULL.
237 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
239 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
240 output and use uint32_t not long to ensure 4 byte size.
242 2012-10-02 Joel Brobecker <brobecker@adacore.com>
244 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
247 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
249 * target.c (simple_search_memory): Include access length in
252 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
253 Edjunior Machado <emachado@linux.vnet.ibm.com>
256 * solib.c (solib_find): Prevent GDB from loading native libraries when
257 debugging a cross-target corefile.
259 2012-09-28 selven <pcthegreat@gmail.com>
261 Make definition match declaration.
263 * regcache.c (regcache_register_status): Change return type to
264 enum register_status.
266 2012-09-28 Yao Qi <yao@codesourcery.com>
268 * mi/mi-main.c (mi_cmd_data_write_memory): Call
269 write_memory_with_notification instead of write_memory.
270 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
271 instead of target_write_memory.
273 2012-09-28 Yao Qi <yao@codesourcery.com>
275 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
276 when the length of content is not an even number.
278 2012-09-27 Tom Tromey <tromey@redhat.com>
280 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
281 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
283 2012-09-27 Joel Brobecker <brobecker@adacore.com>
285 * sol-thread.c (sol_thread_fetch_registers)
286 (sol_thread_store_registers): Delete commented out code.
288 2012-09-27 Joel Brobecker <brobecker@adacore.com>
290 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
291 Move these functions to sparc-sol-thread.c.
292 * sparc-sol-thread.c: New file.
293 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
294 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
296 * configure: Regenerate.
298 2012-09-27 Joel Brobecker <brobecker@adacore.com>
300 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
301 Remove commented-out code.
303 2012-09-27 Joel Brobecker <brobecker@adacore.com>
305 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
306 Enable this code for sparc hosts only.
308 2012-09-27 Joel Brobecker <brobecker@adacore.com>
310 * procfs.h (procfs_find_LDT_entry): Add declaration.
311 * sol-thread.c (ps_lgetLDT): Delete local declaration of
312 function procfs_find_LDT_entry.
314 2012-09-27 Joel Brobecker <brobecker@adacore.com>
316 * procfs.c (proc_get_LDT_entry): Make static.
318 2012-09-27 Joel Brobecker <brobecker@adacore.com>
320 * procfs.c (proc_find_memory_regions): Fix declaration.
322 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
324 * amd64-tdep.c (amd64_return_value): Revert previous change
325 that used TYPE_LENGTH directly.
326 * bfin-tdep.c (bfin_extract_return_value): Likewise.
327 (bfin_store_return_value): Likewise.
328 * cris-tdep.c (cris_store_return_value): Likewise.
329 (cris_extract_return_value): Likewise.
330 * h8300-tdep.c (h8300_extract_return_value): Likewise.
331 * hppa-tdep.c (hppa64_return_value): Likewise.
332 * lm32-tdep.c (lm32_store_return_value): Likewise.
333 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
334 * spu-tdep.c (spu_value_from_register): Likewise.
335 * vax-tdep.c (vax_return_value): Likewise.
337 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
339 * gdbtypes.c (lookup_array_range_type): Expand parameters
340 LOW_BOUND and HIGH_BOUND to LONGEST.
341 (lookup_string_range_type): Likewise.
342 * gdbtypes.h (lookup_array_range_type): Likewise.
343 (lookup_string_range_type): Likewise.
344 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
345 Expand HIGHBOUND to ssize_t.
346 (value_string): Likewise.
347 * value.h (value_cstring): Expand parameter LEN to ssize_t.
348 (value_string): Likewise.
350 2012-09-27 Yao Qi <yao@codesourcery.com>
353 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
354 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
357 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
359 * procfs.c: Add gdb_bfd header.
360 * rs6000-nat.c: Likewise.
361 * solib-pa64.c: Likewise.
362 * spu-linux-nat.c: Likewise.
363 * windows-nat.c: Likewise.
365 2012-09-26 Tom Tromey <tromey@redhat.com>
367 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
369 2012-09-26 Tom Tromey <tromey@redhat.com>
371 * dwarf2read.c (mark_common_block_symbol_computed): New function.
372 (read_common_block): Handle child DIEs with
373 DW_AT_data_member_location.
374 (new_symbol_full): Add special case for common blocks.
376 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
377 Tom Tromey <tromey@redhat.com>
379 * dwarf2read.c (read_common_block): Rewrite.
380 (new_symbol_full): Handle DW_TAG_common_block.
381 * f-lang.c (head_common_list, find_common_for_function):
383 * f-lang.h (struct common_entry, struct saved_f77_common,
384 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
385 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
386 BLANK_COMMON_NAME_LOCAL): Remove.
387 (struct common_block): New.
388 * f-valprint.c (list_all_visible_commons): Remove.
389 (info_common_command_for_block): New function.
390 (info_common_command): Use it.
391 * stack.c (iterate_over_block_locals): Special case for
393 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
395 (struct general_symbol_info) <value.common_block>: New field.
396 (SYMBOL_VALUE_COMMON_BLOCK): New define.
398 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
399 Tom Tromey <tromey@redhat.com>
401 * f-lang.c (allocate_saved_bf_node,
402 allocate_saved_function_node, allocate_saved_f77_common_node,
403 allocate_common_entry_node, tail_common_list, current_common,
404 saved_bf_list, saved_bf_list_end, current_head_bf_list,
405 tmp_bf_ptr, add_common_block, add_common_entry,
406 find_first_common_named, patch_common_entries,
407 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
408 global_remote_debug, get_bf_for_fcn, saved_function_list,
409 saved_function_list_end, clear_function_list, struct saved_fcn,
410 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
411 SAVED_BF, SAVED_BF_PTR): Remove.
412 * f-lang.h (tail_common_list, current_common,
413 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
414 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
415 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
416 real_main_c_value): Remove.
417 * f-valprint.c (there_is_a_visible_common_named): Remove.
419 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
421 * breakpoint.c (update_global_location_list): Ignore previous
422 duplicate status of a breakpoint when starting a new scan for
423 duplicate breakpoints.
425 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
427 * arm-tdep.c (arm_skip_prologue): Extending producer check to
428 support LLVM compiler.
430 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
432 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
433 * bfin-tdep.c (bfin_extract_return_value): Likewise.
434 (bfin_store_return_value): Likewise.
435 * cris-tdep.c (cris_store_return_value): Likewise.
436 (cris_extract_return_value): Likewise.
437 * h8300-tdep.c (h8300_extract_return_value): Likewise.
438 * hppa-tdep.c (hppa64_return_value): Likewise.
439 * lm32-tdep.c (lm32_store_return_value): Likewise.
440 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
441 * spu-tdep.c (spu_value_from_register): Likewise.
442 * vax-tdep.c (vax_return_value): Likewise.
444 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
446 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
447 parameter LEN to ssize_t.
449 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
451 * ada-valprint.c (ada_val_print_1): Eliminate single-use
453 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
455 (alpha_store_return_value): Likewise.
456 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
457 (amd64_push_arguments): Likewise.
458 * ax-gdb.c (gen_trace_static_fields): Likewise.
459 (gen_traced_pop): Likewise.
460 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
461 * breakpoint.c (update_watchpoint): Likewise.
462 * findcmd.c (parse_find_args): Use local variable for type
464 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
465 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
466 (h8300_store_return_value): Likewise.
467 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
468 Use i386_darwin_arg_type_alignment directly.
469 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
470 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
471 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
472 (m68hc11_extract_return_value): Likewise.
473 * mep-tdep.c (mep_push_dummy_call): Likewise.
474 * printcmd.c (float_type_from_length): Likewise.
475 * s390-tdep.c (s390_value_from_register): Likewise.
476 * stack.c (read_frame_arg): Likewise.
477 * tracepoint.c (encode_actions_1): Likewise.
478 * valops.c (value_fetch_lazy): Use local variable for type
479 instead of length. Use TYPE_LENGTH directly.
480 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
482 2012-09-25 Joel Brobecker <brobecker@adacore.com>
484 * symtab.c (skip_prologue_sal): Fix typo in comment.
486 2012-09-25 Joel Brobecker <brobecker@adacore.com>
488 * linespec.c (create_sals_line_offset): Fix typo in comment.
490 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
492 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
493 use plongest to print the array size.
495 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
497 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
498 * p-valprint.c (pascal_type_print_base): Likewise.
500 2012-09-22 Yao Qi <yao@codesourcery.com>
502 * remote.c (remote_get_trace_status): Remove setting default
503 values of fields of 'ts'.
505 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
507 Fix internal error on canonicalization of clang types.
508 * cp-name-parser.y (operator): New comment at make_operator call for
509 new, delete, new[] and delete[].
510 (exp): Use "sizeof ". Add new comment at make_operator call.
512 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
514 Fix disassemble without parameters in tailcall frame.
515 * cli/cli-cmds.c (disassemble_current_function): Use
516 get_frame_address_in_block.
518 2012-09-21 Tom Tromey <tromey@redhat.com>
520 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
521 TYPE_CODE_UNION>: Unify, removing a goto.
523 2012-09-21 Tom Tromey <tromey@redhat.com>
525 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
527 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
529 * findvar.c (read_frame_register_value): Mark the result value as
530 optimized out if any of the input registers have been optimized out.
532 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
534 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
536 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
538 * eval.c (evaluate_subexp_standard): Eliminate single-use
541 2012-09-21 Yao Qi <yao@codesourcery.com>
543 * mi/mi-interp.c: Declare mi_record_changed.
544 (mi_interpreter_init): Call observer_attach_record_changed.
545 (mi_record_changed): New.
546 * record.c (record_open): Call observer_notify_record_changed.
547 (cmd_record_stop): Call observer_notify_record_changed.
550 2012-09-20 Tom Tromey <tromey@redhat.com>
553 * python/python.c (finalize_python): New function.
554 (_initialize_python): Make a final cleanup.
556 2012-09-19 Doug Evans <dje@google.com>
558 * buildsym.h (param_symbols): Delete, unused.
559 (context_stack): Delete member "params", unused.
560 * buildsym.c (push_context): Update.
561 * dwarf2read.c (read_func_scope): Update.
563 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
565 * sh-tdep.c (sh_register_convert_to_virtual)
566 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
567 all callers. Just do a memcpy if not the little-endian case.
569 * h8300-tdep.c (h8300_gdbarch_init): Invoke
570 set_gdbarch_double_format and set_gdbarch_long_double_format.
571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
572 set_gdbarch_double_format.
573 * sh-tdep.c (sh_gdbarch_init): Likewise.
575 * NEWS: Document the removal of SH's 'regs' command.
576 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
579 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
581 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
584 2012-09-18 Joel Brobecker <brobecker@adacore.com>
586 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
587 language when iterating over symbols.
589 2012-09-18 Yao Qi <yao@codesourcery.com>
591 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
592 (mi_interpreter_init): Call observer_attach_tsv_created and
593 observer_attach_tsv_deleted.
594 (mi_tsv_created, mi_tsv_deleted): New.
595 * tracepoint.c (delete_trace_state_variable): Call
596 observer_notify_tsv_deleted.
597 (trace_variable_command): Call observer_notify_tsv_created.
598 (delete_trace_variable_command): Call
599 observer_notify_tsv_deleted.
600 (create_tsv_from_upload): Call observer_notify_tsv_created.
603 2012-09-18 Yao Qi <yao@codesourcery.com>
605 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
606 if traceframe changed.
607 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
609 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
610 (mi_interpreter_init): Hook mi_traceframe_changed to observer
611 'traceframe_changed'.
612 (mi_traceframe_changed): New.
613 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
615 * NEWS: Mention the new MI notification.
617 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
619 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
621 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
623 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
624 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
625 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
626 Extend code also for PaX support. Convert all gdb_assert to warning
629 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
631 Implement auto-load user conveniences suggested by Doug Evans.
632 * auto-load.c: Include top.h.
633 (file_is_auto_load_safe): New variable advice_printed. Print advice.
634 (_initialize_auto_load): New variable scripts_directory_help. Mention
635 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
636 scripts-directory. Document in online help one can use also files for
637 set auto-load safe-path.
638 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
639 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
641 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
643 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
646 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
648 * m2-valprint.c (m2_print_array_contents): Eliminate variable
649 ELTLEN and use TYPE_LENGTH directly.
650 (m2_val_print): Likewise.
651 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
652 variable LEN and use TYPE_LENGTH directly.
653 (m68k_svr4_store_return_value): Likewise.
654 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
655 ARGLEN and use TYPE_LENGTH directly.
656 (mips_o64_push_dummy_call): Likewise.
657 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
658 variable LENGTH and use TYPE_LENGTH directly.
659 (s390_function_arg_float): Likewise.
660 (s390_function_arg_integer): Likewise.
661 (s390_push_dummy_call): Likewise.
662 (s390_return_value_convention): Likewise.
663 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
664 TYPE_LENGTH directly.
666 2012-09-17 Yao Qi <yao@codesourcery.com>
668 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
669 Update comment to add_setshow_integer_cmd.
670 * cli/cli-setshow.c (do_set_command): Handle case
671 'var_zuinteger_unlimited'.
672 (do_show_command): Likewise.
673 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
674 for command 'remotetimeout'.
675 * command.h (enum var_types): New zuinteger_unlimited. Update comment
677 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
678 for command 'set listsize'.
680 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
682 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
685 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
688 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
689 (frame_pop): Drop also TAILCALL_FRAME frames.
690 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
692 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
693 Pedro Alves <palves@redhat.com>
696 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
697 function start if we are already at function start. Both for
698 reverse-next and for reverse-step into function without line number
701 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
703 Code cleanup - rename 'inline' depth to 'artificial' depth.
704 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
705 frame_id_artificial_p, extend the comment.
706 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
707 * frame.c (fprint_frame_id): Rename at a user, change debug output
708 text to "artificial=".
709 (skip_inlined_frames): Rename to ...
710 (skip_artificial_frames): ... here. Extend the comment.
711 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
712 (frame_id_inlined_p): Rename to ...
713 (frame_id_artificial_p): ... here. Rename at a user.
714 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
715 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
717 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
719 (frame_id_inlined_p): Rename to ...
720 (frame_id_artificial_p): ... here.
721 * inline-frame.c (inline_frame_this_id): Rename at a user.
723 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
725 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
726 vector variables using vector_size syntax rather than array
729 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
731 * valarith.c (value_concat): Replace unsafe ALLOCA with
734 2012-09-14 Pedro Alves <palves@redhat.com>
736 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
738 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
740 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
741 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
742 data-directory as appropriate.
744 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
746 * printcmd.c (ui_printf): Eliminate single-use variable
749 2012-09-14 Yao Qi <yao@codesourcery.com>
750 Pedro Alves <palves@redhat.com>
752 * valops.c (value_assign): Move observer_notify_target_changed
753 below to replace reinit_frame_cache.
755 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
757 Refactor Python "gdb" module into a proper Python package, by
758 introducing a new "_gdb" module for code implemented in C, and
759 using reload/__import__ instead of exec.
760 * python/lib/gdb/__init__.py: Import * from _gdb.
761 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
762 prompt_hook, sys.argv): Moved from finish_python_initialization.
763 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
764 (packages, auto_load_packages): New list and function replacing
765 module_dict and auto-loading code, using __file__ instead of
766 gdb.PYTHONDIR and reload/__import__ instead of exec.
767 (GdbSetPythonDirectory): Replacing function of the same name
768 from finish_python_initialization, using reload/__import__ instead
769 of exec, as well as call auto_load_packages.
770 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
771 gdb_python_module and not gdb_module.
772 * python/python-internal.h (gdb_python_module): Declare.
773 * python/python.c (gdb_python_module): New global.
774 (before_prompt_hook): Check gdb_python_module and not gdb_module.
775 (_initialize_python): Rename gdb module to _gdb.
776 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
777 (finish_python_initialization): Move Python code to
778 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
781 2012-09-13 Pedro Alves <palves@redhat.com>
783 * Makefile.in (COMMON_OBS): Add registry.o.
784 * registry.c: New file.
785 * registry.h (struct registry_container): Declare.
786 (registry_data_callback): New typedef.
787 (struct registry_data, struct registry_data_registration, struct
788 registry_data_registry): New type.
789 (register_data_with_cleanup, registry_alloc_data)
790 (registry_callback_adaptor, registry_clear_data)
791 (registry_container_free_data, registry_set_data, registry_data):
793 (DEFINE_REGISTRY): Refactor structures and functions as shims over
794 the new common structures and functions.
795 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
798 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
800 * remote.c (remote_insert_hw_breakpoint): Throw exception if
801 there is an error inserting hardware breakpoints and use the
802 error message from the target.
804 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
805 Catch this exception and print the error message contained within. Do not
806 print the default hardware error breakpoint message in this case.
808 2012-09-12 Doug Evans <dje@google.com>
810 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
813 2012-09-11 Doug Evans <dje@google.com>
815 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
816 .gdb_index symbol attributes if there are none.
818 2012-09-11 Joel Brobecker <brobecker@adacore.com>
820 * symtab.h (struct minimal_symbol) [has_size]: New field.
821 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
822 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
823 * printcmd.c (build_address_symbolic): Only filter out zero-sized
824 minimal symbols if the symbol's size is actually known.
825 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
826 of msymbol's size field. Add comment.
827 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
828 SET_MSYMBOL_SIZE to set the minimal symbol size.
830 2012-09-11 Joel Brobecker <brobecker@adacore.com>
832 * minsyms.c (install_minimal_symbols): Use memset to fill entire
833 minimal_symbol struct object, rather than setting some of its
836 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
838 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
839 passed_a_ptr flag when displaying typedef types.
841 2012-09-10 Joel Brobecker <brobecker@adacore.com>
843 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
844 the optimized_out flag is preserved.
846 2012-09-10 Anthony Green <green@moxielogic.com>
848 * moxie-tdep.c (moxie_analyze_prologue): Update for function
849 prologue changes in GCC.
851 2012-09-10 Keith Seitz <keiths@redhat.com>
854 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
855 (BOOL_CONVERSION_BADNESS): ... this.
856 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
857 (rank_one_type): Allow all boolean conversions
858 permitted by the standard.
860 2012-09-06 Tom Tromey <tromey@redhat.com>
862 * python/py-newobjfileevent.c (create_new_objfile_event_object):
863 Don't decref py_objfile.
865 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
867 Do not enable -lmcheck by default when Python is enabled with
869 * configure.ac: (python_has_threads) New variable, by testing
870 if WITH_THREAD is defined in Python.h.
871 Move --enable-lmcheck after --with-python.
872 Do not enable -lmcheck by default if python_has_threads=yes.
873 Warn if --enable-lmcheck and python_has_threads=yes.
874 * configure: Regenerate.
876 2012-08-31 Yao Qi <yao@codesourcery.com>
878 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
879 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
880 Update some commands.
881 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
882 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
885 2012-08-31 Yao Qi <yao@codesourcery.com>
887 * mi/mi-cmds.c (mi_cmds): Add 'static'.
889 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
891 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
893 2012-08-29 Doug Evans <dje@google.com>
895 * main.c (print_gdb_help): Remove reference to
896 --use-deprecated-index-sections.
898 2012-08-28 Yao Qi <yao@codesourcery.com>
900 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
901 (init_cmds): Call add_setshow_uinteger_cmd for command
902 'max-user-call-depth'.
903 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
904 declaration of 'max_user_call_depth'.
905 * frame.c (backtrace_limit): Add 'unsigned'.
906 (_initialize_frame): Call add_setshow_uinteger_cmd for command
908 * remote.c (remoteaddresssize): Add 'unsigned'.
909 (remote_address_masked): Change local var 'address_size' to
911 (_initialize_remote): Call add_setshow_uinteger_cmd for
913 * top.c (history_size): Add 'unsigned'.
914 (show_commands): Change local variables to 'unsigned'.
915 (set_history_size_command): Don't check history_size is negative.
916 Adjust the condition to call unstifle_history and set history_size
919 2012-08-28 Pedro Alves <palves@redhat.com>
923 * infcmd.c (default_print_one_register_info): New, factored out
924 from default_print_registers_info.
925 (default_print_registers_info): Use it. Mark value unavailable if
927 (registers_info): Print user registers with
928 default_print_one_register_info.
930 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
933 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
934 is not NULL before referencing it.
936 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
938 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
939 variable pc. Call find_pc_line instead of find_pc_overlay, restore
942 2012-08-27 Eli Zaretskii <eliz@gnu.org>
943 Jan Kratochvil <jan.kratochvil@redhat.com>
945 * auto-load.c (auto_load_objfile_script): Rename to ...
946 (auto_load_objfile_script_1): ... here, change variable realname to
947 parameter realname, document it, add return value, add variable retval.
948 (auto_load_objfile_script): New function.
950 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
952 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
953 followed by a whitespace.
955 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
958 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
959 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
960 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
963 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
965 * memattr.c (create_mem_region): Fix memory region overlapping
968 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
970 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
971 with xmalloc/cleanup.
972 * mt-tdep.c (mt_push_dummy_call): Likewise.
973 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
974 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
976 2012-08-24 Yao Qi <yao@codesourcery.com>
978 * jv-exp.y (push_expression_name): Add "." at the end of error
981 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
983 Document how to return from "python-interactive" to GDB.
984 * python/python.c (_initialize_python): Update documentation.
986 2012-08-23 Pedro Alves <palves@redhat.com>
988 * infrun.c (_initialize_infrun) <handle command help text>:
989 Mention that multiple signals are supported.
991 2012-08-23 Pedro Alves <palves@redhat.com>
993 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
996 2012-08-23 Yao Qi <yao@codesourcery.com>
998 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
999 (tfind_1): Don't call registers_changed, set_traceframe_num,
1000 and clear_traceframe_info.
1001 Call set_current_traceframe.
1002 (set_current_traceframe): call set_traceframe_num.
1004 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1006 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1007 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1009 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1011 Enable readline in Python in a GDB-specific way and block the
1012 standard Python readline module to prevent conflicts with GDB.
1013 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1014 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1015 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1016 * python/py-gdb-readline.c: New file.
1017 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1019 * python/python.c (_initialize_python): Call
1020 gdbpy_initialize_gdb_readline.
1022 2012-08-22 Keith Seitz <keiths@redhat.com>
1024 * defs.h: Include build-gnulib/config.h
1026 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1028 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1031 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1033 Add a new "python-interactive" command that starts a standard
1034 Python interactive prompt with "pi" as alias, and add "py" as
1035 an alias to "python".
1036 * NEWS: Mention the new commands.
1037 * python/python.c (eval_python_command): New function.
1038 (python_interactive_command): For "python-interactive" with
1039 arguments, call eval_python_command. For "python-interactive"
1040 without arguments, call PyRun_InteractiveLoop.
1041 (_initialize_python): Add "python-interactive" command with
1042 "pi" as alias, and add "py" as an alias to "python".
1044 2012-08-22 Tom Tromey <tromey@redhat.com>
1046 * defs.h (quit_flag): Don't declare.
1047 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1048 (QUIT): Use new functions.
1049 * event-top.c (command_handler): Use clear_quit_flag.
1050 (handle_sigint): Use set_quit_flag.
1051 (async_request_quit): Use check_quit_flag. Don't check
1053 * exceptions.c (throw_exception): Use clear_quit_flag.
1054 * main.c (captured_main): Use clear_quit_flag.
1055 * python/python.c (clear_quit_flag, set_quit_flag)
1056 (check_quit_flag): New functions.
1057 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1059 * remote.c (remote_wait_as): Use check_quit_flag,
1061 (remote_start_remote): Call QUIT.
1062 * symfile.c (load_progress): Use check_quit_flag.
1063 * top.c (command_loop): Use clear_quit_flag.
1064 (command_line_input): Call QUIT.
1065 * utils.c (quit_flag): Conditionally define.
1066 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1068 (prompt_for_continue): Call QUIT. Use quit, not
1070 * remote-mips.c (mips_expect_timeout): Call QUIT.
1071 * monitor.c (monitor_expect): Call QUIT.
1073 2012-08-22 Tom Tromey <tromey@redhat.com>
1075 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1076 (async_init_signals): Update.
1077 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1078 (SIGWINCH_HANDLER_BODY): Remove.
1080 2012-08-22 Tom Tromey <tromey@redhat.com>
1082 * jit.c (jit_object_close_impl): Don't malloc the objfile
1084 * objfiles.c (allocate_objfile): Don't malloc the objfile
1086 (free_objfile): Don't free the objfile name.
1087 * objfiles.h (struct objfile) <name>: Update comment.
1088 * symfile.c (reread_symbols): Fix reference counting. Don't
1089 malloc objfile name.
1091 2012-08-22 Tom Tromey <tromey@redhat.com>
1093 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1094 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1095 (symfile_bfd_open): Likewise.
1096 (generic_load): Likewise.
1097 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1098 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1100 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1102 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1103 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1104 (pmon_load_fast): Likewise.
1105 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1106 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1107 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1108 (macho_check_dsym): Likewise.
1109 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1110 (m32r_upload_command): Likewise.
1111 * gdb_bfd.h (gdb_bfd_cache): Declare.
1112 * gdb_bfd.c (struct gdb_bfd_data): New.
1113 (gdb_bfd_cache): New global.
1114 (struct gdb_bfd_cache_search): New.
1115 (hash_bfd): New function.
1117 (gdb_bfd_open): Likewise.
1118 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1119 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1121 * exec.c (exec_file_attach): Use gdb_bfd_open.
1122 * dsrec.c (load_srec): Use gdb_bfd_open.
1124 2012-08-22 Tom Tromey <tromey@redhat.com>
1126 * dwarf2read.c (macro_start_file): Update.
1127 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1128 (free_objfile_per_bfd_storage): Destroy macro_cache.
1129 (allocate_objfile, free_objfile): Update.
1130 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1132 (struct objfile) <macro_cache>: Remove.
1133 * symfile.c (reread_symbols): Update.
1134 * symmisc.c (print_symbol_bcache_statistics): Update.
1135 (print_objfile_statistics): Update.
1137 2012-08-22 Tom Tromey <tromey@redhat.com>
1139 * elfread.c (elf_symtab_read): Update.
1140 * objfiles.c (objfiles_bfd_data): New global.
1141 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1142 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1143 (allocate_objfile, free_objfile): Update.
1144 (_initialize_objfiles): Initialize objfiles_bfd_data.
1145 * objfiles.h (struct objfile_per_bfd_storage): New.
1146 (struct objfile) <per_bfd>: New field.
1147 <filename_cache>: Remove.
1148 (set_objfile_per_bfd): Declare.
1149 * symfile.c (reread_symbols): Update. Call
1150 set_objfile_per_bfd.
1151 (allocate_symtab): Update.
1152 * symmisc.c (print_symbol_bcache_statistics): Update.
1153 (print_objfile_statistics): Print the size of the BFD obstack.
1155 2012-08-22 Tom Tromey <tromey@redhat.com>
1157 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1158 * gdb_bfd.c: Use DEFINE_REGISTRY.
1159 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1160 (gdb_bfd_ref): Call bfd_alloc_data.
1161 (gdb_bfd_unref): Call bfd_free_data.
1163 2012-08-22 Tom Tromey <tromey@redhat.com>
1165 * registry.h (struct registry_fields): New.
1166 (REGISTRY_FIELDS): Redefine.
1167 (REGISTRY_ACCESS_FIELD): New macro.
1168 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1171 2012-08-22 Tom Tromey <tromey@redhat.com>
1173 * auto-load.c (_initialize_auto_load): Update.
1174 * solib-svr4.c (_initialize_svr4_solib): Update
1175 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1176 * solib-darwin.c (_initialize_darwin_solib): Update.
1177 * registry.h: New file.
1178 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1179 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1180 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1181 (register_program_space_data_with_cleanup)
1182 (register_program_space_data, program_space_alloc_data)
1183 (clear_program_space_data, set_program_space_data)
1184 (program_space_data): Don't declare.
1185 * progspace.c: Use DEFINE_REGISTRY.
1186 (struct program_space_data, struct
1187 program_space_data_registration, struct
1188 program_space_data_registry, program_space_data_registry)
1189 (register_program_space_data_with_cleanup)
1190 (register_program_space_data, program_space_alloc_data)
1191 (program_space_free_data, clear_program_space_data)
1192 (set_program_space_data, program_space_data): Remove.
1193 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1194 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1195 (register_objfile_data_with_cleanup, register_objfile_data)
1196 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1198 * objfiles.c: Use DEFINE_REGISTRY.
1199 (struct objfile_data, struct objfile_data_registration, struct
1200 objfile_data_registry, objfile_data_registry)
1201 (register_objfile_data_with_cleanup, register_objfile_data)
1202 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1203 (set_objfile_data, objfile_data): Remove.
1204 (_initialize_objfiles): Update.
1205 * jit.c (_initialize_jit): Update.
1206 * inflow.c (_initialize_inflow): Update.
1207 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1208 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1209 (register_inferior_data_with_cleanup, register_inferior_data)
1210 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1212 * inferior.c: Use DEFINE_REGISTRY.
1213 (struct inferior_data, struct inferior_data_registration, struct
1214 inferior_data_registry, inferior_data_registry)
1215 (register_inferior_data_with_cleanup, register_inferior_data)
1216 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1217 (set_inferior_data, inferior_data): Remove.
1218 * auxv.c (_initialize_auxv): Update.
1219 * ada-lang.c (_initialize_ada_language): Update.
1220 * breakpoint.c (_initialize_breakpoint): Update.
1221 * i386-nat.c (i386_use_watchpoints): Update.
1223 2012-08-22 Tom Tromey <tromey@redhat.com>
1225 * exec.c (exec_close, exec_file_attach): Update.
1226 (add_to_section_table): Initialize 'key' field.
1227 (add_target_sections, remove_target_sections): Add 'key' argument.
1228 * exec.h (add_target_sections, remove_target_sections): Add
1230 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1231 (reload_shared_libraries_1): Update.
1232 * target.h (struct target_section) <key>: New field.
1234 2012-08-22 Tom Tromey <tromey@redhat.com>
1236 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1238 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1240 * symfile.c (allocate_symtab): Use host_address_to_string
1241 function instead of cast of pointer to long which is not
1242 compatible with x86_64-w64-mingw32 build.
1244 2012-08-19 Andrew Pinski <apinski@cavium.com>
1246 * mips-tdep.c (is_octeon): New function.
1247 (is_octeon_bbit_op): New function.
1248 (mips32_next_pc): Handle Octeon's bbit instructions.
1249 (mips32_instruction_has_delay_slot): Likewise.
1251 2012-08-19 Andrew Pinski <apinski@cavium.com>
1253 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1254 before the function.
1256 2012-08-19 Andrew Pinski <apinski@cavium.com>
1258 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1260 2012-08-19 Keith Seitz <keiths@redhat.com>
1263 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1264 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1266 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1268 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1269 The typo broke "make TAGS".
1271 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1275 2012-08-17 Keith Seitz <keiths@redhat.com>
1278 * gdbtypes.c (strict_type_checking): New variable.
1279 (show_strict_type_checking): New function.
1280 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1281 if strict type checking is disabled.
1282 (_initialize_gdbtypes): Add "check type" subcommand.
1283 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1285 2012-08-17 Keith Seitz <keiths@redhat.com>
1287 * language.h (type_mode): Remove.
1288 (type_check): Remove.
1289 (struct language_defn): Remove la_type_check.
1290 (STRICT_TYPE): Remove unused macro.
1291 (type_error): Remove.
1292 * language.c (set_type_range_case): Renamed to ...
1293 (set_range_case): ... this. Update all callers.
1294 Remove type_mode/type_check.
1295 (type_mode): Remove.
1296 (type_check): Remove.
1297 (show_type_command): Remove.
1298 (set_type_command): Remove.
1299 (language_info): Remove type checking output.
1300 (type_error): Remove unused function.
1301 (range_error): Update comment.
1302 (unknown_language_defn): Remove la_type_check.
1303 (auto_language_defn): Likewise.
1304 (local_language_defn): Likewise.
1305 (_initialize_language): Remove "check type" subcommand.
1306 * ada-lang.c (ada_language_defn): Remove la_type_check.
1307 * c-lang.c (c_language_defn): Likewise.
1308 (cplus_language_defn): Likewise.
1309 (asm_language_defn): Likewise.
1310 (minimal_language_defn): Likewise.
1311 * d-lang.c (d_language_defn): Likewise.
1312 * f-lang.c (f_language_defn): Likewise.
1313 * go-lang.c (go_language_defn): Likewise.
1314 * jv-lang.c (java_language_defn): Likewise.
1315 * m2-lang.c (m2_language_defn): Likewise.
1316 * objc-lang.c (objc_language_defn): Likewise.
1317 * opencl-lang.c (opencl_language_defn): Likewise.
1318 * p-lang.c (pascal_language_defn): Likewise.
1320 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1322 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1324 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1326 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1328 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1329 using the regache. Use ia64_hpux_get_register_from_save_state_t
1330 to access the bsp and bspstore registers if not.
1332 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1334 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1335 * breakpoint.c (detach_breakpoints): Change pid parameter into
1336 a ptid. Adjust code accordingly.
1337 * infrun.c (handle_inferior_event): Delete variable child_pid.
1338 Update call to detach_breakpoints to pass the child ptid for
1340 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1341 assert that inferior_ptid's lwp is zero.
1342 (linux_handle_extended_wait): Update call to detach_breakpoints.
1343 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1346 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1348 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1349 parent, only call detach_breakpoints if tts.tts_event ==
1352 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1354 * dwarf2-frame.c (dwarf2_frame_cache): Use
1355 get_frame_address_in_block instead of get_frame_pc as
1356 the bound for executing the frame's FDE.
1358 2012-08-16 Yao Qi <yao@codesourcery.com>
1360 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1361 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1362 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1363 (c_type_print_varspec_suffix): Likewise.
1364 * eval.c (evaluate_subexp_standard): Likewise.
1365 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1366 (f_type_print_varspec_suffix): Likewise.
1367 * gdbtypes.c (is_scalar_type): Likewise.
1368 (recursive_dump_type): Likewise.
1369 * infcall.c (value_arg_coerce): Likewise.
1370 * m2-valprint.c (m2_val_print): Likewise.
1371 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1372 (pascal_type_print_varspec_suffix): Likewise.
1373 (pascal_type_print_base): Likewise.
1374 * p-valprint.c (pascal_val_print): Likewise.
1375 (pascal_val_print): Likewise.
1376 * valops.c (value_slice): Likewise.
1377 * valprint.c (scalar_type_p): Likewise.
1378 * valarith.c (value_bitstring_subscript): Remove.
1379 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1380 Remove comment on TYPE_CODE_BITSTRING.
1382 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1383 TYPE_CODE_BITSTRING.
1385 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1388 2012-08-16 Yao Qi <yao@codesourcery.com>
1390 * tracepoint.c (trace_find_none_command): Remove.
1391 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1393 2012-08-16 Yao Qi <yao@codesourcery.com>
1395 * remote.c (handle_notification): Remove parameter 'length'.
1396 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1398 2012-08-15 Keith Seitz <keiths@redhat.com>
1400 * gdbtypes.c (opaque_type_resolution): Make static.
1401 Add missing comment.
1402 (overload_debug): Add missing comment.
1403 (show_opaque_type_resolution): Likewise.
1404 (show_overload_debug): Likewise.
1405 (print_bit_vector): Remove unnecessary forward declaration.
1406 (print_arg_types): Likewise.
1407 (dump_fn_fieldlists): Likewise.
1408 (print_cplus_stuff): Likewise.
1410 2012-08-15 Tom Tromey <tromey@redhat.com>
1412 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1413 (gdb_bfd_ref): Initialize new field.
1414 (gdb_bfd_unref): Unref the archive BFD.
1415 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1418 2012-08-15 Tom Tromey <tromey@redhat.com>
1421 * python/py-bpevent.c (create_breakpoint_event_object): Update
1423 * python/py-event.c (evpy_add_attribute): Update comment.
1424 * python/py-exitedevent.c (create_exited_event_object): Fix
1425 reference counting and error handling.
1426 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1427 Fix reference counting.
1428 * python/py-signalevent.c (create_signal_event_object): Fix
1429 reference counting and error handling.
1430 * python/py-stopevent.c (emit_stop_event): Fix reference
1432 * python/py-threadevent.c (get_event_thread): Return a
1434 * python/py-type.c (convert_field): Fix reference counting.
1436 2012-08-15 Tom Tromey <tromey@redhat.com>
1438 * dwarf2read.c (dwarf_decode_macro_bytes)
1439 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1442 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1444 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1445 stepi, nexti, finish, next, step, jump, and continue commands.
1446 * infrun.c (_initialize_infrun): Update help text for the handle
1449 2012-08-14 Doug Evans <dje@google.com>
1451 * gdbtypes.c (struct extra): Delete, unused.
1453 * gdbtypes.c: Whitespace cleanup.
1454 (address_space_name_to_int): Remove "extern" from definition.
1455 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1457 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1458 TYPE_POINTER_TYPE (type).
1460 2012-08-14 Gary Benson <gbenson@redhat.com>
1462 * solib-svr4.c (svr4_free_library_list): Use free_so.
1464 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1466 * .gitignore: Add go-exp.c.
1468 2012-08-13 Doug Evans <dje@google.com>
1470 * value.c (show_convenience): Tweak comment.
1471 (_initialize_values): Mention convenience functions in the help text
1472 for "show convenience".
1474 2012-08-13 Yao Qi <yao@codesourcery.com>
1476 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1477 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1479 * eval.c (evaluate_subexp_standard): Likewise.
1480 * expprint.c (print_subexp_standard): Likewise.
1481 (dump_subexp_body_standard): Likewise.
1482 * parse.c (operator_length_standard): Likewise.
1484 2012-08-13 Yao Qi <yao@codesourcery.com>
1486 * std-operator.def: Remove OP_BITSTRING.
1487 * breakpoint.c (watchpoint_exp_is_const): Update.
1488 * eval.c (evaluate_subexp_standard): Remove handling to
1490 * expprint.c (print_subexp_standard): Likewise.
1491 (dump_subexp_body_standard): Likewise.
1492 * parse.c (operator_length_standard): Likewise.
1493 * valops.c (value_bitstring): Remove.
1494 * value.h: Remove the declaration of 'value_bitstring'.
1496 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1498 * linespec.c (find_methods): Remove unused variables `i1' and
1500 (decode_line_full): Likewise for `arg_start'.
1502 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1504 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1505 (zlib_decompress_section): Likewise for `section_data'.
1506 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1508 2012-08-10 Doug Evans <dje@google.com>
1510 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1511 * NEWS: Document them.
1512 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1514 * python/py-type.c (typy_array_1): New function.
1515 (typy_array): Call it.
1516 (typy_vector): New function.
1517 (type_object_methods): Add "vector".
1518 * python/lib/gdb/function/__init__.py: New file.
1519 * python/lib/gdb/function/strfns.py: New file.
1521 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1523 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1524 for TYPE_FIELD_BITPOS.
1525 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1527 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1530 * common/vec.h (VEC_merge): Define.
1531 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1532 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1533 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1534 * completer.c: Include gdb_signals.h.
1535 (signal_completer): Define.
1536 * completer.h (signal_completer): Add prototype.
1537 * infcmd.c (_initialize_infcmd): Assign the command
1538 completer for "signal" to handle_completer.
1539 * infrun.c: Include completer.h.
1540 (handle_completer): Define.
1541 (_initialize_infrun): Declare a new local variable c. Store the
1542 result of add_com("handle") to it. Assign the command
1543 completer for "handle" to handle_completer.
1545 2012-08-09 Yao Qi <yao@codesourcery.com>
1547 * cli/cli-decode.c (set_cmd_prefix): New.
1548 (lookup_cmd_for_prefixlist): New.
1549 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1550 of each cmd_list_element in *prefixlist.
1551 (add_setshow_cmd_full): set_cmd_prefix.
1552 (add_alias_cmd): Likewise.
1553 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1554 Declare 'auto_boolean_enums'.
1555 * cli/cli-setshow.c: Include "observer.h".
1556 (notify_command_param_changed_p): New.
1557 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1559 (do_setshow_command): Split it to ...
1560 (do_set_command, do_show_command): ... them. New.
1561 (do_set_command): Call observer_notify_command_param_changed if
1562 notify_command_param_changed_p returns true.
1563 (cmd_show_list): Caller update.
1564 * auto-load.c (set_auto_load_cmd): Likewise.
1565 * remote.c (show_remote_cmd): Likewise.
1566 * cli/cli-setshow.h: Update declarations.
1567 * top.c (execute_command): Call do_set_command and do_show_command.
1569 * NEWS: Mention new MI notification.
1570 * mi/mi-interp.c: Declare mi_command_param_changed.
1571 (mi_interpreter_init): Attach mi_command_param_changed to
1572 observer command_param_changed.
1573 (mi_command_param_changed): New.
1574 Remove mi_suppress_breakpoint_notifications.
1575 Define global variable mi_suppress_notification.
1576 (mi_breakpoint_created): Update.
1577 (mi_breakpoint_deleted): Likewise.
1578 (mi_breakpoint_modified): Likewise.
1579 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1580 'gdb-set' and set mi_suppress_notification.
1581 * mi/mi-main.h: (mi_suppress_notification): New struct.
1583 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1584 Jan Kratochvil <jan.kratochvil@redhat.com>
1586 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1588 2012-08-09 Yao Qi <yao@codesourcery.com>
1590 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1591 (skiplist): Move it to skip.c.
1592 (init_cmd_lists): Remove code setting enablebreaklist and
1594 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1595 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1597 * gdbcmd.h: Likewise.
1598 * skip.c (_initialize_step_skip): Move 'skiplist' from
1601 2012-08-09 Yao Qi <yao@codesourcery.com>
1603 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1604 * gnu-nat.c, symfile.c: Likewise.
1606 2012-08-08 Aaron Gamble <agamble@google.com>
1608 * utils.c (prompt_for_continue_wait_time): New static global.
1609 (make_command_stats_cleanup): Initialize it.
1610 (report_command_stats): Subtract time waiting for user.
1611 (prompt_for_continue): Track time waiting for user.
1612 (defaulted_query): Track time waiting for user.
1614 2012-08-08 Doug Evans <dje@google.com>
1616 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1618 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1619 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1620 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1621 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1622 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1623 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1625 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1626 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1627 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1628 (dump_prefix_expression): Handle OP_TYPE.
1630 2012-08-08 Keith Seitz <keiths@redhat.com>
1632 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1635 2012-08-08 Doug Evans <dje@google.com>
1637 * linux-thread-db.c: #include "gdb_vecs.h".
1638 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1640 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1641 (thread_db_load_search): Use a vector to iterate over path elements.
1642 Handle text appearing after "$pdir".
1644 * gdb_string.h: Moved to ...
1645 * common/gdb_string.h: ... here.
1646 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1647 gdb_string.h and gdb_assert.h.
1649 2012-08-08 Yao Qi <yao@codesourcery.com>
1651 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1652 (tic6x_value_to_register): Likewise.
1653 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1654 and set_gdbarch_value_to_register.
1656 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1657 Jean-Marc Saffroy <saffroy@gmail.com>
1660 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1661 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1662 * gcore.c (gcore_create_callback): New function comment. Add modified
1663 parameter. Only write modified regions. Set SEC_READONLY exactly
1664 according to MODIFIED.
1665 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1666 the passed modified value to FUNC.
1667 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1668 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1669 first. New variables modified and has_anonymous. Parse the lines of
1670 smaps file. Add the passed MODIFIED value to FUNC.
1671 * procfs.c (find_memory_regions_callback): Add the passed modified
1674 2012-08-06 Tom Tromey <tromey@redhat.com>
1676 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1677 (dwarf2_frame_cache): Use it.
1678 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1679 cache initialization constraint.
1681 2012-08-06 Tom Tromey <tromey@redhat.com>
1684 * varobj.c (update_dynamic_varobj_children): Don't call
1687 2012-08-06 Tom Tromey <tromey@redhat.com>
1690 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1692 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1694 * NEWS: New entry for 'cd' default parameters.
1695 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1697 2012-08-03 Tom Tromey <tromey@redhat.com>
1699 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1702 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1704 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1705 to attempting lseek/write.
1706 (inf_child_fileio_pread): Likewise for pread.
1708 2012-08-02 Yao Qi <yao@codesourcery.com>
1710 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1711 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1712 add_setshow_zinteger_cmd.
1713 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1714 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1715 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1716 instead of add_setshow_zinteger_cmd.
1717 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1718 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1719 instead of add_setshow_zinteger_cmd.
1720 * frame.c (frame_debug): Add 'unsigned'.
1721 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1722 add_setshow_zinteger_cmd.
1723 * frame.h: Update the declaration of 'frame_debug'.
1724 * gdbtypes.c (overload_debug): Add 'unsigned'.
1725 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1726 add_setshow_zinteger_cmd.
1727 * inferior.h: Update declaration of 'debug_infrun'.
1728 * infrun.c (debug_infrun): Add 'unsigned'.
1729 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1730 add_setshow_zinteger_cmd.
1731 * jit.c (jit_debug): Add 'unsigned'.
1732 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1733 add_setshow_zinteger_cmd.
1734 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1735 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1736 instead of add_setshow_zinteger_cmd.
1737 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1738 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1739 add_setshow_zinteger_cmd.
1740 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1741 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1742 instead of add_setshow_zinteger_cmd.
1743 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1744 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1745 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1746 intead of add_setshow_zinteger_cmd.
1747 * mips-tdep.c (mips_debug): Add 'unsigned'.
1748 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1749 instead of add_setshow_zinteger_cmd.
1750 * monitor.c (monitor_debug): Add 'unsigned'.
1751 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1752 add_setshow_zinteger_cmd.
1753 * observer.c (observer_debug): Add 'unsigned'.
1754 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1755 add_setshow_zinteger_cmd.
1756 * parse.c (expressiondebug): Add 'unsigned'.
1757 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1758 add_setshow_zinteger_cmd.
1759 * record.c (record_debug): Add 'unsigned'.
1760 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1761 add_setshow_zinteger_cmd.
1762 * record.h: Update the declaration of 'record_debug'.
1763 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1764 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1765 add_setshow_zinteger_cmd.
1766 * serial.c (global_serial_debug_p): Add 'unsigned'.
1767 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1768 add_setshow_zinteger_cmd.
1769 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1770 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1771 add_setshow_zinteger_cmd.
1772 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1773 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1774 add_setshow_zinteger_cmd.
1775 * target.c (targetdebug): Add 'unsigned'.
1776 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1777 add_setshow_zinteger_cmd.
1778 * valops.c (overload_debug): Add 'unsigned'.
1779 * varobj.c (varobjdebug): Add 'unsigned'.
1780 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1781 add_setshow_zinteger_cmd.
1782 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1783 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1784 instead of add_setshow_zinteger_cmd.
1786 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1787 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1788 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1789 instead of add_setshow_zinteger_cmd.
1790 * gdbarch.c, gdbarch.h: Re-generated.
1792 2012-08-02 Yao Qi <yao@codesourcery.com>
1794 * nto-tdep.c: Don't include cli/cli-decode.h and
1796 (_initialize_nto_tdep): Remove.
1797 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1799 Remove macro nto_internal_debugging.
1801 2012-08-01 Richard Henderson <rth@redhat.com>
1803 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1804 (mep-*-*) [gdb_target_obs]: Likewise.
1806 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1808 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1809 linux_get_siginfo_type.
1811 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1813 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1815 (call_function_by_hand) <ON_STACK>: Call write_memory with
1816 gdbarch_breakpoint_from_pc, if possible.
1817 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1820 2012-07-31 Yao Qi <yao@codesourcery.com>
1822 * tracepoint.c: Add 'static' for some variables.
1824 2012-07-31 Yao Qi <yao@codesourcery.com>
1826 * go32-nat.c: Declare _initialize_go32_nat.
1827 * ser-go32.c: Declare _initialize_ser_dos.
1828 * top.c (do_chdir_cleanup): Add 'static'.
1830 2012-07-30 Keith Seitz <keiths@redhat.com>
1832 * linespec.c (linespec_lex_number): A number followed
1833 by quotes is a valid number, too.
1835 2012-07-30 Tom Tromey <tromey@redhat.com>
1837 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1839 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1841 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1842 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1844 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1846 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1847 invalid or reevaluated to prevent prevent references to possibly
1848 delete'd type objects being left in the varobj.
1850 2012-07-27 Tom Tromey <tromey@redhat.com>
1851 Jan Kratochvil <jan.kratochvil@redhat.com>
1853 * copying.awk: Print buffer-read-only and vi ro markers.
1854 * copying.c: Rebuild.
1855 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1856 * gdbarch.c, gdbarch.h: Rebuild.
1857 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1858 buffer-read-only and vi ro markers.
1859 * features/arm-with-iwmmxt.c: Rebuild.
1860 * features/arm-with-m-fpa-layout.c: Rebuild.
1861 * features/arm-with-m-vfp-d16.c: Rebuild.
1862 * features/arm-with-m.c: Rebuild.
1863 * features/arm-with-neon.c: Rebuild.
1864 * features/arm-with-vfpv2.c: Rebuild.
1865 * features/arm-with-vfpv3.c: Rebuild.
1866 * features/i386/amd64-avx-linux.c: Rebuild.
1867 * features/i386/amd64-avx.c: Rebuild.
1868 * features/i386/amd64-linux.c: Rebuild.
1869 * features/i386/amd64.c: Rebuild.
1870 * features/i386/i386-avx-linux.c: Rebuild.
1871 * features/i386/i386-avx.c: Rebuild.
1872 * features/i386/i386-linux.c: Rebuild.
1873 * features/i386/i386-mmx-linux.c: Rebuild.
1874 * features/i386/i386-mmx.c: Rebuild.
1875 * features/i386/i386.c: Rebuild.
1876 * features/i386/x32-avx-linux.c: Rebuild.
1877 * features/i386/x32-avx.c: Rebuild.
1878 * features/i386/x32-linux.c: Rebuild.
1879 * features/i386/x32.c: Rebuild.
1880 * features/mips-dsp-linux.c: Rebuild.
1881 * features/mips-linux.c: Rebuild.
1882 * features/mips64-dsp-linux.c: Rebuild.
1883 * features/mips64-linux.c: Rebuild.
1884 * features/rs6000/powerpc-32.c: Rebuild.
1885 * features/rs6000/powerpc-32l.c: Rebuild.
1886 * features/rs6000/powerpc-403.c: Rebuild.
1887 * features/rs6000/powerpc-403gc.c: Rebuild.
1888 * features/rs6000/powerpc-405.c: Rebuild.
1889 * features/rs6000/powerpc-505.c: Rebuild.
1890 * features/rs6000/powerpc-601.c: Rebuild.
1891 * features/rs6000/powerpc-602.c: Rebuild.
1892 * features/rs6000/powerpc-603.c: Rebuild.
1893 * features/rs6000/powerpc-604.c: Rebuild.
1894 * features/rs6000/powerpc-64.c: Rebuild.
1895 * features/rs6000/powerpc-64l.c: Rebuild.
1896 * features/rs6000/powerpc-7400.c: Rebuild.
1897 * features/rs6000/powerpc-750.c: Rebuild.
1898 * features/rs6000/powerpc-860.c: Rebuild.
1899 * features/rs6000/powerpc-altivec32.c: Rebuild.
1900 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1901 * features/rs6000/powerpc-altivec64.c: Rebuild.
1902 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1903 * features/rs6000/powerpc-cell32l.c: Rebuild.
1904 * features/rs6000/powerpc-cell64l.c: Rebuild.
1905 * features/rs6000/powerpc-e500.c: Rebuild.
1906 * features/rs6000/powerpc-e500l.c: Rebuild.
1907 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1908 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1909 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1910 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1911 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1912 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1913 * features/rs6000/powerpc-vsx32.c: Rebuild.
1914 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1915 * features/rs6000/powerpc-vsx64.c: Rebuild.
1916 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1917 * features/rs6000/rs6000.c: Rebuild.
1918 * features/s390-linux32.c: Rebuild.
1919 * features/s390-linux32v1.c: Rebuild.
1920 * features/s390-linux32v2.c: Rebuild.
1921 * features/s390-linux64.c: Rebuild.
1922 * features/s390-linux64v1.c: Rebuild.
1923 * features/s390-linux64v2.c: Rebuild.
1924 * features/s390x-linux64.c: Rebuild.
1925 * features/s390x-linux64v1.c: Rebuild.
1926 * features/s390x-linux64v2.c: Rebuild.
1927 * features/tic6x-c62x-linux.c: Rebuild.
1928 * features/tic6x-c62x.c: Rebuild.
1929 * features/tic6x-c64x-linux.c: Rebuild.
1930 * features/tic6x-c64x.c: Rebuild.
1931 * features/tic6x-c64xp-linux.c: Rebuild.
1932 * features/tic6x-c64xp.c: Rebuild.
1934 2012-07-27 Tom Tromey <tromey@redhat.com>
1936 * c-exp.y (classify_name): Avoid assignment in condition.
1938 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1940 * amd64-windows-tdep.c: Include "frame.h".
1941 (amd64_windows_skip_trampoline_code): New function.
1942 (amd64_windows_init_abi): Add trampoline registration.
1944 2012-07-27 Yao Qi <yao@codesourcery.com>
1946 * tracepoint.c (cur_traceframe_number): Remove.
1947 (set_tfile_traceframe): Remove.
1948 (tfile_trace_find, tfile_fetch_registers): Update callers.
1949 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1950 (tfile_open, tfile_trace_find): Likewise.
1952 2012-07-27 Yao Qi <yao@codesourcery.com>
1954 * thread.c (switch_to_thread): Don't call registers_changed.
1956 2012-07-26 Tom Tromey <tromey@redhat.com>
1958 * Makefile.in (SFILES): Remove objc-exp.y.
1959 (YYFILES): Remove objc-exp.c.
1960 (YYOBJ): Remove objc-exp.o.
1961 (local-maintainer-clean): Don't mention objc-exp.c.
1962 * c-exp.y: Include objc-lang.h.
1963 (%union) <class>: New field.
1964 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1965 (exp): Clone subscript production for OBJC_LBRAC. Add various
1966 Objective C productions.
1967 (msglist, msgarglist, msgarg): New productions.
1968 (array_mod, func_mod, operator): Clone productions for
1970 (parse_string_or_char): Handle '@' strings.
1971 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1972 (classify_name): Check la_name_of_this. Recognize ObjC class
1974 * objc-exp.y: Remove.
1975 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1976 * objc-lang.h (objc_parse, objc_error): Don't declare.
1978 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1980 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1982 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1984 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1987 2012-07-26 Tom Tromey <tromey@redhat.com>
1989 * copying.c: Rebuild.
1990 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1993 2012-07-26 Tom Tromey <tromey@redhat.com>
1995 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1997 (print_objfile_statistics): Likewise.
1998 (maintenance_print_symbols): Likewise.
1999 (maintenance_print_msymbols): Likewise.
2000 (maintenance_print_objfiles): Likewise.
2001 * psymtab.c (print_partial_symbols): Call QUIT.
2002 (maintenance_print_psymbols): Likewise. Don't modify
2004 * copying.c (show_copying_command): Don't modify immediate_quit.
2005 (show_warranty_command): Likewise.
2006 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2008 2012-07-26 Keith Seitz <keiths@redhat.com>
2010 * linespec.c (linespec_lexer_lex_number): The input
2011 is also a valid number if the next character is a comma
2014 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2016 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2019 2012-07-26 Tristan Gingold <gingold@adacore.com>
2021 * machoread.c: Include gdb_bfd.h.
2023 2012-07-26 Tristan Gingold <gingold@adacore.com>
2025 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2028 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2030 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2032 (dwarf2_evaluate_loc_desc): Likewise.
2033 (dwarf2_loc_desc_needs_frame): Likewise.
2034 (locexpr_describe_location_1): Likewise.
2035 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2037 (struct dwarf2_loclist_baton): Likewise.
2038 * dwarf2read.c (struct dwarf_block): Likewise.
2039 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2040 (decode_locdesc): Expand SIZE and I to size_t.
2042 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2044 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2046 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2048 * doublest.c (convert_doublest_to_floatformat): If the exponent
2049 is too small, treat the value as zero. If the exponent is too
2050 large, treat the value as infinity.
2052 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2054 * configure.ac: Add --enable-lmcheck configure option.
2055 * configure: Regenerate.
2057 2012-07-25 Tom Tromey <tromey@redhat.com>
2059 * NEWS: Mention maint info bfds.
2060 * gdb_bfd.c (all_bfds): New global.
2061 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2062 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2065 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2067 * configure.tgt: Add v850*-*-rtems*.
2069 2012-07-25 Tom Tromey <tromey@redhat.com>
2071 * macrotab.c (macro_bcache_str): Remove cast.
2073 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2075 * linespec.c (linespec_lexer_lex_number): Update comments,
2076 change the return and add check to make sure the input is
2077 the decimal numbers.
2078 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2079 false, call linespec_lexer_lex_string.
2081 2012-07-24 Tom Tromey <tromey@redhat.com>
2083 * symfile.c (symbol_file_add): Don't open BFD twice.
2085 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2087 * breakpoint.c (create_breakpoint): Store condition for pending
2090 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2092 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2093 (m68k_return_value): Handle complex types like structures.
2094 (m68k_svr4_return_value): Likewise.
2096 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2098 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2099 parameters to bfd_get_section_name.
2101 2012-07-24 Yao Qi <yao@codesourcery.com>
2103 * cli/cli-setshow.c: Handle case 'var_uinteger'
2104 and 'var_zuninteger' together. Handle case 'var_integer' and
2105 'var_zinteger' together.
2107 2012-07-23 Keith Seitz <keiths@redhat.com>
2109 * linespec.c (convert_linespec_to_sal): Don't add
2110 any symbols to the result vector if symbol_to_sal
2113 2012-07-23 Keith Seitz <keiths@redhat.com>
2115 * linespec.c (decode_objc): Record the function name
2118 2012-07-23 Tom Tromey <tromey@redhat.com>
2120 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2122 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2123 (map_vmap): Acquire a reference to the BFD.
2125 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2127 * p-valprint.c (pascal_object_print_value): Replace potentially
2128 unsafe alloca with xmalloc/xfree.
2129 * valops.c (search_struct_method): Likewise.
2131 2012-07-23 Tom Tromey <tromey@redhat.com>
2133 * solib-svr4.c (enable_break): Update.
2134 * bfd-target.h (target_bfd_reopen): Update documentation.
2136 2012-07-23 Tom Tromey <tromey@redhat.com>
2138 * symfile.c (separate_debug_file_exists): Update.
2139 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2140 (reread_symbols): Update.
2141 * elfread.c (build_id_verify): Update.
2142 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2143 bfd_open_maybe_remote.
2145 2012-07-23 Tom Tromey <tromey@redhat.com>
2147 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2149 2012-07-23 Tom Tromey <tromey@redhat.com>
2151 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2153 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2155 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2156 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2158 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2159 * objfiles.c (allocate_objfile): Acquire a new reference.
2160 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2161 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2162 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2163 a cleanup for 'nbfd'.
2164 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2166 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2167 make a cleanup for 'abfd'.
2168 (symbol_file_add): Make a BFD cleanup.
2170 2012-07-23 Tom Tromey <tromey@redhat.com>
2172 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2173 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2174 * corelow.c (core_open): Use gdb_bfd_fopen.
2175 * dsrec.c (load_srec): Use gdb_bfd_openr.
2176 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2177 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2178 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2179 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2180 (gdb_bfd_fdopenr): New functions.
2181 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2182 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2183 (gdb_bfd_fdopenr): Declare.
2184 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2185 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2186 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2187 gdb_bfd_openr_next_archived_file.
2188 (macho_check_dsym): Use gdb_bfd_openr.
2189 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2190 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2191 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2192 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2194 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2195 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2196 gdb_bfd_openr_next_archived_file.
2197 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2199 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2201 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2202 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2203 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2204 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2205 (symfile_bfd_open): Use gdb_bfd_fopen.
2206 (generic_load): Use gdb_bfd_openr.
2207 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2209 2012-07-23 Tom Tromey <tromey@redhat.com>
2211 * bfd-target.c (target_bfd_reopen): Update.
2212 * cli/cli-dump.c (bfd_openr_with_cleanup)
2213 (bfd_openw_with_cleanup): Update.
2214 * corelow.c (core_open): Update.
2215 * dsrec.c (load_srec): Update.
2216 * exec.c (exec_file_attach): Update.
2217 * gcore.c (create_gcore_bfd): Update.
2218 * gdb_bfd.c (gdb_bfd_ref): Return void.
2219 (gdb_bfd_open): Update.
2220 * gdb_bfd.h (gdb_bfd_ref): Return void.
2222 * jit.c (jit_bfd_try_read_symtab): Update.
2223 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2224 * machoread.c (macho_symfile_read_all_oso): Update.
2225 (macho_check_dsym): Update.
2226 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2227 * remote-m32r-sdi.c (m32r_load): Update.
2228 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2229 * rs6000-nat.c (add_vmap): Update.
2230 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2232 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2233 * solib-spu.c (spu_bfd_open): Update.
2234 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2235 * spu-linux-nat.c (spu_bfd_open): Update.
2236 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2237 (generic_load): Update.
2238 * windows-nat.c (windows_make_so): Update.
2240 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2242 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2244 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2246 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2247 SIGTRAMP_FRAME unwinding.
2249 2012-07-20 Doug Evans <dje@google.com>
2251 * NEWS: Document new options "set/show use-deprecated-index-sections",
2252 and delete reference to --use-deprecated-index-sections.
2253 * symfile.h (use_deprecated_index_sections): Delete.
2254 * dwarf2read.c (use_deprecated_index_sections): Make static.
2255 (read_index_from_section): Update wording of how to load
2256 deprecated index sections.
2257 (_initialize_dwarf2_read): New options
2258 "set/show use-deprecated-index-sections".
2259 * main.c (captured_main): Delete --use-deprecated-index-sections.
2261 2012-07-20 Pedro Alves <palves@redhat.com>
2266 * infrun.c (handle_inferior_event) <new thread>: Don't special
2267 case minus_one_ptid.
2268 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2269 * linux-thread-db.c (thread_get_info_callback): Don't return early
2270 if the thread is zombie.
2271 (thread_from_lwp): Change return type to void. Rewrite stale
2273 (attach_thread): Don't return early if the thread is zombie,
2274 instead set its "dying" flag.
2275 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2276 (find_new_threads_callback): Don't return early if the thread is
2279 2012-07-20 Pedro Alves <palves@redhat.com>
2281 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2282 * target.c (target_wait): Likewise.
2283 (str_comma_list_concat_elem, do_option, target_options_to_string):
2285 * target.h (target_options_to_string): Declare.
2287 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2288 Tom Tromey <tromey@redhat.com>
2290 * dwarf2read.c (dwarf_decode_macros)
2291 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2292 DW_MACRO_GNU_transparent_include_alt>: New cases.
2293 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2294 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2296 2012-07-20 Tom Tromey <tromey@redhat.com>
2298 * dwarf2read.c (try_open_dwo_file): Don't call
2299 gdb_bfd_stash_filename.
2301 2012-07-20 Pedro Alves <palves@redhat.com>
2303 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2304 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2305 (i386_process_record): Tweak description comments.
2307 2012-07-20 Pedro Alves <palves@redhat.com>
2309 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2310 (i386_process_record): Use record_read_memory.
2311 * record.c (record_read_memory): New function.
2312 (record_arch_list_add_mem, record_exec_insn): Use
2314 * record.h (record_read_memory): Declare.
2316 2012-07-20 Yao Qi <yao@codesourcery.com>
2318 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2321 2012-07-19 Pedro Alves <palves@redhat.com>
2323 * record.c (record_resume): Ask the target beneath to report all
2326 2012-07-19 Doug Evans <dje@google.com>
2328 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2329 there's no section at address zero.
2330 (dwarf2_record_block_ranges): Ditto.
2332 2012-07-19 Yao Qi <yao@codesourcery.com>
2334 * command.h, remote.c: Fix a typo in comment.
2336 2012-07-19 Tom Tromey <tromey@redhat.com>
2339 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2340 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2341 OP_DECLTYPE>: New cases.
2342 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2343 (type_exp): Add new productions.
2344 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2346 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2348 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2349 OP_DECLTYPE>: New case.
2350 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2352 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2353 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2355 2012-07-19 Tom Tromey <tromey@redhat.com>
2357 * c-exp.y (enum token_flags): New.
2358 (struct token) <cxx_only>: Remove.
2360 (tokentab3, tokentab2, ident_tokens): Update.
2361 (lex_one_token): Update. Handle FLAG_SHADOW.
2363 2012-07-19 Tom Tromey <tromey@redhat.com>
2365 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2366 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2367 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2368 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2369 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2370 type_exp production where appropriate.
2371 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2372 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2373 <UNOP_MEMVAL_TYPE>: New case.
2374 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2375 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2376 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2377 <UNOP_MEMVAL_TYPE>: New case.
2378 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2379 UNOP_REINTERPRET_CAST>: Update.
2380 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2381 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2382 UNOP_REINTERPRET_CAST>: Update.
2383 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2384 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2385 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2388 2012-07-19 Yao Qi <yao@codesourcery.com>
2389 Jan Kratochvil <jan.kratochvil@redhat.com>
2391 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2392 and case 'var_optional_filename' together.
2393 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2394 instead of add_setshow_optional_filename_cmd for setshow command
2395 'args'. Set completer for 'set args'.
2397 2012-07-18 Doug Evans <dje@google.com>
2399 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2400 * common/gdb_vecs.c: New file, contents from utils.c.
2401 * common/host-defs.h: New file, contents from defs.h.
2402 * utils.h: New file, contents from defs.h.
2403 * defs.h: Move all declarations of objects defined in utils.c
2404 to utils.h (except QUIT() and related).
2405 #include "utils.h", "host-defs.h".
2406 * probe.h (probe_p): Move here from gdb_vecs.h.
2407 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2408 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2409 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2410 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2411 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2412 (COMMON_OBS): Add gdb_vecs.o.
2413 (gdb_vecs.o): New rule.
2415 2012-07-18 Keith Seitz <keiths@redhat.com>
2417 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2418 parameter. If non-zero, use SYMNAME as the canonical name
2421 (convert_linespec_to_sals): Use add_sal_to_sals for
2423 (decode_line_full): No need to "fill in missing canonical names"
2424 anymore. Simply make cleanups for the allocated names.
2426 2012-07-18 Keith Seitz <keiths@redhat.com>
2428 * linespec.c (struct linespec): Constify expression,
2429 source_filename, function_name, and label_name.
2430 (symbol_not_found_error): Make all parameters const.
2431 (linespec_parser_delete): No need to check for NULL
2432 when using xfree. Cast const char * to char * for xfree.
2434 2012-07-18 Keith Seitz <keiths@redhat.com>
2436 * breakpoint.c (invalid_thread_id_error): New function.
2437 (find_condition_and_thread): Use invalid_thread_id_error.
2438 (watch_command_1): Likewise.
2440 2012-07-18 Tom Tromey <tromey@redhat.com>
2442 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2443 * contrib/cc-with-tweaks.sh: New file.
2445 2012-07-18 Tom Tromey <tromey@redhat.com>
2447 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2448 (locate_dwz_sections): Recognize .gdb_index.
2449 (create_cus_from_index_list): New function.
2450 (create_cus_from_index): Use it. Handle .dwz data.
2451 (read_index_from_section): New function, extracted from
2453 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2456 2012-07-18 Tom Tromey <tromey@redhat.com>
2458 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2459 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2460 <is_dwz>: New field.
2461 (struct dwz_file): New.
2462 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2463 (locate_dwz_sections, dwarf2_get_dwz_file)
2464 (get_abbrev_section_for_cu): New functions.
2465 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2466 (read_and_check_type_unit_head): Add abbrev_section argument.
2467 (create_debug_types_hash_table): Update.
2468 (init_cutu_and_read_dies): Use proper abbrev section.
2469 (init_cutu_and_read_dies_no_follow): Likewise.
2470 (set_partial_user): Do nothing if PST==NULL.
2471 (read_comp_units_from_section): New function.
2472 (create_all_comp_units): Use it.
2473 (scan_partial_symbols, partial_die_parent_scope): Update.
2474 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2475 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2476 (find_partial_die): Add offset_in_dwz argument. Update.
2477 (guess_partial_die_structure_name, fixup_partial_die): Update.
2478 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2479 DW_FORM_GNU_strp_alt.
2480 (read_indirect_string_from_dwz): New function.
2481 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2482 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2483 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2484 (follow_die_offset): Add offset_in_dwz argument.
2485 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2486 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2487 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2488 Handle new macro forms.
2489 (dwarf_decode_macros): Update.
2490 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2491 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2492 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2493 (create_debug_types_hash_table): Use correct abbrev section.
2494 (get_debug_line_section): New function.
2495 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2496 (process_full_comp_unit): Pass 'required' argument to
2497 end_symtab_get_static_block.
2498 * buildsym.h (end_symtab_get_static_block): Update.
2499 * buildsym.c (end_symtab_get_static_block): Add 'required'
2501 (end_symtab, end_expandable_symtab): Update.
2503 2012-07-18 Tom Tromey <tromey@redhat.com>
2505 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2507 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2508 (zlib_decompress_section): Remove.
2509 (dwarf2_read_section): Use gdb_bfd_map_section.
2510 (munmap_section_buffer): Remove.
2511 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2512 munmap_section_buffer.
2513 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2514 (struct gdb_bfd_section_data): New.
2515 (free_one_bfd_section): New function.
2516 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2517 (get_section_descriptor, zlib_decompress_section)
2518 (gdb_bfd_map_section): New functions.
2519 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2521 2012-07-18 Tom Tromey <tromey@redhat.com>
2523 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2525 2012-07-18 Tom Tromey <tromey@redhat.com>
2527 * gdb_bfd.c (struct gdb_bfd_data): New.
2528 (gdb_bfd_cache): New global.
2529 (struct gdb_bfd_cache_search): New.
2530 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2531 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2532 * gdb_bfd.h (gdb_bfd_open): Declare.
2534 2012-07-18 Tom Tromey <tromey@redhat.com>
2536 * utils.c (make_cleanup_bfd_unref): Rename from
2537 make_cleanup_bfd_close.
2538 * defs.h (make_cleanup_bfd_unref): Rename from
2539 make_cleanup_bfd_close.
2540 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2541 (bfd_openw_with_cleanup): Update.
2542 * corelow.c (core_open): Update.
2543 * dsrec.c (load_srec): Update.
2544 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2545 * remote-m32r-sdi.c (m32r_load): Update.
2546 * remote-mips.c (mips_load_srec): Update.
2547 (pmon_load_fast): Update.
2548 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2550 (darwin_bfd_open): Update.
2551 * solib.c (solib_bfd_fopen): Update.
2552 * symfile-mem.c (symbol_file_add_from_memory): Update.
2553 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2554 (symfile_bfd_open): Update.
2555 (generic_load): Update.
2557 2012-07-18 Tom Tromey <tromey@redhat.com>
2559 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2560 (pmon_load_fast): Likewise.
2561 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2562 (m32r_upload_command): Likewise.
2563 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2564 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2565 Use make_cleanup_bfd_close.
2567 2012-07-18 Tom Tromey <tromey@redhat.com>
2569 * symfile.c (symfile_bfd_open): Don't copy name. Call
2570 gdb_bfd_stash_filename.
2571 (load_command): Open the new BFD before freeing the old.
2572 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2573 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2574 Call gdb_bfd_stash_filename.
2575 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2576 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2577 gdb_bfd_stash_filename.
2578 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2579 Free found_pathname.
2580 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2581 gdb_bfd_stash_filename.
2582 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2583 * machoread.c (macho_add_oso_symfile): Call
2584 gdb_bfd_stash_filename.
2585 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2586 gdb_bfd_stash_filename.
2587 (macho_check_dsym): Don't copy filename. Call
2588 gdb_bfd_stash_filename.
2589 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2590 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2591 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2592 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2593 * exec.c (exec_close): Don't free the BFD's filename.
2594 (exec_file_attach): Don't copy the filename. Call
2595 gdb_bfd_stash_filename.
2596 * corelow.c (core_close): Don't free the BFD's filename.
2597 (core_open): Call gdb_bfd_stash_filename.
2598 * corefile.c (reopen_exec_file): Remove #if 0 code.
2599 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2601 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2603 2012-07-18 Tom Tromey <tromey@redhat.com>
2605 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2607 (free_dwo_file): Use gdb_bfd_unref.
2608 * cli/cli-dump.c: Include gdb_bfd.h.
2609 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2610 (bfd_openr_with_cleanup): Likewise.
2611 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2613 * utils.c: Include gdb_bfd.h.
2614 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2615 * symfile.c: Include gdb_bfd.h.
2616 (separate_debug_file_exists): Use gdb_bfd_unref.
2617 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2618 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2619 (generic_load): Use gdb_bfd_ref.
2620 (reread_symbols): Use gdb_bfd_unref.
2621 * symfile-mem.c: Include gdb_bfd.h.
2622 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2623 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2624 * solib.c: Include gdb_bfd.h.
2625 (solib_bfd_fopen): Use gdb_bfd_ref.
2626 (solib_bfd_open): Use gdb_bfd_unref.
2627 (free_so_symbols): Use gdb_bfd_unref.
2628 (reload_shared_libraries_1): Use gdb_bfd_unref.
2629 * solib-spu.c: Include gdb_bfd.h.
2630 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2631 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2633 * solib-frv.c: Include gdb_bfd.h.
2634 (enable_break2): Use gdb_bfd_unref.
2635 * solib-dsbt.c: Include gdb_bfd.h.
2636 (enable_break2): Use gdb_bfd_unref.
2637 * solib-darwin.c: Include gdb_bfd.h.
2638 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2640 (darwin_bfd_open): Use gdb_bfd_unref.
2641 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2642 * remote-mips.c: Include gdb_bfd.h.
2643 (mips_load_srec): Use gdb_bfd_ref.
2644 (pmon_load_fast): Use gdb_bfd_ref.
2645 * remote-m32r-sdi.c: Include gdb_bfd.h.
2646 (m32r_load): Use gdb_bfd_ref.
2647 * record.c: Include gdb_bfd.h.
2648 (record_save_cleanups): Use gdb_bfd_unref.
2649 (cmd_record_save): Use gdb_bfd_unref.
2650 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2652 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2653 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2654 * objfiles.c: Include gdb_bfd.h.
2655 (free_objfile): Use gdb_bfd_unref.
2656 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2658 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2659 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2660 (macho_check_dsym): Likewise.
2661 * m32r-rom.c: Include gdb_bfd.h.
2662 (m32r_load): Use gdb_bfd_ref.
2663 (m32r_upload_command): Use gdb_bfd_ref.
2664 * jit.c: Include gdb_bfd.h.
2665 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2666 * gdb_bfd.h: New file.
2667 * gdb_bfd.c: New file.
2668 * gcore.c: Include gdb_bfd.h.
2669 (create_gcore_bfd): Use gdb_bfd_ref.
2670 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2671 (gcore_command): Use gdb_bfd_unref.
2672 * exec.c: Include gdb_bfd.h.
2673 (exec_close): Use gdb_bfd_unref.
2674 (exec_close_1): Use gdb_bfd_unref.
2675 (exec_file_attach): Use gdb_bfd_ref.
2676 * elfread.c: Include gdb_bfd.h.
2677 (build_id_verify): Use gdb_bfd_unref.
2678 * dsrec.c: Include gdb_bfd.h.
2679 (load_srec): Use gdb_bfd_ref.
2680 * corelow.c: Include gdb_bfd.h.
2681 (core_close): Use gdb_bfd_unref.
2682 (core_open): Use gdb_bfd_ref.
2683 * bfd-target.c: Include gdb_bfd.h.
2684 (target_bfd_xclose): Use gdb_bfd_unref.
2685 (target_bfd_reopen): Use gdb_bfd_ref.
2686 * Makefile.in (SFILES): Add gdb_bfd.c.
2687 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2688 (COMMON_OBS): Add gdb_bfd.o.
2690 2012-07-18 Keith Seitz <keiths@redhat.com>
2692 * breakpoint.c (find_condition_and_thread): Initialize
2694 (create_breakpiont): find_condition_and_thread will now
2695 initialize COND_STRING, THREAD, and REST (and TASK).
2696 (addr_string_to_sals): Likewise.
2698 2012-07-18 Pedro Alves <palves@redhat.com>
2700 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2701 Pull the single step breakpoints out of the target.
2703 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2705 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2706 * stap-probe.c (compile_probe_arg): Likewise.
2708 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2710 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2711 (elf_compile_to_ax): Likewise.
2712 * infrun.c (insert_exception_resume_from_probe): Likewise.
2713 (check_exception_resume): Remove `objfile' variable.
2714 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2715 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2716 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2717 (compare_entries): Rename to...
2718 (compare_probes): ...this. Adjust function to work with
2719 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2721 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2723 (print_ui_out_info): Adjust argument to be `struct probe *'.
2724 (info_probes_for_ops): Adjust internal computations to use
2726 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2727 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2728 gen_info_probes_table_values>: Remove `objfile' argument.
2729 (struct probe) <objfile>: New field.
2730 (find_probe_by_pc): Remove `objfile' argument.
2731 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2732 (stap_get_probe_argument_count): Likewise.
2733 (stap_get_arg): Likewise.
2734 (stap_evaluate_probe_argument): Likewise.
2735 (stap_compile_to_ax): Likewise.
2736 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2737 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2738 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2739 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2740 sym_compile_to_ax>: Likewise.
2742 2012-07-18 Terry Guo <terry.guo@arm.com>
2745 * defs.h (GDB_MI_MSG_WIDTH): New.
2746 * ser_base (ser_base_read_error_fd): New function.
2747 (do_ser_base_readchar): Poll error file descriptor as well as
2749 (generic_readchar): Refactor error handling.
2751 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2753 * NEWS: Create a new section for the next release branch.
2754 Rename the section of the current branch, now that it has
2757 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2759 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2760 * version.in: Bump version to 7.5.50.20120718-cvs.
2762 2012-07-17 Keith Seitz <keiths@redhat.com>
2764 * linespec.c (linespec_parse_line_offset): Make parameter
2767 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2770 * f-valprint.c (info_common_command): New variable frame_id.
2771 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2772 * printcmd.c (print_variable_and_value): Extend function comment.
2773 Add comment for invalidated FRAME.
2774 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2775 FI form FRAME_ID after each print_frame_local_vars.
2776 (struct print_variable_and_value_data): Change frame to frame_id.
2777 (do_print_variable_and_value): New variable frame, initialize it from
2778 p->frame_id. Add comment for invalidated FRAME.
2779 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2780 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2781 for invalidated FRAME.
2783 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2784 Pedro Alves <palves@redhat.com>
2786 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2789 2012-07-16 Tom Tromey <tromey@redhat.com>
2791 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2793 2012-07-15 Doug Evans <dje@google.com>
2795 * dwarf2read.c (stmt_list_hash): New struct.
2796 (type_unit_group): Embed "per_cu" member, remove pointer.
2797 New union member "t", move member "tus" into it, all uses updated.
2798 New member "hash", replaces member "line_offset, all uses updated.
2799 (quick_file_names): Replace member "offset" with "hash", all uses
2801 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2802 (hash_file_name_entry, eq_file_name_entry): Call them.
2803 (hash_type_unit_group, eq_type_unit_group): Ditto.
2804 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2805 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2806 (dw2_get_file_names): Update.
2807 (create_type_unit_group): Replace "per_cu" arg with "cu".
2808 All callers updated. Fix "quick" (.gdb_index) handling.
2809 (get_type_unit_group): Replace "per_cu" arg with "cu".
2810 All callers updated.
2811 (build_type_unit_groups): Don't reset tu_stats.
2813 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2814 "tab_cur_size". Change member "tab" to be a htab_t.
2815 (create_filename_seen_cache): Update.
2816 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2817 (filename_seen): Update.
2819 2012-07-13 Doug Evans <dje@google.com>
2821 * symtab.c (filename_seen): Update comment.
2823 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2824 Doug Evans <dje@google.com>
2826 * buildsym.c (end_symtab_1): Split it to ...
2827 (end_symtab_get_static_block): ... this ...
2828 (end_symtab_from_static_block): ... and this function.
2829 (end_symtab, end_expandable_symtab): Call them.
2830 * buildsym.h (end_symtab_get_static_block)
2831 (end_symtab_from_static_block): New declarations.
2832 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2833 Set its valid CU ranges.
2835 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2837 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2838 DW_OP_GNU_parameter_ref.
2840 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2842 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2843 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2845 2012-07-13 Doug Evans <dje@google.com>
2847 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2848 (filename_seen_cache): New struct.
2849 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2850 (create_filename_seen_cache): New function.
2851 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2852 (filename_seen): Delete arg "first". New arg "cache". All callers
2854 (output_source_filename_data): New struct.
2855 (output_source_filename): Delete arg "first". New arg "data".
2856 All callers updated.
2857 (sources_info): Delete local "first". New locals "data", "cleanups".
2858 Rewrite to use filename_seen_cache.
2859 (add_partial_filename_data): Delete member "first". New member
2860 "filename_seen_cache". All uses updated.
2861 (make_source_files_completion_list): Rewrite to use
2862 filename_seen_cache.
2864 2012-07-12 Doug Evans <dje@google.com>
2866 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2868 2012-07-10 Doug Evans <dje@google.com>
2871 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2872 all_type_unit_groups, type_unit_groups, tu_stats.
2873 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2874 All uses updated. Add type_unit_group to union "s".
2875 (type_unit_group): New struct.
2876 (IS_TYPE_UNIT_GROUP): New macro.
2877 (abbrev_table): Delete unused member "section".
2878 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2879 (dw2_get_cu): Assert not used with type_unit_group.
2880 (dw2_get_primary_cu): New function.
2881 (dw2_build_type_unit_groups_reader): New function.
2882 (dw2_build_type_unit_groups): New function.
2883 (dw2_get_file_names): Assert not called on type units.
2884 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2885 Redo loop to iterate over type unit groups instead of type units.
2886 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2887 (read_abbrev_offset): New function.
2888 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2890 (create_partial_symtab): New function.
2891 (process_psymtab_comp_unit_reader): Assert not used with type units.
2892 Call create_partial_symtab.
2893 (process_psymtab_type_unit): Delete.
2894 (hash_type_unit_group, eq_type_unit_group): New functions.
2895 (allocate_type_unit_groups_table): New function.
2896 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2897 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2898 (create_type_unit_group, get_type_unit_group): New functions.
2899 (tu_abbrev_offset): New struct.
2900 (sort_tu_by_abbrev_offset): New function.
2901 (add_type_unit_group_to_table): New function.
2902 (build_type_unit_groups): New function.
2903 (build_type_psymtabs_reader): New function.
2904 (build_type_psymtab_dependencies): New function.
2905 (build_type_psymtabs): Rewrite.
2906 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2907 is seen in a type unit.
2908 (process_queue): Move symtab expansion debugging printfs here.
2909 Call process_full_type_unit for type units.
2910 (compute_symtab_includes): Assert not called for type units.
2911 (process_cu_includes): Don't call compute_symtab_includes for
2913 (process_full_type_unit): New function.
2914 (process_imported_unit_die): Flag an error if called for type units.
2915 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2916 updated. Assert not called for type units.
2917 (read_file_scope): Call dwarf2_start_symtab.
2918 (setup_type_unit_groups): New function.
2919 (read_type_unit_scope): Rewrite.
2920 (abbrev_table_read_table): Initialize abbrev_table->offset.
2921 (abbrev_table_free_cleanup): New function.
2922 (dwarf2_start_symtab): New function.
2923 (load_full_type_unit): Assert not called for type unit groups.
2924 * buildsym.c (finish_block_internal): New arg "expandable".
2925 All callers updated.
2926 (start_symtab): Move most contents to ...
2927 (restart_symtab): ... here. New function.
2928 (reset_symtab_globals): New function.
2929 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2930 Call reset_symtab_globals.
2931 (end_symtab, end_expandable_symtab): New functions.
2932 (set_missing_symtab, augment_type_symtab): New functions.
2933 * buildsym.h (end_expandable_symtab): Declare.
2934 (augment_type_symtab, restart_symtab): Declare.
2935 * psympriv.h (struct partial_symtab): New member "anonymous".
2936 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2938 (read_psymtabs_with_filename): Ditto.
2939 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2940 (expand_symtabs_matching_via_partial): Ditto.
2941 (dump_psymtab): Update.
2942 * dictionary.c (dict_add_pending): New function.
2943 * dictionary.h (dict_add_pending): Declare.
2945 2012-07-09 Doug Evans <dje@google.com>
2947 * buildsym.c (start_subfile): Remove unnecessary check for
2950 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2952 * dwarf2read.c (load_full_type_unit): Simplify.
2954 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2955 to struct signatured_type **. All uses updated.
2957 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2958 All callers updated.
2960 2012-07-09 Tom Tromey <tromey@redhat.com>
2962 * c-exp.y (check_parameter_typelist): New function.
2963 (parameter_typelist): Call it.
2964 * eval.c (make_params): Handle '(void)' case.
2965 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2968 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2970 * common/linux-ptrace.c: Include gdb_assert.h.
2971 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2972 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2974 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2976 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2977 * linux-nat.c (linux_child_post_attach)
2978 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2980 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2983 nptl <2.7 bug workaround for core files.
2985 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2989 (save_siginfo): Remove.
2990 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2992 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2993 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2994 * linux-nat.h (struct lwp_info): Remove field siginfo.
2996 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2998 Code cleanup for the next patch.
2999 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3000 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3002 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3003 (ia64_linux_stopped_data_address):
3004 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3006 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3007 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3008 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3011 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3014 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3015 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3017 2012-07-06 Tom Tromey <tromey@redhat.com>
3019 * c-exp.y (DOTDOTDOT): New token.
3020 (func_mod, exp): Use parameter_typelist.
3021 (parameter_typelist): New production.
3022 (tokentab3): Add "..." token.
3023 * eval.c (make_params): Handle varargs.
3024 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3027 2012-07-06 Tom Tromey <tromey@redhat.com>
3030 * c-exp.y (%union) <tvec>: Change type.
3031 (func_mod): Now uses <tvec> type.
3032 (exp): Update for tvec change.
3033 (direct_abs_decl): Push the typelist.
3034 (func_mod): Return a typelist.
3035 (nonempty_typelist): Update for tvec change.
3036 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3037 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3038 * parse.c (pop_type_list): New function.
3039 (push_typelist): New function.
3040 (follow_types): Handle tp_function_with_arguments.
3041 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3042 (enum type_pieces) <tp_function_with_arguments>: New constant.
3043 (union type_stack_elt) <typelist_val>: New field.
3044 (push_typelist): Declare.
3046 2012-07-06 Tom Tromey <tromey@redhat.com>
3048 * c-exp.y (%union) <type_stack>: New field.
3049 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3050 (ptr_operator_ts): New production.
3052 * parse.c (type_stack_reserve): New function.
3053 (check_type_stack_depth): Use it.
3054 (pop_type_stack, append_type_stack, push_type_stack)
3055 (get_type_stack, type_stack_cleanup): New functions.
3056 (follow_types): Handle tp_type_stack.
3057 (_initialize_parse): Simplify initialization.
3058 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3060 (union type_stack_elt) <stack_val>: New field.
3061 (get_type_stack, append_type_stack, push_type_stack)
3062 (type_stack_cleanup): Declare.
3064 2012-07-06 Tom Tromey <tromey@redhat.com>
3066 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3068 (struct type_stack): New.
3069 * parse.c (type_stack, type_stack_size, type_stack_depth):
3071 (type_stack): New global.
3072 (parse_exp_in_context, check_type_stack_depth)
3073 (insert_into_type_stack, insert_type, push_type, push_type_int)
3074 (insert_type_address_space, pop_type, pop_type_int)
3075 (_initialize_parse): Update.
3077 2012-07-06 Tom Tromey <tromey@redhat.com>
3079 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3082 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3084 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3086 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3087 Jan Kratochvil <jan.kratochvil@redhat.com>
3089 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3090 alloca with xmalloc/xfree.
3092 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3094 * MAINTAINERS (Write After Approval): Add myself to the list.
3096 2012-07-05 Doug Evans <dje@google.com>
3098 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3100 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3102 * ax-gdb.c (cli/cli-utils.h): New include.
3103 (linespec.h): Ditto.
3104 (agent_eval_command_one): New function.
3105 (agent_command_1): Ditto.
3106 (agent_command): Call function agent_command_1.
3107 (agent_eval_command): Ditto.
3108 (_initialize_ax_gdb): Change help for "maint agent"
3109 and "maint agent-eval".
3111 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3113 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3114 * cli/cli-utils.c (check_for_argument): New function.
3115 * cli/cli-utils.h (check_for_argument): Ditto.
3117 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3119 * NEWS: Mention x32 ABI support.
3121 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3123 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3124 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3126 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3127 and pc_regnum_from_eax to -1. Update SP regnum from
3128 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3131 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3134 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3136 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3137 * dwarf2expr.h: Include gdbtypes.h.
3138 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3139 these forward declarations.
3140 (cu_offset, sect_offset): Move these ...
3141 * gdbtypes.h: Remove include dwarf2expr.h.
3142 (cu_offset, sect_offset): ... here.
3144 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3146 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3147 (amd64_linux_sigtramp_code): This.
3148 (amd64_x32_linux_sigtramp_code): New.
3149 (LINUX_SIGTRAMP_LEN): Updated.
3150 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3152 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3156 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3158 * config.in: Regenerate.
3159 * configure: Regenerate.
3160 * configure.ac: Remove check for gnu/libc-version.h.
3161 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3163 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3164 variables libc_version, libc_major and libc_minor. Replace sscanf by
3165 inferior_has_bug. Extend the comment.
3167 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3169 * linux-thread-db.c (inferior_has_bug): New function.
3170 (thread_db_find_new_threads_silently): Return boolean as checked by
3171 inferior_has_bug, describe it in the comments.
3172 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3173 earlier. Abort the initialization if it returned non-zero.
3174 (thread_db_new_objfile): Exclude debug files.
3175 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3178 2012-07-02 Doug Evans <dje@google.com>
3180 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3181 related to queue management.
3183 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3184 instead of "debug dwarf2-die" in debugging printfs.
3185 (create_debug_info_hash_table_reader): Ditto.
3186 (create_debug_info_hash_table): Ditto.
3187 (init_dwo_file): Ditto.
3188 (init_cutu_and_read_dies): Add debugging printf.
3189 (init_cutu_and_read_dies_no_follow): Ditto.
3190 (process_psymtab_comp_unit_reader): Ditto.
3192 2012-07-02 Stan Shebs <stan@codesourcery.com>
3194 Add target-side support for dynamic printf.
3195 * NEWS: Mention the additional style.
3196 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3197 (struct bp_location): New field cmd_bytecode.
3198 * breakpoint.c: Include format.h.
3199 (disconnected_dprintf): New global.
3200 (parse_cmd_to_aexpr): New function.
3201 (build_target_command_list): New function.
3202 (insert_bp_location): Call it.
3203 (remove_breakpoints_pid): Skip dprintf breakpoints.
3204 (print_one_breakpoint_location): Ditto.
3205 (dprintf_style_agent): New global.
3206 (dprintf_style_enums): Add dprintf_style_agent.
3207 (update_dprintf_command_list): Add agent case.
3208 (agent_printf_command): New function.
3209 (_initialize_breakpoint): Add new commands.
3210 * common/ax.def (printf): New bytecode.
3211 * ax.h (ax_string): Declare.
3212 * ax-gdb.h (gen_printf): Declare.
3213 * ax-gdb.c: Include cli-utils.h, format.h.
3214 (gen_printf): New function.
3215 (maint_agent_print_command): New function.
3216 (_initialize_ax_gdb): Add maint agent-printf command.
3217 * ax-general.c (ax_string): New function.
3218 (ax_print): Add printf disassembly.
3219 * Makefile.in (SFILES): Add format.c
3220 (COMMON_OBS): Add format.o.
3221 * common/format.h: New file.
3222 * common/format.c: New file.
3223 * printcmd.c: Include format.h.
3224 (ui_printf): Call parse_format_string.
3225 * remote.c (remote_state): New field breakpoint_commands.
3226 (PACKET_BreakpointCommands): New enum.
3227 (remote_breakpoint_commands_feature): New function.
3228 (remote_protocol_features): Add new BreakpointCommands entry.
3229 (remote_can_run_breakpoint_commands): New function.
3230 (remote_add_target_side_commands): New function.
3231 (remote_insert_breakpoint): Call it.
3232 (remote_insert_hw_breakpoint): Ditto.
3233 (_initialize_remote): Add new packet configuration for
3234 target-side breakpoint commands.
3235 * target.h (struct target_ops): New field
3236 to_can_run_breakpoint_commands.
3237 (target_can_run_breakpoint_commands): New macro.
3238 * target.c (update_current_target): Handle
3239 to_can_run_breakpoint_commands.
3241 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3243 Execute -ix and -iex only after system and user gdbinit files.
3244 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3245 processing down after gdbinit files.
3247 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3249 Add fnmatch-gnu module.
3250 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3251 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3252 * gnulib/aclocal.m4: Regenerate.
3253 * gnulib/config.in: Regenerate.
3254 * gnulib/configure: Regenerate.
3255 * gnulib/import/dummy.c: Remove.
3256 * gnulib/import/Makefile.am: Regenerate.
3257 * gnulib/import/Makefile.in: Likewise.
3258 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3259 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3260 * gnulib/import/alloca.c: New file.
3261 * gnulib/import/alloca.in.h: Likewise.
3262 * gnulib/import/config.charset: Likewise.
3263 * gnulib/import/fnmatch.c: Likewise.
3264 * gnulib/import/fnmatch.in.h: Likewise.
3265 * gnulib/import/fnmatch_loop.c: Likewise.
3266 * gnulib/import/localcharset.c: Likewise.
3267 * gnulib/import/localcharset.h: Likewise.
3268 * gnulib/import/m4/alloca.m4: Likewise.
3269 * gnulib/import/m4/codeset.m4: Likewise.
3270 * gnulib/import/m4/configmake.m4: Likewise.
3271 * gnulib/import/m4/fcntl-o.m4: Likewise.
3272 * gnulib/import/m4/fnmatch.m4: Likewise.
3273 * gnulib/import/m4/glibc21.m4: Likewise.
3274 * gnulib/import/m4/localcharset.m4: Likewise.
3275 * gnulib/import/m4/locale-fr.m4: Likewise.
3276 * gnulib/import/m4/locale-ja.m4: Likewise.
3277 * gnulib/import/m4/locale-zh.m4: Likewise.
3278 * gnulib/import/m4/mbrtowc.m4: Likewise.
3279 * gnulib/import/m4/mbsinit.m4: Likewise.
3280 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3281 * gnulib/import/m4/mbstate_t.m4: Likewise.
3282 * gnulib/import/m4/stdbool.m4: Likewise.
3283 * gnulib/import/m4/wchar_h.m4: Likewise.
3284 * gnulib/import/m4/wctype_h.m4: Likewise.
3285 * gnulib/import/m4/wint_t.m4: Likewise.
3286 * gnulib/import/mbrtowc.c: Likewise.
3287 * gnulib/import/mbsinit.c: Likewise.
3288 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3289 * gnulib/import/mbsrtowcs-state.c: Likewise.
3290 * gnulib/import/mbsrtowcs.c: Likewise.
3291 * gnulib/import/ref-add.sin: Likewise.
3292 * gnulib/import/ref-del.sin: Likewise.
3293 * gnulib/import/stdbool.in.h: Likewise.
3294 * gnulib/import/streq.h: Likewise.
3295 * gnulib/import/strnlen1.c: Likewise.
3296 * gnulib/import/strnlen1.h: Likewise.
3297 * gnulib/import/verify.h: Likewise.
3298 * gnulib/import/wchar.in.h: Likewise.
3299 * gnulib/import/wctype.in.h: Likewise.
3301 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3303 Support shell wildcards for 'set auto-load safe-path'.
3304 * auto-load.c: Include fnmatch.h.
3305 (filename_is_in_dir): Rename to ...
3306 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3307 it. Update function comment. Rename dir_len to pattern_len. New
3308 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3309 messages. Use gdb_filename_fnmatch.
3310 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3312 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3313 * defs.h (gdb_filename_fnmatch): New declaration.
3314 * utils.c: Include fnmatch.h.
3315 (gdb_filename_fnmatch): New function.
3317 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3319 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3320 `-probe' and `-probe-stap' options.
3322 2012-07-01 Yao Qi <yao@codesourcery.com>
3324 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3325 always_inserted_off, and always_inserted_enums.
3326 Change always_inserted_mode's type to 'enum auto_boolean'.
3327 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3329 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3330 of add_setshow_enum_cmd.
3331 * infrun.c: Remove can_use_displaced_stepping_auto,
3332 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3333 can_use_displaced_stepping_enum.
3334 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3335 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3336 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3337 add_setshow_enum_cmd.
3339 2012-06-30 Doug Evans <dje@google.com>
3341 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3342 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3343 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3345 2012-06-29 Doug Evans <dje@google.com>
3347 * linespec.c: #include "stack.h".
3348 (decode_line_with_current_source): Moved here from symtab.c and
3349 renamed from decode_line_spec. All callers updated.
3350 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3351 renamed from decode_line_spec_1. All callers updated.
3352 * linespec.h (decode_line_with_current_source): Move declaration here
3353 from symtab.h and renamed from decode_line_spec.
3354 (decode_line_with_last_displayed): Move declaration here from symtab.h
3355 and renamed from decode_line_spec_1.
3356 * macrocmd.c: #include "linespec.h".
3357 * symtab.c: Remove #include "linespec.h".
3359 2012-06-28 Doug Evans <dje@google.com>
3361 * dwarf2read.c (get_cu_length): New function.
3362 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3363 (create_debug_types_hash_table): Ditto.
3364 (init_cutu_and_read_dies): Ditto.
3365 (init_cutu_and_read_dies_no_follow): Ditto.
3367 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3369 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3370 (struct abbrev_table): Define.
3371 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3373 (init_cutu_and_read_dies): Update.
3374 (abbrev_table_alloc_abbrev): New function. Replaces
3375 dwarf_alloc_abbrev. All callers updated.
3376 (abbrev_table_add_abbrev): New function.
3377 (abbrev_table_lookup_abbrev): New function. Replaces
3378 dwarf2_lookup_abbrev. All callers updated.
3379 (abbrev_table_read_table): New function. Contents moved here from
3380 dwarf2_read_abbrevs.
3381 (dwarf2_read_abbrevs): Call it.
3382 (abbrev_table_free): New function.
3383 (dwarf2_free_abbrev_table): Call it.
3385 2012-06-28 Stan Shebs <stan@codesourcery.com>
3387 * osdata.c (info_osdata_command): Filter out "Title" columns
3389 * common/linux-osdata.c (struct osdata_type): Add title field.
3390 (osdata_table): Add titles to each entry.
3391 (linux_command_xfer_osdata): Add a column for title data.
3393 2012-06-28 Stan Shebs <stan@codesourcery.com>
3395 Make logging work for MI.
3397 * interps.h (interp_set_logging_ftype): New typedef.
3398 (struct interp_procs): New field set_logging_proc.
3399 (current_interp_set_logging): Declare.
3400 * interps.c (current_interp_set_logging): New function.
3401 * cli/cli-logging.c: Include interps.h.
3402 (set_logging_redirect): Call current_interp_set_logging.
3403 (pop_output_files): Ditto.
3404 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3405 * mi/mi-console.h (mi_console_set_raw): Declare.
3406 * mi/mi-console.c (mi_console_set_raw): New function.
3407 * mi/mi-interp.c (saved_raw_stdout): New global.
3408 (mi_set_logging): New function.
3409 (_initialize_mi_interp): Add it to interp procs.
3411 2012-06-28 Doug Evans <dje@google.com>
3413 * symtab.c (lookup_symbol_aux_objfile): Use
3414 ALL_OBJFILE_PRIMARY_SYMTABS.
3416 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3418 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * common/buffer.c: Include inttypes.h and stdint.h.
3421 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3423 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3424 Pedro Alves <palves@redhat.com>
3426 * gdbthread.h (ALL_THREADS): New macro.
3427 (thread_list): Declare.
3428 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3429 going, but instead fall through to the stepping handling.
3430 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3431 the passed in signal. Adjust debug output.
3432 (resume_callback): Rename to ...
3433 (linux_nat_resume_callback): ... this. Pass the thread's last
3434 stop signal, if in "pass" state.
3435 (linux_nat_resume): Adjust to rename.
3436 (stop_wait_callback): New assertion. Don't respawn signals;
3437 instead let the LWP remain with SIGNALLED set.
3438 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3439 * remote.c (append_pending_thread_resumptions): New.
3440 (remote_vcont_resume): Call it.
3441 * target.h (target_resume): Extend comment.
3443 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3445 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3447 2012-06-27 Doug Evans <dje@google.com>
3449 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3450 Delete have_addr_base, unused. All uses updated.
3451 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3452 (dwarf2_get_pc_bounds): Add ranges_base.
3453 (dwarf2_record_block_ranges): Ditto.
3455 2012-06-27 Tom Tromey <tromey@redhat.com>
3458 * varobj.c (varobj_create): Update.
3459 (varobj_set_value): Update.
3460 * tracepoint.c (validate_actionline): Update.
3461 (encode_actions_1): Update.
3462 * parse.c (parse_exp_1): Add 'pc' argument.
3463 (parse_exp_in_context): Add 'pc' argument. Change how
3464 expression_context_pc is set.
3465 (parse_expression): Update.
3466 (parse_field_expression): Update.
3467 * expression.h (parse_exp_1): Update.
3468 * eval.c (parse_to_comma_and_eval): Update.
3469 * breakpoint.c (set_breakpoint_condition): Update.
3470 (update_watchpoint): Update.
3471 (init_breakpoint_sal): Update
3472 (find_condition_and_thread): Update.
3473 (watch_command_1): Update.
3474 (update_breakpoint_locations): Update.
3475 * ada-lang.c (ada_read_renaming_var_value): Update.
3476 (create_excep_cond_exprs): Update.
3478 2012-06-27 Doug Evans <dje@google.com>
3480 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3483 2012-06-26 Doug Evans <dje@google.com>
3485 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3487 (error_check_comp_unit_head): New arg abbrev_section. All callers
3489 (read_and_check_comp_unit_head): Ditto.
3490 (read_and_check_type_unit_head): Ditto.
3492 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3494 New attribute 'last' for gdb.Symtab_and_line.
3495 * NEWS (Python Scripting): Add entry about the new attribute.
3496 * python/py-symtab.c (salpy_get_last): New function which
3497 implements the get method for the 'last' attribute of
3498 gdb.Symtab_and_line.
3499 (sal_object_getset): Add entry for the 'last' attribute.
3501 2012-06-26 Doug Evans <dje@google.com>
3503 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3504 (dwo_sections): Add macinfo, macro.
3505 (dwarf2_locate_dwo_sections): Watch for macro sections.
3506 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3507 All callers updated. Handle DWO files.
3509 * NEWS: Mention new options "set debug dwarf2-read" and
3510 "set debug symtab-create".
3511 * dwarf2read.c (dwarf2_read_debug): New static global.
3512 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3513 (process_queue): Ditto.
3514 (process_full_comp_unit): Ditto.
3515 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3516 * elfread.c (elf_symfile_read): Add debugging printf.
3517 * minsyms.c (install_minimal_symbols): Ditto.
3518 * psymtab.c (allocate_psymtab): Ditto.
3519 * symfile.c (allocate_symtab): Ditto.
3520 * symtab.c (symtab_create_debug): New global.
3521 (_initialize_symtab): Add new option "set debug symtab-create".
3522 * symtab.h (symtab_create_debug): Declare.
3524 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3525 (lookup_dwo_type_unit): Ditto.
3527 2012-06-26 Roland McGrath <roland@hack.frob.com>
3528 H.J. Lu <hongjiu.lu@intel.com>
3530 * amd64-linux-nat.c: Include <sys/user.h>.
3531 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3532 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3533 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3535 * configure.ac: Check if the fs_base and gs_base members of
3536 `struct user_regs_struct' exist.
3537 * config.in: Regenerated.
3538 * configure: Likewise.
3540 2012-06-25 Michael Eager <eager@eagercon.com>
3543 * python/python.c (gdbpy_write): Check for interrupted output.
3545 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3547 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3548 register as a stack alignment in ARM mode.
3550 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3553 * gnulib/config.in: Regenerate.
3554 * gnulib/configure: Likewise.
3555 * gnulib/import/m4/extensions.m4: Update it.
3556 * gnulib/import/m4/gnulib-common.m4: Likewise.
3557 * gnulib/import/m4/memmem.m4: Likewise.
3558 * gnulib/import/m4/mmap-anon.m4: Likewise.
3559 * gnulib/import/m4/multiarch.m4: Likewise.
3560 * gnulib/import/stdint.in.h: Likewise.
3562 2012-06-24 Yao Qi <yao@codesourcery.com>
3564 * corefile.c (write_memory_with_notification): New.
3565 * gdbcore.h: Declare write_memory_with_notification.
3566 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3567 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3568 * valops.c (value_assign): Likewise.
3569 * python/py-inferior.c (infpy_write_memory): Call
3570 'write_memory_with_notification'.
3572 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 * cc-with-index.sh: Use also -ex "set auto-load no".
3576 2012-06-23 Doug Evans <dje@google.com>
3579 * NEWS: Document additions to .gdb_index.
3580 * dwarf2read.c: #include "gdb/gdb-index.h".
3581 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3582 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3583 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3584 (dwarf2_read_index): Recognize version 7.
3585 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3586 block_kind, domain): All callers updated.
3587 (dw2_find_symbol_file): Handle new index CU values.
3588 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3589 (add_index_entry): New args is_static, kind. All callers updated.
3590 (offset_type_compare, uniquify_cu_indices): New functions
3591 (symbol_kind): New function.
3592 (write_psymtabs_to_index): Remove duplicate CU values.
3593 (write_psymtabs_to_index): Write .gdb_index version 7.
3595 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3597 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3598 * configure: Regenerate.
3600 2012-06-20 Yao Qi <yao@codesourcery.com>
3602 * python/py-inferior.c: Update comments of infpy_read_memory
3603 and infpy_write_memory.
3605 2012-06-19 Tom Tromey <tromey@redhat.com>
3608 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3609 (push_type_address_space): Remove.
3610 * parse.c (insert_into_type_stack): New function.
3611 (insert_type): Likewise.
3612 (insert_type_address_space): Rename from push_type_address_space.
3613 Insert tp_space_identifier.
3614 * c-exp.y (ptr_operator): New production.
3615 (abs_decl): Use ptr_operator.
3616 (space_identifier): Call insert_type_address_space.
3617 (ptype): Don't use const_or_volatile_or_space_identifier.
3618 (const_or_volatile_noopt): Call insert_type.
3619 (conversion_type_id, conversion_declarator): New productions.
3620 (operator): Use conversion_type_id.
3622 2012-06-18 Doug Evans <dje@google.com>
3624 * symtab.h (minimal_symbol): New member created_by_gdb.
3625 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3627 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3628 (search_symbols): Call it instead of lookup_symbol.
3629 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3631 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3632 Adjust address for DW_OP_GNU_addr_index.
3633 * dwarf2expr.h (dwarf_expr_context): Update comment.
3634 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3635 all callers updated. Handle TLS vars described with
3636 DW_OP_GNU_const_index.
3637 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3638 and DW_OP_GNU_const_index.
3639 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3641 * block.c (find_block_in_blockvector): Make explicit the fact that we
3642 ignore GLOBAL_BLOCK.
3644 2012-06-18 Tom Tromey <tromey@redhat.com>
3646 * c-exp.y (operator): Remove trailing space after "delete" and
3649 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3650 Jan Kratochvil <jan.kratochvil@redhat.com>
3652 Switch i386 and derived targets to ON_STACK.
3653 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3654 (amd64_dicos_init_abi): Remove its installment.
3655 * dicos-tdep.c (dicos_init_abi): Remove the
3656 set_gdbarch_call_dummy_location call. Update the comment here.
3657 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3658 (i386_dicos_init_abi): Remove its installment.
3659 * i386-tdep.c (i386_push_dummy_code): New function.
3660 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3661 i386_push_dummy_code.
3663 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3665 Remove stale dummy frames.
3666 * breakpoint.c: Include dummy-frame.h.
3667 (longjmp_breakpoint_ops): New variable.
3668 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3669 bp_longjmp_call_dummy.
3670 (bpstat_what, bptype_string, print_one_breakpoint_location)
3671 (init_bp_location): Support bp_longjmp_call_dummy.
3672 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3673 (set_longjmp_breakpoint_for_call_dummy)
3674 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3676 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3677 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3678 FIXME comment and extend the other comment for bp_call_dummy.
3679 (set_longjmp_breakpoint_for_call_dummy)
3680 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3681 * dummy-frame.c: Include gdbthread.h.
3682 (pop_dummy_frame_bpt): New function.
3683 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3684 (dummy_frame_discard): New function.
3685 (cleanup_dummy_frames): Update the comment about longjmps.
3686 * dummy-frame.h (dummy_frame_discard): New declaration.
3687 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3688 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3689 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3690 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3691 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3692 keep_going if IS_LONGJMP and there is no other reason to stop.
3694 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3696 * remote-sim.c (sim_command_completer): Initialize
3699 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3701 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3702 * dwarf2loc.c (call_site_parameter_matches): Support
3703 CALL_SITE_PARAMETER_PARAM_OFFSET.
3704 (needs_dwarf_reg_entry_value): Push stub value.
3705 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3706 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3707 * gdbtypes.h (enum call_site_parameter_kind): New item
3708 CALL_SITE_PARAMETER_PARAM_OFFSET.
3709 (struct call_site.parameter.u): New field param_offset.
3711 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3713 Code cleanup: Generalize call_site.parameter key.
3714 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3715 variable dwarf_reg. New variable kind_u. Update parameters to
3716 push_dwarf_reg_entry_value.
3717 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3718 * dwarf2expr.h (enum call_site_parameter_kind)
3719 (union call_site_parameter_u): Forward declarations.
3720 (struct dwarf_expr_context_funcs): Update parameters and their
3721 description for push_dwarf_reg_entry_value.
3722 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3723 * dwarf2loc.c (call_site_parameter_matches): New function.
3724 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3725 description. Use call_site_parameter_matches.
3726 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3727 Update parameters and their description.
3728 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3729 New variable kind_u. Adjust the caller for updated parameters.
3730 (needs_dwarf_reg_entry_value): Update parameters.
3731 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3732 instead of attr. Update for the changed fields of struct
3733 call_site_parameter.
3734 * gdbtypes.h: Include dwarf2expr.h.
3735 (enum call_site_parameter_kind): New.
3736 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3737 fb_offset into new union u.
3739 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3741 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3742 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3745 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3747 * amd64-linux-nat.c (compat_x32_clock_t): New.
3748 (compat_x32_siginfo_t): Likewise.
3749 (compat_x32_siginfo_from_siginfo): Likewise.
3750 (siginfo_from_compat_x32_siginfo): Likewise.
3751 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3752 and siginfo_from_compat_x32_siginfo for x32.
3754 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3756 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3758 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3760 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3761 instead of gdbarch_ptr_bit.
3762 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3763 (amd64_supply_native_gregset): Likewise.
3764 (amd64_collect_native_gregset): Likewise.
3765 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3766 (amd64_supply_xsave): Likewise.
3767 (amd64_collect_fxsave): Likewise.
3768 (amd64_collect_xsave): Likewise.
3770 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3772 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3773 (amd64_linux_read_description): Check DS segment register for
3776 2012-06-15 Tom Tromey <tromey@redhat.com>
3778 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3779 init_cutu_and_read_dies.
3781 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3783 * MAINTAINERS (Write After Approval): Add myself to the list.
3785 2012-06-15 Tom Tromey <tromey@redhat.com>
3787 * valops.c (value_find_oload_method_list): Now static.
3788 * value.h (value_find_oload_method_list): Don't declare.
3790 2012-06-15 Tom Tromey <tromey@redhat.com>
3792 * valops.c (find_overload_match): Use value_ind.
3794 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3796 * infrun.c (handle_inferior_event): Correct indentation.
3798 2012-06-14 Doug Evans <dje@google.com>
3800 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3801 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3803 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3804 updated. Handle DEBUG_LOC_START_LENGTH.
3805 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3806 (loclist_describe_location): Ditto.
3808 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3811 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3812 after hiding inline functions.
3814 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3816 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3817 _initialize_inf_ttrace.
3819 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3821 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3822 _initialize_hppa_hpux_nat.
3824 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3826 * remote-sim.c (sim_command_completer): Change type of return
3827 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3829 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3830 Jan Kratochvil <jan.kratochvil@redhat.com>
3833 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3834 stack on a 16-byte boundary.
3836 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3838 * jit.c (finalize_symtab): Set function's return type to 'void' by
3841 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3842 H.J. Lu <hongjiu.lu@intel.com>
3844 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3845 Move bits common to both the classic LP64 and the new x32 ILP32
3847 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3848 (amd64_x32_linux_init_abi): New function.
3849 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3852 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3853 * i386-tdep.c (i386_pseudo_register_name): Make public.
3854 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3855 * amd64-tdep.c (amd64_dword_names): Add "eip".
3856 (amd64_x32_pseudo_register_type): New function
3857 (amd64_x32_init_abi): New function.
3859 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3862 * inferior.h (struct inferior_suspend_state): Comment out.
3863 (struct inferior): Comment out the field suspend.
3864 * infrun.c (struct infcall_suspend_state): Comment out the field
3866 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3869 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3871 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3872 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3873 function comment. Return ERROR for unresolved cases. Implement
3874 returning proper NAME.
3875 (yylex): Accept also NAME from classify_inner_name.
3876 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3877 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3879 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3881 2012-06-13 Tom Tromey <tromey@redhat.com>
3883 * breakpoint.c (condition_completer): New function.
3884 (_initialize_breakpoint): Use it.
3885 * value.c (complete_internalvar): New function.
3886 * value.h (complete_internalvar): Declare.
3888 2012-06-13 Tom Tromey <tromey@redhat.com>
3890 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3891 * breakpoint.c (catch_syscall_completer): Return a VEC.
3892 * cli/cli-cmds.c (complete_command): Update.
3893 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3894 (complete_on_enum): Likewise.
3895 * command.h: Include gdb_vecs.h.
3896 (completer_ftype): Change return type.
3897 (complete_on_cmdlist, complete_on_enum): Likewise.
3898 * completer.c (noop_completer, filename_completer)
3899 (location_completer): Return a VEC.
3900 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3902 (expression_completer, complete_line_internal, complete_line)
3903 (command_completer): Return a VEC.
3904 (gdb_completion_word_break_characters, line_completion_function):
3906 * completer.h: Include gdb_vecs.h.
3907 (complete_line, noop_completer, filename_completer)
3908 (expression_completer, location_completer, command_completer):
3910 * f-lang.c (f_word_break_characters): Return a VEC.
3911 * interps.c (interpreter_completer): Return a VEC.
3912 * language.h (struct language_defn)
3913 <la_make_symbol_completion_list>: Return a VEC.
3914 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3915 * symtab.c (free_completion_list): Take a VEC.
3916 (return_val_size, return_val_index): Remove.
3917 (return_val): Now a VEC.
3918 (completion_list_add_name): Update.
3919 (default_make_symbol_completion_list_break_on)
3920 (default_make_symbol_completion_list, make_symbol_completion_list)
3921 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3923 (add_filename_to_list): Update.
3924 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3926 (maybe_add_partial_symtab_filename): Update.
3927 (make_source_files_completion_list): Return a VEC.
3928 * symtab.h (default_make_symbol_completion_list_break_on)
3929 (default_make_symbol_completion_list, make_symbol_completion_list)
3930 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3931 (make_source_files_completion_list): Update.
3933 2012-06-13 Tom Tromey <tromey@redhat.com>
3935 * breakpoint.c (add_catch_command): Use completer_ftype.
3936 * breakpoint.h: Include command.h.
3937 (add_catch_command): Use completer_ftype.
3938 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3939 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3940 Use completer_ftype.
3941 * command.h (completer_ftype): New typedef.
3942 (set_cmd_completer): Use it.
3943 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3946 2012-06-13 Pedro Alves <palves@redhat.com>
3948 Partial revert of previous change.
3950 * serial.c (scb_base): New global.
3951 (serial_for_fd): New.
3952 (serial_open, serial_fdopen_ops): Link new serial in open serials
3954 (do_serial_close): Unlink serial from the open serials chain.
3956 2012-06-12 Pedro Alves <palves@redhat.com>
3958 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3960 (prepare_for_detach): No longer context switch here in non-stop
3962 (fetch_inferior_event): Ditto.
3963 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3964 to the event thread before removing breakpoints. Switch to the
3965 event thread before inserting breakpoints and resuming.
3966 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3967 event thread before resuming.
3968 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3969 Switch to the event thread before removing breakpoints.
3971 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3973 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3974 special characters correctly for the Windows shells. See
3975 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3977 [!__MINGW32__]: Remove extra double quote character from special
3980 2012-06-11 Stan Shebs <stan@codesourcery.com>
3982 * ui-out.h: Remove #if 0 declarations.
3983 * ui-out.c: Remove #if 0 functions.
3985 2012-06-11 Pedro Alves <palves@redhat.com>
3987 * ser-base.c (run_async_handler_and_reschedule): New.
3988 (fd_event, push_event): Use it.
3989 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3990 reference count to 1.
3991 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3993 (serial_is_open, serial_ref, serial_unref): New.
3994 * serial.h (serial_open): Adjust comment.
3995 (serial_is_open): Declare.
3996 (serial_close): Adjust comment.
3997 (serial_ref, serial_unref) Declare.
3998 (struct serial): New field 'refcnt'.
4000 2012-06-11 Pedro Alves <palves@redhat.com>
4002 Remove #if 0'd "connect" command, and unnecessary associated
4003 refcounting and serial reuse bits.
4005 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4006 * serial.c (last_serial_opened): Delete.
4008 (serial_open): Adjust.
4009 (serial_for_fd): Delete.
4010 (serial_fdopen_ops, do_serial_close): Adjust.
4011 (serial_fdopen_ops): Adjust.
4013 2012-06-11 Pedro Alves <palves@redhat.com>
4015 * serial.c (do_serial_close): Remove early return when SCB is
4018 2012-06-11 Tom Tromey <tromey@redhat.com>
4020 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4022 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4024 Fix regression by the "ambiguous linespec" series.
4025 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4026 get_last_displayed_symtab and get_last_displayed_line and depending
4029 2012-06-11 Tom Tromey <tromey@redhat.com>
4031 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4032 (dw2_find_symbol_file): Use it.
4034 2012-06-11 Michael Eager <eager@eagercon.com>
4036 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4037 * mips-linux-tdep.h (mips_signals): New
4039 2012-06-11 Tom Tromey <tromey@redhat.com>
4041 * infrun.c (handle_inferior_event)
4042 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4044 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4045 exception logic in all cases. Update comments.
4046 (insert_longjmp_resume_breakpoint): Set the exception resume
4049 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4051 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4053 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4055 * valarith.c (binop_types_user_defined_p): Fix a typo.
4057 2012-06-08 Yao Qi <yao@codesourcery.com>
4058 Chung-Lin Tang <cltang@codesourcery.com>
4060 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4061 * arch-utils.h: Declare.
4062 * gdbarch.sh: Add return_in_first_hidden_param_p.
4063 * gdbarch.c, gdbarch.h: Regenerated.
4064 * infcall.c (call_function_by_hand): Call
4065 gdbarch_return_in_first_hidden_param_p instead of
4066 language_pass_by_reference.
4068 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4069 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4070 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4071 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4072 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4073 `cplus_return_struct_by_reference'.
4074 (tic6x_return_value): Handle language cplusplus.
4075 (tic6x_return_in_first_hidden_param_p): New.
4076 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4078 2012-06-07 Doug Evans <dje@google.com>
4080 * dwarf2read.c (dwarf2_cu): Add comment.
4082 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4084 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4086 (mips_eabi_push_dummy_call): Likewise.
4087 (mips_n32n64_push_dummy_call): Likewise.
4088 (mips_o32_push_dummy_call): Likewise.
4089 (mips_o64_push_dummy_call): Likewise.
4091 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4093 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4095 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4097 * mips-tdep.c (mips_pseudo_register_type): Use
4098 mips_float_register_p.
4100 2012-06-06 Pedro Alves <palves@redhat.com>
4102 * infrun.c (handle_inferior_event): Remove calls to
4103 reinit_frame_cache that follow a context_switch call.
4105 2012-06-06 Pedro Alves <palves@redhat.com>
4107 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4108 context_switch and remove stale comment.
4110 2012-06-06 Pedro Alves <palves@redhat.com>
4112 * infrun.c (struct execution_control_state): Remove
4113 `new_thread_event' field.
4114 (handle_inferior_event): Simplify new threads handling; don't
4115 resume the inferior if we find a new thread.
4117 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4119 * NEWS: Document the deprecation of SH's 'regs' command.
4120 * inferior.h (all_registers_info): Add function declaration.
4121 * sh-tdep.c (sh_show_regs): Remove variable.
4122 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4123 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4124 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4125 (sh_show_regs_command): Remove functions.
4126 (sh_gdbarch_init): Don't set sh_show_regs.
4127 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4128 'info all-registers'.
4129 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4130 (sh64_show_regs): Remove functions.
4131 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4133 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 * configure.ac: Move development=true below AC_INIT.
4136 * configure: Regenerate.
4138 2012-06-05 Stan Shebs <stan@codesourcery.com>
4140 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4143 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4145 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4146 argument as ssize_t.
4147 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4148 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4149 * target.c (target_read_stack, target_write_memory)
4150 (target_write_raw_memory): Likewise.
4151 * target.h (target_read_stack, target_write_memory)
4152 (target_write_raw_memory): Likewise.
4154 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4156 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4157 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4158 * target.c (target_read_memory): Change LEN to ssize_t.
4159 * target.h (target_read_memory): Change LEN to ssize_t.
4161 2012-06-05 Pedro Alves <palves@redhat.com>
4165 * breakpoint.c (until_break_command): Only fetch the selected
4166 frame after decode_line_1.
4168 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4170 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4171 event breakpoint at _start, __start or main if a program
4172 interpreter is not found.
4174 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4176 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4178 * windows-tdep.c: #include "objfiles.h".
4179 (windows_iterate_over_objfiles_in_search_order): New function.
4180 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4181 iterate_over_objfiles_in_search_order gdbarch method to
4182 windows_iterate_over_objfiles_in_search_order.
4183 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4185 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4187 * gdbarch.sh: Add generation of
4188 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4189 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4190 (iterate_over_objfiles_in_search_order): New gdbarch method.
4191 * gdbarch.h, gdbarch.c: Regenerate.
4192 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4194 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4196 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4197 out of lookup_symbol_aux_symtabs.
4198 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4199 call to lookup_symbol_aux_objfile.
4200 (struct global_sym_lookup_data): New type.
4201 (lookup_symbol_global_iterator_cb): New function.
4202 (lookup_symbol_global): Search for symbol using
4203 gdbarch_iterate_over_objfiles_in_search_order and
4204 lookup_symbol_global_iterator_cb.
4205 * findvar.c (struct minsym_lookup_data): New type.
4206 (minsym_lookup_iterator_cb): New function.
4207 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4208 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4209 and minsym_lookup_iterator_cb.
4211 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4213 Revert the following patch:
4214 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4215 try locating the symbol in the symbol's own objfile first, before
4216 extending the search to all objfiles.
4217 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4218 out of lookup_symbol_aux_symtabs.
4219 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4220 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4221 Do not search EXCLUDE_OBJFILE.
4222 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4223 (lookup_symbol_global): Search for matches in the block's objfile
4224 first, before searching all other objfiles.
4226 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4228 * breakpoint.c (find_condition_and_thread): Stop parsing
4229 as soon as the first invalid keyword is found.
4231 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4233 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4235 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4237 * config/djgpp/djcheck.sh: Add copyright header.
4239 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4241 * copyright.py (update_files, main): Fix path to update-copyright
4244 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4246 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4247 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4248 for which a reminder to update by hand is printed.
4250 2012-06-04 Doug Evans <dje@google.com>
4252 * buildsym.c (make_blockvector): Add comment.
4254 2012-06-04 Pedro Alves <palves@redhat.com>
4256 * arch-utils.c (default_gdb_signal_from_target): Delete.
4257 * arch-utils.h (default_gdb_signal_from_target): Delete.
4258 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4259 gdbarch_gdb_signal_from_target_p.
4260 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4262 * gdbarch.h: Regenerate.
4263 * gdbarch.c: Regenerate.
4265 2012-06-04 Pedro Alves <palves@redhat.com>
4267 * gdbarch.sh (gdb_signal_from_target): Mention that the
4268 implementation of the method must be host independent.
4269 * gdbarch.h: Regenerate.
4271 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4273 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4275 (target_read_memory_bfd): New function.
4276 (symbol_file_add_from_memory): Use it.
4278 2012-06-03 Doug Evans <dje@google.com>
4280 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4282 (basic_lookup_transparent_type): Ditto.
4284 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4285 (ALL_PRIMARY_SYMTABS): Use it.
4286 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4287 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4288 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4289 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4290 (basic_lookup_transparent_type): Ditto.
4292 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4294 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4295 it to optimize resolution of demangled name.
4297 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4299 * configure.ac (development): Define new variable.
4300 Call AC_CHECK_LIB for mcheck if $development.
4301 (ERROR_ON_WARNING): Enable it by default only if $development.
4302 * config.in: Regenerate.
4303 * configure: Regenerate.
4305 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4307 * target.c (target_read_memory): Make LEN argument as size_t.
4308 * target.h (target_read_memory): Likewise.
4310 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4312 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4314 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4316 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4317 BookE interface for PowerPC server processors if not available
4318 in the Linux Kernel.
4320 2012-05-31 Keith Seitz <keiths@redhat.com>
4322 * linespec.c (decode_objc): Add cleanup to free
4324 (find_linespec_symbols): Add cleanup to free CLASSES.
4325 * symfile.c (find_separate_debug_file_by_debuglink): Add
4326 cleanup to free DEBUGLINK.
4327 * ui-out.c (clear_header_list): No need to check if
4328 HEADER_NEXT.COLHDR is NULL.
4329 Free HEADER_NEXT.COL_NAME.
4331 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4333 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4336 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4338 * configure.host (gdb_host_cpu): Handle tilegx*.
4339 (gdb_host): Handle tilegx-*-linux*.
4340 * tilegx-linux-nat.c: New file.
4341 * config/tilegx/linux.mh: New file.
4343 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4345 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4346 tilegx-linux-tdep.o.
4347 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4348 tilegx-linux-tdep.c.
4349 * configure.tgt: Handle tilegx-*-linux*.
4350 * tilegx-tdep.h: New file.
4351 * tilegx-tdep.c: New file.
4352 * tilegx-linux-tdep.c: New file.
4353 * regformats/reg-tilegx.dat: New file.
4355 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4357 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4358 accounting of hw watchpoints on ppc.
4360 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4362 * source.c (openp): Expand tilde in path entries.
4364 2012-05-29 Doug Evans <dje@google.com>
4366 * buildsym.c (block_compar): Fix comment.
4367 (end_symtab): Fix and clarify some comments.
4369 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4370 cleanup_undefined_types.
4371 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4372 All callers updated.
4374 2012-05-29 Tom Tromey <tromey@redhat.com>
4376 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4378 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4379 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4381 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4384 2012-05-29 Tristan Gingold <gingold@adacore.com>
4386 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4387 (struct darwin_info): ... New struct.
4388 (solib_darwin_pspace_data): New variable.
4389 (darwin_pspace_data_cleanup): New function.
4390 (get_darwin_info): Likewise.
4391 (darwin_dyld_version_ok, darwin_load_image_infos)
4392 (darwin_solib_get_all_image_info_addr_at_init)
4393 (darwin_solib_read_all_image_info_addr): Add info argument.
4395 (darwin_current_sos): Use per pspace structure.
4396 (darwin_solib_create_inferior_hook): Likewise.
4397 (darwin_clear_solib): Likewise.
4398 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4400 2012-05-28 Pedro Alves <palves@redhat.com>
4402 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4403 block that uses them. Clear ecss before handling each event.
4405 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4407 * solib-svr4.c (svr4_current_sos): New comment on
4408 svr4_current_sos_via_xfer_libraries fall back.
4410 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4412 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4413 it as a fallback for TYPE_IS_OPAQUE.
4414 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4415 symbols for lookup_symbol.
4417 2012-05-24 John Steele Scott <toojays@toojays.net>
4419 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4420 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4421 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4422 (check_producer): ... this new function, which also checks for ICC
4423 and caches the result.
4424 (producer_is_icc): New function.
4425 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4428 2012-05-24 Pedro Alves <palves@redhat.com>
4432 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4433 (default_gdb_signal_to_target): ... this. Add comment.
4434 (default_gdb_signal_from_host): Rename to ...
4435 (default_gdb_signal_from_target): ... this. Add comment.
4436 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4437 (default_gdb_signal_to_target): ... this.
4438 (default_gdb_signal_from_host): Rename to ...
4439 (default_gdb_signal_from_target): ... this.
4440 * corelow.c (core_open): Adjust to naming change. Replace comment.
4441 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4442 (gdb_signal_from_target): ... this. Adjust to
4443 default_gdb_signal_from_host naming change. Extend comment.
4444 (gdb_signal_to_host): Rename to ...
4445 (gdb_signal_to_target): ... this. Adjust to
4446 default_gdb_signal_to_host naming change.
4447 * gdbarch.h, gdbarch.c: Renegerate.
4449 2012-05-24 Pedro Alves <palves@redhat.com>
4453 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4455 2012-05-24 Pedro Alves <palves@redhat.com>
4459 Replace target_signal with gdb_signal throughout.
4461 2012-05-24 Pedro Alves <palves@redhat.com>
4465 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4466 string, instead of reusing the va_list argument.
4468 2012-05-24 Tom Tromey <tromey@redhat.com>
4470 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4473 2012-05-23 Doug Evans <dje@google.com>
4475 * symtab.c (search_symbols): Formatting fixes.
4476 (print_symbol_info): Formatting fixes.
4478 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4479 int64_t change to leb128 API.
4480 (read_encoded_value, decode_frame_entry_1): Ditto.
4481 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4482 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4483 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4484 (execute_stack_op): Ditto.
4485 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4486 (safe_read_uleb128, safe_read_sleb128): Ditto.
4487 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4488 (dwarf2_compile_expr_to_ax): Ditto.
4489 (locexpr_describe_location_piece): Ditto.
4490 (disassemble_dwarf_expression): Ditto.
4491 (locexpr_describe_location_1): Ditto.
4493 2012-05-23 Stan Shebs <stan@codesourcery.com>
4494 Kwok Cheung Yeung <kcy@codesourcery.com>
4496 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4497 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4498 (mi-cmd-info.o): New rule.
4499 * osdata.h (info_osdata_command): New declaration.
4500 * osdata.c (info_osdata_command): Change to non-static.
4501 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4502 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4503 * mi/mi-cmd-info.c: New file.
4505 2012-05-23 Doug Evans <dje@google.com>
4507 * symtab.c (search_symbols): Pass NULL for file_matcher to
4508 expand_symtabs_matching if there are no files to match.
4510 * gdbtypes.c (lookup_typename): Simplify.
4512 2012-05-23 Pedro Alves <palves@redhat.com>
4514 * arch-utils.h (default_target_signal_to_host): Delete.
4515 * arch-utils.c (default_target_signal_to_host): Delete.
4516 * gdbarch.sh (target_signal_to_host): Remove.
4517 * gdbarch.h, gdbarch.c: Regenerate.
4519 2012-05-22 Doug Evans <dje@google.com>
4521 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4523 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4524 (execute_cfa_program): Update to match API of leb128 functions.
4525 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4527 (read_unsigned_leb128, read_signed_leb128): Delete.
4528 (read_initial_length): Change type of buf argument to
4530 (read_encoded_value): Update to match API of leb128 functions.
4531 (decode_frame_entry): Change result to "const gdb_byte *", and
4532 similarly for "start" parameter.
4533 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4534 (dwarf2_build_frame_info): Change local frame_ptr to
4536 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4537 read_uleb128, read_sleb128. All callers updated.
4538 (safe_skip_leb128): New function.
4539 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4540 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4541 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4542 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4543 read_uleb128, read_sleb128.
4544 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4545 (execute_stack_op): Update to match API of leb128 functions.
4546 * dwarf2expr.h: #include "leb128.h".
4547 (read_uleb128, read_sleb128): Delete.
4548 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4549 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4550 * dwarf2loc.c (debug_loc_kind): New enum.
4551 (decode_debug_loc_addresses): New function.
4552 (decode_debug_loc_dwo_addresses): New function.
4553 (dwarf2_find_location_expression): Rewrite.
4554 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4555 (locexpr_describe_location_piece): Ditto.
4556 (disassemble_dwarf_expression): Ditto.
4557 (locexpr_describe_location_1): Ditto.
4558 (loclist_describe_location): Rewrite.
4559 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4560 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4561 (dwarf2_section_buffer_overflow_complaint): Renamed from
4562 dwarf2_macros_too_long_complaint. All callers updated.
4563 (skip_leb128): Delete.
4564 (init_cu_die_reader): Initialize reader->buffer_end.
4565 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4566 (skip_form_bytes): New arg buffer_end. All callers updated.
4567 Replace call to skip_leb128 with gdb_skip_leb128.
4568 (skip_unknown_opcode): New arg mac_end. All callers updated.
4569 (fill_in_loclist_baton): Initialize baton->from_dwo.
4571 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4573 * mips-linux-nat.c (mips_linux_read_description): Use a more
4574 verbose error message.
4576 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4578 * NEWS: Add MIPS/Linux DSP support.
4579 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4580 (SIGCONTEXT_DSPCTL): New macro.
4581 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4582 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4583 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4584 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4585 (N64_SIGCONTEXT_HI3): Likewise.
4586 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4587 (N64_SIGCONTEXT_LO3): Likewise.
4588 (N64_SIGCONTEXT_DSPCTL): Likewise.
4589 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4590 (mips_linux_o32_sigframe_init): Handle DSP registers.
4591 (mips_linux_n32n64_sigframe_init): Likewise.
4593 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4595 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4598 2012-05-22 Pedro Alves <palves@redhat.com>
4600 * target.h (store_waitstatus): Move declaration ...
4601 * inf-child.h (store_waitstatus): ... here.
4602 * target.c: Move inclusion of gdb_wait.h, and ...
4603 (store_waitstatus): ... this ...
4604 * inf-child.c: ... here.
4605 * linux-nat.c: Include inf-child.h.
4606 * rs6000-nat.c: Include inf-child.h.
4607 * spu-linux-nat.c: Include inf-child.h.
4609 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4611 * tracepoint.c (start_tracing): Add missing i18n markup.
4612 (stop_tracing, set_trace_user): Ditto.
4613 (set_trace_notes, set_trace_stop_notes): Ditto.
4615 2012-05-21 Tom Tromey <tromey@redhat.com>
4618 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4620 * value.h (value_cast_pointers): Update.
4621 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4622 (value_cast): Update.
4623 (update_search_result): New function.
4624 (do_search_struct_field): New, from search_struct_field. Check
4625 for ambiguous results.
4626 (search_struct_field): Rewrite.
4627 * infcall.c (value_arg_coerce): Update.
4628 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4629 value_cast_pointers.
4630 * ada-lang.c (ada_convert_actual): Update.
4632 2012-05-21 Tom Tromey <tromey@redhat.com>
4634 * macroexp.c (macro_stringify): Terminate the string.
4636 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4638 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4640 * auto-load.c (auto_load_expand_dir_vars): New function.
4641 (auto_load_safe_path_vec_update): Use it, remove the
4642 substitute_path_component call thanks to it.
4643 (auto_load_objfile_script): Remove the debug_file_directory processing.
4644 Use auto_load_expand_dir_vars, remove the substitute_path_component
4646 * configure: Regenerate.
4647 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4648 path. Escape $ also for $debugdir.
4649 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4650 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4652 2012-05-20 Doug Evans <dje@google.com>
4654 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4655 before use. Check for symtab->includes == NULL before scanning it.
4657 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4659 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4661 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4663 * NEWS: Add microMIPS support and "set mips compression",
4664 "show mips compression" commands.
4665 * mips-tdep.h (mips_isa): New enum.
4666 (gdbarch_tdep): Add mips_isa.
4667 (mips_pc_is_mips16): Update prototype.
4668 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4669 * mips-tdep.c (mips_compression_mips16): New variable.
4670 (mips_compression_micromips): Likewise.
4671 (mips_compression_strings): Likewise.
4672 (mips_compression_string): Likewise.
4673 (is_mips16_isa, is_micromips_isa): New functions.
4674 (is_mips16_addr): Rename to...
4675 (is_compact_addr): ... this.
4676 (unmake_mips16_addr): Likewise to...
4677 (unmake_compact_addr): ... this.
4678 (make_mips16_addr): Likewise to...
4679 (make_compact_addr): ... this.
4680 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4682 (mips_elf_make_msymbol_special): Handle microMIPS code.
4683 (msymbol_is_special): Rename to...
4684 (msymbol_is_mips16): ... this.
4685 (mips_make_symbol_special, mips_pc_is_mips16): Update
4687 (msymbol_is_mips, msymbol_is_micromips): New functions.
4688 (mips16_to_32_reg): Rename to...
4689 (mips_reg3_to_reg): ... this.
4690 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4691 (mips_pc_isa): Likewise.
4692 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4694 (mips_fetch_instruction): Pass return status instead of printing
4695 an error message if requested. Handle microMIPS code. Bail out
4697 (micromips_op): New macro.
4698 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4699 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4700 (b6s4_op, b7s3_reg): Likewise.
4701 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4702 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4703 (mips_insn_size): New function.
4704 (mips32_next_pc): Update mips_fetch_instruction call.
4705 (micromips_relative_offset7): New function.
4706 (micromips_relative_offset10): Likewise.
4707 (micromips_relative_offset16): Likewise.
4708 (micromips_pc_insn_size): Likewise.
4709 (micromips_bc1_pc): Likewise.
4710 (micromips_next_pc): Likewise.
4711 (unpack_mips16): Update mips_fetch_instruction call.
4712 (extended_mips16_next_pc): Update according to change to
4714 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4716 (mips16_scan_prologue): Update mips_fetch_instruction call.
4717 Update according to change to mips16_to_32_reg.
4718 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4719 (mips_insn16_frame_base_sniffer): Likewise.
4720 (micromips_decode_imm9): New function.
4721 (micromips_scan_prologue): Likewise.
4722 (mips_micro_frame_cache): Likewise.
4723 (mips_micro_frame_this_id): Likewise.
4724 (mips_micro_frame_prev_register): Likewise.
4725 (mips_micro_frame_sniffer): Likewise.
4726 (mips_micro_frame_unwind): New variable.
4727 (mips_micro_frame_base_address): New function.
4728 (mips_micro_frame_base): New variable.
4729 (mips_micro_frame_base_sniffer): New function.
4730 (mips32_scan_prologue): Update mips_fetch_instruction call.
4731 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4732 rather than for MIPS16.
4733 (mips_insn32_frame_base_sniffer): Likewise.
4734 (mips_addr_bits_remove): Handle microMIPS code.
4735 (deal_with_atomic_sequence): Rename to...
4736 (mips_deal_with_atomic_sequence): ... this. Update the type
4737 of the variable used to hold an instruction. Remove the ISA bit
4738 check. Update mips_fetch_instruction call.
4739 (micromips_deal_with_atomic_sequence): New function.
4740 (deal_with_atomic_sequence): Likewise.
4741 (mips_about_to_return): Handle microMIPS code. Update
4742 mips_fetch_instruction call.
4743 (heuristic_proc_start): Check for the standard MIPS ISA rather
4744 than for MIPS16. Update mips_pc_is_mips16 and
4745 mips_fetch_instruction calls. Handle microMIPS code.
4746 (mips_push_dummy_code): Handle microMIPS code.
4747 (mips_eabi_push_dummy_call): Likewise.
4748 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4749 (mips_o64_push_dummy_call): Handle microMIPS code.
4750 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4751 (is_delayed): Remove function.
4752 (mips_single_step_through_delay): Replace the call to is_delayed
4753 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4754 Handle microMIPS code.
4755 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4757 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4759 (micromips_in_function_epilogue_p): New function.
4760 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4762 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4764 (gdb_print_insn_mips): Likewise.
4765 (mips_breakpoint_from_pc): Likewise.
4766 (mips_remote_breakpoint_from_pc): New function.
4767 (mips32_instruction_has_delay_slot): Simplify making use of the
4768 updated mips_fetch_instruction interface.
4769 (micromips_instruction_has_delay_slot): New function.
4770 (mips16_instruction_has_delay_slot): Simplify making use of the
4771 updated mips_fetch_instruction interface.
4772 (mips_adjust_breakpoint_address): Check for the standard MIPS
4773 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4774 calls. Handle microMIPS code.
4775 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4776 (mips_skip_trampoline_code): Handle microMIPS code.
4777 (global_mips_compression): New function.
4778 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4779 file flags. Register the microMIPS remote breakpoint handler
4780 and heuristic frame unwinder.
4781 (show_mips_compression): New function.
4782 (_initialize_mips_tdep): Add the "set mips compression" and
4783 "show mips compression" commands.
4785 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4790 * amd64-darwin-tdep.c:
4791 * arm-symbian-tdep.c:
4795 * bfin-linux-tdep.c:
4802 * dwarf2-frame-tailcall.c:
4831 * microblaze-tdep.c:
4832 * mips-linux-tdep.c:
4840 * python/py-finishbreakpoint.c:
4841 * python/py-inferior.c:
4842 * python/py-infthread.c:
4846 * remote-m32r-sdi.c:
4850 * rs6000-aix-tdep.c:
4876 * amd64-darwin-tdep.c:
4877 * arm-symbian-tdep.c:
4878 * arm-tdep.c: Delete unused variables.
4880 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4882 Rename $ddir to $datadir.
4883 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4884 * auto-load.c (auto_load_safe_path_vec_update)
4885 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4886 * configure: Regenerate.
4887 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4888 Likewise. Remove the 'use $ddir' help string.
4890 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4892 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4893 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4895 2012-05-18 Tom Tromey <tromey@redhat.com>
4898 * valprint.h (struct value_print_options) <symbol_print>: New
4900 * valprint.c (user_print_options): Add default for symbol_print.
4901 (show_symbol_print): New function.
4902 (generic_val_print): Respect symbol_print.
4903 (_initialize_valprint): Add "print symbol" setting.
4904 * f-valprint.c (f_val_print): Respect symbol_print.
4905 * c-valprint.c (c_val_print): Respect symbol_print.
4907 * printcmd.c (print_address_symbolic): Return int. Ignore some
4909 (print_address_demangle): Return int.
4910 * defs.h: (print_address_symbolic): Return int.
4911 * value.h (print_address_demangle): Return int.
4913 2012-05-18 Tom Tromey <tromey@redhat.com>
4915 * valprint.c (val_print_string): Don't print leading space.
4916 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4917 print space before string or vtbl.
4918 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4920 * jv-valprint.c (java_value_print): Print space before string.
4921 * go-valprint.c (print_go_string): Print space before string.
4922 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4923 space before string.
4924 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4925 space before string or vtbl.
4926 * auxv.c (fprint_target_auxv): Print space after address.
4928 2012-05-18 Tom Tromey <tromey@redhat.com>
4930 * printcmd.c (print_address_demangle): Remove special case for 0.
4932 2012-05-18 Tom Tromey <tromey@redhat.com>
4934 * printcmd.c (print_address_demangle): Add 'opts' argument.
4935 * p-valprint.c (pascal_val_print): Update.
4936 * jv-valprint.c (java_val_print): Update.
4938 * valprint.c (generic_val_print): Update.
4939 (print_function_pointer_address): Add 'options' argument. Remove
4940 'addressprint' argument. Update.
4941 * m2-valprint.c (print_unpacked_pointer): Update.
4942 * gnu-v3-abi.c (print_one_vtable): Update.
4943 (gnuv3_print_method_ptr): Update.
4944 * f-valprint.c (f_val_print): Update.
4945 * cp-valprint.c (cp_print_value_fields): Update.
4946 * valprint.h (print_function_pointer_address): Update.
4947 * c-valprint.c (c_val_print): Update.
4949 2012-05-18 Tom Tromey <tromey@redhat.com>
4951 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4952 directly corresponding to the found psymtab.
4953 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4954 (dw2_find_pc_sect_symtab): Use it.
4955 * block.h (blockvector_contains_pc): Declare.
4956 * block.c (find_block_in_blockvector): New function.
4957 (blockvector_for_pc_sect): Use it.
4958 (blockvector_contains_pc): New function.
4960 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4962 * mips-tdep.h (mips_write_pc): New prototype.
4963 * mips-tdep.c (mips_write_pc): Make external, add description.
4964 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4967 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4969 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4971 (mips_unwind_pc, mips_write_pc): Likewise.
4972 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4975 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4977 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4978 proc_warn, proc_error, proc_get_status, proc_flags,
4979 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4980 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4981 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4982 proc_stop_process, proc_wait_for_stop, proc_run_process,
4983 proc_set_traced_signals, proc_set_traced_faults,
4984 proc_set_traced_sysentry, proc_set_traced_sysexit,
4985 proc_set_held_signals, proc_get_held_signals,
4986 proc_get_traced_signals, proc_get_traced_faults,
4987 proc_get_traced_sysentry, proc_get_traced_sysexit,
4988 proc_clear_current_fault, proc_set_current_signal,
4989 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4990 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4991 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4992 proc_get_current_thread, proc_get_current_thread,
4993 proc_get_current_thread, proc_update_threads,
4994 proc_update_threads, proc_update_threads, proc_update_threads,
4995 proc_iterate_over_threads, procfs_find_new_threads,
4996 procfs_pid_to_str): Make static. Remove advance declaration.
4997 (proc_cursig): Make static. Conditionalized defintion on
4998 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4999 (proc_syscall, proc_set_kill_on_last_close,
5000 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5001 proc_get_pending_signals, proc_get_signal_actions,
5002 proc_trace_signal, proc_ignore_signal): Delete.
5004 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5006 * coffread.c (cs_section_address): Passing proper argument for
5007 `bfd_get_section_vma'.
5008 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5009 `bfd_get_section_flags'.
5010 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5011 `bfd_get_section_vma'.
5013 2012-05-16 Tom Tromey <tromey@redhat.com>
5016 * macrotab.h: (macro_define_special): Declare.
5017 (enum macro_special_kind): New.
5018 (struct macro_definition) <argc, replacement>: Update comments.
5019 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5020 (macro_define_object_internal): New function.
5021 (macro_define_object): Use it.
5022 (macro_define_special): New function.
5023 (fixup_definition): New function.
5024 (macro_lookup_definition, foreach_macro_in_scope)
5025 (foreach_macro): Use fixup_definition.
5026 * macroexp.h (macro_stringify): Declare.
5027 * macroexp.c (free_buffer_return_text): New function.
5028 (stringify): Constify "arg".
5029 (macro_stringify): New function.
5030 * dwarf2read.c (macro_start_file): Call macro_define_special.
5032 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5033 Maciej W. Rozycki <macro@mips.com>
5035 * breakpoint.h (bp_location): Add related_address member.
5036 * inferior.h (get_return_value): Take a pointer to struct value
5037 instead of struct type for the function requested.
5038 * value.h (using_struct_return): Likewise.
5039 * gdbarch.sh (return_value): Take a pointer to struct value
5040 instead of struct type for the function requested.
5041 * breakpoint.c (set_breakpoint_location_function): Initialize
5042 related_address for bp_gnu_ifunc_resolver breakpoints.
5043 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5044 requested function's address to gdbarch_return_value.
5045 * eval.c (evaluate_subexp_standard): Pass the requested
5046 function's address to using_struct_return.
5047 * infcall.c (call_function_by_hand): Pass the requested
5048 function's address to using_struct_return and
5049 gdbarch_return_value.
5050 * infcmd.c (get_return_value): Take a pointer to struct value
5051 instead of struct type for the function requested.
5052 (print_return_value): Update accordingly.
5053 (finish_command_continuation): Likewise.
5054 * stack.c (return_command): Pass the requested function's
5055 address to using_struct_return and gdbarch_return_value.
5056 * value.c (using_struct_return): Take a pointer to struct value
5057 instead of struct type for the function requested. Pass the
5058 requested function's address to gdbarch_return_value.
5059 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5060 New function_value member, replacing function_type.
5061 (bpfinishpy_dealloc): Update accordingly.
5062 (bpfinishpy_pre_stop_hook): Likewise.
5063 (bpfinishpy_init): Likewise. Record the requested function's
5065 * mips-tdep.c (mips_fval_reg): New enum.
5066 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5067 words put in GP registers.
5068 (mips_o64_push_dummy_call): Update a comment.
5069 (mips_o32_return_value): Take a pointer to struct value instead
5070 of struct type for the function requested and use it to check if
5071 using the MIPS16 calling convention. Return the designated
5072 general purpose registers for floating-point values returned in
5074 (mips_o64_return_value): Likewise.
5075 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5076 (ppc_sysv_abi_broken_return_value): Likewise.
5077 (ppc64_sysv_abi_return_value): Likewise.
5078 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5079 value instead of struct type for the function requested.
5080 * amd64-tdep.c (amd64_return_value): Likewise.
5081 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5082 * arm-tdep.c (arm_return_value): Likewise.
5083 * avr-tdep.c (avr_return_value): Likewise.
5084 * bfin-tdep.c (bfin_return_value): Likewise.
5085 * cris-tdep.c (cris_return_value): Likewise.
5086 * frv-tdep.c (frv_return_value): Likewise.
5087 * h8300-tdep.c (h8300_return_value): Likewise.
5088 (h8300h_return_value): Likewise.
5089 * hppa-tdep.c (hppa32_return_value): Likewise.
5090 (hppa64_return_value): Likewise.
5091 * i386-tdep.c (i386_return_value): Likewise.
5092 * ia64-tdep.c (ia64_return_value): Likewise.
5093 * iq2000-tdep.c (iq2000_return_value): Likewise.
5094 * lm32-tdep.c (lm32_return_value): Likewise.
5095 * m32c-tdep.c (m32c_return_value): Likewise.
5096 * m32r-tdep.c (m32r_return_value): Likewise.
5097 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5098 * m68k-tdep.c (m68k_return_value): Likewise.
5099 (m68k_svr4_return_value): Likewise.
5100 * m88k-tdep.c (m88k_return_value): Likewise.
5101 * mep-tdep.c (mep_return_value): Likewise.
5102 * microblaze-tdep.c (microblaze_return_value): Likewise.
5103 * mn10300-tdep.c (mn10300_return_value): Likewise.
5104 * moxie-tdep.c (moxie_return_value): Likewise.
5105 * mt-tdep.c (mt_return_value): Likewise.
5106 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5107 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5108 (ppc_sysv_abi_broken_return_value): Likewise.
5109 (ppc64_sysv_abi_return_value): Likewise.
5110 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5111 * rl78-tdep.c (rl78_return_value): Likewise.
5112 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5113 * rx-tdep.c (rx_return_value): Likewise.
5114 * s390-tdep.c (s390_return_value): Likewise.
5115 * score-tdep.c (score_return_value): Likewise.
5116 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5117 (sh_return_value_fpu): Likewise.
5118 * sh64-tdep.c (sh64_return_value): Likewise.
5119 * sparc-tdep.c (sparc32_return_value): Likewise.
5120 * sparc64-tdep.c (sparc64_return_value): Likewise.
5121 * spu-tdep.c (spu_return_value): Likewise.
5122 * tic6x-tdep.c (tic6x_return_value): Likewise.
5123 * v850-tdep.c (v850_return_value): Likewise.
5124 * vax-tdep.c (vax_return_value): Likewise.
5125 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5126 * xtensa-tdep.c (xtensa_return_value): Likewise.
5127 * gdbarch.c: Regenerate.
5128 * gdbarch.h: Regenerate.
5130 2012-05-15 Tom Tromey <tromey@redhat.com>
5132 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5134 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5136 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5137 of command in two error message.
5139 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5141 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5143 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5145 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5147 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5149 * NEWS (show auto-load scripts-directory): Add forgotten command.
5151 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5153 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5156 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5158 * amd64-tdep.c: Include features/i386/x32.c and
5159 features/i386/x32-avx.c.
5160 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5161 initialize_tdesc_x32_avx.
5163 2012-05-14 Stan Shebs <stan@codesourcery.com>
5166 * breakpoint.h (enum bptype): New type bp_dprintf.
5167 (struct breakpoint): New field extra_string.
5168 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5169 (create_breakpoint): Add extra_string arg.
5170 * breakpoint.c (dprintf_breakpoint_ops): New.
5171 (is_breakpoint): Add bp_dprintf.
5172 (bpstat_what): Add dprintf case.
5173 (bptype_string): Ditto.
5174 (print_one_breakpoint_location): Ditto.
5175 (init_bp_location): Ditto.
5176 (bkpt_print_mention): Ditto.
5177 (dprintf_style_enums): New array.
5178 (dprintf_style): New global.
5179 (dprintf_function): New global.
5180 (dprintf_channel): New global.
5181 (update_dprintf_command_list): New function.
5182 (update_dprintf_commands): New function.
5183 (init_breakpoint_sal): Add extra_string argument, handle it.
5184 (create_breakpoint_sal): Add extra_string argument.
5185 (create_breakpoints_sal): Add extra_string argument, update callers.
5186 (find_condition_and_thread): Add extra argument.
5187 (create_breakpoint): Add extra_string argument, record it.
5188 (dprintf_command): New function.
5189 (break_command_1): Add arg to create_breakpoint call.
5190 (handle_gnu_v3_exceptions): Ditto.
5191 (trace_command): Ditto.
5192 (ftrace_command): Ditto.
5193 (strace_command): Ditto.
5194 (bkpt_print_mention): Add dprintf case.
5195 (create_breakpoint_sal_default): Add extra_string argument.
5196 (_initialize_breakpoint): Add new commands.
5197 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5198 * python/py-breakpoint.c (bppy_init): Ditto.
5199 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5201 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5203 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5205 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5207 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5210 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5212 Add a new function gdb.find_pc_line to the Python API.
5213 * NEWS (Python Scripting): Add entry about the new function.
5214 * python/python.c (gdbpy_find_pc_line): New function which
5215 implements gdb.find_pc_line.
5216 (GdbMethods): Add entry for the new function.
5218 2012-05-12 Pedro Alves <palves@redhat.com>
5220 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5221 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5223 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5225 * inferior.c: Include completer.h
5226 (initialize_inferiors): Set completer of add-inferior to
5229 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5231 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5232 gdbarch_ptr_bit for x32 core dump.
5234 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5236 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5237 and features/i386/x32-avx-linux.c.
5239 2012-05-11 Stan Shebs <stan@codesourcery.com>
5240 Kwok Cheung Yeung <kcy@codesourcery.com>
5242 * NEWS: Describe new info os commands.
5243 * common/linux-osdata.c (PID_T, TIME_T): Define.
5244 (MAX_PID_T_STRLEN): New.
5245 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5247 (command_from_pid): Add comment. Change to use PID_T.
5248 (commandline_from_pid): Change to use PID_T.
5249 (user_from_pid): Add comment.
5250 (get_process_owner): Add comment. Change to use PID_T and
5252 (get_number_of_cpu_cores): Add comment.
5253 (get_cores_used_by_process): Add comment. Change to use PID_T and
5255 (linux_xfer_osdata_processes): Change to use PID_T and
5257 (compare_processes): New function.
5258 (linux_xfer_osdata_processgroups): New function.
5259 (linux_xfer_osdata_threads): Change to use PID_T.
5260 (linux_xfer_osdata_fds): New function.
5261 (format_socket_state, print_sockets): New functions.
5262 (union socket_addr): New union.
5263 (linux_xfer_osdata_isockets): New function.
5264 (time_from_time_t, group_from_gid): New functions.
5265 (linux_xfer_osdata_shm): New function.
5266 (linux_xfer_osdata_sem): New function.
5267 (linux_xfer_osdata_msg): New function.
5268 (linux_xfer_osdata_modules): New function.
5269 (osdata_table): Add new entries.
5270 * common/buffer.c (buffer_xml_printf): Add support for long and
5271 long long format specifiers.
5273 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5275 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5276 (tdesc_x32_avx_linux): Likewise.
5278 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5280 Implement multi-component --with-auto-load-dir.
5281 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5283 (--with-auto-load-safe-path): Update the default value description.
5284 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5286 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5287 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5288 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5289 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5290 "set auto-load scripts-directory".
5291 * config.in: Regenerate.
5292 * configure: Regenerate.
5293 * configure.ac (--with-auto-load-dir): New configure option.
5294 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5296 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5298 Provide $ddir substitution for --with-auto-load-safe-path.
5299 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5301 * auto-load.c: Include observer.h.
5302 (auto_load_safe_path_vec_update): Call substitute_path_component for
5303 each component. New variable ddir_subst.
5304 (auto_load_gdb_datadir_changed): New function.
5305 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5306 AUTO_LOAD_SAFE_PATH. New comment.
5307 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5308 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5309 * config.in: Regenerate.
5310 * configure: Regenerate.
5311 * configure.ac (--auto-load-safe-path): Rename
5312 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5313 GDB_DATADIR/auto-load.
5314 * defs.h (substitute_path_component): New declaration.
5315 * top.c: Include observer.h.
5316 (set_gdb_datadir): New function.
5317 (init_main): Install it for "set data-directory".
5318 * utils.c (substitute_path_component): New function.
5320 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5322 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5323 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5324 DEBUG_FILE_DIRECTORY. Handle multiple components of
5325 DEBUG_FILE_DIRECTORY.
5327 2012-05-10 Tom Tromey <tromey@redhat.com>
5329 * dwarf2read.c (recursively_write_psymbols): New function.
5330 (write_psymtabs_to_index): Use it.
5332 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5334 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5335 (load_partial_comp_unit): Update.
5336 (queue_comp_unit): Add argument 'pretend_language'.
5337 (process_queue): Update.
5338 (psymtab_to_symtab_1): Skip dependencies that have a user.
5339 (load_partial_comp_unit_reader): Give meaning to the 'data'
5341 (load_full_comp_unit): Add 'pretend_language' argument.
5342 (process_full_comp_unit): Add 'pretend_language' argument. Set
5344 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5346 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5347 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5349 (prepare_one_comp_unit): Add 'pretend_language' argument.
5351 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5352 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5353 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5354 (dw2_do_instantiate_symtab): Check whether symtab was read in
5356 (dw2_instantiate_symtab): Add assertion. Call
5357 process_cu_includes.
5358 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5359 (partial_symtab_p): New typedef.
5360 (set_partial_user): New function.
5361 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5362 (scan_partial_symbols): Add imported CU to imported_symtabs.
5363 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5364 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5365 (get_symtab, recursively_compute_inclusions)
5366 (compute_symtab_includes, process_cu_includes)
5367 (process_imported_unit_die): New functions.
5368 (process_die) <DW_TAG_imported_unit>: New case.
5369 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5371 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5373 (struct partial_die_info) <locdesc>: Remove.
5375 (process_psymtab_comp_unit): Add 'read_partial' argument.
5377 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5378 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5379 (add_partial_symbol): Update.
5380 (process_die): Handle DW_TAG_partial_unit.
5381 (read_file_scope): Update comment.
5382 (load_partial_dies): Handle DW_TAG_imported_unit.
5383 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5384 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5386 2012-05-10 Tom Tromey <tromey@redhat.com>
5388 * cc-with-dwz.sh: New file.
5390 2012-05-10 Tom Tromey <tromey@redhat.com>
5392 * symtab.h (struct symtab) <includes, user>: New fields.
5393 * block.h (struct block_iterator) <d, idx, which>: New fields.
5394 * block.c (initialize_block_iterator, find_iterator_symtab)
5395 (block_iterator_step, block_iter_name_step)
5396 (block_iter_match_step): New functions.
5397 (block_iterator_first, block_iterator_next)
5398 (block_iter_name_first, block_iter_name_next)
5399 (block_iter_match_first, block_iter_match_next): Rewrite.
5400 (get_block_symtab): New function.
5402 2012-05-10 Tom Tromey <tromey@redhat.com>
5404 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5406 * jit.c (finalize_symtab): Use allocate_global_block,
5408 * buildsym.c (finish_block_internal): New function, from old
5410 (finish_block): Rewrite.
5411 (end_symtab): Use finish_block_internal, set_block_symtab.
5412 * block.h (struct global_block): New.
5413 (allocate_global_block, set_block_symtab): Declare.
5414 * block.c (allocate_global_block, set_block_symtab): New
5417 2012-05-10 Tom Tromey <tromey@redhat.com>
5419 * psymtab.c (partial_map_expand_apply): Add assertion.
5420 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5421 (psymtab_to_symtab): Find unshared psymtab.
5422 (dump_psymtab): Print including psymtabs.
5423 (recursively_search_psymtabs): New function.
5424 (expand_symtabs_matching_via_partial): Use it.
5425 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5427 (enum psymtab_search_status): New.
5429 2012-05-10 Tom Tromey <tromey@redhat.com>
5431 * tracepoint.c (scope_info): Update.
5432 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5433 (find_pc_sect_symtab, search_symbols)
5434 (default_make_symbol_completion_list_break_on)
5435 (make_file_symbol_completion_list): Update.
5436 * symmisc.c (dump_symtab_1): Update.
5437 * stack.c (print_frame_args, iterate_over_block_locals)
5438 (print_frame_labels, iterate_over_block_arg_vars): Update.
5439 * python/py-block.c (block_object) <dict>: Remove.
5441 <iter>: Change type.
5442 (blpy_iter): Update.
5443 (blpy_block_syms_iternext): Update.
5444 * psymtab.c (map_block): Use block iterators.
5445 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5446 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5447 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5448 * infrun.c (check_exception_resume): Update.
5449 * cp-support.c (make_symbol_overload_list_block): Update.
5450 * coffread.c (patch_opaque_types): Update.
5451 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5452 * block.h (struct block_iterator): New.
5453 (block_iterator_first, block_iterator_next, block_iter_name_first)
5454 (block_iter_name_next, block_iter_match_first)
5455 (block_iter_match_next): Declare.
5456 (ALL_BLOCK_SYMBOLS): Redefine.
5457 * block.c (block_iterator_first, block_iterator_next)
5458 (block_iter_name_first, block_iter_name_next)
5459 (block_iter_match_first, block_iter_match_next): New functions.
5460 * ada-lang.c (ada_add_block_symbols)
5461 (ada_make_symbol_completion_list): Use block iterator.
5463 2012-05-10 Tom Tromey <tromey@redhat.com>
5465 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5466 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5467 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5468 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5469 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5472 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5474 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5475 print-file-var-lib2.c, print-file-var-main.c and
5476 print-file-var.exp (located in gdb/testsuite/gdb.base).
5478 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5480 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5481 try locating the symbol in the symbol's own objfile first, before
5482 extending the search to all objfiles.
5483 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5484 out of lookup_symbol_aux_symtabs.
5485 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5486 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5487 Do not search EXCLUDE_OBJFILE.
5488 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5489 (lookup_symbol_global): Search for matches in the block's objfile
5490 first, before searching all other objfiles.
5492 2012-05-10 Tristan Gingold <gingold@adacore.com>
5494 * printcmd.c (set_command): Add pre/post inc/dec.
5496 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5498 * gdb.1: Document -ex option.
5500 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5502 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5503 * inferior.h (AT_SYMBOL): Delete.
5505 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5507 * mips-tdep.c (mips_push_dummy_code): New function.
5508 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5509 ON_STACK and install mips_push_dummy_code as our gdbarch
5510 push_dummy_code routine.
5512 2012-05-09 Pedro Alves <palves@redhat.com>
5514 * target.c (set_maintenance_target_async_permitted): Rename to ...
5515 (set_target_async_command): ... this.
5516 (show_maintenance_target_async_permitted): Rename to ...
5517 (show_target_async_command): ... this.
5518 (initialize_targets): Adjust.
5520 2012-05-08 Doug Evans <dje@google.com>
5522 * go-exp.y (classify_name): Add missing assignment of fields of
5525 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5527 Display the ">" prompt in interactive mode while reading canned
5528 commands, even when the current interpreter is MI.
5530 * interps.c (interp_set_temp): New function.
5532 * interps.h (interp_set_temp): Add prototype.
5534 * cli/cli-script.c (restore_interp): New cleanup function.
5535 (read_command_lines): Temporarily override the current interpreter
5536 with CLI and arrange for restoring the original one.
5538 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5540 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5542 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5544 * probe.c (parse_probes): Move conditional to check for
5545 debuginfo files from here...
5546 * stap-probe.c (stap_get_probes): ... to here.
5548 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5549 H.J. Lu <hongjiu.lu@intel.com>
5551 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5552 `movl %esp, %ebp' for the X32 ABI.
5554 2012-05-07 Tom Tromey <tromey@redhat.com>
5556 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5558 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5559 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5560 (dwarf_stack_op_name): Remove.
5561 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5562 (decode_locdesc): Use get_DW_OP_name.
5563 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5564 (dwarf2_compile_expr_to_ax): Likewise.
5565 (disassemble_dwarf_expression): Likewise.
5566 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5568 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5570 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5571 (sh_linux_sigtramp_cache): New function.
5572 (sh_linux_sigreturn_init): New function.
5573 (sh_linux_rt_sigreturn_init): New function.
5574 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5576 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5578 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5579 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5580 (sh_linux_init_abi): Add init calls to register new tramp_frame
5581 definitions under 32-bit SH, update comments.
5583 2012-05-07 Pedro Alves <palves@redhat.com>
5587 * amd64-linux-tdep.c: Include glibc-tdep.h.
5588 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5589 gdbarch_skip_solib_resolver callback.
5591 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5593 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5594 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5595 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5596 (add_auto_load_safe_path): Change the error message.
5597 (_initialize_auto_load): Change the "safe-path" help text.
5598 * configure: Regenerate
5599 * configure.ac (--without-auto-load-safe-path): Set
5600 WITH_AUTO_LOAD_SAFE_PATH to /.
5602 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5604 * stap-probe.h: Do not include unecessary `probe.h'.
5606 2012-05-05 Alan Modra <amodra@gmail.com>
5608 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5609 bfd_und_section_ptr.
5610 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5611 and bfd_com_section_ptr.
5613 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5615 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5617 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5619 * windows-nat.h (segment_register_p_ftype): New typedef.
5620 (windows_set_segment_register_p): Add declaration.
5621 * windows-nat.c (segment_register_p): New static global.
5622 (windows_set_segment_register_p): New function.
5623 (do_windows_fetch_inferior_registers): Add special handling
5624 for segment registers.
5625 * amd64-windows-nat.c: #include "amd64-tdep.h".
5626 (amd64_windows_segment_register_p): New function.
5627 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5628 * i386-windows-nat.c: #include "i386-tdep.h".
5629 (i386_windows_segment_register_p): New function.
5630 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5632 2012-05-04 Tristan Gingold <gingold@adacore.com>
5634 * printcmd.c (set_command): Emit a warning if the expression is not
5637 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5639 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5642 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5644 * stap-probe.c (stap_is_operator): Change declaration.
5645 (stap_get_opcode): Change return value.
5646 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5647 `stap_parse_argument_1'.
5649 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5651 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5654 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5656 Add two new methods global_block and static_block to gdb.Symtab
5658 * NEWS (Python scripting): Add entry about the new methods.
5659 * python/py-symtab.c (stpy_global_block): New function which
5660 implements the gdb.Symtab.global_block() method.
5661 (stpy_static_block): New function which implements the
5662 gdb.Symtab.static_block() method.
5663 (symtab_object_methods): Add entries for the two new methods.
5665 2012-05-03 Doug Evans <dje@google.com>
5667 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5670 2012-05-03 Yao Qi <yao@codesourcery.com>
5672 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5674 (i386_process_record): Ditto.
5676 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5678 * infcall.c (unwind_on_signal_p): Make static.
5680 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5682 * sol-thread.c (solaris_pid_to_str): Make static.
5683 (_initialize_sol_thread): Add prototype.
5685 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5687 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5689 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5691 * MAINTAINERS: Remove myself.
5693 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 Fix --without-auto-load-safe-path for MS-Windows host platform.
5696 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5698 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5700 * gdb_curses.h: Undefine KEY_EVENT before including curses
5701 headers. Move "#undef MOUSE_MOVED" before any curses header
5704 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5706 * features/i386/i386-mmx-linux.c: Regenerate.
5707 * features/rs6000/powerpc-32.c: Likewise.
5708 * features/rs6000/powerpc-32l.c: Likewise.
5709 * features/rs6000/powerpc-403.c: Likewise.
5710 * features/rs6000/powerpc-403gc.c: Likewise.
5711 * features/rs6000/powerpc-405.c: Likewise.
5712 * features/rs6000/powerpc-505.c: Likewise.
5713 * features/rs6000/powerpc-601.c: Likewise.
5714 * features/rs6000/powerpc-602.c: Likewise.
5715 * features/rs6000/powerpc-603.c: Likewise.
5716 * features/rs6000/powerpc-604.c: Likewise.
5717 * features/rs6000/powerpc-64.c: Likewise.
5718 * features/rs6000/powerpc-64l.c: Likewise.
5719 * features/rs6000/powerpc-750.c: Likewise.
5720 * features/rs6000/powerpc-860.c: Likewise.
5721 * features/rs6000/powerpc-e500.c: Likewise.
5722 * features/rs6000/powerpc-e500l.c: Likewise.
5723 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5724 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5725 * features/rs6000/rs6000.c: Likewise.
5727 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5729 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5731 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5732 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5733 (stap_parse_argument) <e>: Likewise.
5734 (handle_stap_probe) <byte_order>: Likewise.
5736 2012-04-30 Doug Evans <dje@google.com>
5738 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5739 init_and_read_dies_worker. All callers updated.
5740 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5741 replaced with init_cutu_and_read_dies.
5742 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5743 (find_partial_die): Remove FIXME. Don't free current CU.
5745 2012-04-30 Sterling Augustine <saugustine@google.com>
5747 * contrib: New directory.
5748 * contrib/test_pubnames_and_indexes.py: New file.
5750 2012-04-30 Doug Evans <dje@google.com>
5752 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5753 All callers updated.
5754 (init_cu_die_reader): Verify the section is non-empty.
5755 (dwarf_decode_line_header): Don't dereference section->asection
5756 until we know the section is present.
5758 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5760 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5763 2012-04-29 Yao Qi <yao@codesourcery.com>
5765 * gdb-code-style.el: New hook gdb-markup-hook
5766 and gdb-comment-hook.
5768 2012-04-28 Doug Evans <dje@google.com>
5770 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5771 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5773 * symfile.h (dwarf2_debug_sections): New member addr.
5774 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5775 (ctx_no_get_addr_index): New function.
5776 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5777 (ctx_no_get_addr_index): Declare.
5778 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5779 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5780 (dwarf_expr_ctx_funcs): Update.
5781 (needs_get_addr_index): New function.
5782 (needs_frame_ctx_funcs): Update.
5783 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5784 * dwarf2read.c: #include "gdbcore.h".
5785 (dwarf2_per_objfile): New members addr, dwo_files.
5786 (dwarf2_elf_names): Add entry for addr.
5787 (struct dwo_section_names): New type.
5788 (dwo_section_names): New static global.
5789 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5790 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5791 old debug_types_section member updated to use this.
5792 Rename member debug_types_section to info_or_types_section,
5794 (signatured_type): Rename member type_offset to type_offset_in_tu,
5795 all uses updated. New member type_offset_in_section.
5796 (struct dwo_sections): New type.
5797 (struct dwo_unit): New type.
5798 (struct dwo_file): New type.
5799 (die_reader_specs): New member dwo_file.
5800 (dwarf2_locate_sections): Watch for .debug_addr.
5801 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5802 (dwarf2_read_section): Get bfd of section from bfd's asection,
5804 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5805 (create_signatured_type_table_from_index): Initialize
5806 sig_type->info_or_types_section.
5807 (dw2_get_file_names): Statement lists for type units with DWO files
5808 live in the DWO file.
5809 (create_debug_types_hash_table): New function.
5810 (create_all_type_units): Rewrite.
5811 (init_cu_die_reader): New arg dwo_file, all callers updated.
5812 (init_and_read_dies_worker): Get section from
5813 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5814 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5815 continue reading the CU/TU from there.
5816 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5817 updated. Get section from this_cu->info_or_types_section.
5818 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5819 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5820 DW_FORM_GNU_str_index.
5821 (hash_dwo_file, eq_dwo_file): New functions.
5822 (allocate_dwo_file_hash_table): New function.
5823 (hash_dwo_unit, eq_dwo_unit): New functions.
5824 (allocate_dwo_unit_table): New function.
5825 (dwarf2_locate_dwo_sections): New function.
5826 (struct create_dwo_info_table_data): New type.
5827 (create_debug_info_hash_table_reader): New function.
5828 (create_debug_info_hash_table): New function.
5829 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5830 (lookup_dwo_file): New function.
5831 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5832 (free_dwo_file, free_dwo_file_cleanup): New functions.
5833 (free_dwo_file_from_slot, free_dwo_files): New functions.
5834 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5835 (dwarf2_record_block_ranges): Ditto.
5836 (read_partial_die): Ditto.
5837 (process_enumeration_scope): Update to use type_offset_in_section.
5838 (read_full_die_1): New function.
5839 (read_full_die): Rewrite.
5840 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5841 DW_FORM_GNU_str_index.
5842 (read_addr_index_1, read_addr_index): New functions.
5843 (read_addr_index_from_leb128): New function.
5844 (struct dwarf2_read_addr_index_data): New type.
5845 (dwarf2_read_addr_index_reader): New function.
5846 (dwarf2_read_addr_index): New function.
5847 (read_str_index): New function.
5848 (leb128_size): New function.
5849 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5850 If processing a type unit from a DWO file, get the line section
5852 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5853 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5854 DW_FORM_GNU_str_index.
5855 (lookup_die_type): Check whether section offset of type's die is
5856 known before looking it up. Remove assert. Condition can
5857 legimately happen for inter-cu type references.
5858 (dwarf_attr_name): Handle Fission attributes.
5859 (dwarf_form_name): Handle Fission forms.
5860 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5861 DW_FORM_GNU_str_index.
5862 (follow_die_sig): Update to use type_offset_in_section.
5863 (decode_locdesc): New case DW_OP_GNU_addr_index.
5864 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5865 DW_FORM_GNU_str_index.
5866 (cu_debug_loc_section): New function.
5867 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5868 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5869 Free DWO files if present.
5870 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5872 Refactor DIE reading.
5873 * dwarf2read.c (dwarf2_per_objfile): Replace members
5874 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5875 (die_reader_specs): New member "die_section". Temporarily make
5876 member "buffer" non-const, pending constifying all info_ptr uses.
5877 (die_reader_func_ftype): New typedef.
5878 (dw2_get_file_names_reader): New function.
5879 (dw2_get_file_names): Rewrite.
5880 (read_and_check_type_unit_head): Rename arg type_offset to
5882 (create_all_type_units): Improve debugging message.
5883 Improve dummy type unit check.
5884 (init_cu_die_reader): New arg "section". All callers updated.
5885 (init_and_read_dies_worker): New function.
5886 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5887 (init_cutu_and_read_dies_no_follow): New function.
5888 (init_cutu_and_read_dies_simple): New function.
5889 (process_psymtab_comp_unit_reader): New function.
5890 (process_psymtab_comp_unit): Delete args section,
5891 is_debug_types_section. Rewrite. All callers updated.
5892 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5893 All callers updated. Rewrite.
5894 (load_partial_comp_unit_reader): New function.
5895 (load_partial_comp_unit): Rewrite.
5896 (skip_children): New arg reader. Delete args buffer, cu.
5897 All callers updated.
5898 (skip_one_die): New arg reader. Delete args buffer, cu.
5899 All callers updated.
5900 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5901 All callers updated.
5902 (load_full_comp_unit_reader): New function.
5903 (load_full_comp_unit): Rewrite.
5904 (read_comp_unit): Delete.
5905 (read_die_and_children_1): Delete, contents moved ...
5906 (read_die_and_children): ... here.
5907 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5908 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5909 All callers updated.
5910 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5911 All callers updated.
5912 (find_partial_die): Rewrite load_all_dies support.
5913 (read_attribute_value): New arg reader. Delete args abfd, cu.
5914 All callers updated.
5915 (read_attribute): New arg reader. Delete args abfd, cu.
5916 All callers updated.
5917 (load_full_type_unit): Add assert.
5918 (read_signatured_type_reader): New function.
5919 (read_signatured_type): Rewrite.
5920 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5921 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5922 All callers updated. Set per_cu->cu = NULL after freeing it.
5923 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5924 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5925 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5926 (set_die_type): Update.
5927 (get_die_type_at_offset): Update.
5928 (read_file_scope): Call prepare_one_comp_unit.
5929 (read_type_unit_scope): Ditto.
5930 (prepare_one_comp_unit): Set producer if present.
5932 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5934 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5935 gettext function on `error'.
5937 2012-04-27 Doug Evans <dje@google.com>
5939 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5942 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5943 Tom Tromey <tromey@redhat.com>
5945 * breakpoint.c (struct breakpoint_objfile_data)
5946 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5947 <exception_probes>: New fields.
5948 (free_breakpoint_probes): New function.
5949 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5950 `_Unwind_DebugHook'.
5951 (create_exception_master_breakpoint): Likewise.
5952 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5953 * infrun.c: Including necessary header files for handling SystemTap
5955 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5956 via SystemTap probes.
5957 (check_exception_resume): Remove `func' argument. Handle exception
5958 unwinding breakpoint set via a SystemTap probe.
5959 (insert_exception_resume_from_probe): New function.
5961 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5962 Tom Tromey <tromey@redhat.com>
5963 Jan Kratochvil <jan.kratochvil@redhat.com>
5965 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5966 (COMMON_OBS): Likewise.
5967 (HFILES_NO_SRCDIR): Add `probe'.
5968 * NEWS: Mention support for static and SystemTap probes.
5969 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5970 SystemTap probes' arguments parser.
5971 * arm-linux-tdep.c: Including headers needed to perform the parsing
5972 of SystemTap probes' arguments.
5973 (arm_stap_is_single_operand): New function.
5974 (arm_stap_parse_special_token): Likewise.
5975 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5976 probes' arguments parser.
5977 * ax-gdb.c (require_rvalue): Removing static declaration.
5978 (gen_expr): Likewise.
5979 * ax-gdb.h (gen_expr): Declaring function.
5980 (require_rvalue): Likewise.
5981 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5982 (bkpt_probe_breakpoint_ops): New variable.
5983 (momentary_breakpoint_from_master): Set the `probe' value.
5984 (add_location_to_breakpoint): Likewise.
5985 (break_command_1): Using proper breakpoint_ops according to the
5986 argument passed by the user in the command line.
5987 (bkpt_probe_insert_location): New function.
5988 (bkpt_probe_remove_location): Likewise.
5989 (bkpt_probe_create_sals_from_address): Likewise.
5990 (bkpt_probe_decode_linespec): Likewise.
5991 (tracepoint_probe_create_sals_from_address): Likewise.
5992 (tracepoint_probe_decode_linespec): Likewise.
5993 (tracepoint_probe_breakpoint_ops): New variable.
5994 (trace_command): Using proper breakpoint_ops according to the
5995 argument passed by the user in the command line.
5996 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5997 static probes on breakpoints and tracepoints.
5998 * breakpoint.h (struct bp_location) <probe>: New field.
5999 * cli-utils.c (skip_spaces_const): New function.
6000 (extract_arg): Likewise.
6001 * cli-utils.h (skip_spaces_const): Likewise.
6002 (extract_arg): Likewise.
6003 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6004 * configure.ac: Append `stap-probe.o' to be generated when ELF
6006 * configure: Regenerate.
6007 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6008 * elfread.c: Include `probe.h' and `arch-utils.h'.
6009 (probe_key): New variable.
6010 (elf_get_probes): New function.
6011 (elf_get_probe_argument_count): Likewise.
6012 (elf_evaluate_probe_argument): Likewise.
6013 (elf_compile_to_ax): Likewise.
6014 (elf_symfile_relocate_probe): Likewise.
6015 (stap_probe_key_free): Likewise.
6016 (elf_probe_fns): New variable.
6017 (elf_sym_fns): Add `sym_probe_fns' value.
6018 (elf_sym_fns_lazy_psyms): Likewise.
6019 (elf_sym_fns_gdb_index): Likewise.
6020 (_initialize_elfread): Initialize objfile cache for static
6022 * gdb_vecs.h (struct probe): New forward declaration.
6023 (probe_p): New VEC declaration.
6024 * gdbarch.c: Regenerate.
6025 * gdbarch.h: Regenerate.
6026 * gdbarch.sh (stap_integer_prefix): New variable.
6027 (stap_integer_suffix): Likewise.
6028 (stap_register_prefix): Likewise.
6029 (stap_register_suffix): Likewise.
6030 (stap_register_indirection_prefix): Likewise.
6031 (stap_register_indirection_suffix): Likewise.
6032 (stap_gdb_register_prefix): Likewise.
6033 (stap_gdb_register_suffix): Likewise.
6034 (stap_is_single_operand): New function.
6035 (stap_parse_special_token): Likewise.
6036 (struct stap_parse_info): Forward declaration.
6037 * i386-tdep.c: Including headers needed to perform the parsing
6038 of SystemTap probes' arguments.
6039 (i386_stap_is_single_operand): New function.
6040 (i386_stap_parse_special_token): Likewise.
6041 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6042 probes' arguments parser.
6043 * i386-tdep.h (i386_stap_is_single_operand): New function.
6044 (i386_stap_parse_special_token): Likewise.
6045 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6046 * mipsread.c (ecoff_sym_fns): Likewise.
6047 * objfiles.c (objfile_relocate1): Support relocation for static
6049 * parse.c (prefixify_expression): Remove static declaration.
6050 (initialize_expout): Likewise.
6051 (reallocate_expout): Likewise.
6052 * parser-defs.h (initialize_expout): Declare function.
6053 (reallocate_expout): Likewise.
6054 (prefixify_expression): Likewise.
6055 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6056 of SystemTap probes' arguments.
6057 (ppc_stap_is_single_operand): New function.
6058 (ppc_stap_parse_special_token): Likewise.
6059 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6060 probes' arguments parser.
6061 * probe.c: New file, for generic statically defined probe support.
6062 * probe.h: Likewise.
6063 * s390-tdep.c: Including headers needed to perform the parsing of
6064 SystemTap probes' arguments.
6065 (s390_stap_is_single_operand): New function.
6066 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6067 probes' arguments parser.
6068 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6069 * stap-probe.c: New file, for SystemTap probe support.
6070 * stap-probe.h: Likewise.
6071 * symfile.h: Include `gdb_vecs.h'.
6072 (struct sym_probe_fns): New struct.
6073 (struct sym_fns) <sym_probe_fns>: New field.
6074 * symtab.c (init_sal): Initialize `probe' field.
6075 * symtab.h (struct probe): Forward declaration.
6076 (struct symtab_and_line) <probe>: New field.
6077 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6079 (stop_tracing): Likewise.
6080 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6082 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6083 Tom Tromey <tromey@redhat.com>
6085 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6086 and to compile agent expressions.
6087 * infrun.c (siginfo_make_value): New argument `ignore'.
6088 (siginfo_funcs): New struct.
6089 (_initialize_infrun): New argument when calling
6090 `create_internalvar_type_lazy'.
6091 * thread.c (thread_id_make_value): New argument `ignore'.
6092 (thread_funcs): New struct.
6093 (_initialize_thread): New argument when calling
6094 `create_internalvar_type_lazy'.
6095 * tracepoint.c (sdata_make_value): New argument `ignore'.
6096 (sdata_funcs): New struct.
6097 (_initialize_tracepoint): New argument when calling
6098 `create_internalvar_type_lazy'.
6099 * value.c (make_value): New struct.
6100 (create_internalvar_type_lazy): New argument `data'.
6101 (compile_internalvar_to_ax): New function.
6102 (value_of_internalvar): Properly handling `make_value' case.
6103 (clear_internalvar): Likewise.
6104 (show_convenience): Adding `TRY_CATCH' block.
6105 * value.h (internalvar_make_value): Delete, replace by...
6106 (struct internalvar_funcs): ... this.
6107 (create_internalvar_type_lazy) <fun>: Delete argument.
6108 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6109 (compile_internalvar_to_ax): New function.
6110 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6111 (tlb_funcs): New struct.
6112 (_initialize_windows_tdep): New argument when calling
6113 `create_internalvar_type_lazy'.
6115 2012-04-27 Mark Wielaard <mjw@redhat.com>
6117 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6118 see whether it is an address or a constant offset from DW_AT_low_pc.
6119 (dwarf2_record_block_ranges): Likewise.
6120 (read_partial_die): Likewise.
6122 2012-04-26 Mark Wielaard <mjw@redhat.com>
6124 * MAINTAINERS (Write After Approval): Add myself to the list.
6126 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6128 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6129 (proc_prettyprint_signal): Likewise.
6130 (proc_prettyprint_faultset): Likewise.
6131 (proc_prettyprint_fault): Likewise.
6132 (proc_prettyprint_actionset): Likewise.
6133 (proc_prettyprint_flags): Move to new proc-flags.c section.
6134 (proc_prettyfprint_flags): New prototype.
6135 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6136 (proc_syscall, proc_cursig): Likewise.
6137 (proc_set_kill_on_last_close): Likewise.
6138 (proc_unset_kill_on_last_close): Likewise.
6139 (proc_set_watchpoint): Make static.
6140 (proc_delete_dead_threads): Likewise.
6141 (procfs_set_watchpoint): Likewise.
6142 (_initialize_procfs): Add prototype.
6143 * proc-events.c: Include proc-utils.h.
6144 (init_syscall_table): Make static.
6145 * proc-api.c (_initialize_proc_api): Add prototype.
6146 * proc-flags.c: Include proc-utils.h.
6148 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6150 * configure.ac: Add AC_ARG_PROGRAM.
6151 * configure: Regenerate.
6153 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6155 Fix DW_AT_lower_bound defaults for DWARF-4+.
6156 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6157 high. New variable low_default_is_valid. Implement DWARF-4+
6158 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6159 no default by the DWARF standard.
6161 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6162 Maciej W. Rozycki <macro@codesourcery.com>
6164 * infrun.c (handle_inferior_event): Move the check for return
6165 trampolines ahead of the check for function trampolines.
6166 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6167 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6168 (mips_str_mips16_ret_stub): Likewise.
6169 (mips_str_call_fp_stub): Likewise.
6170 (mips_str_call_stub): Likewise.
6171 (mips_str_fn_stub): Likewise.
6172 (mips_str_pic): Likewise.
6173 (mips_in_frame_stub): New function.
6174 (mips_unwind_pc): Return the return address rather than the PC
6175 if the PC of an intermediate frame is inside a call thunk.
6176 (mips_is_stub_suffix): New function.
6177 (mips_is_stub_mode): Likewise.
6178 (mips_get_mips16_fn_stub_pc): Likewise.
6179 (mips_skip_mips16_trampoline_code): Update to handle all the
6180 currently generated stub types. Don't recurse into __fn_stub
6181 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6182 Use cooked register accesses.
6183 (mips_in_return_stub): Reintroduce function.
6184 (mips_skip_trampoline_code): Traverse trampolines recursively.
6185 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6187 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6191 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6193 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6194 * features/arm-with-m-vfp-d16.xml: New file. Describes
6195 Cortex-M with VFPv4-sp-d16 FPU register layout.
6196 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6197 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6198 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6199 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6200 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6202 2012-04-25 Doug Evans <dje@google.com>
6204 * cli/cli-decode.c (print_doc_line): Use stream instead of
6207 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6209 * features/arm-with-iwmmxt.c: Regenerate.
6210 * features/arm-with-m-fpa-layout.c: Likewise.
6211 * features/arm-with-m.c: Likewise.
6212 * features/arm-with-neon.c: Likewise.
6213 * features/arm-with-vfpv2.c: Likewise.
6214 * features/arm-with-vfpv3.c: Likewise.
6215 * features/mips-dsp-linux.c: Likewise.
6216 * features/mips-linux.c: Likewise.
6217 * features/mips64-dsp-linux.c: Likewise.
6218 * features/mips64-linux.c: Likewise.
6219 * features/s390-linux32.c: Likewise.
6220 * features/s390-linux32v1.c: Likewise.
6221 * features/s390-linux32v2.c: Likewise.
6222 * features/s390-linux64.c: Likewise.
6223 * features/s390-linux64v1.c: Likewise.
6224 * features/s390-linux64v2.c: Likewise.
6225 * features/s390x-linux64.c: Likewise.
6226 * features/s390x-linux64v1.c: Likewise.
6227 * features/s390x-linux64v2.c: Likewise.
6228 * features/tic6x-c62x-linux.c: Likewise.
6229 * features/tic6x-c62x.c: Likewise.
6230 * features/tic6x-c64x-linux.c: Likewise.
6231 * features/tic6x-c64x.c: Likewise.
6232 * features/tic6x-c64xp-linux.c: Likewise.
6233 * features/tic6x-c64xp.c: Likewise.
6234 * target-descriptions.c: Only generate `field_type' and `type'
6235 variables when needed.
6237 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6239 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6241 2012-04-25 Doug Evans <dje@google.com>
6243 Initial pass at Go language support.
6245 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6247 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6248 (YYFILES): Add go-exp.c.
6249 (YYOBJ): Add go-exp.o.
6250 (local-maintainer-clean): Delete go-exp.c.
6251 * defs.h (enum language): Add language_go.
6252 * dwarf2read.c: #include "go-lang.h".
6253 (fixup_go_packaging): New function.
6254 (process_full_comp_unit): Call it when processing Go CUs.
6255 (dwarf2_physname): Add Go support.
6256 (read_file_scope): Handle missing language spec for GNU Go.
6257 (set_cu_language): Handle DW_LANG_Go.
6258 * go-exp.y: New file.
6259 * go-lang.h: New file.
6260 * go-lang.c: New file.
6261 * go-typeprint.c: New file.
6262 * go-valprint.c: New file.
6263 * symtab.c: #include "go-lang.h".
6264 (symbol_set_language): Handle language_go.
6265 (symbol_find_demangled_name, symbol_set_names): Ditto.
6266 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6268 2012-04-24 Jim Meyering <meyering@redhat.com>
6270 avoid a few strncpy-induced buffer overruns
6271 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6272 fname and psargs before trying to concatenate.
6273 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6274 "name" before applying strchr.
6276 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6278 * CONTRIBUTE: Use unified diff instead of context diff when
6281 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6283 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6284 code. Handle JR.HB correctly.
6286 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6289 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6290 with the other MIPS16 helpers.
6292 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6294 * observer.sh: Conditionally declare `args', thus cleaning up
6295 unused instances of this variable.
6297 2012-04-24 Yao Qi <yao@codesourcery.com>
6299 Revert this patch to allow breakpoint always-inserted
6301 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6302 * breakpoint.c: Include record.h.
6303 (breakpoints_always_inserted_mode): Return false when the record
6306 * breakpoint.c (iterate_over_bp_locations): New.
6307 * breakpoint.h: Declare.
6308 New typedef walk_bp_location_callback.
6309 * record.c (record_open): Call record_init_record_breakpoints.
6310 (record_sync_record_breakpoints): New.
6311 (record_init_record_breakpoints): New.
6312 * NEWS: Mention supporting breakpoint always-inserted mode in
6315 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6317 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6320 2012-04-24 Yao Qi <yao@codesourcery.com>
6322 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6323 (is_catchpoint): ... it.
6324 (print_one_breakpoint_location): Caller update.
6325 * breakpoint.h: Update declaration.
6327 2012-04-23 David S. Miller <davem@davemloft.net>
6329 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6331 2012-04-23 Tom Tromey <tromey@redhat.com>
6333 * buildsym.c (add_free_pendings): Remove.
6334 * buildsym.h (add_free_pendings): Remove.
6336 2012-04-23 Doug Evans <dje@google.com>
6338 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6339 attr.u.unsnd instead of attr.u.addr.
6340 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6341 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6343 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6344 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6346 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6348 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6350 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6351 (mips_o32_return_value): Likewise.
6352 (mips_o64_return_value): Likewise.
6354 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6356 * ada-lang.c (ada_evaluate_subexp): Add cases for
6357 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6358 their treatment in eval.c.
6360 2012-04-21 David S. Miller <davem@davemloft.net>
6362 * sparc-tdep.c (X_DISP10): Define.
6363 (sparc_analyze_control_transfer): Handle compare-and-branch.
6365 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6367 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6368 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6370 2012-04-20 Nigel Stephens <nigel@mips.com>
6371 Maciej W. Rozycki <macro@codesourcery.com>
6373 * mips-tdep.c (mips_float_register_p): New function.
6374 (mips_convert_register_float_case_p): Use mips_float_register_p.
6375 (mips_register_type): Likewise.
6376 (mips_print_register): Likewise.
6377 (print_gp_register_row): Likewise.
6378 (mips_print_registers_info): Likewise.
6380 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6382 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6385 2012-04-20 Andrew Pinski <apinski@cavium.com>
6387 * MAINTAINERS (Write After Approval): Add myself to the list.
6389 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6391 * MAINTAINERS: Update my e-mail address.
6393 2012-04-20 Pedro Alves <palves@redhat.com>
6395 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6397 * configure: Regenerate.
6399 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6401 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6403 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6405 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 Fix compilation compatibility with python-2.4
6408 * python/py-type.c (convert_field): Cast ADDRSTRING for
6409 PyObject_SetAttrString as non-const. New comment.
6411 2012-04-19 Tom Tromey <tromey@redhat.com>
6413 * top.c (quit_target): Use all_cleanups.
6414 * main.c (captured_command_loop): Use all_cleanups.
6415 * exceptions.c (throw_exception): Use all_cleanups.
6417 2012-04-19 Pedro Alves <palves@redhat.com>
6419 * Makefile.in (GNULIB_BUILDDIR): New.
6420 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6421 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6422 (CLEANDIRS). Remove gnulib/import.
6423 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6425 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6426 (gnulib/import/Makefile): Replace gnulib/import with
6427 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6428 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6429 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6430 acx_configure_dir.m4.
6431 * acinclude.m4: Include acx_configure_dir.m4.
6432 * acx_configure_dir.m4: New file.
6433 * aclocal.m4: Regenerate.
6434 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6435 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6436 (GNULIB): New variable.
6437 (GNULIB_STDINT_H): Adjust.
6438 (AC_OUTPUT): Don't output gnulib/Makefile.
6439 * gdb/defs.h: Include build-gnulib/config.h.
6440 * aclocal.m4: Regenerate.
6441 * config.in: Regenerate.
6442 * configure: Regenerate.
6444 * gnulib/Makefile.in: New file.
6445 * gnulib/configure.ac: New file.
6446 * gnulib/aclocal.m4: New file.
6447 * gnulib/config.in: New file.
6448 * gnulib/configure: New file.
6449 * gnulib/: Re-run gnulib-tool to adjust.
6451 2012-04-19 Doug Evans <dje@google.com>
6453 * cleanups.h (struct cleanup): Move to cleanups.c.
6454 (make_cleanup_dtor_ftype): New typedef.
6455 (make_cleanup_dtor): Use it.
6456 (ALL_CLEANUPS): Replace with ...
6457 (all_cleanups): ... this. Declare. All uses updated.
6458 * cleanups.c: #include "gdb_assert.h".
6459 (sentinel_cleanup): New static global.
6460 (SENTINEL_CLEANUP): Define.
6461 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6462 (make_my_cleanup2): Assert result is non-NULL.
6463 (all_cleanups): New function.
6464 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6467 2012-04-19 Pedro Alves <palves@redhat.com>
6469 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6470 Adjust paths to gnulib imported files.
6472 2012-04-19 Pedro Alves <palves@redhat.com>
6474 * gnulib/: Move whole directory ...
6475 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6476 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6477 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6478 (aclocal_m4_deps): Adjust.
6479 * aclocal.m4: Regenerate.
6480 * configure: Regenerate.
6481 * configure.ac: Adjust AC_OUTPUT output.
6483 2012-04-19 Yao Qi <yao@codesourcery.com>
6485 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6487 * vec.c: Move it ...
6488 * common/vec.c: ... here.
6489 * vec.h: Move it ...
6490 * common/vec.h: ... here.
6492 2012-04-19 Yao Qi <yao@codesourcery.com>
6494 * gdb-code-style.el: New.
6496 2012-04-18 Pedro Alves <palves@redhat.com>
6498 Update gnulib from latest git.
6499 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6501 * gnulib/Makefile.am: Update.
6502 * gnulib/dummy.c: Update.
6503 * gnulib/extra/arg-nonnull.h: Update.
6504 * gnulib/extra/c++defs.h: Update.
6505 * gnulib/extra/update-copyright: Update.
6506 * gnulib/extra/warn-on-use.h: Update.
6507 * gnulib/inttypes.in.h: Update.
6508 * gnulib/m4/00gnulib.m4: Update.
6509 * gnulib/m4/extensions.m4: Update.
6510 * gnulib/m4/gnulib-cache.m4: Update.
6511 * gnulib/m4/gnulib-common.m4: Update.
6512 * gnulib/m4/gnulib-comp.m4: Update.
6513 * gnulib/m4/gnulib-tool.m4: Update.
6514 * gnulib/m4/include_next.m4: Update.
6515 * gnulib/m4/inttypes-pri.m4: Update.
6516 * gnulib/m4/inttypes.m4: Update.
6517 * gnulib/m4/longlong.m4: Update.
6518 * gnulib/m4/memchr.m4: Update.
6519 * gnulib/m4/memmem.m4: Update.
6520 * gnulib/m4/mmap-anon.m4: Update.
6521 * gnulib/m4/multiarch.m4: Update.
6522 * gnulib/m4/onceonly.m4: Update.
6523 * gnulib/m4/stddef_h.m4: Update.
6524 * gnulib/m4/stdint.m4: Update.
6525 * gnulib/m4/string_h.m4: Update.
6526 * gnulib/m4/warn-on-use.m4: Update.
6527 * gnulib/m4/wchar_h.m4: Update.
6528 * gnulib/m4/wchar_t.m4: Update.
6529 * gnulib/m4/wint_t.m4: Update.
6530 * gnulib/memchr.c: Update.
6531 * gnulib/memmem.c: Update.
6532 * gnulib/stddef.in.h: Update.
6533 * gnulib/stdint.in.h: Update.
6534 * gnulib/str-two-way.h: Update.
6535 * gnulib/string.in.h: Update.
6536 * gnulib/wchar.in.h: Update.
6538 * gnulib/extra/arg-nonnull.h: Delete.
6539 * gnulib/extra/c++defs.h: Delete.
6540 * gnulib/extra/warn-on-use.h: Delete.
6541 * gnulib/m4/wchar_h.m4: Delete.
6542 * gnulib/m4/wint_t.m4: Delete.
6543 * gnulib/wchar.in.h: Delete.
6545 * gnulib/extra/snippets/arg-nonnull.h: New.
6546 * gnulib/extra/snippets/c++defs.h: New.
6547 * gnulib/extra/snippets/warn-on-use.h: New.
6549 * aclocal.m4: Regenerate.
6550 * config.in: Regenerate.
6551 * configure: Regenerate.
6552 * gnulib/Makefile.in: Regenerate.
6554 2012-04-18 Pedro Alves <palves@redhat.com>
6556 Reimport the update-copyright module from gnulib
6557 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6559 * configure: Regenerate.
6560 * gnulib/Makefile.am: Update.
6561 * gnulib/Makefile.in: Regenerate.
6562 * gnulib/extra/update-copyright: Update.
6563 * gnulib/m4/gnulib-cache.m4: Update.
6564 * gnulib/m4/gnulib-comp.m4: Update.
6566 2012-04-18 Tristan Gingold <gingold@adacore.com>
6568 * configure.ac (aix): Put -lpthread into libs.
6569 * configure: Regenerate.
6571 2012-04-18 Tom Tromey <tromey@redhat.com>
6573 * linespec.c (convert_linespec_to_sals): Don't use
6575 (compare_msymbols): Arguments are minsym_and_objfile, not
6576 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6578 2012-04-18 Pedro Alves <palves@redhat.com>
6580 Revert gnulib/ part of:
6581 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6582 Copyright year update in most files (performed by copyright.sh).
6584 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6586 Fix 64-bit constants on 32-bit hosts.
6587 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6588 from unsigned long to ULONGEST.
6589 (read_signed_leb128): Change declaration return type from long to
6591 (dwarf2_const_value_attr): Change declaration parameter value from long
6593 (dwarf2_compute_name): Change variable value from long to LONGEST.
6594 (read_unsigned_leb128): Change return type, variable result and some
6595 casts from unsigned long to ULONGEST.
6596 (read_signed_leb128): Change return type, variable result and some
6597 casts from long to LONGEST.
6598 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6599 value from long to LONGEST.
6600 (dwarf2_const_value): Change variable value from long to LONGEST.
6601 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6602 plongest and hex_string.
6603 * symtab.h (struct general_symbol_info): Change ivalue from long to
6604 LONGEST, remove the comment.
6605 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6606 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6608 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6611 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6612 * ada-lang.c (ada_discrete_type_high_bound)
6613 (ada_discrete_type_low_bound): Fix function comment. Use
6614 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6615 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6616 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6617 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6618 Use TYPE_FIELD_ENUMVAL.
6619 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6620 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6621 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6622 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6624 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6625 * dwarf2read.c (process_enumeration_scope): Likewise.
6626 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6628 (class StructMainTypePrettyPrinter): Support also
6629 FIELD_LOC_KIND_ENUMVAL.
6630 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6632 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6633 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6634 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6635 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6637 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6638 accommodate enumval.
6639 (struct call_site): Adjust loc_kind to accommodate enumval.
6640 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6641 (TYPE_FIELD_ENUMVAL): New macros.
6642 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6643 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6645 * p-typeprint.c (pascal_type_print_base): Likewise.
6646 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6648 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6649 * python/py-type.c (convert_field): New variable addrstring. Use
6650 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6651 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6652 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6653 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6655 * valprint.c (generic_val_print): Likewise.
6657 2012-04-17 Doug Evans <dje@google.com>
6659 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6661 * dwarf2read.c: Whitespace fixes.
6662 (lookup_signatured_type): Tweak comment.
6663 (get_die_type_at_offset): Fix comment.
6665 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6667 * xcoffread.c (xcoff_secnum_to_sections): New function.
6668 (secnum_to_section, secnum_to_bfd_section): Reimplement
6669 using xcoff_secnum_to_sections. Rename "secnum" parameter
6671 (RECORD_MINIMAL_SYMBOL): Delete.
6672 (record_minimal_symbol): New function.
6673 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6674 by call to record_minimal_symbol and set misc_func_recorded
6675 to 1. Set last_csect_sec to the XCOFF section index instead
6676 of GDB's section_offset index. Update calls to
6677 prim_record_minimal_symbol_and_info to pass the BFD section
6680 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6682 * xcoffread.c (read_xcoff_symtab): Delete variables
6683 last_csect_val and last_csect_sec and associated code.
6685 2012-04-17 Doug Evans <dje@google.com>
6687 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6688 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6689 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6690 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6692 * cleanups.h: New file.
6693 * cleanups.c: New file.
6694 * Makefile.in (SFILES): Add cleanups.c.
6695 (HFILES_NO_SRCDIR): Add cleanups.h.
6696 (COMMON_OBS): Add cleanups.o.
6697 * defs.h (struct cleanup): Moved to cleanups.h.
6698 (do_cleanups,do_final_cleanups): Ditto.
6699 (discard_cleanups,discard_final_cleanups): Ditto
6700 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6701 (save_cleanups,save_final_cleanups): Ditto.
6702 (restore_cleanups,restore_final_cleanups): Ditto.
6703 (null_cleanup): Ditto.
6704 (make_my_cleanup,make_my_cleanup2): Ditto.
6705 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6706 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6707 (do_cleanups,do_final_cleanups): Ditto.
6708 (discard_cleanups,discard_final_cleanups): Ditto
6709 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6710 (save_cleanups,save_final_cleanups): Ditto.
6711 (restore_cleanups,restore_final_cleanups): Ditto.
6712 (null_cleanup): Ditto.
6713 (make_my_cleanup,make_my_cleanup2): Ditto.
6714 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6716 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6718 (make_cleanup_dyn_string_delete): Ditto.
6719 (make_cleanup_ui_file_delete): Ditto.
6720 (make_cleanup_ui_out_redirect_pop): Ditto.
6721 (make_cleanup_free_section_addr_info): Ditto.
6722 (make_cleanup_restore_integer): Ditto.
6723 (make_cleanup_unpush_target): Ditto.
6724 (make_cleanup_value_free_to_mark): Ditto.
6725 (make_cleanup_value_free): Ditto.
6726 (make_cleanup_free_so): Ditto.
6728 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6730 New option "set debug auto-load".
6731 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6732 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6733 (auto_load_safe_path_vec_update)
6734 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6736 (file_is_auto_load_safe): New parameters debug_fmt and ....
6737 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6738 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6739 caller by explanatory string.
6740 (_initialize_auto_load): Register "set debug auto-load".
6741 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6743 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6744 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6745 by explanatory string.
6746 * main.c (captured_main): Likewise.
6747 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6748 (source_section_scripts): Likewise.
6750 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 New option "set auto-load safe-path".
6753 * NEWS: New commands "set auto-load safe-path"
6754 and "show auto-load safe-path".
6755 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6756 (auto_load_safe_path, auto_load_safe_path_vec)
6757 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6758 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6759 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6760 (source_gdb_script_for_objfile): New variable is_safe. Call
6761 file_is_auto_load_safe. Return if it is not.
6762 (struct loaded_script): New field loaded.
6763 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6764 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6765 output "Missing" to "No".
6766 (_initialize_auto_load): New variable cmd. Initialize
6767 auto_load_safe_path. Register "set auto-load safe-path",
6768 "show auto-load safe-path" and "add-auto-load-safe-path".
6769 * auto-load.h (maybe_add_script): Add parameter loaded.
6770 (file_is_auto_load_safe): New declaration.
6771 * config.in: Regenerate.
6772 * configure: Regenerate.
6773 * configure.ac: New parameters --with-auto-load-safe-path
6774 and --without-auto-load-safe-path.
6775 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6776 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6777 * main.c (captured_main): Check file_is_auto_load_safe for
6779 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6780 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6781 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6784 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6786 auto-load: Implementation.
6787 * NEWS: New descriptions for "info auto-load",
6788 "info auto-load gdb-scripts", "info auto-load python-scripts",
6789 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6790 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6791 and "show auto-load-scripts". New description for "set auto-load",
6792 "show auto-load", "set auto-load gdb-scripts",
6793 "show auto-load gdb-scripts", "set auto-load python-scripts",
6794 "show auto-load python-scripts", "set auto-load local-gdbinit",
6795 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6796 "show auto-load libthread-db".
6797 * auto-load.c: Remove include python/python-internal.h. Add includes
6798 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6800 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6801 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6802 (gdbpy_global_auto_load): Rename to ...
6803 (global_auto_load): ... here.
6804 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6805 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6806 (script_language_gdb, source_gdb_script_for_objfile): New.
6807 (struct loaded_script): New field language.
6808 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6810 (maybe_add_script): Add parameter language. Drop redundant
6811 entry.full_path initialization. Initialize entry.language and
6813 (auto_load_objfile_script): Change parameter suffix to language.
6814 Remove the call of maybe_add_script.
6815 Call language->source_script_for_objfile.
6816 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6818 (collect_matching_scripts): Adjust it for
6819 struct collect_matching_scripts_data.
6820 (auto_load_info_scripts_pattern_nl): New variable.
6821 (info_auto_load_scripts): Rename to ...
6822 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6823 for struct collect_matching_scripts_data.
6824 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6825 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6826 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6827 (auto_load_info_cmdlist_get): New.
6828 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6829 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6830 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6831 "info auto-load local-gdbinit".
6832 * auto-load.h (struct script_language): New.
6833 (gdbpy_global_auto_load): Rename to ...
6834 (global_auto_load): ... here.
6835 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6836 (auto_load_local_gdbinit_loaded): New declarations.
6837 (maybe_add_script): New parameter language.
6838 (auto_load_objfile_script): Change parameter suffix to language.
6839 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6840 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6841 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6843 * linux-thread-db.c: Include auto-load.h and ctype.h.
6844 (auto_load_thread_db, show_auto_load_thread_db): New.
6845 (struct thread_db_info): New field filename.
6846 (delete_thread_db_info): Call xfree for FILENAME.
6847 (try_thread_db_load): Initialize FILENAME.
6848 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6849 if !AUTO_LOAD_THREAD_DB.
6850 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6851 (_initialize_thread_db): Install auto_load_thread_db
6852 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6853 as "info auto-load libthread-db".
6854 * main.c (captured_main): Rename gdbpy_global_auto_load to
6855 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6856 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6857 (print_gdb_help): Extend the help for 'local init file'.
6858 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6859 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6860 (auto_load_scripts): Rename to ...
6861 (auto_load_python_scripts): ... here, update the comment.
6862 (gdbpy_load_auto_script_for_objfile): New declaration.
6863 (show_auto_load_python_scripts, script_language_python)
6864 (gdbpy_load_auto_script_for_objfile): New.
6865 (source_section_scripts): Refactor the code.
6866 (load_auto_scripts_for_objfile): Rename to ...
6867 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6868 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6869 (info_auto_load_python_scripts): New.
6870 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6871 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6872 Register "set auto-load-scripts" as its deprecated alias. Register
6873 "info auto-load python-scripts". Register "info auto-load-scripts" as
6874 its deprecated alias.
6875 (load_auto_scripts_for_objfile): Rename to ...
6876 (gdbpy_load_auto_scripts_for_objfile): ... here.
6877 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6878 (gdbpy_load_auto_scripts_for_objfile): ... here.
6880 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6882 auto-load: Move files.
6883 * Makefile.in (SFILES): Add auto-load.c.
6884 (HFILES_NO_SRCDIR): Add auto-load.h.
6885 (COMMON_OBS): Add auto-load.o.
6886 (distclean): Change .gdbinit for gdb-gdb.gdb.
6887 * auto-load.c: New file, with parts from python/py-auto-load.c.
6888 * auto-load.h: New file, with parts from python/python.h.
6889 * configure: Regenerate.
6890 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6891 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6892 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6893 * main.c: Include auto-load.h.
6894 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6895 command.h, observer.h and progspace.h to auto-load.c. Add include
6897 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6898 (struct loaded_script, auto_load_pspace_data)
6899 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6900 (hash_loaded_script_entry, eq_loaded_script_entry)
6901 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6902 (maybe_add_script): Move to auto-load.c.
6903 (source_section_scripts): Change maybe_add_script parameters passing,
6904 use script_not_found_warning_print.
6905 (clear_section_scripts, auto_load_objfile_script)
6906 (auto_load_new_objfile, loaded_script_ptr)
6907 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6908 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6909 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6910 auto_load_new_objfile and info_auto_load_scripts initizations to
6912 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6914 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6917 * charset.c (find_charset_names): Remove variables ix and elt.
6918 Use free_char_ptr_vec.
6919 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6920 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6921 debugdir_end. New variable debugdir_len.
6922 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6923 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6925 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6926 and elt. Use free_char_ptr_vec.
6927 * source.c (add_path): Remove variables argv, arg and argv_index.
6928 New variables dir_vec, back_to, ix and name.
6929 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6930 make_cleanup_freeargv. Remove variable separator. Simplify the code
6931 no longer expecting DIRNAME_SEPARATOR.
6932 (openp): Remove variable p, p1 and len. New variables dir_vec,
6933 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6934 no longer expecting DIRNAME_SEPARATOR.
6935 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6936 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6938 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6939 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6940 (dirnames_to_char_ptr_vec): New functions.
6942 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6945 * source.c (add_path): Remove always true conditional 'p == 0' and
6946 unindent its code block.
6948 2012-04-17 Pedro Alves <palves@redhat.com>
6950 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6951 (FIELD_BITPOS_LVAL): ... this.
6952 (FIELD_BITPOS): New.
6953 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6954 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6955 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6957 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6959 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6960 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6961 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6964 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6966 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6967 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6968 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6969 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6970 * jv-lang.c (java_link_class_type): Likewise, once.
6971 * stabsread.c (read_enum_type): Likewise.
6973 2012-04-16 Yao Qi <yao@codesourcery.com>
6975 * common/agent.c (agent_run_command): Add one more parameter `len'.
6977 * common/agent.h: Update declaration.
6978 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6980 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6982 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6985 * value.c (value_actual_type): New function.
6986 * value.h (value_actual_type): New declaration.
6987 * varobj.c (update_type_if_necessary): New function.
6988 (varobj_create): Call value_actual_type instead of
6990 (install_dynamic_child): distinct changed and type changed MI variable
6992 (update_dynamic_varobj_children): Updated for install_dynamic_child
6993 change. All callers updated.
6994 (varobj_update): Support for MI variable object type change if
6995 the value changed and RTTI is used to determine the type.
6996 (create_child_with_value): Call value_actual_type instead of
6998 (adjust_value_for_child_access): Extended with a new parameter which
6999 specify whether the given value should be casted to enclosing type.
7000 All callers updated.
7002 2012-04-14 Yao Qi <yao@codesourcery.com>
7004 Import gnulib module inttypes from git
7005 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7006 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7007 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7008 gnulib/m4/inttypes-pri.m4
7009 * aclocal.m4, config.in, configure: Regenerated.
7010 * gnulib/Makefile.am: Update.
7011 * gnulib/Makefile.in: Update.
7012 * gnulib/m4/gnulib-cache.m4: Update.
7013 * gnulib/m4/gnulib-comp.m4: Update.
7014 * gnulib/inttypes.in.h: New.
7015 * gnulib/m4/inttypes-pri.m4: New.
7016 * gnulib/m4/inttypes.m4: New.
7018 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7020 * infrun.c (resume): Update PC address to the real PC after
7021 preparing to do displaced stepping.
7023 2012-04-12 Doug Evans <dje@google.com>
7025 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7026 All callers updated.
7028 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7030 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7032 2012-04-12 Doug Evans <dje@google.com>
7034 * dwarf2read.c (create_all_type_units): Renamed from
7035 create_debug_types_hash_table. All callers updated.
7037 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7038 local type_sig to sig_type, type_offset to type_offset_in_tu.
7039 (hash_signatured_type): Renamed from hash_type_signature,
7040 all callers updated.
7041 (eq_signatured_type): Renamed from eq_type_signature,
7042 all callers updated.
7043 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7044 (process_enumeration_scope): Ditto.
7045 (lookup_signatured_type_at_offset): Ditto.
7046 (load_full_type_unit, read_signatured_type): Ditto.
7048 2012-04-12 Yao Qi <yao@codesourcery.com>
7050 * remote.c (async_remote_interrupt): Correct function name in
7052 (async_remote_interrupt_twice): Ditto.
7054 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7056 * source.c (find_and_open_source): Consistently pass resulting
7057 full path through xfullpath.
7059 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 Provide more specific displaced-stepping memory error message.
7062 * infrun.c (displaced_step_prepare): New variable status. Call
7063 target_read_memory instead of read_memory, provide more specific
7066 2012-04-11 Tristan Gingold <gingold@adacore.com>
7069 * darwin-nat.c (darwin_execvp): Revert previous patch.
7071 2012-04-11 Tristan Gingold <gingold@adacore.com>
7074 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7077 2012-04-11 Tristan Gingold <gingold@adacore.com>
7079 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7082 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7084 New command 'explore' which helps explore values and types in
7086 * NEWS: Add an entry about the new 'explore' command.
7087 * data-directory/Makefile.in: Add gdb/command/explore.py
7088 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7089 command using the GDB Python API.
7091 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7093 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7094 extension in jump target calculation.
7096 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7098 * mips-tdep.c (mips32_next_pc): Handle JALX.
7100 2012-04-10 Yao Qi <yao@codesourcery.com>
7102 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7104 2012-04-10 Yao Qi <yao@codesourcery.com>
7106 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7107 and gnulib/m4/gnulib-tool.m4.
7109 2012-04-10 Doug Evans <dje@google.com>
7111 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7112 (load_partial_dies): Clarify comment.
7113 (find_partial_die): Support rereading type units.
7114 Clarify CU handling, if we know offset is in CU, don't search for the
7115 containing CU. Add comment regarding memory waste.
7117 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7119 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7120 i386/x32-avx and i386/x32-avx-linux.
7121 (i386/x32-expedite): New.
7122 (i386/x32-linux-expedite): Likewise.
7123 (i386/x32-avx-expedite): Likewise.
7124 (i386/x32-avx-linux-expedite): Likewise.
7125 ($(outdir)/i386/x32.dat): Likewise.
7126 ($(outdir)/i386/x32-linux.dat): Likewise.
7127 ($(outdir)/i386/x32-avx.dat): Likewise.
7128 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7130 * features/i386/x32-avx-linux.xml: New file.
7131 * features/i386/x32-avx.xml: Likewise.
7132 * features/i386/x32-core.xml: Likewise.
7133 * features/i386/x32-linux.xml: Likewise.
7134 * features/i386/x32.xml: Likewise.
7136 * features/i386/x32-avx-linux.c: New. Generated.
7137 * features/i386/x32-avx.c: Likewise.
7138 * features/i386/x32-linux.c: Likewise.
7139 * features/i386/x32.c: Likewise.
7140 * regformats/i386/x32-avx-linux.dat: Likewise.
7141 * regformats/i386/x32-avx.dat: Likewise.
7142 * regformats/i386/x32-linux.dat: Likewise.
7143 * regformats/i386/x32.dat: Likewise.
7145 2012-04-10 Tristan Gingold <gingold@adacore.com>
7147 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7148 code to kill the inferior.
7150 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7152 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7154 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7156 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7157 (yyvsp): New defines.
7158 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7160 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7162 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7164 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7166 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7169 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7171 * sparc64-tdep.c (sparc64_store_arguments)
7172 (sparc64_store_arguments): Fix coding style.
7174 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7176 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7177 complex floats, adjust some related comments and tighten a related
7179 (sparc64_extract_return_value): Handle complex floats.
7181 2012-04-07 Doug Evans <dje@google.com>
7183 * dwarf2read.c (load_partial_dies): Change condition to assert.
7185 2012-04-06 Doug Evans <dje@google.com>
7187 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7190 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7192 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7194 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7195 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7198 2012-04-05 Keith Seitz <keiths@redhat.com>
7200 * linespec.c (decode_compound): Remove.
7201 (enum offset_relative_sign): New enum.
7202 (struct line_offset): New struct.
7203 (struct linespec): New struct.
7204 (struct linespec_state): Move file_symtabs,
7205 user_filename, and user_function into struct linespec.
7206 Make result an anonymous struct holding vectors of
7207 symbolp and minsym_and_objfile_d.
7208 Add language member.
7209 (enum ls_token_type): New enum.
7210 (linespec_keywords): New array.
7211 (struct ls_token): New struct.
7212 (struct ls_parser): New struct.
7213 (linespec_lexer_lex_number): New function.
7214 (linespec_lexer_lex_keyword): New function.
7215 (is_ada_operator): New function.
7216 (skip_quote_char): New function.
7217 (copy_token_string): New function.
7218 (is_closing_quote_enclosed): New function.
7219 (find_parameter_list_end): New function.
7220 (linespec_lexer_lex_string): New function.
7221 (linespec_lexer_lex_one): New function.
7222 (linespec_lexer_consume_token): New function.
7223 (linespec_lexer_peek_token): New function.
7224 (cplusplus_error): Remove unused function.
7225 (find_methods): Update comment.
7226 (find_toplevel_char): Return const.
7227 (is_objc_method_format): Remove unused function.
7228 (find_toplevel_string): New function.
7229 (is_linespec_boundary): Remove.
7230 (symbol_not_found_error): New function.
7231 (find_method_overload_end): Remove function.
7232 (unexpected_linespec_error): New function.
7233 (keep_name_info): Remove.
7234 (linespec_parse_line_offset): New function.
7235 (linespec_parse_basic): New function.
7236 (canonicalize_linespec): New function.
7237 (decode_line_internal): Remove.
7238 (create_sals_line_offset): New function adapted from
7240 (convert_linespec_to_sals): New function.
7241 (parse_linespec): New function.
7242 (linespec_parser_new): New function.
7243 (linespec_state_destructor): Change parameter type to
7244 struct linespec_state *.
7245 Add language parameter.
7246 Remove freeing of moved members.
7247 (linespec_parser_delete): New function.
7248 (decode_line_full): Use parse_linespec and linespec_parser_new.
7249 (decode_line_1): Likewise.
7250 (decode_indirect): Rename to ...
7251 (linespec_expression_to_pc): ... this and rewrite
7252 to simply find CORE_ADDR, storing this result for later
7254 (locate_first_half): Remove.
7255 (deocde_objc): Add parameter LS.
7256 Initialize new struct collect_info members.
7257 Handle minimal symbols, too.
7258 (decode_compound): Delete.
7259 (lookup_prefix_sym): Rewrite.
7260 (compare_msymbols): New function.
7261 (find_method): Rewrite.
7262 Do not call cplusplus_error.
7263 (symtabs_from_filename): Rewrite.
7264 (collect_function_symbols): Delete.
7265 (find_function_symbols): Rewrite without ARGPTR-style
7267 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7268 (decode_dollar): Adapted and renamed to ...
7269 (linespec_parse_variable): ... this.
7270 (find_linespec_symbols): New function.
7271 (decode_label): Adapted and renamed to ...
7272 (find_label_symbols): ... this.
7273 (decode_digits_list_mode): Add and use LS argument.
7274 (decode_digits_ordinary): Likewise.
7275 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7276 If in list mode, allow any symbol class. Otherwise, only
7277 permit LOC_BLOCK symbols.
7278 (minsym_found): Update comments.
7279 (search_minsyms_for_name): Do not convert the matching symbol
7280 into a SAL. Simply push the symbol and objfile into the
7282 (decode_variable): Delete. Contents adapted into
7283 find_linespec_symbols.
7285 * cp-support.c (SKIP_SPACE): Remove.
7286 (operator_tokens): Remove unused global.
7287 (cp_validate_operator): Remove.
7288 * cp-support.h (cp_validate_operator): Remove declaration.
7290 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7292 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7293 for TYPE_VPTR_FIELDNO.
7294 * valprint.c (valprint_check_validity): Make it global, move the
7295 function comment ...
7296 * value.h (valprint_check_validity): ... to this new declaration.
7298 2012-04-02 Tristan Gingold <gingold@adacore.com>
7300 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7301 the STATE32 api for i386 state.
7302 (i386_darwin_store_inferior_registers): Likewise.
7304 2012-04-02 Tristan Gingold <gingold@adacore.com>
7306 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7308 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7311 2012-04-02 Tristan Gingold <gingold@adacore.com>
7314 * darwin-nat.c (darwin_execvp): Set binary preference.
7316 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7318 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7320 2012-03-30 Tom Tromey <tromey@redhat.com>
7322 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7323 of TRY_CATCH. Fix error handling.
7324 * python/py-value.c (convert_value_from_python): Move 'old'
7325 declaration to innermost scope.
7327 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7328 Andrey Smirnov <andrew.smirnov@gmail.com>
7330 -Wshadow warning fix.
7331 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7332 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7333 Adjust code accordingly.
7335 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7337 * ada-lang.c (symbol_completion_add): Rename parameter
7338 "encoded" into "encoded_p". Ajust code and documentation
7341 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7342 Andrey Smirnov <andrew.smirnov@gmail.com>
7344 -Wshadow warning fix.
7345 * ada-lang.c (symbol_completion_add): Rename parameter
7346 "wild_match" into wild_match_p. Update code and documentation
7349 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7351 * ada-lang.c (symbol_completion_match): Rename parameter
7352 "encoded" into "encoded_p". Ajust code and documentation
7355 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7356 Andrey Smirnov <andrew.smirnov@gmail.com>
7358 -Wshadow warning fix.
7359 * ada-lang.c (symbol_completion_match): Rename parameter
7360 "wild_match" into "wild_match_p". Adjust code and function
7361 documentation accordingly.
7363 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7364 Andrey Smirnov <andrew.smirnov@gmail.com>
7366 -Wshadow warning fix.
7367 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7368 "symbol_info" into "info". Adjust code accordingly.
7369 (ada_lookup_symbol): Likewise.
7371 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7373 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7374 of this function's documentation.
7376 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7377 Andrey Smirnov <andrew.smirnov@gmail.com>
7379 -Wshadow warning fix.
7380 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7381 variable into "wild_match_p". Adjust code accordingly.
7383 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7384 Andrey Smirnov <andrew.smirnov@gmail.com>
7386 -Wshadow warning fix.
7387 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7388 parameter into "wild_match_p". Adjust code accordingly.
7389 Document this parameter in the function description.
7391 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7392 Andrey Smirnov <andrew.smirnov@gmail.com>
7394 -Wshadow warning fix.
7395 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7396 "wild_match" parameter to "wild_match_p" (-Wshadow).
7398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7400 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7401 in function documentation.
7403 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7404 Andrey Smirnov <andrew.smirnov@gmail.com>
7406 -Wshadow warning fix.
7407 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7408 variable into wild_match_p. Adjust code accordingly.
7410 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7411 Andrey Smirnov <andrew.smirnov@gmail.com>
7413 * ada-valprint.c (ada_val_print_1): Move the code handling
7414 TYPE_CODE_ENUM inside its own lexical block. Declare
7415 variables len and val there, instead of in the function's
7416 top level block. Avoid declaring deref_val again in a way
7417 that shadows another variable of the same name declared
7418 in one of the up-level blocks. Just re-use the up-level
7421 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7423 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7424 Replace block_found argument by symbol_info. Adjust
7425 implementation accordingly. Add function documentation.
7426 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7428 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7429 * ada-exp.y (write_object_renaming): Adjust to new
7430 ada_lookup_encoded_symbol API.
7432 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7434 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7437 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7439 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7440 (v850_register_name): Add the mpu and fpu register names.
7441 (v850e_register_name): Add the mpu and fpu register names.
7442 (v850e2_register_name): New function.
7443 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7446 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7448 * NEWS: Add entry for Ada varobj support.
7450 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7452 * varobj.c (default_value_is_changeable_p): New function,
7453 extracted from varobj_value_is_changeable_p. Add declaration.
7454 (ada_value_is_changeable_p): New function, extracted from
7455 varobj_value_is_changeable_p. Add declaration.
7456 (struct language_specific): New field "value_is_changeable_p".
7457 (languages): Add entries for new field.
7458 (varobj_create): Set language before calling install_new_value.
7459 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7460 "value_is_changeable_p" language callback.
7462 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7464 * ada-varobj.h, ada-varobj.c: New files.
7465 * Makefile.in (SFILES): Add ada-varobj.c.
7466 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7467 (COMMON_OBS): Add ada-varobj.o.
7469 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7471 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7472 (struct language_specific): New field "value_has_mutated".
7473 (languages): Set field "value_has_mutated" in each entry of array.
7474 (varobj_value_has_mutated): New function.
7475 (varobj_udpdate): Add handling of type mutation.
7476 (value_of_root): Add handling of type mutation.
7477 (ada_value_has_mutated): New function.
7479 2012-03-28 Pedro Alves <palves@redhat.com>
7481 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7482 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7484 2012-03-28 Tom Tromey <tromey@redhat.com>
7486 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7487 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7490 2012-03-28 Tom Tromey <tromey@redhat.com>
7492 * .dir-locals.el: New file.
7494 2012-03-28 Pedro Alves <palves@redhat.com>
7496 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7498 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7500 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7503 2012-03-27 Pedro Alves <palves@redhat.com>
7505 Eliminate struct ui_stream.
7507 * ui-out.h (struct ui_stream): Delete.
7508 (ui_out_field_stream): Adjust prototype.
7509 (ui_out_stream_new, ui_out_stream_delete)
7510 (make_cleanup_ui_out_stream_delete): Delete declarations.
7511 * ui-out.c (ui_out_field_stream): Change prototype to take a
7512 ui_file instead of a ui_stream. Adjust.
7513 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7514 (make_cleanup_ui_out_stream_delete): Delete.
7515 * breakpoint.c (print_breakpoint_location)
7516 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7517 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7518 * disasm.c (dump_insns): Ditto.
7519 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7521 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7522 ui_stream/ui_out_stream_new.
7523 * infcmd.c (print_return_value): Ditto.
7524 * osdata.c (info_osdata_command): Don't allocate a local
7526 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7527 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7528 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7529 allocate a local ui_stream.
7530 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7531 instead of ui_stream/ui_out_stream_new.
7532 (list_args_or_locals): Don't allocate a local ui_stream.
7533 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7534 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7535 ui_stream/ui_out_stream_new.
7536 * cli/cli-setshow.c (do_setshow_command): Ditto.
7538 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7540 * arm-linux-tdep.c (arm_linux_init_abi): Call
7541 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7542 * arm-tdep.c (arm_process_record): New function.
7543 (deallocate_reg_mem): New function.
7544 (decode_insn): New function.
7545 (thumb_record_branch): New function.
7546 (thumb_record_ldm_stm_swi(): New function.
7547 (thumb_record_misc): New function.
7548 (thumb_record_ld_st_stack): New function.
7549 (thumb_record_ld_st_imm_offset): New function.
7550 (thumb_record_ld_st_reg_offset(): New function.
7551 (thumb_record_add_sub_cmp_mov): New function.
7552 (thumb_record_shift_add_sub): New function.
7553 (arm_record_coproc_data_proc): New function.
7554 (arm_record_coproc): New function.
7555 (arm_record_b_bl): New function.
7556 (arm_record_ld_st_multiple): New function.
7557 (arm_record_ld_st_reg_offset): New function.
7558 (arm_record_ld_st_imm_offset): New function.
7559 (arm_record_data_proc_imm): New function.
7560 (arm_record_data_proc_misc_ld_str): New function.
7561 (arm_record_extension_space): New function.
7562 (arm_record_strx): New function.
7563 (sbo_sbz): New function.
7564 (struct insn_decode_record): New structure for arm insn record.
7565 (REG_ALLOC): New macro for reg allocations.
7566 (MEM_ALLOC): New macro for memory allocations.
7567 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7569 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7571 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7572 (store_register): Likewise.
7574 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7576 * MAINTAINERS (Write After Approval): Add myself to the list.
7578 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7580 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7581 Describe also the option "auto".
7583 2012-03-22 Richard Henderson <rth@redhat.com>
7585 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7586 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7588 2012-03-22 Richard Henderson <rth@redhat.com>
7590 * jit.c (jit_read_code_entry): Compute alignment and offset of
7591 int64_t member before computing entry_size.
7593 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7595 Python scripting: Add new method Value.referenced_value to
7596 gdb.Value which can dereference pointer as well as reference
7598 * NEWS: Add entry under 'Python scripting' about the new method
7599 Value.referenced_value on gdb.Value objects.
7600 * python/py-value.c (valpy_referenced_value): New function
7601 defining a new method on gdb.Value objects which can dereference
7602 pointer and reference values.
7604 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7606 * MAINTAINERS (Write After Approval): Add myself to the list.
7608 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7610 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7611 in addition to "main".
7613 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7615 * expression.h (op_name): Add declaration.
7616 * expprint.c (op_name): Remove declaration. Make non-static.
7617 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7619 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7621 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7623 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7624 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7625 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7626 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7627 (linux_nat_get_siginfo): Likewise.
7628 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7629 (linux_nat_get_siginfo): Likewise.
7630 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7631 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7632 * procfs.c (gdb_siginfo_t): Likewise.
7634 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7636 * .gitignore: Ignore more files.
7638 2012-03-20 Pedro Alves <palves@redhat.com>
7640 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7643 2012-03-20 Yao Qi <yao@codesourcery.com>
7645 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7648 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7651 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7652 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7654 * dwarf2expr.h (cu_offset, sect_offset): New types.
7655 (struct dwarf_expr_context_funcs) <dwarf_call>
7656 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7658 (struct dwarf_expr_context) <len>: Improve the comment.
7659 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7660 cu_offset and sect_offset.
7661 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7662 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7663 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7664 * dwarf2loc.h: Include dwarf2expr.h.
7665 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7667 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7668 Improve the comment.
7669 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7670 (struct signatured_type, struct line_header, struct partial_die_info)
7671 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7672 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7673 (get_die_type_at_offset, create_cus_from_index)
7674 (create_signatured_type_table_from_index, dw2_get_file_names)
7675 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7676 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7677 (create_debug_types_hash_table, process_psymtab_comp_unit)
7678 (load_partial_comp_unit, create_all_comp_units)
7679 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7680 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7681 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7682 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7683 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7684 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7685 (find_partial_die, read_attribute_value, lookup_die_type)
7686 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7687 (is_ref_attr): New function comment.
7688 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7689 Use cu_offset and sect_offset.
7690 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7691 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7692 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7693 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7694 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7695 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7696 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7699 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7702 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7703 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7705 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7707 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7709 * NEWS: Describe new options --init-command=FILE, -ix and
7710 --init-eval-command=COMMAND, -iex.
7711 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7712 CMDARG_INIT_COMMAND.
7713 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7714 "init-command", "init-eval-command", "ix" and "iex" to the variable
7715 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7716 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7717 (print_gdb_help): Describe --init-command=FILE, -ix and
7718 --init-eval-command=COMMAND, -iex.
7720 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7723 * main.c (struct cmdarg): Move it here from main. Add more comments.
7724 (cmdarg_s, VEC (cmdarg_s)): New.
7725 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7726 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7727 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7728 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7731 2012-03-19 Tom Tromey <tromey@redhat.com>
7733 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7735 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7738 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7741 2012-03-16 Chris January <chris.january@allinea.com>
7743 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7746 2012-03-16 Chris January <chris.january@allinea.com>
7748 * source.c (add_path): Use memmove instead of strcpy because the
7751 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7753 * value.h (set_value_parent): Add declaration.
7754 * value.c (set_value_parent): New function.
7755 (value_address): If VALUE->PARENT is not NULL, then use it as
7756 the base address instead of VALUE->LOCATION.address.
7757 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7758 the same as OBJ's address. Adjust V's offset accordingly.
7761 2012-03-16 Gary Benson <gbenson@redhat.com>
7763 PR breakpoints/10738
7764 * dwarf2read.c (use_deprecated_index_sections): New global.
7765 (struct partial_die_info): New member may_be_inlined.
7766 (read_partial_die): Set may_be_inlined where appropriate.
7767 (add_partial_subprogram): Add partial symbols for partial
7768 DIEs that may be inlined.
7769 (new_symbol_full): Add inlined subroutines to the current
7771 (write_psymtabs_to_index): Bump version number.
7772 (dwarf2_read_index): Read only version 6 indices unless
7773 use_deprecated_index_sections is set.
7774 * linespec.c (symbol_and_data_callback): New structure.
7775 (iterate_inline_only): New function.
7776 (iterate_over_all_matching_symtabs): New argument
7777 "include_inline". If nonzero, also call the callback for
7778 symbols representing inlined subroutines.
7779 (lookup_prefix_sym): Pass extra argument to the above.
7780 (find_function_symbols): Likewise.
7781 (add_matching_symbols_to_info): Likewise.
7782 * NEWS: Mention that GDB can now set breakpoints on inlined
7785 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7787 * p-typeprint.c (pascal_type_print_method_args):
7788 Fix display of parameter of methods.
7790 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7792 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7793 Add missing prototype.
7795 2012-03-16 Yao Qi <yao@codesourcery.com>
7796 Jan Kratochvil <jan.kratochvil@redhat.com>
7798 Fix false compilation warning.
7799 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7801 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7802 Pedro Alves <pedro@codesourcery.com>
7804 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7805 (arm_register_g_packet_guesses): New function.
7806 (arm_gdbarch_init): Don't force a target description with
7807 registers when the executable is detected as M-profile. Instead
7808 set gdbarch->tdep->is_m. Register `g' packet guesses.
7809 (_initialize_arm_tdep): Initialize the new target description.
7810 * features/arm-with-m-fpa-layout.xml: New description.
7811 * features/arm-with-m-fpa-layout.c: New, generated.
7813 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7815 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7816 Update function description.
7817 (insert_bp_location): Do not wipe bl->target_info out.
7818 * mem-break.c: #include "gdb_string.h".
7819 (default_memory_insert_breakpoint): Do not call target_read_memory
7820 with a pointer to the breakpoint's shadow_contents buffer. Use
7821 a local buffer instead.
7822 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7824 2012-03-15 Tom Tromey <tromey@redhat.com>
7826 * NEWS: Mention "info vtbl", not "info vtable".
7827 * cp-support.c (info_vtbl_command): Fix comment.
7828 (_initialize_cp_support): Fix text.
7830 2012-03-15 Tom Tromey <tromey@redhat.com>
7832 * cp-valprint.c (cp_print_value_fields): Use
7833 print_function_pointer_address for vtable slot.
7835 2012-03-15 Tom Tromey <tromey@redhat.com>
7837 * gnu-v3-abi.c (struct value_and_voffset): New.
7838 (hash_value_and_voffset, eq_value_and_voffset)
7839 (compare_value_and_voffset, compute_vtable_size)
7840 (print_one_vtable, gnuv3_print_vtable): New functions.
7841 (init_gnuv3_ops): Initialize 'print_vtable' field.
7842 * cp-support.c (info_vtbl_command): New function.
7843 (_initialize_cp_support): Add "info vtbl".
7844 * cp-abi.h (cplus_print_vtable): Declare.
7845 (struct cp_abi_ops) <print_vtable>: New field.
7846 * cp-abi.c (cplus_print_vtable): New function.
7849 2012-03-15 Tom Tromey <tromey@redhat.com>
7851 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7852 iterate_over_symbols.
7854 2012-03-14 Doug Evans <dje@google.com>
7856 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7857 DW_OP_GNU_parameter_ref.
7859 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7861 Fix double prompt of 'interpreter-exec mi'.
7862 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7863 (mi_interpreter_resume): use it.
7864 (mi_execute_command_input_handler): New function.
7865 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7866 mi_execute_command_input_handler.
7868 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7870 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7872 (darwin_debug_port_info): Make static.
7873 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7874 * machoread.c (_initialize_machoread): Add prototype.
7875 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7876 (i386_darwin_set_control, i386_darwin_get_control)
7877 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7878 i386_darwin_get_status, i386_darwin_get_control):
7879 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7881 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7883 * ax-gdb.c (gen_usual_unary): Remove special handling of
7884 enum and bool types.
7886 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7888 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7890 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7892 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7894 2012-03-13 Chris January <chris.january@allinea.com>
7896 * aix-thread.c (fill_sprs): Store the floating point registers
7897 at the correct offsets into vals.
7899 2012-03-13 Doug Evans <dje@google.com>
7901 * NEWS: Mention symbol-reloading has been deleted.
7902 * symfile.c (symbol_reloading): Delete.
7903 (show_symbol_reloading): Delete.
7904 (_initialize_symfile): Delete set/show symbol-reloading.
7906 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7907 read_in_chain until we have successfully read it in.
7908 (load_full_comp_unit): Ditto.
7909 (read_signatured_type): Add comment.
7911 2012-03-13 Chris January <chris.january@allinea.com>
7913 * stabsread.c (fix_common_block): Change type of valu argument
7916 2012-03-13 Chris January <chris.january@allinea.com>
7918 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7921 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7923 * common/linux-procfs.c (linux_proc_get_int): New, from
7924 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7926 (linux_proc_get_tgid): Only call linux_proc_get_int.
7927 (linux_proc_get_tracerpid): New.
7928 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7929 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7930 linux_proc_pid_has_state.
7931 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7932 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7933 (linux_ptrace_attach_warnings): New.
7934 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7936 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7937 (linux_nat_attach): New variables ex, buffer, message and message_s.
7938 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7940 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7942 * Makefile.in (linux-ptrace.o): New.
7943 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7945 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7946 * common/linux-ptrace.c: New file.
7947 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7948 * config/arm/linux.mh: Likewise.
7949 * config/i386/linux.mh: Likewise.
7950 * config/i386/linux64.mh: Likewise.
7951 * config/ia64/linux.mh: Likewise.
7952 * config/m32r/linux.mh: Likewise.
7953 * config/m68k/linux.mh: Likewise.
7954 * config/mips/linux.mh: Likewise.
7955 * config/pa/linux.mh: Likewise.
7956 * config/powerpc/linux.mh: Likewise.
7957 * config/powerpc/ppc64-linux.mh: Likewise.
7958 * config/powerpc/spu-linux.mh: Likewise.
7959 * config/s390/s390.mh: Likewise.
7960 * config/sparc/linux.mh: Likewise.
7961 * config/sparc/linux64.mh: Likewise.
7962 * config/xtensa/linux.mh: Likewise.
7963 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7964 common/linux-procfs.c.
7965 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7967 2012-03-13 Hui Zhu <teawater@gmail.com>
7968 Pedro Alves <palves@redhat.com>
7970 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7971 CREATE_BREAKPOINT_FLAGS_INSERTED.
7972 (create_breakpoint_sal, create_breakpoints_sal)
7973 (base_breakpoint_create_breakpoints_sal)
7974 (tracepoint_create_breakpoints_sal)
7975 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7977 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7978 (ftrace_command, strace_command): Adjust.
7979 (create_tracepoint_from_upload): Pass
7980 CREATE_BREAKPOINT_FLAGS_INSERTED.
7981 * breakpoint.h (enum breakpoint_create_flags): New.
7982 (create_breakpoint): New flags parameter.
7983 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7984 * python/py-breakpoint.c (bppy_init): Adjust.
7985 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7986 * spu-tdep.c (spu_catch_start): Adjust.
7988 2012-03-13 Pedro Alves <palves@redhat.com>
7989 Hui Zhu <teawater@gmail.com>
7990 Yao Qi <yao@codesourcery.com>
7992 * remote.c (struct remote_state): New field `starting_up'.
7993 (remote_start_remote): Set and clear it.
7994 (remote_can_download_tracepoint): If starting up, return false.
7996 2012-03-13 Yao Qi <yao@codesourcery.com>
7998 * inferior.h (struct inferior): Remove fields any_syscall_count,
7999 syscalls_counts and total_syscalls_count. Move them to new
8000 struct catch_syscall_inferior_data in breakpoint.c.
8001 * breakpoint.c: Call DEF_VEC_I(int).
8002 (struct catch_syscall_inferior_data): New.
8003 (get_catch_syscall_inferior_data): New.
8004 (catch_syscall_inferior_data_cleanup): New.
8005 (insert_catch_syscall): Update to access data in
8006 struct catch_syscall_inferior_data.
8007 (insert_catch_syscall): Likewise.
8008 (remove_catch_syscall): Likewise.
8009 (remove_catch_syscall): Likewise.
8010 (is_syscall_catchpoint_enabled): Likewise.
8011 (add_catch_command): Likewise.
8012 (_initialize_breakpoint): Register cleanup.
8013 * breakpoint.h: Removed DEF_VEC_I(int).
8014 * dwarf2loc.c: Call DEF_VEC_I(int).
8015 * mi/mi-main.c: Likewise.
8017 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8019 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8021 2012-03-12 Chris January <chris.january@allinea.com>
8023 * aix-thread.c (_initialize_aix_thread): Add prototype.
8024 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8025 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8027 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8029 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8030 include of "amd64-nat.h".
8032 2012-03-12 Tom Tromey <tromey@redhat.com>
8034 * buildsym.c (record_pending_block): Now static.
8035 * buildsym.h: (record_pending_block): Remove.
8037 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8039 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8041 2012-03-09 Tom Tromey <tromey@redhat.com>
8043 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8044 producer_is_gxx_lt_4_6>: New fields.
8045 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8047 2012-03-09 Tom Tromey <tromey@redhat.com>
8049 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8051 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8053 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8056 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8058 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8060 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8062 Fix -Wmissing-prototypes build.
8063 * arm-linux-nat.c (get_thread_id): Make it static.
8064 * xtensa-linux-nat.c (get_thread_id): Likewise.
8066 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8068 * server.c (process_point_options): If a conditional expression
8069 is found, only print a message if remote_debug is nonzero.
8071 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8073 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8074 of internal error for unknown/unsupported types.
8076 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8078 Fix CU relative vs. absolute DIE offsets.
8079 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8080 offset to offset_in_cu.
8081 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8083 (dwarf2_fetch_die_location_block): Rename parameter offset to
8084 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8086 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8088 * libunwind-frame.c: Rename to ...
8089 * ia64-libunwind-tdep.c: ... here.
8090 * libunwind-frame.h: Rename to ...
8091 * ia64-libunwind-tdep.h: ... here.
8092 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8093 ia64-libunwind-tdep.h.
8094 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8095 * README (--with-libunwind): Rename to ...
8096 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8097 * config.in: Regenerate.
8098 * configure: Regenerate.
8099 * configure.ac: New option --with-libunwind-ia64, make the
8100 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8101 Remove AC_DEFINE for HAVE_LIBUNWIND.
8102 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8103 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8104 Rename libunwind-frame in the general comment.
8105 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8106 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8107 Move forward declarations inside #ifndef. Rename libunwind-frame in
8108 the general comment.
8109 * ia64-tdep.c: Rename libunwind-frame.h #include to
8110 ia64-libunwind-tdep.h.
8111 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8112 (ia64_libunwind_descr): Rename libunwind-frame to
8113 ia64-libunwind-tdep in these function comments.
8114 * ia64-tdep.h: Rename libunwind-frame.h #include to
8115 ia64-libunwind-tdep.h.
8116 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8117 ia64-libunwind-tdep in that data comment.
8119 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8121 * libunwind-frame.h (struct frame_unwind): New declaration.
8123 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8125 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8126 "set breakpoint condition-evaluation" command.
8128 2012-03-08 Tristan Gingold <gingold@adacore.com>
8130 * sparc-stub.c: Move to stubs/
8131 * sh-stub.c: Likewise.
8132 * m68k-stub.c: Likewise.
8133 * m32r-stub.c: Likewise.
8134 * i386-stub.c: Likewise.
8136 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8138 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8139 linux_get_siginfo_type.
8141 * m68klinux-nat.c: Include "gdb_proc_service.h".
8142 (PTRACE_GET_THREAD_AREA): Define.
8143 (ps_get_thread_area): New function.
8145 2012-03-08 Yao Qi <yao@codesourcery.com>
8147 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8149 (remote_query_attached): Likewise.
8150 (remote_static_tracepoint_marker_at): Likewise.
8151 (remote_set_permissions): Likewise.
8152 (remote_detach_1, extended_remote_attach_1): Likewise.
8153 (send_g_packet, remote_vkill): Likewise.
8154 (extended_remote_disable_randomization): Likewise.
8155 (remote_add_target_side_condition): Likewise.
8156 (remote_insert_breakpoint): Likewise.
8157 (remote_remove_breakpoint): Likewise.
8158 (remote_insert_watchpoint): Likewise.
8159 (remote_remove_watchpoint): Likewise.
8160 (remote_insert_hw_breakpoint): Likewise.
8161 (remote_insert_hw_breakpoint): Likewise.
8162 (remote_remove_hw_breakpoint): Likewise.
8163 (remote_download_command_source): Likewise.
8164 (remote_download_tracepoint): Likewise.
8165 (remote_download_trace_state_variable): Likewise.
8166 (remote_disable_tracepoint): Likewise.
8167 (remote_trace_set_readonly_regions): Likewise.
8168 (remote_get_tracepoint_status): Likewise.
8169 (remote_trace_find): Likewise.
8170 (remote_get_trace_state_variable_value): Likewise.
8171 (remote_set_disconnected_tracing): Likewise.
8172 (remote_set_circular_trace_buffer): Likewise.
8173 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8174 (remote_use_agent): Likewise.
8175 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8178 2012-03-07 Pedro Alves <palves@redhat.com>
8180 * NEWS: Mention QProgramSignals.
8181 * inferior.h (update_signals_program_target): Declare.
8182 * infrun.c: (update_signals_program_target): New.
8183 (handle_command): Update the target of the new program signals
8185 * remote.c (PACKET_QProgramSignals): New enum.
8186 (last_program_signals_packet): New global.
8187 (remote_program_signals): New.
8188 (remote_start_remote): Update the target with the program signals
8190 (remote_protocol_features): Add entry for QPassSignals.
8191 (remote_open_1): Free anc clear last_program_signals_packet.
8192 (init_remote_ops): Install remote_program_signals.
8193 * target.c (update_current_target): Adjust.
8194 (target_program_signals): New.
8195 * target.h (struct target_ops) <to_program_signals>: New field.
8196 (target_program_signals): Declare.
8198 2012-03-07 Pedro Alves <palves@redhat.com>
8200 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8203 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8205 * m68klinux-nat.c (getregs_supplies): Make static.
8206 (getfpregs_supplies): Likewise.
8207 (have_ptrace_getregs): Likewise.
8209 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8211 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8212 in call to get_die_type_at_offset.
8214 2012-03-06 Stan Shebs <stan@codesourcery.com>
8216 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8217 * mi/mi-cmd-disas.c: Ditto.
8218 * mi/mi-cmd-env.c: Ditto.
8219 * mi/mi-cmd-file.c: Ditto.
8220 * mi/mi-cmd-stack.c: Ditto.
8221 * mi/mi-cmd-target.c: Ditto.
8222 * mi/mi-cmd-var.c: Ditto.
8223 * mi/mi-cmds.c: Ditto.
8224 * mi/mi-cmds.h: Ditto.
8225 * mi/mi-console.c: Ditto.
8226 * mi/mi-getopt.c: Ditto.
8227 * mi/mi-getopt.h: Ditto.
8228 * mi/mi-interp.c: Ditto.
8229 * mi/mi-main.c: Ditto.
8230 * mi/mi-out.c: Ditto.
8231 * mi/mi-parse.c: Ditto.
8232 * mi/mi-parse.h: Ditto.
8233 * mi/mi-symbol-cmds.c: Ditto.
8235 * mi/mi-getopt.h: Move mi_opt struct up.
8236 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8238 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8240 2012-03-06 Tom Tromey <tromey@redhat.com>
8242 * proc-service.c (ps_pglobal_lookup): Set the current program
8245 2012-03-06 Pedro Alves <palves@redhat.com>
8247 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8249 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8251 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8253 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8256 * common/linux-osdata.c (linux_common_core_of_thread): New function
8258 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8259 call by linux_common_core_of_thread.
8260 (linux_nat_core_of_thread_1): Remove.
8261 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8262 * linux-thread-db.c: Include linux-osdata.h.
8263 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8264 linux_common_core_of_thread.
8266 2012-03-05 Tom Tromey <tromey@redhat.com>
8268 * value.c (value_primitive_field): Don't fetch contents for
8271 2012-03-05 Tom Tromey <tromey@redhat.com>
8273 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8275 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8277 * s390-nat.c: Include "gregset.h".
8279 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8281 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8282 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8283 (libunwind_load): New variable so_error, use it for dlerror. Try to
8284 load also LIBUNWIND_SO_7.
8286 2012-03-05 Pedro Alves <palves@redhat.com>
8288 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8289 is not NULL, and remove resulting dead code.
8291 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8293 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8294 prologue to sh_analyze_prologue.
8295 (sh_analyze_prologue): Make better use of such an upper limit, and
8296 generally be more cautious about accessing memory.
8298 2012-03-05 Tom Tromey <tromey@redhat.com>
8300 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8301 _initialize_ia64_hpux_tdep.
8303 2012-03-05 Pedro Alves <palves@redhat.com>
8307 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8308 the register state is clear, supply explicit zero, instead of
8309 marking the register unavailable.
8311 2012-03-05 Tristan Gingold <gingold@adacore.com>
8313 * NEWS: Mention OpenVMS ia64 new target.
8315 2012-03-05 Tristan Gingold <gingold@adacore.com>
8317 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8318 (ia64_unw_accessors, ia64_unw_rse_accessors)
8319 (ia64_libunwind_descr): Declare.
8320 * ia64-vms-tdep.c: New file.
8321 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8322 (ia64_libunwind_descr): Make them public.
8323 * configure.tgt: Add ia64-*-*vms*.
8324 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8325 (ALLDEPFILES): Add ia64-vms-tdep.c
8327 2012-03-05 Tristan Gingold <gingold@adacore.com>
8329 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8330 * remote.c (PACKET_qXfer_uib): New enum value.
8331 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8332 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8333 (_initialize_remote): Call add_packet_config_cmd for
8336 2012-03-05 Tristan Gingold <gingold@adacore.com>
8338 * osabi.c (gdb_osabi_names): Add OpenVMS.
8339 (generic_elf_osabi_sniffer): Likewise.
8340 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8342 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8344 Removed unused code.
8345 * libunwind-frame.c (libunwind_frame_unwind)
8346 (libunwind_frame_base_address): Remove.
8347 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8349 2012-03-04 Yao Qi <yao@codesourcery.com>
8351 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8352 remove trailing new line.
8353 (agent_run_command, agent_run_command): Add _ markup.
8354 (agent_capability_check): Likewise.
8356 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8358 * breakpoint.c (set_condition_evaluation_mode): Set
8359 CONDITION_EVALUATION_MODE unconditionally.
8361 2012-03-03 Yao Qi <yao@codesourcery.com>
8363 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8364 * common/agent.h: Update declaration.
8365 * inf-child.c (inf_child_use_agent): New.
8366 (inf_child_can_use_agent): New.
8367 (inf_child_target): Initialize fields `to_use_agent'
8368 and `to_can_use_agent'.
8369 * agent.c (agent_new_objfile): New.
8370 (_initialize_agent): Add agent_new_objfile to new_objfile
8373 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8375 (linux_target_install_ops): Initialize field
8376 `to_static_tracepoint_markers_by_strid'.
8377 * remote.c (free_current_marker): Move it to ...
8378 * tracepoint.c (free_current_marker): ... here. New.
8379 (cleanup_target_stop): New.
8380 * tracepoint.h: Declare free_current_marker.
8381 * NEWS: Add one entry about `info static-tracepoint-marker'.
8383 2012-03-03 Yao Qi <yao@codesourcery.com>
8385 * common/agent.c (agent_loaded_p): New.
8386 (agent_look_up_symbols): New global.
8387 * common/agent.h: Declare agent_loaded_p.
8389 2012-03-03 Yao Qi <yao@codesourcery.com>
8391 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8392 (agent_capability_check, agent_capability_invalidate): New.
8393 (symbol_list): New array element.
8394 * common/agent.h (enum agent_capa): New.
8395 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8397 2012-03-03 Yao Qi <yao@codesourcery.com>
8399 * target.h (struct target_ops) <to_use_agent>: New field.
8400 (struct target_ops) <to_can_use_agent>: New field.
8401 (target_use_agent, target_can_use_agent): New macro.
8402 * target.c (update_current_target): Update.
8403 * remote.c: New enum `PACKET_QAgent'.
8404 (remote_protocol_features): Add a new element.
8405 (remote_use_agent, remote_can_use_agent): New.
8406 (init_remote_ops): Initialize field `can_use_agent' with
8407 remote_can_use_agent. Intiailize field `use_agent' with
8409 * common/agent.c (use_agent): New global.
8410 * common/agent.h: Declare it.
8411 * tracepoint.c (info_static_tracepoint_markers_command): Add
8413 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8414 (COMMON_OBS): Add common/agent.o and agent.o
8415 (common-agent.o): New rule.
8418 2012-03-03 Yao Qi <yao@codesourcery.com>
8420 * common/agent.c: New.
8421 * common/agent.h: New.
8422 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8424 * configure, configh.in: Regenerated.
8426 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8428 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8429 unless it exists for this architecture.
8431 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8433 * language.h (struct language_defn): New "method" la_read_var_value.
8434 * findvar.c: #include "language.h".
8435 (default_read_var_value): Renames read_var_value. Rewrite
8436 function description.
8437 (read_var_value): New function.
8438 * value.h (default_read_var_value): Add prototype.
8439 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8441 (ada_language_defn): Add entry for la_read_var_value.
8442 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8443 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8444 language_defn structures to add entry for new la_read_var_value
8447 2012-03-02 Tom Tromey <tromey@redhat.com>
8448 Pedro Alves <palves@redhat.com>
8450 PR breakpoints/13776:
8451 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8453 (delete_longjmp_breakpoint_at_next_stop): New.
8454 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8455 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8456 before deleting the inferior. Add comments.
8457 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8458 breakpoints immediately, but only on next stop. Move that code
8459 next to where we mark other breakpoints for deletion.
8461 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8463 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8465 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8468 2012-03-02 Pedro Alves <palves@redhat.com>
8470 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8472 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8474 Fix -Wmissing-prototypes build.
8475 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8476 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8477 (gdbsim_has_memory): Likewise.
8479 2012-03-02 Yao Qi <yao@codesourcery.com>
8481 Fix -Wmissing-prototypes build.
8482 * charset.c (phony_iconv_open): Make static.
8483 (phony_iconv_close, phony_iconv): Likewise.
8484 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8485 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8487 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8488 * ser-mingw.c (create_select_thread): Make static.
8489 * windows-termcap.c (tgetent): New prototype.
8490 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8492 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8494 Fix -Wmissing-prototypes build.
8495 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8496 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8497 (_initialize_loadable): New prototypes.
8499 2012-03-02 Doug Evans <dje@google.com>
8501 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8502 abbrev table, read_comp_unit will do it.
8504 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8506 Fix -Wmissing-prototypes build.
8507 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8508 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8509 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8510 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8511 (_initialize_arm_symbian_tdep): New prototype.
8512 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8513 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8514 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8516 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8517 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8519 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8520 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8521 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8523 * moxie-tdep.c (moxie_process_record): Likewise.
8524 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8525 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8526 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8527 (_initialize_rl78_tdep): New prototype.
8528 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8529 (_initialize_rx_tdep): New prototype.
8530 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8531 (_initialize_darwin_solib): New prototype.
8532 * solib-spu.c: Include solib-spu.h.
8533 (_initialize_spu_solib): New prototype.
8534 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8535 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8536 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8537 (tic6x_software_single_step): Make it static.
8538 (_initialize_tic6x_tdep): New prototype.
8540 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8542 Fix -Wmissing-prototypes build.
8543 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8544 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8546 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8548 Fix -Wmissing-prototypes build.
8549 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8550 (frv_have_stopped_data_address): Remove.
8552 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8554 Fix -Wmissing-prototypes build.
8555 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8556 * sh-tdep.c: Include sh64-tdep.h.
8557 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8558 * sh64-tdep.c: Include sh64-tdep.h.
8559 * sh64-tdep.h: New file.
8561 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8563 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8565 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8567 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8568 sp_regnum once the gdbarch_init_osabi hook has been called.
8570 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8572 * mips-tdep.c (mips32_bc1_pc): New function.
8573 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8574 BPOSGE32 and BPOSGE64 instructions.
8575 (deal_with_atomic_sequence): Likewise.
8576 (mips32_instruction_has_delay_slot): Likewise.
8578 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8579 Chris Dearman <chris@mips.com>
8580 Maciej W. Rozycki <macro@codesourcery.com>
8581 Joseph Myers <joseph@codesourcery.com>
8583 * features/mips-dsp.xml: New file.
8584 * features/mips64-dsp.xml: New file.
8585 * features/mips-dsp-linux.xml: New file.
8586 * features/mips64-dsp-linux.xml: New file.
8587 * features/Makefile (WHICH): Add mips-dsp-linux and
8589 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8590 * features/mips-dsp-linux.c: New file.
8591 * features/mips64-dsp-linux.c: New file.
8592 * regformats/mips-dsp-linux.dat: New file.
8593 * regformats/mips64-dsp-linux.dat: New file.
8594 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8596 (mips64_linux_register_addr): Likewise.
8597 (mips64_linux_regsets_fetch_registers): Likewise.
8598 (mips64_linux_regsets_store_registers): Likewise.
8599 (mips64_linux_fetch_registers): Update call to
8600 mips64_linux_regsets_fetch_registers.
8601 (mips64_linux_store_registers): Update call to
8602 mips64_linux_regsets_store_registers.
8603 (mips_linux_read_description): Probe for DSP registers.
8604 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8605 and initialize_tdesc_mips64_dsp_linux.
8606 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8607 Remove padding of no longer used embedded register slots.
8608 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8609 (MIPS_RESTART_REGNUM): Redefine enum value.
8610 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8612 (mips_tx39_reg_names): Likewise.
8613 (mips_linux_reg_names): New array of register names for Linux
8615 (mips_register_name): Check for a null pointer in
8616 mips_processor_reg_names and return an empty string.
8617 (mips_register_type): Exclude embedded registers for the IRIX
8619 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8620 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8622 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8623 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8624 (mips_gdbarch_init): Likewise. Initialize internal register
8625 indices for the Linux ABI. Use dynamic numbers to refer to
8626 registers, as applicable, while parsing the target description.
8627 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8629 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8631 * frame.h (read_frame_register_unsigned): Fix typo in function
8634 2012-03-01 Pedro Alves <palves@redhat.com>
8636 * jit-reader.in [!__cplusplus]
8637 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8639 2012-03-01 Pedro Alves <palves@redhat.com>
8641 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8642 * configure: Regenerate.
8644 2012-03-01 Pedro Alves <palves@redhat.com>
8646 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8647 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8648 (ftrace_command, strace_command): Make static.
8649 * d-lang.c (_initialize_d_language): Declare.
8650 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8651 * dwarf2loc.c (_initialize_dwarf2loc):
8652 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8653 * exec.c (exec_get_section_table): Make static.
8654 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8655 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8656 * inferior.c (remove_inferior_command, add_inferior_command)
8657 (clone_inferior_command): Make static.
8658 * linux-nat.c (linux_nat_thread_address_space)
8659 (linux_nat_core_of_thread): Make static.
8660 * linux-tdep.c (_initialize_linux_tdep): Declare.
8661 * objc-lang.c (_initialize_objc_lang): Declare.
8662 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8664 (_initialize_opencl_language): Declare.
8665 * record.c (_initialize_record): Declare.
8666 * remote.c (demand_private_info, remote_get_tib_address)
8667 (remote_supports_cond_tracepoints)
8668 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8670 * skip.c (_initialize_step_skip): Declare.
8671 * symtab.c (skip_prologue_using_lineinfo): Make static.
8672 * tracepoint.c (delete_trace_state_variable)
8673 (trace_variable_command, delete_trace_variable_command)
8674 (get_uploaded_tsv, find_matching_tracepoint_location)
8675 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8677 * value.c (pack_unsigned_long): Make static.
8678 * varobj.c (varobj_ensure_python_env): Make static.
8679 * windows-tdep.c (_initialize_windows_tdep): Declare.
8680 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8682 2012-03-01 Pedro Alves <palves@redhat.com>
8684 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8686 (linux_init_abi): Install it as has_shared_address_space gdbarch
8689 2012-03-01 Pedro Alves <palves@redhat.com>
8691 * observer.c (observer_test_first_notification_function)
8692 (observer_test_second_notification_function)
8693 (observer_test_third_notification_function): Add declarations.
8695 2012-03-01 Pedro Alves <palves@redhat.com>
8697 * common/signals.c (default_target_signal_to_host)
8698 (default_target_signal_from_host): Move ...
8699 * arch-utils.c: ... here.
8700 * arch-utils.h (default_target_signal_to_host)
8701 (default_target_signal_from_host): Declare.
8703 * common/signals.c (target_signal_from_command): Move ...
8704 * infrun.c: ... here.
8705 * inferior.h (target_signal_from_command): Declare.
8706 * target.h (target_signal_from_command)
8707 (default_target_signal_from_host, default_target_signal_to_host):
8708 Delete declarations.
8710 * common/signals.c (_initialize_signals): Delete.
8712 2012-03-01 Pedro Alves <palves@redhat.com>
8714 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8715 both __cplusplus and !__cplusplus.
8717 2012-03-01 Pedro Alves <palves@redhat.com>
8719 * psymtab.c (find_and_open_source): Delete declaration.
8720 * source.c (find_and_open_source): Move comment ...
8721 * source.h (find_and_open_source): ... to this new declaration.
8723 2012-03-01 Pedro Alves <palves@redhat.com>
8725 * inline-frame.c: Include inline-frame.h.
8727 2012-03-01 Pedro Alves <palves@redhat.com>
8729 * tui/tui-data.c (set_gen_win_origin): Delete.
8730 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8731 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8733 2012-03-01 Pedro Alves <palves@redhat.com>
8735 * remote.c (encode_actions): Delete declaration.
8736 * tracepoint.c (encode_actions): Make extern.
8737 * tracepoint.h (encode_actions): Declare.
8739 2012-03-01 Pedro Alves <palves@redhat.com>
8741 * python/py-breakpoint.c: Include python.h.
8742 * python/py-continueevent.c (create_continue_event_object): Make
8744 * python/py-lazy-string.c (stpy_get_type): Make static.
8745 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8747 * python/py-utils.c (unicode_to_target_python_string): Make
8749 * python/py-value.c: Include python.h.
8751 2012-03-01 Pedro Alves <palves@redhat.com>
8753 * inferior.c (delete_threads_of_inferior): Delete.
8755 2012-03-01 Pedro Alves <palves@redhat.com>
8757 Import fallback definitions from glibc.
8759 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8760 ps_prochandle): Forward declare.
8761 (ps_err_e): Use glibc's comments.
8762 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8763 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8764 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8765 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8766 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8767 (struct ps_prochandle): Adjust comment.
8769 2012-03-01 Pedro Alves <palves@redhat.com>
8771 * ada-lang.c (ada_modulus_from_name): Delete.
8772 * ada-lex.l (lexer_init): Make static.
8774 2012-03-01 Pedro Alves <palves@redhat.com>
8778 * frame.c (read_frame_register_unsigned): New.
8779 * frame.h (read_frame_register_unsigned): Declare.
8780 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8782 (print_i387_control_word): New parameter `control_p'. Handle it.
8783 (i387_print_float_info): Handle unavailable float registers.
8785 2012-03-01 Keith Seitz <keiths@redhat.com>
8787 * linespec.c (decode_line_2): Sort the list of methods
8788 alphabetically before presenting the user with a selection
8791 2012-03-01 Doug Evans <dje@google.com>
8793 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8795 (dwarf2_read_abbrevs): Remove corresponding initialization.
8797 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8799 * NEWS: Mention new python command class gdb.COMMAND_USER.
8800 * cli/cli-cmds.c (show_user): Print error when used on a python
8802 (init_cli_cmds): Update documentation strings for "show user" and
8803 "set/show max-user-call-depth" to clarify that it does not apply to
8805 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8807 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8809 * top.c (execute_command): Only execute a user-defined command as a
8810 legacy macro if c->user_commands is set.
8812 2012-03-01 Tom Tromey <tromey@redhat.com>
8814 * valprint.h (struct generic_val_print_decorations): New.
8815 (generic_val_print): Declare.
8816 * valprint.c (generic_val_print): New function.
8817 * p-valprint.c (p_decorations): New global.
8818 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8819 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8820 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8821 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8822 * m2-valprint.c (m2_decorations): New global.
8823 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8824 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8825 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8826 TYPE_CODE_ERROR>: Call generic_val_print.
8827 * f-valprint.c (f_decorations): New global.
8828 (f_val_print): Use print_function_pointer_address.
8829 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8830 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8831 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8833 * c-valprint.c (c_decorations): New global.
8834 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8835 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8836 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8837 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8838 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8839 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8842 2012-03-01 Tom Tromey <tromey@redhat.com>
8844 * valprint.c (val_print): Update.
8845 * p-valprint (pascal_val_print): Return void.
8846 * p-lang.h (pascal_val_print): Return void.
8847 * m2-valprint.c (m2_val_print): Return void.
8848 * m2-lang.h (m2_val_print): Return void.
8849 * language.h (struct language_defn) <la_val_print>: Return void.
8850 * language.c (unk_lang_val_print): Return void.
8851 * jv-valprint.c (java_val_print): Return void.
8852 * jv-lang.h (java_val_print): Return void.
8853 * f-valprint.c (f_val_print): Return void.
8854 * f-lang.h (f_val_print): Return void.
8855 * d-valprint.c (d_val_print): Return void.
8856 (dynamic_array_type): Update.
8857 * d-lang.h (d_val_print): Return void.
8858 * c-valprint.c (c_val_print): Return void.
8859 * c-lang.h (c_val_print): Return void.
8860 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8862 * ada-lang.h (ada_val_print): Return void.
8864 2012-03-01 Tom Tromey <tromey@redhat.com>
8866 * value.h (val_print): Return void.
8867 * valprint.c (val_print): Return void.
8869 2012-03-01 Tom Tromey <tromey@redhat.com>
8871 * value.h (common_val_print): Return void.
8872 * valprint.c (common_val_print): Return void.
8874 2012-03-01 Tom Tromey <tromey@redhat.com>
8876 * value.h (value_print): Return void.
8877 * valprint.c (value_print): Return void.
8878 * p-valprint.c (pascal_value_print): Return void.
8879 * p-lang.h (pascal_value_print): Return void.
8880 * language.h (struct language_defn) <la_value_print>: Return
8882 * language.c (unk_lang_value_print): Return void.
8883 * jv-valprint.c (java_value_print): Return void.
8884 * jv-lang.h (java_value_print): Return void.
8885 * f-valprint.c (c_value_print): Don't declare.
8887 * c-valprint.c (c_value_print): Return void.
8888 * c-lang.h (c_value_print): Return void.
8889 * ada-valprint.c (ada_value_print): Return void.
8890 * ada-lang.h (ada_value_print): Return void.
8892 2012-03-01 Tom Tromey <tromey@redhat.com>
8894 * value.c (value_primitive_field): Handle virtual base classes.
8896 2012-03-01 Tom Tromey <tromey@redhat.com>
8898 * gdbtypes.h (struct vbase): Remove.
8900 2012-03-01 Tom Tromey <tromey@redhat.com>
8902 * c-valprint.c (print_function_pointer_address): Move...
8903 * valprint.c: ... here. Make non-static.
8904 * m2-valprint.c (print_function_pointer_address): Remove.
8905 * valprint.h (print_function_pointer_address): Declare.
8907 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8909 * NEWS: Document the fact that one can provide a condition when
8910 creating an Ada exception catchpoint.
8912 2012-03-01 Tom Tromey <tromey@redhat.com>
8914 * valprint.c (val_print_type_code_flags): Fix placement of
8917 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8919 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8920 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8921 environment variable before calling update-copyright.
8923 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8925 * gnulib/extra/update-copyright: Update to the latest from
8926 gnulib's git repository.
8927 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8928 variable to 2 instead of 1.
8930 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8932 * varobj.c (c_value_of_variable): Remove dead code.
8934 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8936 * ada-lex.p (processId): Do not modify already encoded IDs.
8937 Update function documentation.
8939 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8941 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8942 "name" with "struct symbol *name_sym".
8943 * ada-exp.y (write_var_or_type): Update call to
8944 ada_find_renaming_symbol.
8945 "name" with "struct symbol *name_sym". Adjust Implementation
8946 accordingly. Adjust the function documentation.
8948 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8950 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8951 * ada-lang.c (ada_find_any_type): Add advance declaration.
8952 Make static. Replace ada_find_any_symbol by
8953 ada_find_any_type_symbol.
8954 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8955 Improve function description. Make static.
8956 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8957 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8959 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8961 * ada-lang.c (struct tag_args): Delete.
8962 (ada_get_tsd_type): Function body moved up in source file.
8963 (ada_tag_name_1, ada_tag_name_2): Delete.
8964 (ada_get_tsd_from_tag): New function.
8965 (ada_tag_name_from_tsd): New function.
8966 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8967 to determine the tag name.
8969 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8971 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8973 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8976 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8978 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8980 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8982 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8985 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8987 * ada-lang.c (constrained_packed_array_type): If there is a
8988 parallel XA type, use it to determine the array index type.
8990 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8992 * ada-valprint.c (ada_val_print_1): If our value is a reference
8993 to an array descriptor, dereference it before converting it
8996 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8998 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8999 creating fixed value.
9000 (ada_value_ind, ada_coerce_ref, assign_component)
9001 (ada_evaluate_subexp): Remove call to unwrap_value before
9002 call to ada_to_fixed_value.
9004 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9006 * ada-lang.c (to_fixed_array_type): Set result's type name.
9008 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9010 * ada-lang.c (catch_ada_exception_command_split): Add new
9011 argument cond_string. Add support for condition at end of
9012 "catch exception" commands.
9013 (ada_decode_exception_location): Add new argument cond_string.
9014 Update call to catch_ada_exception_command_split.
9015 (create_ada_exception_catchpoint): Add new argument cond_string.
9016 Set the breakpoint condition if needed.
9017 (catch_ada_exception_command): Update call to
9018 ada_decode_exception_location.
9019 (ada_decode_assert_location): Add function documentation.
9020 Add support for condition at end of "catch assert" command.
9021 (catch_assert_command): Update calls to ada_decode_assert_location
9022 and create_ada_exception_catchpoint.
9024 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9026 Fix disp-step-syscall.exp: fork: single step over fork.
9027 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9028 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9029 comment, change parameters gdbarch and ptid to regcache. Remove
9030 parameter regcache, initialize gdbarch from regcache here.
9031 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9033 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9035 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9036 'syscall'. Make the 'int' check more strict.
9038 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9040 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9041 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9042 (i386_linux_intx80_sysenter_syscall_record): ... here.
9043 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9044 Use the renamed function name.
9046 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9048 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9049 * breakpoint.c (until_break_command): Likewise.
9050 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9051 * infcall.c (call_function_by_hand): Likewise.
9052 * infcmd.c (finish_forward): Likewise.
9053 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9055 2012-02-28 Tristan Gingold <gingold@adacore.com>
9057 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9058 avoid variable assignments inside condition.
9060 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9062 Fix static analysis issue found by cppcheck.
9063 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9064 uninitialized BUF for size 2.
9066 2012-02-27 Chris Dearman <chris@mips.com>
9067 Nathan Froyd <froydnj@codesourcery.com>
9068 Maciej W. Rozycki <macro@codesourcery.com>
9070 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9071 (mips16_instruction_has_delay_slot): Likewise.
9072 (mips_segment_boundary): Likewise.
9073 (mips_adjust_breakpoint_address): Likewise.
9074 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9076 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9077 Maciej W. Rozycki <macro@codesourcery.com>
9079 * infrun.c (handle_inferior_event): Don't proceed through
9080 shared library trampolines if stepping at the machine
9083 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9085 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9088 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9090 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9091 (sh_stub_unwind_sniffer): New functions.
9092 (sh_stub_unwind): New variable.
9093 (sh_gdbarch_init): Wire everything.
9095 2012-02-27 Pedro Alves <palves@redhat.com>
9097 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9098 (linux_nat_post_attach_wait): Adjust to use
9099 linux_proc_pid_is_stopped.
9100 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9101 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9102 based on pid_is_stopped from both linux-nat.c and
9103 gdbserver/linux-low.c, and renamed.
9105 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9107 * remote.c (remote_watchpoint_addr_within_range): New function.
9108 (init_remote_ops): Use it.
9110 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9112 * target.h (target_watchpoint_addr_within_range): Document macro.
9114 2012-02-24 Pedro Alves <palves@redhat.com>
9116 * stack.c (set_last_displayed_sal): Issue internal_error instead
9117 of warning, and issue it after clearing the last displayed sal.
9119 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9120 Pedro Alves <palves@redhat.com>
9122 * breakpoint.c (until_break_command): Install breakpoints after
9123 all frame manipulations.
9125 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9127 * remote.c (remote_supports_cond_breakpoints): New forward
9129 (remote_add_target_side_condition): New function.
9130 (remote_insert_breakpoint): Add target-side breakpoint
9131 conditional if supported.
9132 (remote_insert_hw_breakpoint): Likewise.
9133 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9136 * target.c (update_current_target): Inherit
9137 to_supports_evaluation_of_breakpoint_conditions.
9138 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9140 * target.h (struct target_ops)
9141 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9142 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9144 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9145 (condition_evaluation_both, condition_evaluation_auto,
9146 condition_evaluation_host, condition_evaluation_target,
9147 condition_evaluation_enums, condition_evaluation_mode_1,
9148 condition_evaluation_mode): New static globals.
9149 (translate_condition_evaluation_mode): New function.
9150 (breakpoint_condition_evaluation_mode): New function.
9151 (gdb_evaluates_breakpoint_condition_p): New function.
9152 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9153 (mark_breakpoint_modified): New function.
9154 (mark_breakpoint_location_modified): New function.
9155 (set_condition_evaluation_mode): New function.
9156 (show_condition_evaluation_mode): New function.
9157 (bp_location_compare_addrs): New function.
9158 (get_first_location_gte_addr): New helper function.
9159 (set_breakpoint_condition): Free condition bytecode if locations
9160 has become unconditional. Call mark_breakpoint_modified (...).
9161 (condition_command): Call update_global_location_list (1) for
9163 (breakpoint_xfer_memory): Use is_breakpoint (...).
9164 (is_breakpoint): New function.
9165 (parse_cond_to_aexpr): New function.
9166 (build_target_condition_list): New function.
9167 (insert_bp_location): Handle target-side conditional
9168 breakpoints and call build_target_condition_list (...).
9169 (update_inserted_breakpoint_locations): New function.
9170 (insert_breakpoint_locations): Handle target-side conditional
9172 (bpstat_check_breakpoint_conditions): Add comment.
9173 (bp_condition_evaluator): New function.
9174 (bp_location_condition_evaluator): New function.
9175 (print_breakpoint_location): Print information on where the condition
9177 (print_one_breakpoint_location): Likewise.
9178 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9179 breakpoint location.
9180 (force_breakpoint_reinsertion): New functions.
9181 (update_global_location_list): Handle target-side breakpoint
9183 Reinsert locations that are already inserted if conditions have
9185 (bp_location_dtor): Free agent expression bytecode.
9186 (disable_breakpoint): Call mark_breakpoint_modified (...).
9187 Call update_global_location_list (...) with parameter 1 for breakpoints.
9188 (disable_command): Call mark_breakpoint_location_modified (...).
9189 Call update_global_location_list (...) with parameter 1 for breakpoints.
9190 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9191 (enable_command): mark_breakpoint_location_modified (...).
9192 (_initialize_breakpoint): Update documentation and add
9193 condition-evaluation breakpoint subcommand.
9195 * breakpoint.h: Include ax.h.
9196 (condition_list): New data structure.
9197 (condition_status): New enum.
9198 (bp_target_info) <cond_list>: New field.
9199 (bp_location) <condition_changed, cond_bytecode>: New fields.
9200 (is_breakpoint): New prototype.
9202 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9204 * remote.c (remote_state) <cond_breakpoints>: New field.
9205 (PACKET_ConditionalBreakpoints): New enum.
9206 (remote_cond_breakpoint_feature): New function.
9207 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9208 (remote_supports_cond_breakpoints): New function.
9209 (_initialize_remote): Add new packet configuration for
9210 target-side conditional breakpoints.
9212 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9214 * NEWS: Mention target-side conditional breakpoint support,
9215 new condition-evaluation breakpoint subcommand and remote
9218 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9220 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9223 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9225 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9226 (after_prologue): Remove.
9228 2012-02-23 Tom Tromey <tromey@redhat.com>
9230 * jv-valprint.c (java_val_print): Remove dead code.
9232 2012-02-23 Tristan Gingold <gingold@adacore.com>
9234 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9235 known_tasks_element and known_tasks_length fields.
9236 (read_known_tasks_array): Change argument type. Use pointer type
9237 and number of elements from DATA. Adjust.
9238 (read_known_tasks_list): Likewise.
9239 (get_known_tasks_addr): Remove.
9240 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9241 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9242 type and array length. Merge former get_known_tasks_addr code.
9244 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9247 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9248 it after set_momentary_breakpoint.
9250 2012-02-22 Sterling Augustine <saugustine@google.com>
9253 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9255 2012-02-22 Gary Benson <gbenson@redhat.com>
9257 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9258 (find_slot_in_mapped_hash): Likewise.
9260 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9263 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9264 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9265 * configure: Regenerate.
9267 2012-02-21 Tristan Gingold <gingold@adacore.com>
9268 Pedro Alves <palves@redhat.com>
9270 * ia64-tdep.c: Do not include libunwind-ia64.h.
9271 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9272 Include libunwind-ia64.h instead of libunwind.h.
9273 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9274 for libunwind.h existence.
9275 * configure, config.in: Regenerate.
9277 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9279 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9280 instead of value_rtti_target_type.
9281 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9282 instead of value_rtti_target_type.
9283 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9284 value_rtti_target_type.
9285 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9286 (value_rtti_target_type): Rename to ...
9287 (value_rtti_indirect_type): ... here and make it indirect. Update
9289 * value.c (readjust_indirect_value_type): New function.
9290 (coerce_ref): Support for enclosing type setting for references
9291 with readjust_indirect_value_type.
9292 * value.h (readjust_value_type): New declaration.
9293 (value_rtti_target_type): Rename to ...
9294 (value_rtti_indirect_type): ... here.
9296 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9298 * MAINTAINERS (Write After Approval): Add myself to the list.
9300 2012-02-20 Doug Evans <dje@google.com>
9302 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9303 Rename objfile_p_char parameter to objfilep.
9304 (build_objfile_section_table): Result is now void. All callers
9306 * objfiles.h (struct objfile): Tweak comments, whitespace.
9307 (build_objfile_section_table): Update.
9309 * elfread.c (elf_symfile_segments): Fix warning text.
9311 2012-02-20 Tom Tromey <tromey@redhat.com>
9314 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9315 particular set of file names once.
9316 (dw2_map_symbol_filenames): Likewise.
9318 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9321 * main.c (write_files): Remove the declaration.
9322 (external_editor_command): Move the declaration ...
9323 [GDBTK] (external_editor_command): ... here. Fix the comment.
9325 2012-02-20 Tom Tromey <tromey@redhat.com>
9327 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9330 2012-02-20 Tristan Gingold <gingold@adacore.com>
9332 * darwin-nat.h (enum darwin_msg_state): Add comments.
9334 2012-02-20 Tristan Gingold <gingold@adacore.com>
9336 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9339 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9341 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9342 between function description and implementation.
9344 2012-02-17 Tom Tromey <tromey@redhat.com>
9347 * python/py-event.c (event_object_getset): New global.
9348 (event_object_type): Reference it.
9349 * python/py-type.c (field_object_getset): New global.
9350 (field_object_type): Reference it.
9351 * python/python-internal.h (gdb_py_generic_dict): Declare.
9352 * python/py-utils.c (gdb_py_generic_dict): New function.
9354 2012-02-17 Tristan Gingold <gingold@adacore.com>
9356 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9358 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9360 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9361 TYPE_CALLING_CONVENTION annotation.
9363 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9365 * MAINTAINERS: Add rx to target ISA section.
9366 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9367 (ALLDEPFILES): Add rx-tdep.c.
9369 2012-02-16 Tom Tromey <tromey@redhat.com>
9371 * symfile.c (symbol_file_add_main_1): Use inferior's
9373 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9374 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9376 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9378 (follow_exec): Use inferior's symfile_flags.
9379 * inferior.h (struct inferior) <symfile_flags>: New field.
9381 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9384 * remote-sim.c (gdbsim_create_inferior): Call error() when
9385 sim_create_inferior() fails.
9387 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9389 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9391 2012-02-16 Tom Tromey <tromey@redhat.com>
9394 * thread.c (struct current_thread_cleanup) <was_removable>: New
9396 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9397 (make_cleanup_restore_current_thread): Initialize new field.
9399 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9401 * MAINTAINERS: Add rl78 to target ISA section.
9402 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9403 (ALLDEPFILES): Add rl78-tdep.c.
9404 * NEWS: Mention rl78 as a new target.
9406 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9408 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9410 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9412 2012-02-15 Tom Tromey <tromey@redhat.com>
9415 * infcmd.c (registers_info): Print just the current register's
9418 2012-02-15 Tom Tromey <tromey@redhat.com>
9420 * python/py-symbol.c (sympy_value): Use _().
9422 2012-02-15 Pedro Alves <palves@redhat.com>
9424 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9425 output to be like native targets'.
9426 (remote_pid_to_str): Special case the null ptid.
9428 2012-02-14 Stan Shebs <stan@codesourcery.com>
9430 * NEWS: Mention enable count command.
9431 * breakpoint.h (struct breakpoint): New field enable_count.
9432 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9433 (enable_breakpoint): Add arg to call.
9434 (struct disp_data): New struct.
9435 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9436 (do_map_enable_once_breakpoint): Create a struct and pass it.
9437 (do_map_enable_delete_breakpoint): Ditto.
9438 (do_map_enable_count_breakpoint): New function.
9439 (enable_count_command): New function.
9440 (bpstat_stop_status): Decrement enable_count.
9441 (print_one_breakpoint_location): Report enable count.
9442 (_initialize_breakpoint): Add enable count command.
9444 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9446 * rl78-tdep.c (reggroups.h): Include.
9447 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9448 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9449 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9450 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9451 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9452 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9453 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9454 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9455 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9456 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9457 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9458 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9459 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9460 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9461 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9462 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9463 beginning of register list.
9464 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9465 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9466 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9467 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9468 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9469 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9470 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9471 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9472 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9473 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9474 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9475 the pseudo registers. Rearrange other pseudo registers too so
9476 that the bank registers appear at the end.
9477 (rl78_register_type): Account for the fact that the byte sized
9478 bank registers are now pseudo-registers.
9479 (rl78_register_name): Rearrange the register name array. Make
9480 initial set of raw banked registers inaccessible.
9481 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9482 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9483 case for copying bytes back and forth between raw and pseudo
9484 versions of the banked registers. Update other cases to reflect
9486 (rl78_return_value): Update to account for changed names of
9488 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9489 rl78_register_sim_regno().
9491 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9493 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9494 the name parameter being passed to find_pc_partial_function().
9496 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9498 * MAINTAINERS: Step down from being ia64 target maintainer.
9500 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9502 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9503 compilation warning.
9505 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9507 Fix crash on loaded shlibs without loaded exec_bfd.
9508 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9509 (set_section_command): Replace exec_bfd by p->bfd.
9511 2012-02-10 Tom Tromey <tromey@redhat.com>
9513 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9514 when we have a C++ qualified name.
9516 2012-02-10 Pedro Alves <palves@redhat.com>
9518 * inferior.c (inferior_pid_to_str): New.
9519 (print_inferior, inferior_command): Use it.
9521 2012-02-10 Pedro Alves <palves@redhat.com>
9523 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9525 * configure: Regenerate.
9527 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9529 * linespec.c (decode_line_internal): Fix comment correctness.
9531 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9534 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9535 * amd64bsd-nat.c: Add support for debug registers (adapted from
9537 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9538 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9539 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9540 (amd64bsd_dr_get_control): New functions.
9541 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9542 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9543 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9544 watchpoints initialization.
9545 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9547 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9549 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9551 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9553 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9555 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9557 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9559 * language.h (symbol_name_cmp_ftype): Renames
9560 symbol_name_match_p_ftype.
9561 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9562 la_get_symbol_name_match_p.
9563 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9564 ada_get_symbol_name_match_p. Update comment.
9565 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9566 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9567 Renames symbol_name_match_p. Update field type.
9568 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9569 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9570 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9571 "la_get_symbol_name_cmp" in comments.
9572 * language.c: Likewise.
9574 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9576 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9578 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9579 (amd64_sol2_gregset32_reg_offs): Likewise.
9581 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9583 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9584 of the returned BFD is allocated by GDB.
9586 2012-02-07 Tom Tromey <tromey@redhat.com>
9589 * python/python-internal.h (frame_object_type): Declare.
9590 * python/py-symbol.c (sympy_needs_frame): New function.
9591 (sympy_value): New function.
9592 (symbol_object_getset): Add "needs_frame".
9593 (symbol_object_methods): Add "value".
9594 * python/py-frame.c (frame_object_type): No longer static.
9596 2012-02-07 Tom Tromey <tromey@redhat.com>
9599 * python/py-symbol.c (sympy_line): New function.
9600 (symbol_object_getset): Add "line".
9602 2012-02-07 Tom Tromey <tromey@redhat.com>
9604 * charset.c (find_charset_names): Check 'in' against NULL.
9606 2012-02-06 Doug Evans <dje@google.com>
9608 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9609 and fields.name members from char * to const char *. All uses updated.
9610 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9611 from char * to const char *. All uses updated.
9612 (type_name_no_tag): Update.
9613 (lookup_unsigned_typename, lookup_signed_typename): Update.
9614 * gdbtypes.c (type_name_no_tag): Change result type
9615 from char * to const char *. All callers updated.
9616 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9617 name parameter from char * to const char *.
9618 * symtab.h (struct cplus_specific): Change type of demangled_name
9619 member from char * to const char *. All uses updated.
9620 (struct general_symbol_info): Change type of name and
9621 mangled_lang.demangled_name members from char * to const char *.
9623 (symbol_get_demangled_name, symbol_natural_name): Update.
9624 (symbol_demangled_name, symbol_search_name): Update.
9625 * symtab.c (symbol_get_demangled_name): Change result type
9626 from char * to const char *. All callers updated.
9627 (symbol_natural_name, symbol_demangled_name): Ditto.
9628 (symbol_search_name): Ditto.
9629 (completion_list_add_name): Change type of symname,sym_text,
9630 text,word parameters from char * to const char *.
9631 (completion_list_objc_symbol): Change type of sym_text,
9632 text,word parameters from char * to const char *.
9633 * ada-lang.c (find_struct_field): Change type of name parameter
9634 from char * to const char *.
9635 (encoded_ordered_before): Similarly for N0,N1 parameters.
9636 (old_renaming_is_invisible): Similarly for function_name parameter.
9637 (ada_type_name): Change result type from char * to const char *.
9638 All callers updated.
9639 * ada-lang.h (ada_type_name): Update.
9640 * buildsym.c (hashname): Change type of name parameter
9641 from char * to const char *.
9642 * buildsym.h (hashname): Update.
9643 * dbxread.c (end_psymtab): Change type of include_list parameter
9644 from char ** to const char **.
9645 * dwarf2read.c (determine_prefix): Change result type
9646 from char * to const char *. All callers updated.
9647 * f-lang.c (find_common_for_function): Change type of name, funcname
9648 parameters from char * to const char *.
9649 * f-lang.c (find_common_for_function): Update.
9650 * f-valprint.c (list_all_visible_commons): Change type of funcname
9651 parameters from char * to const char *.
9652 * gdbarch.sh (static_transform_name): Change type of name parameter
9653 and result from char * to const char *.
9654 * gdbarch.c: Regenerate.
9655 * gdbarch.h: Regenerate.
9656 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9657 of name parameter from char * to const char *.
9658 * jv-lang.c (java_primitive_type_from_name): Ditto.
9659 (java_demangled_signature_length): Similarly for signature parameter.
9660 (java_demangled_signature_copy): Ditto.
9661 (java_demangle_type_signature): Ditto.
9662 * jv-lang.h (java_primitive_type_from_name): Update.
9663 (java_demangle_type_signature): Update.
9664 * objc-lang.c (specialcmp): Change type of a,b parameters
9665 from char * to const char *.
9666 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9667 from char * to const char *. All callers updated.
9668 * p-lang.h (is_pascal_string_type): Update.
9669 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9670 of name parameter from char * to const char *.
9671 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9672 * utils.c (fprintf_symbol_filtered): Ditto.
9673 * defs.h (fprintf_symbol_filtered): Update.
9674 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9675 * stabsread.h (end_psymtab): Update.
9676 * stack.c (find_frame_funname): Change type of funname parameter
9677 from char ** to const char **.
9678 * stack.h (find_frame_funname): Update.
9679 * typeprint.c (type_print): Change type of varstring parameter
9680 from char * to const char *.
9681 * value.h (type_print): Update.
9682 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9683 from char * to const char *. All callers updated.
9684 (xcoff_end_psymtab): Change type of include_list parameter
9685 from char ** to const char **. All callers updated.
9686 (swap_sym): Similarly for name parameter. All callers updated.
9687 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9689 (process_coff_symbol): Use xstrdup.
9690 * stabsread.c (stabs_method_name_from_physname): Renamed from
9691 update_method_name_from_physname. Change result type from void
9692 to char *. All callers updated.
9693 (read_member_functions): In has_destructor case, store name in objfile
9694 obstack instead of malloc space. In !has_stub case, fix mem leak.
9696 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9698 * configure: Rebuild.
9699 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9702 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9704 * configure.tgt (rl78-*-elf): New target.
9705 * rl78-tdep.c: New file.
9707 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9709 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9710 and continue the loop. Add QUIT statement.
9712 2012-02-03 Tom Tromey <tromey@redhat.com>
9715 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9716 bfd_lookup_symbol_from_symtab.
9717 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9718 gdb_bfd_lookup_symbol_from_symtab.
9720 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9722 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9723 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9724 symbol. Add assertion that sym2 is never NULL.
9726 2012-02-02 Doug Evans <dje@google.com>
9728 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9729 "name" parameter to const char ** from char **. All callers updated.
9730 (find_pc_partial_function): Ditto.
9731 (cache_pc_function_name): Change type to const char * from char *.
9732 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9733 (find_pc_partial_function): Update.
9734 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9735 type of "name" parameter to const char * from char *.
9737 * arch-utils.c (generic_in_solib_return_trampoline): Change
9738 type of "name" parameter to const char * from char *.
9739 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9740 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9741 type of "name" parameter to const char * from char *.
9742 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9743 * gdbarch.c: Regenerate.
9744 * gdbarch.h: Regenerate.
9745 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9746 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9747 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9748 type of "name" parameter to const char * from char *.
9749 * skip.c (skip_function_pc): Ditto.
9750 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9751 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9752 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9753 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9754 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9755 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9756 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9757 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9758 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9760 2012-02-02 Pedro Alves <palves@redhat.com>
9762 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9763 the current inferior has no execution. Make sure the current
9764 remote process matches gdb's current inferior.
9766 2012-02-02 Tom Tromey <tromey@redhat.com>
9769 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9772 2012-02-02 Tom Tromey <tromey@redhat.com>
9775 * symtab.c (lookup_language_this): Set block_found.
9777 2012-02-01 Tom Tromey <tromey@redhat.com>
9780 * jit.c (struct jit_inferior_data): Rewrite.
9781 (struct jit_objfile_data): New.
9782 (get_jit_objfile_data): New function.
9783 (add_objfile_entry): Update.
9784 (jit_read_descriptor): Return int. Replace descriptor_addr
9785 argument with inf_data. Update. Don't call error.
9786 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9788 (jit_inferior_init): Don't look up descriptor. Don't call error.
9789 (jit_reset_inferior_data_and_breakpoints)
9790 (jit_inferior_created_observer): Remove.
9791 (jit_inferior_exit_hook): Update.
9792 (jit_executable_changed_observer): Remove.
9793 (jit_event_handler): Update.
9794 (free_objfile_data): Reset inferior data if needed.
9795 (_initialize_jit): Update.
9797 2012-02-01 Tom Tromey <tromey@redhat.com>
9799 * jit.c (bfd_open_from_target_memory): Move higher in file.
9801 2012-02-01 Tristan Gingold <gingold@adacore.com>
9803 * libunwind-frame.c (libunwind_load): Display message if dlopen
9806 2012-02-01 Gary Benson <gbenson@redhat.com>
9808 * symtab.h (symbol_found_callback_ftype): New typedef.
9809 (iterate_over_symbols): Use the above.
9810 * symtab.c (iterate_over_symbols): Likewise.
9811 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9812 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9813 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9814 (iterate_name_matcher): Document return values.
9815 (collect_one_symbol): Likewise.
9816 (collect_function_symbols): Likewise.
9817 (collect_symbols): Likewise.
9819 2012-02-01 Tom Tromey <tromey@redhat.com>
9821 * ada-lang.c (resolve_subexp): Update.
9822 (ada_lookup_symbol_list): Add 'full_search' argument.
9823 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9824 ada_lookup_symbol_list.
9825 (ada_lookup_encoded_symbol): Update.
9826 (get_var_value): Update.
9827 * ada-exp.y (block_lookup): Update.
9828 (write_var_or_type): Update.
9829 (write_name_assoc): Update.
9830 * ada-lang.h (ada_lookup_symbol_list): Update.
9832 2012-01-31 Tom Tromey <tromey@redhat.com>
9834 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9837 2012-01-31 Doug Evans <dje@google.com>
9839 * symtab.h: Remove outdated comment.
9840 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9842 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9844 Fix build error in Darwin port.
9845 * i386-darwin-nat.c: Include i386-nat.h.
9847 2012-01-30 Tom Tromey <tromey@redhat.com>
9849 PR breakpoints/13568:
9850 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9851 argument. Check for recursive includes.
9852 (dwarf_decode_macros): Create an include hash.
9854 2012-01-30 Michael Eager <eager@eagercon.com>
9856 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9857 * ppc-linux-tdep.c: Include glibc-tdep.h.
9858 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9859 (powerpc_linux_in_plt_stub): New function.
9860 (powerpc_linux_in_dynsym_resolve_code): New function.
9861 (ppc_skip_trampoline_code): New function.
9862 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9863 Use glibc_skip_solib_resolver.
9865 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9867 Code cleanup: Make 1440 bytes of data segment read-only.
9868 * arch-utils.c (endian_enum): Make it const char *const [].
9869 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9871 * breakpoint.c (always_inserted_enums): Likewise.
9872 * cli/cli-cmds.c (script_ext_enums): Likewise.
9873 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9874 enumlist parameter const char *const *.
9875 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9876 const char *const *.
9877 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9878 parameter const char *const *.
9879 * cris-tdep.c (cris_modes): Make it const char *const [].
9880 * filesystem.c (target_file_system_kinds): Likewise.
9881 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9882 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9883 (can_use_displaced_stepping_enum, scheduler_enums)
9884 (exec_direction_names): Likewise.
9885 * language.c (_initialize_language): Make the type_or_range_names and
9886 case_sensitive_names variables const char *const [].
9887 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9888 * python/python.c (python_excp_enums): Likewise.
9889 * remote.c (interrupt_sequence_modes): Likewise.
9890 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9891 * serial.c (logbase_enums): Likewise.
9892 * sh-tdep.c (sh_cc_enum): Likewise.
9893 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9895 * symtab.c (multiple_symbols_modes): Likewise.
9896 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9898 * utils.c (internal_problem_modes): Likewise.
9900 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9902 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9903 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9906 2012-01-27 Doug Evans <dje@google.com>
9908 * configure.ac (with_python): Fix absolute path handling for win32.
9909 * configure: Regenerate.
9911 2012-01-26 Doug Evans <dje@google.com>
9913 * symtab.c: Whitespace cleanup, no code changes.
9915 * symtab.c (lookup_symbol_in_language): Improve comment.
9916 (lookup_symbol_aux): Fix comment.
9918 * psymtab.c (add_psymbol_to_list): Result is now "void".
9919 * psympriv.h (add_psymbol_to_list): Update.
9921 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9923 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9925 Do not open script filenames twice.
9926 * cli/cli-cmds.c (source_script_from_stream): Pass to
9927 source_python_script also STREAM.
9928 * python/py-auto-load.c (source_section_scripts): Pass to
9929 source_python_script_for_objfile also STREAM.
9930 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9932 * python/python-internal.h (source_python_script_for_objfile): New
9933 parameter file, rename parameter file to filename.
9934 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9935 instead if !_WIN32. Update the function comment.
9936 (source_python_script, source_python_script_for_objfile)
9937 (source_python_script): New parameter file, rename parameter file to
9938 filename. Pass FILENAME to python_run_simple_file.
9939 * python/python.h (source_python_script): New parameter file, rename
9940 parameter file to filename.
9942 2012-01-26 Pedro Alves <palves@redhat.com>
9944 * corelow.c (core_has_fake_pid): Delete.
9945 (core_close): Delete references to `core_has_fake_pid'.
9946 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9947 (core_open): Delete references to `core_has_fake_pid'.
9948 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9951 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9953 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9954 Remove language parameter from name_matcher. Adjust the comment.
9955 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9956 Remove language parameter.
9957 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9958 * linespec.c (iterate_name_matcher): Likewise.
9959 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9960 name_matcher. Adjust call accordingly.
9961 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9962 (maintenance_check_symtabs): Adjust type of parameter "fun".
9963 * psymtab.h (maintenance_check_symtabs): Likewise.
9965 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9967 * language.h (symbol_name_match_p_ftype): New typedef.
9968 (struct language_defn): Replace field la_symbol_name_compare
9969 by la_get_symbol_name_match_p.
9970 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9971 (ada_language_defn): Use it.
9972 * linespec.c (struct symbol_matcher_data): New type.
9973 (iterate_name_matcher): Rewrite.
9974 (iterate_over_all_matching_symtabs): Pass a pointer to
9975 a symbol_matcher_data struct to expand_symtabs_matching
9976 instead of just the lookup name.
9977 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9978 opencl-lang.c, p-lang.c, language.c: Delete field
9979 la_symbol_name_compare, and replace by NULL for new field
9980 la_get_symbol_name_match_p.
9981 * symfile.h (struct quick_symbol_functions): Update comment.
9983 2012-01-25 Tom Tromey <tromey@redhat.com>
9985 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9988 2012-01-24 Tom Tromey <tromey@redhat.com>
9991 * solib.c (update_solib_list): Update the program space's
9992 added_solibs and deleted_solibs fields.
9993 * progspace.h (struct program_space) <added_solibs,
9994 deleted_solibs>: New fields.
9995 (clear_program_space_solib_cache): Declare.
9996 * progspace.c (release_program_space): Call
9997 clear_program_space_solib_cache.
9998 (clear_program_space_solib_cache): New function.
9999 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10000 bpstat_stop_status. Use handle_solib_event.
10001 * breakpoint.c: Include gdb_regex.h.
10002 (print_solib_event): New function.
10003 (bpstat_print): Use print_solib_event.
10004 (bpstat_stop_status): Add special case for bp_shlib_event.
10005 (handle_solib_event): New function.
10006 (bpstat_what): Use handle_solib_event.
10007 (struct solib_catchpoint): New.
10008 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10009 (breakpoint_hit_catch_solib, check_status_catch_solib)
10010 (print_it_catch_solib, print_one_catch_solib)
10011 (print_mention_catch_solib, print_recreate_catch_solib): New
10013 (catch_solib_breakpoint_ops): New global.
10014 (catch_load_or_unload, catch_load_command_1)
10015 (catch_unload_command_1): New functions.
10016 (internal_bkpt_check_status): Add special case for
10018 (internal_bkpt_print_it): Use print_solib_event.
10019 (initialize_breakpoint_ops): Initialize
10020 catch_solib_breakpoint_ops.
10021 (_initialize_breakpoint): Register "catch load" and "catch
10023 * breakpoint.h (handle_solib_event): Declare.
10024 * NEWS: Add entry for "catch load" and "catch unload".
10026 2012-01-24 Tom Tromey <tromey@redhat.com>
10028 * ada-lang.c: Include gdb_vecs.h.
10029 * charset.c: Include gdb_vecs.h.
10030 * tracepoint.h: Include gdb_vecs.h.
10031 * gdb_vecs.h: New file.
10033 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10035 * breakpoint.c (breakpoint_hit_catch_fork)
10036 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10037 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10038 * infrun.c (inferior_has_forked, inferior_has_vforked)
10039 (inferior_has_execd, inferior_has_called_syscall): Delete.
10040 (handle_syscall_event): Get syscall_number from the execution
10041 control state's wait status.
10042 (wait_for_inferior): Don't clear syscall_number.
10044 2012-01-24 Pedro Alves <palves@redhat.com>
10046 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10047 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10048 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10049 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10051 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10052 false for events other than TARGET_SIGNAL_TRAP.
10053 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10054 Add `ws' parameter.
10055 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10056 events other than TARGET_SIGNAL_TRAP.
10057 (tracepoint_breakpoint_hit): Add `ws' parameter.
10058 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10060 (bpstat_stop_status): Same.
10061 (pc_at_non_inline_function): Same.
10062 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10063 to pass the current event's waitstatus to bpstat_stop_status
10064 and pc_at_non_inline_function.
10066 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10069 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10070 Update the function comment for it.
10071 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10072 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10075 2012-01-24 Pedro Alves <palves@redhat.com>
10077 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10078 outside `bs->stop' block.
10079 (bpstat_what): Rework bp_shlib_event handling.
10080 (internal_bkpt_check_status): If the breakpoint is a
10081 bp_shlib_event, then set bs->stop and bs->print if
10082 stop_on_solib_events is set.
10084 2012-01-24 Gary Benson <gbenson@redhat.com>
10086 Delete #if 0'd out code.
10087 * stack.c (print_frame_label_vars): Remove.
10088 (catch_info): Likewise.
10089 (_initialize_stack): Remove "info catch" command.
10090 * NEWS: Mention the above.
10092 2012-01-24 Pedro Alves <palves@redhat.com>
10094 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10096 (remote_notice_new_inferior): If the remote end doesn't support
10097 the multiprocess extensions, then the PID is fake.
10098 (add_current_inferior_and_thread): New.
10099 (remote_start_remote): Use it.
10100 (extended_remote_attach_1): Adjust.
10101 (extended_remote_create_inferior_1): Use
10102 add_current_inferior_and_thread.
10104 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10106 Fix watchpoints to be specific for each inferior.
10107 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10108 current_program_space.
10109 * i386-nat.c (i386_inferior_data_cleanup): New.
10110 (i386_inferior_data_get): Replace variable inf_data_local by an
10111 inferior_data call.
10112 (i386_use_watchpoints): Initialize i386_inferior_data.
10113 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10114 specific iterate_over_lwps.
10116 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10118 Fix watchpoints across inferior fork.
10119 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10120 comment for linux_nat_iterate_watchpoint_lwps.
10121 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10122 linux_nat_iterate_watchpoint_lwps.
10123 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10124 * i386-linux-nat.c (update_debug_registers_callback): Update the
10125 comment for linux_nat_iterate_watchpoint_lwps.
10126 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10127 linux_nat_iterate_watchpoint_lwps.
10128 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10129 * i386-nat.c: Include inferior.h.
10130 (dr_mirror): Remove.
10131 (i386_inferior_data, struct i386_inferior_data)
10132 (i386_inferior_data_get): New.
10133 (i386_debug_reg_state): Use i386_inferior_data_get.
10134 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10135 (i386_insert_watchpoint, i386_remove_watchpoint)
10136 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10137 (i386_remove_hw_breakpoint): New variable state, use
10138 i386_debug_reg_state instead of DR_MIRROR.
10139 * linux-nat.c (delete_lwp): New declaration.
10140 (num_lwps): Move here from downwards.
10141 (delete_lwp_cleanup): New.
10142 (linux_child_follow_fork): Create new child_lp, call
10143 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10145 (num_lwps): Move upwards.
10146 (linux_nat_iterate_watchpoint_lwps): New.
10147 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10148 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10150 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10154 2012-01-23 Pedro Alves <palves@redhat.com>
10156 * top.c (caution): Rename to ...
10157 (confirm): ... this.
10158 (show_caution): Rename to ...
10159 (show_confirm): ... this.
10160 (quit_cover): Adjust.
10161 (init_main): Adjust.
10162 * top.h (caution): Rename to ...
10163 (confirm): ... this.
10164 * utils.c (internal_vproblem, defaulted_query): Adjust.
10166 2012-01-23 Pedro Alves <palves@redhat.com>
10168 * top.c (caution): Update comment.
10169 (execute_command): Don't consider the current value of `caution'.
10171 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10173 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10175 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10177 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10178 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10179 * target.c (target_fileio_pwrite): Remove buffer address from
10181 (target_fileio_pread): Likewise.
10183 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10185 * NEWS: Document remote "info proc" and "generate-core-file".
10187 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10189 * gdbarch.sh (find_memory_regions): New callback.
10190 * gdbarch.c, gdbarch.h: Regenerate.
10192 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10193 callback before falling back to target method.
10195 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10196 (linux_target_install_ops): No longer install it.
10198 * linux-tdep.c (linux_find_memory_regions): New function.
10199 (linux_init_abi): Install it.
10201 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10203 * gdbarch.sh (make_corefile_notes): New architecture callback.
10204 * gdbarch.c: Regenerate.
10205 * gdbarch.h: Likewise.
10207 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10208 before target_make_corefile_notes. If NULL is returned, the
10209 target does not support core file generation.
10211 * linux-nat.c: Include "linux-tdep.h".
10212 (find_signalled_thread, find_stop_signal): Remove.
10213 (linux_nat_do_thread_registers): Likewise.
10214 (struct linux_nat_corefile_thread_data): Likewise.
10215 (linux_nat_corefile_thread_callback): Likewise.
10216 (iterate_over_spus): Likewise.
10217 (struct linux_spu_corefile_data): Likewise.
10218 (linux_spu_corefile_callback): Likewise.
10219 (linux_spu_make_corefile_notes): Likewise.
10220 (linux_nat_collect_thread_registers): New function.
10221 (linux_nat_make_corefile_notes): Replace contents by call to
10222 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10223 as native-only callback.
10225 * linux-tdep.h: Include "bfd.h".
10226 (struct regcache): Add forward declaration.
10227 (linux_collect_thread_registers_ftype): New typedef.
10228 (linux_make_corefile_notes): Add prototype.
10229 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10230 "regset.h", and "elf-bfd.h".
10231 (find_signalled_thread, find_stop_signal): New functions.
10232 (linux_spu_make_corefile_notes): Likewise.
10233 (linux_collect_thread_registers): Likewise.
10234 (struct linux_corefile_thread_data): New data structure.
10235 (linux_corefile_thread_callback): New funcion.
10236 (linux_make_corefile_notes): Likewise.
10237 (linux_make_corefile_notes_1): Likewise.
10238 (linux_init_abi): Install it.
10240 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10242 * gdbarch.sh (info_proc): New callback.
10243 * gdbarch.c, gdbarch.h: Regenerate.
10245 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10246 before falling back to the target info_proc callback.
10248 * linux-nat.c: Do not include "cli/cli-utils.h".
10249 (linux_nat_info_proc): Remove.
10250 (linux_target_install_ops): No longer install it.
10252 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10253 (read_mapping): New function.
10254 (linux_info_proc): Likewise.
10255 (linux_init_abi): Install it.
10257 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10259 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10260 * infcmd.c: (info_proc_cmd_1): New function.
10261 (info_proc_cmd): New function, moved here from equivalent routine
10262 orignally in linux-nat.c.
10263 (info_proc_cmd_mappings): Likewise.
10264 (info_proc_cmd_stat): Likewise.
10265 (info_proc_cmd_status): Likewise.
10266 (info_proc_cmd_cwd): Likewise.
10267 (info_proc_cmd_cmdline): Likewise.
10268 (info_proc_cmd_exe): Likewise.
10269 (info_proc_cmd_all): Likewise.
10270 (_initialize_infcmd): Install "info proc" command and subcommands.
10272 * target.h (struct target_ops): Add to_info_proc.
10273 (target_info_proc): Add prototype.
10274 * target.c (target_info_proc): New function.
10276 * procfs.c (procfs_info_proc): Add prototype.
10277 (info_proc_cmd): Rename into ...
10278 (procfs_info_proc): ... this. Update argument types as appropriate
10279 for a to_info_proc implementation. Handle "what" argument.
10280 (procfs_target): Install procfs_info_proc.
10281 (_initialize_procfs): No longer install "info proc" command.
10283 * linux-nat.c: (enum info_proc_what): Remove.
10284 (linux_nat_info_proc_cmd_1): Rename into ...
10285 (linux_nat_info_proc): ... this. Update argument types as appropriate
10286 for a to_info_proc implementation.
10287 (linux_nat_info_proc_cmd): Remove.
10288 (linux_nat_info_proc_cmd_mappings): Likewise.
10289 (linux_nat_info_proc_cmd_stat): Likewise.
10290 (linux_nat_info_proc_cmd_status): Likewise.
10291 (linux_nat_info_proc_cmd_cwd): Likewise.
10292 (linux_nat_info_proc_cmd_cmdline): Likewise.
10293 (linux_nat_info_proc_cmd_exe): Likewise.
10294 (linux_nat_info_proc_cmd_all): Likewise.
10295 (linux_target_install_ops): Install linux_nat_info_proc.
10296 (_initialize_linux_nat): No longer install "info proc" command
10299 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10301 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10302 * config.in, configure: Regenerate.
10304 * target.h (struct target_ops): Add to_fileio_readlink.
10305 (target_fileio_readlink): Add prototype.
10306 * target.c (target_fileio_readlink): New function.
10308 * inf-child.c: Conditionally include <sys/param.h>.
10309 (inf_child_fileio_readlink): New function.
10310 (inf_child_target): Install it.
10312 * remote.c (PACKET_vFile_readlink): New enum value.
10313 (remote_hostio_readlink): New function.
10314 (init_remote_ops): Install it.
10315 (_initialize_remote): Handle vFile:readlink packet type.
10317 2012-01-20 Pedro Alves <palves@redhat.com>
10318 Ulrich Weigand <ulrich.weigand@linaro.org>
10320 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10321 * config.in, configure: Regenerate.
10323 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10324 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10325 (target_fileio_open): Add prototype.
10326 (target_fileio_pwrite): Likewise.
10327 (target_fileio_pread): Likewise.
10328 (target_fileio_close): Likewise.
10329 (target_fileio_unlink): Likewise.
10330 (target_fileio_read_alloc): Likewise.
10331 (target_fileio_read_stralloc): Likewise.
10333 * target.c: Include "gdb/fileio.h".
10334 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10335 (default_fileio_target): New function.
10336 (target_fileio_open): Likewise.
10337 (target_fileio_pwrite): Likewise.
10338 (target_fileio_pread): Likewise.
10339 (target_fileio_close): Likewise.
10340 (target_fileio_unlink): Likewise.
10341 (target_fileio_close_cleanup): Likewise.
10342 (target_fileio_read_alloc_1): Likewise.
10343 (target_fileio_read_alloc): Likewise.
10344 (target_fileio_read_stralloc): Likewise.
10346 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10347 <fcntl.h>, and <unistd.h>.
10348 (inf_child_fileio_open_flags_to_host): New function.
10349 (inf_child_errno_to_fileio_error): Likewise.
10350 (inf_child_fileio_open): Likewise.
10351 (inf_child_fileio_pwrite): Likewise.
10352 (inf_child_fileio_pread): Likewise.
10353 (inf_child_fileio_close): Likewise.
10354 (inf_child_fileio_unlink): Likewise.
10355 (inf_child_target): Install to_fileio routines.
10357 * remote.c (init_remote_ops): Install to_fileio routines.
10359 2012-01-20 Pedro Alves <palves@redhat.com>
10360 Ulrich Weigand <ulrich.weigand@linaro.org>
10362 * remote.c (remote_multi_process_p): Only check for multi-process
10363 protocol feature, do not check for extended protocol.
10364 (remote_supports_multi_process): Check for extended protocol here.
10365 (set_general_process): Likewise.
10366 (extended_remote_kill): Likewise.
10367 (remote_pid_to_str): Likewise.
10368 (remote_query_supported): Always query multiprocess mode.
10370 2012-01-20 Pedro Alves <palves@redhat.com>
10371 Ulrich Weigand <ulrich.weigand@linaro.org>
10373 * inferior.h (struct inferior): Add fake_pid_p.
10374 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10375 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10376 magic_null_ptid since the remote side doesn't provide a real PID.
10378 2012-01-19 Tom Tromey <tromey@redhat.com>
10380 * NEWS: Combine the two Python sections.
10382 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10384 * target.h (target_close): Update comment on the target's unpush state.
10386 2012-01-19 Pedro Alves <palves@redhat.com>
10388 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10389 linux_nat_async directly instead of going through the target
10391 * target.c (unpush_target): Close target after unpushing it, not
10394 2012-01-19 Gary Benson <gbenson@redhat.com>
10396 * mdebugread.c (sort_blocks): Replace integer constants with ones
10397 derived from FIRST_LOCAL_BLOCK.
10399 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10400 Jan Kratochvil <jan.kratochvil@redhat.com>
10403 * symfile.c (find_separate_debug_file): New function.
10404 (terminate_after_last_dir_separator): Likewise.
10405 (find_separate_debug_file_by_debuglink): Also try realpath.
10406 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10407 * configure: Regenerate.
10408 * config.in: Regenerate.
10410 2012-01-18 Doug Evans <dje@google.com>
10412 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10413 (main.o): Remove rule.
10414 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10415 (--with-sysroot): Rewrite.
10416 * configure: Regenerate.
10417 * config.in: Regenerate.
10419 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10421 * parse.c (initialize_expout): New function.
10422 (reallocate_expout): Likewise.
10423 (parse_exp_in_context): Use `initialize_expout' and
10424 `reallocate_expout' when appropriate.
10426 2012-01-18 Pedro Alves <palves@redhat.com>
10428 * record.c (struct record_breakpoint, record_breakpoint_p)
10429 (record_breakpoints): New.
10430 (record_insert_breakpoint, record_remove_breakpoint): Manage
10431 record breakpoints list. Only remove breakpoints from the
10432 inferior if they had been inserted there in the first place.
10434 2012-01-17 Doug Evans <dje@google.com>
10436 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10437 if we know we don't have a file name to look for.
10439 2012-01-17 Pedro Alves <palves@redhat.com>
10441 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10442 the frame's stop reason is UNWIND_UNAVAILABLE.
10444 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10446 Fix compilation error.
10447 * m2-exp.y (yyerror): Use ANSI C prototype.
10449 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10451 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10452 (growbuf_by_size): Likewise.
10453 (yyerror): Likewise.
10454 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10455 (modblock): Remove variable (was #if 0'ed).
10456 (parse_number): Convert prototype from K&R to ANSI C.
10457 (yyerror): Likewise.
10458 * objc-exp.y (parse_number): Likewise.
10459 (yyerror): Likewise.
10460 (yylex): Remove #if 0'ed code.
10461 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10462 (yyerror): Likewise.
10464 2012-01-16 Tom Tromey <tromey@redhat.com>
10467 * symtab.h (compare_filenames_for_search): Declare.
10468 * symtab.c (compare_filenames_for_search): New function.
10469 (iterate_over_some_symtabs): Use it.
10470 * symfile.h (struct quick_symbol_functions)
10471 <map_symtabs_matching_filename>: Change spec.
10472 * psymtab.c (partial_map_symtabs_matching_filename): Use
10473 compare_filenames_for_search. Update for new spec.
10474 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10475 compare_filenames_for_search. Update for new spec.
10476 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10478 2012-01-16 Tom Tromey <tromey@redhat.com>
10481 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10482 (struct main_type) <flag_flag_enum>: New field.
10483 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10484 * NEWS: Add entries.
10485 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10487 * python/lib/gdb/printing.py (_EnumInstance): New class.
10488 (FlagEnumerationPrinter): Likewise.
10490 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10492 * breakpoint.c (create_sals_from_address_default): New function.
10493 (create_breakpoints_sal_default): Likewise.
10494 (decode_linespec_default): Likewise.
10495 (is_marker_spec): Removed.
10496 (strace_marker_p): New function.
10497 (init_breakpoint_sal): Using `strace_marker_p' instead of
10499 (create_breakpoint): Call method `create_sals_from_address' from
10500 breakpoint_ops, replacing code that created SALs conditionally
10501 on the type of the breakpoint. Call method `create_breakpoints_sal',
10502 replacing code that created breakpoints conditionally on the type
10504 (base_breakpoint_create_sals_from_address): New function.
10505 (base_breakpoint_create_breakpoints_sal): Likewise.
10506 (base_breakpoint_decode_linespec): Likewise.
10507 (base_breakpoint_ops): Add methods
10508 `base_breakpoint_create_sals_from_address',
10509 `base_breakpoint_create_breakpoints_sal' and
10510 `base_breakpoint_decode_linespec'.
10511 (bkpt_create_sals_from_address): New function.
10512 (bkpt_create_breakpoints_sal): Likewise.
10513 (bkpt_decode_linespec): Likewise.
10514 (tracepoint_create_sals_from_address): Likewise.
10515 (tracepoint_create_breakpoints_sal): Likewise.
10516 (tracepoint_decode_linespec): Likewise.
10517 (strace_marker_create_sals_from_address): Likewise.
10518 (strace_marker_create_breakpoints_sal): Likewise.
10519 (strace_marker_decode_linespec): Likewise.
10520 (strace_marker_breakpoint_ops): New variable.
10521 (addr_string_to_sals): Remove `marker_spec'. Call method
10522 `decode_linespec' from breakpoint_ops, replacing code that decoded
10523 an address string into a SAL. Use `strace_marker_p' instead of
10525 (strace_command): Decide whether we are dealing with a static
10526 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10527 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10528 * breakpoint.h (linespec_result, linespec_sals): New forward
10530 (breakpoint_ops) <create_sals_from_address>,
10531 <create_breakpoints_sal>, <decode_linespec>: New methods.
10533 2012-01-14 Doug Evans <dje@google.com>
10535 * NEWS: Update text for "maint set python print-stack".
10536 It is deprecated in gdb 7.4 and deleted in 7.5.
10538 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10540 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10541 including curses.h.
10543 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10545 * configure: Regenerate.
10546 * config.in: Regenerate.
10548 2012-01-12 Keith Seitz <keiths@redhat.com>
10551 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10552 (ANONYMOUS_UNION_NAME): Define.
10553 (is_path_expr_parent): New function.
10554 (get_path_expr_parent): New function.
10555 (is_anonymous_child): New function.
10556 (create_child_with_value): If the child is anonymous and without
10557 a name, assign an object name to it.
10558 (c_describe_child): Use get_path_expr_parent to determine
10559 the parent expression.
10560 If there field represents an anonymous struct or union and
10561 has no name, set an appropriate display name and expression.
10562 (cplus_describe_child): Likewise.
10564 2012-01-12 Pedro Alves <palves@redhat.com>
10566 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10567 available when %ebp is found to be zero (outermost).
10569 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10571 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10572 an internal gdb_static_assert.
10573 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10575 2012-01-11 Tom Tromey <tromey@redhat.com>
10578 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10579 catch" and "catch throw".
10581 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10583 * blockframe.c (block_innermost_frame): Start search from selected
10584 frame, if present, or otherwise the current frame.
10586 * c-exp.y (variable): Update innermost_block for
10587 'block COLONCOLON NAME' clause.
10588 * m2-exp.y (variable): Ditto.
10589 * objc-exp.y (variable): Ditto.
10591 2012-01-10 Tom Tromey <tromey@redhat.com>
10594 * python/python.c (finish_python_initialization): Set sys.argv.
10596 2012-01-10 Doug Evans <dje@google.com>
10598 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10599 "want_line_info". All callers updated.
10600 (dwarf_decode_lines_1): New function.
10601 (handle_DW_AT_stmt_list): Add function comment.
10602 New arg "want_line_info". All callers updated.
10603 (read_file_scope,read_type_unit_scope): Move comment from
10604 handle_DW_AT_stmt_list to here.
10606 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10608 Fix regression after libiberty/ update for GCC PR 6057 and others.
10609 * c-exp.y (operator) <OPERATOR DELETE>
10610 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10611 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10612 (make_builtin_type, make_name): New variable i, add gdb_assert.
10613 (operator) <OPERATOR NEW>: Update ARGS to 3.
10614 (operator) <OPERATOR DELETE>: Add trailing space.
10615 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10616 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10617 * cp-support.c (cp_canonicalize_string): Check NULL from
10618 cp_comp_to_string, call warning and return.
10620 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10622 Fix duplicate .o files after omitting libbfd.a.
10623 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10624 (SFILES): Add corelow.c.
10625 (COMMON_OBS): Add corelow.o.
10626 (ALLDEPFILES): Remove corelow.c.
10627 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10628 * config/alpha/alpha-osf3.mh: Likewise.
10629 * config/alpha/fbsd.mh: Likewise.
10630 * config/arm/nbsdaout.mh: Likewise.
10631 * config/arm/nbsdelf.mh: Likewise.
10632 * config/i386/i386gnu.mh: Likewise.
10633 * config/ia64/hpux.mh: Likewise.
10634 * config/ia64/linux.mh: Likewise.
10635 * config/m32r/linux.mh: Likewise.
10636 * config/m68k/linux.mh: Likewise.
10637 * config/mips/irix5.mh: Likewise.
10638 * config/mips/irix6.mh: Likewise.
10639 * config/pa/hpux.mh: Likewise.
10640 * config/pa/linux.mh: Likewise.
10641 * config/powerpc/aix.mh: Likewise.
10642 * config/sparc/linux.mh: Likewise.
10643 * config/sparc/linux64.mh: Likewise.
10644 * config/sparc/sol2.mh: Likewise.
10645 * config/vax/vax.mh: Likewise.
10646 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10647 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10648 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10649 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10650 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10651 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10652 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10653 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10654 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10655 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10656 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10657 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10658 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10659 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10660 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10661 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10662 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10663 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10664 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10665 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10666 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10667 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10668 corelow.o from gdb_target_obs.
10669 * corefile.c (core_target): Update the comment on NULL value.
10670 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10671 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10672 MATCHES. Drop YUMMY set on NULL.
10673 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10674 reclaim CORE_DATA if it is already NULL.
10676 2012-01-09 Doug Evans <dje@google.com>
10678 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10679 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10681 2012-01-09 Keith Seitz <keiths@redhat.com>
10683 * breakpoint.c (wrapper.h): Don't include.
10685 2012-01-09 Keith Seitz <keiths@redhat.com>
10687 * Makefile.in (SFILES): Remove wrapper.c.
10688 (HFILES_NO_SRCDIR): Remove wrapper.h.
10689 (COMMON_OBS): Remove wrapper.o.
10690 * cli/cli-interp.c: Don't inlude wrapper.h.
10691 * corelow.c: Likewise.
10692 (core_open): Replace gdb_target_find_new_threads with
10693 TRY_CATCH around target_find_new_threads.
10694 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10695 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10696 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10697 evaluate_expression.
10698 (varobj_set_value): Likewise for evaluate_expression and
10700 (install_new_variable): Likewise for value_fetch_lazy.
10701 (adjust_value_for_child_access): Likewise for value_ind.
10702 (c_describe_child): Likewise for value_subscript and
10704 (c_value_of_root): Likewise for evaluate_expression.
10705 * wrapper.c: Remove.
10706 * wrapper.h: Remove.
10708 2012-01-09 Doug Evans <dje@google.com>
10710 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10711 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10712 "abfd" args with "section". All callers updated.
10713 Error checking code moved ...
10714 (error_check_comp_unit_head): ... here. New function.
10715 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10716 Delete arg "abfd". New arg "type_offset". All callers updated.
10717 (create_debug_types_hash_table): Simplify by using
10718 read_and_check_type_unit_head.
10720 * parser-defs.h (namecopy): Delete.
10721 * parse.c (namecopy, namecopy_size): Move into copy_name.
10723 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10725 Partially fix duplicate .o files after omitting libbfd.a.
10726 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10727 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10728 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10729 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10730 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10731 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10732 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10734 2012-01-09 Pedro Alves <palves@redhat.com>
10736 * MAINTAINERS: Update my email address.
10738 2012-01-08 Doug Evans <dje@google.com>
10740 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10741 n_type_units. Rename type_comp_units to all_type_units.
10743 (add_signatured_type_cu_to_table): Renamed from
10744 add_signatured_type_cu_to_list. All callers updated.
10746 * gdbtypes.h (struct cplus_struct_type): Delete member
10747 nfn_fields_total. All uses removed.
10749 2012-01-06 Doug Evans <dje@google.com>
10751 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10753 (dwarf2_find_comp_unit): Delete.
10754 (process_psymtab_comp_unit): Make result "void".
10755 Delete args buffer, info_ptr, buffer_size, and replace with
10756 "section". All callers updated.
10757 (dwarf2_build_psymtabs_hard): Simplify.
10759 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10760 Thiago Jung Bauermann <bauerman@br.ibm.com>
10762 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10763 before `struct gdb_exception'.
10764 * breakpoint.c (update_global_location_list_nothrow)
10765 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10766 * cp-abi.c (value_rtti_type): Likewise.
10767 * cp-support.c (cp_validate_operator): Likewise.
10768 * infrun.c (insert_exception_resume_breakpoint)
10769 (check_exception_resume, keep_going): Likewise.
10770 * mi-interp.c (mi_breakpoint_created)
10771 (mi_breakpoint_modified): Likewise.
10772 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10773 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10774 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10776 2012-01-05 Doug Evans <dje@google.com>
10778 * dwarf2read.c (statement_prologue): Delete, unused.
10780 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10781 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10783 * dwarf2read.c (comp_unit_header): Delete, unused.
10785 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10787 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10788 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10790 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10792 * infrun.c (normal_stop): Don't skip calling the normal_stop
10793 observers if the thread was doing a multi-step, but stopped for
10794 some reason other than stepping.
10796 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10798 * cli/cli-decode.h: Add comments.
10799 (CMD_LIST_AMBIGUOUS): Moved to command.h
10800 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10801 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10802 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10803 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10804 (add_com, add_com_alias, add_info, add_info_alias)
10805 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10807 * command.h: Add and adjust comments.
10808 (CMD_LIST_AMBIGUOUS): Moved here.
10809 (help_cmd, help_cmd_list): Delete declarations.
10811 2012-01-04 Doug Evans <dje@google.com>
10813 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10814 All callers updated.
10815 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10816 Replace all arguments with "per_cu". All callers updated.
10818 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10820 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10821 New arg "per_cu". All callers updated.
10823 Delete #if 0'd out code.
10824 * language.c (binop_result_type): Delete.
10825 (simple_type, ordered_type, same_type, integral_type): Delete.
10826 (numeric_type, character_type, string_type, boolean_type): Delete.
10827 (float_type, structured_type): Delete.
10828 * language.h: Update.
10830 2012-01-04 Tom Tromey <tromey@redhat.com>
10832 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10834 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10836 * corefile.c (close_exec_file): Delete.
10837 (reopen_exec_file): Remove commented out code that seems related
10838 to close_exec_file, which is being deleted here.
10839 * inferior.h (close_exec_file): Delete.
10840 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10842 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10844 * ada-lang.c: #include "cli/cli-utils.h".
10845 (get_selections): Use skip_spaces.
10846 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10847 (catch_ada_exception_command_split): Use skip_spaces.
10848 (ada_decode_assert_location): Likewise.
10850 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10852 * linespec.c (decode_line_internal): Check for C++ or Java
10853 compound constructs only if the current language is C, C++
10856 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10859 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10860 Joel Brobecker <brobecker@adacore.com>
10861 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10862 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10864 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10865 fall through into AT_ENTRY_POINT.
10866 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10867 DUMMY_ADDR with it.
10868 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10869 PPC_INSN_SIZE skip to 3 times.
10871 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10873 * linespec.c (add_minsym): Preserve function descriptors.
10875 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10877 * breakpoint.c (all_locations_are_pending): Consider locations
10878 in program spaces executing during startup pending as well.
10880 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10882 Copyright year update in most files of the GDB Project.
10884 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10886 * copyright.sh: Delete.
10887 * copyright.py: Rewrite.
10889 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10891 * gnulib/extra/update-copyright: New file, imported from gnulib.
10893 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10895 * README (Copyright and License Notices): New section.
10897 2012-01-03 Tom Tromey <tromey@redhat.com>
10900 * python/py-value.c (valpy_dereference, valpy_get_address
10901 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10902 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10903 (valpy_absolute, valpy_richcompare): Free intermediate values.
10905 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10907 * ada-lang.c: Reformat the copyright notice.
10909 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10911 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10912 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10913 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10914 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10915 Revert this part of:
10916 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10917 Build gdb directly from *.o files not using libgdb.a.
10918 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10920 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10922 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10923 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10924 Reformat the copyright header.
10926 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10928 Revert this part of:
10929 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10930 Remove the gdbtui binary.
10931 * gdb.c (main): Remove args.interpreter_p initialization.
10932 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10933 * main.h (struct captured_main_args): Remove interpreter_p.
10935 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10937 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10939 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10941 * top.c (print_gdb_version): Update copyright year.
10943 2012-01-02 Yao Qi <yao@codesourcery.com>
10945 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10947 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10948 Joel Brobecker <brobecker@adacore.com>
10950 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10951 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10953 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10954 fall through into AT_ENTRY_POINT.
10955 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10956 DUMMY_ADDR with it.
10957 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10958 PPC_INSN_SIZE skip to 3 times.
10960 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10962 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10964 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10966 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10968 Build gdb directly from *.o files not using libgdb.a.
10969 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10970 (COMMON_OBS): Remove solib-target.o.
10971 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10972 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10973 (LIBGDB_OBS, libgdb.a): Move it above.
10974 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10975 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10976 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10977 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10978 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10979 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10980 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10981 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10982 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10983 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10984 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10985 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10986 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10987 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10988 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10989 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10990 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10991 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10992 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10993 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10994 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10995 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10996 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10997 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10998 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10999 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11000 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11002 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11004 Remove the gdbtui binary.
11005 * .gitignore (/gdbtui): Remove.
11006 * Makefile.in (TUI): Remove.
11007 (SUBDIR_TUI_OBS): Remove tui-main.o.
11008 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11009 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11010 (tui-main.o): Remove.
11011 (all_object_files): Remove tui-main.o.
11012 * NEWS: New note for the gdbtui removal.
11013 * configure: Rebuilt.
11014 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11015 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11016 CONFIG_UNINSTALL respectively.
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.
11020 * tui/tui-main.c: Remove.
11022 2012-01-01 Doug Evans <dje@google.com>
11024 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11025 (dwarf2_physname, read_import_statement): Ditto.
11026 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11027 (process_structure_scope read_subroutine_type): Ditto.
11028 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11029 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11030 (dwarf2_fetch_die_location_block): Ditto.
11031 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11033 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11034 All callers updated.
11035 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11036 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11037 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11039 * dwarf2read.c (load_cu): Move assert to more useful location.
11041 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11042 All callers updated.
11044 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11045 (dwarf2_elf_names): Minor reformat.
11046 (dwarf2_per_cu_data): Tweak comment.
11047 (dwarf2_read_section): Fix comment.
11048 (create_all_comp_units): Fix comment.
11049 (load_full_comp_unit): Fix comment.
11050 (process_full_comp_unit): Fix comment.
11051 (read_signatured_type): Fix comment.
11053 For older changes see ChangeLog-2011.
11059 version-control: never