1 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix regression of displaying the debug format.
4 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7 2011-04-04 Tom Tromey <tromey@redhat.com>
9 * cli/cli-interp.c (struct captured_execute_command_args):
11 (do_captured_execute_command): Remove.
12 (safe_execute_command): Use TRY_CATCH.
13 * cli/cli-script.c (struct wrapped_read_command_file_args):
15 (wrapped_read_command_file): Remove.
16 (script_from_file): Use TRY_CATCH.
17 * exceptions.c (catch_exception): Remove.
18 * exceptions.h (catch_exception): Remove.
19 (deprecated_throw_reason): Update comment.
20 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
21 argument to 'context'.
22 (mi_execute_command): Use TRY_CATCH.
23 * remote.c (struct start_remote_args): Remove.
24 (remote_start_remote): Update; change arguments.
25 (remote_open_1): Use TRY_CATCH.
27 2011-04-04 Tom Tromey <tromey@redhat.com>
29 * tracepoint.c (scope_info): Update.
30 * symtab.c (decode_line_spec): Update.
31 * python/python.c (gdbpy_decode_line): Update.
32 * linespec.h (decode_line_1): Update.
33 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
34 (decode_compound, find_method, symtab_from_filename)
35 (decode_variable): Likewise.
36 * cli/cli-cmds.c (edit_command): Update.
37 (list_command): Update.
38 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
40 (create_breakpoint): Update.
41 (until_break_command): Update.
42 (addr_string_to_sals): Update.
43 (decode_line_spec_1): Update.
45 2011-04-04 Tom Tromey <tromey@redhat.com>
47 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
48 (do_captured_parse_breakpoint): Remove.
49 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
50 Use TRY_CATCH directly.
52 2011-04-04 Tom Tromey <tromey@redhat.com>
54 * symtab.h (free_symtab): Remove.
55 (forget_cached_source_info_for_objfile): Declare.
56 * symmisc.c (free_symtab): Remove.
57 * source.c (forget_cached_source_info_for_objfile): New function.
58 (forget_cached_source_info): Use it.
59 * objfiles.c (free_objfile): Simplify check before calling
60 clear_current_source_symtab_and_line. Call
61 forget_cached_source_info_for_objfile.
63 2011-04-04 Tom Tromey <tromey@redhat.com>
65 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
66 (new_symtab): Don't set `free_code' on symtab.
67 (new_linetable): Properly handle size==0.
68 * symtab.h (struct symtab) <free_code, free_func>: Remove.
69 * symmisc.c (free_symtab): Don't free the linetable. Don't call
71 * jv-lang.c (struct jv_per_objfile_data): New.
72 (jv_per_objfile_free): Free the data.
73 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
74 (get_java_class_symtab): Set the `dict' field on the
76 (free_class_block): Remove.
77 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
80 2011-04-04 Tom Tromey <tromey@redhat.com>
82 * symfile.c (reread_symbols): Update.
83 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
85 * objfiles.c (allocate_objfile): Update.
86 * cp-support.h (cp_check_possible_namespace_symbols): Don't
88 * cp-namespace.c (lookup_symbol_file): Don't call
89 lookup_possible_namespace_symbol.
90 (initialize_namespace_symtab, get_possible_namespace_block)
91 (free_namespace_block, cp_check_possible_namespace_symbols)
92 (check_possible_namespace_symbols_loop)
93 (check_one_possible_namespace_symbol)
94 (lookup_possible_namespace_symbol): Remove.
95 (maintenance_cplus_namespace): Replace with notice.
96 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
98 2011-04-04 Tom Tromey <tromey@redhat.com>
100 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
101 * symtab.h (struct symtab) <producer, debugformat>: Now const.
102 * symmisc.c (free_symtab): Don't free debugformat.
103 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
104 (record_debugformat, record_producer): Document.
105 * buildsym.c (end_symtab): Don't save debugformat and producer
107 (end_symtab): Don't free debugformat and producer fields.
108 (record_debugformat): Don't call xstrdup.
109 (record_producer): Likewise.
111 2011-04-04 Tom Tromey <tromey@redhat.com>
113 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
114 (source_line_charpos, source_charpos_line): Remove.
116 2011-04-04 Tom Tromey <tromey@redhat.com>
118 * symtab.h (domain_enum): Split in two...
119 (enum search_domain): New.
120 (search_symbols): Update.
121 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
122 redundant declarations.
123 (search_symbols): Change 'kind' argument to search_domain.
125 (print_symbol_info): Likewise.
126 (symtab_symbol_info): Likewise.
127 * symfile.h (struct quick_symbol_functions)
128 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
129 <expand_symtabs_matching>: Likewise.
130 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
131 (expand_symtabs_matching_via_partial): Update.
132 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
133 (dw2_expand_symtabs_for_function): Update.
134 * block.h: Moved anonymous enum...
135 * defs.h (enum block_enum): ... here. Now named.
137 2011-04-03 Joel Brobecker <brobecker@adacore.com>
139 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
140 * version.in: Bump version to 7.3.50.20110403-cvs.
142 2011-04-03 Joel Brobecker <brobecker@adacore.com>
144 * NEWS: Create a new section for the next release branch.
145 Rename the section of the current branch, now that it has
148 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
150 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
151 for "fpscr" in target description.
153 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
155 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
156 initialize it. Delay HASH initialization. Strip the part after open
157 parenthesis for languages with qualifiers. Call do_cleanups.
159 2011-04-01 Tom Tromey <tromey@redhat.com>
161 * utils.c (report_command_stats): Don't print `-' for negative
164 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
166 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
167 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
170 2011-04-01 Joel Brobecker <brobecker@adacore.com>
172 * breakpoint.h (bpdisp_text): Add declaration.
173 * breakpoint.c (bpdisp_text): Make non-static.
174 * ada-lang.c: #include "mi/mi-common.h".
175 (print_it_exception): Rewrite to improve GDB/MI output.
177 2011-04-01 Pedro Alves <pedro@codesourcery.com>
179 * arm-tdep.h (struct address_space): Add forward declaration.
181 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
183 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
184 * arm-tdep.c (arm_override_mode): New global.
185 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
186 execution mode heuristics.
187 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
188 second single-step breakpoint if needed, using
189 arm_insert_single_step_breakpoint.
190 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
191 ARM execution mode, do not call thumb_get_next_pc_raw.
192 (arm_get_next_pc): Encode execution mode in return value. Call
193 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
194 (arm_insert_single_step_breakpoint): New function.
195 (arm_software_single_step): Call it.
196 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
197 argument to return execution mode of sigreturn target.
198 (arm_linux_syscall_next_pc): Use it.
199 (arm_linux_copy_svc): Update call.
200 (arm_linux_software_single_step): Call
201 arm_insert_single_step_breakpoint.
203 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
208 2011-03-31 Tom Tromey <tromey@redhat.com>
210 * varobj.c (update_dynamic_varobj_children): Properly handle
211 errors from iterator.
213 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
216 struct linkage name twice.
218 2011-03-31 Tom Tromey <tromey@redhat.com>
220 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
221 missing ">" to message.
223 2011-03-31 Tom Tromey <tromey@redhat.com>
225 * varobj.c (instantiate_pretty_printer): Remove duplicate
228 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
230 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
231 if neither saved value nor register available (e.g. signal frame).
233 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
235 * macroexp.c (expand): Avoid uninitialized variable
238 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
240 * breakpoint.c (break_range_command): Fix typo in comment.
242 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
243 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
245 Implement support for PowerPC BookE ranged breakpoints.
246 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
247 * breakpoint.h (struct bp_target_info) <length>: New member
249 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
250 instead of struct breakpoint as argument, and also add ASPACE
251 and BP_ADDR arguments. Update all callers.
252 (struct breakpoint_ops) <print_one_detail>: New method.
253 (struct breakpoint) <addr_string_range_end>: New member variable.
254 * breakpoint.c (breakpoint_location_address_match): Add function
256 (insert_bp_location): Set bl->target_info.length.
257 (breakpoint_here_p): Call breakpoint_location_address_match.
258 (moribund_breakpoint_here_p): Likewise.
259 (regular_breakpoint_inserted_here_p): Likewise.
260 (breakpoint_thread_match): Likewise.
261 (bpstat_stop_status): Likewise.
262 (bpstat_check_location): Move call to
263 breakpoint_ops.breakpoint_hit to the top.
264 (print_one_breakpoint_location): Call
265 breakpoint_ops.print_one_detail if available.
266 (breakpoint_address_match_range): New function.
267 (breakpoint_location_address_match): Likewise.
268 (breakpoint_locations_match): Compare the length field of the
270 (hw_breakpoint_used_count): Count resources used by all locations
271 in a breakpoint, and use breakpoint_ops.resources_needed if
273 (breakpoint_hit_ranged_breakpoint): New function.
274 (resources_needed_ranged_breakpoint): Likewise.
275 (print_it_ranged_breakpoint): Likewise.
276 (print_one_ranged_breakpoint): Likewise.
277 (print_one_detail_ranged_breakpoint): Likewise.
278 (print_mention_ranged_breakpoint): Likewise.
279 (print_recreate_ranged_breakpoint): Likewise.
280 (ranged_breakpoint_ops): New structure.
281 (find_breakpoint_range_end): New function.
282 (break_range_command): Likewise.
283 (delete_breakpoint): Free addr_string_range_end.
284 (update_breakpoint_locations): Add SALS_END argument. Update
285 all callers. Calculate breakpoint length if a non-zero SALS_END
286 is given. Call breakpoint_locations_match instead of
287 breakpoint_address_match.
288 (reset_breakpoint): Find SaL of the end of the range if B is a
290 (_initialize_breakpoint): Register break-range command.
291 * defs.h (print_core_address): Add function prototype.
292 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
294 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
295 (ppc_linux_remove_hw_breakpoint): Likewise.
296 (_initialize_ppc_linux_nat): Initialize
297 to_ranged_break_num_registers.
298 * target.c (update_current_target): Add comment about
299 to_ranged_break_num_registers.
300 (target_ranged_break_num_registers): New function.
301 * target.h (struct target_ops) <to_ranged_break_num_registers>:
303 (target_ranged_break_num_registers): Add function prototype.
304 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
305 * utils.c (print_core_address): ... here.
307 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
309 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
310 variable compiler warning.
312 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
314 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
316 (re_set_breakpoint): ... to here ...
317 (addr_string_to_sals): ... and here.
319 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
321 * Makefile.in (SFILES): Add missing C sources.
322 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
325 2011-03-29 Mike Frysinger <vapier@gentoo.org>
327 * .gitignore: New file.
329 2011-03-29 Mike Frysinger <vapier@gentoo.org>
331 * NEWS: Mention new cfi device simulation.
333 2011-03-29 Tom Tromey <tromey@redhat.com>
335 * dwarf2read.c (fixup_partial_die): Handle linkage name on
336 otherwise anonymous types.
337 (dwarf2_name): Likewise.
338 * valops.c (value_struct_elt_for_reference): Refine artificial
339 type logic. Call error if j==-1.
341 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
343 Fix false GCC warning.
344 * infcall.c (find_function_addr): Initialize funaddr.
346 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
348 Fix mingw compilation with --enable-targets=all.
349 * remote-mips.c (gdb_usleep.h): Include header.
350 (mips_enter_debug): Use gdb_usleep instead of sleep.
352 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
354 Support resolution of STT_GNU_IFUNC via breakpoints.
355 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
356 bp_gnu_ifunc_resolver_return.
357 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
358 the loop. Support bp_gnu_ifunc_resolver and
359 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
360 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
362 (bptype_string, print_one_breakpoint_location): Support
363 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
364 (user_settable_breakpoint): Return true also for
365 bp_gnu_ifunc_resolver.
366 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
367 bp_gnu_ifunc_resolver_return.
368 (set_breakpoint_location_function): New parameter explicit_loc,
369 describe it. Call find_pc_partial_function_gnu_ifunc with new
370 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
371 EXPLICIT_LOC is not set.
372 (set_raw_breakpoint): Set EXPLICIT_LOC for
373 set_breakpoint_location_function.
374 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
375 set_breakpoint_location_function.
376 (mention): Support bp_gnu_ifunc_resolver and
377 bp_gnu_ifunc_resolver_return.
378 (add_location_to_breakpoint): Set EXPLICIT_LOC for
379 set_breakpoint_location_function.
380 (update_breakpoint_locations): Remove static.
381 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
382 bp_gnu_ifunc_resolver_return.
383 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
384 bp_gnu_ifunc_resolver_return.
385 (update_breakpoint_locations): New declaration.
386 * elfread.c: Include gdbthread.h and regcache.h.
387 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
389 (elf_gnu_ifunc_fns): Install them.
390 * minsyms.c (stub_gnu_ifunc_resolver_stop)
391 (stub_gnu_ifunc_resolver_return_stop): New functions.
392 (stub_gnu_ifunc_fns): Install them.
393 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
394 and gnu_ifunc_resolver_return_stop.
395 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
397 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
399 STT_GNU_IFUNC reader implementation.
400 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
401 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
402 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
403 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
404 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
405 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
406 (elf_gnu_ifunc_resolve_addr): New.
407 (elf_symfile_read): Call elf_rel_plt_read.
408 (elf_gnu_ifunc_fns): New.
409 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
410 Install elf_gnu_ifunc_fns.
411 * infcall.c (find_function_return_type): New function.
412 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
413 * minsyms.c (stub_gnu_ifunc_resolve_addr)
414 (stub_gnu_ifunc_resolve_name): New functions.
415 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
416 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
417 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
419 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
421 Code cleanup for later STT_GNU_IFUNC support.
422 * infcall.c (find_function_addr): Remove variable code, use explicit
423 dereferences for it. Move VALUE_TYPE initialization later.
425 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
427 GDB find_pc_partial_function support for STT_GNU_IFUNC.
428 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
429 (clear_pc_function_cache): Clear it.
430 (find_pc_partial_function): Rename to ...
431 (find_pc_partial_function_gnu_ifunc): ... this function. New
432 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
433 (find_pc_partial_function): New wrapper for this function.
434 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
436 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
438 GDB internal type support for STT_GNU_IFUNC.
439 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
440 (elf_symtab_read): Set mst_text_gnu_ifunc for
441 BSF_GNU_INDIRECT_FUNCTION.
442 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
443 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
444 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
445 nodebug_got_plt_symbol.
446 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
447 (TYPE_GNU_IFUNC): New.
448 (struct main_type): New field flag_gnu_ifunc.
449 (struct builtin_type): New field builtin_func_func.
450 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
451 nodebug_got_plt_symbol.
452 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
453 (in_gnu_ifunc_stub): New.
454 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
456 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
457 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
458 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
460 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
461 * symtab.c (search_symbols): Likewise.
462 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
463 and mst_slot_got_plt.
464 (in_gnu_ifunc_stub): New declaration.
466 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
468 Support a ring of related breakpoints.
469 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
470 other functions, add gdb_assert.
471 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
472 watchpoint_del_at_next_stop.
473 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
474 (bpstat_stop_status): Handle ring in related_breakpoint.
475 (set_raw_breakpoint_without_location): Initialize ring in
477 (delete_breakpoint): Handle ring in related_breakpoint, use
478 watchpoint_del_at_next_stop.
479 (map_breakpoint_numbers): Handle ring in related_breakpoint.
481 2011-03-28 Tom Tromey <tromey@redhat.com>
484 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
485 with `language_minimal'.
487 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
489 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
490 instead of checking for STT_ARM_TFUNC symbol type.
492 2011-03-25 Tom Tromey <tromey@redhat.com>
494 * linespec.c (symbol_found): Restore line-based result for
495 non-LOC_LABEL symbols.
497 2011-03-25 Kai Tietz <ktietz@redhat.com>
499 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
500 instead of strcmp for comparison.
501 (tui_source_is_displayed): Likewise.
502 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
504 2011-03-24 Mark Wielaard <mjw@redhat.com>
506 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
508 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
509 (find_partial_die_in_comp_unit): Likewise in comment.
510 (read_attribute_value): Likewise.
511 (lookup_die_type): Likewise.
512 (dwarf_form_name): Likewise.
513 (dump_die_shallow): Likewise.
514 (follow_die_ref_or_sig): Likewise.
516 2011-03-24 Tom Tromey <tromey@redhat.com>
518 PR breakpoints/11816:
519 * linespec.c (decode_line_1): Parse `function:label' linespecs.
520 (decode_compound): Update.
521 (find_function_symbol): New function.
522 (decode_dollar): Update.
523 (decode_label): Add 'function_symbol' parameter. Handle
524 function-relative labels.
525 (decode_variable): Update.
526 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
527 not its line. Set `special_display' and canonical name for
530 2011-03-24 Tom Tromey <tromey@redhat.com>
532 * linespec.h (struct linespec_result) <special_display>: New
534 * breakpoint.h (struct breakpoint) <display_canonical>: New
536 * breakpoint.c (print_breakpoint_location): Respect
538 (create_breakpoint_sal): Add 'display_canonical' parameter.
539 (create_breakpoints_sal): Update.
540 (create_breakpoint): Update.
542 2011-03-24 Tom Tromey <tromey@redhat.com>
544 * symtab.c (decode_line_spec): Update.
545 * linespec.c (build_canonical_line_spec): Change type of
547 (decode_line_2, decode_line_1, decode_objc, decode_compound)
548 (find_method, decode_all_digits, decode_dollar, decode_label)
549 (symbol_found): Likewise.
550 (init_linespec_result): New function.
551 * breakpoint.c (struct captured_parse_breakpoint_args)
552 <canonical_p>: New field, replaces addr_string_p.
553 (create_breakpoints_sal): Add 'canonical' parameter, replacing
555 (parse_breakpoint_sals): Likewise.
556 (do_captured_parse_breakpoint): Update.
557 (create_breakpoint): Use struct linespec_result.
558 (until_break_command): Update.
559 (breakpoint_re_set_one): Update.
560 (decode_line_spec_1): Update.
561 * linespec.h (struct linespec_result): New.
562 (init_linespec_result): Declare.
564 2011-03-23 Pedro Alves <pedro@codesourcery.com>
566 * regcache.c (regcache_raw_read): If the target didn't supply a
567 given raw register, mark it as unavailable.
569 2011-03-23 Kai Tietz <ktietz@redhat.com>
571 * breakpoint.c (clear_command): Use filename_cmp
572 instead of strcmp for comparison.
573 * buildsym.c (watch_main_source_file_lossage): Likewise.
574 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
575 checking just for slash.
576 * dbxread.c (read_dbx_symtab): Use lbasename instead of
577 strrchr and filename_cmp instead of strcmp for filenames.
578 (add_old_header_file): Use filename_cmp
579 instead of strcmp for comparison.
580 * exec.c (exec_set_section_address): Likewise.
581 * macrotab.c (macro_lookup_inclusion): Likewise.
582 (macro_lookup_inclusion): Likewise.
583 * elfread.c (_initialize_elfread): Likewise.
584 (elfstab_offset_sections): Likewise.
585 (elfstab_offset_sections): Use lbasename instead of
587 * mdebugread.c (parse_partial_symbols): Likewise.
588 (arse_partial_symbols): Use filename_(n)cmp instead of
589 str(n)cmp for comparison.
590 * minsyms.c (lookup_minimal_symbol): Likewise.
591 * psymtab.c (read_psymtabs_with_filename): Likewise.
592 * solib.c (solib_read_symbols): Likewise.
593 (reload_shared_libraries_1): Likewise.
594 * symmisc.c (maintenance_print_symbols): Likewise.
595 * symfile.c (separate_debug_file_exists): Likewise.
596 (reread_symbols): Likewise.
597 (find_separate_debug_file_by_debuglink): Likewise.
598 * remote-fileio.c (remote_fileio_func_rename): Likewise.
599 * source.c (add_path): Likewise.
600 * symtab.c (filename_seen): Likewise.
601 (file_matches): Likewise.
602 (print_symbol_info): Likewise.
603 (maybe_add_partial_symtab_filename): Likewise.
604 (make_source_files_completion_list): Likewise.
605 * xml-syscall.c (init_sysinfo): Likewise.
606 * windows-nat.c (_initialize_check_for_gdb_ini): Use
607 IS_DIR_SEPARATOR for checking for trailing path separator.
609 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
611 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
612 label abort_expression.
613 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
614 DWARF_VALUE_OPTIMIZED_OUT.
616 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
619 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
620 to linkage_name. Invert its value. Update the function comment.
621 (c_type_print_varspec_suffix): Invert it at the caller.
622 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
624 2011-03-22 Pedro Alves <pedro@codesourcery.com>
626 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
627 errors when reading the `stop_pc'.
628 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
631 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
633 * NEWS: Document gdb.Write stream keyword.
635 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
638 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
639 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
640 (dwarf2_add_field): Fix new_field->accessibility for
641 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
643 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
647 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
648 other error classes. Do not print stack trace.
650 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
652 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
653 (dwarf2_add_field): Fix new_field->accessibility for
654 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
656 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
658 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
659 encountering a load via a non-SP register.
661 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
663 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
664 field in returned unwinder.
666 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
668 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
670 2012-03-21 Joel Brobecker <brobecker@adacore.com>
672 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
675 2012-03-18 Pedro Alves <pedro@codesourcery.com>
677 * frame.c (frame_unwind_register): Throw an error if unwinding the
679 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
680 an unwind stop reason.
681 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
682 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
683 UNWIND_UNAVAILABLE>: New.
684 * inline-frame.c (inline_frame_unwind): Install
685 default_frame_unwind_stop_reason.
686 * frame-unwind.c: Include "exceptions.h".
687 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
688 (default_frame_unwind_stop_reason): New.
689 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
690 (default_frame_unwind_stop_reason): Declare.
691 (struct frame_unwind) <stop_reason>: New function pointer.
693 * dummy-frame.c: Install default_frame_unwind_stop_reason.
694 * dwarf2-frame.c: Include exceptions.h.
695 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
696 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
697 computing the CFA. If such an error was thrown, set
699 (dwarf2_frame_unwind_stop_reason): New.
700 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
702 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
703 (dwarf2_signal_frame_unwind): Ditto.
705 * amd64-tdep.c: Include "exceptions.h".
706 (struct amd64_frame_cache): New field "base_p".
707 (amd64_init_frame_cache): Clear it.
708 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
709 Avoid reading registers with functions that throw if the register
710 is not necessary to compute the frame base.
711 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
712 swallowing NOT_AVAILABLE_ERROR.
713 (amd64_frame_unwind_stop_reason): New.
714 (amd64_frame_this_id): Don't build a frame id if the frame base
716 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
717 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
718 base_p if the frame base was computable.
719 (amd64_sigtramp_frame_unwind_stop_reason): New.
720 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
721 frame base was unavailable.
722 (amd64_sigtramp_frame_unwind): Install
723 amd64_sigtramp_frame_unwind_stop_reason.
724 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
725 base_p if the frame base was computable.
726 (amd64_epilogue_frame_unwind_stop_reason): New.
727 (amd64_epilogue_frame_this_id): Don't build a frame id if the
728 frame base was unavailable.
729 (amd64_epilogue_frame_unwind): Install
730 amd64_epilogue_frame_unwind_stop_reason.
731 * i386-tdep.c: Include "exceptions.h".
732 (struct i386_frame_cache): New field "base_p".
733 (i386_init_frame_cache): Clear it.
734 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
735 Avoid reading registers with functions that throw if the register
736 is not necessary to compute the frame base.
737 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
738 swallowing NOT_AVAILABLE_ERROR.
739 (i386_frame_unwind_stop_reason): New.
740 (i386_frame_this_id): Don't build a frame id if the frame base was
742 (i386_frame_prev_register): Handle unavailable SP.
743 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
744 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
745 base_p if the frame base was computable.
746 (i386_epilogue_frame_unwind_stop_reason): New.
747 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
748 base was unavailable.
749 (i386_epilogue_frame_unwind): Install
750 i386_epilogue_frame_unwind_stop_reason.
751 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
752 base_p if the frame base was computable.
753 (i386_sigtramp_frame_unwind_stop_reason): New.
754 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
755 base was unavailable.
756 (i386_sigtramp_frame_unwind): Install
757 i386_sigtramp_frame_unwind_stop_reason.
758 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
759 type's size, not the register's.
760 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
762 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
763 default_frame_unwind_stop_reason.
764 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
765 (alpha_heuristic_frame_unwind): Ditto.
766 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
767 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
768 * avr-tdep.c (avr_frame_unwind): Ditto.
769 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
771 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
772 * frv-tdep.c (frv_frame_unwind): Ditto.
773 * h8300-tdep.c (h8300_frame_unwind): Ditto.
774 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
775 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
776 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
777 (hppa_stub_frame_unwind): Ditto.
778 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
779 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
780 (ia64_libunwind_frame_unwind)
781 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
782 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
783 * lm32-tdep.c (lm32_frame_unwind): Ditto.
784 * m32c-tdep.c (m32c_unwind): Ditto.
785 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
786 * m32r-tdep.c (m32r_frame_unwind): Ditto.
787 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
788 * m68k-tdep.c (m68k_frame_unwind): Ditto.
789 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
790 * m88k-tdep.c (m88k_frame_unwind): Ditto.
791 * mep-tdep.c (mep_frame_unwind): Ditto.
792 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
793 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
794 (mips_stub_frame_unwind): Ditto.
795 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
796 * moxie-tdep.c (moxie_frame_unwind): Ditto.
797 * mt-tdep.c (mt_frame_unwind): Ditto.
798 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
799 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
800 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
801 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
802 (s390_sigtramp_frame_unwind): Ditto.
803 * score-tdep.c (score_prologue_unwind): Ditto.
804 * sh-tdep.c (sh_frame_unwind): Ditto.
805 * sh64-tdep.c (sh64_frame_unwind): Ditto.
806 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
807 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
808 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
809 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
810 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
811 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
812 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
813 (sparc64obsd_trapframe_unwind): Ditto.
814 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
815 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
816 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
817 * v850-tdep.c (v850_frame_unwind): Ditto.
818 * vax-tdep.c (vax_frame_unwind): Ditto.
819 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
820 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
821 * xtensa-tdep.c (xtensa_unwind): Ditto.
823 2011-03-18 Pedro Alves <pedro@codesourcery.com>
825 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
826 there's always a frame. Use get_frame_pc_if_available instead of
827 get_frame_pc, and if there's no PC available, don't look up a
830 2011-03-18 Pedro Alves <pedro@codesourcery.com>
832 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
835 2011-03-18 Pedro Alves <pedro@codesourcery.com>
837 * tracepoint.c (set_traceframe_context): Handle unavailable PC
840 2011-03-18 Pedro Alves <pedro@codesourcery.com>
842 * frame.h (frame_unwind_caller_pc_if_available): Declare.
843 * frame.c (frame_unwind_caller_pc_if_available): New.
844 * stack.c (frame_info): Handle unavailable PC.
846 2011-03-18 Pedro Alves <pedro@codesourcery.com>
848 * frame.c (frame_unwind_pc): Rename to ...
849 (frame_unwind_pc_if_available): ... this. New `pc' output
850 parameter. Change return type to int. Gracefully handle
851 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
852 happened, or 1 otherwise.
853 (frame_unwind_pc): Reimplement on top of
854 frame_unwind_pc_if_available.
855 (get_frame_func): Rename to ...
856 (get_frame_func_if_available): New `pc' output parameter. Change
857 return type to int. Gracefully handle the PC not being available.
858 (get_frame_func): Reimplement on top of
859 get_frame_func_if_available.
860 (select_frame): Handle the PC being unavailable.
861 (get_prev_frame): Handle the PC being unavailable.
862 (get_frame_pc_if_available): New.
863 (get_frame_address_in_block_if_available): New.
864 (find_frame_sal): Handle the frame PC not being available.
865 * frame.h (get_frame_pc_if_available): Declare.
866 (get_frame_address_in_block_if_available): Declare.
867 (get_frame_func_if_available): Declare.
868 * stack.c (print_frame_info): Handle the PC being unavailable.
869 (find_frame_funname): Ditto.
870 (print_frame): Handle the PC being unavailable.
871 (get_frame_language): Ditto.
872 * blockframe.c (get_frame_block): Ditto.
873 * macroscope.c (default_macro_scope): Ditto.
874 * tui/tui-stack.c (tui_show_frame_info): Ditto.
876 2011-03-18 Pedro Alves <pedro@codesourcery.com>
878 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
879 NOT_AVAILABLE_ERROR when evaluating the location expression.
881 2011-03-18 Pedro Alves <pedro@codesourcery.com>
883 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
884 returning that the register piece is unavailable/optimized out.
885 (write_pieced_value): Handle get_frame_register_bytes returning
886 that the register piece is unavailable/optimized out when doing a
887 read-modify write of a bitfield.
888 * findvar.c (value_from_register): Handle get_frame_register_bytes
889 returning that the register piece is unavailable/optimized out.
890 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
891 and `unavailablep'. Throw error on bad debug info. Use
892 frame_register instead of frame_register_read, to fill in the new
894 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
896 * valops.c: (value_assign): Adjust, and handle
897 get_frame_register_bytes failing.
898 * spu-tdep.c: Include exceptions.h.
899 (spu_software_single_step): Adjust, and handle
900 get_frame_register_bytes failing.
901 (spu_get_longjmp_target): Ditto.
902 * gdbarch.sh (register_to_value): Change to return int. New
903 parameters `optimizedp' and `unavailablep'.
904 * gdbarch.h, gdbarch.c: Regenerate.
905 * i386-tdep.c (i386_register_to_value): Adjust to new
906 gdbarch_register_to_value interface.
907 * i387-tdep.c (i387_register_to_value): Ditto.
908 * i387-tdep.h (i387_register_to_value): Ditto.
909 * alpha-tdep.c (alpha_register_to_value): Ditto.
910 * ia64-tdep.c (ia64_register_to_value): Ditto.
911 * m68k-tdep.c (m68k_register_to_value): Ditto.
912 * mips-tdep.c (mips_register_to_value): Ditto.
913 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
915 2011-03-18 Pedro Alves <pedro@codesourcery.com>
917 * findvar.c (value_of_register): Mark the value as unavailable, if
918 the register is unavailable.
919 * frame.h (frame_register_unwind): New `unavailablep' parameter.
920 (frame_register): New `unavailablep' parameter.
921 (frame_register_read): Update comment.
922 * frame.c (frame_register_unwind): New `unavailablep' parameter.
923 Set it if the register is unavailable. If the register is
924 unavailable, clear the output buffer.
925 (frame_register): New `unavailablep' parameter. Pass it down.
926 (frame_unwind_register): Adjust.
927 (put_frame_register): Adjust.
928 (frame_register_read): Adjust. Also return false if the register
930 (frame_register_unwind_location): Adjust.
931 * sentinel-frame.c (sentinel_frame_prev_register): If the register
932 is unavailable, mark the value accordingly.
933 * stack.c (frame_info): Handle unavailable registers.
935 2011-03-18 Pedro Alves <pedro@codesourcery.com>
937 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
938 simplify, using regcache_cooked_read.
940 2011-03-18 Pedro Alves <pedro@codesourcery.com>
942 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
943 (regcache_raw_read_unsigned, regcache_raw_read_signed)
944 (regcache_raw_read_unsigned, regcache_raw_read_part)
945 (regcache_cooked_read, regcache_cooked_read_signed)
946 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
947 (regcache_cooked_read_ftype): Change return to enum
949 * regcache.c: Include exceptions.h
950 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
951 (do_cooked_read): Change return to enum register_status. Always
952 forward to regcache_cooked_read.
953 (regcache_raw_read): Change return to enum register_status. If
954 the register is not REG_VALID, memset the buffer. Return the
956 (regcache_raw_read_signed): Handle non-REG_VALID registers and
957 return the register's status.
958 (regcache_raw_read_unsigned): Ditto.
959 (regcache_cooked_read): Change return to enum register_status.
960 Assert that with read-only regcaches, the register's status must
961 be known. If the regcache is read-only, and the register is not
962 REG_VALID, memset the buffer. Return the register's status.
963 (regcache_cooked_read_signed): Change return to enum
964 register_status. Handle non-REG_VALID registers and return the
966 (regcache_cooked_read_unsigned): Change return to enum
967 register_status. Handle non-REG_VALID registers and return the
969 (regcache_xfer_part, regcache_raw_read_part)
970 (regcache_cooked_read_part): Change return to enum
971 register_status. Return the register's status.
972 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
974 (regcache_dump): Handle unavailable cooked registers.
975 * frame.c (do_frame_register_read): Adjust interface to match
976 regcache_cooked_read_ftype.
977 * gdbarch.sh (pseudo_register_read): Change return to enum
979 * gdbarch.h, gdbarch.c: Regenerate.
981 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
983 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
984 register_status. If reading a raw register indicates the raw
985 register is not valid, return the raw register's status,
986 otherwise, return REG_VALID.
987 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
988 register_status. Handle non-REG_VALID raw registers and return
989 the register's status.
990 * arm-tdep.c (arm_neon_quad_read)
991 (arm_pseudo_read): Change return to enum register_status. Handle
992 non-REG_VALID raw registers and return the register's status.
993 * avr-tdep.c (avr_pseudo_register_read): Ditto.
994 * frv-tdep.c (frv_pseudo_register_read): Ditto.
995 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
996 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
997 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
999 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1000 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1001 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1002 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1003 (m32c_pseudo_register_read): Change return to enum
1004 register_status. Adjust.
1005 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1006 enum register_status. Return the register's status.
1007 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1008 register_status. Return the register's status.
1009 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1010 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1011 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1012 * rs6000-tdep.c (move_ev_register_func): New typedef.
1013 (e500_move_ev_register): Use it. Change return to enum
1014 register_status. Return the register's status.
1015 (do_regcache_raw_read): New function.
1016 (do_regcache_raw_write): New function.
1017 (e500_pseudo_register_read): Change return to enum
1018 register_status. Return the register's status. Use
1019 do_regcache_raw_read.
1020 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1021 (dfp_pseudo_register_read): Change return to enum register_status.
1022 Return the register's status.
1023 (vsx_pseudo_register_read): Ditto.
1024 (efpr_pseudo_register_read): Ditto.
1025 (rs6000_pseudo_register_read): Ditto.
1026 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1027 register_status. Return the register's status.
1028 * sh64-tdep.c (pseudo_register_read_portions): New function.
1029 (sh64_pseudo_register_read): Change return to enum
1030 register_status. Use pseudo_register_read_portions. Return the
1032 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1033 register_status. Return the register's status.
1034 * sh-tdep.c (pseudo_register_read_portions): New function.
1035 (sh_pseudo_register_read): Change return to enum register_status.
1036 Use pseudo_register_read_portions. Return the register's status.
1037 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1038 enum register_status. Return the register's status.
1039 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1040 * spu-tdep.c (spu_pseudo_register_read_spu)
1041 (spu_pseudo_register_read): Ditto.
1042 * xtensa-tdep.c (xtensa_register_read_masked)
1043 (xtensa_pseudo_register_read): Ditto.
1044 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1046 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1048 * python/py-value.c (valpy_getitem): Fix formatting of error function
1051 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1053 ARI fixes: Add missing internationalization markups throughout
1055 * darwin-nat-info.c: Ditto.
1058 * mi/mi-main.c: Ditto.
1060 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1062 ARI fixes: Add missing internationalization markups throughout
1065 * cp-name-parser.y: Ditto.
1068 * objc-exp.y: Ditto.
1071 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1073 ARI fixes: Messages should have no trailing new lines.
1074 * darwin-nat.c (mach_check_error): Remove trailing new line from
1075 warning function call message.
1076 * record.c (bfdcore_read): Idem for error call.
1078 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1080 * common/signals.c (target_signal_from_host): Add _ markup to error
1081 function call message.
1082 (target_signal_to_host): Add _ markup and remove trailing new line
1083 from warning call message.
1084 (target_signal_from_command): Add _ markup to error function call
1087 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1091 * python/python.c (gdbpy_write): Accept a stream argument and
1092 operate to the appropriate stream.
1093 (gdbpy_flush): Likewise.
1094 (_initialize_python): Add stream constants.
1095 (finish_python_initialization): Add GdbOutputErrorFile class.
1097 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1099 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1101 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1103 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1104 to store_signed_integer. Add debug message when relocating CALL
1105 instructions. Fix formatting of debug message.
1106 * i386-tdep.c (i386_relocate_instruction): Ditto.
1108 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1110 * target.h (struct target_ops): Remove to_lookup_symbol field.
1111 (target_lookup_symbol): Delete macro.
1112 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1113 (update_current_target, setup_target_debug): Remove handling
1114 of to_lookup_symbol target_ops field.
1115 * ada-tasks.c (get_known_tasks_addr): Remove use of
1116 target_lookup_symbol.
1117 * coffread.c (coff_symtab_read): Likewise.
1118 * dbxread.c (read_dbx_symtab): Ditto.
1120 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1123 * configure.ac: Add getthrds declaration check.
1124 * configure, config.in: Regenerate.
1125 * aix-thread.c (getthrds): Declare only if not already declared
1126 in procinfo.h. More declaration out of get_signaled_thread to
1129 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1131 * python/py-symtab.c: Populate symtab_object_methods,
1133 (stpy_is_valid): New function.
1134 (salpy_is_valid): Ditto.
1135 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1136 (sympy_is_valid): New function.
1137 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1138 (objfpy_is_valid): New function.
1139 * python/py-inferior.c: Populate inferior_object_methods.
1140 (infpy_is_valid): New function.
1141 * python/py-infthread.c: Populate thread_object_methods.
1142 (thpy_is_valid): New function.
1143 * python/py-block.c: Declare block_object_methods. Populate. Declare
1144 block_iterator_object_methods. Populate.
1145 (blpy_is_valid): New function.
1146 (blpy_iter_is_valid): Ditto.
1148 2011-03-16 Keith Seitz <keiths@redhat.com>
1150 * linespec.c (find_methods): Canonicalize NAME before looking
1152 (name_end): New function.
1153 (keep_name_info): New function.
1154 (decode_line_1): Use keep_name_info.
1155 (decode_compound): Likewise.
1156 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1157 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1160 * linespec.c (locate_first_half): Keep overload information, too.
1161 (decode_compound): Use a string to represent break characters
1163 If P points to a break character, do not increment it.
1164 For C++ and Java, keep overload information and relevant keywords.
1165 If we cannot find a symbol, search the minimal symbols.
1168 * linespec.c (decode_compound): Rename SAVED_ARG to
1170 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1172 Pass a valid block to lookup_symbol.
1173 (lookup_prefix_sym): Likewise.
1174 (find_method): Construct search name based on SYM_CLASS instead
1176 * psymtab.c (lookup_partial_symbol): Add language parameter.
1177 (lookup_symbol_aux_psymtabs): Likewise.
1178 Don't assume that the psymtab we found was the right one. Search
1179 for the desired symbol in the symtab to be certain.
1180 (psymtab_search_name): New function.
1181 (lookup_partial_symbol): Use psymtab_search_name.
1182 Add language parameter.
1183 (read_symtabs_for_function): Add language parameter and pass to
1184 lookup_partial_symbol.
1185 (find_symbol_file_from_partial): Likewise.
1187 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1190 * dwarf2read.c (noop_record_line): New function.
1191 (dwarf_decode_lines): Ignore line tables for GCd functions.
1193 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1195 Fix ARI warnings about new lines at the end of messages, which
1196 are unneeded as there is a new line added at the end of the message
1198 * darwin-nat.c (darwin_stop_inferior): Ditto.
1199 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1200 * dfp.c (decimal_to_number): Ditto.
1201 * exec.c (print_section_info): Ditto.
1202 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1203 * osdata.c (get_osdata): Ditto.
1204 * record.c (bfdcore_write): Ditto.
1205 * remote-mips.c (mips_readchar): Ditto.
1206 * remote.c (read_ptid): Ditto.
1207 * ser-mingw.c (ser_windows_raw): Ditto.
1208 * tracepoint.c (add_local_symbols): Ditto.
1209 * windows-nat.c (fake_create_process): Ditto.
1211 2011-03-16 Tom Tromey <tromey@redhat.com>
1213 * tracepoint.c (stop_tracing): Don't declare.
1214 * event-top.c (after_char_processing_hook): Add `(void)'.
1216 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1218 * NEWS: Add Parameter sub-classing description.
1220 2011-03-16 Kai Tietz <ktietz@redhat.com>
1222 * MAINTAINERS: Update my e-mail address.
1224 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1226 * MAINTAINERS: Add myself for write after approval privileges.
1228 2011-03-15 Michael Snyder <msnyder@vmware.com>
1230 * frame.c (find_frame_sal): Assert sym is not null.
1232 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1234 * objc-lang.c (selectors_info): Check strchr for null result.
1236 * stabsread.c (define_symbol): Guard against bad stabstring input.
1238 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1240 Remove trailing spaces and tabulations from pascal language
1245 p-valprint.c: Ditto.
1247 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1249 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1250 than LOW. Comment it.
1251 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1252 HIGHPC not strictly higher than LOWPC.
1254 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1256 Fix formatting of function declarations returning a pointer in
1258 * varobj.c (varobj_add_child): Ditto.
1259 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1260 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1262 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1264 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1265 for the "generic" vector ABI used with GCC 4.3 and later.
1266 (ppc64_sysv_abi_return_value): Likewise.
1268 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1270 * infcall.c (call_function_by_hand): Function return value is
1271 always a non_lval, even when using struct_return.
1273 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1275 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1276 (map_display_numbers): New.
1277 (do_delete_display): New.
1278 (undisplay_command): Use map_display_numbers.
1279 (do_enable_disable_display): New.
1280 (enable_disable_display_command): New function.
1281 (enable_display): Delete.
1282 (enable_display_command): New.
1283 (disable_display_command): Reimplement.
1284 (_initialize_printcmd): Adjust "enable display" command to use
1285 `enable_display_command' as callback.
1287 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1289 * NEWS: Add Python breakpoint 'stop' operation.
1291 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1293 * NEWS: Delete duplicate entry. Fix typo.
1295 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1297 Fix ARI warning about function names in first column.
1298 Put prototype declaration on same line as return type.
1299 * objc-exp.y: Ditto.
1301 * python/py-stopevent.h: Ditto.
1302 For long function names, split parameters to
1303 allow function name on same line as return type.
1304 * solib-pa64.c: Ditto.
1307 For long function declaration, use single line.
1308 * hppa-tdep.h: Ditto.
1309 * inferior.h: Ditto.
1311 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1313 * python/python.h: Declare gdbpy_should_stop and
1314 gdbpy_breakpoint_has_py_cond.
1315 * python/python.c: Add python.h to includes. Remove python.h from
1316 HAVE_PYTHON definition
1317 (gdbpy_should_stop): New dummy function.
1318 (gdbpy_breakpoint_has_py_cond): New dummy function.
1319 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1320 sub-classing capabilities.
1321 (gdbpy_should_stop): New function.
1322 (gdbpy_breakpoint_has_py_cond): New function.
1323 (local_setattro): New function.
1324 * breakpoint.c (condition_command): Add check for Python 'stop'
1326 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1327 operation function as part of stop/continue tests.
1329 2011-03-14 Tom Tromey <tromey@redhat.com>
1332 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1333 (needs_frame_dwarf_call): Likewise.
1335 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1337 Fix ARI warning about functions without parameters that do not
1339 * breakpoint.c (all_tracepoints): Replace () by (void).
1340 * f-exp.y (match_string_literal): Ditto.
1342 * m2-exp.y (yylex): Ditto.
1343 * mep-tdep.c (current_me_module): Ditto.
1344 (current_options): Ditto.
1345 (current_cop_data_bus_width): Ditto.
1346 (current_cr_names): Ditto.
1347 (current_cr_is_float): Ditto.
1348 (current_ccr_names): Ditto.
1349 * objc-exp.y (yylex): Ditto.
1350 * p-exp.y (yylex): Ditto.
1351 * remote.c (send_interrupt_sequence): Ditto.
1352 * tracepoint.c (current_trace_status): Ditto.
1353 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1354 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1356 2011-03-11 Michael Snyder <msnyder@vmware.com>
1358 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1359 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1360 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1361 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1362 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1364 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1365 (delete_async_event_handler): Ditto.
1367 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1369 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1371 * top.c (set_verbose): Assert showcmd was found.
1373 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1375 * xtensa-tdep.c (warning_once): Correct style issues.
1377 2011-03-11 Yao Qi <yao@codesourcery.com>
1379 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1381 2011-03-11 Andreas Schwab <schwab@redhat.com>
1383 * common/aclocal.m4: Remove.
1385 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1387 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1388 (xtensa_write_register, xtensa_read_register): Likewise.
1389 (xtensa_hextochar): Removed.
1390 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1392 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1394 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1395 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1396 (xtensa_alloc_frame_cache): Add initialization for new fields.
1397 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1398 (warning_once): New function.
1399 (xtensa_insn_kind): New item c0opc_and.
1400 (call0_classify_opcode): Add the case for AND instruction.
1401 (call0_track_op): Change arguments. New local variable litbase.
1402 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1403 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1405 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1406 (call0_analyze_prologue): Update the comments. Change arguments.
1407 Add the variety of updates to handle extended prologues, which now can
1408 conduct dynamic stack adjustments.
1409 (call0_frame_cache): Likewise.
1410 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1411 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1413 2011-03-10 Michael Snyder <msnyder@vmware.com>
1415 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1416 (cmd_qtframe): Ditto.
1417 (cmd_qtbuffer): Ditto.
1418 (cmd_bigqtbuffer): Ditto.
1420 2011-03-10 Tom Tromey <tromey@redhat.com>
1422 * tracepoint.c (trace_actions_command): Update.
1423 * thread.c (thread_apply_command): Update.
1424 * reverse.c (delete_bookmark_command): Update.
1425 (bookmarks_info): Update.
1426 * printcmd.c (undisplay_command): Update.
1427 * memattr.c (mem_enable_command): Update.
1428 (mem_disable_command): Update.
1429 (mem_delete_command): Update.
1430 * inferior.c (detach_inferior_command): Update.
1431 (kill_inferior_command): Update.
1432 (remove_inferior_command): Update.
1433 * cli/cli-utils.h (struct get_number_or_range_state): New.
1434 (init_number_or_range): Declare.
1435 (get_number_or_range): Update.
1436 * cli/cli-utils.c (init_number_or_range): New function.
1437 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1439 (number_is_in_list): Update.
1440 * breakpoint.h (get_tracepoint_by_number): Update.
1441 * breakpoint.c (map_breakpoint_numbers): Update for change to
1442 get_number_or_range.
1443 (find_location_by_number): Use get_number, not
1444 get_number_or_range.
1445 (trace_pass_set_count): New function.
1446 (trace_pass_command): Update for change to get_number_or_range.
1448 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1451 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1453 * python/py-param.c (add_setshow_generic): Add set/show callback
1454 parameters. Register Python object context.
1455 (get_show_value): New function.
1456 (get_set_value): New function.
1457 (call_doc_function): New function.
1458 (get_doc_string): Move behind get_show_value/get_set_value.
1460 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1462 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1464 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1466 * xtensa-tdep.c (xtensa_read_register): Add comment.
1467 (xtensa_write_register): Likewise.
1468 (xtensa_hextochar): Add comment and update to match coding conventions.
1469 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1470 (execute_l32e, execute_s32e, execute_code): Update comments.
1471 (xtensa_exception_handler_t): Update to match coding conventions.
1472 (xtensa_insn_kind): Likewise.
1474 2011-03-09 Michael Snyder <msnyder@vmware.com>
1476 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1478 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1480 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1482 2011-03-09 Tom Tromey <tromey@redhat.com>
1484 * thread.c (restore_selected_frame): Handle frame_level == -1.
1485 (make_cleanup_restore_current_thread): Use
1486 get_selected_frame_if_set.
1487 * frame.h (get_selected_frame_if_set): Declare.
1488 * frame.c (get_selected_frame_if_set): New function.
1490 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1492 * cli/cli-cmds.c (shell_escape): Use lbasename.
1493 * coffread.c (coff_start_symtab): Constify parameter.
1494 (complete_symtab): Constify `name' parameter.
1495 (coff_symtab_read): Constify `filestring' local.
1496 (coff_getfilename): Constify return and `result' local.
1498 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1499 * linux-fork.c (info_checkpoints_command): Use lbasename.
1500 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1501 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1502 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1503 * procfs.c (procfs_make_note_section): Use lbasename.
1504 * tui/tui-io.c (printable_part): Constity return and parameter.
1506 (print_filename): Constify parameters, and local `s'.
1507 (tui_rl_display_match_list): Constify local `temp'.
1509 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1512 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1513 Fix DWARF-3+ DW_AT_accessibility default assumption.
1514 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1515 cu->header.version >= 3.
1517 2011-03-09 Yao Qi <yao@codesourcery.com>
1519 * common/Makefile.in: Remove.
1520 * common/configure: Remove.
1521 * common/configure.ac: Remove.
1523 2011-03-09 Yao Qi <yao@codesourcery.com>
1526 2011-02-11 Yao Qi <yao@codesourcery.com>
1528 * common/Makefile.in: Add copyright header.
1530 2011-02-11 Yao Qi <yao@codesourcery.com>
1532 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1534 * configure.ac: Add common to sub dir.
1535 * configure: Regenerate.
1537 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1539 * xtensa-tdep.c (call0_ret): New function.
1540 (xtensa_skip_prologue): Speed up analysis.
1542 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1544 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1545 while executing MI command -data-list-changed-registers.
1547 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1549 * xtensa-tdep.c (xtensa_read_register): New function.
1550 (xtensa_write_register): New function.
1551 (xtensa_find_register_by_name): New function.
1552 (xtensa_windowed_frame_cache): Update comments in type description.
1553 (xtensa_frame_cache): Likewise.
1554 (xtensa_window_interrupt_insn): New function.
1555 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1556 (xtensa_insn_kind): Add new instructions.
1557 (rwx_special_register): New function.
1558 (call0_classify_opcode): Add new instructions to the analysis.
1559 (a0_saved, a7_saved, a11_saved): New variables.
1560 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1561 (execute_l32e): New function.
1562 (execute_s32e): New function.
1563 (xtensa_exception_handler_t): New type.
1564 (execute_code): New function.
1565 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1566 analysis for Xtensa Window Exception handlers.
1568 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1570 * xtensa-tdep.c (TX_PS): New.
1571 (windowing_enabled): Update to count for Call0 ABI.
1572 (xtensa_hextochar): New.
1573 (xtensa_init_reggroups): Make algorithm generic.
1574 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1576 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1578 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1580 2011-03-08 Michael Snyder <msnyder@vmware.com>
1582 * i386-tdep.c (i386_follow_jump): Check return value of
1584 (i386_analyze_struct_return): Ditto.
1585 (i386_skip_probe): Ditto.
1586 (i386_match_insn): Ditto.
1587 (i386_skip_noop): Ditto.
1588 (i386_analyze_frame_setup): Ditto.
1589 (i386_analyze_register_saves): Ditto.
1590 (i386_skip_prologue): Ditto.
1591 (i386_skip_main_prologue): Ditto.
1593 * target.c (read_whatever_is_readable): Fix memory leak.
1595 * i386-tdep.c (i386_process_record): Document fall through.
1597 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1599 Fix DWARF-3+ DW_AT_accessibility default assumption.
1600 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1601 cu->header.version >= 3.
1603 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1605 * remote.c (remote_check_symbols): Skip if the target has no
1608 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1610 * target.c (read_whatever_is_readable): Reformat comment,
1611 with a minor typo fix. Minor reformatting of the code.
1613 2011-03-08 Yao Qi <yao@codesourcery.com>
1615 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1616 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1617 Use cached result instead of calling displaced_in_arm_mode again.
1618 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1619 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1620 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1621 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1622 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1623 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1624 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1625 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1626 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1627 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1628 (arm_catch_kernel_helper_return): Likewise.
1629 * gdb/arm-tdep.h : Update function declarations.
1631 2011-03-07 Michael Snyder <msnyder@vmware.com>
1633 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1635 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1637 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1639 * elfread.c (elf_symtab_read): Stop memory leak.
1641 * main.c (captured_main): Fix memory leak.
1643 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1645 * ada-lang.c (compare_names): Call is_name_suffix with string1
1648 2011-03-07 Tom Tromey <tromey@redhat.com>
1650 * xcoffread.c (xcoff_sym_fns): Update.
1651 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1652 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1653 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1654 (symbol_file_add_with_addrs_or_offsets): Likewise.
1655 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1656 * somread.c (som_sym_fns): Update.
1657 * psymtab.h (require_partial_symbols): Declare.
1658 * psymtab.c (require_partial_symbols): New function.
1659 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1660 (ALL_OBJFILE_PSYMTABS): Undef.
1661 (ALL_PSYMTABS): Move from psympriv.h.
1662 (lookup_partial_symtab, find_pc_sect_psymtab)
1663 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1664 (find_last_source_symtab_from_partial)
1665 (forget_cached_source_info_partial)
1666 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1667 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1668 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1669 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1670 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1671 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1672 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1673 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1674 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1676 * mipsread.c (ecoff_sym_fns): Update.
1677 * machoread.c (macho_sym_fns): Update.
1678 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1679 (read_psyms): New function.
1680 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1681 (elf_sym_fns_lazy_psyms): New global.
1682 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1683 dwarf2_build_psymtabs.
1684 * dbxread.c (aout_sym_fns): Update.
1685 * coffread.c (coff_sym_fns): Update.
1687 2011-03-07 Tom Tromey <tromey@redhat.com>
1689 * infrun.c (print_exited_reason): Include inferior id and pid in
1692 2011-03-07 Tom Tromey <tromey@redhat.com>
1694 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1696 (target_has_execution_1): Update.
1697 (target_has_execution_current): Declare.
1698 (target_has_execution): Call target_has_execution_current.
1699 (default_child_has_execution): Update.
1700 * target.c (default_child_has_execution): Add 'the_ptid'
1702 (target_has_execution_1): Likewise.
1703 (target_has_execution_current): New function.
1704 (add_target): Update.
1705 (init_dummy_target): Update.
1706 * remote-m32r-sdi.c (m32r_has_execution): New function.
1707 (init_m32r_ops): Use it.
1708 * record.c (record_core_has_execution): Now static. Add
1709 'the_ptid' parameter.
1710 * inferior.c (have_live_inferiors): Don't save current thread.
1711 Use target_has_execution_1.
1713 2011-03-07 Yao Qi <yao@codesourcery.com>
1715 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1717 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1719 * elfread.c (elf_symtab_read): Minor reformatting.
1721 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1723 * objc-lang.c (selectors_info): Minor reformatting.
1725 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1727 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1729 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1730 Michael Snyder <msnyder@vmware.com>
1732 * ada-valprint.c (ada_val_print_array): Move the declaration of
1733 "byte_order" and "elttype" inside the block where these variables
1734 are actually used. Remove some special handling for the case
1735 where "elttype" and "eltlen" are null. Replace by a comment
1736 and a couple of assertion checks.
1738 2011-03-05 Michael Snyder <msnyder@vmware.com>
1740 * source.c (add_path): Replace semicolon at end of block.
1741 * dwarf2expr.c (execute_stack_op): Ditto.
1743 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1745 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1746 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1747 (bfin-*-*): Likewise.
1749 2011-03-05 Michael Snyder <msnyder@vmware.com>
1751 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1752 * mdebugread.c (parse_symbol): Ditto.
1753 * parse.c (parse_exp_in_context): Ditto.
1754 * source.c (add_path): Ditto.
1755 * utils.c (gnu_debuglink_crc32): Ditto.
1756 * varobj.c (variable_language): Ditto.
1758 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1760 2011-03-04 Michael Snyder <msnyder@vmware.com>
1762 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1764 * symfile.c (simple_overlay_update): Check for null return value
1765 from lookup_minimal_symbol.
1767 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1769 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1771 * eval.c (parse_and_eval_address_1): Remove function.
1772 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1773 instead of parse_and_eval_address_1.
1774 * value.h (parse_and_eval_address_1): Remove prototype.
1776 2011-03-04 Michael Snyder <msnyder@vmware.com>
1778 * remote.c (putpkt_binary): Document that case stmt falls through.
1780 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1782 * breakpointc (print_it_typical): Move NULL check from here...
1783 (print_bp_stop_message): ... to here.
1785 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1787 * breakpoint.c (enable_command): Use break instead of continue,
1788 and fill in a missing break.
1789 (disable_command): Ditto.
1791 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1793 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1794 (terminal_save_ours): Remove misleading comment.
1795 (inflow_inferior_data_cleanup): Free ttystate.
1796 (inflow_inferior_exit): Likewise.
1797 (copy_terminal_info): Copy ttystate.
1799 * serial.c (serial_copy_tty_state): New function.
1800 * serial.h (serial_copy_tty_state): Add prototype.
1801 (struct serial_ops): Add copy_tty_state callback.
1802 * ser-base.c (ser_base_copy_tty_state): New function.
1803 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1804 * ser-go32.c (dos_copy_tty_state): New function.
1805 (dos_ops): Install copy_tty_state callback.
1806 * ser-mingw.c (_initialize_ser_windows): Likewise.
1807 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1808 * ser-unix.c (hardwire_copy_tty_state): New function.
1809 (_initialize_ser_hardwire): Install it.
1811 2011-03-04 Michael Snyder <msnyder@vmware.com>
1813 * breakpoint.c (create_breakpoint): Add missing break statement.
1815 Reverting this patch:
1816 * infcall.c (call_function_by_hand): Add break statements for lint.
1818 Reverting this patch:
1819 * cli/cli-script.c (script_from_file): Add break for lint.
1821 2011-03-04 Michael Snyder <msnyder@vmware.com>
1823 * solib.c (reload_shared_libraries_1): Close memory leak.
1825 2011-03-03 Tom Tromey <tromey@redhat.com>
1828 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1831 2011-03-03 Michael Snyder <msnyder@vmware.com>
1833 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1834 fields of struct 'st' to zero.
1836 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1837 sal.pspace before calling set_current_source_symtab_and_line.
1839 2011-03-03 Yao Qi <yao@codesourcery.com>
1841 * Makefile.in (configure-common): Remove. Let Makefile
1842 in dir common to rebuild itself.
1843 (common/Makefile): Likewise.
1845 2011-03-03 Joel Brobecker <brobecker@adacore.com>
1847 * utils.c (parse_escape): Add i18n markup in error message.
1849 2011-03-03 Yao Qi <yao@codesourcery.com>
1851 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1853 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1854 (displaced_write_reg, displaced_read_reg): Likewise.
1855 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1856 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1857 (cleanup_branch): Replace magic number 14 and 15 with
1858 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1860 2011-03-02 Michael Snyder <msnyder@vmware.com>
1862 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1864 * cli/cli-script.c (script_from_file): Add break for lint.
1866 * mdebugread.c (parse_partial_symbols): Fix indent.
1868 * target-descriptions.c (tdesc_gdb_type): No need to call
1869 xstrdup, callee saves a copy.
1871 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1873 * infcall.c (call_function_by_hand): Add break statements for lint.
1875 * utils.c (parse_escape): Escape the escape char.
1877 * python/py-inferior.c (build_inferior_list): Error out if
1878 PyList_Append fails.
1879 (gdbpy_inferiors): Error out if build_inferior_list fails.
1881 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1884 * record.c (record_restore): Move printf to before error return.
1886 2011-03-02 Yao Qi <yao@codesourcery.com>
1888 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1889 is_thumb and insn_size.
1890 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1891 on both ARM and Thumb mode.
1892 (arm_process_displaced_insn): Set is_thumb and insn_size.
1893 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1894 (arm_displaced_step_fixup): Likewise.
1896 2011-03-01 Michael Snyder <msnyder@vmware.com>
1898 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1900 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1902 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1904 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1906 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1909 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1910 which shadows function parameter.
1912 * tracepoint.c (create_tsv_from_upload): Superfluous call
1913 to xstrdup. Callee already calls xstrdup.
1915 * linespec.c (decode_line_1): Remove unnecessary null check.
1917 * tracepoint.c (scope_info): Fix mem leak, remove underused
1920 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1921 superfluous null check.
1923 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
1924 (value_of_builtin_frame_fp_reg): Ditto.
1926 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1928 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1931 * linespec.c (decode_line_1): Check for null before dereference.
1933 * reverse.c (record_restore): Move null-check to before pointer
1936 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1938 * objc-lang.c (selectors_info): Add explanitory comment.
1939 (classes_info): Ditto.
1941 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1943 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1944 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1945 versions of the trampoline. Handle Thumb vs. ARM addresses.
1946 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1947 (arm_linux_init_abi): Install it.
1948 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1949 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1951 2011-02-28 Michael Snyder <msnyder@vmware.com>
1953 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1954 a little bigger, to avoid possibility of an overflow.
1956 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1957 buffers a little bigger, to avoid possibility of an overflow.
1959 * coffread.c (coff_getfilename): Add check to avoid overflow.
1961 * objc-lang.c (selectors_info): Add a small safety margin to
1963 (classes_info): Error out on too long REGEXP.
1965 * infrun.c (handle_inferior_event): Remove unused function call.
1967 * fork-child.c (fork_inferior): Remove ifdef'd code and
1970 * linux-thread-db.c (attach_thread): Discard unused value.
1972 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1974 * remote.c (remote_get_noisy_reply): Discard unused value.
1975 (remote_vcont_resume): Ditto.
1976 (remote_stop_ns): Ditto.
1978 * linespec.c (decode_objc): Delete unused variable.
1980 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1982 * dwarf2read.c (add_partial_symbol): Discard unused values.
1983 (read_base_type): Delete unused variable.
1985 * dbxread.c (read_dbx_symtab): Discard unused value.
1987 * eval.c (evaluate_subexp_standard): Delete unused variable,
1988 and discard unused values.
1990 * infcmd.c (_initialize_infcmd): Discard unused values.
1992 * stabsread.c (rs6000_builtin_type): Missing break statement.
1994 * dbxread.c (process_one_symbol): Discard unused value.
1996 * coffread.c (coff_end_symtab): Delete unused variable.
1998 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1999 (dwarf2_add_typedef): Delete unused variable.
2000 (read_namespace): Ditto.
2001 (dwarf_decode_macros): Ditto.
2003 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2005 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2007 * p-valprint.c (pascal_val_print): Discard unused value.
2009 * utils.c (nquery): Call va_end before return;
2013 * proc-service.c (ps_plog): Call va_end before return.
2015 2011-02-28 Tom Tromey <tromey@redhat.com>
2017 * python/python.c (gdbpy_value_cst): New global.
2018 (_initialize_python): Initialize it.
2019 * python/python-internal.h (gdbpy_value_cst): Declare.
2020 * python/py-value.c (convert_value_from_python): Use
2023 2011-02-28 Michael Snyder <msnyder@vmware.com>
2025 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2027 * breakpoint.c (catch_syscall_completer): Free malloced list.
2029 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2031 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2032 (lval_func_check_synthetic_pointer): Ditto.
2033 (lval_func_free_closure): Fix use-after-free.
2035 2011-02-28 Tom Tromey <tromey@redhat.com>
2037 * psymtab.c (expand_partial_symbol_tables): Use
2038 ALL_OBJFILE_PSYMTABS.
2040 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2042 * objc-lang.c (selectors_info): Error on too long REGEXP.
2044 2011-02-28 Michael Snyder <msnyder@vmware.com>
2046 * python/py-param.c (set_parameter_value): Add missing
2049 * linux-record.c (record_linux_system_call): Add missing
2052 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2054 * breakpoint.c (print_one_breakpoint_location): Remove unused
2055 argument PRINT_ADDRESS_BITS. Update callers.
2056 (print_one_breakpoint): Likewise.
2058 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2060 * breakpoint.c (wrap_indent_at_field): New function.
2061 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2062 Allocate ui_stream locally instead of using STB argument.
2063 (print_one_breakpoint_location): Update call.
2064 * ui-out.c (ui_out_query_field): New function.
2065 * ui-out.h (ui_out_query_field): Add prototype.
2067 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2069 From Michael Snyder <msnyder@vmware.com>
2070 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2072 2011-02-27 Michael Snyder <msnyder@vmware.com>
2074 * objc-lang.c (selectors_info): Prevent string overrun.
2076 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2079 * symtab.c (rbreak_command): Move variable 'file_name' to
2082 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2083 param with a local variable of the same name.
2085 2011-02-27 Michael Snyder <msnyder@vmware.com>
2087 * value.c (value_from_history_ref): New function.
2088 * value.h (value_from_history_ref): Export.
2089 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2090 to parse value history references.
2091 * cli/cli-utils.h (get_number_trailer): Update comment.
2093 2011-02-27 Michael Snyder <msnyder@vmware.com>
2095 * inferior.c (detach_inferior_command): Use get_number_or_range.
2096 (kill_inferior_command): Ditto.
2097 (remove_inferior_command): Ditto.
2098 (initialize_inferiors): Make command names plural.
2099 Update help strings.
2101 2011-02-27 Michael Snyder <msnyder@vmware.com>
2103 * darwin-nat-info.c: Fix comment typo.
2104 * dwarf2expr.h: Ditto.
2105 * fbsd-nat.c: Ditto.
2106 * fbsd-nat.h: Ditto.
2107 * frame-unwind.h: Ditto.
2109 * hppa-hpux-tdep.c: Ditto.
2110 * i386-linux-nat.c: Ditto.
2111 * linux-nat.c: Ditto.
2112 * nbsd-nat.c: Ditto.
2113 * nbsd-nat.h: Ditto.
2114 * ppc-linux-tdep.c: Ditto.
2117 * tui/tui-winsource.c: Ditto.
2119 2011-02-26 Michael Snyder <msnyder@vmware.com>
2121 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2123 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2125 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2126 with a local variable of the same name.
2128 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2129 param with a local variable of the same name.
2130 (i387_supply_xsave): Ditto.
2132 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2133 that it does not shadow a function parameter.
2135 * i386-nat.c (i386_length_and_rw_bits): Document that case
2136 statement is meant to fall through.
2138 * expprint.c (dump_subexp_body_standard): Document that case
2139 statement is meant to fall through.
2141 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2142 dead if statement. Condition can't be false.
2144 2011-02-25 Michael Snyder <msnyder@vmware.com>
2146 * arm-tdep.c: Fix typos in comments.
2147 * bsd-uthread.c: Ditto.
2148 * completer.c: Ditto.
2150 * cp-namespace.c: Ditto.
2151 * cp-support.c: Ditto.
2152 * cris-tdep.c: Ditto.
2154 * dwarf2read.c: Ditto.
2156 * gdbtypes.h: Ditto.
2157 * inferior.h: Ditto.
2158 * mdebugread.c: Ditto.
2159 * mips-tdep.c: Ditto.
2160 * ppc-linux-nat.c: Ditto.
2161 * ppc-linux-tdep.c: Ditto.
2162 * printcmd.c: Ditto.
2163 * sol-thread.c: Ditto.
2164 * solib-frv.c: Ditto.
2166 * sparc64-tdep.c: Ditto.
2167 * spu-tdep.c: Ditto.
2168 * stabsread.c: Ditto.
2173 * python/py-block.c: Ditto.
2174 * python/py-symbol.c: Ditto.
2175 * python/py-symtab.c: Ditto.
2176 * python/py-value.c: Ditto.
2177 * tui/tui-win.c: Ditto.
2179 2011-02-25 Michael Snyder <msnyder@vmware.com>
2181 * inferior.c (print_inferior): Accept a string instead of an int
2182 for requested_inferiors, and use get_number_or_range to parse it.
2183 (info_inferiors_command): Pass args string to print_inferior.
2184 (initialize_inferiors): Change help string for info inferiors.
2185 * inferior.h (print_inferior): Export prototype change.
2187 2011-02-25 Tom Tromey <tromey@redhat.com>
2189 * common/ax.def (invalid2): Set to 0x31.
2191 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2195 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2197 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2199 2011-02-24 Michael Snyder <msnyder@vmware.com>
2201 * Makefile.in (clean): Make clean should remove generated files
2202 observer.h and observer.inc.
2204 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2206 Revert the following patch (not approved yet):
2207 2011-02-21 Hui Zhu <teawater@gmail.com>
2208 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2209 * ax-gdb.c (gen_printf_expr_callback): New function.
2210 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2211 * ax-general.c (ax_memcpy): New function.
2212 (ax_print): Handle "printf".
2214 * ax.h (ax_memcpy): Forward declare.
2215 * common/ax.def (invalid2): Removed.
2216 (printf): New entry.
2217 * printcmd.c (printcmd.h): New include.
2218 (string_printf): New function.
2219 (ui_printf): Removed.
2220 (printf_command): Remove static. Call string_printf.
2221 (eval_command): Call string_printf.
2222 * printcmd.h: New file.
2223 * tracepoint.c (validate_actionline,
2224 encode_actions_1): handle printf_command.
2226 2011-02-23 Tom Tromey <tromey@redhat.com>
2228 * ax-general.c (ax_pick): Add missing newline.
2230 2011-02-23 Michael Snyder <msnyder@vmware.com>
2232 * breakpoint.c (breakpoint_1): Change first argument from an int
2233 to a char pointer, so that the function now accepts a list of
2234 breakpoints rather than just one. Use new function
2235 'number_is_in_list' to implement.
2236 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2237 (watchpoints_info): Ditto.
2238 (tracepoints_info): Ditto.
2239 (maintenance_info_breakpoints): Ditto.
2240 (_initialize_breakpoint): Update help strings to reflect the fact
2241 that these functions can now take more than one argument.
2242 * cli/cli-utils.c (number_is_in_list): New function.
2243 * cli/cli-utils.h (number_is_in_list): Export.
2245 2011-02-23 Michael Snyder <msnyder@vmware.com>
2247 * memattr.c (mem_enable_command): Use get_number_or_range.
2248 (mem_disable_command): Ditto.
2249 (mem_delete_command): Ditto.
2250 (_initialize_mem): Tweak usage message to reflect multiple
2253 2011-02-22 Doug Evans <dje@google.com>
2255 Add gdb.lookup_global_symbol python function.
2257 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2258 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2259 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2261 2011-02-22 Tom Tromey <tromey@redhat.com>
2263 * language.c (language_class_name_from_physname): Rename
2264 'curr_language' argument to 'lang'; use in body.
2266 2011-02-22 Michael Snyder <msnyder@vmware.com>
2268 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2270 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2272 * frame-unwind.h: Fix comment to mention the this frame, not the
2275 2011-02-22 Tom Tromey <tromey@redhat.com>
2277 * symfile.c (auto_solib_limit): Remove.
2278 * symfile.h (auto_solib_limit): Remove.
2280 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2282 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2284 2011-02-21 Michael Snyder <msnyder@vmware.com>
2286 * gdbthread.h (print_thread_info): Change prototype.
2287 * thread.c (print_thread_info): Accept char* instead of int for
2288 requested_threads argument. Use new function number_is_in_list
2289 to determine which threads to list.
2290 (info_threads_command): Pass char* to print_thread_info.
2291 * cli/cli-utils.c (number_is_in_list): New function.
2292 * cli/cli-utils.h (number_is_in_list): Export.
2293 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2295 (print_one_inferior): Ditto.
2296 (mi_cmd_list_thread_groups): Ditto.
2298 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2300 * common/Makefile.in (CFLAGS): New.
2301 (COMPILE): Add $(CFLAGS).
2303 2011-02-21 Tom Tromey <tromey@redhat.com>
2305 * breakpoint.c (catch_syscall_command_1): Fix typo.
2307 2011-02-21 Tom Tromey <tromey@redhat.com>
2309 * reverse.c: Include cli-utils.h.
2310 * printcmd.c: Include cli-utils.h.
2311 (string_printf): Use skip_spaces.
2312 * cli/cli-utils.h: New file.
2313 * cli/cli-utils.c: New file.
2314 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2315 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2316 * breakpoint.h (get_number, get_number_or_range): Move to
2318 * breakpoint.c: Include cli-utils.h.
2319 (get_number_trailer, get_number, get_number_or_range)
2320 (ep_skip_leading_whitespace): Move to cli-utils.c.
2321 (create_breakpoint_sal, find_condition_and_thread)
2322 (decode_static_tracepoint_spec, watch_command_1)
2323 (watch_maybe_just_location, ep_parse_optional_if_clause)
2324 (catch_fork_command_1, catch_exec_command_1)
2325 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2326 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2327 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2328 (HFILES_NO_SRCDIR): Add cli-utils.h.
2329 (cli-utils.o): New target.
2331 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2333 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2334 before calling discard_all_inferiors.
2336 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2338 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2339 (struct builtin_opencl_type): Remove.
2340 (builtin_opencl_type): Change return type to "struct type **".
2341 (lookup_opencl_vector_type): Update caller.
2342 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2343 (build_opencl_types): Install plain array of "struct type *"
2344 instead of "struct builtin_opencl_type".
2346 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2347 Ulrich Weigand <uweigand@de.ibm.com>
2349 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2350 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2351 (struct arm_linux_hwbp_cap): New type.
2352 (arm_linux_get_hwbp_cap): New function.
2353 (arm_linux_get_hw_breakpoint_count): Likewise.
2354 (arm_linux_get_hw_watchpoint_count): Likewise.
2355 (arm_linux_can_use_hw_breakpoint): Likewise.
2356 (arm_hwbp_type): New type.
2357 (arm_hwbp_control_t): Likewise.
2358 (struct arm_linux_hw_breakpoint): Likewise.
2359 (struct arm_linux_thread_points): Likewise.
2360 (arm_threads): New global variable.
2361 (arm_linux_find_breakpoints_by_tid): New function.
2362 (arm_hwbp_control_initialize): Likewise.
2363 (arm_hwbp_control_is_enabled): Likewise.
2364 (arm_hwbp_control_disable): Likewise.
2365 (arm_linux_hw_breakpoint_initialize): Likewise.
2366 (arm_linux_get_hwbp_type): Likewise.
2367 (arm_linux_hw_watchpoint_initialize): Likewise.
2368 (arm_linux_hw_breakpoint_equal): Likewise.
2369 (arm_linux_insert_hw_breakpoint1): Likewise.
2370 (arm_linux_remove_hw_breakpoint1): Likewise.
2371 (arm_linux_insert_hw_breakpoint): Likewise.
2372 (arm_linux_remove_hw_breakpoint): Likewise.
2373 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2374 (arm_linux_insert_watchpoint): Likewise.
2375 (arm_linux_remove_watchpoint): Likewise.
2376 (arm_linux_stopped_data_address): Likewise.
2377 (arm_linux_stopped_by_watchpoint): Likewise.
2378 (arm_linux_watchpoint_addr_within_range): Likewise.
2379 (arm_linux_new_thread): Likewise.
2380 (arm_linux_thread_exit): Likewise.
2381 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2382 related target callbacks. Register arm_linux_new_thread and
2383 arm_linux_thread_exit.
2384 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2385 * arm-tdep.c (arm_pc_is_thumb): Make global.
2386 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2388 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2390 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2391 per-frame locations while within a function epilogue.
2393 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2395 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2396 to GNU coding standards.
2398 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2400 Allow use of mingw native on Windows 95 OS.
2401 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2402 (ser_windows_close): Only call CancelIo if function exists.
2403 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2404 to check for existence of CancelIo function in kernel32 DLL.
2406 2011-02-21 Hui Zhu <teawater@gmail.com>
2408 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2409 * ax-gdb.c (gen_printf_expr_callback): New function.
2410 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2411 * ax-general.c (ax_memcpy): New function.
2412 (ax_print): Handle "printf".
2414 * ax.h (ax_memcpy): Forward declare.
2415 * common/ax.def (invalid2): Removed.
2416 (printf): New entry.
2417 * printcmd.c (printcmd.h): New include.
2418 (string_printf): New function.
2419 (ui_printf): Removed.
2420 (printf_command): Remove static. Call string_printf.
2421 (eval_command): Call string_printf.
2422 * printcmd.h: New file.
2423 * tracepoint.c (validate_actionline,
2424 encode_actions_1): handle printf_command.
2426 2011-02-19 Michael Snyder <msnyder@vmware.com>
2428 * reverse.c (delete_one_bookmark): Argument is now bookmark
2429 id rather than pointer to bookmark struct.
2430 (delete_bookmark_command): Use get_number_or_range.
2431 (goto_bookmark_command): Parse with get_number instead of strtoul.
2432 (bookmark_1): New function. Print info for one bookmark.
2433 (bookmarks_info): Use get_number_or_range and bookmark_1.
2435 2011-02-18 Michael Snyder <msnyder@vmware.com>
2437 * thread.c (info_threads_command): Re-implement using
2438 get_number_or_range.
2439 (thread_apply_command): Ditto.
2441 2011-02-18 Tom Tromey <tromey@redhat.com>
2443 * common/ax.def: New file.
2444 * ax.h (enum agent_op): Use ax.def.
2445 * ax-general.c (aop_map): Use ax.def.
2447 2011-02-18 Tom Tromey <tromey@redhat.com>
2449 * ax-general.c (aop_map): Add pick and rot.
2450 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2451 <DW_OP_rot>: Implement.
2452 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2454 * ax-general.c (ax_pick): New function.
2456 2011-02-18 Tom Tromey <tromey@redhat.com>
2458 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2460 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 Tom Tromey <tromey@redhat.com>
2463 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2464 make_symbol_overload_list_block with NULL BLOCK.
2465 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2467 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2469 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2470 * breakpoint.h (get_number_or_range): Declare.
2471 * printcmd.c (ALL_DISPLAYS): Declare.
2472 (delete_display): Reimplement taking a display pointer.
2473 (undisplay_command): Accept a range of displays to delete, using
2474 get_number_or_range.
2476 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2478 * c-valprint.c (c_val_print): Add embedded_offset to address
2479 for arrays of unspecified length.
2480 * p-valprint.c (pascal_val_print): Likewise.
2482 2011-02-18 Yao Qi <yao@codesourcery.com>
2484 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2485 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2486 (thumb_process_displaced_insn): New.
2487 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2488 call to arm_process_displaced_insn.
2489 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2491 2011-02-17 Tom Tromey <tromey@redhat.com>
2493 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2494 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2495 compile_dwarf_to_ax. No longer static. Call
2496 dwarf2_compile_cfa_to_ax.
2497 (locexpr_tracepoint_var_ref): Update.
2498 (loclist_tracepoint_var_ref): Update.
2499 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2500 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2501 argument; add 'gdbarch' and 'pc'.
2502 (dwarf2_compile_cfa_to_ax): New function.
2503 (dwarf2_frame_cache): Update.
2505 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2507 * ada-lang.c (ada_type_of_array): Fix the size of the array
2508 in the case of an unconstrained packed array.
2510 2011-02-17 Yao Qi <yao@codesourcery.com>
2512 * common/Makefile.in: Add more targets for make.
2514 2011-02-16 Tom Tromey <tromey@redhat.com>
2516 * dwarf2loc.c (unimplemented): Fix typo.
2518 2011-02-16 Tom Tromey <tromey@redhat.com>
2520 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2521 (compile_dwarf_to_ax) <default>: Use unimplemented.
2522 <DW_OP_deref>: Update.
2523 (disassemble_dwarf_expression): Update.
2524 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2525 (decode_locdesc): Update.
2526 * dwarf2expr.h (dwarf_stack_op_name): Update.
2528 2011-02-16 Tom Tromey <tromey@redhat.com>
2530 * ax.h (struct aop_map) <name>: Now const.
2532 2011-02-16 Tom Tromey <tromey@redhat.com>
2534 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2537 2011-02-16 Yao Qi <yao@codesourcery.com>
2539 * infrun.c (get_displaced_step_closure_by_addr): New.
2540 * inferior.h: Declare it.
2541 * arm-tdep.c: (arm_pc_is_thumb): Call
2542 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2545 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2546 Jan Kratochvil <jan.kratochvil@redhat.com>
2549 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2551 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2552 Jan Kratochvil <jan.kratochvil@redhat.com>
2554 * value.c (value_contents_copy_raw): Extend describing comment.
2555 Assert that the destination contents we're overwriting are wholly
2557 (value_contents_copy): Extend describing comment.
2559 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2560 Jan Kratochvil <jan.kratochvil@redhat.com>
2562 * value.c (value_available_contents_eq): Remove redundant local
2563 variables. Fix available contents comparision.
2564 * value.h (value_available_contents_eq): Extend describing
2567 2011-02-16 Yao Qi <yao@codesourcery.com>
2569 * thread.c (info_threads_command): Add missing i18n markup and remove
2572 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2574 * breakpoint.c (longjmp_names): New variable.
2575 (struct breakpoint_objfile_data): New type.
2576 (breakpoint_objfile_key): New variable.
2577 (msym_not_found): New variable.
2578 (msym_not_found_p): New predicate.
2579 (get_breakpoint_objfile_data): New function.
2580 (create_overlay_event_breakpoint): Check per-objfile cache for
2582 (create_longjmp_master_breakpoint): Likewise.
2583 (create_std_terminate_master_breakpoint): Likewise.
2584 (create_exception_master_breakpoint): Likewise.
2585 (_initialize_breakpoint): Register per-objfile data key.
2587 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2589 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2591 (create_longjmp_master_breakpoint): Loop over longjmp names.
2592 (create_std_terminate_master_breakpoint): Const-propagate parameter
2594 (update_breakpoints_after_exec): Adjust.
2595 (breakpoint_re_set): Adjust.
2597 2011-02-15 Michael Snyder <msnyder@vmware.com>
2599 * thread.c (info_threads_command): Process arg as thread id,
2600 or list of thread ids.
2601 (thread_find_command): New command.
2602 (_initialize_thread): Document argument for info threads.
2603 Document 'thread find' command.
2604 * NEWS: Document new command "thread find".
2606 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2608 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2609 * aclocal.m4: Regenerated with aclocal-1.11.1.
2610 * common/configure: Regenerate with autoconf-2.64.
2612 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2614 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2615 bool data type to a size of one byte.
2617 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2618 Jan Kratochvil <jan.kratochvil@redhat.com>
2620 * target.c (memory_xfer_live_readonly_partial): Document where to
2621 look for interface description.
2623 2011-02-15 Yao Qi <yao@codesourcery.com>
2626 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2627 order to store PC value on stack instead of text section.
2629 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2631 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2632 the EFP register set size.
2633 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2634 data from the VMX register.
2635 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2636 and write data from/to the VMX register.
2638 2011-02-14 Michael Snyder <msnyder@vmware.com>
2640 * command.h (enum command_class): New class 'no_set_class', for
2641 "show" commands without a corresponding "set" command.
2642 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2643 * copying.c (_initialize_copying): Ditto for "show copying" and
2645 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2647 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2648 which there is no corresponding "set" command (eg. "show copying").
2650 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2651 Jan Kratochvil <jan.kratochvil@redhat.com>
2653 * exec.c (section_table_available_memory): Change `len' parameter
2655 * exec.h (section_table_available_memory): Ditto.
2656 * value.h (read_value_memory): Rename the `offset' parameter to
2659 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2660 Jan Kratochvil <jan.kratochvil@redhat.com>
2662 * memrange.c (compare_mem_ranges): Mention sort order in
2664 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2665 * tracepoint.c (traceframe_available_memory): Extend comment to
2666 mention what happens to RESULT when the target does not support
2669 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2670 Jan Kratochvil <jan.kratochvil@redhat.com>
2672 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2675 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2677 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2678 No longer handle NULL values.
2680 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2682 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2683 * value.c: Include "exceptions.h".
2684 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2686 * cp-abi.c: Include gdb_assert.h.
2687 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2688 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2690 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2691 parameters. No longer returns -1 on error.
2692 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2694 * cp-valprint.c: Include exceptions.h.
2695 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2696 the baseclass_offset. Handle unavailable base classes. Use
2697 val_print_invalid_address.
2698 * p-valprint.c: Include exceptions.h.
2699 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2700 when fetching the baseclass_offset. No longer expect
2701 baseclass_offset returning -1. Handle unavailable base classes.
2702 Use val_print_invalid_address.
2703 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2704 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2705 `embedded_offset' and `val' parameters. Adjust.
2706 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2707 parameter, and change its type to gdb_byte pointer. Add
2708 `embedded_offset' and `val' parameters. Adjust. No longer expect
2709 baseclass_offset returning -1.
2710 (value_dynamic_cast): Use value_contents_for_printing rather than
2711 value_contents. Adjust.
2712 (search_struct_field): No longer expect baseclass_offset returning
2714 (search_struct_method): If reading memory from the target is
2715 necessary, wrap it in a new value to pass to baseclass_offset. No
2716 longer expect baseclass_offset returning -1.
2717 (find_method_list): No longer expect baseclass_offset returning
2718 -1. Use value_contents_for_printing rather than value_contents.
2719 * valprint.c (val_print_invalid_address): New function.
2720 * valprint.h (val_print_invalid_address): Declare.
2721 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2722 and `val' parameters. No longer expect baseclass_offset returning
2724 * gnu-v2-abi.c: Include "exceptions.h".
2725 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2726 parameters. Handle unavailable memory. Recurse through
2727 gnuv2_baseclass_offset directly, rather than through
2728 baseclass_offset. No longer returns -1 on not found, instead
2730 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2731 `val' parameters. Adjust.
2733 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2735 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2736 almost but not quite adjacent.
2738 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2740 * value.h (value_entirely_available): Declare.
2741 * value.c (value_entirely_available): New function.
2742 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2743 real type if the pointer is unavailable.
2745 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2747 * valops.c (value_repeat): Use read_value_memory instead of
2750 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2752 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2753 * value.c (value_contents_copy_raw, value_contents_copy): New
2755 (value_primitive_field): Use value_contents_copy_raw instead of
2757 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2759 (value_array, value_slice): Ditto.
2760 * valarith.c (value_subscripted_rvalue): Use
2761 value_contents_copy_raw instead of memcpy.
2763 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2765 <unavailable> references.
2767 * valops.c (get_value_at): Use value_from_contents_and_address,
2768 avoiding read_memory.
2770 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2772 * c-valprint.c (c_val_print): Print a string with unavailable
2773 contents as an array.
2775 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2777 * value.h (unpack_bits_as_long): Delete declaration.
2778 (unpack_value_bits_as_long): Declare.
2779 (unpack_value_field_as_long): Declare.
2780 (value_field_bitfield): Declare.
2781 * value.c (unpack_bits_as_long): Rename to...
2782 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2783 value parameters. Return the extracted result in a new output
2784 parameter. If the value contents are unavailable, return false,
2785 otherwise return true.
2786 (unpack_value_bits_as_long): New.
2787 (unpack_field_as_long): Rename to...
2788 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2789 Add embedded_offset and value parameters. Return the extracted
2790 result in a new output parameter. If the value contents are
2791 unavailable, return false, otherwise return true.
2792 (unpack_value_field_as_long): New.
2793 (unpack_field_as_long_1): New.
2794 (unpack_field_as_long): Reimplement as wrapper around
2795 unpack_value_field_as_long_1.
2796 (value_field_bitfield): New function.
2797 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2798 unpack_value_bits_as_long. Mark the value as unavailable, if it
2800 * jv-valprint.c (java_print_value_fields): Use
2801 value_field_bitfield.
2802 * p-valprint.c (pascal_object_print_value_fields): Use
2803 value_field_bitfield.
2804 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2806 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2808 * value.c (get_internalvar_integer): Also return the int value of
2809 TYPE_CODE_INT INTERNALVAR_VALUE values.
2810 (set_internalvar): Don't special case TYPE_CODE_INT.
2812 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2814 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2815 INTERNALVAR_POINTER.
2817 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2818 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2819 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2821 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2823 * value.h (value_available_contents_eq): Declare.
2824 * value.c (find_first_range_overlap): New function.
2825 (value_available_contents_eq): New function.
2826 * valprint.c (val_print_array_elements): Use
2827 value_available_contents_eq.
2828 * ada-valprint.c (val_print_packed_array_elements): Use
2829 value_available_contents_eq.
2830 * jv-valprint.c (java_value_print): Use
2831 value_available_contents_eq.
2833 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2835 * target.c (target_read_live_memory): New function.
2836 (memory_xfer_live_readonly_partial): New.
2837 (memory_xfer_partial): If reading from a traceframe, fallback to
2838 reading unavailable read-only memory from read-only regions of
2840 * tracepoint.c (disconnect_tracing): Adjust.
2841 (set_current_traceframe): New, factored out from
2842 set_traceframe_number.
2843 (set_traceframe_number): Reimplement to only change the traceframe
2844 number on the GDB side.
2845 (do_restore_current_traceframe_cleanup): Adjust.
2846 (make_cleanup_restore_traceframe_number): New.
2847 (cur_traceframe_number): New global.
2848 (tfile_open): Set cur_traceframe_number to no traceframe.
2849 (set_tfile_traceframe): New function.
2850 (tfile_trace_find): If looking up a traceframe using any method
2851 other than by number, make sure the current tfile traceframe
2852 matches gdb's current traceframe. Update the current tfile
2853 traceframe if the lookup succeeded.
2854 (tfile_fetch_registers, tfile_xfer_partial)
2855 (tfile_get_trace_state_variable_value): Make sure the remote
2856 traceframe matches gdb's current traceframe.
2857 * remote.c (remote_traceframe_number): New global.
2858 (remote_open_1): Set it to -1.
2859 (set_remote_traceframe): New function.
2860 (remote_fetch_registers, remote_store_registers)
2861 (remote_xfer_memory, remote_xfer_partial)
2862 (remote_get_trace_state_variable_value): Make sure the remote
2863 traceframe matches gdb's current traceframe.
2864 (remote_trace_find): If looking up a traceframe using any method
2865 other than by number, make sure the current remote traceframe
2866 matches gdb's current traceframe. Update the current remote
2867 traceframe if the lookup succeeded.
2868 * infrun.c (fetch_inferior_event): Adjust.
2869 * tracepoint.h (set_current_traceframe): Declare.
2870 (get_traceframe_number, set_traceframe_number): Add describing
2873 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2875 Mark pieces of values as unavailable if the corresponding memory
2878 * valops.c: Include tracepoint.h.
2879 (value_fetch_lazy): Use read_value_memory.
2880 (read_value_memory): New.
2881 * value.h (read_value_memory): Declare.
2882 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2883 * exec.c (section_table_available_memory): New function.
2884 * exec.h (section_table_available_memory): Declare.
2886 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2888 * Makefile.in (SFILES): Add memrange.c.
2889 (HFILES_NO_SRCDIR): Add memrange.h.
2890 (COMMON_OBS): Add memrange.o.
2891 * memrange.c: New file.
2892 * memrange.h: New file.
2893 * tracepoint.c: Include memrange.h.
2894 (struct mem_range): Delete.
2895 (mem_range_s): Delete.
2896 (traceframe_available_memory): New function.
2897 * tracepoint.h (traceframe_available_memory): Declare.
2899 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2901 * target.h (struct traceframe_info): Forward declare.
2902 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2903 (struct target_ops) <to_traceframe_info>: New field.
2904 (target_traceframe_info): New.
2905 * target.c (update_current_target): Inherit and default
2907 * remote.c (PACKET_qXfer_traceframe_info): New.
2908 (remote_protocol_features): Register qXfer:traceframe-info:read.
2909 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2910 (remote_traceframe_info): New.
2911 (init_remote_ops): Install it.
2912 (_initialize_remote): Install "set/show remote traceframe-info"
2914 * tracepoint.h (parse_traceframe_info): Declare.
2915 * tracepoint.c (struct mem_range): New.
2916 (mem_range_s): New typedef.
2917 (struct traceframe_info): New.
2918 (traceframe_info): New global.
2919 (free_traceframe_info): New function.
2920 (clear_traceframe_info): New function.
2921 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2923 (build_traceframe_info): New function.
2924 (tfile_traceframe_info): New function.
2925 (init_tfile_ops): Install tfile_traceframe_info.
2926 (traceframe_info_start_memory, free_result): New functions.
2927 (memory_attributes, traceframe_info_elements): New globals.
2928 (parse_traceframe_info, get_traceframe_info): New functions.
2929 * features/traceframe-info.dtd: New file.
2930 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2932 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2934 Base support for <unavailable> value contents.
2936 * value.h (value_bytes_available): Declare.
2937 (mark_value_bytes_unavailable): Declare.
2938 * value.c (struct range): New struct.
2939 (range_s): New typedef.
2940 (ranges_overlap): New function.
2941 (range_lessthan): New function.
2942 (ranges_contain_p): New function.
2943 (struct value) <unavailable>: New field.
2944 (value_bytes_available): New function.
2945 (mark_value_bytes_unavailable): New function.
2946 (require_not_optimized_out): Constify parameter.
2947 (require_available): New function.
2948 (value_contents_all, value_contents): Require all bytes be
2950 (value_free): Free `unavailable'.
2951 (value_copy): Copy `unavailable'.
2952 * valprint.h (val_print_unavailable): Declare.
2953 * valprint.c (valprint_check_validity): Rename `offset' parameter
2954 to `embedded_offset'. If printing a scalar, check whether the
2955 value chunk is available.
2956 (val_print_unavailable): New.
2957 (val_print_scalar_formatted): Check whether the value is
2959 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2960 pretty-printing unavailable values.
2962 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2965 * c-typeprint.c (c_type_print_args): Update the function comment. New
2966 variable param_type, initialize it. Remove const/volatile qualifiers
2967 for language_cplus and !show_artificial. Use param_type.
2969 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2971 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2972 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2973 * symtab.h (struct symtab) <next>: Comment extension.
2975 2011-02-12 Yao Qi <yao@codesourcery.com>
2977 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2979 2011-02-11 Yao Qi <yao@codesourcery.com>
2981 * common/Makefile.in: Add copyright header.
2983 2011-02-11 Pedro Alves <pedro@codesourcery.com>
2985 * infrun.c (proceed): Move switching out and in of tfind mode from
2987 (fetch_inferior_event): ... to here.
2989 2011-02-11 Yao Qi <yao@codesourcery.com>
2991 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2993 * configure.ac: Add common to sub dir.
2994 * configure: Regenerate.
2996 2011-02-11 Yao Qi <yao@codesourcery.com>
3000 * common/Makefile.in: New.
3001 * common/configure.ac: New.
3002 * common/aclocal.m4: New.
3003 * common/configure: Generate.
3005 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3007 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3008 side of the parenthesis.
3011 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3012 * vec.h (VEC_block_remove): Fix comment.
3014 2011-02-08 Michael Snyder <msnyder@vmware.com>
3016 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3018 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3020 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3021 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3024 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3027 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3029 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3030 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3032 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3034 * dwarf2read.c (read_subroutine_type): Set special calling
3035 convention flag for functions compiled by IBM XL C for OpenCL.
3036 * ppc-sysv-tdep.c: Include "dwarf2.h"
3037 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3039 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3040 IBM OpenCL vector types calling convention.
3041 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3042 (ppc_sysv_abi_broken_return_value): Likewise.
3043 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3044 types calling convention.
3045 (ppc64_sysv_abi_return_value): Likewise.
3046 * spu-tdep.c: Include "dwarf2.h"
3047 (spu_return_value): Implement IBM OpenCL vector types calling
3050 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3053 correct ABI for AltiVec vector arguments.
3055 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3057 * valprint.c (val_print): Extend comment.
3058 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3059 interface explanation to val_print.
3060 (ada_val_print_array): Adjust comment to current interface.
3061 (print_field_values): Adjust comment to current interface.
3062 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3063 explanation to val_print.
3064 * f-valprint.c (f_val_print): Ditto.
3065 * jv-valprint.c (java_val_print): Ditto.
3066 * m2-valprint.c (m2_val_print): Ditto.
3067 * p-valprint.c (pascal_val_print): Ditto.
3069 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3071 * breakpoint.c (parse_breakpoint_sals): Fix description.
3073 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3074 Oguz Kayral <oguzkayral@gmail.com>
3076 * python/py-inferior.c (python_on_normal_stop): New function.
3077 (python_on_resume): New function.
3078 (python_inferior_exit): New function.
3079 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3080 inferior_exit observers.
3081 * python/py-evtregistry.c: New file.
3082 * python/py-threadevent.c : New file.
3083 * python/py-event.c: New file.
3084 * python/py-evts.c: New file.
3085 * python/py-continueevent.c: New file.
3086 * python/py-bpevent.c: New file.
3087 * python/py-signalevent.c: New file.
3088 * python/py-exetiedevent.c: New file.
3089 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3090 Move struct breakpoint_object from here...
3091 * python/python-internal.h: ... to here.
3092 * python/py-event.h: New file.
3093 * python/py-events.h: New file.
3094 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3095 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3096 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3097 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3098 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3099 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3100 Add build rules for all the above.
3102 2011-02-04 Tom Tromey <tromey@redhat.com>
3104 * dwarf2read.c (dwarf2_section_empty_p): New function.
3105 (dwarf2_read_section): Use dwarf2_section_empty_p.
3106 (dwarf2_section_size): New function.
3107 (dwarf2_get_section_info): Unconditionally read section.
3108 (dwarf2_read_index): Use dwarf2_section_empty_p.
3109 (partial_read_comp_unit_head): Use dwarf2_section_size.
3110 (dwarf2_symbol_mark_computed): Likewise.
3112 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3114 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3116 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3118 * mips-linux-tdep.c: Include xml-syscall.h.
3119 (mips_linux_get_syscall_number): New function.
3120 (mips_linux_init_abi): Add calls to
3121 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3122 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3123 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3124 * syscalls/mips-n32-linux.xml: New file.
3125 * syscalls/mips-n64-linux.xml: New file.
3126 * syscalls/mips-o32-linux.xml: New file.
3128 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3130 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3131 Complain about inverted range entries.
3132 (dwarf2_record_block_ranges): Likewise.
3134 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3137 * breakpoint.c (update_watchpoint): Fix name of the
3138 update_global_location_list function.
3139 (print_one_breakpoint): Fix typo.
3140 (_initialize_breakpoint): Remove extra space in hbreak help
3142 * breakpoint.h (struct bp_location) <length>: Fix field
3145 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3147 * regcache.c (registers_changed_ptid): Don't explictly always
3148 clear `current_regcache'. Only clear current_thread_ptid and
3149 current_thread_arch when PTID matches. Only reinit the frame
3150 cache if PTID matches the current inferior_ptid. Move alloca(0)
3152 (registers_changed): ... here.
3154 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3156 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3157 starts with __stack_chk_guard as stack guard symbol.
3159 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3161 * disasm.c (compare_lines): Handle the end of sequence markers
3162 within the line table to better support disassembling over
3163 compilation unit boundaries.
3165 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3167 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3168 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3169 implementation even if no symbols are available.
3170 (thumb_analyze_prologue): Update call to skip_prologue_function.
3171 (arm_analyze_prologue): Likewise.
3173 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3175 * arm-tdep.c: Include "observer.h".
3176 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3177 (arm_exidx_data_key): New static variable.
3178 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3179 (struct arm_exidx_data): Likewise.
3180 (arm_exidx_data_free): New function.
3181 (arm_compare_exidx_entries): Likewise.
3182 (arm_obj_section_from_vma): Likewise.
3183 (arm_exidx_new_objfile): Likewise.
3184 (arm_find_exidx_entry): Likewise.
3185 (arm_exidx_fill_cache): Likewise.
3186 (arm_exidx_unwind_sniffer): Likewise.
3187 (arm_exidx_unwind): New global variable.
3188 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3189 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3190 observer. Register arm_exidx_data_key as objfile data.
3192 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3194 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3195 due to accessing uninitialized variable. Fix indentation.
3197 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3199 * c-valprint.c (c_value_print): When doing virtual base pointer
3200 adjustment, create a new value with adjusted contents rather than
3201 changing the contents of the value being printed (and getting it
3204 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3206 * xml-support.c (xml_find_attribute): New.
3207 (xinclude_start_include): Use it.
3208 * xml-support.h (xml_find_attribute): Declare.
3209 * memory-map.c (memory_map_start_memory)
3210 (memory_map_start_property): Use xml_find_attribute.
3211 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3213 * remote.c (start_thread): Use xml_find_attribute.
3214 * solib-target.c (library_list_start_segment)
3215 (library_list_start_section, library_list_start_library)
3216 (library_list_start_list): Use xml_find_attribute.
3217 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3218 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3219 (tdesc_start_field): Use xml_find_attribute.
3221 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3223 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3224 (BUILD_OCL_VTYPES): Update.
3226 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3228 * configure.ac: Work around non-GNU sed limitation when computing
3229 python version number.
3230 * configure: Regenerate.
3232 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3234 Fix debug printing of TYPE_INSTANCE.
3235 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3236 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3238 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3240 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3241 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3242 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3243 * ada-operator.inc: Rename the file to ...
3244 * ada-operator.def: ... here, wrap all the entries by macro OP.
3245 * expprint.c (op_name_standard): Remove all the entries. Include
3246 "std-operator.def" instead.
3247 * expression.h (enum exp_opcode): Include "std-operator.def" and
3248 "ada-operator.def". Move all the entries ...
3249 * std-operator.def: ... here, wrap all the entries by macro OP.
3251 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3253 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3254 * breakpoint.c (remove_jit_event_breakpoints): New function.
3255 * jit.c (jit_descriptor_addr): Delete.
3256 (registering_code): Delete.
3257 (clear_int): Delete.
3258 (jit_inferior_data): New variable.
3259 (struct jit_inferior_data): New type.
3260 (get_jit_inferior_data): New function.
3261 (jit_inferior_data_cleanup): New function.
3262 (jit_read_descriptor): Adjust.
3263 (jit_register_code): Adjust.
3264 (jit_breakpoint_re_set_internal): New function; move code here ...
3265 (jit_inferior_init): ... from here.
3266 (jit_breakpoint_re_set): Adjust.
3267 (jit_reset_inferior_data_and_breakpoints): New function.
3268 (jit_inferior_created_observer): Adjust.
3269 (jit_inferior_exit_hook): Adjust.
3270 (jit_executable_changed_observer): New function.
3271 (jit_event_handler): Adjust.
3272 (_initialize_jit): Adjust.
3274 2011-01-31 Michael Snyder <msnyder@vmware.com>
3276 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3279 2011-01-31 Tom Tromey <tromey@redhat.com>
3282 * python/python.c (execute_gdb_command): Call
3283 prevent_dont_repeat.
3284 * top.c (suppress_dont_repeat): New global.
3285 (dont_repeat): Use it.
3286 (prevent_dont_repeat): New function.
3287 * command.h (prevent_dont_repeat): Declare.
3289 2011-01-31 Tom Tromey <tromey@redhat.com>
3291 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3292 * python/py-breakpoint.c (bppy_set_silent): Use
3293 breakpoint_set_silent.
3294 (bppy_set_thread): Use breakpoint_set_thread.
3295 (bppy_set_task): Use breakpoint_set_task.
3296 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3297 (breakpoint_set_task): Declare.
3298 (make_breakpoint_silent): Remove.
3299 * breakpoint.c (breakpoint_set_silent): New function.
3300 (breakpoint_set_thread): Likewise.
3301 (breakpoint_set_task): Likewise.
3302 (make_breakpoint_silent): Remove.
3304 2011-01-31 Tom Tromey <tromey@redhat.com>
3306 * breakpoint.h (user_breakpoint_p): Declare.
3307 * breakpoint.c (user_breakpoint_p): New function.
3308 (breakpoint_1): Use it.
3309 (save_breakpoints): Likewise.
3311 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3313 * configure.ac: Add handling of Python distribution on Windows.
3314 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3315 sysconfig variables are not defined, then do not use them.
3316 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3317 instead. On Windows, return all paths using forward-slashes
3318 rather than backslashes.
3320 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3322 * configure.ac: Remove fallback behavior for building
3323 against Python. Remove tweaking of Python include path.
3324 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3325 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3326 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3327 Always restore CPPFLAGS and LIBS after linking test.
3328 * configure: Regenerated.
3329 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3330 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3331 * python/python-internal.h: Adjust includes of Python .h files.
3333 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3335 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3338 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3340 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3343 2011-01-31 Yao Qi <yao@codesourcery.com>
3345 * arm-linux-nat.c: Update calls to regcache_register_status
3346 instead of regcache_valid_p.
3347 * aix-thread.c: Likewise.
3348 * i386gnu-nat.c: Likewise.
3350 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3353 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3354 touching TYPE_FIELD_ARTIFICIAL.
3356 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3358 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3361 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3363 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3364 selected, don't try iterating over the traceframe's blocks.
3365 (tfile_has_stack): If there's no traceframe selected, then there's
3367 (tfile_has_registers): If there's no traceframe selected, then
3368 there's no registers.
3370 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3372 * target.c (memory_xfer_partial): No need to restore shadows if we
3373 haven't read anything.
3375 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3377 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3378 and val_print_scalar_formatted.
3380 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3382 * tracepoint.c (tfile_read): New.
3383 (tfile_open): Use it.
3384 (tfile_get_traceframe_address): Use it.
3385 (tfile_trace_find): Use it.
3386 (walk_blocks_callback_func): New typedef.
3387 (match_blocktype): New function.
3388 (traceframe_walk_blocks): New function.
3389 (traceframe_find_block_type): New function.
3390 (tfile_fetch_registers, tfile_xfer_partial)
3391 (tfile_get_trace_state_variable_value): Use
3392 traceframe_find_block_type and tfile_read.
3394 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3396 * remote-mips.c: Add internationalization mark ups. Remove
3397 trailing \n from already marked up strings.
3399 2011-01-26 Tom Tromey <tromey@redhat.com>
3401 * python/py-prettyprint.c (print_string_repr): Clear
3402 'addressprint' option when calling val_print_string.
3403 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3404 option when calling val_print_string.
3406 2011-01-26 Tom Tromey <tromey@redhat.com>
3408 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3410 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3412 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3413 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3414 (gdb_py_long_as_ulongest): New defines.
3415 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3416 (gdb_py_int_as_long): Declare.
3417 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3418 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3419 (valpy_long): Add comment.
3420 * python/py-utils.c (get_addr_from_python): Use
3421 gdb_py_long_as_ulongest. Handle overflow properly.
3422 (gdb_py_object_from_longest): New function.
3423 (gdb_py_object_from_ulongest): Likewise.
3424 (gdb_py_int_as_long): Likewise.
3425 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3426 * python/py-symtab.c (salpy_get_pc): Use
3427 gdb_py_long_from_ulongest.
3428 (salpy_get_line): Use PyInt_FromLong.
3429 * python/py-param.c (set_parameter_value): Use
3431 * python/py-lazy-string.c (stpy_get_address): Use
3432 gdb_py_long_from_ulongest.
3433 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3434 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3435 * python/py-breakpoint.c (bppy_set_thread): Use
3437 (bppy_set_task): Likewise.
3438 (bppy_set_ignore_count): Likewise.
3439 (bppy_set_hit_count): Likewise.
3440 * python/py-block.c (blpy_get_start): Use
3441 gdb_py_object_from_ulongest.
3442 (blpy_get_end): Likewise.
3443 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3445 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3448 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3449 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3450 equality test for objfile, initialize addr_low if needed.
3452 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3454 * tui/tui-regs.c (tui_register_format): Remove dead code.
3456 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3458 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3459 instead of print_scalar_formatted.
3460 (print_scalar_formatted): Don't handle 's' format strings here,
3461 and add an assertion that we never see such format here.
3462 * valprint.h (val_print_scalar_formatted): Declare.
3463 * valprint.c (val_print_scalar_formatted): New.
3464 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3465 instead of print_scalar_formatted.
3466 * jv-valprint.c (java_val_print): Ditto.
3467 * p-valprint.c (pascal_val_print): Ditto.
3468 * ada-valprint.c (ada_val_print_1): Ditto.
3469 * f-valprint.c (f_val_print): Ditto.
3470 * infcmd.c (registers_info): Ditto.
3471 * m2-valprint.c (m2_val_print): Ditto.
3473 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3475 * m2-valprint.c (print_unbounded_array): Pass
3476 value_contents_for_printing rather than value_contents, to
3477 m2_print_array_contents. Also pass in the value.
3479 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3481 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3482 (save_gdb_index_command): Switch to .gdb_index version 4.
3484 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3486 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3487 than frame_register, and always pass a valid value to val_print.
3489 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3491 Centralize printing "<optimized out>".
3493 * valprint.h (val_print_optimized_out): Declare.
3494 * cp-valprint.c (cp_print_value_fields): Use
3495 val_print_optimized_out.
3496 * jv-valprint.c (java_print_value_fields): Ditto.
3497 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3498 * printcmd.c (print_formatted): Ditto.
3499 * valprint.c (valprint_check_validity): Ditto.
3500 (value_check_printable): Ditto.
3501 (val_print_optimized_out): New.
3503 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3505 * infcmd.c (default_print_registers_info): Allocate values so to
3506 never pass a NULL value to val_print.
3508 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3510 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3511 boolean. Make sure to always pass a value that matches the
3512 contents buffer to callees. Preserve `address' for following
3514 * value.c (value_contents_for_printing_const): New.
3515 (value_address): Constify value argument.
3516 * value.h (value_contents_for_printing_const): Declare.
3517 (value_address): Constify value argument.
3519 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3521 * regcache.c (struct regcache_descr): Rename
3522 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3523 and sizeof_cooked_register_valid_p to
3524 sizeof_cooked_register_status.
3525 (init_regcache_descr): Adjust.
3526 (struct regcache): Rename register_valid_p field to
3528 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3529 (do_cooked_read): Adjust.
3530 (regcache_valid_p): Rename to ...
3531 (regcache_register_status): ... this. Adjust.
3532 (regcache_invalidate): Adjust.
3533 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3535 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3536 as unavailable, not valid.
3537 (regcache_dump): Adjust.
3538 * regcache.h (enum register_status): New.
3539 (regcache_register_status): Declare.
3540 (regcache_invalidate): Delete declaration.
3541 * corelow.c (get_core_registers): Adjust.
3542 * tracepoint.c (tfile_fetch_registers): Adjust.
3543 * trad-frame.c (REG_VALUE): Rename to ...
3544 (TF_REG_VALUE): ... this.
3545 (REG_UNKNOWN): Rename to ...
3546 (TF_REG_UNKNOWN): ... this.
3547 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3548 * mi/mi-main.c (register_changed_p): Adjust.
3550 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3552 * regcache.c (struct regcache_descr): Remove outdated comment.
3553 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3555 (regcache_xmalloc): Rename to ...
3556 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3557 Allocate the regcache type accordingly.
3558 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3559 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3560 cooked registers, not raw.
3561 (regcache_dup_no_passthrough): Delete.
3562 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3563 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3564 mention obsolete write_register_bytes.
3565 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3567 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3569 Stop remote_read_bytes from handling partial reads itself.
3571 * remote-fileio.c: Include target.h.
3572 (remote_fileio_write_bytes): Delete.
3573 (remote_fileio_func_open, remote_fileio_func_write)
3574 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3576 (remote_fileio_func_stat): Use target_read_memory and
3577 target_write_memory.
3578 (remote_fileio_func_gettimeofday): Use target_write_memory.
3579 (remote_fileio_func_system): Use target_read_memory.
3580 * remote.c (remote_write_bytes): Make it static.
3581 (remote_read_bytes): Don't handle partial reads here.
3582 * remote.h (remote_read_bytes): Delete declaration.
3584 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3586 Simplify XML parsing a bit.
3588 * xml-support.h (gdb_xml_parse_quick): Declare.
3589 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3590 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3592 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3593 gdb_xml_create_parser_and_cleanup_1.
3594 (gdb_xml_parse_quick): New.
3595 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3596 * osdata.c (osdata_parse): Ditto.
3597 * remote.c (remote_threads_info): Ditto.
3598 * solib-target.c (solib_target_parse_libraries): Ditto.
3599 * xml-syscall.c (syscall_parse_xml): Ditto.
3600 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3602 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3604 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3605 with remote-mips.o added to gdb_target_obs.
3606 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3608 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3610 * ada-valprint.c (val_print_packed_array_elements): Pass the
3611 correct struct value to val_print.
3612 (ada_val_print_1): Ditto.
3614 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3616 Don't lose embedded_offset in printing routines throughout.
3618 * valprint.h (val_print_array_elements): Change prototype.
3619 * valprint.c (val_print_array_elements): Add `embedded_offset'
3620 parameter, and adjust to pass it down to val_print, while passing
3621 `valaddr' or `address' unmodified. Take embedded_offset into
3622 account when checking repetitions.
3623 * c-valprint.c (c_val_print): Pass embedded_offset to
3624 val_print_array_elements instead of adjusting `valaddr' and
3626 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3627 embedded_offset to val_print_array_elements instead of adjusting
3629 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3630 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3631 val_print_array_elements and pascal_object_print_value_fields
3632 instead of adjusting `valaddr'.
3633 (pascal_object_print_value_fields): Add `offset' parameter, and
3635 (pascal_object_print_value): Add `offset' parameter, and adjust to
3637 (pascal_object_print_static_field): Use
3638 value_contents_for_printing/value_embedded_offset, rather than
3640 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3641 parameter, and adjust to use it. Use
3642 value_contents_for_printing/value_embedded_offset, rather than
3644 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3645 (ada_val_print_array): Add `offset' parameter, and adjust to use
3647 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3648 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3649 Instead work with offsets. Use
3650 value_contents_for_printing/value_embedded_offset, rather than
3651 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3652 and use value_from_pointer to extract a target pointer, rather
3653 than value_from_longest.
3654 (print_variant_part): Add `offset' parameter. Replace
3655 `outer_valaddr' parameter by a new `outer_offset' parameter.
3656 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3657 (ada_value_print): Use
3658 value_contents_for_printing/value_embedded_offset, rather than
3660 (print_record): Add `offset' parameter, and adjust to pass it
3662 (print_field_values): Add `offset' parameter. Replace
3663 `outer_valaddr' parameter by a new `outer_offset' parameter.
3664 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3665 Use value_contents_for_printing/value_embedded_offset, rather than
3667 * d-valprint.c (dynamic_array_type): Use
3668 value_contents_for_printing/value_embedded_offset, rather than
3670 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3671 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3672 (java_print_value_fields): Take `offset' into account. Don't
3673 re-adjust `valaddr'. Instead pass down adjusted offsets.
3674 (java_val_print): Take `embedded_offset' into account. Pass it to
3675 java_print_value_fields.
3676 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3677 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3678 down adjusted offsets.
3679 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3680 (f_val_print): Take `embedded_offset' into account.
3682 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3684 * inflow.c: Include "gdbcmd.h".
3685 (interactive_mode): New static global, moved here from top.c.
3686 (show_interactive_mode): New function, moved here from top.c.
3687 use gdb_has_a_terminal instead of input_from_terminal_p to
3688 determine the current mode.
3689 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3691 (_initialize_inflow): Add the "set/show interactive-mode"
3692 commands. Moved here from top.c, after having adjusted slightly
3694 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3696 (input_from_terminal_p): Remove handling of "interactive-mode"
3697 setting, moved to infow.c.
3698 (init_main): Remove creation of the "set/show interactive-mode"
3699 commands, moved to inflow.c.
3701 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3703 * NEWS: Add entry for native ia64-hpux support.
3705 2011-01-19 Tom Tromey <tromey@redhat.com>
3708 * thread.c (free_thread): Free 'name'.
3709 (print_thread_info): Emit thread name. Change CLI output.
3710 (thread_name_command): New function.
3711 (do_captured_thread_select): Emit newline.
3712 (_initialize_thread): Register 'thread name' command.
3713 * target.h (struct target_ops) <to_thread_name>: New field.
3714 (target_thread_name): New macro.
3715 * target.c (update_current_target): Handle to_thread_name.
3716 * python/py-infthread.c (thpy_get_name): New function.
3717 (thpy_set_name): Likewise.
3718 (thread_object_getset): Add "name".
3719 * linux-nat.c (linux_nat_thread_name): New function.
3720 (linux_nat_add_target): Set to_thread_name.
3721 * gdbthread.h (struct thread_info) <name>: New field.
3723 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3725 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3726 (ada_val_print_1): Likewise.
3728 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3730 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3731 upper limit address is not greater than the function end address
3732 when the upper limit could not be computed using the debugging
3735 2011-01-17 Tom Tromey <tromey@redhat.com>
3737 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3739 * utils.c: Include gdb_regex.h.
3740 (do_regfree_cleanup): New function.
3741 (make_regfree_cleanup): Likewise.
3742 (get_regcomp_error): Likewise.
3743 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3745 2011-01-17 Tom Tromey <tromey@redhat.com>
3747 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3750 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3752 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3753 for internal variables.
3754 (last_was_structop): New static variable.
3755 (COMPLETE): New token.
3756 (field_exp): New rule to group all '.' suffix handling.
3757 Add mark_struct_expression calls when approriate to be able
3758 to correctly find fields for completion.
3759 (yylex): Adapt to handle field completion and set INTVAR when
3762 2011-01-14 Yao Qi <yao@codesourcery.com>
3764 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3765 save_reggroup, restore_reggroup and all_reggroup.
3767 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3769 * ada-valprint. (ada_printchar): Use the correct type length
3770 in call to ada_emit_char.
3771 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3773 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3775 * solib-som.h (hpux_major_release): Declare variable here.
3776 * solib-som.c: Remove <sys/utsname.h> header.
3777 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3778 (hpux_major_release): Make global, change default value to
3779 DEFAULT_HPUX_MAJOR_RELEASE.
3780 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
3781 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3782 Add "solib-som.h" header.
3783 (set_hpux_major_release): New function.
3784 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3786 2011-01-14 Mike Frysinger <vapier@gentoo.org>
3788 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3790 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3792 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3793 new-line at end of warning message.
3794 (ia64_hpux_store_register): Remove trailing new-line at end of
3796 * ia64-hpux-tdep.c: Rephrase comment.
3797 * solib-ia64-hpux.c (struct dld_info): Change type of field
3798 dld_flags from "long long" to ULONGEST.
3800 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3802 * target.h (deprecated_child_ops): Delete declaration.
3803 * target.c (deprecated_child_ops): Delete definition.
3805 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3807 * Makefile.in (hpux-thread.o): Delete rule.
3808 * configure.ac: Don't check for HPUX DCE threads support.
3809 * configure, config.in: Regenerate.
3810 * hppa-hpux-nat.c (child_suppress_run): Delete.
3811 (hppa_hpux_child_can_run): Delete.
3812 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3813 * hpux-thread.c: Delete.
3815 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3817 * hpux-thread.c (hpux_pid_to_str): Delete.
3819 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3821 * ada-valprint.c (ada_emit_char): Remove strange code.
3822 Check that c is <= UCHAR_MAX before passing it to isascii.
3823 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3825 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3827 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3828 to the case where instream is stdin.
3830 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3832 * ia64-tdep.h (struct regcache): Forward declare.
3833 (struct ia64_infcall_ops): New struct type.
3834 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3836 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3837 Renames ia64_find_global_pointer.
3838 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3839 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3840 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3842 (ia64_infcall_ops): New static global constant.
3843 (ia64_gdbarch_init): Set tdep->infcall_ops.
3844 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3845 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3846 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3847 (ia64_hpux_dummy_code): New static global constant.
3848 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3849 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3850 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3852 (ia64_hpux_infcall_ops): New static global constant.
3853 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3854 for inferior function calls to work properly on ia64-hpux.
3856 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3858 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3859 * ia64-tdep.h (struct frame_info): forward declaration.
3860 (struct gdbarch_tdep): Add field size_of_register_frame.
3861 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3862 to determine the size of the register frame.
3863 (ia64_size_of_register_frame): New function.
3864 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3865 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3866 (IA64_HPUX_UREG_REASON): New macro.
3867 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3869 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3870 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3871 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3874 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3876 Add support for ia64-hpux.
3877 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3878 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3880 * configure.host: Add handling for ia64-hpux hosts. Add associated
3882 * configure.tgt: Add handling for ia64-hpux targets.
3883 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3884 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3885 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3887 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3889 [ttrace] Compute thread list immediately after attach.
3890 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3892 (inf_ttrace_attach): Use it.
3894 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3896 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3897 if we could not determine the frame's function address. Instead,
3898 use the frame's PC, and then continue.
3900 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3902 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3903 not already defined.
3905 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3907 * ia64-tdep.c (ia64_struct_type_p): New function.
3908 (ia64_extract_return_value): Handle integral values that are
3909 less than 8 bytes long.
3910 (ia64_push_dummy_call): Likewise.
3912 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3914 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3915 floatformat_ia64_ext.
3916 (floatformat_ia64_ext_big): New static const.
3917 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3919 2011-01-12 Tom Tromey <tromey@redhat.com>
3921 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3923 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3924 (mi_cmd_thread_list_ids): Likewise.
3925 (mi_cmd_data_list_changed_registers): Likewise.
3926 (mi_cmd_data_list_register_values): Likewise.
3927 (mi_cmd_data_write_register_values): Likewise.
3928 (mi_cmd_data_evaluate_expression): Likewise.
3929 (mi_cmd_data_read_memory): Likewise.
3930 (mi_cmd_data_read_memory_bytes): Likewise.
3931 (mi_cmd_data_write_memory): Likewise.
3932 (mi_cmd_enable_timings): Likewise.
3933 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3934 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3935 (mi_cmd_var_delete): Likewise.
3936 (mi_cmd_var_set_format): Likewise.
3937 (mi_cmd_var_show_format): Likewise.
3938 (mi_cmd_var_info_num_children): Likewise.
3939 (mi_cmd_var_list_children): Likewise.
3940 (mi_cmd_var_info_type): Likewise.
3941 (mi_cmd_var_info_expression): Likewise.
3942 (mi_cmd_var_show_attributes): Likewise.
3943 (mi_cmd_var_assign): Likewise.
3944 (mi_cmd_var_update): Likewise.
3945 (mi_cmd_enable_pretty_printing): Likewise.
3946 (mi_cmd_var_set_update_range): Likewise.
3947 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3949 (mi_cmd_target_file_put): Likewise.
3950 (mi_cmd_target_file_delete): Likewise.
3951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3953 (mi_cmd_stack_info_depth): Likewise.
3954 (mi_cmd_stack_list_locals): Likewise.
3955 (mi_cmd_stack_list_args): Likewise.
3956 (mi_cmd_stack_select_frame): Likewise.
3957 (mi_cmd_stack_select_frame): Likewise.
3958 (mi_cmd_stack_info_frame): Likewise.
3959 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3961 (mi_cmd_file_list_exec_source_files): Likewise.
3962 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3963 (mi_cmd_env_cd): Likewise.
3964 (mi_cmd_env_path): Likewise.
3965 (mi_cmd_env_dir): Likewise.
3966 (mi_cmd_inferior_tty_show): Likewise.
3967 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3968 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3969 (mi_cmd_break_watch): Likewise.
3971 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3973 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3974 (ppc_linux_insert_hw_breakpoint): Likewise.
3975 (ppc_linux_remove_hw_breakpoint): Likewise.
3976 (ppc_linux_insert_watchpoint): Likewise.
3978 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3979 Jan Kratochvil <jan.kratochvil@redhat.com>
3981 PR fortran/11104 and DWARF unbound arrays detection.
3982 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3983 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3984 unspecified upper bound.
3985 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3986 variables array_size_array, tmp_type and offset_item. New variable
3987 array. Remove call to f77_get_upperbound. New variables array_type
3988 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3989 the final call to deprecated_set_value_type.
3991 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3993 Make value allocations more lazy.
3994 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3995 instead of allocate_value and set_value_lazy when possible.
3996 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
3997 instead of allocate_value and set_value_lazy.
3998 * findvar.c (value_of_register_lazy): Likewise.
3999 (read_var_value): Remove V preallocation, call just check_typedef in
4000 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4001 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4002 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4003 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4004 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4005 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4006 the end, remove set_value_lazy there.
4007 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4008 instead of allocate_value and set_value_lazy when possible.
4009 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4010 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4011 of allocate_value and set_value_lazy.
4012 (value_from_contents_and_address): Use allocate_value_lazy instead of
4013 allocate_value and set_value_lazy when possible.
4015 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4017 * disasm.c (dump_insns): Support dumping opcodes for MI.
4018 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4019 dumping of instruction opcodes.
4021 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4023 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4026 2011-01-11 Tom Tromey <tromey@redhat.com>
4028 * thread.c (do_captured_thread_select): Emit newline before
4031 2011-01-11 Michael Snyder <msnyder@vmware.com>
4033 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4034 * score-tdep.c: Ditto.
4035 * score-tdep.h: Ditto.
4036 * ser-base.c: Ditto.
4037 * ser-go32.c: Ditto.
4040 * ser-mingw.c: Ditto.
4041 * ser-pipe.c: Ditto.
4043 * ser-unix.c: Ditto.
4044 * sh64-tdep.c: Ditto.
4045 * shnbsd-nat.c: Ditto.
4049 * solib-darwin.c: Ditto.
4050 * solib-frv.c: Ditto.
4052 * solib-irix.c: Ditto.
4053 * solib-osf.c: Ditto.
4054 * solib-pa64.c: Ditto.
4055 * solib-som.c: Ditto.
4056 * solib-spu.c: Ditto.
4057 * solib-sunos.c: Ditto.
4058 * solib-svr4.c: Ditto.
4060 * sol-thread.c: Ditto.
4064 * sparc64-linux-tdep.c: Ditto.
4065 * sparc64-tdep.c: Ditto.
4066 * sparc-linux-nat.c: Ditto.
4067 * sparc-linux-tdep.c: Ditto.
4068 * sparc-sol2-nat.c: Ditto.
4069 * sparc-sol2-tdep.c: Ditto.
4070 * sparc-tdep.c: Ditto.
4071 * sparc-tdep.h: Ditto.
4072 * spu-tdep.c: Ditto.
4073 * stabsread.c: Ditto.
4074 * stabsread.h: Ditto.
4082 * target-descriptions.c: Ditto.
4083 * target-descriptions.h: Ditto.
4085 * target-memory.c: Ditto.
4086 * terminal.h: Ditto.
4089 * tracepoint.c: Ditto.
4090 * tracepoint.h: Ditto.
4091 * trad-frame.h: Ditto.
4092 * typeprint.c: Ditto.
4094 2011-01-11 Michael Snyder <msnyder@vmware.com>
4096 * ui-file.c: Comment cleanup, mostly periods and spaces.
4101 * v850-tdep.c: Ditto.
4102 * valarith.c: Ditto.
4104 * valprint.c: Ditto.
4105 * valprint.h: Ditto.
4110 * vax-tdep.c: Ditto.
4114 * windows-nat.c: Ditto.
4115 * windows-tdep.c: Ditto.
4116 * xcoffread.c: Ditto.
4117 * xcoffsolib.c: Ditto.
4118 * xml-support.c: Ditto.
4119 * xstormy16-tdep.c: Ditto.
4120 * xtensa-tdep.c: Ditto.
4121 * xtensa-tdep.h: Ditto.
4123 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4125 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4126 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4128 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4129 Thiago Jung Bauermann <bauerman@br.ibm.com>
4131 Implement support for PowerPC BookE ranged watchpoints.
4133 (struct breakpoint_ops) <resources_needed>: New method.
4134 Initialize to NULL in all existing breakpoint_ops instances.
4135 (struct breakpoint) <exact>: New field.
4136 (target_exact_watchpoints): Declare external global.
4137 * breakpoint.c (target_exact_watchpoints): New global flag.
4138 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4139 b->enable_state to bp_enabled before calling
4140 hw_watchpoint_used_count.
4141 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4142 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4144 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4145 if the watchpoint is exact.
4146 (resources_needed_watchpoint): New function.
4147 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4148 (watch_command_1): Set b->exact if the user asked for an exact
4149 watchpoint and one can be set.
4150 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4151 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4152 the user asks for an exact watchpoint and one can be set. Return
4153 number of needed debug registers to watch the expression.
4154 * gdbtypes.c (is_scalar_type): New function, based on
4155 valprint.c:scalar_type_p.
4156 (is_scalar_type_recursive): New function.
4157 * gdbtypes.h (is_scalar_type_recursive): Declare.
4158 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4159 handle regions when ranged watchpoints are available.
4160 (create_watchpoint_request): New function.
4161 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4162 create_watchpoint_request.
4163 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4164 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4165 `set powerpc' and `show powerpc' commands.
4166 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4167 Mention documentation comment in the target macro.
4168 (target_region_ok_for_hw_watchpoint): Document return value.
4170 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4172 * breakpoint.c (update_watchpoint): Decide on using a software or
4173 hardware watchpoint after the bp_locations are created.
4175 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4177 Convert hardware watchpoints to use breakpoint_ops.
4178 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4179 <insert_location>: ... this. Return int instead of void.
4180 Accept pointer to struct bp_location instead of pointer to
4181 struct breakpoint. Adapt all implementations.
4182 (breakpoint_ops) <remove>: Rename to...
4183 <remove_location>: ... this. Accept pointer to struct bp_location
4184 instead of pointer to struct breakpoint. Adapt all implementations.
4185 * breakpoint.c (insert_catchpoint): Delete function.
4186 (insert_bp_location): Call the watchpoint or catchpoint's
4187 breakpoint_ops.insert method.
4188 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4189 breakpoint_ops.remove method.
4190 (insert_watchpoint, remove_watchpoint): New functions.
4191 (watchpoint_breakpoint_ops): New structure.
4192 (watch_command_1): Initialize the OPS field.
4193 * inf-child.c (inf_child_insert_fork_catchpoint)
4194 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4195 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4196 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4198 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4199 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4200 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4201 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4202 * target.c (update_current_target): Change default implementation of
4203 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4204 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4205 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4206 to_set_syscall_catchpoint to return_one.
4207 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4208 (debug_to_insert_exec_catchpoint): Report return value.
4209 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4210 (to_insert_exec_catchpoint): Change declaration to return int instead
4213 2011-01-11 Michael Snyder <msnyder@vmware.com>
4215 * arm-tdep.c: Internationalization.
4218 * fork-child.c: Ditto.
4219 * nto-procfs.c: Ditto.
4220 * ppc-sysv-tdep.c: Ditto.
4222 * remote-mips.c: Ditto.
4224 * rs6000-nat.c: Ditto.
4225 * rs6000-tdep.c: Ditto.
4229 * xml-support.c: Ditto.
4230 * mi/mi-cmd-break.c: Ditto.
4231 * mi/mi-cmd-var.c: Ditto.
4232 * mi/mi-interp.c: Ditto.
4233 * mi/mi-main.c: Ditto.
4235 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4237 * remote-sim.c (gdbsim_store_register): Update API to
4238 sim_store_register to check more error conditions.
4240 2011-01-10 Michael Snyder <msnyder@vmware.com>
4242 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4243 * nto-tdep.c: Ditto.
4244 * nto-tdep.h: Ditto.
4245 * objc-exp.y: Ditto.
4246 * objc-lang.c: Ditto.
4247 * objfiles.c: Ditto.
4248 * objfiles.h: Ditto.
4249 * observer.c: Ditto.
4250 * opencl-lang.c: Ditto.
4253 * parser-defs.h: Ditto.
4256 * posix-hdep.c: Ditto.
4257 * ppcbug-rom.c: Ditto.
4258 * ppc-linux-nat.c: Ditto.
4259 * ppc-linux-tdep.c: Ditto.
4260 * ppc-linux-tdep.h: Ditto.
4261 * ppcnbsd-tdep.c: Ditto.
4262 * ppcobsd-tdep.c: Ditto.
4263 * ppcobsd-tdep.h: Ditto.
4264 * ppc-sysv-tdep.c: Ditto.
4265 * ppc-tdep.h: Ditto.
4266 * printcmd.c: Ditto.
4267 * proc-abi.c: Ditto.
4268 * proc-flags.c: Ditto.
4270 * proc-utils.h: Ditto.
4271 * progspace.h: Ditto.
4272 * prologue-value.c: Ditto.
4273 * prologue-value.h: Ditto.
4274 * psympriv.h: Ditto.
4276 * p-typeprint.c: Ditto.
4277 * p-valprint.c: Ditto.
4278 * ravenscar-sparc-thread.c: Ditto.
4279 * ravenscar-thread.c: Ditto.
4280 * ravenscar-thread.h: Ditto.
4282 * regcache.c: Ditto.
4283 * regcache.h: Ditto.
4285 * remote-fileio.c: Ditto.
4286 * remote-fileio.h: Ditto.
4288 * remote-m32r-sdi.c: Ditto.
4289 * remote-mips.c: Ditto.
4290 * remote-sim.c: Ditto.
4291 * rs6000-aix-tdep.c: Ditto.
4292 * rs6000-nat.c: Ditto.
4293 * rs6000-tdep.c: Ditto.
4295 2011-01-10 Michael Snyder <msnyder@vmware.com>
4297 * charset.c (validate): Internationalization.
4298 * coffread.c (read_one_sym): Ditto.
4299 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4300 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4301 * inflow.c (new_tty): Ditto.
4302 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4303 * m32c-tdep.c (m32c_return_value): Ditto.
4304 * mep-tdep.c (mep_store_return_value): Ditto.
4305 * score-tdep.c (score7_fetch_insn): Ditto.
4306 * ser-mingw.c (pipe_windows_open): Ditto.
4307 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4308 * spu-tdep.c (spu_register_type): Ditto.
4309 * tracepoint.c (trace_find_command): Ditto.
4310 * valarith.c (value_pos): Ditto.
4312 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4314 * ada-valprint.c (printstr): Minor comment reformatting.
4316 2011-01-08 Michael Snyder <msnyder@vmware.com>
4318 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4321 2011-01-08 Michael Snyder <msnyder@vmware.com>
4323 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4324 * hppa-hpux-tdep.c: Ditto.
4325 * hppa-linux-nat.c: Ditto.
4326 * hppa-linux-tdep.c: Ditto.
4327 * hppanbsd-tdep.c: Ditto.
4328 * hppa-tdep.c: Ditto.
4329 * hppa-tdep.h: Ditto.
4330 * hpux-thread.c: Ditto.
4331 * i386-cygwin-tdep.c: Ditto.
4332 * i386-darwin-nat.c: Ditto.
4333 * i386gnu-nat.c: Ditto.
4334 * i386-linux-nat.c: Ditto.
4335 * i386-linux-tdep.c: Ditto.
4336 * i386-nat.c: Ditto.
4337 * i386-nat.h: Ditto.
4338 * i386nbsd-tdep.c: Ditto.
4339 * i386-sol2-nat.c: Ditto.
4340 * i386-stub.c: Ditto.
4341 * i386-tdep.c: Ditto.
4342 * i386-tdep.h: Ditto.
4343 * i387-tdep.c: Ditto.
4344 * ia64-linux-nat.c: Ditto.
4345 * ia64-linux-tdep.c: Ditto.
4346 * ia64-tdep.c: Ditto.
4350 * inferior.c: Ditto.
4351 * inferior.h: Ditto.
4357 * iq2000-tdep.c: Ditto.
4358 * irix5-nat.c: Ditto.
4364 * jv-typeprint.c: Ditto.
4365 * jv-valprint.c: Ditto.
4366 * language.c: Ditto.
4367 * language.h: Ditto.
4368 * linespec.c: Ditto.
4369 * linux-fork.c: Ditto.
4370 * linux-nat.c: Ditto.
4371 * linux-thread-db.c: Ditto.
4372 * lm32-tdep.c: Ditto.
4374 2011-01-08 Michael Snyder <msnyder@vmware.com>
4376 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4378 * m2-typeprint.c: Ditto.
4379 * m2-valprint.c: Ditto.
4380 * m32c-tdep.c: Ditto.
4381 * m32r-linux-nat.c: Ditto.
4382 * m32r-rom.c: Ditto.
4383 * m32r-tdep.c: Ditto.
4384 * m32r-tdep.h: Ditto.
4385 * m68hc11-tdep.c: Ditto.
4386 * m58klinux-nat.c: Ditto.
4387 * m68k-tdep.c: Ditto.
4388 * m88k-tdep.c: Ditto.
4389 * m88k-tdep.h: Ditto.
4390 * machoread.c: Ditto.
4391 * macrocmd.c: Ditto.
4392 * macroexp.c: Ditto.
4393 * macrotab.c: Ditto.
4396 * mdebugread.c: Ditto.
4397 * mdebugread.h: Ditto.
4400 * memory-map.h: Ditto.
4401 * mep-tdep.c: Ditto.
4402 * microblaze-rom.c: Ditto.
4403 * microblaze-tdep.c: Ditto.
4405 * mips-irix-tdep.c: Ditto.
4406 * mips-linux-nat.c: Ditto.
4407 * mips-linux-tdep.c: Ditto.
4408 * mips-linux-tdep.h: Ditto.
4409 * mipsnbsd-nat.c: Ditto.
4410 * mipsnbsd-tdep.c: Ditto.
4411 * mipsread.c: Ditto.
4412 * mips-tdep.c: Ditto.
4413 * mips-tdep.h: Ditto.
4414 * mn10300-linux-tdep.c: Ditto.
4415 * mn10300-tdep.c: Ditto.
4416 * mn10300-tdep.h: Ditto.
4419 * moxie-tdep.c: Ditto.
4420 * moxie-tdep.h: Ditto.
4423 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4425 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4427 2011-01-08 Robert Millan <rmh@gnu.org>
4429 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4431 2011-01-07 Michael Snyder <msnyder@vmware.com>
4433 * charset.c (_initialize_charset): Fix typo in string.
4435 2011-01-07 Michael Snyder <msnyder@vmware.com>
4437 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4439 * tui/tui-layout.c (tui_set_layout_for_display_command):
4440 Split line so that operator goes to beginning of line.
4441 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4442 assignment out of if statement.
4444 2011-01-07 Michael Snyder <msnyder@vmware.com>
4446 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4447 * ada-lang.h: Ditto.
4448 * ada-tasks.c: Ditto.
4449 * ada-valprint.c: Ditto.
4450 * aix-threads.c: Ditto.
4451 * alpha-linux-nat.c: Ditto.
4452 * alpha-linux-tdep.c: Ditto.
4453 * alpha-mdebug-tdep.c: Ditto.
4454 * alpha-nat.c: Ditto.
4455 * alpha-osf1-tdep.c: Ditto.
4456 * alpha-tdep.c: Ditto.
4457 * alphabsd-nat.c: Ditto.
4458 * alphabsd-tdep.c: Ditto.
4459 * amd64-darwin-tdep.c: Ditto.
4460 * amd64-linux-nat.c: Ditto.
4461 * amd64-linux-tdep.c: Ditto.
4462 * amd64-sol2-tdep.c: Ditto.
4463 * amd64-tdep.c: Ditto.
4464 * amd64-fbsd-tdep.c: Ditto.
4465 * amd64-nbsd-tdep.c: Ditto.
4466 * amd64-obsd-tdep.c: Ditto.
4467 * amd64-linux-nat.c: Ditto.
4468 * amd64-linux-tdep.c: Ditto.
4469 * arm-tdep.c: Ditto.
4470 * arm-tdep.h: Ditto.
4471 * armnbsd-nat.c: Ditto.
4472 * avr-tdep.c: Ditto.
4473 * bfin-tdep.c: Ditto.
4475 * c-typeprintc: Ditto.
4476 * c-valprint.c: Ditto.
4477 * coff-pe-read.h: Ditto.
4478 * coffreead.c: Ditto.
4479 * cris-tdep.c: Ditto.
4481 * darwin-nat-info.c: Ditto.
4482 * darwin-nat.c: Ditto.
4483 * dbug-rom.c: Ditto.
4487 * dec-thread.c: Ditto.
4489 * demangle.c: Ditto.
4490 * dicos-tdep.c: Ditto.
4491 * dictionary.c: Ditto.
4492 * dictionary.h: Ditto.
4493 * dink32-rom.c: Ditto.
4495 * doublest.c: Ditto.
4497 * dummy-frame.c: Ditto.
4498 * dwarf2-frame.c: Ditto.
4499 * dwarf2expr.c: Ditto.
4500 * dwarf2loc.c: Ditto.
4501 * dwarf2read.c: Ditto.
4505 * event-top.h: Ditto.
4506 * exceptions.c: Ditto.
4507 * exceptions.h: Ditto.
4509 * expprint.c: Ditto.
4510 * expression.h: Ditto.
4514 * f-typeprint.c: Ditto.
4515 * f-valprint.c: Ditto.
4516 * fbsd-nat.c: Ditto.
4518 * fork-child.c: Ditto.
4521 * frv-linux-tdep.c: Ditto.
4522 * frv-tdep.c: Ditto.
4524 * gdb-stabs.h: Ditto.
4525 * gdb_assert.h: Ditto.
4526 * gdb_string.h: Ditto.
4527 * gdb_thread_db.h: Ditto.
4528 * gdb_wait.h: Ditto.
4529 * gdbarch.sh: Ditto.
4531 * gdbthread.h: Ditto.
4532 * gdbtypes.c: Ditto.
4533 * gdbtypes.h: Ditto.
4536 * gnu-v2-abi.c: Ditto.
4537 * gnu-v3-abi.c: Ditto.
4538 * go32-nat.c: Ditto.
4539 * gdbarch.c: Regenerate.
4540 * gdbarch.h: Regenerate.
4542 2011-01-07 Michael Snyder <msnyder@vmware.com>
4544 * ax-gdb.c: Adjust some long output strings.
4545 * breakpoint.c: Ditto.
4550 * linux-nat.c: Ditto.
4551 * solib-pa64.c: Ditto.
4552 * solib-som.c: Ditto.
4554 2011-01-06 Tom Tromey <tromey@redhat.com>
4558 * python/python.c (GdbMethods): Add "newest_frame" method.
4559 * python/python-internal.h (gdbpy_newest_frame): Declare.
4560 * python/py-frame.c (gdbpy_newest_frame): New function.
4562 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4564 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4565 * jit.c (jit_debug): New variable.
4566 (show_jit_debug): New function.
4567 (struct target_buffer): Use ULONGEST.
4568 (bfd_open_from_target_memory): Likewise.
4569 (jit_register_code, jit_inferior_init): Add debug output.
4570 (_initialize_jit): Register "debug jit" command.
4572 2011-01-06 Tom Tromey <tromey@redhat.com>
4574 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4575 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4578 2011-01-06 Tom Tromey <tromey@redhat.com>
4580 * python/py-frame.c (frapy_block): Use get_frame_block.
4582 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4584 Do not stop on SIGPRIO signals by default
4585 * infrun.c (_initialize_infrun): Unset signal_stop and
4586 signal_print for TARGET_SIGNAL_PRIO.
4588 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4590 * ada-tasks.c: Fix style violation in comment.
4592 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4594 * linespec.c (decode_compound, find_method): Remove trailing \n
4595 at end of error string.
4596 * solib-irix.c (irix_current_sos): Likewise.
4597 * varobj.c (uninstall_variable): Likewise.
4599 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4601 * copyright.py: New script.
4602 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4603 Launch emacs without exec'ing. Call copyright.py afterwards.
4605 2011-01-05 Michael Snyder <msnyder@vmware.com>
4607 * addrmap.c: Shorten lines of >= 80 columns.
4608 * arch-utils.c: Ditto.
4609 * arch-utils.h: Ditto.
4611 * ax-general.c: Ditto.
4613 * blockframe.c: Ditto.
4614 * breakpoint.c: Ditto.
4615 * buildsym.c: Ditto.
4617 * c-typeprint.c: Ditto.
4619 * coffread.c: Ditto.
4623 * cp-namespace.c: Ditto.
4624 * cp-support.c: Ditto.
4625 * dbug-rom.c: Ditto.
4630 * dictionary.c: Ditto.
4632 * doublest.c: Ditto.
4633 * dwarf2-frame.c: Ditto.
4634 * dwarf2expr.c: Ditto.
4635 * dwarf2loc.c: Ditto.
4636 * dwarf2read.c: Ditto.
4639 * event-loop.c: Ditto.
4640 * event-loop.h: Ditto.
4641 * exceptions.h: Ditto.
4643 * expprint.c: Ditto.
4644 * expression.h: Ditto.
4646 * f-valprint.c: Ditto.
4648 * frame-base.c: Ditto.
4649 * frame-unwind.c: Ditto.
4650 * frame-unwind.h: Ditto.
4654 * gdb-stabs.h: Ditto.
4655 * gdb_assert.h: Ditto.
4656 * gdb_dirent.h: Ditto.
4657 * gdb_obstack.h: Ditto.
4659 * gdbtypes.c: Ditto.
4660 * gdbtypes.h: Ditto.
4661 * inf-ttrace.c: Ditto.
4666 * inline-frame.h: Ditto.
4667 * language.c: Ditto.
4668 * language.h: Ditto.
4669 * libunwind-frame.c: Ditto.
4670 * libunwind-frame.h: Ditto.
4671 * linespec.c: Ditto.
4672 * linux-nat.c: Ditto.
4673 * linux-nat.h: Ditto.
4674 * linux-thread-db.c: Ditto.
4675 * machoread.c: Ditto.
4676 * macroexp.c: Ditto.
4677 * macrotab.c: Ditto.
4680 * mdebugread.c: Ditto.
4685 * objfiles.c: Ditto.
4686 * objfiles.h: Ditto.
4688 * p-typeprint.c: Ditto.
4689 * p-valprint.c: Ditto.
4691 * printcmd.c: Ditto.
4692 * proc-events.c: Ditto.
4694 * progspace.c: Ditto.
4695 * progspace.h: Ditto.
4696 * psympriv.h: Ditto.
4699 * regcache.c: Ditto.
4700 * regcache.h: Ditto.
4701 * remote-fileio.c: Ditto.
4703 * ser-mingw.c: Ditto.
4705 * ser-unix.c: Ditto.
4708 * solib-frv.c: Ditto.
4709 * solib-irix.c: Ditto.
4710 * solib-osf.c: Ditto.
4711 * solib-pa64.c: Ditto.
4712 * solib-som.c: Ditto.
4713 * solib-sunos.c: Ditto.
4714 * solib-svr4.c: Ditto.
4715 * solib-target.c: Ditto.
4719 * stabsread.c: Ditto.
4720 * stabsread.c: Ditto.
4723 * symfile-mem.c: Ditto.
4729 * target-descriptions.c: Ditto.
4730 * target-memory.c: Ditto.
4733 * terminal.h: Ditto.
4736 * tracepoint.c: Ditto.
4737 * tracepoint.h: Ditto.
4741 * user-regs.c: Ditto.
4742 * user-regs.h: Ditto.
4744 * valarith.c: Ditto.
4746 * valprint.c: Ditto.
4747 * valprint.h: Ditto.
4752 * xcoffread.c: Ditto.
4753 * xcoffsolib.c: Ditto.
4754 * xcoffsolib.h: Ditto.
4755 * xml-syscall.c: Ditto.
4756 * xml-tdesc.c: Ditto.
4758 2011-01-05 Michael Snyder <msnyder@vmware.com>
4760 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4761 * cli/cli-decode.c: Ditto.
4762 * cli/cli-dump.c: Ditto.
4763 * cli/cli-logging.c: Ditto.
4764 * cli/cli-script.c: Ditto.
4765 * cli/cli-setshow.c: Ditto.
4766 * common/signals.c: Ditto.
4767 * mi/mi-cmd-break.c: Ditto.
4768 * mi/mi-cmd-disas.c: Ditto.
4769 * mi/mi-cmd-stack.c: Ditto.
4770 * mi/mi-cmd-var.c: Ditto.
4771 * mi/mi-cmds.c: Ditto.
4772 * mi/mi-common.h: Ditto.
4773 * mi/mi-console.c: Ditto.
4774 * mi/mi-interp.c: Ditto.
4775 * mi/mi-main.c: Ditto.
4776 * osf-share/cma_attr.c: Ditto.
4777 * osf-share/cma_deb_core.h: Ditto.
4778 * osf-share/cma_debug_client.h: Ditto.
4779 * osf-share/cma_handle.h: Ditto.
4780 * osf-share/cma_mutex.h: Ditto.
4781 * osf-share/cma_stack_int.h: Ditto.
4782 * osf-share/cma_tcb_defs.h: Ditto.
4783 * python/py-auto-load.c: Ditto.
4784 * python/py-breakpoint.c: Ditto.
4785 * python/py-cmd.c: Ditto.
4786 * python/py-frame.c: Ditto.
4787 * python/py-objfile.c: Ditto.
4788 * python/py-param.c: Ditto.
4789 * python/py-progspace.c: Ditto.
4790 * python/py-symbol.c: Ditto.
4791 * python/py-value.c: Ditto.
4792 * python/python-internal.h: Ditto.
4793 * python/python.c: Ditto.
4794 * tui/tui-data.c: Ditto.
4795 * tui/tui-disasm.c: Ditto.
4796 * tui/tui-hooks.c: Ditto.
4797 * tui/tui-io.c: Ditto.
4798 * tui/tui-layout.c: Ditto.
4799 * tui/tui-regs.c: Ditto.
4800 * tui/tui-source.c: Ditto.
4801 * tui/tui-stack.c: Ditto.
4802 * tui/tui-win.c: Ditto.
4803 * tui/tui-windata.c: Ditto.
4804 * tui/tui-winsource.c: Ditto.
4806 2011-01-05 Joel Brobecker <brobecker@adacore.com>
4808 * configure.ac, gdb.1: Copyright year update.
4810 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4812 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4813 this_pc_in_block, morestack_msym and morestack_name. Check for
4814 "__morestack" minimal symbol there.
4816 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4818 * symfile.c (find_sym_fns): Add call to dont_repeat.
4820 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4822 Copyright year update in most files (performed by copyright.sh).
4824 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4826 * top.c (print_gdb_version): Update copyright year in version output.
4828 For older changes see ChangeLog-2010.
4834 version-control: never