1 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix libraries displacement if they change whether they were prelinked.
4 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
5 does not match. Comment why.
7 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9 * corelow.c: Include wrapper.h.
10 (core_open): Call now gdb_target_find_new_threads.
11 * wrapper.c: Include target.h.
12 (gdb_target_find_new_threads): New.
13 * wrapper.h (gdb_target_find_new_threads): New declaration.
15 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
17 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
18 even if !TARGET_HAS_EXECUTION.
20 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
23 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
24 bfd_get_synthetic_symtab.
25 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
26 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
27 parameter parent, remove the call to add_separate_debug_objfile.
28 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
29 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
30 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
31 parent, new comment for it, call add_separate_debug_objfile for it.
32 (symbol_file_add_separate): Pass objfile as the parameter parent,
33 remove the call to add_separate_debug_objfile.
34 (symbol_file_add_from_bfd): New parameter parent, pass it.
35 (symbol_file_add): Pass NULL to the new parameter parent.
36 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
38 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
43 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
45 Fix Python access to inlined frames.
46 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
47 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
49 2011-04-15 Tom Tromey <tromey@redhat.com>
51 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
53 2011-04-15 Gary Benson <gbenson@redhat.com>
55 * MAINTAINERS: Add myself to write-after-approval section.
57 2011-04-14 Mike Frysinger <vapier@gentoo.org>
59 * remote-sim.c (sim_command_completer): New function.
60 (_initialize_remote_sim): Set completer to sim_command_completer.
62 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
64 * breakpoint.c (print_exception_catchpoint): Rename to ...
65 (print_it_exception_catchpoint): ... this.
66 (gnu_v3_exception_catchpoint_ops): Update with new name
67 for print_it_exception_catchpoint.
69 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
71 * MAINTAINERS: Add myself for write after approval privileges.
73 2011-04-13 Marek Polacek <mpolacek@redhat.com>
75 * MAINTAINERS: Add myself as a write-after-approval maintainer.
77 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
79 * breakpoint.c (watch_command_1): Remove colon from exp_string.
81 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
83 * breakpoint.c (save_breakpoints): Verify whether
84 breakpoint_ops.print_recreate is defined before calling it.
86 2011-04-11 Gary Benson <gbenson@redhat.com>
88 Fix failure with --enable-maintainer-mode.
89 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
91 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
94 * symtab.c (search_symbols): Reorder the KIND description in the
95 function comment. Remove the unused 4th element of types, types2,
96 types3 and types4. New gdb_assert on KIND.
97 (symtab_symbol_info): Remove the unused 4th element of classnames.
98 New gdb_assert on KIND.
99 * symtab.h (enum search_domain): New warning in the enum comment.
100 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
103 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
105 Fix crash of gdb save-index on a STABS file.
106 * dwarf2read.c (write_psymtabs_to_index): Return also on no
109 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
111 Fix DW_AT_accessibility compatibility with gcc-4.6+.
112 * dwarf2read.c: Include ctype.h.
113 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
115 (dwarf2_add_field): Fix new_field->accessibility by calling
116 dwarf2_default_access_attribute. Restructure setting accessibility
118 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
119 is_private and is_protected by calling
120 dwarf2_default_access_attribute.
122 2011-04-08 Kevin Buettner <kevinb@redhat.com>
124 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
125 to the initialization.
127 2011-04-08 Steve Ellcey <sje@cup.hp.com>
129 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
132 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
134 Remove support for old Cygwin 1.5 versions.
135 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
136 function on old Cygwin version.
137 * windows-nat.c: Remove cygwin version check and always define
138 __USEWIDE for Cygwin compilation.
140 2011-04-07 Yao Qi <yao@codesourcery.com>
142 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
144 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
145 (arm_copy_svc): Remove parameters INSN and TO.
146 (decode_svc_copro): Update caller.
147 * arm-tdep.h (struct displaced_step_closure): Remove parameters
148 from function pointer `copy_svc_os'.
150 2011-04-07 Yao Qi <yao@codesourcery.com>
152 * arm-tdep.c (cleanup_branch): Set a correct return address in
153 LR for ARM and Thumb.
155 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
158 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
159 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
160 in the function comment, a new note on values compatibility.
161 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
162 * symtab.h (SYMBOL_HASH_NEXT): New.
164 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
166 * ppc-linux-nat.c (check_condition): Add len output parameter.
167 Set it based on the memory region referenced in the condition
168 expression. Update all callers.
170 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
172 Fix crash regression on systems featuring .gdb_index.
173 * objfiles.c (free_objfile): Move the
174 forget_cached_source_info_for_objfile call earlier. Comment it.
175 Extend the comment for objfile_free_data.
177 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
179 Fix regression of displaying the debug format.
180 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
183 2011-04-04 Tom Tromey <tromey@redhat.com>
185 * cli/cli-interp.c (struct captured_execute_command_args):
187 (do_captured_execute_command): Remove.
188 (safe_execute_command): Use TRY_CATCH.
189 * cli/cli-script.c (struct wrapped_read_command_file_args):
191 (wrapped_read_command_file): Remove.
192 (script_from_file): Use TRY_CATCH.
193 * exceptions.c (catch_exception): Remove.
194 * exceptions.h (catch_exception): Remove.
195 (deprecated_throw_reason): Update comment.
196 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
197 argument to 'context'.
198 (mi_execute_command): Use TRY_CATCH.
199 * remote.c (struct start_remote_args): Remove.
200 (remote_start_remote): Update; change arguments.
201 (remote_open_1): Use TRY_CATCH.
203 2011-04-04 Tom Tromey <tromey@redhat.com>
205 * tracepoint.c (scope_info): Update.
206 * symtab.c (decode_line_spec): Update.
207 * python/python.c (gdbpy_decode_line): Update.
208 * linespec.h (decode_line_1): Update.
209 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
210 (decode_compound, find_method, symtab_from_filename)
211 (decode_variable): Likewise.
212 * cli/cli-cmds.c (edit_command): Update.
213 (list_command): Update.
214 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
216 (create_breakpoint): Update.
217 (until_break_command): Update.
218 (addr_string_to_sals): Update.
219 (decode_line_spec_1): Update.
221 2011-04-04 Tom Tromey <tromey@redhat.com>
223 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
224 (do_captured_parse_breakpoint): Remove.
225 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
226 Use TRY_CATCH directly.
228 2011-04-04 Tom Tromey <tromey@redhat.com>
230 * symtab.h (free_symtab): Remove.
231 (forget_cached_source_info_for_objfile): Declare.
232 * symmisc.c (free_symtab): Remove.
233 * source.c (forget_cached_source_info_for_objfile): New function.
234 (forget_cached_source_info): Use it.
235 * objfiles.c (free_objfile): Simplify check before calling
236 clear_current_source_symtab_and_line. Call
237 forget_cached_source_info_for_objfile.
239 2011-04-04 Tom Tromey <tromey@redhat.com>
241 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
242 (new_symtab): Don't set `free_code' on symtab.
243 (new_linetable): Properly handle size==0.
244 * symtab.h (struct symtab) <free_code, free_func>: Remove.
245 * symmisc.c (free_symtab): Don't free the linetable. Don't call
247 * jv-lang.c (struct jv_per_objfile_data): New.
248 (jv_per_objfile_free): Free the data.
249 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
250 (get_java_class_symtab): Set the `dict' field on the
252 (free_class_block): Remove.
253 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
256 2011-04-04 Tom Tromey <tromey@redhat.com>
258 * symfile.c (reread_symbols): Update.
259 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
261 * objfiles.c (allocate_objfile): Update.
262 * cp-support.h (cp_check_possible_namespace_symbols): Don't
264 * cp-namespace.c (lookup_symbol_file): Don't call
265 lookup_possible_namespace_symbol.
266 (initialize_namespace_symtab, get_possible_namespace_block)
267 (free_namespace_block, cp_check_possible_namespace_symbols)
268 (check_possible_namespace_symbols_loop)
269 (check_one_possible_namespace_symbol)
270 (lookup_possible_namespace_symbol): Remove.
271 (maintenance_cplus_namespace): Replace with notice.
272 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
274 2011-04-04 Tom Tromey <tromey@redhat.com>
276 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
277 * symtab.h (struct symtab) <producer, debugformat>: Now const.
278 * symmisc.c (free_symtab): Don't free debugformat.
279 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
280 (record_debugformat, record_producer): Document.
281 * buildsym.c (end_symtab): Don't save debugformat and producer
283 (end_symtab): Don't free debugformat and producer fields.
284 (record_debugformat): Don't call xstrdup.
285 (record_producer): Likewise.
287 2011-04-04 Tom Tromey <tromey@redhat.com>
289 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
290 (source_line_charpos, source_charpos_line): Remove.
292 2011-04-04 Tom Tromey <tromey@redhat.com>
294 * symtab.h (domain_enum): Split in two...
295 (enum search_domain): New.
296 (search_symbols): Update.
297 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
298 redundant declarations.
299 (search_symbols): Change 'kind' argument to search_domain.
301 (print_symbol_info): Likewise.
302 (symtab_symbol_info): Likewise.
303 * symfile.h (struct quick_symbol_functions)
304 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
305 <expand_symtabs_matching>: Likewise.
306 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
307 (expand_symtabs_matching_via_partial): Update.
308 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
309 (dw2_expand_symtabs_for_function): Update.
310 * block.h: Moved anonymous enum...
311 * defs.h (enum block_enum): ... here. Now named.
313 2011-04-03 Joel Brobecker <brobecker@adacore.com>
315 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
316 * version.in: Bump version to 7.3.50.20110403-cvs.
318 2011-04-03 Joel Brobecker <brobecker@adacore.com>
320 * NEWS: Create a new section for the next release branch.
321 Rename the section of the current branch, now that it has
324 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
326 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
327 for "fpscr" in target description.
329 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
331 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
332 initialize it. Delay HASH initialization. Strip the part after open
333 parenthesis for languages with qualifiers. Call do_cleanups.
335 2011-04-01 Tom Tromey <tromey@redhat.com>
337 * utils.c (report_command_stats): Don't print `-' for negative
340 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
342 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
343 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
346 2011-04-01 Joel Brobecker <brobecker@adacore.com>
348 * breakpoint.h (bpdisp_text): Add declaration.
349 * breakpoint.c (bpdisp_text): Make non-static.
350 * ada-lang.c: #include "mi/mi-common.h".
351 (print_it_exception): Rewrite to improve GDB/MI output.
353 2011-04-01 Pedro Alves <pedro@codesourcery.com>
355 * arm-tdep.h (struct address_space): Add forward declaration.
357 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
359 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
360 * arm-tdep.c (arm_override_mode): New global.
361 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
362 execution mode heuristics.
363 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
364 second single-step breakpoint if needed, using
365 arm_insert_single_step_breakpoint.
366 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
367 ARM execution mode, do not call thumb_get_next_pc_raw.
368 (arm_get_next_pc): Encode execution mode in return value. Call
369 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
370 (arm_insert_single_step_breakpoint): New function.
371 (arm_software_single_step): Call it.
372 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
373 argument to return execution mode of sigreturn target.
374 (arm_linux_syscall_next_pc): Use it.
375 (arm_linux_copy_svc): Update call.
376 (arm_linux_software_single_step): Call
377 arm_insert_single_step_breakpoint.
379 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
381 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
384 2011-03-31 Tom Tromey <tromey@redhat.com>
386 * varobj.c (update_dynamic_varobj_children): Properly handle
387 errors from iterator.
389 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
391 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
392 struct linkage name twice.
394 2011-03-31 Tom Tromey <tromey@redhat.com>
396 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
397 missing ">" to message.
399 2011-03-31 Tom Tromey <tromey@redhat.com>
401 * varobj.c (instantiate_pretty_printer): Remove duplicate
404 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
406 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
407 if neither saved value nor register available (e.g. signal frame).
409 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
411 * macroexp.c (expand): Avoid uninitialized variable
414 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
416 * breakpoint.c (break_range_command): Fix typo in comment.
418 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
419 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
421 Implement support for PowerPC BookE ranged breakpoints.
422 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
423 * breakpoint.h (struct bp_target_info) <length>: New member
425 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
426 instead of struct breakpoint as argument, and also add ASPACE
427 and BP_ADDR arguments. Update all callers.
428 (struct breakpoint_ops) <print_one_detail>: New method.
429 (struct breakpoint) <addr_string_range_end>: New member variable.
430 * breakpoint.c (breakpoint_location_address_match): Add function
432 (insert_bp_location): Set bl->target_info.length.
433 (breakpoint_here_p): Call breakpoint_location_address_match.
434 (moribund_breakpoint_here_p): Likewise.
435 (regular_breakpoint_inserted_here_p): Likewise.
436 (breakpoint_thread_match): Likewise.
437 (bpstat_stop_status): Likewise.
438 (bpstat_check_location): Move call to
439 breakpoint_ops.breakpoint_hit to the top.
440 (print_one_breakpoint_location): Call
441 breakpoint_ops.print_one_detail if available.
442 (breakpoint_address_match_range): New function.
443 (breakpoint_location_address_match): Likewise.
444 (breakpoint_locations_match): Compare the length field of the
446 (hw_breakpoint_used_count): Count resources used by all locations
447 in a breakpoint, and use breakpoint_ops.resources_needed if
449 (breakpoint_hit_ranged_breakpoint): New function.
450 (resources_needed_ranged_breakpoint): Likewise.
451 (print_it_ranged_breakpoint): Likewise.
452 (print_one_ranged_breakpoint): Likewise.
453 (print_one_detail_ranged_breakpoint): Likewise.
454 (print_mention_ranged_breakpoint): Likewise.
455 (print_recreate_ranged_breakpoint): Likewise.
456 (ranged_breakpoint_ops): New structure.
457 (find_breakpoint_range_end): New function.
458 (break_range_command): Likewise.
459 (delete_breakpoint): Free addr_string_range_end.
460 (update_breakpoint_locations): Add SALS_END argument. Update
461 all callers. Calculate breakpoint length if a non-zero SALS_END
462 is given. Call breakpoint_locations_match instead of
463 breakpoint_address_match.
464 (reset_breakpoint): Find SaL of the end of the range if B is a
466 (_initialize_breakpoint): Register break-range command.
467 * defs.h (print_core_address): Add function prototype.
468 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
470 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
471 (ppc_linux_remove_hw_breakpoint): Likewise.
472 (_initialize_ppc_linux_nat): Initialize
473 to_ranged_break_num_registers.
474 * target.c (update_current_target): Add comment about
475 to_ranged_break_num_registers.
476 (target_ranged_break_num_registers): New function.
477 * target.h (struct target_ops) <to_ranged_break_num_registers>:
479 (target_ranged_break_num_registers): Add function prototype.
480 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
481 * utils.c (print_core_address): ... here.
483 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
485 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
486 variable compiler warning.
488 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
490 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
492 (re_set_breakpoint): ... to here ...
493 (addr_string_to_sals): ... and here.
495 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
497 * Makefile.in (SFILES): Add missing C sources.
498 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
501 2011-03-29 Mike Frysinger <vapier@gentoo.org>
503 * .gitignore: New file.
505 2011-03-29 Mike Frysinger <vapier@gentoo.org>
507 * NEWS: Mention new cfi device simulation.
509 2011-03-29 Tom Tromey <tromey@redhat.com>
511 * dwarf2read.c (fixup_partial_die): Handle linkage name on
512 otherwise anonymous types.
513 (dwarf2_name): Likewise.
514 * valops.c (value_struct_elt_for_reference): Refine artificial
515 type logic. Call error if j==-1.
517 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
519 Fix false GCC warning.
520 * infcall.c (find_function_addr): Initialize funaddr.
522 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
524 Fix mingw compilation with --enable-targets=all.
525 * remote-mips.c (gdb_usleep.h): Include header.
526 (mips_enter_debug): Use gdb_usleep instead of sleep.
528 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
530 Support resolution of STT_GNU_IFUNC via breakpoints.
531 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
532 bp_gnu_ifunc_resolver_return.
533 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
534 the loop. Support bp_gnu_ifunc_resolver and
535 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
536 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
538 (bptype_string, print_one_breakpoint_location): Support
539 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
540 (user_settable_breakpoint): Return true also for
541 bp_gnu_ifunc_resolver.
542 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
543 bp_gnu_ifunc_resolver_return.
544 (set_breakpoint_location_function): New parameter explicit_loc,
545 describe it. Call find_pc_partial_function_gnu_ifunc with new
546 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
547 EXPLICIT_LOC is not set.
548 (set_raw_breakpoint): Set EXPLICIT_LOC for
549 set_breakpoint_location_function.
550 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
551 set_breakpoint_location_function.
552 (mention): Support bp_gnu_ifunc_resolver and
553 bp_gnu_ifunc_resolver_return.
554 (add_location_to_breakpoint): Set EXPLICIT_LOC for
555 set_breakpoint_location_function.
556 (update_breakpoint_locations): Remove static.
557 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
558 bp_gnu_ifunc_resolver_return.
559 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
560 bp_gnu_ifunc_resolver_return.
561 (update_breakpoint_locations): New declaration.
562 * elfread.c: Include gdbthread.h and regcache.h.
563 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
565 (elf_gnu_ifunc_fns): Install them.
566 * minsyms.c (stub_gnu_ifunc_resolver_stop)
567 (stub_gnu_ifunc_resolver_return_stop): New functions.
568 (stub_gnu_ifunc_fns): Install them.
569 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
570 and gnu_ifunc_resolver_return_stop.
571 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
573 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
575 STT_GNU_IFUNC reader implementation.
576 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
577 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
578 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
579 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
580 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
581 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
582 (elf_gnu_ifunc_resolve_addr): New.
583 (elf_symfile_read): Call elf_rel_plt_read.
584 (elf_gnu_ifunc_fns): New.
585 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
586 Install elf_gnu_ifunc_fns.
587 * infcall.c (find_function_return_type): New function.
588 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
589 * minsyms.c (stub_gnu_ifunc_resolve_addr)
590 (stub_gnu_ifunc_resolve_name): New functions.
591 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
592 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
593 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
595 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
597 Code cleanup for later STT_GNU_IFUNC support.
598 * infcall.c (find_function_addr): Remove variable code, use explicit
599 dereferences for it. Move VALUE_TYPE initialization later.
601 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
603 GDB find_pc_partial_function support for STT_GNU_IFUNC.
604 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
605 (clear_pc_function_cache): Clear it.
606 (find_pc_partial_function): Rename to ...
607 (find_pc_partial_function_gnu_ifunc): ... this function. New
608 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
609 (find_pc_partial_function): New wrapper for this function.
610 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
612 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
614 GDB internal type support for STT_GNU_IFUNC.
615 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
616 (elf_symtab_read): Set mst_text_gnu_ifunc for
617 BSF_GNU_INDIRECT_FUNCTION.
618 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
619 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
620 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
621 nodebug_got_plt_symbol.
622 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
623 (TYPE_GNU_IFUNC): New.
624 (struct main_type): New field flag_gnu_ifunc.
625 (struct builtin_type): New field builtin_func_func.
626 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
627 nodebug_got_plt_symbol.
628 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
629 (in_gnu_ifunc_stub): New.
630 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
632 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
633 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
634 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
636 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
637 * symtab.c (search_symbols): Likewise.
638 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
639 and mst_slot_got_plt.
640 (in_gnu_ifunc_stub): New declaration.
642 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
644 Support a ring of related breakpoints.
645 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
646 other functions, add gdb_assert.
647 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
648 watchpoint_del_at_next_stop.
649 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
650 (bpstat_stop_status): Handle ring in related_breakpoint.
651 (set_raw_breakpoint_without_location): Initialize ring in
653 (delete_breakpoint): Handle ring in related_breakpoint, use
654 watchpoint_del_at_next_stop.
655 (map_breakpoint_numbers): Handle ring in related_breakpoint.
657 2011-03-28 Tom Tromey <tromey@redhat.com>
660 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
661 with `language_minimal'.
663 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
665 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
666 instead of checking for STT_ARM_TFUNC symbol type.
668 2011-03-25 Tom Tromey <tromey@redhat.com>
670 * linespec.c (symbol_found): Restore line-based result for
671 non-LOC_LABEL symbols.
673 2011-03-25 Kai Tietz <ktietz@redhat.com>
675 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
676 instead of strcmp for comparison.
677 (tui_source_is_displayed): Likewise.
678 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
680 2011-03-24 Mark Wielaard <mjw@redhat.com>
682 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
684 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
685 (find_partial_die_in_comp_unit): Likewise in comment.
686 (read_attribute_value): Likewise.
687 (lookup_die_type): Likewise.
688 (dwarf_form_name): Likewise.
689 (dump_die_shallow): Likewise.
690 (follow_die_ref_or_sig): Likewise.
692 2011-03-24 Tom Tromey <tromey@redhat.com>
694 PR breakpoints/11816:
695 * linespec.c (decode_line_1): Parse `function:label' linespecs.
696 (decode_compound): Update.
697 (find_function_symbol): New function.
698 (decode_dollar): Update.
699 (decode_label): Add 'function_symbol' parameter. Handle
700 function-relative labels.
701 (decode_variable): Update.
702 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
703 not its line. Set `special_display' and canonical name for
706 2011-03-24 Tom Tromey <tromey@redhat.com>
708 * linespec.h (struct linespec_result) <special_display>: New
710 * breakpoint.h (struct breakpoint) <display_canonical>: New
712 * breakpoint.c (print_breakpoint_location): Respect
714 (create_breakpoint_sal): Add 'display_canonical' parameter.
715 (create_breakpoints_sal): Update.
716 (create_breakpoint): Update.
718 2011-03-24 Tom Tromey <tromey@redhat.com>
720 * symtab.c (decode_line_spec): Update.
721 * linespec.c (build_canonical_line_spec): Change type of
723 (decode_line_2, decode_line_1, decode_objc, decode_compound)
724 (find_method, decode_all_digits, decode_dollar, decode_label)
725 (symbol_found): Likewise.
726 (init_linespec_result): New function.
727 * breakpoint.c (struct captured_parse_breakpoint_args)
728 <canonical_p>: New field, replaces addr_string_p.
729 (create_breakpoints_sal): Add 'canonical' parameter, replacing
731 (parse_breakpoint_sals): Likewise.
732 (do_captured_parse_breakpoint): Update.
733 (create_breakpoint): Use struct linespec_result.
734 (until_break_command): Update.
735 (breakpoint_re_set_one): Update.
736 (decode_line_spec_1): Update.
737 * linespec.h (struct linespec_result): New.
738 (init_linespec_result): Declare.
740 2011-03-23 Pedro Alves <pedro@codesourcery.com>
742 * regcache.c (regcache_raw_read): If the target didn't supply a
743 given raw register, mark it as unavailable.
745 2011-03-23 Kai Tietz <ktietz@redhat.com>
747 * breakpoint.c (clear_command): Use filename_cmp
748 instead of strcmp for comparison.
749 * buildsym.c (watch_main_source_file_lossage): Likewise.
750 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
751 checking just for slash.
752 * dbxread.c (read_dbx_symtab): Use lbasename instead of
753 strrchr and filename_cmp instead of strcmp for filenames.
754 (add_old_header_file): Use filename_cmp
755 instead of strcmp for comparison.
756 * exec.c (exec_set_section_address): Likewise.
757 * macrotab.c (macro_lookup_inclusion): Likewise.
758 (macro_lookup_inclusion): Likewise.
759 * elfread.c (_initialize_elfread): Likewise.
760 (elfstab_offset_sections): Likewise.
761 (elfstab_offset_sections): Use lbasename instead of
763 * mdebugread.c (parse_partial_symbols): Likewise.
764 (arse_partial_symbols): Use filename_(n)cmp instead of
765 str(n)cmp for comparison.
766 * minsyms.c (lookup_minimal_symbol): Likewise.
767 * psymtab.c (read_psymtabs_with_filename): Likewise.
768 * solib.c (solib_read_symbols): Likewise.
769 (reload_shared_libraries_1): Likewise.
770 * symmisc.c (maintenance_print_symbols): Likewise.
771 * symfile.c (separate_debug_file_exists): Likewise.
772 (reread_symbols): Likewise.
773 (find_separate_debug_file_by_debuglink): Likewise.
774 * remote-fileio.c (remote_fileio_func_rename): Likewise.
775 * source.c (add_path): Likewise.
776 * symtab.c (filename_seen): Likewise.
777 (file_matches): Likewise.
778 (print_symbol_info): Likewise.
779 (maybe_add_partial_symtab_filename): Likewise.
780 (make_source_files_completion_list): Likewise.
781 * xml-syscall.c (init_sysinfo): Likewise.
782 * windows-nat.c (_initialize_check_for_gdb_ini): Use
783 IS_DIR_SEPARATOR for checking for trailing path separator.
785 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
788 label abort_expression.
789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
790 DWARF_VALUE_OPTIMIZED_OUT.
792 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
795 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
796 to linkage_name. Invert its value. Update the function comment.
797 (c_type_print_varspec_suffix): Invert it at the caller.
798 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
800 2011-03-22 Pedro Alves <pedro@codesourcery.com>
802 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
803 errors when reading the `stop_pc'.
804 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
807 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
809 * NEWS: Document gdb.Write stream keyword.
811 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
814 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
815 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
816 (dwarf2_add_field): Fix new_field->accessibility for
817 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
819 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
823 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
824 other error classes. Do not print stack trace.
826 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
828 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
829 (dwarf2_add_field): Fix new_field->accessibility for
830 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
832 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
834 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
835 encountering a load via a non-SP register.
837 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
839 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
840 field in returned unwinder.
842 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
844 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
846 2012-03-21 Joel Brobecker <brobecker@adacore.com>
848 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
851 2012-03-18 Pedro Alves <pedro@codesourcery.com>
853 * frame.c (frame_unwind_register): Throw an error if unwinding the
855 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
856 an unwind stop reason.
857 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
858 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
859 UNWIND_UNAVAILABLE>: New.
860 * inline-frame.c (inline_frame_unwind): Install
861 default_frame_unwind_stop_reason.
862 * frame-unwind.c: Include "exceptions.h".
863 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
864 (default_frame_unwind_stop_reason): New.
865 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
866 (default_frame_unwind_stop_reason): Declare.
867 (struct frame_unwind) <stop_reason>: New function pointer.
869 * dummy-frame.c: Install default_frame_unwind_stop_reason.
870 * dwarf2-frame.c: Include exceptions.h.
871 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
872 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
873 computing the CFA. If such an error was thrown, set
875 (dwarf2_frame_unwind_stop_reason): New.
876 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
878 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
879 (dwarf2_signal_frame_unwind): Ditto.
881 * amd64-tdep.c: Include "exceptions.h".
882 (struct amd64_frame_cache): New field "base_p".
883 (amd64_init_frame_cache): Clear it.
884 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
885 Avoid reading registers with functions that throw if the register
886 is not necessary to compute the frame base.
887 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
888 swallowing NOT_AVAILABLE_ERROR.
889 (amd64_frame_unwind_stop_reason): New.
890 (amd64_frame_this_id): Don't build a frame id if the frame base
892 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
893 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
894 base_p if the frame base was computable.
895 (amd64_sigtramp_frame_unwind_stop_reason): New.
896 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
897 frame base was unavailable.
898 (amd64_sigtramp_frame_unwind): Install
899 amd64_sigtramp_frame_unwind_stop_reason.
900 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
901 base_p if the frame base was computable.
902 (amd64_epilogue_frame_unwind_stop_reason): New.
903 (amd64_epilogue_frame_this_id): Don't build a frame id if the
904 frame base was unavailable.
905 (amd64_epilogue_frame_unwind): Install
906 amd64_epilogue_frame_unwind_stop_reason.
907 * i386-tdep.c: Include "exceptions.h".
908 (struct i386_frame_cache): New field "base_p".
909 (i386_init_frame_cache): Clear it.
910 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
911 Avoid reading registers with functions that throw if the register
912 is not necessary to compute the frame base.
913 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
914 swallowing NOT_AVAILABLE_ERROR.
915 (i386_frame_unwind_stop_reason): New.
916 (i386_frame_this_id): Don't build a frame id if the frame base was
918 (i386_frame_prev_register): Handle unavailable SP.
919 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
920 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
921 base_p if the frame base was computable.
922 (i386_epilogue_frame_unwind_stop_reason): New.
923 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
924 base was unavailable.
925 (i386_epilogue_frame_unwind): Install
926 i386_epilogue_frame_unwind_stop_reason.
927 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
928 base_p if the frame base was computable.
929 (i386_sigtramp_frame_unwind_stop_reason): New.
930 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
931 base was unavailable.
932 (i386_sigtramp_frame_unwind): Install
933 i386_sigtramp_frame_unwind_stop_reason.
934 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
935 type's size, not the register's.
936 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
938 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
939 default_frame_unwind_stop_reason.
940 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
941 (alpha_heuristic_frame_unwind): Ditto.
942 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
943 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
944 * avr-tdep.c (avr_frame_unwind): Ditto.
945 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
947 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
948 * frv-tdep.c (frv_frame_unwind): Ditto.
949 * h8300-tdep.c (h8300_frame_unwind): Ditto.
950 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
951 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
952 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
953 (hppa_stub_frame_unwind): Ditto.
954 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
955 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
956 (ia64_libunwind_frame_unwind)
957 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
958 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
959 * lm32-tdep.c (lm32_frame_unwind): Ditto.
960 * m32c-tdep.c (m32c_unwind): Ditto.
961 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
962 * m32r-tdep.c (m32r_frame_unwind): Ditto.
963 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
964 * m68k-tdep.c (m68k_frame_unwind): Ditto.
965 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
966 * m88k-tdep.c (m88k_frame_unwind): Ditto.
967 * mep-tdep.c (mep_frame_unwind): Ditto.
968 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
969 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
970 (mips_stub_frame_unwind): Ditto.
971 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
972 * moxie-tdep.c (moxie_frame_unwind): Ditto.
973 * mt-tdep.c (mt_frame_unwind): Ditto.
974 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
975 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
976 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
977 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
978 (s390_sigtramp_frame_unwind): Ditto.
979 * score-tdep.c (score_prologue_unwind): Ditto.
980 * sh-tdep.c (sh_frame_unwind): Ditto.
981 * sh64-tdep.c (sh64_frame_unwind): Ditto.
982 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
983 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
984 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
985 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
986 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
987 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
988 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
989 (sparc64obsd_trapframe_unwind): Ditto.
990 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
991 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
992 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
993 * v850-tdep.c (v850_frame_unwind): Ditto.
994 * vax-tdep.c (vax_frame_unwind): Ditto.
995 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
996 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
997 * xtensa-tdep.c (xtensa_unwind): Ditto.
999 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1001 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1002 there's always a frame. Use get_frame_pc_if_available instead of
1003 get_frame_pc, and if there's no PC available, don't look up a
1006 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1008 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1011 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1013 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1016 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1018 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1019 * frame.c (frame_unwind_caller_pc_if_available): New.
1020 * stack.c (frame_info): Handle unavailable PC.
1022 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1024 * frame.c (frame_unwind_pc): Rename to ...
1025 (frame_unwind_pc_if_available): ... this. New `pc' output
1026 parameter. Change return type to int. Gracefully handle
1027 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1028 happened, or 1 otherwise.
1029 (frame_unwind_pc): Reimplement on top of
1030 frame_unwind_pc_if_available.
1031 (get_frame_func): Rename to ...
1032 (get_frame_func_if_available): New `pc' output parameter. Change
1033 return type to int. Gracefully handle the PC not being available.
1034 (get_frame_func): Reimplement on top of
1035 get_frame_func_if_available.
1036 (select_frame): Handle the PC being unavailable.
1037 (get_prev_frame): Handle the PC being unavailable.
1038 (get_frame_pc_if_available): New.
1039 (get_frame_address_in_block_if_available): New.
1040 (find_frame_sal): Handle the frame PC not being available.
1041 * frame.h (get_frame_pc_if_available): Declare.
1042 (get_frame_address_in_block_if_available): Declare.
1043 (get_frame_func_if_available): Declare.
1044 * stack.c (print_frame_info): Handle the PC being unavailable.
1045 (find_frame_funname): Ditto.
1046 (print_frame): Handle the PC being unavailable.
1047 (get_frame_language): Ditto.
1048 * blockframe.c (get_frame_block): Ditto.
1049 * macroscope.c (default_macro_scope): Ditto.
1050 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1052 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1054 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1055 NOT_AVAILABLE_ERROR when evaluating the location expression.
1057 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1059 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1060 returning that the register piece is unavailable/optimized out.
1061 (write_pieced_value): Handle get_frame_register_bytes returning
1062 that the register piece is unavailable/optimized out when doing a
1063 read-modify write of a bitfield.
1064 * findvar.c (value_from_register): Handle get_frame_register_bytes
1065 returning that the register piece is unavailable/optimized out.
1066 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1067 and `unavailablep'. Throw error on bad debug info. Use
1068 frame_register instead of frame_register_read, to fill in the new
1070 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1072 * valops.c: (value_assign): Adjust, and handle
1073 get_frame_register_bytes failing.
1074 * spu-tdep.c: Include exceptions.h.
1075 (spu_software_single_step): Adjust, and handle
1076 get_frame_register_bytes failing.
1077 (spu_get_longjmp_target): Ditto.
1078 * gdbarch.sh (register_to_value): Change to return int. New
1079 parameters `optimizedp' and `unavailablep'.
1080 * gdbarch.h, gdbarch.c: Regenerate.
1081 * i386-tdep.c (i386_register_to_value): Adjust to new
1082 gdbarch_register_to_value interface.
1083 * i387-tdep.c (i387_register_to_value): Ditto.
1084 * i387-tdep.h (i387_register_to_value): Ditto.
1085 * alpha-tdep.c (alpha_register_to_value): Ditto.
1086 * ia64-tdep.c (ia64_register_to_value): Ditto.
1087 * m68k-tdep.c (m68k_register_to_value): Ditto.
1088 * mips-tdep.c (mips_register_to_value): Ditto.
1089 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1091 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1093 * findvar.c (value_of_register): Mark the value as unavailable, if
1094 the register is unavailable.
1095 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1096 (frame_register): New `unavailablep' parameter.
1097 (frame_register_read): Update comment.
1098 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1099 Set it if the register is unavailable. If the register is
1100 unavailable, clear the output buffer.
1101 (frame_register): New `unavailablep' parameter. Pass it down.
1102 (frame_unwind_register): Adjust.
1103 (put_frame_register): Adjust.
1104 (frame_register_read): Adjust. Also return false if the register
1106 (frame_register_unwind_location): Adjust.
1107 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1108 is unavailable, mark the value accordingly.
1109 * stack.c (frame_info): Handle unavailable registers.
1111 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1113 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1114 simplify, using regcache_cooked_read.
1116 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1118 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1119 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1120 (regcache_raw_read_unsigned, regcache_raw_read_part)
1121 (regcache_cooked_read, regcache_cooked_read_signed)
1122 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1123 (regcache_cooked_read_ftype): Change return to enum
1125 * regcache.c: Include exceptions.h
1126 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1127 (do_cooked_read): Change return to enum register_status. Always
1128 forward to regcache_cooked_read.
1129 (regcache_raw_read): Change return to enum register_status. If
1130 the register is not REG_VALID, memset the buffer. Return the
1132 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1133 return the register's status.
1134 (regcache_raw_read_unsigned): Ditto.
1135 (regcache_cooked_read): Change return to enum register_status.
1136 Assert that with read-only regcaches, the register's status must
1137 be known. If the regcache is read-only, and the register is not
1138 REG_VALID, memset the buffer. Return the register's status.
1139 (regcache_cooked_read_signed): Change return to enum
1140 register_status. Handle non-REG_VALID registers and return the
1142 (regcache_cooked_read_unsigned): Change return to enum
1143 register_status. Handle non-REG_VALID registers and return the
1145 (regcache_xfer_part, regcache_raw_read_part)
1146 (regcache_cooked_read_part): Change return to enum
1147 register_status. Return the register's status.
1148 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1150 (regcache_dump): Handle unavailable cooked registers.
1151 * frame.c (do_frame_register_read): Adjust interface to match
1152 regcache_cooked_read_ftype.
1153 * gdbarch.sh (pseudo_register_read): Change return to enum
1155 * gdbarch.h, gdbarch.c: Regenerate.
1157 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1159 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1160 register_status. If reading a raw register indicates the raw
1161 register is not valid, return the raw register's status,
1162 otherwise, return REG_VALID.
1163 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1164 register_status. Handle non-REG_VALID raw registers and return
1165 the register's status.
1166 * arm-tdep.c (arm_neon_quad_read)
1167 (arm_pseudo_read): Change return to enum register_status. Handle
1168 non-REG_VALID raw registers and return the register's status.
1169 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1170 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1171 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1172 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1173 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1175 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1176 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1177 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1178 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1179 (m32c_pseudo_register_read): Change return to enum
1180 register_status. Adjust.
1181 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1182 enum register_status. Return the register's status.
1183 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1184 register_status. Return the register's status.
1185 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1186 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1187 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1188 * rs6000-tdep.c (move_ev_register_func): New typedef.
1189 (e500_move_ev_register): Use it. Change return to enum
1190 register_status. Return the register's status.
1191 (do_regcache_raw_read): New function.
1192 (do_regcache_raw_write): New function.
1193 (e500_pseudo_register_read): Change return to enum
1194 register_status. Return the register's status. Use
1195 do_regcache_raw_read.
1196 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1197 (dfp_pseudo_register_read): Change return to enum register_status.
1198 Return the register's status.
1199 (vsx_pseudo_register_read): Ditto.
1200 (efpr_pseudo_register_read): Ditto.
1201 (rs6000_pseudo_register_read): Ditto.
1202 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1203 register_status. Return the register's status.
1204 * sh64-tdep.c (pseudo_register_read_portions): New function.
1205 (sh64_pseudo_register_read): Change return to enum
1206 register_status. Use pseudo_register_read_portions. Return the
1208 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1209 register_status. Return the register's status.
1210 * sh-tdep.c (pseudo_register_read_portions): New function.
1211 (sh_pseudo_register_read): Change return to enum register_status.
1212 Use pseudo_register_read_portions. Return the register's status.
1213 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1214 enum register_status. Return the register's status.
1215 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1216 * spu-tdep.c (spu_pseudo_register_read_spu)
1217 (spu_pseudo_register_read): Ditto.
1218 * xtensa-tdep.c (xtensa_register_read_masked)
1219 (xtensa_pseudo_register_read): Ditto.
1220 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1222 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1224 * python/py-value.c (valpy_getitem): Fix formatting of error function
1227 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1229 ARI fixes: Add missing internationalization markups throughout
1231 * darwin-nat-info.c: Ditto.
1234 * mi/mi-main.c: Ditto.
1236 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1238 ARI fixes: Add missing internationalization markups throughout
1241 * cp-name-parser.y: Ditto.
1244 * objc-exp.y: Ditto.
1247 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1249 ARI fixes: Messages should have no trailing new lines.
1250 * darwin-nat.c (mach_check_error): Remove trailing new line from
1251 warning function call message.
1252 * record.c (bfdcore_read): Idem for error call.
1254 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1256 * common/signals.c (target_signal_from_host): Add _ markup to error
1257 function call message.
1258 (target_signal_to_host): Add _ markup and remove trailing new line
1259 from warning call message.
1260 (target_signal_from_command): Add _ markup to error function call
1263 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1267 * python/python.c (gdbpy_write): Accept a stream argument and
1268 operate to the appropriate stream.
1269 (gdbpy_flush): Likewise.
1270 (_initialize_python): Add stream constants.
1271 (finish_python_initialization): Add GdbOutputErrorFile class.
1273 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1275 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1277 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1279 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1280 to store_signed_integer. Add debug message when relocating CALL
1281 instructions. Fix formatting of debug message.
1282 * i386-tdep.c (i386_relocate_instruction): Ditto.
1284 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1286 * target.h (struct target_ops): Remove to_lookup_symbol field.
1287 (target_lookup_symbol): Delete macro.
1288 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1289 (update_current_target, setup_target_debug): Remove handling
1290 of to_lookup_symbol target_ops field.
1291 * ada-tasks.c (get_known_tasks_addr): Remove use of
1292 target_lookup_symbol.
1293 * coffread.c (coff_symtab_read): Likewise.
1294 * dbxread.c (read_dbx_symtab): Ditto.
1296 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1299 * configure.ac: Add getthrds declaration check.
1300 * configure, config.in: Regenerate.
1301 * aix-thread.c (getthrds): Declare only if not already declared
1302 in procinfo.h. More declaration out of get_signaled_thread to
1305 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1307 * python/py-symtab.c: Populate symtab_object_methods,
1309 (stpy_is_valid): New function.
1310 (salpy_is_valid): Ditto.
1311 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1312 (sympy_is_valid): New function.
1313 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1314 (objfpy_is_valid): New function.
1315 * python/py-inferior.c: Populate inferior_object_methods.
1316 (infpy_is_valid): New function.
1317 * python/py-infthread.c: Populate thread_object_methods.
1318 (thpy_is_valid): New function.
1319 * python/py-block.c: Declare block_object_methods. Populate. Declare
1320 block_iterator_object_methods. Populate.
1321 (blpy_is_valid): New function.
1322 (blpy_iter_is_valid): Ditto.
1324 2011-03-16 Keith Seitz <keiths@redhat.com>
1326 * linespec.c (find_methods): Canonicalize NAME before looking
1328 (name_end): New function.
1329 (keep_name_info): New function.
1330 (decode_line_1): Use keep_name_info.
1331 (decode_compound): Likewise.
1332 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1333 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1336 * linespec.c (locate_first_half): Keep overload information, too.
1337 (decode_compound): Use a string to represent break characters
1339 If P points to a break character, do not increment it.
1340 For C++ and Java, keep overload information and relevant keywords.
1341 If we cannot find a symbol, search the minimal symbols.
1344 * linespec.c (decode_compound): Rename SAVED_ARG to
1346 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1348 Pass a valid block to lookup_symbol.
1349 (lookup_prefix_sym): Likewise.
1350 (find_method): Construct search name based on SYM_CLASS instead
1352 * psymtab.c (lookup_partial_symbol): Add language parameter.
1353 (lookup_symbol_aux_psymtabs): Likewise.
1354 Don't assume that the psymtab we found was the right one. Search
1355 for the desired symbol in the symtab to be certain.
1356 (psymtab_search_name): New function.
1357 (lookup_partial_symbol): Use psymtab_search_name.
1358 Add language parameter.
1359 (read_symtabs_for_function): Add language parameter and pass to
1360 lookup_partial_symbol.
1361 (find_symbol_file_from_partial): Likewise.
1363 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1366 * dwarf2read.c (noop_record_line): New function.
1367 (dwarf_decode_lines): Ignore line tables for GCd functions.
1369 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1371 Fix ARI warnings about new lines at the end of messages, which
1372 are unneeded as there is a new line added at the end of the message
1374 * darwin-nat.c (darwin_stop_inferior): Ditto.
1375 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1376 * dfp.c (decimal_to_number): Ditto.
1377 * exec.c (print_section_info): Ditto.
1378 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1379 * osdata.c (get_osdata): Ditto.
1380 * record.c (bfdcore_write): Ditto.
1381 * remote-mips.c (mips_readchar): Ditto.
1382 * remote.c (read_ptid): Ditto.
1383 * ser-mingw.c (ser_windows_raw): Ditto.
1384 * tracepoint.c (add_local_symbols): Ditto.
1385 * windows-nat.c (fake_create_process): Ditto.
1387 2011-03-16 Tom Tromey <tromey@redhat.com>
1389 * tracepoint.c (stop_tracing): Don't declare.
1390 * event-top.c (after_char_processing_hook): Add `(void)'.
1392 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1394 * NEWS: Add Parameter sub-classing description.
1396 2011-03-16 Kai Tietz <ktietz@redhat.com>
1398 * MAINTAINERS: Update my e-mail address.
1400 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1402 * MAINTAINERS: Add myself for write after approval privileges.
1404 2011-03-15 Michael Snyder <msnyder@vmware.com>
1406 * frame.c (find_frame_sal): Assert sym is not null.
1408 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1410 * objc-lang.c (selectors_info): Check strchr for null result.
1412 * stabsread.c (define_symbol): Guard against bad stabstring input.
1414 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1416 Remove trailing spaces and tabulations from pascal language
1421 p-valprint.c: Ditto.
1423 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1425 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1426 than LOW. Comment it.
1427 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1428 HIGHPC not strictly higher than LOWPC.
1430 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1432 Fix formatting of function declarations returning a pointer in
1434 * varobj.c (varobj_add_child): Ditto.
1435 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1436 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1438 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1441 for the "generic" vector ABI used with GCC 4.3 and later.
1442 (ppc64_sysv_abi_return_value): Likewise.
1444 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1446 * infcall.c (call_function_by_hand): Function return value is
1447 always a non_lval, even when using struct_return.
1449 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1451 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1452 (map_display_numbers): New.
1453 (do_delete_display): New.
1454 (undisplay_command): Use map_display_numbers.
1455 (do_enable_disable_display): New.
1456 (enable_disable_display_command): New function.
1457 (enable_display): Delete.
1458 (enable_display_command): New.
1459 (disable_display_command): Reimplement.
1460 (_initialize_printcmd): Adjust "enable display" command to use
1461 `enable_display_command' as callback.
1463 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1465 * NEWS: Add Python breakpoint 'stop' operation.
1467 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1469 * NEWS: Delete duplicate entry. Fix typo.
1471 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1473 Fix ARI warning about function names in first column.
1474 Put prototype declaration on same line as return type.
1475 * objc-exp.y: Ditto.
1477 * python/py-stopevent.h: Ditto.
1478 For long function names, split parameters to
1479 allow function name on same line as return type.
1480 * solib-pa64.c: Ditto.
1483 For long function declaration, use single line.
1484 * hppa-tdep.h: Ditto.
1485 * inferior.h: Ditto.
1487 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1489 * python/python.h: Declare gdbpy_should_stop and
1490 gdbpy_breakpoint_has_py_cond.
1491 * python/python.c: Add python.h to includes. Remove python.h from
1492 HAVE_PYTHON definition
1493 (gdbpy_should_stop): New dummy function.
1494 (gdbpy_breakpoint_has_py_cond): New dummy function.
1495 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1496 sub-classing capabilities.
1497 (gdbpy_should_stop): New function.
1498 (gdbpy_breakpoint_has_py_cond): New function.
1499 (local_setattro): New function.
1500 * breakpoint.c (condition_command): Add check for Python 'stop'
1502 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1503 operation function as part of stop/continue tests.
1505 2011-03-14 Tom Tromey <tromey@redhat.com>
1508 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1509 (needs_frame_dwarf_call): Likewise.
1511 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1513 Fix ARI warning about functions without parameters that do not
1515 * breakpoint.c (all_tracepoints): Replace () by (void).
1516 * f-exp.y (match_string_literal): Ditto.
1518 * m2-exp.y (yylex): Ditto.
1519 * mep-tdep.c (current_me_module): Ditto.
1520 (current_options): Ditto.
1521 (current_cop_data_bus_width): Ditto.
1522 (current_cr_names): Ditto.
1523 (current_cr_is_float): Ditto.
1524 (current_ccr_names): Ditto.
1525 * objc-exp.y (yylex): Ditto.
1526 * p-exp.y (yylex): Ditto.
1527 * remote.c (send_interrupt_sequence): Ditto.
1528 * tracepoint.c (current_trace_status): Ditto.
1529 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1530 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1532 2011-03-11 Michael Snyder <msnyder@vmware.com>
1534 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1535 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1536 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1537 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1538 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1540 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1541 (delete_async_event_handler): Ditto.
1543 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1545 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1547 * top.c (set_verbose): Assert showcmd was found.
1549 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1551 * xtensa-tdep.c (warning_once): Correct style issues.
1553 2011-03-11 Yao Qi <yao@codesourcery.com>
1555 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1557 2011-03-11 Andreas Schwab <schwab@redhat.com>
1559 * common/aclocal.m4: Remove.
1561 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1563 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1564 (xtensa_write_register, xtensa_read_register): Likewise.
1565 (xtensa_hextochar): Removed.
1566 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1568 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1570 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1571 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1572 (xtensa_alloc_frame_cache): Add initialization for new fields.
1573 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1574 (warning_once): New function.
1575 (xtensa_insn_kind): New item c0opc_and.
1576 (call0_classify_opcode): Add the case for AND instruction.
1577 (call0_track_op): Change arguments. New local variable litbase.
1578 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1579 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1581 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1582 (call0_analyze_prologue): Update the comments. Change arguments.
1583 Add the variety of updates to handle extended prologues, which now can
1584 conduct dynamic stack adjustments.
1585 (call0_frame_cache): Likewise.
1586 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1587 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1589 2011-03-10 Michael Snyder <msnyder@vmware.com>
1591 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1592 (cmd_qtframe): Ditto.
1593 (cmd_qtbuffer): Ditto.
1594 (cmd_bigqtbuffer): Ditto.
1596 2011-03-10 Tom Tromey <tromey@redhat.com>
1598 * tracepoint.c (trace_actions_command): Update.
1599 * thread.c (thread_apply_command): Update.
1600 * reverse.c (delete_bookmark_command): Update.
1601 (bookmarks_info): Update.
1602 * printcmd.c (undisplay_command): Update.
1603 * memattr.c (mem_enable_command): Update.
1604 (mem_disable_command): Update.
1605 (mem_delete_command): Update.
1606 * inferior.c (detach_inferior_command): Update.
1607 (kill_inferior_command): Update.
1608 (remove_inferior_command): Update.
1609 * cli/cli-utils.h (struct get_number_or_range_state): New.
1610 (init_number_or_range): Declare.
1611 (get_number_or_range): Update.
1612 * cli/cli-utils.c (init_number_or_range): New function.
1613 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1615 (number_is_in_list): Update.
1616 * breakpoint.h (get_tracepoint_by_number): Update.
1617 * breakpoint.c (map_breakpoint_numbers): Update for change to
1618 get_number_or_range.
1619 (find_location_by_number): Use get_number, not
1620 get_number_or_range.
1621 (trace_pass_set_count): New function.
1622 (trace_pass_command): Update for change to get_number_or_range.
1624 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1627 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1629 * python/py-param.c (add_setshow_generic): Add set/show callback
1630 parameters. Register Python object context.
1631 (get_show_value): New function.
1632 (get_set_value): New function.
1633 (call_doc_function): New function.
1634 (get_doc_string): Move behind get_show_value/get_set_value.
1636 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1638 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1640 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1642 * xtensa-tdep.c (xtensa_read_register): Add comment.
1643 (xtensa_write_register): Likewise.
1644 (xtensa_hextochar): Add comment and update to match coding conventions.
1645 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1646 (execute_l32e, execute_s32e, execute_code): Update comments.
1647 (xtensa_exception_handler_t): Update to match coding conventions.
1648 (xtensa_insn_kind): Likewise.
1650 2011-03-09 Michael Snyder <msnyder@vmware.com>
1652 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1654 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1656 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1658 2011-03-09 Tom Tromey <tromey@redhat.com>
1660 * thread.c (restore_selected_frame): Handle frame_level == -1.
1661 (make_cleanup_restore_current_thread): Use
1662 get_selected_frame_if_set.
1663 * frame.h (get_selected_frame_if_set): Declare.
1664 * frame.c (get_selected_frame_if_set): New function.
1666 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1668 * cli/cli-cmds.c (shell_escape): Use lbasename.
1669 * coffread.c (coff_start_symtab): Constify parameter.
1670 (complete_symtab): Constify `name' parameter.
1671 (coff_symtab_read): Constify `filestring' local.
1672 (coff_getfilename): Constify return and `result' local.
1674 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1675 * linux-fork.c (info_checkpoints_command): Use lbasename.
1676 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1677 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1678 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1679 * procfs.c (procfs_make_note_section): Use lbasename.
1680 * tui/tui-io.c (printable_part): Constity return and parameter.
1682 (print_filename): Constify parameters, and local `s'.
1683 (tui_rl_display_match_list): Constify local `temp'.
1685 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 Fix DWARF-3+ DW_AT_accessibility default assumption.
1690 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1691 cu->header.version >= 3.
1693 2011-03-09 Yao Qi <yao@codesourcery.com>
1695 * common/Makefile.in: Remove.
1696 * common/configure: Remove.
1697 * common/configure.ac: Remove.
1699 2011-03-09 Yao Qi <yao@codesourcery.com>
1702 2011-02-11 Yao Qi <yao@codesourcery.com>
1704 * common/Makefile.in: Add copyright header.
1706 2011-02-11 Yao Qi <yao@codesourcery.com>
1708 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1710 * configure.ac: Add common to sub dir.
1711 * configure: Regenerate.
1713 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1715 * xtensa-tdep.c (call0_ret): New function.
1716 (xtensa_skip_prologue): Speed up analysis.
1718 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1720 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1721 while executing MI command -data-list-changed-registers.
1723 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1725 * xtensa-tdep.c (xtensa_read_register): New function.
1726 (xtensa_write_register): New function.
1727 (xtensa_find_register_by_name): New function.
1728 (xtensa_windowed_frame_cache): Update comments in type description.
1729 (xtensa_frame_cache): Likewise.
1730 (xtensa_window_interrupt_insn): New function.
1731 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1732 (xtensa_insn_kind): Add new instructions.
1733 (rwx_special_register): New function.
1734 (call0_classify_opcode): Add new instructions to the analysis.
1735 (a0_saved, a7_saved, a11_saved): New variables.
1736 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1737 (execute_l32e): New function.
1738 (execute_s32e): New function.
1739 (xtensa_exception_handler_t): New type.
1740 (execute_code): New function.
1741 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1742 analysis for Xtensa Window Exception handlers.
1744 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1746 * xtensa-tdep.c (TX_PS): New.
1747 (windowing_enabled): Update to count for Call0 ABI.
1748 (xtensa_hextochar): New.
1749 (xtensa_init_reggroups): Make algorithm generic.
1750 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1752 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1754 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1756 2011-03-08 Michael Snyder <msnyder@vmware.com>
1758 * i386-tdep.c (i386_follow_jump): Check return value of
1760 (i386_analyze_struct_return): Ditto.
1761 (i386_skip_probe): Ditto.
1762 (i386_match_insn): Ditto.
1763 (i386_skip_noop): Ditto.
1764 (i386_analyze_frame_setup): Ditto.
1765 (i386_analyze_register_saves): Ditto.
1766 (i386_skip_prologue): Ditto.
1767 (i386_skip_main_prologue): Ditto.
1769 * target.c (read_whatever_is_readable): Fix memory leak.
1771 * i386-tdep.c (i386_process_record): Document fall through.
1773 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1775 Fix DWARF-3+ DW_AT_accessibility default assumption.
1776 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1777 cu->header.version >= 3.
1779 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1781 * remote.c (remote_check_symbols): Skip if the target has no
1784 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1786 * target.c (read_whatever_is_readable): Reformat comment,
1787 with a minor typo fix. Minor reformatting of the code.
1789 2011-03-08 Yao Qi <yao@codesourcery.com>
1791 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1792 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1793 Use cached result instead of calling displaced_in_arm_mode again.
1794 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1795 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1796 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1797 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1798 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1799 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1800 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1801 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1802 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1803 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1804 (arm_catch_kernel_helper_return): Likewise.
1805 * gdb/arm-tdep.h : Update function declarations.
1807 2011-03-07 Michael Snyder <msnyder@vmware.com>
1809 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1811 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1813 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1815 * elfread.c (elf_symtab_read): Stop memory leak.
1817 * main.c (captured_main): Fix memory leak.
1819 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1821 * ada-lang.c (compare_names): Call is_name_suffix with string1
1824 2011-03-07 Tom Tromey <tromey@redhat.com>
1826 * xcoffread.c (xcoff_sym_fns): Update.
1827 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1828 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1829 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1830 (symbol_file_add_with_addrs_or_offsets): Likewise.
1831 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1832 * somread.c (som_sym_fns): Update.
1833 * psymtab.h (require_partial_symbols): Declare.
1834 * psymtab.c (require_partial_symbols): New function.
1835 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1836 (ALL_OBJFILE_PSYMTABS): Undef.
1837 (ALL_PSYMTABS): Move from psympriv.h.
1838 (lookup_partial_symtab, find_pc_sect_psymtab)
1839 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1840 (find_last_source_symtab_from_partial)
1841 (forget_cached_source_info_partial)
1842 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1843 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1844 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1845 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1846 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1847 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1848 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1849 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1850 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1852 * mipsread.c (ecoff_sym_fns): Update.
1853 * machoread.c (macho_sym_fns): Update.
1854 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1855 (read_psyms): New function.
1856 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1857 (elf_sym_fns_lazy_psyms): New global.
1858 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1859 dwarf2_build_psymtabs.
1860 * dbxread.c (aout_sym_fns): Update.
1861 * coffread.c (coff_sym_fns): Update.
1863 2011-03-07 Tom Tromey <tromey@redhat.com>
1865 * infrun.c (print_exited_reason): Include inferior id and pid in
1868 2011-03-07 Tom Tromey <tromey@redhat.com>
1870 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1872 (target_has_execution_1): Update.
1873 (target_has_execution_current): Declare.
1874 (target_has_execution): Call target_has_execution_current.
1875 (default_child_has_execution): Update.
1876 * target.c (default_child_has_execution): Add 'the_ptid'
1878 (target_has_execution_1): Likewise.
1879 (target_has_execution_current): New function.
1880 (add_target): Update.
1881 (init_dummy_target): Update.
1882 * remote-m32r-sdi.c (m32r_has_execution): New function.
1883 (init_m32r_ops): Use it.
1884 * record.c (record_core_has_execution): Now static. Add
1885 'the_ptid' parameter.
1886 * inferior.c (have_live_inferiors): Don't save current thread.
1887 Use target_has_execution_1.
1889 2011-03-07 Yao Qi <yao@codesourcery.com>
1891 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1893 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1895 * elfread.c (elf_symtab_read): Minor reformatting.
1897 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1899 * objc-lang.c (selectors_info): Minor reformatting.
1901 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1903 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1905 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1906 Michael Snyder <msnyder@vmware.com>
1908 * ada-valprint.c (ada_val_print_array): Move the declaration of
1909 "byte_order" and "elttype" inside the block where these variables
1910 are actually used. Remove some special handling for the case
1911 where "elttype" and "eltlen" are null. Replace by a comment
1912 and a couple of assertion checks.
1914 2011-03-05 Michael Snyder <msnyder@vmware.com>
1916 * source.c (add_path): Replace semicolon at end of block.
1917 * dwarf2expr.c (execute_stack_op): Ditto.
1919 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1921 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1922 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1923 (bfin-*-*): Likewise.
1925 2011-03-05 Michael Snyder <msnyder@vmware.com>
1927 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1928 * mdebugread.c (parse_symbol): Ditto.
1929 * parse.c (parse_exp_in_context): Ditto.
1930 * source.c (add_path): Ditto.
1931 * utils.c (gnu_debuglink_crc32): Ditto.
1932 * varobj.c (variable_language): Ditto.
1934 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1936 2011-03-04 Michael Snyder <msnyder@vmware.com>
1938 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1940 * symfile.c (simple_overlay_update): Check for null return value
1941 from lookup_minimal_symbol.
1943 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1945 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1947 * eval.c (parse_and_eval_address_1): Remove function.
1948 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1949 instead of parse_and_eval_address_1.
1950 * value.h (parse_and_eval_address_1): Remove prototype.
1952 2011-03-04 Michael Snyder <msnyder@vmware.com>
1954 * remote.c (putpkt_binary): Document that case stmt falls through.
1956 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1958 * breakpointc (print_it_typical): Move NULL check from here...
1959 (print_bp_stop_message): ... to here.
1961 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1963 * breakpoint.c (enable_command): Use break instead of continue,
1964 and fill in a missing break.
1965 (disable_command): Ditto.
1967 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1969 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1970 (terminal_save_ours): Remove misleading comment.
1971 (inflow_inferior_data_cleanup): Free ttystate.
1972 (inflow_inferior_exit): Likewise.
1973 (copy_terminal_info): Copy ttystate.
1975 * serial.c (serial_copy_tty_state): New function.
1976 * serial.h (serial_copy_tty_state): Add prototype.
1977 (struct serial_ops): Add copy_tty_state callback.
1978 * ser-base.c (ser_base_copy_tty_state): New function.
1979 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1980 * ser-go32.c (dos_copy_tty_state): New function.
1981 (dos_ops): Install copy_tty_state callback.
1982 * ser-mingw.c (_initialize_ser_windows): Likewise.
1983 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1984 * ser-unix.c (hardwire_copy_tty_state): New function.
1985 (_initialize_ser_hardwire): Install it.
1987 2011-03-04 Michael Snyder <msnyder@vmware.com>
1989 * breakpoint.c (create_breakpoint): Add missing break statement.
1991 Reverting this patch:
1992 * infcall.c (call_function_by_hand): Add break statements for lint.
1994 Reverting this patch:
1995 * cli/cli-script.c (script_from_file): Add break for lint.
1997 2011-03-04 Michael Snyder <msnyder@vmware.com>
1999 * solib.c (reload_shared_libraries_1): Close memory leak.
2001 2011-03-03 Tom Tromey <tromey@redhat.com>
2004 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2007 2011-03-03 Michael Snyder <msnyder@vmware.com>
2009 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2010 fields of struct 'st' to zero.
2012 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2013 sal.pspace before calling set_current_source_symtab_and_line.
2015 2011-03-03 Yao Qi <yao@codesourcery.com>
2017 * Makefile.in (configure-common): Remove. Let Makefile
2018 in dir common to rebuild itself.
2019 (common/Makefile): Likewise.
2021 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2023 * utils.c (parse_escape): Add i18n markup in error message.
2025 2011-03-03 Yao Qi <yao@codesourcery.com>
2027 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2029 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2030 (displaced_write_reg, displaced_read_reg): Likewise.
2031 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2032 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2033 (cleanup_branch): Replace magic number 14 and 15 with
2034 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2036 2011-03-02 Michael Snyder <msnyder@vmware.com>
2038 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2040 * cli/cli-script.c (script_from_file): Add break for lint.
2042 * mdebugread.c (parse_partial_symbols): Fix indent.
2044 * target-descriptions.c (tdesc_gdb_type): No need to call
2045 xstrdup, callee saves a copy.
2047 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2049 * infcall.c (call_function_by_hand): Add break statements for lint.
2051 * utils.c (parse_escape): Escape the escape char.
2053 * python/py-inferior.c (build_inferior_list): Error out if
2054 PyList_Append fails.
2055 (gdbpy_inferiors): Error out if build_inferior_list fails.
2057 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2060 * record.c (record_restore): Move printf to before error return.
2062 2011-03-02 Yao Qi <yao@codesourcery.com>
2064 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2065 is_thumb and insn_size.
2066 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2067 on both ARM and Thumb mode.
2068 (arm_process_displaced_insn): Set is_thumb and insn_size.
2069 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2070 (arm_displaced_step_fixup): Likewise.
2072 2011-03-01 Michael Snyder <msnyder@vmware.com>
2074 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2076 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2078 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2080 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2082 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2085 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2086 which shadows function parameter.
2088 * tracepoint.c (create_tsv_from_upload): Superfluous call
2089 to xstrdup. Callee already calls xstrdup.
2091 * linespec.c (decode_line_1): Remove unnecessary null check.
2093 * tracepoint.c (scope_info): Fix mem leak, remove underused
2096 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2097 superfluous null check.
2099 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2100 (value_of_builtin_frame_fp_reg): Ditto.
2102 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2104 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2107 * linespec.c (decode_line_1): Check for null before dereference.
2109 * reverse.c (record_restore): Move null-check to before pointer
2112 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2114 * objc-lang.c (selectors_info): Add explanitory comment.
2115 (classes_info): Ditto.
2117 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2119 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2120 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2121 versions of the trampoline. Handle Thumb vs. ARM addresses.
2122 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2123 (arm_linux_init_abi): Install it.
2124 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2125 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2127 2011-02-28 Michael Snyder <msnyder@vmware.com>
2129 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2130 a little bigger, to avoid possibility of an overflow.
2132 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2133 buffers a little bigger, to avoid possibility of an overflow.
2135 * coffread.c (coff_getfilename): Add check to avoid overflow.
2137 * objc-lang.c (selectors_info): Add a small safety margin to
2139 (classes_info): Error out on too long REGEXP.
2141 * infrun.c (handle_inferior_event): Remove unused function call.
2143 * fork-child.c (fork_inferior): Remove ifdef'd code and
2146 * linux-thread-db.c (attach_thread): Discard unused value.
2148 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2150 * remote.c (remote_get_noisy_reply): Discard unused value.
2151 (remote_vcont_resume): Ditto.
2152 (remote_stop_ns): Ditto.
2154 * linespec.c (decode_objc): Delete unused variable.
2156 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2158 * dwarf2read.c (add_partial_symbol): Discard unused values.
2159 (read_base_type): Delete unused variable.
2161 * dbxread.c (read_dbx_symtab): Discard unused value.
2163 * eval.c (evaluate_subexp_standard): Delete unused variable,
2164 and discard unused values.
2166 * infcmd.c (_initialize_infcmd): Discard unused values.
2168 * stabsread.c (rs6000_builtin_type): Missing break statement.
2170 * dbxread.c (process_one_symbol): Discard unused value.
2172 * coffread.c (coff_end_symtab): Delete unused variable.
2174 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2175 (dwarf2_add_typedef): Delete unused variable.
2176 (read_namespace): Ditto.
2177 (dwarf_decode_macros): Ditto.
2179 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2181 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2183 * p-valprint.c (pascal_val_print): Discard unused value.
2185 * utils.c (nquery): Call va_end before return;
2189 * proc-service.c (ps_plog): Call va_end before return.
2191 2011-02-28 Tom Tromey <tromey@redhat.com>
2193 * python/python.c (gdbpy_value_cst): New global.
2194 (_initialize_python): Initialize it.
2195 * python/python-internal.h (gdbpy_value_cst): Declare.
2196 * python/py-value.c (convert_value_from_python): Use
2199 2011-02-28 Michael Snyder <msnyder@vmware.com>
2201 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2203 * breakpoint.c (catch_syscall_completer): Free malloced list.
2205 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2207 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2208 (lval_func_check_synthetic_pointer): Ditto.
2209 (lval_func_free_closure): Fix use-after-free.
2211 2011-02-28 Tom Tromey <tromey@redhat.com>
2213 * psymtab.c (expand_partial_symbol_tables): Use
2214 ALL_OBJFILE_PSYMTABS.
2216 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2218 * objc-lang.c (selectors_info): Error on too long REGEXP.
2220 2011-02-28 Michael Snyder <msnyder@vmware.com>
2222 * python/py-param.c (set_parameter_value): Add missing
2225 * linux-record.c (record_linux_system_call): Add missing
2228 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2230 * breakpoint.c (print_one_breakpoint_location): Remove unused
2231 argument PRINT_ADDRESS_BITS. Update callers.
2232 (print_one_breakpoint): Likewise.
2234 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2236 * breakpoint.c (wrap_indent_at_field): New function.
2237 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2238 Allocate ui_stream locally instead of using STB argument.
2239 (print_one_breakpoint_location): Update call.
2240 * ui-out.c (ui_out_query_field): New function.
2241 * ui-out.h (ui_out_query_field): Add prototype.
2243 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2245 From Michael Snyder <msnyder@vmware.com>
2246 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2248 2011-02-27 Michael Snyder <msnyder@vmware.com>
2250 * objc-lang.c (selectors_info): Prevent string overrun.
2252 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2255 * symtab.c (rbreak_command): Move variable 'file_name' to
2258 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2259 param with a local variable of the same name.
2261 2011-02-27 Michael Snyder <msnyder@vmware.com>
2263 * value.c (value_from_history_ref): New function.
2264 * value.h (value_from_history_ref): Export.
2265 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2266 to parse value history references.
2267 * cli/cli-utils.h (get_number_trailer): Update comment.
2269 2011-02-27 Michael Snyder <msnyder@vmware.com>
2271 * inferior.c (detach_inferior_command): Use get_number_or_range.
2272 (kill_inferior_command): Ditto.
2273 (remove_inferior_command): Ditto.
2274 (initialize_inferiors): Make command names plural.
2275 Update help strings.
2277 2011-02-27 Michael Snyder <msnyder@vmware.com>
2279 * darwin-nat-info.c: Fix comment typo.
2280 * dwarf2expr.h: Ditto.
2281 * fbsd-nat.c: Ditto.
2282 * fbsd-nat.h: Ditto.
2283 * frame-unwind.h: Ditto.
2285 * hppa-hpux-tdep.c: Ditto.
2286 * i386-linux-nat.c: Ditto.
2287 * linux-nat.c: Ditto.
2288 * nbsd-nat.c: Ditto.
2289 * nbsd-nat.h: Ditto.
2290 * ppc-linux-tdep.c: Ditto.
2293 * tui/tui-winsource.c: Ditto.
2295 2011-02-26 Michael Snyder <msnyder@vmware.com>
2297 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2299 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2301 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2302 with a local variable of the same name.
2304 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2305 param with a local variable of the same name.
2306 (i387_supply_xsave): Ditto.
2308 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2309 that it does not shadow a function parameter.
2311 * i386-nat.c (i386_length_and_rw_bits): Document that case
2312 statement is meant to fall through.
2314 * expprint.c (dump_subexp_body_standard): Document that case
2315 statement is meant to fall through.
2317 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2318 dead if statement. Condition can't be false.
2320 2011-02-25 Michael Snyder <msnyder@vmware.com>
2322 * arm-tdep.c: Fix typos in comments.
2323 * bsd-uthread.c: Ditto.
2324 * completer.c: Ditto.
2326 * cp-namespace.c: Ditto.
2327 * cp-support.c: Ditto.
2328 * cris-tdep.c: Ditto.
2330 * dwarf2read.c: Ditto.
2332 * gdbtypes.h: Ditto.
2333 * inferior.h: Ditto.
2334 * mdebugread.c: Ditto.
2335 * mips-tdep.c: Ditto.
2336 * ppc-linux-nat.c: Ditto.
2337 * ppc-linux-tdep.c: Ditto.
2338 * printcmd.c: Ditto.
2339 * sol-thread.c: Ditto.
2340 * solib-frv.c: Ditto.
2342 * sparc64-tdep.c: Ditto.
2343 * spu-tdep.c: Ditto.
2344 * stabsread.c: Ditto.
2349 * python/py-block.c: Ditto.
2350 * python/py-symbol.c: Ditto.
2351 * python/py-symtab.c: Ditto.
2352 * python/py-value.c: Ditto.
2353 * tui/tui-win.c: Ditto.
2355 2011-02-25 Michael Snyder <msnyder@vmware.com>
2357 * inferior.c (print_inferior): Accept a string instead of an int
2358 for requested_inferiors, and use get_number_or_range to parse it.
2359 (info_inferiors_command): Pass args string to print_inferior.
2360 (initialize_inferiors): Change help string for info inferiors.
2361 * inferior.h (print_inferior): Export prototype change.
2363 2011-02-25 Tom Tromey <tromey@redhat.com>
2365 * common/ax.def (invalid2): Set to 0x31.
2367 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2369 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2371 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2373 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2375 2011-02-24 Michael Snyder <msnyder@vmware.com>
2377 * Makefile.in (clean): Make clean should remove generated files
2378 observer.h and observer.inc.
2380 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2382 Revert the following patch (not approved yet):
2383 2011-02-21 Hui Zhu <teawater@gmail.com>
2384 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2385 * ax-gdb.c (gen_printf_expr_callback): New function.
2386 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2387 * ax-general.c (ax_memcpy): New function.
2388 (ax_print): Handle "printf".
2390 * ax.h (ax_memcpy): Forward declare.
2391 * common/ax.def (invalid2): Removed.
2392 (printf): New entry.
2393 * printcmd.c (printcmd.h): New include.
2394 (string_printf): New function.
2395 (ui_printf): Removed.
2396 (printf_command): Remove static. Call string_printf.
2397 (eval_command): Call string_printf.
2398 * printcmd.h: New file.
2399 * tracepoint.c (validate_actionline,
2400 encode_actions_1): handle printf_command.
2402 2011-02-23 Tom Tromey <tromey@redhat.com>
2404 * ax-general.c (ax_pick): Add missing newline.
2406 2011-02-23 Michael Snyder <msnyder@vmware.com>
2408 * breakpoint.c (breakpoint_1): Change first argument from an int
2409 to a char pointer, so that the function now accepts a list of
2410 breakpoints rather than just one. Use new function
2411 'number_is_in_list' to implement.
2412 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2413 (watchpoints_info): Ditto.
2414 (tracepoints_info): Ditto.
2415 (maintenance_info_breakpoints): Ditto.
2416 (_initialize_breakpoint): Update help strings to reflect the fact
2417 that these functions can now take more than one argument.
2418 * cli/cli-utils.c (number_is_in_list): New function.
2419 * cli/cli-utils.h (number_is_in_list): Export.
2421 2011-02-23 Michael Snyder <msnyder@vmware.com>
2423 * memattr.c (mem_enable_command): Use get_number_or_range.
2424 (mem_disable_command): Ditto.
2425 (mem_delete_command): Ditto.
2426 (_initialize_mem): Tweak usage message to reflect multiple
2429 2011-02-22 Doug Evans <dje@google.com>
2431 Add gdb.lookup_global_symbol python function.
2433 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2434 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2435 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2437 2011-02-22 Tom Tromey <tromey@redhat.com>
2439 * language.c (language_class_name_from_physname): Rename
2440 'curr_language' argument to 'lang'; use in body.
2442 2011-02-22 Michael Snyder <msnyder@vmware.com>
2444 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2446 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2448 * frame-unwind.h: Fix comment to mention the this frame, not the
2451 2011-02-22 Tom Tromey <tromey@redhat.com>
2453 * symfile.c (auto_solib_limit): Remove.
2454 * symfile.h (auto_solib_limit): Remove.
2456 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2458 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2460 2011-02-21 Michael Snyder <msnyder@vmware.com>
2462 * gdbthread.h (print_thread_info): Change prototype.
2463 * thread.c (print_thread_info): Accept char* instead of int for
2464 requested_threads argument. Use new function number_is_in_list
2465 to determine which threads to list.
2466 (info_threads_command): Pass char* to print_thread_info.
2467 * cli/cli-utils.c (number_is_in_list): New function.
2468 * cli/cli-utils.h (number_is_in_list): Export.
2469 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2471 (print_one_inferior): Ditto.
2472 (mi_cmd_list_thread_groups): Ditto.
2474 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2476 * common/Makefile.in (CFLAGS): New.
2477 (COMPILE): Add $(CFLAGS).
2479 2011-02-21 Tom Tromey <tromey@redhat.com>
2481 * breakpoint.c (catch_syscall_command_1): Fix typo.
2483 2011-02-21 Tom Tromey <tromey@redhat.com>
2485 * reverse.c: Include cli-utils.h.
2486 * printcmd.c: Include cli-utils.h.
2487 (string_printf): Use skip_spaces.
2488 * cli/cli-utils.h: New file.
2489 * cli/cli-utils.c: New file.
2490 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2491 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2492 * breakpoint.h (get_number, get_number_or_range): Move to
2494 * breakpoint.c: Include cli-utils.h.
2495 (get_number_trailer, get_number, get_number_or_range)
2496 (ep_skip_leading_whitespace): Move to cli-utils.c.
2497 (create_breakpoint_sal, find_condition_and_thread)
2498 (decode_static_tracepoint_spec, watch_command_1)
2499 (watch_maybe_just_location, ep_parse_optional_if_clause)
2500 (catch_fork_command_1, catch_exec_command_1)
2501 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2502 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2503 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2504 (HFILES_NO_SRCDIR): Add cli-utils.h.
2505 (cli-utils.o): New target.
2507 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2509 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2510 before calling discard_all_inferiors.
2512 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2514 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2515 (struct builtin_opencl_type): Remove.
2516 (builtin_opencl_type): Change return type to "struct type **".
2517 (lookup_opencl_vector_type): Update caller.
2518 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2519 (build_opencl_types): Install plain array of "struct type *"
2520 instead of "struct builtin_opencl_type".
2522 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2523 Ulrich Weigand <uweigand@de.ibm.com>
2525 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2526 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2527 (struct arm_linux_hwbp_cap): New type.
2528 (arm_linux_get_hwbp_cap): New function.
2529 (arm_linux_get_hw_breakpoint_count): Likewise.
2530 (arm_linux_get_hw_watchpoint_count): Likewise.
2531 (arm_linux_can_use_hw_breakpoint): Likewise.
2532 (arm_hwbp_type): New type.
2533 (arm_hwbp_control_t): Likewise.
2534 (struct arm_linux_hw_breakpoint): Likewise.
2535 (struct arm_linux_thread_points): Likewise.
2536 (arm_threads): New global variable.
2537 (arm_linux_find_breakpoints_by_tid): New function.
2538 (arm_hwbp_control_initialize): Likewise.
2539 (arm_hwbp_control_is_enabled): Likewise.
2540 (arm_hwbp_control_disable): Likewise.
2541 (arm_linux_hw_breakpoint_initialize): Likewise.
2542 (arm_linux_get_hwbp_type): Likewise.
2543 (arm_linux_hw_watchpoint_initialize): Likewise.
2544 (arm_linux_hw_breakpoint_equal): Likewise.
2545 (arm_linux_insert_hw_breakpoint1): Likewise.
2546 (arm_linux_remove_hw_breakpoint1): Likewise.
2547 (arm_linux_insert_hw_breakpoint): Likewise.
2548 (arm_linux_remove_hw_breakpoint): Likewise.
2549 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2550 (arm_linux_insert_watchpoint): Likewise.
2551 (arm_linux_remove_watchpoint): Likewise.
2552 (arm_linux_stopped_data_address): Likewise.
2553 (arm_linux_stopped_by_watchpoint): Likewise.
2554 (arm_linux_watchpoint_addr_within_range): Likewise.
2555 (arm_linux_new_thread): Likewise.
2556 (arm_linux_thread_exit): Likewise.
2557 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2558 related target callbacks. Register arm_linux_new_thread and
2559 arm_linux_thread_exit.
2560 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2561 * arm-tdep.c (arm_pc_is_thumb): Make global.
2562 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2564 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2566 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2567 per-frame locations while within a function epilogue.
2569 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2571 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2572 to GNU coding standards.
2574 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2576 Allow use of mingw native on Windows 95 OS.
2577 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2578 (ser_windows_close): Only call CancelIo if function exists.
2579 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2580 to check for existence of CancelIo function in kernel32 DLL.
2582 2011-02-21 Hui Zhu <teawater@gmail.com>
2584 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2585 * ax-gdb.c (gen_printf_expr_callback): New function.
2586 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2587 * ax-general.c (ax_memcpy): New function.
2588 (ax_print): Handle "printf".
2590 * ax.h (ax_memcpy): Forward declare.
2591 * common/ax.def (invalid2): Removed.
2592 (printf): New entry.
2593 * printcmd.c (printcmd.h): New include.
2594 (string_printf): New function.
2595 (ui_printf): Removed.
2596 (printf_command): Remove static. Call string_printf.
2597 (eval_command): Call string_printf.
2598 * printcmd.h: New file.
2599 * tracepoint.c (validate_actionline,
2600 encode_actions_1): handle printf_command.
2602 2011-02-19 Michael Snyder <msnyder@vmware.com>
2604 * reverse.c (delete_one_bookmark): Argument is now bookmark
2605 id rather than pointer to bookmark struct.
2606 (delete_bookmark_command): Use get_number_or_range.
2607 (goto_bookmark_command): Parse with get_number instead of strtoul.
2608 (bookmark_1): New function. Print info for one bookmark.
2609 (bookmarks_info): Use get_number_or_range and bookmark_1.
2611 2011-02-18 Michael Snyder <msnyder@vmware.com>
2613 * thread.c (info_threads_command): Re-implement using
2614 get_number_or_range.
2615 (thread_apply_command): Ditto.
2617 2011-02-18 Tom Tromey <tromey@redhat.com>
2619 * common/ax.def: New file.
2620 * ax.h (enum agent_op): Use ax.def.
2621 * ax-general.c (aop_map): Use ax.def.
2623 2011-02-18 Tom Tromey <tromey@redhat.com>
2625 * ax-general.c (aop_map): Add pick and rot.
2626 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2627 <DW_OP_rot>: Implement.
2628 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2630 * ax-general.c (ax_pick): New function.
2632 2011-02-18 Tom Tromey <tromey@redhat.com>
2634 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2636 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 Tom Tromey <tromey@redhat.com>
2639 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2640 make_symbol_overload_list_block with NULL BLOCK.
2641 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2643 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2645 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2646 * breakpoint.h (get_number_or_range): Declare.
2647 * printcmd.c (ALL_DISPLAYS): Declare.
2648 (delete_display): Reimplement taking a display pointer.
2649 (undisplay_command): Accept a range of displays to delete, using
2650 get_number_or_range.
2652 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2654 * c-valprint.c (c_val_print): Add embedded_offset to address
2655 for arrays of unspecified length.
2656 * p-valprint.c (pascal_val_print): Likewise.
2658 2011-02-18 Yao Qi <yao@codesourcery.com>
2660 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2661 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2662 (thumb_process_displaced_insn): New.
2663 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2664 call to arm_process_displaced_insn.
2665 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2667 2011-02-17 Tom Tromey <tromey@redhat.com>
2669 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2670 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2671 compile_dwarf_to_ax. No longer static. Call
2672 dwarf2_compile_cfa_to_ax.
2673 (locexpr_tracepoint_var_ref): Update.
2674 (loclist_tracepoint_var_ref): Update.
2675 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2676 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2677 argument; add 'gdbarch' and 'pc'.
2678 (dwarf2_compile_cfa_to_ax): New function.
2679 (dwarf2_frame_cache): Update.
2681 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2683 * ada-lang.c (ada_type_of_array): Fix the size of the array
2684 in the case of an unconstrained packed array.
2686 2011-02-17 Yao Qi <yao@codesourcery.com>
2688 * common/Makefile.in: Add more targets for make.
2690 2011-02-16 Tom Tromey <tromey@redhat.com>
2692 * dwarf2loc.c (unimplemented): Fix typo.
2694 2011-02-16 Tom Tromey <tromey@redhat.com>
2696 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2697 (compile_dwarf_to_ax) <default>: Use unimplemented.
2698 <DW_OP_deref>: Update.
2699 (disassemble_dwarf_expression): Update.
2700 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2701 (decode_locdesc): Update.
2702 * dwarf2expr.h (dwarf_stack_op_name): Update.
2704 2011-02-16 Tom Tromey <tromey@redhat.com>
2706 * ax.h (struct aop_map) <name>: Now const.
2708 2011-02-16 Tom Tromey <tromey@redhat.com>
2710 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2713 2011-02-16 Yao Qi <yao@codesourcery.com>
2715 * infrun.c (get_displaced_step_closure_by_addr): New.
2716 * inferior.h: Declare it.
2717 * arm-tdep.c: (arm_pc_is_thumb): Call
2718 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2721 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2722 Jan Kratochvil <jan.kratochvil@redhat.com>
2725 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2727 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2728 Jan Kratochvil <jan.kratochvil@redhat.com>
2730 * value.c (value_contents_copy_raw): Extend describing comment.
2731 Assert that the destination contents we're overwriting are wholly
2733 (value_contents_copy): Extend describing comment.
2735 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2736 Jan Kratochvil <jan.kratochvil@redhat.com>
2738 * value.c (value_available_contents_eq): Remove redundant local
2739 variables. Fix available contents comparision.
2740 * value.h (value_available_contents_eq): Extend describing
2743 2011-02-16 Yao Qi <yao@codesourcery.com>
2745 * thread.c (info_threads_command): Add missing i18n markup and remove
2748 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2750 * breakpoint.c (longjmp_names): New variable.
2751 (struct breakpoint_objfile_data): New type.
2752 (breakpoint_objfile_key): New variable.
2753 (msym_not_found): New variable.
2754 (msym_not_found_p): New predicate.
2755 (get_breakpoint_objfile_data): New function.
2756 (create_overlay_event_breakpoint): Check per-objfile cache for
2758 (create_longjmp_master_breakpoint): Likewise.
2759 (create_std_terminate_master_breakpoint): Likewise.
2760 (create_exception_master_breakpoint): Likewise.
2761 (_initialize_breakpoint): Register per-objfile data key.
2763 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2765 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2767 (create_longjmp_master_breakpoint): Loop over longjmp names.
2768 (create_std_terminate_master_breakpoint): Const-propagate parameter
2770 (update_breakpoints_after_exec): Adjust.
2771 (breakpoint_re_set): Adjust.
2773 2011-02-15 Michael Snyder <msnyder@vmware.com>
2775 * thread.c (info_threads_command): Process arg as thread id,
2776 or list of thread ids.
2777 (thread_find_command): New command.
2778 (_initialize_thread): Document argument for info threads.
2779 Document 'thread find' command.
2780 * NEWS: Document new command "thread find".
2782 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2784 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2785 * aclocal.m4: Regenerated with aclocal-1.11.1.
2786 * common/configure: Regenerate with autoconf-2.64.
2788 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2790 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2791 bool data type to a size of one byte.
2793 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2794 Jan Kratochvil <jan.kratochvil@redhat.com>
2796 * target.c (memory_xfer_live_readonly_partial): Document where to
2797 look for interface description.
2799 2011-02-15 Yao Qi <yao@codesourcery.com>
2802 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2803 order to store PC value on stack instead of text section.
2805 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2807 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2808 the EFP register set size.
2809 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2810 data from the VMX register.
2811 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2812 and write data from/to the VMX register.
2814 2011-02-14 Michael Snyder <msnyder@vmware.com>
2816 * command.h (enum command_class): New class 'no_set_class', for
2817 "show" commands without a corresponding "set" command.
2818 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2819 * copying.c (_initialize_copying): Ditto for "show copying" and
2821 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2823 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2824 which there is no corresponding "set" command (eg. "show copying").
2826 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2827 Jan Kratochvil <jan.kratochvil@redhat.com>
2829 * exec.c (section_table_available_memory): Change `len' parameter
2831 * exec.h (section_table_available_memory): Ditto.
2832 * value.h (read_value_memory): Rename the `offset' parameter to
2835 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2836 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 * memrange.c (compare_mem_ranges): Mention sort order in
2840 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2841 * tracepoint.c (traceframe_available_memory): Extend comment to
2842 mention what happens to RESULT when the target does not support
2845 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2846 Jan Kratochvil <jan.kratochvil@redhat.com>
2848 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2851 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2853 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2854 No longer handle NULL values.
2856 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2858 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2859 * value.c: Include "exceptions.h".
2860 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2862 * cp-abi.c: Include gdb_assert.h.
2863 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2864 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2866 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2867 parameters. No longer returns -1 on error.
2868 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2870 * cp-valprint.c: Include exceptions.h.
2871 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2872 the baseclass_offset. Handle unavailable base classes. Use
2873 val_print_invalid_address.
2874 * p-valprint.c: Include exceptions.h.
2875 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2876 when fetching the baseclass_offset. No longer expect
2877 baseclass_offset returning -1. Handle unavailable base classes.
2878 Use val_print_invalid_address.
2879 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2880 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2881 `embedded_offset' and `val' parameters. Adjust.
2882 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2883 parameter, and change its type to gdb_byte pointer. Add
2884 `embedded_offset' and `val' parameters. Adjust. No longer expect
2885 baseclass_offset returning -1.
2886 (value_dynamic_cast): Use value_contents_for_printing rather than
2887 value_contents. Adjust.
2888 (search_struct_field): No longer expect baseclass_offset returning
2890 (search_struct_method): If reading memory from the target is
2891 necessary, wrap it in a new value to pass to baseclass_offset. No
2892 longer expect baseclass_offset returning -1.
2893 (find_method_list): No longer expect baseclass_offset returning
2894 -1. Use value_contents_for_printing rather than value_contents.
2895 * valprint.c (val_print_invalid_address): New function.
2896 * valprint.h (val_print_invalid_address): Declare.
2897 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2898 and `val' parameters. No longer expect baseclass_offset returning
2900 * gnu-v2-abi.c: Include "exceptions.h".
2901 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2902 parameters. Handle unavailable memory. Recurse through
2903 gnuv2_baseclass_offset directly, rather than through
2904 baseclass_offset. No longer returns -1 on not found, instead
2906 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2907 `val' parameters. Adjust.
2909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2911 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2912 almost but not quite adjacent.
2914 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2916 * value.h (value_entirely_available): Declare.
2917 * value.c (value_entirely_available): New function.
2918 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2919 real type if the pointer is unavailable.
2921 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2923 * valops.c (value_repeat): Use read_value_memory instead of
2926 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2928 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2929 * value.c (value_contents_copy_raw, value_contents_copy): New
2931 (value_primitive_field): Use value_contents_copy_raw instead of
2933 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2935 (value_array, value_slice): Ditto.
2936 * valarith.c (value_subscripted_rvalue): Use
2937 value_contents_copy_raw instead of memcpy.
2939 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2941 <unavailable> references.
2943 * valops.c (get_value_at): Use value_from_contents_and_address,
2944 avoiding read_memory.
2946 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2948 * c-valprint.c (c_val_print): Print a string with unavailable
2949 contents as an array.
2951 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2953 * value.h (unpack_bits_as_long): Delete declaration.
2954 (unpack_value_bits_as_long): Declare.
2955 (unpack_value_field_as_long): Declare.
2956 (value_field_bitfield): Declare.
2957 * value.c (unpack_bits_as_long): Rename to...
2958 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2959 value parameters. Return the extracted result in a new output
2960 parameter. If the value contents are unavailable, return false,
2961 otherwise return true.
2962 (unpack_value_bits_as_long): New.
2963 (unpack_field_as_long): Rename to...
2964 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2965 Add embedded_offset and value parameters. Return the extracted
2966 result in a new output parameter. If the value contents are
2967 unavailable, return false, otherwise return true.
2968 (unpack_value_field_as_long): New.
2969 (unpack_field_as_long_1): New.
2970 (unpack_field_as_long): Reimplement as wrapper around
2971 unpack_value_field_as_long_1.
2972 (value_field_bitfield): New function.
2973 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2974 unpack_value_bits_as_long. Mark the value as unavailable, if it
2976 * jv-valprint.c (java_print_value_fields): Use
2977 value_field_bitfield.
2978 * p-valprint.c (pascal_object_print_value_fields): Use
2979 value_field_bitfield.
2980 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2982 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2984 * value.c (get_internalvar_integer): Also return the int value of
2985 TYPE_CODE_INT INTERNALVAR_VALUE values.
2986 (set_internalvar): Don't special case TYPE_CODE_INT.
2988 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2990 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2991 INTERNALVAR_POINTER.
2993 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2994 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2995 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2999 * value.h (value_available_contents_eq): Declare.
3000 * value.c (find_first_range_overlap): New function.
3001 (value_available_contents_eq): New function.
3002 * valprint.c (val_print_array_elements): Use
3003 value_available_contents_eq.
3004 * ada-valprint.c (val_print_packed_array_elements): Use
3005 value_available_contents_eq.
3006 * jv-valprint.c (java_value_print): Use
3007 value_available_contents_eq.
3009 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3011 * target.c (target_read_live_memory): New function.
3012 (memory_xfer_live_readonly_partial): New.
3013 (memory_xfer_partial): If reading from a traceframe, fallback to
3014 reading unavailable read-only memory from read-only regions of
3016 * tracepoint.c (disconnect_tracing): Adjust.
3017 (set_current_traceframe): New, factored out from
3018 set_traceframe_number.
3019 (set_traceframe_number): Reimplement to only change the traceframe
3020 number on the GDB side.
3021 (do_restore_current_traceframe_cleanup): Adjust.
3022 (make_cleanup_restore_traceframe_number): New.
3023 (cur_traceframe_number): New global.
3024 (tfile_open): Set cur_traceframe_number to no traceframe.
3025 (set_tfile_traceframe): New function.
3026 (tfile_trace_find): If looking up a traceframe using any method
3027 other than by number, make sure the current tfile traceframe
3028 matches gdb's current traceframe. Update the current tfile
3029 traceframe if the lookup succeeded.
3030 (tfile_fetch_registers, tfile_xfer_partial)
3031 (tfile_get_trace_state_variable_value): Make sure the remote
3032 traceframe matches gdb's current traceframe.
3033 * remote.c (remote_traceframe_number): New global.
3034 (remote_open_1): Set it to -1.
3035 (set_remote_traceframe): New function.
3036 (remote_fetch_registers, remote_store_registers)
3037 (remote_xfer_memory, remote_xfer_partial)
3038 (remote_get_trace_state_variable_value): Make sure the remote
3039 traceframe matches gdb's current traceframe.
3040 (remote_trace_find): If looking up a traceframe using any method
3041 other than by number, make sure the current remote traceframe
3042 matches gdb's current traceframe. Update the current remote
3043 traceframe if the lookup succeeded.
3044 * infrun.c (fetch_inferior_event): Adjust.
3045 * tracepoint.h (set_current_traceframe): Declare.
3046 (get_traceframe_number, set_traceframe_number): Add describing
3049 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3051 Mark pieces of values as unavailable if the corresponding memory
3054 * valops.c: Include tracepoint.h.
3055 (value_fetch_lazy): Use read_value_memory.
3056 (read_value_memory): New.
3057 * value.h (read_value_memory): Declare.
3058 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3059 * exec.c (section_table_available_memory): New function.
3060 * exec.h (section_table_available_memory): Declare.
3062 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3064 * Makefile.in (SFILES): Add memrange.c.
3065 (HFILES_NO_SRCDIR): Add memrange.h.
3066 (COMMON_OBS): Add memrange.o.
3067 * memrange.c: New file.
3068 * memrange.h: New file.
3069 * tracepoint.c: Include memrange.h.
3070 (struct mem_range): Delete.
3071 (mem_range_s): Delete.
3072 (traceframe_available_memory): New function.
3073 * tracepoint.h (traceframe_available_memory): Declare.
3075 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3077 * target.h (struct traceframe_info): Forward declare.
3078 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3079 (struct target_ops) <to_traceframe_info>: New field.
3080 (target_traceframe_info): New.
3081 * target.c (update_current_target): Inherit and default
3083 * remote.c (PACKET_qXfer_traceframe_info): New.
3084 (remote_protocol_features): Register qXfer:traceframe-info:read.
3085 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3086 (remote_traceframe_info): New.
3087 (init_remote_ops): Install it.
3088 (_initialize_remote): Install "set/show remote traceframe-info"
3090 * tracepoint.h (parse_traceframe_info): Declare.
3091 * tracepoint.c (struct mem_range): New.
3092 (mem_range_s): New typedef.
3093 (struct traceframe_info): New.
3094 (traceframe_info): New global.
3095 (free_traceframe_info): New function.
3096 (clear_traceframe_info): New function.
3097 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3099 (build_traceframe_info): New function.
3100 (tfile_traceframe_info): New function.
3101 (init_tfile_ops): Install tfile_traceframe_info.
3102 (traceframe_info_start_memory, free_result): New functions.
3103 (memory_attributes, traceframe_info_elements): New globals.
3104 (parse_traceframe_info, get_traceframe_info): New functions.
3105 * features/traceframe-info.dtd: New file.
3106 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3108 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3110 Base support for <unavailable> value contents.
3112 * value.h (value_bytes_available): Declare.
3113 (mark_value_bytes_unavailable): Declare.
3114 * value.c (struct range): New struct.
3115 (range_s): New typedef.
3116 (ranges_overlap): New function.
3117 (range_lessthan): New function.
3118 (ranges_contain_p): New function.
3119 (struct value) <unavailable>: New field.
3120 (value_bytes_available): New function.
3121 (mark_value_bytes_unavailable): New function.
3122 (require_not_optimized_out): Constify parameter.
3123 (require_available): New function.
3124 (value_contents_all, value_contents): Require all bytes be
3126 (value_free): Free `unavailable'.
3127 (value_copy): Copy `unavailable'.
3128 * valprint.h (val_print_unavailable): Declare.
3129 * valprint.c (valprint_check_validity): Rename `offset' parameter
3130 to `embedded_offset'. If printing a scalar, check whether the
3131 value chunk is available.
3132 (val_print_unavailable): New.
3133 (val_print_scalar_formatted): Check whether the value is
3135 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3136 pretty-printing unavailable values.
3138 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3141 * c-typeprint.c (c_type_print_args): Update the function comment. New
3142 variable param_type, initialize it. Remove const/volatile qualifiers
3143 for language_cplus and !show_artificial. Use param_type.
3145 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3147 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3148 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3149 * symtab.h (struct symtab) <next>: Comment extension.
3151 2011-02-12 Yao Qi <yao@codesourcery.com>
3153 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3155 2011-02-11 Yao Qi <yao@codesourcery.com>
3157 * common/Makefile.in: Add copyright header.
3159 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3161 * infrun.c (proceed): Move switching out and in of tfind mode from
3163 (fetch_inferior_event): ... to here.
3165 2011-02-11 Yao Qi <yao@codesourcery.com>
3167 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3169 * configure.ac: Add common to sub dir.
3170 * configure: Regenerate.
3172 2011-02-11 Yao Qi <yao@codesourcery.com>
3176 * common/Makefile.in: New.
3177 * common/configure.ac: New.
3178 * common/aclocal.m4: New.
3179 * common/configure: Generate.
3181 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3183 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3184 side of the parenthesis.
3187 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3188 * vec.h (VEC_block_remove): Fix comment.
3190 2011-02-08 Michael Snyder <msnyder@vmware.com>
3192 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3194 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3196 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3197 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3200 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3203 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3205 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3206 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3208 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3210 * dwarf2read.c (read_subroutine_type): Set special calling
3211 convention flag for functions compiled by IBM XL C for OpenCL.
3212 * ppc-sysv-tdep.c: Include "dwarf2.h"
3213 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3215 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3216 IBM OpenCL vector types calling convention.
3217 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3218 (ppc_sysv_abi_broken_return_value): Likewise.
3219 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3220 types calling convention.
3221 (ppc64_sysv_abi_return_value): Likewise.
3222 * spu-tdep.c: Include "dwarf2.h"
3223 (spu_return_value): Implement IBM OpenCL vector types calling
3226 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3228 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3229 correct ABI for AltiVec vector arguments.
3231 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3233 * valprint.c (val_print): Extend comment.
3234 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3235 interface explanation to val_print.
3236 (ada_val_print_array): Adjust comment to current interface.
3237 (print_field_values): Adjust comment to current interface.
3238 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3239 explanation to val_print.
3240 * f-valprint.c (f_val_print): Ditto.
3241 * jv-valprint.c (java_val_print): Ditto.
3242 * m2-valprint.c (m2_val_print): Ditto.
3243 * p-valprint.c (pascal_val_print): Ditto.
3245 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3247 * breakpoint.c (parse_breakpoint_sals): Fix description.
3249 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3250 Oguz Kayral <oguzkayral@gmail.com>
3252 * python/py-inferior.c (python_on_normal_stop): New function.
3253 (python_on_resume): New function.
3254 (python_inferior_exit): New function.
3255 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3256 inferior_exit observers.
3257 * python/py-evtregistry.c: New file.
3258 * python/py-threadevent.c : New file.
3259 * python/py-event.c: New file.
3260 * python/py-evts.c: New file.
3261 * python/py-continueevent.c: New file.
3262 * python/py-bpevent.c: New file.
3263 * python/py-signalevent.c: New file.
3264 * python/py-exetiedevent.c: New file.
3265 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3266 Move struct breakpoint_object from here...
3267 * python/python-internal.h: ... to here.
3268 * python/py-event.h: New file.
3269 * python/py-events.h: New file.
3270 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3271 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3272 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3273 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3274 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3275 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3276 Add build rules for all the above.
3278 2011-02-04 Tom Tromey <tromey@redhat.com>
3280 * dwarf2read.c (dwarf2_section_empty_p): New function.
3281 (dwarf2_read_section): Use dwarf2_section_empty_p.
3282 (dwarf2_section_size): New function.
3283 (dwarf2_get_section_info): Unconditionally read section.
3284 (dwarf2_read_index): Use dwarf2_section_empty_p.
3285 (partial_read_comp_unit_head): Use dwarf2_section_size.
3286 (dwarf2_symbol_mark_computed): Likewise.
3288 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3290 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3292 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3294 * mips-linux-tdep.c: Include xml-syscall.h.
3295 (mips_linux_get_syscall_number): New function.
3296 (mips_linux_init_abi): Add calls to
3297 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3298 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3299 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3300 * syscalls/mips-n32-linux.xml: New file.
3301 * syscalls/mips-n64-linux.xml: New file.
3302 * syscalls/mips-o32-linux.xml: New file.
3304 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3306 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3307 Complain about inverted range entries.
3308 (dwarf2_record_block_ranges): Likewise.
3310 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3313 * breakpoint.c (update_watchpoint): Fix name of the
3314 update_global_location_list function.
3315 (print_one_breakpoint): Fix typo.
3316 (_initialize_breakpoint): Remove extra space in hbreak help
3318 * breakpoint.h (struct bp_location) <length>: Fix field
3321 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3323 * regcache.c (registers_changed_ptid): Don't explictly always
3324 clear `current_regcache'. Only clear current_thread_ptid and
3325 current_thread_arch when PTID matches. Only reinit the frame
3326 cache if PTID matches the current inferior_ptid. Move alloca(0)
3328 (registers_changed): ... here.
3330 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3332 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3333 starts with __stack_chk_guard as stack guard symbol.
3335 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3337 * disasm.c (compare_lines): Handle the end of sequence markers
3338 within the line table to better support disassembling over
3339 compilation unit boundaries.
3341 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3343 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3344 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3345 implementation even if no symbols are available.
3346 (thumb_analyze_prologue): Update call to skip_prologue_function.
3347 (arm_analyze_prologue): Likewise.
3349 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3351 * arm-tdep.c: Include "observer.h".
3352 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3353 (arm_exidx_data_key): New static variable.
3354 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3355 (struct arm_exidx_data): Likewise.
3356 (arm_exidx_data_free): New function.
3357 (arm_compare_exidx_entries): Likewise.
3358 (arm_obj_section_from_vma): Likewise.
3359 (arm_exidx_new_objfile): Likewise.
3360 (arm_find_exidx_entry): Likewise.
3361 (arm_exidx_fill_cache): Likewise.
3362 (arm_exidx_unwind_sniffer): Likewise.
3363 (arm_exidx_unwind): New global variable.
3364 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3365 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3366 observer. Register arm_exidx_data_key as objfile data.
3368 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3370 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3371 due to accessing uninitialized variable. Fix indentation.
3373 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3375 * c-valprint.c (c_value_print): When doing virtual base pointer
3376 adjustment, create a new value with adjusted contents rather than
3377 changing the contents of the value being printed (and getting it
3380 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3382 * xml-support.c (xml_find_attribute): New.
3383 (xinclude_start_include): Use it.
3384 * xml-support.h (xml_find_attribute): Declare.
3385 * memory-map.c (memory_map_start_memory)
3386 (memory_map_start_property): Use xml_find_attribute.
3387 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3389 * remote.c (start_thread): Use xml_find_attribute.
3390 * solib-target.c (library_list_start_segment)
3391 (library_list_start_section, library_list_start_library)
3392 (library_list_start_list): Use xml_find_attribute.
3393 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3394 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3395 (tdesc_start_field): Use xml_find_attribute.
3397 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3399 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3400 (BUILD_OCL_VTYPES): Update.
3402 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3404 * configure.ac: Work around non-GNU sed limitation when computing
3405 python version number.
3406 * configure: Regenerate.
3408 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3410 Fix debug printing of TYPE_INSTANCE.
3411 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3412 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3414 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3417 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3418 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3419 * ada-operator.inc: Rename the file to ...
3420 * ada-operator.def: ... here, wrap all the entries by macro OP.
3421 * expprint.c (op_name_standard): Remove all the entries. Include
3422 "std-operator.def" instead.
3423 * expression.h (enum exp_opcode): Include "std-operator.def" and
3424 "ada-operator.def". Move all the entries ...
3425 * std-operator.def: ... here, wrap all the entries by macro OP.
3427 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3429 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3430 * breakpoint.c (remove_jit_event_breakpoints): New function.
3431 * jit.c (jit_descriptor_addr): Delete.
3432 (registering_code): Delete.
3433 (clear_int): Delete.
3434 (jit_inferior_data): New variable.
3435 (struct jit_inferior_data): New type.
3436 (get_jit_inferior_data): New function.
3437 (jit_inferior_data_cleanup): New function.
3438 (jit_read_descriptor): Adjust.
3439 (jit_register_code): Adjust.
3440 (jit_breakpoint_re_set_internal): New function; move code here ...
3441 (jit_inferior_init): ... from here.
3442 (jit_breakpoint_re_set): Adjust.
3443 (jit_reset_inferior_data_and_breakpoints): New function.
3444 (jit_inferior_created_observer): Adjust.
3445 (jit_inferior_exit_hook): Adjust.
3446 (jit_executable_changed_observer): New function.
3447 (jit_event_handler): Adjust.
3448 (_initialize_jit): Adjust.
3450 2011-01-31 Michael Snyder <msnyder@vmware.com>
3452 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3455 2011-01-31 Tom Tromey <tromey@redhat.com>
3458 * python/python.c (execute_gdb_command): Call
3459 prevent_dont_repeat.
3460 * top.c (suppress_dont_repeat): New global.
3461 (dont_repeat): Use it.
3462 (prevent_dont_repeat): New function.
3463 * command.h (prevent_dont_repeat): Declare.
3465 2011-01-31 Tom Tromey <tromey@redhat.com>
3467 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3468 * python/py-breakpoint.c (bppy_set_silent): Use
3469 breakpoint_set_silent.
3470 (bppy_set_thread): Use breakpoint_set_thread.
3471 (bppy_set_task): Use breakpoint_set_task.
3472 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3473 (breakpoint_set_task): Declare.
3474 (make_breakpoint_silent): Remove.
3475 * breakpoint.c (breakpoint_set_silent): New function.
3476 (breakpoint_set_thread): Likewise.
3477 (breakpoint_set_task): Likewise.
3478 (make_breakpoint_silent): Remove.
3480 2011-01-31 Tom Tromey <tromey@redhat.com>
3482 * breakpoint.h (user_breakpoint_p): Declare.
3483 * breakpoint.c (user_breakpoint_p): New function.
3484 (breakpoint_1): Use it.
3485 (save_breakpoints): Likewise.
3487 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3489 * configure.ac: Add handling of Python distribution on Windows.
3490 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3491 sysconfig variables are not defined, then do not use them.
3492 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3493 instead. On Windows, return all paths using forward-slashes
3494 rather than backslashes.
3496 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3498 * configure.ac: Remove fallback behavior for building
3499 against Python. Remove tweaking of Python include path.
3500 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3501 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3502 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3503 Always restore CPPFLAGS and LIBS after linking test.
3504 * configure: Regenerated.
3505 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3506 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3507 * python/python-internal.h: Adjust includes of Python .h files.
3509 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3511 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3514 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3516 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3519 2011-01-31 Yao Qi <yao@codesourcery.com>
3521 * arm-linux-nat.c: Update calls to regcache_register_status
3522 instead of regcache_valid_p.
3523 * aix-thread.c: Likewise.
3524 * i386gnu-nat.c: Likewise.
3526 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3529 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3530 touching TYPE_FIELD_ARTIFICIAL.
3532 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3534 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3537 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3539 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3540 selected, don't try iterating over the traceframe's blocks.
3541 (tfile_has_stack): If there's no traceframe selected, then there's
3543 (tfile_has_registers): If there's no traceframe selected, then
3544 there's no registers.
3546 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3548 * target.c (memory_xfer_partial): No need to restore shadows if we
3549 haven't read anything.
3551 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3553 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3554 and val_print_scalar_formatted.
3556 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3558 * tracepoint.c (tfile_read): New.
3559 (tfile_open): Use it.
3560 (tfile_get_traceframe_address): Use it.
3561 (tfile_trace_find): Use it.
3562 (walk_blocks_callback_func): New typedef.
3563 (match_blocktype): New function.
3564 (traceframe_walk_blocks): New function.
3565 (traceframe_find_block_type): New function.
3566 (tfile_fetch_registers, tfile_xfer_partial)
3567 (tfile_get_trace_state_variable_value): Use
3568 traceframe_find_block_type and tfile_read.
3570 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3572 * remote-mips.c: Add internationalization mark ups. Remove
3573 trailing \n from already marked up strings.
3575 2011-01-26 Tom Tromey <tromey@redhat.com>
3577 * python/py-prettyprint.c (print_string_repr): Clear
3578 'addressprint' option when calling val_print_string.
3579 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3580 option when calling val_print_string.
3582 2011-01-26 Tom Tromey <tromey@redhat.com>
3584 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3586 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3588 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3589 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3590 (gdb_py_long_as_ulongest): New defines.
3591 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3592 (gdb_py_int_as_long): Declare.
3593 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3594 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3595 (valpy_long): Add comment.
3596 * python/py-utils.c (get_addr_from_python): Use
3597 gdb_py_long_as_ulongest. Handle overflow properly.
3598 (gdb_py_object_from_longest): New function.
3599 (gdb_py_object_from_ulongest): Likewise.
3600 (gdb_py_int_as_long): Likewise.
3601 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3602 * python/py-symtab.c (salpy_get_pc): Use
3603 gdb_py_long_from_ulongest.
3604 (salpy_get_line): Use PyInt_FromLong.
3605 * python/py-param.c (set_parameter_value): Use
3607 * python/py-lazy-string.c (stpy_get_address): Use
3608 gdb_py_long_from_ulongest.
3609 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3610 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3611 * python/py-breakpoint.c (bppy_set_thread): Use
3613 (bppy_set_task): Likewise.
3614 (bppy_set_ignore_count): Likewise.
3615 (bppy_set_hit_count): Likewise.
3616 * python/py-block.c (blpy_get_start): Use
3617 gdb_py_object_from_ulongest.
3618 (blpy_get_end): Likewise.
3619 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3621 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3624 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3625 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3626 equality test for objfile, initialize addr_low if needed.
3628 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3630 * tui/tui-regs.c (tui_register_format): Remove dead code.
3632 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3634 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3635 instead of print_scalar_formatted.
3636 (print_scalar_formatted): Don't handle 's' format strings here,
3637 and add an assertion that we never see such format here.
3638 * valprint.h (val_print_scalar_formatted): Declare.
3639 * valprint.c (val_print_scalar_formatted): New.
3640 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3641 instead of print_scalar_formatted.
3642 * jv-valprint.c (java_val_print): Ditto.
3643 * p-valprint.c (pascal_val_print): Ditto.
3644 * ada-valprint.c (ada_val_print_1): Ditto.
3645 * f-valprint.c (f_val_print): Ditto.
3646 * infcmd.c (registers_info): Ditto.
3647 * m2-valprint.c (m2_val_print): Ditto.
3649 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3651 * m2-valprint.c (print_unbounded_array): Pass
3652 value_contents_for_printing rather than value_contents, to
3653 m2_print_array_contents. Also pass in the value.
3655 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3657 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3658 (save_gdb_index_command): Switch to .gdb_index version 4.
3660 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3662 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3663 than frame_register, and always pass a valid value to val_print.
3665 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3667 Centralize printing "<optimized out>".
3669 * valprint.h (val_print_optimized_out): Declare.
3670 * cp-valprint.c (cp_print_value_fields): Use
3671 val_print_optimized_out.
3672 * jv-valprint.c (java_print_value_fields): Ditto.
3673 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3674 * printcmd.c (print_formatted): Ditto.
3675 * valprint.c (valprint_check_validity): Ditto.
3676 (value_check_printable): Ditto.
3677 (val_print_optimized_out): New.
3679 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3681 * infcmd.c (default_print_registers_info): Allocate values so to
3682 never pass a NULL value to val_print.
3684 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3686 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3687 boolean. Make sure to always pass a value that matches the
3688 contents buffer to callees. Preserve `address' for following
3690 * value.c (value_contents_for_printing_const): New.
3691 (value_address): Constify value argument.
3692 * value.h (value_contents_for_printing_const): Declare.
3693 (value_address): Constify value argument.
3695 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3697 * regcache.c (struct regcache_descr): Rename
3698 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3699 and sizeof_cooked_register_valid_p to
3700 sizeof_cooked_register_status.
3701 (init_regcache_descr): Adjust.
3702 (struct regcache): Rename register_valid_p field to
3704 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3705 (do_cooked_read): Adjust.
3706 (regcache_valid_p): Rename to ...
3707 (regcache_register_status): ... this. Adjust.
3708 (regcache_invalidate): Adjust.
3709 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3711 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3712 as unavailable, not valid.
3713 (regcache_dump): Adjust.
3714 * regcache.h (enum register_status): New.
3715 (regcache_register_status): Declare.
3716 (regcache_invalidate): Delete declaration.
3717 * corelow.c (get_core_registers): Adjust.
3718 * tracepoint.c (tfile_fetch_registers): Adjust.
3719 * trad-frame.c (REG_VALUE): Rename to ...
3720 (TF_REG_VALUE): ... this.
3721 (REG_UNKNOWN): Rename to ...
3722 (TF_REG_UNKNOWN): ... this.
3723 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3724 * mi/mi-main.c (register_changed_p): Adjust.
3726 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3728 * regcache.c (struct regcache_descr): Remove outdated comment.
3729 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3731 (regcache_xmalloc): Rename to ...
3732 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3733 Allocate the regcache type accordingly.
3734 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3735 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3736 cooked registers, not raw.
3737 (regcache_dup_no_passthrough): Delete.
3738 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3739 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3740 mention obsolete write_register_bytes.
3741 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3743 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3745 Stop remote_read_bytes from handling partial reads itself.
3747 * remote-fileio.c: Include target.h.
3748 (remote_fileio_write_bytes): Delete.
3749 (remote_fileio_func_open, remote_fileio_func_write)
3750 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3752 (remote_fileio_func_stat): Use target_read_memory and
3753 target_write_memory.
3754 (remote_fileio_func_gettimeofday): Use target_write_memory.
3755 (remote_fileio_func_system): Use target_read_memory.
3756 * remote.c (remote_write_bytes): Make it static.
3757 (remote_read_bytes): Don't handle partial reads here.
3758 * remote.h (remote_read_bytes): Delete declaration.
3760 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3762 Simplify XML parsing a bit.
3764 * xml-support.h (gdb_xml_parse_quick): Declare.
3765 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3766 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3768 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3769 gdb_xml_create_parser_and_cleanup_1.
3770 (gdb_xml_parse_quick): New.
3771 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3772 * osdata.c (osdata_parse): Ditto.
3773 * remote.c (remote_threads_info): Ditto.
3774 * solib-target.c (solib_target_parse_libraries): Ditto.
3775 * xml-syscall.c (syscall_parse_xml): Ditto.
3776 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3778 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3780 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3781 with remote-mips.o added to gdb_target_obs.
3782 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3784 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3786 * ada-valprint.c (val_print_packed_array_elements): Pass the
3787 correct struct value to val_print.
3788 (ada_val_print_1): Ditto.
3790 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3792 Don't lose embedded_offset in printing routines throughout.
3794 * valprint.h (val_print_array_elements): Change prototype.
3795 * valprint.c (val_print_array_elements): Add `embedded_offset'
3796 parameter, and adjust to pass it down to val_print, while passing
3797 `valaddr' or `address' unmodified. Take embedded_offset into
3798 account when checking repetitions.
3799 * c-valprint.c (c_val_print): Pass embedded_offset to
3800 val_print_array_elements instead of adjusting `valaddr' and
3802 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3803 embedded_offset to val_print_array_elements instead of adjusting
3805 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3806 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3807 val_print_array_elements and pascal_object_print_value_fields
3808 instead of adjusting `valaddr'.
3809 (pascal_object_print_value_fields): Add `offset' parameter, and
3811 (pascal_object_print_value): Add `offset' parameter, and adjust to
3813 (pascal_object_print_static_field): Use
3814 value_contents_for_printing/value_embedded_offset, rather than
3816 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3817 parameter, and adjust to use it. Use
3818 value_contents_for_printing/value_embedded_offset, rather than
3820 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3821 (ada_val_print_array): Add `offset' parameter, and adjust to use
3823 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3824 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3825 Instead work with offsets. Use
3826 value_contents_for_printing/value_embedded_offset, rather than
3827 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3828 and use value_from_pointer to extract a target pointer, rather
3829 than value_from_longest.
3830 (print_variant_part): Add `offset' parameter. Replace
3831 `outer_valaddr' parameter by a new `outer_offset' parameter.
3832 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3833 (ada_value_print): Use
3834 value_contents_for_printing/value_embedded_offset, rather than
3836 (print_record): Add `offset' parameter, and adjust to pass it
3838 (print_field_values): Add `offset' parameter. Replace
3839 `outer_valaddr' parameter by a new `outer_offset' parameter.
3840 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3841 Use value_contents_for_printing/value_embedded_offset, rather than
3843 * d-valprint.c (dynamic_array_type): Use
3844 value_contents_for_printing/value_embedded_offset, rather than
3846 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3847 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3848 (java_print_value_fields): Take `offset' into account. Don't
3849 re-adjust `valaddr'. Instead pass down adjusted offsets.
3850 (java_val_print): Take `embedded_offset' into account. Pass it to
3851 java_print_value_fields.
3852 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3853 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3854 down adjusted offsets.
3855 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3856 (f_val_print): Take `embedded_offset' into account.
3858 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3860 * inflow.c: Include "gdbcmd.h".
3861 (interactive_mode): New static global, moved here from top.c.
3862 (show_interactive_mode): New function, moved here from top.c.
3863 use gdb_has_a_terminal instead of input_from_terminal_p to
3864 determine the current mode.
3865 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3867 (_initialize_inflow): Add the "set/show interactive-mode"
3868 commands. Moved here from top.c, after having adjusted slightly
3870 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3872 (input_from_terminal_p): Remove handling of "interactive-mode"
3873 setting, moved to infow.c.
3874 (init_main): Remove creation of the "set/show interactive-mode"
3875 commands, moved to inflow.c.
3877 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3879 * NEWS: Add entry for native ia64-hpux support.
3881 2011-01-19 Tom Tromey <tromey@redhat.com>
3884 * thread.c (free_thread): Free 'name'.
3885 (print_thread_info): Emit thread name. Change CLI output.
3886 (thread_name_command): New function.
3887 (do_captured_thread_select): Emit newline.
3888 (_initialize_thread): Register 'thread name' command.
3889 * target.h (struct target_ops) <to_thread_name>: New field.
3890 (target_thread_name): New macro.
3891 * target.c (update_current_target): Handle to_thread_name.
3892 * python/py-infthread.c (thpy_get_name): New function.
3893 (thpy_set_name): Likewise.
3894 (thread_object_getset): Add "name".
3895 * linux-nat.c (linux_nat_thread_name): New function.
3896 (linux_nat_add_target): Set to_thread_name.
3897 * gdbthread.h (struct thread_info) <name>: New field.
3899 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3901 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3902 (ada_val_print_1): Likewise.
3904 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3906 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3907 upper limit address is not greater than the function end address
3908 when the upper limit could not be computed using the debugging
3911 2011-01-17 Tom Tromey <tromey@redhat.com>
3913 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3915 * utils.c: Include gdb_regex.h.
3916 (do_regfree_cleanup): New function.
3917 (make_regfree_cleanup): Likewise.
3918 (get_regcomp_error): Likewise.
3919 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3921 2011-01-17 Tom Tromey <tromey@redhat.com>
3923 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3926 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3928 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3929 for internal variables.
3930 (last_was_structop): New static variable.
3931 (COMPLETE): New token.
3932 (field_exp): New rule to group all '.' suffix handling.
3933 Add mark_struct_expression calls when approriate to be able
3934 to correctly find fields for completion.
3935 (yylex): Adapt to handle field completion and set INTVAR when
3938 2011-01-14 Yao Qi <yao@codesourcery.com>
3940 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3941 save_reggroup, restore_reggroup and all_reggroup.
3943 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3945 * ada-valprint. (ada_printchar): Use the correct type length
3946 in call to ada_emit_char.
3947 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3949 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3951 * solib-som.h (hpux_major_release): Declare variable here.
3952 * solib-som.c: Remove <sys/utsname.h> header.
3953 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3954 (hpux_major_release): Make global, change default value to
3955 DEFAULT_HPUX_MAJOR_RELEASE.
3956 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
3957 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3958 Add "solib-som.h" header.
3959 (set_hpux_major_release): New function.
3960 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3962 2011-01-14 Mike Frysinger <vapier@gentoo.org>
3964 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3966 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3968 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3969 new-line at end of warning message.
3970 (ia64_hpux_store_register): Remove trailing new-line at end of
3972 * ia64-hpux-tdep.c: Rephrase comment.
3973 * solib-ia64-hpux.c (struct dld_info): Change type of field
3974 dld_flags from "long long" to ULONGEST.
3976 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3978 * target.h (deprecated_child_ops): Delete declaration.
3979 * target.c (deprecated_child_ops): Delete definition.
3981 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3983 * Makefile.in (hpux-thread.o): Delete rule.
3984 * configure.ac: Don't check for HPUX DCE threads support.
3985 * configure, config.in: Regenerate.
3986 * hppa-hpux-nat.c (child_suppress_run): Delete.
3987 (hppa_hpux_child_can_run): Delete.
3988 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3989 * hpux-thread.c: Delete.
3991 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3993 * hpux-thread.c (hpux_pid_to_str): Delete.
3995 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3997 * ada-valprint.c (ada_emit_char): Remove strange code.
3998 Check that c is <= UCHAR_MAX before passing it to isascii.
3999 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4001 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4003 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4004 to the case where instream is stdin.
4006 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4008 * ia64-tdep.h (struct regcache): Forward declare.
4009 (struct ia64_infcall_ops): New struct type.
4010 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4012 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4013 Renames ia64_find_global_pointer.
4014 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4015 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4016 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4018 (ia64_infcall_ops): New static global constant.
4019 (ia64_gdbarch_init): Set tdep->infcall_ops.
4020 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4021 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4022 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4023 (ia64_hpux_dummy_code): New static global constant.
4024 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4025 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4026 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4028 (ia64_hpux_infcall_ops): New static global constant.
4029 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4030 for inferior function calls to work properly on ia64-hpux.
4032 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4034 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4035 * ia64-tdep.h (struct frame_info): forward declaration.
4036 (struct gdbarch_tdep): Add field size_of_register_frame.
4037 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4038 to determine the size of the register frame.
4039 (ia64_size_of_register_frame): New function.
4040 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4041 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4042 (IA64_HPUX_UREG_REASON): New macro.
4043 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4045 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4046 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4047 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4050 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4052 Add support for ia64-hpux.
4053 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4054 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4056 * configure.host: Add handling for ia64-hpux hosts. Add associated
4058 * configure.tgt: Add handling for ia64-hpux targets.
4059 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4060 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4061 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4063 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4065 [ttrace] Compute thread list immediately after attach.
4066 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4068 (inf_ttrace_attach): Use it.
4070 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4072 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4073 if we could not determine the frame's function address. Instead,
4074 use the frame's PC, and then continue.
4076 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4078 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4079 not already defined.
4081 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4083 * ia64-tdep.c (ia64_struct_type_p): New function.
4084 (ia64_extract_return_value): Handle integral values that are
4085 less than 8 bytes long.
4086 (ia64_push_dummy_call): Likewise.
4088 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4090 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4091 floatformat_ia64_ext.
4092 (floatformat_ia64_ext_big): New static const.
4093 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4095 2011-01-12 Tom Tromey <tromey@redhat.com>
4097 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4099 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4100 (mi_cmd_thread_list_ids): Likewise.
4101 (mi_cmd_data_list_changed_registers): Likewise.
4102 (mi_cmd_data_list_register_values): Likewise.
4103 (mi_cmd_data_write_register_values): Likewise.
4104 (mi_cmd_data_evaluate_expression): Likewise.
4105 (mi_cmd_data_read_memory): Likewise.
4106 (mi_cmd_data_read_memory_bytes): Likewise.
4107 (mi_cmd_data_write_memory): Likewise.
4108 (mi_cmd_enable_timings): Likewise.
4109 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4110 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4111 (mi_cmd_var_delete): Likewise.
4112 (mi_cmd_var_set_format): Likewise.
4113 (mi_cmd_var_show_format): Likewise.
4114 (mi_cmd_var_info_num_children): Likewise.
4115 (mi_cmd_var_list_children): Likewise.
4116 (mi_cmd_var_info_type): Likewise.
4117 (mi_cmd_var_info_expression): Likewise.
4118 (mi_cmd_var_show_attributes): Likewise.
4119 (mi_cmd_var_assign): Likewise.
4120 (mi_cmd_var_update): Likewise.
4121 (mi_cmd_enable_pretty_printing): Likewise.
4122 (mi_cmd_var_set_update_range): Likewise.
4123 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4125 (mi_cmd_target_file_put): Likewise.
4126 (mi_cmd_target_file_delete): Likewise.
4127 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4129 (mi_cmd_stack_info_depth): Likewise.
4130 (mi_cmd_stack_list_locals): Likewise.
4131 (mi_cmd_stack_list_args): Likewise.
4132 (mi_cmd_stack_select_frame): Likewise.
4133 (mi_cmd_stack_select_frame): Likewise.
4134 (mi_cmd_stack_info_frame): Likewise.
4135 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4137 (mi_cmd_file_list_exec_source_files): Likewise.
4138 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4139 (mi_cmd_env_cd): Likewise.
4140 (mi_cmd_env_path): Likewise.
4141 (mi_cmd_env_dir): Likewise.
4142 (mi_cmd_inferior_tty_show): Likewise.
4143 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4144 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4145 (mi_cmd_break_watch): Likewise.
4147 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4149 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4150 (ppc_linux_insert_hw_breakpoint): Likewise.
4151 (ppc_linux_remove_hw_breakpoint): Likewise.
4152 (ppc_linux_insert_watchpoint): Likewise.
4154 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4155 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 PR fortran/11104 and DWARF unbound arrays detection.
4158 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4159 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4160 unspecified upper bound.
4161 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4162 variables array_size_array, tmp_type and offset_item. New variable
4163 array. Remove call to f77_get_upperbound. New variables array_type
4164 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4165 the final call to deprecated_set_value_type.
4167 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4169 Make value allocations more lazy.
4170 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4171 instead of allocate_value and set_value_lazy when possible.
4172 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4173 instead of allocate_value and set_value_lazy.
4174 * findvar.c (value_of_register_lazy): Likewise.
4175 (read_var_value): Remove V preallocation, call just check_typedef in
4176 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4177 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4178 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4179 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4180 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4181 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4182 the end, remove set_value_lazy there.
4183 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4184 instead of allocate_value and set_value_lazy when possible.
4185 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4186 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4187 of allocate_value and set_value_lazy.
4188 (value_from_contents_and_address): Use allocate_value_lazy instead of
4189 allocate_value and set_value_lazy when possible.
4191 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4193 * disasm.c (dump_insns): Support dumping opcodes for MI.
4194 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4195 dumping of instruction opcodes.
4197 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4199 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4202 2011-01-11 Tom Tromey <tromey@redhat.com>
4204 * thread.c (do_captured_thread_select): Emit newline before
4207 2011-01-11 Michael Snyder <msnyder@vmware.com>
4209 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4210 * score-tdep.c: Ditto.
4211 * score-tdep.h: Ditto.
4212 * ser-base.c: Ditto.
4213 * ser-go32.c: Ditto.
4216 * ser-mingw.c: Ditto.
4217 * ser-pipe.c: Ditto.
4219 * ser-unix.c: Ditto.
4220 * sh64-tdep.c: Ditto.
4221 * shnbsd-nat.c: Ditto.
4225 * solib-darwin.c: Ditto.
4226 * solib-frv.c: Ditto.
4228 * solib-irix.c: Ditto.
4229 * solib-osf.c: Ditto.
4230 * solib-pa64.c: Ditto.
4231 * solib-som.c: Ditto.
4232 * solib-spu.c: Ditto.
4233 * solib-sunos.c: Ditto.
4234 * solib-svr4.c: Ditto.
4236 * sol-thread.c: Ditto.
4240 * sparc64-linux-tdep.c: Ditto.
4241 * sparc64-tdep.c: Ditto.
4242 * sparc-linux-nat.c: Ditto.
4243 * sparc-linux-tdep.c: Ditto.
4244 * sparc-sol2-nat.c: Ditto.
4245 * sparc-sol2-tdep.c: Ditto.
4246 * sparc-tdep.c: Ditto.
4247 * sparc-tdep.h: Ditto.
4248 * spu-tdep.c: Ditto.
4249 * stabsread.c: Ditto.
4250 * stabsread.h: Ditto.
4258 * target-descriptions.c: Ditto.
4259 * target-descriptions.h: Ditto.
4261 * target-memory.c: Ditto.
4262 * terminal.h: Ditto.
4265 * tracepoint.c: Ditto.
4266 * tracepoint.h: Ditto.
4267 * trad-frame.h: Ditto.
4268 * typeprint.c: Ditto.
4270 2011-01-11 Michael Snyder <msnyder@vmware.com>
4272 * ui-file.c: Comment cleanup, mostly periods and spaces.
4277 * v850-tdep.c: Ditto.
4278 * valarith.c: Ditto.
4280 * valprint.c: Ditto.
4281 * valprint.h: Ditto.
4286 * vax-tdep.c: Ditto.
4290 * windows-nat.c: Ditto.
4291 * windows-tdep.c: Ditto.
4292 * xcoffread.c: Ditto.
4293 * xcoffsolib.c: Ditto.
4294 * xml-support.c: Ditto.
4295 * xstormy16-tdep.c: Ditto.
4296 * xtensa-tdep.c: Ditto.
4297 * xtensa-tdep.h: Ditto.
4299 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4301 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4302 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4304 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4305 Thiago Jung Bauermann <bauerman@br.ibm.com>
4307 Implement support for PowerPC BookE ranged watchpoints.
4309 (struct breakpoint_ops) <resources_needed>: New method.
4310 Initialize to NULL in all existing breakpoint_ops instances.
4311 (struct breakpoint) <exact>: New field.
4312 (target_exact_watchpoints): Declare external global.
4313 * breakpoint.c (target_exact_watchpoints): New global flag.
4314 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4315 b->enable_state to bp_enabled before calling
4316 hw_watchpoint_used_count.
4317 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4318 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4320 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4321 if the watchpoint is exact.
4322 (resources_needed_watchpoint): New function.
4323 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4324 (watch_command_1): Set b->exact if the user asked for an exact
4325 watchpoint and one can be set.
4326 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4327 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4328 the user asks for an exact watchpoint and one can be set. Return
4329 number of needed debug registers to watch the expression.
4330 * gdbtypes.c (is_scalar_type): New function, based on
4331 valprint.c:scalar_type_p.
4332 (is_scalar_type_recursive): New function.
4333 * gdbtypes.h (is_scalar_type_recursive): Declare.
4334 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4335 handle regions when ranged watchpoints are available.
4336 (create_watchpoint_request): New function.
4337 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4338 create_watchpoint_request.
4339 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4340 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4341 `set powerpc' and `show powerpc' commands.
4342 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4343 Mention documentation comment in the target macro.
4344 (target_region_ok_for_hw_watchpoint): Document return value.
4346 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4348 * breakpoint.c (update_watchpoint): Decide on using a software or
4349 hardware watchpoint after the bp_locations are created.
4351 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4353 Convert hardware watchpoints to use breakpoint_ops.
4354 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4355 <insert_location>: ... this. Return int instead of void.
4356 Accept pointer to struct bp_location instead of pointer to
4357 struct breakpoint. Adapt all implementations.
4358 (breakpoint_ops) <remove>: Rename to...
4359 <remove_location>: ... this. Accept pointer to struct bp_location
4360 instead of pointer to struct breakpoint. Adapt all implementations.
4361 * breakpoint.c (insert_catchpoint): Delete function.
4362 (insert_bp_location): Call the watchpoint or catchpoint's
4363 breakpoint_ops.insert method.
4364 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4365 breakpoint_ops.remove method.
4366 (insert_watchpoint, remove_watchpoint): New functions.
4367 (watchpoint_breakpoint_ops): New structure.
4368 (watch_command_1): Initialize the OPS field.
4369 * inf-child.c (inf_child_insert_fork_catchpoint)
4370 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4371 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4372 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4374 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4375 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4376 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4377 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4378 * target.c (update_current_target): Change default implementation of
4379 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4380 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4381 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4382 to_set_syscall_catchpoint to return_one.
4383 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4384 (debug_to_insert_exec_catchpoint): Report return value.
4385 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4386 (to_insert_exec_catchpoint): Change declaration to return int instead
4389 2011-01-11 Michael Snyder <msnyder@vmware.com>
4391 * arm-tdep.c: Internationalization.
4394 * fork-child.c: Ditto.
4395 * nto-procfs.c: Ditto.
4396 * ppc-sysv-tdep.c: Ditto.
4398 * remote-mips.c: Ditto.
4400 * rs6000-nat.c: Ditto.
4401 * rs6000-tdep.c: Ditto.
4405 * xml-support.c: Ditto.
4406 * mi/mi-cmd-break.c: Ditto.
4407 * mi/mi-cmd-var.c: Ditto.
4408 * mi/mi-interp.c: Ditto.
4409 * mi/mi-main.c: Ditto.
4411 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4413 * remote-sim.c (gdbsim_store_register): Update API to
4414 sim_store_register to check more error conditions.
4416 2011-01-10 Michael Snyder <msnyder@vmware.com>
4418 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4419 * nto-tdep.c: Ditto.
4420 * nto-tdep.h: Ditto.
4421 * objc-exp.y: Ditto.
4422 * objc-lang.c: Ditto.
4423 * objfiles.c: Ditto.
4424 * objfiles.h: Ditto.
4425 * observer.c: Ditto.
4426 * opencl-lang.c: Ditto.
4429 * parser-defs.h: Ditto.
4432 * posix-hdep.c: Ditto.
4433 * ppcbug-rom.c: Ditto.
4434 * ppc-linux-nat.c: Ditto.
4435 * ppc-linux-tdep.c: Ditto.
4436 * ppc-linux-tdep.h: Ditto.
4437 * ppcnbsd-tdep.c: Ditto.
4438 * ppcobsd-tdep.c: Ditto.
4439 * ppcobsd-tdep.h: Ditto.
4440 * ppc-sysv-tdep.c: Ditto.
4441 * ppc-tdep.h: Ditto.
4442 * printcmd.c: Ditto.
4443 * proc-abi.c: Ditto.
4444 * proc-flags.c: Ditto.
4446 * proc-utils.h: Ditto.
4447 * progspace.h: Ditto.
4448 * prologue-value.c: Ditto.
4449 * prologue-value.h: Ditto.
4450 * psympriv.h: Ditto.
4452 * p-typeprint.c: Ditto.
4453 * p-valprint.c: Ditto.
4454 * ravenscar-sparc-thread.c: Ditto.
4455 * ravenscar-thread.c: Ditto.
4456 * ravenscar-thread.h: Ditto.
4458 * regcache.c: Ditto.
4459 * regcache.h: Ditto.
4461 * remote-fileio.c: Ditto.
4462 * remote-fileio.h: Ditto.
4464 * remote-m32r-sdi.c: Ditto.
4465 * remote-mips.c: Ditto.
4466 * remote-sim.c: Ditto.
4467 * rs6000-aix-tdep.c: Ditto.
4468 * rs6000-nat.c: Ditto.
4469 * rs6000-tdep.c: Ditto.
4471 2011-01-10 Michael Snyder <msnyder@vmware.com>
4473 * charset.c (validate): Internationalization.
4474 * coffread.c (read_one_sym): Ditto.
4475 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4476 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4477 * inflow.c (new_tty): Ditto.
4478 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4479 * m32c-tdep.c (m32c_return_value): Ditto.
4480 * mep-tdep.c (mep_store_return_value): Ditto.
4481 * score-tdep.c (score7_fetch_insn): Ditto.
4482 * ser-mingw.c (pipe_windows_open): Ditto.
4483 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4484 * spu-tdep.c (spu_register_type): Ditto.
4485 * tracepoint.c (trace_find_command): Ditto.
4486 * valarith.c (value_pos): Ditto.
4488 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4490 * ada-valprint.c (printstr): Minor comment reformatting.
4492 2011-01-08 Michael Snyder <msnyder@vmware.com>
4494 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4497 2011-01-08 Michael Snyder <msnyder@vmware.com>
4499 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4500 * hppa-hpux-tdep.c: Ditto.
4501 * hppa-linux-nat.c: Ditto.
4502 * hppa-linux-tdep.c: Ditto.
4503 * hppanbsd-tdep.c: Ditto.
4504 * hppa-tdep.c: Ditto.
4505 * hppa-tdep.h: Ditto.
4506 * hpux-thread.c: Ditto.
4507 * i386-cygwin-tdep.c: Ditto.
4508 * i386-darwin-nat.c: Ditto.
4509 * i386gnu-nat.c: Ditto.
4510 * i386-linux-nat.c: Ditto.
4511 * i386-linux-tdep.c: Ditto.
4512 * i386-nat.c: Ditto.
4513 * i386-nat.h: Ditto.
4514 * i386nbsd-tdep.c: Ditto.
4515 * i386-sol2-nat.c: Ditto.
4516 * i386-stub.c: Ditto.
4517 * i386-tdep.c: Ditto.
4518 * i386-tdep.h: Ditto.
4519 * i387-tdep.c: Ditto.
4520 * ia64-linux-nat.c: Ditto.
4521 * ia64-linux-tdep.c: Ditto.
4522 * ia64-tdep.c: Ditto.
4526 * inferior.c: Ditto.
4527 * inferior.h: Ditto.
4533 * iq2000-tdep.c: Ditto.
4534 * irix5-nat.c: Ditto.
4540 * jv-typeprint.c: Ditto.
4541 * jv-valprint.c: Ditto.
4542 * language.c: Ditto.
4543 * language.h: Ditto.
4544 * linespec.c: Ditto.
4545 * linux-fork.c: Ditto.
4546 * linux-nat.c: Ditto.
4547 * linux-thread-db.c: Ditto.
4548 * lm32-tdep.c: Ditto.
4550 2011-01-08 Michael Snyder <msnyder@vmware.com>
4552 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4554 * m2-typeprint.c: Ditto.
4555 * m2-valprint.c: Ditto.
4556 * m32c-tdep.c: Ditto.
4557 * m32r-linux-nat.c: Ditto.
4558 * m32r-rom.c: Ditto.
4559 * m32r-tdep.c: Ditto.
4560 * m32r-tdep.h: Ditto.
4561 * m68hc11-tdep.c: Ditto.
4562 * m58klinux-nat.c: Ditto.
4563 * m68k-tdep.c: Ditto.
4564 * m88k-tdep.c: Ditto.
4565 * m88k-tdep.h: Ditto.
4566 * machoread.c: Ditto.
4567 * macrocmd.c: Ditto.
4568 * macroexp.c: Ditto.
4569 * macrotab.c: Ditto.
4572 * mdebugread.c: Ditto.
4573 * mdebugread.h: Ditto.
4576 * memory-map.h: Ditto.
4577 * mep-tdep.c: Ditto.
4578 * microblaze-rom.c: Ditto.
4579 * microblaze-tdep.c: Ditto.
4581 * mips-irix-tdep.c: Ditto.
4582 * mips-linux-nat.c: Ditto.
4583 * mips-linux-tdep.c: Ditto.
4584 * mips-linux-tdep.h: Ditto.
4585 * mipsnbsd-nat.c: Ditto.
4586 * mipsnbsd-tdep.c: Ditto.
4587 * mipsread.c: Ditto.
4588 * mips-tdep.c: Ditto.
4589 * mips-tdep.h: Ditto.
4590 * mn10300-linux-tdep.c: Ditto.
4591 * mn10300-tdep.c: Ditto.
4592 * mn10300-tdep.h: Ditto.
4595 * moxie-tdep.c: Ditto.
4596 * moxie-tdep.h: Ditto.
4599 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4601 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4603 2011-01-08 Robert Millan <rmh@gnu.org>
4605 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4607 2011-01-07 Michael Snyder <msnyder@vmware.com>
4609 * charset.c (_initialize_charset): Fix typo in string.
4611 2011-01-07 Michael Snyder <msnyder@vmware.com>
4613 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4615 * tui/tui-layout.c (tui_set_layout_for_display_command):
4616 Split line so that operator goes to beginning of line.
4617 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4618 assignment out of if statement.
4620 2011-01-07 Michael Snyder <msnyder@vmware.com>
4622 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4623 * ada-lang.h: Ditto.
4624 * ada-tasks.c: Ditto.
4625 * ada-valprint.c: Ditto.
4626 * aix-threads.c: Ditto.
4627 * alpha-linux-nat.c: Ditto.
4628 * alpha-linux-tdep.c: Ditto.
4629 * alpha-mdebug-tdep.c: Ditto.
4630 * alpha-nat.c: Ditto.
4631 * alpha-osf1-tdep.c: Ditto.
4632 * alpha-tdep.c: Ditto.
4633 * alphabsd-nat.c: Ditto.
4634 * alphabsd-tdep.c: Ditto.
4635 * amd64-darwin-tdep.c: Ditto.
4636 * amd64-linux-nat.c: Ditto.
4637 * amd64-linux-tdep.c: Ditto.
4638 * amd64-sol2-tdep.c: Ditto.
4639 * amd64-tdep.c: Ditto.
4640 * amd64-fbsd-tdep.c: Ditto.
4641 * amd64-nbsd-tdep.c: Ditto.
4642 * amd64-obsd-tdep.c: Ditto.
4643 * amd64-linux-nat.c: Ditto.
4644 * amd64-linux-tdep.c: Ditto.
4645 * arm-tdep.c: Ditto.
4646 * arm-tdep.h: Ditto.
4647 * armnbsd-nat.c: Ditto.
4648 * avr-tdep.c: Ditto.
4649 * bfin-tdep.c: Ditto.
4651 * c-typeprintc: Ditto.
4652 * c-valprint.c: Ditto.
4653 * coff-pe-read.h: Ditto.
4654 * coffreead.c: Ditto.
4655 * cris-tdep.c: Ditto.
4657 * darwin-nat-info.c: Ditto.
4658 * darwin-nat.c: Ditto.
4659 * dbug-rom.c: Ditto.
4663 * dec-thread.c: Ditto.
4665 * demangle.c: Ditto.
4666 * dicos-tdep.c: Ditto.
4667 * dictionary.c: Ditto.
4668 * dictionary.h: Ditto.
4669 * dink32-rom.c: Ditto.
4671 * doublest.c: Ditto.
4673 * dummy-frame.c: Ditto.
4674 * dwarf2-frame.c: Ditto.
4675 * dwarf2expr.c: Ditto.
4676 * dwarf2loc.c: Ditto.
4677 * dwarf2read.c: Ditto.
4681 * event-top.h: Ditto.
4682 * exceptions.c: Ditto.
4683 * exceptions.h: Ditto.
4685 * expprint.c: Ditto.
4686 * expression.h: Ditto.
4690 * f-typeprint.c: Ditto.
4691 * f-valprint.c: Ditto.
4692 * fbsd-nat.c: Ditto.
4694 * fork-child.c: Ditto.
4697 * frv-linux-tdep.c: Ditto.
4698 * frv-tdep.c: Ditto.
4700 * gdb-stabs.h: Ditto.
4701 * gdb_assert.h: Ditto.
4702 * gdb_string.h: Ditto.
4703 * gdb_thread_db.h: Ditto.
4704 * gdb_wait.h: Ditto.
4705 * gdbarch.sh: Ditto.
4707 * gdbthread.h: Ditto.
4708 * gdbtypes.c: Ditto.
4709 * gdbtypes.h: Ditto.
4712 * gnu-v2-abi.c: Ditto.
4713 * gnu-v3-abi.c: Ditto.
4714 * go32-nat.c: Ditto.
4715 * gdbarch.c: Regenerate.
4716 * gdbarch.h: Regenerate.
4718 2011-01-07 Michael Snyder <msnyder@vmware.com>
4720 * ax-gdb.c: Adjust some long output strings.
4721 * breakpoint.c: Ditto.
4726 * linux-nat.c: Ditto.
4727 * solib-pa64.c: Ditto.
4728 * solib-som.c: Ditto.
4730 2011-01-06 Tom Tromey <tromey@redhat.com>
4734 * python/python.c (GdbMethods): Add "newest_frame" method.
4735 * python/python-internal.h (gdbpy_newest_frame): Declare.
4736 * python/py-frame.c (gdbpy_newest_frame): New function.
4738 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4740 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4741 * jit.c (jit_debug): New variable.
4742 (show_jit_debug): New function.
4743 (struct target_buffer): Use ULONGEST.
4744 (bfd_open_from_target_memory): Likewise.
4745 (jit_register_code, jit_inferior_init): Add debug output.
4746 (_initialize_jit): Register "debug jit" command.
4748 2011-01-06 Tom Tromey <tromey@redhat.com>
4750 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4751 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4754 2011-01-06 Tom Tromey <tromey@redhat.com>
4756 * python/py-frame.c (frapy_block): Use get_frame_block.
4758 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4760 Do not stop on SIGPRIO signals by default
4761 * infrun.c (_initialize_infrun): Unset signal_stop and
4762 signal_print for TARGET_SIGNAL_PRIO.
4764 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4766 * ada-tasks.c: Fix style violation in comment.
4768 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4770 * linespec.c (decode_compound, find_method): Remove trailing \n
4771 at end of error string.
4772 * solib-irix.c (irix_current_sos): Likewise.
4773 * varobj.c (uninstall_variable): Likewise.
4775 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4777 * copyright.py: New script.
4778 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4779 Launch emacs without exec'ing. Call copyright.py afterwards.
4781 2011-01-05 Michael Snyder <msnyder@vmware.com>
4783 * addrmap.c: Shorten lines of >= 80 columns.
4784 * arch-utils.c: Ditto.
4785 * arch-utils.h: Ditto.
4787 * ax-general.c: Ditto.
4789 * blockframe.c: Ditto.
4790 * breakpoint.c: Ditto.
4791 * buildsym.c: Ditto.
4793 * c-typeprint.c: Ditto.
4795 * coffread.c: Ditto.
4799 * cp-namespace.c: Ditto.
4800 * cp-support.c: Ditto.
4801 * dbug-rom.c: Ditto.
4806 * dictionary.c: Ditto.
4808 * doublest.c: Ditto.
4809 * dwarf2-frame.c: Ditto.
4810 * dwarf2expr.c: Ditto.
4811 * dwarf2loc.c: Ditto.
4812 * dwarf2read.c: Ditto.
4815 * event-loop.c: Ditto.
4816 * event-loop.h: Ditto.
4817 * exceptions.h: Ditto.
4819 * expprint.c: Ditto.
4820 * expression.h: Ditto.
4822 * f-valprint.c: Ditto.
4824 * frame-base.c: Ditto.
4825 * frame-unwind.c: Ditto.
4826 * frame-unwind.h: Ditto.
4830 * gdb-stabs.h: Ditto.
4831 * gdb_assert.h: Ditto.
4832 * gdb_dirent.h: Ditto.
4833 * gdb_obstack.h: Ditto.
4835 * gdbtypes.c: Ditto.
4836 * gdbtypes.h: Ditto.
4837 * inf-ttrace.c: Ditto.
4842 * inline-frame.h: Ditto.
4843 * language.c: Ditto.
4844 * language.h: Ditto.
4845 * libunwind-frame.c: Ditto.
4846 * libunwind-frame.h: Ditto.
4847 * linespec.c: Ditto.
4848 * linux-nat.c: Ditto.
4849 * linux-nat.h: Ditto.
4850 * linux-thread-db.c: Ditto.
4851 * machoread.c: Ditto.
4852 * macroexp.c: Ditto.
4853 * macrotab.c: Ditto.
4856 * mdebugread.c: Ditto.
4861 * objfiles.c: Ditto.
4862 * objfiles.h: Ditto.
4864 * p-typeprint.c: Ditto.
4865 * p-valprint.c: Ditto.
4867 * printcmd.c: Ditto.
4868 * proc-events.c: Ditto.
4870 * progspace.c: Ditto.
4871 * progspace.h: Ditto.
4872 * psympriv.h: Ditto.
4875 * regcache.c: Ditto.
4876 * regcache.h: Ditto.
4877 * remote-fileio.c: Ditto.
4879 * ser-mingw.c: Ditto.
4881 * ser-unix.c: Ditto.
4884 * solib-frv.c: Ditto.
4885 * solib-irix.c: Ditto.
4886 * solib-osf.c: Ditto.
4887 * solib-pa64.c: Ditto.
4888 * solib-som.c: Ditto.
4889 * solib-sunos.c: Ditto.
4890 * solib-svr4.c: Ditto.
4891 * solib-target.c: Ditto.
4895 * stabsread.c: Ditto.
4896 * stabsread.c: Ditto.
4899 * symfile-mem.c: Ditto.
4905 * target-descriptions.c: Ditto.
4906 * target-memory.c: Ditto.
4909 * terminal.h: Ditto.
4912 * tracepoint.c: Ditto.
4913 * tracepoint.h: Ditto.
4917 * user-regs.c: Ditto.
4918 * user-regs.h: Ditto.
4920 * valarith.c: Ditto.
4922 * valprint.c: Ditto.
4923 * valprint.h: Ditto.
4928 * xcoffread.c: Ditto.
4929 * xcoffsolib.c: Ditto.
4930 * xcoffsolib.h: Ditto.
4931 * xml-syscall.c: Ditto.
4932 * xml-tdesc.c: Ditto.
4934 2011-01-05 Michael Snyder <msnyder@vmware.com>
4936 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4937 * cli/cli-decode.c: Ditto.
4938 * cli/cli-dump.c: Ditto.
4939 * cli/cli-logging.c: Ditto.
4940 * cli/cli-script.c: Ditto.
4941 * cli/cli-setshow.c: Ditto.
4942 * common/signals.c: Ditto.
4943 * mi/mi-cmd-break.c: Ditto.
4944 * mi/mi-cmd-disas.c: Ditto.
4945 * mi/mi-cmd-stack.c: Ditto.
4946 * mi/mi-cmd-var.c: Ditto.
4947 * mi/mi-cmds.c: Ditto.
4948 * mi/mi-common.h: Ditto.
4949 * mi/mi-console.c: Ditto.
4950 * mi/mi-interp.c: Ditto.
4951 * mi/mi-main.c: Ditto.
4952 * osf-share/cma_attr.c: Ditto.
4953 * osf-share/cma_deb_core.h: Ditto.
4954 * osf-share/cma_debug_client.h: Ditto.
4955 * osf-share/cma_handle.h: Ditto.
4956 * osf-share/cma_mutex.h: Ditto.
4957 * osf-share/cma_stack_int.h: Ditto.
4958 * osf-share/cma_tcb_defs.h: Ditto.
4959 * python/py-auto-load.c: Ditto.
4960 * python/py-breakpoint.c: Ditto.
4961 * python/py-cmd.c: Ditto.
4962 * python/py-frame.c: Ditto.
4963 * python/py-objfile.c: Ditto.
4964 * python/py-param.c: Ditto.
4965 * python/py-progspace.c: Ditto.
4966 * python/py-symbol.c: Ditto.
4967 * python/py-value.c: Ditto.
4968 * python/python-internal.h: Ditto.
4969 * python/python.c: Ditto.
4970 * tui/tui-data.c: Ditto.
4971 * tui/tui-disasm.c: Ditto.
4972 * tui/tui-hooks.c: Ditto.
4973 * tui/tui-io.c: Ditto.
4974 * tui/tui-layout.c: Ditto.
4975 * tui/tui-regs.c: Ditto.
4976 * tui/tui-source.c: Ditto.
4977 * tui/tui-stack.c: Ditto.
4978 * tui/tui-win.c: Ditto.
4979 * tui/tui-windata.c: Ditto.
4980 * tui/tui-winsource.c: Ditto.
4982 2011-01-05 Joel Brobecker <brobecker@adacore.com>
4984 * configure.ac, gdb.1: Copyright year update.
4986 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4988 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4989 this_pc_in_block, morestack_msym and morestack_name. Check for
4990 "__morestack" minimal symbol there.
4992 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4994 * symfile.c (find_sym_fns): Add call to dont_repeat.
4996 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4998 Copyright year update in most files (performed by copyright.sh).
5000 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5002 * top.c (print_gdb_version): Update copyright year in version output.
5004 For older changes see ChangeLog-2010.
5010 version-control: never