1 2012-10-24 Joel Brobecker <brobecker@adacore.com>
3 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
4 New local variable args_len.
5 Quote the name of the executable when computing the command line.
7 2012-10-23 Mark Kettenis <kettenis@gnu.org>
12 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
14 * amd64-tdep.c (amd64_classify): Classify complex types.
15 (amd64_return_value): Handle the COMPLEX_X87 class.
17 2012-10-23 Joel Brobecker <brobecker@adacore.com>
19 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
20 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
22 2012-10-23 Joel Brobecker <brobecker@adacore.com>
24 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
26 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
27 to amd64_windows_auto_wide_charset.
29 2012-10-23 Yao Qi <yao@codesourcery.com>
31 * event-top.c (mark_async_signal_handler_wrapper): Remove.
32 * event-top.h: Remove its declaration.
33 (async_request_quit): Call mark_async_signal_handler instead of
34 mark_async_signal_handler_wrapper.
35 (async_do_nothing, async_disconnect): Likewise.
36 (async_stop_sig): Likewise.
37 * remote.c (handle_remote_sigint): Likewise.
38 (handle_remote_sigint_twice): Likewise.
40 2012-10-23 Yao Qi <yao@codesourcery.com>
42 * event-top.c (sigint_token, sighup_token): Replace 'void *'
43 with 'static struct async_signal_handler *'.
44 (sighup_token, sigquit_token, sigstp_token): Likewise.
46 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
48 * gdbarch.sh (function_list): Use 'pstring' when printing
49 a variable which could return NULL.
50 * gdbarch.c: Regenerate.
52 2012-10-10 Joel Brobecker <brobecker@adacore.com>
53 Tom Tromey <tromey@redhat.com>
55 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
56 inneffective if condition by gdb assertion. Add function
59 2012-10-19 Joel Brobecker <brobecker@adacore.com>
61 * parser-defs.h (struct exp_descriptor): Document constraint
62 on return value for "op_name" callbacks.
64 2012-10-18 Tom Tromey <tromey@redhat.com>
66 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
67 * symtab.c (iterate_over_some_symtabs): Constify.
68 * source.h (symtab_to_fullname): Return 'const char *'.
69 * source.c (symtab_to_fullname): Return 'const char *'.
70 * python/py-symtab.c (stpy_fullname): Constify.
71 * cli/cli-cmds.c (edit_command): Constify.
72 * breakpoint.c (print_breakpoint_location)
73 (update_static_tracepoint): Constify.
75 2012-10-18 Tom Tromey <tromey@redhat.com>
77 * breakpoint.c (compare_breakpoints): Fix comparison.
79 2012-10-18 Tom Tromey <tromey@redhat.com>
81 * valprint.c (generic_emit_char, generic_printstr): Pass size of
82 gdb_wchar_t to convert_between_encodings.
84 2012-10-17 Yao Qi <yao@codesourcery.com>
86 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
87 more parameter 'inferior'.
88 * corefile.c (write_memory_with_notification): Caller update.
90 * mi/mi-cmd-var.c: Include "mi-main.h".
91 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
92 to 1 and restore it later.
93 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
94 and "data-write-memory-bytes.
95 * mi/mi-interp.c: Include objfiles.h.
96 (mi_interpreter_init): Call observer_attach_memory_changed.
97 (mi_memory_changed): New.
98 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
101 * NEWS: Mention new MI notification "memory-changed".
103 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
105 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
107 2012-10-15 Doug Evans <dje@google.com>
109 New option -nh: inhibit loading of ~/.gdbinit.
111 * main.c (captured_main): Recognize and process -nh.
112 (print_gdb_help): Mention -nh.
113 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
115 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
119 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
121 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
122 nor pc_regnum_from_eax.
123 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
124 nor pc_regnum_from_eax.
126 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
128 Fix entry values resolving in inlined frames.
129 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
130 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
133 2012-10-15 Joel Brobecker <brobecker@adacore.com>
135 * configure.ac: Build with -DMS_WIN64 if building with Python
136 enabled using GCC on amd64-windows.
137 * configure: Regenerate.
139 2012-10-15 Tom Tromey <tromey@redhat.com>
142 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
145 2012-10-15 Tom Tromey <tromey@redhat.com>
148 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
150 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
152 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
153 reset thread numbering back to 1.
155 2012-10-11 Doug Evans <dje@google.com>
157 PR breakpoints/14643.
158 * linespec.c (struct ls_parser): New member keyword_ok.
159 (linespec_lexer_lex_string): Add comment.
160 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
162 (parse_linespec): Set keyword_ok.
164 2012-10-10 Doug Evans <dje@google.com>
166 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
167 "0x" prefix on address in log message.
169 * dwarf2read.c (read_1_byte): Add const to buf parameter.
170 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
171 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
172 (lookup_dwo_file): Add const to dwo_name parameter.
173 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
175 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
177 Fix crash during stepping on ppc32.
178 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
181 2012-10-03 Doug Evans <dje@google.com>
184 * buildsym.c (buildsym_init): Reset using_directives to NULL.
186 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
188 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
189 output and use uint32_t not long to ensure 4 byte size.
191 2012-10-02 Joel Brobecker <brobecker@adacore.com>
193 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
196 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
198 * target.c (simple_search_memory): Include access length in
201 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
202 Edjunior Machado <emachado@linux.vnet.ibm.com>
205 * solib.c (solib_find): Prevent GDB from loading native libraries when
206 debugging a cross-target corefile.
208 2012-09-28 selven <pcthegreat@gmail.com>
210 Make definition match declaration.
212 * regcache.c (regcache_register_status): Change return type to
213 enum register_status.
215 2012-09-28 Yao Qi <yao@codesourcery.com>
217 * mi/mi-main.c (mi_cmd_data_write_memory): Call
218 write_memory_with_notification instead of write_memory.
219 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
220 instead of target_write_memory.
222 2012-09-28 Yao Qi <yao@codesourcery.com>
224 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
225 when the length of content is not an even number.
227 2012-09-27 Tom Tromey <tromey@redhat.com>
229 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
230 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
232 2012-09-27 Joel Brobecker <brobecker@adacore.com>
234 * sol-thread.c (sol_thread_fetch_registers)
235 (sol_thread_store_registers): Delete commented out code.
237 2012-09-27 Joel Brobecker <brobecker@adacore.com>
239 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
240 Move these functions to sparc-sol-thread.c.
241 * sparc-sol-thread.c: New file.
242 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
243 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
245 * configure: Regenerate.
247 2012-09-27 Joel Brobecker <brobecker@adacore.com>
249 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
250 Remove commented-out code.
252 2012-09-27 Joel Brobecker <brobecker@adacore.com>
254 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
255 Enable this code for sparc hosts only.
257 2012-09-27 Joel Brobecker <brobecker@adacore.com>
259 * procfs.h (procfs_find_LDT_entry): Add declaration.
260 * sol-thread.c (ps_lgetLDT): Delete local declaration of
261 function procfs_find_LDT_entry.
263 2012-09-27 Joel Brobecker <brobecker@adacore.com>
265 * procfs.c (proc_get_LDT_entry): Make static.
267 2012-09-27 Joel Brobecker <brobecker@adacore.com>
269 * procfs.c (proc_find_memory_regions): Fix declaration.
271 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
273 * amd64-tdep.c (amd64_return_value): Revert previous change
274 that used TYPE_LENGTH directly.
275 * bfin-tdep.c (bfin_extract_return_value): Likewise.
276 (bfin_store_return_value): Likewise.
277 * cris-tdep.c (cris_store_return_value): Likewise.
278 (cris_extract_return_value): Likewise.
279 * h8300-tdep.c (h8300_extract_return_value): Likewise.
280 * hppa-tdep.c (hppa64_return_value): Likewise.
281 * lm32-tdep.c (lm32_store_return_value): Likewise.
282 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
283 * spu-tdep.c (spu_value_from_register): Likewise.
284 * vax-tdep.c (vax_return_value): Likewise.
286 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
288 * gdbtypes.c (lookup_array_range_type): Expand parameters
289 LOW_BOUND and HIGH_BOUND to LONGEST.
290 (lookup_string_range_type): Likewise.
291 * gdbtypes.h (lookup_array_range_type): Likewise.
292 (lookup_string_range_type): Likewise.
293 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
294 Expand HIGHBOUND to ssize_t.
295 (value_string): Likewise.
296 * value.h (value_cstring): Expand parameter LEN to ssize_t.
297 (value_string): Likewise.
299 2012-09-27 Yao Qi <yao@codesourcery.com>
302 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
303 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
306 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
308 * procfs.c: Add gdb_bfd header.
309 * rs6000-nat.c: Likewise.
310 * solib-pa64.c: Likewise.
311 * spu-linux-nat.c: Likewise.
312 * windows-nat.c: Likewise.
314 2012-09-26 Tom Tromey <tromey@redhat.com>
316 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
318 2012-09-26 Tom Tromey <tromey@redhat.com>
320 * dwarf2read.c (mark_common_block_symbol_computed): New function.
321 (read_common_block): Handle child DIEs with
322 DW_AT_data_member_location.
323 (new_symbol_full): Add special case for common blocks.
325 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
326 Tom Tromey <tromey@redhat.com>
328 * dwarf2read.c (read_common_block): Rewrite.
329 (new_symbol_full): Handle DW_TAG_common_block.
330 * f-lang.c (head_common_list, find_common_for_function):
332 * f-lang.h (struct common_entry, struct saved_f77_common,
333 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
334 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
335 BLANK_COMMON_NAME_LOCAL): Remove.
336 (struct common_block): New.
337 * f-valprint.c (list_all_visible_commons): Remove.
338 (info_common_command_for_block): New function.
339 (info_common_command): Use it.
340 * stack.c (iterate_over_block_locals): Special case for
342 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
344 (struct general_symbol_info) <value.common_block>: New field.
345 (SYMBOL_VALUE_COMMON_BLOCK): New define.
347 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
348 Tom Tromey <tromey@redhat.com>
350 * f-lang.c (allocate_saved_bf_node,
351 allocate_saved_function_node, allocate_saved_f77_common_node,
352 allocate_common_entry_node, tail_common_list, current_common,
353 saved_bf_list, saved_bf_list_end, current_head_bf_list,
354 tmp_bf_ptr, add_common_block, add_common_entry,
355 find_first_common_named, patch_common_entries,
356 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
357 global_remote_debug, get_bf_for_fcn, saved_function_list,
358 saved_function_list_end, clear_function_list, struct saved_fcn,
359 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
360 SAVED_BF, SAVED_BF_PTR): Remove.
361 * f-lang.h (tail_common_list, current_common,
362 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
363 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
364 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
365 real_main_c_value): Remove.
366 * f-valprint.c (there_is_a_visible_common_named): Remove.
368 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
370 * breakpoint.c (update_global_location_list): Ignore previous
371 duplicate status of a breakpoint when starting a new scan for
372 duplicate breakpoints.
374 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
376 * arm-tdep.c (arm_skip_prologue): Extending producer check to
377 support LLVM compiler.
379 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
381 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
382 * bfin-tdep.c (bfin_extract_return_value): Likewise.
383 (bfin_store_return_value): Likewise.
384 * cris-tdep.c (cris_store_return_value): Likewise.
385 (cris_extract_return_value): Likewise.
386 * h8300-tdep.c (h8300_extract_return_value): Likewise.
387 * hppa-tdep.c (hppa64_return_value): Likewise.
388 * lm32-tdep.c (lm32_store_return_value): Likewise.
389 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
390 * spu-tdep.c (spu_value_from_register): Likewise.
391 * vax-tdep.c (vax_return_value): Likewise.
393 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
395 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
396 parameter LEN to ssize_t.
398 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
400 * ada-valprint.c (ada_val_print_1): Eliminate single-use
402 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
404 (alpha_store_return_value): Likewise.
405 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
406 (amd64_push_arguments): Likewise.
407 * ax-gdb.c (gen_trace_static_fields): Likewise.
408 (gen_traced_pop): Likewise.
409 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
410 * breakpoint.c (update_watchpoint): Likewise.
411 * findcmd.c (parse_find_args): Use local variable for type
413 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
414 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
415 (h8300_store_return_value): Likewise.
416 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
417 Use i386_darwin_arg_type_alignment directly.
418 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
419 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
420 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
421 (m68hc11_extract_return_value): Likewise.
422 * mep-tdep.c (mep_push_dummy_call): Likewise.
423 * printcmd.c (float_type_from_length): Likewise.
424 * s390-tdep.c (s390_value_from_register): Likewise.
425 * stack.c (read_frame_arg): Likewise.
426 * tracepoint.c (encode_actions_1): Likewise.
427 * valops.c (value_fetch_lazy): Use local variable for type
428 instead of length. Use TYPE_LENGTH directly.
429 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
431 2012-09-25 Joel Brobecker <brobecker@adacore.com>
433 * symtab.c (skip_prologue_sal): Fix typo in comment.
435 2012-09-25 Joel Brobecker <brobecker@adacore.com>
437 * linespec.c (create_sals_line_offset): Fix typo in comment.
439 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
441 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
442 use plongest to print the array size.
444 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
446 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
447 * p-valprint.c (pascal_type_print_base): Likewise.
449 2012-09-22 Yao Qi <yao@codesourcery.com>
451 * remote.c (remote_get_trace_status): Remove setting default
452 values of fields of 'ts'.
454 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
456 Fix internal error on canonicalization of clang types.
457 * cp-name-parser.y (operator): New comment at make_operator call for
458 new, delete, new[] and delete[].
459 (exp): Use "sizeof ". Add new comment at make_operator call.
461 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
463 Fix disassemble without parameters in tailcall frame.
464 * cli/cli-cmds.c (disassemble_current_function): Use
465 get_frame_address_in_block.
467 2012-09-21 Tom Tromey <tromey@redhat.com>
469 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
470 TYPE_CODE_UNION>: Unify, removing a goto.
472 2012-09-21 Tom Tromey <tromey@redhat.com>
474 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
476 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
478 * findvar.c (read_frame_register_value): Mark the result value as
479 optimized out if any of the input registers have been optimized out.
481 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
483 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
485 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
487 * eval.c (evaluate_subexp_standard): Eliminate single-use
490 2012-09-21 Yao Qi <yao@codesourcery.com>
492 * mi/mi-interp.c: Declare mi_record_changed.
493 (mi_interpreter_init): Call observer_attach_record_changed.
494 (mi_record_changed): New.
495 * record.c (record_open): Call observer_notify_record_changed.
496 (cmd_record_stop): Call observer_notify_record_changed.
499 2012-09-20 Tom Tromey <tromey@redhat.com>
502 * python/python.c (finalize_python): New function.
503 (_initialize_python): Make a final cleanup.
505 2012-09-19 Doug Evans <dje@google.com>
507 * buildsym.h (param_symbols): Delete, unused.
508 (context_stack): Delete member "params", unused.
509 * buildsym.c (push_context): Update.
510 * dwarf2read.c (read_func_scope): Update.
512 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
514 * sh-tdep.c (sh_register_convert_to_virtual)
515 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
516 all callers. Just do a memcpy if not the little-endian case.
518 * h8300-tdep.c (h8300_gdbarch_init): Invoke
519 set_gdbarch_double_format and set_gdbarch_long_double_format.
520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
521 set_gdbarch_double_format.
522 * sh-tdep.c (sh_gdbarch_init): Likewise.
524 * NEWS: Document the removal of SH's 'regs' command.
525 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
528 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
530 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
533 2012-09-18 Joel Brobecker <brobecker@adacore.com>
535 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
536 language when iterating over symbols.
538 2012-09-18 Yao Qi <yao@codesourcery.com>
540 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
541 (mi_interpreter_init): Call observer_attach_tsv_created and
542 observer_attach_tsv_deleted.
543 (mi_tsv_created, mi_tsv_deleted): New.
544 * tracepoint.c (delete_trace_state_variable): Call
545 observer_notify_tsv_deleted.
546 (trace_variable_command): Call observer_notify_tsv_created.
547 (delete_trace_variable_command): Call
548 observer_notify_tsv_deleted.
549 (create_tsv_from_upload): Call observer_notify_tsv_created.
552 2012-09-18 Yao Qi <yao@codesourcery.com>
554 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
555 if traceframe changed.
556 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
558 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
559 (mi_interpreter_init): Hook mi_traceframe_changed to observer
560 'traceframe_changed'.
561 (mi_traceframe_changed): New.
562 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
564 * NEWS: Mention the new MI notification.
566 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
568 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
570 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
572 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
573 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
574 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
575 Extend code also for PaX support. Convert all gdb_assert to warning
578 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
580 Implement auto-load user conveniences suggested by Doug Evans.
581 * auto-load.c: Include top.h.
582 (file_is_auto_load_safe): New variable advice_printed. Print advice.
583 (_initialize_auto_load): New variable scripts_directory_help. Mention
584 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
585 scripts-directory. Document in online help one can use also files for
586 set auto-load safe-path.
587 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
588 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
590 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
592 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
595 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
597 * m2-valprint.c (m2_print_array_contents): Eliminate variable
598 ELTLEN and use TYPE_LENGTH directly.
599 (m2_val_print): Likewise.
600 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
601 variable LEN and use TYPE_LENGTH directly.
602 (m68k_svr4_store_return_value): Likewise.
603 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
604 ARGLEN and use TYPE_LENGTH directly.
605 (mips_o64_push_dummy_call): Likewise.
606 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
607 variable LENGTH and use TYPE_LENGTH directly.
608 (s390_function_arg_float): Likewise.
609 (s390_function_arg_integer): Likewise.
610 (s390_push_dummy_call): Likewise.
611 (s390_return_value_convention): Likewise.
612 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
613 TYPE_LENGTH directly.
615 2012-09-17 Yao Qi <yao@codesourcery.com>
617 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
618 Update comment to add_setshow_integer_cmd.
619 * cli/cli-setshow.c (do_set_command): Handle case
620 'var_zuinteger_unlimited'.
621 (do_show_command): Likewise.
622 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
623 for command 'remotetimeout'.
624 * command.h (enum var_types): New zuinteger_unlimited. Update comment
626 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
627 for command 'set listsize'.
629 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
631 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
634 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
637 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
638 (frame_pop): Drop also TAILCALL_FRAME frames.
639 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
641 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
642 Pedro Alves <palves@redhat.com>
645 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
646 function start if we are already at function start. Both for
647 reverse-next and for reverse-step into function without line number
650 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
652 Code cleanup - rename 'inline' depth to 'artificial' depth.
653 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
654 frame_id_artificial_p, extend the comment.
655 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
656 * frame.c (fprint_frame_id): Rename at a user, change debug output
657 text to "artificial=".
658 (skip_inlined_frames): Rename to ...
659 (skip_artificial_frames): ... here. Extend the comment.
660 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
661 (frame_id_inlined_p): Rename to ...
662 (frame_id_artificial_p): ... here. Rename at a user.
663 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
664 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
666 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
668 (frame_id_inlined_p): Rename to ...
669 (frame_id_artificial_p): ... here.
670 * inline-frame.c (inline_frame_this_id): Rename at a user.
672 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
674 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
675 vector variables using vector_size syntax rather than array
678 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
680 * valarith.c (value_concat): Replace unsafe ALLOCA with
683 2012-09-14 Pedro Alves <palves@redhat.com>
685 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
687 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
689 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
690 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
691 data-directory as appropriate.
693 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
695 * printcmd.c (ui_printf): Eliminate single-use variable
698 2012-09-14 Yao Qi <yao@codesourcery.com>
699 Pedro Alves <palves@redhat.com>
701 * valops.c (value_assign): Move observer_notify_target_changed
702 below to replace reinit_frame_cache.
704 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
706 Refactor Python "gdb" module into a proper Python package, by
707 introducing a new "_gdb" module for code implemented in C, and
708 using reload/__import__ instead of exec.
709 * python/lib/gdb/__init__.py: Import * from _gdb.
710 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
711 prompt_hook, sys.argv): Moved from finish_python_initialization.
712 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
713 (packages, auto_load_packages): New list and function replacing
714 module_dict and auto-loading code, using __file__ instead of
715 gdb.PYTHONDIR and reload/__import__ instead of exec.
716 (GdbSetPythonDirectory): Replacing function of the same name
717 from finish_python_initialization, using reload/__import__ instead
718 of exec, as well as call auto_load_packages.
719 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
720 gdb_python_module and not gdb_module.
721 * python/python-internal.h (gdb_python_module): Declare.
722 * python/python.c (gdb_python_module): New global.
723 (before_prompt_hook): Check gdb_python_module and not gdb_module.
724 (_initialize_python): Rename gdb module to _gdb.
725 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
726 (finish_python_initialization): Move Python code to
727 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
730 2012-09-13 Pedro Alves <palves@redhat.com>
732 * Makefile.in (COMMON_OBS): Add registry.o.
733 * registry.c: New file.
734 * registry.h (struct registry_container): Declare.
735 (registry_data_callback): New typedef.
736 (struct registry_data, struct registry_data_registration, struct
737 registry_data_registry): New type.
738 (register_data_with_cleanup, registry_alloc_data)
739 (registry_callback_adaptor, registry_clear_data)
740 (registry_container_free_data, registry_set_data, registry_data):
742 (DEFINE_REGISTRY): Refactor structures and functions as shims over
743 the new common structures and functions.
744 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
747 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
749 * remote.c (remote_insert_hw_breakpoint): Throw exception if
750 there is an error inserting hardware breakpoints and use the
751 error message from the target.
753 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
754 Catch this exception and print the error message contained within. Do not
755 print the default hardware error breakpoint message in this case.
757 2012-09-12 Doug Evans <dje@google.com>
759 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
762 2012-09-11 Doug Evans <dje@google.com>
764 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
765 .gdb_index symbol attributes if there are none.
767 2012-09-11 Joel Brobecker <brobecker@adacore.com>
769 * symtab.h (struct minimal_symbol) [has_size]: New field.
770 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
771 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
772 * printcmd.c (build_address_symbolic): Only filter out zero-sized
773 minimal symbols if the symbol's size is actually known.
774 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
775 of msymbol's size field. Add comment.
776 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
777 SET_MSYMBOL_SIZE to set the minimal symbol size.
779 2012-09-11 Joel Brobecker <brobecker@adacore.com>
781 * minsyms.c (install_minimal_symbols): Use memset to fill entire
782 minimal_symbol struct object, rather than setting some of its
785 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
787 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
788 passed_a_ptr flag when displaying typedef types.
790 2012-09-10 Joel Brobecker <brobecker@adacore.com>
792 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
793 the optimized_out flag is preserved.
795 2012-09-10 Anthony Green <green@moxielogic.com>
797 * moxie-tdep.c (moxie_analyze_prologue): Update for function
798 prologue changes in GCC.
800 2012-09-10 Keith Seitz <keiths@redhat.com>
803 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
804 (BOOL_CONVERSION_BADNESS): ... this.
805 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
806 (rank_one_type): Allow all boolean conversions
807 permitted by the standard.
809 2012-09-06 Tom Tromey <tromey@redhat.com>
811 * python/py-newobjfileevent.c (create_new_objfile_event_object):
812 Don't decref py_objfile.
814 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
816 Do not enable -lmcheck by default when Python is enabled with
818 * configure.ac: (python_has_threads) New variable, by testing
819 if WITH_THREAD is defined in Python.h.
820 Move --enable-lmcheck after --with-python.
821 Do not enable -lmcheck by default if python_has_threads=yes.
822 Warn if --enable-lmcheck and python_has_threads=yes.
823 * configure: Regenerate.
825 2012-08-31 Yao Qi <yao@codesourcery.com>
827 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
828 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
829 Update some commands.
830 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
831 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
834 2012-08-31 Yao Qi <yao@codesourcery.com>
836 * mi/mi-cmds.c (mi_cmds): Add 'static'.
838 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
840 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
842 2012-08-29 Doug Evans <dje@google.com>
844 * main.c (print_gdb_help): Remove reference to
845 --use-deprecated-index-sections.
847 2012-08-28 Yao Qi <yao@codesourcery.com>
849 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
850 (init_cmds): Call add_setshow_uinteger_cmd for command
851 'max-user-call-depth'.
852 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
853 declaration of 'max_user_call_depth'.
854 * frame.c (backtrace_limit): Add 'unsigned'.
855 (_initialize_frame): Call add_setshow_uinteger_cmd for command
857 * remote.c (remoteaddresssize): Add 'unsigned'.
858 (remote_address_masked): Change local var 'address_size' to
860 (_initialize_remote): Call add_setshow_uinteger_cmd for
862 * top.c (history_size): Add 'unsigned'.
863 (show_commands): Change local variables to 'unsigned'.
864 (set_history_size_command): Don't check history_size is negative.
865 Adjust the condition to call unstifle_history and set history_size
868 2012-08-28 Pedro Alves <palves@redhat.com>
872 * infcmd.c (default_print_one_register_info): New, factored out
873 from default_print_registers_info.
874 (default_print_registers_info): Use it. Mark value unavailable if
876 (registers_info): Print user registers with
877 default_print_one_register_info.
879 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
882 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
883 is not NULL before referencing it.
885 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
887 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
888 variable pc. Call find_pc_line instead of find_pc_overlay, restore
891 2012-08-27 Eli Zaretskii <eliz@gnu.org>
892 Jan Kratochvil <jan.kratochvil@redhat.com>
894 * auto-load.c (auto_load_objfile_script): Rename to ...
895 (auto_load_objfile_script_1): ... here, change variable realname to
896 parameter realname, document it, add return value, add variable retval.
897 (auto_load_objfile_script): New function.
899 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
901 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
902 followed by a whitespace.
904 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
907 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
908 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
909 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
912 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
914 * memattr.c (create_mem_region): Fix memory region overlapping
917 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
919 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
920 with xmalloc/cleanup.
921 * mt-tdep.c (mt_push_dummy_call): Likewise.
922 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
923 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
925 2012-08-24 Yao Qi <yao@codesourcery.com>
927 * jv-exp.y (push_expression_name): Add "." at the end of error
930 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
932 Document how to return from "python-interactive" to GDB.
933 * python/python.c (_initialize_python): Update documentation.
935 2012-08-23 Pedro Alves <palves@redhat.com>
937 * infrun.c (_initialize_infrun) <handle command help text>:
938 Mention that multiple signals are supported.
940 2012-08-23 Pedro Alves <palves@redhat.com>
942 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
945 2012-08-23 Yao Qi <yao@codesourcery.com>
947 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
948 (tfind_1): Don't call registers_changed, set_traceframe_num,
949 and clear_traceframe_info.
950 Call set_current_traceframe.
951 (set_current_traceframe): call set_traceframe_num.
953 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
955 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
956 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
958 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
960 Enable readline in Python in a GDB-specific way and block the
961 standard Python readline module to prevent conflicts with GDB.
962 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
963 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
964 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
965 * python/py-gdb-readline.c: New file.
966 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
968 * python/python.c (_initialize_python): Call
969 gdbpy_initialize_gdb_readline.
971 2012-08-22 Keith Seitz <keiths@redhat.com>
973 * defs.h: Include build-gnulib/config.h
975 2012-08-22 Joseph Myers <joseph@codesourcery.com>
977 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
980 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
982 Add a new "python-interactive" command that starts a standard
983 Python interactive prompt with "pi" as alias, and add "py" as
984 an alias to "python".
985 * NEWS: Mention the new commands.
986 * python/python.c (eval_python_command): New function.
987 (python_interactive_command): For "python-interactive" with
988 arguments, call eval_python_command. For "python-interactive"
989 without arguments, call PyRun_InteractiveLoop.
990 (_initialize_python): Add "python-interactive" command with
991 "pi" as alias, and add "py" as an alias to "python".
993 2012-08-22 Tom Tromey <tromey@redhat.com>
995 * defs.h (quit_flag): Don't declare.
996 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
997 (QUIT): Use new functions.
998 * event-top.c (command_handler): Use clear_quit_flag.
999 (handle_sigint): Use set_quit_flag.
1000 (async_request_quit): Use check_quit_flag. Don't check
1002 * exceptions.c (throw_exception): Use clear_quit_flag.
1003 * main.c (captured_main): Use clear_quit_flag.
1004 * python/python.c (clear_quit_flag, set_quit_flag)
1005 (check_quit_flag): New functions.
1006 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1008 * remote.c (remote_wait_as): Use check_quit_flag,
1010 (remote_start_remote): Call QUIT.
1011 * symfile.c (load_progress): Use check_quit_flag.
1012 * top.c (command_loop): Use clear_quit_flag.
1013 (command_line_input): Call QUIT.
1014 * utils.c (quit_flag): Conditionally define.
1015 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1017 (prompt_for_continue): Call QUIT. Use quit, not
1019 * remote-mips.c (mips_expect_timeout): Call QUIT.
1020 * monitor.c (monitor_expect): Call QUIT.
1022 2012-08-22 Tom Tromey <tromey@redhat.com>
1024 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1025 (async_init_signals): Update.
1026 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1027 (SIGWINCH_HANDLER_BODY): Remove.
1029 2012-08-22 Tom Tromey <tromey@redhat.com>
1031 * jit.c (jit_object_close_impl): Don't malloc the objfile
1033 * objfiles.c (allocate_objfile): Don't malloc the objfile
1035 (free_objfile): Don't free the objfile name.
1036 * objfiles.h (struct objfile) <name>: Update comment.
1037 * symfile.c (reread_symbols): Fix reference counting. Don't
1038 malloc objfile name.
1040 2012-08-22 Tom Tromey <tromey@redhat.com>
1042 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1043 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1044 (symfile_bfd_open): Likewise.
1045 (generic_load): Likewise.
1046 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1047 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1049 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1051 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1052 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1053 (pmon_load_fast): Likewise.
1054 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1055 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1056 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1057 (macho_check_dsym): Likewise.
1058 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1059 (m32r_upload_command): Likewise.
1060 * gdb_bfd.h (gdb_bfd_cache): Declare.
1061 * gdb_bfd.c (struct gdb_bfd_data): New.
1062 (gdb_bfd_cache): New global.
1063 (struct gdb_bfd_cache_search): New.
1064 (hash_bfd): New function.
1066 (gdb_bfd_open): Likewise.
1067 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1068 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1070 * exec.c (exec_file_attach): Use gdb_bfd_open.
1071 * dsrec.c (load_srec): Use gdb_bfd_open.
1073 2012-08-22 Tom Tromey <tromey@redhat.com>
1075 * dwarf2read.c (macro_start_file): Update.
1076 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1077 (free_objfile_per_bfd_storage): Destroy macro_cache.
1078 (allocate_objfile, free_objfile): Update.
1079 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1081 (struct objfile) <macro_cache>: Remove.
1082 * symfile.c (reread_symbols): Update.
1083 * symmisc.c (print_symbol_bcache_statistics): Update.
1084 (print_objfile_statistics): Update.
1086 2012-08-22 Tom Tromey <tromey@redhat.com>
1088 * elfread.c (elf_symtab_read): Update.
1089 * objfiles.c (objfiles_bfd_data): New global.
1090 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1091 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1092 (allocate_objfile, free_objfile): Update.
1093 (_initialize_objfiles): Initialize objfiles_bfd_data.
1094 * objfiles.h (struct objfile_per_bfd_storage): New.
1095 (struct objfile) <per_bfd>: New field.
1096 <filename_cache>: Remove.
1097 (set_objfile_per_bfd): Declare.
1098 * symfile.c (reread_symbols): Update. Call
1099 set_objfile_per_bfd.
1100 (allocate_symtab): Update.
1101 * symmisc.c (print_symbol_bcache_statistics): Update.
1102 (print_objfile_statistics): Print the size of the BFD obstack.
1104 2012-08-22 Tom Tromey <tromey@redhat.com>
1106 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1107 * gdb_bfd.c: Use DEFINE_REGISTRY.
1108 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1109 (gdb_bfd_ref): Call bfd_alloc_data.
1110 (gdb_bfd_unref): Call bfd_free_data.
1112 2012-08-22 Tom Tromey <tromey@redhat.com>
1114 * registry.h (struct registry_fields): New.
1115 (REGISTRY_FIELDS): Redefine.
1116 (REGISTRY_ACCESS_FIELD): New macro.
1117 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1120 2012-08-22 Tom Tromey <tromey@redhat.com>
1122 * auto-load.c (_initialize_auto_load): Update.
1123 * solib-svr4.c (_initialize_svr4_solib): Update
1124 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1125 * solib-darwin.c (_initialize_darwin_solib): Update.
1126 * registry.h: New file.
1127 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1128 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1129 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1130 (register_program_space_data_with_cleanup)
1131 (register_program_space_data, program_space_alloc_data)
1132 (clear_program_space_data, set_program_space_data)
1133 (program_space_data): Don't declare.
1134 * progspace.c: Use DEFINE_REGISTRY.
1135 (struct program_space_data, struct
1136 program_space_data_registration, struct
1137 program_space_data_registry, program_space_data_registry)
1138 (register_program_space_data_with_cleanup)
1139 (register_program_space_data, program_space_alloc_data)
1140 (program_space_free_data, clear_program_space_data)
1141 (set_program_space_data, program_space_data): Remove.
1142 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1143 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1144 (register_objfile_data_with_cleanup, register_objfile_data)
1145 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1147 * objfiles.c: Use DEFINE_REGISTRY.
1148 (struct objfile_data, struct objfile_data_registration, struct
1149 objfile_data_registry, objfile_data_registry)
1150 (register_objfile_data_with_cleanup, register_objfile_data)
1151 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1152 (set_objfile_data, objfile_data): Remove.
1153 (_initialize_objfiles): Update.
1154 * jit.c (_initialize_jit): Update.
1155 * inflow.c (_initialize_inflow): Update.
1156 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1157 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1158 (register_inferior_data_with_cleanup, register_inferior_data)
1159 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1161 * inferior.c: Use DEFINE_REGISTRY.
1162 (struct inferior_data, struct inferior_data_registration, struct
1163 inferior_data_registry, inferior_data_registry)
1164 (register_inferior_data_with_cleanup, register_inferior_data)
1165 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1166 (set_inferior_data, inferior_data): Remove.
1167 * auxv.c (_initialize_auxv): Update.
1168 * ada-lang.c (_initialize_ada_language): Update.
1169 * breakpoint.c (_initialize_breakpoint): Update.
1170 * i386-nat.c (i386_use_watchpoints): Update.
1172 2012-08-22 Tom Tromey <tromey@redhat.com>
1174 * exec.c (exec_close, exec_file_attach): Update.
1175 (add_to_section_table): Initialize 'key' field.
1176 (add_target_sections, remove_target_sections): Add 'key' argument.
1177 * exec.h (add_target_sections, remove_target_sections): Add
1179 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1180 (reload_shared_libraries_1): Update.
1181 * target.h (struct target_section) <key>: New field.
1183 2012-08-22 Tom Tromey <tromey@redhat.com>
1185 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1187 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1189 * symfile.c (allocate_symtab): Use host_address_to_string
1190 function instead of cast of pointer to long which is not
1191 compatible with x86_64-w64-mingw32 build.
1193 2012-08-19 Andrew Pinski <apinski@cavium.com>
1195 * mips-tdep.c (is_octeon): New function.
1196 (is_octeon_bbit_op): New function.
1197 (mips32_next_pc): Handle Octeon's bbit instructions.
1198 (mips32_instruction_has_delay_slot): Likewise.
1200 2012-08-19 Andrew Pinski <apinski@cavium.com>
1202 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1203 before the function.
1205 2012-08-19 Andrew Pinski <apinski@cavium.com>
1207 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1209 2012-08-19 Keith Seitz <keiths@redhat.com>
1212 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1213 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1215 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1217 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1218 The typo broke "make TAGS".
1220 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1224 2012-08-17 Keith Seitz <keiths@redhat.com>
1227 * gdbtypes.c (strict_type_checking): New variable.
1228 (show_strict_type_checking): New function.
1229 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1230 if strict type checking is disabled.
1231 (_initialize_gdbtypes): Add "check type" subcommand.
1232 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1234 2012-08-17 Keith Seitz <keiths@redhat.com>
1236 * language.h (type_mode): Remove.
1237 (type_check): Remove.
1238 (struct language_defn): Remove la_type_check.
1239 (STRICT_TYPE): Remove unused macro.
1240 (type_error): Remove.
1241 * language.c (set_type_range_case): Renamed to ...
1242 (set_range_case): ... this. Update all callers.
1243 Remove type_mode/type_check.
1244 (type_mode): Remove.
1245 (type_check): Remove.
1246 (show_type_command): Remove.
1247 (set_type_command): Remove.
1248 (language_info): Remove type checking output.
1249 (type_error): Remove unused function.
1250 (range_error): Update comment.
1251 (unknown_language_defn): Remove la_type_check.
1252 (auto_language_defn): Likewise.
1253 (local_language_defn): Likewise.
1254 (_initialize_language): Remove "check type" subcommand.
1255 * ada-lang.c (ada_language_defn): Remove la_type_check.
1256 * c-lang.c (c_language_defn): Likewise.
1257 (cplus_language_defn): Likewise.
1258 (asm_language_defn): Likewise.
1259 (minimal_language_defn): Likewise.
1260 * d-lang.c (d_language_defn): Likewise.
1261 * f-lang.c (f_language_defn): Likewise.
1262 * go-lang.c (go_language_defn): Likewise.
1263 * jv-lang.c (java_language_defn): Likewise.
1264 * m2-lang.c (m2_language_defn): Likewise.
1265 * objc-lang.c (objc_language_defn): Likewise.
1266 * opencl-lang.c (opencl_language_defn): Likewise.
1267 * p-lang.c (pascal_language_defn): Likewise.
1269 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1271 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1273 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1275 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1277 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1278 using the regache. Use ia64_hpux_get_register_from_save_state_t
1279 to access the bsp and bspstore registers if not.
1281 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1283 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1284 * breakpoint.c (detach_breakpoints): Change pid parameter into
1285 a ptid. Adjust code accordingly.
1286 * infrun.c (handle_inferior_event): Delete variable child_pid.
1287 Update call to detach_breakpoints to pass the child ptid for
1289 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1290 assert that inferior_ptid's lwp is zero.
1291 (linux_handle_extended_wait): Update call to detach_breakpoints.
1292 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1295 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1297 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1298 parent, only call detach_breakpoints if tts.tts_event ==
1301 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1303 * dwarf2-frame.c (dwarf2_frame_cache): Use
1304 get_frame_address_in_block instead of get_frame_pc as
1305 the bound for executing the frame's FDE.
1307 2012-08-16 Yao Qi <yao@codesourcery.com>
1309 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1310 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1311 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1312 (c_type_print_varspec_suffix): Likewise.
1313 * eval.c (evaluate_subexp_standard): Likewise.
1314 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1315 (f_type_print_varspec_suffix): Likewise.
1316 * gdbtypes.c (is_scalar_type): Likewise.
1317 (recursive_dump_type): Likewise.
1318 * infcall.c (value_arg_coerce): Likewise.
1319 * m2-valprint.c (m2_val_print): Likewise.
1320 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1321 (pascal_type_print_varspec_suffix): Likewise.
1322 (pascal_type_print_base): Likewise.
1323 * p-valprint.c (pascal_val_print): Likewise.
1324 (pascal_val_print): Likewise.
1325 * valops.c (value_slice): Likewise.
1326 * valprint.c (scalar_type_p): Likewise.
1327 * valarith.c (value_bitstring_subscript): Remove.
1328 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1329 Remove comment on TYPE_CODE_BITSTRING.
1331 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1332 TYPE_CODE_BITSTRING.
1334 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1337 2012-08-16 Yao Qi <yao@codesourcery.com>
1339 * tracepoint.c (trace_find_none_command): Remove.
1340 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1342 2012-08-16 Yao Qi <yao@codesourcery.com>
1344 * remote.c (handle_notification): Remove parameter 'length'.
1345 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1347 2012-08-15 Keith Seitz <keiths@redhat.com>
1349 * gdbtypes.c (opaque_type_resolution): Make static.
1350 Add missing comment.
1351 (overload_debug): Add missing comment.
1352 (show_opaque_type_resolution): Likewise.
1353 (show_overload_debug): Likewise.
1354 (print_bit_vector): Remove unnecessary forward declaration.
1355 (print_arg_types): Likewise.
1356 (dump_fn_fieldlists): Likewise.
1357 (print_cplus_stuff): Likewise.
1359 2012-08-15 Tom Tromey <tromey@redhat.com>
1361 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1362 (gdb_bfd_ref): Initialize new field.
1363 (gdb_bfd_unref): Unref the archive BFD.
1364 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1367 2012-08-15 Tom Tromey <tromey@redhat.com>
1370 * python/py-bpevent.c (create_breakpoint_event_object): Update
1372 * python/py-event.c (evpy_add_attribute): Update comment.
1373 * python/py-exitedevent.c (create_exited_event_object): Fix
1374 reference counting and error handling.
1375 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1376 Fix reference counting.
1377 * python/py-signalevent.c (create_signal_event_object): Fix
1378 reference counting and error handling.
1379 * python/py-stopevent.c (emit_stop_event): Fix reference
1381 * python/py-threadevent.c (get_event_thread): Return a
1383 * python/py-type.c (convert_field): Fix reference counting.
1385 2012-08-15 Tom Tromey <tromey@redhat.com>
1387 * dwarf2read.c (dwarf_decode_macro_bytes)
1388 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1391 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1393 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1394 stepi, nexti, finish, next, step, jump, and continue commands.
1395 * infrun.c (_initialize_infrun): Update help text for the handle
1398 2012-08-14 Doug Evans <dje@google.com>
1400 * gdbtypes.c (struct extra): Delete, unused.
1402 * gdbtypes.c: Whitespace cleanup.
1403 (address_space_name_to_int): Remove "extern" from definition.
1404 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1406 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1407 TYPE_POINTER_TYPE (type).
1409 2012-08-14 Gary Benson <gbenson@redhat.com>
1411 * solib-svr4.c (svr4_free_library_list): Use free_so.
1413 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1415 * .gitignore: Add go-exp.c.
1417 2012-08-13 Doug Evans <dje@google.com>
1419 * value.c (show_convenience): Tweak comment.
1420 (_initialize_values): Mention convenience functions in the help text
1421 for "show convenience".
1423 2012-08-13 Yao Qi <yao@codesourcery.com>
1425 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1426 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1428 * eval.c (evaluate_subexp_standard): Likewise.
1429 * expprint.c (print_subexp_standard): Likewise.
1430 (dump_subexp_body_standard): Likewise.
1431 * parse.c (operator_length_standard): Likewise.
1433 2012-08-13 Yao Qi <yao@codesourcery.com>
1435 * std-operator.def: Remove OP_BITSTRING.
1436 * breakpoint.c (watchpoint_exp_is_const): Update.
1437 * eval.c (evaluate_subexp_standard): Remove handling to
1439 * expprint.c (print_subexp_standard): Likewise.
1440 (dump_subexp_body_standard): Likewise.
1441 * parse.c (operator_length_standard): Likewise.
1442 * valops.c (value_bitstring): Remove.
1443 * value.h: Remove the declaration of 'value_bitstring'.
1445 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1447 * linespec.c (find_methods): Remove unused variables `i1' and
1449 (decode_line_full): Likewise for `arg_start'.
1451 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1453 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1454 (zlib_decompress_section): Likewise for `section_data'.
1455 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1457 2012-08-10 Doug Evans <dje@google.com>
1459 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1460 * NEWS: Document them.
1461 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1463 * python/py-type.c (typy_array_1): New function.
1464 (typy_array): Call it.
1465 (typy_vector): New function.
1466 (type_object_methods): Add "vector".
1467 * python/lib/gdb/function/__init__.py: New file.
1468 * python/lib/gdb/function/strfns.py: New file.
1470 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1472 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1473 for TYPE_FIELD_BITPOS.
1474 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1476 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1479 * common/vec.h (VEC_merge): Define.
1480 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1481 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1482 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1483 * completer.c: Include gdb_signals.h.
1484 (signal_completer): Define.
1485 * completer.h (signal_completer): Add prototype.
1486 * infcmd.c (_initialize_infcmd): Assign the command
1487 completer for "signal" to handle_completer.
1488 * infrun.c: Include completer.h.
1489 (handle_completer): Define.
1490 (_initialize_infrun): Declare a new local variable c. Store the
1491 result of add_com("handle") to it. Assign the command
1492 completer for "handle" to handle_completer.
1494 2012-08-09 Yao Qi <yao@codesourcery.com>
1496 * cli/cli-decode.c (set_cmd_prefix): New.
1497 (lookup_cmd_for_prefixlist): New.
1498 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1499 of each cmd_list_element in *prefixlist.
1500 (add_setshow_cmd_full): set_cmd_prefix.
1501 (add_alias_cmd): Likewise.
1502 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1503 Declare 'auto_boolean_enums'.
1504 * cli/cli-setshow.c: Include "observer.h".
1505 (notify_command_param_changed_p): New.
1506 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1508 (do_setshow_command): Split it to ...
1509 (do_set_command, do_show_command): ... them. New.
1510 (do_set_command): Call observer_notify_command_param_changed if
1511 notify_command_param_changed_p returns true.
1512 (cmd_show_list): Caller update.
1513 * auto-load.c (set_auto_load_cmd): Likewise.
1514 * remote.c (show_remote_cmd): Likewise.
1515 * cli/cli-setshow.h: Update declarations.
1516 * top.c (execute_command): Call do_set_command and do_show_command.
1518 * NEWS: Mention new MI notification.
1519 * mi/mi-interp.c: Declare mi_command_param_changed.
1520 (mi_interpreter_init): Attach mi_command_param_changed to
1521 observer command_param_changed.
1522 (mi_command_param_changed): New.
1523 Remove mi_suppress_breakpoint_notifications.
1524 Define global variable mi_suppress_notification.
1525 (mi_breakpoint_created): Update.
1526 (mi_breakpoint_deleted): Likewise.
1527 (mi_breakpoint_modified): Likewise.
1528 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1529 'gdb-set' and set mi_suppress_notification.
1530 * mi/mi-main.h: (mi_suppress_notification): New struct.
1532 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1533 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1537 2012-08-09 Yao Qi <yao@codesourcery.com>
1539 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1540 (skiplist): Move it to skip.c.
1541 (init_cmd_lists): Remove code setting enablebreaklist and
1543 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1544 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1546 * gdbcmd.h: Likewise.
1547 * skip.c (_initialize_step_skip): Move 'skiplist' from
1550 2012-08-09 Yao Qi <yao@codesourcery.com>
1552 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1553 * gnu-nat.c, symfile.c: Likewise.
1555 2012-08-08 Aaron Gamble <agamble@google.com>
1557 * utils.c (prompt_for_continue_wait_time): New static global.
1558 (make_command_stats_cleanup): Initialize it.
1559 (report_command_stats): Subtract time waiting for user.
1560 (prompt_for_continue): Track time waiting for user.
1561 (defaulted_query): Track time waiting for user.
1563 2012-08-08 Doug Evans <dje@google.com>
1565 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1567 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1568 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1569 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1570 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1571 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1572 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1574 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1575 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1576 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1577 (dump_prefix_expression): Handle OP_TYPE.
1579 2012-08-08 Keith Seitz <keiths@redhat.com>
1581 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1584 2012-08-08 Doug Evans <dje@google.com>
1586 * linux-thread-db.c: #include "gdb_vecs.h".
1587 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1589 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1590 (thread_db_load_search): Use a vector to iterate over path elements.
1591 Handle text appearing after "$pdir".
1593 * gdb_string.h: Moved to ...
1594 * common/gdb_string.h: ... here.
1595 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1596 gdb_string.h and gdb_assert.h.
1598 2012-08-08 Yao Qi <yao@codesourcery.com>
1600 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1601 (tic6x_value_to_register): Likewise.
1602 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1603 and set_gdbarch_value_to_register.
1605 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 Jean-Marc Saffroy <saffroy@gmail.com>
1609 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1610 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1611 * gcore.c (gcore_create_callback): New function comment. Add modified
1612 parameter. Only write modified regions. Set SEC_READONLY exactly
1613 according to MODIFIED.
1614 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1615 the passed modified value to FUNC.
1616 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1617 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1618 first. New variables modified and has_anonymous. Parse the lines of
1619 smaps file. Add the passed MODIFIED value to FUNC.
1620 * procfs.c (find_memory_regions_callback): Add the passed modified
1623 2012-08-06 Tom Tromey <tromey@redhat.com>
1625 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1626 (dwarf2_frame_cache): Use it.
1627 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1628 cache initialization constraint.
1630 2012-08-06 Tom Tromey <tromey@redhat.com>
1633 * varobj.c (update_dynamic_varobj_children): Don't call
1636 2012-08-06 Tom Tromey <tromey@redhat.com>
1639 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1641 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1643 * NEWS: New entry for 'cd' default parameters.
1644 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1646 2012-08-03 Tom Tromey <tromey@redhat.com>
1648 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1651 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1653 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1654 to attempting lseek/write.
1655 (inf_child_fileio_pread): Likewise for pread.
1657 2012-08-02 Yao Qi <yao@codesourcery.com>
1659 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1660 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1661 add_setshow_zinteger_cmd.
1662 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1663 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1664 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1665 instead of add_setshow_zinteger_cmd.
1666 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1667 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1668 instead of add_setshow_zinteger_cmd.
1669 * frame.c (frame_debug): Add 'unsigned'.
1670 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1671 add_setshow_zinteger_cmd.
1672 * frame.h: Update the declaration of 'frame_debug'.
1673 * gdbtypes.c (overload_debug): Add 'unsigned'.
1674 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1675 add_setshow_zinteger_cmd.
1676 * inferior.h: Update declaration of 'debug_infrun'.
1677 * infrun.c (debug_infrun): Add 'unsigned'.
1678 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1679 add_setshow_zinteger_cmd.
1680 * jit.c (jit_debug): Add 'unsigned'.
1681 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1682 add_setshow_zinteger_cmd.
1683 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1684 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1685 instead of add_setshow_zinteger_cmd.
1686 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1687 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1688 add_setshow_zinteger_cmd.
1689 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1690 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1691 instead of add_setshow_zinteger_cmd.
1692 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1693 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1694 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1695 intead of add_setshow_zinteger_cmd.
1696 * mips-tdep.c (mips_debug): Add 'unsigned'.
1697 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1698 instead of add_setshow_zinteger_cmd.
1699 * monitor.c (monitor_debug): Add 'unsigned'.
1700 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1701 add_setshow_zinteger_cmd.
1702 * observer.c (observer_debug): Add 'unsigned'.
1703 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1704 add_setshow_zinteger_cmd.
1705 * parse.c (expressiondebug): Add 'unsigned'.
1706 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1707 add_setshow_zinteger_cmd.
1708 * record.c (record_debug): Add 'unsigned'.
1709 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1710 add_setshow_zinteger_cmd.
1711 * record.h: Update the declaration of 'record_debug'.
1712 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1713 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1714 add_setshow_zinteger_cmd.
1715 * serial.c (global_serial_debug_p): Add 'unsigned'.
1716 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1717 add_setshow_zinteger_cmd.
1718 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1719 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1720 add_setshow_zinteger_cmd.
1721 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1722 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1723 add_setshow_zinteger_cmd.
1724 * target.c (targetdebug): Add 'unsigned'.
1725 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1726 add_setshow_zinteger_cmd.
1727 * valops.c (overload_debug): Add 'unsigned'.
1728 * varobj.c (varobjdebug): Add 'unsigned'.
1729 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1730 add_setshow_zinteger_cmd.
1731 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1732 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1733 instead of add_setshow_zinteger_cmd.
1735 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1736 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1737 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1738 instead of add_setshow_zinteger_cmd.
1739 * gdbarch.c, gdbarch.h: Re-generated.
1741 2012-08-02 Yao Qi <yao@codesourcery.com>
1743 * nto-tdep.c: Don't include cli/cli-decode.h and
1745 (_initialize_nto_tdep): Remove.
1746 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1748 Remove macro nto_internal_debugging.
1750 2012-08-01 Richard Henderson <rth@redhat.com>
1752 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1753 (mep-*-*) [gdb_target_obs]: Likewise.
1755 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1757 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1758 linux_get_siginfo_type.
1760 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1764 (call_function_by_hand) <ON_STACK>: Call write_memory with
1765 gdbarch_breakpoint_from_pc, if possible.
1766 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1769 2012-07-31 Yao Qi <yao@codesourcery.com>
1771 * tracepoint.c: Add 'static' for some variables.
1773 2012-07-31 Yao Qi <yao@codesourcery.com>
1775 * go32-nat.c: Declare _initialize_go32_nat.
1776 * ser-go32.c: Declare _initialize_ser_dos.
1777 * top.c (do_chdir_cleanup): Add 'static'.
1779 2012-07-30 Keith Seitz <keiths@redhat.com>
1781 * linespec.c (linespec_lex_number): A number followed
1782 by quotes is a valid number, too.
1784 2012-07-30 Tom Tromey <tromey@redhat.com>
1786 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1788 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1790 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1791 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1793 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1795 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1796 invalid or reevaluated to prevent prevent references to possibly
1797 delete'd type objects being left in the varobj.
1799 2012-07-27 Tom Tromey <tromey@redhat.com>
1800 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 * copying.awk: Print buffer-read-only and vi ro markers.
1803 * copying.c: Rebuild.
1804 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1805 * gdbarch.c, gdbarch.h: Rebuild.
1806 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1807 buffer-read-only and vi ro markers.
1808 * features/arm-with-iwmmxt.c: Rebuild.
1809 * features/arm-with-m-fpa-layout.c: Rebuild.
1810 * features/arm-with-m-vfp-d16.c: Rebuild.
1811 * features/arm-with-m.c: Rebuild.
1812 * features/arm-with-neon.c: Rebuild.
1813 * features/arm-with-vfpv2.c: Rebuild.
1814 * features/arm-with-vfpv3.c: Rebuild.
1815 * features/i386/amd64-avx-linux.c: Rebuild.
1816 * features/i386/amd64-avx.c: Rebuild.
1817 * features/i386/amd64-linux.c: Rebuild.
1818 * features/i386/amd64.c: Rebuild.
1819 * features/i386/i386-avx-linux.c: Rebuild.
1820 * features/i386/i386-avx.c: Rebuild.
1821 * features/i386/i386-linux.c: Rebuild.
1822 * features/i386/i386-mmx-linux.c: Rebuild.
1823 * features/i386/i386-mmx.c: Rebuild.
1824 * features/i386/i386.c: Rebuild.
1825 * features/i386/x32-avx-linux.c: Rebuild.
1826 * features/i386/x32-avx.c: Rebuild.
1827 * features/i386/x32-linux.c: Rebuild.
1828 * features/i386/x32.c: Rebuild.
1829 * features/mips-dsp-linux.c: Rebuild.
1830 * features/mips-linux.c: Rebuild.
1831 * features/mips64-dsp-linux.c: Rebuild.
1832 * features/mips64-linux.c: Rebuild.
1833 * features/rs6000/powerpc-32.c: Rebuild.
1834 * features/rs6000/powerpc-32l.c: Rebuild.
1835 * features/rs6000/powerpc-403.c: Rebuild.
1836 * features/rs6000/powerpc-403gc.c: Rebuild.
1837 * features/rs6000/powerpc-405.c: Rebuild.
1838 * features/rs6000/powerpc-505.c: Rebuild.
1839 * features/rs6000/powerpc-601.c: Rebuild.
1840 * features/rs6000/powerpc-602.c: Rebuild.
1841 * features/rs6000/powerpc-603.c: Rebuild.
1842 * features/rs6000/powerpc-604.c: Rebuild.
1843 * features/rs6000/powerpc-64.c: Rebuild.
1844 * features/rs6000/powerpc-64l.c: Rebuild.
1845 * features/rs6000/powerpc-7400.c: Rebuild.
1846 * features/rs6000/powerpc-750.c: Rebuild.
1847 * features/rs6000/powerpc-860.c: Rebuild.
1848 * features/rs6000/powerpc-altivec32.c: Rebuild.
1849 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1850 * features/rs6000/powerpc-altivec64.c: Rebuild.
1851 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1852 * features/rs6000/powerpc-cell32l.c: Rebuild.
1853 * features/rs6000/powerpc-cell64l.c: Rebuild.
1854 * features/rs6000/powerpc-e500.c: Rebuild.
1855 * features/rs6000/powerpc-e500l.c: Rebuild.
1856 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1857 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1858 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1859 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1860 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1861 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1862 * features/rs6000/powerpc-vsx32.c: Rebuild.
1863 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1864 * features/rs6000/powerpc-vsx64.c: Rebuild.
1865 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1866 * features/rs6000/rs6000.c: Rebuild.
1867 * features/s390-linux32.c: Rebuild.
1868 * features/s390-linux32v1.c: Rebuild.
1869 * features/s390-linux32v2.c: Rebuild.
1870 * features/s390-linux64.c: Rebuild.
1871 * features/s390-linux64v1.c: Rebuild.
1872 * features/s390-linux64v2.c: Rebuild.
1873 * features/s390x-linux64.c: Rebuild.
1874 * features/s390x-linux64v1.c: Rebuild.
1875 * features/s390x-linux64v2.c: Rebuild.
1876 * features/tic6x-c62x-linux.c: Rebuild.
1877 * features/tic6x-c62x.c: Rebuild.
1878 * features/tic6x-c64x-linux.c: Rebuild.
1879 * features/tic6x-c64x.c: Rebuild.
1880 * features/tic6x-c64xp-linux.c: Rebuild.
1881 * features/tic6x-c64xp.c: Rebuild.
1883 2012-07-27 Tom Tromey <tromey@redhat.com>
1885 * c-exp.y (classify_name): Avoid assignment in condition.
1887 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1889 * amd64-windows-tdep.c: Include "frame.h".
1890 (amd64_windows_skip_trampoline_code): New function.
1891 (amd64_windows_init_abi): Add trampoline registration.
1893 2012-07-27 Yao Qi <yao@codesourcery.com>
1895 * tracepoint.c (cur_traceframe_number): Remove.
1896 (set_tfile_traceframe): Remove.
1897 (tfile_trace_find, tfile_fetch_registers): Update callers.
1898 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1899 (tfile_open, tfile_trace_find): Likewise.
1901 2012-07-27 Yao Qi <yao@codesourcery.com>
1903 * thread.c (switch_to_thread): Don't call registers_changed.
1905 2012-07-26 Tom Tromey <tromey@redhat.com>
1907 * Makefile.in (SFILES): Remove objc-exp.y.
1908 (YYFILES): Remove objc-exp.c.
1909 (YYOBJ): Remove objc-exp.o.
1910 (local-maintainer-clean): Don't mention objc-exp.c.
1911 * c-exp.y: Include objc-lang.h.
1912 (%union) <class>: New field.
1913 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1914 (exp): Clone subscript production for OBJC_LBRAC. Add various
1915 Objective C productions.
1916 (msglist, msgarglist, msgarg): New productions.
1917 (array_mod, func_mod, operator): Clone productions for
1919 (parse_string_or_char): Handle '@' strings.
1920 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1921 (classify_name): Check la_name_of_this. Recognize ObjC class
1923 * objc-exp.y: Remove.
1924 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1925 * objc-lang.h (objc_parse, objc_error): Don't declare.
1927 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1929 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1931 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1936 2012-07-26 Tom Tromey <tromey@redhat.com>
1938 * copying.c: Rebuild.
1939 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1942 2012-07-26 Tom Tromey <tromey@redhat.com>
1944 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1946 (print_objfile_statistics): Likewise.
1947 (maintenance_print_symbols): Likewise.
1948 (maintenance_print_msymbols): Likewise.
1949 (maintenance_print_objfiles): Likewise.
1950 * psymtab.c (print_partial_symbols): Call QUIT.
1951 (maintenance_print_psymbols): Likewise. Don't modify
1953 * copying.c (show_copying_command): Don't modify immediate_quit.
1954 (show_warranty_command): Likewise.
1955 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1957 2012-07-26 Keith Seitz <keiths@redhat.com>
1959 * linespec.c (linespec_lexer_lex_number): The input
1960 is also a valid number if the next character is a comma
1963 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1965 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1968 2012-07-26 Tristan Gingold <gingold@adacore.com>
1970 * machoread.c: Include gdb_bfd.h.
1972 2012-07-26 Tristan Gingold <gingold@adacore.com>
1974 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1977 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1979 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1981 (dwarf2_evaluate_loc_desc): Likewise.
1982 (dwarf2_loc_desc_needs_frame): Likewise.
1983 (locexpr_describe_location_1): Likewise.
1984 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1986 (struct dwarf2_loclist_baton): Likewise.
1987 * dwarf2read.c (struct dwarf_block): Likewise.
1988 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1989 (decode_locdesc): Expand SIZE and I to size_t.
1991 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1993 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1995 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1997 * doublest.c (convert_doublest_to_floatformat): If the exponent
1998 is too small, treat the value as zero. If the exponent is too
1999 large, treat the value as infinity.
2001 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2003 * configure.ac: Add --enable-lmcheck configure option.
2004 * configure: Regenerate.
2006 2012-07-25 Tom Tromey <tromey@redhat.com>
2008 * NEWS: Mention maint info bfds.
2009 * gdb_bfd.c (all_bfds): New global.
2010 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2011 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2014 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2016 * configure.tgt: Add v850*-*-rtems*.
2018 2012-07-25 Tom Tromey <tromey@redhat.com>
2020 * macrotab.c (macro_bcache_str): Remove cast.
2022 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2024 * linespec.c (linespec_lexer_lex_number): Update comments,
2025 change the return and add check to make sure the input is
2026 the decimal numbers.
2027 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2028 false, call linespec_lexer_lex_string.
2030 2012-07-24 Tom Tromey <tromey@redhat.com>
2032 * symfile.c (symbol_file_add): Don't open BFD twice.
2034 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2036 * breakpoint.c (create_breakpoint): Store condition for pending
2039 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2041 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2042 (m68k_return_value): Handle complex types like structures.
2043 (m68k_svr4_return_value): Likewise.
2045 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2047 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2048 parameters to bfd_get_section_name.
2050 2012-07-24 Yao Qi <yao@codesourcery.com>
2052 * cli/cli-setshow.c: Handle case 'var_uinteger'
2053 and 'var_zuninteger' together. Handle case 'var_integer' and
2054 'var_zinteger' together.
2056 2012-07-23 Keith Seitz <keiths@redhat.com>
2058 * linespec.c (convert_linespec_to_sal): Don't add
2059 any symbols to the result vector if symbol_to_sal
2062 2012-07-23 Keith Seitz <keiths@redhat.com>
2064 * linespec.c (decode_objc): Record the function name
2067 2012-07-23 Tom Tromey <tromey@redhat.com>
2069 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2071 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2072 (map_vmap): Acquire a reference to the BFD.
2074 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2076 * p-valprint.c (pascal_object_print_value): Replace potentially
2077 unsafe alloca with xmalloc/xfree.
2078 * valops.c (search_struct_method): Likewise.
2080 2012-07-23 Tom Tromey <tromey@redhat.com>
2082 * solib-svr4.c (enable_break): Update.
2083 * bfd-target.h (target_bfd_reopen): Update documentation.
2085 2012-07-23 Tom Tromey <tromey@redhat.com>
2087 * symfile.c (separate_debug_file_exists): Update.
2088 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2089 (reread_symbols): Update.
2090 * elfread.c (build_id_verify): Update.
2091 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2092 bfd_open_maybe_remote.
2094 2012-07-23 Tom Tromey <tromey@redhat.com>
2096 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2098 2012-07-23 Tom Tromey <tromey@redhat.com>
2100 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2102 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2104 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2105 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2107 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2108 * objfiles.c (allocate_objfile): Acquire a new reference.
2109 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2110 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2111 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2112 a cleanup for 'nbfd'.
2113 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2115 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2116 make a cleanup for 'abfd'.
2117 (symbol_file_add): Make a BFD cleanup.
2119 2012-07-23 Tom Tromey <tromey@redhat.com>
2121 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2122 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2123 * corelow.c (core_open): Use gdb_bfd_fopen.
2124 * dsrec.c (load_srec): Use gdb_bfd_openr.
2125 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2126 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2127 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2128 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2129 (gdb_bfd_fdopenr): New functions.
2130 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2131 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2132 (gdb_bfd_fdopenr): Declare.
2133 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2134 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2135 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2136 gdb_bfd_openr_next_archived_file.
2137 (macho_check_dsym): Use gdb_bfd_openr.
2138 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2139 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2140 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2141 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2143 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2144 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2145 gdb_bfd_openr_next_archived_file.
2146 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2148 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2150 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2151 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2152 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2153 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2154 (symfile_bfd_open): Use gdb_bfd_fopen.
2155 (generic_load): Use gdb_bfd_openr.
2156 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2158 2012-07-23 Tom Tromey <tromey@redhat.com>
2160 * bfd-target.c (target_bfd_reopen): Update.
2161 * cli/cli-dump.c (bfd_openr_with_cleanup)
2162 (bfd_openw_with_cleanup): Update.
2163 * corelow.c (core_open): Update.
2164 * dsrec.c (load_srec): Update.
2165 * exec.c (exec_file_attach): Update.
2166 * gcore.c (create_gcore_bfd): Update.
2167 * gdb_bfd.c (gdb_bfd_ref): Return void.
2168 (gdb_bfd_open): Update.
2169 * gdb_bfd.h (gdb_bfd_ref): Return void.
2171 * jit.c (jit_bfd_try_read_symtab): Update.
2172 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2173 * machoread.c (macho_symfile_read_all_oso): Update.
2174 (macho_check_dsym): Update.
2175 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2176 * remote-m32r-sdi.c (m32r_load): Update.
2177 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2178 * rs6000-nat.c (add_vmap): Update.
2179 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2181 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2182 * solib-spu.c (spu_bfd_open): Update.
2183 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2184 * spu-linux-nat.c (spu_bfd_open): Update.
2185 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2186 (generic_load): Update.
2187 * windows-nat.c (windows_make_so): Update.
2189 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2191 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2193 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2195 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2196 SIGTRAMP_FRAME unwinding.
2198 2012-07-20 Doug Evans <dje@google.com>
2200 * NEWS: Document new options "set/show use-deprecated-index-sections",
2201 and delete reference to --use-deprecated-index-sections.
2202 * symfile.h (use_deprecated_index_sections): Delete.
2203 * dwarf2read.c (use_deprecated_index_sections): Make static.
2204 (read_index_from_section): Update wording of how to load
2205 deprecated index sections.
2206 (_initialize_dwarf2_read): New options
2207 "set/show use-deprecated-index-sections".
2208 * main.c (captured_main): Delete --use-deprecated-index-sections.
2210 2012-07-20 Pedro Alves <palves@redhat.com>
2215 * infrun.c (handle_inferior_event) <new thread>: Don't special
2216 case minus_one_ptid.
2217 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2218 * linux-thread-db.c (thread_get_info_callback): Don't return early
2219 if the thread is zombie.
2220 (thread_from_lwp): Change return type to void. Rewrite stale
2222 (attach_thread): Don't return early if the thread is zombie,
2223 instead set its "dying" flag.
2224 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2225 (find_new_threads_callback): Don't return early if the thread is
2228 2012-07-20 Pedro Alves <palves@redhat.com>
2230 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2231 * target.c (target_wait): Likewise.
2232 (str_comma_list_concat_elem, do_option, target_options_to_string):
2234 * target.h (target_options_to_string): Declare.
2236 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2237 Tom Tromey <tromey@redhat.com>
2239 * dwarf2read.c (dwarf_decode_macros)
2240 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2241 DW_MACRO_GNU_transparent_include_alt>: New cases.
2242 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2243 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2245 2012-07-20 Tom Tromey <tromey@redhat.com>
2247 * dwarf2read.c (try_open_dwo_file): Don't call
2248 gdb_bfd_stash_filename.
2250 2012-07-20 Pedro Alves <palves@redhat.com>
2252 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2253 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2254 (i386_process_record): Tweak description comments.
2256 2012-07-20 Pedro Alves <palves@redhat.com>
2258 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2259 (i386_process_record): Use record_read_memory.
2260 * record.c (record_read_memory): New function.
2261 (record_arch_list_add_mem, record_exec_insn): Use
2263 * record.h (record_read_memory): Declare.
2265 2012-07-20 Yao Qi <yao@codesourcery.com>
2267 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2270 2012-07-19 Pedro Alves <palves@redhat.com>
2272 * record.c (record_resume): Ask the target beneath to report all
2275 2012-07-19 Doug Evans <dje@google.com>
2277 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2278 there's no section at address zero.
2279 (dwarf2_record_block_ranges): Ditto.
2281 2012-07-19 Yao Qi <yao@codesourcery.com>
2283 * command.h, remote.c: Fix a typo in comment.
2285 2012-07-19 Tom Tromey <tromey@redhat.com>
2288 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2289 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2290 OP_DECLTYPE>: New cases.
2291 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2292 (type_exp): Add new productions.
2293 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2295 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2297 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2298 OP_DECLTYPE>: New case.
2299 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2301 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2302 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2304 2012-07-19 Tom Tromey <tromey@redhat.com>
2306 * c-exp.y (enum token_flags): New.
2307 (struct token) <cxx_only>: Remove.
2309 (tokentab3, tokentab2, ident_tokens): Update.
2310 (lex_one_token): Update. Handle FLAG_SHADOW.
2312 2012-07-19 Tom Tromey <tromey@redhat.com>
2314 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2315 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2316 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2317 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2318 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2319 type_exp production where appropriate.
2320 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2321 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2322 <UNOP_MEMVAL_TYPE>: New case.
2323 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2324 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2325 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2326 <UNOP_MEMVAL_TYPE>: New case.
2327 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2328 UNOP_REINTERPRET_CAST>: Update.
2329 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2330 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2331 UNOP_REINTERPRET_CAST>: Update.
2332 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2333 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2334 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2337 2012-07-19 Yao Qi <yao@codesourcery.com>
2338 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2341 and case 'var_optional_filename' together.
2342 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2343 instead of add_setshow_optional_filename_cmd for setshow command
2344 'args'. Set completer for 'set args'.
2346 2012-07-18 Doug Evans <dje@google.com>
2348 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2349 * common/gdb_vecs.c: New file, contents from utils.c.
2350 * common/host-defs.h: New file, contents from defs.h.
2351 * utils.h: New file, contents from defs.h.
2352 * defs.h: Move all declarations of objects defined in utils.c
2353 to utils.h (except QUIT() and related).
2354 #include "utils.h", "host-defs.h".
2355 * probe.h (probe_p): Move here from gdb_vecs.h.
2356 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2357 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2358 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2359 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2360 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2361 (COMMON_OBS): Add gdb_vecs.o.
2362 (gdb_vecs.o): New rule.
2364 2012-07-18 Keith Seitz <keiths@redhat.com>
2366 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2367 parameter. If non-zero, use SYMNAME as the canonical name
2370 (convert_linespec_to_sals): Use add_sal_to_sals for
2372 (decode_line_full): No need to "fill in missing canonical names"
2373 anymore. Simply make cleanups for the allocated names.
2375 2012-07-18 Keith Seitz <keiths@redhat.com>
2377 * linespec.c (struct linespec): Constify expression,
2378 source_filename, function_name, and label_name.
2379 (symbol_not_found_error): Make all parameters const.
2380 (linespec_parser_delete): No need to check for NULL
2381 when using xfree. Cast const char * to char * for xfree.
2383 2012-07-18 Keith Seitz <keiths@redhat.com>
2385 * breakpoint.c (invalid_thread_id_error): New function.
2386 (find_condition_and_thread): Use invalid_thread_id_error.
2387 (watch_command_1): Likewise.
2389 2012-07-18 Tom Tromey <tromey@redhat.com>
2391 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2392 * contrib/cc-with-tweaks.sh: New file.
2394 2012-07-18 Tom Tromey <tromey@redhat.com>
2396 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2397 (locate_dwz_sections): Recognize .gdb_index.
2398 (create_cus_from_index_list): New function.
2399 (create_cus_from_index): Use it. Handle .dwz data.
2400 (read_index_from_section): New function, extracted from
2402 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2405 2012-07-18 Tom Tromey <tromey@redhat.com>
2407 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2408 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2409 <is_dwz>: New field.
2410 (struct dwz_file): New.
2411 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2412 (locate_dwz_sections, dwarf2_get_dwz_file)
2413 (get_abbrev_section_for_cu): New functions.
2414 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2415 (read_and_check_type_unit_head): Add abbrev_section argument.
2416 (create_debug_types_hash_table): Update.
2417 (init_cutu_and_read_dies): Use proper abbrev section.
2418 (init_cutu_and_read_dies_no_follow): Likewise.
2419 (set_partial_user): Do nothing if PST==NULL.
2420 (read_comp_units_from_section): New function.
2421 (create_all_comp_units): Use it.
2422 (scan_partial_symbols, partial_die_parent_scope): Update.
2423 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2424 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2425 (find_partial_die): Add offset_in_dwz argument. Update.
2426 (guess_partial_die_structure_name, fixup_partial_die): Update.
2427 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2428 DW_FORM_GNU_strp_alt.
2429 (read_indirect_string_from_dwz): New function.
2430 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2431 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2432 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2433 (follow_die_offset): Add offset_in_dwz argument.
2434 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2435 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2436 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2437 Handle new macro forms.
2438 (dwarf_decode_macros): Update.
2439 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2440 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2441 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2442 (create_debug_types_hash_table): Use correct abbrev section.
2443 (get_debug_line_section): New function.
2444 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2445 (process_full_comp_unit): Pass 'required' argument to
2446 end_symtab_get_static_block.
2447 * buildsym.h (end_symtab_get_static_block): Update.
2448 * buildsym.c (end_symtab_get_static_block): Add 'required'
2450 (end_symtab, end_expandable_symtab): Update.
2452 2012-07-18 Tom Tromey <tromey@redhat.com>
2454 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2456 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2457 (zlib_decompress_section): Remove.
2458 (dwarf2_read_section): Use gdb_bfd_map_section.
2459 (munmap_section_buffer): Remove.
2460 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2461 munmap_section_buffer.
2462 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2463 (struct gdb_bfd_section_data): New.
2464 (free_one_bfd_section): New function.
2465 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2466 (get_section_descriptor, zlib_decompress_section)
2467 (gdb_bfd_map_section): New functions.
2468 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2470 2012-07-18 Tom Tromey <tromey@redhat.com>
2472 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2474 2012-07-18 Tom Tromey <tromey@redhat.com>
2476 * gdb_bfd.c (struct gdb_bfd_data): New.
2477 (gdb_bfd_cache): New global.
2478 (struct gdb_bfd_cache_search): New.
2479 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2480 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2481 * gdb_bfd.h (gdb_bfd_open): Declare.
2483 2012-07-18 Tom Tromey <tromey@redhat.com>
2485 * utils.c (make_cleanup_bfd_unref): Rename from
2486 make_cleanup_bfd_close.
2487 * defs.h (make_cleanup_bfd_unref): Rename from
2488 make_cleanup_bfd_close.
2489 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2490 (bfd_openw_with_cleanup): Update.
2491 * corelow.c (core_open): Update.
2492 * dsrec.c (load_srec): Update.
2493 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2494 * remote-m32r-sdi.c (m32r_load): Update.
2495 * remote-mips.c (mips_load_srec): Update.
2496 (pmon_load_fast): Update.
2497 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2499 (darwin_bfd_open): Update.
2500 * solib.c (solib_bfd_fopen): Update.
2501 * symfile-mem.c (symbol_file_add_from_memory): Update.
2502 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2503 (symfile_bfd_open): Update.
2504 (generic_load): Update.
2506 2012-07-18 Tom Tromey <tromey@redhat.com>
2508 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2509 (pmon_load_fast): Likewise.
2510 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2511 (m32r_upload_command): Likewise.
2512 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2513 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2514 Use make_cleanup_bfd_close.
2516 2012-07-18 Tom Tromey <tromey@redhat.com>
2518 * symfile.c (symfile_bfd_open): Don't copy name. Call
2519 gdb_bfd_stash_filename.
2520 (load_command): Open the new BFD before freeing the old.
2521 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2522 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2523 Call gdb_bfd_stash_filename.
2524 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2525 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2526 gdb_bfd_stash_filename.
2527 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2528 Free found_pathname.
2529 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2530 gdb_bfd_stash_filename.
2531 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2532 * machoread.c (macho_add_oso_symfile): Call
2533 gdb_bfd_stash_filename.
2534 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2535 gdb_bfd_stash_filename.
2536 (macho_check_dsym): Don't copy filename. Call
2537 gdb_bfd_stash_filename.
2538 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2539 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2540 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2541 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2542 * exec.c (exec_close): Don't free the BFD's filename.
2543 (exec_file_attach): Don't copy the filename. Call
2544 gdb_bfd_stash_filename.
2545 * corelow.c (core_close): Don't free the BFD's filename.
2546 (core_open): Call gdb_bfd_stash_filename.
2547 * corefile.c (reopen_exec_file): Remove #if 0 code.
2548 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2550 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2552 2012-07-18 Tom Tromey <tromey@redhat.com>
2554 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2556 (free_dwo_file): Use gdb_bfd_unref.
2557 * cli/cli-dump.c: Include gdb_bfd.h.
2558 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2559 (bfd_openr_with_cleanup): Likewise.
2560 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2562 * utils.c: Include gdb_bfd.h.
2563 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2564 * symfile.c: Include gdb_bfd.h.
2565 (separate_debug_file_exists): Use gdb_bfd_unref.
2566 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2567 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2568 (generic_load): Use gdb_bfd_ref.
2569 (reread_symbols): Use gdb_bfd_unref.
2570 * symfile-mem.c: Include gdb_bfd.h.
2571 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2572 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2573 * solib.c: Include gdb_bfd.h.
2574 (solib_bfd_fopen): Use gdb_bfd_ref.
2575 (solib_bfd_open): Use gdb_bfd_unref.
2576 (free_so_symbols): Use gdb_bfd_unref.
2577 (reload_shared_libraries_1): Use gdb_bfd_unref.
2578 * solib-spu.c: Include gdb_bfd.h.
2579 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2580 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2582 * solib-frv.c: Include gdb_bfd.h.
2583 (enable_break2): Use gdb_bfd_unref.
2584 * solib-dsbt.c: Include gdb_bfd.h.
2585 (enable_break2): Use gdb_bfd_unref.
2586 * solib-darwin.c: Include gdb_bfd.h.
2587 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2589 (darwin_bfd_open): Use gdb_bfd_unref.
2590 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2591 * remote-mips.c: Include gdb_bfd.h.
2592 (mips_load_srec): Use gdb_bfd_ref.
2593 (pmon_load_fast): Use gdb_bfd_ref.
2594 * remote-m32r-sdi.c: Include gdb_bfd.h.
2595 (m32r_load): Use gdb_bfd_ref.
2596 * record.c: Include gdb_bfd.h.
2597 (record_save_cleanups): Use gdb_bfd_unref.
2598 (cmd_record_save): Use gdb_bfd_unref.
2599 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2601 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2602 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2603 * objfiles.c: Include gdb_bfd.h.
2604 (free_objfile): Use gdb_bfd_unref.
2605 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2607 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2608 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2609 (macho_check_dsym): Likewise.
2610 * m32r-rom.c: Include gdb_bfd.h.
2611 (m32r_load): Use gdb_bfd_ref.
2612 (m32r_upload_command): Use gdb_bfd_ref.
2613 * jit.c: Include gdb_bfd.h.
2614 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2615 * gdb_bfd.h: New file.
2616 * gdb_bfd.c: New file.
2617 * gcore.c: Include gdb_bfd.h.
2618 (create_gcore_bfd): Use gdb_bfd_ref.
2619 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2620 (gcore_command): Use gdb_bfd_unref.
2621 * exec.c: Include gdb_bfd.h.
2622 (exec_close): Use gdb_bfd_unref.
2623 (exec_close_1): Use gdb_bfd_unref.
2624 (exec_file_attach): Use gdb_bfd_ref.
2625 * elfread.c: Include gdb_bfd.h.
2626 (build_id_verify): Use gdb_bfd_unref.
2627 * dsrec.c: Include gdb_bfd.h.
2628 (load_srec): Use gdb_bfd_ref.
2629 * corelow.c: Include gdb_bfd.h.
2630 (core_close): Use gdb_bfd_unref.
2631 (core_open): Use gdb_bfd_ref.
2632 * bfd-target.c: Include gdb_bfd.h.
2633 (target_bfd_xclose): Use gdb_bfd_unref.
2634 (target_bfd_reopen): Use gdb_bfd_ref.
2635 * Makefile.in (SFILES): Add gdb_bfd.c.
2636 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2637 (COMMON_OBS): Add gdb_bfd.o.
2639 2012-07-18 Keith Seitz <keiths@redhat.com>
2641 * breakpoint.c (find_condition_and_thread): Initialize
2643 (create_breakpiont): find_condition_and_thread will now
2644 initialize COND_STRING, THREAD, and REST (and TASK).
2645 (addr_string_to_sals): Likewise.
2647 2012-07-18 Pedro Alves <palves@redhat.com>
2649 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2650 Pull the single step breakpoints out of the target.
2652 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2654 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2655 * stap-probe.c (compile_probe_arg): Likewise.
2657 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2659 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2660 (elf_compile_to_ax): Likewise.
2661 * infrun.c (insert_exception_resume_from_probe): Likewise.
2662 (check_exception_resume): Remove `objfile' variable.
2663 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2664 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2665 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2666 (compare_entries): Rename to...
2667 (compare_probes): ...this. Adjust function to work with
2668 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2670 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2672 (print_ui_out_info): Adjust argument to be `struct probe *'.
2673 (info_probes_for_ops): Adjust internal computations to use
2675 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2676 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2677 gen_info_probes_table_values>: Remove `objfile' argument.
2678 (struct probe) <objfile>: New field.
2679 (find_probe_by_pc): Remove `objfile' argument.
2680 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2681 (stap_get_probe_argument_count): Likewise.
2682 (stap_get_arg): Likewise.
2683 (stap_evaluate_probe_argument): Likewise.
2684 (stap_compile_to_ax): Likewise.
2685 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2686 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2687 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2688 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2689 sym_compile_to_ax>: Likewise.
2691 2012-07-18 Terry Guo <terry.guo@arm.com>
2694 * defs.h (GDB_MI_MSG_WIDTH): New.
2695 * ser_base (ser_base_read_error_fd): New function.
2696 (do_ser_base_readchar): Poll error file descriptor as well as
2698 (generic_readchar): Refactor error handling.
2700 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2702 * NEWS: Create a new section for the next release branch.
2703 Rename the section of the current branch, now that it has
2706 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2708 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2709 * version.in: Bump version to 7.5.50.20120718-cvs.
2711 2012-07-17 Keith Seitz <keiths@redhat.com>
2713 * linespec.c (linespec_parse_line_offset): Make parameter
2716 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2719 * f-valprint.c (info_common_command): New variable frame_id.
2720 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2721 * printcmd.c (print_variable_and_value): Extend function comment.
2722 Add comment for invalidated FRAME.
2723 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2724 FI form FRAME_ID after each print_frame_local_vars.
2725 (struct print_variable_and_value_data): Change frame to frame_id.
2726 (do_print_variable_and_value): New variable frame, initialize it from
2727 p->frame_id. Add comment for invalidated FRAME.
2728 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2729 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2730 for invalidated FRAME.
2732 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2733 Pedro Alves <palves@redhat.com>
2735 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2738 2012-07-16 Tom Tromey <tromey@redhat.com>
2740 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2742 2012-07-15 Doug Evans <dje@google.com>
2744 * dwarf2read.c (stmt_list_hash): New struct.
2745 (type_unit_group): Embed "per_cu" member, remove pointer.
2746 New union member "t", move member "tus" into it, all uses updated.
2747 New member "hash", replaces member "line_offset, all uses updated.
2748 (quick_file_names): Replace member "offset" with "hash", all uses
2750 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2751 (hash_file_name_entry, eq_file_name_entry): Call them.
2752 (hash_type_unit_group, eq_type_unit_group): Ditto.
2753 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2754 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2755 (dw2_get_file_names): Update.
2756 (create_type_unit_group): Replace "per_cu" arg with "cu".
2757 All callers updated. Fix "quick" (.gdb_index) handling.
2758 (get_type_unit_group): Replace "per_cu" arg with "cu".
2759 All callers updated.
2760 (build_type_unit_groups): Don't reset tu_stats.
2762 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2763 "tab_cur_size". Change member "tab" to be a htab_t.
2764 (create_filename_seen_cache): Update.
2765 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2766 (filename_seen): Update.
2768 2012-07-13 Doug Evans <dje@google.com>
2770 * symtab.c (filename_seen): Update comment.
2772 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 Doug Evans <dje@google.com>
2775 * buildsym.c (end_symtab_1): Split it to ...
2776 (end_symtab_get_static_block): ... this ...
2777 (end_symtab_from_static_block): ... and this function.
2778 (end_symtab, end_expandable_symtab): Call them.
2779 * buildsym.h (end_symtab_get_static_block)
2780 (end_symtab_from_static_block): New declarations.
2781 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2782 Set its valid CU ranges.
2784 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2786 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2787 DW_OP_GNU_parameter_ref.
2789 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2791 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2792 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2794 2012-07-13 Doug Evans <dje@google.com>
2796 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2797 (filename_seen_cache): New struct.
2798 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2799 (create_filename_seen_cache): New function.
2800 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2801 (filename_seen): Delete arg "first". New arg "cache". All callers
2803 (output_source_filename_data): New struct.
2804 (output_source_filename): Delete arg "first". New arg "data".
2805 All callers updated.
2806 (sources_info): Delete local "first". New locals "data", "cleanups".
2807 Rewrite to use filename_seen_cache.
2808 (add_partial_filename_data): Delete member "first". New member
2809 "filename_seen_cache". All uses updated.
2810 (make_source_files_completion_list): Rewrite to use
2811 filename_seen_cache.
2813 2012-07-12 Doug Evans <dje@google.com>
2815 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2817 2012-07-10 Doug Evans <dje@google.com>
2820 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2821 all_type_unit_groups, type_unit_groups, tu_stats.
2822 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2823 All uses updated. Add type_unit_group to union "s".
2824 (type_unit_group): New struct.
2825 (IS_TYPE_UNIT_GROUP): New macro.
2826 (abbrev_table): Delete unused member "section".
2827 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2828 (dw2_get_cu): Assert not used with type_unit_group.
2829 (dw2_get_primary_cu): New function.
2830 (dw2_build_type_unit_groups_reader): New function.
2831 (dw2_build_type_unit_groups): New function.
2832 (dw2_get_file_names): Assert not called on type units.
2833 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2834 Redo loop to iterate over type unit groups instead of type units.
2835 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2836 (read_abbrev_offset): New function.
2837 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2839 (create_partial_symtab): New function.
2840 (process_psymtab_comp_unit_reader): Assert not used with type units.
2841 Call create_partial_symtab.
2842 (process_psymtab_type_unit): Delete.
2843 (hash_type_unit_group, eq_type_unit_group): New functions.
2844 (allocate_type_unit_groups_table): New function.
2845 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2846 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2847 (create_type_unit_group, get_type_unit_group): New functions.
2848 (tu_abbrev_offset): New struct.
2849 (sort_tu_by_abbrev_offset): New function.
2850 (add_type_unit_group_to_table): New function.
2851 (build_type_unit_groups): New function.
2852 (build_type_psymtabs_reader): New function.
2853 (build_type_psymtab_dependencies): New function.
2854 (build_type_psymtabs): Rewrite.
2855 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2856 is seen in a type unit.
2857 (process_queue): Move symtab expansion debugging printfs here.
2858 Call process_full_type_unit for type units.
2859 (compute_symtab_includes): Assert not called for type units.
2860 (process_cu_includes): Don't call compute_symtab_includes for
2862 (process_full_type_unit): New function.
2863 (process_imported_unit_die): Flag an error if called for type units.
2864 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2865 updated. Assert not called for type units.
2866 (read_file_scope): Call dwarf2_start_symtab.
2867 (setup_type_unit_groups): New function.
2868 (read_type_unit_scope): Rewrite.
2869 (abbrev_table_read_table): Initialize abbrev_table->offset.
2870 (abbrev_table_free_cleanup): New function.
2871 (dwarf2_start_symtab): New function.
2872 (load_full_type_unit): Assert not called for type unit groups.
2873 * buildsym.c (finish_block_internal): New arg "expandable".
2874 All callers updated.
2875 (start_symtab): Move most contents to ...
2876 (restart_symtab): ... here. New function.
2877 (reset_symtab_globals): New function.
2878 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2879 Call reset_symtab_globals.
2880 (end_symtab, end_expandable_symtab): New functions.
2881 (set_missing_symtab, augment_type_symtab): New functions.
2882 * buildsym.h (end_expandable_symtab): Declare.
2883 (augment_type_symtab, restart_symtab): Declare.
2884 * psympriv.h (struct partial_symtab): New member "anonymous".
2885 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2887 (read_psymtabs_with_filename): Ditto.
2888 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2889 (expand_symtabs_matching_via_partial): Ditto.
2890 (dump_psymtab): Update.
2891 * dictionary.c (dict_add_pending): New function.
2892 * dictionary.h (dict_add_pending): Declare.
2894 2012-07-09 Doug Evans <dje@google.com>
2896 * buildsym.c (start_subfile): Remove unnecessary check for
2899 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2901 * dwarf2read.c (load_full_type_unit): Simplify.
2903 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2904 to struct signatured_type **. All uses updated.
2906 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2907 All callers updated.
2909 2012-07-09 Tom Tromey <tromey@redhat.com>
2911 * c-exp.y (check_parameter_typelist): New function.
2912 (parameter_typelist): Call it.
2913 * eval.c (make_params): Handle '(void)' case.
2914 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2917 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2919 * common/linux-ptrace.c: Include gdb_assert.h.
2920 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2921 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2923 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2925 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2926 * linux-nat.c (linux_child_post_attach)
2927 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2929 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2931 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2932 nptl <2.7 bug workaround for core files.
2934 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2938 (save_siginfo): Remove.
2939 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2941 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2942 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2943 * linux-nat.h (struct lwp_info): Remove field siginfo.
2945 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 Code cleanup for the next patch.
2948 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2949 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2951 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2952 (ia64_linux_stopped_data_address):
2953 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2955 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2956 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2957 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2960 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2963 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2964 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2966 2012-07-06 Tom Tromey <tromey@redhat.com>
2968 * c-exp.y (DOTDOTDOT): New token.
2969 (func_mod, exp): Use parameter_typelist.
2970 (parameter_typelist): New production.
2971 (tokentab3): Add "..." token.
2972 * eval.c (make_params): Handle varargs.
2973 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2976 2012-07-06 Tom Tromey <tromey@redhat.com>
2979 * c-exp.y (%union) <tvec>: Change type.
2980 (func_mod): Now uses <tvec> type.
2981 (exp): Update for tvec change.
2982 (direct_abs_decl): Push the typelist.
2983 (func_mod): Return a typelist.
2984 (nonempty_typelist): Update for tvec change.
2985 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2986 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2987 * parse.c (pop_type_list): New function.
2988 (push_typelist): New function.
2989 (follow_types): Handle tp_function_with_arguments.
2990 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2991 (enum type_pieces) <tp_function_with_arguments>: New constant.
2992 (union type_stack_elt) <typelist_val>: New field.
2993 (push_typelist): Declare.
2995 2012-07-06 Tom Tromey <tromey@redhat.com>
2997 * c-exp.y (%union) <type_stack>: New field.
2998 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2999 (ptr_operator_ts): New production.
3001 * parse.c (type_stack_reserve): New function.
3002 (check_type_stack_depth): Use it.
3003 (pop_type_stack, append_type_stack, push_type_stack)
3004 (get_type_stack, type_stack_cleanup): New functions.
3005 (follow_types): Handle tp_type_stack.
3006 (_initialize_parse): Simplify initialization.
3007 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3009 (union type_stack_elt) <stack_val>: New field.
3010 (get_type_stack, append_type_stack, push_type_stack)
3011 (type_stack_cleanup): Declare.
3013 2012-07-06 Tom Tromey <tromey@redhat.com>
3015 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3017 (struct type_stack): New.
3018 * parse.c (type_stack, type_stack_size, type_stack_depth):
3020 (type_stack): New global.
3021 (parse_exp_in_context, check_type_stack_depth)
3022 (insert_into_type_stack, insert_type, push_type, push_type_int)
3023 (insert_type_address_space, pop_type, pop_type_int)
3024 (_initialize_parse): Update.
3026 2012-07-06 Tom Tromey <tromey@redhat.com>
3028 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3031 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3033 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3035 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3036 Jan Kratochvil <jan.kratochvil@redhat.com>
3038 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3039 alloca with xmalloc/xfree.
3041 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3043 * MAINTAINERS (Write After Approval): Add myself to the list.
3045 2012-07-05 Doug Evans <dje@google.com>
3047 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3049 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3051 * ax-gdb.c (cli/cli-utils.h): New include.
3052 (linespec.h): Ditto.
3053 (agent_eval_command_one): New function.
3054 (agent_command_1): Ditto.
3055 (agent_command): Call function agent_command_1.
3056 (agent_eval_command): Ditto.
3057 (_initialize_ax_gdb): Change help for "maint agent"
3058 and "maint agent-eval".
3060 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3062 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3063 * cli/cli-utils.c (check_for_argument): New function.
3064 * cli/cli-utils.h (check_for_argument): Ditto.
3066 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3068 * NEWS: Mention x32 ABI support.
3070 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3072 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3073 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3075 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3076 and pc_regnum_from_eax to -1. Update SP regnum from
3077 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3080 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3083 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3086 * dwarf2expr.h: Include gdbtypes.h.
3087 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3088 these forward declarations.
3089 (cu_offset, sect_offset): Move these ...
3090 * gdbtypes.h: Remove include dwarf2expr.h.
3091 (cu_offset, sect_offset): ... here.
3093 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3095 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3096 (amd64_linux_sigtramp_code): This.
3097 (amd64_x32_linux_sigtramp_code): New.
3098 (LINUX_SIGTRAMP_LEN): Updated.
3099 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3101 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3105 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3107 * config.in: Regenerate.
3108 * configure: Regenerate.
3109 * configure.ac: Remove check for gnu/libc-version.h.
3110 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3112 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3113 variables libc_version, libc_major and libc_minor. Replace sscanf by
3114 inferior_has_bug. Extend the comment.
3116 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3118 * linux-thread-db.c (inferior_has_bug): New function.
3119 (thread_db_find_new_threads_silently): Return boolean as checked by
3120 inferior_has_bug, describe it in the comments.
3121 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3122 earlier. Abort the initialization if it returned non-zero.
3123 (thread_db_new_objfile): Exclude debug files.
3124 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3127 2012-07-02 Doug Evans <dje@google.com>
3129 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3130 related to queue management.
3132 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3133 instead of "debug dwarf2-die" in debugging printfs.
3134 (create_debug_info_hash_table_reader): Ditto.
3135 (create_debug_info_hash_table): Ditto.
3136 (init_dwo_file): Ditto.
3137 (init_cutu_and_read_dies): Add debugging printf.
3138 (init_cutu_and_read_dies_no_follow): Ditto.
3139 (process_psymtab_comp_unit_reader): Ditto.
3141 2012-07-02 Stan Shebs <stan@codesourcery.com>
3143 Add target-side support for dynamic printf.
3144 * NEWS: Mention the additional style.
3145 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3146 (struct bp_location): New field cmd_bytecode.
3147 * breakpoint.c: Include format.h.
3148 (disconnected_dprintf): New global.
3149 (parse_cmd_to_aexpr): New function.
3150 (build_target_command_list): New function.
3151 (insert_bp_location): Call it.
3152 (remove_breakpoints_pid): Skip dprintf breakpoints.
3153 (print_one_breakpoint_location): Ditto.
3154 (dprintf_style_agent): New global.
3155 (dprintf_style_enums): Add dprintf_style_agent.
3156 (update_dprintf_command_list): Add agent case.
3157 (agent_printf_command): New function.
3158 (_initialize_breakpoint): Add new commands.
3159 * common/ax.def (printf): New bytecode.
3160 * ax.h (ax_string): Declare.
3161 * ax-gdb.h (gen_printf): Declare.
3162 * ax-gdb.c: Include cli-utils.h, format.h.
3163 (gen_printf): New function.
3164 (maint_agent_print_command): New function.
3165 (_initialize_ax_gdb): Add maint agent-printf command.
3166 * ax-general.c (ax_string): New function.
3167 (ax_print): Add printf disassembly.
3168 * Makefile.in (SFILES): Add format.c
3169 (COMMON_OBS): Add format.o.
3170 * common/format.h: New file.
3171 * common/format.c: New file.
3172 * printcmd.c: Include format.h.
3173 (ui_printf): Call parse_format_string.
3174 * remote.c (remote_state): New field breakpoint_commands.
3175 (PACKET_BreakpointCommands): New enum.
3176 (remote_breakpoint_commands_feature): New function.
3177 (remote_protocol_features): Add new BreakpointCommands entry.
3178 (remote_can_run_breakpoint_commands): New function.
3179 (remote_add_target_side_commands): New function.
3180 (remote_insert_breakpoint): Call it.
3181 (remote_insert_hw_breakpoint): Ditto.
3182 (_initialize_remote): Add new packet configuration for
3183 target-side breakpoint commands.
3184 * target.h (struct target_ops): New field
3185 to_can_run_breakpoint_commands.
3186 (target_can_run_breakpoint_commands): New macro.
3187 * target.c (update_current_target): Handle
3188 to_can_run_breakpoint_commands.
3190 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3192 Execute -ix and -iex only after system and user gdbinit files.
3193 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3194 processing down after gdbinit files.
3196 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 Add fnmatch-gnu module.
3199 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3200 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3201 * gnulib/aclocal.m4: Regenerate.
3202 * gnulib/config.in: Regenerate.
3203 * gnulib/configure: Regenerate.
3204 * gnulib/import/dummy.c: Remove.
3205 * gnulib/import/Makefile.am: Regenerate.
3206 * gnulib/import/Makefile.in: Likewise.
3207 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3208 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3209 * gnulib/import/alloca.c: New file.
3210 * gnulib/import/alloca.in.h: Likewise.
3211 * gnulib/import/config.charset: Likewise.
3212 * gnulib/import/fnmatch.c: Likewise.
3213 * gnulib/import/fnmatch.in.h: Likewise.
3214 * gnulib/import/fnmatch_loop.c: Likewise.
3215 * gnulib/import/localcharset.c: Likewise.
3216 * gnulib/import/localcharset.h: Likewise.
3217 * gnulib/import/m4/alloca.m4: Likewise.
3218 * gnulib/import/m4/codeset.m4: Likewise.
3219 * gnulib/import/m4/configmake.m4: Likewise.
3220 * gnulib/import/m4/fcntl-o.m4: Likewise.
3221 * gnulib/import/m4/fnmatch.m4: Likewise.
3222 * gnulib/import/m4/glibc21.m4: Likewise.
3223 * gnulib/import/m4/localcharset.m4: Likewise.
3224 * gnulib/import/m4/locale-fr.m4: Likewise.
3225 * gnulib/import/m4/locale-ja.m4: Likewise.
3226 * gnulib/import/m4/locale-zh.m4: Likewise.
3227 * gnulib/import/m4/mbrtowc.m4: Likewise.
3228 * gnulib/import/m4/mbsinit.m4: Likewise.
3229 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3230 * gnulib/import/m4/mbstate_t.m4: Likewise.
3231 * gnulib/import/m4/stdbool.m4: Likewise.
3232 * gnulib/import/m4/wchar_h.m4: Likewise.
3233 * gnulib/import/m4/wctype_h.m4: Likewise.
3234 * gnulib/import/m4/wint_t.m4: Likewise.
3235 * gnulib/import/mbrtowc.c: Likewise.
3236 * gnulib/import/mbsinit.c: Likewise.
3237 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3238 * gnulib/import/mbsrtowcs-state.c: Likewise.
3239 * gnulib/import/mbsrtowcs.c: Likewise.
3240 * gnulib/import/ref-add.sin: Likewise.
3241 * gnulib/import/ref-del.sin: Likewise.
3242 * gnulib/import/stdbool.in.h: Likewise.
3243 * gnulib/import/streq.h: Likewise.
3244 * gnulib/import/strnlen1.c: Likewise.
3245 * gnulib/import/strnlen1.h: Likewise.
3246 * gnulib/import/verify.h: Likewise.
3247 * gnulib/import/wchar.in.h: Likewise.
3248 * gnulib/import/wctype.in.h: Likewise.
3250 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3252 Support shell wildcards for 'set auto-load safe-path'.
3253 * auto-load.c: Include fnmatch.h.
3254 (filename_is_in_dir): Rename to ...
3255 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3256 it. Update function comment. Rename dir_len to pattern_len. New
3257 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3258 messages. Use gdb_filename_fnmatch.
3259 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3261 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3262 * defs.h (gdb_filename_fnmatch): New declaration.
3263 * utils.c: Include fnmatch.h.
3264 (gdb_filename_fnmatch): New function.
3266 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3268 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3269 `-probe' and `-probe-stap' options.
3271 2012-07-01 Yao Qi <yao@codesourcery.com>
3273 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3274 always_inserted_off, and always_inserted_enums.
3275 Change always_inserted_mode's type to 'enum auto_boolean'.
3276 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3278 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3279 of add_setshow_enum_cmd.
3280 * infrun.c: Remove can_use_displaced_stepping_auto,
3281 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3282 can_use_displaced_stepping_enum.
3283 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3284 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3285 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3286 add_setshow_enum_cmd.
3288 2012-06-30 Doug Evans <dje@google.com>
3290 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3291 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3292 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3294 2012-06-29 Doug Evans <dje@google.com>
3296 * linespec.c: #include "stack.h".
3297 (decode_line_with_current_source): Moved here from symtab.c and
3298 renamed from decode_line_spec. All callers updated.
3299 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3300 renamed from decode_line_spec_1. All callers updated.
3301 * linespec.h (decode_line_with_current_source): Move declaration here
3302 from symtab.h and renamed from decode_line_spec.
3303 (decode_line_with_last_displayed): Move declaration here from symtab.h
3304 and renamed from decode_line_spec_1.
3305 * macrocmd.c: #include "linespec.h".
3306 * symtab.c: Remove #include "linespec.h".
3308 2012-06-28 Doug Evans <dje@google.com>
3310 * dwarf2read.c (get_cu_length): New function.
3311 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3312 (create_debug_types_hash_table): Ditto.
3313 (init_cutu_and_read_dies): Ditto.
3314 (init_cutu_and_read_dies_no_follow): Ditto.
3316 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3318 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3319 (struct abbrev_table): Define.
3320 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3322 (init_cutu_and_read_dies): Update.
3323 (abbrev_table_alloc_abbrev): New function. Replaces
3324 dwarf_alloc_abbrev. All callers updated.
3325 (abbrev_table_add_abbrev): New function.
3326 (abbrev_table_lookup_abbrev): New function. Replaces
3327 dwarf2_lookup_abbrev. All callers updated.
3328 (abbrev_table_read_table): New function. Contents moved here from
3329 dwarf2_read_abbrevs.
3330 (dwarf2_read_abbrevs): Call it.
3331 (abbrev_table_free): New function.
3332 (dwarf2_free_abbrev_table): Call it.
3334 2012-06-28 Stan Shebs <stan@codesourcery.com>
3336 * osdata.c (info_osdata_command): Filter out "Title" columns
3338 * common/linux-osdata.c (struct osdata_type): Add title field.
3339 (osdata_table): Add titles to each entry.
3340 (linux_command_xfer_osdata): Add a column for title data.
3342 2012-06-28 Stan Shebs <stan@codesourcery.com>
3344 Make logging work for MI.
3346 * interps.h (interp_set_logging_ftype): New typedef.
3347 (struct interp_procs): New field set_logging_proc.
3348 (current_interp_set_logging): Declare.
3349 * interps.c (current_interp_set_logging): New function.
3350 * cli/cli-logging.c: Include interps.h.
3351 (set_logging_redirect): Call current_interp_set_logging.
3352 (pop_output_files): Ditto.
3353 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3354 * mi/mi-console.h (mi_console_set_raw): Declare.
3355 * mi/mi-console.c (mi_console_set_raw): New function.
3356 * mi/mi-interp.c (saved_raw_stdout): New global.
3357 (mi_set_logging): New function.
3358 (_initialize_mi_interp): Add it to interp procs.
3360 2012-06-28 Doug Evans <dje@google.com>
3362 * symtab.c (lookup_symbol_aux_objfile): Use
3363 ALL_OBJFILE_PRIMARY_SYMTABS.
3365 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3367 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3369 * common/buffer.c: Include inttypes.h and stdint.h.
3370 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3372 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3373 Pedro Alves <palves@redhat.com>
3375 * gdbthread.h (ALL_THREADS): New macro.
3376 (thread_list): Declare.
3377 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3378 going, but instead fall through to the stepping handling.
3379 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3380 the passed in signal. Adjust debug output.
3381 (resume_callback): Rename to ...
3382 (linux_nat_resume_callback): ... this. Pass the thread's last
3383 stop signal, if in "pass" state.
3384 (linux_nat_resume): Adjust to rename.
3385 (stop_wait_callback): New assertion. Don't respawn signals;
3386 instead let the LWP remain with SIGNALLED set.
3387 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3388 * remote.c (append_pending_thread_resumptions): New.
3389 (remote_vcont_resume): Call it.
3390 * target.h (target_resume): Extend comment.
3392 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3394 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3396 2012-06-27 Doug Evans <dje@google.com>
3398 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3399 Delete have_addr_base, unused. All uses updated.
3400 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3401 (dwarf2_get_pc_bounds): Add ranges_base.
3402 (dwarf2_record_block_ranges): Ditto.
3404 2012-06-27 Tom Tromey <tromey@redhat.com>
3407 * varobj.c (varobj_create): Update.
3408 (varobj_set_value): Update.
3409 * tracepoint.c (validate_actionline): Update.
3410 (encode_actions_1): Update.
3411 * parse.c (parse_exp_1): Add 'pc' argument.
3412 (parse_exp_in_context): Add 'pc' argument. Change how
3413 expression_context_pc is set.
3414 (parse_expression): Update.
3415 (parse_field_expression): Update.
3416 * expression.h (parse_exp_1): Update.
3417 * eval.c (parse_to_comma_and_eval): Update.
3418 * breakpoint.c (set_breakpoint_condition): Update.
3419 (update_watchpoint): Update.
3420 (init_breakpoint_sal): Update
3421 (find_condition_and_thread): Update.
3422 (watch_command_1): Update.
3423 (update_breakpoint_locations): Update.
3424 * ada-lang.c (ada_read_renaming_var_value): Update.
3425 (create_excep_cond_exprs): Update.
3427 2012-06-27 Doug Evans <dje@google.com>
3429 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3432 2012-06-26 Doug Evans <dje@google.com>
3434 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3436 (error_check_comp_unit_head): New arg abbrev_section. All callers
3438 (read_and_check_comp_unit_head): Ditto.
3439 (read_and_check_type_unit_head): Ditto.
3441 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3443 New attribute 'last' for gdb.Symtab_and_line.
3444 * NEWS (Python Scripting): Add entry about the new attribute.
3445 * python/py-symtab.c (salpy_get_last): New function which
3446 implements the get method for the 'last' attribute of
3447 gdb.Symtab_and_line.
3448 (sal_object_getset): Add entry for the 'last' attribute.
3450 2012-06-26 Doug Evans <dje@google.com>
3452 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3453 (dwo_sections): Add macinfo, macro.
3454 (dwarf2_locate_dwo_sections): Watch for macro sections.
3455 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3456 All callers updated. Handle DWO files.
3458 * NEWS: Mention new options "set debug dwarf2-read" and
3459 "set debug symtab-create".
3460 * dwarf2read.c (dwarf2_read_debug): New static global.
3461 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3462 (process_queue): Ditto.
3463 (process_full_comp_unit): Ditto.
3464 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3465 * elfread.c (elf_symfile_read): Add debugging printf.
3466 * minsyms.c (install_minimal_symbols): Ditto.
3467 * psymtab.c (allocate_psymtab): Ditto.
3468 * symfile.c (allocate_symtab): Ditto.
3469 * symtab.c (symtab_create_debug): New global.
3470 (_initialize_symtab): Add new option "set debug symtab-create".
3471 * symtab.h (symtab_create_debug): Declare.
3473 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3474 (lookup_dwo_type_unit): Ditto.
3476 2012-06-26 Roland McGrath <roland@hack.frob.com>
3477 H.J. Lu <hongjiu.lu@intel.com>
3479 * amd64-linux-nat.c: Include <sys/user.h>.
3480 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3481 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3482 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3484 * configure.ac: Check if the fs_base and gs_base members of
3485 `struct user_regs_struct' exist.
3486 * config.in: Regenerated.
3487 * configure: Likewise.
3489 2012-06-25 Michael Eager <eager@eagercon.com>
3492 * python/python.c (gdbpy_write): Check for interrupted output.
3494 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3496 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3497 register as a stack alignment in ARM mode.
3499 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3501 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3502 * gnulib/config.in: Regenerate.
3503 * gnulib/configure: Likewise.
3504 * gnulib/import/m4/extensions.m4: Update it.
3505 * gnulib/import/m4/gnulib-common.m4: Likewise.
3506 * gnulib/import/m4/memmem.m4: Likewise.
3507 * gnulib/import/m4/mmap-anon.m4: Likewise.
3508 * gnulib/import/m4/multiarch.m4: Likewise.
3509 * gnulib/import/stdint.in.h: Likewise.
3511 2012-06-24 Yao Qi <yao@codesourcery.com>
3513 * corefile.c (write_memory_with_notification): New.
3514 * gdbcore.h: Declare write_memory_with_notification.
3515 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3516 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3517 * valops.c (value_assign): Likewise.
3518 * python/py-inferior.c (infpy_write_memory): Call
3519 'write_memory_with_notification'.
3521 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3523 * cc-with-index.sh: Use also -ex "set auto-load no".
3525 2012-06-23 Doug Evans <dje@google.com>
3528 * NEWS: Document additions to .gdb_index.
3529 * dwarf2read.c: #include "gdb/gdb-index.h".
3530 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3531 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3532 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3533 (dwarf2_read_index): Recognize version 7.
3534 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3535 block_kind, domain): All callers updated.
3536 (dw2_find_symbol_file): Handle new index CU values.
3537 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3538 (add_index_entry): New args is_static, kind. All callers updated.
3539 (offset_type_compare, uniquify_cu_indices): New functions
3540 (symbol_kind): New function.
3541 (write_psymtabs_to_index): Remove duplicate CU values.
3542 (write_psymtabs_to_index): Write .gdb_index version 7.
3544 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3546 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3547 * configure: Regenerate.
3549 2012-06-20 Yao Qi <yao@codesourcery.com>
3551 * python/py-inferior.c: Update comments of infpy_read_memory
3552 and infpy_write_memory.
3554 2012-06-19 Tom Tromey <tromey@redhat.com>
3557 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3558 (push_type_address_space): Remove.
3559 * parse.c (insert_into_type_stack): New function.
3560 (insert_type): Likewise.
3561 (insert_type_address_space): Rename from push_type_address_space.
3562 Insert tp_space_identifier.
3563 * c-exp.y (ptr_operator): New production.
3564 (abs_decl): Use ptr_operator.
3565 (space_identifier): Call insert_type_address_space.
3566 (ptype): Don't use const_or_volatile_or_space_identifier.
3567 (const_or_volatile_noopt): Call insert_type.
3568 (conversion_type_id, conversion_declarator): New productions.
3569 (operator): Use conversion_type_id.
3571 2012-06-18 Doug Evans <dje@google.com>
3573 * symtab.h (minimal_symbol): New member created_by_gdb.
3574 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3576 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3577 (search_symbols): Call it instead of lookup_symbol.
3578 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3580 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3581 Adjust address for DW_OP_GNU_addr_index.
3582 * dwarf2expr.h (dwarf_expr_context): Update comment.
3583 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3584 all callers updated. Handle TLS vars described with
3585 DW_OP_GNU_const_index.
3586 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3587 and DW_OP_GNU_const_index.
3588 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3590 * block.c (find_block_in_blockvector): Make explicit the fact that we
3591 ignore GLOBAL_BLOCK.
3593 2012-06-18 Tom Tromey <tromey@redhat.com>
3595 * c-exp.y (operator): Remove trailing space after "delete" and
3598 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3599 Jan Kratochvil <jan.kratochvil@redhat.com>
3601 Switch i386 and derived targets to ON_STACK.
3602 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3603 (amd64_dicos_init_abi): Remove its installment.
3604 * dicos-tdep.c (dicos_init_abi): Remove the
3605 set_gdbarch_call_dummy_location call. Update the comment here.
3606 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3607 (i386_dicos_init_abi): Remove its installment.
3608 * i386-tdep.c (i386_push_dummy_code): New function.
3609 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3610 i386_push_dummy_code.
3612 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3614 Remove stale dummy frames.
3615 * breakpoint.c: Include dummy-frame.h.
3616 (longjmp_breakpoint_ops): New variable.
3617 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3618 bp_longjmp_call_dummy.
3619 (bpstat_what, bptype_string, print_one_breakpoint_location)
3620 (init_bp_location): Support bp_longjmp_call_dummy.
3621 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3622 (set_longjmp_breakpoint_for_call_dummy)
3623 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3625 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3626 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3627 FIXME comment and extend the other comment for bp_call_dummy.
3628 (set_longjmp_breakpoint_for_call_dummy)
3629 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3630 * dummy-frame.c: Include gdbthread.h.
3631 (pop_dummy_frame_bpt): New function.
3632 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3633 (dummy_frame_discard): New function.
3634 (cleanup_dummy_frames): Update the comment about longjmps.
3635 * dummy-frame.h (dummy_frame_discard): New declaration.
3636 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3637 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3638 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3639 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3640 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3641 keep_going if IS_LONGJMP and there is no other reason to stop.
3643 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3645 * remote-sim.c (sim_command_completer): Initialize
3648 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3650 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3651 * dwarf2loc.c (call_site_parameter_matches): Support
3652 CALL_SITE_PARAMETER_PARAM_OFFSET.
3653 (needs_dwarf_reg_entry_value): Push stub value.
3654 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3655 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3656 * gdbtypes.h (enum call_site_parameter_kind): New item
3657 CALL_SITE_PARAMETER_PARAM_OFFSET.
3658 (struct call_site.parameter.u): New field param_offset.
3660 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3662 Code cleanup: Generalize call_site.parameter key.
3663 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3664 variable dwarf_reg. New variable kind_u. Update parameters to
3665 push_dwarf_reg_entry_value.
3666 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3667 * dwarf2expr.h (enum call_site_parameter_kind)
3668 (union call_site_parameter_u): Forward declarations.
3669 (struct dwarf_expr_context_funcs): Update parameters and their
3670 description for push_dwarf_reg_entry_value.
3671 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3672 * dwarf2loc.c (call_site_parameter_matches): New function.
3673 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3674 description. Use call_site_parameter_matches.
3675 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3676 Update parameters and their description.
3677 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3678 New variable kind_u. Adjust the caller for updated parameters.
3679 (needs_dwarf_reg_entry_value): Update parameters.
3680 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3681 instead of attr. Update for the changed fields of struct
3682 call_site_parameter.
3683 * gdbtypes.h: Include dwarf2expr.h.
3684 (enum call_site_parameter_kind): New.
3685 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3686 fb_offset into new union u.
3688 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3690 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3691 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3694 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3696 * amd64-linux-nat.c (compat_x32_clock_t): New.
3697 (compat_x32_siginfo_t): Likewise.
3698 (compat_x32_siginfo_from_siginfo): Likewise.
3699 (siginfo_from_compat_x32_siginfo): Likewise.
3700 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3701 and siginfo_from_compat_x32_siginfo for x32.
3703 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3705 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3707 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3709 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3710 instead of gdbarch_ptr_bit.
3711 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3712 (amd64_supply_native_gregset): Likewise.
3713 (amd64_collect_native_gregset): Likewise.
3714 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3715 (amd64_supply_xsave): Likewise.
3716 (amd64_collect_fxsave): Likewise.
3717 (amd64_collect_xsave): Likewise.
3719 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3721 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3722 (amd64_linux_read_description): Check DS segment register for
3725 2012-06-15 Tom Tromey <tromey@redhat.com>
3727 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3728 init_cutu_and_read_dies.
3730 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3732 * MAINTAINERS (Write After Approval): Add myself to the list.
3734 2012-06-15 Tom Tromey <tromey@redhat.com>
3736 * valops.c (value_find_oload_method_list): Now static.
3737 * value.h (value_find_oload_method_list): Don't declare.
3739 2012-06-15 Tom Tromey <tromey@redhat.com>
3741 * valops.c (find_overload_match): Use value_ind.
3743 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3745 * infrun.c (handle_inferior_event): Correct indentation.
3747 2012-06-14 Doug Evans <dje@google.com>
3749 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3750 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3752 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3753 updated. Handle DEBUG_LOC_START_LENGTH.
3754 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3755 (loclist_describe_location): Ditto.
3757 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3760 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3761 after hiding inline functions.
3763 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3765 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3766 _initialize_inf_ttrace.
3768 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3770 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3771 _initialize_hppa_hpux_nat.
3773 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3775 * remote-sim.c (sim_command_completer): Change type of return
3776 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3778 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3779 Jan Kratochvil <jan.kratochvil@redhat.com>
3782 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3783 stack on a 16-byte boundary.
3785 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3787 * jit.c (finalize_symtab): Set function's return type to 'void' by
3790 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3791 H.J. Lu <hongjiu.lu@intel.com>
3793 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3794 Move bits common to both the classic LP64 and the new x32 ILP32
3796 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3797 (amd64_x32_linux_init_abi): New function.
3798 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3801 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3802 * i386-tdep.c (i386_pseudo_register_name): Make public.
3803 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3804 * amd64-tdep.c (amd64_dword_names): Add "eip".
3805 (amd64_x32_pseudo_register_type): New function
3806 (amd64_x32_init_abi): New function.
3808 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3811 * inferior.h (struct inferior_suspend_state): Comment out.
3812 (struct inferior): Comment out the field suspend.
3813 * infrun.c (struct infcall_suspend_state): Comment out the field
3815 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3818 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3820 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3821 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3822 function comment. Return ERROR for unresolved cases. Implement
3823 returning proper NAME.
3824 (yylex): Accept also NAME from classify_inner_name.
3825 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3826 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3828 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3830 2012-06-13 Tom Tromey <tromey@redhat.com>
3832 * breakpoint.c (condition_completer): New function.
3833 (_initialize_breakpoint): Use it.
3834 * value.c (complete_internalvar): New function.
3835 * value.h (complete_internalvar): Declare.
3837 2012-06-13 Tom Tromey <tromey@redhat.com>
3839 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3840 * breakpoint.c (catch_syscall_completer): Return a VEC.
3841 * cli/cli-cmds.c (complete_command): Update.
3842 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3843 (complete_on_enum): Likewise.
3844 * command.h: Include gdb_vecs.h.
3845 (completer_ftype): Change return type.
3846 (complete_on_cmdlist, complete_on_enum): Likewise.
3847 * completer.c (noop_completer, filename_completer)
3848 (location_completer): Return a VEC.
3849 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3851 (expression_completer, complete_line_internal, complete_line)
3852 (command_completer): Return a VEC.
3853 (gdb_completion_word_break_characters, line_completion_function):
3855 * completer.h: Include gdb_vecs.h.
3856 (complete_line, noop_completer, filename_completer)
3857 (expression_completer, location_completer, command_completer):
3859 * f-lang.c (f_word_break_characters): Return a VEC.
3860 * interps.c (interpreter_completer): Return a VEC.
3861 * language.h (struct language_defn)
3862 <la_make_symbol_completion_list>: Return a VEC.
3863 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3864 * symtab.c (free_completion_list): Take a VEC.
3865 (return_val_size, return_val_index): Remove.
3866 (return_val): Now a VEC.
3867 (completion_list_add_name): Update.
3868 (default_make_symbol_completion_list_break_on)
3869 (default_make_symbol_completion_list, make_symbol_completion_list)
3870 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3872 (add_filename_to_list): Update.
3873 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3875 (maybe_add_partial_symtab_filename): Update.
3876 (make_source_files_completion_list): Return a VEC.
3877 * symtab.h (default_make_symbol_completion_list_break_on)
3878 (default_make_symbol_completion_list, make_symbol_completion_list)
3879 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3880 (make_source_files_completion_list): Update.
3882 2012-06-13 Tom Tromey <tromey@redhat.com>
3884 * breakpoint.c (add_catch_command): Use completer_ftype.
3885 * breakpoint.h: Include command.h.
3886 (add_catch_command): Use completer_ftype.
3887 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3888 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3889 Use completer_ftype.
3890 * command.h (completer_ftype): New typedef.
3891 (set_cmd_completer): Use it.
3892 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3895 2012-06-13 Pedro Alves <palves@redhat.com>
3897 Partial revert of previous change.
3899 * serial.c (scb_base): New global.
3900 (serial_for_fd): New.
3901 (serial_open, serial_fdopen_ops): Link new serial in open serials
3903 (do_serial_close): Unlink serial from the open serials chain.
3905 2012-06-12 Pedro Alves <palves@redhat.com>
3907 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3909 (prepare_for_detach): No longer context switch here in non-stop
3911 (fetch_inferior_event): Ditto.
3912 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3913 to the event thread before removing breakpoints. Switch to the
3914 event thread before inserting breakpoints and resuming.
3915 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3916 event thread before resuming.
3917 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3918 Switch to the event thread before removing breakpoints.
3920 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3922 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3923 special characters correctly for the Windows shells. See
3924 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3926 [!__MINGW32__]: Remove extra double quote character from special
3929 2012-06-11 Stan Shebs <stan@codesourcery.com>
3931 * ui-out.h: Remove #if 0 declarations.
3932 * ui-out.c: Remove #if 0 functions.
3934 2012-06-11 Pedro Alves <palves@redhat.com>
3936 * ser-base.c (run_async_handler_and_reschedule): New.
3937 (fd_event, push_event): Use it.
3938 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3939 reference count to 1.
3940 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3942 (serial_is_open, serial_ref, serial_unref): New.
3943 * serial.h (serial_open): Adjust comment.
3944 (serial_is_open): Declare.
3945 (serial_close): Adjust comment.
3946 (serial_ref, serial_unref) Declare.
3947 (struct serial): New field 'refcnt'.
3949 2012-06-11 Pedro Alves <palves@redhat.com>
3951 Remove #if 0'd "connect" command, and unnecessary associated
3952 refcounting and serial reuse bits.
3954 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3955 * serial.c (last_serial_opened): Delete.
3957 (serial_open): Adjust.
3958 (serial_for_fd): Delete.
3959 (serial_fdopen_ops, do_serial_close): Adjust.
3960 (serial_fdopen_ops): Adjust.
3962 2012-06-11 Pedro Alves <palves@redhat.com>
3964 * serial.c (do_serial_close): Remove early return when SCB is
3967 2012-06-11 Tom Tromey <tromey@redhat.com>
3969 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3971 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3973 Fix regression by the "ambiguous linespec" series.
3974 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3975 get_last_displayed_symtab and get_last_displayed_line and depending
3978 2012-06-11 Tom Tromey <tromey@redhat.com>
3980 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3981 (dw2_find_symbol_file): Use it.
3983 2012-06-11 Michael Eager <eager@eagercon.com>
3985 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3986 * mips-linux-tdep.h (mips_signals): New
3988 2012-06-11 Tom Tromey <tromey@redhat.com>
3990 * infrun.c (handle_inferior_event)
3991 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3993 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3994 exception logic in all cases. Update comments.
3995 (insert_longjmp_resume_breakpoint): Set the exception resume
3998 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4000 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4002 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4004 * valarith.c (binop_types_user_defined_p): Fix a typo.
4006 2012-06-08 Yao Qi <yao@codesourcery.com>
4007 Chung-Lin Tang <cltang@codesourcery.com>
4009 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4010 * arch-utils.h: Declare.
4011 * gdbarch.sh: Add return_in_first_hidden_param_p.
4012 * gdbarch.c, gdbarch.h: Regenerated.
4013 * infcall.c (call_function_by_hand): Call
4014 gdbarch_return_in_first_hidden_param_p instead of
4015 language_pass_by_reference.
4017 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4018 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4019 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4020 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4021 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4022 `cplus_return_struct_by_reference'.
4023 (tic6x_return_value): Handle language cplusplus.
4024 (tic6x_return_in_first_hidden_param_p): New.
4025 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4027 2012-06-07 Doug Evans <dje@google.com>
4029 * dwarf2read.c (dwarf2_cu): Add comment.
4031 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4033 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4035 (mips_eabi_push_dummy_call): Likewise.
4036 (mips_n32n64_push_dummy_call): Likewise.
4037 (mips_o32_push_dummy_call): Likewise.
4038 (mips_o64_push_dummy_call): Likewise.
4040 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4042 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4044 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4046 * mips-tdep.c (mips_pseudo_register_type): Use
4047 mips_float_register_p.
4049 2012-06-06 Pedro Alves <palves@redhat.com>
4051 * infrun.c (handle_inferior_event): Remove calls to
4052 reinit_frame_cache that follow a context_switch call.
4054 2012-06-06 Pedro Alves <palves@redhat.com>
4056 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4057 context_switch and remove stale comment.
4059 2012-06-06 Pedro Alves <palves@redhat.com>
4061 * infrun.c (struct execution_control_state): Remove
4062 `new_thread_event' field.
4063 (handle_inferior_event): Simplify new threads handling; don't
4064 resume the inferior if we find a new thread.
4066 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4068 * NEWS: Document the deprecation of SH's 'regs' command.
4069 * inferior.h (all_registers_info): Add function declaration.
4070 * sh-tdep.c (sh_show_regs): Remove variable.
4071 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4072 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4073 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4074 (sh_show_regs_command): Remove functions.
4075 (sh_gdbarch_init): Don't set sh_show_regs.
4076 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4077 'info all-registers'.
4078 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4079 (sh64_show_regs): Remove functions.
4080 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4082 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4084 * configure.ac: Move development=true below AC_INIT.
4085 * configure: Regenerate.
4087 2012-06-05 Stan Shebs <stan@codesourcery.com>
4089 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4092 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4094 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4095 argument as ssize_t.
4096 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4097 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4098 * target.c (target_read_stack, target_write_memory)
4099 (target_write_raw_memory): Likewise.
4100 * target.h (target_read_stack, target_write_memory)
4101 (target_write_raw_memory): Likewise.
4103 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4105 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4106 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4107 * target.c (target_read_memory): Change LEN to ssize_t.
4108 * target.h (target_read_memory): Change LEN to ssize_t.
4110 2012-06-05 Pedro Alves <palves@redhat.com>
4114 * breakpoint.c (until_break_command): Only fetch the selected
4115 frame after decode_line_1.
4117 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4119 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4120 event breakpoint at _start, __start or main if a program
4121 interpreter is not found.
4123 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4125 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4127 * windows-tdep.c: #include "objfiles.h".
4128 (windows_iterate_over_objfiles_in_search_order): New function.
4129 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4130 iterate_over_objfiles_in_search_order gdbarch method to
4131 windows_iterate_over_objfiles_in_search_order.
4132 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4134 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4136 * gdbarch.sh: Add generation of
4137 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4138 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4139 (iterate_over_objfiles_in_search_order): New gdbarch method.
4140 * gdbarch.h, gdbarch.c: Regenerate.
4141 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4143 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4145 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4146 out of lookup_symbol_aux_symtabs.
4147 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4148 call to lookup_symbol_aux_objfile.
4149 (struct global_sym_lookup_data): New type.
4150 (lookup_symbol_global_iterator_cb): New function.
4151 (lookup_symbol_global): Search for symbol using
4152 gdbarch_iterate_over_objfiles_in_search_order and
4153 lookup_symbol_global_iterator_cb.
4154 * findvar.c (struct minsym_lookup_data): New type.
4155 (minsym_lookup_iterator_cb): New function.
4156 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4157 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4158 and minsym_lookup_iterator_cb.
4160 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4162 Revert the following patch:
4163 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4164 try locating the symbol in the symbol's own objfile first, before
4165 extending the search to all objfiles.
4166 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4167 out of lookup_symbol_aux_symtabs.
4168 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4169 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4170 Do not search EXCLUDE_OBJFILE.
4171 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4172 (lookup_symbol_global): Search for matches in the block's objfile
4173 first, before searching all other objfiles.
4175 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4177 * breakpoint.c (find_condition_and_thread): Stop parsing
4178 as soon as the first invalid keyword is found.
4180 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4182 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4184 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4186 * config/djgpp/djcheck.sh: Add copyright header.
4188 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4190 * copyright.py (update_files, main): Fix path to update-copyright
4193 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4195 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4196 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4197 for which a reminder to update by hand is printed.
4199 2012-06-04 Doug Evans <dje@google.com>
4201 * buildsym.c (make_blockvector): Add comment.
4203 2012-06-04 Pedro Alves <palves@redhat.com>
4205 * arch-utils.c (default_gdb_signal_from_target): Delete.
4206 * arch-utils.h (default_gdb_signal_from_target): Delete.
4207 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4208 gdbarch_gdb_signal_from_target_p.
4209 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4211 * gdbarch.h: Regenerate.
4212 * gdbarch.c: Regenerate.
4214 2012-06-04 Pedro Alves <palves@redhat.com>
4216 * gdbarch.sh (gdb_signal_from_target): Mention that the
4217 implementation of the method must be host independent.
4218 * gdbarch.h: Regenerate.
4220 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4222 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4224 (target_read_memory_bfd): New function.
4225 (symbol_file_add_from_memory): Use it.
4227 2012-06-03 Doug Evans <dje@google.com>
4229 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4231 (basic_lookup_transparent_type): Ditto.
4233 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4234 (ALL_PRIMARY_SYMTABS): Use it.
4235 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4236 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4237 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4238 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4239 (basic_lookup_transparent_type): Ditto.
4241 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4243 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4244 it to optimize resolution of demangled name.
4246 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4248 * configure.ac (development): Define new variable.
4249 Call AC_CHECK_LIB for mcheck if $development.
4250 (ERROR_ON_WARNING): Enable it by default only if $development.
4251 * config.in: Regenerate.
4252 * configure: Regenerate.
4254 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4256 * target.c (target_read_memory): Make LEN argument as size_t.
4257 * target.h (target_read_memory): Likewise.
4259 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4261 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4263 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4265 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4266 BookE interface for PowerPC server processors if not available
4267 in the Linux Kernel.
4269 2012-05-31 Keith Seitz <keiths@redhat.com>
4271 * linespec.c (decode_objc): Add cleanup to free
4273 (find_linespec_symbols): Add cleanup to free CLASSES.
4274 * symfile.c (find_separate_debug_file_by_debuglink): Add
4275 cleanup to free DEBUGLINK.
4276 * ui-out.c (clear_header_list): No need to check if
4277 HEADER_NEXT.COLHDR is NULL.
4278 Free HEADER_NEXT.COL_NAME.
4280 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4282 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4285 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4287 * configure.host (gdb_host_cpu): Handle tilegx*.
4288 (gdb_host): Handle tilegx-*-linux*.
4289 * tilegx-linux-nat.c: New file.
4290 * config/tilegx/linux.mh: New file.
4292 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4294 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4295 tilegx-linux-tdep.o.
4296 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4297 tilegx-linux-tdep.c.
4298 * configure.tgt: Handle tilegx-*-linux*.
4299 * tilegx-tdep.h: New file.
4300 * tilegx-tdep.c: New file.
4301 * tilegx-linux-tdep.c: New file.
4302 * regformats/reg-tilegx.dat: New file.
4304 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4306 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4307 accounting of hw watchpoints on ppc.
4309 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4311 * source.c (openp): Expand tilde in path entries.
4313 2012-05-29 Doug Evans <dje@google.com>
4315 * buildsym.c (block_compar): Fix comment.
4316 (end_symtab): Fix and clarify some comments.
4318 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4319 cleanup_undefined_types.
4320 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4321 All callers updated.
4323 2012-05-29 Tom Tromey <tromey@redhat.com>
4325 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4327 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4328 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4330 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4333 2012-05-29 Tristan Gingold <gingold@adacore.com>
4335 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4336 (struct darwin_info): ... New struct.
4337 (solib_darwin_pspace_data): New variable.
4338 (darwin_pspace_data_cleanup): New function.
4339 (get_darwin_info): Likewise.
4340 (darwin_dyld_version_ok, darwin_load_image_infos)
4341 (darwin_solib_get_all_image_info_addr_at_init)
4342 (darwin_solib_read_all_image_info_addr): Add info argument.
4344 (darwin_current_sos): Use per pspace structure.
4345 (darwin_solib_create_inferior_hook): Likewise.
4346 (darwin_clear_solib): Likewise.
4347 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4349 2012-05-28 Pedro Alves <palves@redhat.com>
4351 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4352 block that uses them. Clear ecss before handling each event.
4354 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4356 * solib-svr4.c (svr4_current_sos): New comment on
4357 svr4_current_sos_via_xfer_libraries fall back.
4359 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4361 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4362 it as a fallback for TYPE_IS_OPAQUE.
4363 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4364 symbols for lookup_symbol.
4366 2012-05-24 John Steele Scott <toojays@toojays.net>
4368 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4369 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4370 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4371 (check_producer): ... this new function, which also checks for ICC
4372 and caches the result.
4373 (producer_is_icc): New function.
4374 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4377 2012-05-24 Pedro Alves <palves@redhat.com>
4381 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4382 (default_gdb_signal_to_target): ... this. Add comment.
4383 (default_gdb_signal_from_host): Rename to ...
4384 (default_gdb_signal_from_target): ... this. Add comment.
4385 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4386 (default_gdb_signal_to_target): ... this.
4387 (default_gdb_signal_from_host): Rename to ...
4388 (default_gdb_signal_from_target): ... this.
4389 * corelow.c (core_open): Adjust to naming change. Replace comment.
4390 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4391 (gdb_signal_from_target): ... this. Adjust to
4392 default_gdb_signal_from_host naming change. Extend comment.
4393 (gdb_signal_to_host): Rename to ...
4394 (gdb_signal_to_target): ... this. Adjust to
4395 default_gdb_signal_to_host naming change.
4396 * gdbarch.h, gdbarch.c: Renegerate.
4398 2012-05-24 Pedro Alves <palves@redhat.com>
4402 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4404 2012-05-24 Pedro Alves <palves@redhat.com>
4408 Replace target_signal with gdb_signal throughout.
4410 2012-05-24 Pedro Alves <palves@redhat.com>
4414 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4415 string, instead of reusing the va_list argument.
4417 2012-05-24 Tom Tromey <tromey@redhat.com>
4419 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4422 2012-05-23 Doug Evans <dje@google.com>
4424 * symtab.c (search_symbols): Formatting fixes.
4425 (print_symbol_info): Formatting fixes.
4427 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4428 int64_t change to leb128 API.
4429 (read_encoded_value, decode_frame_entry_1): Ditto.
4430 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4431 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4432 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4433 (execute_stack_op): Ditto.
4434 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4435 (safe_read_uleb128, safe_read_sleb128): Ditto.
4436 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4437 (dwarf2_compile_expr_to_ax): Ditto.
4438 (locexpr_describe_location_piece): Ditto.
4439 (disassemble_dwarf_expression): Ditto.
4440 (locexpr_describe_location_1): Ditto.
4442 2012-05-23 Stan Shebs <stan@codesourcery.com>
4443 Kwok Cheung Yeung <kcy@codesourcery.com>
4445 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4446 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4447 (mi-cmd-info.o): New rule.
4448 * osdata.h (info_osdata_command): New declaration.
4449 * osdata.c (info_osdata_command): Change to non-static.
4450 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4451 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4452 * mi/mi-cmd-info.c: New file.
4454 2012-05-23 Doug Evans <dje@google.com>
4456 * symtab.c (search_symbols): Pass NULL for file_matcher to
4457 expand_symtabs_matching if there are no files to match.
4459 * gdbtypes.c (lookup_typename): Simplify.
4461 2012-05-23 Pedro Alves <palves@redhat.com>
4463 * arch-utils.h (default_target_signal_to_host): Delete.
4464 * arch-utils.c (default_target_signal_to_host): Delete.
4465 * gdbarch.sh (target_signal_to_host): Remove.
4466 * gdbarch.h, gdbarch.c: Regenerate.
4468 2012-05-22 Doug Evans <dje@google.com>
4470 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4472 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4473 (execute_cfa_program): Update to match API of leb128 functions.
4474 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4476 (read_unsigned_leb128, read_signed_leb128): Delete.
4477 (read_initial_length): Change type of buf argument to
4479 (read_encoded_value): Update to match API of leb128 functions.
4480 (decode_frame_entry): Change result to "const gdb_byte *", and
4481 similarly for "start" parameter.
4482 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4483 (dwarf2_build_frame_info): Change local frame_ptr to
4485 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4486 read_uleb128, read_sleb128. All callers updated.
4487 (safe_skip_leb128): New function.
4488 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4489 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4490 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4491 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4492 read_uleb128, read_sleb128.
4493 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4494 (execute_stack_op): Update to match API of leb128 functions.
4495 * dwarf2expr.h: #include "leb128.h".
4496 (read_uleb128, read_sleb128): Delete.
4497 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4498 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4499 * dwarf2loc.c (debug_loc_kind): New enum.
4500 (decode_debug_loc_addresses): New function.
4501 (decode_debug_loc_dwo_addresses): New function.
4502 (dwarf2_find_location_expression): Rewrite.
4503 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4504 (locexpr_describe_location_piece): Ditto.
4505 (disassemble_dwarf_expression): Ditto.
4506 (locexpr_describe_location_1): Ditto.
4507 (loclist_describe_location): Rewrite.
4508 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4509 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4510 (dwarf2_section_buffer_overflow_complaint): Renamed from
4511 dwarf2_macros_too_long_complaint. All callers updated.
4512 (skip_leb128): Delete.
4513 (init_cu_die_reader): Initialize reader->buffer_end.
4514 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4515 (skip_form_bytes): New arg buffer_end. All callers updated.
4516 Replace call to skip_leb128 with gdb_skip_leb128.
4517 (skip_unknown_opcode): New arg mac_end. All callers updated.
4518 (fill_in_loclist_baton): Initialize baton->from_dwo.
4520 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4522 * mips-linux-nat.c (mips_linux_read_description): Use a more
4523 verbose error message.
4525 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4527 * NEWS: Add MIPS/Linux DSP support.
4528 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4529 (SIGCONTEXT_DSPCTL): New macro.
4530 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4531 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4532 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4533 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4534 (N64_SIGCONTEXT_HI3): Likewise.
4535 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4536 (N64_SIGCONTEXT_LO3): Likewise.
4537 (N64_SIGCONTEXT_DSPCTL): Likewise.
4538 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4539 (mips_linux_o32_sigframe_init): Handle DSP registers.
4540 (mips_linux_n32n64_sigframe_init): Likewise.
4542 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4544 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4547 2012-05-22 Pedro Alves <palves@redhat.com>
4549 * target.h (store_waitstatus): Move declaration ...
4550 * inf-child.h (store_waitstatus): ... here.
4551 * target.c: Move inclusion of gdb_wait.h, and ...
4552 (store_waitstatus): ... this ...
4553 * inf-child.c: ... here.
4554 * linux-nat.c: Include inf-child.h.
4555 * rs6000-nat.c: Include inf-child.h.
4556 * spu-linux-nat.c: Include inf-child.h.
4558 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4560 * tracepoint.c (start_tracing): Add missing i18n markup.
4561 (stop_tracing, set_trace_user): Ditto.
4562 (set_trace_notes, set_trace_stop_notes): Ditto.
4564 2012-05-21 Tom Tromey <tromey@redhat.com>
4567 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4569 * value.h (value_cast_pointers): Update.
4570 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4571 (value_cast): Update.
4572 (update_search_result): New function.
4573 (do_search_struct_field): New, from search_struct_field. Check
4574 for ambiguous results.
4575 (search_struct_field): Rewrite.
4576 * infcall.c (value_arg_coerce): Update.
4577 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4578 value_cast_pointers.
4579 * ada-lang.c (ada_convert_actual): Update.
4581 2012-05-21 Tom Tromey <tromey@redhat.com>
4583 * macroexp.c (macro_stringify): Terminate the string.
4585 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4587 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4589 * auto-load.c (auto_load_expand_dir_vars): New function.
4590 (auto_load_safe_path_vec_update): Use it, remove the
4591 substitute_path_component call thanks to it.
4592 (auto_load_objfile_script): Remove the debug_file_directory processing.
4593 Use auto_load_expand_dir_vars, remove the substitute_path_component
4595 * configure: Regenerate.
4596 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4597 path. Escape $ also for $debugdir.
4598 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4599 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4601 2012-05-20 Doug Evans <dje@google.com>
4603 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4604 before use. Check for symtab->includes == NULL before scanning it.
4606 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4608 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4610 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4612 * NEWS: Add microMIPS support and "set mips compression",
4613 "show mips compression" commands.
4614 * mips-tdep.h (mips_isa): New enum.
4615 (gdbarch_tdep): Add mips_isa.
4616 (mips_pc_is_mips16): Update prototype.
4617 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4618 * mips-tdep.c (mips_compression_mips16): New variable.
4619 (mips_compression_micromips): Likewise.
4620 (mips_compression_strings): Likewise.
4621 (mips_compression_string): Likewise.
4622 (is_mips16_isa, is_micromips_isa): New functions.
4623 (is_mips16_addr): Rename to...
4624 (is_compact_addr): ... this.
4625 (unmake_mips16_addr): Likewise to...
4626 (unmake_compact_addr): ... this.
4627 (make_mips16_addr): Likewise to...
4628 (make_compact_addr): ... this.
4629 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4631 (mips_elf_make_msymbol_special): Handle microMIPS code.
4632 (msymbol_is_special): Rename to...
4633 (msymbol_is_mips16): ... this.
4634 (mips_make_symbol_special, mips_pc_is_mips16): Update
4636 (msymbol_is_mips, msymbol_is_micromips): New functions.
4637 (mips16_to_32_reg): Rename to...
4638 (mips_reg3_to_reg): ... this.
4639 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4640 (mips_pc_isa): Likewise.
4641 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4643 (mips_fetch_instruction): Pass return status instead of printing
4644 an error message if requested. Handle microMIPS code. Bail out
4646 (micromips_op): New macro.
4647 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4648 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4649 (b6s4_op, b7s3_reg): Likewise.
4650 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4651 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4652 (mips_insn_size): New function.
4653 (mips32_next_pc): Update mips_fetch_instruction call.
4654 (micromips_relative_offset7): New function.
4655 (micromips_relative_offset10): Likewise.
4656 (micromips_relative_offset16): Likewise.
4657 (micromips_pc_insn_size): Likewise.
4658 (micromips_bc1_pc): Likewise.
4659 (micromips_next_pc): Likewise.
4660 (unpack_mips16): Update mips_fetch_instruction call.
4661 (extended_mips16_next_pc): Update according to change to
4663 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4665 (mips16_scan_prologue): Update mips_fetch_instruction call.
4666 Update according to change to mips16_to_32_reg.
4667 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4668 (mips_insn16_frame_base_sniffer): Likewise.
4669 (micromips_decode_imm9): New function.
4670 (micromips_scan_prologue): Likewise.
4671 (mips_micro_frame_cache): Likewise.
4672 (mips_micro_frame_this_id): Likewise.
4673 (mips_micro_frame_prev_register): Likewise.
4674 (mips_micro_frame_sniffer): Likewise.
4675 (mips_micro_frame_unwind): New variable.
4676 (mips_micro_frame_base_address): New function.
4677 (mips_micro_frame_base): New variable.
4678 (mips_micro_frame_base_sniffer): New function.
4679 (mips32_scan_prologue): Update mips_fetch_instruction call.
4680 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4681 rather than for MIPS16.
4682 (mips_insn32_frame_base_sniffer): Likewise.
4683 (mips_addr_bits_remove): Handle microMIPS code.
4684 (deal_with_atomic_sequence): Rename to...
4685 (mips_deal_with_atomic_sequence): ... this. Update the type
4686 of the variable used to hold an instruction. Remove the ISA bit
4687 check. Update mips_fetch_instruction call.
4688 (micromips_deal_with_atomic_sequence): New function.
4689 (deal_with_atomic_sequence): Likewise.
4690 (mips_about_to_return): Handle microMIPS code. Update
4691 mips_fetch_instruction call.
4692 (heuristic_proc_start): Check for the standard MIPS ISA rather
4693 than for MIPS16. Update mips_pc_is_mips16 and
4694 mips_fetch_instruction calls. Handle microMIPS code.
4695 (mips_push_dummy_code): Handle microMIPS code.
4696 (mips_eabi_push_dummy_call): Likewise.
4697 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4698 (mips_o64_push_dummy_call): Handle microMIPS code.
4699 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4700 (is_delayed): Remove function.
4701 (mips_single_step_through_delay): Replace the call to is_delayed
4702 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4703 Handle microMIPS code.
4704 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4706 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4708 (micromips_in_function_epilogue_p): New function.
4709 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4711 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4713 (gdb_print_insn_mips): Likewise.
4714 (mips_breakpoint_from_pc): Likewise.
4715 (mips_remote_breakpoint_from_pc): New function.
4716 (mips32_instruction_has_delay_slot): Simplify making use of the
4717 updated mips_fetch_instruction interface.
4718 (micromips_instruction_has_delay_slot): New function.
4719 (mips16_instruction_has_delay_slot): Simplify making use of the
4720 updated mips_fetch_instruction interface.
4721 (mips_adjust_breakpoint_address): Check for the standard MIPS
4722 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4723 calls. Handle microMIPS code.
4724 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4725 (mips_skip_trampoline_code): Handle microMIPS code.
4726 (global_mips_compression): New function.
4727 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4728 file flags. Register the microMIPS remote breakpoint handler
4729 and heuristic frame unwinder.
4730 (show_mips_compression): New function.
4731 (_initialize_mips_tdep): Add the "set mips compression" and
4732 "show mips compression" commands.
4734 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4739 * amd64-darwin-tdep.c:
4740 * arm-symbian-tdep.c:
4744 * bfin-linux-tdep.c:
4751 * dwarf2-frame-tailcall.c:
4780 * microblaze-tdep.c:
4781 * mips-linux-tdep.c:
4789 * python/py-finishbreakpoint.c:
4790 * python/py-inferior.c:
4791 * python/py-infthread.c:
4795 * remote-m32r-sdi.c:
4799 * rs6000-aix-tdep.c:
4825 * amd64-darwin-tdep.c:
4826 * arm-symbian-tdep.c:
4827 * arm-tdep.c: Delete unused variables.
4829 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4831 Rename $ddir to $datadir.
4832 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4833 * auto-load.c (auto_load_safe_path_vec_update)
4834 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4835 * configure: Regenerate.
4836 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4837 Likewise. Remove the 'use $ddir' help string.
4839 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4841 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4842 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4844 2012-05-18 Tom Tromey <tromey@redhat.com>
4847 * valprint.h (struct value_print_options) <symbol_print>: New
4849 * valprint.c (user_print_options): Add default for symbol_print.
4850 (show_symbol_print): New function.
4851 (generic_val_print): Respect symbol_print.
4852 (_initialize_valprint): Add "print symbol" setting.
4853 * f-valprint.c (f_val_print): Respect symbol_print.
4854 * c-valprint.c (c_val_print): Respect symbol_print.
4856 * printcmd.c (print_address_symbolic): Return int. Ignore some
4858 (print_address_demangle): Return int.
4859 * defs.h: (print_address_symbolic): Return int.
4860 * value.h (print_address_demangle): Return int.
4862 2012-05-18 Tom Tromey <tromey@redhat.com>
4864 * valprint.c (val_print_string): Don't print leading space.
4865 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4866 print space before string or vtbl.
4867 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4869 * jv-valprint.c (java_value_print): Print space before string.
4870 * go-valprint.c (print_go_string): Print space before string.
4871 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4872 space before string.
4873 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4874 space before string or vtbl.
4875 * auxv.c (fprint_target_auxv): Print space after address.
4877 2012-05-18 Tom Tromey <tromey@redhat.com>
4879 * printcmd.c (print_address_demangle): Remove special case for 0.
4881 2012-05-18 Tom Tromey <tromey@redhat.com>
4883 * printcmd.c (print_address_demangle): Add 'opts' argument.
4884 * p-valprint.c (pascal_val_print): Update.
4885 * jv-valprint.c (java_val_print): Update.
4887 * valprint.c (generic_val_print): Update.
4888 (print_function_pointer_address): Add 'options' argument. Remove
4889 'addressprint' argument. Update.
4890 * m2-valprint.c (print_unpacked_pointer): Update.
4891 * gnu-v3-abi.c (print_one_vtable): Update.
4892 (gnuv3_print_method_ptr): Update.
4893 * f-valprint.c (f_val_print): Update.
4894 * cp-valprint.c (cp_print_value_fields): Update.
4895 * valprint.h (print_function_pointer_address): Update.
4896 * c-valprint.c (c_val_print): Update.
4898 2012-05-18 Tom Tromey <tromey@redhat.com>
4900 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4901 directly corresponding to the found psymtab.
4902 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4903 (dw2_find_pc_sect_symtab): Use it.
4904 * block.h (blockvector_contains_pc): Declare.
4905 * block.c (find_block_in_blockvector): New function.
4906 (blockvector_for_pc_sect): Use it.
4907 (blockvector_contains_pc): New function.
4909 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4911 * mips-tdep.h (mips_write_pc): New prototype.
4912 * mips-tdep.c (mips_write_pc): Make external, add description.
4913 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4916 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4918 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4920 (mips_unwind_pc, mips_write_pc): Likewise.
4921 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4924 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4926 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4927 proc_warn, proc_error, proc_get_status, proc_flags,
4928 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4929 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4930 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4931 proc_stop_process, proc_wait_for_stop, proc_run_process,
4932 proc_set_traced_signals, proc_set_traced_faults,
4933 proc_set_traced_sysentry, proc_set_traced_sysexit,
4934 proc_set_held_signals, proc_get_held_signals,
4935 proc_get_traced_signals, proc_get_traced_faults,
4936 proc_get_traced_sysentry, proc_get_traced_sysexit,
4937 proc_clear_current_fault, proc_set_current_signal,
4938 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4939 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4940 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4941 proc_get_current_thread, proc_get_current_thread,
4942 proc_get_current_thread, proc_update_threads,
4943 proc_update_threads, proc_update_threads, proc_update_threads,
4944 proc_iterate_over_threads, procfs_find_new_threads,
4945 procfs_pid_to_str): Make static. Remove advance declaration.
4946 (proc_cursig): Make static. Conditionalized defintion on
4947 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4948 (proc_syscall, proc_set_kill_on_last_close,
4949 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4950 proc_get_pending_signals, proc_get_signal_actions,
4951 proc_trace_signal, proc_ignore_signal): Delete.
4953 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4955 * coffread.c (cs_section_address): Passing proper argument for
4956 `bfd_get_section_vma'.
4957 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4958 `bfd_get_section_flags'.
4959 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4960 `bfd_get_section_vma'.
4962 2012-05-16 Tom Tromey <tromey@redhat.com>
4965 * macrotab.h: (macro_define_special): Declare.
4966 (enum macro_special_kind): New.
4967 (struct macro_definition) <argc, replacement>: Update comments.
4968 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4969 (macro_define_object_internal): New function.
4970 (macro_define_object): Use it.
4971 (macro_define_special): New function.
4972 (fixup_definition): New function.
4973 (macro_lookup_definition, foreach_macro_in_scope)
4974 (foreach_macro): Use fixup_definition.
4975 * macroexp.h (macro_stringify): Declare.
4976 * macroexp.c (free_buffer_return_text): New function.
4977 (stringify): Constify "arg".
4978 (macro_stringify): New function.
4979 * dwarf2read.c (macro_start_file): Call macro_define_special.
4981 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4982 Maciej W. Rozycki <macro@mips.com>
4984 * breakpoint.h (bp_location): Add related_address member.
4985 * inferior.h (get_return_value): Take a pointer to struct value
4986 instead of struct type for the function requested.
4987 * value.h (using_struct_return): Likewise.
4988 * gdbarch.sh (return_value): Take a pointer to struct value
4989 instead of struct type for the function requested.
4990 * breakpoint.c (set_breakpoint_location_function): Initialize
4991 related_address for bp_gnu_ifunc_resolver breakpoints.
4992 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4993 requested function's address to gdbarch_return_value.
4994 * eval.c (evaluate_subexp_standard): Pass the requested
4995 function's address to using_struct_return.
4996 * infcall.c (call_function_by_hand): Pass the requested
4997 function's address to using_struct_return and
4998 gdbarch_return_value.
4999 * infcmd.c (get_return_value): Take a pointer to struct value
5000 instead of struct type for the function requested.
5001 (print_return_value): Update accordingly.
5002 (finish_command_continuation): Likewise.
5003 * stack.c (return_command): Pass the requested function's
5004 address to using_struct_return and gdbarch_return_value.
5005 * value.c (using_struct_return): Take a pointer to struct value
5006 instead of struct type for the function requested. Pass the
5007 requested function's address to gdbarch_return_value.
5008 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5009 New function_value member, replacing function_type.
5010 (bpfinishpy_dealloc): Update accordingly.
5011 (bpfinishpy_pre_stop_hook): Likewise.
5012 (bpfinishpy_init): Likewise. Record the requested function's
5014 * mips-tdep.c (mips_fval_reg): New enum.
5015 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5016 words put in GP registers.
5017 (mips_o64_push_dummy_call): Update a comment.
5018 (mips_o32_return_value): Take a pointer to struct value instead
5019 of struct type for the function requested and use it to check if
5020 using the MIPS16 calling convention. Return the designated
5021 general purpose registers for floating-point values returned in
5023 (mips_o64_return_value): Likewise.
5024 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5025 (ppc_sysv_abi_broken_return_value): Likewise.
5026 (ppc64_sysv_abi_return_value): Likewise.
5027 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5028 value instead of struct type for the function requested.
5029 * amd64-tdep.c (amd64_return_value): Likewise.
5030 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5031 * arm-tdep.c (arm_return_value): Likewise.
5032 * avr-tdep.c (avr_return_value): Likewise.
5033 * bfin-tdep.c (bfin_return_value): Likewise.
5034 * cris-tdep.c (cris_return_value): Likewise.
5035 * frv-tdep.c (frv_return_value): Likewise.
5036 * h8300-tdep.c (h8300_return_value): Likewise.
5037 (h8300h_return_value): Likewise.
5038 * hppa-tdep.c (hppa32_return_value): Likewise.
5039 (hppa64_return_value): Likewise.
5040 * i386-tdep.c (i386_return_value): Likewise.
5041 * ia64-tdep.c (ia64_return_value): Likewise.
5042 * iq2000-tdep.c (iq2000_return_value): Likewise.
5043 * lm32-tdep.c (lm32_return_value): Likewise.
5044 * m32c-tdep.c (m32c_return_value): Likewise.
5045 * m32r-tdep.c (m32r_return_value): Likewise.
5046 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5047 * m68k-tdep.c (m68k_return_value): Likewise.
5048 (m68k_svr4_return_value): Likewise.
5049 * m88k-tdep.c (m88k_return_value): Likewise.
5050 * mep-tdep.c (mep_return_value): Likewise.
5051 * microblaze-tdep.c (microblaze_return_value): Likewise.
5052 * mn10300-tdep.c (mn10300_return_value): Likewise.
5053 * moxie-tdep.c (moxie_return_value): Likewise.
5054 * mt-tdep.c (mt_return_value): Likewise.
5055 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5056 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5057 (ppc_sysv_abi_broken_return_value): Likewise.
5058 (ppc64_sysv_abi_return_value): Likewise.
5059 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5060 * rl78-tdep.c (rl78_return_value): Likewise.
5061 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5062 * rx-tdep.c (rx_return_value): Likewise.
5063 * s390-tdep.c (s390_return_value): Likewise.
5064 * score-tdep.c (score_return_value): Likewise.
5065 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5066 (sh_return_value_fpu): Likewise.
5067 * sh64-tdep.c (sh64_return_value): Likewise.
5068 * sparc-tdep.c (sparc32_return_value): Likewise.
5069 * sparc64-tdep.c (sparc64_return_value): Likewise.
5070 * spu-tdep.c (spu_return_value): Likewise.
5071 * tic6x-tdep.c (tic6x_return_value): Likewise.
5072 * v850-tdep.c (v850_return_value): Likewise.
5073 * vax-tdep.c (vax_return_value): Likewise.
5074 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5075 * xtensa-tdep.c (xtensa_return_value): Likewise.
5076 * gdbarch.c: Regenerate.
5077 * gdbarch.h: Regenerate.
5079 2012-05-15 Tom Tromey <tromey@redhat.com>
5081 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5083 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5085 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5086 of command in two error message.
5088 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5090 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5092 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5094 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5096 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5098 * NEWS (show auto-load scripts-directory): Add forgotten command.
5100 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5102 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5105 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5107 * amd64-tdep.c: Include features/i386/x32.c and
5108 features/i386/x32-avx.c.
5109 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5110 initialize_tdesc_x32_avx.
5112 2012-05-14 Stan Shebs <stan@codesourcery.com>
5115 * breakpoint.h (enum bptype): New type bp_dprintf.
5116 (struct breakpoint): New field extra_string.
5117 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5118 (create_breakpoint): Add extra_string arg.
5119 * breakpoint.c (dprintf_breakpoint_ops): New.
5120 (is_breakpoint): Add bp_dprintf.
5121 (bpstat_what): Add dprintf case.
5122 (bptype_string): Ditto.
5123 (print_one_breakpoint_location): Ditto.
5124 (init_bp_location): Ditto.
5125 (bkpt_print_mention): Ditto.
5126 (dprintf_style_enums): New array.
5127 (dprintf_style): New global.
5128 (dprintf_function): New global.
5129 (dprintf_channel): New global.
5130 (update_dprintf_command_list): New function.
5131 (update_dprintf_commands): New function.
5132 (init_breakpoint_sal): Add extra_string argument, handle it.
5133 (create_breakpoint_sal): Add extra_string argument.
5134 (create_breakpoints_sal): Add extra_string argument, update callers.
5135 (find_condition_and_thread): Add extra argument.
5136 (create_breakpoint): Add extra_string argument, record it.
5137 (dprintf_command): New function.
5138 (break_command_1): Add arg to create_breakpoint call.
5139 (handle_gnu_v3_exceptions): Ditto.
5140 (trace_command): Ditto.
5141 (ftrace_command): Ditto.
5142 (strace_command): Ditto.
5143 (bkpt_print_mention): Add dprintf case.
5144 (create_breakpoint_sal_default): Add extra_string argument.
5145 (_initialize_breakpoint): Add new commands.
5146 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5147 * python/py-breakpoint.c (bppy_init): Ditto.
5148 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5150 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5152 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5154 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5156 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5159 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5161 Add a new function gdb.find_pc_line to the Python API.
5162 * NEWS (Python Scripting): Add entry about the new function.
5163 * python/python.c (gdbpy_find_pc_line): New function which
5164 implements gdb.find_pc_line.
5165 (GdbMethods): Add entry for the new function.
5167 2012-05-12 Pedro Alves <palves@redhat.com>
5169 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5170 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5172 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5174 * inferior.c: Include completer.h
5175 (initialize_inferiors): Set completer of add-inferior to
5178 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5180 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5181 gdbarch_ptr_bit for x32 core dump.
5183 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5185 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5186 and features/i386/x32-avx-linux.c.
5188 2012-05-11 Stan Shebs <stan@codesourcery.com>
5189 Kwok Cheung Yeung <kcy@codesourcery.com>
5191 * NEWS: Describe new info os commands.
5192 * common/linux-osdata.c (PID_T, TIME_T): Define.
5193 (MAX_PID_T_STRLEN): New.
5194 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5196 (command_from_pid): Add comment. Change to use PID_T.
5197 (commandline_from_pid): Change to use PID_T.
5198 (user_from_pid): Add comment.
5199 (get_process_owner): Add comment. Change to use PID_T and
5201 (get_number_of_cpu_cores): Add comment.
5202 (get_cores_used_by_process): Add comment. Change to use PID_T and
5204 (linux_xfer_osdata_processes): Change to use PID_T and
5206 (compare_processes): New function.
5207 (linux_xfer_osdata_processgroups): New function.
5208 (linux_xfer_osdata_threads): Change to use PID_T.
5209 (linux_xfer_osdata_fds): New function.
5210 (format_socket_state, print_sockets): New functions.
5211 (union socket_addr): New union.
5212 (linux_xfer_osdata_isockets): New function.
5213 (time_from_time_t, group_from_gid): New functions.
5214 (linux_xfer_osdata_shm): New function.
5215 (linux_xfer_osdata_sem): New function.
5216 (linux_xfer_osdata_msg): New function.
5217 (linux_xfer_osdata_modules): New function.
5218 (osdata_table): Add new entries.
5219 * common/buffer.c (buffer_xml_printf): Add support for long and
5220 long long format specifiers.
5222 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5224 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5225 (tdesc_x32_avx_linux): Likewise.
5227 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 Implement multi-component --with-auto-load-dir.
5230 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5232 (--with-auto-load-safe-path): Update the default value description.
5233 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5235 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5236 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5237 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5238 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5239 "set auto-load scripts-directory".
5240 * config.in: Regenerate.
5241 * configure: Regenerate.
5242 * configure.ac (--with-auto-load-dir): New configure option.
5243 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5245 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 Provide $ddir substitution for --with-auto-load-safe-path.
5248 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5250 * auto-load.c: Include observer.h.
5251 (auto_load_safe_path_vec_update): Call substitute_path_component for
5252 each component. New variable ddir_subst.
5253 (auto_load_gdb_datadir_changed): New function.
5254 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5255 AUTO_LOAD_SAFE_PATH. New comment.
5256 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5257 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5258 * config.in: Regenerate.
5259 * configure: Regenerate.
5260 * configure.ac (--auto-load-safe-path): Rename
5261 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5262 GDB_DATADIR/auto-load.
5263 * defs.h (substitute_path_component): New declaration.
5264 * top.c: Include observer.h.
5265 (set_gdb_datadir): New function.
5266 (init_main): Install it for "set data-directory".
5267 * utils.c (substitute_path_component): New function.
5269 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5271 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5272 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5273 DEBUG_FILE_DIRECTORY. Handle multiple components of
5274 DEBUG_FILE_DIRECTORY.
5276 2012-05-10 Tom Tromey <tromey@redhat.com>
5278 * dwarf2read.c (recursively_write_psymbols): New function.
5279 (write_psymtabs_to_index): Use it.
5281 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5283 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5284 (load_partial_comp_unit): Update.
5285 (queue_comp_unit): Add argument 'pretend_language'.
5286 (process_queue): Update.
5287 (psymtab_to_symtab_1): Skip dependencies that have a user.
5288 (load_partial_comp_unit_reader): Give meaning to the 'data'
5290 (load_full_comp_unit): Add 'pretend_language' argument.
5291 (process_full_comp_unit): Add 'pretend_language' argument. Set
5293 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5295 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5296 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5298 (prepare_one_comp_unit): Add 'pretend_language' argument.
5300 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5301 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5302 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5303 (dw2_do_instantiate_symtab): Check whether symtab was read in
5305 (dw2_instantiate_symtab): Add assertion. Call
5306 process_cu_includes.
5307 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5308 (partial_symtab_p): New typedef.
5309 (set_partial_user): New function.
5310 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5311 (scan_partial_symbols): Add imported CU to imported_symtabs.
5312 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5313 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5314 (get_symtab, recursively_compute_inclusions)
5315 (compute_symtab_includes, process_cu_includes)
5316 (process_imported_unit_die): New functions.
5317 (process_die) <DW_TAG_imported_unit>: New case.
5318 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5320 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5322 (struct partial_die_info) <locdesc>: Remove.
5324 (process_psymtab_comp_unit): Add 'read_partial' argument.
5326 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5327 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5328 (add_partial_symbol): Update.
5329 (process_die): Handle DW_TAG_partial_unit.
5330 (read_file_scope): Update comment.
5331 (load_partial_dies): Handle DW_TAG_imported_unit.
5332 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5333 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5335 2012-05-10 Tom Tromey <tromey@redhat.com>
5337 * cc-with-dwz.sh: New file.
5339 2012-05-10 Tom Tromey <tromey@redhat.com>
5341 * symtab.h (struct symtab) <includes, user>: New fields.
5342 * block.h (struct block_iterator) <d, idx, which>: New fields.
5343 * block.c (initialize_block_iterator, find_iterator_symtab)
5344 (block_iterator_step, block_iter_name_step)
5345 (block_iter_match_step): New functions.
5346 (block_iterator_first, block_iterator_next)
5347 (block_iter_name_first, block_iter_name_next)
5348 (block_iter_match_first, block_iter_match_next): Rewrite.
5349 (get_block_symtab): New function.
5351 2012-05-10 Tom Tromey <tromey@redhat.com>
5353 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5355 * jit.c (finalize_symtab): Use allocate_global_block,
5357 * buildsym.c (finish_block_internal): New function, from old
5359 (finish_block): Rewrite.
5360 (end_symtab): Use finish_block_internal, set_block_symtab.
5361 * block.h (struct global_block): New.
5362 (allocate_global_block, set_block_symtab): Declare.
5363 * block.c (allocate_global_block, set_block_symtab): New
5366 2012-05-10 Tom Tromey <tromey@redhat.com>
5368 * psymtab.c (partial_map_expand_apply): Add assertion.
5369 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5370 (psymtab_to_symtab): Find unshared psymtab.
5371 (dump_psymtab): Print including psymtabs.
5372 (recursively_search_psymtabs): New function.
5373 (expand_symtabs_matching_via_partial): Use it.
5374 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5376 (enum psymtab_search_status): New.
5378 2012-05-10 Tom Tromey <tromey@redhat.com>
5380 * tracepoint.c (scope_info): Update.
5381 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5382 (find_pc_sect_symtab, search_symbols)
5383 (default_make_symbol_completion_list_break_on)
5384 (make_file_symbol_completion_list): Update.
5385 * symmisc.c (dump_symtab_1): Update.
5386 * stack.c (print_frame_args, iterate_over_block_locals)
5387 (print_frame_labels, iterate_over_block_arg_vars): Update.
5388 * python/py-block.c (block_object) <dict>: Remove.
5390 <iter>: Change type.
5391 (blpy_iter): Update.
5392 (blpy_block_syms_iternext): Update.
5393 * psymtab.c (map_block): Use block iterators.
5394 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5395 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5396 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5397 * infrun.c (check_exception_resume): Update.
5398 * cp-support.c (make_symbol_overload_list_block): Update.
5399 * coffread.c (patch_opaque_types): Update.
5400 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5401 * block.h (struct block_iterator): New.
5402 (block_iterator_first, block_iterator_next, block_iter_name_first)
5403 (block_iter_name_next, block_iter_match_first)
5404 (block_iter_match_next): Declare.
5405 (ALL_BLOCK_SYMBOLS): Redefine.
5406 * block.c (block_iterator_first, block_iterator_next)
5407 (block_iter_name_first, block_iter_name_next)
5408 (block_iter_match_first, block_iter_match_next): New functions.
5409 * ada-lang.c (ada_add_block_symbols)
5410 (ada_make_symbol_completion_list): Use block iterator.
5412 2012-05-10 Tom Tromey <tromey@redhat.com>
5414 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5415 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5416 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5417 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5418 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5421 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5423 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5424 print-file-var-lib2.c, print-file-var-main.c and
5425 print-file-var.exp (located in gdb/testsuite/gdb.base).
5427 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5429 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5430 try locating the symbol in the symbol's own objfile first, before
5431 extending the search to all objfiles.
5432 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5433 out of lookup_symbol_aux_symtabs.
5434 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5435 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5436 Do not search EXCLUDE_OBJFILE.
5437 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5438 (lookup_symbol_global): Search for matches in the block's objfile
5439 first, before searching all other objfiles.
5441 2012-05-10 Tristan Gingold <gingold@adacore.com>
5443 * printcmd.c (set_command): Add pre/post inc/dec.
5445 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5447 * gdb.1: Document -ex option.
5449 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5451 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5452 * inferior.h (AT_SYMBOL): Delete.
5454 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5456 * mips-tdep.c (mips_push_dummy_code): New function.
5457 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5458 ON_STACK and install mips_push_dummy_code as our gdbarch
5459 push_dummy_code routine.
5461 2012-05-09 Pedro Alves <palves@redhat.com>
5463 * target.c (set_maintenance_target_async_permitted): Rename to ...
5464 (set_target_async_command): ... this.
5465 (show_maintenance_target_async_permitted): Rename to ...
5466 (show_target_async_command): ... this.
5467 (initialize_targets): Adjust.
5469 2012-05-08 Doug Evans <dje@google.com>
5471 * go-exp.y (classify_name): Add missing assignment of fields of
5474 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5476 Display the ">" prompt in interactive mode while reading canned
5477 commands, even when the current interpreter is MI.
5479 * interps.c (interp_set_temp): New function.
5481 * interps.h (interp_set_temp): Add prototype.
5483 * cli/cli-script.c (restore_interp): New cleanup function.
5484 (read_command_lines): Temporarily override the current interpreter
5485 with CLI and arrange for restoring the original one.
5487 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5489 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5491 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5493 * probe.c (parse_probes): Move conditional to check for
5494 debuginfo files from here...
5495 * stap-probe.c (stap_get_probes): ... to here.
5497 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5498 H.J. Lu <hongjiu.lu@intel.com>
5500 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5501 `movl %esp, %ebp' for the X32 ABI.
5503 2012-05-07 Tom Tromey <tromey@redhat.com>
5505 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5507 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5508 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5509 (dwarf_stack_op_name): Remove.
5510 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5511 (decode_locdesc): Use get_DW_OP_name.
5512 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5513 (dwarf2_compile_expr_to_ax): Likewise.
5514 (disassemble_dwarf_expression): Likewise.
5515 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5517 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5519 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5520 (sh_linux_sigtramp_cache): New function.
5521 (sh_linux_sigreturn_init): New function.
5522 (sh_linux_rt_sigreturn_init): New function.
5523 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5525 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5527 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5528 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5529 (sh_linux_init_abi): Add init calls to register new tramp_frame
5530 definitions under 32-bit SH, update comments.
5532 2012-05-07 Pedro Alves <palves@redhat.com>
5536 * amd64-linux-tdep.c: Include glibc-tdep.h.
5537 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5538 gdbarch_skip_solib_resolver callback.
5540 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5542 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5543 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5544 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5545 (add_auto_load_safe_path): Change the error message.
5546 (_initialize_auto_load): Change the "safe-path" help text.
5547 * configure: Regenerate
5548 * configure.ac (--without-auto-load-safe-path): Set
5549 WITH_AUTO_LOAD_SAFE_PATH to /.
5551 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5553 * stap-probe.h: Do not include unecessary `probe.h'.
5555 2012-05-05 Alan Modra <amodra@gmail.com>
5557 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5558 bfd_und_section_ptr.
5559 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5560 and bfd_com_section_ptr.
5562 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5564 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5566 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5568 * windows-nat.h (segment_register_p_ftype): New typedef.
5569 (windows_set_segment_register_p): Add declaration.
5570 * windows-nat.c (segment_register_p): New static global.
5571 (windows_set_segment_register_p): New function.
5572 (do_windows_fetch_inferior_registers): Add special handling
5573 for segment registers.
5574 * amd64-windows-nat.c: #include "amd64-tdep.h".
5575 (amd64_windows_segment_register_p): New function.
5576 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5577 * i386-windows-nat.c: #include "i386-tdep.h".
5578 (i386_windows_segment_register_p): New function.
5579 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5581 2012-05-04 Tristan Gingold <gingold@adacore.com>
5583 * printcmd.c (set_command): Emit a warning if the expression is not
5586 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5588 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5591 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5593 * stap-probe.c (stap_is_operator): Change declaration.
5594 (stap_get_opcode): Change return value.
5595 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5596 `stap_parse_argument_1'.
5598 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5600 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5603 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5605 Add two new methods global_block and static_block to gdb.Symtab
5607 * NEWS (Python scripting): Add entry about the new methods.
5608 * python/py-symtab.c (stpy_global_block): New function which
5609 implements the gdb.Symtab.global_block() method.
5610 (stpy_static_block): New function which implements the
5611 gdb.Symtab.static_block() method.
5612 (symtab_object_methods): Add entries for the two new methods.
5614 2012-05-03 Doug Evans <dje@google.com>
5616 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5619 2012-05-03 Yao Qi <yao@codesourcery.com>
5621 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5623 (i386_process_record): Ditto.
5625 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5627 * infcall.c (unwind_on_signal_p): Make static.
5629 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5631 * sol-thread.c (solaris_pid_to_str): Make static.
5632 (_initialize_sol_thread): Add prototype.
5634 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5636 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5638 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5640 * MAINTAINERS: Remove myself.
5642 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5644 Fix --without-auto-load-safe-path for MS-Windows host platform.
5645 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5647 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5649 * gdb_curses.h: Undefine KEY_EVENT before including curses
5650 headers. Move "#undef MOUSE_MOVED" before any curses header
5653 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5655 * features/i386/i386-mmx-linux.c: Regenerate.
5656 * features/rs6000/powerpc-32.c: Likewise.
5657 * features/rs6000/powerpc-32l.c: Likewise.
5658 * features/rs6000/powerpc-403.c: Likewise.
5659 * features/rs6000/powerpc-403gc.c: Likewise.
5660 * features/rs6000/powerpc-405.c: Likewise.
5661 * features/rs6000/powerpc-505.c: Likewise.
5662 * features/rs6000/powerpc-601.c: Likewise.
5663 * features/rs6000/powerpc-602.c: Likewise.
5664 * features/rs6000/powerpc-603.c: Likewise.
5665 * features/rs6000/powerpc-604.c: Likewise.
5666 * features/rs6000/powerpc-64.c: Likewise.
5667 * features/rs6000/powerpc-64l.c: Likewise.
5668 * features/rs6000/powerpc-750.c: Likewise.
5669 * features/rs6000/powerpc-860.c: Likewise.
5670 * features/rs6000/powerpc-e500.c: Likewise.
5671 * features/rs6000/powerpc-e500l.c: Likewise.
5672 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5673 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5674 * features/rs6000/rs6000.c: Likewise.
5676 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5678 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5680 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5681 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5682 (stap_parse_argument) <e>: Likewise.
5683 (handle_stap_probe) <byte_order>: Likewise.
5685 2012-04-30 Doug Evans <dje@google.com>
5687 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5688 init_and_read_dies_worker. All callers updated.
5689 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5690 replaced with init_cutu_and_read_dies.
5691 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5692 (find_partial_die): Remove FIXME. Don't free current CU.
5694 2012-04-30 Sterling Augustine <saugustine@google.com>
5696 * contrib: New directory.
5697 * contrib/test_pubnames_and_indexes.py: New file.
5699 2012-04-30 Doug Evans <dje@google.com>
5701 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5702 All callers updated.
5703 (init_cu_die_reader): Verify the section is non-empty.
5704 (dwarf_decode_line_header): Don't dereference section->asection
5705 until we know the section is present.
5707 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5709 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5712 2012-04-29 Yao Qi <yao@codesourcery.com>
5714 * gdb-code-style.el: New hook gdb-markup-hook
5715 and gdb-comment-hook.
5717 2012-04-28 Doug Evans <dje@google.com>
5719 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5720 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5722 * symfile.h (dwarf2_debug_sections): New member addr.
5723 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5724 (ctx_no_get_addr_index): New function.
5725 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5726 (ctx_no_get_addr_index): Declare.
5727 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5728 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5729 (dwarf_expr_ctx_funcs): Update.
5730 (needs_get_addr_index): New function.
5731 (needs_frame_ctx_funcs): Update.
5732 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5733 * dwarf2read.c: #include "gdbcore.h".
5734 (dwarf2_per_objfile): New members addr, dwo_files.
5735 (dwarf2_elf_names): Add entry for addr.
5736 (struct dwo_section_names): New type.
5737 (dwo_section_names): New static global.
5738 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5739 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5740 old debug_types_section member updated to use this.
5741 Rename member debug_types_section to info_or_types_section,
5743 (signatured_type): Rename member type_offset to type_offset_in_tu,
5744 all uses updated. New member type_offset_in_section.
5745 (struct dwo_sections): New type.
5746 (struct dwo_unit): New type.
5747 (struct dwo_file): New type.
5748 (die_reader_specs): New member dwo_file.
5749 (dwarf2_locate_sections): Watch for .debug_addr.
5750 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5751 (dwarf2_read_section): Get bfd of section from bfd's asection,
5753 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5754 (create_signatured_type_table_from_index): Initialize
5755 sig_type->info_or_types_section.
5756 (dw2_get_file_names): Statement lists for type units with DWO files
5757 live in the DWO file.
5758 (create_debug_types_hash_table): New function.
5759 (create_all_type_units): Rewrite.
5760 (init_cu_die_reader): New arg dwo_file, all callers updated.
5761 (init_and_read_dies_worker): Get section from
5762 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5763 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5764 continue reading the CU/TU from there.
5765 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5766 updated. Get section from this_cu->info_or_types_section.
5767 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5768 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5769 DW_FORM_GNU_str_index.
5770 (hash_dwo_file, eq_dwo_file): New functions.
5771 (allocate_dwo_file_hash_table): New function.
5772 (hash_dwo_unit, eq_dwo_unit): New functions.
5773 (allocate_dwo_unit_table): New function.
5774 (dwarf2_locate_dwo_sections): New function.
5775 (struct create_dwo_info_table_data): New type.
5776 (create_debug_info_hash_table_reader): New function.
5777 (create_debug_info_hash_table): New function.
5778 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5779 (lookup_dwo_file): New function.
5780 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5781 (free_dwo_file, free_dwo_file_cleanup): New functions.
5782 (free_dwo_file_from_slot, free_dwo_files): New functions.
5783 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5784 (dwarf2_record_block_ranges): Ditto.
5785 (read_partial_die): Ditto.
5786 (process_enumeration_scope): Update to use type_offset_in_section.
5787 (read_full_die_1): New function.
5788 (read_full_die): Rewrite.
5789 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5790 DW_FORM_GNU_str_index.
5791 (read_addr_index_1, read_addr_index): New functions.
5792 (read_addr_index_from_leb128): New function.
5793 (struct dwarf2_read_addr_index_data): New type.
5794 (dwarf2_read_addr_index_reader): New function.
5795 (dwarf2_read_addr_index): New function.
5796 (read_str_index): New function.
5797 (leb128_size): New function.
5798 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5799 If processing a type unit from a DWO file, get the line section
5801 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5802 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5803 DW_FORM_GNU_str_index.
5804 (lookup_die_type): Check whether section offset of type's die is
5805 known before looking it up. Remove assert. Condition can
5806 legimately happen for inter-cu type references.
5807 (dwarf_attr_name): Handle Fission attributes.
5808 (dwarf_form_name): Handle Fission forms.
5809 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5810 DW_FORM_GNU_str_index.
5811 (follow_die_sig): Update to use type_offset_in_section.
5812 (decode_locdesc): New case DW_OP_GNU_addr_index.
5813 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5814 DW_FORM_GNU_str_index.
5815 (cu_debug_loc_section): New function.
5816 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5817 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5818 Free DWO files if present.
5819 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5821 Refactor DIE reading.
5822 * dwarf2read.c (dwarf2_per_objfile): Replace members
5823 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5824 (die_reader_specs): New member "die_section". Temporarily make
5825 member "buffer" non-const, pending constifying all info_ptr uses.
5826 (die_reader_func_ftype): New typedef.
5827 (dw2_get_file_names_reader): New function.
5828 (dw2_get_file_names): Rewrite.
5829 (read_and_check_type_unit_head): Rename arg type_offset to
5831 (create_all_type_units): Improve debugging message.
5832 Improve dummy type unit check.
5833 (init_cu_die_reader): New arg "section". All callers updated.
5834 (init_and_read_dies_worker): New function.
5835 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5836 (init_cutu_and_read_dies_no_follow): New function.
5837 (init_cutu_and_read_dies_simple): New function.
5838 (process_psymtab_comp_unit_reader): New function.
5839 (process_psymtab_comp_unit): Delete args section,
5840 is_debug_types_section. Rewrite. All callers updated.
5841 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5842 All callers updated. Rewrite.
5843 (load_partial_comp_unit_reader): New function.
5844 (load_partial_comp_unit): Rewrite.
5845 (skip_children): New arg reader. Delete args buffer, cu.
5846 All callers updated.
5847 (skip_one_die): New arg reader. Delete args buffer, cu.
5848 All callers updated.
5849 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5850 All callers updated.
5851 (load_full_comp_unit_reader): New function.
5852 (load_full_comp_unit): Rewrite.
5853 (read_comp_unit): Delete.
5854 (read_die_and_children_1): Delete, contents moved ...
5855 (read_die_and_children): ... here.
5856 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5857 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5858 All callers updated.
5859 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5860 All callers updated.
5861 (find_partial_die): Rewrite load_all_dies support.
5862 (read_attribute_value): New arg reader. Delete args abfd, cu.
5863 All callers updated.
5864 (read_attribute): New arg reader. Delete args abfd, cu.
5865 All callers updated.
5866 (load_full_type_unit): Add assert.
5867 (read_signatured_type_reader): New function.
5868 (read_signatured_type): Rewrite.
5869 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5870 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5871 All callers updated. Set per_cu->cu = NULL after freeing it.
5872 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5873 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5874 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5875 (set_die_type): Update.
5876 (get_die_type_at_offset): Update.
5877 (read_file_scope): Call prepare_one_comp_unit.
5878 (read_type_unit_scope): Ditto.
5879 (prepare_one_comp_unit): Set producer if present.
5881 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5883 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5884 gettext function on `error'.
5886 2012-04-27 Doug Evans <dje@google.com>
5888 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5891 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5892 Tom Tromey <tromey@redhat.com>
5894 * breakpoint.c (struct breakpoint_objfile_data)
5895 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5896 <exception_probes>: New fields.
5897 (free_breakpoint_probes): New function.
5898 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5899 `_Unwind_DebugHook'.
5900 (create_exception_master_breakpoint): Likewise.
5901 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5902 * infrun.c: Including necessary header files for handling SystemTap
5904 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5905 via SystemTap probes.
5906 (check_exception_resume): Remove `func' argument. Handle exception
5907 unwinding breakpoint set via a SystemTap probe.
5908 (insert_exception_resume_from_probe): New function.
5910 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5911 Tom Tromey <tromey@redhat.com>
5912 Jan Kratochvil <jan.kratochvil@redhat.com>
5914 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5915 (COMMON_OBS): Likewise.
5916 (HFILES_NO_SRCDIR): Add `probe'.
5917 * NEWS: Mention support for static and SystemTap probes.
5918 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5919 SystemTap probes' arguments parser.
5920 * arm-linux-tdep.c: Including headers needed to perform the parsing
5921 of SystemTap probes' arguments.
5922 (arm_stap_is_single_operand): New function.
5923 (arm_stap_parse_special_token): Likewise.
5924 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5925 probes' arguments parser.
5926 * ax-gdb.c (require_rvalue): Removing static declaration.
5927 (gen_expr): Likewise.
5928 * ax-gdb.h (gen_expr): Declaring function.
5929 (require_rvalue): Likewise.
5930 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5931 (bkpt_probe_breakpoint_ops): New variable.
5932 (momentary_breakpoint_from_master): Set the `probe' value.
5933 (add_location_to_breakpoint): Likewise.
5934 (break_command_1): Using proper breakpoint_ops according to the
5935 argument passed by the user in the command line.
5936 (bkpt_probe_insert_location): New function.
5937 (bkpt_probe_remove_location): Likewise.
5938 (bkpt_probe_create_sals_from_address): Likewise.
5939 (bkpt_probe_decode_linespec): Likewise.
5940 (tracepoint_probe_create_sals_from_address): Likewise.
5941 (tracepoint_probe_decode_linespec): Likewise.
5942 (tracepoint_probe_breakpoint_ops): New variable.
5943 (trace_command): Using proper breakpoint_ops according to the
5944 argument passed by the user in the command line.
5945 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5946 static probes on breakpoints and tracepoints.
5947 * breakpoint.h (struct bp_location) <probe>: New field.
5948 * cli-utils.c (skip_spaces_const): New function.
5949 (extract_arg): Likewise.
5950 * cli-utils.h (skip_spaces_const): Likewise.
5951 (extract_arg): Likewise.
5952 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5953 * configure.ac: Append `stap-probe.o' to be generated when ELF
5955 * configure: Regenerate.
5956 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5957 * elfread.c: Include `probe.h' and `arch-utils.h'.
5958 (probe_key): New variable.
5959 (elf_get_probes): New function.
5960 (elf_get_probe_argument_count): Likewise.
5961 (elf_evaluate_probe_argument): Likewise.
5962 (elf_compile_to_ax): Likewise.
5963 (elf_symfile_relocate_probe): Likewise.
5964 (stap_probe_key_free): Likewise.
5965 (elf_probe_fns): New variable.
5966 (elf_sym_fns): Add `sym_probe_fns' value.
5967 (elf_sym_fns_lazy_psyms): Likewise.
5968 (elf_sym_fns_gdb_index): Likewise.
5969 (_initialize_elfread): Initialize objfile cache for static
5971 * gdb_vecs.h (struct probe): New forward declaration.
5972 (probe_p): New VEC declaration.
5973 * gdbarch.c: Regenerate.
5974 * gdbarch.h: Regenerate.
5975 * gdbarch.sh (stap_integer_prefix): New variable.
5976 (stap_integer_suffix): Likewise.
5977 (stap_register_prefix): Likewise.
5978 (stap_register_suffix): Likewise.
5979 (stap_register_indirection_prefix): Likewise.
5980 (stap_register_indirection_suffix): Likewise.
5981 (stap_gdb_register_prefix): Likewise.
5982 (stap_gdb_register_suffix): Likewise.
5983 (stap_is_single_operand): New function.
5984 (stap_parse_special_token): Likewise.
5985 (struct stap_parse_info): Forward declaration.
5986 * i386-tdep.c: Including headers needed to perform the parsing
5987 of SystemTap probes' arguments.
5988 (i386_stap_is_single_operand): New function.
5989 (i386_stap_parse_special_token): Likewise.
5990 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5991 probes' arguments parser.
5992 * i386-tdep.h (i386_stap_is_single_operand): New function.
5993 (i386_stap_parse_special_token): Likewise.
5994 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5995 * mipsread.c (ecoff_sym_fns): Likewise.
5996 * objfiles.c (objfile_relocate1): Support relocation for static
5998 * parse.c (prefixify_expression): Remove static declaration.
5999 (initialize_expout): Likewise.
6000 (reallocate_expout): Likewise.
6001 * parser-defs.h (initialize_expout): Declare function.
6002 (reallocate_expout): Likewise.
6003 (prefixify_expression): Likewise.
6004 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6005 of SystemTap probes' arguments.
6006 (ppc_stap_is_single_operand): New function.
6007 (ppc_stap_parse_special_token): Likewise.
6008 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6009 probes' arguments parser.
6010 * probe.c: New file, for generic statically defined probe support.
6011 * probe.h: Likewise.
6012 * s390-tdep.c: Including headers needed to perform the parsing of
6013 SystemTap probes' arguments.
6014 (s390_stap_is_single_operand): New function.
6015 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6016 probes' arguments parser.
6017 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6018 * stap-probe.c: New file, for SystemTap probe support.
6019 * stap-probe.h: Likewise.
6020 * symfile.h: Include `gdb_vecs.h'.
6021 (struct sym_probe_fns): New struct.
6022 (struct sym_fns) <sym_probe_fns>: New field.
6023 * symtab.c (init_sal): Initialize `probe' field.
6024 * symtab.h (struct probe): Forward declaration.
6025 (struct symtab_and_line) <probe>: New field.
6026 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6028 (stop_tracing): Likewise.
6029 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6031 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6032 Tom Tromey <tromey@redhat.com>
6034 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6035 and to compile agent expressions.
6036 * infrun.c (siginfo_make_value): New argument `ignore'.
6037 (siginfo_funcs): New struct.
6038 (_initialize_infrun): New argument when calling
6039 `create_internalvar_type_lazy'.
6040 * thread.c (thread_id_make_value): New argument `ignore'.
6041 (thread_funcs): New struct.
6042 (_initialize_thread): New argument when calling
6043 `create_internalvar_type_lazy'.
6044 * tracepoint.c (sdata_make_value): New argument `ignore'.
6045 (sdata_funcs): New struct.
6046 (_initialize_tracepoint): New argument when calling
6047 `create_internalvar_type_lazy'.
6048 * value.c (make_value): New struct.
6049 (create_internalvar_type_lazy): New argument `data'.
6050 (compile_internalvar_to_ax): New function.
6051 (value_of_internalvar): Properly handling `make_value' case.
6052 (clear_internalvar): Likewise.
6053 (show_convenience): Adding `TRY_CATCH' block.
6054 * value.h (internalvar_make_value): Delete, replace by...
6055 (struct internalvar_funcs): ... this.
6056 (create_internalvar_type_lazy) <fun>: Delete argument.
6057 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6058 (compile_internalvar_to_ax): New function.
6059 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6060 (tlb_funcs): New struct.
6061 (_initialize_windows_tdep): New argument when calling
6062 `create_internalvar_type_lazy'.
6064 2012-04-27 Mark Wielaard <mjw@redhat.com>
6066 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6067 see whether it is an address or a constant offset from DW_AT_low_pc.
6068 (dwarf2_record_block_ranges): Likewise.
6069 (read_partial_die): Likewise.
6071 2012-04-26 Mark Wielaard <mjw@redhat.com>
6073 * MAINTAINERS (Write After Approval): Add myself to the list.
6075 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6077 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6078 (proc_prettyprint_signal): Likewise.
6079 (proc_prettyprint_faultset): Likewise.
6080 (proc_prettyprint_fault): Likewise.
6081 (proc_prettyprint_actionset): Likewise.
6082 (proc_prettyprint_flags): Move to new proc-flags.c section.
6083 (proc_prettyfprint_flags): New prototype.
6084 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6085 (proc_syscall, proc_cursig): Likewise.
6086 (proc_set_kill_on_last_close): Likewise.
6087 (proc_unset_kill_on_last_close): Likewise.
6088 (proc_set_watchpoint): Make static.
6089 (proc_delete_dead_threads): Likewise.
6090 (procfs_set_watchpoint): Likewise.
6091 (_initialize_procfs): Add prototype.
6092 * proc-events.c: Include proc-utils.h.
6093 (init_syscall_table): Make static.
6094 * proc-api.c (_initialize_proc_api): Add prototype.
6095 * proc-flags.c: Include proc-utils.h.
6097 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6099 * configure.ac: Add AC_ARG_PROGRAM.
6100 * configure: Regenerate.
6102 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6104 Fix DW_AT_lower_bound defaults for DWARF-4+.
6105 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6106 high. New variable low_default_is_valid. Implement DWARF-4+
6107 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6108 no default by the DWARF standard.
6110 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6111 Maciej W. Rozycki <macro@codesourcery.com>
6113 * infrun.c (handle_inferior_event): Move the check for return
6114 trampolines ahead of the check for function trampolines.
6115 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6116 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6117 (mips_str_mips16_ret_stub): Likewise.
6118 (mips_str_call_fp_stub): Likewise.
6119 (mips_str_call_stub): Likewise.
6120 (mips_str_fn_stub): Likewise.
6121 (mips_str_pic): Likewise.
6122 (mips_in_frame_stub): New function.
6123 (mips_unwind_pc): Return the return address rather than the PC
6124 if the PC of an intermediate frame is inside a call thunk.
6125 (mips_is_stub_suffix): New function.
6126 (mips_is_stub_mode): Likewise.
6127 (mips_get_mips16_fn_stub_pc): Likewise.
6128 (mips_skip_mips16_trampoline_code): Update to handle all the
6129 currently generated stub types. Don't recurse into __fn_stub
6130 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6131 Use cooked register accesses.
6132 (mips_in_return_stub): Reintroduce function.
6133 (mips_skip_trampoline_code): Traverse trampolines recursively.
6134 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6136 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6140 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6142 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6143 * features/arm-with-m-vfp-d16.xml: New file. Describes
6144 Cortex-M with VFPv4-sp-d16 FPU register layout.
6145 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6146 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6147 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6148 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6149 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6151 2012-04-25 Doug Evans <dje@google.com>
6153 * cli/cli-decode.c (print_doc_line): Use stream instead of
6156 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6158 * features/arm-with-iwmmxt.c: Regenerate.
6159 * features/arm-with-m-fpa-layout.c: Likewise.
6160 * features/arm-with-m.c: Likewise.
6161 * features/arm-with-neon.c: Likewise.
6162 * features/arm-with-vfpv2.c: Likewise.
6163 * features/arm-with-vfpv3.c: Likewise.
6164 * features/mips-dsp-linux.c: Likewise.
6165 * features/mips-linux.c: Likewise.
6166 * features/mips64-dsp-linux.c: Likewise.
6167 * features/mips64-linux.c: Likewise.
6168 * features/s390-linux32.c: Likewise.
6169 * features/s390-linux32v1.c: Likewise.
6170 * features/s390-linux32v2.c: Likewise.
6171 * features/s390-linux64.c: Likewise.
6172 * features/s390-linux64v1.c: Likewise.
6173 * features/s390-linux64v2.c: Likewise.
6174 * features/s390x-linux64.c: Likewise.
6175 * features/s390x-linux64v1.c: Likewise.
6176 * features/s390x-linux64v2.c: Likewise.
6177 * features/tic6x-c62x-linux.c: Likewise.
6178 * features/tic6x-c62x.c: Likewise.
6179 * features/tic6x-c64x-linux.c: Likewise.
6180 * features/tic6x-c64x.c: Likewise.
6181 * features/tic6x-c64xp-linux.c: Likewise.
6182 * features/tic6x-c64xp.c: Likewise.
6183 * target-descriptions.c: Only generate `field_type' and `type'
6184 variables when needed.
6186 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6188 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6190 2012-04-25 Doug Evans <dje@google.com>
6192 Initial pass at Go language support.
6194 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6196 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6197 (YYFILES): Add go-exp.c.
6198 (YYOBJ): Add go-exp.o.
6199 (local-maintainer-clean): Delete go-exp.c.
6200 * defs.h (enum language): Add language_go.
6201 * dwarf2read.c: #include "go-lang.h".
6202 (fixup_go_packaging): New function.
6203 (process_full_comp_unit): Call it when processing Go CUs.
6204 (dwarf2_physname): Add Go support.
6205 (read_file_scope): Handle missing language spec for GNU Go.
6206 (set_cu_language): Handle DW_LANG_Go.
6207 * go-exp.y: New file.
6208 * go-lang.h: New file.
6209 * go-lang.c: New file.
6210 * go-typeprint.c: New file.
6211 * go-valprint.c: New file.
6212 * symtab.c: #include "go-lang.h".
6213 (symbol_set_language): Handle language_go.
6214 (symbol_find_demangled_name, symbol_set_names): Ditto.
6215 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6217 2012-04-24 Jim Meyering <meyering@redhat.com>
6219 avoid a few strncpy-induced buffer overruns
6220 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6221 fname and psargs before trying to concatenate.
6222 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6223 "name" before applying strchr.
6225 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6227 * CONTRIBUTE: Use unified diff instead of context diff when
6230 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6232 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6233 code. Handle JR.HB correctly.
6235 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6238 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6239 with the other MIPS16 helpers.
6241 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6243 * observer.sh: Conditionally declare `args', thus cleaning up
6244 unused instances of this variable.
6246 2012-04-24 Yao Qi <yao@codesourcery.com>
6248 Revert this patch to allow breakpoint always-inserted
6250 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6251 * breakpoint.c: Include record.h.
6252 (breakpoints_always_inserted_mode): Return false when the record
6255 * breakpoint.c (iterate_over_bp_locations): New.
6256 * breakpoint.h: Declare.
6257 New typedef walk_bp_location_callback.
6258 * record.c (record_open): Call record_init_record_breakpoints.
6259 (record_sync_record_breakpoints): New.
6260 (record_init_record_breakpoints): New.
6261 * NEWS: Mention supporting breakpoint always-inserted mode in
6264 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6266 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6269 2012-04-24 Yao Qi <yao@codesourcery.com>
6271 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6272 (is_catchpoint): ... it.
6273 (print_one_breakpoint_location): Caller update.
6274 * breakpoint.h: Update declaration.
6276 2012-04-23 David S. Miller <davem@davemloft.net>
6278 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6280 2012-04-23 Tom Tromey <tromey@redhat.com>
6282 * buildsym.c (add_free_pendings): Remove.
6283 * buildsym.h (add_free_pendings): Remove.
6285 2012-04-23 Doug Evans <dje@google.com>
6287 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6288 attr.u.unsnd instead of attr.u.addr.
6289 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6290 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6292 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6293 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6295 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6297 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6299 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6300 (mips_o32_return_value): Likewise.
6301 (mips_o64_return_value): Likewise.
6303 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6305 * ada-lang.c (ada_evaluate_subexp): Add cases for
6306 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6307 their treatment in eval.c.
6309 2012-04-21 David S. Miller <davem@davemloft.net>
6311 * sparc-tdep.c (X_DISP10): Define.
6312 (sparc_analyze_control_transfer): Handle compare-and-branch.
6314 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6316 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6317 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6319 2012-04-20 Nigel Stephens <nigel@mips.com>
6320 Maciej W. Rozycki <macro@codesourcery.com>
6322 * mips-tdep.c (mips_float_register_p): New function.
6323 (mips_convert_register_float_case_p): Use mips_float_register_p.
6324 (mips_register_type): Likewise.
6325 (mips_print_register): Likewise.
6326 (print_gp_register_row): Likewise.
6327 (mips_print_registers_info): Likewise.
6329 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6331 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6334 2012-04-20 Andrew Pinski <apinski@cavium.com>
6336 * MAINTAINERS (Write After Approval): Add myself to the list.
6338 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6340 * MAINTAINERS: Update my e-mail address.
6342 2012-04-20 Pedro Alves <palves@redhat.com>
6344 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6346 * configure: Regenerate.
6348 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6350 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6352 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6354 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6356 Fix compilation compatibility with python-2.4
6357 * python/py-type.c (convert_field): Cast ADDRSTRING for
6358 PyObject_SetAttrString as non-const. New comment.
6360 2012-04-19 Tom Tromey <tromey@redhat.com>
6362 * top.c (quit_target): Use all_cleanups.
6363 * main.c (captured_command_loop): Use all_cleanups.
6364 * exceptions.c (throw_exception): Use all_cleanups.
6366 2012-04-19 Pedro Alves <palves@redhat.com>
6368 * Makefile.in (GNULIB_BUILDDIR): New.
6369 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6370 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6371 (CLEANDIRS). Remove gnulib/import.
6372 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6374 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6375 (gnulib/import/Makefile): Replace gnulib/import with
6376 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6377 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6378 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6379 acx_configure_dir.m4.
6380 * acinclude.m4: Include acx_configure_dir.m4.
6381 * acx_configure_dir.m4: New file.
6382 * aclocal.m4: Regenerate.
6383 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6384 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6385 (GNULIB): New variable.
6386 (GNULIB_STDINT_H): Adjust.
6387 (AC_OUTPUT): Don't output gnulib/Makefile.
6388 * gdb/defs.h: Include build-gnulib/config.h.
6389 * aclocal.m4: Regenerate.
6390 * config.in: Regenerate.
6391 * configure: Regenerate.
6393 * gnulib/Makefile.in: New file.
6394 * gnulib/configure.ac: New file.
6395 * gnulib/aclocal.m4: New file.
6396 * gnulib/config.in: New file.
6397 * gnulib/configure: New file.
6398 * gnulib/: Re-run gnulib-tool to adjust.
6400 2012-04-19 Doug Evans <dje@google.com>
6402 * cleanups.h (struct cleanup): Move to cleanups.c.
6403 (make_cleanup_dtor_ftype): New typedef.
6404 (make_cleanup_dtor): Use it.
6405 (ALL_CLEANUPS): Replace with ...
6406 (all_cleanups): ... this. Declare. All uses updated.
6407 * cleanups.c: #include "gdb_assert.h".
6408 (sentinel_cleanup): New static global.
6409 (SENTINEL_CLEANUP): Define.
6410 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6411 (make_my_cleanup2): Assert result is non-NULL.
6412 (all_cleanups): New function.
6413 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6416 2012-04-19 Pedro Alves <palves@redhat.com>
6418 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6419 Adjust paths to gnulib imported files.
6421 2012-04-19 Pedro Alves <palves@redhat.com>
6423 * gnulib/: Move whole directory ...
6424 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6425 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6426 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6427 (aclocal_m4_deps): Adjust.
6428 * aclocal.m4: Regenerate.
6429 * configure: Regenerate.
6430 * configure.ac: Adjust AC_OUTPUT output.
6432 2012-04-19 Yao Qi <yao@codesourcery.com>
6434 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6436 * vec.c: Move it ...
6437 * common/vec.c: ... here.
6438 * vec.h: Move it ...
6439 * common/vec.h: ... here.
6441 2012-04-19 Yao Qi <yao@codesourcery.com>
6443 * gdb-code-style.el: New.
6445 2012-04-18 Pedro Alves <palves@redhat.com>
6447 Update gnulib from latest git.
6448 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6450 * gnulib/Makefile.am: Update.
6451 * gnulib/dummy.c: Update.
6452 * gnulib/extra/arg-nonnull.h: Update.
6453 * gnulib/extra/c++defs.h: Update.
6454 * gnulib/extra/update-copyright: Update.
6455 * gnulib/extra/warn-on-use.h: Update.
6456 * gnulib/inttypes.in.h: Update.
6457 * gnulib/m4/00gnulib.m4: Update.
6458 * gnulib/m4/extensions.m4: Update.
6459 * gnulib/m4/gnulib-cache.m4: Update.
6460 * gnulib/m4/gnulib-common.m4: Update.
6461 * gnulib/m4/gnulib-comp.m4: Update.
6462 * gnulib/m4/gnulib-tool.m4: Update.
6463 * gnulib/m4/include_next.m4: Update.
6464 * gnulib/m4/inttypes-pri.m4: Update.
6465 * gnulib/m4/inttypes.m4: Update.
6466 * gnulib/m4/longlong.m4: Update.
6467 * gnulib/m4/memchr.m4: Update.
6468 * gnulib/m4/memmem.m4: Update.
6469 * gnulib/m4/mmap-anon.m4: Update.
6470 * gnulib/m4/multiarch.m4: Update.
6471 * gnulib/m4/onceonly.m4: Update.
6472 * gnulib/m4/stddef_h.m4: Update.
6473 * gnulib/m4/stdint.m4: Update.
6474 * gnulib/m4/string_h.m4: Update.
6475 * gnulib/m4/warn-on-use.m4: Update.
6476 * gnulib/m4/wchar_h.m4: Update.
6477 * gnulib/m4/wchar_t.m4: Update.
6478 * gnulib/m4/wint_t.m4: Update.
6479 * gnulib/memchr.c: Update.
6480 * gnulib/memmem.c: Update.
6481 * gnulib/stddef.in.h: Update.
6482 * gnulib/stdint.in.h: Update.
6483 * gnulib/str-two-way.h: Update.
6484 * gnulib/string.in.h: Update.
6485 * gnulib/wchar.in.h: Update.
6487 * gnulib/extra/arg-nonnull.h: Delete.
6488 * gnulib/extra/c++defs.h: Delete.
6489 * gnulib/extra/warn-on-use.h: Delete.
6490 * gnulib/m4/wchar_h.m4: Delete.
6491 * gnulib/m4/wint_t.m4: Delete.
6492 * gnulib/wchar.in.h: Delete.
6494 * gnulib/extra/snippets/arg-nonnull.h: New.
6495 * gnulib/extra/snippets/c++defs.h: New.
6496 * gnulib/extra/snippets/warn-on-use.h: New.
6498 * aclocal.m4: Regenerate.
6499 * config.in: Regenerate.
6500 * configure: Regenerate.
6501 * gnulib/Makefile.in: Regenerate.
6503 2012-04-18 Pedro Alves <palves@redhat.com>
6505 Reimport the update-copyright module from gnulib
6506 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6508 * configure: Regenerate.
6509 * gnulib/Makefile.am: Update.
6510 * gnulib/Makefile.in: Regenerate.
6511 * gnulib/extra/update-copyright: Update.
6512 * gnulib/m4/gnulib-cache.m4: Update.
6513 * gnulib/m4/gnulib-comp.m4: Update.
6515 2012-04-18 Tristan Gingold <gingold@adacore.com>
6517 * configure.ac (aix): Put -lpthread into libs.
6518 * configure: Regenerate.
6520 2012-04-18 Tom Tromey <tromey@redhat.com>
6522 * linespec.c (convert_linespec_to_sals): Don't use
6524 (compare_msymbols): Arguments are minsym_and_objfile, not
6525 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6527 2012-04-18 Pedro Alves <palves@redhat.com>
6529 Revert gnulib/ part of:
6530 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6531 Copyright year update in most files (performed by copyright.sh).
6533 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6535 Fix 64-bit constants on 32-bit hosts.
6536 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6537 from unsigned long to ULONGEST.
6538 (read_signed_leb128): Change declaration return type from long to
6540 (dwarf2_const_value_attr): Change declaration parameter value from long
6542 (dwarf2_compute_name): Change variable value from long to LONGEST.
6543 (read_unsigned_leb128): Change return type, variable result and some
6544 casts from unsigned long to ULONGEST.
6545 (read_signed_leb128): Change return type, variable result and some
6546 casts from long to LONGEST.
6547 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6548 value from long to LONGEST.
6549 (dwarf2_const_value): Change variable value from long to LONGEST.
6550 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6551 plongest and hex_string.
6552 * symtab.h (struct general_symbol_info): Change ivalue from long to
6553 LONGEST, remove the comment.
6554 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6555 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6557 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6560 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6561 * ada-lang.c (ada_discrete_type_high_bound)
6562 (ada_discrete_type_low_bound): Fix function comment. Use
6563 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6564 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6565 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6566 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6567 Use TYPE_FIELD_ENUMVAL.
6568 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6569 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6570 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6571 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6573 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6574 * dwarf2read.c (process_enumeration_scope): Likewise.
6575 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6577 (class StructMainTypePrettyPrinter): Support also
6578 FIELD_LOC_KIND_ENUMVAL.
6579 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6581 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6582 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6583 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6584 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6586 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6587 accommodate enumval.
6588 (struct call_site): Adjust loc_kind to accommodate enumval.
6589 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6590 (TYPE_FIELD_ENUMVAL): New macros.
6591 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6592 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6594 * p-typeprint.c (pascal_type_print_base): Likewise.
6595 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6597 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6598 * python/py-type.c (convert_field): New variable addrstring. Use
6599 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6600 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6601 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6602 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6604 * valprint.c (generic_val_print): Likewise.
6606 2012-04-17 Doug Evans <dje@google.com>
6608 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6610 * dwarf2read.c: Whitespace fixes.
6611 (lookup_signatured_type): Tweak comment.
6612 (get_die_type_at_offset): Fix comment.
6614 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6616 * xcoffread.c (xcoff_secnum_to_sections): New function.
6617 (secnum_to_section, secnum_to_bfd_section): Reimplement
6618 using xcoff_secnum_to_sections. Rename "secnum" parameter
6620 (RECORD_MINIMAL_SYMBOL): Delete.
6621 (record_minimal_symbol): New function.
6622 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6623 by call to record_minimal_symbol and set misc_func_recorded
6624 to 1. Set last_csect_sec to the XCOFF section index instead
6625 of GDB's section_offset index. Update calls to
6626 prim_record_minimal_symbol_and_info to pass the BFD section
6629 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6631 * xcoffread.c (read_xcoff_symtab): Delete variables
6632 last_csect_val and last_csect_sec and associated code.
6634 2012-04-17 Doug Evans <dje@google.com>
6636 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6637 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6638 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6639 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6641 * cleanups.h: New file.
6642 * cleanups.c: New file.
6643 * Makefile.in (SFILES): Add cleanups.c.
6644 (HFILES_NO_SRCDIR): Add cleanups.h.
6645 (COMMON_OBS): Add cleanups.o.
6646 * defs.h (struct cleanup): Moved to cleanups.h.
6647 (do_cleanups,do_final_cleanups): Ditto.
6648 (discard_cleanups,discard_final_cleanups): Ditto
6649 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6650 (save_cleanups,save_final_cleanups): Ditto.
6651 (restore_cleanups,restore_final_cleanups): Ditto.
6652 (null_cleanup): Ditto.
6653 (make_my_cleanup,make_my_cleanup2): Ditto.
6654 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6655 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6656 (do_cleanups,do_final_cleanups): Ditto.
6657 (discard_cleanups,discard_final_cleanups): Ditto
6658 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6659 (save_cleanups,save_final_cleanups): Ditto.
6660 (restore_cleanups,restore_final_cleanups): Ditto.
6661 (null_cleanup): Ditto.
6662 (make_my_cleanup,make_my_cleanup2): Ditto.
6663 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6665 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6667 (make_cleanup_dyn_string_delete): Ditto.
6668 (make_cleanup_ui_file_delete): Ditto.
6669 (make_cleanup_ui_out_redirect_pop): Ditto.
6670 (make_cleanup_free_section_addr_info): Ditto.
6671 (make_cleanup_restore_integer): Ditto.
6672 (make_cleanup_unpush_target): Ditto.
6673 (make_cleanup_value_free_to_mark): Ditto.
6674 (make_cleanup_value_free): Ditto.
6675 (make_cleanup_free_so): Ditto.
6677 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6679 New option "set debug auto-load".
6680 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6681 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6682 (auto_load_safe_path_vec_update)
6683 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6685 (file_is_auto_load_safe): New parameters debug_fmt and ....
6686 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6687 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6688 caller by explanatory string.
6689 (_initialize_auto_load): Register "set debug auto-load".
6690 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6692 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6693 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6694 by explanatory string.
6695 * main.c (captured_main): Likewise.
6696 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6697 (source_section_scripts): Likewise.
6699 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6701 New option "set auto-load safe-path".
6702 * NEWS: New commands "set auto-load safe-path"
6703 and "show auto-load safe-path".
6704 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6705 (auto_load_safe_path, auto_load_safe_path_vec)
6706 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6707 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6708 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6709 (source_gdb_script_for_objfile): New variable is_safe. Call
6710 file_is_auto_load_safe. Return if it is not.
6711 (struct loaded_script): New field loaded.
6712 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6713 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6714 output "Missing" to "No".
6715 (_initialize_auto_load): New variable cmd. Initialize
6716 auto_load_safe_path. Register "set auto-load safe-path",
6717 "show auto-load safe-path" and "add-auto-load-safe-path".
6718 * auto-load.h (maybe_add_script): Add parameter loaded.
6719 (file_is_auto_load_safe): New declaration.
6720 * config.in: Regenerate.
6721 * configure: Regenerate.
6722 * configure.ac: New parameters --with-auto-load-safe-path
6723 and --without-auto-load-safe-path.
6724 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6725 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6726 * main.c (captured_main): Check file_is_auto_load_safe for
6728 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6729 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6730 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6733 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6735 auto-load: Implementation.
6736 * NEWS: New descriptions for "info auto-load",
6737 "info auto-load gdb-scripts", "info auto-load python-scripts",
6738 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6739 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6740 and "show auto-load-scripts". New description for "set auto-load",
6741 "show auto-load", "set auto-load gdb-scripts",
6742 "show auto-load gdb-scripts", "set auto-load python-scripts",
6743 "show auto-load python-scripts", "set auto-load local-gdbinit",
6744 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6745 "show auto-load libthread-db".
6746 * auto-load.c: Remove include python/python-internal.h. Add includes
6747 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6749 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6750 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6751 (gdbpy_global_auto_load): Rename to ...
6752 (global_auto_load): ... here.
6753 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6754 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6755 (script_language_gdb, source_gdb_script_for_objfile): New.
6756 (struct loaded_script): New field language.
6757 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6759 (maybe_add_script): Add parameter language. Drop redundant
6760 entry.full_path initialization. Initialize entry.language and
6762 (auto_load_objfile_script): Change parameter suffix to language.
6763 Remove the call of maybe_add_script.
6764 Call language->source_script_for_objfile.
6765 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6767 (collect_matching_scripts): Adjust it for
6768 struct collect_matching_scripts_data.
6769 (auto_load_info_scripts_pattern_nl): New variable.
6770 (info_auto_load_scripts): Rename to ...
6771 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6772 for struct collect_matching_scripts_data.
6773 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6774 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6775 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6776 (auto_load_info_cmdlist_get): New.
6777 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6778 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6779 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6780 "info auto-load local-gdbinit".
6781 * auto-load.h (struct script_language): New.
6782 (gdbpy_global_auto_load): Rename to ...
6783 (global_auto_load): ... here.
6784 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6785 (auto_load_local_gdbinit_loaded): New declarations.
6786 (maybe_add_script): New parameter language.
6787 (auto_load_objfile_script): Change parameter suffix to language.
6788 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6789 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6790 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6792 * linux-thread-db.c: Include auto-load.h and ctype.h.
6793 (auto_load_thread_db, show_auto_load_thread_db): New.
6794 (struct thread_db_info): New field filename.
6795 (delete_thread_db_info): Call xfree for FILENAME.
6796 (try_thread_db_load): Initialize FILENAME.
6797 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6798 if !AUTO_LOAD_THREAD_DB.
6799 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6800 (_initialize_thread_db): Install auto_load_thread_db
6801 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6802 as "info auto-load libthread-db".
6803 * main.c (captured_main): Rename gdbpy_global_auto_load to
6804 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6805 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6806 (print_gdb_help): Extend the help for 'local init file'.
6807 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6808 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6809 (auto_load_scripts): Rename to ...
6810 (auto_load_python_scripts): ... here, update the comment.
6811 (gdbpy_load_auto_script_for_objfile): New declaration.
6812 (show_auto_load_python_scripts, script_language_python)
6813 (gdbpy_load_auto_script_for_objfile): New.
6814 (source_section_scripts): Refactor the code.
6815 (load_auto_scripts_for_objfile): Rename to ...
6816 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6817 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6818 (info_auto_load_python_scripts): New.
6819 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6820 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6821 Register "set auto-load-scripts" as its deprecated alias. Register
6822 "info auto-load python-scripts". Register "info auto-load-scripts" as
6823 its deprecated alias.
6824 (load_auto_scripts_for_objfile): Rename to ...
6825 (gdbpy_load_auto_scripts_for_objfile): ... here.
6826 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6827 (gdbpy_load_auto_scripts_for_objfile): ... here.
6829 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6831 auto-load: Move files.
6832 * Makefile.in (SFILES): Add auto-load.c.
6833 (HFILES_NO_SRCDIR): Add auto-load.h.
6834 (COMMON_OBS): Add auto-load.o.
6835 (distclean): Change .gdbinit for gdb-gdb.gdb.
6836 * auto-load.c: New file, with parts from python/py-auto-load.c.
6837 * auto-load.h: New file, with parts from python/python.h.
6838 * configure: Regenerate.
6839 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6840 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6841 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6842 * main.c: Include auto-load.h.
6843 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6844 command.h, observer.h and progspace.h to auto-load.c. Add include
6846 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6847 (struct loaded_script, auto_load_pspace_data)
6848 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6849 (hash_loaded_script_entry, eq_loaded_script_entry)
6850 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6851 (maybe_add_script): Move to auto-load.c.
6852 (source_section_scripts): Change maybe_add_script parameters passing,
6853 use script_not_found_warning_print.
6854 (clear_section_scripts, auto_load_objfile_script)
6855 (auto_load_new_objfile, loaded_script_ptr)
6856 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6857 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6858 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6859 auto_load_new_objfile and info_auto_load_scripts initizations to
6861 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6863 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6866 * charset.c (find_charset_names): Remove variables ix and elt.
6867 Use free_char_ptr_vec.
6868 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6869 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6870 debugdir_end. New variable debugdir_len.
6871 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6872 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6874 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6875 and elt. Use free_char_ptr_vec.
6876 * source.c (add_path): Remove variables argv, arg and argv_index.
6877 New variables dir_vec, back_to, ix and name.
6878 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6879 make_cleanup_freeargv. Remove variable separator. Simplify the code
6880 no longer expecting DIRNAME_SEPARATOR.
6881 (openp): Remove variable p, p1 and len. New variables dir_vec,
6882 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6883 no longer expecting DIRNAME_SEPARATOR.
6884 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6885 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6887 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6888 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6889 (dirnames_to_char_ptr_vec): New functions.
6891 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6894 * source.c (add_path): Remove always true conditional 'p == 0' and
6895 unindent its code block.
6897 2012-04-17 Pedro Alves <palves@redhat.com>
6899 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6900 (FIELD_BITPOS_LVAL): ... this.
6901 (FIELD_BITPOS): New.
6902 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6903 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6904 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6906 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6908 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6909 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6910 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6913 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6915 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6916 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6917 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6918 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6919 * jv-lang.c (java_link_class_type): Likewise, once.
6920 * stabsread.c (read_enum_type): Likewise.
6922 2012-04-16 Yao Qi <yao@codesourcery.com>
6924 * common/agent.c (agent_run_command): Add one more parameter `len'.
6926 * common/agent.h: Update declaration.
6927 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6929 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6931 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6934 * value.c (value_actual_type): New function.
6935 * value.h (value_actual_type): New declaration.
6936 * varobj.c (update_type_if_necessary): New function.
6937 (varobj_create): Call value_actual_type instead of
6939 (install_dynamic_child): distinct changed and type changed MI variable
6941 (update_dynamic_varobj_children): Updated for install_dynamic_child
6942 change. All callers updated.
6943 (varobj_update): Support for MI variable object type change if
6944 the value changed and RTTI is used to determine the type.
6945 (create_child_with_value): Call value_actual_type instead of
6947 (adjust_value_for_child_access): Extended with a new parameter which
6948 specify whether the given value should be casted to enclosing type.
6949 All callers updated.
6951 2012-04-14 Yao Qi <yao@codesourcery.com>
6953 Import gnulib module inttypes from git
6954 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6955 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6956 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6957 gnulib/m4/inttypes-pri.m4
6958 * aclocal.m4, config.in, configure: Regenerated.
6959 * gnulib/Makefile.am: Update.
6960 * gnulib/Makefile.in: Update.
6961 * gnulib/m4/gnulib-cache.m4: Update.
6962 * gnulib/m4/gnulib-comp.m4: Update.
6963 * gnulib/inttypes.in.h: New.
6964 * gnulib/m4/inttypes-pri.m4: New.
6965 * gnulib/m4/inttypes.m4: New.
6967 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6969 * infrun.c (resume): Update PC address to the real PC after
6970 preparing to do displaced stepping.
6972 2012-04-12 Doug Evans <dje@google.com>
6974 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6975 All callers updated.
6977 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6979 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6981 2012-04-12 Doug Evans <dje@google.com>
6983 * dwarf2read.c (create_all_type_units): Renamed from
6984 create_debug_types_hash_table. All callers updated.
6986 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6987 local type_sig to sig_type, type_offset to type_offset_in_tu.
6988 (hash_signatured_type): Renamed from hash_type_signature,
6989 all callers updated.
6990 (eq_signatured_type): Renamed from eq_type_signature,
6991 all callers updated.
6992 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6993 (process_enumeration_scope): Ditto.
6994 (lookup_signatured_type_at_offset): Ditto.
6995 (load_full_type_unit, read_signatured_type): Ditto.
6997 2012-04-12 Yao Qi <yao@codesourcery.com>
6999 * remote.c (async_remote_interrupt): Correct function name in
7001 (async_remote_interrupt_twice): Ditto.
7003 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7005 * source.c (find_and_open_source): Consistently pass resulting
7006 full path through xfullpath.
7008 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7010 Provide more specific displaced-stepping memory error message.
7011 * infrun.c (displaced_step_prepare): New variable status. Call
7012 target_read_memory instead of read_memory, provide more specific
7015 2012-04-11 Tristan Gingold <gingold@adacore.com>
7018 * darwin-nat.c (darwin_execvp): Revert previous patch.
7020 2012-04-11 Tristan Gingold <gingold@adacore.com>
7023 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7026 2012-04-11 Tristan Gingold <gingold@adacore.com>
7028 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7031 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7033 New command 'explore' which helps explore values and types in
7035 * NEWS: Add an entry about the new 'explore' command.
7036 * data-directory/Makefile.in: Add gdb/command/explore.py
7037 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7038 command using the GDB Python API.
7040 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7042 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7043 extension in jump target calculation.
7045 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7047 * mips-tdep.c (mips32_next_pc): Handle JALX.
7049 2012-04-10 Yao Qi <yao@codesourcery.com>
7051 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7053 2012-04-10 Yao Qi <yao@codesourcery.com>
7055 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7056 and gnulib/m4/gnulib-tool.m4.
7058 2012-04-10 Doug Evans <dje@google.com>
7060 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7061 (load_partial_dies): Clarify comment.
7062 (find_partial_die): Support rereading type units.
7063 Clarify CU handling, if we know offset is in CU, don't search for the
7064 containing CU. Add comment regarding memory waste.
7066 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7068 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7069 i386/x32-avx and i386/x32-avx-linux.
7070 (i386/x32-expedite): New.
7071 (i386/x32-linux-expedite): Likewise.
7072 (i386/x32-avx-expedite): Likewise.
7073 (i386/x32-avx-linux-expedite): Likewise.
7074 ($(outdir)/i386/x32.dat): Likewise.
7075 ($(outdir)/i386/x32-linux.dat): Likewise.
7076 ($(outdir)/i386/x32-avx.dat): Likewise.
7077 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7079 * features/i386/x32-avx-linux.xml: New file.
7080 * features/i386/x32-avx.xml: Likewise.
7081 * features/i386/x32-core.xml: Likewise.
7082 * features/i386/x32-linux.xml: Likewise.
7083 * features/i386/x32.xml: Likewise.
7085 * features/i386/x32-avx-linux.c: New. Generated.
7086 * features/i386/x32-avx.c: Likewise.
7087 * features/i386/x32-linux.c: Likewise.
7088 * features/i386/x32.c: Likewise.
7089 * regformats/i386/x32-avx-linux.dat: Likewise.
7090 * regformats/i386/x32-avx.dat: Likewise.
7091 * regformats/i386/x32-linux.dat: Likewise.
7092 * regformats/i386/x32.dat: Likewise.
7094 2012-04-10 Tristan Gingold <gingold@adacore.com>
7096 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7097 code to kill the inferior.
7099 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7101 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7103 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7105 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7106 (yyvsp): New defines.
7107 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7109 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7111 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7113 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7115 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7118 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7120 * sparc64-tdep.c (sparc64_store_arguments)
7121 (sparc64_store_arguments): Fix coding style.
7123 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7125 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7126 complex floats, adjust some related comments and tighten a related
7128 (sparc64_extract_return_value): Handle complex floats.
7130 2012-04-07 Doug Evans <dje@google.com>
7132 * dwarf2read.c (load_partial_dies): Change condition to assert.
7134 2012-04-06 Doug Evans <dje@google.com>
7136 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7139 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7141 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7143 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7144 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7147 2012-04-05 Keith Seitz <keiths@redhat.com>
7149 * linespec.c (decode_compound): Remove.
7150 (enum offset_relative_sign): New enum.
7151 (struct line_offset): New struct.
7152 (struct linespec): New struct.
7153 (struct linespec_state): Move file_symtabs,
7154 user_filename, and user_function into struct linespec.
7155 Make result an anonymous struct holding vectors of
7156 symbolp and minsym_and_objfile_d.
7157 Add language member.
7158 (enum ls_token_type): New enum.
7159 (linespec_keywords): New array.
7160 (struct ls_token): New struct.
7161 (struct ls_parser): New struct.
7162 (linespec_lexer_lex_number): New function.
7163 (linespec_lexer_lex_keyword): New function.
7164 (is_ada_operator): New function.
7165 (skip_quote_char): New function.
7166 (copy_token_string): New function.
7167 (is_closing_quote_enclosed): New function.
7168 (find_parameter_list_end): New function.
7169 (linespec_lexer_lex_string): New function.
7170 (linespec_lexer_lex_one): New function.
7171 (linespec_lexer_consume_token): New function.
7172 (linespec_lexer_peek_token): New function.
7173 (cplusplus_error): Remove unused function.
7174 (find_methods): Update comment.
7175 (find_toplevel_char): Return const.
7176 (is_objc_method_format): Remove unused function.
7177 (find_toplevel_string): New function.
7178 (is_linespec_boundary): Remove.
7179 (symbol_not_found_error): New function.
7180 (find_method_overload_end): Remove function.
7181 (unexpected_linespec_error): New function.
7182 (keep_name_info): Remove.
7183 (linespec_parse_line_offset): New function.
7184 (linespec_parse_basic): New function.
7185 (canonicalize_linespec): New function.
7186 (decode_line_internal): Remove.
7187 (create_sals_line_offset): New function adapted from
7189 (convert_linespec_to_sals): New function.
7190 (parse_linespec): New function.
7191 (linespec_parser_new): New function.
7192 (linespec_state_destructor): Change parameter type to
7193 struct linespec_state *.
7194 Add language parameter.
7195 Remove freeing of moved members.
7196 (linespec_parser_delete): New function.
7197 (decode_line_full): Use parse_linespec and linespec_parser_new.
7198 (decode_line_1): Likewise.
7199 (decode_indirect): Rename to ...
7200 (linespec_expression_to_pc): ... this and rewrite
7201 to simply find CORE_ADDR, storing this result for later
7203 (locate_first_half): Remove.
7204 (deocde_objc): Add parameter LS.
7205 Initialize new struct collect_info members.
7206 Handle minimal symbols, too.
7207 (decode_compound): Delete.
7208 (lookup_prefix_sym): Rewrite.
7209 (compare_msymbols): New function.
7210 (find_method): Rewrite.
7211 Do not call cplusplus_error.
7212 (symtabs_from_filename): Rewrite.
7213 (collect_function_symbols): Delete.
7214 (find_function_symbols): Rewrite without ARGPTR-style
7216 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7217 (decode_dollar): Adapted and renamed to ...
7218 (linespec_parse_variable): ... this.
7219 (find_linespec_symbols): New function.
7220 (decode_label): Adapted and renamed to ...
7221 (find_label_symbols): ... this.
7222 (decode_digits_list_mode): Add and use LS argument.
7223 (decode_digits_ordinary): Likewise.
7224 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7225 If in list mode, allow any symbol class. Otherwise, only
7226 permit LOC_BLOCK symbols.
7227 (minsym_found): Update comments.
7228 (search_minsyms_for_name): Do not convert the matching symbol
7229 into a SAL. Simply push the symbol and objfile into the
7231 (decode_variable): Delete. Contents adapted into
7232 find_linespec_symbols.
7234 * cp-support.c (SKIP_SPACE): Remove.
7235 (operator_tokens): Remove unused global.
7236 (cp_validate_operator): Remove.
7237 * cp-support.h (cp_validate_operator): Remove declaration.
7239 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7241 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7242 for TYPE_VPTR_FIELDNO.
7243 * valprint.c (valprint_check_validity): Make it global, move the
7244 function comment ...
7245 * value.h (valprint_check_validity): ... to this new declaration.
7247 2012-04-02 Tristan Gingold <gingold@adacore.com>
7249 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7250 the STATE32 api for i386 state.
7251 (i386_darwin_store_inferior_registers): Likewise.
7253 2012-04-02 Tristan Gingold <gingold@adacore.com>
7255 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7257 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7260 2012-04-02 Tristan Gingold <gingold@adacore.com>
7263 * darwin-nat.c (darwin_execvp): Set binary preference.
7265 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7267 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7269 2012-03-30 Tom Tromey <tromey@redhat.com>
7271 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7272 of TRY_CATCH. Fix error handling.
7273 * python/py-value.c (convert_value_from_python): Move 'old'
7274 declaration to innermost scope.
7276 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7277 Andrey Smirnov <andrew.smirnov@gmail.com>
7279 -Wshadow warning fix.
7280 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7281 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7282 Adjust code accordingly.
7284 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7286 * ada-lang.c (symbol_completion_add): Rename parameter
7287 "encoded" into "encoded_p". Ajust code and documentation
7290 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7291 Andrey Smirnov <andrew.smirnov@gmail.com>
7293 -Wshadow warning fix.
7294 * ada-lang.c (symbol_completion_add): Rename parameter
7295 "wild_match" into wild_match_p. Update code and documentation
7298 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7300 * ada-lang.c (symbol_completion_match): Rename parameter
7301 "encoded" into "encoded_p". Ajust code and documentation
7304 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7305 Andrey Smirnov <andrew.smirnov@gmail.com>
7307 -Wshadow warning fix.
7308 * ada-lang.c (symbol_completion_match): Rename parameter
7309 "wild_match" into "wild_match_p". Adjust code and function
7310 documentation accordingly.
7312 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7313 Andrey Smirnov <andrew.smirnov@gmail.com>
7315 -Wshadow warning fix.
7316 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7317 "symbol_info" into "info". Adjust code accordingly.
7318 (ada_lookup_symbol): Likewise.
7320 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7322 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7323 of this function's documentation.
7325 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7326 Andrey Smirnov <andrew.smirnov@gmail.com>
7328 -Wshadow warning fix.
7329 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7330 variable into "wild_match_p". Adjust code accordingly.
7332 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7333 Andrey Smirnov <andrew.smirnov@gmail.com>
7335 -Wshadow warning fix.
7336 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7337 parameter into "wild_match_p". Adjust code accordingly.
7338 Document this parameter in the function description.
7340 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7341 Andrey Smirnov <andrew.smirnov@gmail.com>
7343 -Wshadow warning fix.
7344 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7345 "wild_match" parameter to "wild_match_p" (-Wshadow).
7347 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7349 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7350 in function documentation.
7352 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7353 Andrey Smirnov <andrew.smirnov@gmail.com>
7355 -Wshadow warning fix.
7356 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7357 variable into wild_match_p. Adjust code accordingly.
7359 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7360 Andrey Smirnov <andrew.smirnov@gmail.com>
7362 * ada-valprint.c (ada_val_print_1): Move the code handling
7363 TYPE_CODE_ENUM inside its own lexical block. Declare
7364 variables len and val there, instead of in the function's
7365 top level block. Avoid declaring deref_val again in a way
7366 that shadows another variable of the same name declared
7367 in one of the up-level blocks. Just re-use the up-level
7370 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7372 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7373 Replace block_found argument by symbol_info. Adjust
7374 implementation accordingly. Add function documentation.
7375 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7377 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7378 * ada-exp.y (write_object_renaming): Adjust to new
7379 ada_lookup_encoded_symbol API.
7381 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7383 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7386 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7388 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7389 (v850_register_name): Add the mpu and fpu register names.
7390 (v850e_register_name): Add the mpu and fpu register names.
7391 (v850e2_register_name): New function.
7392 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7395 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7397 * NEWS: Add entry for Ada varobj support.
7399 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7401 * varobj.c (default_value_is_changeable_p): New function,
7402 extracted from varobj_value_is_changeable_p. Add declaration.
7403 (ada_value_is_changeable_p): New function, extracted from
7404 varobj_value_is_changeable_p. Add declaration.
7405 (struct language_specific): New field "value_is_changeable_p".
7406 (languages): Add entries for new field.
7407 (varobj_create): Set language before calling install_new_value.
7408 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7409 "value_is_changeable_p" language callback.
7411 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7413 * ada-varobj.h, ada-varobj.c: New files.
7414 * Makefile.in (SFILES): Add ada-varobj.c.
7415 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7416 (COMMON_OBS): Add ada-varobj.o.
7418 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7420 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7421 (struct language_specific): New field "value_has_mutated".
7422 (languages): Set field "value_has_mutated" in each entry of array.
7423 (varobj_value_has_mutated): New function.
7424 (varobj_udpdate): Add handling of type mutation.
7425 (value_of_root): Add handling of type mutation.
7426 (ada_value_has_mutated): New function.
7428 2012-03-28 Pedro Alves <palves@redhat.com>
7430 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7431 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7433 2012-03-28 Tom Tromey <tromey@redhat.com>
7435 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7436 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7439 2012-03-28 Tom Tromey <tromey@redhat.com>
7441 * .dir-locals.el: New file.
7443 2012-03-28 Pedro Alves <palves@redhat.com>
7445 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7447 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7449 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7452 2012-03-27 Pedro Alves <palves@redhat.com>
7454 Eliminate struct ui_stream.
7456 * ui-out.h (struct ui_stream): Delete.
7457 (ui_out_field_stream): Adjust prototype.
7458 (ui_out_stream_new, ui_out_stream_delete)
7459 (make_cleanup_ui_out_stream_delete): Delete declarations.
7460 * ui-out.c (ui_out_field_stream): Change prototype to take a
7461 ui_file instead of a ui_stream. Adjust.
7462 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7463 (make_cleanup_ui_out_stream_delete): Delete.
7464 * breakpoint.c (print_breakpoint_location)
7465 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7466 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7467 * disasm.c (dump_insns): Ditto.
7468 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7470 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7471 ui_stream/ui_out_stream_new.
7472 * infcmd.c (print_return_value): Ditto.
7473 * osdata.c (info_osdata_command): Don't allocate a local
7475 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7476 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7477 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7478 allocate a local ui_stream.
7479 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7480 instead of ui_stream/ui_out_stream_new.
7481 (list_args_or_locals): Don't allocate a local ui_stream.
7482 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7483 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7484 ui_stream/ui_out_stream_new.
7485 * cli/cli-setshow.c (do_setshow_command): Ditto.
7487 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7489 * arm-linux-tdep.c (arm_linux_init_abi): Call
7490 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7491 * arm-tdep.c (arm_process_record): New function.
7492 (deallocate_reg_mem): New function.
7493 (decode_insn): New function.
7494 (thumb_record_branch): New function.
7495 (thumb_record_ldm_stm_swi(): New function.
7496 (thumb_record_misc): New function.
7497 (thumb_record_ld_st_stack): New function.
7498 (thumb_record_ld_st_imm_offset): New function.
7499 (thumb_record_ld_st_reg_offset(): New function.
7500 (thumb_record_add_sub_cmp_mov): New function.
7501 (thumb_record_shift_add_sub): New function.
7502 (arm_record_coproc_data_proc): New function.
7503 (arm_record_coproc): New function.
7504 (arm_record_b_bl): New function.
7505 (arm_record_ld_st_multiple): New function.
7506 (arm_record_ld_st_reg_offset): New function.
7507 (arm_record_ld_st_imm_offset): New function.
7508 (arm_record_data_proc_imm): New function.
7509 (arm_record_data_proc_misc_ld_str): New function.
7510 (arm_record_extension_space): New function.
7511 (arm_record_strx): New function.
7512 (sbo_sbz): New function.
7513 (struct insn_decode_record): New structure for arm insn record.
7514 (REG_ALLOC): New macro for reg allocations.
7515 (MEM_ALLOC): New macro for memory allocations.
7516 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7518 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7520 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7521 (store_register): Likewise.
7523 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7525 * MAINTAINERS (Write After Approval): Add myself to the list.
7527 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7529 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7530 Describe also the option "auto".
7532 2012-03-22 Richard Henderson <rth@redhat.com>
7534 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7535 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7537 2012-03-22 Richard Henderson <rth@redhat.com>
7539 * jit.c (jit_read_code_entry): Compute alignment and offset of
7540 int64_t member before computing entry_size.
7542 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7544 Python scripting: Add new method Value.referenced_value to
7545 gdb.Value which can dereference pointer as well as reference
7547 * NEWS: Add entry under 'Python scripting' about the new method
7548 Value.referenced_value on gdb.Value objects.
7549 * python/py-value.c (valpy_referenced_value): New function
7550 defining a new method on gdb.Value objects which can dereference
7551 pointer and reference values.
7553 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7555 * MAINTAINERS (Write After Approval): Add myself to the list.
7557 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7559 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7560 in addition to "main".
7562 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7564 * expression.h (op_name): Add declaration.
7565 * expprint.c (op_name): Remove declaration. Make non-static.
7566 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7568 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7570 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7572 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7573 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7574 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7575 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7576 (linux_nat_get_siginfo): Likewise.
7577 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7578 (linux_nat_get_siginfo): Likewise.
7579 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7580 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7581 * procfs.c (gdb_siginfo_t): Likewise.
7583 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7585 * .gitignore: Ignore more files.
7587 2012-03-20 Pedro Alves <palves@redhat.com>
7589 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7592 2012-03-20 Yao Qi <yao@codesourcery.com>
7594 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7597 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7599 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7600 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7601 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7603 * dwarf2expr.h (cu_offset, sect_offset): New types.
7604 (struct dwarf_expr_context_funcs) <dwarf_call>
7605 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7607 (struct dwarf_expr_context) <len>: Improve the comment.
7608 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7609 cu_offset and sect_offset.
7610 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7611 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7612 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7613 * dwarf2loc.h: Include dwarf2expr.h.
7614 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7616 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7617 Improve the comment.
7618 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7619 (struct signatured_type, struct line_header, struct partial_die_info)
7620 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7621 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7622 (get_die_type_at_offset, create_cus_from_index)
7623 (create_signatured_type_table_from_index, dw2_get_file_names)
7624 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7625 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7626 (create_debug_types_hash_table, process_psymtab_comp_unit)
7627 (load_partial_comp_unit, create_all_comp_units)
7628 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7629 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7630 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7631 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7632 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7633 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7634 (find_partial_die, read_attribute_value, lookup_die_type)
7635 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7636 (is_ref_attr): New function comment.
7637 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7638 Use cu_offset and sect_offset.
7639 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7640 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7641 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7642 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7643 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7644 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7645 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7648 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7651 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7652 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7654 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7656 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7658 * NEWS: Describe new options --init-command=FILE, -ix and
7659 --init-eval-command=COMMAND, -iex.
7660 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7661 CMDARG_INIT_COMMAND.
7662 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7663 "init-command", "init-eval-command", "ix" and "iex" to the variable
7664 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7665 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7666 (print_gdb_help): Describe --init-command=FILE, -ix and
7667 --init-eval-command=COMMAND, -iex.
7669 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7672 * main.c (struct cmdarg): Move it here from main. Add more comments.
7673 (cmdarg_s, VEC (cmdarg_s)): New.
7674 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7675 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7676 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7677 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7680 2012-03-19 Tom Tromey <tromey@redhat.com>
7682 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7684 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7687 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7690 2012-03-16 Chris January <chris.january@allinea.com>
7692 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7695 2012-03-16 Chris January <chris.january@allinea.com>
7697 * source.c (add_path): Use memmove instead of strcpy because the
7700 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7702 * value.h (set_value_parent): Add declaration.
7703 * value.c (set_value_parent): New function.
7704 (value_address): If VALUE->PARENT is not NULL, then use it as
7705 the base address instead of VALUE->LOCATION.address.
7706 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7707 the same as OBJ's address. Adjust V's offset accordingly.
7710 2012-03-16 Gary Benson <gbenson@redhat.com>
7712 PR breakpoints/10738
7713 * dwarf2read.c (use_deprecated_index_sections): New global.
7714 (struct partial_die_info): New member may_be_inlined.
7715 (read_partial_die): Set may_be_inlined where appropriate.
7716 (add_partial_subprogram): Add partial symbols for partial
7717 DIEs that may be inlined.
7718 (new_symbol_full): Add inlined subroutines to the current
7720 (write_psymtabs_to_index): Bump version number.
7721 (dwarf2_read_index): Read only version 6 indices unless
7722 use_deprecated_index_sections is set.
7723 * linespec.c (symbol_and_data_callback): New structure.
7724 (iterate_inline_only): New function.
7725 (iterate_over_all_matching_symtabs): New argument
7726 "include_inline". If nonzero, also call the callback for
7727 symbols representing inlined subroutines.
7728 (lookup_prefix_sym): Pass extra argument to the above.
7729 (find_function_symbols): Likewise.
7730 (add_matching_symbols_to_info): Likewise.
7731 * NEWS: Mention that GDB can now set breakpoints on inlined
7734 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7736 * p-typeprint.c (pascal_type_print_method_args):
7737 Fix display of parameter of methods.
7739 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7741 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7742 Add missing prototype.
7744 2012-03-16 Yao Qi <yao@codesourcery.com>
7745 Jan Kratochvil <jan.kratochvil@redhat.com>
7747 Fix false compilation warning.
7748 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7750 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7751 Pedro Alves <pedro@codesourcery.com>
7753 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7754 (arm_register_g_packet_guesses): New function.
7755 (arm_gdbarch_init): Don't force a target description with
7756 registers when the executable is detected as M-profile. Instead
7757 set gdbarch->tdep->is_m. Register `g' packet guesses.
7758 (_initialize_arm_tdep): Initialize the new target description.
7759 * features/arm-with-m-fpa-layout.xml: New description.
7760 * features/arm-with-m-fpa-layout.c: New, generated.
7762 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7764 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7765 Update function description.
7766 (insert_bp_location): Do not wipe bl->target_info out.
7767 * mem-break.c: #include "gdb_string.h".
7768 (default_memory_insert_breakpoint): Do not call target_read_memory
7769 with a pointer to the breakpoint's shadow_contents buffer. Use
7770 a local buffer instead.
7771 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7773 2012-03-15 Tom Tromey <tromey@redhat.com>
7775 * NEWS: Mention "info vtbl", not "info vtable".
7776 * cp-support.c (info_vtbl_command): Fix comment.
7777 (_initialize_cp_support): Fix text.
7779 2012-03-15 Tom Tromey <tromey@redhat.com>
7781 * cp-valprint.c (cp_print_value_fields): Use
7782 print_function_pointer_address for vtable slot.
7784 2012-03-15 Tom Tromey <tromey@redhat.com>
7786 * gnu-v3-abi.c (struct value_and_voffset): New.
7787 (hash_value_and_voffset, eq_value_and_voffset)
7788 (compare_value_and_voffset, compute_vtable_size)
7789 (print_one_vtable, gnuv3_print_vtable): New functions.
7790 (init_gnuv3_ops): Initialize 'print_vtable' field.
7791 * cp-support.c (info_vtbl_command): New function.
7792 (_initialize_cp_support): Add "info vtbl".
7793 * cp-abi.h (cplus_print_vtable): Declare.
7794 (struct cp_abi_ops) <print_vtable>: New field.
7795 * cp-abi.c (cplus_print_vtable): New function.
7798 2012-03-15 Tom Tromey <tromey@redhat.com>
7800 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7801 iterate_over_symbols.
7803 2012-03-14 Doug Evans <dje@google.com>
7805 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7806 DW_OP_GNU_parameter_ref.
7808 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7810 Fix double prompt of 'interpreter-exec mi'.
7811 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7812 (mi_interpreter_resume): use it.
7813 (mi_execute_command_input_handler): New function.
7814 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7815 mi_execute_command_input_handler.
7817 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7819 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7821 (darwin_debug_port_info): Make static.
7822 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7823 * machoread.c (_initialize_machoread): Add prototype.
7824 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7825 (i386_darwin_set_control, i386_darwin_get_control)
7826 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7827 i386_darwin_get_status, i386_darwin_get_control):
7828 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7830 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7832 * ax-gdb.c (gen_usual_unary): Remove special handling of
7833 enum and bool types.
7835 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7837 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7839 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7841 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7843 2012-03-13 Chris January <chris.january@allinea.com>
7845 * aix-thread.c (fill_sprs): Store the floating point registers
7846 at the correct offsets into vals.
7848 2012-03-13 Doug Evans <dje@google.com>
7850 * NEWS: Mention symbol-reloading has been deleted.
7851 * symfile.c (symbol_reloading): Delete.
7852 (show_symbol_reloading): Delete.
7853 (_initialize_symfile): Delete set/show symbol-reloading.
7855 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7856 read_in_chain until we have successfully read it in.
7857 (load_full_comp_unit): Ditto.
7858 (read_signatured_type): Add comment.
7860 2012-03-13 Chris January <chris.january@allinea.com>
7862 * stabsread.c (fix_common_block): Change type of valu argument
7865 2012-03-13 Chris January <chris.january@allinea.com>
7867 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7870 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 * common/linux-procfs.c (linux_proc_get_int): New, from
7873 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7875 (linux_proc_get_tgid): Only call linux_proc_get_int.
7876 (linux_proc_get_tracerpid): New.
7877 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7878 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7879 linux_proc_pid_has_state.
7880 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7881 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7882 (linux_ptrace_attach_warnings): New.
7883 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7885 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7886 (linux_nat_attach): New variables ex, buffer, message and message_s.
7887 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7889 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7891 * Makefile.in (linux-ptrace.o): New.
7892 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7894 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7895 * common/linux-ptrace.c: New file.
7896 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7897 * config/arm/linux.mh: Likewise.
7898 * config/i386/linux.mh: Likewise.
7899 * config/i386/linux64.mh: Likewise.
7900 * config/ia64/linux.mh: Likewise.
7901 * config/m32r/linux.mh: Likewise.
7902 * config/m68k/linux.mh: Likewise.
7903 * config/mips/linux.mh: Likewise.
7904 * config/pa/linux.mh: Likewise.
7905 * config/powerpc/linux.mh: Likewise.
7906 * config/powerpc/ppc64-linux.mh: Likewise.
7907 * config/powerpc/spu-linux.mh: Likewise.
7908 * config/s390/s390.mh: Likewise.
7909 * config/sparc/linux.mh: Likewise.
7910 * config/sparc/linux64.mh: Likewise.
7911 * config/xtensa/linux.mh: Likewise.
7912 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7913 common/linux-procfs.c.
7914 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7916 2012-03-13 Hui Zhu <teawater@gmail.com>
7917 Pedro Alves <palves@redhat.com>
7919 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7920 CREATE_BREAKPOINT_FLAGS_INSERTED.
7921 (create_breakpoint_sal, create_breakpoints_sal)
7922 (base_breakpoint_create_breakpoints_sal)
7923 (tracepoint_create_breakpoints_sal)
7924 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7926 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7927 (ftrace_command, strace_command): Adjust.
7928 (create_tracepoint_from_upload): Pass
7929 CREATE_BREAKPOINT_FLAGS_INSERTED.
7930 * breakpoint.h (enum breakpoint_create_flags): New.
7931 (create_breakpoint): New flags parameter.
7932 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7933 * python/py-breakpoint.c (bppy_init): Adjust.
7934 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7935 * spu-tdep.c (spu_catch_start): Adjust.
7937 2012-03-13 Pedro Alves <palves@redhat.com>
7938 Hui Zhu <teawater@gmail.com>
7939 Yao Qi <yao@codesourcery.com>
7941 * remote.c (struct remote_state): New field `starting_up'.
7942 (remote_start_remote): Set and clear it.
7943 (remote_can_download_tracepoint): If starting up, return false.
7945 2012-03-13 Yao Qi <yao@codesourcery.com>
7947 * inferior.h (struct inferior): Remove fields any_syscall_count,
7948 syscalls_counts and total_syscalls_count. Move them to new
7949 struct catch_syscall_inferior_data in breakpoint.c.
7950 * breakpoint.c: Call DEF_VEC_I(int).
7951 (struct catch_syscall_inferior_data): New.
7952 (get_catch_syscall_inferior_data): New.
7953 (catch_syscall_inferior_data_cleanup): New.
7954 (insert_catch_syscall): Update to access data in
7955 struct catch_syscall_inferior_data.
7956 (insert_catch_syscall): Likewise.
7957 (remove_catch_syscall): Likewise.
7958 (remove_catch_syscall): Likewise.
7959 (is_syscall_catchpoint_enabled): Likewise.
7960 (add_catch_command): Likewise.
7961 (_initialize_breakpoint): Register cleanup.
7962 * breakpoint.h: Removed DEF_VEC_I(int).
7963 * dwarf2loc.c: Call DEF_VEC_I(int).
7964 * mi/mi-main.c: Likewise.
7966 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7968 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7970 2012-03-12 Chris January <chris.january@allinea.com>
7972 * aix-thread.c (_initialize_aix_thread): Add prototype.
7973 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7974 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7976 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7978 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7979 include of "amd64-nat.h".
7981 2012-03-12 Tom Tromey <tromey@redhat.com>
7983 * buildsym.c (record_pending_block): Now static.
7984 * buildsym.h: (record_pending_block): Remove.
7986 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7988 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7990 2012-03-09 Tom Tromey <tromey@redhat.com>
7992 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7993 producer_is_gxx_lt_4_6>: New fields.
7994 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7996 2012-03-09 Tom Tromey <tromey@redhat.com>
7998 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8000 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8002 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8005 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8007 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8009 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8011 Fix -Wmissing-prototypes build.
8012 * arm-linux-nat.c (get_thread_id): Make it static.
8013 * xtensa-linux-nat.c (get_thread_id): Likewise.
8015 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8017 * server.c (process_point_options): If a conditional expression
8018 is found, only print a message if remote_debug is nonzero.
8020 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8022 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8023 of internal error for unknown/unsupported types.
8025 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8027 Fix CU relative vs. absolute DIE offsets.
8028 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8029 offset to offset_in_cu.
8030 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8032 (dwarf2_fetch_die_location_block): Rename parameter offset to
8033 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8035 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8037 * libunwind-frame.c: Rename to ...
8038 * ia64-libunwind-tdep.c: ... here.
8039 * libunwind-frame.h: Rename to ...
8040 * ia64-libunwind-tdep.h: ... here.
8041 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8042 ia64-libunwind-tdep.h.
8043 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8044 * README (--with-libunwind): Rename to ...
8045 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8046 * config.in: Regenerate.
8047 * configure: Regenerate.
8048 * configure.ac: New option --with-libunwind-ia64, make the
8049 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8050 Remove AC_DEFINE for HAVE_LIBUNWIND.
8051 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8052 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8053 Rename libunwind-frame in the general comment.
8054 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8055 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8056 Move forward declarations inside #ifndef. Rename libunwind-frame in
8057 the general comment.
8058 * ia64-tdep.c: Rename libunwind-frame.h #include to
8059 ia64-libunwind-tdep.h.
8060 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8061 (ia64_libunwind_descr): Rename libunwind-frame to
8062 ia64-libunwind-tdep in these function comments.
8063 * ia64-tdep.h: Rename libunwind-frame.h #include to
8064 ia64-libunwind-tdep.h.
8065 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8066 ia64-libunwind-tdep in that data comment.
8068 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8070 * libunwind-frame.h (struct frame_unwind): New declaration.
8072 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8074 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8075 "set breakpoint condition-evaluation" command.
8077 2012-03-08 Tristan Gingold <gingold@adacore.com>
8079 * sparc-stub.c: Move to stubs/
8080 * sh-stub.c: Likewise.
8081 * m68k-stub.c: Likewise.
8082 * m32r-stub.c: Likewise.
8083 * i386-stub.c: Likewise.
8085 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8087 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8088 linux_get_siginfo_type.
8090 * m68klinux-nat.c: Include "gdb_proc_service.h".
8091 (PTRACE_GET_THREAD_AREA): Define.
8092 (ps_get_thread_area): New function.
8094 2012-03-08 Yao Qi <yao@codesourcery.com>
8096 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8098 (remote_query_attached): Likewise.
8099 (remote_static_tracepoint_marker_at): Likewise.
8100 (remote_set_permissions): Likewise.
8101 (remote_detach_1, extended_remote_attach_1): Likewise.
8102 (send_g_packet, remote_vkill): Likewise.
8103 (extended_remote_disable_randomization): Likewise.
8104 (remote_add_target_side_condition): Likewise.
8105 (remote_insert_breakpoint): Likewise.
8106 (remote_remove_breakpoint): Likewise.
8107 (remote_insert_watchpoint): Likewise.
8108 (remote_remove_watchpoint): Likewise.
8109 (remote_insert_hw_breakpoint): Likewise.
8110 (remote_insert_hw_breakpoint): Likewise.
8111 (remote_remove_hw_breakpoint): Likewise.
8112 (remote_download_command_source): Likewise.
8113 (remote_download_tracepoint): Likewise.
8114 (remote_download_trace_state_variable): Likewise.
8115 (remote_disable_tracepoint): Likewise.
8116 (remote_trace_set_readonly_regions): Likewise.
8117 (remote_get_tracepoint_status): Likewise.
8118 (remote_trace_find): Likewise.
8119 (remote_get_trace_state_variable_value): Likewise.
8120 (remote_set_disconnected_tracing): Likewise.
8121 (remote_set_circular_trace_buffer): Likewise.
8122 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8123 (remote_use_agent): Likewise.
8124 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8127 2012-03-07 Pedro Alves <palves@redhat.com>
8129 * NEWS: Mention QProgramSignals.
8130 * inferior.h (update_signals_program_target): Declare.
8131 * infrun.c: (update_signals_program_target): New.
8132 (handle_command): Update the target of the new program signals
8134 * remote.c (PACKET_QProgramSignals): New enum.
8135 (last_program_signals_packet): New global.
8136 (remote_program_signals): New.
8137 (remote_start_remote): Update the target with the program signals
8139 (remote_protocol_features): Add entry for QPassSignals.
8140 (remote_open_1): Free anc clear last_program_signals_packet.
8141 (init_remote_ops): Install remote_program_signals.
8142 * target.c (update_current_target): Adjust.
8143 (target_program_signals): New.
8144 * target.h (struct target_ops) <to_program_signals>: New field.
8145 (target_program_signals): Declare.
8147 2012-03-07 Pedro Alves <palves@redhat.com>
8149 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8152 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8154 * m68klinux-nat.c (getregs_supplies): Make static.
8155 (getfpregs_supplies): Likewise.
8156 (have_ptrace_getregs): Likewise.
8158 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8160 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8161 in call to get_die_type_at_offset.
8163 2012-03-06 Stan Shebs <stan@codesourcery.com>
8165 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8166 * mi/mi-cmd-disas.c: Ditto.
8167 * mi/mi-cmd-env.c: Ditto.
8168 * mi/mi-cmd-file.c: Ditto.
8169 * mi/mi-cmd-stack.c: Ditto.
8170 * mi/mi-cmd-target.c: Ditto.
8171 * mi/mi-cmd-var.c: Ditto.
8172 * mi/mi-cmds.c: Ditto.
8173 * mi/mi-cmds.h: Ditto.
8174 * mi/mi-console.c: Ditto.
8175 * mi/mi-getopt.c: Ditto.
8176 * mi/mi-getopt.h: Ditto.
8177 * mi/mi-interp.c: Ditto.
8178 * mi/mi-main.c: Ditto.
8179 * mi/mi-out.c: Ditto.
8180 * mi/mi-parse.c: Ditto.
8181 * mi/mi-parse.h: Ditto.
8182 * mi/mi-symbol-cmds.c: Ditto.
8184 * mi/mi-getopt.h: Move mi_opt struct up.
8185 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8187 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8189 2012-03-06 Tom Tromey <tromey@redhat.com>
8191 * proc-service.c (ps_pglobal_lookup): Set the current program
8194 2012-03-06 Pedro Alves <palves@redhat.com>
8196 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8198 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8200 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8202 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8205 * common/linux-osdata.c (linux_common_core_of_thread): New function
8207 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8208 call by linux_common_core_of_thread.
8209 (linux_nat_core_of_thread_1): Remove.
8210 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8211 * linux-thread-db.c: Include linux-osdata.h.
8212 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8213 linux_common_core_of_thread.
8215 2012-03-05 Tom Tromey <tromey@redhat.com>
8217 * value.c (value_primitive_field): Don't fetch contents for
8220 2012-03-05 Tom Tromey <tromey@redhat.com>
8222 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8224 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8226 * s390-nat.c: Include "gregset.h".
8228 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8230 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8231 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8232 (libunwind_load): New variable so_error, use it for dlerror. Try to
8233 load also LIBUNWIND_SO_7.
8235 2012-03-05 Pedro Alves <palves@redhat.com>
8237 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8238 is not NULL, and remove resulting dead code.
8240 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8242 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8243 prologue to sh_analyze_prologue.
8244 (sh_analyze_prologue): Make better use of such an upper limit, and
8245 generally be more cautious about accessing memory.
8247 2012-03-05 Tom Tromey <tromey@redhat.com>
8249 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8250 _initialize_ia64_hpux_tdep.
8252 2012-03-05 Pedro Alves <palves@redhat.com>
8256 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8257 the register state is clear, supply explicit zero, instead of
8258 marking the register unavailable.
8260 2012-03-05 Tristan Gingold <gingold@adacore.com>
8262 * NEWS: Mention OpenVMS ia64 new target.
8264 2012-03-05 Tristan Gingold <gingold@adacore.com>
8266 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8267 (ia64_unw_accessors, ia64_unw_rse_accessors)
8268 (ia64_libunwind_descr): Declare.
8269 * ia64-vms-tdep.c: New file.
8270 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8271 (ia64_libunwind_descr): Make them public.
8272 * configure.tgt: Add ia64-*-*vms*.
8273 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8274 (ALLDEPFILES): Add ia64-vms-tdep.c
8276 2012-03-05 Tristan Gingold <gingold@adacore.com>
8278 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8279 * remote.c (PACKET_qXfer_uib): New enum value.
8280 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8281 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8282 (_initialize_remote): Call add_packet_config_cmd for
8285 2012-03-05 Tristan Gingold <gingold@adacore.com>
8287 * osabi.c (gdb_osabi_names): Add OpenVMS.
8288 (generic_elf_osabi_sniffer): Likewise.
8289 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8291 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8293 Removed unused code.
8294 * libunwind-frame.c (libunwind_frame_unwind)
8295 (libunwind_frame_base_address): Remove.
8296 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8298 2012-03-04 Yao Qi <yao@codesourcery.com>
8300 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8301 remove trailing new line.
8302 (agent_run_command, agent_run_command): Add _ markup.
8303 (agent_capability_check): Likewise.
8305 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8307 * breakpoint.c (set_condition_evaluation_mode): Set
8308 CONDITION_EVALUATION_MODE unconditionally.
8310 2012-03-03 Yao Qi <yao@codesourcery.com>
8312 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8313 * common/agent.h: Update declaration.
8314 * inf-child.c (inf_child_use_agent): New.
8315 (inf_child_can_use_agent): New.
8316 (inf_child_target): Initialize fields `to_use_agent'
8317 and `to_can_use_agent'.
8318 * agent.c (agent_new_objfile): New.
8319 (_initialize_agent): Add agent_new_objfile to new_objfile
8322 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8324 (linux_target_install_ops): Initialize field
8325 `to_static_tracepoint_markers_by_strid'.
8326 * remote.c (free_current_marker): Move it to ...
8327 * tracepoint.c (free_current_marker): ... here. New.
8328 (cleanup_target_stop): New.
8329 * tracepoint.h: Declare free_current_marker.
8330 * NEWS: Add one entry about `info static-tracepoint-marker'.
8332 2012-03-03 Yao Qi <yao@codesourcery.com>
8334 * common/agent.c (agent_loaded_p): New.
8335 (agent_look_up_symbols): New global.
8336 * common/agent.h: Declare agent_loaded_p.
8338 2012-03-03 Yao Qi <yao@codesourcery.com>
8340 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8341 (agent_capability_check, agent_capability_invalidate): New.
8342 (symbol_list): New array element.
8343 * common/agent.h (enum agent_capa): New.
8344 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8346 2012-03-03 Yao Qi <yao@codesourcery.com>
8348 * target.h (struct target_ops) <to_use_agent>: New field.
8349 (struct target_ops) <to_can_use_agent>: New field.
8350 (target_use_agent, target_can_use_agent): New macro.
8351 * target.c (update_current_target): Update.
8352 * remote.c: New enum `PACKET_QAgent'.
8353 (remote_protocol_features): Add a new element.
8354 (remote_use_agent, remote_can_use_agent): New.
8355 (init_remote_ops): Initialize field `can_use_agent' with
8356 remote_can_use_agent. Intiailize field `use_agent' with
8358 * common/agent.c (use_agent): New global.
8359 * common/agent.h: Declare it.
8360 * tracepoint.c (info_static_tracepoint_markers_command): Add
8362 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8363 (COMMON_OBS): Add common/agent.o and agent.o
8364 (common-agent.o): New rule.
8367 2012-03-03 Yao Qi <yao@codesourcery.com>
8369 * common/agent.c: New.
8370 * common/agent.h: New.
8371 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8373 * configure, configh.in: Regenerated.
8375 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8377 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8378 unless it exists for this architecture.
8380 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8382 * language.h (struct language_defn): New "method" la_read_var_value.
8383 * findvar.c: #include "language.h".
8384 (default_read_var_value): Renames read_var_value. Rewrite
8385 function description.
8386 (read_var_value): New function.
8387 * value.h (default_read_var_value): Add prototype.
8388 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8390 (ada_language_defn): Add entry for la_read_var_value.
8391 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8392 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8393 language_defn structures to add entry for new la_read_var_value
8396 2012-03-02 Tom Tromey <tromey@redhat.com>
8397 Pedro Alves <palves@redhat.com>
8399 PR breakpoints/13776:
8400 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8402 (delete_longjmp_breakpoint_at_next_stop): New.
8403 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8404 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8405 before deleting the inferior. Add comments.
8406 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8407 breakpoints immediately, but only on next stop. Move that code
8408 next to where we mark other breakpoints for deletion.
8410 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8412 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8414 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8417 2012-03-02 Pedro Alves <palves@redhat.com>
8419 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8421 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8423 Fix -Wmissing-prototypes build.
8424 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8425 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8426 (gdbsim_has_memory): Likewise.
8428 2012-03-02 Yao Qi <yao@codesourcery.com>
8430 Fix -Wmissing-prototypes build.
8431 * charset.c (phony_iconv_open): Make static.
8432 (phony_iconv_close, phony_iconv): Likewise.
8433 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8434 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8436 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8437 * ser-mingw.c (create_select_thread): Make static.
8438 * windows-termcap.c (tgetent): New prototype.
8439 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8441 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8443 Fix -Wmissing-prototypes build.
8444 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8445 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8446 (_initialize_loadable): New prototypes.
8448 2012-03-02 Doug Evans <dje@google.com>
8450 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8451 abbrev table, read_comp_unit will do it.
8453 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8455 Fix -Wmissing-prototypes build.
8456 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8457 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8458 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8459 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8460 (_initialize_arm_symbian_tdep): New prototype.
8461 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8462 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8463 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8465 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8466 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8468 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8469 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8470 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8472 * moxie-tdep.c (moxie_process_record): Likewise.
8473 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8474 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8475 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8476 (_initialize_rl78_tdep): New prototype.
8477 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8478 (_initialize_rx_tdep): New prototype.
8479 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8480 (_initialize_darwin_solib): New prototype.
8481 * solib-spu.c: Include solib-spu.h.
8482 (_initialize_spu_solib): New prototype.
8483 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8484 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8485 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8486 (tic6x_software_single_step): Make it static.
8487 (_initialize_tic6x_tdep): New prototype.
8489 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8491 Fix -Wmissing-prototypes build.
8492 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8493 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8495 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8497 Fix -Wmissing-prototypes build.
8498 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8499 (frv_have_stopped_data_address): Remove.
8501 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8503 Fix -Wmissing-prototypes build.
8504 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8505 * sh-tdep.c: Include sh64-tdep.h.
8506 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8507 * sh64-tdep.c: Include sh64-tdep.h.
8508 * sh64-tdep.h: New file.
8510 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8512 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8514 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8516 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8517 sp_regnum once the gdbarch_init_osabi hook has been called.
8519 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8521 * mips-tdep.c (mips32_bc1_pc): New function.
8522 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8523 BPOSGE32 and BPOSGE64 instructions.
8524 (deal_with_atomic_sequence): Likewise.
8525 (mips32_instruction_has_delay_slot): Likewise.
8527 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8528 Chris Dearman <chris@mips.com>
8529 Maciej W. Rozycki <macro@codesourcery.com>
8530 Joseph Myers <joseph@codesourcery.com>
8532 * features/mips-dsp.xml: New file.
8533 * features/mips64-dsp.xml: New file.
8534 * features/mips-dsp-linux.xml: New file.
8535 * features/mips64-dsp-linux.xml: New file.
8536 * features/Makefile (WHICH): Add mips-dsp-linux and
8538 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8539 * features/mips-dsp-linux.c: New file.
8540 * features/mips64-dsp-linux.c: New file.
8541 * regformats/mips-dsp-linux.dat: New file.
8542 * regformats/mips64-dsp-linux.dat: New file.
8543 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8545 (mips64_linux_register_addr): Likewise.
8546 (mips64_linux_regsets_fetch_registers): Likewise.
8547 (mips64_linux_regsets_store_registers): Likewise.
8548 (mips64_linux_fetch_registers): Update call to
8549 mips64_linux_regsets_fetch_registers.
8550 (mips64_linux_store_registers): Update call to
8551 mips64_linux_regsets_store_registers.
8552 (mips_linux_read_description): Probe for DSP registers.
8553 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8554 and initialize_tdesc_mips64_dsp_linux.
8555 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8556 Remove padding of no longer used embedded register slots.
8557 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8558 (MIPS_RESTART_REGNUM): Redefine enum value.
8559 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8561 (mips_tx39_reg_names): Likewise.
8562 (mips_linux_reg_names): New array of register names for Linux
8564 (mips_register_name): Check for a null pointer in
8565 mips_processor_reg_names and return an empty string.
8566 (mips_register_type): Exclude embedded registers for the IRIX
8568 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8569 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8571 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8572 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8573 (mips_gdbarch_init): Likewise. Initialize internal register
8574 indices for the Linux ABI. Use dynamic numbers to refer to
8575 registers, as applicable, while parsing the target description.
8576 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8578 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8580 * frame.h (read_frame_register_unsigned): Fix typo in function
8583 2012-03-01 Pedro Alves <palves@redhat.com>
8585 * jit-reader.in [!__cplusplus]
8586 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8588 2012-03-01 Pedro Alves <palves@redhat.com>
8590 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8591 * configure: Regenerate.
8593 2012-03-01 Pedro Alves <palves@redhat.com>
8595 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8596 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8597 (ftrace_command, strace_command): Make static.
8598 * d-lang.c (_initialize_d_language): Declare.
8599 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8600 * dwarf2loc.c (_initialize_dwarf2loc):
8601 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8602 * exec.c (exec_get_section_table): Make static.
8603 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8604 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8605 * inferior.c (remove_inferior_command, add_inferior_command)
8606 (clone_inferior_command): Make static.
8607 * linux-nat.c (linux_nat_thread_address_space)
8608 (linux_nat_core_of_thread): Make static.
8609 * linux-tdep.c (_initialize_linux_tdep): Declare.
8610 * objc-lang.c (_initialize_objc_lang): Declare.
8611 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8613 (_initialize_opencl_language): Declare.
8614 * record.c (_initialize_record): Declare.
8615 * remote.c (demand_private_info, remote_get_tib_address)
8616 (remote_supports_cond_tracepoints)
8617 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8619 * skip.c (_initialize_step_skip): Declare.
8620 * symtab.c (skip_prologue_using_lineinfo): Make static.
8621 * tracepoint.c (delete_trace_state_variable)
8622 (trace_variable_command, delete_trace_variable_command)
8623 (get_uploaded_tsv, find_matching_tracepoint_location)
8624 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8626 * value.c (pack_unsigned_long): Make static.
8627 * varobj.c (varobj_ensure_python_env): Make static.
8628 * windows-tdep.c (_initialize_windows_tdep): Declare.
8629 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8631 2012-03-01 Pedro Alves <palves@redhat.com>
8633 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8635 (linux_init_abi): Install it as has_shared_address_space gdbarch
8638 2012-03-01 Pedro Alves <palves@redhat.com>
8640 * observer.c (observer_test_first_notification_function)
8641 (observer_test_second_notification_function)
8642 (observer_test_third_notification_function): Add declarations.
8644 2012-03-01 Pedro Alves <palves@redhat.com>
8646 * common/signals.c (default_target_signal_to_host)
8647 (default_target_signal_from_host): Move ...
8648 * arch-utils.c: ... here.
8649 * arch-utils.h (default_target_signal_to_host)
8650 (default_target_signal_from_host): Declare.
8652 * common/signals.c (target_signal_from_command): Move ...
8653 * infrun.c: ... here.
8654 * inferior.h (target_signal_from_command): Declare.
8655 * target.h (target_signal_from_command)
8656 (default_target_signal_from_host, default_target_signal_to_host):
8657 Delete declarations.
8659 * common/signals.c (_initialize_signals): Delete.
8661 2012-03-01 Pedro Alves <palves@redhat.com>
8663 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8664 both __cplusplus and !__cplusplus.
8666 2012-03-01 Pedro Alves <palves@redhat.com>
8668 * psymtab.c (find_and_open_source): Delete declaration.
8669 * source.c (find_and_open_source): Move comment ...
8670 * source.h (find_and_open_source): ... to this new declaration.
8672 2012-03-01 Pedro Alves <palves@redhat.com>
8674 * inline-frame.c: Include inline-frame.h.
8676 2012-03-01 Pedro Alves <palves@redhat.com>
8678 * tui/tui-data.c (set_gen_win_origin): Delete.
8679 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8680 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8682 2012-03-01 Pedro Alves <palves@redhat.com>
8684 * remote.c (encode_actions): Delete declaration.
8685 * tracepoint.c (encode_actions): Make extern.
8686 * tracepoint.h (encode_actions): Declare.
8688 2012-03-01 Pedro Alves <palves@redhat.com>
8690 * python/py-breakpoint.c: Include python.h.
8691 * python/py-continueevent.c (create_continue_event_object): Make
8693 * python/py-lazy-string.c (stpy_get_type): Make static.
8694 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8696 * python/py-utils.c (unicode_to_target_python_string): Make
8698 * python/py-value.c: Include python.h.
8700 2012-03-01 Pedro Alves <palves@redhat.com>
8702 * inferior.c (delete_threads_of_inferior): Delete.
8704 2012-03-01 Pedro Alves <palves@redhat.com>
8706 Import fallback definitions from glibc.
8708 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8709 ps_prochandle): Forward declare.
8710 (ps_err_e): Use glibc's comments.
8711 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8712 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8713 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8714 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8715 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8716 (struct ps_prochandle): Adjust comment.
8718 2012-03-01 Pedro Alves <palves@redhat.com>
8720 * ada-lang.c (ada_modulus_from_name): Delete.
8721 * ada-lex.l (lexer_init): Make static.
8723 2012-03-01 Pedro Alves <palves@redhat.com>
8727 * frame.c (read_frame_register_unsigned): New.
8728 * frame.h (read_frame_register_unsigned): Declare.
8729 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8731 (print_i387_control_word): New parameter `control_p'. Handle it.
8732 (i387_print_float_info): Handle unavailable float registers.
8734 2012-03-01 Keith Seitz <keiths@redhat.com>
8736 * linespec.c (decode_line_2): Sort the list of methods
8737 alphabetically before presenting the user with a selection
8740 2012-03-01 Doug Evans <dje@google.com>
8742 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8744 (dwarf2_read_abbrevs): Remove corresponding initialization.
8746 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8748 * NEWS: Mention new python command class gdb.COMMAND_USER.
8749 * cli/cli-cmds.c (show_user): Print error when used on a python
8751 (init_cli_cmds): Update documentation strings for "show user" and
8752 "set/show max-user-call-depth" to clarify that it does not apply to
8754 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8756 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8758 * top.c (execute_command): Only execute a user-defined command as a
8759 legacy macro if c->user_commands is set.
8761 2012-03-01 Tom Tromey <tromey@redhat.com>
8763 * valprint.h (struct generic_val_print_decorations): New.
8764 (generic_val_print): Declare.
8765 * valprint.c (generic_val_print): New function.
8766 * p-valprint.c (p_decorations): New global.
8767 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8768 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8769 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8770 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8771 * m2-valprint.c (m2_decorations): New global.
8772 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8773 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8774 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8775 TYPE_CODE_ERROR>: Call generic_val_print.
8776 * f-valprint.c (f_decorations): New global.
8777 (f_val_print): Use print_function_pointer_address.
8778 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8779 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8780 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8782 * c-valprint.c (c_decorations): New global.
8783 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8784 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8785 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8786 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8787 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8788 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8791 2012-03-01 Tom Tromey <tromey@redhat.com>
8793 * valprint.c (val_print): Update.
8794 * p-valprint (pascal_val_print): Return void.
8795 * p-lang.h (pascal_val_print): Return void.
8796 * m2-valprint.c (m2_val_print): Return void.
8797 * m2-lang.h (m2_val_print): Return void.
8798 * language.h (struct language_defn) <la_val_print>: Return void.
8799 * language.c (unk_lang_val_print): Return void.
8800 * jv-valprint.c (java_val_print): Return void.
8801 * jv-lang.h (java_val_print): Return void.
8802 * f-valprint.c (f_val_print): Return void.
8803 * f-lang.h (f_val_print): Return void.
8804 * d-valprint.c (d_val_print): Return void.
8805 (dynamic_array_type): Update.
8806 * d-lang.h (d_val_print): Return void.
8807 * c-valprint.c (c_val_print): Return void.
8808 * c-lang.h (c_val_print): Return void.
8809 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8811 * ada-lang.h (ada_val_print): Return void.
8813 2012-03-01 Tom Tromey <tromey@redhat.com>
8815 * value.h (val_print): Return void.
8816 * valprint.c (val_print): Return void.
8818 2012-03-01 Tom Tromey <tromey@redhat.com>
8820 * value.h (common_val_print): Return void.
8821 * valprint.c (common_val_print): Return void.
8823 2012-03-01 Tom Tromey <tromey@redhat.com>
8825 * value.h (value_print): Return void.
8826 * valprint.c (value_print): Return void.
8827 * p-valprint.c (pascal_value_print): Return void.
8828 * p-lang.h (pascal_value_print): Return void.
8829 * language.h (struct language_defn) <la_value_print>: Return
8831 * language.c (unk_lang_value_print): Return void.
8832 * jv-valprint.c (java_value_print): Return void.
8833 * jv-lang.h (java_value_print): Return void.
8834 * f-valprint.c (c_value_print): Don't declare.
8836 * c-valprint.c (c_value_print): Return void.
8837 * c-lang.h (c_value_print): Return void.
8838 * ada-valprint.c (ada_value_print): Return void.
8839 * ada-lang.h (ada_value_print): Return void.
8841 2012-03-01 Tom Tromey <tromey@redhat.com>
8843 * value.c (value_primitive_field): Handle virtual base classes.
8845 2012-03-01 Tom Tromey <tromey@redhat.com>
8847 * gdbtypes.h (struct vbase): Remove.
8849 2012-03-01 Tom Tromey <tromey@redhat.com>
8851 * c-valprint.c (print_function_pointer_address): Move...
8852 * valprint.c: ... here. Make non-static.
8853 * m2-valprint.c (print_function_pointer_address): Remove.
8854 * valprint.h (print_function_pointer_address): Declare.
8856 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8858 * NEWS: Document the fact that one can provide a condition when
8859 creating an Ada exception catchpoint.
8861 2012-03-01 Tom Tromey <tromey@redhat.com>
8863 * valprint.c (val_print_type_code_flags): Fix placement of
8866 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8868 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8869 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8870 environment variable before calling update-copyright.
8872 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8874 * gnulib/extra/update-copyright: Update to the latest from
8875 gnulib's git repository.
8876 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8877 variable to 2 instead of 1.
8879 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8881 * varobj.c (c_value_of_variable): Remove dead code.
8883 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8885 * ada-lex.p (processId): Do not modify already encoded IDs.
8886 Update function documentation.
8888 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8890 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8891 "name" with "struct symbol *name_sym".
8892 * ada-exp.y (write_var_or_type): Update call to
8893 ada_find_renaming_symbol.
8894 "name" with "struct symbol *name_sym". Adjust Implementation
8895 accordingly. Adjust the function documentation.
8897 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8899 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8900 * ada-lang.c (ada_find_any_type): Add advance declaration.
8901 Make static. Replace ada_find_any_symbol by
8902 ada_find_any_type_symbol.
8903 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8904 Improve function description. Make static.
8905 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8906 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8908 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8910 * ada-lang.c (struct tag_args): Delete.
8911 (ada_get_tsd_type): Function body moved up in source file.
8912 (ada_tag_name_1, ada_tag_name_2): Delete.
8913 (ada_get_tsd_from_tag): New function.
8914 (ada_tag_name_from_tsd): New function.
8915 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8916 to determine the tag name.
8918 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8920 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8922 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8925 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8927 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8929 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8931 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8934 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8936 * ada-lang.c (constrained_packed_array_type): If there is a
8937 parallel XA type, use it to determine the array index type.
8939 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8941 * ada-valprint.c (ada_val_print_1): If our value is a reference
8942 to an array descriptor, dereference it before converting it
8945 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8947 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8948 creating fixed value.
8949 (ada_value_ind, ada_coerce_ref, assign_component)
8950 (ada_evaluate_subexp): Remove call to unwrap_value before
8951 call to ada_to_fixed_value.
8953 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8955 * ada-lang.c (to_fixed_array_type): Set result's type name.
8957 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8959 * ada-lang.c (catch_ada_exception_command_split): Add new
8960 argument cond_string. Add support for condition at end of
8961 "catch exception" commands.
8962 (ada_decode_exception_location): Add new argument cond_string.
8963 Update call to catch_ada_exception_command_split.
8964 (create_ada_exception_catchpoint): Add new argument cond_string.
8965 Set the breakpoint condition if needed.
8966 (catch_ada_exception_command): Update call to
8967 ada_decode_exception_location.
8968 (ada_decode_assert_location): Add function documentation.
8969 Add support for condition at end of "catch assert" command.
8970 (catch_assert_command): Update calls to ada_decode_assert_location
8971 and create_ada_exception_catchpoint.
8973 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8975 Fix disp-step-syscall.exp: fork: single step over fork.
8976 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8977 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8978 comment, change parameters gdbarch and ptid to regcache. Remove
8979 parameter regcache, initialize gdbarch from regcache here.
8980 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8982 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8984 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8985 'syscall'. Make the 'int' check more strict.
8987 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8989 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8990 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8991 (i386_linux_intx80_sysenter_syscall_record): ... here.
8992 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8993 Use the renamed function name.
8995 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8997 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8998 * breakpoint.c (until_break_command): Likewise.
8999 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9000 * infcall.c (call_function_by_hand): Likewise.
9001 * infcmd.c (finish_forward): Likewise.
9002 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9004 2012-02-28 Tristan Gingold <gingold@adacore.com>
9006 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9007 avoid variable assignments inside condition.
9009 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9011 Fix static analysis issue found by cppcheck.
9012 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9013 uninitialized BUF for size 2.
9015 2012-02-27 Chris Dearman <chris@mips.com>
9016 Nathan Froyd <froydnj@codesourcery.com>
9017 Maciej W. Rozycki <macro@codesourcery.com>
9019 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9020 (mips16_instruction_has_delay_slot): Likewise.
9021 (mips_segment_boundary): Likewise.
9022 (mips_adjust_breakpoint_address): Likewise.
9023 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9025 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9026 Maciej W. Rozycki <macro@codesourcery.com>
9028 * infrun.c (handle_inferior_event): Don't proceed through
9029 shared library trampolines if stepping at the machine
9032 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9034 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9037 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9039 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9040 (sh_stub_unwind_sniffer): New functions.
9041 (sh_stub_unwind): New variable.
9042 (sh_gdbarch_init): Wire everything.
9044 2012-02-27 Pedro Alves <palves@redhat.com>
9046 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9047 (linux_nat_post_attach_wait): Adjust to use
9048 linux_proc_pid_is_stopped.
9049 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9050 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9051 based on pid_is_stopped from both linux-nat.c and
9052 gdbserver/linux-low.c, and renamed.
9054 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9056 * remote.c (remote_watchpoint_addr_within_range): New function.
9057 (init_remote_ops): Use it.
9059 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9061 * target.h (target_watchpoint_addr_within_range): Document macro.
9063 2012-02-24 Pedro Alves <palves@redhat.com>
9065 * stack.c (set_last_displayed_sal): Issue internal_error instead
9066 of warning, and issue it after clearing the last displayed sal.
9068 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9069 Pedro Alves <palves@redhat.com>
9071 * breakpoint.c (until_break_command): Install breakpoints after
9072 all frame manipulations.
9074 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9076 * remote.c (remote_supports_cond_breakpoints): New forward
9078 (remote_add_target_side_condition): New function.
9079 (remote_insert_breakpoint): Add target-side breakpoint
9080 conditional if supported.
9081 (remote_insert_hw_breakpoint): Likewise.
9082 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9085 * target.c (update_current_target): Inherit
9086 to_supports_evaluation_of_breakpoint_conditions.
9087 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9089 * target.h (struct target_ops)
9090 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9091 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9093 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9094 (condition_evaluation_both, condition_evaluation_auto,
9095 condition_evaluation_host, condition_evaluation_target,
9096 condition_evaluation_enums, condition_evaluation_mode_1,
9097 condition_evaluation_mode): New static globals.
9098 (translate_condition_evaluation_mode): New function.
9099 (breakpoint_condition_evaluation_mode): New function.
9100 (gdb_evaluates_breakpoint_condition_p): New function.
9101 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9102 (mark_breakpoint_modified): New function.
9103 (mark_breakpoint_location_modified): New function.
9104 (set_condition_evaluation_mode): New function.
9105 (show_condition_evaluation_mode): New function.
9106 (bp_location_compare_addrs): New function.
9107 (get_first_location_gte_addr): New helper function.
9108 (set_breakpoint_condition): Free condition bytecode if locations
9109 has become unconditional. Call mark_breakpoint_modified (...).
9110 (condition_command): Call update_global_location_list (1) for
9112 (breakpoint_xfer_memory): Use is_breakpoint (...).
9113 (is_breakpoint): New function.
9114 (parse_cond_to_aexpr): New function.
9115 (build_target_condition_list): New function.
9116 (insert_bp_location): Handle target-side conditional
9117 breakpoints and call build_target_condition_list (...).
9118 (update_inserted_breakpoint_locations): New function.
9119 (insert_breakpoint_locations): Handle target-side conditional
9121 (bpstat_check_breakpoint_conditions): Add comment.
9122 (bp_condition_evaluator): New function.
9123 (bp_location_condition_evaluator): New function.
9124 (print_breakpoint_location): Print information on where the condition
9126 (print_one_breakpoint_location): Likewise.
9127 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9128 breakpoint location.
9129 (force_breakpoint_reinsertion): New functions.
9130 (update_global_location_list): Handle target-side breakpoint
9132 Reinsert locations that are already inserted if conditions have
9134 (bp_location_dtor): Free agent expression bytecode.
9135 (disable_breakpoint): Call mark_breakpoint_modified (...).
9136 Call update_global_location_list (...) with parameter 1 for breakpoints.
9137 (disable_command): Call mark_breakpoint_location_modified (...).
9138 Call update_global_location_list (...) with parameter 1 for breakpoints.
9139 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9140 (enable_command): mark_breakpoint_location_modified (...).
9141 (_initialize_breakpoint): Update documentation and add
9142 condition-evaluation breakpoint subcommand.
9144 * breakpoint.h: Include ax.h.
9145 (condition_list): New data structure.
9146 (condition_status): New enum.
9147 (bp_target_info) <cond_list>: New field.
9148 (bp_location) <condition_changed, cond_bytecode>: New fields.
9149 (is_breakpoint): New prototype.
9151 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9153 * remote.c (remote_state) <cond_breakpoints>: New field.
9154 (PACKET_ConditionalBreakpoints): New enum.
9155 (remote_cond_breakpoint_feature): New function.
9156 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9157 (remote_supports_cond_breakpoints): New function.
9158 (_initialize_remote): Add new packet configuration for
9159 target-side conditional breakpoints.
9161 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9163 * NEWS: Mention target-side conditional breakpoint support,
9164 new condition-evaluation breakpoint subcommand and remote
9167 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9169 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9172 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9174 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9175 (after_prologue): Remove.
9177 2012-02-23 Tom Tromey <tromey@redhat.com>
9179 * jv-valprint.c (java_val_print): Remove dead code.
9181 2012-02-23 Tristan Gingold <gingold@adacore.com>
9183 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9184 known_tasks_element and known_tasks_length fields.
9185 (read_known_tasks_array): Change argument type. Use pointer type
9186 and number of elements from DATA. Adjust.
9187 (read_known_tasks_list): Likewise.
9188 (get_known_tasks_addr): Remove.
9189 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9190 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9191 type and array length. Merge former get_known_tasks_addr code.
9193 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9196 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9197 it after set_momentary_breakpoint.
9199 2012-02-22 Sterling Augustine <saugustine@google.com>
9202 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9204 2012-02-22 Gary Benson <gbenson@redhat.com>
9206 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9207 (find_slot_in_mapped_hash): Likewise.
9209 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9212 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9213 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9214 * configure: Regenerate.
9216 2012-02-21 Tristan Gingold <gingold@adacore.com>
9217 Pedro Alves <palves@redhat.com>
9219 * ia64-tdep.c: Do not include libunwind-ia64.h.
9220 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9221 Include libunwind-ia64.h instead of libunwind.h.
9222 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9223 for libunwind.h existence.
9224 * configure, config.in: Regenerate.
9226 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9228 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9229 instead of value_rtti_target_type.
9230 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9231 instead of value_rtti_target_type.
9232 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9233 value_rtti_target_type.
9234 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9235 (value_rtti_target_type): Rename to ...
9236 (value_rtti_indirect_type): ... here and make it indirect. Update
9238 * value.c (readjust_indirect_value_type): New function.
9239 (coerce_ref): Support for enclosing type setting for references
9240 with readjust_indirect_value_type.
9241 * value.h (readjust_value_type): New declaration.
9242 (value_rtti_target_type): Rename to ...
9243 (value_rtti_indirect_type): ... here.
9245 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9247 * MAINTAINERS (Write After Approval): Add myself to the list.
9249 2012-02-20 Doug Evans <dje@google.com>
9251 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9252 Rename objfile_p_char parameter to objfilep.
9253 (build_objfile_section_table): Result is now void. All callers
9255 * objfiles.h (struct objfile): Tweak comments, whitespace.
9256 (build_objfile_section_table): Update.
9258 * elfread.c (elf_symfile_segments): Fix warning text.
9260 2012-02-20 Tom Tromey <tromey@redhat.com>
9263 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9264 particular set of file names once.
9265 (dw2_map_symbol_filenames): Likewise.
9267 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9270 * main.c (write_files): Remove the declaration.
9271 (external_editor_command): Move the declaration ...
9272 [GDBTK] (external_editor_command): ... here. Fix the comment.
9274 2012-02-20 Tom Tromey <tromey@redhat.com>
9276 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9279 2012-02-20 Tristan Gingold <gingold@adacore.com>
9281 * darwin-nat.h (enum darwin_msg_state): Add comments.
9283 2012-02-20 Tristan Gingold <gingold@adacore.com>
9285 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9288 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9290 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9291 between function description and implementation.
9293 2012-02-17 Tom Tromey <tromey@redhat.com>
9296 * python/py-event.c (event_object_getset): New global.
9297 (event_object_type): Reference it.
9298 * python/py-type.c (field_object_getset): New global.
9299 (field_object_type): Reference it.
9300 * python/python-internal.h (gdb_py_generic_dict): Declare.
9301 * python/py-utils.c (gdb_py_generic_dict): New function.
9303 2012-02-17 Tristan Gingold <gingold@adacore.com>
9305 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9307 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9309 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9310 TYPE_CALLING_CONVENTION annotation.
9312 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9314 * MAINTAINERS: Add rx to target ISA section.
9315 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9316 (ALLDEPFILES): Add rx-tdep.c.
9318 2012-02-16 Tom Tromey <tromey@redhat.com>
9320 * symfile.c (symbol_file_add_main_1): Use inferior's
9322 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9323 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9325 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9327 (follow_exec): Use inferior's symfile_flags.
9328 * inferior.h (struct inferior) <symfile_flags>: New field.
9330 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9333 * remote-sim.c (gdbsim_create_inferior): Call error() when
9334 sim_create_inferior() fails.
9336 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9338 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9340 2012-02-16 Tom Tromey <tromey@redhat.com>
9343 * thread.c (struct current_thread_cleanup) <was_removable>: New
9345 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9346 (make_cleanup_restore_current_thread): Initialize new field.
9348 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9350 * MAINTAINERS: Add rl78 to target ISA section.
9351 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9352 (ALLDEPFILES): Add rl78-tdep.c.
9353 * NEWS: Mention rl78 as a new target.
9355 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9357 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9359 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9361 2012-02-15 Tom Tromey <tromey@redhat.com>
9364 * infcmd.c (registers_info): Print just the current register's
9367 2012-02-15 Tom Tromey <tromey@redhat.com>
9369 * python/py-symbol.c (sympy_value): Use _().
9371 2012-02-15 Pedro Alves <palves@redhat.com>
9373 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9374 output to be like native targets'.
9375 (remote_pid_to_str): Special case the null ptid.
9377 2012-02-14 Stan Shebs <stan@codesourcery.com>
9379 * NEWS: Mention enable count command.
9380 * breakpoint.h (struct breakpoint): New field enable_count.
9381 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9382 (enable_breakpoint): Add arg to call.
9383 (struct disp_data): New struct.
9384 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9385 (do_map_enable_once_breakpoint): Create a struct and pass it.
9386 (do_map_enable_delete_breakpoint): Ditto.
9387 (do_map_enable_count_breakpoint): New function.
9388 (enable_count_command): New function.
9389 (bpstat_stop_status): Decrement enable_count.
9390 (print_one_breakpoint_location): Report enable count.
9391 (_initialize_breakpoint): Add enable count command.
9393 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9395 * rl78-tdep.c (reggroups.h): Include.
9396 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9397 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9398 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9399 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9400 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9401 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9402 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9403 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9404 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9405 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9406 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9407 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9408 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9409 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9410 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9411 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9412 beginning of register list.
9413 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9414 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9415 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9416 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9417 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9418 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9419 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9420 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9421 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9422 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9423 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9424 the pseudo registers. Rearrange other pseudo registers too so
9425 that the bank registers appear at the end.
9426 (rl78_register_type): Account for the fact that the byte sized
9427 bank registers are now pseudo-registers.
9428 (rl78_register_name): Rearrange the register name array. Make
9429 initial set of raw banked registers inaccessible.
9430 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9431 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9432 case for copying bytes back and forth between raw and pseudo
9433 versions of the banked registers. Update other cases to reflect
9435 (rl78_return_value): Update to account for changed names of
9437 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9438 rl78_register_sim_regno().
9440 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9442 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9443 the name parameter being passed to find_pc_partial_function().
9445 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9447 * MAINTAINERS: Step down from being ia64 target maintainer.
9449 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9451 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9452 compilation warning.
9454 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9456 Fix crash on loaded shlibs without loaded exec_bfd.
9457 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9458 (set_section_command): Replace exec_bfd by p->bfd.
9460 2012-02-10 Tom Tromey <tromey@redhat.com>
9462 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9463 when we have a C++ qualified name.
9465 2012-02-10 Pedro Alves <palves@redhat.com>
9467 * inferior.c (inferior_pid_to_str): New.
9468 (print_inferior, inferior_command): Use it.
9470 2012-02-10 Pedro Alves <palves@redhat.com>
9472 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9474 * configure: Regenerate.
9476 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9478 * linespec.c (decode_line_internal): Fix comment correctness.
9480 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9483 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9484 * amd64bsd-nat.c: Add support for debug registers (adapted from
9486 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9487 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9488 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9489 (amd64bsd_dr_get_control): New functions.
9490 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9491 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9492 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9493 watchpoints initialization.
9494 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9496 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9498 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9500 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9502 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9504 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9506 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9508 * language.h (symbol_name_cmp_ftype): Renames
9509 symbol_name_match_p_ftype.
9510 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9511 la_get_symbol_name_match_p.
9512 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9513 ada_get_symbol_name_match_p. Update comment.
9514 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9515 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9516 Renames symbol_name_match_p. Update field type.
9517 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9518 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9519 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9520 "la_get_symbol_name_cmp" in comments.
9521 * language.c: Likewise.
9523 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9525 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9527 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9528 (amd64_sol2_gregset32_reg_offs): Likewise.
9530 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9532 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9533 of the returned BFD is allocated by GDB.
9535 2012-02-07 Tom Tromey <tromey@redhat.com>
9538 * python/python-internal.h (frame_object_type): Declare.
9539 * python/py-symbol.c (sympy_needs_frame): New function.
9540 (sympy_value): New function.
9541 (symbol_object_getset): Add "needs_frame".
9542 (symbol_object_methods): Add "value".
9543 * python/py-frame.c (frame_object_type): No longer static.
9545 2012-02-07 Tom Tromey <tromey@redhat.com>
9548 * python/py-symbol.c (sympy_line): New function.
9549 (symbol_object_getset): Add "line".
9551 2012-02-07 Tom Tromey <tromey@redhat.com>
9553 * charset.c (find_charset_names): Check 'in' against NULL.
9555 2012-02-06 Doug Evans <dje@google.com>
9557 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9558 and fields.name members from char * to const char *. All uses updated.
9559 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9560 from char * to const char *. All uses updated.
9561 (type_name_no_tag): Update.
9562 (lookup_unsigned_typename, lookup_signed_typename): Update.
9563 * gdbtypes.c (type_name_no_tag): Change result type
9564 from char * to const char *. All callers updated.
9565 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9566 name parameter from char * to const char *.
9567 * symtab.h (struct cplus_specific): Change type of demangled_name
9568 member from char * to const char *. All uses updated.
9569 (struct general_symbol_info): Change type of name and
9570 mangled_lang.demangled_name members from char * to const char *.
9572 (symbol_get_demangled_name, symbol_natural_name): Update.
9573 (symbol_demangled_name, symbol_search_name): Update.
9574 * symtab.c (symbol_get_demangled_name): Change result type
9575 from char * to const char *. All callers updated.
9576 (symbol_natural_name, symbol_demangled_name): Ditto.
9577 (symbol_search_name): Ditto.
9578 (completion_list_add_name): Change type of symname,sym_text,
9579 text,word parameters from char * to const char *.
9580 (completion_list_objc_symbol): Change type of sym_text,
9581 text,word parameters from char * to const char *.
9582 * ada-lang.c (find_struct_field): Change type of name parameter
9583 from char * to const char *.
9584 (encoded_ordered_before): Similarly for N0,N1 parameters.
9585 (old_renaming_is_invisible): Similarly for function_name parameter.
9586 (ada_type_name): Change result type from char * to const char *.
9587 All callers updated.
9588 * ada-lang.h (ada_type_name): Update.
9589 * buildsym.c (hashname): Change type of name parameter
9590 from char * to const char *.
9591 * buildsym.h (hashname): Update.
9592 * dbxread.c (end_psymtab): Change type of include_list parameter
9593 from char ** to const char **.
9594 * dwarf2read.c (determine_prefix): Change result type
9595 from char * to const char *. All callers updated.
9596 * f-lang.c (find_common_for_function): Change type of name, funcname
9597 parameters from char * to const char *.
9598 * f-lang.c (find_common_for_function): Update.
9599 * f-valprint.c (list_all_visible_commons): Change type of funcname
9600 parameters from char * to const char *.
9601 * gdbarch.sh (static_transform_name): Change type of name parameter
9602 and result from char * to const char *.
9603 * gdbarch.c: Regenerate.
9604 * gdbarch.h: Regenerate.
9605 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9606 of name parameter from char * to const char *.
9607 * jv-lang.c (java_primitive_type_from_name): Ditto.
9608 (java_demangled_signature_length): Similarly for signature parameter.
9609 (java_demangled_signature_copy): Ditto.
9610 (java_demangle_type_signature): Ditto.
9611 * jv-lang.h (java_primitive_type_from_name): Update.
9612 (java_demangle_type_signature): Update.
9613 * objc-lang.c (specialcmp): Change type of a,b parameters
9614 from char * to const char *.
9615 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9616 from char * to const char *. All callers updated.
9617 * p-lang.h (is_pascal_string_type): Update.
9618 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9619 of name parameter from char * to const char *.
9620 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9621 * utils.c (fprintf_symbol_filtered): Ditto.
9622 * defs.h (fprintf_symbol_filtered): Update.
9623 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9624 * stabsread.h (end_psymtab): Update.
9625 * stack.c (find_frame_funname): Change type of funname parameter
9626 from char ** to const char **.
9627 * stack.h (find_frame_funname): Update.
9628 * typeprint.c (type_print): Change type of varstring parameter
9629 from char * to const char *.
9630 * value.h (type_print): Update.
9631 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9632 from char * to const char *. All callers updated.
9633 (xcoff_end_psymtab): Change type of include_list parameter
9634 from char ** to const char **. All callers updated.
9635 (swap_sym): Similarly for name parameter. All callers updated.
9636 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9638 (process_coff_symbol): Use xstrdup.
9639 * stabsread.c (stabs_method_name_from_physname): Renamed from
9640 update_method_name_from_physname. Change result type from void
9641 to char *. All callers updated.
9642 (read_member_functions): In has_destructor case, store name in objfile
9643 obstack instead of malloc space. In !has_stub case, fix mem leak.
9645 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9647 * configure: Rebuild.
9648 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9651 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9653 * configure.tgt (rl78-*-elf): New target.
9654 * rl78-tdep.c: New file.
9656 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9658 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9659 and continue the loop. Add QUIT statement.
9661 2012-02-03 Tom Tromey <tromey@redhat.com>
9664 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9665 bfd_lookup_symbol_from_symtab.
9666 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9667 gdb_bfd_lookup_symbol_from_symtab.
9669 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9671 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9672 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9673 symbol. Add assertion that sym2 is never NULL.
9675 2012-02-02 Doug Evans <dje@google.com>
9677 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9678 "name" parameter to const char ** from char **. All callers updated.
9679 (find_pc_partial_function): Ditto.
9680 (cache_pc_function_name): Change type to const char * from char *.
9681 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9682 (find_pc_partial_function): Update.
9683 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9684 type of "name" parameter to const char * from char *.
9686 * arch-utils.c (generic_in_solib_return_trampoline): Change
9687 type of "name" parameter to const char * from char *.
9688 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9689 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9690 type of "name" parameter to const char * from char *.
9691 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9692 * gdbarch.c: Regenerate.
9693 * gdbarch.h: Regenerate.
9694 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9695 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9696 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9697 type of "name" parameter to const char * from char *.
9698 * skip.c (skip_function_pc): Ditto.
9699 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9700 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9701 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9702 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9703 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9704 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9705 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9706 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9707 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9709 2012-02-02 Pedro Alves <palves@redhat.com>
9711 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9712 the current inferior has no execution. Make sure the current
9713 remote process matches gdb's current inferior.
9715 2012-02-02 Tom Tromey <tromey@redhat.com>
9718 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9721 2012-02-02 Tom Tromey <tromey@redhat.com>
9724 * symtab.c (lookup_language_this): Set block_found.
9726 2012-02-01 Tom Tromey <tromey@redhat.com>
9729 * jit.c (struct jit_inferior_data): Rewrite.
9730 (struct jit_objfile_data): New.
9731 (get_jit_objfile_data): New function.
9732 (add_objfile_entry): Update.
9733 (jit_read_descriptor): Return int. Replace descriptor_addr
9734 argument with inf_data. Update. Don't call error.
9735 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9737 (jit_inferior_init): Don't look up descriptor. Don't call error.
9738 (jit_reset_inferior_data_and_breakpoints)
9739 (jit_inferior_created_observer): Remove.
9740 (jit_inferior_exit_hook): Update.
9741 (jit_executable_changed_observer): Remove.
9742 (jit_event_handler): Update.
9743 (free_objfile_data): Reset inferior data if needed.
9744 (_initialize_jit): Update.
9746 2012-02-01 Tom Tromey <tromey@redhat.com>
9748 * jit.c (bfd_open_from_target_memory): Move higher in file.
9750 2012-02-01 Tristan Gingold <gingold@adacore.com>
9752 * libunwind-frame.c (libunwind_load): Display message if dlopen
9755 2012-02-01 Gary Benson <gbenson@redhat.com>
9757 * symtab.h (symbol_found_callback_ftype): New typedef.
9758 (iterate_over_symbols): Use the above.
9759 * symtab.c (iterate_over_symbols): Likewise.
9760 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9761 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9762 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9763 (iterate_name_matcher): Document return values.
9764 (collect_one_symbol): Likewise.
9765 (collect_function_symbols): Likewise.
9766 (collect_symbols): Likewise.
9768 2012-02-01 Tom Tromey <tromey@redhat.com>
9770 * ada-lang.c (resolve_subexp): Update.
9771 (ada_lookup_symbol_list): Add 'full_search' argument.
9772 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9773 ada_lookup_symbol_list.
9774 (ada_lookup_encoded_symbol): Update.
9775 (get_var_value): Update.
9776 * ada-exp.y (block_lookup): Update.
9777 (write_var_or_type): Update.
9778 (write_name_assoc): Update.
9779 * ada-lang.h (ada_lookup_symbol_list): Update.
9781 2012-01-31 Tom Tromey <tromey@redhat.com>
9783 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9786 2012-01-31 Doug Evans <dje@google.com>
9788 * symtab.h: Remove outdated comment.
9789 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9791 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9793 Fix build error in Darwin port.
9794 * i386-darwin-nat.c: Include i386-nat.h.
9796 2012-01-30 Tom Tromey <tromey@redhat.com>
9798 PR breakpoints/13568:
9799 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9800 argument. Check for recursive includes.
9801 (dwarf_decode_macros): Create an include hash.
9803 2012-01-30 Michael Eager <eager@eagercon.com>
9805 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9806 * ppc-linux-tdep.c: Include glibc-tdep.h.
9807 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9808 (powerpc_linux_in_plt_stub): New function.
9809 (powerpc_linux_in_dynsym_resolve_code): New function.
9810 (ppc_skip_trampoline_code): New function.
9811 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9812 Use glibc_skip_solib_resolver.
9814 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9816 Code cleanup: Make 1440 bytes of data segment read-only.
9817 * arch-utils.c (endian_enum): Make it const char *const [].
9818 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9820 * breakpoint.c (always_inserted_enums): Likewise.
9821 * cli/cli-cmds.c (script_ext_enums): Likewise.
9822 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9823 enumlist parameter const char *const *.
9824 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9825 const char *const *.
9826 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9827 parameter const char *const *.
9828 * cris-tdep.c (cris_modes): Make it const char *const [].
9829 * filesystem.c (target_file_system_kinds): Likewise.
9830 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9831 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9832 (can_use_displaced_stepping_enum, scheduler_enums)
9833 (exec_direction_names): Likewise.
9834 * language.c (_initialize_language): Make the type_or_range_names and
9835 case_sensitive_names variables const char *const [].
9836 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9837 * python/python.c (python_excp_enums): Likewise.
9838 * remote.c (interrupt_sequence_modes): Likewise.
9839 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9840 * serial.c (logbase_enums): Likewise.
9841 * sh-tdep.c (sh_cc_enum): Likewise.
9842 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9844 * symtab.c (multiple_symbols_modes): Likewise.
9845 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9847 * utils.c (internal_problem_modes): Likewise.
9849 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9851 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9852 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9855 2012-01-27 Doug Evans <dje@google.com>
9857 * configure.ac (with_python): Fix absolute path handling for win32.
9858 * configure: Regenerate.
9860 2012-01-26 Doug Evans <dje@google.com>
9862 * symtab.c: Whitespace cleanup, no code changes.
9864 * symtab.c (lookup_symbol_in_language): Improve comment.
9865 (lookup_symbol_aux): Fix comment.
9867 * psymtab.c (add_psymbol_to_list): Result is now "void".
9868 * psympriv.h (add_psymbol_to_list): Update.
9870 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9872 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9874 Do not open script filenames twice.
9875 * cli/cli-cmds.c (source_script_from_stream): Pass to
9876 source_python_script also STREAM.
9877 * python/py-auto-load.c (source_section_scripts): Pass to
9878 source_python_script_for_objfile also STREAM.
9879 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9881 * python/python-internal.h (source_python_script_for_objfile): New
9882 parameter file, rename parameter file to filename.
9883 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9884 instead if !_WIN32. Update the function comment.
9885 (source_python_script, source_python_script_for_objfile)
9886 (source_python_script): New parameter file, rename parameter file to
9887 filename. Pass FILENAME to python_run_simple_file.
9888 * python/python.h (source_python_script): New parameter file, rename
9889 parameter file to filename.
9891 2012-01-26 Pedro Alves <palves@redhat.com>
9893 * corelow.c (core_has_fake_pid): Delete.
9894 (core_close): Delete references to `core_has_fake_pid'.
9895 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9896 (core_open): Delete references to `core_has_fake_pid'.
9897 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9900 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9902 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9903 Remove language parameter from name_matcher. Adjust the comment.
9904 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9905 Remove language parameter.
9906 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9907 * linespec.c (iterate_name_matcher): Likewise.
9908 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9909 name_matcher. Adjust call accordingly.
9910 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9911 (maintenance_check_symtabs): Adjust type of parameter "fun".
9912 * psymtab.h (maintenance_check_symtabs): Likewise.
9914 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9916 * language.h (symbol_name_match_p_ftype): New typedef.
9917 (struct language_defn): Replace field la_symbol_name_compare
9918 by la_get_symbol_name_match_p.
9919 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9920 (ada_language_defn): Use it.
9921 * linespec.c (struct symbol_matcher_data): New type.
9922 (iterate_name_matcher): Rewrite.
9923 (iterate_over_all_matching_symtabs): Pass a pointer to
9924 a symbol_matcher_data struct to expand_symtabs_matching
9925 instead of just the lookup name.
9926 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9927 opencl-lang.c, p-lang.c, language.c: Delete field
9928 la_symbol_name_compare, and replace by NULL for new field
9929 la_get_symbol_name_match_p.
9930 * symfile.h (struct quick_symbol_functions): Update comment.
9932 2012-01-25 Tom Tromey <tromey@redhat.com>
9934 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9937 2012-01-24 Tom Tromey <tromey@redhat.com>
9940 * solib.c (update_solib_list): Update the program space's
9941 added_solibs and deleted_solibs fields.
9942 * progspace.h (struct program_space) <added_solibs,
9943 deleted_solibs>: New fields.
9944 (clear_program_space_solib_cache): Declare.
9945 * progspace.c (release_program_space): Call
9946 clear_program_space_solib_cache.
9947 (clear_program_space_solib_cache): New function.
9948 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9949 bpstat_stop_status. Use handle_solib_event.
9950 * breakpoint.c: Include gdb_regex.h.
9951 (print_solib_event): New function.
9952 (bpstat_print): Use print_solib_event.
9953 (bpstat_stop_status): Add special case for bp_shlib_event.
9954 (handle_solib_event): New function.
9955 (bpstat_what): Use handle_solib_event.
9956 (struct solib_catchpoint): New.
9957 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9958 (breakpoint_hit_catch_solib, check_status_catch_solib)
9959 (print_it_catch_solib, print_one_catch_solib)
9960 (print_mention_catch_solib, print_recreate_catch_solib): New
9962 (catch_solib_breakpoint_ops): New global.
9963 (catch_load_or_unload, catch_load_command_1)
9964 (catch_unload_command_1): New functions.
9965 (internal_bkpt_check_status): Add special case for
9967 (internal_bkpt_print_it): Use print_solib_event.
9968 (initialize_breakpoint_ops): Initialize
9969 catch_solib_breakpoint_ops.
9970 (_initialize_breakpoint): Register "catch load" and "catch
9972 * breakpoint.h (handle_solib_event): Declare.
9973 * NEWS: Add entry for "catch load" and "catch unload".
9975 2012-01-24 Tom Tromey <tromey@redhat.com>
9977 * ada-lang.c: Include gdb_vecs.h.
9978 * charset.c: Include gdb_vecs.h.
9979 * tracepoint.h: Include gdb_vecs.h.
9980 * gdb_vecs.h: New file.
9982 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9984 * breakpoint.c (breakpoint_hit_catch_fork)
9985 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9986 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9987 * infrun.c (inferior_has_forked, inferior_has_vforked)
9988 (inferior_has_execd, inferior_has_called_syscall): Delete.
9989 (handle_syscall_event): Get syscall_number from the execution
9990 control state's wait status.
9991 (wait_for_inferior): Don't clear syscall_number.
9993 2012-01-24 Pedro Alves <palves@redhat.com>
9995 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9996 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9997 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9998 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10000 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10001 false for events other than TARGET_SIGNAL_TRAP.
10002 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10003 Add `ws' parameter.
10004 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10005 events other than TARGET_SIGNAL_TRAP.
10006 (tracepoint_breakpoint_hit): Add `ws' parameter.
10007 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10009 (bpstat_stop_status): Same.
10010 (pc_at_non_inline_function): Same.
10011 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10012 to pass the current event's waitstatus to bpstat_stop_status
10013 and pc_at_non_inline_function.
10015 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10018 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10019 Update the function comment for it.
10020 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10021 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10024 2012-01-24 Pedro Alves <palves@redhat.com>
10026 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10027 outside `bs->stop' block.
10028 (bpstat_what): Rework bp_shlib_event handling.
10029 (internal_bkpt_check_status): If the breakpoint is a
10030 bp_shlib_event, then set bs->stop and bs->print if
10031 stop_on_solib_events is set.
10033 2012-01-24 Gary Benson <gbenson@redhat.com>
10035 Delete #if 0'd out code.
10036 * stack.c (print_frame_label_vars): Remove.
10037 (catch_info): Likewise.
10038 (_initialize_stack): Remove "info catch" command.
10039 * NEWS: Mention the above.
10041 2012-01-24 Pedro Alves <palves@redhat.com>
10043 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10045 (remote_notice_new_inferior): If the remote end doesn't support
10046 the multiprocess extensions, then the PID is fake.
10047 (add_current_inferior_and_thread): New.
10048 (remote_start_remote): Use it.
10049 (extended_remote_attach_1): Adjust.
10050 (extended_remote_create_inferior_1): Use
10051 add_current_inferior_and_thread.
10053 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10055 Fix watchpoints to be specific for each inferior.
10056 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10057 current_program_space.
10058 * i386-nat.c (i386_inferior_data_cleanup): New.
10059 (i386_inferior_data_get): Replace variable inf_data_local by an
10060 inferior_data call.
10061 (i386_use_watchpoints): Initialize i386_inferior_data.
10062 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10063 specific iterate_over_lwps.
10065 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10067 Fix watchpoints across inferior fork.
10068 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10069 comment for linux_nat_iterate_watchpoint_lwps.
10070 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10071 linux_nat_iterate_watchpoint_lwps.
10072 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10073 * i386-linux-nat.c (update_debug_registers_callback): Update the
10074 comment for linux_nat_iterate_watchpoint_lwps.
10075 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10076 linux_nat_iterate_watchpoint_lwps.
10077 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10078 * i386-nat.c: Include inferior.h.
10079 (dr_mirror): Remove.
10080 (i386_inferior_data, struct i386_inferior_data)
10081 (i386_inferior_data_get): New.
10082 (i386_debug_reg_state): Use i386_inferior_data_get.
10083 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10084 (i386_insert_watchpoint, i386_remove_watchpoint)
10085 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10086 (i386_remove_hw_breakpoint): New variable state, use
10087 i386_debug_reg_state instead of DR_MIRROR.
10088 * linux-nat.c (delete_lwp): New declaration.
10089 (num_lwps): Move here from downwards.
10090 (delete_lwp_cleanup): New.
10091 (linux_child_follow_fork): Create new child_lp, call
10092 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10094 (num_lwps): Move upwards.
10095 (linux_nat_iterate_watchpoint_lwps): New.
10096 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10097 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10099 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10103 2012-01-23 Pedro Alves <palves@redhat.com>
10105 * top.c (caution): Rename to ...
10106 (confirm): ... this.
10107 (show_caution): Rename to ...
10108 (show_confirm): ... this.
10109 (quit_cover): Adjust.
10110 (init_main): Adjust.
10111 * top.h (caution): Rename to ...
10112 (confirm): ... this.
10113 * utils.c (internal_vproblem, defaulted_query): Adjust.
10115 2012-01-23 Pedro Alves <palves@redhat.com>
10117 * top.c (caution): Update comment.
10118 (execute_command): Don't consider the current value of `caution'.
10120 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10122 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10124 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10126 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10127 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10128 * target.c (target_fileio_pwrite): Remove buffer address from
10130 (target_fileio_pread): Likewise.
10132 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10134 * NEWS: Document remote "info proc" and "generate-core-file".
10136 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10138 * gdbarch.sh (find_memory_regions): New callback.
10139 * gdbarch.c, gdbarch.h: Regenerate.
10141 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10142 callback before falling back to target method.
10144 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10145 (linux_target_install_ops): No longer install it.
10147 * linux-tdep.c (linux_find_memory_regions): New function.
10148 (linux_init_abi): Install it.
10150 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10152 * gdbarch.sh (make_corefile_notes): New architecture callback.
10153 * gdbarch.c: Regenerate.
10154 * gdbarch.h: Likewise.
10156 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10157 before target_make_corefile_notes. If NULL is returned, the
10158 target does not support core file generation.
10160 * linux-nat.c: Include "linux-tdep.h".
10161 (find_signalled_thread, find_stop_signal): Remove.
10162 (linux_nat_do_thread_registers): Likewise.
10163 (struct linux_nat_corefile_thread_data): Likewise.
10164 (linux_nat_corefile_thread_callback): Likewise.
10165 (iterate_over_spus): Likewise.
10166 (struct linux_spu_corefile_data): Likewise.
10167 (linux_spu_corefile_callback): Likewise.
10168 (linux_spu_make_corefile_notes): Likewise.
10169 (linux_nat_collect_thread_registers): New function.
10170 (linux_nat_make_corefile_notes): Replace contents by call to
10171 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10172 as native-only callback.
10174 * linux-tdep.h: Include "bfd.h".
10175 (struct regcache): Add forward declaration.
10176 (linux_collect_thread_registers_ftype): New typedef.
10177 (linux_make_corefile_notes): Add prototype.
10178 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10179 "regset.h", and "elf-bfd.h".
10180 (find_signalled_thread, find_stop_signal): New functions.
10181 (linux_spu_make_corefile_notes): Likewise.
10182 (linux_collect_thread_registers): Likewise.
10183 (struct linux_corefile_thread_data): New data structure.
10184 (linux_corefile_thread_callback): New funcion.
10185 (linux_make_corefile_notes): Likewise.
10186 (linux_make_corefile_notes_1): Likewise.
10187 (linux_init_abi): Install it.
10189 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10191 * gdbarch.sh (info_proc): New callback.
10192 * gdbarch.c, gdbarch.h: Regenerate.
10194 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10195 before falling back to the target info_proc callback.
10197 * linux-nat.c: Do not include "cli/cli-utils.h".
10198 (linux_nat_info_proc): Remove.
10199 (linux_target_install_ops): No longer install it.
10201 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10202 (read_mapping): New function.
10203 (linux_info_proc): Likewise.
10204 (linux_init_abi): Install it.
10206 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10208 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10209 * infcmd.c: (info_proc_cmd_1): New function.
10210 (info_proc_cmd): New function, moved here from equivalent routine
10211 orignally in linux-nat.c.
10212 (info_proc_cmd_mappings): Likewise.
10213 (info_proc_cmd_stat): Likewise.
10214 (info_proc_cmd_status): Likewise.
10215 (info_proc_cmd_cwd): Likewise.
10216 (info_proc_cmd_cmdline): Likewise.
10217 (info_proc_cmd_exe): Likewise.
10218 (info_proc_cmd_all): Likewise.
10219 (_initialize_infcmd): Install "info proc" command and subcommands.
10221 * target.h (struct target_ops): Add to_info_proc.
10222 (target_info_proc): Add prototype.
10223 * target.c (target_info_proc): New function.
10225 * procfs.c (procfs_info_proc): Add prototype.
10226 (info_proc_cmd): Rename into ...
10227 (procfs_info_proc): ... this. Update argument types as appropriate
10228 for a to_info_proc implementation. Handle "what" argument.
10229 (procfs_target): Install procfs_info_proc.
10230 (_initialize_procfs): No longer install "info proc" command.
10232 * linux-nat.c: (enum info_proc_what): Remove.
10233 (linux_nat_info_proc_cmd_1): Rename into ...
10234 (linux_nat_info_proc): ... this. Update argument types as appropriate
10235 for a to_info_proc implementation.
10236 (linux_nat_info_proc_cmd): Remove.
10237 (linux_nat_info_proc_cmd_mappings): Likewise.
10238 (linux_nat_info_proc_cmd_stat): Likewise.
10239 (linux_nat_info_proc_cmd_status): Likewise.
10240 (linux_nat_info_proc_cmd_cwd): Likewise.
10241 (linux_nat_info_proc_cmd_cmdline): Likewise.
10242 (linux_nat_info_proc_cmd_exe): Likewise.
10243 (linux_nat_info_proc_cmd_all): Likewise.
10244 (linux_target_install_ops): Install linux_nat_info_proc.
10245 (_initialize_linux_nat): No longer install "info proc" command
10248 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10250 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10251 * config.in, configure: Regenerate.
10253 * target.h (struct target_ops): Add to_fileio_readlink.
10254 (target_fileio_readlink): Add prototype.
10255 * target.c (target_fileio_readlink): New function.
10257 * inf-child.c: Conditionally include <sys/param.h>.
10258 (inf_child_fileio_readlink): New function.
10259 (inf_child_target): Install it.
10261 * remote.c (PACKET_vFile_readlink): New enum value.
10262 (remote_hostio_readlink): New function.
10263 (init_remote_ops): Install it.
10264 (_initialize_remote): Handle vFile:readlink packet type.
10266 2012-01-20 Pedro Alves <palves@redhat.com>
10267 Ulrich Weigand <ulrich.weigand@linaro.org>
10269 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10270 * config.in, configure: Regenerate.
10272 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10273 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10274 (target_fileio_open): Add prototype.
10275 (target_fileio_pwrite): Likewise.
10276 (target_fileio_pread): Likewise.
10277 (target_fileio_close): Likewise.
10278 (target_fileio_unlink): Likewise.
10279 (target_fileio_read_alloc): Likewise.
10280 (target_fileio_read_stralloc): Likewise.
10282 * target.c: Include "gdb/fileio.h".
10283 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10284 (default_fileio_target): New function.
10285 (target_fileio_open): Likewise.
10286 (target_fileio_pwrite): Likewise.
10287 (target_fileio_pread): Likewise.
10288 (target_fileio_close): Likewise.
10289 (target_fileio_unlink): Likewise.
10290 (target_fileio_close_cleanup): Likewise.
10291 (target_fileio_read_alloc_1): Likewise.
10292 (target_fileio_read_alloc): Likewise.
10293 (target_fileio_read_stralloc): Likewise.
10295 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10296 <fcntl.h>, and <unistd.h>.
10297 (inf_child_fileio_open_flags_to_host): New function.
10298 (inf_child_errno_to_fileio_error): Likewise.
10299 (inf_child_fileio_open): Likewise.
10300 (inf_child_fileio_pwrite): Likewise.
10301 (inf_child_fileio_pread): Likewise.
10302 (inf_child_fileio_close): Likewise.
10303 (inf_child_fileio_unlink): Likewise.
10304 (inf_child_target): Install to_fileio routines.
10306 * remote.c (init_remote_ops): Install to_fileio routines.
10308 2012-01-20 Pedro Alves <palves@redhat.com>
10309 Ulrich Weigand <ulrich.weigand@linaro.org>
10311 * remote.c (remote_multi_process_p): Only check for multi-process
10312 protocol feature, do not check for extended protocol.
10313 (remote_supports_multi_process): Check for extended protocol here.
10314 (set_general_process): Likewise.
10315 (extended_remote_kill): Likewise.
10316 (remote_pid_to_str): Likewise.
10317 (remote_query_supported): Always query multiprocess mode.
10319 2012-01-20 Pedro Alves <palves@redhat.com>
10320 Ulrich Weigand <ulrich.weigand@linaro.org>
10322 * inferior.h (struct inferior): Add fake_pid_p.
10323 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10324 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10325 magic_null_ptid since the remote side doesn't provide a real PID.
10327 2012-01-19 Tom Tromey <tromey@redhat.com>
10329 * NEWS: Combine the two Python sections.
10331 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10333 * target.h (target_close): Update comment on the target's unpush state.
10335 2012-01-19 Pedro Alves <palves@redhat.com>
10337 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10338 linux_nat_async directly instead of going through the target
10340 * target.c (unpush_target): Close target after unpushing it, not
10343 2012-01-19 Gary Benson <gbenson@redhat.com>
10345 * mdebugread.c (sort_blocks): Replace integer constants with ones
10346 derived from FIRST_LOCAL_BLOCK.
10348 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10349 Jan Kratochvil <jan.kratochvil@redhat.com>
10352 * symfile.c (find_separate_debug_file): New function.
10353 (terminate_after_last_dir_separator): Likewise.
10354 (find_separate_debug_file_by_debuglink): Also try realpath.
10355 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10356 * configure: Regenerate.
10357 * config.in: Regenerate.
10359 2012-01-18 Doug Evans <dje@google.com>
10361 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10362 (main.o): Remove rule.
10363 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10364 (--with-sysroot): Rewrite.
10365 * configure: Regenerate.
10366 * config.in: Regenerate.
10368 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10370 * parse.c (initialize_expout): New function.
10371 (reallocate_expout): Likewise.
10372 (parse_exp_in_context): Use `initialize_expout' and
10373 `reallocate_expout' when appropriate.
10375 2012-01-18 Pedro Alves <palves@redhat.com>
10377 * record.c (struct record_breakpoint, record_breakpoint_p)
10378 (record_breakpoints): New.
10379 (record_insert_breakpoint, record_remove_breakpoint): Manage
10380 record breakpoints list. Only remove breakpoints from the
10381 inferior if they had been inserted there in the first place.
10383 2012-01-17 Doug Evans <dje@google.com>
10385 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10386 if we know we don't have a file name to look for.
10388 2012-01-17 Pedro Alves <palves@redhat.com>
10390 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10391 the frame's stop reason is UNWIND_UNAVAILABLE.
10393 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10395 Fix compilation error.
10396 * m2-exp.y (yyerror): Use ANSI C prototype.
10398 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10400 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10401 (growbuf_by_size): Likewise.
10402 (yyerror): Likewise.
10403 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10404 (modblock): Remove variable (was #if 0'ed).
10405 (parse_number): Convert prototype from K&R to ANSI C.
10406 (yyerror): Likewise.
10407 * objc-exp.y (parse_number): Likewise.
10408 (yyerror): Likewise.
10409 (yylex): Remove #if 0'ed code.
10410 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10411 (yyerror): Likewise.
10413 2012-01-16 Tom Tromey <tromey@redhat.com>
10416 * symtab.h (compare_filenames_for_search): Declare.
10417 * symtab.c (compare_filenames_for_search): New function.
10418 (iterate_over_some_symtabs): Use it.
10419 * symfile.h (struct quick_symbol_functions)
10420 <map_symtabs_matching_filename>: Change spec.
10421 * psymtab.c (partial_map_symtabs_matching_filename): Use
10422 compare_filenames_for_search. Update for new spec.
10423 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10424 compare_filenames_for_search. Update for new spec.
10425 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10427 2012-01-16 Tom Tromey <tromey@redhat.com>
10430 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10431 (struct main_type) <flag_flag_enum>: New field.
10432 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10433 * NEWS: Add entries.
10434 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10436 * python/lib/gdb/printing.py (_EnumInstance): New class.
10437 (FlagEnumerationPrinter): Likewise.
10439 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10441 * breakpoint.c (create_sals_from_address_default): New function.
10442 (create_breakpoints_sal_default): Likewise.
10443 (decode_linespec_default): Likewise.
10444 (is_marker_spec): Removed.
10445 (strace_marker_p): New function.
10446 (init_breakpoint_sal): Using `strace_marker_p' instead of
10448 (create_breakpoint): Call method `create_sals_from_address' from
10449 breakpoint_ops, replacing code that created SALs conditionally
10450 on the type of the breakpoint. Call method `create_breakpoints_sal',
10451 replacing code that created breakpoints conditionally on the type
10453 (base_breakpoint_create_sals_from_address): New function.
10454 (base_breakpoint_create_breakpoints_sal): Likewise.
10455 (base_breakpoint_decode_linespec): Likewise.
10456 (base_breakpoint_ops): Add methods
10457 `base_breakpoint_create_sals_from_address',
10458 `base_breakpoint_create_breakpoints_sal' and
10459 `base_breakpoint_decode_linespec'.
10460 (bkpt_create_sals_from_address): New function.
10461 (bkpt_create_breakpoints_sal): Likewise.
10462 (bkpt_decode_linespec): Likewise.
10463 (tracepoint_create_sals_from_address): Likewise.
10464 (tracepoint_create_breakpoints_sal): Likewise.
10465 (tracepoint_decode_linespec): Likewise.
10466 (strace_marker_create_sals_from_address): Likewise.
10467 (strace_marker_create_breakpoints_sal): Likewise.
10468 (strace_marker_decode_linespec): Likewise.
10469 (strace_marker_breakpoint_ops): New variable.
10470 (addr_string_to_sals): Remove `marker_spec'. Call method
10471 `decode_linespec' from breakpoint_ops, replacing code that decoded
10472 an address string into a SAL. Use `strace_marker_p' instead of
10474 (strace_command): Decide whether we are dealing with a static
10475 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10476 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10477 * breakpoint.h (linespec_result, linespec_sals): New forward
10479 (breakpoint_ops) <create_sals_from_address>,
10480 <create_breakpoints_sal>, <decode_linespec>: New methods.
10482 2012-01-14 Doug Evans <dje@google.com>
10484 * NEWS: Update text for "maint set python print-stack".
10485 It is deprecated in gdb 7.4 and deleted in 7.5.
10487 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10489 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10490 including curses.h.
10492 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10494 * configure: Regenerate.
10495 * config.in: Regenerate.
10497 2012-01-12 Keith Seitz <keiths@redhat.com>
10500 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10501 (ANONYMOUS_UNION_NAME): Define.
10502 (is_path_expr_parent): New function.
10503 (get_path_expr_parent): New function.
10504 (is_anonymous_child): New function.
10505 (create_child_with_value): If the child is anonymous and without
10506 a name, assign an object name to it.
10507 (c_describe_child): Use get_path_expr_parent to determine
10508 the parent expression.
10509 If there field represents an anonymous struct or union and
10510 has no name, set an appropriate display name and expression.
10511 (cplus_describe_child): Likewise.
10513 2012-01-12 Pedro Alves <palves@redhat.com>
10515 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10516 available when %ebp is found to be zero (outermost).
10518 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10520 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10521 an internal gdb_static_assert.
10522 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10524 2012-01-11 Tom Tromey <tromey@redhat.com>
10527 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10528 catch" and "catch throw".
10530 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10532 * blockframe.c (block_innermost_frame): Start search from selected
10533 frame, if present, or otherwise the current frame.
10535 * c-exp.y (variable): Update innermost_block for
10536 'block COLONCOLON NAME' clause.
10537 * m2-exp.y (variable): Ditto.
10538 * objc-exp.y (variable): Ditto.
10540 2012-01-10 Tom Tromey <tromey@redhat.com>
10543 * python/python.c (finish_python_initialization): Set sys.argv.
10545 2012-01-10 Doug Evans <dje@google.com>
10547 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10548 "want_line_info". All callers updated.
10549 (dwarf_decode_lines_1): New function.
10550 (handle_DW_AT_stmt_list): Add function comment.
10551 New arg "want_line_info". All callers updated.
10552 (read_file_scope,read_type_unit_scope): Move comment from
10553 handle_DW_AT_stmt_list to here.
10555 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10557 Fix regression after libiberty/ update for GCC PR 6057 and others.
10558 * c-exp.y (operator) <OPERATOR DELETE>
10559 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10560 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10561 (make_builtin_type, make_name): New variable i, add gdb_assert.
10562 (operator) <OPERATOR NEW>: Update ARGS to 3.
10563 (operator) <OPERATOR DELETE>: Add trailing space.
10564 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10565 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10566 * cp-support.c (cp_canonicalize_string): Check NULL from
10567 cp_comp_to_string, call warning and return.
10569 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10571 Fix duplicate .o files after omitting libbfd.a.
10572 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10573 (SFILES): Add corelow.c.
10574 (COMMON_OBS): Add corelow.o.
10575 (ALLDEPFILES): Remove corelow.c.
10576 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10577 * config/alpha/alpha-osf3.mh: Likewise.
10578 * config/alpha/fbsd.mh: Likewise.
10579 * config/arm/nbsdaout.mh: Likewise.
10580 * config/arm/nbsdelf.mh: Likewise.
10581 * config/i386/i386gnu.mh: Likewise.
10582 * config/ia64/hpux.mh: Likewise.
10583 * config/ia64/linux.mh: Likewise.
10584 * config/m32r/linux.mh: Likewise.
10585 * config/m68k/linux.mh: Likewise.
10586 * config/mips/irix5.mh: Likewise.
10587 * config/mips/irix6.mh: Likewise.
10588 * config/pa/hpux.mh: Likewise.
10589 * config/pa/linux.mh: Likewise.
10590 * config/powerpc/aix.mh: Likewise.
10591 * config/sparc/linux.mh: Likewise.
10592 * config/sparc/linux64.mh: Likewise.
10593 * config/sparc/sol2.mh: Likewise.
10594 * config/vax/vax.mh: Likewise.
10595 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10596 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10597 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10598 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10599 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10600 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10601 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10602 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10603 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10604 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10605 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10606 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10607 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10608 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10609 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10610 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10611 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10612 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10613 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10614 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10615 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10616 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10617 corelow.o from gdb_target_obs.
10618 * corefile.c (core_target): Update the comment on NULL value.
10619 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10620 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10621 MATCHES. Drop YUMMY set on NULL.
10622 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10623 reclaim CORE_DATA if it is already NULL.
10625 2012-01-09 Doug Evans <dje@google.com>
10627 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10628 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10630 2012-01-09 Keith Seitz <keiths@redhat.com>
10632 * breakpoint.c (wrapper.h): Don't include.
10634 2012-01-09 Keith Seitz <keiths@redhat.com>
10636 * Makefile.in (SFILES): Remove wrapper.c.
10637 (HFILES_NO_SRCDIR): Remove wrapper.h.
10638 (COMMON_OBS): Remove wrapper.o.
10639 * cli/cli-interp.c: Don't inlude wrapper.h.
10640 * corelow.c: Likewise.
10641 (core_open): Replace gdb_target_find_new_threads with
10642 TRY_CATCH around target_find_new_threads.
10643 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10644 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10645 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10646 evaluate_expression.
10647 (varobj_set_value): Likewise for evaluate_expression and
10649 (install_new_variable): Likewise for value_fetch_lazy.
10650 (adjust_value_for_child_access): Likewise for value_ind.
10651 (c_describe_child): Likewise for value_subscript and
10653 (c_value_of_root): Likewise for evaluate_expression.
10654 * wrapper.c: Remove.
10655 * wrapper.h: Remove.
10657 2012-01-09 Doug Evans <dje@google.com>
10659 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10660 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10661 "abfd" args with "section". All callers updated.
10662 Error checking code moved ...
10663 (error_check_comp_unit_head): ... here. New function.
10664 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10665 Delete arg "abfd". New arg "type_offset". All callers updated.
10666 (create_debug_types_hash_table): Simplify by using
10667 read_and_check_type_unit_head.
10669 * parser-defs.h (namecopy): Delete.
10670 * parse.c (namecopy, namecopy_size): Move into copy_name.
10672 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10674 Partially fix duplicate .o files after omitting libbfd.a.
10675 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10676 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10677 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10678 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10679 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10680 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10681 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10683 2012-01-09 Pedro Alves <palves@redhat.com>
10685 * MAINTAINERS: Update my email address.
10687 2012-01-08 Doug Evans <dje@google.com>
10689 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10690 n_type_units. Rename type_comp_units to all_type_units.
10692 (add_signatured_type_cu_to_table): Renamed from
10693 add_signatured_type_cu_to_list. All callers updated.
10695 * gdbtypes.h (struct cplus_struct_type): Delete member
10696 nfn_fields_total. All uses removed.
10698 2012-01-06 Doug Evans <dje@google.com>
10700 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10702 (dwarf2_find_comp_unit): Delete.
10703 (process_psymtab_comp_unit): Make result "void".
10704 Delete args buffer, info_ptr, buffer_size, and replace with
10705 "section". All callers updated.
10706 (dwarf2_build_psymtabs_hard): Simplify.
10708 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10709 Thiago Jung Bauermann <bauerman@br.ibm.com>
10711 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10712 before `struct gdb_exception'.
10713 * breakpoint.c (update_global_location_list_nothrow)
10714 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10715 * cp-abi.c (value_rtti_type): Likewise.
10716 * cp-support.c (cp_validate_operator): Likewise.
10717 * infrun.c (insert_exception_resume_breakpoint)
10718 (check_exception_resume, keep_going): Likewise.
10719 * mi-interp.c (mi_breakpoint_created)
10720 (mi_breakpoint_modified): Likewise.
10721 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10722 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10723 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10725 2012-01-05 Doug Evans <dje@google.com>
10727 * dwarf2read.c (statement_prologue): Delete, unused.
10729 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10730 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10732 * dwarf2read.c (comp_unit_header): Delete, unused.
10734 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10736 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10737 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10739 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10741 * infrun.c (normal_stop): Don't skip calling the normal_stop
10742 observers if the thread was doing a multi-step, but stopped for
10743 some reason other than stepping.
10745 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10747 * cli/cli-decode.h: Add comments.
10748 (CMD_LIST_AMBIGUOUS): Moved to command.h
10749 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10750 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10751 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10752 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10753 (add_com, add_com_alias, add_info, add_info_alias)
10754 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10756 * command.h: Add and adjust comments.
10757 (CMD_LIST_AMBIGUOUS): Moved here.
10758 (help_cmd, help_cmd_list): Delete declarations.
10760 2012-01-04 Doug Evans <dje@google.com>
10762 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10763 All callers updated.
10764 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10765 Replace all arguments with "per_cu". All callers updated.
10767 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10769 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10770 New arg "per_cu". All callers updated.
10772 Delete #if 0'd out code.
10773 * language.c (binop_result_type): Delete.
10774 (simple_type, ordered_type, same_type, integral_type): Delete.
10775 (numeric_type, character_type, string_type, boolean_type): Delete.
10776 (float_type, structured_type): Delete.
10777 * language.h: Update.
10779 2012-01-04 Tom Tromey <tromey@redhat.com>
10781 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10783 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10785 * corefile.c (close_exec_file): Delete.
10786 (reopen_exec_file): Remove commented out code that seems related
10787 to close_exec_file, which is being deleted here.
10788 * inferior.h (close_exec_file): Delete.
10789 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10791 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10793 * ada-lang.c: #include "cli/cli-utils.h".
10794 (get_selections): Use skip_spaces.
10795 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10796 (catch_ada_exception_command_split): Use skip_spaces.
10797 (ada_decode_assert_location): Likewise.
10799 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10801 * linespec.c (decode_line_internal): Check for C++ or Java
10802 compound constructs only if the current language is C, C++
10805 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10808 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10809 Joel Brobecker <brobecker@adacore.com>
10810 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10811 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10813 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10814 fall through into AT_ENTRY_POINT.
10815 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10816 DUMMY_ADDR with it.
10817 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10818 PPC_INSN_SIZE skip to 3 times.
10820 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10822 * linespec.c (add_minsym): Preserve function descriptors.
10824 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10826 * breakpoint.c (all_locations_are_pending): Consider locations
10827 in program spaces executing during startup pending as well.
10829 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10831 Copyright year update in most files of the GDB Project.
10833 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10835 * copyright.sh: Delete.
10836 * copyright.py: Rewrite.
10838 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10840 * gnulib/extra/update-copyright: New file, imported from gnulib.
10842 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10844 * README (Copyright and License Notices): New section.
10846 2012-01-03 Tom Tromey <tromey@redhat.com>
10849 * python/py-value.c (valpy_dereference, valpy_get_address
10850 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10851 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10852 (valpy_absolute, valpy_richcompare): Free intermediate values.
10854 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10856 * ada-lang.c: Reformat the copyright notice.
10858 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10860 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10861 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10862 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10863 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10864 Revert this part of:
10865 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10866 Build gdb directly from *.o files not using libgdb.a.
10867 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10869 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10871 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10872 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10873 Reformat the copyright header.
10875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10877 Revert this part of:
10878 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10879 Remove the gdbtui binary.
10880 * gdb.c (main): Remove args.interpreter_p initialization.
10881 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10882 * main.h (struct captured_main_args): Remove interpreter_p.
10884 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10886 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10888 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10890 * top.c (print_gdb_version): Update copyright year.
10892 2012-01-02 Yao Qi <yao@codesourcery.com>
10894 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10896 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10897 Joel Brobecker <brobecker@adacore.com>
10899 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10900 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10902 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10903 fall through into AT_ENTRY_POINT.
10904 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10905 DUMMY_ADDR with it.
10906 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10907 PPC_INSN_SIZE skip to 3 times.
10909 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10911 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10913 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10915 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10917 Build gdb directly from *.o files not using libgdb.a.
10918 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10919 (COMMON_OBS): Remove solib-target.o.
10920 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10921 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10922 (LIBGDB_OBS, libgdb.a): Move it above.
10923 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10924 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10925 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10926 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10927 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10928 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10929 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10930 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10931 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10932 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10933 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10934 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10935 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10936 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10937 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10938 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10939 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10940 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10941 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10942 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10943 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10944 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10945 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10946 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10947 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10948 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10949 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10951 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10953 Remove the gdbtui binary.
10954 * .gitignore (/gdbtui): Remove.
10955 * Makefile.in (TUI): Remove.
10956 (SUBDIR_TUI_OBS): Remove tui-main.o.
10957 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10958 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10959 (tui-main.o): Remove.
10960 (all_object_files): Remove tui-main.o.
10961 * NEWS: New note for the gdbtui removal.
10962 * configure: Rebuilt.
10963 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10964 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10965 CONFIG_UNINSTALL respectively.
10966 * gdb.c (main): Remove args.interpreter_p initialization.
10967 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10968 * main.h (struct captured_main_args): Remove interpreter_p.
10969 * tui/tui-main.c: Remove.
10971 2012-01-01 Doug Evans <dje@google.com>
10973 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10974 (dwarf2_physname, read_import_statement): Ditto.
10975 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10976 (process_structure_scope read_subroutine_type): Ditto.
10977 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10978 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10979 (dwarf2_fetch_die_location_block): Ditto.
10980 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10982 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10983 All callers updated.
10984 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10985 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10986 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10988 * dwarf2read.c (load_cu): Move assert to more useful location.
10990 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10991 All callers updated.
10993 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10994 (dwarf2_elf_names): Minor reformat.
10995 (dwarf2_per_cu_data): Tweak comment.
10996 (dwarf2_read_section): Fix comment.
10997 (create_all_comp_units): Fix comment.
10998 (load_full_comp_unit): Fix comment.
10999 (process_full_comp_unit): Fix comment.
11000 (read_signatured_type): Fix comment.
11002 For older changes see ChangeLog-2011.
11008 version-control: never