1 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
5 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
7 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
8 nor pc_regnum_from_eax.
9 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
10 nor pc_regnum_from_eax.
12 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14 Fix entry values resolving in inlined frames.
15 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
16 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
19 2012-10-15 Joel Brobecker <brobecker@adacore.com>
21 * configure.ac: Build with -DMS_WIN64 if building with Python
22 enabled using GCC on amd64-windows.
23 * configure: Regenerate.
25 2012-10-15 Tom Tromey <tromey@redhat.com>
28 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
31 2012-10-15 Tom Tromey <tromey@redhat.com>
34 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
36 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
38 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
39 reset thread numbering back to 1.
41 2012-10-11 Doug Evans <dje@google.com>
44 * linespec.c (struct ls_parser): New member keyword_ok.
45 (linespec_lexer_lex_string): Add comment.
46 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
48 (parse_linespec): Set keyword_ok.
50 2012-10-10 Doug Evans <dje@google.com>
52 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
53 "0x" prefix on address in log message.
55 * dwarf2read.c (read_1_byte): Add const to buf parameter.
56 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
57 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
58 (lookup_dwo_file): Add const to dwo_name parameter.
59 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
61 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
63 Fix crash during stepping on ppc32.
64 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
67 2012-10-03 Doug Evans <dje@google.com>
70 * buildsym.c (buildsym_init): Reset using_directives to NULL.
72 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
74 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
75 output and use uint32_t not long to ensure 4 byte size.
77 2012-10-02 Joel Brobecker <brobecker@adacore.com>
79 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
82 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
84 * target.c (simple_search_memory): Include access length in
87 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
88 Edjunior Machado <emachado@linux.vnet.ibm.com>
91 * solib.c (solib_find): Prevent GDB from loading native libraries when
92 debugging a cross-target corefile.
94 2012-09-28 selven <pcthegreat@gmail.com>
96 Make definition match declaration.
98 * regcache.c (regcache_register_status): Change return type to
101 2012-09-28 Yao Qi <yao@codesourcery.com>
103 * mi/mi-main.c (mi_cmd_data_write_memory): Call
104 write_memory_with_notification instead of write_memory.
105 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
106 instead of target_write_memory.
108 2012-09-28 Yao Qi <yao@codesourcery.com>
110 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
111 when the length of content is not an even number.
113 2012-09-27 Tom Tromey <tromey@redhat.com>
115 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
116 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
118 2012-09-27 Joel Brobecker <brobecker@adacore.com>
120 * sol-thread.c (sol_thread_fetch_registers)
121 (sol_thread_store_registers): Delete commented out code.
123 2012-09-27 Joel Brobecker <brobecker@adacore.com>
125 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
126 Move these functions to sparc-sol-thread.c.
127 * sparc-sol-thread.c: New file.
128 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
129 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
131 * configure: Regenerate.
133 2012-09-27 Joel Brobecker <brobecker@adacore.com>
135 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
136 Remove commented-out code.
138 2012-09-27 Joel Brobecker <brobecker@adacore.com>
140 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
141 Enable this code for sparc hosts only.
143 2012-09-27 Joel Brobecker <brobecker@adacore.com>
145 * procfs.h (procfs_find_LDT_entry): Add declaration.
146 * sol-thread.c (ps_lgetLDT): Delete local declaration of
147 function procfs_find_LDT_entry.
149 2012-09-27 Joel Brobecker <brobecker@adacore.com>
151 * procfs.c (proc_get_LDT_entry): Make static.
153 2012-09-27 Joel Brobecker <brobecker@adacore.com>
155 * procfs.c (proc_find_memory_regions): Fix declaration.
157 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
159 * amd64-tdep.c (amd64_return_value): Revert previous change
160 that used TYPE_LENGTH directly.
161 * bfin-tdep.c (bfin_extract_return_value): Likewise.
162 (bfin_store_return_value): Likewise.
163 * cris-tdep.c (cris_store_return_value): Likewise.
164 (cris_extract_return_value): Likewise.
165 * h8300-tdep.c (h8300_extract_return_value): Likewise.
166 * hppa-tdep.c (hppa64_return_value): Likewise.
167 * lm32-tdep.c (lm32_store_return_value): Likewise.
168 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
169 * spu-tdep.c (spu_value_from_register): Likewise.
170 * vax-tdep.c (vax_return_value): Likewise.
172 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
174 * gdbtypes.c (lookup_array_range_type): Expand parameters
175 LOW_BOUND and HIGH_BOUND to LONGEST.
176 (lookup_string_range_type): Likewise.
177 * gdbtypes.h (lookup_array_range_type): Likewise.
178 (lookup_string_range_type): Likewise.
179 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
180 Expand HIGHBOUND to ssize_t.
181 (value_string): Likewise.
182 * value.h (value_cstring): Expand parameter LEN to ssize_t.
183 (value_string): Likewise.
185 2012-09-27 Yao Qi <yao@codesourcery.com>
188 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
189 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
192 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
194 * procfs.c: Add gdb_bfd header.
195 * rs6000-nat.c: Likewise.
196 * solib-pa64.c: Likewise.
197 * spu-linux-nat.c: Likewise.
198 * windows-nat.c: Likewise.
200 2012-09-26 Tom Tromey <tromey@redhat.com>
202 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
204 2012-09-26 Tom Tromey <tromey@redhat.com>
206 * dwarf2read.c (mark_common_block_symbol_computed): New function.
207 (read_common_block): Handle child DIEs with
208 DW_AT_data_member_location.
209 (new_symbol_full): Add special case for common blocks.
211 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
212 Tom Tromey <tromey@redhat.com>
214 * dwarf2read.c (read_common_block): Rewrite.
215 (new_symbol_full): Handle DW_TAG_common_block.
216 * f-lang.c (head_common_list, find_common_for_function):
218 * f-lang.h (struct common_entry, struct saved_f77_common,
219 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
220 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
221 BLANK_COMMON_NAME_LOCAL): Remove.
222 (struct common_block): New.
223 * f-valprint.c (list_all_visible_commons): Remove.
224 (info_common_command_for_block): New function.
225 (info_common_command): Use it.
226 * stack.c (iterate_over_block_locals): Special case for
228 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
230 (struct general_symbol_info) <value.common_block>: New field.
231 (SYMBOL_VALUE_COMMON_BLOCK): New define.
233 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
234 Tom Tromey <tromey@redhat.com>
236 * f-lang.c (allocate_saved_bf_node,
237 allocate_saved_function_node, allocate_saved_f77_common_node,
238 allocate_common_entry_node, tail_common_list, current_common,
239 saved_bf_list, saved_bf_list_end, current_head_bf_list,
240 tmp_bf_ptr, add_common_block, add_common_entry,
241 find_first_common_named, patch_common_entries,
242 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
243 global_remote_debug, get_bf_for_fcn, saved_function_list,
244 saved_function_list_end, clear_function_list, struct saved_fcn,
245 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
246 SAVED_BF, SAVED_BF_PTR): Remove.
247 * f-lang.h (tail_common_list, current_common,
248 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
249 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
250 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
251 real_main_c_value): Remove.
252 * f-valprint.c (there_is_a_visible_common_named): Remove.
254 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
256 * breakpoint.c (update_global_location_list): Ignore previous
257 duplicate status of a breakpoint when starting a new scan for
258 duplicate breakpoints.
260 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
262 * arm-tdep.c (arm_skip_prologue): Extending producer check to
263 support LLVM compiler.
265 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
267 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
268 * bfin-tdep.c (bfin_extract_return_value): Likewise.
269 (bfin_store_return_value): Likewise.
270 * cris-tdep.c (cris_store_return_value): Likewise.
271 (cris_extract_return_value): Likewise.
272 * h8300-tdep.c (h8300_extract_return_value): Likewise.
273 * hppa-tdep.c (hppa64_return_value): Likewise.
274 * lm32-tdep.c (lm32_store_return_value): Likewise.
275 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
276 * spu-tdep.c (spu_value_from_register): Likewise.
277 * vax-tdep.c (vax_return_value): Likewise.
279 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
281 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
282 parameter LEN to ssize_t.
284 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
286 * ada-valprint.c (ada_val_print_1): Eliminate single-use
288 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
290 (alpha_store_return_value): Likewise.
291 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
292 (amd64_push_arguments): Likewise.
293 * ax-gdb.c (gen_trace_static_fields): Likewise.
294 (gen_traced_pop): Likewise.
295 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
296 * breakpoint.c (update_watchpoint): Likewise.
297 * findcmd.c (parse_find_args): Use local variable for type
299 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
300 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
301 (h8300_store_return_value): Likewise.
302 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
303 Use i386_darwin_arg_type_alignment directly.
304 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
305 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
306 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
307 (m68hc11_extract_return_value): Likewise.
308 * mep-tdep.c (mep_push_dummy_call): Likewise.
309 * printcmd.c (float_type_from_length): Likewise.
310 * s390-tdep.c (s390_value_from_register): Likewise.
311 * stack.c (read_frame_arg): Likewise.
312 * tracepoint.c (encode_actions_1): Likewise.
313 * valops.c (value_fetch_lazy): Use local variable for type
314 instead of length. Use TYPE_LENGTH directly.
315 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
317 2012-09-25 Joel Brobecker <brobecker@adacore.com>
319 * symtab.c (skip_prologue_sal): Fix typo in comment.
321 2012-09-25 Joel Brobecker <brobecker@adacore.com>
323 * linespec.c (create_sals_line_offset): Fix typo in comment.
325 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
327 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
328 use plongest to print the array size.
330 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
332 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
333 * p-valprint.c (pascal_type_print_base): Likewise.
335 2012-09-22 Yao Qi <yao@codesourcery.com>
337 * remote.c (remote_get_trace_status): Remove setting default
338 values of fields of 'ts'.
340 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
342 Fix internal error on canonicalization of clang types.
343 * cp-name-parser.y (operator): New comment at make_operator call for
344 new, delete, new[] and delete[].
345 (exp): Use "sizeof ". Add new comment at make_operator call.
347 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
349 Fix disassemble without parameters in tailcall frame.
350 * cli/cli-cmds.c (disassemble_current_function): Use
351 get_frame_address_in_block.
353 2012-09-21 Tom Tromey <tromey@redhat.com>
355 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
356 TYPE_CODE_UNION>: Unify, removing a goto.
358 2012-09-21 Tom Tromey <tromey@redhat.com>
360 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
362 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
364 * findvar.c (read_frame_register_value): Mark the result value as
365 optimized out if any of the input registers have been optimized out.
367 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
369 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
371 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
373 * eval.c (evaluate_subexp_standard): Eliminate single-use
376 2012-09-21 Yao Qi <yao@codesourcery.com>
378 * mi/mi-interp.c: Declare mi_record_changed.
379 (mi_interpreter_init): Call observer_attach_record_changed.
380 (mi_record_changed): New.
381 * record.c (record_open): Call observer_notify_record_changed.
382 (cmd_record_stop): Call observer_notify_record_changed.
385 2012-09-20 Tom Tromey <tromey@redhat.com>
388 * python/python.c (finalize_python): New function.
389 (_initialize_python): Make a final cleanup.
391 2012-09-19 Doug Evans <dje@google.com>
393 * buildsym.h (param_symbols): Delete, unused.
394 (context_stack): Delete member "params", unused.
395 * buildsym.c (push_context): Update.
396 * dwarf2read.c (read_func_scope): Update.
398 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
400 * sh-tdep.c (sh_register_convert_to_virtual)
401 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
402 all callers. Just do a memcpy if not the little-endian case.
404 * h8300-tdep.c (h8300_gdbarch_init): Invoke
405 set_gdbarch_double_format and set_gdbarch_long_double_format.
406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
407 set_gdbarch_double_format.
408 * sh-tdep.c (sh_gdbarch_init): Likewise.
410 * NEWS: Document the removal of SH's 'regs' command.
411 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
414 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
416 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
419 2012-09-18 Joel Brobecker <brobecker@adacore.com>
421 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
422 language when iterating over symbols.
424 2012-09-18 Yao Qi <yao@codesourcery.com>
426 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
427 (mi_interpreter_init): Call observer_attach_tsv_created and
428 observer_attach_tsv_deleted.
429 (mi_tsv_created, mi_tsv_deleted): New.
430 * tracepoint.c (delete_trace_state_variable): Call
431 observer_notify_tsv_deleted.
432 (trace_variable_command): Call observer_notify_tsv_created.
433 (delete_trace_variable_command): Call
434 observer_notify_tsv_deleted.
435 (create_tsv_from_upload): Call observer_notify_tsv_created.
438 2012-09-18 Yao Qi <yao@codesourcery.com>
440 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
441 if traceframe changed.
442 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
444 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
445 (mi_interpreter_init): Hook mi_traceframe_changed to observer
446 'traceframe_changed'.
447 (mi_traceframe_changed): New.
448 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
450 * NEWS: Mention the new MI notification.
452 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
454 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
456 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
458 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
459 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
460 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
461 Extend code also for PaX support. Convert all gdb_assert to warning
464 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Implement auto-load user conveniences suggested by Doug Evans.
467 * auto-load.c: Include top.h.
468 (file_is_auto_load_safe): New variable advice_printed. Print advice.
469 (_initialize_auto_load): New variable scripts_directory_help. Mention
470 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
471 scripts-directory. Document in online help one can use also files for
472 set auto-load safe-path.
473 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
474 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
476 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
478 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
481 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
483 * m2-valprint.c (m2_print_array_contents): Eliminate variable
484 ELTLEN and use TYPE_LENGTH directly.
485 (m2_val_print): Likewise.
486 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
487 variable LEN and use TYPE_LENGTH directly.
488 (m68k_svr4_store_return_value): Likewise.
489 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
490 ARGLEN and use TYPE_LENGTH directly.
491 (mips_o64_push_dummy_call): Likewise.
492 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
493 variable LENGTH and use TYPE_LENGTH directly.
494 (s390_function_arg_float): Likewise.
495 (s390_function_arg_integer): Likewise.
496 (s390_push_dummy_call): Likewise.
497 (s390_return_value_convention): Likewise.
498 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
499 TYPE_LENGTH directly.
501 2012-09-17 Yao Qi <yao@codesourcery.com>
503 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
504 Update comment to add_setshow_integer_cmd.
505 * cli/cli-setshow.c (do_set_command): Handle case
506 'var_zuinteger_unlimited'.
507 (do_show_command): Likewise.
508 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
509 for command 'remotetimeout'.
510 * command.h (enum var_types): New zuinteger_unlimited. Update comment
512 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
513 for command 'set listsize'.
515 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
517 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
520 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
523 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
524 (frame_pop): Drop also TAILCALL_FRAME frames.
525 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
527 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
528 Pedro Alves <palves@redhat.com>
531 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
532 function start if we are already at function start. Both for
533 reverse-next and for reverse-step into function without line number
536 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
538 Code cleanup - rename 'inline' depth to 'artificial' depth.
539 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
540 frame_id_artificial_p, extend the comment.
541 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
542 * frame.c (fprint_frame_id): Rename at a user, change debug output
543 text to "artificial=".
544 (skip_inlined_frames): Rename to ...
545 (skip_artificial_frames): ... here. Extend the comment.
546 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
547 (frame_id_inlined_p): Rename to ...
548 (frame_id_artificial_p): ... here. Rename at a user.
549 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
550 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
552 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
554 (frame_id_inlined_p): Rename to ...
555 (frame_id_artificial_p): ... here.
556 * inline-frame.c (inline_frame_this_id): Rename at a user.
558 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
560 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
561 vector variables using vector_size syntax rather than array
564 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
566 * valarith.c (value_concat): Replace unsafe ALLOCA with
569 2012-09-14 Pedro Alves <palves@redhat.com>
571 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
573 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
575 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
576 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
577 data-directory as appropriate.
579 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
581 * printcmd.c (ui_printf): Eliminate single-use variable
584 2012-09-14 Yao Qi <yao@codesourcery.com>
585 Pedro Alves <palves@redhat.com>
587 * valops.c (value_assign): Move observer_notify_target_changed
588 below to replace reinit_frame_cache.
590 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
592 Refactor Python "gdb" module into a proper Python package, by
593 introducing a new "_gdb" module for code implemented in C, and
594 using reload/__import__ instead of exec.
595 * python/lib/gdb/__init__.py: Import * from _gdb.
596 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
597 prompt_hook, sys.argv): Moved from finish_python_initialization.
598 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
599 (packages, auto_load_packages): New list and function replacing
600 module_dict and auto-loading code, using __file__ instead of
601 gdb.PYTHONDIR and reload/__import__ instead of exec.
602 (GdbSetPythonDirectory): Replacing function of the same name
603 from finish_python_initialization, using reload/__import__ instead
604 of exec, as well as call auto_load_packages.
605 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
606 gdb_python_module and not gdb_module.
607 * python/python-internal.h (gdb_python_module): Declare.
608 * python/python.c (gdb_python_module): New global.
609 (before_prompt_hook): Check gdb_python_module and not gdb_module.
610 (_initialize_python): Rename gdb module to _gdb.
611 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
612 (finish_python_initialization): Move Python code to
613 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
616 2012-09-13 Pedro Alves <palves@redhat.com>
618 * Makefile.in (COMMON_OBS): Add registry.o.
619 * registry.c: New file.
620 * registry.h (struct registry_container): Declare.
621 (registry_data_callback): New typedef.
622 (struct registry_data, struct registry_data_registration, struct
623 registry_data_registry): New type.
624 (register_data_with_cleanup, registry_alloc_data)
625 (registry_callback_adaptor, registry_clear_data)
626 (registry_container_free_data, registry_set_data, registry_data):
628 (DEFINE_REGISTRY): Refactor structures and functions as shims over
629 the new common structures and functions.
630 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
633 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
635 * remote.c (remote_insert_hw_breakpoint): Throw exception if
636 there is an error inserting hardware breakpoints and use the
637 error message from the target.
639 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
640 Catch this exception and print the error message contained within. Do not
641 print the default hardware error breakpoint message in this case.
643 2012-09-12 Doug Evans <dje@google.com>
645 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
648 2012-09-11 Doug Evans <dje@google.com>
650 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
651 .gdb_index symbol attributes if there are none.
653 2012-09-11 Joel Brobecker <brobecker@adacore.com>
655 * symtab.h (struct minimal_symbol) [has_size]: New field.
656 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
657 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
658 * printcmd.c (build_address_symbolic): Only filter out zero-sized
659 minimal symbols if the symbol's size is actually known.
660 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
661 of msymbol's size field. Add comment.
662 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
663 SET_MSYMBOL_SIZE to set the minimal symbol size.
665 2012-09-11 Joel Brobecker <brobecker@adacore.com>
667 * minsyms.c (install_minimal_symbols): Use memset to fill entire
668 minimal_symbol struct object, rather than setting some of its
671 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
673 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
674 passed_a_ptr flag when displaying typedef types.
676 2012-09-10 Joel Brobecker <brobecker@adacore.com>
678 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
679 the optimized_out flag is preserved.
681 2012-09-10 Anthony Green <green@moxielogic.com>
683 * moxie-tdep.c (moxie_analyze_prologue): Update for function
684 prologue changes in GCC.
686 2012-09-10 Keith Seitz <keiths@redhat.com>
689 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
690 (BOOL_CONVERSION_BADNESS): ... this.
691 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
692 (rank_one_type): Allow all boolean conversions
693 permitted by the standard.
695 2012-09-06 Tom Tromey <tromey@redhat.com>
697 * python/py-newobjfileevent.c (create_new_objfile_event_object):
698 Don't decref py_objfile.
700 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
702 Do not enable -lmcheck by default when Python is enabled with
704 * configure.ac: (python_has_threads) New variable, by testing
705 if WITH_THREAD is defined in Python.h.
706 Move --enable-lmcheck after --with-python.
707 Do not enable -lmcheck by default if python_has_threads=yes.
708 Warn if --enable-lmcheck and python_has_threads=yes.
709 * configure: Regenerate.
711 2012-08-31 Yao Qi <yao@codesourcery.com>
713 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
714 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
715 Update some commands.
716 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
717 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
720 2012-08-31 Yao Qi <yao@codesourcery.com>
722 * mi/mi-cmds.c (mi_cmds): Add 'static'.
724 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
726 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
728 2012-08-29 Doug Evans <dje@google.com>
730 * main.c (print_gdb_help): Remove reference to
731 --use-deprecated-index-sections.
733 2012-08-28 Yao Qi <yao@codesourcery.com>
735 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
736 (init_cmds): Call add_setshow_uinteger_cmd for command
737 'max-user-call-depth'.
738 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
739 declaration of 'max_user_call_depth'.
740 * frame.c (backtrace_limit): Add 'unsigned'.
741 (_initialize_frame): Call add_setshow_uinteger_cmd for command
743 * remote.c (remoteaddresssize): Add 'unsigned'.
744 (remote_address_masked): Change local var 'address_size' to
746 (_initialize_remote): Call add_setshow_uinteger_cmd for
748 * top.c (history_size): Add 'unsigned'.
749 (show_commands): Change local variables to 'unsigned'.
750 (set_history_size_command): Don't check history_size is negative.
751 Adjust the condition to call unstifle_history and set history_size
754 2012-08-28 Pedro Alves <palves@redhat.com>
758 * infcmd.c (default_print_one_register_info): New, factored out
759 from default_print_registers_info.
760 (default_print_registers_info): Use it. Mark value unavailable if
762 (registers_info): Print user registers with
763 default_print_one_register_info.
765 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
768 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
769 is not NULL before referencing it.
771 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
773 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
774 variable pc. Call find_pc_line instead of find_pc_overlay, restore
777 2012-08-27 Eli Zaretskii <eliz@gnu.org>
778 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * auto-load.c (auto_load_objfile_script): Rename to ...
781 (auto_load_objfile_script_1): ... here, change variable realname to
782 parameter realname, document it, add return value, add variable retval.
783 (auto_load_objfile_script): New function.
785 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
788 followed by a whitespace.
790 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
793 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
794 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
795 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
798 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
800 * memattr.c (create_mem_region): Fix memory region overlapping
803 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
805 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
806 with xmalloc/cleanup.
807 * mt-tdep.c (mt_push_dummy_call): Likewise.
808 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
809 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
811 2012-08-24 Yao Qi <yao@codesourcery.com>
813 * jv-exp.y (push_expression_name): Add "." at the end of error
816 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
818 Document how to return from "python-interactive" to GDB.
819 * python/python.c (_initialize_python): Update documentation.
821 2012-08-23 Pedro Alves <palves@redhat.com>
823 * infrun.c (_initialize_infrun) <handle command help text>:
824 Mention that multiple signals are supported.
826 2012-08-23 Pedro Alves <palves@redhat.com>
828 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
831 2012-08-23 Yao Qi <yao@codesourcery.com>
833 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
834 (tfind_1): Don't call registers_changed, set_traceframe_num,
835 and clear_traceframe_info.
836 Call set_current_traceframe.
837 (set_current_traceframe): call set_traceframe_num.
839 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
841 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
842 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
844 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
846 Enable readline in Python in a GDB-specific way and block the
847 standard Python readline module to prevent conflicts with GDB.
848 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
849 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
850 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
851 * python/py-gdb-readline.c: New file.
852 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
854 * python/python.c (_initialize_python): Call
855 gdbpy_initialize_gdb_readline.
857 2012-08-22 Keith Seitz <keiths@redhat.com>
859 * defs.h: Include build-gnulib/config.h
861 2012-08-22 Joseph Myers <joseph@codesourcery.com>
863 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
866 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
868 Add a new "python-interactive" command that starts a standard
869 Python interactive prompt with "pi" as alias, and add "py" as
870 an alias to "python".
871 * NEWS: Mention the new commands.
872 * python/python.c (eval_python_command): New function.
873 (python_interactive_command): For "python-interactive" with
874 arguments, call eval_python_command. For "python-interactive"
875 without arguments, call PyRun_InteractiveLoop.
876 (_initialize_python): Add "python-interactive" command with
877 "pi" as alias, and add "py" as an alias to "python".
879 2012-08-22 Tom Tromey <tromey@redhat.com>
881 * defs.h (quit_flag): Don't declare.
882 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
883 (QUIT): Use new functions.
884 * event-top.c (command_handler): Use clear_quit_flag.
885 (handle_sigint): Use set_quit_flag.
886 (async_request_quit): Use check_quit_flag. Don't check
888 * exceptions.c (throw_exception): Use clear_quit_flag.
889 * main.c (captured_main): Use clear_quit_flag.
890 * python/python.c (clear_quit_flag, set_quit_flag)
891 (check_quit_flag): New functions.
892 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
894 * remote.c (remote_wait_as): Use check_quit_flag,
896 (remote_start_remote): Call QUIT.
897 * symfile.c (load_progress): Use check_quit_flag.
898 * top.c (command_loop): Use clear_quit_flag.
899 (command_line_input): Call QUIT.
900 * utils.c (quit_flag): Conditionally define.
901 (clear_quit_flag, check_quit_flag, set_quit_flag): New
903 (prompt_for_continue): Call QUIT. Use quit, not
905 * remote-mips.c (mips_expect_timeout): Call QUIT.
906 * monitor.c (monitor_expect): Call QUIT.
908 2012-08-22 Tom Tromey <tromey@redhat.com>
910 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
911 (async_init_signals): Update.
912 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
913 (SIGWINCH_HANDLER_BODY): Remove.
915 2012-08-22 Tom Tromey <tromey@redhat.com>
917 * jit.c (jit_object_close_impl): Don't malloc the objfile
919 * objfiles.c (allocate_objfile): Don't malloc the objfile
921 (free_objfile): Don't free the objfile name.
922 * objfiles.h (struct objfile) <name>: Update comment.
923 * symfile.c (reread_symbols): Fix reference counting. Don't
926 2012-08-22 Tom Tromey <tromey@redhat.com>
928 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
929 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
930 (symfile_bfd_open): Likewise.
931 (generic_load): Likewise.
932 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
933 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
935 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
937 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
938 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
939 (pmon_load_fast): Likewise.
940 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
941 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
942 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
943 (macho_check_dsym): Likewise.
944 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
945 (m32r_upload_command): Likewise.
946 * gdb_bfd.h (gdb_bfd_cache): Declare.
947 * gdb_bfd.c (struct gdb_bfd_data): New.
948 (gdb_bfd_cache): New global.
949 (struct gdb_bfd_cache_search): New.
950 (hash_bfd): New function.
952 (gdb_bfd_open): Likewise.
953 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
954 (gdb_bfd_unref): Remove closed BFD from cache. Update for
956 * exec.c (exec_file_attach): Use gdb_bfd_open.
957 * dsrec.c (load_srec): Use gdb_bfd_open.
959 2012-08-22 Tom Tromey <tromey@redhat.com>
961 * dwarf2read.c (macro_start_file): Update.
962 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
963 (free_objfile_per_bfd_storage): Destroy macro_cache.
964 (allocate_objfile, free_objfile): Update.
965 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
967 (struct objfile) <macro_cache>: Remove.
968 * symfile.c (reread_symbols): Update.
969 * symmisc.c (print_symbol_bcache_statistics): Update.
970 (print_objfile_statistics): Update.
972 2012-08-22 Tom Tromey <tromey@redhat.com>
974 * elfread.c (elf_symtab_read): Update.
975 * objfiles.c (objfiles_bfd_data): New global.
976 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
977 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
978 (allocate_objfile, free_objfile): Update.
979 (_initialize_objfiles): Initialize objfiles_bfd_data.
980 * objfiles.h (struct objfile_per_bfd_storage): New.
981 (struct objfile) <per_bfd>: New field.
982 <filename_cache>: Remove.
983 (set_objfile_per_bfd): Declare.
984 * symfile.c (reread_symbols): Update. Call
986 (allocate_symtab): Update.
987 * symmisc.c (print_symbol_bcache_statistics): Update.
988 (print_objfile_statistics): Print the size of the BFD obstack.
990 2012-08-22 Tom Tromey <tromey@redhat.com>
992 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
993 * gdb_bfd.c: Use DEFINE_REGISTRY.
994 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
995 (gdb_bfd_ref): Call bfd_alloc_data.
996 (gdb_bfd_unref): Call bfd_free_data.
998 2012-08-22 Tom Tromey <tromey@redhat.com>
1000 * registry.h (struct registry_fields): New.
1001 (REGISTRY_FIELDS): Redefine.
1002 (REGISTRY_ACCESS_FIELD): New macro.
1003 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1006 2012-08-22 Tom Tromey <tromey@redhat.com>
1008 * auto-load.c (_initialize_auto_load): Update.
1009 * solib-svr4.c (_initialize_svr4_solib): Update
1010 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1011 * solib-darwin.c (_initialize_darwin_solib): Update.
1012 * registry.h: New file.
1013 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1014 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1015 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1016 (register_program_space_data_with_cleanup)
1017 (register_program_space_data, program_space_alloc_data)
1018 (clear_program_space_data, set_program_space_data)
1019 (program_space_data): Don't declare.
1020 * progspace.c: Use DEFINE_REGISTRY.
1021 (struct program_space_data, struct
1022 program_space_data_registration, struct
1023 program_space_data_registry, program_space_data_registry)
1024 (register_program_space_data_with_cleanup)
1025 (register_program_space_data, program_space_alloc_data)
1026 (program_space_free_data, clear_program_space_data)
1027 (set_program_space_data, program_space_data): Remove.
1028 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1029 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1030 (register_objfile_data_with_cleanup, register_objfile_data)
1031 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1033 * objfiles.c: Use DEFINE_REGISTRY.
1034 (struct objfile_data, struct objfile_data_registration, struct
1035 objfile_data_registry, objfile_data_registry)
1036 (register_objfile_data_with_cleanup, register_objfile_data)
1037 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1038 (set_objfile_data, objfile_data): Remove.
1039 (_initialize_objfiles): Update.
1040 * jit.c (_initialize_jit): Update.
1041 * inflow.c (_initialize_inflow): Update.
1042 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1043 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1044 (register_inferior_data_with_cleanup, register_inferior_data)
1045 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1047 * inferior.c: Use DEFINE_REGISTRY.
1048 (struct inferior_data, struct inferior_data_registration, struct
1049 inferior_data_registry, inferior_data_registry)
1050 (register_inferior_data_with_cleanup, register_inferior_data)
1051 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1052 (set_inferior_data, inferior_data): Remove.
1053 * auxv.c (_initialize_auxv): Update.
1054 * ada-lang.c (_initialize_ada_language): Update.
1055 * breakpoint.c (_initialize_breakpoint): Update.
1056 * i386-nat.c (i386_use_watchpoints): Update.
1058 2012-08-22 Tom Tromey <tromey@redhat.com>
1060 * exec.c (exec_close, exec_file_attach): Update.
1061 (add_to_section_table): Initialize 'key' field.
1062 (add_target_sections, remove_target_sections): Add 'key' argument.
1063 * exec.h (add_target_sections, remove_target_sections): Add
1065 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1066 (reload_shared_libraries_1): Update.
1067 * target.h (struct target_section) <key>: New field.
1069 2012-08-22 Tom Tromey <tromey@redhat.com>
1071 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1073 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1075 * symfile.c (allocate_symtab): Use host_address_to_string
1076 function instead of cast of pointer to long which is not
1077 compatible with x86_64-w64-mingw32 build.
1079 2012-08-19 Andrew Pinski <apinski@cavium.com>
1081 * mips-tdep.c (is_octeon): New function.
1082 (is_octeon_bbit_op): New function.
1083 (mips32_next_pc): Handle Octeon's bbit instructions.
1084 (mips32_instruction_has_delay_slot): Likewise.
1086 2012-08-19 Andrew Pinski <apinski@cavium.com>
1088 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1089 before the function.
1091 2012-08-19 Andrew Pinski <apinski@cavium.com>
1093 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1095 2012-08-19 Keith Seitz <keiths@redhat.com>
1098 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1099 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1101 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1103 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1104 The typo broke "make TAGS".
1106 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1110 2012-08-17 Keith Seitz <keiths@redhat.com>
1113 * gdbtypes.c (strict_type_checking): New variable.
1114 (show_strict_type_checking): New function.
1115 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1116 if strict type checking is disabled.
1117 (_initialize_gdbtypes): Add "check type" subcommand.
1118 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1120 2012-08-17 Keith Seitz <keiths@redhat.com>
1122 * language.h (type_mode): Remove.
1123 (type_check): Remove.
1124 (struct language_defn): Remove la_type_check.
1125 (STRICT_TYPE): Remove unused macro.
1126 (type_error): Remove.
1127 * language.c (set_type_range_case): Renamed to ...
1128 (set_range_case): ... this. Update all callers.
1129 Remove type_mode/type_check.
1130 (type_mode): Remove.
1131 (type_check): Remove.
1132 (show_type_command): Remove.
1133 (set_type_command): Remove.
1134 (language_info): Remove type checking output.
1135 (type_error): Remove unused function.
1136 (range_error): Update comment.
1137 (unknown_language_defn): Remove la_type_check.
1138 (auto_language_defn): Likewise.
1139 (local_language_defn): Likewise.
1140 (_initialize_language): Remove "check type" subcommand.
1141 * ada-lang.c (ada_language_defn): Remove la_type_check.
1142 * c-lang.c (c_language_defn): Likewise.
1143 (cplus_language_defn): Likewise.
1144 (asm_language_defn): Likewise.
1145 (minimal_language_defn): Likewise.
1146 * d-lang.c (d_language_defn): Likewise.
1147 * f-lang.c (f_language_defn): Likewise.
1148 * go-lang.c (go_language_defn): Likewise.
1149 * jv-lang.c (java_language_defn): Likewise.
1150 * m2-lang.c (m2_language_defn): Likewise.
1151 * objc-lang.c (objc_language_defn): Likewise.
1152 * opencl-lang.c (opencl_language_defn): Likewise.
1153 * p-lang.c (pascal_language_defn): Likewise.
1155 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1157 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1159 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1161 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1163 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1164 using the regache. Use ia64_hpux_get_register_from_save_state_t
1165 to access the bsp and bspstore registers if not.
1167 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1169 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1170 * breakpoint.c (detach_breakpoints): Change pid parameter into
1171 a ptid. Adjust code accordingly.
1172 * infrun.c (handle_inferior_event): Delete variable child_pid.
1173 Update call to detach_breakpoints to pass the child ptid for
1175 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1176 assert that inferior_ptid's lwp is zero.
1177 (linux_handle_extended_wait): Update call to detach_breakpoints.
1178 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1181 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1183 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1184 parent, only call detach_breakpoints if tts.tts_event ==
1187 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1189 * dwarf2-frame.c (dwarf2_frame_cache): Use
1190 get_frame_address_in_block instead of get_frame_pc as
1191 the bound for executing the frame's FDE.
1193 2012-08-16 Yao Qi <yao@codesourcery.com>
1195 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1196 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1197 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1198 (c_type_print_varspec_suffix): Likewise.
1199 * eval.c (evaluate_subexp_standard): Likewise.
1200 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1201 (f_type_print_varspec_suffix): Likewise.
1202 * gdbtypes.c (is_scalar_type): Likewise.
1203 (recursive_dump_type): Likewise.
1204 * infcall.c (value_arg_coerce): Likewise.
1205 * m2-valprint.c (m2_val_print): Likewise.
1206 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1207 (pascal_type_print_varspec_suffix): Likewise.
1208 (pascal_type_print_base): Likewise.
1209 * p-valprint.c (pascal_val_print): Likewise.
1210 (pascal_val_print): Likewise.
1211 * valops.c (value_slice): Likewise.
1212 * valprint.c (scalar_type_p): Likewise.
1213 * valarith.c (value_bitstring_subscript): Remove.
1214 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1215 Remove comment on TYPE_CODE_BITSTRING.
1217 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1218 TYPE_CODE_BITSTRING.
1220 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1223 2012-08-16 Yao Qi <yao@codesourcery.com>
1225 * tracepoint.c (trace_find_none_command): Remove.
1226 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1228 2012-08-16 Yao Qi <yao@codesourcery.com>
1230 * remote.c (handle_notification): Remove parameter 'length'.
1231 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1233 2012-08-15 Keith Seitz <keiths@redhat.com>
1235 * gdbtypes.c (opaque_type_resolution): Make static.
1236 Add missing comment.
1237 (overload_debug): Add missing comment.
1238 (show_opaque_type_resolution): Likewise.
1239 (show_overload_debug): Likewise.
1240 (print_bit_vector): Remove unnecessary forward declaration.
1241 (print_arg_types): Likewise.
1242 (dump_fn_fieldlists): Likewise.
1243 (print_cplus_stuff): Likewise.
1245 2012-08-15 Tom Tromey <tromey@redhat.com>
1247 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1248 (gdb_bfd_ref): Initialize new field.
1249 (gdb_bfd_unref): Unref the archive BFD.
1250 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1253 2012-08-15 Tom Tromey <tromey@redhat.com>
1256 * python/py-bpevent.c (create_breakpoint_event_object): Update
1258 * python/py-event.c (evpy_add_attribute): Update comment.
1259 * python/py-exitedevent.c (create_exited_event_object): Fix
1260 reference counting and error handling.
1261 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1262 Fix reference counting.
1263 * python/py-signalevent.c (create_signal_event_object): Fix
1264 reference counting and error handling.
1265 * python/py-stopevent.c (emit_stop_event): Fix reference
1267 * python/py-threadevent.c (get_event_thread): Return a
1269 * python/py-type.c (convert_field): Fix reference counting.
1271 2012-08-15 Tom Tromey <tromey@redhat.com>
1273 * dwarf2read.c (dwarf_decode_macro_bytes)
1274 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1277 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1279 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1280 stepi, nexti, finish, next, step, jump, and continue commands.
1281 * infrun.c (_initialize_infrun): Update help text for the handle
1284 2012-08-14 Doug Evans <dje@google.com>
1286 * gdbtypes.c (struct extra): Delete, unused.
1288 * gdbtypes.c: Whitespace cleanup.
1289 (address_space_name_to_int): Remove "extern" from definition.
1290 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1292 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1293 TYPE_POINTER_TYPE (type).
1295 2012-08-14 Gary Benson <gbenson@redhat.com>
1297 * solib-svr4.c (svr4_free_library_list): Use free_so.
1299 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1301 * .gitignore: Add go-exp.c.
1303 2012-08-13 Doug Evans <dje@google.com>
1305 * value.c (show_convenience): Tweak comment.
1306 (_initialize_values): Mention convenience functions in the help text
1307 for "show convenience".
1309 2012-08-13 Yao Qi <yao@codesourcery.com>
1311 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1312 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1314 * eval.c (evaluate_subexp_standard): Likewise.
1315 * expprint.c (print_subexp_standard): Likewise.
1316 (dump_subexp_body_standard): Likewise.
1317 * parse.c (operator_length_standard): Likewise.
1319 2012-08-13 Yao Qi <yao@codesourcery.com>
1321 * std-operator.def: Remove OP_BITSTRING.
1322 * breakpoint.c (watchpoint_exp_is_const): Update.
1323 * eval.c (evaluate_subexp_standard): Remove handling to
1325 * expprint.c (print_subexp_standard): Likewise.
1326 (dump_subexp_body_standard): Likewise.
1327 * parse.c (operator_length_standard): Likewise.
1328 * valops.c (value_bitstring): Remove.
1329 * value.h: Remove the declaration of 'value_bitstring'.
1331 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1333 * linespec.c (find_methods): Remove unused variables `i1' and
1335 (decode_line_full): Likewise for `arg_start'.
1337 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1339 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1340 (zlib_decompress_section): Likewise for `section_data'.
1341 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1343 2012-08-10 Doug Evans <dje@google.com>
1345 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1346 * NEWS: Document them.
1347 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1349 * python/py-type.c (typy_array_1): New function.
1350 (typy_array): Call it.
1351 (typy_vector): New function.
1352 (type_object_methods): Add "vector".
1353 * python/lib/gdb/function/__init__.py: New file.
1354 * python/lib/gdb/function/strfns.py: New file.
1356 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1358 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1359 for TYPE_FIELD_BITPOS.
1360 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1362 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1365 * common/vec.h (VEC_merge): Define.
1366 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1367 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1368 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1369 * completer.c: Include gdb_signals.h.
1370 (signal_completer): Define.
1371 * completer.h (signal_completer): Add prototype.
1372 * infcmd.c (_initialize_infcmd): Assign the command
1373 completer for "signal" to handle_completer.
1374 * infrun.c: Include completer.h.
1375 (handle_completer): Define.
1376 (_initialize_infrun): Declare a new local variable c. Store the
1377 result of add_com("handle") to it. Assign the command
1378 completer for "handle" to handle_completer.
1380 2012-08-09 Yao Qi <yao@codesourcery.com>
1382 * cli/cli-decode.c (set_cmd_prefix): New.
1383 (lookup_cmd_for_prefixlist): New.
1384 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1385 of each cmd_list_element in *prefixlist.
1386 (add_setshow_cmd_full): set_cmd_prefix.
1387 (add_alias_cmd): Likewise.
1388 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1389 Declare 'auto_boolean_enums'.
1390 * cli/cli-setshow.c: Include "observer.h".
1391 (notify_command_param_changed_p): New.
1392 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1394 (do_setshow_command): Split it to ...
1395 (do_set_command, do_show_command): ... them. New.
1396 (do_set_command): Call observer_notify_command_param_changed if
1397 notify_command_param_changed_p returns true.
1398 (cmd_show_list): Caller update.
1399 * auto-load.c (set_auto_load_cmd): Likewise.
1400 * remote.c (show_remote_cmd): Likewise.
1401 * cli/cli-setshow.h: Update declarations.
1402 * top.c (execute_command): Call do_set_command and do_show_command.
1404 * NEWS: Mention new MI notification.
1405 * mi/mi-interp.c: Declare mi_command_param_changed.
1406 (mi_interpreter_init): Attach mi_command_param_changed to
1407 observer command_param_changed.
1408 (mi_command_param_changed): New.
1409 Remove mi_suppress_breakpoint_notifications.
1410 Define global variable mi_suppress_notification.
1411 (mi_breakpoint_created): Update.
1412 (mi_breakpoint_deleted): Likewise.
1413 (mi_breakpoint_modified): Likewise.
1414 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1415 'gdb-set' and set mi_suppress_notification.
1416 * mi/mi-main.h: (mi_suppress_notification): New struct.
1418 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1419 Jan Kratochvil <jan.kratochvil@redhat.com>
1421 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1423 2012-08-09 Yao Qi <yao@codesourcery.com>
1425 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1426 (skiplist): Move it to skip.c.
1427 (init_cmd_lists): Remove code setting enablebreaklist and
1429 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1430 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1432 * gdbcmd.h: Likewise.
1433 * skip.c (_initialize_step_skip): Move 'skiplist' from
1436 2012-08-09 Yao Qi <yao@codesourcery.com>
1438 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1439 * gnu-nat.c, symfile.c: Likewise.
1441 2012-08-08 Aaron Gamble <agamble@google.com>
1443 * utils.c (prompt_for_continue_wait_time): New static global.
1444 (make_command_stats_cleanup): Initialize it.
1445 (report_command_stats): Subtract time waiting for user.
1446 (prompt_for_continue): Track time waiting for user.
1447 (defaulted_query): Track time waiting for user.
1449 2012-08-08 Doug Evans <dje@google.com>
1451 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1453 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1454 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1455 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1456 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1457 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1458 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1460 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1461 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1462 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1463 (dump_prefix_expression): Handle OP_TYPE.
1465 2012-08-08 Keith Seitz <keiths@redhat.com>
1467 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1470 2012-08-08 Doug Evans <dje@google.com>
1472 * linux-thread-db.c: #include "gdb_vecs.h".
1473 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1475 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1476 (thread_db_load_search): Use a vector to iterate over path elements.
1477 Handle text appearing after "$pdir".
1479 * gdb_string.h: Moved to ...
1480 * common/gdb_string.h: ... here.
1481 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1482 gdb_string.h and gdb_assert.h.
1484 2012-08-08 Yao Qi <yao@codesourcery.com>
1486 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1487 (tic6x_value_to_register): Likewise.
1488 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1489 and set_gdbarch_value_to_register.
1491 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1492 Jean-Marc Saffroy <saffroy@gmail.com>
1495 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1496 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1497 * gcore.c (gcore_create_callback): New function comment. Add modified
1498 parameter. Only write modified regions. Set SEC_READONLY exactly
1499 according to MODIFIED.
1500 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1501 the passed modified value to FUNC.
1502 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1503 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1504 first. New variables modified and has_anonymous. Parse the lines of
1505 smaps file. Add the passed MODIFIED value to FUNC.
1506 * procfs.c (find_memory_regions_callback): Add the passed modified
1509 2012-08-06 Tom Tromey <tromey@redhat.com>
1511 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1512 (dwarf2_frame_cache): Use it.
1513 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1514 cache initialization constraint.
1516 2012-08-06 Tom Tromey <tromey@redhat.com>
1519 * varobj.c (update_dynamic_varobj_children): Don't call
1522 2012-08-06 Tom Tromey <tromey@redhat.com>
1525 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1527 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1529 * NEWS: New entry for 'cd' default parameters.
1530 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1532 2012-08-03 Tom Tromey <tromey@redhat.com>
1534 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1537 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1539 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1540 to attempting lseek/write.
1541 (inf_child_fileio_pread): Likewise for pread.
1543 2012-08-02 Yao Qi <yao@codesourcery.com>
1545 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1546 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1547 add_setshow_zinteger_cmd.
1548 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1549 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1550 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1551 instead of add_setshow_zinteger_cmd.
1552 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1553 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1554 instead of add_setshow_zinteger_cmd.
1555 * frame.c (frame_debug): Add 'unsigned'.
1556 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1557 add_setshow_zinteger_cmd.
1558 * frame.h: Update the declaration of 'frame_debug'.
1559 * gdbtypes.c (overload_debug): Add 'unsigned'.
1560 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1561 add_setshow_zinteger_cmd.
1562 * inferior.h: Update declaration of 'debug_infrun'.
1563 * infrun.c (debug_infrun): Add 'unsigned'.
1564 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1565 add_setshow_zinteger_cmd.
1566 * jit.c (jit_debug): Add 'unsigned'.
1567 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1568 add_setshow_zinteger_cmd.
1569 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1570 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1571 instead of add_setshow_zinteger_cmd.
1572 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1573 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1574 add_setshow_zinteger_cmd.
1575 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1576 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1577 instead of add_setshow_zinteger_cmd.
1578 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1579 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1580 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1581 intead of add_setshow_zinteger_cmd.
1582 * mips-tdep.c (mips_debug): Add 'unsigned'.
1583 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1584 instead of add_setshow_zinteger_cmd.
1585 * monitor.c (monitor_debug): Add 'unsigned'.
1586 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1587 add_setshow_zinteger_cmd.
1588 * observer.c (observer_debug): Add 'unsigned'.
1589 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1590 add_setshow_zinteger_cmd.
1591 * parse.c (expressiondebug): Add 'unsigned'.
1592 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1593 add_setshow_zinteger_cmd.
1594 * record.c (record_debug): Add 'unsigned'.
1595 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1596 add_setshow_zinteger_cmd.
1597 * record.h: Update the declaration of 'record_debug'.
1598 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1599 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1600 add_setshow_zinteger_cmd.
1601 * serial.c (global_serial_debug_p): Add 'unsigned'.
1602 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1603 add_setshow_zinteger_cmd.
1604 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1605 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1606 add_setshow_zinteger_cmd.
1607 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1608 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1609 add_setshow_zinteger_cmd.
1610 * target.c (targetdebug): Add 'unsigned'.
1611 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1612 add_setshow_zinteger_cmd.
1613 * valops.c (overload_debug): Add 'unsigned'.
1614 * varobj.c (varobjdebug): Add 'unsigned'.
1615 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1616 add_setshow_zinteger_cmd.
1617 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1618 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1619 instead of add_setshow_zinteger_cmd.
1621 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1622 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1623 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1624 instead of add_setshow_zinteger_cmd.
1625 * gdbarch.c, gdbarch.h: Re-generated.
1627 2012-08-02 Yao Qi <yao@codesourcery.com>
1629 * nto-tdep.c: Don't include cli/cli-decode.h and
1631 (_initialize_nto_tdep): Remove.
1632 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1634 Remove macro nto_internal_debugging.
1636 2012-08-01 Richard Henderson <rth@redhat.com>
1638 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1639 (mep-*-*) [gdb_target_obs]: Likewise.
1641 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1643 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1644 linux_get_siginfo_type.
1646 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1648 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1650 (call_function_by_hand) <ON_STACK>: Call write_memory with
1651 gdbarch_breakpoint_from_pc, if possible.
1652 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1655 2012-07-31 Yao Qi <yao@codesourcery.com>
1657 * tracepoint.c: Add 'static' for some variables.
1659 2012-07-31 Yao Qi <yao@codesourcery.com>
1661 * go32-nat.c: Declare _initialize_go32_nat.
1662 * ser-go32.c: Declare _initialize_ser_dos.
1663 * top.c (do_chdir_cleanup): Add 'static'.
1665 2012-07-30 Keith Seitz <keiths@redhat.com>
1667 * linespec.c (linespec_lex_number): A number followed
1668 by quotes is a valid number, too.
1670 2012-07-30 Tom Tromey <tromey@redhat.com>
1672 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1674 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1676 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1677 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1679 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1681 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1682 invalid or reevaluated to prevent prevent references to possibly
1683 delete'd type objects being left in the varobj.
1685 2012-07-27 Tom Tromey <tromey@redhat.com>
1686 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * copying.awk: Print buffer-read-only and vi ro markers.
1689 * copying.c: Rebuild.
1690 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1691 * gdbarch.c, gdbarch.h: Rebuild.
1692 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1693 buffer-read-only and vi ro markers.
1694 * features/arm-with-iwmmxt.c: Rebuild.
1695 * features/arm-with-m-fpa-layout.c: Rebuild.
1696 * features/arm-with-m-vfp-d16.c: Rebuild.
1697 * features/arm-with-m.c: Rebuild.
1698 * features/arm-with-neon.c: Rebuild.
1699 * features/arm-with-vfpv2.c: Rebuild.
1700 * features/arm-with-vfpv3.c: Rebuild.
1701 * features/i386/amd64-avx-linux.c: Rebuild.
1702 * features/i386/amd64-avx.c: Rebuild.
1703 * features/i386/amd64-linux.c: Rebuild.
1704 * features/i386/amd64.c: Rebuild.
1705 * features/i386/i386-avx-linux.c: Rebuild.
1706 * features/i386/i386-avx.c: Rebuild.
1707 * features/i386/i386-linux.c: Rebuild.
1708 * features/i386/i386-mmx-linux.c: Rebuild.
1709 * features/i386/i386-mmx.c: Rebuild.
1710 * features/i386/i386.c: Rebuild.
1711 * features/i386/x32-avx-linux.c: Rebuild.
1712 * features/i386/x32-avx.c: Rebuild.
1713 * features/i386/x32-linux.c: Rebuild.
1714 * features/i386/x32.c: Rebuild.
1715 * features/mips-dsp-linux.c: Rebuild.
1716 * features/mips-linux.c: Rebuild.
1717 * features/mips64-dsp-linux.c: Rebuild.
1718 * features/mips64-linux.c: Rebuild.
1719 * features/rs6000/powerpc-32.c: Rebuild.
1720 * features/rs6000/powerpc-32l.c: Rebuild.
1721 * features/rs6000/powerpc-403.c: Rebuild.
1722 * features/rs6000/powerpc-403gc.c: Rebuild.
1723 * features/rs6000/powerpc-405.c: Rebuild.
1724 * features/rs6000/powerpc-505.c: Rebuild.
1725 * features/rs6000/powerpc-601.c: Rebuild.
1726 * features/rs6000/powerpc-602.c: Rebuild.
1727 * features/rs6000/powerpc-603.c: Rebuild.
1728 * features/rs6000/powerpc-604.c: Rebuild.
1729 * features/rs6000/powerpc-64.c: Rebuild.
1730 * features/rs6000/powerpc-64l.c: Rebuild.
1731 * features/rs6000/powerpc-7400.c: Rebuild.
1732 * features/rs6000/powerpc-750.c: Rebuild.
1733 * features/rs6000/powerpc-860.c: Rebuild.
1734 * features/rs6000/powerpc-altivec32.c: Rebuild.
1735 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1736 * features/rs6000/powerpc-altivec64.c: Rebuild.
1737 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1738 * features/rs6000/powerpc-cell32l.c: Rebuild.
1739 * features/rs6000/powerpc-cell64l.c: Rebuild.
1740 * features/rs6000/powerpc-e500.c: Rebuild.
1741 * features/rs6000/powerpc-e500l.c: Rebuild.
1742 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1743 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1744 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1745 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1746 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1747 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1748 * features/rs6000/powerpc-vsx32.c: Rebuild.
1749 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1750 * features/rs6000/powerpc-vsx64.c: Rebuild.
1751 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1752 * features/rs6000/rs6000.c: Rebuild.
1753 * features/s390-linux32.c: Rebuild.
1754 * features/s390-linux32v1.c: Rebuild.
1755 * features/s390-linux32v2.c: Rebuild.
1756 * features/s390-linux64.c: Rebuild.
1757 * features/s390-linux64v1.c: Rebuild.
1758 * features/s390-linux64v2.c: Rebuild.
1759 * features/s390x-linux64.c: Rebuild.
1760 * features/s390x-linux64v1.c: Rebuild.
1761 * features/s390x-linux64v2.c: Rebuild.
1762 * features/tic6x-c62x-linux.c: Rebuild.
1763 * features/tic6x-c62x.c: Rebuild.
1764 * features/tic6x-c64x-linux.c: Rebuild.
1765 * features/tic6x-c64x.c: Rebuild.
1766 * features/tic6x-c64xp-linux.c: Rebuild.
1767 * features/tic6x-c64xp.c: Rebuild.
1769 2012-07-27 Tom Tromey <tromey@redhat.com>
1771 * c-exp.y (classify_name): Avoid assignment in condition.
1773 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1775 * amd64-windows-tdep.c: Include "frame.h".
1776 (amd64_windows_skip_trampoline_code): New function.
1777 (amd64_windows_init_abi): Add trampoline registration.
1779 2012-07-27 Yao Qi <yao@codesourcery.com>
1781 * tracepoint.c (cur_traceframe_number): Remove.
1782 (set_tfile_traceframe): Remove.
1783 (tfile_trace_find, tfile_fetch_registers): Update callers.
1784 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1785 (tfile_open, tfile_trace_find): Likewise.
1787 2012-07-27 Yao Qi <yao@codesourcery.com>
1789 * thread.c (switch_to_thread): Don't call registers_changed.
1791 2012-07-26 Tom Tromey <tromey@redhat.com>
1793 * Makefile.in (SFILES): Remove objc-exp.y.
1794 (YYFILES): Remove objc-exp.c.
1795 (YYOBJ): Remove objc-exp.o.
1796 (local-maintainer-clean): Don't mention objc-exp.c.
1797 * c-exp.y: Include objc-lang.h.
1798 (%union) <class>: New field.
1799 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1800 (exp): Clone subscript production for OBJC_LBRAC. Add various
1801 Objective C productions.
1802 (msglist, msgarglist, msgarg): New productions.
1803 (array_mod, func_mod, operator): Clone productions for
1805 (parse_string_or_char): Handle '@' strings.
1806 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1807 (classify_name): Check la_name_of_this. Recognize ObjC class
1809 * objc-exp.y: Remove.
1810 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1811 * objc-lang.h (objc_parse, objc_error): Don't declare.
1813 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1815 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1817 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1819 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1822 2012-07-26 Tom Tromey <tromey@redhat.com>
1824 * copying.c: Rebuild.
1825 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1828 2012-07-26 Tom Tromey <tromey@redhat.com>
1830 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1832 (print_objfile_statistics): Likewise.
1833 (maintenance_print_symbols): Likewise.
1834 (maintenance_print_msymbols): Likewise.
1835 (maintenance_print_objfiles): Likewise.
1836 * psymtab.c (print_partial_symbols): Call QUIT.
1837 (maintenance_print_psymbols): Likewise. Don't modify
1839 * copying.c (show_copying_command): Don't modify immediate_quit.
1840 (show_warranty_command): Likewise.
1841 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1843 2012-07-26 Keith Seitz <keiths@redhat.com>
1845 * linespec.c (linespec_lexer_lex_number): The input
1846 is also a valid number if the next character is a comma
1849 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1851 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1854 2012-07-26 Tristan Gingold <gingold@adacore.com>
1856 * machoread.c: Include gdb_bfd.h.
1858 2012-07-26 Tristan Gingold <gingold@adacore.com>
1860 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1863 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1865 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1867 (dwarf2_evaluate_loc_desc): Likewise.
1868 (dwarf2_loc_desc_needs_frame): Likewise.
1869 (locexpr_describe_location_1): Likewise.
1870 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1872 (struct dwarf2_loclist_baton): Likewise.
1873 * dwarf2read.c (struct dwarf_block): Likewise.
1874 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1875 (decode_locdesc): Expand SIZE and I to size_t.
1877 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1879 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1881 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1883 * doublest.c (convert_doublest_to_floatformat): If the exponent
1884 is too small, treat the value as zero. If the exponent is too
1885 large, treat the value as infinity.
1887 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1889 * configure.ac: Add --enable-lmcheck configure option.
1890 * configure: Regenerate.
1892 2012-07-25 Tom Tromey <tromey@redhat.com>
1894 * NEWS: Mention maint info bfds.
1895 * gdb_bfd.c (all_bfds): New global.
1896 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1897 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1900 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1902 * configure.tgt: Add v850*-*-rtems*.
1904 2012-07-25 Tom Tromey <tromey@redhat.com>
1906 * macrotab.c (macro_bcache_str): Remove cast.
1908 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1910 * linespec.c (linespec_lexer_lex_number): Update comments,
1911 change the return and add check to make sure the input is
1912 the decimal numbers.
1913 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1914 false, call linespec_lexer_lex_string.
1916 2012-07-24 Tom Tromey <tromey@redhat.com>
1918 * symfile.c (symbol_file_add): Don't open BFD twice.
1920 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1922 * breakpoint.c (create_breakpoint): Store condition for pending
1925 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1927 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1928 (m68k_return_value): Handle complex types like structures.
1929 (m68k_svr4_return_value): Likewise.
1931 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1933 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1934 parameters to bfd_get_section_name.
1936 2012-07-24 Yao Qi <yao@codesourcery.com>
1938 * cli/cli-setshow.c: Handle case 'var_uinteger'
1939 and 'var_zuninteger' together. Handle case 'var_integer' and
1940 'var_zinteger' together.
1942 2012-07-23 Keith Seitz <keiths@redhat.com>
1944 * linespec.c (convert_linespec_to_sal): Don't add
1945 any symbols to the result vector if symbol_to_sal
1948 2012-07-23 Keith Seitz <keiths@redhat.com>
1950 * linespec.c (decode_objc): Record the function name
1953 2012-07-23 Tom Tromey <tromey@redhat.com>
1955 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1957 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1958 (map_vmap): Acquire a reference to the BFD.
1960 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1962 * p-valprint.c (pascal_object_print_value): Replace potentially
1963 unsafe alloca with xmalloc/xfree.
1964 * valops.c (search_struct_method): Likewise.
1966 2012-07-23 Tom Tromey <tromey@redhat.com>
1968 * solib-svr4.c (enable_break): Update.
1969 * bfd-target.h (target_bfd_reopen): Update documentation.
1971 2012-07-23 Tom Tromey <tromey@redhat.com>
1973 * symfile.c (separate_debug_file_exists): Update.
1974 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1975 (reread_symbols): Update.
1976 * elfread.c (build_id_verify): Update.
1977 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1978 bfd_open_maybe_remote.
1980 2012-07-23 Tom Tromey <tromey@redhat.com>
1982 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1984 2012-07-23 Tom Tromey <tromey@redhat.com>
1986 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1988 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1990 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1991 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1993 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1994 * objfiles.c (allocate_objfile): Acquire a new reference.
1995 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1996 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1997 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1998 a cleanup for 'nbfd'.
1999 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2001 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2002 make a cleanup for 'abfd'.
2003 (symbol_file_add): Make a BFD cleanup.
2005 2012-07-23 Tom Tromey <tromey@redhat.com>
2007 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2008 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2009 * corelow.c (core_open): Use gdb_bfd_fopen.
2010 * dsrec.c (load_srec): Use gdb_bfd_openr.
2011 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2012 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2013 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2014 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2015 (gdb_bfd_fdopenr): New functions.
2016 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2017 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2018 (gdb_bfd_fdopenr): Declare.
2019 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2020 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2021 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2022 gdb_bfd_openr_next_archived_file.
2023 (macho_check_dsym): Use gdb_bfd_openr.
2024 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2025 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2026 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2027 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2029 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2030 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2031 gdb_bfd_openr_next_archived_file.
2032 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2034 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2036 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2037 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2038 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2039 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2040 (symfile_bfd_open): Use gdb_bfd_fopen.
2041 (generic_load): Use gdb_bfd_openr.
2042 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2044 2012-07-23 Tom Tromey <tromey@redhat.com>
2046 * bfd-target.c (target_bfd_reopen): Update.
2047 * cli/cli-dump.c (bfd_openr_with_cleanup)
2048 (bfd_openw_with_cleanup): Update.
2049 * corelow.c (core_open): Update.
2050 * dsrec.c (load_srec): Update.
2051 * exec.c (exec_file_attach): Update.
2052 * gcore.c (create_gcore_bfd): Update.
2053 * gdb_bfd.c (gdb_bfd_ref): Return void.
2054 (gdb_bfd_open): Update.
2055 * gdb_bfd.h (gdb_bfd_ref): Return void.
2057 * jit.c (jit_bfd_try_read_symtab): Update.
2058 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2059 * machoread.c (macho_symfile_read_all_oso): Update.
2060 (macho_check_dsym): Update.
2061 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2062 * remote-m32r-sdi.c (m32r_load): Update.
2063 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2064 * rs6000-nat.c (add_vmap): Update.
2065 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2067 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2068 * solib-spu.c (spu_bfd_open): Update.
2069 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2070 * spu-linux-nat.c (spu_bfd_open): Update.
2071 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2072 (generic_load): Update.
2073 * windows-nat.c (windows_make_so): Update.
2075 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2077 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2079 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2081 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2082 SIGTRAMP_FRAME unwinding.
2084 2012-07-20 Doug Evans <dje@google.com>
2086 * NEWS: Document new options "set/show use-deprecated-index-sections",
2087 and delete reference to --use-deprecated-index-sections.
2088 * symfile.h (use_deprecated_index_sections): Delete.
2089 * dwarf2read.c (use_deprecated_index_sections): Make static.
2090 (read_index_from_section): Update wording of how to load
2091 deprecated index sections.
2092 (_initialize_dwarf2_read): New options
2093 "set/show use-deprecated-index-sections".
2094 * main.c (captured_main): Delete --use-deprecated-index-sections.
2096 2012-07-20 Pedro Alves <palves@redhat.com>
2101 * infrun.c (handle_inferior_event) <new thread>: Don't special
2102 case minus_one_ptid.
2103 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2104 * linux-thread-db.c (thread_get_info_callback): Don't return early
2105 if the thread is zombie.
2106 (thread_from_lwp): Change return type to void. Rewrite stale
2108 (attach_thread): Don't return early if the thread is zombie,
2109 instead set its "dying" flag.
2110 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2111 (find_new_threads_callback): Don't return early if the thread is
2114 2012-07-20 Pedro Alves <palves@redhat.com>
2116 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2117 * target.c (target_wait): Likewise.
2118 (str_comma_list_concat_elem, do_option, target_options_to_string):
2120 * target.h (target_options_to_string): Declare.
2122 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2123 Tom Tromey <tromey@redhat.com>
2125 * dwarf2read.c (dwarf_decode_macros)
2126 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2127 DW_MACRO_GNU_transparent_include_alt>: New cases.
2128 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2129 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2131 2012-07-20 Tom Tromey <tromey@redhat.com>
2133 * dwarf2read.c (try_open_dwo_file): Don't call
2134 gdb_bfd_stash_filename.
2136 2012-07-20 Pedro Alves <palves@redhat.com>
2138 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2139 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2140 (i386_process_record): Tweak description comments.
2142 2012-07-20 Pedro Alves <palves@redhat.com>
2144 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2145 (i386_process_record): Use record_read_memory.
2146 * record.c (record_read_memory): New function.
2147 (record_arch_list_add_mem, record_exec_insn): Use
2149 * record.h (record_read_memory): Declare.
2151 2012-07-20 Yao Qi <yao@codesourcery.com>
2153 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2156 2012-07-19 Pedro Alves <palves@redhat.com>
2158 * record.c (record_resume): Ask the target beneath to report all
2161 2012-07-19 Doug Evans <dje@google.com>
2163 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2164 there's no section at address zero.
2165 (dwarf2_record_block_ranges): Ditto.
2167 2012-07-19 Yao Qi <yao@codesourcery.com>
2169 * command.h, remote.c: Fix a typo in comment.
2171 2012-07-19 Tom Tromey <tromey@redhat.com>
2174 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2175 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2176 OP_DECLTYPE>: New cases.
2177 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2178 (type_exp): Add new productions.
2179 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2181 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2183 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2184 OP_DECLTYPE>: New case.
2185 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2187 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2188 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2190 2012-07-19 Tom Tromey <tromey@redhat.com>
2192 * c-exp.y (enum token_flags): New.
2193 (struct token) <cxx_only>: Remove.
2195 (tokentab3, tokentab2, ident_tokens): Update.
2196 (lex_one_token): Update. Handle FLAG_SHADOW.
2198 2012-07-19 Tom Tromey <tromey@redhat.com>
2200 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2201 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2202 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2203 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2204 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2205 type_exp production where appropriate.
2206 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2207 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2208 <UNOP_MEMVAL_TYPE>: New case.
2209 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2210 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2211 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2212 <UNOP_MEMVAL_TYPE>: New case.
2213 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2214 UNOP_REINTERPRET_CAST>: Update.
2215 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2216 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2217 UNOP_REINTERPRET_CAST>: Update.
2218 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2219 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2220 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2223 2012-07-19 Yao Qi <yao@codesourcery.com>
2224 Jan Kratochvil <jan.kratochvil@redhat.com>
2226 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2227 and case 'var_optional_filename' together.
2228 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2229 instead of add_setshow_optional_filename_cmd for setshow command
2230 'args'. Set completer for 'set args'.
2232 2012-07-18 Doug Evans <dje@google.com>
2234 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2235 * common/gdb_vecs.c: New file, contents from utils.c.
2236 * common/host-defs.h: New file, contents from defs.h.
2237 * utils.h: New file, contents from defs.h.
2238 * defs.h: Move all declarations of objects defined in utils.c
2239 to utils.h (except QUIT() and related).
2240 #include "utils.h", "host-defs.h".
2241 * probe.h (probe_p): Move here from gdb_vecs.h.
2242 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2243 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2244 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2245 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2246 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2247 (COMMON_OBS): Add gdb_vecs.o.
2248 (gdb_vecs.o): New rule.
2250 2012-07-18 Keith Seitz <keiths@redhat.com>
2252 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2253 parameter. If non-zero, use SYMNAME as the canonical name
2256 (convert_linespec_to_sals): Use add_sal_to_sals for
2258 (decode_line_full): No need to "fill in missing canonical names"
2259 anymore. Simply make cleanups for the allocated names.
2261 2012-07-18 Keith Seitz <keiths@redhat.com>
2263 * linespec.c (struct linespec): Constify expression,
2264 source_filename, function_name, and label_name.
2265 (symbol_not_found_error): Make all parameters const.
2266 (linespec_parser_delete): No need to check for NULL
2267 when using xfree. Cast const char * to char * for xfree.
2269 2012-07-18 Keith Seitz <keiths@redhat.com>
2271 * breakpoint.c (invalid_thread_id_error): New function.
2272 (find_condition_and_thread): Use invalid_thread_id_error.
2273 (watch_command_1): Likewise.
2275 2012-07-18 Tom Tromey <tromey@redhat.com>
2277 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2278 * contrib/cc-with-tweaks.sh: New file.
2280 2012-07-18 Tom Tromey <tromey@redhat.com>
2282 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2283 (locate_dwz_sections): Recognize .gdb_index.
2284 (create_cus_from_index_list): New function.
2285 (create_cus_from_index): Use it. Handle .dwz data.
2286 (read_index_from_section): New function, extracted from
2288 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2291 2012-07-18 Tom Tromey <tromey@redhat.com>
2293 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2294 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2295 <is_dwz>: New field.
2296 (struct dwz_file): New.
2297 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2298 (locate_dwz_sections, dwarf2_get_dwz_file)
2299 (get_abbrev_section_for_cu): New functions.
2300 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2301 (read_and_check_type_unit_head): Add abbrev_section argument.
2302 (create_debug_types_hash_table): Update.
2303 (init_cutu_and_read_dies): Use proper abbrev section.
2304 (init_cutu_and_read_dies_no_follow): Likewise.
2305 (set_partial_user): Do nothing if PST==NULL.
2306 (read_comp_units_from_section): New function.
2307 (create_all_comp_units): Use it.
2308 (scan_partial_symbols, partial_die_parent_scope): Update.
2309 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2310 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2311 (find_partial_die): Add offset_in_dwz argument. Update.
2312 (guess_partial_die_structure_name, fixup_partial_die): Update.
2313 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2314 DW_FORM_GNU_strp_alt.
2315 (read_indirect_string_from_dwz): New function.
2316 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2317 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2318 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2319 (follow_die_offset): Add offset_in_dwz argument.
2320 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2321 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2322 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2323 Handle new macro forms.
2324 (dwarf_decode_macros): Update.
2325 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2326 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2327 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2328 (create_debug_types_hash_table): Use correct abbrev section.
2329 (get_debug_line_section): New function.
2330 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2331 (process_full_comp_unit): Pass 'required' argument to
2332 end_symtab_get_static_block.
2333 * buildsym.h (end_symtab_get_static_block): Update.
2334 * buildsym.c (end_symtab_get_static_block): Add 'required'
2336 (end_symtab, end_expandable_symtab): Update.
2338 2012-07-18 Tom Tromey <tromey@redhat.com>
2340 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2342 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2343 (zlib_decompress_section): Remove.
2344 (dwarf2_read_section): Use gdb_bfd_map_section.
2345 (munmap_section_buffer): Remove.
2346 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2347 munmap_section_buffer.
2348 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2349 (struct gdb_bfd_section_data): New.
2350 (free_one_bfd_section): New function.
2351 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2352 (get_section_descriptor, zlib_decompress_section)
2353 (gdb_bfd_map_section): New functions.
2354 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2356 2012-07-18 Tom Tromey <tromey@redhat.com>
2358 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2360 2012-07-18 Tom Tromey <tromey@redhat.com>
2362 * gdb_bfd.c (struct gdb_bfd_data): New.
2363 (gdb_bfd_cache): New global.
2364 (struct gdb_bfd_cache_search): New.
2365 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2366 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2367 * gdb_bfd.h (gdb_bfd_open): Declare.
2369 2012-07-18 Tom Tromey <tromey@redhat.com>
2371 * utils.c (make_cleanup_bfd_unref): Rename from
2372 make_cleanup_bfd_close.
2373 * defs.h (make_cleanup_bfd_unref): Rename from
2374 make_cleanup_bfd_close.
2375 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2376 (bfd_openw_with_cleanup): Update.
2377 * corelow.c (core_open): Update.
2378 * dsrec.c (load_srec): Update.
2379 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2380 * remote-m32r-sdi.c (m32r_load): Update.
2381 * remote-mips.c (mips_load_srec): Update.
2382 (pmon_load_fast): Update.
2383 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2385 (darwin_bfd_open): Update.
2386 * solib.c (solib_bfd_fopen): Update.
2387 * symfile-mem.c (symbol_file_add_from_memory): Update.
2388 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2389 (symfile_bfd_open): Update.
2390 (generic_load): Update.
2392 2012-07-18 Tom Tromey <tromey@redhat.com>
2394 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2395 (pmon_load_fast): Likewise.
2396 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2397 (m32r_upload_command): Likewise.
2398 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2399 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2400 Use make_cleanup_bfd_close.
2402 2012-07-18 Tom Tromey <tromey@redhat.com>
2404 * symfile.c (symfile_bfd_open): Don't copy name. Call
2405 gdb_bfd_stash_filename.
2406 (load_command): Open the new BFD before freeing the old.
2407 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2408 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2409 Call gdb_bfd_stash_filename.
2410 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2411 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2412 gdb_bfd_stash_filename.
2413 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2414 Free found_pathname.
2415 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2416 gdb_bfd_stash_filename.
2417 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2418 * machoread.c (macho_add_oso_symfile): Call
2419 gdb_bfd_stash_filename.
2420 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2421 gdb_bfd_stash_filename.
2422 (macho_check_dsym): Don't copy filename. Call
2423 gdb_bfd_stash_filename.
2424 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2425 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2426 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2427 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2428 * exec.c (exec_close): Don't free the BFD's filename.
2429 (exec_file_attach): Don't copy the filename. Call
2430 gdb_bfd_stash_filename.
2431 * corelow.c (core_close): Don't free the BFD's filename.
2432 (core_open): Call gdb_bfd_stash_filename.
2433 * corefile.c (reopen_exec_file): Remove #if 0 code.
2434 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2436 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2438 2012-07-18 Tom Tromey <tromey@redhat.com>
2440 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2442 (free_dwo_file): Use gdb_bfd_unref.
2443 * cli/cli-dump.c: Include gdb_bfd.h.
2444 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2445 (bfd_openr_with_cleanup): Likewise.
2446 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2448 * utils.c: Include gdb_bfd.h.
2449 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2450 * symfile.c: Include gdb_bfd.h.
2451 (separate_debug_file_exists): Use gdb_bfd_unref.
2452 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2453 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2454 (generic_load): Use gdb_bfd_ref.
2455 (reread_symbols): Use gdb_bfd_unref.
2456 * symfile-mem.c: Include gdb_bfd.h.
2457 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2458 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2459 * solib.c: Include gdb_bfd.h.
2460 (solib_bfd_fopen): Use gdb_bfd_ref.
2461 (solib_bfd_open): Use gdb_bfd_unref.
2462 (free_so_symbols): Use gdb_bfd_unref.
2463 (reload_shared_libraries_1): Use gdb_bfd_unref.
2464 * solib-spu.c: Include gdb_bfd.h.
2465 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2466 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2468 * solib-frv.c: Include gdb_bfd.h.
2469 (enable_break2): Use gdb_bfd_unref.
2470 * solib-dsbt.c: Include gdb_bfd.h.
2471 (enable_break2): Use gdb_bfd_unref.
2472 * solib-darwin.c: Include gdb_bfd.h.
2473 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2475 (darwin_bfd_open): Use gdb_bfd_unref.
2476 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2477 * remote-mips.c: Include gdb_bfd.h.
2478 (mips_load_srec): Use gdb_bfd_ref.
2479 (pmon_load_fast): Use gdb_bfd_ref.
2480 * remote-m32r-sdi.c: Include gdb_bfd.h.
2481 (m32r_load): Use gdb_bfd_ref.
2482 * record.c: Include gdb_bfd.h.
2483 (record_save_cleanups): Use gdb_bfd_unref.
2484 (cmd_record_save): Use gdb_bfd_unref.
2485 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2487 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2488 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2489 * objfiles.c: Include gdb_bfd.h.
2490 (free_objfile): Use gdb_bfd_unref.
2491 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2493 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2494 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2495 (macho_check_dsym): Likewise.
2496 * m32r-rom.c: Include gdb_bfd.h.
2497 (m32r_load): Use gdb_bfd_ref.
2498 (m32r_upload_command): Use gdb_bfd_ref.
2499 * jit.c: Include gdb_bfd.h.
2500 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2501 * gdb_bfd.h: New file.
2502 * gdb_bfd.c: New file.
2503 * gcore.c: Include gdb_bfd.h.
2504 (create_gcore_bfd): Use gdb_bfd_ref.
2505 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2506 (gcore_command): Use gdb_bfd_unref.
2507 * exec.c: Include gdb_bfd.h.
2508 (exec_close): Use gdb_bfd_unref.
2509 (exec_close_1): Use gdb_bfd_unref.
2510 (exec_file_attach): Use gdb_bfd_ref.
2511 * elfread.c: Include gdb_bfd.h.
2512 (build_id_verify): Use gdb_bfd_unref.
2513 * dsrec.c: Include gdb_bfd.h.
2514 (load_srec): Use gdb_bfd_ref.
2515 * corelow.c: Include gdb_bfd.h.
2516 (core_close): Use gdb_bfd_unref.
2517 (core_open): Use gdb_bfd_ref.
2518 * bfd-target.c: Include gdb_bfd.h.
2519 (target_bfd_xclose): Use gdb_bfd_unref.
2520 (target_bfd_reopen): Use gdb_bfd_ref.
2521 * Makefile.in (SFILES): Add gdb_bfd.c.
2522 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2523 (COMMON_OBS): Add gdb_bfd.o.
2525 2012-07-18 Keith Seitz <keiths@redhat.com>
2527 * breakpoint.c (find_condition_and_thread): Initialize
2529 (create_breakpiont): find_condition_and_thread will now
2530 initialize COND_STRING, THREAD, and REST (and TASK).
2531 (addr_string_to_sals): Likewise.
2533 2012-07-18 Pedro Alves <palves@redhat.com>
2535 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2536 Pull the single step breakpoints out of the target.
2538 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2540 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2541 * stap-probe.c (compile_probe_arg): Likewise.
2543 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2545 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2546 (elf_compile_to_ax): Likewise.
2547 * infrun.c (insert_exception_resume_from_probe): Likewise.
2548 (check_exception_resume): Remove `objfile' variable.
2549 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2550 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2551 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2552 (compare_entries): Rename to...
2553 (compare_probes): ...this. Adjust function to work with
2554 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2556 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2558 (print_ui_out_info): Adjust argument to be `struct probe *'.
2559 (info_probes_for_ops): Adjust internal computations to use
2561 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2562 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2563 gen_info_probes_table_values>: Remove `objfile' argument.
2564 (struct probe) <objfile>: New field.
2565 (find_probe_by_pc): Remove `objfile' argument.
2566 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2567 (stap_get_probe_argument_count): Likewise.
2568 (stap_get_arg): Likewise.
2569 (stap_evaluate_probe_argument): Likewise.
2570 (stap_compile_to_ax): Likewise.
2571 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2572 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2573 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2574 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2575 sym_compile_to_ax>: Likewise.
2577 2012-07-18 Terry Guo <terry.guo@arm.com>
2580 * defs.h (GDB_MI_MSG_WIDTH): New.
2581 * ser_base (ser_base_read_error_fd): New function.
2582 (do_ser_base_readchar): Poll error file descriptor as well as
2584 (generic_readchar): Refactor error handling.
2586 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2588 * NEWS: Create a new section for the next release branch.
2589 Rename the section of the current branch, now that it has
2592 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2594 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2595 * version.in: Bump version to 7.5.50.20120718-cvs.
2597 2012-07-17 Keith Seitz <keiths@redhat.com>
2599 * linespec.c (linespec_parse_line_offset): Make parameter
2602 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2605 * f-valprint.c (info_common_command): New variable frame_id.
2606 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2607 * printcmd.c (print_variable_and_value): Extend function comment.
2608 Add comment for invalidated FRAME.
2609 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2610 FI form FRAME_ID after each print_frame_local_vars.
2611 (struct print_variable_and_value_data): Change frame to frame_id.
2612 (do_print_variable_and_value): New variable frame, initialize it from
2613 p->frame_id. Add comment for invalidated FRAME.
2614 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2615 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2616 for invalidated FRAME.
2618 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2619 Pedro Alves <palves@redhat.com>
2621 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2624 2012-07-16 Tom Tromey <tromey@redhat.com>
2626 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2628 2012-07-15 Doug Evans <dje@google.com>
2630 * dwarf2read.c (stmt_list_hash): New struct.
2631 (type_unit_group): Embed "per_cu" member, remove pointer.
2632 New union member "t", move member "tus" into it, all uses updated.
2633 New member "hash", replaces member "line_offset, all uses updated.
2634 (quick_file_names): Replace member "offset" with "hash", all uses
2636 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2637 (hash_file_name_entry, eq_file_name_entry): Call them.
2638 (hash_type_unit_group, eq_type_unit_group): Ditto.
2639 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2640 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2641 (dw2_get_file_names): Update.
2642 (create_type_unit_group): Replace "per_cu" arg with "cu".
2643 All callers updated. Fix "quick" (.gdb_index) handling.
2644 (get_type_unit_group): Replace "per_cu" arg with "cu".
2645 All callers updated.
2646 (build_type_unit_groups): Don't reset tu_stats.
2648 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2649 "tab_cur_size". Change member "tab" to be a htab_t.
2650 (create_filename_seen_cache): Update.
2651 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2652 (filename_seen): Update.
2654 2012-07-13 Doug Evans <dje@google.com>
2656 * symtab.c (filename_seen): Update comment.
2658 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2659 Doug Evans <dje@google.com>
2661 * buildsym.c (end_symtab_1): Split it to ...
2662 (end_symtab_get_static_block): ... this ...
2663 (end_symtab_from_static_block): ... and this function.
2664 (end_symtab, end_expandable_symtab): Call them.
2665 * buildsym.h (end_symtab_get_static_block)
2666 (end_symtab_from_static_block): New declarations.
2667 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2668 Set its valid CU ranges.
2670 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2672 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2673 DW_OP_GNU_parameter_ref.
2675 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2677 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2678 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2680 2012-07-13 Doug Evans <dje@google.com>
2682 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2683 (filename_seen_cache): New struct.
2684 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2685 (create_filename_seen_cache): New function.
2686 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2687 (filename_seen): Delete arg "first". New arg "cache". All callers
2689 (output_source_filename_data): New struct.
2690 (output_source_filename): Delete arg "first". New arg "data".
2691 All callers updated.
2692 (sources_info): Delete local "first". New locals "data", "cleanups".
2693 Rewrite to use filename_seen_cache.
2694 (add_partial_filename_data): Delete member "first". New member
2695 "filename_seen_cache". All uses updated.
2696 (make_source_files_completion_list): Rewrite to use
2697 filename_seen_cache.
2699 2012-07-12 Doug Evans <dje@google.com>
2701 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2703 2012-07-10 Doug Evans <dje@google.com>
2706 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2707 all_type_unit_groups, type_unit_groups, tu_stats.
2708 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2709 All uses updated. Add type_unit_group to union "s".
2710 (type_unit_group): New struct.
2711 (IS_TYPE_UNIT_GROUP): New macro.
2712 (abbrev_table): Delete unused member "section".
2713 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2714 (dw2_get_cu): Assert not used with type_unit_group.
2715 (dw2_get_primary_cu): New function.
2716 (dw2_build_type_unit_groups_reader): New function.
2717 (dw2_build_type_unit_groups): New function.
2718 (dw2_get_file_names): Assert not called on type units.
2719 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2720 Redo loop to iterate over type unit groups instead of type units.
2721 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2722 (read_abbrev_offset): New function.
2723 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2725 (create_partial_symtab): New function.
2726 (process_psymtab_comp_unit_reader): Assert not used with type units.
2727 Call create_partial_symtab.
2728 (process_psymtab_type_unit): Delete.
2729 (hash_type_unit_group, eq_type_unit_group): New functions.
2730 (allocate_type_unit_groups_table): New function.
2731 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2732 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2733 (create_type_unit_group, get_type_unit_group): New functions.
2734 (tu_abbrev_offset): New struct.
2735 (sort_tu_by_abbrev_offset): New function.
2736 (add_type_unit_group_to_table): New function.
2737 (build_type_unit_groups): New function.
2738 (build_type_psymtabs_reader): New function.
2739 (build_type_psymtab_dependencies): New function.
2740 (build_type_psymtabs): Rewrite.
2741 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2742 is seen in a type unit.
2743 (process_queue): Move symtab expansion debugging printfs here.
2744 Call process_full_type_unit for type units.
2745 (compute_symtab_includes): Assert not called for type units.
2746 (process_cu_includes): Don't call compute_symtab_includes for
2748 (process_full_type_unit): New function.
2749 (process_imported_unit_die): Flag an error if called for type units.
2750 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2751 updated. Assert not called for type units.
2752 (read_file_scope): Call dwarf2_start_symtab.
2753 (setup_type_unit_groups): New function.
2754 (read_type_unit_scope): Rewrite.
2755 (abbrev_table_read_table): Initialize abbrev_table->offset.
2756 (abbrev_table_free_cleanup): New function.
2757 (dwarf2_start_symtab): New function.
2758 (load_full_type_unit): Assert not called for type unit groups.
2759 * buildsym.c (finish_block_internal): New arg "expandable".
2760 All callers updated.
2761 (start_symtab): Move most contents to ...
2762 (restart_symtab): ... here. New function.
2763 (reset_symtab_globals): New function.
2764 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2765 Call reset_symtab_globals.
2766 (end_symtab, end_expandable_symtab): New functions.
2767 (set_missing_symtab, augment_type_symtab): New functions.
2768 * buildsym.h (end_expandable_symtab): Declare.
2769 (augment_type_symtab, restart_symtab): Declare.
2770 * psympriv.h (struct partial_symtab): New member "anonymous".
2771 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2773 (read_psymtabs_with_filename): Ditto.
2774 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2775 (expand_symtabs_matching_via_partial): Ditto.
2776 (dump_psymtab): Update.
2777 * dictionary.c (dict_add_pending): New function.
2778 * dictionary.h (dict_add_pending): Declare.
2780 2012-07-09 Doug Evans <dje@google.com>
2782 * buildsym.c (start_subfile): Remove unnecessary check for
2785 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2787 * dwarf2read.c (load_full_type_unit): Simplify.
2789 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2790 to struct signatured_type **. All uses updated.
2792 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2793 All callers updated.
2795 2012-07-09 Tom Tromey <tromey@redhat.com>
2797 * c-exp.y (check_parameter_typelist): New function.
2798 (parameter_typelist): Call it.
2799 * eval.c (make_params): Handle '(void)' case.
2800 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2803 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2805 * common/linux-ptrace.c: Include gdb_assert.h.
2806 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2807 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2809 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2811 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2812 * linux-nat.c (linux_child_post_attach)
2813 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2815 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2818 nptl <2.7 bug workaround for core files.
2820 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2824 (save_siginfo): Remove.
2825 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2827 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2828 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2829 * linux-nat.h (struct lwp_info): Remove field siginfo.
2831 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2833 Code cleanup for the next patch.
2834 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2835 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2837 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2838 (ia64_linux_stopped_data_address):
2839 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2841 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2842 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2843 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2846 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2849 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2850 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2852 2012-07-06 Tom Tromey <tromey@redhat.com>
2854 * c-exp.y (DOTDOTDOT): New token.
2855 (func_mod, exp): Use parameter_typelist.
2856 (parameter_typelist): New production.
2857 (tokentab3): Add "..." token.
2858 * eval.c (make_params): Handle varargs.
2859 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2862 2012-07-06 Tom Tromey <tromey@redhat.com>
2865 * c-exp.y (%union) <tvec>: Change type.
2866 (func_mod): Now uses <tvec> type.
2867 (exp): Update for tvec change.
2868 (direct_abs_decl): Push the typelist.
2869 (func_mod): Return a typelist.
2870 (nonempty_typelist): Update for tvec change.
2871 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2872 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2873 * parse.c (pop_type_list): New function.
2874 (push_typelist): New function.
2875 (follow_types): Handle tp_function_with_arguments.
2876 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2877 (enum type_pieces) <tp_function_with_arguments>: New constant.
2878 (union type_stack_elt) <typelist_val>: New field.
2879 (push_typelist): Declare.
2881 2012-07-06 Tom Tromey <tromey@redhat.com>
2883 * c-exp.y (%union) <type_stack>: New field.
2884 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2885 (ptr_operator_ts): New production.
2887 * parse.c (type_stack_reserve): New function.
2888 (check_type_stack_depth): Use it.
2889 (pop_type_stack, append_type_stack, push_type_stack)
2890 (get_type_stack, type_stack_cleanup): New functions.
2891 (follow_types): Handle tp_type_stack.
2892 (_initialize_parse): Simplify initialization.
2893 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2895 (union type_stack_elt) <stack_val>: New field.
2896 (get_type_stack, append_type_stack, push_type_stack)
2897 (type_stack_cleanup): Declare.
2899 2012-07-06 Tom Tromey <tromey@redhat.com>
2901 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2903 (struct type_stack): New.
2904 * parse.c (type_stack, type_stack_size, type_stack_depth):
2906 (type_stack): New global.
2907 (parse_exp_in_context, check_type_stack_depth)
2908 (insert_into_type_stack, insert_type, push_type, push_type_int)
2909 (insert_type_address_space, pop_type, pop_type_int)
2910 (_initialize_parse): Update.
2912 2012-07-06 Tom Tromey <tromey@redhat.com>
2914 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2917 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2919 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2921 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2922 Jan Kratochvil <jan.kratochvil@redhat.com>
2924 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2925 alloca with xmalloc/xfree.
2927 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2929 * MAINTAINERS (Write After Approval): Add myself to the list.
2931 2012-07-05 Doug Evans <dje@google.com>
2933 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2935 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2937 * ax-gdb.c (cli/cli-utils.h): New include.
2938 (linespec.h): Ditto.
2939 (agent_eval_command_one): New function.
2940 (agent_command_1): Ditto.
2941 (agent_command): Call function agent_command_1.
2942 (agent_eval_command): Ditto.
2943 (_initialize_ax_gdb): Change help for "maint agent"
2944 and "maint agent-eval".
2946 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2948 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2949 * cli/cli-utils.c (check_for_argument): New function.
2950 * cli/cli-utils.h (check_for_argument): Ditto.
2952 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2954 * NEWS: Mention x32 ABI support.
2956 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2958 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2959 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2961 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2962 and pc_regnum_from_eax to -1. Update SP regnum from
2963 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2966 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2969 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2972 * dwarf2expr.h: Include gdbtypes.h.
2973 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2974 these forward declarations.
2975 (cu_offset, sect_offset): Move these ...
2976 * gdbtypes.h: Remove include dwarf2expr.h.
2977 (cu_offset, sect_offset): ... here.
2979 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2981 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2982 (amd64_linux_sigtramp_code): This.
2983 (amd64_x32_linux_sigtramp_code): New.
2984 (LINUX_SIGTRAMP_LEN): Updated.
2985 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2987 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2989 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2991 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2993 * config.in: Regenerate.
2994 * configure: Regenerate.
2995 * configure.ac: Remove check for gnu/libc-version.h.
2996 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2998 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2999 variables libc_version, libc_major and libc_minor. Replace sscanf by
3000 inferior_has_bug. Extend the comment.
3002 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3004 * linux-thread-db.c (inferior_has_bug): New function.
3005 (thread_db_find_new_threads_silently): Return boolean as checked by
3006 inferior_has_bug, describe it in the comments.
3007 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3008 earlier. Abort the initialization if it returned non-zero.
3009 (thread_db_new_objfile): Exclude debug files.
3010 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3013 2012-07-02 Doug Evans <dje@google.com>
3015 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3016 related to queue management.
3018 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3019 instead of "debug dwarf2-die" in debugging printfs.
3020 (create_debug_info_hash_table_reader): Ditto.
3021 (create_debug_info_hash_table): Ditto.
3022 (init_dwo_file): Ditto.
3023 (init_cutu_and_read_dies): Add debugging printf.
3024 (init_cutu_and_read_dies_no_follow): Ditto.
3025 (process_psymtab_comp_unit_reader): Ditto.
3027 2012-07-02 Stan Shebs <stan@codesourcery.com>
3029 Add target-side support for dynamic printf.
3030 * NEWS: Mention the additional style.
3031 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3032 (struct bp_location): New field cmd_bytecode.
3033 * breakpoint.c: Include format.h.
3034 (disconnected_dprintf): New global.
3035 (parse_cmd_to_aexpr): New function.
3036 (build_target_command_list): New function.
3037 (insert_bp_location): Call it.
3038 (remove_breakpoints_pid): Skip dprintf breakpoints.
3039 (print_one_breakpoint_location): Ditto.
3040 (dprintf_style_agent): New global.
3041 (dprintf_style_enums): Add dprintf_style_agent.
3042 (update_dprintf_command_list): Add agent case.
3043 (agent_printf_command): New function.
3044 (_initialize_breakpoint): Add new commands.
3045 * common/ax.def (printf): New bytecode.
3046 * ax.h (ax_string): Declare.
3047 * ax-gdb.h (gen_printf): Declare.
3048 * ax-gdb.c: Include cli-utils.h, format.h.
3049 (gen_printf): New function.
3050 (maint_agent_print_command): New function.
3051 (_initialize_ax_gdb): Add maint agent-printf command.
3052 * ax-general.c (ax_string): New function.
3053 (ax_print): Add printf disassembly.
3054 * Makefile.in (SFILES): Add format.c
3055 (COMMON_OBS): Add format.o.
3056 * common/format.h: New file.
3057 * common/format.c: New file.
3058 * printcmd.c: Include format.h.
3059 (ui_printf): Call parse_format_string.
3060 * remote.c (remote_state): New field breakpoint_commands.
3061 (PACKET_BreakpointCommands): New enum.
3062 (remote_breakpoint_commands_feature): New function.
3063 (remote_protocol_features): Add new BreakpointCommands entry.
3064 (remote_can_run_breakpoint_commands): New function.
3065 (remote_add_target_side_commands): New function.
3066 (remote_insert_breakpoint): Call it.
3067 (remote_insert_hw_breakpoint): Ditto.
3068 (_initialize_remote): Add new packet configuration for
3069 target-side breakpoint commands.
3070 * target.h (struct target_ops): New field
3071 to_can_run_breakpoint_commands.
3072 (target_can_run_breakpoint_commands): New macro.
3073 * target.c (update_current_target): Handle
3074 to_can_run_breakpoint_commands.
3076 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3078 Execute -ix and -iex only after system and user gdbinit files.
3079 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3080 processing down after gdbinit files.
3082 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3084 Add fnmatch-gnu module.
3085 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3086 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3087 * gnulib/aclocal.m4: Regenerate.
3088 * gnulib/config.in: Regenerate.
3089 * gnulib/configure: Regenerate.
3090 * gnulib/import/dummy.c: Remove.
3091 * gnulib/import/Makefile.am: Regenerate.
3092 * gnulib/import/Makefile.in: Likewise.
3093 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3094 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3095 * gnulib/import/alloca.c: New file.
3096 * gnulib/import/alloca.in.h: Likewise.
3097 * gnulib/import/config.charset: Likewise.
3098 * gnulib/import/fnmatch.c: Likewise.
3099 * gnulib/import/fnmatch.in.h: Likewise.
3100 * gnulib/import/fnmatch_loop.c: Likewise.
3101 * gnulib/import/localcharset.c: Likewise.
3102 * gnulib/import/localcharset.h: Likewise.
3103 * gnulib/import/m4/alloca.m4: Likewise.
3104 * gnulib/import/m4/codeset.m4: Likewise.
3105 * gnulib/import/m4/configmake.m4: Likewise.
3106 * gnulib/import/m4/fcntl-o.m4: Likewise.
3107 * gnulib/import/m4/fnmatch.m4: Likewise.
3108 * gnulib/import/m4/glibc21.m4: Likewise.
3109 * gnulib/import/m4/localcharset.m4: Likewise.
3110 * gnulib/import/m4/locale-fr.m4: Likewise.
3111 * gnulib/import/m4/locale-ja.m4: Likewise.
3112 * gnulib/import/m4/locale-zh.m4: Likewise.
3113 * gnulib/import/m4/mbrtowc.m4: Likewise.
3114 * gnulib/import/m4/mbsinit.m4: Likewise.
3115 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3116 * gnulib/import/m4/mbstate_t.m4: Likewise.
3117 * gnulib/import/m4/stdbool.m4: Likewise.
3118 * gnulib/import/m4/wchar_h.m4: Likewise.
3119 * gnulib/import/m4/wctype_h.m4: Likewise.
3120 * gnulib/import/m4/wint_t.m4: Likewise.
3121 * gnulib/import/mbrtowc.c: Likewise.
3122 * gnulib/import/mbsinit.c: Likewise.
3123 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3124 * gnulib/import/mbsrtowcs-state.c: Likewise.
3125 * gnulib/import/mbsrtowcs.c: Likewise.
3126 * gnulib/import/ref-add.sin: Likewise.
3127 * gnulib/import/ref-del.sin: Likewise.
3128 * gnulib/import/stdbool.in.h: Likewise.
3129 * gnulib/import/streq.h: Likewise.
3130 * gnulib/import/strnlen1.c: Likewise.
3131 * gnulib/import/strnlen1.h: Likewise.
3132 * gnulib/import/verify.h: Likewise.
3133 * gnulib/import/wchar.in.h: Likewise.
3134 * gnulib/import/wctype.in.h: Likewise.
3136 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3138 Support shell wildcards for 'set auto-load safe-path'.
3139 * auto-load.c: Include fnmatch.h.
3140 (filename_is_in_dir): Rename to ...
3141 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3142 it. Update function comment. Rename dir_len to pattern_len. New
3143 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3144 messages. Use gdb_filename_fnmatch.
3145 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3147 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3148 * defs.h (gdb_filename_fnmatch): New declaration.
3149 * utils.c: Include fnmatch.h.
3150 (gdb_filename_fnmatch): New function.
3152 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3154 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3155 `-probe' and `-probe-stap' options.
3157 2012-07-01 Yao Qi <yao@codesourcery.com>
3159 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3160 always_inserted_off, and always_inserted_enums.
3161 Change always_inserted_mode's type to 'enum auto_boolean'.
3162 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3164 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3165 of add_setshow_enum_cmd.
3166 * infrun.c: Remove can_use_displaced_stepping_auto,
3167 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3168 can_use_displaced_stepping_enum.
3169 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3170 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3171 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3172 add_setshow_enum_cmd.
3174 2012-06-30 Doug Evans <dje@google.com>
3176 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3177 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3178 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3180 2012-06-29 Doug Evans <dje@google.com>
3182 * linespec.c: #include "stack.h".
3183 (decode_line_with_current_source): Moved here from symtab.c and
3184 renamed from decode_line_spec. All callers updated.
3185 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3186 renamed from decode_line_spec_1. All callers updated.
3187 * linespec.h (decode_line_with_current_source): Move declaration here
3188 from symtab.h and renamed from decode_line_spec.
3189 (decode_line_with_last_displayed): Move declaration here from symtab.h
3190 and renamed from decode_line_spec_1.
3191 * macrocmd.c: #include "linespec.h".
3192 * symtab.c: Remove #include "linespec.h".
3194 2012-06-28 Doug Evans <dje@google.com>
3196 * dwarf2read.c (get_cu_length): New function.
3197 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3198 (create_debug_types_hash_table): Ditto.
3199 (init_cutu_and_read_dies): Ditto.
3200 (init_cutu_and_read_dies_no_follow): Ditto.
3202 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3204 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3205 (struct abbrev_table): Define.
3206 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3208 (init_cutu_and_read_dies): Update.
3209 (abbrev_table_alloc_abbrev): New function. Replaces
3210 dwarf_alloc_abbrev. All callers updated.
3211 (abbrev_table_add_abbrev): New function.
3212 (abbrev_table_lookup_abbrev): New function. Replaces
3213 dwarf2_lookup_abbrev. All callers updated.
3214 (abbrev_table_read_table): New function. Contents moved here from
3215 dwarf2_read_abbrevs.
3216 (dwarf2_read_abbrevs): Call it.
3217 (abbrev_table_free): New function.
3218 (dwarf2_free_abbrev_table): Call it.
3220 2012-06-28 Stan Shebs <stan@codesourcery.com>
3222 * osdata.c (info_osdata_command): Filter out "Title" columns
3224 * common/linux-osdata.c (struct osdata_type): Add title field.
3225 (osdata_table): Add titles to each entry.
3226 (linux_command_xfer_osdata): Add a column for title data.
3228 2012-06-28 Stan Shebs <stan@codesourcery.com>
3230 Make logging work for MI.
3232 * interps.h (interp_set_logging_ftype): New typedef.
3233 (struct interp_procs): New field set_logging_proc.
3234 (current_interp_set_logging): Declare.
3235 * interps.c (current_interp_set_logging): New function.
3236 * cli/cli-logging.c: Include interps.h.
3237 (set_logging_redirect): Call current_interp_set_logging.
3238 (pop_output_files): Ditto.
3239 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3240 * mi/mi-console.h (mi_console_set_raw): Declare.
3241 * mi/mi-console.c (mi_console_set_raw): New function.
3242 * mi/mi-interp.c (saved_raw_stdout): New global.
3243 (mi_set_logging): New function.
3244 (_initialize_mi_interp): Add it to interp procs.
3246 2012-06-28 Doug Evans <dje@google.com>
3248 * symtab.c (lookup_symbol_aux_objfile): Use
3249 ALL_OBJFILE_PRIMARY_SYMTABS.
3251 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3253 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3255 * common/buffer.c: Include inttypes.h and stdint.h.
3256 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3258 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3259 Pedro Alves <palves@redhat.com>
3261 * gdbthread.h (ALL_THREADS): New macro.
3262 (thread_list): Declare.
3263 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3264 going, but instead fall through to the stepping handling.
3265 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3266 the passed in signal. Adjust debug output.
3267 (resume_callback): Rename to ...
3268 (linux_nat_resume_callback): ... this. Pass the thread's last
3269 stop signal, if in "pass" state.
3270 (linux_nat_resume): Adjust to rename.
3271 (stop_wait_callback): New assertion. Don't respawn signals;
3272 instead let the LWP remain with SIGNALLED set.
3273 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3274 * remote.c (append_pending_thread_resumptions): New.
3275 (remote_vcont_resume): Call it.
3276 * target.h (target_resume): Extend comment.
3278 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3280 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3282 2012-06-27 Doug Evans <dje@google.com>
3284 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3285 Delete have_addr_base, unused. All uses updated.
3286 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3287 (dwarf2_get_pc_bounds): Add ranges_base.
3288 (dwarf2_record_block_ranges): Ditto.
3290 2012-06-27 Tom Tromey <tromey@redhat.com>
3293 * varobj.c (varobj_create): Update.
3294 (varobj_set_value): Update.
3295 * tracepoint.c (validate_actionline): Update.
3296 (encode_actions_1): Update.
3297 * parse.c (parse_exp_1): Add 'pc' argument.
3298 (parse_exp_in_context): Add 'pc' argument. Change how
3299 expression_context_pc is set.
3300 (parse_expression): Update.
3301 (parse_field_expression): Update.
3302 * expression.h (parse_exp_1): Update.
3303 * eval.c (parse_to_comma_and_eval): Update.
3304 * breakpoint.c (set_breakpoint_condition): Update.
3305 (update_watchpoint): Update.
3306 (init_breakpoint_sal): Update
3307 (find_condition_and_thread): Update.
3308 (watch_command_1): Update.
3309 (update_breakpoint_locations): Update.
3310 * ada-lang.c (ada_read_renaming_var_value): Update.
3311 (create_excep_cond_exprs): Update.
3313 2012-06-27 Doug Evans <dje@google.com>
3315 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3318 2012-06-26 Doug Evans <dje@google.com>
3320 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3322 (error_check_comp_unit_head): New arg abbrev_section. All callers
3324 (read_and_check_comp_unit_head): Ditto.
3325 (read_and_check_type_unit_head): Ditto.
3327 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3329 New attribute 'last' for gdb.Symtab_and_line.
3330 * NEWS (Python Scripting): Add entry about the new attribute.
3331 * python/py-symtab.c (salpy_get_last): New function which
3332 implements the get method for the 'last' attribute of
3333 gdb.Symtab_and_line.
3334 (sal_object_getset): Add entry for the 'last' attribute.
3336 2012-06-26 Doug Evans <dje@google.com>
3338 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3339 (dwo_sections): Add macinfo, macro.
3340 (dwarf2_locate_dwo_sections): Watch for macro sections.
3341 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3342 All callers updated. Handle DWO files.
3344 * NEWS: Mention new options "set debug dwarf2-read" and
3345 "set debug symtab-create".
3346 * dwarf2read.c (dwarf2_read_debug): New static global.
3347 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3348 (process_queue): Ditto.
3349 (process_full_comp_unit): Ditto.
3350 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3351 * elfread.c (elf_symfile_read): Add debugging printf.
3352 * minsyms.c (install_minimal_symbols): Ditto.
3353 * psymtab.c (allocate_psymtab): Ditto.
3354 * symfile.c (allocate_symtab): Ditto.
3355 * symtab.c (symtab_create_debug): New global.
3356 (_initialize_symtab): Add new option "set debug symtab-create".
3357 * symtab.h (symtab_create_debug): Declare.
3359 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3360 (lookup_dwo_type_unit): Ditto.
3362 2012-06-26 Roland McGrath <roland@hack.frob.com>
3363 H.J. Lu <hongjiu.lu@intel.com>
3365 * amd64-linux-nat.c: Include <sys/user.h>.
3366 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3367 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3368 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3370 * configure.ac: Check if the fs_base and gs_base members of
3371 `struct user_regs_struct' exist.
3372 * config.in: Regenerated.
3373 * configure: Likewise.
3375 2012-06-25 Michael Eager <eager@eagercon.com>
3378 * python/python.c (gdbpy_write): Check for interrupted output.
3380 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3382 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3383 register as a stack alignment in ARM mode.
3385 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3388 * gnulib/config.in: Regenerate.
3389 * gnulib/configure: Likewise.
3390 * gnulib/import/m4/extensions.m4: Update it.
3391 * gnulib/import/m4/gnulib-common.m4: Likewise.
3392 * gnulib/import/m4/memmem.m4: Likewise.
3393 * gnulib/import/m4/mmap-anon.m4: Likewise.
3394 * gnulib/import/m4/multiarch.m4: Likewise.
3395 * gnulib/import/stdint.in.h: Likewise.
3397 2012-06-24 Yao Qi <yao@codesourcery.com>
3399 * corefile.c (write_memory_with_notification): New.
3400 * gdbcore.h: Declare write_memory_with_notification.
3401 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3402 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3403 * valops.c (value_assign): Likewise.
3404 * python/py-inferior.c (infpy_write_memory): Call
3405 'write_memory_with_notification'.
3407 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3409 * cc-with-index.sh: Use also -ex "set auto-load no".
3411 2012-06-23 Doug Evans <dje@google.com>
3414 * NEWS: Document additions to .gdb_index.
3415 * dwarf2read.c: #include "gdb/gdb-index.h".
3416 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3417 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3418 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3419 (dwarf2_read_index): Recognize version 7.
3420 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3421 block_kind, domain): All callers updated.
3422 (dw2_find_symbol_file): Handle new index CU values.
3423 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3424 (add_index_entry): New args is_static, kind. All callers updated.
3425 (offset_type_compare, uniquify_cu_indices): New functions
3426 (symbol_kind): New function.
3427 (write_psymtabs_to_index): Remove duplicate CU values.
3428 (write_psymtabs_to_index): Write .gdb_index version 7.
3430 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3432 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3433 * configure: Regenerate.
3435 2012-06-20 Yao Qi <yao@codesourcery.com>
3437 * python/py-inferior.c: Update comments of infpy_read_memory
3438 and infpy_write_memory.
3440 2012-06-19 Tom Tromey <tromey@redhat.com>
3443 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3444 (push_type_address_space): Remove.
3445 * parse.c (insert_into_type_stack): New function.
3446 (insert_type): Likewise.
3447 (insert_type_address_space): Rename from push_type_address_space.
3448 Insert tp_space_identifier.
3449 * c-exp.y (ptr_operator): New production.
3450 (abs_decl): Use ptr_operator.
3451 (space_identifier): Call insert_type_address_space.
3452 (ptype): Don't use const_or_volatile_or_space_identifier.
3453 (const_or_volatile_noopt): Call insert_type.
3454 (conversion_type_id, conversion_declarator): New productions.
3455 (operator): Use conversion_type_id.
3457 2012-06-18 Doug Evans <dje@google.com>
3459 * symtab.h (minimal_symbol): New member created_by_gdb.
3460 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3462 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3463 (search_symbols): Call it instead of lookup_symbol.
3464 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3466 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3467 Adjust address for DW_OP_GNU_addr_index.
3468 * dwarf2expr.h (dwarf_expr_context): Update comment.
3469 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3470 all callers updated. Handle TLS vars described with
3471 DW_OP_GNU_const_index.
3472 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3473 and DW_OP_GNU_const_index.
3474 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3476 * block.c (find_block_in_blockvector): Make explicit the fact that we
3477 ignore GLOBAL_BLOCK.
3479 2012-06-18 Tom Tromey <tromey@redhat.com>
3481 * c-exp.y (operator): Remove trailing space after "delete" and
3484 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3485 Jan Kratochvil <jan.kratochvil@redhat.com>
3487 Switch i386 and derived targets to ON_STACK.
3488 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3489 (amd64_dicos_init_abi): Remove its installment.
3490 * dicos-tdep.c (dicos_init_abi): Remove the
3491 set_gdbarch_call_dummy_location call. Update the comment here.
3492 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3493 (i386_dicos_init_abi): Remove its installment.
3494 * i386-tdep.c (i386_push_dummy_code): New function.
3495 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3496 i386_push_dummy_code.
3498 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3500 Remove stale dummy frames.
3501 * breakpoint.c: Include dummy-frame.h.
3502 (longjmp_breakpoint_ops): New variable.
3503 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3504 bp_longjmp_call_dummy.
3505 (bpstat_what, bptype_string, print_one_breakpoint_location)
3506 (init_bp_location): Support bp_longjmp_call_dummy.
3507 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3508 (set_longjmp_breakpoint_for_call_dummy)
3509 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3511 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3512 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3513 FIXME comment and extend the other comment for bp_call_dummy.
3514 (set_longjmp_breakpoint_for_call_dummy)
3515 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3516 * dummy-frame.c: Include gdbthread.h.
3517 (pop_dummy_frame_bpt): New function.
3518 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3519 (dummy_frame_discard): New function.
3520 (cleanup_dummy_frames): Update the comment about longjmps.
3521 * dummy-frame.h (dummy_frame_discard): New declaration.
3522 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3523 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3524 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3525 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3526 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3527 keep_going if IS_LONGJMP and there is no other reason to stop.
3529 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3531 * remote-sim.c (sim_command_completer): Initialize
3534 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3537 * dwarf2loc.c (call_site_parameter_matches): Support
3538 CALL_SITE_PARAMETER_PARAM_OFFSET.
3539 (needs_dwarf_reg_entry_value): Push stub value.
3540 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3541 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3542 * gdbtypes.h (enum call_site_parameter_kind): New item
3543 CALL_SITE_PARAMETER_PARAM_OFFSET.
3544 (struct call_site.parameter.u): New field param_offset.
3546 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3548 Code cleanup: Generalize call_site.parameter key.
3549 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3550 variable dwarf_reg. New variable kind_u. Update parameters to
3551 push_dwarf_reg_entry_value.
3552 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3553 * dwarf2expr.h (enum call_site_parameter_kind)
3554 (union call_site_parameter_u): Forward declarations.
3555 (struct dwarf_expr_context_funcs): Update parameters and their
3556 description for push_dwarf_reg_entry_value.
3557 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3558 * dwarf2loc.c (call_site_parameter_matches): New function.
3559 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3560 description. Use call_site_parameter_matches.
3561 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3562 Update parameters and their description.
3563 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3564 New variable kind_u. Adjust the caller for updated parameters.
3565 (needs_dwarf_reg_entry_value): Update parameters.
3566 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3567 instead of attr. Update for the changed fields of struct
3568 call_site_parameter.
3569 * gdbtypes.h: Include dwarf2expr.h.
3570 (enum call_site_parameter_kind): New.
3571 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3572 fb_offset into new union u.
3574 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3576 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3577 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3580 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3582 * amd64-linux-nat.c (compat_x32_clock_t): New.
3583 (compat_x32_siginfo_t): Likewise.
3584 (compat_x32_siginfo_from_siginfo): Likewise.
3585 (siginfo_from_compat_x32_siginfo): Likewise.
3586 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3587 and siginfo_from_compat_x32_siginfo for x32.
3589 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3591 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3593 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3595 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3596 instead of gdbarch_ptr_bit.
3597 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3598 (amd64_supply_native_gregset): Likewise.
3599 (amd64_collect_native_gregset): Likewise.
3600 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3601 (amd64_supply_xsave): Likewise.
3602 (amd64_collect_fxsave): Likewise.
3603 (amd64_collect_xsave): Likewise.
3605 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3607 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3608 (amd64_linux_read_description): Check DS segment register for
3611 2012-06-15 Tom Tromey <tromey@redhat.com>
3613 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3614 init_cutu_and_read_dies.
3616 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3618 * MAINTAINERS (Write After Approval): Add myself to the list.
3620 2012-06-15 Tom Tromey <tromey@redhat.com>
3622 * valops.c (value_find_oload_method_list): Now static.
3623 * value.h (value_find_oload_method_list): Don't declare.
3625 2012-06-15 Tom Tromey <tromey@redhat.com>
3627 * valops.c (find_overload_match): Use value_ind.
3629 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3631 * infrun.c (handle_inferior_event): Correct indentation.
3633 2012-06-14 Doug Evans <dje@google.com>
3635 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3636 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3638 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3639 updated. Handle DEBUG_LOC_START_LENGTH.
3640 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3641 (loclist_describe_location): Ditto.
3643 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3646 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3647 after hiding inline functions.
3649 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3651 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3652 _initialize_inf_ttrace.
3654 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3656 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3657 _initialize_hppa_hpux_nat.
3659 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3661 * remote-sim.c (sim_command_completer): Change type of return
3662 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3664 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3665 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3669 stack on a 16-byte boundary.
3671 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3673 * jit.c (finalize_symtab): Set function's return type to 'void' by
3676 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3677 H.J. Lu <hongjiu.lu@intel.com>
3679 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3680 Move bits common to both the classic LP64 and the new x32 ILP32
3682 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3683 (amd64_x32_linux_init_abi): New function.
3684 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3687 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3688 * i386-tdep.c (i386_pseudo_register_name): Make public.
3689 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3690 * amd64-tdep.c (amd64_dword_names): Add "eip".
3691 (amd64_x32_pseudo_register_type): New function
3692 (amd64_x32_init_abi): New function.
3694 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 * inferior.h (struct inferior_suspend_state): Comment out.
3698 (struct inferior): Comment out the field suspend.
3699 * infrun.c (struct infcall_suspend_state): Comment out the field
3701 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3704 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3706 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3707 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3708 function comment. Return ERROR for unresolved cases. Implement
3709 returning proper NAME.
3710 (yylex): Accept also NAME from classify_inner_name.
3711 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3712 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3714 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3716 2012-06-13 Tom Tromey <tromey@redhat.com>
3718 * breakpoint.c (condition_completer): New function.
3719 (_initialize_breakpoint): Use it.
3720 * value.c (complete_internalvar): New function.
3721 * value.h (complete_internalvar): Declare.
3723 2012-06-13 Tom Tromey <tromey@redhat.com>
3725 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3726 * breakpoint.c (catch_syscall_completer): Return a VEC.
3727 * cli/cli-cmds.c (complete_command): Update.
3728 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3729 (complete_on_enum): Likewise.
3730 * command.h: Include gdb_vecs.h.
3731 (completer_ftype): Change return type.
3732 (complete_on_cmdlist, complete_on_enum): Likewise.
3733 * completer.c (noop_completer, filename_completer)
3734 (location_completer): Return a VEC.
3735 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3737 (expression_completer, complete_line_internal, complete_line)
3738 (command_completer): Return a VEC.
3739 (gdb_completion_word_break_characters, line_completion_function):
3741 * completer.h: Include gdb_vecs.h.
3742 (complete_line, noop_completer, filename_completer)
3743 (expression_completer, location_completer, command_completer):
3745 * f-lang.c (f_word_break_characters): Return a VEC.
3746 * interps.c (interpreter_completer): Return a VEC.
3747 * language.h (struct language_defn)
3748 <la_make_symbol_completion_list>: Return a VEC.
3749 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3750 * symtab.c (free_completion_list): Take a VEC.
3751 (return_val_size, return_val_index): Remove.
3752 (return_val): Now a VEC.
3753 (completion_list_add_name): Update.
3754 (default_make_symbol_completion_list_break_on)
3755 (default_make_symbol_completion_list, make_symbol_completion_list)
3756 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3758 (add_filename_to_list): Update.
3759 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3761 (maybe_add_partial_symtab_filename): Update.
3762 (make_source_files_completion_list): Return a VEC.
3763 * symtab.h (default_make_symbol_completion_list_break_on)
3764 (default_make_symbol_completion_list, make_symbol_completion_list)
3765 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3766 (make_source_files_completion_list): Update.
3768 2012-06-13 Tom Tromey <tromey@redhat.com>
3770 * breakpoint.c (add_catch_command): Use completer_ftype.
3771 * breakpoint.h: Include command.h.
3772 (add_catch_command): Use completer_ftype.
3773 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3774 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3775 Use completer_ftype.
3776 * command.h (completer_ftype): New typedef.
3777 (set_cmd_completer): Use it.
3778 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3781 2012-06-13 Pedro Alves <palves@redhat.com>
3783 Partial revert of previous change.
3785 * serial.c (scb_base): New global.
3786 (serial_for_fd): New.
3787 (serial_open, serial_fdopen_ops): Link new serial in open serials
3789 (do_serial_close): Unlink serial from the open serials chain.
3791 2012-06-12 Pedro Alves <palves@redhat.com>
3793 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3795 (prepare_for_detach): No longer context switch here in non-stop
3797 (fetch_inferior_event): Ditto.
3798 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3799 to the event thread before removing breakpoints. Switch to the
3800 event thread before inserting breakpoints and resuming.
3801 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3802 event thread before resuming.
3803 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3804 Switch to the event thread before removing breakpoints.
3806 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3808 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3809 special characters correctly for the Windows shells. See
3810 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3812 [!__MINGW32__]: Remove extra double quote character from special
3815 2012-06-11 Stan Shebs <stan@codesourcery.com>
3817 * ui-out.h: Remove #if 0 declarations.
3818 * ui-out.c: Remove #if 0 functions.
3820 2012-06-11 Pedro Alves <palves@redhat.com>
3822 * ser-base.c (run_async_handler_and_reschedule): New.
3823 (fd_event, push_event): Use it.
3824 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3825 reference count to 1.
3826 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3828 (serial_is_open, serial_ref, serial_unref): New.
3829 * serial.h (serial_open): Adjust comment.
3830 (serial_is_open): Declare.
3831 (serial_close): Adjust comment.
3832 (serial_ref, serial_unref) Declare.
3833 (struct serial): New field 'refcnt'.
3835 2012-06-11 Pedro Alves <palves@redhat.com>
3837 Remove #if 0'd "connect" command, and unnecessary associated
3838 refcounting and serial reuse bits.
3840 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3841 * serial.c (last_serial_opened): Delete.
3843 (serial_open): Adjust.
3844 (serial_for_fd): Delete.
3845 (serial_fdopen_ops, do_serial_close): Adjust.
3846 (serial_fdopen_ops): Adjust.
3848 2012-06-11 Pedro Alves <palves@redhat.com>
3850 * serial.c (do_serial_close): Remove early return when SCB is
3853 2012-06-11 Tom Tromey <tromey@redhat.com>
3855 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3857 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3859 Fix regression by the "ambiguous linespec" series.
3860 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3861 get_last_displayed_symtab and get_last_displayed_line and depending
3864 2012-06-11 Tom Tromey <tromey@redhat.com>
3866 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3867 (dw2_find_symbol_file): Use it.
3869 2012-06-11 Michael Eager <eager@eagercon.com>
3871 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3872 * mips-linux-tdep.h (mips_signals): New
3874 2012-06-11 Tom Tromey <tromey@redhat.com>
3876 * infrun.c (handle_inferior_event)
3877 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3879 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3880 exception logic in all cases. Update comments.
3881 (insert_longjmp_resume_breakpoint): Set the exception resume
3884 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3886 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3888 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3890 * valarith.c (binop_types_user_defined_p): Fix a typo.
3892 2012-06-08 Yao Qi <yao@codesourcery.com>
3893 Chung-Lin Tang <cltang@codesourcery.com>
3895 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3896 * arch-utils.h: Declare.
3897 * gdbarch.sh: Add return_in_first_hidden_param_p.
3898 * gdbarch.c, gdbarch.h: Regenerated.
3899 * infcall.c (call_function_by_hand): Call
3900 gdbarch_return_in_first_hidden_param_p instead of
3901 language_pass_by_reference.
3903 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3904 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3905 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3906 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3907 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3908 `cplus_return_struct_by_reference'.
3909 (tic6x_return_value): Handle language cplusplus.
3910 (tic6x_return_in_first_hidden_param_p): New.
3911 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3913 2012-06-07 Doug Evans <dje@google.com>
3915 * dwarf2read.c (dwarf2_cu): Add comment.
3917 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3919 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3921 (mips_eabi_push_dummy_call): Likewise.
3922 (mips_n32n64_push_dummy_call): Likewise.
3923 (mips_o32_push_dummy_call): Likewise.
3924 (mips_o64_push_dummy_call): Likewise.
3926 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3928 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3930 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3932 * mips-tdep.c (mips_pseudo_register_type): Use
3933 mips_float_register_p.
3935 2012-06-06 Pedro Alves <palves@redhat.com>
3937 * infrun.c (handle_inferior_event): Remove calls to
3938 reinit_frame_cache that follow a context_switch call.
3940 2012-06-06 Pedro Alves <palves@redhat.com>
3942 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3943 context_switch and remove stale comment.
3945 2012-06-06 Pedro Alves <palves@redhat.com>
3947 * infrun.c (struct execution_control_state): Remove
3948 `new_thread_event' field.
3949 (handle_inferior_event): Simplify new threads handling; don't
3950 resume the inferior if we find a new thread.
3952 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3954 * NEWS: Document the deprecation of SH's 'regs' command.
3955 * inferior.h (all_registers_info): Add function declaration.
3956 * sh-tdep.c (sh_show_regs): Remove variable.
3957 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3958 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3959 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3960 (sh_show_regs_command): Remove functions.
3961 (sh_gdbarch_init): Don't set sh_show_regs.
3962 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3963 'info all-registers'.
3964 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3965 (sh64_show_regs): Remove functions.
3966 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3968 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3970 * configure.ac: Move development=true below AC_INIT.
3971 * configure: Regenerate.
3973 2012-06-05 Stan Shebs <stan@codesourcery.com>
3975 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3978 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3980 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3981 argument as ssize_t.
3982 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3983 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3984 * target.c (target_read_stack, target_write_memory)
3985 (target_write_raw_memory): Likewise.
3986 * target.h (target_read_stack, target_write_memory)
3987 (target_write_raw_memory): Likewise.
3989 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3991 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3992 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3993 * target.c (target_read_memory): Change LEN to ssize_t.
3994 * target.h (target_read_memory): Change LEN to ssize_t.
3996 2012-06-05 Pedro Alves <palves@redhat.com>
4000 * breakpoint.c (until_break_command): Only fetch the selected
4001 frame after decode_line_1.
4003 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4005 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4006 event breakpoint at _start, __start or main if a program
4007 interpreter is not found.
4009 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4011 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4013 * windows-tdep.c: #include "objfiles.h".
4014 (windows_iterate_over_objfiles_in_search_order): New function.
4015 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4016 iterate_over_objfiles_in_search_order gdbarch method to
4017 windows_iterate_over_objfiles_in_search_order.
4018 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4020 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4022 * gdbarch.sh: Add generation of
4023 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4024 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4025 (iterate_over_objfiles_in_search_order): New gdbarch method.
4026 * gdbarch.h, gdbarch.c: Regenerate.
4027 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4029 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4031 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4032 out of lookup_symbol_aux_symtabs.
4033 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4034 call to lookup_symbol_aux_objfile.
4035 (struct global_sym_lookup_data): New type.
4036 (lookup_symbol_global_iterator_cb): New function.
4037 (lookup_symbol_global): Search for symbol using
4038 gdbarch_iterate_over_objfiles_in_search_order and
4039 lookup_symbol_global_iterator_cb.
4040 * findvar.c (struct minsym_lookup_data): New type.
4041 (minsym_lookup_iterator_cb): New function.
4042 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4043 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4044 and minsym_lookup_iterator_cb.
4046 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4048 Revert the following patch:
4049 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4050 try locating the symbol in the symbol's own objfile first, before
4051 extending the search to all objfiles.
4052 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4053 out of lookup_symbol_aux_symtabs.
4054 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4055 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4056 Do not search EXCLUDE_OBJFILE.
4057 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4058 (lookup_symbol_global): Search for matches in the block's objfile
4059 first, before searching all other objfiles.
4061 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4063 * breakpoint.c (find_condition_and_thread): Stop parsing
4064 as soon as the first invalid keyword is found.
4066 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4068 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4070 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4072 * config/djgpp/djcheck.sh: Add copyright header.
4074 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4076 * copyright.py (update_files, main): Fix path to update-copyright
4079 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4081 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4082 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4083 for which a reminder to update by hand is printed.
4085 2012-06-04 Doug Evans <dje@google.com>
4087 * buildsym.c (make_blockvector): Add comment.
4089 2012-06-04 Pedro Alves <palves@redhat.com>
4091 * arch-utils.c (default_gdb_signal_from_target): Delete.
4092 * arch-utils.h (default_gdb_signal_from_target): Delete.
4093 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4094 gdbarch_gdb_signal_from_target_p.
4095 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4097 * gdbarch.h: Regenerate.
4098 * gdbarch.c: Regenerate.
4100 2012-06-04 Pedro Alves <palves@redhat.com>
4102 * gdbarch.sh (gdb_signal_from_target): Mention that the
4103 implementation of the method must be host independent.
4104 * gdbarch.h: Regenerate.
4106 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4108 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4110 (target_read_memory_bfd): New function.
4111 (symbol_file_add_from_memory): Use it.
4113 2012-06-03 Doug Evans <dje@google.com>
4115 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4117 (basic_lookup_transparent_type): Ditto.
4119 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4120 (ALL_PRIMARY_SYMTABS): Use it.
4121 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4122 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4123 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4124 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4125 (basic_lookup_transparent_type): Ditto.
4127 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4129 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4130 it to optimize resolution of demangled name.
4132 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4134 * configure.ac (development): Define new variable.
4135 Call AC_CHECK_LIB for mcheck if $development.
4136 (ERROR_ON_WARNING): Enable it by default only if $development.
4137 * config.in: Regenerate.
4138 * configure: Regenerate.
4140 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4142 * target.c (target_read_memory): Make LEN argument as size_t.
4143 * target.h (target_read_memory): Likewise.
4145 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4147 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4149 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4151 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4152 BookE interface for PowerPC server processors if not available
4153 in the Linux Kernel.
4155 2012-05-31 Keith Seitz <keiths@redhat.com>
4157 * linespec.c (decode_objc): Add cleanup to free
4159 (find_linespec_symbols): Add cleanup to free CLASSES.
4160 * symfile.c (find_separate_debug_file_by_debuglink): Add
4161 cleanup to free DEBUGLINK.
4162 * ui-out.c (clear_header_list): No need to check if
4163 HEADER_NEXT.COLHDR is NULL.
4164 Free HEADER_NEXT.COL_NAME.
4166 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4168 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4171 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4173 * configure.host (gdb_host_cpu): Handle tilegx*.
4174 (gdb_host): Handle tilegx-*-linux*.
4175 * tilegx-linux-nat.c: New file.
4176 * config/tilegx/linux.mh: New file.
4178 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4180 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4181 tilegx-linux-tdep.o.
4182 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4183 tilegx-linux-tdep.c.
4184 * configure.tgt: Handle tilegx-*-linux*.
4185 * tilegx-tdep.h: New file.
4186 * tilegx-tdep.c: New file.
4187 * tilegx-linux-tdep.c: New file.
4188 * regformats/reg-tilegx.dat: New file.
4190 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4192 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4193 accounting of hw watchpoints on ppc.
4195 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4197 * source.c (openp): Expand tilde in path entries.
4199 2012-05-29 Doug Evans <dje@google.com>
4201 * buildsym.c (block_compar): Fix comment.
4202 (end_symtab): Fix and clarify some comments.
4204 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4205 cleanup_undefined_types.
4206 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4207 All callers updated.
4209 2012-05-29 Tom Tromey <tromey@redhat.com>
4211 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4213 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4214 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4216 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4219 2012-05-29 Tristan Gingold <gingold@adacore.com>
4221 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4222 (struct darwin_info): ... New struct.
4223 (solib_darwin_pspace_data): New variable.
4224 (darwin_pspace_data_cleanup): New function.
4225 (get_darwin_info): Likewise.
4226 (darwin_dyld_version_ok, darwin_load_image_infos)
4227 (darwin_solib_get_all_image_info_addr_at_init)
4228 (darwin_solib_read_all_image_info_addr): Add info argument.
4230 (darwin_current_sos): Use per pspace structure.
4231 (darwin_solib_create_inferior_hook): Likewise.
4232 (darwin_clear_solib): Likewise.
4233 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4235 2012-05-28 Pedro Alves <palves@redhat.com>
4237 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4238 block that uses them. Clear ecss before handling each event.
4240 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4242 * solib-svr4.c (svr4_current_sos): New comment on
4243 svr4_current_sos_via_xfer_libraries fall back.
4245 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4247 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4248 it as a fallback for TYPE_IS_OPAQUE.
4249 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4250 symbols for lookup_symbol.
4252 2012-05-24 John Steele Scott <toojays@toojays.net>
4254 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4255 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4256 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4257 (check_producer): ... this new function, which also checks for ICC
4258 and caches the result.
4259 (producer_is_icc): New function.
4260 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4263 2012-05-24 Pedro Alves <palves@redhat.com>
4267 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4268 (default_gdb_signal_to_target): ... this. Add comment.
4269 (default_gdb_signal_from_host): Rename to ...
4270 (default_gdb_signal_from_target): ... this. Add comment.
4271 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4272 (default_gdb_signal_to_target): ... this.
4273 (default_gdb_signal_from_host): Rename to ...
4274 (default_gdb_signal_from_target): ... this.
4275 * corelow.c (core_open): Adjust to naming change. Replace comment.
4276 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4277 (gdb_signal_from_target): ... this. Adjust to
4278 default_gdb_signal_from_host naming change. Extend comment.
4279 (gdb_signal_to_host): Rename to ...
4280 (gdb_signal_to_target): ... this. Adjust to
4281 default_gdb_signal_to_host naming change.
4282 * gdbarch.h, gdbarch.c: Renegerate.
4284 2012-05-24 Pedro Alves <palves@redhat.com>
4288 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4290 2012-05-24 Pedro Alves <palves@redhat.com>
4294 Replace target_signal with gdb_signal throughout.
4296 2012-05-24 Pedro Alves <palves@redhat.com>
4300 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4301 string, instead of reusing the va_list argument.
4303 2012-05-24 Tom Tromey <tromey@redhat.com>
4305 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4308 2012-05-23 Doug Evans <dje@google.com>
4310 * symtab.c (search_symbols): Formatting fixes.
4311 (print_symbol_info): Formatting fixes.
4313 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4314 int64_t change to leb128 API.
4315 (read_encoded_value, decode_frame_entry_1): Ditto.
4316 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4317 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4318 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4319 (execute_stack_op): Ditto.
4320 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4321 (safe_read_uleb128, safe_read_sleb128): Ditto.
4322 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4323 (dwarf2_compile_expr_to_ax): Ditto.
4324 (locexpr_describe_location_piece): Ditto.
4325 (disassemble_dwarf_expression): Ditto.
4326 (locexpr_describe_location_1): Ditto.
4328 2012-05-23 Stan Shebs <stan@codesourcery.com>
4329 Kwok Cheung Yeung <kcy@codesourcery.com>
4331 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4332 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4333 (mi-cmd-info.o): New rule.
4334 * osdata.h (info_osdata_command): New declaration.
4335 * osdata.c (info_osdata_command): Change to non-static.
4336 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4337 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4338 * mi/mi-cmd-info.c: New file.
4340 2012-05-23 Doug Evans <dje@google.com>
4342 * symtab.c (search_symbols): Pass NULL for file_matcher to
4343 expand_symtabs_matching if there are no files to match.
4345 * gdbtypes.c (lookup_typename): Simplify.
4347 2012-05-23 Pedro Alves <palves@redhat.com>
4349 * arch-utils.h (default_target_signal_to_host): Delete.
4350 * arch-utils.c (default_target_signal_to_host): Delete.
4351 * gdbarch.sh (target_signal_to_host): Remove.
4352 * gdbarch.h, gdbarch.c: Regenerate.
4354 2012-05-22 Doug Evans <dje@google.com>
4356 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4358 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4359 (execute_cfa_program): Update to match API of leb128 functions.
4360 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4362 (read_unsigned_leb128, read_signed_leb128): Delete.
4363 (read_initial_length): Change type of buf argument to
4365 (read_encoded_value): Update to match API of leb128 functions.
4366 (decode_frame_entry): Change result to "const gdb_byte *", and
4367 similarly for "start" parameter.
4368 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4369 (dwarf2_build_frame_info): Change local frame_ptr to
4371 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4372 read_uleb128, read_sleb128. All callers updated.
4373 (safe_skip_leb128): New function.
4374 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4375 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4376 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4377 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4378 read_uleb128, read_sleb128.
4379 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4380 (execute_stack_op): Update to match API of leb128 functions.
4381 * dwarf2expr.h: #include "leb128.h".
4382 (read_uleb128, read_sleb128): Delete.
4383 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4384 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4385 * dwarf2loc.c (debug_loc_kind): New enum.
4386 (decode_debug_loc_addresses): New function.
4387 (decode_debug_loc_dwo_addresses): New function.
4388 (dwarf2_find_location_expression): Rewrite.
4389 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4390 (locexpr_describe_location_piece): Ditto.
4391 (disassemble_dwarf_expression): Ditto.
4392 (locexpr_describe_location_1): Ditto.
4393 (loclist_describe_location): Rewrite.
4394 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4395 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4396 (dwarf2_section_buffer_overflow_complaint): Renamed from
4397 dwarf2_macros_too_long_complaint. All callers updated.
4398 (skip_leb128): Delete.
4399 (init_cu_die_reader): Initialize reader->buffer_end.
4400 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4401 (skip_form_bytes): New arg buffer_end. All callers updated.
4402 Replace call to skip_leb128 with gdb_skip_leb128.
4403 (skip_unknown_opcode): New arg mac_end. All callers updated.
4404 (fill_in_loclist_baton): Initialize baton->from_dwo.
4406 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4408 * mips-linux-nat.c (mips_linux_read_description): Use a more
4409 verbose error message.
4411 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4413 * NEWS: Add MIPS/Linux DSP support.
4414 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4415 (SIGCONTEXT_DSPCTL): New macro.
4416 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4417 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4418 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4419 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4420 (N64_SIGCONTEXT_HI3): Likewise.
4421 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4422 (N64_SIGCONTEXT_LO3): Likewise.
4423 (N64_SIGCONTEXT_DSPCTL): Likewise.
4424 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4425 (mips_linux_o32_sigframe_init): Handle DSP registers.
4426 (mips_linux_n32n64_sigframe_init): Likewise.
4428 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4430 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4433 2012-05-22 Pedro Alves <palves@redhat.com>
4435 * target.h (store_waitstatus): Move declaration ...
4436 * inf-child.h (store_waitstatus): ... here.
4437 * target.c: Move inclusion of gdb_wait.h, and ...
4438 (store_waitstatus): ... this ...
4439 * inf-child.c: ... here.
4440 * linux-nat.c: Include inf-child.h.
4441 * rs6000-nat.c: Include inf-child.h.
4442 * spu-linux-nat.c: Include inf-child.h.
4444 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4446 * tracepoint.c (start_tracing): Add missing i18n markup.
4447 (stop_tracing, set_trace_user): Ditto.
4448 (set_trace_notes, set_trace_stop_notes): Ditto.
4450 2012-05-21 Tom Tromey <tromey@redhat.com>
4453 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4455 * value.h (value_cast_pointers): Update.
4456 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4457 (value_cast): Update.
4458 (update_search_result): New function.
4459 (do_search_struct_field): New, from search_struct_field. Check
4460 for ambiguous results.
4461 (search_struct_field): Rewrite.
4462 * infcall.c (value_arg_coerce): Update.
4463 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4464 value_cast_pointers.
4465 * ada-lang.c (ada_convert_actual): Update.
4467 2012-05-21 Tom Tromey <tromey@redhat.com>
4469 * macroexp.c (macro_stringify): Terminate the string.
4471 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4473 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4475 * auto-load.c (auto_load_expand_dir_vars): New function.
4476 (auto_load_safe_path_vec_update): Use it, remove the
4477 substitute_path_component call thanks to it.
4478 (auto_load_objfile_script): Remove the debug_file_directory processing.
4479 Use auto_load_expand_dir_vars, remove the substitute_path_component
4481 * configure: Regenerate.
4482 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4483 path. Escape $ also for $debugdir.
4484 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4485 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4487 2012-05-20 Doug Evans <dje@google.com>
4489 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4490 before use. Check for symtab->includes == NULL before scanning it.
4492 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4494 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4496 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4498 * NEWS: Add microMIPS support and "set mips compression",
4499 "show mips compression" commands.
4500 * mips-tdep.h (mips_isa): New enum.
4501 (gdbarch_tdep): Add mips_isa.
4502 (mips_pc_is_mips16): Update prototype.
4503 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4504 * mips-tdep.c (mips_compression_mips16): New variable.
4505 (mips_compression_micromips): Likewise.
4506 (mips_compression_strings): Likewise.
4507 (mips_compression_string): Likewise.
4508 (is_mips16_isa, is_micromips_isa): New functions.
4509 (is_mips16_addr): Rename to...
4510 (is_compact_addr): ... this.
4511 (unmake_mips16_addr): Likewise to...
4512 (unmake_compact_addr): ... this.
4513 (make_mips16_addr): Likewise to...
4514 (make_compact_addr): ... this.
4515 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4517 (mips_elf_make_msymbol_special): Handle microMIPS code.
4518 (msymbol_is_special): Rename to...
4519 (msymbol_is_mips16): ... this.
4520 (mips_make_symbol_special, mips_pc_is_mips16): Update
4522 (msymbol_is_mips, msymbol_is_micromips): New functions.
4523 (mips16_to_32_reg): Rename to...
4524 (mips_reg3_to_reg): ... this.
4525 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4526 (mips_pc_isa): Likewise.
4527 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4529 (mips_fetch_instruction): Pass return status instead of printing
4530 an error message if requested. Handle microMIPS code. Bail out
4532 (micromips_op): New macro.
4533 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4534 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4535 (b6s4_op, b7s3_reg): Likewise.
4536 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4537 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4538 (mips_insn_size): New function.
4539 (mips32_next_pc): Update mips_fetch_instruction call.
4540 (micromips_relative_offset7): New function.
4541 (micromips_relative_offset10): Likewise.
4542 (micromips_relative_offset16): Likewise.
4543 (micromips_pc_insn_size): Likewise.
4544 (micromips_bc1_pc): Likewise.
4545 (micromips_next_pc): Likewise.
4546 (unpack_mips16): Update mips_fetch_instruction call.
4547 (extended_mips16_next_pc): Update according to change to
4549 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4551 (mips16_scan_prologue): Update mips_fetch_instruction call.
4552 Update according to change to mips16_to_32_reg.
4553 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4554 (mips_insn16_frame_base_sniffer): Likewise.
4555 (micromips_decode_imm9): New function.
4556 (micromips_scan_prologue): Likewise.
4557 (mips_micro_frame_cache): Likewise.
4558 (mips_micro_frame_this_id): Likewise.
4559 (mips_micro_frame_prev_register): Likewise.
4560 (mips_micro_frame_sniffer): Likewise.
4561 (mips_micro_frame_unwind): New variable.
4562 (mips_micro_frame_base_address): New function.
4563 (mips_micro_frame_base): New variable.
4564 (mips_micro_frame_base_sniffer): New function.
4565 (mips32_scan_prologue): Update mips_fetch_instruction call.
4566 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4567 rather than for MIPS16.
4568 (mips_insn32_frame_base_sniffer): Likewise.
4569 (mips_addr_bits_remove): Handle microMIPS code.
4570 (deal_with_atomic_sequence): Rename to...
4571 (mips_deal_with_atomic_sequence): ... this. Update the type
4572 of the variable used to hold an instruction. Remove the ISA bit
4573 check. Update mips_fetch_instruction call.
4574 (micromips_deal_with_atomic_sequence): New function.
4575 (deal_with_atomic_sequence): Likewise.
4576 (mips_about_to_return): Handle microMIPS code. Update
4577 mips_fetch_instruction call.
4578 (heuristic_proc_start): Check for the standard MIPS ISA rather
4579 than for MIPS16. Update mips_pc_is_mips16 and
4580 mips_fetch_instruction calls. Handle microMIPS code.
4581 (mips_push_dummy_code): Handle microMIPS code.
4582 (mips_eabi_push_dummy_call): Likewise.
4583 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4584 (mips_o64_push_dummy_call): Handle microMIPS code.
4585 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4586 (is_delayed): Remove function.
4587 (mips_single_step_through_delay): Replace the call to is_delayed
4588 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4589 Handle microMIPS code.
4590 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4592 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4594 (micromips_in_function_epilogue_p): New function.
4595 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4597 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4599 (gdb_print_insn_mips): Likewise.
4600 (mips_breakpoint_from_pc): Likewise.
4601 (mips_remote_breakpoint_from_pc): New function.
4602 (mips32_instruction_has_delay_slot): Simplify making use of the
4603 updated mips_fetch_instruction interface.
4604 (micromips_instruction_has_delay_slot): New function.
4605 (mips16_instruction_has_delay_slot): Simplify making use of the
4606 updated mips_fetch_instruction interface.
4607 (mips_adjust_breakpoint_address): Check for the standard MIPS
4608 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4609 calls. Handle microMIPS code.
4610 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4611 (mips_skip_trampoline_code): Handle microMIPS code.
4612 (global_mips_compression): New function.
4613 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4614 file flags. Register the microMIPS remote breakpoint handler
4615 and heuristic frame unwinder.
4616 (show_mips_compression): New function.
4617 (_initialize_mips_tdep): Add the "set mips compression" and
4618 "show mips compression" commands.
4620 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4625 * amd64-darwin-tdep.c:
4626 * arm-symbian-tdep.c:
4630 * bfin-linux-tdep.c:
4637 * dwarf2-frame-tailcall.c:
4666 * microblaze-tdep.c:
4667 * mips-linux-tdep.c:
4675 * python/py-finishbreakpoint.c:
4676 * python/py-inferior.c:
4677 * python/py-infthread.c:
4681 * remote-m32r-sdi.c:
4685 * rs6000-aix-tdep.c:
4711 * amd64-darwin-tdep.c:
4712 * arm-symbian-tdep.c:
4713 * arm-tdep.c: Delete unused variables.
4715 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4717 Rename $ddir to $datadir.
4718 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4719 * auto-load.c (auto_load_safe_path_vec_update)
4720 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4721 * configure: Regenerate.
4722 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4723 Likewise. Remove the 'use $ddir' help string.
4725 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4727 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4728 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4730 2012-05-18 Tom Tromey <tromey@redhat.com>
4733 * valprint.h (struct value_print_options) <symbol_print>: New
4735 * valprint.c (user_print_options): Add default for symbol_print.
4736 (show_symbol_print): New function.
4737 (generic_val_print): Respect symbol_print.
4738 (_initialize_valprint): Add "print symbol" setting.
4739 * f-valprint.c (f_val_print): Respect symbol_print.
4740 * c-valprint.c (c_val_print): Respect symbol_print.
4742 * printcmd.c (print_address_symbolic): Return int. Ignore some
4744 (print_address_demangle): Return int.
4745 * defs.h: (print_address_symbolic): Return int.
4746 * value.h (print_address_demangle): Return int.
4748 2012-05-18 Tom Tromey <tromey@redhat.com>
4750 * valprint.c (val_print_string): Don't print leading space.
4751 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4752 print space before string or vtbl.
4753 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4755 * jv-valprint.c (java_value_print): Print space before string.
4756 * go-valprint.c (print_go_string): Print space before string.
4757 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4758 space before string.
4759 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4760 space before string or vtbl.
4761 * auxv.c (fprint_target_auxv): Print space after address.
4763 2012-05-18 Tom Tromey <tromey@redhat.com>
4765 * printcmd.c (print_address_demangle): Remove special case for 0.
4767 2012-05-18 Tom Tromey <tromey@redhat.com>
4769 * printcmd.c (print_address_demangle): Add 'opts' argument.
4770 * p-valprint.c (pascal_val_print): Update.
4771 * jv-valprint.c (java_val_print): Update.
4773 * valprint.c (generic_val_print): Update.
4774 (print_function_pointer_address): Add 'options' argument. Remove
4775 'addressprint' argument. Update.
4776 * m2-valprint.c (print_unpacked_pointer): Update.
4777 * gnu-v3-abi.c (print_one_vtable): Update.
4778 (gnuv3_print_method_ptr): Update.
4779 * f-valprint.c (f_val_print): Update.
4780 * cp-valprint.c (cp_print_value_fields): Update.
4781 * valprint.h (print_function_pointer_address): Update.
4782 * c-valprint.c (c_val_print): Update.
4784 2012-05-18 Tom Tromey <tromey@redhat.com>
4786 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4787 directly corresponding to the found psymtab.
4788 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4789 (dw2_find_pc_sect_symtab): Use it.
4790 * block.h (blockvector_contains_pc): Declare.
4791 * block.c (find_block_in_blockvector): New function.
4792 (blockvector_for_pc_sect): Use it.
4793 (blockvector_contains_pc): New function.
4795 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4797 * mips-tdep.h (mips_write_pc): New prototype.
4798 * mips-tdep.c (mips_write_pc): Make external, add description.
4799 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4802 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4804 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4806 (mips_unwind_pc, mips_write_pc): Likewise.
4807 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4810 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4812 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4813 proc_warn, proc_error, proc_get_status, proc_flags,
4814 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4815 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4816 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4817 proc_stop_process, proc_wait_for_stop, proc_run_process,
4818 proc_set_traced_signals, proc_set_traced_faults,
4819 proc_set_traced_sysentry, proc_set_traced_sysexit,
4820 proc_set_held_signals, proc_get_held_signals,
4821 proc_get_traced_signals, proc_get_traced_faults,
4822 proc_get_traced_sysentry, proc_get_traced_sysexit,
4823 proc_clear_current_fault, proc_set_current_signal,
4824 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4825 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4826 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4827 proc_get_current_thread, proc_get_current_thread,
4828 proc_get_current_thread, proc_update_threads,
4829 proc_update_threads, proc_update_threads, proc_update_threads,
4830 proc_iterate_over_threads, procfs_find_new_threads,
4831 procfs_pid_to_str): Make static. Remove advance declaration.
4832 (proc_cursig): Make static. Conditionalized defintion on
4833 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4834 (proc_syscall, proc_set_kill_on_last_close,
4835 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4836 proc_get_pending_signals, proc_get_signal_actions,
4837 proc_trace_signal, proc_ignore_signal): Delete.
4839 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4841 * coffread.c (cs_section_address): Passing proper argument for
4842 `bfd_get_section_vma'.
4843 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4844 `bfd_get_section_flags'.
4845 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4846 `bfd_get_section_vma'.
4848 2012-05-16 Tom Tromey <tromey@redhat.com>
4851 * macrotab.h: (macro_define_special): Declare.
4852 (enum macro_special_kind): New.
4853 (struct macro_definition) <argc, replacement>: Update comments.
4854 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4855 (macro_define_object_internal): New function.
4856 (macro_define_object): Use it.
4857 (macro_define_special): New function.
4858 (fixup_definition): New function.
4859 (macro_lookup_definition, foreach_macro_in_scope)
4860 (foreach_macro): Use fixup_definition.
4861 * macroexp.h (macro_stringify): Declare.
4862 * macroexp.c (free_buffer_return_text): New function.
4863 (stringify): Constify "arg".
4864 (macro_stringify): New function.
4865 * dwarf2read.c (macro_start_file): Call macro_define_special.
4867 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4868 Maciej W. Rozycki <macro@mips.com>
4870 * breakpoint.h (bp_location): Add related_address member.
4871 * inferior.h (get_return_value): Take a pointer to struct value
4872 instead of struct type for the function requested.
4873 * value.h (using_struct_return): Likewise.
4874 * gdbarch.sh (return_value): Take a pointer to struct value
4875 instead of struct type for the function requested.
4876 * breakpoint.c (set_breakpoint_location_function): Initialize
4877 related_address for bp_gnu_ifunc_resolver breakpoints.
4878 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4879 requested function's address to gdbarch_return_value.
4880 * eval.c (evaluate_subexp_standard): Pass the requested
4881 function's address to using_struct_return.
4882 * infcall.c (call_function_by_hand): Pass the requested
4883 function's address to using_struct_return and
4884 gdbarch_return_value.
4885 * infcmd.c (get_return_value): Take a pointer to struct value
4886 instead of struct type for the function requested.
4887 (print_return_value): Update accordingly.
4888 (finish_command_continuation): Likewise.
4889 * stack.c (return_command): Pass the requested function's
4890 address to using_struct_return and gdbarch_return_value.
4891 * value.c (using_struct_return): Take a pointer to struct value
4892 instead of struct type for the function requested. Pass the
4893 requested function's address to gdbarch_return_value.
4894 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4895 New function_value member, replacing function_type.
4896 (bpfinishpy_dealloc): Update accordingly.
4897 (bpfinishpy_pre_stop_hook): Likewise.
4898 (bpfinishpy_init): Likewise. Record the requested function's
4900 * mips-tdep.c (mips_fval_reg): New enum.
4901 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4902 words put in GP registers.
4903 (mips_o64_push_dummy_call): Update a comment.
4904 (mips_o32_return_value): Take a pointer to struct value instead
4905 of struct type for the function requested and use it to check if
4906 using the MIPS16 calling convention. Return the designated
4907 general purpose registers for floating-point values returned in
4909 (mips_o64_return_value): Likewise.
4910 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4911 (ppc_sysv_abi_broken_return_value): Likewise.
4912 (ppc64_sysv_abi_return_value): Likewise.
4913 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4914 value instead of struct type for the function requested.
4915 * amd64-tdep.c (amd64_return_value): Likewise.
4916 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4917 * arm-tdep.c (arm_return_value): Likewise.
4918 * avr-tdep.c (avr_return_value): Likewise.
4919 * bfin-tdep.c (bfin_return_value): Likewise.
4920 * cris-tdep.c (cris_return_value): Likewise.
4921 * frv-tdep.c (frv_return_value): Likewise.
4922 * h8300-tdep.c (h8300_return_value): Likewise.
4923 (h8300h_return_value): Likewise.
4924 * hppa-tdep.c (hppa32_return_value): Likewise.
4925 (hppa64_return_value): Likewise.
4926 * i386-tdep.c (i386_return_value): Likewise.
4927 * ia64-tdep.c (ia64_return_value): Likewise.
4928 * iq2000-tdep.c (iq2000_return_value): Likewise.
4929 * lm32-tdep.c (lm32_return_value): Likewise.
4930 * m32c-tdep.c (m32c_return_value): Likewise.
4931 * m32r-tdep.c (m32r_return_value): Likewise.
4932 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4933 * m68k-tdep.c (m68k_return_value): Likewise.
4934 (m68k_svr4_return_value): Likewise.
4935 * m88k-tdep.c (m88k_return_value): Likewise.
4936 * mep-tdep.c (mep_return_value): Likewise.
4937 * microblaze-tdep.c (microblaze_return_value): Likewise.
4938 * mn10300-tdep.c (mn10300_return_value): Likewise.
4939 * moxie-tdep.c (moxie_return_value): Likewise.
4940 * mt-tdep.c (mt_return_value): Likewise.
4941 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4942 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4943 (ppc_sysv_abi_broken_return_value): Likewise.
4944 (ppc64_sysv_abi_return_value): Likewise.
4945 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4946 * rl78-tdep.c (rl78_return_value): Likewise.
4947 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4948 * rx-tdep.c (rx_return_value): Likewise.
4949 * s390-tdep.c (s390_return_value): Likewise.
4950 * score-tdep.c (score_return_value): Likewise.
4951 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4952 (sh_return_value_fpu): Likewise.
4953 * sh64-tdep.c (sh64_return_value): Likewise.
4954 * sparc-tdep.c (sparc32_return_value): Likewise.
4955 * sparc64-tdep.c (sparc64_return_value): Likewise.
4956 * spu-tdep.c (spu_return_value): Likewise.
4957 * tic6x-tdep.c (tic6x_return_value): Likewise.
4958 * v850-tdep.c (v850_return_value): Likewise.
4959 * vax-tdep.c (vax_return_value): Likewise.
4960 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4961 * xtensa-tdep.c (xtensa_return_value): Likewise.
4962 * gdbarch.c: Regenerate.
4963 * gdbarch.h: Regenerate.
4965 2012-05-15 Tom Tromey <tromey@redhat.com>
4967 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4969 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4971 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4972 of command in two error message.
4974 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4976 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4978 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4980 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4982 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4984 * NEWS (show auto-load scripts-directory): Add forgotten command.
4986 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4988 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4991 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4993 * amd64-tdep.c: Include features/i386/x32.c and
4994 features/i386/x32-avx.c.
4995 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4996 initialize_tdesc_x32_avx.
4998 2012-05-14 Stan Shebs <stan@codesourcery.com>
5001 * breakpoint.h (enum bptype): New type bp_dprintf.
5002 (struct breakpoint): New field extra_string.
5003 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5004 (create_breakpoint): Add extra_string arg.
5005 * breakpoint.c (dprintf_breakpoint_ops): New.
5006 (is_breakpoint): Add bp_dprintf.
5007 (bpstat_what): Add dprintf case.
5008 (bptype_string): Ditto.
5009 (print_one_breakpoint_location): Ditto.
5010 (init_bp_location): Ditto.
5011 (bkpt_print_mention): Ditto.
5012 (dprintf_style_enums): New array.
5013 (dprintf_style): New global.
5014 (dprintf_function): New global.
5015 (dprintf_channel): New global.
5016 (update_dprintf_command_list): New function.
5017 (update_dprintf_commands): New function.
5018 (init_breakpoint_sal): Add extra_string argument, handle it.
5019 (create_breakpoint_sal): Add extra_string argument.
5020 (create_breakpoints_sal): Add extra_string argument, update callers.
5021 (find_condition_and_thread): Add extra argument.
5022 (create_breakpoint): Add extra_string argument, record it.
5023 (dprintf_command): New function.
5024 (break_command_1): Add arg to create_breakpoint call.
5025 (handle_gnu_v3_exceptions): Ditto.
5026 (trace_command): Ditto.
5027 (ftrace_command): Ditto.
5028 (strace_command): Ditto.
5029 (bkpt_print_mention): Add dprintf case.
5030 (create_breakpoint_sal_default): Add extra_string argument.
5031 (_initialize_breakpoint): Add new commands.
5032 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5033 * python/py-breakpoint.c (bppy_init): Ditto.
5034 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5036 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5038 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5040 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5042 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5045 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5047 Add a new function gdb.find_pc_line to the Python API.
5048 * NEWS (Python Scripting): Add entry about the new function.
5049 * python/python.c (gdbpy_find_pc_line): New function which
5050 implements gdb.find_pc_line.
5051 (GdbMethods): Add entry for the new function.
5053 2012-05-12 Pedro Alves <palves@redhat.com>
5055 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5056 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5058 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5060 * inferior.c: Include completer.h
5061 (initialize_inferiors): Set completer of add-inferior to
5064 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5066 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5067 gdbarch_ptr_bit for x32 core dump.
5069 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5071 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5072 and features/i386/x32-avx-linux.c.
5074 2012-05-11 Stan Shebs <stan@codesourcery.com>
5075 Kwok Cheung Yeung <kcy@codesourcery.com>
5077 * NEWS: Describe new info os commands.
5078 * common/linux-osdata.c (PID_T, TIME_T): Define.
5079 (MAX_PID_T_STRLEN): New.
5080 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5082 (command_from_pid): Add comment. Change to use PID_T.
5083 (commandline_from_pid): Change to use PID_T.
5084 (user_from_pid): Add comment.
5085 (get_process_owner): Add comment. Change to use PID_T and
5087 (get_number_of_cpu_cores): Add comment.
5088 (get_cores_used_by_process): Add comment. Change to use PID_T and
5090 (linux_xfer_osdata_processes): Change to use PID_T and
5092 (compare_processes): New function.
5093 (linux_xfer_osdata_processgroups): New function.
5094 (linux_xfer_osdata_threads): Change to use PID_T.
5095 (linux_xfer_osdata_fds): New function.
5096 (format_socket_state, print_sockets): New functions.
5097 (union socket_addr): New union.
5098 (linux_xfer_osdata_isockets): New function.
5099 (time_from_time_t, group_from_gid): New functions.
5100 (linux_xfer_osdata_shm): New function.
5101 (linux_xfer_osdata_sem): New function.
5102 (linux_xfer_osdata_msg): New function.
5103 (linux_xfer_osdata_modules): New function.
5104 (osdata_table): Add new entries.
5105 * common/buffer.c (buffer_xml_printf): Add support for long and
5106 long long format specifiers.
5108 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5110 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5111 (tdesc_x32_avx_linux): Likewise.
5113 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5115 Implement multi-component --with-auto-load-dir.
5116 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5118 (--with-auto-load-safe-path): Update the default value description.
5119 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5121 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5122 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5123 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5124 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5125 "set auto-load scripts-directory".
5126 * config.in: Regenerate.
5127 * configure: Regenerate.
5128 * configure.ac (--with-auto-load-dir): New configure option.
5129 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5131 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5133 Provide $ddir substitution for --with-auto-load-safe-path.
5134 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5136 * auto-load.c: Include observer.h.
5137 (auto_load_safe_path_vec_update): Call substitute_path_component for
5138 each component. New variable ddir_subst.
5139 (auto_load_gdb_datadir_changed): New function.
5140 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5141 AUTO_LOAD_SAFE_PATH. New comment.
5142 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5143 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5144 * config.in: Regenerate.
5145 * configure: Regenerate.
5146 * configure.ac (--auto-load-safe-path): Rename
5147 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5148 GDB_DATADIR/auto-load.
5149 * defs.h (substitute_path_component): New declaration.
5150 * top.c: Include observer.h.
5151 (set_gdb_datadir): New function.
5152 (init_main): Install it for "set data-directory".
5153 * utils.c (substitute_path_component): New function.
5155 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5158 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5159 DEBUG_FILE_DIRECTORY. Handle multiple components of
5160 DEBUG_FILE_DIRECTORY.
5162 2012-05-10 Tom Tromey <tromey@redhat.com>
5164 * dwarf2read.c (recursively_write_psymbols): New function.
5165 (write_psymtabs_to_index): Use it.
5167 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5169 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5170 (load_partial_comp_unit): Update.
5171 (queue_comp_unit): Add argument 'pretend_language'.
5172 (process_queue): Update.
5173 (psymtab_to_symtab_1): Skip dependencies that have a user.
5174 (load_partial_comp_unit_reader): Give meaning to the 'data'
5176 (load_full_comp_unit): Add 'pretend_language' argument.
5177 (process_full_comp_unit): Add 'pretend_language' argument. Set
5179 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5181 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5182 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5184 (prepare_one_comp_unit): Add 'pretend_language' argument.
5186 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5187 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5188 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5189 (dw2_do_instantiate_symtab): Check whether symtab was read in
5191 (dw2_instantiate_symtab): Add assertion. Call
5192 process_cu_includes.
5193 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5194 (partial_symtab_p): New typedef.
5195 (set_partial_user): New function.
5196 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5197 (scan_partial_symbols): Add imported CU to imported_symtabs.
5198 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5199 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5200 (get_symtab, recursively_compute_inclusions)
5201 (compute_symtab_includes, process_cu_includes)
5202 (process_imported_unit_die): New functions.
5203 (process_die) <DW_TAG_imported_unit>: New case.
5204 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5206 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5208 (struct partial_die_info) <locdesc>: Remove.
5210 (process_psymtab_comp_unit): Add 'read_partial' argument.
5212 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5213 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5214 (add_partial_symbol): Update.
5215 (process_die): Handle DW_TAG_partial_unit.
5216 (read_file_scope): Update comment.
5217 (load_partial_dies): Handle DW_TAG_imported_unit.
5218 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5219 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5221 2012-05-10 Tom Tromey <tromey@redhat.com>
5223 * cc-with-dwz.sh: New file.
5225 2012-05-10 Tom Tromey <tromey@redhat.com>
5227 * symtab.h (struct symtab) <includes, user>: New fields.
5228 * block.h (struct block_iterator) <d, idx, which>: New fields.
5229 * block.c (initialize_block_iterator, find_iterator_symtab)
5230 (block_iterator_step, block_iter_name_step)
5231 (block_iter_match_step): New functions.
5232 (block_iterator_first, block_iterator_next)
5233 (block_iter_name_first, block_iter_name_next)
5234 (block_iter_match_first, block_iter_match_next): Rewrite.
5235 (get_block_symtab): New function.
5237 2012-05-10 Tom Tromey <tromey@redhat.com>
5239 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5241 * jit.c (finalize_symtab): Use allocate_global_block,
5243 * buildsym.c (finish_block_internal): New function, from old
5245 (finish_block): Rewrite.
5246 (end_symtab): Use finish_block_internal, set_block_symtab.
5247 * block.h (struct global_block): New.
5248 (allocate_global_block, set_block_symtab): Declare.
5249 * block.c (allocate_global_block, set_block_symtab): New
5252 2012-05-10 Tom Tromey <tromey@redhat.com>
5254 * psymtab.c (partial_map_expand_apply): Add assertion.
5255 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5256 (psymtab_to_symtab): Find unshared psymtab.
5257 (dump_psymtab): Print including psymtabs.
5258 (recursively_search_psymtabs): New function.
5259 (expand_symtabs_matching_via_partial): Use it.
5260 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5262 (enum psymtab_search_status): New.
5264 2012-05-10 Tom Tromey <tromey@redhat.com>
5266 * tracepoint.c (scope_info): Update.
5267 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5268 (find_pc_sect_symtab, search_symbols)
5269 (default_make_symbol_completion_list_break_on)
5270 (make_file_symbol_completion_list): Update.
5271 * symmisc.c (dump_symtab_1): Update.
5272 * stack.c (print_frame_args, iterate_over_block_locals)
5273 (print_frame_labels, iterate_over_block_arg_vars): Update.
5274 * python/py-block.c (block_object) <dict>: Remove.
5276 <iter>: Change type.
5277 (blpy_iter): Update.
5278 (blpy_block_syms_iternext): Update.
5279 * psymtab.c (map_block): Use block iterators.
5280 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5281 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5282 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5283 * infrun.c (check_exception_resume): Update.
5284 * cp-support.c (make_symbol_overload_list_block): Update.
5285 * coffread.c (patch_opaque_types): Update.
5286 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5287 * block.h (struct block_iterator): New.
5288 (block_iterator_first, block_iterator_next, block_iter_name_first)
5289 (block_iter_name_next, block_iter_match_first)
5290 (block_iter_match_next): Declare.
5291 (ALL_BLOCK_SYMBOLS): Redefine.
5292 * block.c (block_iterator_first, block_iterator_next)
5293 (block_iter_name_first, block_iter_name_next)
5294 (block_iter_match_first, block_iter_match_next): New functions.
5295 * ada-lang.c (ada_add_block_symbols)
5296 (ada_make_symbol_completion_list): Use block iterator.
5298 2012-05-10 Tom Tromey <tromey@redhat.com>
5300 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5301 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5302 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5303 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5304 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5307 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5309 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5310 print-file-var-lib2.c, print-file-var-main.c and
5311 print-file-var.exp (located in gdb/testsuite/gdb.base).
5313 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5315 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5316 try locating the symbol in the symbol's own objfile first, before
5317 extending the search to all objfiles.
5318 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5319 out of lookup_symbol_aux_symtabs.
5320 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5321 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5322 Do not search EXCLUDE_OBJFILE.
5323 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5324 (lookup_symbol_global): Search for matches in the block's objfile
5325 first, before searching all other objfiles.
5327 2012-05-10 Tristan Gingold <gingold@adacore.com>
5329 * printcmd.c (set_command): Add pre/post inc/dec.
5331 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5333 * gdb.1: Document -ex option.
5335 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5337 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5338 * inferior.h (AT_SYMBOL): Delete.
5340 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5342 * mips-tdep.c (mips_push_dummy_code): New function.
5343 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5344 ON_STACK and install mips_push_dummy_code as our gdbarch
5345 push_dummy_code routine.
5347 2012-05-09 Pedro Alves <palves@redhat.com>
5349 * target.c (set_maintenance_target_async_permitted): Rename to ...
5350 (set_target_async_command): ... this.
5351 (show_maintenance_target_async_permitted): Rename to ...
5352 (show_target_async_command): ... this.
5353 (initialize_targets): Adjust.
5355 2012-05-08 Doug Evans <dje@google.com>
5357 * go-exp.y (classify_name): Add missing assignment of fields of
5360 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5362 Display the ">" prompt in interactive mode while reading canned
5363 commands, even when the current interpreter is MI.
5365 * interps.c (interp_set_temp): New function.
5367 * interps.h (interp_set_temp): Add prototype.
5369 * cli/cli-script.c (restore_interp): New cleanup function.
5370 (read_command_lines): Temporarily override the current interpreter
5371 with CLI and arrange for restoring the original one.
5373 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5375 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5377 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5379 * probe.c (parse_probes): Move conditional to check for
5380 debuginfo files from here...
5381 * stap-probe.c (stap_get_probes): ... to here.
5383 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5384 H.J. Lu <hongjiu.lu@intel.com>
5386 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5387 `movl %esp, %ebp' for the X32 ABI.
5389 2012-05-07 Tom Tromey <tromey@redhat.com>
5391 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5393 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5394 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5395 (dwarf_stack_op_name): Remove.
5396 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5397 (decode_locdesc): Use get_DW_OP_name.
5398 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5399 (dwarf2_compile_expr_to_ax): Likewise.
5400 (disassemble_dwarf_expression): Likewise.
5401 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5403 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5405 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5406 (sh_linux_sigtramp_cache): New function.
5407 (sh_linux_sigreturn_init): New function.
5408 (sh_linux_rt_sigreturn_init): New function.
5409 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5411 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5413 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5414 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5415 (sh_linux_init_abi): Add init calls to register new tramp_frame
5416 definitions under 32-bit SH, update comments.
5418 2012-05-07 Pedro Alves <palves@redhat.com>
5422 * amd64-linux-tdep.c: Include glibc-tdep.h.
5423 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5424 gdbarch_skip_solib_resolver callback.
5426 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5428 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5429 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5430 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5431 (add_auto_load_safe_path): Change the error message.
5432 (_initialize_auto_load): Change the "safe-path" help text.
5433 * configure: Regenerate
5434 * configure.ac (--without-auto-load-safe-path): Set
5435 WITH_AUTO_LOAD_SAFE_PATH to /.
5437 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5439 * stap-probe.h: Do not include unecessary `probe.h'.
5441 2012-05-05 Alan Modra <amodra@gmail.com>
5443 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5444 bfd_und_section_ptr.
5445 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5446 and bfd_com_section_ptr.
5448 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5450 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5452 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5454 * windows-nat.h (segment_register_p_ftype): New typedef.
5455 (windows_set_segment_register_p): Add declaration.
5456 * windows-nat.c (segment_register_p): New static global.
5457 (windows_set_segment_register_p): New function.
5458 (do_windows_fetch_inferior_registers): Add special handling
5459 for segment registers.
5460 * amd64-windows-nat.c: #include "amd64-tdep.h".
5461 (amd64_windows_segment_register_p): New function.
5462 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5463 * i386-windows-nat.c: #include "i386-tdep.h".
5464 (i386_windows_segment_register_p): New function.
5465 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5467 2012-05-04 Tristan Gingold <gingold@adacore.com>
5469 * printcmd.c (set_command): Emit a warning if the expression is not
5472 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5474 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5477 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5479 * stap-probe.c (stap_is_operator): Change declaration.
5480 (stap_get_opcode): Change return value.
5481 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5482 `stap_parse_argument_1'.
5484 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5486 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5489 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5491 Add two new methods global_block and static_block to gdb.Symtab
5493 * NEWS (Python scripting): Add entry about the new methods.
5494 * python/py-symtab.c (stpy_global_block): New function which
5495 implements the gdb.Symtab.global_block() method.
5496 (stpy_static_block): New function which implements the
5497 gdb.Symtab.static_block() method.
5498 (symtab_object_methods): Add entries for the two new methods.
5500 2012-05-03 Doug Evans <dje@google.com>
5502 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5505 2012-05-03 Yao Qi <yao@codesourcery.com>
5507 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5509 (i386_process_record): Ditto.
5511 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5513 * infcall.c (unwind_on_signal_p): Make static.
5515 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5517 * sol-thread.c (solaris_pid_to_str): Make static.
5518 (_initialize_sol_thread): Add prototype.
5520 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5522 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5524 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5526 * MAINTAINERS: Remove myself.
5528 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5530 Fix --without-auto-load-safe-path for MS-Windows host platform.
5531 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5533 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5535 * gdb_curses.h: Undefine KEY_EVENT before including curses
5536 headers. Move "#undef MOUSE_MOVED" before any curses header
5539 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5541 * features/i386/i386-mmx-linux.c: Regenerate.
5542 * features/rs6000/powerpc-32.c: Likewise.
5543 * features/rs6000/powerpc-32l.c: Likewise.
5544 * features/rs6000/powerpc-403.c: Likewise.
5545 * features/rs6000/powerpc-403gc.c: Likewise.
5546 * features/rs6000/powerpc-405.c: Likewise.
5547 * features/rs6000/powerpc-505.c: Likewise.
5548 * features/rs6000/powerpc-601.c: Likewise.
5549 * features/rs6000/powerpc-602.c: Likewise.
5550 * features/rs6000/powerpc-603.c: Likewise.
5551 * features/rs6000/powerpc-604.c: Likewise.
5552 * features/rs6000/powerpc-64.c: Likewise.
5553 * features/rs6000/powerpc-64l.c: Likewise.
5554 * features/rs6000/powerpc-750.c: Likewise.
5555 * features/rs6000/powerpc-860.c: Likewise.
5556 * features/rs6000/powerpc-e500.c: Likewise.
5557 * features/rs6000/powerpc-e500l.c: Likewise.
5558 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5559 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5560 * features/rs6000/rs6000.c: Likewise.
5562 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5564 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5566 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5567 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5568 (stap_parse_argument) <e>: Likewise.
5569 (handle_stap_probe) <byte_order>: Likewise.
5571 2012-04-30 Doug Evans <dje@google.com>
5573 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5574 init_and_read_dies_worker. All callers updated.
5575 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5576 replaced with init_cutu_and_read_dies.
5577 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5578 (find_partial_die): Remove FIXME. Don't free current CU.
5580 2012-04-30 Sterling Augustine <saugustine@google.com>
5582 * contrib: New directory.
5583 * contrib/test_pubnames_and_indexes.py: New file.
5585 2012-04-30 Doug Evans <dje@google.com>
5587 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5588 All callers updated.
5589 (init_cu_die_reader): Verify the section is non-empty.
5590 (dwarf_decode_line_header): Don't dereference section->asection
5591 until we know the section is present.
5593 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5595 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5598 2012-04-29 Yao Qi <yao@codesourcery.com>
5600 * gdb-code-style.el: New hook gdb-markup-hook
5601 and gdb-comment-hook.
5603 2012-04-28 Doug Evans <dje@google.com>
5605 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5606 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5608 * symfile.h (dwarf2_debug_sections): New member addr.
5609 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5610 (ctx_no_get_addr_index): New function.
5611 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5612 (ctx_no_get_addr_index): Declare.
5613 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5614 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5615 (dwarf_expr_ctx_funcs): Update.
5616 (needs_get_addr_index): New function.
5617 (needs_frame_ctx_funcs): Update.
5618 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5619 * dwarf2read.c: #include "gdbcore.h".
5620 (dwarf2_per_objfile): New members addr, dwo_files.
5621 (dwarf2_elf_names): Add entry for addr.
5622 (struct dwo_section_names): New type.
5623 (dwo_section_names): New static global.
5624 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5625 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5626 old debug_types_section member updated to use this.
5627 Rename member debug_types_section to info_or_types_section,
5629 (signatured_type): Rename member type_offset to type_offset_in_tu,
5630 all uses updated. New member type_offset_in_section.
5631 (struct dwo_sections): New type.
5632 (struct dwo_unit): New type.
5633 (struct dwo_file): New type.
5634 (die_reader_specs): New member dwo_file.
5635 (dwarf2_locate_sections): Watch for .debug_addr.
5636 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5637 (dwarf2_read_section): Get bfd of section from bfd's asection,
5639 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5640 (create_signatured_type_table_from_index): Initialize
5641 sig_type->info_or_types_section.
5642 (dw2_get_file_names): Statement lists for type units with DWO files
5643 live in the DWO file.
5644 (create_debug_types_hash_table): New function.
5645 (create_all_type_units): Rewrite.
5646 (init_cu_die_reader): New arg dwo_file, all callers updated.
5647 (init_and_read_dies_worker): Get section from
5648 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5649 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5650 continue reading the CU/TU from there.
5651 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5652 updated. Get section from this_cu->info_or_types_section.
5653 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5654 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5655 DW_FORM_GNU_str_index.
5656 (hash_dwo_file, eq_dwo_file): New functions.
5657 (allocate_dwo_file_hash_table): New function.
5658 (hash_dwo_unit, eq_dwo_unit): New functions.
5659 (allocate_dwo_unit_table): New function.
5660 (dwarf2_locate_dwo_sections): New function.
5661 (struct create_dwo_info_table_data): New type.
5662 (create_debug_info_hash_table_reader): New function.
5663 (create_debug_info_hash_table): New function.
5664 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5665 (lookup_dwo_file): New function.
5666 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5667 (free_dwo_file, free_dwo_file_cleanup): New functions.
5668 (free_dwo_file_from_slot, free_dwo_files): New functions.
5669 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5670 (dwarf2_record_block_ranges): Ditto.
5671 (read_partial_die): Ditto.
5672 (process_enumeration_scope): Update to use type_offset_in_section.
5673 (read_full_die_1): New function.
5674 (read_full_die): Rewrite.
5675 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5676 DW_FORM_GNU_str_index.
5677 (read_addr_index_1, read_addr_index): New functions.
5678 (read_addr_index_from_leb128): New function.
5679 (struct dwarf2_read_addr_index_data): New type.
5680 (dwarf2_read_addr_index_reader): New function.
5681 (dwarf2_read_addr_index): New function.
5682 (read_str_index): New function.
5683 (leb128_size): New function.
5684 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5685 If processing a type unit from a DWO file, get the line section
5687 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5688 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5689 DW_FORM_GNU_str_index.
5690 (lookup_die_type): Check whether section offset of type's die is
5691 known before looking it up. Remove assert. Condition can
5692 legimately happen for inter-cu type references.
5693 (dwarf_attr_name): Handle Fission attributes.
5694 (dwarf_form_name): Handle Fission forms.
5695 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5696 DW_FORM_GNU_str_index.
5697 (follow_die_sig): Update to use type_offset_in_section.
5698 (decode_locdesc): New case DW_OP_GNU_addr_index.
5699 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5700 DW_FORM_GNU_str_index.
5701 (cu_debug_loc_section): New function.
5702 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5703 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5704 Free DWO files if present.
5705 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5707 Refactor DIE reading.
5708 * dwarf2read.c (dwarf2_per_objfile): Replace members
5709 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5710 (die_reader_specs): New member "die_section". Temporarily make
5711 member "buffer" non-const, pending constifying all info_ptr uses.
5712 (die_reader_func_ftype): New typedef.
5713 (dw2_get_file_names_reader): New function.
5714 (dw2_get_file_names): Rewrite.
5715 (read_and_check_type_unit_head): Rename arg type_offset to
5717 (create_all_type_units): Improve debugging message.
5718 Improve dummy type unit check.
5719 (init_cu_die_reader): New arg "section". All callers updated.
5720 (init_and_read_dies_worker): New function.
5721 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5722 (init_cutu_and_read_dies_no_follow): New function.
5723 (init_cutu_and_read_dies_simple): New function.
5724 (process_psymtab_comp_unit_reader): New function.
5725 (process_psymtab_comp_unit): Delete args section,
5726 is_debug_types_section. Rewrite. All callers updated.
5727 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5728 All callers updated. Rewrite.
5729 (load_partial_comp_unit_reader): New function.
5730 (load_partial_comp_unit): Rewrite.
5731 (skip_children): New arg reader. Delete args buffer, cu.
5732 All callers updated.
5733 (skip_one_die): New arg reader. Delete args buffer, cu.
5734 All callers updated.
5735 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5736 All callers updated.
5737 (load_full_comp_unit_reader): New function.
5738 (load_full_comp_unit): Rewrite.
5739 (read_comp_unit): Delete.
5740 (read_die_and_children_1): Delete, contents moved ...
5741 (read_die_and_children): ... here.
5742 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5743 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5744 All callers updated.
5745 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5746 All callers updated.
5747 (find_partial_die): Rewrite load_all_dies support.
5748 (read_attribute_value): New arg reader. Delete args abfd, cu.
5749 All callers updated.
5750 (read_attribute): New arg reader. Delete args abfd, cu.
5751 All callers updated.
5752 (load_full_type_unit): Add assert.
5753 (read_signatured_type_reader): New function.
5754 (read_signatured_type): Rewrite.
5755 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5756 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5757 All callers updated. Set per_cu->cu = NULL after freeing it.
5758 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5759 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5760 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5761 (set_die_type): Update.
5762 (get_die_type_at_offset): Update.
5763 (read_file_scope): Call prepare_one_comp_unit.
5764 (read_type_unit_scope): Ditto.
5765 (prepare_one_comp_unit): Set producer if present.
5767 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5769 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5770 gettext function on `error'.
5772 2012-04-27 Doug Evans <dje@google.com>
5774 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5777 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5778 Tom Tromey <tromey@redhat.com>
5780 * breakpoint.c (struct breakpoint_objfile_data)
5781 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5782 <exception_probes>: New fields.
5783 (free_breakpoint_probes): New function.
5784 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5785 `_Unwind_DebugHook'.
5786 (create_exception_master_breakpoint): Likewise.
5787 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5788 * infrun.c: Including necessary header files for handling SystemTap
5790 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5791 via SystemTap probes.
5792 (check_exception_resume): Remove `func' argument. Handle exception
5793 unwinding breakpoint set via a SystemTap probe.
5794 (insert_exception_resume_from_probe): New function.
5796 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5797 Tom Tromey <tromey@redhat.com>
5798 Jan Kratochvil <jan.kratochvil@redhat.com>
5800 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5801 (COMMON_OBS): Likewise.
5802 (HFILES_NO_SRCDIR): Add `probe'.
5803 * NEWS: Mention support for static and SystemTap probes.
5804 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5805 SystemTap probes' arguments parser.
5806 * arm-linux-tdep.c: Including headers needed to perform the parsing
5807 of SystemTap probes' arguments.
5808 (arm_stap_is_single_operand): New function.
5809 (arm_stap_parse_special_token): Likewise.
5810 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5811 probes' arguments parser.
5812 * ax-gdb.c (require_rvalue): Removing static declaration.
5813 (gen_expr): Likewise.
5814 * ax-gdb.h (gen_expr): Declaring function.
5815 (require_rvalue): Likewise.
5816 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5817 (bkpt_probe_breakpoint_ops): New variable.
5818 (momentary_breakpoint_from_master): Set the `probe' value.
5819 (add_location_to_breakpoint): Likewise.
5820 (break_command_1): Using proper breakpoint_ops according to the
5821 argument passed by the user in the command line.
5822 (bkpt_probe_insert_location): New function.
5823 (bkpt_probe_remove_location): Likewise.
5824 (bkpt_probe_create_sals_from_address): Likewise.
5825 (bkpt_probe_decode_linespec): Likewise.
5826 (tracepoint_probe_create_sals_from_address): Likewise.
5827 (tracepoint_probe_decode_linespec): Likewise.
5828 (tracepoint_probe_breakpoint_ops): New variable.
5829 (trace_command): Using proper breakpoint_ops according to the
5830 argument passed by the user in the command line.
5831 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5832 static probes on breakpoints and tracepoints.
5833 * breakpoint.h (struct bp_location) <probe>: New field.
5834 * cli-utils.c (skip_spaces_const): New function.
5835 (extract_arg): Likewise.
5836 * cli-utils.h (skip_spaces_const): Likewise.
5837 (extract_arg): Likewise.
5838 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5839 * configure.ac: Append `stap-probe.o' to be generated when ELF
5841 * configure: Regenerate.
5842 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5843 * elfread.c: Include `probe.h' and `arch-utils.h'.
5844 (probe_key): New variable.
5845 (elf_get_probes): New function.
5846 (elf_get_probe_argument_count): Likewise.
5847 (elf_evaluate_probe_argument): Likewise.
5848 (elf_compile_to_ax): Likewise.
5849 (elf_symfile_relocate_probe): Likewise.
5850 (stap_probe_key_free): Likewise.
5851 (elf_probe_fns): New variable.
5852 (elf_sym_fns): Add `sym_probe_fns' value.
5853 (elf_sym_fns_lazy_psyms): Likewise.
5854 (elf_sym_fns_gdb_index): Likewise.
5855 (_initialize_elfread): Initialize objfile cache for static
5857 * gdb_vecs.h (struct probe): New forward declaration.
5858 (probe_p): New VEC declaration.
5859 * gdbarch.c: Regenerate.
5860 * gdbarch.h: Regenerate.
5861 * gdbarch.sh (stap_integer_prefix): New variable.
5862 (stap_integer_suffix): Likewise.
5863 (stap_register_prefix): Likewise.
5864 (stap_register_suffix): Likewise.
5865 (stap_register_indirection_prefix): Likewise.
5866 (stap_register_indirection_suffix): Likewise.
5867 (stap_gdb_register_prefix): Likewise.
5868 (stap_gdb_register_suffix): Likewise.
5869 (stap_is_single_operand): New function.
5870 (stap_parse_special_token): Likewise.
5871 (struct stap_parse_info): Forward declaration.
5872 * i386-tdep.c: Including headers needed to perform the parsing
5873 of SystemTap probes' arguments.
5874 (i386_stap_is_single_operand): New function.
5875 (i386_stap_parse_special_token): Likewise.
5876 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5877 probes' arguments parser.
5878 * i386-tdep.h (i386_stap_is_single_operand): New function.
5879 (i386_stap_parse_special_token): Likewise.
5880 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5881 * mipsread.c (ecoff_sym_fns): Likewise.
5882 * objfiles.c (objfile_relocate1): Support relocation for static
5884 * parse.c (prefixify_expression): Remove static declaration.
5885 (initialize_expout): Likewise.
5886 (reallocate_expout): Likewise.
5887 * parser-defs.h (initialize_expout): Declare function.
5888 (reallocate_expout): Likewise.
5889 (prefixify_expression): Likewise.
5890 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5891 of SystemTap probes' arguments.
5892 (ppc_stap_is_single_operand): New function.
5893 (ppc_stap_parse_special_token): Likewise.
5894 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5895 probes' arguments parser.
5896 * probe.c: New file, for generic statically defined probe support.
5897 * probe.h: Likewise.
5898 * s390-tdep.c: Including headers needed to perform the parsing of
5899 SystemTap probes' arguments.
5900 (s390_stap_is_single_operand): New function.
5901 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5902 probes' arguments parser.
5903 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5904 * stap-probe.c: New file, for SystemTap probe support.
5905 * stap-probe.h: Likewise.
5906 * symfile.h: Include `gdb_vecs.h'.
5907 (struct sym_probe_fns): New struct.
5908 (struct sym_fns) <sym_probe_fns>: New field.
5909 * symtab.c (init_sal): Initialize `probe' field.
5910 * symtab.h (struct probe): Forward declaration.
5911 (struct symtab_and_line) <probe>: New field.
5912 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5914 (stop_tracing): Likewise.
5915 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5917 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5918 Tom Tromey <tromey@redhat.com>
5920 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5921 and to compile agent expressions.
5922 * infrun.c (siginfo_make_value): New argument `ignore'.
5923 (siginfo_funcs): New struct.
5924 (_initialize_infrun): New argument when calling
5925 `create_internalvar_type_lazy'.
5926 * thread.c (thread_id_make_value): New argument `ignore'.
5927 (thread_funcs): New struct.
5928 (_initialize_thread): New argument when calling
5929 `create_internalvar_type_lazy'.
5930 * tracepoint.c (sdata_make_value): New argument `ignore'.
5931 (sdata_funcs): New struct.
5932 (_initialize_tracepoint): New argument when calling
5933 `create_internalvar_type_lazy'.
5934 * value.c (make_value): New struct.
5935 (create_internalvar_type_lazy): New argument `data'.
5936 (compile_internalvar_to_ax): New function.
5937 (value_of_internalvar): Properly handling `make_value' case.
5938 (clear_internalvar): Likewise.
5939 (show_convenience): Adding `TRY_CATCH' block.
5940 * value.h (internalvar_make_value): Delete, replace by...
5941 (struct internalvar_funcs): ... this.
5942 (create_internalvar_type_lazy) <fun>: Delete argument.
5943 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5944 (compile_internalvar_to_ax): New function.
5945 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5946 (tlb_funcs): New struct.
5947 (_initialize_windows_tdep): New argument when calling
5948 `create_internalvar_type_lazy'.
5950 2012-04-27 Mark Wielaard <mjw@redhat.com>
5952 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5953 see whether it is an address or a constant offset from DW_AT_low_pc.
5954 (dwarf2_record_block_ranges): Likewise.
5955 (read_partial_die): Likewise.
5957 2012-04-26 Mark Wielaard <mjw@redhat.com>
5959 * MAINTAINERS (Write After Approval): Add myself to the list.
5961 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5963 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5964 (proc_prettyprint_signal): Likewise.
5965 (proc_prettyprint_faultset): Likewise.
5966 (proc_prettyprint_fault): Likewise.
5967 (proc_prettyprint_actionset): Likewise.
5968 (proc_prettyprint_flags): Move to new proc-flags.c section.
5969 (proc_prettyfprint_flags): New prototype.
5970 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5971 (proc_syscall, proc_cursig): Likewise.
5972 (proc_set_kill_on_last_close): Likewise.
5973 (proc_unset_kill_on_last_close): Likewise.
5974 (proc_set_watchpoint): Make static.
5975 (proc_delete_dead_threads): Likewise.
5976 (procfs_set_watchpoint): Likewise.
5977 (_initialize_procfs): Add prototype.
5978 * proc-events.c: Include proc-utils.h.
5979 (init_syscall_table): Make static.
5980 * proc-api.c (_initialize_proc_api): Add prototype.
5981 * proc-flags.c: Include proc-utils.h.
5983 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5985 * configure.ac: Add AC_ARG_PROGRAM.
5986 * configure: Regenerate.
5988 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5990 Fix DW_AT_lower_bound defaults for DWARF-4+.
5991 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5992 high. New variable low_default_is_valid. Implement DWARF-4+
5993 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5994 no default by the DWARF standard.
5996 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5997 Maciej W. Rozycki <macro@codesourcery.com>
5999 * infrun.c (handle_inferior_event): Move the check for return
6000 trampolines ahead of the check for function trampolines.
6001 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6002 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6003 (mips_str_mips16_ret_stub): Likewise.
6004 (mips_str_call_fp_stub): Likewise.
6005 (mips_str_call_stub): Likewise.
6006 (mips_str_fn_stub): Likewise.
6007 (mips_str_pic): Likewise.
6008 (mips_in_frame_stub): New function.
6009 (mips_unwind_pc): Return the return address rather than the PC
6010 if the PC of an intermediate frame is inside a call thunk.
6011 (mips_is_stub_suffix): New function.
6012 (mips_is_stub_mode): Likewise.
6013 (mips_get_mips16_fn_stub_pc): Likewise.
6014 (mips_skip_mips16_trampoline_code): Update to handle all the
6015 currently generated stub types. Don't recurse into __fn_stub
6016 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6017 Use cooked register accesses.
6018 (mips_in_return_stub): Reintroduce function.
6019 (mips_skip_trampoline_code): Traverse trampolines recursively.
6020 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6022 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6026 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6028 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6029 * features/arm-with-m-vfp-d16.xml: New file. Describes
6030 Cortex-M with VFPv4-sp-d16 FPU register layout.
6031 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6032 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6033 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6034 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6035 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6037 2012-04-25 Doug Evans <dje@google.com>
6039 * cli/cli-decode.c (print_doc_line): Use stream instead of
6042 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6044 * features/arm-with-iwmmxt.c: Regenerate.
6045 * features/arm-with-m-fpa-layout.c: Likewise.
6046 * features/arm-with-m.c: Likewise.
6047 * features/arm-with-neon.c: Likewise.
6048 * features/arm-with-vfpv2.c: Likewise.
6049 * features/arm-with-vfpv3.c: Likewise.
6050 * features/mips-dsp-linux.c: Likewise.
6051 * features/mips-linux.c: Likewise.
6052 * features/mips64-dsp-linux.c: Likewise.
6053 * features/mips64-linux.c: Likewise.
6054 * features/s390-linux32.c: Likewise.
6055 * features/s390-linux32v1.c: Likewise.
6056 * features/s390-linux32v2.c: Likewise.
6057 * features/s390-linux64.c: Likewise.
6058 * features/s390-linux64v1.c: Likewise.
6059 * features/s390-linux64v2.c: Likewise.
6060 * features/s390x-linux64.c: Likewise.
6061 * features/s390x-linux64v1.c: Likewise.
6062 * features/s390x-linux64v2.c: Likewise.
6063 * features/tic6x-c62x-linux.c: Likewise.
6064 * features/tic6x-c62x.c: Likewise.
6065 * features/tic6x-c64x-linux.c: Likewise.
6066 * features/tic6x-c64x.c: Likewise.
6067 * features/tic6x-c64xp-linux.c: Likewise.
6068 * features/tic6x-c64xp.c: Likewise.
6069 * target-descriptions.c: Only generate `field_type' and `type'
6070 variables when needed.
6072 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6074 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6076 2012-04-25 Doug Evans <dje@google.com>
6078 Initial pass at Go language support.
6080 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6082 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6083 (YYFILES): Add go-exp.c.
6084 (YYOBJ): Add go-exp.o.
6085 (local-maintainer-clean): Delete go-exp.c.
6086 * defs.h (enum language): Add language_go.
6087 * dwarf2read.c: #include "go-lang.h".
6088 (fixup_go_packaging): New function.
6089 (process_full_comp_unit): Call it when processing Go CUs.
6090 (dwarf2_physname): Add Go support.
6091 (read_file_scope): Handle missing language spec for GNU Go.
6092 (set_cu_language): Handle DW_LANG_Go.
6093 * go-exp.y: New file.
6094 * go-lang.h: New file.
6095 * go-lang.c: New file.
6096 * go-typeprint.c: New file.
6097 * go-valprint.c: New file.
6098 * symtab.c: #include "go-lang.h".
6099 (symbol_set_language): Handle language_go.
6100 (symbol_find_demangled_name, symbol_set_names): Ditto.
6101 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6103 2012-04-24 Jim Meyering <meyering@redhat.com>
6105 avoid a few strncpy-induced buffer overruns
6106 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6107 fname and psargs before trying to concatenate.
6108 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6109 "name" before applying strchr.
6111 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6113 * CONTRIBUTE: Use unified diff instead of context diff when
6116 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6118 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6119 code. Handle JR.HB correctly.
6121 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6124 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6125 with the other MIPS16 helpers.
6127 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6129 * observer.sh: Conditionally declare `args', thus cleaning up
6130 unused instances of this variable.
6132 2012-04-24 Yao Qi <yao@codesourcery.com>
6134 Revert this patch to allow breakpoint always-inserted
6136 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6137 * breakpoint.c: Include record.h.
6138 (breakpoints_always_inserted_mode): Return false when the record
6141 * breakpoint.c (iterate_over_bp_locations): New.
6142 * breakpoint.h: Declare.
6143 New typedef walk_bp_location_callback.
6144 * record.c (record_open): Call record_init_record_breakpoints.
6145 (record_sync_record_breakpoints): New.
6146 (record_init_record_breakpoints): New.
6147 * NEWS: Mention supporting breakpoint always-inserted mode in
6150 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6152 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6155 2012-04-24 Yao Qi <yao@codesourcery.com>
6157 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6158 (is_catchpoint): ... it.
6159 (print_one_breakpoint_location): Caller update.
6160 * breakpoint.h: Update declaration.
6162 2012-04-23 David S. Miller <davem@davemloft.net>
6164 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6166 2012-04-23 Tom Tromey <tromey@redhat.com>
6168 * buildsym.c (add_free_pendings): Remove.
6169 * buildsym.h (add_free_pendings): Remove.
6171 2012-04-23 Doug Evans <dje@google.com>
6173 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6174 attr.u.unsnd instead of attr.u.addr.
6175 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6176 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6178 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6179 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6181 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6183 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6185 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6186 (mips_o32_return_value): Likewise.
6187 (mips_o64_return_value): Likewise.
6189 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6191 * ada-lang.c (ada_evaluate_subexp): Add cases for
6192 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6193 their treatment in eval.c.
6195 2012-04-21 David S. Miller <davem@davemloft.net>
6197 * sparc-tdep.c (X_DISP10): Define.
6198 (sparc_analyze_control_transfer): Handle compare-and-branch.
6200 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6202 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6203 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6205 2012-04-20 Nigel Stephens <nigel@mips.com>
6206 Maciej W. Rozycki <macro@codesourcery.com>
6208 * mips-tdep.c (mips_float_register_p): New function.
6209 (mips_convert_register_float_case_p): Use mips_float_register_p.
6210 (mips_register_type): Likewise.
6211 (mips_print_register): Likewise.
6212 (print_gp_register_row): Likewise.
6213 (mips_print_registers_info): Likewise.
6215 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6217 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6220 2012-04-20 Andrew Pinski <apinski@cavium.com>
6222 * MAINTAINERS (Write After Approval): Add myself to the list.
6224 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6226 * MAINTAINERS: Update my e-mail address.
6228 2012-04-20 Pedro Alves <palves@redhat.com>
6230 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6232 * configure: Regenerate.
6234 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6236 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6238 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6240 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6242 Fix compilation compatibility with python-2.4
6243 * python/py-type.c (convert_field): Cast ADDRSTRING for
6244 PyObject_SetAttrString as non-const. New comment.
6246 2012-04-19 Tom Tromey <tromey@redhat.com>
6248 * top.c (quit_target): Use all_cleanups.
6249 * main.c (captured_command_loop): Use all_cleanups.
6250 * exceptions.c (throw_exception): Use all_cleanups.
6252 2012-04-19 Pedro Alves <palves@redhat.com>
6254 * Makefile.in (GNULIB_BUILDDIR): New.
6255 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6256 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6257 (CLEANDIRS). Remove gnulib/import.
6258 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6260 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6261 (gnulib/import/Makefile): Replace gnulib/import with
6262 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6263 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6264 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6265 acx_configure_dir.m4.
6266 * acinclude.m4: Include acx_configure_dir.m4.
6267 * acx_configure_dir.m4: New file.
6268 * aclocal.m4: Regenerate.
6269 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6270 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6271 (GNULIB): New variable.
6272 (GNULIB_STDINT_H): Adjust.
6273 (AC_OUTPUT): Don't output gnulib/Makefile.
6274 * gdb/defs.h: Include build-gnulib/config.h.
6275 * aclocal.m4: Regenerate.
6276 * config.in: Regenerate.
6277 * configure: Regenerate.
6279 * gnulib/Makefile.in: New file.
6280 * gnulib/configure.ac: New file.
6281 * gnulib/aclocal.m4: New file.
6282 * gnulib/config.in: New file.
6283 * gnulib/configure: New file.
6284 * gnulib/: Re-run gnulib-tool to adjust.
6286 2012-04-19 Doug Evans <dje@google.com>
6288 * cleanups.h (struct cleanup): Move to cleanups.c.
6289 (make_cleanup_dtor_ftype): New typedef.
6290 (make_cleanup_dtor): Use it.
6291 (ALL_CLEANUPS): Replace with ...
6292 (all_cleanups): ... this. Declare. All uses updated.
6293 * cleanups.c: #include "gdb_assert.h".
6294 (sentinel_cleanup): New static global.
6295 (SENTINEL_CLEANUP): Define.
6296 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6297 (make_my_cleanup2): Assert result is non-NULL.
6298 (all_cleanups): New function.
6299 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6302 2012-04-19 Pedro Alves <palves@redhat.com>
6304 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6305 Adjust paths to gnulib imported files.
6307 2012-04-19 Pedro Alves <palves@redhat.com>
6309 * gnulib/: Move whole directory ...
6310 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6311 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6312 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6313 (aclocal_m4_deps): Adjust.
6314 * aclocal.m4: Regenerate.
6315 * configure: Regenerate.
6316 * configure.ac: Adjust AC_OUTPUT output.
6318 2012-04-19 Yao Qi <yao@codesourcery.com>
6320 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6322 * vec.c: Move it ...
6323 * common/vec.c: ... here.
6324 * vec.h: Move it ...
6325 * common/vec.h: ... here.
6327 2012-04-19 Yao Qi <yao@codesourcery.com>
6329 * gdb-code-style.el: New.
6331 2012-04-18 Pedro Alves <palves@redhat.com>
6333 Update gnulib from latest git.
6334 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6336 * gnulib/Makefile.am: Update.
6337 * gnulib/dummy.c: Update.
6338 * gnulib/extra/arg-nonnull.h: Update.
6339 * gnulib/extra/c++defs.h: Update.
6340 * gnulib/extra/update-copyright: Update.
6341 * gnulib/extra/warn-on-use.h: Update.
6342 * gnulib/inttypes.in.h: Update.
6343 * gnulib/m4/00gnulib.m4: Update.
6344 * gnulib/m4/extensions.m4: Update.
6345 * gnulib/m4/gnulib-cache.m4: Update.
6346 * gnulib/m4/gnulib-common.m4: Update.
6347 * gnulib/m4/gnulib-comp.m4: Update.
6348 * gnulib/m4/gnulib-tool.m4: Update.
6349 * gnulib/m4/include_next.m4: Update.
6350 * gnulib/m4/inttypes-pri.m4: Update.
6351 * gnulib/m4/inttypes.m4: Update.
6352 * gnulib/m4/longlong.m4: Update.
6353 * gnulib/m4/memchr.m4: Update.
6354 * gnulib/m4/memmem.m4: Update.
6355 * gnulib/m4/mmap-anon.m4: Update.
6356 * gnulib/m4/multiarch.m4: Update.
6357 * gnulib/m4/onceonly.m4: Update.
6358 * gnulib/m4/stddef_h.m4: Update.
6359 * gnulib/m4/stdint.m4: Update.
6360 * gnulib/m4/string_h.m4: Update.
6361 * gnulib/m4/warn-on-use.m4: Update.
6362 * gnulib/m4/wchar_h.m4: Update.
6363 * gnulib/m4/wchar_t.m4: Update.
6364 * gnulib/m4/wint_t.m4: Update.
6365 * gnulib/memchr.c: Update.
6366 * gnulib/memmem.c: Update.
6367 * gnulib/stddef.in.h: Update.
6368 * gnulib/stdint.in.h: Update.
6369 * gnulib/str-two-way.h: Update.
6370 * gnulib/string.in.h: Update.
6371 * gnulib/wchar.in.h: Update.
6373 * gnulib/extra/arg-nonnull.h: Delete.
6374 * gnulib/extra/c++defs.h: Delete.
6375 * gnulib/extra/warn-on-use.h: Delete.
6376 * gnulib/m4/wchar_h.m4: Delete.
6377 * gnulib/m4/wint_t.m4: Delete.
6378 * gnulib/wchar.in.h: Delete.
6380 * gnulib/extra/snippets/arg-nonnull.h: New.
6381 * gnulib/extra/snippets/c++defs.h: New.
6382 * gnulib/extra/snippets/warn-on-use.h: New.
6384 * aclocal.m4: Regenerate.
6385 * config.in: Regenerate.
6386 * configure: Regenerate.
6387 * gnulib/Makefile.in: Regenerate.
6389 2012-04-18 Pedro Alves <palves@redhat.com>
6391 Reimport the update-copyright module from gnulib
6392 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6394 * configure: Regenerate.
6395 * gnulib/Makefile.am: Update.
6396 * gnulib/Makefile.in: Regenerate.
6397 * gnulib/extra/update-copyright: Update.
6398 * gnulib/m4/gnulib-cache.m4: Update.
6399 * gnulib/m4/gnulib-comp.m4: Update.
6401 2012-04-18 Tristan Gingold <gingold@adacore.com>
6403 * configure.ac (aix): Put -lpthread into libs.
6404 * configure: Regenerate.
6406 2012-04-18 Tom Tromey <tromey@redhat.com>
6408 * linespec.c (convert_linespec_to_sals): Don't use
6410 (compare_msymbols): Arguments are minsym_and_objfile, not
6411 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6413 2012-04-18 Pedro Alves <palves@redhat.com>
6415 Revert gnulib/ part of:
6416 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6417 Copyright year update in most files (performed by copyright.sh).
6419 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6421 Fix 64-bit constants on 32-bit hosts.
6422 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6423 from unsigned long to ULONGEST.
6424 (read_signed_leb128): Change declaration return type from long to
6426 (dwarf2_const_value_attr): Change declaration parameter value from long
6428 (dwarf2_compute_name): Change variable value from long to LONGEST.
6429 (read_unsigned_leb128): Change return type, variable result and some
6430 casts from unsigned long to ULONGEST.
6431 (read_signed_leb128): Change return type, variable result and some
6432 casts from long to LONGEST.
6433 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6434 value from long to LONGEST.
6435 (dwarf2_const_value): Change variable value from long to LONGEST.
6436 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6437 plongest and hex_string.
6438 * symtab.h (struct general_symbol_info): Change ivalue from long to
6439 LONGEST, remove the comment.
6440 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6441 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6443 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6446 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6447 * ada-lang.c (ada_discrete_type_high_bound)
6448 (ada_discrete_type_low_bound): Fix function comment. Use
6449 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6450 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6451 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6452 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6453 Use TYPE_FIELD_ENUMVAL.
6454 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6455 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6456 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6457 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6459 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6460 * dwarf2read.c (process_enumeration_scope): Likewise.
6461 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6463 (class StructMainTypePrettyPrinter): Support also
6464 FIELD_LOC_KIND_ENUMVAL.
6465 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6467 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6468 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6469 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6470 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6472 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6473 accommodate enumval.
6474 (struct call_site): Adjust loc_kind to accommodate enumval.
6475 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6476 (TYPE_FIELD_ENUMVAL): New macros.
6477 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6478 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6480 * p-typeprint.c (pascal_type_print_base): Likewise.
6481 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6483 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6484 * python/py-type.c (convert_field): New variable addrstring. Use
6485 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6486 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6487 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6488 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6490 * valprint.c (generic_val_print): Likewise.
6492 2012-04-17 Doug Evans <dje@google.com>
6494 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6496 * dwarf2read.c: Whitespace fixes.
6497 (lookup_signatured_type): Tweak comment.
6498 (get_die_type_at_offset): Fix comment.
6500 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6502 * xcoffread.c (xcoff_secnum_to_sections): New function.
6503 (secnum_to_section, secnum_to_bfd_section): Reimplement
6504 using xcoff_secnum_to_sections. Rename "secnum" parameter
6506 (RECORD_MINIMAL_SYMBOL): Delete.
6507 (record_minimal_symbol): New function.
6508 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6509 by call to record_minimal_symbol and set misc_func_recorded
6510 to 1. Set last_csect_sec to the XCOFF section index instead
6511 of GDB's section_offset index. Update calls to
6512 prim_record_minimal_symbol_and_info to pass the BFD section
6515 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6517 * xcoffread.c (read_xcoff_symtab): Delete variables
6518 last_csect_val and last_csect_sec and associated code.
6520 2012-04-17 Doug Evans <dje@google.com>
6522 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6523 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6524 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6525 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6527 * cleanups.h: New file.
6528 * cleanups.c: New file.
6529 * Makefile.in (SFILES): Add cleanups.c.
6530 (HFILES_NO_SRCDIR): Add cleanups.h.
6531 (COMMON_OBS): Add cleanups.o.
6532 * defs.h (struct cleanup): Moved to cleanups.h.
6533 (do_cleanups,do_final_cleanups): Ditto.
6534 (discard_cleanups,discard_final_cleanups): Ditto
6535 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6536 (save_cleanups,save_final_cleanups): Ditto.
6537 (restore_cleanups,restore_final_cleanups): Ditto.
6538 (null_cleanup): Ditto.
6539 (make_my_cleanup,make_my_cleanup2): Ditto.
6540 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6541 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6542 (do_cleanups,do_final_cleanups): Ditto.
6543 (discard_cleanups,discard_final_cleanups): Ditto
6544 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6545 (save_cleanups,save_final_cleanups): Ditto.
6546 (restore_cleanups,restore_final_cleanups): Ditto.
6547 (null_cleanup): Ditto.
6548 (make_my_cleanup,make_my_cleanup2): Ditto.
6549 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6551 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6553 (make_cleanup_dyn_string_delete): Ditto.
6554 (make_cleanup_ui_file_delete): Ditto.
6555 (make_cleanup_ui_out_redirect_pop): Ditto.
6556 (make_cleanup_free_section_addr_info): Ditto.
6557 (make_cleanup_restore_integer): Ditto.
6558 (make_cleanup_unpush_target): Ditto.
6559 (make_cleanup_value_free_to_mark): Ditto.
6560 (make_cleanup_value_free): Ditto.
6561 (make_cleanup_free_so): Ditto.
6563 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6565 New option "set debug auto-load".
6566 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6567 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6568 (auto_load_safe_path_vec_update)
6569 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6571 (file_is_auto_load_safe): New parameters debug_fmt and ....
6572 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6573 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6574 caller by explanatory string.
6575 (_initialize_auto_load): Register "set debug auto-load".
6576 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6578 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6579 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6580 by explanatory string.
6581 * main.c (captured_main): Likewise.
6582 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6583 (source_section_scripts): Likewise.
6585 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6587 New option "set auto-load safe-path".
6588 * NEWS: New commands "set auto-load safe-path"
6589 and "show auto-load safe-path".
6590 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6591 (auto_load_safe_path, auto_load_safe_path_vec)
6592 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6593 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6594 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6595 (source_gdb_script_for_objfile): New variable is_safe. Call
6596 file_is_auto_load_safe. Return if it is not.
6597 (struct loaded_script): New field loaded.
6598 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6599 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6600 output "Missing" to "No".
6601 (_initialize_auto_load): New variable cmd. Initialize
6602 auto_load_safe_path. Register "set auto-load safe-path",
6603 "show auto-load safe-path" and "add-auto-load-safe-path".
6604 * auto-load.h (maybe_add_script): Add parameter loaded.
6605 (file_is_auto_load_safe): New declaration.
6606 * config.in: Regenerate.
6607 * configure: Regenerate.
6608 * configure.ac: New parameters --with-auto-load-safe-path
6609 and --without-auto-load-safe-path.
6610 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6611 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6612 * main.c (captured_main): Check file_is_auto_load_safe for
6614 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6615 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6616 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6619 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6621 auto-load: Implementation.
6622 * NEWS: New descriptions for "info auto-load",
6623 "info auto-load gdb-scripts", "info auto-load python-scripts",
6624 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6625 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6626 and "show auto-load-scripts". New description for "set auto-load",
6627 "show auto-load", "set auto-load gdb-scripts",
6628 "show auto-load gdb-scripts", "set auto-load python-scripts",
6629 "show auto-load python-scripts", "set auto-load local-gdbinit",
6630 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6631 "show auto-load libthread-db".
6632 * auto-load.c: Remove include python/python-internal.h. Add includes
6633 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6635 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6636 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6637 (gdbpy_global_auto_load): Rename to ...
6638 (global_auto_load): ... here.
6639 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6640 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6641 (script_language_gdb, source_gdb_script_for_objfile): New.
6642 (struct loaded_script): New field language.
6643 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6645 (maybe_add_script): Add parameter language. Drop redundant
6646 entry.full_path initialization. Initialize entry.language and
6648 (auto_load_objfile_script): Change parameter suffix to language.
6649 Remove the call of maybe_add_script.
6650 Call language->source_script_for_objfile.
6651 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6653 (collect_matching_scripts): Adjust it for
6654 struct collect_matching_scripts_data.
6655 (auto_load_info_scripts_pattern_nl): New variable.
6656 (info_auto_load_scripts): Rename to ...
6657 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6658 for struct collect_matching_scripts_data.
6659 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6660 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6661 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6662 (auto_load_info_cmdlist_get): New.
6663 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6664 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6665 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6666 "info auto-load local-gdbinit".
6667 * auto-load.h (struct script_language): New.
6668 (gdbpy_global_auto_load): Rename to ...
6669 (global_auto_load): ... here.
6670 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6671 (auto_load_local_gdbinit_loaded): New declarations.
6672 (maybe_add_script): New parameter language.
6673 (auto_load_objfile_script): Change parameter suffix to language.
6674 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6675 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6676 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6678 * linux-thread-db.c: Include auto-load.h and ctype.h.
6679 (auto_load_thread_db, show_auto_load_thread_db): New.
6680 (struct thread_db_info): New field filename.
6681 (delete_thread_db_info): Call xfree for FILENAME.
6682 (try_thread_db_load): Initialize FILENAME.
6683 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6684 if !AUTO_LOAD_THREAD_DB.
6685 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6686 (_initialize_thread_db): Install auto_load_thread_db
6687 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6688 as "info auto-load libthread-db".
6689 * main.c (captured_main): Rename gdbpy_global_auto_load to
6690 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6691 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6692 (print_gdb_help): Extend the help for 'local init file'.
6693 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6694 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6695 (auto_load_scripts): Rename to ...
6696 (auto_load_python_scripts): ... here, update the comment.
6697 (gdbpy_load_auto_script_for_objfile): New declaration.
6698 (show_auto_load_python_scripts, script_language_python)
6699 (gdbpy_load_auto_script_for_objfile): New.
6700 (source_section_scripts): Refactor the code.
6701 (load_auto_scripts_for_objfile): Rename to ...
6702 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6703 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6704 (info_auto_load_python_scripts): New.
6705 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6706 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6707 Register "set auto-load-scripts" as its deprecated alias. Register
6708 "info auto-load python-scripts". Register "info auto-load-scripts" as
6709 its deprecated alias.
6710 (load_auto_scripts_for_objfile): Rename to ...
6711 (gdbpy_load_auto_scripts_for_objfile): ... here.
6712 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6713 (gdbpy_load_auto_scripts_for_objfile): ... here.
6715 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6717 auto-load: Move files.
6718 * Makefile.in (SFILES): Add auto-load.c.
6719 (HFILES_NO_SRCDIR): Add auto-load.h.
6720 (COMMON_OBS): Add auto-load.o.
6721 (distclean): Change .gdbinit for gdb-gdb.gdb.
6722 * auto-load.c: New file, with parts from python/py-auto-load.c.
6723 * auto-load.h: New file, with parts from python/python.h.
6724 * configure: Regenerate.
6725 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6726 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6727 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6728 * main.c: Include auto-load.h.
6729 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6730 command.h, observer.h and progspace.h to auto-load.c. Add include
6732 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6733 (struct loaded_script, auto_load_pspace_data)
6734 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6735 (hash_loaded_script_entry, eq_loaded_script_entry)
6736 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6737 (maybe_add_script): Move to auto-load.c.
6738 (source_section_scripts): Change maybe_add_script parameters passing,
6739 use script_not_found_warning_print.
6740 (clear_section_scripts, auto_load_objfile_script)
6741 (auto_load_new_objfile, loaded_script_ptr)
6742 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6743 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6744 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6745 auto_load_new_objfile and info_auto_load_scripts initizations to
6747 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6749 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 * charset.c (find_charset_names): Remove variables ix and elt.
6753 Use free_char_ptr_vec.
6754 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6755 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6756 debugdir_end. New variable debugdir_len.
6757 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6758 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6760 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6761 and elt. Use free_char_ptr_vec.
6762 * source.c (add_path): Remove variables argv, arg and argv_index.
6763 New variables dir_vec, back_to, ix and name.
6764 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6765 make_cleanup_freeargv. Remove variable separator. Simplify the code
6766 no longer expecting DIRNAME_SEPARATOR.
6767 (openp): Remove variable p, p1 and len. New variables dir_vec,
6768 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6769 no longer expecting DIRNAME_SEPARATOR.
6770 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6771 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6773 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6774 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6775 (dirnames_to_char_ptr_vec): New functions.
6777 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6780 * source.c (add_path): Remove always true conditional 'p == 0' and
6781 unindent its code block.
6783 2012-04-17 Pedro Alves <palves@redhat.com>
6785 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6786 (FIELD_BITPOS_LVAL): ... this.
6787 (FIELD_BITPOS): New.
6788 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6789 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6790 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6792 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6794 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6795 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6796 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6799 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6801 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6802 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6803 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6804 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6805 * jv-lang.c (java_link_class_type): Likewise, once.
6806 * stabsread.c (read_enum_type): Likewise.
6808 2012-04-16 Yao Qi <yao@codesourcery.com>
6810 * common/agent.c (agent_run_command): Add one more parameter `len'.
6812 * common/agent.h: Update declaration.
6813 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6815 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6817 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6820 * value.c (value_actual_type): New function.
6821 * value.h (value_actual_type): New declaration.
6822 * varobj.c (update_type_if_necessary): New function.
6823 (varobj_create): Call value_actual_type instead of
6825 (install_dynamic_child): distinct changed and type changed MI variable
6827 (update_dynamic_varobj_children): Updated for install_dynamic_child
6828 change. All callers updated.
6829 (varobj_update): Support for MI variable object type change if
6830 the value changed and RTTI is used to determine the type.
6831 (create_child_with_value): Call value_actual_type instead of
6833 (adjust_value_for_child_access): Extended with a new parameter which
6834 specify whether the given value should be casted to enclosing type.
6835 All callers updated.
6837 2012-04-14 Yao Qi <yao@codesourcery.com>
6839 Import gnulib module inttypes from git
6840 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6841 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6842 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6843 gnulib/m4/inttypes-pri.m4
6844 * aclocal.m4, config.in, configure: Regenerated.
6845 * gnulib/Makefile.am: Update.
6846 * gnulib/Makefile.in: Update.
6847 * gnulib/m4/gnulib-cache.m4: Update.
6848 * gnulib/m4/gnulib-comp.m4: Update.
6849 * gnulib/inttypes.in.h: New.
6850 * gnulib/m4/inttypes-pri.m4: New.
6851 * gnulib/m4/inttypes.m4: New.
6853 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6855 * infrun.c (resume): Update PC address to the real PC after
6856 preparing to do displaced stepping.
6858 2012-04-12 Doug Evans <dje@google.com>
6860 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6861 All callers updated.
6863 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6865 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6867 2012-04-12 Doug Evans <dje@google.com>
6869 * dwarf2read.c (create_all_type_units): Renamed from
6870 create_debug_types_hash_table. All callers updated.
6872 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6873 local type_sig to sig_type, type_offset to type_offset_in_tu.
6874 (hash_signatured_type): Renamed from hash_type_signature,
6875 all callers updated.
6876 (eq_signatured_type): Renamed from eq_type_signature,
6877 all callers updated.
6878 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6879 (process_enumeration_scope): Ditto.
6880 (lookup_signatured_type_at_offset): Ditto.
6881 (load_full_type_unit, read_signatured_type): Ditto.
6883 2012-04-12 Yao Qi <yao@codesourcery.com>
6885 * remote.c (async_remote_interrupt): Correct function name in
6887 (async_remote_interrupt_twice): Ditto.
6889 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6891 * source.c (find_and_open_source): Consistently pass resulting
6892 full path through xfullpath.
6894 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6896 Provide more specific displaced-stepping memory error message.
6897 * infrun.c (displaced_step_prepare): New variable status. Call
6898 target_read_memory instead of read_memory, provide more specific
6901 2012-04-11 Tristan Gingold <gingold@adacore.com>
6904 * darwin-nat.c (darwin_execvp): Revert previous patch.
6906 2012-04-11 Tristan Gingold <gingold@adacore.com>
6909 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6912 2012-04-11 Tristan Gingold <gingold@adacore.com>
6914 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6917 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6919 New command 'explore' which helps explore values and types in
6921 * NEWS: Add an entry about the new 'explore' command.
6922 * data-directory/Makefile.in: Add gdb/command/explore.py
6923 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6924 command using the GDB Python API.
6926 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6928 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6929 extension in jump target calculation.
6931 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6933 * mips-tdep.c (mips32_next_pc): Handle JALX.
6935 2012-04-10 Yao Qi <yao@codesourcery.com>
6937 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6939 2012-04-10 Yao Qi <yao@codesourcery.com>
6941 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6942 and gnulib/m4/gnulib-tool.m4.
6944 2012-04-10 Doug Evans <dje@google.com>
6946 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6947 (load_partial_dies): Clarify comment.
6948 (find_partial_die): Support rereading type units.
6949 Clarify CU handling, if we know offset is in CU, don't search for the
6950 containing CU. Add comment regarding memory waste.
6952 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6954 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6955 i386/x32-avx and i386/x32-avx-linux.
6956 (i386/x32-expedite): New.
6957 (i386/x32-linux-expedite): Likewise.
6958 (i386/x32-avx-expedite): Likewise.
6959 (i386/x32-avx-linux-expedite): Likewise.
6960 ($(outdir)/i386/x32.dat): Likewise.
6961 ($(outdir)/i386/x32-linux.dat): Likewise.
6962 ($(outdir)/i386/x32-avx.dat): Likewise.
6963 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6965 * features/i386/x32-avx-linux.xml: New file.
6966 * features/i386/x32-avx.xml: Likewise.
6967 * features/i386/x32-core.xml: Likewise.
6968 * features/i386/x32-linux.xml: Likewise.
6969 * features/i386/x32.xml: Likewise.
6971 * features/i386/x32-avx-linux.c: New. Generated.
6972 * features/i386/x32-avx.c: Likewise.
6973 * features/i386/x32-linux.c: Likewise.
6974 * features/i386/x32.c: Likewise.
6975 * regformats/i386/x32-avx-linux.dat: Likewise.
6976 * regformats/i386/x32-avx.dat: Likewise.
6977 * regformats/i386/x32-linux.dat: Likewise.
6978 * regformats/i386/x32.dat: Likewise.
6980 2012-04-10 Tristan Gingold <gingold@adacore.com>
6982 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6983 code to kill the inferior.
6985 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6987 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6989 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6991 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6992 (yyvsp): New defines.
6993 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6995 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6997 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6999 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7001 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7004 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7006 * sparc64-tdep.c (sparc64_store_arguments)
7007 (sparc64_store_arguments): Fix coding style.
7009 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7011 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7012 complex floats, adjust some related comments and tighten a related
7014 (sparc64_extract_return_value): Handle complex floats.
7016 2012-04-07 Doug Evans <dje@google.com>
7018 * dwarf2read.c (load_partial_dies): Change condition to assert.
7020 2012-04-06 Doug Evans <dje@google.com>
7022 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7025 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7027 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7029 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7030 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7033 2012-04-05 Keith Seitz <keiths@redhat.com>
7035 * linespec.c (decode_compound): Remove.
7036 (enum offset_relative_sign): New enum.
7037 (struct line_offset): New struct.
7038 (struct linespec): New struct.
7039 (struct linespec_state): Move file_symtabs,
7040 user_filename, and user_function into struct linespec.
7041 Make result an anonymous struct holding vectors of
7042 symbolp and minsym_and_objfile_d.
7043 Add language member.
7044 (enum ls_token_type): New enum.
7045 (linespec_keywords): New array.
7046 (struct ls_token): New struct.
7047 (struct ls_parser): New struct.
7048 (linespec_lexer_lex_number): New function.
7049 (linespec_lexer_lex_keyword): New function.
7050 (is_ada_operator): New function.
7051 (skip_quote_char): New function.
7052 (copy_token_string): New function.
7053 (is_closing_quote_enclosed): New function.
7054 (find_parameter_list_end): New function.
7055 (linespec_lexer_lex_string): New function.
7056 (linespec_lexer_lex_one): New function.
7057 (linespec_lexer_consume_token): New function.
7058 (linespec_lexer_peek_token): New function.
7059 (cplusplus_error): Remove unused function.
7060 (find_methods): Update comment.
7061 (find_toplevel_char): Return const.
7062 (is_objc_method_format): Remove unused function.
7063 (find_toplevel_string): New function.
7064 (is_linespec_boundary): Remove.
7065 (symbol_not_found_error): New function.
7066 (find_method_overload_end): Remove function.
7067 (unexpected_linespec_error): New function.
7068 (keep_name_info): Remove.
7069 (linespec_parse_line_offset): New function.
7070 (linespec_parse_basic): New function.
7071 (canonicalize_linespec): New function.
7072 (decode_line_internal): Remove.
7073 (create_sals_line_offset): New function adapted from
7075 (convert_linespec_to_sals): New function.
7076 (parse_linespec): New function.
7077 (linespec_parser_new): New function.
7078 (linespec_state_destructor): Change parameter type to
7079 struct linespec_state *.
7080 Add language parameter.
7081 Remove freeing of moved members.
7082 (linespec_parser_delete): New function.
7083 (decode_line_full): Use parse_linespec and linespec_parser_new.
7084 (decode_line_1): Likewise.
7085 (decode_indirect): Rename to ...
7086 (linespec_expression_to_pc): ... this and rewrite
7087 to simply find CORE_ADDR, storing this result for later
7089 (locate_first_half): Remove.
7090 (deocde_objc): Add parameter LS.
7091 Initialize new struct collect_info members.
7092 Handle minimal symbols, too.
7093 (decode_compound): Delete.
7094 (lookup_prefix_sym): Rewrite.
7095 (compare_msymbols): New function.
7096 (find_method): Rewrite.
7097 Do not call cplusplus_error.
7098 (symtabs_from_filename): Rewrite.
7099 (collect_function_symbols): Delete.
7100 (find_function_symbols): Rewrite without ARGPTR-style
7102 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7103 (decode_dollar): Adapted and renamed to ...
7104 (linespec_parse_variable): ... this.
7105 (find_linespec_symbols): New function.
7106 (decode_label): Adapted and renamed to ...
7107 (find_label_symbols): ... this.
7108 (decode_digits_list_mode): Add and use LS argument.
7109 (decode_digits_ordinary): Likewise.
7110 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7111 If in list mode, allow any symbol class. Otherwise, only
7112 permit LOC_BLOCK symbols.
7113 (minsym_found): Update comments.
7114 (search_minsyms_for_name): Do not convert the matching symbol
7115 into a SAL. Simply push the symbol and objfile into the
7117 (decode_variable): Delete. Contents adapted into
7118 find_linespec_symbols.
7120 * cp-support.c (SKIP_SPACE): Remove.
7121 (operator_tokens): Remove unused global.
7122 (cp_validate_operator): Remove.
7123 * cp-support.h (cp_validate_operator): Remove declaration.
7125 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7127 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7128 for TYPE_VPTR_FIELDNO.
7129 * valprint.c (valprint_check_validity): Make it global, move the
7130 function comment ...
7131 * value.h (valprint_check_validity): ... to this new declaration.
7133 2012-04-02 Tristan Gingold <gingold@adacore.com>
7135 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7136 the STATE32 api for i386 state.
7137 (i386_darwin_store_inferior_registers): Likewise.
7139 2012-04-02 Tristan Gingold <gingold@adacore.com>
7141 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7143 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7146 2012-04-02 Tristan Gingold <gingold@adacore.com>
7149 * darwin-nat.c (darwin_execvp): Set binary preference.
7151 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7153 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7155 2012-03-30 Tom Tromey <tromey@redhat.com>
7157 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7158 of TRY_CATCH. Fix error handling.
7159 * python/py-value.c (convert_value_from_python): Move 'old'
7160 declaration to innermost scope.
7162 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7163 Andrey Smirnov <andrew.smirnov@gmail.com>
7165 -Wshadow warning fix.
7166 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7167 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7168 Adjust code accordingly.
7170 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7172 * ada-lang.c (symbol_completion_add): Rename parameter
7173 "encoded" into "encoded_p". Ajust code and documentation
7176 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7177 Andrey Smirnov <andrew.smirnov@gmail.com>
7179 -Wshadow warning fix.
7180 * ada-lang.c (symbol_completion_add): Rename parameter
7181 "wild_match" into wild_match_p. Update code and documentation
7184 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7186 * ada-lang.c (symbol_completion_match): Rename parameter
7187 "encoded" into "encoded_p". Ajust code and documentation
7190 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7191 Andrey Smirnov <andrew.smirnov@gmail.com>
7193 -Wshadow warning fix.
7194 * ada-lang.c (symbol_completion_match): Rename parameter
7195 "wild_match" into "wild_match_p". Adjust code and function
7196 documentation accordingly.
7198 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7199 Andrey Smirnov <andrew.smirnov@gmail.com>
7201 -Wshadow warning fix.
7202 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7203 "symbol_info" into "info". Adjust code accordingly.
7204 (ada_lookup_symbol): Likewise.
7206 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7208 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7209 of this function's documentation.
7211 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7212 Andrey Smirnov <andrew.smirnov@gmail.com>
7214 -Wshadow warning fix.
7215 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7216 variable into "wild_match_p". Adjust code accordingly.
7218 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7219 Andrey Smirnov <andrew.smirnov@gmail.com>
7221 -Wshadow warning fix.
7222 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7223 parameter into "wild_match_p". Adjust code accordingly.
7224 Document this parameter in the function description.
7226 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7227 Andrey Smirnov <andrew.smirnov@gmail.com>
7229 -Wshadow warning fix.
7230 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7231 "wild_match" parameter to "wild_match_p" (-Wshadow).
7233 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7235 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7236 in function documentation.
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_simple_minsym): Rename wild_match local
7243 variable into wild_match_p. Adjust code accordingly.
7245 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7246 Andrey Smirnov <andrew.smirnov@gmail.com>
7248 * ada-valprint.c (ada_val_print_1): Move the code handling
7249 TYPE_CODE_ENUM inside its own lexical block. Declare
7250 variables len and val there, instead of in the function's
7251 top level block. Avoid declaring deref_val again in a way
7252 that shadows another variable of the same name declared
7253 in one of the up-level blocks. Just re-use the up-level
7256 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7258 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7259 Replace block_found argument by symbol_info. Adjust
7260 implementation accordingly. Add function documentation.
7261 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7263 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7264 * ada-exp.y (write_object_renaming): Adjust to new
7265 ada_lookup_encoded_symbol API.
7267 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7269 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7272 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7274 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7275 (v850_register_name): Add the mpu and fpu register names.
7276 (v850e_register_name): Add the mpu and fpu register names.
7277 (v850e2_register_name): New function.
7278 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7281 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7283 * NEWS: Add entry for Ada varobj support.
7285 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7287 * varobj.c (default_value_is_changeable_p): New function,
7288 extracted from varobj_value_is_changeable_p. Add declaration.
7289 (ada_value_is_changeable_p): New function, extracted from
7290 varobj_value_is_changeable_p. Add declaration.
7291 (struct language_specific): New field "value_is_changeable_p".
7292 (languages): Add entries for new field.
7293 (varobj_create): Set language before calling install_new_value.
7294 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7295 "value_is_changeable_p" language callback.
7297 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7299 * ada-varobj.h, ada-varobj.c: New files.
7300 * Makefile.in (SFILES): Add ada-varobj.c.
7301 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7302 (COMMON_OBS): Add ada-varobj.o.
7304 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7306 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7307 (struct language_specific): New field "value_has_mutated".
7308 (languages): Set field "value_has_mutated" in each entry of array.
7309 (varobj_value_has_mutated): New function.
7310 (varobj_udpdate): Add handling of type mutation.
7311 (value_of_root): Add handling of type mutation.
7312 (ada_value_has_mutated): New function.
7314 2012-03-28 Pedro Alves <palves@redhat.com>
7316 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7317 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7319 2012-03-28 Tom Tromey <tromey@redhat.com>
7321 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7322 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7325 2012-03-28 Tom Tromey <tromey@redhat.com>
7327 * .dir-locals.el: New file.
7329 2012-03-28 Pedro Alves <palves@redhat.com>
7331 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7333 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7335 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7338 2012-03-27 Pedro Alves <palves@redhat.com>
7340 Eliminate struct ui_stream.
7342 * ui-out.h (struct ui_stream): Delete.
7343 (ui_out_field_stream): Adjust prototype.
7344 (ui_out_stream_new, ui_out_stream_delete)
7345 (make_cleanup_ui_out_stream_delete): Delete declarations.
7346 * ui-out.c (ui_out_field_stream): Change prototype to take a
7347 ui_file instead of a ui_stream. Adjust.
7348 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7349 (make_cleanup_ui_out_stream_delete): Delete.
7350 * breakpoint.c (print_breakpoint_location)
7351 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7352 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7353 * disasm.c (dump_insns): Ditto.
7354 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7356 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7357 ui_stream/ui_out_stream_new.
7358 * infcmd.c (print_return_value): Ditto.
7359 * osdata.c (info_osdata_command): Don't allocate a local
7361 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7362 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7363 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7364 allocate a local ui_stream.
7365 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7366 instead of ui_stream/ui_out_stream_new.
7367 (list_args_or_locals): Don't allocate a local ui_stream.
7368 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7369 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7370 ui_stream/ui_out_stream_new.
7371 * cli/cli-setshow.c (do_setshow_command): Ditto.
7373 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7375 * arm-linux-tdep.c (arm_linux_init_abi): Call
7376 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7377 * arm-tdep.c (arm_process_record): New function.
7378 (deallocate_reg_mem): New function.
7379 (decode_insn): New function.
7380 (thumb_record_branch): New function.
7381 (thumb_record_ldm_stm_swi(): New function.
7382 (thumb_record_misc): New function.
7383 (thumb_record_ld_st_stack): New function.
7384 (thumb_record_ld_st_imm_offset): New function.
7385 (thumb_record_ld_st_reg_offset(): New function.
7386 (thumb_record_add_sub_cmp_mov): New function.
7387 (thumb_record_shift_add_sub): New function.
7388 (arm_record_coproc_data_proc): New function.
7389 (arm_record_coproc): New function.
7390 (arm_record_b_bl): New function.
7391 (arm_record_ld_st_multiple): New function.
7392 (arm_record_ld_st_reg_offset): New function.
7393 (arm_record_ld_st_imm_offset): New function.
7394 (arm_record_data_proc_imm): New function.
7395 (arm_record_data_proc_misc_ld_str): New function.
7396 (arm_record_extension_space): New function.
7397 (arm_record_strx): New function.
7398 (sbo_sbz): New function.
7399 (struct insn_decode_record): New structure for arm insn record.
7400 (REG_ALLOC): New macro for reg allocations.
7401 (MEM_ALLOC): New macro for memory allocations.
7402 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7404 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7406 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7407 (store_register): Likewise.
7409 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7411 * MAINTAINERS (Write After Approval): Add myself to the list.
7413 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7415 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7416 Describe also the option "auto".
7418 2012-03-22 Richard Henderson <rth@redhat.com>
7420 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7421 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7423 2012-03-22 Richard Henderson <rth@redhat.com>
7425 * jit.c (jit_read_code_entry): Compute alignment and offset of
7426 int64_t member before computing entry_size.
7428 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7430 Python scripting: Add new method Value.referenced_value to
7431 gdb.Value which can dereference pointer as well as reference
7433 * NEWS: Add entry under 'Python scripting' about the new method
7434 Value.referenced_value on gdb.Value objects.
7435 * python/py-value.c (valpy_referenced_value): New function
7436 defining a new method on gdb.Value objects which can dereference
7437 pointer and reference values.
7439 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7441 * MAINTAINERS (Write After Approval): Add myself to the list.
7443 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7445 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7446 in addition to "main".
7448 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7450 * expression.h (op_name): Add declaration.
7451 * expprint.c (op_name): Remove declaration. Make non-static.
7452 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7454 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7456 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7458 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7459 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7460 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7461 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7462 (linux_nat_get_siginfo): Likewise.
7463 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7464 (linux_nat_get_siginfo): Likewise.
7465 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7466 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7467 * procfs.c (gdb_siginfo_t): Likewise.
7469 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7471 * .gitignore: Ignore more files.
7473 2012-03-20 Pedro Alves <palves@redhat.com>
7475 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7478 2012-03-20 Yao Qi <yao@codesourcery.com>
7480 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7483 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7485 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7486 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7487 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7489 * dwarf2expr.h (cu_offset, sect_offset): New types.
7490 (struct dwarf_expr_context_funcs) <dwarf_call>
7491 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7493 (struct dwarf_expr_context) <len>: Improve the comment.
7494 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7495 cu_offset and sect_offset.
7496 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7497 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7498 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7499 * dwarf2loc.h: Include dwarf2expr.h.
7500 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7502 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7503 Improve the comment.
7504 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7505 (struct signatured_type, struct line_header, struct partial_die_info)
7506 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7507 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7508 (get_die_type_at_offset, create_cus_from_index)
7509 (create_signatured_type_table_from_index, dw2_get_file_names)
7510 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7511 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7512 (create_debug_types_hash_table, process_psymtab_comp_unit)
7513 (load_partial_comp_unit, create_all_comp_units)
7514 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7515 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7516 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7517 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7518 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7519 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7520 (find_partial_die, read_attribute_value, lookup_die_type)
7521 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7522 (is_ref_attr): New function comment.
7523 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7524 Use cu_offset and sect_offset.
7525 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7526 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7527 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7528 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7529 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7530 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7531 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7534 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7537 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7538 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7540 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7542 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7544 * NEWS: Describe new options --init-command=FILE, -ix and
7545 --init-eval-command=COMMAND, -iex.
7546 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7547 CMDARG_INIT_COMMAND.
7548 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7549 "init-command", "init-eval-command", "ix" and "iex" to the variable
7550 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7551 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7552 (print_gdb_help): Describe --init-command=FILE, -ix and
7553 --init-eval-command=COMMAND, -iex.
7555 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7558 * main.c (struct cmdarg): Move it here from main. Add more comments.
7559 (cmdarg_s, VEC (cmdarg_s)): New.
7560 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7561 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7562 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7563 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7566 2012-03-19 Tom Tromey <tromey@redhat.com>
7568 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7570 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7573 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7576 2012-03-16 Chris January <chris.january@allinea.com>
7578 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7581 2012-03-16 Chris January <chris.january@allinea.com>
7583 * source.c (add_path): Use memmove instead of strcpy because the
7586 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7588 * value.h (set_value_parent): Add declaration.
7589 * value.c (set_value_parent): New function.
7590 (value_address): If VALUE->PARENT is not NULL, then use it as
7591 the base address instead of VALUE->LOCATION.address.
7592 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7593 the same as OBJ's address. Adjust V's offset accordingly.
7596 2012-03-16 Gary Benson <gbenson@redhat.com>
7598 PR breakpoints/10738
7599 * dwarf2read.c (use_deprecated_index_sections): New global.
7600 (struct partial_die_info): New member may_be_inlined.
7601 (read_partial_die): Set may_be_inlined where appropriate.
7602 (add_partial_subprogram): Add partial symbols for partial
7603 DIEs that may be inlined.
7604 (new_symbol_full): Add inlined subroutines to the current
7606 (write_psymtabs_to_index): Bump version number.
7607 (dwarf2_read_index): Read only version 6 indices unless
7608 use_deprecated_index_sections is set.
7609 * linespec.c (symbol_and_data_callback): New structure.
7610 (iterate_inline_only): New function.
7611 (iterate_over_all_matching_symtabs): New argument
7612 "include_inline". If nonzero, also call the callback for
7613 symbols representing inlined subroutines.
7614 (lookup_prefix_sym): Pass extra argument to the above.
7615 (find_function_symbols): Likewise.
7616 (add_matching_symbols_to_info): Likewise.
7617 * NEWS: Mention that GDB can now set breakpoints on inlined
7620 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7622 * p-typeprint.c (pascal_type_print_method_args):
7623 Fix display of parameter of methods.
7625 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7627 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7628 Add missing prototype.
7630 2012-03-16 Yao Qi <yao@codesourcery.com>
7631 Jan Kratochvil <jan.kratochvil@redhat.com>
7633 Fix false compilation warning.
7634 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7636 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7637 Pedro Alves <pedro@codesourcery.com>
7639 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7640 (arm_register_g_packet_guesses): New function.
7641 (arm_gdbarch_init): Don't force a target description with
7642 registers when the executable is detected as M-profile. Instead
7643 set gdbarch->tdep->is_m. Register `g' packet guesses.
7644 (_initialize_arm_tdep): Initialize the new target description.
7645 * features/arm-with-m-fpa-layout.xml: New description.
7646 * features/arm-with-m-fpa-layout.c: New, generated.
7648 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7650 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7651 Update function description.
7652 (insert_bp_location): Do not wipe bl->target_info out.
7653 * mem-break.c: #include "gdb_string.h".
7654 (default_memory_insert_breakpoint): Do not call target_read_memory
7655 with a pointer to the breakpoint's shadow_contents buffer. Use
7656 a local buffer instead.
7657 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7659 2012-03-15 Tom Tromey <tromey@redhat.com>
7661 * NEWS: Mention "info vtbl", not "info vtable".
7662 * cp-support.c (info_vtbl_command): Fix comment.
7663 (_initialize_cp_support): Fix text.
7665 2012-03-15 Tom Tromey <tromey@redhat.com>
7667 * cp-valprint.c (cp_print_value_fields): Use
7668 print_function_pointer_address for vtable slot.
7670 2012-03-15 Tom Tromey <tromey@redhat.com>
7672 * gnu-v3-abi.c (struct value_and_voffset): New.
7673 (hash_value_and_voffset, eq_value_and_voffset)
7674 (compare_value_and_voffset, compute_vtable_size)
7675 (print_one_vtable, gnuv3_print_vtable): New functions.
7676 (init_gnuv3_ops): Initialize 'print_vtable' field.
7677 * cp-support.c (info_vtbl_command): New function.
7678 (_initialize_cp_support): Add "info vtbl".
7679 * cp-abi.h (cplus_print_vtable): Declare.
7680 (struct cp_abi_ops) <print_vtable>: New field.
7681 * cp-abi.c (cplus_print_vtable): New function.
7684 2012-03-15 Tom Tromey <tromey@redhat.com>
7686 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7687 iterate_over_symbols.
7689 2012-03-14 Doug Evans <dje@google.com>
7691 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7692 DW_OP_GNU_parameter_ref.
7694 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7696 Fix double prompt of 'interpreter-exec mi'.
7697 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7698 (mi_interpreter_resume): use it.
7699 (mi_execute_command_input_handler): New function.
7700 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7701 mi_execute_command_input_handler.
7703 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7705 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7707 (darwin_debug_port_info): Make static.
7708 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7709 * machoread.c (_initialize_machoread): Add prototype.
7710 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7711 (i386_darwin_set_control, i386_darwin_get_control)
7712 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7713 i386_darwin_get_status, i386_darwin_get_control):
7714 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7716 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7718 * ax-gdb.c (gen_usual_unary): Remove special handling of
7719 enum and bool types.
7721 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7723 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7725 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7727 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7729 2012-03-13 Chris January <chris.january@allinea.com>
7731 * aix-thread.c (fill_sprs): Store the floating point registers
7732 at the correct offsets into vals.
7734 2012-03-13 Doug Evans <dje@google.com>
7736 * NEWS: Mention symbol-reloading has been deleted.
7737 * symfile.c (symbol_reloading): Delete.
7738 (show_symbol_reloading): Delete.
7739 (_initialize_symfile): Delete set/show symbol-reloading.
7741 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7742 read_in_chain until we have successfully read it in.
7743 (load_full_comp_unit): Ditto.
7744 (read_signatured_type): Add comment.
7746 2012-03-13 Chris January <chris.january@allinea.com>
7748 * stabsread.c (fix_common_block): Change type of valu argument
7751 2012-03-13 Chris January <chris.january@allinea.com>
7753 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7756 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7758 * common/linux-procfs.c (linux_proc_get_int): New, from
7759 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7761 (linux_proc_get_tgid): Only call linux_proc_get_int.
7762 (linux_proc_get_tracerpid): New.
7763 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7764 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7765 linux_proc_pid_has_state.
7766 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7767 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7768 (linux_ptrace_attach_warnings): New.
7769 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7771 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7772 (linux_nat_attach): New variables ex, buffer, message and message_s.
7773 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7775 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7777 * Makefile.in (linux-ptrace.o): New.
7778 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7780 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7781 * common/linux-ptrace.c: New file.
7782 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7783 * config/arm/linux.mh: Likewise.
7784 * config/i386/linux.mh: Likewise.
7785 * config/i386/linux64.mh: Likewise.
7786 * config/ia64/linux.mh: Likewise.
7787 * config/m32r/linux.mh: Likewise.
7788 * config/m68k/linux.mh: Likewise.
7789 * config/mips/linux.mh: Likewise.
7790 * config/pa/linux.mh: Likewise.
7791 * config/powerpc/linux.mh: Likewise.
7792 * config/powerpc/ppc64-linux.mh: Likewise.
7793 * config/powerpc/spu-linux.mh: Likewise.
7794 * config/s390/s390.mh: Likewise.
7795 * config/sparc/linux.mh: Likewise.
7796 * config/sparc/linux64.mh: Likewise.
7797 * config/xtensa/linux.mh: Likewise.
7798 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7799 common/linux-procfs.c.
7800 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7802 2012-03-13 Hui Zhu <teawater@gmail.com>
7803 Pedro Alves <palves@redhat.com>
7805 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7806 CREATE_BREAKPOINT_FLAGS_INSERTED.
7807 (create_breakpoint_sal, create_breakpoints_sal)
7808 (base_breakpoint_create_breakpoints_sal)
7809 (tracepoint_create_breakpoints_sal)
7810 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7812 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7813 (ftrace_command, strace_command): Adjust.
7814 (create_tracepoint_from_upload): Pass
7815 CREATE_BREAKPOINT_FLAGS_INSERTED.
7816 * breakpoint.h (enum breakpoint_create_flags): New.
7817 (create_breakpoint): New flags parameter.
7818 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7819 * python/py-breakpoint.c (bppy_init): Adjust.
7820 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7821 * spu-tdep.c (spu_catch_start): Adjust.
7823 2012-03-13 Pedro Alves <palves@redhat.com>
7824 Hui Zhu <teawater@gmail.com>
7825 Yao Qi <yao@codesourcery.com>
7827 * remote.c (struct remote_state): New field `starting_up'.
7828 (remote_start_remote): Set and clear it.
7829 (remote_can_download_tracepoint): If starting up, return false.
7831 2012-03-13 Yao Qi <yao@codesourcery.com>
7833 * inferior.h (struct inferior): Remove fields any_syscall_count,
7834 syscalls_counts and total_syscalls_count. Move them to new
7835 struct catch_syscall_inferior_data in breakpoint.c.
7836 * breakpoint.c: Call DEF_VEC_I(int).
7837 (struct catch_syscall_inferior_data): New.
7838 (get_catch_syscall_inferior_data): New.
7839 (catch_syscall_inferior_data_cleanup): New.
7840 (insert_catch_syscall): Update to access data in
7841 struct catch_syscall_inferior_data.
7842 (insert_catch_syscall): Likewise.
7843 (remove_catch_syscall): Likewise.
7844 (remove_catch_syscall): Likewise.
7845 (is_syscall_catchpoint_enabled): Likewise.
7846 (add_catch_command): Likewise.
7847 (_initialize_breakpoint): Register cleanup.
7848 * breakpoint.h: Removed DEF_VEC_I(int).
7849 * dwarf2loc.c: Call DEF_VEC_I(int).
7850 * mi/mi-main.c: Likewise.
7852 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7854 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7856 2012-03-12 Chris January <chris.january@allinea.com>
7858 * aix-thread.c (_initialize_aix_thread): Add prototype.
7859 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7860 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7862 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7864 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7865 include of "amd64-nat.h".
7867 2012-03-12 Tom Tromey <tromey@redhat.com>
7869 * buildsym.c (record_pending_block): Now static.
7870 * buildsym.h: (record_pending_block): Remove.
7872 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7874 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7876 2012-03-09 Tom Tromey <tromey@redhat.com>
7878 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7879 producer_is_gxx_lt_4_6>: New fields.
7880 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7882 2012-03-09 Tom Tromey <tromey@redhat.com>
7884 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7886 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7888 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7891 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7893 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7895 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7897 Fix -Wmissing-prototypes build.
7898 * arm-linux-nat.c (get_thread_id): Make it static.
7899 * xtensa-linux-nat.c (get_thread_id): Likewise.
7901 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7903 * server.c (process_point_options): If a conditional expression
7904 is found, only print a message if remote_debug is nonzero.
7906 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7908 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7909 of internal error for unknown/unsupported types.
7911 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7913 Fix CU relative vs. absolute DIE offsets.
7914 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7915 offset to offset_in_cu.
7916 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7918 (dwarf2_fetch_die_location_block): Rename parameter offset to
7919 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7921 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7923 * libunwind-frame.c: Rename to ...
7924 * ia64-libunwind-tdep.c: ... here.
7925 * libunwind-frame.h: Rename to ...
7926 * ia64-libunwind-tdep.h: ... here.
7927 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7928 ia64-libunwind-tdep.h.
7929 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7930 * README (--with-libunwind): Rename to ...
7931 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7932 * config.in: Regenerate.
7933 * configure: Regenerate.
7934 * configure.ac: New option --with-libunwind-ia64, make the
7935 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7936 Remove AC_DEFINE for HAVE_LIBUNWIND.
7937 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7938 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7939 Rename libunwind-frame in the general comment.
7940 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7941 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7942 Move forward declarations inside #ifndef. Rename libunwind-frame in
7943 the general comment.
7944 * ia64-tdep.c: Rename libunwind-frame.h #include to
7945 ia64-libunwind-tdep.h.
7946 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7947 (ia64_libunwind_descr): Rename libunwind-frame to
7948 ia64-libunwind-tdep in these function comments.
7949 * ia64-tdep.h: Rename libunwind-frame.h #include to
7950 ia64-libunwind-tdep.h.
7951 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7952 ia64-libunwind-tdep in that data comment.
7954 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7956 * libunwind-frame.h (struct frame_unwind): New declaration.
7958 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7960 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7961 "set breakpoint condition-evaluation" command.
7963 2012-03-08 Tristan Gingold <gingold@adacore.com>
7965 * sparc-stub.c: Move to stubs/
7966 * sh-stub.c: Likewise.
7967 * m68k-stub.c: Likewise.
7968 * m32r-stub.c: Likewise.
7969 * i386-stub.c: Likewise.
7971 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7973 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7974 linux_get_siginfo_type.
7976 * m68klinux-nat.c: Include "gdb_proc_service.h".
7977 (PTRACE_GET_THREAD_AREA): Define.
7978 (ps_get_thread_area): New function.
7980 2012-03-08 Yao Qi <yao@codesourcery.com>
7982 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7984 (remote_query_attached): Likewise.
7985 (remote_static_tracepoint_marker_at): Likewise.
7986 (remote_set_permissions): Likewise.
7987 (remote_detach_1, extended_remote_attach_1): Likewise.
7988 (send_g_packet, remote_vkill): Likewise.
7989 (extended_remote_disable_randomization): Likewise.
7990 (remote_add_target_side_condition): Likewise.
7991 (remote_insert_breakpoint): Likewise.
7992 (remote_remove_breakpoint): Likewise.
7993 (remote_insert_watchpoint): Likewise.
7994 (remote_remove_watchpoint): Likewise.
7995 (remote_insert_hw_breakpoint): Likewise.
7996 (remote_insert_hw_breakpoint): Likewise.
7997 (remote_remove_hw_breakpoint): Likewise.
7998 (remote_download_command_source): Likewise.
7999 (remote_download_tracepoint): Likewise.
8000 (remote_download_trace_state_variable): Likewise.
8001 (remote_disable_tracepoint): Likewise.
8002 (remote_trace_set_readonly_regions): Likewise.
8003 (remote_get_tracepoint_status): Likewise.
8004 (remote_trace_find): Likewise.
8005 (remote_get_trace_state_variable_value): Likewise.
8006 (remote_set_disconnected_tracing): Likewise.
8007 (remote_set_circular_trace_buffer): Likewise.
8008 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8009 (remote_use_agent): Likewise.
8010 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8013 2012-03-07 Pedro Alves <palves@redhat.com>
8015 * NEWS: Mention QProgramSignals.
8016 * inferior.h (update_signals_program_target): Declare.
8017 * infrun.c: (update_signals_program_target): New.
8018 (handle_command): Update the target of the new program signals
8020 * remote.c (PACKET_QProgramSignals): New enum.
8021 (last_program_signals_packet): New global.
8022 (remote_program_signals): New.
8023 (remote_start_remote): Update the target with the program signals
8025 (remote_protocol_features): Add entry for QPassSignals.
8026 (remote_open_1): Free anc clear last_program_signals_packet.
8027 (init_remote_ops): Install remote_program_signals.
8028 * target.c (update_current_target): Adjust.
8029 (target_program_signals): New.
8030 * target.h (struct target_ops) <to_program_signals>: New field.
8031 (target_program_signals): Declare.
8033 2012-03-07 Pedro Alves <palves@redhat.com>
8035 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8038 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8040 * m68klinux-nat.c (getregs_supplies): Make static.
8041 (getfpregs_supplies): Likewise.
8042 (have_ptrace_getregs): Likewise.
8044 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8046 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8047 in call to get_die_type_at_offset.
8049 2012-03-06 Stan Shebs <stan@codesourcery.com>
8051 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8052 * mi/mi-cmd-disas.c: Ditto.
8053 * mi/mi-cmd-env.c: Ditto.
8054 * mi/mi-cmd-file.c: Ditto.
8055 * mi/mi-cmd-stack.c: Ditto.
8056 * mi/mi-cmd-target.c: Ditto.
8057 * mi/mi-cmd-var.c: Ditto.
8058 * mi/mi-cmds.c: Ditto.
8059 * mi/mi-cmds.h: Ditto.
8060 * mi/mi-console.c: Ditto.
8061 * mi/mi-getopt.c: Ditto.
8062 * mi/mi-getopt.h: Ditto.
8063 * mi/mi-interp.c: Ditto.
8064 * mi/mi-main.c: Ditto.
8065 * mi/mi-out.c: Ditto.
8066 * mi/mi-parse.c: Ditto.
8067 * mi/mi-parse.h: Ditto.
8068 * mi/mi-symbol-cmds.c: Ditto.
8070 * mi/mi-getopt.h: Move mi_opt struct up.
8071 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8073 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8075 2012-03-06 Tom Tromey <tromey@redhat.com>
8077 * proc-service.c (ps_pglobal_lookup): Set the current program
8080 2012-03-06 Pedro Alves <palves@redhat.com>
8082 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8084 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8086 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8088 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8091 * common/linux-osdata.c (linux_common_core_of_thread): New function
8093 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8094 call by linux_common_core_of_thread.
8095 (linux_nat_core_of_thread_1): Remove.
8096 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8097 * linux-thread-db.c: Include linux-osdata.h.
8098 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8099 linux_common_core_of_thread.
8101 2012-03-05 Tom Tromey <tromey@redhat.com>
8103 * value.c (value_primitive_field): Don't fetch contents for
8106 2012-03-05 Tom Tromey <tromey@redhat.com>
8108 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8110 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8112 * s390-nat.c: Include "gregset.h".
8114 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8116 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8117 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8118 (libunwind_load): New variable so_error, use it for dlerror. Try to
8119 load also LIBUNWIND_SO_7.
8121 2012-03-05 Pedro Alves <palves@redhat.com>
8123 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8124 is not NULL, and remove resulting dead code.
8126 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8128 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8129 prologue to sh_analyze_prologue.
8130 (sh_analyze_prologue): Make better use of such an upper limit, and
8131 generally be more cautious about accessing memory.
8133 2012-03-05 Tom Tromey <tromey@redhat.com>
8135 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8136 _initialize_ia64_hpux_tdep.
8138 2012-03-05 Pedro Alves <palves@redhat.com>
8142 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8143 the register state is clear, supply explicit zero, instead of
8144 marking the register unavailable.
8146 2012-03-05 Tristan Gingold <gingold@adacore.com>
8148 * NEWS: Mention OpenVMS ia64 new target.
8150 2012-03-05 Tristan Gingold <gingold@adacore.com>
8152 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8153 (ia64_unw_accessors, ia64_unw_rse_accessors)
8154 (ia64_libunwind_descr): Declare.
8155 * ia64-vms-tdep.c: New file.
8156 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8157 (ia64_libunwind_descr): Make them public.
8158 * configure.tgt: Add ia64-*-*vms*.
8159 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8160 (ALLDEPFILES): Add ia64-vms-tdep.c
8162 2012-03-05 Tristan Gingold <gingold@adacore.com>
8164 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8165 * remote.c (PACKET_qXfer_uib): New enum value.
8166 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8167 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8168 (_initialize_remote): Call add_packet_config_cmd for
8171 2012-03-05 Tristan Gingold <gingold@adacore.com>
8173 * osabi.c (gdb_osabi_names): Add OpenVMS.
8174 (generic_elf_osabi_sniffer): Likewise.
8175 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8177 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8179 Removed unused code.
8180 * libunwind-frame.c (libunwind_frame_unwind)
8181 (libunwind_frame_base_address): Remove.
8182 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8184 2012-03-04 Yao Qi <yao@codesourcery.com>
8186 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8187 remove trailing new line.
8188 (agent_run_command, agent_run_command): Add _ markup.
8189 (agent_capability_check): Likewise.
8191 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8193 * breakpoint.c (set_condition_evaluation_mode): Set
8194 CONDITION_EVALUATION_MODE unconditionally.
8196 2012-03-03 Yao Qi <yao@codesourcery.com>
8198 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8199 * common/agent.h: Update declaration.
8200 * inf-child.c (inf_child_use_agent): New.
8201 (inf_child_can_use_agent): New.
8202 (inf_child_target): Initialize fields `to_use_agent'
8203 and `to_can_use_agent'.
8204 * agent.c (agent_new_objfile): New.
8205 (_initialize_agent): Add agent_new_objfile to new_objfile
8208 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8210 (linux_target_install_ops): Initialize field
8211 `to_static_tracepoint_markers_by_strid'.
8212 * remote.c (free_current_marker): Move it to ...
8213 * tracepoint.c (free_current_marker): ... here. New.
8214 (cleanup_target_stop): New.
8215 * tracepoint.h: Declare free_current_marker.
8216 * NEWS: Add one entry about `info static-tracepoint-marker'.
8218 2012-03-03 Yao Qi <yao@codesourcery.com>
8220 * common/agent.c (agent_loaded_p): New.
8221 (agent_look_up_symbols): New global.
8222 * common/agent.h: Declare agent_loaded_p.
8224 2012-03-03 Yao Qi <yao@codesourcery.com>
8226 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8227 (agent_capability_check, agent_capability_invalidate): New.
8228 (symbol_list): New array element.
8229 * common/agent.h (enum agent_capa): New.
8230 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8232 2012-03-03 Yao Qi <yao@codesourcery.com>
8234 * target.h (struct target_ops) <to_use_agent>: New field.
8235 (struct target_ops) <to_can_use_agent>: New field.
8236 (target_use_agent, target_can_use_agent): New macro.
8237 * target.c (update_current_target): Update.
8238 * remote.c: New enum `PACKET_QAgent'.
8239 (remote_protocol_features): Add a new element.
8240 (remote_use_agent, remote_can_use_agent): New.
8241 (init_remote_ops): Initialize field `can_use_agent' with
8242 remote_can_use_agent. Intiailize field `use_agent' with
8244 * common/agent.c (use_agent): New global.
8245 * common/agent.h: Declare it.
8246 * tracepoint.c (info_static_tracepoint_markers_command): Add
8248 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8249 (COMMON_OBS): Add common/agent.o and agent.o
8250 (common-agent.o): New rule.
8253 2012-03-03 Yao Qi <yao@codesourcery.com>
8255 * common/agent.c: New.
8256 * common/agent.h: New.
8257 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8259 * configure, configh.in: Regenerated.
8261 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8263 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8264 unless it exists for this architecture.
8266 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8268 * language.h (struct language_defn): New "method" la_read_var_value.
8269 * findvar.c: #include "language.h".
8270 (default_read_var_value): Renames read_var_value. Rewrite
8271 function description.
8272 (read_var_value): New function.
8273 * value.h (default_read_var_value): Add prototype.
8274 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8276 (ada_language_defn): Add entry for la_read_var_value.
8277 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8278 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8279 language_defn structures to add entry for new la_read_var_value
8282 2012-03-02 Tom Tromey <tromey@redhat.com>
8283 Pedro Alves <palves@redhat.com>
8285 PR breakpoints/13776:
8286 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8288 (delete_longjmp_breakpoint_at_next_stop): New.
8289 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8290 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8291 before deleting the inferior. Add comments.
8292 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8293 breakpoints immediately, but only on next stop. Move that code
8294 next to where we mark other breakpoints for deletion.
8296 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8298 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8300 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8303 2012-03-02 Pedro Alves <palves@redhat.com>
8305 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8307 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8309 Fix -Wmissing-prototypes build.
8310 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8311 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8312 (gdbsim_has_memory): Likewise.
8314 2012-03-02 Yao Qi <yao@codesourcery.com>
8316 Fix -Wmissing-prototypes build.
8317 * charset.c (phony_iconv_open): Make static.
8318 (phony_iconv_close, phony_iconv): Likewise.
8319 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8320 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8322 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8323 * ser-mingw.c (create_select_thread): Make static.
8324 * windows-termcap.c (tgetent): New prototype.
8325 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8327 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8329 Fix -Wmissing-prototypes build.
8330 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8331 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8332 (_initialize_loadable): New prototypes.
8334 2012-03-02 Doug Evans <dje@google.com>
8336 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8337 abbrev table, read_comp_unit will do it.
8339 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8341 Fix -Wmissing-prototypes build.
8342 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8343 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8344 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8345 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8346 (_initialize_arm_symbian_tdep): New prototype.
8347 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8348 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8349 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8351 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8352 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8354 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8355 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8356 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8358 * moxie-tdep.c (moxie_process_record): Likewise.
8359 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8360 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8361 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8362 (_initialize_rl78_tdep): New prototype.
8363 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8364 (_initialize_rx_tdep): New prototype.
8365 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8366 (_initialize_darwin_solib): New prototype.
8367 * solib-spu.c: Include solib-spu.h.
8368 (_initialize_spu_solib): New prototype.
8369 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8370 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8371 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8372 (tic6x_software_single_step): Make it static.
8373 (_initialize_tic6x_tdep): New prototype.
8375 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8377 Fix -Wmissing-prototypes build.
8378 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8379 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8381 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8383 Fix -Wmissing-prototypes build.
8384 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8385 (frv_have_stopped_data_address): Remove.
8387 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8389 Fix -Wmissing-prototypes build.
8390 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8391 * sh-tdep.c: Include sh64-tdep.h.
8392 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8393 * sh64-tdep.c: Include sh64-tdep.h.
8394 * sh64-tdep.h: New file.
8396 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8398 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8400 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8402 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8403 sp_regnum once the gdbarch_init_osabi hook has been called.
8405 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8407 * mips-tdep.c (mips32_bc1_pc): New function.
8408 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8409 BPOSGE32 and BPOSGE64 instructions.
8410 (deal_with_atomic_sequence): Likewise.
8411 (mips32_instruction_has_delay_slot): Likewise.
8413 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8414 Chris Dearman <chris@mips.com>
8415 Maciej W. Rozycki <macro@codesourcery.com>
8416 Joseph Myers <joseph@codesourcery.com>
8418 * features/mips-dsp.xml: New file.
8419 * features/mips64-dsp.xml: New file.
8420 * features/mips-dsp-linux.xml: New file.
8421 * features/mips64-dsp-linux.xml: New file.
8422 * features/Makefile (WHICH): Add mips-dsp-linux and
8424 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8425 * features/mips-dsp-linux.c: New file.
8426 * features/mips64-dsp-linux.c: New file.
8427 * regformats/mips-dsp-linux.dat: New file.
8428 * regformats/mips64-dsp-linux.dat: New file.
8429 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8431 (mips64_linux_register_addr): Likewise.
8432 (mips64_linux_regsets_fetch_registers): Likewise.
8433 (mips64_linux_regsets_store_registers): Likewise.
8434 (mips64_linux_fetch_registers): Update call to
8435 mips64_linux_regsets_fetch_registers.
8436 (mips64_linux_store_registers): Update call to
8437 mips64_linux_regsets_store_registers.
8438 (mips_linux_read_description): Probe for DSP registers.
8439 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8440 and initialize_tdesc_mips64_dsp_linux.
8441 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8442 Remove padding of no longer used embedded register slots.
8443 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8444 (MIPS_RESTART_REGNUM): Redefine enum value.
8445 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8447 (mips_tx39_reg_names): Likewise.
8448 (mips_linux_reg_names): New array of register names for Linux
8450 (mips_register_name): Check for a null pointer in
8451 mips_processor_reg_names and return an empty string.
8452 (mips_register_type): Exclude embedded registers for the IRIX
8454 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8455 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8457 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8458 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8459 (mips_gdbarch_init): Likewise. Initialize internal register
8460 indices for the Linux ABI. Use dynamic numbers to refer to
8461 registers, as applicable, while parsing the target description.
8462 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8464 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8466 * frame.h (read_frame_register_unsigned): Fix typo in function
8469 2012-03-01 Pedro Alves <palves@redhat.com>
8471 * jit-reader.in [!__cplusplus]
8472 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8474 2012-03-01 Pedro Alves <palves@redhat.com>
8476 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8477 * configure: Regenerate.
8479 2012-03-01 Pedro Alves <palves@redhat.com>
8481 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8482 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8483 (ftrace_command, strace_command): Make static.
8484 * d-lang.c (_initialize_d_language): Declare.
8485 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8486 * dwarf2loc.c (_initialize_dwarf2loc):
8487 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8488 * exec.c (exec_get_section_table): Make static.
8489 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8490 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8491 * inferior.c (remove_inferior_command, add_inferior_command)
8492 (clone_inferior_command): Make static.
8493 * linux-nat.c (linux_nat_thread_address_space)
8494 (linux_nat_core_of_thread): Make static.
8495 * linux-tdep.c (_initialize_linux_tdep): Declare.
8496 * objc-lang.c (_initialize_objc_lang): Declare.
8497 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8499 (_initialize_opencl_language): Declare.
8500 * record.c (_initialize_record): Declare.
8501 * remote.c (demand_private_info, remote_get_tib_address)
8502 (remote_supports_cond_tracepoints)
8503 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8505 * skip.c (_initialize_step_skip): Declare.
8506 * symtab.c (skip_prologue_using_lineinfo): Make static.
8507 * tracepoint.c (delete_trace_state_variable)
8508 (trace_variable_command, delete_trace_variable_command)
8509 (get_uploaded_tsv, find_matching_tracepoint_location)
8510 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8512 * value.c (pack_unsigned_long): Make static.
8513 * varobj.c (varobj_ensure_python_env): Make static.
8514 * windows-tdep.c (_initialize_windows_tdep): Declare.
8515 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8517 2012-03-01 Pedro Alves <palves@redhat.com>
8519 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8521 (linux_init_abi): Install it as has_shared_address_space gdbarch
8524 2012-03-01 Pedro Alves <palves@redhat.com>
8526 * observer.c (observer_test_first_notification_function)
8527 (observer_test_second_notification_function)
8528 (observer_test_third_notification_function): Add declarations.
8530 2012-03-01 Pedro Alves <palves@redhat.com>
8532 * common/signals.c (default_target_signal_to_host)
8533 (default_target_signal_from_host): Move ...
8534 * arch-utils.c: ... here.
8535 * arch-utils.h (default_target_signal_to_host)
8536 (default_target_signal_from_host): Declare.
8538 * common/signals.c (target_signal_from_command): Move ...
8539 * infrun.c: ... here.
8540 * inferior.h (target_signal_from_command): Declare.
8541 * target.h (target_signal_from_command)
8542 (default_target_signal_from_host, default_target_signal_to_host):
8543 Delete declarations.
8545 * common/signals.c (_initialize_signals): Delete.
8547 2012-03-01 Pedro Alves <palves@redhat.com>
8549 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8550 both __cplusplus and !__cplusplus.
8552 2012-03-01 Pedro Alves <palves@redhat.com>
8554 * psymtab.c (find_and_open_source): Delete declaration.
8555 * source.c (find_and_open_source): Move comment ...
8556 * source.h (find_and_open_source): ... to this new declaration.
8558 2012-03-01 Pedro Alves <palves@redhat.com>
8560 * inline-frame.c: Include inline-frame.h.
8562 2012-03-01 Pedro Alves <palves@redhat.com>
8564 * tui/tui-data.c (set_gen_win_origin): Delete.
8565 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8566 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8568 2012-03-01 Pedro Alves <palves@redhat.com>
8570 * remote.c (encode_actions): Delete declaration.
8571 * tracepoint.c (encode_actions): Make extern.
8572 * tracepoint.h (encode_actions): Declare.
8574 2012-03-01 Pedro Alves <palves@redhat.com>
8576 * python/py-breakpoint.c: Include python.h.
8577 * python/py-continueevent.c (create_continue_event_object): Make
8579 * python/py-lazy-string.c (stpy_get_type): Make static.
8580 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8582 * python/py-utils.c (unicode_to_target_python_string): Make
8584 * python/py-value.c: Include python.h.
8586 2012-03-01 Pedro Alves <palves@redhat.com>
8588 * inferior.c (delete_threads_of_inferior): Delete.
8590 2012-03-01 Pedro Alves <palves@redhat.com>
8592 Import fallback definitions from glibc.
8594 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8595 ps_prochandle): Forward declare.
8596 (ps_err_e): Use glibc's comments.
8597 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8598 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8599 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8600 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8601 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8602 (struct ps_prochandle): Adjust comment.
8604 2012-03-01 Pedro Alves <palves@redhat.com>
8606 * ada-lang.c (ada_modulus_from_name): Delete.
8607 * ada-lex.l (lexer_init): Make static.
8609 2012-03-01 Pedro Alves <palves@redhat.com>
8613 * frame.c (read_frame_register_unsigned): New.
8614 * frame.h (read_frame_register_unsigned): Declare.
8615 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8617 (print_i387_control_word): New parameter `control_p'. Handle it.
8618 (i387_print_float_info): Handle unavailable float registers.
8620 2012-03-01 Keith Seitz <keiths@redhat.com>
8622 * linespec.c (decode_line_2): Sort the list of methods
8623 alphabetically before presenting the user with a selection
8626 2012-03-01 Doug Evans <dje@google.com>
8628 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8630 (dwarf2_read_abbrevs): Remove corresponding initialization.
8632 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8634 * NEWS: Mention new python command class gdb.COMMAND_USER.
8635 * cli/cli-cmds.c (show_user): Print error when used on a python
8637 (init_cli_cmds): Update documentation strings for "show user" and
8638 "set/show max-user-call-depth" to clarify that it does not apply to
8640 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8642 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8644 * top.c (execute_command): Only execute a user-defined command as a
8645 legacy macro if c->user_commands is set.
8647 2012-03-01 Tom Tromey <tromey@redhat.com>
8649 * valprint.h (struct generic_val_print_decorations): New.
8650 (generic_val_print): Declare.
8651 * valprint.c (generic_val_print): New function.
8652 * p-valprint.c (p_decorations): New global.
8653 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8654 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8655 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8656 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8657 * m2-valprint.c (m2_decorations): New global.
8658 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8659 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8660 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8661 TYPE_CODE_ERROR>: Call generic_val_print.
8662 * f-valprint.c (f_decorations): New global.
8663 (f_val_print): Use print_function_pointer_address.
8664 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8665 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8666 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8668 * c-valprint.c (c_decorations): New global.
8669 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8670 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8671 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8672 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8673 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8674 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8677 2012-03-01 Tom Tromey <tromey@redhat.com>
8679 * valprint.c (val_print): Update.
8680 * p-valprint (pascal_val_print): Return void.
8681 * p-lang.h (pascal_val_print): Return void.
8682 * m2-valprint.c (m2_val_print): Return void.
8683 * m2-lang.h (m2_val_print): Return void.
8684 * language.h (struct language_defn) <la_val_print>: Return void.
8685 * language.c (unk_lang_val_print): Return void.
8686 * jv-valprint.c (java_val_print): Return void.
8687 * jv-lang.h (java_val_print): Return void.
8688 * f-valprint.c (f_val_print): Return void.
8689 * f-lang.h (f_val_print): Return void.
8690 * d-valprint.c (d_val_print): Return void.
8691 (dynamic_array_type): Update.
8692 * d-lang.h (d_val_print): Return void.
8693 * c-valprint.c (c_val_print): Return void.
8694 * c-lang.h (c_val_print): Return void.
8695 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8697 * ada-lang.h (ada_val_print): Return void.
8699 2012-03-01 Tom Tromey <tromey@redhat.com>
8701 * value.h (val_print): Return void.
8702 * valprint.c (val_print): Return void.
8704 2012-03-01 Tom Tromey <tromey@redhat.com>
8706 * value.h (common_val_print): Return void.
8707 * valprint.c (common_val_print): Return void.
8709 2012-03-01 Tom Tromey <tromey@redhat.com>
8711 * value.h (value_print): Return void.
8712 * valprint.c (value_print): Return void.
8713 * p-valprint.c (pascal_value_print): Return void.
8714 * p-lang.h (pascal_value_print): Return void.
8715 * language.h (struct language_defn) <la_value_print>: Return
8717 * language.c (unk_lang_value_print): Return void.
8718 * jv-valprint.c (java_value_print): Return void.
8719 * jv-lang.h (java_value_print): Return void.
8720 * f-valprint.c (c_value_print): Don't declare.
8722 * c-valprint.c (c_value_print): Return void.
8723 * c-lang.h (c_value_print): Return void.
8724 * ada-valprint.c (ada_value_print): Return void.
8725 * ada-lang.h (ada_value_print): Return void.
8727 2012-03-01 Tom Tromey <tromey@redhat.com>
8729 * value.c (value_primitive_field): Handle virtual base classes.
8731 2012-03-01 Tom Tromey <tromey@redhat.com>
8733 * gdbtypes.h (struct vbase): Remove.
8735 2012-03-01 Tom Tromey <tromey@redhat.com>
8737 * c-valprint.c (print_function_pointer_address): Move...
8738 * valprint.c: ... here. Make non-static.
8739 * m2-valprint.c (print_function_pointer_address): Remove.
8740 * valprint.h (print_function_pointer_address): Declare.
8742 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8744 * NEWS: Document the fact that one can provide a condition when
8745 creating an Ada exception catchpoint.
8747 2012-03-01 Tom Tromey <tromey@redhat.com>
8749 * valprint.c (val_print_type_code_flags): Fix placement of
8752 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8754 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8755 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8756 environment variable before calling update-copyright.
8758 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8760 * gnulib/extra/update-copyright: Update to the latest from
8761 gnulib's git repository.
8762 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8763 variable to 2 instead of 1.
8765 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8767 * varobj.c (c_value_of_variable): Remove dead code.
8769 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8771 * ada-lex.p (processId): Do not modify already encoded IDs.
8772 Update function documentation.
8774 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8776 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8777 "name" with "struct symbol *name_sym".
8778 * ada-exp.y (write_var_or_type): Update call to
8779 ada_find_renaming_symbol.
8780 "name" with "struct symbol *name_sym". Adjust Implementation
8781 accordingly. Adjust the function documentation.
8783 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8785 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8786 * ada-lang.c (ada_find_any_type): Add advance declaration.
8787 Make static. Replace ada_find_any_symbol by
8788 ada_find_any_type_symbol.
8789 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8790 Improve function description. Make static.
8791 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8792 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8794 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8796 * ada-lang.c (struct tag_args): Delete.
8797 (ada_get_tsd_type): Function body moved up in source file.
8798 (ada_tag_name_1, ada_tag_name_2): Delete.
8799 (ada_get_tsd_from_tag): New function.
8800 (ada_tag_name_from_tsd): New function.
8801 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8802 to determine the tag name.
8804 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8806 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8808 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8811 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8813 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8815 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8817 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8820 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8822 * ada-lang.c (constrained_packed_array_type): If there is a
8823 parallel XA type, use it to determine the array index type.
8825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8827 * ada-valprint.c (ada_val_print_1): If our value is a reference
8828 to an array descriptor, dereference it before converting it
8831 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8833 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8834 creating fixed value.
8835 (ada_value_ind, ada_coerce_ref, assign_component)
8836 (ada_evaluate_subexp): Remove call to unwrap_value before
8837 call to ada_to_fixed_value.
8839 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8841 * ada-lang.c (to_fixed_array_type): Set result's type name.
8843 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8845 * ada-lang.c (catch_ada_exception_command_split): Add new
8846 argument cond_string. Add support for condition at end of
8847 "catch exception" commands.
8848 (ada_decode_exception_location): Add new argument cond_string.
8849 Update call to catch_ada_exception_command_split.
8850 (create_ada_exception_catchpoint): Add new argument cond_string.
8851 Set the breakpoint condition if needed.
8852 (catch_ada_exception_command): Update call to
8853 ada_decode_exception_location.
8854 (ada_decode_assert_location): Add function documentation.
8855 Add support for condition at end of "catch assert" command.
8856 (catch_assert_command): Update calls to ada_decode_assert_location
8857 and create_ada_exception_catchpoint.
8859 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8861 Fix disp-step-syscall.exp: fork: single step over fork.
8862 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8863 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8864 comment, change parameters gdbarch and ptid to regcache. Remove
8865 parameter regcache, initialize gdbarch from regcache here.
8866 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8868 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8870 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8871 'syscall'. Make the 'int' check more strict.
8873 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8875 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8876 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8877 (i386_linux_intx80_sysenter_syscall_record): ... here.
8878 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8879 Use the renamed function name.
8881 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8883 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8884 * breakpoint.c (until_break_command): Likewise.
8885 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8886 * infcall.c (call_function_by_hand): Likewise.
8887 * infcmd.c (finish_forward): Likewise.
8888 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8890 2012-02-28 Tristan Gingold <gingold@adacore.com>
8892 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8893 avoid variable assignments inside condition.
8895 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8897 Fix static analysis issue found by cppcheck.
8898 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8899 uninitialized BUF for size 2.
8901 2012-02-27 Chris Dearman <chris@mips.com>
8902 Nathan Froyd <froydnj@codesourcery.com>
8903 Maciej W. Rozycki <macro@codesourcery.com>
8905 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8906 (mips16_instruction_has_delay_slot): Likewise.
8907 (mips_segment_boundary): Likewise.
8908 (mips_adjust_breakpoint_address): Likewise.
8909 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8911 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8912 Maciej W. Rozycki <macro@codesourcery.com>
8914 * infrun.c (handle_inferior_event): Don't proceed through
8915 shared library trampolines if stepping at the machine
8918 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8920 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8923 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8925 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8926 (sh_stub_unwind_sniffer): New functions.
8927 (sh_stub_unwind): New variable.
8928 (sh_gdbarch_init): Wire everything.
8930 2012-02-27 Pedro Alves <palves@redhat.com>
8932 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8933 (linux_nat_post_attach_wait): Adjust to use
8934 linux_proc_pid_is_stopped.
8935 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8936 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8937 based on pid_is_stopped from both linux-nat.c and
8938 gdbserver/linux-low.c, and renamed.
8940 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8942 * remote.c (remote_watchpoint_addr_within_range): New function.
8943 (init_remote_ops): Use it.
8945 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8947 * target.h (target_watchpoint_addr_within_range): Document macro.
8949 2012-02-24 Pedro Alves <palves@redhat.com>
8951 * stack.c (set_last_displayed_sal): Issue internal_error instead
8952 of warning, and issue it after clearing the last displayed sal.
8954 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8955 Pedro Alves <palves@redhat.com>
8957 * breakpoint.c (until_break_command): Install breakpoints after
8958 all frame manipulations.
8960 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8962 * remote.c (remote_supports_cond_breakpoints): New forward
8964 (remote_add_target_side_condition): New function.
8965 (remote_insert_breakpoint): Add target-side breakpoint
8966 conditional if supported.
8967 (remote_insert_hw_breakpoint): Likewise.
8968 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8971 * target.c (update_current_target): Inherit
8972 to_supports_evaluation_of_breakpoint_conditions.
8973 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8975 * target.h (struct target_ops)
8976 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8977 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8979 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8980 (condition_evaluation_both, condition_evaluation_auto,
8981 condition_evaluation_host, condition_evaluation_target,
8982 condition_evaluation_enums, condition_evaluation_mode_1,
8983 condition_evaluation_mode): New static globals.
8984 (translate_condition_evaluation_mode): New function.
8985 (breakpoint_condition_evaluation_mode): New function.
8986 (gdb_evaluates_breakpoint_condition_p): New function.
8987 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8988 (mark_breakpoint_modified): New function.
8989 (mark_breakpoint_location_modified): New function.
8990 (set_condition_evaluation_mode): New function.
8991 (show_condition_evaluation_mode): New function.
8992 (bp_location_compare_addrs): New function.
8993 (get_first_location_gte_addr): New helper function.
8994 (set_breakpoint_condition): Free condition bytecode if locations
8995 has become unconditional. Call mark_breakpoint_modified (...).
8996 (condition_command): Call update_global_location_list (1) for
8998 (breakpoint_xfer_memory): Use is_breakpoint (...).
8999 (is_breakpoint): New function.
9000 (parse_cond_to_aexpr): New function.
9001 (build_target_condition_list): New function.
9002 (insert_bp_location): Handle target-side conditional
9003 breakpoints and call build_target_condition_list (...).
9004 (update_inserted_breakpoint_locations): New function.
9005 (insert_breakpoint_locations): Handle target-side conditional
9007 (bpstat_check_breakpoint_conditions): Add comment.
9008 (bp_condition_evaluator): New function.
9009 (bp_location_condition_evaluator): New function.
9010 (print_breakpoint_location): Print information on where the condition
9012 (print_one_breakpoint_location): Likewise.
9013 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9014 breakpoint location.
9015 (force_breakpoint_reinsertion): New functions.
9016 (update_global_location_list): Handle target-side breakpoint
9018 Reinsert locations that are already inserted if conditions have
9020 (bp_location_dtor): Free agent expression bytecode.
9021 (disable_breakpoint): Call mark_breakpoint_modified (...).
9022 Call update_global_location_list (...) with parameter 1 for breakpoints.
9023 (disable_command): Call mark_breakpoint_location_modified (...).
9024 Call update_global_location_list (...) with parameter 1 for breakpoints.
9025 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9026 (enable_command): mark_breakpoint_location_modified (...).
9027 (_initialize_breakpoint): Update documentation and add
9028 condition-evaluation breakpoint subcommand.
9030 * breakpoint.h: Include ax.h.
9031 (condition_list): New data structure.
9032 (condition_status): New enum.
9033 (bp_target_info) <cond_list>: New field.
9034 (bp_location) <condition_changed, cond_bytecode>: New fields.
9035 (is_breakpoint): New prototype.
9037 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9039 * remote.c (remote_state) <cond_breakpoints>: New field.
9040 (PACKET_ConditionalBreakpoints): New enum.
9041 (remote_cond_breakpoint_feature): New function.
9042 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9043 (remote_supports_cond_breakpoints): New function.
9044 (_initialize_remote): Add new packet configuration for
9045 target-side conditional breakpoints.
9047 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9049 * NEWS: Mention target-side conditional breakpoint support,
9050 new condition-evaluation breakpoint subcommand and remote
9053 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9055 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9058 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9060 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9061 (after_prologue): Remove.
9063 2012-02-23 Tom Tromey <tromey@redhat.com>
9065 * jv-valprint.c (java_val_print): Remove dead code.
9067 2012-02-23 Tristan Gingold <gingold@adacore.com>
9069 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9070 known_tasks_element and known_tasks_length fields.
9071 (read_known_tasks_array): Change argument type. Use pointer type
9072 and number of elements from DATA. Adjust.
9073 (read_known_tasks_list): Likewise.
9074 (get_known_tasks_addr): Remove.
9075 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9076 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9077 type and array length. Merge former get_known_tasks_addr code.
9079 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9082 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9083 it after set_momentary_breakpoint.
9085 2012-02-22 Sterling Augustine <saugustine@google.com>
9088 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9090 2012-02-22 Gary Benson <gbenson@redhat.com>
9092 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9093 (find_slot_in_mapped_hash): Likewise.
9095 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9098 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9099 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9100 * configure: Regenerate.
9102 2012-02-21 Tristan Gingold <gingold@adacore.com>
9103 Pedro Alves <palves@redhat.com>
9105 * ia64-tdep.c: Do not include libunwind-ia64.h.
9106 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9107 Include libunwind-ia64.h instead of libunwind.h.
9108 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9109 for libunwind.h existence.
9110 * configure, config.in: Regenerate.
9112 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9114 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9115 instead of value_rtti_target_type.
9116 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9117 instead of value_rtti_target_type.
9118 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9119 value_rtti_target_type.
9120 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9121 (value_rtti_target_type): Rename to ...
9122 (value_rtti_indirect_type): ... here and make it indirect. Update
9124 * value.c (readjust_indirect_value_type): New function.
9125 (coerce_ref): Support for enclosing type setting for references
9126 with readjust_indirect_value_type.
9127 * value.h (readjust_value_type): New declaration.
9128 (value_rtti_target_type): Rename to ...
9129 (value_rtti_indirect_type): ... here.
9131 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9133 * MAINTAINERS (Write After Approval): Add myself to the list.
9135 2012-02-20 Doug Evans <dje@google.com>
9137 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9138 Rename objfile_p_char parameter to objfilep.
9139 (build_objfile_section_table): Result is now void. All callers
9141 * objfiles.h (struct objfile): Tweak comments, whitespace.
9142 (build_objfile_section_table): Update.
9144 * elfread.c (elf_symfile_segments): Fix warning text.
9146 2012-02-20 Tom Tromey <tromey@redhat.com>
9149 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9150 particular set of file names once.
9151 (dw2_map_symbol_filenames): Likewise.
9153 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9156 * main.c (write_files): Remove the declaration.
9157 (external_editor_command): Move the declaration ...
9158 [GDBTK] (external_editor_command): ... here. Fix the comment.
9160 2012-02-20 Tom Tromey <tromey@redhat.com>
9162 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9165 2012-02-20 Tristan Gingold <gingold@adacore.com>
9167 * darwin-nat.h (enum darwin_msg_state): Add comments.
9169 2012-02-20 Tristan Gingold <gingold@adacore.com>
9171 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9174 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9176 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9177 between function description and implementation.
9179 2012-02-17 Tom Tromey <tromey@redhat.com>
9182 * python/py-event.c (event_object_getset): New global.
9183 (event_object_type): Reference it.
9184 * python/py-type.c (field_object_getset): New global.
9185 (field_object_type): Reference it.
9186 * python/python-internal.h (gdb_py_generic_dict): Declare.
9187 * python/py-utils.c (gdb_py_generic_dict): New function.
9189 2012-02-17 Tristan Gingold <gingold@adacore.com>
9191 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9193 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9195 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9196 TYPE_CALLING_CONVENTION annotation.
9198 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9200 * MAINTAINERS: Add rx to target ISA section.
9201 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9202 (ALLDEPFILES): Add rx-tdep.c.
9204 2012-02-16 Tom Tromey <tromey@redhat.com>
9206 * symfile.c (symbol_file_add_main_1): Use inferior's
9208 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9209 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9211 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9213 (follow_exec): Use inferior's symfile_flags.
9214 * inferior.h (struct inferior) <symfile_flags>: New field.
9216 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9219 * remote-sim.c (gdbsim_create_inferior): Call error() when
9220 sim_create_inferior() fails.
9222 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9224 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9226 2012-02-16 Tom Tromey <tromey@redhat.com>
9229 * thread.c (struct current_thread_cleanup) <was_removable>: New
9231 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9232 (make_cleanup_restore_current_thread): Initialize new field.
9234 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9236 * MAINTAINERS: Add rl78 to target ISA section.
9237 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9238 (ALLDEPFILES): Add rl78-tdep.c.
9239 * NEWS: Mention rl78 as a new target.
9241 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9243 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9245 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9247 2012-02-15 Tom Tromey <tromey@redhat.com>
9250 * infcmd.c (registers_info): Print just the current register's
9253 2012-02-15 Tom Tromey <tromey@redhat.com>
9255 * python/py-symbol.c (sympy_value): Use _().
9257 2012-02-15 Pedro Alves <palves@redhat.com>
9259 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9260 output to be like native targets'.
9261 (remote_pid_to_str): Special case the null ptid.
9263 2012-02-14 Stan Shebs <stan@codesourcery.com>
9265 * NEWS: Mention enable count command.
9266 * breakpoint.h (struct breakpoint): New field enable_count.
9267 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9268 (enable_breakpoint): Add arg to call.
9269 (struct disp_data): New struct.
9270 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9271 (do_map_enable_once_breakpoint): Create a struct and pass it.
9272 (do_map_enable_delete_breakpoint): Ditto.
9273 (do_map_enable_count_breakpoint): New function.
9274 (enable_count_command): New function.
9275 (bpstat_stop_status): Decrement enable_count.
9276 (print_one_breakpoint_location): Report enable count.
9277 (_initialize_breakpoint): Add enable count command.
9279 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9281 * rl78-tdep.c (reggroups.h): Include.
9282 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9283 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9284 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9285 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9286 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9287 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9288 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9289 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9290 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9291 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9292 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9293 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9294 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9295 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9296 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9297 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9298 beginning of register list.
9299 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9300 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9301 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9302 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9303 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9304 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9305 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9306 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9307 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9308 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9309 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9310 the pseudo registers. Rearrange other pseudo registers too so
9311 that the bank registers appear at the end.
9312 (rl78_register_type): Account for the fact that the byte sized
9313 bank registers are now pseudo-registers.
9314 (rl78_register_name): Rearrange the register name array. Make
9315 initial set of raw banked registers inaccessible.
9316 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9317 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9318 case for copying bytes back and forth between raw and pseudo
9319 versions of the banked registers. Update other cases to reflect
9321 (rl78_return_value): Update to account for changed names of
9323 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9324 rl78_register_sim_regno().
9326 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9328 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9329 the name parameter being passed to find_pc_partial_function().
9331 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9333 * MAINTAINERS: Step down from being ia64 target maintainer.
9335 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9337 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9338 compilation warning.
9340 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 Fix crash on loaded shlibs without loaded exec_bfd.
9343 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9344 (set_section_command): Replace exec_bfd by p->bfd.
9346 2012-02-10 Tom Tromey <tromey@redhat.com>
9348 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9349 when we have a C++ qualified name.
9351 2012-02-10 Pedro Alves <palves@redhat.com>
9353 * inferior.c (inferior_pid_to_str): New.
9354 (print_inferior, inferior_command): Use it.
9356 2012-02-10 Pedro Alves <palves@redhat.com>
9358 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9360 * configure: Regenerate.
9362 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9364 * linespec.c (decode_line_internal): Fix comment correctness.
9366 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9369 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9370 * amd64bsd-nat.c: Add support for debug registers (adapted from
9372 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9373 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9374 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9375 (amd64bsd_dr_get_control): New functions.
9376 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9377 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9378 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9379 watchpoints initialization.
9380 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9382 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9384 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9386 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9388 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9390 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9392 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9394 * language.h (symbol_name_cmp_ftype): Renames
9395 symbol_name_match_p_ftype.
9396 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9397 la_get_symbol_name_match_p.
9398 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9399 ada_get_symbol_name_match_p. Update comment.
9400 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9401 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9402 Renames symbol_name_match_p. Update field type.
9403 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9404 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9405 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9406 "la_get_symbol_name_cmp" in comments.
9407 * language.c: Likewise.
9409 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9411 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9413 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9414 (amd64_sol2_gregset32_reg_offs): Likewise.
9416 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9418 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9419 of the returned BFD is allocated by GDB.
9421 2012-02-07 Tom Tromey <tromey@redhat.com>
9424 * python/python-internal.h (frame_object_type): Declare.
9425 * python/py-symbol.c (sympy_needs_frame): New function.
9426 (sympy_value): New function.
9427 (symbol_object_getset): Add "needs_frame".
9428 (symbol_object_methods): Add "value".
9429 * python/py-frame.c (frame_object_type): No longer static.
9431 2012-02-07 Tom Tromey <tromey@redhat.com>
9434 * python/py-symbol.c (sympy_line): New function.
9435 (symbol_object_getset): Add "line".
9437 2012-02-07 Tom Tromey <tromey@redhat.com>
9439 * charset.c (find_charset_names): Check 'in' against NULL.
9441 2012-02-06 Doug Evans <dje@google.com>
9443 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9444 and fields.name members from char * to const char *. All uses updated.
9445 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9446 from char * to const char *. All uses updated.
9447 (type_name_no_tag): Update.
9448 (lookup_unsigned_typename, lookup_signed_typename): Update.
9449 * gdbtypes.c (type_name_no_tag): Change result type
9450 from char * to const char *. All callers updated.
9451 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9452 name parameter from char * to const char *.
9453 * symtab.h (struct cplus_specific): Change type of demangled_name
9454 member from char * to const char *. All uses updated.
9455 (struct general_symbol_info): Change type of name and
9456 mangled_lang.demangled_name members from char * to const char *.
9458 (symbol_get_demangled_name, symbol_natural_name): Update.
9459 (symbol_demangled_name, symbol_search_name): Update.
9460 * symtab.c (symbol_get_demangled_name): Change result type
9461 from char * to const char *. All callers updated.
9462 (symbol_natural_name, symbol_demangled_name): Ditto.
9463 (symbol_search_name): Ditto.
9464 (completion_list_add_name): Change type of symname,sym_text,
9465 text,word parameters from char * to const char *.
9466 (completion_list_objc_symbol): Change type of sym_text,
9467 text,word parameters from char * to const char *.
9468 * ada-lang.c (find_struct_field): Change type of name parameter
9469 from char * to const char *.
9470 (encoded_ordered_before): Similarly for N0,N1 parameters.
9471 (old_renaming_is_invisible): Similarly for function_name parameter.
9472 (ada_type_name): Change result type from char * to const char *.
9473 All callers updated.
9474 * ada-lang.h (ada_type_name): Update.
9475 * buildsym.c (hashname): Change type of name parameter
9476 from char * to const char *.
9477 * buildsym.h (hashname): Update.
9478 * dbxread.c (end_psymtab): Change type of include_list parameter
9479 from char ** to const char **.
9480 * dwarf2read.c (determine_prefix): Change result type
9481 from char * to const char *. All callers updated.
9482 * f-lang.c (find_common_for_function): Change type of name, funcname
9483 parameters from char * to const char *.
9484 * f-lang.c (find_common_for_function): Update.
9485 * f-valprint.c (list_all_visible_commons): Change type of funcname
9486 parameters from char * to const char *.
9487 * gdbarch.sh (static_transform_name): Change type of name parameter
9488 and result from char * to const char *.
9489 * gdbarch.c: Regenerate.
9490 * gdbarch.h: Regenerate.
9491 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9492 of name parameter from char * to const char *.
9493 * jv-lang.c (java_primitive_type_from_name): Ditto.
9494 (java_demangled_signature_length): Similarly for signature parameter.
9495 (java_demangled_signature_copy): Ditto.
9496 (java_demangle_type_signature): Ditto.
9497 * jv-lang.h (java_primitive_type_from_name): Update.
9498 (java_demangle_type_signature): Update.
9499 * objc-lang.c (specialcmp): Change type of a,b parameters
9500 from char * to const char *.
9501 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9502 from char * to const char *. All callers updated.
9503 * p-lang.h (is_pascal_string_type): Update.
9504 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9505 of name parameter from char * to const char *.
9506 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9507 * utils.c (fprintf_symbol_filtered): Ditto.
9508 * defs.h (fprintf_symbol_filtered): Update.
9509 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9510 * stabsread.h (end_psymtab): Update.
9511 * stack.c (find_frame_funname): Change type of funname parameter
9512 from char ** to const char **.
9513 * stack.h (find_frame_funname): Update.
9514 * typeprint.c (type_print): Change type of varstring parameter
9515 from char * to const char *.
9516 * value.h (type_print): Update.
9517 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9518 from char * to const char *. All callers updated.
9519 (xcoff_end_psymtab): Change type of include_list parameter
9520 from char ** to const char **. All callers updated.
9521 (swap_sym): Similarly for name parameter. All callers updated.
9522 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9524 (process_coff_symbol): Use xstrdup.
9525 * stabsread.c (stabs_method_name_from_physname): Renamed from
9526 update_method_name_from_physname. Change result type from void
9527 to char *. All callers updated.
9528 (read_member_functions): In has_destructor case, store name in objfile
9529 obstack instead of malloc space. In !has_stub case, fix mem leak.
9531 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9533 * configure: Rebuild.
9534 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9537 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9539 * configure.tgt (rl78-*-elf): New target.
9540 * rl78-tdep.c: New file.
9542 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9544 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9545 and continue the loop. Add QUIT statement.
9547 2012-02-03 Tom Tromey <tromey@redhat.com>
9550 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9551 bfd_lookup_symbol_from_symtab.
9552 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9553 gdb_bfd_lookup_symbol_from_symtab.
9555 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9557 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9558 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9559 symbol. Add assertion that sym2 is never NULL.
9561 2012-02-02 Doug Evans <dje@google.com>
9563 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9564 "name" parameter to const char ** from char **. All callers updated.
9565 (find_pc_partial_function): Ditto.
9566 (cache_pc_function_name): Change type to const char * from char *.
9567 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9568 (find_pc_partial_function): Update.
9569 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9570 type of "name" parameter to const char * from char *.
9572 * arch-utils.c (generic_in_solib_return_trampoline): Change
9573 type of "name" parameter to const char * from char *.
9574 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9575 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9576 type of "name" parameter to const char * from char *.
9577 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9578 * gdbarch.c: Regenerate.
9579 * gdbarch.h: Regenerate.
9580 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9581 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9582 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9583 type of "name" parameter to const char * from char *.
9584 * skip.c (skip_function_pc): Ditto.
9585 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9586 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9587 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9588 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9589 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9590 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9591 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9592 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9593 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9595 2012-02-02 Pedro Alves <palves@redhat.com>
9597 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9598 the current inferior has no execution. Make sure the current
9599 remote process matches gdb's current inferior.
9601 2012-02-02 Tom Tromey <tromey@redhat.com>
9604 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9607 2012-02-02 Tom Tromey <tromey@redhat.com>
9610 * symtab.c (lookup_language_this): Set block_found.
9612 2012-02-01 Tom Tromey <tromey@redhat.com>
9615 * jit.c (struct jit_inferior_data): Rewrite.
9616 (struct jit_objfile_data): New.
9617 (get_jit_objfile_data): New function.
9618 (add_objfile_entry): Update.
9619 (jit_read_descriptor): Return int. Replace descriptor_addr
9620 argument with inf_data. Update. Don't call error.
9621 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9623 (jit_inferior_init): Don't look up descriptor. Don't call error.
9624 (jit_reset_inferior_data_and_breakpoints)
9625 (jit_inferior_created_observer): Remove.
9626 (jit_inferior_exit_hook): Update.
9627 (jit_executable_changed_observer): Remove.
9628 (jit_event_handler): Update.
9629 (free_objfile_data): Reset inferior data if needed.
9630 (_initialize_jit): Update.
9632 2012-02-01 Tom Tromey <tromey@redhat.com>
9634 * jit.c (bfd_open_from_target_memory): Move higher in file.
9636 2012-02-01 Tristan Gingold <gingold@adacore.com>
9638 * libunwind-frame.c (libunwind_load): Display message if dlopen
9641 2012-02-01 Gary Benson <gbenson@redhat.com>
9643 * symtab.h (symbol_found_callback_ftype): New typedef.
9644 (iterate_over_symbols): Use the above.
9645 * symtab.c (iterate_over_symbols): Likewise.
9646 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9647 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9648 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9649 (iterate_name_matcher): Document return values.
9650 (collect_one_symbol): Likewise.
9651 (collect_function_symbols): Likewise.
9652 (collect_symbols): Likewise.
9654 2012-02-01 Tom Tromey <tromey@redhat.com>
9656 * ada-lang.c (resolve_subexp): Update.
9657 (ada_lookup_symbol_list): Add 'full_search' argument.
9658 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9659 ada_lookup_symbol_list.
9660 (ada_lookup_encoded_symbol): Update.
9661 (get_var_value): Update.
9662 * ada-exp.y (block_lookup): Update.
9663 (write_var_or_type): Update.
9664 (write_name_assoc): Update.
9665 * ada-lang.h (ada_lookup_symbol_list): Update.
9667 2012-01-31 Tom Tromey <tromey@redhat.com>
9669 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9672 2012-01-31 Doug Evans <dje@google.com>
9674 * symtab.h: Remove outdated comment.
9675 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9677 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9679 Fix build error in Darwin port.
9680 * i386-darwin-nat.c: Include i386-nat.h.
9682 2012-01-30 Tom Tromey <tromey@redhat.com>
9684 PR breakpoints/13568:
9685 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9686 argument. Check for recursive includes.
9687 (dwarf_decode_macros): Create an include hash.
9689 2012-01-30 Michael Eager <eager@eagercon.com>
9691 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9692 * ppc-linux-tdep.c: Include glibc-tdep.h.
9693 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9694 (powerpc_linux_in_plt_stub): New function.
9695 (powerpc_linux_in_dynsym_resolve_code): New function.
9696 (ppc_skip_trampoline_code): New function.
9697 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9698 Use glibc_skip_solib_resolver.
9700 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9702 Code cleanup: Make 1440 bytes of data segment read-only.
9703 * arch-utils.c (endian_enum): Make it const char *const [].
9704 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9706 * breakpoint.c (always_inserted_enums): Likewise.
9707 * cli/cli-cmds.c (script_ext_enums): Likewise.
9708 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9709 enumlist parameter const char *const *.
9710 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9711 const char *const *.
9712 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9713 parameter const char *const *.
9714 * cris-tdep.c (cris_modes): Make it const char *const [].
9715 * filesystem.c (target_file_system_kinds): Likewise.
9716 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9717 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9718 (can_use_displaced_stepping_enum, scheduler_enums)
9719 (exec_direction_names): Likewise.
9720 * language.c (_initialize_language): Make the type_or_range_names and
9721 case_sensitive_names variables const char *const [].
9722 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9723 * python/python.c (python_excp_enums): Likewise.
9724 * remote.c (interrupt_sequence_modes): Likewise.
9725 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9726 * serial.c (logbase_enums): Likewise.
9727 * sh-tdep.c (sh_cc_enum): Likewise.
9728 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9730 * symtab.c (multiple_symbols_modes): Likewise.
9731 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9733 * utils.c (internal_problem_modes): Likewise.
9735 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9737 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9738 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9741 2012-01-27 Doug Evans <dje@google.com>
9743 * configure.ac (with_python): Fix absolute path handling for win32.
9744 * configure: Regenerate.
9746 2012-01-26 Doug Evans <dje@google.com>
9748 * symtab.c: Whitespace cleanup, no code changes.
9750 * symtab.c (lookup_symbol_in_language): Improve comment.
9751 (lookup_symbol_aux): Fix comment.
9753 * psymtab.c (add_psymbol_to_list): Result is now "void".
9754 * psympriv.h (add_psymbol_to_list): Update.
9756 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9758 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 Do not open script filenames twice.
9761 * cli/cli-cmds.c (source_script_from_stream): Pass to
9762 source_python_script also STREAM.
9763 * python/py-auto-load.c (source_section_scripts): Pass to
9764 source_python_script_for_objfile also STREAM.
9765 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9767 * python/python-internal.h (source_python_script_for_objfile): New
9768 parameter file, rename parameter file to filename.
9769 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9770 instead if !_WIN32. Update the function comment.
9771 (source_python_script, source_python_script_for_objfile)
9772 (source_python_script): New parameter file, rename parameter file to
9773 filename. Pass FILENAME to python_run_simple_file.
9774 * python/python.h (source_python_script): New parameter file, rename
9775 parameter file to filename.
9777 2012-01-26 Pedro Alves <palves@redhat.com>
9779 * corelow.c (core_has_fake_pid): Delete.
9780 (core_close): Delete references to `core_has_fake_pid'.
9781 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9782 (core_open): Delete references to `core_has_fake_pid'.
9783 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9786 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9788 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9789 Remove language parameter from name_matcher. Adjust the comment.
9790 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9791 Remove language parameter.
9792 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9793 * linespec.c (iterate_name_matcher): Likewise.
9794 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9795 name_matcher. Adjust call accordingly.
9796 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9797 (maintenance_check_symtabs): Adjust type of parameter "fun".
9798 * psymtab.h (maintenance_check_symtabs): Likewise.
9800 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9802 * language.h (symbol_name_match_p_ftype): New typedef.
9803 (struct language_defn): Replace field la_symbol_name_compare
9804 by la_get_symbol_name_match_p.
9805 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9806 (ada_language_defn): Use it.
9807 * linespec.c (struct symbol_matcher_data): New type.
9808 (iterate_name_matcher): Rewrite.
9809 (iterate_over_all_matching_symtabs): Pass a pointer to
9810 a symbol_matcher_data struct to expand_symtabs_matching
9811 instead of just the lookup name.
9812 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9813 opencl-lang.c, p-lang.c, language.c: Delete field
9814 la_symbol_name_compare, and replace by NULL for new field
9815 la_get_symbol_name_match_p.
9816 * symfile.h (struct quick_symbol_functions): Update comment.
9818 2012-01-25 Tom Tromey <tromey@redhat.com>
9820 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9823 2012-01-24 Tom Tromey <tromey@redhat.com>
9826 * solib.c (update_solib_list): Update the program space's
9827 added_solibs and deleted_solibs fields.
9828 * progspace.h (struct program_space) <added_solibs,
9829 deleted_solibs>: New fields.
9830 (clear_program_space_solib_cache): Declare.
9831 * progspace.c (release_program_space): Call
9832 clear_program_space_solib_cache.
9833 (clear_program_space_solib_cache): New function.
9834 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9835 bpstat_stop_status. Use handle_solib_event.
9836 * breakpoint.c: Include gdb_regex.h.
9837 (print_solib_event): New function.
9838 (bpstat_print): Use print_solib_event.
9839 (bpstat_stop_status): Add special case for bp_shlib_event.
9840 (handle_solib_event): New function.
9841 (bpstat_what): Use handle_solib_event.
9842 (struct solib_catchpoint): New.
9843 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9844 (breakpoint_hit_catch_solib, check_status_catch_solib)
9845 (print_it_catch_solib, print_one_catch_solib)
9846 (print_mention_catch_solib, print_recreate_catch_solib): New
9848 (catch_solib_breakpoint_ops): New global.
9849 (catch_load_or_unload, catch_load_command_1)
9850 (catch_unload_command_1): New functions.
9851 (internal_bkpt_check_status): Add special case for
9853 (internal_bkpt_print_it): Use print_solib_event.
9854 (initialize_breakpoint_ops): Initialize
9855 catch_solib_breakpoint_ops.
9856 (_initialize_breakpoint): Register "catch load" and "catch
9858 * breakpoint.h (handle_solib_event): Declare.
9859 * NEWS: Add entry for "catch load" and "catch unload".
9861 2012-01-24 Tom Tromey <tromey@redhat.com>
9863 * ada-lang.c: Include gdb_vecs.h.
9864 * charset.c: Include gdb_vecs.h.
9865 * tracepoint.h: Include gdb_vecs.h.
9866 * gdb_vecs.h: New file.
9868 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9870 * breakpoint.c (breakpoint_hit_catch_fork)
9871 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9872 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9873 * infrun.c (inferior_has_forked, inferior_has_vforked)
9874 (inferior_has_execd, inferior_has_called_syscall): Delete.
9875 (handle_syscall_event): Get syscall_number from the execution
9876 control state's wait status.
9877 (wait_for_inferior): Don't clear syscall_number.
9879 2012-01-24 Pedro Alves <palves@redhat.com>
9881 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9882 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9883 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9884 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9886 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9887 false for events other than TARGET_SIGNAL_TRAP.
9888 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9890 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9891 events other than TARGET_SIGNAL_TRAP.
9892 (tracepoint_breakpoint_hit): Add `ws' parameter.
9893 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9895 (bpstat_stop_status): Same.
9896 (pc_at_non_inline_function): Same.
9897 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9898 to pass the current event's waitstatus to bpstat_stop_status
9899 and pc_at_non_inline_function.
9901 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9904 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9905 Update the function comment for it.
9906 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9907 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9910 2012-01-24 Pedro Alves <palves@redhat.com>
9912 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9913 outside `bs->stop' block.
9914 (bpstat_what): Rework bp_shlib_event handling.
9915 (internal_bkpt_check_status): If the breakpoint is a
9916 bp_shlib_event, then set bs->stop and bs->print if
9917 stop_on_solib_events is set.
9919 2012-01-24 Gary Benson <gbenson@redhat.com>
9921 Delete #if 0'd out code.
9922 * stack.c (print_frame_label_vars): Remove.
9923 (catch_info): Likewise.
9924 (_initialize_stack): Remove "info catch" command.
9925 * NEWS: Mention the above.
9927 2012-01-24 Pedro Alves <palves@redhat.com>
9929 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9931 (remote_notice_new_inferior): If the remote end doesn't support
9932 the multiprocess extensions, then the PID is fake.
9933 (add_current_inferior_and_thread): New.
9934 (remote_start_remote): Use it.
9935 (extended_remote_attach_1): Adjust.
9936 (extended_remote_create_inferior_1): Use
9937 add_current_inferior_and_thread.
9939 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9941 Fix watchpoints to be specific for each inferior.
9942 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9943 current_program_space.
9944 * i386-nat.c (i386_inferior_data_cleanup): New.
9945 (i386_inferior_data_get): Replace variable inf_data_local by an
9947 (i386_use_watchpoints): Initialize i386_inferior_data.
9948 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9949 specific iterate_over_lwps.
9951 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9953 Fix watchpoints across inferior fork.
9954 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9955 comment for linux_nat_iterate_watchpoint_lwps.
9956 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9957 linux_nat_iterate_watchpoint_lwps.
9958 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9959 * i386-linux-nat.c (update_debug_registers_callback): Update the
9960 comment for linux_nat_iterate_watchpoint_lwps.
9961 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9962 linux_nat_iterate_watchpoint_lwps.
9963 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9964 * i386-nat.c: Include inferior.h.
9965 (dr_mirror): Remove.
9966 (i386_inferior_data, struct i386_inferior_data)
9967 (i386_inferior_data_get): New.
9968 (i386_debug_reg_state): Use i386_inferior_data_get.
9969 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9970 (i386_insert_watchpoint, i386_remove_watchpoint)
9971 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9972 (i386_remove_hw_breakpoint): New variable state, use
9973 i386_debug_reg_state instead of DR_MIRROR.
9974 * linux-nat.c (delete_lwp): New declaration.
9975 (num_lwps): Move here from downwards.
9976 (delete_lwp_cleanup): New.
9977 (linux_child_follow_fork): Create new child_lp, call
9978 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9980 (num_lwps): Move upwards.
9981 (linux_nat_iterate_watchpoint_lwps): New.
9982 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9983 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9985 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9989 2012-01-23 Pedro Alves <palves@redhat.com>
9991 * top.c (caution): Rename to ...
9992 (confirm): ... this.
9993 (show_caution): Rename to ...
9994 (show_confirm): ... this.
9995 (quit_cover): Adjust.
9996 (init_main): Adjust.
9997 * top.h (caution): Rename to ...
9998 (confirm): ... this.
9999 * utils.c (internal_vproblem, defaulted_query): Adjust.
10001 2012-01-23 Pedro Alves <palves@redhat.com>
10003 * top.c (caution): Update comment.
10004 (execute_command): Don't consider the current value of `caution'.
10006 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10008 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10010 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10012 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10013 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10014 * target.c (target_fileio_pwrite): Remove buffer address from
10016 (target_fileio_pread): Likewise.
10018 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10020 * NEWS: Document remote "info proc" and "generate-core-file".
10022 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10024 * gdbarch.sh (find_memory_regions): New callback.
10025 * gdbarch.c, gdbarch.h: Regenerate.
10027 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10028 callback before falling back to target method.
10030 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10031 (linux_target_install_ops): No longer install it.
10033 * linux-tdep.c (linux_find_memory_regions): New function.
10034 (linux_init_abi): Install it.
10036 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10038 * gdbarch.sh (make_corefile_notes): New architecture callback.
10039 * gdbarch.c: Regenerate.
10040 * gdbarch.h: Likewise.
10042 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10043 before target_make_corefile_notes. If NULL is returned, the
10044 target does not support core file generation.
10046 * linux-nat.c: Include "linux-tdep.h".
10047 (find_signalled_thread, find_stop_signal): Remove.
10048 (linux_nat_do_thread_registers): Likewise.
10049 (struct linux_nat_corefile_thread_data): Likewise.
10050 (linux_nat_corefile_thread_callback): Likewise.
10051 (iterate_over_spus): Likewise.
10052 (struct linux_spu_corefile_data): Likewise.
10053 (linux_spu_corefile_callback): Likewise.
10054 (linux_spu_make_corefile_notes): Likewise.
10055 (linux_nat_collect_thread_registers): New function.
10056 (linux_nat_make_corefile_notes): Replace contents by call to
10057 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10058 as native-only callback.
10060 * linux-tdep.h: Include "bfd.h".
10061 (struct regcache): Add forward declaration.
10062 (linux_collect_thread_registers_ftype): New typedef.
10063 (linux_make_corefile_notes): Add prototype.
10064 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10065 "regset.h", and "elf-bfd.h".
10066 (find_signalled_thread, find_stop_signal): New functions.
10067 (linux_spu_make_corefile_notes): Likewise.
10068 (linux_collect_thread_registers): Likewise.
10069 (struct linux_corefile_thread_data): New data structure.
10070 (linux_corefile_thread_callback): New funcion.
10071 (linux_make_corefile_notes): Likewise.
10072 (linux_make_corefile_notes_1): Likewise.
10073 (linux_init_abi): Install it.
10075 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10077 * gdbarch.sh (info_proc): New callback.
10078 * gdbarch.c, gdbarch.h: Regenerate.
10080 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10081 before falling back to the target info_proc callback.
10083 * linux-nat.c: Do not include "cli/cli-utils.h".
10084 (linux_nat_info_proc): Remove.
10085 (linux_target_install_ops): No longer install it.
10087 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10088 (read_mapping): New function.
10089 (linux_info_proc): Likewise.
10090 (linux_init_abi): Install it.
10092 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10094 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10095 * infcmd.c: (info_proc_cmd_1): New function.
10096 (info_proc_cmd): New function, moved here from equivalent routine
10097 orignally in linux-nat.c.
10098 (info_proc_cmd_mappings): Likewise.
10099 (info_proc_cmd_stat): Likewise.
10100 (info_proc_cmd_status): Likewise.
10101 (info_proc_cmd_cwd): Likewise.
10102 (info_proc_cmd_cmdline): Likewise.
10103 (info_proc_cmd_exe): Likewise.
10104 (info_proc_cmd_all): Likewise.
10105 (_initialize_infcmd): Install "info proc" command and subcommands.
10107 * target.h (struct target_ops): Add to_info_proc.
10108 (target_info_proc): Add prototype.
10109 * target.c (target_info_proc): New function.
10111 * procfs.c (procfs_info_proc): Add prototype.
10112 (info_proc_cmd): Rename into ...
10113 (procfs_info_proc): ... this. Update argument types as appropriate
10114 for a to_info_proc implementation. Handle "what" argument.
10115 (procfs_target): Install procfs_info_proc.
10116 (_initialize_procfs): No longer install "info proc" command.
10118 * linux-nat.c: (enum info_proc_what): Remove.
10119 (linux_nat_info_proc_cmd_1): Rename into ...
10120 (linux_nat_info_proc): ... this. Update argument types as appropriate
10121 for a to_info_proc implementation.
10122 (linux_nat_info_proc_cmd): Remove.
10123 (linux_nat_info_proc_cmd_mappings): Likewise.
10124 (linux_nat_info_proc_cmd_stat): Likewise.
10125 (linux_nat_info_proc_cmd_status): Likewise.
10126 (linux_nat_info_proc_cmd_cwd): Likewise.
10127 (linux_nat_info_proc_cmd_cmdline): Likewise.
10128 (linux_nat_info_proc_cmd_exe): Likewise.
10129 (linux_nat_info_proc_cmd_all): Likewise.
10130 (linux_target_install_ops): Install linux_nat_info_proc.
10131 (_initialize_linux_nat): No longer install "info proc" command
10134 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10136 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10137 * config.in, configure: Regenerate.
10139 * target.h (struct target_ops): Add to_fileio_readlink.
10140 (target_fileio_readlink): Add prototype.
10141 * target.c (target_fileio_readlink): New function.
10143 * inf-child.c: Conditionally include <sys/param.h>.
10144 (inf_child_fileio_readlink): New function.
10145 (inf_child_target): Install it.
10147 * remote.c (PACKET_vFile_readlink): New enum value.
10148 (remote_hostio_readlink): New function.
10149 (init_remote_ops): Install it.
10150 (_initialize_remote): Handle vFile:readlink packet type.
10152 2012-01-20 Pedro Alves <palves@redhat.com>
10153 Ulrich Weigand <ulrich.weigand@linaro.org>
10155 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10156 * config.in, configure: Regenerate.
10158 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10159 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10160 (target_fileio_open): Add prototype.
10161 (target_fileio_pwrite): Likewise.
10162 (target_fileio_pread): Likewise.
10163 (target_fileio_close): Likewise.
10164 (target_fileio_unlink): Likewise.
10165 (target_fileio_read_alloc): Likewise.
10166 (target_fileio_read_stralloc): Likewise.
10168 * target.c: Include "gdb/fileio.h".
10169 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10170 (default_fileio_target): New function.
10171 (target_fileio_open): Likewise.
10172 (target_fileio_pwrite): Likewise.
10173 (target_fileio_pread): Likewise.
10174 (target_fileio_close): Likewise.
10175 (target_fileio_unlink): Likewise.
10176 (target_fileio_close_cleanup): Likewise.
10177 (target_fileio_read_alloc_1): Likewise.
10178 (target_fileio_read_alloc): Likewise.
10179 (target_fileio_read_stralloc): Likewise.
10181 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10182 <fcntl.h>, and <unistd.h>.
10183 (inf_child_fileio_open_flags_to_host): New function.
10184 (inf_child_errno_to_fileio_error): Likewise.
10185 (inf_child_fileio_open): Likewise.
10186 (inf_child_fileio_pwrite): Likewise.
10187 (inf_child_fileio_pread): Likewise.
10188 (inf_child_fileio_close): Likewise.
10189 (inf_child_fileio_unlink): Likewise.
10190 (inf_child_target): Install to_fileio routines.
10192 * remote.c (init_remote_ops): Install to_fileio routines.
10194 2012-01-20 Pedro Alves <palves@redhat.com>
10195 Ulrich Weigand <ulrich.weigand@linaro.org>
10197 * remote.c (remote_multi_process_p): Only check for multi-process
10198 protocol feature, do not check for extended protocol.
10199 (remote_supports_multi_process): Check for extended protocol here.
10200 (set_general_process): Likewise.
10201 (extended_remote_kill): Likewise.
10202 (remote_pid_to_str): Likewise.
10203 (remote_query_supported): Always query multiprocess mode.
10205 2012-01-20 Pedro Alves <palves@redhat.com>
10206 Ulrich Weigand <ulrich.weigand@linaro.org>
10208 * inferior.h (struct inferior): Add fake_pid_p.
10209 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10210 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10211 magic_null_ptid since the remote side doesn't provide a real PID.
10213 2012-01-19 Tom Tromey <tromey@redhat.com>
10215 * NEWS: Combine the two Python sections.
10217 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 * target.h (target_close): Update comment on the target's unpush state.
10221 2012-01-19 Pedro Alves <palves@redhat.com>
10223 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10224 linux_nat_async directly instead of going through the target
10226 * target.c (unpush_target): Close target after unpushing it, not
10229 2012-01-19 Gary Benson <gbenson@redhat.com>
10231 * mdebugread.c (sort_blocks): Replace integer constants with ones
10232 derived from FIRST_LOCAL_BLOCK.
10234 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10235 Jan Kratochvil <jan.kratochvil@redhat.com>
10238 * symfile.c (find_separate_debug_file): New function.
10239 (terminate_after_last_dir_separator): Likewise.
10240 (find_separate_debug_file_by_debuglink): Also try realpath.
10241 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10242 * configure: Regenerate.
10243 * config.in: Regenerate.
10245 2012-01-18 Doug Evans <dje@google.com>
10247 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10248 (main.o): Remove rule.
10249 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10250 (--with-sysroot): Rewrite.
10251 * configure: Regenerate.
10252 * config.in: Regenerate.
10254 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10256 * parse.c (initialize_expout): New function.
10257 (reallocate_expout): Likewise.
10258 (parse_exp_in_context): Use `initialize_expout' and
10259 `reallocate_expout' when appropriate.
10261 2012-01-18 Pedro Alves <palves@redhat.com>
10263 * record.c (struct record_breakpoint, record_breakpoint_p)
10264 (record_breakpoints): New.
10265 (record_insert_breakpoint, record_remove_breakpoint): Manage
10266 record breakpoints list. Only remove breakpoints from the
10267 inferior if they had been inserted there in the first place.
10269 2012-01-17 Doug Evans <dje@google.com>
10271 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10272 if we know we don't have a file name to look for.
10274 2012-01-17 Pedro Alves <palves@redhat.com>
10276 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10277 the frame's stop reason is UNWIND_UNAVAILABLE.
10279 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10281 Fix compilation error.
10282 * m2-exp.y (yyerror): Use ANSI C prototype.
10284 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10286 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10287 (growbuf_by_size): Likewise.
10288 (yyerror): Likewise.
10289 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10290 (modblock): Remove variable (was #if 0'ed).
10291 (parse_number): Convert prototype from K&R to ANSI C.
10292 (yyerror): Likewise.
10293 * objc-exp.y (parse_number): Likewise.
10294 (yyerror): Likewise.
10295 (yylex): Remove #if 0'ed code.
10296 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10297 (yyerror): Likewise.
10299 2012-01-16 Tom Tromey <tromey@redhat.com>
10302 * symtab.h (compare_filenames_for_search): Declare.
10303 * symtab.c (compare_filenames_for_search): New function.
10304 (iterate_over_some_symtabs): Use it.
10305 * symfile.h (struct quick_symbol_functions)
10306 <map_symtabs_matching_filename>: Change spec.
10307 * psymtab.c (partial_map_symtabs_matching_filename): Use
10308 compare_filenames_for_search. Update for new spec.
10309 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10310 compare_filenames_for_search. Update for new spec.
10311 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10313 2012-01-16 Tom Tromey <tromey@redhat.com>
10316 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10317 (struct main_type) <flag_flag_enum>: New field.
10318 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10319 * NEWS: Add entries.
10320 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10322 * python/lib/gdb/printing.py (_EnumInstance): New class.
10323 (FlagEnumerationPrinter): Likewise.
10325 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10327 * breakpoint.c (create_sals_from_address_default): New function.
10328 (create_breakpoints_sal_default): Likewise.
10329 (decode_linespec_default): Likewise.
10330 (is_marker_spec): Removed.
10331 (strace_marker_p): New function.
10332 (init_breakpoint_sal): Using `strace_marker_p' instead of
10334 (create_breakpoint): Call method `create_sals_from_address' from
10335 breakpoint_ops, replacing code that created SALs conditionally
10336 on the type of the breakpoint. Call method `create_breakpoints_sal',
10337 replacing code that created breakpoints conditionally on the type
10339 (base_breakpoint_create_sals_from_address): New function.
10340 (base_breakpoint_create_breakpoints_sal): Likewise.
10341 (base_breakpoint_decode_linespec): Likewise.
10342 (base_breakpoint_ops): Add methods
10343 `base_breakpoint_create_sals_from_address',
10344 `base_breakpoint_create_breakpoints_sal' and
10345 `base_breakpoint_decode_linespec'.
10346 (bkpt_create_sals_from_address): New function.
10347 (bkpt_create_breakpoints_sal): Likewise.
10348 (bkpt_decode_linespec): Likewise.
10349 (tracepoint_create_sals_from_address): Likewise.
10350 (tracepoint_create_breakpoints_sal): Likewise.
10351 (tracepoint_decode_linespec): Likewise.
10352 (strace_marker_create_sals_from_address): Likewise.
10353 (strace_marker_create_breakpoints_sal): Likewise.
10354 (strace_marker_decode_linespec): Likewise.
10355 (strace_marker_breakpoint_ops): New variable.
10356 (addr_string_to_sals): Remove `marker_spec'. Call method
10357 `decode_linespec' from breakpoint_ops, replacing code that decoded
10358 an address string into a SAL. Use `strace_marker_p' instead of
10360 (strace_command): Decide whether we are dealing with a static
10361 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10362 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10363 * breakpoint.h (linespec_result, linespec_sals): New forward
10365 (breakpoint_ops) <create_sals_from_address>,
10366 <create_breakpoints_sal>, <decode_linespec>: New methods.
10368 2012-01-14 Doug Evans <dje@google.com>
10370 * NEWS: Update text for "maint set python print-stack".
10371 It is deprecated in gdb 7.4 and deleted in 7.5.
10373 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10375 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10376 including curses.h.
10378 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 * configure: Regenerate.
10381 * config.in: Regenerate.
10383 2012-01-12 Keith Seitz <keiths@redhat.com>
10386 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10387 (ANONYMOUS_UNION_NAME): Define.
10388 (is_path_expr_parent): New function.
10389 (get_path_expr_parent): New function.
10390 (is_anonymous_child): New function.
10391 (create_child_with_value): If the child is anonymous and without
10392 a name, assign an object name to it.
10393 (c_describe_child): Use get_path_expr_parent to determine
10394 the parent expression.
10395 If there field represents an anonymous struct or union and
10396 has no name, set an appropriate display name and expression.
10397 (cplus_describe_child): Likewise.
10399 2012-01-12 Pedro Alves <palves@redhat.com>
10401 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10402 available when %ebp is found to be zero (outermost).
10404 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10406 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10407 an internal gdb_static_assert.
10408 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10410 2012-01-11 Tom Tromey <tromey@redhat.com>
10413 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10414 catch" and "catch throw".
10416 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10418 * blockframe.c (block_innermost_frame): Start search from selected
10419 frame, if present, or otherwise the current frame.
10421 * c-exp.y (variable): Update innermost_block for
10422 'block COLONCOLON NAME' clause.
10423 * m2-exp.y (variable): Ditto.
10424 * objc-exp.y (variable): Ditto.
10426 2012-01-10 Tom Tromey <tromey@redhat.com>
10429 * python/python.c (finish_python_initialization): Set sys.argv.
10431 2012-01-10 Doug Evans <dje@google.com>
10433 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10434 "want_line_info". All callers updated.
10435 (dwarf_decode_lines_1): New function.
10436 (handle_DW_AT_stmt_list): Add function comment.
10437 New arg "want_line_info". All callers updated.
10438 (read_file_scope,read_type_unit_scope): Move comment from
10439 handle_DW_AT_stmt_list to here.
10441 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10443 Fix regression after libiberty/ update for GCC PR 6057 and others.
10444 * c-exp.y (operator) <OPERATOR DELETE>
10445 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10446 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10447 (make_builtin_type, make_name): New variable i, add gdb_assert.
10448 (operator) <OPERATOR NEW>: Update ARGS to 3.
10449 (operator) <OPERATOR DELETE>: Add trailing space.
10450 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10451 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10452 * cp-support.c (cp_canonicalize_string): Check NULL from
10453 cp_comp_to_string, call warning and return.
10455 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10457 Fix duplicate .o files after omitting libbfd.a.
10458 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10459 (SFILES): Add corelow.c.
10460 (COMMON_OBS): Add corelow.o.
10461 (ALLDEPFILES): Remove corelow.c.
10462 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10463 * config/alpha/alpha-osf3.mh: Likewise.
10464 * config/alpha/fbsd.mh: Likewise.
10465 * config/arm/nbsdaout.mh: Likewise.
10466 * config/arm/nbsdelf.mh: Likewise.
10467 * config/i386/i386gnu.mh: Likewise.
10468 * config/ia64/hpux.mh: Likewise.
10469 * config/ia64/linux.mh: Likewise.
10470 * config/m32r/linux.mh: Likewise.
10471 * config/m68k/linux.mh: Likewise.
10472 * config/mips/irix5.mh: Likewise.
10473 * config/mips/irix6.mh: Likewise.
10474 * config/pa/hpux.mh: Likewise.
10475 * config/pa/linux.mh: Likewise.
10476 * config/powerpc/aix.mh: Likewise.
10477 * config/sparc/linux.mh: Likewise.
10478 * config/sparc/linux64.mh: Likewise.
10479 * config/sparc/sol2.mh: Likewise.
10480 * config/vax/vax.mh: Likewise.
10481 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10482 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10483 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10484 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10485 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10486 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10487 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10488 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10489 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10490 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10491 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10492 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10493 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10494 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10495 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10496 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10497 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10498 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10499 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10500 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10501 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10502 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10503 corelow.o from gdb_target_obs.
10504 * corefile.c (core_target): Update the comment on NULL value.
10505 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10506 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10507 MATCHES. Drop YUMMY set on NULL.
10508 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10509 reclaim CORE_DATA if it is already NULL.
10511 2012-01-09 Doug Evans <dje@google.com>
10513 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10514 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10516 2012-01-09 Keith Seitz <keiths@redhat.com>
10518 * breakpoint.c (wrapper.h): Don't include.
10520 2012-01-09 Keith Seitz <keiths@redhat.com>
10522 * Makefile.in (SFILES): Remove wrapper.c.
10523 (HFILES_NO_SRCDIR): Remove wrapper.h.
10524 (COMMON_OBS): Remove wrapper.o.
10525 * cli/cli-interp.c: Don't inlude wrapper.h.
10526 * corelow.c: Likewise.
10527 (core_open): Replace gdb_target_find_new_threads with
10528 TRY_CATCH around target_find_new_threads.
10529 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10530 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10531 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10532 evaluate_expression.
10533 (varobj_set_value): Likewise for evaluate_expression and
10535 (install_new_variable): Likewise for value_fetch_lazy.
10536 (adjust_value_for_child_access): Likewise for value_ind.
10537 (c_describe_child): Likewise for value_subscript and
10539 (c_value_of_root): Likewise for evaluate_expression.
10540 * wrapper.c: Remove.
10541 * wrapper.h: Remove.
10543 2012-01-09 Doug Evans <dje@google.com>
10545 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10546 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10547 "abfd" args with "section". All callers updated.
10548 Error checking code moved ...
10549 (error_check_comp_unit_head): ... here. New function.
10550 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10551 Delete arg "abfd". New arg "type_offset". All callers updated.
10552 (create_debug_types_hash_table): Simplify by using
10553 read_and_check_type_unit_head.
10555 * parser-defs.h (namecopy): Delete.
10556 * parse.c (namecopy, namecopy_size): Move into copy_name.
10558 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10560 Partially fix duplicate .o files after omitting libbfd.a.
10561 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10562 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10563 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10564 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10565 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10566 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10567 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10569 2012-01-09 Pedro Alves <palves@redhat.com>
10571 * MAINTAINERS: Update my email address.
10573 2012-01-08 Doug Evans <dje@google.com>
10575 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10576 n_type_units. Rename type_comp_units to all_type_units.
10578 (add_signatured_type_cu_to_table): Renamed from
10579 add_signatured_type_cu_to_list. All callers updated.
10581 * gdbtypes.h (struct cplus_struct_type): Delete member
10582 nfn_fields_total. All uses removed.
10584 2012-01-06 Doug Evans <dje@google.com>
10586 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10588 (dwarf2_find_comp_unit): Delete.
10589 (process_psymtab_comp_unit): Make result "void".
10590 Delete args buffer, info_ptr, buffer_size, and replace with
10591 "section". All callers updated.
10592 (dwarf2_build_psymtabs_hard): Simplify.
10594 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10595 Thiago Jung Bauermann <bauerman@br.ibm.com>
10597 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10598 before `struct gdb_exception'.
10599 * breakpoint.c (update_global_location_list_nothrow)
10600 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10601 * cp-abi.c (value_rtti_type): Likewise.
10602 * cp-support.c (cp_validate_operator): Likewise.
10603 * infrun.c (insert_exception_resume_breakpoint)
10604 (check_exception_resume, keep_going): Likewise.
10605 * mi-interp.c (mi_breakpoint_created)
10606 (mi_breakpoint_modified): Likewise.
10607 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10608 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10609 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10611 2012-01-05 Doug Evans <dje@google.com>
10613 * dwarf2read.c (statement_prologue): Delete, unused.
10615 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10616 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10618 * dwarf2read.c (comp_unit_header): Delete, unused.
10620 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10622 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10623 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10625 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10627 * infrun.c (normal_stop): Don't skip calling the normal_stop
10628 observers if the thread was doing a multi-step, but stopped for
10629 some reason other than stepping.
10631 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10633 * cli/cli-decode.h: Add comments.
10634 (CMD_LIST_AMBIGUOUS): Moved to command.h
10635 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10636 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10637 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10638 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10639 (add_com, add_com_alias, add_info, add_info_alias)
10640 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10642 * command.h: Add and adjust comments.
10643 (CMD_LIST_AMBIGUOUS): Moved here.
10644 (help_cmd, help_cmd_list): Delete declarations.
10646 2012-01-04 Doug Evans <dje@google.com>
10648 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10649 All callers updated.
10650 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10651 Replace all arguments with "per_cu". All callers updated.
10653 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10655 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10656 New arg "per_cu". All callers updated.
10658 Delete #if 0'd out code.
10659 * language.c (binop_result_type): Delete.
10660 (simple_type, ordered_type, same_type, integral_type): Delete.
10661 (numeric_type, character_type, string_type, boolean_type): Delete.
10662 (float_type, structured_type): Delete.
10663 * language.h: Update.
10665 2012-01-04 Tom Tromey <tromey@redhat.com>
10667 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10669 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10671 * corefile.c (close_exec_file): Delete.
10672 (reopen_exec_file): Remove commented out code that seems related
10673 to close_exec_file, which is being deleted here.
10674 * inferior.h (close_exec_file): Delete.
10675 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10677 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10679 * ada-lang.c: #include "cli/cli-utils.h".
10680 (get_selections): Use skip_spaces.
10681 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10682 (catch_ada_exception_command_split): Use skip_spaces.
10683 (ada_decode_assert_location): Likewise.
10685 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10687 * linespec.c (decode_line_internal): Check for C++ or Java
10688 compound constructs only if the current language is C, C++
10691 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10694 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10695 Joel Brobecker <brobecker@adacore.com>
10696 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10697 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10699 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10700 fall through into AT_ENTRY_POINT.
10701 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10702 DUMMY_ADDR with it.
10703 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10704 PPC_INSN_SIZE skip to 3 times.
10706 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10708 * linespec.c (add_minsym): Preserve function descriptors.
10710 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10712 * breakpoint.c (all_locations_are_pending): Consider locations
10713 in program spaces executing during startup pending as well.
10715 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10717 Copyright year update in most files of the GDB Project.
10719 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10721 * copyright.sh: Delete.
10722 * copyright.py: Rewrite.
10724 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10726 * gnulib/extra/update-copyright: New file, imported from gnulib.
10728 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10730 * README (Copyright and License Notices): New section.
10732 2012-01-03 Tom Tromey <tromey@redhat.com>
10735 * python/py-value.c (valpy_dereference, valpy_get_address
10736 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10737 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10738 (valpy_absolute, valpy_richcompare): Free intermediate values.
10740 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10742 * ada-lang.c: Reformat the copyright notice.
10744 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10746 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10747 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10748 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10749 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10750 Revert this part of:
10751 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10752 Build gdb directly from *.o files not using libgdb.a.
10753 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10755 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10757 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10758 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10759 Reformat the copyright header.
10761 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10763 Revert this part of:
10764 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10765 Remove the gdbtui binary.
10766 * gdb.c (main): Remove args.interpreter_p initialization.
10767 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10768 * main.h (struct captured_main_args): Remove interpreter_p.
10770 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10772 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10774 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10776 * top.c (print_gdb_version): Update copyright year.
10778 2012-01-02 Yao Qi <yao@codesourcery.com>
10780 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10782 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10783 Joel Brobecker <brobecker@adacore.com>
10785 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10786 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10788 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10789 fall through into AT_ENTRY_POINT.
10790 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10791 DUMMY_ADDR with it.
10792 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10793 PPC_INSN_SIZE skip to 3 times.
10795 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10797 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10799 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10801 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10803 Build gdb directly from *.o files not using libgdb.a.
10804 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10805 (COMMON_OBS): Remove solib-target.o.
10806 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10807 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10808 (LIBGDB_OBS, libgdb.a): Move it above.
10809 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10810 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10811 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10812 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10813 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10814 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10815 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10816 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10817 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10818 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10819 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10820 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10821 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10822 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10823 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10824 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10825 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10826 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10827 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10828 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10829 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10830 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10831 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10832 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10833 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10834 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10835 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10837 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10839 Remove the gdbtui binary.
10840 * .gitignore (/gdbtui): Remove.
10841 * Makefile.in (TUI): Remove.
10842 (SUBDIR_TUI_OBS): Remove tui-main.o.
10843 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10844 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10845 (tui-main.o): Remove.
10846 (all_object_files): Remove tui-main.o.
10847 * NEWS: New note for the gdbtui removal.
10848 * configure: Rebuilt.
10849 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10850 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10851 CONFIG_UNINSTALL respectively.
10852 * gdb.c (main): Remove args.interpreter_p initialization.
10853 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10854 * main.h (struct captured_main_args): Remove interpreter_p.
10855 * tui/tui-main.c: Remove.
10857 2012-01-01 Doug Evans <dje@google.com>
10859 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10860 (dwarf2_physname, read_import_statement): Ditto.
10861 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10862 (process_structure_scope read_subroutine_type): Ditto.
10863 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10864 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10865 (dwarf2_fetch_die_location_block): Ditto.
10866 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10868 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10869 All callers updated.
10870 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10871 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10872 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10874 * dwarf2read.c (load_cu): Move assert to more useful location.
10876 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10877 All callers updated.
10879 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10880 (dwarf2_elf_names): Minor reformat.
10881 (dwarf2_per_cu_data): Tweak comment.
10882 (dwarf2_read_section): Fix comment.
10883 (create_all_comp_units): Fix comment.
10884 (load_full_comp_unit): Fix comment.
10885 (process_full_comp_unit): Fix comment.
10886 (read_signatured_type): Fix comment.
10888 For older changes see ChangeLog-2011.
10894 version-control: never