1 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
3 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
4 reset thread numbering back to 1.
6 2012-10-11 Doug Evans <dje@google.com>
9 * linespec.c (struct ls_parser): New member keyword_ok.
10 (linespec_lexer_lex_string): Add comment.
11 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
13 (parse_linespec): Set keyword_ok.
15 2012-10-10 Doug Evans <dje@google.com>
17 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
18 "0x" prefix on address in log message.
20 * dwarf2read.c (read_1_byte): Add const to buf parameter.
21 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
22 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
23 (lookup_dwo_file): Add const to dwo_name parameter.
24 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
26 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
28 Fix crash during stepping on ppc32.
29 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
32 2012-10-03 Doug Evans <dje@google.com>
35 * buildsym.c (buildsym_init): Reset using_directives to NULL.
37 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
39 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
40 output and use uint32_t not long to ensure 4 byte size.
42 2012-10-02 Joel Brobecker <brobecker@adacore.com>
44 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
47 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
49 * target.c (simple_search_memory): Include access length in
52 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
53 Edjunior Machado <emachado@linux.vnet.ibm.com>
56 * solib.c (solib_find): Prevent GDB from loading native libraries when
57 debugging a cross-target corefile.
59 2012-09-28 selven <pcthegreat@gmail.com>
61 Make definition match declaration.
63 * regcache.c (regcache_register_status): Change return type to
66 2012-09-28 Yao Qi <yao@codesourcery.com>
68 * mi/mi-main.c (mi_cmd_data_write_memory): Call
69 write_memory_with_notification instead of write_memory.
70 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
71 instead of target_write_memory.
73 2012-09-28 Yao Qi <yao@codesourcery.com>
75 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
76 when the length of content is not an even number.
78 2012-09-27 Tom Tromey <tromey@redhat.com>
80 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
81 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
83 2012-09-27 Joel Brobecker <brobecker@adacore.com>
85 * sol-thread.c (sol_thread_fetch_registers)
86 (sol_thread_store_registers): Delete commented out code.
88 2012-09-27 Joel Brobecker <brobecker@adacore.com>
90 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
91 Move these functions to sparc-sol-thread.c.
92 * sparc-sol-thread.c: New file.
93 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
94 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
96 * configure: Regenerate.
98 2012-09-27 Joel Brobecker <brobecker@adacore.com>
100 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
101 Remove commented-out code.
103 2012-09-27 Joel Brobecker <brobecker@adacore.com>
105 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
106 Enable this code for sparc hosts only.
108 2012-09-27 Joel Brobecker <brobecker@adacore.com>
110 * procfs.h (procfs_find_LDT_entry): Add declaration.
111 * sol-thread.c (ps_lgetLDT): Delete local declaration of
112 function procfs_find_LDT_entry.
114 2012-09-27 Joel Brobecker <brobecker@adacore.com>
116 * procfs.c (proc_get_LDT_entry): Make static.
118 2012-09-27 Joel Brobecker <brobecker@adacore.com>
120 * procfs.c (proc_find_memory_regions): Fix declaration.
122 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
124 * amd64-tdep.c (amd64_return_value): Revert previous change
125 that used TYPE_LENGTH directly.
126 * bfin-tdep.c (bfin_extract_return_value): Likewise.
127 (bfin_store_return_value): Likewise.
128 * cris-tdep.c (cris_store_return_value): Likewise.
129 (cris_extract_return_value): Likewise.
130 * h8300-tdep.c (h8300_extract_return_value): Likewise.
131 * hppa-tdep.c (hppa64_return_value): Likewise.
132 * lm32-tdep.c (lm32_store_return_value): Likewise.
133 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
134 * spu-tdep.c (spu_value_from_register): Likewise.
135 * vax-tdep.c (vax_return_value): Likewise.
137 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
139 * gdbtypes.c (lookup_array_range_type): Expand parameters
140 LOW_BOUND and HIGH_BOUND to LONGEST.
141 (lookup_string_range_type): Likewise.
142 * gdbtypes.h (lookup_array_range_type): Likewise.
143 (lookup_string_range_type): Likewise.
144 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
145 Expand HIGHBOUND to ssize_t.
146 (value_string): Likewise.
147 * value.h (value_cstring): Expand parameter LEN to ssize_t.
148 (value_string): Likewise.
150 2012-09-27 Yao Qi <yao@codesourcery.com>
153 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
154 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
157 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
159 * procfs.c: Add gdb_bfd header.
160 * rs6000-nat.c: Likewise.
161 * solib-pa64.c: Likewise.
162 * spu-linux-nat.c: Likewise.
163 * windows-nat.c: Likewise.
165 2012-09-26 Tom Tromey <tromey@redhat.com>
167 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
169 2012-09-26 Tom Tromey <tromey@redhat.com>
171 * dwarf2read.c (mark_common_block_symbol_computed): New function.
172 (read_common_block): Handle child DIEs with
173 DW_AT_data_member_location.
174 (new_symbol_full): Add special case for common blocks.
176 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
177 Tom Tromey <tromey@redhat.com>
179 * dwarf2read.c (read_common_block): Rewrite.
180 (new_symbol_full): Handle DW_TAG_common_block.
181 * f-lang.c (head_common_list, find_common_for_function):
183 * f-lang.h (struct common_entry, struct saved_f77_common,
184 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
185 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
186 BLANK_COMMON_NAME_LOCAL): Remove.
187 (struct common_block): New.
188 * f-valprint.c (list_all_visible_commons): Remove.
189 (info_common_command_for_block): New function.
190 (info_common_command): Use it.
191 * stack.c (iterate_over_block_locals): Special case for
193 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
195 (struct general_symbol_info) <value.common_block>: New field.
196 (SYMBOL_VALUE_COMMON_BLOCK): New define.
198 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
199 Tom Tromey <tromey@redhat.com>
201 * f-lang.c (allocate_saved_bf_node,
202 allocate_saved_function_node, allocate_saved_f77_common_node,
203 allocate_common_entry_node, tail_common_list, current_common,
204 saved_bf_list, saved_bf_list_end, current_head_bf_list,
205 tmp_bf_ptr, add_common_block, add_common_entry,
206 find_first_common_named, patch_common_entries,
207 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
208 global_remote_debug, get_bf_for_fcn, saved_function_list,
209 saved_function_list_end, clear_function_list, struct saved_fcn,
210 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
211 SAVED_BF, SAVED_BF_PTR): Remove.
212 * f-lang.h (tail_common_list, current_common,
213 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
214 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
215 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
216 real_main_c_value): Remove.
217 * f-valprint.c (there_is_a_visible_common_named): Remove.
219 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
221 * breakpoint.c (update_global_location_list): Ignore previous
222 duplicate status of a breakpoint when starting a new scan for
223 duplicate breakpoints.
225 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
227 * arm-tdep.c (arm_skip_prologue): Extending producer check to
228 support LLVM compiler.
230 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
232 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
233 * bfin-tdep.c (bfin_extract_return_value): Likewise.
234 (bfin_store_return_value): Likewise.
235 * cris-tdep.c (cris_store_return_value): Likewise.
236 (cris_extract_return_value): Likewise.
237 * h8300-tdep.c (h8300_extract_return_value): Likewise.
238 * hppa-tdep.c (hppa64_return_value): Likewise.
239 * lm32-tdep.c (lm32_store_return_value): Likewise.
240 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
241 * spu-tdep.c (spu_value_from_register): Likewise.
242 * vax-tdep.c (vax_return_value): Likewise.
244 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
246 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
247 parameter LEN to ssize_t.
249 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
251 * ada-valprint.c (ada_val_print_1): Eliminate single-use
253 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
255 (alpha_store_return_value): Likewise.
256 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
257 (amd64_push_arguments): Likewise.
258 * ax-gdb.c (gen_trace_static_fields): Likewise.
259 (gen_traced_pop): Likewise.
260 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
261 * breakpoint.c (update_watchpoint): Likewise.
262 * findcmd.c (parse_find_args): Use local variable for type
264 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
265 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
266 (h8300_store_return_value): Likewise.
267 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
268 Use i386_darwin_arg_type_alignment directly.
269 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
270 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
271 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
272 (m68hc11_extract_return_value): Likewise.
273 * mep-tdep.c (mep_push_dummy_call): Likewise.
274 * printcmd.c (float_type_from_length): Likewise.
275 * s390-tdep.c (s390_value_from_register): Likewise.
276 * stack.c (read_frame_arg): Likewise.
277 * tracepoint.c (encode_actions_1): Likewise.
278 * valops.c (value_fetch_lazy): Use local variable for type
279 instead of length. Use TYPE_LENGTH directly.
280 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
282 2012-09-25 Joel Brobecker <brobecker@adacore.com>
284 * symtab.c (skip_prologue_sal): Fix typo in comment.
286 2012-09-25 Joel Brobecker <brobecker@adacore.com>
288 * linespec.c (create_sals_line_offset): Fix typo in comment.
290 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
292 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
293 use plongest to print the array size.
295 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
297 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
298 * p-valprint.c (pascal_type_print_base): Likewise.
300 2012-09-22 Yao Qi <yao@codesourcery.com>
302 * remote.c (remote_get_trace_status): Remove setting default
303 values of fields of 'ts'.
305 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
307 Fix internal error on canonicalization of clang types.
308 * cp-name-parser.y (operator): New comment at make_operator call for
309 new, delete, new[] and delete[].
310 (exp): Use "sizeof ". Add new comment at make_operator call.
312 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
314 Fix disassemble without parameters in tailcall frame.
315 * cli/cli-cmds.c (disassemble_current_function): Use
316 get_frame_address_in_block.
318 2012-09-21 Tom Tromey <tromey@redhat.com>
320 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
321 TYPE_CODE_UNION>: Unify, removing a goto.
323 2012-09-21 Tom Tromey <tromey@redhat.com>
325 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
327 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
329 * findvar.c (read_frame_register_value): Mark the result value as
330 optimized out if any of the input registers have been optimized out.
332 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
334 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
336 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
338 * eval.c (evaluate_subexp_standard): Eliminate single-use
341 2012-09-21 Yao Qi <yao@codesourcery.com>
343 * mi/mi-interp.c: Declare mi_record_changed.
344 (mi_interpreter_init): Call observer_attach_record_changed.
345 (mi_record_changed): New.
346 * record.c (record_open): Call observer_notify_record_changed.
347 (cmd_record_stop): Call observer_notify_record_changed.
350 2012-09-20 Tom Tromey <tromey@redhat.com>
353 * python/python.c (finalize_python): New function.
354 (_initialize_python): Make a final cleanup.
356 2012-09-19 Doug Evans <dje@google.com>
358 * buildsym.h (param_symbols): Delete, unused.
359 (context_stack): Delete member "params", unused.
360 * buildsym.c (push_context): Update.
361 * dwarf2read.c (read_func_scope): Update.
363 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
365 * sh-tdep.c (sh_register_convert_to_virtual)
366 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
367 all callers. Just do a memcpy if not the little-endian case.
369 * h8300-tdep.c (h8300_gdbarch_init): Invoke
370 set_gdbarch_double_format and set_gdbarch_long_double_format.
371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
372 set_gdbarch_double_format.
373 * sh-tdep.c (sh_gdbarch_init): Likewise.
375 * NEWS: Document the removal of SH's 'regs' command.
376 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
379 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
381 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
384 2012-09-18 Joel Brobecker <brobecker@adacore.com>
386 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
387 language when iterating over symbols.
389 2012-09-18 Yao Qi <yao@codesourcery.com>
391 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
392 (mi_interpreter_init): Call observer_attach_tsv_created and
393 observer_attach_tsv_deleted.
394 (mi_tsv_created, mi_tsv_deleted): New.
395 * tracepoint.c (delete_trace_state_variable): Call
396 observer_notify_tsv_deleted.
397 (trace_variable_command): Call observer_notify_tsv_created.
398 (delete_trace_variable_command): Call
399 observer_notify_tsv_deleted.
400 (create_tsv_from_upload): Call observer_notify_tsv_created.
403 2012-09-18 Yao Qi <yao@codesourcery.com>
405 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
406 if traceframe changed.
407 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
409 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
410 (mi_interpreter_init): Hook mi_traceframe_changed to observer
411 'traceframe_changed'.
412 (mi_traceframe_changed): New.
413 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
415 * NEWS: Mention the new MI notification.
417 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
419 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
421 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
423 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
424 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
425 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
426 Extend code also for PaX support. Convert all gdb_assert to warning
429 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
431 Implement auto-load user conveniences suggested by Doug Evans.
432 * auto-load.c: Include top.h.
433 (file_is_auto_load_safe): New variable advice_printed. Print advice.
434 (_initialize_auto_load): New variable scripts_directory_help. Mention
435 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
436 scripts-directory. Document in online help one can use also files for
437 set auto-load safe-path.
438 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
439 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
441 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
443 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
446 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
448 * m2-valprint.c (m2_print_array_contents): Eliminate variable
449 ELTLEN and use TYPE_LENGTH directly.
450 (m2_val_print): Likewise.
451 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
452 variable LEN and use TYPE_LENGTH directly.
453 (m68k_svr4_store_return_value): Likewise.
454 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
455 ARGLEN and use TYPE_LENGTH directly.
456 (mips_o64_push_dummy_call): Likewise.
457 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
458 variable LENGTH and use TYPE_LENGTH directly.
459 (s390_function_arg_float): Likewise.
460 (s390_function_arg_integer): Likewise.
461 (s390_push_dummy_call): Likewise.
462 (s390_return_value_convention): Likewise.
463 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
464 TYPE_LENGTH directly.
466 2012-09-17 Yao Qi <yao@codesourcery.com>
468 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
469 Update comment to add_setshow_integer_cmd.
470 * cli/cli-setshow.c (do_set_command): Handle case
471 'var_zuinteger_unlimited'.
472 (do_show_command): Likewise.
473 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
474 for command 'remotetimeout'.
475 * command.h (enum var_types): New zuinteger_unlimited. Update comment
477 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
478 for command 'set listsize'.
480 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
482 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
485 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
488 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
489 (frame_pop): Drop also TAILCALL_FRAME frames.
490 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
492 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
493 Pedro Alves <palves@redhat.com>
496 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
497 function start if we are already at function start. Both for
498 reverse-next and for reverse-step into function without line number
501 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
503 Code cleanup - rename 'inline' depth to 'artificial' depth.
504 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
505 frame_id_artificial_p, extend the comment.
506 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
507 * frame.c (fprint_frame_id): Rename at a user, change debug output
508 text to "artificial=".
509 (skip_inlined_frames): Rename to ...
510 (skip_artificial_frames): ... here. Extend the comment.
511 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
512 (frame_id_inlined_p): Rename to ...
513 (frame_id_artificial_p): ... here. Rename at a user.
514 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
515 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
517 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
519 (frame_id_inlined_p): Rename to ...
520 (frame_id_artificial_p): ... here.
521 * inline-frame.c (inline_frame_this_id): Rename at a user.
523 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
525 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
526 vector variables using vector_size syntax rather than array
529 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
531 * valarith.c (value_concat): Replace unsafe ALLOCA with
534 2012-09-14 Pedro Alves <palves@redhat.com>
536 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
538 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
540 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
541 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
542 data-directory as appropriate.
544 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
546 * printcmd.c (ui_printf): Eliminate single-use variable
549 2012-09-14 Yao Qi <yao@codesourcery.com>
550 Pedro Alves <palves@redhat.com>
552 * valops.c (value_assign): Move observer_notify_target_changed
553 below to replace reinit_frame_cache.
555 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
557 Refactor Python "gdb" module into a proper Python package, by
558 introducing a new "_gdb" module for code implemented in C, and
559 using reload/__import__ instead of exec.
560 * python/lib/gdb/__init__.py: Import * from _gdb.
561 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
562 prompt_hook, sys.argv): Moved from finish_python_initialization.
563 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
564 (packages, auto_load_packages): New list and function replacing
565 module_dict and auto-loading code, using __file__ instead of
566 gdb.PYTHONDIR and reload/__import__ instead of exec.
567 (GdbSetPythonDirectory): Replacing function of the same name
568 from finish_python_initialization, using reload/__import__ instead
569 of exec, as well as call auto_load_packages.
570 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
571 gdb_python_module and not gdb_module.
572 * python/python-internal.h (gdb_python_module): Declare.
573 * python/python.c (gdb_python_module): New global.
574 (before_prompt_hook): Check gdb_python_module and not gdb_module.
575 (_initialize_python): Rename gdb module to _gdb.
576 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
577 (finish_python_initialization): Move Python code to
578 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
581 2012-09-13 Pedro Alves <palves@redhat.com>
583 * Makefile.in (COMMON_OBS): Add registry.o.
584 * registry.c: New file.
585 * registry.h (struct registry_container): Declare.
586 (registry_data_callback): New typedef.
587 (struct registry_data, struct registry_data_registration, struct
588 registry_data_registry): New type.
589 (register_data_with_cleanup, registry_alloc_data)
590 (registry_callback_adaptor, registry_clear_data)
591 (registry_container_free_data, registry_set_data, registry_data):
593 (DEFINE_REGISTRY): Refactor structures and functions as shims over
594 the new common structures and functions.
595 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
598 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
600 * remote.c (remote_insert_hw_breakpoint): Throw exception if
601 there is an error inserting hardware breakpoints and use the
602 error message from the target.
604 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
605 Catch this exception and print the error message contained within. Do not
606 print the default hardware error breakpoint message in this case.
608 2012-09-12 Doug Evans <dje@google.com>
610 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
613 2012-09-11 Doug Evans <dje@google.com>
615 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
616 .gdb_index symbol attributes if there are none.
618 2012-09-11 Joel Brobecker <brobecker@adacore.com>
620 * symtab.h (struct minimal_symbol) [has_size]: New field.
621 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
622 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
623 * printcmd.c (build_address_symbolic): Only filter out zero-sized
624 minimal symbols if the symbol's size is actually known.
625 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
626 of msymbol's size field. Add comment.
627 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
628 SET_MSYMBOL_SIZE to set the minimal symbol size.
630 2012-09-11 Joel Brobecker <brobecker@adacore.com>
632 * minsyms.c (install_minimal_symbols): Use memset to fill entire
633 minimal_symbol struct object, rather than setting some of its
636 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
638 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
639 passed_a_ptr flag when displaying typedef types.
641 2012-09-10 Joel Brobecker <brobecker@adacore.com>
643 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
644 the optimized_out flag is preserved.
646 2012-09-10 Anthony Green <green@moxielogic.com>
648 * moxie-tdep.c (moxie_analyze_prologue): Update for function
649 prologue changes in GCC.
651 2012-09-10 Keith Seitz <keiths@redhat.com>
654 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
655 (BOOL_CONVERSION_BADNESS): ... this.
656 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
657 (rank_one_type): Allow all boolean conversions
658 permitted by the standard.
660 2012-09-06 Tom Tromey <tromey@redhat.com>
662 * python/py-newobjfileevent.c (create_new_objfile_event_object):
663 Don't decref py_objfile.
665 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
667 Do not enable -lmcheck by default when Python is enabled with
669 * configure.ac: (python_has_threads) New variable, by testing
670 if WITH_THREAD is defined in Python.h.
671 Move --enable-lmcheck after --with-python.
672 Do not enable -lmcheck by default if python_has_threads=yes.
673 Warn if --enable-lmcheck and python_has_threads=yes.
674 * configure: Regenerate.
676 2012-08-31 Yao Qi <yao@codesourcery.com>
678 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
679 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
680 Update some commands.
681 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
682 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
685 2012-08-31 Yao Qi <yao@codesourcery.com>
687 * mi/mi-cmds.c (mi_cmds): Add 'static'.
689 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
691 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
693 2012-08-29 Doug Evans <dje@google.com>
695 * main.c (print_gdb_help): Remove reference to
696 --use-deprecated-index-sections.
698 2012-08-28 Yao Qi <yao@codesourcery.com>
700 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
701 (init_cmds): Call add_setshow_uinteger_cmd for command
702 'max-user-call-depth'.
703 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
704 declaration of 'max_user_call_depth'.
705 * frame.c (backtrace_limit): Add 'unsigned'.
706 (_initialize_frame): Call add_setshow_uinteger_cmd for command
708 * remote.c (remoteaddresssize): Add 'unsigned'.
709 (remote_address_masked): Change local var 'address_size' to
711 (_initialize_remote): Call add_setshow_uinteger_cmd for
713 * top.c (history_size): Add 'unsigned'.
714 (show_commands): Change local variables to 'unsigned'.
715 (set_history_size_command): Don't check history_size is negative.
716 Adjust the condition to call unstifle_history and set history_size
719 2012-08-28 Pedro Alves <palves@redhat.com>
723 * infcmd.c (default_print_one_register_info): New, factored out
724 from default_print_registers_info.
725 (default_print_registers_info): Use it. Mark value unavailable if
727 (registers_info): Print user registers with
728 default_print_one_register_info.
730 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
733 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
734 is not NULL before referencing it.
736 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
738 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
739 variable pc. Call find_pc_line instead of find_pc_overlay, restore
742 2012-08-27 Eli Zaretskii <eliz@gnu.org>
743 Jan Kratochvil <jan.kratochvil@redhat.com>
745 * auto-load.c (auto_load_objfile_script): Rename to ...
746 (auto_load_objfile_script_1): ... here, change variable realname to
747 parameter realname, document it, add return value, add variable retval.
748 (auto_load_objfile_script): New function.
750 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
752 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
753 followed by a whitespace.
755 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
758 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
759 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
760 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
763 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
765 * memattr.c (create_mem_region): Fix memory region overlapping
768 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
770 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
771 with xmalloc/cleanup.
772 * mt-tdep.c (mt_push_dummy_call): Likewise.
773 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
774 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
776 2012-08-24 Yao Qi <yao@codesourcery.com>
778 * jv-exp.y (push_expression_name): Add "." at the end of error
781 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
783 Document how to return from "python-interactive" to GDB.
784 * python/python.c (_initialize_python): Update documentation.
786 2012-08-23 Pedro Alves <palves@redhat.com>
788 * infrun.c (_initialize_infrun) <handle command help text>:
789 Mention that multiple signals are supported.
791 2012-08-23 Pedro Alves <palves@redhat.com>
793 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
796 2012-08-23 Yao Qi <yao@codesourcery.com>
798 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
799 (tfind_1): Don't call registers_changed, set_traceframe_num,
800 and clear_traceframe_info.
801 Call set_current_traceframe.
802 (set_current_traceframe): call set_traceframe_num.
804 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
806 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
807 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
809 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
811 Enable readline in Python in a GDB-specific way and block the
812 standard Python readline module to prevent conflicts with GDB.
813 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
814 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
815 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
816 * python/py-gdb-readline.c: New file.
817 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
819 * python/python.c (_initialize_python): Call
820 gdbpy_initialize_gdb_readline.
822 2012-08-22 Keith Seitz <keiths@redhat.com>
824 * defs.h: Include build-gnulib/config.h
826 2012-08-22 Joseph Myers <joseph@codesourcery.com>
828 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
831 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
833 Add a new "python-interactive" command that starts a standard
834 Python interactive prompt with "pi" as alias, and add "py" as
835 an alias to "python".
836 * NEWS: Mention the new commands.
837 * python/python.c (eval_python_command): New function.
838 (python_interactive_command): For "python-interactive" with
839 arguments, call eval_python_command. For "python-interactive"
840 without arguments, call PyRun_InteractiveLoop.
841 (_initialize_python): Add "python-interactive" command with
842 "pi" as alias, and add "py" as an alias to "python".
844 2012-08-22 Tom Tromey <tromey@redhat.com>
846 * defs.h (quit_flag): Don't declare.
847 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
848 (QUIT): Use new functions.
849 * event-top.c (command_handler): Use clear_quit_flag.
850 (handle_sigint): Use set_quit_flag.
851 (async_request_quit): Use check_quit_flag. Don't check
853 * exceptions.c (throw_exception): Use clear_quit_flag.
854 * main.c (captured_main): Use clear_quit_flag.
855 * python/python.c (clear_quit_flag, set_quit_flag)
856 (check_quit_flag): New functions.
857 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
859 * remote.c (remote_wait_as): Use check_quit_flag,
861 (remote_start_remote): Call QUIT.
862 * symfile.c (load_progress): Use check_quit_flag.
863 * top.c (command_loop): Use clear_quit_flag.
864 (command_line_input): Call QUIT.
865 * utils.c (quit_flag): Conditionally define.
866 (clear_quit_flag, check_quit_flag, set_quit_flag): New
868 (prompt_for_continue): Call QUIT. Use quit, not
870 * remote-mips.c (mips_expect_timeout): Call QUIT.
871 * monitor.c (monitor_expect): Call QUIT.
873 2012-08-22 Tom Tromey <tromey@redhat.com>
875 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
876 (async_init_signals): Update.
877 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
878 (SIGWINCH_HANDLER_BODY): Remove.
880 2012-08-22 Tom Tromey <tromey@redhat.com>
882 * jit.c (jit_object_close_impl): Don't malloc the objfile
884 * objfiles.c (allocate_objfile): Don't malloc the objfile
886 (free_objfile): Don't free the objfile name.
887 * objfiles.h (struct objfile) <name>: Update comment.
888 * symfile.c (reread_symbols): Fix reference counting. Don't
891 2012-08-22 Tom Tromey <tromey@redhat.com>
893 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
894 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
895 (symfile_bfd_open): Likewise.
896 (generic_load): Likewise.
897 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
898 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
900 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
902 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
903 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
904 (pmon_load_fast): Likewise.
905 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
906 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
907 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
908 (macho_check_dsym): Likewise.
909 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
910 (m32r_upload_command): Likewise.
911 * gdb_bfd.h (gdb_bfd_cache): Declare.
912 * gdb_bfd.c (struct gdb_bfd_data): New.
913 (gdb_bfd_cache): New global.
914 (struct gdb_bfd_cache_search): New.
915 (hash_bfd): New function.
917 (gdb_bfd_open): Likewise.
918 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
919 (gdb_bfd_unref): Remove closed BFD from cache. Update for
921 * exec.c (exec_file_attach): Use gdb_bfd_open.
922 * dsrec.c (load_srec): Use gdb_bfd_open.
924 2012-08-22 Tom Tromey <tromey@redhat.com>
926 * dwarf2read.c (macro_start_file): Update.
927 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
928 (free_objfile_per_bfd_storage): Destroy macro_cache.
929 (allocate_objfile, free_objfile): Update.
930 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
932 (struct objfile) <macro_cache>: Remove.
933 * symfile.c (reread_symbols): Update.
934 * symmisc.c (print_symbol_bcache_statistics): Update.
935 (print_objfile_statistics): Update.
937 2012-08-22 Tom Tromey <tromey@redhat.com>
939 * elfread.c (elf_symtab_read): Update.
940 * objfiles.c (objfiles_bfd_data): New global.
941 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
942 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
943 (allocate_objfile, free_objfile): Update.
944 (_initialize_objfiles): Initialize objfiles_bfd_data.
945 * objfiles.h (struct objfile_per_bfd_storage): New.
946 (struct objfile) <per_bfd>: New field.
947 <filename_cache>: Remove.
948 (set_objfile_per_bfd): Declare.
949 * symfile.c (reread_symbols): Update. Call
951 (allocate_symtab): Update.
952 * symmisc.c (print_symbol_bcache_statistics): Update.
953 (print_objfile_statistics): Print the size of the BFD obstack.
955 2012-08-22 Tom Tromey <tromey@redhat.com>
957 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
958 * gdb_bfd.c: Use DEFINE_REGISTRY.
959 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
960 (gdb_bfd_ref): Call bfd_alloc_data.
961 (gdb_bfd_unref): Call bfd_free_data.
963 2012-08-22 Tom Tromey <tromey@redhat.com>
965 * registry.h (struct registry_fields): New.
966 (REGISTRY_FIELDS): Redefine.
967 (REGISTRY_ACCESS_FIELD): New macro.
968 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
971 2012-08-22 Tom Tromey <tromey@redhat.com>
973 * auto-load.c (_initialize_auto_load): Update.
974 * solib-svr4.c (_initialize_svr4_solib): Update
975 * solib-dsbt.c (_initialize_dsbt_solib): Update.
976 * solib-darwin.c (_initialize_darwin_solib): Update.
977 * registry.h: New file.
978 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
979 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
980 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
981 (register_program_space_data_with_cleanup)
982 (register_program_space_data, program_space_alloc_data)
983 (clear_program_space_data, set_program_space_data)
984 (program_space_data): Don't declare.
985 * progspace.c: Use DEFINE_REGISTRY.
986 (struct program_space_data, struct
987 program_space_data_registration, struct
988 program_space_data_registry, program_space_data_registry)
989 (register_program_space_data_with_cleanup)
990 (register_program_space_data, program_space_alloc_data)
991 (program_space_free_data, clear_program_space_data)
992 (set_program_space_data, program_space_data): Remove.
993 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
994 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
995 (register_objfile_data_with_cleanup, register_objfile_data)
996 (clear_objfile_data, set_objfile_data, objfile_data): Don't
998 * objfiles.c: Use DEFINE_REGISTRY.
999 (struct objfile_data, struct objfile_data_registration, struct
1000 objfile_data_registry, objfile_data_registry)
1001 (register_objfile_data_with_cleanup, register_objfile_data)
1002 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1003 (set_objfile_data, objfile_data): Remove.
1004 (_initialize_objfiles): Update.
1005 * jit.c (_initialize_jit): Update.
1006 * inflow.c (_initialize_inflow): Update.
1007 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1008 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1009 (register_inferior_data_with_cleanup, register_inferior_data)
1010 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1012 * inferior.c: Use DEFINE_REGISTRY.
1013 (struct inferior_data, struct inferior_data_registration, struct
1014 inferior_data_registry, inferior_data_registry)
1015 (register_inferior_data_with_cleanup, register_inferior_data)
1016 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1017 (set_inferior_data, inferior_data): Remove.
1018 * auxv.c (_initialize_auxv): Update.
1019 * ada-lang.c (_initialize_ada_language): Update.
1020 * breakpoint.c (_initialize_breakpoint): Update.
1021 * i386-nat.c (i386_use_watchpoints): Update.
1023 2012-08-22 Tom Tromey <tromey@redhat.com>
1025 * exec.c (exec_close, exec_file_attach): Update.
1026 (add_to_section_table): Initialize 'key' field.
1027 (add_target_sections, remove_target_sections): Add 'key' argument.
1028 * exec.h (add_target_sections, remove_target_sections): Add
1030 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1031 (reload_shared_libraries_1): Update.
1032 * target.h (struct target_section) <key>: New field.
1034 2012-08-22 Tom Tromey <tromey@redhat.com>
1036 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1038 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1040 * symfile.c (allocate_symtab): Use host_address_to_string
1041 function instead of cast of pointer to long which is not
1042 compatible with x86_64-w64-mingw32 build.
1044 2012-08-19 Andrew Pinski <apinski@cavium.com>
1046 * mips-tdep.c (is_octeon): New function.
1047 (is_octeon_bbit_op): New function.
1048 (mips32_next_pc): Handle Octeon's bbit instructions.
1049 (mips32_instruction_has_delay_slot): Likewise.
1051 2012-08-19 Andrew Pinski <apinski@cavium.com>
1053 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1054 before the function.
1056 2012-08-19 Andrew Pinski <apinski@cavium.com>
1058 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1060 2012-08-19 Keith Seitz <keiths@redhat.com>
1063 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1064 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1066 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1068 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1069 The typo broke "make TAGS".
1071 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1075 2012-08-17 Keith Seitz <keiths@redhat.com>
1078 * gdbtypes.c (strict_type_checking): New variable.
1079 (show_strict_type_checking): New function.
1080 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1081 if strict type checking is disabled.
1082 (_initialize_gdbtypes): Add "check type" subcommand.
1083 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1085 2012-08-17 Keith Seitz <keiths@redhat.com>
1087 * language.h (type_mode): Remove.
1088 (type_check): Remove.
1089 (struct language_defn): Remove la_type_check.
1090 (STRICT_TYPE): Remove unused macro.
1091 (type_error): Remove.
1092 * language.c (set_type_range_case): Renamed to ...
1093 (set_range_case): ... this. Update all callers.
1094 Remove type_mode/type_check.
1095 (type_mode): Remove.
1096 (type_check): Remove.
1097 (show_type_command): Remove.
1098 (set_type_command): Remove.
1099 (language_info): Remove type checking output.
1100 (type_error): Remove unused function.
1101 (range_error): Update comment.
1102 (unknown_language_defn): Remove la_type_check.
1103 (auto_language_defn): Likewise.
1104 (local_language_defn): Likewise.
1105 (_initialize_language): Remove "check type" subcommand.
1106 * ada-lang.c (ada_language_defn): Remove la_type_check.
1107 * c-lang.c (c_language_defn): Likewise.
1108 (cplus_language_defn): Likewise.
1109 (asm_language_defn): Likewise.
1110 (minimal_language_defn): Likewise.
1111 * d-lang.c (d_language_defn): Likewise.
1112 * f-lang.c (f_language_defn): Likewise.
1113 * go-lang.c (go_language_defn): Likewise.
1114 * jv-lang.c (java_language_defn): Likewise.
1115 * m2-lang.c (m2_language_defn): Likewise.
1116 * objc-lang.c (objc_language_defn): Likewise.
1117 * opencl-lang.c (opencl_language_defn): Likewise.
1118 * p-lang.c (pascal_language_defn): Likewise.
1120 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1122 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1124 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1126 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1128 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1129 using the regache. Use ia64_hpux_get_register_from_save_state_t
1130 to access the bsp and bspstore registers if not.
1132 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1134 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1135 * breakpoint.c (detach_breakpoints): Change pid parameter into
1136 a ptid. Adjust code accordingly.
1137 * infrun.c (handle_inferior_event): Delete variable child_pid.
1138 Update call to detach_breakpoints to pass the child ptid for
1140 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1141 assert that inferior_ptid's lwp is zero.
1142 (linux_handle_extended_wait): Update call to detach_breakpoints.
1143 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1146 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1148 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1149 parent, only call detach_breakpoints if tts.tts_event ==
1152 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1154 * dwarf2-frame.c (dwarf2_frame_cache): Use
1155 get_frame_address_in_block instead of get_frame_pc as
1156 the bound for executing the frame's FDE.
1158 2012-08-16 Yao Qi <yao@codesourcery.com>
1160 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1161 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1162 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1163 (c_type_print_varspec_suffix): Likewise.
1164 * eval.c (evaluate_subexp_standard): Likewise.
1165 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1166 (f_type_print_varspec_suffix): Likewise.
1167 * gdbtypes.c (is_scalar_type): Likewise.
1168 (recursive_dump_type): Likewise.
1169 * infcall.c (value_arg_coerce): Likewise.
1170 * m2-valprint.c (m2_val_print): Likewise.
1171 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1172 (pascal_type_print_varspec_suffix): Likewise.
1173 (pascal_type_print_base): Likewise.
1174 * p-valprint.c (pascal_val_print): Likewise.
1175 (pascal_val_print): Likewise.
1176 * valops.c (value_slice): Likewise.
1177 * valprint.c (scalar_type_p): Likewise.
1178 * valarith.c (value_bitstring_subscript): Remove.
1179 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1180 Remove comment on TYPE_CODE_BITSTRING.
1182 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1183 TYPE_CODE_BITSTRING.
1185 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1188 2012-08-16 Yao Qi <yao@codesourcery.com>
1190 * tracepoint.c (trace_find_none_command): Remove.
1191 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1193 2012-08-16 Yao Qi <yao@codesourcery.com>
1195 * remote.c (handle_notification): Remove parameter 'length'.
1196 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1198 2012-08-15 Keith Seitz <keiths@redhat.com>
1200 * gdbtypes.c (opaque_type_resolution): Make static.
1201 Add missing comment.
1202 (overload_debug): Add missing comment.
1203 (show_opaque_type_resolution): Likewise.
1204 (show_overload_debug): Likewise.
1205 (print_bit_vector): Remove unnecessary forward declaration.
1206 (print_arg_types): Likewise.
1207 (dump_fn_fieldlists): Likewise.
1208 (print_cplus_stuff): Likewise.
1210 2012-08-15 Tom Tromey <tromey@redhat.com>
1212 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1213 (gdb_bfd_ref): Initialize new field.
1214 (gdb_bfd_unref): Unref the archive BFD.
1215 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1218 2012-08-15 Tom Tromey <tromey@redhat.com>
1221 * python/py-bpevent.c (create_breakpoint_event_object): Update
1223 * python/py-event.c (evpy_add_attribute): Update comment.
1224 * python/py-exitedevent.c (create_exited_event_object): Fix
1225 reference counting and error handling.
1226 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1227 Fix reference counting.
1228 * python/py-signalevent.c (create_signal_event_object): Fix
1229 reference counting and error handling.
1230 * python/py-stopevent.c (emit_stop_event): Fix reference
1232 * python/py-threadevent.c (get_event_thread): Return a
1234 * python/py-type.c (convert_field): Fix reference counting.
1236 2012-08-15 Tom Tromey <tromey@redhat.com>
1238 * dwarf2read.c (dwarf_decode_macro_bytes)
1239 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1242 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1244 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1245 stepi, nexti, finish, next, step, jump, and continue commands.
1246 * infrun.c (_initialize_infrun): Update help text for the handle
1249 2012-08-14 Doug Evans <dje@google.com>
1251 * gdbtypes.c (struct extra): Delete, unused.
1253 * gdbtypes.c: Whitespace cleanup.
1254 (address_space_name_to_int): Remove "extern" from definition.
1255 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1257 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1258 TYPE_POINTER_TYPE (type).
1260 2012-08-14 Gary Benson <gbenson@redhat.com>
1262 * solib-svr4.c (svr4_free_library_list): Use free_so.
1264 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1266 * .gitignore: Add go-exp.c.
1268 2012-08-13 Doug Evans <dje@google.com>
1270 * value.c (show_convenience): Tweak comment.
1271 (_initialize_values): Mention convenience functions in the help text
1272 for "show convenience".
1274 2012-08-13 Yao Qi <yao@codesourcery.com>
1276 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1277 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1279 * eval.c (evaluate_subexp_standard): Likewise.
1280 * expprint.c (print_subexp_standard): Likewise.
1281 (dump_subexp_body_standard): Likewise.
1282 * parse.c (operator_length_standard): Likewise.
1284 2012-08-13 Yao Qi <yao@codesourcery.com>
1286 * std-operator.def: Remove OP_BITSTRING.
1287 * breakpoint.c (watchpoint_exp_is_const): Update.
1288 * eval.c (evaluate_subexp_standard): Remove handling to
1290 * expprint.c (print_subexp_standard): Likewise.
1291 (dump_subexp_body_standard): Likewise.
1292 * parse.c (operator_length_standard): Likewise.
1293 * valops.c (value_bitstring): Remove.
1294 * value.h: Remove the declaration of 'value_bitstring'.
1296 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1298 * linespec.c (find_methods): Remove unused variables `i1' and
1300 (decode_line_full): Likewise for `arg_start'.
1302 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1304 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1305 (zlib_decompress_section): Likewise for `section_data'.
1306 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1308 2012-08-10 Doug Evans <dje@google.com>
1310 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1311 * NEWS: Document them.
1312 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1314 * python/py-type.c (typy_array_1): New function.
1315 (typy_array): Call it.
1316 (typy_vector): New function.
1317 (type_object_methods): Add "vector".
1318 * python/lib/gdb/function/__init__.py: New file.
1319 * python/lib/gdb/function/strfns.py: New file.
1321 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1323 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1324 for TYPE_FIELD_BITPOS.
1325 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1327 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1330 * common/vec.h (VEC_merge): Define.
1331 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1332 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1333 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1334 * completer.c: Include gdb_signals.h.
1335 (signal_completer): Define.
1336 * completer.h (signal_completer): Add prototype.
1337 * infcmd.c (_initialize_infcmd): Assign the command
1338 completer for "signal" to handle_completer.
1339 * infrun.c: Include completer.h.
1340 (handle_completer): Define.
1341 (_initialize_infrun): Declare a new local variable c. Store the
1342 result of add_com("handle") to it. Assign the command
1343 completer for "handle" to handle_completer.
1345 2012-08-09 Yao Qi <yao@codesourcery.com>
1347 * cli/cli-decode.c (set_cmd_prefix): New.
1348 (lookup_cmd_for_prefixlist): New.
1349 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1350 of each cmd_list_element in *prefixlist.
1351 (add_setshow_cmd_full): set_cmd_prefix.
1352 (add_alias_cmd): Likewise.
1353 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1354 Declare 'auto_boolean_enums'.
1355 * cli/cli-setshow.c: Include "observer.h".
1356 (notify_command_param_changed_p): New.
1357 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1359 (do_setshow_command): Split it to ...
1360 (do_set_command, do_show_command): ... them. New.
1361 (do_set_command): Call observer_notify_command_param_changed if
1362 notify_command_param_changed_p returns true.
1363 (cmd_show_list): Caller update.
1364 * auto-load.c (set_auto_load_cmd): Likewise.
1365 * remote.c (show_remote_cmd): Likewise.
1366 * cli/cli-setshow.h: Update declarations.
1367 * top.c (execute_command): Call do_set_command and do_show_command.
1369 * NEWS: Mention new MI notification.
1370 * mi/mi-interp.c: Declare mi_command_param_changed.
1371 (mi_interpreter_init): Attach mi_command_param_changed to
1372 observer command_param_changed.
1373 (mi_command_param_changed): New.
1374 Remove mi_suppress_breakpoint_notifications.
1375 Define global variable mi_suppress_notification.
1376 (mi_breakpoint_created): Update.
1377 (mi_breakpoint_deleted): Likewise.
1378 (mi_breakpoint_modified): Likewise.
1379 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1380 'gdb-set' and set mi_suppress_notification.
1381 * mi/mi-main.h: (mi_suppress_notification): New struct.
1383 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1384 Jan Kratochvil <jan.kratochvil@redhat.com>
1386 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1388 2012-08-09 Yao Qi <yao@codesourcery.com>
1390 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1391 (skiplist): Move it to skip.c.
1392 (init_cmd_lists): Remove code setting enablebreaklist and
1394 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1395 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1397 * gdbcmd.h: Likewise.
1398 * skip.c (_initialize_step_skip): Move 'skiplist' from
1401 2012-08-09 Yao Qi <yao@codesourcery.com>
1403 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1404 * gnu-nat.c, symfile.c: Likewise.
1406 2012-08-08 Aaron Gamble <agamble@google.com>
1408 * utils.c (prompt_for_continue_wait_time): New static global.
1409 (make_command_stats_cleanup): Initialize it.
1410 (report_command_stats): Subtract time waiting for user.
1411 (prompt_for_continue): Track time waiting for user.
1412 (defaulted_query): Track time waiting for user.
1414 2012-08-08 Doug Evans <dje@google.com>
1416 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1418 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1419 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1420 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1421 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1422 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1423 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1425 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1426 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1427 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1428 (dump_prefix_expression): Handle OP_TYPE.
1430 2012-08-08 Keith Seitz <keiths@redhat.com>
1432 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1435 2012-08-08 Doug Evans <dje@google.com>
1437 * linux-thread-db.c: #include "gdb_vecs.h".
1438 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1440 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1441 (thread_db_load_search): Use a vector to iterate over path elements.
1442 Handle text appearing after "$pdir".
1444 * gdb_string.h: Moved to ...
1445 * common/gdb_string.h: ... here.
1446 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1447 gdb_string.h and gdb_assert.h.
1449 2012-08-08 Yao Qi <yao@codesourcery.com>
1451 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1452 (tic6x_value_to_register): Likewise.
1453 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1454 and set_gdbarch_value_to_register.
1456 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1457 Jean-Marc Saffroy <saffroy@gmail.com>
1460 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1461 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1462 * gcore.c (gcore_create_callback): New function comment. Add modified
1463 parameter. Only write modified regions. Set SEC_READONLY exactly
1464 according to MODIFIED.
1465 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1466 the passed modified value to FUNC.
1467 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1468 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1469 first. New variables modified and has_anonymous. Parse the lines of
1470 smaps file. Add the passed MODIFIED value to FUNC.
1471 * procfs.c (find_memory_regions_callback): Add the passed modified
1474 2012-08-06 Tom Tromey <tromey@redhat.com>
1476 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1477 (dwarf2_frame_cache): Use it.
1478 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1479 cache initialization constraint.
1481 2012-08-06 Tom Tromey <tromey@redhat.com>
1484 * varobj.c (update_dynamic_varobj_children): Don't call
1487 2012-08-06 Tom Tromey <tromey@redhat.com>
1490 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1492 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1494 * NEWS: New entry for 'cd' default parameters.
1495 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1497 2012-08-03 Tom Tromey <tromey@redhat.com>
1499 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1502 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1504 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1505 to attempting lseek/write.
1506 (inf_child_fileio_pread): Likewise for pread.
1508 2012-08-02 Yao Qi <yao@codesourcery.com>
1510 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1511 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1512 add_setshow_zinteger_cmd.
1513 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1514 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1515 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1516 instead of add_setshow_zinteger_cmd.
1517 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1518 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1519 instead of add_setshow_zinteger_cmd.
1520 * frame.c (frame_debug): Add 'unsigned'.
1521 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1522 add_setshow_zinteger_cmd.
1523 * frame.h: Update the declaration of 'frame_debug'.
1524 * gdbtypes.c (overload_debug): Add 'unsigned'.
1525 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1526 add_setshow_zinteger_cmd.
1527 * inferior.h: Update declaration of 'debug_infrun'.
1528 * infrun.c (debug_infrun): Add 'unsigned'.
1529 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1530 add_setshow_zinteger_cmd.
1531 * jit.c (jit_debug): Add 'unsigned'.
1532 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1533 add_setshow_zinteger_cmd.
1534 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1535 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1536 instead of add_setshow_zinteger_cmd.
1537 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1538 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1539 add_setshow_zinteger_cmd.
1540 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1541 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1542 instead of add_setshow_zinteger_cmd.
1543 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1544 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1545 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1546 intead of add_setshow_zinteger_cmd.
1547 * mips-tdep.c (mips_debug): Add 'unsigned'.
1548 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1549 instead of add_setshow_zinteger_cmd.
1550 * monitor.c (monitor_debug): Add 'unsigned'.
1551 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1552 add_setshow_zinteger_cmd.
1553 * observer.c (observer_debug): Add 'unsigned'.
1554 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1555 add_setshow_zinteger_cmd.
1556 * parse.c (expressiondebug): Add 'unsigned'.
1557 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1558 add_setshow_zinteger_cmd.
1559 * record.c (record_debug): Add 'unsigned'.
1560 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1561 add_setshow_zinteger_cmd.
1562 * record.h: Update the declaration of 'record_debug'.
1563 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1564 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1565 add_setshow_zinteger_cmd.
1566 * serial.c (global_serial_debug_p): Add 'unsigned'.
1567 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1568 add_setshow_zinteger_cmd.
1569 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1570 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1571 add_setshow_zinteger_cmd.
1572 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1573 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1574 add_setshow_zinteger_cmd.
1575 * target.c (targetdebug): Add 'unsigned'.
1576 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1577 add_setshow_zinteger_cmd.
1578 * valops.c (overload_debug): Add 'unsigned'.
1579 * varobj.c (varobjdebug): Add 'unsigned'.
1580 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1581 add_setshow_zinteger_cmd.
1582 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1583 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1584 instead of add_setshow_zinteger_cmd.
1586 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1587 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1588 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1589 instead of add_setshow_zinteger_cmd.
1590 * gdbarch.c, gdbarch.h: Re-generated.
1592 2012-08-02 Yao Qi <yao@codesourcery.com>
1594 * nto-tdep.c: Don't include cli/cli-decode.h and
1596 (_initialize_nto_tdep): Remove.
1597 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1599 Remove macro nto_internal_debugging.
1601 2012-08-01 Richard Henderson <rth@redhat.com>
1603 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1604 (mep-*-*) [gdb_target_obs]: Likewise.
1606 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1608 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1609 linux_get_siginfo_type.
1611 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1613 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1615 (call_function_by_hand) <ON_STACK>: Call write_memory with
1616 gdbarch_breakpoint_from_pc, if possible.
1617 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1620 2012-07-31 Yao Qi <yao@codesourcery.com>
1622 * tracepoint.c: Add 'static' for some variables.
1624 2012-07-31 Yao Qi <yao@codesourcery.com>
1626 * go32-nat.c: Declare _initialize_go32_nat.
1627 * ser-go32.c: Declare _initialize_ser_dos.
1628 * top.c (do_chdir_cleanup): Add 'static'.
1630 2012-07-30 Keith Seitz <keiths@redhat.com>
1632 * linespec.c (linespec_lex_number): A number followed
1633 by quotes is a valid number, too.
1635 2012-07-30 Tom Tromey <tromey@redhat.com>
1637 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1639 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1641 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1642 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1644 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1646 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1647 invalid or reevaluated to prevent prevent references to possibly
1648 delete'd type objects being left in the varobj.
1650 2012-07-27 Tom Tromey <tromey@redhat.com>
1651 Jan Kratochvil <jan.kratochvil@redhat.com>
1653 * copying.awk: Print buffer-read-only and vi ro markers.
1654 * copying.c: Rebuild.
1655 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1656 * gdbarch.c, gdbarch.h: Rebuild.
1657 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1658 buffer-read-only and vi ro markers.
1659 * features/arm-with-iwmmxt.c: Rebuild.
1660 * features/arm-with-m-fpa-layout.c: Rebuild.
1661 * features/arm-with-m-vfp-d16.c: Rebuild.
1662 * features/arm-with-m.c: Rebuild.
1663 * features/arm-with-neon.c: Rebuild.
1664 * features/arm-with-vfpv2.c: Rebuild.
1665 * features/arm-with-vfpv3.c: Rebuild.
1666 * features/i386/amd64-avx-linux.c: Rebuild.
1667 * features/i386/amd64-avx.c: Rebuild.
1668 * features/i386/amd64-linux.c: Rebuild.
1669 * features/i386/amd64.c: Rebuild.
1670 * features/i386/i386-avx-linux.c: Rebuild.
1671 * features/i386/i386-avx.c: Rebuild.
1672 * features/i386/i386-linux.c: Rebuild.
1673 * features/i386/i386-mmx-linux.c: Rebuild.
1674 * features/i386/i386-mmx.c: Rebuild.
1675 * features/i386/i386.c: Rebuild.
1676 * features/i386/x32-avx-linux.c: Rebuild.
1677 * features/i386/x32-avx.c: Rebuild.
1678 * features/i386/x32-linux.c: Rebuild.
1679 * features/i386/x32.c: Rebuild.
1680 * features/mips-dsp-linux.c: Rebuild.
1681 * features/mips-linux.c: Rebuild.
1682 * features/mips64-dsp-linux.c: Rebuild.
1683 * features/mips64-linux.c: Rebuild.
1684 * features/rs6000/powerpc-32.c: Rebuild.
1685 * features/rs6000/powerpc-32l.c: Rebuild.
1686 * features/rs6000/powerpc-403.c: Rebuild.
1687 * features/rs6000/powerpc-403gc.c: Rebuild.
1688 * features/rs6000/powerpc-405.c: Rebuild.
1689 * features/rs6000/powerpc-505.c: Rebuild.
1690 * features/rs6000/powerpc-601.c: Rebuild.
1691 * features/rs6000/powerpc-602.c: Rebuild.
1692 * features/rs6000/powerpc-603.c: Rebuild.
1693 * features/rs6000/powerpc-604.c: Rebuild.
1694 * features/rs6000/powerpc-64.c: Rebuild.
1695 * features/rs6000/powerpc-64l.c: Rebuild.
1696 * features/rs6000/powerpc-7400.c: Rebuild.
1697 * features/rs6000/powerpc-750.c: Rebuild.
1698 * features/rs6000/powerpc-860.c: Rebuild.
1699 * features/rs6000/powerpc-altivec32.c: Rebuild.
1700 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1701 * features/rs6000/powerpc-altivec64.c: Rebuild.
1702 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1703 * features/rs6000/powerpc-cell32l.c: Rebuild.
1704 * features/rs6000/powerpc-cell64l.c: Rebuild.
1705 * features/rs6000/powerpc-e500.c: Rebuild.
1706 * features/rs6000/powerpc-e500l.c: Rebuild.
1707 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1708 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1709 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1710 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1711 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1712 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1713 * features/rs6000/powerpc-vsx32.c: Rebuild.
1714 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1715 * features/rs6000/powerpc-vsx64.c: Rebuild.
1716 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1717 * features/rs6000/rs6000.c: Rebuild.
1718 * features/s390-linux32.c: Rebuild.
1719 * features/s390-linux32v1.c: Rebuild.
1720 * features/s390-linux32v2.c: Rebuild.
1721 * features/s390-linux64.c: Rebuild.
1722 * features/s390-linux64v1.c: Rebuild.
1723 * features/s390-linux64v2.c: Rebuild.
1724 * features/s390x-linux64.c: Rebuild.
1725 * features/s390x-linux64v1.c: Rebuild.
1726 * features/s390x-linux64v2.c: Rebuild.
1727 * features/tic6x-c62x-linux.c: Rebuild.
1728 * features/tic6x-c62x.c: Rebuild.
1729 * features/tic6x-c64x-linux.c: Rebuild.
1730 * features/tic6x-c64x.c: Rebuild.
1731 * features/tic6x-c64xp-linux.c: Rebuild.
1732 * features/tic6x-c64xp.c: Rebuild.
1734 2012-07-27 Tom Tromey <tromey@redhat.com>
1736 * c-exp.y (classify_name): Avoid assignment in condition.
1738 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1740 * amd64-windows-tdep.c: Include "frame.h".
1741 (amd64_windows_skip_trampoline_code): New function.
1742 (amd64_windows_init_abi): Add trampoline registration.
1744 2012-07-27 Yao Qi <yao@codesourcery.com>
1746 * tracepoint.c (cur_traceframe_number): Remove.
1747 (set_tfile_traceframe): Remove.
1748 (tfile_trace_find, tfile_fetch_registers): Update callers.
1749 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1750 (tfile_open, tfile_trace_find): Likewise.
1752 2012-07-27 Yao Qi <yao@codesourcery.com>
1754 * thread.c (switch_to_thread): Don't call registers_changed.
1756 2012-07-26 Tom Tromey <tromey@redhat.com>
1758 * Makefile.in (SFILES): Remove objc-exp.y.
1759 (YYFILES): Remove objc-exp.c.
1760 (YYOBJ): Remove objc-exp.o.
1761 (local-maintainer-clean): Don't mention objc-exp.c.
1762 * c-exp.y: Include objc-lang.h.
1763 (%union) <class>: New field.
1764 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1765 (exp): Clone subscript production for OBJC_LBRAC. Add various
1766 Objective C productions.
1767 (msglist, msgarglist, msgarg): New productions.
1768 (array_mod, func_mod, operator): Clone productions for
1770 (parse_string_or_char): Handle '@' strings.
1771 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1772 (classify_name): Check la_name_of_this. Recognize ObjC class
1774 * objc-exp.y: Remove.
1775 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1776 * objc-lang.h (objc_parse, objc_error): Don't declare.
1778 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1780 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1782 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1784 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1787 2012-07-26 Tom Tromey <tromey@redhat.com>
1789 * copying.c: Rebuild.
1790 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1793 2012-07-26 Tom Tromey <tromey@redhat.com>
1795 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1797 (print_objfile_statistics): Likewise.
1798 (maintenance_print_symbols): Likewise.
1799 (maintenance_print_msymbols): Likewise.
1800 (maintenance_print_objfiles): Likewise.
1801 * psymtab.c (print_partial_symbols): Call QUIT.
1802 (maintenance_print_psymbols): Likewise. Don't modify
1804 * copying.c (show_copying_command): Don't modify immediate_quit.
1805 (show_warranty_command): Likewise.
1806 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1808 2012-07-26 Keith Seitz <keiths@redhat.com>
1810 * linespec.c (linespec_lexer_lex_number): The input
1811 is also a valid number if the next character is a comma
1814 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1816 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1819 2012-07-26 Tristan Gingold <gingold@adacore.com>
1821 * machoread.c: Include gdb_bfd.h.
1823 2012-07-26 Tristan Gingold <gingold@adacore.com>
1825 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1828 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1832 (dwarf2_evaluate_loc_desc): Likewise.
1833 (dwarf2_loc_desc_needs_frame): Likewise.
1834 (locexpr_describe_location_1): Likewise.
1835 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1837 (struct dwarf2_loclist_baton): Likewise.
1838 * dwarf2read.c (struct dwarf_block): Likewise.
1839 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1840 (decode_locdesc): Expand SIZE and I to size_t.
1842 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1844 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1846 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1848 * doublest.c (convert_doublest_to_floatformat): If the exponent
1849 is too small, treat the value as zero. If the exponent is too
1850 large, treat the value as infinity.
1852 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1854 * configure.ac: Add --enable-lmcheck configure option.
1855 * configure: Regenerate.
1857 2012-07-25 Tom Tromey <tromey@redhat.com>
1859 * NEWS: Mention maint info bfds.
1860 * gdb_bfd.c (all_bfds): New global.
1861 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1862 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1865 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1867 * configure.tgt: Add v850*-*-rtems*.
1869 2012-07-25 Tom Tromey <tromey@redhat.com>
1871 * macrotab.c (macro_bcache_str): Remove cast.
1873 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1875 * linespec.c (linespec_lexer_lex_number): Update comments,
1876 change the return and add check to make sure the input is
1877 the decimal numbers.
1878 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1879 false, call linespec_lexer_lex_string.
1881 2012-07-24 Tom Tromey <tromey@redhat.com>
1883 * symfile.c (symbol_file_add): Don't open BFD twice.
1885 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1887 * breakpoint.c (create_breakpoint): Store condition for pending
1890 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1892 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1893 (m68k_return_value): Handle complex types like structures.
1894 (m68k_svr4_return_value): Likewise.
1896 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1898 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1899 parameters to bfd_get_section_name.
1901 2012-07-24 Yao Qi <yao@codesourcery.com>
1903 * cli/cli-setshow.c: Handle case 'var_uinteger'
1904 and 'var_zuninteger' together. Handle case 'var_integer' and
1905 'var_zinteger' together.
1907 2012-07-23 Keith Seitz <keiths@redhat.com>
1909 * linespec.c (convert_linespec_to_sal): Don't add
1910 any symbols to the result vector if symbol_to_sal
1913 2012-07-23 Keith Seitz <keiths@redhat.com>
1915 * linespec.c (decode_objc): Record the function name
1918 2012-07-23 Tom Tromey <tromey@redhat.com>
1920 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1922 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1923 (map_vmap): Acquire a reference to the BFD.
1925 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1927 * p-valprint.c (pascal_object_print_value): Replace potentially
1928 unsafe alloca with xmalloc/xfree.
1929 * valops.c (search_struct_method): Likewise.
1931 2012-07-23 Tom Tromey <tromey@redhat.com>
1933 * solib-svr4.c (enable_break): Update.
1934 * bfd-target.h (target_bfd_reopen): Update documentation.
1936 2012-07-23 Tom Tromey <tromey@redhat.com>
1938 * symfile.c (separate_debug_file_exists): Update.
1939 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1940 (reread_symbols): Update.
1941 * elfread.c (build_id_verify): Update.
1942 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1943 bfd_open_maybe_remote.
1945 2012-07-23 Tom Tromey <tromey@redhat.com>
1947 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1949 2012-07-23 Tom Tromey <tromey@redhat.com>
1951 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1953 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1955 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1956 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1958 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1959 * objfiles.c (allocate_objfile): Acquire a new reference.
1960 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1961 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1962 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1963 a cleanup for 'nbfd'.
1964 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1966 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1967 make a cleanup for 'abfd'.
1968 (symbol_file_add): Make a BFD cleanup.
1970 2012-07-23 Tom Tromey <tromey@redhat.com>
1972 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1973 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1974 * corelow.c (core_open): Use gdb_bfd_fopen.
1975 * dsrec.c (load_srec): Use gdb_bfd_openr.
1976 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1977 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1978 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1979 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1980 (gdb_bfd_fdopenr): New functions.
1981 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1982 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1983 (gdb_bfd_fdopenr): Declare.
1984 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1985 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1986 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1987 gdb_bfd_openr_next_archived_file.
1988 (macho_check_dsym): Use gdb_bfd_openr.
1989 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1990 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1991 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1992 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1994 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1995 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1996 gdb_bfd_openr_next_archived_file.
1997 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1999 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2001 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2002 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2003 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2004 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2005 (symfile_bfd_open): Use gdb_bfd_fopen.
2006 (generic_load): Use gdb_bfd_openr.
2007 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2009 2012-07-23 Tom Tromey <tromey@redhat.com>
2011 * bfd-target.c (target_bfd_reopen): Update.
2012 * cli/cli-dump.c (bfd_openr_with_cleanup)
2013 (bfd_openw_with_cleanup): Update.
2014 * corelow.c (core_open): Update.
2015 * dsrec.c (load_srec): Update.
2016 * exec.c (exec_file_attach): Update.
2017 * gcore.c (create_gcore_bfd): Update.
2018 * gdb_bfd.c (gdb_bfd_ref): Return void.
2019 (gdb_bfd_open): Update.
2020 * gdb_bfd.h (gdb_bfd_ref): Return void.
2022 * jit.c (jit_bfd_try_read_symtab): Update.
2023 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2024 * machoread.c (macho_symfile_read_all_oso): Update.
2025 (macho_check_dsym): Update.
2026 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2027 * remote-m32r-sdi.c (m32r_load): Update.
2028 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2029 * rs6000-nat.c (add_vmap): Update.
2030 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2032 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2033 * solib-spu.c (spu_bfd_open): Update.
2034 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2035 * spu-linux-nat.c (spu_bfd_open): Update.
2036 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2037 (generic_load): Update.
2038 * windows-nat.c (windows_make_so): Update.
2040 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2042 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2044 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2046 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2047 SIGTRAMP_FRAME unwinding.
2049 2012-07-20 Doug Evans <dje@google.com>
2051 * NEWS: Document new options "set/show use-deprecated-index-sections",
2052 and delete reference to --use-deprecated-index-sections.
2053 * symfile.h (use_deprecated_index_sections): Delete.
2054 * dwarf2read.c (use_deprecated_index_sections): Make static.
2055 (read_index_from_section): Update wording of how to load
2056 deprecated index sections.
2057 (_initialize_dwarf2_read): New options
2058 "set/show use-deprecated-index-sections".
2059 * main.c (captured_main): Delete --use-deprecated-index-sections.
2061 2012-07-20 Pedro Alves <palves@redhat.com>
2066 * infrun.c (handle_inferior_event) <new thread>: Don't special
2067 case minus_one_ptid.
2068 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2069 * linux-thread-db.c (thread_get_info_callback): Don't return early
2070 if the thread is zombie.
2071 (thread_from_lwp): Change return type to void. Rewrite stale
2073 (attach_thread): Don't return early if the thread is zombie,
2074 instead set its "dying" flag.
2075 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2076 (find_new_threads_callback): Don't return early if the thread is
2079 2012-07-20 Pedro Alves <palves@redhat.com>
2081 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2082 * target.c (target_wait): Likewise.
2083 (str_comma_list_concat_elem, do_option, target_options_to_string):
2085 * target.h (target_options_to_string): Declare.
2087 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 Tom Tromey <tromey@redhat.com>
2090 * dwarf2read.c (dwarf_decode_macros)
2091 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2092 DW_MACRO_GNU_transparent_include_alt>: New cases.
2093 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2094 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2096 2012-07-20 Tom Tromey <tromey@redhat.com>
2098 * dwarf2read.c (try_open_dwo_file): Don't call
2099 gdb_bfd_stash_filename.
2101 2012-07-20 Pedro Alves <palves@redhat.com>
2103 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2104 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2105 (i386_process_record): Tweak description comments.
2107 2012-07-20 Pedro Alves <palves@redhat.com>
2109 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2110 (i386_process_record): Use record_read_memory.
2111 * record.c (record_read_memory): New function.
2112 (record_arch_list_add_mem, record_exec_insn): Use
2114 * record.h (record_read_memory): Declare.
2116 2012-07-20 Yao Qi <yao@codesourcery.com>
2118 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2121 2012-07-19 Pedro Alves <palves@redhat.com>
2123 * record.c (record_resume): Ask the target beneath to report all
2126 2012-07-19 Doug Evans <dje@google.com>
2128 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2129 there's no section at address zero.
2130 (dwarf2_record_block_ranges): Ditto.
2132 2012-07-19 Yao Qi <yao@codesourcery.com>
2134 * command.h, remote.c: Fix a typo in comment.
2136 2012-07-19 Tom Tromey <tromey@redhat.com>
2139 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2140 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2141 OP_DECLTYPE>: New cases.
2142 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2143 (type_exp): Add new productions.
2144 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2146 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2148 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2149 OP_DECLTYPE>: New case.
2150 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2152 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2153 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2155 2012-07-19 Tom Tromey <tromey@redhat.com>
2157 * c-exp.y (enum token_flags): New.
2158 (struct token) <cxx_only>: Remove.
2160 (tokentab3, tokentab2, ident_tokens): Update.
2161 (lex_one_token): Update. Handle FLAG_SHADOW.
2163 2012-07-19 Tom Tromey <tromey@redhat.com>
2165 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2166 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2167 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2168 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2169 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2170 type_exp production where appropriate.
2171 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2172 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2173 <UNOP_MEMVAL_TYPE>: New case.
2174 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2175 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2176 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2177 <UNOP_MEMVAL_TYPE>: New case.
2178 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2179 UNOP_REINTERPRET_CAST>: Update.
2180 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2181 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2182 UNOP_REINTERPRET_CAST>: Update.
2183 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2184 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2185 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2188 2012-07-19 Yao Qi <yao@codesourcery.com>
2189 Jan Kratochvil <jan.kratochvil@redhat.com>
2191 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2192 and case 'var_optional_filename' together.
2193 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2194 instead of add_setshow_optional_filename_cmd for setshow command
2195 'args'. Set completer for 'set args'.
2197 2012-07-18 Doug Evans <dje@google.com>
2199 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2200 * common/gdb_vecs.c: New file, contents from utils.c.
2201 * common/host-defs.h: New file, contents from defs.h.
2202 * utils.h: New file, contents from defs.h.
2203 * defs.h: Move all declarations of objects defined in utils.c
2204 to utils.h (except QUIT() and related).
2205 #include "utils.h", "host-defs.h".
2206 * probe.h (probe_p): Move here from gdb_vecs.h.
2207 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2208 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2209 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2210 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2211 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2212 (COMMON_OBS): Add gdb_vecs.o.
2213 (gdb_vecs.o): New rule.
2215 2012-07-18 Keith Seitz <keiths@redhat.com>
2217 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2218 parameter. If non-zero, use SYMNAME as the canonical name
2221 (convert_linespec_to_sals): Use add_sal_to_sals for
2223 (decode_line_full): No need to "fill in missing canonical names"
2224 anymore. Simply make cleanups for the allocated names.
2226 2012-07-18 Keith Seitz <keiths@redhat.com>
2228 * linespec.c (struct linespec): Constify expression,
2229 source_filename, function_name, and label_name.
2230 (symbol_not_found_error): Make all parameters const.
2231 (linespec_parser_delete): No need to check for NULL
2232 when using xfree. Cast const char * to char * for xfree.
2234 2012-07-18 Keith Seitz <keiths@redhat.com>
2236 * breakpoint.c (invalid_thread_id_error): New function.
2237 (find_condition_and_thread): Use invalid_thread_id_error.
2238 (watch_command_1): Likewise.
2240 2012-07-18 Tom Tromey <tromey@redhat.com>
2242 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2243 * contrib/cc-with-tweaks.sh: New file.
2245 2012-07-18 Tom Tromey <tromey@redhat.com>
2247 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2248 (locate_dwz_sections): Recognize .gdb_index.
2249 (create_cus_from_index_list): New function.
2250 (create_cus_from_index): Use it. Handle .dwz data.
2251 (read_index_from_section): New function, extracted from
2253 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2256 2012-07-18 Tom Tromey <tromey@redhat.com>
2258 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2259 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2260 <is_dwz>: New field.
2261 (struct dwz_file): New.
2262 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2263 (locate_dwz_sections, dwarf2_get_dwz_file)
2264 (get_abbrev_section_for_cu): New functions.
2265 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2266 (read_and_check_type_unit_head): Add abbrev_section argument.
2267 (create_debug_types_hash_table): Update.
2268 (init_cutu_and_read_dies): Use proper abbrev section.
2269 (init_cutu_and_read_dies_no_follow): Likewise.
2270 (set_partial_user): Do nothing if PST==NULL.
2271 (read_comp_units_from_section): New function.
2272 (create_all_comp_units): Use it.
2273 (scan_partial_symbols, partial_die_parent_scope): Update.
2274 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2275 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2276 (find_partial_die): Add offset_in_dwz argument. Update.
2277 (guess_partial_die_structure_name, fixup_partial_die): Update.
2278 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2279 DW_FORM_GNU_strp_alt.
2280 (read_indirect_string_from_dwz): New function.
2281 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2282 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2283 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2284 (follow_die_offset): Add offset_in_dwz argument.
2285 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2286 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2287 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2288 Handle new macro forms.
2289 (dwarf_decode_macros): Update.
2290 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2291 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2292 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2293 (create_debug_types_hash_table): Use correct abbrev section.
2294 (get_debug_line_section): New function.
2295 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2296 (process_full_comp_unit): Pass 'required' argument to
2297 end_symtab_get_static_block.
2298 * buildsym.h (end_symtab_get_static_block): Update.
2299 * buildsym.c (end_symtab_get_static_block): Add 'required'
2301 (end_symtab, end_expandable_symtab): Update.
2303 2012-07-18 Tom Tromey <tromey@redhat.com>
2305 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2307 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2308 (zlib_decompress_section): Remove.
2309 (dwarf2_read_section): Use gdb_bfd_map_section.
2310 (munmap_section_buffer): Remove.
2311 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2312 munmap_section_buffer.
2313 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2314 (struct gdb_bfd_section_data): New.
2315 (free_one_bfd_section): New function.
2316 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2317 (get_section_descriptor, zlib_decompress_section)
2318 (gdb_bfd_map_section): New functions.
2319 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2321 2012-07-18 Tom Tromey <tromey@redhat.com>
2323 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2325 2012-07-18 Tom Tromey <tromey@redhat.com>
2327 * gdb_bfd.c (struct gdb_bfd_data): New.
2328 (gdb_bfd_cache): New global.
2329 (struct gdb_bfd_cache_search): New.
2330 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2331 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2332 * gdb_bfd.h (gdb_bfd_open): Declare.
2334 2012-07-18 Tom Tromey <tromey@redhat.com>
2336 * utils.c (make_cleanup_bfd_unref): Rename from
2337 make_cleanup_bfd_close.
2338 * defs.h (make_cleanup_bfd_unref): Rename from
2339 make_cleanup_bfd_close.
2340 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2341 (bfd_openw_with_cleanup): Update.
2342 * corelow.c (core_open): Update.
2343 * dsrec.c (load_srec): Update.
2344 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2345 * remote-m32r-sdi.c (m32r_load): Update.
2346 * remote-mips.c (mips_load_srec): Update.
2347 (pmon_load_fast): Update.
2348 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2350 (darwin_bfd_open): Update.
2351 * solib.c (solib_bfd_fopen): Update.
2352 * symfile-mem.c (symbol_file_add_from_memory): Update.
2353 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2354 (symfile_bfd_open): Update.
2355 (generic_load): Update.
2357 2012-07-18 Tom Tromey <tromey@redhat.com>
2359 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2360 (pmon_load_fast): Likewise.
2361 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2362 (m32r_upload_command): Likewise.
2363 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2364 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2365 Use make_cleanup_bfd_close.
2367 2012-07-18 Tom Tromey <tromey@redhat.com>
2369 * symfile.c (symfile_bfd_open): Don't copy name. Call
2370 gdb_bfd_stash_filename.
2371 (load_command): Open the new BFD before freeing the old.
2372 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2373 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2374 Call gdb_bfd_stash_filename.
2375 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2376 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2377 gdb_bfd_stash_filename.
2378 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2379 Free found_pathname.
2380 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2381 gdb_bfd_stash_filename.
2382 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2383 * machoread.c (macho_add_oso_symfile): Call
2384 gdb_bfd_stash_filename.
2385 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2386 gdb_bfd_stash_filename.
2387 (macho_check_dsym): Don't copy filename. Call
2388 gdb_bfd_stash_filename.
2389 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2390 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2391 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2392 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2393 * exec.c (exec_close): Don't free the BFD's filename.
2394 (exec_file_attach): Don't copy the filename. Call
2395 gdb_bfd_stash_filename.
2396 * corelow.c (core_close): Don't free the BFD's filename.
2397 (core_open): Call gdb_bfd_stash_filename.
2398 * corefile.c (reopen_exec_file): Remove #if 0 code.
2399 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2401 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2403 2012-07-18 Tom Tromey <tromey@redhat.com>
2405 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2407 (free_dwo_file): Use gdb_bfd_unref.
2408 * cli/cli-dump.c: Include gdb_bfd.h.
2409 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2410 (bfd_openr_with_cleanup): Likewise.
2411 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2413 * utils.c: Include gdb_bfd.h.
2414 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2415 * symfile.c: Include gdb_bfd.h.
2416 (separate_debug_file_exists): Use gdb_bfd_unref.
2417 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2418 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2419 (generic_load): Use gdb_bfd_ref.
2420 (reread_symbols): Use gdb_bfd_unref.
2421 * symfile-mem.c: Include gdb_bfd.h.
2422 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2423 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2424 * solib.c: Include gdb_bfd.h.
2425 (solib_bfd_fopen): Use gdb_bfd_ref.
2426 (solib_bfd_open): Use gdb_bfd_unref.
2427 (free_so_symbols): Use gdb_bfd_unref.
2428 (reload_shared_libraries_1): Use gdb_bfd_unref.
2429 * solib-spu.c: Include gdb_bfd.h.
2430 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2431 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2433 * solib-frv.c: Include gdb_bfd.h.
2434 (enable_break2): Use gdb_bfd_unref.
2435 * solib-dsbt.c: Include gdb_bfd.h.
2436 (enable_break2): Use gdb_bfd_unref.
2437 * solib-darwin.c: Include gdb_bfd.h.
2438 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2440 (darwin_bfd_open): Use gdb_bfd_unref.
2441 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2442 * remote-mips.c: Include gdb_bfd.h.
2443 (mips_load_srec): Use gdb_bfd_ref.
2444 (pmon_load_fast): Use gdb_bfd_ref.
2445 * remote-m32r-sdi.c: Include gdb_bfd.h.
2446 (m32r_load): Use gdb_bfd_ref.
2447 * record.c: Include gdb_bfd.h.
2448 (record_save_cleanups): Use gdb_bfd_unref.
2449 (cmd_record_save): Use gdb_bfd_unref.
2450 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2452 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2453 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2454 * objfiles.c: Include gdb_bfd.h.
2455 (free_objfile): Use gdb_bfd_unref.
2456 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2458 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2459 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2460 (macho_check_dsym): Likewise.
2461 * m32r-rom.c: Include gdb_bfd.h.
2462 (m32r_load): Use gdb_bfd_ref.
2463 (m32r_upload_command): Use gdb_bfd_ref.
2464 * jit.c: Include gdb_bfd.h.
2465 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2466 * gdb_bfd.h: New file.
2467 * gdb_bfd.c: New file.
2468 * gcore.c: Include gdb_bfd.h.
2469 (create_gcore_bfd): Use gdb_bfd_ref.
2470 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2471 (gcore_command): Use gdb_bfd_unref.
2472 * exec.c: Include gdb_bfd.h.
2473 (exec_close): Use gdb_bfd_unref.
2474 (exec_close_1): Use gdb_bfd_unref.
2475 (exec_file_attach): Use gdb_bfd_ref.
2476 * elfread.c: Include gdb_bfd.h.
2477 (build_id_verify): Use gdb_bfd_unref.
2478 * dsrec.c: Include gdb_bfd.h.
2479 (load_srec): Use gdb_bfd_ref.
2480 * corelow.c: Include gdb_bfd.h.
2481 (core_close): Use gdb_bfd_unref.
2482 (core_open): Use gdb_bfd_ref.
2483 * bfd-target.c: Include gdb_bfd.h.
2484 (target_bfd_xclose): Use gdb_bfd_unref.
2485 (target_bfd_reopen): Use gdb_bfd_ref.
2486 * Makefile.in (SFILES): Add gdb_bfd.c.
2487 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2488 (COMMON_OBS): Add gdb_bfd.o.
2490 2012-07-18 Keith Seitz <keiths@redhat.com>
2492 * breakpoint.c (find_condition_and_thread): Initialize
2494 (create_breakpiont): find_condition_and_thread will now
2495 initialize COND_STRING, THREAD, and REST (and TASK).
2496 (addr_string_to_sals): Likewise.
2498 2012-07-18 Pedro Alves <palves@redhat.com>
2500 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2501 Pull the single step breakpoints out of the target.
2503 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2505 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2506 * stap-probe.c (compile_probe_arg): Likewise.
2508 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2510 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2511 (elf_compile_to_ax): Likewise.
2512 * infrun.c (insert_exception_resume_from_probe): Likewise.
2513 (check_exception_resume): Remove `objfile' variable.
2514 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2515 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2516 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2517 (compare_entries): Rename to...
2518 (compare_probes): ...this. Adjust function to work with
2519 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2521 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2523 (print_ui_out_info): Adjust argument to be `struct probe *'.
2524 (info_probes_for_ops): Adjust internal computations to use
2526 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2527 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2528 gen_info_probes_table_values>: Remove `objfile' argument.
2529 (struct probe) <objfile>: New field.
2530 (find_probe_by_pc): Remove `objfile' argument.
2531 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2532 (stap_get_probe_argument_count): Likewise.
2533 (stap_get_arg): Likewise.
2534 (stap_evaluate_probe_argument): Likewise.
2535 (stap_compile_to_ax): Likewise.
2536 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2537 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2538 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2539 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2540 sym_compile_to_ax>: Likewise.
2542 2012-07-18 Terry Guo <terry.guo@arm.com>
2545 * defs.h (GDB_MI_MSG_WIDTH): New.
2546 * ser_base (ser_base_read_error_fd): New function.
2547 (do_ser_base_readchar): Poll error file descriptor as well as
2549 (generic_readchar): Refactor error handling.
2551 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2553 * NEWS: Create a new section for the next release branch.
2554 Rename the section of the current branch, now that it has
2557 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2559 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2560 * version.in: Bump version to 7.5.50.20120718-cvs.
2562 2012-07-17 Keith Seitz <keiths@redhat.com>
2564 * linespec.c (linespec_parse_line_offset): Make parameter
2567 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2570 * f-valprint.c (info_common_command): New variable frame_id.
2571 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2572 * printcmd.c (print_variable_and_value): Extend function comment.
2573 Add comment for invalidated FRAME.
2574 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2575 FI form FRAME_ID after each print_frame_local_vars.
2576 (struct print_variable_and_value_data): Change frame to frame_id.
2577 (do_print_variable_and_value): New variable frame, initialize it from
2578 p->frame_id. Add comment for invalidated FRAME.
2579 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2580 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2581 for invalidated FRAME.
2583 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2584 Pedro Alves <palves@redhat.com>
2586 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2589 2012-07-16 Tom Tromey <tromey@redhat.com>
2591 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2593 2012-07-15 Doug Evans <dje@google.com>
2595 * dwarf2read.c (stmt_list_hash): New struct.
2596 (type_unit_group): Embed "per_cu" member, remove pointer.
2597 New union member "t", move member "tus" into it, all uses updated.
2598 New member "hash", replaces member "line_offset, all uses updated.
2599 (quick_file_names): Replace member "offset" with "hash", all uses
2601 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2602 (hash_file_name_entry, eq_file_name_entry): Call them.
2603 (hash_type_unit_group, eq_type_unit_group): Ditto.
2604 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2605 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2606 (dw2_get_file_names): Update.
2607 (create_type_unit_group): Replace "per_cu" arg with "cu".
2608 All callers updated. Fix "quick" (.gdb_index) handling.
2609 (get_type_unit_group): Replace "per_cu" arg with "cu".
2610 All callers updated.
2611 (build_type_unit_groups): Don't reset tu_stats.
2613 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2614 "tab_cur_size". Change member "tab" to be a htab_t.
2615 (create_filename_seen_cache): Update.
2616 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2617 (filename_seen): Update.
2619 2012-07-13 Doug Evans <dje@google.com>
2621 * symtab.c (filename_seen): Update comment.
2623 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2624 Doug Evans <dje@google.com>
2626 * buildsym.c (end_symtab_1): Split it to ...
2627 (end_symtab_get_static_block): ... this ...
2628 (end_symtab_from_static_block): ... and this function.
2629 (end_symtab, end_expandable_symtab): Call them.
2630 * buildsym.h (end_symtab_get_static_block)
2631 (end_symtab_from_static_block): New declarations.
2632 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2633 Set its valid CU ranges.
2635 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2638 DW_OP_GNU_parameter_ref.
2640 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2642 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2643 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2645 2012-07-13 Doug Evans <dje@google.com>
2647 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2648 (filename_seen_cache): New struct.
2649 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2650 (create_filename_seen_cache): New function.
2651 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2652 (filename_seen): Delete arg "first". New arg "cache". All callers
2654 (output_source_filename_data): New struct.
2655 (output_source_filename): Delete arg "first". New arg "data".
2656 All callers updated.
2657 (sources_info): Delete local "first". New locals "data", "cleanups".
2658 Rewrite to use filename_seen_cache.
2659 (add_partial_filename_data): Delete member "first". New member
2660 "filename_seen_cache". All uses updated.
2661 (make_source_files_completion_list): Rewrite to use
2662 filename_seen_cache.
2664 2012-07-12 Doug Evans <dje@google.com>
2666 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2668 2012-07-10 Doug Evans <dje@google.com>
2671 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2672 all_type_unit_groups, type_unit_groups, tu_stats.
2673 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2674 All uses updated. Add type_unit_group to union "s".
2675 (type_unit_group): New struct.
2676 (IS_TYPE_UNIT_GROUP): New macro.
2677 (abbrev_table): Delete unused member "section".
2678 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2679 (dw2_get_cu): Assert not used with type_unit_group.
2680 (dw2_get_primary_cu): New function.
2681 (dw2_build_type_unit_groups_reader): New function.
2682 (dw2_build_type_unit_groups): New function.
2683 (dw2_get_file_names): Assert not called on type units.
2684 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2685 Redo loop to iterate over type unit groups instead of type units.
2686 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2687 (read_abbrev_offset): New function.
2688 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2690 (create_partial_symtab): New function.
2691 (process_psymtab_comp_unit_reader): Assert not used with type units.
2692 Call create_partial_symtab.
2693 (process_psymtab_type_unit): Delete.
2694 (hash_type_unit_group, eq_type_unit_group): New functions.
2695 (allocate_type_unit_groups_table): New function.
2696 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2697 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2698 (create_type_unit_group, get_type_unit_group): New functions.
2699 (tu_abbrev_offset): New struct.
2700 (sort_tu_by_abbrev_offset): New function.
2701 (add_type_unit_group_to_table): New function.
2702 (build_type_unit_groups): New function.
2703 (build_type_psymtabs_reader): New function.
2704 (build_type_psymtab_dependencies): New function.
2705 (build_type_psymtabs): Rewrite.
2706 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2707 is seen in a type unit.
2708 (process_queue): Move symtab expansion debugging printfs here.
2709 Call process_full_type_unit for type units.
2710 (compute_symtab_includes): Assert not called for type units.
2711 (process_cu_includes): Don't call compute_symtab_includes for
2713 (process_full_type_unit): New function.
2714 (process_imported_unit_die): Flag an error if called for type units.
2715 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2716 updated. Assert not called for type units.
2717 (read_file_scope): Call dwarf2_start_symtab.
2718 (setup_type_unit_groups): New function.
2719 (read_type_unit_scope): Rewrite.
2720 (abbrev_table_read_table): Initialize abbrev_table->offset.
2721 (abbrev_table_free_cleanup): New function.
2722 (dwarf2_start_symtab): New function.
2723 (load_full_type_unit): Assert not called for type unit groups.
2724 * buildsym.c (finish_block_internal): New arg "expandable".
2725 All callers updated.
2726 (start_symtab): Move most contents to ...
2727 (restart_symtab): ... here. New function.
2728 (reset_symtab_globals): New function.
2729 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2730 Call reset_symtab_globals.
2731 (end_symtab, end_expandable_symtab): New functions.
2732 (set_missing_symtab, augment_type_symtab): New functions.
2733 * buildsym.h (end_expandable_symtab): Declare.
2734 (augment_type_symtab, restart_symtab): Declare.
2735 * psympriv.h (struct partial_symtab): New member "anonymous".
2736 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2738 (read_psymtabs_with_filename): Ditto.
2739 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2740 (expand_symtabs_matching_via_partial): Ditto.
2741 (dump_psymtab): Update.
2742 * dictionary.c (dict_add_pending): New function.
2743 * dictionary.h (dict_add_pending): Declare.
2745 2012-07-09 Doug Evans <dje@google.com>
2747 * buildsym.c (start_subfile): Remove unnecessary check for
2750 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2752 * dwarf2read.c (load_full_type_unit): Simplify.
2754 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2755 to struct signatured_type **. All uses updated.
2757 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2758 All callers updated.
2760 2012-07-09 Tom Tromey <tromey@redhat.com>
2762 * c-exp.y (check_parameter_typelist): New function.
2763 (parameter_typelist): Call it.
2764 * eval.c (make_params): Handle '(void)' case.
2765 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2768 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2770 * common/linux-ptrace.c: Include gdb_assert.h.
2771 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2772 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2774 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2776 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2777 * linux-nat.c (linux_child_post_attach)
2778 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2780 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2783 nptl <2.7 bug workaround for core files.
2785 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2789 (save_siginfo): Remove.
2790 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2792 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2793 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2794 * linux-nat.h (struct lwp_info): Remove field siginfo.
2796 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2798 Code cleanup for the next patch.
2799 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2800 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2802 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2803 (ia64_linux_stopped_data_address):
2804 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2806 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2807 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2808 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2811 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2814 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2815 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2817 2012-07-06 Tom Tromey <tromey@redhat.com>
2819 * c-exp.y (DOTDOTDOT): New token.
2820 (func_mod, exp): Use parameter_typelist.
2821 (parameter_typelist): New production.
2822 (tokentab3): Add "..." token.
2823 * eval.c (make_params): Handle varargs.
2824 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2827 2012-07-06 Tom Tromey <tromey@redhat.com>
2830 * c-exp.y (%union) <tvec>: Change type.
2831 (func_mod): Now uses <tvec> type.
2832 (exp): Update for tvec change.
2833 (direct_abs_decl): Push the typelist.
2834 (func_mod): Return a typelist.
2835 (nonempty_typelist): Update for tvec change.
2836 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2837 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2838 * parse.c (pop_type_list): New function.
2839 (push_typelist): New function.
2840 (follow_types): Handle tp_function_with_arguments.
2841 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2842 (enum type_pieces) <tp_function_with_arguments>: New constant.
2843 (union type_stack_elt) <typelist_val>: New field.
2844 (push_typelist): Declare.
2846 2012-07-06 Tom Tromey <tromey@redhat.com>
2848 * c-exp.y (%union) <type_stack>: New field.
2849 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2850 (ptr_operator_ts): New production.
2852 * parse.c (type_stack_reserve): New function.
2853 (check_type_stack_depth): Use it.
2854 (pop_type_stack, append_type_stack, push_type_stack)
2855 (get_type_stack, type_stack_cleanup): New functions.
2856 (follow_types): Handle tp_type_stack.
2857 (_initialize_parse): Simplify initialization.
2858 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2860 (union type_stack_elt) <stack_val>: New field.
2861 (get_type_stack, append_type_stack, push_type_stack)
2862 (type_stack_cleanup): Declare.
2864 2012-07-06 Tom Tromey <tromey@redhat.com>
2866 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2868 (struct type_stack): New.
2869 * parse.c (type_stack, type_stack_size, type_stack_depth):
2871 (type_stack): New global.
2872 (parse_exp_in_context, check_type_stack_depth)
2873 (insert_into_type_stack, insert_type, push_type, push_type_int)
2874 (insert_type_address_space, pop_type, pop_type_int)
2875 (_initialize_parse): Update.
2877 2012-07-06 Tom Tromey <tromey@redhat.com>
2879 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2882 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2884 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2886 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2887 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2890 alloca with xmalloc/xfree.
2892 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2894 * MAINTAINERS (Write After Approval): Add myself to the list.
2896 2012-07-05 Doug Evans <dje@google.com>
2898 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2900 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2902 * ax-gdb.c (cli/cli-utils.h): New include.
2903 (linespec.h): Ditto.
2904 (agent_eval_command_one): New function.
2905 (agent_command_1): Ditto.
2906 (agent_command): Call function agent_command_1.
2907 (agent_eval_command): Ditto.
2908 (_initialize_ax_gdb): Change help for "maint agent"
2909 and "maint agent-eval".
2911 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2913 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2914 * cli/cli-utils.c (check_for_argument): New function.
2915 * cli/cli-utils.h (check_for_argument): Ditto.
2917 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2919 * NEWS: Mention x32 ABI support.
2921 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2923 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2924 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2926 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2927 and pc_regnum_from_eax to -1. Update SP regnum from
2928 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2931 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2934 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2937 * dwarf2expr.h: Include gdbtypes.h.
2938 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2939 these forward declarations.
2940 (cu_offset, sect_offset): Move these ...
2941 * gdbtypes.h: Remove include dwarf2expr.h.
2942 (cu_offset, sect_offset): ... here.
2944 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2946 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2947 (amd64_linux_sigtramp_code): This.
2948 (amd64_x32_linux_sigtramp_code): New.
2949 (LINUX_SIGTRAMP_LEN): Updated.
2950 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2952 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2954 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2956 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2958 * config.in: Regenerate.
2959 * configure: Regenerate.
2960 * configure.ac: Remove check for gnu/libc-version.h.
2961 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2963 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2964 variables libc_version, libc_major and libc_minor. Replace sscanf by
2965 inferior_has_bug. Extend the comment.
2967 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2969 * linux-thread-db.c (inferior_has_bug): New function.
2970 (thread_db_find_new_threads_silently): Return boolean as checked by
2971 inferior_has_bug, describe it in the comments.
2972 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2973 earlier. Abort the initialization if it returned non-zero.
2974 (thread_db_new_objfile): Exclude debug files.
2975 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2978 2012-07-02 Doug Evans <dje@google.com>
2980 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2981 related to queue management.
2983 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2984 instead of "debug dwarf2-die" in debugging printfs.
2985 (create_debug_info_hash_table_reader): Ditto.
2986 (create_debug_info_hash_table): Ditto.
2987 (init_dwo_file): Ditto.
2988 (init_cutu_and_read_dies): Add debugging printf.
2989 (init_cutu_and_read_dies_no_follow): Ditto.
2990 (process_psymtab_comp_unit_reader): Ditto.
2992 2012-07-02 Stan Shebs <stan@codesourcery.com>
2994 Add target-side support for dynamic printf.
2995 * NEWS: Mention the additional style.
2996 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2997 (struct bp_location): New field cmd_bytecode.
2998 * breakpoint.c: Include format.h.
2999 (disconnected_dprintf): New global.
3000 (parse_cmd_to_aexpr): New function.
3001 (build_target_command_list): New function.
3002 (insert_bp_location): Call it.
3003 (remove_breakpoints_pid): Skip dprintf breakpoints.
3004 (print_one_breakpoint_location): Ditto.
3005 (dprintf_style_agent): New global.
3006 (dprintf_style_enums): Add dprintf_style_agent.
3007 (update_dprintf_command_list): Add agent case.
3008 (agent_printf_command): New function.
3009 (_initialize_breakpoint): Add new commands.
3010 * common/ax.def (printf): New bytecode.
3011 * ax.h (ax_string): Declare.
3012 * ax-gdb.h (gen_printf): Declare.
3013 * ax-gdb.c: Include cli-utils.h, format.h.
3014 (gen_printf): New function.
3015 (maint_agent_print_command): New function.
3016 (_initialize_ax_gdb): Add maint agent-printf command.
3017 * ax-general.c (ax_string): New function.
3018 (ax_print): Add printf disassembly.
3019 * Makefile.in (SFILES): Add format.c
3020 (COMMON_OBS): Add format.o.
3021 * common/format.h: New file.
3022 * common/format.c: New file.
3023 * printcmd.c: Include format.h.
3024 (ui_printf): Call parse_format_string.
3025 * remote.c (remote_state): New field breakpoint_commands.
3026 (PACKET_BreakpointCommands): New enum.
3027 (remote_breakpoint_commands_feature): New function.
3028 (remote_protocol_features): Add new BreakpointCommands entry.
3029 (remote_can_run_breakpoint_commands): New function.
3030 (remote_add_target_side_commands): New function.
3031 (remote_insert_breakpoint): Call it.
3032 (remote_insert_hw_breakpoint): Ditto.
3033 (_initialize_remote): Add new packet configuration for
3034 target-side breakpoint commands.
3035 * target.h (struct target_ops): New field
3036 to_can_run_breakpoint_commands.
3037 (target_can_run_breakpoint_commands): New macro.
3038 * target.c (update_current_target): Handle
3039 to_can_run_breakpoint_commands.
3041 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3043 Execute -ix and -iex only after system and user gdbinit files.
3044 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3045 processing down after gdbinit files.
3047 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 Add fnmatch-gnu module.
3050 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3051 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3052 * gnulib/aclocal.m4: Regenerate.
3053 * gnulib/config.in: Regenerate.
3054 * gnulib/configure: Regenerate.
3055 * gnulib/import/dummy.c: Remove.
3056 * gnulib/import/Makefile.am: Regenerate.
3057 * gnulib/import/Makefile.in: Likewise.
3058 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3059 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3060 * gnulib/import/alloca.c: New file.
3061 * gnulib/import/alloca.in.h: Likewise.
3062 * gnulib/import/config.charset: Likewise.
3063 * gnulib/import/fnmatch.c: Likewise.
3064 * gnulib/import/fnmatch.in.h: Likewise.
3065 * gnulib/import/fnmatch_loop.c: Likewise.
3066 * gnulib/import/localcharset.c: Likewise.
3067 * gnulib/import/localcharset.h: Likewise.
3068 * gnulib/import/m4/alloca.m4: Likewise.
3069 * gnulib/import/m4/codeset.m4: Likewise.
3070 * gnulib/import/m4/configmake.m4: Likewise.
3071 * gnulib/import/m4/fcntl-o.m4: Likewise.
3072 * gnulib/import/m4/fnmatch.m4: Likewise.
3073 * gnulib/import/m4/glibc21.m4: Likewise.
3074 * gnulib/import/m4/localcharset.m4: Likewise.
3075 * gnulib/import/m4/locale-fr.m4: Likewise.
3076 * gnulib/import/m4/locale-ja.m4: Likewise.
3077 * gnulib/import/m4/locale-zh.m4: Likewise.
3078 * gnulib/import/m4/mbrtowc.m4: Likewise.
3079 * gnulib/import/m4/mbsinit.m4: Likewise.
3080 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3081 * gnulib/import/m4/mbstate_t.m4: Likewise.
3082 * gnulib/import/m4/stdbool.m4: Likewise.
3083 * gnulib/import/m4/wchar_h.m4: Likewise.
3084 * gnulib/import/m4/wctype_h.m4: Likewise.
3085 * gnulib/import/m4/wint_t.m4: Likewise.
3086 * gnulib/import/mbrtowc.c: Likewise.
3087 * gnulib/import/mbsinit.c: Likewise.
3088 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3089 * gnulib/import/mbsrtowcs-state.c: Likewise.
3090 * gnulib/import/mbsrtowcs.c: Likewise.
3091 * gnulib/import/ref-add.sin: Likewise.
3092 * gnulib/import/ref-del.sin: Likewise.
3093 * gnulib/import/stdbool.in.h: Likewise.
3094 * gnulib/import/streq.h: Likewise.
3095 * gnulib/import/strnlen1.c: Likewise.
3096 * gnulib/import/strnlen1.h: Likewise.
3097 * gnulib/import/verify.h: Likewise.
3098 * gnulib/import/wchar.in.h: Likewise.
3099 * gnulib/import/wctype.in.h: Likewise.
3101 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Support shell wildcards for 'set auto-load safe-path'.
3104 * auto-load.c: Include fnmatch.h.
3105 (filename_is_in_dir): Rename to ...
3106 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3107 it. Update function comment. Rename dir_len to pattern_len. New
3108 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3109 messages. Use gdb_filename_fnmatch.
3110 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3112 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3113 * defs.h (gdb_filename_fnmatch): New declaration.
3114 * utils.c: Include fnmatch.h.
3115 (gdb_filename_fnmatch): New function.
3117 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3119 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3120 `-probe' and `-probe-stap' options.
3122 2012-07-01 Yao Qi <yao@codesourcery.com>
3124 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3125 always_inserted_off, and always_inserted_enums.
3126 Change always_inserted_mode's type to 'enum auto_boolean'.
3127 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3129 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3130 of add_setshow_enum_cmd.
3131 * infrun.c: Remove can_use_displaced_stepping_auto,
3132 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3133 can_use_displaced_stepping_enum.
3134 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3135 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3136 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3137 add_setshow_enum_cmd.
3139 2012-06-30 Doug Evans <dje@google.com>
3141 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3142 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3143 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3145 2012-06-29 Doug Evans <dje@google.com>
3147 * linespec.c: #include "stack.h".
3148 (decode_line_with_current_source): Moved here from symtab.c and
3149 renamed from decode_line_spec. All callers updated.
3150 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3151 renamed from decode_line_spec_1. All callers updated.
3152 * linespec.h (decode_line_with_current_source): Move declaration here
3153 from symtab.h and renamed from decode_line_spec.
3154 (decode_line_with_last_displayed): Move declaration here from symtab.h
3155 and renamed from decode_line_spec_1.
3156 * macrocmd.c: #include "linespec.h".
3157 * symtab.c: Remove #include "linespec.h".
3159 2012-06-28 Doug Evans <dje@google.com>
3161 * dwarf2read.c (get_cu_length): New function.
3162 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3163 (create_debug_types_hash_table): Ditto.
3164 (init_cutu_and_read_dies): Ditto.
3165 (init_cutu_and_read_dies_no_follow): Ditto.
3167 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3169 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3170 (struct abbrev_table): Define.
3171 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3173 (init_cutu_and_read_dies): Update.
3174 (abbrev_table_alloc_abbrev): New function. Replaces
3175 dwarf_alloc_abbrev. All callers updated.
3176 (abbrev_table_add_abbrev): New function.
3177 (abbrev_table_lookup_abbrev): New function. Replaces
3178 dwarf2_lookup_abbrev. All callers updated.
3179 (abbrev_table_read_table): New function. Contents moved here from
3180 dwarf2_read_abbrevs.
3181 (dwarf2_read_abbrevs): Call it.
3182 (abbrev_table_free): New function.
3183 (dwarf2_free_abbrev_table): Call it.
3185 2012-06-28 Stan Shebs <stan@codesourcery.com>
3187 * osdata.c (info_osdata_command): Filter out "Title" columns
3189 * common/linux-osdata.c (struct osdata_type): Add title field.
3190 (osdata_table): Add titles to each entry.
3191 (linux_command_xfer_osdata): Add a column for title data.
3193 2012-06-28 Stan Shebs <stan@codesourcery.com>
3195 Make logging work for MI.
3197 * interps.h (interp_set_logging_ftype): New typedef.
3198 (struct interp_procs): New field set_logging_proc.
3199 (current_interp_set_logging): Declare.
3200 * interps.c (current_interp_set_logging): New function.
3201 * cli/cli-logging.c: Include interps.h.
3202 (set_logging_redirect): Call current_interp_set_logging.
3203 (pop_output_files): Ditto.
3204 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3205 * mi/mi-console.h (mi_console_set_raw): Declare.
3206 * mi/mi-console.c (mi_console_set_raw): New function.
3207 * mi/mi-interp.c (saved_raw_stdout): New global.
3208 (mi_set_logging): New function.
3209 (_initialize_mi_interp): Add it to interp procs.
3211 2012-06-28 Doug Evans <dje@google.com>
3213 * symtab.c (lookup_symbol_aux_objfile): Use
3214 ALL_OBJFILE_PRIMARY_SYMTABS.
3216 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3218 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3220 * common/buffer.c: Include inttypes.h and stdint.h.
3221 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3223 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3224 Pedro Alves <palves@redhat.com>
3226 * gdbthread.h (ALL_THREADS): New macro.
3227 (thread_list): Declare.
3228 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3229 going, but instead fall through to the stepping handling.
3230 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3231 the passed in signal. Adjust debug output.
3232 (resume_callback): Rename to ...
3233 (linux_nat_resume_callback): ... this. Pass the thread's last
3234 stop signal, if in "pass" state.
3235 (linux_nat_resume): Adjust to rename.
3236 (stop_wait_callback): New assertion. Don't respawn signals;
3237 instead let the LWP remain with SIGNALLED set.
3238 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3239 * remote.c (append_pending_thread_resumptions): New.
3240 (remote_vcont_resume): Call it.
3241 * target.h (target_resume): Extend comment.
3243 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3245 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3247 2012-06-27 Doug Evans <dje@google.com>
3249 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3250 Delete have_addr_base, unused. All uses updated.
3251 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3252 (dwarf2_get_pc_bounds): Add ranges_base.
3253 (dwarf2_record_block_ranges): Ditto.
3255 2012-06-27 Tom Tromey <tromey@redhat.com>
3258 * varobj.c (varobj_create): Update.
3259 (varobj_set_value): Update.
3260 * tracepoint.c (validate_actionline): Update.
3261 (encode_actions_1): Update.
3262 * parse.c (parse_exp_1): Add 'pc' argument.
3263 (parse_exp_in_context): Add 'pc' argument. Change how
3264 expression_context_pc is set.
3265 (parse_expression): Update.
3266 (parse_field_expression): Update.
3267 * expression.h (parse_exp_1): Update.
3268 * eval.c (parse_to_comma_and_eval): Update.
3269 * breakpoint.c (set_breakpoint_condition): Update.
3270 (update_watchpoint): Update.
3271 (init_breakpoint_sal): Update
3272 (find_condition_and_thread): Update.
3273 (watch_command_1): Update.
3274 (update_breakpoint_locations): Update.
3275 * ada-lang.c (ada_read_renaming_var_value): Update.
3276 (create_excep_cond_exprs): Update.
3278 2012-06-27 Doug Evans <dje@google.com>
3280 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3283 2012-06-26 Doug Evans <dje@google.com>
3285 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3287 (error_check_comp_unit_head): New arg abbrev_section. All callers
3289 (read_and_check_comp_unit_head): Ditto.
3290 (read_and_check_type_unit_head): Ditto.
3292 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3294 New attribute 'last' for gdb.Symtab_and_line.
3295 * NEWS (Python Scripting): Add entry about the new attribute.
3296 * python/py-symtab.c (salpy_get_last): New function which
3297 implements the get method for the 'last' attribute of
3298 gdb.Symtab_and_line.
3299 (sal_object_getset): Add entry for the 'last' attribute.
3301 2012-06-26 Doug Evans <dje@google.com>
3303 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3304 (dwo_sections): Add macinfo, macro.
3305 (dwarf2_locate_dwo_sections): Watch for macro sections.
3306 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3307 All callers updated. Handle DWO files.
3309 * NEWS: Mention new options "set debug dwarf2-read" and
3310 "set debug symtab-create".
3311 * dwarf2read.c (dwarf2_read_debug): New static global.
3312 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3313 (process_queue): Ditto.
3314 (process_full_comp_unit): Ditto.
3315 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3316 * elfread.c (elf_symfile_read): Add debugging printf.
3317 * minsyms.c (install_minimal_symbols): Ditto.
3318 * psymtab.c (allocate_psymtab): Ditto.
3319 * symfile.c (allocate_symtab): Ditto.
3320 * symtab.c (symtab_create_debug): New global.
3321 (_initialize_symtab): Add new option "set debug symtab-create".
3322 * symtab.h (symtab_create_debug): Declare.
3324 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3325 (lookup_dwo_type_unit): Ditto.
3327 2012-06-26 Roland McGrath <roland@hack.frob.com>
3328 H.J. Lu <hongjiu.lu@intel.com>
3330 * amd64-linux-nat.c: Include <sys/user.h>.
3331 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3332 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3333 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3335 * configure.ac: Check if the fs_base and gs_base members of
3336 `struct user_regs_struct' exist.
3337 * config.in: Regenerated.
3338 * configure: Likewise.
3340 2012-06-25 Michael Eager <eager@eagercon.com>
3343 * python/python.c (gdbpy_write): Check for interrupted output.
3345 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3347 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3348 register as a stack alignment in ARM mode.
3350 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3352 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3353 * gnulib/config.in: Regenerate.
3354 * gnulib/configure: Likewise.
3355 * gnulib/import/m4/extensions.m4: Update it.
3356 * gnulib/import/m4/gnulib-common.m4: Likewise.
3357 * gnulib/import/m4/memmem.m4: Likewise.
3358 * gnulib/import/m4/mmap-anon.m4: Likewise.
3359 * gnulib/import/m4/multiarch.m4: Likewise.
3360 * gnulib/import/stdint.in.h: Likewise.
3362 2012-06-24 Yao Qi <yao@codesourcery.com>
3364 * corefile.c (write_memory_with_notification): New.
3365 * gdbcore.h: Declare write_memory_with_notification.
3366 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3367 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3368 * valops.c (value_assign): Likewise.
3369 * python/py-inferior.c (infpy_write_memory): Call
3370 'write_memory_with_notification'.
3372 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3374 * cc-with-index.sh: Use also -ex "set auto-load no".
3376 2012-06-23 Doug Evans <dje@google.com>
3379 * NEWS: Document additions to .gdb_index.
3380 * dwarf2read.c: #include "gdb/gdb-index.h".
3381 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3382 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3383 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3384 (dwarf2_read_index): Recognize version 7.
3385 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3386 block_kind, domain): All callers updated.
3387 (dw2_find_symbol_file): Handle new index CU values.
3388 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3389 (add_index_entry): New args is_static, kind. All callers updated.
3390 (offset_type_compare, uniquify_cu_indices): New functions
3391 (symbol_kind): New function.
3392 (write_psymtabs_to_index): Remove duplicate CU values.
3393 (write_psymtabs_to_index): Write .gdb_index version 7.
3395 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3397 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3398 * configure: Regenerate.
3400 2012-06-20 Yao Qi <yao@codesourcery.com>
3402 * python/py-inferior.c: Update comments of infpy_read_memory
3403 and infpy_write_memory.
3405 2012-06-19 Tom Tromey <tromey@redhat.com>
3408 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3409 (push_type_address_space): Remove.
3410 * parse.c (insert_into_type_stack): New function.
3411 (insert_type): Likewise.
3412 (insert_type_address_space): Rename from push_type_address_space.
3413 Insert tp_space_identifier.
3414 * c-exp.y (ptr_operator): New production.
3415 (abs_decl): Use ptr_operator.
3416 (space_identifier): Call insert_type_address_space.
3417 (ptype): Don't use const_or_volatile_or_space_identifier.
3418 (const_or_volatile_noopt): Call insert_type.
3419 (conversion_type_id, conversion_declarator): New productions.
3420 (operator): Use conversion_type_id.
3422 2012-06-18 Doug Evans <dje@google.com>
3424 * symtab.h (minimal_symbol): New member created_by_gdb.
3425 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3427 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3428 (search_symbols): Call it instead of lookup_symbol.
3429 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3431 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3432 Adjust address for DW_OP_GNU_addr_index.
3433 * dwarf2expr.h (dwarf_expr_context): Update comment.
3434 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3435 all callers updated. Handle TLS vars described with
3436 DW_OP_GNU_const_index.
3437 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3438 and DW_OP_GNU_const_index.
3439 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3441 * block.c (find_block_in_blockvector): Make explicit the fact that we
3442 ignore GLOBAL_BLOCK.
3444 2012-06-18 Tom Tromey <tromey@redhat.com>
3446 * c-exp.y (operator): Remove trailing space after "delete" and
3449 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3450 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 Switch i386 and derived targets to ON_STACK.
3453 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3454 (amd64_dicos_init_abi): Remove its installment.
3455 * dicos-tdep.c (dicos_init_abi): Remove the
3456 set_gdbarch_call_dummy_location call. Update the comment here.
3457 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3458 (i386_dicos_init_abi): Remove its installment.
3459 * i386-tdep.c (i386_push_dummy_code): New function.
3460 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3461 i386_push_dummy_code.
3463 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 Remove stale dummy frames.
3466 * breakpoint.c: Include dummy-frame.h.
3467 (longjmp_breakpoint_ops): New variable.
3468 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3469 bp_longjmp_call_dummy.
3470 (bpstat_what, bptype_string, print_one_breakpoint_location)
3471 (init_bp_location): Support bp_longjmp_call_dummy.
3472 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3473 (set_longjmp_breakpoint_for_call_dummy)
3474 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3476 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3477 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3478 FIXME comment and extend the other comment for bp_call_dummy.
3479 (set_longjmp_breakpoint_for_call_dummy)
3480 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3481 * dummy-frame.c: Include gdbthread.h.
3482 (pop_dummy_frame_bpt): New function.
3483 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3484 (dummy_frame_discard): New function.
3485 (cleanup_dummy_frames): Update the comment about longjmps.
3486 * dummy-frame.h (dummy_frame_discard): New declaration.
3487 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3488 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3489 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3490 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3491 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3492 keep_going if IS_LONGJMP and there is no other reason to stop.
3494 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3496 * remote-sim.c (sim_command_completer): Initialize
3499 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3501 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3502 * dwarf2loc.c (call_site_parameter_matches): Support
3503 CALL_SITE_PARAMETER_PARAM_OFFSET.
3504 (needs_dwarf_reg_entry_value): Push stub value.
3505 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3506 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3507 * gdbtypes.h (enum call_site_parameter_kind): New item
3508 CALL_SITE_PARAMETER_PARAM_OFFSET.
3509 (struct call_site.parameter.u): New field param_offset.
3511 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3513 Code cleanup: Generalize call_site.parameter key.
3514 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3515 variable dwarf_reg. New variable kind_u. Update parameters to
3516 push_dwarf_reg_entry_value.
3517 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3518 * dwarf2expr.h (enum call_site_parameter_kind)
3519 (union call_site_parameter_u): Forward declarations.
3520 (struct dwarf_expr_context_funcs): Update parameters and their
3521 description for push_dwarf_reg_entry_value.
3522 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3523 * dwarf2loc.c (call_site_parameter_matches): New function.
3524 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3525 description. Use call_site_parameter_matches.
3526 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3527 Update parameters and their description.
3528 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3529 New variable kind_u. Adjust the caller for updated parameters.
3530 (needs_dwarf_reg_entry_value): Update parameters.
3531 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3532 instead of attr. Update for the changed fields of struct
3533 call_site_parameter.
3534 * gdbtypes.h: Include dwarf2expr.h.
3535 (enum call_site_parameter_kind): New.
3536 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3537 fb_offset into new union u.
3539 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3541 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3542 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3545 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3547 * amd64-linux-nat.c (compat_x32_clock_t): New.
3548 (compat_x32_siginfo_t): Likewise.
3549 (compat_x32_siginfo_from_siginfo): Likewise.
3550 (siginfo_from_compat_x32_siginfo): Likewise.
3551 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3552 and siginfo_from_compat_x32_siginfo for x32.
3554 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3556 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3558 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3560 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3561 instead of gdbarch_ptr_bit.
3562 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3563 (amd64_supply_native_gregset): Likewise.
3564 (amd64_collect_native_gregset): Likewise.
3565 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3566 (amd64_supply_xsave): Likewise.
3567 (amd64_collect_fxsave): Likewise.
3568 (amd64_collect_xsave): Likewise.
3570 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3572 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3573 (amd64_linux_read_description): Check DS segment register for
3576 2012-06-15 Tom Tromey <tromey@redhat.com>
3578 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3579 init_cutu_and_read_dies.
3581 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3583 * MAINTAINERS (Write After Approval): Add myself to the list.
3585 2012-06-15 Tom Tromey <tromey@redhat.com>
3587 * valops.c (value_find_oload_method_list): Now static.
3588 * value.h (value_find_oload_method_list): Don't declare.
3590 2012-06-15 Tom Tromey <tromey@redhat.com>
3592 * valops.c (find_overload_match): Use value_ind.
3594 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3596 * infrun.c (handle_inferior_event): Correct indentation.
3598 2012-06-14 Doug Evans <dje@google.com>
3600 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3601 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3603 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3604 updated. Handle DEBUG_LOC_START_LENGTH.
3605 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3606 (loclist_describe_location): Ditto.
3608 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3611 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3612 after hiding inline functions.
3614 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3616 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3617 _initialize_inf_ttrace.
3619 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3621 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3622 _initialize_hppa_hpux_nat.
3624 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3626 * remote-sim.c (sim_command_completer): Change type of return
3627 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3629 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3630 Jan Kratochvil <jan.kratochvil@redhat.com>
3633 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3634 stack on a 16-byte boundary.
3636 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3638 * jit.c (finalize_symtab): Set function's return type to 'void' by
3641 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3642 H.J. Lu <hongjiu.lu@intel.com>
3644 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3645 Move bits common to both the classic LP64 and the new x32 ILP32
3647 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3648 (amd64_x32_linux_init_abi): New function.
3649 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3652 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3653 * i386-tdep.c (i386_pseudo_register_name): Make public.
3654 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3655 * amd64-tdep.c (amd64_dword_names): Add "eip".
3656 (amd64_x32_pseudo_register_type): New function
3657 (amd64_x32_init_abi): New function.
3659 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3662 * inferior.h (struct inferior_suspend_state): Comment out.
3663 (struct inferior): Comment out the field suspend.
3664 * infrun.c (struct infcall_suspend_state): Comment out the field
3666 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3669 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3671 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3672 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3673 function comment. Return ERROR for unresolved cases. Implement
3674 returning proper NAME.
3675 (yylex): Accept also NAME from classify_inner_name.
3676 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3677 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3679 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3681 2012-06-13 Tom Tromey <tromey@redhat.com>
3683 * breakpoint.c (condition_completer): New function.
3684 (_initialize_breakpoint): Use it.
3685 * value.c (complete_internalvar): New function.
3686 * value.h (complete_internalvar): Declare.
3688 2012-06-13 Tom Tromey <tromey@redhat.com>
3690 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3691 * breakpoint.c (catch_syscall_completer): Return a VEC.
3692 * cli/cli-cmds.c (complete_command): Update.
3693 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3694 (complete_on_enum): Likewise.
3695 * command.h: Include gdb_vecs.h.
3696 (completer_ftype): Change return type.
3697 (complete_on_cmdlist, complete_on_enum): Likewise.
3698 * completer.c (noop_completer, filename_completer)
3699 (location_completer): Return a VEC.
3700 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3702 (expression_completer, complete_line_internal, complete_line)
3703 (command_completer): Return a VEC.
3704 (gdb_completion_word_break_characters, line_completion_function):
3706 * completer.h: Include gdb_vecs.h.
3707 (complete_line, noop_completer, filename_completer)
3708 (expression_completer, location_completer, command_completer):
3710 * f-lang.c (f_word_break_characters): Return a VEC.
3711 * interps.c (interpreter_completer): Return a VEC.
3712 * language.h (struct language_defn)
3713 <la_make_symbol_completion_list>: Return a VEC.
3714 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3715 * symtab.c (free_completion_list): Take a VEC.
3716 (return_val_size, return_val_index): Remove.
3717 (return_val): Now a VEC.
3718 (completion_list_add_name): Update.
3719 (default_make_symbol_completion_list_break_on)
3720 (default_make_symbol_completion_list, make_symbol_completion_list)
3721 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3723 (add_filename_to_list): Update.
3724 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3726 (maybe_add_partial_symtab_filename): Update.
3727 (make_source_files_completion_list): Return a VEC.
3728 * symtab.h (default_make_symbol_completion_list_break_on)
3729 (default_make_symbol_completion_list, make_symbol_completion_list)
3730 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3731 (make_source_files_completion_list): Update.
3733 2012-06-13 Tom Tromey <tromey@redhat.com>
3735 * breakpoint.c (add_catch_command): Use completer_ftype.
3736 * breakpoint.h: Include command.h.
3737 (add_catch_command): Use completer_ftype.
3738 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3739 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3740 Use completer_ftype.
3741 * command.h (completer_ftype): New typedef.
3742 (set_cmd_completer): Use it.
3743 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3746 2012-06-13 Pedro Alves <palves@redhat.com>
3748 Partial revert of previous change.
3750 * serial.c (scb_base): New global.
3751 (serial_for_fd): New.
3752 (serial_open, serial_fdopen_ops): Link new serial in open serials
3754 (do_serial_close): Unlink serial from the open serials chain.
3756 2012-06-12 Pedro Alves <palves@redhat.com>
3758 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3760 (prepare_for_detach): No longer context switch here in non-stop
3762 (fetch_inferior_event): Ditto.
3763 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3764 to the event thread before removing breakpoints. Switch to the
3765 event thread before inserting breakpoints and resuming.
3766 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3767 event thread before resuming.
3768 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3769 Switch to the event thread before removing breakpoints.
3771 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3773 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3774 special characters correctly for the Windows shells. See
3775 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3777 [!__MINGW32__]: Remove extra double quote character from special
3780 2012-06-11 Stan Shebs <stan@codesourcery.com>
3782 * ui-out.h: Remove #if 0 declarations.
3783 * ui-out.c: Remove #if 0 functions.
3785 2012-06-11 Pedro Alves <palves@redhat.com>
3787 * ser-base.c (run_async_handler_and_reschedule): New.
3788 (fd_event, push_event): Use it.
3789 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3790 reference count to 1.
3791 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3793 (serial_is_open, serial_ref, serial_unref): New.
3794 * serial.h (serial_open): Adjust comment.
3795 (serial_is_open): Declare.
3796 (serial_close): Adjust comment.
3797 (serial_ref, serial_unref) Declare.
3798 (struct serial): New field 'refcnt'.
3800 2012-06-11 Pedro Alves <palves@redhat.com>
3802 Remove #if 0'd "connect" command, and unnecessary associated
3803 refcounting and serial reuse bits.
3805 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3806 * serial.c (last_serial_opened): Delete.
3808 (serial_open): Adjust.
3809 (serial_for_fd): Delete.
3810 (serial_fdopen_ops, do_serial_close): Adjust.
3811 (serial_fdopen_ops): Adjust.
3813 2012-06-11 Pedro Alves <palves@redhat.com>
3815 * serial.c (do_serial_close): Remove early return when SCB is
3818 2012-06-11 Tom Tromey <tromey@redhat.com>
3820 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3822 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3824 Fix regression by the "ambiguous linespec" series.
3825 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3826 get_last_displayed_symtab and get_last_displayed_line and depending
3829 2012-06-11 Tom Tromey <tromey@redhat.com>
3831 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3832 (dw2_find_symbol_file): Use it.
3834 2012-06-11 Michael Eager <eager@eagercon.com>
3836 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3837 * mips-linux-tdep.h (mips_signals): New
3839 2012-06-11 Tom Tromey <tromey@redhat.com>
3841 * infrun.c (handle_inferior_event)
3842 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3844 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3845 exception logic in all cases. Update comments.
3846 (insert_longjmp_resume_breakpoint): Set the exception resume
3849 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3851 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3853 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3855 * valarith.c (binop_types_user_defined_p): Fix a typo.
3857 2012-06-08 Yao Qi <yao@codesourcery.com>
3858 Chung-Lin Tang <cltang@codesourcery.com>
3860 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3861 * arch-utils.h: Declare.
3862 * gdbarch.sh: Add return_in_first_hidden_param_p.
3863 * gdbarch.c, gdbarch.h: Regenerated.
3864 * infcall.c (call_function_by_hand): Call
3865 gdbarch_return_in_first_hidden_param_p instead of
3866 language_pass_by_reference.
3868 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3869 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3870 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3871 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3872 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3873 `cplus_return_struct_by_reference'.
3874 (tic6x_return_value): Handle language cplusplus.
3875 (tic6x_return_in_first_hidden_param_p): New.
3876 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3878 2012-06-07 Doug Evans <dje@google.com>
3880 * dwarf2read.c (dwarf2_cu): Add comment.
3882 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3884 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3886 (mips_eabi_push_dummy_call): Likewise.
3887 (mips_n32n64_push_dummy_call): Likewise.
3888 (mips_o32_push_dummy_call): Likewise.
3889 (mips_o64_push_dummy_call): Likewise.
3891 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3893 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3895 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3897 * mips-tdep.c (mips_pseudo_register_type): Use
3898 mips_float_register_p.
3900 2012-06-06 Pedro Alves <palves@redhat.com>
3902 * infrun.c (handle_inferior_event): Remove calls to
3903 reinit_frame_cache that follow a context_switch call.
3905 2012-06-06 Pedro Alves <palves@redhat.com>
3907 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3908 context_switch and remove stale comment.
3910 2012-06-06 Pedro Alves <palves@redhat.com>
3912 * infrun.c (struct execution_control_state): Remove
3913 `new_thread_event' field.
3914 (handle_inferior_event): Simplify new threads handling; don't
3915 resume the inferior if we find a new thread.
3917 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3919 * NEWS: Document the deprecation of SH's 'regs' command.
3920 * inferior.h (all_registers_info): Add function declaration.
3921 * sh-tdep.c (sh_show_regs): Remove variable.
3922 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3923 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3924 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3925 (sh_show_regs_command): Remove functions.
3926 (sh_gdbarch_init): Don't set sh_show_regs.
3927 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3928 'info all-registers'.
3929 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3930 (sh64_show_regs): Remove functions.
3931 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3933 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * configure.ac: Move development=true below AC_INIT.
3936 * configure: Regenerate.
3938 2012-06-05 Stan Shebs <stan@codesourcery.com>
3940 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3943 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3945 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3946 argument as ssize_t.
3947 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3948 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3949 * target.c (target_read_stack, target_write_memory)
3950 (target_write_raw_memory): Likewise.
3951 * target.h (target_read_stack, target_write_memory)
3952 (target_write_raw_memory): Likewise.
3954 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3956 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3957 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3958 * target.c (target_read_memory): Change LEN to ssize_t.
3959 * target.h (target_read_memory): Change LEN to ssize_t.
3961 2012-06-05 Pedro Alves <palves@redhat.com>
3965 * breakpoint.c (until_break_command): Only fetch the selected
3966 frame after decode_line_1.
3968 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3970 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3971 event breakpoint at _start, __start or main if a program
3972 interpreter is not found.
3974 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3976 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3978 * windows-tdep.c: #include "objfiles.h".
3979 (windows_iterate_over_objfiles_in_search_order): New function.
3980 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3981 iterate_over_objfiles_in_search_order gdbarch method to
3982 windows_iterate_over_objfiles_in_search_order.
3983 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3985 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3987 * gdbarch.sh: Add generation of
3988 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3989 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3990 (iterate_over_objfiles_in_search_order): New gdbarch method.
3991 * gdbarch.h, gdbarch.c: Regenerate.
3992 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3994 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3996 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3997 out of lookup_symbol_aux_symtabs.
3998 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3999 call to lookup_symbol_aux_objfile.
4000 (struct global_sym_lookup_data): New type.
4001 (lookup_symbol_global_iterator_cb): New function.
4002 (lookup_symbol_global): Search for symbol using
4003 gdbarch_iterate_over_objfiles_in_search_order and
4004 lookup_symbol_global_iterator_cb.
4005 * findvar.c (struct minsym_lookup_data): New type.
4006 (minsym_lookup_iterator_cb): New function.
4007 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4008 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4009 and minsym_lookup_iterator_cb.
4011 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4013 Revert the following patch:
4014 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4015 try locating the symbol in the symbol's own objfile first, before
4016 extending the search to all objfiles.
4017 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4018 out of lookup_symbol_aux_symtabs.
4019 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4020 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4021 Do not search EXCLUDE_OBJFILE.
4022 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4023 (lookup_symbol_global): Search for matches in the block's objfile
4024 first, before searching all other objfiles.
4026 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4028 * breakpoint.c (find_condition_and_thread): Stop parsing
4029 as soon as the first invalid keyword is found.
4031 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4033 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4035 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4037 * config/djgpp/djcheck.sh: Add copyright header.
4039 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4041 * copyright.py (update_files, main): Fix path to update-copyright
4044 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4046 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4047 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4048 for which a reminder to update by hand is printed.
4050 2012-06-04 Doug Evans <dje@google.com>
4052 * buildsym.c (make_blockvector): Add comment.
4054 2012-06-04 Pedro Alves <palves@redhat.com>
4056 * arch-utils.c (default_gdb_signal_from_target): Delete.
4057 * arch-utils.h (default_gdb_signal_from_target): Delete.
4058 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4059 gdbarch_gdb_signal_from_target_p.
4060 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4062 * gdbarch.h: Regenerate.
4063 * gdbarch.c: Regenerate.
4065 2012-06-04 Pedro Alves <palves@redhat.com>
4067 * gdbarch.sh (gdb_signal_from_target): Mention that the
4068 implementation of the method must be host independent.
4069 * gdbarch.h: Regenerate.
4071 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4073 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4075 (target_read_memory_bfd): New function.
4076 (symbol_file_add_from_memory): Use it.
4078 2012-06-03 Doug Evans <dje@google.com>
4080 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4082 (basic_lookup_transparent_type): Ditto.
4084 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4085 (ALL_PRIMARY_SYMTABS): Use it.
4086 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4087 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4088 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4089 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4090 (basic_lookup_transparent_type): Ditto.
4092 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4094 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4095 it to optimize resolution of demangled name.
4097 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4099 * configure.ac (development): Define new variable.
4100 Call AC_CHECK_LIB for mcheck if $development.
4101 (ERROR_ON_WARNING): Enable it by default only if $development.
4102 * config.in: Regenerate.
4103 * configure: Regenerate.
4105 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4107 * target.c (target_read_memory): Make LEN argument as size_t.
4108 * target.h (target_read_memory): Likewise.
4110 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4112 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4114 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4116 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4117 BookE interface for PowerPC server processors if not available
4118 in the Linux Kernel.
4120 2012-05-31 Keith Seitz <keiths@redhat.com>
4122 * linespec.c (decode_objc): Add cleanup to free
4124 (find_linespec_symbols): Add cleanup to free CLASSES.
4125 * symfile.c (find_separate_debug_file_by_debuglink): Add
4126 cleanup to free DEBUGLINK.
4127 * ui-out.c (clear_header_list): No need to check if
4128 HEADER_NEXT.COLHDR is NULL.
4129 Free HEADER_NEXT.COL_NAME.
4131 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4133 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4136 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4138 * configure.host (gdb_host_cpu): Handle tilegx*.
4139 (gdb_host): Handle tilegx-*-linux*.
4140 * tilegx-linux-nat.c: New file.
4141 * config/tilegx/linux.mh: New file.
4143 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4145 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4146 tilegx-linux-tdep.o.
4147 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4148 tilegx-linux-tdep.c.
4149 * configure.tgt: Handle tilegx-*-linux*.
4150 * tilegx-tdep.h: New file.
4151 * tilegx-tdep.c: New file.
4152 * tilegx-linux-tdep.c: New file.
4153 * regformats/reg-tilegx.dat: New file.
4155 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4157 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4158 accounting of hw watchpoints on ppc.
4160 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4162 * source.c (openp): Expand tilde in path entries.
4164 2012-05-29 Doug Evans <dje@google.com>
4166 * buildsym.c (block_compar): Fix comment.
4167 (end_symtab): Fix and clarify some comments.
4169 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4170 cleanup_undefined_types.
4171 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4172 All callers updated.
4174 2012-05-29 Tom Tromey <tromey@redhat.com>
4176 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4178 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4179 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4181 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4184 2012-05-29 Tristan Gingold <gingold@adacore.com>
4186 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4187 (struct darwin_info): ... New struct.
4188 (solib_darwin_pspace_data): New variable.
4189 (darwin_pspace_data_cleanup): New function.
4190 (get_darwin_info): Likewise.
4191 (darwin_dyld_version_ok, darwin_load_image_infos)
4192 (darwin_solib_get_all_image_info_addr_at_init)
4193 (darwin_solib_read_all_image_info_addr): Add info argument.
4195 (darwin_current_sos): Use per pspace structure.
4196 (darwin_solib_create_inferior_hook): Likewise.
4197 (darwin_clear_solib): Likewise.
4198 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4200 2012-05-28 Pedro Alves <palves@redhat.com>
4202 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4203 block that uses them. Clear ecss before handling each event.
4205 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4207 * solib-svr4.c (svr4_current_sos): New comment on
4208 svr4_current_sos_via_xfer_libraries fall back.
4210 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4212 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4213 it as a fallback for TYPE_IS_OPAQUE.
4214 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4215 symbols for lookup_symbol.
4217 2012-05-24 John Steele Scott <toojays@toojays.net>
4219 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4220 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4221 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4222 (check_producer): ... this new function, which also checks for ICC
4223 and caches the result.
4224 (producer_is_icc): New function.
4225 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4228 2012-05-24 Pedro Alves <palves@redhat.com>
4232 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4233 (default_gdb_signal_to_target): ... this. Add comment.
4234 (default_gdb_signal_from_host): Rename to ...
4235 (default_gdb_signal_from_target): ... this. Add comment.
4236 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4237 (default_gdb_signal_to_target): ... this.
4238 (default_gdb_signal_from_host): Rename to ...
4239 (default_gdb_signal_from_target): ... this.
4240 * corelow.c (core_open): Adjust to naming change. Replace comment.
4241 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4242 (gdb_signal_from_target): ... this. Adjust to
4243 default_gdb_signal_from_host naming change. Extend comment.
4244 (gdb_signal_to_host): Rename to ...
4245 (gdb_signal_to_target): ... this. Adjust to
4246 default_gdb_signal_to_host naming change.
4247 * gdbarch.h, gdbarch.c: Renegerate.
4249 2012-05-24 Pedro Alves <palves@redhat.com>
4253 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4255 2012-05-24 Pedro Alves <palves@redhat.com>
4259 Replace target_signal with gdb_signal throughout.
4261 2012-05-24 Pedro Alves <palves@redhat.com>
4265 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4266 string, instead of reusing the va_list argument.
4268 2012-05-24 Tom Tromey <tromey@redhat.com>
4270 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4273 2012-05-23 Doug Evans <dje@google.com>
4275 * symtab.c (search_symbols): Formatting fixes.
4276 (print_symbol_info): Formatting fixes.
4278 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4279 int64_t change to leb128 API.
4280 (read_encoded_value, decode_frame_entry_1): Ditto.
4281 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4282 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4283 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4284 (execute_stack_op): Ditto.
4285 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4286 (safe_read_uleb128, safe_read_sleb128): Ditto.
4287 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4288 (dwarf2_compile_expr_to_ax): Ditto.
4289 (locexpr_describe_location_piece): Ditto.
4290 (disassemble_dwarf_expression): Ditto.
4291 (locexpr_describe_location_1): Ditto.
4293 2012-05-23 Stan Shebs <stan@codesourcery.com>
4294 Kwok Cheung Yeung <kcy@codesourcery.com>
4296 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4297 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4298 (mi-cmd-info.o): New rule.
4299 * osdata.h (info_osdata_command): New declaration.
4300 * osdata.c (info_osdata_command): Change to non-static.
4301 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4302 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4303 * mi/mi-cmd-info.c: New file.
4305 2012-05-23 Doug Evans <dje@google.com>
4307 * symtab.c (search_symbols): Pass NULL for file_matcher to
4308 expand_symtabs_matching if there are no files to match.
4310 * gdbtypes.c (lookup_typename): Simplify.
4312 2012-05-23 Pedro Alves <palves@redhat.com>
4314 * arch-utils.h (default_target_signal_to_host): Delete.
4315 * arch-utils.c (default_target_signal_to_host): Delete.
4316 * gdbarch.sh (target_signal_to_host): Remove.
4317 * gdbarch.h, gdbarch.c: Regenerate.
4319 2012-05-22 Doug Evans <dje@google.com>
4321 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4323 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4324 (execute_cfa_program): Update to match API of leb128 functions.
4325 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4327 (read_unsigned_leb128, read_signed_leb128): Delete.
4328 (read_initial_length): Change type of buf argument to
4330 (read_encoded_value): Update to match API of leb128 functions.
4331 (decode_frame_entry): Change result to "const gdb_byte *", and
4332 similarly for "start" parameter.
4333 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4334 (dwarf2_build_frame_info): Change local frame_ptr to
4336 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4337 read_uleb128, read_sleb128. All callers updated.
4338 (safe_skip_leb128): New function.
4339 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4340 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4341 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4342 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4343 read_uleb128, read_sleb128.
4344 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4345 (execute_stack_op): Update to match API of leb128 functions.
4346 * dwarf2expr.h: #include "leb128.h".
4347 (read_uleb128, read_sleb128): Delete.
4348 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4349 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4350 * dwarf2loc.c (debug_loc_kind): New enum.
4351 (decode_debug_loc_addresses): New function.
4352 (decode_debug_loc_dwo_addresses): New function.
4353 (dwarf2_find_location_expression): Rewrite.
4354 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4355 (locexpr_describe_location_piece): Ditto.
4356 (disassemble_dwarf_expression): Ditto.
4357 (locexpr_describe_location_1): Ditto.
4358 (loclist_describe_location): Rewrite.
4359 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4360 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4361 (dwarf2_section_buffer_overflow_complaint): Renamed from
4362 dwarf2_macros_too_long_complaint. All callers updated.
4363 (skip_leb128): Delete.
4364 (init_cu_die_reader): Initialize reader->buffer_end.
4365 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4366 (skip_form_bytes): New arg buffer_end. All callers updated.
4367 Replace call to skip_leb128 with gdb_skip_leb128.
4368 (skip_unknown_opcode): New arg mac_end. All callers updated.
4369 (fill_in_loclist_baton): Initialize baton->from_dwo.
4371 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4373 * mips-linux-nat.c (mips_linux_read_description): Use a more
4374 verbose error message.
4376 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4378 * NEWS: Add MIPS/Linux DSP support.
4379 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4380 (SIGCONTEXT_DSPCTL): New macro.
4381 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4382 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4383 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4384 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4385 (N64_SIGCONTEXT_HI3): Likewise.
4386 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4387 (N64_SIGCONTEXT_LO3): Likewise.
4388 (N64_SIGCONTEXT_DSPCTL): Likewise.
4389 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4390 (mips_linux_o32_sigframe_init): Handle DSP registers.
4391 (mips_linux_n32n64_sigframe_init): Likewise.
4393 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4395 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4398 2012-05-22 Pedro Alves <palves@redhat.com>
4400 * target.h (store_waitstatus): Move declaration ...
4401 * inf-child.h (store_waitstatus): ... here.
4402 * target.c: Move inclusion of gdb_wait.h, and ...
4403 (store_waitstatus): ... this ...
4404 * inf-child.c: ... here.
4405 * linux-nat.c: Include inf-child.h.
4406 * rs6000-nat.c: Include inf-child.h.
4407 * spu-linux-nat.c: Include inf-child.h.
4409 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4411 * tracepoint.c (start_tracing): Add missing i18n markup.
4412 (stop_tracing, set_trace_user): Ditto.
4413 (set_trace_notes, set_trace_stop_notes): Ditto.
4415 2012-05-21 Tom Tromey <tromey@redhat.com>
4418 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4420 * value.h (value_cast_pointers): Update.
4421 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4422 (value_cast): Update.
4423 (update_search_result): New function.
4424 (do_search_struct_field): New, from search_struct_field. Check
4425 for ambiguous results.
4426 (search_struct_field): Rewrite.
4427 * infcall.c (value_arg_coerce): Update.
4428 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4429 value_cast_pointers.
4430 * ada-lang.c (ada_convert_actual): Update.
4432 2012-05-21 Tom Tromey <tromey@redhat.com>
4434 * macroexp.c (macro_stringify): Terminate the string.
4436 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4438 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4440 * auto-load.c (auto_load_expand_dir_vars): New function.
4441 (auto_load_safe_path_vec_update): Use it, remove the
4442 substitute_path_component call thanks to it.
4443 (auto_load_objfile_script): Remove the debug_file_directory processing.
4444 Use auto_load_expand_dir_vars, remove the substitute_path_component
4446 * configure: Regenerate.
4447 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4448 path. Escape $ also for $debugdir.
4449 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4450 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4452 2012-05-20 Doug Evans <dje@google.com>
4454 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4455 before use. Check for symtab->includes == NULL before scanning it.
4457 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4459 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4461 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4463 * NEWS: Add microMIPS support and "set mips compression",
4464 "show mips compression" commands.
4465 * mips-tdep.h (mips_isa): New enum.
4466 (gdbarch_tdep): Add mips_isa.
4467 (mips_pc_is_mips16): Update prototype.
4468 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4469 * mips-tdep.c (mips_compression_mips16): New variable.
4470 (mips_compression_micromips): Likewise.
4471 (mips_compression_strings): Likewise.
4472 (mips_compression_string): Likewise.
4473 (is_mips16_isa, is_micromips_isa): New functions.
4474 (is_mips16_addr): Rename to...
4475 (is_compact_addr): ... this.
4476 (unmake_mips16_addr): Likewise to...
4477 (unmake_compact_addr): ... this.
4478 (make_mips16_addr): Likewise to...
4479 (make_compact_addr): ... this.
4480 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4482 (mips_elf_make_msymbol_special): Handle microMIPS code.
4483 (msymbol_is_special): Rename to...
4484 (msymbol_is_mips16): ... this.
4485 (mips_make_symbol_special, mips_pc_is_mips16): Update
4487 (msymbol_is_mips, msymbol_is_micromips): New functions.
4488 (mips16_to_32_reg): Rename to...
4489 (mips_reg3_to_reg): ... this.
4490 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4491 (mips_pc_isa): Likewise.
4492 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4494 (mips_fetch_instruction): Pass return status instead of printing
4495 an error message if requested. Handle microMIPS code. Bail out
4497 (micromips_op): New macro.
4498 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4499 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4500 (b6s4_op, b7s3_reg): Likewise.
4501 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4502 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4503 (mips_insn_size): New function.
4504 (mips32_next_pc): Update mips_fetch_instruction call.
4505 (micromips_relative_offset7): New function.
4506 (micromips_relative_offset10): Likewise.
4507 (micromips_relative_offset16): Likewise.
4508 (micromips_pc_insn_size): Likewise.
4509 (micromips_bc1_pc): Likewise.
4510 (micromips_next_pc): Likewise.
4511 (unpack_mips16): Update mips_fetch_instruction call.
4512 (extended_mips16_next_pc): Update according to change to
4514 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4516 (mips16_scan_prologue): Update mips_fetch_instruction call.
4517 Update according to change to mips16_to_32_reg.
4518 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4519 (mips_insn16_frame_base_sniffer): Likewise.
4520 (micromips_decode_imm9): New function.
4521 (micromips_scan_prologue): Likewise.
4522 (mips_micro_frame_cache): Likewise.
4523 (mips_micro_frame_this_id): Likewise.
4524 (mips_micro_frame_prev_register): Likewise.
4525 (mips_micro_frame_sniffer): Likewise.
4526 (mips_micro_frame_unwind): New variable.
4527 (mips_micro_frame_base_address): New function.
4528 (mips_micro_frame_base): New variable.
4529 (mips_micro_frame_base_sniffer): New function.
4530 (mips32_scan_prologue): Update mips_fetch_instruction call.
4531 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4532 rather than for MIPS16.
4533 (mips_insn32_frame_base_sniffer): Likewise.
4534 (mips_addr_bits_remove): Handle microMIPS code.
4535 (deal_with_atomic_sequence): Rename to...
4536 (mips_deal_with_atomic_sequence): ... this. Update the type
4537 of the variable used to hold an instruction. Remove the ISA bit
4538 check. Update mips_fetch_instruction call.
4539 (micromips_deal_with_atomic_sequence): New function.
4540 (deal_with_atomic_sequence): Likewise.
4541 (mips_about_to_return): Handle microMIPS code. Update
4542 mips_fetch_instruction call.
4543 (heuristic_proc_start): Check for the standard MIPS ISA rather
4544 than for MIPS16. Update mips_pc_is_mips16 and
4545 mips_fetch_instruction calls. Handle microMIPS code.
4546 (mips_push_dummy_code): Handle microMIPS code.
4547 (mips_eabi_push_dummy_call): Likewise.
4548 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4549 (mips_o64_push_dummy_call): Handle microMIPS code.
4550 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4551 (is_delayed): Remove function.
4552 (mips_single_step_through_delay): Replace the call to is_delayed
4553 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4554 Handle microMIPS code.
4555 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4557 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4559 (micromips_in_function_epilogue_p): New function.
4560 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4562 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4564 (gdb_print_insn_mips): Likewise.
4565 (mips_breakpoint_from_pc): Likewise.
4566 (mips_remote_breakpoint_from_pc): New function.
4567 (mips32_instruction_has_delay_slot): Simplify making use of the
4568 updated mips_fetch_instruction interface.
4569 (micromips_instruction_has_delay_slot): New function.
4570 (mips16_instruction_has_delay_slot): Simplify making use of the
4571 updated mips_fetch_instruction interface.
4572 (mips_adjust_breakpoint_address): Check for the standard MIPS
4573 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4574 calls. Handle microMIPS code.
4575 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4576 (mips_skip_trampoline_code): Handle microMIPS code.
4577 (global_mips_compression): New function.
4578 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4579 file flags. Register the microMIPS remote breakpoint handler
4580 and heuristic frame unwinder.
4581 (show_mips_compression): New function.
4582 (_initialize_mips_tdep): Add the "set mips compression" and
4583 "show mips compression" commands.
4585 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4590 * amd64-darwin-tdep.c:
4591 * arm-symbian-tdep.c:
4595 * bfin-linux-tdep.c:
4602 * dwarf2-frame-tailcall.c:
4631 * microblaze-tdep.c:
4632 * mips-linux-tdep.c:
4640 * python/py-finishbreakpoint.c:
4641 * python/py-inferior.c:
4642 * python/py-infthread.c:
4646 * remote-m32r-sdi.c:
4650 * rs6000-aix-tdep.c:
4676 * amd64-darwin-tdep.c:
4677 * arm-symbian-tdep.c:
4678 * arm-tdep.c: Delete unused variables.
4680 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4682 Rename $ddir to $datadir.
4683 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4684 * auto-load.c (auto_load_safe_path_vec_update)
4685 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4686 * configure: Regenerate.
4687 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4688 Likewise. Remove the 'use $ddir' help string.
4690 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4693 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4695 2012-05-18 Tom Tromey <tromey@redhat.com>
4698 * valprint.h (struct value_print_options) <symbol_print>: New
4700 * valprint.c (user_print_options): Add default for symbol_print.
4701 (show_symbol_print): New function.
4702 (generic_val_print): Respect symbol_print.
4703 (_initialize_valprint): Add "print symbol" setting.
4704 * f-valprint.c (f_val_print): Respect symbol_print.
4705 * c-valprint.c (c_val_print): Respect symbol_print.
4707 * printcmd.c (print_address_symbolic): Return int. Ignore some
4709 (print_address_demangle): Return int.
4710 * defs.h: (print_address_symbolic): Return int.
4711 * value.h (print_address_demangle): Return int.
4713 2012-05-18 Tom Tromey <tromey@redhat.com>
4715 * valprint.c (val_print_string): Don't print leading space.
4716 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4717 print space before string or vtbl.
4718 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4720 * jv-valprint.c (java_value_print): Print space before string.
4721 * go-valprint.c (print_go_string): Print space before string.
4722 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4723 space before string.
4724 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4725 space before string or vtbl.
4726 * auxv.c (fprint_target_auxv): Print space after address.
4728 2012-05-18 Tom Tromey <tromey@redhat.com>
4730 * printcmd.c (print_address_demangle): Remove special case for 0.
4732 2012-05-18 Tom Tromey <tromey@redhat.com>
4734 * printcmd.c (print_address_demangle): Add 'opts' argument.
4735 * p-valprint.c (pascal_val_print): Update.
4736 * jv-valprint.c (java_val_print): Update.
4738 * valprint.c (generic_val_print): Update.
4739 (print_function_pointer_address): Add 'options' argument. Remove
4740 'addressprint' argument. Update.
4741 * m2-valprint.c (print_unpacked_pointer): Update.
4742 * gnu-v3-abi.c (print_one_vtable): Update.
4743 (gnuv3_print_method_ptr): Update.
4744 * f-valprint.c (f_val_print): Update.
4745 * cp-valprint.c (cp_print_value_fields): Update.
4746 * valprint.h (print_function_pointer_address): Update.
4747 * c-valprint.c (c_val_print): Update.
4749 2012-05-18 Tom Tromey <tromey@redhat.com>
4751 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4752 directly corresponding to the found psymtab.
4753 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4754 (dw2_find_pc_sect_symtab): Use it.
4755 * block.h (blockvector_contains_pc): Declare.
4756 * block.c (find_block_in_blockvector): New function.
4757 (blockvector_for_pc_sect): Use it.
4758 (blockvector_contains_pc): New function.
4760 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4762 * mips-tdep.h (mips_write_pc): New prototype.
4763 * mips-tdep.c (mips_write_pc): Make external, add description.
4764 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4767 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4769 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4771 (mips_unwind_pc, mips_write_pc): Likewise.
4772 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4775 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4777 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4778 proc_warn, proc_error, proc_get_status, proc_flags,
4779 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4780 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4781 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4782 proc_stop_process, proc_wait_for_stop, proc_run_process,
4783 proc_set_traced_signals, proc_set_traced_faults,
4784 proc_set_traced_sysentry, proc_set_traced_sysexit,
4785 proc_set_held_signals, proc_get_held_signals,
4786 proc_get_traced_signals, proc_get_traced_faults,
4787 proc_get_traced_sysentry, proc_get_traced_sysexit,
4788 proc_clear_current_fault, proc_set_current_signal,
4789 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4790 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4791 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4792 proc_get_current_thread, proc_get_current_thread,
4793 proc_get_current_thread, proc_update_threads,
4794 proc_update_threads, proc_update_threads, proc_update_threads,
4795 proc_iterate_over_threads, procfs_find_new_threads,
4796 procfs_pid_to_str): Make static. Remove advance declaration.
4797 (proc_cursig): Make static. Conditionalized defintion on
4798 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4799 (proc_syscall, proc_set_kill_on_last_close,
4800 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4801 proc_get_pending_signals, proc_get_signal_actions,
4802 proc_trace_signal, proc_ignore_signal): Delete.
4804 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4806 * coffread.c (cs_section_address): Passing proper argument for
4807 `bfd_get_section_vma'.
4808 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4809 `bfd_get_section_flags'.
4810 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4811 `bfd_get_section_vma'.
4813 2012-05-16 Tom Tromey <tromey@redhat.com>
4816 * macrotab.h: (macro_define_special): Declare.
4817 (enum macro_special_kind): New.
4818 (struct macro_definition) <argc, replacement>: Update comments.
4819 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4820 (macro_define_object_internal): New function.
4821 (macro_define_object): Use it.
4822 (macro_define_special): New function.
4823 (fixup_definition): New function.
4824 (macro_lookup_definition, foreach_macro_in_scope)
4825 (foreach_macro): Use fixup_definition.
4826 * macroexp.h (macro_stringify): Declare.
4827 * macroexp.c (free_buffer_return_text): New function.
4828 (stringify): Constify "arg".
4829 (macro_stringify): New function.
4830 * dwarf2read.c (macro_start_file): Call macro_define_special.
4832 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4833 Maciej W. Rozycki <macro@mips.com>
4835 * breakpoint.h (bp_location): Add related_address member.
4836 * inferior.h (get_return_value): Take a pointer to struct value
4837 instead of struct type for the function requested.
4838 * value.h (using_struct_return): Likewise.
4839 * gdbarch.sh (return_value): Take a pointer to struct value
4840 instead of struct type for the function requested.
4841 * breakpoint.c (set_breakpoint_location_function): Initialize
4842 related_address for bp_gnu_ifunc_resolver breakpoints.
4843 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4844 requested function's address to gdbarch_return_value.
4845 * eval.c (evaluate_subexp_standard): Pass the requested
4846 function's address to using_struct_return.
4847 * infcall.c (call_function_by_hand): Pass the requested
4848 function's address to using_struct_return and
4849 gdbarch_return_value.
4850 * infcmd.c (get_return_value): Take a pointer to struct value
4851 instead of struct type for the function requested.
4852 (print_return_value): Update accordingly.
4853 (finish_command_continuation): Likewise.
4854 * stack.c (return_command): Pass the requested function's
4855 address to using_struct_return and gdbarch_return_value.
4856 * value.c (using_struct_return): Take a pointer to struct value
4857 instead of struct type for the function requested. Pass the
4858 requested function's address to gdbarch_return_value.
4859 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4860 New function_value member, replacing function_type.
4861 (bpfinishpy_dealloc): Update accordingly.
4862 (bpfinishpy_pre_stop_hook): Likewise.
4863 (bpfinishpy_init): Likewise. Record the requested function's
4865 * mips-tdep.c (mips_fval_reg): New enum.
4866 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4867 words put in GP registers.
4868 (mips_o64_push_dummy_call): Update a comment.
4869 (mips_o32_return_value): Take a pointer to struct value instead
4870 of struct type for the function requested and use it to check if
4871 using the MIPS16 calling convention. Return the designated
4872 general purpose registers for floating-point values returned in
4874 (mips_o64_return_value): Likewise.
4875 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4876 (ppc_sysv_abi_broken_return_value): Likewise.
4877 (ppc64_sysv_abi_return_value): Likewise.
4878 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4879 value instead of struct type for the function requested.
4880 * amd64-tdep.c (amd64_return_value): Likewise.
4881 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4882 * arm-tdep.c (arm_return_value): Likewise.
4883 * avr-tdep.c (avr_return_value): Likewise.
4884 * bfin-tdep.c (bfin_return_value): Likewise.
4885 * cris-tdep.c (cris_return_value): Likewise.
4886 * frv-tdep.c (frv_return_value): Likewise.
4887 * h8300-tdep.c (h8300_return_value): Likewise.
4888 (h8300h_return_value): Likewise.
4889 * hppa-tdep.c (hppa32_return_value): Likewise.
4890 (hppa64_return_value): Likewise.
4891 * i386-tdep.c (i386_return_value): Likewise.
4892 * ia64-tdep.c (ia64_return_value): Likewise.
4893 * iq2000-tdep.c (iq2000_return_value): Likewise.
4894 * lm32-tdep.c (lm32_return_value): Likewise.
4895 * m32c-tdep.c (m32c_return_value): Likewise.
4896 * m32r-tdep.c (m32r_return_value): Likewise.
4897 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4898 * m68k-tdep.c (m68k_return_value): Likewise.
4899 (m68k_svr4_return_value): Likewise.
4900 * m88k-tdep.c (m88k_return_value): Likewise.
4901 * mep-tdep.c (mep_return_value): Likewise.
4902 * microblaze-tdep.c (microblaze_return_value): Likewise.
4903 * mn10300-tdep.c (mn10300_return_value): Likewise.
4904 * moxie-tdep.c (moxie_return_value): Likewise.
4905 * mt-tdep.c (mt_return_value): Likewise.
4906 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4907 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4908 (ppc_sysv_abi_broken_return_value): Likewise.
4909 (ppc64_sysv_abi_return_value): Likewise.
4910 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4911 * rl78-tdep.c (rl78_return_value): Likewise.
4912 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4913 * rx-tdep.c (rx_return_value): Likewise.
4914 * s390-tdep.c (s390_return_value): Likewise.
4915 * score-tdep.c (score_return_value): Likewise.
4916 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4917 (sh_return_value_fpu): Likewise.
4918 * sh64-tdep.c (sh64_return_value): Likewise.
4919 * sparc-tdep.c (sparc32_return_value): Likewise.
4920 * sparc64-tdep.c (sparc64_return_value): Likewise.
4921 * spu-tdep.c (spu_return_value): Likewise.
4922 * tic6x-tdep.c (tic6x_return_value): Likewise.
4923 * v850-tdep.c (v850_return_value): Likewise.
4924 * vax-tdep.c (vax_return_value): Likewise.
4925 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4926 * xtensa-tdep.c (xtensa_return_value): Likewise.
4927 * gdbarch.c: Regenerate.
4928 * gdbarch.h: Regenerate.
4930 2012-05-15 Tom Tromey <tromey@redhat.com>
4932 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4934 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4936 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4937 of command in two error message.
4939 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4941 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4943 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4945 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4947 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4949 * NEWS (show auto-load scripts-directory): Add forgotten command.
4951 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4953 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4956 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4958 * amd64-tdep.c: Include features/i386/x32.c and
4959 features/i386/x32-avx.c.
4960 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4961 initialize_tdesc_x32_avx.
4963 2012-05-14 Stan Shebs <stan@codesourcery.com>
4966 * breakpoint.h (enum bptype): New type bp_dprintf.
4967 (struct breakpoint): New field extra_string.
4968 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4969 (create_breakpoint): Add extra_string arg.
4970 * breakpoint.c (dprintf_breakpoint_ops): New.
4971 (is_breakpoint): Add bp_dprintf.
4972 (bpstat_what): Add dprintf case.
4973 (bptype_string): Ditto.
4974 (print_one_breakpoint_location): Ditto.
4975 (init_bp_location): Ditto.
4976 (bkpt_print_mention): Ditto.
4977 (dprintf_style_enums): New array.
4978 (dprintf_style): New global.
4979 (dprintf_function): New global.
4980 (dprintf_channel): New global.
4981 (update_dprintf_command_list): New function.
4982 (update_dprintf_commands): New function.
4983 (init_breakpoint_sal): Add extra_string argument, handle it.
4984 (create_breakpoint_sal): Add extra_string argument.
4985 (create_breakpoints_sal): Add extra_string argument, update callers.
4986 (find_condition_and_thread): Add extra argument.
4987 (create_breakpoint): Add extra_string argument, record it.
4988 (dprintf_command): New function.
4989 (break_command_1): Add arg to create_breakpoint call.
4990 (handle_gnu_v3_exceptions): Ditto.
4991 (trace_command): Ditto.
4992 (ftrace_command): Ditto.
4993 (strace_command): Ditto.
4994 (bkpt_print_mention): Add dprintf case.
4995 (create_breakpoint_sal_default): Add extra_string argument.
4996 (_initialize_breakpoint): Add new commands.
4997 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4998 * python/py-breakpoint.c (bppy_init): Ditto.
4999 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5001 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5003 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5005 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5007 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5010 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5012 Add a new function gdb.find_pc_line to the Python API.
5013 * NEWS (Python Scripting): Add entry about the new function.
5014 * python/python.c (gdbpy_find_pc_line): New function which
5015 implements gdb.find_pc_line.
5016 (GdbMethods): Add entry for the new function.
5018 2012-05-12 Pedro Alves <palves@redhat.com>
5020 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5021 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5023 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5025 * inferior.c: Include completer.h
5026 (initialize_inferiors): Set completer of add-inferior to
5029 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5031 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5032 gdbarch_ptr_bit for x32 core dump.
5034 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5036 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5037 and features/i386/x32-avx-linux.c.
5039 2012-05-11 Stan Shebs <stan@codesourcery.com>
5040 Kwok Cheung Yeung <kcy@codesourcery.com>
5042 * NEWS: Describe new info os commands.
5043 * common/linux-osdata.c (PID_T, TIME_T): Define.
5044 (MAX_PID_T_STRLEN): New.
5045 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5047 (command_from_pid): Add comment. Change to use PID_T.
5048 (commandline_from_pid): Change to use PID_T.
5049 (user_from_pid): Add comment.
5050 (get_process_owner): Add comment. Change to use PID_T and
5052 (get_number_of_cpu_cores): Add comment.
5053 (get_cores_used_by_process): Add comment. Change to use PID_T and
5055 (linux_xfer_osdata_processes): Change to use PID_T and
5057 (compare_processes): New function.
5058 (linux_xfer_osdata_processgroups): New function.
5059 (linux_xfer_osdata_threads): Change to use PID_T.
5060 (linux_xfer_osdata_fds): New function.
5061 (format_socket_state, print_sockets): New functions.
5062 (union socket_addr): New union.
5063 (linux_xfer_osdata_isockets): New function.
5064 (time_from_time_t, group_from_gid): New functions.
5065 (linux_xfer_osdata_shm): New function.
5066 (linux_xfer_osdata_sem): New function.
5067 (linux_xfer_osdata_msg): New function.
5068 (linux_xfer_osdata_modules): New function.
5069 (osdata_table): Add new entries.
5070 * common/buffer.c (buffer_xml_printf): Add support for long and
5071 long long format specifiers.
5073 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5075 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5076 (tdesc_x32_avx_linux): Likewise.
5078 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5080 Implement multi-component --with-auto-load-dir.
5081 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5083 (--with-auto-load-safe-path): Update the default value description.
5084 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5086 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5087 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5088 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5089 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5090 "set auto-load scripts-directory".
5091 * config.in: Regenerate.
5092 * configure: Regenerate.
5093 * configure.ac (--with-auto-load-dir): New configure option.
5094 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5096 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5098 Provide $ddir substitution for --with-auto-load-safe-path.
5099 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5101 * auto-load.c: Include observer.h.
5102 (auto_load_safe_path_vec_update): Call substitute_path_component for
5103 each component. New variable ddir_subst.
5104 (auto_load_gdb_datadir_changed): New function.
5105 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5106 AUTO_LOAD_SAFE_PATH. New comment.
5107 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5108 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5109 * config.in: Regenerate.
5110 * configure: Regenerate.
5111 * configure.ac (--auto-load-safe-path): Rename
5112 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5113 GDB_DATADIR/auto-load.
5114 * defs.h (substitute_path_component): New declaration.
5115 * top.c: Include observer.h.
5116 (set_gdb_datadir): New function.
5117 (init_main): Install it for "set data-directory".
5118 * utils.c (substitute_path_component): New function.
5120 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5122 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5123 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5124 DEBUG_FILE_DIRECTORY. Handle multiple components of
5125 DEBUG_FILE_DIRECTORY.
5127 2012-05-10 Tom Tromey <tromey@redhat.com>
5129 * dwarf2read.c (recursively_write_psymbols): New function.
5130 (write_psymtabs_to_index): Use it.
5132 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5134 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5135 (load_partial_comp_unit): Update.
5136 (queue_comp_unit): Add argument 'pretend_language'.
5137 (process_queue): Update.
5138 (psymtab_to_symtab_1): Skip dependencies that have a user.
5139 (load_partial_comp_unit_reader): Give meaning to the 'data'
5141 (load_full_comp_unit): Add 'pretend_language' argument.
5142 (process_full_comp_unit): Add 'pretend_language' argument. Set
5144 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5146 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5147 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5149 (prepare_one_comp_unit): Add 'pretend_language' argument.
5151 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5152 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5153 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5154 (dw2_do_instantiate_symtab): Check whether symtab was read in
5156 (dw2_instantiate_symtab): Add assertion. Call
5157 process_cu_includes.
5158 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5159 (partial_symtab_p): New typedef.
5160 (set_partial_user): New function.
5161 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5162 (scan_partial_symbols): Add imported CU to imported_symtabs.
5163 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5164 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5165 (get_symtab, recursively_compute_inclusions)
5166 (compute_symtab_includes, process_cu_includes)
5167 (process_imported_unit_die): New functions.
5168 (process_die) <DW_TAG_imported_unit>: New case.
5169 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5171 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5173 (struct partial_die_info) <locdesc>: Remove.
5175 (process_psymtab_comp_unit): Add 'read_partial' argument.
5177 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5178 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5179 (add_partial_symbol): Update.
5180 (process_die): Handle DW_TAG_partial_unit.
5181 (read_file_scope): Update comment.
5182 (load_partial_dies): Handle DW_TAG_imported_unit.
5183 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5184 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5186 2012-05-10 Tom Tromey <tromey@redhat.com>
5188 * cc-with-dwz.sh: New file.
5190 2012-05-10 Tom Tromey <tromey@redhat.com>
5192 * symtab.h (struct symtab) <includes, user>: New fields.
5193 * block.h (struct block_iterator) <d, idx, which>: New fields.
5194 * block.c (initialize_block_iterator, find_iterator_symtab)
5195 (block_iterator_step, block_iter_name_step)
5196 (block_iter_match_step): New functions.
5197 (block_iterator_first, block_iterator_next)
5198 (block_iter_name_first, block_iter_name_next)
5199 (block_iter_match_first, block_iter_match_next): Rewrite.
5200 (get_block_symtab): New function.
5202 2012-05-10 Tom Tromey <tromey@redhat.com>
5204 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5206 * jit.c (finalize_symtab): Use allocate_global_block,
5208 * buildsym.c (finish_block_internal): New function, from old
5210 (finish_block): Rewrite.
5211 (end_symtab): Use finish_block_internal, set_block_symtab.
5212 * block.h (struct global_block): New.
5213 (allocate_global_block, set_block_symtab): Declare.
5214 * block.c (allocate_global_block, set_block_symtab): New
5217 2012-05-10 Tom Tromey <tromey@redhat.com>
5219 * psymtab.c (partial_map_expand_apply): Add assertion.
5220 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5221 (psymtab_to_symtab): Find unshared psymtab.
5222 (dump_psymtab): Print including psymtabs.
5223 (recursively_search_psymtabs): New function.
5224 (expand_symtabs_matching_via_partial): Use it.
5225 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5227 (enum psymtab_search_status): New.
5229 2012-05-10 Tom Tromey <tromey@redhat.com>
5231 * tracepoint.c (scope_info): Update.
5232 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5233 (find_pc_sect_symtab, search_symbols)
5234 (default_make_symbol_completion_list_break_on)
5235 (make_file_symbol_completion_list): Update.
5236 * symmisc.c (dump_symtab_1): Update.
5237 * stack.c (print_frame_args, iterate_over_block_locals)
5238 (print_frame_labels, iterate_over_block_arg_vars): Update.
5239 * python/py-block.c (block_object) <dict>: Remove.
5241 <iter>: Change type.
5242 (blpy_iter): Update.
5243 (blpy_block_syms_iternext): Update.
5244 * psymtab.c (map_block): Use block iterators.
5245 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5246 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5247 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5248 * infrun.c (check_exception_resume): Update.
5249 * cp-support.c (make_symbol_overload_list_block): Update.
5250 * coffread.c (patch_opaque_types): Update.
5251 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5252 * block.h (struct block_iterator): New.
5253 (block_iterator_first, block_iterator_next, block_iter_name_first)
5254 (block_iter_name_next, block_iter_match_first)
5255 (block_iter_match_next): Declare.
5256 (ALL_BLOCK_SYMBOLS): Redefine.
5257 * block.c (block_iterator_first, block_iterator_next)
5258 (block_iter_name_first, block_iter_name_next)
5259 (block_iter_match_first, block_iter_match_next): New functions.
5260 * ada-lang.c (ada_add_block_symbols)
5261 (ada_make_symbol_completion_list): Use block iterator.
5263 2012-05-10 Tom Tromey <tromey@redhat.com>
5265 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5266 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5267 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5268 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5269 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5272 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5274 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5275 print-file-var-lib2.c, print-file-var-main.c and
5276 print-file-var.exp (located in gdb/testsuite/gdb.base).
5278 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5280 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5281 try locating the symbol in the symbol's own objfile first, before
5282 extending the search to all objfiles.
5283 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5284 out of lookup_symbol_aux_symtabs.
5285 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5286 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5287 Do not search EXCLUDE_OBJFILE.
5288 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5289 (lookup_symbol_global): Search for matches in the block's objfile
5290 first, before searching all other objfiles.
5292 2012-05-10 Tristan Gingold <gingold@adacore.com>
5294 * printcmd.c (set_command): Add pre/post inc/dec.
5296 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5298 * gdb.1: Document -ex option.
5300 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5302 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5303 * inferior.h (AT_SYMBOL): Delete.
5305 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5307 * mips-tdep.c (mips_push_dummy_code): New function.
5308 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5309 ON_STACK and install mips_push_dummy_code as our gdbarch
5310 push_dummy_code routine.
5312 2012-05-09 Pedro Alves <palves@redhat.com>
5314 * target.c (set_maintenance_target_async_permitted): Rename to ...
5315 (set_target_async_command): ... this.
5316 (show_maintenance_target_async_permitted): Rename to ...
5317 (show_target_async_command): ... this.
5318 (initialize_targets): Adjust.
5320 2012-05-08 Doug Evans <dje@google.com>
5322 * go-exp.y (classify_name): Add missing assignment of fields of
5325 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5327 Display the ">" prompt in interactive mode while reading canned
5328 commands, even when the current interpreter is MI.
5330 * interps.c (interp_set_temp): New function.
5332 * interps.h (interp_set_temp): Add prototype.
5334 * cli/cli-script.c (restore_interp): New cleanup function.
5335 (read_command_lines): Temporarily override the current interpreter
5336 with CLI and arrange for restoring the original one.
5338 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5340 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5342 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5344 * probe.c (parse_probes): Move conditional to check for
5345 debuginfo files from here...
5346 * stap-probe.c (stap_get_probes): ... to here.
5348 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5349 H.J. Lu <hongjiu.lu@intel.com>
5351 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5352 `movl %esp, %ebp' for the X32 ABI.
5354 2012-05-07 Tom Tromey <tromey@redhat.com>
5356 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5358 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5359 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5360 (dwarf_stack_op_name): Remove.
5361 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5362 (decode_locdesc): Use get_DW_OP_name.
5363 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5364 (dwarf2_compile_expr_to_ax): Likewise.
5365 (disassemble_dwarf_expression): Likewise.
5366 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5368 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5370 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5371 (sh_linux_sigtramp_cache): New function.
5372 (sh_linux_sigreturn_init): New function.
5373 (sh_linux_rt_sigreturn_init): New function.
5374 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5376 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5378 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5379 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5380 (sh_linux_init_abi): Add init calls to register new tramp_frame
5381 definitions under 32-bit SH, update comments.
5383 2012-05-07 Pedro Alves <palves@redhat.com>
5387 * amd64-linux-tdep.c: Include glibc-tdep.h.
5388 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5389 gdbarch_skip_solib_resolver callback.
5391 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5393 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5394 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5395 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5396 (add_auto_load_safe_path): Change the error message.
5397 (_initialize_auto_load): Change the "safe-path" help text.
5398 * configure: Regenerate
5399 * configure.ac (--without-auto-load-safe-path): Set
5400 WITH_AUTO_LOAD_SAFE_PATH to /.
5402 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5404 * stap-probe.h: Do not include unecessary `probe.h'.
5406 2012-05-05 Alan Modra <amodra@gmail.com>
5408 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5409 bfd_und_section_ptr.
5410 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5411 and bfd_com_section_ptr.
5413 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5415 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5417 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5419 * windows-nat.h (segment_register_p_ftype): New typedef.
5420 (windows_set_segment_register_p): Add declaration.
5421 * windows-nat.c (segment_register_p): New static global.
5422 (windows_set_segment_register_p): New function.
5423 (do_windows_fetch_inferior_registers): Add special handling
5424 for segment registers.
5425 * amd64-windows-nat.c: #include "amd64-tdep.h".
5426 (amd64_windows_segment_register_p): New function.
5427 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5428 * i386-windows-nat.c: #include "i386-tdep.h".
5429 (i386_windows_segment_register_p): New function.
5430 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5432 2012-05-04 Tristan Gingold <gingold@adacore.com>
5434 * printcmd.c (set_command): Emit a warning if the expression is not
5437 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5439 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5442 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5444 * stap-probe.c (stap_is_operator): Change declaration.
5445 (stap_get_opcode): Change return value.
5446 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5447 `stap_parse_argument_1'.
5449 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5451 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5454 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5456 Add two new methods global_block and static_block to gdb.Symtab
5458 * NEWS (Python scripting): Add entry about the new methods.
5459 * python/py-symtab.c (stpy_global_block): New function which
5460 implements the gdb.Symtab.global_block() method.
5461 (stpy_static_block): New function which implements the
5462 gdb.Symtab.static_block() method.
5463 (symtab_object_methods): Add entries for the two new methods.
5465 2012-05-03 Doug Evans <dje@google.com>
5467 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5470 2012-05-03 Yao Qi <yao@codesourcery.com>
5472 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5474 (i386_process_record): Ditto.
5476 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5478 * infcall.c (unwind_on_signal_p): Make static.
5480 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5482 * sol-thread.c (solaris_pid_to_str): Make static.
5483 (_initialize_sol_thread): Add prototype.
5485 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5487 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5489 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5491 * MAINTAINERS: Remove myself.
5493 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 Fix --without-auto-load-safe-path for MS-Windows host platform.
5496 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5498 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5500 * gdb_curses.h: Undefine KEY_EVENT before including curses
5501 headers. Move "#undef MOUSE_MOVED" before any curses header
5504 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5506 * features/i386/i386-mmx-linux.c: Regenerate.
5507 * features/rs6000/powerpc-32.c: Likewise.
5508 * features/rs6000/powerpc-32l.c: Likewise.
5509 * features/rs6000/powerpc-403.c: Likewise.
5510 * features/rs6000/powerpc-403gc.c: Likewise.
5511 * features/rs6000/powerpc-405.c: Likewise.
5512 * features/rs6000/powerpc-505.c: Likewise.
5513 * features/rs6000/powerpc-601.c: Likewise.
5514 * features/rs6000/powerpc-602.c: Likewise.
5515 * features/rs6000/powerpc-603.c: Likewise.
5516 * features/rs6000/powerpc-604.c: Likewise.
5517 * features/rs6000/powerpc-64.c: Likewise.
5518 * features/rs6000/powerpc-64l.c: Likewise.
5519 * features/rs6000/powerpc-750.c: Likewise.
5520 * features/rs6000/powerpc-860.c: Likewise.
5521 * features/rs6000/powerpc-e500.c: Likewise.
5522 * features/rs6000/powerpc-e500l.c: Likewise.
5523 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5524 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5525 * features/rs6000/rs6000.c: Likewise.
5527 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5529 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5531 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5532 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5533 (stap_parse_argument) <e>: Likewise.
5534 (handle_stap_probe) <byte_order>: Likewise.
5536 2012-04-30 Doug Evans <dje@google.com>
5538 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5539 init_and_read_dies_worker. All callers updated.
5540 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5541 replaced with init_cutu_and_read_dies.
5542 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5543 (find_partial_die): Remove FIXME. Don't free current CU.
5545 2012-04-30 Sterling Augustine <saugustine@google.com>
5547 * contrib: New directory.
5548 * contrib/test_pubnames_and_indexes.py: New file.
5550 2012-04-30 Doug Evans <dje@google.com>
5552 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5553 All callers updated.
5554 (init_cu_die_reader): Verify the section is non-empty.
5555 (dwarf_decode_line_header): Don't dereference section->asection
5556 until we know the section is present.
5558 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5560 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5563 2012-04-29 Yao Qi <yao@codesourcery.com>
5565 * gdb-code-style.el: New hook gdb-markup-hook
5566 and gdb-comment-hook.
5568 2012-04-28 Doug Evans <dje@google.com>
5570 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5571 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5573 * symfile.h (dwarf2_debug_sections): New member addr.
5574 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5575 (ctx_no_get_addr_index): New function.
5576 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5577 (ctx_no_get_addr_index): Declare.
5578 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5579 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5580 (dwarf_expr_ctx_funcs): Update.
5581 (needs_get_addr_index): New function.
5582 (needs_frame_ctx_funcs): Update.
5583 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5584 * dwarf2read.c: #include "gdbcore.h".
5585 (dwarf2_per_objfile): New members addr, dwo_files.
5586 (dwarf2_elf_names): Add entry for addr.
5587 (struct dwo_section_names): New type.
5588 (dwo_section_names): New static global.
5589 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5590 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5591 old debug_types_section member updated to use this.
5592 Rename member debug_types_section to info_or_types_section,
5594 (signatured_type): Rename member type_offset to type_offset_in_tu,
5595 all uses updated. New member type_offset_in_section.
5596 (struct dwo_sections): New type.
5597 (struct dwo_unit): New type.
5598 (struct dwo_file): New type.
5599 (die_reader_specs): New member dwo_file.
5600 (dwarf2_locate_sections): Watch for .debug_addr.
5601 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5602 (dwarf2_read_section): Get bfd of section from bfd's asection,
5604 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5605 (create_signatured_type_table_from_index): Initialize
5606 sig_type->info_or_types_section.
5607 (dw2_get_file_names): Statement lists for type units with DWO files
5608 live in the DWO file.
5609 (create_debug_types_hash_table): New function.
5610 (create_all_type_units): Rewrite.
5611 (init_cu_die_reader): New arg dwo_file, all callers updated.
5612 (init_and_read_dies_worker): Get section from
5613 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5614 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5615 continue reading the CU/TU from there.
5616 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5617 updated. Get section from this_cu->info_or_types_section.
5618 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5619 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5620 DW_FORM_GNU_str_index.
5621 (hash_dwo_file, eq_dwo_file): New functions.
5622 (allocate_dwo_file_hash_table): New function.
5623 (hash_dwo_unit, eq_dwo_unit): New functions.
5624 (allocate_dwo_unit_table): New function.
5625 (dwarf2_locate_dwo_sections): New function.
5626 (struct create_dwo_info_table_data): New type.
5627 (create_debug_info_hash_table_reader): New function.
5628 (create_debug_info_hash_table): New function.
5629 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5630 (lookup_dwo_file): New function.
5631 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5632 (free_dwo_file, free_dwo_file_cleanup): New functions.
5633 (free_dwo_file_from_slot, free_dwo_files): New functions.
5634 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5635 (dwarf2_record_block_ranges): Ditto.
5636 (read_partial_die): Ditto.
5637 (process_enumeration_scope): Update to use type_offset_in_section.
5638 (read_full_die_1): New function.
5639 (read_full_die): Rewrite.
5640 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5641 DW_FORM_GNU_str_index.
5642 (read_addr_index_1, read_addr_index): New functions.
5643 (read_addr_index_from_leb128): New function.
5644 (struct dwarf2_read_addr_index_data): New type.
5645 (dwarf2_read_addr_index_reader): New function.
5646 (dwarf2_read_addr_index): New function.
5647 (read_str_index): New function.
5648 (leb128_size): New function.
5649 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5650 If processing a type unit from a DWO file, get the line section
5652 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5653 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5654 DW_FORM_GNU_str_index.
5655 (lookup_die_type): Check whether section offset of type's die is
5656 known before looking it up. Remove assert. Condition can
5657 legimately happen for inter-cu type references.
5658 (dwarf_attr_name): Handle Fission attributes.
5659 (dwarf_form_name): Handle Fission forms.
5660 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5661 DW_FORM_GNU_str_index.
5662 (follow_die_sig): Update to use type_offset_in_section.
5663 (decode_locdesc): New case DW_OP_GNU_addr_index.
5664 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5665 DW_FORM_GNU_str_index.
5666 (cu_debug_loc_section): New function.
5667 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5668 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5669 Free DWO files if present.
5670 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5672 Refactor DIE reading.
5673 * dwarf2read.c (dwarf2_per_objfile): Replace members
5674 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5675 (die_reader_specs): New member "die_section". Temporarily make
5676 member "buffer" non-const, pending constifying all info_ptr uses.
5677 (die_reader_func_ftype): New typedef.
5678 (dw2_get_file_names_reader): New function.
5679 (dw2_get_file_names): Rewrite.
5680 (read_and_check_type_unit_head): Rename arg type_offset to
5682 (create_all_type_units): Improve debugging message.
5683 Improve dummy type unit check.
5684 (init_cu_die_reader): New arg "section". All callers updated.
5685 (init_and_read_dies_worker): New function.
5686 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5687 (init_cutu_and_read_dies_no_follow): New function.
5688 (init_cutu_and_read_dies_simple): New function.
5689 (process_psymtab_comp_unit_reader): New function.
5690 (process_psymtab_comp_unit): Delete args section,
5691 is_debug_types_section. Rewrite. All callers updated.
5692 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5693 All callers updated. Rewrite.
5694 (load_partial_comp_unit_reader): New function.
5695 (load_partial_comp_unit): Rewrite.
5696 (skip_children): New arg reader. Delete args buffer, cu.
5697 All callers updated.
5698 (skip_one_die): New arg reader. Delete args buffer, cu.
5699 All callers updated.
5700 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5701 All callers updated.
5702 (load_full_comp_unit_reader): New function.
5703 (load_full_comp_unit): Rewrite.
5704 (read_comp_unit): Delete.
5705 (read_die_and_children_1): Delete, contents moved ...
5706 (read_die_and_children): ... here.
5707 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5708 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5709 All callers updated.
5710 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5711 All callers updated.
5712 (find_partial_die): Rewrite load_all_dies support.
5713 (read_attribute_value): New arg reader. Delete args abfd, cu.
5714 All callers updated.
5715 (read_attribute): New arg reader. Delete args abfd, cu.
5716 All callers updated.
5717 (load_full_type_unit): Add assert.
5718 (read_signatured_type_reader): New function.
5719 (read_signatured_type): Rewrite.
5720 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5721 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5722 All callers updated. Set per_cu->cu = NULL after freeing it.
5723 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5724 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5725 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5726 (set_die_type): Update.
5727 (get_die_type_at_offset): Update.
5728 (read_file_scope): Call prepare_one_comp_unit.
5729 (read_type_unit_scope): Ditto.
5730 (prepare_one_comp_unit): Set producer if present.
5732 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5734 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5735 gettext function on `error'.
5737 2012-04-27 Doug Evans <dje@google.com>
5739 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5742 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5743 Tom Tromey <tromey@redhat.com>
5745 * breakpoint.c (struct breakpoint_objfile_data)
5746 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5747 <exception_probes>: New fields.
5748 (free_breakpoint_probes): New function.
5749 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5750 `_Unwind_DebugHook'.
5751 (create_exception_master_breakpoint): Likewise.
5752 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5753 * infrun.c: Including necessary header files for handling SystemTap
5755 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5756 via SystemTap probes.
5757 (check_exception_resume): Remove `func' argument. Handle exception
5758 unwinding breakpoint set via a SystemTap probe.
5759 (insert_exception_resume_from_probe): New function.
5761 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5762 Tom Tromey <tromey@redhat.com>
5763 Jan Kratochvil <jan.kratochvil@redhat.com>
5765 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5766 (COMMON_OBS): Likewise.
5767 (HFILES_NO_SRCDIR): Add `probe'.
5768 * NEWS: Mention support for static and SystemTap probes.
5769 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5770 SystemTap probes' arguments parser.
5771 * arm-linux-tdep.c: Including headers needed to perform the parsing
5772 of SystemTap probes' arguments.
5773 (arm_stap_is_single_operand): New function.
5774 (arm_stap_parse_special_token): Likewise.
5775 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5776 probes' arguments parser.
5777 * ax-gdb.c (require_rvalue): Removing static declaration.
5778 (gen_expr): Likewise.
5779 * ax-gdb.h (gen_expr): Declaring function.
5780 (require_rvalue): Likewise.
5781 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5782 (bkpt_probe_breakpoint_ops): New variable.
5783 (momentary_breakpoint_from_master): Set the `probe' value.
5784 (add_location_to_breakpoint): Likewise.
5785 (break_command_1): Using proper breakpoint_ops according to the
5786 argument passed by the user in the command line.
5787 (bkpt_probe_insert_location): New function.
5788 (bkpt_probe_remove_location): Likewise.
5789 (bkpt_probe_create_sals_from_address): Likewise.
5790 (bkpt_probe_decode_linespec): Likewise.
5791 (tracepoint_probe_create_sals_from_address): Likewise.
5792 (tracepoint_probe_decode_linespec): Likewise.
5793 (tracepoint_probe_breakpoint_ops): New variable.
5794 (trace_command): Using proper breakpoint_ops according to the
5795 argument passed by the user in the command line.
5796 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5797 static probes on breakpoints and tracepoints.
5798 * breakpoint.h (struct bp_location) <probe>: New field.
5799 * cli-utils.c (skip_spaces_const): New function.
5800 (extract_arg): Likewise.
5801 * cli-utils.h (skip_spaces_const): Likewise.
5802 (extract_arg): Likewise.
5803 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5804 * configure.ac: Append `stap-probe.o' to be generated when ELF
5806 * configure: Regenerate.
5807 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5808 * elfread.c: Include `probe.h' and `arch-utils.h'.
5809 (probe_key): New variable.
5810 (elf_get_probes): New function.
5811 (elf_get_probe_argument_count): Likewise.
5812 (elf_evaluate_probe_argument): Likewise.
5813 (elf_compile_to_ax): Likewise.
5814 (elf_symfile_relocate_probe): Likewise.
5815 (stap_probe_key_free): Likewise.
5816 (elf_probe_fns): New variable.
5817 (elf_sym_fns): Add `sym_probe_fns' value.
5818 (elf_sym_fns_lazy_psyms): Likewise.
5819 (elf_sym_fns_gdb_index): Likewise.
5820 (_initialize_elfread): Initialize objfile cache for static
5822 * gdb_vecs.h (struct probe): New forward declaration.
5823 (probe_p): New VEC declaration.
5824 * gdbarch.c: Regenerate.
5825 * gdbarch.h: Regenerate.
5826 * gdbarch.sh (stap_integer_prefix): New variable.
5827 (stap_integer_suffix): Likewise.
5828 (stap_register_prefix): Likewise.
5829 (stap_register_suffix): Likewise.
5830 (stap_register_indirection_prefix): Likewise.
5831 (stap_register_indirection_suffix): Likewise.
5832 (stap_gdb_register_prefix): Likewise.
5833 (stap_gdb_register_suffix): Likewise.
5834 (stap_is_single_operand): New function.
5835 (stap_parse_special_token): Likewise.
5836 (struct stap_parse_info): Forward declaration.
5837 * i386-tdep.c: Including headers needed to perform the parsing
5838 of SystemTap probes' arguments.
5839 (i386_stap_is_single_operand): New function.
5840 (i386_stap_parse_special_token): Likewise.
5841 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5842 probes' arguments parser.
5843 * i386-tdep.h (i386_stap_is_single_operand): New function.
5844 (i386_stap_parse_special_token): Likewise.
5845 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5846 * mipsread.c (ecoff_sym_fns): Likewise.
5847 * objfiles.c (objfile_relocate1): Support relocation for static
5849 * parse.c (prefixify_expression): Remove static declaration.
5850 (initialize_expout): Likewise.
5851 (reallocate_expout): Likewise.
5852 * parser-defs.h (initialize_expout): Declare function.
5853 (reallocate_expout): Likewise.
5854 (prefixify_expression): Likewise.
5855 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5856 of SystemTap probes' arguments.
5857 (ppc_stap_is_single_operand): New function.
5858 (ppc_stap_parse_special_token): Likewise.
5859 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5860 probes' arguments parser.
5861 * probe.c: New file, for generic statically defined probe support.
5862 * probe.h: Likewise.
5863 * s390-tdep.c: Including headers needed to perform the parsing of
5864 SystemTap probes' arguments.
5865 (s390_stap_is_single_operand): New function.
5866 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5867 probes' arguments parser.
5868 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5869 * stap-probe.c: New file, for SystemTap probe support.
5870 * stap-probe.h: Likewise.
5871 * symfile.h: Include `gdb_vecs.h'.
5872 (struct sym_probe_fns): New struct.
5873 (struct sym_fns) <sym_probe_fns>: New field.
5874 * symtab.c (init_sal): Initialize `probe' field.
5875 * symtab.h (struct probe): Forward declaration.
5876 (struct symtab_and_line) <probe>: New field.
5877 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5879 (stop_tracing): Likewise.
5880 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5882 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5883 Tom Tromey <tromey@redhat.com>
5885 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5886 and to compile agent expressions.
5887 * infrun.c (siginfo_make_value): New argument `ignore'.
5888 (siginfo_funcs): New struct.
5889 (_initialize_infrun): New argument when calling
5890 `create_internalvar_type_lazy'.
5891 * thread.c (thread_id_make_value): New argument `ignore'.
5892 (thread_funcs): New struct.
5893 (_initialize_thread): New argument when calling
5894 `create_internalvar_type_lazy'.
5895 * tracepoint.c (sdata_make_value): New argument `ignore'.
5896 (sdata_funcs): New struct.
5897 (_initialize_tracepoint): New argument when calling
5898 `create_internalvar_type_lazy'.
5899 * value.c (make_value): New struct.
5900 (create_internalvar_type_lazy): New argument `data'.
5901 (compile_internalvar_to_ax): New function.
5902 (value_of_internalvar): Properly handling `make_value' case.
5903 (clear_internalvar): Likewise.
5904 (show_convenience): Adding `TRY_CATCH' block.
5905 * value.h (internalvar_make_value): Delete, replace by...
5906 (struct internalvar_funcs): ... this.
5907 (create_internalvar_type_lazy) <fun>: Delete argument.
5908 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5909 (compile_internalvar_to_ax): New function.
5910 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5911 (tlb_funcs): New struct.
5912 (_initialize_windows_tdep): New argument when calling
5913 `create_internalvar_type_lazy'.
5915 2012-04-27 Mark Wielaard <mjw@redhat.com>
5917 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5918 see whether it is an address or a constant offset from DW_AT_low_pc.
5919 (dwarf2_record_block_ranges): Likewise.
5920 (read_partial_die): Likewise.
5922 2012-04-26 Mark Wielaard <mjw@redhat.com>
5924 * MAINTAINERS (Write After Approval): Add myself to the list.
5926 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5928 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5929 (proc_prettyprint_signal): Likewise.
5930 (proc_prettyprint_faultset): Likewise.
5931 (proc_prettyprint_fault): Likewise.
5932 (proc_prettyprint_actionset): Likewise.
5933 (proc_prettyprint_flags): Move to new proc-flags.c section.
5934 (proc_prettyfprint_flags): New prototype.
5935 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5936 (proc_syscall, proc_cursig): Likewise.
5937 (proc_set_kill_on_last_close): Likewise.
5938 (proc_unset_kill_on_last_close): Likewise.
5939 (proc_set_watchpoint): Make static.
5940 (proc_delete_dead_threads): Likewise.
5941 (procfs_set_watchpoint): Likewise.
5942 (_initialize_procfs): Add prototype.
5943 * proc-events.c: Include proc-utils.h.
5944 (init_syscall_table): Make static.
5945 * proc-api.c (_initialize_proc_api): Add prototype.
5946 * proc-flags.c: Include proc-utils.h.
5948 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5950 * configure.ac: Add AC_ARG_PROGRAM.
5951 * configure: Regenerate.
5953 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5955 Fix DW_AT_lower_bound defaults for DWARF-4+.
5956 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5957 high. New variable low_default_is_valid. Implement DWARF-4+
5958 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5959 no default by the DWARF standard.
5961 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5962 Maciej W. Rozycki <macro@codesourcery.com>
5964 * infrun.c (handle_inferior_event): Move the check for return
5965 trampolines ahead of the check for function trampolines.
5966 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5967 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5968 (mips_str_mips16_ret_stub): Likewise.
5969 (mips_str_call_fp_stub): Likewise.
5970 (mips_str_call_stub): Likewise.
5971 (mips_str_fn_stub): Likewise.
5972 (mips_str_pic): Likewise.
5973 (mips_in_frame_stub): New function.
5974 (mips_unwind_pc): Return the return address rather than the PC
5975 if the PC of an intermediate frame is inside a call thunk.
5976 (mips_is_stub_suffix): New function.
5977 (mips_is_stub_mode): Likewise.
5978 (mips_get_mips16_fn_stub_pc): Likewise.
5979 (mips_skip_mips16_trampoline_code): Update to handle all the
5980 currently generated stub types. Don't recurse into __fn_stub
5981 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5982 Use cooked register accesses.
5983 (mips_in_return_stub): Reintroduce function.
5984 (mips_skip_trampoline_code): Traverse trampolines recursively.
5985 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5987 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5991 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5993 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5994 * features/arm-with-m-vfp-d16.xml: New file. Describes
5995 Cortex-M with VFPv4-sp-d16 FPU register layout.
5996 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5997 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5998 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5999 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6000 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6002 2012-04-25 Doug Evans <dje@google.com>
6004 * cli/cli-decode.c (print_doc_line): Use stream instead of
6007 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6009 * features/arm-with-iwmmxt.c: Regenerate.
6010 * features/arm-with-m-fpa-layout.c: Likewise.
6011 * features/arm-with-m.c: Likewise.
6012 * features/arm-with-neon.c: Likewise.
6013 * features/arm-with-vfpv2.c: Likewise.
6014 * features/arm-with-vfpv3.c: Likewise.
6015 * features/mips-dsp-linux.c: Likewise.
6016 * features/mips-linux.c: Likewise.
6017 * features/mips64-dsp-linux.c: Likewise.
6018 * features/mips64-linux.c: Likewise.
6019 * features/s390-linux32.c: Likewise.
6020 * features/s390-linux32v1.c: Likewise.
6021 * features/s390-linux32v2.c: Likewise.
6022 * features/s390-linux64.c: Likewise.
6023 * features/s390-linux64v1.c: Likewise.
6024 * features/s390-linux64v2.c: Likewise.
6025 * features/s390x-linux64.c: Likewise.
6026 * features/s390x-linux64v1.c: Likewise.
6027 * features/s390x-linux64v2.c: Likewise.
6028 * features/tic6x-c62x-linux.c: Likewise.
6029 * features/tic6x-c62x.c: Likewise.
6030 * features/tic6x-c64x-linux.c: Likewise.
6031 * features/tic6x-c64x.c: Likewise.
6032 * features/tic6x-c64xp-linux.c: Likewise.
6033 * features/tic6x-c64xp.c: Likewise.
6034 * target-descriptions.c: Only generate `field_type' and `type'
6035 variables when needed.
6037 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6039 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6041 2012-04-25 Doug Evans <dje@google.com>
6043 Initial pass at Go language support.
6045 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6047 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6048 (YYFILES): Add go-exp.c.
6049 (YYOBJ): Add go-exp.o.
6050 (local-maintainer-clean): Delete go-exp.c.
6051 * defs.h (enum language): Add language_go.
6052 * dwarf2read.c: #include "go-lang.h".
6053 (fixup_go_packaging): New function.
6054 (process_full_comp_unit): Call it when processing Go CUs.
6055 (dwarf2_physname): Add Go support.
6056 (read_file_scope): Handle missing language spec for GNU Go.
6057 (set_cu_language): Handle DW_LANG_Go.
6058 * go-exp.y: New file.
6059 * go-lang.h: New file.
6060 * go-lang.c: New file.
6061 * go-typeprint.c: New file.
6062 * go-valprint.c: New file.
6063 * symtab.c: #include "go-lang.h".
6064 (symbol_set_language): Handle language_go.
6065 (symbol_find_demangled_name, symbol_set_names): Ditto.
6066 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6068 2012-04-24 Jim Meyering <meyering@redhat.com>
6070 avoid a few strncpy-induced buffer overruns
6071 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6072 fname and psargs before trying to concatenate.
6073 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6074 "name" before applying strchr.
6076 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6078 * CONTRIBUTE: Use unified diff instead of context diff when
6081 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6083 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6084 code. Handle JR.HB correctly.
6086 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6089 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6090 with the other MIPS16 helpers.
6092 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6094 * observer.sh: Conditionally declare `args', thus cleaning up
6095 unused instances of this variable.
6097 2012-04-24 Yao Qi <yao@codesourcery.com>
6099 Revert this patch to allow breakpoint always-inserted
6101 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6102 * breakpoint.c: Include record.h.
6103 (breakpoints_always_inserted_mode): Return false when the record
6106 * breakpoint.c (iterate_over_bp_locations): New.
6107 * breakpoint.h: Declare.
6108 New typedef walk_bp_location_callback.
6109 * record.c (record_open): Call record_init_record_breakpoints.
6110 (record_sync_record_breakpoints): New.
6111 (record_init_record_breakpoints): New.
6112 * NEWS: Mention supporting breakpoint always-inserted mode in
6115 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6117 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6120 2012-04-24 Yao Qi <yao@codesourcery.com>
6122 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6123 (is_catchpoint): ... it.
6124 (print_one_breakpoint_location): Caller update.
6125 * breakpoint.h: Update declaration.
6127 2012-04-23 David S. Miller <davem@davemloft.net>
6129 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6131 2012-04-23 Tom Tromey <tromey@redhat.com>
6133 * buildsym.c (add_free_pendings): Remove.
6134 * buildsym.h (add_free_pendings): Remove.
6136 2012-04-23 Doug Evans <dje@google.com>
6138 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6139 attr.u.unsnd instead of attr.u.addr.
6140 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6141 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6143 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6144 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6146 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6148 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6150 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6151 (mips_o32_return_value): Likewise.
6152 (mips_o64_return_value): Likewise.
6154 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6156 * ada-lang.c (ada_evaluate_subexp): Add cases for
6157 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6158 their treatment in eval.c.
6160 2012-04-21 David S. Miller <davem@davemloft.net>
6162 * sparc-tdep.c (X_DISP10): Define.
6163 (sparc_analyze_control_transfer): Handle compare-and-branch.
6165 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6167 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6168 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6170 2012-04-20 Nigel Stephens <nigel@mips.com>
6171 Maciej W. Rozycki <macro@codesourcery.com>
6173 * mips-tdep.c (mips_float_register_p): New function.
6174 (mips_convert_register_float_case_p): Use mips_float_register_p.
6175 (mips_register_type): Likewise.
6176 (mips_print_register): Likewise.
6177 (print_gp_register_row): Likewise.
6178 (mips_print_registers_info): Likewise.
6180 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6182 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6185 2012-04-20 Andrew Pinski <apinski@cavium.com>
6187 * MAINTAINERS (Write After Approval): Add myself to the list.
6189 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6191 * MAINTAINERS: Update my e-mail address.
6193 2012-04-20 Pedro Alves <palves@redhat.com>
6195 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6197 * configure: Regenerate.
6199 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6201 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6203 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6205 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6207 Fix compilation compatibility with python-2.4
6208 * python/py-type.c (convert_field): Cast ADDRSTRING for
6209 PyObject_SetAttrString as non-const. New comment.
6211 2012-04-19 Tom Tromey <tromey@redhat.com>
6213 * top.c (quit_target): Use all_cleanups.
6214 * main.c (captured_command_loop): Use all_cleanups.
6215 * exceptions.c (throw_exception): Use all_cleanups.
6217 2012-04-19 Pedro Alves <palves@redhat.com>
6219 * Makefile.in (GNULIB_BUILDDIR): New.
6220 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6221 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6222 (CLEANDIRS). Remove gnulib/import.
6223 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6225 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6226 (gnulib/import/Makefile): Replace gnulib/import with
6227 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6228 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6229 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6230 acx_configure_dir.m4.
6231 * acinclude.m4: Include acx_configure_dir.m4.
6232 * acx_configure_dir.m4: New file.
6233 * aclocal.m4: Regenerate.
6234 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6235 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6236 (GNULIB): New variable.
6237 (GNULIB_STDINT_H): Adjust.
6238 (AC_OUTPUT): Don't output gnulib/Makefile.
6239 * gdb/defs.h: Include build-gnulib/config.h.
6240 * aclocal.m4: Regenerate.
6241 * config.in: Regenerate.
6242 * configure: Regenerate.
6244 * gnulib/Makefile.in: New file.
6245 * gnulib/configure.ac: New file.
6246 * gnulib/aclocal.m4: New file.
6247 * gnulib/config.in: New file.
6248 * gnulib/configure: New file.
6249 * gnulib/: Re-run gnulib-tool to adjust.
6251 2012-04-19 Doug Evans <dje@google.com>
6253 * cleanups.h (struct cleanup): Move to cleanups.c.
6254 (make_cleanup_dtor_ftype): New typedef.
6255 (make_cleanup_dtor): Use it.
6256 (ALL_CLEANUPS): Replace with ...
6257 (all_cleanups): ... this. Declare. All uses updated.
6258 * cleanups.c: #include "gdb_assert.h".
6259 (sentinel_cleanup): New static global.
6260 (SENTINEL_CLEANUP): Define.
6261 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6262 (make_my_cleanup2): Assert result is non-NULL.
6263 (all_cleanups): New function.
6264 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6267 2012-04-19 Pedro Alves <palves@redhat.com>
6269 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6270 Adjust paths to gnulib imported files.
6272 2012-04-19 Pedro Alves <palves@redhat.com>
6274 * gnulib/: Move whole directory ...
6275 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6276 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6277 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6278 (aclocal_m4_deps): Adjust.
6279 * aclocal.m4: Regenerate.
6280 * configure: Regenerate.
6281 * configure.ac: Adjust AC_OUTPUT output.
6283 2012-04-19 Yao Qi <yao@codesourcery.com>
6285 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6287 * vec.c: Move it ...
6288 * common/vec.c: ... here.
6289 * vec.h: Move it ...
6290 * common/vec.h: ... here.
6292 2012-04-19 Yao Qi <yao@codesourcery.com>
6294 * gdb-code-style.el: New.
6296 2012-04-18 Pedro Alves <palves@redhat.com>
6298 Update gnulib from latest git.
6299 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6301 * gnulib/Makefile.am: Update.
6302 * gnulib/dummy.c: Update.
6303 * gnulib/extra/arg-nonnull.h: Update.
6304 * gnulib/extra/c++defs.h: Update.
6305 * gnulib/extra/update-copyright: Update.
6306 * gnulib/extra/warn-on-use.h: Update.
6307 * gnulib/inttypes.in.h: Update.
6308 * gnulib/m4/00gnulib.m4: Update.
6309 * gnulib/m4/extensions.m4: Update.
6310 * gnulib/m4/gnulib-cache.m4: Update.
6311 * gnulib/m4/gnulib-common.m4: Update.
6312 * gnulib/m4/gnulib-comp.m4: Update.
6313 * gnulib/m4/gnulib-tool.m4: Update.
6314 * gnulib/m4/include_next.m4: Update.
6315 * gnulib/m4/inttypes-pri.m4: Update.
6316 * gnulib/m4/inttypes.m4: Update.
6317 * gnulib/m4/longlong.m4: Update.
6318 * gnulib/m4/memchr.m4: Update.
6319 * gnulib/m4/memmem.m4: Update.
6320 * gnulib/m4/mmap-anon.m4: Update.
6321 * gnulib/m4/multiarch.m4: Update.
6322 * gnulib/m4/onceonly.m4: Update.
6323 * gnulib/m4/stddef_h.m4: Update.
6324 * gnulib/m4/stdint.m4: Update.
6325 * gnulib/m4/string_h.m4: Update.
6326 * gnulib/m4/warn-on-use.m4: Update.
6327 * gnulib/m4/wchar_h.m4: Update.
6328 * gnulib/m4/wchar_t.m4: Update.
6329 * gnulib/m4/wint_t.m4: Update.
6330 * gnulib/memchr.c: Update.
6331 * gnulib/memmem.c: Update.
6332 * gnulib/stddef.in.h: Update.
6333 * gnulib/stdint.in.h: Update.
6334 * gnulib/str-two-way.h: Update.
6335 * gnulib/string.in.h: Update.
6336 * gnulib/wchar.in.h: Update.
6338 * gnulib/extra/arg-nonnull.h: Delete.
6339 * gnulib/extra/c++defs.h: Delete.
6340 * gnulib/extra/warn-on-use.h: Delete.
6341 * gnulib/m4/wchar_h.m4: Delete.
6342 * gnulib/m4/wint_t.m4: Delete.
6343 * gnulib/wchar.in.h: Delete.
6345 * gnulib/extra/snippets/arg-nonnull.h: New.
6346 * gnulib/extra/snippets/c++defs.h: New.
6347 * gnulib/extra/snippets/warn-on-use.h: New.
6349 * aclocal.m4: Regenerate.
6350 * config.in: Regenerate.
6351 * configure: Regenerate.
6352 * gnulib/Makefile.in: Regenerate.
6354 2012-04-18 Pedro Alves <palves@redhat.com>
6356 Reimport the update-copyright module from gnulib
6357 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6359 * configure: Regenerate.
6360 * gnulib/Makefile.am: Update.
6361 * gnulib/Makefile.in: Regenerate.
6362 * gnulib/extra/update-copyright: Update.
6363 * gnulib/m4/gnulib-cache.m4: Update.
6364 * gnulib/m4/gnulib-comp.m4: Update.
6366 2012-04-18 Tristan Gingold <gingold@adacore.com>
6368 * configure.ac (aix): Put -lpthread into libs.
6369 * configure: Regenerate.
6371 2012-04-18 Tom Tromey <tromey@redhat.com>
6373 * linespec.c (convert_linespec_to_sals): Don't use
6375 (compare_msymbols): Arguments are minsym_and_objfile, not
6376 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6378 2012-04-18 Pedro Alves <palves@redhat.com>
6380 Revert gnulib/ part of:
6381 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6382 Copyright year update in most files (performed by copyright.sh).
6384 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6386 Fix 64-bit constants on 32-bit hosts.
6387 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6388 from unsigned long to ULONGEST.
6389 (read_signed_leb128): Change declaration return type from long to
6391 (dwarf2_const_value_attr): Change declaration parameter value from long
6393 (dwarf2_compute_name): Change variable value from long to LONGEST.
6394 (read_unsigned_leb128): Change return type, variable result and some
6395 casts from unsigned long to ULONGEST.
6396 (read_signed_leb128): Change return type, variable result and some
6397 casts from long to LONGEST.
6398 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6399 value from long to LONGEST.
6400 (dwarf2_const_value): Change variable value from long to LONGEST.
6401 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6402 plongest and hex_string.
6403 * symtab.h (struct general_symbol_info): Change ivalue from long to
6404 LONGEST, remove the comment.
6405 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6406 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6408 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6411 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6412 * ada-lang.c (ada_discrete_type_high_bound)
6413 (ada_discrete_type_low_bound): Fix function comment. Use
6414 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6415 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6416 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6417 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6418 Use TYPE_FIELD_ENUMVAL.
6419 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6420 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6421 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6422 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6424 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6425 * dwarf2read.c (process_enumeration_scope): Likewise.
6426 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6428 (class StructMainTypePrettyPrinter): Support also
6429 FIELD_LOC_KIND_ENUMVAL.
6430 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6432 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6433 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6434 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6435 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6437 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6438 accommodate enumval.
6439 (struct call_site): Adjust loc_kind to accommodate enumval.
6440 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6441 (TYPE_FIELD_ENUMVAL): New macros.
6442 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6443 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6445 * p-typeprint.c (pascal_type_print_base): Likewise.
6446 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6448 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6449 * python/py-type.c (convert_field): New variable addrstring. Use
6450 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6451 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6452 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6453 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6455 * valprint.c (generic_val_print): Likewise.
6457 2012-04-17 Doug Evans <dje@google.com>
6459 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6461 * dwarf2read.c: Whitespace fixes.
6462 (lookup_signatured_type): Tweak comment.
6463 (get_die_type_at_offset): Fix comment.
6465 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6467 * xcoffread.c (xcoff_secnum_to_sections): New function.
6468 (secnum_to_section, secnum_to_bfd_section): Reimplement
6469 using xcoff_secnum_to_sections. Rename "secnum" parameter
6471 (RECORD_MINIMAL_SYMBOL): Delete.
6472 (record_minimal_symbol): New function.
6473 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6474 by call to record_minimal_symbol and set misc_func_recorded
6475 to 1. Set last_csect_sec to the XCOFF section index instead
6476 of GDB's section_offset index. Update calls to
6477 prim_record_minimal_symbol_and_info to pass the BFD section
6480 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6482 * xcoffread.c (read_xcoff_symtab): Delete variables
6483 last_csect_val and last_csect_sec and associated code.
6485 2012-04-17 Doug Evans <dje@google.com>
6487 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6488 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6489 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6490 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6492 * cleanups.h: New file.
6493 * cleanups.c: New file.
6494 * Makefile.in (SFILES): Add cleanups.c.
6495 (HFILES_NO_SRCDIR): Add cleanups.h.
6496 (COMMON_OBS): Add cleanups.o.
6497 * defs.h (struct cleanup): Moved to cleanups.h.
6498 (do_cleanups,do_final_cleanups): Ditto.
6499 (discard_cleanups,discard_final_cleanups): Ditto
6500 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6501 (save_cleanups,save_final_cleanups): Ditto.
6502 (restore_cleanups,restore_final_cleanups): Ditto.
6503 (null_cleanup): Ditto.
6504 (make_my_cleanup,make_my_cleanup2): Ditto.
6505 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6506 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6507 (do_cleanups,do_final_cleanups): Ditto.
6508 (discard_cleanups,discard_final_cleanups): Ditto
6509 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6510 (save_cleanups,save_final_cleanups): Ditto.
6511 (restore_cleanups,restore_final_cleanups): Ditto.
6512 (null_cleanup): Ditto.
6513 (make_my_cleanup,make_my_cleanup2): Ditto.
6514 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6516 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6518 (make_cleanup_dyn_string_delete): Ditto.
6519 (make_cleanup_ui_file_delete): Ditto.
6520 (make_cleanup_ui_out_redirect_pop): Ditto.
6521 (make_cleanup_free_section_addr_info): Ditto.
6522 (make_cleanup_restore_integer): Ditto.
6523 (make_cleanup_unpush_target): Ditto.
6524 (make_cleanup_value_free_to_mark): Ditto.
6525 (make_cleanup_value_free): Ditto.
6526 (make_cleanup_free_so): Ditto.
6528 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6530 New option "set debug auto-load".
6531 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6532 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6533 (auto_load_safe_path_vec_update)
6534 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6536 (file_is_auto_load_safe): New parameters debug_fmt and ....
6537 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6538 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6539 caller by explanatory string.
6540 (_initialize_auto_load): Register "set debug auto-load".
6541 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6543 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6544 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6545 by explanatory string.
6546 * main.c (captured_main): Likewise.
6547 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6548 (source_section_scripts): Likewise.
6550 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6552 New option "set auto-load safe-path".
6553 * NEWS: New commands "set auto-load safe-path"
6554 and "show auto-load safe-path".
6555 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6556 (auto_load_safe_path, auto_load_safe_path_vec)
6557 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6558 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6559 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6560 (source_gdb_script_for_objfile): New variable is_safe. Call
6561 file_is_auto_load_safe. Return if it is not.
6562 (struct loaded_script): New field loaded.
6563 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6564 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6565 output "Missing" to "No".
6566 (_initialize_auto_load): New variable cmd. Initialize
6567 auto_load_safe_path. Register "set auto-load safe-path",
6568 "show auto-load safe-path" and "add-auto-load-safe-path".
6569 * auto-load.h (maybe_add_script): Add parameter loaded.
6570 (file_is_auto_load_safe): New declaration.
6571 * config.in: Regenerate.
6572 * configure: Regenerate.
6573 * configure.ac: New parameters --with-auto-load-safe-path
6574 and --without-auto-load-safe-path.
6575 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6576 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6577 * main.c (captured_main): Check file_is_auto_load_safe for
6579 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6580 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6581 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6584 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6586 auto-load: Implementation.
6587 * NEWS: New descriptions for "info auto-load",
6588 "info auto-load gdb-scripts", "info auto-load python-scripts",
6589 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6590 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6591 and "show auto-load-scripts". New description for "set auto-load",
6592 "show auto-load", "set auto-load gdb-scripts",
6593 "show auto-load gdb-scripts", "set auto-load python-scripts",
6594 "show auto-load python-scripts", "set auto-load local-gdbinit",
6595 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6596 "show auto-load libthread-db".
6597 * auto-load.c: Remove include python/python-internal.h. Add includes
6598 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6600 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6601 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6602 (gdbpy_global_auto_load): Rename to ...
6603 (global_auto_load): ... here.
6604 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6605 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6606 (script_language_gdb, source_gdb_script_for_objfile): New.
6607 (struct loaded_script): New field language.
6608 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6610 (maybe_add_script): Add parameter language. Drop redundant
6611 entry.full_path initialization. Initialize entry.language and
6613 (auto_load_objfile_script): Change parameter suffix to language.
6614 Remove the call of maybe_add_script.
6615 Call language->source_script_for_objfile.
6616 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6618 (collect_matching_scripts): Adjust it for
6619 struct collect_matching_scripts_data.
6620 (auto_load_info_scripts_pattern_nl): New variable.
6621 (info_auto_load_scripts): Rename to ...
6622 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6623 for struct collect_matching_scripts_data.
6624 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6625 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6626 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6627 (auto_load_info_cmdlist_get): New.
6628 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6629 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6630 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6631 "info auto-load local-gdbinit".
6632 * auto-load.h (struct script_language): New.
6633 (gdbpy_global_auto_load): Rename to ...
6634 (global_auto_load): ... here.
6635 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6636 (auto_load_local_gdbinit_loaded): New declarations.
6637 (maybe_add_script): New parameter language.
6638 (auto_load_objfile_script): Change parameter suffix to language.
6639 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6640 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6641 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6643 * linux-thread-db.c: Include auto-load.h and ctype.h.
6644 (auto_load_thread_db, show_auto_load_thread_db): New.
6645 (struct thread_db_info): New field filename.
6646 (delete_thread_db_info): Call xfree for FILENAME.
6647 (try_thread_db_load): Initialize FILENAME.
6648 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6649 if !AUTO_LOAD_THREAD_DB.
6650 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6651 (_initialize_thread_db): Install auto_load_thread_db
6652 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6653 as "info auto-load libthread-db".
6654 * main.c (captured_main): Rename gdbpy_global_auto_load to
6655 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6656 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6657 (print_gdb_help): Extend the help for 'local init file'.
6658 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6659 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6660 (auto_load_scripts): Rename to ...
6661 (auto_load_python_scripts): ... here, update the comment.
6662 (gdbpy_load_auto_script_for_objfile): New declaration.
6663 (show_auto_load_python_scripts, script_language_python)
6664 (gdbpy_load_auto_script_for_objfile): New.
6665 (source_section_scripts): Refactor the code.
6666 (load_auto_scripts_for_objfile): Rename to ...
6667 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6668 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6669 (info_auto_load_python_scripts): New.
6670 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6671 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6672 Register "set auto-load-scripts" as its deprecated alias. Register
6673 "info auto-load python-scripts". Register "info auto-load-scripts" as
6674 its deprecated alias.
6675 (load_auto_scripts_for_objfile): Rename to ...
6676 (gdbpy_load_auto_scripts_for_objfile): ... here.
6677 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6678 (gdbpy_load_auto_scripts_for_objfile): ... here.
6680 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6682 auto-load: Move files.
6683 * Makefile.in (SFILES): Add auto-load.c.
6684 (HFILES_NO_SRCDIR): Add auto-load.h.
6685 (COMMON_OBS): Add auto-load.o.
6686 (distclean): Change .gdbinit for gdb-gdb.gdb.
6687 * auto-load.c: New file, with parts from python/py-auto-load.c.
6688 * auto-load.h: New file, with parts from python/python.h.
6689 * configure: Regenerate.
6690 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6691 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6692 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6693 * main.c: Include auto-load.h.
6694 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6695 command.h, observer.h and progspace.h to auto-load.c. Add include
6697 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6698 (struct loaded_script, auto_load_pspace_data)
6699 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6700 (hash_loaded_script_entry, eq_loaded_script_entry)
6701 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6702 (maybe_add_script): Move to auto-load.c.
6703 (source_section_scripts): Change maybe_add_script parameters passing,
6704 use script_not_found_warning_print.
6705 (clear_section_scripts, auto_load_objfile_script)
6706 (auto_load_new_objfile, loaded_script_ptr)
6707 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6708 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6709 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6710 auto_load_new_objfile and info_auto_load_scripts initizations to
6712 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6714 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6717 * charset.c (find_charset_names): Remove variables ix and elt.
6718 Use free_char_ptr_vec.
6719 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6720 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6721 debugdir_end. New variable debugdir_len.
6722 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6723 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6725 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6726 and elt. Use free_char_ptr_vec.
6727 * source.c (add_path): Remove variables argv, arg and argv_index.
6728 New variables dir_vec, back_to, ix and name.
6729 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6730 make_cleanup_freeargv. Remove variable separator. Simplify the code
6731 no longer expecting DIRNAME_SEPARATOR.
6732 (openp): Remove variable p, p1 and len. New variables dir_vec,
6733 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6734 no longer expecting DIRNAME_SEPARATOR.
6735 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6736 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6738 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6739 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6740 (dirnames_to_char_ptr_vec): New functions.
6742 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6745 * source.c (add_path): Remove always true conditional 'p == 0' and
6746 unindent its code block.
6748 2012-04-17 Pedro Alves <palves@redhat.com>
6750 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6751 (FIELD_BITPOS_LVAL): ... this.
6752 (FIELD_BITPOS): New.
6753 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6754 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6755 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6757 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6759 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6760 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6761 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6764 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6766 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6767 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6768 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6769 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6770 * jv-lang.c (java_link_class_type): Likewise, once.
6771 * stabsread.c (read_enum_type): Likewise.
6773 2012-04-16 Yao Qi <yao@codesourcery.com>
6775 * common/agent.c (agent_run_command): Add one more parameter `len'.
6777 * common/agent.h: Update declaration.
6778 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6780 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6782 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6785 * value.c (value_actual_type): New function.
6786 * value.h (value_actual_type): New declaration.
6787 * varobj.c (update_type_if_necessary): New function.
6788 (varobj_create): Call value_actual_type instead of
6790 (install_dynamic_child): distinct changed and type changed MI variable
6792 (update_dynamic_varobj_children): Updated for install_dynamic_child
6793 change. All callers updated.
6794 (varobj_update): Support for MI variable object type change if
6795 the value changed and RTTI is used to determine the type.
6796 (create_child_with_value): Call value_actual_type instead of
6798 (adjust_value_for_child_access): Extended with a new parameter which
6799 specify whether the given value should be casted to enclosing type.
6800 All callers updated.
6802 2012-04-14 Yao Qi <yao@codesourcery.com>
6804 Import gnulib module inttypes from git
6805 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6806 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6807 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6808 gnulib/m4/inttypes-pri.m4
6809 * aclocal.m4, config.in, configure: Regenerated.
6810 * gnulib/Makefile.am: Update.
6811 * gnulib/Makefile.in: Update.
6812 * gnulib/m4/gnulib-cache.m4: Update.
6813 * gnulib/m4/gnulib-comp.m4: Update.
6814 * gnulib/inttypes.in.h: New.
6815 * gnulib/m4/inttypes-pri.m4: New.
6816 * gnulib/m4/inttypes.m4: New.
6818 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6820 * infrun.c (resume): Update PC address to the real PC after
6821 preparing to do displaced stepping.
6823 2012-04-12 Doug Evans <dje@google.com>
6825 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6826 All callers updated.
6828 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6830 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6832 2012-04-12 Doug Evans <dje@google.com>
6834 * dwarf2read.c (create_all_type_units): Renamed from
6835 create_debug_types_hash_table. All callers updated.
6837 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6838 local type_sig to sig_type, type_offset to type_offset_in_tu.
6839 (hash_signatured_type): Renamed from hash_type_signature,
6840 all callers updated.
6841 (eq_signatured_type): Renamed from eq_type_signature,
6842 all callers updated.
6843 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6844 (process_enumeration_scope): Ditto.
6845 (lookup_signatured_type_at_offset): Ditto.
6846 (load_full_type_unit, read_signatured_type): Ditto.
6848 2012-04-12 Yao Qi <yao@codesourcery.com>
6850 * remote.c (async_remote_interrupt): Correct function name in
6852 (async_remote_interrupt_twice): Ditto.
6854 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6856 * source.c (find_and_open_source): Consistently pass resulting
6857 full path through xfullpath.
6859 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6861 Provide more specific displaced-stepping memory error message.
6862 * infrun.c (displaced_step_prepare): New variable status. Call
6863 target_read_memory instead of read_memory, provide more specific
6866 2012-04-11 Tristan Gingold <gingold@adacore.com>
6869 * darwin-nat.c (darwin_execvp): Revert previous patch.
6871 2012-04-11 Tristan Gingold <gingold@adacore.com>
6874 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6877 2012-04-11 Tristan Gingold <gingold@adacore.com>
6879 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6882 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6884 New command 'explore' which helps explore values and types in
6886 * NEWS: Add an entry about the new 'explore' command.
6887 * data-directory/Makefile.in: Add gdb/command/explore.py
6888 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6889 command using the GDB Python API.
6891 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6893 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6894 extension in jump target calculation.
6896 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6898 * mips-tdep.c (mips32_next_pc): Handle JALX.
6900 2012-04-10 Yao Qi <yao@codesourcery.com>
6902 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6904 2012-04-10 Yao Qi <yao@codesourcery.com>
6906 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6907 and gnulib/m4/gnulib-tool.m4.
6909 2012-04-10 Doug Evans <dje@google.com>
6911 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6912 (load_partial_dies): Clarify comment.
6913 (find_partial_die): Support rereading type units.
6914 Clarify CU handling, if we know offset is in CU, don't search for the
6915 containing CU. Add comment regarding memory waste.
6917 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6919 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6920 i386/x32-avx and i386/x32-avx-linux.
6921 (i386/x32-expedite): New.
6922 (i386/x32-linux-expedite): Likewise.
6923 (i386/x32-avx-expedite): Likewise.
6924 (i386/x32-avx-linux-expedite): Likewise.
6925 ($(outdir)/i386/x32.dat): Likewise.
6926 ($(outdir)/i386/x32-linux.dat): Likewise.
6927 ($(outdir)/i386/x32-avx.dat): Likewise.
6928 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6930 * features/i386/x32-avx-linux.xml: New file.
6931 * features/i386/x32-avx.xml: Likewise.
6932 * features/i386/x32-core.xml: Likewise.
6933 * features/i386/x32-linux.xml: Likewise.
6934 * features/i386/x32.xml: Likewise.
6936 * features/i386/x32-avx-linux.c: New. Generated.
6937 * features/i386/x32-avx.c: Likewise.
6938 * features/i386/x32-linux.c: Likewise.
6939 * features/i386/x32.c: Likewise.
6940 * regformats/i386/x32-avx-linux.dat: Likewise.
6941 * regformats/i386/x32-avx.dat: Likewise.
6942 * regformats/i386/x32-linux.dat: Likewise.
6943 * regformats/i386/x32.dat: Likewise.
6945 2012-04-10 Tristan Gingold <gingold@adacore.com>
6947 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6948 code to kill the inferior.
6950 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6952 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6954 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6956 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6957 (yyvsp): New defines.
6958 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6960 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6962 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6964 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6966 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6969 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6971 * sparc64-tdep.c (sparc64_store_arguments)
6972 (sparc64_store_arguments): Fix coding style.
6974 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6976 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6977 complex floats, adjust some related comments and tighten a related
6979 (sparc64_extract_return_value): Handle complex floats.
6981 2012-04-07 Doug Evans <dje@google.com>
6983 * dwarf2read.c (load_partial_dies): Change condition to assert.
6985 2012-04-06 Doug Evans <dje@google.com>
6987 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6990 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6992 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6994 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6995 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6998 2012-04-05 Keith Seitz <keiths@redhat.com>
7000 * linespec.c (decode_compound): Remove.
7001 (enum offset_relative_sign): New enum.
7002 (struct line_offset): New struct.
7003 (struct linespec): New struct.
7004 (struct linespec_state): Move file_symtabs,
7005 user_filename, and user_function into struct linespec.
7006 Make result an anonymous struct holding vectors of
7007 symbolp and minsym_and_objfile_d.
7008 Add language member.
7009 (enum ls_token_type): New enum.
7010 (linespec_keywords): New array.
7011 (struct ls_token): New struct.
7012 (struct ls_parser): New struct.
7013 (linespec_lexer_lex_number): New function.
7014 (linespec_lexer_lex_keyword): New function.
7015 (is_ada_operator): New function.
7016 (skip_quote_char): New function.
7017 (copy_token_string): New function.
7018 (is_closing_quote_enclosed): New function.
7019 (find_parameter_list_end): New function.
7020 (linespec_lexer_lex_string): New function.
7021 (linespec_lexer_lex_one): New function.
7022 (linespec_lexer_consume_token): New function.
7023 (linespec_lexer_peek_token): New function.
7024 (cplusplus_error): Remove unused function.
7025 (find_methods): Update comment.
7026 (find_toplevel_char): Return const.
7027 (is_objc_method_format): Remove unused function.
7028 (find_toplevel_string): New function.
7029 (is_linespec_boundary): Remove.
7030 (symbol_not_found_error): New function.
7031 (find_method_overload_end): Remove function.
7032 (unexpected_linespec_error): New function.
7033 (keep_name_info): Remove.
7034 (linespec_parse_line_offset): New function.
7035 (linespec_parse_basic): New function.
7036 (canonicalize_linespec): New function.
7037 (decode_line_internal): Remove.
7038 (create_sals_line_offset): New function adapted from
7040 (convert_linespec_to_sals): New function.
7041 (parse_linespec): New function.
7042 (linespec_parser_new): New function.
7043 (linespec_state_destructor): Change parameter type to
7044 struct linespec_state *.
7045 Add language parameter.
7046 Remove freeing of moved members.
7047 (linespec_parser_delete): New function.
7048 (decode_line_full): Use parse_linespec and linespec_parser_new.
7049 (decode_line_1): Likewise.
7050 (decode_indirect): Rename to ...
7051 (linespec_expression_to_pc): ... this and rewrite
7052 to simply find CORE_ADDR, storing this result for later
7054 (locate_first_half): Remove.
7055 (deocde_objc): Add parameter LS.
7056 Initialize new struct collect_info members.
7057 Handle minimal symbols, too.
7058 (decode_compound): Delete.
7059 (lookup_prefix_sym): Rewrite.
7060 (compare_msymbols): New function.
7061 (find_method): Rewrite.
7062 Do not call cplusplus_error.
7063 (symtabs_from_filename): Rewrite.
7064 (collect_function_symbols): Delete.
7065 (find_function_symbols): Rewrite without ARGPTR-style
7067 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7068 (decode_dollar): Adapted and renamed to ...
7069 (linespec_parse_variable): ... this.
7070 (find_linespec_symbols): New function.
7071 (decode_label): Adapted and renamed to ...
7072 (find_label_symbols): ... this.
7073 (decode_digits_list_mode): Add and use LS argument.
7074 (decode_digits_ordinary): Likewise.
7075 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7076 If in list mode, allow any symbol class. Otherwise, only
7077 permit LOC_BLOCK symbols.
7078 (minsym_found): Update comments.
7079 (search_minsyms_for_name): Do not convert the matching symbol
7080 into a SAL. Simply push the symbol and objfile into the
7082 (decode_variable): Delete. Contents adapted into
7083 find_linespec_symbols.
7085 * cp-support.c (SKIP_SPACE): Remove.
7086 (operator_tokens): Remove unused global.
7087 (cp_validate_operator): Remove.
7088 * cp-support.h (cp_validate_operator): Remove declaration.
7090 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7092 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7093 for TYPE_VPTR_FIELDNO.
7094 * valprint.c (valprint_check_validity): Make it global, move the
7095 function comment ...
7096 * value.h (valprint_check_validity): ... to this new declaration.
7098 2012-04-02 Tristan Gingold <gingold@adacore.com>
7100 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7101 the STATE32 api for i386 state.
7102 (i386_darwin_store_inferior_registers): Likewise.
7104 2012-04-02 Tristan Gingold <gingold@adacore.com>
7106 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7108 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7111 2012-04-02 Tristan Gingold <gingold@adacore.com>
7114 * darwin-nat.c (darwin_execvp): Set binary preference.
7116 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7118 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7120 2012-03-30 Tom Tromey <tromey@redhat.com>
7122 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7123 of TRY_CATCH. Fix error handling.
7124 * python/py-value.c (convert_value_from_python): Move 'old'
7125 declaration to innermost scope.
7127 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7128 Andrey Smirnov <andrew.smirnov@gmail.com>
7130 -Wshadow warning fix.
7131 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7132 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7133 Adjust code accordingly.
7135 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7137 * ada-lang.c (symbol_completion_add): Rename parameter
7138 "encoded" into "encoded_p". Ajust code and documentation
7141 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7142 Andrey Smirnov <andrew.smirnov@gmail.com>
7144 -Wshadow warning fix.
7145 * ada-lang.c (symbol_completion_add): Rename parameter
7146 "wild_match" into wild_match_p. Update code and documentation
7149 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7151 * ada-lang.c (symbol_completion_match): Rename parameter
7152 "encoded" into "encoded_p". Ajust code and documentation
7155 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7156 Andrey Smirnov <andrew.smirnov@gmail.com>
7158 -Wshadow warning fix.
7159 * ada-lang.c (symbol_completion_match): Rename parameter
7160 "wild_match" into "wild_match_p". Adjust code and function
7161 documentation accordingly.
7163 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7164 Andrey Smirnov <andrew.smirnov@gmail.com>
7166 -Wshadow warning fix.
7167 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7168 "symbol_info" into "info". Adjust code accordingly.
7169 (ada_lookup_symbol): Likewise.
7171 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7173 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7174 of this function's 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 (ada_lookup_symbol_list): Rename "wild_match"
7181 variable into "wild_match_p". Adjust code accordingly.
7183 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7184 Andrey Smirnov <andrew.smirnov@gmail.com>
7186 -Wshadow warning fix.
7187 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7188 parameter into "wild_match_p". Adjust code accordingly.
7189 Document this parameter in the function description.
7191 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7192 Andrey Smirnov <andrew.smirnov@gmail.com>
7194 -Wshadow warning fix.
7195 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7196 "wild_match" parameter to "wild_match_p" (-Wshadow).
7198 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7200 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7201 in function documentation.
7203 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7204 Andrey Smirnov <andrew.smirnov@gmail.com>
7206 -Wshadow warning fix.
7207 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7208 variable into wild_match_p. Adjust code accordingly.
7210 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7211 Andrey Smirnov <andrew.smirnov@gmail.com>
7213 * ada-valprint.c (ada_val_print_1): Move the code handling
7214 TYPE_CODE_ENUM inside its own lexical block. Declare
7215 variables len and val there, instead of in the function's
7216 top level block. Avoid declaring deref_val again in a way
7217 that shadows another variable of the same name declared
7218 in one of the up-level blocks. Just re-use the up-level
7221 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7223 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7224 Replace block_found argument by symbol_info. Adjust
7225 implementation accordingly. Add function documentation.
7226 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7228 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7229 * ada-exp.y (write_object_renaming): Adjust to new
7230 ada_lookup_encoded_symbol API.
7232 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7234 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7237 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7239 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7240 (v850_register_name): Add the mpu and fpu register names.
7241 (v850e_register_name): Add the mpu and fpu register names.
7242 (v850e2_register_name): New function.
7243 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7246 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7248 * NEWS: Add entry for Ada varobj support.
7250 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7252 * varobj.c (default_value_is_changeable_p): New function,
7253 extracted from varobj_value_is_changeable_p. Add declaration.
7254 (ada_value_is_changeable_p): New function, extracted from
7255 varobj_value_is_changeable_p. Add declaration.
7256 (struct language_specific): New field "value_is_changeable_p".
7257 (languages): Add entries for new field.
7258 (varobj_create): Set language before calling install_new_value.
7259 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7260 "value_is_changeable_p" language callback.
7262 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7264 * ada-varobj.h, ada-varobj.c: New files.
7265 * Makefile.in (SFILES): Add ada-varobj.c.
7266 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7267 (COMMON_OBS): Add ada-varobj.o.
7269 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7271 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7272 (struct language_specific): New field "value_has_mutated".
7273 (languages): Set field "value_has_mutated" in each entry of array.
7274 (varobj_value_has_mutated): New function.
7275 (varobj_udpdate): Add handling of type mutation.
7276 (value_of_root): Add handling of type mutation.
7277 (ada_value_has_mutated): New function.
7279 2012-03-28 Pedro Alves <palves@redhat.com>
7281 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7282 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7284 2012-03-28 Tom Tromey <tromey@redhat.com>
7286 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7287 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7290 2012-03-28 Tom Tromey <tromey@redhat.com>
7292 * .dir-locals.el: New file.
7294 2012-03-28 Pedro Alves <palves@redhat.com>
7296 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7298 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7300 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7303 2012-03-27 Pedro Alves <palves@redhat.com>
7305 Eliminate struct ui_stream.
7307 * ui-out.h (struct ui_stream): Delete.
7308 (ui_out_field_stream): Adjust prototype.
7309 (ui_out_stream_new, ui_out_stream_delete)
7310 (make_cleanup_ui_out_stream_delete): Delete declarations.
7311 * ui-out.c (ui_out_field_stream): Change prototype to take a
7312 ui_file instead of a ui_stream. Adjust.
7313 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7314 (make_cleanup_ui_out_stream_delete): Delete.
7315 * breakpoint.c (print_breakpoint_location)
7316 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7317 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7318 * disasm.c (dump_insns): Ditto.
7319 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7321 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7322 ui_stream/ui_out_stream_new.
7323 * infcmd.c (print_return_value): Ditto.
7324 * osdata.c (info_osdata_command): Don't allocate a local
7326 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7327 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7328 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7329 allocate a local ui_stream.
7330 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7331 instead of ui_stream/ui_out_stream_new.
7332 (list_args_or_locals): Don't allocate a local ui_stream.
7333 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7334 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7335 ui_stream/ui_out_stream_new.
7336 * cli/cli-setshow.c (do_setshow_command): Ditto.
7338 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7340 * arm-linux-tdep.c (arm_linux_init_abi): Call
7341 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7342 * arm-tdep.c (arm_process_record): New function.
7343 (deallocate_reg_mem): New function.
7344 (decode_insn): New function.
7345 (thumb_record_branch): New function.
7346 (thumb_record_ldm_stm_swi(): New function.
7347 (thumb_record_misc): New function.
7348 (thumb_record_ld_st_stack): New function.
7349 (thumb_record_ld_st_imm_offset): New function.
7350 (thumb_record_ld_st_reg_offset(): New function.
7351 (thumb_record_add_sub_cmp_mov): New function.
7352 (thumb_record_shift_add_sub): New function.
7353 (arm_record_coproc_data_proc): New function.
7354 (arm_record_coproc): New function.
7355 (arm_record_b_bl): New function.
7356 (arm_record_ld_st_multiple): New function.
7357 (arm_record_ld_st_reg_offset): New function.
7358 (arm_record_ld_st_imm_offset): New function.
7359 (arm_record_data_proc_imm): New function.
7360 (arm_record_data_proc_misc_ld_str): New function.
7361 (arm_record_extension_space): New function.
7362 (arm_record_strx): New function.
7363 (sbo_sbz): New function.
7364 (struct insn_decode_record): New structure for arm insn record.
7365 (REG_ALLOC): New macro for reg allocations.
7366 (MEM_ALLOC): New macro for memory allocations.
7367 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7369 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7371 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7372 (store_register): Likewise.
7374 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7376 * MAINTAINERS (Write After Approval): Add myself to the list.
7378 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7380 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7381 Describe also the option "auto".
7383 2012-03-22 Richard Henderson <rth@redhat.com>
7385 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7386 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7388 2012-03-22 Richard Henderson <rth@redhat.com>
7390 * jit.c (jit_read_code_entry): Compute alignment and offset of
7391 int64_t member before computing entry_size.
7393 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7395 Python scripting: Add new method Value.referenced_value to
7396 gdb.Value which can dereference pointer as well as reference
7398 * NEWS: Add entry under 'Python scripting' about the new method
7399 Value.referenced_value on gdb.Value objects.
7400 * python/py-value.c (valpy_referenced_value): New function
7401 defining a new method on gdb.Value objects which can dereference
7402 pointer and reference values.
7404 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7406 * MAINTAINERS (Write After Approval): Add myself to the list.
7408 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7410 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7411 in addition to "main".
7413 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7415 * expression.h (op_name): Add declaration.
7416 * expprint.c (op_name): Remove declaration. Make non-static.
7417 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7419 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7421 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7423 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7424 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7425 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7426 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7427 (linux_nat_get_siginfo): Likewise.
7428 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7429 (linux_nat_get_siginfo): Likewise.
7430 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7431 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7432 * procfs.c (gdb_siginfo_t): Likewise.
7434 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7436 * .gitignore: Ignore more files.
7438 2012-03-20 Pedro Alves <palves@redhat.com>
7440 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7443 2012-03-20 Yao Qi <yao@codesourcery.com>
7445 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7448 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7450 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7451 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7452 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7454 * dwarf2expr.h (cu_offset, sect_offset): New types.
7455 (struct dwarf_expr_context_funcs) <dwarf_call>
7456 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7458 (struct dwarf_expr_context) <len>: Improve the comment.
7459 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7460 cu_offset and sect_offset.
7461 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7462 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7463 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7464 * dwarf2loc.h: Include dwarf2expr.h.
7465 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7467 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7468 Improve the comment.
7469 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7470 (struct signatured_type, struct line_header, struct partial_die_info)
7471 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7472 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7473 (get_die_type_at_offset, create_cus_from_index)
7474 (create_signatured_type_table_from_index, dw2_get_file_names)
7475 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7476 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7477 (create_debug_types_hash_table, process_psymtab_comp_unit)
7478 (load_partial_comp_unit, create_all_comp_units)
7479 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7480 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7481 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7482 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7483 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7484 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7485 (find_partial_die, read_attribute_value, lookup_die_type)
7486 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7487 (is_ref_attr): New function comment.
7488 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7489 Use cu_offset and sect_offset.
7490 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7491 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7492 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7493 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7494 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7495 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7496 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7499 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7502 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7503 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7505 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7507 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7509 * NEWS: Describe new options --init-command=FILE, -ix and
7510 --init-eval-command=COMMAND, -iex.
7511 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7512 CMDARG_INIT_COMMAND.
7513 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7514 "init-command", "init-eval-command", "ix" and "iex" to the variable
7515 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7516 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7517 (print_gdb_help): Describe --init-command=FILE, -ix and
7518 --init-eval-command=COMMAND, -iex.
7520 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7523 * main.c (struct cmdarg): Move it here from main. Add more comments.
7524 (cmdarg_s, VEC (cmdarg_s)): New.
7525 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7526 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7527 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7528 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7531 2012-03-19 Tom Tromey <tromey@redhat.com>
7533 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7535 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7538 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7541 2012-03-16 Chris January <chris.january@allinea.com>
7543 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7546 2012-03-16 Chris January <chris.january@allinea.com>
7548 * source.c (add_path): Use memmove instead of strcpy because the
7551 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7553 * value.h (set_value_parent): Add declaration.
7554 * value.c (set_value_parent): New function.
7555 (value_address): If VALUE->PARENT is not NULL, then use it as
7556 the base address instead of VALUE->LOCATION.address.
7557 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7558 the same as OBJ's address. Adjust V's offset accordingly.
7561 2012-03-16 Gary Benson <gbenson@redhat.com>
7563 PR breakpoints/10738
7564 * dwarf2read.c (use_deprecated_index_sections): New global.
7565 (struct partial_die_info): New member may_be_inlined.
7566 (read_partial_die): Set may_be_inlined where appropriate.
7567 (add_partial_subprogram): Add partial symbols for partial
7568 DIEs that may be inlined.
7569 (new_symbol_full): Add inlined subroutines to the current
7571 (write_psymtabs_to_index): Bump version number.
7572 (dwarf2_read_index): Read only version 6 indices unless
7573 use_deprecated_index_sections is set.
7574 * linespec.c (symbol_and_data_callback): New structure.
7575 (iterate_inline_only): New function.
7576 (iterate_over_all_matching_symtabs): New argument
7577 "include_inline". If nonzero, also call the callback for
7578 symbols representing inlined subroutines.
7579 (lookup_prefix_sym): Pass extra argument to the above.
7580 (find_function_symbols): Likewise.
7581 (add_matching_symbols_to_info): Likewise.
7582 * NEWS: Mention that GDB can now set breakpoints on inlined
7585 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7587 * p-typeprint.c (pascal_type_print_method_args):
7588 Fix display of parameter of methods.
7590 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7592 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7593 Add missing prototype.
7595 2012-03-16 Yao Qi <yao@codesourcery.com>
7596 Jan Kratochvil <jan.kratochvil@redhat.com>
7598 Fix false compilation warning.
7599 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7601 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7602 Pedro Alves <pedro@codesourcery.com>
7604 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7605 (arm_register_g_packet_guesses): New function.
7606 (arm_gdbarch_init): Don't force a target description with
7607 registers when the executable is detected as M-profile. Instead
7608 set gdbarch->tdep->is_m. Register `g' packet guesses.
7609 (_initialize_arm_tdep): Initialize the new target description.
7610 * features/arm-with-m-fpa-layout.xml: New description.
7611 * features/arm-with-m-fpa-layout.c: New, generated.
7613 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7615 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7616 Update function description.
7617 (insert_bp_location): Do not wipe bl->target_info out.
7618 * mem-break.c: #include "gdb_string.h".
7619 (default_memory_insert_breakpoint): Do not call target_read_memory
7620 with a pointer to the breakpoint's shadow_contents buffer. Use
7621 a local buffer instead.
7622 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7624 2012-03-15 Tom Tromey <tromey@redhat.com>
7626 * NEWS: Mention "info vtbl", not "info vtable".
7627 * cp-support.c (info_vtbl_command): Fix comment.
7628 (_initialize_cp_support): Fix text.
7630 2012-03-15 Tom Tromey <tromey@redhat.com>
7632 * cp-valprint.c (cp_print_value_fields): Use
7633 print_function_pointer_address for vtable slot.
7635 2012-03-15 Tom Tromey <tromey@redhat.com>
7637 * gnu-v3-abi.c (struct value_and_voffset): New.
7638 (hash_value_and_voffset, eq_value_and_voffset)
7639 (compare_value_and_voffset, compute_vtable_size)
7640 (print_one_vtable, gnuv3_print_vtable): New functions.
7641 (init_gnuv3_ops): Initialize 'print_vtable' field.
7642 * cp-support.c (info_vtbl_command): New function.
7643 (_initialize_cp_support): Add "info vtbl".
7644 * cp-abi.h (cplus_print_vtable): Declare.
7645 (struct cp_abi_ops) <print_vtable>: New field.
7646 * cp-abi.c (cplus_print_vtable): New function.
7649 2012-03-15 Tom Tromey <tromey@redhat.com>
7651 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7652 iterate_over_symbols.
7654 2012-03-14 Doug Evans <dje@google.com>
7656 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7657 DW_OP_GNU_parameter_ref.
7659 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7661 Fix double prompt of 'interpreter-exec mi'.
7662 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7663 (mi_interpreter_resume): use it.
7664 (mi_execute_command_input_handler): New function.
7665 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7666 mi_execute_command_input_handler.
7668 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7670 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7672 (darwin_debug_port_info): Make static.
7673 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7674 * machoread.c (_initialize_machoread): Add prototype.
7675 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7676 (i386_darwin_set_control, i386_darwin_get_control)
7677 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7678 i386_darwin_get_status, i386_darwin_get_control):
7679 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7681 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7683 * ax-gdb.c (gen_usual_unary): Remove special handling of
7684 enum and bool types.
7686 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7688 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7690 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7692 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7694 2012-03-13 Chris January <chris.january@allinea.com>
7696 * aix-thread.c (fill_sprs): Store the floating point registers
7697 at the correct offsets into vals.
7699 2012-03-13 Doug Evans <dje@google.com>
7701 * NEWS: Mention symbol-reloading has been deleted.
7702 * symfile.c (symbol_reloading): Delete.
7703 (show_symbol_reloading): Delete.
7704 (_initialize_symfile): Delete set/show symbol-reloading.
7706 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7707 read_in_chain until we have successfully read it in.
7708 (load_full_comp_unit): Ditto.
7709 (read_signatured_type): Add comment.
7711 2012-03-13 Chris January <chris.january@allinea.com>
7713 * stabsread.c (fix_common_block): Change type of valu argument
7716 2012-03-13 Chris January <chris.january@allinea.com>
7718 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7721 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7723 * common/linux-procfs.c (linux_proc_get_int): New, from
7724 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7726 (linux_proc_get_tgid): Only call linux_proc_get_int.
7727 (linux_proc_get_tracerpid): New.
7728 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7729 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7730 linux_proc_pid_has_state.
7731 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7732 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7733 (linux_ptrace_attach_warnings): New.
7734 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7736 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7737 (linux_nat_attach): New variables ex, buffer, message and message_s.
7738 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7740 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7742 * Makefile.in (linux-ptrace.o): New.
7743 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7745 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7746 * common/linux-ptrace.c: New file.
7747 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7748 * config/arm/linux.mh: Likewise.
7749 * config/i386/linux.mh: Likewise.
7750 * config/i386/linux64.mh: Likewise.
7751 * config/ia64/linux.mh: Likewise.
7752 * config/m32r/linux.mh: Likewise.
7753 * config/m68k/linux.mh: Likewise.
7754 * config/mips/linux.mh: Likewise.
7755 * config/pa/linux.mh: Likewise.
7756 * config/powerpc/linux.mh: Likewise.
7757 * config/powerpc/ppc64-linux.mh: Likewise.
7758 * config/powerpc/spu-linux.mh: Likewise.
7759 * config/s390/s390.mh: Likewise.
7760 * config/sparc/linux.mh: Likewise.
7761 * config/sparc/linux64.mh: Likewise.
7762 * config/xtensa/linux.mh: Likewise.
7763 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7764 common/linux-procfs.c.
7765 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7767 2012-03-13 Hui Zhu <teawater@gmail.com>
7768 Pedro Alves <palves@redhat.com>
7770 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7771 CREATE_BREAKPOINT_FLAGS_INSERTED.
7772 (create_breakpoint_sal, create_breakpoints_sal)
7773 (base_breakpoint_create_breakpoints_sal)
7774 (tracepoint_create_breakpoints_sal)
7775 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7777 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7778 (ftrace_command, strace_command): Adjust.
7779 (create_tracepoint_from_upload): Pass
7780 CREATE_BREAKPOINT_FLAGS_INSERTED.
7781 * breakpoint.h (enum breakpoint_create_flags): New.
7782 (create_breakpoint): New flags parameter.
7783 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7784 * python/py-breakpoint.c (bppy_init): Adjust.
7785 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7786 * spu-tdep.c (spu_catch_start): Adjust.
7788 2012-03-13 Pedro Alves <palves@redhat.com>
7789 Hui Zhu <teawater@gmail.com>
7790 Yao Qi <yao@codesourcery.com>
7792 * remote.c (struct remote_state): New field `starting_up'.
7793 (remote_start_remote): Set and clear it.
7794 (remote_can_download_tracepoint): If starting up, return false.
7796 2012-03-13 Yao Qi <yao@codesourcery.com>
7798 * inferior.h (struct inferior): Remove fields any_syscall_count,
7799 syscalls_counts and total_syscalls_count. Move them to new
7800 struct catch_syscall_inferior_data in breakpoint.c.
7801 * breakpoint.c: Call DEF_VEC_I(int).
7802 (struct catch_syscall_inferior_data): New.
7803 (get_catch_syscall_inferior_data): New.
7804 (catch_syscall_inferior_data_cleanup): New.
7805 (insert_catch_syscall): Update to access data in
7806 struct catch_syscall_inferior_data.
7807 (insert_catch_syscall): Likewise.
7808 (remove_catch_syscall): Likewise.
7809 (remove_catch_syscall): Likewise.
7810 (is_syscall_catchpoint_enabled): Likewise.
7811 (add_catch_command): Likewise.
7812 (_initialize_breakpoint): Register cleanup.
7813 * breakpoint.h: Removed DEF_VEC_I(int).
7814 * dwarf2loc.c: Call DEF_VEC_I(int).
7815 * mi/mi-main.c: Likewise.
7817 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7819 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7821 2012-03-12 Chris January <chris.january@allinea.com>
7823 * aix-thread.c (_initialize_aix_thread): Add prototype.
7824 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7825 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7827 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7829 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7830 include of "amd64-nat.h".
7832 2012-03-12 Tom Tromey <tromey@redhat.com>
7834 * buildsym.c (record_pending_block): Now static.
7835 * buildsym.h: (record_pending_block): Remove.
7837 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7839 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7841 2012-03-09 Tom Tromey <tromey@redhat.com>
7843 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7844 producer_is_gxx_lt_4_6>: New fields.
7845 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7847 2012-03-09 Tom Tromey <tromey@redhat.com>
7849 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7851 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7853 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7856 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7858 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7860 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7862 Fix -Wmissing-prototypes build.
7863 * arm-linux-nat.c (get_thread_id): Make it static.
7864 * xtensa-linux-nat.c (get_thread_id): Likewise.
7866 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7868 * server.c (process_point_options): If a conditional expression
7869 is found, only print a message if remote_debug is nonzero.
7871 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7873 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7874 of internal error for unknown/unsupported types.
7876 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7878 Fix CU relative vs. absolute DIE offsets.
7879 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7880 offset to offset_in_cu.
7881 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7883 (dwarf2_fetch_die_location_block): Rename parameter offset to
7884 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7886 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7888 * libunwind-frame.c: Rename to ...
7889 * ia64-libunwind-tdep.c: ... here.
7890 * libunwind-frame.h: Rename to ...
7891 * ia64-libunwind-tdep.h: ... here.
7892 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7893 ia64-libunwind-tdep.h.
7894 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7895 * README (--with-libunwind): Rename to ...
7896 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7897 * config.in: Regenerate.
7898 * configure: Regenerate.
7899 * configure.ac: New option --with-libunwind-ia64, make the
7900 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7901 Remove AC_DEFINE for HAVE_LIBUNWIND.
7902 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7903 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7904 Rename libunwind-frame in the general comment.
7905 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7906 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7907 Move forward declarations inside #ifndef. Rename libunwind-frame in
7908 the general comment.
7909 * ia64-tdep.c: Rename libunwind-frame.h #include to
7910 ia64-libunwind-tdep.h.
7911 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7912 (ia64_libunwind_descr): Rename libunwind-frame to
7913 ia64-libunwind-tdep in these function comments.
7914 * ia64-tdep.h: Rename libunwind-frame.h #include to
7915 ia64-libunwind-tdep.h.
7916 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7917 ia64-libunwind-tdep in that data comment.
7919 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7921 * libunwind-frame.h (struct frame_unwind): New declaration.
7923 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7925 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7926 "set breakpoint condition-evaluation" command.
7928 2012-03-08 Tristan Gingold <gingold@adacore.com>
7930 * sparc-stub.c: Move to stubs/
7931 * sh-stub.c: Likewise.
7932 * m68k-stub.c: Likewise.
7933 * m32r-stub.c: Likewise.
7934 * i386-stub.c: Likewise.
7936 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7938 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7939 linux_get_siginfo_type.
7941 * m68klinux-nat.c: Include "gdb_proc_service.h".
7942 (PTRACE_GET_THREAD_AREA): Define.
7943 (ps_get_thread_area): New function.
7945 2012-03-08 Yao Qi <yao@codesourcery.com>
7947 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7949 (remote_query_attached): Likewise.
7950 (remote_static_tracepoint_marker_at): Likewise.
7951 (remote_set_permissions): Likewise.
7952 (remote_detach_1, extended_remote_attach_1): Likewise.
7953 (send_g_packet, remote_vkill): Likewise.
7954 (extended_remote_disable_randomization): Likewise.
7955 (remote_add_target_side_condition): Likewise.
7956 (remote_insert_breakpoint): Likewise.
7957 (remote_remove_breakpoint): Likewise.
7958 (remote_insert_watchpoint): Likewise.
7959 (remote_remove_watchpoint): Likewise.
7960 (remote_insert_hw_breakpoint): Likewise.
7961 (remote_insert_hw_breakpoint): Likewise.
7962 (remote_remove_hw_breakpoint): Likewise.
7963 (remote_download_command_source): Likewise.
7964 (remote_download_tracepoint): Likewise.
7965 (remote_download_trace_state_variable): Likewise.
7966 (remote_disable_tracepoint): Likewise.
7967 (remote_trace_set_readonly_regions): Likewise.
7968 (remote_get_tracepoint_status): Likewise.
7969 (remote_trace_find): Likewise.
7970 (remote_get_trace_state_variable_value): Likewise.
7971 (remote_set_disconnected_tracing): Likewise.
7972 (remote_set_circular_trace_buffer): Likewise.
7973 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7974 (remote_use_agent): Likewise.
7975 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7978 2012-03-07 Pedro Alves <palves@redhat.com>
7980 * NEWS: Mention QProgramSignals.
7981 * inferior.h (update_signals_program_target): Declare.
7982 * infrun.c: (update_signals_program_target): New.
7983 (handle_command): Update the target of the new program signals
7985 * remote.c (PACKET_QProgramSignals): New enum.
7986 (last_program_signals_packet): New global.
7987 (remote_program_signals): New.
7988 (remote_start_remote): Update the target with the program signals
7990 (remote_protocol_features): Add entry for QPassSignals.
7991 (remote_open_1): Free anc clear last_program_signals_packet.
7992 (init_remote_ops): Install remote_program_signals.
7993 * target.c (update_current_target): Adjust.
7994 (target_program_signals): New.
7995 * target.h (struct target_ops) <to_program_signals>: New field.
7996 (target_program_signals): Declare.
7998 2012-03-07 Pedro Alves <palves@redhat.com>
8000 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8003 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8005 * m68klinux-nat.c (getregs_supplies): Make static.
8006 (getfpregs_supplies): Likewise.
8007 (have_ptrace_getregs): Likewise.
8009 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8011 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8012 in call to get_die_type_at_offset.
8014 2012-03-06 Stan Shebs <stan@codesourcery.com>
8016 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8017 * mi/mi-cmd-disas.c: Ditto.
8018 * mi/mi-cmd-env.c: Ditto.
8019 * mi/mi-cmd-file.c: Ditto.
8020 * mi/mi-cmd-stack.c: Ditto.
8021 * mi/mi-cmd-target.c: Ditto.
8022 * mi/mi-cmd-var.c: Ditto.
8023 * mi/mi-cmds.c: Ditto.
8024 * mi/mi-cmds.h: Ditto.
8025 * mi/mi-console.c: Ditto.
8026 * mi/mi-getopt.c: Ditto.
8027 * mi/mi-getopt.h: Ditto.
8028 * mi/mi-interp.c: Ditto.
8029 * mi/mi-main.c: Ditto.
8030 * mi/mi-out.c: Ditto.
8031 * mi/mi-parse.c: Ditto.
8032 * mi/mi-parse.h: Ditto.
8033 * mi/mi-symbol-cmds.c: Ditto.
8035 * mi/mi-getopt.h: Move mi_opt struct up.
8036 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8038 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8040 2012-03-06 Tom Tromey <tromey@redhat.com>
8042 * proc-service.c (ps_pglobal_lookup): Set the current program
8045 2012-03-06 Pedro Alves <palves@redhat.com>
8047 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8049 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8051 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8053 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8056 * common/linux-osdata.c (linux_common_core_of_thread): New function
8058 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8059 call by linux_common_core_of_thread.
8060 (linux_nat_core_of_thread_1): Remove.
8061 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8062 * linux-thread-db.c: Include linux-osdata.h.
8063 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8064 linux_common_core_of_thread.
8066 2012-03-05 Tom Tromey <tromey@redhat.com>
8068 * value.c (value_primitive_field): Don't fetch contents for
8071 2012-03-05 Tom Tromey <tromey@redhat.com>
8073 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8075 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8077 * s390-nat.c: Include "gregset.h".
8079 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8081 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8082 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8083 (libunwind_load): New variable so_error, use it for dlerror. Try to
8084 load also LIBUNWIND_SO_7.
8086 2012-03-05 Pedro Alves <palves@redhat.com>
8088 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8089 is not NULL, and remove resulting dead code.
8091 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8093 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8094 prologue to sh_analyze_prologue.
8095 (sh_analyze_prologue): Make better use of such an upper limit, and
8096 generally be more cautious about accessing memory.
8098 2012-03-05 Tom Tromey <tromey@redhat.com>
8100 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8101 _initialize_ia64_hpux_tdep.
8103 2012-03-05 Pedro Alves <palves@redhat.com>
8107 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8108 the register state is clear, supply explicit zero, instead of
8109 marking the register unavailable.
8111 2012-03-05 Tristan Gingold <gingold@adacore.com>
8113 * NEWS: Mention OpenVMS ia64 new target.
8115 2012-03-05 Tristan Gingold <gingold@adacore.com>
8117 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8118 (ia64_unw_accessors, ia64_unw_rse_accessors)
8119 (ia64_libunwind_descr): Declare.
8120 * ia64-vms-tdep.c: New file.
8121 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8122 (ia64_libunwind_descr): Make them public.
8123 * configure.tgt: Add ia64-*-*vms*.
8124 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8125 (ALLDEPFILES): Add ia64-vms-tdep.c
8127 2012-03-05 Tristan Gingold <gingold@adacore.com>
8129 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8130 * remote.c (PACKET_qXfer_uib): New enum value.
8131 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8132 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8133 (_initialize_remote): Call add_packet_config_cmd for
8136 2012-03-05 Tristan Gingold <gingold@adacore.com>
8138 * osabi.c (gdb_osabi_names): Add OpenVMS.
8139 (generic_elf_osabi_sniffer): Likewise.
8140 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8142 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8144 Removed unused code.
8145 * libunwind-frame.c (libunwind_frame_unwind)
8146 (libunwind_frame_base_address): Remove.
8147 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8149 2012-03-04 Yao Qi <yao@codesourcery.com>
8151 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8152 remove trailing new line.
8153 (agent_run_command, agent_run_command): Add _ markup.
8154 (agent_capability_check): Likewise.
8156 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8158 * breakpoint.c (set_condition_evaluation_mode): Set
8159 CONDITION_EVALUATION_MODE unconditionally.
8161 2012-03-03 Yao Qi <yao@codesourcery.com>
8163 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8164 * common/agent.h: Update declaration.
8165 * inf-child.c (inf_child_use_agent): New.
8166 (inf_child_can_use_agent): New.
8167 (inf_child_target): Initialize fields `to_use_agent'
8168 and `to_can_use_agent'.
8169 * agent.c (agent_new_objfile): New.
8170 (_initialize_agent): Add agent_new_objfile to new_objfile
8173 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8175 (linux_target_install_ops): Initialize field
8176 `to_static_tracepoint_markers_by_strid'.
8177 * remote.c (free_current_marker): Move it to ...
8178 * tracepoint.c (free_current_marker): ... here. New.
8179 (cleanup_target_stop): New.
8180 * tracepoint.h: Declare free_current_marker.
8181 * NEWS: Add one entry about `info static-tracepoint-marker'.
8183 2012-03-03 Yao Qi <yao@codesourcery.com>
8185 * common/agent.c (agent_loaded_p): New.
8186 (agent_look_up_symbols): New global.
8187 * common/agent.h: Declare agent_loaded_p.
8189 2012-03-03 Yao Qi <yao@codesourcery.com>
8191 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8192 (agent_capability_check, agent_capability_invalidate): New.
8193 (symbol_list): New array element.
8194 * common/agent.h (enum agent_capa): New.
8195 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8197 2012-03-03 Yao Qi <yao@codesourcery.com>
8199 * target.h (struct target_ops) <to_use_agent>: New field.
8200 (struct target_ops) <to_can_use_agent>: New field.
8201 (target_use_agent, target_can_use_agent): New macro.
8202 * target.c (update_current_target): Update.
8203 * remote.c: New enum `PACKET_QAgent'.
8204 (remote_protocol_features): Add a new element.
8205 (remote_use_agent, remote_can_use_agent): New.
8206 (init_remote_ops): Initialize field `can_use_agent' with
8207 remote_can_use_agent. Intiailize field `use_agent' with
8209 * common/agent.c (use_agent): New global.
8210 * common/agent.h: Declare it.
8211 * tracepoint.c (info_static_tracepoint_markers_command): Add
8213 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8214 (COMMON_OBS): Add common/agent.o and agent.o
8215 (common-agent.o): New rule.
8218 2012-03-03 Yao Qi <yao@codesourcery.com>
8220 * common/agent.c: New.
8221 * common/agent.h: New.
8222 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8224 * configure, configh.in: Regenerated.
8226 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8228 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8229 unless it exists for this architecture.
8231 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8233 * language.h (struct language_defn): New "method" la_read_var_value.
8234 * findvar.c: #include "language.h".
8235 (default_read_var_value): Renames read_var_value. Rewrite
8236 function description.
8237 (read_var_value): New function.
8238 * value.h (default_read_var_value): Add prototype.
8239 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8241 (ada_language_defn): Add entry for la_read_var_value.
8242 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8243 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8244 language_defn structures to add entry for new la_read_var_value
8247 2012-03-02 Tom Tromey <tromey@redhat.com>
8248 Pedro Alves <palves@redhat.com>
8250 PR breakpoints/13776:
8251 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8253 (delete_longjmp_breakpoint_at_next_stop): New.
8254 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8255 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8256 before deleting the inferior. Add comments.
8257 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8258 breakpoints immediately, but only on next stop. Move that code
8259 next to where we mark other breakpoints for deletion.
8261 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8263 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8265 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8268 2012-03-02 Pedro Alves <palves@redhat.com>
8270 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8272 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8274 Fix -Wmissing-prototypes build.
8275 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8276 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8277 (gdbsim_has_memory): Likewise.
8279 2012-03-02 Yao Qi <yao@codesourcery.com>
8281 Fix -Wmissing-prototypes build.
8282 * charset.c (phony_iconv_open): Make static.
8283 (phony_iconv_close, phony_iconv): Likewise.
8284 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8285 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8287 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8288 * ser-mingw.c (create_select_thread): Make static.
8289 * windows-termcap.c (tgetent): New prototype.
8290 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8292 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8294 Fix -Wmissing-prototypes build.
8295 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8296 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8297 (_initialize_loadable): New prototypes.
8299 2012-03-02 Doug Evans <dje@google.com>
8301 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8302 abbrev table, read_comp_unit will do it.
8304 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8306 Fix -Wmissing-prototypes build.
8307 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8308 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8309 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8310 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8311 (_initialize_arm_symbian_tdep): New prototype.
8312 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8313 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8314 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8316 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8317 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8319 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8320 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8321 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8323 * moxie-tdep.c (moxie_process_record): Likewise.
8324 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8325 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8326 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8327 (_initialize_rl78_tdep): New prototype.
8328 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8329 (_initialize_rx_tdep): New prototype.
8330 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8331 (_initialize_darwin_solib): New prototype.
8332 * solib-spu.c: Include solib-spu.h.
8333 (_initialize_spu_solib): New prototype.
8334 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8335 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8336 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8337 (tic6x_software_single_step): Make it static.
8338 (_initialize_tic6x_tdep): New prototype.
8340 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8342 Fix -Wmissing-prototypes build.
8343 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8344 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8346 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8348 Fix -Wmissing-prototypes build.
8349 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8350 (frv_have_stopped_data_address): Remove.
8352 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8354 Fix -Wmissing-prototypes build.
8355 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8356 * sh-tdep.c: Include sh64-tdep.h.
8357 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8358 * sh64-tdep.c: Include sh64-tdep.h.
8359 * sh64-tdep.h: New file.
8361 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8363 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8365 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8367 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8368 sp_regnum once the gdbarch_init_osabi hook has been called.
8370 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8372 * mips-tdep.c (mips32_bc1_pc): New function.
8373 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8374 BPOSGE32 and BPOSGE64 instructions.
8375 (deal_with_atomic_sequence): Likewise.
8376 (mips32_instruction_has_delay_slot): Likewise.
8378 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8379 Chris Dearman <chris@mips.com>
8380 Maciej W. Rozycki <macro@codesourcery.com>
8381 Joseph Myers <joseph@codesourcery.com>
8383 * features/mips-dsp.xml: New file.
8384 * features/mips64-dsp.xml: New file.
8385 * features/mips-dsp-linux.xml: New file.
8386 * features/mips64-dsp-linux.xml: New file.
8387 * features/Makefile (WHICH): Add mips-dsp-linux and
8389 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8390 * features/mips-dsp-linux.c: New file.
8391 * features/mips64-dsp-linux.c: New file.
8392 * regformats/mips-dsp-linux.dat: New file.
8393 * regformats/mips64-dsp-linux.dat: New file.
8394 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8396 (mips64_linux_register_addr): Likewise.
8397 (mips64_linux_regsets_fetch_registers): Likewise.
8398 (mips64_linux_regsets_store_registers): Likewise.
8399 (mips64_linux_fetch_registers): Update call to
8400 mips64_linux_regsets_fetch_registers.
8401 (mips64_linux_store_registers): Update call to
8402 mips64_linux_regsets_store_registers.
8403 (mips_linux_read_description): Probe for DSP registers.
8404 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8405 and initialize_tdesc_mips64_dsp_linux.
8406 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8407 Remove padding of no longer used embedded register slots.
8408 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8409 (MIPS_RESTART_REGNUM): Redefine enum value.
8410 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8412 (mips_tx39_reg_names): Likewise.
8413 (mips_linux_reg_names): New array of register names for Linux
8415 (mips_register_name): Check for a null pointer in
8416 mips_processor_reg_names and return an empty string.
8417 (mips_register_type): Exclude embedded registers for the IRIX
8419 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8420 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8422 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8423 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8424 (mips_gdbarch_init): Likewise. Initialize internal register
8425 indices for the Linux ABI. Use dynamic numbers to refer to
8426 registers, as applicable, while parsing the target description.
8427 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8429 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8431 * frame.h (read_frame_register_unsigned): Fix typo in function
8434 2012-03-01 Pedro Alves <palves@redhat.com>
8436 * jit-reader.in [!__cplusplus]
8437 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8439 2012-03-01 Pedro Alves <palves@redhat.com>
8441 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8442 * configure: Regenerate.
8444 2012-03-01 Pedro Alves <palves@redhat.com>
8446 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8447 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8448 (ftrace_command, strace_command): Make static.
8449 * d-lang.c (_initialize_d_language): Declare.
8450 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8451 * dwarf2loc.c (_initialize_dwarf2loc):
8452 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8453 * exec.c (exec_get_section_table): Make static.
8454 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8455 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8456 * inferior.c (remove_inferior_command, add_inferior_command)
8457 (clone_inferior_command): Make static.
8458 * linux-nat.c (linux_nat_thread_address_space)
8459 (linux_nat_core_of_thread): Make static.
8460 * linux-tdep.c (_initialize_linux_tdep): Declare.
8461 * objc-lang.c (_initialize_objc_lang): Declare.
8462 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8464 (_initialize_opencl_language): Declare.
8465 * record.c (_initialize_record): Declare.
8466 * remote.c (demand_private_info, remote_get_tib_address)
8467 (remote_supports_cond_tracepoints)
8468 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8470 * skip.c (_initialize_step_skip): Declare.
8471 * symtab.c (skip_prologue_using_lineinfo): Make static.
8472 * tracepoint.c (delete_trace_state_variable)
8473 (trace_variable_command, delete_trace_variable_command)
8474 (get_uploaded_tsv, find_matching_tracepoint_location)
8475 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8477 * value.c (pack_unsigned_long): Make static.
8478 * varobj.c (varobj_ensure_python_env): Make static.
8479 * windows-tdep.c (_initialize_windows_tdep): Declare.
8480 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8482 2012-03-01 Pedro Alves <palves@redhat.com>
8484 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8486 (linux_init_abi): Install it as has_shared_address_space gdbarch
8489 2012-03-01 Pedro Alves <palves@redhat.com>
8491 * observer.c (observer_test_first_notification_function)
8492 (observer_test_second_notification_function)
8493 (observer_test_third_notification_function): Add declarations.
8495 2012-03-01 Pedro Alves <palves@redhat.com>
8497 * common/signals.c (default_target_signal_to_host)
8498 (default_target_signal_from_host): Move ...
8499 * arch-utils.c: ... here.
8500 * arch-utils.h (default_target_signal_to_host)
8501 (default_target_signal_from_host): Declare.
8503 * common/signals.c (target_signal_from_command): Move ...
8504 * infrun.c: ... here.
8505 * inferior.h (target_signal_from_command): Declare.
8506 * target.h (target_signal_from_command)
8507 (default_target_signal_from_host, default_target_signal_to_host):
8508 Delete declarations.
8510 * common/signals.c (_initialize_signals): Delete.
8512 2012-03-01 Pedro Alves <palves@redhat.com>
8514 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8515 both __cplusplus and !__cplusplus.
8517 2012-03-01 Pedro Alves <palves@redhat.com>
8519 * psymtab.c (find_and_open_source): Delete declaration.
8520 * source.c (find_and_open_source): Move comment ...
8521 * source.h (find_and_open_source): ... to this new declaration.
8523 2012-03-01 Pedro Alves <palves@redhat.com>
8525 * inline-frame.c: Include inline-frame.h.
8527 2012-03-01 Pedro Alves <palves@redhat.com>
8529 * tui/tui-data.c (set_gen_win_origin): Delete.
8530 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8531 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8533 2012-03-01 Pedro Alves <palves@redhat.com>
8535 * remote.c (encode_actions): Delete declaration.
8536 * tracepoint.c (encode_actions): Make extern.
8537 * tracepoint.h (encode_actions): Declare.
8539 2012-03-01 Pedro Alves <palves@redhat.com>
8541 * python/py-breakpoint.c: Include python.h.
8542 * python/py-continueevent.c (create_continue_event_object): Make
8544 * python/py-lazy-string.c (stpy_get_type): Make static.
8545 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8547 * python/py-utils.c (unicode_to_target_python_string): Make
8549 * python/py-value.c: Include python.h.
8551 2012-03-01 Pedro Alves <palves@redhat.com>
8553 * inferior.c (delete_threads_of_inferior): Delete.
8555 2012-03-01 Pedro Alves <palves@redhat.com>
8557 Import fallback definitions from glibc.
8559 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8560 ps_prochandle): Forward declare.
8561 (ps_err_e): Use glibc's comments.
8562 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8563 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8564 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8565 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8566 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8567 (struct ps_prochandle): Adjust comment.
8569 2012-03-01 Pedro Alves <palves@redhat.com>
8571 * ada-lang.c (ada_modulus_from_name): Delete.
8572 * ada-lex.l (lexer_init): Make static.
8574 2012-03-01 Pedro Alves <palves@redhat.com>
8578 * frame.c (read_frame_register_unsigned): New.
8579 * frame.h (read_frame_register_unsigned): Declare.
8580 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8582 (print_i387_control_word): New parameter `control_p'. Handle it.
8583 (i387_print_float_info): Handle unavailable float registers.
8585 2012-03-01 Keith Seitz <keiths@redhat.com>
8587 * linespec.c (decode_line_2): Sort the list of methods
8588 alphabetically before presenting the user with a selection
8591 2012-03-01 Doug Evans <dje@google.com>
8593 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8595 (dwarf2_read_abbrevs): Remove corresponding initialization.
8597 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8599 * NEWS: Mention new python command class gdb.COMMAND_USER.
8600 * cli/cli-cmds.c (show_user): Print error when used on a python
8602 (init_cli_cmds): Update documentation strings for "show user" and
8603 "set/show max-user-call-depth" to clarify that it does not apply to
8605 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8607 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8609 * top.c (execute_command): Only execute a user-defined command as a
8610 legacy macro if c->user_commands is set.
8612 2012-03-01 Tom Tromey <tromey@redhat.com>
8614 * valprint.h (struct generic_val_print_decorations): New.
8615 (generic_val_print): Declare.
8616 * valprint.c (generic_val_print): New function.
8617 * p-valprint.c (p_decorations): New global.
8618 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8619 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8620 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8621 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8622 * m2-valprint.c (m2_decorations): New global.
8623 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8624 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8625 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8626 TYPE_CODE_ERROR>: Call generic_val_print.
8627 * f-valprint.c (f_decorations): New global.
8628 (f_val_print): Use print_function_pointer_address.
8629 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8630 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8631 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8633 * c-valprint.c (c_decorations): New global.
8634 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8635 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8636 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8637 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8638 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8639 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8642 2012-03-01 Tom Tromey <tromey@redhat.com>
8644 * valprint.c (val_print): Update.
8645 * p-valprint (pascal_val_print): Return void.
8646 * p-lang.h (pascal_val_print): Return void.
8647 * m2-valprint.c (m2_val_print): Return void.
8648 * m2-lang.h (m2_val_print): Return void.
8649 * language.h (struct language_defn) <la_val_print>: Return void.
8650 * language.c (unk_lang_val_print): Return void.
8651 * jv-valprint.c (java_val_print): Return void.
8652 * jv-lang.h (java_val_print): Return void.
8653 * f-valprint.c (f_val_print): Return void.
8654 * f-lang.h (f_val_print): Return void.
8655 * d-valprint.c (d_val_print): Return void.
8656 (dynamic_array_type): Update.
8657 * d-lang.h (d_val_print): Return void.
8658 * c-valprint.c (c_val_print): Return void.
8659 * c-lang.h (c_val_print): Return void.
8660 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8662 * ada-lang.h (ada_val_print): Return void.
8664 2012-03-01 Tom Tromey <tromey@redhat.com>
8666 * value.h (val_print): Return void.
8667 * valprint.c (val_print): Return void.
8669 2012-03-01 Tom Tromey <tromey@redhat.com>
8671 * value.h (common_val_print): Return void.
8672 * valprint.c (common_val_print): Return void.
8674 2012-03-01 Tom Tromey <tromey@redhat.com>
8676 * value.h (value_print): Return void.
8677 * valprint.c (value_print): Return void.
8678 * p-valprint.c (pascal_value_print): Return void.
8679 * p-lang.h (pascal_value_print): Return void.
8680 * language.h (struct language_defn) <la_value_print>: Return
8682 * language.c (unk_lang_value_print): Return void.
8683 * jv-valprint.c (java_value_print): Return void.
8684 * jv-lang.h (java_value_print): Return void.
8685 * f-valprint.c (c_value_print): Don't declare.
8687 * c-valprint.c (c_value_print): Return void.
8688 * c-lang.h (c_value_print): Return void.
8689 * ada-valprint.c (ada_value_print): Return void.
8690 * ada-lang.h (ada_value_print): Return void.
8692 2012-03-01 Tom Tromey <tromey@redhat.com>
8694 * value.c (value_primitive_field): Handle virtual base classes.
8696 2012-03-01 Tom Tromey <tromey@redhat.com>
8698 * gdbtypes.h (struct vbase): Remove.
8700 2012-03-01 Tom Tromey <tromey@redhat.com>
8702 * c-valprint.c (print_function_pointer_address): Move...
8703 * valprint.c: ... here. Make non-static.
8704 * m2-valprint.c (print_function_pointer_address): Remove.
8705 * valprint.h (print_function_pointer_address): Declare.
8707 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8709 * NEWS: Document the fact that one can provide a condition when
8710 creating an Ada exception catchpoint.
8712 2012-03-01 Tom Tromey <tromey@redhat.com>
8714 * valprint.c (val_print_type_code_flags): Fix placement of
8717 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8719 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8720 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8721 environment variable before calling update-copyright.
8723 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8725 * gnulib/extra/update-copyright: Update to the latest from
8726 gnulib's git repository.
8727 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8728 variable to 2 instead of 1.
8730 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8732 * varobj.c (c_value_of_variable): Remove dead code.
8734 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8736 * ada-lex.p (processId): Do not modify already encoded IDs.
8737 Update function documentation.
8739 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8741 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8742 "name" with "struct symbol *name_sym".
8743 * ada-exp.y (write_var_or_type): Update call to
8744 ada_find_renaming_symbol.
8745 "name" with "struct symbol *name_sym". Adjust Implementation
8746 accordingly. Adjust the function documentation.
8748 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8750 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8751 * ada-lang.c (ada_find_any_type): Add advance declaration.
8752 Make static. Replace ada_find_any_symbol by
8753 ada_find_any_type_symbol.
8754 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8755 Improve function description. Make static.
8756 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8757 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8759 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8761 * ada-lang.c (struct tag_args): Delete.
8762 (ada_get_tsd_type): Function body moved up in source file.
8763 (ada_tag_name_1, ada_tag_name_2): Delete.
8764 (ada_get_tsd_from_tag): New function.
8765 (ada_tag_name_from_tsd): New function.
8766 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8767 to determine the tag name.
8769 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8771 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8773 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8776 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8778 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8780 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8782 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8785 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8787 * ada-lang.c (constrained_packed_array_type): If there is a
8788 parallel XA type, use it to determine the array index type.
8790 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8792 * ada-valprint.c (ada_val_print_1): If our value is a reference
8793 to an array descriptor, dereference it before converting it
8796 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8798 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8799 creating fixed value.
8800 (ada_value_ind, ada_coerce_ref, assign_component)
8801 (ada_evaluate_subexp): Remove call to unwrap_value before
8802 call to ada_to_fixed_value.
8804 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8806 * ada-lang.c (to_fixed_array_type): Set result's type name.
8808 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8810 * ada-lang.c (catch_ada_exception_command_split): Add new
8811 argument cond_string. Add support for condition at end of
8812 "catch exception" commands.
8813 (ada_decode_exception_location): Add new argument cond_string.
8814 Update call to catch_ada_exception_command_split.
8815 (create_ada_exception_catchpoint): Add new argument cond_string.
8816 Set the breakpoint condition if needed.
8817 (catch_ada_exception_command): Update call to
8818 ada_decode_exception_location.
8819 (ada_decode_assert_location): Add function documentation.
8820 Add support for condition at end of "catch assert" command.
8821 (catch_assert_command): Update calls to ada_decode_assert_location
8822 and create_ada_exception_catchpoint.
8824 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8826 Fix disp-step-syscall.exp: fork: single step over fork.
8827 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8828 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8829 comment, change parameters gdbarch and ptid to regcache. Remove
8830 parameter regcache, initialize gdbarch from regcache here.
8831 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8833 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8835 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8836 'syscall'. Make the 'int' check more strict.
8838 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8840 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8841 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8842 (i386_linux_intx80_sysenter_syscall_record): ... here.
8843 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8844 Use the renamed function name.
8846 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8848 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8849 * breakpoint.c (until_break_command): Likewise.
8850 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8851 * infcall.c (call_function_by_hand): Likewise.
8852 * infcmd.c (finish_forward): Likewise.
8853 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8855 2012-02-28 Tristan Gingold <gingold@adacore.com>
8857 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8858 avoid variable assignments inside condition.
8860 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8862 Fix static analysis issue found by cppcheck.
8863 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8864 uninitialized BUF for size 2.
8866 2012-02-27 Chris Dearman <chris@mips.com>
8867 Nathan Froyd <froydnj@codesourcery.com>
8868 Maciej W. Rozycki <macro@codesourcery.com>
8870 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8871 (mips16_instruction_has_delay_slot): Likewise.
8872 (mips_segment_boundary): Likewise.
8873 (mips_adjust_breakpoint_address): Likewise.
8874 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8876 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8877 Maciej W. Rozycki <macro@codesourcery.com>
8879 * infrun.c (handle_inferior_event): Don't proceed through
8880 shared library trampolines if stepping at the machine
8883 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8885 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8888 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8890 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8891 (sh_stub_unwind_sniffer): New functions.
8892 (sh_stub_unwind): New variable.
8893 (sh_gdbarch_init): Wire everything.
8895 2012-02-27 Pedro Alves <palves@redhat.com>
8897 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8898 (linux_nat_post_attach_wait): Adjust to use
8899 linux_proc_pid_is_stopped.
8900 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8901 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8902 based on pid_is_stopped from both linux-nat.c and
8903 gdbserver/linux-low.c, and renamed.
8905 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8907 * remote.c (remote_watchpoint_addr_within_range): New function.
8908 (init_remote_ops): Use it.
8910 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8912 * target.h (target_watchpoint_addr_within_range): Document macro.
8914 2012-02-24 Pedro Alves <palves@redhat.com>
8916 * stack.c (set_last_displayed_sal): Issue internal_error instead
8917 of warning, and issue it after clearing the last displayed sal.
8919 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8920 Pedro Alves <palves@redhat.com>
8922 * breakpoint.c (until_break_command): Install breakpoints after
8923 all frame manipulations.
8925 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8927 * remote.c (remote_supports_cond_breakpoints): New forward
8929 (remote_add_target_side_condition): New function.
8930 (remote_insert_breakpoint): Add target-side breakpoint
8931 conditional if supported.
8932 (remote_insert_hw_breakpoint): Likewise.
8933 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8936 * target.c (update_current_target): Inherit
8937 to_supports_evaluation_of_breakpoint_conditions.
8938 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8940 * target.h (struct target_ops)
8941 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8942 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8944 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8945 (condition_evaluation_both, condition_evaluation_auto,
8946 condition_evaluation_host, condition_evaluation_target,
8947 condition_evaluation_enums, condition_evaluation_mode_1,
8948 condition_evaluation_mode): New static globals.
8949 (translate_condition_evaluation_mode): New function.
8950 (breakpoint_condition_evaluation_mode): New function.
8951 (gdb_evaluates_breakpoint_condition_p): New function.
8952 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8953 (mark_breakpoint_modified): New function.
8954 (mark_breakpoint_location_modified): New function.
8955 (set_condition_evaluation_mode): New function.
8956 (show_condition_evaluation_mode): New function.
8957 (bp_location_compare_addrs): New function.
8958 (get_first_location_gte_addr): New helper function.
8959 (set_breakpoint_condition): Free condition bytecode if locations
8960 has become unconditional. Call mark_breakpoint_modified (...).
8961 (condition_command): Call update_global_location_list (1) for
8963 (breakpoint_xfer_memory): Use is_breakpoint (...).
8964 (is_breakpoint): New function.
8965 (parse_cond_to_aexpr): New function.
8966 (build_target_condition_list): New function.
8967 (insert_bp_location): Handle target-side conditional
8968 breakpoints and call build_target_condition_list (...).
8969 (update_inserted_breakpoint_locations): New function.
8970 (insert_breakpoint_locations): Handle target-side conditional
8972 (bpstat_check_breakpoint_conditions): Add comment.
8973 (bp_condition_evaluator): New function.
8974 (bp_location_condition_evaluator): New function.
8975 (print_breakpoint_location): Print information on where the condition
8977 (print_one_breakpoint_location): Likewise.
8978 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8979 breakpoint location.
8980 (force_breakpoint_reinsertion): New functions.
8981 (update_global_location_list): Handle target-side breakpoint
8983 Reinsert locations that are already inserted if conditions have
8985 (bp_location_dtor): Free agent expression bytecode.
8986 (disable_breakpoint): Call mark_breakpoint_modified (...).
8987 Call update_global_location_list (...) with parameter 1 for breakpoints.
8988 (disable_command): Call mark_breakpoint_location_modified (...).
8989 Call update_global_location_list (...) with parameter 1 for breakpoints.
8990 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8991 (enable_command): mark_breakpoint_location_modified (...).
8992 (_initialize_breakpoint): Update documentation and add
8993 condition-evaluation breakpoint subcommand.
8995 * breakpoint.h: Include ax.h.
8996 (condition_list): New data structure.
8997 (condition_status): New enum.
8998 (bp_target_info) <cond_list>: New field.
8999 (bp_location) <condition_changed, cond_bytecode>: New fields.
9000 (is_breakpoint): New prototype.
9002 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9004 * remote.c (remote_state) <cond_breakpoints>: New field.
9005 (PACKET_ConditionalBreakpoints): New enum.
9006 (remote_cond_breakpoint_feature): New function.
9007 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9008 (remote_supports_cond_breakpoints): New function.
9009 (_initialize_remote): Add new packet configuration for
9010 target-side conditional breakpoints.
9012 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9014 * NEWS: Mention target-side conditional breakpoint support,
9015 new condition-evaluation breakpoint subcommand and remote
9018 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9020 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9023 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9025 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9026 (after_prologue): Remove.
9028 2012-02-23 Tom Tromey <tromey@redhat.com>
9030 * jv-valprint.c (java_val_print): Remove dead code.
9032 2012-02-23 Tristan Gingold <gingold@adacore.com>
9034 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9035 known_tasks_element and known_tasks_length fields.
9036 (read_known_tasks_array): Change argument type. Use pointer type
9037 and number of elements from DATA. Adjust.
9038 (read_known_tasks_list): Likewise.
9039 (get_known_tasks_addr): Remove.
9040 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9041 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9042 type and array length. Merge former get_known_tasks_addr code.
9044 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9048 it after set_momentary_breakpoint.
9050 2012-02-22 Sterling Augustine <saugustine@google.com>
9053 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9055 2012-02-22 Gary Benson <gbenson@redhat.com>
9057 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9058 (find_slot_in_mapped_hash): Likewise.
9060 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9063 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9064 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9065 * configure: Regenerate.
9067 2012-02-21 Tristan Gingold <gingold@adacore.com>
9068 Pedro Alves <palves@redhat.com>
9070 * ia64-tdep.c: Do not include libunwind-ia64.h.
9071 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9072 Include libunwind-ia64.h instead of libunwind.h.
9073 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9074 for libunwind.h existence.
9075 * configure, config.in: Regenerate.
9077 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9079 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9080 instead of value_rtti_target_type.
9081 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9082 instead of value_rtti_target_type.
9083 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9084 value_rtti_target_type.
9085 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9086 (value_rtti_target_type): Rename to ...
9087 (value_rtti_indirect_type): ... here and make it indirect. Update
9089 * value.c (readjust_indirect_value_type): New function.
9090 (coerce_ref): Support for enclosing type setting for references
9091 with readjust_indirect_value_type.
9092 * value.h (readjust_value_type): New declaration.
9093 (value_rtti_target_type): Rename to ...
9094 (value_rtti_indirect_type): ... here.
9096 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9098 * MAINTAINERS (Write After Approval): Add myself to the list.
9100 2012-02-20 Doug Evans <dje@google.com>
9102 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9103 Rename objfile_p_char parameter to objfilep.
9104 (build_objfile_section_table): Result is now void. All callers
9106 * objfiles.h (struct objfile): Tweak comments, whitespace.
9107 (build_objfile_section_table): Update.
9109 * elfread.c (elf_symfile_segments): Fix warning text.
9111 2012-02-20 Tom Tromey <tromey@redhat.com>
9114 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9115 particular set of file names once.
9116 (dw2_map_symbol_filenames): Likewise.
9118 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9121 * main.c (write_files): Remove the declaration.
9122 (external_editor_command): Move the declaration ...
9123 [GDBTK] (external_editor_command): ... here. Fix the comment.
9125 2012-02-20 Tom Tromey <tromey@redhat.com>
9127 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9130 2012-02-20 Tristan Gingold <gingold@adacore.com>
9132 * darwin-nat.h (enum darwin_msg_state): Add comments.
9134 2012-02-20 Tristan Gingold <gingold@adacore.com>
9136 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9139 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9141 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9142 between function description and implementation.
9144 2012-02-17 Tom Tromey <tromey@redhat.com>
9147 * python/py-event.c (event_object_getset): New global.
9148 (event_object_type): Reference it.
9149 * python/py-type.c (field_object_getset): New global.
9150 (field_object_type): Reference it.
9151 * python/python-internal.h (gdb_py_generic_dict): Declare.
9152 * python/py-utils.c (gdb_py_generic_dict): New function.
9154 2012-02-17 Tristan Gingold <gingold@adacore.com>
9156 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9158 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9160 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9161 TYPE_CALLING_CONVENTION annotation.
9163 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9165 * MAINTAINERS: Add rx to target ISA section.
9166 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9167 (ALLDEPFILES): Add rx-tdep.c.
9169 2012-02-16 Tom Tromey <tromey@redhat.com>
9171 * symfile.c (symbol_file_add_main_1): Use inferior's
9173 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9174 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9176 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9178 (follow_exec): Use inferior's symfile_flags.
9179 * inferior.h (struct inferior) <symfile_flags>: New field.
9181 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9184 * remote-sim.c (gdbsim_create_inferior): Call error() when
9185 sim_create_inferior() fails.
9187 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9189 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9191 2012-02-16 Tom Tromey <tromey@redhat.com>
9194 * thread.c (struct current_thread_cleanup) <was_removable>: New
9196 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9197 (make_cleanup_restore_current_thread): Initialize new field.
9199 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9201 * MAINTAINERS: Add rl78 to target ISA section.
9202 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9203 (ALLDEPFILES): Add rl78-tdep.c.
9204 * NEWS: Mention rl78 as a new target.
9206 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9208 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9210 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9212 2012-02-15 Tom Tromey <tromey@redhat.com>
9215 * infcmd.c (registers_info): Print just the current register's
9218 2012-02-15 Tom Tromey <tromey@redhat.com>
9220 * python/py-symbol.c (sympy_value): Use _().
9222 2012-02-15 Pedro Alves <palves@redhat.com>
9224 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9225 output to be like native targets'.
9226 (remote_pid_to_str): Special case the null ptid.
9228 2012-02-14 Stan Shebs <stan@codesourcery.com>
9230 * NEWS: Mention enable count command.
9231 * breakpoint.h (struct breakpoint): New field enable_count.
9232 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9233 (enable_breakpoint): Add arg to call.
9234 (struct disp_data): New struct.
9235 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9236 (do_map_enable_once_breakpoint): Create a struct and pass it.
9237 (do_map_enable_delete_breakpoint): Ditto.
9238 (do_map_enable_count_breakpoint): New function.
9239 (enable_count_command): New function.
9240 (bpstat_stop_status): Decrement enable_count.
9241 (print_one_breakpoint_location): Report enable count.
9242 (_initialize_breakpoint): Add enable count command.
9244 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9246 * rl78-tdep.c (reggroups.h): Include.
9247 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9248 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9249 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9250 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9251 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9252 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9253 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9254 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9255 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9256 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9257 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9258 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9259 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9260 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9261 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9262 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9263 beginning of register list.
9264 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9265 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9266 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9267 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9268 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9269 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9270 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9271 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9272 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9273 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9274 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9275 the pseudo registers. Rearrange other pseudo registers too so
9276 that the bank registers appear at the end.
9277 (rl78_register_type): Account for the fact that the byte sized
9278 bank registers are now pseudo-registers.
9279 (rl78_register_name): Rearrange the register name array. Make
9280 initial set of raw banked registers inaccessible.
9281 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9282 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9283 case for copying bytes back and forth between raw and pseudo
9284 versions of the banked registers. Update other cases to reflect
9286 (rl78_return_value): Update to account for changed names of
9288 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9289 rl78_register_sim_regno().
9291 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9293 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9294 the name parameter being passed to find_pc_partial_function().
9296 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9298 * MAINTAINERS: Step down from being ia64 target maintainer.
9300 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9302 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9303 compilation warning.
9305 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9307 Fix crash on loaded shlibs without loaded exec_bfd.
9308 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9309 (set_section_command): Replace exec_bfd by p->bfd.
9311 2012-02-10 Tom Tromey <tromey@redhat.com>
9313 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9314 when we have a C++ qualified name.
9316 2012-02-10 Pedro Alves <palves@redhat.com>
9318 * inferior.c (inferior_pid_to_str): New.
9319 (print_inferior, inferior_command): Use it.
9321 2012-02-10 Pedro Alves <palves@redhat.com>
9323 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9325 * configure: Regenerate.
9327 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9329 * linespec.c (decode_line_internal): Fix comment correctness.
9331 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9334 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9335 * amd64bsd-nat.c: Add support for debug registers (adapted from
9337 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9338 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9339 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9340 (amd64bsd_dr_get_control): New functions.
9341 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9342 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9343 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9344 watchpoints initialization.
9345 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9347 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9349 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9351 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9353 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9355 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9357 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9359 * language.h (symbol_name_cmp_ftype): Renames
9360 symbol_name_match_p_ftype.
9361 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9362 la_get_symbol_name_match_p.
9363 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9364 ada_get_symbol_name_match_p. Update comment.
9365 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9366 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9367 Renames symbol_name_match_p. Update field type.
9368 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9369 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9370 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9371 "la_get_symbol_name_cmp" in comments.
9372 * language.c: Likewise.
9374 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9376 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9378 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9379 (amd64_sol2_gregset32_reg_offs): Likewise.
9381 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9383 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9384 of the returned BFD is allocated by GDB.
9386 2012-02-07 Tom Tromey <tromey@redhat.com>
9389 * python/python-internal.h (frame_object_type): Declare.
9390 * python/py-symbol.c (sympy_needs_frame): New function.
9391 (sympy_value): New function.
9392 (symbol_object_getset): Add "needs_frame".
9393 (symbol_object_methods): Add "value".
9394 * python/py-frame.c (frame_object_type): No longer static.
9396 2012-02-07 Tom Tromey <tromey@redhat.com>
9399 * python/py-symbol.c (sympy_line): New function.
9400 (symbol_object_getset): Add "line".
9402 2012-02-07 Tom Tromey <tromey@redhat.com>
9404 * charset.c (find_charset_names): Check 'in' against NULL.
9406 2012-02-06 Doug Evans <dje@google.com>
9408 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9409 and fields.name members from char * to const char *. All uses updated.
9410 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9411 from char * to const char *. All uses updated.
9412 (type_name_no_tag): Update.
9413 (lookup_unsigned_typename, lookup_signed_typename): Update.
9414 * gdbtypes.c (type_name_no_tag): Change result type
9415 from char * to const char *. All callers updated.
9416 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9417 name parameter from char * to const char *.
9418 * symtab.h (struct cplus_specific): Change type of demangled_name
9419 member from char * to const char *. All uses updated.
9420 (struct general_symbol_info): Change type of name and
9421 mangled_lang.demangled_name members from char * to const char *.
9423 (symbol_get_demangled_name, symbol_natural_name): Update.
9424 (symbol_demangled_name, symbol_search_name): Update.
9425 * symtab.c (symbol_get_demangled_name): Change result type
9426 from char * to const char *. All callers updated.
9427 (symbol_natural_name, symbol_demangled_name): Ditto.
9428 (symbol_search_name): Ditto.
9429 (completion_list_add_name): Change type of symname,sym_text,
9430 text,word parameters from char * to const char *.
9431 (completion_list_objc_symbol): Change type of sym_text,
9432 text,word parameters from char * to const char *.
9433 * ada-lang.c (find_struct_field): Change type of name parameter
9434 from char * to const char *.
9435 (encoded_ordered_before): Similarly for N0,N1 parameters.
9436 (old_renaming_is_invisible): Similarly for function_name parameter.
9437 (ada_type_name): Change result type from char * to const char *.
9438 All callers updated.
9439 * ada-lang.h (ada_type_name): Update.
9440 * buildsym.c (hashname): Change type of name parameter
9441 from char * to const char *.
9442 * buildsym.h (hashname): Update.
9443 * dbxread.c (end_psymtab): Change type of include_list parameter
9444 from char ** to const char **.
9445 * dwarf2read.c (determine_prefix): Change result type
9446 from char * to const char *. All callers updated.
9447 * f-lang.c (find_common_for_function): Change type of name, funcname
9448 parameters from char * to const char *.
9449 * f-lang.c (find_common_for_function): Update.
9450 * f-valprint.c (list_all_visible_commons): Change type of funcname
9451 parameters from char * to const char *.
9452 * gdbarch.sh (static_transform_name): Change type of name parameter
9453 and result from char * to const char *.
9454 * gdbarch.c: Regenerate.
9455 * gdbarch.h: Regenerate.
9456 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9457 of name parameter from char * to const char *.
9458 * jv-lang.c (java_primitive_type_from_name): Ditto.
9459 (java_demangled_signature_length): Similarly for signature parameter.
9460 (java_demangled_signature_copy): Ditto.
9461 (java_demangle_type_signature): Ditto.
9462 * jv-lang.h (java_primitive_type_from_name): Update.
9463 (java_demangle_type_signature): Update.
9464 * objc-lang.c (specialcmp): Change type of a,b parameters
9465 from char * to const char *.
9466 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9467 from char * to const char *. All callers updated.
9468 * p-lang.h (is_pascal_string_type): Update.
9469 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9470 of name parameter from char * to const char *.
9471 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9472 * utils.c (fprintf_symbol_filtered): Ditto.
9473 * defs.h (fprintf_symbol_filtered): Update.
9474 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9475 * stabsread.h (end_psymtab): Update.
9476 * stack.c (find_frame_funname): Change type of funname parameter
9477 from char ** to const char **.
9478 * stack.h (find_frame_funname): Update.
9479 * typeprint.c (type_print): Change type of varstring parameter
9480 from char * to const char *.
9481 * value.h (type_print): Update.
9482 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9483 from char * to const char *. All callers updated.
9484 (xcoff_end_psymtab): Change type of include_list parameter
9485 from char ** to const char **. All callers updated.
9486 (swap_sym): Similarly for name parameter. All callers updated.
9487 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9489 (process_coff_symbol): Use xstrdup.
9490 * stabsread.c (stabs_method_name_from_physname): Renamed from
9491 update_method_name_from_physname. Change result type from void
9492 to char *. All callers updated.
9493 (read_member_functions): In has_destructor case, store name in objfile
9494 obstack instead of malloc space. In !has_stub case, fix mem leak.
9496 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9498 * configure: Rebuild.
9499 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9502 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9504 * configure.tgt (rl78-*-elf): New target.
9505 * rl78-tdep.c: New file.
9507 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9509 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9510 and continue the loop. Add QUIT statement.
9512 2012-02-03 Tom Tromey <tromey@redhat.com>
9515 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9516 bfd_lookup_symbol_from_symtab.
9517 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9518 gdb_bfd_lookup_symbol_from_symtab.
9520 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9522 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9523 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9524 symbol. Add assertion that sym2 is never NULL.
9526 2012-02-02 Doug Evans <dje@google.com>
9528 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9529 "name" parameter to const char ** from char **. All callers updated.
9530 (find_pc_partial_function): Ditto.
9531 (cache_pc_function_name): Change type to const char * from char *.
9532 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9533 (find_pc_partial_function): Update.
9534 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9535 type of "name" parameter to const char * from char *.
9537 * arch-utils.c (generic_in_solib_return_trampoline): Change
9538 type of "name" parameter to const char * from char *.
9539 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9540 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9541 type of "name" parameter to const char * from char *.
9542 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9543 * gdbarch.c: Regenerate.
9544 * gdbarch.h: Regenerate.
9545 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9546 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9547 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9548 type of "name" parameter to const char * from char *.
9549 * skip.c (skip_function_pc): Ditto.
9550 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9551 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9552 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9553 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9554 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9555 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9556 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9557 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9558 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9560 2012-02-02 Pedro Alves <palves@redhat.com>
9562 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9563 the current inferior has no execution. Make sure the current
9564 remote process matches gdb's current inferior.
9566 2012-02-02 Tom Tromey <tromey@redhat.com>
9569 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9572 2012-02-02 Tom Tromey <tromey@redhat.com>
9575 * symtab.c (lookup_language_this): Set block_found.
9577 2012-02-01 Tom Tromey <tromey@redhat.com>
9580 * jit.c (struct jit_inferior_data): Rewrite.
9581 (struct jit_objfile_data): New.
9582 (get_jit_objfile_data): New function.
9583 (add_objfile_entry): Update.
9584 (jit_read_descriptor): Return int. Replace descriptor_addr
9585 argument with inf_data. Update. Don't call error.
9586 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9588 (jit_inferior_init): Don't look up descriptor. Don't call error.
9589 (jit_reset_inferior_data_and_breakpoints)
9590 (jit_inferior_created_observer): Remove.
9591 (jit_inferior_exit_hook): Update.
9592 (jit_executable_changed_observer): Remove.
9593 (jit_event_handler): Update.
9594 (free_objfile_data): Reset inferior data if needed.
9595 (_initialize_jit): Update.
9597 2012-02-01 Tom Tromey <tromey@redhat.com>
9599 * jit.c (bfd_open_from_target_memory): Move higher in file.
9601 2012-02-01 Tristan Gingold <gingold@adacore.com>
9603 * libunwind-frame.c (libunwind_load): Display message if dlopen
9606 2012-02-01 Gary Benson <gbenson@redhat.com>
9608 * symtab.h (symbol_found_callback_ftype): New typedef.
9609 (iterate_over_symbols): Use the above.
9610 * symtab.c (iterate_over_symbols): Likewise.
9611 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9612 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9613 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9614 (iterate_name_matcher): Document return values.
9615 (collect_one_symbol): Likewise.
9616 (collect_function_symbols): Likewise.
9617 (collect_symbols): Likewise.
9619 2012-02-01 Tom Tromey <tromey@redhat.com>
9621 * ada-lang.c (resolve_subexp): Update.
9622 (ada_lookup_symbol_list): Add 'full_search' argument.
9623 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9624 ada_lookup_symbol_list.
9625 (ada_lookup_encoded_symbol): Update.
9626 (get_var_value): Update.
9627 * ada-exp.y (block_lookup): Update.
9628 (write_var_or_type): Update.
9629 (write_name_assoc): Update.
9630 * ada-lang.h (ada_lookup_symbol_list): Update.
9632 2012-01-31 Tom Tromey <tromey@redhat.com>
9634 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9637 2012-01-31 Doug Evans <dje@google.com>
9639 * symtab.h: Remove outdated comment.
9640 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9642 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9644 Fix build error in Darwin port.
9645 * i386-darwin-nat.c: Include i386-nat.h.
9647 2012-01-30 Tom Tromey <tromey@redhat.com>
9649 PR breakpoints/13568:
9650 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9651 argument. Check for recursive includes.
9652 (dwarf_decode_macros): Create an include hash.
9654 2012-01-30 Michael Eager <eager@eagercon.com>
9656 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9657 * ppc-linux-tdep.c: Include glibc-tdep.h.
9658 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9659 (powerpc_linux_in_plt_stub): New function.
9660 (powerpc_linux_in_dynsym_resolve_code): New function.
9661 (ppc_skip_trampoline_code): New function.
9662 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9663 Use glibc_skip_solib_resolver.
9665 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9667 Code cleanup: Make 1440 bytes of data segment read-only.
9668 * arch-utils.c (endian_enum): Make it const char *const [].
9669 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9671 * breakpoint.c (always_inserted_enums): Likewise.
9672 * cli/cli-cmds.c (script_ext_enums): Likewise.
9673 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9674 enumlist parameter const char *const *.
9675 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9676 const char *const *.
9677 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9678 parameter const char *const *.
9679 * cris-tdep.c (cris_modes): Make it const char *const [].
9680 * filesystem.c (target_file_system_kinds): Likewise.
9681 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9682 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9683 (can_use_displaced_stepping_enum, scheduler_enums)
9684 (exec_direction_names): Likewise.
9685 * language.c (_initialize_language): Make the type_or_range_names and
9686 case_sensitive_names variables const char *const [].
9687 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9688 * python/python.c (python_excp_enums): Likewise.
9689 * remote.c (interrupt_sequence_modes): Likewise.
9690 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9691 * serial.c (logbase_enums): Likewise.
9692 * sh-tdep.c (sh_cc_enum): Likewise.
9693 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9695 * symtab.c (multiple_symbols_modes): Likewise.
9696 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9698 * utils.c (internal_problem_modes): Likewise.
9700 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9702 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9703 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9706 2012-01-27 Doug Evans <dje@google.com>
9708 * configure.ac (with_python): Fix absolute path handling for win32.
9709 * configure: Regenerate.
9711 2012-01-26 Doug Evans <dje@google.com>
9713 * symtab.c: Whitespace cleanup, no code changes.
9715 * symtab.c (lookup_symbol_in_language): Improve comment.
9716 (lookup_symbol_aux): Fix comment.
9718 * psymtab.c (add_psymbol_to_list): Result is now "void".
9719 * psympriv.h (add_psymbol_to_list): Update.
9721 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9723 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9725 Do not open script filenames twice.
9726 * cli/cli-cmds.c (source_script_from_stream): Pass to
9727 source_python_script also STREAM.
9728 * python/py-auto-load.c (source_section_scripts): Pass to
9729 source_python_script_for_objfile also STREAM.
9730 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9732 * python/python-internal.h (source_python_script_for_objfile): New
9733 parameter file, rename parameter file to filename.
9734 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9735 instead if !_WIN32. Update the function comment.
9736 (source_python_script, source_python_script_for_objfile)
9737 (source_python_script): New parameter file, rename parameter file to
9738 filename. Pass FILENAME to python_run_simple_file.
9739 * python/python.h (source_python_script): New parameter file, rename
9740 parameter file to filename.
9742 2012-01-26 Pedro Alves <palves@redhat.com>
9744 * corelow.c (core_has_fake_pid): Delete.
9745 (core_close): Delete references to `core_has_fake_pid'.
9746 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9747 (core_open): Delete references to `core_has_fake_pid'.
9748 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9751 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9753 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9754 Remove language parameter from name_matcher. Adjust the comment.
9755 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9756 Remove language parameter.
9757 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9758 * linespec.c (iterate_name_matcher): Likewise.
9759 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9760 name_matcher. Adjust call accordingly.
9761 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9762 (maintenance_check_symtabs): Adjust type of parameter "fun".
9763 * psymtab.h (maintenance_check_symtabs): Likewise.
9765 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9767 * language.h (symbol_name_match_p_ftype): New typedef.
9768 (struct language_defn): Replace field la_symbol_name_compare
9769 by la_get_symbol_name_match_p.
9770 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9771 (ada_language_defn): Use it.
9772 * linespec.c (struct symbol_matcher_data): New type.
9773 (iterate_name_matcher): Rewrite.
9774 (iterate_over_all_matching_symtabs): Pass a pointer to
9775 a symbol_matcher_data struct to expand_symtabs_matching
9776 instead of just the lookup name.
9777 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9778 opencl-lang.c, p-lang.c, language.c: Delete field
9779 la_symbol_name_compare, and replace by NULL for new field
9780 la_get_symbol_name_match_p.
9781 * symfile.h (struct quick_symbol_functions): Update comment.
9783 2012-01-25 Tom Tromey <tromey@redhat.com>
9785 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9788 2012-01-24 Tom Tromey <tromey@redhat.com>
9791 * solib.c (update_solib_list): Update the program space's
9792 added_solibs and deleted_solibs fields.
9793 * progspace.h (struct program_space) <added_solibs,
9794 deleted_solibs>: New fields.
9795 (clear_program_space_solib_cache): Declare.
9796 * progspace.c (release_program_space): Call
9797 clear_program_space_solib_cache.
9798 (clear_program_space_solib_cache): New function.
9799 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9800 bpstat_stop_status. Use handle_solib_event.
9801 * breakpoint.c: Include gdb_regex.h.
9802 (print_solib_event): New function.
9803 (bpstat_print): Use print_solib_event.
9804 (bpstat_stop_status): Add special case for bp_shlib_event.
9805 (handle_solib_event): New function.
9806 (bpstat_what): Use handle_solib_event.
9807 (struct solib_catchpoint): New.
9808 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9809 (breakpoint_hit_catch_solib, check_status_catch_solib)
9810 (print_it_catch_solib, print_one_catch_solib)
9811 (print_mention_catch_solib, print_recreate_catch_solib): New
9813 (catch_solib_breakpoint_ops): New global.
9814 (catch_load_or_unload, catch_load_command_1)
9815 (catch_unload_command_1): New functions.
9816 (internal_bkpt_check_status): Add special case for
9818 (internal_bkpt_print_it): Use print_solib_event.
9819 (initialize_breakpoint_ops): Initialize
9820 catch_solib_breakpoint_ops.
9821 (_initialize_breakpoint): Register "catch load" and "catch
9823 * breakpoint.h (handle_solib_event): Declare.
9824 * NEWS: Add entry for "catch load" and "catch unload".
9826 2012-01-24 Tom Tromey <tromey@redhat.com>
9828 * ada-lang.c: Include gdb_vecs.h.
9829 * charset.c: Include gdb_vecs.h.
9830 * tracepoint.h: Include gdb_vecs.h.
9831 * gdb_vecs.h: New file.
9833 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9835 * breakpoint.c (breakpoint_hit_catch_fork)
9836 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9837 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9838 * infrun.c (inferior_has_forked, inferior_has_vforked)
9839 (inferior_has_execd, inferior_has_called_syscall): Delete.
9840 (handle_syscall_event): Get syscall_number from the execution
9841 control state's wait status.
9842 (wait_for_inferior): Don't clear syscall_number.
9844 2012-01-24 Pedro Alves <palves@redhat.com>
9846 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9847 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9848 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9849 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9851 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9852 false for events other than TARGET_SIGNAL_TRAP.
9853 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9855 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9856 events other than TARGET_SIGNAL_TRAP.
9857 (tracepoint_breakpoint_hit): Add `ws' parameter.
9858 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9860 (bpstat_stop_status): Same.
9861 (pc_at_non_inline_function): Same.
9862 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9863 to pass the current event's waitstatus to bpstat_stop_status
9864 and pc_at_non_inline_function.
9866 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9869 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9870 Update the function comment for it.
9871 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9872 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9875 2012-01-24 Pedro Alves <palves@redhat.com>
9877 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9878 outside `bs->stop' block.
9879 (bpstat_what): Rework bp_shlib_event handling.
9880 (internal_bkpt_check_status): If the breakpoint is a
9881 bp_shlib_event, then set bs->stop and bs->print if
9882 stop_on_solib_events is set.
9884 2012-01-24 Gary Benson <gbenson@redhat.com>
9886 Delete #if 0'd out code.
9887 * stack.c (print_frame_label_vars): Remove.
9888 (catch_info): Likewise.
9889 (_initialize_stack): Remove "info catch" command.
9890 * NEWS: Mention the above.
9892 2012-01-24 Pedro Alves <palves@redhat.com>
9894 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9896 (remote_notice_new_inferior): If the remote end doesn't support
9897 the multiprocess extensions, then the PID is fake.
9898 (add_current_inferior_and_thread): New.
9899 (remote_start_remote): Use it.
9900 (extended_remote_attach_1): Adjust.
9901 (extended_remote_create_inferior_1): Use
9902 add_current_inferior_and_thread.
9904 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9906 Fix watchpoints to be specific for each inferior.
9907 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9908 current_program_space.
9909 * i386-nat.c (i386_inferior_data_cleanup): New.
9910 (i386_inferior_data_get): Replace variable inf_data_local by an
9912 (i386_use_watchpoints): Initialize i386_inferior_data.
9913 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9914 specific iterate_over_lwps.
9916 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9918 Fix watchpoints across inferior fork.
9919 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9920 comment for linux_nat_iterate_watchpoint_lwps.
9921 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9922 linux_nat_iterate_watchpoint_lwps.
9923 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9924 * i386-linux-nat.c (update_debug_registers_callback): Update the
9925 comment for linux_nat_iterate_watchpoint_lwps.
9926 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9927 linux_nat_iterate_watchpoint_lwps.
9928 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9929 * i386-nat.c: Include inferior.h.
9930 (dr_mirror): Remove.
9931 (i386_inferior_data, struct i386_inferior_data)
9932 (i386_inferior_data_get): New.
9933 (i386_debug_reg_state): Use i386_inferior_data_get.
9934 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9935 (i386_insert_watchpoint, i386_remove_watchpoint)
9936 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9937 (i386_remove_hw_breakpoint): New variable state, use
9938 i386_debug_reg_state instead of DR_MIRROR.
9939 * linux-nat.c (delete_lwp): New declaration.
9940 (num_lwps): Move here from downwards.
9941 (delete_lwp_cleanup): New.
9942 (linux_child_follow_fork): Create new child_lp, call
9943 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9945 (num_lwps): Move upwards.
9946 (linux_nat_iterate_watchpoint_lwps): New.
9947 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9948 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9950 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9954 2012-01-23 Pedro Alves <palves@redhat.com>
9956 * top.c (caution): Rename to ...
9957 (confirm): ... this.
9958 (show_caution): Rename to ...
9959 (show_confirm): ... this.
9960 (quit_cover): Adjust.
9961 (init_main): Adjust.
9962 * top.h (caution): Rename to ...
9963 (confirm): ... this.
9964 * utils.c (internal_vproblem, defaulted_query): Adjust.
9966 2012-01-23 Pedro Alves <palves@redhat.com>
9968 * top.c (caution): Update comment.
9969 (execute_command): Don't consider the current value of `caution'.
9971 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9973 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9975 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9977 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9978 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9979 * target.c (target_fileio_pwrite): Remove buffer address from
9981 (target_fileio_pread): Likewise.
9983 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9985 * NEWS: Document remote "info proc" and "generate-core-file".
9987 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9989 * gdbarch.sh (find_memory_regions): New callback.
9990 * gdbarch.c, gdbarch.h: Regenerate.
9992 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9993 callback before falling back to target method.
9995 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9996 (linux_target_install_ops): No longer install it.
9998 * linux-tdep.c (linux_find_memory_regions): New function.
9999 (linux_init_abi): Install it.
10001 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10003 * gdbarch.sh (make_corefile_notes): New architecture callback.
10004 * gdbarch.c: Regenerate.
10005 * gdbarch.h: Likewise.
10007 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10008 before target_make_corefile_notes. If NULL is returned, the
10009 target does not support core file generation.
10011 * linux-nat.c: Include "linux-tdep.h".
10012 (find_signalled_thread, find_stop_signal): Remove.
10013 (linux_nat_do_thread_registers): Likewise.
10014 (struct linux_nat_corefile_thread_data): Likewise.
10015 (linux_nat_corefile_thread_callback): Likewise.
10016 (iterate_over_spus): Likewise.
10017 (struct linux_spu_corefile_data): Likewise.
10018 (linux_spu_corefile_callback): Likewise.
10019 (linux_spu_make_corefile_notes): Likewise.
10020 (linux_nat_collect_thread_registers): New function.
10021 (linux_nat_make_corefile_notes): Replace contents by call to
10022 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10023 as native-only callback.
10025 * linux-tdep.h: Include "bfd.h".
10026 (struct regcache): Add forward declaration.
10027 (linux_collect_thread_registers_ftype): New typedef.
10028 (linux_make_corefile_notes): Add prototype.
10029 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10030 "regset.h", and "elf-bfd.h".
10031 (find_signalled_thread, find_stop_signal): New functions.
10032 (linux_spu_make_corefile_notes): Likewise.
10033 (linux_collect_thread_registers): Likewise.
10034 (struct linux_corefile_thread_data): New data structure.
10035 (linux_corefile_thread_callback): New funcion.
10036 (linux_make_corefile_notes): Likewise.
10037 (linux_make_corefile_notes_1): Likewise.
10038 (linux_init_abi): Install it.
10040 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10042 * gdbarch.sh (info_proc): New callback.
10043 * gdbarch.c, gdbarch.h: Regenerate.
10045 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10046 before falling back to the target info_proc callback.
10048 * linux-nat.c: Do not include "cli/cli-utils.h".
10049 (linux_nat_info_proc): Remove.
10050 (linux_target_install_ops): No longer install it.
10052 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10053 (read_mapping): New function.
10054 (linux_info_proc): Likewise.
10055 (linux_init_abi): Install it.
10057 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10059 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10060 * infcmd.c: (info_proc_cmd_1): New function.
10061 (info_proc_cmd): New function, moved here from equivalent routine
10062 orignally in linux-nat.c.
10063 (info_proc_cmd_mappings): Likewise.
10064 (info_proc_cmd_stat): Likewise.
10065 (info_proc_cmd_status): Likewise.
10066 (info_proc_cmd_cwd): Likewise.
10067 (info_proc_cmd_cmdline): Likewise.
10068 (info_proc_cmd_exe): Likewise.
10069 (info_proc_cmd_all): Likewise.
10070 (_initialize_infcmd): Install "info proc" command and subcommands.
10072 * target.h (struct target_ops): Add to_info_proc.
10073 (target_info_proc): Add prototype.
10074 * target.c (target_info_proc): New function.
10076 * procfs.c (procfs_info_proc): Add prototype.
10077 (info_proc_cmd): Rename into ...
10078 (procfs_info_proc): ... this. Update argument types as appropriate
10079 for a to_info_proc implementation. Handle "what" argument.
10080 (procfs_target): Install procfs_info_proc.
10081 (_initialize_procfs): No longer install "info proc" command.
10083 * linux-nat.c: (enum info_proc_what): Remove.
10084 (linux_nat_info_proc_cmd_1): Rename into ...
10085 (linux_nat_info_proc): ... this. Update argument types as appropriate
10086 for a to_info_proc implementation.
10087 (linux_nat_info_proc_cmd): Remove.
10088 (linux_nat_info_proc_cmd_mappings): Likewise.
10089 (linux_nat_info_proc_cmd_stat): Likewise.
10090 (linux_nat_info_proc_cmd_status): Likewise.
10091 (linux_nat_info_proc_cmd_cwd): Likewise.
10092 (linux_nat_info_proc_cmd_cmdline): Likewise.
10093 (linux_nat_info_proc_cmd_exe): Likewise.
10094 (linux_nat_info_proc_cmd_all): Likewise.
10095 (linux_target_install_ops): Install linux_nat_info_proc.
10096 (_initialize_linux_nat): No longer install "info proc" command
10099 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10101 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10102 * config.in, configure: Regenerate.
10104 * target.h (struct target_ops): Add to_fileio_readlink.
10105 (target_fileio_readlink): Add prototype.
10106 * target.c (target_fileio_readlink): New function.
10108 * inf-child.c: Conditionally include <sys/param.h>.
10109 (inf_child_fileio_readlink): New function.
10110 (inf_child_target): Install it.
10112 * remote.c (PACKET_vFile_readlink): New enum value.
10113 (remote_hostio_readlink): New function.
10114 (init_remote_ops): Install it.
10115 (_initialize_remote): Handle vFile:readlink packet type.
10117 2012-01-20 Pedro Alves <palves@redhat.com>
10118 Ulrich Weigand <ulrich.weigand@linaro.org>
10120 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10121 * config.in, configure: Regenerate.
10123 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10124 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10125 (target_fileio_open): Add prototype.
10126 (target_fileio_pwrite): Likewise.
10127 (target_fileio_pread): Likewise.
10128 (target_fileio_close): Likewise.
10129 (target_fileio_unlink): Likewise.
10130 (target_fileio_read_alloc): Likewise.
10131 (target_fileio_read_stralloc): Likewise.
10133 * target.c: Include "gdb/fileio.h".
10134 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10135 (default_fileio_target): New function.
10136 (target_fileio_open): Likewise.
10137 (target_fileio_pwrite): Likewise.
10138 (target_fileio_pread): Likewise.
10139 (target_fileio_close): Likewise.
10140 (target_fileio_unlink): Likewise.
10141 (target_fileio_close_cleanup): Likewise.
10142 (target_fileio_read_alloc_1): Likewise.
10143 (target_fileio_read_alloc): Likewise.
10144 (target_fileio_read_stralloc): Likewise.
10146 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10147 <fcntl.h>, and <unistd.h>.
10148 (inf_child_fileio_open_flags_to_host): New function.
10149 (inf_child_errno_to_fileio_error): Likewise.
10150 (inf_child_fileio_open): Likewise.
10151 (inf_child_fileio_pwrite): Likewise.
10152 (inf_child_fileio_pread): Likewise.
10153 (inf_child_fileio_close): Likewise.
10154 (inf_child_fileio_unlink): Likewise.
10155 (inf_child_target): Install to_fileio routines.
10157 * remote.c (init_remote_ops): Install to_fileio routines.
10159 2012-01-20 Pedro Alves <palves@redhat.com>
10160 Ulrich Weigand <ulrich.weigand@linaro.org>
10162 * remote.c (remote_multi_process_p): Only check for multi-process
10163 protocol feature, do not check for extended protocol.
10164 (remote_supports_multi_process): Check for extended protocol here.
10165 (set_general_process): Likewise.
10166 (extended_remote_kill): Likewise.
10167 (remote_pid_to_str): Likewise.
10168 (remote_query_supported): Always query multiprocess mode.
10170 2012-01-20 Pedro Alves <palves@redhat.com>
10171 Ulrich Weigand <ulrich.weigand@linaro.org>
10173 * inferior.h (struct inferior): Add fake_pid_p.
10174 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10175 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10176 magic_null_ptid since the remote side doesn't provide a real PID.
10178 2012-01-19 Tom Tromey <tromey@redhat.com>
10180 * NEWS: Combine the two Python sections.
10182 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10184 * target.h (target_close): Update comment on the target's unpush state.
10186 2012-01-19 Pedro Alves <palves@redhat.com>
10188 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10189 linux_nat_async directly instead of going through the target
10191 * target.c (unpush_target): Close target after unpushing it, not
10194 2012-01-19 Gary Benson <gbenson@redhat.com>
10196 * mdebugread.c (sort_blocks): Replace integer constants with ones
10197 derived from FIRST_LOCAL_BLOCK.
10199 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10200 Jan Kratochvil <jan.kratochvil@redhat.com>
10203 * symfile.c (find_separate_debug_file): New function.
10204 (terminate_after_last_dir_separator): Likewise.
10205 (find_separate_debug_file_by_debuglink): Also try realpath.
10206 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10207 * configure: Regenerate.
10208 * config.in: Regenerate.
10210 2012-01-18 Doug Evans <dje@google.com>
10212 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10213 (main.o): Remove rule.
10214 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10215 (--with-sysroot): Rewrite.
10216 * configure: Regenerate.
10217 * config.in: Regenerate.
10219 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10221 * parse.c (initialize_expout): New function.
10222 (reallocate_expout): Likewise.
10223 (parse_exp_in_context): Use `initialize_expout' and
10224 `reallocate_expout' when appropriate.
10226 2012-01-18 Pedro Alves <palves@redhat.com>
10228 * record.c (struct record_breakpoint, record_breakpoint_p)
10229 (record_breakpoints): New.
10230 (record_insert_breakpoint, record_remove_breakpoint): Manage
10231 record breakpoints list. Only remove breakpoints from the
10232 inferior if they had been inserted there in the first place.
10234 2012-01-17 Doug Evans <dje@google.com>
10236 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10237 if we know we don't have a file name to look for.
10239 2012-01-17 Pedro Alves <palves@redhat.com>
10241 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10242 the frame's stop reason is UNWIND_UNAVAILABLE.
10244 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10246 Fix compilation error.
10247 * m2-exp.y (yyerror): Use ANSI C prototype.
10249 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10251 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10252 (growbuf_by_size): Likewise.
10253 (yyerror): Likewise.
10254 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10255 (modblock): Remove variable (was #if 0'ed).
10256 (parse_number): Convert prototype from K&R to ANSI C.
10257 (yyerror): Likewise.
10258 * objc-exp.y (parse_number): Likewise.
10259 (yyerror): Likewise.
10260 (yylex): Remove #if 0'ed code.
10261 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10262 (yyerror): Likewise.
10264 2012-01-16 Tom Tromey <tromey@redhat.com>
10267 * symtab.h (compare_filenames_for_search): Declare.
10268 * symtab.c (compare_filenames_for_search): New function.
10269 (iterate_over_some_symtabs): Use it.
10270 * symfile.h (struct quick_symbol_functions)
10271 <map_symtabs_matching_filename>: Change spec.
10272 * psymtab.c (partial_map_symtabs_matching_filename): Use
10273 compare_filenames_for_search. Update for new spec.
10274 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10275 compare_filenames_for_search. Update for new spec.
10276 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10278 2012-01-16 Tom Tromey <tromey@redhat.com>
10281 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10282 (struct main_type) <flag_flag_enum>: New field.
10283 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10284 * NEWS: Add entries.
10285 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10287 * python/lib/gdb/printing.py (_EnumInstance): New class.
10288 (FlagEnumerationPrinter): Likewise.
10290 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10292 * breakpoint.c (create_sals_from_address_default): New function.
10293 (create_breakpoints_sal_default): Likewise.
10294 (decode_linespec_default): Likewise.
10295 (is_marker_spec): Removed.
10296 (strace_marker_p): New function.
10297 (init_breakpoint_sal): Using `strace_marker_p' instead of
10299 (create_breakpoint): Call method `create_sals_from_address' from
10300 breakpoint_ops, replacing code that created SALs conditionally
10301 on the type of the breakpoint. Call method `create_breakpoints_sal',
10302 replacing code that created breakpoints conditionally on the type
10304 (base_breakpoint_create_sals_from_address): New function.
10305 (base_breakpoint_create_breakpoints_sal): Likewise.
10306 (base_breakpoint_decode_linespec): Likewise.
10307 (base_breakpoint_ops): Add methods
10308 `base_breakpoint_create_sals_from_address',
10309 `base_breakpoint_create_breakpoints_sal' and
10310 `base_breakpoint_decode_linespec'.
10311 (bkpt_create_sals_from_address): New function.
10312 (bkpt_create_breakpoints_sal): Likewise.
10313 (bkpt_decode_linespec): Likewise.
10314 (tracepoint_create_sals_from_address): Likewise.
10315 (tracepoint_create_breakpoints_sal): Likewise.
10316 (tracepoint_decode_linespec): Likewise.
10317 (strace_marker_create_sals_from_address): Likewise.
10318 (strace_marker_create_breakpoints_sal): Likewise.
10319 (strace_marker_decode_linespec): Likewise.
10320 (strace_marker_breakpoint_ops): New variable.
10321 (addr_string_to_sals): Remove `marker_spec'. Call method
10322 `decode_linespec' from breakpoint_ops, replacing code that decoded
10323 an address string into a SAL. Use `strace_marker_p' instead of
10325 (strace_command): Decide whether we are dealing with a static
10326 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10327 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10328 * breakpoint.h (linespec_result, linespec_sals): New forward
10330 (breakpoint_ops) <create_sals_from_address>,
10331 <create_breakpoints_sal>, <decode_linespec>: New methods.
10333 2012-01-14 Doug Evans <dje@google.com>
10335 * NEWS: Update text for "maint set python print-stack".
10336 It is deprecated in gdb 7.4 and deleted in 7.5.
10338 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10340 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10341 including curses.h.
10343 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10345 * configure: Regenerate.
10346 * config.in: Regenerate.
10348 2012-01-12 Keith Seitz <keiths@redhat.com>
10351 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10352 (ANONYMOUS_UNION_NAME): Define.
10353 (is_path_expr_parent): New function.
10354 (get_path_expr_parent): New function.
10355 (is_anonymous_child): New function.
10356 (create_child_with_value): If the child is anonymous and without
10357 a name, assign an object name to it.
10358 (c_describe_child): Use get_path_expr_parent to determine
10359 the parent expression.
10360 If there field represents an anonymous struct or union and
10361 has no name, set an appropriate display name and expression.
10362 (cplus_describe_child): Likewise.
10364 2012-01-12 Pedro Alves <palves@redhat.com>
10366 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10367 available when %ebp is found to be zero (outermost).
10369 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10371 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10372 an internal gdb_static_assert.
10373 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10375 2012-01-11 Tom Tromey <tromey@redhat.com>
10378 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10379 catch" and "catch throw".
10381 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10383 * blockframe.c (block_innermost_frame): Start search from selected
10384 frame, if present, or otherwise the current frame.
10386 * c-exp.y (variable): Update innermost_block for
10387 'block COLONCOLON NAME' clause.
10388 * m2-exp.y (variable): Ditto.
10389 * objc-exp.y (variable): Ditto.
10391 2012-01-10 Tom Tromey <tromey@redhat.com>
10394 * python/python.c (finish_python_initialization): Set sys.argv.
10396 2012-01-10 Doug Evans <dje@google.com>
10398 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10399 "want_line_info". All callers updated.
10400 (dwarf_decode_lines_1): New function.
10401 (handle_DW_AT_stmt_list): Add function comment.
10402 New arg "want_line_info". All callers updated.
10403 (read_file_scope,read_type_unit_scope): Move comment from
10404 handle_DW_AT_stmt_list to here.
10406 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10408 Fix regression after libiberty/ update for GCC PR 6057 and others.
10409 * c-exp.y (operator) <OPERATOR DELETE>
10410 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10411 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10412 (make_builtin_type, make_name): New variable i, add gdb_assert.
10413 (operator) <OPERATOR NEW>: Update ARGS to 3.
10414 (operator) <OPERATOR DELETE>: Add trailing space.
10415 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10416 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10417 * cp-support.c (cp_canonicalize_string): Check NULL from
10418 cp_comp_to_string, call warning and return.
10420 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10422 Fix duplicate .o files after omitting libbfd.a.
10423 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10424 (SFILES): Add corelow.c.
10425 (COMMON_OBS): Add corelow.o.
10426 (ALLDEPFILES): Remove corelow.c.
10427 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10428 * config/alpha/alpha-osf3.mh: Likewise.
10429 * config/alpha/fbsd.mh: Likewise.
10430 * config/arm/nbsdaout.mh: Likewise.
10431 * config/arm/nbsdelf.mh: Likewise.
10432 * config/i386/i386gnu.mh: Likewise.
10433 * config/ia64/hpux.mh: Likewise.
10434 * config/ia64/linux.mh: Likewise.
10435 * config/m32r/linux.mh: Likewise.
10436 * config/m68k/linux.mh: Likewise.
10437 * config/mips/irix5.mh: Likewise.
10438 * config/mips/irix6.mh: Likewise.
10439 * config/pa/hpux.mh: Likewise.
10440 * config/pa/linux.mh: Likewise.
10441 * config/powerpc/aix.mh: Likewise.
10442 * config/sparc/linux.mh: Likewise.
10443 * config/sparc/linux64.mh: Likewise.
10444 * config/sparc/sol2.mh: Likewise.
10445 * config/vax/vax.mh: Likewise.
10446 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10447 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10448 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10449 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10450 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10451 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10452 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10453 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10454 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10455 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10456 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10457 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10458 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10459 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10460 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10461 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10462 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10463 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10464 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10465 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10466 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10467 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10468 corelow.o from gdb_target_obs.
10469 * corefile.c (core_target): Update the comment on NULL value.
10470 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10471 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10472 MATCHES. Drop YUMMY set on NULL.
10473 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10474 reclaim CORE_DATA if it is already NULL.
10476 2012-01-09 Doug Evans <dje@google.com>
10478 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10479 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10481 2012-01-09 Keith Seitz <keiths@redhat.com>
10483 * breakpoint.c (wrapper.h): Don't include.
10485 2012-01-09 Keith Seitz <keiths@redhat.com>
10487 * Makefile.in (SFILES): Remove wrapper.c.
10488 (HFILES_NO_SRCDIR): Remove wrapper.h.
10489 (COMMON_OBS): Remove wrapper.o.
10490 * cli/cli-interp.c: Don't inlude wrapper.h.
10491 * corelow.c: Likewise.
10492 (core_open): Replace gdb_target_find_new_threads with
10493 TRY_CATCH around target_find_new_threads.
10494 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10495 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10496 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10497 evaluate_expression.
10498 (varobj_set_value): Likewise for evaluate_expression and
10500 (install_new_variable): Likewise for value_fetch_lazy.
10501 (adjust_value_for_child_access): Likewise for value_ind.
10502 (c_describe_child): Likewise for value_subscript and
10504 (c_value_of_root): Likewise for evaluate_expression.
10505 * wrapper.c: Remove.
10506 * wrapper.h: Remove.
10508 2012-01-09 Doug Evans <dje@google.com>
10510 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10511 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10512 "abfd" args with "section". All callers updated.
10513 Error checking code moved ...
10514 (error_check_comp_unit_head): ... here. New function.
10515 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10516 Delete arg "abfd". New arg "type_offset". All callers updated.
10517 (create_debug_types_hash_table): Simplify by using
10518 read_and_check_type_unit_head.
10520 * parser-defs.h (namecopy): Delete.
10521 * parse.c (namecopy, namecopy_size): Move into copy_name.
10523 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10525 Partially fix duplicate .o files after omitting libbfd.a.
10526 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10527 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10528 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10529 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10530 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10531 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10532 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10534 2012-01-09 Pedro Alves <palves@redhat.com>
10536 * MAINTAINERS: Update my email address.
10538 2012-01-08 Doug Evans <dje@google.com>
10540 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10541 n_type_units. Rename type_comp_units to all_type_units.
10543 (add_signatured_type_cu_to_table): Renamed from
10544 add_signatured_type_cu_to_list. All callers updated.
10546 * gdbtypes.h (struct cplus_struct_type): Delete member
10547 nfn_fields_total. All uses removed.
10549 2012-01-06 Doug Evans <dje@google.com>
10551 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10553 (dwarf2_find_comp_unit): Delete.
10554 (process_psymtab_comp_unit): Make result "void".
10555 Delete args buffer, info_ptr, buffer_size, and replace with
10556 "section". All callers updated.
10557 (dwarf2_build_psymtabs_hard): Simplify.
10559 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10560 Thiago Jung Bauermann <bauerman@br.ibm.com>
10562 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10563 before `struct gdb_exception'.
10564 * breakpoint.c (update_global_location_list_nothrow)
10565 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10566 * cp-abi.c (value_rtti_type): Likewise.
10567 * cp-support.c (cp_validate_operator): Likewise.
10568 * infrun.c (insert_exception_resume_breakpoint)
10569 (check_exception_resume, keep_going): Likewise.
10570 * mi-interp.c (mi_breakpoint_created)
10571 (mi_breakpoint_modified): Likewise.
10572 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10573 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10574 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10576 2012-01-05 Doug Evans <dje@google.com>
10578 * dwarf2read.c (statement_prologue): Delete, unused.
10580 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10581 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10583 * dwarf2read.c (comp_unit_header): Delete, unused.
10585 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10587 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10588 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10590 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10592 * infrun.c (normal_stop): Don't skip calling the normal_stop
10593 observers if the thread was doing a multi-step, but stopped for
10594 some reason other than stepping.
10596 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10598 * cli/cli-decode.h: Add comments.
10599 (CMD_LIST_AMBIGUOUS): Moved to command.h
10600 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10601 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10602 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10603 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10604 (add_com, add_com_alias, add_info, add_info_alias)
10605 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10607 * command.h: Add and adjust comments.
10608 (CMD_LIST_AMBIGUOUS): Moved here.
10609 (help_cmd, help_cmd_list): Delete declarations.
10611 2012-01-04 Doug Evans <dje@google.com>
10613 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10614 All callers updated.
10615 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10616 Replace all arguments with "per_cu". All callers updated.
10618 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10620 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10621 New arg "per_cu". All callers updated.
10623 Delete #if 0'd out code.
10624 * language.c (binop_result_type): Delete.
10625 (simple_type, ordered_type, same_type, integral_type): Delete.
10626 (numeric_type, character_type, string_type, boolean_type): Delete.
10627 (float_type, structured_type): Delete.
10628 * language.h: Update.
10630 2012-01-04 Tom Tromey <tromey@redhat.com>
10632 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10634 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10636 * corefile.c (close_exec_file): Delete.
10637 (reopen_exec_file): Remove commented out code that seems related
10638 to close_exec_file, which is being deleted here.
10639 * inferior.h (close_exec_file): Delete.
10640 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10642 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10644 * ada-lang.c: #include "cli/cli-utils.h".
10645 (get_selections): Use skip_spaces.
10646 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10647 (catch_ada_exception_command_split): Use skip_spaces.
10648 (ada_decode_assert_location): Likewise.
10650 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10652 * linespec.c (decode_line_internal): Check for C++ or Java
10653 compound constructs only if the current language is C, C++
10656 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10659 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10660 Joel Brobecker <brobecker@adacore.com>
10661 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10662 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10664 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10665 fall through into AT_ENTRY_POINT.
10666 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10667 DUMMY_ADDR with it.
10668 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10669 PPC_INSN_SIZE skip to 3 times.
10671 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10673 * linespec.c (add_minsym): Preserve function descriptors.
10675 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10677 * breakpoint.c (all_locations_are_pending): Consider locations
10678 in program spaces executing during startup pending as well.
10680 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10682 Copyright year update in most files of the GDB Project.
10684 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10686 * copyright.sh: Delete.
10687 * copyright.py: Rewrite.
10689 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10691 * gnulib/extra/update-copyright: New file, imported from gnulib.
10693 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10695 * README (Copyright and License Notices): New section.
10697 2012-01-03 Tom Tromey <tromey@redhat.com>
10700 * python/py-value.c (valpy_dereference, valpy_get_address
10701 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10702 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10703 (valpy_absolute, valpy_richcompare): Free intermediate values.
10705 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10707 * ada-lang.c: Reformat the copyright notice.
10709 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10711 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10712 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10713 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10714 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10715 Revert this part of:
10716 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10717 Build gdb directly from *.o files not using libgdb.a.
10718 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10720 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10722 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10723 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10724 Reformat the copyright header.
10726 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10728 Revert this part of:
10729 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10730 Remove the gdbtui binary.
10731 * gdb.c (main): Remove args.interpreter_p initialization.
10732 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10733 * main.h (struct captured_main_args): Remove interpreter_p.
10735 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10737 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10739 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10741 * top.c (print_gdb_version): Update copyright year.
10743 2012-01-02 Yao Qi <yao@codesourcery.com>
10745 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10747 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10748 Joel Brobecker <brobecker@adacore.com>
10750 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10751 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10753 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10754 fall through into AT_ENTRY_POINT.
10755 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10756 DUMMY_ADDR with it.
10757 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10758 PPC_INSN_SIZE skip to 3 times.
10760 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10762 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10764 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10766 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10768 Build gdb directly from *.o files not using libgdb.a.
10769 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10770 (COMMON_OBS): Remove solib-target.o.
10771 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10772 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10773 (LIBGDB_OBS, libgdb.a): Move it above.
10774 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10775 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10776 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10777 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10778 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10779 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10780 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10781 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10782 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10783 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10784 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10785 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10786 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10787 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10788 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10789 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10790 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10791 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10792 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10793 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10794 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10795 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10796 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10797 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10798 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10799 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10800 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10802 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10804 Remove the gdbtui binary.
10805 * .gitignore (/gdbtui): Remove.
10806 * Makefile.in (TUI): Remove.
10807 (SUBDIR_TUI_OBS): Remove tui-main.o.
10808 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10809 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10810 (tui-main.o): Remove.
10811 (all_object_files): Remove tui-main.o.
10812 * NEWS: New note for the gdbtui removal.
10813 * configure: Rebuilt.
10814 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10815 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10816 CONFIG_UNINSTALL respectively.
10817 * gdb.c (main): Remove args.interpreter_p initialization.
10818 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10819 * main.h (struct captured_main_args): Remove interpreter_p.
10820 * tui/tui-main.c: Remove.
10822 2012-01-01 Doug Evans <dje@google.com>
10824 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10825 (dwarf2_physname, read_import_statement): Ditto.
10826 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10827 (process_structure_scope read_subroutine_type): Ditto.
10828 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10829 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10830 (dwarf2_fetch_die_location_block): Ditto.
10831 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10833 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10834 All callers updated.
10835 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10836 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10837 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10839 * dwarf2read.c (load_cu): Move assert to more useful location.
10841 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10842 All callers updated.
10844 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10845 (dwarf2_elf_names): Minor reformat.
10846 (dwarf2_per_cu_data): Tweak comment.
10847 (dwarf2_read_section): Fix comment.
10848 (create_all_comp_units): Fix comment.
10849 (load_full_comp_unit): Fix comment.
10850 (process_full_comp_unit): Fix comment.
10851 (read_signatured_type): Fix comment.
10853 For older changes see ChangeLog-2011.
10859 version-control: never