1 2011-04-15 Tom Tromey <tromey@redhat.com>
3 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
5 2011-04-15 Gary Benson <gbenson@redhat.com>
7 * MAINTAINERS: Add myself to write-after-approval section.
9 2011-04-14 Mike Frysinger <vapier@gentoo.org>
11 * remote-sim.c (sim_command_completer): New function.
12 (_initialize_remote_sim): Set completer to sim_command_completer.
14 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
16 * breakpoint.c (print_exception_catchpoint): Rename to ...
17 (print_it_exception_catchpoint): ... this.
18 (gnu_v3_exception_catchpoint_ops): Update with new name
19 for print_it_exception_catchpoint.
21 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
23 * MAINTAINERS: Add myself for write after approval privileges.
25 2011-04-13 Marek Polacek <mpolacek@redhat.com>
27 * MAINTAINERS: Add myself as a write-after-approval maintainer.
29 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
31 * breakpoint.c (watch_command_1): Remove colon from exp_string.
33 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
35 * breakpoint.c (save_breakpoints): Verify whether
36 breakpoint_ops.print_recreate is defined before calling it.
38 2011-04-11 Gary Benson <gbenson@redhat.com>
40 Fix failure with --enable-maintainer-mode.
41 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
43 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
46 * symtab.c (search_symbols): Reorder the KIND description in the
47 function comment. Remove the unused 4th element of types, types2,
48 types3 and types4. New gdb_assert on KIND.
49 (symtab_symbol_info): Remove the unused 4th element of classnames.
50 New gdb_assert on KIND.
51 * symtab.h (enum search_domain): New warning in the enum comment.
52 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
55 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
57 Fix crash of gdb save-index on a STABS file.
58 * dwarf2read.c (write_psymtabs_to_index): Return also on no
61 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
63 Fix DW_AT_accessibility compatibility with gcc-4.6+.
64 * dwarf2read.c: Include ctype.h.
65 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
67 (dwarf2_add_field): Fix new_field->accessibility by calling
68 dwarf2_default_access_attribute. Restructure setting accessibility
70 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
71 is_private and is_protected by calling
72 dwarf2_default_access_attribute.
74 2011-04-08 Kevin Buettner <kevinb@redhat.com>
76 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
77 to the initialization.
79 2011-04-08 Steve Ellcey <sje@cup.hp.com>
81 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
84 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
86 Remove support for old Cygwin 1.5 versions.
87 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
88 function on old Cygwin version.
89 * windows-nat.c: Remove cygwin version check and always define
90 __USEWIDE for Cygwin compilation.
92 2011-04-07 Yao Qi <yao@codesourcery.com>
94 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
96 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
97 (arm_copy_svc): Remove parameters INSN and TO.
98 (decode_svc_copro): Update caller.
99 * arm-tdep.h (struct displaced_step_closure): Remove parameters
100 from function pointer `copy_svc_os'.
102 2011-04-07 Yao Qi <yao@codesourcery.com>
104 * arm-tdep.c (cleanup_branch): Set a correct return address in
105 LR for ARM and Thumb.
107 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
110 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
111 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
112 in the function comment, a new note on values compatibility.
113 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
114 * symtab.h (SYMBOL_HASH_NEXT): New.
116 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
118 * ppc-linux-nat.c (check_condition): Add len output parameter.
119 Set it based on the memory region referenced in the condition
120 expression. Update all callers.
122 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
124 Fix crash regression on systems featuring .gdb_index.
125 * objfiles.c (free_objfile): Move the
126 forget_cached_source_info_for_objfile call earlier. Comment it.
127 Extend the comment for objfile_free_data.
129 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
131 Fix regression of displaying the debug format.
132 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
135 2011-04-04 Tom Tromey <tromey@redhat.com>
137 * cli/cli-interp.c (struct captured_execute_command_args):
139 (do_captured_execute_command): Remove.
140 (safe_execute_command): Use TRY_CATCH.
141 * cli/cli-script.c (struct wrapped_read_command_file_args):
143 (wrapped_read_command_file): Remove.
144 (script_from_file): Use TRY_CATCH.
145 * exceptions.c (catch_exception): Remove.
146 * exceptions.h (catch_exception): Remove.
147 (deprecated_throw_reason): Update comment.
148 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
149 argument to 'context'.
150 (mi_execute_command): Use TRY_CATCH.
151 * remote.c (struct start_remote_args): Remove.
152 (remote_start_remote): Update; change arguments.
153 (remote_open_1): Use TRY_CATCH.
155 2011-04-04 Tom Tromey <tromey@redhat.com>
157 * tracepoint.c (scope_info): Update.
158 * symtab.c (decode_line_spec): Update.
159 * python/python.c (gdbpy_decode_line): Update.
160 * linespec.h (decode_line_1): Update.
161 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
162 (decode_compound, find_method, symtab_from_filename)
163 (decode_variable): Likewise.
164 * cli/cli-cmds.c (edit_command): Update.
165 (list_command): Update.
166 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
168 (create_breakpoint): Update.
169 (until_break_command): Update.
170 (addr_string_to_sals): Update.
171 (decode_line_spec_1): Update.
173 2011-04-04 Tom Tromey <tromey@redhat.com>
175 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
176 (do_captured_parse_breakpoint): Remove.
177 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
178 Use TRY_CATCH directly.
180 2011-04-04 Tom Tromey <tromey@redhat.com>
182 * symtab.h (free_symtab): Remove.
183 (forget_cached_source_info_for_objfile): Declare.
184 * symmisc.c (free_symtab): Remove.
185 * source.c (forget_cached_source_info_for_objfile): New function.
186 (forget_cached_source_info): Use it.
187 * objfiles.c (free_objfile): Simplify check before calling
188 clear_current_source_symtab_and_line. Call
189 forget_cached_source_info_for_objfile.
191 2011-04-04 Tom Tromey <tromey@redhat.com>
193 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
194 (new_symtab): Don't set `free_code' on symtab.
195 (new_linetable): Properly handle size==0.
196 * symtab.h (struct symtab) <free_code, free_func>: Remove.
197 * symmisc.c (free_symtab): Don't free the linetable. Don't call
199 * jv-lang.c (struct jv_per_objfile_data): New.
200 (jv_per_objfile_free): Free the data.
201 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
202 (get_java_class_symtab): Set the `dict' field on the
204 (free_class_block): Remove.
205 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
208 2011-04-04 Tom Tromey <tromey@redhat.com>
210 * symfile.c (reread_symbols): Update.
211 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
213 * objfiles.c (allocate_objfile): Update.
214 * cp-support.h (cp_check_possible_namespace_symbols): Don't
216 * cp-namespace.c (lookup_symbol_file): Don't call
217 lookup_possible_namespace_symbol.
218 (initialize_namespace_symtab, get_possible_namespace_block)
219 (free_namespace_block, cp_check_possible_namespace_symbols)
220 (check_possible_namespace_symbols_loop)
221 (check_one_possible_namespace_symbol)
222 (lookup_possible_namespace_symbol): Remove.
223 (maintenance_cplus_namespace): Replace with notice.
224 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
226 2011-04-04 Tom Tromey <tromey@redhat.com>
228 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
229 * symtab.h (struct symtab) <producer, debugformat>: Now const.
230 * symmisc.c (free_symtab): Don't free debugformat.
231 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
232 (record_debugformat, record_producer): Document.
233 * buildsym.c (end_symtab): Don't save debugformat and producer
235 (end_symtab): Don't free debugformat and producer fields.
236 (record_debugformat): Don't call xstrdup.
237 (record_producer): Likewise.
239 2011-04-04 Tom Tromey <tromey@redhat.com>
241 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
242 (source_line_charpos, source_charpos_line): Remove.
244 2011-04-04 Tom Tromey <tromey@redhat.com>
246 * symtab.h (domain_enum): Split in two...
247 (enum search_domain): New.
248 (search_symbols): Update.
249 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
250 redundant declarations.
251 (search_symbols): Change 'kind' argument to search_domain.
253 (print_symbol_info): Likewise.
254 (symtab_symbol_info): Likewise.
255 * symfile.h (struct quick_symbol_functions)
256 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
257 <expand_symtabs_matching>: Likewise.
258 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
259 (expand_symtabs_matching_via_partial): Update.
260 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
261 (dw2_expand_symtabs_for_function): Update.
262 * block.h: Moved anonymous enum...
263 * defs.h (enum block_enum): ... here. Now named.
265 2011-04-03 Joel Brobecker <brobecker@adacore.com>
267 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
268 * version.in: Bump version to 7.3.50.20110403-cvs.
270 2011-04-03 Joel Brobecker <brobecker@adacore.com>
272 * NEWS: Create a new section for the next release branch.
273 Rename the section of the current branch, now that it has
276 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
278 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
279 for "fpscr" in target description.
281 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
283 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
284 initialize it. Delay HASH initialization. Strip the part after open
285 parenthesis for languages with qualifiers. Call do_cleanups.
287 2011-04-01 Tom Tromey <tromey@redhat.com>
289 * utils.c (report_command_stats): Don't print `-' for negative
292 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
294 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
295 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
298 2011-04-01 Joel Brobecker <brobecker@adacore.com>
300 * breakpoint.h (bpdisp_text): Add declaration.
301 * breakpoint.c (bpdisp_text): Make non-static.
302 * ada-lang.c: #include "mi/mi-common.h".
303 (print_it_exception): Rewrite to improve GDB/MI output.
305 2011-04-01 Pedro Alves <pedro@codesourcery.com>
307 * arm-tdep.h (struct address_space): Add forward declaration.
309 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
311 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
312 * arm-tdep.c (arm_override_mode): New global.
313 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
314 execution mode heuristics.
315 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
316 second single-step breakpoint if needed, using
317 arm_insert_single_step_breakpoint.
318 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
319 ARM execution mode, do not call thumb_get_next_pc_raw.
320 (arm_get_next_pc): Encode execution mode in return value. Call
321 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
322 (arm_insert_single_step_breakpoint): New function.
323 (arm_software_single_step): Call it.
324 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
325 argument to return execution mode of sigreturn target.
326 (arm_linux_syscall_next_pc): Use it.
327 (arm_linux_copy_svc): Update call.
328 (arm_linux_software_single_step): Call
329 arm_insert_single_step_breakpoint.
331 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
333 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
336 2011-03-31 Tom Tromey <tromey@redhat.com>
338 * varobj.c (update_dynamic_varobj_children): Properly handle
339 errors from iterator.
341 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
343 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
344 struct linkage name twice.
346 2011-03-31 Tom Tromey <tromey@redhat.com>
348 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
349 missing ">" to message.
351 2011-03-31 Tom Tromey <tromey@redhat.com>
353 * varobj.c (instantiate_pretty_printer): Remove duplicate
356 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
358 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
359 if neither saved value nor register available (e.g. signal frame).
361 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
363 * macroexp.c (expand): Avoid uninitialized variable
366 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
368 * breakpoint.c (break_range_command): Fix typo in comment.
370 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
371 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
373 Implement support for PowerPC BookE ranged breakpoints.
374 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
375 * breakpoint.h (struct bp_target_info) <length>: New member
377 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
378 instead of struct breakpoint as argument, and also add ASPACE
379 and BP_ADDR arguments. Update all callers.
380 (struct breakpoint_ops) <print_one_detail>: New method.
381 (struct breakpoint) <addr_string_range_end>: New member variable.
382 * breakpoint.c (breakpoint_location_address_match): Add function
384 (insert_bp_location): Set bl->target_info.length.
385 (breakpoint_here_p): Call breakpoint_location_address_match.
386 (moribund_breakpoint_here_p): Likewise.
387 (regular_breakpoint_inserted_here_p): Likewise.
388 (breakpoint_thread_match): Likewise.
389 (bpstat_stop_status): Likewise.
390 (bpstat_check_location): Move call to
391 breakpoint_ops.breakpoint_hit to the top.
392 (print_one_breakpoint_location): Call
393 breakpoint_ops.print_one_detail if available.
394 (breakpoint_address_match_range): New function.
395 (breakpoint_location_address_match): Likewise.
396 (breakpoint_locations_match): Compare the length field of the
398 (hw_breakpoint_used_count): Count resources used by all locations
399 in a breakpoint, and use breakpoint_ops.resources_needed if
401 (breakpoint_hit_ranged_breakpoint): New function.
402 (resources_needed_ranged_breakpoint): Likewise.
403 (print_it_ranged_breakpoint): Likewise.
404 (print_one_ranged_breakpoint): Likewise.
405 (print_one_detail_ranged_breakpoint): Likewise.
406 (print_mention_ranged_breakpoint): Likewise.
407 (print_recreate_ranged_breakpoint): Likewise.
408 (ranged_breakpoint_ops): New structure.
409 (find_breakpoint_range_end): New function.
410 (break_range_command): Likewise.
411 (delete_breakpoint): Free addr_string_range_end.
412 (update_breakpoint_locations): Add SALS_END argument. Update
413 all callers. Calculate breakpoint length if a non-zero SALS_END
414 is given. Call breakpoint_locations_match instead of
415 breakpoint_address_match.
416 (reset_breakpoint): Find SaL of the end of the range if B is a
418 (_initialize_breakpoint): Register break-range command.
419 * defs.h (print_core_address): Add function prototype.
420 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
422 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
423 (ppc_linux_remove_hw_breakpoint): Likewise.
424 (_initialize_ppc_linux_nat): Initialize
425 to_ranged_break_num_registers.
426 * target.c (update_current_target): Add comment about
427 to_ranged_break_num_registers.
428 (target_ranged_break_num_registers): New function.
429 * target.h (struct target_ops) <to_ranged_break_num_registers>:
431 (target_ranged_break_num_registers): Add function prototype.
432 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
433 * utils.c (print_core_address): ... here.
435 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
437 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
438 variable compiler warning.
440 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
442 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
444 (re_set_breakpoint): ... to here ...
445 (addr_string_to_sals): ... and here.
447 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
449 * Makefile.in (SFILES): Add missing C sources.
450 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
453 2011-03-29 Mike Frysinger <vapier@gentoo.org>
455 * .gitignore: New file.
457 2011-03-29 Mike Frysinger <vapier@gentoo.org>
459 * NEWS: Mention new cfi device simulation.
461 2011-03-29 Tom Tromey <tromey@redhat.com>
463 * dwarf2read.c (fixup_partial_die): Handle linkage name on
464 otherwise anonymous types.
465 (dwarf2_name): Likewise.
466 * valops.c (value_struct_elt_for_reference): Refine artificial
467 type logic. Call error if j==-1.
469 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
471 Fix false GCC warning.
472 * infcall.c (find_function_addr): Initialize funaddr.
474 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
476 Fix mingw compilation with --enable-targets=all.
477 * remote-mips.c (gdb_usleep.h): Include header.
478 (mips_enter_debug): Use gdb_usleep instead of sleep.
480 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
482 Support resolution of STT_GNU_IFUNC via breakpoints.
483 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
484 bp_gnu_ifunc_resolver_return.
485 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
486 the loop. Support bp_gnu_ifunc_resolver and
487 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
488 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
490 (bptype_string, print_one_breakpoint_location): Support
491 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
492 (user_settable_breakpoint): Return true also for
493 bp_gnu_ifunc_resolver.
494 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
495 bp_gnu_ifunc_resolver_return.
496 (set_breakpoint_location_function): New parameter explicit_loc,
497 describe it. Call find_pc_partial_function_gnu_ifunc with new
498 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
499 EXPLICIT_LOC is not set.
500 (set_raw_breakpoint): Set EXPLICIT_LOC for
501 set_breakpoint_location_function.
502 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
503 set_breakpoint_location_function.
504 (mention): Support bp_gnu_ifunc_resolver and
505 bp_gnu_ifunc_resolver_return.
506 (add_location_to_breakpoint): Set EXPLICIT_LOC for
507 set_breakpoint_location_function.
508 (update_breakpoint_locations): Remove static.
509 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
510 bp_gnu_ifunc_resolver_return.
511 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
512 bp_gnu_ifunc_resolver_return.
513 (update_breakpoint_locations): New declaration.
514 * elfread.c: Include gdbthread.h and regcache.h.
515 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
517 (elf_gnu_ifunc_fns): Install them.
518 * minsyms.c (stub_gnu_ifunc_resolver_stop)
519 (stub_gnu_ifunc_resolver_return_stop): New functions.
520 (stub_gnu_ifunc_fns): Install them.
521 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
522 and gnu_ifunc_resolver_return_stop.
523 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
525 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
527 STT_GNU_IFUNC reader implementation.
528 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
529 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
530 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
531 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
532 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
533 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
534 (elf_gnu_ifunc_resolve_addr): New.
535 (elf_symfile_read): Call elf_rel_plt_read.
536 (elf_gnu_ifunc_fns): New.
537 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
538 Install elf_gnu_ifunc_fns.
539 * infcall.c (find_function_return_type): New function.
540 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
541 * minsyms.c (stub_gnu_ifunc_resolve_addr)
542 (stub_gnu_ifunc_resolve_name): New functions.
543 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
544 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
545 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
547 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
549 Code cleanup for later STT_GNU_IFUNC support.
550 * infcall.c (find_function_addr): Remove variable code, use explicit
551 dereferences for it. Move VALUE_TYPE initialization later.
553 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
555 GDB find_pc_partial_function support for STT_GNU_IFUNC.
556 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
557 (clear_pc_function_cache): Clear it.
558 (find_pc_partial_function): Rename to ...
559 (find_pc_partial_function_gnu_ifunc): ... this function. New
560 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
561 (find_pc_partial_function): New wrapper for this function.
562 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
564 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
566 GDB internal type support for STT_GNU_IFUNC.
567 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
568 (elf_symtab_read): Set mst_text_gnu_ifunc for
569 BSF_GNU_INDIRECT_FUNCTION.
570 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
571 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
572 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
573 nodebug_got_plt_symbol.
574 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
575 (TYPE_GNU_IFUNC): New.
576 (struct main_type): New field flag_gnu_ifunc.
577 (struct builtin_type): New field builtin_func_func.
578 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
579 nodebug_got_plt_symbol.
580 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
581 (in_gnu_ifunc_stub): New.
582 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
584 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
585 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
586 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
588 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
589 * symtab.c (search_symbols): Likewise.
590 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
591 and mst_slot_got_plt.
592 (in_gnu_ifunc_stub): New declaration.
594 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
596 Support a ring of related breakpoints.
597 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
598 other functions, add gdb_assert.
599 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
600 watchpoint_del_at_next_stop.
601 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
602 (bpstat_stop_status): Handle ring in related_breakpoint.
603 (set_raw_breakpoint_without_location): Initialize ring in
605 (delete_breakpoint): Handle ring in related_breakpoint, use
606 watchpoint_del_at_next_stop.
607 (map_breakpoint_numbers): Handle ring in related_breakpoint.
609 2011-03-28 Tom Tromey <tromey@redhat.com>
612 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
613 with `language_minimal'.
615 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
617 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
618 instead of checking for STT_ARM_TFUNC symbol type.
620 2011-03-25 Tom Tromey <tromey@redhat.com>
622 * linespec.c (symbol_found): Restore line-based result for
623 non-LOC_LABEL symbols.
625 2011-03-25 Kai Tietz <ktietz@redhat.com>
627 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
628 instead of strcmp for comparison.
629 (tui_source_is_displayed): Likewise.
630 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
632 2011-03-24 Mark Wielaard <mjw@redhat.com>
634 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
636 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
637 (find_partial_die_in_comp_unit): Likewise in comment.
638 (read_attribute_value): Likewise.
639 (lookup_die_type): Likewise.
640 (dwarf_form_name): Likewise.
641 (dump_die_shallow): Likewise.
642 (follow_die_ref_or_sig): Likewise.
644 2011-03-24 Tom Tromey <tromey@redhat.com>
646 PR breakpoints/11816:
647 * linespec.c (decode_line_1): Parse `function:label' linespecs.
648 (decode_compound): Update.
649 (find_function_symbol): New function.
650 (decode_dollar): Update.
651 (decode_label): Add 'function_symbol' parameter. Handle
652 function-relative labels.
653 (decode_variable): Update.
654 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
655 not its line. Set `special_display' and canonical name for
658 2011-03-24 Tom Tromey <tromey@redhat.com>
660 * linespec.h (struct linespec_result) <special_display>: New
662 * breakpoint.h (struct breakpoint) <display_canonical>: New
664 * breakpoint.c (print_breakpoint_location): Respect
666 (create_breakpoint_sal): Add 'display_canonical' parameter.
667 (create_breakpoints_sal): Update.
668 (create_breakpoint): Update.
670 2011-03-24 Tom Tromey <tromey@redhat.com>
672 * symtab.c (decode_line_spec): Update.
673 * linespec.c (build_canonical_line_spec): Change type of
675 (decode_line_2, decode_line_1, decode_objc, decode_compound)
676 (find_method, decode_all_digits, decode_dollar, decode_label)
677 (symbol_found): Likewise.
678 (init_linespec_result): New function.
679 * breakpoint.c (struct captured_parse_breakpoint_args)
680 <canonical_p>: New field, replaces addr_string_p.
681 (create_breakpoints_sal): Add 'canonical' parameter, replacing
683 (parse_breakpoint_sals): Likewise.
684 (do_captured_parse_breakpoint): Update.
685 (create_breakpoint): Use struct linespec_result.
686 (until_break_command): Update.
687 (breakpoint_re_set_one): Update.
688 (decode_line_spec_1): Update.
689 * linespec.h (struct linespec_result): New.
690 (init_linespec_result): Declare.
692 2011-03-23 Pedro Alves <pedro@codesourcery.com>
694 * regcache.c (regcache_raw_read): If the target didn't supply a
695 given raw register, mark it as unavailable.
697 2011-03-23 Kai Tietz <ktietz@redhat.com>
699 * breakpoint.c (clear_command): Use filename_cmp
700 instead of strcmp for comparison.
701 * buildsym.c (watch_main_source_file_lossage): Likewise.
702 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
703 checking just for slash.
704 * dbxread.c (read_dbx_symtab): Use lbasename instead of
705 strrchr and filename_cmp instead of strcmp for filenames.
706 (add_old_header_file): Use filename_cmp
707 instead of strcmp for comparison.
708 * exec.c (exec_set_section_address): Likewise.
709 * macrotab.c (macro_lookup_inclusion): Likewise.
710 (macro_lookup_inclusion): Likewise.
711 * elfread.c (_initialize_elfread): Likewise.
712 (elfstab_offset_sections): Likewise.
713 (elfstab_offset_sections): Use lbasename instead of
715 * mdebugread.c (parse_partial_symbols): Likewise.
716 (arse_partial_symbols): Use filename_(n)cmp instead of
717 str(n)cmp for comparison.
718 * minsyms.c (lookup_minimal_symbol): Likewise.
719 * psymtab.c (read_psymtabs_with_filename): Likewise.
720 * solib.c (solib_read_symbols): Likewise.
721 (reload_shared_libraries_1): Likewise.
722 * symmisc.c (maintenance_print_symbols): Likewise.
723 * symfile.c (separate_debug_file_exists): Likewise.
724 (reread_symbols): Likewise.
725 (find_separate_debug_file_by_debuglink): Likewise.
726 * remote-fileio.c (remote_fileio_func_rename): Likewise.
727 * source.c (add_path): Likewise.
728 * symtab.c (filename_seen): Likewise.
729 (file_matches): Likewise.
730 (print_symbol_info): Likewise.
731 (maybe_add_partial_symtab_filename): Likewise.
732 (make_source_files_completion_list): Likewise.
733 * xml-syscall.c (init_sysinfo): Likewise.
734 * windows-nat.c (_initialize_check_for_gdb_ini): Use
735 IS_DIR_SEPARATOR for checking for trailing path separator.
737 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
739 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
740 label abort_expression.
741 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
742 DWARF_VALUE_OPTIMIZED_OUT.
744 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
747 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
748 to linkage_name. Invert its value. Update the function comment.
749 (c_type_print_varspec_suffix): Invert it at the caller.
750 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
752 2011-03-22 Pedro Alves <pedro@codesourcery.com>
754 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
755 errors when reading the `stop_pc'.
756 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
759 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
761 * NEWS: Document gdb.Write stream keyword.
763 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
766 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
767 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
768 (dwarf2_add_field): Fix new_field->accessibility for
769 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
771 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
775 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
776 other error classes. Do not print stack trace.
778 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
780 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
781 (dwarf2_add_field): Fix new_field->accessibility for
782 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
784 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
786 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
787 encountering a load via a non-SP register.
789 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
791 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
792 field in returned unwinder.
794 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
796 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
798 2012-03-21 Joel Brobecker <brobecker@adacore.com>
800 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
803 2012-03-18 Pedro Alves <pedro@codesourcery.com>
805 * frame.c (frame_unwind_register): Throw an error if unwinding the
807 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
808 an unwind stop reason.
809 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
810 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
811 UNWIND_UNAVAILABLE>: New.
812 * inline-frame.c (inline_frame_unwind): Install
813 default_frame_unwind_stop_reason.
814 * frame-unwind.c: Include "exceptions.h".
815 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
816 (default_frame_unwind_stop_reason): New.
817 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
818 (default_frame_unwind_stop_reason): Declare.
819 (struct frame_unwind) <stop_reason>: New function pointer.
821 * dummy-frame.c: Install default_frame_unwind_stop_reason.
822 * dwarf2-frame.c: Include exceptions.h.
823 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
824 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
825 computing the CFA. If such an error was thrown, set
827 (dwarf2_frame_unwind_stop_reason): New.
828 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
830 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
831 (dwarf2_signal_frame_unwind): Ditto.
833 * amd64-tdep.c: Include "exceptions.h".
834 (struct amd64_frame_cache): New field "base_p".
835 (amd64_init_frame_cache): Clear it.
836 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
837 Avoid reading registers with functions that throw if the register
838 is not necessary to compute the frame base.
839 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
840 swallowing NOT_AVAILABLE_ERROR.
841 (amd64_frame_unwind_stop_reason): New.
842 (amd64_frame_this_id): Don't build a frame id if the frame base
844 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
845 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
846 base_p if the frame base was computable.
847 (amd64_sigtramp_frame_unwind_stop_reason): New.
848 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
849 frame base was unavailable.
850 (amd64_sigtramp_frame_unwind): Install
851 amd64_sigtramp_frame_unwind_stop_reason.
852 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
853 base_p if the frame base was computable.
854 (amd64_epilogue_frame_unwind_stop_reason): New.
855 (amd64_epilogue_frame_this_id): Don't build a frame id if the
856 frame base was unavailable.
857 (amd64_epilogue_frame_unwind): Install
858 amd64_epilogue_frame_unwind_stop_reason.
859 * i386-tdep.c: Include "exceptions.h".
860 (struct i386_frame_cache): New field "base_p".
861 (i386_init_frame_cache): Clear it.
862 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
863 Avoid reading registers with functions that throw if the register
864 is not necessary to compute the frame base.
865 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
866 swallowing NOT_AVAILABLE_ERROR.
867 (i386_frame_unwind_stop_reason): New.
868 (i386_frame_this_id): Don't build a frame id if the frame base was
870 (i386_frame_prev_register): Handle unavailable SP.
871 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
872 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
873 base_p if the frame base was computable.
874 (i386_epilogue_frame_unwind_stop_reason): New.
875 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
876 base was unavailable.
877 (i386_epilogue_frame_unwind): Install
878 i386_epilogue_frame_unwind_stop_reason.
879 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
880 base_p if the frame base was computable.
881 (i386_sigtramp_frame_unwind_stop_reason): New.
882 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
883 base was unavailable.
884 (i386_sigtramp_frame_unwind): Install
885 i386_sigtramp_frame_unwind_stop_reason.
886 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
887 type's size, not the register's.
888 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
890 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
891 default_frame_unwind_stop_reason.
892 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
893 (alpha_heuristic_frame_unwind): Ditto.
894 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
895 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
896 * avr-tdep.c (avr_frame_unwind): Ditto.
897 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
899 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
900 * frv-tdep.c (frv_frame_unwind): Ditto.
901 * h8300-tdep.c (h8300_frame_unwind): Ditto.
902 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
903 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
904 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
905 (hppa_stub_frame_unwind): Ditto.
906 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
907 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
908 (ia64_libunwind_frame_unwind)
909 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
910 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
911 * lm32-tdep.c (lm32_frame_unwind): Ditto.
912 * m32c-tdep.c (m32c_unwind): Ditto.
913 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
914 * m32r-tdep.c (m32r_frame_unwind): Ditto.
915 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
916 * m68k-tdep.c (m68k_frame_unwind): Ditto.
917 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
918 * m88k-tdep.c (m88k_frame_unwind): Ditto.
919 * mep-tdep.c (mep_frame_unwind): Ditto.
920 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
921 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
922 (mips_stub_frame_unwind): Ditto.
923 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
924 * moxie-tdep.c (moxie_frame_unwind): Ditto.
925 * mt-tdep.c (mt_frame_unwind): Ditto.
926 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
927 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
928 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
929 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
930 (s390_sigtramp_frame_unwind): Ditto.
931 * score-tdep.c (score_prologue_unwind): Ditto.
932 * sh-tdep.c (sh_frame_unwind): Ditto.
933 * sh64-tdep.c (sh64_frame_unwind): Ditto.
934 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
935 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
936 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
937 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
938 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
939 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
940 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
941 (sparc64obsd_trapframe_unwind): Ditto.
942 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
943 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
944 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
945 * v850-tdep.c (v850_frame_unwind): Ditto.
946 * vax-tdep.c (vax_frame_unwind): Ditto.
947 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
948 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
949 * xtensa-tdep.c (xtensa_unwind): Ditto.
951 2011-03-18 Pedro Alves <pedro@codesourcery.com>
953 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
954 there's always a frame. Use get_frame_pc_if_available instead of
955 get_frame_pc, and if there's no PC available, don't look up a
958 2011-03-18 Pedro Alves <pedro@codesourcery.com>
960 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
963 2011-03-18 Pedro Alves <pedro@codesourcery.com>
965 * tracepoint.c (set_traceframe_context): Handle unavailable PC
968 2011-03-18 Pedro Alves <pedro@codesourcery.com>
970 * frame.h (frame_unwind_caller_pc_if_available): Declare.
971 * frame.c (frame_unwind_caller_pc_if_available): New.
972 * stack.c (frame_info): Handle unavailable PC.
974 2011-03-18 Pedro Alves <pedro@codesourcery.com>
976 * frame.c (frame_unwind_pc): Rename to ...
977 (frame_unwind_pc_if_available): ... this. New `pc' output
978 parameter. Change return type to int. Gracefully handle
979 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
980 happened, or 1 otherwise.
981 (frame_unwind_pc): Reimplement on top of
982 frame_unwind_pc_if_available.
983 (get_frame_func): Rename to ...
984 (get_frame_func_if_available): New `pc' output parameter. Change
985 return type to int. Gracefully handle the PC not being available.
986 (get_frame_func): Reimplement on top of
987 get_frame_func_if_available.
988 (select_frame): Handle the PC being unavailable.
989 (get_prev_frame): Handle the PC being unavailable.
990 (get_frame_pc_if_available): New.
991 (get_frame_address_in_block_if_available): New.
992 (find_frame_sal): Handle the frame PC not being available.
993 * frame.h (get_frame_pc_if_available): Declare.
994 (get_frame_address_in_block_if_available): Declare.
995 (get_frame_func_if_available): Declare.
996 * stack.c (print_frame_info): Handle the PC being unavailable.
997 (find_frame_funname): Ditto.
998 (print_frame): Handle the PC being unavailable.
999 (get_frame_language): Ditto.
1000 * blockframe.c (get_frame_block): Ditto.
1001 * macroscope.c (default_macro_scope): Ditto.
1002 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1004 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1006 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1007 NOT_AVAILABLE_ERROR when evaluating the location expression.
1009 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1011 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1012 returning that the register piece is unavailable/optimized out.
1013 (write_pieced_value): Handle get_frame_register_bytes returning
1014 that the register piece is unavailable/optimized out when doing a
1015 read-modify write of a bitfield.
1016 * findvar.c (value_from_register): Handle get_frame_register_bytes
1017 returning that the register piece is unavailable/optimized out.
1018 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1019 and `unavailablep'. Throw error on bad debug info. Use
1020 frame_register instead of frame_register_read, to fill in the new
1022 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1024 * valops.c: (value_assign): Adjust, and handle
1025 get_frame_register_bytes failing.
1026 * spu-tdep.c: Include exceptions.h.
1027 (spu_software_single_step): Adjust, and handle
1028 get_frame_register_bytes failing.
1029 (spu_get_longjmp_target): Ditto.
1030 * gdbarch.sh (register_to_value): Change to return int. New
1031 parameters `optimizedp' and `unavailablep'.
1032 * gdbarch.h, gdbarch.c: Regenerate.
1033 * i386-tdep.c (i386_register_to_value): Adjust to new
1034 gdbarch_register_to_value interface.
1035 * i387-tdep.c (i387_register_to_value): Ditto.
1036 * i387-tdep.h (i387_register_to_value): Ditto.
1037 * alpha-tdep.c (alpha_register_to_value): Ditto.
1038 * ia64-tdep.c (ia64_register_to_value): Ditto.
1039 * m68k-tdep.c (m68k_register_to_value): Ditto.
1040 * mips-tdep.c (mips_register_to_value): Ditto.
1041 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1043 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1045 * findvar.c (value_of_register): Mark the value as unavailable, if
1046 the register is unavailable.
1047 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1048 (frame_register): New `unavailablep' parameter.
1049 (frame_register_read): Update comment.
1050 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1051 Set it if the register is unavailable. If the register is
1052 unavailable, clear the output buffer.
1053 (frame_register): New `unavailablep' parameter. Pass it down.
1054 (frame_unwind_register): Adjust.
1055 (put_frame_register): Adjust.
1056 (frame_register_read): Adjust. Also return false if the register
1058 (frame_register_unwind_location): Adjust.
1059 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1060 is unavailable, mark the value accordingly.
1061 * stack.c (frame_info): Handle unavailable registers.
1063 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1065 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1066 simplify, using regcache_cooked_read.
1068 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1070 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1071 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1072 (regcache_raw_read_unsigned, regcache_raw_read_part)
1073 (regcache_cooked_read, regcache_cooked_read_signed)
1074 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1075 (regcache_cooked_read_ftype): Change return to enum
1077 * regcache.c: Include exceptions.h
1078 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1079 (do_cooked_read): Change return to enum register_status. Always
1080 forward to regcache_cooked_read.
1081 (regcache_raw_read): Change return to enum register_status. If
1082 the register is not REG_VALID, memset the buffer. Return the
1084 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1085 return the register's status.
1086 (regcache_raw_read_unsigned): Ditto.
1087 (regcache_cooked_read): Change return to enum register_status.
1088 Assert that with read-only regcaches, the register's status must
1089 be known. If the regcache is read-only, and the register is not
1090 REG_VALID, memset the buffer. Return the register's status.
1091 (regcache_cooked_read_signed): Change return to enum
1092 register_status. Handle non-REG_VALID registers and return the
1094 (regcache_cooked_read_unsigned): Change return to enum
1095 register_status. Handle non-REG_VALID registers and return the
1097 (regcache_xfer_part, regcache_raw_read_part)
1098 (regcache_cooked_read_part): Change return to enum
1099 register_status. Return the register's status.
1100 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1102 (regcache_dump): Handle unavailable cooked registers.
1103 * frame.c (do_frame_register_read): Adjust interface to match
1104 regcache_cooked_read_ftype.
1105 * gdbarch.sh (pseudo_register_read): Change return to enum
1107 * gdbarch.h, gdbarch.c: Regenerate.
1109 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1111 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1112 register_status. If reading a raw register indicates the raw
1113 register is not valid, return the raw register's status,
1114 otherwise, return REG_VALID.
1115 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1116 register_status. Handle non-REG_VALID raw registers and return
1117 the register's status.
1118 * arm-tdep.c (arm_neon_quad_read)
1119 (arm_pseudo_read): Change return to enum register_status. Handle
1120 non-REG_VALID raw registers and return the register's status.
1121 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1122 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1123 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1124 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1125 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1127 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1128 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1129 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1130 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1131 (m32c_pseudo_register_read): Change return to enum
1132 register_status. Adjust.
1133 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1134 enum register_status. Return the register's status.
1135 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1136 register_status. Return the register's status.
1137 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1138 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1139 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1140 * rs6000-tdep.c (move_ev_register_func): New typedef.
1141 (e500_move_ev_register): Use it. Change return to enum
1142 register_status. Return the register's status.
1143 (do_regcache_raw_read): New function.
1144 (do_regcache_raw_write): New function.
1145 (e500_pseudo_register_read): Change return to enum
1146 register_status. Return the register's status. Use
1147 do_regcache_raw_read.
1148 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1149 (dfp_pseudo_register_read): Change return to enum register_status.
1150 Return the register's status.
1151 (vsx_pseudo_register_read): Ditto.
1152 (efpr_pseudo_register_read): Ditto.
1153 (rs6000_pseudo_register_read): Ditto.
1154 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1155 register_status. Return the register's status.
1156 * sh64-tdep.c (pseudo_register_read_portions): New function.
1157 (sh64_pseudo_register_read): Change return to enum
1158 register_status. Use pseudo_register_read_portions. Return the
1160 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1161 register_status. Return the register's status.
1162 * sh-tdep.c (pseudo_register_read_portions): New function.
1163 (sh_pseudo_register_read): Change return to enum register_status.
1164 Use pseudo_register_read_portions. Return the register's status.
1165 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1166 enum register_status. Return the register's status.
1167 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1168 * spu-tdep.c (spu_pseudo_register_read_spu)
1169 (spu_pseudo_register_read): Ditto.
1170 * xtensa-tdep.c (xtensa_register_read_masked)
1171 (xtensa_pseudo_register_read): Ditto.
1172 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1174 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1176 * python/py-value.c (valpy_getitem): Fix formatting of error function
1179 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1181 ARI fixes: Add missing internationalization markups throughout
1183 * darwin-nat-info.c: Ditto.
1186 * mi/mi-main.c: Ditto.
1188 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1190 ARI fixes: Add missing internationalization markups throughout
1193 * cp-name-parser.y: Ditto.
1196 * objc-exp.y: Ditto.
1199 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1201 ARI fixes: Messages should have no trailing new lines.
1202 * darwin-nat.c (mach_check_error): Remove trailing new line from
1203 warning function call message.
1204 * record.c (bfdcore_read): Idem for error call.
1206 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1208 * common/signals.c (target_signal_from_host): Add _ markup to error
1209 function call message.
1210 (target_signal_to_host): Add _ markup and remove trailing new line
1211 from warning call message.
1212 (target_signal_from_command): Add _ markup to error function call
1215 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1219 * python/python.c (gdbpy_write): Accept a stream argument and
1220 operate to the appropriate stream.
1221 (gdbpy_flush): Likewise.
1222 (_initialize_python): Add stream constants.
1223 (finish_python_initialization): Add GdbOutputErrorFile class.
1225 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1227 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1229 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1231 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1232 to store_signed_integer. Add debug message when relocating CALL
1233 instructions. Fix formatting of debug message.
1234 * i386-tdep.c (i386_relocate_instruction): Ditto.
1236 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1238 * target.h (struct target_ops): Remove to_lookup_symbol field.
1239 (target_lookup_symbol): Delete macro.
1240 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1241 (update_current_target, setup_target_debug): Remove handling
1242 of to_lookup_symbol target_ops field.
1243 * ada-tasks.c (get_known_tasks_addr): Remove use of
1244 target_lookup_symbol.
1245 * coffread.c (coff_symtab_read): Likewise.
1246 * dbxread.c (read_dbx_symtab): Ditto.
1248 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1251 * configure.ac: Add getthrds declaration check.
1252 * configure, config.in: Regenerate.
1253 * aix-thread.c (getthrds): Declare only if not already declared
1254 in procinfo.h. More declaration out of get_signaled_thread to
1257 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1259 * python/py-symtab.c: Populate symtab_object_methods,
1261 (stpy_is_valid): New function.
1262 (salpy_is_valid): Ditto.
1263 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1264 (sympy_is_valid): New function.
1265 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1266 (objfpy_is_valid): New function.
1267 * python/py-inferior.c: Populate inferior_object_methods.
1268 (infpy_is_valid): New function.
1269 * python/py-infthread.c: Populate thread_object_methods.
1270 (thpy_is_valid): New function.
1271 * python/py-block.c: Declare block_object_methods. Populate. Declare
1272 block_iterator_object_methods. Populate.
1273 (blpy_is_valid): New function.
1274 (blpy_iter_is_valid): Ditto.
1276 2011-03-16 Keith Seitz <keiths@redhat.com>
1278 * linespec.c (find_methods): Canonicalize NAME before looking
1280 (name_end): New function.
1281 (keep_name_info): New function.
1282 (decode_line_1): Use keep_name_info.
1283 (decode_compound): Likewise.
1284 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1285 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1288 * linespec.c (locate_first_half): Keep overload information, too.
1289 (decode_compound): Use a string to represent break characters
1291 If P points to a break character, do not increment it.
1292 For C++ and Java, keep overload information and relevant keywords.
1293 If we cannot find a symbol, search the minimal symbols.
1296 * linespec.c (decode_compound): Rename SAVED_ARG to
1298 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1300 Pass a valid block to lookup_symbol.
1301 (lookup_prefix_sym): Likewise.
1302 (find_method): Construct search name based on SYM_CLASS instead
1304 * psymtab.c (lookup_partial_symbol): Add language parameter.
1305 (lookup_symbol_aux_psymtabs): Likewise.
1306 Don't assume that the psymtab we found was the right one. Search
1307 for the desired symbol in the symtab to be certain.
1308 (psymtab_search_name): New function.
1309 (lookup_partial_symbol): Use psymtab_search_name.
1310 Add language parameter.
1311 (read_symtabs_for_function): Add language parameter and pass to
1312 lookup_partial_symbol.
1313 (find_symbol_file_from_partial): Likewise.
1315 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1318 * dwarf2read.c (noop_record_line): New function.
1319 (dwarf_decode_lines): Ignore line tables for GCd functions.
1321 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1323 Fix ARI warnings about new lines at the end of messages, which
1324 are unneeded as there is a new line added at the end of the message
1326 * darwin-nat.c (darwin_stop_inferior): Ditto.
1327 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1328 * dfp.c (decimal_to_number): Ditto.
1329 * exec.c (print_section_info): Ditto.
1330 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1331 * osdata.c (get_osdata): Ditto.
1332 * record.c (bfdcore_write): Ditto.
1333 * remote-mips.c (mips_readchar): Ditto.
1334 * remote.c (read_ptid): Ditto.
1335 * ser-mingw.c (ser_windows_raw): Ditto.
1336 * tracepoint.c (add_local_symbols): Ditto.
1337 * windows-nat.c (fake_create_process): Ditto.
1339 2011-03-16 Tom Tromey <tromey@redhat.com>
1341 * tracepoint.c (stop_tracing): Don't declare.
1342 * event-top.c (after_char_processing_hook): Add `(void)'.
1344 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1346 * NEWS: Add Parameter sub-classing description.
1348 2011-03-16 Kai Tietz <ktietz@redhat.com>
1350 * MAINTAINERS: Update my e-mail address.
1352 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1354 * MAINTAINERS: Add myself for write after approval privileges.
1356 2011-03-15 Michael Snyder <msnyder@vmware.com>
1358 * frame.c (find_frame_sal): Assert sym is not null.
1360 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1362 * objc-lang.c (selectors_info): Check strchr for null result.
1364 * stabsread.c (define_symbol): Guard against bad stabstring input.
1366 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1368 Remove trailing spaces and tabulations from pascal language
1373 p-valprint.c: Ditto.
1375 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1377 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1378 than LOW. Comment it.
1379 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1380 HIGHPC not strictly higher than LOWPC.
1382 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1384 Fix formatting of function declarations returning a pointer in
1386 * varobj.c (varobj_add_child): Ditto.
1387 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1388 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1390 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1392 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1393 for the "generic" vector ABI used with GCC 4.3 and later.
1394 (ppc64_sysv_abi_return_value): Likewise.
1396 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1398 * infcall.c (call_function_by_hand): Function return value is
1399 always a non_lval, even when using struct_return.
1401 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1403 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1404 (map_display_numbers): New.
1405 (do_delete_display): New.
1406 (undisplay_command): Use map_display_numbers.
1407 (do_enable_disable_display): New.
1408 (enable_disable_display_command): New function.
1409 (enable_display): Delete.
1410 (enable_display_command): New.
1411 (disable_display_command): Reimplement.
1412 (_initialize_printcmd): Adjust "enable display" command to use
1413 `enable_display_command' as callback.
1415 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1417 * NEWS: Add Python breakpoint 'stop' operation.
1419 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1421 * NEWS: Delete duplicate entry. Fix typo.
1423 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1425 Fix ARI warning about function names in first column.
1426 Put prototype declaration on same line as return type.
1427 * objc-exp.y: Ditto.
1429 * python/py-stopevent.h: Ditto.
1430 For long function names, split parameters to
1431 allow function name on same line as return type.
1432 * solib-pa64.c: Ditto.
1435 For long function declaration, use single line.
1436 * hppa-tdep.h: Ditto.
1437 * inferior.h: Ditto.
1439 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1441 * python/python.h: Declare gdbpy_should_stop and
1442 gdbpy_breakpoint_has_py_cond.
1443 * python/python.c: Add python.h to includes. Remove python.h from
1444 HAVE_PYTHON definition
1445 (gdbpy_should_stop): New dummy function.
1446 (gdbpy_breakpoint_has_py_cond): New dummy function.
1447 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1448 sub-classing capabilities.
1449 (gdbpy_should_stop): New function.
1450 (gdbpy_breakpoint_has_py_cond): New function.
1451 (local_setattro): New function.
1452 * breakpoint.c (condition_command): Add check for Python 'stop'
1454 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1455 operation function as part of stop/continue tests.
1457 2011-03-14 Tom Tromey <tromey@redhat.com>
1460 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1461 (needs_frame_dwarf_call): Likewise.
1463 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1465 Fix ARI warning about functions without parameters that do not
1467 * breakpoint.c (all_tracepoints): Replace () by (void).
1468 * f-exp.y (match_string_literal): Ditto.
1470 * m2-exp.y (yylex): Ditto.
1471 * mep-tdep.c (current_me_module): Ditto.
1472 (current_options): Ditto.
1473 (current_cop_data_bus_width): Ditto.
1474 (current_cr_names): Ditto.
1475 (current_cr_is_float): Ditto.
1476 (current_ccr_names): Ditto.
1477 * objc-exp.y (yylex): Ditto.
1478 * p-exp.y (yylex): Ditto.
1479 * remote.c (send_interrupt_sequence): Ditto.
1480 * tracepoint.c (current_trace_status): Ditto.
1481 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1482 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1484 2011-03-11 Michael Snyder <msnyder@vmware.com>
1486 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1487 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1488 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1489 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1490 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1492 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1493 (delete_async_event_handler): Ditto.
1495 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1497 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1499 * top.c (set_verbose): Assert showcmd was found.
1501 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1503 * xtensa-tdep.c (warning_once): Correct style issues.
1505 2011-03-11 Yao Qi <yao@codesourcery.com>
1507 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1509 2011-03-11 Andreas Schwab <schwab@redhat.com>
1511 * common/aclocal.m4: Remove.
1513 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1515 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1516 (xtensa_write_register, xtensa_read_register): Likewise.
1517 (xtensa_hextochar): Removed.
1518 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1520 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1522 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1523 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1524 (xtensa_alloc_frame_cache): Add initialization for new fields.
1525 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1526 (warning_once): New function.
1527 (xtensa_insn_kind): New item c0opc_and.
1528 (call0_classify_opcode): Add the case for AND instruction.
1529 (call0_track_op): Change arguments. New local variable litbase.
1530 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1531 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1533 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1534 (call0_analyze_prologue): Update the comments. Change arguments.
1535 Add the variety of updates to handle extended prologues, which now can
1536 conduct dynamic stack adjustments.
1537 (call0_frame_cache): Likewise.
1538 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1539 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1541 2011-03-10 Michael Snyder <msnyder@vmware.com>
1543 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1544 (cmd_qtframe): Ditto.
1545 (cmd_qtbuffer): Ditto.
1546 (cmd_bigqtbuffer): Ditto.
1548 2011-03-10 Tom Tromey <tromey@redhat.com>
1550 * tracepoint.c (trace_actions_command): Update.
1551 * thread.c (thread_apply_command): Update.
1552 * reverse.c (delete_bookmark_command): Update.
1553 (bookmarks_info): Update.
1554 * printcmd.c (undisplay_command): Update.
1555 * memattr.c (mem_enable_command): Update.
1556 (mem_disable_command): Update.
1557 (mem_delete_command): Update.
1558 * inferior.c (detach_inferior_command): Update.
1559 (kill_inferior_command): Update.
1560 (remove_inferior_command): Update.
1561 * cli/cli-utils.h (struct get_number_or_range_state): New.
1562 (init_number_or_range): Declare.
1563 (get_number_or_range): Update.
1564 * cli/cli-utils.c (init_number_or_range): New function.
1565 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1567 (number_is_in_list): Update.
1568 * breakpoint.h (get_tracepoint_by_number): Update.
1569 * breakpoint.c (map_breakpoint_numbers): Update for change to
1570 get_number_or_range.
1571 (find_location_by_number): Use get_number, not
1572 get_number_or_range.
1573 (trace_pass_set_count): New function.
1574 (trace_pass_command): Update for change to get_number_or_range.
1576 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1579 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1581 * python/py-param.c (add_setshow_generic): Add set/show callback
1582 parameters. Register Python object context.
1583 (get_show_value): New function.
1584 (get_set_value): New function.
1585 (call_doc_function): New function.
1586 (get_doc_string): Move behind get_show_value/get_set_value.
1588 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1590 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1592 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1594 * xtensa-tdep.c (xtensa_read_register): Add comment.
1595 (xtensa_write_register): Likewise.
1596 (xtensa_hextochar): Add comment and update to match coding conventions.
1597 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1598 (execute_l32e, execute_s32e, execute_code): Update comments.
1599 (xtensa_exception_handler_t): Update to match coding conventions.
1600 (xtensa_insn_kind): Likewise.
1602 2011-03-09 Michael Snyder <msnyder@vmware.com>
1604 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1606 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1608 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1610 2011-03-09 Tom Tromey <tromey@redhat.com>
1612 * thread.c (restore_selected_frame): Handle frame_level == -1.
1613 (make_cleanup_restore_current_thread): Use
1614 get_selected_frame_if_set.
1615 * frame.h (get_selected_frame_if_set): Declare.
1616 * frame.c (get_selected_frame_if_set): New function.
1618 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1620 * cli/cli-cmds.c (shell_escape): Use lbasename.
1621 * coffread.c (coff_start_symtab): Constify parameter.
1622 (complete_symtab): Constify `name' parameter.
1623 (coff_symtab_read): Constify `filestring' local.
1624 (coff_getfilename): Constify return and `result' local.
1626 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1627 * linux-fork.c (info_checkpoints_command): Use lbasename.
1628 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1629 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1630 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1631 * procfs.c (procfs_make_note_section): Use lbasename.
1632 * tui/tui-io.c (printable_part): Constity return and parameter.
1634 (print_filename): Constify parameters, and local `s'.
1635 (tui_rl_display_match_list): Constify local `temp'.
1637 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1640 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1641 Fix DWARF-3+ DW_AT_accessibility default assumption.
1642 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1643 cu->header.version >= 3.
1645 2011-03-09 Yao Qi <yao@codesourcery.com>
1647 * common/Makefile.in: Remove.
1648 * common/configure: Remove.
1649 * common/configure.ac: Remove.
1651 2011-03-09 Yao Qi <yao@codesourcery.com>
1654 2011-02-11 Yao Qi <yao@codesourcery.com>
1656 * common/Makefile.in: Add copyright header.
1658 2011-02-11 Yao Qi <yao@codesourcery.com>
1660 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1662 * configure.ac: Add common to sub dir.
1663 * configure: Regenerate.
1665 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1667 * xtensa-tdep.c (call0_ret): New function.
1668 (xtensa_skip_prologue): Speed up analysis.
1670 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1672 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1673 while executing MI command -data-list-changed-registers.
1675 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1677 * xtensa-tdep.c (xtensa_read_register): New function.
1678 (xtensa_write_register): New function.
1679 (xtensa_find_register_by_name): New function.
1680 (xtensa_windowed_frame_cache): Update comments in type description.
1681 (xtensa_frame_cache): Likewise.
1682 (xtensa_window_interrupt_insn): New function.
1683 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1684 (xtensa_insn_kind): Add new instructions.
1685 (rwx_special_register): New function.
1686 (call0_classify_opcode): Add new instructions to the analysis.
1687 (a0_saved, a7_saved, a11_saved): New variables.
1688 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1689 (execute_l32e): New function.
1690 (execute_s32e): New function.
1691 (xtensa_exception_handler_t): New type.
1692 (execute_code): New function.
1693 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1694 analysis for Xtensa Window Exception handlers.
1696 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1698 * xtensa-tdep.c (TX_PS): New.
1699 (windowing_enabled): Update to count for Call0 ABI.
1700 (xtensa_hextochar): New.
1701 (xtensa_init_reggroups): Make algorithm generic.
1702 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1704 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1706 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1708 2011-03-08 Michael Snyder <msnyder@vmware.com>
1710 * i386-tdep.c (i386_follow_jump): Check return value of
1712 (i386_analyze_struct_return): Ditto.
1713 (i386_skip_probe): Ditto.
1714 (i386_match_insn): Ditto.
1715 (i386_skip_noop): Ditto.
1716 (i386_analyze_frame_setup): Ditto.
1717 (i386_analyze_register_saves): Ditto.
1718 (i386_skip_prologue): Ditto.
1719 (i386_skip_main_prologue): Ditto.
1721 * target.c (read_whatever_is_readable): Fix memory leak.
1723 * i386-tdep.c (i386_process_record): Document fall through.
1725 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 Fix DWARF-3+ DW_AT_accessibility default assumption.
1728 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1729 cu->header.version >= 3.
1731 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1733 * remote.c (remote_check_symbols): Skip if the target has no
1736 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1738 * target.c (read_whatever_is_readable): Reformat comment,
1739 with a minor typo fix. Minor reformatting of the code.
1741 2011-03-08 Yao Qi <yao@codesourcery.com>
1743 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1744 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1745 Use cached result instead of calling displaced_in_arm_mode again.
1746 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1747 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1748 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1749 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1750 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1751 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1752 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1753 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1754 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1755 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1756 (arm_catch_kernel_helper_return): Likewise.
1757 * gdb/arm-tdep.h : Update function declarations.
1759 2011-03-07 Michael Snyder <msnyder@vmware.com>
1761 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1763 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1765 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1767 * elfread.c (elf_symtab_read): Stop memory leak.
1769 * main.c (captured_main): Fix memory leak.
1771 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1773 * ada-lang.c (compare_names): Call is_name_suffix with string1
1776 2011-03-07 Tom Tromey <tromey@redhat.com>
1778 * xcoffread.c (xcoff_sym_fns): Update.
1779 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1780 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1781 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1782 (symbol_file_add_with_addrs_or_offsets): Likewise.
1783 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1784 * somread.c (som_sym_fns): Update.
1785 * psymtab.h (require_partial_symbols): Declare.
1786 * psymtab.c (require_partial_symbols): New function.
1787 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1788 (ALL_OBJFILE_PSYMTABS): Undef.
1789 (ALL_PSYMTABS): Move from psympriv.h.
1790 (lookup_partial_symtab, find_pc_sect_psymtab)
1791 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1792 (find_last_source_symtab_from_partial)
1793 (forget_cached_source_info_partial)
1794 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1795 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1796 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1797 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1798 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1799 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1800 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1801 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1802 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1804 * mipsread.c (ecoff_sym_fns): Update.
1805 * machoread.c (macho_sym_fns): Update.
1806 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1807 (read_psyms): New function.
1808 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1809 (elf_sym_fns_lazy_psyms): New global.
1810 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1811 dwarf2_build_psymtabs.
1812 * dbxread.c (aout_sym_fns): Update.
1813 * coffread.c (coff_sym_fns): Update.
1815 2011-03-07 Tom Tromey <tromey@redhat.com>
1817 * infrun.c (print_exited_reason): Include inferior id and pid in
1820 2011-03-07 Tom Tromey <tromey@redhat.com>
1822 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1824 (target_has_execution_1): Update.
1825 (target_has_execution_current): Declare.
1826 (target_has_execution): Call target_has_execution_current.
1827 (default_child_has_execution): Update.
1828 * target.c (default_child_has_execution): Add 'the_ptid'
1830 (target_has_execution_1): Likewise.
1831 (target_has_execution_current): New function.
1832 (add_target): Update.
1833 (init_dummy_target): Update.
1834 * remote-m32r-sdi.c (m32r_has_execution): New function.
1835 (init_m32r_ops): Use it.
1836 * record.c (record_core_has_execution): Now static. Add
1837 'the_ptid' parameter.
1838 * inferior.c (have_live_inferiors): Don't save current thread.
1839 Use target_has_execution_1.
1841 2011-03-07 Yao Qi <yao@codesourcery.com>
1843 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1845 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1847 * elfread.c (elf_symtab_read): Minor reformatting.
1849 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1851 * objc-lang.c (selectors_info): Minor reformatting.
1853 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1855 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1857 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1858 Michael Snyder <msnyder@vmware.com>
1860 * ada-valprint.c (ada_val_print_array): Move the declaration of
1861 "byte_order" and "elttype" inside the block where these variables
1862 are actually used. Remove some special handling for the case
1863 where "elttype" and "eltlen" are null. Replace by a comment
1864 and a couple of assertion checks.
1866 2011-03-05 Michael Snyder <msnyder@vmware.com>
1868 * source.c (add_path): Replace semicolon at end of block.
1869 * dwarf2expr.c (execute_stack_op): Ditto.
1871 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1873 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1874 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1875 (bfin-*-*): Likewise.
1877 2011-03-05 Michael Snyder <msnyder@vmware.com>
1879 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1880 * mdebugread.c (parse_symbol): Ditto.
1881 * parse.c (parse_exp_in_context): Ditto.
1882 * source.c (add_path): Ditto.
1883 * utils.c (gnu_debuglink_crc32): Ditto.
1884 * varobj.c (variable_language): Ditto.
1886 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1888 2011-03-04 Michael Snyder <msnyder@vmware.com>
1890 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1892 * symfile.c (simple_overlay_update): Check for null return value
1893 from lookup_minimal_symbol.
1895 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1897 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1899 * eval.c (parse_and_eval_address_1): Remove function.
1900 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1901 instead of parse_and_eval_address_1.
1902 * value.h (parse_and_eval_address_1): Remove prototype.
1904 2011-03-04 Michael Snyder <msnyder@vmware.com>
1906 * remote.c (putpkt_binary): Document that case stmt falls through.
1908 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1910 * breakpointc (print_it_typical): Move NULL check from here...
1911 (print_bp_stop_message): ... to here.
1913 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1915 * breakpoint.c (enable_command): Use break instead of continue,
1916 and fill in a missing break.
1917 (disable_command): Ditto.
1919 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1921 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1922 (terminal_save_ours): Remove misleading comment.
1923 (inflow_inferior_data_cleanup): Free ttystate.
1924 (inflow_inferior_exit): Likewise.
1925 (copy_terminal_info): Copy ttystate.
1927 * serial.c (serial_copy_tty_state): New function.
1928 * serial.h (serial_copy_tty_state): Add prototype.
1929 (struct serial_ops): Add copy_tty_state callback.
1930 * ser-base.c (ser_base_copy_tty_state): New function.
1931 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1932 * ser-go32.c (dos_copy_tty_state): New function.
1933 (dos_ops): Install copy_tty_state callback.
1934 * ser-mingw.c (_initialize_ser_windows): Likewise.
1935 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1936 * ser-unix.c (hardwire_copy_tty_state): New function.
1937 (_initialize_ser_hardwire): Install it.
1939 2011-03-04 Michael Snyder <msnyder@vmware.com>
1941 * breakpoint.c (create_breakpoint): Add missing break statement.
1943 Reverting this patch:
1944 * infcall.c (call_function_by_hand): Add break statements for lint.
1946 Reverting this patch:
1947 * cli/cli-script.c (script_from_file): Add break for lint.
1949 2011-03-04 Michael Snyder <msnyder@vmware.com>
1951 * solib.c (reload_shared_libraries_1): Close memory leak.
1953 2011-03-03 Tom Tromey <tromey@redhat.com>
1956 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1959 2011-03-03 Michael Snyder <msnyder@vmware.com>
1961 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1962 fields of struct 'st' to zero.
1964 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1965 sal.pspace before calling set_current_source_symtab_and_line.
1967 2011-03-03 Yao Qi <yao@codesourcery.com>
1969 * Makefile.in (configure-common): Remove. Let Makefile
1970 in dir common to rebuild itself.
1971 (common/Makefile): Likewise.
1973 2011-03-03 Joel Brobecker <brobecker@adacore.com>
1975 * utils.c (parse_escape): Add i18n markup in error message.
1977 2011-03-03 Yao Qi <yao@codesourcery.com>
1979 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1981 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1982 (displaced_write_reg, displaced_read_reg): Likewise.
1983 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1984 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1985 (cleanup_branch): Replace magic number 14 and 15 with
1986 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1988 2011-03-02 Michael Snyder <msnyder@vmware.com>
1990 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1992 * cli/cli-script.c (script_from_file): Add break for lint.
1994 * mdebugread.c (parse_partial_symbols): Fix indent.
1996 * target-descriptions.c (tdesc_gdb_type): No need to call
1997 xstrdup, callee saves a copy.
1999 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2001 * infcall.c (call_function_by_hand): Add break statements for lint.
2003 * utils.c (parse_escape): Escape the escape char.
2005 * python/py-inferior.c (build_inferior_list): Error out if
2006 PyList_Append fails.
2007 (gdbpy_inferiors): Error out if build_inferior_list fails.
2009 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2012 * record.c (record_restore): Move printf to before error return.
2014 2011-03-02 Yao Qi <yao@codesourcery.com>
2016 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2017 is_thumb and insn_size.
2018 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2019 on both ARM and Thumb mode.
2020 (arm_process_displaced_insn): Set is_thumb and insn_size.
2021 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2022 (arm_displaced_step_fixup): Likewise.
2024 2011-03-01 Michael Snyder <msnyder@vmware.com>
2026 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2028 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2030 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2032 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2034 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2037 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2038 which shadows function parameter.
2040 * tracepoint.c (create_tsv_from_upload): Superfluous call
2041 to xstrdup. Callee already calls xstrdup.
2043 * linespec.c (decode_line_1): Remove unnecessary null check.
2045 * tracepoint.c (scope_info): Fix mem leak, remove underused
2048 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2049 superfluous null check.
2051 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2052 (value_of_builtin_frame_fp_reg): Ditto.
2054 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2056 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2059 * linespec.c (decode_line_1): Check for null before dereference.
2061 * reverse.c (record_restore): Move null-check to before pointer
2064 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2066 * objc-lang.c (selectors_info): Add explanitory comment.
2067 (classes_info): Ditto.
2069 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2071 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2072 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2073 versions of the trampoline. Handle Thumb vs. ARM addresses.
2074 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2075 (arm_linux_init_abi): Install it.
2076 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2077 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2079 2011-02-28 Michael Snyder <msnyder@vmware.com>
2081 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2082 a little bigger, to avoid possibility of an overflow.
2084 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2085 buffers a little bigger, to avoid possibility of an overflow.
2087 * coffread.c (coff_getfilename): Add check to avoid overflow.
2089 * objc-lang.c (selectors_info): Add a small safety margin to
2091 (classes_info): Error out on too long REGEXP.
2093 * infrun.c (handle_inferior_event): Remove unused function call.
2095 * fork-child.c (fork_inferior): Remove ifdef'd code and
2098 * linux-thread-db.c (attach_thread): Discard unused value.
2100 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2102 * remote.c (remote_get_noisy_reply): Discard unused value.
2103 (remote_vcont_resume): Ditto.
2104 (remote_stop_ns): Ditto.
2106 * linespec.c (decode_objc): Delete unused variable.
2108 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2110 * dwarf2read.c (add_partial_symbol): Discard unused values.
2111 (read_base_type): Delete unused variable.
2113 * dbxread.c (read_dbx_symtab): Discard unused value.
2115 * eval.c (evaluate_subexp_standard): Delete unused variable,
2116 and discard unused values.
2118 * infcmd.c (_initialize_infcmd): Discard unused values.
2120 * stabsread.c (rs6000_builtin_type): Missing break statement.
2122 * dbxread.c (process_one_symbol): Discard unused value.
2124 * coffread.c (coff_end_symtab): Delete unused variable.
2126 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2127 (dwarf2_add_typedef): Delete unused variable.
2128 (read_namespace): Ditto.
2129 (dwarf_decode_macros): Ditto.
2131 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2133 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2135 * p-valprint.c (pascal_val_print): Discard unused value.
2137 * utils.c (nquery): Call va_end before return;
2141 * proc-service.c (ps_plog): Call va_end before return.
2143 2011-02-28 Tom Tromey <tromey@redhat.com>
2145 * python/python.c (gdbpy_value_cst): New global.
2146 (_initialize_python): Initialize it.
2147 * python/python-internal.h (gdbpy_value_cst): Declare.
2148 * python/py-value.c (convert_value_from_python): Use
2151 2011-02-28 Michael Snyder <msnyder@vmware.com>
2153 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2155 * breakpoint.c (catch_syscall_completer): Free malloced list.
2157 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2159 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2160 (lval_func_check_synthetic_pointer): Ditto.
2161 (lval_func_free_closure): Fix use-after-free.
2163 2011-02-28 Tom Tromey <tromey@redhat.com>
2165 * psymtab.c (expand_partial_symbol_tables): Use
2166 ALL_OBJFILE_PSYMTABS.
2168 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2170 * objc-lang.c (selectors_info): Error on too long REGEXP.
2172 2011-02-28 Michael Snyder <msnyder@vmware.com>
2174 * python/py-param.c (set_parameter_value): Add missing
2177 * linux-record.c (record_linux_system_call): Add missing
2180 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2182 * breakpoint.c (print_one_breakpoint_location): Remove unused
2183 argument PRINT_ADDRESS_BITS. Update callers.
2184 (print_one_breakpoint): Likewise.
2186 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2188 * breakpoint.c (wrap_indent_at_field): New function.
2189 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2190 Allocate ui_stream locally instead of using STB argument.
2191 (print_one_breakpoint_location): Update call.
2192 * ui-out.c (ui_out_query_field): New function.
2193 * ui-out.h (ui_out_query_field): Add prototype.
2195 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2197 From Michael Snyder <msnyder@vmware.com>
2198 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2200 2011-02-27 Michael Snyder <msnyder@vmware.com>
2202 * objc-lang.c (selectors_info): Prevent string overrun.
2204 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2207 * symtab.c (rbreak_command): Move variable 'file_name' to
2210 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2211 param with a local variable of the same name.
2213 2011-02-27 Michael Snyder <msnyder@vmware.com>
2215 * value.c (value_from_history_ref): New function.
2216 * value.h (value_from_history_ref): Export.
2217 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2218 to parse value history references.
2219 * cli/cli-utils.h (get_number_trailer): Update comment.
2221 2011-02-27 Michael Snyder <msnyder@vmware.com>
2223 * inferior.c (detach_inferior_command): Use get_number_or_range.
2224 (kill_inferior_command): Ditto.
2225 (remove_inferior_command): Ditto.
2226 (initialize_inferiors): Make command names plural.
2227 Update help strings.
2229 2011-02-27 Michael Snyder <msnyder@vmware.com>
2231 * darwin-nat-info.c: Fix comment typo.
2232 * dwarf2expr.h: Ditto.
2233 * fbsd-nat.c: Ditto.
2234 * fbsd-nat.h: Ditto.
2235 * frame-unwind.h: Ditto.
2237 * hppa-hpux-tdep.c: Ditto.
2238 * i386-linux-nat.c: Ditto.
2239 * linux-nat.c: Ditto.
2240 * nbsd-nat.c: Ditto.
2241 * nbsd-nat.h: Ditto.
2242 * ppc-linux-tdep.c: Ditto.
2245 * tui/tui-winsource.c: Ditto.
2247 2011-02-26 Michael Snyder <msnyder@vmware.com>
2249 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2251 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2253 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2254 with a local variable of the same name.
2256 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2257 param with a local variable of the same name.
2258 (i387_supply_xsave): Ditto.
2260 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2261 that it does not shadow a function parameter.
2263 * i386-nat.c (i386_length_and_rw_bits): Document that case
2264 statement is meant to fall through.
2266 * expprint.c (dump_subexp_body_standard): Document that case
2267 statement is meant to fall through.
2269 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2270 dead if statement. Condition can't be false.
2272 2011-02-25 Michael Snyder <msnyder@vmware.com>
2274 * arm-tdep.c: Fix typos in comments.
2275 * bsd-uthread.c: Ditto.
2276 * completer.c: Ditto.
2278 * cp-namespace.c: Ditto.
2279 * cp-support.c: Ditto.
2280 * cris-tdep.c: Ditto.
2282 * dwarf2read.c: Ditto.
2284 * gdbtypes.h: Ditto.
2285 * inferior.h: Ditto.
2286 * mdebugread.c: Ditto.
2287 * mips-tdep.c: Ditto.
2288 * ppc-linux-nat.c: Ditto.
2289 * ppc-linux-tdep.c: Ditto.
2290 * printcmd.c: Ditto.
2291 * sol-thread.c: Ditto.
2292 * solib-frv.c: Ditto.
2294 * sparc64-tdep.c: Ditto.
2295 * spu-tdep.c: Ditto.
2296 * stabsread.c: Ditto.
2301 * python/py-block.c: Ditto.
2302 * python/py-symbol.c: Ditto.
2303 * python/py-symtab.c: Ditto.
2304 * python/py-value.c: Ditto.
2305 * tui/tui-win.c: Ditto.
2307 2011-02-25 Michael Snyder <msnyder@vmware.com>
2309 * inferior.c (print_inferior): Accept a string instead of an int
2310 for requested_inferiors, and use get_number_or_range to parse it.
2311 (info_inferiors_command): Pass args string to print_inferior.
2312 (initialize_inferiors): Change help string for info inferiors.
2313 * inferior.h (print_inferior): Export prototype change.
2315 2011-02-25 Tom Tromey <tromey@redhat.com>
2317 * common/ax.def (invalid2): Set to 0x31.
2319 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2321 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2323 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2325 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2327 2011-02-24 Michael Snyder <msnyder@vmware.com>
2329 * Makefile.in (clean): Make clean should remove generated files
2330 observer.h and observer.inc.
2332 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2334 Revert the following patch (not approved yet):
2335 2011-02-21 Hui Zhu <teawater@gmail.com>
2336 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2337 * ax-gdb.c (gen_printf_expr_callback): New function.
2338 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2339 * ax-general.c (ax_memcpy): New function.
2340 (ax_print): Handle "printf".
2342 * ax.h (ax_memcpy): Forward declare.
2343 * common/ax.def (invalid2): Removed.
2344 (printf): New entry.
2345 * printcmd.c (printcmd.h): New include.
2346 (string_printf): New function.
2347 (ui_printf): Removed.
2348 (printf_command): Remove static. Call string_printf.
2349 (eval_command): Call string_printf.
2350 * printcmd.h: New file.
2351 * tracepoint.c (validate_actionline,
2352 encode_actions_1): handle printf_command.
2354 2011-02-23 Tom Tromey <tromey@redhat.com>
2356 * ax-general.c (ax_pick): Add missing newline.
2358 2011-02-23 Michael Snyder <msnyder@vmware.com>
2360 * breakpoint.c (breakpoint_1): Change first argument from an int
2361 to a char pointer, so that the function now accepts a list of
2362 breakpoints rather than just one. Use new function
2363 'number_is_in_list' to implement.
2364 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2365 (watchpoints_info): Ditto.
2366 (tracepoints_info): Ditto.
2367 (maintenance_info_breakpoints): Ditto.
2368 (_initialize_breakpoint): Update help strings to reflect the fact
2369 that these functions can now take more than one argument.
2370 * cli/cli-utils.c (number_is_in_list): New function.
2371 * cli/cli-utils.h (number_is_in_list): Export.
2373 2011-02-23 Michael Snyder <msnyder@vmware.com>
2375 * memattr.c (mem_enable_command): Use get_number_or_range.
2376 (mem_disable_command): Ditto.
2377 (mem_delete_command): Ditto.
2378 (_initialize_mem): Tweak usage message to reflect multiple
2381 2011-02-22 Doug Evans <dje@google.com>
2383 Add gdb.lookup_global_symbol python function.
2385 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2386 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2387 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2389 2011-02-22 Tom Tromey <tromey@redhat.com>
2391 * language.c (language_class_name_from_physname): Rename
2392 'curr_language' argument to 'lang'; use in body.
2394 2011-02-22 Michael Snyder <msnyder@vmware.com>
2396 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2398 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2400 * frame-unwind.h: Fix comment to mention the this frame, not the
2403 2011-02-22 Tom Tromey <tromey@redhat.com>
2405 * symfile.c (auto_solib_limit): Remove.
2406 * symfile.h (auto_solib_limit): Remove.
2408 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2410 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2412 2011-02-21 Michael Snyder <msnyder@vmware.com>
2414 * gdbthread.h (print_thread_info): Change prototype.
2415 * thread.c (print_thread_info): Accept char* instead of int for
2416 requested_threads argument. Use new function number_is_in_list
2417 to determine which threads to list.
2418 (info_threads_command): Pass char* to print_thread_info.
2419 * cli/cli-utils.c (number_is_in_list): New function.
2420 * cli/cli-utils.h (number_is_in_list): Export.
2421 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2423 (print_one_inferior): Ditto.
2424 (mi_cmd_list_thread_groups): Ditto.
2426 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2428 * common/Makefile.in (CFLAGS): New.
2429 (COMPILE): Add $(CFLAGS).
2431 2011-02-21 Tom Tromey <tromey@redhat.com>
2433 * breakpoint.c (catch_syscall_command_1): Fix typo.
2435 2011-02-21 Tom Tromey <tromey@redhat.com>
2437 * reverse.c: Include cli-utils.h.
2438 * printcmd.c: Include cli-utils.h.
2439 (string_printf): Use skip_spaces.
2440 * cli/cli-utils.h: New file.
2441 * cli/cli-utils.c: New file.
2442 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2443 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2444 * breakpoint.h (get_number, get_number_or_range): Move to
2446 * breakpoint.c: Include cli-utils.h.
2447 (get_number_trailer, get_number, get_number_or_range)
2448 (ep_skip_leading_whitespace): Move to cli-utils.c.
2449 (create_breakpoint_sal, find_condition_and_thread)
2450 (decode_static_tracepoint_spec, watch_command_1)
2451 (watch_maybe_just_location, ep_parse_optional_if_clause)
2452 (catch_fork_command_1, catch_exec_command_1)
2453 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2454 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2455 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2456 (HFILES_NO_SRCDIR): Add cli-utils.h.
2457 (cli-utils.o): New target.
2459 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2461 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2462 before calling discard_all_inferiors.
2464 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2466 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2467 (struct builtin_opencl_type): Remove.
2468 (builtin_opencl_type): Change return type to "struct type **".
2469 (lookup_opencl_vector_type): Update caller.
2470 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2471 (build_opencl_types): Install plain array of "struct type *"
2472 instead of "struct builtin_opencl_type".
2474 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2475 Ulrich Weigand <uweigand@de.ibm.com>
2477 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2478 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2479 (struct arm_linux_hwbp_cap): New type.
2480 (arm_linux_get_hwbp_cap): New function.
2481 (arm_linux_get_hw_breakpoint_count): Likewise.
2482 (arm_linux_get_hw_watchpoint_count): Likewise.
2483 (arm_linux_can_use_hw_breakpoint): Likewise.
2484 (arm_hwbp_type): New type.
2485 (arm_hwbp_control_t): Likewise.
2486 (struct arm_linux_hw_breakpoint): Likewise.
2487 (struct arm_linux_thread_points): Likewise.
2488 (arm_threads): New global variable.
2489 (arm_linux_find_breakpoints_by_tid): New function.
2490 (arm_hwbp_control_initialize): Likewise.
2491 (arm_hwbp_control_is_enabled): Likewise.
2492 (arm_hwbp_control_disable): Likewise.
2493 (arm_linux_hw_breakpoint_initialize): Likewise.
2494 (arm_linux_get_hwbp_type): Likewise.
2495 (arm_linux_hw_watchpoint_initialize): Likewise.
2496 (arm_linux_hw_breakpoint_equal): Likewise.
2497 (arm_linux_insert_hw_breakpoint1): Likewise.
2498 (arm_linux_remove_hw_breakpoint1): Likewise.
2499 (arm_linux_insert_hw_breakpoint): Likewise.
2500 (arm_linux_remove_hw_breakpoint): Likewise.
2501 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2502 (arm_linux_insert_watchpoint): Likewise.
2503 (arm_linux_remove_watchpoint): Likewise.
2504 (arm_linux_stopped_data_address): Likewise.
2505 (arm_linux_stopped_by_watchpoint): Likewise.
2506 (arm_linux_watchpoint_addr_within_range): Likewise.
2507 (arm_linux_new_thread): Likewise.
2508 (arm_linux_thread_exit): Likewise.
2509 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2510 related target callbacks. Register arm_linux_new_thread and
2511 arm_linux_thread_exit.
2512 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2513 * arm-tdep.c (arm_pc_is_thumb): Make global.
2514 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2516 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2518 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2519 per-frame locations while within a function epilogue.
2521 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2523 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2524 to GNU coding standards.
2526 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2528 Allow use of mingw native on Windows 95 OS.
2529 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2530 (ser_windows_close): Only call CancelIo if function exists.
2531 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2532 to check for existence of CancelIo function in kernel32 DLL.
2534 2011-02-21 Hui Zhu <teawater@gmail.com>
2536 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2537 * ax-gdb.c (gen_printf_expr_callback): New function.
2538 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2539 * ax-general.c (ax_memcpy): New function.
2540 (ax_print): Handle "printf".
2542 * ax.h (ax_memcpy): Forward declare.
2543 * common/ax.def (invalid2): Removed.
2544 (printf): New entry.
2545 * printcmd.c (printcmd.h): New include.
2546 (string_printf): New function.
2547 (ui_printf): Removed.
2548 (printf_command): Remove static. Call string_printf.
2549 (eval_command): Call string_printf.
2550 * printcmd.h: New file.
2551 * tracepoint.c (validate_actionline,
2552 encode_actions_1): handle printf_command.
2554 2011-02-19 Michael Snyder <msnyder@vmware.com>
2556 * reverse.c (delete_one_bookmark): Argument is now bookmark
2557 id rather than pointer to bookmark struct.
2558 (delete_bookmark_command): Use get_number_or_range.
2559 (goto_bookmark_command): Parse with get_number instead of strtoul.
2560 (bookmark_1): New function. Print info for one bookmark.
2561 (bookmarks_info): Use get_number_or_range and bookmark_1.
2563 2011-02-18 Michael Snyder <msnyder@vmware.com>
2565 * thread.c (info_threads_command): Re-implement using
2566 get_number_or_range.
2567 (thread_apply_command): Ditto.
2569 2011-02-18 Tom Tromey <tromey@redhat.com>
2571 * common/ax.def: New file.
2572 * ax.h (enum agent_op): Use ax.def.
2573 * ax-general.c (aop_map): Use ax.def.
2575 2011-02-18 Tom Tromey <tromey@redhat.com>
2577 * ax-general.c (aop_map): Add pick and rot.
2578 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2579 <DW_OP_rot>: Implement.
2580 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2582 * ax-general.c (ax_pick): New function.
2584 2011-02-18 Tom Tromey <tromey@redhat.com>
2586 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2588 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2589 Tom Tromey <tromey@redhat.com>
2591 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2592 make_symbol_overload_list_block with NULL BLOCK.
2593 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2595 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2597 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2598 * breakpoint.h (get_number_or_range): Declare.
2599 * printcmd.c (ALL_DISPLAYS): Declare.
2600 (delete_display): Reimplement taking a display pointer.
2601 (undisplay_command): Accept a range of displays to delete, using
2602 get_number_or_range.
2604 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2606 * c-valprint.c (c_val_print): Add embedded_offset to address
2607 for arrays of unspecified length.
2608 * p-valprint.c (pascal_val_print): Likewise.
2610 2011-02-18 Yao Qi <yao@codesourcery.com>
2612 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2613 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2614 (thumb_process_displaced_insn): New.
2615 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2616 call to arm_process_displaced_insn.
2617 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2619 2011-02-17 Tom Tromey <tromey@redhat.com>
2621 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2622 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2623 compile_dwarf_to_ax. No longer static. Call
2624 dwarf2_compile_cfa_to_ax.
2625 (locexpr_tracepoint_var_ref): Update.
2626 (loclist_tracepoint_var_ref): Update.
2627 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2628 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2629 argument; add 'gdbarch' and 'pc'.
2630 (dwarf2_compile_cfa_to_ax): New function.
2631 (dwarf2_frame_cache): Update.
2633 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2635 * ada-lang.c (ada_type_of_array): Fix the size of the array
2636 in the case of an unconstrained packed array.
2638 2011-02-17 Yao Qi <yao@codesourcery.com>
2640 * common/Makefile.in: Add more targets for make.
2642 2011-02-16 Tom Tromey <tromey@redhat.com>
2644 * dwarf2loc.c (unimplemented): Fix typo.
2646 2011-02-16 Tom Tromey <tromey@redhat.com>
2648 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2649 (compile_dwarf_to_ax) <default>: Use unimplemented.
2650 <DW_OP_deref>: Update.
2651 (disassemble_dwarf_expression): Update.
2652 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2653 (decode_locdesc): Update.
2654 * dwarf2expr.h (dwarf_stack_op_name): Update.
2656 2011-02-16 Tom Tromey <tromey@redhat.com>
2658 * ax.h (struct aop_map) <name>: Now const.
2660 2011-02-16 Tom Tromey <tromey@redhat.com>
2662 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2665 2011-02-16 Yao Qi <yao@codesourcery.com>
2667 * infrun.c (get_displaced_step_closure_by_addr): New.
2668 * inferior.h: Declare it.
2669 * arm-tdep.c: (arm_pc_is_thumb): Call
2670 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2673 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2674 Jan Kratochvil <jan.kratochvil@redhat.com>
2677 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2679 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2680 Jan Kratochvil <jan.kratochvil@redhat.com>
2682 * value.c (value_contents_copy_raw): Extend describing comment.
2683 Assert that the destination contents we're overwriting are wholly
2685 (value_contents_copy): Extend describing comment.
2687 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2688 Jan Kratochvil <jan.kratochvil@redhat.com>
2690 * value.c (value_available_contents_eq): Remove redundant local
2691 variables. Fix available contents comparision.
2692 * value.h (value_available_contents_eq): Extend describing
2695 2011-02-16 Yao Qi <yao@codesourcery.com>
2697 * thread.c (info_threads_command): Add missing i18n markup and remove
2700 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2702 * breakpoint.c (longjmp_names): New variable.
2703 (struct breakpoint_objfile_data): New type.
2704 (breakpoint_objfile_key): New variable.
2705 (msym_not_found): New variable.
2706 (msym_not_found_p): New predicate.
2707 (get_breakpoint_objfile_data): New function.
2708 (create_overlay_event_breakpoint): Check per-objfile cache for
2710 (create_longjmp_master_breakpoint): Likewise.
2711 (create_std_terminate_master_breakpoint): Likewise.
2712 (create_exception_master_breakpoint): Likewise.
2713 (_initialize_breakpoint): Register per-objfile data key.
2715 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2717 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2719 (create_longjmp_master_breakpoint): Loop over longjmp names.
2720 (create_std_terminate_master_breakpoint): Const-propagate parameter
2722 (update_breakpoints_after_exec): Adjust.
2723 (breakpoint_re_set): Adjust.
2725 2011-02-15 Michael Snyder <msnyder@vmware.com>
2727 * thread.c (info_threads_command): Process arg as thread id,
2728 or list of thread ids.
2729 (thread_find_command): New command.
2730 (_initialize_thread): Document argument for info threads.
2731 Document 'thread find' command.
2732 * NEWS: Document new command "thread find".
2734 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2736 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2737 * aclocal.m4: Regenerated with aclocal-1.11.1.
2738 * common/configure: Regenerate with autoconf-2.64.
2740 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2742 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2743 bool data type to a size of one byte.
2745 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2746 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 * target.c (memory_xfer_live_readonly_partial): Document where to
2749 look for interface description.
2751 2011-02-15 Yao Qi <yao@codesourcery.com>
2754 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2755 order to store PC value on stack instead of text section.
2757 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2759 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2760 the EFP register set size.
2761 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2762 data from the VMX register.
2763 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2764 and write data from/to the VMX register.
2766 2011-02-14 Michael Snyder <msnyder@vmware.com>
2768 * command.h (enum command_class): New class 'no_set_class', for
2769 "show" commands without a corresponding "set" command.
2770 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2771 * copying.c (_initialize_copying): Ditto for "show copying" and
2773 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2775 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2776 which there is no corresponding "set" command (eg. "show copying").
2778 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2779 Jan Kratochvil <jan.kratochvil@redhat.com>
2781 * exec.c (section_table_available_memory): Change `len' parameter
2783 * exec.h (section_table_available_memory): Ditto.
2784 * value.h (read_value_memory): Rename the `offset' parameter to
2787 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2788 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 * memrange.c (compare_mem_ranges): Mention sort order in
2792 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2793 * tracepoint.c (traceframe_available_memory): Extend comment to
2794 mention what happens to RESULT when the target does not support
2797 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2798 Jan Kratochvil <jan.kratochvil@redhat.com>
2800 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2803 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2805 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2806 No longer handle NULL values.
2808 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2810 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2811 * value.c: Include "exceptions.h".
2812 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2814 * cp-abi.c: Include gdb_assert.h.
2815 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2816 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2818 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2819 parameters. No longer returns -1 on error.
2820 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2822 * cp-valprint.c: Include exceptions.h.
2823 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2824 the baseclass_offset. Handle unavailable base classes. Use
2825 val_print_invalid_address.
2826 * p-valprint.c: Include exceptions.h.
2827 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2828 when fetching the baseclass_offset. No longer expect
2829 baseclass_offset returning -1. Handle unavailable base classes.
2830 Use val_print_invalid_address.
2831 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2832 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2833 `embedded_offset' and `val' parameters. Adjust.
2834 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2835 parameter, and change its type to gdb_byte pointer. Add
2836 `embedded_offset' and `val' parameters. Adjust. No longer expect
2837 baseclass_offset returning -1.
2838 (value_dynamic_cast): Use value_contents_for_printing rather than
2839 value_contents. Adjust.
2840 (search_struct_field): No longer expect baseclass_offset returning
2842 (search_struct_method): If reading memory from the target is
2843 necessary, wrap it in a new value to pass to baseclass_offset. No
2844 longer expect baseclass_offset returning -1.
2845 (find_method_list): No longer expect baseclass_offset returning
2846 -1. Use value_contents_for_printing rather than value_contents.
2847 * valprint.c (val_print_invalid_address): New function.
2848 * valprint.h (val_print_invalid_address): Declare.
2849 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2850 and `val' parameters. No longer expect baseclass_offset returning
2852 * gnu-v2-abi.c: Include "exceptions.h".
2853 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2854 parameters. Handle unavailable memory. Recurse through
2855 gnuv2_baseclass_offset directly, rather than through
2856 baseclass_offset. No longer returns -1 on not found, instead
2858 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2859 `val' parameters. Adjust.
2861 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2863 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2864 almost but not quite adjacent.
2866 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2868 * value.h (value_entirely_available): Declare.
2869 * value.c (value_entirely_available): New function.
2870 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2871 real type if the pointer is unavailable.
2873 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2875 * valops.c (value_repeat): Use read_value_memory instead of
2878 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2880 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2881 * value.c (value_contents_copy_raw, value_contents_copy): New
2883 (value_primitive_field): Use value_contents_copy_raw instead of
2885 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2887 (value_array, value_slice): Ditto.
2888 * valarith.c (value_subscripted_rvalue): Use
2889 value_contents_copy_raw instead of memcpy.
2891 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2893 <unavailable> references.
2895 * valops.c (get_value_at): Use value_from_contents_and_address,
2896 avoiding read_memory.
2898 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2900 * c-valprint.c (c_val_print): Print a string with unavailable
2901 contents as an array.
2903 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2905 * value.h (unpack_bits_as_long): Delete declaration.
2906 (unpack_value_bits_as_long): Declare.
2907 (unpack_value_field_as_long): Declare.
2908 (value_field_bitfield): Declare.
2909 * value.c (unpack_bits_as_long): Rename to...
2910 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2911 value parameters. Return the extracted result in a new output
2912 parameter. If the value contents are unavailable, return false,
2913 otherwise return true.
2914 (unpack_value_bits_as_long): New.
2915 (unpack_field_as_long): Rename to...
2916 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2917 Add embedded_offset and value parameters. Return the extracted
2918 result in a new output parameter. If the value contents are
2919 unavailable, return false, otherwise return true.
2920 (unpack_value_field_as_long): New.
2921 (unpack_field_as_long_1): New.
2922 (unpack_field_as_long): Reimplement as wrapper around
2923 unpack_value_field_as_long_1.
2924 (value_field_bitfield): New function.
2925 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2926 unpack_value_bits_as_long. Mark the value as unavailable, if it
2928 * jv-valprint.c (java_print_value_fields): Use
2929 value_field_bitfield.
2930 * p-valprint.c (pascal_object_print_value_fields): Use
2931 value_field_bitfield.
2932 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2934 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2936 * value.c (get_internalvar_integer): Also return the int value of
2937 TYPE_CODE_INT INTERNALVAR_VALUE values.
2938 (set_internalvar): Don't special case TYPE_CODE_INT.
2940 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2942 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2943 INTERNALVAR_POINTER.
2945 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2946 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2947 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2949 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2951 * value.h (value_available_contents_eq): Declare.
2952 * value.c (find_first_range_overlap): New function.
2953 (value_available_contents_eq): New function.
2954 * valprint.c (val_print_array_elements): Use
2955 value_available_contents_eq.
2956 * ada-valprint.c (val_print_packed_array_elements): Use
2957 value_available_contents_eq.
2958 * jv-valprint.c (java_value_print): Use
2959 value_available_contents_eq.
2961 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2963 * target.c (target_read_live_memory): New function.
2964 (memory_xfer_live_readonly_partial): New.
2965 (memory_xfer_partial): If reading from a traceframe, fallback to
2966 reading unavailable read-only memory from read-only regions of
2968 * tracepoint.c (disconnect_tracing): Adjust.
2969 (set_current_traceframe): New, factored out from
2970 set_traceframe_number.
2971 (set_traceframe_number): Reimplement to only change the traceframe
2972 number on the GDB side.
2973 (do_restore_current_traceframe_cleanup): Adjust.
2974 (make_cleanup_restore_traceframe_number): New.
2975 (cur_traceframe_number): New global.
2976 (tfile_open): Set cur_traceframe_number to no traceframe.
2977 (set_tfile_traceframe): New function.
2978 (tfile_trace_find): If looking up a traceframe using any method
2979 other than by number, make sure the current tfile traceframe
2980 matches gdb's current traceframe. Update the current tfile
2981 traceframe if the lookup succeeded.
2982 (tfile_fetch_registers, tfile_xfer_partial)
2983 (tfile_get_trace_state_variable_value): Make sure the remote
2984 traceframe matches gdb's current traceframe.
2985 * remote.c (remote_traceframe_number): New global.
2986 (remote_open_1): Set it to -1.
2987 (set_remote_traceframe): New function.
2988 (remote_fetch_registers, remote_store_registers)
2989 (remote_xfer_memory, remote_xfer_partial)
2990 (remote_get_trace_state_variable_value): Make sure the remote
2991 traceframe matches gdb's current traceframe.
2992 (remote_trace_find): If looking up a traceframe using any method
2993 other than by number, make sure the current remote traceframe
2994 matches gdb's current traceframe. Update the current remote
2995 traceframe if the lookup succeeded.
2996 * infrun.c (fetch_inferior_event): Adjust.
2997 * tracepoint.h (set_current_traceframe): Declare.
2998 (get_traceframe_number, set_traceframe_number): Add describing
3001 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3003 Mark pieces of values as unavailable if the corresponding memory
3006 * valops.c: Include tracepoint.h.
3007 (value_fetch_lazy): Use read_value_memory.
3008 (read_value_memory): New.
3009 * value.h (read_value_memory): Declare.
3010 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3011 * exec.c (section_table_available_memory): New function.
3012 * exec.h (section_table_available_memory): Declare.
3014 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3016 * Makefile.in (SFILES): Add memrange.c.
3017 (HFILES_NO_SRCDIR): Add memrange.h.
3018 (COMMON_OBS): Add memrange.o.
3019 * memrange.c: New file.
3020 * memrange.h: New file.
3021 * tracepoint.c: Include memrange.h.
3022 (struct mem_range): Delete.
3023 (mem_range_s): Delete.
3024 (traceframe_available_memory): New function.
3025 * tracepoint.h (traceframe_available_memory): Declare.
3027 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3029 * target.h (struct traceframe_info): Forward declare.
3030 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3031 (struct target_ops) <to_traceframe_info>: New field.
3032 (target_traceframe_info): New.
3033 * target.c (update_current_target): Inherit and default
3035 * remote.c (PACKET_qXfer_traceframe_info): New.
3036 (remote_protocol_features): Register qXfer:traceframe-info:read.
3037 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3038 (remote_traceframe_info): New.
3039 (init_remote_ops): Install it.
3040 (_initialize_remote): Install "set/show remote traceframe-info"
3042 * tracepoint.h (parse_traceframe_info): Declare.
3043 * tracepoint.c (struct mem_range): New.
3044 (mem_range_s): New typedef.
3045 (struct traceframe_info): New.
3046 (traceframe_info): New global.
3047 (free_traceframe_info): New function.
3048 (clear_traceframe_info): New function.
3049 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3051 (build_traceframe_info): New function.
3052 (tfile_traceframe_info): New function.
3053 (init_tfile_ops): Install tfile_traceframe_info.
3054 (traceframe_info_start_memory, free_result): New functions.
3055 (memory_attributes, traceframe_info_elements): New globals.
3056 (parse_traceframe_info, get_traceframe_info): New functions.
3057 * features/traceframe-info.dtd: New file.
3058 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3060 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3062 Base support for <unavailable> value contents.
3064 * value.h (value_bytes_available): Declare.
3065 (mark_value_bytes_unavailable): Declare.
3066 * value.c (struct range): New struct.
3067 (range_s): New typedef.
3068 (ranges_overlap): New function.
3069 (range_lessthan): New function.
3070 (ranges_contain_p): New function.
3071 (struct value) <unavailable>: New field.
3072 (value_bytes_available): New function.
3073 (mark_value_bytes_unavailable): New function.
3074 (require_not_optimized_out): Constify parameter.
3075 (require_available): New function.
3076 (value_contents_all, value_contents): Require all bytes be
3078 (value_free): Free `unavailable'.
3079 (value_copy): Copy `unavailable'.
3080 * valprint.h (val_print_unavailable): Declare.
3081 * valprint.c (valprint_check_validity): Rename `offset' parameter
3082 to `embedded_offset'. If printing a scalar, check whether the
3083 value chunk is available.
3084 (val_print_unavailable): New.
3085 (val_print_scalar_formatted): Check whether the value is
3087 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3088 pretty-printing unavailable values.
3090 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3092 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3093 * c-typeprint.c (c_type_print_args): Update the function comment. New
3094 variable param_type, initialize it. Remove const/volatile qualifiers
3095 for language_cplus and !show_artificial. Use param_type.
3097 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3099 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3100 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3101 * symtab.h (struct symtab) <next>: Comment extension.
3103 2011-02-12 Yao Qi <yao@codesourcery.com>
3105 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3107 2011-02-11 Yao Qi <yao@codesourcery.com>
3109 * common/Makefile.in: Add copyright header.
3111 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3113 * infrun.c (proceed): Move switching out and in of tfind mode from
3115 (fetch_inferior_event): ... to here.
3117 2011-02-11 Yao Qi <yao@codesourcery.com>
3119 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3121 * configure.ac: Add common to sub dir.
3122 * configure: Regenerate.
3124 2011-02-11 Yao Qi <yao@codesourcery.com>
3128 * common/Makefile.in: New.
3129 * common/configure.ac: New.
3130 * common/aclocal.m4: New.
3131 * common/configure: Generate.
3133 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3135 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3136 side of the parenthesis.
3139 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3140 * vec.h (VEC_block_remove): Fix comment.
3142 2011-02-08 Michael Snyder <msnyder@vmware.com>
3144 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3146 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3148 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3149 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3152 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3155 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3157 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3158 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3160 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3162 * dwarf2read.c (read_subroutine_type): Set special calling
3163 convention flag for functions compiled by IBM XL C for OpenCL.
3164 * ppc-sysv-tdep.c: Include "dwarf2.h"
3165 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3167 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3168 IBM OpenCL vector types calling convention.
3169 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3170 (ppc_sysv_abi_broken_return_value): Likewise.
3171 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3172 types calling convention.
3173 (ppc64_sysv_abi_return_value): Likewise.
3174 * spu-tdep.c: Include "dwarf2.h"
3175 (spu_return_value): Implement IBM OpenCL vector types calling
3178 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3180 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3181 correct ABI for AltiVec vector arguments.
3183 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3185 * valprint.c (val_print): Extend comment.
3186 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3187 interface explanation to val_print.
3188 (ada_val_print_array): Adjust comment to current interface.
3189 (print_field_values): Adjust comment to current interface.
3190 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3191 explanation to val_print.
3192 * f-valprint.c (f_val_print): Ditto.
3193 * jv-valprint.c (java_val_print): Ditto.
3194 * m2-valprint.c (m2_val_print): Ditto.
3195 * p-valprint.c (pascal_val_print): Ditto.
3197 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3199 * breakpoint.c (parse_breakpoint_sals): Fix description.
3201 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3202 Oguz Kayral <oguzkayral@gmail.com>
3204 * python/py-inferior.c (python_on_normal_stop): New function.
3205 (python_on_resume): New function.
3206 (python_inferior_exit): New function.
3207 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3208 inferior_exit observers.
3209 * python/py-evtregistry.c: New file.
3210 * python/py-threadevent.c : New file.
3211 * python/py-event.c: New file.
3212 * python/py-evts.c: New file.
3213 * python/py-continueevent.c: New file.
3214 * python/py-bpevent.c: New file.
3215 * python/py-signalevent.c: New file.
3216 * python/py-exetiedevent.c: New file.
3217 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3218 Move struct breakpoint_object from here...
3219 * python/python-internal.h: ... to here.
3220 * python/py-event.h: New file.
3221 * python/py-events.h: New file.
3222 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3223 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3224 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3225 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3226 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3227 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3228 Add build rules for all the above.
3230 2011-02-04 Tom Tromey <tromey@redhat.com>
3232 * dwarf2read.c (dwarf2_section_empty_p): New function.
3233 (dwarf2_read_section): Use dwarf2_section_empty_p.
3234 (dwarf2_section_size): New function.
3235 (dwarf2_get_section_info): Unconditionally read section.
3236 (dwarf2_read_index): Use dwarf2_section_empty_p.
3237 (partial_read_comp_unit_head): Use dwarf2_section_size.
3238 (dwarf2_symbol_mark_computed): Likewise.
3240 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3242 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3244 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3246 * mips-linux-tdep.c: Include xml-syscall.h.
3247 (mips_linux_get_syscall_number): New function.
3248 (mips_linux_init_abi): Add calls to
3249 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3250 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3251 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3252 * syscalls/mips-n32-linux.xml: New file.
3253 * syscalls/mips-n64-linux.xml: New file.
3254 * syscalls/mips-o32-linux.xml: New file.
3256 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3258 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3259 Complain about inverted range entries.
3260 (dwarf2_record_block_ranges): Likewise.
3262 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3265 * breakpoint.c (update_watchpoint): Fix name of the
3266 update_global_location_list function.
3267 (print_one_breakpoint): Fix typo.
3268 (_initialize_breakpoint): Remove extra space in hbreak help
3270 * breakpoint.h (struct bp_location) <length>: Fix field
3273 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3275 * regcache.c (registers_changed_ptid): Don't explictly always
3276 clear `current_regcache'. Only clear current_thread_ptid and
3277 current_thread_arch when PTID matches. Only reinit the frame
3278 cache if PTID matches the current inferior_ptid. Move alloca(0)
3280 (registers_changed): ... here.
3282 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3284 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3285 starts with __stack_chk_guard as stack guard symbol.
3287 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3289 * disasm.c (compare_lines): Handle the end of sequence markers
3290 within the line table to better support disassembling over
3291 compilation unit boundaries.
3293 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3295 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3296 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3297 implementation even if no symbols are available.
3298 (thumb_analyze_prologue): Update call to skip_prologue_function.
3299 (arm_analyze_prologue): Likewise.
3301 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3303 * arm-tdep.c: Include "observer.h".
3304 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3305 (arm_exidx_data_key): New static variable.
3306 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3307 (struct arm_exidx_data): Likewise.
3308 (arm_exidx_data_free): New function.
3309 (arm_compare_exidx_entries): Likewise.
3310 (arm_obj_section_from_vma): Likewise.
3311 (arm_exidx_new_objfile): Likewise.
3312 (arm_find_exidx_entry): Likewise.
3313 (arm_exidx_fill_cache): Likewise.
3314 (arm_exidx_unwind_sniffer): Likewise.
3315 (arm_exidx_unwind): New global variable.
3316 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3317 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3318 observer. Register arm_exidx_data_key as objfile data.
3320 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3322 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3323 due to accessing uninitialized variable. Fix indentation.
3325 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3327 * c-valprint.c (c_value_print): When doing virtual base pointer
3328 adjustment, create a new value with adjusted contents rather than
3329 changing the contents of the value being printed (and getting it
3332 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3334 * xml-support.c (xml_find_attribute): New.
3335 (xinclude_start_include): Use it.
3336 * xml-support.h (xml_find_attribute): Declare.
3337 * memory-map.c (memory_map_start_memory)
3338 (memory_map_start_property): Use xml_find_attribute.
3339 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3341 * remote.c (start_thread): Use xml_find_attribute.
3342 * solib-target.c (library_list_start_segment)
3343 (library_list_start_section, library_list_start_library)
3344 (library_list_start_list): Use xml_find_attribute.
3345 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3346 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3347 (tdesc_start_field): Use xml_find_attribute.
3349 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3351 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3352 (BUILD_OCL_VTYPES): Update.
3354 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3356 * configure.ac: Work around non-GNU sed limitation when computing
3357 python version number.
3358 * configure: Regenerate.
3360 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 Fix debug printing of TYPE_INSTANCE.
3363 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3364 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3366 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3368 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3369 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3370 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3371 * ada-operator.inc: Rename the file to ...
3372 * ada-operator.def: ... here, wrap all the entries by macro OP.
3373 * expprint.c (op_name_standard): Remove all the entries. Include
3374 "std-operator.def" instead.
3375 * expression.h (enum exp_opcode): Include "std-operator.def" and
3376 "ada-operator.def". Move all the entries ...
3377 * std-operator.def: ... here, wrap all the entries by macro OP.
3379 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3381 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3382 * breakpoint.c (remove_jit_event_breakpoints): New function.
3383 * jit.c (jit_descriptor_addr): Delete.
3384 (registering_code): Delete.
3385 (clear_int): Delete.
3386 (jit_inferior_data): New variable.
3387 (struct jit_inferior_data): New type.
3388 (get_jit_inferior_data): New function.
3389 (jit_inferior_data_cleanup): New function.
3390 (jit_read_descriptor): Adjust.
3391 (jit_register_code): Adjust.
3392 (jit_breakpoint_re_set_internal): New function; move code here ...
3393 (jit_inferior_init): ... from here.
3394 (jit_breakpoint_re_set): Adjust.
3395 (jit_reset_inferior_data_and_breakpoints): New function.
3396 (jit_inferior_created_observer): Adjust.
3397 (jit_inferior_exit_hook): Adjust.
3398 (jit_executable_changed_observer): New function.
3399 (jit_event_handler): Adjust.
3400 (_initialize_jit): Adjust.
3402 2011-01-31 Michael Snyder <msnyder@vmware.com>
3404 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3407 2011-01-31 Tom Tromey <tromey@redhat.com>
3410 * python/python.c (execute_gdb_command): Call
3411 prevent_dont_repeat.
3412 * top.c (suppress_dont_repeat): New global.
3413 (dont_repeat): Use it.
3414 (prevent_dont_repeat): New function.
3415 * command.h (prevent_dont_repeat): Declare.
3417 2011-01-31 Tom Tromey <tromey@redhat.com>
3419 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3420 * python/py-breakpoint.c (bppy_set_silent): Use
3421 breakpoint_set_silent.
3422 (bppy_set_thread): Use breakpoint_set_thread.
3423 (bppy_set_task): Use breakpoint_set_task.
3424 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3425 (breakpoint_set_task): Declare.
3426 (make_breakpoint_silent): Remove.
3427 * breakpoint.c (breakpoint_set_silent): New function.
3428 (breakpoint_set_thread): Likewise.
3429 (breakpoint_set_task): Likewise.
3430 (make_breakpoint_silent): Remove.
3432 2011-01-31 Tom Tromey <tromey@redhat.com>
3434 * breakpoint.h (user_breakpoint_p): Declare.
3435 * breakpoint.c (user_breakpoint_p): New function.
3436 (breakpoint_1): Use it.
3437 (save_breakpoints): Likewise.
3439 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3441 * configure.ac: Add handling of Python distribution on Windows.
3442 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3443 sysconfig variables are not defined, then do not use them.
3444 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3445 instead. On Windows, return all paths using forward-slashes
3446 rather than backslashes.
3448 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3450 * configure.ac: Remove fallback behavior for building
3451 against Python. Remove tweaking of Python include path.
3452 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3453 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3454 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3455 Always restore CPPFLAGS and LIBS after linking test.
3456 * configure: Regenerated.
3457 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3458 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3459 * python/python-internal.h: Adjust includes of Python .h files.
3461 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3463 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3466 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3468 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3471 2011-01-31 Yao Qi <yao@codesourcery.com>
3473 * arm-linux-nat.c: Update calls to regcache_register_status
3474 instead of regcache_valid_p.
3475 * aix-thread.c: Likewise.
3476 * i386gnu-nat.c: Likewise.
3478 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3481 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3482 touching TYPE_FIELD_ARTIFICIAL.
3484 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3486 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3489 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3491 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3492 selected, don't try iterating over the traceframe's blocks.
3493 (tfile_has_stack): If there's no traceframe selected, then there's
3495 (tfile_has_registers): If there's no traceframe selected, then
3496 there's no registers.
3498 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3500 * target.c (memory_xfer_partial): No need to restore shadows if we
3501 haven't read anything.
3503 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3505 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3506 and val_print_scalar_formatted.
3508 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3510 * tracepoint.c (tfile_read): New.
3511 (tfile_open): Use it.
3512 (tfile_get_traceframe_address): Use it.
3513 (tfile_trace_find): Use it.
3514 (walk_blocks_callback_func): New typedef.
3515 (match_blocktype): New function.
3516 (traceframe_walk_blocks): New function.
3517 (traceframe_find_block_type): New function.
3518 (tfile_fetch_registers, tfile_xfer_partial)
3519 (tfile_get_trace_state_variable_value): Use
3520 traceframe_find_block_type and tfile_read.
3522 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3524 * remote-mips.c: Add internationalization mark ups. Remove
3525 trailing \n from already marked up strings.
3527 2011-01-26 Tom Tromey <tromey@redhat.com>
3529 * python/py-prettyprint.c (print_string_repr): Clear
3530 'addressprint' option when calling val_print_string.
3531 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3532 option when calling val_print_string.
3534 2011-01-26 Tom Tromey <tromey@redhat.com>
3536 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3538 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3540 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3541 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3542 (gdb_py_long_as_ulongest): New defines.
3543 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3544 (gdb_py_int_as_long): Declare.
3545 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3546 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3547 (valpy_long): Add comment.
3548 * python/py-utils.c (get_addr_from_python): Use
3549 gdb_py_long_as_ulongest. Handle overflow properly.
3550 (gdb_py_object_from_longest): New function.
3551 (gdb_py_object_from_ulongest): Likewise.
3552 (gdb_py_int_as_long): Likewise.
3553 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3554 * python/py-symtab.c (salpy_get_pc): Use
3555 gdb_py_long_from_ulongest.
3556 (salpy_get_line): Use PyInt_FromLong.
3557 * python/py-param.c (set_parameter_value): Use
3559 * python/py-lazy-string.c (stpy_get_address): Use
3560 gdb_py_long_from_ulongest.
3561 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3562 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3563 * python/py-breakpoint.c (bppy_set_thread): Use
3565 (bppy_set_task): Likewise.
3566 (bppy_set_ignore_count): Likewise.
3567 (bppy_set_hit_count): Likewise.
3568 * python/py-block.c (blpy_get_start): Use
3569 gdb_py_object_from_ulongest.
3570 (blpy_get_end): Likewise.
3571 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3573 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3576 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3577 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3578 equality test for objfile, initialize addr_low if needed.
3580 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3582 * tui/tui-regs.c (tui_register_format): Remove dead code.
3584 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3586 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3587 instead of print_scalar_formatted.
3588 (print_scalar_formatted): Don't handle 's' format strings here,
3589 and add an assertion that we never see such format here.
3590 * valprint.h (val_print_scalar_formatted): Declare.
3591 * valprint.c (val_print_scalar_formatted): New.
3592 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3593 instead of print_scalar_formatted.
3594 * jv-valprint.c (java_val_print): Ditto.
3595 * p-valprint.c (pascal_val_print): Ditto.
3596 * ada-valprint.c (ada_val_print_1): Ditto.
3597 * f-valprint.c (f_val_print): Ditto.
3598 * infcmd.c (registers_info): Ditto.
3599 * m2-valprint.c (m2_val_print): Ditto.
3601 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3603 * m2-valprint.c (print_unbounded_array): Pass
3604 value_contents_for_printing rather than value_contents, to
3605 m2_print_array_contents. Also pass in the value.
3607 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3609 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3610 (save_gdb_index_command): Switch to .gdb_index version 4.
3612 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3614 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3615 than frame_register, and always pass a valid value to val_print.
3617 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3619 Centralize printing "<optimized out>".
3621 * valprint.h (val_print_optimized_out): Declare.
3622 * cp-valprint.c (cp_print_value_fields): Use
3623 val_print_optimized_out.
3624 * jv-valprint.c (java_print_value_fields): Ditto.
3625 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3626 * printcmd.c (print_formatted): Ditto.
3627 * valprint.c (valprint_check_validity): Ditto.
3628 (value_check_printable): Ditto.
3629 (val_print_optimized_out): New.
3631 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3633 * infcmd.c (default_print_registers_info): Allocate values so to
3634 never pass a NULL value to val_print.
3636 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3638 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3639 boolean. Make sure to always pass a value that matches the
3640 contents buffer to callees. Preserve `address' for following
3642 * value.c (value_contents_for_printing_const): New.
3643 (value_address): Constify value argument.
3644 * value.h (value_contents_for_printing_const): Declare.
3645 (value_address): Constify value argument.
3647 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3649 * regcache.c (struct regcache_descr): Rename
3650 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3651 and sizeof_cooked_register_valid_p to
3652 sizeof_cooked_register_status.
3653 (init_regcache_descr): Adjust.
3654 (struct regcache): Rename register_valid_p field to
3656 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3657 (do_cooked_read): Adjust.
3658 (regcache_valid_p): Rename to ...
3659 (regcache_register_status): ... this. Adjust.
3660 (regcache_invalidate): Adjust.
3661 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3663 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3664 as unavailable, not valid.
3665 (regcache_dump): Adjust.
3666 * regcache.h (enum register_status): New.
3667 (regcache_register_status): Declare.
3668 (regcache_invalidate): Delete declaration.
3669 * corelow.c (get_core_registers): Adjust.
3670 * tracepoint.c (tfile_fetch_registers): Adjust.
3671 * trad-frame.c (REG_VALUE): Rename to ...
3672 (TF_REG_VALUE): ... this.
3673 (REG_UNKNOWN): Rename to ...
3674 (TF_REG_UNKNOWN): ... this.
3675 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3676 * mi/mi-main.c (register_changed_p): Adjust.
3678 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3680 * regcache.c (struct regcache_descr): Remove outdated comment.
3681 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3683 (regcache_xmalloc): Rename to ...
3684 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3685 Allocate the regcache type accordingly.
3686 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3687 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3688 cooked registers, not raw.
3689 (regcache_dup_no_passthrough): Delete.
3690 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3691 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3692 mention obsolete write_register_bytes.
3693 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3695 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3697 Stop remote_read_bytes from handling partial reads itself.
3699 * remote-fileio.c: Include target.h.
3700 (remote_fileio_write_bytes): Delete.
3701 (remote_fileio_func_open, remote_fileio_func_write)
3702 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3704 (remote_fileio_func_stat): Use target_read_memory and
3705 target_write_memory.
3706 (remote_fileio_func_gettimeofday): Use target_write_memory.
3707 (remote_fileio_func_system): Use target_read_memory.
3708 * remote.c (remote_write_bytes): Make it static.
3709 (remote_read_bytes): Don't handle partial reads here.
3710 * remote.h (remote_read_bytes): Delete declaration.
3712 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3714 Simplify XML parsing a bit.
3716 * xml-support.h (gdb_xml_parse_quick): Declare.
3717 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3718 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3720 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3721 gdb_xml_create_parser_and_cleanup_1.
3722 (gdb_xml_parse_quick): New.
3723 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3724 * osdata.c (osdata_parse): Ditto.
3725 * remote.c (remote_threads_info): Ditto.
3726 * solib-target.c (solib_target_parse_libraries): Ditto.
3727 * xml-syscall.c (syscall_parse_xml): Ditto.
3728 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3730 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3732 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3733 with remote-mips.o added to gdb_target_obs.
3734 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3736 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3738 * ada-valprint.c (val_print_packed_array_elements): Pass the
3739 correct struct value to val_print.
3740 (ada_val_print_1): Ditto.
3742 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3744 Don't lose embedded_offset in printing routines throughout.
3746 * valprint.h (val_print_array_elements): Change prototype.
3747 * valprint.c (val_print_array_elements): Add `embedded_offset'
3748 parameter, and adjust to pass it down to val_print, while passing
3749 `valaddr' or `address' unmodified. Take embedded_offset into
3750 account when checking repetitions.
3751 * c-valprint.c (c_val_print): Pass embedded_offset to
3752 val_print_array_elements instead of adjusting `valaddr' and
3754 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3755 embedded_offset to val_print_array_elements instead of adjusting
3757 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3758 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3759 val_print_array_elements and pascal_object_print_value_fields
3760 instead of adjusting `valaddr'.
3761 (pascal_object_print_value_fields): Add `offset' parameter, and
3763 (pascal_object_print_value): Add `offset' parameter, and adjust to
3765 (pascal_object_print_static_field): Use
3766 value_contents_for_printing/value_embedded_offset, rather than
3768 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3769 parameter, and adjust to use it. Use
3770 value_contents_for_printing/value_embedded_offset, rather than
3772 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3773 (ada_val_print_array): Add `offset' parameter, and adjust to use
3775 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3776 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3777 Instead work with offsets. Use
3778 value_contents_for_printing/value_embedded_offset, rather than
3779 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3780 and use value_from_pointer to extract a target pointer, rather
3781 than value_from_longest.
3782 (print_variant_part): Add `offset' parameter. Replace
3783 `outer_valaddr' parameter by a new `outer_offset' parameter.
3784 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3785 (ada_value_print): Use
3786 value_contents_for_printing/value_embedded_offset, rather than
3788 (print_record): Add `offset' parameter, and adjust to pass it
3790 (print_field_values): Add `offset' parameter. Replace
3791 `outer_valaddr' parameter by a new `outer_offset' parameter.
3792 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3793 Use value_contents_for_printing/value_embedded_offset, rather than
3795 * d-valprint.c (dynamic_array_type): Use
3796 value_contents_for_printing/value_embedded_offset, rather than
3798 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3799 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3800 (java_print_value_fields): Take `offset' into account. Don't
3801 re-adjust `valaddr'. Instead pass down adjusted offsets.
3802 (java_val_print): Take `embedded_offset' into account. Pass it to
3803 java_print_value_fields.
3804 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3805 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3806 down adjusted offsets.
3807 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3808 (f_val_print): Take `embedded_offset' into account.
3810 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3812 * inflow.c: Include "gdbcmd.h".
3813 (interactive_mode): New static global, moved here from top.c.
3814 (show_interactive_mode): New function, moved here from top.c.
3815 use gdb_has_a_terminal instead of input_from_terminal_p to
3816 determine the current mode.
3817 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3819 (_initialize_inflow): Add the "set/show interactive-mode"
3820 commands. Moved here from top.c, after having adjusted slightly
3822 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3824 (input_from_terminal_p): Remove handling of "interactive-mode"
3825 setting, moved to infow.c.
3826 (init_main): Remove creation of the "set/show interactive-mode"
3827 commands, moved to inflow.c.
3829 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3831 * NEWS: Add entry for native ia64-hpux support.
3833 2011-01-19 Tom Tromey <tromey@redhat.com>
3836 * thread.c (free_thread): Free 'name'.
3837 (print_thread_info): Emit thread name. Change CLI output.
3838 (thread_name_command): New function.
3839 (do_captured_thread_select): Emit newline.
3840 (_initialize_thread): Register 'thread name' command.
3841 * target.h (struct target_ops) <to_thread_name>: New field.
3842 (target_thread_name): New macro.
3843 * target.c (update_current_target): Handle to_thread_name.
3844 * python/py-infthread.c (thpy_get_name): New function.
3845 (thpy_set_name): Likewise.
3846 (thread_object_getset): Add "name".
3847 * linux-nat.c (linux_nat_thread_name): New function.
3848 (linux_nat_add_target): Set to_thread_name.
3849 * gdbthread.h (struct thread_info) <name>: New field.
3851 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3853 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3854 (ada_val_print_1): Likewise.
3856 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3858 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3859 upper limit address is not greater than the function end address
3860 when the upper limit could not be computed using the debugging
3863 2011-01-17 Tom Tromey <tromey@redhat.com>
3865 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3867 * utils.c: Include gdb_regex.h.
3868 (do_regfree_cleanup): New function.
3869 (make_regfree_cleanup): Likewise.
3870 (get_regcomp_error): Likewise.
3871 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3873 2011-01-17 Tom Tromey <tromey@redhat.com>
3875 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3878 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3880 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3881 for internal variables.
3882 (last_was_structop): New static variable.
3883 (COMPLETE): New token.
3884 (field_exp): New rule to group all '.' suffix handling.
3885 Add mark_struct_expression calls when approriate to be able
3886 to correctly find fields for completion.
3887 (yylex): Adapt to handle field completion and set INTVAR when
3890 2011-01-14 Yao Qi <yao@codesourcery.com>
3892 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3893 save_reggroup, restore_reggroup and all_reggroup.
3895 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3897 * ada-valprint. (ada_printchar): Use the correct type length
3898 in call to ada_emit_char.
3899 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3901 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3903 * solib-som.h (hpux_major_release): Declare variable here.
3904 * solib-som.c: Remove <sys/utsname.h> header.
3905 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3906 (hpux_major_release): Make global, change default value to
3907 DEFAULT_HPUX_MAJOR_RELEASE.
3908 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
3909 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3910 Add "solib-som.h" header.
3911 (set_hpux_major_release): New function.
3912 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3914 2011-01-14 Mike Frysinger <vapier@gentoo.org>
3916 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3918 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3920 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3921 new-line at end of warning message.
3922 (ia64_hpux_store_register): Remove trailing new-line at end of
3924 * ia64-hpux-tdep.c: Rephrase comment.
3925 * solib-ia64-hpux.c (struct dld_info): Change type of field
3926 dld_flags from "long long" to ULONGEST.
3928 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3930 * target.h (deprecated_child_ops): Delete declaration.
3931 * target.c (deprecated_child_ops): Delete definition.
3933 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3935 * Makefile.in (hpux-thread.o): Delete rule.
3936 * configure.ac: Don't check for HPUX DCE threads support.
3937 * configure, config.in: Regenerate.
3938 * hppa-hpux-nat.c (child_suppress_run): Delete.
3939 (hppa_hpux_child_can_run): Delete.
3940 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3941 * hpux-thread.c: Delete.
3943 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3945 * hpux-thread.c (hpux_pid_to_str): Delete.
3947 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3949 * ada-valprint.c (ada_emit_char): Remove strange code.
3950 Check that c is <= UCHAR_MAX before passing it to isascii.
3951 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3953 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3955 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3956 to the case where instream is stdin.
3958 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3960 * ia64-tdep.h (struct regcache): Forward declare.
3961 (struct ia64_infcall_ops): New struct type.
3962 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3964 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3965 Renames ia64_find_global_pointer.
3966 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3967 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3968 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3970 (ia64_infcall_ops): New static global constant.
3971 (ia64_gdbarch_init): Set tdep->infcall_ops.
3972 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3973 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3974 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3975 (ia64_hpux_dummy_code): New static global constant.
3976 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3977 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3978 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3980 (ia64_hpux_infcall_ops): New static global constant.
3981 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3982 for inferior function calls to work properly on ia64-hpux.
3984 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3986 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3987 * ia64-tdep.h (struct frame_info): forward declaration.
3988 (struct gdbarch_tdep): Add field size_of_register_frame.
3989 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3990 to determine the size of the register frame.
3991 (ia64_size_of_register_frame): New function.
3992 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3993 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3994 (IA64_HPUX_UREG_REASON): New macro.
3995 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3997 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3998 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3999 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4002 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4004 Add support for ia64-hpux.
4005 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4006 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4008 * configure.host: Add handling for ia64-hpux hosts. Add associated
4010 * configure.tgt: Add handling for ia64-hpux targets.
4011 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4012 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4013 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4015 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4017 [ttrace] Compute thread list immediately after attach.
4018 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4020 (inf_ttrace_attach): Use it.
4022 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4024 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4025 if we could not determine the frame's function address. Instead,
4026 use the frame's PC, and then continue.
4028 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4030 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4031 not already defined.
4033 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4035 * ia64-tdep.c (ia64_struct_type_p): New function.
4036 (ia64_extract_return_value): Handle integral values that are
4037 less than 8 bytes long.
4038 (ia64_push_dummy_call): Likewise.
4040 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4042 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4043 floatformat_ia64_ext.
4044 (floatformat_ia64_ext_big): New static const.
4045 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4047 2011-01-12 Tom Tromey <tromey@redhat.com>
4049 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4051 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4052 (mi_cmd_thread_list_ids): Likewise.
4053 (mi_cmd_data_list_changed_registers): Likewise.
4054 (mi_cmd_data_list_register_values): Likewise.
4055 (mi_cmd_data_write_register_values): Likewise.
4056 (mi_cmd_data_evaluate_expression): Likewise.
4057 (mi_cmd_data_read_memory): Likewise.
4058 (mi_cmd_data_read_memory_bytes): Likewise.
4059 (mi_cmd_data_write_memory): Likewise.
4060 (mi_cmd_enable_timings): Likewise.
4061 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4062 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4063 (mi_cmd_var_delete): Likewise.
4064 (mi_cmd_var_set_format): Likewise.
4065 (mi_cmd_var_show_format): Likewise.
4066 (mi_cmd_var_info_num_children): Likewise.
4067 (mi_cmd_var_list_children): Likewise.
4068 (mi_cmd_var_info_type): Likewise.
4069 (mi_cmd_var_info_expression): Likewise.
4070 (mi_cmd_var_show_attributes): Likewise.
4071 (mi_cmd_var_assign): Likewise.
4072 (mi_cmd_var_update): Likewise.
4073 (mi_cmd_enable_pretty_printing): Likewise.
4074 (mi_cmd_var_set_update_range): Likewise.
4075 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4077 (mi_cmd_target_file_put): Likewise.
4078 (mi_cmd_target_file_delete): Likewise.
4079 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4081 (mi_cmd_stack_info_depth): Likewise.
4082 (mi_cmd_stack_list_locals): Likewise.
4083 (mi_cmd_stack_list_args): Likewise.
4084 (mi_cmd_stack_select_frame): Likewise.
4085 (mi_cmd_stack_select_frame): Likewise.
4086 (mi_cmd_stack_info_frame): Likewise.
4087 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4089 (mi_cmd_file_list_exec_source_files): Likewise.
4090 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4091 (mi_cmd_env_cd): Likewise.
4092 (mi_cmd_env_path): Likewise.
4093 (mi_cmd_env_dir): Likewise.
4094 (mi_cmd_inferior_tty_show): Likewise.
4095 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4096 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4097 (mi_cmd_break_watch): Likewise.
4099 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4101 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4102 (ppc_linux_insert_hw_breakpoint): Likewise.
4103 (ppc_linux_remove_hw_breakpoint): Likewise.
4104 (ppc_linux_insert_watchpoint): Likewise.
4106 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4107 Jan Kratochvil <jan.kratochvil@redhat.com>
4109 PR fortran/11104 and DWARF unbound arrays detection.
4110 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4111 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4112 unspecified upper bound.
4113 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4114 variables array_size_array, tmp_type and offset_item. New variable
4115 array. Remove call to f77_get_upperbound. New variables array_type
4116 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4117 the final call to deprecated_set_value_type.
4119 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4121 Make value allocations more lazy.
4122 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4123 instead of allocate_value and set_value_lazy when possible.
4124 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4125 instead of allocate_value and set_value_lazy.
4126 * findvar.c (value_of_register_lazy): Likewise.
4127 (read_var_value): Remove V preallocation, call just check_typedef in
4128 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4129 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4130 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4131 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4132 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4133 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4134 the end, remove set_value_lazy there.
4135 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4136 instead of allocate_value and set_value_lazy when possible.
4137 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4138 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4139 of allocate_value and set_value_lazy.
4140 (value_from_contents_and_address): Use allocate_value_lazy instead of
4141 allocate_value and set_value_lazy when possible.
4143 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4145 * disasm.c (dump_insns): Support dumping opcodes for MI.
4146 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4147 dumping of instruction opcodes.
4149 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4151 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4154 2011-01-11 Tom Tromey <tromey@redhat.com>
4156 * thread.c (do_captured_thread_select): Emit newline before
4159 2011-01-11 Michael Snyder <msnyder@vmware.com>
4161 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4162 * score-tdep.c: Ditto.
4163 * score-tdep.h: Ditto.
4164 * ser-base.c: Ditto.
4165 * ser-go32.c: Ditto.
4168 * ser-mingw.c: Ditto.
4169 * ser-pipe.c: Ditto.
4171 * ser-unix.c: Ditto.
4172 * sh64-tdep.c: Ditto.
4173 * shnbsd-nat.c: Ditto.
4177 * solib-darwin.c: Ditto.
4178 * solib-frv.c: Ditto.
4180 * solib-irix.c: Ditto.
4181 * solib-osf.c: Ditto.
4182 * solib-pa64.c: Ditto.
4183 * solib-som.c: Ditto.
4184 * solib-spu.c: Ditto.
4185 * solib-sunos.c: Ditto.
4186 * solib-svr4.c: Ditto.
4188 * sol-thread.c: Ditto.
4192 * sparc64-linux-tdep.c: Ditto.
4193 * sparc64-tdep.c: Ditto.
4194 * sparc-linux-nat.c: Ditto.
4195 * sparc-linux-tdep.c: Ditto.
4196 * sparc-sol2-nat.c: Ditto.
4197 * sparc-sol2-tdep.c: Ditto.
4198 * sparc-tdep.c: Ditto.
4199 * sparc-tdep.h: Ditto.
4200 * spu-tdep.c: Ditto.
4201 * stabsread.c: Ditto.
4202 * stabsread.h: Ditto.
4210 * target-descriptions.c: Ditto.
4211 * target-descriptions.h: Ditto.
4213 * target-memory.c: Ditto.
4214 * terminal.h: Ditto.
4217 * tracepoint.c: Ditto.
4218 * tracepoint.h: Ditto.
4219 * trad-frame.h: Ditto.
4220 * typeprint.c: Ditto.
4222 2011-01-11 Michael Snyder <msnyder@vmware.com>
4224 * ui-file.c: Comment cleanup, mostly periods and spaces.
4229 * v850-tdep.c: Ditto.
4230 * valarith.c: Ditto.
4232 * valprint.c: Ditto.
4233 * valprint.h: Ditto.
4238 * vax-tdep.c: Ditto.
4242 * windows-nat.c: Ditto.
4243 * windows-tdep.c: Ditto.
4244 * xcoffread.c: Ditto.
4245 * xcoffsolib.c: Ditto.
4246 * xml-support.c: Ditto.
4247 * xstormy16-tdep.c: Ditto.
4248 * xtensa-tdep.c: Ditto.
4249 * xtensa-tdep.h: Ditto.
4251 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4253 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4254 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4256 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4257 Thiago Jung Bauermann <bauerman@br.ibm.com>
4259 Implement support for PowerPC BookE ranged watchpoints.
4261 (struct breakpoint_ops) <resources_needed>: New method.
4262 Initialize to NULL in all existing breakpoint_ops instances.
4263 (struct breakpoint) <exact>: New field.
4264 (target_exact_watchpoints): Declare external global.
4265 * breakpoint.c (target_exact_watchpoints): New global flag.
4266 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4267 b->enable_state to bp_enabled before calling
4268 hw_watchpoint_used_count.
4269 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4270 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4272 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4273 if the watchpoint is exact.
4274 (resources_needed_watchpoint): New function.
4275 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4276 (watch_command_1): Set b->exact if the user asked for an exact
4277 watchpoint and one can be set.
4278 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4279 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4280 the user asks for an exact watchpoint and one can be set. Return
4281 number of needed debug registers to watch the expression.
4282 * gdbtypes.c (is_scalar_type): New function, based on
4283 valprint.c:scalar_type_p.
4284 (is_scalar_type_recursive): New function.
4285 * gdbtypes.h (is_scalar_type_recursive): Declare.
4286 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4287 handle regions when ranged watchpoints are available.
4288 (create_watchpoint_request): New function.
4289 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4290 create_watchpoint_request.
4291 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4292 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4293 `set powerpc' and `show powerpc' commands.
4294 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4295 Mention documentation comment in the target macro.
4296 (target_region_ok_for_hw_watchpoint): Document return value.
4298 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4300 * breakpoint.c (update_watchpoint): Decide on using a software or
4301 hardware watchpoint after the bp_locations are created.
4303 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4305 Convert hardware watchpoints to use breakpoint_ops.
4306 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4307 <insert_location>: ... this. Return int instead of void.
4308 Accept pointer to struct bp_location instead of pointer to
4309 struct breakpoint. Adapt all implementations.
4310 (breakpoint_ops) <remove>: Rename to...
4311 <remove_location>: ... this. Accept pointer to struct bp_location
4312 instead of pointer to struct breakpoint. Adapt all implementations.
4313 * breakpoint.c (insert_catchpoint): Delete function.
4314 (insert_bp_location): Call the watchpoint or catchpoint's
4315 breakpoint_ops.insert method.
4316 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4317 breakpoint_ops.remove method.
4318 (insert_watchpoint, remove_watchpoint): New functions.
4319 (watchpoint_breakpoint_ops): New structure.
4320 (watch_command_1): Initialize the OPS field.
4321 * inf-child.c (inf_child_insert_fork_catchpoint)
4322 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4323 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4324 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4326 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4327 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4328 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4329 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4330 * target.c (update_current_target): Change default implementation of
4331 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4332 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4333 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4334 to_set_syscall_catchpoint to return_one.
4335 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4336 (debug_to_insert_exec_catchpoint): Report return value.
4337 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4338 (to_insert_exec_catchpoint): Change declaration to return int instead
4341 2011-01-11 Michael Snyder <msnyder@vmware.com>
4343 * arm-tdep.c: Internationalization.
4346 * fork-child.c: Ditto.
4347 * nto-procfs.c: Ditto.
4348 * ppc-sysv-tdep.c: Ditto.
4350 * remote-mips.c: Ditto.
4352 * rs6000-nat.c: Ditto.
4353 * rs6000-tdep.c: Ditto.
4357 * xml-support.c: Ditto.
4358 * mi/mi-cmd-break.c: Ditto.
4359 * mi/mi-cmd-var.c: Ditto.
4360 * mi/mi-interp.c: Ditto.
4361 * mi/mi-main.c: Ditto.
4363 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4365 * remote-sim.c (gdbsim_store_register): Update API to
4366 sim_store_register to check more error conditions.
4368 2011-01-10 Michael Snyder <msnyder@vmware.com>
4370 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4371 * nto-tdep.c: Ditto.
4372 * nto-tdep.h: Ditto.
4373 * objc-exp.y: Ditto.
4374 * objc-lang.c: Ditto.
4375 * objfiles.c: Ditto.
4376 * objfiles.h: Ditto.
4377 * observer.c: Ditto.
4378 * opencl-lang.c: Ditto.
4381 * parser-defs.h: Ditto.
4384 * posix-hdep.c: Ditto.
4385 * ppcbug-rom.c: Ditto.
4386 * ppc-linux-nat.c: Ditto.
4387 * ppc-linux-tdep.c: Ditto.
4388 * ppc-linux-tdep.h: Ditto.
4389 * ppcnbsd-tdep.c: Ditto.
4390 * ppcobsd-tdep.c: Ditto.
4391 * ppcobsd-tdep.h: Ditto.
4392 * ppc-sysv-tdep.c: Ditto.
4393 * ppc-tdep.h: Ditto.
4394 * printcmd.c: Ditto.
4395 * proc-abi.c: Ditto.
4396 * proc-flags.c: Ditto.
4398 * proc-utils.h: Ditto.
4399 * progspace.h: Ditto.
4400 * prologue-value.c: Ditto.
4401 * prologue-value.h: Ditto.
4402 * psympriv.h: Ditto.
4404 * p-typeprint.c: Ditto.
4405 * p-valprint.c: Ditto.
4406 * ravenscar-sparc-thread.c: Ditto.
4407 * ravenscar-thread.c: Ditto.
4408 * ravenscar-thread.h: Ditto.
4410 * regcache.c: Ditto.
4411 * regcache.h: Ditto.
4413 * remote-fileio.c: Ditto.
4414 * remote-fileio.h: Ditto.
4416 * remote-m32r-sdi.c: Ditto.
4417 * remote-mips.c: Ditto.
4418 * remote-sim.c: Ditto.
4419 * rs6000-aix-tdep.c: Ditto.
4420 * rs6000-nat.c: Ditto.
4421 * rs6000-tdep.c: Ditto.
4423 2011-01-10 Michael Snyder <msnyder@vmware.com>
4425 * charset.c (validate): Internationalization.
4426 * coffread.c (read_one_sym): Ditto.
4427 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4428 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4429 * inflow.c (new_tty): Ditto.
4430 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4431 * m32c-tdep.c (m32c_return_value): Ditto.
4432 * mep-tdep.c (mep_store_return_value): Ditto.
4433 * score-tdep.c (score7_fetch_insn): Ditto.
4434 * ser-mingw.c (pipe_windows_open): Ditto.
4435 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4436 * spu-tdep.c (spu_register_type): Ditto.
4437 * tracepoint.c (trace_find_command): Ditto.
4438 * valarith.c (value_pos): Ditto.
4440 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4442 * ada-valprint.c (printstr): Minor comment reformatting.
4444 2011-01-08 Michael Snyder <msnyder@vmware.com>
4446 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4449 2011-01-08 Michael Snyder <msnyder@vmware.com>
4451 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4452 * hppa-hpux-tdep.c: Ditto.
4453 * hppa-linux-nat.c: Ditto.
4454 * hppa-linux-tdep.c: Ditto.
4455 * hppanbsd-tdep.c: Ditto.
4456 * hppa-tdep.c: Ditto.
4457 * hppa-tdep.h: Ditto.
4458 * hpux-thread.c: Ditto.
4459 * i386-cygwin-tdep.c: Ditto.
4460 * i386-darwin-nat.c: Ditto.
4461 * i386gnu-nat.c: Ditto.
4462 * i386-linux-nat.c: Ditto.
4463 * i386-linux-tdep.c: Ditto.
4464 * i386-nat.c: Ditto.
4465 * i386-nat.h: Ditto.
4466 * i386nbsd-tdep.c: Ditto.
4467 * i386-sol2-nat.c: Ditto.
4468 * i386-stub.c: Ditto.
4469 * i386-tdep.c: Ditto.
4470 * i386-tdep.h: Ditto.
4471 * i387-tdep.c: Ditto.
4472 * ia64-linux-nat.c: Ditto.
4473 * ia64-linux-tdep.c: Ditto.
4474 * ia64-tdep.c: Ditto.
4478 * inferior.c: Ditto.
4479 * inferior.h: Ditto.
4485 * iq2000-tdep.c: Ditto.
4486 * irix5-nat.c: Ditto.
4492 * jv-typeprint.c: Ditto.
4493 * jv-valprint.c: Ditto.
4494 * language.c: Ditto.
4495 * language.h: Ditto.
4496 * linespec.c: Ditto.
4497 * linux-fork.c: Ditto.
4498 * linux-nat.c: Ditto.
4499 * linux-thread-db.c: Ditto.
4500 * lm32-tdep.c: Ditto.
4502 2011-01-08 Michael Snyder <msnyder@vmware.com>
4504 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4506 * m2-typeprint.c: Ditto.
4507 * m2-valprint.c: Ditto.
4508 * m32c-tdep.c: Ditto.
4509 * m32r-linux-nat.c: Ditto.
4510 * m32r-rom.c: Ditto.
4511 * m32r-tdep.c: Ditto.
4512 * m32r-tdep.h: Ditto.
4513 * m68hc11-tdep.c: Ditto.
4514 * m58klinux-nat.c: Ditto.
4515 * m68k-tdep.c: Ditto.
4516 * m88k-tdep.c: Ditto.
4517 * m88k-tdep.h: Ditto.
4518 * machoread.c: Ditto.
4519 * macrocmd.c: Ditto.
4520 * macroexp.c: Ditto.
4521 * macrotab.c: Ditto.
4524 * mdebugread.c: Ditto.
4525 * mdebugread.h: Ditto.
4528 * memory-map.h: Ditto.
4529 * mep-tdep.c: Ditto.
4530 * microblaze-rom.c: Ditto.
4531 * microblaze-tdep.c: Ditto.
4533 * mips-irix-tdep.c: Ditto.
4534 * mips-linux-nat.c: Ditto.
4535 * mips-linux-tdep.c: Ditto.
4536 * mips-linux-tdep.h: Ditto.
4537 * mipsnbsd-nat.c: Ditto.
4538 * mipsnbsd-tdep.c: Ditto.
4539 * mipsread.c: Ditto.
4540 * mips-tdep.c: Ditto.
4541 * mips-tdep.h: Ditto.
4542 * mn10300-linux-tdep.c: Ditto.
4543 * mn10300-tdep.c: Ditto.
4544 * mn10300-tdep.h: Ditto.
4547 * moxie-tdep.c: Ditto.
4548 * moxie-tdep.h: Ditto.
4551 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4553 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4555 2011-01-08 Robert Millan <rmh@gnu.org>
4557 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4559 2011-01-07 Michael Snyder <msnyder@vmware.com>
4561 * charset.c (_initialize_charset): Fix typo in string.
4563 2011-01-07 Michael Snyder <msnyder@vmware.com>
4565 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4567 * tui/tui-layout.c (tui_set_layout_for_display_command):
4568 Split line so that operator goes to beginning of line.
4569 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4570 assignment out of if statement.
4572 2011-01-07 Michael Snyder <msnyder@vmware.com>
4574 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4575 * ada-lang.h: Ditto.
4576 * ada-tasks.c: Ditto.
4577 * ada-valprint.c: Ditto.
4578 * aix-threads.c: Ditto.
4579 * alpha-linux-nat.c: Ditto.
4580 * alpha-linux-tdep.c: Ditto.
4581 * alpha-mdebug-tdep.c: Ditto.
4582 * alpha-nat.c: Ditto.
4583 * alpha-osf1-tdep.c: Ditto.
4584 * alpha-tdep.c: Ditto.
4585 * alphabsd-nat.c: Ditto.
4586 * alphabsd-tdep.c: Ditto.
4587 * amd64-darwin-tdep.c: Ditto.
4588 * amd64-linux-nat.c: Ditto.
4589 * amd64-linux-tdep.c: Ditto.
4590 * amd64-sol2-tdep.c: Ditto.
4591 * amd64-tdep.c: Ditto.
4592 * amd64-fbsd-tdep.c: Ditto.
4593 * amd64-nbsd-tdep.c: Ditto.
4594 * amd64-obsd-tdep.c: Ditto.
4595 * amd64-linux-nat.c: Ditto.
4596 * amd64-linux-tdep.c: Ditto.
4597 * arm-tdep.c: Ditto.
4598 * arm-tdep.h: Ditto.
4599 * armnbsd-nat.c: Ditto.
4600 * avr-tdep.c: Ditto.
4601 * bfin-tdep.c: Ditto.
4603 * c-typeprintc: Ditto.
4604 * c-valprint.c: Ditto.
4605 * coff-pe-read.h: Ditto.
4606 * coffreead.c: Ditto.
4607 * cris-tdep.c: Ditto.
4609 * darwin-nat-info.c: Ditto.
4610 * darwin-nat.c: Ditto.
4611 * dbug-rom.c: Ditto.
4615 * dec-thread.c: Ditto.
4617 * demangle.c: Ditto.
4618 * dicos-tdep.c: Ditto.
4619 * dictionary.c: Ditto.
4620 * dictionary.h: Ditto.
4621 * dink32-rom.c: Ditto.
4623 * doublest.c: Ditto.
4625 * dummy-frame.c: Ditto.
4626 * dwarf2-frame.c: Ditto.
4627 * dwarf2expr.c: Ditto.
4628 * dwarf2loc.c: Ditto.
4629 * dwarf2read.c: Ditto.
4633 * event-top.h: Ditto.
4634 * exceptions.c: Ditto.
4635 * exceptions.h: Ditto.
4637 * expprint.c: Ditto.
4638 * expression.h: Ditto.
4642 * f-typeprint.c: Ditto.
4643 * f-valprint.c: Ditto.
4644 * fbsd-nat.c: Ditto.
4646 * fork-child.c: Ditto.
4649 * frv-linux-tdep.c: Ditto.
4650 * frv-tdep.c: Ditto.
4652 * gdb-stabs.h: Ditto.
4653 * gdb_assert.h: Ditto.
4654 * gdb_string.h: Ditto.
4655 * gdb_thread_db.h: Ditto.
4656 * gdb_wait.h: Ditto.
4657 * gdbarch.sh: Ditto.
4659 * gdbthread.h: Ditto.
4660 * gdbtypes.c: Ditto.
4661 * gdbtypes.h: Ditto.
4664 * gnu-v2-abi.c: Ditto.
4665 * gnu-v3-abi.c: Ditto.
4666 * go32-nat.c: Ditto.
4667 * gdbarch.c: Regenerate.
4668 * gdbarch.h: Regenerate.
4670 2011-01-07 Michael Snyder <msnyder@vmware.com>
4672 * ax-gdb.c: Adjust some long output strings.
4673 * breakpoint.c: Ditto.
4678 * linux-nat.c: Ditto.
4679 * solib-pa64.c: Ditto.
4680 * solib-som.c: Ditto.
4682 2011-01-06 Tom Tromey <tromey@redhat.com>
4686 * python/python.c (GdbMethods): Add "newest_frame" method.
4687 * python/python-internal.h (gdbpy_newest_frame): Declare.
4688 * python/py-frame.c (gdbpy_newest_frame): New function.
4690 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4692 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4693 * jit.c (jit_debug): New variable.
4694 (show_jit_debug): New function.
4695 (struct target_buffer): Use ULONGEST.
4696 (bfd_open_from_target_memory): Likewise.
4697 (jit_register_code, jit_inferior_init): Add debug output.
4698 (_initialize_jit): Register "debug jit" command.
4700 2011-01-06 Tom Tromey <tromey@redhat.com>
4702 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4703 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4706 2011-01-06 Tom Tromey <tromey@redhat.com>
4708 * python/py-frame.c (frapy_block): Use get_frame_block.
4710 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4712 Do not stop on SIGPRIO signals by default
4713 * infrun.c (_initialize_infrun): Unset signal_stop and
4714 signal_print for TARGET_SIGNAL_PRIO.
4716 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4718 * ada-tasks.c: Fix style violation in comment.
4720 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4722 * linespec.c (decode_compound, find_method): Remove trailing \n
4723 at end of error string.
4724 * solib-irix.c (irix_current_sos): Likewise.
4725 * varobj.c (uninstall_variable): Likewise.
4727 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4729 * copyright.py: New script.
4730 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4731 Launch emacs without exec'ing. Call copyright.py afterwards.
4733 2011-01-05 Michael Snyder <msnyder@vmware.com>
4735 * addrmap.c: Shorten lines of >= 80 columns.
4736 * arch-utils.c: Ditto.
4737 * arch-utils.h: Ditto.
4739 * ax-general.c: Ditto.
4741 * blockframe.c: Ditto.
4742 * breakpoint.c: Ditto.
4743 * buildsym.c: Ditto.
4745 * c-typeprint.c: Ditto.
4747 * coffread.c: Ditto.
4751 * cp-namespace.c: Ditto.
4752 * cp-support.c: Ditto.
4753 * dbug-rom.c: Ditto.
4758 * dictionary.c: Ditto.
4760 * doublest.c: Ditto.
4761 * dwarf2-frame.c: Ditto.
4762 * dwarf2expr.c: Ditto.
4763 * dwarf2loc.c: Ditto.
4764 * dwarf2read.c: Ditto.
4767 * event-loop.c: Ditto.
4768 * event-loop.h: Ditto.
4769 * exceptions.h: Ditto.
4771 * expprint.c: Ditto.
4772 * expression.h: Ditto.
4774 * f-valprint.c: Ditto.
4776 * frame-base.c: Ditto.
4777 * frame-unwind.c: Ditto.
4778 * frame-unwind.h: Ditto.
4782 * gdb-stabs.h: Ditto.
4783 * gdb_assert.h: Ditto.
4784 * gdb_dirent.h: Ditto.
4785 * gdb_obstack.h: Ditto.
4787 * gdbtypes.c: Ditto.
4788 * gdbtypes.h: Ditto.
4789 * inf-ttrace.c: Ditto.
4794 * inline-frame.h: Ditto.
4795 * language.c: Ditto.
4796 * language.h: Ditto.
4797 * libunwind-frame.c: Ditto.
4798 * libunwind-frame.h: Ditto.
4799 * linespec.c: Ditto.
4800 * linux-nat.c: Ditto.
4801 * linux-nat.h: Ditto.
4802 * linux-thread-db.c: Ditto.
4803 * machoread.c: Ditto.
4804 * macroexp.c: Ditto.
4805 * macrotab.c: Ditto.
4808 * mdebugread.c: Ditto.
4813 * objfiles.c: Ditto.
4814 * objfiles.h: Ditto.
4816 * p-typeprint.c: Ditto.
4817 * p-valprint.c: Ditto.
4819 * printcmd.c: Ditto.
4820 * proc-events.c: Ditto.
4822 * progspace.c: Ditto.
4823 * progspace.h: Ditto.
4824 * psympriv.h: Ditto.
4827 * regcache.c: Ditto.
4828 * regcache.h: Ditto.
4829 * remote-fileio.c: Ditto.
4831 * ser-mingw.c: Ditto.
4833 * ser-unix.c: Ditto.
4836 * solib-frv.c: Ditto.
4837 * solib-irix.c: Ditto.
4838 * solib-osf.c: Ditto.
4839 * solib-pa64.c: Ditto.
4840 * solib-som.c: Ditto.
4841 * solib-sunos.c: Ditto.
4842 * solib-svr4.c: Ditto.
4843 * solib-target.c: Ditto.
4847 * stabsread.c: Ditto.
4848 * stabsread.c: Ditto.
4851 * symfile-mem.c: Ditto.
4857 * target-descriptions.c: Ditto.
4858 * target-memory.c: Ditto.
4861 * terminal.h: Ditto.
4864 * tracepoint.c: Ditto.
4865 * tracepoint.h: Ditto.
4869 * user-regs.c: Ditto.
4870 * user-regs.h: Ditto.
4872 * valarith.c: Ditto.
4874 * valprint.c: Ditto.
4875 * valprint.h: Ditto.
4880 * xcoffread.c: Ditto.
4881 * xcoffsolib.c: Ditto.
4882 * xcoffsolib.h: Ditto.
4883 * xml-syscall.c: Ditto.
4884 * xml-tdesc.c: Ditto.
4886 2011-01-05 Michael Snyder <msnyder@vmware.com>
4888 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4889 * cli/cli-decode.c: Ditto.
4890 * cli/cli-dump.c: Ditto.
4891 * cli/cli-logging.c: Ditto.
4892 * cli/cli-script.c: Ditto.
4893 * cli/cli-setshow.c: Ditto.
4894 * common/signals.c: Ditto.
4895 * mi/mi-cmd-break.c: Ditto.
4896 * mi/mi-cmd-disas.c: Ditto.
4897 * mi/mi-cmd-stack.c: Ditto.
4898 * mi/mi-cmd-var.c: Ditto.
4899 * mi/mi-cmds.c: Ditto.
4900 * mi/mi-common.h: Ditto.
4901 * mi/mi-console.c: Ditto.
4902 * mi/mi-interp.c: Ditto.
4903 * mi/mi-main.c: Ditto.
4904 * osf-share/cma_attr.c: Ditto.
4905 * osf-share/cma_deb_core.h: Ditto.
4906 * osf-share/cma_debug_client.h: Ditto.
4907 * osf-share/cma_handle.h: Ditto.
4908 * osf-share/cma_mutex.h: Ditto.
4909 * osf-share/cma_stack_int.h: Ditto.
4910 * osf-share/cma_tcb_defs.h: Ditto.
4911 * python/py-auto-load.c: Ditto.
4912 * python/py-breakpoint.c: Ditto.
4913 * python/py-cmd.c: Ditto.
4914 * python/py-frame.c: Ditto.
4915 * python/py-objfile.c: Ditto.
4916 * python/py-param.c: Ditto.
4917 * python/py-progspace.c: Ditto.
4918 * python/py-symbol.c: Ditto.
4919 * python/py-value.c: Ditto.
4920 * python/python-internal.h: Ditto.
4921 * python/python.c: Ditto.
4922 * tui/tui-data.c: Ditto.
4923 * tui/tui-disasm.c: Ditto.
4924 * tui/tui-hooks.c: Ditto.
4925 * tui/tui-io.c: Ditto.
4926 * tui/tui-layout.c: Ditto.
4927 * tui/tui-regs.c: Ditto.
4928 * tui/tui-source.c: Ditto.
4929 * tui/tui-stack.c: Ditto.
4930 * tui/tui-win.c: Ditto.
4931 * tui/tui-windata.c: Ditto.
4932 * tui/tui-winsource.c: Ditto.
4934 2011-01-05 Joel Brobecker <brobecker@adacore.com>
4936 * configure.ac, gdb.1: Copyright year update.
4938 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4941 this_pc_in_block, morestack_msym and morestack_name. Check for
4942 "__morestack" minimal symbol there.
4944 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4946 * symfile.c (find_sym_fns): Add call to dont_repeat.
4948 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4950 Copyright year update in most files (performed by copyright.sh).
4952 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4954 * top.c (print_gdb_version): Update copyright year in version output.
4956 For older changes see ChangeLog-2010.
4962 version-control: never