1 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4 for "fpscr" in target description.
6 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
9 initialize it. Delay HASH initialization. Strip the part after open
10 parenthesis for languages with qualifiers. Call do_cleanups.
12 2011-04-01 Tom Tromey <tromey@redhat.com>
14 * utils.c (report_command_stats): Don't print `-' for negative
17 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
19 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
20 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
23 2011-04-01 Joel Brobecker <brobecker@adacore.com>
25 * breakpoint.h (bpdisp_text): Add declaration.
26 * breakpoint.c (bpdisp_text): Make non-static.
27 * ada-lang.c: #include "mi/mi-common.h".
28 (print_it_exception): Rewrite to improve GDB/MI output.
30 2011-04-01 Pedro Alves <pedro@codesourcery.com>
32 * arm-tdep.h (struct address_space): Add forward declaration.
34 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
36 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
37 * arm-tdep.c (arm_override_mode): New global.
38 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
39 execution mode heuristics.
40 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
41 second single-step breakpoint if needed, using
42 arm_insert_single_step_breakpoint.
43 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
44 ARM execution mode, do not call thumb_get_next_pc_raw.
45 (arm_get_next_pc): Encode execution mode in return value. Call
46 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
47 (arm_insert_single_step_breakpoint): New function.
48 (arm_software_single_step): Call it.
49 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
50 argument to return execution mode of sigreturn target.
51 (arm_linux_syscall_next_pc): Use it.
52 (arm_linux_copy_svc): Update call.
53 (arm_linux_software_single_step): Call
54 arm_insert_single_step_breakpoint.
56 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
61 2011-03-31 Tom Tromey <tromey@redhat.com>
63 * varobj.c (update_dynamic_varobj_children): Properly handle
66 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
68 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
69 struct linkage name twice.
71 2011-03-31 Tom Tromey <tromey@redhat.com>
73 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
74 missing ">" to message.
76 2011-03-31 Tom Tromey <tromey@redhat.com>
78 * varobj.c (instantiate_pretty_printer): Remove duplicate
81 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
83 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
84 if neither saved value nor register available (e.g. signal frame).
86 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
88 * macroexp.c (expand): Avoid uninitialized variable
91 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
93 * breakpoint.c (break_range_command): Fix typo in comment.
95 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
96 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
98 Implement support for PowerPC BookE ranged breakpoints.
99 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
100 * breakpoint.h (struct bp_target_info) <length>: New member
102 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
103 instead of struct breakpoint as argument, and also add ASPACE
104 and BP_ADDR arguments. Update all callers.
105 (struct breakpoint_ops) <print_one_detail>: New method.
106 (struct breakpoint) <addr_string_range_end>: New member variable.
107 * breakpoint.c (breakpoint_location_address_match): Add function
109 (insert_bp_location): Set bl->target_info.length.
110 (breakpoint_here_p): Call breakpoint_location_address_match.
111 (moribund_breakpoint_here_p): Likewise.
112 (regular_breakpoint_inserted_here_p): Likewise.
113 (breakpoint_thread_match): Likewise.
114 (bpstat_stop_status): Likewise.
115 (bpstat_check_location): Move call to
116 breakpoint_ops.breakpoint_hit to the top.
117 (print_one_breakpoint_location): Call
118 breakpoint_ops.print_one_detail if available.
119 (breakpoint_address_match_range): New function.
120 (breakpoint_location_address_match): Likewise.
121 (breakpoint_locations_match): Compare the length field of the
123 (hw_breakpoint_used_count): Count resources used by all locations
124 in a breakpoint, and use breakpoint_ops.resources_needed if
126 (breakpoint_hit_ranged_breakpoint): New function.
127 (resources_needed_ranged_breakpoint): Likewise.
128 (print_it_ranged_breakpoint): Likewise.
129 (print_one_ranged_breakpoint): Likewise.
130 (print_one_detail_ranged_breakpoint): Likewise.
131 (print_mention_ranged_breakpoint): Likewise.
132 (print_recreate_ranged_breakpoint): Likewise.
133 (ranged_breakpoint_ops): New structure.
134 (find_breakpoint_range_end): New function.
135 (break_range_command): Likewise.
136 (delete_breakpoint): Free addr_string_range_end.
137 (update_breakpoint_locations): Add SALS_END argument. Update
138 all callers. Calculate breakpoint length if a non-zero SALS_END
139 is given. Call breakpoint_locations_match instead of
140 breakpoint_address_match.
141 (reset_breakpoint): Find SaL of the end of the range if B is a
143 (_initialize_breakpoint): Register break-range command.
144 * defs.h (print_core_address): Add function prototype.
145 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
147 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
148 (ppc_linux_remove_hw_breakpoint): Likewise.
149 (_initialize_ppc_linux_nat): Initialize
150 to_ranged_break_num_registers.
151 * target.c (update_current_target): Add comment about
152 to_ranged_break_num_registers.
153 (target_ranged_break_num_registers): New function.
154 * target.h (struct target_ops) <to_ranged_break_num_registers>:
156 (target_ranged_break_num_registers): Add function prototype.
157 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
158 * utils.c (print_core_address): ... here.
160 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
162 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
163 variable compiler warning.
165 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
167 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
169 (re_set_breakpoint): ... to here ...
170 (addr_string_to_sals): ... and here.
172 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
174 * Makefile.in (SFILES): Add missing C sources.
175 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
178 2011-03-29 Mike Frysinger <vapier@gentoo.org>
180 * .gitignore: New file.
182 2011-03-29 Mike Frysinger <vapier@gentoo.org>
184 * NEWS: Mention new cfi device simulation.
186 2011-03-29 Tom Tromey <tromey@redhat.com>
188 * dwarf2read.c (fixup_partial_die): Handle linkage name on
189 otherwise anonymous types.
190 (dwarf2_name): Likewise.
191 * valops.c (value_struct_elt_for_reference): Refine artificial
192 type logic. Call error if j==-1.
194 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
196 Fix false GCC warning.
197 * infcall.c (find_function_addr): Initialize funaddr.
199 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
201 Fix mingw compilation with --enable-targets=all.
202 * remote-mips.c (gdb_usleep.h): Include header.
203 (mips_enter_debug): Use gdb_usleep instead of sleep.
205 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
207 Support resolution of STT_GNU_IFUNC via breakpoints.
208 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
209 bp_gnu_ifunc_resolver_return.
210 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
211 the loop. Support bp_gnu_ifunc_resolver and
212 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
213 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
215 (bptype_string, print_one_breakpoint_location): Support
216 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
217 (user_settable_breakpoint): Return true also for
218 bp_gnu_ifunc_resolver.
219 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
220 bp_gnu_ifunc_resolver_return.
221 (set_breakpoint_location_function): New parameter explicit_loc,
222 describe it. Call find_pc_partial_function_gnu_ifunc with new
223 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
224 EXPLICIT_LOC is not set.
225 (set_raw_breakpoint): Set EXPLICIT_LOC for
226 set_breakpoint_location_function.
227 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
228 set_breakpoint_location_function.
229 (mention): Support bp_gnu_ifunc_resolver and
230 bp_gnu_ifunc_resolver_return.
231 (add_location_to_breakpoint): Set EXPLICIT_LOC for
232 set_breakpoint_location_function.
233 (update_breakpoint_locations): Remove static.
234 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
235 bp_gnu_ifunc_resolver_return.
236 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
237 bp_gnu_ifunc_resolver_return.
238 (update_breakpoint_locations): New declaration.
239 * elfread.c: Include gdbthread.h and regcache.h.
240 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
242 (elf_gnu_ifunc_fns): Install them.
243 * minsyms.c (stub_gnu_ifunc_resolver_stop)
244 (stub_gnu_ifunc_resolver_return_stop): New functions.
245 (stub_gnu_ifunc_fns): Install them.
246 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
247 and gnu_ifunc_resolver_return_stop.
248 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
250 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
252 STT_GNU_IFUNC reader implementation.
253 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
254 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
255 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
256 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
257 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
258 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
259 (elf_gnu_ifunc_resolve_addr): New.
260 (elf_symfile_read): Call elf_rel_plt_read.
261 (elf_gnu_ifunc_fns): New.
262 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
263 Install elf_gnu_ifunc_fns.
264 * infcall.c (find_function_return_type): New function.
265 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
266 * minsyms.c (stub_gnu_ifunc_resolve_addr)
267 (stub_gnu_ifunc_resolve_name): New functions.
268 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
269 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
270 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
272 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
274 Code cleanup for later STT_GNU_IFUNC support.
275 * infcall.c (find_function_addr): Remove variable code, use explicit
276 dereferences for it. Move VALUE_TYPE initialization later.
278 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
280 GDB find_pc_partial_function support for STT_GNU_IFUNC.
281 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
282 (clear_pc_function_cache): Clear it.
283 (find_pc_partial_function): Rename to ...
284 (find_pc_partial_function_gnu_ifunc): ... this function. New
285 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
286 (find_pc_partial_function): New wrapper for this function.
287 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
289 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
291 GDB internal type support for STT_GNU_IFUNC.
292 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
293 (elf_symtab_read): Set mst_text_gnu_ifunc for
294 BSF_GNU_INDIRECT_FUNCTION.
295 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
296 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
297 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
298 nodebug_got_plt_symbol.
299 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
300 (TYPE_GNU_IFUNC): New.
301 (struct main_type): New field flag_gnu_ifunc.
302 (struct builtin_type): New field builtin_func_func.
303 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
304 nodebug_got_plt_symbol.
305 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
306 (in_gnu_ifunc_stub): New.
307 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
309 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
310 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
311 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
313 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
314 * symtab.c (search_symbols): Likewise.
315 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
316 and mst_slot_got_plt.
317 (in_gnu_ifunc_stub): New declaration.
319 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
321 Support a ring of related breakpoints.
322 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
323 other functions, add gdb_assert.
324 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
325 watchpoint_del_at_next_stop.
326 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
327 (bpstat_stop_status): Handle ring in related_breakpoint.
328 (set_raw_breakpoint_without_location): Initialize ring in
330 (delete_breakpoint): Handle ring in related_breakpoint, use
331 watchpoint_del_at_next_stop.
332 (map_breakpoint_numbers): Handle ring in related_breakpoint.
334 2011-03-28 Tom Tromey <tromey@redhat.com>
337 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
338 with `language_minimal'.
340 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
342 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
343 instead of checking for STT_ARM_TFUNC symbol type.
345 2011-03-25 Tom Tromey <tromey@redhat.com>
347 * linespec.c (symbol_found): Restore line-based result for
348 non-LOC_LABEL symbols.
350 2011-03-25 Kai Tietz <ktietz@redhat.com>
352 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
353 instead of strcmp for comparison.
354 (tui_source_is_displayed): Likewise.
355 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
357 2011-03-24 Mark Wielaard <mjw@redhat.com>
359 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
361 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
362 (find_partial_die_in_comp_unit): Likewise in comment.
363 (read_attribute_value): Likewise.
364 (lookup_die_type): Likewise.
365 (dwarf_form_name): Likewise.
366 (dump_die_shallow): Likewise.
367 (follow_die_ref_or_sig): Likewise.
369 2011-03-24 Tom Tromey <tromey@redhat.com>
371 PR breakpoints/11816:
372 * linespec.c (decode_line_1): Parse `function:label' linespecs.
373 (decode_compound): Update.
374 (find_function_symbol): New function.
375 (decode_dollar): Update.
376 (decode_label): Add 'function_symbol' parameter. Handle
377 function-relative labels.
378 (decode_variable): Update.
379 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
380 not its line. Set `special_display' and canonical name for
383 2011-03-24 Tom Tromey <tromey@redhat.com>
385 * linespec.h (struct linespec_result) <special_display>: New
387 * breakpoint.h (struct breakpoint) <display_canonical>: New
389 * breakpoint.c (print_breakpoint_location): Respect
391 (create_breakpoint_sal): Add 'display_canonical' parameter.
392 (create_breakpoints_sal): Update.
393 (create_breakpoint): Update.
395 2011-03-24 Tom Tromey <tromey@redhat.com>
397 * symtab.c (decode_line_spec): Update.
398 * linespec.c (build_canonical_line_spec): Change type of
400 (decode_line_2, decode_line_1, decode_objc, decode_compound)
401 (find_method, decode_all_digits, decode_dollar, decode_label)
402 (symbol_found): Likewise.
403 (init_linespec_result): New function.
404 * breakpoint.c (struct captured_parse_breakpoint_args)
405 <canonical_p>: New field, replaces addr_string_p.
406 (create_breakpoints_sal): Add 'canonical' parameter, replacing
408 (parse_breakpoint_sals): Likewise.
409 (do_captured_parse_breakpoint): Update.
410 (create_breakpoint): Use struct linespec_result.
411 (until_break_command): Update.
412 (breakpoint_re_set_one): Update.
413 (decode_line_spec_1): Update.
414 * linespec.h (struct linespec_result): New.
415 (init_linespec_result): Declare.
417 2011-03-23 Pedro Alves <pedro@codesourcery.com>
419 * regcache.c (regcache_raw_read): If the target didn't supply a
420 given raw register, mark it as unavailable.
422 2011-03-23 Kai Tietz <ktietz@redhat.com>
424 * breakpoint.c (clear_command): Use filename_cmp
425 instead of strcmp for comparison.
426 * buildsym.c (watch_main_source_file_lossage): Likewise.
427 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
428 checking just for slash.
429 * dbxread.c (read_dbx_symtab): Use lbasename instead of
430 strrchr and filename_cmp instead of strcmp for filenames.
431 (add_old_header_file): Use filename_cmp
432 instead of strcmp for comparison.
433 * exec.c (exec_set_section_address): Likewise.
434 * macrotab.c (macro_lookup_inclusion): Likewise.
435 (macro_lookup_inclusion): Likewise.
436 * elfread.c (_initialize_elfread): Likewise.
437 (elfstab_offset_sections): Likewise.
438 (elfstab_offset_sections): Use lbasename instead of
440 * mdebugread.c (parse_partial_symbols): Likewise.
441 (arse_partial_symbols): Use filename_(n)cmp instead of
442 str(n)cmp for comparison.
443 * minsyms.c (lookup_minimal_symbol): Likewise.
444 * psymtab.c (read_psymtabs_with_filename): Likewise.
445 * solib.c (solib_read_symbols): Likewise.
446 (reload_shared_libraries_1): Likewise.
447 * symmisc.c (maintenance_print_symbols): Likewise.
448 * symfile.c (separate_debug_file_exists): Likewise.
449 (reread_symbols): Likewise.
450 (find_separate_debug_file_by_debuglink): Likewise.
451 * remote-fileio.c (remote_fileio_func_rename): Likewise.
452 * source.c (add_path): Likewise.
453 * symtab.c (filename_seen): Likewise.
454 (file_matches): Likewise.
455 (print_symbol_info): Likewise.
456 (maybe_add_partial_symtab_filename): Likewise.
457 (make_source_files_completion_list): Likewise.
458 * xml-syscall.c (init_sysinfo): Likewise.
459 * windows-nat.c (_initialize_check_for_gdb_ini): Use
460 IS_DIR_SEPARATOR for checking for trailing path separator.
462 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
464 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
465 label abort_expression.
466 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
467 DWARF_VALUE_OPTIMIZED_OUT.
469 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
472 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
473 to linkage_name. Invert its value. Update the function comment.
474 (c_type_print_varspec_suffix): Invert it at the caller.
475 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
477 2011-03-22 Pedro Alves <pedro@codesourcery.com>
479 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
480 errors when reading the `stop_pc'.
481 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
484 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
486 * NEWS: Document gdb.Write stream keyword.
488 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
491 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
492 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
493 (dwarf2_add_field): Fix new_field->accessibility for
494 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
496 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
500 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
501 other error classes. Do not print stack trace.
503 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
505 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
506 (dwarf2_add_field): Fix new_field->accessibility for
507 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
509 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
511 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
512 encountering a load via a non-SP register.
514 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
516 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
517 field in returned unwinder.
519 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
523 2012-03-21 Joel Brobecker <brobecker@adacore.com>
525 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
528 2012-03-18 Pedro Alves <pedro@codesourcery.com>
530 * frame.c (frame_unwind_register): Throw an error if unwinding the
532 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
533 an unwind stop reason.
534 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
535 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
536 UNWIND_UNAVAILABLE>: New.
537 * inline-frame.c (inline_frame_unwind): Install
538 default_frame_unwind_stop_reason.
539 * frame-unwind.c: Include "exceptions.h".
540 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
541 (default_frame_unwind_stop_reason): New.
542 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
543 (default_frame_unwind_stop_reason): Declare.
544 (struct frame_unwind) <stop_reason>: New function pointer.
546 * dummy-frame.c: Install default_frame_unwind_stop_reason.
547 * dwarf2-frame.c: Include exceptions.h.
548 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
549 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
550 computing the CFA. If such an error was thrown, set
552 (dwarf2_frame_unwind_stop_reason): New.
553 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
555 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
556 (dwarf2_signal_frame_unwind): Ditto.
558 * amd64-tdep.c: Include "exceptions.h".
559 (struct amd64_frame_cache): New field "base_p".
560 (amd64_init_frame_cache): Clear it.
561 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
562 Avoid reading registers with functions that throw if the register
563 is not necessary to compute the frame base.
564 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
565 swallowing NOT_AVAILABLE_ERROR.
566 (amd64_frame_unwind_stop_reason): New.
567 (amd64_frame_this_id): Don't build a frame id if the frame base
569 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
570 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
571 base_p if the frame base was computable.
572 (amd64_sigtramp_frame_unwind_stop_reason): New.
573 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
574 frame base was unavailable.
575 (amd64_sigtramp_frame_unwind): Install
576 amd64_sigtramp_frame_unwind_stop_reason.
577 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
578 base_p if the frame base was computable.
579 (amd64_epilogue_frame_unwind_stop_reason): New.
580 (amd64_epilogue_frame_this_id): Don't build a frame id if the
581 frame base was unavailable.
582 (amd64_epilogue_frame_unwind): Install
583 amd64_epilogue_frame_unwind_stop_reason.
584 * i386-tdep.c: Include "exceptions.h".
585 (struct i386_frame_cache): New field "base_p".
586 (i386_init_frame_cache): Clear it.
587 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
588 Avoid reading registers with functions that throw if the register
589 is not necessary to compute the frame base.
590 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
591 swallowing NOT_AVAILABLE_ERROR.
592 (i386_frame_unwind_stop_reason): New.
593 (i386_frame_this_id): Don't build a frame id if the frame base was
595 (i386_frame_prev_register): Handle unavailable SP.
596 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
597 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
598 base_p if the frame base was computable.
599 (i386_epilogue_frame_unwind_stop_reason): New.
600 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
601 base was unavailable.
602 (i386_epilogue_frame_unwind): Install
603 i386_epilogue_frame_unwind_stop_reason.
604 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
605 base_p if the frame base was computable.
606 (i386_sigtramp_frame_unwind_stop_reason): New.
607 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
608 base was unavailable.
609 (i386_sigtramp_frame_unwind): Install
610 i386_sigtramp_frame_unwind_stop_reason.
611 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
612 type's size, not the register's.
613 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
615 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
616 default_frame_unwind_stop_reason.
617 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
618 (alpha_heuristic_frame_unwind): Ditto.
619 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
620 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
621 * avr-tdep.c (avr_frame_unwind): Ditto.
622 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
624 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
625 * frv-tdep.c (frv_frame_unwind): Ditto.
626 * h8300-tdep.c (h8300_frame_unwind): Ditto.
627 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
628 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
629 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
630 (hppa_stub_frame_unwind): Ditto.
631 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
632 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
633 (ia64_libunwind_frame_unwind)
634 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
635 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
636 * lm32-tdep.c (lm32_frame_unwind): Ditto.
637 * m32c-tdep.c (m32c_unwind): Ditto.
638 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
639 * m32r-tdep.c (m32r_frame_unwind): Ditto.
640 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
641 * m68k-tdep.c (m68k_frame_unwind): Ditto.
642 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
643 * m88k-tdep.c (m88k_frame_unwind): Ditto.
644 * mep-tdep.c (mep_frame_unwind): Ditto.
645 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
646 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
647 (mips_stub_frame_unwind): Ditto.
648 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
649 * moxie-tdep.c (moxie_frame_unwind): Ditto.
650 * mt-tdep.c (mt_frame_unwind): Ditto.
651 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
652 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
653 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
654 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
655 (s390_sigtramp_frame_unwind): Ditto.
656 * score-tdep.c (score_prologue_unwind): Ditto.
657 * sh-tdep.c (sh_frame_unwind): Ditto.
658 * sh64-tdep.c (sh64_frame_unwind): Ditto.
659 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
660 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
661 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
662 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
663 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
664 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
665 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
666 (sparc64obsd_trapframe_unwind): Ditto.
667 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
668 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
669 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
670 * v850-tdep.c (v850_frame_unwind): Ditto.
671 * vax-tdep.c (vax_frame_unwind): Ditto.
672 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
673 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
674 * xtensa-tdep.c (xtensa_unwind): Ditto.
676 2011-03-18 Pedro Alves <pedro@codesourcery.com>
678 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
679 there's always a frame. Use get_frame_pc_if_available instead of
680 get_frame_pc, and if there's no PC available, don't look up a
683 2011-03-18 Pedro Alves <pedro@codesourcery.com>
685 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
688 2011-03-18 Pedro Alves <pedro@codesourcery.com>
690 * tracepoint.c (set_traceframe_context): Handle unavailable PC
693 2011-03-18 Pedro Alves <pedro@codesourcery.com>
695 * frame.h (frame_unwind_caller_pc_if_available): Declare.
696 * frame.c (frame_unwind_caller_pc_if_available): New.
697 * stack.c (frame_info): Handle unavailable PC.
699 2011-03-18 Pedro Alves <pedro@codesourcery.com>
701 * frame.c (frame_unwind_pc): Rename to ...
702 (frame_unwind_pc_if_available): ... this. New `pc' output
703 parameter. Change return type to int. Gracefully handle
704 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
705 happened, or 1 otherwise.
706 (frame_unwind_pc): Reimplement on top of
707 frame_unwind_pc_if_available.
708 (get_frame_func): Rename to ...
709 (get_frame_func_if_available): New `pc' output parameter. Change
710 return type to int. Gracefully handle the PC not being available.
711 (get_frame_func): Reimplement on top of
712 get_frame_func_if_available.
713 (select_frame): Handle the PC being unavailable.
714 (get_prev_frame): Handle the PC being unavailable.
715 (get_frame_pc_if_available): New.
716 (get_frame_address_in_block_if_available): New.
717 (find_frame_sal): Handle the frame PC not being available.
718 * frame.h (get_frame_pc_if_available): Declare.
719 (get_frame_address_in_block_if_available): Declare.
720 (get_frame_func_if_available): Declare.
721 * stack.c (print_frame_info): Handle the PC being unavailable.
722 (find_frame_funname): Ditto.
723 (print_frame): Handle the PC being unavailable.
724 (get_frame_language): Ditto.
725 * blockframe.c (get_frame_block): Ditto.
726 * macroscope.c (default_macro_scope): Ditto.
727 * tui/tui-stack.c (tui_show_frame_info): Ditto.
729 2011-03-18 Pedro Alves <pedro@codesourcery.com>
731 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
732 NOT_AVAILABLE_ERROR when evaluating the location expression.
734 2011-03-18 Pedro Alves <pedro@codesourcery.com>
736 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
737 returning that the register piece is unavailable/optimized out.
738 (write_pieced_value): Handle get_frame_register_bytes returning
739 that the register piece is unavailable/optimized out when doing a
740 read-modify write of a bitfield.
741 * findvar.c (value_from_register): Handle get_frame_register_bytes
742 returning that the register piece is unavailable/optimized out.
743 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
744 and `unavailablep'. Throw error on bad debug info. Use
745 frame_register instead of frame_register_read, to fill in the new
747 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
749 * valops.c: (value_assign): Adjust, and handle
750 get_frame_register_bytes failing.
751 * spu-tdep.c: Include exceptions.h.
752 (spu_software_single_step): Adjust, and handle
753 get_frame_register_bytes failing.
754 (spu_get_longjmp_target): Ditto.
755 * gdbarch.sh (register_to_value): Change to return int. New
756 parameters `optimizedp' and `unavailablep'.
757 * gdbarch.h, gdbarch.c: Regenerate.
758 * i386-tdep.c (i386_register_to_value): Adjust to new
759 gdbarch_register_to_value interface.
760 * i387-tdep.c (i387_register_to_value): Ditto.
761 * i387-tdep.h (i387_register_to_value): Ditto.
762 * alpha-tdep.c (alpha_register_to_value): Ditto.
763 * ia64-tdep.c (ia64_register_to_value): Ditto.
764 * m68k-tdep.c (m68k_register_to_value): Ditto.
765 * mips-tdep.c (mips_register_to_value): Ditto.
766 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
768 2011-03-18 Pedro Alves <pedro@codesourcery.com>
770 * findvar.c (value_of_register): Mark the value as unavailable, if
771 the register is unavailable.
772 * frame.h (frame_register_unwind): New `unavailablep' parameter.
773 (frame_register): New `unavailablep' parameter.
774 (frame_register_read): Update comment.
775 * frame.c (frame_register_unwind): New `unavailablep' parameter.
776 Set it if the register is unavailable. If the register is
777 unavailable, clear the output buffer.
778 (frame_register): New `unavailablep' parameter. Pass it down.
779 (frame_unwind_register): Adjust.
780 (put_frame_register): Adjust.
781 (frame_register_read): Adjust. Also return false if the register
783 (frame_register_unwind_location): Adjust.
784 * sentinel-frame.c (sentinel_frame_prev_register): If the register
785 is unavailable, mark the value accordingly.
786 * stack.c (frame_info): Handle unavailable registers.
788 2011-03-18 Pedro Alves <pedro@codesourcery.com>
790 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
791 simplify, using regcache_cooked_read.
793 2011-03-18 Pedro Alves <pedro@codesourcery.com>
795 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
796 (regcache_raw_read_unsigned, regcache_raw_read_signed)
797 (regcache_raw_read_unsigned, regcache_raw_read_part)
798 (regcache_cooked_read, regcache_cooked_read_signed)
799 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
800 (regcache_cooked_read_ftype): Change return to enum
802 * regcache.c: Include exceptions.h
803 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
804 (do_cooked_read): Change return to enum register_status. Always
805 forward to regcache_cooked_read.
806 (regcache_raw_read): Change return to enum register_status. If
807 the register is not REG_VALID, memset the buffer. Return the
809 (regcache_raw_read_signed): Handle non-REG_VALID registers and
810 return the register's status.
811 (regcache_raw_read_unsigned): Ditto.
812 (regcache_cooked_read): Change return to enum register_status.
813 Assert that with read-only regcaches, the register's status must
814 be known. If the regcache is read-only, and the register is not
815 REG_VALID, memset the buffer. Return the register's status.
816 (regcache_cooked_read_signed): Change return to enum
817 register_status. Handle non-REG_VALID registers and return the
819 (regcache_cooked_read_unsigned): Change return to enum
820 register_status. Handle non-REG_VALID registers and return the
822 (regcache_xfer_part, regcache_raw_read_part)
823 (regcache_cooked_read_part): Change return to enum
824 register_status. Return the register's status.
825 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
827 (regcache_dump): Handle unavailable cooked registers.
828 * frame.c (do_frame_register_read): Adjust interface to match
829 regcache_cooked_read_ftype.
830 * gdbarch.sh (pseudo_register_read): Change return to enum
832 * gdbarch.h, gdbarch.c: Regenerate.
834 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
836 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
837 register_status. If reading a raw register indicates the raw
838 register is not valid, return the raw register's status,
839 otherwise, return REG_VALID.
840 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
841 register_status. Handle non-REG_VALID raw registers and return
842 the register's status.
843 * arm-tdep.c (arm_neon_quad_read)
844 (arm_pseudo_read): Change return to enum register_status. Handle
845 non-REG_VALID raw registers and return the register's status.
846 * avr-tdep.c (avr_pseudo_register_read): Ditto.
847 * frv-tdep.c (frv_pseudo_register_read): Ditto.
848 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
849 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
850 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
852 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
853 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
854 (m32c_part_write, m32c_cat_read, m32c_cat_write)
855 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
856 (m32c_pseudo_register_read): Change return to enum
857 register_status. Adjust.
858 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
859 enum register_status. Return the register's status.
860 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
861 register_status. Return the register's status.
862 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
863 * mips-tdep.c (mips_pseudo_register_read): Ditto.
864 * mt-tdep.c (mt_pseudo_register_read): Ditto.
865 * rs6000-tdep.c (move_ev_register_func): New typedef.
866 (e500_move_ev_register): Use it. Change return to enum
867 register_status. Return the register's status.
868 (do_regcache_raw_read): New function.
869 (do_regcache_raw_write): New function.
870 (e500_pseudo_register_read): Change return to enum
871 register_status. Return the register's status. Use
872 do_regcache_raw_read.
873 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
874 (dfp_pseudo_register_read): Change return to enum register_status.
875 Return the register's status.
876 (vsx_pseudo_register_read): Ditto.
877 (efpr_pseudo_register_read): Ditto.
878 (rs6000_pseudo_register_read): Ditto.
879 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
880 register_status. Return the register's status.
881 * sh64-tdep.c (pseudo_register_read_portions): New function.
882 (sh64_pseudo_register_read): Change return to enum
883 register_status. Use pseudo_register_read_portions. Return the
885 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
886 register_status. Return the register's status.
887 * sh-tdep.c (pseudo_register_read_portions): New function.
888 (sh_pseudo_register_read): Change return to enum register_status.
889 Use pseudo_register_read_portions. Return the register's status.
890 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
891 enum register_status. Return the register's status.
892 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
893 * spu-tdep.c (spu_pseudo_register_read_spu)
894 (spu_pseudo_register_read): Ditto.
895 * xtensa-tdep.c (xtensa_register_read_masked)
896 (xtensa_pseudo_register_read): Ditto.
897 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
899 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
901 * python/py-value.c (valpy_getitem): Fix formatting of error function
904 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
906 ARI fixes: Add missing internationalization markups throughout
908 * darwin-nat-info.c: Ditto.
911 * mi/mi-main.c: Ditto.
913 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
915 ARI fixes: Add missing internationalization markups throughout
918 * cp-name-parser.y: Ditto.
924 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
926 ARI fixes: Messages should have no trailing new lines.
927 * darwin-nat.c (mach_check_error): Remove trailing new line from
928 warning function call message.
929 * record.c (bfdcore_read): Idem for error call.
931 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
933 * common/signals.c (target_signal_from_host): Add _ markup to error
934 function call message.
935 (target_signal_to_host): Add _ markup and remove trailing new line
936 from warning call message.
937 (target_signal_from_command): Add _ markup to error function call
940 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
944 * python/python.c (gdbpy_write): Accept a stream argument and
945 operate to the appropriate stream.
946 (gdbpy_flush): Likewise.
947 (_initialize_python): Add stream constants.
948 (finish_python_initialization): Add GdbOutputErrorFile class.
950 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
952 * MAINTAINERS: Add myself as a write-after-approval maintainer.
954 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
956 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
957 to store_signed_integer. Add debug message when relocating CALL
958 instructions. Fix formatting of debug message.
959 * i386-tdep.c (i386_relocate_instruction): Ditto.
961 2011-03-17 Joel Brobecker <brobecker@gnat.com>
963 * target.h (struct target_ops): Remove to_lookup_symbol field.
964 (target_lookup_symbol): Delete macro.
965 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
966 (update_current_target, setup_target_debug): Remove handling
967 of to_lookup_symbol target_ops field.
968 * ada-tasks.c (get_known_tasks_addr): Remove use of
969 target_lookup_symbol.
970 * coffread.c (coff_symtab_read): Likewise.
971 * dbxread.c (read_dbx_symtab): Ditto.
973 2011-03-17 Joel Brobecker <brobecker@gnat.com>
976 * configure.ac: Add getthrds declaration check.
977 * configure, config.in: Regenerate.
978 * aix-thread.c (getthrds): Declare only if not already declared
979 in procinfo.h. More declaration out of get_signaled_thread to
982 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
984 * python/py-symtab.c: Populate symtab_object_methods,
986 (stpy_is_valid): New function.
987 (salpy_is_valid): Ditto.
988 * python/py-symbol.c: Declare symbol_object_methods. Populate.
989 (sympy_is_valid): New function.
990 * python/py-objfile.c: Declare objfile_object_methods. Populate.
991 (objfpy_is_valid): New function.
992 * python/py-inferior.c: Populate inferior_object_methods.
993 (infpy_is_valid): New function.
994 * python/py-infthread.c: Populate thread_object_methods.
995 (thpy_is_valid): New function.
996 * python/py-block.c: Declare block_object_methods. Populate. Declare
997 block_iterator_object_methods. Populate.
998 (blpy_is_valid): New function.
999 (blpy_iter_is_valid): Ditto.
1001 2011-03-16 Keith Seitz <keiths@redhat.com>
1003 * linespec.c (find_methods): Canonicalize NAME before looking
1005 (name_end): New function.
1006 (keep_name_info): New function.
1007 (decode_line_1): Use keep_name_info.
1008 (decode_compound): Likewise.
1009 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1010 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1013 * linespec.c (locate_first_half): Keep overload information, too.
1014 (decode_compound): Use a string to represent break characters
1016 If P points to a break character, do not increment it.
1017 For C++ and Java, keep overload information and relevant keywords.
1018 If we cannot find a symbol, search the minimal symbols.
1021 * linespec.c (decode_compound): Rename SAVED_ARG to
1023 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1025 Pass a valid block to lookup_symbol.
1026 (lookup_prefix_sym): Likewise.
1027 (find_method): Construct search name based on SYM_CLASS instead
1029 * psymtab.c (lookup_partial_symbol): Add language parameter.
1030 (lookup_symbol_aux_psymtabs): Likewise.
1031 Don't assume that the psymtab we found was the right one. Search
1032 for the desired symbol in the symtab to be certain.
1033 (psymtab_search_name): New function.
1034 (lookup_partial_symbol): Use psymtab_search_name.
1035 Add language parameter.
1036 (read_symtabs_for_function): Add language parameter and pass to
1037 lookup_partial_symbol.
1038 (find_symbol_file_from_partial): Likewise.
1040 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1043 * dwarf2read.c (noop_record_line): New function.
1044 (dwarf_decode_lines): Ignore line tables for GCd functions.
1046 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1048 Fix ARI warnings about new lines at the end of messages, which
1049 are unneeded as there is a new line added at the end of the message
1051 * darwin-nat.c (darwin_stop_inferior): Ditto.
1052 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1053 * dfp.c (decimal_to_number): Ditto.
1054 * exec.c (print_section_info): Ditto.
1055 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1056 * osdata.c (get_osdata): Ditto.
1057 * record.c (bfdcore_write): Ditto.
1058 * remote-mips.c (mips_readchar): Ditto.
1059 * remote.c (read_ptid): Ditto.
1060 * ser-mingw.c (ser_windows_raw): Ditto.
1061 * tracepoint.c (add_local_symbols): Ditto.
1062 * windows-nat.c (fake_create_process): Ditto.
1064 2011-03-16 Tom Tromey <tromey@redhat.com>
1066 * tracepoint.c (stop_tracing): Don't declare.
1067 * event-top.c (after_char_processing_hook): Add `(void)'.
1069 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1071 * NEWS: Add Parameter sub-classing description.
1073 2011-03-16 Kai Tietz <ktietz@redhat.com>
1075 * MAINTAINERS: Update my e-mail address.
1077 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1079 * MAINTAINERS: Add myself for write after approval privileges.
1081 2011-03-15 Michael Snyder <msnyder@vmware.com>
1083 * frame.c (find_frame_sal): Assert sym is not null.
1085 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1087 * objc-lang.c (selectors_info): Check strchr for null result.
1089 * stabsread.c (define_symbol): Guard against bad stabstring input.
1091 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1093 Remove trailing spaces and tabulations from pascal language
1098 p-valprint.c: Ditto.
1100 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1102 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1103 than LOW. Comment it.
1104 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1105 HIGHPC not strictly higher than LOWPC.
1107 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1109 Fix formatting of function declarations returning a pointer in
1111 * varobj.c (varobj_add_child): Ditto.
1112 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1113 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1115 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1117 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1118 for the "generic" vector ABI used with GCC 4.3 and later.
1119 (ppc64_sysv_abi_return_value): Likewise.
1121 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1123 * infcall.c (call_function_by_hand): Function return value is
1124 always a non_lval, even when using struct_return.
1126 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1128 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1129 (map_display_numbers): New.
1130 (do_delete_display): New.
1131 (undisplay_command): Use map_display_numbers.
1132 (do_enable_disable_display): New.
1133 (enable_disable_display_command): New function.
1134 (enable_display): Delete.
1135 (enable_display_command): New.
1136 (disable_display_command): Reimplement.
1137 (_initialize_printcmd): Adjust "enable display" command to use
1138 `enable_display_command' as callback.
1140 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1142 * NEWS: Add Python breakpoint 'stop' operation.
1144 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1146 * NEWS: Delete duplicate entry. Fix typo.
1148 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1150 Fix ARI warning about function names in first column.
1151 Put prototype declaration on same line as return type.
1152 * objc-exp.y: Ditto.
1154 * python/py-stopevent.h: Ditto.
1155 For long function names, split parameters to
1156 allow function name on same line as return type.
1157 * solib-pa64.c: Ditto.
1160 For long function declaration, use single line.
1161 * hppa-tdep.h: Ditto.
1162 * inferior.h: Ditto.
1164 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1166 * python/python.h: Declare gdbpy_should_stop and
1167 gdbpy_breakpoint_has_py_cond.
1168 * python/python.c: Add python.h to includes. Remove python.h from
1169 HAVE_PYTHON definition
1170 (gdbpy_should_stop): New dummy function.
1171 (gdbpy_breakpoint_has_py_cond): New dummy function.
1172 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1173 sub-classing capabilities.
1174 (gdbpy_should_stop): New function.
1175 (gdbpy_breakpoint_has_py_cond): New function.
1176 (local_setattro): New function.
1177 * breakpoint.c (condition_command): Add check for Python 'stop'
1179 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1180 operation function as part of stop/continue tests.
1182 2011-03-14 Tom Tromey <tromey@redhat.com>
1185 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1186 (needs_frame_dwarf_call): Likewise.
1188 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1190 Fix ARI warning about functions without parameters that do not
1192 * breakpoint.c (all_tracepoints): Replace () by (void).
1193 * f-exp.y (match_string_literal): Ditto.
1195 * m2-exp.y (yylex): Ditto.
1196 * mep-tdep.c (current_me_module): Ditto.
1197 (current_options): Ditto.
1198 (current_cop_data_bus_width): Ditto.
1199 (current_cr_names): Ditto.
1200 (current_cr_is_float): Ditto.
1201 (current_ccr_names): Ditto.
1202 * objc-exp.y (yylex): Ditto.
1203 * p-exp.y (yylex): Ditto.
1204 * remote.c (send_interrupt_sequence): Ditto.
1205 * tracepoint.c (current_trace_status): Ditto.
1206 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1207 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1209 2011-03-11 Michael Snyder <msnyder@vmware.com>
1211 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1212 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1213 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1214 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1215 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1217 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1218 (delete_async_event_handler): Ditto.
1220 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1222 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1224 * top.c (set_verbose): Assert showcmd was found.
1226 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1228 * xtensa-tdep.c (warning_once): Correct style issues.
1230 2011-03-11 Yao Qi <yao@codesourcery.com>
1232 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1234 2011-03-11 Andreas Schwab <schwab@redhat.com>
1236 * common/aclocal.m4: Remove.
1238 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1240 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1241 (xtensa_write_register, xtensa_read_register): Likewise.
1242 (xtensa_hextochar): Removed.
1243 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1245 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1247 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1248 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1249 (xtensa_alloc_frame_cache): Add initialization for new fields.
1250 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1251 (warning_once): New function.
1252 (xtensa_insn_kind): New item c0opc_and.
1253 (call0_classify_opcode): Add the case for AND instruction.
1254 (call0_track_op): Change arguments. New local variable litbase.
1255 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1256 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1258 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1259 (call0_analyze_prologue): Update the comments. Change arguments.
1260 Add the variety of updates to handle extended prologues, which now can
1261 conduct dynamic stack adjustments.
1262 (call0_frame_cache): Likewise.
1263 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1264 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1266 2011-03-10 Michael Snyder <msnyder@vmware.com>
1268 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1269 (cmd_qtframe): Ditto.
1270 (cmd_qtbuffer): Ditto.
1271 (cmd_bigqtbuffer): Ditto.
1273 2011-03-10 Tom Tromey <tromey@redhat.com>
1275 * tracepoint.c (trace_actions_command): Update.
1276 * thread.c (thread_apply_command): Update.
1277 * reverse.c (delete_bookmark_command): Update.
1278 (bookmarks_info): Update.
1279 * printcmd.c (undisplay_command): Update.
1280 * memattr.c (mem_enable_command): Update.
1281 (mem_disable_command): Update.
1282 (mem_delete_command): Update.
1283 * inferior.c (detach_inferior_command): Update.
1284 (kill_inferior_command): Update.
1285 (remove_inferior_command): Update.
1286 * cli/cli-utils.h (struct get_number_or_range_state): New.
1287 (init_number_or_range): Declare.
1288 (get_number_or_range): Update.
1289 * cli/cli-utils.c (init_number_or_range): New function.
1290 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1292 (number_is_in_list): Update.
1293 * breakpoint.h (get_tracepoint_by_number): Update.
1294 * breakpoint.c (map_breakpoint_numbers): Update for change to
1295 get_number_or_range.
1296 (find_location_by_number): Use get_number, not
1297 get_number_or_range.
1298 (trace_pass_set_count): New function.
1299 (trace_pass_command): Update for change to get_number_or_range.
1301 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1304 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1306 * python/py-param.c (add_setshow_generic): Add set/show callback
1307 parameters. Register Python object context.
1308 (get_show_value): New function.
1309 (get_set_value): New function.
1310 (call_doc_function): New function.
1311 (get_doc_string): Move behind get_show_value/get_set_value.
1313 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1315 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1317 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1319 * xtensa-tdep.c (xtensa_read_register): Add comment.
1320 (xtensa_write_register): Likewise.
1321 (xtensa_hextochar): Add comment and update to match coding conventions.
1322 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1323 (execute_l32e, execute_s32e, execute_code): Update comments.
1324 (xtensa_exception_handler_t): Update to match coding conventions.
1325 (xtensa_insn_kind): Likewise.
1327 2011-03-09 Michael Snyder <msnyder@vmware.com>
1329 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1331 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1333 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1335 2011-03-09 Tom Tromey <tromey@redhat.com>
1337 * thread.c (restore_selected_frame): Handle frame_level == -1.
1338 (make_cleanup_restore_current_thread): Use
1339 get_selected_frame_if_set.
1340 * frame.h (get_selected_frame_if_set): Declare.
1341 * frame.c (get_selected_frame_if_set): New function.
1343 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1345 * cli/cli-cmds.c (shell_escape): Use lbasename.
1346 * coffread.c (coff_start_symtab): Constify parameter.
1347 (complete_symtab): Constify `name' parameter.
1348 (coff_symtab_read): Constify `filestring' local.
1349 (coff_getfilename): Constify return and `result' local.
1351 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1352 * linux-fork.c (info_checkpoints_command): Use lbasename.
1353 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1354 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1355 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1356 * procfs.c (procfs_make_note_section): Use lbasename.
1357 * tui/tui-io.c (printable_part): Constity return and parameter.
1359 (print_filename): Constify parameters, and local `s'.
1360 (tui_rl_display_match_list): Constify local `temp'.
1362 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1366 Fix DWARF-3+ DW_AT_accessibility default assumption.
1367 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1368 cu->header.version >= 3.
1370 2011-03-09 Yao Qi <yao@codesourcery.com>
1372 * common/Makefile.in: Remove.
1373 * common/configure: Remove.
1374 * common/configure.ac: Remove.
1376 2011-03-09 Yao Qi <yao@codesourcery.com>
1379 2011-02-11 Yao Qi <yao@codesourcery.com>
1381 * common/Makefile.in: Add copyright header.
1383 2011-02-11 Yao Qi <yao@codesourcery.com>
1385 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1387 * configure.ac: Add common to sub dir.
1388 * configure: Regenerate.
1390 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1392 * xtensa-tdep.c (call0_ret): New function.
1393 (xtensa_skip_prologue): Speed up analysis.
1395 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1397 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1398 while executing MI command -data-list-changed-registers.
1400 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1402 * xtensa-tdep.c (xtensa_read_register): New function.
1403 (xtensa_write_register): New function.
1404 (xtensa_find_register_by_name): New function.
1405 (xtensa_windowed_frame_cache): Update comments in type description.
1406 (xtensa_frame_cache): Likewise.
1407 (xtensa_window_interrupt_insn): New function.
1408 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1409 (xtensa_insn_kind): Add new instructions.
1410 (rwx_special_register): New function.
1411 (call0_classify_opcode): Add new instructions to the analysis.
1412 (a0_saved, a7_saved, a11_saved): New variables.
1413 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1414 (execute_l32e): New function.
1415 (execute_s32e): New function.
1416 (xtensa_exception_handler_t): New type.
1417 (execute_code): New function.
1418 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1419 analysis for Xtensa Window Exception handlers.
1421 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1423 * xtensa-tdep.c (TX_PS): New.
1424 (windowing_enabled): Update to count for Call0 ABI.
1425 (xtensa_hextochar): New.
1426 (xtensa_init_reggroups): Make algorithm generic.
1427 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1429 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1431 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1433 2011-03-08 Michael Snyder <msnyder@vmware.com>
1435 * i386-tdep.c (i386_follow_jump): Check return value of
1437 (i386_analyze_struct_return): Ditto.
1438 (i386_skip_probe): Ditto.
1439 (i386_match_insn): Ditto.
1440 (i386_skip_noop): Ditto.
1441 (i386_analyze_frame_setup): Ditto.
1442 (i386_analyze_register_saves): Ditto.
1443 (i386_skip_prologue): Ditto.
1444 (i386_skip_main_prologue): Ditto.
1446 * target.c (read_whatever_is_readable): Fix memory leak.
1448 * i386-tdep.c (i386_process_record): Document fall through.
1450 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1452 Fix DWARF-3+ DW_AT_accessibility default assumption.
1453 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1454 cu->header.version >= 3.
1456 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1458 * remote.c (remote_check_symbols): Skip if the target has no
1461 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1463 * target.c (read_whatever_is_readable): Reformat comment,
1464 with a minor typo fix. Minor reformatting of the code.
1466 2011-03-08 Yao Qi <yao@codesourcery.com>
1468 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1469 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1470 Use cached result instead of calling displaced_in_arm_mode again.
1471 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1472 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1473 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1474 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1475 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1476 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1477 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1478 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1479 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1480 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1481 (arm_catch_kernel_helper_return): Likewise.
1482 * gdb/arm-tdep.h : Update function declarations.
1484 2011-03-07 Michael Snyder <msnyder@vmware.com>
1486 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1488 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1490 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1492 * elfread.c (elf_symtab_read): Stop memory leak.
1494 * main.c (captured_main): Fix memory leak.
1496 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1498 * ada-lang.c (compare_names): Call is_name_suffix with string1
1501 2011-03-07 Tom Tromey <tromey@redhat.com>
1503 * xcoffread.c (xcoff_sym_fns): Update.
1504 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1505 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1506 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1507 (symbol_file_add_with_addrs_or_offsets): Likewise.
1508 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1509 * somread.c (som_sym_fns): Update.
1510 * psymtab.h (require_partial_symbols): Declare.
1511 * psymtab.c (require_partial_symbols): New function.
1512 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1513 (ALL_OBJFILE_PSYMTABS): Undef.
1514 (ALL_PSYMTABS): Move from psympriv.h.
1515 (lookup_partial_symtab, find_pc_sect_psymtab)
1516 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1517 (find_last_source_symtab_from_partial)
1518 (forget_cached_source_info_partial)
1519 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1520 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1521 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1522 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1523 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1524 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1525 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1526 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1527 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1529 * mipsread.c (ecoff_sym_fns): Update.
1530 * machoread.c (macho_sym_fns): Update.
1531 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1532 (read_psyms): New function.
1533 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1534 (elf_sym_fns_lazy_psyms): New global.
1535 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1536 dwarf2_build_psymtabs.
1537 * dbxread.c (aout_sym_fns): Update.
1538 * coffread.c (coff_sym_fns): Update.
1540 2011-03-07 Tom Tromey <tromey@redhat.com>
1542 * infrun.c (print_exited_reason): Include inferior id and pid in
1545 2011-03-07 Tom Tromey <tromey@redhat.com>
1547 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1549 (target_has_execution_1): Update.
1550 (target_has_execution_current): Declare.
1551 (target_has_execution): Call target_has_execution_current.
1552 (default_child_has_execution): Update.
1553 * target.c (default_child_has_execution): Add 'the_ptid'
1555 (target_has_execution_1): Likewise.
1556 (target_has_execution_current): New function.
1557 (add_target): Update.
1558 (init_dummy_target): Update.
1559 * remote-m32r-sdi.c (m32r_has_execution): New function.
1560 (init_m32r_ops): Use it.
1561 * record.c (record_core_has_execution): Now static. Add
1562 'the_ptid' parameter.
1563 * inferior.c (have_live_inferiors): Don't save current thread.
1564 Use target_has_execution_1.
1566 2011-03-07 Yao Qi <yao@codesourcery.com>
1568 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1570 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1572 * elfread.c (elf_symtab_read): Minor reformatting.
1574 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1576 * objc-lang.c (selectors_info): Minor reformatting.
1578 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1580 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1582 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1583 Michael Snyder <msnyder@vmware.com>
1585 * ada-valprint.c (ada_val_print_array): Move the declaration of
1586 "byte_order" and "elttype" inside the block where these variables
1587 are actually used. Remove some special handling for the case
1588 where "elttype" and "eltlen" are null. Replace by a comment
1589 and a couple of assertion checks.
1591 2011-03-05 Michael Snyder <msnyder@vmware.com>
1593 * source.c (add_path): Replace semicolon at end of block.
1594 * dwarf2expr.c (execute_stack_op): Ditto.
1596 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1598 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1599 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1600 (bfin-*-*): Likewise.
1602 2011-03-05 Michael Snyder <msnyder@vmware.com>
1604 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1605 * mdebugread.c (parse_symbol): Ditto.
1606 * parse.c (parse_exp_in_context): Ditto.
1607 * source.c (add_path): Ditto.
1608 * utils.c (gnu_debuglink_crc32): Ditto.
1609 * varobj.c (variable_language): Ditto.
1611 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1613 2011-03-04 Michael Snyder <msnyder@vmware.com>
1615 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1617 * symfile.c (simple_overlay_update): Check for null return value
1618 from lookup_minimal_symbol.
1620 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1622 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1624 * eval.c (parse_and_eval_address_1): Remove function.
1625 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1626 instead of parse_and_eval_address_1.
1627 * value.h (parse_and_eval_address_1): Remove prototype.
1629 2011-03-04 Michael Snyder <msnyder@vmware.com>
1631 * remote.c (putpkt_binary): Document that case stmt falls through.
1633 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1635 * breakpointc (print_it_typical): Move NULL check from here...
1636 (print_bp_stop_message): ... to here.
1638 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1640 * breakpoint.c (enable_command): Use break instead of continue,
1641 and fill in a missing break.
1642 (disable_command): Ditto.
1644 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1646 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1647 (terminal_save_ours): Remove misleading comment.
1648 (inflow_inferior_data_cleanup): Free ttystate.
1649 (inflow_inferior_exit): Likewise.
1650 (copy_terminal_info): Copy ttystate.
1652 * serial.c (serial_copy_tty_state): New function.
1653 * serial.h (serial_copy_tty_state): Add prototype.
1654 (struct serial_ops): Add copy_tty_state callback.
1655 * ser-base.c (ser_base_copy_tty_state): New function.
1656 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1657 * ser-go32.c (dos_copy_tty_state): New function.
1658 (dos_ops): Install copy_tty_state callback.
1659 * ser-mingw.c (_initialize_ser_windows): Likewise.
1660 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1661 * ser-unix.c (hardwire_copy_tty_state): New function.
1662 (_initialize_ser_hardwire): Install it.
1664 2011-03-04 Michael Snyder <msnyder@vmware.com>
1666 * breakpoint.c (create_breakpoint): Add missing break statement.
1668 Reverting this patch:
1669 * infcall.c (call_function_by_hand): Add break statements for lint.
1671 Reverting this patch:
1672 * cli/cli-script.c (script_from_file): Add break for lint.
1674 2011-03-04 Michael Snyder <msnyder@vmware.com>
1676 * solib.c (reload_shared_libraries_1): Close memory leak.
1678 2011-03-03 Tom Tromey <tromey@redhat.com>
1681 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1684 2011-03-03 Michael Snyder <msnyder@vmware.com>
1686 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1687 fields of struct 'st' to zero.
1689 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1690 sal.pspace before calling set_current_source_symtab_and_line.
1692 2011-03-03 Yao Qi <yao@codesourcery.com>
1694 * Makefile.in (configure-common): Remove. Let Makefile
1695 in dir common to rebuild itself.
1696 (common/Makefile): Likewise.
1698 2011-03-03 Joel Brobecker <brobecker@adacore.com>
1700 * utils.c (parse_escape): Add i18n markup in error message.
1702 2011-03-03 Yao Qi <yao@codesourcery.com>
1704 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1706 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1707 (displaced_write_reg, displaced_read_reg): Likewise.
1708 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1709 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1710 (cleanup_branch): Replace magic number 14 and 15 with
1711 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1713 2011-03-02 Michael Snyder <msnyder@vmware.com>
1715 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1717 * cli/cli-script.c (script_from_file): Add break for lint.
1719 * mdebugread.c (parse_partial_symbols): Fix indent.
1721 * target-descriptions.c (tdesc_gdb_type): No need to call
1722 xstrdup, callee saves a copy.
1724 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1726 * infcall.c (call_function_by_hand): Add break statements for lint.
1728 * utils.c (parse_escape): Escape the escape char.
1730 * python/py-inferior.c (build_inferior_list): Error out if
1731 PyList_Append fails.
1732 (gdbpy_inferiors): Error out if build_inferior_list fails.
1734 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1737 * record.c (record_restore): Move printf to before error return.
1739 2011-03-02 Yao Qi <yao@codesourcery.com>
1741 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1742 is_thumb and insn_size.
1743 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1744 on both ARM and Thumb mode.
1745 (arm_process_displaced_insn): Set is_thumb and insn_size.
1746 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1747 (arm_displaced_step_fixup): Likewise.
1749 2011-03-01 Michael Snyder <msnyder@vmware.com>
1751 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1753 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1755 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1757 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1759 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1762 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1763 which shadows function parameter.
1765 * tracepoint.c (create_tsv_from_upload): Superfluous call
1766 to xstrdup. Callee already calls xstrdup.
1768 * linespec.c (decode_line_1): Remove unnecessary null check.
1770 * tracepoint.c (scope_info): Fix mem leak, remove underused
1773 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1774 superfluous null check.
1776 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
1777 (value_of_builtin_frame_fp_reg): Ditto.
1779 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1781 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1784 * linespec.c (decode_line_1): Check for null before dereference.
1786 * reverse.c (record_restore): Move null-check to before pointer
1789 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1791 * objc-lang.c (selectors_info): Add explanitory comment.
1792 (classes_info): Ditto.
1794 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1796 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1797 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1798 versions of the trampoline. Handle Thumb vs. ARM addresses.
1799 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1800 (arm_linux_init_abi): Install it.
1801 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1802 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1804 2011-02-28 Michael Snyder <msnyder@vmware.com>
1806 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1807 a little bigger, to avoid possibility of an overflow.
1809 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1810 buffers a little bigger, to avoid possibility of an overflow.
1812 * coffread.c (coff_getfilename): Add check to avoid overflow.
1814 * objc-lang.c (selectors_info): Add a small safety margin to
1816 (classes_info): Error out on too long REGEXP.
1818 * infrun.c (handle_inferior_event): Remove unused function call.
1820 * fork-child.c (fork_inferior): Remove ifdef'd code and
1823 * linux-thread-db.c (attach_thread): Discard unused value.
1825 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1827 * remote.c (remote_get_noisy_reply): Discard unused value.
1828 (remote_vcont_resume): Ditto.
1829 (remote_stop_ns): Ditto.
1831 * linespec.c (decode_objc): Delete unused variable.
1833 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1835 * dwarf2read.c (add_partial_symbol): Discard unused values.
1836 (read_base_type): Delete unused variable.
1838 * dbxread.c (read_dbx_symtab): Discard unused value.
1840 * eval.c (evaluate_subexp_standard): Delete unused variable,
1841 and discard unused values.
1843 * infcmd.c (_initialize_infcmd): Discard unused values.
1845 * stabsread.c (rs6000_builtin_type): Missing break statement.
1847 * dbxread.c (process_one_symbol): Discard unused value.
1849 * coffread.c (coff_end_symtab): Delete unused variable.
1851 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1852 (dwarf2_add_typedef): Delete unused variable.
1853 (read_namespace): Ditto.
1854 (dwarf_decode_macros): Ditto.
1856 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1858 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1860 * p-valprint.c (pascal_val_print): Discard unused value.
1862 * utils.c (nquery): Call va_end before return;
1866 * proc-service.c (ps_plog): Call va_end before return.
1868 2011-02-28 Tom Tromey <tromey@redhat.com>
1870 * python/python.c (gdbpy_value_cst): New global.
1871 (_initialize_python): Initialize it.
1872 * python/python-internal.h (gdbpy_value_cst): Declare.
1873 * python/py-value.c (convert_value_from_python): Use
1876 2011-02-28 Michael Snyder <msnyder@vmware.com>
1878 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1880 * breakpoint.c (catch_syscall_completer): Free malloced list.
1882 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1884 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1885 (lval_func_check_synthetic_pointer): Ditto.
1886 (lval_func_free_closure): Fix use-after-free.
1888 2011-02-28 Tom Tromey <tromey@redhat.com>
1890 * psymtab.c (expand_partial_symbol_tables): Use
1891 ALL_OBJFILE_PSYMTABS.
1893 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 * objc-lang.c (selectors_info): Error on too long REGEXP.
1897 2011-02-28 Michael Snyder <msnyder@vmware.com>
1899 * python/py-param.c (set_parameter_value): Add missing
1902 * linux-record.c (record_linux_system_call): Add missing
1905 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1907 * breakpoint.c (print_one_breakpoint_location): Remove unused
1908 argument PRINT_ADDRESS_BITS. Update callers.
1909 (print_one_breakpoint): Likewise.
1911 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1913 * breakpoint.c (wrap_indent_at_field): New function.
1914 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1915 Allocate ui_stream locally instead of using STB argument.
1916 (print_one_breakpoint_location): Update call.
1917 * ui-out.c (ui_out_query_field): New function.
1918 * ui-out.h (ui_out_query_field): Add prototype.
1920 2011-02-28 Joel Brobecker <brobecker@adacore.com>
1922 From Michael Snyder <msnyder@vmware.com>
1923 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1925 2011-02-27 Michael Snyder <msnyder@vmware.com>
1927 * objc-lang.c (selectors_info): Prevent string overrun.
1929 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1932 * symtab.c (rbreak_command): Move variable 'file_name' to
1935 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1936 param with a local variable of the same name.
1938 2011-02-27 Michael Snyder <msnyder@vmware.com>
1940 * value.c (value_from_history_ref): New function.
1941 * value.h (value_from_history_ref): Export.
1942 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1943 to parse value history references.
1944 * cli/cli-utils.h (get_number_trailer): Update comment.
1946 2011-02-27 Michael Snyder <msnyder@vmware.com>
1948 * inferior.c (detach_inferior_command): Use get_number_or_range.
1949 (kill_inferior_command): Ditto.
1950 (remove_inferior_command): Ditto.
1951 (initialize_inferiors): Make command names plural.
1952 Update help strings.
1954 2011-02-27 Michael Snyder <msnyder@vmware.com>
1956 * darwin-nat-info.c: Fix comment typo.
1957 * dwarf2expr.h: Ditto.
1958 * fbsd-nat.c: Ditto.
1959 * fbsd-nat.h: Ditto.
1960 * frame-unwind.h: Ditto.
1962 * hppa-hpux-tdep.c: Ditto.
1963 * i386-linux-nat.c: Ditto.
1964 * linux-nat.c: Ditto.
1965 * nbsd-nat.c: Ditto.
1966 * nbsd-nat.h: Ditto.
1967 * ppc-linux-tdep.c: Ditto.
1970 * tui/tui-winsource.c: Ditto.
1972 2011-02-26 Michael Snyder <msnyder@vmware.com>
1974 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1976 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1978 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1979 with a local variable of the same name.
1981 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
1982 param with a local variable of the same name.
1983 (i387_supply_xsave): Ditto.
1985 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1986 that it does not shadow a function parameter.
1988 * i386-nat.c (i386_length_and_rw_bits): Document that case
1989 statement is meant to fall through.
1991 * expprint.c (dump_subexp_body_standard): Document that case
1992 statement is meant to fall through.
1994 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1995 dead if statement. Condition can't be false.
1997 2011-02-25 Michael Snyder <msnyder@vmware.com>
1999 * arm-tdep.c: Fix typos in comments.
2000 * bsd-uthread.c: Ditto.
2001 * completer.c: Ditto.
2003 * cp-namespace.c: Ditto.
2004 * cp-support.c: Ditto.
2005 * cris-tdep.c: Ditto.
2007 * dwarf2read.c: Ditto.
2009 * gdbtypes.h: Ditto.
2010 * inferior.h: Ditto.
2011 * mdebugread.c: Ditto.
2012 * mips-tdep.c: Ditto.
2013 * ppc-linux-nat.c: Ditto.
2014 * ppc-linux-tdep.c: Ditto.
2015 * printcmd.c: Ditto.
2016 * sol-thread.c: Ditto.
2017 * solib-frv.c: Ditto.
2019 * sparc64-tdep.c: Ditto.
2020 * spu-tdep.c: Ditto.
2021 * stabsread.c: Ditto.
2026 * python/py-block.c: Ditto.
2027 * python/py-symbol.c: Ditto.
2028 * python/py-symtab.c: Ditto.
2029 * python/py-value.c: Ditto.
2030 * tui/tui-win.c: Ditto.
2032 2011-02-25 Michael Snyder <msnyder@vmware.com>
2034 * inferior.c (print_inferior): Accept a string instead of an int
2035 for requested_inferiors, and use get_number_or_range to parse it.
2036 (info_inferiors_command): Pass args string to print_inferior.
2037 (initialize_inferiors): Change help string for info inferiors.
2038 * inferior.h (print_inferior): Export prototype change.
2040 2011-02-25 Tom Tromey <tromey@redhat.com>
2042 * common/ax.def (invalid2): Set to 0x31.
2044 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2048 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2050 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2052 2011-02-24 Michael Snyder <msnyder@vmware.com>
2054 * Makefile.in (clean): Make clean should remove generated files
2055 observer.h and observer.inc.
2057 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2059 Revert the following patch (not approved yet):
2060 2011-02-21 Hui Zhu <teawater@gmail.com>
2061 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2062 * ax-gdb.c (gen_printf_expr_callback): New function.
2063 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2064 * ax-general.c (ax_memcpy): New function.
2065 (ax_print): Handle "printf".
2067 * ax.h (ax_memcpy): Forward declare.
2068 * common/ax.def (invalid2): Removed.
2069 (printf): New entry.
2070 * printcmd.c (printcmd.h): New include.
2071 (string_printf): New function.
2072 (ui_printf): Removed.
2073 (printf_command): Remove static. Call string_printf.
2074 (eval_command): Call string_printf.
2075 * printcmd.h: New file.
2076 * tracepoint.c (validate_actionline,
2077 encode_actions_1): handle printf_command.
2079 2011-02-23 Tom Tromey <tromey@redhat.com>
2081 * ax-general.c (ax_pick): Add missing newline.
2083 2011-02-23 Michael Snyder <msnyder@vmware.com>
2085 * breakpoint.c (breakpoint_1): Change first argument from an int
2086 to a char pointer, so that the function now accepts a list of
2087 breakpoints rather than just one. Use new function
2088 'number_is_in_list' to implement.
2089 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2090 (watchpoints_info): Ditto.
2091 (tracepoints_info): Ditto.
2092 (maintenance_info_breakpoints): Ditto.
2093 (_initialize_breakpoint): Update help strings to reflect the fact
2094 that these functions can now take more than one argument.
2095 * cli/cli-utils.c (number_is_in_list): New function.
2096 * cli/cli-utils.h (number_is_in_list): Export.
2098 2011-02-23 Michael Snyder <msnyder@vmware.com>
2100 * memattr.c (mem_enable_command): Use get_number_or_range.
2101 (mem_disable_command): Ditto.
2102 (mem_delete_command): Ditto.
2103 (_initialize_mem): Tweak usage message to reflect multiple
2106 2011-02-22 Doug Evans <dje@google.com>
2108 Add gdb.lookup_global_symbol python function.
2110 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2111 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2112 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2114 2011-02-22 Tom Tromey <tromey@redhat.com>
2116 * language.c (language_class_name_from_physname): Rename
2117 'curr_language' argument to 'lang'; use in body.
2119 2011-02-22 Michael Snyder <msnyder@vmware.com>
2121 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2123 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2125 * frame-unwind.h: Fix comment to mention the this frame, not the
2128 2011-02-22 Tom Tromey <tromey@redhat.com>
2130 * symfile.c (auto_solib_limit): Remove.
2131 * symfile.h (auto_solib_limit): Remove.
2133 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2135 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2137 2011-02-21 Michael Snyder <msnyder@vmware.com>
2139 * gdbthread.h (print_thread_info): Change prototype.
2140 * thread.c (print_thread_info): Accept char* instead of int for
2141 requested_threads argument. Use new function number_is_in_list
2142 to determine which threads to list.
2143 (info_threads_command): Pass char* to print_thread_info.
2144 * cli/cli-utils.c (number_is_in_list): New function.
2145 * cli/cli-utils.h (number_is_in_list): Export.
2146 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2148 (print_one_inferior): Ditto.
2149 (mi_cmd_list_thread_groups): Ditto.
2151 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 * common/Makefile.in (CFLAGS): New.
2154 (COMPILE): Add $(CFLAGS).
2156 2011-02-21 Tom Tromey <tromey@redhat.com>
2158 * breakpoint.c (catch_syscall_command_1): Fix typo.
2160 2011-02-21 Tom Tromey <tromey@redhat.com>
2162 * reverse.c: Include cli-utils.h.
2163 * printcmd.c: Include cli-utils.h.
2164 (string_printf): Use skip_spaces.
2165 * cli/cli-utils.h: New file.
2166 * cli/cli-utils.c: New file.
2167 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2168 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2169 * breakpoint.h (get_number, get_number_or_range): Move to
2171 * breakpoint.c: Include cli-utils.h.
2172 (get_number_trailer, get_number, get_number_or_range)
2173 (ep_skip_leading_whitespace): Move to cli-utils.c.
2174 (create_breakpoint_sal, find_condition_and_thread)
2175 (decode_static_tracepoint_spec, watch_command_1)
2176 (watch_maybe_just_location, ep_parse_optional_if_clause)
2177 (catch_fork_command_1, catch_exec_command_1)
2178 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2179 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2180 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2181 (HFILES_NO_SRCDIR): Add cli-utils.h.
2182 (cli-utils.o): New target.
2184 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2186 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2187 before calling discard_all_inferiors.
2189 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2191 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2192 (struct builtin_opencl_type): Remove.
2193 (builtin_opencl_type): Change return type to "struct type **".
2194 (lookup_opencl_vector_type): Update caller.
2195 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2196 (build_opencl_types): Install plain array of "struct type *"
2197 instead of "struct builtin_opencl_type".
2199 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2200 Ulrich Weigand <uweigand@de.ibm.com>
2202 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2203 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2204 (struct arm_linux_hwbp_cap): New type.
2205 (arm_linux_get_hwbp_cap): New function.
2206 (arm_linux_get_hw_breakpoint_count): Likewise.
2207 (arm_linux_get_hw_watchpoint_count): Likewise.
2208 (arm_linux_can_use_hw_breakpoint): Likewise.
2209 (arm_hwbp_type): New type.
2210 (arm_hwbp_control_t): Likewise.
2211 (struct arm_linux_hw_breakpoint): Likewise.
2212 (struct arm_linux_thread_points): Likewise.
2213 (arm_threads): New global variable.
2214 (arm_linux_find_breakpoints_by_tid): New function.
2215 (arm_hwbp_control_initialize): Likewise.
2216 (arm_hwbp_control_is_enabled): Likewise.
2217 (arm_hwbp_control_disable): Likewise.
2218 (arm_linux_hw_breakpoint_initialize): Likewise.
2219 (arm_linux_get_hwbp_type): Likewise.
2220 (arm_linux_hw_watchpoint_initialize): Likewise.
2221 (arm_linux_hw_breakpoint_equal): Likewise.
2222 (arm_linux_insert_hw_breakpoint1): Likewise.
2223 (arm_linux_remove_hw_breakpoint1): Likewise.
2224 (arm_linux_insert_hw_breakpoint): Likewise.
2225 (arm_linux_remove_hw_breakpoint): Likewise.
2226 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2227 (arm_linux_insert_watchpoint): Likewise.
2228 (arm_linux_remove_watchpoint): Likewise.
2229 (arm_linux_stopped_data_address): Likewise.
2230 (arm_linux_stopped_by_watchpoint): Likewise.
2231 (arm_linux_watchpoint_addr_within_range): Likewise.
2232 (arm_linux_new_thread): Likewise.
2233 (arm_linux_thread_exit): Likewise.
2234 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2235 related target callbacks. Register arm_linux_new_thread and
2236 arm_linux_thread_exit.
2237 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2238 * arm-tdep.c (arm_pc_is_thumb): Make global.
2239 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2241 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2243 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2244 per-frame locations while within a function epilogue.
2246 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2248 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2249 to GNU coding standards.
2251 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2253 Allow use of mingw native on Windows 95 OS.
2254 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2255 (ser_windows_close): Only call CancelIo if function exists.
2256 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2257 to check for existence of CancelIo function in kernel32 DLL.
2259 2011-02-21 Hui Zhu <teawater@gmail.com>
2261 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2262 * ax-gdb.c (gen_printf_expr_callback): New function.
2263 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2264 * ax-general.c (ax_memcpy): New function.
2265 (ax_print): Handle "printf".
2267 * ax.h (ax_memcpy): Forward declare.
2268 * common/ax.def (invalid2): Removed.
2269 (printf): New entry.
2270 * printcmd.c (printcmd.h): New include.
2271 (string_printf): New function.
2272 (ui_printf): Removed.
2273 (printf_command): Remove static. Call string_printf.
2274 (eval_command): Call string_printf.
2275 * printcmd.h: New file.
2276 * tracepoint.c (validate_actionline,
2277 encode_actions_1): handle printf_command.
2279 2011-02-19 Michael Snyder <msnyder@vmware.com>
2281 * reverse.c (delete_one_bookmark): Argument is now bookmark
2282 id rather than pointer to bookmark struct.
2283 (delete_bookmark_command): Use get_number_or_range.
2284 (goto_bookmark_command): Parse with get_number instead of strtoul.
2285 (bookmark_1): New function. Print info for one bookmark.
2286 (bookmarks_info): Use get_number_or_range and bookmark_1.
2288 2011-02-18 Michael Snyder <msnyder@vmware.com>
2290 * thread.c (info_threads_command): Re-implement using
2291 get_number_or_range.
2292 (thread_apply_command): Ditto.
2294 2011-02-18 Tom Tromey <tromey@redhat.com>
2296 * common/ax.def: New file.
2297 * ax.h (enum agent_op): Use ax.def.
2298 * ax-general.c (aop_map): Use ax.def.
2300 2011-02-18 Tom Tromey <tromey@redhat.com>
2302 * ax-general.c (aop_map): Add pick and rot.
2303 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2304 <DW_OP_rot>: Implement.
2305 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2307 * ax-general.c (ax_pick): New function.
2309 2011-02-18 Tom Tromey <tromey@redhat.com>
2311 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2313 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2314 Tom Tromey <tromey@redhat.com>
2316 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2317 make_symbol_overload_list_block with NULL BLOCK.
2318 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2320 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2322 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2323 * breakpoint.h (get_number_or_range): Declare.
2324 * printcmd.c (ALL_DISPLAYS): Declare.
2325 (delete_display): Reimplement taking a display pointer.
2326 (undisplay_command): Accept a range of displays to delete, using
2327 get_number_or_range.
2329 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2331 * c-valprint.c (c_val_print): Add embedded_offset to address
2332 for arrays of unspecified length.
2333 * p-valprint.c (pascal_val_print): Likewise.
2335 2011-02-18 Yao Qi <yao@codesourcery.com>
2337 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2338 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2339 (thumb_process_displaced_insn): New.
2340 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2341 call to arm_process_displaced_insn.
2342 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2344 2011-02-17 Tom Tromey <tromey@redhat.com>
2346 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2347 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2348 compile_dwarf_to_ax. No longer static. Call
2349 dwarf2_compile_cfa_to_ax.
2350 (locexpr_tracepoint_var_ref): Update.
2351 (loclist_tracepoint_var_ref): Update.
2352 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2353 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2354 argument; add 'gdbarch' and 'pc'.
2355 (dwarf2_compile_cfa_to_ax): New function.
2356 (dwarf2_frame_cache): Update.
2358 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2360 * ada-lang.c (ada_type_of_array): Fix the size of the array
2361 in the case of an unconstrained packed array.
2363 2011-02-17 Yao Qi <yao@codesourcery.com>
2365 * common/Makefile.in: Add more targets for make.
2367 2011-02-16 Tom Tromey <tromey@redhat.com>
2369 * dwarf2loc.c (unimplemented): Fix typo.
2371 2011-02-16 Tom Tromey <tromey@redhat.com>
2373 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2374 (compile_dwarf_to_ax) <default>: Use unimplemented.
2375 <DW_OP_deref>: Update.
2376 (disassemble_dwarf_expression): Update.
2377 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2378 (decode_locdesc): Update.
2379 * dwarf2expr.h (dwarf_stack_op_name): Update.
2381 2011-02-16 Tom Tromey <tromey@redhat.com>
2383 * ax.h (struct aop_map) <name>: Now const.
2385 2011-02-16 Tom Tromey <tromey@redhat.com>
2387 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2390 2011-02-16 Yao Qi <yao@codesourcery.com>
2392 * infrun.c (get_displaced_step_closure_by_addr): New.
2393 * inferior.h: Declare it.
2394 * arm-tdep.c: (arm_pc_is_thumb): Call
2395 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2398 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2399 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2404 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2405 Jan Kratochvil <jan.kratochvil@redhat.com>
2407 * value.c (value_contents_copy_raw): Extend describing comment.
2408 Assert that the destination contents we're overwriting are wholly
2410 (value_contents_copy): Extend describing comment.
2412 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2413 Jan Kratochvil <jan.kratochvil@redhat.com>
2415 * value.c (value_available_contents_eq): Remove redundant local
2416 variables. Fix available contents comparision.
2417 * value.h (value_available_contents_eq): Extend describing
2420 2011-02-16 Yao Qi <yao@codesourcery.com>
2422 * thread.c (info_threads_command): Add missing i18n markup and remove
2425 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2427 * breakpoint.c (longjmp_names): New variable.
2428 (struct breakpoint_objfile_data): New type.
2429 (breakpoint_objfile_key): New variable.
2430 (msym_not_found): New variable.
2431 (msym_not_found_p): New predicate.
2432 (get_breakpoint_objfile_data): New function.
2433 (create_overlay_event_breakpoint): Check per-objfile cache for
2435 (create_longjmp_master_breakpoint): Likewise.
2436 (create_std_terminate_master_breakpoint): Likewise.
2437 (create_exception_master_breakpoint): Likewise.
2438 (_initialize_breakpoint): Register per-objfile data key.
2440 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2442 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2444 (create_longjmp_master_breakpoint): Loop over longjmp names.
2445 (create_std_terminate_master_breakpoint): Const-propagate parameter
2447 (update_breakpoints_after_exec): Adjust.
2448 (breakpoint_re_set): Adjust.
2450 2011-02-15 Michael Snyder <msnyder@vmware.com>
2452 * thread.c (info_threads_command): Process arg as thread id,
2453 or list of thread ids.
2454 (thread_find_command): New command.
2455 (_initialize_thread): Document argument for info threads.
2456 Document 'thread find' command.
2457 * NEWS: Document new command "thread find".
2459 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2462 * aclocal.m4: Regenerated with aclocal-1.11.1.
2463 * common/configure: Regenerate with autoconf-2.64.
2465 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2467 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2468 bool data type to a size of one byte.
2470 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2471 Jan Kratochvil <jan.kratochvil@redhat.com>
2473 * target.c (memory_xfer_live_readonly_partial): Document where to
2474 look for interface description.
2476 2011-02-15 Yao Qi <yao@codesourcery.com>
2479 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2480 order to store PC value on stack instead of text section.
2482 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2484 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2485 the EFP register set size.
2486 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2487 data from the VMX register.
2488 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2489 and write data from/to the VMX register.
2491 2011-02-14 Michael Snyder <msnyder@vmware.com>
2493 * command.h (enum command_class): New class 'no_set_class', for
2494 "show" commands without a corresponding "set" command.
2495 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2496 * copying.c (_initialize_copying): Ditto for "show copying" and
2498 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2500 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2501 which there is no corresponding "set" command (eg. "show copying").
2503 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2504 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 * exec.c (section_table_available_memory): Change `len' parameter
2508 * exec.h (section_table_available_memory): Ditto.
2509 * value.h (read_value_memory): Rename the `offset' parameter to
2512 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2513 Jan Kratochvil <jan.kratochvil@redhat.com>
2515 * memrange.c (compare_mem_ranges): Mention sort order in
2517 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2518 * tracepoint.c (traceframe_available_memory): Extend comment to
2519 mention what happens to RESULT when the target does not support
2522 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2523 Jan Kratochvil <jan.kratochvil@redhat.com>
2525 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2528 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2530 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2531 No longer handle NULL values.
2533 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2535 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2536 * value.c: Include "exceptions.h".
2537 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2539 * cp-abi.c: Include gdb_assert.h.
2540 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2541 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2543 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2544 parameters. No longer returns -1 on error.
2545 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2547 * cp-valprint.c: Include exceptions.h.
2548 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2549 the baseclass_offset. Handle unavailable base classes. Use
2550 val_print_invalid_address.
2551 * p-valprint.c: Include exceptions.h.
2552 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2553 when fetching the baseclass_offset. No longer expect
2554 baseclass_offset returning -1. Handle unavailable base classes.
2555 Use val_print_invalid_address.
2556 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2557 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2558 `embedded_offset' and `val' parameters. Adjust.
2559 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2560 parameter, and change its type to gdb_byte pointer. Add
2561 `embedded_offset' and `val' parameters. Adjust. No longer expect
2562 baseclass_offset returning -1.
2563 (value_dynamic_cast): Use value_contents_for_printing rather than
2564 value_contents. Adjust.
2565 (search_struct_field): No longer expect baseclass_offset returning
2567 (search_struct_method): If reading memory from the target is
2568 necessary, wrap it in a new value to pass to baseclass_offset. No
2569 longer expect baseclass_offset returning -1.
2570 (find_method_list): No longer expect baseclass_offset returning
2571 -1. Use value_contents_for_printing rather than value_contents.
2572 * valprint.c (val_print_invalid_address): New function.
2573 * valprint.h (val_print_invalid_address): Declare.
2574 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2575 and `val' parameters. No longer expect baseclass_offset returning
2577 * gnu-v2-abi.c: Include "exceptions.h".
2578 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2579 parameters. Handle unavailable memory. Recurse through
2580 gnuv2_baseclass_offset directly, rather than through
2581 baseclass_offset. No longer returns -1 on not found, instead
2583 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2584 `val' parameters. Adjust.
2586 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2588 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2589 almost but not quite adjacent.
2591 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2593 * value.h (value_entirely_available): Declare.
2594 * value.c (value_entirely_available): New function.
2595 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2596 real type if the pointer is unavailable.
2598 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2600 * valops.c (value_repeat): Use read_value_memory instead of
2603 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2605 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2606 * value.c (value_contents_copy_raw, value_contents_copy): New
2608 (value_primitive_field): Use value_contents_copy_raw instead of
2610 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2612 (value_array, value_slice): Ditto.
2613 * valarith.c (value_subscripted_rvalue): Use
2614 value_contents_copy_raw instead of memcpy.
2616 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2618 <unavailable> references.
2620 * valops.c (get_value_at): Use value_from_contents_and_address,
2621 avoiding read_memory.
2623 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2625 * c-valprint.c (c_val_print): Print a string with unavailable
2626 contents as an array.
2628 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2630 * value.h (unpack_bits_as_long): Delete declaration.
2631 (unpack_value_bits_as_long): Declare.
2632 (unpack_value_field_as_long): Declare.
2633 (value_field_bitfield): Declare.
2634 * value.c (unpack_bits_as_long): Rename to...
2635 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2636 value parameters. Return the extracted result in a new output
2637 parameter. If the value contents are unavailable, return false,
2638 otherwise return true.
2639 (unpack_value_bits_as_long): New.
2640 (unpack_field_as_long): Rename to...
2641 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2642 Add embedded_offset and value parameters. Return the extracted
2643 result in a new output parameter. If the value contents are
2644 unavailable, return false, otherwise return true.
2645 (unpack_value_field_as_long): New.
2646 (unpack_field_as_long_1): New.
2647 (unpack_field_as_long): Reimplement as wrapper around
2648 unpack_value_field_as_long_1.
2649 (value_field_bitfield): New function.
2650 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2651 unpack_value_bits_as_long. Mark the value as unavailable, if it
2653 * jv-valprint.c (java_print_value_fields): Use
2654 value_field_bitfield.
2655 * p-valprint.c (pascal_object_print_value_fields): Use
2656 value_field_bitfield.
2657 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2659 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2661 * value.c (get_internalvar_integer): Also return the int value of
2662 TYPE_CODE_INT INTERNALVAR_VALUE values.
2663 (set_internalvar): Don't special case TYPE_CODE_INT.
2665 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2667 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2668 INTERNALVAR_POINTER.
2670 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2671 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2672 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2674 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2676 * value.h (value_available_contents_eq): Declare.
2677 * value.c (find_first_range_overlap): New function.
2678 (value_available_contents_eq): New function.
2679 * valprint.c (val_print_array_elements): Use
2680 value_available_contents_eq.
2681 * ada-valprint.c (val_print_packed_array_elements): Use
2682 value_available_contents_eq.
2683 * jv-valprint.c (java_value_print): Use
2684 value_available_contents_eq.
2686 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2688 * target.c (target_read_live_memory): New function.
2689 (memory_xfer_live_readonly_partial): New.
2690 (memory_xfer_partial): If reading from a traceframe, fallback to
2691 reading unavailable read-only memory from read-only regions of
2693 * tracepoint.c (disconnect_tracing): Adjust.
2694 (set_current_traceframe): New, factored out from
2695 set_traceframe_number.
2696 (set_traceframe_number): Reimplement to only change the traceframe
2697 number on the GDB side.
2698 (do_restore_current_traceframe_cleanup): Adjust.
2699 (make_cleanup_restore_traceframe_number): New.
2700 (cur_traceframe_number): New global.
2701 (tfile_open): Set cur_traceframe_number to no traceframe.
2702 (set_tfile_traceframe): New function.
2703 (tfile_trace_find): If looking up a traceframe using any method
2704 other than by number, make sure the current tfile traceframe
2705 matches gdb's current traceframe. Update the current tfile
2706 traceframe if the lookup succeeded.
2707 (tfile_fetch_registers, tfile_xfer_partial)
2708 (tfile_get_trace_state_variable_value): Make sure the remote
2709 traceframe matches gdb's current traceframe.
2710 * remote.c (remote_traceframe_number): New global.
2711 (remote_open_1): Set it to -1.
2712 (set_remote_traceframe): New function.
2713 (remote_fetch_registers, remote_store_registers)
2714 (remote_xfer_memory, remote_xfer_partial)
2715 (remote_get_trace_state_variable_value): Make sure the remote
2716 traceframe matches gdb's current traceframe.
2717 (remote_trace_find): If looking up a traceframe using any method
2718 other than by number, make sure the current remote traceframe
2719 matches gdb's current traceframe. Update the current remote
2720 traceframe if the lookup succeeded.
2721 * infrun.c (fetch_inferior_event): Adjust.
2722 * tracepoint.h (set_current_traceframe): Declare.
2723 (get_traceframe_number, set_traceframe_number): Add describing
2726 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2728 Mark pieces of values as unavailable if the corresponding memory
2731 * valops.c: Include tracepoint.h.
2732 (value_fetch_lazy): Use read_value_memory.
2733 (read_value_memory): New.
2734 * value.h (read_value_memory): Declare.
2735 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2736 * exec.c (section_table_available_memory): New function.
2737 * exec.h (section_table_available_memory): Declare.
2739 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2741 * Makefile.in (SFILES): Add memrange.c.
2742 (HFILES_NO_SRCDIR): Add memrange.h.
2743 (COMMON_OBS): Add memrange.o.
2744 * memrange.c: New file.
2745 * memrange.h: New file.
2746 * tracepoint.c: Include memrange.h.
2747 (struct mem_range): Delete.
2748 (mem_range_s): Delete.
2749 (traceframe_available_memory): New function.
2750 * tracepoint.h (traceframe_available_memory): Declare.
2752 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2754 * target.h (struct traceframe_info): Forward declare.
2755 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2756 (struct target_ops) <to_traceframe_info>: New field.
2757 (target_traceframe_info): New.
2758 * target.c (update_current_target): Inherit and default
2760 * remote.c (PACKET_qXfer_traceframe_info): New.
2761 (remote_protocol_features): Register qXfer:traceframe-info:read.
2762 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2763 (remote_traceframe_info): New.
2764 (init_remote_ops): Install it.
2765 (_initialize_remote): Install "set/show remote traceframe-info"
2767 * tracepoint.h (parse_traceframe_info): Declare.
2768 * tracepoint.c (struct mem_range): New.
2769 (mem_range_s): New typedef.
2770 (struct traceframe_info): New.
2771 (traceframe_info): New global.
2772 (free_traceframe_info): New function.
2773 (clear_traceframe_info): New function.
2774 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2776 (build_traceframe_info): New function.
2777 (tfile_traceframe_info): New function.
2778 (init_tfile_ops): Install tfile_traceframe_info.
2779 (traceframe_info_start_memory, free_result): New functions.
2780 (memory_attributes, traceframe_info_elements): New globals.
2781 (parse_traceframe_info, get_traceframe_info): New functions.
2782 * features/traceframe-info.dtd: New file.
2783 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2785 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2787 Base support for <unavailable> value contents.
2789 * value.h (value_bytes_available): Declare.
2790 (mark_value_bytes_unavailable): Declare.
2791 * value.c (struct range): New struct.
2792 (range_s): New typedef.
2793 (ranges_overlap): New function.
2794 (range_lessthan): New function.
2795 (ranges_contain_p): New function.
2796 (struct value) <unavailable>: New field.
2797 (value_bytes_available): New function.
2798 (mark_value_bytes_unavailable): New function.
2799 (require_not_optimized_out): Constify parameter.
2800 (require_available): New function.
2801 (value_contents_all, value_contents): Require all bytes be
2803 (value_free): Free `unavailable'.
2804 (value_copy): Copy `unavailable'.
2805 * valprint.h (val_print_unavailable): Declare.
2806 * valprint.c (valprint_check_validity): Rename `offset' parameter
2807 to `embedded_offset'. If printing a scalar, check whether the
2808 value chunk is available.
2809 (val_print_unavailable): New.
2810 (val_print_scalar_formatted): Check whether the value is
2812 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2813 pretty-printing unavailable values.
2815 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2818 * c-typeprint.c (c_type_print_args): Update the function comment. New
2819 variable param_type, initialize it. Remove const/volatile qualifiers
2820 for language_cplus and !show_artificial. Use param_type.
2822 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2824 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2825 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2826 * symtab.h (struct symtab) <next>: Comment extension.
2828 2011-02-12 Yao Qi <yao@codesourcery.com>
2830 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2832 2011-02-11 Yao Qi <yao@codesourcery.com>
2834 * common/Makefile.in: Add copyright header.
2836 2011-02-11 Pedro Alves <pedro@codesourcery.com>
2838 * infrun.c (proceed): Move switching out and in of tfind mode from
2840 (fetch_inferior_event): ... to here.
2842 2011-02-11 Yao Qi <yao@codesourcery.com>
2844 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2846 * configure.ac: Add common to sub dir.
2847 * configure: Regenerate.
2849 2011-02-11 Yao Qi <yao@codesourcery.com>
2853 * common/Makefile.in: New.
2854 * common/configure.ac: New.
2855 * common/aclocal.m4: New.
2856 * common/configure: Generate.
2858 2011-02-10 Pedro Alves <pedro@codesourcery.com>
2860 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2861 side of the parenthesis.
2864 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2865 * vec.h (VEC_block_remove): Fix comment.
2867 2011-02-08 Michael Snyder <msnyder@vmware.com>
2869 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2871 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2873 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2874 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2877 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2880 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2882 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2883 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2885 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2887 * dwarf2read.c (read_subroutine_type): Set special calling
2888 convention flag for functions compiled by IBM XL C for OpenCL.
2889 * ppc-sysv-tdep.c: Include "dwarf2.h"
2890 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2892 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2893 IBM OpenCL vector types calling convention.
2894 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2895 (ppc_sysv_abi_broken_return_value): Likewise.
2896 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2897 types calling convention.
2898 (ppc64_sysv_abi_return_value): Likewise.
2899 * spu-tdep.c: Include "dwarf2.h"
2900 (spu_return_value): Implement IBM OpenCL vector types calling
2903 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2905 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2906 correct ABI for AltiVec vector arguments.
2908 2011-02-07 Pedro Alves <pedro@codesourcery.com>
2910 * valprint.c (val_print): Extend comment.
2911 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2912 interface explanation to val_print.
2913 (ada_val_print_array): Adjust comment to current interface.
2914 (print_field_values): Adjust comment to current interface.
2915 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2916 explanation to val_print.
2917 * f-valprint.c (f_val_print): Ditto.
2918 * jv-valprint.c (java_val_print): Ditto.
2919 * m2-valprint.c (m2_val_print): Ditto.
2920 * p-valprint.c (pascal_val_print): Ditto.
2922 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2924 * breakpoint.c (parse_breakpoint_sals): Fix description.
2926 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
2927 Oguz Kayral <oguzkayral@gmail.com>
2929 * python/py-inferior.c (python_on_normal_stop): New function.
2930 (python_on_resume): New function.
2931 (python_inferior_exit): New function.
2932 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2933 inferior_exit observers.
2934 * python/py-evtregistry.c: New file.
2935 * python/py-threadevent.c : New file.
2936 * python/py-event.c: New file.
2937 * python/py-evts.c: New file.
2938 * python/py-continueevent.c: New file.
2939 * python/py-bpevent.c: New file.
2940 * python/py-signalevent.c: New file.
2941 * python/py-exetiedevent.c: New file.
2942 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2943 Move struct breakpoint_object from here...
2944 * python/python-internal.h: ... to here.
2945 * python/py-event.h: New file.
2946 * python/py-events.h: New file.
2947 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2948 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2949 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2950 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2951 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2952 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2953 Add build rules for all the above.
2955 2011-02-04 Tom Tromey <tromey@redhat.com>
2957 * dwarf2read.c (dwarf2_section_empty_p): New function.
2958 (dwarf2_read_section): Use dwarf2_section_empty_p.
2959 (dwarf2_section_size): New function.
2960 (dwarf2_get_section_info): Unconditionally read section.
2961 (dwarf2_read_index): Use dwarf2_section_empty_p.
2962 (partial_read_comp_unit_head): Use dwarf2_section_size.
2963 (dwarf2_symbol_mark_computed): Likewise.
2965 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2967 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2969 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2971 * mips-linux-tdep.c: Include xml-syscall.h.
2972 (mips_linux_get_syscall_number): New function.
2973 (mips_linux_init_abi): Add calls to
2974 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2975 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2976 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2977 * syscalls/mips-n32-linux.xml: New file.
2978 * syscalls/mips-n64-linux.xml: New file.
2979 * syscalls/mips-o32-linux.xml: New file.
2981 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2983 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2984 Complain about inverted range entries.
2985 (dwarf2_record_block_ranges): Likewise.
2987 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2990 * breakpoint.c (update_watchpoint): Fix name of the
2991 update_global_location_list function.
2992 (print_one_breakpoint): Fix typo.
2993 (_initialize_breakpoint): Remove extra space in hbreak help
2995 * breakpoint.h (struct bp_location) <length>: Fix field
2998 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3000 * regcache.c (registers_changed_ptid): Don't explictly always
3001 clear `current_regcache'. Only clear current_thread_ptid and
3002 current_thread_arch when PTID matches. Only reinit the frame
3003 cache if PTID matches the current inferior_ptid. Move alloca(0)
3005 (registers_changed): ... here.
3007 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3009 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3010 starts with __stack_chk_guard as stack guard symbol.
3012 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3014 * disasm.c (compare_lines): Handle the end of sequence markers
3015 within the line table to better support disassembling over
3016 compilation unit boundaries.
3018 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3020 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3021 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3022 implementation even if no symbols are available.
3023 (thumb_analyze_prologue): Update call to skip_prologue_function.
3024 (arm_analyze_prologue): Likewise.
3026 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3028 * arm-tdep.c: Include "observer.h".
3029 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3030 (arm_exidx_data_key): New static variable.
3031 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3032 (struct arm_exidx_data): Likewise.
3033 (arm_exidx_data_free): New function.
3034 (arm_compare_exidx_entries): Likewise.
3035 (arm_obj_section_from_vma): Likewise.
3036 (arm_exidx_new_objfile): Likewise.
3037 (arm_find_exidx_entry): Likewise.
3038 (arm_exidx_fill_cache): Likewise.
3039 (arm_exidx_unwind_sniffer): Likewise.
3040 (arm_exidx_unwind): New global variable.
3041 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3042 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3043 observer. Register arm_exidx_data_key as objfile data.
3045 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3047 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3048 due to accessing uninitialized variable. Fix indentation.
3050 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3052 * c-valprint.c (c_value_print): When doing virtual base pointer
3053 adjustment, create a new value with adjusted contents rather than
3054 changing the contents of the value being printed (and getting it
3057 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3059 * xml-support.c (xml_find_attribute): New.
3060 (xinclude_start_include): Use it.
3061 * xml-support.h (xml_find_attribute): Declare.
3062 * memory-map.c (memory_map_start_memory)
3063 (memory_map_start_property): Use xml_find_attribute.
3064 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3066 * remote.c (start_thread): Use xml_find_attribute.
3067 * solib-target.c (library_list_start_segment)
3068 (library_list_start_section, library_list_start_library)
3069 (library_list_start_list): Use xml_find_attribute.
3070 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3071 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3072 (tdesc_start_field): Use xml_find_attribute.
3074 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3076 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3077 (BUILD_OCL_VTYPES): Update.
3079 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3081 * configure.ac: Work around non-GNU sed limitation when computing
3082 python version number.
3083 * configure: Regenerate.
3085 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3087 Fix debug printing of TYPE_INSTANCE.
3088 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3089 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3091 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3093 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3094 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3095 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3096 * ada-operator.inc: Rename the file to ...
3097 * ada-operator.def: ... here, wrap all the entries by macro OP.
3098 * expprint.c (op_name_standard): Remove all the entries. Include
3099 "std-operator.def" instead.
3100 * expression.h (enum exp_opcode): Include "std-operator.def" and
3101 "ada-operator.def". Move all the entries ...
3102 * std-operator.def: ... here, wrap all the entries by macro OP.
3104 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3106 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3107 * breakpoint.c (remove_jit_event_breakpoints): New function.
3108 * jit.c (jit_descriptor_addr): Delete.
3109 (registering_code): Delete.
3110 (clear_int): Delete.
3111 (jit_inferior_data): New variable.
3112 (struct jit_inferior_data): New type.
3113 (get_jit_inferior_data): New function.
3114 (jit_inferior_data_cleanup): New function.
3115 (jit_read_descriptor): Adjust.
3116 (jit_register_code): Adjust.
3117 (jit_breakpoint_re_set_internal): New function; move code here ...
3118 (jit_inferior_init): ... from here.
3119 (jit_breakpoint_re_set): Adjust.
3120 (jit_reset_inferior_data_and_breakpoints): New function.
3121 (jit_inferior_created_observer): Adjust.
3122 (jit_inferior_exit_hook): Adjust.
3123 (jit_executable_changed_observer): New function.
3124 (jit_event_handler): Adjust.
3125 (_initialize_jit): Adjust.
3127 2011-01-31 Michael Snyder <msnyder@vmware.com>
3129 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3132 2011-01-31 Tom Tromey <tromey@redhat.com>
3135 * python/python.c (execute_gdb_command): Call
3136 prevent_dont_repeat.
3137 * top.c (suppress_dont_repeat): New global.
3138 (dont_repeat): Use it.
3139 (prevent_dont_repeat): New function.
3140 * command.h (prevent_dont_repeat): Declare.
3142 2011-01-31 Tom Tromey <tromey@redhat.com>
3144 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3145 * python/py-breakpoint.c (bppy_set_silent): Use
3146 breakpoint_set_silent.
3147 (bppy_set_thread): Use breakpoint_set_thread.
3148 (bppy_set_task): Use breakpoint_set_task.
3149 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3150 (breakpoint_set_task): Declare.
3151 (make_breakpoint_silent): Remove.
3152 * breakpoint.c (breakpoint_set_silent): New function.
3153 (breakpoint_set_thread): Likewise.
3154 (breakpoint_set_task): Likewise.
3155 (make_breakpoint_silent): Remove.
3157 2011-01-31 Tom Tromey <tromey@redhat.com>
3159 * breakpoint.h (user_breakpoint_p): Declare.
3160 * breakpoint.c (user_breakpoint_p): New function.
3161 (breakpoint_1): Use it.
3162 (save_breakpoints): Likewise.
3164 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3166 * configure.ac: Add handling of Python distribution on Windows.
3167 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3168 sysconfig variables are not defined, then do not use them.
3169 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3170 instead. On Windows, return all paths using forward-slashes
3171 rather than backslashes.
3173 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3175 * configure.ac: Remove fallback behavior for building
3176 against Python. Remove tweaking of Python include path.
3177 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3178 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3179 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3180 Always restore CPPFLAGS and LIBS after linking test.
3181 * configure: Regenerated.
3182 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3183 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3184 * python/python-internal.h: Adjust includes of Python .h files.
3186 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3188 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3191 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3193 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3196 2011-01-31 Yao Qi <yao@codesourcery.com>
3198 * arm-linux-nat.c: Update calls to regcache_register_status
3199 instead of regcache_valid_p.
3200 * aix-thread.c: Likewise.
3201 * i386gnu-nat.c: Likewise.
3203 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3206 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3207 touching TYPE_FIELD_ARTIFICIAL.
3209 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3211 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3214 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3216 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3217 selected, don't try iterating over the traceframe's blocks.
3218 (tfile_has_stack): If there's no traceframe selected, then there's
3220 (tfile_has_registers): If there's no traceframe selected, then
3221 there's no registers.
3223 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3225 * target.c (memory_xfer_partial): No need to restore shadows if we
3226 haven't read anything.
3228 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3230 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3231 and val_print_scalar_formatted.
3233 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3235 * tracepoint.c (tfile_read): New.
3236 (tfile_open): Use it.
3237 (tfile_get_traceframe_address): Use it.
3238 (tfile_trace_find): Use it.
3239 (walk_blocks_callback_func): New typedef.
3240 (match_blocktype): New function.
3241 (traceframe_walk_blocks): New function.
3242 (traceframe_find_block_type): New function.
3243 (tfile_fetch_registers, tfile_xfer_partial)
3244 (tfile_get_trace_state_variable_value): Use
3245 traceframe_find_block_type and tfile_read.
3247 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3249 * remote-mips.c: Add internationalization mark ups. Remove
3250 trailing \n from already marked up strings.
3252 2011-01-26 Tom Tromey <tromey@redhat.com>
3254 * python/py-prettyprint.c (print_string_repr): Clear
3255 'addressprint' option when calling val_print_string.
3256 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3257 option when calling val_print_string.
3259 2011-01-26 Tom Tromey <tromey@redhat.com>
3261 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3263 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3265 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3266 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3267 (gdb_py_long_as_ulongest): New defines.
3268 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3269 (gdb_py_int_as_long): Declare.
3270 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3271 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3272 (valpy_long): Add comment.
3273 * python/py-utils.c (get_addr_from_python): Use
3274 gdb_py_long_as_ulongest. Handle overflow properly.
3275 (gdb_py_object_from_longest): New function.
3276 (gdb_py_object_from_ulongest): Likewise.
3277 (gdb_py_int_as_long): Likewise.
3278 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3279 * python/py-symtab.c (salpy_get_pc): Use
3280 gdb_py_long_from_ulongest.
3281 (salpy_get_line): Use PyInt_FromLong.
3282 * python/py-param.c (set_parameter_value): Use
3284 * python/py-lazy-string.c (stpy_get_address): Use
3285 gdb_py_long_from_ulongest.
3286 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3287 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3288 * python/py-breakpoint.c (bppy_set_thread): Use
3290 (bppy_set_task): Likewise.
3291 (bppy_set_ignore_count): Likewise.
3292 (bppy_set_hit_count): Likewise.
3293 * python/py-block.c (blpy_get_start): Use
3294 gdb_py_object_from_ulongest.
3295 (blpy_get_end): Likewise.
3296 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3298 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3301 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3302 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3303 equality test for objfile, initialize addr_low if needed.
3305 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3307 * tui/tui-regs.c (tui_register_format): Remove dead code.
3309 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3311 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3312 instead of print_scalar_formatted.
3313 (print_scalar_formatted): Don't handle 's' format strings here,
3314 and add an assertion that we never see such format here.
3315 * valprint.h (val_print_scalar_formatted): Declare.
3316 * valprint.c (val_print_scalar_formatted): New.
3317 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3318 instead of print_scalar_formatted.
3319 * jv-valprint.c (java_val_print): Ditto.
3320 * p-valprint.c (pascal_val_print): Ditto.
3321 * ada-valprint.c (ada_val_print_1): Ditto.
3322 * f-valprint.c (f_val_print): Ditto.
3323 * infcmd.c (registers_info): Ditto.
3324 * m2-valprint.c (m2_val_print): Ditto.
3326 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3328 * m2-valprint.c (print_unbounded_array): Pass
3329 value_contents_for_printing rather than value_contents, to
3330 m2_print_array_contents. Also pass in the value.
3332 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3334 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3335 (save_gdb_index_command): Switch to .gdb_index version 4.
3337 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3339 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3340 than frame_register, and always pass a valid value to val_print.
3342 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3344 Centralize printing "<optimized out>".
3346 * valprint.h (val_print_optimized_out): Declare.
3347 * cp-valprint.c (cp_print_value_fields): Use
3348 val_print_optimized_out.
3349 * jv-valprint.c (java_print_value_fields): Ditto.
3350 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3351 * printcmd.c (print_formatted): Ditto.
3352 * valprint.c (valprint_check_validity): Ditto.
3353 (value_check_printable): Ditto.
3354 (val_print_optimized_out): New.
3356 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3358 * infcmd.c (default_print_registers_info): Allocate values so to
3359 never pass a NULL value to val_print.
3361 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3363 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3364 boolean. Make sure to always pass a value that matches the
3365 contents buffer to callees. Preserve `address' for following
3367 * value.c (value_contents_for_printing_const): New.
3368 (value_address): Constify value argument.
3369 * value.h (value_contents_for_printing_const): Declare.
3370 (value_address): Constify value argument.
3372 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3374 * regcache.c (struct regcache_descr): Rename
3375 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3376 and sizeof_cooked_register_valid_p to
3377 sizeof_cooked_register_status.
3378 (init_regcache_descr): Adjust.
3379 (struct regcache): Rename register_valid_p field to
3381 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3382 (do_cooked_read): Adjust.
3383 (regcache_valid_p): Rename to ...
3384 (regcache_register_status): ... this. Adjust.
3385 (regcache_invalidate): Adjust.
3386 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3388 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3389 as unavailable, not valid.
3390 (regcache_dump): Adjust.
3391 * regcache.h (enum register_status): New.
3392 (regcache_register_status): Declare.
3393 (regcache_invalidate): Delete declaration.
3394 * corelow.c (get_core_registers): Adjust.
3395 * tracepoint.c (tfile_fetch_registers): Adjust.
3396 * trad-frame.c (REG_VALUE): Rename to ...
3397 (TF_REG_VALUE): ... this.
3398 (REG_UNKNOWN): Rename to ...
3399 (TF_REG_UNKNOWN): ... this.
3400 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3401 * mi/mi-main.c (register_changed_p): Adjust.
3403 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3405 * regcache.c (struct regcache_descr): Remove outdated comment.
3406 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3408 (regcache_xmalloc): Rename to ...
3409 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3410 Allocate the regcache type accordingly.
3411 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3412 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3413 cooked registers, not raw.
3414 (regcache_dup_no_passthrough): Delete.
3415 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3416 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3417 mention obsolete write_register_bytes.
3418 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3420 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3422 Stop remote_read_bytes from handling partial reads itself.
3424 * remote-fileio.c: Include target.h.
3425 (remote_fileio_write_bytes): Delete.
3426 (remote_fileio_func_open, remote_fileio_func_write)
3427 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3429 (remote_fileio_func_stat): Use target_read_memory and
3430 target_write_memory.
3431 (remote_fileio_func_gettimeofday): Use target_write_memory.
3432 (remote_fileio_func_system): Use target_read_memory.
3433 * remote.c (remote_write_bytes): Make it static.
3434 (remote_read_bytes): Don't handle partial reads here.
3435 * remote.h (remote_read_bytes): Delete declaration.
3437 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3439 Simplify XML parsing a bit.
3441 * xml-support.h (gdb_xml_parse_quick): Declare.
3442 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3443 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3445 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3446 gdb_xml_create_parser_and_cleanup_1.
3447 (gdb_xml_parse_quick): New.
3448 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3449 * osdata.c (osdata_parse): Ditto.
3450 * remote.c (remote_threads_info): Ditto.
3451 * solib-target.c (solib_target_parse_libraries): Ditto.
3452 * xml-syscall.c (syscall_parse_xml): Ditto.
3453 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3455 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3457 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3458 with remote-mips.o added to gdb_target_obs.
3459 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3461 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3463 * ada-valprint.c (val_print_packed_array_elements): Pass the
3464 correct struct value to val_print.
3465 (ada_val_print_1): Ditto.
3467 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3469 Don't lose embedded_offset in printing routines throughout.
3471 * valprint.h (val_print_array_elements): Change prototype.
3472 * valprint.c (val_print_array_elements): Add `embedded_offset'
3473 parameter, and adjust to pass it down to val_print, while passing
3474 `valaddr' or `address' unmodified. Take embedded_offset into
3475 account when checking repetitions.
3476 * c-valprint.c (c_val_print): Pass embedded_offset to
3477 val_print_array_elements instead of adjusting `valaddr' and
3479 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3480 embedded_offset to val_print_array_elements instead of adjusting
3482 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3483 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3484 val_print_array_elements and pascal_object_print_value_fields
3485 instead of adjusting `valaddr'.
3486 (pascal_object_print_value_fields): Add `offset' parameter, and
3488 (pascal_object_print_value): Add `offset' parameter, and adjust to
3490 (pascal_object_print_static_field): Use
3491 value_contents_for_printing/value_embedded_offset, rather than
3493 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3494 parameter, and adjust to use it. Use
3495 value_contents_for_printing/value_embedded_offset, rather than
3497 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3498 (ada_val_print_array): Add `offset' parameter, and adjust to use
3500 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3501 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3502 Instead work with offsets. Use
3503 value_contents_for_printing/value_embedded_offset, rather than
3504 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3505 and use value_from_pointer to extract a target pointer, rather
3506 than value_from_longest.
3507 (print_variant_part): Add `offset' parameter. Replace
3508 `outer_valaddr' parameter by a new `outer_offset' parameter.
3509 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3510 (ada_value_print): Use
3511 value_contents_for_printing/value_embedded_offset, rather than
3513 (print_record): Add `offset' parameter, and adjust to pass it
3515 (print_field_values): Add `offset' parameter. Replace
3516 `outer_valaddr' parameter by a new `outer_offset' parameter.
3517 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3518 Use value_contents_for_printing/value_embedded_offset, rather than
3520 * d-valprint.c (dynamic_array_type): Use
3521 value_contents_for_printing/value_embedded_offset, rather than
3523 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3524 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3525 (java_print_value_fields): Take `offset' into account. Don't
3526 re-adjust `valaddr'. Instead pass down adjusted offsets.
3527 (java_val_print): Take `embedded_offset' into account. Pass it to
3528 java_print_value_fields.
3529 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3530 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3531 down adjusted offsets.
3532 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3533 (f_val_print): Take `embedded_offset' into account.
3535 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3537 * inflow.c: Include "gdbcmd.h".
3538 (interactive_mode): New static global, moved here from top.c.
3539 (show_interactive_mode): New function, moved here from top.c.
3540 use gdb_has_a_terminal instead of input_from_terminal_p to
3541 determine the current mode.
3542 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3544 (_initialize_inflow): Add the "set/show interactive-mode"
3545 commands. Moved here from top.c, after having adjusted slightly
3547 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3549 (input_from_terminal_p): Remove handling of "interactive-mode"
3550 setting, moved to infow.c.
3551 (init_main): Remove creation of the "set/show interactive-mode"
3552 commands, moved to inflow.c.
3554 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3556 * NEWS: Add entry for native ia64-hpux support.
3558 2011-01-19 Tom Tromey <tromey@redhat.com>
3561 * thread.c (free_thread): Free 'name'.
3562 (print_thread_info): Emit thread name. Change CLI output.
3563 (thread_name_command): New function.
3564 (do_captured_thread_select): Emit newline.
3565 (_initialize_thread): Register 'thread name' command.
3566 * target.h (struct target_ops) <to_thread_name>: New field.
3567 (target_thread_name): New macro.
3568 * target.c (update_current_target): Handle to_thread_name.
3569 * python/py-infthread.c (thpy_get_name): New function.
3570 (thpy_set_name): Likewise.
3571 (thread_object_getset): Add "name".
3572 * linux-nat.c (linux_nat_thread_name): New function.
3573 (linux_nat_add_target): Set to_thread_name.
3574 * gdbthread.h (struct thread_info) <name>: New field.
3576 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3578 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3579 (ada_val_print_1): Likewise.
3581 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3583 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3584 upper limit address is not greater than the function end address
3585 when the upper limit could not be computed using the debugging
3588 2011-01-17 Tom Tromey <tromey@redhat.com>
3590 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3592 * utils.c: Include gdb_regex.h.
3593 (do_regfree_cleanup): New function.
3594 (make_regfree_cleanup): Likewise.
3595 (get_regcomp_error): Likewise.
3596 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3598 2011-01-17 Tom Tromey <tromey@redhat.com>
3600 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3603 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3605 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3606 for internal variables.
3607 (last_was_structop): New static variable.
3608 (COMPLETE): New token.
3609 (field_exp): New rule to group all '.' suffix handling.
3610 Add mark_struct_expression calls when approriate to be able
3611 to correctly find fields for completion.
3612 (yylex): Adapt to handle field completion and set INTVAR when
3615 2011-01-14 Yao Qi <yao@codesourcery.com>
3617 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3618 save_reggroup, restore_reggroup and all_reggroup.
3620 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3622 * ada-valprint. (ada_printchar): Use the correct type length
3623 in call to ada_emit_char.
3624 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3626 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3628 * solib-som.h (hpux_major_release): Declare variable here.
3629 * solib-som.c: Remove <sys/utsname.h> header.
3630 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3631 (hpux_major_release): Make global, change default value to
3632 DEFAULT_HPUX_MAJOR_RELEASE.
3633 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
3634 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3635 Add "solib-som.h" header.
3636 (set_hpux_major_release): New function.
3637 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3639 2011-01-14 Mike Frysinger <vapier@gentoo.org>
3641 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3643 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3645 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3646 new-line at end of warning message.
3647 (ia64_hpux_store_register): Remove trailing new-line at end of
3649 * ia64-hpux-tdep.c: Rephrase comment.
3650 * solib-ia64-hpux.c (struct dld_info): Change type of field
3651 dld_flags from "long long" to ULONGEST.
3653 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3655 * target.h (deprecated_child_ops): Delete declaration.
3656 * target.c (deprecated_child_ops): Delete definition.
3658 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3660 * Makefile.in (hpux-thread.o): Delete rule.
3661 * configure.ac: Don't check for HPUX DCE threads support.
3662 * configure, config.in: Regenerate.
3663 * hppa-hpux-nat.c (child_suppress_run): Delete.
3664 (hppa_hpux_child_can_run): Delete.
3665 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3666 * hpux-thread.c: Delete.
3668 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3670 * hpux-thread.c (hpux_pid_to_str): Delete.
3672 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3674 * ada-valprint.c (ada_emit_char): Remove strange code.
3675 Check that c is <= UCHAR_MAX before passing it to isascii.
3676 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3678 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3680 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3681 to the case where instream is stdin.
3683 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3685 * ia64-tdep.h (struct regcache): Forward declare.
3686 (struct ia64_infcall_ops): New struct type.
3687 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3689 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3690 Renames ia64_find_global_pointer.
3691 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3692 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3693 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3695 (ia64_infcall_ops): New static global constant.
3696 (ia64_gdbarch_init): Set tdep->infcall_ops.
3697 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3698 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3699 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3700 (ia64_hpux_dummy_code): New static global constant.
3701 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3702 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3703 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3705 (ia64_hpux_infcall_ops): New static global constant.
3706 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3707 for inferior function calls to work properly on ia64-hpux.
3709 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3711 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3712 * ia64-tdep.h (struct frame_info): forward declaration.
3713 (struct gdbarch_tdep): Add field size_of_register_frame.
3714 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3715 to determine the size of the register frame.
3716 (ia64_size_of_register_frame): New function.
3717 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3718 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3719 (IA64_HPUX_UREG_REASON): New macro.
3720 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3722 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3723 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3724 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3727 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3729 Add support for ia64-hpux.
3730 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3731 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3733 * configure.host: Add handling for ia64-hpux hosts. Add associated
3735 * configure.tgt: Add handling for ia64-hpux targets.
3736 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3737 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3738 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3740 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3742 [ttrace] Compute thread list immediately after attach.
3743 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3745 (inf_ttrace_attach): Use it.
3747 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3749 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3750 if we could not determine the frame's function address. Instead,
3751 use the frame's PC, and then continue.
3753 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3755 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3756 not already defined.
3758 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3760 * ia64-tdep.c (ia64_struct_type_p): New function.
3761 (ia64_extract_return_value): Handle integral values that are
3762 less than 8 bytes long.
3763 (ia64_push_dummy_call): Likewise.
3765 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3767 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3768 floatformat_ia64_ext.
3769 (floatformat_ia64_ext_big): New static const.
3770 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3772 2011-01-12 Tom Tromey <tromey@redhat.com>
3774 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3776 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3777 (mi_cmd_thread_list_ids): Likewise.
3778 (mi_cmd_data_list_changed_registers): Likewise.
3779 (mi_cmd_data_list_register_values): Likewise.
3780 (mi_cmd_data_write_register_values): Likewise.
3781 (mi_cmd_data_evaluate_expression): Likewise.
3782 (mi_cmd_data_read_memory): Likewise.
3783 (mi_cmd_data_read_memory_bytes): Likewise.
3784 (mi_cmd_data_write_memory): Likewise.
3785 (mi_cmd_enable_timings): Likewise.
3786 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3787 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3788 (mi_cmd_var_delete): Likewise.
3789 (mi_cmd_var_set_format): Likewise.
3790 (mi_cmd_var_show_format): Likewise.
3791 (mi_cmd_var_info_num_children): Likewise.
3792 (mi_cmd_var_list_children): Likewise.
3793 (mi_cmd_var_info_type): Likewise.
3794 (mi_cmd_var_info_expression): Likewise.
3795 (mi_cmd_var_show_attributes): Likewise.
3796 (mi_cmd_var_assign): Likewise.
3797 (mi_cmd_var_update): Likewise.
3798 (mi_cmd_enable_pretty_printing): Likewise.
3799 (mi_cmd_var_set_update_range): Likewise.
3800 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3802 (mi_cmd_target_file_put): Likewise.
3803 (mi_cmd_target_file_delete): Likewise.
3804 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3806 (mi_cmd_stack_info_depth): Likewise.
3807 (mi_cmd_stack_list_locals): Likewise.
3808 (mi_cmd_stack_list_args): Likewise.
3809 (mi_cmd_stack_select_frame): Likewise.
3810 (mi_cmd_stack_select_frame): Likewise.
3811 (mi_cmd_stack_info_frame): Likewise.
3812 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3814 (mi_cmd_file_list_exec_source_files): Likewise.
3815 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3816 (mi_cmd_env_cd): Likewise.
3817 (mi_cmd_env_path): Likewise.
3818 (mi_cmd_env_dir): Likewise.
3819 (mi_cmd_inferior_tty_show): Likewise.
3820 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3821 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3822 (mi_cmd_break_watch): Likewise.
3824 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3826 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3827 (ppc_linux_insert_hw_breakpoint): Likewise.
3828 (ppc_linux_remove_hw_breakpoint): Likewise.
3829 (ppc_linux_insert_watchpoint): Likewise.
3831 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3832 Jan Kratochvil <jan.kratochvil@redhat.com>
3834 PR fortran/11104 and DWARF unbound arrays detection.
3835 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3836 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3837 unspecified upper bound.
3838 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3839 variables array_size_array, tmp_type and offset_item. New variable
3840 array. Remove call to f77_get_upperbound. New variables array_type
3841 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3842 the final call to deprecated_set_value_type.
3844 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3846 Make value allocations more lazy.
3847 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3848 instead of allocate_value and set_value_lazy when possible.
3849 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
3850 instead of allocate_value and set_value_lazy.
3851 * findvar.c (value_of_register_lazy): Likewise.
3852 (read_var_value): Remove V preallocation, call just check_typedef in
3853 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
3854 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3855 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3856 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3857 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3858 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3859 the end, remove set_value_lazy there.
3860 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3861 instead of allocate_value and set_value_lazy when possible.
3862 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3863 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3864 of allocate_value and set_value_lazy.
3865 (value_from_contents_and_address): Use allocate_value_lazy instead of
3866 allocate_value and set_value_lazy when possible.
3868 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3870 * disasm.c (dump_insns): Support dumping opcodes for MI.
3871 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3872 dumping of instruction opcodes.
3874 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3876 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3879 2011-01-11 Tom Tromey <tromey@redhat.com>
3881 * thread.c (do_captured_thread_select): Emit newline before
3884 2011-01-11 Michael Snyder <msnyder@vmware.com>
3886 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3887 * score-tdep.c: Ditto.
3888 * score-tdep.h: Ditto.
3889 * ser-base.c: Ditto.
3890 * ser-go32.c: Ditto.
3893 * ser-mingw.c: Ditto.
3894 * ser-pipe.c: Ditto.
3896 * ser-unix.c: Ditto.
3897 * sh64-tdep.c: Ditto.
3898 * shnbsd-nat.c: Ditto.
3902 * solib-darwin.c: Ditto.
3903 * solib-frv.c: Ditto.
3905 * solib-irix.c: Ditto.
3906 * solib-osf.c: Ditto.
3907 * solib-pa64.c: Ditto.
3908 * solib-som.c: Ditto.
3909 * solib-spu.c: Ditto.
3910 * solib-sunos.c: Ditto.
3911 * solib-svr4.c: Ditto.
3913 * sol-thread.c: Ditto.
3917 * sparc64-linux-tdep.c: Ditto.
3918 * sparc64-tdep.c: Ditto.
3919 * sparc-linux-nat.c: Ditto.
3920 * sparc-linux-tdep.c: Ditto.
3921 * sparc-sol2-nat.c: Ditto.
3922 * sparc-sol2-tdep.c: Ditto.
3923 * sparc-tdep.c: Ditto.
3924 * sparc-tdep.h: Ditto.
3925 * spu-tdep.c: Ditto.
3926 * stabsread.c: Ditto.
3927 * stabsread.h: Ditto.
3935 * target-descriptions.c: Ditto.
3936 * target-descriptions.h: Ditto.
3938 * target-memory.c: Ditto.
3939 * terminal.h: Ditto.
3942 * tracepoint.c: Ditto.
3943 * tracepoint.h: Ditto.
3944 * trad-frame.h: Ditto.
3945 * typeprint.c: Ditto.
3947 2011-01-11 Michael Snyder <msnyder@vmware.com>
3949 * ui-file.c: Comment cleanup, mostly periods and spaces.
3954 * v850-tdep.c: Ditto.
3955 * valarith.c: Ditto.
3957 * valprint.c: Ditto.
3958 * valprint.h: Ditto.
3963 * vax-tdep.c: Ditto.
3967 * windows-nat.c: Ditto.
3968 * windows-tdep.c: Ditto.
3969 * xcoffread.c: Ditto.
3970 * xcoffsolib.c: Ditto.
3971 * xml-support.c: Ditto.
3972 * xstormy16-tdep.c: Ditto.
3973 * xtensa-tdep.c: Ditto.
3974 * xtensa-tdep.h: Ditto.
3976 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3978 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3979 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3981 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3982 Thiago Jung Bauermann <bauerman@br.ibm.com>
3984 Implement support for PowerPC BookE ranged watchpoints.
3986 (struct breakpoint_ops) <resources_needed>: New method.
3987 Initialize to NULL in all existing breakpoint_ops instances.
3988 (struct breakpoint) <exact>: New field.
3989 (target_exact_watchpoints): Declare external global.
3990 * breakpoint.c (target_exact_watchpoints): New global flag.
3991 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3992 b->enable_state to bp_enabled before calling
3993 hw_watchpoint_used_count.
3994 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3995 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3997 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3998 if the watchpoint is exact.
3999 (resources_needed_watchpoint): New function.
4000 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4001 (watch_command_1): Set b->exact if the user asked for an exact
4002 watchpoint and one can be set.
4003 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4004 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4005 the user asks for an exact watchpoint and one can be set. Return
4006 number of needed debug registers to watch the expression.
4007 * gdbtypes.c (is_scalar_type): New function, based on
4008 valprint.c:scalar_type_p.
4009 (is_scalar_type_recursive): New function.
4010 * gdbtypes.h (is_scalar_type_recursive): Declare.
4011 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4012 handle regions when ranged watchpoints are available.
4013 (create_watchpoint_request): New function.
4014 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4015 create_watchpoint_request.
4016 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4017 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4018 `set powerpc' and `show powerpc' commands.
4019 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4020 Mention documentation comment in the target macro.
4021 (target_region_ok_for_hw_watchpoint): Document return value.
4023 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4025 * breakpoint.c (update_watchpoint): Decide on using a software or
4026 hardware watchpoint after the bp_locations are created.
4028 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4030 Convert hardware watchpoints to use breakpoint_ops.
4031 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4032 <insert_location>: ... this. Return int instead of void.
4033 Accept pointer to struct bp_location instead of pointer to
4034 struct breakpoint. Adapt all implementations.
4035 (breakpoint_ops) <remove>: Rename to...
4036 <remove_location>: ... this. Accept pointer to struct bp_location
4037 instead of pointer to struct breakpoint. Adapt all implementations.
4038 * breakpoint.c (insert_catchpoint): Delete function.
4039 (insert_bp_location): Call the watchpoint or catchpoint's
4040 breakpoint_ops.insert method.
4041 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4042 breakpoint_ops.remove method.
4043 (insert_watchpoint, remove_watchpoint): New functions.
4044 (watchpoint_breakpoint_ops): New structure.
4045 (watch_command_1): Initialize the OPS field.
4046 * inf-child.c (inf_child_insert_fork_catchpoint)
4047 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4048 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4049 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4051 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4052 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4053 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4054 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4055 * target.c (update_current_target): Change default implementation of
4056 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4057 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4058 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4059 to_set_syscall_catchpoint to return_one.
4060 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4061 (debug_to_insert_exec_catchpoint): Report return value.
4062 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4063 (to_insert_exec_catchpoint): Change declaration to return int instead
4066 2011-01-11 Michael Snyder <msnyder@vmware.com>
4068 * arm-tdep.c: Internationalization.
4071 * fork-child.c: Ditto.
4072 * nto-procfs.c: Ditto.
4073 * ppc-sysv-tdep.c: Ditto.
4075 * remote-mips.c: Ditto.
4077 * rs6000-nat.c: Ditto.
4078 * rs6000-tdep.c: Ditto.
4082 * xml-support.c: Ditto.
4083 * mi/mi-cmd-break.c: Ditto.
4084 * mi/mi-cmd-var.c: Ditto.
4085 * mi/mi-interp.c: Ditto.
4086 * mi/mi-main.c: Ditto.
4088 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4090 * remote-sim.c (gdbsim_store_register): Update API to
4091 sim_store_register to check more error conditions.
4093 2011-01-10 Michael Snyder <msnyder@vmware.com>
4095 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4096 * nto-tdep.c: Ditto.
4097 * nto-tdep.h: Ditto.
4098 * objc-exp.y: Ditto.
4099 * objc-lang.c: Ditto.
4100 * objfiles.c: Ditto.
4101 * objfiles.h: Ditto.
4102 * observer.c: Ditto.
4103 * opencl-lang.c: Ditto.
4106 * parser-defs.h: Ditto.
4109 * posix-hdep.c: Ditto.
4110 * ppcbug-rom.c: Ditto.
4111 * ppc-linux-nat.c: Ditto.
4112 * ppc-linux-tdep.c: Ditto.
4113 * ppc-linux-tdep.h: Ditto.
4114 * ppcnbsd-tdep.c: Ditto.
4115 * ppcobsd-tdep.c: Ditto.
4116 * ppcobsd-tdep.h: Ditto.
4117 * ppc-sysv-tdep.c: Ditto.
4118 * ppc-tdep.h: Ditto.
4119 * printcmd.c: Ditto.
4120 * proc-abi.c: Ditto.
4121 * proc-flags.c: Ditto.
4123 * proc-utils.h: Ditto.
4124 * progspace.h: Ditto.
4125 * prologue-value.c: Ditto.
4126 * prologue-value.h: Ditto.
4127 * psympriv.h: Ditto.
4129 * p-typeprint.c: Ditto.
4130 * p-valprint.c: Ditto.
4131 * ravenscar-sparc-thread.c: Ditto.
4132 * ravenscar-thread.c: Ditto.
4133 * ravenscar-thread.h: Ditto.
4135 * regcache.c: Ditto.
4136 * regcache.h: Ditto.
4138 * remote-fileio.c: Ditto.
4139 * remote-fileio.h: Ditto.
4141 * remote-m32r-sdi.c: Ditto.
4142 * remote-mips.c: Ditto.
4143 * remote-sim.c: Ditto.
4144 * rs6000-aix-tdep.c: Ditto.
4145 * rs6000-nat.c: Ditto.
4146 * rs6000-tdep.c: Ditto.
4148 2011-01-10 Michael Snyder <msnyder@vmware.com>
4150 * charset.c (validate): Internationalization.
4151 * coffread.c (read_one_sym): Ditto.
4152 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4153 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4154 * inflow.c (new_tty): Ditto.
4155 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4156 * m32c-tdep.c (m32c_return_value): Ditto.
4157 * mep-tdep.c (mep_store_return_value): Ditto.
4158 * score-tdep.c (score7_fetch_insn): Ditto.
4159 * ser-mingw.c (pipe_windows_open): Ditto.
4160 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4161 * spu-tdep.c (spu_register_type): Ditto.
4162 * tracepoint.c (trace_find_command): Ditto.
4163 * valarith.c (value_pos): Ditto.
4165 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4167 * ada-valprint.c (printstr): Minor comment reformatting.
4169 2011-01-08 Michael Snyder <msnyder@vmware.com>
4171 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4174 2011-01-08 Michael Snyder <msnyder@vmware.com>
4176 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4177 * hppa-hpux-tdep.c: Ditto.
4178 * hppa-linux-nat.c: Ditto.
4179 * hppa-linux-tdep.c: Ditto.
4180 * hppanbsd-tdep.c: Ditto.
4181 * hppa-tdep.c: Ditto.
4182 * hppa-tdep.h: Ditto.
4183 * hpux-thread.c: Ditto.
4184 * i386-cygwin-tdep.c: Ditto.
4185 * i386-darwin-nat.c: Ditto.
4186 * i386gnu-nat.c: Ditto.
4187 * i386-linux-nat.c: Ditto.
4188 * i386-linux-tdep.c: Ditto.
4189 * i386-nat.c: Ditto.
4190 * i386-nat.h: Ditto.
4191 * i386nbsd-tdep.c: Ditto.
4192 * i386-sol2-nat.c: Ditto.
4193 * i386-stub.c: Ditto.
4194 * i386-tdep.c: Ditto.
4195 * i386-tdep.h: Ditto.
4196 * i387-tdep.c: Ditto.
4197 * ia64-linux-nat.c: Ditto.
4198 * ia64-linux-tdep.c: Ditto.
4199 * ia64-tdep.c: Ditto.
4203 * inferior.c: Ditto.
4204 * inferior.h: Ditto.
4210 * iq2000-tdep.c: Ditto.
4211 * irix5-nat.c: Ditto.
4217 * jv-typeprint.c: Ditto.
4218 * jv-valprint.c: Ditto.
4219 * language.c: Ditto.
4220 * language.h: Ditto.
4221 * linespec.c: Ditto.
4222 * linux-fork.c: Ditto.
4223 * linux-nat.c: Ditto.
4224 * linux-thread-db.c: Ditto.
4225 * lm32-tdep.c: Ditto.
4227 2011-01-08 Michael Snyder <msnyder@vmware.com>
4229 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4231 * m2-typeprint.c: Ditto.
4232 * m2-valprint.c: Ditto.
4233 * m32c-tdep.c: Ditto.
4234 * m32r-linux-nat.c: Ditto.
4235 * m32r-rom.c: Ditto.
4236 * m32r-tdep.c: Ditto.
4237 * m32r-tdep.h: Ditto.
4238 * m68hc11-tdep.c: Ditto.
4239 * m58klinux-nat.c: Ditto.
4240 * m68k-tdep.c: Ditto.
4241 * m88k-tdep.c: Ditto.
4242 * m88k-tdep.h: Ditto.
4243 * machoread.c: Ditto.
4244 * macrocmd.c: Ditto.
4245 * macroexp.c: Ditto.
4246 * macrotab.c: Ditto.
4249 * mdebugread.c: Ditto.
4250 * mdebugread.h: Ditto.
4253 * memory-map.h: Ditto.
4254 * mep-tdep.c: Ditto.
4255 * microblaze-rom.c: Ditto.
4256 * microblaze-tdep.c: Ditto.
4258 * mips-irix-tdep.c: Ditto.
4259 * mips-linux-nat.c: Ditto.
4260 * mips-linux-tdep.c: Ditto.
4261 * mips-linux-tdep.h: Ditto.
4262 * mipsnbsd-nat.c: Ditto.
4263 * mipsnbsd-tdep.c: Ditto.
4264 * mipsread.c: Ditto.
4265 * mips-tdep.c: Ditto.
4266 * mips-tdep.h: Ditto.
4267 * mn10300-linux-tdep.c: Ditto.
4268 * mn10300-tdep.c: Ditto.
4269 * mn10300-tdep.h: Ditto.
4272 * moxie-tdep.c: Ditto.
4273 * moxie-tdep.h: Ditto.
4276 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4278 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4280 2011-01-08 Robert Millan <rmh@gnu.org>
4282 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4284 2011-01-07 Michael Snyder <msnyder@vmware.com>
4286 * charset.c (_initialize_charset): Fix typo in string.
4288 2011-01-07 Michael Snyder <msnyder@vmware.com>
4290 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4292 * tui/tui-layout.c (tui_set_layout_for_display_command):
4293 Split line so that operator goes to beginning of line.
4294 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4295 assignment out of if statement.
4297 2011-01-07 Michael Snyder <msnyder@vmware.com>
4299 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4300 * ada-lang.h: Ditto.
4301 * ada-tasks.c: Ditto.
4302 * ada-valprint.c: Ditto.
4303 * aix-threads.c: Ditto.
4304 * alpha-linux-nat.c: Ditto.
4305 * alpha-linux-tdep.c: Ditto.
4306 * alpha-mdebug-tdep.c: Ditto.
4307 * alpha-nat.c: Ditto.
4308 * alpha-osf1-tdep.c: Ditto.
4309 * alpha-tdep.c: Ditto.
4310 * alphabsd-nat.c: Ditto.
4311 * alphabsd-tdep.c: Ditto.
4312 * amd64-darwin-tdep.c: Ditto.
4313 * amd64-linux-nat.c: Ditto.
4314 * amd64-linux-tdep.c: Ditto.
4315 * amd64-sol2-tdep.c: Ditto.
4316 * amd64-tdep.c: Ditto.
4317 * amd64-fbsd-tdep.c: Ditto.
4318 * amd64-nbsd-tdep.c: Ditto.
4319 * amd64-obsd-tdep.c: Ditto.
4320 * amd64-linux-nat.c: Ditto.
4321 * amd64-linux-tdep.c: Ditto.
4322 * arm-tdep.c: Ditto.
4323 * arm-tdep.h: Ditto.
4324 * armnbsd-nat.c: Ditto.
4325 * avr-tdep.c: Ditto.
4326 * bfin-tdep.c: Ditto.
4328 * c-typeprintc: Ditto.
4329 * c-valprint.c: Ditto.
4330 * coff-pe-read.h: Ditto.
4331 * coffreead.c: Ditto.
4332 * cris-tdep.c: Ditto.
4334 * darwin-nat-info.c: Ditto.
4335 * darwin-nat.c: Ditto.
4336 * dbug-rom.c: Ditto.
4340 * dec-thread.c: Ditto.
4342 * demangle.c: Ditto.
4343 * dicos-tdep.c: Ditto.
4344 * dictionary.c: Ditto.
4345 * dictionary.h: Ditto.
4346 * dink32-rom.c: Ditto.
4348 * doublest.c: Ditto.
4350 * dummy-frame.c: Ditto.
4351 * dwarf2-frame.c: Ditto.
4352 * dwarf2expr.c: Ditto.
4353 * dwarf2loc.c: Ditto.
4354 * dwarf2read.c: Ditto.
4358 * event-top.h: Ditto.
4359 * exceptions.c: Ditto.
4360 * exceptions.h: Ditto.
4362 * expprint.c: Ditto.
4363 * expression.h: Ditto.
4367 * f-typeprint.c: Ditto.
4368 * f-valprint.c: Ditto.
4369 * fbsd-nat.c: Ditto.
4371 * fork-child.c: Ditto.
4374 * frv-linux-tdep.c: Ditto.
4375 * frv-tdep.c: Ditto.
4377 * gdb-stabs.h: Ditto.
4378 * gdb_assert.h: Ditto.
4379 * gdb_string.h: Ditto.
4380 * gdb_thread_db.h: Ditto.
4381 * gdb_wait.h: Ditto.
4382 * gdbarch.sh: Ditto.
4384 * gdbthread.h: Ditto.
4385 * gdbtypes.c: Ditto.
4386 * gdbtypes.h: Ditto.
4389 * gnu-v2-abi.c: Ditto.
4390 * gnu-v3-abi.c: Ditto.
4391 * go32-nat.c: Ditto.
4392 * gdbarch.c: Regenerate.
4393 * gdbarch.h: Regenerate.
4395 2011-01-07 Michael Snyder <msnyder@vmware.com>
4397 * ax-gdb.c: Adjust some long output strings.
4398 * breakpoint.c: Ditto.
4403 * linux-nat.c: Ditto.
4404 * solib-pa64.c: Ditto.
4405 * solib-som.c: Ditto.
4407 2011-01-06 Tom Tromey <tromey@redhat.com>
4411 * python/python.c (GdbMethods): Add "newest_frame" method.
4412 * python/python-internal.h (gdbpy_newest_frame): Declare.
4413 * python/py-frame.c (gdbpy_newest_frame): New function.
4415 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4417 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4418 * jit.c (jit_debug): New variable.
4419 (show_jit_debug): New function.
4420 (struct target_buffer): Use ULONGEST.
4421 (bfd_open_from_target_memory): Likewise.
4422 (jit_register_code, jit_inferior_init): Add debug output.
4423 (_initialize_jit): Register "debug jit" command.
4425 2011-01-06 Tom Tromey <tromey@redhat.com>
4427 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4428 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4431 2011-01-06 Tom Tromey <tromey@redhat.com>
4433 * python/py-frame.c (frapy_block): Use get_frame_block.
4435 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4437 Do not stop on SIGPRIO signals by default
4438 * infrun.c (_initialize_infrun): Unset signal_stop and
4439 signal_print for TARGET_SIGNAL_PRIO.
4441 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4443 * ada-tasks.c: Fix style violation in comment.
4445 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4447 * linespec.c (decode_compound, find_method): Remove trailing \n
4448 at end of error string.
4449 * solib-irix.c (irix_current_sos): Likewise.
4450 * varobj.c (uninstall_variable): Likewise.
4452 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4454 * copyright.py: New script.
4455 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4456 Launch emacs without exec'ing. Call copyright.py afterwards.
4458 2011-01-05 Michael Snyder <msnyder@vmware.com>
4460 * addrmap.c: Shorten lines of >= 80 columns.
4461 * arch-utils.c: Ditto.
4462 * arch-utils.h: Ditto.
4464 * ax-general.c: Ditto.
4466 * blockframe.c: Ditto.
4467 * breakpoint.c: Ditto.
4468 * buildsym.c: Ditto.
4470 * c-typeprint.c: Ditto.
4472 * coffread.c: Ditto.
4476 * cp-namespace.c: Ditto.
4477 * cp-support.c: Ditto.
4478 * dbug-rom.c: Ditto.
4483 * dictionary.c: Ditto.
4485 * doublest.c: Ditto.
4486 * dwarf2-frame.c: Ditto.
4487 * dwarf2expr.c: Ditto.
4488 * dwarf2loc.c: Ditto.
4489 * dwarf2read.c: Ditto.
4492 * event-loop.c: Ditto.
4493 * event-loop.h: Ditto.
4494 * exceptions.h: Ditto.
4496 * expprint.c: Ditto.
4497 * expression.h: Ditto.
4499 * f-valprint.c: Ditto.
4501 * frame-base.c: Ditto.
4502 * frame-unwind.c: Ditto.
4503 * frame-unwind.h: Ditto.
4507 * gdb-stabs.h: Ditto.
4508 * gdb_assert.h: Ditto.
4509 * gdb_dirent.h: Ditto.
4510 * gdb_obstack.h: Ditto.
4512 * gdbtypes.c: Ditto.
4513 * gdbtypes.h: Ditto.
4514 * inf-ttrace.c: Ditto.
4519 * inline-frame.h: Ditto.
4520 * language.c: Ditto.
4521 * language.h: Ditto.
4522 * libunwind-frame.c: Ditto.
4523 * libunwind-frame.h: Ditto.
4524 * linespec.c: Ditto.
4525 * linux-nat.c: Ditto.
4526 * linux-nat.h: Ditto.
4527 * linux-thread-db.c: Ditto.
4528 * machoread.c: Ditto.
4529 * macroexp.c: Ditto.
4530 * macrotab.c: Ditto.
4533 * mdebugread.c: Ditto.
4538 * objfiles.c: Ditto.
4539 * objfiles.h: Ditto.
4541 * p-typeprint.c: Ditto.
4542 * p-valprint.c: Ditto.
4544 * printcmd.c: Ditto.
4545 * proc-events.c: Ditto.
4547 * progspace.c: Ditto.
4548 * progspace.h: Ditto.
4549 * psympriv.h: Ditto.
4552 * regcache.c: Ditto.
4553 * regcache.h: Ditto.
4554 * remote-fileio.c: Ditto.
4556 * ser-mingw.c: Ditto.
4558 * ser-unix.c: Ditto.
4561 * solib-frv.c: Ditto.
4562 * solib-irix.c: Ditto.
4563 * solib-osf.c: Ditto.
4564 * solib-pa64.c: Ditto.
4565 * solib-som.c: Ditto.
4566 * solib-sunos.c: Ditto.
4567 * solib-svr4.c: Ditto.
4568 * solib-target.c: Ditto.
4572 * stabsread.c: Ditto.
4573 * stabsread.c: Ditto.
4576 * symfile-mem.c: Ditto.
4582 * target-descriptions.c: Ditto.
4583 * target-memory.c: Ditto.
4586 * terminal.h: Ditto.
4589 * tracepoint.c: Ditto.
4590 * tracepoint.h: Ditto.
4594 * user-regs.c: Ditto.
4595 * user-regs.h: Ditto.
4597 * valarith.c: Ditto.
4599 * valprint.c: Ditto.
4600 * valprint.h: Ditto.
4605 * xcoffread.c: Ditto.
4606 * xcoffsolib.c: Ditto.
4607 * xcoffsolib.h: Ditto.
4608 * xml-syscall.c: Ditto.
4609 * xml-tdesc.c: Ditto.
4611 2011-01-05 Michael Snyder <msnyder@vmware.com>
4613 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4614 * cli/cli-decode.c: Ditto.
4615 * cli/cli-dump.c: Ditto.
4616 * cli/cli-logging.c: Ditto.
4617 * cli/cli-script.c: Ditto.
4618 * cli/cli-setshow.c: Ditto.
4619 * common/signals.c: Ditto.
4620 * mi/mi-cmd-break.c: Ditto.
4621 * mi/mi-cmd-disas.c: Ditto.
4622 * mi/mi-cmd-stack.c: Ditto.
4623 * mi/mi-cmd-var.c: Ditto.
4624 * mi/mi-cmds.c: Ditto.
4625 * mi/mi-common.h: Ditto.
4626 * mi/mi-console.c: Ditto.
4627 * mi/mi-interp.c: Ditto.
4628 * mi/mi-main.c: Ditto.
4629 * osf-share/cma_attr.c: Ditto.
4630 * osf-share/cma_deb_core.h: Ditto.
4631 * osf-share/cma_debug_client.h: Ditto.
4632 * osf-share/cma_handle.h: Ditto.
4633 * osf-share/cma_mutex.h: Ditto.
4634 * osf-share/cma_stack_int.h: Ditto.
4635 * osf-share/cma_tcb_defs.h: Ditto.
4636 * python/py-auto-load.c: Ditto.
4637 * python/py-breakpoint.c: Ditto.
4638 * python/py-cmd.c: Ditto.
4639 * python/py-frame.c: Ditto.
4640 * python/py-objfile.c: Ditto.
4641 * python/py-param.c: Ditto.
4642 * python/py-progspace.c: Ditto.
4643 * python/py-symbol.c: Ditto.
4644 * python/py-value.c: Ditto.
4645 * python/python-internal.h: Ditto.
4646 * python/python.c: Ditto.
4647 * tui/tui-data.c: Ditto.
4648 * tui/tui-disasm.c: Ditto.
4649 * tui/tui-hooks.c: Ditto.
4650 * tui/tui-io.c: Ditto.
4651 * tui/tui-layout.c: Ditto.
4652 * tui/tui-regs.c: Ditto.
4653 * tui/tui-source.c: Ditto.
4654 * tui/tui-stack.c: Ditto.
4655 * tui/tui-win.c: Ditto.
4656 * tui/tui-windata.c: Ditto.
4657 * tui/tui-winsource.c: Ditto.
4659 2011-01-05 Joel Brobecker <brobecker@adacore.com>
4661 * configure.ac, gdb.1: Copyright year update.
4663 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4665 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4666 this_pc_in_block, morestack_msym and morestack_name. Check for
4667 "__morestack" minimal symbol there.
4669 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4671 * symfile.c (find_sym_fns): Add call to dont_repeat.
4673 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4675 Copyright year update in most files (performed by copyright.sh).
4677 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4679 * top.c (print_gdb_version): Update copyright year in version output.
4681 For older changes see ChangeLog-2010.
4687 version-control: never