1 2012-10-15 Joel Brobecker <brobecker@adacore.com>
3 * configure.ac: Build with -DMS_WIN64 if building with Python
4 enabled using GCC on amd64-windows.
5 * configure: Regenerate.
7 2012-10-15 Tom Tromey <tromey@redhat.com>
10 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
13 2012-10-15 Tom Tromey <tromey@redhat.com>
16 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
18 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
20 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
21 reset thread numbering back to 1.
23 2012-10-11 Doug Evans <dje@google.com>
26 * linespec.c (struct ls_parser): New member keyword_ok.
27 (linespec_lexer_lex_string): Add comment.
28 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
30 (parse_linespec): Set keyword_ok.
32 2012-10-10 Doug Evans <dje@google.com>
34 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
35 "0x" prefix on address in log message.
37 * dwarf2read.c (read_1_byte): Add const to buf parameter.
38 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
39 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
40 (lookup_dwo_file): Add const to dwo_name parameter.
41 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
43 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
45 Fix crash during stepping on ppc32.
46 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
49 2012-10-03 Doug Evans <dje@google.com>
52 * buildsym.c (buildsym_init): Reset using_directives to NULL.
54 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
56 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
57 output and use uint32_t not long to ensure 4 byte size.
59 2012-10-02 Joel Brobecker <brobecker@adacore.com>
61 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
64 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
66 * target.c (simple_search_memory): Include access length in
69 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
70 Edjunior Machado <emachado@linux.vnet.ibm.com>
73 * solib.c (solib_find): Prevent GDB from loading native libraries when
74 debugging a cross-target corefile.
76 2012-09-28 selven <pcthegreat@gmail.com>
78 Make definition match declaration.
80 * regcache.c (regcache_register_status): Change return type to
83 2012-09-28 Yao Qi <yao@codesourcery.com>
85 * mi/mi-main.c (mi_cmd_data_write_memory): Call
86 write_memory_with_notification instead of write_memory.
87 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
88 instead of target_write_memory.
90 2012-09-28 Yao Qi <yao@codesourcery.com>
92 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
93 when the length of content is not an even number.
95 2012-09-27 Tom Tromey <tromey@redhat.com>
97 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
98 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
100 2012-09-27 Joel Brobecker <brobecker@adacore.com>
102 * sol-thread.c (sol_thread_fetch_registers)
103 (sol_thread_store_registers): Delete commented out code.
105 2012-09-27 Joel Brobecker <brobecker@adacore.com>
107 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
108 Move these functions to sparc-sol-thread.c.
109 * sparc-sol-thread.c: New file.
110 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
111 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
113 * configure: Regenerate.
115 2012-09-27 Joel Brobecker <brobecker@adacore.com>
117 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
118 Remove commented-out code.
120 2012-09-27 Joel Brobecker <brobecker@adacore.com>
122 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
123 Enable this code for sparc hosts only.
125 2012-09-27 Joel Brobecker <brobecker@adacore.com>
127 * procfs.h (procfs_find_LDT_entry): Add declaration.
128 * sol-thread.c (ps_lgetLDT): Delete local declaration of
129 function procfs_find_LDT_entry.
131 2012-09-27 Joel Brobecker <brobecker@adacore.com>
133 * procfs.c (proc_get_LDT_entry): Make static.
135 2012-09-27 Joel Brobecker <brobecker@adacore.com>
137 * procfs.c (proc_find_memory_regions): Fix declaration.
139 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
141 * amd64-tdep.c (amd64_return_value): Revert previous change
142 that used TYPE_LENGTH directly.
143 * bfin-tdep.c (bfin_extract_return_value): Likewise.
144 (bfin_store_return_value): Likewise.
145 * cris-tdep.c (cris_store_return_value): Likewise.
146 (cris_extract_return_value): Likewise.
147 * h8300-tdep.c (h8300_extract_return_value): Likewise.
148 * hppa-tdep.c (hppa64_return_value): Likewise.
149 * lm32-tdep.c (lm32_store_return_value): Likewise.
150 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
151 * spu-tdep.c (spu_value_from_register): Likewise.
152 * vax-tdep.c (vax_return_value): Likewise.
154 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
156 * gdbtypes.c (lookup_array_range_type): Expand parameters
157 LOW_BOUND and HIGH_BOUND to LONGEST.
158 (lookup_string_range_type): Likewise.
159 * gdbtypes.h (lookup_array_range_type): Likewise.
160 (lookup_string_range_type): Likewise.
161 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
162 Expand HIGHBOUND to ssize_t.
163 (value_string): Likewise.
164 * value.h (value_cstring): Expand parameter LEN to ssize_t.
165 (value_string): Likewise.
167 2012-09-27 Yao Qi <yao@codesourcery.com>
170 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
171 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
174 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
176 * procfs.c: Add gdb_bfd header.
177 * rs6000-nat.c: Likewise.
178 * solib-pa64.c: Likewise.
179 * spu-linux-nat.c: Likewise.
180 * windows-nat.c: Likewise.
182 2012-09-26 Tom Tromey <tromey@redhat.com>
184 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
186 2012-09-26 Tom Tromey <tromey@redhat.com>
188 * dwarf2read.c (mark_common_block_symbol_computed): New function.
189 (read_common_block): Handle child DIEs with
190 DW_AT_data_member_location.
191 (new_symbol_full): Add special case for common blocks.
193 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
194 Tom Tromey <tromey@redhat.com>
196 * dwarf2read.c (read_common_block): Rewrite.
197 (new_symbol_full): Handle DW_TAG_common_block.
198 * f-lang.c (head_common_list, find_common_for_function):
200 * f-lang.h (struct common_entry, struct saved_f77_common,
201 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
202 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
203 BLANK_COMMON_NAME_LOCAL): Remove.
204 (struct common_block): New.
205 * f-valprint.c (list_all_visible_commons): Remove.
206 (info_common_command_for_block): New function.
207 (info_common_command): Use it.
208 * stack.c (iterate_over_block_locals): Special case for
210 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
212 (struct general_symbol_info) <value.common_block>: New field.
213 (SYMBOL_VALUE_COMMON_BLOCK): New define.
215 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
216 Tom Tromey <tromey@redhat.com>
218 * f-lang.c (allocate_saved_bf_node,
219 allocate_saved_function_node, allocate_saved_f77_common_node,
220 allocate_common_entry_node, tail_common_list, current_common,
221 saved_bf_list, saved_bf_list_end, current_head_bf_list,
222 tmp_bf_ptr, add_common_block, add_common_entry,
223 find_first_common_named, patch_common_entries,
224 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
225 global_remote_debug, get_bf_for_fcn, saved_function_list,
226 saved_function_list_end, clear_function_list, struct saved_fcn,
227 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
228 SAVED_BF, SAVED_BF_PTR): Remove.
229 * f-lang.h (tail_common_list, current_common,
230 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
231 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
232 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
233 real_main_c_value): Remove.
234 * f-valprint.c (there_is_a_visible_common_named): Remove.
236 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
238 * breakpoint.c (update_global_location_list): Ignore previous
239 duplicate status of a breakpoint when starting a new scan for
240 duplicate breakpoints.
242 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
244 * arm-tdep.c (arm_skip_prologue): Extending producer check to
245 support LLVM compiler.
247 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
249 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
250 * bfin-tdep.c (bfin_extract_return_value): Likewise.
251 (bfin_store_return_value): Likewise.
252 * cris-tdep.c (cris_store_return_value): Likewise.
253 (cris_extract_return_value): Likewise.
254 * h8300-tdep.c (h8300_extract_return_value): Likewise.
255 * hppa-tdep.c (hppa64_return_value): Likewise.
256 * lm32-tdep.c (lm32_store_return_value): Likewise.
257 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
258 * spu-tdep.c (spu_value_from_register): Likewise.
259 * vax-tdep.c (vax_return_value): Likewise.
261 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
263 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
264 parameter LEN to ssize_t.
266 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
268 * ada-valprint.c (ada_val_print_1): Eliminate single-use
270 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
272 (alpha_store_return_value): Likewise.
273 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
274 (amd64_push_arguments): Likewise.
275 * ax-gdb.c (gen_trace_static_fields): Likewise.
276 (gen_traced_pop): Likewise.
277 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
278 * breakpoint.c (update_watchpoint): Likewise.
279 * findcmd.c (parse_find_args): Use local variable for type
281 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
282 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
283 (h8300_store_return_value): Likewise.
284 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
285 Use i386_darwin_arg_type_alignment directly.
286 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
287 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
288 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
289 (m68hc11_extract_return_value): Likewise.
290 * mep-tdep.c (mep_push_dummy_call): Likewise.
291 * printcmd.c (float_type_from_length): Likewise.
292 * s390-tdep.c (s390_value_from_register): Likewise.
293 * stack.c (read_frame_arg): Likewise.
294 * tracepoint.c (encode_actions_1): Likewise.
295 * valops.c (value_fetch_lazy): Use local variable for type
296 instead of length. Use TYPE_LENGTH directly.
297 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
299 2012-09-25 Joel Brobecker <brobecker@adacore.com>
301 * symtab.c (skip_prologue_sal): Fix typo in comment.
303 2012-09-25 Joel Brobecker <brobecker@adacore.com>
305 * linespec.c (create_sals_line_offset): Fix typo in comment.
307 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
309 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
310 use plongest to print the array size.
312 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
314 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
315 * p-valprint.c (pascal_type_print_base): Likewise.
317 2012-09-22 Yao Qi <yao@codesourcery.com>
319 * remote.c (remote_get_trace_status): Remove setting default
320 values of fields of 'ts'.
322 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
324 Fix internal error on canonicalization of clang types.
325 * cp-name-parser.y (operator): New comment at make_operator call for
326 new, delete, new[] and delete[].
327 (exp): Use "sizeof ". Add new comment at make_operator call.
329 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
331 Fix disassemble without parameters in tailcall frame.
332 * cli/cli-cmds.c (disassemble_current_function): Use
333 get_frame_address_in_block.
335 2012-09-21 Tom Tromey <tromey@redhat.com>
337 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
338 TYPE_CODE_UNION>: Unify, removing a goto.
340 2012-09-21 Tom Tromey <tromey@redhat.com>
342 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
344 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
346 * findvar.c (read_frame_register_value): Mark the result value as
347 optimized out if any of the input registers have been optimized out.
349 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
351 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
353 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
355 * eval.c (evaluate_subexp_standard): Eliminate single-use
358 2012-09-21 Yao Qi <yao@codesourcery.com>
360 * mi/mi-interp.c: Declare mi_record_changed.
361 (mi_interpreter_init): Call observer_attach_record_changed.
362 (mi_record_changed): New.
363 * record.c (record_open): Call observer_notify_record_changed.
364 (cmd_record_stop): Call observer_notify_record_changed.
367 2012-09-20 Tom Tromey <tromey@redhat.com>
370 * python/python.c (finalize_python): New function.
371 (_initialize_python): Make a final cleanup.
373 2012-09-19 Doug Evans <dje@google.com>
375 * buildsym.h (param_symbols): Delete, unused.
376 (context_stack): Delete member "params", unused.
377 * buildsym.c (push_context): Update.
378 * dwarf2read.c (read_func_scope): Update.
380 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
382 * sh-tdep.c (sh_register_convert_to_virtual)
383 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
384 all callers. Just do a memcpy if not the little-endian case.
386 * h8300-tdep.c (h8300_gdbarch_init): Invoke
387 set_gdbarch_double_format and set_gdbarch_long_double_format.
388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
389 set_gdbarch_double_format.
390 * sh-tdep.c (sh_gdbarch_init): Likewise.
392 * NEWS: Document the removal of SH's 'regs' command.
393 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
396 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
398 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
401 2012-09-18 Joel Brobecker <brobecker@adacore.com>
403 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
404 language when iterating over symbols.
406 2012-09-18 Yao Qi <yao@codesourcery.com>
408 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
409 (mi_interpreter_init): Call observer_attach_tsv_created and
410 observer_attach_tsv_deleted.
411 (mi_tsv_created, mi_tsv_deleted): New.
412 * tracepoint.c (delete_trace_state_variable): Call
413 observer_notify_tsv_deleted.
414 (trace_variable_command): Call observer_notify_tsv_created.
415 (delete_trace_variable_command): Call
416 observer_notify_tsv_deleted.
417 (create_tsv_from_upload): Call observer_notify_tsv_created.
420 2012-09-18 Yao Qi <yao@codesourcery.com>
422 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
423 if traceframe changed.
424 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
426 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
427 (mi_interpreter_init): Hook mi_traceframe_changed to observer
428 'traceframe_changed'.
429 (mi_traceframe_changed): New.
430 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
432 * NEWS: Mention the new MI notification.
434 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
436 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
438 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
440 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
441 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
442 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
443 Extend code also for PaX support. Convert all gdb_assert to warning
446 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
448 Implement auto-load user conveniences suggested by Doug Evans.
449 * auto-load.c: Include top.h.
450 (file_is_auto_load_safe): New variable advice_printed. Print advice.
451 (_initialize_auto_load): New variable scripts_directory_help. Mention
452 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
453 scripts-directory. Document in online help one can use also files for
454 set auto-load safe-path.
455 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
456 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
458 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
460 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
463 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
465 * m2-valprint.c (m2_print_array_contents): Eliminate variable
466 ELTLEN and use TYPE_LENGTH directly.
467 (m2_val_print): Likewise.
468 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
469 variable LEN and use TYPE_LENGTH directly.
470 (m68k_svr4_store_return_value): Likewise.
471 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
472 ARGLEN and use TYPE_LENGTH directly.
473 (mips_o64_push_dummy_call): Likewise.
474 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
475 variable LENGTH and use TYPE_LENGTH directly.
476 (s390_function_arg_float): Likewise.
477 (s390_function_arg_integer): Likewise.
478 (s390_push_dummy_call): Likewise.
479 (s390_return_value_convention): Likewise.
480 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
481 TYPE_LENGTH directly.
483 2012-09-17 Yao Qi <yao@codesourcery.com>
485 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
486 Update comment to add_setshow_integer_cmd.
487 * cli/cli-setshow.c (do_set_command): Handle case
488 'var_zuinteger_unlimited'.
489 (do_show_command): Likewise.
490 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
491 for command 'remotetimeout'.
492 * command.h (enum var_types): New zuinteger_unlimited. Update comment
494 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
495 for command 'set listsize'.
497 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
499 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
502 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
505 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
506 (frame_pop): Drop also TAILCALL_FRAME frames.
507 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
509 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
510 Pedro Alves <palves@redhat.com>
513 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
514 function start if we are already at function start. Both for
515 reverse-next and for reverse-step into function without line number
518 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
520 Code cleanup - rename 'inline' depth to 'artificial' depth.
521 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
522 frame_id_artificial_p, extend the comment.
523 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
524 * frame.c (fprint_frame_id): Rename at a user, change debug output
525 text to "artificial=".
526 (skip_inlined_frames): Rename to ...
527 (skip_artificial_frames): ... here. Extend the comment.
528 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
529 (frame_id_inlined_p): Rename to ...
530 (frame_id_artificial_p): ... here. Rename at a user.
531 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
532 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
534 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
536 (frame_id_inlined_p): Rename to ...
537 (frame_id_artificial_p): ... here.
538 * inline-frame.c (inline_frame_this_id): Rename at a user.
540 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
542 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
543 vector variables using vector_size syntax rather than array
546 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
548 * valarith.c (value_concat): Replace unsafe ALLOCA with
551 2012-09-14 Pedro Alves <palves@redhat.com>
553 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
555 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
557 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
558 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
559 data-directory as appropriate.
561 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
563 * printcmd.c (ui_printf): Eliminate single-use variable
566 2012-09-14 Yao Qi <yao@codesourcery.com>
567 Pedro Alves <palves@redhat.com>
569 * valops.c (value_assign): Move observer_notify_target_changed
570 below to replace reinit_frame_cache.
572 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
574 Refactor Python "gdb" module into a proper Python package, by
575 introducing a new "_gdb" module for code implemented in C, and
576 using reload/__import__ instead of exec.
577 * python/lib/gdb/__init__.py: Import * from _gdb.
578 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
579 prompt_hook, sys.argv): Moved from finish_python_initialization.
580 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
581 (packages, auto_load_packages): New list and function replacing
582 module_dict and auto-loading code, using __file__ instead of
583 gdb.PYTHONDIR and reload/__import__ instead of exec.
584 (GdbSetPythonDirectory): Replacing function of the same name
585 from finish_python_initialization, using reload/__import__ instead
586 of exec, as well as call auto_load_packages.
587 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
588 gdb_python_module and not gdb_module.
589 * python/python-internal.h (gdb_python_module): Declare.
590 * python/python.c (gdb_python_module): New global.
591 (before_prompt_hook): Check gdb_python_module and not gdb_module.
592 (_initialize_python): Rename gdb module to _gdb.
593 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
594 (finish_python_initialization): Move Python code to
595 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
598 2012-09-13 Pedro Alves <palves@redhat.com>
600 * Makefile.in (COMMON_OBS): Add registry.o.
601 * registry.c: New file.
602 * registry.h (struct registry_container): Declare.
603 (registry_data_callback): New typedef.
604 (struct registry_data, struct registry_data_registration, struct
605 registry_data_registry): New type.
606 (register_data_with_cleanup, registry_alloc_data)
607 (registry_callback_adaptor, registry_clear_data)
608 (registry_container_free_data, registry_set_data, registry_data):
610 (DEFINE_REGISTRY): Refactor structures and functions as shims over
611 the new common structures and functions.
612 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
615 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
617 * remote.c (remote_insert_hw_breakpoint): Throw exception if
618 there is an error inserting hardware breakpoints and use the
619 error message from the target.
621 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
622 Catch this exception and print the error message contained within. Do not
623 print the default hardware error breakpoint message in this case.
625 2012-09-12 Doug Evans <dje@google.com>
627 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
630 2012-09-11 Doug Evans <dje@google.com>
632 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
633 .gdb_index symbol attributes if there are none.
635 2012-09-11 Joel Brobecker <brobecker@adacore.com>
637 * symtab.h (struct minimal_symbol) [has_size]: New field.
638 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
639 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
640 * printcmd.c (build_address_symbolic): Only filter out zero-sized
641 minimal symbols if the symbol's size is actually known.
642 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
643 of msymbol's size field. Add comment.
644 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
645 SET_MSYMBOL_SIZE to set the minimal symbol size.
647 2012-09-11 Joel Brobecker <brobecker@adacore.com>
649 * minsyms.c (install_minimal_symbols): Use memset to fill entire
650 minimal_symbol struct object, rather than setting some of its
653 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
655 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
656 passed_a_ptr flag when displaying typedef types.
658 2012-09-10 Joel Brobecker <brobecker@adacore.com>
660 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
661 the optimized_out flag is preserved.
663 2012-09-10 Anthony Green <green@moxielogic.com>
665 * moxie-tdep.c (moxie_analyze_prologue): Update for function
666 prologue changes in GCC.
668 2012-09-10 Keith Seitz <keiths@redhat.com>
671 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
672 (BOOL_CONVERSION_BADNESS): ... this.
673 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
674 (rank_one_type): Allow all boolean conversions
675 permitted by the standard.
677 2012-09-06 Tom Tromey <tromey@redhat.com>
679 * python/py-newobjfileevent.c (create_new_objfile_event_object):
680 Don't decref py_objfile.
682 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
684 Do not enable -lmcheck by default when Python is enabled with
686 * configure.ac: (python_has_threads) New variable, by testing
687 if WITH_THREAD is defined in Python.h.
688 Move --enable-lmcheck after --with-python.
689 Do not enable -lmcheck by default if python_has_threads=yes.
690 Warn if --enable-lmcheck and python_has_threads=yes.
691 * configure: Regenerate.
693 2012-08-31 Yao Qi <yao@codesourcery.com>
695 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
696 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
697 Update some commands.
698 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
699 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
702 2012-08-31 Yao Qi <yao@codesourcery.com>
704 * mi/mi-cmds.c (mi_cmds): Add 'static'.
706 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
708 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
710 2012-08-29 Doug Evans <dje@google.com>
712 * main.c (print_gdb_help): Remove reference to
713 --use-deprecated-index-sections.
715 2012-08-28 Yao Qi <yao@codesourcery.com>
717 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
718 (init_cmds): Call add_setshow_uinteger_cmd for command
719 'max-user-call-depth'.
720 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
721 declaration of 'max_user_call_depth'.
722 * frame.c (backtrace_limit): Add 'unsigned'.
723 (_initialize_frame): Call add_setshow_uinteger_cmd for command
725 * remote.c (remoteaddresssize): Add 'unsigned'.
726 (remote_address_masked): Change local var 'address_size' to
728 (_initialize_remote): Call add_setshow_uinteger_cmd for
730 * top.c (history_size): Add 'unsigned'.
731 (show_commands): Change local variables to 'unsigned'.
732 (set_history_size_command): Don't check history_size is negative.
733 Adjust the condition to call unstifle_history and set history_size
736 2012-08-28 Pedro Alves <palves@redhat.com>
740 * infcmd.c (default_print_one_register_info): New, factored out
741 from default_print_registers_info.
742 (default_print_registers_info): Use it. Mark value unavailable if
744 (registers_info): Print user registers with
745 default_print_one_register_info.
747 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
750 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
751 is not NULL before referencing it.
753 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
755 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
756 variable pc. Call find_pc_line instead of find_pc_overlay, restore
759 2012-08-27 Eli Zaretskii <eliz@gnu.org>
760 Jan Kratochvil <jan.kratochvil@redhat.com>
762 * auto-load.c (auto_load_objfile_script): Rename to ...
763 (auto_load_objfile_script_1): ... here, change variable realname to
764 parameter realname, document it, add return value, add variable retval.
765 (auto_load_objfile_script): New function.
767 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
769 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
770 followed by a whitespace.
772 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
775 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
776 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
777 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
780 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
782 * memattr.c (create_mem_region): Fix memory region overlapping
785 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
787 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
788 with xmalloc/cleanup.
789 * mt-tdep.c (mt_push_dummy_call): Likewise.
790 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
791 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
793 2012-08-24 Yao Qi <yao@codesourcery.com>
795 * jv-exp.y (push_expression_name): Add "." at the end of error
798 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
800 Document how to return from "python-interactive" to GDB.
801 * python/python.c (_initialize_python): Update documentation.
803 2012-08-23 Pedro Alves <palves@redhat.com>
805 * infrun.c (_initialize_infrun) <handle command help text>:
806 Mention that multiple signals are supported.
808 2012-08-23 Pedro Alves <palves@redhat.com>
810 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
813 2012-08-23 Yao Qi <yao@codesourcery.com>
815 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
816 (tfind_1): Don't call registers_changed, set_traceframe_num,
817 and clear_traceframe_info.
818 Call set_current_traceframe.
819 (set_current_traceframe): call set_traceframe_num.
821 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
823 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
824 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
826 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
828 Enable readline in Python in a GDB-specific way and block the
829 standard Python readline module to prevent conflicts with GDB.
830 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
831 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
832 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
833 * python/py-gdb-readline.c: New file.
834 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
836 * python/python.c (_initialize_python): Call
837 gdbpy_initialize_gdb_readline.
839 2012-08-22 Keith Seitz <keiths@redhat.com>
841 * defs.h: Include build-gnulib/config.h
843 2012-08-22 Joseph Myers <joseph@codesourcery.com>
845 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
848 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
850 Add a new "python-interactive" command that starts a standard
851 Python interactive prompt with "pi" as alias, and add "py" as
852 an alias to "python".
853 * NEWS: Mention the new commands.
854 * python/python.c (eval_python_command): New function.
855 (python_interactive_command): For "python-interactive" with
856 arguments, call eval_python_command. For "python-interactive"
857 without arguments, call PyRun_InteractiveLoop.
858 (_initialize_python): Add "python-interactive" command with
859 "pi" as alias, and add "py" as an alias to "python".
861 2012-08-22 Tom Tromey <tromey@redhat.com>
863 * defs.h (quit_flag): Don't declare.
864 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
865 (QUIT): Use new functions.
866 * event-top.c (command_handler): Use clear_quit_flag.
867 (handle_sigint): Use set_quit_flag.
868 (async_request_quit): Use check_quit_flag. Don't check
870 * exceptions.c (throw_exception): Use clear_quit_flag.
871 * main.c (captured_main): Use clear_quit_flag.
872 * python/python.c (clear_quit_flag, set_quit_flag)
873 (check_quit_flag): New functions.
874 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
876 * remote.c (remote_wait_as): Use check_quit_flag,
878 (remote_start_remote): Call QUIT.
879 * symfile.c (load_progress): Use check_quit_flag.
880 * top.c (command_loop): Use clear_quit_flag.
881 (command_line_input): Call QUIT.
882 * utils.c (quit_flag): Conditionally define.
883 (clear_quit_flag, check_quit_flag, set_quit_flag): New
885 (prompt_for_continue): Call QUIT. Use quit, not
887 * remote-mips.c (mips_expect_timeout): Call QUIT.
888 * monitor.c (monitor_expect): Call QUIT.
890 2012-08-22 Tom Tromey <tromey@redhat.com>
892 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
893 (async_init_signals): Update.
894 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
895 (SIGWINCH_HANDLER_BODY): Remove.
897 2012-08-22 Tom Tromey <tromey@redhat.com>
899 * jit.c (jit_object_close_impl): Don't malloc the objfile
901 * objfiles.c (allocate_objfile): Don't malloc the objfile
903 (free_objfile): Don't free the objfile name.
904 * objfiles.h (struct objfile) <name>: Update comment.
905 * symfile.c (reread_symbols): Fix reference counting. Don't
908 2012-08-22 Tom Tromey <tromey@redhat.com>
910 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
911 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
912 (symfile_bfd_open): Likewise.
913 (generic_load): Likewise.
914 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
915 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
917 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
919 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
920 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
921 (pmon_load_fast): Likewise.
922 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
923 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
924 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
925 (macho_check_dsym): Likewise.
926 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
927 (m32r_upload_command): Likewise.
928 * gdb_bfd.h (gdb_bfd_cache): Declare.
929 * gdb_bfd.c (struct gdb_bfd_data): New.
930 (gdb_bfd_cache): New global.
931 (struct gdb_bfd_cache_search): New.
932 (hash_bfd): New function.
934 (gdb_bfd_open): Likewise.
935 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
936 (gdb_bfd_unref): Remove closed BFD from cache. Update for
938 * exec.c (exec_file_attach): Use gdb_bfd_open.
939 * dsrec.c (load_srec): Use gdb_bfd_open.
941 2012-08-22 Tom Tromey <tromey@redhat.com>
943 * dwarf2read.c (macro_start_file): Update.
944 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
945 (free_objfile_per_bfd_storage): Destroy macro_cache.
946 (allocate_objfile, free_objfile): Update.
947 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
949 (struct objfile) <macro_cache>: Remove.
950 * symfile.c (reread_symbols): Update.
951 * symmisc.c (print_symbol_bcache_statistics): Update.
952 (print_objfile_statistics): Update.
954 2012-08-22 Tom Tromey <tromey@redhat.com>
956 * elfread.c (elf_symtab_read): Update.
957 * objfiles.c (objfiles_bfd_data): New global.
958 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
959 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
960 (allocate_objfile, free_objfile): Update.
961 (_initialize_objfiles): Initialize objfiles_bfd_data.
962 * objfiles.h (struct objfile_per_bfd_storage): New.
963 (struct objfile) <per_bfd>: New field.
964 <filename_cache>: Remove.
965 (set_objfile_per_bfd): Declare.
966 * symfile.c (reread_symbols): Update. Call
968 (allocate_symtab): Update.
969 * symmisc.c (print_symbol_bcache_statistics): Update.
970 (print_objfile_statistics): Print the size of the BFD obstack.
972 2012-08-22 Tom Tromey <tromey@redhat.com>
974 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
975 * gdb_bfd.c: Use DEFINE_REGISTRY.
976 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
977 (gdb_bfd_ref): Call bfd_alloc_data.
978 (gdb_bfd_unref): Call bfd_free_data.
980 2012-08-22 Tom Tromey <tromey@redhat.com>
982 * registry.h (struct registry_fields): New.
983 (REGISTRY_FIELDS): Redefine.
984 (REGISTRY_ACCESS_FIELD): New macro.
985 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
988 2012-08-22 Tom Tromey <tromey@redhat.com>
990 * auto-load.c (_initialize_auto_load): Update.
991 * solib-svr4.c (_initialize_svr4_solib): Update
992 * solib-dsbt.c (_initialize_dsbt_solib): Update.
993 * solib-darwin.c (_initialize_darwin_solib): Update.
994 * registry.h: New file.
995 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
996 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
997 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
998 (register_program_space_data_with_cleanup)
999 (register_program_space_data, program_space_alloc_data)
1000 (clear_program_space_data, set_program_space_data)
1001 (program_space_data): Don't declare.
1002 * progspace.c: Use DEFINE_REGISTRY.
1003 (struct program_space_data, struct
1004 program_space_data_registration, struct
1005 program_space_data_registry, program_space_data_registry)
1006 (register_program_space_data_with_cleanup)
1007 (register_program_space_data, program_space_alloc_data)
1008 (program_space_free_data, clear_program_space_data)
1009 (set_program_space_data, program_space_data): Remove.
1010 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1011 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1012 (register_objfile_data_with_cleanup, register_objfile_data)
1013 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1015 * objfiles.c: Use DEFINE_REGISTRY.
1016 (struct objfile_data, struct objfile_data_registration, struct
1017 objfile_data_registry, objfile_data_registry)
1018 (register_objfile_data_with_cleanup, register_objfile_data)
1019 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1020 (set_objfile_data, objfile_data): Remove.
1021 (_initialize_objfiles): Update.
1022 * jit.c (_initialize_jit): Update.
1023 * inflow.c (_initialize_inflow): Update.
1024 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1025 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1026 (register_inferior_data_with_cleanup, register_inferior_data)
1027 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1029 * inferior.c: Use DEFINE_REGISTRY.
1030 (struct inferior_data, struct inferior_data_registration, struct
1031 inferior_data_registry, inferior_data_registry)
1032 (register_inferior_data_with_cleanup, register_inferior_data)
1033 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1034 (set_inferior_data, inferior_data): Remove.
1035 * auxv.c (_initialize_auxv): Update.
1036 * ada-lang.c (_initialize_ada_language): Update.
1037 * breakpoint.c (_initialize_breakpoint): Update.
1038 * i386-nat.c (i386_use_watchpoints): Update.
1040 2012-08-22 Tom Tromey <tromey@redhat.com>
1042 * exec.c (exec_close, exec_file_attach): Update.
1043 (add_to_section_table): Initialize 'key' field.
1044 (add_target_sections, remove_target_sections): Add 'key' argument.
1045 * exec.h (add_target_sections, remove_target_sections): Add
1047 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1048 (reload_shared_libraries_1): Update.
1049 * target.h (struct target_section) <key>: New field.
1051 2012-08-22 Tom Tromey <tromey@redhat.com>
1053 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1055 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1057 * symfile.c (allocate_symtab): Use host_address_to_string
1058 function instead of cast of pointer to long which is not
1059 compatible with x86_64-w64-mingw32 build.
1061 2012-08-19 Andrew Pinski <apinski@cavium.com>
1063 * mips-tdep.c (is_octeon): New function.
1064 (is_octeon_bbit_op): New function.
1065 (mips32_next_pc): Handle Octeon's bbit instructions.
1066 (mips32_instruction_has_delay_slot): Likewise.
1068 2012-08-19 Andrew Pinski <apinski@cavium.com>
1070 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1071 before the function.
1073 2012-08-19 Andrew Pinski <apinski@cavium.com>
1075 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1077 2012-08-19 Keith Seitz <keiths@redhat.com>
1080 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1081 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1083 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1085 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1086 The typo broke "make TAGS".
1088 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1092 2012-08-17 Keith Seitz <keiths@redhat.com>
1095 * gdbtypes.c (strict_type_checking): New variable.
1096 (show_strict_type_checking): New function.
1097 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1098 if strict type checking is disabled.
1099 (_initialize_gdbtypes): Add "check type" subcommand.
1100 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1102 2012-08-17 Keith Seitz <keiths@redhat.com>
1104 * language.h (type_mode): Remove.
1105 (type_check): Remove.
1106 (struct language_defn): Remove la_type_check.
1107 (STRICT_TYPE): Remove unused macro.
1108 (type_error): Remove.
1109 * language.c (set_type_range_case): Renamed to ...
1110 (set_range_case): ... this. Update all callers.
1111 Remove type_mode/type_check.
1112 (type_mode): Remove.
1113 (type_check): Remove.
1114 (show_type_command): Remove.
1115 (set_type_command): Remove.
1116 (language_info): Remove type checking output.
1117 (type_error): Remove unused function.
1118 (range_error): Update comment.
1119 (unknown_language_defn): Remove la_type_check.
1120 (auto_language_defn): Likewise.
1121 (local_language_defn): Likewise.
1122 (_initialize_language): Remove "check type" subcommand.
1123 * ada-lang.c (ada_language_defn): Remove la_type_check.
1124 * c-lang.c (c_language_defn): Likewise.
1125 (cplus_language_defn): Likewise.
1126 (asm_language_defn): Likewise.
1127 (minimal_language_defn): Likewise.
1128 * d-lang.c (d_language_defn): Likewise.
1129 * f-lang.c (f_language_defn): Likewise.
1130 * go-lang.c (go_language_defn): Likewise.
1131 * jv-lang.c (java_language_defn): Likewise.
1132 * m2-lang.c (m2_language_defn): Likewise.
1133 * objc-lang.c (objc_language_defn): Likewise.
1134 * opencl-lang.c (opencl_language_defn): Likewise.
1135 * p-lang.c (pascal_language_defn): Likewise.
1137 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1139 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1141 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1143 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1145 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1146 using the regache. Use ia64_hpux_get_register_from_save_state_t
1147 to access the bsp and bspstore registers if not.
1149 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1151 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1152 * breakpoint.c (detach_breakpoints): Change pid parameter into
1153 a ptid. Adjust code accordingly.
1154 * infrun.c (handle_inferior_event): Delete variable child_pid.
1155 Update call to detach_breakpoints to pass the child ptid for
1157 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1158 assert that inferior_ptid's lwp is zero.
1159 (linux_handle_extended_wait): Update call to detach_breakpoints.
1160 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1163 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1165 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1166 parent, only call detach_breakpoints if tts.tts_event ==
1169 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1171 * dwarf2-frame.c (dwarf2_frame_cache): Use
1172 get_frame_address_in_block instead of get_frame_pc as
1173 the bound for executing the frame's FDE.
1175 2012-08-16 Yao Qi <yao@codesourcery.com>
1177 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1178 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1179 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1180 (c_type_print_varspec_suffix): Likewise.
1181 * eval.c (evaluate_subexp_standard): Likewise.
1182 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1183 (f_type_print_varspec_suffix): Likewise.
1184 * gdbtypes.c (is_scalar_type): Likewise.
1185 (recursive_dump_type): Likewise.
1186 * infcall.c (value_arg_coerce): Likewise.
1187 * m2-valprint.c (m2_val_print): Likewise.
1188 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1189 (pascal_type_print_varspec_suffix): Likewise.
1190 (pascal_type_print_base): Likewise.
1191 * p-valprint.c (pascal_val_print): Likewise.
1192 (pascal_val_print): Likewise.
1193 * valops.c (value_slice): Likewise.
1194 * valprint.c (scalar_type_p): Likewise.
1195 * valarith.c (value_bitstring_subscript): Remove.
1196 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1197 Remove comment on TYPE_CODE_BITSTRING.
1199 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1200 TYPE_CODE_BITSTRING.
1202 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1205 2012-08-16 Yao Qi <yao@codesourcery.com>
1207 * tracepoint.c (trace_find_none_command): Remove.
1208 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1210 2012-08-16 Yao Qi <yao@codesourcery.com>
1212 * remote.c (handle_notification): Remove parameter 'length'.
1213 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1215 2012-08-15 Keith Seitz <keiths@redhat.com>
1217 * gdbtypes.c (opaque_type_resolution): Make static.
1218 Add missing comment.
1219 (overload_debug): Add missing comment.
1220 (show_opaque_type_resolution): Likewise.
1221 (show_overload_debug): Likewise.
1222 (print_bit_vector): Remove unnecessary forward declaration.
1223 (print_arg_types): Likewise.
1224 (dump_fn_fieldlists): Likewise.
1225 (print_cplus_stuff): Likewise.
1227 2012-08-15 Tom Tromey <tromey@redhat.com>
1229 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1230 (gdb_bfd_ref): Initialize new field.
1231 (gdb_bfd_unref): Unref the archive BFD.
1232 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1235 2012-08-15 Tom Tromey <tromey@redhat.com>
1238 * python/py-bpevent.c (create_breakpoint_event_object): Update
1240 * python/py-event.c (evpy_add_attribute): Update comment.
1241 * python/py-exitedevent.c (create_exited_event_object): Fix
1242 reference counting and error handling.
1243 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1244 Fix reference counting.
1245 * python/py-signalevent.c (create_signal_event_object): Fix
1246 reference counting and error handling.
1247 * python/py-stopevent.c (emit_stop_event): Fix reference
1249 * python/py-threadevent.c (get_event_thread): Return a
1251 * python/py-type.c (convert_field): Fix reference counting.
1253 2012-08-15 Tom Tromey <tromey@redhat.com>
1255 * dwarf2read.c (dwarf_decode_macro_bytes)
1256 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1259 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1261 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1262 stepi, nexti, finish, next, step, jump, and continue commands.
1263 * infrun.c (_initialize_infrun): Update help text for the handle
1266 2012-08-14 Doug Evans <dje@google.com>
1268 * gdbtypes.c (struct extra): Delete, unused.
1270 * gdbtypes.c: Whitespace cleanup.
1271 (address_space_name_to_int): Remove "extern" from definition.
1272 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1274 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1275 TYPE_POINTER_TYPE (type).
1277 2012-08-14 Gary Benson <gbenson@redhat.com>
1279 * solib-svr4.c (svr4_free_library_list): Use free_so.
1281 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1283 * .gitignore: Add go-exp.c.
1285 2012-08-13 Doug Evans <dje@google.com>
1287 * value.c (show_convenience): Tweak comment.
1288 (_initialize_values): Mention convenience functions in the help text
1289 for "show convenience".
1291 2012-08-13 Yao Qi <yao@codesourcery.com>
1293 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1294 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1296 * eval.c (evaluate_subexp_standard): Likewise.
1297 * expprint.c (print_subexp_standard): Likewise.
1298 (dump_subexp_body_standard): Likewise.
1299 * parse.c (operator_length_standard): Likewise.
1301 2012-08-13 Yao Qi <yao@codesourcery.com>
1303 * std-operator.def: Remove OP_BITSTRING.
1304 * breakpoint.c (watchpoint_exp_is_const): Update.
1305 * eval.c (evaluate_subexp_standard): Remove handling to
1307 * expprint.c (print_subexp_standard): Likewise.
1308 (dump_subexp_body_standard): Likewise.
1309 * parse.c (operator_length_standard): Likewise.
1310 * valops.c (value_bitstring): Remove.
1311 * value.h: Remove the declaration of 'value_bitstring'.
1313 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1315 * linespec.c (find_methods): Remove unused variables `i1' and
1317 (decode_line_full): Likewise for `arg_start'.
1319 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1321 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1322 (zlib_decompress_section): Likewise for `section_data'.
1323 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1325 2012-08-10 Doug Evans <dje@google.com>
1327 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1328 * NEWS: Document them.
1329 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1331 * python/py-type.c (typy_array_1): New function.
1332 (typy_array): Call it.
1333 (typy_vector): New function.
1334 (type_object_methods): Add "vector".
1335 * python/lib/gdb/function/__init__.py: New file.
1336 * python/lib/gdb/function/strfns.py: New file.
1338 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1340 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1341 for TYPE_FIELD_BITPOS.
1342 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1344 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1347 * common/vec.h (VEC_merge): Define.
1348 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1349 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1350 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1351 * completer.c: Include gdb_signals.h.
1352 (signal_completer): Define.
1353 * completer.h (signal_completer): Add prototype.
1354 * infcmd.c (_initialize_infcmd): Assign the command
1355 completer for "signal" to handle_completer.
1356 * infrun.c: Include completer.h.
1357 (handle_completer): Define.
1358 (_initialize_infrun): Declare a new local variable c. Store the
1359 result of add_com("handle") to it. Assign the command
1360 completer for "handle" to handle_completer.
1362 2012-08-09 Yao Qi <yao@codesourcery.com>
1364 * cli/cli-decode.c (set_cmd_prefix): New.
1365 (lookup_cmd_for_prefixlist): New.
1366 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1367 of each cmd_list_element in *prefixlist.
1368 (add_setshow_cmd_full): set_cmd_prefix.
1369 (add_alias_cmd): Likewise.
1370 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1371 Declare 'auto_boolean_enums'.
1372 * cli/cli-setshow.c: Include "observer.h".
1373 (notify_command_param_changed_p): New.
1374 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1376 (do_setshow_command): Split it to ...
1377 (do_set_command, do_show_command): ... them. New.
1378 (do_set_command): Call observer_notify_command_param_changed if
1379 notify_command_param_changed_p returns true.
1380 (cmd_show_list): Caller update.
1381 * auto-load.c (set_auto_load_cmd): Likewise.
1382 * remote.c (show_remote_cmd): Likewise.
1383 * cli/cli-setshow.h: Update declarations.
1384 * top.c (execute_command): Call do_set_command and do_show_command.
1386 * NEWS: Mention new MI notification.
1387 * mi/mi-interp.c: Declare mi_command_param_changed.
1388 (mi_interpreter_init): Attach mi_command_param_changed to
1389 observer command_param_changed.
1390 (mi_command_param_changed): New.
1391 Remove mi_suppress_breakpoint_notifications.
1392 Define global variable mi_suppress_notification.
1393 (mi_breakpoint_created): Update.
1394 (mi_breakpoint_deleted): Likewise.
1395 (mi_breakpoint_modified): Likewise.
1396 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1397 'gdb-set' and set mi_suppress_notification.
1398 * mi/mi-main.h: (mi_suppress_notification): New struct.
1400 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1401 Jan Kratochvil <jan.kratochvil@redhat.com>
1403 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1405 2012-08-09 Yao Qi <yao@codesourcery.com>
1407 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1408 (skiplist): Move it to skip.c.
1409 (init_cmd_lists): Remove code setting enablebreaklist and
1411 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1412 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1414 * gdbcmd.h: Likewise.
1415 * skip.c (_initialize_step_skip): Move 'skiplist' from
1418 2012-08-09 Yao Qi <yao@codesourcery.com>
1420 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1421 * gnu-nat.c, symfile.c: Likewise.
1423 2012-08-08 Aaron Gamble <agamble@google.com>
1425 * utils.c (prompt_for_continue_wait_time): New static global.
1426 (make_command_stats_cleanup): Initialize it.
1427 (report_command_stats): Subtract time waiting for user.
1428 (prompt_for_continue): Track time waiting for user.
1429 (defaulted_query): Track time waiting for user.
1431 2012-08-08 Doug Evans <dje@google.com>
1433 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1435 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1436 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1437 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1438 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1439 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1440 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1442 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1443 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1444 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1445 (dump_prefix_expression): Handle OP_TYPE.
1447 2012-08-08 Keith Seitz <keiths@redhat.com>
1449 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1452 2012-08-08 Doug Evans <dje@google.com>
1454 * linux-thread-db.c: #include "gdb_vecs.h".
1455 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1457 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1458 (thread_db_load_search): Use a vector to iterate over path elements.
1459 Handle text appearing after "$pdir".
1461 * gdb_string.h: Moved to ...
1462 * common/gdb_string.h: ... here.
1463 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1464 gdb_string.h and gdb_assert.h.
1466 2012-08-08 Yao Qi <yao@codesourcery.com>
1468 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1469 (tic6x_value_to_register): Likewise.
1470 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1471 and set_gdbarch_value_to_register.
1473 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 Jean-Marc Saffroy <saffroy@gmail.com>
1477 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1478 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1479 * gcore.c (gcore_create_callback): New function comment. Add modified
1480 parameter. Only write modified regions. Set SEC_READONLY exactly
1481 according to MODIFIED.
1482 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1483 the passed modified value to FUNC.
1484 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1485 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1486 first. New variables modified and has_anonymous. Parse the lines of
1487 smaps file. Add the passed MODIFIED value to FUNC.
1488 * procfs.c (find_memory_regions_callback): Add the passed modified
1491 2012-08-06 Tom Tromey <tromey@redhat.com>
1493 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1494 (dwarf2_frame_cache): Use it.
1495 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1496 cache initialization constraint.
1498 2012-08-06 Tom Tromey <tromey@redhat.com>
1501 * varobj.c (update_dynamic_varobj_children): Don't call
1504 2012-08-06 Tom Tromey <tromey@redhat.com>
1507 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1509 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1511 * NEWS: New entry for 'cd' default parameters.
1512 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1514 2012-08-03 Tom Tromey <tromey@redhat.com>
1516 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1519 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1521 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1522 to attempting lseek/write.
1523 (inf_child_fileio_pread): Likewise for pread.
1525 2012-08-02 Yao Qi <yao@codesourcery.com>
1527 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1528 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1529 add_setshow_zinteger_cmd.
1530 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1531 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1532 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1533 instead of add_setshow_zinteger_cmd.
1534 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1535 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1536 instead of add_setshow_zinteger_cmd.
1537 * frame.c (frame_debug): Add 'unsigned'.
1538 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1539 add_setshow_zinteger_cmd.
1540 * frame.h: Update the declaration of 'frame_debug'.
1541 * gdbtypes.c (overload_debug): Add 'unsigned'.
1542 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1543 add_setshow_zinteger_cmd.
1544 * inferior.h: Update declaration of 'debug_infrun'.
1545 * infrun.c (debug_infrun): Add 'unsigned'.
1546 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1547 add_setshow_zinteger_cmd.
1548 * jit.c (jit_debug): Add 'unsigned'.
1549 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1550 add_setshow_zinteger_cmd.
1551 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1552 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1553 instead of add_setshow_zinteger_cmd.
1554 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1555 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1556 add_setshow_zinteger_cmd.
1557 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1558 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1559 instead of add_setshow_zinteger_cmd.
1560 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1561 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1562 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1563 intead of add_setshow_zinteger_cmd.
1564 * mips-tdep.c (mips_debug): Add 'unsigned'.
1565 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1566 instead of add_setshow_zinteger_cmd.
1567 * monitor.c (monitor_debug): Add 'unsigned'.
1568 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1569 add_setshow_zinteger_cmd.
1570 * observer.c (observer_debug): Add 'unsigned'.
1571 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1572 add_setshow_zinteger_cmd.
1573 * parse.c (expressiondebug): Add 'unsigned'.
1574 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1575 add_setshow_zinteger_cmd.
1576 * record.c (record_debug): Add 'unsigned'.
1577 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1578 add_setshow_zinteger_cmd.
1579 * record.h: Update the declaration of 'record_debug'.
1580 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1581 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1582 add_setshow_zinteger_cmd.
1583 * serial.c (global_serial_debug_p): Add 'unsigned'.
1584 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1585 add_setshow_zinteger_cmd.
1586 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1587 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1588 add_setshow_zinteger_cmd.
1589 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1590 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1591 add_setshow_zinteger_cmd.
1592 * target.c (targetdebug): Add 'unsigned'.
1593 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1594 add_setshow_zinteger_cmd.
1595 * valops.c (overload_debug): Add 'unsigned'.
1596 * varobj.c (varobjdebug): Add 'unsigned'.
1597 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1598 add_setshow_zinteger_cmd.
1599 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1600 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1601 instead of add_setshow_zinteger_cmd.
1603 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1604 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1605 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1606 instead of add_setshow_zinteger_cmd.
1607 * gdbarch.c, gdbarch.h: Re-generated.
1609 2012-08-02 Yao Qi <yao@codesourcery.com>
1611 * nto-tdep.c: Don't include cli/cli-decode.h and
1613 (_initialize_nto_tdep): Remove.
1614 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1616 Remove macro nto_internal_debugging.
1618 2012-08-01 Richard Henderson <rth@redhat.com>
1620 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1621 (mep-*-*) [gdb_target_obs]: Likewise.
1623 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1625 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1626 linux_get_siginfo_type.
1628 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1630 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1632 (call_function_by_hand) <ON_STACK>: Call write_memory with
1633 gdbarch_breakpoint_from_pc, if possible.
1634 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1637 2012-07-31 Yao Qi <yao@codesourcery.com>
1639 * tracepoint.c: Add 'static' for some variables.
1641 2012-07-31 Yao Qi <yao@codesourcery.com>
1643 * go32-nat.c: Declare _initialize_go32_nat.
1644 * ser-go32.c: Declare _initialize_ser_dos.
1645 * top.c (do_chdir_cleanup): Add 'static'.
1647 2012-07-30 Keith Seitz <keiths@redhat.com>
1649 * linespec.c (linespec_lex_number): A number followed
1650 by quotes is a valid number, too.
1652 2012-07-30 Tom Tromey <tromey@redhat.com>
1654 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1656 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1658 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1659 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1661 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1663 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1664 invalid or reevaluated to prevent prevent references to possibly
1665 delete'd type objects being left in the varobj.
1667 2012-07-27 Tom Tromey <tromey@redhat.com>
1668 Jan Kratochvil <jan.kratochvil@redhat.com>
1670 * copying.awk: Print buffer-read-only and vi ro markers.
1671 * copying.c: Rebuild.
1672 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1673 * gdbarch.c, gdbarch.h: Rebuild.
1674 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1675 buffer-read-only and vi ro markers.
1676 * features/arm-with-iwmmxt.c: Rebuild.
1677 * features/arm-with-m-fpa-layout.c: Rebuild.
1678 * features/arm-with-m-vfp-d16.c: Rebuild.
1679 * features/arm-with-m.c: Rebuild.
1680 * features/arm-with-neon.c: Rebuild.
1681 * features/arm-with-vfpv2.c: Rebuild.
1682 * features/arm-with-vfpv3.c: Rebuild.
1683 * features/i386/amd64-avx-linux.c: Rebuild.
1684 * features/i386/amd64-avx.c: Rebuild.
1685 * features/i386/amd64-linux.c: Rebuild.
1686 * features/i386/amd64.c: Rebuild.
1687 * features/i386/i386-avx-linux.c: Rebuild.
1688 * features/i386/i386-avx.c: Rebuild.
1689 * features/i386/i386-linux.c: Rebuild.
1690 * features/i386/i386-mmx-linux.c: Rebuild.
1691 * features/i386/i386-mmx.c: Rebuild.
1692 * features/i386/i386.c: Rebuild.
1693 * features/i386/x32-avx-linux.c: Rebuild.
1694 * features/i386/x32-avx.c: Rebuild.
1695 * features/i386/x32-linux.c: Rebuild.
1696 * features/i386/x32.c: Rebuild.
1697 * features/mips-dsp-linux.c: Rebuild.
1698 * features/mips-linux.c: Rebuild.
1699 * features/mips64-dsp-linux.c: Rebuild.
1700 * features/mips64-linux.c: Rebuild.
1701 * features/rs6000/powerpc-32.c: Rebuild.
1702 * features/rs6000/powerpc-32l.c: Rebuild.
1703 * features/rs6000/powerpc-403.c: Rebuild.
1704 * features/rs6000/powerpc-403gc.c: Rebuild.
1705 * features/rs6000/powerpc-405.c: Rebuild.
1706 * features/rs6000/powerpc-505.c: Rebuild.
1707 * features/rs6000/powerpc-601.c: Rebuild.
1708 * features/rs6000/powerpc-602.c: Rebuild.
1709 * features/rs6000/powerpc-603.c: Rebuild.
1710 * features/rs6000/powerpc-604.c: Rebuild.
1711 * features/rs6000/powerpc-64.c: Rebuild.
1712 * features/rs6000/powerpc-64l.c: Rebuild.
1713 * features/rs6000/powerpc-7400.c: Rebuild.
1714 * features/rs6000/powerpc-750.c: Rebuild.
1715 * features/rs6000/powerpc-860.c: Rebuild.
1716 * features/rs6000/powerpc-altivec32.c: Rebuild.
1717 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1718 * features/rs6000/powerpc-altivec64.c: Rebuild.
1719 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1720 * features/rs6000/powerpc-cell32l.c: Rebuild.
1721 * features/rs6000/powerpc-cell64l.c: Rebuild.
1722 * features/rs6000/powerpc-e500.c: Rebuild.
1723 * features/rs6000/powerpc-e500l.c: Rebuild.
1724 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1725 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1726 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1727 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1728 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1729 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1730 * features/rs6000/powerpc-vsx32.c: Rebuild.
1731 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1732 * features/rs6000/powerpc-vsx64.c: Rebuild.
1733 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1734 * features/rs6000/rs6000.c: Rebuild.
1735 * features/s390-linux32.c: Rebuild.
1736 * features/s390-linux32v1.c: Rebuild.
1737 * features/s390-linux32v2.c: Rebuild.
1738 * features/s390-linux64.c: Rebuild.
1739 * features/s390-linux64v1.c: Rebuild.
1740 * features/s390-linux64v2.c: Rebuild.
1741 * features/s390x-linux64.c: Rebuild.
1742 * features/s390x-linux64v1.c: Rebuild.
1743 * features/s390x-linux64v2.c: Rebuild.
1744 * features/tic6x-c62x-linux.c: Rebuild.
1745 * features/tic6x-c62x.c: Rebuild.
1746 * features/tic6x-c64x-linux.c: Rebuild.
1747 * features/tic6x-c64x.c: Rebuild.
1748 * features/tic6x-c64xp-linux.c: Rebuild.
1749 * features/tic6x-c64xp.c: Rebuild.
1751 2012-07-27 Tom Tromey <tromey@redhat.com>
1753 * c-exp.y (classify_name): Avoid assignment in condition.
1755 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1757 * amd64-windows-tdep.c: Include "frame.h".
1758 (amd64_windows_skip_trampoline_code): New function.
1759 (amd64_windows_init_abi): Add trampoline registration.
1761 2012-07-27 Yao Qi <yao@codesourcery.com>
1763 * tracepoint.c (cur_traceframe_number): Remove.
1764 (set_tfile_traceframe): Remove.
1765 (tfile_trace_find, tfile_fetch_registers): Update callers.
1766 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1767 (tfile_open, tfile_trace_find): Likewise.
1769 2012-07-27 Yao Qi <yao@codesourcery.com>
1771 * thread.c (switch_to_thread): Don't call registers_changed.
1773 2012-07-26 Tom Tromey <tromey@redhat.com>
1775 * Makefile.in (SFILES): Remove objc-exp.y.
1776 (YYFILES): Remove objc-exp.c.
1777 (YYOBJ): Remove objc-exp.o.
1778 (local-maintainer-clean): Don't mention objc-exp.c.
1779 * c-exp.y: Include objc-lang.h.
1780 (%union) <class>: New field.
1781 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1782 (exp): Clone subscript production for OBJC_LBRAC. Add various
1783 Objective C productions.
1784 (msglist, msgarglist, msgarg): New productions.
1785 (array_mod, func_mod, operator): Clone productions for
1787 (parse_string_or_char): Handle '@' strings.
1788 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1789 (classify_name): Check la_name_of_this. Recognize ObjC class
1791 * objc-exp.y: Remove.
1792 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1793 * objc-lang.h (objc_parse, objc_error): Don't declare.
1795 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1797 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1799 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1801 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1804 2012-07-26 Tom Tromey <tromey@redhat.com>
1806 * copying.c: Rebuild.
1807 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1810 2012-07-26 Tom Tromey <tromey@redhat.com>
1812 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1814 (print_objfile_statistics): Likewise.
1815 (maintenance_print_symbols): Likewise.
1816 (maintenance_print_msymbols): Likewise.
1817 (maintenance_print_objfiles): Likewise.
1818 * psymtab.c (print_partial_symbols): Call QUIT.
1819 (maintenance_print_psymbols): Likewise. Don't modify
1821 * copying.c (show_copying_command): Don't modify immediate_quit.
1822 (show_warranty_command): Likewise.
1823 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1825 2012-07-26 Keith Seitz <keiths@redhat.com>
1827 * linespec.c (linespec_lexer_lex_number): The input
1828 is also a valid number if the next character is a comma
1831 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1833 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1836 2012-07-26 Tristan Gingold <gingold@adacore.com>
1838 * machoread.c: Include gdb_bfd.h.
1840 2012-07-26 Tristan Gingold <gingold@adacore.com>
1842 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1845 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1847 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1849 (dwarf2_evaluate_loc_desc): Likewise.
1850 (dwarf2_loc_desc_needs_frame): Likewise.
1851 (locexpr_describe_location_1): Likewise.
1852 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1854 (struct dwarf2_loclist_baton): Likewise.
1855 * dwarf2read.c (struct dwarf_block): Likewise.
1856 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1857 (decode_locdesc): Expand SIZE and I to size_t.
1859 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1861 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1863 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1865 * doublest.c (convert_doublest_to_floatformat): If the exponent
1866 is too small, treat the value as zero. If the exponent is too
1867 large, treat the value as infinity.
1869 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1871 * configure.ac: Add --enable-lmcheck configure option.
1872 * configure: Regenerate.
1874 2012-07-25 Tom Tromey <tromey@redhat.com>
1876 * NEWS: Mention maint info bfds.
1877 * gdb_bfd.c (all_bfds): New global.
1878 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1879 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1882 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1884 * configure.tgt: Add v850*-*-rtems*.
1886 2012-07-25 Tom Tromey <tromey@redhat.com>
1888 * macrotab.c (macro_bcache_str): Remove cast.
1890 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1892 * linespec.c (linespec_lexer_lex_number): Update comments,
1893 change the return and add check to make sure the input is
1894 the decimal numbers.
1895 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1896 false, call linespec_lexer_lex_string.
1898 2012-07-24 Tom Tromey <tromey@redhat.com>
1900 * symfile.c (symbol_file_add): Don't open BFD twice.
1902 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1904 * breakpoint.c (create_breakpoint): Store condition for pending
1907 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1909 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1910 (m68k_return_value): Handle complex types like structures.
1911 (m68k_svr4_return_value): Likewise.
1913 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1915 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1916 parameters to bfd_get_section_name.
1918 2012-07-24 Yao Qi <yao@codesourcery.com>
1920 * cli/cli-setshow.c: Handle case 'var_uinteger'
1921 and 'var_zuninteger' together. Handle case 'var_integer' and
1922 'var_zinteger' together.
1924 2012-07-23 Keith Seitz <keiths@redhat.com>
1926 * linespec.c (convert_linespec_to_sal): Don't add
1927 any symbols to the result vector if symbol_to_sal
1930 2012-07-23 Keith Seitz <keiths@redhat.com>
1932 * linespec.c (decode_objc): Record the function name
1935 2012-07-23 Tom Tromey <tromey@redhat.com>
1937 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1939 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1940 (map_vmap): Acquire a reference to the BFD.
1942 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1944 * p-valprint.c (pascal_object_print_value): Replace potentially
1945 unsafe alloca with xmalloc/xfree.
1946 * valops.c (search_struct_method): Likewise.
1948 2012-07-23 Tom Tromey <tromey@redhat.com>
1950 * solib-svr4.c (enable_break): Update.
1951 * bfd-target.h (target_bfd_reopen): Update documentation.
1953 2012-07-23 Tom Tromey <tromey@redhat.com>
1955 * symfile.c (separate_debug_file_exists): Update.
1956 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1957 (reread_symbols): Update.
1958 * elfread.c (build_id_verify): Update.
1959 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1960 bfd_open_maybe_remote.
1962 2012-07-23 Tom Tromey <tromey@redhat.com>
1964 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1966 2012-07-23 Tom Tromey <tromey@redhat.com>
1968 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1970 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1972 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1973 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1975 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1976 * objfiles.c (allocate_objfile): Acquire a new reference.
1977 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1978 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1979 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1980 a cleanup for 'nbfd'.
1981 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1983 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1984 make a cleanup for 'abfd'.
1985 (symbol_file_add): Make a BFD cleanup.
1987 2012-07-23 Tom Tromey <tromey@redhat.com>
1989 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1990 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1991 * corelow.c (core_open): Use gdb_bfd_fopen.
1992 * dsrec.c (load_srec): Use gdb_bfd_openr.
1993 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1994 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1995 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1996 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1997 (gdb_bfd_fdopenr): New functions.
1998 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1999 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2000 (gdb_bfd_fdopenr): Declare.
2001 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2002 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2003 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2004 gdb_bfd_openr_next_archived_file.
2005 (macho_check_dsym): Use gdb_bfd_openr.
2006 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2007 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2008 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2009 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2011 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2012 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2013 gdb_bfd_openr_next_archived_file.
2014 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2016 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2018 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2019 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2020 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2021 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2022 (symfile_bfd_open): Use gdb_bfd_fopen.
2023 (generic_load): Use gdb_bfd_openr.
2024 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2026 2012-07-23 Tom Tromey <tromey@redhat.com>
2028 * bfd-target.c (target_bfd_reopen): Update.
2029 * cli/cli-dump.c (bfd_openr_with_cleanup)
2030 (bfd_openw_with_cleanup): Update.
2031 * corelow.c (core_open): Update.
2032 * dsrec.c (load_srec): Update.
2033 * exec.c (exec_file_attach): Update.
2034 * gcore.c (create_gcore_bfd): Update.
2035 * gdb_bfd.c (gdb_bfd_ref): Return void.
2036 (gdb_bfd_open): Update.
2037 * gdb_bfd.h (gdb_bfd_ref): Return void.
2039 * jit.c (jit_bfd_try_read_symtab): Update.
2040 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2041 * machoread.c (macho_symfile_read_all_oso): Update.
2042 (macho_check_dsym): Update.
2043 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2044 * remote-m32r-sdi.c (m32r_load): Update.
2045 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2046 * rs6000-nat.c (add_vmap): Update.
2047 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2049 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2050 * solib-spu.c (spu_bfd_open): Update.
2051 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2052 * spu-linux-nat.c (spu_bfd_open): Update.
2053 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2054 (generic_load): Update.
2055 * windows-nat.c (windows_make_so): Update.
2057 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2059 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2061 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2063 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2064 SIGTRAMP_FRAME unwinding.
2066 2012-07-20 Doug Evans <dje@google.com>
2068 * NEWS: Document new options "set/show use-deprecated-index-sections",
2069 and delete reference to --use-deprecated-index-sections.
2070 * symfile.h (use_deprecated_index_sections): Delete.
2071 * dwarf2read.c (use_deprecated_index_sections): Make static.
2072 (read_index_from_section): Update wording of how to load
2073 deprecated index sections.
2074 (_initialize_dwarf2_read): New options
2075 "set/show use-deprecated-index-sections".
2076 * main.c (captured_main): Delete --use-deprecated-index-sections.
2078 2012-07-20 Pedro Alves <palves@redhat.com>
2083 * infrun.c (handle_inferior_event) <new thread>: Don't special
2084 case minus_one_ptid.
2085 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2086 * linux-thread-db.c (thread_get_info_callback): Don't return early
2087 if the thread is zombie.
2088 (thread_from_lwp): Change return type to void. Rewrite stale
2090 (attach_thread): Don't return early if the thread is zombie,
2091 instead set its "dying" flag.
2092 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2093 (find_new_threads_callback): Don't return early if the thread is
2096 2012-07-20 Pedro Alves <palves@redhat.com>
2098 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2099 * target.c (target_wait): Likewise.
2100 (str_comma_list_concat_elem, do_option, target_options_to_string):
2102 * target.h (target_options_to_string): Declare.
2104 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 Tom Tromey <tromey@redhat.com>
2107 * dwarf2read.c (dwarf_decode_macros)
2108 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2109 DW_MACRO_GNU_transparent_include_alt>: New cases.
2110 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2111 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2113 2012-07-20 Tom Tromey <tromey@redhat.com>
2115 * dwarf2read.c (try_open_dwo_file): Don't call
2116 gdb_bfd_stash_filename.
2118 2012-07-20 Pedro Alves <palves@redhat.com>
2120 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2121 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2122 (i386_process_record): Tweak description comments.
2124 2012-07-20 Pedro Alves <palves@redhat.com>
2126 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2127 (i386_process_record): Use record_read_memory.
2128 * record.c (record_read_memory): New function.
2129 (record_arch_list_add_mem, record_exec_insn): Use
2131 * record.h (record_read_memory): Declare.
2133 2012-07-20 Yao Qi <yao@codesourcery.com>
2135 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2138 2012-07-19 Pedro Alves <palves@redhat.com>
2140 * record.c (record_resume): Ask the target beneath to report all
2143 2012-07-19 Doug Evans <dje@google.com>
2145 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2146 there's no section at address zero.
2147 (dwarf2_record_block_ranges): Ditto.
2149 2012-07-19 Yao Qi <yao@codesourcery.com>
2151 * command.h, remote.c: Fix a typo in comment.
2153 2012-07-19 Tom Tromey <tromey@redhat.com>
2156 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2157 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2158 OP_DECLTYPE>: New cases.
2159 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2160 (type_exp): Add new productions.
2161 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2163 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2165 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2166 OP_DECLTYPE>: New case.
2167 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2169 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2170 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2172 2012-07-19 Tom Tromey <tromey@redhat.com>
2174 * c-exp.y (enum token_flags): New.
2175 (struct token) <cxx_only>: Remove.
2177 (tokentab3, tokentab2, ident_tokens): Update.
2178 (lex_one_token): Update. Handle FLAG_SHADOW.
2180 2012-07-19 Tom Tromey <tromey@redhat.com>
2182 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2183 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2184 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2185 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2186 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2187 type_exp production where appropriate.
2188 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2189 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2190 <UNOP_MEMVAL_TYPE>: New case.
2191 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2192 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2193 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2194 <UNOP_MEMVAL_TYPE>: New case.
2195 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2196 UNOP_REINTERPRET_CAST>: Update.
2197 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2198 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2199 UNOP_REINTERPRET_CAST>: Update.
2200 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2201 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2202 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2205 2012-07-19 Yao Qi <yao@codesourcery.com>
2206 Jan Kratochvil <jan.kratochvil@redhat.com>
2208 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2209 and case 'var_optional_filename' together.
2210 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2211 instead of add_setshow_optional_filename_cmd for setshow command
2212 'args'. Set completer for 'set args'.
2214 2012-07-18 Doug Evans <dje@google.com>
2216 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2217 * common/gdb_vecs.c: New file, contents from utils.c.
2218 * common/host-defs.h: New file, contents from defs.h.
2219 * utils.h: New file, contents from defs.h.
2220 * defs.h: Move all declarations of objects defined in utils.c
2221 to utils.h (except QUIT() and related).
2222 #include "utils.h", "host-defs.h".
2223 * probe.h (probe_p): Move here from gdb_vecs.h.
2224 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2225 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2226 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2227 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2228 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2229 (COMMON_OBS): Add gdb_vecs.o.
2230 (gdb_vecs.o): New rule.
2232 2012-07-18 Keith Seitz <keiths@redhat.com>
2234 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2235 parameter. If non-zero, use SYMNAME as the canonical name
2238 (convert_linespec_to_sals): Use add_sal_to_sals for
2240 (decode_line_full): No need to "fill in missing canonical names"
2241 anymore. Simply make cleanups for the allocated names.
2243 2012-07-18 Keith Seitz <keiths@redhat.com>
2245 * linespec.c (struct linespec): Constify expression,
2246 source_filename, function_name, and label_name.
2247 (symbol_not_found_error): Make all parameters const.
2248 (linespec_parser_delete): No need to check for NULL
2249 when using xfree. Cast const char * to char * for xfree.
2251 2012-07-18 Keith Seitz <keiths@redhat.com>
2253 * breakpoint.c (invalid_thread_id_error): New function.
2254 (find_condition_and_thread): Use invalid_thread_id_error.
2255 (watch_command_1): Likewise.
2257 2012-07-18 Tom Tromey <tromey@redhat.com>
2259 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2260 * contrib/cc-with-tweaks.sh: New file.
2262 2012-07-18 Tom Tromey <tromey@redhat.com>
2264 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2265 (locate_dwz_sections): Recognize .gdb_index.
2266 (create_cus_from_index_list): New function.
2267 (create_cus_from_index): Use it. Handle .dwz data.
2268 (read_index_from_section): New function, extracted from
2270 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2273 2012-07-18 Tom Tromey <tromey@redhat.com>
2275 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2276 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2277 <is_dwz>: New field.
2278 (struct dwz_file): New.
2279 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2280 (locate_dwz_sections, dwarf2_get_dwz_file)
2281 (get_abbrev_section_for_cu): New functions.
2282 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2283 (read_and_check_type_unit_head): Add abbrev_section argument.
2284 (create_debug_types_hash_table): Update.
2285 (init_cutu_and_read_dies): Use proper abbrev section.
2286 (init_cutu_and_read_dies_no_follow): Likewise.
2287 (set_partial_user): Do nothing if PST==NULL.
2288 (read_comp_units_from_section): New function.
2289 (create_all_comp_units): Use it.
2290 (scan_partial_symbols, partial_die_parent_scope): Update.
2291 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2292 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2293 (find_partial_die): Add offset_in_dwz argument. Update.
2294 (guess_partial_die_structure_name, fixup_partial_die): Update.
2295 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2296 DW_FORM_GNU_strp_alt.
2297 (read_indirect_string_from_dwz): New function.
2298 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2299 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2300 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2301 (follow_die_offset): Add offset_in_dwz argument.
2302 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2303 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2304 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2305 Handle new macro forms.
2306 (dwarf_decode_macros): Update.
2307 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2308 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2309 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2310 (create_debug_types_hash_table): Use correct abbrev section.
2311 (get_debug_line_section): New function.
2312 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2313 (process_full_comp_unit): Pass 'required' argument to
2314 end_symtab_get_static_block.
2315 * buildsym.h (end_symtab_get_static_block): Update.
2316 * buildsym.c (end_symtab_get_static_block): Add 'required'
2318 (end_symtab, end_expandable_symtab): Update.
2320 2012-07-18 Tom Tromey <tromey@redhat.com>
2322 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2324 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2325 (zlib_decompress_section): Remove.
2326 (dwarf2_read_section): Use gdb_bfd_map_section.
2327 (munmap_section_buffer): Remove.
2328 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2329 munmap_section_buffer.
2330 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2331 (struct gdb_bfd_section_data): New.
2332 (free_one_bfd_section): New function.
2333 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2334 (get_section_descriptor, zlib_decompress_section)
2335 (gdb_bfd_map_section): New functions.
2336 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2338 2012-07-18 Tom Tromey <tromey@redhat.com>
2340 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2342 2012-07-18 Tom Tromey <tromey@redhat.com>
2344 * gdb_bfd.c (struct gdb_bfd_data): New.
2345 (gdb_bfd_cache): New global.
2346 (struct gdb_bfd_cache_search): New.
2347 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2348 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2349 * gdb_bfd.h (gdb_bfd_open): Declare.
2351 2012-07-18 Tom Tromey <tromey@redhat.com>
2353 * utils.c (make_cleanup_bfd_unref): Rename from
2354 make_cleanup_bfd_close.
2355 * defs.h (make_cleanup_bfd_unref): Rename from
2356 make_cleanup_bfd_close.
2357 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2358 (bfd_openw_with_cleanup): Update.
2359 * corelow.c (core_open): Update.
2360 * dsrec.c (load_srec): Update.
2361 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2362 * remote-m32r-sdi.c (m32r_load): Update.
2363 * remote-mips.c (mips_load_srec): Update.
2364 (pmon_load_fast): Update.
2365 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2367 (darwin_bfd_open): Update.
2368 * solib.c (solib_bfd_fopen): Update.
2369 * symfile-mem.c (symbol_file_add_from_memory): Update.
2370 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2371 (symfile_bfd_open): Update.
2372 (generic_load): Update.
2374 2012-07-18 Tom Tromey <tromey@redhat.com>
2376 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2377 (pmon_load_fast): Likewise.
2378 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2379 (m32r_upload_command): Likewise.
2380 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2381 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2382 Use make_cleanup_bfd_close.
2384 2012-07-18 Tom Tromey <tromey@redhat.com>
2386 * symfile.c (symfile_bfd_open): Don't copy name. Call
2387 gdb_bfd_stash_filename.
2388 (load_command): Open the new BFD before freeing the old.
2389 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2390 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2391 Call gdb_bfd_stash_filename.
2392 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2393 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2394 gdb_bfd_stash_filename.
2395 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2396 Free found_pathname.
2397 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2398 gdb_bfd_stash_filename.
2399 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2400 * machoread.c (macho_add_oso_symfile): Call
2401 gdb_bfd_stash_filename.
2402 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2403 gdb_bfd_stash_filename.
2404 (macho_check_dsym): Don't copy filename. Call
2405 gdb_bfd_stash_filename.
2406 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2407 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2408 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2409 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2410 * exec.c (exec_close): Don't free the BFD's filename.
2411 (exec_file_attach): Don't copy the filename. Call
2412 gdb_bfd_stash_filename.
2413 * corelow.c (core_close): Don't free the BFD's filename.
2414 (core_open): Call gdb_bfd_stash_filename.
2415 * corefile.c (reopen_exec_file): Remove #if 0 code.
2416 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2418 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2420 2012-07-18 Tom Tromey <tromey@redhat.com>
2422 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2424 (free_dwo_file): Use gdb_bfd_unref.
2425 * cli/cli-dump.c: Include gdb_bfd.h.
2426 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2427 (bfd_openr_with_cleanup): Likewise.
2428 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2430 * utils.c: Include gdb_bfd.h.
2431 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2432 * symfile.c: Include gdb_bfd.h.
2433 (separate_debug_file_exists): Use gdb_bfd_unref.
2434 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2435 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2436 (generic_load): Use gdb_bfd_ref.
2437 (reread_symbols): Use gdb_bfd_unref.
2438 * symfile-mem.c: Include gdb_bfd.h.
2439 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2440 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2441 * solib.c: Include gdb_bfd.h.
2442 (solib_bfd_fopen): Use gdb_bfd_ref.
2443 (solib_bfd_open): Use gdb_bfd_unref.
2444 (free_so_symbols): Use gdb_bfd_unref.
2445 (reload_shared_libraries_1): Use gdb_bfd_unref.
2446 * solib-spu.c: Include gdb_bfd.h.
2447 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2448 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2450 * solib-frv.c: Include gdb_bfd.h.
2451 (enable_break2): Use gdb_bfd_unref.
2452 * solib-dsbt.c: Include gdb_bfd.h.
2453 (enable_break2): Use gdb_bfd_unref.
2454 * solib-darwin.c: Include gdb_bfd.h.
2455 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2457 (darwin_bfd_open): Use gdb_bfd_unref.
2458 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2459 * remote-mips.c: Include gdb_bfd.h.
2460 (mips_load_srec): Use gdb_bfd_ref.
2461 (pmon_load_fast): Use gdb_bfd_ref.
2462 * remote-m32r-sdi.c: Include gdb_bfd.h.
2463 (m32r_load): Use gdb_bfd_ref.
2464 * record.c: Include gdb_bfd.h.
2465 (record_save_cleanups): Use gdb_bfd_unref.
2466 (cmd_record_save): Use gdb_bfd_unref.
2467 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2469 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2470 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2471 * objfiles.c: Include gdb_bfd.h.
2472 (free_objfile): Use gdb_bfd_unref.
2473 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2475 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2476 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2477 (macho_check_dsym): Likewise.
2478 * m32r-rom.c: Include gdb_bfd.h.
2479 (m32r_load): Use gdb_bfd_ref.
2480 (m32r_upload_command): Use gdb_bfd_ref.
2481 * jit.c: Include gdb_bfd.h.
2482 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2483 * gdb_bfd.h: New file.
2484 * gdb_bfd.c: New file.
2485 * gcore.c: Include gdb_bfd.h.
2486 (create_gcore_bfd): Use gdb_bfd_ref.
2487 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2488 (gcore_command): Use gdb_bfd_unref.
2489 * exec.c: Include gdb_bfd.h.
2490 (exec_close): Use gdb_bfd_unref.
2491 (exec_close_1): Use gdb_bfd_unref.
2492 (exec_file_attach): Use gdb_bfd_ref.
2493 * elfread.c: Include gdb_bfd.h.
2494 (build_id_verify): Use gdb_bfd_unref.
2495 * dsrec.c: Include gdb_bfd.h.
2496 (load_srec): Use gdb_bfd_ref.
2497 * corelow.c: Include gdb_bfd.h.
2498 (core_close): Use gdb_bfd_unref.
2499 (core_open): Use gdb_bfd_ref.
2500 * bfd-target.c: Include gdb_bfd.h.
2501 (target_bfd_xclose): Use gdb_bfd_unref.
2502 (target_bfd_reopen): Use gdb_bfd_ref.
2503 * Makefile.in (SFILES): Add gdb_bfd.c.
2504 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2505 (COMMON_OBS): Add gdb_bfd.o.
2507 2012-07-18 Keith Seitz <keiths@redhat.com>
2509 * breakpoint.c (find_condition_and_thread): Initialize
2511 (create_breakpiont): find_condition_and_thread will now
2512 initialize COND_STRING, THREAD, and REST (and TASK).
2513 (addr_string_to_sals): Likewise.
2515 2012-07-18 Pedro Alves <palves@redhat.com>
2517 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2518 Pull the single step breakpoints out of the target.
2520 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2522 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2523 * stap-probe.c (compile_probe_arg): Likewise.
2525 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2527 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2528 (elf_compile_to_ax): Likewise.
2529 * infrun.c (insert_exception_resume_from_probe): Likewise.
2530 (check_exception_resume): Remove `objfile' variable.
2531 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2532 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2533 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2534 (compare_entries): Rename to...
2535 (compare_probes): ...this. Adjust function to work with
2536 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2538 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2540 (print_ui_out_info): Adjust argument to be `struct probe *'.
2541 (info_probes_for_ops): Adjust internal computations to use
2543 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2544 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2545 gen_info_probes_table_values>: Remove `objfile' argument.
2546 (struct probe) <objfile>: New field.
2547 (find_probe_by_pc): Remove `objfile' argument.
2548 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2549 (stap_get_probe_argument_count): Likewise.
2550 (stap_get_arg): Likewise.
2551 (stap_evaluate_probe_argument): Likewise.
2552 (stap_compile_to_ax): Likewise.
2553 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2554 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2555 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2556 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2557 sym_compile_to_ax>: Likewise.
2559 2012-07-18 Terry Guo <terry.guo@arm.com>
2562 * defs.h (GDB_MI_MSG_WIDTH): New.
2563 * ser_base (ser_base_read_error_fd): New function.
2564 (do_ser_base_readchar): Poll error file descriptor as well as
2566 (generic_readchar): Refactor error handling.
2568 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2570 * NEWS: Create a new section for the next release branch.
2571 Rename the section of the current branch, now that it has
2574 2012-07-18 Joel Brobecker <brobecker@adacore.com>
2576 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2577 * version.in: Bump version to 7.5.50.20120718-cvs.
2579 2012-07-17 Keith Seitz <keiths@redhat.com>
2581 * linespec.c (linespec_parse_line_offset): Make parameter
2584 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 * f-valprint.c (info_common_command): New variable frame_id.
2588 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2589 * printcmd.c (print_variable_and_value): Extend function comment.
2590 Add comment for invalidated FRAME.
2591 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2592 FI form FRAME_ID after each print_frame_local_vars.
2593 (struct print_variable_and_value_data): Change frame to frame_id.
2594 (do_print_variable_and_value): New variable frame, initialize it from
2595 p->frame_id. Add comment for invalidated FRAME.
2596 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2597 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2598 for invalidated FRAME.
2600 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2601 Pedro Alves <palves@redhat.com>
2603 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2606 2012-07-16 Tom Tromey <tromey@redhat.com>
2608 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2610 2012-07-15 Doug Evans <dje@google.com>
2612 * dwarf2read.c (stmt_list_hash): New struct.
2613 (type_unit_group): Embed "per_cu" member, remove pointer.
2614 New union member "t", move member "tus" into it, all uses updated.
2615 New member "hash", replaces member "line_offset, all uses updated.
2616 (quick_file_names): Replace member "offset" with "hash", all uses
2618 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2619 (hash_file_name_entry, eq_file_name_entry): Call them.
2620 (hash_type_unit_group, eq_type_unit_group): Ditto.
2621 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2622 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2623 (dw2_get_file_names): Update.
2624 (create_type_unit_group): Replace "per_cu" arg with "cu".
2625 All callers updated. Fix "quick" (.gdb_index) handling.
2626 (get_type_unit_group): Replace "per_cu" arg with "cu".
2627 All callers updated.
2628 (build_type_unit_groups): Don't reset tu_stats.
2630 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2631 "tab_cur_size". Change member "tab" to be a htab_t.
2632 (create_filename_seen_cache): Update.
2633 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2634 (filename_seen): Update.
2636 2012-07-13 Doug Evans <dje@google.com>
2638 * symtab.c (filename_seen): Update comment.
2640 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2641 Doug Evans <dje@google.com>
2643 * buildsym.c (end_symtab_1): Split it to ...
2644 (end_symtab_get_static_block): ... this ...
2645 (end_symtab_from_static_block): ... and this function.
2646 (end_symtab, end_expandable_symtab): Call them.
2647 * buildsym.h (end_symtab_get_static_block)
2648 (end_symtab_from_static_block): New declarations.
2649 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2650 Set its valid CU ranges.
2652 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2654 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2655 DW_OP_GNU_parameter_ref.
2657 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2659 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2660 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2662 2012-07-13 Doug Evans <dje@google.com>
2664 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2665 (filename_seen_cache): New struct.
2666 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2667 (create_filename_seen_cache): New function.
2668 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2669 (filename_seen): Delete arg "first". New arg "cache". All callers
2671 (output_source_filename_data): New struct.
2672 (output_source_filename): Delete arg "first". New arg "data".
2673 All callers updated.
2674 (sources_info): Delete local "first". New locals "data", "cleanups".
2675 Rewrite to use filename_seen_cache.
2676 (add_partial_filename_data): Delete member "first". New member
2677 "filename_seen_cache". All uses updated.
2678 (make_source_files_completion_list): Rewrite to use
2679 filename_seen_cache.
2681 2012-07-12 Doug Evans <dje@google.com>
2683 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2685 2012-07-10 Doug Evans <dje@google.com>
2688 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2689 all_type_unit_groups, type_unit_groups, tu_stats.
2690 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2691 All uses updated. Add type_unit_group to union "s".
2692 (type_unit_group): New struct.
2693 (IS_TYPE_UNIT_GROUP): New macro.
2694 (abbrev_table): Delete unused member "section".
2695 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2696 (dw2_get_cu): Assert not used with type_unit_group.
2697 (dw2_get_primary_cu): New function.
2698 (dw2_build_type_unit_groups_reader): New function.
2699 (dw2_build_type_unit_groups): New function.
2700 (dw2_get_file_names): Assert not called on type units.
2701 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2702 Redo loop to iterate over type unit groups instead of type units.
2703 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2704 (read_abbrev_offset): New function.
2705 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2707 (create_partial_symtab): New function.
2708 (process_psymtab_comp_unit_reader): Assert not used with type units.
2709 Call create_partial_symtab.
2710 (process_psymtab_type_unit): Delete.
2711 (hash_type_unit_group, eq_type_unit_group): New functions.
2712 (allocate_type_unit_groups_table): New function.
2713 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2714 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2715 (create_type_unit_group, get_type_unit_group): New functions.
2716 (tu_abbrev_offset): New struct.
2717 (sort_tu_by_abbrev_offset): New function.
2718 (add_type_unit_group_to_table): New function.
2719 (build_type_unit_groups): New function.
2720 (build_type_psymtabs_reader): New function.
2721 (build_type_psymtab_dependencies): New function.
2722 (build_type_psymtabs): Rewrite.
2723 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2724 is seen in a type unit.
2725 (process_queue): Move symtab expansion debugging printfs here.
2726 Call process_full_type_unit for type units.
2727 (compute_symtab_includes): Assert not called for type units.
2728 (process_cu_includes): Don't call compute_symtab_includes for
2730 (process_full_type_unit): New function.
2731 (process_imported_unit_die): Flag an error if called for type units.
2732 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2733 updated. Assert not called for type units.
2734 (read_file_scope): Call dwarf2_start_symtab.
2735 (setup_type_unit_groups): New function.
2736 (read_type_unit_scope): Rewrite.
2737 (abbrev_table_read_table): Initialize abbrev_table->offset.
2738 (abbrev_table_free_cleanup): New function.
2739 (dwarf2_start_symtab): New function.
2740 (load_full_type_unit): Assert not called for type unit groups.
2741 * buildsym.c (finish_block_internal): New arg "expandable".
2742 All callers updated.
2743 (start_symtab): Move most contents to ...
2744 (restart_symtab): ... here. New function.
2745 (reset_symtab_globals): New function.
2746 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2747 Call reset_symtab_globals.
2748 (end_symtab, end_expandable_symtab): New functions.
2749 (set_missing_symtab, augment_type_symtab): New functions.
2750 * buildsym.h (end_expandable_symtab): Declare.
2751 (augment_type_symtab, restart_symtab): Declare.
2752 * psympriv.h (struct partial_symtab): New member "anonymous".
2753 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2755 (read_psymtabs_with_filename): Ditto.
2756 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2757 (expand_symtabs_matching_via_partial): Ditto.
2758 (dump_psymtab): Update.
2759 * dictionary.c (dict_add_pending): New function.
2760 * dictionary.h (dict_add_pending): Declare.
2762 2012-07-09 Doug Evans <dje@google.com>
2764 * buildsym.c (start_subfile): Remove unnecessary check for
2767 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2769 * dwarf2read.c (load_full_type_unit): Simplify.
2771 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2772 to struct signatured_type **. All uses updated.
2774 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2775 All callers updated.
2777 2012-07-09 Tom Tromey <tromey@redhat.com>
2779 * c-exp.y (check_parameter_typelist): New function.
2780 (parameter_typelist): Call it.
2781 * eval.c (make_params): Handle '(void)' case.
2782 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2785 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 * common/linux-ptrace.c: Include gdb_assert.h.
2788 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2789 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2791 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2793 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2794 * linux-nat.c (linux_child_post_attach)
2795 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2797 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2799 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2800 nptl <2.7 bug workaround for core files.
2802 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2804 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2806 (save_siginfo): Remove.
2807 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2809 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2810 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2811 * linux-nat.h (struct lwp_info): Remove field siginfo.
2813 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2815 Code cleanup for the next patch.
2816 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2817 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2819 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2820 (ia64_linux_stopped_data_address):
2821 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2823 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2824 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2825 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2828 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2831 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2832 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2834 2012-07-06 Tom Tromey <tromey@redhat.com>
2836 * c-exp.y (DOTDOTDOT): New token.
2837 (func_mod, exp): Use parameter_typelist.
2838 (parameter_typelist): New production.
2839 (tokentab3): Add "..." token.
2840 * eval.c (make_params): Handle varargs.
2841 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2844 2012-07-06 Tom Tromey <tromey@redhat.com>
2847 * c-exp.y (%union) <tvec>: Change type.
2848 (func_mod): Now uses <tvec> type.
2849 (exp): Update for tvec change.
2850 (direct_abs_decl): Push the typelist.
2851 (func_mod): Return a typelist.
2852 (nonempty_typelist): Update for tvec change.
2853 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2854 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2855 * parse.c (pop_type_list): New function.
2856 (push_typelist): New function.
2857 (follow_types): Handle tp_function_with_arguments.
2858 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2859 (enum type_pieces) <tp_function_with_arguments>: New constant.
2860 (union type_stack_elt) <typelist_val>: New field.
2861 (push_typelist): Declare.
2863 2012-07-06 Tom Tromey <tromey@redhat.com>
2865 * c-exp.y (%union) <type_stack>: New field.
2866 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2867 (ptr_operator_ts): New production.
2869 * parse.c (type_stack_reserve): New function.
2870 (check_type_stack_depth): Use it.
2871 (pop_type_stack, append_type_stack, push_type_stack)
2872 (get_type_stack, type_stack_cleanup): New functions.
2873 (follow_types): Handle tp_type_stack.
2874 (_initialize_parse): Simplify initialization.
2875 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2877 (union type_stack_elt) <stack_val>: New field.
2878 (get_type_stack, append_type_stack, push_type_stack)
2879 (type_stack_cleanup): Declare.
2881 2012-07-06 Tom Tromey <tromey@redhat.com>
2883 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2885 (struct type_stack): New.
2886 * parse.c (type_stack, type_stack_size, type_stack_depth):
2888 (type_stack): New global.
2889 (parse_exp_in_context, check_type_stack_depth)
2890 (insert_into_type_stack, insert_type, push_type, push_type_int)
2891 (insert_type_address_space, pop_type, pop_type_int)
2892 (_initialize_parse): Update.
2894 2012-07-06 Tom Tromey <tromey@redhat.com>
2896 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2899 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2901 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2903 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2904 Jan Kratochvil <jan.kratochvil@redhat.com>
2906 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2907 alloca with xmalloc/xfree.
2909 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2911 * MAINTAINERS (Write After Approval): Add myself to the list.
2913 2012-07-05 Doug Evans <dje@google.com>
2915 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2917 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2919 * ax-gdb.c (cli/cli-utils.h): New include.
2920 (linespec.h): Ditto.
2921 (agent_eval_command_one): New function.
2922 (agent_command_1): Ditto.
2923 (agent_command): Call function agent_command_1.
2924 (agent_eval_command): Ditto.
2925 (_initialize_ax_gdb): Change help for "maint agent"
2926 and "maint agent-eval".
2928 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2930 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2931 * cli/cli-utils.c (check_for_argument): New function.
2932 * cli/cli-utils.h (check_for_argument): Ditto.
2934 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2936 * NEWS: Mention x32 ABI support.
2938 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2940 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2941 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2943 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2944 and pc_regnum_from_eax to -1. Update SP regnum from
2945 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2948 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2951 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2953 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2954 * dwarf2expr.h: Include gdbtypes.h.
2955 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2956 these forward declarations.
2957 (cu_offset, sect_offset): Move these ...
2958 * gdbtypes.h: Remove include dwarf2expr.h.
2959 (cu_offset, sect_offset): ... here.
2961 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2963 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2964 (amd64_linux_sigtramp_code): This.
2965 (amd64_x32_linux_sigtramp_code): New.
2966 (LINUX_SIGTRAMP_LEN): Updated.
2967 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2969 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2973 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2975 * config.in: Regenerate.
2976 * configure: Regenerate.
2977 * configure.ac: Remove check for gnu/libc-version.h.
2978 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2980 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2981 variables libc_version, libc_major and libc_minor. Replace sscanf by
2982 inferior_has_bug. Extend the comment.
2984 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2986 * linux-thread-db.c (inferior_has_bug): New function.
2987 (thread_db_find_new_threads_silently): Return boolean as checked by
2988 inferior_has_bug, describe it in the comments.
2989 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2990 earlier. Abort the initialization if it returned non-zero.
2991 (thread_db_new_objfile): Exclude debug files.
2992 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2995 2012-07-02 Doug Evans <dje@google.com>
2997 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2998 related to queue management.
3000 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3001 instead of "debug dwarf2-die" in debugging printfs.
3002 (create_debug_info_hash_table_reader): Ditto.
3003 (create_debug_info_hash_table): Ditto.
3004 (init_dwo_file): Ditto.
3005 (init_cutu_and_read_dies): Add debugging printf.
3006 (init_cutu_and_read_dies_no_follow): Ditto.
3007 (process_psymtab_comp_unit_reader): Ditto.
3009 2012-07-02 Stan Shebs <stan@codesourcery.com>
3011 Add target-side support for dynamic printf.
3012 * NEWS: Mention the additional style.
3013 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3014 (struct bp_location): New field cmd_bytecode.
3015 * breakpoint.c: Include format.h.
3016 (disconnected_dprintf): New global.
3017 (parse_cmd_to_aexpr): New function.
3018 (build_target_command_list): New function.
3019 (insert_bp_location): Call it.
3020 (remove_breakpoints_pid): Skip dprintf breakpoints.
3021 (print_one_breakpoint_location): Ditto.
3022 (dprintf_style_agent): New global.
3023 (dprintf_style_enums): Add dprintf_style_agent.
3024 (update_dprintf_command_list): Add agent case.
3025 (agent_printf_command): New function.
3026 (_initialize_breakpoint): Add new commands.
3027 * common/ax.def (printf): New bytecode.
3028 * ax.h (ax_string): Declare.
3029 * ax-gdb.h (gen_printf): Declare.
3030 * ax-gdb.c: Include cli-utils.h, format.h.
3031 (gen_printf): New function.
3032 (maint_agent_print_command): New function.
3033 (_initialize_ax_gdb): Add maint agent-printf command.
3034 * ax-general.c (ax_string): New function.
3035 (ax_print): Add printf disassembly.
3036 * Makefile.in (SFILES): Add format.c
3037 (COMMON_OBS): Add format.o.
3038 * common/format.h: New file.
3039 * common/format.c: New file.
3040 * printcmd.c: Include format.h.
3041 (ui_printf): Call parse_format_string.
3042 * remote.c (remote_state): New field breakpoint_commands.
3043 (PACKET_BreakpointCommands): New enum.
3044 (remote_breakpoint_commands_feature): New function.
3045 (remote_protocol_features): Add new BreakpointCommands entry.
3046 (remote_can_run_breakpoint_commands): New function.
3047 (remote_add_target_side_commands): New function.
3048 (remote_insert_breakpoint): Call it.
3049 (remote_insert_hw_breakpoint): Ditto.
3050 (_initialize_remote): Add new packet configuration for
3051 target-side breakpoint commands.
3052 * target.h (struct target_ops): New field
3053 to_can_run_breakpoint_commands.
3054 (target_can_run_breakpoint_commands): New macro.
3055 * target.c (update_current_target): Handle
3056 to_can_run_breakpoint_commands.
3058 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3060 Execute -ix and -iex only after system and user gdbinit files.
3061 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3062 processing down after gdbinit files.
3064 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3066 Add fnmatch-gnu module.
3067 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3068 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3069 * gnulib/aclocal.m4: Regenerate.
3070 * gnulib/config.in: Regenerate.
3071 * gnulib/configure: Regenerate.
3072 * gnulib/import/dummy.c: Remove.
3073 * gnulib/import/Makefile.am: Regenerate.
3074 * gnulib/import/Makefile.in: Likewise.
3075 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3076 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3077 * gnulib/import/alloca.c: New file.
3078 * gnulib/import/alloca.in.h: Likewise.
3079 * gnulib/import/config.charset: Likewise.
3080 * gnulib/import/fnmatch.c: Likewise.
3081 * gnulib/import/fnmatch.in.h: Likewise.
3082 * gnulib/import/fnmatch_loop.c: Likewise.
3083 * gnulib/import/localcharset.c: Likewise.
3084 * gnulib/import/localcharset.h: Likewise.
3085 * gnulib/import/m4/alloca.m4: Likewise.
3086 * gnulib/import/m4/codeset.m4: Likewise.
3087 * gnulib/import/m4/configmake.m4: Likewise.
3088 * gnulib/import/m4/fcntl-o.m4: Likewise.
3089 * gnulib/import/m4/fnmatch.m4: Likewise.
3090 * gnulib/import/m4/glibc21.m4: Likewise.
3091 * gnulib/import/m4/localcharset.m4: Likewise.
3092 * gnulib/import/m4/locale-fr.m4: Likewise.
3093 * gnulib/import/m4/locale-ja.m4: Likewise.
3094 * gnulib/import/m4/locale-zh.m4: Likewise.
3095 * gnulib/import/m4/mbrtowc.m4: Likewise.
3096 * gnulib/import/m4/mbsinit.m4: Likewise.
3097 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3098 * gnulib/import/m4/mbstate_t.m4: Likewise.
3099 * gnulib/import/m4/stdbool.m4: Likewise.
3100 * gnulib/import/m4/wchar_h.m4: Likewise.
3101 * gnulib/import/m4/wctype_h.m4: Likewise.
3102 * gnulib/import/m4/wint_t.m4: Likewise.
3103 * gnulib/import/mbrtowc.c: Likewise.
3104 * gnulib/import/mbsinit.c: Likewise.
3105 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3106 * gnulib/import/mbsrtowcs-state.c: Likewise.
3107 * gnulib/import/mbsrtowcs.c: Likewise.
3108 * gnulib/import/ref-add.sin: Likewise.
3109 * gnulib/import/ref-del.sin: Likewise.
3110 * gnulib/import/stdbool.in.h: Likewise.
3111 * gnulib/import/streq.h: Likewise.
3112 * gnulib/import/strnlen1.c: Likewise.
3113 * gnulib/import/strnlen1.h: Likewise.
3114 * gnulib/import/verify.h: Likewise.
3115 * gnulib/import/wchar.in.h: Likewise.
3116 * gnulib/import/wctype.in.h: Likewise.
3118 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3120 Support shell wildcards for 'set auto-load safe-path'.
3121 * auto-load.c: Include fnmatch.h.
3122 (filename_is_in_dir): Rename to ...
3123 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3124 it. Update function comment. Rename dir_len to pattern_len. New
3125 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3126 messages. Use gdb_filename_fnmatch.
3127 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3129 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3130 * defs.h (gdb_filename_fnmatch): New declaration.
3131 * utils.c: Include fnmatch.h.
3132 (gdb_filename_fnmatch): New function.
3134 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3136 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3137 `-probe' and `-probe-stap' options.
3139 2012-07-01 Yao Qi <yao@codesourcery.com>
3141 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3142 always_inserted_off, and always_inserted_enums.
3143 Change always_inserted_mode's type to 'enum auto_boolean'.
3144 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3146 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3147 of add_setshow_enum_cmd.
3148 * infrun.c: Remove can_use_displaced_stepping_auto,
3149 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3150 can_use_displaced_stepping_enum.
3151 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3152 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3153 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3154 add_setshow_enum_cmd.
3156 2012-06-30 Doug Evans <dje@google.com>
3158 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3159 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3160 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3162 2012-06-29 Doug Evans <dje@google.com>
3164 * linespec.c: #include "stack.h".
3165 (decode_line_with_current_source): Moved here from symtab.c and
3166 renamed from decode_line_spec. All callers updated.
3167 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3168 renamed from decode_line_spec_1. All callers updated.
3169 * linespec.h (decode_line_with_current_source): Move declaration here
3170 from symtab.h and renamed from decode_line_spec.
3171 (decode_line_with_last_displayed): Move declaration here from symtab.h
3172 and renamed from decode_line_spec_1.
3173 * macrocmd.c: #include "linespec.h".
3174 * symtab.c: Remove #include "linespec.h".
3176 2012-06-28 Doug Evans <dje@google.com>
3178 * dwarf2read.c (get_cu_length): New function.
3179 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3180 (create_debug_types_hash_table): Ditto.
3181 (init_cutu_and_read_dies): Ditto.
3182 (init_cutu_and_read_dies_no_follow): Ditto.
3184 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3186 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3187 (struct abbrev_table): Define.
3188 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3190 (init_cutu_and_read_dies): Update.
3191 (abbrev_table_alloc_abbrev): New function. Replaces
3192 dwarf_alloc_abbrev. All callers updated.
3193 (abbrev_table_add_abbrev): New function.
3194 (abbrev_table_lookup_abbrev): New function. Replaces
3195 dwarf2_lookup_abbrev. All callers updated.
3196 (abbrev_table_read_table): New function. Contents moved here from
3197 dwarf2_read_abbrevs.
3198 (dwarf2_read_abbrevs): Call it.
3199 (abbrev_table_free): New function.
3200 (dwarf2_free_abbrev_table): Call it.
3202 2012-06-28 Stan Shebs <stan@codesourcery.com>
3204 * osdata.c (info_osdata_command): Filter out "Title" columns
3206 * common/linux-osdata.c (struct osdata_type): Add title field.
3207 (osdata_table): Add titles to each entry.
3208 (linux_command_xfer_osdata): Add a column for title data.
3210 2012-06-28 Stan Shebs <stan@codesourcery.com>
3212 Make logging work for MI.
3214 * interps.h (interp_set_logging_ftype): New typedef.
3215 (struct interp_procs): New field set_logging_proc.
3216 (current_interp_set_logging): Declare.
3217 * interps.c (current_interp_set_logging): New function.
3218 * cli/cli-logging.c: Include interps.h.
3219 (set_logging_redirect): Call current_interp_set_logging.
3220 (pop_output_files): Ditto.
3221 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3222 * mi/mi-console.h (mi_console_set_raw): Declare.
3223 * mi/mi-console.c (mi_console_set_raw): New function.
3224 * mi/mi-interp.c (saved_raw_stdout): New global.
3225 (mi_set_logging): New function.
3226 (_initialize_mi_interp): Add it to interp procs.
3228 2012-06-28 Doug Evans <dje@google.com>
3230 * symtab.c (lookup_symbol_aux_objfile): Use
3231 ALL_OBJFILE_PRIMARY_SYMTABS.
3233 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3235 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 * common/buffer.c: Include inttypes.h and stdint.h.
3238 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3240 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3241 Pedro Alves <palves@redhat.com>
3243 * gdbthread.h (ALL_THREADS): New macro.
3244 (thread_list): Declare.
3245 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3246 going, but instead fall through to the stepping handling.
3247 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3248 the passed in signal. Adjust debug output.
3249 (resume_callback): Rename to ...
3250 (linux_nat_resume_callback): ... this. Pass the thread's last
3251 stop signal, if in "pass" state.
3252 (linux_nat_resume): Adjust to rename.
3253 (stop_wait_callback): New assertion. Don't respawn signals;
3254 instead let the LWP remain with SIGNALLED set.
3255 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3256 * remote.c (append_pending_thread_resumptions): New.
3257 (remote_vcont_resume): Call it.
3258 * target.h (target_resume): Extend comment.
3260 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3262 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3264 2012-06-27 Doug Evans <dje@google.com>
3266 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3267 Delete have_addr_base, unused. All uses updated.
3268 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3269 (dwarf2_get_pc_bounds): Add ranges_base.
3270 (dwarf2_record_block_ranges): Ditto.
3272 2012-06-27 Tom Tromey <tromey@redhat.com>
3275 * varobj.c (varobj_create): Update.
3276 (varobj_set_value): Update.
3277 * tracepoint.c (validate_actionline): Update.
3278 (encode_actions_1): Update.
3279 * parse.c (parse_exp_1): Add 'pc' argument.
3280 (parse_exp_in_context): Add 'pc' argument. Change how
3281 expression_context_pc is set.
3282 (parse_expression): Update.
3283 (parse_field_expression): Update.
3284 * expression.h (parse_exp_1): Update.
3285 * eval.c (parse_to_comma_and_eval): Update.
3286 * breakpoint.c (set_breakpoint_condition): Update.
3287 (update_watchpoint): Update.
3288 (init_breakpoint_sal): Update
3289 (find_condition_and_thread): Update.
3290 (watch_command_1): Update.
3291 (update_breakpoint_locations): Update.
3292 * ada-lang.c (ada_read_renaming_var_value): Update.
3293 (create_excep_cond_exprs): Update.
3295 2012-06-27 Doug Evans <dje@google.com>
3297 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3300 2012-06-26 Doug Evans <dje@google.com>
3302 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3304 (error_check_comp_unit_head): New arg abbrev_section. All callers
3306 (read_and_check_comp_unit_head): Ditto.
3307 (read_and_check_type_unit_head): Ditto.
3309 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3311 New attribute 'last' for gdb.Symtab_and_line.
3312 * NEWS (Python Scripting): Add entry about the new attribute.
3313 * python/py-symtab.c (salpy_get_last): New function which
3314 implements the get method for the 'last' attribute of
3315 gdb.Symtab_and_line.
3316 (sal_object_getset): Add entry for the 'last' attribute.
3318 2012-06-26 Doug Evans <dje@google.com>
3320 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3321 (dwo_sections): Add macinfo, macro.
3322 (dwarf2_locate_dwo_sections): Watch for macro sections.
3323 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3324 All callers updated. Handle DWO files.
3326 * NEWS: Mention new options "set debug dwarf2-read" and
3327 "set debug symtab-create".
3328 * dwarf2read.c (dwarf2_read_debug): New static global.
3329 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3330 (process_queue): Ditto.
3331 (process_full_comp_unit): Ditto.
3332 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3333 * elfread.c (elf_symfile_read): Add debugging printf.
3334 * minsyms.c (install_minimal_symbols): Ditto.
3335 * psymtab.c (allocate_psymtab): Ditto.
3336 * symfile.c (allocate_symtab): Ditto.
3337 * symtab.c (symtab_create_debug): New global.
3338 (_initialize_symtab): Add new option "set debug symtab-create".
3339 * symtab.h (symtab_create_debug): Declare.
3341 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3342 (lookup_dwo_type_unit): Ditto.
3344 2012-06-26 Roland McGrath <roland@hack.frob.com>
3345 H.J. Lu <hongjiu.lu@intel.com>
3347 * amd64-linux-nat.c: Include <sys/user.h>.
3348 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3349 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3350 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3352 * configure.ac: Check if the fs_base and gs_base members of
3353 `struct user_regs_struct' exist.
3354 * config.in: Regenerated.
3355 * configure: Likewise.
3357 2012-06-25 Michael Eager <eager@eagercon.com>
3360 * python/python.c (gdbpy_write): Check for interrupted output.
3362 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3364 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3365 register as a stack alignment in ARM mode.
3367 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3369 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3370 * gnulib/config.in: Regenerate.
3371 * gnulib/configure: Likewise.
3372 * gnulib/import/m4/extensions.m4: Update it.
3373 * gnulib/import/m4/gnulib-common.m4: Likewise.
3374 * gnulib/import/m4/memmem.m4: Likewise.
3375 * gnulib/import/m4/mmap-anon.m4: Likewise.
3376 * gnulib/import/m4/multiarch.m4: Likewise.
3377 * gnulib/import/stdint.in.h: Likewise.
3379 2012-06-24 Yao Qi <yao@codesourcery.com>
3381 * corefile.c (write_memory_with_notification): New.
3382 * gdbcore.h: Declare write_memory_with_notification.
3383 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3384 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3385 * valops.c (value_assign): Likewise.
3386 * python/py-inferior.c (infpy_write_memory): Call
3387 'write_memory_with_notification'.
3389 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3391 * cc-with-index.sh: Use also -ex "set auto-load no".
3393 2012-06-23 Doug Evans <dje@google.com>
3396 * NEWS: Document additions to .gdb_index.
3397 * dwarf2read.c: #include "gdb/gdb-index.h".
3398 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3399 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3400 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3401 (dwarf2_read_index): Recognize version 7.
3402 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3403 block_kind, domain): All callers updated.
3404 (dw2_find_symbol_file): Handle new index CU values.
3405 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3406 (add_index_entry): New args is_static, kind. All callers updated.
3407 (offset_type_compare, uniquify_cu_indices): New functions
3408 (symbol_kind): New function.
3409 (write_psymtabs_to_index): Remove duplicate CU values.
3410 (write_psymtabs_to_index): Write .gdb_index version 7.
3412 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3414 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3415 * configure: Regenerate.
3417 2012-06-20 Yao Qi <yao@codesourcery.com>
3419 * python/py-inferior.c: Update comments of infpy_read_memory
3420 and infpy_write_memory.
3422 2012-06-19 Tom Tromey <tromey@redhat.com>
3425 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3426 (push_type_address_space): Remove.
3427 * parse.c (insert_into_type_stack): New function.
3428 (insert_type): Likewise.
3429 (insert_type_address_space): Rename from push_type_address_space.
3430 Insert tp_space_identifier.
3431 * c-exp.y (ptr_operator): New production.
3432 (abs_decl): Use ptr_operator.
3433 (space_identifier): Call insert_type_address_space.
3434 (ptype): Don't use const_or_volatile_or_space_identifier.
3435 (const_or_volatile_noopt): Call insert_type.
3436 (conversion_type_id, conversion_declarator): New productions.
3437 (operator): Use conversion_type_id.
3439 2012-06-18 Doug Evans <dje@google.com>
3441 * symtab.h (minimal_symbol): New member created_by_gdb.
3442 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3444 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3445 (search_symbols): Call it instead of lookup_symbol.
3446 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3448 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3449 Adjust address for DW_OP_GNU_addr_index.
3450 * dwarf2expr.h (dwarf_expr_context): Update comment.
3451 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3452 all callers updated. Handle TLS vars described with
3453 DW_OP_GNU_const_index.
3454 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3455 and DW_OP_GNU_const_index.
3456 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3458 * block.c (find_block_in_blockvector): Make explicit the fact that we
3459 ignore GLOBAL_BLOCK.
3461 2012-06-18 Tom Tromey <tromey@redhat.com>
3463 * c-exp.y (operator): Remove trailing space after "delete" and
3466 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3467 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 Switch i386 and derived targets to ON_STACK.
3470 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3471 (amd64_dicos_init_abi): Remove its installment.
3472 * dicos-tdep.c (dicos_init_abi): Remove the
3473 set_gdbarch_call_dummy_location call. Update the comment here.
3474 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3475 (i386_dicos_init_abi): Remove its installment.
3476 * i386-tdep.c (i386_push_dummy_code): New function.
3477 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3478 i386_push_dummy_code.
3480 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3482 Remove stale dummy frames.
3483 * breakpoint.c: Include dummy-frame.h.
3484 (longjmp_breakpoint_ops): New variable.
3485 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3486 bp_longjmp_call_dummy.
3487 (bpstat_what, bptype_string, print_one_breakpoint_location)
3488 (init_bp_location): Support bp_longjmp_call_dummy.
3489 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3490 (set_longjmp_breakpoint_for_call_dummy)
3491 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3493 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3494 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3495 FIXME comment and extend the other comment for bp_call_dummy.
3496 (set_longjmp_breakpoint_for_call_dummy)
3497 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3498 * dummy-frame.c: Include gdbthread.h.
3499 (pop_dummy_frame_bpt): New function.
3500 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3501 (dummy_frame_discard): New function.
3502 (cleanup_dummy_frames): Update the comment about longjmps.
3503 * dummy-frame.h (dummy_frame_discard): New declaration.
3504 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3505 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3506 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3507 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3508 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3509 keep_going if IS_LONGJMP and there is no other reason to stop.
3511 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3513 * remote-sim.c (sim_command_completer): Initialize
3516 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3518 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3519 * dwarf2loc.c (call_site_parameter_matches): Support
3520 CALL_SITE_PARAMETER_PARAM_OFFSET.
3521 (needs_dwarf_reg_entry_value): Push stub value.
3522 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3523 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3524 * gdbtypes.h (enum call_site_parameter_kind): New item
3525 CALL_SITE_PARAMETER_PARAM_OFFSET.
3526 (struct call_site.parameter.u): New field param_offset.
3528 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3530 Code cleanup: Generalize call_site.parameter key.
3531 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3532 variable dwarf_reg. New variable kind_u. Update parameters to
3533 push_dwarf_reg_entry_value.
3534 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3535 * dwarf2expr.h (enum call_site_parameter_kind)
3536 (union call_site_parameter_u): Forward declarations.
3537 (struct dwarf_expr_context_funcs): Update parameters and their
3538 description for push_dwarf_reg_entry_value.
3539 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3540 * dwarf2loc.c (call_site_parameter_matches): New function.
3541 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3542 description. Use call_site_parameter_matches.
3543 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3544 Update parameters and their description.
3545 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3546 New variable kind_u. Adjust the caller for updated parameters.
3547 (needs_dwarf_reg_entry_value): Update parameters.
3548 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3549 instead of attr. Update for the changed fields of struct
3550 call_site_parameter.
3551 * gdbtypes.h: Include dwarf2expr.h.
3552 (enum call_site_parameter_kind): New.
3553 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3554 fb_offset into new union u.
3556 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3558 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3559 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3562 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3564 * amd64-linux-nat.c (compat_x32_clock_t): New.
3565 (compat_x32_siginfo_t): Likewise.
3566 (compat_x32_siginfo_from_siginfo): Likewise.
3567 (siginfo_from_compat_x32_siginfo): Likewise.
3568 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3569 and siginfo_from_compat_x32_siginfo for x32.
3571 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
3573 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3575 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3577 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3578 instead of gdbarch_ptr_bit.
3579 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3580 (amd64_supply_native_gregset): Likewise.
3581 (amd64_collect_native_gregset): Likewise.
3582 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3583 (amd64_supply_xsave): Likewise.
3584 (amd64_collect_fxsave): Likewise.
3585 (amd64_collect_xsave): Likewise.
3587 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3589 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3590 (amd64_linux_read_description): Check DS segment register for
3593 2012-06-15 Tom Tromey <tromey@redhat.com>
3595 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3596 init_cutu_and_read_dies.
3598 2012-06-15 Iain Sandoe <iain@codesourcery.com>
3600 * MAINTAINERS (Write After Approval): Add myself to the list.
3602 2012-06-15 Tom Tromey <tromey@redhat.com>
3604 * valops.c (value_find_oload_method_list): Now static.
3605 * value.h (value_find_oload_method_list): Don't declare.
3607 2012-06-15 Tom Tromey <tromey@redhat.com>
3609 * valops.c (find_overload_match): Use value_ind.
3611 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3613 * infrun.c (handle_inferior_event): Correct indentation.
3615 2012-06-14 Doug Evans <dje@google.com>
3617 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3618 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3620 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3621 updated. Handle DEBUG_LOC_START_LENGTH.
3622 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3623 (loclist_describe_location): Ditto.
3625 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3628 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3629 after hiding inline functions.
3631 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3633 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3634 _initialize_inf_ttrace.
3636 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3638 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3639 _initialize_hppa_hpux_nat.
3641 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3643 * remote-sim.c (sim_command_completer): Change type of return
3644 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3646 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3647 Jan Kratochvil <jan.kratochvil@redhat.com>
3650 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3651 stack on a 16-byte boundary.
3653 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3655 * jit.c (finalize_symtab): Set function's return type to 'void' by
3658 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3659 H.J. Lu <hongjiu.lu@intel.com>
3661 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3662 Move bits common to both the classic LP64 and the new x32 ILP32
3664 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3665 (amd64_x32_linux_init_abi): New function.
3666 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3669 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3670 * i386-tdep.c (i386_pseudo_register_name): Make public.
3671 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3672 * amd64-tdep.c (amd64_dword_names): Add "eip".
3673 (amd64_x32_pseudo_register_type): New function
3674 (amd64_x32_init_abi): New function.
3676 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3679 * inferior.h (struct inferior_suspend_state): Comment out.
3680 (struct inferior): Comment out the field suspend.
3681 * infrun.c (struct infcall_suspend_state): Comment out the field
3683 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3686 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3688 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3689 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3690 function comment. Return ERROR for unresolved cases. Implement
3691 returning proper NAME.
3692 (yylex): Accept also NAME from classify_inner_name.
3693 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3694 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3696 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3698 2012-06-13 Tom Tromey <tromey@redhat.com>
3700 * breakpoint.c (condition_completer): New function.
3701 (_initialize_breakpoint): Use it.
3702 * value.c (complete_internalvar): New function.
3703 * value.h (complete_internalvar): Declare.
3705 2012-06-13 Tom Tromey <tromey@redhat.com>
3707 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3708 * breakpoint.c (catch_syscall_completer): Return a VEC.
3709 * cli/cli-cmds.c (complete_command): Update.
3710 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3711 (complete_on_enum): Likewise.
3712 * command.h: Include gdb_vecs.h.
3713 (completer_ftype): Change return type.
3714 (complete_on_cmdlist, complete_on_enum): Likewise.
3715 * completer.c (noop_completer, filename_completer)
3716 (location_completer): Return a VEC.
3717 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3719 (expression_completer, complete_line_internal, complete_line)
3720 (command_completer): Return a VEC.
3721 (gdb_completion_word_break_characters, line_completion_function):
3723 * completer.h: Include gdb_vecs.h.
3724 (complete_line, noop_completer, filename_completer)
3725 (expression_completer, location_completer, command_completer):
3727 * f-lang.c (f_word_break_characters): Return a VEC.
3728 * interps.c (interpreter_completer): Return a VEC.
3729 * language.h (struct language_defn)
3730 <la_make_symbol_completion_list>: Return a VEC.
3731 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3732 * symtab.c (free_completion_list): Take a VEC.
3733 (return_val_size, return_val_index): Remove.
3734 (return_val): Now a VEC.
3735 (completion_list_add_name): Update.
3736 (default_make_symbol_completion_list_break_on)
3737 (default_make_symbol_completion_list, make_symbol_completion_list)
3738 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3740 (add_filename_to_list): Update.
3741 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3743 (maybe_add_partial_symtab_filename): Update.
3744 (make_source_files_completion_list): Return a VEC.
3745 * symtab.h (default_make_symbol_completion_list_break_on)
3746 (default_make_symbol_completion_list, make_symbol_completion_list)
3747 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3748 (make_source_files_completion_list): Update.
3750 2012-06-13 Tom Tromey <tromey@redhat.com>
3752 * breakpoint.c (add_catch_command): Use completer_ftype.
3753 * breakpoint.h: Include command.h.
3754 (add_catch_command): Use completer_ftype.
3755 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3756 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3757 Use completer_ftype.
3758 * command.h (completer_ftype): New typedef.
3759 (set_cmd_completer): Use it.
3760 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3763 2012-06-13 Pedro Alves <palves@redhat.com>
3765 Partial revert of previous change.
3767 * serial.c (scb_base): New global.
3768 (serial_for_fd): New.
3769 (serial_open, serial_fdopen_ops): Link new serial in open serials
3771 (do_serial_close): Unlink serial from the open serials chain.
3773 2012-06-12 Pedro Alves <palves@redhat.com>
3775 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3777 (prepare_for_detach): No longer context switch here in non-stop
3779 (fetch_inferior_event): Ditto.
3780 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3781 to the event thread before removing breakpoints. Switch to the
3782 event thread before inserting breakpoints and resuming.
3783 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3784 event thread before resuming.
3785 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3786 Switch to the event thread before removing breakpoints.
3788 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3790 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3791 special characters correctly for the Windows shells. See
3792 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3794 [!__MINGW32__]: Remove extra double quote character from special
3797 2012-06-11 Stan Shebs <stan@codesourcery.com>
3799 * ui-out.h: Remove #if 0 declarations.
3800 * ui-out.c: Remove #if 0 functions.
3802 2012-06-11 Pedro Alves <palves@redhat.com>
3804 * ser-base.c (run_async_handler_and_reschedule): New.
3805 (fd_event, push_event): Use it.
3806 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3807 reference count to 1.
3808 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3810 (serial_is_open, serial_ref, serial_unref): New.
3811 * serial.h (serial_open): Adjust comment.
3812 (serial_is_open): Declare.
3813 (serial_close): Adjust comment.
3814 (serial_ref, serial_unref) Declare.
3815 (struct serial): New field 'refcnt'.
3817 2012-06-11 Pedro Alves <palves@redhat.com>
3819 Remove #if 0'd "connect" command, and unnecessary associated
3820 refcounting and serial reuse bits.
3822 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3823 * serial.c (last_serial_opened): Delete.
3825 (serial_open): Adjust.
3826 (serial_for_fd): Delete.
3827 (serial_fdopen_ops, do_serial_close): Adjust.
3828 (serial_fdopen_ops): Adjust.
3830 2012-06-11 Pedro Alves <palves@redhat.com>
3832 * serial.c (do_serial_close): Remove early return when SCB is
3835 2012-06-11 Tom Tromey <tromey@redhat.com>
3837 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3839 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3841 Fix regression by the "ambiguous linespec" series.
3842 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3843 get_last_displayed_symtab and get_last_displayed_line and depending
3846 2012-06-11 Tom Tromey <tromey@redhat.com>
3848 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3849 (dw2_find_symbol_file): Use it.
3851 2012-06-11 Michael Eager <eager@eagercon.com>
3853 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3854 * mips-linux-tdep.h (mips_signals): New
3856 2012-06-11 Tom Tromey <tromey@redhat.com>
3858 * infrun.c (handle_inferior_event)
3859 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3861 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3862 exception logic in all cases. Update comments.
3863 (insert_longjmp_resume_breakpoint): Set the exception resume
3866 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3868 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3870 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3872 * valarith.c (binop_types_user_defined_p): Fix a typo.
3874 2012-06-08 Yao Qi <yao@codesourcery.com>
3875 Chung-Lin Tang <cltang@codesourcery.com>
3877 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3878 * arch-utils.h: Declare.
3879 * gdbarch.sh: Add return_in_first_hidden_param_p.
3880 * gdbarch.c, gdbarch.h: Regenerated.
3881 * infcall.c (call_function_by_hand): Call
3882 gdbarch_return_in_first_hidden_param_p instead of
3883 language_pass_by_reference.
3885 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3886 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3887 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3888 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3889 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3890 `cplus_return_struct_by_reference'.
3891 (tic6x_return_value): Handle language cplusplus.
3892 (tic6x_return_in_first_hidden_param_p): New.
3893 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3895 2012-06-07 Doug Evans <dje@google.com>
3897 * dwarf2read.c (dwarf2_cu): Add comment.
3899 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3901 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3903 (mips_eabi_push_dummy_call): Likewise.
3904 (mips_n32n64_push_dummy_call): Likewise.
3905 (mips_o32_push_dummy_call): Likewise.
3906 (mips_o64_push_dummy_call): Likewise.
3908 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3910 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3912 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3914 * mips-tdep.c (mips_pseudo_register_type): Use
3915 mips_float_register_p.
3917 2012-06-06 Pedro Alves <palves@redhat.com>
3919 * infrun.c (handle_inferior_event): Remove calls to
3920 reinit_frame_cache that follow a context_switch call.
3922 2012-06-06 Pedro Alves <palves@redhat.com>
3924 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3925 context_switch and remove stale comment.
3927 2012-06-06 Pedro Alves <palves@redhat.com>
3929 * infrun.c (struct execution_control_state): Remove
3930 `new_thread_event' field.
3931 (handle_inferior_event): Simplify new threads handling; don't
3932 resume the inferior if we find a new thread.
3934 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3936 * NEWS: Document the deprecation of SH's 'regs' command.
3937 * inferior.h (all_registers_info): Add function declaration.
3938 * sh-tdep.c (sh_show_regs): Remove variable.
3939 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3940 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3941 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3942 (sh_show_regs_command): Remove functions.
3943 (sh_gdbarch_init): Don't set sh_show_regs.
3944 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3945 'info all-registers'.
3946 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3947 (sh64_show_regs): Remove functions.
3948 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3950 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 * configure.ac: Move development=true below AC_INIT.
3953 * configure: Regenerate.
3955 2012-06-05 Stan Shebs <stan@codesourcery.com>
3957 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3960 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3962 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3963 argument as ssize_t.
3964 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3965 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3966 * target.c (target_read_stack, target_write_memory)
3967 (target_write_raw_memory): Likewise.
3968 * target.h (target_read_stack, target_write_memory)
3969 (target_write_raw_memory): Likewise.
3971 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3973 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3974 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3975 * target.c (target_read_memory): Change LEN to ssize_t.
3976 * target.h (target_read_memory): Change LEN to ssize_t.
3978 2012-06-05 Pedro Alves <palves@redhat.com>
3982 * breakpoint.c (until_break_command): Only fetch the selected
3983 frame after decode_line_1.
3985 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3987 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3988 event breakpoint at _start, __start or main if a program
3989 interpreter is not found.
3991 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3993 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3995 * windows-tdep.c: #include "objfiles.h".
3996 (windows_iterate_over_objfiles_in_search_order): New function.
3997 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3998 iterate_over_objfiles_in_search_order gdbarch method to
3999 windows_iterate_over_objfiles_in_search_order.
4000 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4002 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4004 * gdbarch.sh: Add generation of
4005 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4006 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4007 (iterate_over_objfiles_in_search_order): New gdbarch method.
4008 * gdbarch.h, gdbarch.c: Regenerate.
4009 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4011 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4013 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4014 out of lookup_symbol_aux_symtabs.
4015 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4016 call to lookup_symbol_aux_objfile.
4017 (struct global_sym_lookup_data): New type.
4018 (lookup_symbol_global_iterator_cb): New function.
4019 (lookup_symbol_global): Search for symbol using
4020 gdbarch_iterate_over_objfiles_in_search_order and
4021 lookup_symbol_global_iterator_cb.
4022 * findvar.c (struct minsym_lookup_data): New type.
4023 (minsym_lookup_iterator_cb): New function.
4024 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4025 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4026 and minsym_lookup_iterator_cb.
4028 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4030 Revert the following patch:
4031 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4032 try locating the symbol in the symbol's own objfile first, before
4033 extending the search to all objfiles.
4034 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4035 out of lookup_symbol_aux_symtabs.
4036 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4037 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4038 Do not search EXCLUDE_OBJFILE.
4039 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4040 (lookup_symbol_global): Search for matches in the block's objfile
4041 first, before searching all other objfiles.
4043 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4045 * breakpoint.c (find_condition_and_thread): Stop parsing
4046 as soon as the first invalid keyword is found.
4048 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4050 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4052 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4054 * config/djgpp/djcheck.sh: Add copyright header.
4056 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4058 * copyright.py (update_files, main): Fix path to update-copyright
4061 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4063 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4064 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4065 for which a reminder to update by hand is printed.
4067 2012-06-04 Doug Evans <dje@google.com>
4069 * buildsym.c (make_blockvector): Add comment.
4071 2012-06-04 Pedro Alves <palves@redhat.com>
4073 * arch-utils.c (default_gdb_signal_from_target): Delete.
4074 * arch-utils.h (default_gdb_signal_from_target): Delete.
4075 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4076 gdbarch_gdb_signal_from_target_p.
4077 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4079 * gdbarch.h: Regenerate.
4080 * gdbarch.c: Regenerate.
4082 2012-06-04 Pedro Alves <palves@redhat.com>
4084 * gdbarch.sh (gdb_signal_from_target): Mention that the
4085 implementation of the method must be host independent.
4086 * gdbarch.h: Regenerate.
4088 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4090 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4092 (target_read_memory_bfd): New function.
4093 (symbol_file_add_from_memory): Use it.
4095 2012-06-03 Doug Evans <dje@google.com>
4097 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4099 (basic_lookup_transparent_type): Ditto.
4101 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4102 (ALL_PRIMARY_SYMTABS): Use it.
4103 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4104 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4105 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4106 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4107 (basic_lookup_transparent_type): Ditto.
4109 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4111 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4112 it to optimize resolution of demangled name.
4114 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4116 * configure.ac (development): Define new variable.
4117 Call AC_CHECK_LIB for mcheck if $development.
4118 (ERROR_ON_WARNING): Enable it by default only if $development.
4119 * config.in: Regenerate.
4120 * configure: Regenerate.
4122 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4124 * target.c (target_read_memory): Make LEN argument as size_t.
4125 * target.h (target_read_memory): Likewise.
4127 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4129 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4131 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4133 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4134 BookE interface for PowerPC server processors if not available
4135 in the Linux Kernel.
4137 2012-05-31 Keith Seitz <keiths@redhat.com>
4139 * linespec.c (decode_objc): Add cleanup to free
4141 (find_linespec_symbols): Add cleanup to free CLASSES.
4142 * symfile.c (find_separate_debug_file_by_debuglink): Add
4143 cleanup to free DEBUGLINK.
4144 * ui-out.c (clear_header_list): No need to check if
4145 HEADER_NEXT.COLHDR is NULL.
4146 Free HEADER_NEXT.COL_NAME.
4148 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4150 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4153 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4155 * configure.host (gdb_host_cpu): Handle tilegx*.
4156 (gdb_host): Handle tilegx-*-linux*.
4157 * tilegx-linux-nat.c: New file.
4158 * config/tilegx/linux.mh: New file.
4160 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4162 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4163 tilegx-linux-tdep.o.
4164 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4165 tilegx-linux-tdep.c.
4166 * configure.tgt: Handle tilegx-*-linux*.
4167 * tilegx-tdep.h: New file.
4168 * tilegx-tdep.c: New file.
4169 * tilegx-linux-tdep.c: New file.
4170 * regformats/reg-tilegx.dat: New file.
4172 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4174 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4175 accounting of hw watchpoints on ppc.
4177 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4179 * source.c (openp): Expand tilde in path entries.
4181 2012-05-29 Doug Evans <dje@google.com>
4183 * buildsym.c (block_compar): Fix comment.
4184 (end_symtab): Fix and clarify some comments.
4186 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4187 cleanup_undefined_types.
4188 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4189 All callers updated.
4191 2012-05-29 Tom Tromey <tromey@redhat.com>
4193 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4195 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4196 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4198 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4201 2012-05-29 Tristan Gingold <gingold@adacore.com>
4203 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4204 (struct darwin_info): ... New struct.
4205 (solib_darwin_pspace_data): New variable.
4206 (darwin_pspace_data_cleanup): New function.
4207 (get_darwin_info): Likewise.
4208 (darwin_dyld_version_ok, darwin_load_image_infos)
4209 (darwin_solib_get_all_image_info_addr_at_init)
4210 (darwin_solib_read_all_image_info_addr): Add info argument.
4212 (darwin_current_sos): Use per pspace structure.
4213 (darwin_solib_create_inferior_hook): Likewise.
4214 (darwin_clear_solib): Likewise.
4215 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4217 2012-05-28 Pedro Alves <palves@redhat.com>
4219 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4220 block that uses them. Clear ecss before handling each event.
4222 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4224 * solib-svr4.c (svr4_current_sos): New comment on
4225 svr4_current_sos_via_xfer_libraries fall back.
4227 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4230 it as a fallback for TYPE_IS_OPAQUE.
4231 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4232 symbols for lookup_symbol.
4234 2012-05-24 John Steele Scott <toojays@toojays.net>
4236 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4237 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4238 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4239 (check_producer): ... this new function, which also checks for ICC
4240 and caches the result.
4241 (producer_is_icc): New function.
4242 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4245 2012-05-24 Pedro Alves <palves@redhat.com>
4249 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4250 (default_gdb_signal_to_target): ... this. Add comment.
4251 (default_gdb_signal_from_host): Rename to ...
4252 (default_gdb_signal_from_target): ... this. Add comment.
4253 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4254 (default_gdb_signal_to_target): ... this.
4255 (default_gdb_signal_from_host): Rename to ...
4256 (default_gdb_signal_from_target): ... this.
4257 * corelow.c (core_open): Adjust to naming change. Replace comment.
4258 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4259 (gdb_signal_from_target): ... this. Adjust to
4260 default_gdb_signal_from_host naming change. Extend comment.
4261 (gdb_signal_to_host): Rename to ...
4262 (gdb_signal_to_target): ... this. Adjust to
4263 default_gdb_signal_to_host naming change.
4264 * gdbarch.h, gdbarch.c: Renegerate.
4266 2012-05-24 Pedro Alves <palves@redhat.com>
4270 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4272 2012-05-24 Pedro Alves <palves@redhat.com>
4276 Replace target_signal with gdb_signal throughout.
4278 2012-05-24 Pedro Alves <palves@redhat.com>
4282 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4283 string, instead of reusing the va_list argument.
4285 2012-05-24 Tom Tromey <tromey@redhat.com>
4287 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4290 2012-05-23 Doug Evans <dje@google.com>
4292 * symtab.c (search_symbols): Formatting fixes.
4293 (print_symbol_info): Formatting fixes.
4295 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4296 int64_t change to leb128 API.
4297 (read_encoded_value, decode_frame_entry_1): Ditto.
4298 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4299 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4300 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4301 (execute_stack_op): Ditto.
4302 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4303 (safe_read_uleb128, safe_read_sleb128): Ditto.
4304 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4305 (dwarf2_compile_expr_to_ax): Ditto.
4306 (locexpr_describe_location_piece): Ditto.
4307 (disassemble_dwarf_expression): Ditto.
4308 (locexpr_describe_location_1): Ditto.
4310 2012-05-23 Stan Shebs <stan@codesourcery.com>
4311 Kwok Cheung Yeung <kcy@codesourcery.com>
4313 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4314 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4315 (mi-cmd-info.o): New rule.
4316 * osdata.h (info_osdata_command): New declaration.
4317 * osdata.c (info_osdata_command): Change to non-static.
4318 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4319 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4320 * mi/mi-cmd-info.c: New file.
4322 2012-05-23 Doug Evans <dje@google.com>
4324 * symtab.c (search_symbols): Pass NULL for file_matcher to
4325 expand_symtabs_matching if there are no files to match.
4327 * gdbtypes.c (lookup_typename): Simplify.
4329 2012-05-23 Pedro Alves <palves@redhat.com>
4331 * arch-utils.h (default_target_signal_to_host): Delete.
4332 * arch-utils.c (default_target_signal_to_host): Delete.
4333 * gdbarch.sh (target_signal_to_host): Remove.
4334 * gdbarch.h, gdbarch.c: Regenerate.
4336 2012-05-22 Doug Evans <dje@google.com>
4338 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4340 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4341 (execute_cfa_program): Update to match API of leb128 functions.
4342 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4344 (read_unsigned_leb128, read_signed_leb128): Delete.
4345 (read_initial_length): Change type of buf argument to
4347 (read_encoded_value): Update to match API of leb128 functions.
4348 (decode_frame_entry): Change result to "const gdb_byte *", and
4349 similarly for "start" parameter.
4350 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4351 (dwarf2_build_frame_info): Change local frame_ptr to
4353 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4354 read_uleb128, read_sleb128. All callers updated.
4355 (safe_skip_leb128): New function.
4356 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4357 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4358 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4359 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4360 read_uleb128, read_sleb128.
4361 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4362 (execute_stack_op): Update to match API of leb128 functions.
4363 * dwarf2expr.h: #include "leb128.h".
4364 (read_uleb128, read_sleb128): Delete.
4365 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4366 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4367 * dwarf2loc.c (debug_loc_kind): New enum.
4368 (decode_debug_loc_addresses): New function.
4369 (decode_debug_loc_dwo_addresses): New function.
4370 (dwarf2_find_location_expression): Rewrite.
4371 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4372 (locexpr_describe_location_piece): Ditto.
4373 (disassemble_dwarf_expression): Ditto.
4374 (locexpr_describe_location_1): Ditto.
4375 (loclist_describe_location): Rewrite.
4376 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4377 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4378 (dwarf2_section_buffer_overflow_complaint): Renamed from
4379 dwarf2_macros_too_long_complaint. All callers updated.
4380 (skip_leb128): Delete.
4381 (init_cu_die_reader): Initialize reader->buffer_end.
4382 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4383 (skip_form_bytes): New arg buffer_end. All callers updated.
4384 Replace call to skip_leb128 with gdb_skip_leb128.
4385 (skip_unknown_opcode): New arg mac_end. All callers updated.
4386 (fill_in_loclist_baton): Initialize baton->from_dwo.
4388 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4390 * mips-linux-nat.c (mips_linux_read_description): Use a more
4391 verbose error message.
4393 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4395 * NEWS: Add MIPS/Linux DSP support.
4396 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4397 (SIGCONTEXT_DSPCTL): New macro.
4398 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4399 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4400 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4401 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4402 (N64_SIGCONTEXT_HI3): Likewise.
4403 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4404 (N64_SIGCONTEXT_LO3): Likewise.
4405 (N64_SIGCONTEXT_DSPCTL): Likewise.
4406 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4407 (mips_linux_o32_sigframe_init): Handle DSP registers.
4408 (mips_linux_n32n64_sigframe_init): Likewise.
4410 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4412 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4415 2012-05-22 Pedro Alves <palves@redhat.com>
4417 * target.h (store_waitstatus): Move declaration ...
4418 * inf-child.h (store_waitstatus): ... here.
4419 * target.c: Move inclusion of gdb_wait.h, and ...
4420 (store_waitstatus): ... this ...
4421 * inf-child.c: ... here.
4422 * linux-nat.c: Include inf-child.h.
4423 * rs6000-nat.c: Include inf-child.h.
4424 * spu-linux-nat.c: Include inf-child.h.
4426 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4428 * tracepoint.c (start_tracing): Add missing i18n markup.
4429 (stop_tracing, set_trace_user): Ditto.
4430 (set_trace_notes, set_trace_stop_notes): Ditto.
4432 2012-05-21 Tom Tromey <tromey@redhat.com>
4435 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4437 * value.h (value_cast_pointers): Update.
4438 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4439 (value_cast): Update.
4440 (update_search_result): New function.
4441 (do_search_struct_field): New, from search_struct_field. Check
4442 for ambiguous results.
4443 (search_struct_field): Rewrite.
4444 * infcall.c (value_arg_coerce): Update.
4445 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4446 value_cast_pointers.
4447 * ada-lang.c (ada_convert_actual): Update.
4449 2012-05-21 Tom Tromey <tromey@redhat.com>
4451 * macroexp.c (macro_stringify): Terminate the string.
4453 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4457 * auto-load.c (auto_load_expand_dir_vars): New function.
4458 (auto_load_safe_path_vec_update): Use it, remove the
4459 substitute_path_component call thanks to it.
4460 (auto_load_objfile_script): Remove the debug_file_directory processing.
4461 Use auto_load_expand_dir_vars, remove the substitute_path_component
4463 * configure: Regenerate.
4464 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4465 path. Escape $ also for $debugdir.
4466 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4467 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4469 2012-05-20 Doug Evans <dje@google.com>
4471 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4472 before use. Check for symtab->includes == NULL before scanning it.
4474 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4476 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4478 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4480 * NEWS: Add microMIPS support and "set mips compression",
4481 "show mips compression" commands.
4482 * mips-tdep.h (mips_isa): New enum.
4483 (gdbarch_tdep): Add mips_isa.
4484 (mips_pc_is_mips16): Update prototype.
4485 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4486 * mips-tdep.c (mips_compression_mips16): New variable.
4487 (mips_compression_micromips): Likewise.
4488 (mips_compression_strings): Likewise.
4489 (mips_compression_string): Likewise.
4490 (is_mips16_isa, is_micromips_isa): New functions.
4491 (is_mips16_addr): Rename to...
4492 (is_compact_addr): ... this.
4493 (unmake_mips16_addr): Likewise to...
4494 (unmake_compact_addr): ... this.
4495 (make_mips16_addr): Likewise to...
4496 (make_compact_addr): ... this.
4497 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4499 (mips_elf_make_msymbol_special): Handle microMIPS code.
4500 (msymbol_is_special): Rename to...
4501 (msymbol_is_mips16): ... this.
4502 (mips_make_symbol_special, mips_pc_is_mips16): Update
4504 (msymbol_is_mips, msymbol_is_micromips): New functions.
4505 (mips16_to_32_reg): Rename to...
4506 (mips_reg3_to_reg): ... this.
4507 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4508 (mips_pc_isa): Likewise.
4509 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4511 (mips_fetch_instruction): Pass return status instead of printing
4512 an error message if requested. Handle microMIPS code. Bail out
4514 (micromips_op): New macro.
4515 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4516 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4517 (b6s4_op, b7s3_reg): Likewise.
4518 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4519 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4520 (mips_insn_size): New function.
4521 (mips32_next_pc): Update mips_fetch_instruction call.
4522 (micromips_relative_offset7): New function.
4523 (micromips_relative_offset10): Likewise.
4524 (micromips_relative_offset16): Likewise.
4525 (micromips_pc_insn_size): Likewise.
4526 (micromips_bc1_pc): Likewise.
4527 (micromips_next_pc): Likewise.
4528 (unpack_mips16): Update mips_fetch_instruction call.
4529 (extended_mips16_next_pc): Update according to change to
4531 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4533 (mips16_scan_prologue): Update mips_fetch_instruction call.
4534 Update according to change to mips16_to_32_reg.
4535 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4536 (mips_insn16_frame_base_sniffer): Likewise.
4537 (micromips_decode_imm9): New function.
4538 (micromips_scan_prologue): Likewise.
4539 (mips_micro_frame_cache): Likewise.
4540 (mips_micro_frame_this_id): Likewise.
4541 (mips_micro_frame_prev_register): Likewise.
4542 (mips_micro_frame_sniffer): Likewise.
4543 (mips_micro_frame_unwind): New variable.
4544 (mips_micro_frame_base_address): New function.
4545 (mips_micro_frame_base): New variable.
4546 (mips_micro_frame_base_sniffer): New function.
4547 (mips32_scan_prologue): Update mips_fetch_instruction call.
4548 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4549 rather than for MIPS16.
4550 (mips_insn32_frame_base_sniffer): Likewise.
4551 (mips_addr_bits_remove): Handle microMIPS code.
4552 (deal_with_atomic_sequence): Rename to...
4553 (mips_deal_with_atomic_sequence): ... this. Update the type
4554 of the variable used to hold an instruction. Remove the ISA bit
4555 check. Update mips_fetch_instruction call.
4556 (micromips_deal_with_atomic_sequence): New function.
4557 (deal_with_atomic_sequence): Likewise.
4558 (mips_about_to_return): Handle microMIPS code. Update
4559 mips_fetch_instruction call.
4560 (heuristic_proc_start): Check for the standard MIPS ISA rather
4561 than for MIPS16. Update mips_pc_is_mips16 and
4562 mips_fetch_instruction calls. Handle microMIPS code.
4563 (mips_push_dummy_code): Handle microMIPS code.
4564 (mips_eabi_push_dummy_call): Likewise.
4565 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4566 (mips_o64_push_dummy_call): Handle microMIPS code.
4567 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4568 (is_delayed): Remove function.
4569 (mips_single_step_through_delay): Replace the call to is_delayed
4570 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4571 Handle microMIPS code.
4572 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4574 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4576 (micromips_in_function_epilogue_p): New function.
4577 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4579 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4581 (gdb_print_insn_mips): Likewise.
4582 (mips_breakpoint_from_pc): Likewise.
4583 (mips_remote_breakpoint_from_pc): New function.
4584 (mips32_instruction_has_delay_slot): Simplify making use of the
4585 updated mips_fetch_instruction interface.
4586 (micromips_instruction_has_delay_slot): New function.
4587 (mips16_instruction_has_delay_slot): Simplify making use of the
4588 updated mips_fetch_instruction interface.
4589 (mips_adjust_breakpoint_address): Check for the standard MIPS
4590 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4591 calls. Handle microMIPS code.
4592 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4593 (mips_skip_trampoline_code): Handle microMIPS code.
4594 (global_mips_compression): New function.
4595 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4596 file flags. Register the microMIPS remote breakpoint handler
4597 and heuristic frame unwinder.
4598 (show_mips_compression): New function.
4599 (_initialize_mips_tdep): Add the "set mips compression" and
4600 "show mips compression" commands.
4602 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4607 * amd64-darwin-tdep.c:
4608 * arm-symbian-tdep.c:
4612 * bfin-linux-tdep.c:
4619 * dwarf2-frame-tailcall.c:
4648 * microblaze-tdep.c:
4649 * mips-linux-tdep.c:
4657 * python/py-finishbreakpoint.c:
4658 * python/py-inferior.c:
4659 * python/py-infthread.c:
4663 * remote-m32r-sdi.c:
4667 * rs6000-aix-tdep.c:
4693 * amd64-darwin-tdep.c:
4694 * arm-symbian-tdep.c:
4695 * arm-tdep.c: Delete unused variables.
4697 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4699 Rename $ddir to $datadir.
4700 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4701 * auto-load.c (auto_load_safe_path_vec_update)
4702 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4703 * configure: Regenerate.
4704 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4705 Likewise. Remove the 'use $ddir' help string.
4707 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4709 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4710 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4712 2012-05-18 Tom Tromey <tromey@redhat.com>
4715 * valprint.h (struct value_print_options) <symbol_print>: New
4717 * valprint.c (user_print_options): Add default for symbol_print.
4718 (show_symbol_print): New function.
4719 (generic_val_print): Respect symbol_print.
4720 (_initialize_valprint): Add "print symbol" setting.
4721 * f-valprint.c (f_val_print): Respect symbol_print.
4722 * c-valprint.c (c_val_print): Respect symbol_print.
4724 * printcmd.c (print_address_symbolic): Return int. Ignore some
4726 (print_address_demangle): Return int.
4727 * defs.h: (print_address_symbolic): Return int.
4728 * value.h (print_address_demangle): Return int.
4730 2012-05-18 Tom Tromey <tromey@redhat.com>
4732 * valprint.c (val_print_string): Don't print leading space.
4733 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4734 print space before string or vtbl.
4735 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4737 * jv-valprint.c (java_value_print): Print space before string.
4738 * go-valprint.c (print_go_string): Print space before string.
4739 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4740 space before string.
4741 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4742 space before string or vtbl.
4743 * auxv.c (fprint_target_auxv): Print space after address.
4745 2012-05-18 Tom Tromey <tromey@redhat.com>
4747 * printcmd.c (print_address_demangle): Remove special case for 0.
4749 2012-05-18 Tom Tromey <tromey@redhat.com>
4751 * printcmd.c (print_address_demangle): Add 'opts' argument.
4752 * p-valprint.c (pascal_val_print): Update.
4753 * jv-valprint.c (java_val_print): Update.
4755 * valprint.c (generic_val_print): Update.
4756 (print_function_pointer_address): Add 'options' argument. Remove
4757 'addressprint' argument. Update.
4758 * m2-valprint.c (print_unpacked_pointer): Update.
4759 * gnu-v3-abi.c (print_one_vtable): Update.
4760 (gnuv3_print_method_ptr): Update.
4761 * f-valprint.c (f_val_print): Update.
4762 * cp-valprint.c (cp_print_value_fields): Update.
4763 * valprint.h (print_function_pointer_address): Update.
4764 * c-valprint.c (c_val_print): Update.
4766 2012-05-18 Tom Tromey <tromey@redhat.com>
4768 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4769 directly corresponding to the found psymtab.
4770 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4771 (dw2_find_pc_sect_symtab): Use it.
4772 * block.h (blockvector_contains_pc): Declare.
4773 * block.c (find_block_in_blockvector): New function.
4774 (blockvector_for_pc_sect): Use it.
4775 (blockvector_contains_pc): New function.
4777 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4779 * mips-tdep.h (mips_write_pc): New prototype.
4780 * mips-tdep.c (mips_write_pc): Make external, add description.
4781 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4784 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4786 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4788 (mips_unwind_pc, mips_write_pc): Likewise.
4789 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4792 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4794 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4795 proc_warn, proc_error, proc_get_status, proc_flags,
4796 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4797 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4798 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4799 proc_stop_process, proc_wait_for_stop, proc_run_process,
4800 proc_set_traced_signals, proc_set_traced_faults,
4801 proc_set_traced_sysentry, proc_set_traced_sysexit,
4802 proc_set_held_signals, proc_get_held_signals,
4803 proc_get_traced_signals, proc_get_traced_faults,
4804 proc_get_traced_sysentry, proc_get_traced_sysexit,
4805 proc_clear_current_fault, proc_set_current_signal,
4806 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4807 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4808 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4809 proc_get_current_thread, proc_get_current_thread,
4810 proc_get_current_thread, proc_update_threads,
4811 proc_update_threads, proc_update_threads, proc_update_threads,
4812 proc_iterate_over_threads, procfs_find_new_threads,
4813 procfs_pid_to_str): Make static. Remove advance declaration.
4814 (proc_cursig): Make static. Conditionalized defintion on
4815 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4816 (proc_syscall, proc_set_kill_on_last_close,
4817 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4818 proc_get_pending_signals, proc_get_signal_actions,
4819 proc_trace_signal, proc_ignore_signal): Delete.
4821 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4823 * coffread.c (cs_section_address): Passing proper argument for
4824 `bfd_get_section_vma'.
4825 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4826 `bfd_get_section_flags'.
4827 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4828 `bfd_get_section_vma'.
4830 2012-05-16 Tom Tromey <tromey@redhat.com>
4833 * macrotab.h: (macro_define_special): Declare.
4834 (enum macro_special_kind): New.
4835 (struct macro_definition) <argc, replacement>: Update comments.
4836 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4837 (macro_define_object_internal): New function.
4838 (macro_define_object): Use it.
4839 (macro_define_special): New function.
4840 (fixup_definition): New function.
4841 (macro_lookup_definition, foreach_macro_in_scope)
4842 (foreach_macro): Use fixup_definition.
4843 * macroexp.h (macro_stringify): Declare.
4844 * macroexp.c (free_buffer_return_text): New function.
4845 (stringify): Constify "arg".
4846 (macro_stringify): New function.
4847 * dwarf2read.c (macro_start_file): Call macro_define_special.
4849 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4850 Maciej W. Rozycki <macro@mips.com>
4852 * breakpoint.h (bp_location): Add related_address member.
4853 * inferior.h (get_return_value): Take a pointer to struct value
4854 instead of struct type for the function requested.
4855 * value.h (using_struct_return): Likewise.
4856 * gdbarch.sh (return_value): Take a pointer to struct value
4857 instead of struct type for the function requested.
4858 * breakpoint.c (set_breakpoint_location_function): Initialize
4859 related_address for bp_gnu_ifunc_resolver breakpoints.
4860 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4861 requested function's address to gdbarch_return_value.
4862 * eval.c (evaluate_subexp_standard): Pass the requested
4863 function's address to using_struct_return.
4864 * infcall.c (call_function_by_hand): Pass the requested
4865 function's address to using_struct_return and
4866 gdbarch_return_value.
4867 * infcmd.c (get_return_value): Take a pointer to struct value
4868 instead of struct type for the function requested.
4869 (print_return_value): Update accordingly.
4870 (finish_command_continuation): Likewise.
4871 * stack.c (return_command): Pass the requested function's
4872 address to using_struct_return and gdbarch_return_value.
4873 * value.c (using_struct_return): Take a pointer to struct value
4874 instead of struct type for the function requested. Pass the
4875 requested function's address to gdbarch_return_value.
4876 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4877 New function_value member, replacing function_type.
4878 (bpfinishpy_dealloc): Update accordingly.
4879 (bpfinishpy_pre_stop_hook): Likewise.
4880 (bpfinishpy_init): Likewise. Record the requested function's
4882 * mips-tdep.c (mips_fval_reg): New enum.
4883 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4884 words put in GP registers.
4885 (mips_o64_push_dummy_call): Update a comment.
4886 (mips_o32_return_value): Take a pointer to struct value instead
4887 of struct type for the function requested and use it to check if
4888 using the MIPS16 calling convention. Return the designated
4889 general purpose registers for floating-point values returned in
4891 (mips_o64_return_value): Likewise.
4892 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4893 (ppc_sysv_abi_broken_return_value): Likewise.
4894 (ppc64_sysv_abi_return_value): Likewise.
4895 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4896 value instead of struct type for the function requested.
4897 * amd64-tdep.c (amd64_return_value): Likewise.
4898 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4899 * arm-tdep.c (arm_return_value): Likewise.
4900 * avr-tdep.c (avr_return_value): Likewise.
4901 * bfin-tdep.c (bfin_return_value): Likewise.
4902 * cris-tdep.c (cris_return_value): Likewise.
4903 * frv-tdep.c (frv_return_value): Likewise.
4904 * h8300-tdep.c (h8300_return_value): Likewise.
4905 (h8300h_return_value): Likewise.
4906 * hppa-tdep.c (hppa32_return_value): Likewise.
4907 (hppa64_return_value): Likewise.
4908 * i386-tdep.c (i386_return_value): Likewise.
4909 * ia64-tdep.c (ia64_return_value): Likewise.
4910 * iq2000-tdep.c (iq2000_return_value): Likewise.
4911 * lm32-tdep.c (lm32_return_value): Likewise.
4912 * m32c-tdep.c (m32c_return_value): Likewise.
4913 * m32r-tdep.c (m32r_return_value): Likewise.
4914 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4915 * m68k-tdep.c (m68k_return_value): Likewise.
4916 (m68k_svr4_return_value): Likewise.
4917 * m88k-tdep.c (m88k_return_value): Likewise.
4918 * mep-tdep.c (mep_return_value): Likewise.
4919 * microblaze-tdep.c (microblaze_return_value): Likewise.
4920 * mn10300-tdep.c (mn10300_return_value): Likewise.
4921 * moxie-tdep.c (moxie_return_value): Likewise.
4922 * mt-tdep.c (mt_return_value): Likewise.
4923 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4924 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4925 (ppc_sysv_abi_broken_return_value): Likewise.
4926 (ppc64_sysv_abi_return_value): Likewise.
4927 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4928 * rl78-tdep.c (rl78_return_value): Likewise.
4929 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4930 * rx-tdep.c (rx_return_value): Likewise.
4931 * s390-tdep.c (s390_return_value): Likewise.
4932 * score-tdep.c (score_return_value): Likewise.
4933 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4934 (sh_return_value_fpu): Likewise.
4935 * sh64-tdep.c (sh64_return_value): Likewise.
4936 * sparc-tdep.c (sparc32_return_value): Likewise.
4937 * sparc64-tdep.c (sparc64_return_value): Likewise.
4938 * spu-tdep.c (spu_return_value): Likewise.
4939 * tic6x-tdep.c (tic6x_return_value): Likewise.
4940 * v850-tdep.c (v850_return_value): Likewise.
4941 * vax-tdep.c (vax_return_value): Likewise.
4942 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4943 * xtensa-tdep.c (xtensa_return_value): Likewise.
4944 * gdbarch.c: Regenerate.
4945 * gdbarch.h: Regenerate.
4947 2012-05-15 Tom Tromey <tromey@redhat.com>
4949 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4951 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4953 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4954 of command in two error message.
4956 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4958 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4960 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4962 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4964 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4966 * NEWS (show auto-load scripts-directory): Add forgotten command.
4968 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4970 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4973 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4975 * amd64-tdep.c: Include features/i386/x32.c and
4976 features/i386/x32-avx.c.
4977 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4978 initialize_tdesc_x32_avx.
4980 2012-05-14 Stan Shebs <stan@codesourcery.com>
4983 * breakpoint.h (enum bptype): New type bp_dprintf.
4984 (struct breakpoint): New field extra_string.
4985 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4986 (create_breakpoint): Add extra_string arg.
4987 * breakpoint.c (dprintf_breakpoint_ops): New.
4988 (is_breakpoint): Add bp_dprintf.
4989 (bpstat_what): Add dprintf case.
4990 (bptype_string): Ditto.
4991 (print_one_breakpoint_location): Ditto.
4992 (init_bp_location): Ditto.
4993 (bkpt_print_mention): Ditto.
4994 (dprintf_style_enums): New array.
4995 (dprintf_style): New global.
4996 (dprintf_function): New global.
4997 (dprintf_channel): New global.
4998 (update_dprintf_command_list): New function.
4999 (update_dprintf_commands): New function.
5000 (init_breakpoint_sal): Add extra_string argument, handle it.
5001 (create_breakpoint_sal): Add extra_string argument.
5002 (create_breakpoints_sal): Add extra_string argument, update callers.
5003 (find_condition_and_thread): Add extra argument.
5004 (create_breakpoint): Add extra_string argument, record it.
5005 (dprintf_command): New function.
5006 (break_command_1): Add arg to create_breakpoint call.
5007 (handle_gnu_v3_exceptions): Ditto.
5008 (trace_command): Ditto.
5009 (ftrace_command): Ditto.
5010 (strace_command): Ditto.
5011 (bkpt_print_mention): Add dprintf case.
5012 (create_breakpoint_sal_default): Add extra_string argument.
5013 (_initialize_breakpoint): Add new commands.
5014 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5015 * python/py-breakpoint.c (bppy_init): Ditto.
5016 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5018 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5020 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5022 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5024 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5027 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5029 Add a new function gdb.find_pc_line to the Python API.
5030 * NEWS (Python Scripting): Add entry about the new function.
5031 * python/python.c (gdbpy_find_pc_line): New function which
5032 implements gdb.find_pc_line.
5033 (GdbMethods): Add entry for the new function.
5035 2012-05-12 Pedro Alves <palves@redhat.com>
5037 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5038 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5040 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5042 * inferior.c: Include completer.h
5043 (initialize_inferiors): Set completer of add-inferior to
5046 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5048 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5049 gdbarch_ptr_bit for x32 core dump.
5051 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5053 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5054 and features/i386/x32-avx-linux.c.
5056 2012-05-11 Stan Shebs <stan@codesourcery.com>
5057 Kwok Cheung Yeung <kcy@codesourcery.com>
5059 * NEWS: Describe new info os commands.
5060 * common/linux-osdata.c (PID_T, TIME_T): Define.
5061 (MAX_PID_T_STRLEN): New.
5062 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5064 (command_from_pid): Add comment. Change to use PID_T.
5065 (commandline_from_pid): Change to use PID_T.
5066 (user_from_pid): Add comment.
5067 (get_process_owner): Add comment. Change to use PID_T and
5069 (get_number_of_cpu_cores): Add comment.
5070 (get_cores_used_by_process): Add comment. Change to use PID_T and
5072 (linux_xfer_osdata_processes): Change to use PID_T and
5074 (compare_processes): New function.
5075 (linux_xfer_osdata_processgroups): New function.
5076 (linux_xfer_osdata_threads): Change to use PID_T.
5077 (linux_xfer_osdata_fds): New function.
5078 (format_socket_state, print_sockets): New functions.
5079 (union socket_addr): New union.
5080 (linux_xfer_osdata_isockets): New function.
5081 (time_from_time_t, group_from_gid): New functions.
5082 (linux_xfer_osdata_shm): New function.
5083 (linux_xfer_osdata_sem): New function.
5084 (linux_xfer_osdata_msg): New function.
5085 (linux_xfer_osdata_modules): New function.
5086 (osdata_table): Add new entries.
5087 * common/buffer.c (buffer_xml_printf): Add support for long and
5088 long long format specifiers.
5090 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5092 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5093 (tdesc_x32_avx_linux): Likewise.
5095 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5097 Implement multi-component --with-auto-load-dir.
5098 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5100 (--with-auto-load-safe-path): Update the default value description.
5101 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5103 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5104 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5105 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5106 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5107 "set auto-load scripts-directory".
5108 * config.in: Regenerate.
5109 * configure: Regenerate.
5110 * configure.ac (--with-auto-load-dir): New configure option.
5111 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5113 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5115 Provide $ddir substitution for --with-auto-load-safe-path.
5116 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5118 * auto-load.c: Include observer.h.
5119 (auto_load_safe_path_vec_update): Call substitute_path_component for
5120 each component. New variable ddir_subst.
5121 (auto_load_gdb_datadir_changed): New function.
5122 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5123 AUTO_LOAD_SAFE_PATH. New comment.
5124 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5125 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5126 * config.in: Regenerate.
5127 * configure: Regenerate.
5128 * configure.ac (--auto-load-safe-path): Rename
5129 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5130 GDB_DATADIR/auto-load.
5131 * defs.h (substitute_path_component): New declaration.
5132 * top.c: Include observer.h.
5133 (set_gdb_datadir): New function.
5134 (init_main): Install it for "set data-directory".
5135 * utils.c (substitute_path_component): New function.
5137 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5139 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5140 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5141 DEBUG_FILE_DIRECTORY. Handle multiple components of
5142 DEBUG_FILE_DIRECTORY.
5144 2012-05-10 Tom Tromey <tromey@redhat.com>
5146 * dwarf2read.c (recursively_write_psymbols): New function.
5147 (write_psymtabs_to_index): Use it.
5149 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5151 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5152 (load_partial_comp_unit): Update.
5153 (queue_comp_unit): Add argument 'pretend_language'.
5154 (process_queue): Update.
5155 (psymtab_to_symtab_1): Skip dependencies that have a user.
5156 (load_partial_comp_unit_reader): Give meaning to the 'data'
5158 (load_full_comp_unit): Add 'pretend_language' argument.
5159 (process_full_comp_unit): Add 'pretend_language' argument. Set
5161 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5163 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5164 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5166 (prepare_one_comp_unit): Add 'pretend_language' argument.
5168 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5169 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5170 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5171 (dw2_do_instantiate_symtab): Check whether symtab was read in
5173 (dw2_instantiate_symtab): Add assertion. Call
5174 process_cu_includes.
5175 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5176 (partial_symtab_p): New typedef.
5177 (set_partial_user): New function.
5178 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5179 (scan_partial_symbols): Add imported CU to imported_symtabs.
5180 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5181 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5182 (get_symtab, recursively_compute_inclusions)
5183 (compute_symtab_includes, process_cu_includes)
5184 (process_imported_unit_die): New functions.
5185 (process_die) <DW_TAG_imported_unit>: New case.
5186 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5188 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5190 (struct partial_die_info) <locdesc>: Remove.
5192 (process_psymtab_comp_unit): Add 'read_partial' argument.
5194 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5195 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5196 (add_partial_symbol): Update.
5197 (process_die): Handle DW_TAG_partial_unit.
5198 (read_file_scope): Update comment.
5199 (load_partial_dies): Handle DW_TAG_imported_unit.
5200 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5201 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5203 2012-05-10 Tom Tromey <tromey@redhat.com>
5205 * cc-with-dwz.sh: New file.
5207 2012-05-10 Tom Tromey <tromey@redhat.com>
5209 * symtab.h (struct symtab) <includes, user>: New fields.
5210 * block.h (struct block_iterator) <d, idx, which>: New fields.
5211 * block.c (initialize_block_iterator, find_iterator_symtab)
5212 (block_iterator_step, block_iter_name_step)
5213 (block_iter_match_step): New functions.
5214 (block_iterator_first, block_iterator_next)
5215 (block_iter_name_first, block_iter_name_next)
5216 (block_iter_match_first, block_iter_match_next): Rewrite.
5217 (get_block_symtab): New function.
5219 2012-05-10 Tom Tromey <tromey@redhat.com>
5221 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5223 * jit.c (finalize_symtab): Use allocate_global_block,
5225 * buildsym.c (finish_block_internal): New function, from old
5227 (finish_block): Rewrite.
5228 (end_symtab): Use finish_block_internal, set_block_symtab.
5229 * block.h (struct global_block): New.
5230 (allocate_global_block, set_block_symtab): Declare.
5231 * block.c (allocate_global_block, set_block_symtab): New
5234 2012-05-10 Tom Tromey <tromey@redhat.com>
5236 * psymtab.c (partial_map_expand_apply): Add assertion.
5237 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5238 (psymtab_to_symtab): Find unshared psymtab.
5239 (dump_psymtab): Print including psymtabs.
5240 (recursively_search_psymtabs): New function.
5241 (expand_symtabs_matching_via_partial): Use it.
5242 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5244 (enum psymtab_search_status): New.
5246 2012-05-10 Tom Tromey <tromey@redhat.com>
5248 * tracepoint.c (scope_info): Update.
5249 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5250 (find_pc_sect_symtab, search_symbols)
5251 (default_make_symbol_completion_list_break_on)
5252 (make_file_symbol_completion_list): Update.
5253 * symmisc.c (dump_symtab_1): Update.
5254 * stack.c (print_frame_args, iterate_over_block_locals)
5255 (print_frame_labels, iterate_over_block_arg_vars): Update.
5256 * python/py-block.c (block_object) <dict>: Remove.
5258 <iter>: Change type.
5259 (blpy_iter): Update.
5260 (blpy_block_syms_iternext): Update.
5261 * psymtab.c (map_block): Use block iterators.
5262 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5263 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5264 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5265 * infrun.c (check_exception_resume): Update.
5266 * cp-support.c (make_symbol_overload_list_block): Update.
5267 * coffread.c (patch_opaque_types): Update.
5268 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5269 * block.h (struct block_iterator): New.
5270 (block_iterator_first, block_iterator_next, block_iter_name_first)
5271 (block_iter_name_next, block_iter_match_first)
5272 (block_iter_match_next): Declare.
5273 (ALL_BLOCK_SYMBOLS): Redefine.
5274 * block.c (block_iterator_first, block_iterator_next)
5275 (block_iter_name_first, block_iter_name_next)
5276 (block_iter_match_first, block_iter_match_next): New functions.
5277 * ada-lang.c (ada_add_block_symbols)
5278 (ada_make_symbol_completion_list): Use block iterator.
5280 2012-05-10 Tom Tromey <tromey@redhat.com>
5282 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5283 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5284 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5285 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5286 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5289 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5291 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5292 print-file-var-lib2.c, print-file-var-main.c and
5293 print-file-var.exp (located in gdb/testsuite/gdb.base).
5295 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5297 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5298 try locating the symbol in the symbol's own objfile first, before
5299 extending the search to all objfiles.
5300 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5301 out of lookup_symbol_aux_symtabs.
5302 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5303 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5304 Do not search EXCLUDE_OBJFILE.
5305 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5306 (lookup_symbol_global): Search for matches in the block's objfile
5307 first, before searching all other objfiles.
5309 2012-05-10 Tristan Gingold <gingold@adacore.com>
5311 * printcmd.c (set_command): Add pre/post inc/dec.
5313 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5315 * gdb.1: Document -ex option.
5317 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5319 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5320 * inferior.h (AT_SYMBOL): Delete.
5322 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5324 * mips-tdep.c (mips_push_dummy_code): New function.
5325 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5326 ON_STACK and install mips_push_dummy_code as our gdbarch
5327 push_dummy_code routine.
5329 2012-05-09 Pedro Alves <palves@redhat.com>
5331 * target.c (set_maintenance_target_async_permitted): Rename to ...
5332 (set_target_async_command): ... this.
5333 (show_maintenance_target_async_permitted): Rename to ...
5334 (show_target_async_command): ... this.
5335 (initialize_targets): Adjust.
5337 2012-05-08 Doug Evans <dje@google.com>
5339 * go-exp.y (classify_name): Add missing assignment of fields of
5342 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5344 Display the ">" prompt in interactive mode while reading canned
5345 commands, even when the current interpreter is MI.
5347 * interps.c (interp_set_temp): New function.
5349 * interps.h (interp_set_temp): Add prototype.
5351 * cli/cli-script.c (restore_interp): New cleanup function.
5352 (read_command_lines): Temporarily override the current interpreter
5353 with CLI and arrange for restoring the original one.
5355 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5357 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5359 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5361 * probe.c (parse_probes): Move conditional to check for
5362 debuginfo files from here...
5363 * stap-probe.c (stap_get_probes): ... to here.
5365 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5366 H.J. Lu <hongjiu.lu@intel.com>
5368 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5369 `movl %esp, %ebp' for the X32 ABI.
5371 2012-05-07 Tom Tromey <tromey@redhat.com>
5373 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5375 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5376 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5377 (dwarf_stack_op_name): Remove.
5378 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5379 (decode_locdesc): Use get_DW_OP_name.
5380 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5381 (dwarf2_compile_expr_to_ax): Likewise.
5382 (disassemble_dwarf_expression): Likewise.
5383 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5385 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5387 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5388 (sh_linux_sigtramp_cache): New function.
5389 (sh_linux_sigreturn_init): New function.
5390 (sh_linux_rt_sigreturn_init): New function.
5391 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5393 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5395 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5396 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5397 (sh_linux_init_abi): Add init calls to register new tramp_frame
5398 definitions under 32-bit SH, update comments.
5400 2012-05-07 Pedro Alves <palves@redhat.com>
5404 * amd64-linux-tdep.c: Include glibc-tdep.h.
5405 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5406 gdbarch_skip_solib_resolver callback.
5408 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5410 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5411 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5412 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5413 (add_auto_load_safe_path): Change the error message.
5414 (_initialize_auto_load): Change the "safe-path" help text.
5415 * configure: Regenerate
5416 * configure.ac (--without-auto-load-safe-path): Set
5417 WITH_AUTO_LOAD_SAFE_PATH to /.
5419 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5421 * stap-probe.h: Do not include unecessary `probe.h'.
5423 2012-05-05 Alan Modra <amodra@gmail.com>
5425 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5426 bfd_und_section_ptr.
5427 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5428 and bfd_com_section_ptr.
5430 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5432 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5434 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5436 * windows-nat.h (segment_register_p_ftype): New typedef.
5437 (windows_set_segment_register_p): Add declaration.
5438 * windows-nat.c (segment_register_p): New static global.
5439 (windows_set_segment_register_p): New function.
5440 (do_windows_fetch_inferior_registers): Add special handling
5441 for segment registers.
5442 * amd64-windows-nat.c: #include "amd64-tdep.h".
5443 (amd64_windows_segment_register_p): New function.
5444 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5445 * i386-windows-nat.c: #include "i386-tdep.h".
5446 (i386_windows_segment_register_p): New function.
5447 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5449 2012-05-04 Tristan Gingold <gingold@adacore.com>
5451 * printcmd.c (set_command): Emit a warning if the expression is not
5454 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5456 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5459 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5461 * stap-probe.c (stap_is_operator): Change declaration.
5462 (stap_get_opcode): Change return value.
5463 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5464 `stap_parse_argument_1'.
5466 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5468 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5471 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5473 Add two new methods global_block and static_block to gdb.Symtab
5475 * NEWS (Python scripting): Add entry about the new methods.
5476 * python/py-symtab.c (stpy_global_block): New function which
5477 implements the gdb.Symtab.global_block() method.
5478 (stpy_static_block): New function which implements the
5479 gdb.Symtab.static_block() method.
5480 (symtab_object_methods): Add entries for the two new methods.
5482 2012-05-03 Doug Evans <dje@google.com>
5484 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5487 2012-05-03 Yao Qi <yao@codesourcery.com>
5489 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5491 (i386_process_record): Ditto.
5493 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5495 * infcall.c (unwind_on_signal_p): Make static.
5497 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5499 * sol-thread.c (solaris_pid_to_str): Make static.
5500 (_initialize_sol_thread): Add prototype.
5502 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5504 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5506 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5508 * MAINTAINERS: Remove myself.
5510 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5512 Fix --without-auto-load-safe-path for MS-Windows host platform.
5513 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5515 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5517 * gdb_curses.h: Undefine KEY_EVENT before including curses
5518 headers. Move "#undef MOUSE_MOVED" before any curses header
5521 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5523 * features/i386/i386-mmx-linux.c: Regenerate.
5524 * features/rs6000/powerpc-32.c: Likewise.
5525 * features/rs6000/powerpc-32l.c: Likewise.
5526 * features/rs6000/powerpc-403.c: Likewise.
5527 * features/rs6000/powerpc-403gc.c: Likewise.
5528 * features/rs6000/powerpc-405.c: Likewise.
5529 * features/rs6000/powerpc-505.c: Likewise.
5530 * features/rs6000/powerpc-601.c: Likewise.
5531 * features/rs6000/powerpc-602.c: Likewise.
5532 * features/rs6000/powerpc-603.c: Likewise.
5533 * features/rs6000/powerpc-604.c: Likewise.
5534 * features/rs6000/powerpc-64.c: Likewise.
5535 * features/rs6000/powerpc-64l.c: Likewise.
5536 * features/rs6000/powerpc-750.c: Likewise.
5537 * features/rs6000/powerpc-860.c: Likewise.
5538 * features/rs6000/powerpc-e500.c: Likewise.
5539 * features/rs6000/powerpc-e500l.c: Likewise.
5540 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5541 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5542 * features/rs6000/rs6000.c: Likewise.
5544 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5546 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5548 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5549 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5550 (stap_parse_argument) <e>: Likewise.
5551 (handle_stap_probe) <byte_order>: Likewise.
5553 2012-04-30 Doug Evans <dje@google.com>
5555 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5556 init_and_read_dies_worker. All callers updated.
5557 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5558 replaced with init_cutu_and_read_dies.
5559 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5560 (find_partial_die): Remove FIXME. Don't free current CU.
5562 2012-04-30 Sterling Augustine <saugustine@google.com>
5564 * contrib: New directory.
5565 * contrib/test_pubnames_and_indexes.py: New file.
5567 2012-04-30 Doug Evans <dje@google.com>
5569 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5570 All callers updated.
5571 (init_cu_die_reader): Verify the section is non-empty.
5572 (dwarf_decode_line_header): Don't dereference section->asection
5573 until we know the section is present.
5575 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5577 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5580 2012-04-29 Yao Qi <yao@codesourcery.com>
5582 * gdb-code-style.el: New hook gdb-markup-hook
5583 and gdb-comment-hook.
5585 2012-04-28 Doug Evans <dje@google.com>
5587 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5588 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5590 * symfile.h (dwarf2_debug_sections): New member addr.
5591 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5592 (ctx_no_get_addr_index): New function.
5593 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5594 (ctx_no_get_addr_index): Declare.
5595 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5596 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5597 (dwarf_expr_ctx_funcs): Update.
5598 (needs_get_addr_index): New function.
5599 (needs_frame_ctx_funcs): Update.
5600 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5601 * dwarf2read.c: #include "gdbcore.h".
5602 (dwarf2_per_objfile): New members addr, dwo_files.
5603 (dwarf2_elf_names): Add entry for addr.
5604 (struct dwo_section_names): New type.
5605 (dwo_section_names): New static global.
5606 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5607 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5608 old debug_types_section member updated to use this.
5609 Rename member debug_types_section to info_or_types_section,
5611 (signatured_type): Rename member type_offset to type_offset_in_tu,
5612 all uses updated. New member type_offset_in_section.
5613 (struct dwo_sections): New type.
5614 (struct dwo_unit): New type.
5615 (struct dwo_file): New type.
5616 (die_reader_specs): New member dwo_file.
5617 (dwarf2_locate_sections): Watch for .debug_addr.
5618 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5619 (dwarf2_read_section): Get bfd of section from bfd's asection,
5621 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5622 (create_signatured_type_table_from_index): Initialize
5623 sig_type->info_or_types_section.
5624 (dw2_get_file_names): Statement lists for type units with DWO files
5625 live in the DWO file.
5626 (create_debug_types_hash_table): New function.
5627 (create_all_type_units): Rewrite.
5628 (init_cu_die_reader): New arg dwo_file, all callers updated.
5629 (init_and_read_dies_worker): Get section from
5630 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5631 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5632 continue reading the CU/TU from there.
5633 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5634 updated. Get section from this_cu->info_or_types_section.
5635 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5636 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5637 DW_FORM_GNU_str_index.
5638 (hash_dwo_file, eq_dwo_file): New functions.
5639 (allocate_dwo_file_hash_table): New function.
5640 (hash_dwo_unit, eq_dwo_unit): New functions.
5641 (allocate_dwo_unit_table): New function.
5642 (dwarf2_locate_dwo_sections): New function.
5643 (struct create_dwo_info_table_data): New type.
5644 (create_debug_info_hash_table_reader): New function.
5645 (create_debug_info_hash_table): New function.
5646 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5647 (lookup_dwo_file): New function.
5648 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5649 (free_dwo_file, free_dwo_file_cleanup): New functions.
5650 (free_dwo_file_from_slot, free_dwo_files): New functions.
5651 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5652 (dwarf2_record_block_ranges): Ditto.
5653 (read_partial_die): Ditto.
5654 (process_enumeration_scope): Update to use type_offset_in_section.
5655 (read_full_die_1): New function.
5656 (read_full_die): Rewrite.
5657 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5658 DW_FORM_GNU_str_index.
5659 (read_addr_index_1, read_addr_index): New functions.
5660 (read_addr_index_from_leb128): New function.
5661 (struct dwarf2_read_addr_index_data): New type.
5662 (dwarf2_read_addr_index_reader): New function.
5663 (dwarf2_read_addr_index): New function.
5664 (read_str_index): New function.
5665 (leb128_size): New function.
5666 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5667 If processing a type unit from a DWO file, get the line section
5669 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5670 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5671 DW_FORM_GNU_str_index.
5672 (lookup_die_type): Check whether section offset of type's die is
5673 known before looking it up. Remove assert. Condition can
5674 legimately happen for inter-cu type references.
5675 (dwarf_attr_name): Handle Fission attributes.
5676 (dwarf_form_name): Handle Fission forms.
5677 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5678 DW_FORM_GNU_str_index.
5679 (follow_die_sig): Update to use type_offset_in_section.
5680 (decode_locdesc): New case DW_OP_GNU_addr_index.
5681 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5682 DW_FORM_GNU_str_index.
5683 (cu_debug_loc_section): New function.
5684 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5685 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5686 Free DWO files if present.
5687 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5689 Refactor DIE reading.
5690 * dwarf2read.c (dwarf2_per_objfile): Replace members
5691 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5692 (die_reader_specs): New member "die_section". Temporarily make
5693 member "buffer" non-const, pending constifying all info_ptr uses.
5694 (die_reader_func_ftype): New typedef.
5695 (dw2_get_file_names_reader): New function.
5696 (dw2_get_file_names): Rewrite.
5697 (read_and_check_type_unit_head): Rename arg type_offset to
5699 (create_all_type_units): Improve debugging message.
5700 Improve dummy type unit check.
5701 (init_cu_die_reader): New arg "section". All callers updated.
5702 (init_and_read_dies_worker): New function.
5703 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5704 (init_cutu_and_read_dies_no_follow): New function.
5705 (init_cutu_and_read_dies_simple): New function.
5706 (process_psymtab_comp_unit_reader): New function.
5707 (process_psymtab_comp_unit): Delete args section,
5708 is_debug_types_section. Rewrite. All callers updated.
5709 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5710 All callers updated. Rewrite.
5711 (load_partial_comp_unit_reader): New function.
5712 (load_partial_comp_unit): Rewrite.
5713 (skip_children): New arg reader. Delete args buffer, cu.
5714 All callers updated.
5715 (skip_one_die): New arg reader. Delete args buffer, cu.
5716 All callers updated.
5717 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5718 All callers updated.
5719 (load_full_comp_unit_reader): New function.
5720 (load_full_comp_unit): Rewrite.
5721 (read_comp_unit): Delete.
5722 (read_die_and_children_1): Delete, contents moved ...
5723 (read_die_and_children): ... here.
5724 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5725 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5726 All callers updated.
5727 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5728 All callers updated.
5729 (find_partial_die): Rewrite load_all_dies support.
5730 (read_attribute_value): New arg reader. Delete args abfd, cu.
5731 All callers updated.
5732 (read_attribute): New arg reader. Delete args abfd, cu.
5733 All callers updated.
5734 (load_full_type_unit): Add assert.
5735 (read_signatured_type_reader): New function.
5736 (read_signatured_type): Rewrite.
5737 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5738 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5739 All callers updated. Set per_cu->cu = NULL after freeing it.
5740 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5741 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5742 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5743 (set_die_type): Update.
5744 (get_die_type_at_offset): Update.
5745 (read_file_scope): Call prepare_one_comp_unit.
5746 (read_type_unit_scope): Ditto.
5747 (prepare_one_comp_unit): Set producer if present.
5749 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5751 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5752 gettext function on `error'.
5754 2012-04-27 Doug Evans <dje@google.com>
5756 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5759 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5760 Tom Tromey <tromey@redhat.com>
5762 * breakpoint.c (struct breakpoint_objfile_data)
5763 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5764 <exception_probes>: New fields.
5765 (free_breakpoint_probes): New function.
5766 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5767 `_Unwind_DebugHook'.
5768 (create_exception_master_breakpoint): Likewise.
5769 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5770 * infrun.c: Including necessary header files for handling SystemTap
5772 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5773 via SystemTap probes.
5774 (check_exception_resume): Remove `func' argument. Handle exception
5775 unwinding breakpoint set via a SystemTap probe.
5776 (insert_exception_resume_from_probe): New function.
5778 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5779 Tom Tromey <tromey@redhat.com>
5780 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5783 (COMMON_OBS): Likewise.
5784 (HFILES_NO_SRCDIR): Add `probe'.
5785 * NEWS: Mention support for static and SystemTap probes.
5786 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5787 SystemTap probes' arguments parser.
5788 * arm-linux-tdep.c: Including headers needed to perform the parsing
5789 of SystemTap probes' arguments.
5790 (arm_stap_is_single_operand): New function.
5791 (arm_stap_parse_special_token): Likewise.
5792 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5793 probes' arguments parser.
5794 * ax-gdb.c (require_rvalue): Removing static declaration.
5795 (gen_expr): Likewise.
5796 * ax-gdb.h (gen_expr): Declaring function.
5797 (require_rvalue): Likewise.
5798 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5799 (bkpt_probe_breakpoint_ops): New variable.
5800 (momentary_breakpoint_from_master): Set the `probe' value.
5801 (add_location_to_breakpoint): Likewise.
5802 (break_command_1): Using proper breakpoint_ops according to the
5803 argument passed by the user in the command line.
5804 (bkpt_probe_insert_location): New function.
5805 (bkpt_probe_remove_location): Likewise.
5806 (bkpt_probe_create_sals_from_address): Likewise.
5807 (bkpt_probe_decode_linespec): Likewise.
5808 (tracepoint_probe_create_sals_from_address): Likewise.
5809 (tracepoint_probe_decode_linespec): Likewise.
5810 (tracepoint_probe_breakpoint_ops): New variable.
5811 (trace_command): Using proper breakpoint_ops according to the
5812 argument passed by the user in the command line.
5813 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5814 static probes on breakpoints and tracepoints.
5815 * breakpoint.h (struct bp_location) <probe>: New field.
5816 * cli-utils.c (skip_spaces_const): New function.
5817 (extract_arg): Likewise.
5818 * cli-utils.h (skip_spaces_const): Likewise.
5819 (extract_arg): Likewise.
5820 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5821 * configure.ac: Append `stap-probe.o' to be generated when ELF
5823 * configure: Regenerate.
5824 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5825 * elfread.c: Include `probe.h' and `arch-utils.h'.
5826 (probe_key): New variable.
5827 (elf_get_probes): New function.
5828 (elf_get_probe_argument_count): Likewise.
5829 (elf_evaluate_probe_argument): Likewise.
5830 (elf_compile_to_ax): Likewise.
5831 (elf_symfile_relocate_probe): Likewise.
5832 (stap_probe_key_free): Likewise.
5833 (elf_probe_fns): New variable.
5834 (elf_sym_fns): Add `sym_probe_fns' value.
5835 (elf_sym_fns_lazy_psyms): Likewise.
5836 (elf_sym_fns_gdb_index): Likewise.
5837 (_initialize_elfread): Initialize objfile cache for static
5839 * gdb_vecs.h (struct probe): New forward declaration.
5840 (probe_p): New VEC declaration.
5841 * gdbarch.c: Regenerate.
5842 * gdbarch.h: Regenerate.
5843 * gdbarch.sh (stap_integer_prefix): New variable.
5844 (stap_integer_suffix): Likewise.
5845 (stap_register_prefix): Likewise.
5846 (stap_register_suffix): Likewise.
5847 (stap_register_indirection_prefix): Likewise.
5848 (stap_register_indirection_suffix): Likewise.
5849 (stap_gdb_register_prefix): Likewise.
5850 (stap_gdb_register_suffix): Likewise.
5851 (stap_is_single_operand): New function.
5852 (stap_parse_special_token): Likewise.
5853 (struct stap_parse_info): Forward declaration.
5854 * i386-tdep.c: Including headers needed to perform the parsing
5855 of SystemTap probes' arguments.
5856 (i386_stap_is_single_operand): New function.
5857 (i386_stap_parse_special_token): Likewise.
5858 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5859 probes' arguments parser.
5860 * i386-tdep.h (i386_stap_is_single_operand): New function.
5861 (i386_stap_parse_special_token): Likewise.
5862 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5863 * mipsread.c (ecoff_sym_fns): Likewise.
5864 * objfiles.c (objfile_relocate1): Support relocation for static
5866 * parse.c (prefixify_expression): Remove static declaration.
5867 (initialize_expout): Likewise.
5868 (reallocate_expout): Likewise.
5869 * parser-defs.h (initialize_expout): Declare function.
5870 (reallocate_expout): Likewise.
5871 (prefixify_expression): Likewise.
5872 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5873 of SystemTap probes' arguments.
5874 (ppc_stap_is_single_operand): New function.
5875 (ppc_stap_parse_special_token): Likewise.
5876 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5877 probes' arguments parser.
5878 * probe.c: New file, for generic statically defined probe support.
5879 * probe.h: Likewise.
5880 * s390-tdep.c: Including headers needed to perform the parsing of
5881 SystemTap probes' arguments.
5882 (s390_stap_is_single_operand): New function.
5883 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5884 probes' arguments parser.
5885 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5886 * stap-probe.c: New file, for SystemTap probe support.
5887 * stap-probe.h: Likewise.
5888 * symfile.h: Include `gdb_vecs.h'.
5889 (struct sym_probe_fns): New struct.
5890 (struct sym_fns) <sym_probe_fns>: New field.
5891 * symtab.c (init_sal): Initialize `probe' field.
5892 * symtab.h (struct probe): Forward declaration.
5893 (struct symtab_and_line) <probe>: New field.
5894 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5896 (stop_tracing): Likewise.
5897 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5899 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5900 Tom Tromey <tromey@redhat.com>
5902 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5903 and to compile agent expressions.
5904 * infrun.c (siginfo_make_value): New argument `ignore'.
5905 (siginfo_funcs): New struct.
5906 (_initialize_infrun): New argument when calling
5907 `create_internalvar_type_lazy'.
5908 * thread.c (thread_id_make_value): New argument `ignore'.
5909 (thread_funcs): New struct.
5910 (_initialize_thread): New argument when calling
5911 `create_internalvar_type_lazy'.
5912 * tracepoint.c (sdata_make_value): New argument `ignore'.
5913 (sdata_funcs): New struct.
5914 (_initialize_tracepoint): New argument when calling
5915 `create_internalvar_type_lazy'.
5916 * value.c (make_value): New struct.
5917 (create_internalvar_type_lazy): New argument `data'.
5918 (compile_internalvar_to_ax): New function.
5919 (value_of_internalvar): Properly handling `make_value' case.
5920 (clear_internalvar): Likewise.
5921 (show_convenience): Adding `TRY_CATCH' block.
5922 * value.h (internalvar_make_value): Delete, replace by...
5923 (struct internalvar_funcs): ... this.
5924 (create_internalvar_type_lazy) <fun>: Delete argument.
5925 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5926 (compile_internalvar_to_ax): New function.
5927 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5928 (tlb_funcs): New struct.
5929 (_initialize_windows_tdep): New argument when calling
5930 `create_internalvar_type_lazy'.
5932 2012-04-27 Mark Wielaard <mjw@redhat.com>
5934 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5935 see whether it is an address or a constant offset from DW_AT_low_pc.
5936 (dwarf2_record_block_ranges): Likewise.
5937 (read_partial_die): Likewise.
5939 2012-04-26 Mark Wielaard <mjw@redhat.com>
5941 * MAINTAINERS (Write After Approval): Add myself to the list.
5943 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5945 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5946 (proc_prettyprint_signal): Likewise.
5947 (proc_prettyprint_faultset): Likewise.
5948 (proc_prettyprint_fault): Likewise.
5949 (proc_prettyprint_actionset): Likewise.
5950 (proc_prettyprint_flags): Move to new proc-flags.c section.
5951 (proc_prettyfprint_flags): New prototype.
5952 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5953 (proc_syscall, proc_cursig): Likewise.
5954 (proc_set_kill_on_last_close): Likewise.
5955 (proc_unset_kill_on_last_close): Likewise.
5956 (proc_set_watchpoint): Make static.
5957 (proc_delete_dead_threads): Likewise.
5958 (procfs_set_watchpoint): Likewise.
5959 (_initialize_procfs): Add prototype.
5960 * proc-events.c: Include proc-utils.h.
5961 (init_syscall_table): Make static.
5962 * proc-api.c (_initialize_proc_api): Add prototype.
5963 * proc-flags.c: Include proc-utils.h.
5965 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5967 * configure.ac: Add AC_ARG_PROGRAM.
5968 * configure: Regenerate.
5970 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5972 Fix DW_AT_lower_bound defaults for DWARF-4+.
5973 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5974 high. New variable low_default_is_valid. Implement DWARF-4+
5975 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5976 no default by the DWARF standard.
5978 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5979 Maciej W. Rozycki <macro@codesourcery.com>
5981 * infrun.c (handle_inferior_event): Move the check for return
5982 trampolines ahead of the check for function trampolines.
5983 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5984 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5985 (mips_str_mips16_ret_stub): Likewise.
5986 (mips_str_call_fp_stub): Likewise.
5987 (mips_str_call_stub): Likewise.
5988 (mips_str_fn_stub): Likewise.
5989 (mips_str_pic): Likewise.
5990 (mips_in_frame_stub): New function.
5991 (mips_unwind_pc): Return the return address rather than the PC
5992 if the PC of an intermediate frame is inside a call thunk.
5993 (mips_is_stub_suffix): New function.
5994 (mips_is_stub_mode): Likewise.
5995 (mips_get_mips16_fn_stub_pc): Likewise.
5996 (mips_skip_mips16_trampoline_code): Update to handle all the
5997 currently generated stub types. Don't recurse into __fn_stub
5998 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5999 Use cooked register accesses.
6000 (mips_in_return_stub): Reintroduce function.
6001 (mips_skip_trampoline_code): Traverse trampolines recursively.
6002 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6004 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6008 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6010 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6011 * features/arm-with-m-vfp-d16.xml: New file. Describes
6012 Cortex-M with VFPv4-sp-d16 FPU register layout.
6013 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6014 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6015 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6016 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6017 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6019 2012-04-25 Doug Evans <dje@google.com>
6021 * cli/cli-decode.c (print_doc_line): Use stream instead of
6024 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6026 * features/arm-with-iwmmxt.c: Regenerate.
6027 * features/arm-with-m-fpa-layout.c: Likewise.
6028 * features/arm-with-m.c: Likewise.
6029 * features/arm-with-neon.c: Likewise.
6030 * features/arm-with-vfpv2.c: Likewise.
6031 * features/arm-with-vfpv3.c: Likewise.
6032 * features/mips-dsp-linux.c: Likewise.
6033 * features/mips-linux.c: Likewise.
6034 * features/mips64-dsp-linux.c: Likewise.
6035 * features/mips64-linux.c: Likewise.
6036 * features/s390-linux32.c: Likewise.
6037 * features/s390-linux32v1.c: Likewise.
6038 * features/s390-linux32v2.c: Likewise.
6039 * features/s390-linux64.c: Likewise.
6040 * features/s390-linux64v1.c: Likewise.
6041 * features/s390-linux64v2.c: Likewise.
6042 * features/s390x-linux64.c: Likewise.
6043 * features/s390x-linux64v1.c: Likewise.
6044 * features/s390x-linux64v2.c: Likewise.
6045 * features/tic6x-c62x-linux.c: Likewise.
6046 * features/tic6x-c62x.c: Likewise.
6047 * features/tic6x-c64x-linux.c: Likewise.
6048 * features/tic6x-c64x.c: Likewise.
6049 * features/tic6x-c64xp-linux.c: Likewise.
6050 * features/tic6x-c64xp.c: Likewise.
6051 * target-descriptions.c: Only generate `field_type' and `type'
6052 variables when needed.
6054 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6056 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6058 2012-04-25 Doug Evans <dje@google.com>
6060 Initial pass at Go language support.
6062 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6064 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6065 (YYFILES): Add go-exp.c.
6066 (YYOBJ): Add go-exp.o.
6067 (local-maintainer-clean): Delete go-exp.c.
6068 * defs.h (enum language): Add language_go.
6069 * dwarf2read.c: #include "go-lang.h".
6070 (fixup_go_packaging): New function.
6071 (process_full_comp_unit): Call it when processing Go CUs.
6072 (dwarf2_physname): Add Go support.
6073 (read_file_scope): Handle missing language spec for GNU Go.
6074 (set_cu_language): Handle DW_LANG_Go.
6075 * go-exp.y: New file.
6076 * go-lang.h: New file.
6077 * go-lang.c: New file.
6078 * go-typeprint.c: New file.
6079 * go-valprint.c: New file.
6080 * symtab.c: #include "go-lang.h".
6081 (symbol_set_language): Handle language_go.
6082 (symbol_find_demangled_name, symbol_set_names): Ditto.
6083 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6085 2012-04-24 Jim Meyering <meyering@redhat.com>
6087 avoid a few strncpy-induced buffer overruns
6088 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6089 fname and psargs before trying to concatenate.
6090 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6091 "name" before applying strchr.
6093 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6095 * CONTRIBUTE: Use unified diff instead of context diff when
6098 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6100 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6101 code. Handle JR.HB correctly.
6103 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6106 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6107 with the other MIPS16 helpers.
6109 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6111 * observer.sh: Conditionally declare `args', thus cleaning up
6112 unused instances of this variable.
6114 2012-04-24 Yao Qi <yao@codesourcery.com>
6116 Revert this patch to allow breakpoint always-inserted
6118 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6119 * breakpoint.c: Include record.h.
6120 (breakpoints_always_inserted_mode): Return false when the record
6123 * breakpoint.c (iterate_over_bp_locations): New.
6124 * breakpoint.h: Declare.
6125 New typedef walk_bp_location_callback.
6126 * record.c (record_open): Call record_init_record_breakpoints.
6127 (record_sync_record_breakpoints): New.
6128 (record_init_record_breakpoints): New.
6129 * NEWS: Mention supporting breakpoint always-inserted mode in
6132 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6134 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6137 2012-04-24 Yao Qi <yao@codesourcery.com>
6139 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6140 (is_catchpoint): ... it.
6141 (print_one_breakpoint_location): Caller update.
6142 * breakpoint.h: Update declaration.
6144 2012-04-23 David S. Miller <davem@davemloft.net>
6146 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6148 2012-04-23 Tom Tromey <tromey@redhat.com>
6150 * buildsym.c (add_free_pendings): Remove.
6151 * buildsym.h (add_free_pendings): Remove.
6153 2012-04-23 Doug Evans <dje@google.com>
6155 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6156 attr.u.unsnd instead of attr.u.addr.
6157 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6158 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6160 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6161 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6163 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6165 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6167 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6168 (mips_o32_return_value): Likewise.
6169 (mips_o64_return_value): Likewise.
6171 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6173 * ada-lang.c (ada_evaluate_subexp): Add cases for
6174 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6175 their treatment in eval.c.
6177 2012-04-21 David S. Miller <davem@davemloft.net>
6179 * sparc-tdep.c (X_DISP10): Define.
6180 (sparc_analyze_control_transfer): Handle compare-and-branch.
6182 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6184 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6185 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6187 2012-04-20 Nigel Stephens <nigel@mips.com>
6188 Maciej W. Rozycki <macro@codesourcery.com>
6190 * mips-tdep.c (mips_float_register_p): New function.
6191 (mips_convert_register_float_case_p): Use mips_float_register_p.
6192 (mips_register_type): Likewise.
6193 (mips_print_register): Likewise.
6194 (print_gp_register_row): Likewise.
6195 (mips_print_registers_info): Likewise.
6197 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6199 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6202 2012-04-20 Andrew Pinski <apinski@cavium.com>
6204 * MAINTAINERS (Write After Approval): Add myself to the list.
6206 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6208 * MAINTAINERS: Update my e-mail address.
6210 2012-04-20 Pedro Alves <palves@redhat.com>
6212 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6214 * configure: Regenerate.
6216 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6218 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6220 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6222 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6224 Fix compilation compatibility with python-2.4
6225 * python/py-type.c (convert_field): Cast ADDRSTRING for
6226 PyObject_SetAttrString as non-const. New comment.
6228 2012-04-19 Tom Tromey <tromey@redhat.com>
6230 * top.c (quit_target): Use all_cleanups.
6231 * main.c (captured_command_loop): Use all_cleanups.
6232 * exceptions.c (throw_exception): Use all_cleanups.
6234 2012-04-19 Pedro Alves <palves@redhat.com>
6236 * Makefile.in (GNULIB_BUILDDIR): New.
6237 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6238 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6239 (CLEANDIRS). Remove gnulib/import.
6240 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6242 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6243 (gnulib/import/Makefile): Replace gnulib/import with
6244 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6245 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6246 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6247 acx_configure_dir.m4.
6248 * acinclude.m4: Include acx_configure_dir.m4.
6249 * acx_configure_dir.m4: New file.
6250 * aclocal.m4: Regenerate.
6251 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6252 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6253 (GNULIB): New variable.
6254 (GNULIB_STDINT_H): Adjust.
6255 (AC_OUTPUT): Don't output gnulib/Makefile.
6256 * gdb/defs.h: Include build-gnulib/config.h.
6257 * aclocal.m4: Regenerate.
6258 * config.in: Regenerate.
6259 * configure: Regenerate.
6261 * gnulib/Makefile.in: New file.
6262 * gnulib/configure.ac: New file.
6263 * gnulib/aclocal.m4: New file.
6264 * gnulib/config.in: New file.
6265 * gnulib/configure: New file.
6266 * gnulib/: Re-run gnulib-tool to adjust.
6268 2012-04-19 Doug Evans <dje@google.com>
6270 * cleanups.h (struct cleanup): Move to cleanups.c.
6271 (make_cleanup_dtor_ftype): New typedef.
6272 (make_cleanup_dtor): Use it.
6273 (ALL_CLEANUPS): Replace with ...
6274 (all_cleanups): ... this. Declare. All uses updated.
6275 * cleanups.c: #include "gdb_assert.h".
6276 (sentinel_cleanup): New static global.
6277 (SENTINEL_CLEANUP): Define.
6278 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6279 (make_my_cleanup2): Assert result is non-NULL.
6280 (all_cleanups): New function.
6281 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6284 2012-04-19 Pedro Alves <palves@redhat.com>
6286 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6287 Adjust paths to gnulib imported files.
6289 2012-04-19 Pedro Alves <palves@redhat.com>
6291 * gnulib/: Move whole directory ...
6292 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6293 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6294 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6295 (aclocal_m4_deps): Adjust.
6296 * aclocal.m4: Regenerate.
6297 * configure: Regenerate.
6298 * configure.ac: Adjust AC_OUTPUT output.
6300 2012-04-19 Yao Qi <yao@codesourcery.com>
6302 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6304 * vec.c: Move it ...
6305 * common/vec.c: ... here.
6306 * vec.h: Move it ...
6307 * common/vec.h: ... here.
6309 2012-04-19 Yao Qi <yao@codesourcery.com>
6311 * gdb-code-style.el: New.
6313 2012-04-18 Pedro Alves <palves@redhat.com>
6315 Update gnulib from latest git.
6316 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6318 * gnulib/Makefile.am: Update.
6319 * gnulib/dummy.c: Update.
6320 * gnulib/extra/arg-nonnull.h: Update.
6321 * gnulib/extra/c++defs.h: Update.
6322 * gnulib/extra/update-copyright: Update.
6323 * gnulib/extra/warn-on-use.h: Update.
6324 * gnulib/inttypes.in.h: Update.
6325 * gnulib/m4/00gnulib.m4: Update.
6326 * gnulib/m4/extensions.m4: Update.
6327 * gnulib/m4/gnulib-cache.m4: Update.
6328 * gnulib/m4/gnulib-common.m4: Update.
6329 * gnulib/m4/gnulib-comp.m4: Update.
6330 * gnulib/m4/gnulib-tool.m4: Update.
6331 * gnulib/m4/include_next.m4: Update.
6332 * gnulib/m4/inttypes-pri.m4: Update.
6333 * gnulib/m4/inttypes.m4: Update.
6334 * gnulib/m4/longlong.m4: Update.
6335 * gnulib/m4/memchr.m4: Update.
6336 * gnulib/m4/memmem.m4: Update.
6337 * gnulib/m4/mmap-anon.m4: Update.
6338 * gnulib/m4/multiarch.m4: Update.
6339 * gnulib/m4/onceonly.m4: Update.
6340 * gnulib/m4/stddef_h.m4: Update.
6341 * gnulib/m4/stdint.m4: Update.
6342 * gnulib/m4/string_h.m4: Update.
6343 * gnulib/m4/warn-on-use.m4: Update.
6344 * gnulib/m4/wchar_h.m4: Update.
6345 * gnulib/m4/wchar_t.m4: Update.
6346 * gnulib/m4/wint_t.m4: Update.
6347 * gnulib/memchr.c: Update.
6348 * gnulib/memmem.c: Update.
6349 * gnulib/stddef.in.h: Update.
6350 * gnulib/stdint.in.h: Update.
6351 * gnulib/str-two-way.h: Update.
6352 * gnulib/string.in.h: Update.
6353 * gnulib/wchar.in.h: Update.
6355 * gnulib/extra/arg-nonnull.h: Delete.
6356 * gnulib/extra/c++defs.h: Delete.
6357 * gnulib/extra/warn-on-use.h: Delete.
6358 * gnulib/m4/wchar_h.m4: Delete.
6359 * gnulib/m4/wint_t.m4: Delete.
6360 * gnulib/wchar.in.h: Delete.
6362 * gnulib/extra/snippets/arg-nonnull.h: New.
6363 * gnulib/extra/snippets/c++defs.h: New.
6364 * gnulib/extra/snippets/warn-on-use.h: New.
6366 * aclocal.m4: Regenerate.
6367 * config.in: Regenerate.
6368 * configure: Regenerate.
6369 * gnulib/Makefile.in: Regenerate.
6371 2012-04-18 Pedro Alves <palves@redhat.com>
6373 Reimport the update-copyright module from gnulib
6374 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6376 * configure: Regenerate.
6377 * gnulib/Makefile.am: Update.
6378 * gnulib/Makefile.in: Regenerate.
6379 * gnulib/extra/update-copyright: Update.
6380 * gnulib/m4/gnulib-cache.m4: Update.
6381 * gnulib/m4/gnulib-comp.m4: Update.
6383 2012-04-18 Tristan Gingold <gingold@adacore.com>
6385 * configure.ac (aix): Put -lpthread into libs.
6386 * configure: Regenerate.
6388 2012-04-18 Tom Tromey <tromey@redhat.com>
6390 * linespec.c (convert_linespec_to_sals): Don't use
6392 (compare_msymbols): Arguments are minsym_and_objfile, not
6393 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6395 2012-04-18 Pedro Alves <palves@redhat.com>
6397 Revert gnulib/ part of:
6398 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6399 Copyright year update in most files (performed by copyright.sh).
6401 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6403 Fix 64-bit constants on 32-bit hosts.
6404 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6405 from unsigned long to ULONGEST.
6406 (read_signed_leb128): Change declaration return type from long to
6408 (dwarf2_const_value_attr): Change declaration parameter value from long
6410 (dwarf2_compute_name): Change variable value from long to LONGEST.
6411 (read_unsigned_leb128): Change return type, variable result and some
6412 casts from unsigned long to ULONGEST.
6413 (read_signed_leb128): Change return type, variable result and some
6414 casts from long to LONGEST.
6415 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6416 value from long to LONGEST.
6417 (dwarf2_const_value): Change variable value from long to LONGEST.
6418 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6419 plongest and hex_string.
6420 * symtab.h (struct general_symbol_info): Change ivalue from long to
6421 LONGEST, remove the comment.
6422 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6423 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6425 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6428 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6429 * ada-lang.c (ada_discrete_type_high_bound)
6430 (ada_discrete_type_low_bound): Fix function comment. Use
6431 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6432 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6433 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6434 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6435 Use TYPE_FIELD_ENUMVAL.
6436 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6437 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6438 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6439 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6441 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6442 * dwarf2read.c (process_enumeration_scope): Likewise.
6443 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6445 (class StructMainTypePrettyPrinter): Support also
6446 FIELD_LOC_KIND_ENUMVAL.
6447 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6449 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6450 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6451 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6452 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6454 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6455 accommodate enumval.
6456 (struct call_site): Adjust loc_kind to accommodate enumval.
6457 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6458 (TYPE_FIELD_ENUMVAL): New macros.
6459 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6460 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6462 * p-typeprint.c (pascal_type_print_base): Likewise.
6463 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6465 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6466 * python/py-type.c (convert_field): New variable addrstring. Use
6467 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6468 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6469 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6470 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6472 * valprint.c (generic_val_print): Likewise.
6474 2012-04-17 Doug Evans <dje@google.com>
6476 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6478 * dwarf2read.c: Whitespace fixes.
6479 (lookup_signatured_type): Tweak comment.
6480 (get_die_type_at_offset): Fix comment.
6482 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6484 * xcoffread.c (xcoff_secnum_to_sections): New function.
6485 (secnum_to_section, secnum_to_bfd_section): Reimplement
6486 using xcoff_secnum_to_sections. Rename "secnum" parameter
6488 (RECORD_MINIMAL_SYMBOL): Delete.
6489 (record_minimal_symbol): New function.
6490 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6491 by call to record_minimal_symbol and set misc_func_recorded
6492 to 1. Set last_csect_sec to the XCOFF section index instead
6493 of GDB's section_offset index. Update calls to
6494 prim_record_minimal_symbol_and_info to pass the BFD section
6497 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6499 * xcoffread.c (read_xcoff_symtab): Delete variables
6500 last_csect_val and last_csect_sec and associated code.
6502 2012-04-17 Doug Evans <dje@google.com>
6504 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6505 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6506 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6507 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6509 * cleanups.h: New file.
6510 * cleanups.c: New file.
6511 * Makefile.in (SFILES): Add cleanups.c.
6512 (HFILES_NO_SRCDIR): Add cleanups.h.
6513 (COMMON_OBS): Add cleanups.o.
6514 * defs.h (struct cleanup): Moved to cleanups.h.
6515 (do_cleanups,do_final_cleanups): Ditto.
6516 (discard_cleanups,discard_final_cleanups): Ditto
6517 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6518 (save_cleanups,save_final_cleanups): Ditto.
6519 (restore_cleanups,restore_final_cleanups): Ditto.
6520 (null_cleanup): Ditto.
6521 (make_my_cleanup,make_my_cleanup2): Ditto.
6522 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6523 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6524 (do_cleanups,do_final_cleanups): Ditto.
6525 (discard_cleanups,discard_final_cleanups): Ditto
6526 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6527 (save_cleanups,save_final_cleanups): Ditto.
6528 (restore_cleanups,restore_final_cleanups): Ditto.
6529 (null_cleanup): Ditto.
6530 (make_my_cleanup,make_my_cleanup2): Ditto.
6531 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6533 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6535 (make_cleanup_dyn_string_delete): Ditto.
6536 (make_cleanup_ui_file_delete): Ditto.
6537 (make_cleanup_ui_out_redirect_pop): Ditto.
6538 (make_cleanup_free_section_addr_info): Ditto.
6539 (make_cleanup_restore_integer): Ditto.
6540 (make_cleanup_unpush_target): Ditto.
6541 (make_cleanup_value_free_to_mark): Ditto.
6542 (make_cleanup_value_free): Ditto.
6543 (make_cleanup_free_so): Ditto.
6545 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6547 New option "set debug auto-load".
6548 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6549 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6550 (auto_load_safe_path_vec_update)
6551 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6553 (file_is_auto_load_safe): New parameters debug_fmt and ....
6554 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6555 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6556 caller by explanatory string.
6557 (_initialize_auto_load): Register "set debug auto-load".
6558 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6560 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6561 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6562 by explanatory string.
6563 * main.c (captured_main): Likewise.
6564 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6565 (source_section_scripts): Likewise.
6567 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6569 New option "set auto-load safe-path".
6570 * NEWS: New commands "set auto-load safe-path"
6571 and "show auto-load safe-path".
6572 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6573 (auto_load_safe_path, auto_load_safe_path_vec)
6574 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6575 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6576 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6577 (source_gdb_script_for_objfile): New variable is_safe. Call
6578 file_is_auto_load_safe. Return if it is not.
6579 (struct loaded_script): New field loaded.
6580 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6581 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6582 output "Missing" to "No".
6583 (_initialize_auto_load): New variable cmd. Initialize
6584 auto_load_safe_path. Register "set auto-load safe-path",
6585 "show auto-load safe-path" and "add-auto-load-safe-path".
6586 * auto-load.h (maybe_add_script): Add parameter loaded.
6587 (file_is_auto_load_safe): New declaration.
6588 * config.in: Regenerate.
6589 * configure: Regenerate.
6590 * configure.ac: New parameters --with-auto-load-safe-path
6591 and --without-auto-load-safe-path.
6592 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6593 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6594 * main.c (captured_main): Check file_is_auto_load_safe for
6596 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6597 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6598 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6601 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6603 auto-load: Implementation.
6604 * NEWS: New descriptions for "info auto-load",
6605 "info auto-load gdb-scripts", "info auto-load python-scripts",
6606 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6607 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6608 and "show auto-load-scripts". New description for "set auto-load",
6609 "show auto-load", "set auto-load gdb-scripts",
6610 "show auto-load gdb-scripts", "set auto-load python-scripts",
6611 "show auto-load python-scripts", "set auto-load local-gdbinit",
6612 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6613 "show auto-load libthread-db".
6614 * auto-load.c: Remove include python/python-internal.h. Add includes
6615 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6617 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6618 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6619 (gdbpy_global_auto_load): Rename to ...
6620 (global_auto_load): ... here.
6621 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6622 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6623 (script_language_gdb, source_gdb_script_for_objfile): New.
6624 (struct loaded_script): New field language.
6625 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6627 (maybe_add_script): Add parameter language. Drop redundant
6628 entry.full_path initialization. Initialize entry.language and
6630 (auto_load_objfile_script): Change parameter suffix to language.
6631 Remove the call of maybe_add_script.
6632 Call language->source_script_for_objfile.
6633 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6635 (collect_matching_scripts): Adjust it for
6636 struct collect_matching_scripts_data.
6637 (auto_load_info_scripts_pattern_nl): New variable.
6638 (info_auto_load_scripts): Rename to ...
6639 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6640 for struct collect_matching_scripts_data.
6641 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6642 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6643 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6644 (auto_load_info_cmdlist_get): New.
6645 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6646 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6647 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6648 "info auto-load local-gdbinit".
6649 * auto-load.h (struct script_language): New.
6650 (gdbpy_global_auto_load): Rename to ...
6651 (global_auto_load): ... here.
6652 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6653 (auto_load_local_gdbinit_loaded): New declarations.
6654 (maybe_add_script): New parameter language.
6655 (auto_load_objfile_script): Change parameter suffix to language.
6656 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6657 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6658 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6660 * linux-thread-db.c: Include auto-load.h and ctype.h.
6661 (auto_load_thread_db, show_auto_load_thread_db): New.
6662 (struct thread_db_info): New field filename.
6663 (delete_thread_db_info): Call xfree for FILENAME.
6664 (try_thread_db_load): Initialize FILENAME.
6665 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6666 if !AUTO_LOAD_THREAD_DB.
6667 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6668 (_initialize_thread_db): Install auto_load_thread_db
6669 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6670 as "info auto-load libthread-db".
6671 * main.c (captured_main): Rename gdbpy_global_auto_load to
6672 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6673 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6674 (print_gdb_help): Extend the help for 'local init file'.
6675 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6676 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6677 (auto_load_scripts): Rename to ...
6678 (auto_load_python_scripts): ... here, update the comment.
6679 (gdbpy_load_auto_script_for_objfile): New declaration.
6680 (show_auto_load_python_scripts, script_language_python)
6681 (gdbpy_load_auto_script_for_objfile): New.
6682 (source_section_scripts): Refactor the code.
6683 (load_auto_scripts_for_objfile): Rename to ...
6684 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6685 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6686 (info_auto_load_python_scripts): New.
6687 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6688 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6689 Register "set auto-load-scripts" as its deprecated alias. Register
6690 "info auto-load python-scripts". Register "info auto-load-scripts" as
6691 its deprecated alias.
6692 (load_auto_scripts_for_objfile): Rename to ...
6693 (gdbpy_load_auto_scripts_for_objfile): ... here.
6694 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6695 (gdbpy_load_auto_scripts_for_objfile): ... here.
6697 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6699 auto-load: Move files.
6700 * Makefile.in (SFILES): Add auto-load.c.
6701 (HFILES_NO_SRCDIR): Add auto-load.h.
6702 (COMMON_OBS): Add auto-load.o.
6703 (distclean): Change .gdbinit for gdb-gdb.gdb.
6704 * auto-load.c: New file, with parts from python/py-auto-load.c.
6705 * auto-load.h: New file, with parts from python/python.h.
6706 * configure: Regenerate.
6707 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6708 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6709 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6710 * main.c: Include auto-load.h.
6711 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6712 command.h, observer.h and progspace.h to auto-load.c. Add include
6714 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6715 (struct loaded_script, auto_load_pspace_data)
6716 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6717 (hash_loaded_script_entry, eq_loaded_script_entry)
6718 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6719 (maybe_add_script): Move to auto-load.c.
6720 (source_section_scripts): Change maybe_add_script parameters passing,
6721 use script_not_found_warning_print.
6722 (clear_section_scripts, auto_load_objfile_script)
6723 (auto_load_new_objfile, loaded_script_ptr)
6724 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6725 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6726 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6727 auto_load_new_objfile and info_auto_load_scripts initizations to
6729 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6731 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6734 * charset.c (find_charset_names): Remove variables ix and elt.
6735 Use free_char_ptr_vec.
6736 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6737 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6738 debugdir_end. New variable debugdir_len.
6739 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6740 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6742 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6743 and elt. Use free_char_ptr_vec.
6744 * source.c (add_path): Remove variables argv, arg and argv_index.
6745 New variables dir_vec, back_to, ix and name.
6746 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6747 make_cleanup_freeargv. Remove variable separator. Simplify the code
6748 no longer expecting DIRNAME_SEPARATOR.
6749 (openp): Remove variable p, p1 and len. New variables dir_vec,
6750 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6751 no longer expecting DIRNAME_SEPARATOR.
6752 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6753 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6755 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6756 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6757 (dirnames_to_char_ptr_vec): New functions.
6759 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6762 * source.c (add_path): Remove always true conditional 'p == 0' and
6763 unindent its code block.
6765 2012-04-17 Pedro Alves <palves@redhat.com>
6767 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6768 (FIELD_BITPOS_LVAL): ... this.
6769 (FIELD_BITPOS): New.
6770 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6771 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6772 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6774 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6776 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6777 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6778 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6781 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6783 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6784 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6785 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6786 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6787 * jv-lang.c (java_link_class_type): Likewise, once.
6788 * stabsread.c (read_enum_type): Likewise.
6790 2012-04-16 Yao Qi <yao@codesourcery.com>
6792 * common/agent.c (agent_run_command): Add one more parameter `len'.
6794 * common/agent.h: Update declaration.
6795 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6797 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6799 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6802 * value.c (value_actual_type): New function.
6803 * value.h (value_actual_type): New declaration.
6804 * varobj.c (update_type_if_necessary): New function.
6805 (varobj_create): Call value_actual_type instead of
6807 (install_dynamic_child): distinct changed and type changed MI variable
6809 (update_dynamic_varobj_children): Updated for install_dynamic_child
6810 change. All callers updated.
6811 (varobj_update): Support for MI variable object type change if
6812 the value changed and RTTI is used to determine the type.
6813 (create_child_with_value): Call value_actual_type instead of
6815 (adjust_value_for_child_access): Extended with a new parameter which
6816 specify whether the given value should be casted to enclosing type.
6817 All callers updated.
6819 2012-04-14 Yao Qi <yao@codesourcery.com>
6821 Import gnulib module inttypes from git
6822 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6823 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6824 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6825 gnulib/m4/inttypes-pri.m4
6826 * aclocal.m4, config.in, configure: Regenerated.
6827 * gnulib/Makefile.am: Update.
6828 * gnulib/Makefile.in: Update.
6829 * gnulib/m4/gnulib-cache.m4: Update.
6830 * gnulib/m4/gnulib-comp.m4: Update.
6831 * gnulib/inttypes.in.h: New.
6832 * gnulib/m4/inttypes-pri.m4: New.
6833 * gnulib/m4/inttypes.m4: New.
6835 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6837 * infrun.c (resume): Update PC address to the real PC after
6838 preparing to do displaced stepping.
6840 2012-04-12 Doug Evans <dje@google.com>
6842 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6843 All callers updated.
6845 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6847 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6849 2012-04-12 Doug Evans <dje@google.com>
6851 * dwarf2read.c (create_all_type_units): Renamed from
6852 create_debug_types_hash_table. All callers updated.
6854 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6855 local type_sig to sig_type, type_offset to type_offset_in_tu.
6856 (hash_signatured_type): Renamed from hash_type_signature,
6857 all callers updated.
6858 (eq_signatured_type): Renamed from eq_type_signature,
6859 all callers updated.
6860 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6861 (process_enumeration_scope): Ditto.
6862 (lookup_signatured_type_at_offset): Ditto.
6863 (load_full_type_unit, read_signatured_type): Ditto.
6865 2012-04-12 Yao Qi <yao@codesourcery.com>
6867 * remote.c (async_remote_interrupt): Correct function name in
6869 (async_remote_interrupt_twice): Ditto.
6871 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6873 * source.c (find_and_open_source): Consistently pass resulting
6874 full path through xfullpath.
6876 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6878 Provide more specific displaced-stepping memory error message.
6879 * infrun.c (displaced_step_prepare): New variable status. Call
6880 target_read_memory instead of read_memory, provide more specific
6883 2012-04-11 Tristan Gingold <gingold@adacore.com>
6886 * darwin-nat.c (darwin_execvp): Revert previous patch.
6888 2012-04-11 Tristan Gingold <gingold@adacore.com>
6891 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6894 2012-04-11 Tristan Gingold <gingold@adacore.com>
6896 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6899 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6901 New command 'explore' which helps explore values and types in
6903 * NEWS: Add an entry about the new 'explore' command.
6904 * data-directory/Makefile.in: Add gdb/command/explore.py
6905 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6906 command using the GDB Python API.
6908 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6910 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6911 extension in jump target calculation.
6913 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6915 * mips-tdep.c (mips32_next_pc): Handle JALX.
6917 2012-04-10 Yao Qi <yao@codesourcery.com>
6919 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6921 2012-04-10 Yao Qi <yao@codesourcery.com>
6923 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6924 and gnulib/m4/gnulib-tool.m4.
6926 2012-04-10 Doug Evans <dje@google.com>
6928 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6929 (load_partial_dies): Clarify comment.
6930 (find_partial_die): Support rereading type units.
6931 Clarify CU handling, if we know offset is in CU, don't search for the
6932 containing CU. Add comment regarding memory waste.
6934 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6936 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6937 i386/x32-avx and i386/x32-avx-linux.
6938 (i386/x32-expedite): New.
6939 (i386/x32-linux-expedite): Likewise.
6940 (i386/x32-avx-expedite): Likewise.
6941 (i386/x32-avx-linux-expedite): Likewise.
6942 ($(outdir)/i386/x32.dat): Likewise.
6943 ($(outdir)/i386/x32-linux.dat): Likewise.
6944 ($(outdir)/i386/x32-avx.dat): Likewise.
6945 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6947 * features/i386/x32-avx-linux.xml: New file.
6948 * features/i386/x32-avx.xml: Likewise.
6949 * features/i386/x32-core.xml: Likewise.
6950 * features/i386/x32-linux.xml: Likewise.
6951 * features/i386/x32.xml: Likewise.
6953 * features/i386/x32-avx-linux.c: New. Generated.
6954 * features/i386/x32-avx.c: Likewise.
6955 * features/i386/x32-linux.c: Likewise.
6956 * features/i386/x32.c: Likewise.
6957 * regformats/i386/x32-avx-linux.dat: Likewise.
6958 * regformats/i386/x32-avx.dat: Likewise.
6959 * regformats/i386/x32-linux.dat: Likewise.
6960 * regformats/i386/x32.dat: Likewise.
6962 2012-04-10 Tristan Gingold <gingold@adacore.com>
6964 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6965 code to kill the inferior.
6967 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6969 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6971 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6973 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6974 (yyvsp): New defines.
6975 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6977 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6979 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6981 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6983 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6986 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6988 * sparc64-tdep.c (sparc64_store_arguments)
6989 (sparc64_store_arguments): Fix coding style.
6991 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6993 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6994 complex floats, adjust some related comments and tighten a related
6996 (sparc64_extract_return_value): Handle complex floats.
6998 2012-04-07 Doug Evans <dje@google.com>
7000 * dwarf2read.c (load_partial_dies): Change condition to assert.
7002 2012-04-06 Doug Evans <dje@google.com>
7004 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7007 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7009 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7011 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7012 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7015 2012-04-05 Keith Seitz <keiths@redhat.com>
7017 * linespec.c (decode_compound): Remove.
7018 (enum offset_relative_sign): New enum.
7019 (struct line_offset): New struct.
7020 (struct linespec): New struct.
7021 (struct linespec_state): Move file_symtabs,
7022 user_filename, and user_function into struct linespec.
7023 Make result an anonymous struct holding vectors of
7024 symbolp and minsym_and_objfile_d.
7025 Add language member.
7026 (enum ls_token_type): New enum.
7027 (linespec_keywords): New array.
7028 (struct ls_token): New struct.
7029 (struct ls_parser): New struct.
7030 (linespec_lexer_lex_number): New function.
7031 (linespec_lexer_lex_keyword): New function.
7032 (is_ada_operator): New function.
7033 (skip_quote_char): New function.
7034 (copy_token_string): New function.
7035 (is_closing_quote_enclosed): New function.
7036 (find_parameter_list_end): New function.
7037 (linespec_lexer_lex_string): New function.
7038 (linespec_lexer_lex_one): New function.
7039 (linespec_lexer_consume_token): New function.
7040 (linespec_lexer_peek_token): New function.
7041 (cplusplus_error): Remove unused function.
7042 (find_methods): Update comment.
7043 (find_toplevel_char): Return const.
7044 (is_objc_method_format): Remove unused function.
7045 (find_toplevel_string): New function.
7046 (is_linespec_boundary): Remove.
7047 (symbol_not_found_error): New function.
7048 (find_method_overload_end): Remove function.
7049 (unexpected_linespec_error): New function.
7050 (keep_name_info): Remove.
7051 (linespec_parse_line_offset): New function.
7052 (linespec_parse_basic): New function.
7053 (canonicalize_linespec): New function.
7054 (decode_line_internal): Remove.
7055 (create_sals_line_offset): New function adapted from
7057 (convert_linespec_to_sals): New function.
7058 (parse_linespec): New function.
7059 (linespec_parser_new): New function.
7060 (linespec_state_destructor): Change parameter type to
7061 struct linespec_state *.
7062 Add language parameter.
7063 Remove freeing of moved members.
7064 (linespec_parser_delete): New function.
7065 (decode_line_full): Use parse_linespec and linespec_parser_new.
7066 (decode_line_1): Likewise.
7067 (decode_indirect): Rename to ...
7068 (linespec_expression_to_pc): ... this and rewrite
7069 to simply find CORE_ADDR, storing this result for later
7071 (locate_first_half): Remove.
7072 (deocde_objc): Add parameter LS.
7073 Initialize new struct collect_info members.
7074 Handle minimal symbols, too.
7075 (decode_compound): Delete.
7076 (lookup_prefix_sym): Rewrite.
7077 (compare_msymbols): New function.
7078 (find_method): Rewrite.
7079 Do not call cplusplus_error.
7080 (symtabs_from_filename): Rewrite.
7081 (collect_function_symbols): Delete.
7082 (find_function_symbols): Rewrite without ARGPTR-style
7084 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7085 (decode_dollar): Adapted and renamed to ...
7086 (linespec_parse_variable): ... this.
7087 (find_linespec_symbols): New function.
7088 (decode_label): Adapted and renamed to ...
7089 (find_label_symbols): ... this.
7090 (decode_digits_list_mode): Add and use LS argument.
7091 (decode_digits_ordinary): Likewise.
7092 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7093 If in list mode, allow any symbol class. Otherwise, only
7094 permit LOC_BLOCK symbols.
7095 (minsym_found): Update comments.
7096 (search_minsyms_for_name): Do not convert the matching symbol
7097 into a SAL. Simply push the symbol and objfile into the
7099 (decode_variable): Delete. Contents adapted into
7100 find_linespec_symbols.
7102 * cp-support.c (SKIP_SPACE): Remove.
7103 (operator_tokens): Remove unused global.
7104 (cp_validate_operator): Remove.
7105 * cp-support.h (cp_validate_operator): Remove declaration.
7107 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7109 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7110 for TYPE_VPTR_FIELDNO.
7111 * valprint.c (valprint_check_validity): Make it global, move the
7112 function comment ...
7113 * value.h (valprint_check_validity): ... to this new declaration.
7115 2012-04-02 Tristan Gingold <gingold@adacore.com>
7117 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7118 the STATE32 api for i386 state.
7119 (i386_darwin_store_inferior_registers): Likewise.
7121 2012-04-02 Tristan Gingold <gingold@adacore.com>
7123 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7125 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7128 2012-04-02 Tristan Gingold <gingold@adacore.com>
7131 * darwin-nat.c (darwin_execvp): Set binary preference.
7133 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7135 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7137 2012-03-30 Tom Tromey <tromey@redhat.com>
7139 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7140 of TRY_CATCH. Fix error handling.
7141 * python/py-value.c (convert_value_from_python): Move 'old'
7142 declaration to innermost scope.
7144 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7145 Andrey Smirnov <andrew.smirnov@gmail.com>
7147 -Wshadow warning fix.
7148 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7149 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7150 Adjust code accordingly.
7152 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7154 * ada-lang.c (symbol_completion_add): Rename parameter
7155 "encoded" into "encoded_p". Ajust code and documentation
7158 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7159 Andrey Smirnov <andrew.smirnov@gmail.com>
7161 -Wshadow warning fix.
7162 * ada-lang.c (symbol_completion_add): Rename parameter
7163 "wild_match" into wild_match_p. Update code and documentation
7166 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7168 * ada-lang.c (symbol_completion_match): Rename parameter
7169 "encoded" into "encoded_p". Ajust code and documentation
7172 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7173 Andrey Smirnov <andrew.smirnov@gmail.com>
7175 -Wshadow warning fix.
7176 * ada-lang.c (symbol_completion_match): Rename parameter
7177 "wild_match" into "wild_match_p". Adjust code and function
7178 documentation accordingly.
7180 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7181 Andrey Smirnov <andrew.smirnov@gmail.com>
7183 -Wshadow warning fix.
7184 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7185 "symbol_info" into "info". Adjust code accordingly.
7186 (ada_lookup_symbol): Likewise.
7188 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7190 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7191 of this function's documentation.
7193 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7194 Andrey Smirnov <andrew.smirnov@gmail.com>
7196 -Wshadow warning fix.
7197 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7198 variable into "wild_match_p". Adjust code accordingly.
7200 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7201 Andrey Smirnov <andrew.smirnov@gmail.com>
7203 -Wshadow warning fix.
7204 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7205 parameter into "wild_match_p". Adjust code accordingly.
7206 Document this parameter in the function description.
7208 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7209 Andrey Smirnov <andrew.smirnov@gmail.com>
7211 -Wshadow warning fix.
7212 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7213 "wild_match" parameter to "wild_match_p" (-Wshadow).
7215 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7217 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7218 in function documentation.
7220 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7221 Andrey Smirnov <andrew.smirnov@gmail.com>
7223 -Wshadow warning fix.
7224 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7225 variable into wild_match_p. Adjust code accordingly.
7227 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7228 Andrey Smirnov <andrew.smirnov@gmail.com>
7230 * ada-valprint.c (ada_val_print_1): Move the code handling
7231 TYPE_CODE_ENUM inside its own lexical block. Declare
7232 variables len and val there, instead of in the function's
7233 top level block. Avoid declaring deref_val again in a way
7234 that shadows another variable of the same name declared
7235 in one of the up-level blocks. Just re-use the up-level
7238 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7240 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7241 Replace block_found argument by symbol_info. Adjust
7242 implementation accordingly. Add function documentation.
7243 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7245 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7246 * ada-exp.y (write_object_renaming): Adjust to new
7247 ada_lookup_encoded_symbol API.
7249 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7251 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7254 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7256 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7257 (v850_register_name): Add the mpu and fpu register names.
7258 (v850e_register_name): Add the mpu and fpu register names.
7259 (v850e2_register_name): New function.
7260 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7263 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7265 * NEWS: Add entry for Ada varobj support.
7267 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7269 * varobj.c (default_value_is_changeable_p): New function,
7270 extracted from varobj_value_is_changeable_p. Add declaration.
7271 (ada_value_is_changeable_p): New function, extracted from
7272 varobj_value_is_changeable_p. Add declaration.
7273 (struct language_specific): New field "value_is_changeable_p".
7274 (languages): Add entries for new field.
7275 (varobj_create): Set language before calling install_new_value.
7276 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7277 "value_is_changeable_p" language callback.
7279 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7281 * ada-varobj.h, ada-varobj.c: New files.
7282 * Makefile.in (SFILES): Add ada-varobj.c.
7283 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7284 (COMMON_OBS): Add ada-varobj.o.
7286 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7288 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7289 (struct language_specific): New field "value_has_mutated".
7290 (languages): Set field "value_has_mutated" in each entry of array.
7291 (varobj_value_has_mutated): New function.
7292 (varobj_udpdate): Add handling of type mutation.
7293 (value_of_root): Add handling of type mutation.
7294 (ada_value_has_mutated): New function.
7296 2012-03-28 Pedro Alves <palves@redhat.com>
7298 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7299 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7301 2012-03-28 Tom Tromey <tromey@redhat.com>
7303 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7304 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7307 2012-03-28 Tom Tromey <tromey@redhat.com>
7309 * .dir-locals.el: New file.
7311 2012-03-28 Pedro Alves <palves@redhat.com>
7313 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7315 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7317 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7320 2012-03-27 Pedro Alves <palves@redhat.com>
7322 Eliminate struct ui_stream.
7324 * ui-out.h (struct ui_stream): Delete.
7325 (ui_out_field_stream): Adjust prototype.
7326 (ui_out_stream_new, ui_out_stream_delete)
7327 (make_cleanup_ui_out_stream_delete): Delete declarations.
7328 * ui-out.c (ui_out_field_stream): Change prototype to take a
7329 ui_file instead of a ui_stream. Adjust.
7330 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7331 (make_cleanup_ui_out_stream_delete): Delete.
7332 * breakpoint.c (print_breakpoint_location)
7333 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7334 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7335 * disasm.c (dump_insns): Ditto.
7336 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7338 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7339 ui_stream/ui_out_stream_new.
7340 * infcmd.c (print_return_value): Ditto.
7341 * osdata.c (info_osdata_command): Don't allocate a local
7343 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7344 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7345 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7346 allocate a local ui_stream.
7347 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7348 instead of ui_stream/ui_out_stream_new.
7349 (list_args_or_locals): Don't allocate a local ui_stream.
7350 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7351 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7352 ui_stream/ui_out_stream_new.
7353 * cli/cli-setshow.c (do_setshow_command): Ditto.
7355 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7357 * arm-linux-tdep.c (arm_linux_init_abi): Call
7358 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7359 * arm-tdep.c (arm_process_record): New function.
7360 (deallocate_reg_mem): New function.
7361 (decode_insn): New function.
7362 (thumb_record_branch): New function.
7363 (thumb_record_ldm_stm_swi(): New function.
7364 (thumb_record_misc): New function.
7365 (thumb_record_ld_st_stack): New function.
7366 (thumb_record_ld_st_imm_offset): New function.
7367 (thumb_record_ld_st_reg_offset(): New function.
7368 (thumb_record_add_sub_cmp_mov): New function.
7369 (thumb_record_shift_add_sub): New function.
7370 (arm_record_coproc_data_proc): New function.
7371 (arm_record_coproc): New function.
7372 (arm_record_b_bl): New function.
7373 (arm_record_ld_st_multiple): New function.
7374 (arm_record_ld_st_reg_offset): New function.
7375 (arm_record_ld_st_imm_offset): New function.
7376 (arm_record_data_proc_imm): New function.
7377 (arm_record_data_proc_misc_ld_str): New function.
7378 (arm_record_extension_space): New function.
7379 (arm_record_strx): New function.
7380 (sbo_sbz): New function.
7381 (struct insn_decode_record): New structure for arm insn record.
7382 (REG_ALLOC): New macro for reg allocations.
7383 (MEM_ALLOC): New macro for memory allocations.
7384 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7386 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7388 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7389 (store_register): Likewise.
7391 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7393 * MAINTAINERS (Write After Approval): Add myself to the list.
7395 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7397 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7398 Describe also the option "auto".
7400 2012-03-22 Richard Henderson <rth@redhat.com>
7402 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7403 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7405 2012-03-22 Richard Henderson <rth@redhat.com>
7407 * jit.c (jit_read_code_entry): Compute alignment and offset of
7408 int64_t member before computing entry_size.
7410 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7412 Python scripting: Add new method Value.referenced_value to
7413 gdb.Value which can dereference pointer as well as reference
7415 * NEWS: Add entry under 'Python scripting' about the new method
7416 Value.referenced_value on gdb.Value objects.
7417 * python/py-value.c (valpy_referenced_value): New function
7418 defining a new method on gdb.Value objects which can dereference
7419 pointer and reference values.
7421 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7423 * MAINTAINERS (Write After Approval): Add myself to the list.
7425 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7427 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7428 in addition to "main".
7430 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7432 * expression.h (op_name): Add declaration.
7433 * expprint.c (op_name): Remove declaration. Make non-static.
7434 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7436 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7438 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7440 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7441 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7442 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7443 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7444 (linux_nat_get_siginfo): Likewise.
7445 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7446 (linux_nat_get_siginfo): Likewise.
7447 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7448 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7449 * procfs.c (gdb_siginfo_t): Likewise.
7451 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7453 * .gitignore: Ignore more files.
7455 2012-03-20 Pedro Alves <palves@redhat.com>
7457 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7460 2012-03-20 Yao Qi <yao@codesourcery.com>
7462 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7465 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7467 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7468 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7469 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7471 * dwarf2expr.h (cu_offset, sect_offset): New types.
7472 (struct dwarf_expr_context_funcs) <dwarf_call>
7473 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7475 (struct dwarf_expr_context) <len>: Improve the comment.
7476 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7477 cu_offset and sect_offset.
7478 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7479 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7480 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7481 * dwarf2loc.h: Include dwarf2expr.h.
7482 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7484 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7485 Improve the comment.
7486 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7487 (struct signatured_type, struct line_header, struct partial_die_info)
7488 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7489 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7490 (get_die_type_at_offset, create_cus_from_index)
7491 (create_signatured_type_table_from_index, dw2_get_file_names)
7492 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7493 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7494 (create_debug_types_hash_table, process_psymtab_comp_unit)
7495 (load_partial_comp_unit, create_all_comp_units)
7496 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7497 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7498 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7499 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7500 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7501 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7502 (find_partial_die, read_attribute_value, lookup_die_type)
7503 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7504 (is_ref_attr): New function comment.
7505 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7506 Use cu_offset and sect_offset.
7507 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7508 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7509 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7510 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7511 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7512 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7513 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7516 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7519 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7520 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7522 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7524 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 * NEWS: Describe new options --init-command=FILE, -ix and
7527 --init-eval-command=COMMAND, -iex.
7528 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7529 CMDARG_INIT_COMMAND.
7530 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7531 "init-command", "init-eval-command", "ix" and "iex" to the variable
7532 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7533 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7534 (print_gdb_help): Describe --init-command=FILE, -ix and
7535 --init-eval-command=COMMAND, -iex.
7537 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7540 * main.c (struct cmdarg): Move it here from main. Add more comments.
7541 (cmdarg_s, VEC (cmdarg_s)): New.
7542 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7543 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7544 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7545 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7548 2012-03-19 Tom Tromey <tromey@redhat.com>
7550 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7552 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7555 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7558 2012-03-16 Chris January <chris.january@allinea.com>
7560 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7563 2012-03-16 Chris January <chris.january@allinea.com>
7565 * source.c (add_path): Use memmove instead of strcpy because the
7568 2012-03-16 Joel Brobecker <brobecker@adacore.com>
7570 * value.h (set_value_parent): Add declaration.
7571 * value.c (set_value_parent): New function.
7572 (value_address): If VALUE->PARENT is not NULL, then use it as
7573 the base address instead of VALUE->LOCATION.address.
7574 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7575 the same as OBJ's address. Adjust V's offset accordingly.
7578 2012-03-16 Gary Benson <gbenson@redhat.com>
7580 PR breakpoints/10738
7581 * dwarf2read.c (use_deprecated_index_sections): New global.
7582 (struct partial_die_info): New member may_be_inlined.
7583 (read_partial_die): Set may_be_inlined where appropriate.
7584 (add_partial_subprogram): Add partial symbols for partial
7585 DIEs that may be inlined.
7586 (new_symbol_full): Add inlined subroutines to the current
7588 (write_psymtabs_to_index): Bump version number.
7589 (dwarf2_read_index): Read only version 6 indices unless
7590 use_deprecated_index_sections is set.
7591 * linespec.c (symbol_and_data_callback): New structure.
7592 (iterate_inline_only): New function.
7593 (iterate_over_all_matching_symtabs): New argument
7594 "include_inline". If nonzero, also call the callback for
7595 symbols representing inlined subroutines.
7596 (lookup_prefix_sym): Pass extra argument to the above.
7597 (find_function_symbols): Likewise.
7598 (add_matching_symbols_to_info): Likewise.
7599 * NEWS: Mention that GDB can now set breakpoints on inlined
7602 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7604 * p-typeprint.c (pascal_type_print_method_args):
7605 Fix display of parameter of methods.
7607 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7609 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7610 Add missing prototype.
7612 2012-03-16 Yao Qi <yao@codesourcery.com>
7613 Jan Kratochvil <jan.kratochvil@redhat.com>
7615 Fix false compilation warning.
7616 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7618 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7619 Pedro Alves <pedro@codesourcery.com>
7621 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7622 (arm_register_g_packet_guesses): New function.
7623 (arm_gdbarch_init): Don't force a target description with
7624 registers when the executable is detected as M-profile. Instead
7625 set gdbarch->tdep->is_m. Register `g' packet guesses.
7626 (_initialize_arm_tdep): Initialize the new target description.
7627 * features/arm-with-m-fpa-layout.xml: New description.
7628 * features/arm-with-m-fpa-layout.c: New, generated.
7630 2012-03-15 Joel Brobecker <brobecker@adacore.com>
7632 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7633 Update function description.
7634 (insert_bp_location): Do not wipe bl->target_info out.
7635 * mem-break.c: #include "gdb_string.h".
7636 (default_memory_insert_breakpoint): Do not call target_read_memory
7637 with a pointer to the breakpoint's shadow_contents buffer. Use
7638 a local buffer instead.
7639 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7641 2012-03-15 Tom Tromey <tromey@redhat.com>
7643 * NEWS: Mention "info vtbl", not "info vtable".
7644 * cp-support.c (info_vtbl_command): Fix comment.
7645 (_initialize_cp_support): Fix text.
7647 2012-03-15 Tom Tromey <tromey@redhat.com>
7649 * cp-valprint.c (cp_print_value_fields): Use
7650 print_function_pointer_address for vtable slot.
7652 2012-03-15 Tom Tromey <tromey@redhat.com>
7654 * gnu-v3-abi.c (struct value_and_voffset): New.
7655 (hash_value_and_voffset, eq_value_and_voffset)
7656 (compare_value_and_voffset, compute_vtable_size)
7657 (print_one_vtable, gnuv3_print_vtable): New functions.
7658 (init_gnuv3_ops): Initialize 'print_vtable' field.
7659 * cp-support.c (info_vtbl_command): New function.
7660 (_initialize_cp_support): Add "info vtbl".
7661 * cp-abi.h (cplus_print_vtable): Declare.
7662 (struct cp_abi_ops) <print_vtable>: New field.
7663 * cp-abi.c (cplus_print_vtable): New function.
7666 2012-03-15 Tom Tromey <tromey@redhat.com>
7668 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7669 iterate_over_symbols.
7671 2012-03-14 Doug Evans <dje@google.com>
7673 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7674 DW_OP_GNU_parameter_ref.
7676 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7678 Fix double prompt of 'interpreter-exec mi'.
7679 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7680 (mi_interpreter_resume): use it.
7681 (mi_execute_command_input_handler): New function.
7682 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7683 mi_execute_command_input_handler.
7685 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7687 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7689 (darwin_debug_port_info): Make static.
7690 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7691 * machoread.c (_initialize_machoread): Add prototype.
7692 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7693 (i386_darwin_set_control, i386_darwin_get_control)
7694 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7695 i386_darwin_get_status, i386_darwin_get_control):
7696 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7698 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7700 * ax-gdb.c (gen_usual_unary): Remove special handling of
7701 enum and bool types.
7703 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7705 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7707 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7709 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7711 2012-03-13 Chris January <chris.january@allinea.com>
7713 * aix-thread.c (fill_sprs): Store the floating point registers
7714 at the correct offsets into vals.
7716 2012-03-13 Doug Evans <dje@google.com>
7718 * NEWS: Mention symbol-reloading has been deleted.
7719 * symfile.c (symbol_reloading): Delete.
7720 (show_symbol_reloading): Delete.
7721 (_initialize_symfile): Delete set/show symbol-reloading.
7723 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7724 read_in_chain until we have successfully read it in.
7725 (load_full_comp_unit): Ditto.
7726 (read_signatured_type): Add comment.
7728 2012-03-13 Chris January <chris.january@allinea.com>
7730 * stabsread.c (fix_common_block): Change type of valu argument
7733 2012-03-13 Chris January <chris.january@allinea.com>
7735 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7738 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7740 * common/linux-procfs.c (linux_proc_get_int): New, from
7741 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7743 (linux_proc_get_tgid): Only call linux_proc_get_int.
7744 (linux_proc_get_tracerpid): New.
7745 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7746 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7747 linux_proc_pid_has_state.
7748 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7749 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7750 (linux_ptrace_attach_warnings): New.
7751 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7753 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7754 (linux_nat_attach): New variables ex, buffer, message and message_s.
7755 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7757 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7759 * Makefile.in (linux-ptrace.o): New.
7760 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7762 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7763 * common/linux-ptrace.c: New file.
7764 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7765 * config/arm/linux.mh: Likewise.
7766 * config/i386/linux.mh: Likewise.
7767 * config/i386/linux64.mh: Likewise.
7768 * config/ia64/linux.mh: Likewise.
7769 * config/m32r/linux.mh: Likewise.
7770 * config/m68k/linux.mh: Likewise.
7771 * config/mips/linux.mh: Likewise.
7772 * config/pa/linux.mh: Likewise.
7773 * config/powerpc/linux.mh: Likewise.
7774 * config/powerpc/ppc64-linux.mh: Likewise.
7775 * config/powerpc/spu-linux.mh: Likewise.
7776 * config/s390/s390.mh: Likewise.
7777 * config/sparc/linux.mh: Likewise.
7778 * config/sparc/linux64.mh: Likewise.
7779 * config/xtensa/linux.mh: Likewise.
7780 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7781 common/linux-procfs.c.
7782 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7784 2012-03-13 Hui Zhu <teawater@gmail.com>
7785 Pedro Alves <palves@redhat.com>
7787 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7788 CREATE_BREAKPOINT_FLAGS_INSERTED.
7789 (create_breakpoint_sal, create_breakpoints_sal)
7790 (base_breakpoint_create_breakpoints_sal)
7791 (tracepoint_create_breakpoints_sal)
7792 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7794 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7795 (ftrace_command, strace_command): Adjust.
7796 (create_tracepoint_from_upload): Pass
7797 CREATE_BREAKPOINT_FLAGS_INSERTED.
7798 * breakpoint.h (enum breakpoint_create_flags): New.
7799 (create_breakpoint): New flags parameter.
7800 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7801 * python/py-breakpoint.c (bppy_init): Adjust.
7802 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7803 * spu-tdep.c (spu_catch_start): Adjust.
7805 2012-03-13 Pedro Alves <palves@redhat.com>
7806 Hui Zhu <teawater@gmail.com>
7807 Yao Qi <yao@codesourcery.com>
7809 * remote.c (struct remote_state): New field `starting_up'.
7810 (remote_start_remote): Set and clear it.
7811 (remote_can_download_tracepoint): If starting up, return false.
7813 2012-03-13 Yao Qi <yao@codesourcery.com>
7815 * inferior.h (struct inferior): Remove fields any_syscall_count,
7816 syscalls_counts and total_syscalls_count. Move them to new
7817 struct catch_syscall_inferior_data in breakpoint.c.
7818 * breakpoint.c: Call DEF_VEC_I(int).
7819 (struct catch_syscall_inferior_data): New.
7820 (get_catch_syscall_inferior_data): New.
7821 (catch_syscall_inferior_data_cleanup): New.
7822 (insert_catch_syscall): Update to access data in
7823 struct catch_syscall_inferior_data.
7824 (insert_catch_syscall): Likewise.
7825 (remove_catch_syscall): Likewise.
7826 (remove_catch_syscall): Likewise.
7827 (is_syscall_catchpoint_enabled): Likewise.
7828 (add_catch_command): Likewise.
7829 (_initialize_breakpoint): Register cleanup.
7830 * breakpoint.h: Removed DEF_VEC_I(int).
7831 * dwarf2loc.c: Call DEF_VEC_I(int).
7832 * mi/mi-main.c: Likewise.
7834 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7836 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7838 2012-03-12 Chris January <chris.january@allinea.com>
7840 * aix-thread.c (_initialize_aix_thread): Add prototype.
7841 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7842 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7844 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7846 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7847 include of "amd64-nat.h".
7849 2012-03-12 Tom Tromey <tromey@redhat.com>
7851 * buildsym.c (record_pending_block): Now static.
7852 * buildsym.h: (record_pending_block): Remove.
7854 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7856 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7858 2012-03-09 Tom Tromey <tromey@redhat.com>
7860 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7861 producer_is_gxx_lt_4_6>: New fields.
7862 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7864 2012-03-09 Tom Tromey <tromey@redhat.com>
7866 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7868 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7870 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7873 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7875 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7877 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7879 Fix -Wmissing-prototypes build.
7880 * arm-linux-nat.c (get_thread_id): Make it static.
7881 * xtensa-linux-nat.c (get_thread_id): Likewise.
7883 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7885 * server.c (process_point_options): If a conditional expression
7886 is found, only print a message if remote_debug is nonzero.
7888 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7890 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7891 of internal error for unknown/unsupported types.
7893 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7895 Fix CU relative vs. absolute DIE offsets.
7896 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7897 offset to offset_in_cu.
7898 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7900 (dwarf2_fetch_die_location_block): Rename parameter offset to
7901 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7903 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7905 * libunwind-frame.c: Rename to ...
7906 * ia64-libunwind-tdep.c: ... here.
7907 * libunwind-frame.h: Rename to ...
7908 * ia64-libunwind-tdep.h: ... here.
7909 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7910 ia64-libunwind-tdep.h.
7911 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7912 * README (--with-libunwind): Rename to ...
7913 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7914 * config.in: Regenerate.
7915 * configure: Regenerate.
7916 * configure.ac: New option --with-libunwind-ia64, make the
7917 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7918 Remove AC_DEFINE for HAVE_LIBUNWIND.
7919 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7920 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7921 Rename libunwind-frame in the general comment.
7922 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7923 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7924 Move forward declarations inside #ifndef. Rename libunwind-frame in
7925 the general comment.
7926 * ia64-tdep.c: Rename libunwind-frame.h #include to
7927 ia64-libunwind-tdep.h.
7928 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7929 (ia64_libunwind_descr): Rename libunwind-frame to
7930 ia64-libunwind-tdep in these function comments.
7931 * ia64-tdep.h: Rename libunwind-frame.h #include to
7932 ia64-libunwind-tdep.h.
7933 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7934 ia64-libunwind-tdep in that data comment.
7936 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7938 * libunwind-frame.h (struct frame_unwind): New declaration.
7940 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7942 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7943 "set breakpoint condition-evaluation" command.
7945 2012-03-08 Tristan Gingold <gingold@adacore.com>
7947 * sparc-stub.c: Move to stubs/
7948 * sh-stub.c: Likewise.
7949 * m68k-stub.c: Likewise.
7950 * m32r-stub.c: Likewise.
7951 * i386-stub.c: Likewise.
7953 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7955 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7956 linux_get_siginfo_type.
7958 * m68klinux-nat.c: Include "gdb_proc_service.h".
7959 (PTRACE_GET_THREAD_AREA): Define.
7960 (ps_get_thread_area): New function.
7962 2012-03-08 Yao Qi <yao@codesourcery.com>
7964 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7966 (remote_query_attached): Likewise.
7967 (remote_static_tracepoint_marker_at): Likewise.
7968 (remote_set_permissions): Likewise.
7969 (remote_detach_1, extended_remote_attach_1): Likewise.
7970 (send_g_packet, remote_vkill): Likewise.
7971 (extended_remote_disable_randomization): Likewise.
7972 (remote_add_target_side_condition): Likewise.
7973 (remote_insert_breakpoint): Likewise.
7974 (remote_remove_breakpoint): Likewise.
7975 (remote_insert_watchpoint): Likewise.
7976 (remote_remove_watchpoint): Likewise.
7977 (remote_insert_hw_breakpoint): Likewise.
7978 (remote_insert_hw_breakpoint): Likewise.
7979 (remote_remove_hw_breakpoint): Likewise.
7980 (remote_download_command_source): Likewise.
7981 (remote_download_tracepoint): Likewise.
7982 (remote_download_trace_state_variable): Likewise.
7983 (remote_disable_tracepoint): Likewise.
7984 (remote_trace_set_readonly_regions): Likewise.
7985 (remote_get_tracepoint_status): Likewise.
7986 (remote_trace_find): Likewise.
7987 (remote_get_trace_state_variable_value): Likewise.
7988 (remote_set_disconnected_tracing): Likewise.
7989 (remote_set_circular_trace_buffer): Likewise.
7990 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7991 (remote_use_agent): Likewise.
7992 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7995 2012-03-07 Pedro Alves <palves@redhat.com>
7997 * NEWS: Mention QProgramSignals.
7998 * inferior.h (update_signals_program_target): Declare.
7999 * infrun.c: (update_signals_program_target): New.
8000 (handle_command): Update the target of the new program signals
8002 * remote.c (PACKET_QProgramSignals): New enum.
8003 (last_program_signals_packet): New global.
8004 (remote_program_signals): New.
8005 (remote_start_remote): Update the target with the program signals
8007 (remote_protocol_features): Add entry for QPassSignals.
8008 (remote_open_1): Free anc clear last_program_signals_packet.
8009 (init_remote_ops): Install remote_program_signals.
8010 * target.c (update_current_target): Adjust.
8011 (target_program_signals): New.
8012 * target.h (struct target_ops) <to_program_signals>: New field.
8013 (target_program_signals): Declare.
8015 2012-03-07 Pedro Alves <palves@redhat.com>
8017 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8020 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8022 * m68klinux-nat.c (getregs_supplies): Make static.
8023 (getfpregs_supplies): Likewise.
8024 (have_ptrace_getregs): Likewise.
8026 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8028 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8029 in call to get_die_type_at_offset.
8031 2012-03-06 Stan Shebs <stan@codesourcery.com>
8033 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8034 * mi/mi-cmd-disas.c: Ditto.
8035 * mi/mi-cmd-env.c: Ditto.
8036 * mi/mi-cmd-file.c: Ditto.
8037 * mi/mi-cmd-stack.c: Ditto.
8038 * mi/mi-cmd-target.c: Ditto.
8039 * mi/mi-cmd-var.c: Ditto.
8040 * mi/mi-cmds.c: Ditto.
8041 * mi/mi-cmds.h: Ditto.
8042 * mi/mi-console.c: Ditto.
8043 * mi/mi-getopt.c: Ditto.
8044 * mi/mi-getopt.h: Ditto.
8045 * mi/mi-interp.c: Ditto.
8046 * mi/mi-main.c: Ditto.
8047 * mi/mi-out.c: Ditto.
8048 * mi/mi-parse.c: Ditto.
8049 * mi/mi-parse.h: Ditto.
8050 * mi/mi-symbol-cmds.c: Ditto.
8052 * mi/mi-getopt.h: Move mi_opt struct up.
8053 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8055 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8057 2012-03-06 Tom Tromey <tromey@redhat.com>
8059 * proc-service.c (ps_pglobal_lookup): Set the current program
8062 2012-03-06 Pedro Alves <palves@redhat.com>
8064 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8066 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8068 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8070 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8073 * common/linux-osdata.c (linux_common_core_of_thread): New function
8075 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8076 call by linux_common_core_of_thread.
8077 (linux_nat_core_of_thread_1): Remove.
8078 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8079 * linux-thread-db.c: Include linux-osdata.h.
8080 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8081 linux_common_core_of_thread.
8083 2012-03-05 Tom Tromey <tromey@redhat.com>
8085 * value.c (value_primitive_field): Don't fetch contents for
8088 2012-03-05 Tom Tromey <tromey@redhat.com>
8090 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8092 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8094 * s390-nat.c: Include "gregset.h".
8096 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8098 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8099 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8100 (libunwind_load): New variable so_error, use it for dlerror. Try to
8101 load also LIBUNWIND_SO_7.
8103 2012-03-05 Pedro Alves <palves@redhat.com>
8105 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8106 is not NULL, and remove resulting dead code.
8108 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8110 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8111 prologue to sh_analyze_prologue.
8112 (sh_analyze_prologue): Make better use of such an upper limit, and
8113 generally be more cautious about accessing memory.
8115 2012-03-05 Tom Tromey <tromey@redhat.com>
8117 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8118 _initialize_ia64_hpux_tdep.
8120 2012-03-05 Pedro Alves <palves@redhat.com>
8124 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8125 the register state is clear, supply explicit zero, instead of
8126 marking the register unavailable.
8128 2012-03-05 Tristan Gingold <gingold@adacore.com>
8130 * NEWS: Mention OpenVMS ia64 new target.
8132 2012-03-05 Tristan Gingold <gingold@adacore.com>
8134 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8135 (ia64_unw_accessors, ia64_unw_rse_accessors)
8136 (ia64_libunwind_descr): Declare.
8137 * ia64-vms-tdep.c: New file.
8138 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8139 (ia64_libunwind_descr): Make them public.
8140 * configure.tgt: Add ia64-*-*vms*.
8141 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8142 (ALLDEPFILES): Add ia64-vms-tdep.c
8144 2012-03-05 Tristan Gingold <gingold@adacore.com>
8146 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8147 * remote.c (PACKET_qXfer_uib): New enum value.
8148 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8149 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8150 (_initialize_remote): Call add_packet_config_cmd for
8153 2012-03-05 Tristan Gingold <gingold@adacore.com>
8155 * osabi.c (gdb_osabi_names): Add OpenVMS.
8156 (generic_elf_osabi_sniffer): Likewise.
8157 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8159 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8161 Removed unused code.
8162 * libunwind-frame.c (libunwind_frame_unwind)
8163 (libunwind_frame_base_address): Remove.
8164 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8166 2012-03-04 Yao Qi <yao@codesourcery.com>
8168 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8169 remove trailing new line.
8170 (agent_run_command, agent_run_command): Add _ markup.
8171 (agent_capability_check): Likewise.
8173 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8175 * breakpoint.c (set_condition_evaluation_mode): Set
8176 CONDITION_EVALUATION_MODE unconditionally.
8178 2012-03-03 Yao Qi <yao@codesourcery.com>
8180 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8181 * common/agent.h: Update declaration.
8182 * inf-child.c (inf_child_use_agent): New.
8183 (inf_child_can_use_agent): New.
8184 (inf_child_target): Initialize fields `to_use_agent'
8185 and `to_can_use_agent'.
8186 * agent.c (agent_new_objfile): New.
8187 (_initialize_agent): Add agent_new_objfile to new_objfile
8190 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8192 (linux_target_install_ops): Initialize field
8193 `to_static_tracepoint_markers_by_strid'.
8194 * remote.c (free_current_marker): Move it to ...
8195 * tracepoint.c (free_current_marker): ... here. New.
8196 (cleanup_target_stop): New.
8197 * tracepoint.h: Declare free_current_marker.
8198 * NEWS: Add one entry about `info static-tracepoint-marker'.
8200 2012-03-03 Yao Qi <yao@codesourcery.com>
8202 * common/agent.c (agent_loaded_p): New.
8203 (agent_look_up_symbols): New global.
8204 * common/agent.h: Declare agent_loaded_p.
8206 2012-03-03 Yao Qi <yao@codesourcery.com>
8208 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8209 (agent_capability_check, agent_capability_invalidate): New.
8210 (symbol_list): New array element.
8211 * common/agent.h (enum agent_capa): New.
8212 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8214 2012-03-03 Yao Qi <yao@codesourcery.com>
8216 * target.h (struct target_ops) <to_use_agent>: New field.
8217 (struct target_ops) <to_can_use_agent>: New field.
8218 (target_use_agent, target_can_use_agent): New macro.
8219 * target.c (update_current_target): Update.
8220 * remote.c: New enum `PACKET_QAgent'.
8221 (remote_protocol_features): Add a new element.
8222 (remote_use_agent, remote_can_use_agent): New.
8223 (init_remote_ops): Initialize field `can_use_agent' with
8224 remote_can_use_agent. Intiailize field `use_agent' with
8226 * common/agent.c (use_agent): New global.
8227 * common/agent.h: Declare it.
8228 * tracepoint.c (info_static_tracepoint_markers_command): Add
8230 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8231 (COMMON_OBS): Add common/agent.o and agent.o
8232 (common-agent.o): New rule.
8235 2012-03-03 Yao Qi <yao@codesourcery.com>
8237 * common/agent.c: New.
8238 * common/agent.h: New.
8239 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8241 * configure, configh.in: Regenerated.
8243 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8245 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8246 unless it exists for this architecture.
8248 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8250 * language.h (struct language_defn): New "method" la_read_var_value.
8251 * findvar.c: #include "language.h".
8252 (default_read_var_value): Renames read_var_value. Rewrite
8253 function description.
8254 (read_var_value): New function.
8255 * value.h (default_read_var_value): Add prototype.
8256 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8258 (ada_language_defn): Add entry for la_read_var_value.
8259 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8260 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8261 language_defn structures to add entry for new la_read_var_value
8264 2012-03-02 Tom Tromey <tromey@redhat.com>
8265 Pedro Alves <palves@redhat.com>
8267 PR breakpoints/13776:
8268 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8270 (delete_longjmp_breakpoint_at_next_stop): New.
8271 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8272 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8273 before deleting the inferior. Add comments.
8274 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8275 breakpoints immediately, but only on next stop. Move that code
8276 next to where we mark other breakpoints for deletion.
8278 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8280 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8282 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8285 2012-03-02 Pedro Alves <palves@redhat.com>
8287 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8289 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8291 Fix -Wmissing-prototypes build.
8292 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8293 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8294 (gdbsim_has_memory): Likewise.
8296 2012-03-02 Yao Qi <yao@codesourcery.com>
8298 Fix -Wmissing-prototypes build.
8299 * charset.c (phony_iconv_open): Make static.
8300 (phony_iconv_close, phony_iconv): Likewise.
8301 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8302 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8304 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8305 * ser-mingw.c (create_select_thread): Make static.
8306 * windows-termcap.c (tgetent): New prototype.
8307 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8309 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8311 Fix -Wmissing-prototypes build.
8312 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8313 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8314 (_initialize_loadable): New prototypes.
8316 2012-03-02 Doug Evans <dje@google.com>
8318 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8319 abbrev table, read_comp_unit will do it.
8321 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8323 Fix -Wmissing-prototypes build.
8324 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8325 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8326 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8327 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8328 (_initialize_arm_symbian_tdep): New prototype.
8329 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8330 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8331 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8333 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8334 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8336 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8337 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8338 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8340 * moxie-tdep.c (moxie_process_record): Likewise.
8341 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8342 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8343 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8344 (_initialize_rl78_tdep): New prototype.
8345 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8346 (_initialize_rx_tdep): New prototype.
8347 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8348 (_initialize_darwin_solib): New prototype.
8349 * solib-spu.c: Include solib-spu.h.
8350 (_initialize_spu_solib): New prototype.
8351 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8352 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8353 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8354 (tic6x_software_single_step): Make it static.
8355 (_initialize_tic6x_tdep): New prototype.
8357 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8359 Fix -Wmissing-prototypes build.
8360 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8361 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8363 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8365 Fix -Wmissing-prototypes build.
8366 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8367 (frv_have_stopped_data_address): Remove.
8369 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8371 Fix -Wmissing-prototypes build.
8372 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8373 * sh-tdep.c: Include sh64-tdep.h.
8374 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8375 * sh64-tdep.c: Include sh64-tdep.h.
8376 * sh64-tdep.h: New file.
8378 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8380 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8382 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8384 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8385 sp_regnum once the gdbarch_init_osabi hook has been called.
8387 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8389 * mips-tdep.c (mips32_bc1_pc): New function.
8390 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8391 BPOSGE32 and BPOSGE64 instructions.
8392 (deal_with_atomic_sequence): Likewise.
8393 (mips32_instruction_has_delay_slot): Likewise.
8395 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8396 Chris Dearman <chris@mips.com>
8397 Maciej W. Rozycki <macro@codesourcery.com>
8398 Joseph Myers <joseph@codesourcery.com>
8400 * features/mips-dsp.xml: New file.
8401 * features/mips64-dsp.xml: New file.
8402 * features/mips-dsp-linux.xml: New file.
8403 * features/mips64-dsp-linux.xml: New file.
8404 * features/Makefile (WHICH): Add mips-dsp-linux and
8406 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8407 * features/mips-dsp-linux.c: New file.
8408 * features/mips64-dsp-linux.c: New file.
8409 * regformats/mips-dsp-linux.dat: New file.
8410 * regformats/mips64-dsp-linux.dat: New file.
8411 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8413 (mips64_linux_register_addr): Likewise.
8414 (mips64_linux_regsets_fetch_registers): Likewise.
8415 (mips64_linux_regsets_store_registers): Likewise.
8416 (mips64_linux_fetch_registers): Update call to
8417 mips64_linux_regsets_fetch_registers.
8418 (mips64_linux_store_registers): Update call to
8419 mips64_linux_regsets_store_registers.
8420 (mips_linux_read_description): Probe for DSP registers.
8421 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8422 and initialize_tdesc_mips64_dsp_linux.
8423 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8424 Remove padding of no longer used embedded register slots.
8425 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8426 (MIPS_RESTART_REGNUM): Redefine enum value.
8427 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8429 (mips_tx39_reg_names): Likewise.
8430 (mips_linux_reg_names): New array of register names for Linux
8432 (mips_register_name): Check for a null pointer in
8433 mips_processor_reg_names and return an empty string.
8434 (mips_register_type): Exclude embedded registers for the IRIX
8436 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8437 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8439 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8440 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8441 (mips_gdbarch_init): Likewise. Initialize internal register
8442 indices for the Linux ABI. Use dynamic numbers to refer to
8443 registers, as applicable, while parsing the target description.
8444 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8446 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8448 * frame.h (read_frame_register_unsigned): Fix typo in function
8451 2012-03-01 Pedro Alves <palves@redhat.com>
8453 * jit-reader.in [!__cplusplus]
8454 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8456 2012-03-01 Pedro Alves <palves@redhat.com>
8458 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8459 * configure: Regenerate.
8461 2012-03-01 Pedro Alves <palves@redhat.com>
8463 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8464 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8465 (ftrace_command, strace_command): Make static.
8466 * d-lang.c (_initialize_d_language): Declare.
8467 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8468 * dwarf2loc.c (_initialize_dwarf2loc):
8469 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8470 * exec.c (exec_get_section_table): Make static.
8471 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8472 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8473 * inferior.c (remove_inferior_command, add_inferior_command)
8474 (clone_inferior_command): Make static.
8475 * linux-nat.c (linux_nat_thread_address_space)
8476 (linux_nat_core_of_thread): Make static.
8477 * linux-tdep.c (_initialize_linux_tdep): Declare.
8478 * objc-lang.c (_initialize_objc_lang): Declare.
8479 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8481 (_initialize_opencl_language): Declare.
8482 * record.c (_initialize_record): Declare.
8483 * remote.c (demand_private_info, remote_get_tib_address)
8484 (remote_supports_cond_tracepoints)
8485 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8487 * skip.c (_initialize_step_skip): Declare.
8488 * symtab.c (skip_prologue_using_lineinfo): Make static.
8489 * tracepoint.c (delete_trace_state_variable)
8490 (trace_variable_command, delete_trace_variable_command)
8491 (get_uploaded_tsv, find_matching_tracepoint_location)
8492 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8494 * value.c (pack_unsigned_long): Make static.
8495 * varobj.c (varobj_ensure_python_env): Make static.
8496 * windows-tdep.c (_initialize_windows_tdep): Declare.
8497 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8499 2012-03-01 Pedro Alves <palves@redhat.com>
8501 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8503 (linux_init_abi): Install it as has_shared_address_space gdbarch
8506 2012-03-01 Pedro Alves <palves@redhat.com>
8508 * observer.c (observer_test_first_notification_function)
8509 (observer_test_second_notification_function)
8510 (observer_test_third_notification_function): Add declarations.
8512 2012-03-01 Pedro Alves <palves@redhat.com>
8514 * common/signals.c (default_target_signal_to_host)
8515 (default_target_signal_from_host): Move ...
8516 * arch-utils.c: ... here.
8517 * arch-utils.h (default_target_signal_to_host)
8518 (default_target_signal_from_host): Declare.
8520 * common/signals.c (target_signal_from_command): Move ...
8521 * infrun.c: ... here.
8522 * inferior.h (target_signal_from_command): Declare.
8523 * target.h (target_signal_from_command)
8524 (default_target_signal_from_host, default_target_signal_to_host):
8525 Delete declarations.
8527 * common/signals.c (_initialize_signals): Delete.
8529 2012-03-01 Pedro Alves <palves@redhat.com>
8531 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8532 both __cplusplus and !__cplusplus.
8534 2012-03-01 Pedro Alves <palves@redhat.com>
8536 * psymtab.c (find_and_open_source): Delete declaration.
8537 * source.c (find_and_open_source): Move comment ...
8538 * source.h (find_and_open_source): ... to this new declaration.
8540 2012-03-01 Pedro Alves <palves@redhat.com>
8542 * inline-frame.c: Include inline-frame.h.
8544 2012-03-01 Pedro Alves <palves@redhat.com>
8546 * tui/tui-data.c (set_gen_win_origin): Delete.
8547 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8548 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8550 2012-03-01 Pedro Alves <palves@redhat.com>
8552 * remote.c (encode_actions): Delete declaration.
8553 * tracepoint.c (encode_actions): Make extern.
8554 * tracepoint.h (encode_actions): Declare.
8556 2012-03-01 Pedro Alves <palves@redhat.com>
8558 * python/py-breakpoint.c: Include python.h.
8559 * python/py-continueevent.c (create_continue_event_object): Make
8561 * python/py-lazy-string.c (stpy_get_type): Make static.
8562 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8564 * python/py-utils.c (unicode_to_target_python_string): Make
8566 * python/py-value.c: Include python.h.
8568 2012-03-01 Pedro Alves <palves@redhat.com>
8570 * inferior.c (delete_threads_of_inferior): Delete.
8572 2012-03-01 Pedro Alves <palves@redhat.com>
8574 Import fallback definitions from glibc.
8576 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8577 ps_prochandle): Forward declare.
8578 (ps_err_e): Use glibc's comments.
8579 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8580 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8581 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8582 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8583 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8584 (struct ps_prochandle): Adjust comment.
8586 2012-03-01 Pedro Alves <palves@redhat.com>
8588 * ada-lang.c (ada_modulus_from_name): Delete.
8589 * ada-lex.l (lexer_init): Make static.
8591 2012-03-01 Pedro Alves <palves@redhat.com>
8595 * frame.c (read_frame_register_unsigned): New.
8596 * frame.h (read_frame_register_unsigned): Declare.
8597 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8599 (print_i387_control_word): New parameter `control_p'. Handle it.
8600 (i387_print_float_info): Handle unavailable float registers.
8602 2012-03-01 Keith Seitz <keiths@redhat.com>
8604 * linespec.c (decode_line_2): Sort the list of methods
8605 alphabetically before presenting the user with a selection
8608 2012-03-01 Doug Evans <dje@google.com>
8610 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8612 (dwarf2_read_abbrevs): Remove corresponding initialization.
8614 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
8616 * NEWS: Mention new python command class gdb.COMMAND_USER.
8617 * cli/cli-cmds.c (show_user): Print error when used on a python
8619 (init_cli_cmds): Update documentation strings for "show user" and
8620 "set/show max-user-call-depth" to clarify that it does not apply to
8622 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8624 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8626 * top.c (execute_command): Only execute a user-defined command as a
8627 legacy macro if c->user_commands is set.
8629 2012-03-01 Tom Tromey <tromey@redhat.com>
8631 * valprint.h (struct generic_val_print_decorations): New.
8632 (generic_val_print): Declare.
8633 * valprint.c (generic_val_print): New function.
8634 * p-valprint.c (p_decorations): New global.
8635 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8636 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8637 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8638 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8639 * m2-valprint.c (m2_decorations): New global.
8640 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8641 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8642 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8643 TYPE_CODE_ERROR>: Call generic_val_print.
8644 * f-valprint.c (f_decorations): New global.
8645 (f_val_print): Use print_function_pointer_address.
8646 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8647 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8648 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8650 * c-valprint.c (c_decorations): New global.
8651 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8652 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8653 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8654 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8655 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8656 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8659 2012-03-01 Tom Tromey <tromey@redhat.com>
8661 * valprint.c (val_print): Update.
8662 * p-valprint (pascal_val_print): Return void.
8663 * p-lang.h (pascal_val_print): Return void.
8664 * m2-valprint.c (m2_val_print): Return void.
8665 * m2-lang.h (m2_val_print): Return void.
8666 * language.h (struct language_defn) <la_val_print>: Return void.
8667 * language.c (unk_lang_val_print): Return void.
8668 * jv-valprint.c (java_val_print): Return void.
8669 * jv-lang.h (java_val_print): Return void.
8670 * f-valprint.c (f_val_print): Return void.
8671 * f-lang.h (f_val_print): Return void.
8672 * d-valprint.c (d_val_print): Return void.
8673 (dynamic_array_type): Update.
8674 * d-lang.h (d_val_print): Return void.
8675 * c-valprint.c (c_val_print): Return void.
8676 * c-lang.h (c_val_print): Return void.
8677 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8679 * ada-lang.h (ada_val_print): Return void.
8681 2012-03-01 Tom Tromey <tromey@redhat.com>
8683 * value.h (val_print): Return void.
8684 * valprint.c (val_print): Return void.
8686 2012-03-01 Tom Tromey <tromey@redhat.com>
8688 * value.h (common_val_print): Return void.
8689 * valprint.c (common_val_print): Return void.
8691 2012-03-01 Tom Tromey <tromey@redhat.com>
8693 * value.h (value_print): Return void.
8694 * valprint.c (value_print): Return void.
8695 * p-valprint.c (pascal_value_print): Return void.
8696 * p-lang.h (pascal_value_print): Return void.
8697 * language.h (struct language_defn) <la_value_print>: Return
8699 * language.c (unk_lang_value_print): Return void.
8700 * jv-valprint.c (java_value_print): Return void.
8701 * jv-lang.h (java_value_print): Return void.
8702 * f-valprint.c (c_value_print): Don't declare.
8704 * c-valprint.c (c_value_print): Return void.
8705 * c-lang.h (c_value_print): Return void.
8706 * ada-valprint.c (ada_value_print): Return void.
8707 * ada-lang.h (ada_value_print): Return void.
8709 2012-03-01 Tom Tromey <tromey@redhat.com>
8711 * value.c (value_primitive_field): Handle virtual base classes.
8713 2012-03-01 Tom Tromey <tromey@redhat.com>
8715 * gdbtypes.h (struct vbase): Remove.
8717 2012-03-01 Tom Tromey <tromey@redhat.com>
8719 * c-valprint.c (print_function_pointer_address): Move...
8720 * valprint.c: ... here. Make non-static.
8721 * m2-valprint.c (print_function_pointer_address): Remove.
8722 * valprint.h (print_function_pointer_address): Declare.
8724 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8726 * NEWS: Document the fact that one can provide a condition when
8727 creating an Ada exception catchpoint.
8729 2012-03-01 Tom Tromey <tromey@redhat.com>
8731 * valprint.c (val_print_type_code_flags): Fix placement of
8734 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8736 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8737 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8738 environment variable before calling update-copyright.
8740 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8742 * gnulib/extra/update-copyright: Update to the latest from
8743 gnulib's git repository.
8744 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8745 variable to 2 instead of 1.
8747 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8749 * varobj.c (c_value_of_variable): Remove dead code.
8751 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8753 * ada-lex.p (processId): Do not modify already encoded IDs.
8754 Update function documentation.
8756 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8758 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8759 "name" with "struct symbol *name_sym".
8760 * ada-exp.y (write_var_or_type): Update call to
8761 ada_find_renaming_symbol.
8762 "name" with "struct symbol *name_sym". Adjust Implementation
8763 accordingly. Adjust the function documentation.
8765 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8767 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8768 * ada-lang.c (ada_find_any_type): Add advance declaration.
8769 Make static. Replace ada_find_any_symbol by
8770 ada_find_any_type_symbol.
8771 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8772 Improve function description. Make static.
8773 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8774 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8776 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8778 * ada-lang.c (struct tag_args): Delete.
8779 (ada_get_tsd_type): Function body moved up in source file.
8780 (ada_tag_name_1, ada_tag_name_2): Delete.
8781 (ada_get_tsd_from_tag): New function.
8782 (ada_tag_name_from_tsd): New function.
8783 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8784 to determine the tag name.
8786 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8788 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8790 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8793 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8795 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8797 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8799 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8802 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8804 * ada-lang.c (constrained_packed_array_type): If there is a
8805 parallel XA type, use it to determine the array index type.
8807 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8809 * ada-valprint.c (ada_val_print_1): If our value is a reference
8810 to an array descriptor, dereference it before converting it
8813 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8815 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8816 creating fixed value.
8817 (ada_value_ind, ada_coerce_ref, assign_component)
8818 (ada_evaluate_subexp): Remove call to unwrap_value before
8819 call to ada_to_fixed_value.
8821 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8823 * ada-lang.c (to_fixed_array_type): Set result's type name.
8825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8827 * ada-lang.c (catch_ada_exception_command_split): Add new
8828 argument cond_string. Add support for condition at end of
8829 "catch exception" commands.
8830 (ada_decode_exception_location): Add new argument cond_string.
8831 Update call to catch_ada_exception_command_split.
8832 (create_ada_exception_catchpoint): Add new argument cond_string.
8833 Set the breakpoint condition if needed.
8834 (catch_ada_exception_command): Update call to
8835 ada_decode_exception_location.
8836 (ada_decode_assert_location): Add function documentation.
8837 Add support for condition at end of "catch assert" command.
8838 (catch_assert_command): Update calls to ada_decode_assert_location
8839 and create_ada_exception_catchpoint.
8841 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8843 Fix disp-step-syscall.exp: fork: single step over fork.
8844 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8845 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8846 comment, change parameters gdbarch and ptid to regcache. Remove
8847 parameter regcache, initialize gdbarch from regcache here.
8848 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8850 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8852 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8853 'syscall'. Make the 'int' check more strict.
8855 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8857 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8858 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8859 (i386_linux_intx80_sysenter_syscall_record): ... here.
8860 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8861 Use the renamed function name.
8863 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8865 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8866 * breakpoint.c (until_break_command): Likewise.
8867 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8868 * infcall.c (call_function_by_hand): Likewise.
8869 * infcmd.c (finish_forward): Likewise.
8870 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8872 2012-02-28 Tristan Gingold <gingold@adacore.com>
8874 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8875 avoid variable assignments inside condition.
8877 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 Fix static analysis issue found by cppcheck.
8880 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8881 uninitialized BUF for size 2.
8883 2012-02-27 Chris Dearman <chris@mips.com>
8884 Nathan Froyd <froydnj@codesourcery.com>
8885 Maciej W. Rozycki <macro@codesourcery.com>
8887 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8888 (mips16_instruction_has_delay_slot): Likewise.
8889 (mips_segment_boundary): Likewise.
8890 (mips_adjust_breakpoint_address): Likewise.
8891 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8893 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8894 Maciej W. Rozycki <macro@codesourcery.com>
8896 * infrun.c (handle_inferior_event): Don't proceed through
8897 shared library trampolines if stepping at the machine
8900 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8902 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8905 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8907 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8908 (sh_stub_unwind_sniffer): New functions.
8909 (sh_stub_unwind): New variable.
8910 (sh_gdbarch_init): Wire everything.
8912 2012-02-27 Pedro Alves <palves@redhat.com>
8914 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8915 (linux_nat_post_attach_wait): Adjust to use
8916 linux_proc_pid_is_stopped.
8917 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8918 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8919 based on pid_is_stopped from both linux-nat.c and
8920 gdbserver/linux-low.c, and renamed.
8922 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8924 * remote.c (remote_watchpoint_addr_within_range): New function.
8925 (init_remote_ops): Use it.
8927 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8929 * target.h (target_watchpoint_addr_within_range): Document macro.
8931 2012-02-24 Pedro Alves <palves@redhat.com>
8933 * stack.c (set_last_displayed_sal): Issue internal_error instead
8934 of warning, and issue it after clearing the last displayed sal.
8936 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8937 Pedro Alves <palves@redhat.com>
8939 * breakpoint.c (until_break_command): Install breakpoints after
8940 all frame manipulations.
8942 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8944 * remote.c (remote_supports_cond_breakpoints): New forward
8946 (remote_add_target_side_condition): New function.
8947 (remote_insert_breakpoint): Add target-side breakpoint
8948 conditional if supported.
8949 (remote_insert_hw_breakpoint): Likewise.
8950 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8953 * target.c (update_current_target): Inherit
8954 to_supports_evaluation_of_breakpoint_conditions.
8955 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8957 * target.h (struct target_ops)
8958 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8959 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8961 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8962 (condition_evaluation_both, condition_evaluation_auto,
8963 condition_evaluation_host, condition_evaluation_target,
8964 condition_evaluation_enums, condition_evaluation_mode_1,
8965 condition_evaluation_mode): New static globals.
8966 (translate_condition_evaluation_mode): New function.
8967 (breakpoint_condition_evaluation_mode): New function.
8968 (gdb_evaluates_breakpoint_condition_p): New function.
8969 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8970 (mark_breakpoint_modified): New function.
8971 (mark_breakpoint_location_modified): New function.
8972 (set_condition_evaluation_mode): New function.
8973 (show_condition_evaluation_mode): New function.
8974 (bp_location_compare_addrs): New function.
8975 (get_first_location_gte_addr): New helper function.
8976 (set_breakpoint_condition): Free condition bytecode if locations
8977 has become unconditional. Call mark_breakpoint_modified (...).
8978 (condition_command): Call update_global_location_list (1) for
8980 (breakpoint_xfer_memory): Use is_breakpoint (...).
8981 (is_breakpoint): New function.
8982 (parse_cond_to_aexpr): New function.
8983 (build_target_condition_list): New function.
8984 (insert_bp_location): Handle target-side conditional
8985 breakpoints and call build_target_condition_list (...).
8986 (update_inserted_breakpoint_locations): New function.
8987 (insert_breakpoint_locations): Handle target-side conditional
8989 (bpstat_check_breakpoint_conditions): Add comment.
8990 (bp_condition_evaluator): New function.
8991 (bp_location_condition_evaluator): New function.
8992 (print_breakpoint_location): Print information on where the condition
8994 (print_one_breakpoint_location): Likewise.
8995 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8996 breakpoint location.
8997 (force_breakpoint_reinsertion): New functions.
8998 (update_global_location_list): Handle target-side breakpoint
9000 Reinsert locations that are already inserted if conditions have
9002 (bp_location_dtor): Free agent expression bytecode.
9003 (disable_breakpoint): Call mark_breakpoint_modified (...).
9004 Call update_global_location_list (...) with parameter 1 for breakpoints.
9005 (disable_command): Call mark_breakpoint_location_modified (...).
9006 Call update_global_location_list (...) with parameter 1 for breakpoints.
9007 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9008 (enable_command): mark_breakpoint_location_modified (...).
9009 (_initialize_breakpoint): Update documentation and add
9010 condition-evaluation breakpoint subcommand.
9012 * breakpoint.h: Include ax.h.
9013 (condition_list): New data structure.
9014 (condition_status): New enum.
9015 (bp_target_info) <cond_list>: New field.
9016 (bp_location) <condition_changed, cond_bytecode>: New fields.
9017 (is_breakpoint): New prototype.
9019 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9021 * remote.c (remote_state) <cond_breakpoints>: New field.
9022 (PACKET_ConditionalBreakpoints): New enum.
9023 (remote_cond_breakpoint_feature): New function.
9024 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9025 (remote_supports_cond_breakpoints): New function.
9026 (_initialize_remote): Add new packet configuration for
9027 target-side conditional breakpoints.
9029 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9031 * NEWS: Mention target-side conditional breakpoint support,
9032 new condition-evaluation breakpoint subcommand and remote
9035 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9037 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9040 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9042 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9043 (after_prologue): Remove.
9045 2012-02-23 Tom Tromey <tromey@redhat.com>
9047 * jv-valprint.c (java_val_print): Remove dead code.
9049 2012-02-23 Tristan Gingold <gingold@adacore.com>
9051 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9052 known_tasks_element and known_tasks_length fields.
9053 (read_known_tasks_array): Change argument type. Use pointer type
9054 and number of elements from DATA. Adjust.
9055 (read_known_tasks_list): Likewise.
9056 (get_known_tasks_addr): Remove.
9057 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9058 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9059 type and array length. Merge former get_known_tasks_addr code.
9061 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9064 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9065 it after set_momentary_breakpoint.
9067 2012-02-22 Sterling Augustine <saugustine@google.com>
9070 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9072 2012-02-22 Gary Benson <gbenson@redhat.com>
9074 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9075 (find_slot_in_mapped_hash): Likewise.
9077 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9080 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9081 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9082 * configure: Regenerate.
9084 2012-02-21 Tristan Gingold <gingold@adacore.com>
9085 Pedro Alves <palves@redhat.com>
9087 * ia64-tdep.c: Do not include libunwind-ia64.h.
9088 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9089 Include libunwind-ia64.h instead of libunwind.h.
9090 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9091 for libunwind.h existence.
9092 * configure, config.in: Regenerate.
9094 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9096 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9097 instead of value_rtti_target_type.
9098 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9099 instead of value_rtti_target_type.
9100 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9101 value_rtti_target_type.
9102 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9103 (value_rtti_target_type): Rename to ...
9104 (value_rtti_indirect_type): ... here and make it indirect. Update
9106 * value.c (readjust_indirect_value_type): New function.
9107 (coerce_ref): Support for enclosing type setting for references
9108 with readjust_indirect_value_type.
9109 * value.h (readjust_value_type): New declaration.
9110 (value_rtti_target_type): Rename to ...
9111 (value_rtti_indirect_type): ... here.
9113 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9115 * MAINTAINERS (Write After Approval): Add myself to the list.
9117 2012-02-20 Doug Evans <dje@google.com>
9119 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9120 Rename objfile_p_char parameter to objfilep.
9121 (build_objfile_section_table): Result is now void. All callers
9123 * objfiles.h (struct objfile): Tweak comments, whitespace.
9124 (build_objfile_section_table): Update.
9126 * elfread.c (elf_symfile_segments): Fix warning text.
9128 2012-02-20 Tom Tromey <tromey@redhat.com>
9131 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9132 particular set of file names once.
9133 (dw2_map_symbol_filenames): Likewise.
9135 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 * main.c (write_files): Remove the declaration.
9139 (external_editor_command): Move the declaration ...
9140 [GDBTK] (external_editor_command): ... here. Fix the comment.
9142 2012-02-20 Tom Tromey <tromey@redhat.com>
9144 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9147 2012-02-20 Tristan Gingold <gingold@adacore.com>
9149 * darwin-nat.h (enum darwin_msg_state): Add comments.
9151 2012-02-20 Tristan Gingold <gingold@adacore.com>
9153 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9156 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9158 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9159 between function description and implementation.
9161 2012-02-17 Tom Tromey <tromey@redhat.com>
9164 * python/py-event.c (event_object_getset): New global.
9165 (event_object_type): Reference it.
9166 * python/py-type.c (field_object_getset): New global.
9167 (field_object_type): Reference it.
9168 * python/python-internal.h (gdb_py_generic_dict): Declare.
9169 * python/py-utils.c (gdb_py_generic_dict): New function.
9171 2012-02-17 Tristan Gingold <gingold@adacore.com>
9173 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9175 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9177 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9178 TYPE_CALLING_CONVENTION annotation.
9180 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9182 * MAINTAINERS: Add rx to target ISA section.
9183 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9184 (ALLDEPFILES): Add rx-tdep.c.
9186 2012-02-16 Tom Tromey <tromey@redhat.com>
9188 * symfile.c (symbol_file_add_main_1): Use inferior's
9190 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9191 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9193 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9195 (follow_exec): Use inferior's symfile_flags.
9196 * inferior.h (struct inferior) <symfile_flags>: New field.
9198 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9201 * remote-sim.c (gdbsim_create_inferior): Call error() when
9202 sim_create_inferior() fails.
9204 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9206 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9208 2012-02-16 Tom Tromey <tromey@redhat.com>
9211 * thread.c (struct current_thread_cleanup) <was_removable>: New
9213 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9214 (make_cleanup_restore_current_thread): Initialize new field.
9216 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9218 * MAINTAINERS: Add rl78 to target ISA section.
9219 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9220 (ALLDEPFILES): Add rl78-tdep.c.
9221 * NEWS: Mention rl78 as a new target.
9223 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9225 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9227 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9229 2012-02-15 Tom Tromey <tromey@redhat.com>
9232 * infcmd.c (registers_info): Print just the current register's
9235 2012-02-15 Tom Tromey <tromey@redhat.com>
9237 * python/py-symbol.c (sympy_value): Use _().
9239 2012-02-15 Pedro Alves <palves@redhat.com>
9241 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9242 output to be like native targets'.
9243 (remote_pid_to_str): Special case the null ptid.
9245 2012-02-14 Stan Shebs <stan@codesourcery.com>
9247 * NEWS: Mention enable count command.
9248 * breakpoint.h (struct breakpoint): New field enable_count.
9249 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9250 (enable_breakpoint): Add arg to call.
9251 (struct disp_data): New struct.
9252 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9253 (do_map_enable_once_breakpoint): Create a struct and pass it.
9254 (do_map_enable_delete_breakpoint): Ditto.
9255 (do_map_enable_count_breakpoint): New function.
9256 (enable_count_command): New function.
9257 (bpstat_stop_status): Decrement enable_count.
9258 (print_one_breakpoint_location): Report enable count.
9259 (_initialize_breakpoint): Add enable count command.
9261 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9263 * rl78-tdep.c (reggroups.h): Include.
9264 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9265 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9266 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9267 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9268 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9269 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9270 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9271 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9272 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9273 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9274 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9275 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9276 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9277 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9278 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9279 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9280 beginning of register list.
9281 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9282 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9283 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9284 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9285 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9286 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9287 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9288 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9289 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9290 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9291 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9292 the pseudo registers. Rearrange other pseudo registers too so
9293 that the bank registers appear at the end.
9294 (rl78_register_type): Account for the fact that the byte sized
9295 bank registers are now pseudo-registers.
9296 (rl78_register_name): Rearrange the register name array. Make
9297 initial set of raw banked registers inaccessible.
9298 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9299 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9300 case for copying bytes back and forth between raw and pseudo
9301 versions of the banked registers. Update other cases to reflect
9303 (rl78_return_value): Update to account for changed names of
9305 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9306 rl78_register_sim_regno().
9308 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9310 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9311 the name parameter being passed to find_pc_partial_function().
9313 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9315 * MAINTAINERS: Step down from being ia64 target maintainer.
9317 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9319 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9320 compilation warning.
9322 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9324 Fix crash on loaded shlibs without loaded exec_bfd.
9325 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9326 (set_section_command): Replace exec_bfd by p->bfd.
9328 2012-02-10 Tom Tromey <tromey@redhat.com>
9330 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9331 when we have a C++ qualified name.
9333 2012-02-10 Pedro Alves <palves@redhat.com>
9335 * inferior.c (inferior_pid_to_str): New.
9336 (print_inferior, inferior_command): Use it.
9338 2012-02-10 Pedro Alves <palves@redhat.com>
9340 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9342 * configure: Regenerate.
9344 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9346 * linespec.c (decode_line_internal): Fix comment correctness.
9348 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9351 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9352 * amd64bsd-nat.c: Add support for debug registers (adapted from
9354 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9355 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9356 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9357 (amd64bsd_dr_get_control): New functions.
9358 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9359 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9360 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9361 watchpoints initialization.
9362 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9364 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9366 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9368 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9370 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9372 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9374 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9376 * language.h (symbol_name_cmp_ftype): Renames
9377 symbol_name_match_p_ftype.
9378 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9379 la_get_symbol_name_match_p.
9380 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9381 ada_get_symbol_name_match_p. Update comment.
9382 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9383 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9384 Renames symbol_name_match_p. Update field type.
9385 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9386 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9387 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9388 "la_get_symbol_name_cmp" in comments.
9389 * language.c: Likewise.
9391 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9393 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9395 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9396 (amd64_sol2_gregset32_reg_offs): Likewise.
9398 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9400 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9401 of the returned BFD is allocated by GDB.
9403 2012-02-07 Tom Tromey <tromey@redhat.com>
9406 * python/python-internal.h (frame_object_type): Declare.
9407 * python/py-symbol.c (sympy_needs_frame): New function.
9408 (sympy_value): New function.
9409 (symbol_object_getset): Add "needs_frame".
9410 (symbol_object_methods): Add "value".
9411 * python/py-frame.c (frame_object_type): No longer static.
9413 2012-02-07 Tom Tromey <tromey@redhat.com>
9416 * python/py-symbol.c (sympy_line): New function.
9417 (symbol_object_getset): Add "line".
9419 2012-02-07 Tom Tromey <tromey@redhat.com>
9421 * charset.c (find_charset_names): Check 'in' against NULL.
9423 2012-02-06 Doug Evans <dje@google.com>
9425 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9426 and fields.name members from char * to const char *. All uses updated.
9427 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9428 from char * to const char *. All uses updated.
9429 (type_name_no_tag): Update.
9430 (lookup_unsigned_typename, lookup_signed_typename): Update.
9431 * gdbtypes.c (type_name_no_tag): Change result type
9432 from char * to const char *. All callers updated.
9433 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9434 name parameter from char * to const char *.
9435 * symtab.h (struct cplus_specific): Change type of demangled_name
9436 member from char * to const char *. All uses updated.
9437 (struct general_symbol_info): Change type of name and
9438 mangled_lang.demangled_name members from char * to const char *.
9440 (symbol_get_demangled_name, symbol_natural_name): Update.
9441 (symbol_demangled_name, symbol_search_name): Update.
9442 * symtab.c (symbol_get_demangled_name): Change result type
9443 from char * to const char *. All callers updated.
9444 (symbol_natural_name, symbol_demangled_name): Ditto.
9445 (symbol_search_name): Ditto.
9446 (completion_list_add_name): Change type of symname,sym_text,
9447 text,word parameters from char * to const char *.
9448 (completion_list_objc_symbol): Change type of sym_text,
9449 text,word parameters from char * to const char *.
9450 * ada-lang.c (find_struct_field): Change type of name parameter
9451 from char * to const char *.
9452 (encoded_ordered_before): Similarly for N0,N1 parameters.
9453 (old_renaming_is_invisible): Similarly for function_name parameter.
9454 (ada_type_name): Change result type from char * to const char *.
9455 All callers updated.
9456 * ada-lang.h (ada_type_name): Update.
9457 * buildsym.c (hashname): Change type of name parameter
9458 from char * to const char *.
9459 * buildsym.h (hashname): Update.
9460 * dbxread.c (end_psymtab): Change type of include_list parameter
9461 from char ** to const char **.
9462 * dwarf2read.c (determine_prefix): Change result type
9463 from char * to const char *. All callers updated.
9464 * f-lang.c (find_common_for_function): Change type of name, funcname
9465 parameters from char * to const char *.
9466 * f-lang.c (find_common_for_function): Update.
9467 * f-valprint.c (list_all_visible_commons): Change type of funcname
9468 parameters from char * to const char *.
9469 * gdbarch.sh (static_transform_name): Change type of name parameter
9470 and result from char * to const char *.
9471 * gdbarch.c: Regenerate.
9472 * gdbarch.h: Regenerate.
9473 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9474 of name parameter from char * to const char *.
9475 * jv-lang.c (java_primitive_type_from_name): Ditto.
9476 (java_demangled_signature_length): Similarly for signature parameter.
9477 (java_demangled_signature_copy): Ditto.
9478 (java_demangle_type_signature): Ditto.
9479 * jv-lang.h (java_primitive_type_from_name): Update.
9480 (java_demangle_type_signature): Update.
9481 * objc-lang.c (specialcmp): Change type of a,b parameters
9482 from char * to const char *.
9483 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9484 from char * to const char *. All callers updated.
9485 * p-lang.h (is_pascal_string_type): Update.
9486 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9487 of name parameter from char * to const char *.
9488 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9489 * utils.c (fprintf_symbol_filtered): Ditto.
9490 * defs.h (fprintf_symbol_filtered): Update.
9491 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9492 * stabsread.h (end_psymtab): Update.
9493 * stack.c (find_frame_funname): Change type of funname parameter
9494 from char ** to const char **.
9495 * stack.h (find_frame_funname): Update.
9496 * typeprint.c (type_print): Change type of varstring parameter
9497 from char * to const char *.
9498 * value.h (type_print): Update.
9499 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9500 from char * to const char *. All callers updated.
9501 (xcoff_end_psymtab): Change type of include_list parameter
9502 from char ** to const char **. All callers updated.
9503 (swap_sym): Similarly for name parameter. All callers updated.
9504 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9506 (process_coff_symbol): Use xstrdup.
9507 * stabsread.c (stabs_method_name_from_physname): Renamed from
9508 update_method_name_from_physname. Change result type from void
9509 to char *. All callers updated.
9510 (read_member_functions): In has_destructor case, store name in objfile
9511 obstack instead of malloc space. In !has_stub case, fix mem leak.
9513 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9515 * configure: Rebuild.
9516 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9519 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9521 * configure.tgt (rl78-*-elf): New target.
9522 * rl78-tdep.c: New file.
9524 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9526 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9527 and continue the loop. Add QUIT statement.
9529 2012-02-03 Tom Tromey <tromey@redhat.com>
9532 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9533 bfd_lookup_symbol_from_symtab.
9534 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9535 gdb_bfd_lookup_symbol_from_symtab.
9537 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9539 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9540 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9541 symbol. Add assertion that sym2 is never NULL.
9543 2012-02-02 Doug Evans <dje@google.com>
9545 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9546 "name" parameter to const char ** from char **. All callers updated.
9547 (find_pc_partial_function): Ditto.
9548 (cache_pc_function_name): Change type to const char * from char *.
9549 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9550 (find_pc_partial_function): Update.
9551 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9552 type of "name" parameter to const char * from char *.
9554 * arch-utils.c (generic_in_solib_return_trampoline): Change
9555 type of "name" parameter to const char * from char *.
9556 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9557 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9558 type of "name" parameter to const char * from char *.
9559 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9560 * gdbarch.c: Regenerate.
9561 * gdbarch.h: Regenerate.
9562 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9563 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9564 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9565 type of "name" parameter to const char * from char *.
9566 * skip.c (skip_function_pc): Ditto.
9567 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9568 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9569 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9570 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9571 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9572 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9573 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9574 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9575 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9577 2012-02-02 Pedro Alves <palves@redhat.com>
9579 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9580 the current inferior has no execution. Make sure the current
9581 remote process matches gdb's current inferior.
9583 2012-02-02 Tom Tromey <tromey@redhat.com>
9586 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9589 2012-02-02 Tom Tromey <tromey@redhat.com>
9592 * symtab.c (lookup_language_this): Set block_found.
9594 2012-02-01 Tom Tromey <tromey@redhat.com>
9597 * jit.c (struct jit_inferior_data): Rewrite.
9598 (struct jit_objfile_data): New.
9599 (get_jit_objfile_data): New function.
9600 (add_objfile_entry): Update.
9601 (jit_read_descriptor): Return int. Replace descriptor_addr
9602 argument with inf_data. Update. Don't call error.
9603 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9605 (jit_inferior_init): Don't look up descriptor. Don't call error.
9606 (jit_reset_inferior_data_and_breakpoints)
9607 (jit_inferior_created_observer): Remove.
9608 (jit_inferior_exit_hook): Update.
9609 (jit_executable_changed_observer): Remove.
9610 (jit_event_handler): Update.
9611 (free_objfile_data): Reset inferior data if needed.
9612 (_initialize_jit): Update.
9614 2012-02-01 Tom Tromey <tromey@redhat.com>
9616 * jit.c (bfd_open_from_target_memory): Move higher in file.
9618 2012-02-01 Tristan Gingold <gingold@adacore.com>
9620 * libunwind-frame.c (libunwind_load): Display message if dlopen
9623 2012-02-01 Gary Benson <gbenson@redhat.com>
9625 * symtab.h (symbol_found_callback_ftype): New typedef.
9626 (iterate_over_symbols): Use the above.
9627 * symtab.c (iterate_over_symbols): Likewise.
9628 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9629 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9630 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9631 (iterate_name_matcher): Document return values.
9632 (collect_one_symbol): Likewise.
9633 (collect_function_symbols): Likewise.
9634 (collect_symbols): Likewise.
9636 2012-02-01 Tom Tromey <tromey@redhat.com>
9638 * ada-lang.c (resolve_subexp): Update.
9639 (ada_lookup_symbol_list): Add 'full_search' argument.
9640 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9641 ada_lookup_symbol_list.
9642 (ada_lookup_encoded_symbol): Update.
9643 (get_var_value): Update.
9644 * ada-exp.y (block_lookup): Update.
9645 (write_var_or_type): Update.
9646 (write_name_assoc): Update.
9647 * ada-lang.h (ada_lookup_symbol_list): Update.
9649 2012-01-31 Tom Tromey <tromey@redhat.com>
9651 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9654 2012-01-31 Doug Evans <dje@google.com>
9656 * symtab.h: Remove outdated comment.
9657 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9659 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9661 Fix build error in Darwin port.
9662 * i386-darwin-nat.c: Include i386-nat.h.
9664 2012-01-30 Tom Tromey <tromey@redhat.com>
9666 PR breakpoints/13568:
9667 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9668 argument. Check for recursive includes.
9669 (dwarf_decode_macros): Create an include hash.
9671 2012-01-30 Michael Eager <eager@eagercon.com>
9673 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9674 * ppc-linux-tdep.c: Include glibc-tdep.h.
9675 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9676 (powerpc_linux_in_plt_stub): New function.
9677 (powerpc_linux_in_dynsym_resolve_code): New function.
9678 (ppc_skip_trampoline_code): New function.
9679 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9680 Use glibc_skip_solib_resolver.
9682 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9684 Code cleanup: Make 1440 bytes of data segment read-only.
9685 * arch-utils.c (endian_enum): Make it const char *const [].
9686 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9688 * breakpoint.c (always_inserted_enums): Likewise.
9689 * cli/cli-cmds.c (script_ext_enums): Likewise.
9690 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9691 enumlist parameter const char *const *.
9692 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9693 const char *const *.
9694 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9695 parameter const char *const *.
9696 * cris-tdep.c (cris_modes): Make it const char *const [].
9697 * filesystem.c (target_file_system_kinds): Likewise.
9698 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9699 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9700 (can_use_displaced_stepping_enum, scheduler_enums)
9701 (exec_direction_names): Likewise.
9702 * language.c (_initialize_language): Make the type_or_range_names and
9703 case_sensitive_names variables const char *const [].
9704 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9705 * python/python.c (python_excp_enums): Likewise.
9706 * remote.c (interrupt_sequence_modes): Likewise.
9707 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9708 * serial.c (logbase_enums): Likewise.
9709 * sh-tdep.c (sh_cc_enum): Likewise.
9710 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9712 * symtab.c (multiple_symbols_modes): Likewise.
9713 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9715 * utils.c (internal_problem_modes): Likewise.
9717 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9719 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9720 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9723 2012-01-27 Doug Evans <dje@google.com>
9725 * configure.ac (with_python): Fix absolute path handling for win32.
9726 * configure: Regenerate.
9728 2012-01-26 Doug Evans <dje@google.com>
9730 * symtab.c: Whitespace cleanup, no code changes.
9732 * symtab.c (lookup_symbol_in_language): Improve comment.
9733 (lookup_symbol_aux): Fix comment.
9735 * psymtab.c (add_psymbol_to_list): Result is now "void".
9736 * psympriv.h (add_psymbol_to_list): Update.
9738 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9740 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9742 Do not open script filenames twice.
9743 * cli/cli-cmds.c (source_script_from_stream): Pass to
9744 source_python_script also STREAM.
9745 * python/py-auto-load.c (source_section_scripts): Pass to
9746 source_python_script_for_objfile also STREAM.
9747 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9749 * python/python-internal.h (source_python_script_for_objfile): New
9750 parameter file, rename parameter file to filename.
9751 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9752 instead if !_WIN32. Update the function comment.
9753 (source_python_script, source_python_script_for_objfile)
9754 (source_python_script): New parameter file, rename parameter file to
9755 filename. Pass FILENAME to python_run_simple_file.
9756 * python/python.h (source_python_script): New parameter file, rename
9757 parameter file to filename.
9759 2012-01-26 Pedro Alves <palves@redhat.com>
9761 * corelow.c (core_has_fake_pid): Delete.
9762 (core_close): Delete references to `core_has_fake_pid'.
9763 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9764 (core_open): Delete references to `core_has_fake_pid'.
9765 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9768 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9770 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9771 Remove language parameter from name_matcher. Adjust the comment.
9772 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9773 Remove language parameter.
9774 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9775 * linespec.c (iterate_name_matcher): Likewise.
9776 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9777 name_matcher. Adjust call accordingly.
9778 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9779 (maintenance_check_symtabs): Adjust type of parameter "fun".
9780 * psymtab.h (maintenance_check_symtabs): Likewise.
9782 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9784 * language.h (symbol_name_match_p_ftype): New typedef.
9785 (struct language_defn): Replace field la_symbol_name_compare
9786 by la_get_symbol_name_match_p.
9787 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9788 (ada_language_defn): Use it.
9789 * linespec.c (struct symbol_matcher_data): New type.
9790 (iterate_name_matcher): Rewrite.
9791 (iterate_over_all_matching_symtabs): Pass a pointer to
9792 a symbol_matcher_data struct to expand_symtabs_matching
9793 instead of just the lookup name.
9794 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9795 opencl-lang.c, p-lang.c, language.c: Delete field
9796 la_symbol_name_compare, and replace by NULL for new field
9797 la_get_symbol_name_match_p.
9798 * symfile.h (struct quick_symbol_functions): Update comment.
9800 2012-01-25 Tom Tromey <tromey@redhat.com>
9802 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9805 2012-01-24 Tom Tromey <tromey@redhat.com>
9808 * solib.c (update_solib_list): Update the program space's
9809 added_solibs and deleted_solibs fields.
9810 * progspace.h (struct program_space) <added_solibs,
9811 deleted_solibs>: New fields.
9812 (clear_program_space_solib_cache): Declare.
9813 * progspace.c (release_program_space): Call
9814 clear_program_space_solib_cache.
9815 (clear_program_space_solib_cache): New function.
9816 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9817 bpstat_stop_status. Use handle_solib_event.
9818 * breakpoint.c: Include gdb_regex.h.
9819 (print_solib_event): New function.
9820 (bpstat_print): Use print_solib_event.
9821 (bpstat_stop_status): Add special case for bp_shlib_event.
9822 (handle_solib_event): New function.
9823 (bpstat_what): Use handle_solib_event.
9824 (struct solib_catchpoint): New.
9825 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9826 (breakpoint_hit_catch_solib, check_status_catch_solib)
9827 (print_it_catch_solib, print_one_catch_solib)
9828 (print_mention_catch_solib, print_recreate_catch_solib): New
9830 (catch_solib_breakpoint_ops): New global.
9831 (catch_load_or_unload, catch_load_command_1)
9832 (catch_unload_command_1): New functions.
9833 (internal_bkpt_check_status): Add special case for
9835 (internal_bkpt_print_it): Use print_solib_event.
9836 (initialize_breakpoint_ops): Initialize
9837 catch_solib_breakpoint_ops.
9838 (_initialize_breakpoint): Register "catch load" and "catch
9840 * breakpoint.h (handle_solib_event): Declare.
9841 * NEWS: Add entry for "catch load" and "catch unload".
9843 2012-01-24 Tom Tromey <tromey@redhat.com>
9845 * ada-lang.c: Include gdb_vecs.h.
9846 * charset.c: Include gdb_vecs.h.
9847 * tracepoint.h: Include gdb_vecs.h.
9848 * gdb_vecs.h: New file.
9850 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9852 * breakpoint.c (breakpoint_hit_catch_fork)
9853 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9854 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9855 * infrun.c (inferior_has_forked, inferior_has_vforked)
9856 (inferior_has_execd, inferior_has_called_syscall): Delete.
9857 (handle_syscall_event): Get syscall_number from the execution
9858 control state's wait status.
9859 (wait_for_inferior): Don't clear syscall_number.
9861 2012-01-24 Pedro Alves <palves@redhat.com>
9863 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9864 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9865 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9866 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9868 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9869 false for events other than TARGET_SIGNAL_TRAP.
9870 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9872 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9873 events other than TARGET_SIGNAL_TRAP.
9874 (tracepoint_breakpoint_hit): Add `ws' parameter.
9875 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9877 (bpstat_stop_status): Same.
9878 (pc_at_non_inline_function): Same.
9879 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9880 to pass the current event's waitstatus to bpstat_stop_status
9881 and pc_at_non_inline_function.
9883 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9886 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9887 Update the function comment for it.
9888 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9889 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9892 2012-01-24 Pedro Alves <palves@redhat.com>
9894 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9895 outside `bs->stop' block.
9896 (bpstat_what): Rework bp_shlib_event handling.
9897 (internal_bkpt_check_status): If the breakpoint is a
9898 bp_shlib_event, then set bs->stop and bs->print if
9899 stop_on_solib_events is set.
9901 2012-01-24 Gary Benson <gbenson@redhat.com>
9903 Delete #if 0'd out code.
9904 * stack.c (print_frame_label_vars): Remove.
9905 (catch_info): Likewise.
9906 (_initialize_stack): Remove "info catch" command.
9907 * NEWS: Mention the above.
9909 2012-01-24 Pedro Alves <palves@redhat.com>
9911 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9913 (remote_notice_new_inferior): If the remote end doesn't support
9914 the multiprocess extensions, then the PID is fake.
9915 (add_current_inferior_and_thread): New.
9916 (remote_start_remote): Use it.
9917 (extended_remote_attach_1): Adjust.
9918 (extended_remote_create_inferior_1): Use
9919 add_current_inferior_and_thread.
9921 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9923 Fix watchpoints to be specific for each inferior.
9924 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9925 current_program_space.
9926 * i386-nat.c (i386_inferior_data_cleanup): New.
9927 (i386_inferior_data_get): Replace variable inf_data_local by an
9929 (i386_use_watchpoints): Initialize i386_inferior_data.
9930 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9931 specific iterate_over_lwps.
9933 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9935 Fix watchpoints across inferior fork.
9936 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9937 comment for linux_nat_iterate_watchpoint_lwps.
9938 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9939 linux_nat_iterate_watchpoint_lwps.
9940 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9941 * i386-linux-nat.c (update_debug_registers_callback): Update the
9942 comment for linux_nat_iterate_watchpoint_lwps.
9943 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9944 linux_nat_iterate_watchpoint_lwps.
9945 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9946 * i386-nat.c: Include inferior.h.
9947 (dr_mirror): Remove.
9948 (i386_inferior_data, struct i386_inferior_data)
9949 (i386_inferior_data_get): New.
9950 (i386_debug_reg_state): Use i386_inferior_data_get.
9951 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9952 (i386_insert_watchpoint, i386_remove_watchpoint)
9953 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9954 (i386_remove_hw_breakpoint): New variable state, use
9955 i386_debug_reg_state instead of DR_MIRROR.
9956 * linux-nat.c (delete_lwp): New declaration.
9957 (num_lwps): Move here from downwards.
9958 (delete_lwp_cleanup): New.
9959 (linux_child_follow_fork): Create new child_lp, call
9960 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9962 (num_lwps): Move upwards.
9963 (linux_nat_iterate_watchpoint_lwps): New.
9964 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9965 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9967 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9971 2012-01-23 Pedro Alves <palves@redhat.com>
9973 * top.c (caution): Rename to ...
9974 (confirm): ... this.
9975 (show_caution): Rename to ...
9976 (show_confirm): ... this.
9977 (quit_cover): Adjust.
9978 (init_main): Adjust.
9979 * top.h (caution): Rename to ...
9980 (confirm): ... this.
9981 * utils.c (internal_vproblem, defaulted_query): Adjust.
9983 2012-01-23 Pedro Alves <palves@redhat.com>
9985 * top.c (caution): Update comment.
9986 (execute_command): Don't consider the current value of `caution'.
9988 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9990 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9992 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9994 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9995 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9996 * target.c (target_fileio_pwrite): Remove buffer address from
9998 (target_fileio_pread): Likewise.
10000 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10002 * NEWS: Document remote "info proc" and "generate-core-file".
10004 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10006 * gdbarch.sh (find_memory_regions): New callback.
10007 * gdbarch.c, gdbarch.h: Regenerate.
10009 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10010 callback before falling back to target method.
10012 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10013 (linux_target_install_ops): No longer install it.
10015 * linux-tdep.c (linux_find_memory_regions): New function.
10016 (linux_init_abi): Install it.
10018 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10020 * gdbarch.sh (make_corefile_notes): New architecture callback.
10021 * gdbarch.c: Regenerate.
10022 * gdbarch.h: Likewise.
10024 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10025 before target_make_corefile_notes. If NULL is returned, the
10026 target does not support core file generation.
10028 * linux-nat.c: Include "linux-tdep.h".
10029 (find_signalled_thread, find_stop_signal): Remove.
10030 (linux_nat_do_thread_registers): Likewise.
10031 (struct linux_nat_corefile_thread_data): Likewise.
10032 (linux_nat_corefile_thread_callback): Likewise.
10033 (iterate_over_spus): Likewise.
10034 (struct linux_spu_corefile_data): Likewise.
10035 (linux_spu_corefile_callback): Likewise.
10036 (linux_spu_make_corefile_notes): Likewise.
10037 (linux_nat_collect_thread_registers): New function.
10038 (linux_nat_make_corefile_notes): Replace contents by call to
10039 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10040 as native-only callback.
10042 * linux-tdep.h: Include "bfd.h".
10043 (struct regcache): Add forward declaration.
10044 (linux_collect_thread_registers_ftype): New typedef.
10045 (linux_make_corefile_notes): Add prototype.
10046 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10047 "regset.h", and "elf-bfd.h".
10048 (find_signalled_thread, find_stop_signal): New functions.
10049 (linux_spu_make_corefile_notes): Likewise.
10050 (linux_collect_thread_registers): Likewise.
10051 (struct linux_corefile_thread_data): New data structure.
10052 (linux_corefile_thread_callback): New funcion.
10053 (linux_make_corefile_notes): Likewise.
10054 (linux_make_corefile_notes_1): Likewise.
10055 (linux_init_abi): Install it.
10057 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10059 * gdbarch.sh (info_proc): New callback.
10060 * gdbarch.c, gdbarch.h: Regenerate.
10062 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10063 before falling back to the target info_proc callback.
10065 * linux-nat.c: Do not include "cli/cli-utils.h".
10066 (linux_nat_info_proc): Remove.
10067 (linux_target_install_ops): No longer install it.
10069 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10070 (read_mapping): New function.
10071 (linux_info_proc): Likewise.
10072 (linux_init_abi): Install it.
10074 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10076 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10077 * infcmd.c: (info_proc_cmd_1): New function.
10078 (info_proc_cmd): New function, moved here from equivalent routine
10079 orignally in linux-nat.c.
10080 (info_proc_cmd_mappings): Likewise.
10081 (info_proc_cmd_stat): Likewise.
10082 (info_proc_cmd_status): Likewise.
10083 (info_proc_cmd_cwd): Likewise.
10084 (info_proc_cmd_cmdline): Likewise.
10085 (info_proc_cmd_exe): Likewise.
10086 (info_proc_cmd_all): Likewise.
10087 (_initialize_infcmd): Install "info proc" command and subcommands.
10089 * target.h (struct target_ops): Add to_info_proc.
10090 (target_info_proc): Add prototype.
10091 * target.c (target_info_proc): New function.
10093 * procfs.c (procfs_info_proc): Add prototype.
10094 (info_proc_cmd): Rename into ...
10095 (procfs_info_proc): ... this. Update argument types as appropriate
10096 for a to_info_proc implementation. Handle "what" argument.
10097 (procfs_target): Install procfs_info_proc.
10098 (_initialize_procfs): No longer install "info proc" command.
10100 * linux-nat.c: (enum info_proc_what): Remove.
10101 (linux_nat_info_proc_cmd_1): Rename into ...
10102 (linux_nat_info_proc): ... this. Update argument types as appropriate
10103 for a to_info_proc implementation.
10104 (linux_nat_info_proc_cmd): Remove.
10105 (linux_nat_info_proc_cmd_mappings): Likewise.
10106 (linux_nat_info_proc_cmd_stat): Likewise.
10107 (linux_nat_info_proc_cmd_status): Likewise.
10108 (linux_nat_info_proc_cmd_cwd): Likewise.
10109 (linux_nat_info_proc_cmd_cmdline): Likewise.
10110 (linux_nat_info_proc_cmd_exe): Likewise.
10111 (linux_nat_info_proc_cmd_all): Likewise.
10112 (linux_target_install_ops): Install linux_nat_info_proc.
10113 (_initialize_linux_nat): No longer install "info proc" command
10116 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10118 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10119 * config.in, configure: Regenerate.
10121 * target.h (struct target_ops): Add to_fileio_readlink.
10122 (target_fileio_readlink): Add prototype.
10123 * target.c (target_fileio_readlink): New function.
10125 * inf-child.c: Conditionally include <sys/param.h>.
10126 (inf_child_fileio_readlink): New function.
10127 (inf_child_target): Install it.
10129 * remote.c (PACKET_vFile_readlink): New enum value.
10130 (remote_hostio_readlink): New function.
10131 (init_remote_ops): Install it.
10132 (_initialize_remote): Handle vFile:readlink packet type.
10134 2012-01-20 Pedro Alves <palves@redhat.com>
10135 Ulrich Weigand <ulrich.weigand@linaro.org>
10137 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10138 * config.in, configure: Regenerate.
10140 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10141 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10142 (target_fileio_open): Add prototype.
10143 (target_fileio_pwrite): Likewise.
10144 (target_fileio_pread): Likewise.
10145 (target_fileio_close): Likewise.
10146 (target_fileio_unlink): Likewise.
10147 (target_fileio_read_alloc): Likewise.
10148 (target_fileio_read_stralloc): Likewise.
10150 * target.c: Include "gdb/fileio.h".
10151 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10152 (default_fileio_target): New function.
10153 (target_fileio_open): Likewise.
10154 (target_fileio_pwrite): Likewise.
10155 (target_fileio_pread): Likewise.
10156 (target_fileio_close): Likewise.
10157 (target_fileio_unlink): Likewise.
10158 (target_fileio_close_cleanup): Likewise.
10159 (target_fileio_read_alloc_1): Likewise.
10160 (target_fileio_read_alloc): Likewise.
10161 (target_fileio_read_stralloc): Likewise.
10163 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10164 <fcntl.h>, and <unistd.h>.
10165 (inf_child_fileio_open_flags_to_host): New function.
10166 (inf_child_errno_to_fileio_error): Likewise.
10167 (inf_child_fileio_open): Likewise.
10168 (inf_child_fileio_pwrite): Likewise.
10169 (inf_child_fileio_pread): Likewise.
10170 (inf_child_fileio_close): Likewise.
10171 (inf_child_fileio_unlink): Likewise.
10172 (inf_child_target): Install to_fileio routines.
10174 * remote.c (init_remote_ops): Install to_fileio routines.
10176 2012-01-20 Pedro Alves <palves@redhat.com>
10177 Ulrich Weigand <ulrich.weigand@linaro.org>
10179 * remote.c (remote_multi_process_p): Only check for multi-process
10180 protocol feature, do not check for extended protocol.
10181 (remote_supports_multi_process): Check for extended protocol here.
10182 (set_general_process): Likewise.
10183 (extended_remote_kill): Likewise.
10184 (remote_pid_to_str): Likewise.
10185 (remote_query_supported): Always query multiprocess mode.
10187 2012-01-20 Pedro Alves <palves@redhat.com>
10188 Ulrich Weigand <ulrich.weigand@linaro.org>
10190 * inferior.h (struct inferior): Add fake_pid_p.
10191 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10192 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10193 magic_null_ptid since the remote side doesn't provide a real PID.
10195 2012-01-19 Tom Tromey <tromey@redhat.com>
10197 * NEWS: Combine the two Python sections.
10199 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10201 * target.h (target_close): Update comment on the target's unpush state.
10203 2012-01-19 Pedro Alves <palves@redhat.com>
10205 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10206 linux_nat_async directly instead of going through the target
10208 * target.c (unpush_target): Close target after unpushing it, not
10211 2012-01-19 Gary Benson <gbenson@redhat.com>
10213 * mdebugread.c (sort_blocks): Replace integer constants with ones
10214 derived from FIRST_LOCAL_BLOCK.
10216 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10217 Jan Kratochvil <jan.kratochvil@redhat.com>
10220 * symfile.c (find_separate_debug_file): New function.
10221 (terminate_after_last_dir_separator): Likewise.
10222 (find_separate_debug_file_by_debuglink): Also try realpath.
10223 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10224 * configure: Regenerate.
10225 * config.in: Regenerate.
10227 2012-01-18 Doug Evans <dje@google.com>
10229 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10230 (main.o): Remove rule.
10231 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10232 (--with-sysroot): Rewrite.
10233 * configure: Regenerate.
10234 * config.in: Regenerate.
10236 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10238 * parse.c (initialize_expout): New function.
10239 (reallocate_expout): Likewise.
10240 (parse_exp_in_context): Use `initialize_expout' and
10241 `reallocate_expout' when appropriate.
10243 2012-01-18 Pedro Alves <palves@redhat.com>
10245 * record.c (struct record_breakpoint, record_breakpoint_p)
10246 (record_breakpoints): New.
10247 (record_insert_breakpoint, record_remove_breakpoint): Manage
10248 record breakpoints list. Only remove breakpoints from the
10249 inferior if they had been inserted there in the first place.
10251 2012-01-17 Doug Evans <dje@google.com>
10253 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10254 if we know we don't have a file name to look for.
10256 2012-01-17 Pedro Alves <palves@redhat.com>
10258 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10259 the frame's stop reason is UNWIND_UNAVAILABLE.
10261 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10263 Fix compilation error.
10264 * m2-exp.y (yyerror): Use ANSI C prototype.
10266 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10268 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10269 (growbuf_by_size): Likewise.
10270 (yyerror): Likewise.
10271 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10272 (modblock): Remove variable (was #if 0'ed).
10273 (parse_number): Convert prototype from K&R to ANSI C.
10274 (yyerror): Likewise.
10275 * objc-exp.y (parse_number): Likewise.
10276 (yyerror): Likewise.
10277 (yylex): Remove #if 0'ed code.
10278 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10279 (yyerror): Likewise.
10281 2012-01-16 Tom Tromey <tromey@redhat.com>
10284 * symtab.h (compare_filenames_for_search): Declare.
10285 * symtab.c (compare_filenames_for_search): New function.
10286 (iterate_over_some_symtabs): Use it.
10287 * symfile.h (struct quick_symbol_functions)
10288 <map_symtabs_matching_filename>: Change spec.
10289 * psymtab.c (partial_map_symtabs_matching_filename): Use
10290 compare_filenames_for_search. Update for new spec.
10291 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10292 compare_filenames_for_search. Update for new spec.
10293 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10295 2012-01-16 Tom Tromey <tromey@redhat.com>
10298 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10299 (struct main_type) <flag_flag_enum>: New field.
10300 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10301 * NEWS: Add entries.
10302 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10304 * python/lib/gdb/printing.py (_EnumInstance): New class.
10305 (FlagEnumerationPrinter): Likewise.
10307 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10309 * breakpoint.c (create_sals_from_address_default): New function.
10310 (create_breakpoints_sal_default): Likewise.
10311 (decode_linespec_default): Likewise.
10312 (is_marker_spec): Removed.
10313 (strace_marker_p): New function.
10314 (init_breakpoint_sal): Using `strace_marker_p' instead of
10316 (create_breakpoint): Call method `create_sals_from_address' from
10317 breakpoint_ops, replacing code that created SALs conditionally
10318 on the type of the breakpoint. Call method `create_breakpoints_sal',
10319 replacing code that created breakpoints conditionally on the type
10321 (base_breakpoint_create_sals_from_address): New function.
10322 (base_breakpoint_create_breakpoints_sal): Likewise.
10323 (base_breakpoint_decode_linespec): Likewise.
10324 (base_breakpoint_ops): Add methods
10325 `base_breakpoint_create_sals_from_address',
10326 `base_breakpoint_create_breakpoints_sal' and
10327 `base_breakpoint_decode_linespec'.
10328 (bkpt_create_sals_from_address): New function.
10329 (bkpt_create_breakpoints_sal): Likewise.
10330 (bkpt_decode_linespec): Likewise.
10331 (tracepoint_create_sals_from_address): Likewise.
10332 (tracepoint_create_breakpoints_sal): Likewise.
10333 (tracepoint_decode_linespec): Likewise.
10334 (strace_marker_create_sals_from_address): Likewise.
10335 (strace_marker_create_breakpoints_sal): Likewise.
10336 (strace_marker_decode_linespec): Likewise.
10337 (strace_marker_breakpoint_ops): New variable.
10338 (addr_string_to_sals): Remove `marker_spec'. Call method
10339 `decode_linespec' from breakpoint_ops, replacing code that decoded
10340 an address string into a SAL. Use `strace_marker_p' instead of
10342 (strace_command): Decide whether we are dealing with a static
10343 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10344 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10345 * breakpoint.h (linespec_result, linespec_sals): New forward
10347 (breakpoint_ops) <create_sals_from_address>,
10348 <create_breakpoints_sal>, <decode_linespec>: New methods.
10350 2012-01-14 Doug Evans <dje@google.com>
10352 * NEWS: Update text for "maint set python print-stack".
10353 It is deprecated in gdb 7.4 and deleted in 7.5.
10355 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10357 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10358 including curses.h.
10360 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10362 * configure: Regenerate.
10363 * config.in: Regenerate.
10365 2012-01-12 Keith Seitz <keiths@redhat.com>
10368 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10369 (ANONYMOUS_UNION_NAME): Define.
10370 (is_path_expr_parent): New function.
10371 (get_path_expr_parent): New function.
10372 (is_anonymous_child): New function.
10373 (create_child_with_value): If the child is anonymous and without
10374 a name, assign an object name to it.
10375 (c_describe_child): Use get_path_expr_parent to determine
10376 the parent expression.
10377 If there field represents an anonymous struct or union and
10378 has no name, set an appropriate display name and expression.
10379 (cplus_describe_child): Likewise.
10381 2012-01-12 Pedro Alves <palves@redhat.com>
10383 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10384 available when %ebp is found to be zero (outermost).
10386 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10388 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10389 an internal gdb_static_assert.
10390 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10392 2012-01-11 Tom Tromey <tromey@redhat.com>
10395 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10396 catch" and "catch throw".
10398 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10400 * blockframe.c (block_innermost_frame): Start search from selected
10401 frame, if present, or otherwise the current frame.
10403 * c-exp.y (variable): Update innermost_block for
10404 'block COLONCOLON NAME' clause.
10405 * m2-exp.y (variable): Ditto.
10406 * objc-exp.y (variable): Ditto.
10408 2012-01-10 Tom Tromey <tromey@redhat.com>
10411 * python/python.c (finish_python_initialization): Set sys.argv.
10413 2012-01-10 Doug Evans <dje@google.com>
10415 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10416 "want_line_info". All callers updated.
10417 (dwarf_decode_lines_1): New function.
10418 (handle_DW_AT_stmt_list): Add function comment.
10419 New arg "want_line_info". All callers updated.
10420 (read_file_scope,read_type_unit_scope): Move comment from
10421 handle_DW_AT_stmt_list to here.
10423 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10425 Fix regression after libiberty/ update for GCC PR 6057 and others.
10426 * c-exp.y (operator) <OPERATOR DELETE>
10427 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10428 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10429 (make_builtin_type, make_name): New variable i, add gdb_assert.
10430 (operator) <OPERATOR NEW>: Update ARGS to 3.
10431 (operator) <OPERATOR DELETE>: Add trailing space.
10432 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10433 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10434 * cp-support.c (cp_canonicalize_string): Check NULL from
10435 cp_comp_to_string, call warning and return.
10437 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10439 Fix duplicate .o files after omitting libbfd.a.
10440 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10441 (SFILES): Add corelow.c.
10442 (COMMON_OBS): Add corelow.o.
10443 (ALLDEPFILES): Remove corelow.c.
10444 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10445 * config/alpha/alpha-osf3.mh: Likewise.
10446 * config/alpha/fbsd.mh: Likewise.
10447 * config/arm/nbsdaout.mh: Likewise.
10448 * config/arm/nbsdelf.mh: Likewise.
10449 * config/i386/i386gnu.mh: Likewise.
10450 * config/ia64/hpux.mh: Likewise.
10451 * config/ia64/linux.mh: Likewise.
10452 * config/m32r/linux.mh: Likewise.
10453 * config/m68k/linux.mh: Likewise.
10454 * config/mips/irix5.mh: Likewise.
10455 * config/mips/irix6.mh: Likewise.
10456 * config/pa/hpux.mh: Likewise.
10457 * config/pa/linux.mh: Likewise.
10458 * config/powerpc/aix.mh: Likewise.
10459 * config/sparc/linux.mh: Likewise.
10460 * config/sparc/linux64.mh: Likewise.
10461 * config/sparc/sol2.mh: Likewise.
10462 * config/vax/vax.mh: Likewise.
10463 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10464 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10465 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10466 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10467 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10468 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10469 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10470 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10471 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10472 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10473 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10474 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10475 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10476 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10477 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10478 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10479 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10480 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10481 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10482 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10483 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10484 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10485 corelow.o from gdb_target_obs.
10486 * corefile.c (core_target): Update the comment on NULL value.
10487 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10488 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10489 MATCHES. Drop YUMMY set on NULL.
10490 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10491 reclaim CORE_DATA if it is already NULL.
10493 2012-01-09 Doug Evans <dje@google.com>
10495 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10496 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10498 2012-01-09 Keith Seitz <keiths@redhat.com>
10500 * breakpoint.c (wrapper.h): Don't include.
10502 2012-01-09 Keith Seitz <keiths@redhat.com>
10504 * Makefile.in (SFILES): Remove wrapper.c.
10505 (HFILES_NO_SRCDIR): Remove wrapper.h.
10506 (COMMON_OBS): Remove wrapper.o.
10507 * cli/cli-interp.c: Don't inlude wrapper.h.
10508 * corelow.c: Likewise.
10509 (core_open): Replace gdb_target_find_new_threads with
10510 TRY_CATCH around target_find_new_threads.
10511 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10512 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10513 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10514 evaluate_expression.
10515 (varobj_set_value): Likewise for evaluate_expression and
10517 (install_new_variable): Likewise for value_fetch_lazy.
10518 (adjust_value_for_child_access): Likewise for value_ind.
10519 (c_describe_child): Likewise for value_subscript and
10521 (c_value_of_root): Likewise for evaluate_expression.
10522 * wrapper.c: Remove.
10523 * wrapper.h: Remove.
10525 2012-01-09 Doug Evans <dje@google.com>
10527 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10528 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10529 "abfd" args with "section". All callers updated.
10530 Error checking code moved ...
10531 (error_check_comp_unit_head): ... here. New function.
10532 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10533 Delete arg "abfd". New arg "type_offset". All callers updated.
10534 (create_debug_types_hash_table): Simplify by using
10535 read_and_check_type_unit_head.
10537 * parser-defs.h (namecopy): Delete.
10538 * parse.c (namecopy, namecopy_size): Move into copy_name.
10540 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10542 Partially fix duplicate .o files after omitting libbfd.a.
10543 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10544 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10545 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10546 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10547 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10548 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10549 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10551 2012-01-09 Pedro Alves <palves@redhat.com>
10553 * MAINTAINERS: Update my email address.
10555 2012-01-08 Doug Evans <dje@google.com>
10557 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10558 n_type_units. Rename type_comp_units to all_type_units.
10560 (add_signatured_type_cu_to_table): Renamed from
10561 add_signatured_type_cu_to_list. All callers updated.
10563 * gdbtypes.h (struct cplus_struct_type): Delete member
10564 nfn_fields_total. All uses removed.
10566 2012-01-06 Doug Evans <dje@google.com>
10568 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10570 (dwarf2_find_comp_unit): Delete.
10571 (process_psymtab_comp_unit): Make result "void".
10572 Delete args buffer, info_ptr, buffer_size, and replace with
10573 "section". All callers updated.
10574 (dwarf2_build_psymtabs_hard): Simplify.
10576 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10577 Thiago Jung Bauermann <bauerman@br.ibm.com>
10579 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10580 before `struct gdb_exception'.
10581 * breakpoint.c (update_global_location_list_nothrow)
10582 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10583 * cp-abi.c (value_rtti_type): Likewise.
10584 * cp-support.c (cp_validate_operator): Likewise.
10585 * infrun.c (insert_exception_resume_breakpoint)
10586 (check_exception_resume, keep_going): Likewise.
10587 * mi-interp.c (mi_breakpoint_created)
10588 (mi_breakpoint_modified): Likewise.
10589 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10590 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10591 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10593 2012-01-05 Doug Evans <dje@google.com>
10595 * dwarf2read.c (statement_prologue): Delete, unused.
10597 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10598 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10600 * dwarf2read.c (comp_unit_header): Delete, unused.
10602 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10604 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10605 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10607 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10609 * infrun.c (normal_stop): Don't skip calling the normal_stop
10610 observers if the thread was doing a multi-step, but stopped for
10611 some reason other than stepping.
10613 2012-01-05 Pedro Alves <alves.ped@gmail.com>
10615 * cli/cli-decode.h: Add comments.
10616 (CMD_LIST_AMBIGUOUS): Moved to command.h
10617 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10618 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10619 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10620 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10621 (add_com, add_com_alias, add_info, add_info_alias)
10622 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10624 * command.h: Add and adjust comments.
10625 (CMD_LIST_AMBIGUOUS): Moved here.
10626 (help_cmd, help_cmd_list): Delete declarations.
10628 2012-01-04 Doug Evans <dje@google.com>
10630 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10631 All callers updated.
10632 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10633 Replace all arguments with "per_cu". All callers updated.
10635 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10637 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10638 New arg "per_cu". All callers updated.
10640 Delete #if 0'd out code.
10641 * language.c (binop_result_type): Delete.
10642 (simple_type, ordered_type, same_type, integral_type): Delete.
10643 (numeric_type, character_type, string_type, boolean_type): Delete.
10644 (float_type, structured_type): Delete.
10645 * language.h: Update.
10647 2012-01-04 Tom Tromey <tromey@redhat.com>
10649 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10651 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10653 * corefile.c (close_exec_file): Delete.
10654 (reopen_exec_file): Remove commented out code that seems related
10655 to close_exec_file, which is being deleted here.
10656 * inferior.h (close_exec_file): Delete.
10657 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10659 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10661 * ada-lang.c: #include "cli/cli-utils.h".
10662 (get_selections): Use skip_spaces.
10663 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10664 (catch_ada_exception_command_split): Use skip_spaces.
10665 (ada_decode_assert_location): Likewise.
10667 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10669 * linespec.c (decode_line_internal): Check for C++ or Java
10670 compound constructs only if the current language is C, C++
10673 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10676 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10677 Joel Brobecker <brobecker@adacore.com>
10678 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10679 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10681 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10682 fall through into AT_ENTRY_POINT.
10683 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10684 DUMMY_ADDR with it.
10685 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10686 PPC_INSN_SIZE skip to 3 times.
10688 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10690 * linespec.c (add_minsym): Preserve function descriptors.
10692 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10694 * breakpoint.c (all_locations_are_pending): Consider locations
10695 in program spaces executing during startup pending as well.
10697 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10699 Copyright year update in most files of the GDB Project.
10701 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10703 * copyright.sh: Delete.
10704 * copyright.py: Rewrite.
10706 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10708 * gnulib/extra/update-copyright: New file, imported from gnulib.
10710 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10712 * README (Copyright and License Notices): New section.
10714 2012-01-03 Tom Tromey <tromey@redhat.com>
10717 * python/py-value.c (valpy_dereference, valpy_get_address
10718 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10719 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10720 (valpy_absolute, valpy_richcompare): Free intermediate values.
10722 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10724 * ada-lang.c: Reformat the copyright notice.
10726 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10728 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10729 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10730 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10731 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10732 Revert this part of:
10733 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10734 Build gdb directly from *.o files not using libgdb.a.
10735 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10737 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10739 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10740 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10741 Reformat the copyright header.
10743 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10745 Revert this part of:
10746 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10747 Remove the gdbtui binary.
10748 * gdb.c (main): Remove args.interpreter_p initialization.
10749 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10750 * main.h (struct captured_main_args): Remove interpreter_p.
10752 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10754 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10756 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10758 * top.c (print_gdb_version): Update copyright year.
10760 2012-01-02 Yao Qi <yao@codesourcery.com>
10762 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10764 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10765 Joel Brobecker <brobecker@adacore.com>
10767 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10768 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10770 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10771 fall through into AT_ENTRY_POINT.
10772 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10773 DUMMY_ADDR with it.
10774 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10775 PPC_INSN_SIZE skip to 3 times.
10777 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10779 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10781 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10783 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10785 Build gdb directly from *.o files not using libgdb.a.
10786 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10787 (COMMON_OBS): Remove solib-target.o.
10788 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10789 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10790 (LIBGDB_OBS, libgdb.a): Move it above.
10791 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10792 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10793 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10794 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10795 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10796 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10797 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10798 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10799 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10800 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10801 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10802 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10803 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10804 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10805 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10806 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10807 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10808 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10809 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10810 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10811 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10812 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10813 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10814 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10815 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10816 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10817 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10819 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10821 Remove the gdbtui binary.
10822 * .gitignore (/gdbtui): Remove.
10823 * Makefile.in (TUI): Remove.
10824 (SUBDIR_TUI_OBS): Remove tui-main.o.
10825 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10826 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10827 (tui-main.o): Remove.
10828 (all_object_files): Remove tui-main.o.
10829 * NEWS: New note for the gdbtui removal.
10830 * configure: Rebuilt.
10831 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10832 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10833 CONFIG_UNINSTALL respectively.
10834 * gdb.c (main): Remove args.interpreter_p initialization.
10835 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10836 * main.h (struct captured_main_args): Remove interpreter_p.
10837 * tui/tui-main.c: Remove.
10839 2012-01-01 Doug Evans <dje@google.com>
10841 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10842 (dwarf2_physname, read_import_statement): Ditto.
10843 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10844 (process_structure_scope read_subroutine_type): Ditto.
10845 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10846 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10847 (dwarf2_fetch_die_location_block): Ditto.
10848 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10850 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10851 All callers updated.
10852 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10853 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10854 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10856 * dwarf2read.c (load_cu): Move assert to more useful location.
10858 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10859 All callers updated.
10861 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10862 (dwarf2_elf_names): Minor reformat.
10863 (dwarf2_per_cu_data): Tweak comment.
10864 (dwarf2_read_section): Fix comment.
10865 (create_all_comp_units): Fix comment.
10866 (load_full_comp_unit): Fix comment.
10867 (process_full_comp_unit): Fix comment.
10868 (read_signatured_type): Fix comment.
10870 For older changes see ChangeLog-2011.
10876 version-control: never