1 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6 2011-04-08 Steve Ellcey <sje@cup.hp.com>
8 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
11 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13 Remove support for old Cygwin 1.5 versions.
14 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
15 function on old Cygwin version.
16 * windows-nat.c: Remove cygwin version check and always define
17 __USEWIDE for Cygwin compilation.
19 2011-04-07 Yao Qi <yao@codesourcery.com>
21 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
23 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
24 (arm_copy_svc): Remove parameters INSN and TO.
25 (decode_svc_copro): Update caller.
26 * arm-tdep.h (struct displaced_step_closure): Remove parameters
27 from function pointer `copy_svc_os'.
29 2011-04-07 Yao Qi <yao@codesourcery.com>
31 * arm-tdep.c (cleanup_branch): Set a correct return address in
34 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
38 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
39 in the function comment, a new note on values compatibility.
40 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
41 * symtab.h (SYMBOL_HASH_NEXT): New.
43 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
45 * ppc-linux-nat.c (check_condition): Add len output parameter.
46 Set it based on the memory region referenced in the condition
47 expression. Update all callers.
49 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
51 Fix crash regression on systems featuring .gdb_index.
52 * objfiles.c (free_objfile): Move the
53 forget_cached_source_info_for_objfile call earlier. Comment it.
54 Extend the comment for objfile_free_data.
56 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
58 Fix regression of displaying the debug format.
59 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
62 2011-04-04 Tom Tromey <tromey@redhat.com>
64 * cli/cli-interp.c (struct captured_execute_command_args):
66 (do_captured_execute_command): Remove.
67 (safe_execute_command): Use TRY_CATCH.
68 * cli/cli-script.c (struct wrapped_read_command_file_args):
70 (wrapped_read_command_file): Remove.
71 (script_from_file): Use TRY_CATCH.
72 * exceptions.c (catch_exception): Remove.
73 * exceptions.h (catch_exception): Remove.
74 (deprecated_throw_reason): Update comment.
75 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
76 argument to 'context'.
77 (mi_execute_command): Use TRY_CATCH.
78 * remote.c (struct start_remote_args): Remove.
79 (remote_start_remote): Update; change arguments.
80 (remote_open_1): Use TRY_CATCH.
82 2011-04-04 Tom Tromey <tromey@redhat.com>
84 * tracepoint.c (scope_info): Update.
85 * symtab.c (decode_line_spec): Update.
86 * python/python.c (gdbpy_decode_line): Update.
87 * linespec.h (decode_line_1): Update.
88 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
89 (decode_compound, find_method, symtab_from_filename)
90 (decode_variable): Likewise.
91 * cli/cli-cmds.c (edit_command): Update.
92 (list_command): Update.
93 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
95 (create_breakpoint): Update.
96 (until_break_command): Update.
97 (addr_string_to_sals): Update.
98 (decode_line_spec_1): Update.
100 2011-04-04 Tom Tromey <tromey@redhat.com>
102 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
103 (do_captured_parse_breakpoint): Remove.
104 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
105 Use TRY_CATCH directly.
107 2011-04-04 Tom Tromey <tromey@redhat.com>
109 * symtab.h (free_symtab): Remove.
110 (forget_cached_source_info_for_objfile): Declare.
111 * symmisc.c (free_symtab): Remove.
112 * source.c (forget_cached_source_info_for_objfile): New function.
113 (forget_cached_source_info): Use it.
114 * objfiles.c (free_objfile): Simplify check before calling
115 clear_current_source_symtab_and_line. Call
116 forget_cached_source_info_for_objfile.
118 2011-04-04 Tom Tromey <tromey@redhat.com>
120 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
121 (new_symtab): Don't set `free_code' on symtab.
122 (new_linetable): Properly handle size==0.
123 * symtab.h (struct symtab) <free_code, free_func>: Remove.
124 * symmisc.c (free_symtab): Don't free the linetable. Don't call
126 * jv-lang.c (struct jv_per_objfile_data): New.
127 (jv_per_objfile_free): Free the data.
128 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
129 (get_java_class_symtab): Set the `dict' field on the
131 (free_class_block): Remove.
132 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
135 2011-04-04 Tom Tromey <tromey@redhat.com>
137 * symfile.c (reread_symbols): Update.
138 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
140 * objfiles.c (allocate_objfile): Update.
141 * cp-support.h (cp_check_possible_namespace_symbols): Don't
143 * cp-namespace.c (lookup_symbol_file): Don't call
144 lookup_possible_namespace_symbol.
145 (initialize_namespace_symtab, get_possible_namespace_block)
146 (free_namespace_block, cp_check_possible_namespace_symbols)
147 (check_possible_namespace_symbols_loop)
148 (check_one_possible_namespace_symbol)
149 (lookup_possible_namespace_symbol): Remove.
150 (maintenance_cplus_namespace): Replace with notice.
151 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
153 2011-04-04 Tom Tromey <tromey@redhat.com>
155 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
156 * symtab.h (struct symtab) <producer, debugformat>: Now const.
157 * symmisc.c (free_symtab): Don't free debugformat.
158 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
159 (record_debugformat, record_producer): Document.
160 * buildsym.c (end_symtab): Don't save debugformat and producer
162 (end_symtab): Don't free debugformat and producer fields.
163 (record_debugformat): Don't call xstrdup.
164 (record_producer): Likewise.
166 2011-04-04 Tom Tromey <tromey@redhat.com>
168 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
169 (source_line_charpos, source_charpos_line): Remove.
171 2011-04-04 Tom Tromey <tromey@redhat.com>
173 * symtab.h (domain_enum): Split in two...
174 (enum search_domain): New.
175 (search_symbols): Update.
176 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
177 redundant declarations.
178 (search_symbols): Change 'kind' argument to search_domain.
180 (print_symbol_info): Likewise.
181 (symtab_symbol_info): Likewise.
182 * symfile.h (struct quick_symbol_functions)
183 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
184 <expand_symtabs_matching>: Likewise.
185 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
186 (expand_symtabs_matching_via_partial): Update.
187 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
188 (dw2_expand_symtabs_for_function): Update.
189 * block.h: Moved anonymous enum...
190 * defs.h (enum block_enum): ... here. Now named.
192 2011-04-03 Joel Brobecker <brobecker@adacore.com>
194 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
195 * version.in: Bump version to 7.3.50.20110403-cvs.
197 2011-04-03 Joel Brobecker <brobecker@adacore.com>
199 * NEWS: Create a new section for the next release branch.
200 Rename the section of the current branch, now that it has
203 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
205 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
206 for "fpscr" in target description.
208 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
210 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
211 initialize it. Delay HASH initialization. Strip the part after open
212 parenthesis for languages with qualifiers. Call do_cleanups.
214 2011-04-01 Tom Tromey <tromey@redhat.com>
216 * utils.c (report_command_stats): Don't print `-' for negative
219 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
221 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
222 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
225 2011-04-01 Joel Brobecker <brobecker@adacore.com>
227 * breakpoint.h (bpdisp_text): Add declaration.
228 * breakpoint.c (bpdisp_text): Make non-static.
229 * ada-lang.c: #include "mi/mi-common.h".
230 (print_it_exception): Rewrite to improve GDB/MI output.
232 2011-04-01 Pedro Alves <pedro@codesourcery.com>
234 * arm-tdep.h (struct address_space): Add forward declaration.
236 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
238 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
239 * arm-tdep.c (arm_override_mode): New global.
240 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
241 execution mode heuristics.
242 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
243 second single-step breakpoint if needed, using
244 arm_insert_single_step_breakpoint.
245 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
246 ARM execution mode, do not call thumb_get_next_pc_raw.
247 (arm_get_next_pc): Encode execution mode in return value. Call
248 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
249 (arm_insert_single_step_breakpoint): New function.
250 (arm_software_single_step): Call it.
251 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
252 argument to return execution mode of sigreturn target.
253 (arm_linux_syscall_next_pc): Use it.
254 (arm_linux_copy_svc): Update call.
255 (arm_linux_software_single_step): Call
256 arm_insert_single_step_breakpoint.
258 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
260 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
263 2011-03-31 Tom Tromey <tromey@redhat.com>
265 * varobj.c (update_dynamic_varobj_children): Properly handle
266 errors from iterator.
268 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
270 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
271 struct linkage name twice.
273 2011-03-31 Tom Tromey <tromey@redhat.com>
275 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
276 missing ">" to message.
278 2011-03-31 Tom Tromey <tromey@redhat.com>
280 * varobj.c (instantiate_pretty_printer): Remove duplicate
283 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
285 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
286 if neither saved value nor register available (e.g. signal frame).
288 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
290 * macroexp.c (expand): Avoid uninitialized variable
293 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
295 * breakpoint.c (break_range_command): Fix typo in comment.
297 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
298 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
300 Implement support for PowerPC BookE ranged breakpoints.
301 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
302 * breakpoint.h (struct bp_target_info) <length>: New member
304 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
305 instead of struct breakpoint as argument, and also add ASPACE
306 and BP_ADDR arguments. Update all callers.
307 (struct breakpoint_ops) <print_one_detail>: New method.
308 (struct breakpoint) <addr_string_range_end>: New member variable.
309 * breakpoint.c (breakpoint_location_address_match): Add function
311 (insert_bp_location): Set bl->target_info.length.
312 (breakpoint_here_p): Call breakpoint_location_address_match.
313 (moribund_breakpoint_here_p): Likewise.
314 (regular_breakpoint_inserted_here_p): Likewise.
315 (breakpoint_thread_match): Likewise.
316 (bpstat_stop_status): Likewise.
317 (bpstat_check_location): Move call to
318 breakpoint_ops.breakpoint_hit to the top.
319 (print_one_breakpoint_location): Call
320 breakpoint_ops.print_one_detail if available.
321 (breakpoint_address_match_range): New function.
322 (breakpoint_location_address_match): Likewise.
323 (breakpoint_locations_match): Compare the length field of the
325 (hw_breakpoint_used_count): Count resources used by all locations
326 in a breakpoint, and use breakpoint_ops.resources_needed if
328 (breakpoint_hit_ranged_breakpoint): New function.
329 (resources_needed_ranged_breakpoint): Likewise.
330 (print_it_ranged_breakpoint): Likewise.
331 (print_one_ranged_breakpoint): Likewise.
332 (print_one_detail_ranged_breakpoint): Likewise.
333 (print_mention_ranged_breakpoint): Likewise.
334 (print_recreate_ranged_breakpoint): Likewise.
335 (ranged_breakpoint_ops): New structure.
336 (find_breakpoint_range_end): New function.
337 (break_range_command): Likewise.
338 (delete_breakpoint): Free addr_string_range_end.
339 (update_breakpoint_locations): Add SALS_END argument. Update
340 all callers. Calculate breakpoint length if a non-zero SALS_END
341 is given. Call breakpoint_locations_match instead of
342 breakpoint_address_match.
343 (reset_breakpoint): Find SaL of the end of the range if B is a
345 (_initialize_breakpoint): Register break-range command.
346 * defs.h (print_core_address): Add function prototype.
347 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
349 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
350 (ppc_linux_remove_hw_breakpoint): Likewise.
351 (_initialize_ppc_linux_nat): Initialize
352 to_ranged_break_num_registers.
353 * target.c (update_current_target): Add comment about
354 to_ranged_break_num_registers.
355 (target_ranged_break_num_registers): New function.
356 * target.h (struct target_ops) <to_ranged_break_num_registers>:
358 (target_ranged_break_num_registers): Add function prototype.
359 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
360 * utils.c (print_core_address): ... here.
362 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
364 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
365 variable compiler warning.
367 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
369 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
371 (re_set_breakpoint): ... to here ...
372 (addr_string_to_sals): ... and here.
374 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
376 * Makefile.in (SFILES): Add missing C sources.
377 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
380 2011-03-29 Mike Frysinger <vapier@gentoo.org>
382 * .gitignore: New file.
384 2011-03-29 Mike Frysinger <vapier@gentoo.org>
386 * NEWS: Mention new cfi device simulation.
388 2011-03-29 Tom Tromey <tromey@redhat.com>
390 * dwarf2read.c (fixup_partial_die): Handle linkage name on
391 otherwise anonymous types.
392 (dwarf2_name): Likewise.
393 * valops.c (value_struct_elt_for_reference): Refine artificial
394 type logic. Call error if j==-1.
396 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
398 Fix false GCC warning.
399 * infcall.c (find_function_addr): Initialize funaddr.
401 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
403 Fix mingw compilation with --enable-targets=all.
404 * remote-mips.c (gdb_usleep.h): Include header.
405 (mips_enter_debug): Use gdb_usleep instead of sleep.
407 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
409 Support resolution of STT_GNU_IFUNC via breakpoints.
410 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
411 bp_gnu_ifunc_resolver_return.
412 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
413 the loop. Support bp_gnu_ifunc_resolver and
414 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
415 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
417 (bptype_string, print_one_breakpoint_location): Support
418 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
419 (user_settable_breakpoint): Return true also for
420 bp_gnu_ifunc_resolver.
421 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
422 bp_gnu_ifunc_resolver_return.
423 (set_breakpoint_location_function): New parameter explicit_loc,
424 describe it. Call find_pc_partial_function_gnu_ifunc with new
425 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
426 EXPLICIT_LOC is not set.
427 (set_raw_breakpoint): Set EXPLICIT_LOC for
428 set_breakpoint_location_function.
429 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
430 set_breakpoint_location_function.
431 (mention): Support bp_gnu_ifunc_resolver and
432 bp_gnu_ifunc_resolver_return.
433 (add_location_to_breakpoint): Set EXPLICIT_LOC for
434 set_breakpoint_location_function.
435 (update_breakpoint_locations): Remove static.
436 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
437 bp_gnu_ifunc_resolver_return.
438 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
439 bp_gnu_ifunc_resolver_return.
440 (update_breakpoint_locations): New declaration.
441 * elfread.c: Include gdbthread.h and regcache.h.
442 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
444 (elf_gnu_ifunc_fns): Install them.
445 * minsyms.c (stub_gnu_ifunc_resolver_stop)
446 (stub_gnu_ifunc_resolver_return_stop): New functions.
447 (stub_gnu_ifunc_fns): Install them.
448 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
449 and gnu_ifunc_resolver_return_stop.
450 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
452 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
454 STT_GNU_IFUNC reader implementation.
455 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
456 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
457 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
458 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
459 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
460 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
461 (elf_gnu_ifunc_resolve_addr): New.
462 (elf_symfile_read): Call elf_rel_plt_read.
463 (elf_gnu_ifunc_fns): New.
464 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
465 Install elf_gnu_ifunc_fns.
466 * infcall.c (find_function_return_type): New function.
467 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
468 * minsyms.c (stub_gnu_ifunc_resolve_addr)
469 (stub_gnu_ifunc_resolve_name): New functions.
470 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
471 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
472 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
474 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
476 Code cleanup for later STT_GNU_IFUNC support.
477 * infcall.c (find_function_addr): Remove variable code, use explicit
478 dereferences for it. Move VALUE_TYPE initialization later.
480 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
482 GDB find_pc_partial_function support for STT_GNU_IFUNC.
483 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
484 (clear_pc_function_cache): Clear it.
485 (find_pc_partial_function): Rename to ...
486 (find_pc_partial_function_gnu_ifunc): ... this function. New
487 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
488 (find_pc_partial_function): New wrapper for this function.
489 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
491 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
493 GDB internal type support for STT_GNU_IFUNC.
494 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
495 (elf_symtab_read): Set mst_text_gnu_ifunc for
496 BSF_GNU_INDIRECT_FUNCTION.
497 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
498 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
499 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
500 nodebug_got_plt_symbol.
501 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
502 (TYPE_GNU_IFUNC): New.
503 (struct main_type): New field flag_gnu_ifunc.
504 (struct builtin_type): New field builtin_func_func.
505 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
506 nodebug_got_plt_symbol.
507 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
508 (in_gnu_ifunc_stub): New.
509 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
511 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
512 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
513 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
515 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
516 * symtab.c (search_symbols): Likewise.
517 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
518 and mst_slot_got_plt.
519 (in_gnu_ifunc_stub): New declaration.
521 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
523 Support a ring of related breakpoints.
524 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
525 other functions, add gdb_assert.
526 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
527 watchpoint_del_at_next_stop.
528 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
529 (bpstat_stop_status): Handle ring in related_breakpoint.
530 (set_raw_breakpoint_without_location): Initialize ring in
532 (delete_breakpoint): Handle ring in related_breakpoint, use
533 watchpoint_del_at_next_stop.
534 (map_breakpoint_numbers): Handle ring in related_breakpoint.
536 2011-03-28 Tom Tromey <tromey@redhat.com>
539 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
540 with `language_minimal'.
542 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
544 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
545 instead of checking for STT_ARM_TFUNC symbol type.
547 2011-03-25 Tom Tromey <tromey@redhat.com>
549 * linespec.c (symbol_found): Restore line-based result for
550 non-LOC_LABEL symbols.
552 2011-03-25 Kai Tietz <ktietz@redhat.com>
554 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
555 instead of strcmp for comparison.
556 (tui_source_is_displayed): Likewise.
557 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
559 2011-03-24 Mark Wielaard <mjw@redhat.com>
561 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
563 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
564 (find_partial_die_in_comp_unit): Likewise in comment.
565 (read_attribute_value): Likewise.
566 (lookup_die_type): Likewise.
567 (dwarf_form_name): Likewise.
568 (dump_die_shallow): Likewise.
569 (follow_die_ref_or_sig): Likewise.
571 2011-03-24 Tom Tromey <tromey@redhat.com>
573 PR breakpoints/11816:
574 * linespec.c (decode_line_1): Parse `function:label' linespecs.
575 (decode_compound): Update.
576 (find_function_symbol): New function.
577 (decode_dollar): Update.
578 (decode_label): Add 'function_symbol' parameter. Handle
579 function-relative labels.
580 (decode_variable): Update.
581 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
582 not its line. Set `special_display' and canonical name for
585 2011-03-24 Tom Tromey <tromey@redhat.com>
587 * linespec.h (struct linespec_result) <special_display>: New
589 * breakpoint.h (struct breakpoint) <display_canonical>: New
591 * breakpoint.c (print_breakpoint_location): Respect
593 (create_breakpoint_sal): Add 'display_canonical' parameter.
594 (create_breakpoints_sal): Update.
595 (create_breakpoint): Update.
597 2011-03-24 Tom Tromey <tromey@redhat.com>
599 * symtab.c (decode_line_spec): Update.
600 * linespec.c (build_canonical_line_spec): Change type of
602 (decode_line_2, decode_line_1, decode_objc, decode_compound)
603 (find_method, decode_all_digits, decode_dollar, decode_label)
604 (symbol_found): Likewise.
605 (init_linespec_result): New function.
606 * breakpoint.c (struct captured_parse_breakpoint_args)
607 <canonical_p>: New field, replaces addr_string_p.
608 (create_breakpoints_sal): Add 'canonical' parameter, replacing
610 (parse_breakpoint_sals): Likewise.
611 (do_captured_parse_breakpoint): Update.
612 (create_breakpoint): Use struct linespec_result.
613 (until_break_command): Update.
614 (breakpoint_re_set_one): Update.
615 (decode_line_spec_1): Update.
616 * linespec.h (struct linespec_result): New.
617 (init_linespec_result): Declare.
619 2011-03-23 Pedro Alves <pedro@codesourcery.com>
621 * regcache.c (regcache_raw_read): If the target didn't supply a
622 given raw register, mark it as unavailable.
624 2011-03-23 Kai Tietz <ktietz@redhat.com>
626 * breakpoint.c (clear_command): Use filename_cmp
627 instead of strcmp for comparison.
628 * buildsym.c (watch_main_source_file_lossage): Likewise.
629 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
630 checking just for slash.
631 * dbxread.c (read_dbx_symtab): Use lbasename instead of
632 strrchr and filename_cmp instead of strcmp for filenames.
633 (add_old_header_file): Use filename_cmp
634 instead of strcmp for comparison.
635 * exec.c (exec_set_section_address): Likewise.
636 * macrotab.c (macro_lookup_inclusion): Likewise.
637 (macro_lookup_inclusion): Likewise.
638 * elfread.c (_initialize_elfread): Likewise.
639 (elfstab_offset_sections): Likewise.
640 (elfstab_offset_sections): Use lbasename instead of
642 * mdebugread.c (parse_partial_symbols): Likewise.
643 (arse_partial_symbols): Use filename_(n)cmp instead of
644 str(n)cmp for comparison.
645 * minsyms.c (lookup_minimal_symbol): Likewise.
646 * psymtab.c (read_psymtabs_with_filename): Likewise.
647 * solib.c (solib_read_symbols): Likewise.
648 (reload_shared_libraries_1): Likewise.
649 * symmisc.c (maintenance_print_symbols): Likewise.
650 * symfile.c (separate_debug_file_exists): Likewise.
651 (reread_symbols): Likewise.
652 (find_separate_debug_file_by_debuglink): Likewise.
653 * remote-fileio.c (remote_fileio_func_rename): Likewise.
654 * source.c (add_path): Likewise.
655 * symtab.c (filename_seen): Likewise.
656 (file_matches): Likewise.
657 (print_symbol_info): Likewise.
658 (maybe_add_partial_symtab_filename): Likewise.
659 (make_source_files_completion_list): Likewise.
660 * xml-syscall.c (init_sysinfo): Likewise.
661 * windows-nat.c (_initialize_check_for_gdb_ini): Use
662 IS_DIR_SEPARATOR for checking for trailing path separator.
664 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
666 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
667 label abort_expression.
668 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
669 DWARF_VALUE_OPTIMIZED_OUT.
671 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
674 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
675 to linkage_name. Invert its value. Update the function comment.
676 (c_type_print_varspec_suffix): Invert it at the caller.
677 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
679 2011-03-22 Pedro Alves <pedro@codesourcery.com>
681 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
682 errors when reading the `stop_pc'.
683 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
686 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
688 * NEWS: Document gdb.Write stream keyword.
690 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
693 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
694 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
695 (dwarf2_add_field): Fix new_field->accessibility for
696 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
698 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
702 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
703 other error classes. Do not print stack trace.
705 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
707 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
708 (dwarf2_add_field): Fix new_field->accessibility for
709 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
711 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
713 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
714 encountering a load via a non-SP register.
716 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
718 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
719 field in returned unwinder.
721 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
723 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
725 2012-03-21 Joel Brobecker <brobecker@adacore.com>
727 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
730 2012-03-18 Pedro Alves <pedro@codesourcery.com>
732 * frame.c (frame_unwind_register): Throw an error if unwinding the
734 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
735 an unwind stop reason.
736 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
737 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
738 UNWIND_UNAVAILABLE>: New.
739 * inline-frame.c (inline_frame_unwind): Install
740 default_frame_unwind_stop_reason.
741 * frame-unwind.c: Include "exceptions.h".
742 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
743 (default_frame_unwind_stop_reason): New.
744 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
745 (default_frame_unwind_stop_reason): Declare.
746 (struct frame_unwind) <stop_reason>: New function pointer.
748 * dummy-frame.c: Install default_frame_unwind_stop_reason.
749 * dwarf2-frame.c: Include exceptions.h.
750 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
751 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
752 computing the CFA. If such an error was thrown, set
754 (dwarf2_frame_unwind_stop_reason): New.
755 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
757 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
758 (dwarf2_signal_frame_unwind): Ditto.
760 * amd64-tdep.c: Include "exceptions.h".
761 (struct amd64_frame_cache): New field "base_p".
762 (amd64_init_frame_cache): Clear it.
763 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
764 Avoid reading registers with functions that throw if the register
765 is not necessary to compute the frame base.
766 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
767 swallowing NOT_AVAILABLE_ERROR.
768 (amd64_frame_unwind_stop_reason): New.
769 (amd64_frame_this_id): Don't build a frame id if the frame base
771 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
772 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
773 base_p if the frame base was computable.
774 (amd64_sigtramp_frame_unwind_stop_reason): New.
775 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
776 frame base was unavailable.
777 (amd64_sigtramp_frame_unwind): Install
778 amd64_sigtramp_frame_unwind_stop_reason.
779 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
780 base_p if the frame base was computable.
781 (amd64_epilogue_frame_unwind_stop_reason): New.
782 (amd64_epilogue_frame_this_id): Don't build a frame id if the
783 frame base was unavailable.
784 (amd64_epilogue_frame_unwind): Install
785 amd64_epilogue_frame_unwind_stop_reason.
786 * i386-tdep.c: Include "exceptions.h".
787 (struct i386_frame_cache): New field "base_p".
788 (i386_init_frame_cache): Clear it.
789 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
790 Avoid reading registers with functions that throw if the register
791 is not necessary to compute the frame base.
792 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
793 swallowing NOT_AVAILABLE_ERROR.
794 (i386_frame_unwind_stop_reason): New.
795 (i386_frame_this_id): Don't build a frame id if the frame base was
797 (i386_frame_prev_register): Handle unavailable SP.
798 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
799 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
800 base_p if the frame base was computable.
801 (i386_epilogue_frame_unwind_stop_reason): New.
802 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
803 base was unavailable.
804 (i386_epilogue_frame_unwind): Install
805 i386_epilogue_frame_unwind_stop_reason.
806 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
807 base_p if the frame base was computable.
808 (i386_sigtramp_frame_unwind_stop_reason): New.
809 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
810 base was unavailable.
811 (i386_sigtramp_frame_unwind): Install
812 i386_sigtramp_frame_unwind_stop_reason.
813 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
814 type's size, not the register's.
815 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
817 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
818 default_frame_unwind_stop_reason.
819 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
820 (alpha_heuristic_frame_unwind): Ditto.
821 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
822 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
823 * avr-tdep.c (avr_frame_unwind): Ditto.
824 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
826 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
827 * frv-tdep.c (frv_frame_unwind): Ditto.
828 * h8300-tdep.c (h8300_frame_unwind): Ditto.
829 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
830 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
831 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
832 (hppa_stub_frame_unwind): Ditto.
833 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
834 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
835 (ia64_libunwind_frame_unwind)
836 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
837 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
838 * lm32-tdep.c (lm32_frame_unwind): Ditto.
839 * m32c-tdep.c (m32c_unwind): Ditto.
840 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
841 * m32r-tdep.c (m32r_frame_unwind): Ditto.
842 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
843 * m68k-tdep.c (m68k_frame_unwind): Ditto.
844 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
845 * m88k-tdep.c (m88k_frame_unwind): Ditto.
846 * mep-tdep.c (mep_frame_unwind): Ditto.
847 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
848 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
849 (mips_stub_frame_unwind): Ditto.
850 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
851 * moxie-tdep.c (moxie_frame_unwind): Ditto.
852 * mt-tdep.c (mt_frame_unwind): Ditto.
853 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
854 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
855 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
856 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
857 (s390_sigtramp_frame_unwind): Ditto.
858 * score-tdep.c (score_prologue_unwind): Ditto.
859 * sh-tdep.c (sh_frame_unwind): Ditto.
860 * sh64-tdep.c (sh64_frame_unwind): Ditto.
861 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
862 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
863 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
864 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
865 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
866 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
867 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
868 (sparc64obsd_trapframe_unwind): Ditto.
869 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
870 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
871 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
872 * v850-tdep.c (v850_frame_unwind): Ditto.
873 * vax-tdep.c (vax_frame_unwind): Ditto.
874 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
875 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
876 * xtensa-tdep.c (xtensa_unwind): Ditto.
878 2011-03-18 Pedro Alves <pedro@codesourcery.com>
880 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
881 there's always a frame. Use get_frame_pc_if_available instead of
882 get_frame_pc, and if there's no PC available, don't look up a
885 2011-03-18 Pedro Alves <pedro@codesourcery.com>
887 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
890 2011-03-18 Pedro Alves <pedro@codesourcery.com>
892 * tracepoint.c (set_traceframe_context): Handle unavailable PC
895 2011-03-18 Pedro Alves <pedro@codesourcery.com>
897 * frame.h (frame_unwind_caller_pc_if_available): Declare.
898 * frame.c (frame_unwind_caller_pc_if_available): New.
899 * stack.c (frame_info): Handle unavailable PC.
901 2011-03-18 Pedro Alves <pedro@codesourcery.com>
903 * frame.c (frame_unwind_pc): Rename to ...
904 (frame_unwind_pc_if_available): ... this. New `pc' output
905 parameter. Change return type to int. Gracefully handle
906 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
907 happened, or 1 otherwise.
908 (frame_unwind_pc): Reimplement on top of
909 frame_unwind_pc_if_available.
910 (get_frame_func): Rename to ...
911 (get_frame_func_if_available): New `pc' output parameter. Change
912 return type to int. Gracefully handle the PC not being available.
913 (get_frame_func): Reimplement on top of
914 get_frame_func_if_available.
915 (select_frame): Handle the PC being unavailable.
916 (get_prev_frame): Handle the PC being unavailable.
917 (get_frame_pc_if_available): New.
918 (get_frame_address_in_block_if_available): New.
919 (find_frame_sal): Handle the frame PC not being available.
920 * frame.h (get_frame_pc_if_available): Declare.
921 (get_frame_address_in_block_if_available): Declare.
922 (get_frame_func_if_available): Declare.
923 * stack.c (print_frame_info): Handle the PC being unavailable.
924 (find_frame_funname): Ditto.
925 (print_frame): Handle the PC being unavailable.
926 (get_frame_language): Ditto.
927 * blockframe.c (get_frame_block): Ditto.
928 * macroscope.c (default_macro_scope): Ditto.
929 * tui/tui-stack.c (tui_show_frame_info): Ditto.
931 2011-03-18 Pedro Alves <pedro@codesourcery.com>
933 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
934 NOT_AVAILABLE_ERROR when evaluating the location expression.
936 2011-03-18 Pedro Alves <pedro@codesourcery.com>
938 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
939 returning that the register piece is unavailable/optimized out.
940 (write_pieced_value): Handle get_frame_register_bytes returning
941 that the register piece is unavailable/optimized out when doing a
942 read-modify write of a bitfield.
943 * findvar.c (value_from_register): Handle get_frame_register_bytes
944 returning that the register piece is unavailable/optimized out.
945 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
946 and `unavailablep'. Throw error on bad debug info. Use
947 frame_register instead of frame_register_read, to fill in the new
949 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
951 * valops.c: (value_assign): Adjust, and handle
952 get_frame_register_bytes failing.
953 * spu-tdep.c: Include exceptions.h.
954 (spu_software_single_step): Adjust, and handle
955 get_frame_register_bytes failing.
956 (spu_get_longjmp_target): Ditto.
957 * gdbarch.sh (register_to_value): Change to return int. New
958 parameters `optimizedp' and `unavailablep'.
959 * gdbarch.h, gdbarch.c: Regenerate.
960 * i386-tdep.c (i386_register_to_value): Adjust to new
961 gdbarch_register_to_value interface.
962 * i387-tdep.c (i387_register_to_value): Ditto.
963 * i387-tdep.h (i387_register_to_value): Ditto.
964 * alpha-tdep.c (alpha_register_to_value): Ditto.
965 * ia64-tdep.c (ia64_register_to_value): Ditto.
966 * m68k-tdep.c (m68k_register_to_value): Ditto.
967 * mips-tdep.c (mips_register_to_value): Ditto.
968 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
970 2011-03-18 Pedro Alves <pedro@codesourcery.com>
972 * findvar.c (value_of_register): Mark the value as unavailable, if
973 the register is unavailable.
974 * frame.h (frame_register_unwind): New `unavailablep' parameter.
975 (frame_register): New `unavailablep' parameter.
976 (frame_register_read): Update comment.
977 * frame.c (frame_register_unwind): New `unavailablep' parameter.
978 Set it if the register is unavailable. If the register is
979 unavailable, clear the output buffer.
980 (frame_register): New `unavailablep' parameter. Pass it down.
981 (frame_unwind_register): Adjust.
982 (put_frame_register): Adjust.
983 (frame_register_read): Adjust. Also return false if the register
985 (frame_register_unwind_location): Adjust.
986 * sentinel-frame.c (sentinel_frame_prev_register): If the register
987 is unavailable, mark the value accordingly.
988 * stack.c (frame_info): Handle unavailable registers.
990 2011-03-18 Pedro Alves <pedro@codesourcery.com>
992 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
993 simplify, using regcache_cooked_read.
995 2011-03-18 Pedro Alves <pedro@codesourcery.com>
997 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
998 (regcache_raw_read_unsigned, regcache_raw_read_signed)
999 (regcache_raw_read_unsigned, regcache_raw_read_part)
1000 (regcache_cooked_read, regcache_cooked_read_signed)
1001 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1002 (regcache_cooked_read_ftype): Change return to enum
1004 * regcache.c: Include exceptions.h
1005 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1006 (do_cooked_read): Change return to enum register_status. Always
1007 forward to regcache_cooked_read.
1008 (regcache_raw_read): Change return to enum register_status. If
1009 the register is not REG_VALID, memset the buffer. Return the
1011 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1012 return the register's status.
1013 (regcache_raw_read_unsigned): Ditto.
1014 (regcache_cooked_read): Change return to enum register_status.
1015 Assert that with read-only regcaches, the register's status must
1016 be known. If the regcache is read-only, and the register is not
1017 REG_VALID, memset the buffer. Return the register's status.
1018 (regcache_cooked_read_signed): Change return to enum
1019 register_status. Handle non-REG_VALID registers and return the
1021 (regcache_cooked_read_unsigned): Change return to enum
1022 register_status. Handle non-REG_VALID registers and return the
1024 (regcache_xfer_part, regcache_raw_read_part)
1025 (regcache_cooked_read_part): Change return to enum
1026 register_status. Return the register's status.
1027 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1029 (regcache_dump): Handle unavailable cooked registers.
1030 * frame.c (do_frame_register_read): Adjust interface to match
1031 regcache_cooked_read_ftype.
1032 * gdbarch.sh (pseudo_register_read): Change return to enum
1034 * gdbarch.h, gdbarch.c: Regenerate.
1036 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1038 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1039 register_status. If reading a raw register indicates the raw
1040 register is not valid, return the raw register's status,
1041 otherwise, return REG_VALID.
1042 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1043 register_status. Handle non-REG_VALID raw registers and return
1044 the register's status.
1045 * arm-tdep.c (arm_neon_quad_read)
1046 (arm_pseudo_read): Change return to enum register_status. Handle
1047 non-REG_VALID raw registers and return the register's status.
1048 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1049 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1050 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1051 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1052 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1054 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1055 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1056 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1057 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1058 (m32c_pseudo_register_read): Change return to enum
1059 register_status. Adjust.
1060 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1061 enum register_status. Return the register's status.
1062 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1063 register_status. Return the register's status.
1064 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1065 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1066 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1067 * rs6000-tdep.c (move_ev_register_func): New typedef.
1068 (e500_move_ev_register): Use it. Change return to enum
1069 register_status. Return the register's status.
1070 (do_regcache_raw_read): New function.
1071 (do_regcache_raw_write): New function.
1072 (e500_pseudo_register_read): Change return to enum
1073 register_status. Return the register's status. Use
1074 do_regcache_raw_read.
1075 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1076 (dfp_pseudo_register_read): Change return to enum register_status.
1077 Return the register's status.
1078 (vsx_pseudo_register_read): Ditto.
1079 (efpr_pseudo_register_read): Ditto.
1080 (rs6000_pseudo_register_read): Ditto.
1081 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1082 register_status. Return the register's status.
1083 * sh64-tdep.c (pseudo_register_read_portions): New function.
1084 (sh64_pseudo_register_read): Change return to enum
1085 register_status. Use pseudo_register_read_portions. Return the
1087 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1088 register_status. Return the register's status.
1089 * sh-tdep.c (pseudo_register_read_portions): New function.
1090 (sh_pseudo_register_read): Change return to enum register_status.
1091 Use pseudo_register_read_portions. Return the register's status.
1092 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1093 enum register_status. Return the register's status.
1094 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1095 * spu-tdep.c (spu_pseudo_register_read_spu)
1096 (spu_pseudo_register_read): Ditto.
1097 * xtensa-tdep.c (xtensa_register_read_masked)
1098 (xtensa_pseudo_register_read): Ditto.
1099 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1101 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1103 * python/py-value.c (valpy_getitem): Fix formatting of error function
1106 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1108 ARI fixes: Add missing internationalization markups throughout
1110 * darwin-nat-info.c: Ditto.
1113 * mi/mi-main.c: Ditto.
1115 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1117 ARI fixes: Add missing internationalization markups throughout
1120 * cp-name-parser.y: Ditto.
1123 * objc-exp.y: Ditto.
1126 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1128 ARI fixes: Messages should have no trailing new lines.
1129 * darwin-nat.c (mach_check_error): Remove trailing new line from
1130 warning function call message.
1131 * record.c (bfdcore_read): Idem for error call.
1133 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1135 * common/signals.c (target_signal_from_host): Add _ markup to error
1136 function call message.
1137 (target_signal_to_host): Add _ markup and remove trailing new line
1138 from warning call message.
1139 (target_signal_from_command): Add _ markup to error function call
1142 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1146 * python/python.c (gdbpy_write): Accept a stream argument and
1147 operate to the appropriate stream.
1148 (gdbpy_flush): Likewise.
1149 (_initialize_python): Add stream constants.
1150 (finish_python_initialization): Add GdbOutputErrorFile class.
1152 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1154 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1156 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1158 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1159 to store_signed_integer. Add debug message when relocating CALL
1160 instructions. Fix formatting of debug message.
1161 * i386-tdep.c (i386_relocate_instruction): Ditto.
1163 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1165 * target.h (struct target_ops): Remove to_lookup_symbol field.
1166 (target_lookup_symbol): Delete macro.
1167 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1168 (update_current_target, setup_target_debug): Remove handling
1169 of to_lookup_symbol target_ops field.
1170 * ada-tasks.c (get_known_tasks_addr): Remove use of
1171 target_lookup_symbol.
1172 * coffread.c (coff_symtab_read): Likewise.
1173 * dbxread.c (read_dbx_symtab): Ditto.
1175 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1178 * configure.ac: Add getthrds declaration check.
1179 * configure, config.in: Regenerate.
1180 * aix-thread.c (getthrds): Declare only if not already declared
1181 in procinfo.h. More declaration out of get_signaled_thread to
1184 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1186 * python/py-symtab.c: Populate symtab_object_methods,
1188 (stpy_is_valid): New function.
1189 (salpy_is_valid): Ditto.
1190 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1191 (sympy_is_valid): New function.
1192 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1193 (objfpy_is_valid): New function.
1194 * python/py-inferior.c: Populate inferior_object_methods.
1195 (infpy_is_valid): New function.
1196 * python/py-infthread.c: Populate thread_object_methods.
1197 (thpy_is_valid): New function.
1198 * python/py-block.c: Declare block_object_methods. Populate. Declare
1199 block_iterator_object_methods. Populate.
1200 (blpy_is_valid): New function.
1201 (blpy_iter_is_valid): Ditto.
1203 2011-03-16 Keith Seitz <keiths@redhat.com>
1205 * linespec.c (find_methods): Canonicalize NAME before looking
1207 (name_end): New function.
1208 (keep_name_info): New function.
1209 (decode_line_1): Use keep_name_info.
1210 (decode_compound): Likewise.
1211 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1212 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1215 * linespec.c (locate_first_half): Keep overload information, too.
1216 (decode_compound): Use a string to represent break characters
1218 If P points to a break character, do not increment it.
1219 For C++ and Java, keep overload information and relevant keywords.
1220 If we cannot find a symbol, search the minimal symbols.
1223 * linespec.c (decode_compound): Rename SAVED_ARG to
1225 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1227 Pass a valid block to lookup_symbol.
1228 (lookup_prefix_sym): Likewise.
1229 (find_method): Construct search name based on SYM_CLASS instead
1231 * psymtab.c (lookup_partial_symbol): Add language parameter.
1232 (lookup_symbol_aux_psymtabs): Likewise.
1233 Don't assume that the psymtab we found was the right one. Search
1234 for the desired symbol in the symtab to be certain.
1235 (psymtab_search_name): New function.
1236 (lookup_partial_symbol): Use psymtab_search_name.
1237 Add language parameter.
1238 (read_symtabs_for_function): Add language parameter and pass to
1239 lookup_partial_symbol.
1240 (find_symbol_file_from_partial): Likewise.
1242 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1245 * dwarf2read.c (noop_record_line): New function.
1246 (dwarf_decode_lines): Ignore line tables for GCd functions.
1248 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1250 Fix ARI warnings about new lines at the end of messages, which
1251 are unneeded as there is a new line added at the end of the message
1253 * darwin-nat.c (darwin_stop_inferior): Ditto.
1254 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1255 * dfp.c (decimal_to_number): Ditto.
1256 * exec.c (print_section_info): Ditto.
1257 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1258 * osdata.c (get_osdata): Ditto.
1259 * record.c (bfdcore_write): Ditto.
1260 * remote-mips.c (mips_readchar): Ditto.
1261 * remote.c (read_ptid): Ditto.
1262 * ser-mingw.c (ser_windows_raw): Ditto.
1263 * tracepoint.c (add_local_symbols): Ditto.
1264 * windows-nat.c (fake_create_process): Ditto.
1266 2011-03-16 Tom Tromey <tromey@redhat.com>
1268 * tracepoint.c (stop_tracing): Don't declare.
1269 * event-top.c (after_char_processing_hook): Add `(void)'.
1271 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1273 * NEWS: Add Parameter sub-classing description.
1275 2011-03-16 Kai Tietz <ktietz@redhat.com>
1277 * MAINTAINERS: Update my e-mail address.
1279 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1281 * MAINTAINERS: Add myself for write after approval privileges.
1283 2011-03-15 Michael Snyder <msnyder@vmware.com>
1285 * frame.c (find_frame_sal): Assert sym is not null.
1287 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1289 * objc-lang.c (selectors_info): Check strchr for null result.
1291 * stabsread.c (define_symbol): Guard against bad stabstring input.
1293 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1295 Remove trailing spaces and tabulations from pascal language
1300 p-valprint.c: Ditto.
1302 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1305 than LOW. Comment it.
1306 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1307 HIGHPC not strictly higher than LOWPC.
1309 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1311 Fix formatting of function declarations returning a pointer in
1313 * varobj.c (varobj_add_child): Ditto.
1314 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1315 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1317 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1319 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1320 for the "generic" vector ABI used with GCC 4.3 and later.
1321 (ppc64_sysv_abi_return_value): Likewise.
1323 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1325 * infcall.c (call_function_by_hand): Function return value is
1326 always a non_lval, even when using struct_return.
1328 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1330 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1331 (map_display_numbers): New.
1332 (do_delete_display): New.
1333 (undisplay_command): Use map_display_numbers.
1334 (do_enable_disable_display): New.
1335 (enable_disable_display_command): New function.
1336 (enable_display): Delete.
1337 (enable_display_command): New.
1338 (disable_display_command): Reimplement.
1339 (_initialize_printcmd): Adjust "enable display" command to use
1340 `enable_display_command' as callback.
1342 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1344 * NEWS: Add Python breakpoint 'stop' operation.
1346 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1348 * NEWS: Delete duplicate entry. Fix typo.
1350 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1352 Fix ARI warning about function names in first column.
1353 Put prototype declaration on same line as return type.
1354 * objc-exp.y: Ditto.
1356 * python/py-stopevent.h: Ditto.
1357 For long function names, split parameters to
1358 allow function name on same line as return type.
1359 * solib-pa64.c: Ditto.
1362 For long function declaration, use single line.
1363 * hppa-tdep.h: Ditto.
1364 * inferior.h: Ditto.
1366 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1368 * python/python.h: Declare gdbpy_should_stop and
1369 gdbpy_breakpoint_has_py_cond.
1370 * python/python.c: Add python.h to includes. Remove python.h from
1371 HAVE_PYTHON definition
1372 (gdbpy_should_stop): New dummy function.
1373 (gdbpy_breakpoint_has_py_cond): New dummy function.
1374 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1375 sub-classing capabilities.
1376 (gdbpy_should_stop): New function.
1377 (gdbpy_breakpoint_has_py_cond): New function.
1378 (local_setattro): New function.
1379 * breakpoint.c (condition_command): Add check for Python 'stop'
1381 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1382 operation function as part of stop/continue tests.
1384 2011-03-14 Tom Tromey <tromey@redhat.com>
1387 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1388 (needs_frame_dwarf_call): Likewise.
1390 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1392 Fix ARI warning about functions without parameters that do not
1394 * breakpoint.c (all_tracepoints): Replace () by (void).
1395 * f-exp.y (match_string_literal): Ditto.
1397 * m2-exp.y (yylex): Ditto.
1398 * mep-tdep.c (current_me_module): Ditto.
1399 (current_options): Ditto.
1400 (current_cop_data_bus_width): Ditto.
1401 (current_cr_names): Ditto.
1402 (current_cr_is_float): Ditto.
1403 (current_ccr_names): Ditto.
1404 * objc-exp.y (yylex): Ditto.
1405 * p-exp.y (yylex): Ditto.
1406 * remote.c (send_interrupt_sequence): Ditto.
1407 * tracepoint.c (current_trace_status): Ditto.
1408 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1409 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1411 2011-03-11 Michael Snyder <msnyder@vmware.com>
1413 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1414 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1415 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1416 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1417 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1419 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1420 (delete_async_event_handler): Ditto.
1422 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1424 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1426 * top.c (set_verbose): Assert showcmd was found.
1428 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1430 * xtensa-tdep.c (warning_once): Correct style issues.
1432 2011-03-11 Yao Qi <yao@codesourcery.com>
1434 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1436 2011-03-11 Andreas Schwab <schwab@redhat.com>
1438 * common/aclocal.m4: Remove.
1440 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1442 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1443 (xtensa_write_register, xtensa_read_register): Likewise.
1444 (xtensa_hextochar): Removed.
1445 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1447 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1449 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1450 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1451 (xtensa_alloc_frame_cache): Add initialization for new fields.
1452 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1453 (warning_once): New function.
1454 (xtensa_insn_kind): New item c0opc_and.
1455 (call0_classify_opcode): Add the case for AND instruction.
1456 (call0_track_op): Change arguments. New local variable litbase.
1457 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1458 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1460 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1461 (call0_analyze_prologue): Update the comments. Change arguments.
1462 Add the variety of updates to handle extended prologues, which now can
1463 conduct dynamic stack adjustments.
1464 (call0_frame_cache): Likewise.
1465 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1466 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1468 2011-03-10 Michael Snyder <msnyder@vmware.com>
1470 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1471 (cmd_qtframe): Ditto.
1472 (cmd_qtbuffer): Ditto.
1473 (cmd_bigqtbuffer): Ditto.
1475 2011-03-10 Tom Tromey <tromey@redhat.com>
1477 * tracepoint.c (trace_actions_command): Update.
1478 * thread.c (thread_apply_command): Update.
1479 * reverse.c (delete_bookmark_command): Update.
1480 (bookmarks_info): Update.
1481 * printcmd.c (undisplay_command): Update.
1482 * memattr.c (mem_enable_command): Update.
1483 (mem_disable_command): Update.
1484 (mem_delete_command): Update.
1485 * inferior.c (detach_inferior_command): Update.
1486 (kill_inferior_command): Update.
1487 (remove_inferior_command): Update.
1488 * cli/cli-utils.h (struct get_number_or_range_state): New.
1489 (init_number_or_range): Declare.
1490 (get_number_or_range): Update.
1491 * cli/cli-utils.c (init_number_or_range): New function.
1492 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1494 (number_is_in_list): Update.
1495 * breakpoint.h (get_tracepoint_by_number): Update.
1496 * breakpoint.c (map_breakpoint_numbers): Update for change to
1497 get_number_or_range.
1498 (find_location_by_number): Use get_number, not
1499 get_number_or_range.
1500 (trace_pass_set_count): New function.
1501 (trace_pass_command): Update for change to get_number_or_range.
1503 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1506 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1508 * python/py-param.c (add_setshow_generic): Add set/show callback
1509 parameters. Register Python object context.
1510 (get_show_value): New function.
1511 (get_set_value): New function.
1512 (call_doc_function): New function.
1513 (get_doc_string): Move behind get_show_value/get_set_value.
1515 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1517 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1519 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1521 * xtensa-tdep.c (xtensa_read_register): Add comment.
1522 (xtensa_write_register): Likewise.
1523 (xtensa_hextochar): Add comment and update to match coding conventions.
1524 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1525 (execute_l32e, execute_s32e, execute_code): Update comments.
1526 (xtensa_exception_handler_t): Update to match coding conventions.
1527 (xtensa_insn_kind): Likewise.
1529 2011-03-09 Michael Snyder <msnyder@vmware.com>
1531 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1533 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1535 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1537 2011-03-09 Tom Tromey <tromey@redhat.com>
1539 * thread.c (restore_selected_frame): Handle frame_level == -1.
1540 (make_cleanup_restore_current_thread): Use
1541 get_selected_frame_if_set.
1542 * frame.h (get_selected_frame_if_set): Declare.
1543 * frame.c (get_selected_frame_if_set): New function.
1545 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1547 * cli/cli-cmds.c (shell_escape): Use lbasename.
1548 * coffread.c (coff_start_symtab): Constify parameter.
1549 (complete_symtab): Constify `name' parameter.
1550 (coff_symtab_read): Constify `filestring' local.
1551 (coff_getfilename): Constify return and `result' local.
1553 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1554 * linux-fork.c (info_checkpoints_command): Use lbasename.
1555 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1556 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1557 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1558 * procfs.c (procfs_make_note_section): Use lbasename.
1559 * tui/tui-io.c (printable_part): Constity return and parameter.
1561 (print_filename): Constify parameters, and local `s'.
1562 (tui_rl_display_match_list): Constify local `temp'.
1564 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1568 Fix DWARF-3+ DW_AT_accessibility default assumption.
1569 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1570 cu->header.version >= 3.
1572 2011-03-09 Yao Qi <yao@codesourcery.com>
1574 * common/Makefile.in: Remove.
1575 * common/configure: Remove.
1576 * common/configure.ac: Remove.
1578 2011-03-09 Yao Qi <yao@codesourcery.com>
1581 2011-02-11 Yao Qi <yao@codesourcery.com>
1583 * common/Makefile.in: Add copyright header.
1585 2011-02-11 Yao Qi <yao@codesourcery.com>
1587 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1589 * configure.ac: Add common to sub dir.
1590 * configure: Regenerate.
1592 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1594 * xtensa-tdep.c (call0_ret): New function.
1595 (xtensa_skip_prologue): Speed up analysis.
1597 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1599 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1600 while executing MI command -data-list-changed-registers.
1602 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1604 * xtensa-tdep.c (xtensa_read_register): New function.
1605 (xtensa_write_register): New function.
1606 (xtensa_find_register_by_name): New function.
1607 (xtensa_windowed_frame_cache): Update comments in type description.
1608 (xtensa_frame_cache): Likewise.
1609 (xtensa_window_interrupt_insn): New function.
1610 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1611 (xtensa_insn_kind): Add new instructions.
1612 (rwx_special_register): New function.
1613 (call0_classify_opcode): Add new instructions to the analysis.
1614 (a0_saved, a7_saved, a11_saved): New variables.
1615 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1616 (execute_l32e): New function.
1617 (execute_s32e): New function.
1618 (xtensa_exception_handler_t): New type.
1619 (execute_code): New function.
1620 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1621 analysis for Xtensa Window Exception handlers.
1623 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1625 * xtensa-tdep.c (TX_PS): New.
1626 (windowing_enabled): Update to count for Call0 ABI.
1627 (xtensa_hextochar): New.
1628 (xtensa_init_reggroups): Make algorithm generic.
1629 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1631 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1633 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1635 2011-03-08 Michael Snyder <msnyder@vmware.com>
1637 * i386-tdep.c (i386_follow_jump): Check return value of
1639 (i386_analyze_struct_return): Ditto.
1640 (i386_skip_probe): Ditto.
1641 (i386_match_insn): Ditto.
1642 (i386_skip_noop): Ditto.
1643 (i386_analyze_frame_setup): Ditto.
1644 (i386_analyze_register_saves): Ditto.
1645 (i386_skip_prologue): Ditto.
1646 (i386_skip_main_prologue): Ditto.
1648 * target.c (read_whatever_is_readable): Fix memory leak.
1650 * i386-tdep.c (i386_process_record): Document fall through.
1652 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1654 Fix DWARF-3+ DW_AT_accessibility default assumption.
1655 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1656 cu->header.version >= 3.
1658 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1660 * remote.c (remote_check_symbols): Skip if the target has no
1663 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1665 * target.c (read_whatever_is_readable): Reformat comment,
1666 with a minor typo fix. Minor reformatting of the code.
1668 2011-03-08 Yao Qi <yao@codesourcery.com>
1670 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1671 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1672 Use cached result instead of calling displaced_in_arm_mode again.
1673 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1674 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1675 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1676 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1677 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1678 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1679 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1680 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1681 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1682 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1683 (arm_catch_kernel_helper_return): Likewise.
1684 * gdb/arm-tdep.h : Update function declarations.
1686 2011-03-07 Michael Snyder <msnyder@vmware.com>
1688 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1690 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1692 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1694 * elfread.c (elf_symtab_read): Stop memory leak.
1696 * main.c (captured_main): Fix memory leak.
1698 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1700 * ada-lang.c (compare_names): Call is_name_suffix with string1
1703 2011-03-07 Tom Tromey <tromey@redhat.com>
1705 * xcoffread.c (xcoff_sym_fns): Update.
1706 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1707 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1708 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1709 (symbol_file_add_with_addrs_or_offsets): Likewise.
1710 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1711 * somread.c (som_sym_fns): Update.
1712 * psymtab.h (require_partial_symbols): Declare.
1713 * psymtab.c (require_partial_symbols): New function.
1714 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1715 (ALL_OBJFILE_PSYMTABS): Undef.
1716 (ALL_PSYMTABS): Move from psympriv.h.
1717 (lookup_partial_symtab, find_pc_sect_psymtab)
1718 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1719 (find_last_source_symtab_from_partial)
1720 (forget_cached_source_info_partial)
1721 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1722 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1723 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1724 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1725 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1726 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1727 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1728 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1729 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1731 * mipsread.c (ecoff_sym_fns): Update.
1732 * machoread.c (macho_sym_fns): Update.
1733 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1734 (read_psyms): New function.
1735 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1736 (elf_sym_fns_lazy_psyms): New global.
1737 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1738 dwarf2_build_psymtabs.
1739 * dbxread.c (aout_sym_fns): Update.
1740 * coffread.c (coff_sym_fns): Update.
1742 2011-03-07 Tom Tromey <tromey@redhat.com>
1744 * infrun.c (print_exited_reason): Include inferior id and pid in
1747 2011-03-07 Tom Tromey <tromey@redhat.com>
1749 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1751 (target_has_execution_1): Update.
1752 (target_has_execution_current): Declare.
1753 (target_has_execution): Call target_has_execution_current.
1754 (default_child_has_execution): Update.
1755 * target.c (default_child_has_execution): Add 'the_ptid'
1757 (target_has_execution_1): Likewise.
1758 (target_has_execution_current): New function.
1759 (add_target): Update.
1760 (init_dummy_target): Update.
1761 * remote-m32r-sdi.c (m32r_has_execution): New function.
1762 (init_m32r_ops): Use it.
1763 * record.c (record_core_has_execution): Now static. Add
1764 'the_ptid' parameter.
1765 * inferior.c (have_live_inferiors): Don't save current thread.
1766 Use target_has_execution_1.
1768 2011-03-07 Yao Qi <yao@codesourcery.com>
1770 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1772 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1774 * elfread.c (elf_symtab_read): Minor reformatting.
1776 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1778 * objc-lang.c (selectors_info): Minor reformatting.
1780 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1782 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1784 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1785 Michael Snyder <msnyder@vmware.com>
1787 * ada-valprint.c (ada_val_print_array): Move the declaration of
1788 "byte_order" and "elttype" inside the block where these variables
1789 are actually used. Remove some special handling for the case
1790 where "elttype" and "eltlen" are null. Replace by a comment
1791 and a couple of assertion checks.
1793 2011-03-05 Michael Snyder <msnyder@vmware.com>
1795 * source.c (add_path): Replace semicolon at end of block.
1796 * dwarf2expr.c (execute_stack_op): Ditto.
1798 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1800 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1801 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1802 (bfin-*-*): Likewise.
1804 2011-03-05 Michael Snyder <msnyder@vmware.com>
1806 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1807 * mdebugread.c (parse_symbol): Ditto.
1808 * parse.c (parse_exp_in_context): Ditto.
1809 * source.c (add_path): Ditto.
1810 * utils.c (gnu_debuglink_crc32): Ditto.
1811 * varobj.c (variable_language): Ditto.
1813 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1815 2011-03-04 Michael Snyder <msnyder@vmware.com>
1817 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1819 * symfile.c (simple_overlay_update): Check for null return value
1820 from lookup_minimal_symbol.
1822 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1824 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1826 * eval.c (parse_and_eval_address_1): Remove function.
1827 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1828 instead of parse_and_eval_address_1.
1829 * value.h (parse_and_eval_address_1): Remove prototype.
1831 2011-03-04 Michael Snyder <msnyder@vmware.com>
1833 * remote.c (putpkt_binary): Document that case stmt falls through.
1835 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1837 * breakpointc (print_it_typical): Move NULL check from here...
1838 (print_bp_stop_message): ... to here.
1840 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1842 * breakpoint.c (enable_command): Use break instead of continue,
1843 and fill in a missing break.
1844 (disable_command): Ditto.
1846 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1848 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1849 (terminal_save_ours): Remove misleading comment.
1850 (inflow_inferior_data_cleanup): Free ttystate.
1851 (inflow_inferior_exit): Likewise.
1852 (copy_terminal_info): Copy ttystate.
1854 * serial.c (serial_copy_tty_state): New function.
1855 * serial.h (serial_copy_tty_state): Add prototype.
1856 (struct serial_ops): Add copy_tty_state callback.
1857 * ser-base.c (ser_base_copy_tty_state): New function.
1858 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1859 * ser-go32.c (dos_copy_tty_state): New function.
1860 (dos_ops): Install copy_tty_state callback.
1861 * ser-mingw.c (_initialize_ser_windows): Likewise.
1862 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1863 * ser-unix.c (hardwire_copy_tty_state): New function.
1864 (_initialize_ser_hardwire): Install it.
1866 2011-03-04 Michael Snyder <msnyder@vmware.com>
1868 * breakpoint.c (create_breakpoint): Add missing break statement.
1870 Reverting this patch:
1871 * infcall.c (call_function_by_hand): Add break statements for lint.
1873 Reverting this patch:
1874 * cli/cli-script.c (script_from_file): Add break for lint.
1876 2011-03-04 Michael Snyder <msnyder@vmware.com>
1878 * solib.c (reload_shared_libraries_1): Close memory leak.
1880 2011-03-03 Tom Tromey <tromey@redhat.com>
1883 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1886 2011-03-03 Michael Snyder <msnyder@vmware.com>
1888 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1889 fields of struct 'st' to zero.
1891 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1892 sal.pspace before calling set_current_source_symtab_and_line.
1894 2011-03-03 Yao Qi <yao@codesourcery.com>
1896 * Makefile.in (configure-common): Remove. Let Makefile
1897 in dir common to rebuild itself.
1898 (common/Makefile): Likewise.
1900 2011-03-03 Joel Brobecker <brobecker@adacore.com>
1902 * utils.c (parse_escape): Add i18n markup in error message.
1904 2011-03-03 Yao Qi <yao@codesourcery.com>
1906 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1908 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1909 (displaced_write_reg, displaced_read_reg): Likewise.
1910 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1911 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1912 (cleanup_branch): Replace magic number 14 and 15 with
1913 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1915 2011-03-02 Michael Snyder <msnyder@vmware.com>
1917 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1919 * cli/cli-script.c (script_from_file): Add break for lint.
1921 * mdebugread.c (parse_partial_symbols): Fix indent.
1923 * target-descriptions.c (tdesc_gdb_type): No need to call
1924 xstrdup, callee saves a copy.
1926 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1928 * infcall.c (call_function_by_hand): Add break statements for lint.
1930 * utils.c (parse_escape): Escape the escape char.
1932 * python/py-inferior.c (build_inferior_list): Error out if
1933 PyList_Append fails.
1934 (gdbpy_inferiors): Error out if build_inferior_list fails.
1936 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1939 * record.c (record_restore): Move printf to before error return.
1941 2011-03-02 Yao Qi <yao@codesourcery.com>
1943 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1944 is_thumb and insn_size.
1945 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1946 on both ARM and Thumb mode.
1947 (arm_process_displaced_insn): Set is_thumb and insn_size.
1948 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1949 (arm_displaced_step_fixup): Likewise.
1951 2011-03-01 Michael Snyder <msnyder@vmware.com>
1953 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1955 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1957 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1959 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1961 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1964 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1965 which shadows function parameter.
1967 * tracepoint.c (create_tsv_from_upload): Superfluous call
1968 to xstrdup. Callee already calls xstrdup.
1970 * linespec.c (decode_line_1): Remove unnecessary null check.
1972 * tracepoint.c (scope_info): Fix mem leak, remove underused
1975 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1976 superfluous null check.
1978 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
1979 (value_of_builtin_frame_fp_reg): Ditto.
1981 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1983 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1986 * linespec.c (decode_line_1): Check for null before dereference.
1988 * reverse.c (record_restore): Move null-check to before pointer
1991 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1993 * objc-lang.c (selectors_info): Add explanitory comment.
1994 (classes_info): Ditto.
1996 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1998 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1999 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2000 versions of the trampoline. Handle Thumb vs. ARM addresses.
2001 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2002 (arm_linux_init_abi): Install it.
2003 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2004 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2006 2011-02-28 Michael Snyder <msnyder@vmware.com>
2008 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2009 a little bigger, to avoid possibility of an overflow.
2011 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2012 buffers a little bigger, to avoid possibility of an overflow.
2014 * coffread.c (coff_getfilename): Add check to avoid overflow.
2016 * objc-lang.c (selectors_info): Add a small safety margin to
2018 (classes_info): Error out on too long REGEXP.
2020 * infrun.c (handle_inferior_event): Remove unused function call.
2022 * fork-child.c (fork_inferior): Remove ifdef'd code and
2025 * linux-thread-db.c (attach_thread): Discard unused value.
2027 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2029 * remote.c (remote_get_noisy_reply): Discard unused value.
2030 (remote_vcont_resume): Ditto.
2031 (remote_stop_ns): Ditto.
2033 * linespec.c (decode_objc): Delete unused variable.
2035 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2037 * dwarf2read.c (add_partial_symbol): Discard unused values.
2038 (read_base_type): Delete unused variable.
2040 * dbxread.c (read_dbx_symtab): Discard unused value.
2042 * eval.c (evaluate_subexp_standard): Delete unused variable,
2043 and discard unused values.
2045 * infcmd.c (_initialize_infcmd): Discard unused values.
2047 * stabsread.c (rs6000_builtin_type): Missing break statement.
2049 * dbxread.c (process_one_symbol): Discard unused value.
2051 * coffread.c (coff_end_symtab): Delete unused variable.
2053 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2054 (dwarf2_add_typedef): Delete unused variable.
2055 (read_namespace): Ditto.
2056 (dwarf_decode_macros): Ditto.
2058 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2060 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2062 * p-valprint.c (pascal_val_print): Discard unused value.
2064 * utils.c (nquery): Call va_end before return;
2068 * proc-service.c (ps_plog): Call va_end before return.
2070 2011-02-28 Tom Tromey <tromey@redhat.com>
2072 * python/python.c (gdbpy_value_cst): New global.
2073 (_initialize_python): Initialize it.
2074 * python/python-internal.h (gdbpy_value_cst): Declare.
2075 * python/py-value.c (convert_value_from_python): Use
2078 2011-02-28 Michael Snyder <msnyder@vmware.com>
2080 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2082 * breakpoint.c (catch_syscall_completer): Free malloced list.
2084 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2086 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2087 (lval_func_check_synthetic_pointer): Ditto.
2088 (lval_func_free_closure): Fix use-after-free.
2090 2011-02-28 Tom Tromey <tromey@redhat.com>
2092 * psymtab.c (expand_partial_symbol_tables): Use
2093 ALL_OBJFILE_PSYMTABS.
2095 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2097 * objc-lang.c (selectors_info): Error on too long REGEXP.
2099 2011-02-28 Michael Snyder <msnyder@vmware.com>
2101 * python/py-param.c (set_parameter_value): Add missing
2104 * linux-record.c (record_linux_system_call): Add missing
2107 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2109 * breakpoint.c (print_one_breakpoint_location): Remove unused
2110 argument PRINT_ADDRESS_BITS. Update callers.
2111 (print_one_breakpoint): Likewise.
2113 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2115 * breakpoint.c (wrap_indent_at_field): New function.
2116 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2117 Allocate ui_stream locally instead of using STB argument.
2118 (print_one_breakpoint_location): Update call.
2119 * ui-out.c (ui_out_query_field): New function.
2120 * ui-out.h (ui_out_query_field): Add prototype.
2122 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2124 From Michael Snyder <msnyder@vmware.com>
2125 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2127 2011-02-27 Michael Snyder <msnyder@vmware.com>
2129 * objc-lang.c (selectors_info): Prevent string overrun.
2131 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2134 * symtab.c (rbreak_command): Move variable 'file_name' to
2137 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2138 param with a local variable of the same name.
2140 2011-02-27 Michael Snyder <msnyder@vmware.com>
2142 * value.c (value_from_history_ref): New function.
2143 * value.h (value_from_history_ref): Export.
2144 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2145 to parse value history references.
2146 * cli/cli-utils.h (get_number_trailer): Update comment.
2148 2011-02-27 Michael Snyder <msnyder@vmware.com>
2150 * inferior.c (detach_inferior_command): Use get_number_or_range.
2151 (kill_inferior_command): Ditto.
2152 (remove_inferior_command): Ditto.
2153 (initialize_inferiors): Make command names plural.
2154 Update help strings.
2156 2011-02-27 Michael Snyder <msnyder@vmware.com>
2158 * darwin-nat-info.c: Fix comment typo.
2159 * dwarf2expr.h: Ditto.
2160 * fbsd-nat.c: Ditto.
2161 * fbsd-nat.h: Ditto.
2162 * frame-unwind.h: Ditto.
2164 * hppa-hpux-tdep.c: Ditto.
2165 * i386-linux-nat.c: Ditto.
2166 * linux-nat.c: Ditto.
2167 * nbsd-nat.c: Ditto.
2168 * nbsd-nat.h: Ditto.
2169 * ppc-linux-tdep.c: Ditto.
2172 * tui/tui-winsource.c: Ditto.
2174 2011-02-26 Michael Snyder <msnyder@vmware.com>
2176 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2178 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2180 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2181 with a local variable of the same name.
2183 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2184 param with a local variable of the same name.
2185 (i387_supply_xsave): Ditto.
2187 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2188 that it does not shadow a function parameter.
2190 * i386-nat.c (i386_length_and_rw_bits): Document that case
2191 statement is meant to fall through.
2193 * expprint.c (dump_subexp_body_standard): Document that case
2194 statement is meant to fall through.
2196 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2197 dead if statement. Condition can't be false.
2199 2011-02-25 Michael Snyder <msnyder@vmware.com>
2201 * arm-tdep.c: Fix typos in comments.
2202 * bsd-uthread.c: Ditto.
2203 * completer.c: Ditto.
2205 * cp-namespace.c: Ditto.
2206 * cp-support.c: Ditto.
2207 * cris-tdep.c: Ditto.
2209 * dwarf2read.c: Ditto.
2211 * gdbtypes.h: Ditto.
2212 * inferior.h: Ditto.
2213 * mdebugread.c: Ditto.
2214 * mips-tdep.c: Ditto.
2215 * ppc-linux-nat.c: Ditto.
2216 * ppc-linux-tdep.c: Ditto.
2217 * printcmd.c: Ditto.
2218 * sol-thread.c: Ditto.
2219 * solib-frv.c: Ditto.
2221 * sparc64-tdep.c: Ditto.
2222 * spu-tdep.c: Ditto.
2223 * stabsread.c: Ditto.
2228 * python/py-block.c: Ditto.
2229 * python/py-symbol.c: Ditto.
2230 * python/py-symtab.c: Ditto.
2231 * python/py-value.c: Ditto.
2232 * tui/tui-win.c: Ditto.
2234 2011-02-25 Michael Snyder <msnyder@vmware.com>
2236 * inferior.c (print_inferior): Accept a string instead of an int
2237 for requested_inferiors, and use get_number_or_range to parse it.
2238 (info_inferiors_command): Pass args string to print_inferior.
2239 (initialize_inferiors): Change help string for info inferiors.
2240 * inferior.h (print_inferior): Export prototype change.
2242 2011-02-25 Tom Tromey <tromey@redhat.com>
2244 * common/ax.def (invalid2): Set to 0x31.
2246 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2250 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2252 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2254 2011-02-24 Michael Snyder <msnyder@vmware.com>
2256 * Makefile.in (clean): Make clean should remove generated files
2257 observer.h and observer.inc.
2259 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2261 Revert the following patch (not approved yet):
2262 2011-02-21 Hui Zhu <teawater@gmail.com>
2263 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2264 * ax-gdb.c (gen_printf_expr_callback): New function.
2265 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2266 * ax-general.c (ax_memcpy): New function.
2267 (ax_print): Handle "printf".
2269 * ax.h (ax_memcpy): Forward declare.
2270 * common/ax.def (invalid2): Removed.
2271 (printf): New entry.
2272 * printcmd.c (printcmd.h): New include.
2273 (string_printf): New function.
2274 (ui_printf): Removed.
2275 (printf_command): Remove static. Call string_printf.
2276 (eval_command): Call string_printf.
2277 * printcmd.h: New file.
2278 * tracepoint.c (validate_actionline,
2279 encode_actions_1): handle printf_command.
2281 2011-02-23 Tom Tromey <tromey@redhat.com>
2283 * ax-general.c (ax_pick): Add missing newline.
2285 2011-02-23 Michael Snyder <msnyder@vmware.com>
2287 * breakpoint.c (breakpoint_1): Change first argument from an int
2288 to a char pointer, so that the function now accepts a list of
2289 breakpoints rather than just one. Use new function
2290 'number_is_in_list' to implement.
2291 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2292 (watchpoints_info): Ditto.
2293 (tracepoints_info): Ditto.
2294 (maintenance_info_breakpoints): Ditto.
2295 (_initialize_breakpoint): Update help strings to reflect the fact
2296 that these functions can now take more than one argument.
2297 * cli/cli-utils.c (number_is_in_list): New function.
2298 * cli/cli-utils.h (number_is_in_list): Export.
2300 2011-02-23 Michael Snyder <msnyder@vmware.com>
2302 * memattr.c (mem_enable_command): Use get_number_or_range.
2303 (mem_disable_command): Ditto.
2304 (mem_delete_command): Ditto.
2305 (_initialize_mem): Tweak usage message to reflect multiple
2308 2011-02-22 Doug Evans <dje@google.com>
2310 Add gdb.lookup_global_symbol python function.
2312 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2313 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2314 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2316 2011-02-22 Tom Tromey <tromey@redhat.com>
2318 * language.c (language_class_name_from_physname): Rename
2319 'curr_language' argument to 'lang'; use in body.
2321 2011-02-22 Michael Snyder <msnyder@vmware.com>
2323 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2325 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2327 * frame-unwind.h: Fix comment to mention the this frame, not the
2330 2011-02-22 Tom Tromey <tromey@redhat.com>
2332 * symfile.c (auto_solib_limit): Remove.
2333 * symfile.h (auto_solib_limit): Remove.
2335 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2337 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2339 2011-02-21 Michael Snyder <msnyder@vmware.com>
2341 * gdbthread.h (print_thread_info): Change prototype.
2342 * thread.c (print_thread_info): Accept char* instead of int for
2343 requested_threads argument. Use new function number_is_in_list
2344 to determine which threads to list.
2345 (info_threads_command): Pass char* to print_thread_info.
2346 * cli/cli-utils.c (number_is_in_list): New function.
2347 * cli/cli-utils.h (number_is_in_list): Export.
2348 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2350 (print_one_inferior): Ditto.
2351 (mi_cmd_list_thread_groups): Ditto.
2353 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 * common/Makefile.in (CFLAGS): New.
2356 (COMPILE): Add $(CFLAGS).
2358 2011-02-21 Tom Tromey <tromey@redhat.com>
2360 * breakpoint.c (catch_syscall_command_1): Fix typo.
2362 2011-02-21 Tom Tromey <tromey@redhat.com>
2364 * reverse.c: Include cli-utils.h.
2365 * printcmd.c: Include cli-utils.h.
2366 (string_printf): Use skip_spaces.
2367 * cli/cli-utils.h: New file.
2368 * cli/cli-utils.c: New file.
2369 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2370 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2371 * breakpoint.h (get_number, get_number_or_range): Move to
2373 * breakpoint.c: Include cli-utils.h.
2374 (get_number_trailer, get_number, get_number_or_range)
2375 (ep_skip_leading_whitespace): Move to cli-utils.c.
2376 (create_breakpoint_sal, find_condition_and_thread)
2377 (decode_static_tracepoint_spec, watch_command_1)
2378 (watch_maybe_just_location, ep_parse_optional_if_clause)
2379 (catch_fork_command_1, catch_exec_command_1)
2380 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2381 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2382 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2383 (HFILES_NO_SRCDIR): Add cli-utils.h.
2384 (cli-utils.o): New target.
2386 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2388 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2389 before calling discard_all_inferiors.
2391 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2393 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2394 (struct builtin_opencl_type): Remove.
2395 (builtin_opencl_type): Change return type to "struct type **".
2396 (lookup_opencl_vector_type): Update caller.
2397 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2398 (build_opencl_types): Install plain array of "struct type *"
2399 instead of "struct builtin_opencl_type".
2401 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2402 Ulrich Weigand <uweigand@de.ibm.com>
2404 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2405 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2406 (struct arm_linux_hwbp_cap): New type.
2407 (arm_linux_get_hwbp_cap): New function.
2408 (arm_linux_get_hw_breakpoint_count): Likewise.
2409 (arm_linux_get_hw_watchpoint_count): Likewise.
2410 (arm_linux_can_use_hw_breakpoint): Likewise.
2411 (arm_hwbp_type): New type.
2412 (arm_hwbp_control_t): Likewise.
2413 (struct arm_linux_hw_breakpoint): Likewise.
2414 (struct arm_linux_thread_points): Likewise.
2415 (arm_threads): New global variable.
2416 (arm_linux_find_breakpoints_by_tid): New function.
2417 (arm_hwbp_control_initialize): Likewise.
2418 (arm_hwbp_control_is_enabled): Likewise.
2419 (arm_hwbp_control_disable): Likewise.
2420 (arm_linux_hw_breakpoint_initialize): Likewise.
2421 (arm_linux_get_hwbp_type): Likewise.
2422 (arm_linux_hw_watchpoint_initialize): Likewise.
2423 (arm_linux_hw_breakpoint_equal): Likewise.
2424 (arm_linux_insert_hw_breakpoint1): Likewise.
2425 (arm_linux_remove_hw_breakpoint1): Likewise.
2426 (arm_linux_insert_hw_breakpoint): Likewise.
2427 (arm_linux_remove_hw_breakpoint): Likewise.
2428 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2429 (arm_linux_insert_watchpoint): Likewise.
2430 (arm_linux_remove_watchpoint): Likewise.
2431 (arm_linux_stopped_data_address): Likewise.
2432 (arm_linux_stopped_by_watchpoint): Likewise.
2433 (arm_linux_watchpoint_addr_within_range): Likewise.
2434 (arm_linux_new_thread): Likewise.
2435 (arm_linux_thread_exit): Likewise.
2436 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2437 related target callbacks. Register arm_linux_new_thread and
2438 arm_linux_thread_exit.
2439 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2440 * arm-tdep.c (arm_pc_is_thumb): Make global.
2441 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2443 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2445 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2446 per-frame locations while within a function epilogue.
2448 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2450 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2451 to GNU coding standards.
2453 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2455 Allow use of mingw native on Windows 95 OS.
2456 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2457 (ser_windows_close): Only call CancelIo if function exists.
2458 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2459 to check for existence of CancelIo function in kernel32 DLL.
2461 2011-02-21 Hui Zhu <teawater@gmail.com>
2463 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2464 * ax-gdb.c (gen_printf_expr_callback): New function.
2465 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2466 * ax-general.c (ax_memcpy): New function.
2467 (ax_print): Handle "printf".
2469 * ax.h (ax_memcpy): Forward declare.
2470 * common/ax.def (invalid2): Removed.
2471 (printf): New entry.
2472 * printcmd.c (printcmd.h): New include.
2473 (string_printf): New function.
2474 (ui_printf): Removed.
2475 (printf_command): Remove static. Call string_printf.
2476 (eval_command): Call string_printf.
2477 * printcmd.h: New file.
2478 * tracepoint.c (validate_actionline,
2479 encode_actions_1): handle printf_command.
2481 2011-02-19 Michael Snyder <msnyder@vmware.com>
2483 * reverse.c (delete_one_bookmark): Argument is now bookmark
2484 id rather than pointer to bookmark struct.
2485 (delete_bookmark_command): Use get_number_or_range.
2486 (goto_bookmark_command): Parse with get_number instead of strtoul.
2487 (bookmark_1): New function. Print info for one bookmark.
2488 (bookmarks_info): Use get_number_or_range and bookmark_1.
2490 2011-02-18 Michael Snyder <msnyder@vmware.com>
2492 * thread.c (info_threads_command): Re-implement using
2493 get_number_or_range.
2494 (thread_apply_command): Ditto.
2496 2011-02-18 Tom Tromey <tromey@redhat.com>
2498 * common/ax.def: New file.
2499 * ax.h (enum agent_op): Use ax.def.
2500 * ax-general.c (aop_map): Use ax.def.
2502 2011-02-18 Tom Tromey <tromey@redhat.com>
2504 * ax-general.c (aop_map): Add pick and rot.
2505 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2506 <DW_OP_rot>: Implement.
2507 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2509 * ax-general.c (ax_pick): New function.
2511 2011-02-18 Tom Tromey <tromey@redhat.com>
2513 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2515 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2516 Tom Tromey <tromey@redhat.com>
2518 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2519 make_symbol_overload_list_block with NULL BLOCK.
2520 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2522 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2524 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2525 * breakpoint.h (get_number_or_range): Declare.
2526 * printcmd.c (ALL_DISPLAYS): Declare.
2527 (delete_display): Reimplement taking a display pointer.
2528 (undisplay_command): Accept a range of displays to delete, using
2529 get_number_or_range.
2531 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2533 * c-valprint.c (c_val_print): Add embedded_offset to address
2534 for arrays of unspecified length.
2535 * p-valprint.c (pascal_val_print): Likewise.
2537 2011-02-18 Yao Qi <yao@codesourcery.com>
2539 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2540 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2541 (thumb_process_displaced_insn): New.
2542 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2543 call to arm_process_displaced_insn.
2544 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2546 2011-02-17 Tom Tromey <tromey@redhat.com>
2548 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2549 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2550 compile_dwarf_to_ax. No longer static. Call
2551 dwarf2_compile_cfa_to_ax.
2552 (locexpr_tracepoint_var_ref): Update.
2553 (loclist_tracepoint_var_ref): Update.
2554 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2555 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2556 argument; add 'gdbarch' and 'pc'.
2557 (dwarf2_compile_cfa_to_ax): New function.
2558 (dwarf2_frame_cache): Update.
2560 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2562 * ada-lang.c (ada_type_of_array): Fix the size of the array
2563 in the case of an unconstrained packed array.
2565 2011-02-17 Yao Qi <yao@codesourcery.com>
2567 * common/Makefile.in: Add more targets for make.
2569 2011-02-16 Tom Tromey <tromey@redhat.com>
2571 * dwarf2loc.c (unimplemented): Fix typo.
2573 2011-02-16 Tom Tromey <tromey@redhat.com>
2575 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2576 (compile_dwarf_to_ax) <default>: Use unimplemented.
2577 <DW_OP_deref>: Update.
2578 (disassemble_dwarf_expression): Update.
2579 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2580 (decode_locdesc): Update.
2581 * dwarf2expr.h (dwarf_stack_op_name): Update.
2583 2011-02-16 Tom Tromey <tromey@redhat.com>
2585 * ax.h (struct aop_map) <name>: Now const.
2587 2011-02-16 Tom Tromey <tromey@redhat.com>
2589 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2592 2011-02-16 Yao Qi <yao@codesourcery.com>
2594 * infrun.c (get_displaced_step_closure_by_addr): New.
2595 * inferior.h: Declare it.
2596 * arm-tdep.c: (arm_pc_is_thumb): Call
2597 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2600 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2601 Jan Kratochvil <jan.kratochvil@redhat.com>
2604 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2606 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2607 Jan Kratochvil <jan.kratochvil@redhat.com>
2609 * value.c (value_contents_copy_raw): Extend describing comment.
2610 Assert that the destination contents we're overwriting are wholly
2612 (value_contents_copy): Extend describing comment.
2614 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2615 Jan Kratochvil <jan.kratochvil@redhat.com>
2617 * value.c (value_available_contents_eq): Remove redundant local
2618 variables. Fix available contents comparision.
2619 * value.h (value_available_contents_eq): Extend describing
2622 2011-02-16 Yao Qi <yao@codesourcery.com>
2624 * thread.c (info_threads_command): Add missing i18n markup and remove
2627 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2629 * breakpoint.c (longjmp_names): New variable.
2630 (struct breakpoint_objfile_data): New type.
2631 (breakpoint_objfile_key): New variable.
2632 (msym_not_found): New variable.
2633 (msym_not_found_p): New predicate.
2634 (get_breakpoint_objfile_data): New function.
2635 (create_overlay_event_breakpoint): Check per-objfile cache for
2637 (create_longjmp_master_breakpoint): Likewise.
2638 (create_std_terminate_master_breakpoint): Likewise.
2639 (create_exception_master_breakpoint): Likewise.
2640 (_initialize_breakpoint): Register per-objfile data key.
2642 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2644 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2646 (create_longjmp_master_breakpoint): Loop over longjmp names.
2647 (create_std_terminate_master_breakpoint): Const-propagate parameter
2649 (update_breakpoints_after_exec): Adjust.
2650 (breakpoint_re_set): Adjust.
2652 2011-02-15 Michael Snyder <msnyder@vmware.com>
2654 * thread.c (info_threads_command): Process arg as thread id,
2655 or list of thread ids.
2656 (thread_find_command): New command.
2657 (_initialize_thread): Document argument for info threads.
2658 Document 'thread find' command.
2659 * NEWS: Document new command "thread find".
2661 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2663 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2664 * aclocal.m4: Regenerated with aclocal-1.11.1.
2665 * common/configure: Regenerate with autoconf-2.64.
2667 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2669 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2670 bool data type to a size of one byte.
2672 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2673 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 * target.c (memory_xfer_live_readonly_partial): Document where to
2676 look for interface description.
2678 2011-02-15 Yao Qi <yao@codesourcery.com>
2681 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2682 order to store PC value on stack instead of text section.
2684 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2686 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2687 the EFP register set size.
2688 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2689 data from the VMX register.
2690 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2691 and write data from/to the VMX register.
2693 2011-02-14 Michael Snyder <msnyder@vmware.com>
2695 * command.h (enum command_class): New class 'no_set_class', for
2696 "show" commands without a corresponding "set" command.
2697 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2698 * copying.c (_initialize_copying): Ditto for "show copying" and
2700 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2702 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2703 which there is no corresponding "set" command (eg. "show copying").
2705 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2706 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 * exec.c (section_table_available_memory): Change `len' parameter
2710 * exec.h (section_table_available_memory): Ditto.
2711 * value.h (read_value_memory): Rename the `offset' parameter to
2714 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2715 Jan Kratochvil <jan.kratochvil@redhat.com>
2717 * memrange.c (compare_mem_ranges): Mention sort order in
2719 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2720 * tracepoint.c (traceframe_available_memory): Extend comment to
2721 mention what happens to RESULT when the target does not support
2724 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2725 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2730 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2732 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2733 No longer handle NULL values.
2735 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2737 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2738 * value.c: Include "exceptions.h".
2739 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2741 * cp-abi.c: Include gdb_assert.h.
2742 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2743 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2745 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2746 parameters. No longer returns -1 on error.
2747 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2749 * cp-valprint.c: Include exceptions.h.
2750 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2751 the baseclass_offset. Handle unavailable base classes. Use
2752 val_print_invalid_address.
2753 * p-valprint.c: Include exceptions.h.
2754 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2755 when fetching the baseclass_offset. No longer expect
2756 baseclass_offset returning -1. Handle unavailable base classes.
2757 Use val_print_invalid_address.
2758 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2759 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2760 `embedded_offset' and `val' parameters. Adjust.
2761 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2762 parameter, and change its type to gdb_byte pointer. Add
2763 `embedded_offset' and `val' parameters. Adjust. No longer expect
2764 baseclass_offset returning -1.
2765 (value_dynamic_cast): Use value_contents_for_printing rather than
2766 value_contents. Adjust.
2767 (search_struct_field): No longer expect baseclass_offset returning
2769 (search_struct_method): If reading memory from the target is
2770 necessary, wrap it in a new value to pass to baseclass_offset. No
2771 longer expect baseclass_offset returning -1.
2772 (find_method_list): No longer expect baseclass_offset returning
2773 -1. Use value_contents_for_printing rather than value_contents.
2774 * valprint.c (val_print_invalid_address): New function.
2775 * valprint.h (val_print_invalid_address): Declare.
2776 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2777 and `val' parameters. No longer expect baseclass_offset returning
2779 * gnu-v2-abi.c: Include "exceptions.h".
2780 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2781 parameters. Handle unavailable memory. Recurse through
2782 gnuv2_baseclass_offset directly, rather than through
2783 baseclass_offset. No longer returns -1 on not found, instead
2785 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2786 `val' parameters. Adjust.
2788 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2790 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2791 almost but not quite adjacent.
2793 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2795 * value.h (value_entirely_available): Declare.
2796 * value.c (value_entirely_available): New function.
2797 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2798 real type if the pointer is unavailable.
2800 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2802 * valops.c (value_repeat): Use read_value_memory instead of
2805 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2807 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2808 * value.c (value_contents_copy_raw, value_contents_copy): New
2810 (value_primitive_field): Use value_contents_copy_raw instead of
2812 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2814 (value_array, value_slice): Ditto.
2815 * valarith.c (value_subscripted_rvalue): Use
2816 value_contents_copy_raw instead of memcpy.
2818 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2820 <unavailable> references.
2822 * valops.c (get_value_at): Use value_from_contents_and_address,
2823 avoiding read_memory.
2825 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2827 * c-valprint.c (c_val_print): Print a string with unavailable
2828 contents as an array.
2830 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2832 * value.h (unpack_bits_as_long): Delete declaration.
2833 (unpack_value_bits_as_long): Declare.
2834 (unpack_value_field_as_long): Declare.
2835 (value_field_bitfield): Declare.
2836 * value.c (unpack_bits_as_long): Rename to...
2837 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2838 value parameters. Return the extracted result in a new output
2839 parameter. If the value contents are unavailable, return false,
2840 otherwise return true.
2841 (unpack_value_bits_as_long): New.
2842 (unpack_field_as_long): Rename to...
2843 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2844 Add embedded_offset and value parameters. Return the extracted
2845 result in a new output parameter. If the value contents are
2846 unavailable, return false, otherwise return true.
2847 (unpack_value_field_as_long): New.
2848 (unpack_field_as_long_1): New.
2849 (unpack_field_as_long): Reimplement as wrapper around
2850 unpack_value_field_as_long_1.
2851 (value_field_bitfield): New function.
2852 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2853 unpack_value_bits_as_long. Mark the value as unavailable, if it
2855 * jv-valprint.c (java_print_value_fields): Use
2856 value_field_bitfield.
2857 * p-valprint.c (pascal_object_print_value_fields): Use
2858 value_field_bitfield.
2859 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2861 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2863 * value.c (get_internalvar_integer): Also return the int value of
2864 TYPE_CODE_INT INTERNALVAR_VALUE values.
2865 (set_internalvar): Don't special case TYPE_CODE_INT.
2867 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2869 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2870 INTERNALVAR_POINTER.
2872 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2873 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2874 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2876 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2878 * value.h (value_available_contents_eq): Declare.
2879 * value.c (find_first_range_overlap): New function.
2880 (value_available_contents_eq): New function.
2881 * valprint.c (val_print_array_elements): Use
2882 value_available_contents_eq.
2883 * ada-valprint.c (val_print_packed_array_elements): Use
2884 value_available_contents_eq.
2885 * jv-valprint.c (java_value_print): Use
2886 value_available_contents_eq.
2888 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2890 * target.c (target_read_live_memory): New function.
2891 (memory_xfer_live_readonly_partial): New.
2892 (memory_xfer_partial): If reading from a traceframe, fallback to
2893 reading unavailable read-only memory from read-only regions of
2895 * tracepoint.c (disconnect_tracing): Adjust.
2896 (set_current_traceframe): New, factored out from
2897 set_traceframe_number.
2898 (set_traceframe_number): Reimplement to only change the traceframe
2899 number on the GDB side.
2900 (do_restore_current_traceframe_cleanup): Adjust.
2901 (make_cleanup_restore_traceframe_number): New.
2902 (cur_traceframe_number): New global.
2903 (tfile_open): Set cur_traceframe_number to no traceframe.
2904 (set_tfile_traceframe): New function.
2905 (tfile_trace_find): If looking up a traceframe using any method
2906 other than by number, make sure the current tfile traceframe
2907 matches gdb's current traceframe. Update the current tfile
2908 traceframe if the lookup succeeded.
2909 (tfile_fetch_registers, tfile_xfer_partial)
2910 (tfile_get_trace_state_variable_value): Make sure the remote
2911 traceframe matches gdb's current traceframe.
2912 * remote.c (remote_traceframe_number): New global.
2913 (remote_open_1): Set it to -1.
2914 (set_remote_traceframe): New function.
2915 (remote_fetch_registers, remote_store_registers)
2916 (remote_xfer_memory, remote_xfer_partial)
2917 (remote_get_trace_state_variable_value): Make sure the remote
2918 traceframe matches gdb's current traceframe.
2919 (remote_trace_find): If looking up a traceframe using any method
2920 other than by number, make sure the current remote traceframe
2921 matches gdb's current traceframe. Update the current remote
2922 traceframe if the lookup succeeded.
2923 * infrun.c (fetch_inferior_event): Adjust.
2924 * tracepoint.h (set_current_traceframe): Declare.
2925 (get_traceframe_number, set_traceframe_number): Add describing
2928 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2930 Mark pieces of values as unavailable if the corresponding memory
2933 * valops.c: Include tracepoint.h.
2934 (value_fetch_lazy): Use read_value_memory.
2935 (read_value_memory): New.
2936 * value.h (read_value_memory): Declare.
2937 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2938 * exec.c (section_table_available_memory): New function.
2939 * exec.h (section_table_available_memory): Declare.
2941 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2943 * Makefile.in (SFILES): Add memrange.c.
2944 (HFILES_NO_SRCDIR): Add memrange.h.
2945 (COMMON_OBS): Add memrange.o.
2946 * memrange.c: New file.
2947 * memrange.h: New file.
2948 * tracepoint.c: Include memrange.h.
2949 (struct mem_range): Delete.
2950 (mem_range_s): Delete.
2951 (traceframe_available_memory): New function.
2952 * tracepoint.h (traceframe_available_memory): Declare.
2954 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2956 * target.h (struct traceframe_info): Forward declare.
2957 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2958 (struct target_ops) <to_traceframe_info>: New field.
2959 (target_traceframe_info): New.
2960 * target.c (update_current_target): Inherit and default
2962 * remote.c (PACKET_qXfer_traceframe_info): New.
2963 (remote_protocol_features): Register qXfer:traceframe-info:read.
2964 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2965 (remote_traceframe_info): New.
2966 (init_remote_ops): Install it.
2967 (_initialize_remote): Install "set/show remote traceframe-info"
2969 * tracepoint.h (parse_traceframe_info): Declare.
2970 * tracepoint.c (struct mem_range): New.
2971 (mem_range_s): New typedef.
2972 (struct traceframe_info): New.
2973 (traceframe_info): New global.
2974 (free_traceframe_info): New function.
2975 (clear_traceframe_info): New function.
2976 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2978 (build_traceframe_info): New function.
2979 (tfile_traceframe_info): New function.
2980 (init_tfile_ops): Install tfile_traceframe_info.
2981 (traceframe_info_start_memory, free_result): New functions.
2982 (memory_attributes, traceframe_info_elements): New globals.
2983 (parse_traceframe_info, get_traceframe_info): New functions.
2984 * features/traceframe-info.dtd: New file.
2985 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2987 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2989 Base support for <unavailable> value contents.
2991 * value.h (value_bytes_available): Declare.
2992 (mark_value_bytes_unavailable): Declare.
2993 * value.c (struct range): New struct.
2994 (range_s): New typedef.
2995 (ranges_overlap): New function.
2996 (range_lessthan): New function.
2997 (ranges_contain_p): New function.
2998 (struct value) <unavailable>: New field.
2999 (value_bytes_available): New function.
3000 (mark_value_bytes_unavailable): New function.
3001 (require_not_optimized_out): Constify parameter.
3002 (require_available): New function.
3003 (value_contents_all, value_contents): Require all bytes be
3005 (value_free): Free `unavailable'.
3006 (value_copy): Copy `unavailable'.
3007 * valprint.h (val_print_unavailable): Declare.
3008 * valprint.c (valprint_check_validity): Rename `offset' parameter
3009 to `embedded_offset'. If printing a scalar, check whether the
3010 value chunk is available.
3011 (val_print_unavailable): New.
3012 (val_print_scalar_formatted): Check whether the value is
3014 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3015 pretty-printing unavailable values.
3017 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3019 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3020 * c-typeprint.c (c_type_print_args): Update the function comment. New
3021 variable param_type, initialize it. Remove const/volatile qualifiers
3022 for language_cplus and !show_artificial. Use param_type.
3024 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3026 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3027 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3028 * symtab.h (struct symtab) <next>: Comment extension.
3030 2011-02-12 Yao Qi <yao@codesourcery.com>
3032 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3034 2011-02-11 Yao Qi <yao@codesourcery.com>
3036 * common/Makefile.in: Add copyright header.
3038 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3040 * infrun.c (proceed): Move switching out and in of tfind mode from
3042 (fetch_inferior_event): ... to here.
3044 2011-02-11 Yao Qi <yao@codesourcery.com>
3046 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3048 * configure.ac: Add common to sub dir.
3049 * configure: Regenerate.
3051 2011-02-11 Yao Qi <yao@codesourcery.com>
3055 * common/Makefile.in: New.
3056 * common/configure.ac: New.
3057 * common/aclocal.m4: New.
3058 * common/configure: Generate.
3060 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3062 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3063 side of the parenthesis.
3066 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3067 * vec.h (VEC_block_remove): Fix comment.
3069 2011-02-08 Michael Snyder <msnyder@vmware.com>
3071 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3073 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3075 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3076 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3079 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3082 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3084 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3085 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3087 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3089 * dwarf2read.c (read_subroutine_type): Set special calling
3090 convention flag for functions compiled by IBM XL C for OpenCL.
3091 * ppc-sysv-tdep.c: Include "dwarf2.h"
3092 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3094 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3095 IBM OpenCL vector types calling convention.
3096 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3097 (ppc_sysv_abi_broken_return_value): Likewise.
3098 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3099 types calling convention.
3100 (ppc64_sysv_abi_return_value): Likewise.
3101 * spu-tdep.c: Include "dwarf2.h"
3102 (spu_return_value): Implement IBM OpenCL vector types calling
3105 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3107 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3108 correct ABI for AltiVec vector arguments.
3110 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3112 * valprint.c (val_print): Extend comment.
3113 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3114 interface explanation to val_print.
3115 (ada_val_print_array): Adjust comment to current interface.
3116 (print_field_values): Adjust comment to current interface.
3117 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3118 explanation to val_print.
3119 * f-valprint.c (f_val_print): Ditto.
3120 * jv-valprint.c (java_val_print): Ditto.
3121 * m2-valprint.c (m2_val_print): Ditto.
3122 * p-valprint.c (pascal_val_print): Ditto.
3124 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3126 * breakpoint.c (parse_breakpoint_sals): Fix description.
3128 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3129 Oguz Kayral <oguzkayral@gmail.com>
3131 * python/py-inferior.c (python_on_normal_stop): New function.
3132 (python_on_resume): New function.
3133 (python_inferior_exit): New function.
3134 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3135 inferior_exit observers.
3136 * python/py-evtregistry.c: New file.
3137 * python/py-threadevent.c : New file.
3138 * python/py-event.c: New file.
3139 * python/py-evts.c: New file.
3140 * python/py-continueevent.c: New file.
3141 * python/py-bpevent.c: New file.
3142 * python/py-signalevent.c: New file.
3143 * python/py-exetiedevent.c: New file.
3144 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3145 Move struct breakpoint_object from here...
3146 * python/python-internal.h: ... to here.
3147 * python/py-event.h: New file.
3148 * python/py-events.h: New file.
3149 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3150 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3151 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3152 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3153 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3154 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3155 Add build rules for all the above.
3157 2011-02-04 Tom Tromey <tromey@redhat.com>
3159 * dwarf2read.c (dwarf2_section_empty_p): New function.
3160 (dwarf2_read_section): Use dwarf2_section_empty_p.
3161 (dwarf2_section_size): New function.
3162 (dwarf2_get_section_info): Unconditionally read section.
3163 (dwarf2_read_index): Use dwarf2_section_empty_p.
3164 (partial_read_comp_unit_head): Use dwarf2_section_size.
3165 (dwarf2_symbol_mark_computed): Likewise.
3167 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3169 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3171 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3173 * mips-linux-tdep.c: Include xml-syscall.h.
3174 (mips_linux_get_syscall_number): New function.
3175 (mips_linux_init_abi): Add calls to
3176 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3177 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3178 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3179 * syscalls/mips-n32-linux.xml: New file.
3180 * syscalls/mips-n64-linux.xml: New file.
3181 * syscalls/mips-o32-linux.xml: New file.
3183 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3185 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3186 Complain about inverted range entries.
3187 (dwarf2_record_block_ranges): Likewise.
3189 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3192 * breakpoint.c (update_watchpoint): Fix name of the
3193 update_global_location_list function.
3194 (print_one_breakpoint): Fix typo.
3195 (_initialize_breakpoint): Remove extra space in hbreak help
3197 * breakpoint.h (struct bp_location) <length>: Fix field
3200 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3202 * regcache.c (registers_changed_ptid): Don't explictly always
3203 clear `current_regcache'. Only clear current_thread_ptid and
3204 current_thread_arch when PTID matches. Only reinit the frame
3205 cache if PTID matches the current inferior_ptid. Move alloca(0)
3207 (registers_changed): ... here.
3209 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3211 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3212 starts with __stack_chk_guard as stack guard symbol.
3214 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3216 * disasm.c (compare_lines): Handle the end of sequence markers
3217 within the line table to better support disassembling over
3218 compilation unit boundaries.
3220 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3222 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3223 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3224 implementation even if no symbols are available.
3225 (thumb_analyze_prologue): Update call to skip_prologue_function.
3226 (arm_analyze_prologue): Likewise.
3228 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3230 * arm-tdep.c: Include "observer.h".
3231 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3232 (arm_exidx_data_key): New static variable.
3233 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3234 (struct arm_exidx_data): Likewise.
3235 (arm_exidx_data_free): New function.
3236 (arm_compare_exidx_entries): Likewise.
3237 (arm_obj_section_from_vma): Likewise.
3238 (arm_exidx_new_objfile): Likewise.
3239 (arm_find_exidx_entry): Likewise.
3240 (arm_exidx_fill_cache): Likewise.
3241 (arm_exidx_unwind_sniffer): Likewise.
3242 (arm_exidx_unwind): New global variable.
3243 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3244 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3245 observer. Register arm_exidx_data_key as objfile data.
3247 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3249 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3250 due to accessing uninitialized variable. Fix indentation.
3252 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3254 * c-valprint.c (c_value_print): When doing virtual base pointer
3255 adjustment, create a new value with adjusted contents rather than
3256 changing the contents of the value being printed (and getting it
3259 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3261 * xml-support.c (xml_find_attribute): New.
3262 (xinclude_start_include): Use it.
3263 * xml-support.h (xml_find_attribute): Declare.
3264 * memory-map.c (memory_map_start_memory)
3265 (memory_map_start_property): Use xml_find_attribute.
3266 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3268 * remote.c (start_thread): Use xml_find_attribute.
3269 * solib-target.c (library_list_start_segment)
3270 (library_list_start_section, library_list_start_library)
3271 (library_list_start_list): Use xml_find_attribute.
3272 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3273 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3274 (tdesc_start_field): Use xml_find_attribute.
3276 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3278 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3279 (BUILD_OCL_VTYPES): Update.
3281 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3283 * configure.ac: Work around non-GNU sed limitation when computing
3284 python version number.
3285 * configure: Regenerate.
3287 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3289 Fix debug printing of TYPE_INSTANCE.
3290 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3291 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3293 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3295 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3296 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3297 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3298 * ada-operator.inc: Rename the file to ...
3299 * ada-operator.def: ... here, wrap all the entries by macro OP.
3300 * expprint.c (op_name_standard): Remove all the entries. Include
3301 "std-operator.def" instead.
3302 * expression.h (enum exp_opcode): Include "std-operator.def" and
3303 "ada-operator.def". Move all the entries ...
3304 * std-operator.def: ... here, wrap all the entries by macro OP.
3306 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3308 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3309 * breakpoint.c (remove_jit_event_breakpoints): New function.
3310 * jit.c (jit_descriptor_addr): Delete.
3311 (registering_code): Delete.
3312 (clear_int): Delete.
3313 (jit_inferior_data): New variable.
3314 (struct jit_inferior_data): New type.
3315 (get_jit_inferior_data): New function.
3316 (jit_inferior_data_cleanup): New function.
3317 (jit_read_descriptor): Adjust.
3318 (jit_register_code): Adjust.
3319 (jit_breakpoint_re_set_internal): New function; move code here ...
3320 (jit_inferior_init): ... from here.
3321 (jit_breakpoint_re_set): Adjust.
3322 (jit_reset_inferior_data_and_breakpoints): New function.
3323 (jit_inferior_created_observer): Adjust.
3324 (jit_inferior_exit_hook): Adjust.
3325 (jit_executable_changed_observer): New function.
3326 (jit_event_handler): Adjust.
3327 (_initialize_jit): Adjust.
3329 2011-01-31 Michael Snyder <msnyder@vmware.com>
3331 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3334 2011-01-31 Tom Tromey <tromey@redhat.com>
3337 * python/python.c (execute_gdb_command): Call
3338 prevent_dont_repeat.
3339 * top.c (suppress_dont_repeat): New global.
3340 (dont_repeat): Use it.
3341 (prevent_dont_repeat): New function.
3342 * command.h (prevent_dont_repeat): Declare.
3344 2011-01-31 Tom Tromey <tromey@redhat.com>
3346 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3347 * python/py-breakpoint.c (bppy_set_silent): Use
3348 breakpoint_set_silent.
3349 (bppy_set_thread): Use breakpoint_set_thread.
3350 (bppy_set_task): Use breakpoint_set_task.
3351 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3352 (breakpoint_set_task): Declare.
3353 (make_breakpoint_silent): Remove.
3354 * breakpoint.c (breakpoint_set_silent): New function.
3355 (breakpoint_set_thread): Likewise.
3356 (breakpoint_set_task): Likewise.
3357 (make_breakpoint_silent): Remove.
3359 2011-01-31 Tom Tromey <tromey@redhat.com>
3361 * breakpoint.h (user_breakpoint_p): Declare.
3362 * breakpoint.c (user_breakpoint_p): New function.
3363 (breakpoint_1): Use it.
3364 (save_breakpoints): Likewise.
3366 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3368 * configure.ac: Add handling of Python distribution on Windows.
3369 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3370 sysconfig variables are not defined, then do not use them.
3371 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3372 instead. On Windows, return all paths using forward-slashes
3373 rather than backslashes.
3375 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3377 * configure.ac: Remove fallback behavior for building
3378 against Python. Remove tweaking of Python include path.
3379 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3380 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3381 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3382 Always restore CPPFLAGS and LIBS after linking test.
3383 * configure: Regenerated.
3384 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3385 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3386 * python/python-internal.h: Adjust includes of Python .h files.
3388 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3390 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3393 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3395 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3398 2011-01-31 Yao Qi <yao@codesourcery.com>
3400 * arm-linux-nat.c: Update calls to regcache_register_status
3401 instead of regcache_valid_p.
3402 * aix-thread.c: Likewise.
3403 * i386gnu-nat.c: Likewise.
3405 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3408 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3409 touching TYPE_FIELD_ARTIFICIAL.
3411 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3413 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3416 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3418 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3419 selected, don't try iterating over the traceframe's blocks.
3420 (tfile_has_stack): If there's no traceframe selected, then there's
3422 (tfile_has_registers): If there's no traceframe selected, then
3423 there's no registers.
3425 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3427 * target.c (memory_xfer_partial): No need to restore shadows if we
3428 haven't read anything.
3430 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3432 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3433 and val_print_scalar_formatted.
3435 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3437 * tracepoint.c (tfile_read): New.
3438 (tfile_open): Use it.
3439 (tfile_get_traceframe_address): Use it.
3440 (tfile_trace_find): Use it.
3441 (walk_blocks_callback_func): New typedef.
3442 (match_blocktype): New function.
3443 (traceframe_walk_blocks): New function.
3444 (traceframe_find_block_type): New function.
3445 (tfile_fetch_registers, tfile_xfer_partial)
3446 (tfile_get_trace_state_variable_value): Use
3447 traceframe_find_block_type and tfile_read.
3449 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3451 * remote-mips.c: Add internationalization mark ups. Remove
3452 trailing \n from already marked up strings.
3454 2011-01-26 Tom Tromey <tromey@redhat.com>
3456 * python/py-prettyprint.c (print_string_repr): Clear
3457 'addressprint' option when calling val_print_string.
3458 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3459 option when calling val_print_string.
3461 2011-01-26 Tom Tromey <tromey@redhat.com>
3463 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3465 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3467 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3468 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3469 (gdb_py_long_as_ulongest): New defines.
3470 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3471 (gdb_py_int_as_long): Declare.
3472 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3473 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3474 (valpy_long): Add comment.
3475 * python/py-utils.c (get_addr_from_python): Use
3476 gdb_py_long_as_ulongest. Handle overflow properly.
3477 (gdb_py_object_from_longest): New function.
3478 (gdb_py_object_from_ulongest): Likewise.
3479 (gdb_py_int_as_long): Likewise.
3480 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3481 * python/py-symtab.c (salpy_get_pc): Use
3482 gdb_py_long_from_ulongest.
3483 (salpy_get_line): Use PyInt_FromLong.
3484 * python/py-param.c (set_parameter_value): Use
3486 * python/py-lazy-string.c (stpy_get_address): Use
3487 gdb_py_long_from_ulongest.
3488 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3489 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3490 * python/py-breakpoint.c (bppy_set_thread): Use
3492 (bppy_set_task): Likewise.
3493 (bppy_set_ignore_count): Likewise.
3494 (bppy_set_hit_count): Likewise.
3495 * python/py-block.c (blpy_get_start): Use
3496 gdb_py_object_from_ulongest.
3497 (blpy_get_end): Likewise.
3498 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3500 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3503 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3504 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3505 equality test for objfile, initialize addr_low if needed.
3507 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3509 * tui/tui-regs.c (tui_register_format): Remove dead code.
3511 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3513 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3514 instead of print_scalar_formatted.
3515 (print_scalar_formatted): Don't handle 's' format strings here,
3516 and add an assertion that we never see such format here.
3517 * valprint.h (val_print_scalar_formatted): Declare.
3518 * valprint.c (val_print_scalar_formatted): New.
3519 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3520 instead of print_scalar_formatted.
3521 * jv-valprint.c (java_val_print): Ditto.
3522 * p-valprint.c (pascal_val_print): Ditto.
3523 * ada-valprint.c (ada_val_print_1): Ditto.
3524 * f-valprint.c (f_val_print): Ditto.
3525 * infcmd.c (registers_info): Ditto.
3526 * m2-valprint.c (m2_val_print): Ditto.
3528 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3530 * m2-valprint.c (print_unbounded_array): Pass
3531 value_contents_for_printing rather than value_contents, to
3532 m2_print_array_contents. Also pass in the value.
3534 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3536 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3537 (save_gdb_index_command): Switch to .gdb_index version 4.
3539 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3541 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3542 than frame_register, and always pass a valid value to val_print.
3544 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3546 Centralize printing "<optimized out>".
3548 * valprint.h (val_print_optimized_out): Declare.
3549 * cp-valprint.c (cp_print_value_fields): Use
3550 val_print_optimized_out.
3551 * jv-valprint.c (java_print_value_fields): Ditto.
3552 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3553 * printcmd.c (print_formatted): Ditto.
3554 * valprint.c (valprint_check_validity): Ditto.
3555 (value_check_printable): Ditto.
3556 (val_print_optimized_out): New.
3558 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3560 * infcmd.c (default_print_registers_info): Allocate values so to
3561 never pass a NULL value to val_print.
3563 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3565 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3566 boolean. Make sure to always pass a value that matches the
3567 contents buffer to callees. Preserve `address' for following
3569 * value.c (value_contents_for_printing_const): New.
3570 (value_address): Constify value argument.
3571 * value.h (value_contents_for_printing_const): Declare.
3572 (value_address): Constify value argument.
3574 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3576 * regcache.c (struct regcache_descr): Rename
3577 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3578 and sizeof_cooked_register_valid_p to
3579 sizeof_cooked_register_status.
3580 (init_regcache_descr): Adjust.
3581 (struct regcache): Rename register_valid_p field to
3583 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3584 (do_cooked_read): Adjust.
3585 (regcache_valid_p): Rename to ...
3586 (regcache_register_status): ... this. Adjust.
3587 (regcache_invalidate): Adjust.
3588 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3590 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3591 as unavailable, not valid.
3592 (regcache_dump): Adjust.
3593 * regcache.h (enum register_status): New.
3594 (regcache_register_status): Declare.
3595 (regcache_invalidate): Delete declaration.
3596 * corelow.c (get_core_registers): Adjust.
3597 * tracepoint.c (tfile_fetch_registers): Adjust.
3598 * trad-frame.c (REG_VALUE): Rename to ...
3599 (TF_REG_VALUE): ... this.
3600 (REG_UNKNOWN): Rename to ...
3601 (TF_REG_UNKNOWN): ... this.
3602 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3603 * mi/mi-main.c (register_changed_p): Adjust.
3605 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3607 * regcache.c (struct regcache_descr): Remove outdated comment.
3608 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3610 (regcache_xmalloc): Rename to ...
3611 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3612 Allocate the regcache type accordingly.
3613 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3614 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3615 cooked registers, not raw.
3616 (regcache_dup_no_passthrough): Delete.
3617 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3618 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3619 mention obsolete write_register_bytes.
3620 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3622 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3624 Stop remote_read_bytes from handling partial reads itself.
3626 * remote-fileio.c: Include target.h.
3627 (remote_fileio_write_bytes): Delete.
3628 (remote_fileio_func_open, remote_fileio_func_write)
3629 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3631 (remote_fileio_func_stat): Use target_read_memory and
3632 target_write_memory.
3633 (remote_fileio_func_gettimeofday): Use target_write_memory.
3634 (remote_fileio_func_system): Use target_read_memory.
3635 * remote.c (remote_write_bytes): Make it static.
3636 (remote_read_bytes): Don't handle partial reads here.
3637 * remote.h (remote_read_bytes): Delete declaration.
3639 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3641 Simplify XML parsing a bit.
3643 * xml-support.h (gdb_xml_parse_quick): Declare.
3644 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3645 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3647 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3648 gdb_xml_create_parser_and_cleanup_1.
3649 (gdb_xml_parse_quick): New.
3650 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3651 * osdata.c (osdata_parse): Ditto.
3652 * remote.c (remote_threads_info): Ditto.
3653 * solib-target.c (solib_target_parse_libraries): Ditto.
3654 * xml-syscall.c (syscall_parse_xml): Ditto.
3655 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3657 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3659 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3660 with remote-mips.o added to gdb_target_obs.
3661 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3663 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3665 * ada-valprint.c (val_print_packed_array_elements): Pass the
3666 correct struct value to val_print.
3667 (ada_val_print_1): Ditto.
3669 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3671 Don't lose embedded_offset in printing routines throughout.
3673 * valprint.h (val_print_array_elements): Change prototype.
3674 * valprint.c (val_print_array_elements): Add `embedded_offset'
3675 parameter, and adjust to pass it down to val_print, while passing
3676 `valaddr' or `address' unmodified. Take embedded_offset into
3677 account when checking repetitions.
3678 * c-valprint.c (c_val_print): Pass embedded_offset to
3679 val_print_array_elements instead of adjusting `valaddr' and
3681 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3682 embedded_offset to val_print_array_elements instead of adjusting
3684 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3685 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3686 val_print_array_elements and pascal_object_print_value_fields
3687 instead of adjusting `valaddr'.
3688 (pascal_object_print_value_fields): Add `offset' parameter, and
3690 (pascal_object_print_value): Add `offset' parameter, and adjust to
3692 (pascal_object_print_static_field): Use
3693 value_contents_for_printing/value_embedded_offset, rather than
3695 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3696 parameter, and adjust to use it. Use
3697 value_contents_for_printing/value_embedded_offset, rather than
3699 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3700 (ada_val_print_array): Add `offset' parameter, and adjust to use
3702 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3703 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3704 Instead work with offsets. Use
3705 value_contents_for_printing/value_embedded_offset, rather than
3706 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3707 and use value_from_pointer to extract a target pointer, rather
3708 than value_from_longest.
3709 (print_variant_part): Add `offset' parameter. Replace
3710 `outer_valaddr' parameter by a new `outer_offset' parameter.
3711 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3712 (ada_value_print): Use
3713 value_contents_for_printing/value_embedded_offset, rather than
3715 (print_record): Add `offset' parameter, and adjust to pass it
3717 (print_field_values): Add `offset' parameter. Replace
3718 `outer_valaddr' parameter by a new `outer_offset' parameter.
3719 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3720 Use value_contents_for_printing/value_embedded_offset, rather than
3722 * d-valprint.c (dynamic_array_type): Use
3723 value_contents_for_printing/value_embedded_offset, rather than
3725 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3726 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3727 (java_print_value_fields): Take `offset' into account. Don't
3728 re-adjust `valaddr'. Instead pass down adjusted offsets.
3729 (java_val_print): Take `embedded_offset' into account. Pass it to
3730 java_print_value_fields.
3731 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3732 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3733 down adjusted offsets.
3734 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3735 (f_val_print): Take `embedded_offset' into account.
3737 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3739 * inflow.c: Include "gdbcmd.h".
3740 (interactive_mode): New static global, moved here from top.c.
3741 (show_interactive_mode): New function, moved here from top.c.
3742 use gdb_has_a_terminal instead of input_from_terminal_p to
3743 determine the current mode.
3744 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3746 (_initialize_inflow): Add the "set/show interactive-mode"
3747 commands. Moved here from top.c, after having adjusted slightly
3749 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3751 (input_from_terminal_p): Remove handling of "interactive-mode"
3752 setting, moved to infow.c.
3753 (init_main): Remove creation of the "set/show interactive-mode"
3754 commands, moved to inflow.c.
3756 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3758 * NEWS: Add entry for native ia64-hpux support.
3760 2011-01-19 Tom Tromey <tromey@redhat.com>
3763 * thread.c (free_thread): Free 'name'.
3764 (print_thread_info): Emit thread name. Change CLI output.
3765 (thread_name_command): New function.
3766 (do_captured_thread_select): Emit newline.
3767 (_initialize_thread): Register 'thread name' command.
3768 * target.h (struct target_ops) <to_thread_name>: New field.
3769 (target_thread_name): New macro.
3770 * target.c (update_current_target): Handle to_thread_name.
3771 * python/py-infthread.c (thpy_get_name): New function.
3772 (thpy_set_name): Likewise.
3773 (thread_object_getset): Add "name".
3774 * linux-nat.c (linux_nat_thread_name): New function.
3775 (linux_nat_add_target): Set to_thread_name.
3776 * gdbthread.h (struct thread_info) <name>: New field.
3778 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3780 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3781 (ada_val_print_1): Likewise.
3783 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3785 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3786 upper limit address is not greater than the function end address
3787 when the upper limit could not be computed using the debugging
3790 2011-01-17 Tom Tromey <tromey@redhat.com>
3792 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3794 * utils.c: Include gdb_regex.h.
3795 (do_regfree_cleanup): New function.
3796 (make_regfree_cleanup): Likewise.
3797 (get_regcomp_error): Likewise.
3798 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3800 2011-01-17 Tom Tromey <tromey@redhat.com>
3802 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3805 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3807 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3808 for internal variables.
3809 (last_was_structop): New static variable.
3810 (COMPLETE): New token.
3811 (field_exp): New rule to group all '.' suffix handling.
3812 Add mark_struct_expression calls when approriate to be able
3813 to correctly find fields for completion.
3814 (yylex): Adapt to handle field completion and set INTVAR when
3817 2011-01-14 Yao Qi <yao@codesourcery.com>
3819 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3820 save_reggroup, restore_reggroup and all_reggroup.
3822 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3824 * ada-valprint. (ada_printchar): Use the correct type length
3825 in call to ada_emit_char.
3826 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3828 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3830 * solib-som.h (hpux_major_release): Declare variable here.
3831 * solib-som.c: Remove <sys/utsname.h> header.
3832 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3833 (hpux_major_release): Make global, change default value to
3834 DEFAULT_HPUX_MAJOR_RELEASE.
3835 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
3836 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3837 Add "solib-som.h" header.
3838 (set_hpux_major_release): New function.
3839 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3841 2011-01-14 Mike Frysinger <vapier@gentoo.org>
3843 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3845 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3847 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3848 new-line at end of warning message.
3849 (ia64_hpux_store_register): Remove trailing new-line at end of
3851 * ia64-hpux-tdep.c: Rephrase comment.
3852 * solib-ia64-hpux.c (struct dld_info): Change type of field
3853 dld_flags from "long long" to ULONGEST.
3855 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3857 * target.h (deprecated_child_ops): Delete declaration.
3858 * target.c (deprecated_child_ops): Delete definition.
3860 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3862 * Makefile.in (hpux-thread.o): Delete rule.
3863 * configure.ac: Don't check for HPUX DCE threads support.
3864 * configure, config.in: Regenerate.
3865 * hppa-hpux-nat.c (child_suppress_run): Delete.
3866 (hppa_hpux_child_can_run): Delete.
3867 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3868 * hpux-thread.c: Delete.
3870 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3872 * hpux-thread.c (hpux_pid_to_str): Delete.
3874 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3876 * ada-valprint.c (ada_emit_char): Remove strange code.
3877 Check that c is <= UCHAR_MAX before passing it to isascii.
3878 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3880 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3882 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3883 to the case where instream is stdin.
3885 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3887 * ia64-tdep.h (struct regcache): Forward declare.
3888 (struct ia64_infcall_ops): New struct type.
3889 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3891 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3892 Renames ia64_find_global_pointer.
3893 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3894 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3895 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3897 (ia64_infcall_ops): New static global constant.
3898 (ia64_gdbarch_init): Set tdep->infcall_ops.
3899 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3900 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3901 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3902 (ia64_hpux_dummy_code): New static global constant.
3903 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3904 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3905 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3907 (ia64_hpux_infcall_ops): New static global constant.
3908 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3909 for inferior function calls to work properly on ia64-hpux.
3911 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3913 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3914 * ia64-tdep.h (struct frame_info): forward declaration.
3915 (struct gdbarch_tdep): Add field size_of_register_frame.
3916 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3917 to determine the size of the register frame.
3918 (ia64_size_of_register_frame): New function.
3919 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3920 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3921 (IA64_HPUX_UREG_REASON): New macro.
3922 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3924 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3925 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3926 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3929 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3931 Add support for ia64-hpux.
3932 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3933 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3935 * configure.host: Add handling for ia64-hpux hosts. Add associated
3937 * configure.tgt: Add handling for ia64-hpux targets.
3938 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3939 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3940 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3942 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3944 [ttrace] Compute thread list immediately after attach.
3945 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3947 (inf_ttrace_attach): Use it.
3949 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3951 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3952 if we could not determine the frame's function address. Instead,
3953 use the frame's PC, and then continue.
3955 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3957 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3958 not already defined.
3960 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3962 * ia64-tdep.c (ia64_struct_type_p): New function.
3963 (ia64_extract_return_value): Handle integral values that are
3964 less than 8 bytes long.
3965 (ia64_push_dummy_call): Likewise.
3967 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3969 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3970 floatformat_ia64_ext.
3971 (floatformat_ia64_ext_big): New static const.
3972 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3974 2011-01-12 Tom Tromey <tromey@redhat.com>
3976 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3978 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3979 (mi_cmd_thread_list_ids): Likewise.
3980 (mi_cmd_data_list_changed_registers): Likewise.
3981 (mi_cmd_data_list_register_values): Likewise.
3982 (mi_cmd_data_write_register_values): Likewise.
3983 (mi_cmd_data_evaluate_expression): Likewise.
3984 (mi_cmd_data_read_memory): Likewise.
3985 (mi_cmd_data_read_memory_bytes): Likewise.
3986 (mi_cmd_data_write_memory): Likewise.
3987 (mi_cmd_enable_timings): Likewise.
3988 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3989 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3990 (mi_cmd_var_delete): Likewise.
3991 (mi_cmd_var_set_format): Likewise.
3992 (mi_cmd_var_show_format): Likewise.
3993 (mi_cmd_var_info_num_children): Likewise.
3994 (mi_cmd_var_list_children): Likewise.
3995 (mi_cmd_var_info_type): Likewise.
3996 (mi_cmd_var_info_expression): Likewise.
3997 (mi_cmd_var_show_attributes): Likewise.
3998 (mi_cmd_var_assign): Likewise.
3999 (mi_cmd_var_update): Likewise.
4000 (mi_cmd_enable_pretty_printing): Likewise.
4001 (mi_cmd_var_set_update_range): Likewise.
4002 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4004 (mi_cmd_target_file_put): Likewise.
4005 (mi_cmd_target_file_delete): Likewise.
4006 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4008 (mi_cmd_stack_info_depth): Likewise.
4009 (mi_cmd_stack_list_locals): Likewise.
4010 (mi_cmd_stack_list_args): Likewise.
4011 (mi_cmd_stack_select_frame): Likewise.
4012 (mi_cmd_stack_select_frame): Likewise.
4013 (mi_cmd_stack_info_frame): Likewise.
4014 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4016 (mi_cmd_file_list_exec_source_files): Likewise.
4017 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4018 (mi_cmd_env_cd): Likewise.
4019 (mi_cmd_env_path): Likewise.
4020 (mi_cmd_env_dir): Likewise.
4021 (mi_cmd_inferior_tty_show): Likewise.
4022 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4023 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4024 (mi_cmd_break_watch): Likewise.
4026 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4028 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4029 (ppc_linux_insert_hw_breakpoint): Likewise.
4030 (ppc_linux_remove_hw_breakpoint): Likewise.
4031 (ppc_linux_insert_watchpoint): Likewise.
4033 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4034 Jan Kratochvil <jan.kratochvil@redhat.com>
4036 PR fortran/11104 and DWARF unbound arrays detection.
4037 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4038 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4039 unspecified upper bound.
4040 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4041 variables array_size_array, tmp_type and offset_item. New variable
4042 array. Remove call to f77_get_upperbound. New variables array_type
4043 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4044 the final call to deprecated_set_value_type.
4046 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 Make value allocations more lazy.
4049 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4050 instead of allocate_value and set_value_lazy when possible.
4051 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4052 instead of allocate_value and set_value_lazy.
4053 * findvar.c (value_of_register_lazy): Likewise.
4054 (read_var_value): Remove V preallocation, call just check_typedef in
4055 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4056 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4057 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4058 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4059 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4060 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4061 the end, remove set_value_lazy there.
4062 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4063 instead of allocate_value and set_value_lazy when possible.
4064 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4065 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4066 of allocate_value and set_value_lazy.
4067 (value_from_contents_and_address): Use allocate_value_lazy instead of
4068 allocate_value and set_value_lazy when possible.
4070 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4072 * disasm.c (dump_insns): Support dumping opcodes for MI.
4073 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4074 dumping of instruction opcodes.
4076 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4078 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4081 2011-01-11 Tom Tromey <tromey@redhat.com>
4083 * thread.c (do_captured_thread_select): Emit newline before
4086 2011-01-11 Michael Snyder <msnyder@vmware.com>
4088 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4089 * score-tdep.c: Ditto.
4090 * score-tdep.h: Ditto.
4091 * ser-base.c: Ditto.
4092 * ser-go32.c: Ditto.
4095 * ser-mingw.c: Ditto.
4096 * ser-pipe.c: Ditto.
4098 * ser-unix.c: Ditto.
4099 * sh64-tdep.c: Ditto.
4100 * shnbsd-nat.c: Ditto.
4104 * solib-darwin.c: Ditto.
4105 * solib-frv.c: Ditto.
4107 * solib-irix.c: Ditto.
4108 * solib-osf.c: Ditto.
4109 * solib-pa64.c: Ditto.
4110 * solib-som.c: Ditto.
4111 * solib-spu.c: Ditto.
4112 * solib-sunos.c: Ditto.
4113 * solib-svr4.c: Ditto.
4115 * sol-thread.c: Ditto.
4119 * sparc64-linux-tdep.c: Ditto.
4120 * sparc64-tdep.c: Ditto.
4121 * sparc-linux-nat.c: Ditto.
4122 * sparc-linux-tdep.c: Ditto.
4123 * sparc-sol2-nat.c: Ditto.
4124 * sparc-sol2-tdep.c: Ditto.
4125 * sparc-tdep.c: Ditto.
4126 * sparc-tdep.h: Ditto.
4127 * spu-tdep.c: Ditto.
4128 * stabsread.c: Ditto.
4129 * stabsread.h: Ditto.
4137 * target-descriptions.c: Ditto.
4138 * target-descriptions.h: Ditto.
4140 * target-memory.c: Ditto.
4141 * terminal.h: Ditto.
4144 * tracepoint.c: Ditto.
4145 * tracepoint.h: Ditto.
4146 * trad-frame.h: Ditto.
4147 * typeprint.c: Ditto.
4149 2011-01-11 Michael Snyder <msnyder@vmware.com>
4151 * ui-file.c: Comment cleanup, mostly periods and spaces.
4156 * v850-tdep.c: Ditto.
4157 * valarith.c: Ditto.
4159 * valprint.c: Ditto.
4160 * valprint.h: Ditto.
4165 * vax-tdep.c: Ditto.
4169 * windows-nat.c: Ditto.
4170 * windows-tdep.c: Ditto.
4171 * xcoffread.c: Ditto.
4172 * xcoffsolib.c: Ditto.
4173 * xml-support.c: Ditto.
4174 * xstormy16-tdep.c: Ditto.
4175 * xtensa-tdep.c: Ditto.
4176 * xtensa-tdep.h: Ditto.
4178 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4180 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4181 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4183 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4184 Thiago Jung Bauermann <bauerman@br.ibm.com>
4186 Implement support for PowerPC BookE ranged watchpoints.
4188 (struct breakpoint_ops) <resources_needed>: New method.
4189 Initialize to NULL in all existing breakpoint_ops instances.
4190 (struct breakpoint) <exact>: New field.
4191 (target_exact_watchpoints): Declare external global.
4192 * breakpoint.c (target_exact_watchpoints): New global flag.
4193 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4194 b->enable_state to bp_enabled before calling
4195 hw_watchpoint_used_count.
4196 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4197 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4199 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4200 if the watchpoint is exact.
4201 (resources_needed_watchpoint): New function.
4202 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4203 (watch_command_1): Set b->exact if the user asked for an exact
4204 watchpoint and one can be set.
4205 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4206 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4207 the user asks for an exact watchpoint and one can be set. Return
4208 number of needed debug registers to watch the expression.
4209 * gdbtypes.c (is_scalar_type): New function, based on
4210 valprint.c:scalar_type_p.
4211 (is_scalar_type_recursive): New function.
4212 * gdbtypes.h (is_scalar_type_recursive): Declare.
4213 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4214 handle regions when ranged watchpoints are available.
4215 (create_watchpoint_request): New function.
4216 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4217 create_watchpoint_request.
4218 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4219 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4220 `set powerpc' and `show powerpc' commands.
4221 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4222 Mention documentation comment in the target macro.
4223 (target_region_ok_for_hw_watchpoint): Document return value.
4225 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4227 * breakpoint.c (update_watchpoint): Decide on using a software or
4228 hardware watchpoint after the bp_locations are created.
4230 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4232 Convert hardware watchpoints to use breakpoint_ops.
4233 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4234 <insert_location>: ... this. Return int instead of void.
4235 Accept pointer to struct bp_location instead of pointer to
4236 struct breakpoint. Adapt all implementations.
4237 (breakpoint_ops) <remove>: Rename to...
4238 <remove_location>: ... this. Accept pointer to struct bp_location
4239 instead of pointer to struct breakpoint. Adapt all implementations.
4240 * breakpoint.c (insert_catchpoint): Delete function.
4241 (insert_bp_location): Call the watchpoint or catchpoint's
4242 breakpoint_ops.insert method.
4243 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4244 breakpoint_ops.remove method.
4245 (insert_watchpoint, remove_watchpoint): New functions.
4246 (watchpoint_breakpoint_ops): New structure.
4247 (watch_command_1): Initialize the OPS field.
4248 * inf-child.c (inf_child_insert_fork_catchpoint)
4249 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4250 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4251 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4253 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4254 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4255 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4256 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4257 * target.c (update_current_target): Change default implementation of
4258 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4259 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4260 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4261 to_set_syscall_catchpoint to return_one.
4262 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4263 (debug_to_insert_exec_catchpoint): Report return value.
4264 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4265 (to_insert_exec_catchpoint): Change declaration to return int instead
4268 2011-01-11 Michael Snyder <msnyder@vmware.com>
4270 * arm-tdep.c: Internationalization.
4273 * fork-child.c: Ditto.
4274 * nto-procfs.c: Ditto.
4275 * ppc-sysv-tdep.c: Ditto.
4277 * remote-mips.c: Ditto.
4279 * rs6000-nat.c: Ditto.
4280 * rs6000-tdep.c: Ditto.
4284 * xml-support.c: Ditto.
4285 * mi/mi-cmd-break.c: Ditto.
4286 * mi/mi-cmd-var.c: Ditto.
4287 * mi/mi-interp.c: Ditto.
4288 * mi/mi-main.c: Ditto.
4290 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4292 * remote-sim.c (gdbsim_store_register): Update API to
4293 sim_store_register to check more error conditions.
4295 2011-01-10 Michael Snyder <msnyder@vmware.com>
4297 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4298 * nto-tdep.c: Ditto.
4299 * nto-tdep.h: Ditto.
4300 * objc-exp.y: Ditto.
4301 * objc-lang.c: Ditto.
4302 * objfiles.c: Ditto.
4303 * objfiles.h: Ditto.
4304 * observer.c: Ditto.
4305 * opencl-lang.c: Ditto.
4308 * parser-defs.h: Ditto.
4311 * posix-hdep.c: Ditto.
4312 * ppcbug-rom.c: Ditto.
4313 * ppc-linux-nat.c: Ditto.
4314 * ppc-linux-tdep.c: Ditto.
4315 * ppc-linux-tdep.h: Ditto.
4316 * ppcnbsd-tdep.c: Ditto.
4317 * ppcobsd-tdep.c: Ditto.
4318 * ppcobsd-tdep.h: Ditto.
4319 * ppc-sysv-tdep.c: Ditto.
4320 * ppc-tdep.h: Ditto.
4321 * printcmd.c: Ditto.
4322 * proc-abi.c: Ditto.
4323 * proc-flags.c: Ditto.
4325 * proc-utils.h: Ditto.
4326 * progspace.h: Ditto.
4327 * prologue-value.c: Ditto.
4328 * prologue-value.h: Ditto.
4329 * psympriv.h: Ditto.
4331 * p-typeprint.c: Ditto.
4332 * p-valprint.c: Ditto.
4333 * ravenscar-sparc-thread.c: Ditto.
4334 * ravenscar-thread.c: Ditto.
4335 * ravenscar-thread.h: Ditto.
4337 * regcache.c: Ditto.
4338 * regcache.h: Ditto.
4340 * remote-fileio.c: Ditto.
4341 * remote-fileio.h: Ditto.
4343 * remote-m32r-sdi.c: Ditto.
4344 * remote-mips.c: Ditto.
4345 * remote-sim.c: Ditto.
4346 * rs6000-aix-tdep.c: Ditto.
4347 * rs6000-nat.c: Ditto.
4348 * rs6000-tdep.c: Ditto.
4350 2011-01-10 Michael Snyder <msnyder@vmware.com>
4352 * charset.c (validate): Internationalization.
4353 * coffread.c (read_one_sym): Ditto.
4354 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4355 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4356 * inflow.c (new_tty): Ditto.
4357 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4358 * m32c-tdep.c (m32c_return_value): Ditto.
4359 * mep-tdep.c (mep_store_return_value): Ditto.
4360 * score-tdep.c (score7_fetch_insn): Ditto.
4361 * ser-mingw.c (pipe_windows_open): Ditto.
4362 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4363 * spu-tdep.c (spu_register_type): Ditto.
4364 * tracepoint.c (trace_find_command): Ditto.
4365 * valarith.c (value_pos): Ditto.
4367 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4369 * ada-valprint.c (printstr): Minor comment reformatting.
4371 2011-01-08 Michael Snyder <msnyder@vmware.com>
4373 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4376 2011-01-08 Michael Snyder <msnyder@vmware.com>
4378 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4379 * hppa-hpux-tdep.c: Ditto.
4380 * hppa-linux-nat.c: Ditto.
4381 * hppa-linux-tdep.c: Ditto.
4382 * hppanbsd-tdep.c: Ditto.
4383 * hppa-tdep.c: Ditto.
4384 * hppa-tdep.h: Ditto.
4385 * hpux-thread.c: Ditto.
4386 * i386-cygwin-tdep.c: Ditto.
4387 * i386-darwin-nat.c: Ditto.
4388 * i386gnu-nat.c: Ditto.
4389 * i386-linux-nat.c: Ditto.
4390 * i386-linux-tdep.c: Ditto.
4391 * i386-nat.c: Ditto.
4392 * i386-nat.h: Ditto.
4393 * i386nbsd-tdep.c: Ditto.
4394 * i386-sol2-nat.c: Ditto.
4395 * i386-stub.c: Ditto.
4396 * i386-tdep.c: Ditto.
4397 * i386-tdep.h: Ditto.
4398 * i387-tdep.c: Ditto.
4399 * ia64-linux-nat.c: Ditto.
4400 * ia64-linux-tdep.c: Ditto.
4401 * ia64-tdep.c: Ditto.
4405 * inferior.c: Ditto.
4406 * inferior.h: Ditto.
4412 * iq2000-tdep.c: Ditto.
4413 * irix5-nat.c: Ditto.
4419 * jv-typeprint.c: Ditto.
4420 * jv-valprint.c: Ditto.
4421 * language.c: Ditto.
4422 * language.h: Ditto.
4423 * linespec.c: Ditto.
4424 * linux-fork.c: Ditto.
4425 * linux-nat.c: Ditto.
4426 * linux-thread-db.c: Ditto.
4427 * lm32-tdep.c: Ditto.
4429 2011-01-08 Michael Snyder <msnyder@vmware.com>
4431 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4433 * m2-typeprint.c: Ditto.
4434 * m2-valprint.c: Ditto.
4435 * m32c-tdep.c: Ditto.
4436 * m32r-linux-nat.c: Ditto.
4437 * m32r-rom.c: Ditto.
4438 * m32r-tdep.c: Ditto.
4439 * m32r-tdep.h: Ditto.
4440 * m68hc11-tdep.c: Ditto.
4441 * m58klinux-nat.c: Ditto.
4442 * m68k-tdep.c: Ditto.
4443 * m88k-tdep.c: Ditto.
4444 * m88k-tdep.h: Ditto.
4445 * machoread.c: Ditto.
4446 * macrocmd.c: Ditto.
4447 * macroexp.c: Ditto.
4448 * macrotab.c: Ditto.
4451 * mdebugread.c: Ditto.
4452 * mdebugread.h: Ditto.
4455 * memory-map.h: Ditto.
4456 * mep-tdep.c: Ditto.
4457 * microblaze-rom.c: Ditto.
4458 * microblaze-tdep.c: Ditto.
4460 * mips-irix-tdep.c: Ditto.
4461 * mips-linux-nat.c: Ditto.
4462 * mips-linux-tdep.c: Ditto.
4463 * mips-linux-tdep.h: Ditto.
4464 * mipsnbsd-nat.c: Ditto.
4465 * mipsnbsd-tdep.c: Ditto.
4466 * mipsread.c: Ditto.
4467 * mips-tdep.c: Ditto.
4468 * mips-tdep.h: Ditto.
4469 * mn10300-linux-tdep.c: Ditto.
4470 * mn10300-tdep.c: Ditto.
4471 * mn10300-tdep.h: Ditto.
4474 * moxie-tdep.c: Ditto.
4475 * moxie-tdep.h: Ditto.
4478 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4480 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4482 2011-01-08 Robert Millan <rmh@gnu.org>
4484 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4486 2011-01-07 Michael Snyder <msnyder@vmware.com>
4488 * charset.c (_initialize_charset): Fix typo in string.
4490 2011-01-07 Michael Snyder <msnyder@vmware.com>
4492 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4494 * tui/tui-layout.c (tui_set_layout_for_display_command):
4495 Split line so that operator goes to beginning of line.
4496 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4497 assignment out of if statement.
4499 2011-01-07 Michael Snyder <msnyder@vmware.com>
4501 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4502 * ada-lang.h: Ditto.
4503 * ada-tasks.c: Ditto.
4504 * ada-valprint.c: Ditto.
4505 * aix-threads.c: Ditto.
4506 * alpha-linux-nat.c: Ditto.
4507 * alpha-linux-tdep.c: Ditto.
4508 * alpha-mdebug-tdep.c: Ditto.
4509 * alpha-nat.c: Ditto.
4510 * alpha-osf1-tdep.c: Ditto.
4511 * alpha-tdep.c: Ditto.
4512 * alphabsd-nat.c: Ditto.
4513 * alphabsd-tdep.c: Ditto.
4514 * amd64-darwin-tdep.c: Ditto.
4515 * amd64-linux-nat.c: Ditto.
4516 * amd64-linux-tdep.c: Ditto.
4517 * amd64-sol2-tdep.c: Ditto.
4518 * amd64-tdep.c: Ditto.
4519 * amd64-fbsd-tdep.c: Ditto.
4520 * amd64-nbsd-tdep.c: Ditto.
4521 * amd64-obsd-tdep.c: Ditto.
4522 * amd64-linux-nat.c: Ditto.
4523 * amd64-linux-tdep.c: Ditto.
4524 * arm-tdep.c: Ditto.
4525 * arm-tdep.h: Ditto.
4526 * armnbsd-nat.c: Ditto.
4527 * avr-tdep.c: Ditto.
4528 * bfin-tdep.c: Ditto.
4530 * c-typeprintc: Ditto.
4531 * c-valprint.c: Ditto.
4532 * coff-pe-read.h: Ditto.
4533 * coffreead.c: Ditto.
4534 * cris-tdep.c: Ditto.
4536 * darwin-nat-info.c: Ditto.
4537 * darwin-nat.c: Ditto.
4538 * dbug-rom.c: Ditto.
4542 * dec-thread.c: Ditto.
4544 * demangle.c: Ditto.
4545 * dicos-tdep.c: Ditto.
4546 * dictionary.c: Ditto.
4547 * dictionary.h: Ditto.
4548 * dink32-rom.c: Ditto.
4550 * doublest.c: Ditto.
4552 * dummy-frame.c: Ditto.
4553 * dwarf2-frame.c: Ditto.
4554 * dwarf2expr.c: Ditto.
4555 * dwarf2loc.c: Ditto.
4556 * dwarf2read.c: Ditto.
4560 * event-top.h: Ditto.
4561 * exceptions.c: Ditto.
4562 * exceptions.h: Ditto.
4564 * expprint.c: Ditto.
4565 * expression.h: Ditto.
4569 * f-typeprint.c: Ditto.
4570 * f-valprint.c: Ditto.
4571 * fbsd-nat.c: Ditto.
4573 * fork-child.c: Ditto.
4576 * frv-linux-tdep.c: Ditto.
4577 * frv-tdep.c: Ditto.
4579 * gdb-stabs.h: Ditto.
4580 * gdb_assert.h: Ditto.
4581 * gdb_string.h: Ditto.
4582 * gdb_thread_db.h: Ditto.
4583 * gdb_wait.h: Ditto.
4584 * gdbarch.sh: Ditto.
4586 * gdbthread.h: Ditto.
4587 * gdbtypes.c: Ditto.
4588 * gdbtypes.h: Ditto.
4591 * gnu-v2-abi.c: Ditto.
4592 * gnu-v3-abi.c: Ditto.
4593 * go32-nat.c: Ditto.
4594 * gdbarch.c: Regenerate.
4595 * gdbarch.h: Regenerate.
4597 2011-01-07 Michael Snyder <msnyder@vmware.com>
4599 * ax-gdb.c: Adjust some long output strings.
4600 * breakpoint.c: Ditto.
4605 * linux-nat.c: Ditto.
4606 * solib-pa64.c: Ditto.
4607 * solib-som.c: Ditto.
4609 2011-01-06 Tom Tromey <tromey@redhat.com>
4613 * python/python.c (GdbMethods): Add "newest_frame" method.
4614 * python/python-internal.h (gdbpy_newest_frame): Declare.
4615 * python/py-frame.c (gdbpy_newest_frame): New function.
4617 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4619 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4620 * jit.c (jit_debug): New variable.
4621 (show_jit_debug): New function.
4622 (struct target_buffer): Use ULONGEST.
4623 (bfd_open_from_target_memory): Likewise.
4624 (jit_register_code, jit_inferior_init): Add debug output.
4625 (_initialize_jit): Register "debug jit" command.
4627 2011-01-06 Tom Tromey <tromey@redhat.com>
4629 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4630 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4633 2011-01-06 Tom Tromey <tromey@redhat.com>
4635 * python/py-frame.c (frapy_block): Use get_frame_block.
4637 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4639 Do not stop on SIGPRIO signals by default
4640 * infrun.c (_initialize_infrun): Unset signal_stop and
4641 signal_print for TARGET_SIGNAL_PRIO.
4643 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4645 * ada-tasks.c: Fix style violation in comment.
4647 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4649 * linespec.c (decode_compound, find_method): Remove trailing \n
4650 at end of error string.
4651 * solib-irix.c (irix_current_sos): Likewise.
4652 * varobj.c (uninstall_variable): Likewise.
4654 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4656 * copyright.py: New script.
4657 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4658 Launch emacs without exec'ing. Call copyright.py afterwards.
4660 2011-01-05 Michael Snyder <msnyder@vmware.com>
4662 * addrmap.c: Shorten lines of >= 80 columns.
4663 * arch-utils.c: Ditto.
4664 * arch-utils.h: Ditto.
4666 * ax-general.c: Ditto.
4668 * blockframe.c: Ditto.
4669 * breakpoint.c: Ditto.
4670 * buildsym.c: Ditto.
4672 * c-typeprint.c: Ditto.
4674 * coffread.c: Ditto.
4678 * cp-namespace.c: Ditto.
4679 * cp-support.c: Ditto.
4680 * dbug-rom.c: Ditto.
4685 * dictionary.c: Ditto.
4687 * doublest.c: Ditto.
4688 * dwarf2-frame.c: Ditto.
4689 * dwarf2expr.c: Ditto.
4690 * dwarf2loc.c: Ditto.
4691 * dwarf2read.c: Ditto.
4694 * event-loop.c: Ditto.
4695 * event-loop.h: Ditto.
4696 * exceptions.h: Ditto.
4698 * expprint.c: Ditto.
4699 * expression.h: Ditto.
4701 * f-valprint.c: Ditto.
4703 * frame-base.c: Ditto.
4704 * frame-unwind.c: Ditto.
4705 * frame-unwind.h: Ditto.
4709 * gdb-stabs.h: Ditto.
4710 * gdb_assert.h: Ditto.
4711 * gdb_dirent.h: Ditto.
4712 * gdb_obstack.h: Ditto.
4714 * gdbtypes.c: Ditto.
4715 * gdbtypes.h: Ditto.
4716 * inf-ttrace.c: Ditto.
4721 * inline-frame.h: Ditto.
4722 * language.c: Ditto.
4723 * language.h: Ditto.
4724 * libunwind-frame.c: Ditto.
4725 * libunwind-frame.h: Ditto.
4726 * linespec.c: Ditto.
4727 * linux-nat.c: Ditto.
4728 * linux-nat.h: Ditto.
4729 * linux-thread-db.c: Ditto.
4730 * machoread.c: Ditto.
4731 * macroexp.c: Ditto.
4732 * macrotab.c: Ditto.
4735 * mdebugread.c: Ditto.
4740 * objfiles.c: Ditto.
4741 * objfiles.h: Ditto.
4743 * p-typeprint.c: Ditto.
4744 * p-valprint.c: Ditto.
4746 * printcmd.c: Ditto.
4747 * proc-events.c: Ditto.
4749 * progspace.c: Ditto.
4750 * progspace.h: Ditto.
4751 * psympriv.h: Ditto.
4754 * regcache.c: Ditto.
4755 * regcache.h: Ditto.
4756 * remote-fileio.c: Ditto.
4758 * ser-mingw.c: Ditto.
4760 * ser-unix.c: Ditto.
4763 * solib-frv.c: Ditto.
4764 * solib-irix.c: Ditto.
4765 * solib-osf.c: Ditto.
4766 * solib-pa64.c: Ditto.
4767 * solib-som.c: Ditto.
4768 * solib-sunos.c: Ditto.
4769 * solib-svr4.c: Ditto.
4770 * solib-target.c: Ditto.
4774 * stabsread.c: Ditto.
4775 * stabsread.c: Ditto.
4778 * symfile-mem.c: Ditto.
4784 * target-descriptions.c: Ditto.
4785 * target-memory.c: Ditto.
4788 * terminal.h: Ditto.
4791 * tracepoint.c: Ditto.
4792 * tracepoint.h: Ditto.
4796 * user-regs.c: Ditto.
4797 * user-regs.h: Ditto.
4799 * valarith.c: Ditto.
4801 * valprint.c: Ditto.
4802 * valprint.h: Ditto.
4807 * xcoffread.c: Ditto.
4808 * xcoffsolib.c: Ditto.
4809 * xcoffsolib.h: Ditto.
4810 * xml-syscall.c: Ditto.
4811 * xml-tdesc.c: Ditto.
4813 2011-01-05 Michael Snyder <msnyder@vmware.com>
4815 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4816 * cli/cli-decode.c: Ditto.
4817 * cli/cli-dump.c: Ditto.
4818 * cli/cli-logging.c: Ditto.
4819 * cli/cli-script.c: Ditto.
4820 * cli/cli-setshow.c: Ditto.
4821 * common/signals.c: Ditto.
4822 * mi/mi-cmd-break.c: Ditto.
4823 * mi/mi-cmd-disas.c: Ditto.
4824 * mi/mi-cmd-stack.c: Ditto.
4825 * mi/mi-cmd-var.c: Ditto.
4826 * mi/mi-cmds.c: Ditto.
4827 * mi/mi-common.h: Ditto.
4828 * mi/mi-console.c: Ditto.
4829 * mi/mi-interp.c: Ditto.
4830 * mi/mi-main.c: Ditto.
4831 * osf-share/cma_attr.c: Ditto.
4832 * osf-share/cma_deb_core.h: Ditto.
4833 * osf-share/cma_debug_client.h: Ditto.
4834 * osf-share/cma_handle.h: Ditto.
4835 * osf-share/cma_mutex.h: Ditto.
4836 * osf-share/cma_stack_int.h: Ditto.
4837 * osf-share/cma_tcb_defs.h: Ditto.
4838 * python/py-auto-load.c: Ditto.
4839 * python/py-breakpoint.c: Ditto.
4840 * python/py-cmd.c: Ditto.
4841 * python/py-frame.c: Ditto.
4842 * python/py-objfile.c: Ditto.
4843 * python/py-param.c: Ditto.
4844 * python/py-progspace.c: Ditto.
4845 * python/py-symbol.c: Ditto.
4846 * python/py-value.c: Ditto.
4847 * python/python-internal.h: Ditto.
4848 * python/python.c: Ditto.
4849 * tui/tui-data.c: Ditto.
4850 * tui/tui-disasm.c: Ditto.
4851 * tui/tui-hooks.c: Ditto.
4852 * tui/tui-io.c: Ditto.
4853 * tui/tui-layout.c: Ditto.
4854 * tui/tui-regs.c: Ditto.
4855 * tui/tui-source.c: Ditto.
4856 * tui/tui-stack.c: Ditto.
4857 * tui/tui-win.c: Ditto.
4858 * tui/tui-windata.c: Ditto.
4859 * tui/tui-winsource.c: Ditto.
4861 2011-01-05 Joel Brobecker <brobecker@adacore.com>
4863 * configure.ac, gdb.1: Copyright year update.
4865 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4867 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4868 this_pc_in_block, morestack_msym and morestack_name. Check for
4869 "__morestack" minimal symbol there.
4871 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4873 * symfile.c (find_sym_fns): Add call to dont_repeat.
4875 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4877 Copyright year update in most files (performed by copyright.sh).
4879 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4881 * top.c (print_gdb_version): Update copyright year in version output.
4883 For older changes see ChangeLog-2010.
4889 version-control: never