1 2012-11-02 Pedro Alves <palves@redhat.com>
3 * gdb.base/foll-vfork.c: Add copyright header.
4 * gdb.base/vforked-prog.c: Add copyright header.
6 2012-11-02 Pedro Alves <palves@redhat.com>
8 * gdb.base/foll-vfork.exp
9 (vfork_and_exec_child_follow_through_step): Don't skip on
10 non-HP/UX targets. Expect the next to only step one line on
11 non-HP/UX targets, rather than stopping only after the exec.
13 2012-11-02 Pedro Alves <palves@redhat.com>
15 Don't hard code line numbers.
17 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step):
18 Expect text from the sources instead of a line number.
19 (vfork_parent_follow_to_bp)
20 (vfork_and_exec_child_follow_to_main_bp)
21 (vfork_and_exec_child_follow_through_step)
22 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow):
23 Use gdb_get_line_number.
25 2012-11-02 Pedro Alves <palves@redhat.com>
29 * gdb.base/foll-vfork.exp: Use standard_testfile and
30 build_executable. Pass descriptive string to untested.
31 (vfork_parent_follow_through_step, vfork_parent_follow_to_bp)
32 (vfork_and_exec_child_follow_to_main_bp)
33 (vfork_and_exec_child_follow_through_step)
34 (tcatch_vfork_then_parent_follow, tcatch_vfork_then_child_follow)
35 (do_vfork_and_exec_tests): Use gdb_test/gdb_test_multiple instead
36 of send_gdb/gdb_expect.
38 (kill_child): New procedure.
39 (vfork_and_exec_child_follow_to_main_bp)
40 (vfork_and_exec_child_follow_through_step): Use it.
42 2012-11-02 Yao Qi <yao@codesourcery.com>
44 * std-operator.def: Remove OP_LABELED.
45 * eval.c: Remove the declaration of 'get_label'.
47 (evaluate_struct_tuple): Remove code handling OP_LABELED.
49 Remove local variable 'variantno' and related code.
50 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
52 * expprint.c (print_subexp_standard): Likewise.
53 (dump_subexp_body_standard): Likewise.
54 * parse.c (operator_length_standard): Likewise.
56 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
58 Incorporate ARI web page generator into GDB sources.
59 * contrib/ari/create-web-ari-in-src.sh: New file.
60 * contrib/ari/gdb_ari.sh: New file.
61 * contrib/ari/gdb_find.sh: New file.
62 * contrib/ari/update-web-ari.sh: New file.
64 2012-10-31 Tom Tromey <tromey@redhat.com>
67 * gdbarch.sh: Remove references to gdbarch_swap.
68 * corelow.c (core_open): Remove obsolete comment.
70 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
73 * c-typeprint.c (c_print_type): Don't print a space for vector
74 types, this is handled within the suffix.
75 (c_type_print_varspec_suffix): Add a space to vector suffix.
77 2012-10-26 Pedro Alves <palves@redhat.com>
79 * amd64-tdep.c (amd64_relocate_instruction): Use
80 store_unsigned_integer instead of memcpy.
81 * i386-tdep.c (i386_relocate_instruction): Ditto.
83 2012-10-26 Pedro Alves <palves@redhat.com>
85 * infrun.c (handle_inferior_event): Merge handling of
86 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
89 2012-10-26 Pedro Alves <palves@redhat.com>
91 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
94 2012-10-26 Pedro Alves <palves@redhat.com>
96 * target.c (target_waitstatus_to_string): Handle
97 TARGET_WAITKIND_VFORK_DONE.
99 2012-10-26 Pedro Alves <palves@redhat.com>
101 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
102 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
104 2012-10-24 Tristan Gingold <gingold@adacore.com>
106 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
109 2012-10-24 Joel Brobecker <brobecker@adacore.com>
111 * ravenscar-thread.c (ravenscar_wait): Only update the list
112 of threads and inferior_ptid if the inferior is still alive.
114 2012-10-24 Joel Brobecker <brobecker@adacore.com>
116 * ada-lang.c (is_known_support_routine): Use lbasename when
117 matching the symtab's filename against
118 known_runtime_file_name_patterns.
120 2012-10-24 Joel Brobecker <brobecker@adacore.com>
122 * ada-lang.c (ada_same_array_size_p): New function.
123 (ada_promote_array_of_integrals): New function.
124 (coerce_for_assign): Add handling of arrays where the elements
125 are integrals of a smaller size than the size of the target
128 2012-10-24 Joel Brobecker <brobecker@adacore.com>
130 * doublest.c (convert_doublest_to_floatformat): Fix comparison
131 against maximum exponent value.
133 2012-10-24 Joel Brobecker <brobecker@adacore.com>
135 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
138 2012-10-24 Joel Brobecker <brobecker@adacore.com>
140 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
141 strip typedef layer when computing the fixed type's field type,
142 only when computing its size.
144 2012-10-24 Mark Kettenis <kettenis@gnu.org>
147 * i386-tdep.c (i386_return_value): Handle complex double and long
150 2012-10-24 Joel Brobecker <brobecker@adacore.com>
152 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
153 New local variable args_len.
154 Quote the name of the executable when computing the command line.
156 2012-10-23 Mark Kettenis <kettenis@gnu.org>
161 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
163 * amd64-tdep.c (amd64_classify): Classify complex types.
164 (amd64_return_value): Handle the COMPLEX_X87 class.
166 2012-10-23 Joel Brobecker <brobecker@adacore.com>
168 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
169 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
171 2012-10-23 Joel Brobecker <brobecker@adacore.com>
173 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
175 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
176 to amd64_windows_auto_wide_charset.
178 2012-10-23 Yao Qi <yao@codesourcery.com>
180 * event-top.c (mark_async_signal_handler_wrapper): Remove.
181 * event-top.h: Remove its declaration.
182 (async_request_quit): Call mark_async_signal_handler instead of
183 mark_async_signal_handler_wrapper.
184 (async_do_nothing, async_disconnect): Likewise.
185 (async_stop_sig): Likewise.
186 * remote.c (handle_remote_sigint): Likewise.
187 (handle_remote_sigint_twice): Likewise.
189 2012-10-23 Yao Qi <yao@codesourcery.com>
191 * event-top.c (sigint_token, sighup_token): Replace 'void *'
192 with 'static struct async_signal_handler *'.
193 (sighup_token, sigquit_token, sigstp_token): Likewise.
195 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
197 * gdbarch.sh (function_list): Use 'pstring' when printing
198 a variable which could return NULL.
199 * gdbarch.c: Regenerate.
201 2012-10-10 Joel Brobecker <brobecker@adacore.com>
202 Tom Tromey <tromey@redhat.com>
204 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
205 inneffective if condition by gdb assertion. Add function
208 2012-10-19 Joel Brobecker <brobecker@adacore.com>
210 * parser-defs.h (struct exp_descriptor): Document constraint
211 on return value for "op_name" callbacks.
213 2012-10-18 Tom Tromey <tromey@redhat.com>
215 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
216 * symtab.c (iterate_over_some_symtabs): Constify.
217 * source.h (symtab_to_fullname): Return 'const char *'.
218 * source.c (symtab_to_fullname): Return 'const char *'.
219 * python/py-symtab.c (stpy_fullname): Constify.
220 * cli/cli-cmds.c (edit_command): Constify.
221 * breakpoint.c (print_breakpoint_location)
222 (update_static_tracepoint): Constify.
224 2012-10-18 Tom Tromey <tromey@redhat.com>
226 * breakpoint.c (compare_breakpoints): Fix comparison.
228 2012-10-18 Tom Tromey <tromey@redhat.com>
230 * valprint.c (generic_emit_char, generic_printstr): Pass size of
231 gdb_wchar_t to convert_between_encodings.
233 2012-10-17 Yao Qi <yao@codesourcery.com>
235 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
236 more parameter 'inferior'.
237 * corefile.c (write_memory_with_notification): Caller update.
239 * mi/mi-cmd-var.c: Include "mi-main.h".
240 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
241 to 1 and restore it later.
242 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
243 and "data-write-memory-bytes.
244 * mi/mi-interp.c: Include objfiles.h.
245 (mi_interpreter_init): Call observer_attach_memory_changed.
246 (mi_memory_changed): New.
247 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
250 * NEWS: Mention new MI notification "memory-changed".
252 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
254 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
256 2012-10-15 Doug Evans <dje@google.com>
258 New option -nh: inhibit loading of ~/.gdbinit.
260 * main.c (captured_main): Recognize and process -nh.
261 (print_gdb_help): Mention -nh.
262 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
264 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
268 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
270 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
271 nor pc_regnum_from_eax.
272 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
273 nor pc_regnum_from_eax.
275 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
277 Fix entry values resolving in inlined frames.
278 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
279 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
282 2012-10-15 Joel Brobecker <brobecker@adacore.com>
284 * configure.ac: Build with -DMS_WIN64 if building with Python
285 enabled using GCC on amd64-windows.
286 * configure: Regenerate.
288 2012-10-15 Tom Tromey <tromey@redhat.com>
291 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
294 2012-10-15 Tom Tromey <tromey@redhat.com>
297 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
299 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
301 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
302 reset thread numbering back to 1.
304 2012-10-11 Doug Evans <dje@google.com>
306 PR breakpoints/14643.
307 * linespec.c (struct ls_parser): New member keyword_ok.
308 (linespec_lexer_lex_string): Add comment.
309 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
311 (parse_linespec): Set keyword_ok.
313 2012-10-10 Doug Evans <dje@google.com>
315 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
316 "0x" prefix on address in log message.
318 * dwarf2read.c (read_1_byte): Add const to buf parameter.
319 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
320 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
321 (lookup_dwo_file): Add const to dwo_name parameter.
322 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
324 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
326 Fix crash during stepping on ppc32.
327 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
330 2012-10-03 Doug Evans <dje@google.com>
333 * buildsym.c (buildsym_init): Reset using_directives to NULL.
335 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
337 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
338 output and use uint32_t not long to ensure 4 byte size.
340 2012-10-02 Joel Brobecker <brobecker@adacore.com>
342 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
345 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
347 * target.c (simple_search_memory): Include access length in
350 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
351 Edjunior Machado <emachado@linux.vnet.ibm.com>
354 * solib.c (solib_find): Prevent GDB from loading native libraries when
355 debugging a cross-target corefile.
357 2012-09-28 selven <pcthegreat@gmail.com>
359 Make definition match declaration.
361 * regcache.c (regcache_register_status): Change return type to
362 enum register_status.
364 2012-09-28 Yao Qi <yao@codesourcery.com>
366 * mi/mi-main.c (mi_cmd_data_write_memory): Call
367 write_memory_with_notification instead of write_memory.
368 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
369 instead of target_write_memory.
371 2012-09-28 Yao Qi <yao@codesourcery.com>
373 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
374 when the length of content is not an even number.
376 2012-09-27 Tom Tromey <tromey@redhat.com>
378 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
379 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
381 2012-09-27 Joel Brobecker <brobecker@adacore.com>
383 * sol-thread.c (sol_thread_fetch_registers)
384 (sol_thread_store_registers): Delete commented out code.
386 2012-09-27 Joel Brobecker <brobecker@adacore.com>
388 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
389 Move these functions to sparc-sol-thread.c.
390 * sparc-sol-thread.c: New file.
391 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
392 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
394 * configure: Regenerate.
396 2012-09-27 Joel Brobecker <brobecker@adacore.com>
398 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
399 Remove commented-out code.
401 2012-09-27 Joel Brobecker <brobecker@adacore.com>
403 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
404 Enable this code for sparc hosts only.
406 2012-09-27 Joel Brobecker <brobecker@adacore.com>
408 * procfs.h (procfs_find_LDT_entry): Add declaration.
409 * sol-thread.c (ps_lgetLDT): Delete local declaration of
410 function procfs_find_LDT_entry.
412 2012-09-27 Joel Brobecker <brobecker@adacore.com>
414 * procfs.c (proc_get_LDT_entry): Make static.
416 2012-09-27 Joel Brobecker <brobecker@adacore.com>
418 * procfs.c (proc_find_memory_regions): Fix declaration.
420 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
422 * amd64-tdep.c (amd64_return_value): Revert previous change
423 that used TYPE_LENGTH directly.
424 * bfin-tdep.c (bfin_extract_return_value): Likewise.
425 (bfin_store_return_value): Likewise.
426 * cris-tdep.c (cris_store_return_value): Likewise.
427 (cris_extract_return_value): Likewise.
428 * h8300-tdep.c (h8300_extract_return_value): Likewise.
429 * hppa-tdep.c (hppa64_return_value): Likewise.
430 * lm32-tdep.c (lm32_store_return_value): Likewise.
431 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
432 * spu-tdep.c (spu_value_from_register): Likewise.
433 * vax-tdep.c (vax_return_value): Likewise.
435 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
437 * gdbtypes.c (lookup_array_range_type): Expand parameters
438 LOW_BOUND and HIGH_BOUND to LONGEST.
439 (lookup_string_range_type): Likewise.
440 * gdbtypes.h (lookup_array_range_type): Likewise.
441 (lookup_string_range_type): Likewise.
442 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
443 Expand HIGHBOUND to ssize_t.
444 (value_string): Likewise.
445 * value.h (value_cstring): Expand parameter LEN to ssize_t.
446 (value_string): Likewise.
448 2012-09-27 Yao Qi <yao@codesourcery.com>
451 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
452 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
455 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
457 * procfs.c: Add gdb_bfd header.
458 * rs6000-nat.c: Likewise.
459 * solib-pa64.c: Likewise.
460 * spu-linux-nat.c: Likewise.
461 * windows-nat.c: Likewise.
463 2012-09-26 Tom Tromey <tromey@redhat.com>
465 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
467 2012-09-26 Tom Tromey <tromey@redhat.com>
469 * dwarf2read.c (mark_common_block_symbol_computed): New function.
470 (read_common_block): Handle child DIEs with
471 DW_AT_data_member_location.
472 (new_symbol_full): Add special case for common blocks.
474 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
475 Tom Tromey <tromey@redhat.com>
477 * dwarf2read.c (read_common_block): Rewrite.
478 (new_symbol_full): Handle DW_TAG_common_block.
479 * f-lang.c (head_common_list, find_common_for_function):
481 * f-lang.h (struct common_entry, struct saved_f77_common,
482 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
483 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
484 BLANK_COMMON_NAME_LOCAL): Remove.
485 (struct common_block): New.
486 * f-valprint.c (list_all_visible_commons): Remove.
487 (info_common_command_for_block): New function.
488 (info_common_command): Use it.
489 * stack.c (iterate_over_block_locals): Special case for
491 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
493 (struct general_symbol_info) <value.common_block>: New field.
494 (SYMBOL_VALUE_COMMON_BLOCK): New define.
496 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
497 Tom Tromey <tromey@redhat.com>
499 * f-lang.c (allocate_saved_bf_node,
500 allocate_saved_function_node, allocate_saved_f77_common_node,
501 allocate_common_entry_node, tail_common_list, current_common,
502 saved_bf_list, saved_bf_list_end, current_head_bf_list,
503 tmp_bf_ptr, add_common_block, add_common_entry,
504 find_first_common_named, patch_common_entries,
505 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
506 global_remote_debug, get_bf_for_fcn, saved_function_list,
507 saved_function_list_end, clear_function_list, struct saved_fcn,
508 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
509 SAVED_BF, SAVED_BF_PTR): Remove.
510 * f-lang.h (tail_common_list, current_common,
511 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
512 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
513 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
514 real_main_c_value): Remove.
515 * f-valprint.c (there_is_a_visible_common_named): Remove.
517 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
519 * breakpoint.c (update_global_location_list): Ignore previous
520 duplicate status of a breakpoint when starting a new scan for
521 duplicate breakpoints.
523 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
525 * arm-tdep.c (arm_skip_prologue): Extending producer check to
526 support LLVM compiler.
528 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
530 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
531 * bfin-tdep.c (bfin_extract_return_value): Likewise.
532 (bfin_store_return_value): Likewise.
533 * cris-tdep.c (cris_store_return_value): Likewise.
534 (cris_extract_return_value): Likewise.
535 * h8300-tdep.c (h8300_extract_return_value): Likewise.
536 * hppa-tdep.c (hppa64_return_value): Likewise.
537 * lm32-tdep.c (lm32_store_return_value): Likewise.
538 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
539 * spu-tdep.c (spu_value_from_register): Likewise.
540 * vax-tdep.c (vax_return_value): Likewise.
542 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
544 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
545 parameter LEN to ssize_t.
547 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
549 * ada-valprint.c (ada_val_print_1): Eliminate single-use
551 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
553 (alpha_store_return_value): Likewise.
554 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
555 (amd64_push_arguments): Likewise.
556 * ax-gdb.c (gen_trace_static_fields): Likewise.
557 (gen_traced_pop): Likewise.
558 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
559 * breakpoint.c (update_watchpoint): Likewise.
560 * findcmd.c (parse_find_args): Use local variable for type
562 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
563 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
564 (h8300_store_return_value): Likewise.
565 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
566 Use i386_darwin_arg_type_alignment directly.
567 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
568 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
569 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
570 (m68hc11_extract_return_value): Likewise.
571 * mep-tdep.c (mep_push_dummy_call): Likewise.
572 * printcmd.c (float_type_from_length): Likewise.
573 * s390-tdep.c (s390_value_from_register): Likewise.
574 * stack.c (read_frame_arg): Likewise.
575 * tracepoint.c (encode_actions_1): Likewise.
576 * valops.c (value_fetch_lazy): Use local variable for type
577 instead of length. Use TYPE_LENGTH directly.
578 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
580 2012-09-25 Joel Brobecker <brobecker@adacore.com>
582 * symtab.c (skip_prologue_sal): Fix typo in comment.
584 2012-09-25 Joel Brobecker <brobecker@adacore.com>
586 * linespec.c (create_sals_line_offset): Fix typo in comment.
588 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
590 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
591 use plongest to print the array size.
593 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
595 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
596 * p-valprint.c (pascal_type_print_base): Likewise.
598 2012-09-22 Yao Qi <yao@codesourcery.com>
600 * remote.c (remote_get_trace_status): Remove setting default
601 values of fields of 'ts'.
603 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
605 Fix internal error on canonicalization of clang types.
606 * cp-name-parser.y (operator): New comment at make_operator call for
607 new, delete, new[] and delete[].
608 (exp): Use "sizeof ". Add new comment at make_operator call.
610 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
612 Fix disassemble without parameters in tailcall frame.
613 * cli/cli-cmds.c (disassemble_current_function): Use
614 get_frame_address_in_block.
616 2012-09-21 Tom Tromey <tromey@redhat.com>
618 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
619 TYPE_CODE_UNION>: Unify, removing a goto.
621 2012-09-21 Tom Tromey <tromey@redhat.com>
623 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
625 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
627 * findvar.c (read_frame_register_value): Mark the result value as
628 optimized out if any of the input registers have been optimized out.
630 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
632 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
634 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
636 * eval.c (evaluate_subexp_standard): Eliminate single-use
639 2012-09-21 Yao Qi <yao@codesourcery.com>
641 * mi/mi-interp.c: Declare mi_record_changed.
642 (mi_interpreter_init): Call observer_attach_record_changed.
643 (mi_record_changed): New.
644 * record.c (record_open): Call observer_notify_record_changed.
645 (cmd_record_stop): Call observer_notify_record_changed.
648 2012-09-20 Tom Tromey <tromey@redhat.com>
651 * python/python.c (finalize_python): New function.
652 (_initialize_python): Make a final cleanup.
654 2012-09-19 Doug Evans <dje@google.com>
656 * buildsym.h (param_symbols): Delete, unused.
657 (context_stack): Delete member "params", unused.
658 * buildsym.c (push_context): Update.
659 * dwarf2read.c (read_func_scope): Update.
661 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
663 * sh-tdep.c (sh_register_convert_to_virtual)
664 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
665 all callers. Just do a memcpy if not the little-endian case.
667 * h8300-tdep.c (h8300_gdbarch_init): Invoke
668 set_gdbarch_double_format and set_gdbarch_long_double_format.
669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
670 set_gdbarch_double_format.
671 * sh-tdep.c (sh_gdbarch_init): Likewise.
673 * NEWS: Document the removal of SH's 'regs' command.
674 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
677 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
679 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
682 2012-09-18 Joel Brobecker <brobecker@adacore.com>
684 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
685 language when iterating over symbols.
687 2012-09-18 Yao Qi <yao@codesourcery.com>
689 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
690 (mi_interpreter_init): Call observer_attach_tsv_created and
691 observer_attach_tsv_deleted.
692 (mi_tsv_created, mi_tsv_deleted): New.
693 * tracepoint.c (delete_trace_state_variable): Call
694 observer_notify_tsv_deleted.
695 (trace_variable_command): Call observer_notify_tsv_created.
696 (delete_trace_variable_command): Call
697 observer_notify_tsv_deleted.
698 (create_tsv_from_upload): Call observer_notify_tsv_created.
701 2012-09-18 Yao Qi <yao@codesourcery.com>
703 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
704 if traceframe changed.
705 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
707 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
708 (mi_interpreter_init): Hook mi_traceframe_changed to observer
709 'traceframe_changed'.
710 (mi_traceframe_changed): New.
711 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
713 * NEWS: Mention the new MI notification.
715 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
717 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
719 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
721 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
722 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
723 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
724 Extend code also for PaX support. Convert all gdb_assert to warning
727 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
729 Implement auto-load user conveniences suggested by Doug Evans.
730 * auto-load.c: Include top.h.
731 (file_is_auto_load_safe): New variable advice_printed. Print advice.
732 (_initialize_auto_load): New variable scripts_directory_help. Mention
733 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
734 scripts-directory. Document in online help one can use also files for
735 set auto-load safe-path.
736 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
737 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
739 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
741 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
744 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
746 * m2-valprint.c (m2_print_array_contents): Eliminate variable
747 ELTLEN and use TYPE_LENGTH directly.
748 (m2_val_print): Likewise.
749 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
750 variable LEN and use TYPE_LENGTH directly.
751 (m68k_svr4_store_return_value): Likewise.
752 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
753 ARGLEN and use TYPE_LENGTH directly.
754 (mips_o64_push_dummy_call): Likewise.
755 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
756 variable LENGTH and use TYPE_LENGTH directly.
757 (s390_function_arg_float): Likewise.
758 (s390_function_arg_integer): Likewise.
759 (s390_push_dummy_call): Likewise.
760 (s390_return_value_convention): Likewise.
761 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
762 TYPE_LENGTH directly.
764 2012-09-17 Yao Qi <yao@codesourcery.com>
766 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
767 Update comment to add_setshow_integer_cmd.
768 * cli/cli-setshow.c (do_set_command): Handle case
769 'var_zuinteger_unlimited'.
770 (do_show_command): Likewise.
771 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
772 for command 'remotetimeout'.
773 * command.h (enum var_types): New zuinteger_unlimited. Update comment
775 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
776 for command 'set listsize'.
778 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
780 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
783 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
786 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
787 (frame_pop): Drop also TAILCALL_FRAME frames.
788 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
790 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
791 Pedro Alves <palves@redhat.com>
794 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
795 function start if we are already at function start. Both for
796 reverse-next and for reverse-step into function without line number
799 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
801 Code cleanup - rename 'inline' depth to 'artificial' depth.
802 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
803 frame_id_artificial_p, extend the comment.
804 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
805 * frame.c (fprint_frame_id): Rename at a user, change debug output
806 text to "artificial=".
807 (skip_inlined_frames): Rename to ...
808 (skip_artificial_frames): ... here. Extend the comment.
809 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
810 (frame_id_inlined_p): Rename to ...
811 (frame_id_artificial_p): ... here. Rename at a user.
812 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
813 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
815 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
817 (frame_id_inlined_p): Rename to ...
818 (frame_id_artificial_p): ... here.
819 * inline-frame.c (inline_frame_this_id): Rename at a user.
821 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
823 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
824 vector variables using vector_size syntax rather than array
827 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
829 * valarith.c (value_concat): Replace unsafe ALLOCA with
832 2012-09-14 Pedro Alves <palves@redhat.com>
834 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
836 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
838 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
839 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
840 data-directory as appropriate.
842 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
844 * printcmd.c (ui_printf): Eliminate single-use variable
847 2012-09-14 Yao Qi <yao@codesourcery.com>
848 Pedro Alves <palves@redhat.com>
850 * valops.c (value_assign): Move observer_notify_target_changed
851 below to replace reinit_frame_cache.
853 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
855 Refactor Python "gdb" module into a proper Python package, by
856 introducing a new "_gdb" module for code implemented in C, and
857 using reload/__import__ instead of exec.
858 * python/lib/gdb/__init__.py: Import * from _gdb.
859 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
860 prompt_hook, sys.argv): Moved from finish_python_initialization.
861 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
862 (packages, auto_load_packages): New list and function replacing
863 module_dict and auto-loading code, using __file__ instead of
864 gdb.PYTHONDIR and reload/__import__ instead of exec.
865 (GdbSetPythonDirectory): Replacing function of the same name
866 from finish_python_initialization, using reload/__import__ instead
867 of exec, as well as call auto_load_packages.
868 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
869 gdb_python_module and not gdb_module.
870 * python/python-internal.h (gdb_python_module): Declare.
871 * python/python.c (gdb_python_module): New global.
872 (before_prompt_hook): Check gdb_python_module and not gdb_module.
873 (_initialize_python): Rename gdb module to _gdb.
874 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
875 (finish_python_initialization): Move Python code to
876 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
879 2012-09-13 Pedro Alves <palves@redhat.com>
881 * Makefile.in (COMMON_OBS): Add registry.o.
882 * registry.c: New file.
883 * registry.h (struct registry_container): Declare.
884 (registry_data_callback): New typedef.
885 (struct registry_data, struct registry_data_registration, struct
886 registry_data_registry): New type.
887 (register_data_with_cleanup, registry_alloc_data)
888 (registry_callback_adaptor, registry_clear_data)
889 (registry_container_free_data, registry_set_data, registry_data):
891 (DEFINE_REGISTRY): Refactor structures and functions as shims over
892 the new common structures and functions.
893 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
896 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
898 * remote.c (remote_insert_hw_breakpoint): Throw exception if
899 there is an error inserting hardware breakpoints and use the
900 error message from the target.
902 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
903 Catch this exception and print the error message contained within. Do not
904 print the default hardware error breakpoint message in this case.
906 2012-09-12 Doug Evans <dje@google.com>
908 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
911 2012-09-11 Doug Evans <dje@google.com>
913 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
914 .gdb_index symbol attributes if there are none.
916 2012-09-11 Joel Brobecker <brobecker@adacore.com>
918 * symtab.h (struct minimal_symbol) [has_size]: New field.
919 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
920 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
921 * printcmd.c (build_address_symbolic): Only filter out zero-sized
922 minimal symbols if the symbol's size is actually known.
923 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
924 of msymbol's size field. Add comment.
925 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
926 SET_MSYMBOL_SIZE to set the minimal symbol size.
928 2012-09-11 Joel Brobecker <brobecker@adacore.com>
930 * minsyms.c (install_minimal_symbols): Use memset to fill entire
931 minimal_symbol struct object, rather than setting some of its
934 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
936 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
937 passed_a_ptr flag when displaying typedef types.
939 2012-09-10 Joel Brobecker <brobecker@adacore.com>
941 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
942 the optimized_out flag is preserved.
944 2012-09-10 Anthony Green <green@moxielogic.com>
946 * moxie-tdep.c (moxie_analyze_prologue): Update for function
947 prologue changes in GCC.
949 2012-09-10 Keith Seitz <keiths@redhat.com>
952 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
953 (BOOL_CONVERSION_BADNESS): ... this.
954 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
955 (rank_one_type): Allow all boolean conversions
956 permitted by the standard.
958 2012-09-06 Tom Tromey <tromey@redhat.com>
960 * python/py-newobjfileevent.c (create_new_objfile_event_object):
961 Don't decref py_objfile.
963 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
965 Do not enable -lmcheck by default when Python is enabled with
967 * configure.ac: (python_has_threads) New variable, by testing
968 if WITH_THREAD is defined in Python.h.
969 Move --enable-lmcheck after --with-python.
970 Do not enable -lmcheck by default if python_has_threads=yes.
971 Warn if --enable-lmcheck and python_has_threads=yes.
972 * configure: Regenerate.
974 2012-08-31 Yao Qi <yao@codesourcery.com>
976 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
977 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
978 Update some commands.
979 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
980 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
983 2012-08-31 Yao Qi <yao@codesourcery.com>
985 * mi/mi-cmds.c (mi_cmds): Add 'static'.
987 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
989 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
991 2012-08-29 Doug Evans <dje@google.com>
993 * main.c (print_gdb_help): Remove reference to
994 --use-deprecated-index-sections.
996 2012-08-28 Yao Qi <yao@codesourcery.com>
998 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
999 (init_cmds): Call add_setshow_uinteger_cmd for command
1000 'max-user-call-depth'.
1001 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1002 declaration of 'max_user_call_depth'.
1003 * frame.c (backtrace_limit): Add 'unsigned'.
1004 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1006 * remote.c (remoteaddresssize): Add 'unsigned'.
1007 (remote_address_masked): Change local var 'address_size' to
1009 (_initialize_remote): Call add_setshow_uinteger_cmd for
1010 'remoteaddresssize'.
1011 * top.c (history_size): Add 'unsigned'.
1012 (show_commands): Change local variables to 'unsigned'.
1013 (set_history_size_command): Don't check history_size is negative.
1014 Adjust the condition to call unstifle_history and set history_size
1017 2012-08-28 Pedro Alves <palves@redhat.com>
1021 * infcmd.c (default_print_one_register_info): New, factored out
1022 from default_print_registers_info.
1023 (default_print_registers_info): Use it. Mark value unavailable if
1025 (registers_info): Print user registers with
1026 default_print_one_register_info.
1028 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1031 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1032 is not NULL before referencing it.
1034 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1036 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1037 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1040 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1041 Jan Kratochvil <jan.kratochvil@redhat.com>
1043 * auto-load.c (auto_load_objfile_script): Rename to ...
1044 (auto_load_objfile_script_1): ... here, change variable realname to
1045 parameter realname, document it, add return value, add variable retval.
1046 (auto_load_objfile_script): New function.
1048 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1050 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1051 followed by a whitespace.
1053 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1056 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1057 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1058 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1061 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1063 * memattr.c (create_mem_region): Fix memory region overlapping
1066 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1068 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1069 with xmalloc/cleanup.
1070 * mt-tdep.c (mt_push_dummy_call): Likewise.
1071 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1072 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1074 2012-08-24 Yao Qi <yao@codesourcery.com>
1076 * jv-exp.y (push_expression_name): Add "." at the end of error
1079 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1081 Document how to return from "python-interactive" to GDB.
1082 * python/python.c (_initialize_python): Update documentation.
1084 2012-08-23 Pedro Alves <palves@redhat.com>
1086 * infrun.c (_initialize_infrun) <handle command help text>:
1087 Mention that multiple signals are supported.
1089 2012-08-23 Pedro Alves <palves@redhat.com>
1091 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1094 2012-08-23 Yao Qi <yao@codesourcery.com>
1096 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1097 (tfind_1): Don't call registers_changed, set_traceframe_num,
1098 and clear_traceframe_info.
1099 Call set_current_traceframe.
1100 (set_current_traceframe): call set_traceframe_num.
1102 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1104 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1105 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1107 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1109 Enable readline in Python in a GDB-specific way and block the
1110 standard Python readline module to prevent conflicts with GDB.
1111 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1112 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1113 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1114 * python/py-gdb-readline.c: New file.
1115 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1117 * python/python.c (_initialize_python): Call
1118 gdbpy_initialize_gdb_readline.
1120 2012-08-22 Keith Seitz <keiths@redhat.com>
1122 * defs.h: Include build-gnulib/config.h
1124 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1126 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1129 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1131 Add a new "python-interactive" command that starts a standard
1132 Python interactive prompt with "pi" as alias, and add "py" as
1133 an alias to "python".
1134 * NEWS: Mention the new commands.
1135 * python/python.c (eval_python_command): New function.
1136 (python_interactive_command): For "python-interactive" with
1137 arguments, call eval_python_command. For "python-interactive"
1138 without arguments, call PyRun_InteractiveLoop.
1139 (_initialize_python): Add "python-interactive" command with
1140 "pi" as alias, and add "py" as an alias to "python".
1142 2012-08-22 Tom Tromey <tromey@redhat.com>
1144 * defs.h (quit_flag): Don't declare.
1145 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1146 (QUIT): Use new functions.
1147 * event-top.c (command_handler): Use clear_quit_flag.
1148 (handle_sigint): Use set_quit_flag.
1149 (async_request_quit): Use check_quit_flag. Don't check
1151 * exceptions.c (throw_exception): Use clear_quit_flag.
1152 * main.c (captured_main): Use clear_quit_flag.
1153 * python/python.c (clear_quit_flag, set_quit_flag)
1154 (check_quit_flag): New functions.
1155 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1157 * remote.c (remote_wait_as): Use check_quit_flag,
1159 (remote_start_remote): Call QUIT.
1160 * symfile.c (load_progress): Use check_quit_flag.
1161 * top.c (command_loop): Use clear_quit_flag.
1162 (command_line_input): Call QUIT.
1163 * utils.c (quit_flag): Conditionally define.
1164 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1166 (prompt_for_continue): Call QUIT. Use quit, not
1168 * remote-mips.c (mips_expect_timeout): Call QUIT.
1169 * monitor.c (monitor_expect): Call QUIT.
1171 2012-08-22 Tom Tromey <tromey@redhat.com>
1173 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1174 (async_init_signals): Update.
1175 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1176 (SIGWINCH_HANDLER_BODY): Remove.
1178 2012-08-22 Tom Tromey <tromey@redhat.com>
1180 * jit.c (jit_object_close_impl): Don't malloc the objfile
1182 * objfiles.c (allocate_objfile): Don't malloc the objfile
1184 (free_objfile): Don't free the objfile name.
1185 * objfiles.h (struct objfile) <name>: Update comment.
1186 * symfile.c (reread_symbols): Fix reference counting. Don't
1187 malloc objfile name.
1189 2012-08-22 Tom Tromey <tromey@redhat.com>
1191 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1192 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1193 (symfile_bfd_open): Likewise.
1194 (generic_load): Likewise.
1195 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1196 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1198 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1200 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1201 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1202 (pmon_load_fast): Likewise.
1203 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1204 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1205 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1206 (macho_check_dsym): Likewise.
1207 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1208 (m32r_upload_command): Likewise.
1209 * gdb_bfd.h (gdb_bfd_cache): Declare.
1210 * gdb_bfd.c (struct gdb_bfd_data): New.
1211 (gdb_bfd_cache): New global.
1212 (struct gdb_bfd_cache_search): New.
1213 (hash_bfd): New function.
1215 (gdb_bfd_open): Likewise.
1216 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1217 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1219 * exec.c (exec_file_attach): Use gdb_bfd_open.
1220 * dsrec.c (load_srec): Use gdb_bfd_open.
1222 2012-08-22 Tom Tromey <tromey@redhat.com>
1224 * dwarf2read.c (macro_start_file): Update.
1225 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1226 (free_objfile_per_bfd_storage): Destroy macro_cache.
1227 (allocate_objfile, free_objfile): Update.
1228 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1230 (struct objfile) <macro_cache>: Remove.
1231 * symfile.c (reread_symbols): Update.
1232 * symmisc.c (print_symbol_bcache_statistics): Update.
1233 (print_objfile_statistics): Update.
1235 2012-08-22 Tom Tromey <tromey@redhat.com>
1237 * elfread.c (elf_symtab_read): Update.
1238 * objfiles.c (objfiles_bfd_data): New global.
1239 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1240 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1241 (allocate_objfile, free_objfile): Update.
1242 (_initialize_objfiles): Initialize objfiles_bfd_data.
1243 * objfiles.h (struct objfile_per_bfd_storage): New.
1244 (struct objfile) <per_bfd>: New field.
1245 <filename_cache>: Remove.
1246 (set_objfile_per_bfd): Declare.
1247 * symfile.c (reread_symbols): Update. Call
1248 set_objfile_per_bfd.
1249 (allocate_symtab): Update.
1250 * symmisc.c (print_symbol_bcache_statistics): Update.
1251 (print_objfile_statistics): Print the size of the BFD obstack.
1253 2012-08-22 Tom Tromey <tromey@redhat.com>
1255 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1256 * gdb_bfd.c: Use DEFINE_REGISTRY.
1257 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1258 (gdb_bfd_ref): Call bfd_alloc_data.
1259 (gdb_bfd_unref): Call bfd_free_data.
1261 2012-08-22 Tom Tromey <tromey@redhat.com>
1263 * registry.h (struct registry_fields): New.
1264 (REGISTRY_FIELDS): Redefine.
1265 (REGISTRY_ACCESS_FIELD): New macro.
1266 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1269 2012-08-22 Tom Tromey <tromey@redhat.com>
1271 * auto-load.c (_initialize_auto_load): Update.
1272 * solib-svr4.c (_initialize_svr4_solib): Update
1273 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1274 * solib-darwin.c (_initialize_darwin_solib): Update.
1275 * registry.h: New file.
1276 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1277 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1278 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1279 (register_program_space_data_with_cleanup)
1280 (register_program_space_data, program_space_alloc_data)
1281 (clear_program_space_data, set_program_space_data)
1282 (program_space_data): Don't declare.
1283 * progspace.c: Use DEFINE_REGISTRY.
1284 (struct program_space_data, struct
1285 program_space_data_registration, struct
1286 program_space_data_registry, program_space_data_registry)
1287 (register_program_space_data_with_cleanup)
1288 (register_program_space_data, program_space_alloc_data)
1289 (program_space_free_data, clear_program_space_data)
1290 (set_program_space_data, program_space_data): Remove.
1291 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1292 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1293 (register_objfile_data_with_cleanup, register_objfile_data)
1294 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1296 * objfiles.c: Use DEFINE_REGISTRY.
1297 (struct objfile_data, struct objfile_data_registration, struct
1298 objfile_data_registry, objfile_data_registry)
1299 (register_objfile_data_with_cleanup, register_objfile_data)
1300 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1301 (set_objfile_data, objfile_data): Remove.
1302 (_initialize_objfiles): Update.
1303 * jit.c (_initialize_jit): Update.
1304 * inflow.c (_initialize_inflow): Update.
1305 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1306 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1307 (register_inferior_data_with_cleanup, register_inferior_data)
1308 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1310 * inferior.c: Use DEFINE_REGISTRY.
1311 (struct inferior_data, struct inferior_data_registration, struct
1312 inferior_data_registry, inferior_data_registry)
1313 (register_inferior_data_with_cleanup, register_inferior_data)
1314 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1315 (set_inferior_data, inferior_data): Remove.
1316 * auxv.c (_initialize_auxv): Update.
1317 * ada-lang.c (_initialize_ada_language): Update.
1318 * breakpoint.c (_initialize_breakpoint): Update.
1319 * i386-nat.c (i386_use_watchpoints): Update.
1321 2012-08-22 Tom Tromey <tromey@redhat.com>
1323 * exec.c (exec_close, exec_file_attach): Update.
1324 (add_to_section_table): Initialize 'key' field.
1325 (add_target_sections, remove_target_sections): Add 'key' argument.
1326 * exec.h (add_target_sections, remove_target_sections): Add
1328 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1329 (reload_shared_libraries_1): Update.
1330 * target.h (struct target_section) <key>: New field.
1332 2012-08-22 Tom Tromey <tromey@redhat.com>
1334 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1336 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1338 * symfile.c (allocate_symtab): Use host_address_to_string
1339 function instead of cast of pointer to long which is not
1340 compatible with x86_64-w64-mingw32 build.
1342 2012-08-19 Andrew Pinski <apinski@cavium.com>
1344 * mips-tdep.c (is_octeon): New function.
1345 (is_octeon_bbit_op): New function.
1346 (mips32_next_pc): Handle Octeon's bbit instructions.
1347 (mips32_instruction_has_delay_slot): Likewise.
1349 2012-08-19 Andrew Pinski <apinski@cavium.com>
1351 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1352 before the function.
1354 2012-08-19 Andrew Pinski <apinski@cavium.com>
1356 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1358 2012-08-19 Keith Seitz <keiths@redhat.com>
1361 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1362 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1364 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1366 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1367 The typo broke "make TAGS".
1369 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1373 2012-08-17 Keith Seitz <keiths@redhat.com>
1376 * gdbtypes.c (strict_type_checking): New variable.
1377 (show_strict_type_checking): New function.
1378 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1379 if strict type checking is disabled.
1380 (_initialize_gdbtypes): Add "check type" subcommand.
1381 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1383 2012-08-17 Keith Seitz <keiths@redhat.com>
1385 * language.h (type_mode): Remove.
1386 (type_check): Remove.
1387 (struct language_defn): Remove la_type_check.
1388 (STRICT_TYPE): Remove unused macro.
1389 (type_error): Remove.
1390 * language.c (set_type_range_case): Renamed to ...
1391 (set_range_case): ... this. Update all callers.
1392 Remove type_mode/type_check.
1393 (type_mode): Remove.
1394 (type_check): Remove.
1395 (show_type_command): Remove.
1396 (set_type_command): Remove.
1397 (language_info): Remove type checking output.
1398 (type_error): Remove unused function.
1399 (range_error): Update comment.
1400 (unknown_language_defn): Remove la_type_check.
1401 (auto_language_defn): Likewise.
1402 (local_language_defn): Likewise.
1403 (_initialize_language): Remove "check type" subcommand.
1404 * ada-lang.c (ada_language_defn): Remove la_type_check.
1405 * c-lang.c (c_language_defn): Likewise.
1406 (cplus_language_defn): Likewise.
1407 (asm_language_defn): Likewise.
1408 (minimal_language_defn): Likewise.
1409 * d-lang.c (d_language_defn): Likewise.
1410 * f-lang.c (f_language_defn): Likewise.
1411 * go-lang.c (go_language_defn): Likewise.
1412 * jv-lang.c (java_language_defn): Likewise.
1413 * m2-lang.c (m2_language_defn): Likewise.
1414 * objc-lang.c (objc_language_defn): Likewise.
1415 * opencl-lang.c (opencl_language_defn): Likewise.
1416 * p-lang.c (pascal_language_defn): Likewise.
1418 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1420 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1422 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1424 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1426 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1427 using the regache. Use ia64_hpux_get_register_from_save_state_t
1428 to access the bsp and bspstore registers if not.
1430 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1432 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1433 * breakpoint.c (detach_breakpoints): Change pid parameter into
1434 a ptid. Adjust code accordingly.
1435 * infrun.c (handle_inferior_event): Delete variable child_pid.
1436 Update call to detach_breakpoints to pass the child ptid for
1438 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1439 assert that inferior_ptid's lwp is zero.
1440 (linux_handle_extended_wait): Update call to detach_breakpoints.
1441 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1444 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1446 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1447 parent, only call detach_breakpoints if tts.tts_event ==
1450 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1452 * dwarf2-frame.c (dwarf2_frame_cache): Use
1453 get_frame_address_in_block instead of get_frame_pc as
1454 the bound for executing the frame's FDE.
1456 2012-08-16 Yao Qi <yao@codesourcery.com>
1458 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1459 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1460 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1461 (c_type_print_varspec_suffix): Likewise.
1462 * eval.c (evaluate_subexp_standard): Likewise.
1463 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1464 (f_type_print_varspec_suffix): Likewise.
1465 * gdbtypes.c (is_scalar_type): Likewise.
1466 (recursive_dump_type): Likewise.
1467 * infcall.c (value_arg_coerce): Likewise.
1468 * m2-valprint.c (m2_val_print): Likewise.
1469 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1470 (pascal_type_print_varspec_suffix): Likewise.
1471 (pascal_type_print_base): Likewise.
1472 * p-valprint.c (pascal_val_print): Likewise.
1473 (pascal_val_print): Likewise.
1474 * valops.c (value_slice): Likewise.
1475 * valprint.c (scalar_type_p): Likewise.
1476 * valarith.c (value_bitstring_subscript): Remove.
1477 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1478 Remove comment on TYPE_CODE_BITSTRING.
1480 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1481 TYPE_CODE_BITSTRING.
1483 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1486 2012-08-16 Yao Qi <yao@codesourcery.com>
1488 * tracepoint.c (trace_find_none_command): Remove.
1489 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1491 2012-08-16 Yao Qi <yao@codesourcery.com>
1493 * remote.c (handle_notification): Remove parameter 'length'.
1494 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1496 2012-08-15 Keith Seitz <keiths@redhat.com>
1498 * gdbtypes.c (opaque_type_resolution): Make static.
1499 Add missing comment.
1500 (overload_debug): Add missing comment.
1501 (show_opaque_type_resolution): Likewise.
1502 (show_overload_debug): Likewise.
1503 (print_bit_vector): Remove unnecessary forward declaration.
1504 (print_arg_types): Likewise.
1505 (dump_fn_fieldlists): Likewise.
1506 (print_cplus_stuff): Likewise.
1508 2012-08-15 Tom Tromey <tromey@redhat.com>
1510 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1511 (gdb_bfd_ref): Initialize new field.
1512 (gdb_bfd_unref): Unref the archive BFD.
1513 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1516 2012-08-15 Tom Tromey <tromey@redhat.com>
1519 * python/py-bpevent.c (create_breakpoint_event_object): Update
1521 * python/py-event.c (evpy_add_attribute): Update comment.
1522 * python/py-exitedevent.c (create_exited_event_object): Fix
1523 reference counting and error handling.
1524 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1525 Fix reference counting.
1526 * python/py-signalevent.c (create_signal_event_object): Fix
1527 reference counting and error handling.
1528 * python/py-stopevent.c (emit_stop_event): Fix reference
1530 * python/py-threadevent.c (get_event_thread): Return a
1532 * python/py-type.c (convert_field): Fix reference counting.
1534 2012-08-15 Tom Tromey <tromey@redhat.com>
1536 * dwarf2read.c (dwarf_decode_macro_bytes)
1537 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1540 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1542 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1543 stepi, nexti, finish, next, step, jump, and continue commands.
1544 * infrun.c (_initialize_infrun): Update help text for the handle
1547 2012-08-14 Doug Evans <dje@google.com>
1549 * gdbtypes.c (struct extra): Delete, unused.
1551 * gdbtypes.c: Whitespace cleanup.
1552 (address_space_name_to_int): Remove "extern" from definition.
1553 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1555 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1556 TYPE_POINTER_TYPE (type).
1558 2012-08-14 Gary Benson <gbenson@redhat.com>
1560 * solib-svr4.c (svr4_free_library_list): Use free_so.
1562 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1564 * .gitignore: Add go-exp.c.
1566 2012-08-13 Doug Evans <dje@google.com>
1568 * value.c (show_convenience): Tweak comment.
1569 (_initialize_values): Mention convenience functions in the help text
1570 for "show convenience".
1572 2012-08-13 Yao Qi <yao@codesourcery.com>
1574 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1575 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1577 * eval.c (evaluate_subexp_standard): Likewise.
1578 * expprint.c (print_subexp_standard): Likewise.
1579 (dump_subexp_body_standard): Likewise.
1580 * parse.c (operator_length_standard): Likewise.
1582 2012-08-13 Yao Qi <yao@codesourcery.com>
1584 * std-operator.def: Remove OP_BITSTRING.
1585 * breakpoint.c (watchpoint_exp_is_const): Update.
1586 * eval.c (evaluate_subexp_standard): Remove handling to
1588 * expprint.c (print_subexp_standard): Likewise.
1589 (dump_subexp_body_standard): Likewise.
1590 * parse.c (operator_length_standard): Likewise.
1591 * valops.c (value_bitstring): Remove.
1592 * value.h: Remove the declaration of 'value_bitstring'.
1594 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1596 * linespec.c (find_methods): Remove unused variables `i1' and
1598 (decode_line_full): Likewise for `arg_start'.
1600 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1602 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1603 (zlib_decompress_section): Likewise for `section_data'.
1604 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1606 2012-08-10 Doug Evans <dje@google.com>
1608 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1609 * NEWS: Document them.
1610 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1612 * python/py-type.c (typy_array_1): New function.
1613 (typy_array): Call it.
1614 (typy_vector): New function.
1615 (type_object_methods): Add "vector".
1616 * python/lib/gdb/function/__init__.py: New file.
1617 * python/lib/gdb/function/strfns.py: New file.
1619 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1621 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1622 for TYPE_FIELD_BITPOS.
1623 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1625 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1628 * common/vec.h (VEC_merge): Define.
1629 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1630 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1631 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1632 * completer.c: Include gdb_signals.h.
1633 (signal_completer): Define.
1634 * completer.h (signal_completer): Add prototype.
1635 * infcmd.c (_initialize_infcmd): Assign the command
1636 completer for "signal" to handle_completer.
1637 * infrun.c: Include completer.h.
1638 (handle_completer): Define.
1639 (_initialize_infrun): Declare a new local variable c. Store the
1640 result of add_com("handle") to it. Assign the command
1641 completer for "handle" to handle_completer.
1643 2012-08-09 Yao Qi <yao@codesourcery.com>
1645 * cli/cli-decode.c (set_cmd_prefix): New.
1646 (lookup_cmd_for_prefixlist): New.
1647 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1648 of each cmd_list_element in *prefixlist.
1649 (add_setshow_cmd_full): set_cmd_prefix.
1650 (add_alias_cmd): Likewise.
1651 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1652 Declare 'auto_boolean_enums'.
1653 * cli/cli-setshow.c: Include "observer.h".
1654 (notify_command_param_changed_p): New.
1655 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1657 (do_setshow_command): Split it to ...
1658 (do_set_command, do_show_command): ... them. New.
1659 (do_set_command): Call observer_notify_command_param_changed if
1660 notify_command_param_changed_p returns true.
1661 (cmd_show_list): Caller update.
1662 * auto-load.c (set_auto_load_cmd): Likewise.
1663 * remote.c (show_remote_cmd): Likewise.
1664 * cli/cli-setshow.h: Update declarations.
1665 * top.c (execute_command): Call do_set_command and do_show_command.
1667 * NEWS: Mention new MI notification.
1668 * mi/mi-interp.c: Declare mi_command_param_changed.
1669 (mi_interpreter_init): Attach mi_command_param_changed to
1670 observer command_param_changed.
1671 (mi_command_param_changed): New.
1672 Remove mi_suppress_breakpoint_notifications.
1673 Define global variable mi_suppress_notification.
1674 (mi_breakpoint_created): Update.
1675 (mi_breakpoint_deleted): Likewise.
1676 (mi_breakpoint_modified): Likewise.
1677 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1678 'gdb-set' and set mi_suppress_notification.
1679 * mi/mi-main.h: (mi_suppress_notification): New struct.
1681 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1682 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1686 2012-08-09 Yao Qi <yao@codesourcery.com>
1688 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1689 (skiplist): Move it to skip.c.
1690 (init_cmd_lists): Remove code setting enablebreaklist and
1692 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1693 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1695 * gdbcmd.h: Likewise.
1696 * skip.c (_initialize_step_skip): Move 'skiplist' from
1699 2012-08-09 Yao Qi <yao@codesourcery.com>
1701 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1702 * gnu-nat.c, symfile.c: Likewise.
1704 2012-08-08 Aaron Gamble <agamble@google.com>
1706 * utils.c (prompt_for_continue_wait_time): New static global.
1707 (make_command_stats_cleanup): Initialize it.
1708 (report_command_stats): Subtract time waiting for user.
1709 (prompt_for_continue): Track time waiting for user.
1710 (defaulted_query): Track time waiting for user.
1712 2012-08-08 Doug Evans <dje@google.com>
1714 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1716 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1717 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1718 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1719 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1720 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1721 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1723 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1724 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1725 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1726 (dump_prefix_expression): Handle OP_TYPE.
1728 2012-08-08 Keith Seitz <keiths@redhat.com>
1730 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1733 2012-08-08 Doug Evans <dje@google.com>
1735 * linux-thread-db.c: #include "gdb_vecs.h".
1736 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1738 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1739 (thread_db_load_search): Use a vector to iterate over path elements.
1740 Handle text appearing after "$pdir".
1742 * gdb_string.h: Moved to ...
1743 * common/gdb_string.h: ... here.
1744 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1745 gdb_string.h and gdb_assert.h.
1747 2012-08-08 Yao Qi <yao@codesourcery.com>
1749 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1750 (tic6x_value_to_register): Likewise.
1751 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1752 and set_gdbarch_value_to_register.
1754 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 Jean-Marc Saffroy <saffroy@gmail.com>
1758 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1759 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1760 * gcore.c (gcore_create_callback): New function comment. Add modified
1761 parameter. Only write modified regions. Set SEC_READONLY exactly
1762 according to MODIFIED.
1763 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1764 the passed modified value to FUNC.
1765 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1766 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1767 first. New variables modified and has_anonymous. Parse the lines of
1768 smaps file. Add the passed MODIFIED value to FUNC.
1769 * procfs.c (find_memory_regions_callback): Add the passed modified
1772 2012-08-06 Tom Tromey <tromey@redhat.com>
1774 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1775 (dwarf2_frame_cache): Use it.
1776 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1777 cache initialization constraint.
1779 2012-08-06 Tom Tromey <tromey@redhat.com>
1782 * varobj.c (update_dynamic_varobj_children): Don't call
1785 2012-08-06 Tom Tromey <tromey@redhat.com>
1788 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1790 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1792 * NEWS: New entry for 'cd' default parameters.
1793 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1795 2012-08-03 Tom Tromey <tromey@redhat.com>
1797 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1800 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1802 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1803 to attempting lseek/write.
1804 (inf_child_fileio_pread): Likewise for pread.
1806 2012-08-02 Yao Qi <yao@codesourcery.com>
1808 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1809 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1810 add_setshow_zinteger_cmd.
1811 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1812 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1813 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1814 instead of add_setshow_zinteger_cmd.
1815 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1816 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1817 instead of add_setshow_zinteger_cmd.
1818 * frame.c (frame_debug): Add 'unsigned'.
1819 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1820 add_setshow_zinteger_cmd.
1821 * frame.h: Update the declaration of 'frame_debug'.
1822 * gdbtypes.c (overload_debug): Add 'unsigned'.
1823 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1824 add_setshow_zinteger_cmd.
1825 * inferior.h: Update declaration of 'debug_infrun'.
1826 * infrun.c (debug_infrun): Add 'unsigned'.
1827 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1828 add_setshow_zinteger_cmd.
1829 * jit.c (jit_debug): Add 'unsigned'.
1830 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1831 add_setshow_zinteger_cmd.
1832 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1833 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1834 instead of add_setshow_zinteger_cmd.
1835 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1836 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1837 add_setshow_zinteger_cmd.
1838 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1839 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1840 instead of add_setshow_zinteger_cmd.
1841 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1842 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1843 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1844 intead of add_setshow_zinteger_cmd.
1845 * mips-tdep.c (mips_debug): Add 'unsigned'.
1846 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1847 instead of add_setshow_zinteger_cmd.
1848 * monitor.c (monitor_debug): Add 'unsigned'.
1849 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1850 add_setshow_zinteger_cmd.
1851 * observer.c (observer_debug): Add 'unsigned'.
1852 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1853 add_setshow_zinteger_cmd.
1854 * parse.c (expressiondebug): Add 'unsigned'.
1855 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1856 add_setshow_zinteger_cmd.
1857 * record.c (record_debug): Add 'unsigned'.
1858 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1859 add_setshow_zinteger_cmd.
1860 * record.h: Update the declaration of 'record_debug'.
1861 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1862 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1863 add_setshow_zinteger_cmd.
1864 * serial.c (global_serial_debug_p): Add 'unsigned'.
1865 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1866 add_setshow_zinteger_cmd.
1867 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1868 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1869 add_setshow_zinteger_cmd.
1870 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1871 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1872 add_setshow_zinteger_cmd.
1873 * target.c (targetdebug): Add 'unsigned'.
1874 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1875 add_setshow_zinteger_cmd.
1876 * valops.c (overload_debug): Add 'unsigned'.
1877 * varobj.c (varobjdebug): Add 'unsigned'.
1878 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1879 add_setshow_zinteger_cmd.
1880 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1881 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1882 instead of add_setshow_zinteger_cmd.
1884 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1885 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1886 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1887 instead of add_setshow_zinteger_cmd.
1888 * gdbarch.c, gdbarch.h: Re-generated.
1890 2012-08-02 Yao Qi <yao@codesourcery.com>
1892 * nto-tdep.c: Don't include cli/cli-decode.h and
1894 (_initialize_nto_tdep): Remove.
1895 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1897 Remove macro nto_internal_debugging.
1899 2012-08-01 Richard Henderson <rth@redhat.com>
1901 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1902 (mep-*-*) [gdb_target_obs]: Likewise.
1904 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1906 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1907 linux_get_siginfo_type.
1909 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1913 (call_function_by_hand) <ON_STACK>: Call write_memory with
1914 gdbarch_breakpoint_from_pc, if possible.
1915 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1918 2012-07-31 Yao Qi <yao@codesourcery.com>
1920 * tracepoint.c: Add 'static' for some variables.
1922 2012-07-31 Yao Qi <yao@codesourcery.com>
1924 * go32-nat.c: Declare _initialize_go32_nat.
1925 * ser-go32.c: Declare _initialize_ser_dos.
1926 * top.c (do_chdir_cleanup): Add 'static'.
1928 2012-07-30 Keith Seitz <keiths@redhat.com>
1930 * linespec.c (linespec_lex_number): A number followed
1931 by quotes is a valid number, too.
1933 2012-07-30 Tom Tromey <tromey@redhat.com>
1935 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1937 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1939 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1940 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1942 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1944 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1945 invalid or reevaluated to prevent prevent references to possibly
1946 delete'd type objects being left in the varobj.
1948 2012-07-27 Tom Tromey <tromey@redhat.com>
1949 Jan Kratochvil <jan.kratochvil@redhat.com>
1951 * copying.awk: Print buffer-read-only and vi ro markers.
1952 * copying.c: Rebuild.
1953 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1954 * gdbarch.c, gdbarch.h: Rebuild.
1955 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1956 buffer-read-only and vi ro markers.
1957 * features/arm-with-iwmmxt.c: Rebuild.
1958 * features/arm-with-m-fpa-layout.c: Rebuild.
1959 * features/arm-with-m-vfp-d16.c: Rebuild.
1960 * features/arm-with-m.c: Rebuild.
1961 * features/arm-with-neon.c: Rebuild.
1962 * features/arm-with-vfpv2.c: Rebuild.
1963 * features/arm-with-vfpv3.c: Rebuild.
1964 * features/i386/amd64-avx-linux.c: Rebuild.
1965 * features/i386/amd64-avx.c: Rebuild.
1966 * features/i386/amd64-linux.c: Rebuild.
1967 * features/i386/amd64.c: Rebuild.
1968 * features/i386/i386-avx-linux.c: Rebuild.
1969 * features/i386/i386-avx.c: Rebuild.
1970 * features/i386/i386-linux.c: Rebuild.
1971 * features/i386/i386-mmx-linux.c: Rebuild.
1972 * features/i386/i386-mmx.c: Rebuild.
1973 * features/i386/i386.c: Rebuild.
1974 * features/i386/x32-avx-linux.c: Rebuild.
1975 * features/i386/x32-avx.c: Rebuild.
1976 * features/i386/x32-linux.c: Rebuild.
1977 * features/i386/x32.c: Rebuild.
1978 * features/mips-dsp-linux.c: Rebuild.
1979 * features/mips-linux.c: Rebuild.
1980 * features/mips64-dsp-linux.c: Rebuild.
1981 * features/mips64-linux.c: Rebuild.
1982 * features/rs6000/powerpc-32.c: Rebuild.
1983 * features/rs6000/powerpc-32l.c: Rebuild.
1984 * features/rs6000/powerpc-403.c: Rebuild.
1985 * features/rs6000/powerpc-403gc.c: Rebuild.
1986 * features/rs6000/powerpc-405.c: Rebuild.
1987 * features/rs6000/powerpc-505.c: Rebuild.
1988 * features/rs6000/powerpc-601.c: Rebuild.
1989 * features/rs6000/powerpc-602.c: Rebuild.
1990 * features/rs6000/powerpc-603.c: Rebuild.
1991 * features/rs6000/powerpc-604.c: Rebuild.
1992 * features/rs6000/powerpc-64.c: Rebuild.
1993 * features/rs6000/powerpc-64l.c: Rebuild.
1994 * features/rs6000/powerpc-7400.c: Rebuild.
1995 * features/rs6000/powerpc-750.c: Rebuild.
1996 * features/rs6000/powerpc-860.c: Rebuild.
1997 * features/rs6000/powerpc-altivec32.c: Rebuild.
1998 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1999 * features/rs6000/powerpc-altivec64.c: Rebuild.
2000 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2001 * features/rs6000/powerpc-cell32l.c: Rebuild.
2002 * features/rs6000/powerpc-cell64l.c: Rebuild.
2003 * features/rs6000/powerpc-e500.c: Rebuild.
2004 * features/rs6000/powerpc-e500l.c: Rebuild.
2005 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2006 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2007 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2008 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2009 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2010 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2011 * features/rs6000/powerpc-vsx32.c: Rebuild.
2012 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2013 * features/rs6000/powerpc-vsx64.c: Rebuild.
2014 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2015 * features/rs6000/rs6000.c: Rebuild.
2016 * features/s390-linux32.c: Rebuild.
2017 * features/s390-linux32v1.c: Rebuild.
2018 * features/s390-linux32v2.c: Rebuild.
2019 * features/s390-linux64.c: Rebuild.
2020 * features/s390-linux64v1.c: Rebuild.
2021 * features/s390-linux64v2.c: Rebuild.
2022 * features/s390x-linux64.c: Rebuild.
2023 * features/s390x-linux64v1.c: Rebuild.
2024 * features/s390x-linux64v2.c: Rebuild.
2025 * features/tic6x-c62x-linux.c: Rebuild.
2026 * features/tic6x-c62x.c: Rebuild.
2027 * features/tic6x-c64x-linux.c: Rebuild.
2028 * features/tic6x-c64x.c: Rebuild.
2029 * features/tic6x-c64xp-linux.c: Rebuild.
2030 * features/tic6x-c64xp.c: Rebuild.
2032 2012-07-27 Tom Tromey <tromey@redhat.com>
2034 * c-exp.y (classify_name): Avoid assignment in condition.
2036 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2038 * amd64-windows-tdep.c: Include "frame.h".
2039 (amd64_windows_skip_trampoline_code): New function.
2040 (amd64_windows_init_abi): Add trampoline registration.
2042 2012-07-27 Yao Qi <yao@codesourcery.com>
2044 * tracepoint.c (cur_traceframe_number): Remove.
2045 (set_tfile_traceframe): Remove.
2046 (tfile_trace_find, tfile_fetch_registers): Update callers.
2047 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2048 (tfile_open, tfile_trace_find): Likewise.
2050 2012-07-27 Yao Qi <yao@codesourcery.com>
2052 * thread.c (switch_to_thread): Don't call registers_changed.
2054 2012-07-26 Tom Tromey <tromey@redhat.com>
2056 * Makefile.in (SFILES): Remove objc-exp.y.
2057 (YYFILES): Remove objc-exp.c.
2058 (YYOBJ): Remove objc-exp.o.
2059 (local-maintainer-clean): Don't mention objc-exp.c.
2060 * c-exp.y: Include objc-lang.h.
2061 (%union) <class>: New field.
2062 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2063 (exp): Clone subscript production for OBJC_LBRAC. Add various
2064 Objective C productions.
2065 (msglist, msgarglist, msgarg): New productions.
2066 (array_mod, func_mod, operator): Clone productions for
2068 (parse_string_or_char): Handle '@' strings.
2069 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2070 (classify_name): Check la_name_of_this. Recognize ObjC class
2072 * objc-exp.y: Remove.
2073 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2074 * objc-lang.h (objc_parse, objc_error): Don't declare.
2076 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2078 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2080 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2082 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2085 2012-07-26 Tom Tromey <tromey@redhat.com>
2087 * copying.c: Rebuild.
2088 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2091 2012-07-26 Tom Tromey <tromey@redhat.com>
2093 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2095 (print_objfile_statistics): Likewise.
2096 (maintenance_print_symbols): Likewise.
2097 (maintenance_print_msymbols): Likewise.
2098 (maintenance_print_objfiles): Likewise.
2099 * psymtab.c (print_partial_symbols): Call QUIT.
2100 (maintenance_print_psymbols): Likewise. Don't modify
2102 * copying.c (show_copying_command): Don't modify immediate_quit.
2103 (show_warranty_command): Likewise.
2104 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2106 2012-07-26 Keith Seitz <keiths@redhat.com>
2108 * linespec.c (linespec_lexer_lex_number): The input
2109 is also a valid number if the next character is a comma
2112 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2114 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2117 2012-07-26 Tristan Gingold <gingold@adacore.com>
2119 * machoread.c: Include gdb_bfd.h.
2121 2012-07-26 Tristan Gingold <gingold@adacore.com>
2123 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2126 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2128 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2130 (dwarf2_evaluate_loc_desc): Likewise.
2131 (dwarf2_loc_desc_needs_frame): Likewise.
2132 (locexpr_describe_location_1): Likewise.
2133 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2135 (struct dwarf2_loclist_baton): Likewise.
2136 * dwarf2read.c (struct dwarf_block): Likewise.
2137 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2138 (decode_locdesc): Expand SIZE and I to size_t.
2140 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2142 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2144 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2146 * doublest.c (convert_doublest_to_floatformat): If the exponent
2147 is too small, treat the value as zero. If the exponent is too
2148 large, treat the value as infinity.
2150 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2152 * configure.ac: Add --enable-lmcheck configure option.
2153 * configure: Regenerate.
2155 2012-07-25 Tom Tromey <tromey@redhat.com>
2157 * NEWS: Mention maint info bfds.
2158 * gdb_bfd.c (all_bfds): New global.
2159 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2160 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2163 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2165 * configure.tgt: Add v850*-*-rtems*.
2167 2012-07-25 Tom Tromey <tromey@redhat.com>
2169 * macrotab.c (macro_bcache_str): Remove cast.
2171 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2173 * linespec.c (linespec_lexer_lex_number): Update comments,
2174 change the return and add check to make sure the input is
2175 the decimal numbers.
2176 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2177 false, call linespec_lexer_lex_string.
2179 2012-07-24 Tom Tromey <tromey@redhat.com>
2181 * symfile.c (symbol_file_add): Don't open BFD twice.
2183 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2185 * breakpoint.c (create_breakpoint): Store condition for pending
2188 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2190 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2191 (m68k_return_value): Handle complex types like structures.
2192 (m68k_svr4_return_value): Likewise.
2194 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2196 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2197 parameters to bfd_get_section_name.
2199 2012-07-24 Yao Qi <yao@codesourcery.com>
2201 * cli/cli-setshow.c: Handle case 'var_uinteger'
2202 and 'var_zuninteger' together. Handle case 'var_integer' and
2203 'var_zinteger' together.
2205 2012-07-23 Keith Seitz <keiths@redhat.com>
2207 * linespec.c (convert_linespec_to_sal): Don't add
2208 any symbols to the result vector if symbol_to_sal
2211 2012-07-23 Keith Seitz <keiths@redhat.com>
2213 * linespec.c (decode_objc): Record the function name
2216 2012-07-23 Tom Tromey <tromey@redhat.com>
2218 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2220 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2221 (map_vmap): Acquire a reference to the BFD.
2223 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2225 * p-valprint.c (pascal_object_print_value): Replace potentially
2226 unsafe alloca with xmalloc/xfree.
2227 * valops.c (search_struct_method): Likewise.
2229 2012-07-23 Tom Tromey <tromey@redhat.com>
2231 * solib-svr4.c (enable_break): Update.
2232 * bfd-target.h (target_bfd_reopen): Update documentation.
2234 2012-07-23 Tom Tromey <tromey@redhat.com>
2236 * symfile.c (separate_debug_file_exists): Update.
2237 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2238 (reread_symbols): Update.
2239 * elfread.c (build_id_verify): Update.
2240 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2241 bfd_open_maybe_remote.
2243 2012-07-23 Tom Tromey <tromey@redhat.com>
2245 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2247 2012-07-23 Tom Tromey <tromey@redhat.com>
2249 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2251 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2253 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2254 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2256 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2257 * objfiles.c (allocate_objfile): Acquire a new reference.
2258 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2259 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2260 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2261 a cleanup for 'nbfd'.
2262 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2264 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2265 make a cleanup for 'abfd'.
2266 (symbol_file_add): Make a BFD cleanup.
2268 2012-07-23 Tom Tromey <tromey@redhat.com>
2270 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2271 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2272 * corelow.c (core_open): Use gdb_bfd_fopen.
2273 * dsrec.c (load_srec): Use gdb_bfd_openr.
2274 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2275 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2276 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2277 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2278 (gdb_bfd_fdopenr): New functions.
2279 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2280 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2281 (gdb_bfd_fdopenr): Declare.
2282 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2283 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2284 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2285 gdb_bfd_openr_next_archived_file.
2286 (macho_check_dsym): Use gdb_bfd_openr.
2287 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2288 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2289 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2290 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2292 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2293 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2294 gdb_bfd_openr_next_archived_file.
2295 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2297 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2299 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2300 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2301 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2302 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2303 (symfile_bfd_open): Use gdb_bfd_fopen.
2304 (generic_load): Use gdb_bfd_openr.
2305 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2307 2012-07-23 Tom Tromey <tromey@redhat.com>
2309 * bfd-target.c (target_bfd_reopen): Update.
2310 * cli/cli-dump.c (bfd_openr_with_cleanup)
2311 (bfd_openw_with_cleanup): Update.
2312 * corelow.c (core_open): Update.
2313 * dsrec.c (load_srec): Update.
2314 * exec.c (exec_file_attach): Update.
2315 * gcore.c (create_gcore_bfd): Update.
2316 * gdb_bfd.c (gdb_bfd_ref): Return void.
2317 (gdb_bfd_open): Update.
2318 * gdb_bfd.h (gdb_bfd_ref): Return void.
2320 * jit.c (jit_bfd_try_read_symtab): Update.
2321 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2322 * machoread.c (macho_symfile_read_all_oso): Update.
2323 (macho_check_dsym): Update.
2324 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2325 * remote-m32r-sdi.c (m32r_load): Update.
2326 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2327 * rs6000-nat.c (add_vmap): Update.
2328 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2330 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2331 * solib-spu.c (spu_bfd_open): Update.
2332 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2333 * spu-linux-nat.c (spu_bfd_open): Update.
2334 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2335 (generic_load): Update.
2336 * windows-nat.c (windows_make_so): Update.
2338 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2340 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2342 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2344 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2345 SIGTRAMP_FRAME unwinding.
2347 2012-07-20 Doug Evans <dje@google.com>
2349 * NEWS: Document new options "set/show use-deprecated-index-sections",
2350 and delete reference to --use-deprecated-index-sections.
2351 * symfile.h (use_deprecated_index_sections): Delete.
2352 * dwarf2read.c (use_deprecated_index_sections): Make static.
2353 (read_index_from_section): Update wording of how to load
2354 deprecated index sections.
2355 (_initialize_dwarf2_read): New options
2356 "set/show use-deprecated-index-sections".
2357 * main.c (captured_main): Delete --use-deprecated-index-sections.
2359 2012-07-20 Pedro Alves <palves@redhat.com>
2364 * infrun.c (handle_inferior_event) <new thread>: Don't special
2365 case minus_one_ptid.
2366 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2367 * linux-thread-db.c (thread_get_info_callback): Don't return early
2368 if the thread is zombie.
2369 (thread_from_lwp): Change return type to void. Rewrite stale
2371 (attach_thread): Don't return early if the thread is zombie,
2372 instead set its "dying" flag.
2373 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2374 (find_new_threads_callback): Don't return early if the thread is
2377 2012-07-20 Pedro Alves <palves@redhat.com>
2379 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2380 * target.c (target_wait): Likewise.
2381 (str_comma_list_concat_elem, do_option, target_options_to_string):
2383 * target.h (target_options_to_string): Declare.
2385 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2386 Tom Tromey <tromey@redhat.com>
2388 * dwarf2read.c (dwarf_decode_macros)
2389 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2390 DW_MACRO_GNU_transparent_include_alt>: New cases.
2391 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2392 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2394 2012-07-20 Tom Tromey <tromey@redhat.com>
2396 * dwarf2read.c (try_open_dwo_file): Don't call
2397 gdb_bfd_stash_filename.
2399 2012-07-20 Pedro Alves <palves@redhat.com>
2401 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2402 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2403 (i386_process_record): Tweak description comments.
2405 2012-07-20 Pedro Alves <palves@redhat.com>
2407 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2408 (i386_process_record): Use record_read_memory.
2409 * record.c (record_read_memory): New function.
2410 (record_arch_list_add_mem, record_exec_insn): Use
2412 * record.h (record_read_memory): Declare.
2414 2012-07-20 Yao Qi <yao@codesourcery.com>
2416 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2419 2012-07-19 Pedro Alves <palves@redhat.com>
2421 * record.c (record_resume): Ask the target beneath to report all
2424 2012-07-19 Doug Evans <dje@google.com>
2426 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2427 there's no section at address zero.
2428 (dwarf2_record_block_ranges): Ditto.
2430 2012-07-19 Yao Qi <yao@codesourcery.com>
2432 * command.h, remote.c: Fix a typo in comment.
2434 2012-07-19 Tom Tromey <tromey@redhat.com>
2437 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2438 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2439 OP_DECLTYPE>: New cases.
2440 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2441 (type_exp): Add new productions.
2442 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2444 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2446 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2447 OP_DECLTYPE>: New case.
2448 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2450 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2451 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2453 2012-07-19 Tom Tromey <tromey@redhat.com>
2455 * c-exp.y (enum token_flags): New.
2456 (struct token) <cxx_only>: Remove.
2458 (tokentab3, tokentab2, ident_tokens): Update.
2459 (lex_one_token): Update. Handle FLAG_SHADOW.
2461 2012-07-19 Tom Tromey <tromey@redhat.com>
2463 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2464 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2465 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2466 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2467 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2468 type_exp production where appropriate.
2469 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2470 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2471 <UNOP_MEMVAL_TYPE>: New case.
2472 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2473 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2474 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2475 <UNOP_MEMVAL_TYPE>: New case.
2476 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2477 UNOP_REINTERPRET_CAST>: Update.
2478 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2479 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2480 UNOP_REINTERPRET_CAST>: Update.
2481 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2482 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2483 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2486 2012-07-19 Yao Qi <yao@codesourcery.com>
2487 Jan Kratochvil <jan.kratochvil@redhat.com>
2489 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2490 and case 'var_optional_filename' together.
2491 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2492 instead of add_setshow_optional_filename_cmd for setshow command
2493 'args'. Set completer for 'set args'.
2495 2012-07-18 Doug Evans <dje@google.com>
2497 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2498 * common/gdb_vecs.c: New file, contents from utils.c.
2499 * common/host-defs.h: New file, contents from defs.h.
2500 * utils.h: New file, contents from defs.h.
2501 * defs.h: Move all declarations of objects defined in utils.c
2502 to utils.h (except QUIT() and related).
2503 #include "utils.h", "host-defs.h".
2504 * probe.h (probe_p): Move here from gdb_vecs.h.
2505 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2506 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2507 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2508 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2509 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2510 (COMMON_OBS): Add gdb_vecs.o.
2511 (gdb_vecs.o): New rule.
2513 2012-07-18 Keith Seitz <keiths@redhat.com>
2515 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2516 parameter. If non-zero, use SYMNAME as the canonical name
2519 (convert_linespec_to_sals): Use add_sal_to_sals for
2521 (decode_line_full): No need to "fill in missing canonical names"
2522 anymore. Simply make cleanups for the allocated names.
2524 2012-07-18 Keith Seitz <keiths@redhat.com>
2526 * linespec.c (struct linespec): Constify expression,
2527 source_filename, function_name, and label_name.
2528 (symbol_not_found_error): Make all parameters const.
2529 (linespec_parser_delete): No need to check for NULL
2530 when using xfree. Cast const char * to char * for xfree.
2532 2012-07-18 Keith Seitz <keiths@redhat.com>
2534 * breakpoint.c (invalid_thread_id_error): New function.
2535 (find_condition_and_thread): Use invalid_thread_id_error.
2536 (watch_command_1): Likewise.
2538 2012-07-18 Tom Tromey <tromey@redhat.com>
2540 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2541 * contrib/cc-with-tweaks.sh: New file.
2543 2012-07-18 Tom Tromey <tromey@redhat.com>
2545 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2546 (locate_dwz_sections): Recognize .gdb_index.
2547 (create_cus_from_index_list): New function.
2548 (create_cus_from_index): Use it. Handle .dwz data.
2549 (read_index_from_section): New function, extracted from
2551 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2554 2012-07-18 Tom Tromey <tromey@redhat.com>
2556 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2557 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2558 <is_dwz>: New field.
2559 (struct dwz_file): New.
2560 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2561 (locate_dwz_sections, dwarf2_get_dwz_file)
2562 (get_abbrev_section_for_cu): New functions.
2563 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2564 (read_and_check_type_unit_head): Add abbrev_section argument.
2565 (create_debug_types_hash_table): Update.
2566 (init_cutu_and_read_dies): Use proper abbrev section.
2567 (init_cutu_and_read_dies_no_follow): Likewise.
2568 (set_partial_user): Do nothing if PST==NULL.
2569 (read_comp_units_from_section): New function.
2570 (create_all_comp_units): Use it.
2571 (scan_partial_symbols, partial_die_parent_scope): Update.
2572 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2573 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2574 (find_partial_die): Add offset_in_dwz argument. Update.
2575 (guess_partial_die_structure_name, fixup_partial_die): Update.
2576 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2577 DW_FORM_GNU_strp_alt.
2578 (read_indirect_string_from_dwz): New function.
2579 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2580 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2581 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2582 (follow_die_offset): Add offset_in_dwz argument.
2583 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2584 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2585 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2586 Handle new macro forms.
2587 (dwarf_decode_macros): Update.
2588 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2589 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2590 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2591 (create_debug_types_hash_table): Use correct abbrev section.
2592 (get_debug_line_section): New function.
2593 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2594 (process_full_comp_unit): Pass 'required' argument to
2595 end_symtab_get_static_block.
2596 * buildsym.h (end_symtab_get_static_block): Update.
2597 * buildsym.c (end_symtab_get_static_block): Add 'required'
2599 (end_symtab, end_expandable_symtab): Update.
2601 2012-07-18 Tom Tromey <tromey@redhat.com>
2603 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2605 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2606 (zlib_decompress_section): Remove.
2607 (dwarf2_read_section): Use gdb_bfd_map_section.
2608 (munmap_section_buffer): Remove.
2609 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2610 munmap_section_buffer.
2611 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2612 (struct gdb_bfd_section_data): New.
2613 (free_one_bfd_section): New function.
2614 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2615 (get_section_descriptor, zlib_decompress_section)
2616 (gdb_bfd_map_section): New functions.
2617 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2619 2012-07-18 Tom Tromey <tromey@redhat.com>
2621 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2623 2012-07-18 Tom Tromey <tromey@redhat.com>
2625 * gdb_bfd.c (struct gdb_bfd_data): New.
2626 (gdb_bfd_cache): New global.
2627 (struct gdb_bfd_cache_search): New.
2628 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2629 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2630 * gdb_bfd.h (gdb_bfd_open): Declare.
2632 2012-07-18 Tom Tromey <tromey@redhat.com>
2634 * utils.c (make_cleanup_bfd_unref): Rename from
2635 make_cleanup_bfd_close.
2636 * defs.h (make_cleanup_bfd_unref): Rename from
2637 make_cleanup_bfd_close.
2638 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2639 (bfd_openw_with_cleanup): Update.
2640 * corelow.c (core_open): Update.
2641 * dsrec.c (load_srec): Update.
2642 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2643 * remote-m32r-sdi.c (m32r_load): Update.
2644 * remote-mips.c (mips_load_srec): Update.
2645 (pmon_load_fast): Update.
2646 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2648 (darwin_bfd_open): Update.
2649 * solib.c (solib_bfd_fopen): Update.
2650 * symfile-mem.c (symbol_file_add_from_memory): Update.
2651 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2652 (symfile_bfd_open): Update.
2653 (generic_load): Update.
2655 2012-07-18 Tom Tromey <tromey@redhat.com>
2657 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2658 (pmon_load_fast): Likewise.
2659 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2660 (m32r_upload_command): Likewise.
2661 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2662 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2663 Use make_cleanup_bfd_close.
2665 2012-07-18 Tom Tromey <tromey@redhat.com>
2667 * symfile.c (symfile_bfd_open): Don't copy name. Call
2668 gdb_bfd_stash_filename.
2669 (load_command): Open the new BFD before freeing the old.
2670 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2671 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2672 Call gdb_bfd_stash_filename.
2673 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2674 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2675 gdb_bfd_stash_filename.
2676 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2677 Free found_pathname.
2678 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2679 gdb_bfd_stash_filename.
2680 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2681 * machoread.c (macho_add_oso_symfile): Call
2682 gdb_bfd_stash_filename.
2683 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2684 gdb_bfd_stash_filename.
2685 (macho_check_dsym): Don't copy filename. Call
2686 gdb_bfd_stash_filename.
2687 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2688 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2689 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2690 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2691 * exec.c (exec_close): Don't free the BFD's filename.
2692 (exec_file_attach): Don't copy the filename. Call
2693 gdb_bfd_stash_filename.
2694 * corelow.c (core_close): Don't free the BFD's filename.
2695 (core_open): Call gdb_bfd_stash_filename.
2696 * corefile.c (reopen_exec_file): Remove #if 0 code.
2697 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2699 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2701 2012-07-18 Tom Tromey <tromey@redhat.com>
2703 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2705 (free_dwo_file): Use gdb_bfd_unref.
2706 * cli/cli-dump.c: Include gdb_bfd.h.
2707 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2708 (bfd_openr_with_cleanup): Likewise.
2709 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2711 * utils.c: Include gdb_bfd.h.
2712 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2713 * symfile.c: Include gdb_bfd.h.
2714 (separate_debug_file_exists): Use gdb_bfd_unref.
2715 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2716 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2717 (generic_load): Use gdb_bfd_ref.
2718 (reread_symbols): Use gdb_bfd_unref.
2719 * symfile-mem.c: Include gdb_bfd.h.
2720 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2721 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2722 * solib.c: Include gdb_bfd.h.
2723 (solib_bfd_fopen): Use gdb_bfd_ref.
2724 (solib_bfd_open): Use gdb_bfd_unref.
2725 (free_so_symbols): Use gdb_bfd_unref.
2726 (reload_shared_libraries_1): Use gdb_bfd_unref.
2727 * solib-spu.c: Include gdb_bfd.h.
2728 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2729 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2731 * solib-frv.c: Include gdb_bfd.h.
2732 (enable_break2): Use gdb_bfd_unref.
2733 * solib-dsbt.c: Include gdb_bfd.h.
2734 (enable_break2): Use gdb_bfd_unref.
2735 * solib-darwin.c: Include gdb_bfd.h.
2736 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2738 (darwin_bfd_open): Use gdb_bfd_unref.
2739 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2740 * remote-mips.c: Include gdb_bfd.h.
2741 (mips_load_srec): Use gdb_bfd_ref.
2742 (pmon_load_fast): Use gdb_bfd_ref.
2743 * remote-m32r-sdi.c: Include gdb_bfd.h.
2744 (m32r_load): Use gdb_bfd_ref.
2745 * record.c: Include gdb_bfd.h.
2746 (record_save_cleanups): Use gdb_bfd_unref.
2747 (cmd_record_save): Use gdb_bfd_unref.
2748 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2750 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2751 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2752 * objfiles.c: Include gdb_bfd.h.
2753 (free_objfile): Use gdb_bfd_unref.
2754 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2756 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2757 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2758 (macho_check_dsym): Likewise.
2759 * m32r-rom.c: Include gdb_bfd.h.
2760 (m32r_load): Use gdb_bfd_ref.
2761 (m32r_upload_command): Use gdb_bfd_ref.
2762 * jit.c: Include gdb_bfd.h.
2763 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2764 * gdb_bfd.h: New file.
2765 * gdb_bfd.c: New file.
2766 * gcore.c: Include gdb_bfd.h.
2767 (create_gcore_bfd): Use gdb_bfd_ref.
2768 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2769 (gcore_command): Use gdb_bfd_unref.
2770 * exec.c: Include gdb_bfd.h.
2771 (exec_close): Use gdb_bfd_unref.
2772 (exec_close_1): Use gdb_bfd_unref.
2773 (exec_file_attach): Use gdb_bfd_ref.
2774 * elfread.c: Include gdb_bfd.h.
2775 (build_id_verify): Use gdb_bfd_unref.
2776 * dsrec.c: Include gdb_bfd.h.
2777 (load_srec): Use gdb_bfd_ref.
2778 * corelow.c: Include gdb_bfd.h.
2779 (core_close): Use gdb_bfd_unref.
2780 (core_open): Use gdb_bfd_ref.
2781 * bfd-target.c: Include gdb_bfd.h.
2782 (target_bfd_xclose): Use gdb_bfd_unref.
2783 (target_bfd_reopen): Use gdb_bfd_ref.
2784 * Makefile.in (SFILES): Add gdb_bfd.c.
2785 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2786 (COMMON_OBS): Add gdb_bfd.o.
2788 2012-07-18 Keith Seitz <keiths@redhat.com>
2790 * breakpoint.c (find_condition_and_thread): Initialize
2792 (create_breakpiont): find_condition_and_thread will now
2793 initialize COND_STRING, THREAD, and REST (and TASK).
2794 (addr_string_to_sals): Likewise.
2796 2012-07-18 Pedro Alves <palves@redhat.com>
2798 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2799 Pull the single step breakpoints out of the target.
2801 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2803 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2804 * stap-probe.c (compile_probe_arg): Likewise.
2806 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2808 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2809 (elf_compile_to_ax): Likewise.
2810 * infrun.c (insert_exception_resume_from_probe): Likewise.
2811 (check_exception_resume): Remove `objfile' variable.
2812 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2813 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2814 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2815 (compare_entries): Rename to...
2816 (compare_probes): ...this. Adjust function to work with
2817 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2819 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2821 (print_ui_out_info): Adjust argument to be `struct probe *'.
2822 (info_probes_for_ops): Adjust internal computations to use
2824 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2825 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2826 gen_info_probes_table_values>: Remove `objfile' argument.
2827 (struct probe) <objfile>: New field.
2828 (find_probe_by_pc): Remove `objfile' argument.
2829 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2830 (stap_get_probe_argument_count): Likewise.
2831 (stap_get_arg): Likewise.
2832 (stap_evaluate_probe_argument): Likewise.
2833 (stap_compile_to_ax): Likewise.
2834 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2835 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2836 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2837 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2838 sym_compile_to_ax>: Likewise.
2840 2012-07-18 Terry Guo <terry.guo@arm.com>
2843 * defs.h (GDB_MI_MSG_WIDTH): New.
2844 * ser_base (ser_base_read_error_fd): New function.
2845 (do_ser_base_readchar): Poll error file descriptor as well as
2847 (generic_readchar): Refactor error handling.
2849 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2851 * NEWS: Create a new section for the next release branch.
2852 Rename the section of the current branch, now that it has
2855 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2857 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2858 * version.in: Bump version to 7.5.50.20120718-cvs.
2860 2012-07-17 Keith Seitz <keiths@redhat.com>
2862 * linespec.c (linespec_parse_line_offset): Make parameter
2865 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2868 * f-valprint.c (info_common_command): New variable frame_id.
2869 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2870 * printcmd.c (print_variable_and_value): Extend function comment.
2871 Add comment for invalidated FRAME.
2872 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2873 FI form FRAME_ID after each print_frame_local_vars.
2874 (struct print_variable_and_value_data): Change frame to frame_id.
2875 (do_print_variable_and_value): New variable frame, initialize it from
2876 p->frame_id. Add comment for invalidated FRAME.
2877 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2878 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2879 for invalidated FRAME.
2881 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2882 Pedro Alves <palves@redhat.com>
2884 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2887 2012-07-16 Tom Tromey <tromey@redhat.com>
2889 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2891 2012-07-15 Doug Evans <dje@google.com>
2893 * dwarf2read.c (stmt_list_hash): New struct.
2894 (type_unit_group): Embed "per_cu" member, remove pointer.
2895 New union member "t", move member "tus" into it, all uses updated.
2896 New member "hash", replaces member "line_offset, all uses updated.
2897 (quick_file_names): Replace member "offset" with "hash", all uses
2899 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2900 (hash_file_name_entry, eq_file_name_entry): Call them.
2901 (hash_type_unit_group, eq_type_unit_group): Ditto.
2902 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2903 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2904 (dw2_get_file_names): Update.
2905 (create_type_unit_group): Replace "per_cu" arg with "cu".
2906 All callers updated. Fix "quick" (.gdb_index) handling.
2907 (get_type_unit_group): Replace "per_cu" arg with "cu".
2908 All callers updated.
2909 (build_type_unit_groups): Don't reset tu_stats.
2911 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2912 "tab_cur_size". Change member "tab" to be a htab_t.
2913 (create_filename_seen_cache): Update.
2914 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2915 (filename_seen): Update.
2917 2012-07-13 Doug Evans <dje@google.com>
2919 * symtab.c (filename_seen): Update comment.
2921 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2922 Doug Evans <dje@google.com>
2924 * buildsym.c (end_symtab_1): Split it to ...
2925 (end_symtab_get_static_block): ... this ...
2926 (end_symtab_from_static_block): ... and this function.
2927 (end_symtab, end_expandable_symtab): Call them.
2928 * buildsym.h (end_symtab_get_static_block)
2929 (end_symtab_from_static_block): New declarations.
2930 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2931 Set its valid CU ranges.
2933 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2935 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2936 DW_OP_GNU_parameter_ref.
2938 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2941 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2943 2012-07-13 Doug Evans <dje@google.com>
2945 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2946 (filename_seen_cache): New struct.
2947 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2948 (create_filename_seen_cache): New function.
2949 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2950 (filename_seen): Delete arg "first". New arg "cache". All callers
2952 (output_source_filename_data): New struct.
2953 (output_source_filename): Delete arg "first". New arg "data".
2954 All callers updated.
2955 (sources_info): Delete local "first". New locals "data", "cleanups".
2956 Rewrite to use filename_seen_cache.
2957 (add_partial_filename_data): Delete member "first". New member
2958 "filename_seen_cache". All uses updated.
2959 (make_source_files_completion_list): Rewrite to use
2960 filename_seen_cache.
2962 2012-07-12 Doug Evans <dje@google.com>
2964 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2966 2012-07-10 Doug Evans <dje@google.com>
2969 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2970 all_type_unit_groups, type_unit_groups, tu_stats.
2971 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2972 All uses updated. Add type_unit_group to union "s".
2973 (type_unit_group): New struct.
2974 (IS_TYPE_UNIT_GROUP): New macro.
2975 (abbrev_table): Delete unused member "section".
2976 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2977 (dw2_get_cu): Assert not used with type_unit_group.
2978 (dw2_get_primary_cu): New function.
2979 (dw2_build_type_unit_groups_reader): New function.
2980 (dw2_build_type_unit_groups): New function.
2981 (dw2_get_file_names): Assert not called on type units.
2982 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2983 Redo loop to iterate over type unit groups instead of type units.
2984 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2985 (read_abbrev_offset): New function.
2986 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2988 (create_partial_symtab): New function.
2989 (process_psymtab_comp_unit_reader): Assert not used with type units.
2990 Call create_partial_symtab.
2991 (process_psymtab_type_unit): Delete.
2992 (hash_type_unit_group, eq_type_unit_group): New functions.
2993 (allocate_type_unit_groups_table): New function.
2994 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2995 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2996 (create_type_unit_group, get_type_unit_group): New functions.
2997 (tu_abbrev_offset): New struct.
2998 (sort_tu_by_abbrev_offset): New function.
2999 (add_type_unit_group_to_table): New function.
3000 (build_type_unit_groups): New function.
3001 (build_type_psymtabs_reader): New function.
3002 (build_type_psymtab_dependencies): New function.
3003 (build_type_psymtabs): Rewrite.
3004 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3005 is seen in a type unit.
3006 (process_queue): Move symtab expansion debugging printfs here.
3007 Call process_full_type_unit for type units.
3008 (compute_symtab_includes): Assert not called for type units.
3009 (process_cu_includes): Don't call compute_symtab_includes for
3011 (process_full_type_unit): New function.
3012 (process_imported_unit_die): Flag an error if called for type units.
3013 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3014 updated. Assert not called for type units.
3015 (read_file_scope): Call dwarf2_start_symtab.
3016 (setup_type_unit_groups): New function.
3017 (read_type_unit_scope): Rewrite.
3018 (abbrev_table_read_table): Initialize abbrev_table->offset.
3019 (abbrev_table_free_cleanup): New function.
3020 (dwarf2_start_symtab): New function.
3021 (load_full_type_unit): Assert not called for type unit groups.
3022 * buildsym.c (finish_block_internal): New arg "expandable".
3023 All callers updated.
3024 (start_symtab): Move most contents to ...
3025 (restart_symtab): ... here. New function.
3026 (reset_symtab_globals): New function.
3027 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3028 Call reset_symtab_globals.
3029 (end_symtab, end_expandable_symtab): New functions.
3030 (set_missing_symtab, augment_type_symtab): New functions.
3031 * buildsym.h (end_expandable_symtab): Declare.
3032 (augment_type_symtab, restart_symtab): Declare.
3033 * psympriv.h (struct partial_symtab): New member "anonymous".
3034 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3036 (read_psymtabs_with_filename): Ditto.
3037 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3038 (expand_symtabs_matching_via_partial): Ditto.
3039 (dump_psymtab): Update.
3040 * dictionary.c (dict_add_pending): New function.
3041 * dictionary.h (dict_add_pending): Declare.
3043 2012-07-09 Doug Evans <dje@google.com>
3045 * buildsym.c (start_subfile): Remove unnecessary check for
3048 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3050 * dwarf2read.c (load_full_type_unit): Simplify.
3052 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3053 to struct signatured_type **. All uses updated.
3055 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3056 All callers updated.
3058 2012-07-09 Tom Tromey <tromey@redhat.com>
3060 * c-exp.y (check_parameter_typelist): New function.
3061 (parameter_typelist): Call it.
3062 * eval.c (make_params): Handle '(void)' case.
3063 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3066 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3068 * common/linux-ptrace.c: Include gdb_assert.h.
3069 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3070 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3072 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3074 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3075 * linux-nat.c (linux_child_post_attach)
3076 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3078 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3081 nptl <2.7 bug workaround for core files.
3083 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3087 (save_siginfo): Remove.
3088 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3090 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3091 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3092 * linux-nat.h (struct lwp_info): Remove field siginfo.
3094 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3096 Code cleanup for the next patch.
3097 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3098 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3100 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3101 (ia64_linux_stopped_data_address):
3102 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3104 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3105 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3106 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3109 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3112 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3113 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3115 2012-07-06 Tom Tromey <tromey@redhat.com>
3117 * c-exp.y (DOTDOTDOT): New token.
3118 (func_mod, exp): Use parameter_typelist.
3119 (parameter_typelist): New production.
3120 (tokentab3): Add "..." token.
3121 * eval.c (make_params): Handle varargs.
3122 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3125 2012-07-06 Tom Tromey <tromey@redhat.com>
3128 * c-exp.y (%union) <tvec>: Change type.
3129 (func_mod): Now uses <tvec> type.
3130 (exp): Update for tvec change.
3131 (direct_abs_decl): Push the typelist.
3132 (func_mod): Return a typelist.
3133 (nonempty_typelist): Update for tvec change.
3134 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3135 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3136 * parse.c (pop_type_list): New function.
3137 (push_typelist): New function.
3138 (follow_types): Handle tp_function_with_arguments.
3139 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3140 (enum type_pieces) <tp_function_with_arguments>: New constant.
3141 (union type_stack_elt) <typelist_val>: New field.
3142 (push_typelist): Declare.
3144 2012-07-06 Tom Tromey <tromey@redhat.com>
3146 * c-exp.y (%union) <type_stack>: New field.
3147 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3148 (ptr_operator_ts): New production.
3150 * parse.c (type_stack_reserve): New function.
3151 (check_type_stack_depth): Use it.
3152 (pop_type_stack, append_type_stack, push_type_stack)
3153 (get_type_stack, type_stack_cleanup): New functions.
3154 (follow_types): Handle tp_type_stack.
3155 (_initialize_parse): Simplify initialization.
3156 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3158 (union type_stack_elt) <stack_val>: New field.
3159 (get_type_stack, append_type_stack, push_type_stack)
3160 (type_stack_cleanup): Declare.
3162 2012-07-06 Tom Tromey <tromey@redhat.com>
3164 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3166 (struct type_stack): New.
3167 * parse.c (type_stack, type_stack_size, type_stack_depth):
3169 (type_stack): New global.
3170 (parse_exp_in_context, check_type_stack_depth)
3171 (insert_into_type_stack, insert_type, push_type, push_type_int)
3172 (insert_type_address_space, pop_type, pop_type_int)
3173 (_initialize_parse): Update.
3175 2012-07-06 Tom Tromey <tromey@redhat.com>
3177 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3180 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3182 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3184 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3185 Jan Kratochvil <jan.kratochvil@redhat.com>
3187 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3188 alloca with xmalloc/xfree.
3190 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3192 * MAINTAINERS (Write After Approval): Add myself to the list.
3194 2012-07-05 Doug Evans <dje@google.com>
3196 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3198 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3200 * ax-gdb.c (cli/cli-utils.h): New include.
3201 (linespec.h): Ditto.
3202 (agent_eval_command_one): New function.
3203 (agent_command_1): Ditto.
3204 (agent_command): Call function agent_command_1.
3205 (agent_eval_command): Ditto.
3206 (_initialize_ax_gdb): Change help for "maint agent"
3207 and "maint agent-eval".
3209 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3211 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3212 * cli/cli-utils.c (check_for_argument): New function.
3213 * cli/cli-utils.h (check_for_argument): Ditto.
3215 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3217 * NEWS: Mention x32 ABI support.
3219 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3221 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3222 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3224 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3225 and pc_regnum_from_eax to -1. Update SP regnum from
3226 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3229 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3232 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3235 * dwarf2expr.h: Include gdbtypes.h.
3236 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3237 these forward declarations.
3238 (cu_offset, sect_offset): Move these ...
3239 * gdbtypes.h: Remove include dwarf2expr.h.
3240 (cu_offset, sect_offset): ... here.
3242 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3244 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3245 (amd64_linux_sigtramp_code): This.
3246 (amd64_x32_linux_sigtramp_code): New.
3247 (LINUX_SIGTRAMP_LEN): Updated.
3248 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3250 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3252 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3254 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3256 * config.in: Regenerate.
3257 * configure: Regenerate.
3258 * configure.ac: Remove check for gnu/libc-version.h.
3259 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3261 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3262 variables libc_version, libc_major and libc_minor. Replace sscanf by
3263 inferior_has_bug. Extend the comment.
3265 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 * linux-thread-db.c (inferior_has_bug): New function.
3268 (thread_db_find_new_threads_silently): Return boolean as checked by
3269 inferior_has_bug, describe it in the comments.
3270 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3271 earlier. Abort the initialization if it returned non-zero.
3272 (thread_db_new_objfile): Exclude debug files.
3273 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3276 2012-07-02 Doug Evans <dje@google.com>
3278 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3279 related to queue management.
3281 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3282 instead of "debug dwarf2-die" in debugging printfs.
3283 (create_debug_info_hash_table_reader): Ditto.
3284 (create_debug_info_hash_table): Ditto.
3285 (init_dwo_file): Ditto.
3286 (init_cutu_and_read_dies): Add debugging printf.
3287 (init_cutu_and_read_dies_no_follow): Ditto.
3288 (process_psymtab_comp_unit_reader): Ditto.
3290 2012-07-02 Stan Shebs <stan@codesourcery.com>
3292 Add target-side support for dynamic printf.
3293 * NEWS: Mention the additional style.
3294 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3295 (struct bp_location): New field cmd_bytecode.
3296 * breakpoint.c: Include format.h.
3297 (disconnected_dprintf): New global.
3298 (parse_cmd_to_aexpr): New function.
3299 (build_target_command_list): New function.
3300 (insert_bp_location): Call it.
3301 (remove_breakpoints_pid): Skip dprintf breakpoints.
3302 (print_one_breakpoint_location): Ditto.
3303 (dprintf_style_agent): New global.
3304 (dprintf_style_enums): Add dprintf_style_agent.
3305 (update_dprintf_command_list): Add agent case.
3306 (agent_printf_command): New function.
3307 (_initialize_breakpoint): Add new commands.
3308 * common/ax.def (printf): New bytecode.
3309 * ax.h (ax_string): Declare.
3310 * ax-gdb.h (gen_printf): Declare.
3311 * ax-gdb.c: Include cli-utils.h, format.h.
3312 (gen_printf): New function.
3313 (maint_agent_print_command): New function.
3314 (_initialize_ax_gdb): Add maint agent-printf command.
3315 * ax-general.c (ax_string): New function.
3316 (ax_print): Add printf disassembly.
3317 * Makefile.in (SFILES): Add format.c
3318 (COMMON_OBS): Add format.o.
3319 * common/format.h: New file.
3320 * common/format.c: New file.
3321 * printcmd.c: Include format.h.
3322 (ui_printf): Call parse_format_string.
3323 * remote.c (remote_state): New field breakpoint_commands.
3324 (PACKET_BreakpointCommands): New enum.
3325 (remote_breakpoint_commands_feature): New function.
3326 (remote_protocol_features): Add new BreakpointCommands entry.
3327 (remote_can_run_breakpoint_commands): New function.
3328 (remote_add_target_side_commands): New function.
3329 (remote_insert_breakpoint): Call it.
3330 (remote_insert_hw_breakpoint): Ditto.
3331 (_initialize_remote): Add new packet configuration for
3332 target-side breakpoint commands.
3333 * target.h (struct target_ops): New field
3334 to_can_run_breakpoint_commands.
3335 (target_can_run_breakpoint_commands): New macro.
3336 * target.c (update_current_target): Handle
3337 to_can_run_breakpoint_commands.
3339 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3341 Execute -ix and -iex only after system and user gdbinit files.
3342 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3343 processing down after gdbinit files.
3345 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3347 Add fnmatch-gnu module.
3348 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3349 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3350 * gnulib/aclocal.m4: Regenerate.
3351 * gnulib/config.in: Regenerate.
3352 * gnulib/configure: Regenerate.
3353 * gnulib/import/dummy.c: Remove.
3354 * gnulib/import/Makefile.am: Regenerate.
3355 * gnulib/import/Makefile.in: Likewise.
3356 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3357 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3358 * gnulib/import/alloca.c: New file.
3359 * gnulib/import/alloca.in.h: Likewise.
3360 * gnulib/import/config.charset: Likewise.
3361 * gnulib/import/fnmatch.c: Likewise.
3362 * gnulib/import/fnmatch.in.h: Likewise.
3363 * gnulib/import/fnmatch_loop.c: Likewise.
3364 * gnulib/import/localcharset.c: Likewise.
3365 * gnulib/import/localcharset.h: Likewise.
3366 * gnulib/import/m4/alloca.m4: Likewise.
3367 * gnulib/import/m4/codeset.m4: Likewise.
3368 * gnulib/import/m4/configmake.m4: Likewise.
3369 * gnulib/import/m4/fcntl-o.m4: Likewise.
3370 * gnulib/import/m4/fnmatch.m4: Likewise.
3371 * gnulib/import/m4/glibc21.m4: Likewise.
3372 * gnulib/import/m4/localcharset.m4: Likewise.
3373 * gnulib/import/m4/locale-fr.m4: Likewise.
3374 * gnulib/import/m4/locale-ja.m4: Likewise.
3375 * gnulib/import/m4/locale-zh.m4: Likewise.
3376 * gnulib/import/m4/mbrtowc.m4: Likewise.
3377 * gnulib/import/m4/mbsinit.m4: Likewise.
3378 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3379 * gnulib/import/m4/mbstate_t.m4: Likewise.
3380 * gnulib/import/m4/stdbool.m4: Likewise.
3381 * gnulib/import/m4/wchar_h.m4: Likewise.
3382 * gnulib/import/m4/wctype_h.m4: Likewise.
3383 * gnulib/import/m4/wint_t.m4: Likewise.
3384 * gnulib/import/mbrtowc.c: Likewise.
3385 * gnulib/import/mbsinit.c: Likewise.
3386 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3387 * gnulib/import/mbsrtowcs-state.c: Likewise.
3388 * gnulib/import/mbsrtowcs.c: Likewise.
3389 * gnulib/import/ref-add.sin: Likewise.
3390 * gnulib/import/ref-del.sin: Likewise.
3391 * gnulib/import/stdbool.in.h: Likewise.
3392 * gnulib/import/streq.h: Likewise.
3393 * gnulib/import/strnlen1.c: Likewise.
3394 * gnulib/import/strnlen1.h: Likewise.
3395 * gnulib/import/verify.h: Likewise.
3396 * gnulib/import/wchar.in.h: Likewise.
3397 * gnulib/import/wctype.in.h: Likewise.
3399 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3401 Support shell wildcards for 'set auto-load safe-path'.
3402 * auto-load.c: Include fnmatch.h.
3403 (filename_is_in_dir): Rename to ...
3404 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3405 it. Update function comment. Rename dir_len to pattern_len. New
3406 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3407 messages. Use gdb_filename_fnmatch.
3408 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3410 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3411 * defs.h (gdb_filename_fnmatch): New declaration.
3412 * utils.c: Include fnmatch.h.
3413 (gdb_filename_fnmatch): New function.
3415 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3417 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3418 `-probe' and `-probe-stap' options.
3420 2012-07-01 Yao Qi <yao@codesourcery.com>
3422 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3423 always_inserted_off, and always_inserted_enums.
3424 Change always_inserted_mode's type to 'enum auto_boolean'.
3425 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3427 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3428 of add_setshow_enum_cmd.
3429 * infrun.c: Remove can_use_displaced_stepping_auto,
3430 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3431 can_use_displaced_stepping_enum.
3432 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3433 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3434 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3435 add_setshow_enum_cmd.
3437 2012-06-30 Doug Evans <dje@google.com>
3439 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3440 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3441 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3443 2012-06-29 Doug Evans <dje@google.com>
3445 * linespec.c: #include "stack.h".
3446 (decode_line_with_current_source): Moved here from symtab.c and
3447 renamed from decode_line_spec. All callers updated.
3448 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3449 renamed from decode_line_spec_1. All callers updated.
3450 * linespec.h (decode_line_with_current_source): Move declaration here
3451 from symtab.h and renamed from decode_line_spec.
3452 (decode_line_with_last_displayed): Move declaration here from symtab.h
3453 and renamed from decode_line_spec_1.
3454 * macrocmd.c: #include "linespec.h".
3455 * symtab.c: Remove #include "linespec.h".
3457 2012-06-28 Doug Evans <dje@google.com>
3459 * dwarf2read.c (get_cu_length): New function.
3460 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3461 (create_debug_types_hash_table): Ditto.
3462 (init_cutu_and_read_dies): Ditto.
3463 (init_cutu_and_read_dies_no_follow): Ditto.
3465 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3467 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3468 (struct abbrev_table): Define.
3469 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3471 (init_cutu_and_read_dies): Update.
3472 (abbrev_table_alloc_abbrev): New function. Replaces
3473 dwarf_alloc_abbrev. All callers updated.
3474 (abbrev_table_add_abbrev): New function.
3475 (abbrev_table_lookup_abbrev): New function. Replaces
3476 dwarf2_lookup_abbrev. All callers updated.
3477 (abbrev_table_read_table): New function. Contents moved here from
3478 dwarf2_read_abbrevs.
3479 (dwarf2_read_abbrevs): Call it.
3480 (abbrev_table_free): New function.
3481 (dwarf2_free_abbrev_table): Call it.
3483 2012-06-28 Stan Shebs <stan@codesourcery.com>
3485 * osdata.c (info_osdata_command): Filter out "Title" columns
3487 * common/linux-osdata.c (struct osdata_type): Add title field.
3488 (osdata_table): Add titles to each entry.
3489 (linux_command_xfer_osdata): Add a column for title data.
3491 2012-06-28 Stan Shebs <stan@codesourcery.com>
3493 Make logging work for MI.
3495 * interps.h (interp_set_logging_ftype): New typedef.
3496 (struct interp_procs): New field set_logging_proc.
3497 (current_interp_set_logging): Declare.
3498 * interps.c (current_interp_set_logging): New function.
3499 * cli/cli-logging.c: Include interps.h.
3500 (set_logging_redirect): Call current_interp_set_logging.
3501 (pop_output_files): Ditto.
3502 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3503 * mi/mi-console.h (mi_console_set_raw): Declare.
3504 * mi/mi-console.c (mi_console_set_raw): New function.
3505 * mi/mi-interp.c (saved_raw_stdout): New global.
3506 (mi_set_logging): New function.
3507 (_initialize_mi_interp): Add it to interp procs.
3509 2012-06-28 Doug Evans <dje@google.com>
3511 * symtab.c (lookup_symbol_aux_objfile): Use
3512 ALL_OBJFILE_PRIMARY_SYMTABS.
3514 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3516 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3518 * common/buffer.c: Include inttypes.h and stdint.h.
3519 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3521 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Pedro Alves <palves@redhat.com>
3524 * gdbthread.h (ALL_THREADS): New macro.
3525 (thread_list): Declare.
3526 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3527 going, but instead fall through to the stepping handling.
3528 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3529 the passed in signal. Adjust debug output.
3530 (resume_callback): Rename to ...
3531 (linux_nat_resume_callback): ... this. Pass the thread's last
3532 stop signal, if in "pass" state.
3533 (linux_nat_resume): Adjust to rename.
3534 (stop_wait_callback): New assertion. Don't respawn signals;
3535 instead let the LWP remain with SIGNALLED set.
3536 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3537 * remote.c (append_pending_thread_resumptions): New.
3538 (remote_vcont_resume): Call it.
3539 * target.h (target_resume): Extend comment.
3541 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3543 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3545 2012-06-27 Doug Evans <dje@google.com>
3547 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3548 Delete have_addr_base, unused. All uses updated.
3549 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3550 (dwarf2_get_pc_bounds): Add ranges_base.
3551 (dwarf2_record_block_ranges): Ditto.
3553 2012-06-27 Tom Tromey <tromey@redhat.com>
3556 * varobj.c (varobj_create): Update.
3557 (varobj_set_value): Update.
3558 * tracepoint.c (validate_actionline): Update.
3559 (encode_actions_1): Update.
3560 * parse.c (parse_exp_1): Add 'pc' argument.
3561 (parse_exp_in_context): Add 'pc' argument. Change how
3562 expression_context_pc is set.
3563 (parse_expression): Update.
3564 (parse_field_expression): Update.
3565 * expression.h (parse_exp_1): Update.
3566 * eval.c (parse_to_comma_and_eval): Update.
3567 * breakpoint.c (set_breakpoint_condition): Update.
3568 (update_watchpoint): Update.
3569 (init_breakpoint_sal): Update
3570 (find_condition_and_thread): Update.
3571 (watch_command_1): Update.
3572 (update_breakpoint_locations): Update.
3573 * ada-lang.c (ada_read_renaming_var_value): Update.
3574 (create_excep_cond_exprs): Update.
3576 2012-06-27 Doug Evans <dje@google.com>
3578 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3581 2012-06-26 Doug Evans <dje@google.com>
3583 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3585 (error_check_comp_unit_head): New arg abbrev_section. All callers
3587 (read_and_check_comp_unit_head): Ditto.
3588 (read_and_check_type_unit_head): Ditto.
3590 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3592 New attribute 'last' for gdb.Symtab_and_line.
3593 * NEWS (Python Scripting): Add entry about the new attribute.
3594 * python/py-symtab.c (salpy_get_last): New function which
3595 implements the get method for the 'last' attribute of
3596 gdb.Symtab_and_line.
3597 (sal_object_getset): Add entry for the 'last' attribute.
3599 2012-06-26 Doug Evans <dje@google.com>
3601 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3602 (dwo_sections): Add macinfo, macro.
3603 (dwarf2_locate_dwo_sections): Watch for macro sections.
3604 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3605 All callers updated. Handle DWO files.
3607 * NEWS: Mention new options "set debug dwarf2-read" and
3608 "set debug symtab-create".
3609 * dwarf2read.c (dwarf2_read_debug): New static global.
3610 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3611 (process_queue): Ditto.
3612 (process_full_comp_unit): Ditto.
3613 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3614 * elfread.c (elf_symfile_read): Add debugging printf.
3615 * minsyms.c (install_minimal_symbols): Ditto.
3616 * psymtab.c (allocate_psymtab): Ditto.
3617 * symfile.c (allocate_symtab): Ditto.
3618 * symtab.c (symtab_create_debug): New global.
3619 (_initialize_symtab): Add new option "set debug symtab-create".
3620 * symtab.h (symtab_create_debug): Declare.
3622 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3623 (lookup_dwo_type_unit): Ditto.
3625 2012-06-26 Roland McGrath <roland@hack.frob.com>
3626 H.J. Lu <hongjiu.lu@intel.com>
3628 * amd64-linux-nat.c: Include <sys/user.h>.
3629 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3630 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3631 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3633 * configure.ac: Check if the fs_base and gs_base members of
3634 `struct user_regs_struct' exist.
3635 * config.in: Regenerated.
3636 * configure: Likewise.
3638 2012-06-25 Michael Eager <eager@eagercon.com>
3641 * python/python.c (gdbpy_write): Check for interrupted output.
3643 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3645 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3646 register as a stack alignment in ARM mode.
3648 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3650 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3651 * gnulib/config.in: Regenerate.
3652 * gnulib/configure: Likewise.
3653 * gnulib/import/m4/extensions.m4: Update it.
3654 * gnulib/import/m4/gnulib-common.m4: Likewise.
3655 * gnulib/import/m4/memmem.m4: Likewise.
3656 * gnulib/import/m4/mmap-anon.m4: Likewise.
3657 * gnulib/import/m4/multiarch.m4: Likewise.
3658 * gnulib/import/stdint.in.h: Likewise.
3660 2012-06-24 Yao Qi <yao@codesourcery.com>
3662 * corefile.c (write_memory_with_notification): New.
3663 * gdbcore.h: Declare write_memory_with_notification.
3664 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3665 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3666 * valops.c (value_assign): Likewise.
3667 * python/py-inferior.c (infpy_write_memory): Call
3668 'write_memory_with_notification'.
3670 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3672 * cc-with-index.sh: Use also -ex "set auto-load no".
3674 2012-06-23 Doug Evans <dje@google.com>
3677 * NEWS: Document additions to .gdb_index.
3678 * dwarf2read.c: #include "gdb/gdb-index.h".
3679 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3680 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3681 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3682 (dwarf2_read_index): Recognize version 7.
3683 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3684 block_kind, domain): All callers updated.
3685 (dw2_find_symbol_file): Handle new index CU values.
3686 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3687 (add_index_entry): New args is_static, kind. All callers updated.
3688 (offset_type_compare, uniquify_cu_indices): New functions
3689 (symbol_kind): New function.
3690 (write_psymtabs_to_index): Remove duplicate CU values.
3691 (write_psymtabs_to_index): Write .gdb_index version 7.
3693 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3695 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3696 * configure: Regenerate.
3698 2012-06-20 Yao Qi <yao@codesourcery.com>
3700 * python/py-inferior.c: Update comments of infpy_read_memory
3701 and infpy_write_memory.
3703 2012-06-19 Tom Tromey <tromey@redhat.com>
3706 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3707 (push_type_address_space): Remove.
3708 * parse.c (insert_into_type_stack): New function.
3709 (insert_type): Likewise.
3710 (insert_type_address_space): Rename from push_type_address_space.
3711 Insert tp_space_identifier.
3712 * c-exp.y (ptr_operator): New production.
3713 (abs_decl): Use ptr_operator.
3714 (space_identifier): Call insert_type_address_space.
3715 (ptype): Don't use const_or_volatile_or_space_identifier.
3716 (const_or_volatile_noopt): Call insert_type.
3717 (conversion_type_id, conversion_declarator): New productions.
3718 (operator): Use conversion_type_id.
3720 2012-06-18 Doug Evans <dje@google.com>
3722 * symtab.h (minimal_symbol): New member created_by_gdb.
3723 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3725 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3726 (search_symbols): Call it instead of lookup_symbol.
3727 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3729 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3730 Adjust address for DW_OP_GNU_addr_index.
3731 * dwarf2expr.h (dwarf_expr_context): Update comment.
3732 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3733 all callers updated. Handle TLS vars described with
3734 DW_OP_GNU_const_index.
3735 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3736 and DW_OP_GNU_const_index.
3737 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3739 * block.c (find_block_in_blockvector): Make explicit the fact that we
3740 ignore GLOBAL_BLOCK.
3742 2012-06-18 Tom Tromey <tromey@redhat.com>
3744 * c-exp.y (operator): Remove trailing space after "delete" and
3747 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3748 Jan Kratochvil <jan.kratochvil@redhat.com>
3750 Switch i386 and derived targets to ON_STACK.
3751 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3752 (amd64_dicos_init_abi): Remove its installment.
3753 * dicos-tdep.c (dicos_init_abi): Remove the
3754 set_gdbarch_call_dummy_location call. Update the comment here.
3755 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3756 (i386_dicos_init_abi): Remove its installment.
3757 * i386-tdep.c (i386_push_dummy_code): New function.
3758 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3759 i386_push_dummy_code.
3761 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3763 Remove stale dummy frames.
3764 * breakpoint.c: Include dummy-frame.h.
3765 (longjmp_breakpoint_ops): New variable.
3766 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3767 bp_longjmp_call_dummy.
3768 (bpstat_what, bptype_string, print_one_breakpoint_location)
3769 (init_bp_location): Support bp_longjmp_call_dummy.
3770 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3771 (set_longjmp_breakpoint_for_call_dummy)
3772 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3774 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3775 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3776 FIXME comment and extend the other comment for bp_call_dummy.
3777 (set_longjmp_breakpoint_for_call_dummy)
3778 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3779 * dummy-frame.c: Include gdbthread.h.
3780 (pop_dummy_frame_bpt): New function.
3781 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3782 (dummy_frame_discard): New function.
3783 (cleanup_dummy_frames): Update the comment about longjmps.
3784 * dummy-frame.h (dummy_frame_discard): New declaration.
3785 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3786 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3787 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3788 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3789 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3790 keep_going if IS_LONGJMP and there is no other reason to stop.
3792 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3794 * remote-sim.c (sim_command_completer): Initialize
3797 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3799 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3800 * dwarf2loc.c (call_site_parameter_matches): Support
3801 CALL_SITE_PARAMETER_PARAM_OFFSET.
3802 (needs_dwarf_reg_entry_value): Push stub value.
3803 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3804 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3805 * gdbtypes.h (enum call_site_parameter_kind): New item
3806 CALL_SITE_PARAMETER_PARAM_OFFSET.
3807 (struct call_site.parameter.u): New field param_offset.
3809 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3811 Code cleanup: Generalize call_site.parameter key.
3812 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3813 variable dwarf_reg. New variable kind_u. Update parameters to
3814 push_dwarf_reg_entry_value.
3815 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3816 * dwarf2expr.h (enum call_site_parameter_kind)
3817 (union call_site_parameter_u): Forward declarations.
3818 (struct dwarf_expr_context_funcs): Update parameters and their
3819 description for push_dwarf_reg_entry_value.
3820 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3821 * dwarf2loc.c (call_site_parameter_matches): New function.
3822 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3823 description. Use call_site_parameter_matches.
3824 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3825 Update parameters and their description.
3826 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3827 New variable kind_u. Adjust the caller for updated parameters.
3828 (needs_dwarf_reg_entry_value): Update parameters.
3829 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3830 instead of attr. Update for the changed fields of struct
3831 call_site_parameter.
3832 * gdbtypes.h: Include dwarf2expr.h.
3833 (enum call_site_parameter_kind): New.
3834 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3835 fb_offset into new union u.
3837 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3839 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3840 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3843 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3845 * amd64-linux-nat.c (compat_x32_clock_t): New.
3846 (compat_x32_siginfo_t): Likewise.
3847 (compat_x32_siginfo_from_siginfo): Likewise.
3848 (siginfo_from_compat_x32_siginfo): Likewise.
3849 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3850 and siginfo_from_compat_x32_siginfo for x32.
3852 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3854 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3856 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3858 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3859 instead of gdbarch_ptr_bit.
3860 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3861 (amd64_supply_native_gregset): Likewise.
3862 (amd64_collect_native_gregset): Likewise.
3863 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3864 (amd64_supply_xsave): Likewise.
3865 (amd64_collect_fxsave): Likewise.
3866 (amd64_collect_xsave): Likewise.
3868 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3870 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3871 (amd64_linux_read_description): Check DS segment register for
3874 2012-06-15 Tom Tromey <tromey@redhat.com>
3876 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3877 init_cutu_and_read_dies.
3879 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3881 * MAINTAINERS (Write After Approval): Add myself to the list.
3883 2012-06-15 Tom Tromey <tromey@redhat.com>
3885 * valops.c (value_find_oload_method_list): Now static.
3886 * value.h (value_find_oload_method_list): Don't declare.
3888 2012-06-15 Tom Tromey <tromey@redhat.com>
3890 * valops.c (find_overload_match): Use value_ind.
3892 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3894 * infrun.c (handle_inferior_event): Correct indentation.
3896 2012-06-14 Doug Evans <dje@google.com>
3898 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3899 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3901 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3902 updated. Handle DEBUG_LOC_START_LENGTH.
3903 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3904 (loclist_describe_location): Ditto.
3906 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3909 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3910 after hiding inline functions.
3912 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3914 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3915 _initialize_inf_ttrace.
3917 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3919 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3920 _initialize_hppa_hpux_nat.
3922 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3924 * remote-sim.c (sim_command_completer): Change type of return
3925 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3927 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3928 Jan Kratochvil <jan.kratochvil@redhat.com>
3931 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3932 stack on a 16-byte boundary.
3934 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3936 * jit.c (finalize_symtab): Set function's return type to 'void' by
3939 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3940 H.J. Lu <hongjiu.lu@intel.com>
3942 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3943 Move bits common to both the classic LP64 and the new x32 ILP32
3945 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3946 (amd64_x32_linux_init_abi): New function.
3947 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3950 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3951 * i386-tdep.c (i386_pseudo_register_name): Make public.
3952 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3953 * amd64-tdep.c (amd64_dword_names): Add "eip".
3954 (amd64_x32_pseudo_register_type): New function
3955 (amd64_x32_init_abi): New function.
3957 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3960 * inferior.h (struct inferior_suspend_state): Comment out.
3961 (struct inferior): Comment out the field suspend.
3962 * infrun.c (struct infcall_suspend_state): Comment out the field
3964 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3967 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3969 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3970 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3971 function comment. Return ERROR for unresolved cases. Implement
3972 returning proper NAME.
3973 (yylex): Accept also NAME from classify_inner_name.
3974 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3975 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3977 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3979 2012-06-13 Tom Tromey <tromey@redhat.com>
3981 * breakpoint.c (condition_completer): New function.
3982 (_initialize_breakpoint): Use it.
3983 * value.c (complete_internalvar): New function.
3984 * value.h (complete_internalvar): Declare.
3986 2012-06-13 Tom Tromey <tromey@redhat.com>
3988 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3989 * breakpoint.c (catch_syscall_completer): Return a VEC.
3990 * cli/cli-cmds.c (complete_command): Update.
3991 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3992 (complete_on_enum): Likewise.
3993 * command.h: Include gdb_vecs.h.
3994 (completer_ftype): Change return type.
3995 (complete_on_cmdlist, complete_on_enum): Likewise.
3996 * completer.c (noop_completer, filename_completer)
3997 (location_completer): Return a VEC.
3998 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4000 (expression_completer, complete_line_internal, complete_line)
4001 (command_completer): Return a VEC.
4002 (gdb_completion_word_break_characters, line_completion_function):
4004 * completer.h: Include gdb_vecs.h.
4005 (complete_line, noop_completer, filename_completer)
4006 (expression_completer, location_completer, command_completer):
4008 * f-lang.c (f_word_break_characters): Return a VEC.
4009 * interps.c (interpreter_completer): Return a VEC.
4010 * language.h (struct language_defn)
4011 <la_make_symbol_completion_list>: Return a VEC.
4012 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4013 * symtab.c (free_completion_list): Take a VEC.
4014 (return_val_size, return_val_index): Remove.
4015 (return_val): Now a VEC.
4016 (completion_list_add_name): Update.
4017 (default_make_symbol_completion_list_break_on)
4018 (default_make_symbol_completion_list, make_symbol_completion_list)
4019 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4021 (add_filename_to_list): Update.
4022 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4024 (maybe_add_partial_symtab_filename): Update.
4025 (make_source_files_completion_list): Return a VEC.
4026 * symtab.h (default_make_symbol_completion_list_break_on)
4027 (default_make_symbol_completion_list, make_symbol_completion_list)
4028 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4029 (make_source_files_completion_list): Update.
4031 2012-06-13 Tom Tromey <tromey@redhat.com>
4033 * breakpoint.c (add_catch_command): Use completer_ftype.
4034 * breakpoint.h: Include command.h.
4035 (add_catch_command): Use completer_ftype.
4036 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4037 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4038 Use completer_ftype.
4039 * command.h (completer_ftype): New typedef.
4040 (set_cmd_completer): Use it.
4041 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4044 2012-06-13 Pedro Alves <palves@redhat.com>
4046 Partial revert of previous change.
4048 * serial.c (scb_base): New global.
4049 (serial_for_fd): New.
4050 (serial_open, serial_fdopen_ops): Link new serial in open serials
4052 (do_serial_close): Unlink serial from the open serials chain.
4054 2012-06-12 Pedro Alves <palves@redhat.com>
4056 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4058 (prepare_for_detach): No longer context switch here in non-stop
4060 (fetch_inferior_event): Ditto.
4061 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4062 to the event thread before removing breakpoints. Switch to the
4063 event thread before inserting breakpoints and resuming.
4064 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4065 event thread before resuming.
4066 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4067 Switch to the event thread before removing breakpoints.
4069 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4071 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4072 special characters correctly for the Windows shells. See
4073 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4075 [!__MINGW32__]: Remove extra double quote character from special
4078 2012-06-11 Stan Shebs <stan@codesourcery.com>
4080 * ui-out.h: Remove #if 0 declarations.
4081 * ui-out.c: Remove #if 0 functions.
4083 2012-06-11 Pedro Alves <palves@redhat.com>
4085 * ser-base.c (run_async_handler_and_reschedule): New.
4086 (fd_event, push_event): Use it.
4087 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4088 reference count to 1.
4089 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4091 (serial_is_open, serial_ref, serial_unref): New.
4092 * serial.h (serial_open): Adjust comment.
4093 (serial_is_open): Declare.
4094 (serial_close): Adjust comment.
4095 (serial_ref, serial_unref) Declare.
4096 (struct serial): New field 'refcnt'.
4098 2012-06-11 Pedro Alves <palves@redhat.com>
4100 Remove #if 0'd "connect" command, and unnecessary associated
4101 refcounting and serial reuse bits.
4103 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4104 * serial.c (last_serial_opened): Delete.
4106 (serial_open): Adjust.
4107 (serial_for_fd): Delete.
4108 (serial_fdopen_ops, do_serial_close): Adjust.
4109 (serial_fdopen_ops): Adjust.
4111 2012-06-11 Pedro Alves <palves@redhat.com>
4113 * serial.c (do_serial_close): Remove early return when SCB is
4116 2012-06-11 Tom Tromey <tromey@redhat.com>
4118 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4120 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4122 Fix regression by the "ambiguous linespec" series.
4123 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4124 get_last_displayed_symtab and get_last_displayed_line and depending
4127 2012-06-11 Tom Tromey <tromey@redhat.com>
4129 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4130 (dw2_find_symbol_file): Use it.
4132 2012-06-11 Michael Eager <eager@eagercon.com>
4134 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4135 * mips-linux-tdep.h (mips_signals): New
4137 2012-06-11 Tom Tromey <tromey@redhat.com>
4139 * infrun.c (handle_inferior_event)
4140 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4142 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4143 exception logic in all cases. Update comments.
4144 (insert_longjmp_resume_breakpoint): Set the exception resume
4147 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4149 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4151 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4153 * valarith.c (binop_types_user_defined_p): Fix a typo.
4155 2012-06-08 Yao Qi <yao@codesourcery.com>
4156 Chung-Lin Tang <cltang@codesourcery.com>
4158 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4159 * arch-utils.h: Declare.
4160 * gdbarch.sh: Add return_in_first_hidden_param_p.
4161 * gdbarch.c, gdbarch.h: Regenerated.
4162 * infcall.c (call_function_by_hand): Call
4163 gdbarch_return_in_first_hidden_param_p instead of
4164 language_pass_by_reference.
4166 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4167 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4168 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4169 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4170 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4171 `cplus_return_struct_by_reference'.
4172 (tic6x_return_value): Handle language cplusplus.
4173 (tic6x_return_in_first_hidden_param_p): New.
4174 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4176 2012-06-07 Doug Evans <dje@google.com>
4178 * dwarf2read.c (dwarf2_cu): Add comment.
4180 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4182 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4184 (mips_eabi_push_dummy_call): Likewise.
4185 (mips_n32n64_push_dummy_call): Likewise.
4186 (mips_o32_push_dummy_call): Likewise.
4187 (mips_o64_push_dummy_call): Likewise.
4189 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4191 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4193 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4195 * mips-tdep.c (mips_pseudo_register_type): Use
4196 mips_float_register_p.
4198 2012-06-06 Pedro Alves <palves@redhat.com>
4200 * infrun.c (handle_inferior_event): Remove calls to
4201 reinit_frame_cache that follow a context_switch call.
4203 2012-06-06 Pedro Alves <palves@redhat.com>
4205 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4206 context_switch and remove stale comment.
4208 2012-06-06 Pedro Alves <palves@redhat.com>
4210 * infrun.c (struct execution_control_state): Remove
4211 `new_thread_event' field.
4212 (handle_inferior_event): Simplify new threads handling; don't
4213 resume the inferior if we find a new thread.
4215 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4217 * NEWS: Document the deprecation of SH's 'regs' command.
4218 * inferior.h (all_registers_info): Add function declaration.
4219 * sh-tdep.c (sh_show_regs): Remove variable.
4220 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4221 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4222 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4223 (sh_show_regs_command): Remove functions.
4224 (sh_gdbarch_init): Don't set sh_show_regs.
4225 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4226 'info all-registers'.
4227 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4228 (sh64_show_regs): Remove functions.
4229 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4231 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4233 * configure.ac: Move development=true below AC_INIT.
4234 * configure: Regenerate.
4236 2012-06-05 Stan Shebs <stan@codesourcery.com>
4238 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4241 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4243 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4244 argument as ssize_t.
4245 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4246 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4247 * target.c (target_read_stack, target_write_memory)
4248 (target_write_raw_memory): Likewise.
4249 * target.h (target_read_stack, target_write_memory)
4250 (target_write_raw_memory): Likewise.
4252 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4254 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4255 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4256 * target.c (target_read_memory): Change LEN to ssize_t.
4257 * target.h (target_read_memory): Change LEN to ssize_t.
4259 2012-06-05 Pedro Alves <palves@redhat.com>
4263 * breakpoint.c (until_break_command): Only fetch the selected
4264 frame after decode_line_1.
4266 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4268 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4269 event breakpoint at _start, __start or main if a program
4270 interpreter is not found.
4272 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4274 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4276 * windows-tdep.c: #include "objfiles.h".
4277 (windows_iterate_over_objfiles_in_search_order): New function.
4278 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4279 iterate_over_objfiles_in_search_order gdbarch method to
4280 windows_iterate_over_objfiles_in_search_order.
4281 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4283 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4285 * gdbarch.sh: Add generation of
4286 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4287 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4288 (iterate_over_objfiles_in_search_order): New gdbarch method.
4289 * gdbarch.h, gdbarch.c: Regenerate.
4290 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4292 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4294 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4295 out of lookup_symbol_aux_symtabs.
4296 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4297 call to lookup_symbol_aux_objfile.
4298 (struct global_sym_lookup_data): New type.
4299 (lookup_symbol_global_iterator_cb): New function.
4300 (lookup_symbol_global): Search for symbol using
4301 gdbarch_iterate_over_objfiles_in_search_order and
4302 lookup_symbol_global_iterator_cb.
4303 * findvar.c (struct minsym_lookup_data): New type.
4304 (minsym_lookup_iterator_cb): New function.
4305 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4306 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4307 and minsym_lookup_iterator_cb.
4309 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4311 Revert the following patch:
4312 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4313 try locating the symbol in the symbol's own objfile first, before
4314 extending the search to all objfiles.
4315 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4316 out of lookup_symbol_aux_symtabs.
4317 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4318 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4319 Do not search EXCLUDE_OBJFILE.
4320 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4321 (lookup_symbol_global): Search for matches in the block's objfile
4322 first, before searching all other objfiles.
4324 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4326 * breakpoint.c (find_condition_and_thread): Stop parsing
4327 as soon as the first invalid keyword is found.
4329 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4331 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4333 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4335 * config/djgpp/djcheck.sh: Add copyright header.
4337 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4339 * copyright.py (update_files, main): Fix path to update-copyright
4342 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4344 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4345 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4346 for which a reminder to update by hand is printed.
4348 2012-06-04 Doug Evans <dje@google.com>
4350 * buildsym.c (make_blockvector): Add comment.
4352 2012-06-04 Pedro Alves <palves@redhat.com>
4354 * arch-utils.c (default_gdb_signal_from_target): Delete.
4355 * arch-utils.h (default_gdb_signal_from_target): Delete.
4356 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4357 gdbarch_gdb_signal_from_target_p.
4358 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4360 * gdbarch.h: Regenerate.
4361 * gdbarch.c: Regenerate.
4363 2012-06-04 Pedro Alves <palves@redhat.com>
4365 * gdbarch.sh (gdb_signal_from_target): Mention that the
4366 implementation of the method must be host independent.
4367 * gdbarch.h: Regenerate.
4369 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4371 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4373 (target_read_memory_bfd): New function.
4374 (symbol_file_add_from_memory): Use it.
4376 2012-06-03 Doug Evans <dje@google.com>
4378 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4380 (basic_lookup_transparent_type): Ditto.
4382 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4383 (ALL_PRIMARY_SYMTABS): Use it.
4384 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4385 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4386 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4387 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4388 (basic_lookup_transparent_type): Ditto.
4390 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4392 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4393 it to optimize resolution of demangled name.
4395 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4397 * configure.ac (development): Define new variable.
4398 Call AC_CHECK_LIB for mcheck if $development.
4399 (ERROR_ON_WARNING): Enable it by default only if $development.
4400 * config.in: Regenerate.
4401 * configure: Regenerate.
4403 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4405 * target.c (target_read_memory): Make LEN argument as size_t.
4406 * target.h (target_read_memory): Likewise.
4408 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4412 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4414 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4415 BookE interface for PowerPC server processors if not available
4416 in the Linux Kernel.
4418 2012-05-31 Keith Seitz <keiths@redhat.com>
4420 * linespec.c (decode_objc): Add cleanup to free
4422 (find_linespec_symbols): Add cleanup to free CLASSES.
4423 * symfile.c (find_separate_debug_file_by_debuglink): Add
4424 cleanup to free DEBUGLINK.
4425 * ui-out.c (clear_header_list): No need to check if
4426 HEADER_NEXT.COLHDR is NULL.
4427 Free HEADER_NEXT.COL_NAME.
4429 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4431 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4434 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4436 * configure.host (gdb_host_cpu): Handle tilegx*.
4437 (gdb_host): Handle tilegx-*-linux*.
4438 * tilegx-linux-nat.c: New file.
4439 * config/tilegx/linux.mh: New file.
4441 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4443 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4444 tilegx-linux-tdep.o.
4445 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4446 tilegx-linux-tdep.c.
4447 * configure.tgt: Handle tilegx-*-linux*.
4448 * tilegx-tdep.h: New file.
4449 * tilegx-tdep.c: New file.
4450 * tilegx-linux-tdep.c: New file.
4451 * regformats/reg-tilegx.dat: New file.
4453 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4455 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4456 accounting of hw watchpoints on ppc.
4458 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4460 * source.c (openp): Expand tilde in path entries.
4462 2012-05-29 Doug Evans <dje@google.com>
4464 * buildsym.c (block_compar): Fix comment.
4465 (end_symtab): Fix and clarify some comments.
4467 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4468 cleanup_undefined_types.
4469 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4470 All callers updated.
4472 2012-05-29 Tom Tromey <tromey@redhat.com>
4474 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4476 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4477 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4479 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4482 2012-05-29 Tristan Gingold <gingold@adacore.com>
4484 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4485 (struct darwin_info): ... New struct.
4486 (solib_darwin_pspace_data): New variable.
4487 (darwin_pspace_data_cleanup): New function.
4488 (get_darwin_info): Likewise.
4489 (darwin_dyld_version_ok, darwin_load_image_infos)
4490 (darwin_solib_get_all_image_info_addr_at_init)
4491 (darwin_solib_read_all_image_info_addr): Add info argument.
4493 (darwin_current_sos): Use per pspace structure.
4494 (darwin_solib_create_inferior_hook): Likewise.
4495 (darwin_clear_solib): Likewise.
4496 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4498 2012-05-28 Pedro Alves <palves@redhat.com>
4500 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4501 block that uses them. Clear ecss before handling each event.
4503 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4505 * solib-svr4.c (svr4_current_sos): New comment on
4506 svr4_current_sos_via_xfer_libraries fall back.
4508 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4510 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4511 it as a fallback for TYPE_IS_OPAQUE.
4512 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4513 symbols for lookup_symbol.
4515 2012-05-24 John Steele Scott <toojays@toojays.net>
4517 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4518 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4519 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4520 (check_producer): ... this new function, which also checks for ICC
4521 and caches the result.
4522 (producer_is_icc): New function.
4523 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4526 2012-05-24 Pedro Alves <palves@redhat.com>
4530 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4531 (default_gdb_signal_to_target): ... this. Add comment.
4532 (default_gdb_signal_from_host): Rename to ...
4533 (default_gdb_signal_from_target): ... this. Add comment.
4534 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4535 (default_gdb_signal_to_target): ... this.
4536 (default_gdb_signal_from_host): Rename to ...
4537 (default_gdb_signal_from_target): ... this.
4538 * corelow.c (core_open): Adjust to naming change. Replace comment.
4539 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4540 (gdb_signal_from_target): ... this. Adjust to
4541 default_gdb_signal_from_host naming change. Extend comment.
4542 (gdb_signal_to_host): Rename to ...
4543 (gdb_signal_to_target): ... this. Adjust to
4544 default_gdb_signal_to_host naming change.
4545 * gdbarch.h, gdbarch.c: Renegerate.
4547 2012-05-24 Pedro Alves <palves@redhat.com>
4551 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4553 2012-05-24 Pedro Alves <palves@redhat.com>
4557 Replace target_signal with gdb_signal throughout.
4559 2012-05-24 Pedro Alves <palves@redhat.com>
4563 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4564 string, instead of reusing the va_list argument.
4566 2012-05-24 Tom Tromey <tromey@redhat.com>
4568 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4571 2012-05-23 Doug Evans <dje@google.com>
4573 * symtab.c (search_symbols): Formatting fixes.
4574 (print_symbol_info): Formatting fixes.
4576 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4577 int64_t change to leb128 API.
4578 (read_encoded_value, decode_frame_entry_1): Ditto.
4579 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4580 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4581 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4582 (execute_stack_op): Ditto.
4583 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4584 (safe_read_uleb128, safe_read_sleb128): Ditto.
4585 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4586 (dwarf2_compile_expr_to_ax): Ditto.
4587 (locexpr_describe_location_piece): Ditto.
4588 (disassemble_dwarf_expression): Ditto.
4589 (locexpr_describe_location_1): Ditto.
4591 2012-05-23 Stan Shebs <stan@codesourcery.com>
4592 Kwok Cheung Yeung <kcy@codesourcery.com>
4594 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4595 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4596 (mi-cmd-info.o): New rule.
4597 * osdata.h (info_osdata_command): New declaration.
4598 * osdata.c (info_osdata_command): Change to non-static.
4599 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4600 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4601 * mi/mi-cmd-info.c: New file.
4603 2012-05-23 Doug Evans <dje@google.com>
4605 * symtab.c (search_symbols): Pass NULL for file_matcher to
4606 expand_symtabs_matching if there are no files to match.
4608 * gdbtypes.c (lookup_typename): Simplify.
4610 2012-05-23 Pedro Alves <palves@redhat.com>
4612 * arch-utils.h (default_target_signal_to_host): Delete.
4613 * arch-utils.c (default_target_signal_to_host): Delete.
4614 * gdbarch.sh (target_signal_to_host): Remove.
4615 * gdbarch.h, gdbarch.c: Regenerate.
4617 2012-05-22 Doug Evans <dje@google.com>
4619 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4621 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4622 (execute_cfa_program): Update to match API of leb128 functions.
4623 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4625 (read_unsigned_leb128, read_signed_leb128): Delete.
4626 (read_initial_length): Change type of buf argument to
4628 (read_encoded_value): Update to match API of leb128 functions.
4629 (decode_frame_entry): Change result to "const gdb_byte *", and
4630 similarly for "start" parameter.
4631 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4632 (dwarf2_build_frame_info): Change local frame_ptr to
4634 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4635 read_uleb128, read_sleb128. All callers updated.
4636 (safe_skip_leb128): New function.
4637 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4638 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4639 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4640 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4641 read_uleb128, read_sleb128.
4642 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4643 (execute_stack_op): Update to match API of leb128 functions.
4644 * dwarf2expr.h: #include "leb128.h".
4645 (read_uleb128, read_sleb128): Delete.
4646 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4647 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4648 * dwarf2loc.c (debug_loc_kind): New enum.
4649 (decode_debug_loc_addresses): New function.
4650 (decode_debug_loc_dwo_addresses): New function.
4651 (dwarf2_find_location_expression): Rewrite.
4652 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4653 (locexpr_describe_location_piece): Ditto.
4654 (disassemble_dwarf_expression): Ditto.
4655 (locexpr_describe_location_1): Ditto.
4656 (loclist_describe_location): Rewrite.
4657 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4658 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4659 (dwarf2_section_buffer_overflow_complaint): Renamed from
4660 dwarf2_macros_too_long_complaint. All callers updated.
4661 (skip_leb128): Delete.
4662 (init_cu_die_reader): Initialize reader->buffer_end.
4663 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4664 (skip_form_bytes): New arg buffer_end. All callers updated.
4665 Replace call to skip_leb128 with gdb_skip_leb128.
4666 (skip_unknown_opcode): New arg mac_end. All callers updated.
4667 (fill_in_loclist_baton): Initialize baton->from_dwo.
4669 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4671 * mips-linux-nat.c (mips_linux_read_description): Use a more
4672 verbose error message.
4674 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4676 * NEWS: Add MIPS/Linux DSP support.
4677 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4678 (SIGCONTEXT_DSPCTL): New macro.
4679 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4680 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4681 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4682 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4683 (N64_SIGCONTEXT_HI3): Likewise.
4684 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4685 (N64_SIGCONTEXT_LO3): Likewise.
4686 (N64_SIGCONTEXT_DSPCTL): Likewise.
4687 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4688 (mips_linux_o32_sigframe_init): Handle DSP registers.
4689 (mips_linux_n32n64_sigframe_init): Likewise.
4691 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4693 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4696 2012-05-22 Pedro Alves <palves@redhat.com>
4698 * target.h (store_waitstatus): Move declaration ...
4699 * inf-child.h (store_waitstatus): ... here.
4700 * target.c: Move inclusion of gdb_wait.h, and ...
4701 (store_waitstatus): ... this ...
4702 * inf-child.c: ... here.
4703 * linux-nat.c: Include inf-child.h.
4704 * rs6000-nat.c: Include inf-child.h.
4705 * spu-linux-nat.c: Include inf-child.h.
4707 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4709 * tracepoint.c (start_tracing): Add missing i18n markup.
4710 (stop_tracing, set_trace_user): Ditto.
4711 (set_trace_notes, set_trace_stop_notes): Ditto.
4713 2012-05-21 Tom Tromey <tromey@redhat.com>
4716 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4718 * value.h (value_cast_pointers): Update.
4719 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4720 (value_cast): Update.
4721 (update_search_result): New function.
4722 (do_search_struct_field): New, from search_struct_field. Check
4723 for ambiguous results.
4724 (search_struct_field): Rewrite.
4725 * infcall.c (value_arg_coerce): Update.
4726 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4727 value_cast_pointers.
4728 * ada-lang.c (ada_convert_actual): Update.
4730 2012-05-21 Tom Tromey <tromey@redhat.com>
4732 * macroexp.c (macro_stringify): Terminate the string.
4734 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4736 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4738 * auto-load.c (auto_load_expand_dir_vars): New function.
4739 (auto_load_safe_path_vec_update): Use it, remove the
4740 substitute_path_component call thanks to it.
4741 (auto_load_objfile_script): Remove the debug_file_directory processing.
4742 Use auto_load_expand_dir_vars, remove the substitute_path_component
4744 * configure: Regenerate.
4745 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4746 path. Escape $ also for $debugdir.
4747 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4748 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4750 2012-05-20 Doug Evans <dje@google.com>
4752 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4753 before use. Check for symtab->includes == NULL before scanning it.
4755 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4757 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4759 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4761 * NEWS: Add microMIPS support and "set mips compression",
4762 "show mips compression" commands.
4763 * mips-tdep.h (mips_isa): New enum.
4764 (gdbarch_tdep): Add mips_isa.
4765 (mips_pc_is_mips16): Update prototype.
4766 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4767 * mips-tdep.c (mips_compression_mips16): New variable.
4768 (mips_compression_micromips): Likewise.
4769 (mips_compression_strings): Likewise.
4770 (mips_compression_string): Likewise.
4771 (is_mips16_isa, is_micromips_isa): New functions.
4772 (is_mips16_addr): Rename to...
4773 (is_compact_addr): ... this.
4774 (unmake_mips16_addr): Likewise to...
4775 (unmake_compact_addr): ... this.
4776 (make_mips16_addr): Likewise to...
4777 (make_compact_addr): ... this.
4778 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4780 (mips_elf_make_msymbol_special): Handle microMIPS code.
4781 (msymbol_is_special): Rename to...
4782 (msymbol_is_mips16): ... this.
4783 (mips_make_symbol_special, mips_pc_is_mips16): Update
4785 (msymbol_is_mips, msymbol_is_micromips): New functions.
4786 (mips16_to_32_reg): Rename to...
4787 (mips_reg3_to_reg): ... this.
4788 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4789 (mips_pc_isa): Likewise.
4790 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4792 (mips_fetch_instruction): Pass return status instead of printing
4793 an error message if requested. Handle microMIPS code. Bail out
4795 (micromips_op): New macro.
4796 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4797 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4798 (b6s4_op, b7s3_reg): Likewise.
4799 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4800 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4801 (mips_insn_size): New function.
4802 (mips32_next_pc): Update mips_fetch_instruction call.
4803 (micromips_relative_offset7): New function.
4804 (micromips_relative_offset10): Likewise.
4805 (micromips_relative_offset16): Likewise.
4806 (micromips_pc_insn_size): Likewise.
4807 (micromips_bc1_pc): Likewise.
4808 (micromips_next_pc): Likewise.
4809 (unpack_mips16): Update mips_fetch_instruction call.
4810 (extended_mips16_next_pc): Update according to change to
4812 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4814 (mips16_scan_prologue): Update mips_fetch_instruction call.
4815 Update according to change to mips16_to_32_reg.
4816 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4817 (mips_insn16_frame_base_sniffer): Likewise.
4818 (micromips_decode_imm9): New function.
4819 (micromips_scan_prologue): Likewise.
4820 (mips_micro_frame_cache): Likewise.
4821 (mips_micro_frame_this_id): Likewise.
4822 (mips_micro_frame_prev_register): Likewise.
4823 (mips_micro_frame_sniffer): Likewise.
4824 (mips_micro_frame_unwind): New variable.
4825 (mips_micro_frame_base_address): New function.
4826 (mips_micro_frame_base): New variable.
4827 (mips_micro_frame_base_sniffer): New function.
4828 (mips32_scan_prologue): Update mips_fetch_instruction call.
4829 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4830 rather than for MIPS16.
4831 (mips_insn32_frame_base_sniffer): Likewise.
4832 (mips_addr_bits_remove): Handle microMIPS code.
4833 (deal_with_atomic_sequence): Rename to...
4834 (mips_deal_with_atomic_sequence): ... this. Update the type
4835 of the variable used to hold an instruction. Remove the ISA bit
4836 check. Update mips_fetch_instruction call.
4837 (micromips_deal_with_atomic_sequence): New function.
4838 (deal_with_atomic_sequence): Likewise.
4839 (mips_about_to_return): Handle microMIPS code. Update
4840 mips_fetch_instruction call.
4841 (heuristic_proc_start): Check for the standard MIPS ISA rather
4842 than for MIPS16. Update mips_pc_is_mips16 and
4843 mips_fetch_instruction calls. Handle microMIPS code.
4844 (mips_push_dummy_code): Handle microMIPS code.
4845 (mips_eabi_push_dummy_call): Likewise.
4846 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4847 (mips_o64_push_dummy_call): Handle microMIPS code.
4848 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4849 (is_delayed): Remove function.
4850 (mips_single_step_through_delay): Replace the call to is_delayed
4851 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4852 Handle microMIPS code.
4853 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4855 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4857 (micromips_in_function_epilogue_p): New function.
4858 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4860 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4862 (gdb_print_insn_mips): Likewise.
4863 (mips_breakpoint_from_pc): Likewise.
4864 (mips_remote_breakpoint_from_pc): New function.
4865 (mips32_instruction_has_delay_slot): Simplify making use of the
4866 updated mips_fetch_instruction interface.
4867 (micromips_instruction_has_delay_slot): New function.
4868 (mips16_instruction_has_delay_slot): Simplify making use of the
4869 updated mips_fetch_instruction interface.
4870 (mips_adjust_breakpoint_address): Check for the standard MIPS
4871 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4872 calls. Handle microMIPS code.
4873 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4874 (mips_skip_trampoline_code): Handle microMIPS code.
4875 (global_mips_compression): New function.
4876 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4877 file flags. Register the microMIPS remote breakpoint handler
4878 and heuristic frame unwinder.
4879 (show_mips_compression): New function.
4880 (_initialize_mips_tdep): Add the "set mips compression" and
4881 "show mips compression" commands.
4883 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4888 * amd64-darwin-tdep.c:
4889 * arm-symbian-tdep.c:
4893 * bfin-linux-tdep.c:
4900 * dwarf2-frame-tailcall.c:
4929 * microblaze-tdep.c:
4930 * mips-linux-tdep.c:
4938 * python/py-finishbreakpoint.c:
4939 * python/py-inferior.c:
4940 * python/py-infthread.c:
4944 * remote-m32r-sdi.c:
4948 * rs6000-aix-tdep.c:
4974 * amd64-darwin-tdep.c:
4975 * arm-symbian-tdep.c:
4976 * arm-tdep.c: Delete unused variables.
4978 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4980 Rename $ddir to $datadir.
4981 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4982 * auto-load.c (auto_load_safe_path_vec_update)
4983 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4984 * configure: Regenerate.
4985 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4986 Likewise. Remove the 'use $ddir' help string.
4988 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4990 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4991 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4993 2012-05-18 Tom Tromey <tromey@redhat.com>
4996 * valprint.h (struct value_print_options) <symbol_print>: New
4998 * valprint.c (user_print_options): Add default for symbol_print.
4999 (show_symbol_print): New function.
5000 (generic_val_print): Respect symbol_print.
5001 (_initialize_valprint): Add "print symbol" setting.
5002 * f-valprint.c (f_val_print): Respect symbol_print.
5003 * c-valprint.c (c_val_print): Respect symbol_print.
5005 * printcmd.c (print_address_symbolic): Return int. Ignore some
5007 (print_address_demangle): Return int.
5008 * defs.h: (print_address_symbolic): Return int.
5009 * value.h (print_address_demangle): Return int.
5011 2012-05-18 Tom Tromey <tromey@redhat.com>
5013 * valprint.c (val_print_string): Don't print leading space.
5014 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5015 print space before string or vtbl.
5016 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5018 * jv-valprint.c (java_value_print): Print space before string.
5019 * go-valprint.c (print_go_string): Print space before string.
5020 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5021 space before string.
5022 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5023 space before string or vtbl.
5024 * auxv.c (fprint_target_auxv): Print space after address.
5026 2012-05-18 Tom Tromey <tromey@redhat.com>
5028 * printcmd.c (print_address_demangle): Remove special case for 0.
5030 2012-05-18 Tom Tromey <tromey@redhat.com>
5032 * printcmd.c (print_address_demangle): Add 'opts' argument.
5033 * p-valprint.c (pascal_val_print): Update.
5034 * jv-valprint.c (java_val_print): Update.
5036 * valprint.c (generic_val_print): Update.
5037 (print_function_pointer_address): Add 'options' argument. Remove
5038 'addressprint' argument. Update.
5039 * m2-valprint.c (print_unpacked_pointer): Update.
5040 * gnu-v3-abi.c (print_one_vtable): Update.
5041 (gnuv3_print_method_ptr): Update.
5042 * f-valprint.c (f_val_print): Update.
5043 * cp-valprint.c (cp_print_value_fields): Update.
5044 * valprint.h (print_function_pointer_address): Update.
5045 * c-valprint.c (c_val_print): Update.
5047 2012-05-18 Tom Tromey <tromey@redhat.com>
5049 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5050 directly corresponding to the found psymtab.
5051 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5052 (dw2_find_pc_sect_symtab): Use it.
5053 * block.h (blockvector_contains_pc): Declare.
5054 * block.c (find_block_in_blockvector): New function.
5055 (blockvector_for_pc_sect): Use it.
5056 (blockvector_contains_pc): New function.
5058 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5060 * mips-tdep.h (mips_write_pc): New prototype.
5061 * mips-tdep.c (mips_write_pc): Make external, add description.
5062 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5065 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5067 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5069 (mips_unwind_pc, mips_write_pc): Likewise.
5070 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5073 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5075 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5076 proc_warn, proc_error, proc_get_status, proc_flags,
5077 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5078 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5079 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5080 proc_stop_process, proc_wait_for_stop, proc_run_process,
5081 proc_set_traced_signals, proc_set_traced_faults,
5082 proc_set_traced_sysentry, proc_set_traced_sysexit,
5083 proc_set_held_signals, proc_get_held_signals,
5084 proc_get_traced_signals, proc_get_traced_faults,
5085 proc_get_traced_sysentry, proc_get_traced_sysexit,
5086 proc_clear_current_fault, proc_set_current_signal,
5087 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5088 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5089 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5090 proc_get_current_thread, proc_get_current_thread,
5091 proc_get_current_thread, proc_update_threads,
5092 proc_update_threads, proc_update_threads, proc_update_threads,
5093 proc_iterate_over_threads, procfs_find_new_threads,
5094 procfs_pid_to_str): Make static. Remove advance declaration.
5095 (proc_cursig): Make static. Conditionalized defintion on
5096 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5097 (proc_syscall, proc_set_kill_on_last_close,
5098 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5099 proc_get_pending_signals, proc_get_signal_actions,
5100 proc_trace_signal, proc_ignore_signal): Delete.
5102 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5104 * coffread.c (cs_section_address): Passing proper argument for
5105 `bfd_get_section_vma'.
5106 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5107 `bfd_get_section_flags'.
5108 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5109 `bfd_get_section_vma'.
5111 2012-05-16 Tom Tromey <tromey@redhat.com>
5114 * macrotab.h: (macro_define_special): Declare.
5115 (enum macro_special_kind): New.
5116 (struct macro_definition) <argc, replacement>: Update comments.
5117 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5118 (macro_define_object_internal): New function.
5119 (macro_define_object): Use it.
5120 (macro_define_special): New function.
5121 (fixup_definition): New function.
5122 (macro_lookup_definition, foreach_macro_in_scope)
5123 (foreach_macro): Use fixup_definition.
5124 * macroexp.h (macro_stringify): Declare.
5125 * macroexp.c (free_buffer_return_text): New function.
5126 (stringify): Constify "arg".
5127 (macro_stringify): New function.
5128 * dwarf2read.c (macro_start_file): Call macro_define_special.
5130 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5131 Maciej W. Rozycki <macro@mips.com>
5133 * breakpoint.h (bp_location): Add related_address member.
5134 * inferior.h (get_return_value): Take a pointer to struct value
5135 instead of struct type for the function requested.
5136 * value.h (using_struct_return): Likewise.
5137 * gdbarch.sh (return_value): Take a pointer to struct value
5138 instead of struct type for the function requested.
5139 * breakpoint.c (set_breakpoint_location_function): Initialize
5140 related_address for bp_gnu_ifunc_resolver breakpoints.
5141 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5142 requested function's address to gdbarch_return_value.
5143 * eval.c (evaluate_subexp_standard): Pass the requested
5144 function's address to using_struct_return.
5145 * infcall.c (call_function_by_hand): Pass the requested
5146 function's address to using_struct_return and
5147 gdbarch_return_value.
5148 * infcmd.c (get_return_value): Take a pointer to struct value
5149 instead of struct type for the function requested.
5150 (print_return_value): Update accordingly.
5151 (finish_command_continuation): Likewise.
5152 * stack.c (return_command): Pass the requested function's
5153 address to using_struct_return and gdbarch_return_value.
5154 * value.c (using_struct_return): Take a pointer to struct value
5155 instead of struct type for the function requested. Pass the
5156 requested function's address to gdbarch_return_value.
5157 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5158 New function_value member, replacing function_type.
5159 (bpfinishpy_dealloc): Update accordingly.
5160 (bpfinishpy_pre_stop_hook): Likewise.
5161 (bpfinishpy_init): Likewise. Record the requested function's
5163 * mips-tdep.c (mips_fval_reg): New enum.
5164 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5165 words put in GP registers.
5166 (mips_o64_push_dummy_call): Update a comment.
5167 (mips_o32_return_value): Take a pointer to struct value instead
5168 of struct type for the function requested and use it to check if
5169 using the MIPS16 calling convention. Return the designated
5170 general purpose registers for floating-point values returned in
5172 (mips_o64_return_value): Likewise.
5173 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5174 (ppc_sysv_abi_broken_return_value): Likewise.
5175 (ppc64_sysv_abi_return_value): Likewise.
5176 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5177 value instead of struct type for the function requested.
5178 * amd64-tdep.c (amd64_return_value): Likewise.
5179 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5180 * arm-tdep.c (arm_return_value): Likewise.
5181 * avr-tdep.c (avr_return_value): Likewise.
5182 * bfin-tdep.c (bfin_return_value): Likewise.
5183 * cris-tdep.c (cris_return_value): Likewise.
5184 * frv-tdep.c (frv_return_value): Likewise.
5185 * h8300-tdep.c (h8300_return_value): Likewise.
5186 (h8300h_return_value): Likewise.
5187 * hppa-tdep.c (hppa32_return_value): Likewise.
5188 (hppa64_return_value): Likewise.
5189 * i386-tdep.c (i386_return_value): Likewise.
5190 * ia64-tdep.c (ia64_return_value): Likewise.
5191 * iq2000-tdep.c (iq2000_return_value): Likewise.
5192 * lm32-tdep.c (lm32_return_value): Likewise.
5193 * m32c-tdep.c (m32c_return_value): Likewise.
5194 * m32r-tdep.c (m32r_return_value): Likewise.
5195 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5196 * m68k-tdep.c (m68k_return_value): Likewise.
5197 (m68k_svr4_return_value): Likewise.
5198 * m88k-tdep.c (m88k_return_value): Likewise.
5199 * mep-tdep.c (mep_return_value): Likewise.
5200 * microblaze-tdep.c (microblaze_return_value): Likewise.
5201 * mn10300-tdep.c (mn10300_return_value): Likewise.
5202 * moxie-tdep.c (moxie_return_value): Likewise.
5203 * mt-tdep.c (mt_return_value): Likewise.
5204 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5205 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5206 (ppc_sysv_abi_broken_return_value): Likewise.
5207 (ppc64_sysv_abi_return_value): Likewise.
5208 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5209 * rl78-tdep.c (rl78_return_value): Likewise.
5210 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5211 * rx-tdep.c (rx_return_value): Likewise.
5212 * s390-tdep.c (s390_return_value): Likewise.
5213 * score-tdep.c (score_return_value): Likewise.
5214 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5215 (sh_return_value_fpu): Likewise.
5216 * sh64-tdep.c (sh64_return_value): Likewise.
5217 * sparc-tdep.c (sparc32_return_value): Likewise.
5218 * sparc64-tdep.c (sparc64_return_value): Likewise.
5219 * spu-tdep.c (spu_return_value): Likewise.
5220 * tic6x-tdep.c (tic6x_return_value): Likewise.
5221 * v850-tdep.c (v850_return_value): Likewise.
5222 * vax-tdep.c (vax_return_value): Likewise.
5223 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5224 * xtensa-tdep.c (xtensa_return_value): Likewise.
5225 * gdbarch.c: Regenerate.
5226 * gdbarch.h: Regenerate.
5228 2012-05-15 Tom Tromey <tromey@redhat.com>
5230 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5232 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5234 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5235 of command in two error message.
5237 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5239 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5241 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5243 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5245 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 * NEWS (show auto-load scripts-directory): Add forgotten command.
5249 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5251 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5254 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5256 * amd64-tdep.c: Include features/i386/x32.c and
5257 features/i386/x32-avx.c.
5258 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5259 initialize_tdesc_x32_avx.
5261 2012-05-14 Stan Shebs <stan@codesourcery.com>
5264 * breakpoint.h (enum bptype): New type bp_dprintf.
5265 (struct breakpoint): New field extra_string.
5266 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5267 (create_breakpoint): Add extra_string arg.
5268 * breakpoint.c (dprintf_breakpoint_ops): New.
5269 (is_breakpoint): Add bp_dprintf.
5270 (bpstat_what): Add dprintf case.
5271 (bptype_string): Ditto.
5272 (print_one_breakpoint_location): Ditto.
5273 (init_bp_location): Ditto.
5274 (bkpt_print_mention): Ditto.
5275 (dprintf_style_enums): New array.
5276 (dprintf_style): New global.
5277 (dprintf_function): New global.
5278 (dprintf_channel): New global.
5279 (update_dprintf_command_list): New function.
5280 (update_dprintf_commands): New function.
5281 (init_breakpoint_sal): Add extra_string argument, handle it.
5282 (create_breakpoint_sal): Add extra_string argument.
5283 (create_breakpoints_sal): Add extra_string argument, update callers.
5284 (find_condition_and_thread): Add extra argument.
5285 (create_breakpoint): Add extra_string argument, record it.
5286 (dprintf_command): New function.
5287 (break_command_1): Add arg to create_breakpoint call.
5288 (handle_gnu_v3_exceptions): Ditto.
5289 (trace_command): Ditto.
5290 (ftrace_command): Ditto.
5291 (strace_command): Ditto.
5292 (bkpt_print_mention): Add dprintf case.
5293 (create_breakpoint_sal_default): Add extra_string argument.
5294 (_initialize_breakpoint): Add new commands.
5295 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5296 * python/py-breakpoint.c (bppy_init): Ditto.
5297 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5299 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5301 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5303 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5305 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5308 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5310 Add a new function gdb.find_pc_line to the Python API.
5311 * NEWS (Python Scripting): Add entry about the new function.
5312 * python/python.c (gdbpy_find_pc_line): New function which
5313 implements gdb.find_pc_line.
5314 (GdbMethods): Add entry for the new function.
5316 2012-05-12 Pedro Alves <palves@redhat.com>
5318 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5319 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5321 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5323 * inferior.c: Include completer.h
5324 (initialize_inferiors): Set completer of add-inferior to
5327 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5329 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5330 gdbarch_ptr_bit for x32 core dump.
5332 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5334 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5335 and features/i386/x32-avx-linux.c.
5337 2012-05-11 Stan Shebs <stan@codesourcery.com>
5338 Kwok Cheung Yeung <kcy@codesourcery.com>
5340 * NEWS: Describe new info os commands.
5341 * common/linux-osdata.c (PID_T, TIME_T): Define.
5342 (MAX_PID_T_STRLEN): New.
5343 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5345 (command_from_pid): Add comment. Change to use PID_T.
5346 (commandline_from_pid): Change to use PID_T.
5347 (user_from_pid): Add comment.
5348 (get_process_owner): Add comment. Change to use PID_T and
5350 (get_number_of_cpu_cores): Add comment.
5351 (get_cores_used_by_process): Add comment. Change to use PID_T and
5353 (linux_xfer_osdata_processes): Change to use PID_T and
5355 (compare_processes): New function.
5356 (linux_xfer_osdata_processgroups): New function.
5357 (linux_xfer_osdata_threads): Change to use PID_T.
5358 (linux_xfer_osdata_fds): New function.
5359 (format_socket_state, print_sockets): New functions.
5360 (union socket_addr): New union.
5361 (linux_xfer_osdata_isockets): New function.
5362 (time_from_time_t, group_from_gid): New functions.
5363 (linux_xfer_osdata_shm): New function.
5364 (linux_xfer_osdata_sem): New function.
5365 (linux_xfer_osdata_msg): New function.
5366 (linux_xfer_osdata_modules): New function.
5367 (osdata_table): Add new entries.
5368 * common/buffer.c (buffer_xml_printf): Add support for long and
5369 long long format specifiers.
5371 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5373 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5374 (tdesc_x32_avx_linux): Likewise.
5376 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5378 Implement multi-component --with-auto-load-dir.
5379 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5381 (--with-auto-load-safe-path): Update the default value description.
5382 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5384 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5385 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5386 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5387 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5388 "set auto-load scripts-directory".
5389 * config.in: Regenerate.
5390 * configure: Regenerate.
5391 * configure.ac (--with-auto-load-dir): New configure option.
5392 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5394 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5396 Provide $ddir substitution for --with-auto-load-safe-path.
5397 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5399 * auto-load.c: Include observer.h.
5400 (auto_load_safe_path_vec_update): Call substitute_path_component for
5401 each component. New variable ddir_subst.
5402 (auto_load_gdb_datadir_changed): New function.
5403 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5404 AUTO_LOAD_SAFE_PATH. New comment.
5405 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5406 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5407 * config.in: Regenerate.
5408 * configure: Regenerate.
5409 * configure.ac (--auto-load-safe-path): Rename
5410 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5411 GDB_DATADIR/auto-load.
5412 * defs.h (substitute_path_component): New declaration.
5413 * top.c: Include observer.h.
5414 (set_gdb_datadir): New function.
5415 (init_main): Install it for "set data-directory".
5416 * utils.c (substitute_path_component): New function.
5418 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5420 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5421 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5422 DEBUG_FILE_DIRECTORY. Handle multiple components of
5423 DEBUG_FILE_DIRECTORY.
5425 2012-05-10 Tom Tromey <tromey@redhat.com>
5427 * dwarf2read.c (recursively_write_psymbols): New function.
5428 (write_psymtabs_to_index): Use it.
5430 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5432 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5433 (load_partial_comp_unit): Update.
5434 (queue_comp_unit): Add argument 'pretend_language'.
5435 (process_queue): Update.
5436 (psymtab_to_symtab_1): Skip dependencies that have a user.
5437 (load_partial_comp_unit_reader): Give meaning to the 'data'
5439 (load_full_comp_unit): Add 'pretend_language' argument.
5440 (process_full_comp_unit): Add 'pretend_language' argument. Set
5442 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5444 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5445 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5447 (prepare_one_comp_unit): Add 'pretend_language' argument.
5449 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5450 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5451 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5452 (dw2_do_instantiate_symtab): Check whether symtab was read in
5454 (dw2_instantiate_symtab): Add assertion. Call
5455 process_cu_includes.
5456 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5457 (partial_symtab_p): New typedef.
5458 (set_partial_user): New function.
5459 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5460 (scan_partial_symbols): Add imported CU to imported_symtabs.
5461 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5462 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5463 (get_symtab, recursively_compute_inclusions)
5464 (compute_symtab_includes, process_cu_includes)
5465 (process_imported_unit_die): New functions.
5466 (process_die) <DW_TAG_imported_unit>: New case.
5467 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5469 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5471 (struct partial_die_info) <locdesc>: Remove.
5473 (process_psymtab_comp_unit): Add 'read_partial' argument.
5475 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5476 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5477 (add_partial_symbol): Update.
5478 (process_die): Handle DW_TAG_partial_unit.
5479 (read_file_scope): Update comment.
5480 (load_partial_dies): Handle DW_TAG_imported_unit.
5481 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5482 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5484 2012-05-10 Tom Tromey <tromey@redhat.com>
5486 * cc-with-dwz.sh: New file.
5488 2012-05-10 Tom Tromey <tromey@redhat.com>
5490 * symtab.h (struct symtab) <includes, user>: New fields.
5491 * block.h (struct block_iterator) <d, idx, which>: New fields.
5492 * block.c (initialize_block_iterator, find_iterator_symtab)
5493 (block_iterator_step, block_iter_name_step)
5494 (block_iter_match_step): New functions.
5495 (block_iterator_first, block_iterator_next)
5496 (block_iter_name_first, block_iter_name_next)
5497 (block_iter_match_first, block_iter_match_next): Rewrite.
5498 (get_block_symtab): New function.
5500 2012-05-10 Tom Tromey <tromey@redhat.com>
5502 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5504 * jit.c (finalize_symtab): Use allocate_global_block,
5506 * buildsym.c (finish_block_internal): New function, from old
5508 (finish_block): Rewrite.
5509 (end_symtab): Use finish_block_internal, set_block_symtab.
5510 * block.h (struct global_block): New.
5511 (allocate_global_block, set_block_symtab): Declare.
5512 * block.c (allocate_global_block, set_block_symtab): New
5515 2012-05-10 Tom Tromey <tromey@redhat.com>
5517 * psymtab.c (partial_map_expand_apply): Add assertion.
5518 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5519 (psymtab_to_symtab): Find unshared psymtab.
5520 (dump_psymtab): Print including psymtabs.
5521 (recursively_search_psymtabs): New function.
5522 (expand_symtabs_matching_via_partial): Use it.
5523 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5525 (enum psymtab_search_status): New.
5527 2012-05-10 Tom Tromey <tromey@redhat.com>
5529 * tracepoint.c (scope_info): Update.
5530 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5531 (find_pc_sect_symtab, search_symbols)
5532 (default_make_symbol_completion_list_break_on)
5533 (make_file_symbol_completion_list): Update.
5534 * symmisc.c (dump_symtab_1): Update.
5535 * stack.c (print_frame_args, iterate_over_block_locals)
5536 (print_frame_labels, iterate_over_block_arg_vars): Update.
5537 * python/py-block.c (block_object) <dict>: Remove.
5539 <iter>: Change type.
5540 (blpy_iter): Update.
5541 (blpy_block_syms_iternext): Update.
5542 * psymtab.c (map_block): Use block iterators.
5543 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5544 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5545 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5546 * infrun.c (check_exception_resume): Update.
5547 * cp-support.c (make_symbol_overload_list_block): Update.
5548 * coffread.c (patch_opaque_types): Update.
5549 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5550 * block.h (struct block_iterator): New.
5551 (block_iterator_first, block_iterator_next, block_iter_name_first)
5552 (block_iter_name_next, block_iter_match_first)
5553 (block_iter_match_next): Declare.
5554 (ALL_BLOCK_SYMBOLS): Redefine.
5555 * block.c (block_iterator_first, block_iterator_next)
5556 (block_iter_name_first, block_iter_name_next)
5557 (block_iter_match_first, block_iter_match_next): New functions.
5558 * ada-lang.c (ada_add_block_symbols)
5559 (ada_make_symbol_completion_list): Use block iterator.
5561 2012-05-10 Tom Tromey <tromey@redhat.com>
5563 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5564 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5565 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5566 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5567 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5570 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5572 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5573 print-file-var-lib2.c, print-file-var-main.c and
5574 print-file-var.exp (located in gdb/testsuite/gdb.base).
5576 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5578 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5579 try locating the symbol in the symbol's own objfile first, before
5580 extending the search to all objfiles.
5581 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5582 out of lookup_symbol_aux_symtabs.
5583 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5584 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5585 Do not search EXCLUDE_OBJFILE.
5586 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5587 (lookup_symbol_global): Search for matches in the block's objfile
5588 first, before searching all other objfiles.
5590 2012-05-10 Tristan Gingold <gingold@adacore.com>
5592 * printcmd.c (set_command): Add pre/post inc/dec.
5594 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5596 * gdb.1: Document -ex option.
5598 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5600 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5601 * inferior.h (AT_SYMBOL): Delete.
5603 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5605 * mips-tdep.c (mips_push_dummy_code): New function.
5606 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5607 ON_STACK and install mips_push_dummy_code as our gdbarch
5608 push_dummy_code routine.
5610 2012-05-09 Pedro Alves <palves@redhat.com>
5612 * target.c (set_maintenance_target_async_permitted): Rename to ...
5613 (set_target_async_command): ... this.
5614 (show_maintenance_target_async_permitted): Rename to ...
5615 (show_target_async_command): ... this.
5616 (initialize_targets): Adjust.
5618 2012-05-08 Doug Evans <dje@google.com>
5620 * go-exp.y (classify_name): Add missing assignment of fields of
5623 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5625 Display the ">" prompt in interactive mode while reading canned
5626 commands, even when the current interpreter is MI.
5628 * interps.c (interp_set_temp): New function.
5630 * interps.h (interp_set_temp): Add prototype.
5632 * cli/cli-script.c (restore_interp): New cleanup function.
5633 (read_command_lines): Temporarily override the current interpreter
5634 with CLI and arrange for restoring the original one.
5636 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5638 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5640 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5642 * probe.c (parse_probes): Move conditional to check for
5643 debuginfo files from here...
5644 * stap-probe.c (stap_get_probes): ... to here.
5646 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5647 H.J. Lu <hongjiu.lu@intel.com>
5649 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5650 `movl %esp, %ebp' for the X32 ABI.
5652 2012-05-07 Tom Tromey <tromey@redhat.com>
5654 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5656 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5657 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5658 (dwarf_stack_op_name): Remove.
5659 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5660 (decode_locdesc): Use get_DW_OP_name.
5661 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5662 (dwarf2_compile_expr_to_ax): Likewise.
5663 (disassemble_dwarf_expression): Likewise.
5664 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5666 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5668 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5669 (sh_linux_sigtramp_cache): New function.
5670 (sh_linux_sigreturn_init): New function.
5671 (sh_linux_rt_sigreturn_init): New function.
5672 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5674 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5676 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5677 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5678 (sh_linux_init_abi): Add init calls to register new tramp_frame
5679 definitions under 32-bit SH, update comments.
5681 2012-05-07 Pedro Alves <palves@redhat.com>
5685 * amd64-linux-tdep.c: Include glibc-tdep.h.
5686 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5687 gdbarch_skip_solib_resolver callback.
5689 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5692 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5693 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5694 (add_auto_load_safe_path): Change the error message.
5695 (_initialize_auto_load): Change the "safe-path" help text.
5696 * configure: Regenerate
5697 * configure.ac (--without-auto-load-safe-path): Set
5698 WITH_AUTO_LOAD_SAFE_PATH to /.
5700 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5702 * stap-probe.h: Do not include unecessary `probe.h'.
5704 2012-05-05 Alan Modra <amodra@gmail.com>
5706 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5707 bfd_und_section_ptr.
5708 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5709 and bfd_com_section_ptr.
5711 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5713 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5715 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5717 * windows-nat.h (segment_register_p_ftype): New typedef.
5718 (windows_set_segment_register_p): Add declaration.
5719 * windows-nat.c (segment_register_p): New static global.
5720 (windows_set_segment_register_p): New function.
5721 (do_windows_fetch_inferior_registers): Add special handling
5722 for segment registers.
5723 * amd64-windows-nat.c: #include "amd64-tdep.h".
5724 (amd64_windows_segment_register_p): New function.
5725 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5726 * i386-windows-nat.c: #include "i386-tdep.h".
5727 (i386_windows_segment_register_p): New function.
5728 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5730 2012-05-04 Tristan Gingold <gingold@adacore.com>
5732 * printcmd.c (set_command): Emit a warning if the expression is not
5735 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5737 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5740 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5742 * stap-probe.c (stap_is_operator): Change declaration.
5743 (stap_get_opcode): Change return value.
5744 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5745 `stap_parse_argument_1'.
5747 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5749 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5752 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5754 Add two new methods global_block and static_block to gdb.Symtab
5756 * NEWS (Python scripting): Add entry about the new methods.
5757 * python/py-symtab.c (stpy_global_block): New function which
5758 implements the gdb.Symtab.global_block() method.
5759 (stpy_static_block): New function which implements the
5760 gdb.Symtab.static_block() method.
5761 (symtab_object_methods): Add entries for the two new methods.
5763 2012-05-03 Doug Evans <dje@google.com>
5765 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5768 2012-05-03 Yao Qi <yao@codesourcery.com>
5770 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5772 (i386_process_record): Ditto.
5774 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5776 * infcall.c (unwind_on_signal_p): Make static.
5778 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5780 * sol-thread.c (solaris_pid_to_str): Make static.
5781 (_initialize_sol_thread): Add prototype.
5783 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5785 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5787 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5789 * MAINTAINERS: Remove myself.
5791 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5793 Fix --without-auto-load-safe-path for MS-Windows host platform.
5794 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5796 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5798 * gdb_curses.h: Undefine KEY_EVENT before including curses
5799 headers. Move "#undef MOUSE_MOVED" before any curses header
5802 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5804 * features/i386/i386-mmx-linux.c: Regenerate.
5805 * features/rs6000/powerpc-32.c: Likewise.
5806 * features/rs6000/powerpc-32l.c: Likewise.
5807 * features/rs6000/powerpc-403.c: Likewise.
5808 * features/rs6000/powerpc-403gc.c: Likewise.
5809 * features/rs6000/powerpc-405.c: Likewise.
5810 * features/rs6000/powerpc-505.c: Likewise.
5811 * features/rs6000/powerpc-601.c: Likewise.
5812 * features/rs6000/powerpc-602.c: Likewise.
5813 * features/rs6000/powerpc-603.c: Likewise.
5814 * features/rs6000/powerpc-604.c: Likewise.
5815 * features/rs6000/powerpc-64.c: Likewise.
5816 * features/rs6000/powerpc-64l.c: Likewise.
5817 * features/rs6000/powerpc-750.c: Likewise.
5818 * features/rs6000/powerpc-860.c: Likewise.
5819 * features/rs6000/powerpc-e500.c: Likewise.
5820 * features/rs6000/powerpc-e500l.c: Likewise.
5821 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5822 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5823 * features/rs6000/rs6000.c: Likewise.
5825 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5827 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5829 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5830 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5831 (stap_parse_argument) <e>: Likewise.
5832 (handle_stap_probe) <byte_order>: Likewise.
5834 2012-04-30 Doug Evans <dje@google.com>
5836 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5837 init_and_read_dies_worker. All callers updated.
5838 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5839 replaced with init_cutu_and_read_dies.
5840 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5841 (find_partial_die): Remove FIXME. Don't free current CU.
5843 2012-04-30 Sterling Augustine <saugustine@google.com>
5845 * contrib: New directory.
5846 * contrib/test_pubnames_and_indexes.py: New file.
5848 2012-04-30 Doug Evans <dje@google.com>
5850 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5851 All callers updated.
5852 (init_cu_die_reader): Verify the section is non-empty.
5853 (dwarf_decode_line_header): Don't dereference section->asection
5854 until we know the section is present.
5856 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5858 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5861 2012-04-29 Yao Qi <yao@codesourcery.com>
5863 * gdb-code-style.el: New hook gdb-markup-hook
5864 and gdb-comment-hook.
5866 2012-04-28 Doug Evans <dje@google.com>
5868 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5869 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5871 * symfile.h (dwarf2_debug_sections): New member addr.
5872 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5873 (ctx_no_get_addr_index): New function.
5874 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5875 (ctx_no_get_addr_index): Declare.
5876 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5877 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5878 (dwarf_expr_ctx_funcs): Update.
5879 (needs_get_addr_index): New function.
5880 (needs_frame_ctx_funcs): Update.
5881 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5882 * dwarf2read.c: #include "gdbcore.h".
5883 (dwarf2_per_objfile): New members addr, dwo_files.
5884 (dwarf2_elf_names): Add entry for addr.
5885 (struct dwo_section_names): New type.
5886 (dwo_section_names): New static global.
5887 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5888 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5889 old debug_types_section member updated to use this.
5890 Rename member debug_types_section to info_or_types_section,
5892 (signatured_type): Rename member type_offset to type_offset_in_tu,
5893 all uses updated. New member type_offset_in_section.
5894 (struct dwo_sections): New type.
5895 (struct dwo_unit): New type.
5896 (struct dwo_file): New type.
5897 (die_reader_specs): New member dwo_file.
5898 (dwarf2_locate_sections): Watch for .debug_addr.
5899 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5900 (dwarf2_read_section): Get bfd of section from bfd's asection,
5902 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5903 (create_signatured_type_table_from_index): Initialize
5904 sig_type->info_or_types_section.
5905 (dw2_get_file_names): Statement lists for type units with DWO files
5906 live in the DWO file.
5907 (create_debug_types_hash_table): New function.
5908 (create_all_type_units): Rewrite.
5909 (init_cu_die_reader): New arg dwo_file, all callers updated.
5910 (init_and_read_dies_worker): Get section from
5911 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5912 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5913 continue reading the CU/TU from there.
5914 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5915 updated. Get section from this_cu->info_or_types_section.
5916 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5917 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5918 DW_FORM_GNU_str_index.
5919 (hash_dwo_file, eq_dwo_file): New functions.
5920 (allocate_dwo_file_hash_table): New function.
5921 (hash_dwo_unit, eq_dwo_unit): New functions.
5922 (allocate_dwo_unit_table): New function.
5923 (dwarf2_locate_dwo_sections): New function.
5924 (struct create_dwo_info_table_data): New type.
5925 (create_debug_info_hash_table_reader): New function.
5926 (create_debug_info_hash_table): New function.
5927 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5928 (lookup_dwo_file): New function.
5929 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5930 (free_dwo_file, free_dwo_file_cleanup): New functions.
5931 (free_dwo_file_from_slot, free_dwo_files): New functions.
5932 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5933 (dwarf2_record_block_ranges): Ditto.
5934 (read_partial_die): Ditto.
5935 (process_enumeration_scope): Update to use type_offset_in_section.
5936 (read_full_die_1): New function.
5937 (read_full_die): Rewrite.
5938 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5939 DW_FORM_GNU_str_index.
5940 (read_addr_index_1, read_addr_index): New functions.
5941 (read_addr_index_from_leb128): New function.
5942 (struct dwarf2_read_addr_index_data): New type.
5943 (dwarf2_read_addr_index_reader): New function.
5944 (dwarf2_read_addr_index): New function.
5945 (read_str_index): New function.
5946 (leb128_size): New function.
5947 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5948 If processing a type unit from a DWO file, get the line section
5950 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5951 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5952 DW_FORM_GNU_str_index.
5953 (lookup_die_type): Check whether section offset of type's die is
5954 known before looking it up. Remove assert. Condition can
5955 legimately happen for inter-cu type references.
5956 (dwarf_attr_name): Handle Fission attributes.
5957 (dwarf_form_name): Handle Fission forms.
5958 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5959 DW_FORM_GNU_str_index.
5960 (follow_die_sig): Update to use type_offset_in_section.
5961 (decode_locdesc): New case DW_OP_GNU_addr_index.
5962 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5963 DW_FORM_GNU_str_index.
5964 (cu_debug_loc_section): New function.
5965 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5966 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5967 Free DWO files if present.
5968 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5970 Refactor DIE reading.
5971 * dwarf2read.c (dwarf2_per_objfile): Replace members
5972 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5973 (die_reader_specs): New member "die_section". Temporarily make
5974 member "buffer" non-const, pending constifying all info_ptr uses.
5975 (die_reader_func_ftype): New typedef.
5976 (dw2_get_file_names_reader): New function.
5977 (dw2_get_file_names): Rewrite.
5978 (read_and_check_type_unit_head): Rename arg type_offset to
5980 (create_all_type_units): Improve debugging message.
5981 Improve dummy type unit check.
5982 (init_cu_die_reader): New arg "section". All callers updated.
5983 (init_and_read_dies_worker): New function.
5984 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5985 (init_cutu_and_read_dies_no_follow): New function.
5986 (init_cutu_and_read_dies_simple): New function.
5987 (process_psymtab_comp_unit_reader): New function.
5988 (process_psymtab_comp_unit): Delete args section,
5989 is_debug_types_section. Rewrite. All callers updated.
5990 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5991 All callers updated. Rewrite.
5992 (load_partial_comp_unit_reader): New function.
5993 (load_partial_comp_unit): Rewrite.
5994 (skip_children): New arg reader. Delete args buffer, cu.
5995 All callers updated.
5996 (skip_one_die): New arg reader. Delete args buffer, cu.
5997 All callers updated.
5998 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5999 All callers updated.
6000 (load_full_comp_unit_reader): New function.
6001 (load_full_comp_unit): Rewrite.
6002 (read_comp_unit): Delete.
6003 (read_die_and_children_1): Delete, contents moved ...
6004 (read_die_and_children): ... here.
6005 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6006 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6007 All callers updated.
6008 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6009 All callers updated.
6010 (find_partial_die): Rewrite load_all_dies support.
6011 (read_attribute_value): New arg reader. Delete args abfd, cu.
6012 All callers updated.
6013 (read_attribute): New arg reader. Delete args abfd, cu.
6014 All callers updated.
6015 (load_full_type_unit): Add assert.
6016 (read_signatured_type_reader): New function.
6017 (read_signatured_type): Rewrite.
6018 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6019 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6020 All callers updated. Set per_cu->cu = NULL after freeing it.
6021 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6022 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6023 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6024 (set_die_type): Update.
6025 (get_die_type_at_offset): Update.
6026 (read_file_scope): Call prepare_one_comp_unit.
6027 (read_type_unit_scope): Ditto.
6028 (prepare_one_comp_unit): Set producer if present.
6030 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6032 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6033 gettext function on `error'.
6035 2012-04-27 Doug Evans <dje@google.com>
6037 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6040 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6041 Tom Tromey <tromey@redhat.com>
6043 * breakpoint.c (struct breakpoint_objfile_data)
6044 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6045 <exception_probes>: New fields.
6046 (free_breakpoint_probes): New function.
6047 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6048 `_Unwind_DebugHook'.
6049 (create_exception_master_breakpoint): Likewise.
6050 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6051 * infrun.c: Including necessary header files for handling SystemTap
6053 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6054 via SystemTap probes.
6055 (check_exception_resume): Remove `func' argument. Handle exception
6056 unwinding breakpoint set via a SystemTap probe.
6057 (insert_exception_resume_from_probe): New function.
6059 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6060 Tom Tromey <tromey@redhat.com>
6061 Jan Kratochvil <jan.kratochvil@redhat.com>
6063 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6064 (COMMON_OBS): Likewise.
6065 (HFILES_NO_SRCDIR): Add `probe'.
6066 * NEWS: Mention support for static and SystemTap probes.
6067 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6068 SystemTap probes' arguments parser.
6069 * arm-linux-tdep.c: Including headers needed to perform the parsing
6070 of SystemTap probes' arguments.
6071 (arm_stap_is_single_operand): New function.
6072 (arm_stap_parse_special_token): Likewise.
6073 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6074 probes' arguments parser.
6075 * ax-gdb.c (require_rvalue): Removing static declaration.
6076 (gen_expr): Likewise.
6077 * ax-gdb.h (gen_expr): Declaring function.
6078 (require_rvalue): Likewise.
6079 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6080 (bkpt_probe_breakpoint_ops): New variable.
6081 (momentary_breakpoint_from_master): Set the `probe' value.
6082 (add_location_to_breakpoint): Likewise.
6083 (break_command_1): Using proper breakpoint_ops according to the
6084 argument passed by the user in the command line.
6085 (bkpt_probe_insert_location): New function.
6086 (bkpt_probe_remove_location): Likewise.
6087 (bkpt_probe_create_sals_from_address): Likewise.
6088 (bkpt_probe_decode_linespec): Likewise.
6089 (tracepoint_probe_create_sals_from_address): Likewise.
6090 (tracepoint_probe_decode_linespec): Likewise.
6091 (tracepoint_probe_breakpoint_ops): New variable.
6092 (trace_command): Using proper breakpoint_ops according to the
6093 argument passed by the user in the command line.
6094 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6095 static probes on breakpoints and tracepoints.
6096 * breakpoint.h (struct bp_location) <probe>: New field.
6097 * cli-utils.c (skip_spaces_const): New function.
6098 (extract_arg): Likewise.
6099 * cli-utils.h (skip_spaces_const): Likewise.
6100 (extract_arg): Likewise.
6101 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6102 * configure.ac: Append `stap-probe.o' to be generated when ELF
6104 * configure: Regenerate.
6105 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6106 * elfread.c: Include `probe.h' and `arch-utils.h'.
6107 (probe_key): New variable.
6108 (elf_get_probes): New function.
6109 (elf_get_probe_argument_count): Likewise.
6110 (elf_evaluate_probe_argument): Likewise.
6111 (elf_compile_to_ax): Likewise.
6112 (elf_symfile_relocate_probe): Likewise.
6113 (stap_probe_key_free): Likewise.
6114 (elf_probe_fns): New variable.
6115 (elf_sym_fns): Add `sym_probe_fns' value.
6116 (elf_sym_fns_lazy_psyms): Likewise.
6117 (elf_sym_fns_gdb_index): Likewise.
6118 (_initialize_elfread): Initialize objfile cache for static
6120 * gdb_vecs.h (struct probe): New forward declaration.
6121 (probe_p): New VEC declaration.
6122 * gdbarch.c: Regenerate.
6123 * gdbarch.h: Regenerate.
6124 * gdbarch.sh (stap_integer_prefix): New variable.
6125 (stap_integer_suffix): Likewise.
6126 (stap_register_prefix): Likewise.
6127 (stap_register_suffix): Likewise.
6128 (stap_register_indirection_prefix): Likewise.
6129 (stap_register_indirection_suffix): Likewise.
6130 (stap_gdb_register_prefix): Likewise.
6131 (stap_gdb_register_suffix): Likewise.
6132 (stap_is_single_operand): New function.
6133 (stap_parse_special_token): Likewise.
6134 (struct stap_parse_info): Forward declaration.
6135 * i386-tdep.c: Including headers needed to perform the parsing
6136 of SystemTap probes' arguments.
6137 (i386_stap_is_single_operand): New function.
6138 (i386_stap_parse_special_token): Likewise.
6139 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6140 probes' arguments parser.
6141 * i386-tdep.h (i386_stap_is_single_operand): New function.
6142 (i386_stap_parse_special_token): Likewise.
6143 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6144 * mipsread.c (ecoff_sym_fns): Likewise.
6145 * objfiles.c (objfile_relocate1): Support relocation for static
6147 * parse.c (prefixify_expression): Remove static declaration.
6148 (initialize_expout): Likewise.
6149 (reallocate_expout): Likewise.
6150 * parser-defs.h (initialize_expout): Declare function.
6151 (reallocate_expout): Likewise.
6152 (prefixify_expression): Likewise.
6153 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6154 of SystemTap probes' arguments.
6155 (ppc_stap_is_single_operand): New function.
6156 (ppc_stap_parse_special_token): Likewise.
6157 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6158 probes' arguments parser.
6159 * probe.c: New file, for generic statically defined probe support.
6160 * probe.h: Likewise.
6161 * s390-tdep.c: Including headers needed to perform the parsing of
6162 SystemTap probes' arguments.
6163 (s390_stap_is_single_operand): New function.
6164 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6165 probes' arguments parser.
6166 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6167 * stap-probe.c: New file, for SystemTap probe support.
6168 * stap-probe.h: Likewise.
6169 * symfile.h: Include `gdb_vecs.h'.
6170 (struct sym_probe_fns): New struct.
6171 (struct sym_fns) <sym_probe_fns>: New field.
6172 * symtab.c (init_sal): Initialize `probe' field.
6173 * symtab.h (struct probe): Forward declaration.
6174 (struct symtab_and_line) <probe>: New field.
6175 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6177 (stop_tracing): Likewise.
6178 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6180 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6181 Tom Tromey <tromey@redhat.com>
6183 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6184 and to compile agent expressions.
6185 * infrun.c (siginfo_make_value): New argument `ignore'.
6186 (siginfo_funcs): New struct.
6187 (_initialize_infrun): New argument when calling
6188 `create_internalvar_type_lazy'.
6189 * thread.c (thread_id_make_value): New argument `ignore'.
6190 (thread_funcs): New struct.
6191 (_initialize_thread): New argument when calling
6192 `create_internalvar_type_lazy'.
6193 * tracepoint.c (sdata_make_value): New argument `ignore'.
6194 (sdata_funcs): New struct.
6195 (_initialize_tracepoint): New argument when calling
6196 `create_internalvar_type_lazy'.
6197 * value.c (make_value): New struct.
6198 (create_internalvar_type_lazy): New argument `data'.
6199 (compile_internalvar_to_ax): New function.
6200 (value_of_internalvar): Properly handling `make_value' case.
6201 (clear_internalvar): Likewise.
6202 (show_convenience): Adding `TRY_CATCH' block.
6203 * value.h (internalvar_make_value): Delete, replace by...
6204 (struct internalvar_funcs): ... this.
6205 (create_internalvar_type_lazy) <fun>: Delete argument.
6206 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6207 (compile_internalvar_to_ax): New function.
6208 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6209 (tlb_funcs): New struct.
6210 (_initialize_windows_tdep): New argument when calling
6211 `create_internalvar_type_lazy'.
6213 2012-04-27 Mark Wielaard <mjw@redhat.com>
6215 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6216 see whether it is an address or a constant offset from DW_AT_low_pc.
6217 (dwarf2_record_block_ranges): Likewise.
6218 (read_partial_die): Likewise.
6220 2012-04-26 Mark Wielaard <mjw@redhat.com>
6222 * MAINTAINERS (Write After Approval): Add myself to the list.
6224 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6226 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6227 (proc_prettyprint_signal): Likewise.
6228 (proc_prettyprint_faultset): Likewise.
6229 (proc_prettyprint_fault): Likewise.
6230 (proc_prettyprint_actionset): Likewise.
6231 (proc_prettyprint_flags): Move to new proc-flags.c section.
6232 (proc_prettyfprint_flags): New prototype.
6233 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6234 (proc_syscall, proc_cursig): Likewise.
6235 (proc_set_kill_on_last_close): Likewise.
6236 (proc_unset_kill_on_last_close): Likewise.
6237 (proc_set_watchpoint): Make static.
6238 (proc_delete_dead_threads): Likewise.
6239 (procfs_set_watchpoint): Likewise.
6240 (_initialize_procfs): Add prototype.
6241 * proc-events.c: Include proc-utils.h.
6242 (init_syscall_table): Make static.
6243 * proc-api.c (_initialize_proc_api): Add prototype.
6244 * proc-flags.c: Include proc-utils.h.
6246 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6248 * configure.ac: Add AC_ARG_PROGRAM.
6249 * configure: Regenerate.
6251 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6253 Fix DW_AT_lower_bound defaults for DWARF-4+.
6254 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6255 high. New variable low_default_is_valid. Implement DWARF-4+
6256 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6257 no default by the DWARF standard.
6259 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6260 Maciej W. Rozycki <macro@codesourcery.com>
6262 * infrun.c (handle_inferior_event): Move the check for return
6263 trampolines ahead of the check for function trampolines.
6264 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6265 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6266 (mips_str_mips16_ret_stub): Likewise.
6267 (mips_str_call_fp_stub): Likewise.
6268 (mips_str_call_stub): Likewise.
6269 (mips_str_fn_stub): Likewise.
6270 (mips_str_pic): Likewise.
6271 (mips_in_frame_stub): New function.
6272 (mips_unwind_pc): Return the return address rather than the PC
6273 if the PC of an intermediate frame is inside a call thunk.
6274 (mips_is_stub_suffix): New function.
6275 (mips_is_stub_mode): Likewise.
6276 (mips_get_mips16_fn_stub_pc): Likewise.
6277 (mips_skip_mips16_trampoline_code): Update to handle all the
6278 currently generated stub types. Don't recurse into __fn_stub
6279 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6280 Use cooked register accesses.
6281 (mips_in_return_stub): Reintroduce function.
6282 (mips_skip_trampoline_code): Traverse trampolines recursively.
6283 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6285 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6289 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6291 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6292 * features/arm-with-m-vfp-d16.xml: New file. Describes
6293 Cortex-M with VFPv4-sp-d16 FPU register layout.
6294 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6295 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6296 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6297 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6298 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6300 2012-04-25 Doug Evans <dje@google.com>
6302 * cli/cli-decode.c (print_doc_line): Use stream instead of
6305 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6307 * features/arm-with-iwmmxt.c: Regenerate.
6308 * features/arm-with-m-fpa-layout.c: Likewise.
6309 * features/arm-with-m.c: Likewise.
6310 * features/arm-with-neon.c: Likewise.
6311 * features/arm-with-vfpv2.c: Likewise.
6312 * features/arm-with-vfpv3.c: Likewise.
6313 * features/mips-dsp-linux.c: Likewise.
6314 * features/mips-linux.c: Likewise.
6315 * features/mips64-dsp-linux.c: Likewise.
6316 * features/mips64-linux.c: Likewise.
6317 * features/s390-linux32.c: Likewise.
6318 * features/s390-linux32v1.c: Likewise.
6319 * features/s390-linux32v2.c: Likewise.
6320 * features/s390-linux64.c: Likewise.
6321 * features/s390-linux64v1.c: Likewise.
6322 * features/s390-linux64v2.c: Likewise.
6323 * features/s390x-linux64.c: Likewise.
6324 * features/s390x-linux64v1.c: Likewise.
6325 * features/s390x-linux64v2.c: Likewise.
6326 * features/tic6x-c62x-linux.c: Likewise.
6327 * features/tic6x-c62x.c: Likewise.
6328 * features/tic6x-c64x-linux.c: Likewise.
6329 * features/tic6x-c64x.c: Likewise.
6330 * features/tic6x-c64xp-linux.c: Likewise.
6331 * features/tic6x-c64xp.c: Likewise.
6332 * target-descriptions.c: Only generate `field_type' and `type'
6333 variables when needed.
6335 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6337 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6339 2012-04-25 Doug Evans <dje@google.com>
6341 Initial pass at Go language support.
6343 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6345 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6346 (YYFILES): Add go-exp.c.
6347 (YYOBJ): Add go-exp.o.
6348 (local-maintainer-clean): Delete go-exp.c.
6349 * defs.h (enum language): Add language_go.
6350 * dwarf2read.c: #include "go-lang.h".
6351 (fixup_go_packaging): New function.
6352 (process_full_comp_unit): Call it when processing Go CUs.
6353 (dwarf2_physname): Add Go support.
6354 (read_file_scope): Handle missing language spec for GNU Go.
6355 (set_cu_language): Handle DW_LANG_Go.
6356 * go-exp.y: New file.
6357 * go-lang.h: New file.
6358 * go-lang.c: New file.
6359 * go-typeprint.c: New file.
6360 * go-valprint.c: New file.
6361 * symtab.c: #include "go-lang.h".
6362 (symbol_set_language): Handle language_go.
6363 (symbol_find_demangled_name, symbol_set_names): Ditto.
6364 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6366 2012-04-24 Jim Meyering <meyering@redhat.com>
6368 avoid a few strncpy-induced buffer overruns
6369 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6370 fname and psargs before trying to concatenate.
6371 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6372 "name" before applying strchr.
6374 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6376 * CONTRIBUTE: Use unified diff instead of context diff when
6379 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6381 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6382 code. Handle JR.HB correctly.
6384 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6387 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6388 with the other MIPS16 helpers.
6390 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6392 * observer.sh: Conditionally declare `args', thus cleaning up
6393 unused instances of this variable.
6395 2012-04-24 Yao Qi <yao@codesourcery.com>
6397 Revert this patch to allow breakpoint always-inserted
6399 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6400 * breakpoint.c: Include record.h.
6401 (breakpoints_always_inserted_mode): Return false when the record
6404 * breakpoint.c (iterate_over_bp_locations): New.
6405 * breakpoint.h: Declare.
6406 New typedef walk_bp_location_callback.
6407 * record.c (record_open): Call record_init_record_breakpoints.
6408 (record_sync_record_breakpoints): New.
6409 (record_init_record_breakpoints): New.
6410 * NEWS: Mention supporting breakpoint always-inserted mode in
6413 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6415 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6418 2012-04-24 Yao Qi <yao@codesourcery.com>
6420 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6421 (is_catchpoint): ... it.
6422 (print_one_breakpoint_location): Caller update.
6423 * breakpoint.h: Update declaration.
6425 2012-04-23 David S. Miller <davem@davemloft.net>
6427 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6429 2012-04-23 Tom Tromey <tromey@redhat.com>
6431 * buildsym.c (add_free_pendings): Remove.
6432 * buildsym.h (add_free_pendings): Remove.
6434 2012-04-23 Doug Evans <dje@google.com>
6436 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6437 attr.u.unsnd instead of attr.u.addr.
6438 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6439 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6441 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6442 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6444 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6446 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6448 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6449 (mips_o32_return_value): Likewise.
6450 (mips_o64_return_value): Likewise.
6452 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6454 * ada-lang.c (ada_evaluate_subexp): Add cases for
6455 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6456 their treatment in eval.c.
6458 2012-04-21 David S. Miller <davem@davemloft.net>
6460 * sparc-tdep.c (X_DISP10): Define.
6461 (sparc_analyze_control_transfer): Handle compare-and-branch.
6463 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6465 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6466 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6468 2012-04-20 Nigel Stephens <nigel@mips.com>
6469 Maciej W. Rozycki <macro@codesourcery.com>
6471 * mips-tdep.c (mips_float_register_p): New function.
6472 (mips_convert_register_float_case_p): Use mips_float_register_p.
6473 (mips_register_type): Likewise.
6474 (mips_print_register): Likewise.
6475 (print_gp_register_row): Likewise.
6476 (mips_print_registers_info): Likewise.
6478 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6480 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6483 2012-04-20 Andrew Pinski <apinski@cavium.com>
6485 * MAINTAINERS (Write After Approval): Add myself to the list.
6487 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6489 * MAINTAINERS: Update my e-mail address.
6491 2012-04-20 Pedro Alves <palves@redhat.com>
6493 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6495 * configure: Regenerate.
6497 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6499 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6501 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6503 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6505 Fix compilation compatibility with python-2.4
6506 * python/py-type.c (convert_field): Cast ADDRSTRING for
6507 PyObject_SetAttrString as non-const. New comment.
6509 2012-04-19 Tom Tromey <tromey@redhat.com>
6511 * top.c (quit_target): Use all_cleanups.
6512 * main.c (captured_command_loop): Use all_cleanups.
6513 * exceptions.c (throw_exception): Use all_cleanups.
6515 2012-04-19 Pedro Alves <palves@redhat.com>
6517 * Makefile.in (GNULIB_BUILDDIR): New.
6518 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6519 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6520 (CLEANDIRS). Remove gnulib/import.
6521 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6523 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6524 (gnulib/import/Makefile): Replace gnulib/import with
6525 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6526 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6527 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6528 acx_configure_dir.m4.
6529 * acinclude.m4: Include acx_configure_dir.m4.
6530 * acx_configure_dir.m4: New file.
6531 * aclocal.m4: Regenerate.
6532 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6533 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6534 (GNULIB): New variable.
6535 (GNULIB_STDINT_H): Adjust.
6536 (AC_OUTPUT): Don't output gnulib/Makefile.
6537 * gdb/defs.h: Include build-gnulib/config.h.
6538 * aclocal.m4: Regenerate.
6539 * config.in: Regenerate.
6540 * configure: Regenerate.
6542 * gnulib/Makefile.in: New file.
6543 * gnulib/configure.ac: New file.
6544 * gnulib/aclocal.m4: New file.
6545 * gnulib/config.in: New file.
6546 * gnulib/configure: New file.
6547 * gnulib/: Re-run gnulib-tool to adjust.
6549 2012-04-19 Doug Evans <dje@google.com>
6551 * cleanups.h (struct cleanup): Move to cleanups.c.
6552 (make_cleanup_dtor_ftype): New typedef.
6553 (make_cleanup_dtor): Use it.
6554 (ALL_CLEANUPS): Replace with ...
6555 (all_cleanups): ... this. Declare. All uses updated.
6556 * cleanups.c: #include "gdb_assert.h".
6557 (sentinel_cleanup): New static global.
6558 (SENTINEL_CLEANUP): Define.
6559 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6560 (make_my_cleanup2): Assert result is non-NULL.
6561 (all_cleanups): New function.
6562 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6565 2012-04-19 Pedro Alves <palves@redhat.com>
6567 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6568 Adjust paths to gnulib imported files.
6570 2012-04-19 Pedro Alves <palves@redhat.com>
6572 * gnulib/: Move whole directory ...
6573 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6574 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6575 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6576 (aclocal_m4_deps): Adjust.
6577 * aclocal.m4: Regenerate.
6578 * configure: Regenerate.
6579 * configure.ac: Adjust AC_OUTPUT output.
6581 2012-04-19 Yao Qi <yao@codesourcery.com>
6583 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6585 * vec.c: Move it ...
6586 * common/vec.c: ... here.
6587 * vec.h: Move it ...
6588 * common/vec.h: ... here.
6590 2012-04-19 Yao Qi <yao@codesourcery.com>
6592 * gdb-code-style.el: New.
6594 2012-04-18 Pedro Alves <palves@redhat.com>
6596 Update gnulib from latest git.
6597 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6599 * gnulib/Makefile.am: Update.
6600 * gnulib/dummy.c: Update.
6601 * gnulib/extra/arg-nonnull.h: Update.
6602 * gnulib/extra/c++defs.h: Update.
6603 * gnulib/extra/update-copyright: Update.
6604 * gnulib/extra/warn-on-use.h: Update.
6605 * gnulib/inttypes.in.h: Update.
6606 * gnulib/m4/00gnulib.m4: Update.
6607 * gnulib/m4/extensions.m4: Update.
6608 * gnulib/m4/gnulib-cache.m4: Update.
6609 * gnulib/m4/gnulib-common.m4: Update.
6610 * gnulib/m4/gnulib-comp.m4: Update.
6611 * gnulib/m4/gnulib-tool.m4: Update.
6612 * gnulib/m4/include_next.m4: Update.
6613 * gnulib/m4/inttypes-pri.m4: Update.
6614 * gnulib/m4/inttypes.m4: Update.
6615 * gnulib/m4/longlong.m4: Update.
6616 * gnulib/m4/memchr.m4: Update.
6617 * gnulib/m4/memmem.m4: Update.
6618 * gnulib/m4/mmap-anon.m4: Update.
6619 * gnulib/m4/multiarch.m4: Update.
6620 * gnulib/m4/onceonly.m4: Update.
6621 * gnulib/m4/stddef_h.m4: Update.
6622 * gnulib/m4/stdint.m4: Update.
6623 * gnulib/m4/string_h.m4: Update.
6624 * gnulib/m4/warn-on-use.m4: Update.
6625 * gnulib/m4/wchar_h.m4: Update.
6626 * gnulib/m4/wchar_t.m4: Update.
6627 * gnulib/m4/wint_t.m4: Update.
6628 * gnulib/memchr.c: Update.
6629 * gnulib/memmem.c: Update.
6630 * gnulib/stddef.in.h: Update.
6631 * gnulib/stdint.in.h: Update.
6632 * gnulib/str-two-way.h: Update.
6633 * gnulib/string.in.h: Update.
6634 * gnulib/wchar.in.h: Update.
6636 * gnulib/extra/arg-nonnull.h: Delete.
6637 * gnulib/extra/c++defs.h: Delete.
6638 * gnulib/extra/warn-on-use.h: Delete.
6639 * gnulib/m4/wchar_h.m4: Delete.
6640 * gnulib/m4/wint_t.m4: Delete.
6641 * gnulib/wchar.in.h: Delete.
6643 * gnulib/extra/snippets/arg-nonnull.h: New.
6644 * gnulib/extra/snippets/c++defs.h: New.
6645 * gnulib/extra/snippets/warn-on-use.h: New.
6647 * aclocal.m4: Regenerate.
6648 * config.in: Regenerate.
6649 * configure: Regenerate.
6650 * gnulib/Makefile.in: Regenerate.
6652 2012-04-18 Pedro Alves <palves@redhat.com>
6654 Reimport the update-copyright module from gnulib
6655 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6657 * configure: Regenerate.
6658 * gnulib/Makefile.am: Update.
6659 * gnulib/Makefile.in: Regenerate.
6660 * gnulib/extra/update-copyright: Update.
6661 * gnulib/m4/gnulib-cache.m4: Update.
6662 * gnulib/m4/gnulib-comp.m4: Update.
6664 2012-04-18 Tristan Gingold <gingold@adacore.com>
6666 * configure.ac (aix): Put -lpthread into libs.
6667 * configure: Regenerate.
6669 2012-04-18 Tom Tromey <tromey@redhat.com>
6671 * linespec.c (convert_linespec_to_sals): Don't use
6673 (compare_msymbols): Arguments are minsym_and_objfile, not
6674 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6676 2012-04-18 Pedro Alves <palves@redhat.com>
6678 Revert gnulib/ part of:
6679 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6680 Copyright year update in most files (performed by copyright.sh).
6682 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6684 Fix 64-bit constants on 32-bit hosts.
6685 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6686 from unsigned long to ULONGEST.
6687 (read_signed_leb128): Change declaration return type from long to
6689 (dwarf2_const_value_attr): Change declaration parameter value from long
6691 (dwarf2_compute_name): Change variable value from long to LONGEST.
6692 (read_unsigned_leb128): Change return type, variable result and some
6693 casts from unsigned long to ULONGEST.
6694 (read_signed_leb128): Change return type, variable result and some
6695 casts from long to LONGEST.
6696 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6697 value from long to LONGEST.
6698 (dwarf2_const_value): Change variable value from long to LONGEST.
6699 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6700 plongest and hex_string.
6701 * symtab.h (struct general_symbol_info): Change ivalue from long to
6702 LONGEST, remove the comment.
6703 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6704 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6706 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6709 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6710 * ada-lang.c (ada_discrete_type_high_bound)
6711 (ada_discrete_type_low_bound): Fix function comment. Use
6712 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6713 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6714 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6715 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6716 Use TYPE_FIELD_ENUMVAL.
6717 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6718 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6719 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6720 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6722 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6723 * dwarf2read.c (process_enumeration_scope): Likewise.
6724 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6726 (class StructMainTypePrettyPrinter): Support also
6727 FIELD_LOC_KIND_ENUMVAL.
6728 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6730 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6731 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6732 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6733 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6735 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6736 accommodate enumval.
6737 (struct call_site): Adjust loc_kind to accommodate enumval.
6738 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6739 (TYPE_FIELD_ENUMVAL): New macros.
6740 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6741 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6743 * p-typeprint.c (pascal_type_print_base): Likewise.
6744 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6746 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6747 * python/py-type.c (convert_field): New variable addrstring. Use
6748 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6749 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6750 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6751 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6753 * valprint.c (generic_val_print): Likewise.
6755 2012-04-17 Doug Evans <dje@google.com>
6757 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6759 * dwarf2read.c: Whitespace fixes.
6760 (lookup_signatured_type): Tweak comment.
6761 (get_die_type_at_offset): Fix comment.
6763 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6765 * xcoffread.c (xcoff_secnum_to_sections): New function.
6766 (secnum_to_section, secnum_to_bfd_section): Reimplement
6767 using xcoff_secnum_to_sections. Rename "secnum" parameter
6769 (RECORD_MINIMAL_SYMBOL): Delete.
6770 (record_minimal_symbol): New function.
6771 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6772 by call to record_minimal_symbol and set misc_func_recorded
6773 to 1. Set last_csect_sec to the XCOFF section index instead
6774 of GDB's section_offset index. Update calls to
6775 prim_record_minimal_symbol_and_info to pass the BFD section
6778 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6780 * xcoffread.c (read_xcoff_symtab): Delete variables
6781 last_csect_val and last_csect_sec and associated code.
6783 2012-04-17 Doug Evans <dje@google.com>
6785 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6786 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6787 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6788 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6790 * cleanups.h: New file.
6791 * cleanups.c: New file.
6792 * Makefile.in (SFILES): Add cleanups.c.
6793 (HFILES_NO_SRCDIR): Add cleanups.h.
6794 (COMMON_OBS): Add cleanups.o.
6795 * defs.h (struct cleanup): Moved to cleanups.h.
6796 (do_cleanups,do_final_cleanups): Ditto.
6797 (discard_cleanups,discard_final_cleanups): Ditto
6798 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6799 (save_cleanups,save_final_cleanups): Ditto.
6800 (restore_cleanups,restore_final_cleanups): Ditto.
6801 (null_cleanup): Ditto.
6802 (make_my_cleanup,make_my_cleanup2): Ditto.
6803 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6804 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6805 (do_cleanups,do_final_cleanups): Ditto.
6806 (discard_cleanups,discard_final_cleanups): Ditto
6807 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6808 (save_cleanups,save_final_cleanups): Ditto.
6809 (restore_cleanups,restore_final_cleanups): Ditto.
6810 (null_cleanup): Ditto.
6811 (make_my_cleanup,make_my_cleanup2): Ditto.
6812 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6814 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6816 (make_cleanup_dyn_string_delete): Ditto.
6817 (make_cleanup_ui_file_delete): Ditto.
6818 (make_cleanup_ui_out_redirect_pop): Ditto.
6819 (make_cleanup_free_section_addr_info): Ditto.
6820 (make_cleanup_restore_integer): Ditto.
6821 (make_cleanup_unpush_target): Ditto.
6822 (make_cleanup_value_free_to_mark): Ditto.
6823 (make_cleanup_value_free): Ditto.
6824 (make_cleanup_free_so): Ditto.
6826 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6828 New option "set debug auto-load".
6829 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6830 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6831 (auto_load_safe_path_vec_update)
6832 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6834 (file_is_auto_load_safe): New parameters debug_fmt and ....
6835 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6836 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6837 caller by explanatory string.
6838 (_initialize_auto_load): Register "set debug auto-load".
6839 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6841 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6842 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6843 by explanatory string.
6844 * main.c (captured_main): Likewise.
6845 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6846 (source_section_scripts): Likewise.
6848 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6850 New option "set auto-load safe-path".
6851 * NEWS: New commands "set auto-load safe-path"
6852 and "show auto-load safe-path".
6853 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6854 (auto_load_safe_path, auto_load_safe_path_vec)
6855 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6856 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6857 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6858 (source_gdb_script_for_objfile): New variable is_safe. Call
6859 file_is_auto_load_safe. Return if it is not.
6860 (struct loaded_script): New field loaded.
6861 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6862 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6863 output "Missing" to "No".
6864 (_initialize_auto_load): New variable cmd. Initialize
6865 auto_load_safe_path. Register "set auto-load safe-path",
6866 "show auto-load safe-path" and "add-auto-load-safe-path".
6867 * auto-load.h (maybe_add_script): Add parameter loaded.
6868 (file_is_auto_load_safe): New declaration.
6869 * config.in: Regenerate.
6870 * configure: Regenerate.
6871 * configure.ac: New parameters --with-auto-load-safe-path
6872 and --without-auto-load-safe-path.
6873 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6874 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6875 * main.c (captured_main): Check file_is_auto_load_safe for
6877 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6878 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6879 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6882 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6884 auto-load: Implementation.
6885 * NEWS: New descriptions for "info auto-load",
6886 "info auto-load gdb-scripts", "info auto-load python-scripts",
6887 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6888 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6889 and "show auto-load-scripts". New description for "set auto-load",
6890 "show auto-load", "set auto-load gdb-scripts",
6891 "show auto-load gdb-scripts", "set auto-load python-scripts",
6892 "show auto-load python-scripts", "set auto-load local-gdbinit",
6893 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6894 "show auto-load libthread-db".
6895 * auto-load.c: Remove include python/python-internal.h. Add includes
6896 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6898 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6899 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6900 (gdbpy_global_auto_load): Rename to ...
6901 (global_auto_load): ... here.
6902 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6903 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6904 (script_language_gdb, source_gdb_script_for_objfile): New.
6905 (struct loaded_script): New field language.
6906 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6908 (maybe_add_script): Add parameter language. Drop redundant
6909 entry.full_path initialization. Initialize entry.language and
6911 (auto_load_objfile_script): Change parameter suffix to language.
6912 Remove the call of maybe_add_script.
6913 Call language->source_script_for_objfile.
6914 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6916 (collect_matching_scripts): Adjust it for
6917 struct collect_matching_scripts_data.
6918 (auto_load_info_scripts_pattern_nl): New variable.
6919 (info_auto_load_scripts): Rename to ...
6920 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6921 for struct collect_matching_scripts_data.
6922 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6923 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6924 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6925 (auto_load_info_cmdlist_get): New.
6926 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6927 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6928 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6929 "info auto-load local-gdbinit".
6930 * auto-load.h (struct script_language): New.
6931 (gdbpy_global_auto_load): Rename to ...
6932 (global_auto_load): ... here.
6933 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6934 (auto_load_local_gdbinit_loaded): New declarations.
6935 (maybe_add_script): New parameter language.
6936 (auto_load_objfile_script): Change parameter suffix to language.
6937 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6938 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6939 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6941 * linux-thread-db.c: Include auto-load.h and ctype.h.
6942 (auto_load_thread_db, show_auto_load_thread_db): New.
6943 (struct thread_db_info): New field filename.
6944 (delete_thread_db_info): Call xfree for FILENAME.
6945 (try_thread_db_load): Initialize FILENAME.
6946 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6947 if !AUTO_LOAD_THREAD_DB.
6948 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6949 (_initialize_thread_db): Install auto_load_thread_db
6950 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6951 as "info auto-load libthread-db".
6952 * main.c (captured_main): Rename gdbpy_global_auto_load to
6953 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6954 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6955 (print_gdb_help): Extend the help for 'local init file'.
6956 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6957 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6958 (auto_load_scripts): Rename to ...
6959 (auto_load_python_scripts): ... here, update the comment.
6960 (gdbpy_load_auto_script_for_objfile): New declaration.
6961 (show_auto_load_python_scripts, script_language_python)
6962 (gdbpy_load_auto_script_for_objfile): New.
6963 (source_section_scripts): Refactor the code.
6964 (load_auto_scripts_for_objfile): Rename to ...
6965 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6966 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6967 (info_auto_load_python_scripts): New.
6968 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6969 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6970 Register "set auto-load-scripts" as its deprecated alias. Register
6971 "info auto-load python-scripts". Register "info auto-load-scripts" as
6972 its deprecated alias.
6973 (load_auto_scripts_for_objfile): Rename to ...
6974 (gdbpy_load_auto_scripts_for_objfile): ... here.
6975 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6976 (gdbpy_load_auto_scripts_for_objfile): ... here.
6978 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6980 auto-load: Move files.
6981 * Makefile.in (SFILES): Add auto-load.c.
6982 (HFILES_NO_SRCDIR): Add auto-load.h.
6983 (COMMON_OBS): Add auto-load.o.
6984 (distclean): Change .gdbinit for gdb-gdb.gdb.
6985 * auto-load.c: New file, with parts from python/py-auto-load.c.
6986 * auto-load.h: New file, with parts from python/python.h.
6987 * configure: Regenerate.
6988 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6989 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6990 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6991 * main.c: Include auto-load.h.
6992 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6993 command.h, observer.h and progspace.h to auto-load.c. Add include
6995 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6996 (struct loaded_script, auto_load_pspace_data)
6997 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6998 (hash_loaded_script_entry, eq_loaded_script_entry)
6999 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7000 (maybe_add_script): Move to auto-load.c.
7001 (source_section_scripts): Change maybe_add_script parameters passing,
7002 use script_not_found_warning_print.
7003 (clear_section_scripts, auto_load_objfile_script)
7004 (auto_load_new_objfile, loaded_script_ptr)
7005 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7006 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7007 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7008 auto_load_new_objfile and info_auto_load_scripts initizations to
7010 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7012 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7015 * charset.c (find_charset_names): Remove variables ix and elt.
7016 Use free_char_ptr_vec.
7017 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7018 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7019 debugdir_end. New variable debugdir_len.
7020 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7021 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7023 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7024 and elt. Use free_char_ptr_vec.
7025 * source.c (add_path): Remove variables argv, arg and argv_index.
7026 New variables dir_vec, back_to, ix and name.
7027 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7028 make_cleanup_freeargv. Remove variable separator. Simplify the code
7029 no longer expecting DIRNAME_SEPARATOR.
7030 (openp): Remove variable p, p1 and len. New variables dir_vec,
7031 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7032 no longer expecting DIRNAME_SEPARATOR.
7033 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7034 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7036 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7037 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7038 (dirnames_to_char_ptr_vec): New functions.
7040 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7043 * source.c (add_path): Remove always true conditional 'p == 0' and
7044 unindent its code block.
7046 2012-04-17 Pedro Alves <palves@redhat.com>
7048 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7049 (FIELD_BITPOS_LVAL): ... this.
7050 (FIELD_BITPOS): New.
7051 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7052 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7053 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7055 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7057 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7058 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7059 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7062 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7064 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7065 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7066 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7067 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7068 * jv-lang.c (java_link_class_type): Likewise, once.
7069 * stabsread.c (read_enum_type): Likewise.
7071 2012-04-16 Yao Qi <yao@codesourcery.com>
7073 * common/agent.c (agent_run_command): Add one more parameter `len'.
7075 * common/agent.h: Update declaration.
7076 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7078 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7080 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7083 * value.c (value_actual_type): New function.
7084 * value.h (value_actual_type): New declaration.
7085 * varobj.c (update_type_if_necessary): New function.
7086 (varobj_create): Call value_actual_type instead of
7088 (install_dynamic_child): distinct changed and type changed MI variable
7090 (update_dynamic_varobj_children): Updated for install_dynamic_child
7091 change. All callers updated.
7092 (varobj_update): Support for MI variable object type change if
7093 the value changed and RTTI is used to determine the type.
7094 (create_child_with_value): Call value_actual_type instead of
7096 (adjust_value_for_child_access): Extended with a new parameter which
7097 specify whether the given value should be casted to enclosing type.
7098 All callers updated.
7100 2012-04-14 Yao Qi <yao@codesourcery.com>
7102 Import gnulib module inttypes from git
7103 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7104 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7105 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7106 gnulib/m4/inttypes-pri.m4
7107 * aclocal.m4, config.in, configure: Regenerated.
7108 * gnulib/Makefile.am: Update.
7109 * gnulib/Makefile.in: Update.
7110 * gnulib/m4/gnulib-cache.m4: Update.
7111 * gnulib/m4/gnulib-comp.m4: Update.
7112 * gnulib/inttypes.in.h: New.
7113 * gnulib/m4/inttypes-pri.m4: New.
7114 * gnulib/m4/inttypes.m4: New.
7116 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7118 * infrun.c (resume): Update PC address to the real PC after
7119 preparing to do displaced stepping.
7121 2012-04-12 Doug Evans <dje@google.com>
7123 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7124 All callers updated.
7126 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7128 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7130 2012-04-12 Doug Evans <dje@google.com>
7132 * dwarf2read.c (create_all_type_units): Renamed from
7133 create_debug_types_hash_table. All callers updated.
7135 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7136 local type_sig to sig_type, type_offset to type_offset_in_tu.
7137 (hash_signatured_type): Renamed from hash_type_signature,
7138 all callers updated.
7139 (eq_signatured_type): Renamed from eq_type_signature,
7140 all callers updated.
7141 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7142 (process_enumeration_scope): Ditto.
7143 (lookup_signatured_type_at_offset): Ditto.
7144 (load_full_type_unit, read_signatured_type): Ditto.
7146 2012-04-12 Yao Qi <yao@codesourcery.com>
7148 * remote.c (async_remote_interrupt): Correct function name in
7150 (async_remote_interrupt_twice): Ditto.
7152 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7154 * source.c (find_and_open_source): Consistently pass resulting
7155 full path through xfullpath.
7157 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7159 Provide more specific displaced-stepping memory error message.
7160 * infrun.c (displaced_step_prepare): New variable status. Call
7161 target_read_memory instead of read_memory, provide more specific
7164 2012-04-11 Tristan Gingold <gingold@adacore.com>
7167 * darwin-nat.c (darwin_execvp): Revert previous patch.
7169 2012-04-11 Tristan Gingold <gingold@adacore.com>
7172 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7175 2012-04-11 Tristan Gingold <gingold@adacore.com>
7177 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7180 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7182 New command 'explore' which helps explore values and types in
7184 * NEWS: Add an entry about the new 'explore' command.
7185 * data-directory/Makefile.in: Add gdb/command/explore.py
7186 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7187 command using the GDB Python API.
7189 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7191 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7192 extension in jump target calculation.
7194 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7196 * mips-tdep.c (mips32_next_pc): Handle JALX.
7198 2012-04-10 Yao Qi <yao@codesourcery.com>
7200 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7202 2012-04-10 Yao Qi <yao@codesourcery.com>
7204 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7205 and gnulib/m4/gnulib-tool.m4.
7207 2012-04-10 Doug Evans <dje@google.com>
7209 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7210 (load_partial_dies): Clarify comment.
7211 (find_partial_die): Support rereading type units.
7212 Clarify CU handling, if we know offset is in CU, don't search for the
7213 containing CU. Add comment regarding memory waste.
7215 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7217 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7218 i386/x32-avx and i386/x32-avx-linux.
7219 (i386/x32-expedite): New.
7220 (i386/x32-linux-expedite): Likewise.
7221 (i386/x32-avx-expedite): Likewise.
7222 (i386/x32-avx-linux-expedite): Likewise.
7223 ($(outdir)/i386/x32.dat): Likewise.
7224 ($(outdir)/i386/x32-linux.dat): Likewise.
7225 ($(outdir)/i386/x32-avx.dat): Likewise.
7226 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7228 * features/i386/x32-avx-linux.xml: New file.
7229 * features/i386/x32-avx.xml: Likewise.
7230 * features/i386/x32-core.xml: Likewise.
7231 * features/i386/x32-linux.xml: Likewise.
7232 * features/i386/x32.xml: Likewise.
7234 * features/i386/x32-avx-linux.c: New. Generated.
7235 * features/i386/x32-avx.c: Likewise.
7236 * features/i386/x32-linux.c: Likewise.
7237 * features/i386/x32.c: Likewise.
7238 * regformats/i386/x32-avx-linux.dat: Likewise.
7239 * regformats/i386/x32-avx.dat: Likewise.
7240 * regformats/i386/x32-linux.dat: Likewise.
7241 * regformats/i386/x32.dat: Likewise.
7243 2012-04-10 Tristan Gingold <gingold@adacore.com>
7245 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7246 code to kill the inferior.
7248 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7250 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7252 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7254 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7255 (yyvsp): New defines.
7256 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7258 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7260 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7262 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7264 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7267 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7269 * sparc64-tdep.c (sparc64_store_arguments)
7270 (sparc64_store_arguments): Fix coding style.
7272 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7274 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7275 complex floats, adjust some related comments and tighten a related
7277 (sparc64_extract_return_value): Handle complex floats.
7279 2012-04-07 Doug Evans <dje@google.com>
7281 * dwarf2read.c (load_partial_dies): Change condition to assert.
7283 2012-04-06 Doug Evans <dje@google.com>
7285 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7288 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7290 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7292 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7293 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7296 2012-04-05 Keith Seitz <keiths@redhat.com>
7298 * linespec.c (decode_compound): Remove.
7299 (enum offset_relative_sign): New enum.
7300 (struct line_offset): New struct.
7301 (struct linespec): New struct.
7302 (struct linespec_state): Move file_symtabs,
7303 user_filename, and user_function into struct linespec.
7304 Make result an anonymous struct holding vectors of
7305 symbolp and minsym_and_objfile_d.
7306 Add language member.
7307 (enum ls_token_type): New enum.
7308 (linespec_keywords): New array.
7309 (struct ls_token): New struct.
7310 (struct ls_parser): New struct.
7311 (linespec_lexer_lex_number): New function.
7312 (linespec_lexer_lex_keyword): New function.
7313 (is_ada_operator): New function.
7314 (skip_quote_char): New function.
7315 (copy_token_string): New function.
7316 (is_closing_quote_enclosed): New function.
7317 (find_parameter_list_end): New function.
7318 (linespec_lexer_lex_string): New function.
7319 (linespec_lexer_lex_one): New function.
7320 (linespec_lexer_consume_token): New function.
7321 (linespec_lexer_peek_token): New function.
7322 (cplusplus_error): Remove unused function.
7323 (find_methods): Update comment.
7324 (find_toplevel_char): Return const.
7325 (is_objc_method_format): Remove unused function.
7326 (find_toplevel_string): New function.
7327 (is_linespec_boundary): Remove.
7328 (symbol_not_found_error): New function.
7329 (find_method_overload_end): Remove function.
7330 (unexpected_linespec_error): New function.
7331 (keep_name_info): Remove.
7332 (linespec_parse_line_offset): New function.
7333 (linespec_parse_basic): New function.
7334 (canonicalize_linespec): New function.
7335 (decode_line_internal): Remove.
7336 (create_sals_line_offset): New function adapted from
7338 (convert_linespec_to_sals): New function.
7339 (parse_linespec): New function.
7340 (linespec_parser_new): New function.
7341 (linespec_state_destructor): Change parameter type to
7342 struct linespec_state *.
7343 Add language parameter.
7344 Remove freeing of moved members.
7345 (linespec_parser_delete): New function.
7346 (decode_line_full): Use parse_linespec and linespec_parser_new.
7347 (decode_line_1): Likewise.
7348 (decode_indirect): Rename to ...
7349 (linespec_expression_to_pc): ... this and rewrite
7350 to simply find CORE_ADDR, storing this result for later
7352 (locate_first_half): Remove.
7353 (deocde_objc): Add parameter LS.
7354 Initialize new struct collect_info members.
7355 Handle minimal symbols, too.
7356 (decode_compound): Delete.
7357 (lookup_prefix_sym): Rewrite.
7358 (compare_msymbols): New function.
7359 (find_method): Rewrite.
7360 Do not call cplusplus_error.
7361 (symtabs_from_filename): Rewrite.
7362 (collect_function_symbols): Delete.
7363 (find_function_symbols): Rewrite without ARGPTR-style
7365 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7366 (decode_dollar): Adapted and renamed to ...
7367 (linespec_parse_variable): ... this.
7368 (find_linespec_symbols): New function.
7369 (decode_label): Adapted and renamed to ...
7370 (find_label_symbols): ... this.
7371 (decode_digits_list_mode): Add and use LS argument.
7372 (decode_digits_ordinary): Likewise.
7373 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7374 If in list mode, allow any symbol class. Otherwise, only
7375 permit LOC_BLOCK symbols.
7376 (minsym_found): Update comments.
7377 (search_minsyms_for_name): Do not convert the matching symbol
7378 into a SAL. Simply push the symbol and objfile into the
7380 (decode_variable): Delete. Contents adapted into
7381 find_linespec_symbols.
7383 * cp-support.c (SKIP_SPACE): Remove.
7384 (operator_tokens): Remove unused global.
7385 (cp_validate_operator): Remove.
7386 * cp-support.h (cp_validate_operator): Remove declaration.
7388 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7390 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7391 for TYPE_VPTR_FIELDNO.
7392 * valprint.c (valprint_check_validity): Make it global, move the
7393 function comment ...
7394 * value.h (valprint_check_validity): ... to this new declaration.
7396 2012-04-02 Tristan Gingold <gingold@adacore.com>
7398 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7399 the STATE32 api for i386 state.
7400 (i386_darwin_store_inferior_registers): Likewise.
7402 2012-04-02 Tristan Gingold <gingold@adacore.com>
7404 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7406 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7409 2012-04-02 Tristan Gingold <gingold@adacore.com>
7412 * darwin-nat.c (darwin_execvp): Set binary preference.
7414 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7416 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7418 2012-03-30 Tom Tromey <tromey@redhat.com>
7420 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7421 of TRY_CATCH. Fix error handling.
7422 * python/py-value.c (convert_value_from_python): Move 'old'
7423 declaration to innermost scope.
7425 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7426 Andrey Smirnov <andrew.smirnov@gmail.com>
7428 -Wshadow warning fix.
7429 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7430 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7431 Adjust code accordingly.
7433 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7435 * ada-lang.c (symbol_completion_add): Rename parameter
7436 "encoded" into "encoded_p". Ajust code and documentation
7439 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7440 Andrey Smirnov <andrew.smirnov@gmail.com>
7442 -Wshadow warning fix.
7443 * ada-lang.c (symbol_completion_add): Rename parameter
7444 "wild_match" into wild_match_p. Update code and documentation
7447 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7449 * ada-lang.c (symbol_completion_match): Rename parameter
7450 "encoded" into "encoded_p". Ajust code and documentation
7453 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7454 Andrey Smirnov <andrew.smirnov@gmail.com>
7456 -Wshadow warning fix.
7457 * ada-lang.c (symbol_completion_match): Rename parameter
7458 "wild_match" into "wild_match_p". Adjust code and function
7459 documentation accordingly.
7461 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7462 Andrey Smirnov <andrew.smirnov@gmail.com>
7464 -Wshadow warning fix.
7465 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7466 "symbol_info" into "info". Adjust code accordingly.
7467 (ada_lookup_symbol): Likewise.
7469 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7471 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7472 of this function's documentation.
7474 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7475 Andrey Smirnov <andrew.smirnov@gmail.com>
7477 -Wshadow warning fix.
7478 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7479 variable into "wild_match_p". Adjust code accordingly.
7481 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7482 Andrey Smirnov <andrew.smirnov@gmail.com>
7484 -Wshadow warning fix.
7485 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7486 parameter into "wild_match_p". Adjust code accordingly.
7487 Document this parameter in the function description.
7489 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7490 Andrey Smirnov <andrew.smirnov@gmail.com>
7492 -Wshadow warning fix.
7493 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7494 "wild_match" parameter to "wild_match_p" (-Wshadow).
7496 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7498 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7499 in function documentation.
7501 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7502 Andrey Smirnov <andrew.smirnov@gmail.com>
7504 -Wshadow warning fix.
7505 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7506 variable into wild_match_p. Adjust code accordingly.
7508 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7509 Andrey Smirnov <andrew.smirnov@gmail.com>
7511 * ada-valprint.c (ada_val_print_1): Move the code handling
7512 TYPE_CODE_ENUM inside its own lexical block. Declare
7513 variables len and val there, instead of in the function's
7514 top level block. Avoid declaring deref_val again in a way
7515 that shadows another variable of the same name declared
7516 in one of the up-level blocks. Just re-use the up-level
7519 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7521 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7522 Replace block_found argument by symbol_info. Adjust
7523 implementation accordingly. Add function documentation.
7524 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7526 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7527 * ada-exp.y (write_object_renaming): Adjust to new
7528 ada_lookup_encoded_symbol API.
7530 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7532 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7535 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7537 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7538 (v850_register_name): Add the mpu and fpu register names.
7539 (v850e_register_name): Add the mpu and fpu register names.
7540 (v850e2_register_name): New function.
7541 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7544 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7546 * NEWS: Add entry for Ada varobj support.
7548 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7550 * varobj.c (default_value_is_changeable_p): New function,
7551 extracted from varobj_value_is_changeable_p. Add declaration.
7552 (ada_value_is_changeable_p): New function, extracted from
7553 varobj_value_is_changeable_p. Add declaration.
7554 (struct language_specific): New field "value_is_changeable_p".
7555 (languages): Add entries for new field.
7556 (varobj_create): Set language before calling install_new_value.
7557 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7558 "value_is_changeable_p" language callback.
7560 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7562 * ada-varobj.h, ada-varobj.c: New files.
7563 * Makefile.in (SFILES): Add ada-varobj.c.
7564 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7565 (COMMON_OBS): Add ada-varobj.o.
7567 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7569 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7570 (struct language_specific): New field "value_has_mutated".
7571 (languages): Set field "value_has_mutated" in each entry of array.
7572 (varobj_value_has_mutated): New function.
7573 (varobj_udpdate): Add handling of type mutation.
7574 (value_of_root): Add handling of type mutation.
7575 (ada_value_has_mutated): New function.
7577 2012-03-28 Pedro Alves <palves@redhat.com>
7579 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7580 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7582 2012-03-28 Tom Tromey <tromey@redhat.com>
7584 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7585 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7588 2012-03-28 Tom Tromey <tromey@redhat.com>
7590 * .dir-locals.el: New file.
7592 2012-03-28 Pedro Alves <palves@redhat.com>
7594 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7596 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7598 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7601 2012-03-27 Pedro Alves <palves@redhat.com>
7603 Eliminate struct ui_stream.
7605 * ui-out.h (struct ui_stream): Delete.
7606 (ui_out_field_stream): Adjust prototype.
7607 (ui_out_stream_new, ui_out_stream_delete)
7608 (make_cleanup_ui_out_stream_delete): Delete declarations.
7609 * ui-out.c (ui_out_field_stream): Change prototype to take a
7610 ui_file instead of a ui_stream. Adjust.
7611 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7612 (make_cleanup_ui_out_stream_delete): Delete.
7613 * breakpoint.c (print_breakpoint_location)
7614 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7615 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7616 * disasm.c (dump_insns): Ditto.
7617 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7619 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7620 ui_stream/ui_out_stream_new.
7621 * infcmd.c (print_return_value): Ditto.
7622 * osdata.c (info_osdata_command): Don't allocate a local
7624 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7625 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7626 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7627 allocate a local ui_stream.
7628 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7629 instead of ui_stream/ui_out_stream_new.
7630 (list_args_or_locals): Don't allocate a local ui_stream.
7631 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7632 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7633 ui_stream/ui_out_stream_new.
7634 * cli/cli-setshow.c (do_setshow_command): Ditto.
7636 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7638 * arm-linux-tdep.c (arm_linux_init_abi): Call
7639 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7640 * arm-tdep.c (arm_process_record): New function.
7641 (deallocate_reg_mem): New function.
7642 (decode_insn): New function.
7643 (thumb_record_branch): New function.
7644 (thumb_record_ldm_stm_swi(): New function.
7645 (thumb_record_misc): New function.
7646 (thumb_record_ld_st_stack): New function.
7647 (thumb_record_ld_st_imm_offset): New function.
7648 (thumb_record_ld_st_reg_offset(): New function.
7649 (thumb_record_add_sub_cmp_mov): New function.
7650 (thumb_record_shift_add_sub): New function.
7651 (arm_record_coproc_data_proc): New function.
7652 (arm_record_coproc): New function.
7653 (arm_record_b_bl): New function.
7654 (arm_record_ld_st_multiple): New function.
7655 (arm_record_ld_st_reg_offset): New function.
7656 (arm_record_ld_st_imm_offset): New function.
7657 (arm_record_data_proc_imm): New function.
7658 (arm_record_data_proc_misc_ld_str): New function.
7659 (arm_record_extension_space): New function.
7660 (arm_record_strx): New function.
7661 (sbo_sbz): New function.
7662 (struct insn_decode_record): New structure for arm insn record.
7663 (REG_ALLOC): New macro for reg allocations.
7664 (MEM_ALLOC): New macro for memory allocations.
7665 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7667 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7669 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7670 (store_register): Likewise.
7672 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7674 * MAINTAINERS (Write After Approval): Add myself to the list.
7676 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7678 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7679 Describe also the option "auto".
7681 2012-03-22 Richard Henderson <rth@redhat.com>
7683 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7684 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7686 2012-03-22 Richard Henderson <rth@redhat.com>
7688 * jit.c (jit_read_code_entry): Compute alignment and offset of
7689 int64_t member before computing entry_size.
7691 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7693 Python scripting: Add new method Value.referenced_value to
7694 gdb.Value which can dereference pointer as well as reference
7696 * NEWS: Add entry under 'Python scripting' about the new method
7697 Value.referenced_value on gdb.Value objects.
7698 * python/py-value.c (valpy_referenced_value): New function
7699 defining a new method on gdb.Value objects which can dereference
7700 pointer and reference values.
7702 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7704 * MAINTAINERS (Write After Approval): Add myself to the list.
7706 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7708 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7709 in addition to "main".
7711 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7713 * expression.h (op_name): Add declaration.
7714 * expprint.c (op_name): Remove declaration. Make non-static.
7715 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7717 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7719 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7721 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7722 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7723 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7724 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7725 (linux_nat_get_siginfo): Likewise.
7726 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7727 (linux_nat_get_siginfo): Likewise.
7728 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7729 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7730 * procfs.c (gdb_siginfo_t): Likewise.
7732 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7734 * .gitignore: Ignore more files.
7736 2012-03-20 Pedro Alves <palves@redhat.com>
7738 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7741 2012-03-20 Yao Qi <yao@codesourcery.com>
7743 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7746 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7748 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7749 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7750 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7752 * dwarf2expr.h (cu_offset, sect_offset): New types.
7753 (struct dwarf_expr_context_funcs) <dwarf_call>
7754 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7756 (struct dwarf_expr_context) <len>: Improve the comment.
7757 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7758 cu_offset and sect_offset.
7759 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7760 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7761 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7762 * dwarf2loc.h: Include dwarf2expr.h.
7763 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7765 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7766 Improve the comment.
7767 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7768 (struct signatured_type, struct line_header, struct partial_die_info)
7769 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7770 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7771 (get_die_type_at_offset, create_cus_from_index)
7772 (create_signatured_type_table_from_index, dw2_get_file_names)
7773 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7774 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7775 (create_debug_types_hash_table, process_psymtab_comp_unit)
7776 (load_partial_comp_unit, create_all_comp_units)
7777 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7778 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7779 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7780 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7781 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7782 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7783 (find_partial_die, read_attribute_value, lookup_die_type)
7784 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7785 (is_ref_attr): New function comment.
7786 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7787 Use cu_offset and sect_offset.
7788 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7789 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7790 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7791 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7792 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7793 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7794 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7797 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7800 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7801 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7803 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7805 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7807 * NEWS: Describe new options --init-command=FILE, -ix and
7808 --init-eval-command=COMMAND, -iex.
7809 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7810 CMDARG_INIT_COMMAND.
7811 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7812 "init-command", "init-eval-command", "ix" and "iex" to the variable
7813 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7814 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7815 (print_gdb_help): Describe --init-command=FILE, -ix and
7816 --init-eval-command=COMMAND, -iex.
7818 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7821 * main.c (struct cmdarg): Move it here from main. Add more comments.
7822 (cmdarg_s, VEC (cmdarg_s)): New.
7823 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7824 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7825 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7826 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7829 2012-03-19 Tom Tromey <tromey@redhat.com>
7831 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7833 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7836 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7839 2012-03-16 Chris January <chris.january@allinea.com>
7841 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7844 2012-03-16 Chris January <chris.january@allinea.com>
7846 * source.c (add_path): Use memmove instead of strcpy because the
7849 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7851 * value.h (set_value_parent): Add declaration.
7852 * value.c (set_value_parent): New function.
7853 (value_address): If VALUE->PARENT is not NULL, then use it as
7854 the base address instead of VALUE->LOCATION.address.
7855 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7856 the same as OBJ's address. Adjust V's offset accordingly.
7859 2012-03-16 Gary Benson <gbenson@redhat.com>
7861 PR breakpoints/10738
7862 * dwarf2read.c (use_deprecated_index_sections): New global.
7863 (struct partial_die_info): New member may_be_inlined.
7864 (read_partial_die): Set may_be_inlined where appropriate.
7865 (add_partial_subprogram): Add partial symbols for partial
7866 DIEs that may be inlined.
7867 (new_symbol_full): Add inlined subroutines to the current
7869 (write_psymtabs_to_index): Bump version number.
7870 (dwarf2_read_index): Read only version 6 indices unless
7871 use_deprecated_index_sections is set.
7872 * linespec.c (symbol_and_data_callback): New structure.
7873 (iterate_inline_only): New function.
7874 (iterate_over_all_matching_symtabs): New argument
7875 "include_inline". If nonzero, also call the callback for
7876 symbols representing inlined subroutines.
7877 (lookup_prefix_sym): Pass extra argument to the above.
7878 (find_function_symbols): Likewise.
7879 (add_matching_symbols_to_info): Likewise.
7880 * NEWS: Mention that GDB can now set breakpoints on inlined
7883 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7885 * p-typeprint.c (pascal_type_print_method_args):
7886 Fix display of parameter of methods.
7888 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7890 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7891 Add missing prototype.
7893 2012-03-16 Yao Qi <yao@codesourcery.com>
7894 Jan Kratochvil <jan.kratochvil@redhat.com>
7896 Fix false compilation warning.
7897 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7899 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7900 Pedro Alves <pedro@codesourcery.com>
7902 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7903 (arm_register_g_packet_guesses): New function.
7904 (arm_gdbarch_init): Don't force a target description with
7905 registers when the executable is detected as M-profile. Instead
7906 set gdbarch->tdep->is_m. Register `g' packet guesses.
7907 (_initialize_arm_tdep): Initialize the new target description.
7908 * features/arm-with-m-fpa-layout.xml: New description.
7909 * features/arm-with-m-fpa-layout.c: New, generated.
7911 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7913 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7914 Update function description.
7915 (insert_bp_location): Do not wipe bl->target_info out.
7916 * mem-break.c: #include "gdb_string.h".
7917 (default_memory_insert_breakpoint): Do not call target_read_memory
7918 with a pointer to the breakpoint's shadow_contents buffer. Use
7919 a local buffer instead.
7920 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7922 2012-03-15 Tom Tromey <tromey@redhat.com>
7924 * NEWS: Mention "info vtbl", not "info vtable".
7925 * cp-support.c (info_vtbl_command): Fix comment.
7926 (_initialize_cp_support): Fix text.
7928 2012-03-15 Tom Tromey <tromey@redhat.com>
7930 * cp-valprint.c (cp_print_value_fields): Use
7931 print_function_pointer_address for vtable slot.
7933 2012-03-15 Tom Tromey <tromey@redhat.com>
7935 * gnu-v3-abi.c (struct value_and_voffset): New.
7936 (hash_value_and_voffset, eq_value_and_voffset)
7937 (compare_value_and_voffset, compute_vtable_size)
7938 (print_one_vtable, gnuv3_print_vtable): New functions.
7939 (init_gnuv3_ops): Initialize 'print_vtable' field.
7940 * cp-support.c (info_vtbl_command): New function.
7941 (_initialize_cp_support): Add "info vtbl".
7942 * cp-abi.h (cplus_print_vtable): Declare.
7943 (struct cp_abi_ops) <print_vtable>: New field.
7944 * cp-abi.c (cplus_print_vtable): New function.
7947 2012-03-15 Tom Tromey <tromey@redhat.com>
7949 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7950 iterate_over_symbols.
7952 2012-03-14 Doug Evans <dje@google.com>
7954 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7955 DW_OP_GNU_parameter_ref.
7957 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7959 Fix double prompt of 'interpreter-exec mi'.
7960 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7961 (mi_interpreter_resume): use it.
7962 (mi_execute_command_input_handler): New function.
7963 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7964 mi_execute_command_input_handler.
7966 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7968 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7970 (darwin_debug_port_info): Make static.
7971 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7972 * machoread.c (_initialize_machoread): Add prototype.
7973 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7974 (i386_darwin_set_control, i386_darwin_get_control)
7975 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7976 i386_darwin_get_status, i386_darwin_get_control):
7977 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7979 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7981 * ax-gdb.c (gen_usual_unary): Remove special handling of
7982 enum and bool types.
7984 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7986 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7988 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7990 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7992 2012-03-13 Chris January <chris.january@allinea.com>
7994 * aix-thread.c (fill_sprs): Store the floating point registers
7995 at the correct offsets into vals.
7997 2012-03-13 Doug Evans <dje@google.com>
7999 * NEWS: Mention symbol-reloading has been deleted.
8000 * symfile.c (symbol_reloading): Delete.
8001 (show_symbol_reloading): Delete.
8002 (_initialize_symfile): Delete set/show symbol-reloading.
8004 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8005 read_in_chain until we have successfully read it in.
8006 (load_full_comp_unit): Ditto.
8007 (read_signatured_type): Add comment.
8009 2012-03-13 Chris January <chris.january@allinea.com>
8011 * stabsread.c (fix_common_block): Change type of valu argument
8014 2012-03-13 Chris January <chris.january@allinea.com>
8016 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8019 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8021 * common/linux-procfs.c (linux_proc_get_int): New, from
8022 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8024 (linux_proc_get_tgid): Only call linux_proc_get_int.
8025 (linux_proc_get_tracerpid): New.
8026 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8027 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8028 linux_proc_pid_has_state.
8029 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8030 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8031 (linux_ptrace_attach_warnings): New.
8032 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8034 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8035 (linux_nat_attach): New variables ex, buffer, message and message_s.
8036 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8038 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8040 * Makefile.in (linux-ptrace.o): New.
8041 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8043 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8044 * common/linux-ptrace.c: New file.
8045 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8046 * config/arm/linux.mh: Likewise.
8047 * config/i386/linux.mh: Likewise.
8048 * config/i386/linux64.mh: Likewise.
8049 * config/ia64/linux.mh: Likewise.
8050 * config/m32r/linux.mh: Likewise.
8051 * config/m68k/linux.mh: Likewise.
8052 * config/mips/linux.mh: Likewise.
8053 * config/pa/linux.mh: Likewise.
8054 * config/powerpc/linux.mh: Likewise.
8055 * config/powerpc/ppc64-linux.mh: Likewise.
8056 * config/powerpc/spu-linux.mh: Likewise.
8057 * config/s390/s390.mh: Likewise.
8058 * config/sparc/linux.mh: Likewise.
8059 * config/sparc/linux64.mh: Likewise.
8060 * config/xtensa/linux.mh: Likewise.
8061 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8062 common/linux-procfs.c.
8063 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8065 2012-03-13 Hui Zhu <teawater@gmail.com>
8066 Pedro Alves <palves@redhat.com>
8068 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8069 CREATE_BREAKPOINT_FLAGS_INSERTED.
8070 (create_breakpoint_sal, create_breakpoints_sal)
8071 (base_breakpoint_create_breakpoints_sal)
8072 (tracepoint_create_breakpoints_sal)
8073 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8075 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8076 (ftrace_command, strace_command): Adjust.
8077 (create_tracepoint_from_upload): Pass
8078 CREATE_BREAKPOINT_FLAGS_INSERTED.
8079 * breakpoint.h (enum breakpoint_create_flags): New.
8080 (create_breakpoint): New flags parameter.
8081 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8082 * python/py-breakpoint.c (bppy_init): Adjust.
8083 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8084 * spu-tdep.c (spu_catch_start): Adjust.
8086 2012-03-13 Pedro Alves <palves@redhat.com>
8087 Hui Zhu <teawater@gmail.com>
8088 Yao Qi <yao@codesourcery.com>
8090 * remote.c (struct remote_state): New field `starting_up'.
8091 (remote_start_remote): Set and clear it.
8092 (remote_can_download_tracepoint): If starting up, return false.
8094 2012-03-13 Yao Qi <yao@codesourcery.com>
8096 * inferior.h (struct inferior): Remove fields any_syscall_count,
8097 syscalls_counts and total_syscalls_count. Move them to new
8098 struct catch_syscall_inferior_data in breakpoint.c.
8099 * breakpoint.c: Call DEF_VEC_I(int).
8100 (struct catch_syscall_inferior_data): New.
8101 (get_catch_syscall_inferior_data): New.
8102 (catch_syscall_inferior_data_cleanup): New.
8103 (insert_catch_syscall): Update to access data in
8104 struct catch_syscall_inferior_data.
8105 (insert_catch_syscall): Likewise.
8106 (remove_catch_syscall): Likewise.
8107 (remove_catch_syscall): Likewise.
8108 (is_syscall_catchpoint_enabled): Likewise.
8109 (add_catch_command): Likewise.
8110 (_initialize_breakpoint): Register cleanup.
8111 * breakpoint.h: Removed DEF_VEC_I(int).
8112 * dwarf2loc.c: Call DEF_VEC_I(int).
8113 * mi/mi-main.c: Likewise.
8115 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8117 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8119 2012-03-12 Chris January <chris.january@allinea.com>
8121 * aix-thread.c (_initialize_aix_thread): Add prototype.
8122 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8123 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8125 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8127 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8128 include of "amd64-nat.h".
8130 2012-03-12 Tom Tromey <tromey@redhat.com>
8132 * buildsym.c (record_pending_block): Now static.
8133 * buildsym.h: (record_pending_block): Remove.
8135 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8137 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8139 2012-03-09 Tom Tromey <tromey@redhat.com>
8141 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8142 producer_is_gxx_lt_4_6>: New fields.
8143 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8145 2012-03-09 Tom Tromey <tromey@redhat.com>
8147 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8149 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8151 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8154 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8156 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8158 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8160 Fix -Wmissing-prototypes build.
8161 * arm-linux-nat.c (get_thread_id): Make it static.
8162 * xtensa-linux-nat.c (get_thread_id): Likewise.
8164 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8166 * server.c (process_point_options): If a conditional expression
8167 is found, only print a message if remote_debug is nonzero.
8169 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8171 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8172 of internal error for unknown/unsupported types.
8174 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8176 Fix CU relative vs. absolute DIE offsets.
8177 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8178 offset to offset_in_cu.
8179 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8181 (dwarf2_fetch_die_location_block): Rename parameter offset to
8182 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8184 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8186 * libunwind-frame.c: Rename to ...
8187 * ia64-libunwind-tdep.c: ... here.
8188 * libunwind-frame.h: Rename to ...
8189 * ia64-libunwind-tdep.h: ... here.
8190 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8191 ia64-libunwind-tdep.h.
8192 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8193 * README (--with-libunwind): Rename to ...
8194 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8195 * config.in: Regenerate.
8196 * configure: Regenerate.
8197 * configure.ac: New option --with-libunwind-ia64, make the
8198 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8199 Remove AC_DEFINE for HAVE_LIBUNWIND.
8200 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8201 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8202 Rename libunwind-frame in the general comment.
8203 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8204 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8205 Move forward declarations inside #ifndef. Rename libunwind-frame in
8206 the general comment.
8207 * ia64-tdep.c: Rename libunwind-frame.h #include to
8208 ia64-libunwind-tdep.h.
8209 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8210 (ia64_libunwind_descr): Rename libunwind-frame to
8211 ia64-libunwind-tdep in these function comments.
8212 * ia64-tdep.h: Rename libunwind-frame.h #include to
8213 ia64-libunwind-tdep.h.
8214 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8215 ia64-libunwind-tdep in that data comment.
8217 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8219 * libunwind-frame.h (struct frame_unwind): New declaration.
8221 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8223 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8224 "set breakpoint condition-evaluation" command.
8226 2012-03-08 Tristan Gingold <gingold@adacore.com>
8228 * sparc-stub.c: Move to stubs/
8229 * sh-stub.c: Likewise.
8230 * m68k-stub.c: Likewise.
8231 * m32r-stub.c: Likewise.
8232 * i386-stub.c: Likewise.
8234 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8236 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8237 linux_get_siginfo_type.
8239 * m68klinux-nat.c: Include "gdb_proc_service.h".
8240 (PTRACE_GET_THREAD_AREA): Define.
8241 (ps_get_thread_area): New function.
8243 2012-03-08 Yao Qi <yao@codesourcery.com>
8245 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8247 (remote_query_attached): Likewise.
8248 (remote_static_tracepoint_marker_at): Likewise.
8249 (remote_set_permissions): Likewise.
8250 (remote_detach_1, extended_remote_attach_1): Likewise.
8251 (send_g_packet, remote_vkill): Likewise.
8252 (extended_remote_disable_randomization): Likewise.
8253 (remote_add_target_side_condition): Likewise.
8254 (remote_insert_breakpoint): Likewise.
8255 (remote_remove_breakpoint): Likewise.
8256 (remote_insert_watchpoint): Likewise.
8257 (remote_remove_watchpoint): Likewise.
8258 (remote_insert_hw_breakpoint): Likewise.
8259 (remote_insert_hw_breakpoint): Likewise.
8260 (remote_remove_hw_breakpoint): Likewise.
8261 (remote_download_command_source): Likewise.
8262 (remote_download_tracepoint): Likewise.
8263 (remote_download_trace_state_variable): Likewise.
8264 (remote_disable_tracepoint): Likewise.
8265 (remote_trace_set_readonly_regions): Likewise.
8266 (remote_get_tracepoint_status): Likewise.
8267 (remote_trace_find): Likewise.
8268 (remote_get_trace_state_variable_value): Likewise.
8269 (remote_set_disconnected_tracing): Likewise.
8270 (remote_set_circular_trace_buffer): Likewise.
8271 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8272 (remote_use_agent): Likewise.
8273 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8276 2012-03-07 Pedro Alves <palves@redhat.com>
8278 * NEWS: Mention QProgramSignals.
8279 * inferior.h (update_signals_program_target): Declare.
8280 * infrun.c: (update_signals_program_target): New.
8281 (handle_command): Update the target of the new program signals
8283 * remote.c (PACKET_QProgramSignals): New enum.
8284 (last_program_signals_packet): New global.
8285 (remote_program_signals): New.
8286 (remote_start_remote): Update the target with the program signals
8288 (remote_protocol_features): Add entry for QPassSignals.
8289 (remote_open_1): Free anc clear last_program_signals_packet.
8290 (init_remote_ops): Install remote_program_signals.
8291 * target.c (update_current_target): Adjust.
8292 (target_program_signals): New.
8293 * target.h (struct target_ops) <to_program_signals>: New field.
8294 (target_program_signals): Declare.
8296 2012-03-07 Pedro Alves <palves@redhat.com>
8298 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8301 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8303 * m68klinux-nat.c (getregs_supplies): Make static.
8304 (getfpregs_supplies): Likewise.
8305 (have_ptrace_getregs): Likewise.
8307 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8309 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8310 in call to get_die_type_at_offset.
8312 2012-03-06 Stan Shebs <stan@codesourcery.com>
8314 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8315 * mi/mi-cmd-disas.c: Ditto.
8316 * mi/mi-cmd-env.c: Ditto.
8317 * mi/mi-cmd-file.c: Ditto.
8318 * mi/mi-cmd-stack.c: Ditto.
8319 * mi/mi-cmd-target.c: Ditto.
8320 * mi/mi-cmd-var.c: Ditto.
8321 * mi/mi-cmds.c: Ditto.
8322 * mi/mi-cmds.h: Ditto.
8323 * mi/mi-console.c: Ditto.
8324 * mi/mi-getopt.c: Ditto.
8325 * mi/mi-getopt.h: Ditto.
8326 * mi/mi-interp.c: Ditto.
8327 * mi/mi-main.c: Ditto.
8328 * mi/mi-out.c: Ditto.
8329 * mi/mi-parse.c: Ditto.
8330 * mi/mi-parse.h: Ditto.
8331 * mi/mi-symbol-cmds.c: Ditto.
8333 * mi/mi-getopt.h: Move mi_opt struct up.
8334 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8336 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8338 2012-03-06 Tom Tromey <tromey@redhat.com>
8340 * proc-service.c (ps_pglobal_lookup): Set the current program
8343 2012-03-06 Pedro Alves <palves@redhat.com>
8345 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8347 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8349 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8351 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8354 * common/linux-osdata.c (linux_common_core_of_thread): New function
8356 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8357 call by linux_common_core_of_thread.
8358 (linux_nat_core_of_thread_1): Remove.
8359 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8360 * linux-thread-db.c: Include linux-osdata.h.
8361 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8362 linux_common_core_of_thread.
8364 2012-03-05 Tom Tromey <tromey@redhat.com>
8366 * value.c (value_primitive_field): Don't fetch contents for
8369 2012-03-05 Tom Tromey <tromey@redhat.com>
8371 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8373 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8375 * s390-nat.c: Include "gregset.h".
8377 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8379 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8380 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8381 (libunwind_load): New variable so_error, use it for dlerror. Try to
8382 load also LIBUNWIND_SO_7.
8384 2012-03-05 Pedro Alves <palves@redhat.com>
8386 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8387 is not NULL, and remove resulting dead code.
8389 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8391 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8392 prologue to sh_analyze_prologue.
8393 (sh_analyze_prologue): Make better use of such an upper limit, and
8394 generally be more cautious about accessing memory.
8396 2012-03-05 Tom Tromey <tromey@redhat.com>
8398 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8399 _initialize_ia64_hpux_tdep.
8401 2012-03-05 Pedro Alves <palves@redhat.com>
8405 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8406 the register state is clear, supply explicit zero, instead of
8407 marking the register unavailable.
8409 2012-03-05 Tristan Gingold <gingold@adacore.com>
8411 * NEWS: Mention OpenVMS ia64 new target.
8413 2012-03-05 Tristan Gingold <gingold@adacore.com>
8415 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8416 (ia64_unw_accessors, ia64_unw_rse_accessors)
8417 (ia64_libunwind_descr): Declare.
8418 * ia64-vms-tdep.c: New file.
8419 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8420 (ia64_libunwind_descr): Make them public.
8421 * configure.tgt: Add ia64-*-*vms*.
8422 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8423 (ALLDEPFILES): Add ia64-vms-tdep.c
8425 2012-03-05 Tristan Gingold <gingold@adacore.com>
8427 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8428 * remote.c (PACKET_qXfer_uib): New enum value.
8429 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8430 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8431 (_initialize_remote): Call add_packet_config_cmd for
8434 2012-03-05 Tristan Gingold <gingold@adacore.com>
8436 * osabi.c (gdb_osabi_names): Add OpenVMS.
8437 (generic_elf_osabi_sniffer): Likewise.
8438 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8440 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8442 Removed unused code.
8443 * libunwind-frame.c (libunwind_frame_unwind)
8444 (libunwind_frame_base_address): Remove.
8445 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8447 2012-03-04 Yao Qi <yao@codesourcery.com>
8449 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8450 remove trailing new line.
8451 (agent_run_command, agent_run_command): Add _ markup.
8452 (agent_capability_check): Likewise.
8454 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8456 * breakpoint.c (set_condition_evaluation_mode): Set
8457 CONDITION_EVALUATION_MODE unconditionally.
8459 2012-03-03 Yao Qi <yao@codesourcery.com>
8461 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8462 * common/agent.h: Update declaration.
8463 * inf-child.c (inf_child_use_agent): New.
8464 (inf_child_can_use_agent): New.
8465 (inf_child_target): Initialize fields `to_use_agent'
8466 and `to_can_use_agent'.
8467 * agent.c (agent_new_objfile): New.
8468 (_initialize_agent): Add agent_new_objfile to new_objfile
8471 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8473 (linux_target_install_ops): Initialize field
8474 `to_static_tracepoint_markers_by_strid'.
8475 * remote.c (free_current_marker): Move it to ...
8476 * tracepoint.c (free_current_marker): ... here. New.
8477 (cleanup_target_stop): New.
8478 * tracepoint.h: Declare free_current_marker.
8479 * NEWS: Add one entry about `info static-tracepoint-marker'.
8481 2012-03-03 Yao Qi <yao@codesourcery.com>
8483 * common/agent.c (agent_loaded_p): New.
8484 (agent_look_up_symbols): New global.
8485 * common/agent.h: Declare agent_loaded_p.
8487 2012-03-03 Yao Qi <yao@codesourcery.com>
8489 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8490 (agent_capability_check, agent_capability_invalidate): New.
8491 (symbol_list): New array element.
8492 * common/agent.h (enum agent_capa): New.
8493 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8495 2012-03-03 Yao Qi <yao@codesourcery.com>
8497 * target.h (struct target_ops) <to_use_agent>: New field.
8498 (struct target_ops) <to_can_use_agent>: New field.
8499 (target_use_agent, target_can_use_agent): New macro.
8500 * target.c (update_current_target): Update.
8501 * remote.c: New enum `PACKET_QAgent'.
8502 (remote_protocol_features): Add a new element.
8503 (remote_use_agent, remote_can_use_agent): New.
8504 (init_remote_ops): Initialize field `can_use_agent' with
8505 remote_can_use_agent. Intiailize field `use_agent' with
8507 * common/agent.c (use_agent): New global.
8508 * common/agent.h: Declare it.
8509 * tracepoint.c (info_static_tracepoint_markers_command): Add
8511 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8512 (COMMON_OBS): Add common/agent.o and agent.o
8513 (common-agent.o): New rule.
8516 2012-03-03 Yao Qi <yao@codesourcery.com>
8518 * common/agent.c: New.
8519 * common/agent.h: New.
8520 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8522 * configure, configh.in: Regenerated.
8524 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8526 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8527 unless it exists for this architecture.
8529 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8531 * language.h (struct language_defn): New "method" la_read_var_value.
8532 * findvar.c: #include "language.h".
8533 (default_read_var_value): Renames read_var_value. Rewrite
8534 function description.
8535 (read_var_value): New function.
8536 * value.h (default_read_var_value): Add prototype.
8537 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8539 (ada_language_defn): Add entry for la_read_var_value.
8540 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8541 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8542 language_defn structures to add entry for new la_read_var_value
8545 2012-03-02 Tom Tromey <tromey@redhat.com>
8546 Pedro Alves <palves@redhat.com>
8548 PR breakpoints/13776:
8549 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8551 (delete_longjmp_breakpoint_at_next_stop): New.
8552 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8553 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8554 before deleting the inferior. Add comments.
8555 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8556 breakpoints immediately, but only on next stop. Move that code
8557 next to where we mark other breakpoints for deletion.
8559 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8561 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8563 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8566 2012-03-02 Pedro Alves <palves@redhat.com>
8568 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8570 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8572 Fix -Wmissing-prototypes build.
8573 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8574 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8575 (gdbsim_has_memory): Likewise.
8577 2012-03-02 Yao Qi <yao@codesourcery.com>
8579 Fix -Wmissing-prototypes build.
8580 * charset.c (phony_iconv_open): Make static.
8581 (phony_iconv_close, phony_iconv): Likewise.
8582 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8583 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8585 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8586 * ser-mingw.c (create_select_thread): Make static.
8587 * windows-termcap.c (tgetent): New prototype.
8588 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8590 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8592 Fix -Wmissing-prototypes build.
8593 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8594 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8595 (_initialize_loadable): New prototypes.
8597 2012-03-02 Doug Evans <dje@google.com>
8599 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8600 abbrev table, read_comp_unit will do it.
8602 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8604 Fix -Wmissing-prototypes build.
8605 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8606 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8607 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8608 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8609 (_initialize_arm_symbian_tdep): New prototype.
8610 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8611 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8612 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8614 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8615 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8617 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8618 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8619 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8621 * moxie-tdep.c (moxie_process_record): Likewise.
8622 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8623 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8624 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8625 (_initialize_rl78_tdep): New prototype.
8626 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8627 (_initialize_rx_tdep): New prototype.
8628 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8629 (_initialize_darwin_solib): New prototype.
8630 * solib-spu.c: Include solib-spu.h.
8631 (_initialize_spu_solib): New prototype.
8632 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8633 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8634 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8635 (tic6x_software_single_step): Make it static.
8636 (_initialize_tic6x_tdep): New prototype.
8638 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8640 Fix -Wmissing-prototypes build.
8641 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8642 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8644 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8646 Fix -Wmissing-prototypes build.
8647 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8648 (frv_have_stopped_data_address): Remove.
8650 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8652 Fix -Wmissing-prototypes build.
8653 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8654 * sh-tdep.c: Include sh64-tdep.h.
8655 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8656 * sh64-tdep.c: Include sh64-tdep.h.
8657 * sh64-tdep.h: New file.
8659 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8661 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8663 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8665 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8666 sp_regnum once the gdbarch_init_osabi hook has been called.
8668 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8670 * mips-tdep.c (mips32_bc1_pc): New function.
8671 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8672 BPOSGE32 and BPOSGE64 instructions.
8673 (deal_with_atomic_sequence): Likewise.
8674 (mips32_instruction_has_delay_slot): Likewise.
8676 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8677 Chris Dearman <chris@mips.com>
8678 Maciej W. Rozycki <macro@codesourcery.com>
8679 Joseph Myers <joseph@codesourcery.com>
8681 * features/mips-dsp.xml: New file.
8682 * features/mips64-dsp.xml: New file.
8683 * features/mips-dsp-linux.xml: New file.
8684 * features/mips64-dsp-linux.xml: New file.
8685 * features/Makefile (WHICH): Add mips-dsp-linux and
8687 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8688 * features/mips-dsp-linux.c: New file.
8689 * features/mips64-dsp-linux.c: New file.
8690 * regformats/mips-dsp-linux.dat: New file.
8691 * regformats/mips64-dsp-linux.dat: New file.
8692 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8694 (mips64_linux_register_addr): Likewise.
8695 (mips64_linux_regsets_fetch_registers): Likewise.
8696 (mips64_linux_regsets_store_registers): Likewise.
8697 (mips64_linux_fetch_registers): Update call to
8698 mips64_linux_regsets_fetch_registers.
8699 (mips64_linux_store_registers): Update call to
8700 mips64_linux_regsets_store_registers.
8701 (mips_linux_read_description): Probe for DSP registers.
8702 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8703 and initialize_tdesc_mips64_dsp_linux.
8704 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8705 Remove padding of no longer used embedded register slots.
8706 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8707 (MIPS_RESTART_REGNUM): Redefine enum value.
8708 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8710 (mips_tx39_reg_names): Likewise.
8711 (mips_linux_reg_names): New array of register names for Linux
8713 (mips_register_name): Check for a null pointer in
8714 mips_processor_reg_names and return an empty string.
8715 (mips_register_type): Exclude embedded registers for the IRIX
8717 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8718 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8720 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8721 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8722 (mips_gdbarch_init): Likewise. Initialize internal register
8723 indices for the Linux ABI. Use dynamic numbers to refer to
8724 registers, as applicable, while parsing the target description.
8725 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8727 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8729 * frame.h (read_frame_register_unsigned): Fix typo in function
8732 2012-03-01 Pedro Alves <palves@redhat.com>
8734 * jit-reader.in [!__cplusplus]
8735 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8737 2012-03-01 Pedro Alves <palves@redhat.com>
8739 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8740 * configure: Regenerate.
8742 2012-03-01 Pedro Alves <palves@redhat.com>
8744 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8745 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8746 (ftrace_command, strace_command): Make static.
8747 * d-lang.c (_initialize_d_language): Declare.
8748 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8749 * dwarf2loc.c (_initialize_dwarf2loc):
8750 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8751 * exec.c (exec_get_section_table): Make static.
8752 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8753 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8754 * inferior.c (remove_inferior_command, add_inferior_command)
8755 (clone_inferior_command): Make static.
8756 * linux-nat.c (linux_nat_thread_address_space)
8757 (linux_nat_core_of_thread): Make static.
8758 * linux-tdep.c (_initialize_linux_tdep): Declare.
8759 * objc-lang.c (_initialize_objc_lang): Declare.
8760 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8762 (_initialize_opencl_language): Declare.
8763 * record.c (_initialize_record): Declare.
8764 * remote.c (demand_private_info, remote_get_tib_address)
8765 (remote_supports_cond_tracepoints)
8766 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8768 * skip.c (_initialize_step_skip): Declare.
8769 * symtab.c (skip_prologue_using_lineinfo): Make static.
8770 * tracepoint.c (delete_trace_state_variable)
8771 (trace_variable_command, delete_trace_variable_command)
8772 (get_uploaded_tsv, find_matching_tracepoint_location)
8773 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8775 * value.c (pack_unsigned_long): Make static.
8776 * varobj.c (varobj_ensure_python_env): Make static.
8777 * windows-tdep.c (_initialize_windows_tdep): Declare.
8778 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8780 2012-03-01 Pedro Alves <palves@redhat.com>
8782 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8784 (linux_init_abi): Install it as has_shared_address_space gdbarch
8787 2012-03-01 Pedro Alves <palves@redhat.com>
8789 * observer.c (observer_test_first_notification_function)
8790 (observer_test_second_notification_function)
8791 (observer_test_third_notification_function): Add declarations.
8793 2012-03-01 Pedro Alves <palves@redhat.com>
8795 * common/signals.c (default_target_signal_to_host)
8796 (default_target_signal_from_host): Move ...
8797 * arch-utils.c: ... here.
8798 * arch-utils.h (default_target_signal_to_host)
8799 (default_target_signal_from_host): Declare.
8801 * common/signals.c (target_signal_from_command): Move ...
8802 * infrun.c: ... here.
8803 * inferior.h (target_signal_from_command): Declare.
8804 * target.h (target_signal_from_command)
8805 (default_target_signal_from_host, default_target_signal_to_host):
8806 Delete declarations.
8808 * common/signals.c (_initialize_signals): Delete.
8810 2012-03-01 Pedro Alves <palves@redhat.com>
8812 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8813 both __cplusplus and !__cplusplus.
8815 2012-03-01 Pedro Alves <palves@redhat.com>
8817 * psymtab.c (find_and_open_source): Delete declaration.
8818 * source.c (find_and_open_source): Move comment ...
8819 * source.h (find_and_open_source): ... to this new declaration.
8821 2012-03-01 Pedro Alves <palves@redhat.com>
8823 * inline-frame.c: Include inline-frame.h.
8825 2012-03-01 Pedro Alves <palves@redhat.com>
8827 * tui/tui-data.c (set_gen_win_origin): Delete.
8828 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8829 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8831 2012-03-01 Pedro Alves <palves@redhat.com>
8833 * remote.c (encode_actions): Delete declaration.
8834 * tracepoint.c (encode_actions): Make extern.
8835 * tracepoint.h (encode_actions): Declare.
8837 2012-03-01 Pedro Alves <palves@redhat.com>
8839 * python/py-breakpoint.c: Include python.h.
8840 * python/py-continueevent.c (create_continue_event_object): Make
8842 * python/py-lazy-string.c (stpy_get_type): Make static.
8843 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8845 * python/py-utils.c (unicode_to_target_python_string): Make
8847 * python/py-value.c: Include python.h.
8849 2012-03-01 Pedro Alves <palves@redhat.com>
8851 * inferior.c (delete_threads_of_inferior): Delete.
8853 2012-03-01 Pedro Alves <palves@redhat.com>
8855 Import fallback definitions from glibc.
8857 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8858 ps_prochandle): Forward declare.
8859 (ps_err_e): Use glibc's comments.
8860 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8861 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8862 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8863 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8864 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8865 (struct ps_prochandle): Adjust comment.
8867 2012-03-01 Pedro Alves <palves@redhat.com>
8869 * ada-lang.c (ada_modulus_from_name): Delete.
8870 * ada-lex.l (lexer_init): Make static.
8872 2012-03-01 Pedro Alves <palves@redhat.com>
8876 * frame.c (read_frame_register_unsigned): New.
8877 * frame.h (read_frame_register_unsigned): Declare.
8878 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8880 (print_i387_control_word): New parameter `control_p'. Handle it.
8881 (i387_print_float_info): Handle unavailable float registers.
8883 2012-03-01 Keith Seitz <keiths@redhat.com>
8885 * linespec.c (decode_line_2): Sort the list of methods
8886 alphabetically before presenting the user with a selection
8889 2012-03-01 Doug Evans <dje@google.com>
8891 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8893 (dwarf2_read_abbrevs): Remove corresponding initialization.
8895 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8897 * NEWS: Mention new python command class gdb.COMMAND_USER.
8898 * cli/cli-cmds.c (show_user): Print error when used on a python
8900 (init_cli_cmds): Update documentation strings for "show user" and
8901 "set/show max-user-call-depth" to clarify that it does not apply to
8903 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8905 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8907 * top.c (execute_command): Only execute a user-defined command as a
8908 legacy macro if c->user_commands is set.
8910 2012-03-01 Tom Tromey <tromey@redhat.com>
8912 * valprint.h (struct generic_val_print_decorations): New.
8913 (generic_val_print): Declare.
8914 * valprint.c (generic_val_print): New function.
8915 * p-valprint.c (p_decorations): New global.
8916 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8917 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8918 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8919 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8920 * m2-valprint.c (m2_decorations): New global.
8921 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8922 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8923 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8924 TYPE_CODE_ERROR>: Call generic_val_print.
8925 * f-valprint.c (f_decorations): New global.
8926 (f_val_print): Use print_function_pointer_address.
8927 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8928 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8929 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8931 * c-valprint.c (c_decorations): New global.
8932 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8933 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8934 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8935 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8936 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8937 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8940 2012-03-01 Tom Tromey <tromey@redhat.com>
8942 * valprint.c (val_print): Update.
8943 * p-valprint (pascal_val_print): Return void.
8944 * p-lang.h (pascal_val_print): Return void.
8945 * m2-valprint.c (m2_val_print): Return void.
8946 * m2-lang.h (m2_val_print): Return void.
8947 * language.h (struct language_defn) <la_val_print>: Return void.
8948 * language.c (unk_lang_val_print): Return void.
8949 * jv-valprint.c (java_val_print): Return void.
8950 * jv-lang.h (java_val_print): Return void.
8951 * f-valprint.c (f_val_print): Return void.
8952 * f-lang.h (f_val_print): Return void.
8953 * d-valprint.c (d_val_print): Return void.
8954 (dynamic_array_type): Update.
8955 * d-lang.h (d_val_print): Return void.
8956 * c-valprint.c (c_val_print): Return void.
8957 * c-lang.h (c_val_print): Return void.
8958 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8960 * ada-lang.h (ada_val_print): Return void.
8962 2012-03-01 Tom Tromey <tromey@redhat.com>
8964 * value.h (val_print): Return void.
8965 * valprint.c (val_print): Return void.
8967 2012-03-01 Tom Tromey <tromey@redhat.com>
8969 * value.h (common_val_print): Return void.
8970 * valprint.c (common_val_print): Return void.
8972 2012-03-01 Tom Tromey <tromey@redhat.com>
8974 * value.h (value_print): Return void.
8975 * valprint.c (value_print): Return void.
8976 * p-valprint.c (pascal_value_print): Return void.
8977 * p-lang.h (pascal_value_print): Return void.
8978 * language.h (struct language_defn) <la_value_print>: Return
8980 * language.c (unk_lang_value_print): Return void.
8981 * jv-valprint.c (java_value_print): Return void.
8982 * jv-lang.h (java_value_print): Return void.
8983 * f-valprint.c (c_value_print): Don't declare.
8985 * c-valprint.c (c_value_print): Return void.
8986 * c-lang.h (c_value_print): Return void.
8987 * ada-valprint.c (ada_value_print): Return void.
8988 * ada-lang.h (ada_value_print): Return void.
8990 2012-03-01 Tom Tromey <tromey@redhat.com>
8992 * value.c (value_primitive_field): Handle virtual base classes.
8994 2012-03-01 Tom Tromey <tromey@redhat.com>
8996 * gdbtypes.h (struct vbase): Remove.
8998 2012-03-01 Tom Tromey <tromey@redhat.com>
9000 * c-valprint.c (print_function_pointer_address): Move...
9001 * valprint.c: ... here. Make non-static.
9002 * m2-valprint.c (print_function_pointer_address): Remove.
9003 * valprint.h (print_function_pointer_address): Declare.
9005 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9007 * NEWS: Document the fact that one can provide a condition when
9008 creating an Ada exception catchpoint.
9010 2012-03-01 Tom Tromey <tromey@redhat.com>
9012 * valprint.c (val_print_type_code_flags): Fix placement of
9015 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9017 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9018 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9019 environment variable before calling update-copyright.
9021 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9023 * gnulib/extra/update-copyright: Update to the latest from
9024 gnulib's git repository.
9025 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9026 variable to 2 instead of 1.
9028 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9030 * varobj.c (c_value_of_variable): Remove dead code.
9032 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9034 * ada-lex.p (processId): Do not modify already encoded IDs.
9035 Update function documentation.
9037 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9039 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9040 "name" with "struct symbol *name_sym".
9041 * ada-exp.y (write_var_or_type): Update call to
9042 ada_find_renaming_symbol.
9043 "name" with "struct symbol *name_sym". Adjust Implementation
9044 accordingly. Adjust the function documentation.
9046 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9048 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9049 * ada-lang.c (ada_find_any_type): Add advance declaration.
9050 Make static. Replace ada_find_any_symbol by
9051 ada_find_any_type_symbol.
9052 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9053 Improve function description. Make static.
9054 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9055 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9059 * ada-lang.c (struct tag_args): Delete.
9060 (ada_get_tsd_type): Function body moved up in source file.
9061 (ada_tag_name_1, ada_tag_name_2): Delete.
9062 (ada_get_tsd_from_tag): New function.
9063 (ada_tag_name_from_tsd): New function.
9064 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9065 to determine the tag name.
9067 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9069 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9071 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9074 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9076 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9078 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9080 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9083 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9085 * ada-lang.c (constrained_packed_array_type): If there is a
9086 parallel XA type, use it to determine the array index type.
9088 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9090 * ada-valprint.c (ada_val_print_1): If our value is a reference
9091 to an array descriptor, dereference it before converting it
9094 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9096 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9097 creating fixed value.
9098 (ada_value_ind, ada_coerce_ref, assign_component)
9099 (ada_evaluate_subexp): Remove call to unwrap_value before
9100 call to ada_to_fixed_value.
9102 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9104 * ada-lang.c (to_fixed_array_type): Set result's type name.
9106 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9108 * ada-lang.c (catch_ada_exception_command_split): Add new
9109 argument cond_string. Add support for condition at end of
9110 "catch exception" commands.
9111 (ada_decode_exception_location): Add new argument cond_string.
9112 Update call to catch_ada_exception_command_split.
9113 (create_ada_exception_catchpoint): Add new argument cond_string.
9114 Set the breakpoint condition if needed.
9115 (catch_ada_exception_command): Update call to
9116 ada_decode_exception_location.
9117 (ada_decode_assert_location): Add function documentation.
9118 Add support for condition at end of "catch assert" command.
9119 (catch_assert_command): Update calls to ada_decode_assert_location
9120 and create_ada_exception_catchpoint.
9122 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9124 Fix disp-step-syscall.exp: fork: single step over fork.
9125 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9126 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9127 comment, change parameters gdbarch and ptid to regcache. Remove
9128 parameter regcache, initialize gdbarch from regcache here.
9129 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9131 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9133 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9134 'syscall'. Make the 'int' check more strict.
9136 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9139 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9140 (i386_linux_intx80_sysenter_syscall_record): ... here.
9141 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9142 Use the renamed function name.
9144 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9146 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9147 * breakpoint.c (until_break_command): Likewise.
9148 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9149 * infcall.c (call_function_by_hand): Likewise.
9150 * infcmd.c (finish_forward): Likewise.
9151 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9153 2012-02-28 Tristan Gingold <gingold@adacore.com>
9155 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9156 avoid variable assignments inside condition.
9158 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9160 Fix static analysis issue found by cppcheck.
9161 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9162 uninitialized BUF for size 2.
9164 2012-02-27 Chris Dearman <chris@mips.com>
9165 Nathan Froyd <froydnj@codesourcery.com>
9166 Maciej W. Rozycki <macro@codesourcery.com>
9168 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9169 (mips16_instruction_has_delay_slot): Likewise.
9170 (mips_segment_boundary): Likewise.
9171 (mips_adjust_breakpoint_address): Likewise.
9172 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9174 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9175 Maciej W. Rozycki <macro@codesourcery.com>
9177 * infrun.c (handle_inferior_event): Don't proceed through
9178 shared library trampolines if stepping at the machine
9181 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9183 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9186 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9188 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9189 (sh_stub_unwind_sniffer): New functions.
9190 (sh_stub_unwind): New variable.
9191 (sh_gdbarch_init): Wire everything.
9193 2012-02-27 Pedro Alves <palves@redhat.com>
9195 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9196 (linux_nat_post_attach_wait): Adjust to use
9197 linux_proc_pid_is_stopped.
9198 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9199 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9200 based on pid_is_stopped from both linux-nat.c and
9201 gdbserver/linux-low.c, and renamed.
9203 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9205 * remote.c (remote_watchpoint_addr_within_range): New function.
9206 (init_remote_ops): Use it.
9208 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9210 * target.h (target_watchpoint_addr_within_range): Document macro.
9212 2012-02-24 Pedro Alves <palves@redhat.com>
9214 * stack.c (set_last_displayed_sal): Issue internal_error instead
9215 of warning, and issue it after clearing the last displayed sal.
9217 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9218 Pedro Alves <palves@redhat.com>
9220 * breakpoint.c (until_break_command): Install breakpoints after
9221 all frame manipulations.
9223 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9225 * remote.c (remote_supports_cond_breakpoints): New forward
9227 (remote_add_target_side_condition): New function.
9228 (remote_insert_breakpoint): Add target-side breakpoint
9229 conditional if supported.
9230 (remote_insert_hw_breakpoint): Likewise.
9231 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9234 * target.c (update_current_target): Inherit
9235 to_supports_evaluation_of_breakpoint_conditions.
9236 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9238 * target.h (struct target_ops)
9239 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9240 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9242 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9243 (condition_evaluation_both, condition_evaluation_auto,
9244 condition_evaluation_host, condition_evaluation_target,
9245 condition_evaluation_enums, condition_evaluation_mode_1,
9246 condition_evaluation_mode): New static globals.
9247 (translate_condition_evaluation_mode): New function.
9248 (breakpoint_condition_evaluation_mode): New function.
9249 (gdb_evaluates_breakpoint_condition_p): New function.
9250 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9251 (mark_breakpoint_modified): New function.
9252 (mark_breakpoint_location_modified): New function.
9253 (set_condition_evaluation_mode): New function.
9254 (show_condition_evaluation_mode): New function.
9255 (bp_location_compare_addrs): New function.
9256 (get_first_location_gte_addr): New helper function.
9257 (set_breakpoint_condition): Free condition bytecode if locations
9258 has become unconditional. Call mark_breakpoint_modified (...).
9259 (condition_command): Call update_global_location_list (1) for
9261 (breakpoint_xfer_memory): Use is_breakpoint (...).
9262 (is_breakpoint): New function.
9263 (parse_cond_to_aexpr): New function.
9264 (build_target_condition_list): New function.
9265 (insert_bp_location): Handle target-side conditional
9266 breakpoints and call build_target_condition_list (...).
9267 (update_inserted_breakpoint_locations): New function.
9268 (insert_breakpoint_locations): Handle target-side conditional
9270 (bpstat_check_breakpoint_conditions): Add comment.
9271 (bp_condition_evaluator): New function.
9272 (bp_location_condition_evaluator): New function.
9273 (print_breakpoint_location): Print information on where the condition
9275 (print_one_breakpoint_location): Likewise.
9276 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9277 breakpoint location.
9278 (force_breakpoint_reinsertion): New functions.
9279 (update_global_location_list): Handle target-side breakpoint
9281 Reinsert locations that are already inserted if conditions have
9283 (bp_location_dtor): Free agent expression bytecode.
9284 (disable_breakpoint): Call mark_breakpoint_modified (...).
9285 Call update_global_location_list (...) with parameter 1 for breakpoints.
9286 (disable_command): Call mark_breakpoint_location_modified (...).
9287 Call update_global_location_list (...) with parameter 1 for breakpoints.
9288 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9289 (enable_command): mark_breakpoint_location_modified (...).
9290 (_initialize_breakpoint): Update documentation and add
9291 condition-evaluation breakpoint subcommand.
9293 * breakpoint.h: Include ax.h.
9294 (condition_list): New data structure.
9295 (condition_status): New enum.
9296 (bp_target_info) <cond_list>: New field.
9297 (bp_location) <condition_changed, cond_bytecode>: New fields.
9298 (is_breakpoint): New prototype.
9300 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9302 * remote.c (remote_state) <cond_breakpoints>: New field.
9303 (PACKET_ConditionalBreakpoints): New enum.
9304 (remote_cond_breakpoint_feature): New function.
9305 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9306 (remote_supports_cond_breakpoints): New function.
9307 (_initialize_remote): Add new packet configuration for
9308 target-side conditional breakpoints.
9310 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9312 * NEWS: Mention target-side conditional breakpoint support,
9313 new condition-evaluation breakpoint subcommand and remote
9316 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9318 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9321 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9323 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9324 (after_prologue): Remove.
9326 2012-02-23 Tom Tromey <tromey@redhat.com>
9328 * jv-valprint.c (java_val_print): Remove dead code.
9330 2012-02-23 Tristan Gingold <gingold@adacore.com>
9332 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9333 known_tasks_element and known_tasks_length fields.
9334 (read_known_tasks_array): Change argument type. Use pointer type
9335 and number of elements from DATA. Adjust.
9336 (read_known_tasks_list): Likewise.
9337 (get_known_tasks_addr): Remove.
9338 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9339 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9340 type and array length. Merge former get_known_tasks_addr code.
9342 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9345 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9346 it after set_momentary_breakpoint.
9348 2012-02-22 Sterling Augustine <saugustine@google.com>
9351 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9353 2012-02-22 Gary Benson <gbenson@redhat.com>
9355 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9356 (find_slot_in_mapped_hash): Likewise.
9358 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9361 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9362 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9363 * configure: Regenerate.
9365 2012-02-21 Tristan Gingold <gingold@adacore.com>
9366 Pedro Alves <palves@redhat.com>
9368 * ia64-tdep.c: Do not include libunwind-ia64.h.
9369 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9370 Include libunwind-ia64.h instead of libunwind.h.
9371 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9372 for libunwind.h existence.
9373 * configure, config.in: Regenerate.
9375 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9377 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9378 instead of value_rtti_target_type.
9379 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9380 instead of value_rtti_target_type.
9381 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9382 value_rtti_target_type.
9383 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9384 (value_rtti_target_type): Rename to ...
9385 (value_rtti_indirect_type): ... here and make it indirect. Update
9387 * value.c (readjust_indirect_value_type): New function.
9388 (coerce_ref): Support for enclosing type setting for references
9389 with readjust_indirect_value_type.
9390 * value.h (readjust_value_type): New declaration.
9391 (value_rtti_target_type): Rename to ...
9392 (value_rtti_indirect_type): ... here.
9394 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9396 * MAINTAINERS (Write After Approval): Add myself to the list.
9398 2012-02-20 Doug Evans <dje@google.com>
9400 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9401 Rename objfile_p_char parameter to objfilep.
9402 (build_objfile_section_table): Result is now void. All callers
9404 * objfiles.h (struct objfile): Tweak comments, whitespace.
9405 (build_objfile_section_table): Update.
9407 * elfread.c (elf_symfile_segments): Fix warning text.
9409 2012-02-20 Tom Tromey <tromey@redhat.com>
9412 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9413 particular set of file names once.
9414 (dw2_map_symbol_filenames): Likewise.
9416 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9419 * main.c (write_files): Remove the declaration.
9420 (external_editor_command): Move the declaration ...
9421 [GDBTK] (external_editor_command): ... here. Fix the comment.
9423 2012-02-20 Tom Tromey <tromey@redhat.com>
9425 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9428 2012-02-20 Tristan Gingold <gingold@adacore.com>
9430 * darwin-nat.h (enum darwin_msg_state): Add comments.
9432 2012-02-20 Tristan Gingold <gingold@adacore.com>
9434 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9437 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9439 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9440 between function description and implementation.
9442 2012-02-17 Tom Tromey <tromey@redhat.com>
9445 * python/py-event.c (event_object_getset): New global.
9446 (event_object_type): Reference it.
9447 * python/py-type.c (field_object_getset): New global.
9448 (field_object_type): Reference it.
9449 * python/python-internal.h (gdb_py_generic_dict): Declare.
9450 * python/py-utils.c (gdb_py_generic_dict): New function.
9452 2012-02-17 Tristan Gingold <gingold@adacore.com>
9454 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9456 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9458 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9459 TYPE_CALLING_CONVENTION annotation.
9461 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9463 * MAINTAINERS: Add rx to target ISA section.
9464 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9465 (ALLDEPFILES): Add rx-tdep.c.
9467 2012-02-16 Tom Tromey <tromey@redhat.com>
9469 * symfile.c (symbol_file_add_main_1): Use inferior's
9471 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9472 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9474 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9476 (follow_exec): Use inferior's symfile_flags.
9477 * inferior.h (struct inferior) <symfile_flags>: New field.
9479 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9482 * remote-sim.c (gdbsim_create_inferior): Call error() when
9483 sim_create_inferior() fails.
9485 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9487 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9489 2012-02-16 Tom Tromey <tromey@redhat.com>
9492 * thread.c (struct current_thread_cleanup) <was_removable>: New
9494 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9495 (make_cleanup_restore_current_thread): Initialize new field.
9497 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9499 * MAINTAINERS: Add rl78 to target ISA section.
9500 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9501 (ALLDEPFILES): Add rl78-tdep.c.
9502 * NEWS: Mention rl78 as a new target.
9504 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9506 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9508 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9510 2012-02-15 Tom Tromey <tromey@redhat.com>
9513 * infcmd.c (registers_info): Print just the current register's
9516 2012-02-15 Tom Tromey <tromey@redhat.com>
9518 * python/py-symbol.c (sympy_value): Use _().
9520 2012-02-15 Pedro Alves <palves@redhat.com>
9522 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9523 output to be like native targets'.
9524 (remote_pid_to_str): Special case the null ptid.
9526 2012-02-14 Stan Shebs <stan@codesourcery.com>
9528 * NEWS: Mention enable count command.
9529 * breakpoint.h (struct breakpoint): New field enable_count.
9530 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9531 (enable_breakpoint): Add arg to call.
9532 (struct disp_data): New struct.
9533 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9534 (do_map_enable_once_breakpoint): Create a struct and pass it.
9535 (do_map_enable_delete_breakpoint): Ditto.
9536 (do_map_enable_count_breakpoint): New function.
9537 (enable_count_command): New function.
9538 (bpstat_stop_status): Decrement enable_count.
9539 (print_one_breakpoint_location): Report enable count.
9540 (_initialize_breakpoint): Add enable count command.
9542 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9544 * rl78-tdep.c (reggroups.h): Include.
9545 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9546 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9547 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9548 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9549 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9550 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9551 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9552 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9553 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9554 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9555 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9556 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9557 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9558 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9559 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9560 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9561 beginning of register list.
9562 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9563 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9564 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9565 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9566 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9567 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9568 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9569 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9570 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9571 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9572 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9573 the pseudo registers. Rearrange other pseudo registers too so
9574 that the bank registers appear at the end.
9575 (rl78_register_type): Account for the fact that the byte sized
9576 bank registers are now pseudo-registers.
9577 (rl78_register_name): Rearrange the register name array. Make
9578 initial set of raw banked registers inaccessible.
9579 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9580 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9581 case for copying bytes back and forth between raw and pseudo
9582 versions of the banked registers. Update other cases to reflect
9584 (rl78_return_value): Update to account for changed names of
9586 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9587 rl78_register_sim_regno().
9589 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9591 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9592 the name parameter being passed to find_pc_partial_function().
9594 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9596 * MAINTAINERS: Step down from being ia64 target maintainer.
9598 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9600 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9601 compilation warning.
9603 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9605 Fix crash on loaded shlibs without loaded exec_bfd.
9606 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9607 (set_section_command): Replace exec_bfd by p->bfd.
9609 2012-02-10 Tom Tromey <tromey@redhat.com>
9611 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9612 when we have a C++ qualified name.
9614 2012-02-10 Pedro Alves <palves@redhat.com>
9616 * inferior.c (inferior_pid_to_str): New.
9617 (print_inferior, inferior_command): Use it.
9619 2012-02-10 Pedro Alves <palves@redhat.com>
9621 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9623 * configure: Regenerate.
9625 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9627 * linespec.c (decode_line_internal): Fix comment correctness.
9629 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9632 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9633 * amd64bsd-nat.c: Add support for debug registers (adapted from
9635 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9636 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9637 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9638 (amd64bsd_dr_get_control): New functions.
9639 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9640 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9641 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9642 watchpoints initialization.
9643 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9645 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9647 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9649 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9651 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9653 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9655 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9657 * language.h (symbol_name_cmp_ftype): Renames
9658 symbol_name_match_p_ftype.
9659 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9660 la_get_symbol_name_match_p.
9661 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9662 ada_get_symbol_name_match_p. Update comment.
9663 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9664 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9665 Renames symbol_name_match_p. Update field type.
9666 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9667 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9668 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9669 "la_get_symbol_name_cmp" in comments.
9670 * language.c: Likewise.
9672 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9674 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9676 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9677 (amd64_sol2_gregset32_reg_offs): Likewise.
9679 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9681 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9682 of the returned BFD is allocated by GDB.
9684 2012-02-07 Tom Tromey <tromey@redhat.com>
9687 * python/python-internal.h (frame_object_type): Declare.
9688 * python/py-symbol.c (sympy_needs_frame): New function.
9689 (sympy_value): New function.
9690 (symbol_object_getset): Add "needs_frame".
9691 (symbol_object_methods): Add "value".
9692 * python/py-frame.c (frame_object_type): No longer static.
9694 2012-02-07 Tom Tromey <tromey@redhat.com>
9697 * python/py-symbol.c (sympy_line): New function.
9698 (symbol_object_getset): Add "line".
9700 2012-02-07 Tom Tromey <tromey@redhat.com>
9702 * charset.c (find_charset_names): Check 'in' against NULL.
9704 2012-02-06 Doug Evans <dje@google.com>
9706 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9707 and fields.name members from char * to const char *. All uses updated.
9708 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9709 from char * to const char *. All uses updated.
9710 (type_name_no_tag): Update.
9711 (lookup_unsigned_typename, lookup_signed_typename): Update.
9712 * gdbtypes.c (type_name_no_tag): Change result type
9713 from char * to const char *. All callers updated.
9714 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9715 name parameter from char * to const char *.
9716 * symtab.h (struct cplus_specific): Change type of demangled_name
9717 member from char * to const char *. All uses updated.
9718 (struct general_symbol_info): Change type of name and
9719 mangled_lang.demangled_name members from char * to const char *.
9721 (symbol_get_demangled_name, symbol_natural_name): Update.
9722 (symbol_demangled_name, symbol_search_name): Update.
9723 * symtab.c (symbol_get_demangled_name): Change result type
9724 from char * to const char *. All callers updated.
9725 (symbol_natural_name, symbol_demangled_name): Ditto.
9726 (symbol_search_name): Ditto.
9727 (completion_list_add_name): Change type of symname,sym_text,
9728 text,word parameters from char * to const char *.
9729 (completion_list_objc_symbol): Change type of sym_text,
9730 text,word parameters from char * to const char *.
9731 * ada-lang.c (find_struct_field): Change type of name parameter
9732 from char * to const char *.
9733 (encoded_ordered_before): Similarly for N0,N1 parameters.
9734 (old_renaming_is_invisible): Similarly for function_name parameter.
9735 (ada_type_name): Change result type from char * to const char *.
9736 All callers updated.
9737 * ada-lang.h (ada_type_name): Update.
9738 * buildsym.c (hashname): Change type of name parameter
9739 from char * to const char *.
9740 * buildsym.h (hashname): Update.
9741 * dbxread.c (end_psymtab): Change type of include_list parameter
9742 from char ** to const char **.
9743 * dwarf2read.c (determine_prefix): Change result type
9744 from char * to const char *. All callers updated.
9745 * f-lang.c (find_common_for_function): Change type of name, funcname
9746 parameters from char * to const char *.
9747 * f-lang.c (find_common_for_function): Update.
9748 * f-valprint.c (list_all_visible_commons): Change type of funcname
9749 parameters from char * to const char *.
9750 * gdbarch.sh (static_transform_name): Change type of name parameter
9751 and result from char * to const char *.
9752 * gdbarch.c: Regenerate.
9753 * gdbarch.h: Regenerate.
9754 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9755 of name parameter from char * to const char *.
9756 * jv-lang.c (java_primitive_type_from_name): Ditto.
9757 (java_demangled_signature_length): Similarly for signature parameter.
9758 (java_demangled_signature_copy): Ditto.
9759 (java_demangle_type_signature): Ditto.
9760 * jv-lang.h (java_primitive_type_from_name): Update.
9761 (java_demangle_type_signature): Update.
9762 * objc-lang.c (specialcmp): Change type of a,b parameters
9763 from char * to const char *.
9764 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9765 from char * to const char *. All callers updated.
9766 * p-lang.h (is_pascal_string_type): Update.
9767 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9768 of name parameter from char * to const char *.
9769 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9770 * utils.c (fprintf_symbol_filtered): Ditto.
9771 * defs.h (fprintf_symbol_filtered): Update.
9772 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9773 * stabsread.h (end_psymtab): Update.
9774 * stack.c (find_frame_funname): Change type of funname parameter
9775 from char ** to const char **.
9776 * stack.h (find_frame_funname): Update.
9777 * typeprint.c (type_print): Change type of varstring parameter
9778 from char * to const char *.
9779 * value.h (type_print): Update.
9780 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9781 from char * to const char *. All callers updated.
9782 (xcoff_end_psymtab): Change type of include_list parameter
9783 from char ** to const char **. All callers updated.
9784 (swap_sym): Similarly for name parameter. All callers updated.
9785 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9787 (process_coff_symbol): Use xstrdup.
9788 * stabsread.c (stabs_method_name_from_physname): Renamed from
9789 update_method_name_from_physname. Change result type from void
9790 to char *. All callers updated.
9791 (read_member_functions): In has_destructor case, store name in objfile
9792 obstack instead of malloc space. In !has_stub case, fix mem leak.
9794 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9796 * configure: Rebuild.
9797 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9800 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9802 * configure.tgt (rl78-*-elf): New target.
9803 * rl78-tdep.c: New file.
9805 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9808 and continue the loop. Add QUIT statement.
9810 2012-02-03 Tom Tromey <tromey@redhat.com>
9813 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9814 bfd_lookup_symbol_from_symtab.
9815 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9816 gdb_bfd_lookup_symbol_from_symtab.
9818 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9820 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9821 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9822 symbol. Add assertion that sym2 is never NULL.
9824 2012-02-02 Doug Evans <dje@google.com>
9826 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9827 "name" parameter to const char ** from char **. All callers updated.
9828 (find_pc_partial_function): Ditto.
9829 (cache_pc_function_name): Change type to const char * from char *.
9830 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9831 (find_pc_partial_function): Update.
9832 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9833 type of "name" parameter to const char * from char *.
9835 * arch-utils.c (generic_in_solib_return_trampoline): Change
9836 type of "name" parameter to const char * from char *.
9837 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9838 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9839 type of "name" parameter to const char * from char *.
9840 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9841 * gdbarch.c: Regenerate.
9842 * gdbarch.h: Regenerate.
9843 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9844 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9845 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9846 type of "name" parameter to const char * from char *.
9847 * skip.c (skip_function_pc): Ditto.
9848 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9849 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9850 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9851 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9852 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9853 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9854 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9855 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9856 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9858 2012-02-02 Pedro Alves <palves@redhat.com>
9860 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9861 the current inferior has no execution. Make sure the current
9862 remote process matches gdb's current inferior.
9864 2012-02-02 Tom Tromey <tromey@redhat.com>
9867 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9870 2012-02-02 Tom Tromey <tromey@redhat.com>
9873 * symtab.c (lookup_language_this): Set block_found.
9875 2012-02-01 Tom Tromey <tromey@redhat.com>
9878 * jit.c (struct jit_inferior_data): Rewrite.
9879 (struct jit_objfile_data): New.
9880 (get_jit_objfile_data): New function.
9881 (add_objfile_entry): Update.
9882 (jit_read_descriptor): Return int. Replace descriptor_addr
9883 argument with inf_data. Update. Don't call error.
9884 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9886 (jit_inferior_init): Don't look up descriptor. Don't call error.
9887 (jit_reset_inferior_data_and_breakpoints)
9888 (jit_inferior_created_observer): Remove.
9889 (jit_inferior_exit_hook): Update.
9890 (jit_executable_changed_observer): Remove.
9891 (jit_event_handler): Update.
9892 (free_objfile_data): Reset inferior data if needed.
9893 (_initialize_jit): Update.
9895 2012-02-01 Tom Tromey <tromey@redhat.com>
9897 * jit.c (bfd_open_from_target_memory): Move higher in file.
9899 2012-02-01 Tristan Gingold <gingold@adacore.com>
9901 * libunwind-frame.c (libunwind_load): Display message if dlopen
9904 2012-02-01 Gary Benson <gbenson@redhat.com>
9906 * symtab.h (symbol_found_callback_ftype): New typedef.
9907 (iterate_over_symbols): Use the above.
9908 * symtab.c (iterate_over_symbols): Likewise.
9909 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9910 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9911 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9912 (iterate_name_matcher): Document return values.
9913 (collect_one_symbol): Likewise.
9914 (collect_function_symbols): Likewise.
9915 (collect_symbols): Likewise.
9917 2012-02-01 Tom Tromey <tromey@redhat.com>
9919 * ada-lang.c (resolve_subexp): Update.
9920 (ada_lookup_symbol_list): Add 'full_search' argument.
9921 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9922 ada_lookup_symbol_list.
9923 (ada_lookup_encoded_symbol): Update.
9924 (get_var_value): Update.
9925 * ada-exp.y (block_lookup): Update.
9926 (write_var_or_type): Update.
9927 (write_name_assoc): Update.
9928 * ada-lang.h (ada_lookup_symbol_list): Update.
9930 2012-01-31 Tom Tromey <tromey@redhat.com>
9932 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9935 2012-01-31 Doug Evans <dje@google.com>
9937 * symtab.h: Remove outdated comment.
9938 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9940 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9942 Fix build error in Darwin port.
9943 * i386-darwin-nat.c: Include i386-nat.h.
9945 2012-01-30 Tom Tromey <tromey@redhat.com>
9947 PR breakpoints/13568:
9948 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9949 argument. Check for recursive includes.
9950 (dwarf_decode_macros): Create an include hash.
9952 2012-01-30 Michael Eager <eager@eagercon.com>
9954 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9955 * ppc-linux-tdep.c: Include glibc-tdep.h.
9956 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9957 (powerpc_linux_in_plt_stub): New function.
9958 (powerpc_linux_in_dynsym_resolve_code): New function.
9959 (ppc_skip_trampoline_code): New function.
9960 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9961 Use glibc_skip_solib_resolver.
9963 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9965 Code cleanup: Make 1440 bytes of data segment read-only.
9966 * arch-utils.c (endian_enum): Make it const char *const [].
9967 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9969 * breakpoint.c (always_inserted_enums): Likewise.
9970 * cli/cli-cmds.c (script_ext_enums): Likewise.
9971 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9972 enumlist parameter const char *const *.
9973 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9974 const char *const *.
9975 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9976 parameter const char *const *.
9977 * cris-tdep.c (cris_modes): Make it const char *const [].
9978 * filesystem.c (target_file_system_kinds): Likewise.
9979 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9980 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9981 (can_use_displaced_stepping_enum, scheduler_enums)
9982 (exec_direction_names): Likewise.
9983 * language.c (_initialize_language): Make the type_or_range_names and
9984 case_sensitive_names variables const char *const [].
9985 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9986 * python/python.c (python_excp_enums): Likewise.
9987 * remote.c (interrupt_sequence_modes): Likewise.
9988 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9989 * serial.c (logbase_enums): Likewise.
9990 * sh-tdep.c (sh_cc_enum): Likewise.
9991 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9993 * symtab.c (multiple_symbols_modes): Likewise.
9994 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9996 * utils.c (internal_problem_modes): Likewise.
9998 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10000 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10001 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10004 2012-01-27 Doug Evans <dje@google.com>
10006 * configure.ac (with_python): Fix absolute path handling for win32.
10007 * configure: Regenerate.
10009 2012-01-26 Doug Evans <dje@google.com>
10011 * symtab.c: Whitespace cleanup, no code changes.
10013 * symtab.c (lookup_symbol_in_language): Improve comment.
10014 (lookup_symbol_aux): Fix comment.
10016 * psymtab.c (add_psymbol_to_list): Result is now "void".
10017 * psympriv.h (add_psymbol_to_list): Update.
10019 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10021 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10023 Do not open script filenames twice.
10024 * cli/cli-cmds.c (source_script_from_stream): Pass to
10025 source_python_script also STREAM.
10026 * python/py-auto-load.c (source_section_scripts): Pass to
10027 source_python_script_for_objfile also STREAM.
10028 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10030 * python/python-internal.h (source_python_script_for_objfile): New
10031 parameter file, rename parameter file to filename.
10032 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10033 instead if !_WIN32. Update the function comment.
10034 (source_python_script, source_python_script_for_objfile)
10035 (source_python_script): New parameter file, rename parameter file to
10036 filename. Pass FILENAME to python_run_simple_file.
10037 * python/python.h (source_python_script): New parameter file, rename
10038 parameter file to filename.
10040 2012-01-26 Pedro Alves <palves@redhat.com>
10042 * corelow.c (core_has_fake_pid): Delete.
10043 (core_close): Delete references to `core_has_fake_pid'.
10044 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10045 (core_open): Delete references to `core_has_fake_pid'.
10046 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10047 the removed global.
10049 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10051 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10052 Remove language parameter from name_matcher. Adjust the comment.
10053 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10054 Remove language parameter.
10055 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10056 * linespec.c (iterate_name_matcher): Likewise.
10057 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10058 name_matcher. Adjust call accordingly.
10059 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10060 (maintenance_check_symtabs): Adjust type of parameter "fun".
10061 * psymtab.h (maintenance_check_symtabs): Likewise.
10063 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10065 * language.h (symbol_name_match_p_ftype): New typedef.
10066 (struct language_defn): Replace field la_symbol_name_compare
10067 by la_get_symbol_name_match_p.
10068 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10069 (ada_language_defn): Use it.
10070 * linespec.c (struct symbol_matcher_data): New type.
10071 (iterate_name_matcher): Rewrite.
10072 (iterate_over_all_matching_symtabs): Pass a pointer to
10073 a symbol_matcher_data struct to expand_symtabs_matching
10074 instead of just the lookup name.
10075 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10076 opencl-lang.c, p-lang.c, language.c: Delete field
10077 la_symbol_name_compare, and replace by NULL for new field
10078 la_get_symbol_name_match_p.
10079 * symfile.h (struct quick_symbol_functions): Update comment.
10081 2012-01-25 Tom Tromey <tromey@redhat.com>
10083 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10086 2012-01-24 Tom Tromey <tromey@redhat.com>
10089 * solib.c (update_solib_list): Update the program space's
10090 added_solibs and deleted_solibs fields.
10091 * progspace.h (struct program_space) <added_solibs,
10092 deleted_solibs>: New fields.
10093 (clear_program_space_solib_cache): Declare.
10094 * progspace.c (release_program_space): Call
10095 clear_program_space_solib_cache.
10096 (clear_program_space_solib_cache): New function.
10097 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10098 bpstat_stop_status. Use handle_solib_event.
10099 * breakpoint.c: Include gdb_regex.h.
10100 (print_solib_event): New function.
10101 (bpstat_print): Use print_solib_event.
10102 (bpstat_stop_status): Add special case for bp_shlib_event.
10103 (handle_solib_event): New function.
10104 (bpstat_what): Use handle_solib_event.
10105 (struct solib_catchpoint): New.
10106 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10107 (breakpoint_hit_catch_solib, check_status_catch_solib)
10108 (print_it_catch_solib, print_one_catch_solib)
10109 (print_mention_catch_solib, print_recreate_catch_solib): New
10111 (catch_solib_breakpoint_ops): New global.
10112 (catch_load_or_unload, catch_load_command_1)
10113 (catch_unload_command_1): New functions.
10114 (internal_bkpt_check_status): Add special case for
10116 (internal_bkpt_print_it): Use print_solib_event.
10117 (initialize_breakpoint_ops): Initialize
10118 catch_solib_breakpoint_ops.
10119 (_initialize_breakpoint): Register "catch load" and "catch
10121 * breakpoint.h (handle_solib_event): Declare.
10122 * NEWS: Add entry for "catch load" and "catch unload".
10124 2012-01-24 Tom Tromey <tromey@redhat.com>
10126 * ada-lang.c: Include gdb_vecs.h.
10127 * charset.c: Include gdb_vecs.h.
10128 * tracepoint.h: Include gdb_vecs.h.
10129 * gdb_vecs.h: New file.
10131 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10133 * breakpoint.c (breakpoint_hit_catch_fork)
10134 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10135 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10136 * infrun.c (inferior_has_forked, inferior_has_vforked)
10137 (inferior_has_execd, inferior_has_called_syscall): Delete.
10138 (handle_syscall_event): Get syscall_number from the execution
10139 control state's wait status.
10140 (wait_for_inferior): Don't clear syscall_number.
10142 2012-01-24 Pedro Alves <palves@redhat.com>
10144 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10145 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10146 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10147 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10149 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10150 false for events other than TARGET_SIGNAL_TRAP.
10151 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10152 Add `ws' parameter.
10153 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10154 events other than TARGET_SIGNAL_TRAP.
10155 (tracepoint_breakpoint_hit): Add `ws' parameter.
10156 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10158 (bpstat_stop_status): Same.
10159 (pc_at_non_inline_function): Same.
10160 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10161 to pass the current event's waitstatus to bpstat_stop_status
10162 and pc_at_non_inline_function.
10164 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10167 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10168 Update the function comment for it.
10169 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10170 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10173 2012-01-24 Pedro Alves <palves@redhat.com>
10175 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10176 outside `bs->stop' block.
10177 (bpstat_what): Rework bp_shlib_event handling.
10178 (internal_bkpt_check_status): If the breakpoint is a
10179 bp_shlib_event, then set bs->stop and bs->print if
10180 stop_on_solib_events is set.
10182 2012-01-24 Gary Benson <gbenson@redhat.com>
10184 Delete #if 0'd out code.
10185 * stack.c (print_frame_label_vars): Remove.
10186 (catch_info): Likewise.
10187 (_initialize_stack): Remove "info catch" command.
10188 * NEWS: Mention the above.
10190 2012-01-24 Pedro Alves <palves@redhat.com>
10192 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10194 (remote_notice_new_inferior): If the remote end doesn't support
10195 the multiprocess extensions, then the PID is fake.
10196 (add_current_inferior_and_thread): New.
10197 (remote_start_remote): Use it.
10198 (extended_remote_attach_1): Adjust.
10199 (extended_remote_create_inferior_1): Use
10200 add_current_inferior_and_thread.
10202 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10204 Fix watchpoints to be specific for each inferior.
10205 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10206 current_program_space.
10207 * i386-nat.c (i386_inferior_data_cleanup): New.
10208 (i386_inferior_data_get): Replace variable inf_data_local by an
10209 inferior_data call.
10210 (i386_use_watchpoints): Initialize i386_inferior_data.
10211 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10212 specific iterate_over_lwps.
10214 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10216 Fix watchpoints across inferior fork.
10217 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10218 comment for linux_nat_iterate_watchpoint_lwps.
10219 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10220 linux_nat_iterate_watchpoint_lwps.
10221 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10222 * i386-linux-nat.c (update_debug_registers_callback): Update the
10223 comment for linux_nat_iterate_watchpoint_lwps.
10224 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10225 linux_nat_iterate_watchpoint_lwps.
10226 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10227 * i386-nat.c: Include inferior.h.
10228 (dr_mirror): Remove.
10229 (i386_inferior_data, struct i386_inferior_data)
10230 (i386_inferior_data_get): New.
10231 (i386_debug_reg_state): Use i386_inferior_data_get.
10232 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10233 (i386_insert_watchpoint, i386_remove_watchpoint)
10234 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10235 (i386_remove_hw_breakpoint): New variable state, use
10236 i386_debug_reg_state instead of DR_MIRROR.
10237 * linux-nat.c (delete_lwp): New declaration.
10238 (num_lwps): Move here from downwards.
10239 (delete_lwp_cleanup): New.
10240 (linux_child_follow_fork): Create new child_lp, call
10241 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10243 (num_lwps): Move upwards.
10244 (linux_nat_iterate_watchpoint_lwps): New.
10245 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10246 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10248 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10252 2012-01-23 Pedro Alves <palves@redhat.com>
10254 * top.c (caution): Rename to ...
10255 (confirm): ... this.
10256 (show_caution): Rename to ...
10257 (show_confirm): ... this.
10258 (quit_cover): Adjust.
10259 (init_main): Adjust.
10260 * top.h (caution): Rename to ...
10261 (confirm): ... this.
10262 * utils.c (internal_vproblem, defaulted_query): Adjust.
10264 2012-01-23 Pedro Alves <palves@redhat.com>
10266 * top.c (caution): Update comment.
10267 (execute_command): Don't consider the current value of `caution'.
10269 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10271 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10273 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10275 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10276 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10277 * target.c (target_fileio_pwrite): Remove buffer address from
10279 (target_fileio_pread): Likewise.
10281 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10283 * NEWS: Document remote "info proc" and "generate-core-file".
10285 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10287 * gdbarch.sh (find_memory_regions): New callback.
10288 * gdbarch.c, gdbarch.h: Regenerate.
10290 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10291 callback before falling back to target method.
10293 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10294 (linux_target_install_ops): No longer install it.
10296 * linux-tdep.c (linux_find_memory_regions): New function.
10297 (linux_init_abi): Install it.
10299 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10301 * gdbarch.sh (make_corefile_notes): New architecture callback.
10302 * gdbarch.c: Regenerate.
10303 * gdbarch.h: Likewise.
10305 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10306 before target_make_corefile_notes. If NULL is returned, the
10307 target does not support core file generation.
10309 * linux-nat.c: Include "linux-tdep.h".
10310 (find_signalled_thread, find_stop_signal): Remove.
10311 (linux_nat_do_thread_registers): Likewise.
10312 (struct linux_nat_corefile_thread_data): Likewise.
10313 (linux_nat_corefile_thread_callback): Likewise.
10314 (iterate_over_spus): Likewise.
10315 (struct linux_spu_corefile_data): Likewise.
10316 (linux_spu_corefile_callback): Likewise.
10317 (linux_spu_make_corefile_notes): Likewise.
10318 (linux_nat_collect_thread_registers): New function.
10319 (linux_nat_make_corefile_notes): Replace contents by call to
10320 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10321 as native-only callback.
10323 * linux-tdep.h: Include "bfd.h".
10324 (struct regcache): Add forward declaration.
10325 (linux_collect_thread_registers_ftype): New typedef.
10326 (linux_make_corefile_notes): Add prototype.
10327 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10328 "regset.h", and "elf-bfd.h".
10329 (find_signalled_thread, find_stop_signal): New functions.
10330 (linux_spu_make_corefile_notes): Likewise.
10331 (linux_collect_thread_registers): Likewise.
10332 (struct linux_corefile_thread_data): New data structure.
10333 (linux_corefile_thread_callback): New funcion.
10334 (linux_make_corefile_notes): Likewise.
10335 (linux_make_corefile_notes_1): Likewise.
10336 (linux_init_abi): Install it.
10338 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10340 * gdbarch.sh (info_proc): New callback.
10341 * gdbarch.c, gdbarch.h: Regenerate.
10343 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10344 before falling back to the target info_proc callback.
10346 * linux-nat.c: Do not include "cli/cli-utils.h".
10347 (linux_nat_info_proc): Remove.
10348 (linux_target_install_ops): No longer install it.
10350 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10351 (read_mapping): New function.
10352 (linux_info_proc): Likewise.
10353 (linux_init_abi): Install it.
10355 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10357 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10358 * infcmd.c: (info_proc_cmd_1): New function.
10359 (info_proc_cmd): New function, moved here from equivalent routine
10360 orignally in linux-nat.c.
10361 (info_proc_cmd_mappings): Likewise.
10362 (info_proc_cmd_stat): Likewise.
10363 (info_proc_cmd_status): Likewise.
10364 (info_proc_cmd_cwd): Likewise.
10365 (info_proc_cmd_cmdline): Likewise.
10366 (info_proc_cmd_exe): Likewise.
10367 (info_proc_cmd_all): Likewise.
10368 (_initialize_infcmd): Install "info proc" command and subcommands.
10370 * target.h (struct target_ops): Add to_info_proc.
10371 (target_info_proc): Add prototype.
10372 * target.c (target_info_proc): New function.
10374 * procfs.c (procfs_info_proc): Add prototype.
10375 (info_proc_cmd): Rename into ...
10376 (procfs_info_proc): ... this. Update argument types as appropriate
10377 for a to_info_proc implementation. Handle "what" argument.
10378 (procfs_target): Install procfs_info_proc.
10379 (_initialize_procfs): No longer install "info proc" command.
10381 * linux-nat.c: (enum info_proc_what): Remove.
10382 (linux_nat_info_proc_cmd_1): Rename into ...
10383 (linux_nat_info_proc): ... this. Update argument types as appropriate
10384 for a to_info_proc implementation.
10385 (linux_nat_info_proc_cmd): Remove.
10386 (linux_nat_info_proc_cmd_mappings): Likewise.
10387 (linux_nat_info_proc_cmd_stat): Likewise.
10388 (linux_nat_info_proc_cmd_status): Likewise.
10389 (linux_nat_info_proc_cmd_cwd): Likewise.
10390 (linux_nat_info_proc_cmd_cmdline): Likewise.
10391 (linux_nat_info_proc_cmd_exe): Likewise.
10392 (linux_nat_info_proc_cmd_all): Likewise.
10393 (linux_target_install_ops): Install linux_nat_info_proc.
10394 (_initialize_linux_nat): No longer install "info proc" command
10397 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10399 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10400 * config.in, configure: Regenerate.
10402 * target.h (struct target_ops): Add to_fileio_readlink.
10403 (target_fileio_readlink): Add prototype.
10404 * target.c (target_fileio_readlink): New function.
10406 * inf-child.c: Conditionally include <sys/param.h>.
10407 (inf_child_fileio_readlink): New function.
10408 (inf_child_target): Install it.
10410 * remote.c (PACKET_vFile_readlink): New enum value.
10411 (remote_hostio_readlink): New function.
10412 (init_remote_ops): Install it.
10413 (_initialize_remote): Handle vFile:readlink packet type.
10415 2012-01-20 Pedro Alves <palves@redhat.com>
10416 Ulrich Weigand <ulrich.weigand@linaro.org>
10418 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10419 * config.in, configure: Regenerate.
10421 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10422 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10423 (target_fileio_open): Add prototype.
10424 (target_fileio_pwrite): Likewise.
10425 (target_fileio_pread): Likewise.
10426 (target_fileio_close): Likewise.
10427 (target_fileio_unlink): Likewise.
10428 (target_fileio_read_alloc): Likewise.
10429 (target_fileio_read_stralloc): Likewise.
10431 * target.c: Include "gdb/fileio.h".
10432 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10433 (default_fileio_target): New function.
10434 (target_fileio_open): Likewise.
10435 (target_fileio_pwrite): Likewise.
10436 (target_fileio_pread): Likewise.
10437 (target_fileio_close): Likewise.
10438 (target_fileio_unlink): Likewise.
10439 (target_fileio_close_cleanup): Likewise.
10440 (target_fileio_read_alloc_1): Likewise.
10441 (target_fileio_read_alloc): Likewise.
10442 (target_fileio_read_stralloc): Likewise.
10444 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10445 <fcntl.h>, and <unistd.h>.
10446 (inf_child_fileio_open_flags_to_host): New function.
10447 (inf_child_errno_to_fileio_error): Likewise.
10448 (inf_child_fileio_open): Likewise.
10449 (inf_child_fileio_pwrite): Likewise.
10450 (inf_child_fileio_pread): Likewise.
10451 (inf_child_fileio_close): Likewise.
10452 (inf_child_fileio_unlink): Likewise.
10453 (inf_child_target): Install to_fileio routines.
10455 * remote.c (init_remote_ops): Install to_fileio routines.
10457 2012-01-20 Pedro Alves <palves@redhat.com>
10458 Ulrich Weigand <ulrich.weigand@linaro.org>
10460 * remote.c (remote_multi_process_p): Only check for multi-process
10461 protocol feature, do not check for extended protocol.
10462 (remote_supports_multi_process): Check for extended protocol here.
10463 (set_general_process): Likewise.
10464 (extended_remote_kill): Likewise.
10465 (remote_pid_to_str): Likewise.
10466 (remote_query_supported): Always query multiprocess mode.
10468 2012-01-20 Pedro Alves <palves@redhat.com>
10469 Ulrich Weigand <ulrich.weigand@linaro.org>
10471 * inferior.h (struct inferior): Add fake_pid_p.
10472 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10473 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10474 magic_null_ptid since the remote side doesn't provide a real PID.
10476 2012-01-19 Tom Tromey <tromey@redhat.com>
10478 * NEWS: Combine the two Python sections.
10480 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10482 * target.h (target_close): Update comment on the target's unpush state.
10484 2012-01-19 Pedro Alves <palves@redhat.com>
10486 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10487 linux_nat_async directly instead of going through the target
10489 * target.c (unpush_target): Close target after unpushing it, not
10492 2012-01-19 Gary Benson <gbenson@redhat.com>
10494 * mdebugread.c (sort_blocks): Replace integer constants with ones
10495 derived from FIRST_LOCAL_BLOCK.
10497 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10498 Jan Kratochvil <jan.kratochvil@redhat.com>
10501 * symfile.c (find_separate_debug_file): New function.
10502 (terminate_after_last_dir_separator): Likewise.
10503 (find_separate_debug_file_by_debuglink): Also try realpath.
10504 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10505 * configure: Regenerate.
10506 * config.in: Regenerate.
10508 2012-01-18 Doug Evans <dje@google.com>
10510 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10511 (main.o): Remove rule.
10512 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10513 (--with-sysroot): Rewrite.
10514 * configure: Regenerate.
10515 * config.in: Regenerate.
10517 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10519 * parse.c (initialize_expout): New function.
10520 (reallocate_expout): Likewise.
10521 (parse_exp_in_context): Use `initialize_expout' and
10522 `reallocate_expout' when appropriate.
10524 2012-01-18 Pedro Alves <palves@redhat.com>
10526 * record.c (struct record_breakpoint, record_breakpoint_p)
10527 (record_breakpoints): New.
10528 (record_insert_breakpoint, record_remove_breakpoint): Manage
10529 record breakpoints list. Only remove breakpoints from the
10530 inferior if they had been inserted there in the first place.
10532 2012-01-17 Doug Evans <dje@google.com>
10534 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10535 if we know we don't have a file name to look for.
10537 2012-01-17 Pedro Alves <palves@redhat.com>
10539 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10540 the frame's stop reason is UNWIND_UNAVAILABLE.
10542 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10544 Fix compilation error.
10545 * m2-exp.y (yyerror): Use ANSI C prototype.
10547 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10549 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10550 (growbuf_by_size): Likewise.
10551 (yyerror): Likewise.
10552 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10553 (modblock): Remove variable (was #if 0'ed).
10554 (parse_number): Convert prototype from K&R to ANSI C.
10555 (yyerror): Likewise.
10556 * objc-exp.y (parse_number): Likewise.
10557 (yyerror): Likewise.
10558 (yylex): Remove #if 0'ed code.
10559 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10560 (yyerror): Likewise.
10562 2012-01-16 Tom Tromey <tromey@redhat.com>
10565 * symtab.h (compare_filenames_for_search): Declare.
10566 * symtab.c (compare_filenames_for_search): New function.
10567 (iterate_over_some_symtabs): Use it.
10568 * symfile.h (struct quick_symbol_functions)
10569 <map_symtabs_matching_filename>: Change spec.
10570 * psymtab.c (partial_map_symtabs_matching_filename): Use
10571 compare_filenames_for_search. Update for new spec.
10572 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10573 compare_filenames_for_search. Update for new spec.
10574 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10576 2012-01-16 Tom Tromey <tromey@redhat.com>
10579 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10580 (struct main_type) <flag_flag_enum>: New field.
10581 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10582 * NEWS: Add entries.
10583 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10585 * python/lib/gdb/printing.py (_EnumInstance): New class.
10586 (FlagEnumerationPrinter): Likewise.
10588 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10590 * breakpoint.c (create_sals_from_address_default): New function.
10591 (create_breakpoints_sal_default): Likewise.
10592 (decode_linespec_default): Likewise.
10593 (is_marker_spec): Removed.
10594 (strace_marker_p): New function.
10595 (init_breakpoint_sal): Using `strace_marker_p' instead of
10597 (create_breakpoint): Call method `create_sals_from_address' from
10598 breakpoint_ops, replacing code that created SALs conditionally
10599 on the type of the breakpoint. Call method `create_breakpoints_sal',
10600 replacing code that created breakpoints conditionally on the type
10602 (base_breakpoint_create_sals_from_address): New function.
10603 (base_breakpoint_create_breakpoints_sal): Likewise.
10604 (base_breakpoint_decode_linespec): Likewise.
10605 (base_breakpoint_ops): Add methods
10606 `base_breakpoint_create_sals_from_address',
10607 `base_breakpoint_create_breakpoints_sal' and
10608 `base_breakpoint_decode_linespec'.
10609 (bkpt_create_sals_from_address): New function.
10610 (bkpt_create_breakpoints_sal): Likewise.
10611 (bkpt_decode_linespec): Likewise.
10612 (tracepoint_create_sals_from_address): Likewise.
10613 (tracepoint_create_breakpoints_sal): Likewise.
10614 (tracepoint_decode_linespec): Likewise.
10615 (strace_marker_create_sals_from_address): Likewise.
10616 (strace_marker_create_breakpoints_sal): Likewise.
10617 (strace_marker_decode_linespec): Likewise.
10618 (strace_marker_breakpoint_ops): New variable.
10619 (addr_string_to_sals): Remove `marker_spec'. Call method
10620 `decode_linespec' from breakpoint_ops, replacing code that decoded
10621 an address string into a SAL. Use `strace_marker_p' instead of
10623 (strace_command): Decide whether we are dealing with a static
10624 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10625 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10626 * breakpoint.h (linespec_result, linespec_sals): New forward
10628 (breakpoint_ops) <create_sals_from_address>,
10629 <create_breakpoints_sal>, <decode_linespec>: New methods.
10631 2012-01-14 Doug Evans <dje@google.com>
10633 * NEWS: Update text for "maint set python print-stack".
10634 It is deprecated in gdb 7.4 and deleted in 7.5.
10636 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10638 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10639 including curses.h.
10641 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10643 * configure: Regenerate.
10644 * config.in: Regenerate.
10646 2012-01-12 Keith Seitz <keiths@redhat.com>
10649 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10650 (ANONYMOUS_UNION_NAME): Define.
10651 (is_path_expr_parent): New function.
10652 (get_path_expr_parent): New function.
10653 (is_anonymous_child): New function.
10654 (create_child_with_value): If the child is anonymous and without
10655 a name, assign an object name to it.
10656 (c_describe_child): Use get_path_expr_parent to determine
10657 the parent expression.
10658 If there field represents an anonymous struct or union and
10659 has no name, set an appropriate display name and expression.
10660 (cplus_describe_child): Likewise.
10662 2012-01-12 Pedro Alves <palves@redhat.com>
10664 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10665 available when %ebp is found to be zero (outermost).
10667 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10669 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10670 an internal gdb_static_assert.
10671 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10673 2012-01-11 Tom Tromey <tromey@redhat.com>
10676 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10677 catch" and "catch throw".
10679 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10681 * blockframe.c (block_innermost_frame): Start search from selected
10682 frame, if present, or otherwise the current frame.
10684 * c-exp.y (variable): Update innermost_block for
10685 'block COLONCOLON NAME' clause.
10686 * m2-exp.y (variable): Ditto.
10687 * objc-exp.y (variable): Ditto.
10689 2012-01-10 Tom Tromey <tromey@redhat.com>
10692 * python/python.c (finish_python_initialization): Set sys.argv.
10694 2012-01-10 Doug Evans <dje@google.com>
10696 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10697 "want_line_info". All callers updated.
10698 (dwarf_decode_lines_1): New function.
10699 (handle_DW_AT_stmt_list): Add function comment.
10700 New arg "want_line_info". All callers updated.
10701 (read_file_scope,read_type_unit_scope): Move comment from
10702 handle_DW_AT_stmt_list to here.
10704 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10706 Fix regression after libiberty/ update for GCC PR 6057 and others.
10707 * c-exp.y (operator) <OPERATOR DELETE>
10708 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10709 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10710 (make_builtin_type, make_name): New variable i, add gdb_assert.
10711 (operator) <OPERATOR NEW>: Update ARGS to 3.
10712 (operator) <OPERATOR DELETE>: Add trailing space.
10713 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10714 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10715 * cp-support.c (cp_canonicalize_string): Check NULL from
10716 cp_comp_to_string, call warning and return.
10718 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10720 Fix duplicate .o files after omitting libbfd.a.
10721 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10722 (SFILES): Add corelow.c.
10723 (COMMON_OBS): Add corelow.o.
10724 (ALLDEPFILES): Remove corelow.c.
10725 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10726 * config/alpha/alpha-osf3.mh: Likewise.
10727 * config/alpha/fbsd.mh: Likewise.
10728 * config/arm/nbsdaout.mh: Likewise.
10729 * config/arm/nbsdelf.mh: Likewise.
10730 * config/i386/i386gnu.mh: Likewise.
10731 * config/ia64/hpux.mh: Likewise.
10732 * config/ia64/linux.mh: Likewise.
10733 * config/m32r/linux.mh: Likewise.
10734 * config/m68k/linux.mh: Likewise.
10735 * config/mips/irix5.mh: Likewise.
10736 * config/mips/irix6.mh: Likewise.
10737 * config/pa/hpux.mh: Likewise.
10738 * config/pa/linux.mh: Likewise.
10739 * config/powerpc/aix.mh: Likewise.
10740 * config/sparc/linux.mh: Likewise.
10741 * config/sparc/linux64.mh: Likewise.
10742 * config/sparc/sol2.mh: Likewise.
10743 * config/vax/vax.mh: Likewise.
10744 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10745 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10746 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10747 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10748 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10749 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10750 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10751 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10752 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10753 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10754 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10755 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10756 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10757 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10758 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10759 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10760 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10761 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10762 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10763 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10764 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10765 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10766 corelow.o from gdb_target_obs.
10767 * corefile.c (core_target): Update the comment on NULL value.
10768 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10769 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10770 MATCHES. Drop YUMMY set on NULL.
10771 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10772 reclaim CORE_DATA if it is already NULL.
10774 2012-01-09 Doug Evans <dje@google.com>
10776 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10777 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10779 2012-01-09 Keith Seitz <keiths@redhat.com>
10781 * breakpoint.c (wrapper.h): Don't include.
10783 2012-01-09 Keith Seitz <keiths@redhat.com>
10785 * Makefile.in (SFILES): Remove wrapper.c.
10786 (HFILES_NO_SRCDIR): Remove wrapper.h.
10787 (COMMON_OBS): Remove wrapper.o.
10788 * cli/cli-interp.c: Don't inlude wrapper.h.
10789 * corelow.c: Likewise.
10790 (core_open): Replace gdb_target_find_new_threads with
10791 TRY_CATCH around target_find_new_threads.
10792 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10793 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10794 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10795 evaluate_expression.
10796 (varobj_set_value): Likewise for evaluate_expression and
10798 (install_new_variable): Likewise for value_fetch_lazy.
10799 (adjust_value_for_child_access): Likewise for value_ind.
10800 (c_describe_child): Likewise for value_subscript and
10802 (c_value_of_root): Likewise for evaluate_expression.
10803 * wrapper.c: Remove.
10804 * wrapper.h: Remove.
10806 2012-01-09 Doug Evans <dje@google.com>
10808 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10809 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10810 "abfd" args with "section". All callers updated.
10811 Error checking code moved ...
10812 (error_check_comp_unit_head): ... here. New function.
10813 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10814 Delete arg "abfd". New arg "type_offset". All callers updated.
10815 (create_debug_types_hash_table): Simplify by using
10816 read_and_check_type_unit_head.
10818 * parser-defs.h (namecopy): Delete.
10819 * parse.c (namecopy, namecopy_size): Move into copy_name.
10821 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10823 Partially fix duplicate .o files after omitting libbfd.a.
10824 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10825 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10826 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10827 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10828 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10829 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10830 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10832 2012-01-09 Pedro Alves <palves@redhat.com>
10834 * MAINTAINERS: Update my email address.
10836 2012-01-08 Doug Evans <dje@google.com>
10838 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10839 n_type_units. Rename type_comp_units to all_type_units.
10841 (add_signatured_type_cu_to_table): Renamed from
10842 add_signatured_type_cu_to_list. All callers updated.
10844 * gdbtypes.h (struct cplus_struct_type): Delete member
10845 nfn_fields_total. All uses removed.
10847 2012-01-06 Doug Evans <dje@google.com>
10849 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10851 (dwarf2_find_comp_unit): Delete.
10852 (process_psymtab_comp_unit): Make result "void".
10853 Delete args buffer, info_ptr, buffer_size, and replace with
10854 "section". All callers updated.
10855 (dwarf2_build_psymtabs_hard): Simplify.
10857 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10858 Thiago Jung Bauermann <bauerman@br.ibm.com>
10860 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10861 before `struct gdb_exception'.
10862 * breakpoint.c (update_global_location_list_nothrow)
10863 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10864 * cp-abi.c (value_rtti_type): Likewise.
10865 * cp-support.c (cp_validate_operator): Likewise.
10866 * infrun.c (insert_exception_resume_breakpoint)
10867 (check_exception_resume, keep_going): Likewise.
10868 * mi-interp.c (mi_breakpoint_created)
10869 (mi_breakpoint_modified): Likewise.
10870 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10871 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10872 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10874 2012-01-05 Doug Evans <dje@google.com>
10876 * dwarf2read.c (statement_prologue): Delete, unused.
10878 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10879 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10881 * dwarf2read.c (comp_unit_header): Delete, unused.
10883 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10885 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10886 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10888 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10890 * infrun.c (normal_stop): Don't skip calling the normal_stop
10891 observers if the thread was doing a multi-step, but stopped for
10892 some reason other than stepping.
10894 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10896 * cli/cli-decode.h: Add comments.
10897 (CMD_LIST_AMBIGUOUS): Moved to command.h
10898 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10899 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10900 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10901 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10902 (add_com, add_com_alias, add_info, add_info_alias)
10903 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10905 * command.h: Add and adjust comments.
10906 (CMD_LIST_AMBIGUOUS): Moved here.
10907 (help_cmd, help_cmd_list): Delete declarations.
10909 2012-01-04 Doug Evans <dje@google.com>
10911 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10912 All callers updated.
10913 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10914 Replace all arguments with "per_cu". All callers updated.
10916 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10918 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10919 New arg "per_cu". All callers updated.
10921 Delete #if 0'd out code.
10922 * language.c (binop_result_type): Delete.
10923 (simple_type, ordered_type, same_type, integral_type): Delete.
10924 (numeric_type, character_type, string_type, boolean_type): Delete.
10925 (float_type, structured_type): Delete.
10926 * language.h: Update.
10928 2012-01-04 Tom Tromey <tromey@redhat.com>
10930 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10932 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10934 * corefile.c (close_exec_file): Delete.
10935 (reopen_exec_file): Remove commented out code that seems related
10936 to close_exec_file, which is being deleted here.
10937 * inferior.h (close_exec_file): Delete.
10938 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10940 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10942 * ada-lang.c: #include "cli/cli-utils.h".
10943 (get_selections): Use skip_spaces.
10944 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10945 (catch_ada_exception_command_split): Use skip_spaces.
10946 (ada_decode_assert_location): Likewise.
10948 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10950 * linespec.c (decode_line_internal): Check for C++ or Java
10951 compound constructs only if the current language is C, C++
10954 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10957 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10958 Joel Brobecker <brobecker@adacore.com>
10959 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10960 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10962 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10963 fall through into AT_ENTRY_POINT.
10964 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10965 DUMMY_ADDR with it.
10966 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10967 PPC_INSN_SIZE skip to 3 times.
10969 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10971 * linespec.c (add_minsym): Preserve function descriptors.
10973 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10975 * breakpoint.c (all_locations_are_pending): Consider locations
10976 in program spaces executing during startup pending as well.
10978 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10980 Copyright year update in most files of the GDB Project.
10982 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10984 * copyright.sh: Delete.
10985 * copyright.py: Rewrite.
10987 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10989 * gnulib/extra/update-copyright: New file, imported from gnulib.
10991 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10993 * README (Copyright and License Notices): New section.
10995 2012-01-03 Tom Tromey <tromey@redhat.com>
10998 * python/py-value.c (valpy_dereference, valpy_get_address
10999 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11000 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11001 (valpy_absolute, valpy_richcompare): Free intermediate values.
11003 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11005 * ada-lang.c: Reformat the copyright notice.
11007 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11009 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11010 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11011 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11012 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11013 Revert this part of:
11014 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11015 Build gdb directly from *.o files not using libgdb.a.
11016 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11018 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11020 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11021 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11022 Reformat the copyright header.
11024 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11026 Revert this part of:
11027 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11028 Remove the gdbtui binary.
11029 * gdb.c (main): Remove args.interpreter_p initialization.
11030 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11031 * main.h (struct captured_main_args): Remove interpreter_p.
11033 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11035 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11037 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11039 * top.c (print_gdb_version): Update copyright year.
11041 2012-01-02 Yao Qi <yao@codesourcery.com>
11043 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11045 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11046 Joel Brobecker <brobecker@adacore.com>
11048 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11049 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11051 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11052 fall through into AT_ENTRY_POINT.
11053 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11054 DUMMY_ADDR with it.
11055 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11056 PPC_INSN_SIZE skip to 3 times.
11058 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11060 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11062 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11064 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11066 Build gdb directly from *.o files not using libgdb.a.
11067 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11068 (COMMON_OBS): Remove solib-target.o.
11069 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11070 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11071 (LIBGDB_OBS, libgdb.a): Move it above.
11072 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11073 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11074 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11075 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11076 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11077 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11078 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11079 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11080 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11081 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11082 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11083 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11084 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11085 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11086 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11087 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11088 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11089 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11090 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11091 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11092 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11093 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11094 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11095 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11096 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11097 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11098 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11100 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11102 Remove the gdbtui binary.
11103 * .gitignore (/gdbtui): Remove.
11104 * Makefile.in (TUI): Remove.
11105 (SUBDIR_TUI_OBS): Remove tui-main.o.
11106 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11107 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11108 (tui-main.o): Remove.
11109 (all_object_files): Remove tui-main.o.
11110 * NEWS: New note for the gdbtui removal.
11111 * configure: Rebuilt.
11112 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11113 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11114 CONFIG_UNINSTALL respectively.
11115 * gdb.c (main): Remove args.interpreter_p initialization.
11116 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11117 * main.h (struct captured_main_args): Remove interpreter_p.
11118 * tui/tui-main.c: Remove.
11120 2012-01-01 Doug Evans <dje@google.com>
11122 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11123 (dwarf2_physname, read_import_statement): Ditto.
11124 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11125 (process_structure_scope read_subroutine_type): Ditto.
11126 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11127 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11128 (dwarf2_fetch_die_location_block): Ditto.
11129 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11131 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11132 All callers updated.
11133 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11134 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11135 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11137 * dwarf2read.c (load_cu): Move assert to more useful location.
11139 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11140 All callers updated.
11142 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11143 (dwarf2_elf_names): Minor reformat.
11144 (dwarf2_per_cu_data): Tweak comment.
11145 (dwarf2_read_section): Fix comment.
11146 (create_all_comp_units): Fix comment.
11147 (load_full_comp_unit): Fix comment.
11148 (process_full_comp_unit): Fix comment.
11149 (read_signatured_type): Fix comment.
11151 For older changes see ChangeLog-2011.
11157 version-control: never