1 2012-10-18 Tom Tromey <tromey@redhat.com>
3 * breakpoint.c (compare_breakpoints): Fix comparison.
5 2012-10-18 Tom Tromey <tromey@redhat.com>
7 * valprint.c (generic_emit_char, generic_printstr): Pass size of
8 gdb_wchar_t to convert_between_encodings.
10 2012-10-17 Yao Qi <yao@codesourcery.com>
12 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
13 more parameter 'inferior'.
14 * corefile.c (write_memory_with_notification): Caller update.
16 * mi/mi-cmd-var.c: Include "mi-main.h".
17 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
18 to 1 and restore it later.
19 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
20 and "data-write-memory-bytes.
21 * mi/mi-interp.c: Include objfiles.h.
22 (mi_interpreter_init): Call observer_attach_memory_changed.
23 (mi_memory_changed): New.
24 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
27 * NEWS: Mention new MI notification "memory-changed".
29 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
31 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
33 2012-10-15 Doug Evans <dje@google.com>
35 New option -nh: inhibit loading of ~/.gdbinit.
37 * main.c (captured_main): Recognize and process -nh.
38 (print_gdb_help): Mention -nh.
39 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
41 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
45 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
47 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
48 nor pc_regnum_from_eax.
49 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
50 nor pc_regnum_from_eax.
52 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
54 Fix entry values resolving in inlined frames.
55 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
56 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
59 2012-10-15 Joel Brobecker <brobecker@adacore.com>
61 * configure.ac: Build with -DMS_WIN64 if building with Python
62 enabled using GCC on amd64-windows.
63 * configure: Regenerate.
65 2012-10-15 Tom Tromey <tromey@redhat.com>
68 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
71 2012-10-15 Tom Tromey <tromey@redhat.com>
74 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
76 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
78 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
79 reset thread numbering back to 1.
81 2012-10-11 Doug Evans <dje@google.com>
84 * linespec.c (struct ls_parser): New member keyword_ok.
85 (linespec_lexer_lex_string): Add comment.
86 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
88 (parse_linespec): Set keyword_ok.
90 2012-10-10 Doug Evans <dje@google.com>
92 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
93 "0x" prefix on address in log message.
95 * dwarf2read.c (read_1_byte): Add const to buf parameter.
96 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
97 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
98 (lookup_dwo_file): Add const to dwo_name parameter.
99 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
101 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
103 Fix crash during stepping on ppc32.
104 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
107 2012-10-03 Doug Evans <dje@google.com>
110 * buildsym.c (buildsym_init): Reset using_directives to NULL.
112 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
114 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
115 output and use uint32_t not long to ensure 4 byte size.
117 2012-10-02 Joel Brobecker <brobecker@adacore.com>
119 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
122 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
124 * target.c (simple_search_memory): Include access length in
127 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
128 Edjunior Machado <emachado@linux.vnet.ibm.com>
131 * solib.c (solib_find): Prevent GDB from loading native libraries when
132 debugging a cross-target corefile.
134 2012-09-28 selven <pcthegreat@gmail.com>
136 Make definition match declaration.
138 * regcache.c (regcache_register_status): Change return type to
139 enum register_status.
141 2012-09-28 Yao Qi <yao@codesourcery.com>
143 * mi/mi-main.c (mi_cmd_data_write_memory): Call
144 write_memory_with_notification instead of write_memory.
145 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
146 instead of target_write_memory.
148 2012-09-28 Yao Qi <yao@codesourcery.com>
150 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
151 when the length of content is not an even number.
153 2012-09-27 Tom Tromey <tromey@redhat.com>
155 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
156 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
158 2012-09-27 Joel Brobecker <brobecker@adacore.com>
160 * sol-thread.c (sol_thread_fetch_registers)
161 (sol_thread_store_registers): Delete commented out code.
163 2012-09-27 Joel Brobecker <brobecker@adacore.com>
165 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
166 Move these functions to sparc-sol-thread.c.
167 * sparc-sol-thread.c: New file.
168 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
169 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
171 * configure: Regenerate.
173 2012-09-27 Joel Brobecker <brobecker@adacore.com>
175 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
176 Remove commented-out code.
178 2012-09-27 Joel Brobecker <brobecker@adacore.com>
180 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
181 Enable this code for sparc hosts only.
183 2012-09-27 Joel Brobecker <brobecker@adacore.com>
185 * procfs.h (procfs_find_LDT_entry): Add declaration.
186 * sol-thread.c (ps_lgetLDT): Delete local declaration of
187 function procfs_find_LDT_entry.
189 2012-09-27 Joel Brobecker <brobecker@adacore.com>
191 * procfs.c (proc_get_LDT_entry): Make static.
193 2012-09-27 Joel Brobecker <brobecker@adacore.com>
195 * procfs.c (proc_find_memory_regions): Fix declaration.
197 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
199 * amd64-tdep.c (amd64_return_value): Revert previous change
200 that used TYPE_LENGTH directly.
201 * bfin-tdep.c (bfin_extract_return_value): Likewise.
202 (bfin_store_return_value): Likewise.
203 * cris-tdep.c (cris_store_return_value): Likewise.
204 (cris_extract_return_value): Likewise.
205 * h8300-tdep.c (h8300_extract_return_value): Likewise.
206 * hppa-tdep.c (hppa64_return_value): Likewise.
207 * lm32-tdep.c (lm32_store_return_value): Likewise.
208 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
209 * spu-tdep.c (spu_value_from_register): Likewise.
210 * vax-tdep.c (vax_return_value): Likewise.
212 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
214 * gdbtypes.c (lookup_array_range_type): Expand parameters
215 LOW_BOUND and HIGH_BOUND to LONGEST.
216 (lookup_string_range_type): Likewise.
217 * gdbtypes.h (lookup_array_range_type): Likewise.
218 (lookup_string_range_type): Likewise.
219 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
220 Expand HIGHBOUND to ssize_t.
221 (value_string): Likewise.
222 * value.h (value_cstring): Expand parameter LEN to ssize_t.
223 (value_string): Likewise.
225 2012-09-27 Yao Qi <yao@codesourcery.com>
228 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
229 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
232 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
234 * procfs.c: Add gdb_bfd header.
235 * rs6000-nat.c: Likewise.
236 * solib-pa64.c: Likewise.
237 * spu-linux-nat.c: Likewise.
238 * windows-nat.c: Likewise.
240 2012-09-26 Tom Tromey <tromey@redhat.com>
242 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
244 2012-09-26 Tom Tromey <tromey@redhat.com>
246 * dwarf2read.c (mark_common_block_symbol_computed): New function.
247 (read_common_block): Handle child DIEs with
248 DW_AT_data_member_location.
249 (new_symbol_full): Add special case for common blocks.
251 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
252 Tom Tromey <tromey@redhat.com>
254 * dwarf2read.c (read_common_block): Rewrite.
255 (new_symbol_full): Handle DW_TAG_common_block.
256 * f-lang.c (head_common_list, find_common_for_function):
258 * f-lang.h (struct common_entry, struct saved_f77_common,
259 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
260 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
261 BLANK_COMMON_NAME_LOCAL): Remove.
262 (struct common_block): New.
263 * f-valprint.c (list_all_visible_commons): Remove.
264 (info_common_command_for_block): New function.
265 (info_common_command): Use it.
266 * stack.c (iterate_over_block_locals): Special case for
268 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
270 (struct general_symbol_info) <value.common_block>: New field.
271 (SYMBOL_VALUE_COMMON_BLOCK): New define.
273 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
274 Tom Tromey <tromey@redhat.com>
276 * f-lang.c (allocate_saved_bf_node,
277 allocate_saved_function_node, allocate_saved_f77_common_node,
278 allocate_common_entry_node, tail_common_list, current_common,
279 saved_bf_list, saved_bf_list_end, current_head_bf_list,
280 tmp_bf_ptr, add_common_block, add_common_entry,
281 find_first_common_named, patch_common_entries,
282 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
283 global_remote_debug, get_bf_for_fcn, saved_function_list,
284 saved_function_list_end, clear_function_list, struct saved_fcn,
285 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
286 SAVED_BF, SAVED_BF_PTR): Remove.
287 * f-lang.h (tail_common_list, current_common,
288 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
289 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
290 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
291 real_main_c_value): Remove.
292 * f-valprint.c (there_is_a_visible_common_named): Remove.
294 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
296 * breakpoint.c (update_global_location_list): Ignore previous
297 duplicate status of a breakpoint when starting a new scan for
298 duplicate breakpoints.
300 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
302 * arm-tdep.c (arm_skip_prologue): Extending producer check to
303 support LLVM compiler.
305 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
307 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
308 * bfin-tdep.c (bfin_extract_return_value): Likewise.
309 (bfin_store_return_value): Likewise.
310 * cris-tdep.c (cris_store_return_value): Likewise.
311 (cris_extract_return_value): Likewise.
312 * h8300-tdep.c (h8300_extract_return_value): Likewise.
313 * hppa-tdep.c (hppa64_return_value): Likewise.
314 * lm32-tdep.c (lm32_store_return_value): Likewise.
315 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
316 * spu-tdep.c (spu_value_from_register): Likewise.
317 * vax-tdep.c (vax_return_value): Likewise.
319 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
321 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
322 parameter LEN to ssize_t.
324 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
326 * ada-valprint.c (ada_val_print_1): Eliminate single-use
328 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
330 (alpha_store_return_value): Likewise.
331 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
332 (amd64_push_arguments): Likewise.
333 * ax-gdb.c (gen_trace_static_fields): Likewise.
334 (gen_traced_pop): Likewise.
335 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
336 * breakpoint.c (update_watchpoint): Likewise.
337 * findcmd.c (parse_find_args): Use local variable for type
339 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
340 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
341 (h8300_store_return_value): Likewise.
342 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
343 Use i386_darwin_arg_type_alignment directly.
344 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
345 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
346 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
347 (m68hc11_extract_return_value): Likewise.
348 * mep-tdep.c (mep_push_dummy_call): Likewise.
349 * printcmd.c (float_type_from_length): Likewise.
350 * s390-tdep.c (s390_value_from_register): Likewise.
351 * stack.c (read_frame_arg): Likewise.
352 * tracepoint.c (encode_actions_1): Likewise.
353 * valops.c (value_fetch_lazy): Use local variable for type
354 instead of length. Use TYPE_LENGTH directly.
355 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
357 2012-09-25 Joel Brobecker <brobecker@adacore.com>
359 * symtab.c (skip_prologue_sal): Fix typo in comment.
361 2012-09-25 Joel Brobecker <brobecker@adacore.com>
363 * linespec.c (create_sals_line_offset): Fix typo in comment.
365 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
367 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
368 use plongest to print the array size.
370 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
372 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
373 * p-valprint.c (pascal_type_print_base): Likewise.
375 2012-09-22 Yao Qi <yao@codesourcery.com>
377 * remote.c (remote_get_trace_status): Remove setting default
378 values of fields of 'ts'.
380 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
382 Fix internal error on canonicalization of clang types.
383 * cp-name-parser.y (operator): New comment at make_operator call for
384 new, delete, new[] and delete[].
385 (exp): Use "sizeof ". Add new comment at make_operator call.
387 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
389 Fix disassemble without parameters in tailcall frame.
390 * cli/cli-cmds.c (disassemble_current_function): Use
391 get_frame_address_in_block.
393 2012-09-21 Tom Tromey <tromey@redhat.com>
395 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
396 TYPE_CODE_UNION>: Unify, removing a goto.
398 2012-09-21 Tom Tromey <tromey@redhat.com>
400 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
402 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
404 * findvar.c (read_frame_register_value): Mark the result value as
405 optimized out if any of the input registers have been optimized out.
407 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
409 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
411 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
413 * eval.c (evaluate_subexp_standard): Eliminate single-use
416 2012-09-21 Yao Qi <yao@codesourcery.com>
418 * mi/mi-interp.c: Declare mi_record_changed.
419 (mi_interpreter_init): Call observer_attach_record_changed.
420 (mi_record_changed): New.
421 * record.c (record_open): Call observer_notify_record_changed.
422 (cmd_record_stop): Call observer_notify_record_changed.
425 2012-09-20 Tom Tromey <tromey@redhat.com>
428 * python/python.c (finalize_python): New function.
429 (_initialize_python): Make a final cleanup.
431 2012-09-19 Doug Evans <dje@google.com>
433 * buildsym.h (param_symbols): Delete, unused.
434 (context_stack): Delete member "params", unused.
435 * buildsym.c (push_context): Update.
436 * dwarf2read.c (read_func_scope): Update.
438 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
440 * sh-tdep.c (sh_register_convert_to_virtual)
441 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
442 all callers. Just do a memcpy if not the little-endian case.
444 * h8300-tdep.c (h8300_gdbarch_init): Invoke
445 set_gdbarch_double_format and set_gdbarch_long_double_format.
446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
447 set_gdbarch_double_format.
448 * sh-tdep.c (sh_gdbarch_init): Likewise.
450 * NEWS: Document the removal of SH's 'regs' command.
451 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
454 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
456 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
459 2012-09-18 Joel Brobecker <brobecker@adacore.com>
461 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
462 language when iterating over symbols.
464 2012-09-18 Yao Qi <yao@codesourcery.com>
466 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
467 (mi_interpreter_init): Call observer_attach_tsv_created and
468 observer_attach_tsv_deleted.
469 (mi_tsv_created, mi_tsv_deleted): New.
470 * tracepoint.c (delete_trace_state_variable): Call
471 observer_notify_tsv_deleted.
472 (trace_variable_command): Call observer_notify_tsv_created.
473 (delete_trace_variable_command): Call
474 observer_notify_tsv_deleted.
475 (create_tsv_from_upload): Call observer_notify_tsv_created.
478 2012-09-18 Yao Qi <yao@codesourcery.com>
480 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
481 if traceframe changed.
482 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
484 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
485 (mi_interpreter_init): Hook mi_traceframe_changed to observer
486 'traceframe_changed'.
487 (mi_traceframe_changed): New.
488 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
490 * NEWS: Mention the new MI notification.
492 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
494 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
496 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
498 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
499 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
500 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
501 Extend code also for PaX support. Convert all gdb_assert to warning
504 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
506 Implement auto-load user conveniences suggested by Doug Evans.
507 * auto-load.c: Include top.h.
508 (file_is_auto_load_safe): New variable advice_printed. Print advice.
509 (_initialize_auto_load): New variable scripts_directory_help. Mention
510 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
511 scripts-directory. Document in online help one can use also files for
512 set auto-load safe-path.
513 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
514 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
516 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
518 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
521 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
523 * m2-valprint.c (m2_print_array_contents): Eliminate variable
524 ELTLEN and use TYPE_LENGTH directly.
525 (m2_val_print): Likewise.
526 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
527 variable LEN and use TYPE_LENGTH directly.
528 (m68k_svr4_store_return_value): Likewise.
529 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
530 ARGLEN and use TYPE_LENGTH directly.
531 (mips_o64_push_dummy_call): Likewise.
532 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
533 variable LENGTH and use TYPE_LENGTH directly.
534 (s390_function_arg_float): Likewise.
535 (s390_function_arg_integer): Likewise.
536 (s390_push_dummy_call): Likewise.
537 (s390_return_value_convention): Likewise.
538 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
539 TYPE_LENGTH directly.
541 2012-09-17 Yao Qi <yao@codesourcery.com>
543 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
544 Update comment to add_setshow_integer_cmd.
545 * cli/cli-setshow.c (do_set_command): Handle case
546 'var_zuinteger_unlimited'.
547 (do_show_command): Likewise.
548 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
549 for command 'remotetimeout'.
550 * command.h (enum var_types): New zuinteger_unlimited. Update comment
552 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
553 for command 'set listsize'.
555 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
557 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
560 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
563 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
564 (frame_pop): Drop also TAILCALL_FRAME frames.
565 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
567 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
568 Pedro Alves <palves@redhat.com>
571 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
572 function start if we are already at function start. Both for
573 reverse-next and for reverse-step into function without line number
576 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
578 Code cleanup - rename 'inline' depth to 'artificial' depth.
579 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
580 frame_id_artificial_p, extend the comment.
581 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
582 * frame.c (fprint_frame_id): Rename at a user, change debug output
583 text to "artificial=".
584 (skip_inlined_frames): Rename to ...
585 (skip_artificial_frames): ... here. Extend the comment.
586 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
587 (frame_id_inlined_p): Rename to ...
588 (frame_id_artificial_p): ... here. Rename at a user.
589 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
590 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
592 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
594 (frame_id_inlined_p): Rename to ...
595 (frame_id_artificial_p): ... here.
596 * inline-frame.c (inline_frame_this_id): Rename at a user.
598 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
600 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
601 vector variables using vector_size syntax rather than array
604 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
606 * valarith.c (value_concat): Replace unsafe ALLOCA with
609 2012-09-14 Pedro Alves <palves@redhat.com>
611 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
613 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
615 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
616 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
617 data-directory as appropriate.
619 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
621 * printcmd.c (ui_printf): Eliminate single-use variable
624 2012-09-14 Yao Qi <yao@codesourcery.com>
625 Pedro Alves <palves@redhat.com>
627 * valops.c (value_assign): Move observer_notify_target_changed
628 below to replace reinit_frame_cache.
630 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
632 Refactor Python "gdb" module into a proper Python package, by
633 introducing a new "_gdb" module for code implemented in C, and
634 using reload/__import__ instead of exec.
635 * python/lib/gdb/__init__.py: Import * from _gdb.
636 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
637 prompt_hook, sys.argv): Moved from finish_python_initialization.
638 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
639 (packages, auto_load_packages): New list and function replacing
640 module_dict and auto-loading code, using __file__ instead of
641 gdb.PYTHONDIR and reload/__import__ instead of exec.
642 (GdbSetPythonDirectory): Replacing function of the same name
643 from finish_python_initialization, using reload/__import__ instead
644 of exec, as well as call auto_load_packages.
645 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
646 gdb_python_module and not gdb_module.
647 * python/python-internal.h (gdb_python_module): Declare.
648 * python/python.c (gdb_python_module): New global.
649 (before_prompt_hook): Check gdb_python_module and not gdb_module.
650 (_initialize_python): Rename gdb module to _gdb.
651 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
652 (finish_python_initialization): Move Python code to
653 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
656 2012-09-13 Pedro Alves <palves@redhat.com>
658 * Makefile.in (COMMON_OBS): Add registry.o.
659 * registry.c: New file.
660 * registry.h (struct registry_container): Declare.
661 (registry_data_callback): New typedef.
662 (struct registry_data, struct registry_data_registration, struct
663 registry_data_registry): New type.
664 (register_data_with_cleanup, registry_alloc_data)
665 (registry_callback_adaptor, registry_clear_data)
666 (registry_container_free_data, registry_set_data, registry_data):
668 (DEFINE_REGISTRY): Refactor structures and functions as shims over
669 the new common structures and functions.
670 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
673 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
675 * remote.c (remote_insert_hw_breakpoint): Throw exception if
676 there is an error inserting hardware breakpoints and use the
677 error message from the target.
679 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
680 Catch this exception and print the error message contained within. Do not
681 print the default hardware error breakpoint message in this case.
683 2012-09-12 Doug Evans <dje@google.com>
685 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
688 2012-09-11 Doug Evans <dje@google.com>
690 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
691 .gdb_index symbol attributes if there are none.
693 2012-09-11 Joel Brobecker <brobecker@adacore.com>
695 * symtab.h (struct minimal_symbol) [has_size]: New field.
696 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
697 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
698 * printcmd.c (build_address_symbolic): Only filter out zero-sized
699 minimal symbols if the symbol's size is actually known.
700 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
701 of msymbol's size field. Add comment.
702 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
703 SET_MSYMBOL_SIZE to set the minimal symbol size.
705 2012-09-11 Joel Brobecker <brobecker@adacore.com>
707 * minsyms.c (install_minimal_symbols): Use memset to fill entire
708 minimal_symbol struct object, rather than setting some of its
711 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
713 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
714 passed_a_ptr flag when displaying typedef types.
716 2012-09-10 Joel Brobecker <brobecker@adacore.com>
718 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
719 the optimized_out flag is preserved.
721 2012-09-10 Anthony Green <green@moxielogic.com>
723 * moxie-tdep.c (moxie_analyze_prologue): Update for function
724 prologue changes in GCC.
726 2012-09-10 Keith Seitz <keiths@redhat.com>
729 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
730 (BOOL_CONVERSION_BADNESS): ... this.
731 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
732 (rank_one_type): Allow all boolean conversions
733 permitted by the standard.
735 2012-09-06 Tom Tromey <tromey@redhat.com>
737 * python/py-newobjfileevent.c (create_new_objfile_event_object):
738 Don't decref py_objfile.
740 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
742 Do not enable -lmcheck by default when Python is enabled with
744 * configure.ac: (python_has_threads) New variable, by testing
745 if WITH_THREAD is defined in Python.h.
746 Move --enable-lmcheck after --with-python.
747 Do not enable -lmcheck by default if python_has_threads=yes.
748 Warn if --enable-lmcheck and python_has_threads=yes.
749 * configure: Regenerate.
751 2012-08-31 Yao Qi <yao@codesourcery.com>
753 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
754 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
755 Update some commands.
756 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
757 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
760 2012-08-31 Yao Qi <yao@codesourcery.com>
762 * mi/mi-cmds.c (mi_cmds): Add 'static'.
764 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
766 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
768 2012-08-29 Doug Evans <dje@google.com>
770 * main.c (print_gdb_help): Remove reference to
771 --use-deprecated-index-sections.
773 2012-08-28 Yao Qi <yao@codesourcery.com>
775 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
776 (init_cmds): Call add_setshow_uinteger_cmd for command
777 'max-user-call-depth'.
778 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
779 declaration of 'max_user_call_depth'.
780 * frame.c (backtrace_limit): Add 'unsigned'.
781 (_initialize_frame): Call add_setshow_uinteger_cmd for command
783 * remote.c (remoteaddresssize): Add 'unsigned'.
784 (remote_address_masked): Change local var 'address_size' to
786 (_initialize_remote): Call add_setshow_uinteger_cmd for
788 * top.c (history_size): Add 'unsigned'.
789 (show_commands): Change local variables to 'unsigned'.
790 (set_history_size_command): Don't check history_size is negative.
791 Adjust the condition to call unstifle_history and set history_size
794 2012-08-28 Pedro Alves <palves@redhat.com>
798 * infcmd.c (default_print_one_register_info): New, factored out
799 from default_print_registers_info.
800 (default_print_registers_info): Use it. Mark value unavailable if
802 (registers_info): Print user registers with
803 default_print_one_register_info.
805 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
808 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
809 is not NULL before referencing it.
811 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
813 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
814 variable pc. Call find_pc_line instead of find_pc_overlay, restore
817 2012-08-27 Eli Zaretskii <eliz@gnu.org>
818 Jan Kratochvil <jan.kratochvil@redhat.com>
820 * auto-load.c (auto_load_objfile_script): Rename to ...
821 (auto_load_objfile_script_1): ... here, change variable realname to
822 parameter realname, document it, add return value, add variable retval.
823 (auto_load_objfile_script): New function.
825 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
827 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
828 followed by a whitespace.
830 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
833 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
834 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
835 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
838 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
840 * memattr.c (create_mem_region): Fix memory region overlapping
843 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
845 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
846 with xmalloc/cleanup.
847 * mt-tdep.c (mt_push_dummy_call): Likewise.
848 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
849 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
851 2012-08-24 Yao Qi <yao@codesourcery.com>
853 * jv-exp.y (push_expression_name): Add "." at the end of error
856 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
858 Document how to return from "python-interactive" to GDB.
859 * python/python.c (_initialize_python): Update documentation.
861 2012-08-23 Pedro Alves <palves@redhat.com>
863 * infrun.c (_initialize_infrun) <handle command help text>:
864 Mention that multiple signals are supported.
866 2012-08-23 Pedro Alves <palves@redhat.com>
868 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
871 2012-08-23 Yao Qi <yao@codesourcery.com>
873 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
874 (tfind_1): Don't call registers_changed, set_traceframe_num,
875 and clear_traceframe_info.
876 Call set_current_traceframe.
877 (set_current_traceframe): call set_traceframe_num.
879 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
881 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
882 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
884 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
886 Enable readline in Python in a GDB-specific way and block the
887 standard Python readline module to prevent conflicts with GDB.
888 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
889 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
890 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
891 * python/py-gdb-readline.c: New file.
892 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
894 * python/python.c (_initialize_python): Call
895 gdbpy_initialize_gdb_readline.
897 2012-08-22 Keith Seitz <keiths@redhat.com>
899 * defs.h: Include build-gnulib/config.h
901 2012-08-22 Joseph Myers <joseph@codesourcery.com>
903 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
906 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
908 Add a new "python-interactive" command that starts a standard
909 Python interactive prompt with "pi" as alias, and add "py" as
910 an alias to "python".
911 * NEWS: Mention the new commands.
912 * python/python.c (eval_python_command): New function.
913 (python_interactive_command): For "python-interactive" with
914 arguments, call eval_python_command. For "python-interactive"
915 without arguments, call PyRun_InteractiveLoop.
916 (_initialize_python): Add "python-interactive" command with
917 "pi" as alias, and add "py" as an alias to "python".
919 2012-08-22 Tom Tromey <tromey@redhat.com>
921 * defs.h (quit_flag): Don't declare.
922 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
923 (QUIT): Use new functions.
924 * event-top.c (command_handler): Use clear_quit_flag.
925 (handle_sigint): Use set_quit_flag.
926 (async_request_quit): Use check_quit_flag. Don't check
928 * exceptions.c (throw_exception): Use clear_quit_flag.
929 * main.c (captured_main): Use clear_quit_flag.
930 * python/python.c (clear_quit_flag, set_quit_flag)
931 (check_quit_flag): New functions.
932 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
934 * remote.c (remote_wait_as): Use check_quit_flag,
936 (remote_start_remote): Call QUIT.
937 * symfile.c (load_progress): Use check_quit_flag.
938 * top.c (command_loop): Use clear_quit_flag.
939 (command_line_input): Call QUIT.
940 * utils.c (quit_flag): Conditionally define.
941 (clear_quit_flag, check_quit_flag, set_quit_flag): New
943 (prompt_for_continue): Call QUIT. Use quit, not
945 * remote-mips.c (mips_expect_timeout): Call QUIT.
946 * monitor.c (monitor_expect): Call QUIT.
948 2012-08-22 Tom Tromey <tromey@redhat.com>
950 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
951 (async_init_signals): Update.
952 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
953 (SIGWINCH_HANDLER_BODY): Remove.
955 2012-08-22 Tom Tromey <tromey@redhat.com>
957 * jit.c (jit_object_close_impl): Don't malloc the objfile
959 * objfiles.c (allocate_objfile): Don't malloc the objfile
961 (free_objfile): Don't free the objfile name.
962 * objfiles.h (struct objfile) <name>: Update comment.
963 * symfile.c (reread_symbols): Fix reference counting. Don't
966 2012-08-22 Tom Tromey <tromey@redhat.com>
968 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
969 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
970 (symfile_bfd_open): Likewise.
971 (generic_load): Likewise.
972 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
973 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
975 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
977 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
978 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
979 (pmon_load_fast): Likewise.
980 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
981 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
982 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
983 (macho_check_dsym): Likewise.
984 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
985 (m32r_upload_command): Likewise.
986 * gdb_bfd.h (gdb_bfd_cache): Declare.
987 * gdb_bfd.c (struct gdb_bfd_data): New.
988 (gdb_bfd_cache): New global.
989 (struct gdb_bfd_cache_search): New.
990 (hash_bfd): New function.
992 (gdb_bfd_open): Likewise.
993 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
994 (gdb_bfd_unref): Remove closed BFD from cache. Update for
996 * exec.c (exec_file_attach): Use gdb_bfd_open.
997 * dsrec.c (load_srec): Use gdb_bfd_open.
999 2012-08-22 Tom Tromey <tromey@redhat.com>
1001 * dwarf2read.c (macro_start_file): Update.
1002 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1003 (free_objfile_per_bfd_storage): Destroy macro_cache.
1004 (allocate_objfile, free_objfile): Update.
1005 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1007 (struct objfile) <macro_cache>: Remove.
1008 * symfile.c (reread_symbols): Update.
1009 * symmisc.c (print_symbol_bcache_statistics): Update.
1010 (print_objfile_statistics): Update.
1012 2012-08-22 Tom Tromey <tromey@redhat.com>
1014 * elfread.c (elf_symtab_read): Update.
1015 * objfiles.c (objfiles_bfd_data): New global.
1016 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1017 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1018 (allocate_objfile, free_objfile): Update.
1019 (_initialize_objfiles): Initialize objfiles_bfd_data.
1020 * objfiles.h (struct objfile_per_bfd_storage): New.
1021 (struct objfile) <per_bfd>: New field.
1022 <filename_cache>: Remove.
1023 (set_objfile_per_bfd): Declare.
1024 * symfile.c (reread_symbols): Update. Call
1025 set_objfile_per_bfd.
1026 (allocate_symtab): Update.
1027 * symmisc.c (print_symbol_bcache_statistics): Update.
1028 (print_objfile_statistics): Print the size of the BFD obstack.
1030 2012-08-22 Tom Tromey <tromey@redhat.com>
1032 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1033 * gdb_bfd.c: Use DEFINE_REGISTRY.
1034 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1035 (gdb_bfd_ref): Call bfd_alloc_data.
1036 (gdb_bfd_unref): Call bfd_free_data.
1038 2012-08-22 Tom Tromey <tromey@redhat.com>
1040 * registry.h (struct registry_fields): New.
1041 (REGISTRY_FIELDS): Redefine.
1042 (REGISTRY_ACCESS_FIELD): New macro.
1043 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1046 2012-08-22 Tom Tromey <tromey@redhat.com>
1048 * auto-load.c (_initialize_auto_load): Update.
1049 * solib-svr4.c (_initialize_svr4_solib): Update
1050 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1051 * solib-darwin.c (_initialize_darwin_solib): Update.
1052 * registry.h: New file.
1053 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1054 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1055 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1056 (register_program_space_data_with_cleanup)
1057 (register_program_space_data, program_space_alloc_data)
1058 (clear_program_space_data, set_program_space_data)
1059 (program_space_data): Don't declare.
1060 * progspace.c: Use DEFINE_REGISTRY.
1061 (struct program_space_data, struct
1062 program_space_data_registration, struct
1063 program_space_data_registry, program_space_data_registry)
1064 (register_program_space_data_with_cleanup)
1065 (register_program_space_data, program_space_alloc_data)
1066 (program_space_free_data, clear_program_space_data)
1067 (set_program_space_data, program_space_data): Remove.
1068 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1069 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1070 (register_objfile_data_with_cleanup, register_objfile_data)
1071 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1073 * objfiles.c: Use DEFINE_REGISTRY.
1074 (struct objfile_data, struct objfile_data_registration, struct
1075 objfile_data_registry, objfile_data_registry)
1076 (register_objfile_data_with_cleanup, register_objfile_data)
1077 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1078 (set_objfile_data, objfile_data): Remove.
1079 (_initialize_objfiles): Update.
1080 * jit.c (_initialize_jit): Update.
1081 * inflow.c (_initialize_inflow): Update.
1082 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1083 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1084 (register_inferior_data_with_cleanup, register_inferior_data)
1085 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1087 * inferior.c: Use DEFINE_REGISTRY.
1088 (struct inferior_data, struct inferior_data_registration, struct
1089 inferior_data_registry, inferior_data_registry)
1090 (register_inferior_data_with_cleanup, register_inferior_data)
1091 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1092 (set_inferior_data, inferior_data): Remove.
1093 * auxv.c (_initialize_auxv): Update.
1094 * ada-lang.c (_initialize_ada_language): Update.
1095 * breakpoint.c (_initialize_breakpoint): Update.
1096 * i386-nat.c (i386_use_watchpoints): Update.
1098 2012-08-22 Tom Tromey <tromey@redhat.com>
1100 * exec.c (exec_close, exec_file_attach): Update.
1101 (add_to_section_table): Initialize 'key' field.
1102 (add_target_sections, remove_target_sections): Add 'key' argument.
1103 * exec.h (add_target_sections, remove_target_sections): Add
1105 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1106 (reload_shared_libraries_1): Update.
1107 * target.h (struct target_section) <key>: New field.
1109 2012-08-22 Tom Tromey <tromey@redhat.com>
1111 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1113 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1115 * symfile.c (allocate_symtab): Use host_address_to_string
1116 function instead of cast of pointer to long which is not
1117 compatible with x86_64-w64-mingw32 build.
1119 2012-08-19 Andrew Pinski <apinski@cavium.com>
1121 * mips-tdep.c (is_octeon): New function.
1122 (is_octeon_bbit_op): New function.
1123 (mips32_next_pc): Handle Octeon's bbit instructions.
1124 (mips32_instruction_has_delay_slot): Likewise.
1126 2012-08-19 Andrew Pinski <apinski@cavium.com>
1128 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1129 before the function.
1131 2012-08-19 Andrew Pinski <apinski@cavium.com>
1133 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1135 2012-08-19 Keith Seitz <keiths@redhat.com>
1138 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1139 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1141 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1143 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1144 The typo broke "make TAGS".
1146 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1150 2012-08-17 Keith Seitz <keiths@redhat.com>
1153 * gdbtypes.c (strict_type_checking): New variable.
1154 (show_strict_type_checking): New function.
1155 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1156 if strict type checking is disabled.
1157 (_initialize_gdbtypes): Add "check type" subcommand.
1158 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1160 2012-08-17 Keith Seitz <keiths@redhat.com>
1162 * language.h (type_mode): Remove.
1163 (type_check): Remove.
1164 (struct language_defn): Remove la_type_check.
1165 (STRICT_TYPE): Remove unused macro.
1166 (type_error): Remove.
1167 * language.c (set_type_range_case): Renamed to ...
1168 (set_range_case): ... this. Update all callers.
1169 Remove type_mode/type_check.
1170 (type_mode): Remove.
1171 (type_check): Remove.
1172 (show_type_command): Remove.
1173 (set_type_command): Remove.
1174 (language_info): Remove type checking output.
1175 (type_error): Remove unused function.
1176 (range_error): Update comment.
1177 (unknown_language_defn): Remove la_type_check.
1178 (auto_language_defn): Likewise.
1179 (local_language_defn): Likewise.
1180 (_initialize_language): Remove "check type" subcommand.
1181 * ada-lang.c (ada_language_defn): Remove la_type_check.
1182 * c-lang.c (c_language_defn): Likewise.
1183 (cplus_language_defn): Likewise.
1184 (asm_language_defn): Likewise.
1185 (minimal_language_defn): Likewise.
1186 * d-lang.c (d_language_defn): Likewise.
1187 * f-lang.c (f_language_defn): Likewise.
1188 * go-lang.c (go_language_defn): Likewise.
1189 * jv-lang.c (java_language_defn): Likewise.
1190 * m2-lang.c (m2_language_defn): Likewise.
1191 * objc-lang.c (objc_language_defn): Likewise.
1192 * opencl-lang.c (opencl_language_defn): Likewise.
1193 * p-lang.c (pascal_language_defn): Likewise.
1195 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1197 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1199 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1201 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1203 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1204 using the regache. Use ia64_hpux_get_register_from_save_state_t
1205 to access the bsp and bspstore registers if not.
1207 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1209 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1210 * breakpoint.c (detach_breakpoints): Change pid parameter into
1211 a ptid. Adjust code accordingly.
1212 * infrun.c (handle_inferior_event): Delete variable child_pid.
1213 Update call to detach_breakpoints to pass the child ptid for
1215 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1216 assert that inferior_ptid's lwp is zero.
1217 (linux_handle_extended_wait): Update call to detach_breakpoints.
1218 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1221 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1223 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1224 parent, only call detach_breakpoints if tts.tts_event ==
1227 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1229 * dwarf2-frame.c (dwarf2_frame_cache): Use
1230 get_frame_address_in_block instead of get_frame_pc as
1231 the bound for executing the frame's FDE.
1233 2012-08-16 Yao Qi <yao@codesourcery.com>
1235 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1236 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1237 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1238 (c_type_print_varspec_suffix): Likewise.
1239 * eval.c (evaluate_subexp_standard): Likewise.
1240 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1241 (f_type_print_varspec_suffix): Likewise.
1242 * gdbtypes.c (is_scalar_type): Likewise.
1243 (recursive_dump_type): Likewise.
1244 * infcall.c (value_arg_coerce): Likewise.
1245 * m2-valprint.c (m2_val_print): Likewise.
1246 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1247 (pascal_type_print_varspec_suffix): Likewise.
1248 (pascal_type_print_base): Likewise.
1249 * p-valprint.c (pascal_val_print): Likewise.
1250 (pascal_val_print): Likewise.
1251 * valops.c (value_slice): Likewise.
1252 * valprint.c (scalar_type_p): Likewise.
1253 * valarith.c (value_bitstring_subscript): Remove.
1254 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1255 Remove comment on TYPE_CODE_BITSTRING.
1257 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1258 TYPE_CODE_BITSTRING.
1260 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1263 2012-08-16 Yao Qi <yao@codesourcery.com>
1265 * tracepoint.c (trace_find_none_command): Remove.
1266 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1268 2012-08-16 Yao Qi <yao@codesourcery.com>
1270 * remote.c (handle_notification): Remove parameter 'length'.
1271 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1273 2012-08-15 Keith Seitz <keiths@redhat.com>
1275 * gdbtypes.c (opaque_type_resolution): Make static.
1276 Add missing comment.
1277 (overload_debug): Add missing comment.
1278 (show_opaque_type_resolution): Likewise.
1279 (show_overload_debug): Likewise.
1280 (print_bit_vector): Remove unnecessary forward declaration.
1281 (print_arg_types): Likewise.
1282 (dump_fn_fieldlists): Likewise.
1283 (print_cplus_stuff): Likewise.
1285 2012-08-15 Tom Tromey <tromey@redhat.com>
1287 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1288 (gdb_bfd_ref): Initialize new field.
1289 (gdb_bfd_unref): Unref the archive BFD.
1290 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1293 2012-08-15 Tom Tromey <tromey@redhat.com>
1296 * python/py-bpevent.c (create_breakpoint_event_object): Update
1298 * python/py-event.c (evpy_add_attribute): Update comment.
1299 * python/py-exitedevent.c (create_exited_event_object): Fix
1300 reference counting and error handling.
1301 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1302 Fix reference counting.
1303 * python/py-signalevent.c (create_signal_event_object): Fix
1304 reference counting and error handling.
1305 * python/py-stopevent.c (emit_stop_event): Fix reference
1307 * python/py-threadevent.c (get_event_thread): Return a
1309 * python/py-type.c (convert_field): Fix reference counting.
1311 2012-08-15 Tom Tromey <tromey@redhat.com>
1313 * dwarf2read.c (dwarf_decode_macro_bytes)
1314 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1317 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1319 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1320 stepi, nexti, finish, next, step, jump, and continue commands.
1321 * infrun.c (_initialize_infrun): Update help text for the handle
1324 2012-08-14 Doug Evans <dje@google.com>
1326 * gdbtypes.c (struct extra): Delete, unused.
1328 * gdbtypes.c: Whitespace cleanup.
1329 (address_space_name_to_int): Remove "extern" from definition.
1330 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1332 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1333 TYPE_POINTER_TYPE (type).
1335 2012-08-14 Gary Benson <gbenson@redhat.com>
1337 * solib-svr4.c (svr4_free_library_list): Use free_so.
1339 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1341 * .gitignore: Add go-exp.c.
1343 2012-08-13 Doug Evans <dje@google.com>
1345 * value.c (show_convenience): Tweak comment.
1346 (_initialize_values): Mention convenience functions in the help text
1347 for "show convenience".
1349 2012-08-13 Yao Qi <yao@codesourcery.com>
1351 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1352 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1354 * eval.c (evaluate_subexp_standard): Likewise.
1355 * expprint.c (print_subexp_standard): Likewise.
1356 (dump_subexp_body_standard): Likewise.
1357 * parse.c (operator_length_standard): Likewise.
1359 2012-08-13 Yao Qi <yao@codesourcery.com>
1361 * std-operator.def: Remove OP_BITSTRING.
1362 * breakpoint.c (watchpoint_exp_is_const): Update.
1363 * eval.c (evaluate_subexp_standard): Remove handling to
1365 * expprint.c (print_subexp_standard): Likewise.
1366 (dump_subexp_body_standard): Likewise.
1367 * parse.c (operator_length_standard): Likewise.
1368 * valops.c (value_bitstring): Remove.
1369 * value.h: Remove the declaration of 'value_bitstring'.
1371 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1373 * linespec.c (find_methods): Remove unused variables `i1' and
1375 (decode_line_full): Likewise for `arg_start'.
1377 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1379 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1380 (zlib_decompress_section): Likewise for `section_data'.
1381 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1383 2012-08-10 Doug Evans <dje@google.com>
1385 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1386 * NEWS: Document them.
1387 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1389 * python/py-type.c (typy_array_1): New function.
1390 (typy_array): Call it.
1391 (typy_vector): New function.
1392 (type_object_methods): Add "vector".
1393 * python/lib/gdb/function/__init__.py: New file.
1394 * python/lib/gdb/function/strfns.py: New file.
1396 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1398 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1399 for TYPE_FIELD_BITPOS.
1400 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1402 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1405 * common/vec.h (VEC_merge): Define.
1406 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1407 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1408 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1409 * completer.c: Include gdb_signals.h.
1410 (signal_completer): Define.
1411 * completer.h (signal_completer): Add prototype.
1412 * infcmd.c (_initialize_infcmd): Assign the command
1413 completer for "signal" to handle_completer.
1414 * infrun.c: Include completer.h.
1415 (handle_completer): Define.
1416 (_initialize_infrun): Declare a new local variable c. Store the
1417 result of add_com("handle") to it. Assign the command
1418 completer for "handle" to handle_completer.
1420 2012-08-09 Yao Qi <yao@codesourcery.com>
1422 * cli/cli-decode.c (set_cmd_prefix): New.
1423 (lookup_cmd_for_prefixlist): New.
1424 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1425 of each cmd_list_element in *prefixlist.
1426 (add_setshow_cmd_full): set_cmd_prefix.
1427 (add_alias_cmd): Likewise.
1428 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1429 Declare 'auto_boolean_enums'.
1430 * cli/cli-setshow.c: Include "observer.h".
1431 (notify_command_param_changed_p): New.
1432 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1434 (do_setshow_command): Split it to ...
1435 (do_set_command, do_show_command): ... them. New.
1436 (do_set_command): Call observer_notify_command_param_changed if
1437 notify_command_param_changed_p returns true.
1438 (cmd_show_list): Caller update.
1439 * auto-load.c (set_auto_load_cmd): Likewise.
1440 * remote.c (show_remote_cmd): Likewise.
1441 * cli/cli-setshow.h: Update declarations.
1442 * top.c (execute_command): Call do_set_command and do_show_command.
1444 * NEWS: Mention new MI notification.
1445 * mi/mi-interp.c: Declare mi_command_param_changed.
1446 (mi_interpreter_init): Attach mi_command_param_changed to
1447 observer command_param_changed.
1448 (mi_command_param_changed): New.
1449 Remove mi_suppress_breakpoint_notifications.
1450 Define global variable mi_suppress_notification.
1451 (mi_breakpoint_created): Update.
1452 (mi_breakpoint_deleted): Likewise.
1453 (mi_breakpoint_modified): Likewise.
1454 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1455 'gdb-set' and set mi_suppress_notification.
1456 * mi/mi-main.h: (mi_suppress_notification): New struct.
1458 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1459 Jan Kratochvil <jan.kratochvil@redhat.com>
1461 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1463 2012-08-09 Yao Qi <yao@codesourcery.com>
1465 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1466 (skiplist): Move it to skip.c.
1467 (init_cmd_lists): Remove code setting enablebreaklist and
1469 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1470 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1472 * gdbcmd.h: Likewise.
1473 * skip.c (_initialize_step_skip): Move 'skiplist' from
1476 2012-08-09 Yao Qi <yao@codesourcery.com>
1478 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1479 * gnu-nat.c, symfile.c: Likewise.
1481 2012-08-08 Aaron Gamble <agamble@google.com>
1483 * utils.c (prompt_for_continue_wait_time): New static global.
1484 (make_command_stats_cleanup): Initialize it.
1485 (report_command_stats): Subtract time waiting for user.
1486 (prompt_for_continue): Track time waiting for user.
1487 (defaulted_query): Track time waiting for user.
1489 2012-08-08 Doug Evans <dje@google.com>
1491 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1493 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1494 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1495 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1496 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1497 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1498 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1500 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1501 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1502 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1503 (dump_prefix_expression): Handle OP_TYPE.
1505 2012-08-08 Keith Seitz <keiths@redhat.com>
1507 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1510 2012-08-08 Doug Evans <dje@google.com>
1512 * linux-thread-db.c: #include "gdb_vecs.h".
1513 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1515 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1516 (thread_db_load_search): Use a vector to iterate over path elements.
1517 Handle text appearing after "$pdir".
1519 * gdb_string.h: Moved to ...
1520 * common/gdb_string.h: ... here.
1521 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1522 gdb_string.h and gdb_assert.h.
1524 2012-08-08 Yao Qi <yao@codesourcery.com>
1526 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1527 (tic6x_value_to_register): Likewise.
1528 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1529 and set_gdbarch_value_to_register.
1531 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 Jean-Marc Saffroy <saffroy@gmail.com>
1535 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1536 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1537 * gcore.c (gcore_create_callback): New function comment. Add modified
1538 parameter. Only write modified regions. Set SEC_READONLY exactly
1539 according to MODIFIED.
1540 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1541 the passed modified value to FUNC.
1542 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1543 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1544 first. New variables modified and has_anonymous. Parse the lines of
1545 smaps file. Add the passed MODIFIED value to FUNC.
1546 * procfs.c (find_memory_regions_callback): Add the passed modified
1549 2012-08-06 Tom Tromey <tromey@redhat.com>
1551 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1552 (dwarf2_frame_cache): Use it.
1553 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1554 cache initialization constraint.
1556 2012-08-06 Tom Tromey <tromey@redhat.com>
1559 * varobj.c (update_dynamic_varobj_children): Don't call
1562 2012-08-06 Tom Tromey <tromey@redhat.com>
1565 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1567 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1569 * NEWS: New entry for 'cd' default parameters.
1570 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1572 2012-08-03 Tom Tromey <tromey@redhat.com>
1574 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1577 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1579 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1580 to attempting lseek/write.
1581 (inf_child_fileio_pread): Likewise for pread.
1583 2012-08-02 Yao Qi <yao@codesourcery.com>
1585 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1586 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1587 add_setshow_zinteger_cmd.
1588 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1589 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1590 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1591 instead of add_setshow_zinteger_cmd.
1592 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1593 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1594 instead of add_setshow_zinteger_cmd.
1595 * frame.c (frame_debug): Add 'unsigned'.
1596 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1597 add_setshow_zinteger_cmd.
1598 * frame.h: Update the declaration of 'frame_debug'.
1599 * gdbtypes.c (overload_debug): Add 'unsigned'.
1600 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1601 add_setshow_zinteger_cmd.
1602 * inferior.h: Update declaration of 'debug_infrun'.
1603 * infrun.c (debug_infrun): Add 'unsigned'.
1604 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1605 add_setshow_zinteger_cmd.
1606 * jit.c (jit_debug): Add 'unsigned'.
1607 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1608 add_setshow_zinteger_cmd.
1609 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1610 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1611 instead of add_setshow_zinteger_cmd.
1612 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1613 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1614 add_setshow_zinteger_cmd.
1615 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1616 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1617 instead of add_setshow_zinteger_cmd.
1618 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1619 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1620 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1621 intead of add_setshow_zinteger_cmd.
1622 * mips-tdep.c (mips_debug): Add 'unsigned'.
1623 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1624 instead of add_setshow_zinteger_cmd.
1625 * monitor.c (monitor_debug): Add 'unsigned'.
1626 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1627 add_setshow_zinteger_cmd.
1628 * observer.c (observer_debug): Add 'unsigned'.
1629 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1630 add_setshow_zinteger_cmd.
1631 * parse.c (expressiondebug): Add 'unsigned'.
1632 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1633 add_setshow_zinteger_cmd.
1634 * record.c (record_debug): Add 'unsigned'.
1635 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1636 add_setshow_zinteger_cmd.
1637 * record.h: Update the declaration of 'record_debug'.
1638 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1639 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1640 add_setshow_zinteger_cmd.
1641 * serial.c (global_serial_debug_p): Add 'unsigned'.
1642 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1643 add_setshow_zinteger_cmd.
1644 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1645 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1646 add_setshow_zinteger_cmd.
1647 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1648 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1649 add_setshow_zinteger_cmd.
1650 * target.c (targetdebug): Add 'unsigned'.
1651 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1652 add_setshow_zinteger_cmd.
1653 * valops.c (overload_debug): Add 'unsigned'.
1654 * varobj.c (varobjdebug): Add 'unsigned'.
1655 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1656 add_setshow_zinteger_cmd.
1657 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1658 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1659 instead of add_setshow_zinteger_cmd.
1661 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1662 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1663 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1664 instead of add_setshow_zinteger_cmd.
1665 * gdbarch.c, gdbarch.h: Re-generated.
1667 2012-08-02 Yao Qi <yao@codesourcery.com>
1669 * nto-tdep.c: Don't include cli/cli-decode.h and
1671 (_initialize_nto_tdep): Remove.
1672 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1674 Remove macro nto_internal_debugging.
1676 2012-08-01 Richard Henderson <rth@redhat.com>
1678 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1679 (mep-*-*) [gdb_target_obs]: Likewise.
1681 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1683 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1684 linux_get_siginfo_type.
1686 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1690 (call_function_by_hand) <ON_STACK>: Call write_memory with
1691 gdbarch_breakpoint_from_pc, if possible.
1692 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1695 2012-07-31 Yao Qi <yao@codesourcery.com>
1697 * tracepoint.c: Add 'static' for some variables.
1699 2012-07-31 Yao Qi <yao@codesourcery.com>
1701 * go32-nat.c: Declare _initialize_go32_nat.
1702 * ser-go32.c: Declare _initialize_ser_dos.
1703 * top.c (do_chdir_cleanup): Add 'static'.
1705 2012-07-30 Keith Seitz <keiths@redhat.com>
1707 * linespec.c (linespec_lex_number): A number followed
1708 by quotes is a valid number, too.
1710 2012-07-30 Tom Tromey <tromey@redhat.com>
1712 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1714 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1716 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1717 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1719 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1721 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1722 invalid or reevaluated to prevent prevent references to possibly
1723 delete'd type objects being left in the varobj.
1725 2012-07-27 Tom Tromey <tromey@redhat.com>
1726 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * copying.awk: Print buffer-read-only and vi ro markers.
1729 * copying.c: Rebuild.
1730 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1731 * gdbarch.c, gdbarch.h: Rebuild.
1732 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1733 buffer-read-only and vi ro markers.
1734 * features/arm-with-iwmmxt.c: Rebuild.
1735 * features/arm-with-m-fpa-layout.c: Rebuild.
1736 * features/arm-with-m-vfp-d16.c: Rebuild.
1737 * features/arm-with-m.c: Rebuild.
1738 * features/arm-with-neon.c: Rebuild.
1739 * features/arm-with-vfpv2.c: Rebuild.
1740 * features/arm-with-vfpv3.c: Rebuild.
1741 * features/i386/amd64-avx-linux.c: Rebuild.
1742 * features/i386/amd64-avx.c: Rebuild.
1743 * features/i386/amd64-linux.c: Rebuild.
1744 * features/i386/amd64.c: Rebuild.
1745 * features/i386/i386-avx-linux.c: Rebuild.
1746 * features/i386/i386-avx.c: Rebuild.
1747 * features/i386/i386-linux.c: Rebuild.
1748 * features/i386/i386-mmx-linux.c: Rebuild.
1749 * features/i386/i386-mmx.c: Rebuild.
1750 * features/i386/i386.c: Rebuild.
1751 * features/i386/x32-avx-linux.c: Rebuild.
1752 * features/i386/x32-avx.c: Rebuild.
1753 * features/i386/x32-linux.c: Rebuild.
1754 * features/i386/x32.c: Rebuild.
1755 * features/mips-dsp-linux.c: Rebuild.
1756 * features/mips-linux.c: Rebuild.
1757 * features/mips64-dsp-linux.c: Rebuild.
1758 * features/mips64-linux.c: Rebuild.
1759 * features/rs6000/powerpc-32.c: Rebuild.
1760 * features/rs6000/powerpc-32l.c: Rebuild.
1761 * features/rs6000/powerpc-403.c: Rebuild.
1762 * features/rs6000/powerpc-403gc.c: Rebuild.
1763 * features/rs6000/powerpc-405.c: Rebuild.
1764 * features/rs6000/powerpc-505.c: Rebuild.
1765 * features/rs6000/powerpc-601.c: Rebuild.
1766 * features/rs6000/powerpc-602.c: Rebuild.
1767 * features/rs6000/powerpc-603.c: Rebuild.
1768 * features/rs6000/powerpc-604.c: Rebuild.
1769 * features/rs6000/powerpc-64.c: Rebuild.
1770 * features/rs6000/powerpc-64l.c: Rebuild.
1771 * features/rs6000/powerpc-7400.c: Rebuild.
1772 * features/rs6000/powerpc-750.c: Rebuild.
1773 * features/rs6000/powerpc-860.c: Rebuild.
1774 * features/rs6000/powerpc-altivec32.c: Rebuild.
1775 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1776 * features/rs6000/powerpc-altivec64.c: Rebuild.
1777 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1778 * features/rs6000/powerpc-cell32l.c: Rebuild.
1779 * features/rs6000/powerpc-cell64l.c: Rebuild.
1780 * features/rs6000/powerpc-e500.c: Rebuild.
1781 * features/rs6000/powerpc-e500l.c: Rebuild.
1782 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1783 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1784 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1785 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1786 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1787 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1788 * features/rs6000/powerpc-vsx32.c: Rebuild.
1789 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1790 * features/rs6000/powerpc-vsx64.c: Rebuild.
1791 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1792 * features/rs6000/rs6000.c: Rebuild.
1793 * features/s390-linux32.c: Rebuild.
1794 * features/s390-linux32v1.c: Rebuild.
1795 * features/s390-linux32v2.c: Rebuild.
1796 * features/s390-linux64.c: Rebuild.
1797 * features/s390-linux64v1.c: Rebuild.
1798 * features/s390-linux64v2.c: Rebuild.
1799 * features/s390x-linux64.c: Rebuild.
1800 * features/s390x-linux64v1.c: Rebuild.
1801 * features/s390x-linux64v2.c: Rebuild.
1802 * features/tic6x-c62x-linux.c: Rebuild.
1803 * features/tic6x-c62x.c: Rebuild.
1804 * features/tic6x-c64x-linux.c: Rebuild.
1805 * features/tic6x-c64x.c: Rebuild.
1806 * features/tic6x-c64xp-linux.c: Rebuild.
1807 * features/tic6x-c64xp.c: Rebuild.
1809 2012-07-27 Tom Tromey <tromey@redhat.com>
1811 * c-exp.y (classify_name): Avoid assignment in condition.
1813 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1815 * amd64-windows-tdep.c: Include "frame.h".
1816 (amd64_windows_skip_trampoline_code): New function.
1817 (amd64_windows_init_abi): Add trampoline registration.
1819 2012-07-27 Yao Qi <yao@codesourcery.com>
1821 * tracepoint.c (cur_traceframe_number): Remove.
1822 (set_tfile_traceframe): Remove.
1823 (tfile_trace_find, tfile_fetch_registers): Update callers.
1824 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1825 (tfile_open, tfile_trace_find): Likewise.
1827 2012-07-27 Yao Qi <yao@codesourcery.com>
1829 * thread.c (switch_to_thread): Don't call registers_changed.
1831 2012-07-26 Tom Tromey <tromey@redhat.com>
1833 * Makefile.in (SFILES): Remove objc-exp.y.
1834 (YYFILES): Remove objc-exp.c.
1835 (YYOBJ): Remove objc-exp.o.
1836 (local-maintainer-clean): Don't mention objc-exp.c.
1837 * c-exp.y: Include objc-lang.h.
1838 (%union) <class>: New field.
1839 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1840 (exp): Clone subscript production for OBJC_LBRAC. Add various
1841 Objective C productions.
1842 (msglist, msgarglist, msgarg): New productions.
1843 (array_mod, func_mod, operator): Clone productions for
1845 (parse_string_or_char): Handle '@' strings.
1846 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1847 (classify_name): Check la_name_of_this. Recognize ObjC class
1849 * objc-exp.y: Remove.
1850 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1851 * objc-lang.h (objc_parse, objc_error): Don't declare.
1853 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1855 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1857 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1862 2012-07-26 Tom Tromey <tromey@redhat.com>
1864 * copying.c: Rebuild.
1865 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1868 2012-07-26 Tom Tromey <tromey@redhat.com>
1870 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1872 (print_objfile_statistics): Likewise.
1873 (maintenance_print_symbols): Likewise.
1874 (maintenance_print_msymbols): Likewise.
1875 (maintenance_print_objfiles): Likewise.
1876 * psymtab.c (print_partial_symbols): Call QUIT.
1877 (maintenance_print_psymbols): Likewise. Don't modify
1879 * copying.c (show_copying_command): Don't modify immediate_quit.
1880 (show_warranty_command): Likewise.
1881 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1883 2012-07-26 Keith Seitz <keiths@redhat.com>
1885 * linespec.c (linespec_lexer_lex_number): The input
1886 is also a valid number if the next character is a comma
1889 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1891 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1894 2012-07-26 Tristan Gingold <gingold@adacore.com>
1896 * machoread.c: Include gdb_bfd.h.
1898 2012-07-26 Tristan Gingold <gingold@adacore.com>
1900 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1903 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1905 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1907 (dwarf2_evaluate_loc_desc): Likewise.
1908 (dwarf2_loc_desc_needs_frame): Likewise.
1909 (locexpr_describe_location_1): Likewise.
1910 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1912 (struct dwarf2_loclist_baton): Likewise.
1913 * dwarf2read.c (struct dwarf_block): Likewise.
1914 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1915 (decode_locdesc): Expand SIZE and I to size_t.
1917 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1919 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1921 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1923 * doublest.c (convert_doublest_to_floatformat): If the exponent
1924 is too small, treat the value as zero. If the exponent is too
1925 large, treat the value as infinity.
1927 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1929 * configure.ac: Add --enable-lmcheck configure option.
1930 * configure: Regenerate.
1932 2012-07-25 Tom Tromey <tromey@redhat.com>
1934 * NEWS: Mention maint info bfds.
1935 * gdb_bfd.c (all_bfds): New global.
1936 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1937 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1940 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1942 * configure.tgt: Add v850*-*-rtems*.
1944 2012-07-25 Tom Tromey <tromey@redhat.com>
1946 * macrotab.c (macro_bcache_str): Remove cast.
1948 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1950 * linespec.c (linespec_lexer_lex_number): Update comments,
1951 change the return and add check to make sure the input is
1952 the decimal numbers.
1953 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1954 false, call linespec_lexer_lex_string.
1956 2012-07-24 Tom Tromey <tromey@redhat.com>
1958 * symfile.c (symbol_file_add): Don't open BFD twice.
1960 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1962 * breakpoint.c (create_breakpoint): Store condition for pending
1965 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1967 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1968 (m68k_return_value): Handle complex types like structures.
1969 (m68k_svr4_return_value): Likewise.
1971 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1973 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1974 parameters to bfd_get_section_name.
1976 2012-07-24 Yao Qi <yao@codesourcery.com>
1978 * cli/cli-setshow.c: Handle case 'var_uinteger'
1979 and 'var_zuninteger' together. Handle case 'var_integer' and
1980 'var_zinteger' together.
1982 2012-07-23 Keith Seitz <keiths@redhat.com>
1984 * linespec.c (convert_linespec_to_sal): Don't add
1985 any symbols to the result vector if symbol_to_sal
1988 2012-07-23 Keith Seitz <keiths@redhat.com>
1990 * linespec.c (decode_objc): Record the function name
1993 2012-07-23 Tom Tromey <tromey@redhat.com>
1995 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1997 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1998 (map_vmap): Acquire a reference to the BFD.
2000 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2002 * p-valprint.c (pascal_object_print_value): Replace potentially
2003 unsafe alloca with xmalloc/xfree.
2004 * valops.c (search_struct_method): Likewise.
2006 2012-07-23 Tom Tromey <tromey@redhat.com>
2008 * solib-svr4.c (enable_break): Update.
2009 * bfd-target.h (target_bfd_reopen): Update documentation.
2011 2012-07-23 Tom Tromey <tromey@redhat.com>
2013 * symfile.c (separate_debug_file_exists): Update.
2014 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2015 (reread_symbols): Update.
2016 * elfread.c (build_id_verify): Update.
2017 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2018 bfd_open_maybe_remote.
2020 2012-07-23 Tom Tromey <tromey@redhat.com>
2022 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2024 2012-07-23 Tom Tromey <tromey@redhat.com>
2026 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2028 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2030 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2031 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2033 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2034 * objfiles.c (allocate_objfile): Acquire a new reference.
2035 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2036 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2037 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2038 a cleanup for 'nbfd'.
2039 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2041 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2042 make a cleanup for 'abfd'.
2043 (symbol_file_add): Make a BFD cleanup.
2045 2012-07-23 Tom Tromey <tromey@redhat.com>
2047 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2048 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2049 * corelow.c (core_open): Use gdb_bfd_fopen.
2050 * dsrec.c (load_srec): Use gdb_bfd_openr.
2051 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2052 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2053 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2054 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2055 (gdb_bfd_fdopenr): New functions.
2056 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2057 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2058 (gdb_bfd_fdopenr): Declare.
2059 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2060 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2061 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2062 gdb_bfd_openr_next_archived_file.
2063 (macho_check_dsym): Use gdb_bfd_openr.
2064 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2065 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2066 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2067 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2069 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2070 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2071 gdb_bfd_openr_next_archived_file.
2072 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2074 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2076 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2077 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2078 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2079 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2080 (symfile_bfd_open): Use gdb_bfd_fopen.
2081 (generic_load): Use gdb_bfd_openr.
2082 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2084 2012-07-23 Tom Tromey <tromey@redhat.com>
2086 * bfd-target.c (target_bfd_reopen): Update.
2087 * cli/cli-dump.c (bfd_openr_with_cleanup)
2088 (bfd_openw_with_cleanup): Update.
2089 * corelow.c (core_open): Update.
2090 * dsrec.c (load_srec): Update.
2091 * exec.c (exec_file_attach): Update.
2092 * gcore.c (create_gcore_bfd): Update.
2093 * gdb_bfd.c (gdb_bfd_ref): Return void.
2094 (gdb_bfd_open): Update.
2095 * gdb_bfd.h (gdb_bfd_ref): Return void.
2097 * jit.c (jit_bfd_try_read_symtab): Update.
2098 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2099 * machoread.c (macho_symfile_read_all_oso): Update.
2100 (macho_check_dsym): Update.
2101 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2102 * remote-m32r-sdi.c (m32r_load): Update.
2103 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2104 * rs6000-nat.c (add_vmap): Update.
2105 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2107 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2108 * solib-spu.c (spu_bfd_open): Update.
2109 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2110 * spu-linux-nat.c (spu_bfd_open): Update.
2111 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2112 (generic_load): Update.
2113 * windows-nat.c (windows_make_so): Update.
2115 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2117 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2119 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2121 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2122 SIGTRAMP_FRAME unwinding.
2124 2012-07-20 Doug Evans <dje@google.com>
2126 * NEWS: Document new options "set/show use-deprecated-index-sections",
2127 and delete reference to --use-deprecated-index-sections.
2128 * symfile.h (use_deprecated_index_sections): Delete.
2129 * dwarf2read.c (use_deprecated_index_sections): Make static.
2130 (read_index_from_section): Update wording of how to load
2131 deprecated index sections.
2132 (_initialize_dwarf2_read): New options
2133 "set/show use-deprecated-index-sections".
2134 * main.c (captured_main): Delete --use-deprecated-index-sections.
2136 2012-07-20 Pedro Alves <palves@redhat.com>
2141 * infrun.c (handle_inferior_event) <new thread>: Don't special
2142 case minus_one_ptid.
2143 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2144 * linux-thread-db.c (thread_get_info_callback): Don't return early
2145 if the thread is zombie.
2146 (thread_from_lwp): Change return type to void. Rewrite stale
2148 (attach_thread): Don't return early if the thread is zombie,
2149 instead set its "dying" flag.
2150 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2151 (find_new_threads_callback): Don't return early if the thread is
2154 2012-07-20 Pedro Alves <palves@redhat.com>
2156 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2157 * target.c (target_wait): Likewise.
2158 (str_comma_list_concat_elem, do_option, target_options_to_string):
2160 * target.h (target_options_to_string): Declare.
2162 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2163 Tom Tromey <tromey@redhat.com>
2165 * dwarf2read.c (dwarf_decode_macros)
2166 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2167 DW_MACRO_GNU_transparent_include_alt>: New cases.
2168 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2169 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2171 2012-07-20 Tom Tromey <tromey@redhat.com>
2173 * dwarf2read.c (try_open_dwo_file): Don't call
2174 gdb_bfd_stash_filename.
2176 2012-07-20 Pedro Alves <palves@redhat.com>
2178 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2179 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2180 (i386_process_record): Tweak description comments.
2182 2012-07-20 Pedro Alves <palves@redhat.com>
2184 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2185 (i386_process_record): Use record_read_memory.
2186 * record.c (record_read_memory): New function.
2187 (record_arch_list_add_mem, record_exec_insn): Use
2189 * record.h (record_read_memory): Declare.
2191 2012-07-20 Yao Qi <yao@codesourcery.com>
2193 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2196 2012-07-19 Pedro Alves <palves@redhat.com>
2198 * record.c (record_resume): Ask the target beneath to report all
2201 2012-07-19 Doug Evans <dje@google.com>
2203 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2204 there's no section at address zero.
2205 (dwarf2_record_block_ranges): Ditto.
2207 2012-07-19 Yao Qi <yao@codesourcery.com>
2209 * command.h, remote.c: Fix a typo in comment.
2211 2012-07-19 Tom Tromey <tromey@redhat.com>
2214 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2215 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2216 OP_DECLTYPE>: New cases.
2217 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2218 (type_exp): Add new productions.
2219 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2221 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2223 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2224 OP_DECLTYPE>: New case.
2225 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2227 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2228 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2230 2012-07-19 Tom Tromey <tromey@redhat.com>
2232 * c-exp.y (enum token_flags): New.
2233 (struct token) <cxx_only>: Remove.
2235 (tokentab3, tokentab2, ident_tokens): Update.
2236 (lex_one_token): Update. Handle FLAG_SHADOW.
2238 2012-07-19 Tom Tromey <tromey@redhat.com>
2240 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2241 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2242 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2243 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2244 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2245 type_exp production where appropriate.
2246 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2247 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2248 <UNOP_MEMVAL_TYPE>: New case.
2249 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2250 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2251 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2252 <UNOP_MEMVAL_TYPE>: New case.
2253 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2254 UNOP_REINTERPRET_CAST>: Update.
2255 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2256 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2257 UNOP_REINTERPRET_CAST>: Update.
2258 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2259 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2260 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2263 2012-07-19 Yao Qi <yao@codesourcery.com>
2264 Jan Kratochvil <jan.kratochvil@redhat.com>
2266 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2267 and case 'var_optional_filename' together.
2268 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2269 instead of add_setshow_optional_filename_cmd for setshow command
2270 'args'. Set completer for 'set args'.
2272 2012-07-18 Doug Evans <dje@google.com>
2274 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2275 * common/gdb_vecs.c: New file, contents from utils.c.
2276 * common/host-defs.h: New file, contents from defs.h.
2277 * utils.h: New file, contents from defs.h.
2278 * defs.h: Move all declarations of objects defined in utils.c
2279 to utils.h (except QUIT() and related).
2280 #include "utils.h", "host-defs.h".
2281 * probe.h (probe_p): Move here from gdb_vecs.h.
2282 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2283 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2284 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2285 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2286 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2287 (COMMON_OBS): Add gdb_vecs.o.
2288 (gdb_vecs.o): New rule.
2290 2012-07-18 Keith Seitz <keiths@redhat.com>
2292 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2293 parameter. If non-zero, use SYMNAME as the canonical name
2296 (convert_linespec_to_sals): Use add_sal_to_sals for
2298 (decode_line_full): No need to "fill in missing canonical names"
2299 anymore. Simply make cleanups for the allocated names.
2301 2012-07-18 Keith Seitz <keiths@redhat.com>
2303 * linespec.c (struct linespec): Constify expression,
2304 source_filename, function_name, and label_name.
2305 (symbol_not_found_error): Make all parameters const.
2306 (linespec_parser_delete): No need to check for NULL
2307 when using xfree. Cast const char * to char * for xfree.
2309 2012-07-18 Keith Seitz <keiths@redhat.com>
2311 * breakpoint.c (invalid_thread_id_error): New function.
2312 (find_condition_and_thread): Use invalid_thread_id_error.
2313 (watch_command_1): Likewise.
2315 2012-07-18 Tom Tromey <tromey@redhat.com>
2317 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2318 * contrib/cc-with-tweaks.sh: New file.
2320 2012-07-18 Tom Tromey <tromey@redhat.com>
2322 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2323 (locate_dwz_sections): Recognize .gdb_index.
2324 (create_cus_from_index_list): New function.
2325 (create_cus_from_index): Use it. Handle .dwz data.
2326 (read_index_from_section): New function, extracted from
2328 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2331 2012-07-18 Tom Tromey <tromey@redhat.com>
2333 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2334 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2335 <is_dwz>: New field.
2336 (struct dwz_file): New.
2337 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2338 (locate_dwz_sections, dwarf2_get_dwz_file)
2339 (get_abbrev_section_for_cu): New functions.
2340 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2341 (read_and_check_type_unit_head): Add abbrev_section argument.
2342 (create_debug_types_hash_table): Update.
2343 (init_cutu_and_read_dies): Use proper abbrev section.
2344 (init_cutu_and_read_dies_no_follow): Likewise.
2345 (set_partial_user): Do nothing if PST==NULL.
2346 (read_comp_units_from_section): New function.
2347 (create_all_comp_units): Use it.
2348 (scan_partial_symbols, partial_die_parent_scope): Update.
2349 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2350 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2351 (find_partial_die): Add offset_in_dwz argument. Update.
2352 (guess_partial_die_structure_name, fixup_partial_die): Update.
2353 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2354 DW_FORM_GNU_strp_alt.
2355 (read_indirect_string_from_dwz): New function.
2356 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2357 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2358 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2359 (follow_die_offset): Add offset_in_dwz argument.
2360 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2361 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2362 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2363 Handle new macro forms.
2364 (dwarf_decode_macros): Update.
2365 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2366 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2367 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2368 (create_debug_types_hash_table): Use correct abbrev section.
2369 (get_debug_line_section): New function.
2370 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2371 (process_full_comp_unit): Pass 'required' argument to
2372 end_symtab_get_static_block.
2373 * buildsym.h (end_symtab_get_static_block): Update.
2374 * buildsym.c (end_symtab_get_static_block): Add 'required'
2376 (end_symtab, end_expandable_symtab): Update.
2378 2012-07-18 Tom Tromey <tromey@redhat.com>
2380 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2382 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2383 (zlib_decompress_section): Remove.
2384 (dwarf2_read_section): Use gdb_bfd_map_section.
2385 (munmap_section_buffer): Remove.
2386 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2387 munmap_section_buffer.
2388 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2389 (struct gdb_bfd_section_data): New.
2390 (free_one_bfd_section): New function.
2391 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2392 (get_section_descriptor, zlib_decompress_section)
2393 (gdb_bfd_map_section): New functions.
2394 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2396 2012-07-18 Tom Tromey <tromey@redhat.com>
2398 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2400 2012-07-18 Tom Tromey <tromey@redhat.com>
2402 * gdb_bfd.c (struct gdb_bfd_data): New.
2403 (gdb_bfd_cache): New global.
2404 (struct gdb_bfd_cache_search): New.
2405 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2406 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2407 * gdb_bfd.h (gdb_bfd_open): Declare.
2409 2012-07-18 Tom Tromey <tromey@redhat.com>
2411 * utils.c (make_cleanup_bfd_unref): Rename from
2412 make_cleanup_bfd_close.
2413 * defs.h (make_cleanup_bfd_unref): Rename from
2414 make_cleanup_bfd_close.
2415 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2416 (bfd_openw_with_cleanup): Update.
2417 * corelow.c (core_open): Update.
2418 * dsrec.c (load_srec): Update.
2419 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2420 * remote-m32r-sdi.c (m32r_load): Update.
2421 * remote-mips.c (mips_load_srec): Update.
2422 (pmon_load_fast): Update.
2423 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2425 (darwin_bfd_open): Update.
2426 * solib.c (solib_bfd_fopen): Update.
2427 * symfile-mem.c (symbol_file_add_from_memory): Update.
2428 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2429 (symfile_bfd_open): Update.
2430 (generic_load): Update.
2432 2012-07-18 Tom Tromey <tromey@redhat.com>
2434 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2435 (pmon_load_fast): Likewise.
2436 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2437 (m32r_upload_command): Likewise.
2438 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2439 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2440 Use make_cleanup_bfd_close.
2442 2012-07-18 Tom Tromey <tromey@redhat.com>
2444 * symfile.c (symfile_bfd_open): Don't copy name. Call
2445 gdb_bfd_stash_filename.
2446 (load_command): Open the new BFD before freeing the old.
2447 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2448 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2449 Call gdb_bfd_stash_filename.
2450 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2451 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2452 gdb_bfd_stash_filename.
2453 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2454 Free found_pathname.
2455 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2456 gdb_bfd_stash_filename.
2457 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2458 * machoread.c (macho_add_oso_symfile): Call
2459 gdb_bfd_stash_filename.
2460 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2461 gdb_bfd_stash_filename.
2462 (macho_check_dsym): Don't copy filename. Call
2463 gdb_bfd_stash_filename.
2464 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2465 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2466 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2467 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2468 * exec.c (exec_close): Don't free the BFD's filename.
2469 (exec_file_attach): Don't copy the filename. Call
2470 gdb_bfd_stash_filename.
2471 * corelow.c (core_close): Don't free the BFD's filename.
2472 (core_open): Call gdb_bfd_stash_filename.
2473 * corefile.c (reopen_exec_file): Remove #if 0 code.
2474 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2476 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2478 2012-07-18 Tom Tromey <tromey@redhat.com>
2480 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2482 (free_dwo_file): Use gdb_bfd_unref.
2483 * cli/cli-dump.c: Include gdb_bfd.h.
2484 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2485 (bfd_openr_with_cleanup): Likewise.
2486 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2488 * utils.c: Include gdb_bfd.h.
2489 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2490 * symfile.c: Include gdb_bfd.h.
2491 (separate_debug_file_exists): Use gdb_bfd_unref.
2492 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2493 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2494 (generic_load): Use gdb_bfd_ref.
2495 (reread_symbols): Use gdb_bfd_unref.
2496 * symfile-mem.c: Include gdb_bfd.h.
2497 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2498 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2499 * solib.c: Include gdb_bfd.h.
2500 (solib_bfd_fopen): Use gdb_bfd_ref.
2501 (solib_bfd_open): Use gdb_bfd_unref.
2502 (free_so_symbols): Use gdb_bfd_unref.
2503 (reload_shared_libraries_1): Use gdb_bfd_unref.
2504 * solib-spu.c: Include gdb_bfd.h.
2505 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2506 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2508 * solib-frv.c: Include gdb_bfd.h.
2509 (enable_break2): Use gdb_bfd_unref.
2510 * solib-dsbt.c: Include gdb_bfd.h.
2511 (enable_break2): Use gdb_bfd_unref.
2512 * solib-darwin.c: Include gdb_bfd.h.
2513 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2515 (darwin_bfd_open): Use gdb_bfd_unref.
2516 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2517 * remote-mips.c: Include gdb_bfd.h.
2518 (mips_load_srec): Use gdb_bfd_ref.
2519 (pmon_load_fast): Use gdb_bfd_ref.
2520 * remote-m32r-sdi.c: Include gdb_bfd.h.
2521 (m32r_load): Use gdb_bfd_ref.
2522 * record.c: Include gdb_bfd.h.
2523 (record_save_cleanups): Use gdb_bfd_unref.
2524 (cmd_record_save): Use gdb_bfd_unref.
2525 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2527 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2528 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2529 * objfiles.c: Include gdb_bfd.h.
2530 (free_objfile): Use gdb_bfd_unref.
2531 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2533 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2534 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2535 (macho_check_dsym): Likewise.
2536 * m32r-rom.c: Include gdb_bfd.h.
2537 (m32r_load): Use gdb_bfd_ref.
2538 (m32r_upload_command): Use gdb_bfd_ref.
2539 * jit.c: Include gdb_bfd.h.
2540 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2541 * gdb_bfd.h: New file.
2542 * gdb_bfd.c: New file.
2543 * gcore.c: Include gdb_bfd.h.
2544 (create_gcore_bfd): Use gdb_bfd_ref.
2545 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2546 (gcore_command): Use gdb_bfd_unref.
2547 * exec.c: Include gdb_bfd.h.
2548 (exec_close): Use gdb_bfd_unref.
2549 (exec_close_1): Use gdb_bfd_unref.
2550 (exec_file_attach): Use gdb_bfd_ref.
2551 * elfread.c: Include gdb_bfd.h.
2552 (build_id_verify): Use gdb_bfd_unref.
2553 * dsrec.c: Include gdb_bfd.h.
2554 (load_srec): Use gdb_bfd_ref.
2555 * corelow.c: Include gdb_bfd.h.
2556 (core_close): Use gdb_bfd_unref.
2557 (core_open): Use gdb_bfd_ref.
2558 * bfd-target.c: Include gdb_bfd.h.
2559 (target_bfd_xclose): Use gdb_bfd_unref.
2560 (target_bfd_reopen): Use gdb_bfd_ref.
2561 * Makefile.in (SFILES): Add gdb_bfd.c.
2562 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2563 (COMMON_OBS): Add gdb_bfd.o.
2565 2012-07-18 Keith Seitz <keiths@redhat.com>
2567 * breakpoint.c (find_condition_and_thread): Initialize
2569 (create_breakpiont): find_condition_and_thread will now
2570 initialize COND_STRING, THREAD, and REST (and TASK).
2571 (addr_string_to_sals): Likewise.
2573 2012-07-18 Pedro Alves <palves@redhat.com>
2575 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2576 Pull the single step breakpoints out of the target.
2578 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2580 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2581 * stap-probe.c (compile_probe_arg): Likewise.
2583 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2585 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2586 (elf_compile_to_ax): Likewise.
2587 * infrun.c (insert_exception_resume_from_probe): Likewise.
2588 (check_exception_resume): Remove `objfile' variable.
2589 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2590 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2591 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2592 (compare_entries): Rename to...
2593 (compare_probes): ...this. Adjust function to work with
2594 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2596 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2598 (print_ui_out_info): Adjust argument to be `struct probe *'.
2599 (info_probes_for_ops): Adjust internal computations to use
2601 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2602 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2603 gen_info_probes_table_values>: Remove `objfile' argument.
2604 (struct probe) <objfile>: New field.
2605 (find_probe_by_pc): Remove `objfile' argument.
2606 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2607 (stap_get_probe_argument_count): Likewise.
2608 (stap_get_arg): Likewise.
2609 (stap_evaluate_probe_argument): Likewise.
2610 (stap_compile_to_ax): Likewise.
2611 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2612 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2613 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2614 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2615 sym_compile_to_ax>: Likewise.
2617 2012-07-18 Terry Guo <terry.guo@arm.com>
2620 * defs.h (GDB_MI_MSG_WIDTH): New.
2621 * ser_base (ser_base_read_error_fd): New function.
2622 (do_ser_base_readchar): Poll error file descriptor as well as
2624 (generic_readchar): Refactor error handling.
2626 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2628 * NEWS: Create a new section for the next release branch.
2629 Rename the section of the current branch, now that it has
2632 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2634 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2635 * version.in: Bump version to 7.5.50.20120718-cvs.
2637 2012-07-17 Keith Seitz <keiths@redhat.com>
2639 * linespec.c (linespec_parse_line_offset): Make parameter
2642 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2645 * f-valprint.c (info_common_command): New variable frame_id.
2646 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2647 * printcmd.c (print_variable_and_value): Extend function comment.
2648 Add comment for invalidated FRAME.
2649 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2650 FI form FRAME_ID after each print_frame_local_vars.
2651 (struct print_variable_and_value_data): Change frame to frame_id.
2652 (do_print_variable_and_value): New variable frame, initialize it from
2653 p->frame_id. Add comment for invalidated FRAME.
2654 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2655 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2656 for invalidated FRAME.
2658 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2659 Pedro Alves <palves@redhat.com>
2661 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2664 2012-07-16 Tom Tromey <tromey@redhat.com>
2666 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2668 2012-07-15 Doug Evans <dje@google.com>
2670 * dwarf2read.c (stmt_list_hash): New struct.
2671 (type_unit_group): Embed "per_cu" member, remove pointer.
2672 New union member "t", move member "tus" into it, all uses updated.
2673 New member "hash", replaces member "line_offset, all uses updated.
2674 (quick_file_names): Replace member "offset" with "hash", all uses
2676 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2677 (hash_file_name_entry, eq_file_name_entry): Call them.
2678 (hash_type_unit_group, eq_type_unit_group): Ditto.
2679 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2680 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2681 (dw2_get_file_names): Update.
2682 (create_type_unit_group): Replace "per_cu" arg with "cu".
2683 All callers updated. Fix "quick" (.gdb_index) handling.
2684 (get_type_unit_group): Replace "per_cu" arg with "cu".
2685 All callers updated.
2686 (build_type_unit_groups): Don't reset tu_stats.
2688 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2689 "tab_cur_size". Change member "tab" to be a htab_t.
2690 (create_filename_seen_cache): Update.
2691 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2692 (filename_seen): Update.
2694 2012-07-13 Doug Evans <dje@google.com>
2696 * symtab.c (filename_seen): Update comment.
2698 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2699 Doug Evans <dje@google.com>
2701 * buildsym.c (end_symtab_1): Split it to ...
2702 (end_symtab_get_static_block): ... this ...
2703 (end_symtab_from_static_block): ... and this function.
2704 (end_symtab, end_expandable_symtab): Call them.
2705 * buildsym.h (end_symtab_get_static_block)
2706 (end_symtab_from_static_block): New declarations.
2707 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2708 Set its valid CU ranges.
2710 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2712 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2713 DW_OP_GNU_parameter_ref.
2715 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2717 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2718 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2720 2012-07-13 Doug Evans <dje@google.com>
2722 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2723 (filename_seen_cache): New struct.
2724 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2725 (create_filename_seen_cache): New function.
2726 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2727 (filename_seen): Delete arg "first". New arg "cache". All callers
2729 (output_source_filename_data): New struct.
2730 (output_source_filename): Delete arg "first". New arg "data".
2731 All callers updated.
2732 (sources_info): Delete local "first". New locals "data", "cleanups".
2733 Rewrite to use filename_seen_cache.
2734 (add_partial_filename_data): Delete member "first". New member
2735 "filename_seen_cache". All uses updated.
2736 (make_source_files_completion_list): Rewrite to use
2737 filename_seen_cache.
2739 2012-07-12 Doug Evans <dje@google.com>
2741 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2743 2012-07-10 Doug Evans <dje@google.com>
2746 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2747 all_type_unit_groups, type_unit_groups, tu_stats.
2748 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2749 All uses updated. Add type_unit_group to union "s".
2750 (type_unit_group): New struct.
2751 (IS_TYPE_UNIT_GROUP): New macro.
2752 (abbrev_table): Delete unused member "section".
2753 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2754 (dw2_get_cu): Assert not used with type_unit_group.
2755 (dw2_get_primary_cu): New function.
2756 (dw2_build_type_unit_groups_reader): New function.
2757 (dw2_build_type_unit_groups): New function.
2758 (dw2_get_file_names): Assert not called on type units.
2759 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2760 Redo loop to iterate over type unit groups instead of type units.
2761 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2762 (read_abbrev_offset): New function.
2763 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2765 (create_partial_symtab): New function.
2766 (process_psymtab_comp_unit_reader): Assert not used with type units.
2767 Call create_partial_symtab.
2768 (process_psymtab_type_unit): Delete.
2769 (hash_type_unit_group, eq_type_unit_group): New functions.
2770 (allocate_type_unit_groups_table): New function.
2771 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2772 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2773 (create_type_unit_group, get_type_unit_group): New functions.
2774 (tu_abbrev_offset): New struct.
2775 (sort_tu_by_abbrev_offset): New function.
2776 (add_type_unit_group_to_table): New function.
2777 (build_type_unit_groups): New function.
2778 (build_type_psymtabs_reader): New function.
2779 (build_type_psymtab_dependencies): New function.
2780 (build_type_psymtabs): Rewrite.
2781 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2782 is seen in a type unit.
2783 (process_queue): Move symtab expansion debugging printfs here.
2784 Call process_full_type_unit for type units.
2785 (compute_symtab_includes): Assert not called for type units.
2786 (process_cu_includes): Don't call compute_symtab_includes for
2788 (process_full_type_unit): New function.
2789 (process_imported_unit_die): Flag an error if called for type units.
2790 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2791 updated. Assert not called for type units.
2792 (read_file_scope): Call dwarf2_start_symtab.
2793 (setup_type_unit_groups): New function.
2794 (read_type_unit_scope): Rewrite.
2795 (abbrev_table_read_table): Initialize abbrev_table->offset.
2796 (abbrev_table_free_cleanup): New function.
2797 (dwarf2_start_symtab): New function.
2798 (load_full_type_unit): Assert not called for type unit groups.
2799 * buildsym.c (finish_block_internal): New arg "expandable".
2800 All callers updated.
2801 (start_symtab): Move most contents to ...
2802 (restart_symtab): ... here. New function.
2803 (reset_symtab_globals): New function.
2804 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2805 Call reset_symtab_globals.
2806 (end_symtab, end_expandable_symtab): New functions.
2807 (set_missing_symtab, augment_type_symtab): New functions.
2808 * buildsym.h (end_expandable_symtab): Declare.
2809 (augment_type_symtab, restart_symtab): Declare.
2810 * psympriv.h (struct partial_symtab): New member "anonymous".
2811 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2813 (read_psymtabs_with_filename): Ditto.
2814 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2815 (expand_symtabs_matching_via_partial): Ditto.
2816 (dump_psymtab): Update.
2817 * dictionary.c (dict_add_pending): New function.
2818 * dictionary.h (dict_add_pending): Declare.
2820 2012-07-09 Doug Evans <dje@google.com>
2822 * buildsym.c (start_subfile): Remove unnecessary check for
2825 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2827 * dwarf2read.c (load_full_type_unit): Simplify.
2829 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2830 to struct signatured_type **. All uses updated.
2832 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2833 All callers updated.
2835 2012-07-09 Tom Tromey <tromey@redhat.com>
2837 * c-exp.y (check_parameter_typelist): New function.
2838 (parameter_typelist): Call it.
2839 * eval.c (make_params): Handle '(void)' case.
2840 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2843 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2845 * common/linux-ptrace.c: Include gdb_assert.h.
2846 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2847 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2849 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2851 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2852 * linux-nat.c (linux_child_post_attach)
2853 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2855 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2857 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2858 nptl <2.7 bug workaround for core files.
2860 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2864 (save_siginfo): Remove.
2865 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2867 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2868 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2869 * linux-nat.h (struct lwp_info): Remove field siginfo.
2871 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2873 Code cleanup for the next patch.
2874 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2875 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2877 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2878 (ia64_linux_stopped_data_address):
2879 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2881 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2882 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2883 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2886 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2890 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2892 2012-07-06 Tom Tromey <tromey@redhat.com>
2894 * c-exp.y (DOTDOTDOT): New token.
2895 (func_mod, exp): Use parameter_typelist.
2896 (parameter_typelist): New production.
2897 (tokentab3): Add "..." token.
2898 * eval.c (make_params): Handle varargs.
2899 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2902 2012-07-06 Tom Tromey <tromey@redhat.com>
2905 * c-exp.y (%union) <tvec>: Change type.
2906 (func_mod): Now uses <tvec> type.
2907 (exp): Update for tvec change.
2908 (direct_abs_decl): Push the typelist.
2909 (func_mod): Return a typelist.
2910 (nonempty_typelist): Update for tvec change.
2911 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2912 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2913 * parse.c (pop_type_list): New function.
2914 (push_typelist): New function.
2915 (follow_types): Handle tp_function_with_arguments.
2916 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2917 (enum type_pieces) <tp_function_with_arguments>: New constant.
2918 (union type_stack_elt) <typelist_val>: New field.
2919 (push_typelist): Declare.
2921 2012-07-06 Tom Tromey <tromey@redhat.com>
2923 * c-exp.y (%union) <type_stack>: New field.
2924 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2925 (ptr_operator_ts): New production.
2927 * parse.c (type_stack_reserve): New function.
2928 (check_type_stack_depth): Use it.
2929 (pop_type_stack, append_type_stack, push_type_stack)
2930 (get_type_stack, type_stack_cleanup): New functions.
2931 (follow_types): Handle tp_type_stack.
2932 (_initialize_parse): Simplify initialization.
2933 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2935 (union type_stack_elt) <stack_val>: New field.
2936 (get_type_stack, append_type_stack, push_type_stack)
2937 (type_stack_cleanup): Declare.
2939 2012-07-06 Tom Tromey <tromey@redhat.com>
2941 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2943 (struct type_stack): New.
2944 * parse.c (type_stack, type_stack_size, type_stack_depth):
2946 (type_stack): New global.
2947 (parse_exp_in_context, check_type_stack_depth)
2948 (insert_into_type_stack, insert_type, push_type, push_type_int)
2949 (insert_type_address_space, pop_type, pop_type_int)
2950 (_initialize_parse): Update.
2952 2012-07-06 Tom Tromey <tromey@redhat.com>
2954 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2957 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2959 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2961 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2962 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2965 alloca with xmalloc/xfree.
2967 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2969 * MAINTAINERS (Write After Approval): Add myself to the list.
2971 2012-07-05 Doug Evans <dje@google.com>
2973 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2975 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2977 * ax-gdb.c (cli/cli-utils.h): New include.
2978 (linespec.h): Ditto.
2979 (agent_eval_command_one): New function.
2980 (agent_command_1): Ditto.
2981 (agent_command): Call function agent_command_1.
2982 (agent_eval_command): Ditto.
2983 (_initialize_ax_gdb): Change help for "maint agent"
2984 and "maint agent-eval".
2986 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2988 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2989 * cli/cli-utils.c (check_for_argument): New function.
2990 * cli/cli-utils.h (check_for_argument): Ditto.
2992 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2994 * NEWS: Mention x32 ABI support.
2996 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2998 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2999 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3001 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3002 and pc_regnum_from_eax to -1. Update SP regnum from
3003 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3006 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3009 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3011 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3012 * dwarf2expr.h: Include gdbtypes.h.
3013 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3014 these forward declarations.
3015 (cu_offset, sect_offset): Move these ...
3016 * gdbtypes.h: Remove include dwarf2expr.h.
3017 (cu_offset, sect_offset): ... here.
3019 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3021 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3022 (amd64_linux_sigtramp_code): This.
3023 (amd64_x32_linux_sigtramp_code): New.
3024 (LINUX_SIGTRAMP_LEN): Updated.
3025 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3027 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3031 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3033 * config.in: Regenerate.
3034 * configure: Regenerate.
3035 * configure.ac: Remove check for gnu/libc-version.h.
3036 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3038 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3039 variables libc_version, libc_major and libc_minor. Replace sscanf by
3040 inferior_has_bug. Extend the comment.
3042 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 * linux-thread-db.c (inferior_has_bug): New function.
3045 (thread_db_find_new_threads_silently): Return boolean as checked by
3046 inferior_has_bug, describe it in the comments.
3047 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3048 earlier. Abort the initialization if it returned non-zero.
3049 (thread_db_new_objfile): Exclude debug files.
3050 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3053 2012-07-02 Doug Evans <dje@google.com>
3055 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3056 related to queue management.
3058 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3059 instead of "debug dwarf2-die" in debugging printfs.
3060 (create_debug_info_hash_table_reader): Ditto.
3061 (create_debug_info_hash_table): Ditto.
3062 (init_dwo_file): Ditto.
3063 (init_cutu_and_read_dies): Add debugging printf.
3064 (init_cutu_and_read_dies_no_follow): Ditto.
3065 (process_psymtab_comp_unit_reader): Ditto.
3067 2012-07-02 Stan Shebs <stan@codesourcery.com>
3069 Add target-side support for dynamic printf.
3070 * NEWS: Mention the additional style.
3071 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3072 (struct bp_location): New field cmd_bytecode.
3073 * breakpoint.c: Include format.h.
3074 (disconnected_dprintf): New global.
3075 (parse_cmd_to_aexpr): New function.
3076 (build_target_command_list): New function.
3077 (insert_bp_location): Call it.
3078 (remove_breakpoints_pid): Skip dprintf breakpoints.
3079 (print_one_breakpoint_location): Ditto.
3080 (dprintf_style_agent): New global.
3081 (dprintf_style_enums): Add dprintf_style_agent.
3082 (update_dprintf_command_list): Add agent case.
3083 (agent_printf_command): New function.
3084 (_initialize_breakpoint): Add new commands.
3085 * common/ax.def (printf): New bytecode.
3086 * ax.h (ax_string): Declare.
3087 * ax-gdb.h (gen_printf): Declare.
3088 * ax-gdb.c: Include cli-utils.h, format.h.
3089 (gen_printf): New function.
3090 (maint_agent_print_command): New function.
3091 (_initialize_ax_gdb): Add maint agent-printf command.
3092 * ax-general.c (ax_string): New function.
3093 (ax_print): Add printf disassembly.
3094 * Makefile.in (SFILES): Add format.c
3095 (COMMON_OBS): Add format.o.
3096 * common/format.h: New file.
3097 * common/format.c: New file.
3098 * printcmd.c: Include format.h.
3099 (ui_printf): Call parse_format_string.
3100 * remote.c (remote_state): New field breakpoint_commands.
3101 (PACKET_BreakpointCommands): New enum.
3102 (remote_breakpoint_commands_feature): New function.
3103 (remote_protocol_features): Add new BreakpointCommands entry.
3104 (remote_can_run_breakpoint_commands): New function.
3105 (remote_add_target_side_commands): New function.
3106 (remote_insert_breakpoint): Call it.
3107 (remote_insert_hw_breakpoint): Ditto.
3108 (_initialize_remote): Add new packet configuration for
3109 target-side breakpoint commands.
3110 * target.h (struct target_ops): New field
3111 to_can_run_breakpoint_commands.
3112 (target_can_run_breakpoint_commands): New macro.
3113 * target.c (update_current_target): Handle
3114 to_can_run_breakpoint_commands.
3116 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3118 Execute -ix and -iex only after system and user gdbinit files.
3119 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3120 processing down after gdbinit files.
3122 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3124 Add fnmatch-gnu module.
3125 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3126 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3127 * gnulib/aclocal.m4: Regenerate.
3128 * gnulib/config.in: Regenerate.
3129 * gnulib/configure: Regenerate.
3130 * gnulib/import/dummy.c: Remove.
3131 * gnulib/import/Makefile.am: Regenerate.
3132 * gnulib/import/Makefile.in: Likewise.
3133 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3134 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3135 * gnulib/import/alloca.c: New file.
3136 * gnulib/import/alloca.in.h: Likewise.
3137 * gnulib/import/config.charset: Likewise.
3138 * gnulib/import/fnmatch.c: Likewise.
3139 * gnulib/import/fnmatch.in.h: Likewise.
3140 * gnulib/import/fnmatch_loop.c: Likewise.
3141 * gnulib/import/localcharset.c: Likewise.
3142 * gnulib/import/localcharset.h: Likewise.
3143 * gnulib/import/m4/alloca.m4: Likewise.
3144 * gnulib/import/m4/codeset.m4: Likewise.
3145 * gnulib/import/m4/configmake.m4: Likewise.
3146 * gnulib/import/m4/fcntl-o.m4: Likewise.
3147 * gnulib/import/m4/fnmatch.m4: Likewise.
3148 * gnulib/import/m4/glibc21.m4: Likewise.
3149 * gnulib/import/m4/localcharset.m4: Likewise.
3150 * gnulib/import/m4/locale-fr.m4: Likewise.
3151 * gnulib/import/m4/locale-ja.m4: Likewise.
3152 * gnulib/import/m4/locale-zh.m4: Likewise.
3153 * gnulib/import/m4/mbrtowc.m4: Likewise.
3154 * gnulib/import/m4/mbsinit.m4: Likewise.
3155 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3156 * gnulib/import/m4/mbstate_t.m4: Likewise.
3157 * gnulib/import/m4/stdbool.m4: Likewise.
3158 * gnulib/import/m4/wchar_h.m4: Likewise.
3159 * gnulib/import/m4/wctype_h.m4: Likewise.
3160 * gnulib/import/m4/wint_t.m4: Likewise.
3161 * gnulib/import/mbrtowc.c: Likewise.
3162 * gnulib/import/mbsinit.c: Likewise.
3163 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3164 * gnulib/import/mbsrtowcs-state.c: Likewise.
3165 * gnulib/import/mbsrtowcs.c: Likewise.
3166 * gnulib/import/ref-add.sin: Likewise.
3167 * gnulib/import/ref-del.sin: Likewise.
3168 * gnulib/import/stdbool.in.h: Likewise.
3169 * gnulib/import/streq.h: Likewise.
3170 * gnulib/import/strnlen1.c: Likewise.
3171 * gnulib/import/strnlen1.h: Likewise.
3172 * gnulib/import/verify.h: Likewise.
3173 * gnulib/import/wchar.in.h: Likewise.
3174 * gnulib/import/wctype.in.h: Likewise.
3176 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3178 Support shell wildcards for 'set auto-load safe-path'.
3179 * auto-load.c: Include fnmatch.h.
3180 (filename_is_in_dir): Rename to ...
3181 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3182 it. Update function comment. Rename dir_len to pattern_len. New
3183 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3184 messages. Use gdb_filename_fnmatch.
3185 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3187 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3188 * defs.h (gdb_filename_fnmatch): New declaration.
3189 * utils.c: Include fnmatch.h.
3190 (gdb_filename_fnmatch): New function.
3192 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3194 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3195 `-probe' and `-probe-stap' options.
3197 2012-07-01 Yao Qi <yao@codesourcery.com>
3199 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3200 always_inserted_off, and always_inserted_enums.
3201 Change always_inserted_mode's type to 'enum auto_boolean'.
3202 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3204 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3205 of add_setshow_enum_cmd.
3206 * infrun.c: Remove can_use_displaced_stepping_auto,
3207 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3208 can_use_displaced_stepping_enum.
3209 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3210 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3211 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3212 add_setshow_enum_cmd.
3214 2012-06-30 Doug Evans <dje@google.com>
3216 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3217 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3218 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3220 2012-06-29 Doug Evans <dje@google.com>
3222 * linespec.c: #include "stack.h".
3223 (decode_line_with_current_source): Moved here from symtab.c and
3224 renamed from decode_line_spec. All callers updated.
3225 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3226 renamed from decode_line_spec_1. All callers updated.
3227 * linespec.h (decode_line_with_current_source): Move declaration here
3228 from symtab.h and renamed from decode_line_spec.
3229 (decode_line_with_last_displayed): Move declaration here from symtab.h
3230 and renamed from decode_line_spec_1.
3231 * macrocmd.c: #include "linespec.h".
3232 * symtab.c: Remove #include "linespec.h".
3234 2012-06-28 Doug Evans <dje@google.com>
3236 * dwarf2read.c (get_cu_length): New function.
3237 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3238 (create_debug_types_hash_table): Ditto.
3239 (init_cutu_and_read_dies): Ditto.
3240 (init_cutu_and_read_dies_no_follow): Ditto.
3242 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3244 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3245 (struct abbrev_table): Define.
3246 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3248 (init_cutu_and_read_dies): Update.
3249 (abbrev_table_alloc_abbrev): New function. Replaces
3250 dwarf_alloc_abbrev. All callers updated.
3251 (abbrev_table_add_abbrev): New function.
3252 (abbrev_table_lookup_abbrev): New function. Replaces
3253 dwarf2_lookup_abbrev. All callers updated.
3254 (abbrev_table_read_table): New function. Contents moved here from
3255 dwarf2_read_abbrevs.
3256 (dwarf2_read_abbrevs): Call it.
3257 (abbrev_table_free): New function.
3258 (dwarf2_free_abbrev_table): Call it.
3260 2012-06-28 Stan Shebs <stan@codesourcery.com>
3262 * osdata.c (info_osdata_command): Filter out "Title" columns
3264 * common/linux-osdata.c (struct osdata_type): Add title field.
3265 (osdata_table): Add titles to each entry.
3266 (linux_command_xfer_osdata): Add a column for title data.
3268 2012-06-28 Stan Shebs <stan@codesourcery.com>
3270 Make logging work for MI.
3272 * interps.h (interp_set_logging_ftype): New typedef.
3273 (struct interp_procs): New field set_logging_proc.
3274 (current_interp_set_logging): Declare.
3275 * interps.c (current_interp_set_logging): New function.
3276 * cli/cli-logging.c: Include interps.h.
3277 (set_logging_redirect): Call current_interp_set_logging.
3278 (pop_output_files): Ditto.
3279 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3280 * mi/mi-console.h (mi_console_set_raw): Declare.
3281 * mi/mi-console.c (mi_console_set_raw): New function.
3282 * mi/mi-interp.c (saved_raw_stdout): New global.
3283 (mi_set_logging): New function.
3284 (_initialize_mi_interp): Add it to interp procs.
3286 2012-06-28 Doug Evans <dje@google.com>
3288 * symtab.c (lookup_symbol_aux_objfile): Use
3289 ALL_OBJFILE_PRIMARY_SYMTABS.
3291 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3293 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3295 * common/buffer.c: Include inttypes.h and stdint.h.
3296 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3298 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3299 Pedro Alves <palves@redhat.com>
3301 * gdbthread.h (ALL_THREADS): New macro.
3302 (thread_list): Declare.
3303 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3304 going, but instead fall through to the stepping handling.
3305 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3306 the passed in signal. Adjust debug output.
3307 (resume_callback): Rename to ...
3308 (linux_nat_resume_callback): ... this. Pass the thread's last
3309 stop signal, if in "pass" state.
3310 (linux_nat_resume): Adjust to rename.
3311 (stop_wait_callback): New assertion. Don't respawn signals;
3312 instead let the LWP remain with SIGNALLED set.
3313 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3314 * remote.c (append_pending_thread_resumptions): New.
3315 (remote_vcont_resume): Call it.
3316 * target.h (target_resume): Extend comment.
3318 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3320 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3322 2012-06-27 Doug Evans <dje@google.com>
3324 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3325 Delete have_addr_base, unused. All uses updated.
3326 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3327 (dwarf2_get_pc_bounds): Add ranges_base.
3328 (dwarf2_record_block_ranges): Ditto.
3330 2012-06-27 Tom Tromey <tromey@redhat.com>
3333 * varobj.c (varobj_create): Update.
3334 (varobj_set_value): Update.
3335 * tracepoint.c (validate_actionline): Update.
3336 (encode_actions_1): Update.
3337 * parse.c (parse_exp_1): Add 'pc' argument.
3338 (parse_exp_in_context): Add 'pc' argument. Change how
3339 expression_context_pc is set.
3340 (parse_expression): Update.
3341 (parse_field_expression): Update.
3342 * expression.h (parse_exp_1): Update.
3343 * eval.c (parse_to_comma_and_eval): Update.
3344 * breakpoint.c (set_breakpoint_condition): Update.
3345 (update_watchpoint): Update.
3346 (init_breakpoint_sal): Update
3347 (find_condition_and_thread): Update.
3348 (watch_command_1): Update.
3349 (update_breakpoint_locations): Update.
3350 * ada-lang.c (ada_read_renaming_var_value): Update.
3351 (create_excep_cond_exprs): Update.
3353 2012-06-27 Doug Evans <dje@google.com>
3355 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3358 2012-06-26 Doug Evans <dje@google.com>
3360 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3362 (error_check_comp_unit_head): New arg abbrev_section. All callers
3364 (read_and_check_comp_unit_head): Ditto.
3365 (read_and_check_type_unit_head): Ditto.
3367 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3369 New attribute 'last' for gdb.Symtab_and_line.
3370 * NEWS (Python Scripting): Add entry about the new attribute.
3371 * python/py-symtab.c (salpy_get_last): New function which
3372 implements the get method for the 'last' attribute of
3373 gdb.Symtab_and_line.
3374 (sal_object_getset): Add entry for the 'last' attribute.
3376 2012-06-26 Doug Evans <dje@google.com>
3378 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3379 (dwo_sections): Add macinfo, macro.
3380 (dwarf2_locate_dwo_sections): Watch for macro sections.
3381 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3382 All callers updated. Handle DWO files.
3384 * NEWS: Mention new options "set debug dwarf2-read" and
3385 "set debug symtab-create".
3386 * dwarf2read.c (dwarf2_read_debug): New static global.
3387 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3388 (process_queue): Ditto.
3389 (process_full_comp_unit): Ditto.
3390 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3391 * elfread.c (elf_symfile_read): Add debugging printf.
3392 * minsyms.c (install_minimal_symbols): Ditto.
3393 * psymtab.c (allocate_psymtab): Ditto.
3394 * symfile.c (allocate_symtab): Ditto.
3395 * symtab.c (symtab_create_debug): New global.
3396 (_initialize_symtab): Add new option "set debug symtab-create".
3397 * symtab.h (symtab_create_debug): Declare.
3399 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3400 (lookup_dwo_type_unit): Ditto.
3402 2012-06-26 Roland McGrath <roland@hack.frob.com>
3403 H.J. Lu <hongjiu.lu@intel.com>
3405 * amd64-linux-nat.c: Include <sys/user.h>.
3406 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3407 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3408 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3410 * configure.ac: Check if the fs_base and gs_base members of
3411 `struct user_regs_struct' exist.
3412 * config.in: Regenerated.
3413 * configure: Likewise.
3415 2012-06-25 Michael Eager <eager@eagercon.com>
3418 * python/python.c (gdbpy_write): Check for interrupted output.
3420 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3422 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3423 register as a stack alignment in ARM mode.
3425 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3427 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3428 * gnulib/config.in: Regenerate.
3429 * gnulib/configure: Likewise.
3430 * gnulib/import/m4/extensions.m4: Update it.
3431 * gnulib/import/m4/gnulib-common.m4: Likewise.
3432 * gnulib/import/m4/memmem.m4: Likewise.
3433 * gnulib/import/m4/mmap-anon.m4: Likewise.
3434 * gnulib/import/m4/multiarch.m4: Likewise.
3435 * gnulib/import/stdint.in.h: Likewise.
3437 2012-06-24 Yao Qi <yao@codesourcery.com>
3439 * corefile.c (write_memory_with_notification): New.
3440 * gdbcore.h: Declare write_memory_with_notification.
3441 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3442 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3443 * valops.c (value_assign): Likewise.
3444 * python/py-inferior.c (infpy_write_memory): Call
3445 'write_memory_with_notification'.
3447 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 * cc-with-index.sh: Use also -ex "set auto-load no".
3451 2012-06-23 Doug Evans <dje@google.com>
3454 * NEWS: Document additions to .gdb_index.
3455 * dwarf2read.c: #include "gdb/gdb-index.h".
3456 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3457 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3458 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3459 (dwarf2_read_index): Recognize version 7.
3460 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3461 block_kind, domain): All callers updated.
3462 (dw2_find_symbol_file): Handle new index CU values.
3463 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3464 (add_index_entry): New args is_static, kind. All callers updated.
3465 (offset_type_compare, uniquify_cu_indices): New functions
3466 (symbol_kind): New function.
3467 (write_psymtabs_to_index): Remove duplicate CU values.
3468 (write_psymtabs_to_index): Write .gdb_index version 7.
3470 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3472 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3473 * configure: Regenerate.
3475 2012-06-20 Yao Qi <yao@codesourcery.com>
3477 * python/py-inferior.c: Update comments of infpy_read_memory
3478 and infpy_write_memory.
3480 2012-06-19 Tom Tromey <tromey@redhat.com>
3483 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3484 (push_type_address_space): Remove.
3485 * parse.c (insert_into_type_stack): New function.
3486 (insert_type): Likewise.
3487 (insert_type_address_space): Rename from push_type_address_space.
3488 Insert tp_space_identifier.
3489 * c-exp.y (ptr_operator): New production.
3490 (abs_decl): Use ptr_operator.
3491 (space_identifier): Call insert_type_address_space.
3492 (ptype): Don't use const_or_volatile_or_space_identifier.
3493 (const_or_volatile_noopt): Call insert_type.
3494 (conversion_type_id, conversion_declarator): New productions.
3495 (operator): Use conversion_type_id.
3497 2012-06-18 Doug Evans <dje@google.com>
3499 * symtab.h (minimal_symbol): New member created_by_gdb.
3500 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3502 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3503 (search_symbols): Call it instead of lookup_symbol.
3504 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3506 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3507 Adjust address for DW_OP_GNU_addr_index.
3508 * dwarf2expr.h (dwarf_expr_context): Update comment.
3509 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3510 all callers updated. Handle TLS vars described with
3511 DW_OP_GNU_const_index.
3512 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3513 and DW_OP_GNU_const_index.
3514 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3516 * block.c (find_block_in_blockvector): Make explicit the fact that we
3517 ignore GLOBAL_BLOCK.
3519 2012-06-18 Tom Tromey <tromey@redhat.com>
3521 * c-exp.y (operator): Remove trailing space after "delete" and
3524 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3525 Jan Kratochvil <jan.kratochvil@redhat.com>
3527 Switch i386 and derived targets to ON_STACK.
3528 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3529 (amd64_dicos_init_abi): Remove its installment.
3530 * dicos-tdep.c (dicos_init_abi): Remove the
3531 set_gdbarch_call_dummy_location call. Update the comment here.
3532 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3533 (i386_dicos_init_abi): Remove its installment.
3534 * i386-tdep.c (i386_push_dummy_code): New function.
3535 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3536 i386_push_dummy_code.
3538 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 Remove stale dummy frames.
3541 * breakpoint.c: Include dummy-frame.h.
3542 (longjmp_breakpoint_ops): New variable.
3543 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3544 bp_longjmp_call_dummy.
3545 (bpstat_what, bptype_string, print_one_breakpoint_location)
3546 (init_bp_location): Support bp_longjmp_call_dummy.
3547 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3548 (set_longjmp_breakpoint_for_call_dummy)
3549 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3551 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3552 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3553 FIXME comment and extend the other comment for bp_call_dummy.
3554 (set_longjmp_breakpoint_for_call_dummy)
3555 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3556 * dummy-frame.c: Include gdbthread.h.
3557 (pop_dummy_frame_bpt): New function.
3558 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3559 (dummy_frame_discard): New function.
3560 (cleanup_dummy_frames): Update the comment about longjmps.
3561 * dummy-frame.h (dummy_frame_discard): New declaration.
3562 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3563 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3564 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3565 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3566 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3567 keep_going if IS_LONGJMP and there is no other reason to stop.
3569 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3571 * remote-sim.c (sim_command_completer): Initialize
3574 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3577 * dwarf2loc.c (call_site_parameter_matches): Support
3578 CALL_SITE_PARAMETER_PARAM_OFFSET.
3579 (needs_dwarf_reg_entry_value): Push stub value.
3580 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3581 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3582 * gdbtypes.h (enum call_site_parameter_kind): New item
3583 CALL_SITE_PARAMETER_PARAM_OFFSET.
3584 (struct call_site.parameter.u): New field param_offset.
3586 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 Code cleanup: Generalize call_site.parameter key.
3589 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3590 variable dwarf_reg. New variable kind_u. Update parameters to
3591 push_dwarf_reg_entry_value.
3592 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3593 * dwarf2expr.h (enum call_site_parameter_kind)
3594 (union call_site_parameter_u): Forward declarations.
3595 (struct dwarf_expr_context_funcs): Update parameters and their
3596 description for push_dwarf_reg_entry_value.
3597 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3598 * dwarf2loc.c (call_site_parameter_matches): New function.
3599 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3600 description. Use call_site_parameter_matches.
3601 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3602 Update parameters and their description.
3603 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3604 New variable kind_u. Adjust the caller for updated parameters.
3605 (needs_dwarf_reg_entry_value): Update parameters.
3606 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3607 instead of attr. Update for the changed fields of struct
3608 call_site_parameter.
3609 * gdbtypes.h: Include dwarf2expr.h.
3610 (enum call_site_parameter_kind): New.
3611 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3612 fb_offset into new union u.
3614 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3616 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3617 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3620 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3622 * amd64-linux-nat.c (compat_x32_clock_t): New.
3623 (compat_x32_siginfo_t): Likewise.
3624 (compat_x32_siginfo_from_siginfo): Likewise.
3625 (siginfo_from_compat_x32_siginfo): Likewise.
3626 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3627 and siginfo_from_compat_x32_siginfo for x32.
3629 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3631 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3633 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3635 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3636 instead of gdbarch_ptr_bit.
3637 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3638 (amd64_supply_native_gregset): Likewise.
3639 (amd64_collect_native_gregset): Likewise.
3640 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3641 (amd64_supply_xsave): Likewise.
3642 (amd64_collect_fxsave): Likewise.
3643 (amd64_collect_xsave): Likewise.
3645 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3647 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3648 (amd64_linux_read_description): Check DS segment register for
3651 2012-06-15 Tom Tromey <tromey@redhat.com>
3653 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3654 init_cutu_and_read_dies.
3656 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3658 * MAINTAINERS (Write After Approval): Add myself to the list.
3660 2012-06-15 Tom Tromey <tromey@redhat.com>
3662 * valops.c (value_find_oload_method_list): Now static.
3663 * value.h (value_find_oload_method_list): Don't declare.
3665 2012-06-15 Tom Tromey <tromey@redhat.com>
3667 * valops.c (find_overload_match): Use value_ind.
3669 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3671 * infrun.c (handle_inferior_event): Correct indentation.
3673 2012-06-14 Doug Evans <dje@google.com>
3675 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3676 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3678 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3679 updated. Handle DEBUG_LOC_START_LENGTH.
3680 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3681 (loclist_describe_location): Ditto.
3683 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3686 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3687 after hiding inline functions.
3689 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3691 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3692 _initialize_inf_ttrace.
3694 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3696 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3697 _initialize_hppa_hpux_nat.
3699 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3701 * remote-sim.c (sim_command_completer): Change type of return
3702 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3704 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3705 Jan Kratochvil <jan.kratochvil@redhat.com>
3708 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3709 stack on a 16-byte boundary.
3711 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3713 * jit.c (finalize_symtab): Set function's return type to 'void' by
3716 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3717 H.J. Lu <hongjiu.lu@intel.com>
3719 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3720 Move bits common to both the classic LP64 and the new x32 ILP32
3722 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3723 (amd64_x32_linux_init_abi): New function.
3724 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3727 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3728 * i386-tdep.c (i386_pseudo_register_name): Make public.
3729 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3730 * amd64-tdep.c (amd64_dword_names): Add "eip".
3731 (amd64_x32_pseudo_register_type): New function
3732 (amd64_x32_init_abi): New function.
3734 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3737 * inferior.h (struct inferior_suspend_state): Comment out.
3738 (struct inferior): Comment out the field suspend.
3739 * infrun.c (struct infcall_suspend_state): Comment out the field
3741 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3744 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3746 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3747 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3748 function comment. Return ERROR for unresolved cases. Implement
3749 returning proper NAME.
3750 (yylex): Accept also NAME from classify_inner_name.
3751 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3752 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3754 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3756 2012-06-13 Tom Tromey <tromey@redhat.com>
3758 * breakpoint.c (condition_completer): New function.
3759 (_initialize_breakpoint): Use it.
3760 * value.c (complete_internalvar): New function.
3761 * value.h (complete_internalvar): Declare.
3763 2012-06-13 Tom Tromey <tromey@redhat.com>
3765 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3766 * breakpoint.c (catch_syscall_completer): Return a VEC.
3767 * cli/cli-cmds.c (complete_command): Update.
3768 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3769 (complete_on_enum): Likewise.
3770 * command.h: Include gdb_vecs.h.
3771 (completer_ftype): Change return type.
3772 (complete_on_cmdlist, complete_on_enum): Likewise.
3773 * completer.c (noop_completer, filename_completer)
3774 (location_completer): Return a VEC.
3775 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3777 (expression_completer, complete_line_internal, complete_line)
3778 (command_completer): Return a VEC.
3779 (gdb_completion_word_break_characters, line_completion_function):
3781 * completer.h: Include gdb_vecs.h.
3782 (complete_line, noop_completer, filename_completer)
3783 (expression_completer, location_completer, command_completer):
3785 * f-lang.c (f_word_break_characters): Return a VEC.
3786 * interps.c (interpreter_completer): Return a VEC.
3787 * language.h (struct language_defn)
3788 <la_make_symbol_completion_list>: Return a VEC.
3789 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3790 * symtab.c (free_completion_list): Take a VEC.
3791 (return_val_size, return_val_index): Remove.
3792 (return_val): Now a VEC.
3793 (completion_list_add_name): Update.
3794 (default_make_symbol_completion_list_break_on)
3795 (default_make_symbol_completion_list, make_symbol_completion_list)
3796 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3798 (add_filename_to_list): Update.
3799 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3801 (maybe_add_partial_symtab_filename): Update.
3802 (make_source_files_completion_list): Return a VEC.
3803 * symtab.h (default_make_symbol_completion_list_break_on)
3804 (default_make_symbol_completion_list, make_symbol_completion_list)
3805 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3806 (make_source_files_completion_list): Update.
3808 2012-06-13 Tom Tromey <tromey@redhat.com>
3810 * breakpoint.c (add_catch_command): Use completer_ftype.
3811 * breakpoint.h: Include command.h.
3812 (add_catch_command): Use completer_ftype.
3813 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3814 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3815 Use completer_ftype.
3816 * command.h (completer_ftype): New typedef.
3817 (set_cmd_completer): Use it.
3818 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3821 2012-06-13 Pedro Alves <palves@redhat.com>
3823 Partial revert of previous change.
3825 * serial.c (scb_base): New global.
3826 (serial_for_fd): New.
3827 (serial_open, serial_fdopen_ops): Link new serial in open serials
3829 (do_serial_close): Unlink serial from the open serials chain.
3831 2012-06-12 Pedro Alves <palves@redhat.com>
3833 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3835 (prepare_for_detach): No longer context switch here in non-stop
3837 (fetch_inferior_event): Ditto.
3838 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3839 to the event thread before removing breakpoints. Switch to the
3840 event thread before inserting breakpoints and resuming.
3841 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3842 event thread before resuming.
3843 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3844 Switch to the event thread before removing breakpoints.
3846 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3848 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3849 special characters correctly for the Windows shells. See
3850 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3852 [!__MINGW32__]: Remove extra double quote character from special
3855 2012-06-11 Stan Shebs <stan@codesourcery.com>
3857 * ui-out.h: Remove #if 0 declarations.
3858 * ui-out.c: Remove #if 0 functions.
3860 2012-06-11 Pedro Alves <palves@redhat.com>
3862 * ser-base.c (run_async_handler_and_reschedule): New.
3863 (fd_event, push_event): Use it.
3864 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3865 reference count to 1.
3866 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3868 (serial_is_open, serial_ref, serial_unref): New.
3869 * serial.h (serial_open): Adjust comment.
3870 (serial_is_open): Declare.
3871 (serial_close): Adjust comment.
3872 (serial_ref, serial_unref) Declare.
3873 (struct serial): New field 'refcnt'.
3875 2012-06-11 Pedro Alves <palves@redhat.com>
3877 Remove #if 0'd "connect" command, and unnecessary associated
3878 refcounting and serial reuse bits.
3880 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3881 * serial.c (last_serial_opened): Delete.
3883 (serial_open): Adjust.
3884 (serial_for_fd): Delete.
3885 (serial_fdopen_ops, do_serial_close): Adjust.
3886 (serial_fdopen_ops): Adjust.
3888 2012-06-11 Pedro Alves <palves@redhat.com>
3890 * serial.c (do_serial_close): Remove early return when SCB is
3893 2012-06-11 Tom Tromey <tromey@redhat.com>
3895 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3897 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 Fix regression by the "ambiguous linespec" series.
3900 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3901 get_last_displayed_symtab and get_last_displayed_line and depending
3904 2012-06-11 Tom Tromey <tromey@redhat.com>
3906 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3907 (dw2_find_symbol_file): Use it.
3909 2012-06-11 Michael Eager <eager@eagercon.com>
3911 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3912 * mips-linux-tdep.h (mips_signals): New
3914 2012-06-11 Tom Tromey <tromey@redhat.com>
3916 * infrun.c (handle_inferior_event)
3917 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3919 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3920 exception logic in all cases. Update comments.
3921 (insert_longjmp_resume_breakpoint): Set the exception resume
3924 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3926 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3928 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3930 * valarith.c (binop_types_user_defined_p): Fix a typo.
3932 2012-06-08 Yao Qi <yao@codesourcery.com>
3933 Chung-Lin Tang <cltang@codesourcery.com>
3935 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3936 * arch-utils.h: Declare.
3937 * gdbarch.sh: Add return_in_first_hidden_param_p.
3938 * gdbarch.c, gdbarch.h: Regenerated.
3939 * infcall.c (call_function_by_hand): Call
3940 gdbarch_return_in_first_hidden_param_p instead of
3941 language_pass_by_reference.
3943 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3944 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3945 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3946 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3947 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3948 `cplus_return_struct_by_reference'.
3949 (tic6x_return_value): Handle language cplusplus.
3950 (tic6x_return_in_first_hidden_param_p): New.
3951 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3953 2012-06-07 Doug Evans <dje@google.com>
3955 * dwarf2read.c (dwarf2_cu): Add comment.
3957 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3959 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3961 (mips_eabi_push_dummy_call): Likewise.
3962 (mips_n32n64_push_dummy_call): Likewise.
3963 (mips_o32_push_dummy_call): Likewise.
3964 (mips_o64_push_dummy_call): Likewise.
3966 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3968 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3970 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3972 * mips-tdep.c (mips_pseudo_register_type): Use
3973 mips_float_register_p.
3975 2012-06-06 Pedro Alves <palves@redhat.com>
3977 * infrun.c (handle_inferior_event): Remove calls to
3978 reinit_frame_cache that follow a context_switch call.
3980 2012-06-06 Pedro Alves <palves@redhat.com>
3982 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3983 context_switch and remove stale comment.
3985 2012-06-06 Pedro Alves <palves@redhat.com>
3987 * infrun.c (struct execution_control_state): Remove
3988 `new_thread_event' field.
3989 (handle_inferior_event): Simplify new threads handling; don't
3990 resume the inferior if we find a new thread.
3992 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3994 * NEWS: Document the deprecation of SH's 'regs' command.
3995 * inferior.h (all_registers_info): Add function declaration.
3996 * sh-tdep.c (sh_show_regs): Remove variable.
3997 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3998 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3999 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4000 (sh_show_regs_command): Remove functions.
4001 (sh_gdbarch_init): Don't set sh_show_regs.
4002 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4003 'info all-registers'.
4004 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4005 (sh64_show_regs): Remove functions.
4006 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4008 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4010 * configure.ac: Move development=true below AC_INIT.
4011 * configure: Regenerate.
4013 2012-06-05 Stan Shebs <stan@codesourcery.com>
4015 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4018 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4020 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4021 argument as ssize_t.
4022 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4023 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4024 * target.c (target_read_stack, target_write_memory)
4025 (target_write_raw_memory): Likewise.
4026 * target.h (target_read_stack, target_write_memory)
4027 (target_write_raw_memory): Likewise.
4029 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4031 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4032 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4033 * target.c (target_read_memory): Change LEN to ssize_t.
4034 * target.h (target_read_memory): Change LEN to ssize_t.
4036 2012-06-05 Pedro Alves <palves@redhat.com>
4040 * breakpoint.c (until_break_command): Only fetch the selected
4041 frame after decode_line_1.
4043 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4045 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4046 event breakpoint at _start, __start or main if a program
4047 interpreter is not found.
4049 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4051 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4053 * windows-tdep.c: #include "objfiles.h".
4054 (windows_iterate_over_objfiles_in_search_order): New function.
4055 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4056 iterate_over_objfiles_in_search_order gdbarch method to
4057 windows_iterate_over_objfiles_in_search_order.
4058 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4060 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4062 * gdbarch.sh: Add generation of
4063 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4064 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4065 (iterate_over_objfiles_in_search_order): New gdbarch method.
4066 * gdbarch.h, gdbarch.c: Regenerate.
4067 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4069 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4071 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4072 out of lookup_symbol_aux_symtabs.
4073 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4074 call to lookup_symbol_aux_objfile.
4075 (struct global_sym_lookup_data): New type.
4076 (lookup_symbol_global_iterator_cb): New function.
4077 (lookup_symbol_global): Search for symbol using
4078 gdbarch_iterate_over_objfiles_in_search_order and
4079 lookup_symbol_global_iterator_cb.
4080 * findvar.c (struct minsym_lookup_data): New type.
4081 (minsym_lookup_iterator_cb): New function.
4082 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4083 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4084 and minsym_lookup_iterator_cb.
4086 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4088 Revert the following patch:
4089 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4090 try locating the symbol in the symbol's own objfile first, before
4091 extending the search to all objfiles.
4092 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4093 out of lookup_symbol_aux_symtabs.
4094 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4095 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4096 Do not search EXCLUDE_OBJFILE.
4097 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4098 (lookup_symbol_global): Search for matches in the block's objfile
4099 first, before searching all other objfiles.
4101 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4103 * breakpoint.c (find_condition_and_thread): Stop parsing
4104 as soon as the first invalid keyword is found.
4106 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4108 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4110 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4112 * config/djgpp/djcheck.sh: Add copyright header.
4114 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4116 * copyright.py (update_files, main): Fix path to update-copyright
4119 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4121 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4122 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4123 for which a reminder to update by hand is printed.
4125 2012-06-04 Doug Evans <dje@google.com>
4127 * buildsym.c (make_blockvector): Add comment.
4129 2012-06-04 Pedro Alves <palves@redhat.com>
4131 * arch-utils.c (default_gdb_signal_from_target): Delete.
4132 * arch-utils.h (default_gdb_signal_from_target): Delete.
4133 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4134 gdbarch_gdb_signal_from_target_p.
4135 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4137 * gdbarch.h: Regenerate.
4138 * gdbarch.c: Regenerate.
4140 2012-06-04 Pedro Alves <palves@redhat.com>
4142 * gdbarch.sh (gdb_signal_from_target): Mention that the
4143 implementation of the method must be host independent.
4144 * gdbarch.h: Regenerate.
4146 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4150 (target_read_memory_bfd): New function.
4151 (symbol_file_add_from_memory): Use it.
4153 2012-06-03 Doug Evans <dje@google.com>
4155 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4157 (basic_lookup_transparent_type): Ditto.
4159 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4160 (ALL_PRIMARY_SYMTABS): Use it.
4161 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4162 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4163 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4164 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4165 (basic_lookup_transparent_type): Ditto.
4167 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4169 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4170 it to optimize resolution of demangled name.
4172 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4174 * configure.ac (development): Define new variable.
4175 Call AC_CHECK_LIB for mcheck if $development.
4176 (ERROR_ON_WARNING): Enable it by default only if $development.
4177 * config.in: Regenerate.
4178 * configure: Regenerate.
4180 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4182 * target.c (target_read_memory): Make LEN argument as size_t.
4183 * target.h (target_read_memory): Likewise.
4185 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4187 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4189 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4191 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4192 BookE interface for PowerPC server processors if not available
4193 in the Linux Kernel.
4195 2012-05-31 Keith Seitz <keiths@redhat.com>
4197 * linespec.c (decode_objc): Add cleanup to free
4199 (find_linespec_symbols): Add cleanup to free CLASSES.
4200 * symfile.c (find_separate_debug_file_by_debuglink): Add
4201 cleanup to free DEBUGLINK.
4202 * ui-out.c (clear_header_list): No need to check if
4203 HEADER_NEXT.COLHDR is NULL.
4204 Free HEADER_NEXT.COL_NAME.
4206 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4208 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4211 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4213 * configure.host (gdb_host_cpu): Handle tilegx*.
4214 (gdb_host): Handle tilegx-*-linux*.
4215 * tilegx-linux-nat.c: New file.
4216 * config/tilegx/linux.mh: New file.
4218 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4220 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4221 tilegx-linux-tdep.o.
4222 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4223 tilegx-linux-tdep.c.
4224 * configure.tgt: Handle tilegx-*-linux*.
4225 * tilegx-tdep.h: New file.
4226 * tilegx-tdep.c: New file.
4227 * tilegx-linux-tdep.c: New file.
4228 * regformats/reg-tilegx.dat: New file.
4230 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4232 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4233 accounting of hw watchpoints on ppc.
4235 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4237 * source.c (openp): Expand tilde in path entries.
4239 2012-05-29 Doug Evans <dje@google.com>
4241 * buildsym.c (block_compar): Fix comment.
4242 (end_symtab): Fix and clarify some comments.
4244 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4245 cleanup_undefined_types.
4246 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4247 All callers updated.
4249 2012-05-29 Tom Tromey <tromey@redhat.com>
4251 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4253 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4254 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4256 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4259 2012-05-29 Tristan Gingold <gingold@adacore.com>
4261 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4262 (struct darwin_info): ... New struct.
4263 (solib_darwin_pspace_data): New variable.
4264 (darwin_pspace_data_cleanup): New function.
4265 (get_darwin_info): Likewise.
4266 (darwin_dyld_version_ok, darwin_load_image_infos)
4267 (darwin_solib_get_all_image_info_addr_at_init)
4268 (darwin_solib_read_all_image_info_addr): Add info argument.
4270 (darwin_current_sos): Use per pspace structure.
4271 (darwin_solib_create_inferior_hook): Likewise.
4272 (darwin_clear_solib): Likewise.
4273 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4275 2012-05-28 Pedro Alves <palves@redhat.com>
4277 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4278 block that uses them. Clear ecss before handling each event.
4280 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4282 * solib-svr4.c (svr4_current_sos): New comment on
4283 svr4_current_sos_via_xfer_libraries fall back.
4285 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4287 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4288 it as a fallback for TYPE_IS_OPAQUE.
4289 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4290 symbols for lookup_symbol.
4292 2012-05-24 John Steele Scott <toojays@toojays.net>
4294 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4295 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4296 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4297 (check_producer): ... this new function, which also checks for ICC
4298 and caches the result.
4299 (producer_is_icc): New function.
4300 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4303 2012-05-24 Pedro Alves <palves@redhat.com>
4307 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4308 (default_gdb_signal_to_target): ... this. Add comment.
4309 (default_gdb_signal_from_host): Rename to ...
4310 (default_gdb_signal_from_target): ... this. Add comment.
4311 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4312 (default_gdb_signal_to_target): ... this.
4313 (default_gdb_signal_from_host): Rename to ...
4314 (default_gdb_signal_from_target): ... this.
4315 * corelow.c (core_open): Adjust to naming change. Replace comment.
4316 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4317 (gdb_signal_from_target): ... this. Adjust to
4318 default_gdb_signal_from_host naming change. Extend comment.
4319 (gdb_signal_to_host): Rename to ...
4320 (gdb_signal_to_target): ... this. Adjust to
4321 default_gdb_signal_to_host naming change.
4322 * gdbarch.h, gdbarch.c: Renegerate.
4324 2012-05-24 Pedro Alves <palves@redhat.com>
4328 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4330 2012-05-24 Pedro Alves <palves@redhat.com>
4334 Replace target_signal with gdb_signal throughout.
4336 2012-05-24 Pedro Alves <palves@redhat.com>
4340 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4341 string, instead of reusing the va_list argument.
4343 2012-05-24 Tom Tromey <tromey@redhat.com>
4345 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4348 2012-05-23 Doug Evans <dje@google.com>
4350 * symtab.c (search_symbols): Formatting fixes.
4351 (print_symbol_info): Formatting fixes.
4353 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4354 int64_t change to leb128 API.
4355 (read_encoded_value, decode_frame_entry_1): Ditto.
4356 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4357 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4358 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4359 (execute_stack_op): Ditto.
4360 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4361 (safe_read_uleb128, safe_read_sleb128): Ditto.
4362 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4363 (dwarf2_compile_expr_to_ax): Ditto.
4364 (locexpr_describe_location_piece): Ditto.
4365 (disassemble_dwarf_expression): Ditto.
4366 (locexpr_describe_location_1): Ditto.
4368 2012-05-23 Stan Shebs <stan@codesourcery.com>
4369 Kwok Cheung Yeung <kcy@codesourcery.com>
4371 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4372 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4373 (mi-cmd-info.o): New rule.
4374 * osdata.h (info_osdata_command): New declaration.
4375 * osdata.c (info_osdata_command): Change to non-static.
4376 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4377 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4378 * mi/mi-cmd-info.c: New file.
4380 2012-05-23 Doug Evans <dje@google.com>
4382 * symtab.c (search_symbols): Pass NULL for file_matcher to
4383 expand_symtabs_matching if there are no files to match.
4385 * gdbtypes.c (lookup_typename): Simplify.
4387 2012-05-23 Pedro Alves <palves@redhat.com>
4389 * arch-utils.h (default_target_signal_to_host): Delete.
4390 * arch-utils.c (default_target_signal_to_host): Delete.
4391 * gdbarch.sh (target_signal_to_host): Remove.
4392 * gdbarch.h, gdbarch.c: Regenerate.
4394 2012-05-22 Doug Evans <dje@google.com>
4396 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4398 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4399 (execute_cfa_program): Update to match API of leb128 functions.
4400 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4402 (read_unsigned_leb128, read_signed_leb128): Delete.
4403 (read_initial_length): Change type of buf argument to
4405 (read_encoded_value): Update to match API of leb128 functions.
4406 (decode_frame_entry): Change result to "const gdb_byte *", and
4407 similarly for "start" parameter.
4408 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4409 (dwarf2_build_frame_info): Change local frame_ptr to
4411 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4412 read_uleb128, read_sleb128. All callers updated.
4413 (safe_skip_leb128): New function.
4414 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4415 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4416 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4417 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4418 read_uleb128, read_sleb128.
4419 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4420 (execute_stack_op): Update to match API of leb128 functions.
4421 * dwarf2expr.h: #include "leb128.h".
4422 (read_uleb128, read_sleb128): Delete.
4423 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4424 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4425 * dwarf2loc.c (debug_loc_kind): New enum.
4426 (decode_debug_loc_addresses): New function.
4427 (decode_debug_loc_dwo_addresses): New function.
4428 (dwarf2_find_location_expression): Rewrite.
4429 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4430 (locexpr_describe_location_piece): Ditto.
4431 (disassemble_dwarf_expression): Ditto.
4432 (locexpr_describe_location_1): Ditto.
4433 (loclist_describe_location): Rewrite.
4434 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4435 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4436 (dwarf2_section_buffer_overflow_complaint): Renamed from
4437 dwarf2_macros_too_long_complaint. All callers updated.
4438 (skip_leb128): Delete.
4439 (init_cu_die_reader): Initialize reader->buffer_end.
4440 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4441 (skip_form_bytes): New arg buffer_end. All callers updated.
4442 Replace call to skip_leb128 with gdb_skip_leb128.
4443 (skip_unknown_opcode): New arg mac_end. All callers updated.
4444 (fill_in_loclist_baton): Initialize baton->from_dwo.
4446 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4448 * mips-linux-nat.c (mips_linux_read_description): Use a more
4449 verbose error message.
4451 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4453 * NEWS: Add MIPS/Linux DSP support.
4454 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4455 (SIGCONTEXT_DSPCTL): New macro.
4456 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4457 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4458 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4459 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4460 (N64_SIGCONTEXT_HI3): Likewise.
4461 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4462 (N64_SIGCONTEXT_LO3): Likewise.
4463 (N64_SIGCONTEXT_DSPCTL): Likewise.
4464 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4465 (mips_linux_o32_sigframe_init): Handle DSP registers.
4466 (mips_linux_n32n64_sigframe_init): Likewise.
4468 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4470 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4473 2012-05-22 Pedro Alves <palves@redhat.com>
4475 * target.h (store_waitstatus): Move declaration ...
4476 * inf-child.h (store_waitstatus): ... here.
4477 * target.c: Move inclusion of gdb_wait.h, and ...
4478 (store_waitstatus): ... this ...
4479 * inf-child.c: ... here.
4480 * linux-nat.c: Include inf-child.h.
4481 * rs6000-nat.c: Include inf-child.h.
4482 * spu-linux-nat.c: Include inf-child.h.
4484 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4486 * tracepoint.c (start_tracing): Add missing i18n markup.
4487 (stop_tracing, set_trace_user): Ditto.
4488 (set_trace_notes, set_trace_stop_notes): Ditto.
4490 2012-05-21 Tom Tromey <tromey@redhat.com>
4493 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4495 * value.h (value_cast_pointers): Update.
4496 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4497 (value_cast): Update.
4498 (update_search_result): New function.
4499 (do_search_struct_field): New, from search_struct_field. Check
4500 for ambiguous results.
4501 (search_struct_field): Rewrite.
4502 * infcall.c (value_arg_coerce): Update.
4503 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4504 value_cast_pointers.
4505 * ada-lang.c (ada_convert_actual): Update.
4507 2012-05-21 Tom Tromey <tromey@redhat.com>
4509 * macroexp.c (macro_stringify): Terminate the string.
4511 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4513 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4515 * auto-load.c (auto_load_expand_dir_vars): New function.
4516 (auto_load_safe_path_vec_update): Use it, remove the
4517 substitute_path_component call thanks to it.
4518 (auto_load_objfile_script): Remove the debug_file_directory processing.
4519 Use auto_load_expand_dir_vars, remove the substitute_path_component
4521 * configure: Regenerate.
4522 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4523 path. Escape $ also for $debugdir.
4524 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4525 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4527 2012-05-20 Doug Evans <dje@google.com>
4529 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4530 before use. Check for symtab->includes == NULL before scanning it.
4532 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4534 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4536 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4538 * NEWS: Add microMIPS support and "set mips compression",
4539 "show mips compression" commands.
4540 * mips-tdep.h (mips_isa): New enum.
4541 (gdbarch_tdep): Add mips_isa.
4542 (mips_pc_is_mips16): Update prototype.
4543 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4544 * mips-tdep.c (mips_compression_mips16): New variable.
4545 (mips_compression_micromips): Likewise.
4546 (mips_compression_strings): Likewise.
4547 (mips_compression_string): Likewise.
4548 (is_mips16_isa, is_micromips_isa): New functions.
4549 (is_mips16_addr): Rename to...
4550 (is_compact_addr): ... this.
4551 (unmake_mips16_addr): Likewise to...
4552 (unmake_compact_addr): ... this.
4553 (make_mips16_addr): Likewise to...
4554 (make_compact_addr): ... this.
4555 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4557 (mips_elf_make_msymbol_special): Handle microMIPS code.
4558 (msymbol_is_special): Rename to...
4559 (msymbol_is_mips16): ... this.
4560 (mips_make_symbol_special, mips_pc_is_mips16): Update
4562 (msymbol_is_mips, msymbol_is_micromips): New functions.
4563 (mips16_to_32_reg): Rename to...
4564 (mips_reg3_to_reg): ... this.
4565 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4566 (mips_pc_isa): Likewise.
4567 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4569 (mips_fetch_instruction): Pass return status instead of printing
4570 an error message if requested. Handle microMIPS code. Bail out
4572 (micromips_op): New macro.
4573 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4574 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4575 (b6s4_op, b7s3_reg): Likewise.
4576 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4577 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4578 (mips_insn_size): New function.
4579 (mips32_next_pc): Update mips_fetch_instruction call.
4580 (micromips_relative_offset7): New function.
4581 (micromips_relative_offset10): Likewise.
4582 (micromips_relative_offset16): Likewise.
4583 (micromips_pc_insn_size): Likewise.
4584 (micromips_bc1_pc): Likewise.
4585 (micromips_next_pc): Likewise.
4586 (unpack_mips16): Update mips_fetch_instruction call.
4587 (extended_mips16_next_pc): Update according to change to
4589 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4591 (mips16_scan_prologue): Update mips_fetch_instruction call.
4592 Update according to change to mips16_to_32_reg.
4593 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4594 (mips_insn16_frame_base_sniffer): Likewise.
4595 (micromips_decode_imm9): New function.
4596 (micromips_scan_prologue): Likewise.
4597 (mips_micro_frame_cache): Likewise.
4598 (mips_micro_frame_this_id): Likewise.
4599 (mips_micro_frame_prev_register): Likewise.
4600 (mips_micro_frame_sniffer): Likewise.
4601 (mips_micro_frame_unwind): New variable.
4602 (mips_micro_frame_base_address): New function.
4603 (mips_micro_frame_base): New variable.
4604 (mips_micro_frame_base_sniffer): New function.
4605 (mips32_scan_prologue): Update mips_fetch_instruction call.
4606 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4607 rather than for MIPS16.
4608 (mips_insn32_frame_base_sniffer): Likewise.
4609 (mips_addr_bits_remove): Handle microMIPS code.
4610 (deal_with_atomic_sequence): Rename to...
4611 (mips_deal_with_atomic_sequence): ... this. Update the type
4612 of the variable used to hold an instruction. Remove the ISA bit
4613 check. Update mips_fetch_instruction call.
4614 (micromips_deal_with_atomic_sequence): New function.
4615 (deal_with_atomic_sequence): Likewise.
4616 (mips_about_to_return): Handle microMIPS code. Update
4617 mips_fetch_instruction call.
4618 (heuristic_proc_start): Check for the standard MIPS ISA rather
4619 than for MIPS16. Update mips_pc_is_mips16 and
4620 mips_fetch_instruction calls. Handle microMIPS code.
4621 (mips_push_dummy_code): Handle microMIPS code.
4622 (mips_eabi_push_dummy_call): Likewise.
4623 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4624 (mips_o64_push_dummy_call): Handle microMIPS code.
4625 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4626 (is_delayed): Remove function.
4627 (mips_single_step_through_delay): Replace the call to is_delayed
4628 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4629 Handle microMIPS code.
4630 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4632 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4634 (micromips_in_function_epilogue_p): New function.
4635 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4637 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4639 (gdb_print_insn_mips): Likewise.
4640 (mips_breakpoint_from_pc): Likewise.
4641 (mips_remote_breakpoint_from_pc): New function.
4642 (mips32_instruction_has_delay_slot): Simplify making use of the
4643 updated mips_fetch_instruction interface.
4644 (micromips_instruction_has_delay_slot): New function.
4645 (mips16_instruction_has_delay_slot): Simplify making use of the
4646 updated mips_fetch_instruction interface.
4647 (mips_adjust_breakpoint_address): Check for the standard MIPS
4648 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4649 calls. Handle microMIPS code.
4650 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4651 (mips_skip_trampoline_code): Handle microMIPS code.
4652 (global_mips_compression): New function.
4653 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4654 file flags. Register the microMIPS remote breakpoint handler
4655 and heuristic frame unwinder.
4656 (show_mips_compression): New function.
4657 (_initialize_mips_tdep): Add the "set mips compression" and
4658 "show mips compression" commands.
4660 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4665 * amd64-darwin-tdep.c:
4666 * arm-symbian-tdep.c:
4670 * bfin-linux-tdep.c:
4677 * dwarf2-frame-tailcall.c:
4706 * microblaze-tdep.c:
4707 * mips-linux-tdep.c:
4715 * python/py-finishbreakpoint.c:
4716 * python/py-inferior.c:
4717 * python/py-infthread.c:
4721 * remote-m32r-sdi.c:
4725 * rs6000-aix-tdep.c:
4751 * amd64-darwin-tdep.c:
4752 * arm-symbian-tdep.c:
4753 * arm-tdep.c: Delete unused variables.
4755 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4757 Rename $ddir to $datadir.
4758 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4759 * auto-load.c (auto_load_safe_path_vec_update)
4760 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4761 * configure: Regenerate.
4762 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4763 Likewise. Remove the 'use $ddir' help string.
4765 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4767 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4768 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4770 2012-05-18 Tom Tromey <tromey@redhat.com>
4773 * valprint.h (struct value_print_options) <symbol_print>: New
4775 * valprint.c (user_print_options): Add default for symbol_print.
4776 (show_symbol_print): New function.
4777 (generic_val_print): Respect symbol_print.
4778 (_initialize_valprint): Add "print symbol" setting.
4779 * f-valprint.c (f_val_print): Respect symbol_print.
4780 * c-valprint.c (c_val_print): Respect symbol_print.
4782 * printcmd.c (print_address_symbolic): Return int. Ignore some
4784 (print_address_demangle): Return int.
4785 * defs.h: (print_address_symbolic): Return int.
4786 * value.h (print_address_demangle): Return int.
4788 2012-05-18 Tom Tromey <tromey@redhat.com>
4790 * valprint.c (val_print_string): Don't print leading space.
4791 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4792 print space before string or vtbl.
4793 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4795 * jv-valprint.c (java_value_print): Print space before string.
4796 * go-valprint.c (print_go_string): Print space before string.
4797 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4798 space before string.
4799 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4800 space before string or vtbl.
4801 * auxv.c (fprint_target_auxv): Print space after address.
4803 2012-05-18 Tom Tromey <tromey@redhat.com>
4805 * printcmd.c (print_address_demangle): Remove special case for 0.
4807 2012-05-18 Tom Tromey <tromey@redhat.com>
4809 * printcmd.c (print_address_demangle): Add 'opts' argument.
4810 * p-valprint.c (pascal_val_print): Update.
4811 * jv-valprint.c (java_val_print): Update.
4813 * valprint.c (generic_val_print): Update.
4814 (print_function_pointer_address): Add 'options' argument. Remove
4815 'addressprint' argument. Update.
4816 * m2-valprint.c (print_unpacked_pointer): Update.
4817 * gnu-v3-abi.c (print_one_vtable): Update.
4818 (gnuv3_print_method_ptr): Update.
4819 * f-valprint.c (f_val_print): Update.
4820 * cp-valprint.c (cp_print_value_fields): Update.
4821 * valprint.h (print_function_pointer_address): Update.
4822 * c-valprint.c (c_val_print): Update.
4824 2012-05-18 Tom Tromey <tromey@redhat.com>
4826 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4827 directly corresponding to the found psymtab.
4828 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4829 (dw2_find_pc_sect_symtab): Use it.
4830 * block.h (blockvector_contains_pc): Declare.
4831 * block.c (find_block_in_blockvector): New function.
4832 (blockvector_for_pc_sect): Use it.
4833 (blockvector_contains_pc): New function.
4835 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4837 * mips-tdep.h (mips_write_pc): New prototype.
4838 * mips-tdep.c (mips_write_pc): Make external, add description.
4839 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4842 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4844 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4846 (mips_unwind_pc, mips_write_pc): Likewise.
4847 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4850 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4852 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4853 proc_warn, proc_error, proc_get_status, proc_flags,
4854 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4855 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4856 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4857 proc_stop_process, proc_wait_for_stop, proc_run_process,
4858 proc_set_traced_signals, proc_set_traced_faults,
4859 proc_set_traced_sysentry, proc_set_traced_sysexit,
4860 proc_set_held_signals, proc_get_held_signals,
4861 proc_get_traced_signals, proc_get_traced_faults,
4862 proc_get_traced_sysentry, proc_get_traced_sysexit,
4863 proc_clear_current_fault, proc_set_current_signal,
4864 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4865 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4866 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4867 proc_get_current_thread, proc_get_current_thread,
4868 proc_get_current_thread, proc_update_threads,
4869 proc_update_threads, proc_update_threads, proc_update_threads,
4870 proc_iterate_over_threads, procfs_find_new_threads,
4871 procfs_pid_to_str): Make static. Remove advance declaration.
4872 (proc_cursig): Make static. Conditionalized defintion on
4873 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4874 (proc_syscall, proc_set_kill_on_last_close,
4875 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4876 proc_get_pending_signals, proc_get_signal_actions,
4877 proc_trace_signal, proc_ignore_signal): Delete.
4879 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4881 * coffread.c (cs_section_address): Passing proper argument for
4882 `bfd_get_section_vma'.
4883 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4884 `bfd_get_section_flags'.
4885 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4886 `bfd_get_section_vma'.
4888 2012-05-16 Tom Tromey <tromey@redhat.com>
4891 * macrotab.h: (macro_define_special): Declare.
4892 (enum macro_special_kind): New.
4893 (struct macro_definition) <argc, replacement>: Update comments.
4894 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4895 (macro_define_object_internal): New function.
4896 (macro_define_object): Use it.
4897 (macro_define_special): New function.
4898 (fixup_definition): New function.
4899 (macro_lookup_definition, foreach_macro_in_scope)
4900 (foreach_macro): Use fixup_definition.
4901 * macroexp.h (macro_stringify): Declare.
4902 * macroexp.c (free_buffer_return_text): New function.
4903 (stringify): Constify "arg".
4904 (macro_stringify): New function.
4905 * dwarf2read.c (macro_start_file): Call macro_define_special.
4907 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4908 Maciej W. Rozycki <macro@mips.com>
4910 * breakpoint.h (bp_location): Add related_address member.
4911 * inferior.h (get_return_value): Take a pointer to struct value
4912 instead of struct type for the function requested.
4913 * value.h (using_struct_return): Likewise.
4914 * gdbarch.sh (return_value): Take a pointer to struct value
4915 instead of struct type for the function requested.
4916 * breakpoint.c (set_breakpoint_location_function): Initialize
4917 related_address for bp_gnu_ifunc_resolver breakpoints.
4918 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4919 requested function's address to gdbarch_return_value.
4920 * eval.c (evaluate_subexp_standard): Pass the requested
4921 function's address to using_struct_return.
4922 * infcall.c (call_function_by_hand): Pass the requested
4923 function's address to using_struct_return and
4924 gdbarch_return_value.
4925 * infcmd.c (get_return_value): Take a pointer to struct value
4926 instead of struct type for the function requested.
4927 (print_return_value): Update accordingly.
4928 (finish_command_continuation): Likewise.
4929 * stack.c (return_command): Pass the requested function's
4930 address to using_struct_return and gdbarch_return_value.
4931 * value.c (using_struct_return): Take a pointer to struct value
4932 instead of struct type for the function requested. Pass the
4933 requested function's address to gdbarch_return_value.
4934 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4935 New function_value member, replacing function_type.
4936 (bpfinishpy_dealloc): Update accordingly.
4937 (bpfinishpy_pre_stop_hook): Likewise.
4938 (bpfinishpy_init): Likewise. Record the requested function's
4940 * mips-tdep.c (mips_fval_reg): New enum.
4941 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4942 words put in GP registers.
4943 (mips_o64_push_dummy_call): Update a comment.
4944 (mips_o32_return_value): Take a pointer to struct value instead
4945 of struct type for the function requested and use it to check if
4946 using the MIPS16 calling convention. Return the designated
4947 general purpose registers for floating-point values returned in
4949 (mips_o64_return_value): Likewise.
4950 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4951 (ppc_sysv_abi_broken_return_value): Likewise.
4952 (ppc64_sysv_abi_return_value): Likewise.
4953 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4954 value instead of struct type for the function requested.
4955 * amd64-tdep.c (amd64_return_value): Likewise.
4956 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4957 * arm-tdep.c (arm_return_value): Likewise.
4958 * avr-tdep.c (avr_return_value): Likewise.
4959 * bfin-tdep.c (bfin_return_value): Likewise.
4960 * cris-tdep.c (cris_return_value): Likewise.
4961 * frv-tdep.c (frv_return_value): Likewise.
4962 * h8300-tdep.c (h8300_return_value): Likewise.
4963 (h8300h_return_value): Likewise.
4964 * hppa-tdep.c (hppa32_return_value): Likewise.
4965 (hppa64_return_value): Likewise.
4966 * i386-tdep.c (i386_return_value): Likewise.
4967 * ia64-tdep.c (ia64_return_value): Likewise.
4968 * iq2000-tdep.c (iq2000_return_value): Likewise.
4969 * lm32-tdep.c (lm32_return_value): Likewise.
4970 * m32c-tdep.c (m32c_return_value): Likewise.
4971 * m32r-tdep.c (m32r_return_value): Likewise.
4972 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4973 * m68k-tdep.c (m68k_return_value): Likewise.
4974 (m68k_svr4_return_value): Likewise.
4975 * m88k-tdep.c (m88k_return_value): Likewise.
4976 * mep-tdep.c (mep_return_value): Likewise.
4977 * microblaze-tdep.c (microblaze_return_value): Likewise.
4978 * mn10300-tdep.c (mn10300_return_value): Likewise.
4979 * moxie-tdep.c (moxie_return_value): Likewise.
4980 * mt-tdep.c (mt_return_value): Likewise.
4981 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4982 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4983 (ppc_sysv_abi_broken_return_value): Likewise.
4984 (ppc64_sysv_abi_return_value): Likewise.
4985 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4986 * rl78-tdep.c (rl78_return_value): Likewise.
4987 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4988 * rx-tdep.c (rx_return_value): Likewise.
4989 * s390-tdep.c (s390_return_value): Likewise.
4990 * score-tdep.c (score_return_value): Likewise.
4991 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4992 (sh_return_value_fpu): Likewise.
4993 * sh64-tdep.c (sh64_return_value): Likewise.
4994 * sparc-tdep.c (sparc32_return_value): Likewise.
4995 * sparc64-tdep.c (sparc64_return_value): Likewise.
4996 * spu-tdep.c (spu_return_value): Likewise.
4997 * tic6x-tdep.c (tic6x_return_value): Likewise.
4998 * v850-tdep.c (v850_return_value): Likewise.
4999 * vax-tdep.c (vax_return_value): Likewise.
5000 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5001 * xtensa-tdep.c (xtensa_return_value): Likewise.
5002 * gdbarch.c: Regenerate.
5003 * gdbarch.h: Regenerate.
5005 2012-05-15 Tom Tromey <tromey@redhat.com>
5007 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5009 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5011 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5012 of command in two error message.
5014 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5016 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5018 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5020 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5022 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5024 * NEWS (show auto-load scripts-directory): Add forgotten command.
5026 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5028 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5031 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5033 * amd64-tdep.c: Include features/i386/x32.c and
5034 features/i386/x32-avx.c.
5035 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5036 initialize_tdesc_x32_avx.
5038 2012-05-14 Stan Shebs <stan@codesourcery.com>
5041 * breakpoint.h (enum bptype): New type bp_dprintf.
5042 (struct breakpoint): New field extra_string.
5043 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5044 (create_breakpoint): Add extra_string arg.
5045 * breakpoint.c (dprintf_breakpoint_ops): New.
5046 (is_breakpoint): Add bp_dprintf.
5047 (bpstat_what): Add dprintf case.
5048 (bptype_string): Ditto.
5049 (print_one_breakpoint_location): Ditto.
5050 (init_bp_location): Ditto.
5051 (bkpt_print_mention): Ditto.
5052 (dprintf_style_enums): New array.
5053 (dprintf_style): New global.
5054 (dprintf_function): New global.
5055 (dprintf_channel): New global.
5056 (update_dprintf_command_list): New function.
5057 (update_dprintf_commands): New function.
5058 (init_breakpoint_sal): Add extra_string argument, handle it.
5059 (create_breakpoint_sal): Add extra_string argument.
5060 (create_breakpoints_sal): Add extra_string argument, update callers.
5061 (find_condition_and_thread): Add extra argument.
5062 (create_breakpoint): Add extra_string argument, record it.
5063 (dprintf_command): New function.
5064 (break_command_1): Add arg to create_breakpoint call.
5065 (handle_gnu_v3_exceptions): Ditto.
5066 (trace_command): Ditto.
5067 (ftrace_command): Ditto.
5068 (strace_command): Ditto.
5069 (bkpt_print_mention): Add dprintf case.
5070 (create_breakpoint_sal_default): Add extra_string argument.
5071 (_initialize_breakpoint): Add new commands.
5072 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5073 * python/py-breakpoint.c (bppy_init): Ditto.
5074 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5076 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5078 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5080 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5082 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5085 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5087 Add a new function gdb.find_pc_line to the Python API.
5088 * NEWS (Python Scripting): Add entry about the new function.
5089 * python/python.c (gdbpy_find_pc_line): New function which
5090 implements gdb.find_pc_line.
5091 (GdbMethods): Add entry for the new function.
5093 2012-05-12 Pedro Alves <palves@redhat.com>
5095 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5096 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5098 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5100 * inferior.c: Include completer.h
5101 (initialize_inferiors): Set completer of add-inferior to
5104 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5106 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5107 gdbarch_ptr_bit for x32 core dump.
5109 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5111 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5112 and features/i386/x32-avx-linux.c.
5114 2012-05-11 Stan Shebs <stan@codesourcery.com>
5115 Kwok Cheung Yeung <kcy@codesourcery.com>
5117 * NEWS: Describe new info os commands.
5118 * common/linux-osdata.c (PID_T, TIME_T): Define.
5119 (MAX_PID_T_STRLEN): New.
5120 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5122 (command_from_pid): Add comment. Change to use PID_T.
5123 (commandline_from_pid): Change to use PID_T.
5124 (user_from_pid): Add comment.
5125 (get_process_owner): Add comment. Change to use PID_T and
5127 (get_number_of_cpu_cores): Add comment.
5128 (get_cores_used_by_process): Add comment. Change to use PID_T and
5130 (linux_xfer_osdata_processes): Change to use PID_T and
5132 (compare_processes): New function.
5133 (linux_xfer_osdata_processgroups): New function.
5134 (linux_xfer_osdata_threads): Change to use PID_T.
5135 (linux_xfer_osdata_fds): New function.
5136 (format_socket_state, print_sockets): New functions.
5137 (union socket_addr): New union.
5138 (linux_xfer_osdata_isockets): New function.
5139 (time_from_time_t, group_from_gid): New functions.
5140 (linux_xfer_osdata_shm): New function.
5141 (linux_xfer_osdata_sem): New function.
5142 (linux_xfer_osdata_msg): New function.
5143 (linux_xfer_osdata_modules): New function.
5144 (osdata_table): Add new entries.
5145 * common/buffer.c (buffer_xml_printf): Add support for long and
5146 long long format specifiers.
5148 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5150 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5151 (tdesc_x32_avx_linux): Likewise.
5153 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5155 Implement multi-component --with-auto-load-dir.
5156 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5158 (--with-auto-load-safe-path): Update the default value description.
5159 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5161 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5162 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5163 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5164 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5165 "set auto-load scripts-directory".
5166 * config.in: Regenerate.
5167 * configure: Regenerate.
5168 * configure.ac (--with-auto-load-dir): New configure option.
5169 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5171 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5173 Provide $ddir substitution for --with-auto-load-safe-path.
5174 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5176 * auto-load.c: Include observer.h.
5177 (auto_load_safe_path_vec_update): Call substitute_path_component for
5178 each component. New variable ddir_subst.
5179 (auto_load_gdb_datadir_changed): New function.
5180 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5181 AUTO_LOAD_SAFE_PATH. New comment.
5182 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5183 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5184 * config.in: Regenerate.
5185 * configure: Regenerate.
5186 * configure.ac (--auto-load-safe-path): Rename
5187 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5188 GDB_DATADIR/auto-load.
5189 * defs.h (substitute_path_component): New declaration.
5190 * top.c: Include observer.h.
5191 (set_gdb_datadir): New function.
5192 (init_main): Install it for "set data-directory".
5193 * utils.c (substitute_path_component): New function.
5195 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5197 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5198 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5199 DEBUG_FILE_DIRECTORY. Handle multiple components of
5200 DEBUG_FILE_DIRECTORY.
5202 2012-05-10 Tom Tromey <tromey@redhat.com>
5204 * dwarf2read.c (recursively_write_psymbols): New function.
5205 (write_psymtabs_to_index): Use it.
5207 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5209 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5210 (load_partial_comp_unit): Update.
5211 (queue_comp_unit): Add argument 'pretend_language'.
5212 (process_queue): Update.
5213 (psymtab_to_symtab_1): Skip dependencies that have a user.
5214 (load_partial_comp_unit_reader): Give meaning to the 'data'
5216 (load_full_comp_unit): Add 'pretend_language' argument.
5217 (process_full_comp_unit): Add 'pretend_language' argument. Set
5219 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5221 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5222 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5224 (prepare_one_comp_unit): Add 'pretend_language' argument.
5226 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5227 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5228 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5229 (dw2_do_instantiate_symtab): Check whether symtab was read in
5231 (dw2_instantiate_symtab): Add assertion. Call
5232 process_cu_includes.
5233 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5234 (partial_symtab_p): New typedef.
5235 (set_partial_user): New function.
5236 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5237 (scan_partial_symbols): Add imported CU to imported_symtabs.
5238 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5239 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5240 (get_symtab, recursively_compute_inclusions)
5241 (compute_symtab_includes, process_cu_includes)
5242 (process_imported_unit_die): New functions.
5243 (process_die) <DW_TAG_imported_unit>: New case.
5244 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5246 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5248 (struct partial_die_info) <locdesc>: Remove.
5250 (process_psymtab_comp_unit): Add 'read_partial' argument.
5252 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5253 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5254 (add_partial_symbol): Update.
5255 (process_die): Handle DW_TAG_partial_unit.
5256 (read_file_scope): Update comment.
5257 (load_partial_dies): Handle DW_TAG_imported_unit.
5258 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5259 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5261 2012-05-10 Tom Tromey <tromey@redhat.com>
5263 * cc-with-dwz.sh: New file.
5265 2012-05-10 Tom Tromey <tromey@redhat.com>
5267 * symtab.h (struct symtab) <includes, user>: New fields.
5268 * block.h (struct block_iterator) <d, idx, which>: New fields.
5269 * block.c (initialize_block_iterator, find_iterator_symtab)
5270 (block_iterator_step, block_iter_name_step)
5271 (block_iter_match_step): New functions.
5272 (block_iterator_first, block_iterator_next)
5273 (block_iter_name_first, block_iter_name_next)
5274 (block_iter_match_first, block_iter_match_next): Rewrite.
5275 (get_block_symtab): New function.
5277 2012-05-10 Tom Tromey <tromey@redhat.com>
5279 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5281 * jit.c (finalize_symtab): Use allocate_global_block,
5283 * buildsym.c (finish_block_internal): New function, from old
5285 (finish_block): Rewrite.
5286 (end_symtab): Use finish_block_internal, set_block_symtab.
5287 * block.h (struct global_block): New.
5288 (allocate_global_block, set_block_symtab): Declare.
5289 * block.c (allocate_global_block, set_block_symtab): New
5292 2012-05-10 Tom Tromey <tromey@redhat.com>
5294 * psymtab.c (partial_map_expand_apply): Add assertion.
5295 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5296 (psymtab_to_symtab): Find unshared psymtab.
5297 (dump_psymtab): Print including psymtabs.
5298 (recursively_search_psymtabs): New function.
5299 (expand_symtabs_matching_via_partial): Use it.
5300 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5302 (enum psymtab_search_status): New.
5304 2012-05-10 Tom Tromey <tromey@redhat.com>
5306 * tracepoint.c (scope_info): Update.
5307 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5308 (find_pc_sect_symtab, search_symbols)
5309 (default_make_symbol_completion_list_break_on)
5310 (make_file_symbol_completion_list): Update.
5311 * symmisc.c (dump_symtab_1): Update.
5312 * stack.c (print_frame_args, iterate_over_block_locals)
5313 (print_frame_labels, iterate_over_block_arg_vars): Update.
5314 * python/py-block.c (block_object) <dict>: Remove.
5316 <iter>: Change type.
5317 (blpy_iter): Update.
5318 (blpy_block_syms_iternext): Update.
5319 * psymtab.c (map_block): Use block iterators.
5320 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5321 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5322 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5323 * infrun.c (check_exception_resume): Update.
5324 * cp-support.c (make_symbol_overload_list_block): Update.
5325 * coffread.c (patch_opaque_types): Update.
5326 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5327 * block.h (struct block_iterator): New.
5328 (block_iterator_first, block_iterator_next, block_iter_name_first)
5329 (block_iter_name_next, block_iter_match_first)
5330 (block_iter_match_next): Declare.
5331 (ALL_BLOCK_SYMBOLS): Redefine.
5332 * block.c (block_iterator_first, block_iterator_next)
5333 (block_iter_name_first, block_iter_name_next)
5334 (block_iter_match_first, block_iter_match_next): New functions.
5335 * ada-lang.c (ada_add_block_symbols)
5336 (ada_make_symbol_completion_list): Use block iterator.
5338 2012-05-10 Tom Tromey <tromey@redhat.com>
5340 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5341 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5342 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5343 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5344 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5347 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5349 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5350 print-file-var-lib2.c, print-file-var-main.c and
5351 print-file-var.exp (located in gdb/testsuite/gdb.base).
5353 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5355 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5356 try locating the symbol in the symbol's own objfile first, before
5357 extending the search to all objfiles.
5358 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5359 out of lookup_symbol_aux_symtabs.
5360 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5361 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5362 Do not search EXCLUDE_OBJFILE.
5363 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5364 (lookup_symbol_global): Search for matches in the block's objfile
5365 first, before searching all other objfiles.
5367 2012-05-10 Tristan Gingold <gingold@adacore.com>
5369 * printcmd.c (set_command): Add pre/post inc/dec.
5371 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5373 * gdb.1: Document -ex option.
5375 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5377 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5378 * inferior.h (AT_SYMBOL): Delete.
5380 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5382 * mips-tdep.c (mips_push_dummy_code): New function.
5383 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5384 ON_STACK and install mips_push_dummy_code as our gdbarch
5385 push_dummy_code routine.
5387 2012-05-09 Pedro Alves <palves@redhat.com>
5389 * target.c (set_maintenance_target_async_permitted): Rename to ...
5390 (set_target_async_command): ... this.
5391 (show_maintenance_target_async_permitted): Rename to ...
5392 (show_target_async_command): ... this.
5393 (initialize_targets): Adjust.
5395 2012-05-08 Doug Evans <dje@google.com>
5397 * go-exp.y (classify_name): Add missing assignment of fields of
5400 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5402 Display the ">" prompt in interactive mode while reading canned
5403 commands, even when the current interpreter is MI.
5405 * interps.c (interp_set_temp): New function.
5407 * interps.h (interp_set_temp): Add prototype.
5409 * cli/cli-script.c (restore_interp): New cleanup function.
5410 (read_command_lines): Temporarily override the current interpreter
5411 with CLI and arrange for restoring the original one.
5413 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5415 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5417 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5419 * probe.c (parse_probes): Move conditional to check for
5420 debuginfo files from here...
5421 * stap-probe.c (stap_get_probes): ... to here.
5423 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5424 H.J. Lu <hongjiu.lu@intel.com>
5426 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5427 `movl %esp, %ebp' for the X32 ABI.
5429 2012-05-07 Tom Tromey <tromey@redhat.com>
5431 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5433 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5434 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5435 (dwarf_stack_op_name): Remove.
5436 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5437 (decode_locdesc): Use get_DW_OP_name.
5438 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5439 (dwarf2_compile_expr_to_ax): Likewise.
5440 (disassemble_dwarf_expression): Likewise.
5441 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5443 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5445 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5446 (sh_linux_sigtramp_cache): New function.
5447 (sh_linux_sigreturn_init): New function.
5448 (sh_linux_rt_sigreturn_init): New function.
5449 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5451 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5453 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5454 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5455 (sh_linux_init_abi): Add init calls to register new tramp_frame
5456 definitions under 32-bit SH, update comments.
5458 2012-05-07 Pedro Alves <palves@redhat.com>
5462 * amd64-linux-tdep.c: Include glibc-tdep.h.
5463 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5464 gdbarch_skip_solib_resolver callback.
5466 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5468 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5469 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5470 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5471 (add_auto_load_safe_path): Change the error message.
5472 (_initialize_auto_load): Change the "safe-path" help text.
5473 * configure: Regenerate
5474 * configure.ac (--without-auto-load-safe-path): Set
5475 WITH_AUTO_LOAD_SAFE_PATH to /.
5477 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5479 * stap-probe.h: Do not include unecessary `probe.h'.
5481 2012-05-05 Alan Modra <amodra@gmail.com>
5483 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5484 bfd_und_section_ptr.
5485 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5486 and bfd_com_section_ptr.
5488 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5490 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5492 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5494 * windows-nat.h (segment_register_p_ftype): New typedef.
5495 (windows_set_segment_register_p): Add declaration.
5496 * windows-nat.c (segment_register_p): New static global.
5497 (windows_set_segment_register_p): New function.
5498 (do_windows_fetch_inferior_registers): Add special handling
5499 for segment registers.
5500 * amd64-windows-nat.c: #include "amd64-tdep.h".
5501 (amd64_windows_segment_register_p): New function.
5502 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5503 * i386-windows-nat.c: #include "i386-tdep.h".
5504 (i386_windows_segment_register_p): New function.
5505 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5507 2012-05-04 Tristan Gingold <gingold@adacore.com>
5509 * printcmd.c (set_command): Emit a warning if the expression is not
5512 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5514 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5517 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5519 * stap-probe.c (stap_is_operator): Change declaration.
5520 (stap_get_opcode): Change return value.
5521 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5522 `stap_parse_argument_1'.
5524 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5526 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5529 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5531 Add two new methods global_block and static_block to gdb.Symtab
5533 * NEWS (Python scripting): Add entry about the new methods.
5534 * python/py-symtab.c (stpy_global_block): New function which
5535 implements the gdb.Symtab.global_block() method.
5536 (stpy_static_block): New function which implements the
5537 gdb.Symtab.static_block() method.
5538 (symtab_object_methods): Add entries for the two new methods.
5540 2012-05-03 Doug Evans <dje@google.com>
5542 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5545 2012-05-03 Yao Qi <yao@codesourcery.com>
5547 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5549 (i386_process_record): Ditto.
5551 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5553 * infcall.c (unwind_on_signal_p): Make static.
5555 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5557 * sol-thread.c (solaris_pid_to_str): Make static.
5558 (_initialize_sol_thread): Add prototype.
5560 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5562 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5564 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5566 * MAINTAINERS: Remove myself.
5568 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5570 Fix --without-auto-load-safe-path for MS-Windows host platform.
5571 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5573 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5575 * gdb_curses.h: Undefine KEY_EVENT before including curses
5576 headers. Move "#undef MOUSE_MOVED" before any curses header
5579 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5581 * features/i386/i386-mmx-linux.c: Regenerate.
5582 * features/rs6000/powerpc-32.c: Likewise.
5583 * features/rs6000/powerpc-32l.c: Likewise.
5584 * features/rs6000/powerpc-403.c: Likewise.
5585 * features/rs6000/powerpc-403gc.c: Likewise.
5586 * features/rs6000/powerpc-405.c: Likewise.
5587 * features/rs6000/powerpc-505.c: Likewise.
5588 * features/rs6000/powerpc-601.c: Likewise.
5589 * features/rs6000/powerpc-602.c: Likewise.
5590 * features/rs6000/powerpc-603.c: Likewise.
5591 * features/rs6000/powerpc-604.c: Likewise.
5592 * features/rs6000/powerpc-64.c: Likewise.
5593 * features/rs6000/powerpc-64l.c: Likewise.
5594 * features/rs6000/powerpc-750.c: Likewise.
5595 * features/rs6000/powerpc-860.c: Likewise.
5596 * features/rs6000/powerpc-e500.c: Likewise.
5597 * features/rs6000/powerpc-e500l.c: Likewise.
5598 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5599 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5600 * features/rs6000/rs6000.c: Likewise.
5602 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5604 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5606 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5607 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5608 (stap_parse_argument) <e>: Likewise.
5609 (handle_stap_probe) <byte_order>: Likewise.
5611 2012-04-30 Doug Evans <dje@google.com>
5613 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5614 init_and_read_dies_worker. All callers updated.
5615 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5616 replaced with init_cutu_and_read_dies.
5617 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5618 (find_partial_die): Remove FIXME. Don't free current CU.
5620 2012-04-30 Sterling Augustine <saugustine@google.com>
5622 * contrib: New directory.
5623 * contrib/test_pubnames_and_indexes.py: New file.
5625 2012-04-30 Doug Evans <dje@google.com>
5627 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5628 All callers updated.
5629 (init_cu_die_reader): Verify the section is non-empty.
5630 (dwarf_decode_line_header): Don't dereference section->asection
5631 until we know the section is present.
5633 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5635 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5638 2012-04-29 Yao Qi <yao@codesourcery.com>
5640 * gdb-code-style.el: New hook gdb-markup-hook
5641 and gdb-comment-hook.
5643 2012-04-28 Doug Evans <dje@google.com>
5645 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5646 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5648 * symfile.h (dwarf2_debug_sections): New member addr.
5649 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5650 (ctx_no_get_addr_index): New function.
5651 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5652 (ctx_no_get_addr_index): Declare.
5653 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5654 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5655 (dwarf_expr_ctx_funcs): Update.
5656 (needs_get_addr_index): New function.
5657 (needs_frame_ctx_funcs): Update.
5658 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5659 * dwarf2read.c: #include "gdbcore.h".
5660 (dwarf2_per_objfile): New members addr, dwo_files.
5661 (dwarf2_elf_names): Add entry for addr.
5662 (struct dwo_section_names): New type.
5663 (dwo_section_names): New static global.
5664 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5665 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5666 old debug_types_section member updated to use this.
5667 Rename member debug_types_section to info_or_types_section,
5669 (signatured_type): Rename member type_offset to type_offset_in_tu,
5670 all uses updated. New member type_offset_in_section.
5671 (struct dwo_sections): New type.
5672 (struct dwo_unit): New type.
5673 (struct dwo_file): New type.
5674 (die_reader_specs): New member dwo_file.
5675 (dwarf2_locate_sections): Watch for .debug_addr.
5676 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5677 (dwarf2_read_section): Get bfd of section from bfd's asection,
5679 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5680 (create_signatured_type_table_from_index): Initialize
5681 sig_type->info_or_types_section.
5682 (dw2_get_file_names): Statement lists for type units with DWO files
5683 live in the DWO file.
5684 (create_debug_types_hash_table): New function.
5685 (create_all_type_units): Rewrite.
5686 (init_cu_die_reader): New arg dwo_file, all callers updated.
5687 (init_and_read_dies_worker): Get section from
5688 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5689 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5690 continue reading the CU/TU from there.
5691 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5692 updated. Get section from this_cu->info_or_types_section.
5693 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5694 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5695 DW_FORM_GNU_str_index.
5696 (hash_dwo_file, eq_dwo_file): New functions.
5697 (allocate_dwo_file_hash_table): New function.
5698 (hash_dwo_unit, eq_dwo_unit): New functions.
5699 (allocate_dwo_unit_table): New function.
5700 (dwarf2_locate_dwo_sections): New function.
5701 (struct create_dwo_info_table_data): New type.
5702 (create_debug_info_hash_table_reader): New function.
5703 (create_debug_info_hash_table): New function.
5704 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5705 (lookup_dwo_file): New function.
5706 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5707 (free_dwo_file, free_dwo_file_cleanup): New functions.
5708 (free_dwo_file_from_slot, free_dwo_files): New functions.
5709 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5710 (dwarf2_record_block_ranges): Ditto.
5711 (read_partial_die): Ditto.
5712 (process_enumeration_scope): Update to use type_offset_in_section.
5713 (read_full_die_1): New function.
5714 (read_full_die): Rewrite.
5715 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5716 DW_FORM_GNU_str_index.
5717 (read_addr_index_1, read_addr_index): New functions.
5718 (read_addr_index_from_leb128): New function.
5719 (struct dwarf2_read_addr_index_data): New type.
5720 (dwarf2_read_addr_index_reader): New function.
5721 (dwarf2_read_addr_index): New function.
5722 (read_str_index): New function.
5723 (leb128_size): New function.
5724 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5725 If processing a type unit from a DWO file, get the line section
5727 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5728 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5729 DW_FORM_GNU_str_index.
5730 (lookup_die_type): Check whether section offset of type's die is
5731 known before looking it up. Remove assert. Condition can
5732 legimately happen for inter-cu type references.
5733 (dwarf_attr_name): Handle Fission attributes.
5734 (dwarf_form_name): Handle Fission forms.
5735 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5736 DW_FORM_GNU_str_index.
5737 (follow_die_sig): Update to use type_offset_in_section.
5738 (decode_locdesc): New case DW_OP_GNU_addr_index.
5739 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5740 DW_FORM_GNU_str_index.
5741 (cu_debug_loc_section): New function.
5742 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5743 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5744 Free DWO files if present.
5745 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5747 Refactor DIE reading.
5748 * dwarf2read.c (dwarf2_per_objfile): Replace members
5749 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5750 (die_reader_specs): New member "die_section". Temporarily make
5751 member "buffer" non-const, pending constifying all info_ptr uses.
5752 (die_reader_func_ftype): New typedef.
5753 (dw2_get_file_names_reader): New function.
5754 (dw2_get_file_names): Rewrite.
5755 (read_and_check_type_unit_head): Rename arg type_offset to
5757 (create_all_type_units): Improve debugging message.
5758 Improve dummy type unit check.
5759 (init_cu_die_reader): New arg "section". All callers updated.
5760 (init_and_read_dies_worker): New function.
5761 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5762 (init_cutu_and_read_dies_no_follow): New function.
5763 (init_cutu_and_read_dies_simple): New function.
5764 (process_psymtab_comp_unit_reader): New function.
5765 (process_psymtab_comp_unit): Delete args section,
5766 is_debug_types_section. Rewrite. All callers updated.
5767 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5768 All callers updated. Rewrite.
5769 (load_partial_comp_unit_reader): New function.
5770 (load_partial_comp_unit): Rewrite.
5771 (skip_children): New arg reader. Delete args buffer, cu.
5772 All callers updated.
5773 (skip_one_die): New arg reader. Delete args buffer, cu.
5774 All callers updated.
5775 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5776 All callers updated.
5777 (load_full_comp_unit_reader): New function.
5778 (load_full_comp_unit): Rewrite.
5779 (read_comp_unit): Delete.
5780 (read_die_and_children_1): Delete, contents moved ...
5781 (read_die_and_children): ... here.
5782 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5783 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5784 All callers updated.
5785 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5786 All callers updated.
5787 (find_partial_die): Rewrite load_all_dies support.
5788 (read_attribute_value): New arg reader. Delete args abfd, cu.
5789 All callers updated.
5790 (read_attribute): New arg reader. Delete args abfd, cu.
5791 All callers updated.
5792 (load_full_type_unit): Add assert.
5793 (read_signatured_type_reader): New function.
5794 (read_signatured_type): Rewrite.
5795 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5796 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5797 All callers updated. Set per_cu->cu = NULL after freeing it.
5798 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5799 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5800 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5801 (set_die_type): Update.
5802 (get_die_type_at_offset): Update.
5803 (read_file_scope): Call prepare_one_comp_unit.
5804 (read_type_unit_scope): Ditto.
5805 (prepare_one_comp_unit): Set producer if present.
5807 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5809 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5810 gettext function on `error'.
5812 2012-04-27 Doug Evans <dje@google.com>
5814 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5817 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5818 Tom Tromey <tromey@redhat.com>
5820 * breakpoint.c (struct breakpoint_objfile_data)
5821 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5822 <exception_probes>: New fields.
5823 (free_breakpoint_probes): New function.
5824 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5825 `_Unwind_DebugHook'.
5826 (create_exception_master_breakpoint): Likewise.
5827 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5828 * infrun.c: Including necessary header files for handling SystemTap
5830 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5831 via SystemTap probes.
5832 (check_exception_resume): Remove `func' argument. Handle exception
5833 unwinding breakpoint set via a SystemTap probe.
5834 (insert_exception_resume_from_probe): New function.
5836 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5837 Tom Tromey <tromey@redhat.com>
5838 Jan Kratochvil <jan.kratochvil@redhat.com>
5840 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5841 (COMMON_OBS): Likewise.
5842 (HFILES_NO_SRCDIR): Add `probe'.
5843 * NEWS: Mention support for static and SystemTap probes.
5844 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5845 SystemTap probes' arguments parser.
5846 * arm-linux-tdep.c: Including headers needed to perform the parsing
5847 of SystemTap probes' arguments.
5848 (arm_stap_is_single_operand): New function.
5849 (arm_stap_parse_special_token): Likewise.
5850 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5851 probes' arguments parser.
5852 * ax-gdb.c (require_rvalue): Removing static declaration.
5853 (gen_expr): Likewise.
5854 * ax-gdb.h (gen_expr): Declaring function.
5855 (require_rvalue): Likewise.
5856 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5857 (bkpt_probe_breakpoint_ops): New variable.
5858 (momentary_breakpoint_from_master): Set the `probe' value.
5859 (add_location_to_breakpoint): Likewise.
5860 (break_command_1): Using proper breakpoint_ops according to the
5861 argument passed by the user in the command line.
5862 (bkpt_probe_insert_location): New function.
5863 (bkpt_probe_remove_location): Likewise.
5864 (bkpt_probe_create_sals_from_address): Likewise.
5865 (bkpt_probe_decode_linespec): Likewise.
5866 (tracepoint_probe_create_sals_from_address): Likewise.
5867 (tracepoint_probe_decode_linespec): Likewise.
5868 (tracepoint_probe_breakpoint_ops): New variable.
5869 (trace_command): Using proper breakpoint_ops according to the
5870 argument passed by the user in the command line.
5871 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5872 static probes on breakpoints and tracepoints.
5873 * breakpoint.h (struct bp_location) <probe>: New field.
5874 * cli-utils.c (skip_spaces_const): New function.
5875 (extract_arg): Likewise.
5876 * cli-utils.h (skip_spaces_const): Likewise.
5877 (extract_arg): Likewise.
5878 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5879 * configure.ac: Append `stap-probe.o' to be generated when ELF
5881 * configure: Regenerate.
5882 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5883 * elfread.c: Include `probe.h' and `arch-utils.h'.
5884 (probe_key): New variable.
5885 (elf_get_probes): New function.
5886 (elf_get_probe_argument_count): Likewise.
5887 (elf_evaluate_probe_argument): Likewise.
5888 (elf_compile_to_ax): Likewise.
5889 (elf_symfile_relocate_probe): Likewise.
5890 (stap_probe_key_free): Likewise.
5891 (elf_probe_fns): New variable.
5892 (elf_sym_fns): Add `sym_probe_fns' value.
5893 (elf_sym_fns_lazy_psyms): Likewise.
5894 (elf_sym_fns_gdb_index): Likewise.
5895 (_initialize_elfread): Initialize objfile cache for static
5897 * gdb_vecs.h (struct probe): New forward declaration.
5898 (probe_p): New VEC declaration.
5899 * gdbarch.c: Regenerate.
5900 * gdbarch.h: Regenerate.
5901 * gdbarch.sh (stap_integer_prefix): New variable.
5902 (stap_integer_suffix): Likewise.
5903 (stap_register_prefix): Likewise.
5904 (stap_register_suffix): Likewise.
5905 (stap_register_indirection_prefix): Likewise.
5906 (stap_register_indirection_suffix): Likewise.
5907 (stap_gdb_register_prefix): Likewise.
5908 (stap_gdb_register_suffix): Likewise.
5909 (stap_is_single_operand): New function.
5910 (stap_parse_special_token): Likewise.
5911 (struct stap_parse_info): Forward declaration.
5912 * i386-tdep.c: Including headers needed to perform the parsing
5913 of SystemTap probes' arguments.
5914 (i386_stap_is_single_operand): New function.
5915 (i386_stap_parse_special_token): Likewise.
5916 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5917 probes' arguments parser.
5918 * i386-tdep.h (i386_stap_is_single_operand): New function.
5919 (i386_stap_parse_special_token): Likewise.
5920 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5921 * mipsread.c (ecoff_sym_fns): Likewise.
5922 * objfiles.c (objfile_relocate1): Support relocation for static
5924 * parse.c (prefixify_expression): Remove static declaration.
5925 (initialize_expout): Likewise.
5926 (reallocate_expout): Likewise.
5927 * parser-defs.h (initialize_expout): Declare function.
5928 (reallocate_expout): Likewise.
5929 (prefixify_expression): Likewise.
5930 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5931 of SystemTap probes' arguments.
5932 (ppc_stap_is_single_operand): New function.
5933 (ppc_stap_parse_special_token): Likewise.
5934 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5935 probes' arguments parser.
5936 * probe.c: New file, for generic statically defined probe support.
5937 * probe.h: Likewise.
5938 * s390-tdep.c: Including headers needed to perform the parsing of
5939 SystemTap probes' arguments.
5940 (s390_stap_is_single_operand): New function.
5941 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5942 probes' arguments parser.
5943 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5944 * stap-probe.c: New file, for SystemTap probe support.
5945 * stap-probe.h: Likewise.
5946 * symfile.h: Include `gdb_vecs.h'.
5947 (struct sym_probe_fns): New struct.
5948 (struct sym_fns) <sym_probe_fns>: New field.
5949 * symtab.c (init_sal): Initialize `probe' field.
5950 * symtab.h (struct probe): Forward declaration.
5951 (struct symtab_and_line) <probe>: New field.
5952 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5954 (stop_tracing): Likewise.
5955 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5957 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5958 Tom Tromey <tromey@redhat.com>
5960 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5961 and to compile agent expressions.
5962 * infrun.c (siginfo_make_value): New argument `ignore'.
5963 (siginfo_funcs): New struct.
5964 (_initialize_infrun): New argument when calling
5965 `create_internalvar_type_lazy'.
5966 * thread.c (thread_id_make_value): New argument `ignore'.
5967 (thread_funcs): New struct.
5968 (_initialize_thread): New argument when calling
5969 `create_internalvar_type_lazy'.
5970 * tracepoint.c (sdata_make_value): New argument `ignore'.
5971 (sdata_funcs): New struct.
5972 (_initialize_tracepoint): New argument when calling
5973 `create_internalvar_type_lazy'.
5974 * value.c (make_value): New struct.
5975 (create_internalvar_type_lazy): New argument `data'.
5976 (compile_internalvar_to_ax): New function.
5977 (value_of_internalvar): Properly handling `make_value' case.
5978 (clear_internalvar): Likewise.
5979 (show_convenience): Adding `TRY_CATCH' block.
5980 * value.h (internalvar_make_value): Delete, replace by...
5981 (struct internalvar_funcs): ... this.
5982 (create_internalvar_type_lazy) <fun>: Delete argument.
5983 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5984 (compile_internalvar_to_ax): New function.
5985 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5986 (tlb_funcs): New struct.
5987 (_initialize_windows_tdep): New argument when calling
5988 `create_internalvar_type_lazy'.
5990 2012-04-27 Mark Wielaard <mjw@redhat.com>
5992 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5993 see whether it is an address or a constant offset from DW_AT_low_pc.
5994 (dwarf2_record_block_ranges): Likewise.
5995 (read_partial_die): Likewise.
5997 2012-04-26 Mark Wielaard <mjw@redhat.com>
5999 * MAINTAINERS (Write After Approval): Add myself to the list.
6001 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6003 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6004 (proc_prettyprint_signal): Likewise.
6005 (proc_prettyprint_faultset): Likewise.
6006 (proc_prettyprint_fault): Likewise.
6007 (proc_prettyprint_actionset): Likewise.
6008 (proc_prettyprint_flags): Move to new proc-flags.c section.
6009 (proc_prettyfprint_flags): New prototype.
6010 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6011 (proc_syscall, proc_cursig): Likewise.
6012 (proc_set_kill_on_last_close): Likewise.
6013 (proc_unset_kill_on_last_close): Likewise.
6014 (proc_set_watchpoint): Make static.
6015 (proc_delete_dead_threads): Likewise.
6016 (procfs_set_watchpoint): Likewise.
6017 (_initialize_procfs): Add prototype.
6018 * proc-events.c: Include proc-utils.h.
6019 (init_syscall_table): Make static.
6020 * proc-api.c (_initialize_proc_api): Add prototype.
6021 * proc-flags.c: Include proc-utils.h.
6023 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6025 * configure.ac: Add AC_ARG_PROGRAM.
6026 * configure: Regenerate.
6028 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6030 Fix DW_AT_lower_bound defaults for DWARF-4+.
6031 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6032 high. New variable low_default_is_valid. Implement DWARF-4+
6033 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6034 no default by the DWARF standard.
6036 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6037 Maciej W. Rozycki <macro@codesourcery.com>
6039 * infrun.c (handle_inferior_event): Move the check for return
6040 trampolines ahead of the check for function trampolines.
6041 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6042 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6043 (mips_str_mips16_ret_stub): Likewise.
6044 (mips_str_call_fp_stub): Likewise.
6045 (mips_str_call_stub): Likewise.
6046 (mips_str_fn_stub): Likewise.
6047 (mips_str_pic): Likewise.
6048 (mips_in_frame_stub): New function.
6049 (mips_unwind_pc): Return the return address rather than the PC
6050 if the PC of an intermediate frame is inside a call thunk.
6051 (mips_is_stub_suffix): New function.
6052 (mips_is_stub_mode): Likewise.
6053 (mips_get_mips16_fn_stub_pc): Likewise.
6054 (mips_skip_mips16_trampoline_code): Update to handle all the
6055 currently generated stub types. Don't recurse into __fn_stub
6056 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6057 Use cooked register accesses.
6058 (mips_in_return_stub): Reintroduce function.
6059 (mips_skip_trampoline_code): Traverse trampolines recursively.
6060 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6062 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6066 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6068 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6069 * features/arm-with-m-vfp-d16.xml: New file. Describes
6070 Cortex-M with VFPv4-sp-d16 FPU register layout.
6071 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6072 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6073 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6074 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6075 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6077 2012-04-25 Doug Evans <dje@google.com>
6079 * cli/cli-decode.c (print_doc_line): Use stream instead of
6082 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6084 * features/arm-with-iwmmxt.c: Regenerate.
6085 * features/arm-with-m-fpa-layout.c: Likewise.
6086 * features/arm-with-m.c: Likewise.
6087 * features/arm-with-neon.c: Likewise.
6088 * features/arm-with-vfpv2.c: Likewise.
6089 * features/arm-with-vfpv3.c: Likewise.
6090 * features/mips-dsp-linux.c: Likewise.
6091 * features/mips-linux.c: Likewise.
6092 * features/mips64-dsp-linux.c: Likewise.
6093 * features/mips64-linux.c: Likewise.
6094 * features/s390-linux32.c: Likewise.
6095 * features/s390-linux32v1.c: Likewise.
6096 * features/s390-linux32v2.c: Likewise.
6097 * features/s390-linux64.c: Likewise.
6098 * features/s390-linux64v1.c: Likewise.
6099 * features/s390-linux64v2.c: Likewise.
6100 * features/s390x-linux64.c: Likewise.
6101 * features/s390x-linux64v1.c: Likewise.
6102 * features/s390x-linux64v2.c: Likewise.
6103 * features/tic6x-c62x-linux.c: Likewise.
6104 * features/tic6x-c62x.c: Likewise.
6105 * features/tic6x-c64x-linux.c: Likewise.
6106 * features/tic6x-c64x.c: Likewise.
6107 * features/tic6x-c64xp-linux.c: Likewise.
6108 * features/tic6x-c64xp.c: Likewise.
6109 * target-descriptions.c: Only generate `field_type' and `type'
6110 variables when needed.
6112 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6114 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6116 2012-04-25 Doug Evans <dje@google.com>
6118 Initial pass at Go language support.
6120 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6122 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6123 (YYFILES): Add go-exp.c.
6124 (YYOBJ): Add go-exp.o.
6125 (local-maintainer-clean): Delete go-exp.c.
6126 * defs.h (enum language): Add language_go.
6127 * dwarf2read.c: #include "go-lang.h".
6128 (fixup_go_packaging): New function.
6129 (process_full_comp_unit): Call it when processing Go CUs.
6130 (dwarf2_physname): Add Go support.
6131 (read_file_scope): Handle missing language spec for GNU Go.
6132 (set_cu_language): Handle DW_LANG_Go.
6133 * go-exp.y: New file.
6134 * go-lang.h: New file.
6135 * go-lang.c: New file.
6136 * go-typeprint.c: New file.
6137 * go-valprint.c: New file.
6138 * symtab.c: #include "go-lang.h".
6139 (symbol_set_language): Handle language_go.
6140 (symbol_find_demangled_name, symbol_set_names): Ditto.
6141 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6143 2012-04-24 Jim Meyering <meyering@redhat.com>
6145 avoid a few strncpy-induced buffer overruns
6146 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6147 fname and psargs before trying to concatenate.
6148 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6149 "name" before applying strchr.
6151 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6153 * CONTRIBUTE: Use unified diff instead of context diff when
6156 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6158 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6159 code. Handle JR.HB correctly.
6161 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6164 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6165 with the other MIPS16 helpers.
6167 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6169 * observer.sh: Conditionally declare `args', thus cleaning up
6170 unused instances of this variable.
6172 2012-04-24 Yao Qi <yao@codesourcery.com>
6174 Revert this patch to allow breakpoint always-inserted
6176 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6177 * breakpoint.c: Include record.h.
6178 (breakpoints_always_inserted_mode): Return false when the record
6181 * breakpoint.c (iterate_over_bp_locations): New.
6182 * breakpoint.h: Declare.
6183 New typedef walk_bp_location_callback.
6184 * record.c (record_open): Call record_init_record_breakpoints.
6185 (record_sync_record_breakpoints): New.
6186 (record_init_record_breakpoints): New.
6187 * NEWS: Mention supporting breakpoint always-inserted mode in
6190 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6192 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6195 2012-04-24 Yao Qi <yao@codesourcery.com>
6197 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6198 (is_catchpoint): ... it.
6199 (print_one_breakpoint_location): Caller update.
6200 * breakpoint.h: Update declaration.
6202 2012-04-23 David S. Miller <davem@davemloft.net>
6204 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6206 2012-04-23 Tom Tromey <tromey@redhat.com>
6208 * buildsym.c (add_free_pendings): Remove.
6209 * buildsym.h (add_free_pendings): Remove.
6211 2012-04-23 Doug Evans <dje@google.com>
6213 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6214 attr.u.unsnd instead of attr.u.addr.
6215 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6216 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6218 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6219 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6221 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6223 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6225 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6226 (mips_o32_return_value): Likewise.
6227 (mips_o64_return_value): Likewise.
6229 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6231 * ada-lang.c (ada_evaluate_subexp): Add cases for
6232 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6233 their treatment in eval.c.
6235 2012-04-21 David S. Miller <davem@davemloft.net>
6237 * sparc-tdep.c (X_DISP10): Define.
6238 (sparc_analyze_control_transfer): Handle compare-and-branch.
6240 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6242 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6243 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6245 2012-04-20 Nigel Stephens <nigel@mips.com>
6246 Maciej W. Rozycki <macro@codesourcery.com>
6248 * mips-tdep.c (mips_float_register_p): New function.
6249 (mips_convert_register_float_case_p): Use mips_float_register_p.
6250 (mips_register_type): Likewise.
6251 (mips_print_register): Likewise.
6252 (print_gp_register_row): Likewise.
6253 (mips_print_registers_info): Likewise.
6255 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6257 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6260 2012-04-20 Andrew Pinski <apinski@cavium.com>
6262 * MAINTAINERS (Write After Approval): Add myself to the list.
6264 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6266 * MAINTAINERS: Update my e-mail address.
6268 2012-04-20 Pedro Alves <palves@redhat.com>
6270 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6272 * configure: Regenerate.
6274 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6276 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6278 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6280 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6282 Fix compilation compatibility with python-2.4
6283 * python/py-type.c (convert_field): Cast ADDRSTRING for
6284 PyObject_SetAttrString as non-const. New comment.
6286 2012-04-19 Tom Tromey <tromey@redhat.com>
6288 * top.c (quit_target): Use all_cleanups.
6289 * main.c (captured_command_loop): Use all_cleanups.
6290 * exceptions.c (throw_exception): Use all_cleanups.
6292 2012-04-19 Pedro Alves <palves@redhat.com>
6294 * Makefile.in (GNULIB_BUILDDIR): New.
6295 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6296 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6297 (CLEANDIRS). Remove gnulib/import.
6298 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6300 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6301 (gnulib/import/Makefile): Replace gnulib/import with
6302 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6303 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6304 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6305 acx_configure_dir.m4.
6306 * acinclude.m4: Include acx_configure_dir.m4.
6307 * acx_configure_dir.m4: New file.
6308 * aclocal.m4: Regenerate.
6309 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6310 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6311 (GNULIB): New variable.
6312 (GNULIB_STDINT_H): Adjust.
6313 (AC_OUTPUT): Don't output gnulib/Makefile.
6314 * gdb/defs.h: Include build-gnulib/config.h.
6315 * aclocal.m4: Regenerate.
6316 * config.in: Regenerate.
6317 * configure: Regenerate.
6319 * gnulib/Makefile.in: New file.
6320 * gnulib/configure.ac: New file.
6321 * gnulib/aclocal.m4: New file.
6322 * gnulib/config.in: New file.
6323 * gnulib/configure: New file.
6324 * gnulib/: Re-run gnulib-tool to adjust.
6326 2012-04-19 Doug Evans <dje@google.com>
6328 * cleanups.h (struct cleanup): Move to cleanups.c.
6329 (make_cleanup_dtor_ftype): New typedef.
6330 (make_cleanup_dtor): Use it.
6331 (ALL_CLEANUPS): Replace with ...
6332 (all_cleanups): ... this. Declare. All uses updated.
6333 * cleanups.c: #include "gdb_assert.h".
6334 (sentinel_cleanup): New static global.
6335 (SENTINEL_CLEANUP): Define.
6336 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6337 (make_my_cleanup2): Assert result is non-NULL.
6338 (all_cleanups): New function.
6339 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6342 2012-04-19 Pedro Alves <palves@redhat.com>
6344 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6345 Adjust paths to gnulib imported files.
6347 2012-04-19 Pedro Alves <palves@redhat.com>
6349 * gnulib/: Move whole directory ...
6350 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6351 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6352 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6353 (aclocal_m4_deps): Adjust.
6354 * aclocal.m4: Regenerate.
6355 * configure: Regenerate.
6356 * configure.ac: Adjust AC_OUTPUT output.
6358 2012-04-19 Yao Qi <yao@codesourcery.com>
6360 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6362 * vec.c: Move it ...
6363 * common/vec.c: ... here.
6364 * vec.h: Move it ...
6365 * common/vec.h: ... here.
6367 2012-04-19 Yao Qi <yao@codesourcery.com>
6369 * gdb-code-style.el: New.
6371 2012-04-18 Pedro Alves <palves@redhat.com>
6373 Update gnulib from latest git.
6374 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6376 * gnulib/Makefile.am: Update.
6377 * gnulib/dummy.c: Update.
6378 * gnulib/extra/arg-nonnull.h: Update.
6379 * gnulib/extra/c++defs.h: Update.
6380 * gnulib/extra/update-copyright: Update.
6381 * gnulib/extra/warn-on-use.h: Update.
6382 * gnulib/inttypes.in.h: Update.
6383 * gnulib/m4/00gnulib.m4: Update.
6384 * gnulib/m4/extensions.m4: Update.
6385 * gnulib/m4/gnulib-cache.m4: Update.
6386 * gnulib/m4/gnulib-common.m4: Update.
6387 * gnulib/m4/gnulib-comp.m4: Update.
6388 * gnulib/m4/gnulib-tool.m4: Update.
6389 * gnulib/m4/include_next.m4: Update.
6390 * gnulib/m4/inttypes-pri.m4: Update.
6391 * gnulib/m4/inttypes.m4: Update.
6392 * gnulib/m4/longlong.m4: Update.
6393 * gnulib/m4/memchr.m4: Update.
6394 * gnulib/m4/memmem.m4: Update.
6395 * gnulib/m4/mmap-anon.m4: Update.
6396 * gnulib/m4/multiarch.m4: Update.
6397 * gnulib/m4/onceonly.m4: Update.
6398 * gnulib/m4/stddef_h.m4: Update.
6399 * gnulib/m4/stdint.m4: Update.
6400 * gnulib/m4/string_h.m4: Update.
6401 * gnulib/m4/warn-on-use.m4: Update.
6402 * gnulib/m4/wchar_h.m4: Update.
6403 * gnulib/m4/wchar_t.m4: Update.
6404 * gnulib/m4/wint_t.m4: Update.
6405 * gnulib/memchr.c: Update.
6406 * gnulib/memmem.c: Update.
6407 * gnulib/stddef.in.h: Update.
6408 * gnulib/stdint.in.h: Update.
6409 * gnulib/str-two-way.h: Update.
6410 * gnulib/string.in.h: Update.
6411 * gnulib/wchar.in.h: Update.
6413 * gnulib/extra/arg-nonnull.h: Delete.
6414 * gnulib/extra/c++defs.h: Delete.
6415 * gnulib/extra/warn-on-use.h: Delete.
6416 * gnulib/m4/wchar_h.m4: Delete.
6417 * gnulib/m4/wint_t.m4: Delete.
6418 * gnulib/wchar.in.h: Delete.
6420 * gnulib/extra/snippets/arg-nonnull.h: New.
6421 * gnulib/extra/snippets/c++defs.h: New.
6422 * gnulib/extra/snippets/warn-on-use.h: New.
6424 * aclocal.m4: Regenerate.
6425 * config.in: Regenerate.
6426 * configure: Regenerate.
6427 * gnulib/Makefile.in: Regenerate.
6429 2012-04-18 Pedro Alves <palves@redhat.com>
6431 Reimport the update-copyright module from gnulib
6432 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6434 * configure: Regenerate.
6435 * gnulib/Makefile.am: Update.
6436 * gnulib/Makefile.in: Regenerate.
6437 * gnulib/extra/update-copyright: Update.
6438 * gnulib/m4/gnulib-cache.m4: Update.
6439 * gnulib/m4/gnulib-comp.m4: Update.
6441 2012-04-18 Tristan Gingold <gingold@adacore.com>
6443 * configure.ac (aix): Put -lpthread into libs.
6444 * configure: Regenerate.
6446 2012-04-18 Tom Tromey <tromey@redhat.com>
6448 * linespec.c (convert_linespec_to_sals): Don't use
6450 (compare_msymbols): Arguments are minsym_and_objfile, not
6451 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6453 2012-04-18 Pedro Alves <palves@redhat.com>
6455 Revert gnulib/ part of:
6456 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6457 Copyright year update in most files (performed by copyright.sh).
6459 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6461 Fix 64-bit constants on 32-bit hosts.
6462 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6463 from unsigned long to ULONGEST.
6464 (read_signed_leb128): Change declaration return type from long to
6466 (dwarf2_const_value_attr): Change declaration parameter value from long
6468 (dwarf2_compute_name): Change variable value from long to LONGEST.
6469 (read_unsigned_leb128): Change return type, variable result and some
6470 casts from unsigned long to ULONGEST.
6471 (read_signed_leb128): Change return type, variable result and some
6472 casts from long to LONGEST.
6473 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6474 value from long to LONGEST.
6475 (dwarf2_const_value): Change variable value from long to LONGEST.
6476 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6477 plongest and hex_string.
6478 * symtab.h (struct general_symbol_info): Change ivalue from long to
6479 LONGEST, remove the comment.
6480 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6481 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6483 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6486 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6487 * ada-lang.c (ada_discrete_type_high_bound)
6488 (ada_discrete_type_low_bound): Fix function comment. Use
6489 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6490 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6491 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6492 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6493 Use TYPE_FIELD_ENUMVAL.
6494 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6495 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6496 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6497 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6499 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6500 * dwarf2read.c (process_enumeration_scope): Likewise.
6501 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6503 (class StructMainTypePrettyPrinter): Support also
6504 FIELD_LOC_KIND_ENUMVAL.
6505 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6507 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6508 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6509 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6510 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6512 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6513 accommodate enumval.
6514 (struct call_site): Adjust loc_kind to accommodate enumval.
6515 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6516 (TYPE_FIELD_ENUMVAL): New macros.
6517 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6518 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6520 * p-typeprint.c (pascal_type_print_base): Likewise.
6521 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6523 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6524 * python/py-type.c (convert_field): New variable addrstring. Use
6525 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6526 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6527 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6528 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6530 * valprint.c (generic_val_print): Likewise.
6532 2012-04-17 Doug Evans <dje@google.com>
6534 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6536 * dwarf2read.c: Whitespace fixes.
6537 (lookup_signatured_type): Tweak comment.
6538 (get_die_type_at_offset): Fix comment.
6540 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6542 * xcoffread.c (xcoff_secnum_to_sections): New function.
6543 (secnum_to_section, secnum_to_bfd_section): Reimplement
6544 using xcoff_secnum_to_sections. Rename "secnum" parameter
6546 (RECORD_MINIMAL_SYMBOL): Delete.
6547 (record_minimal_symbol): New function.
6548 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6549 by call to record_minimal_symbol and set misc_func_recorded
6550 to 1. Set last_csect_sec to the XCOFF section index instead
6551 of GDB's section_offset index. Update calls to
6552 prim_record_minimal_symbol_and_info to pass the BFD section
6555 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6557 * xcoffread.c (read_xcoff_symtab): Delete variables
6558 last_csect_val and last_csect_sec and associated code.
6560 2012-04-17 Doug Evans <dje@google.com>
6562 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6563 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6564 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6565 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6567 * cleanups.h: New file.
6568 * cleanups.c: New file.
6569 * Makefile.in (SFILES): Add cleanups.c.
6570 (HFILES_NO_SRCDIR): Add cleanups.h.
6571 (COMMON_OBS): Add cleanups.o.
6572 * defs.h (struct cleanup): Moved to cleanups.h.
6573 (do_cleanups,do_final_cleanups): Ditto.
6574 (discard_cleanups,discard_final_cleanups): Ditto
6575 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6576 (save_cleanups,save_final_cleanups): Ditto.
6577 (restore_cleanups,restore_final_cleanups): Ditto.
6578 (null_cleanup): Ditto.
6579 (make_my_cleanup,make_my_cleanup2): Ditto.
6580 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6581 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6582 (do_cleanups,do_final_cleanups): Ditto.
6583 (discard_cleanups,discard_final_cleanups): Ditto
6584 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6585 (save_cleanups,save_final_cleanups): Ditto.
6586 (restore_cleanups,restore_final_cleanups): Ditto.
6587 (null_cleanup): Ditto.
6588 (make_my_cleanup,make_my_cleanup2): Ditto.
6589 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6591 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6593 (make_cleanup_dyn_string_delete): Ditto.
6594 (make_cleanup_ui_file_delete): Ditto.
6595 (make_cleanup_ui_out_redirect_pop): Ditto.
6596 (make_cleanup_free_section_addr_info): Ditto.
6597 (make_cleanup_restore_integer): Ditto.
6598 (make_cleanup_unpush_target): Ditto.
6599 (make_cleanup_value_free_to_mark): Ditto.
6600 (make_cleanup_value_free): Ditto.
6601 (make_cleanup_free_so): Ditto.
6603 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6605 New option "set debug auto-load".
6606 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6607 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6608 (auto_load_safe_path_vec_update)
6609 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6611 (file_is_auto_load_safe): New parameters debug_fmt and ....
6612 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6613 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6614 caller by explanatory string.
6615 (_initialize_auto_load): Register "set debug auto-load".
6616 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6618 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6619 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6620 by explanatory string.
6621 * main.c (captured_main): Likewise.
6622 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6623 (source_section_scripts): Likewise.
6625 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6627 New option "set auto-load safe-path".
6628 * NEWS: New commands "set auto-load safe-path"
6629 and "show auto-load safe-path".
6630 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6631 (auto_load_safe_path, auto_load_safe_path_vec)
6632 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6633 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6634 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6635 (source_gdb_script_for_objfile): New variable is_safe. Call
6636 file_is_auto_load_safe. Return if it is not.
6637 (struct loaded_script): New field loaded.
6638 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6639 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6640 output "Missing" to "No".
6641 (_initialize_auto_load): New variable cmd. Initialize
6642 auto_load_safe_path. Register "set auto-load safe-path",
6643 "show auto-load safe-path" and "add-auto-load-safe-path".
6644 * auto-load.h (maybe_add_script): Add parameter loaded.
6645 (file_is_auto_load_safe): New declaration.
6646 * config.in: Regenerate.
6647 * configure: Regenerate.
6648 * configure.ac: New parameters --with-auto-load-safe-path
6649 and --without-auto-load-safe-path.
6650 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6651 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6652 * main.c (captured_main): Check file_is_auto_load_safe for
6654 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6655 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6656 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6659 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6661 auto-load: Implementation.
6662 * NEWS: New descriptions for "info auto-load",
6663 "info auto-load gdb-scripts", "info auto-load python-scripts",
6664 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6665 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6666 and "show auto-load-scripts". New description for "set auto-load",
6667 "show auto-load", "set auto-load gdb-scripts",
6668 "show auto-load gdb-scripts", "set auto-load python-scripts",
6669 "show auto-load python-scripts", "set auto-load local-gdbinit",
6670 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6671 "show auto-load libthread-db".
6672 * auto-load.c: Remove include python/python-internal.h. Add includes
6673 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6675 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6676 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6677 (gdbpy_global_auto_load): Rename to ...
6678 (global_auto_load): ... here.
6679 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6680 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6681 (script_language_gdb, source_gdb_script_for_objfile): New.
6682 (struct loaded_script): New field language.
6683 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6685 (maybe_add_script): Add parameter language. Drop redundant
6686 entry.full_path initialization. Initialize entry.language and
6688 (auto_load_objfile_script): Change parameter suffix to language.
6689 Remove the call of maybe_add_script.
6690 Call language->source_script_for_objfile.
6691 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6693 (collect_matching_scripts): Adjust it for
6694 struct collect_matching_scripts_data.
6695 (auto_load_info_scripts_pattern_nl): New variable.
6696 (info_auto_load_scripts): Rename to ...
6697 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6698 for struct collect_matching_scripts_data.
6699 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6700 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6701 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6702 (auto_load_info_cmdlist_get): New.
6703 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6704 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6705 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6706 "info auto-load local-gdbinit".
6707 * auto-load.h (struct script_language): New.
6708 (gdbpy_global_auto_load): Rename to ...
6709 (global_auto_load): ... here.
6710 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6711 (auto_load_local_gdbinit_loaded): New declarations.
6712 (maybe_add_script): New parameter language.
6713 (auto_load_objfile_script): Change parameter suffix to language.
6714 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6715 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6716 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6718 * linux-thread-db.c: Include auto-load.h and ctype.h.
6719 (auto_load_thread_db, show_auto_load_thread_db): New.
6720 (struct thread_db_info): New field filename.
6721 (delete_thread_db_info): Call xfree for FILENAME.
6722 (try_thread_db_load): Initialize FILENAME.
6723 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6724 if !AUTO_LOAD_THREAD_DB.
6725 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6726 (_initialize_thread_db): Install auto_load_thread_db
6727 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6728 as "info auto-load libthread-db".
6729 * main.c (captured_main): Rename gdbpy_global_auto_load to
6730 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6731 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6732 (print_gdb_help): Extend the help for 'local init file'.
6733 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6734 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6735 (auto_load_scripts): Rename to ...
6736 (auto_load_python_scripts): ... here, update the comment.
6737 (gdbpy_load_auto_script_for_objfile): New declaration.
6738 (show_auto_load_python_scripts, script_language_python)
6739 (gdbpy_load_auto_script_for_objfile): New.
6740 (source_section_scripts): Refactor the code.
6741 (load_auto_scripts_for_objfile): Rename to ...
6742 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6743 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6744 (info_auto_load_python_scripts): New.
6745 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6746 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6747 Register "set auto-load-scripts" as its deprecated alias. Register
6748 "info auto-load python-scripts". Register "info auto-load-scripts" as
6749 its deprecated alias.
6750 (load_auto_scripts_for_objfile): Rename to ...
6751 (gdbpy_load_auto_scripts_for_objfile): ... here.
6752 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6753 (gdbpy_load_auto_scripts_for_objfile): ... here.
6755 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6757 auto-load: Move files.
6758 * Makefile.in (SFILES): Add auto-load.c.
6759 (HFILES_NO_SRCDIR): Add auto-load.h.
6760 (COMMON_OBS): Add auto-load.o.
6761 (distclean): Change .gdbinit for gdb-gdb.gdb.
6762 * auto-load.c: New file, with parts from python/py-auto-load.c.
6763 * auto-load.h: New file, with parts from python/python.h.
6764 * configure: Regenerate.
6765 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6766 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6767 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6768 * main.c: Include auto-load.h.
6769 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6770 command.h, observer.h and progspace.h to auto-load.c. Add include
6772 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6773 (struct loaded_script, auto_load_pspace_data)
6774 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6775 (hash_loaded_script_entry, eq_loaded_script_entry)
6776 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6777 (maybe_add_script): Move to auto-load.c.
6778 (source_section_scripts): Change maybe_add_script parameters passing,
6779 use script_not_found_warning_print.
6780 (clear_section_scripts, auto_load_objfile_script)
6781 (auto_load_new_objfile, loaded_script_ptr)
6782 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6783 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6784 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6785 auto_load_new_objfile and info_auto_load_scripts initizations to
6787 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6789 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 * charset.c (find_charset_names): Remove variables ix and elt.
6793 Use free_char_ptr_vec.
6794 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6795 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6796 debugdir_end. New variable debugdir_len.
6797 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6798 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6800 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6801 and elt. Use free_char_ptr_vec.
6802 * source.c (add_path): Remove variables argv, arg and argv_index.
6803 New variables dir_vec, back_to, ix and name.
6804 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6805 make_cleanup_freeargv. Remove variable separator. Simplify the code
6806 no longer expecting DIRNAME_SEPARATOR.
6807 (openp): Remove variable p, p1 and len. New variables dir_vec,
6808 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6809 no longer expecting DIRNAME_SEPARATOR.
6810 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6811 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6813 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6814 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6815 (dirnames_to_char_ptr_vec): New functions.
6817 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6820 * source.c (add_path): Remove always true conditional 'p == 0' and
6821 unindent its code block.
6823 2012-04-17 Pedro Alves <palves@redhat.com>
6825 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6826 (FIELD_BITPOS_LVAL): ... this.
6827 (FIELD_BITPOS): New.
6828 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6829 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6830 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6832 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6834 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6835 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6836 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6839 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6841 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6842 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6843 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6844 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6845 * jv-lang.c (java_link_class_type): Likewise, once.
6846 * stabsread.c (read_enum_type): Likewise.
6848 2012-04-16 Yao Qi <yao@codesourcery.com>
6850 * common/agent.c (agent_run_command): Add one more parameter `len'.
6852 * common/agent.h: Update declaration.
6853 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6855 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6857 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6860 * value.c (value_actual_type): New function.
6861 * value.h (value_actual_type): New declaration.
6862 * varobj.c (update_type_if_necessary): New function.
6863 (varobj_create): Call value_actual_type instead of
6865 (install_dynamic_child): distinct changed and type changed MI variable
6867 (update_dynamic_varobj_children): Updated for install_dynamic_child
6868 change. All callers updated.
6869 (varobj_update): Support for MI variable object type change if
6870 the value changed and RTTI is used to determine the type.
6871 (create_child_with_value): Call value_actual_type instead of
6873 (adjust_value_for_child_access): Extended with a new parameter which
6874 specify whether the given value should be casted to enclosing type.
6875 All callers updated.
6877 2012-04-14 Yao Qi <yao@codesourcery.com>
6879 Import gnulib module inttypes from git
6880 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6881 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6882 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6883 gnulib/m4/inttypes-pri.m4
6884 * aclocal.m4, config.in, configure: Regenerated.
6885 * gnulib/Makefile.am: Update.
6886 * gnulib/Makefile.in: Update.
6887 * gnulib/m4/gnulib-cache.m4: Update.
6888 * gnulib/m4/gnulib-comp.m4: Update.
6889 * gnulib/inttypes.in.h: New.
6890 * gnulib/m4/inttypes-pri.m4: New.
6891 * gnulib/m4/inttypes.m4: New.
6893 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6895 * infrun.c (resume): Update PC address to the real PC after
6896 preparing to do displaced stepping.
6898 2012-04-12 Doug Evans <dje@google.com>
6900 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6901 All callers updated.
6903 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6905 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6907 2012-04-12 Doug Evans <dje@google.com>
6909 * dwarf2read.c (create_all_type_units): Renamed from
6910 create_debug_types_hash_table. All callers updated.
6912 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6913 local type_sig to sig_type, type_offset to type_offset_in_tu.
6914 (hash_signatured_type): Renamed from hash_type_signature,
6915 all callers updated.
6916 (eq_signatured_type): Renamed from eq_type_signature,
6917 all callers updated.
6918 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6919 (process_enumeration_scope): Ditto.
6920 (lookup_signatured_type_at_offset): Ditto.
6921 (load_full_type_unit, read_signatured_type): Ditto.
6923 2012-04-12 Yao Qi <yao@codesourcery.com>
6925 * remote.c (async_remote_interrupt): Correct function name in
6927 (async_remote_interrupt_twice): Ditto.
6929 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6931 * source.c (find_and_open_source): Consistently pass resulting
6932 full path through xfullpath.
6934 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6936 Provide more specific displaced-stepping memory error message.
6937 * infrun.c (displaced_step_prepare): New variable status. Call
6938 target_read_memory instead of read_memory, provide more specific
6941 2012-04-11 Tristan Gingold <gingold@adacore.com>
6944 * darwin-nat.c (darwin_execvp): Revert previous patch.
6946 2012-04-11 Tristan Gingold <gingold@adacore.com>
6949 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6952 2012-04-11 Tristan Gingold <gingold@adacore.com>
6954 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6957 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6959 New command 'explore' which helps explore values and types in
6961 * NEWS: Add an entry about the new 'explore' command.
6962 * data-directory/Makefile.in: Add gdb/command/explore.py
6963 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6964 command using the GDB Python API.
6966 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6968 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6969 extension in jump target calculation.
6971 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6973 * mips-tdep.c (mips32_next_pc): Handle JALX.
6975 2012-04-10 Yao Qi <yao@codesourcery.com>
6977 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6979 2012-04-10 Yao Qi <yao@codesourcery.com>
6981 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6982 and gnulib/m4/gnulib-tool.m4.
6984 2012-04-10 Doug Evans <dje@google.com>
6986 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6987 (load_partial_dies): Clarify comment.
6988 (find_partial_die): Support rereading type units.
6989 Clarify CU handling, if we know offset is in CU, don't search for the
6990 containing CU. Add comment regarding memory waste.
6992 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6994 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6995 i386/x32-avx and i386/x32-avx-linux.
6996 (i386/x32-expedite): New.
6997 (i386/x32-linux-expedite): Likewise.
6998 (i386/x32-avx-expedite): Likewise.
6999 (i386/x32-avx-linux-expedite): Likewise.
7000 ($(outdir)/i386/x32.dat): Likewise.
7001 ($(outdir)/i386/x32-linux.dat): Likewise.
7002 ($(outdir)/i386/x32-avx.dat): Likewise.
7003 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7005 * features/i386/x32-avx-linux.xml: New file.
7006 * features/i386/x32-avx.xml: Likewise.
7007 * features/i386/x32-core.xml: Likewise.
7008 * features/i386/x32-linux.xml: Likewise.
7009 * features/i386/x32.xml: Likewise.
7011 * features/i386/x32-avx-linux.c: New. Generated.
7012 * features/i386/x32-avx.c: Likewise.
7013 * features/i386/x32-linux.c: Likewise.
7014 * features/i386/x32.c: Likewise.
7015 * regformats/i386/x32-avx-linux.dat: Likewise.
7016 * regformats/i386/x32-avx.dat: Likewise.
7017 * regformats/i386/x32-linux.dat: Likewise.
7018 * regformats/i386/x32.dat: Likewise.
7020 2012-04-10 Tristan Gingold <gingold@adacore.com>
7022 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7023 code to kill the inferior.
7025 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7027 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7029 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7031 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7032 (yyvsp): New defines.
7033 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7035 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7037 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7039 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7041 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7044 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7046 * sparc64-tdep.c (sparc64_store_arguments)
7047 (sparc64_store_arguments): Fix coding style.
7049 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7051 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7052 complex floats, adjust some related comments and tighten a related
7054 (sparc64_extract_return_value): Handle complex floats.
7056 2012-04-07 Doug Evans <dje@google.com>
7058 * dwarf2read.c (load_partial_dies): Change condition to assert.
7060 2012-04-06 Doug Evans <dje@google.com>
7062 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7065 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7067 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7069 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7070 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7073 2012-04-05 Keith Seitz <keiths@redhat.com>
7075 * linespec.c (decode_compound): Remove.
7076 (enum offset_relative_sign): New enum.
7077 (struct line_offset): New struct.
7078 (struct linespec): New struct.
7079 (struct linespec_state): Move file_symtabs,
7080 user_filename, and user_function into struct linespec.
7081 Make result an anonymous struct holding vectors of
7082 symbolp and minsym_and_objfile_d.
7083 Add language member.
7084 (enum ls_token_type): New enum.
7085 (linespec_keywords): New array.
7086 (struct ls_token): New struct.
7087 (struct ls_parser): New struct.
7088 (linespec_lexer_lex_number): New function.
7089 (linespec_lexer_lex_keyword): New function.
7090 (is_ada_operator): New function.
7091 (skip_quote_char): New function.
7092 (copy_token_string): New function.
7093 (is_closing_quote_enclosed): New function.
7094 (find_parameter_list_end): New function.
7095 (linespec_lexer_lex_string): New function.
7096 (linespec_lexer_lex_one): New function.
7097 (linespec_lexer_consume_token): New function.
7098 (linespec_lexer_peek_token): New function.
7099 (cplusplus_error): Remove unused function.
7100 (find_methods): Update comment.
7101 (find_toplevel_char): Return const.
7102 (is_objc_method_format): Remove unused function.
7103 (find_toplevel_string): New function.
7104 (is_linespec_boundary): Remove.
7105 (symbol_not_found_error): New function.
7106 (find_method_overload_end): Remove function.
7107 (unexpected_linespec_error): New function.
7108 (keep_name_info): Remove.
7109 (linespec_parse_line_offset): New function.
7110 (linespec_parse_basic): New function.
7111 (canonicalize_linespec): New function.
7112 (decode_line_internal): Remove.
7113 (create_sals_line_offset): New function adapted from
7115 (convert_linespec_to_sals): New function.
7116 (parse_linespec): New function.
7117 (linespec_parser_new): New function.
7118 (linespec_state_destructor): Change parameter type to
7119 struct linespec_state *.
7120 Add language parameter.
7121 Remove freeing of moved members.
7122 (linespec_parser_delete): New function.
7123 (decode_line_full): Use parse_linespec and linespec_parser_new.
7124 (decode_line_1): Likewise.
7125 (decode_indirect): Rename to ...
7126 (linespec_expression_to_pc): ... this and rewrite
7127 to simply find CORE_ADDR, storing this result for later
7129 (locate_first_half): Remove.
7130 (deocde_objc): Add parameter LS.
7131 Initialize new struct collect_info members.
7132 Handle minimal symbols, too.
7133 (decode_compound): Delete.
7134 (lookup_prefix_sym): Rewrite.
7135 (compare_msymbols): New function.
7136 (find_method): Rewrite.
7137 Do not call cplusplus_error.
7138 (symtabs_from_filename): Rewrite.
7139 (collect_function_symbols): Delete.
7140 (find_function_symbols): Rewrite without ARGPTR-style
7142 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7143 (decode_dollar): Adapted and renamed to ...
7144 (linespec_parse_variable): ... this.
7145 (find_linespec_symbols): New function.
7146 (decode_label): Adapted and renamed to ...
7147 (find_label_symbols): ... this.
7148 (decode_digits_list_mode): Add and use LS argument.
7149 (decode_digits_ordinary): Likewise.
7150 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7151 If in list mode, allow any symbol class. Otherwise, only
7152 permit LOC_BLOCK symbols.
7153 (minsym_found): Update comments.
7154 (search_minsyms_for_name): Do not convert the matching symbol
7155 into a SAL. Simply push the symbol and objfile into the
7157 (decode_variable): Delete. Contents adapted into
7158 find_linespec_symbols.
7160 * cp-support.c (SKIP_SPACE): Remove.
7161 (operator_tokens): Remove unused global.
7162 (cp_validate_operator): Remove.
7163 * cp-support.h (cp_validate_operator): Remove declaration.
7165 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7167 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7168 for TYPE_VPTR_FIELDNO.
7169 * valprint.c (valprint_check_validity): Make it global, move the
7170 function comment ...
7171 * value.h (valprint_check_validity): ... to this new declaration.
7173 2012-04-02 Tristan Gingold <gingold@adacore.com>
7175 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7176 the STATE32 api for i386 state.
7177 (i386_darwin_store_inferior_registers): Likewise.
7179 2012-04-02 Tristan Gingold <gingold@adacore.com>
7181 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7183 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7186 2012-04-02 Tristan Gingold <gingold@adacore.com>
7189 * darwin-nat.c (darwin_execvp): Set binary preference.
7191 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7193 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7195 2012-03-30 Tom Tromey <tromey@redhat.com>
7197 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7198 of TRY_CATCH. Fix error handling.
7199 * python/py-value.c (convert_value_from_python): Move 'old'
7200 declaration to innermost scope.
7202 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7203 Andrey Smirnov <andrew.smirnov@gmail.com>
7205 -Wshadow warning fix.
7206 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7207 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7208 Adjust code accordingly.
7210 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7212 * ada-lang.c (symbol_completion_add): Rename parameter
7213 "encoded" into "encoded_p". Ajust code and documentation
7216 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7217 Andrey Smirnov <andrew.smirnov@gmail.com>
7219 -Wshadow warning fix.
7220 * ada-lang.c (symbol_completion_add): Rename parameter
7221 "wild_match" into wild_match_p. Update code and documentation
7224 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7226 * ada-lang.c (symbol_completion_match): Rename parameter
7227 "encoded" into "encoded_p". Ajust code and documentation
7230 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7231 Andrey Smirnov <andrew.smirnov@gmail.com>
7233 -Wshadow warning fix.
7234 * ada-lang.c (symbol_completion_match): Rename parameter
7235 "wild_match" into "wild_match_p". Adjust code and function
7236 documentation accordingly.
7238 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7239 Andrey Smirnov <andrew.smirnov@gmail.com>
7241 -Wshadow warning fix.
7242 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7243 "symbol_info" into "info". Adjust code accordingly.
7244 (ada_lookup_symbol): Likewise.
7246 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7248 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7249 of this function's documentation.
7251 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7252 Andrey Smirnov <andrew.smirnov@gmail.com>
7254 -Wshadow warning fix.
7255 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7256 variable into "wild_match_p". Adjust code accordingly.
7258 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7259 Andrey Smirnov <andrew.smirnov@gmail.com>
7261 -Wshadow warning fix.
7262 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7263 parameter into "wild_match_p". Adjust code accordingly.
7264 Document this parameter in the function description.
7266 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7267 Andrey Smirnov <andrew.smirnov@gmail.com>
7269 -Wshadow warning fix.
7270 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7271 "wild_match" parameter to "wild_match_p" (-Wshadow).
7273 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7275 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7276 in function documentation.
7278 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7279 Andrey Smirnov <andrew.smirnov@gmail.com>
7281 -Wshadow warning fix.
7282 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7283 variable into wild_match_p. Adjust code accordingly.
7285 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7286 Andrey Smirnov <andrew.smirnov@gmail.com>
7288 * ada-valprint.c (ada_val_print_1): Move the code handling
7289 TYPE_CODE_ENUM inside its own lexical block. Declare
7290 variables len and val there, instead of in the function's
7291 top level block. Avoid declaring deref_val again in a way
7292 that shadows another variable of the same name declared
7293 in one of the up-level blocks. Just re-use the up-level
7296 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7298 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7299 Replace block_found argument by symbol_info. Adjust
7300 implementation accordingly. Add function documentation.
7301 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7303 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7304 * ada-exp.y (write_object_renaming): Adjust to new
7305 ada_lookup_encoded_symbol API.
7307 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7309 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7312 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7314 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7315 (v850_register_name): Add the mpu and fpu register names.
7316 (v850e_register_name): Add the mpu and fpu register names.
7317 (v850e2_register_name): New function.
7318 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7321 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7323 * NEWS: Add entry for Ada varobj support.
7325 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7327 * varobj.c (default_value_is_changeable_p): New function,
7328 extracted from varobj_value_is_changeable_p. Add declaration.
7329 (ada_value_is_changeable_p): New function, extracted from
7330 varobj_value_is_changeable_p. Add declaration.
7331 (struct language_specific): New field "value_is_changeable_p".
7332 (languages): Add entries for new field.
7333 (varobj_create): Set language before calling install_new_value.
7334 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7335 "value_is_changeable_p" language callback.
7337 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7339 * ada-varobj.h, ada-varobj.c: New files.
7340 * Makefile.in (SFILES): Add ada-varobj.c.
7341 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7342 (COMMON_OBS): Add ada-varobj.o.
7344 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7346 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7347 (struct language_specific): New field "value_has_mutated".
7348 (languages): Set field "value_has_mutated" in each entry of array.
7349 (varobj_value_has_mutated): New function.
7350 (varobj_udpdate): Add handling of type mutation.
7351 (value_of_root): Add handling of type mutation.
7352 (ada_value_has_mutated): New function.
7354 2012-03-28 Pedro Alves <palves@redhat.com>
7356 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7357 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7359 2012-03-28 Tom Tromey <tromey@redhat.com>
7361 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7362 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7365 2012-03-28 Tom Tromey <tromey@redhat.com>
7367 * .dir-locals.el: New file.
7369 2012-03-28 Pedro Alves <palves@redhat.com>
7371 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7373 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7375 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7378 2012-03-27 Pedro Alves <palves@redhat.com>
7380 Eliminate struct ui_stream.
7382 * ui-out.h (struct ui_stream): Delete.
7383 (ui_out_field_stream): Adjust prototype.
7384 (ui_out_stream_new, ui_out_stream_delete)
7385 (make_cleanup_ui_out_stream_delete): Delete declarations.
7386 * ui-out.c (ui_out_field_stream): Change prototype to take a
7387 ui_file instead of a ui_stream. Adjust.
7388 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7389 (make_cleanup_ui_out_stream_delete): Delete.
7390 * breakpoint.c (print_breakpoint_location)
7391 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7392 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7393 * disasm.c (dump_insns): Ditto.
7394 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7396 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7397 ui_stream/ui_out_stream_new.
7398 * infcmd.c (print_return_value): Ditto.
7399 * osdata.c (info_osdata_command): Don't allocate a local
7401 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7402 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7403 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7404 allocate a local ui_stream.
7405 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7406 instead of ui_stream/ui_out_stream_new.
7407 (list_args_or_locals): Don't allocate a local ui_stream.
7408 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7409 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7410 ui_stream/ui_out_stream_new.
7411 * cli/cli-setshow.c (do_setshow_command): Ditto.
7413 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7415 * arm-linux-tdep.c (arm_linux_init_abi): Call
7416 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7417 * arm-tdep.c (arm_process_record): New function.
7418 (deallocate_reg_mem): New function.
7419 (decode_insn): New function.
7420 (thumb_record_branch): New function.
7421 (thumb_record_ldm_stm_swi(): New function.
7422 (thumb_record_misc): New function.
7423 (thumb_record_ld_st_stack): New function.
7424 (thumb_record_ld_st_imm_offset): New function.
7425 (thumb_record_ld_st_reg_offset(): New function.
7426 (thumb_record_add_sub_cmp_mov): New function.
7427 (thumb_record_shift_add_sub): New function.
7428 (arm_record_coproc_data_proc): New function.
7429 (arm_record_coproc): New function.
7430 (arm_record_b_bl): New function.
7431 (arm_record_ld_st_multiple): New function.
7432 (arm_record_ld_st_reg_offset): New function.
7433 (arm_record_ld_st_imm_offset): New function.
7434 (arm_record_data_proc_imm): New function.
7435 (arm_record_data_proc_misc_ld_str): New function.
7436 (arm_record_extension_space): New function.
7437 (arm_record_strx): New function.
7438 (sbo_sbz): New function.
7439 (struct insn_decode_record): New structure for arm insn record.
7440 (REG_ALLOC): New macro for reg allocations.
7441 (MEM_ALLOC): New macro for memory allocations.
7442 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7444 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7446 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7447 (store_register): Likewise.
7449 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7451 * MAINTAINERS (Write After Approval): Add myself to the list.
7453 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7455 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7456 Describe also the option "auto".
7458 2012-03-22 Richard Henderson <rth@redhat.com>
7460 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7461 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7463 2012-03-22 Richard Henderson <rth@redhat.com>
7465 * jit.c (jit_read_code_entry): Compute alignment and offset of
7466 int64_t member before computing entry_size.
7468 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7470 Python scripting: Add new method Value.referenced_value to
7471 gdb.Value which can dereference pointer as well as reference
7473 * NEWS: Add entry under 'Python scripting' about the new method
7474 Value.referenced_value on gdb.Value objects.
7475 * python/py-value.c (valpy_referenced_value): New function
7476 defining a new method on gdb.Value objects which can dereference
7477 pointer and reference values.
7479 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7481 * MAINTAINERS (Write After Approval): Add myself to the list.
7483 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7485 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7486 in addition to "main".
7488 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7490 * expression.h (op_name): Add declaration.
7491 * expprint.c (op_name): Remove declaration. Make non-static.
7492 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7494 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7496 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7498 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7499 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7500 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7501 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7502 (linux_nat_get_siginfo): Likewise.
7503 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7504 (linux_nat_get_siginfo): Likewise.
7505 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7506 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7507 * procfs.c (gdb_siginfo_t): Likewise.
7509 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7511 * .gitignore: Ignore more files.
7513 2012-03-20 Pedro Alves <palves@redhat.com>
7515 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7518 2012-03-20 Yao Qi <yao@codesourcery.com>
7520 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7523 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7525 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7526 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7527 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7529 * dwarf2expr.h (cu_offset, sect_offset): New types.
7530 (struct dwarf_expr_context_funcs) <dwarf_call>
7531 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7533 (struct dwarf_expr_context) <len>: Improve the comment.
7534 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7535 cu_offset and sect_offset.
7536 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7537 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7538 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7539 * dwarf2loc.h: Include dwarf2expr.h.
7540 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7542 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7543 Improve the comment.
7544 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7545 (struct signatured_type, struct line_header, struct partial_die_info)
7546 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7547 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7548 (get_die_type_at_offset, create_cus_from_index)
7549 (create_signatured_type_table_from_index, dw2_get_file_names)
7550 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7551 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7552 (create_debug_types_hash_table, process_psymtab_comp_unit)
7553 (load_partial_comp_unit, create_all_comp_units)
7554 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7555 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7556 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7557 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7558 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7559 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7560 (find_partial_die, read_attribute_value, lookup_die_type)
7561 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7562 (is_ref_attr): New function comment.
7563 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7564 Use cu_offset and sect_offset.
7565 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7566 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7567 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7568 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7569 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7570 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7571 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7574 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7577 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7578 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7580 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7582 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 * NEWS: Describe new options --init-command=FILE, -ix and
7585 --init-eval-command=COMMAND, -iex.
7586 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7587 CMDARG_INIT_COMMAND.
7588 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7589 "init-command", "init-eval-command", "ix" and "iex" to the variable
7590 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7591 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7592 (print_gdb_help): Describe --init-command=FILE, -ix and
7593 --init-eval-command=COMMAND, -iex.
7595 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7598 * main.c (struct cmdarg): Move it here from main. Add more comments.
7599 (cmdarg_s, VEC (cmdarg_s)): New.
7600 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7601 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7602 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7603 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7606 2012-03-19 Tom Tromey <tromey@redhat.com>
7608 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7610 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7613 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7616 2012-03-16 Chris January <chris.january@allinea.com>
7618 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7621 2012-03-16 Chris January <chris.january@allinea.com>
7623 * source.c (add_path): Use memmove instead of strcpy because the
7626 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7628 * value.h (set_value_parent): Add declaration.
7629 * value.c (set_value_parent): New function.
7630 (value_address): If VALUE->PARENT is not NULL, then use it as
7631 the base address instead of VALUE->LOCATION.address.
7632 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7633 the same as OBJ's address. Adjust V's offset accordingly.
7636 2012-03-16 Gary Benson <gbenson@redhat.com>
7638 PR breakpoints/10738
7639 * dwarf2read.c (use_deprecated_index_sections): New global.
7640 (struct partial_die_info): New member may_be_inlined.
7641 (read_partial_die): Set may_be_inlined where appropriate.
7642 (add_partial_subprogram): Add partial symbols for partial
7643 DIEs that may be inlined.
7644 (new_symbol_full): Add inlined subroutines to the current
7646 (write_psymtabs_to_index): Bump version number.
7647 (dwarf2_read_index): Read only version 6 indices unless
7648 use_deprecated_index_sections is set.
7649 * linespec.c (symbol_and_data_callback): New structure.
7650 (iterate_inline_only): New function.
7651 (iterate_over_all_matching_symtabs): New argument
7652 "include_inline". If nonzero, also call the callback for
7653 symbols representing inlined subroutines.
7654 (lookup_prefix_sym): Pass extra argument to the above.
7655 (find_function_symbols): Likewise.
7656 (add_matching_symbols_to_info): Likewise.
7657 * NEWS: Mention that GDB can now set breakpoints on inlined
7660 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7662 * p-typeprint.c (pascal_type_print_method_args):
7663 Fix display of parameter of methods.
7665 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7667 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7668 Add missing prototype.
7670 2012-03-16 Yao Qi <yao@codesourcery.com>
7671 Jan Kratochvil <jan.kratochvil@redhat.com>
7673 Fix false compilation warning.
7674 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7676 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7677 Pedro Alves <pedro@codesourcery.com>
7679 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7680 (arm_register_g_packet_guesses): New function.
7681 (arm_gdbarch_init): Don't force a target description with
7682 registers when the executable is detected as M-profile. Instead
7683 set gdbarch->tdep->is_m. Register `g' packet guesses.
7684 (_initialize_arm_tdep): Initialize the new target description.
7685 * features/arm-with-m-fpa-layout.xml: New description.
7686 * features/arm-with-m-fpa-layout.c: New, generated.
7688 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7690 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7691 Update function description.
7692 (insert_bp_location): Do not wipe bl->target_info out.
7693 * mem-break.c: #include "gdb_string.h".
7694 (default_memory_insert_breakpoint): Do not call target_read_memory
7695 with a pointer to the breakpoint's shadow_contents buffer. Use
7696 a local buffer instead.
7697 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7699 2012-03-15 Tom Tromey <tromey@redhat.com>
7701 * NEWS: Mention "info vtbl", not "info vtable".
7702 * cp-support.c (info_vtbl_command): Fix comment.
7703 (_initialize_cp_support): Fix text.
7705 2012-03-15 Tom Tromey <tromey@redhat.com>
7707 * cp-valprint.c (cp_print_value_fields): Use
7708 print_function_pointer_address for vtable slot.
7710 2012-03-15 Tom Tromey <tromey@redhat.com>
7712 * gnu-v3-abi.c (struct value_and_voffset): New.
7713 (hash_value_and_voffset, eq_value_and_voffset)
7714 (compare_value_and_voffset, compute_vtable_size)
7715 (print_one_vtable, gnuv3_print_vtable): New functions.
7716 (init_gnuv3_ops): Initialize 'print_vtable' field.
7717 * cp-support.c (info_vtbl_command): New function.
7718 (_initialize_cp_support): Add "info vtbl".
7719 * cp-abi.h (cplus_print_vtable): Declare.
7720 (struct cp_abi_ops) <print_vtable>: New field.
7721 * cp-abi.c (cplus_print_vtable): New function.
7724 2012-03-15 Tom Tromey <tromey@redhat.com>
7726 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7727 iterate_over_symbols.
7729 2012-03-14 Doug Evans <dje@google.com>
7731 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7732 DW_OP_GNU_parameter_ref.
7734 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7736 Fix double prompt of 'interpreter-exec mi'.
7737 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7738 (mi_interpreter_resume): use it.
7739 (mi_execute_command_input_handler): New function.
7740 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7741 mi_execute_command_input_handler.
7743 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7745 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7747 (darwin_debug_port_info): Make static.
7748 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7749 * machoread.c (_initialize_machoread): Add prototype.
7750 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7751 (i386_darwin_set_control, i386_darwin_get_control)
7752 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7753 i386_darwin_get_status, i386_darwin_get_control):
7754 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7756 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7758 * ax-gdb.c (gen_usual_unary): Remove special handling of
7759 enum and bool types.
7761 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7763 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7765 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7767 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7769 2012-03-13 Chris January <chris.january@allinea.com>
7771 * aix-thread.c (fill_sprs): Store the floating point registers
7772 at the correct offsets into vals.
7774 2012-03-13 Doug Evans <dje@google.com>
7776 * NEWS: Mention symbol-reloading has been deleted.
7777 * symfile.c (symbol_reloading): Delete.
7778 (show_symbol_reloading): Delete.
7779 (_initialize_symfile): Delete set/show symbol-reloading.
7781 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7782 read_in_chain until we have successfully read it in.
7783 (load_full_comp_unit): Ditto.
7784 (read_signatured_type): Add comment.
7786 2012-03-13 Chris January <chris.january@allinea.com>
7788 * stabsread.c (fix_common_block): Change type of valu argument
7791 2012-03-13 Chris January <chris.january@allinea.com>
7793 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7796 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7798 * common/linux-procfs.c (linux_proc_get_int): New, from
7799 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7801 (linux_proc_get_tgid): Only call linux_proc_get_int.
7802 (linux_proc_get_tracerpid): New.
7803 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7804 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7805 linux_proc_pid_has_state.
7806 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7807 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7808 (linux_ptrace_attach_warnings): New.
7809 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7811 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7812 (linux_nat_attach): New variables ex, buffer, message and message_s.
7813 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7815 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7817 * Makefile.in (linux-ptrace.o): New.
7818 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7820 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7821 * common/linux-ptrace.c: New file.
7822 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7823 * config/arm/linux.mh: Likewise.
7824 * config/i386/linux.mh: Likewise.
7825 * config/i386/linux64.mh: Likewise.
7826 * config/ia64/linux.mh: Likewise.
7827 * config/m32r/linux.mh: Likewise.
7828 * config/m68k/linux.mh: Likewise.
7829 * config/mips/linux.mh: Likewise.
7830 * config/pa/linux.mh: Likewise.
7831 * config/powerpc/linux.mh: Likewise.
7832 * config/powerpc/ppc64-linux.mh: Likewise.
7833 * config/powerpc/spu-linux.mh: Likewise.
7834 * config/s390/s390.mh: Likewise.
7835 * config/sparc/linux.mh: Likewise.
7836 * config/sparc/linux64.mh: Likewise.
7837 * config/xtensa/linux.mh: Likewise.
7838 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7839 common/linux-procfs.c.
7840 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7842 2012-03-13 Hui Zhu <teawater@gmail.com>
7843 Pedro Alves <palves@redhat.com>
7845 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7846 CREATE_BREAKPOINT_FLAGS_INSERTED.
7847 (create_breakpoint_sal, create_breakpoints_sal)
7848 (base_breakpoint_create_breakpoints_sal)
7849 (tracepoint_create_breakpoints_sal)
7850 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7852 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7853 (ftrace_command, strace_command): Adjust.
7854 (create_tracepoint_from_upload): Pass
7855 CREATE_BREAKPOINT_FLAGS_INSERTED.
7856 * breakpoint.h (enum breakpoint_create_flags): New.
7857 (create_breakpoint): New flags parameter.
7858 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7859 * python/py-breakpoint.c (bppy_init): Adjust.
7860 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7861 * spu-tdep.c (spu_catch_start): Adjust.
7863 2012-03-13 Pedro Alves <palves@redhat.com>
7864 Hui Zhu <teawater@gmail.com>
7865 Yao Qi <yao@codesourcery.com>
7867 * remote.c (struct remote_state): New field `starting_up'.
7868 (remote_start_remote): Set and clear it.
7869 (remote_can_download_tracepoint): If starting up, return false.
7871 2012-03-13 Yao Qi <yao@codesourcery.com>
7873 * inferior.h (struct inferior): Remove fields any_syscall_count,
7874 syscalls_counts and total_syscalls_count. Move them to new
7875 struct catch_syscall_inferior_data in breakpoint.c.
7876 * breakpoint.c: Call DEF_VEC_I(int).
7877 (struct catch_syscall_inferior_data): New.
7878 (get_catch_syscall_inferior_data): New.
7879 (catch_syscall_inferior_data_cleanup): New.
7880 (insert_catch_syscall): Update to access data in
7881 struct catch_syscall_inferior_data.
7882 (insert_catch_syscall): Likewise.
7883 (remove_catch_syscall): Likewise.
7884 (remove_catch_syscall): Likewise.
7885 (is_syscall_catchpoint_enabled): Likewise.
7886 (add_catch_command): Likewise.
7887 (_initialize_breakpoint): Register cleanup.
7888 * breakpoint.h: Removed DEF_VEC_I(int).
7889 * dwarf2loc.c: Call DEF_VEC_I(int).
7890 * mi/mi-main.c: Likewise.
7892 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7894 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7896 2012-03-12 Chris January <chris.january@allinea.com>
7898 * aix-thread.c (_initialize_aix_thread): Add prototype.
7899 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7900 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7902 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7904 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7905 include of "amd64-nat.h".
7907 2012-03-12 Tom Tromey <tromey@redhat.com>
7909 * buildsym.c (record_pending_block): Now static.
7910 * buildsym.h: (record_pending_block): Remove.
7912 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7914 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7916 2012-03-09 Tom Tromey <tromey@redhat.com>
7918 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7919 producer_is_gxx_lt_4_6>: New fields.
7920 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7922 2012-03-09 Tom Tromey <tromey@redhat.com>
7924 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7926 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7928 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7931 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7933 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7935 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7937 Fix -Wmissing-prototypes build.
7938 * arm-linux-nat.c (get_thread_id): Make it static.
7939 * xtensa-linux-nat.c (get_thread_id): Likewise.
7941 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7943 * server.c (process_point_options): If a conditional expression
7944 is found, only print a message if remote_debug is nonzero.
7946 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7948 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7949 of internal error for unknown/unsupported types.
7951 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7953 Fix CU relative vs. absolute DIE offsets.
7954 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7955 offset to offset_in_cu.
7956 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7958 (dwarf2_fetch_die_location_block): Rename parameter offset to
7959 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7961 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7963 * libunwind-frame.c: Rename to ...
7964 * ia64-libunwind-tdep.c: ... here.
7965 * libunwind-frame.h: Rename to ...
7966 * ia64-libunwind-tdep.h: ... here.
7967 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7968 ia64-libunwind-tdep.h.
7969 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7970 * README (--with-libunwind): Rename to ...
7971 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7972 * config.in: Regenerate.
7973 * configure: Regenerate.
7974 * configure.ac: New option --with-libunwind-ia64, make the
7975 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7976 Remove AC_DEFINE for HAVE_LIBUNWIND.
7977 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7978 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7979 Rename libunwind-frame in the general comment.
7980 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7981 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7982 Move forward declarations inside #ifndef. Rename libunwind-frame in
7983 the general comment.
7984 * ia64-tdep.c: Rename libunwind-frame.h #include to
7985 ia64-libunwind-tdep.h.
7986 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7987 (ia64_libunwind_descr): Rename libunwind-frame to
7988 ia64-libunwind-tdep in these function comments.
7989 * ia64-tdep.h: Rename libunwind-frame.h #include to
7990 ia64-libunwind-tdep.h.
7991 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7992 ia64-libunwind-tdep in that data comment.
7994 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 * libunwind-frame.h (struct frame_unwind): New declaration.
7998 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8000 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8001 "set breakpoint condition-evaluation" command.
8003 2012-03-08 Tristan Gingold <gingold@adacore.com>
8005 * sparc-stub.c: Move to stubs/
8006 * sh-stub.c: Likewise.
8007 * m68k-stub.c: Likewise.
8008 * m32r-stub.c: Likewise.
8009 * i386-stub.c: Likewise.
8011 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8013 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8014 linux_get_siginfo_type.
8016 * m68klinux-nat.c: Include "gdb_proc_service.h".
8017 (PTRACE_GET_THREAD_AREA): Define.
8018 (ps_get_thread_area): New function.
8020 2012-03-08 Yao Qi <yao@codesourcery.com>
8022 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8024 (remote_query_attached): Likewise.
8025 (remote_static_tracepoint_marker_at): Likewise.
8026 (remote_set_permissions): Likewise.
8027 (remote_detach_1, extended_remote_attach_1): Likewise.
8028 (send_g_packet, remote_vkill): Likewise.
8029 (extended_remote_disable_randomization): Likewise.
8030 (remote_add_target_side_condition): Likewise.
8031 (remote_insert_breakpoint): Likewise.
8032 (remote_remove_breakpoint): Likewise.
8033 (remote_insert_watchpoint): Likewise.
8034 (remote_remove_watchpoint): Likewise.
8035 (remote_insert_hw_breakpoint): Likewise.
8036 (remote_insert_hw_breakpoint): Likewise.
8037 (remote_remove_hw_breakpoint): Likewise.
8038 (remote_download_command_source): Likewise.
8039 (remote_download_tracepoint): Likewise.
8040 (remote_download_trace_state_variable): Likewise.
8041 (remote_disable_tracepoint): Likewise.
8042 (remote_trace_set_readonly_regions): Likewise.
8043 (remote_get_tracepoint_status): Likewise.
8044 (remote_trace_find): Likewise.
8045 (remote_get_trace_state_variable_value): Likewise.
8046 (remote_set_disconnected_tracing): Likewise.
8047 (remote_set_circular_trace_buffer): Likewise.
8048 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8049 (remote_use_agent): Likewise.
8050 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8053 2012-03-07 Pedro Alves <palves@redhat.com>
8055 * NEWS: Mention QProgramSignals.
8056 * inferior.h (update_signals_program_target): Declare.
8057 * infrun.c: (update_signals_program_target): New.
8058 (handle_command): Update the target of the new program signals
8060 * remote.c (PACKET_QProgramSignals): New enum.
8061 (last_program_signals_packet): New global.
8062 (remote_program_signals): New.
8063 (remote_start_remote): Update the target with the program signals
8065 (remote_protocol_features): Add entry for QPassSignals.
8066 (remote_open_1): Free anc clear last_program_signals_packet.
8067 (init_remote_ops): Install remote_program_signals.
8068 * target.c (update_current_target): Adjust.
8069 (target_program_signals): New.
8070 * target.h (struct target_ops) <to_program_signals>: New field.
8071 (target_program_signals): Declare.
8073 2012-03-07 Pedro Alves <palves@redhat.com>
8075 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8078 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8080 * m68klinux-nat.c (getregs_supplies): Make static.
8081 (getfpregs_supplies): Likewise.
8082 (have_ptrace_getregs): Likewise.
8084 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8086 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8087 in call to get_die_type_at_offset.
8089 2012-03-06 Stan Shebs <stan@codesourcery.com>
8091 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8092 * mi/mi-cmd-disas.c: Ditto.
8093 * mi/mi-cmd-env.c: Ditto.
8094 * mi/mi-cmd-file.c: Ditto.
8095 * mi/mi-cmd-stack.c: Ditto.
8096 * mi/mi-cmd-target.c: Ditto.
8097 * mi/mi-cmd-var.c: Ditto.
8098 * mi/mi-cmds.c: Ditto.
8099 * mi/mi-cmds.h: Ditto.
8100 * mi/mi-console.c: Ditto.
8101 * mi/mi-getopt.c: Ditto.
8102 * mi/mi-getopt.h: Ditto.
8103 * mi/mi-interp.c: Ditto.
8104 * mi/mi-main.c: Ditto.
8105 * mi/mi-out.c: Ditto.
8106 * mi/mi-parse.c: Ditto.
8107 * mi/mi-parse.h: Ditto.
8108 * mi/mi-symbol-cmds.c: Ditto.
8110 * mi/mi-getopt.h: Move mi_opt struct up.
8111 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8113 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8115 2012-03-06 Tom Tromey <tromey@redhat.com>
8117 * proc-service.c (ps_pglobal_lookup): Set the current program
8120 2012-03-06 Pedro Alves <palves@redhat.com>
8122 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8124 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8126 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8128 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8131 * common/linux-osdata.c (linux_common_core_of_thread): New function
8133 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8134 call by linux_common_core_of_thread.
8135 (linux_nat_core_of_thread_1): Remove.
8136 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8137 * linux-thread-db.c: Include linux-osdata.h.
8138 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8139 linux_common_core_of_thread.
8141 2012-03-05 Tom Tromey <tromey@redhat.com>
8143 * value.c (value_primitive_field): Don't fetch contents for
8146 2012-03-05 Tom Tromey <tromey@redhat.com>
8148 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8150 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8152 * s390-nat.c: Include "gregset.h".
8154 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8156 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8157 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8158 (libunwind_load): New variable so_error, use it for dlerror. Try to
8159 load also LIBUNWIND_SO_7.
8161 2012-03-05 Pedro Alves <palves@redhat.com>
8163 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8164 is not NULL, and remove resulting dead code.
8166 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8168 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8169 prologue to sh_analyze_prologue.
8170 (sh_analyze_prologue): Make better use of such an upper limit, and
8171 generally be more cautious about accessing memory.
8173 2012-03-05 Tom Tromey <tromey@redhat.com>
8175 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8176 _initialize_ia64_hpux_tdep.
8178 2012-03-05 Pedro Alves <palves@redhat.com>
8182 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8183 the register state is clear, supply explicit zero, instead of
8184 marking the register unavailable.
8186 2012-03-05 Tristan Gingold <gingold@adacore.com>
8188 * NEWS: Mention OpenVMS ia64 new target.
8190 2012-03-05 Tristan Gingold <gingold@adacore.com>
8192 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8193 (ia64_unw_accessors, ia64_unw_rse_accessors)
8194 (ia64_libunwind_descr): Declare.
8195 * ia64-vms-tdep.c: New file.
8196 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8197 (ia64_libunwind_descr): Make them public.
8198 * configure.tgt: Add ia64-*-*vms*.
8199 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8200 (ALLDEPFILES): Add ia64-vms-tdep.c
8202 2012-03-05 Tristan Gingold <gingold@adacore.com>
8204 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8205 * remote.c (PACKET_qXfer_uib): New enum value.
8206 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8207 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8208 (_initialize_remote): Call add_packet_config_cmd for
8211 2012-03-05 Tristan Gingold <gingold@adacore.com>
8213 * osabi.c (gdb_osabi_names): Add OpenVMS.
8214 (generic_elf_osabi_sniffer): Likewise.
8215 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8217 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8219 Removed unused code.
8220 * libunwind-frame.c (libunwind_frame_unwind)
8221 (libunwind_frame_base_address): Remove.
8222 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8224 2012-03-04 Yao Qi <yao@codesourcery.com>
8226 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8227 remove trailing new line.
8228 (agent_run_command, agent_run_command): Add _ markup.
8229 (agent_capability_check): Likewise.
8231 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8233 * breakpoint.c (set_condition_evaluation_mode): Set
8234 CONDITION_EVALUATION_MODE unconditionally.
8236 2012-03-03 Yao Qi <yao@codesourcery.com>
8238 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8239 * common/agent.h: Update declaration.
8240 * inf-child.c (inf_child_use_agent): New.
8241 (inf_child_can_use_agent): New.
8242 (inf_child_target): Initialize fields `to_use_agent'
8243 and `to_can_use_agent'.
8244 * agent.c (agent_new_objfile): New.
8245 (_initialize_agent): Add agent_new_objfile to new_objfile
8248 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8250 (linux_target_install_ops): Initialize field
8251 `to_static_tracepoint_markers_by_strid'.
8252 * remote.c (free_current_marker): Move it to ...
8253 * tracepoint.c (free_current_marker): ... here. New.
8254 (cleanup_target_stop): New.
8255 * tracepoint.h: Declare free_current_marker.
8256 * NEWS: Add one entry about `info static-tracepoint-marker'.
8258 2012-03-03 Yao Qi <yao@codesourcery.com>
8260 * common/agent.c (agent_loaded_p): New.
8261 (agent_look_up_symbols): New global.
8262 * common/agent.h: Declare agent_loaded_p.
8264 2012-03-03 Yao Qi <yao@codesourcery.com>
8266 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8267 (agent_capability_check, agent_capability_invalidate): New.
8268 (symbol_list): New array element.
8269 * common/agent.h (enum agent_capa): New.
8270 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8272 2012-03-03 Yao Qi <yao@codesourcery.com>
8274 * target.h (struct target_ops) <to_use_agent>: New field.
8275 (struct target_ops) <to_can_use_agent>: New field.
8276 (target_use_agent, target_can_use_agent): New macro.
8277 * target.c (update_current_target): Update.
8278 * remote.c: New enum `PACKET_QAgent'.
8279 (remote_protocol_features): Add a new element.
8280 (remote_use_agent, remote_can_use_agent): New.
8281 (init_remote_ops): Initialize field `can_use_agent' with
8282 remote_can_use_agent. Intiailize field `use_agent' with
8284 * common/agent.c (use_agent): New global.
8285 * common/agent.h: Declare it.
8286 * tracepoint.c (info_static_tracepoint_markers_command): Add
8288 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8289 (COMMON_OBS): Add common/agent.o and agent.o
8290 (common-agent.o): New rule.
8293 2012-03-03 Yao Qi <yao@codesourcery.com>
8295 * common/agent.c: New.
8296 * common/agent.h: New.
8297 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8299 * configure, configh.in: Regenerated.
8301 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8303 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8304 unless it exists for this architecture.
8306 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8308 * language.h (struct language_defn): New "method" la_read_var_value.
8309 * findvar.c: #include "language.h".
8310 (default_read_var_value): Renames read_var_value. Rewrite
8311 function description.
8312 (read_var_value): New function.
8313 * value.h (default_read_var_value): Add prototype.
8314 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8316 (ada_language_defn): Add entry for la_read_var_value.
8317 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8318 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8319 language_defn structures to add entry for new la_read_var_value
8322 2012-03-02 Tom Tromey <tromey@redhat.com>
8323 Pedro Alves <palves@redhat.com>
8325 PR breakpoints/13776:
8326 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8328 (delete_longjmp_breakpoint_at_next_stop): New.
8329 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8330 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8331 before deleting the inferior. Add comments.
8332 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8333 breakpoints immediately, but only on next stop. Move that code
8334 next to where we mark other breakpoints for deletion.
8336 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8338 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8340 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8343 2012-03-02 Pedro Alves <palves@redhat.com>
8345 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8347 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8349 Fix -Wmissing-prototypes build.
8350 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8351 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8352 (gdbsim_has_memory): Likewise.
8354 2012-03-02 Yao Qi <yao@codesourcery.com>
8356 Fix -Wmissing-prototypes build.
8357 * charset.c (phony_iconv_open): Make static.
8358 (phony_iconv_close, phony_iconv): Likewise.
8359 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8360 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8362 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8363 * ser-mingw.c (create_select_thread): Make static.
8364 * windows-termcap.c (tgetent): New prototype.
8365 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8367 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8369 Fix -Wmissing-prototypes build.
8370 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8371 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8372 (_initialize_loadable): New prototypes.
8374 2012-03-02 Doug Evans <dje@google.com>
8376 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8377 abbrev table, read_comp_unit will do it.
8379 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8381 Fix -Wmissing-prototypes build.
8382 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8383 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8384 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8385 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8386 (_initialize_arm_symbian_tdep): New prototype.
8387 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8388 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8389 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8391 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8392 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8394 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8395 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8396 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8398 * moxie-tdep.c (moxie_process_record): Likewise.
8399 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8400 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8401 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8402 (_initialize_rl78_tdep): New prototype.
8403 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8404 (_initialize_rx_tdep): New prototype.
8405 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8406 (_initialize_darwin_solib): New prototype.
8407 * solib-spu.c: Include solib-spu.h.
8408 (_initialize_spu_solib): New prototype.
8409 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8410 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8411 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8412 (tic6x_software_single_step): Make it static.
8413 (_initialize_tic6x_tdep): New prototype.
8415 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8417 Fix -Wmissing-prototypes build.
8418 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8419 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8421 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8423 Fix -Wmissing-prototypes build.
8424 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8425 (frv_have_stopped_data_address): Remove.
8427 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8429 Fix -Wmissing-prototypes build.
8430 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8431 * sh-tdep.c: Include sh64-tdep.h.
8432 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8433 * sh64-tdep.c: Include sh64-tdep.h.
8434 * sh64-tdep.h: New file.
8436 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8438 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8440 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8442 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8443 sp_regnum once the gdbarch_init_osabi hook has been called.
8445 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8447 * mips-tdep.c (mips32_bc1_pc): New function.
8448 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8449 BPOSGE32 and BPOSGE64 instructions.
8450 (deal_with_atomic_sequence): Likewise.
8451 (mips32_instruction_has_delay_slot): Likewise.
8453 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8454 Chris Dearman <chris@mips.com>
8455 Maciej W. Rozycki <macro@codesourcery.com>
8456 Joseph Myers <joseph@codesourcery.com>
8458 * features/mips-dsp.xml: New file.
8459 * features/mips64-dsp.xml: New file.
8460 * features/mips-dsp-linux.xml: New file.
8461 * features/mips64-dsp-linux.xml: New file.
8462 * features/Makefile (WHICH): Add mips-dsp-linux and
8464 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8465 * features/mips-dsp-linux.c: New file.
8466 * features/mips64-dsp-linux.c: New file.
8467 * regformats/mips-dsp-linux.dat: New file.
8468 * regformats/mips64-dsp-linux.dat: New file.
8469 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8471 (mips64_linux_register_addr): Likewise.
8472 (mips64_linux_regsets_fetch_registers): Likewise.
8473 (mips64_linux_regsets_store_registers): Likewise.
8474 (mips64_linux_fetch_registers): Update call to
8475 mips64_linux_regsets_fetch_registers.
8476 (mips64_linux_store_registers): Update call to
8477 mips64_linux_regsets_store_registers.
8478 (mips_linux_read_description): Probe for DSP registers.
8479 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8480 and initialize_tdesc_mips64_dsp_linux.
8481 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8482 Remove padding of no longer used embedded register slots.
8483 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8484 (MIPS_RESTART_REGNUM): Redefine enum value.
8485 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8487 (mips_tx39_reg_names): Likewise.
8488 (mips_linux_reg_names): New array of register names for Linux
8490 (mips_register_name): Check for a null pointer in
8491 mips_processor_reg_names and return an empty string.
8492 (mips_register_type): Exclude embedded registers for the IRIX
8494 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8495 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8497 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8498 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8499 (mips_gdbarch_init): Likewise. Initialize internal register
8500 indices for the Linux ABI. Use dynamic numbers to refer to
8501 registers, as applicable, while parsing the target description.
8502 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8504 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8506 * frame.h (read_frame_register_unsigned): Fix typo in function
8509 2012-03-01 Pedro Alves <palves@redhat.com>
8511 * jit-reader.in [!__cplusplus]
8512 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8514 2012-03-01 Pedro Alves <palves@redhat.com>
8516 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8517 * configure: Regenerate.
8519 2012-03-01 Pedro Alves <palves@redhat.com>
8521 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8522 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8523 (ftrace_command, strace_command): Make static.
8524 * d-lang.c (_initialize_d_language): Declare.
8525 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8526 * dwarf2loc.c (_initialize_dwarf2loc):
8527 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8528 * exec.c (exec_get_section_table): Make static.
8529 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8530 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8531 * inferior.c (remove_inferior_command, add_inferior_command)
8532 (clone_inferior_command): Make static.
8533 * linux-nat.c (linux_nat_thread_address_space)
8534 (linux_nat_core_of_thread): Make static.
8535 * linux-tdep.c (_initialize_linux_tdep): Declare.
8536 * objc-lang.c (_initialize_objc_lang): Declare.
8537 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8539 (_initialize_opencl_language): Declare.
8540 * record.c (_initialize_record): Declare.
8541 * remote.c (demand_private_info, remote_get_tib_address)
8542 (remote_supports_cond_tracepoints)
8543 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8545 * skip.c (_initialize_step_skip): Declare.
8546 * symtab.c (skip_prologue_using_lineinfo): Make static.
8547 * tracepoint.c (delete_trace_state_variable)
8548 (trace_variable_command, delete_trace_variable_command)
8549 (get_uploaded_tsv, find_matching_tracepoint_location)
8550 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8552 * value.c (pack_unsigned_long): Make static.
8553 * varobj.c (varobj_ensure_python_env): Make static.
8554 * windows-tdep.c (_initialize_windows_tdep): Declare.
8555 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8557 2012-03-01 Pedro Alves <palves@redhat.com>
8559 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8561 (linux_init_abi): Install it as has_shared_address_space gdbarch
8564 2012-03-01 Pedro Alves <palves@redhat.com>
8566 * observer.c (observer_test_first_notification_function)
8567 (observer_test_second_notification_function)
8568 (observer_test_third_notification_function): Add declarations.
8570 2012-03-01 Pedro Alves <palves@redhat.com>
8572 * common/signals.c (default_target_signal_to_host)
8573 (default_target_signal_from_host): Move ...
8574 * arch-utils.c: ... here.
8575 * arch-utils.h (default_target_signal_to_host)
8576 (default_target_signal_from_host): Declare.
8578 * common/signals.c (target_signal_from_command): Move ...
8579 * infrun.c: ... here.
8580 * inferior.h (target_signal_from_command): Declare.
8581 * target.h (target_signal_from_command)
8582 (default_target_signal_from_host, default_target_signal_to_host):
8583 Delete declarations.
8585 * common/signals.c (_initialize_signals): Delete.
8587 2012-03-01 Pedro Alves <palves@redhat.com>
8589 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8590 both __cplusplus and !__cplusplus.
8592 2012-03-01 Pedro Alves <palves@redhat.com>
8594 * psymtab.c (find_and_open_source): Delete declaration.
8595 * source.c (find_and_open_source): Move comment ...
8596 * source.h (find_and_open_source): ... to this new declaration.
8598 2012-03-01 Pedro Alves <palves@redhat.com>
8600 * inline-frame.c: Include inline-frame.h.
8602 2012-03-01 Pedro Alves <palves@redhat.com>
8604 * tui/tui-data.c (set_gen_win_origin): Delete.
8605 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8606 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8608 2012-03-01 Pedro Alves <palves@redhat.com>
8610 * remote.c (encode_actions): Delete declaration.
8611 * tracepoint.c (encode_actions): Make extern.
8612 * tracepoint.h (encode_actions): Declare.
8614 2012-03-01 Pedro Alves <palves@redhat.com>
8616 * python/py-breakpoint.c: Include python.h.
8617 * python/py-continueevent.c (create_continue_event_object): Make
8619 * python/py-lazy-string.c (stpy_get_type): Make static.
8620 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8622 * python/py-utils.c (unicode_to_target_python_string): Make
8624 * python/py-value.c: Include python.h.
8626 2012-03-01 Pedro Alves <palves@redhat.com>
8628 * inferior.c (delete_threads_of_inferior): Delete.
8630 2012-03-01 Pedro Alves <palves@redhat.com>
8632 Import fallback definitions from glibc.
8634 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8635 ps_prochandle): Forward declare.
8636 (ps_err_e): Use glibc's comments.
8637 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8638 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8639 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8640 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8641 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8642 (struct ps_prochandle): Adjust comment.
8644 2012-03-01 Pedro Alves <palves@redhat.com>
8646 * ada-lang.c (ada_modulus_from_name): Delete.
8647 * ada-lex.l (lexer_init): Make static.
8649 2012-03-01 Pedro Alves <palves@redhat.com>
8653 * frame.c (read_frame_register_unsigned): New.
8654 * frame.h (read_frame_register_unsigned): Declare.
8655 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8657 (print_i387_control_word): New parameter `control_p'. Handle it.
8658 (i387_print_float_info): Handle unavailable float registers.
8660 2012-03-01 Keith Seitz <keiths@redhat.com>
8662 * linespec.c (decode_line_2): Sort the list of methods
8663 alphabetically before presenting the user with a selection
8666 2012-03-01 Doug Evans <dje@google.com>
8668 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8670 (dwarf2_read_abbrevs): Remove corresponding initialization.
8672 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8674 * NEWS: Mention new python command class gdb.COMMAND_USER.
8675 * cli/cli-cmds.c (show_user): Print error when used on a python
8677 (init_cli_cmds): Update documentation strings for "show user" and
8678 "set/show max-user-call-depth" to clarify that it does not apply to
8680 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8682 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8684 * top.c (execute_command): Only execute a user-defined command as a
8685 legacy macro if c->user_commands is set.
8687 2012-03-01 Tom Tromey <tromey@redhat.com>
8689 * valprint.h (struct generic_val_print_decorations): New.
8690 (generic_val_print): Declare.
8691 * valprint.c (generic_val_print): New function.
8692 * p-valprint.c (p_decorations): New global.
8693 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8694 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8695 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8696 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8697 * m2-valprint.c (m2_decorations): New global.
8698 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8699 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8700 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8701 TYPE_CODE_ERROR>: Call generic_val_print.
8702 * f-valprint.c (f_decorations): New global.
8703 (f_val_print): Use print_function_pointer_address.
8704 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8705 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8706 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8708 * c-valprint.c (c_decorations): New global.
8709 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8710 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8711 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8712 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8713 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8714 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8717 2012-03-01 Tom Tromey <tromey@redhat.com>
8719 * valprint.c (val_print): Update.
8720 * p-valprint (pascal_val_print): Return void.
8721 * p-lang.h (pascal_val_print): Return void.
8722 * m2-valprint.c (m2_val_print): Return void.
8723 * m2-lang.h (m2_val_print): Return void.
8724 * language.h (struct language_defn) <la_val_print>: Return void.
8725 * language.c (unk_lang_val_print): Return void.
8726 * jv-valprint.c (java_val_print): Return void.
8727 * jv-lang.h (java_val_print): Return void.
8728 * f-valprint.c (f_val_print): Return void.
8729 * f-lang.h (f_val_print): Return void.
8730 * d-valprint.c (d_val_print): Return void.
8731 (dynamic_array_type): Update.
8732 * d-lang.h (d_val_print): Return void.
8733 * c-valprint.c (c_val_print): Return void.
8734 * c-lang.h (c_val_print): Return void.
8735 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8737 * ada-lang.h (ada_val_print): Return void.
8739 2012-03-01 Tom Tromey <tromey@redhat.com>
8741 * value.h (val_print): Return void.
8742 * valprint.c (val_print): Return void.
8744 2012-03-01 Tom Tromey <tromey@redhat.com>
8746 * value.h (common_val_print): Return void.
8747 * valprint.c (common_val_print): Return void.
8749 2012-03-01 Tom Tromey <tromey@redhat.com>
8751 * value.h (value_print): Return void.
8752 * valprint.c (value_print): Return void.
8753 * p-valprint.c (pascal_value_print): Return void.
8754 * p-lang.h (pascal_value_print): Return void.
8755 * language.h (struct language_defn) <la_value_print>: Return
8757 * language.c (unk_lang_value_print): Return void.
8758 * jv-valprint.c (java_value_print): Return void.
8759 * jv-lang.h (java_value_print): Return void.
8760 * f-valprint.c (c_value_print): Don't declare.
8762 * c-valprint.c (c_value_print): Return void.
8763 * c-lang.h (c_value_print): Return void.
8764 * ada-valprint.c (ada_value_print): Return void.
8765 * ada-lang.h (ada_value_print): Return void.
8767 2012-03-01 Tom Tromey <tromey@redhat.com>
8769 * value.c (value_primitive_field): Handle virtual base classes.
8771 2012-03-01 Tom Tromey <tromey@redhat.com>
8773 * gdbtypes.h (struct vbase): Remove.
8775 2012-03-01 Tom Tromey <tromey@redhat.com>
8777 * c-valprint.c (print_function_pointer_address): Move...
8778 * valprint.c: ... here. Make non-static.
8779 * m2-valprint.c (print_function_pointer_address): Remove.
8780 * valprint.h (print_function_pointer_address): Declare.
8782 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8784 * NEWS: Document the fact that one can provide a condition when
8785 creating an Ada exception catchpoint.
8787 2012-03-01 Tom Tromey <tromey@redhat.com>
8789 * valprint.c (val_print_type_code_flags): Fix placement of
8792 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8794 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8795 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8796 environment variable before calling update-copyright.
8798 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8800 * gnulib/extra/update-copyright: Update to the latest from
8801 gnulib's git repository.
8802 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8803 variable to 2 instead of 1.
8805 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8807 * varobj.c (c_value_of_variable): Remove dead code.
8809 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8811 * ada-lex.p (processId): Do not modify already encoded IDs.
8812 Update function documentation.
8814 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8816 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8817 "name" with "struct symbol *name_sym".
8818 * ada-exp.y (write_var_or_type): Update call to
8819 ada_find_renaming_symbol.
8820 "name" with "struct symbol *name_sym". Adjust Implementation
8821 accordingly. Adjust the function documentation.
8823 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8825 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8826 * ada-lang.c (ada_find_any_type): Add advance declaration.
8827 Make static. Replace ada_find_any_symbol by
8828 ada_find_any_type_symbol.
8829 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8830 Improve function description. Make static.
8831 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8832 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8834 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8836 * ada-lang.c (struct tag_args): Delete.
8837 (ada_get_tsd_type): Function body moved up in source file.
8838 (ada_tag_name_1, ada_tag_name_2): Delete.
8839 (ada_get_tsd_from_tag): New function.
8840 (ada_tag_name_from_tsd): New function.
8841 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8842 to determine the tag name.
8844 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8846 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8848 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8851 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8853 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8855 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8857 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8860 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8862 * ada-lang.c (constrained_packed_array_type): If there is a
8863 parallel XA type, use it to determine the array index type.
8865 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8867 * ada-valprint.c (ada_val_print_1): If our value is a reference
8868 to an array descriptor, dereference it before converting it
8871 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8873 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8874 creating fixed value.
8875 (ada_value_ind, ada_coerce_ref, assign_component)
8876 (ada_evaluate_subexp): Remove call to unwrap_value before
8877 call to ada_to_fixed_value.
8879 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8881 * ada-lang.c (to_fixed_array_type): Set result's type name.
8883 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8885 * ada-lang.c (catch_ada_exception_command_split): Add new
8886 argument cond_string. Add support for condition at end of
8887 "catch exception" commands.
8888 (ada_decode_exception_location): Add new argument cond_string.
8889 Update call to catch_ada_exception_command_split.
8890 (create_ada_exception_catchpoint): Add new argument cond_string.
8891 Set the breakpoint condition if needed.
8892 (catch_ada_exception_command): Update call to
8893 ada_decode_exception_location.
8894 (ada_decode_assert_location): Add function documentation.
8895 Add support for condition at end of "catch assert" command.
8896 (catch_assert_command): Update calls to ada_decode_assert_location
8897 and create_ada_exception_catchpoint.
8899 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8901 Fix disp-step-syscall.exp: fork: single step over fork.
8902 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8903 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8904 comment, change parameters gdbarch and ptid to regcache. Remove
8905 parameter regcache, initialize gdbarch from regcache here.
8906 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8908 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8910 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8911 'syscall'. Make the 'int' check more strict.
8913 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8915 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8916 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8917 (i386_linux_intx80_sysenter_syscall_record): ... here.
8918 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8919 Use the renamed function name.
8921 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8923 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8924 * breakpoint.c (until_break_command): Likewise.
8925 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8926 * infcall.c (call_function_by_hand): Likewise.
8927 * infcmd.c (finish_forward): Likewise.
8928 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8930 2012-02-28 Tristan Gingold <gingold@adacore.com>
8932 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8933 avoid variable assignments inside condition.
8935 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8937 Fix static analysis issue found by cppcheck.
8938 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8939 uninitialized BUF for size 2.
8941 2012-02-27 Chris Dearman <chris@mips.com>
8942 Nathan Froyd <froydnj@codesourcery.com>
8943 Maciej W. Rozycki <macro@codesourcery.com>
8945 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8946 (mips16_instruction_has_delay_slot): Likewise.
8947 (mips_segment_boundary): Likewise.
8948 (mips_adjust_breakpoint_address): Likewise.
8949 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8951 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8952 Maciej W. Rozycki <macro@codesourcery.com>
8954 * infrun.c (handle_inferior_event): Don't proceed through
8955 shared library trampolines if stepping at the machine
8958 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8960 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8963 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8965 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8966 (sh_stub_unwind_sniffer): New functions.
8967 (sh_stub_unwind): New variable.
8968 (sh_gdbarch_init): Wire everything.
8970 2012-02-27 Pedro Alves <palves@redhat.com>
8972 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8973 (linux_nat_post_attach_wait): Adjust to use
8974 linux_proc_pid_is_stopped.
8975 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8976 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8977 based on pid_is_stopped from both linux-nat.c and
8978 gdbserver/linux-low.c, and renamed.
8980 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8982 * remote.c (remote_watchpoint_addr_within_range): New function.
8983 (init_remote_ops): Use it.
8985 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8987 * target.h (target_watchpoint_addr_within_range): Document macro.
8989 2012-02-24 Pedro Alves <palves@redhat.com>
8991 * stack.c (set_last_displayed_sal): Issue internal_error instead
8992 of warning, and issue it after clearing the last displayed sal.
8994 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8995 Pedro Alves <palves@redhat.com>
8997 * breakpoint.c (until_break_command): Install breakpoints after
8998 all frame manipulations.
9000 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9002 * remote.c (remote_supports_cond_breakpoints): New forward
9004 (remote_add_target_side_condition): New function.
9005 (remote_insert_breakpoint): Add target-side breakpoint
9006 conditional if supported.
9007 (remote_insert_hw_breakpoint): Likewise.
9008 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9011 * target.c (update_current_target): Inherit
9012 to_supports_evaluation_of_breakpoint_conditions.
9013 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9015 * target.h (struct target_ops)
9016 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9017 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9019 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9020 (condition_evaluation_both, condition_evaluation_auto,
9021 condition_evaluation_host, condition_evaluation_target,
9022 condition_evaluation_enums, condition_evaluation_mode_1,
9023 condition_evaluation_mode): New static globals.
9024 (translate_condition_evaluation_mode): New function.
9025 (breakpoint_condition_evaluation_mode): New function.
9026 (gdb_evaluates_breakpoint_condition_p): New function.
9027 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9028 (mark_breakpoint_modified): New function.
9029 (mark_breakpoint_location_modified): New function.
9030 (set_condition_evaluation_mode): New function.
9031 (show_condition_evaluation_mode): New function.
9032 (bp_location_compare_addrs): New function.
9033 (get_first_location_gte_addr): New helper function.
9034 (set_breakpoint_condition): Free condition bytecode if locations
9035 has become unconditional. Call mark_breakpoint_modified (...).
9036 (condition_command): Call update_global_location_list (1) for
9038 (breakpoint_xfer_memory): Use is_breakpoint (...).
9039 (is_breakpoint): New function.
9040 (parse_cond_to_aexpr): New function.
9041 (build_target_condition_list): New function.
9042 (insert_bp_location): Handle target-side conditional
9043 breakpoints and call build_target_condition_list (...).
9044 (update_inserted_breakpoint_locations): New function.
9045 (insert_breakpoint_locations): Handle target-side conditional
9047 (bpstat_check_breakpoint_conditions): Add comment.
9048 (bp_condition_evaluator): New function.
9049 (bp_location_condition_evaluator): New function.
9050 (print_breakpoint_location): Print information on where the condition
9052 (print_one_breakpoint_location): Likewise.
9053 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9054 breakpoint location.
9055 (force_breakpoint_reinsertion): New functions.
9056 (update_global_location_list): Handle target-side breakpoint
9058 Reinsert locations that are already inserted if conditions have
9060 (bp_location_dtor): Free agent expression bytecode.
9061 (disable_breakpoint): Call mark_breakpoint_modified (...).
9062 Call update_global_location_list (...) with parameter 1 for breakpoints.
9063 (disable_command): Call mark_breakpoint_location_modified (...).
9064 Call update_global_location_list (...) with parameter 1 for breakpoints.
9065 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9066 (enable_command): mark_breakpoint_location_modified (...).
9067 (_initialize_breakpoint): Update documentation and add
9068 condition-evaluation breakpoint subcommand.
9070 * breakpoint.h: Include ax.h.
9071 (condition_list): New data structure.
9072 (condition_status): New enum.
9073 (bp_target_info) <cond_list>: New field.
9074 (bp_location) <condition_changed, cond_bytecode>: New fields.
9075 (is_breakpoint): New prototype.
9077 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9079 * remote.c (remote_state) <cond_breakpoints>: New field.
9080 (PACKET_ConditionalBreakpoints): New enum.
9081 (remote_cond_breakpoint_feature): New function.
9082 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9083 (remote_supports_cond_breakpoints): New function.
9084 (_initialize_remote): Add new packet configuration for
9085 target-side conditional breakpoints.
9087 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9089 * NEWS: Mention target-side conditional breakpoint support,
9090 new condition-evaluation breakpoint subcommand and remote
9093 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9095 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9098 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9100 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9101 (after_prologue): Remove.
9103 2012-02-23 Tom Tromey <tromey@redhat.com>
9105 * jv-valprint.c (java_val_print): Remove dead code.
9107 2012-02-23 Tristan Gingold <gingold@adacore.com>
9109 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9110 known_tasks_element and known_tasks_length fields.
9111 (read_known_tasks_array): Change argument type. Use pointer type
9112 and number of elements from DATA. Adjust.
9113 (read_known_tasks_list): Likewise.
9114 (get_known_tasks_addr): Remove.
9115 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9116 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9117 type and array length. Merge former get_known_tasks_addr code.
9119 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9122 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9123 it after set_momentary_breakpoint.
9125 2012-02-22 Sterling Augustine <saugustine@google.com>
9128 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9130 2012-02-22 Gary Benson <gbenson@redhat.com>
9132 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9133 (find_slot_in_mapped_hash): Likewise.
9135 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9139 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9140 * configure: Regenerate.
9142 2012-02-21 Tristan Gingold <gingold@adacore.com>
9143 Pedro Alves <palves@redhat.com>
9145 * ia64-tdep.c: Do not include libunwind-ia64.h.
9146 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9147 Include libunwind-ia64.h instead of libunwind.h.
9148 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9149 for libunwind.h existence.
9150 * configure, config.in: Regenerate.
9152 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9154 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9155 instead of value_rtti_target_type.
9156 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9157 instead of value_rtti_target_type.
9158 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9159 value_rtti_target_type.
9160 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9161 (value_rtti_target_type): Rename to ...
9162 (value_rtti_indirect_type): ... here and make it indirect. Update
9164 * value.c (readjust_indirect_value_type): New function.
9165 (coerce_ref): Support for enclosing type setting for references
9166 with readjust_indirect_value_type.
9167 * value.h (readjust_value_type): New declaration.
9168 (value_rtti_target_type): Rename to ...
9169 (value_rtti_indirect_type): ... here.
9171 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9173 * MAINTAINERS (Write After Approval): Add myself to the list.
9175 2012-02-20 Doug Evans <dje@google.com>
9177 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9178 Rename objfile_p_char parameter to objfilep.
9179 (build_objfile_section_table): Result is now void. All callers
9181 * objfiles.h (struct objfile): Tweak comments, whitespace.
9182 (build_objfile_section_table): Update.
9184 * elfread.c (elf_symfile_segments): Fix warning text.
9186 2012-02-20 Tom Tromey <tromey@redhat.com>
9189 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9190 particular set of file names once.
9191 (dw2_map_symbol_filenames): Likewise.
9193 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9196 * main.c (write_files): Remove the declaration.
9197 (external_editor_command): Move the declaration ...
9198 [GDBTK] (external_editor_command): ... here. Fix the comment.
9200 2012-02-20 Tom Tromey <tromey@redhat.com>
9202 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9205 2012-02-20 Tristan Gingold <gingold@adacore.com>
9207 * darwin-nat.h (enum darwin_msg_state): Add comments.
9209 2012-02-20 Tristan Gingold <gingold@adacore.com>
9211 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9214 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9216 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9217 between function description and implementation.
9219 2012-02-17 Tom Tromey <tromey@redhat.com>
9222 * python/py-event.c (event_object_getset): New global.
9223 (event_object_type): Reference it.
9224 * python/py-type.c (field_object_getset): New global.
9225 (field_object_type): Reference it.
9226 * python/python-internal.h (gdb_py_generic_dict): Declare.
9227 * python/py-utils.c (gdb_py_generic_dict): New function.
9229 2012-02-17 Tristan Gingold <gingold@adacore.com>
9231 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9233 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9235 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9236 TYPE_CALLING_CONVENTION annotation.
9238 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9240 * MAINTAINERS: Add rx to target ISA section.
9241 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9242 (ALLDEPFILES): Add rx-tdep.c.
9244 2012-02-16 Tom Tromey <tromey@redhat.com>
9246 * symfile.c (symbol_file_add_main_1): Use inferior's
9248 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9249 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9251 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9253 (follow_exec): Use inferior's symfile_flags.
9254 * inferior.h (struct inferior) <symfile_flags>: New field.
9256 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9259 * remote-sim.c (gdbsim_create_inferior): Call error() when
9260 sim_create_inferior() fails.
9262 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9264 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9266 2012-02-16 Tom Tromey <tromey@redhat.com>
9269 * thread.c (struct current_thread_cleanup) <was_removable>: New
9271 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9272 (make_cleanup_restore_current_thread): Initialize new field.
9274 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9276 * MAINTAINERS: Add rl78 to target ISA section.
9277 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9278 (ALLDEPFILES): Add rl78-tdep.c.
9279 * NEWS: Mention rl78 as a new target.
9281 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9283 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9285 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9287 2012-02-15 Tom Tromey <tromey@redhat.com>
9290 * infcmd.c (registers_info): Print just the current register's
9293 2012-02-15 Tom Tromey <tromey@redhat.com>
9295 * python/py-symbol.c (sympy_value): Use _().
9297 2012-02-15 Pedro Alves <palves@redhat.com>
9299 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9300 output to be like native targets'.
9301 (remote_pid_to_str): Special case the null ptid.
9303 2012-02-14 Stan Shebs <stan@codesourcery.com>
9305 * NEWS: Mention enable count command.
9306 * breakpoint.h (struct breakpoint): New field enable_count.
9307 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9308 (enable_breakpoint): Add arg to call.
9309 (struct disp_data): New struct.
9310 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9311 (do_map_enable_once_breakpoint): Create a struct and pass it.
9312 (do_map_enable_delete_breakpoint): Ditto.
9313 (do_map_enable_count_breakpoint): New function.
9314 (enable_count_command): New function.
9315 (bpstat_stop_status): Decrement enable_count.
9316 (print_one_breakpoint_location): Report enable count.
9317 (_initialize_breakpoint): Add enable count command.
9319 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9321 * rl78-tdep.c (reggroups.h): Include.
9322 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9323 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9324 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9325 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9326 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9327 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9328 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9329 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9330 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9331 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9332 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9333 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9334 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9335 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9336 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9337 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9338 beginning of register list.
9339 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9340 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9341 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9342 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9343 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9344 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9345 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9346 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9347 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9348 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9349 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9350 the pseudo registers. Rearrange other pseudo registers too so
9351 that the bank registers appear at the end.
9352 (rl78_register_type): Account for the fact that the byte sized
9353 bank registers are now pseudo-registers.
9354 (rl78_register_name): Rearrange the register name array. Make
9355 initial set of raw banked registers inaccessible.
9356 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9357 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9358 case for copying bytes back and forth between raw and pseudo
9359 versions of the banked registers. Update other cases to reflect
9361 (rl78_return_value): Update to account for changed names of
9363 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9364 rl78_register_sim_regno().
9366 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9368 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9369 the name parameter being passed to find_pc_partial_function().
9371 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9373 * MAINTAINERS: Step down from being ia64 target maintainer.
9375 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9377 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9378 compilation warning.
9380 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9382 Fix crash on loaded shlibs without loaded exec_bfd.
9383 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9384 (set_section_command): Replace exec_bfd by p->bfd.
9386 2012-02-10 Tom Tromey <tromey@redhat.com>
9388 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9389 when we have a C++ qualified name.
9391 2012-02-10 Pedro Alves <palves@redhat.com>
9393 * inferior.c (inferior_pid_to_str): New.
9394 (print_inferior, inferior_command): Use it.
9396 2012-02-10 Pedro Alves <palves@redhat.com>
9398 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9400 * configure: Regenerate.
9402 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9404 * linespec.c (decode_line_internal): Fix comment correctness.
9406 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9409 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9410 * amd64bsd-nat.c: Add support for debug registers (adapted from
9412 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9413 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9414 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9415 (amd64bsd_dr_get_control): New functions.
9416 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9417 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9418 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9419 watchpoints initialization.
9420 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9422 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9424 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9426 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9428 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9430 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9432 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9434 * language.h (symbol_name_cmp_ftype): Renames
9435 symbol_name_match_p_ftype.
9436 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9437 la_get_symbol_name_match_p.
9438 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9439 ada_get_symbol_name_match_p. Update comment.
9440 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9441 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9442 Renames symbol_name_match_p. Update field type.
9443 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9444 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9445 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9446 "la_get_symbol_name_cmp" in comments.
9447 * language.c: Likewise.
9449 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9451 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9453 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9454 (amd64_sol2_gregset32_reg_offs): Likewise.
9456 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9458 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9459 of the returned BFD is allocated by GDB.
9461 2012-02-07 Tom Tromey <tromey@redhat.com>
9464 * python/python-internal.h (frame_object_type): Declare.
9465 * python/py-symbol.c (sympy_needs_frame): New function.
9466 (sympy_value): New function.
9467 (symbol_object_getset): Add "needs_frame".
9468 (symbol_object_methods): Add "value".
9469 * python/py-frame.c (frame_object_type): No longer static.
9471 2012-02-07 Tom Tromey <tromey@redhat.com>
9474 * python/py-symbol.c (sympy_line): New function.
9475 (symbol_object_getset): Add "line".
9477 2012-02-07 Tom Tromey <tromey@redhat.com>
9479 * charset.c (find_charset_names): Check 'in' against NULL.
9481 2012-02-06 Doug Evans <dje@google.com>
9483 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9484 and fields.name members from char * to const char *. All uses updated.
9485 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9486 from char * to const char *. All uses updated.
9487 (type_name_no_tag): Update.
9488 (lookup_unsigned_typename, lookup_signed_typename): Update.
9489 * gdbtypes.c (type_name_no_tag): Change result type
9490 from char * to const char *. All callers updated.
9491 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9492 name parameter from char * to const char *.
9493 * symtab.h (struct cplus_specific): Change type of demangled_name
9494 member from char * to const char *. All uses updated.
9495 (struct general_symbol_info): Change type of name and
9496 mangled_lang.demangled_name members from char * to const char *.
9498 (symbol_get_demangled_name, symbol_natural_name): Update.
9499 (symbol_demangled_name, symbol_search_name): Update.
9500 * symtab.c (symbol_get_demangled_name): Change result type
9501 from char * to const char *. All callers updated.
9502 (symbol_natural_name, symbol_demangled_name): Ditto.
9503 (symbol_search_name): Ditto.
9504 (completion_list_add_name): Change type of symname,sym_text,
9505 text,word parameters from char * to const char *.
9506 (completion_list_objc_symbol): Change type of sym_text,
9507 text,word parameters from char * to const char *.
9508 * ada-lang.c (find_struct_field): Change type of name parameter
9509 from char * to const char *.
9510 (encoded_ordered_before): Similarly for N0,N1 parameters.
9511 (old_renaming_is_invisible): Similarly for function_name parameter.
9512 (ada_type_name): Change result type from char * to const char *.
9513 All callers updated.
9514 * ada-lang.h (ada_type_name): Update.
9515 * buildsym.c (hashname): Change type of name parameter
9516 from char * to const char *.
9517 * buildsym.h (hashname): Update.
9518 * dbxread.c (end_psymtab): Change type of include_list parameter
9519 from char ** to const char **.
9520 * dwarf2read.c (determine_prefix): Change result type
9521 from char * to const char *. All callers updated.
9522 * f-lang.c (find_common_for_function): Change type of name, funcname
9523 parameters from char * to const char *.
9524 * f-lang.c (find_common_for_function): Update.
9525 * f-valprint.c (list_all_visible_commons): Change type of funcname
9526 parameters from char * to const char *.
9527 * gdbarch.sh (static_transform_name): Change type of name parameter
9528 and result from char * to const char *.
9529 * gdbarch.c: Regenerate.
9530 * gdbarch.h: Regenerate.
9531 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9532 of name parameter from char * to const char *.
9533 * jv-lang.c (java_primitive_type_from_name): Ditto.
9534 (java_demangled_signature_length): Similarly for signature parameter.
9535 (java_demangled_signature_copy): Ditto.
9536 (java_demangle_type_signature): Ditto.
9537 * jv-lang.h (java_primitive_type_from_name): Update.
9538 (java_demangle_type_signature): Update.
9539 * objc-lang.c (specialcmp): Change type of a,b parameters
9540 from char * to const char *.
9541 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9542 from char * to const char *. All callers updated.
9543 * p-lang.h (is_pascal_string_type): Update.
9544 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9545 of name parameter from char * to const char *.
9546 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9547 * utils.c (fprintf_symbol_filtered): Ditto.
9548 * defs.h (fprintf_symbol_filtered): Update.
9549 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9550 * stabsread.h (end_psymtab): Update.
9551 * stack.c (find_frame_funname): Change type of funname parameter
9552 from char ** to const char **.
9553 * stack.h (find_frame_funname): Update.
9554 * typeprint.c (type_print): Change type of varstring parameter
9555 from char * to const char *.
9556 * value.h (type_print): Update.
9557 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9558 from char * to const char *. All callers updated.
9559 (xcoff_end_psymtab): Change type of include_list parameter
9560 from char ** to const char **. All callers updated.
9561 (swap_sym): Similarly for name parameter. All callers updated.
9562 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9564 (process_coff_symbol): Use xstrdup.
9565 * stabsread.c (stabs_method_name_from_physname): Renamed from
9566 update_method_name_from_physname. Change result type from void
9567 to char *. All callers updated.
9568 (read_member_functions): In has_destructor case, store name in objfile
9569 obstack instead of malloc space. In !has_stub case, fix mem leak.
9571 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9573 * configure: Rebuild.
9574 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9577 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9579 * configure.tgt (rl78-*-elf): New target.
9580 * rl78-tdep.c: New file.
9582 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9584 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9585 and continue the loop. Add QUIT statement.
9587 2012-02-03 Tom Tromey <tromey@redhat.com>
9590 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9591 bfd_lookup_symbol_from_symtab.
9592 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9593 gdb_bfd_lookup_symbol_from_symtab.
9595 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9597 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9598 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9599 symbol. Add assertion that sym2 is never NULL.
9601 2012-02-02 Doug Evans <dje@google.com>
9603 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9604 "name" parameter to const char ** from char **. All callers updated.
9605 (find_pc_partial_function): Ditto.
9606 (cache_pc_function_name): Change type to const char * from char *.
9607 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9608 (find_pc_partial_function): Update.
9609 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9610 type of "name" parameter to const char * from char *.
9612 * arch-utils.c (generic_in_solib_return_trampoline): Change
9613 type of "name" parameter to const char * from char *.
9614 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9615 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9616 type of "name" parameter to const char * from char *.
9617 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9618 * gdbarch.c: Regenerate.
9619 * gdbarch.h: Regenerate.
9620 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9621 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9622 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9623 type of "name" parameter to const char * from char *.
9624 * skip.c (skip_function_pc): Ditto.
9625 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9626 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9627 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9628 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9629 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9630 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9631 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9632 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9633 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9635 2012-02-02 Pedro Alves <palves@redhat.com>
9637 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9638 the current inferior has no execution. Make sure the current
9639 remote process matches gdb's current inferior.
9641 2012-02-02 Tom Tromey <tromey@redhat.com>
9644 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9647 2012-02-02 Tom Tromey <tromey@redhat.com>
9650 * symtab.c (lookup_language_this): Set block_found.
9652 2012-02-01 Tom Tromey <tromey@redhat.com>
9655 * jit.c (struct jit_inferior_data): Rewrite.
9656 (struct jit_objfile_data): New.
9657 (get_jit_objfile_data): New function.
9658 (add_objfile_entry): Update.
9659 (jit_read_descriptor): Return int. Replace descriptor_addr
9660 argument with inf_data. Update. Don't call error.
9661 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9663 (jit_inferior_init): Don't look up descriptor. Don't call error.
9664 (jit_reset_inferior_data_and_breakpoints)
9665 (jit_inferior_created_observer): Remove.
9666 (jit_inferior_exit_hook): Update.
9667 (jit_executable_changed_observer): Remove.
9668 (jit_event_handler): Update.
9669 (free_objfile_data): Reset inferior data if needed.
9670 (_initialize_jit): Update.
9672 2012-02-01 Tom Tromey <tromey@redhat.com>
9674 * jit.c (bfd_open_from_target_memory): Move higher in file.
9676 2012-02-01 Tristan Gingold <gingold@adacore.com>
9678 * libunwind-frame.c (libunwind_load): Display message if dlopen
9681 2012-02-01 Gary Benson <gbenson@redhat.com>
9683 * symtab.h (symbol_found_callback_ftype): New typedef.
9684 (iterate_over_symbols): Use the above.
9685 * symtab.c (iterate_over_symbols): Likewise.
9686 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9687 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9688 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9689 (iterate_name_matcher): Document return values.
9690 (collect_one_symbol): Likewise.
9691 (collect_function_symbols): Likewise.
9692 (collect_symbols): Likewise.
9694 2012-02-01 Tom Tromey <tromey@redhat.com>
9696 * ada-lang.c (resolve_subexp): Update.
9697 (ada_lookup_symbol_list): Add 'full_search' argument.
9698 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9699 ada_lookup_symbol_list.
9700 (ada_lookup_encoded_symbol): Update.
9701 (get_var_value): Update.
9702 * ada-exp.y (block_lookup): Update.
9703 (write_var_or_type): Update.
9704 (write_name_assoc): Update.
9705 * ada-lang.h (ada_lookup_symbol_list): Update.
9707 2012-01-31 Tom Tromey <tromey@redhat.com>
9709 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9712 2012-01-31 Doug Evans <dje@google.com>
9714 * symtab.h: Remove outdated comment.
9715 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9717 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9719 Fix build error in Darwin port.
9720 * i386-darwin-nat.c: Include i386-nat.h.
9722 2012-01-30 Tom Tromey <tromey@redhat.com>
9724 PR breakpoints/13568:
9725 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9726 argument. Check for recursive includes.
9727 (dwarf_decode_macros): Create an include hash.
9729 2012-01-30 Michael Eager <eager@eagercon.com>
9731 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9732 * ppc-linux-tdep.c: Include glibc-tdep.h.
9733 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9734 (powerpc_linux_in_plt_stub): New function.
9735 (powerpc_linux_in_dynsym_resolve_code): New function.
9736 (ppc_skip_trampoline_code): New function.
9737 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9738 Use glibc_skip_solib_resolver.
9740 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9742 Code cleanup: Make 1440 bytes of data segment read-only.
9743 * arch-utils.c (endian_enum): Make it const char *const [].
9744 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9746 * breakpoint.c (always_inserted_enums): Likewise.
9747 * cli/cli-cmds.c (script_ext_enums): Likewise.
9748 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9749 enumlist parameter const char *const *.
9750 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9751 const char *const *.
9752 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9753 parameter const char *const *.
9754 * cris-tdep.c (cris_modes): Make it const char *const [].
9755 * filesystem.c (target_file_system_kinds): Likewise.
9756 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9757 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9758 (can_use_displaced_stepping_enum, scheduler_enums)
9759 (exec_direction_names): Likewise.
9760 * language.c (_initialize_language): Make the type_or_range_names and
9761 case_sensitive_names variables const char *const [].
9762 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9763 * python/python.c (python_excp_enums): Likewise.
9764 * remote.c (interrupt_sequence_modes): Likewise.
9765 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9766 * serial.c (logbase_enums): Likewise.
9767 * sh-tdep.c (sh_cc_enum): Likewise.
9768 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9770 * symtab.c (multiple_symbols_modes): Likewise.
9771 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9773 * utils.c (internal_problem_modes): Likewise.
9775 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9777 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9778 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9781 2012-01-27 Doug Evans <dje@google.com>
9783 * configure.ac (with_python): Fix absolute path handling for win32.
9784 * configure: Regenerate.
9786 2012-01-26 Doug Evans <dje@google.com>
9788 * symtab.c: Whitespace cleanup, no code changes.
9790 * symtab.c (lookup_symbol_in_language): Improve comment.
9791 (lookup_symbol_aux): Fix comment.
9793 * psymtab.c (add_psymbol_to_list): Result is now "void".
9794 * psympriv.h (add_psymbol_to_list): Update.
9796 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9798 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9800 Do not open script filenames twice.
9801 * cli/cli-cmds.c (source_script_from_stream): Pass to
9802 source_python_script also STREAM.
9803 * python/py-auto-load.c (source_section_scripts): Pass to
9804 source_python_script_for_objfile also STREAM.
9805 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9807 * python/python-internal.h (source_python_script_for_objfile): New
9808 parameter file, rename parameter file to filename.
9809 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9810 instead if !_WIN32. Update the function comment.
9811 (source_python_script, source_python_script_for_objfile)
9812 (source_python_script): New parameter file, rename parameter file to
9813 filename. Pass FILENAME to python_run_simple_file.
9814 * python/python.h (source_python_script): New parameter file, rename
9815 parameter file to filename.
9817 2012-01-26 Pedro Alves <palves@redhat.com>
9819 * corelow.c (core_has_fake_pid): Delete.
9820 (core_close): Delete references to `core_has_fake_pid'.
9821 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9822 (core_open): Delete references to `core_has_fake_pid'.
9823 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9826 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9828 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9829 Remove language parameter from name_matcher. Adjust the comment.
9830 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9831 Remove language parameter.
9832 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9833 * linespec.c (iterate_name_matcher): Likewise.
9834 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9835 name_matcher. Adjust call accordingly.
9836 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9837 (maintenance_check_symtabs): Adjust type of parameter "fun".
9838 * psymtab.h (maintenance_check_symtabs): Likewise.
9840 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9842 * language.h (symbol_name_match_p_ftype): New typedef.
9843 (struct language_defn): Replace field la_symbol_name_compare
9844 by la_get_symbol_name_match_p.
9845 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9846 (ada_language_defn): Use it.
9847 * linespec.c (struct symbol_matcher_data): New type.
9848 (iterate_name_matcher): Rewrite.
9849 (iterate_over_all_matching_symtabs): Pass a pointer to
9850 a symbol_matcher_data struct to expand_symtabs_matching
9851 instead of just the lookup name.
9852 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9853 opencl-lang.c, p-lang.c, language.c: Delete field
9854 la_symbol_name_compare, and replace by NULL for new field
9855 la_get_symbol_name_match_p.
9856 * symfile.h (struct quick_symbol_functions): Update comment.
9858 2012-01-25 Tom Tromey <tromey@redhat.com>
9860 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9863 2012-01-24 Tom Tromey <tromey@redhat.com>
9866 * solib.c (update_solib_list): Update the program space's
9867 added_solibs and deleted_solibs fields.
9868 * progspace.h (struct program_space) <added_solibs,
9869 deleted_solibs>: New fields.
9870 (clear_program_space_solib_cache): Declare.
9871 * progspace.c (release_program_space): Call
9872 clear_program_space_solib_cache.
9873 (clear_program_space_solib_cache): New function.
9874 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9875 bpstat_stop_status. Use handle_solib_event.
9876 * breakpoint.c: Include gdb_regex.h.
9877 (print_solib_event): New function.
9878 (bpstat_print): Use print_solib_event.
9879 (bpstat_stop_status): Add special case for bp_shlib_event.
9880 (handle_solib_event): New function.
9881 (bpstat_what): Use handle_solib_event.
9882 (struct solib_catchpoint): New.
9883 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9884 (breakpoint_hit_catch_solib, check_status_catch_solib)
9885 (print_it_catch_solib, print_one_catch_solib)
9886 (print_mention_catch_solib, print_recreate_catch_solib): New
9888 (catch_solib_breakpoint_ops): New global.
9889 (catch_load_or_unload, catch_load_command_1)
9890 (catch_unload_command_1): New functions.
9891 (internal_bkpt_check_status): Add special case for
9893 (internal_bkpt_print_it): Use print_solib_event.
9894 (initialize_breakpoint_ops): Initialize
9895 catch_solib_breakpoint_ops.
9896 (_initialize_breakpoint): Register "catch load" and "catch
9898 * breakpoint.h (handle_solib_event): Declare.
9899 * NEWS: Add entry for "catch load" and "catch unload".
9901 2012-01-24 Tom Tromey <tromey@redhat.com>
9903 * ada-lang.c: Include gdb_vecs.h.
9904 * charset.c: Include gdb_vecs.h.
9905 * tracepoint.h: Include gdb_vecs.h.
9906 * gdb_vecs.h: New file.
9908 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9910 * breakpoint.c (breakpoint_hit_catch_fork)
9911 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9912 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9913 * infrun.c (inferior_has_forked, inferior_has_vforked)
9914 (inferior_has_execd, inferior_has_called_syscall): Delete.
9915 (handle_syscall_event): Get syscall_number from the execution
9916 control state's wait status.
9917 (wait_for_inferior): Don't clear syscall_number.
9919 2012-01-24 Pedro Alves <palves@redhat.com>
9921 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9922 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9923 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9924 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9926 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9927 false for events other than TARGET_SIGNAL_TRAP.
9928 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9930 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9931 events other than TARGET_SIGNAL_TRAP.
9932 (tracepoint_breakpoint_hit): Add `ws' parameter.
9933 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9935 (bpstat_stop_status): Same.
9936 (pc_at_non_inline_function): Same.
9937 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9938 to pass the current event's waitstatus to bpstat_stop_status
9939 and pc_at_non_inline_function.
9941 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9944 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9945 Update the function comment for it.
9946 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9947 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9950 2012-01-24 Pedro Alves <palves@redhat.com>
9952 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9953 outside `bs->stop' block.
9954 (bpstat_what): Rework bp_shlib_event handling.
9955 (internal_bkpt_check_status): If the breakpoint is a
9956 bp_shlib_event, then set bs->stop and bs->print if
9957 stop_on_solib_events is set.
9959 2012-01-24 Gary Benson <gbenson@redhat.com>
9961 Delete #if 0'd out code.
9962 * stack.c (print_frame_label_vars): Remove.
9963 (catch_info): Likewise.
9964 (_initialize_stack): Remove "info catch" command.
9965 * NEWS: Mention the above.
9967 2012-01-24 Pedro Alves <palves@redhat.com>
9969 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9971 (remote_notice_new_inferior): If the remote end doesn't support
9972 the multiprocess extensions, then the PID is fake.
9973 (add_current_inferior_and_thread): New.
9974 (remote_start_remote): Use it.
9975 (extended_remote_attach_1): Adjust.
9976 (extended_remote_create_inferior_1): Use
9977 add_current_inferior_and_thread.
9979 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9981 Fix watchpoints to be specific for each inferior.
9982 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9983 current_program_space.
9984 * i386-nat.c (i386_inferior_data_cleanup): New.
9985 (i386_inferior_data_get): Replace variable inf_data_local by an
9987 (i386_use_watchpoints): Initialize i386_inferior_data.
9988 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9989 specific iterate_over_lwps.
9991 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9993 Fix watchpoints across inferior fork.
9994 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9995 comment for linux_nat_iterate_watchpoint_lwps.
9996 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9997 linux_nat_iterate_watchpoint_lwps.
9998 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9999 * i386-linux-nat.c (update_debug_registers_callback): Update the
10000 comment for linux_nat_iterate_watchpoint_lwps.
10001 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10002 linux_nat_iterate_watchpoint_lwps.
10003 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10004 * i386-nat.c: Include inferior.h.
10005 (dr_mirror): Remove.
10006 (i386_inferior_data, struct i386_inferior_data)
10007 (i386_inferior_data_get): New.
10008 (i386_debug_reg_state): Use i386_inferior_data_get.
10009 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10010 (i386_insert_watchpoint, i386_remove_watchpoint)
10011 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10012 (i386_remove_hw_breakpoint): New variable state, use
10013 i386_debug_reg_state instead of DR_MIRROR.
10014 * linux-nat.c (delete_lwp): New declaration.
10015 (num_lwps): Move here from downwards.
10016 (delete_lwp_cleanup): New.
10017 (linux_child_follow_fork): Create new child_lp, call
10018 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10020 (num_lwps): Move upwards.
10021 (linux_nat_iterate_watchpoint_lwps): New.
10022 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10023 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10025 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10029 2012-01-23 Pedro Alves <palves@redhat.com>
10031 * top.c (caution): Rename to ...
10032 (confirm): ... this.
10033 (show_caution): Rename to ...
10034 (show_confirm): ... this.
10035 (quit_cover): Adjust.
10036 (init_main): Adjust.
10037 * top.h (caution): Rename to ...
10038 (confirm): ... this.
10039 * utils.c (internal_vproblem, defaulted_query): Adjust.
10041 2012-01-23 Pedro Alves <palves@redhat.com>
10043 * top.c (caution): Update comment.
10044 (execute_command): Don't consider the current value of `caution'.
10046 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10048 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10050 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10052 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10053 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10054 * target.c (target_fileio_pwrite): Remove buffer address from
10056 (target_fileio_pread): Likewise.
10058 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10060 * NEWS: Document remote "info proc" and "generate-core-file".
10062 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10064 * gdbarch.sh (find_memory_regions): New callback.
10065 * gdbarch.c, gdbarch.h: Regenerate.
10067 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10068 callback before falling back to target method.
10070 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10071 (linux_target_install_ops): No longer install it.
10073 * linux-tdep.c (linux_find_memory_regions): New function.
10074 (linux_init_abi): Install it.
10076 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10078 * gdbarch.sh (make_corefile_notes): New architecture callback.
10079 * gdbarch.c: Regenerate.
10080 * gdbarch.h: Likewise.
10082 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10083 before target_make_corefile_notes. If NULL is returned, the
10084 target does not support core file generation.
10086 * linux-nat.c: Include "linux-tdep.h".
10087 (find_signalled_thread, find_stop_signal): Remove.
10088 (linux_nat_do_thread_registers): Likewise.
10089 (struct linux_nat_corefile_thread_data): Likewise.
10090 (linux_nat_corefile_thread_callback): Likewise.
10091 (iterate_over_spus): Likewise.
10092 (struct linux_spu_corefile_data): Likewise.
10093 (linux_spu_corefile_callback): Likewise.
10094 (linux_spu_make_corefile_notes): Likewise.
10095 (linux_nat_collect_thread_registers): New function.
10096 (linux_nat_make_corefile_notes): Replace contents by call to
10097 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10098 as native-only callback.
10100 * linux-tdep.h: Include "bfd.h".
10101 (struct regcache): Add forward declaration.
10102 (linux_collect_thread_registers_ftype): New typedef.
10103 (linux_make_corefile_notes): Add prototype.
10104 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10105 "regset.h", and "elf-bfd.h".
10106 (find_signalled_thread, find_stop_signal): New functions.
10107 (linux_spu_make_corefile_notes): Likewise.
10108 (linux_collect_thread_registers): Likewise.
10109 (struct linux_corefile_thread_data): New data structure.
10110 (linux_corefile_thread_callback): New funcion.
10111 (linux_make_corefile_notes): Likewise.
10112 (linux_make_corefile_notes_1): Likewise.
10113 (linux_init_abi): Install it.
10115 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10117 * gdbarch.sh (info_proc): New callback.
10118 * gdbarch.c, gdbarch.h: Regenerate.
10120 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10121 before falling back to the target info_proc callback.
10123 * linux-nat.c: Do not include "cli/cli-utils.h".
10124 (linux_nat_info_proc): Remove.
10125 (linux_target_install_ops): No longer install it.
10127 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10128 (read_mapping): New function.
10129 (linux_info_proc): Likewise.
10130 (linux_init_abi): Install it.
10132 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10134 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10135 * infcmd.c: (info_proc_cmd_1): New function.
10136 (info_proc_cmd): New function, moved here from equivalent routine
10137 orignally in linux-nat.c.
10138 (info_proc_cmd_mappings): Likewise.
10139 (info_proc_cmd_stat): Likewise.
10140 (info_proc_cmd_status): Likewise.
10141 (info_proc_cmd_cwd): Likewise.
10142 (info_proc_cmd_cmdline): Likewise.
10143 (info_proc_cmd_exe): Likewise.
10144 (info_proc_cmd_all): Likewise.
10145 (_initialize_infcmd): Install "info proc" command and subcommands.
10147 * target.h (struct target_ops): Add to_info_proc.
10148 (target_info_proc): Add prototype.
10149 * target.c (target_info_proc): New function.
10151 * procfs.c (procfs_info_proc): Add prototype.
10152 (info_proc_cmd): Rename into ...
10153 (procfs_info_proc): ... this. Update argument types as appropriate
10154 for a to_info_proc implementation. Handle "what" argument.
10155 (procfs_target): Install procfs_info_proc.
10156 (_initialize_procfs): No longer install "info proc" command.
10158 * linux-nat.c: (enum info_proc_what): Remove.
10159 (linux_nat_info_proc_cmd_1): Rename into ...
10160 (linux_nat_info_proc): ... this. Update argument types as appropriate
10161 for a to_info_proc implementation.
10162 (linux_nat_info_proc_cmd): Remove.
10163 (linux_nat_info_proc_cmd_mappings): Likewise.
10164 (linux_nat_info_proc_cmd_stat): Likewise.
10165 (linux_nat_info_proc_cmd_status): Likewise.
10166 (linux_nat_info_proc_cmd_cwd): Likewise.
10167 (linux_nat_info_proc_cmd_cmdline): Likewise.
10168 (linux_nat_info_proc_cmd_exe): Likewise.
10169 (linux_nat_info_proc_cmd_all): Likewise.
10170 (linux_target_install_ops): Install linux_nat_info_proc.
10171 (_initialize_linux_nat): No longer install "info proc" command
10174 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10176 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10177 * config.in, configure: Regenerate.
10179 * target.h (struct target_ops): Add to_fileio_readlink.
10180 (target_fileio_readlink): Add prototype.
10181 * target.c (target_fileio_readlink): New function.
10183 * inf-child.c: Conditionally include <sys/param.h>.
10184 (inf_child_fileio_readlink): New function.
10185 (inf_child_target): Install it.
10187 * remote.c (PACKET_vFile_readlink): New enum value.
10188 (remote_hostio_readlink): New function.
10189 (init_remote_ops): Install it.
10190 (_initialize_remote): Handle vFile:readlink packet type.
10192 2012-01-20 Pedro Alves <palves@redhat.com>
10193 Ulrich Weigand <ulrich.weigand@linaro.org>
10195 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10196 * config.in, configure: Regenerate.
10198 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10199 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10200 (target_fileio_open): Add prototype.
10201 (target_fileio_pwrite): Likewise.
10202 (target_fileio_pread): Likewise.
10203 (target_fileio_close): Likewise.
10204 (target_fileio_unlink): Likewise.
10205 (target_fileio_read_alloc): Likewise.
10206 (target_fileio_read_stralloc): Likewise.
10208 * target.c: Include "gdb/fileio.h".
10209 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10210 (default_fileio_target): New function.
10211 (target_fileio_open): Likewise.
10212 (target_fileio_pwrite): Likewise.
10213 (target_fileio_pread): Likewise.
10214 (target_fileio_close): Likewise.
10215 (target_fileio_unlink): Likewise.
10216 (target_fileio_close_cleanup): Likewise.
10217 (target_fileio_read_alloc_1): Likewise.
10218 (target_fileio_read_alloc): Likewise.
10219 (target_fileio_read_stralloc): Likewise.
10221 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10222 <fcntl.h>, and <unistd.h>.
10223 (inf_child_fileio_open_flags_to_host): New function.
10224 (inf_child_errno_to_fileio_error): Likewise.
10225 (inf_child_fileio_open): Likewise.
10226 (inf_child_fileio_pwrite): Likewise.
10227 (inf_child_fileio_pread): Likewise.
10228 (inf_child_fileio_close): Likewise.
10229 (inf_child_fileio_unlink): Likewise.
10230 (inf_child_target): Install to_fileio routines.
10232 * remote.c (init_remote_ops): Install to_fileio routines.
10234 2012-01-20 Pedro Alves <palves@redhat.com>
10235 Ulrich Weigand <ulrich.weigand@linaro.org>
10237 * remote.c (remote_multi_process_p): Only check for multi-process
10238 protocol feature, do not check for extended protocol.
10239 (remote_supports_multi_process): Check for extended protocol here.
10240 (set_general_process): Likewise.
10241 (extended_remote_kill): Likewise.
10242 (remote_pid_to_str): Likewise.
10243 (remote_query_supported): Always query multiprocess mode.
10245 2012-01-20 Pedro Alves <palves@redhat.com>
10246 Ulrich Weigand <ulrich.weigand@linaro.org>
10248 * inferior.h (struct inferior): Add fake_pid_p.
10249 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10250 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10251 magic_null_ptid since the remote side doesn't provide a real PID.
10253 2012-01-19 Tom Tromey <tromey@redhat.com>
10255 * NEWS: Combine the two Python sections.
10257 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10259 * target.h (target_close): Update comment on the target's unpush state.
10261 2012-01-19 Pedro Alves <palves@redhat.com>
10263 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10264 linux_nat_async directly instead of going through the target
10266 * target.c (unpush_target): Close target after unpushing it, not
10269 2012-01-19 Gary Benson <gbenson@redhat.com>
10271 * mdebugread.c (sort_blocks): Replace integer constants with ones
10272 derived from FIRST_LOCAL_BLOCK.
10274 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10275 Jan Kratochvil <jan.kratochvil@redhat.com>
10278 * symfile.c (find_separate_debug_file): New function.
10279 (terminate_after_last_dir_separator): Likewise.
10280 (find_separate_debug_file_by_debuglink): Also try realpath.
10281 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10282 * configure: Regenerate.
10283 * config.in: Regenerate.
10285 2012-01-18 Doug Evans <dje@google.com>
10287 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10288 (main.o): Remove rule.
10289 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10290 (--with-sysroot): Rewrite.
10291 * configure: Regenerate.
10292 * config.in: Regenerate.
10294 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10296 * parse.c (initialize_expout): New function.
10297 (reallocate_expout): Likewise.
10298 (parse_exp_in_context): Use `initialize_expout' and
10299 `reallocate_expout' when appropriate.
10301 2012-01-18 Pedro Alves <palves@redhat.com>
10303 * record.c (struct record_breakpoint, record_breakpoint_p)
10304 (record_breakpoints): New.
10305 (record_insert_breakpoint, record_remove_breakpoint): Manage
10306 record breakpoints list. Only remove breakpoints from the
10307 inferior if they had been inserted there in the first place.
10309 2012-01-17 Doug Evans <dje@google.com>
10311 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10312 if we know we don't have a file name to look for.
10314 2012-01-17 Pedro Alves <palves@redhat.com>
10316 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10317 the frame's stop reason is UNWIND_UNAVAILABLE.
10319 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10321 Fix compilation error.
10322 * m2-exp.y (yyerror): Use ANSI C prototype.
10324 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10326 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10327 (growbuf_by_size): Likewise.
10328 (yyerror): Likewise.
10329 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10330 (modblock): Remove variable (was #if 0'ed).
10331 (parse_number): Convert prototype from K&R to ANSI C.
10332 (yyerror): Likewise.
10333 * objc-exp.y (parse_number): Likewise.
10334 (yyerror): Likewise.
10335 (yylex): Remove #if 0'ed code.
10336 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10337 (yyerror): Likewise.
10339 2012-01-16 Tom Tromey <tromey@redhat.com>
10342 * symtab.h (compare_filenames_for_search): Declare.
10343 * symtab.c (compare_filenames_for_search): New function.
10344 (iterate_over_some_symtabs): Use it.
10345 * symfile.h (struct quick_symbol_functions)
10346 <map_symtabs_matching_filename>: Change spec.
10347 * psymtab.c (partial_map_symtabs_matching_filename): Use
10348 compare_filenames_for_search. Update for new spec.
10349 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10350 compare_filenames_for_search. Update for new spec.
10351 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10353 2012-01-16 Tom Tromey <tromey@redhat.com>
10356 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10357 (struct main_type) <flag_flag_enum>: New field.
10358 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10359 * NEWS: Add entries.
10360 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10362 * python/lib/gdb/printing.py (_EnumInstance): New class.
10363 (FlagEnumerationPrinter): Likewise.
10365 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10367 * breakpoint.c (create_sals_from_address_default): New function.
10368 (create_breakpoints_sal_default): Likewise.
10369 (decode_linespec_default): Likewise.
10370 (is_marker_spec): Removed.
10371 (strace_marker_p): New function.
10372 (init_breakpoint_sal): Using `strace_marker_p' instead of
10374 (create_breakpoint): Call method `create_sals_from_address' from
10375 breakpoint_ops, replacing code that created SALs conditionally
10376 on the type of the breakpoint. Call method `create_breakpoints_sal',
10377 replacing code that created breakpoints conditionally on the type
10379 (base_breakpoint_create_sals_from_address): New function.
10380 (base_breakpoint_create_breakpoints_sal): Likewise.
10381 (base_breakpoint_decode_linespec): Likewise.
10382 (base_breakpoint_ops): Add methods
10383 `base_breakpoint_create_sals_from_address',
10384 `base_breakpoint_create_breakpoints_sal' and
10385 `base_breakpoint_decode_linespec'.
10386 (bkpt_create_sals_from_address): New function.
10387 (bkpt_create_breakpoints_sal): Likewise.
10388 (bkpt_decode_linespec): Likewise.
10389 (tracepoint_create_sals_from_address): Likewise.
10390 (tracepoint_create_breakpoints_sal): Likewise.
10391 (tracepoint_decode_linespec): Likewise.
10392 (strace_marker_create_sals_from_address): Likewise.
10393 (strace_marker_create_breakpoints_sal): Likewise.
10394 (strace_marker_decode_linespec): Likewise.
10395 (strace_marker_breakpoint_ops): New variable.
10396 (addr_string_to_sals): Remove `marker_spec'. Call method
10397 `decode_linespec' from breakpoint_ops, replacing code that decoded
10398 an address string into a SAL. Use `strace_marker_p' instead of
10400 (strace_command): Decide whether we are dealing with a static
10401 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10402 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10403 * breakpoint.h (linespec_result, linespec_sals): New forward
10405 (breakpoint_ops) <create_sals_from_address>,
10406 <create_breakpoints_sal>, <decode_linespec>: New methods.
10408 2012-01-14 Doug Evans <dje@google.com>
10410 * NEWS: Update text for "maint set python print-stack".
10411 It is deprecated in gdb 7.4 and deleted in 7.5.
10413 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10415 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10416 including curses.h.
10418 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10420 * configure: Regenerate.
10421 * config.in: Regenerate.
10423 2012-01-12 Keith Seitz <keiths@redhat.com>
10426 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10427 (ANONYMOUS_UNION_NAME): Define.
10428 (is_path_expr_parent): New function.
10429 (get_path_expr_parent): New function.
10430 (is_anonymous_child): New function.
10431 (create_child_with_value): If the child is anonymous and without
10432 a name, assign an object name to it.
10433 (c_describe_child): Use get_path_expr_parent to determine
10434 the parent expression.
10435 If there field represents an anonymous struct or union and
10436 has no name, set an appropriate display name and expression.
10437 (cplus_describe_child): Likewise.
10439 2012-01-12 Pedro Alves <palves@redhat.com>
10441 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10442 available when %ebp is found to be zero (outermost).
10444 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10446 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10447 an internal gdb_static_assert.
10448 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10450 2012-01-11 Tom Tromey <tromey@redhat.com>
10453 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10454 catch" and "catch throw".
10456 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10458 * blockframe.c (block_innermost_frame): Start search from selected
10459 frame, if present, or otherwise the current frame.
10461 * c-exp.y (variable): Update innermost_block for
10462 'block COLONCOLON NAME' clause.
10463 * m2-exp.y (variable): Ditto.
10464 * objc-exp.y (variable): Ditto.
10466 2012-01-10 Tom Tromey <tromey@redhat.com>
10469 * python/python.c (finish_python_initialization): Set sys.argv.
10471 2012-01-10 Doug Evans <dje@google.com>
10473 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10474 "want_line_info". All callers updated.
10475 (dwarf_decode_lines_1): New function.
10476 (handle_DW_AT_stmt_list): Add function comment.
10477 New arg "want_line_info". All callers updated.
10478 (read_file_scope,read_type_unit_scope): Move comment from
10479 handle_DW_AT_stmt_list to here.
10481 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10483 Fix regression after libiberty/ update for GCC PR 6057 and others.
10484 * c-exp.y (operator) <OPERATOR DELETE>
10485 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10486 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10487 (make_builtin_type, make_name): New variable i, add gdb_assert.
10488 (operator) <OPERATOR NEW>: Update ARGS to 3.
10489 (operator) <OPERATOR DELETE>: Add trailing space.
10490 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10491 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10492 * cp-support.c (cp_canonicalize_string): Check NULL from
10493 cp_comp_to_string, call warning and return.
10495 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10497 Fix duplicate .o files after omitting libbfd.a.
10498 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10499 (SFILES): Add corelow.c.
10500 (COMMON_OBS): Add corelow.o.
10501 (ALLDEPFILES): Remove corelow.c.
10502 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10503 * config/alpha/alpha-osf3.mh: Likewise.
10504 * config/alpha/fbsd.mh: Likewise.
10505 * config/arm/nbsdaout.mh: Likewise.
10506 * config/arm/nbsdelf.mh: Likewise.
10507 * config/i386/i386gnu.mh: Likewise.
10508 * config/ia64/hpux.mh: Likewise.
10509 * config/ia64/linux.mh: Likewise.
10510 * config/m32r/linux.mh: Likewise.
10511 * config/m68k/linux.mh: Likewise.
10512 * config/mips/irix5.mh: Likewise.
10513 * config/mips/irix6.mh: Likewise.
10514 * config/pa/hpux.mh: Likewise.
10515 * config/pa/linux.mh: Likewise.
10516 * config/powerpc/aix.mh: Likewise.
10517 * config/sparc/linux.mh: Likewise.
10518 * config/sparc/linux64.mh: Likewise.
10519 * config/sparc/sol2.mh: Likewise.
10520 * config/vax/vax.mh: Likewise.
10521 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10522 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10523 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10524 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10525 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10526 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10527 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10528 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10529 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10530 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10531 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10532 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10533 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10534 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10535 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10536 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10537 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10538 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10539 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10540 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10541 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10542 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10543 corelow.o from gdb_target_obs.
10544 * corefile.c (core_target): Update the comment on NULL value.
10545 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10546 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10547 MATCHES. Drop YUMMY set on NULL.
10548 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10549 reclaim CORE_DATA if it is already NULL.
10551 2012-01-09 Doug Evans <dje@google.com>
10553 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10554 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10556 2012-01-09 Keith Seitz <keiths@redhat.com>
10558 * breakpoint.c (wrapper.h): Don't include.
10560 2012-01-09 Keith Seitz <keiths@redhat.com>
10562 * Makefile.in (SFILES): Remove wrapper.c.
10563 (HFILES_NO_SRCDIR): Remove wrapper.h.
10564 (COMMON_OBS): Remove wrapper.o.
10565 * cli/cli-interp.c: Don't inlude wrapper.h.
10566 * corelow.c: Likewise.
10567 (core_open): Replace gdb_target_find_new_threads with
10568 TRY_CATCH around target_find_new_threads.
10569 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10570 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10571 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10572 evaluate_expression.
10573 (varobj_set_value): Likewise for evaluate_expression and
10575 (install_new_variable): Likewise for value_fetch_lazy.
10576 (adjust_value_for_child_access): Likewise for value_ind.
10577 (c_describe_child): Likewise for value_subscript and
10579 (c_value_of_root): Likewise for evaluate_expression.
10580 * wrapper.c: Remove.
10581 * wrapper.h: Remove.
10583 2012-01-09 Doug Evans <dje@google.com>
10585 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10586 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10587 "abfd" args with "section". All callers updated.
10588 Error checking code moved ...
10589 (error_check_comp_unit_head): ... here. New function.
10590 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10591 Delete arg "abfd". New arg "type_offset". All callers updated.
10592 (create_debug_types_hash_table): Simplify by using
10593 read_and_check_type_unit_head.
10595 * parser-defs.h (namecopy): Delete.
10596 * parse.c (namecopy, namecopy_size): Move into copy_name.
10598 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10600 Partially fix duplicate .o files after omitting libbfd.a.
10601 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10602 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10603 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10604 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10605 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10606 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10607 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10609 2012-01-09 Pedro Alves <palves@redhat.com>
10611 * MAINTAINERS: Update my email address.
10613 2012-01-08 Doug Evans <dje@google.com>
10615 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10616 n_type_units. Rename type_comp_units to all_type_units.
10618 (add_signatured_type_cu_to_table): Renamed from
10619 add_signatured_type_cu_to_list. All callers updated.
10621 * gdbtypes.h (struct cplus_struct_type): Delete member
10622 nfn_fields_total. All uses removed.
10624 2012-01-06 Doug Evans <dje@google.com>
10626 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10628 (dwarf2_find_comp_unit): Delete.
10629 (process_psymtab_comp_unit): Make result "void".
10630 Delete args buffer, info_ptr, buffer_size, and replace with
10631 "section". All callers updated.
10632 (dwarf2_build_psymtabs_hard): Simplify.
10634 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10635 Thiago Jung Bauermann <bauerman@br.ibm.com>
10637 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10638 before `struct gdb_exception'.
10639 * breakpoint.c (update_global_location_list_nothrow)
10640 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10641 * cp-abi.c (value_rtti_type): Likewise.
10642 * cp-support.c (cp_validate_operator): Likewise.
10643 * infrun.c (insert_exception_resume_breakpoint)
10644 (check_exception_resume, keep_going): Likewise.
10645 * mi-interp.c (mi_breakpoint_created)
10646 (mi_breakpoint_modified): Likewise.
10647 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10648 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10649 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10651 2012-01-05 Doug Evans <dje@google.com>
10653 * dwarf2read.c (statement_prologue): Delete, unused.
10655 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10656 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10658 * dwarf2read.c (comp_unit_header): Delete, unused.
10660 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10662 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10663 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10665 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10667 * infrun.c (normal_stop): Don't skip calling the normal_stop
10668 observers if the thread was doing a multi-step, but stopped for
10669 some reason other than stepping.
10671 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10673 * cli/cli-decode.h: Add comments.
10674 (CMD_LIST_AMBIGUOUS): Moved to command.h
10675 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10676 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10677 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10678 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10679 (add_com, add_com_alias, add_info, add_info_alias)
10680 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10682 * command.h: Add and adjust comments.
10683 (CMD_LIST_AMBIGUOUS): Moved here.
10684 (help_cmd, help_cmd_list): Delete declarations.
10686 2012-01-04 Doug Evans <dje@google.com>
10688 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10689 All callers updated.
10690 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10691 Replace all arguments with "per_cu". All callers updated.
10693 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10695 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10696 New arg "per_cu". All callers updated.
10698 Delete #if 0'd out code.
10699 * language.c (binop_result_type): Delete.
10700 (simple_type, ordered_type, same_type, integral_type): Delete.
10701 (numeric_type, character_type, string_type, boolean_type): Delete.
10702 (float_type, structured_type): Delete.
10703 * language.h: Update.
10705 2012-01-04 Tom Tromey <tromey@redhat.com>
10707 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10709 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10711 * corefile.c (close_exec_file): Delete.
10712 (reopen_exec_file): Remove commented out code that seems related
10713 to close_exec_file, which is being deleted here.
10714 * inferior.h (close_exec_file): Delete.
10715 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10717 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10719 * ada-lang.c: #include "cli/cli-utils.h".
10720 (get_selections): Use skip_spaces.
10721 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10722 (catch_ada_exception_command_split): Use skip_spaces.
10723 (ada_decode_assert_location): Likewise.
10725 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10727 * linespec.c (decode_line_internal): Check for C++ or Java
10728 compound constructs only if the current language is C, C++
10731 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10734 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10735 Joel Brobecker <brobecker@adacore.com>
10736 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10737 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10739 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10740 fall through into AT_ENTRY_POINT.
10741 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10742 DUMMY_ADDR with it.
10743 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10744 PPC_INSN_SIZE skip to 3 times.
10746 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10748 * linespec.c (add_minsym): Preserve function descriptors.
10750 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10752 * breakpoint.c (all_locations_are_pending): Consider locations
10753 in program spaces executing during startup pending as well.
10755 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10757 Copyright year update in most files of the GDB Project.
10759 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10761 * copyright.sh: Delete.
10762 * copyright.py: Rewrite.
10764 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10766 * gnulib/extra/update-copyright: New file, imported from gnulib.
10768 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10770 * README (Copyright and License Notices): New section.
10772 2012-01-03 Tom Tromey <tromey@redhat.com>
10775 * python/py-value.c (valpy_dereference, valpy_get_address
10776 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10777 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10778 (valpy_absolute, valpy_richcompare): Free intermediate values.
10780 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10782 * ada-lang.c: Reformat the copyright notice.
10784 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10786 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10787 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10788 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10789 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10790 Revert this part of:
10791 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10792 Build gdb directly from *.o files not using libgdb.a.
10793 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10795 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10797 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10798 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10799 Reformat the copyright header.
10801 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10803 Revert this part of:
10804 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10805 Remove the gdbtui binary.
10806 * gdb.c (main): Remove args.interpreter_p initialization.
10807 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10808 * main.h (struct captured_main_args): Remove interpreter_p.
10810 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10812 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10814 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10816 * top.c (print_gdb_version): Update copyright year.
10818 2012-01-02 Yao Qi <yao@codesourcery.com>
10820 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10822 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10823 Joel Brobecker <brobecker@adacore.com>
10825 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10826 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10828 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10829 fall through into AT_ENTRY_POINT.
10830 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10831 DUMMY_ADDR with it.
10832 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10833 PPC_INSN_SIZE skip to 3 times.
10835 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10837 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10839 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10841 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10843 Build gdb directly from *.o files not using libgdb.a.
10844 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10845 (COMMON_OBS): Remove solib-target.o.
10846 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10847 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10848 (LIBGDB_OBS, libgdb.a): Move it above.
10849 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10850 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10851 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10852 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10853 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10854 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10855 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10856 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10857 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10858 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10859 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10860 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10861 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10862 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10863 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10864 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10865 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10866 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10867 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10868 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10869 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10870 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10871 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10872 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10873 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10874 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10875 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10877 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10879 Remove the gdbtui binary.
10880 * .gitignore (/gdbtui): Remove.
10881 * Makefile.in (TUI): Remove.
10882 (SUBDIR_TUI_OBS): Remove tui-main.o.
10883 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10884 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10885 (tui-main.o): Remove.
10886 (all_object_files): Remove tui-main.o.
10887 * NEWS: New note for the gdbtui removal.
10888 * configure: Rebuilt.
10889 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10890 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10891 CONFIG_UNINSTALL respectively.
10892 * gdb.c (main): Remove args.interpreter_p initialization.
10893 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10894 * main.h (struct captured_main_args): Remove interpreter_p.
10895 * tui/tui-main.c: Remove.
10897 2012-01-01 Doug Evans <dje@google.com>
10899 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10900 (dwarf2_physname, read_import_statement): Ditto.
10901 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10902 (process_structure_scope read_subroutine_type): Ditto.
10903 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10904 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10905 (dwarf2_fetch_die_location_block): Ditto.
10906 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10908 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10909 All callers updated.
10910 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10911 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10912 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10914 * dwarf2read.c (load_cu): Move assert to more useful location.
10916 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10917 All callers updated.
10919 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10920 (dwarf2_elf_names): Minor reformat.
10921 (dwarf2_per_cu_data): Tweak comment.
10922 (dwarf2_read_section): Fix comment.
10923 (create_all_comp_units): Fix comment.
10924 (load_full_comp_unit): Fix comment.
10925 (process_full_comp_unit): Fix comment.
10926 (read_signatured_type): Fix comment.
10928 For older changes see ChangeLog-2011.
10934 version-control: never