1 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3 * regcache.c: Include remote.h.
4 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
5 (regcache_dump): Handle regcache_dump_remote.
6 (maintenance_print_remote_registers): New function.
7 (_initialize_regcache): Install "maint print remote-registers"
9 * remote.c (map_regcache_remote_table): New function, factored out
11 (init_remote_state): ... here.
12 (remote_register_number_and_offset): New.
13 * remote.h (remote_register_number_and_offset): Declare.
15 2011-04-20 Pedro Alves <pedro@codesourcery.com>
17 * regcache.c (get_thread_arch_regcache): If creating a regcache for
18 null_ptid, assume and allow a NULL address space, instead of
19 asking the target for the ptid's address space.
20 * infrun.c (ptid_is_pid): Remove assertion.
22 2011-04-19 Tom Tromey <tromey@redhat.com>
24 * windows-tdep.c (windows_xfer_shared_library):
25 * windows-nat.c (get_module_name, windows_make_so):
26 * v850-tdep.c (v850_handle_pushm):
27 * utils.c (null_cleanup, gdb_realpath):
28 * ui-out.c (get_next_header):
29 * tracepoint.c (clear_traceframe_info):
30 * symtab.c (lookup_symtab):
31 * serial.h (struct serial_ops):
32 * mipsread.c (read_alphacoff_dynamic_symtab):
33 * infcmd.c (print_return_value):
34 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
35 * f-exp.y (parse_number):
36 * exceptions.c (catch_exceptions):
37 * dummy-frame.c (dummy_frame_this_id):
38 * defs.h (struct cleanup):
39 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
40 * arm-tdep.c (arm_push_dummy_call):
41 * amd64-tdep.h (amd64_collect_xsave):
42 * amd64-tdep.c (amd64_collect_xsave):
43 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
44 * README (typing): Remove duplicate words.
45 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
46 * infrun.c (siginfo_value_read): Fix typo.
47 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
48 * top.c (source_line_number): Add comma.
50 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
52 * thread.c (any_live_thread_of_process): Prioritize threads
53 that are not executing.
54 * gdbthread.h (any_live_thread_of_process): Update comment
57 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
59 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
60 (scan_xcoff_symtab): Likewise.
62 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
64 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
67 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
68 Pedro Alves <pedro@codesourcery.com>
70 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
71 variables to simplify code and avoid == operator at end of
72 line as this is against GNU coding standards.
74 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
76 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
77 lm_name to name_lm to avoid conflict with lm_name function.
79 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
81 ARI fixes: Use only lowercase function name for static functions.
82 * nto-tdep.c (LM_ADDR): Rename to...
83 (lm_addr): New function name.
84 (nto_relocate_section_addresses): Adapt to change above.
85 * solib-sunos.c (LM_ADDR): Rename to...
86 (lm_addr): New function name.
87 (LM_NEXT): Rename to...
88 (lm_next): New function name.
89 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
90 function name changes above.
91 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
92 (lm_addr_from_link_map): New function name.
93 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
94 (has_lm_dynamic_from_link_map): New function name.
95 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
96 (lm_dynamic_from_link_map): New function name.
97 (LM_ADDR_CHECK): Rename to...
98 (lm_addr_check): New function name.
99 (LM_NEXT): Rename to...
100 (lm_next): New function name.
101 (LM_PREV): Rename to...
102 (lm_prev): New function name.
103 (LM_NAME): Rename to...
104 (lm_name): New function name.
105 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
106 (ignore_first_link_map_entry): New function name.
107 (svr4_keep_data_in_core): Adapt to function name changes above.
108 (svr4_current_sos): Likewise.
109 (enable_break): Likewise.
110 (svr4_relocate_section_addresses): Likewise.
112 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
115 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
116 sprintf. Simplify code and avoid loosing memory.
117 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
118 (call0_frame_cache): Remove && operator from end of line.
120 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
122 Fix libraries displacement if they change whether they were prelinked.
123 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
124 does not match. Comment why.
126 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
128 * corelow.c: Include wrapper.h.
129 (core_open): Call now gdb_target_find_new_threads.
130 * wrapper.c: Include target.h.
131 (gdb_target_find_new_threads): New.
132 * wrapper.h (gdb_target_find_new_threads): New declaration.
134 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
137 even if !TARGET_HAS_EXECUTION.
139 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
141 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
142 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
143 bfd_get_synthetic_symtab.
144 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
145 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
146 parameter parent, remove the call to add_separate_debug_objfile.
147 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
148 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
149 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
150 parent, new comment for it, call add_separate_debug_objfile for it.
151 (symbol_file_add_separate): Pass objfile as the parameter parent,
152 remove the call to add_separate_debug_objfile.
153 (symbol_file_add_from_bfd): New parameter parent, pass it.
154 (symbol_file_add): Pass NULL to the new parameter parent.
155 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
157 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
159 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
162 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
164 Fix Python access to inlined frames.
165 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
166 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
168 2011-04-15 Tom Tromey <tromey@redhat.com>
170 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
172 2011-04-15 Gary Benson <gbenson@redhat.com>
174 * MAINTAINERS: Add myself to write-after-approval section.
176 2011-04-14 Mike Frysinger <vapier@gentoo.org>
178 * remote-sim.c (sim_command_completer): New function.
179 (_initialize_remote_sim): Set completer to sim_command_completer.
181 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
183 * breakpoint.c (print_exception_catchpoint): Rename to ...
184 (print_it_exception_catchpoint): ... this.
185 (gnu_v3_exception_catchpoint_ops): Update with new name
186 for print_it_exception_catchpoint.
188 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
190 * MAINTAINERS: Add myself for write after approval privileges.
192 2011-04-13 Marek Polacek <mpolacek@redhat.com>
194 * MAINTAINERS: Add myself as a write-after-approval maintainer.
196 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
198 * breakpoint.c (watch_command_1): Remove colon from exp_string.
200 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
202 * breakpoint.c (save_breakpoints): Verify whether
203 breakpoint_ops.print_recreate is defined before calling it.
205 2011-04-11 Gary Benson <gbenson@redhat.com>
207 Fix failure with --enable-maintainer-mode.
208 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
210 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
213 * symtab.c (search_symbols): Reorder the KIND description in the
214 function comment. Remove the unused 4th element of types, types2,
215 types3 and types4. New gdb_assert on KIND.
216 (symtab_symbol_info): Remove the unused 4th element of classnames.
217 New gdb_assert on KIND.
218 * symtab.h (enum search_domain): New warning in the enum comment.
219 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
222 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
224 Fix crash of gdb save-index on a STABS file.
225 * dwarf2read.c (write_psymtabs_to_index): Return also on no
228 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
230 Fix DW_AT_accessibility compatibility with gcc-4.6+.
231 * dwarf2read.c: Include ctype.h.
232 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
234 (dwarf2_add_field): Fix new_field->accessibility by calling
235 dwarf2_default_access_attribute. Restructure setting accessibility
237 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
238 is_private and is_protected by calling
239 dwarf2_default_access_attribute.
241 2011-04-08 Kevin Buettner <kevinb@redhat.com>
243 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
244 to the initialization.
246 2011-04-08 Steve Ellcey <sje@cup.hp.com>
248 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
251 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
253 Remove support for old Cygwin 1.5 versions.
254 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
255 function on old Cygwin version.
256 * windows-nat.c: Remove cygwin version check and always define
257 __USEWIDE for Cygwin compilation.
259 2011-04-07 Yao Qi <yao@codesourcery.com>
261 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
263 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
264 (arm_copy_svc): Remove parameters INSN and TO.
265 (decode_svc_copro): Update caller.
266 * arm-tdep.h (struct displaced_step_closure): Remove parameters
267 from function pointer `copy_svc_os'.
269 2011-04-07 Yao Qi <yao@codesourcery.com>
271 * arm-tdep.c (cleanup_branch): Set a correct return address in
272 LR for ARM and Thumb.
274 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
277 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
278 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
279 in the function comment, a new note on values compatibility.
280 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
281 * symtab.h (SYMBOL_HASH_NEXT): New.
283 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
285 * ppc-linux-nat.c (check_condition): Add len output parameter.
286 Set it based on the memory region referenced in the condition
287 expression. Update all callers.
289 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
291 Fix crash regression on systems featuring .gdb_index.
292 * objfiles.c (free_objfile): Move the
293 forget_cached_source_info_for_objfile call earlier. Comment it.
294 Extend the comment for objfile_free_data.
296 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
298 Fix regression of displaying the debug format.
299 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
302 2011-04-04 Tom Tromey <tromey@redhat.com>
304 * cli/cli-interp.c (struct captured_execute_command_args):
306 (do_captured_execute_command): Remove.
307 (safe_execute_command): Use TRY_CATCH.
308 * cli/cli-script.c (struct wrapped_read_command_file_args):
310 (wrapped_read_command_file): Remove.
311 (script_from_file): Use TRY_CATCH.
312 * exceptions.c (catch_exception): Remove.
313 * exceptions.h (catch_exception): Remove.
314 (deprecated_throw_reason): Update comment.
315 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
316 argument to 'context'.
317 (mi_execute_command): Use TRY_CATCH.
318 * remote.c (struct start_remote_args): Remove.
319 (remote_start_remote): Update; change arguments.
320 (remote_open_1): Use TRY_CATCH.
322 2011-04-04 Tom Tromey <tromey@redhat.com>
324 * tracepoint.c (scope_info): Update.
325 * symtab.c (decode_line_spec): Update.
326 * python/python.c (gdbpy_decode_line): Update.
327 * linespec.h (decode_line_1): Update.
328 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
329 (decode_compound, find_method, symtab_from_filename)
330 (decode_variable): Likewise.
331 * cli/cli-cmds.c (edit_command): Update.
332 (list_command): Update.
333 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
335 (create_breakpoint): Update.
336 (until_break_command): Update.
337 (addr_string_to_sals): Update.
338 (decode_line_spec_1): Update.
340 2011-04-04 Tom Tromey <tromey@redhat.com>
342 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
343 (do_captured_parse_breakpoint): Remove.
344 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
345 Use TRY_CATCH directly.
347 2011-04-04 Tom Tromey <tromey@redhat.com>
349 * symtab.h (free_symtab): Remove.
350 (forget_cached_source_info_for_objfile): Declare.
351 * symmisc.c (free_symtab): Remove.
352 * source.c (forget_cached_source_info_for_objfile): New function.
353 (forget_cached_source_info): Use it.
354 * objfiles.c (free_objfile): Simplify check before calling
355 clear_current_source_symtab_and_line. Call
356 forget_cached_source_info_for_objfile.
358 2011-04-04 Tom Tromey <tromey@redhat.com>
360 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
361 (new_symtab): Don't set `free_code' on symtab.
362 (new_linetable): Properly handle size==0.
363 * symtab.h (struct symtab) <free_code, free_func>: Remove.
364 * symmisc.c (free_symtab): Don't free the linetable. Don't call
366 * jv-lang.c (struct jv_per_objfile_data): New.
367 (jv_per_objfile_free): Free the data.
368 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
369 (get_java_class_symtab): Set the `dict' field on the
371 (free_class_block): Remove.
372 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
375 2011-04-04 Tom Tromey <tromey@redhat.com>
377 * symfile.c (reread_symbols): Update.
378 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
380 * objfiles.c (allocate_objfile): Update.
381 * cp-support.h (cp_check_possible_namespace_symbols): Don't
383 * cp-namespace.c (lookup_symbol_file): Don't call
384 lookup_possible_namespace_symbol.
385 (initialize_namespace_symtab, get_possible_namespace_block)
386 (free_namespace_block, cp_check_possible_namespace_symbols)
387 (check_possible_namespace_symbols_loop)
388 (check_one_possible_namespace_symbol)
389 (lookup_possible_namespace_symbol): Remove.
390 (maintenance_cplus_namespace): Replace with notice.
391 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
393 2011-04-04 Tom Tromey <tromey@redhat.com>
395 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
396 * symtab.h (struct symtab) <producer, debugformat>: Now const.
397 * symmisc.c (free_symtab): Don't free debugformat.
398 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
399 (record_debugformat, record_producer): Document.
400 * buildsym.c (end_symtab): Don't save debugformat and producer
402 (end_symtab): Don't free debugformat and producer fields.
403 (record_debugformat): Don't call xstrdup.
404 (record_producer): Likewise.
406 2011-04-04 Tom Tromey <tromey@redhat.com>
408 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
409 (source_line_charpos, source_charpos_line): Remove.
411 2011-04-04 Tom Tromey <tromey@redhat.com>
413 * symtab.h (domain_enum): Split in two...
414 (enum search_domain): New.
415 (search_symbols): Update.
416 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
417 redundant declarations.
418 (search_symbols): Change 'kind' argument to search_domain.
420 (print_symbol_info): Likewise.
421 (symtab_symbol_info): Likewise.
422 * symfile.h (struct quick_symbol_functions)
423 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
424 <expand_symtabs_matching>: Likewise.
425 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
426 (expand_symtabs_matching_via_partial): Update.
427 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
428 (dw2_expand_symtabs_for_function): Update.
429 * block.h: Moved anonymous enum...
430 * defs.h (enum block_enum): ... here. Now named.
432 2011-04-03 Joel Brobecker <brobecker@adacore.com>
434 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
435 * version.in: Bump version to 7.3.50.20110403-cvs.
437 2011-04-03 Joel Brobecker <brobecker@adacore.com>
439 * NEWS: Create a new section for the next release branch.
440 Rename the section of the current branch, now that it has
443 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
445 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
446 for "fpscr" in target description.
448 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
450 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
451 initialize it. Delay HASH initialization. Strip the part after open
452 parenthesis for languages with qualifiers. Call do_cleanups.
454 2011-04-01 Tom Tromey <tromey@redhat.com>
456 * utils.c (report_command_stats): Don't print `-' for negative
459 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
461 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
462 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
465 2011-04-01 Joel Brobecker <brobecker@adacore.com>
467 * breakpoint.h (bpdisp_text): Add declaration.
468 * breakpoint.c (bpdisp_text): Make non-static.
469 * ada-lang.c: #include "mi/mi-common.h".
470 (print_it_exception): Rewrite to improve GDB/MI output.
472 2011-04-01 Pedro Alves <pedro@codesourcery.com>
474 * arm-tdep.h (struct address_space): Add forward declaration.
476 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
478 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
479 * arm-tdep.c (arm_override_mode): New global.
480 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
481 execution mode heuristics.
482 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
483 second single-step breakpoint if needed, using
484 arm_insert_single_step_breakpoint.
485 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
486 ARM execution mode, do not call thumb_get_next_pc_raw.
487 (arm_get_next_pc): Encode execution mode in return value. Call
488 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
489 (arm_insert_single_step_breakpoint): New function.
490 (arm_software_single_step): Call it.
491 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
492 argument to return execution mode of sigreturn target.
493 (arm_linux_syscall_next_pc): Use it.
494 (arm_linux_copy_svc): Update call.
495 (arm_linux_software_single_step): Call
496 arm_insert_single_step_breakpoint.
498 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
500 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
503 2011-03-31 Tom Tromey <tromey@redhat.com>
505 * varobj.c (update_dynamic_varobj_children): Properly handle
506 errors from iterator.
508 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
510 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
511 struct linkage name twice.
513 2011-03-31 Tom Tromey <tromey@redhat.com>
515 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
516 missing ">" to message.
518 2011-03-31 Tom Tromey <tromey@redhat.com>
520 * varobj.c (instantiate_pretty_printer): Remove duplicate
523 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
525 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
526 if neither saved value nor register available (e.g. signal frame).
528 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
530 * macroexp.c (expand): Avoid uninitialized variable
533 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
535 * breakpoint.c (break_range_command): Fix typo in comment.
537 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
538 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
540 Implement support for PowerPC BookE ranged breakpoints.
541 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
542 * breakpoint.h (struct bp_target_info) <length>: New member
544 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
545 instead of struct breakpoint as argument, and also add ASPACE
546 and BP_ADDR arguments. Update all callers.
547 (struct breakpoint_ops) <print_one_detail>: New method.
548 (struct breakpoint) <addr_string_range_end>: New member variable.
549 * breakpoint.c (breakpoint_location_address_match): Add function
551 (insert_bp_location): Set bl->target_info.length.
552 (breakpoint_here_p): Call breakpoint_location_address_match.
553 (moribund_breakpoint_here_p): Likewise.
554 (regular_breakpoint_inserted_here_p): Likewise.
555 (breakpoint_thread_match): Likewise.
556 (bpstat_stop_status): Likewise.
557 (bpstat_check_location): Move call to
558 breakpoint_ops.breakpoint_hit to the top.
559 (print_one_breakpoint_location): Call
560 breakpoint_ops.print_one_detail if available.
561 (breakpoint_address_match_range): New function.
562 (breakpoint_location_address_match): Likewise.
563 (breakpoint_locations_match): Compare the length field of the
565 (hw_breakpoint_used_count): Count resources used by all locations
566 in a breakpoint, and use breakpoint_ops.resources_needed if
568 (breakpoint_hit_ranged_breakpoint): New function.
569 (resources_needed_ranged_breakpoint): Likewise.
570 (print_it_ranged_breakpoint): Likewise.
571 (print_one_ranged_breakpoint): Likewise.
572 (print_one_detail_ranged_breakpoint): Likewise.
573 (print_mention_ranged_breakpoint): Likewise.
574 (print_recreate_ranged_breakpoint): Likewise.
575 (ranged_breakpoint_ops): New structure.
576 (find_breakpoint_range_end): New function.
577 (break_range_command): Likewise.
578 (delete_breakpoint): Free addr_string_range_end.
579 (update_breakpoint_locations): Add SALS_END argument. Update
580 all callers. Calculate breakpoint length if a non-zero SALS_END
581 is given. Call breakpoint_locations_match instead of
582 breakpoint_address_match.
583 (reset_breakpoint): Find SaL of the end of the range if B is a
585 (_initialize_breakpoint): Register break-range command.
586 * defs.h (print_core_address): Add function prototype.
587 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
589 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
590 (ppc_linux_remove_hw_breakpoint): Likewise.
591 (_initialize_ppc_linux_nat): Initialize
592 to_ranged_break_num_registers.
593 * target.c (update_current_target): Add comment about
594 to_ranged_break_num_registers.
595 (target_ranged_break_num_registers): New function.
596 * target.h (struct target_ops) <to_ranged_break_num_registers>:
598 (target_ranged_break_num_registers): Add function prototype.
599 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
600 * utils.c (print_core_address): ... here.
602 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
604 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
605 variable compiler warning.
607 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
609 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
611 (re_set_breakpoint): ... to here ...
612 (addr_string_to_sals): ... and here.
614 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
616 * Makefile.in (SFILES): Add missing C sources.
617 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
620 2011-03-29 Mike Frysinger <vapier@gentoo.org>
622 * .gitignore: New file.
624 2011-03-29 Mike Frysinger <vapier@gentoo.org>
626 * NEWS: Mention new cfi device simulation.
628 2011-03-29 Tom Tromey <tromey@redhat.com>
630 * dwarf2read.c (fixup_partial_die): Handle linkage name on
631 otherwise anonymous types.
632 (dwarf2_name): Likewise.
633 * valops.c (value_struct_elt_for_reference): Refine artificial
634 type logic. Call error if j==-1.
636 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
638 Fix false GCC warning.
639 * infcall.c (find_function_addr): Initialize funaddr.
641 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
643 Fix mingw compilation with --enable-targets=all.
644 * remote-mips.c (gdb_usleep.h): Include header.
645 (mips_enter_debug): Use gdb_usleep instead of sleep.
647 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
649 Support resolution of STT_GNU_IFUNC via breakpoints.
650 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
651 bp_gnu_ifunc_resolver_return.
652 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
653 the loop. Support bp_gnu_ifunc_resolver and
654 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
655 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
657 (bptype_string, print_one_breakpoint_location): Support
658 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
659 (user_settable_breakpoint): Return true also for
660 bp_gnu_ifunc_resolver.
661 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
662 bp_gnu_ifunc_resolver_return.
663 (set_breakpoint_location_function): New parameter explicit_loc,
664 describe it. Call find_pc_partial_function_gnu_ifunc with new
665 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
666 EXPLICIT_LOC is not set.
667 (set_raw_breakpoint): Set EXPLICIT_LOC for
668 set_breakpoint_location_function.
669 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
670 set_breakpoint_location_function.
671 (mention): Support bp_gnu_ifunc_resolver and
672 bp_gnu_ifunc_resolver_return.
673 (add_location_to_breakpoint): Set EXPLICIT_LOC for
674 set_breakpoint_location_function.
675 (update_breakpoint_locations): Remove static.
676 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
677 bp_gnu_ifunc_resolver_return.
678 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
679 bp_gnu_ifunc_resolver_return.
680 (update_breakpoint_locations): New declaration.
681 * elfread.c: Include gdbthread.h and regcache.h.
682 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
684 (elf_gnu_ifunc_fns): Install them.
685 * minsyms.c (stub_gnu_ifunc_resolver_stop)
686 (stub_gnu_ifunc_resolver_return_stop): New functions.
687 (stub_gnu_ifunc_fns): Install them.
688 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
689 and gnu_ifunc_resolver_return_stop.
690 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
692 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
694 STT_GNU_IFUNC reader implementation.
695 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
696 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
697 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
698 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
699 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
700 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
701 (elf_gnu_ifunc_resolve_addr): New.
702 (elf_symfile_read): Call elf_rel_plt_read.
703 (elf_gnu_ifunc_fns): New.
704 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
705 Install elf_gnu_ifunc_fns.
706 * infcall.c (find_function_return_type): New function.
707 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
708 * minsyms.c (stub_gnu_ifunc_resolve_addr)
709 (stub_gnu_ifunc_resolve_name): New functions.
710 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
711 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
712 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
714 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
716 Code cleanup for later STT_GNU_IFUNC support.
717 * infcall.c (find_function_addr): Remove variable code, use explicit
718 dereferences for it. Move VALUE_TYPE initialization later.
720 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
722 GDB find_pc_partial_function support for STT_GNU_IFUNC.
723 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
724 (clear_pc_function_cache): Clear it.
725 (find_pc_partial_function): Rename to ...
726 (find_pc_partial_function_gnu_ifunc): ... this function. New
727 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
728 (find_pc_partial_function): New wrapper for this function.
729 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
731 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
733 GDB internal type support for STT_GNU_IFUNC.
734 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
735 (elf_symtab_read): Set mst_text_gnu_ifunc for
736 BSF_GNU_INDIRECT_FUNCTION.
737 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
738 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
739 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
740 nodebug_got_plt_symbol.
741 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
742 (TYPE_GNU_IFUNC): New.
743 (struct main_type): New field flag_gnu_ifunc.
744 (struct builtin_type): New field builtin_func_func.
745 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
746 nodebug_got_plt_symbol.
747 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
748 (in_gnu_ifunc_stub): New.
749 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
751 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
752 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
753 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
755 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
756 * symtab.c (search_symbols): Likewise.
757 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
758 and mst_slot_got_plt.
759 (in_gnu_ifunc_stub): New declaration.
761 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
763 Support a ring of related breakpoints.
764 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
765 other functions, add gdb_assert.
766 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
767 watchpoint_del_at_next_stop.
768 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
769 (bpstat_stop_status): Handle ring in related_breakpoint.
770 (set_raw_breakpoint_without_location): Initialize ring in
772 (delete_breakpoint): Handle ring in related_breakpoint, use
773 watchpoint_del_at_next_stop.
774 (map_breakpoint_numbers): Handle ring in related_breakpoint.
776 2011-03-28 Tom Tromey <tromey@redhat.com>
779 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
780 with `language_minimal'.
782 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
784 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
785 instead of checking for STT_ARM_TFUNC symbol type.
787 2011-03-25 Tom Tromey <tromey@redhat.com>
789 * linespec.c (symbol_found): Restore line-based result for
790 non-LOC_LABEL symbols.
792 2011-03-25 Kai Tietz <ktietz@redhat.com>
794 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
795 instead of strcmp for comparison.
796 (tui_source_is_displayed): Likewise.
797 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
799 2011-03-24 Mark Wielaard <mjw@redhat.com>
801 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
803 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
804 (find_partial_die_in_comp_unit): Likewise in comment.
805 (read_attribute_value): Likewise.
806 (lookup_die_type): Likewise.
807 (dwarf_form_name): Likewise.
808 (dump_die_shallow): Likewise.
809 (follow_die_ref_or_sig): Likewise.
811 2011-03-24 Tom Tromey <tromey@redhat.com>
813 PR breakpoints/11816:
814 * linespec.c (decode_line_1): Parse `function:label' linespecs.
815 (decode_compound): Update.
816 (find_function_symbol): New function.
817 (decode_dollar): Update.
818 (decode_label): Add 'function_symbol' parameter. Handle
819 function-relative labels.
820 (decode_variable): Update.
821 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
822 not its line. Set `special_display' and canonical name for
825 2011-03-24 Tom Tromey <tromey@redhat.com>
827 * linespec.h (struct linespec_result) <special_display>: New
829 * breakpoint.h (struct breakpoint) <display_canonical>: New
831 * breakpoint.c (print_breakpoint_location): Respect
833 (create_breakpoint_sal): Add 'display_canonical' parameter.
834 (create_breakpoints_sal): Update.
835 (create_breakpoint): Update.
837 2011-03-24 Tom Tromey <tromey@redhat.com>
839 * symtab.c (decode_line_spec): Update.
840 * linespec.c (build_canonical_line_spec): Change type of
842 (decode_line_2, decode_line_1, decode_objc, decode_compound)
843 (find_method, decode_all_digits, decode_dollar, decode_label)
844 (symbol_found): Likewise.
845 (init_linespec_result): New function.
846 * breakpoint.c (struct captured_parse_breakpoint_args)
847 <canonical_p>: New field, replaces addr_string_p.
848 (create_breakpoints_sal): Add 'canonical' parameter, replacing
850 (parse_breakpoint_sals): Likewise.
851 (do_captured_parse_breakpoint): Update.
852 (create_breakpoint): Use struct linespec_result.
853 (until_break_command): Update.
854 (breakpoint_re_set_one): Update.
855 (decode_line_spec_1): Update.
856 * linespec.h (struct linespec_result): New.
857 (init_linespec_result): Declare.
859 2011-03-23 Pedro Alves <pedro@codesourcery.com>
861 * regcache.c (regcache_raw_read): If the target didn't supply a
862 given raw register, mark it as unavailable.
864 2011-03-23 Kai Tietz <ktietz@redhat.com>
866 * breakpoint.c (clear_command): Use filename_cmp
867 instead of strcmp for comparison.
868 * buildsym.c (watch_main_source_file_lossage): Likewise.
869 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
870 checking just for slash.
871 * dbxread.c (read_dbx_symtab): Use lbasename instead of
872 strrchr and filename_cmp instead of strcmp for filenames.
873 (add_old_header_file): Use filename_cmp
874 instead of strcmp for comparison.
875 * exec.c (exec_set_section_address): Likewise.
876 * macrotab.c (macro_lookup_inclusion): Likewise.
877 (macro_lookup_inclusion): Likewise.
878 * elfread.c (_initialize_elfread): Likewise.
879 (elfstab_offset_sections): Likewise.
880 (elfstab_offset_sections): Use lbasename instead of
882 * mdebugread.c (parse_partial_symbols): Likewise.
883 (arse_partial_symbols): Use filename_(n)cmp instead of
884 str(n)cmp for comparison.
885 * minsyms.c (lookup_minimal_symbol): Likewise.
886 * psymtab.c (read_psymtabs_with_filename): Likewise.
887 * solib.c (solib_read_symbols): Likewise.
888 (reload_shared_libraries_1): Likewise.
889 * symmisc.c (maintenance_print_symbols): Likewise.
890 * symfile.c (separate_debug_file_exists): Likewise.
891 (reread_symbols): Likewise.
892 (find_separate_debug_file_by_debuglink): Likewise.
893 * remote-fileio.c (remote_fileio_func_rename): Likewise.
894 * source.c (add_path): Likewise.
895 * symtab.c (filename_seen): Likewise.
896 (file_matches): Likewise.
897 (print_symbol_info): Likewise.
898 (maybe_add_partial_symtab_filename): Likewise.
899 (make_source_files_completion_list): Likewise.
900 * xml-syscall.c (init_sysinfo): Likewise.
901 * windows-nat.c (_initialize_check_for_gdb_ini): Use
902 IS_DIR_SEPARATOR for checking for trailing path separator.
904 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
906 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
907 label abort_expression.
908 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
909 DWARF_VALUE_OPTIMIZED_OUT.
911 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
914 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
915 to linkage_name. Invert its value. Update the function comment.
916 (c_type_print_varspec_suffix): Invert it at the caller.
917 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
919 2011-03-22 Pedro Alves <pedro@codesourcery.com>
921 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
922 errors when reading the `stop_pc'.
923 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
926 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
928 * NEWS: Document gdb.Write stream keyword.
930 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
933 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
934 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
935 (dwarf2_add_field): Fix new_field->accessibility for
936 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
938 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
942 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
943 other error classes. Do not print stack trace.
945 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
947 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
948 (dwarf2_add_field): Fix new_field->accessibility for
949 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
951 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
953 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
954 encountering a load via a non-SP register.
956 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
958 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
959 field in returned unwinder.
961 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
963 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
965 2012-03-21 Joel Brobecker <brobecker@adacore.com>
967 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
970 2012-03-18 Pedro Alves <pedro@codesourcery.com>
972 * frame.c (frame_unwind_register): Throw an error if unwinding the
974 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
975 an unwind stop reason.
976 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
977 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
978 UNWIND_UNAVAILABLE>: New.
979 * inline-frame.c (inline_frame_unwind): Install
980 default_frame_unwind_stop_reason.
981 * frame-unwind.c: Include "exceptions.h".
982 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
983 (default_frame_unwind_stop_reason): New.
984 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
985 (default_frame_unwind_stop_reason): Declare.
986 (struct frame_unwind) <stop_reason>: New function pointer.
988 * dummy-frame.c: Install default_frame_unwind_stop_reason.
989 * dwarf2-frame.c: Include exceptions.h.
990 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
991 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
992 computing the CFA. If such an error was thrown, set
994 (dwarf2_frame_unwind_stop_reason): New.
995 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
997 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
998 (dwarf2_signal_frame_unwind): Ditto.
1000 * amd64-tdep.c: Include "exceptions.h".
1001 (struct amd64_frame_cache): New field "base_p".
1002 (amd64_init_frame_cache): Clear it.
1003 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1004 Avoid reading registers with functions that throw if the register
1005 is not necessary to compute the frame base.
1006 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1007 swallowing NOT_AVAILABLE_ERROR.
1008 (amd64_frame_unwind_stop_reason): New.
1009 (amd64_frame_this_id): Don't build a frame id if the frame base
1011 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1012 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1013 base_p if the frame base was computable.
1014 (amd64_sigtramp_frame_unwind_stop_reason): New.
1015 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1016 frame base was unavailable.
1017 (amd64_sigtramp_frame_unwind): Install
1018 amd64_sigtramp_frame_unwind_stop_reason.
1019 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1020 base_p if the frame base was computable.
1021 (amd64_epilogue_frame_unwind_stop_reason): New.
1022 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1023 frame base was unavailable.
1024 (amd64_epilogue_frame_unwind): Install
1025 amd64_epilogue_frame_unwind_stop_reason.
1026 * i386-tdep.c: Include "exceptions.h".
1027 (struct i386_frame_cache): New field "base_p".
1028 (i386_init_frame_cache): Clear it.
1029 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1030 Avoid reading registers with functions that throw if the register
1031 is not necessary to compute the frame base.
1032 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1033 swallowing NOT_AVAILABLE_ERROR.
1034 (i386_frame_unwind_stop_reason): New.
1035 (i386_frame_this_id): Don't build a frame id if the frame base was
1037 (i386_frame_prev_register): Handle unavailable SP.
1038 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1039 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1040 base_p if the frame base was computable.
1041 (i386_epilogue_frame_unwind_stop_reason): New.
1042 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1043 base was unavailable.
1044 (i386_epilogue_frame_unwind): Install
1045 i386_epilogue_frame_unwind_stop_reason.
1046 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1047 base_p if the frame base was computable.
1048 (i386_sigtramp_frame_unwind_stop_reason): New.
1049 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1050 base was unavailable.
1051 (i386_sigtramp_frame_unwind): Install
1052 i386_sigtramp_frame_unwind_stop_reason.
1053 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1054 type's size, not the register's.
1055 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1057 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1058 default_frame_unwind_stop_reason.
1059 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1060 (alpha_heuristic_frame_unwind): Ditto.
1061 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1062 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1063 * avr-tdep.c (avr_frame_unwind): Ditto.
1064 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1066 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1067 * frv-tdep.c (frv_frame_unwind): Ditto.
1068 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1069 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1070 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1071 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1072 (hppa_stub_frame_unwind): Ditto.
1073 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1074 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1075 (ia64_libunwind_frame_unwind)
1076 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1077 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1078 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1079 * m32c-tdep.c (m32c_unwind): Ditto.
1080 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1081 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1082 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1083 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1084 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1085 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1086 * mep-tdep.c (mep_frame_unwind): Ditto.
1087 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1088 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1089 (mips_stub_frame_unwind): Ditto.
1090 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1091 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1092 * mt-tdep.c (mt_frame_unwind): Ditto.
1093 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1094 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1095 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1096 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1097 (s390_sigtramp_frame_unwind): Ditto.
1098 * score-tdep.c (score_prologue_unwind): Ditto.
1099 * sh-tdep.c (sh_frame_unwind): Ditto.
1100 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1101 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1102 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1103 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1104 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1105 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1106 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1107 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1108 (sparc64obsd_trapframe_unwind): Ditto.
1109 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1110 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1111 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1112 * v850-tdep.c (v850_frame_unwind): Ditto.
1113 * vax-tdep.c (vax_frame_unwind): Ditto.
1114 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1115 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1116 * xtensa-tdep.c (xtensa_unwind): Ditto.
1118 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1120 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1121 there's always a frame. Use get_frame_pc_if_available instead of
1122 get_frame_pc, and if there's no PC available, don't look up a
1125 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1127 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1130 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1132 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1135 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1137 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1138 * frame.c (frame_unwind_caller_pc_if_available): New.
1139 * stack.c (frame_info): Handle unavailable PC.
1141 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1143 * frame.c (frame_unwind_pc): Rename to ...
1144 (frame_unwind_pc_if_available): ... this. New `pc' output
1145 parameter. Change return type to int. Gracefully handle
1146 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1147 happened, or 1 otherwise.
1148 (frame_unwind_pc): Reimplement on top of
1149 frame_unwind_pc_if_available.
1150 (get_frame_func): Rename to ...
1151 (get_frame_func_if_available): New `pc' output parameter. Change
1152 return type to int. Gracefully handle the PC not being available.
1153 (get_frame_func): Reimplement on top of
1154 get_frame_func_if_available.
1155 (select_frame): Handle the PC being unavailable.
1156 (get_prev_frame): Handle the PC being unavailable.
1157 (get_frame_pc_if_available): New.
1158 (get_frame_address_in_block_if_available): New.
1159 (find_frame_sal): Handle the frame PC not being available.
1160 * frame.h (get_frame_pc_if_available): Declare.
1161 (get_frame_address_in_block_if_available): Declare.
1162 (get_frame_func_if_available): Declare.
1163 * stack.c (print_frame_info): Handle the PC being unavailable.
1164 (find_frame_funname): Ditto.
1165 (print_frame): Handle the PC being unavailable.
1166 (get_frame_language): Ditto.
1167 * blockframe.c (get_frame_block): Ditto.
1168 * macroscope.c (default_macro_scope): Ditto.
1169 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1171 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1173 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1174 NOT_AVAILABLE_ERROR when evaluating the location expression.
1176 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1178 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1179 returning that the register piece is unavailable/optimized out.
1180 (write_pieced_value): Handle get_frame_register_bytes returning
1181 that the register piece is unavailable/optimized out when doing a
1182 read-modify write of a bitfield.
1183 * findvar.c (value_from_register): Handle get_frame_register_bytes
1184 returning that the register piece is unavailable/optimized out.
1185 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1186 and `unavailablep'. Throw error on bad debug info. Use
1187 frame_register instead of frame_register_read, to fill in the new
1189 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1191 * valops.c: (value_assign): Adjust, and handle
1192 get_frame_register_bytes failing.
1193 * spu-tdep.c: Include exceptions.h.
1194 (spu_software_single_step): Adjust, and handle
1195 get_frame_register_bytes failing.
1196 (spu_get_longjmp_target): Ditto.
1197 * gdbarch.sh (register_to_value): Change to return int. New
1198 parameters `optimizedp' and `unavailablep'.
1199 * gdbarch.h, gdbarch.c: Regenerate.
1200 * i386-tdep.c (i386_register_to_value): Adjust to new
1201 gdbarch_register_to_value interface.
1202 * i387-tdep.c (i387_register_to_value): Ditto.
1203 * i387-tdep.h (i387_register_to_value): Ditto.
1204 * alpha-tdep.c (alpha_register_to_value): Ditto.
1205 * ia64-tdep.c (ia64_register_to_value): Ditto.
1206 * m68k-tdep.c (m68k_register_to_value): Ditto.
1207 * mips-tdep.c (mips_register_to_value): Ditto.
1208 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1210 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1212 * findvar.c (value_of_register): Mark the value as unavailable, if
1213 the register is unavailable.
1214 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1215 (frame_register): New `unavailablep' parameter.
1216 (frame_register_read): Update comment.
1217 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1218 Set it if the register is unavailable. If the register is
1219 unavailable, clear the output buffer.
1220 (frame_register): New `unavailablep' parameter. Pass it down.
1221 (frame_unwind_register): Adjust.
1222 (put_frame_register): Adjust.
1223 (frame_register_read): Adjust. Also return false if the register
1225 (frame_register_unwind_location): Adjust.
1226 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1227 is unavailable, mark the value accordingly.
1228 * stack.c (frame_info): Handle unavailable registers.
1230 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1232 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1233 simplify, using regcache_cooked_read.
1235 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1237 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1238 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1239 (regcache_raw_read_unsigned, regcache_raw_read_part)
1240 (regcache_cooked_read, regcache_cooked_read_signed)
1241 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1242 (regcache_cooked_read_ftype): Change return to enum
1244 * regcache.c: Include exceptions.h
1245 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1246 (do_cooked_read): Change return to enum register_status. Always
1247 forward to regcache_cooked_read.
1248 (regcache_raw_read): Change return to enum register_status. If
1249 the register is not REG_VALID, memset the buffer. Return the
1251 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1252 return the register's status.
1253 (regcache_raw_read_unsigned): Ditto.
1254 (regcache_cooked_read): Change return to enum register_status.
1255 Assert that with read-only regcaches, the register's status must
1256 be known. If the regcache is read-only, and the register is not
1257 REG_VALID, memset the buffer. Return the register's status.
1258 (regcache_cooked_read_signed): Change return to enum
1259 register_status. Handle non-REG_VALID registers and return the
1261 (regcache_cooked_read_unsigned): Change return to enum
1262 register_status. Handle non-REG_VALID registers and return the
1264 (regcache_xfer_part, regcache_raw_read_part)
1265 (regcache_cooked_read_part): Change return to enum
1266 register_status. Return the register's status.
1267 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1269 (regcache_dump): Handle unavailable cooked registers.
1270 * frame.c (do_frame_register_read): Adjust interface to match
1271 regcache_cooked_read_ftype.
1272 * gdbarch.sh (pseudo_register_read): Change return to enum
1274 * gdbarch.h, gdbarch.c: Regenerate.
1276 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1278 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1279 register_status. If reading a raw register indicates the raw
1280 register is not valid, return the raw register's status,
1281 otherwise, return REG_VALID.
1282 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1283 register_status. Handle non-REG_VALID raw registers and return
1284 the register's status.
1285 * arm-tdep.c (arm_neon_quad_read)
1286 (arm_pseudo_read): Change return to enum register_status. Handle
1287 non-REG_VALID raw registers and return the register's status.
1288 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1289 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1290 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1291 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1292 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1294 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1295 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1296 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1297 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1298 (m32c_pseudo_register_read): Change return to enum
1299 register_status. Adjust.
1300 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1301 enum register_status. Return the register's status.
1302 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1303 register_status. Return the register's status.
1304 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1305 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1306 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1307 * rs6000-tdep.c (move_ev_register_func): New typedef.
1308 (e500_move_ev_register): Use it. Change return to enum
1309 register_status. Return the register's status.
1310 (do_regcache_raw_read): New function.
1311 (do_regcache_raw_write): New function.
1312 (e500_pseudo_register_read): Change return to enum
1313 register_status. Return the register's status. Use
1314 do_regcache_raw_read.
1315 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1316 (dfp_pseudo_register_read): Change return to enum register_status.
1317 Return the register's status.
1318 (vsx_pseudo_register_read): Ditto.
1319 (efpr_pseudo_register_read): Ditto.
1320 (rs6000_pseudo_register_read): Ditto.
1321 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1322 register_status. Return the register's status.
1323 * sh64-tdep.c (pseudo_register_read_portions): New function.
1324 (sh64_pseudo_register_read): Change return to enum
1325 register_status. Use pseudo_register_read_portions. Return the
1327 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1328 register_status. Return the register's status.
1329 * sh-tdep.c (pseudo_register_read_portions): New function.
1330 (sh_pseudo_register_read): Change return to enum register_status.
1331 Use pseudo_register_read_portions. Return the register's status.
1332 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1333 enum register_status. Return the register's status.
1334 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1335 * spu-tdep.c (spu_pseudo_register_read_spu)
1336 (spu_pseudo_register_read): Ditto.
1337 * xtensa-tdep.c (xtensa_register_read_masked)
1338 (xtensa_pseudo_register_read): Ditto.
1339 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1341 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1343 * python/py-value.c (valpy_getitem): Fix formatting of error function
1346 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1348 ARI fixes: Add missing internationalization markups throughout
1350 * darwin-nat-info.c: Ditto.
1353 * mi/mi-main.c: Ditto.
1355 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1357 ARI fixes: Add missing internationalization markups throughout
1360 * cp-name-parser.y: Ditto.
1363 * objc-exp.y: Ditto.
1366 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1368 ARI fixes: Messages should have no trailing new lines.
1369 * darwin-nat.c (mach_check_error): Remove trailing new line from
1370 warning function call message.
1371 * record.c (bfdcore_read): Idem for error call.
1373 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1375 * common/signals.c (target_signal_from_host): Add _ markup to error
1376 function call message.
1377 (target_signal_to_host): Add _ markup and remove trailing new line
1378 from warning call message.
1379 (target_signal_from_command): Add _ markup to error function call
1382 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1386 * python/python.c (gdbpy_write): Accept a stream argument and
1387 operate to the appropriate stream.
1388 (gdbpy_flush): Likewise.
1389 (_initialize_python): Add stream constants.
1390 (finish_python_initialization): Add GdbOutputErrorFile class.
1392 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1394 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1396 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1398 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1399 to store_signed_integer. Add debug message when relocating CALL
1400 instructions. Fix formatting of debug message.
1401 * i386-tdep.c (i386_relocate_instruction): Ditto.
1403 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1405 * target.h (struct target_ops): Remove to_lookup_symbol field.
1406 (target_lookup_symbol): Delete macro.
1407 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1408 (update_current_target, setup_target_debug): Remove handling
1409 of to_lookup_symbol target_ops field.
1410 * ada-tasks.c (get_known_tasks_addr): Remove use of
1411 target_lookup_symbol.
1412 * coffread.c (coff_symtab_read): Likewise.
1413 * dbxread.c (read_dbx_symtab): Ditto.
1415 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1418 * configure.ac: Add getthrds declaration check.
1419 * configure, config.in: Regenerate.
1420 * aix-thread.c (getthrds): Declare only if not already declared
1421 in procinfo.h. More declaration out of get_signaled_thread to
1424 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1426 * python/py-symtab.c: Populate symtab_object_methods,
1428 (stpy_is_valid): New function.
1429 (salpy_is_valid): Ditto.
1430 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1431 (sympy_is_valid): New function.
1432 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1433 (objfpy_is_valid): New function.
1434 * python/py-inferior.c: Populate inferior_object_methods.
1435 (infpy_is_valid): New function.
1436 * python/py-infthread.c: Populate thread_object_methods.
1437 (thpy_is_valid): New function.
1438 * python/py-block.c: Declare block_object_methods. Populate. Declare
1439 block_iterator_object_methods. Populate.
1440 (blpy_is_valid): New function.
1441 (blpy_iter_is_valid): Ditto.
1443 2011-03-16 Keith Seitz <keiths@redhat.com>
1445 * linespec.c (find_methods): Canonicalize NAME before looking
1447 (name_end): New function.
1448 (keep_name_info): New function.
1449 (decode_line_1): Use keep_name_info.
1450 (decode_compound): Likewise.
1451 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1452 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1455 * linespec.c (locate_first_half): Keep overload information, too.
1456 (decode_compound): Use a string to represent break characters
1458 If P points to a break character, do not increment it.
1459 For C++ and Java, keep overload information and relevant keywords.
1460 If we cannot find a symbol, search the minimal symbols.
1463 * linespec.c (decode_compound): Rename SAVED_ARG to
1465 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1467 Pass a valid block to lookup_symbol.
1468 (lookup_prefix_sym): Likewise.
1469 (find_method): Construct search name based on SYM_CLASS instead
1471 * psymtab.c (lookup_partial_symbol): Add language parameter.
1472 (lookup_symbol_aux_psymtabs): Likewise.
1473 Don't assume that the psymtab we found was the right one. Search
1474 for the desired symbol in the symtab to be certain.
1475 (psymtab_search_name): New function.
1476 (lookup_partial_symbol): Use psymtab_search_name.
1477 Add language parameter.
1478 (read_symtabs_for_function): Add language parameter and pass to
1479 lookup_partial_symbol.
1480 (find_symbol_file_from_partial): Likewise.
1482 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1485 * dwarf2read.c (noop_record_line): New function.
1486 (dwarf_decode_lines): Ignore line tables for GCd functions.
1488 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1490 Fix ARI warnings about new lines at the end of messages, which
1491 are unneeded as there is a new line added at the end of the message
1493 * darwin-nat.c (darwin_stop_inferior): Ditto.
1494 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1495 * dfp.c (decimal_to_number): Ditto.
1496 * exec.c (print_section_info): Ditto.
1497 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1498 * osdata.c (get_osdata): Ditto.
1499 * record.c (bfdcore_write): Ditto.
1500 * remote-mips.c (mips_readchar): Ditto.
1501 * remote.c (read_ptid): Ditto.
1502 * ser-mingw.c (ser_windows_raw): Ditto.
1503 * tracepoint.c (add_local_symbols): Ditto.
1504 * windows-nat.c (fake_create_process): Ditto.
1506 2011-03-16 Tom Tromey <tromey@redhat.com>
1508 * tracepoint.c (stop_tracing): Don't declare.
1509 * event-top.c (after_char_processing_hook): Add `(void)'.
1511 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1513 * NEWS: Add Parameter sub-classing description.
1515 2011-03-16 Kai Tietz <ktietz@redhat.com>
1517 * MAINTAINERS: Update my e-mail address.
1519 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1521 * MAINTAINERS: Add myself for write after approval privileges.
1523 2011-03-15 Michael Snyder <msnyder@vmware.com>
1525 * frame.c (find_frame_sal): Assert sym is not null.
1527 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1529 * objc-lang.c (selectors_info): Check strchr for null result.
1531 * stabsread.c (define_symbol): Guard against bad stabstring input.
1533 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1535 Remove trailing spaces and tabulations from pascal language
1540 p-valprint.c: Ditto.
1542 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1544 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1545 than LOW. Comment it.
1546 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1547 HIGHPC not strictly higher than LOWPC.
1549 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1551 Fix formatting of function declarations returning a pointer in
1553 * varobj.c (varobj_add_child): Ditto.
1554 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1555 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1557 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1559 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1560 for the "generic" vector ABI used with GCC 4.3 and later.
1561 (ppc64_sysv_abi_return_value): Likewise.
1563 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1565 * infcall.c (call_function_by_hand): Function return value is
1566 always a non_lval, even when using struct_return.
1568 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1570 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1571 (map_display_numbers): New.
1572 (do_delete_display): New.
1573 (undisplay_command): Use map_display_numbers.
1574 (do_enable_disable_display): New.
1575 (enable_disable_display_command): New function.
1576 (enable_display): Delete.
1577 (enable_display_command): New.
1578 (disable_display_command): Reimplement.
1579 (_initialize_printcmd): Adjust "enable display" command to use
1580 `enable_display_command' as callback.
1582 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1584 * NEWS: Add Python breakpoint 'stop' operation.
1586 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1588 * NEWS: Delete duplicate entry. Fix typo.
1590 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1592 Fix ARI warning about function names in first column.
1593 Put prototype declaration on same line as return type.
1594 * objc-exp.y: Ditto.
1596 * python/py-stopevent.h: Ditto.
1597 For long function names, split parameters to
1598 allow function name on same line as return type.
1599 * solib-pa64.c: Ditto.
1602 For long function declaration, use single line.
1603 * hppa-tdep.h: Ditto.
1604 * inferior.h: Ditto.
1606 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1608 * python/python.h: Declare gdbpy_should_stop and
1609 gdbpy_breakpoint_has_py_cond.
1610 * python/python.c: Add python.h to includes. Remove python.h from
1611 HAVE_PYTHON definition
1612 (gdbpy_should_stop): New dummy function.
1613 (gdbpy_breakpoint_has_py_cond): New dummy function.
1614 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1615 sub-classing capabilities.
1616 (gdbpy_should_stop): New function.
1617 (gdbpy_breakpoint_has_py_cond): New function.
1618 (local_setattro): New function.
1619 * breakpoint.c (condition_command): Add check for Python 'stop'
1621 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1622 operation function as part of stop/continue tests.
1624 2011-03-14 Tom Tromey <tromey@redhat.com>
1627 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1628 (needs_frame_dwarf_call): Likewise.
1630 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1632 Fix ARI warning about functions without parameters that do not
1634 * breakpoint.c (all_tracepoints): Replace () by (void).
1635 * f-exp.y (match_string_literal): Ditto.
1637 * m2-exp.y (yylex): Ditto.
1638 * mep-tdep.c (current_me_module): Ditto.
1639 (current_options): Ditto.
1640 (current_cop_data_bus_width): Ditto.
1641 (current_cr_names): Ditto.
1642 (current_cr_is_float): Ditto.
1643 (current_ccr_names): Ditto.
1644 * objc-exp.y (yylex): Ditto.
1645 * p-exp.y (yylex): Ditto.
1646 * remote.c (send_interrupt_sequence): Ditto.
1647 * tracepoint.c (current_trace_status): Ditto.
1648 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1649 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1651 2011-03-11 Michael Snyder <msnyder@vmware.com>
1653 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1654 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1655 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1656 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1657 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1659 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1660 (delete_async_event_handler): Ditto.
1662 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1664 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1666 * top.c (set_verbose): Assert showcmd was found.
1668 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1670 * xtensa-tdep.c (warning_once): Correct style issues.
1672 2011-03-11 Yao Qi <yao@codesourcery.com>
1674 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1676 2011-03-11 Andreas Schwab <schwab@redhat.com>
1678 * common/aclocal.m4: Remove.
1680 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1682 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1683 (xtensa_write_register, xtensa_read_register): Likewise.
1684 (xtensa_hextochar): Removed.
1685 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1687 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1689 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1690 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1691 (xtensa_alloc_frame_cache): Add initialization for new fields.
1692 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1693 (warning_once): New function.
1694 (xtensa_insn_kind): New item c0opc_and.
1695 (call0_classify_opcode): Add the case for AND instruction.
1696 (call0_track_op): Change arguments. New local variable litbase.
1697 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1698 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1700 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1701 (call0_analyze_prologue): Update the comments. Change arguments.
1702 Add the variety of updates to handle extended prologues, which now can
1703 conduct dynamic stack adjustments.
1704 (call0_frame_cache): Likewise.
1705 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1706 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1708 2011-03-10 Michael Snyder <msnyder@vmware.com>
1710 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1711 (cmd_qtframe): Ditto.
1712 (cmd_qtbuffer): Ditto.
1713 (cmd_bigqtbuffer): Ditto.
1715 2011-03-10 Tom Tromey <tromey@redhat.com>
1717 * tracepoint.c (trace_actions_command): Update.
1718 * thread.c (thread_apply_command): Update.
1719 * reverse.c (delete_bookmark_command): Update.
1720 (bookmarks_info): Update.
1721 * printcmd.c (undisplay_command): Update.
1722 * memattr.c (mem_enable_command): Update.
1723 (mem_disable_command): Update.
1724 (mem_delete_command): Update.
1725 * inferior.c (detach_inferior_command): Update.
1726 (kill_inferior_command): Update.
1727 (remove_inferior_command): Update.
1728 * cli/cli-utils.h (struct get_number_or_range_state): New.
1729 (init_number_or_range): Declare.
1730 (get_number_or_range): Update.
1731 * cli/cli-utils.c (init_number_or_range): New function.
1732 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1734 (number_is_in_list): Update.
1735 * breakpoint.h (get_tracepoint_by_number): Update.
1736 * breakpoint.c (map_breakpoint_numbers): Update for change to
1737 get_number_or_range.
1738 (find_location_by_number): Use get_number, not
1739 get_number_or_range.
1740 (trace_pass_set_count): New function.
1741 (trace_pass_command): Update for change to get_number_or_range.
1743 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1746 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1748 * python/py-param.c (add_setshow_generic): Add set/show callback
1749 parameters. Register Python object context.
1750 (get_show_value): New function.
1751 (get_set_value): New function.
1752 (call_doc_function): New function.
1753 (get_doc_string): Move behind get_show_value/get_set_value.
1755 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1757 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1759 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1761 * xtensa-tdep.c (xtensa_read_register): Add comment.
1762 (xtensa_write_register): Likewise.
1763 (xtensa_hextochar): Add comment and update to match coding conventions.
1764 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1765 (execute_l32e, execute_s32e, execute_code): Update comments.
1766 (xtensa_exception_handler_t): Update to match coding conventions.
1767 (xtensa_insn_kind): Likewise.
1769 2011-03-09 Michael Snyder <msnyder@vmware.com>
1771 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1773 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1775 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1777 2011-03-09 Tom Tromey <tromey@redhat.com>
1779 * thread.c (restore_selected_frame): Handle frame_level == -1.
1780 (make_cleanup_restore_current_thread): Use
1781 get_selected_frame_if_set.
1782 * frame.h (get_selected_frame_if_set): Declare.
1783 * frame.c (get_selected_frame_if_set): New function.
1785 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1787 * cli/cli-cmds.c (shell_escape): Use lbasename.
1788 * coffread.c (coff_start_symtab): Constify parameter.
1789 (complete_symtab): Constify `name' parameter.
1790 (coff_symtab_read): Constify `filestring' local.
1791 (coff_getfilename): Constify return and `result' local.
1793 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1794 * linux-fork.c (info_checkpoints_command): Use lbasename.
1795 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1796 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1797 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1798 * procfs.c (procfs_make_note_section): Use lbasename.
1799 * tui/tui-io.c (printable_part): Constity return and parameter.
1801 (print_filename): Constify parameters, and local `s'.
1802 (tui_rl_display_match_list): Constify local `temp'.
1804 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1807 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1808 Fix DWARF-3+ DW_AT_accessibility default assumption.
1809 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1810 cu->header.version >= 3.
1812 2011-03-09 Yao Qi <yao@codesourcery.com>
1814 * common/Makefile.in: Remove.
1815 * common/configure: Remove.
1816 * common/configure.ac: Remove.
1818 2011-03-09 Yao Qi <yao@codesourcery.com>
1821 2011-02-11 Yao Qi <yao@codesourcery.com>
1823 * common/Makefile.in: Add copyright header.
1825 2011-02-11 Yao Qi <yao@codesourcery.com>
1827 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1829 * configure.ac: Add common to sub dir.
1830 * configure: Regenerate.
1832 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1834 * xtensa-tdep.c (call0_ret): New function.
1835 (xtensa_skip_prologue): Speed up analysis.
1837 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1839 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1840 while executing MI command -data-list-changed-registers.
1842 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1844 * xtensa-tdep.c (xtensa_read_register): New function.
1845 (xtensa_write_register): New function.
1846 (xtensa_find_register_by_name): New function.
1847 (xtensa_windowed_frame_cache): Update comments in type description.
1848 (xtensa_frame_cache): Likewise.
1849 (xtensa_window_interrupt_insn): New function.
1850 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1851 (xtensa_insn_kind): Add new instructions.
1852 (rwx_special_register): New function.
1853 (call0_classify_opcode): Add new instructions to the analysis.
1854 (a0_saved, a7_saved, a11_saved): New variables.
1855 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1856 (execute_l32e): New function.
1857 (execute_s32e): New function.
1858 (xtensa_exception_handler_t): New type.
1859 (execute_code): New function.
1860 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1861 analysis for Xtensa Window Exception handlers.
1863 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1865 * xtensa-tdep.c (TX_PS): New.
1866 (windowing_enabled): Update to count for Call0 ABI.
1867 (xtensa_hextochar): New.
1868 (xtensa_init_reggroups): Make algorithm generic.
1869 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1871 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1873 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1875 2011-03-08 Michael Snyder <msnyder@vmware.com>
1877 * i386-tdep.c (i386_follow_jump): Check return value of
1879 (i386_analyze_struct_return): Ditto.
1880 (i386_skip_probe): Ditto.
1881 (i386_match_insn): Ditto.
1882 (i386_skip_noop): Ditto.
1883 (i386_analyze_frame_setup): Ditto.
1884 (i386_analyze_register_saves): Ditto.
1885 (i386_skip_prologue): Ditto.
1886 (i386_skip_main_prologue): Ditto.
1888 * target.c (read_whatever_is_readable): Fix memory leak.
1890 * i386-tdep.c (i386_process_record): Document fall through.
1892 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1894 Fix DWARF-3+ DW_AT_accessibility default assumption.
1895 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1896 cu->header.version >= 3.
1898 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1900 * remote.c (remote_check_symbols): Skip if the target has no
1903 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1905 * target.c (read_whatever_is_readable): Reformat comment,
1906 with a minor typo fix. Minor reformatting of the code.
1908 2011-03-08 Yao Qi <yao@codesourcery.com>
1910 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1911 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1912 Use cached result instead of calling displaced_in_arm_mode again.
1913 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1914 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1915 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1916 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1917 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1918 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1919 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1920 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1921 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1922 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1923 (arm_catch_kernel_helper_return): Likewise.
1924 * gdb/arm-tdep.h : Update function declarations.
1926 2011-03-07 Michael Snyder <msnyder@vmware.com>
1928 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1930 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1932 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1934 * elfread.c (elf_symtab_read): Stop memory leak.
1936 * main.c (captured_main): Fix memory leak.
1938 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1940 * ada-lang.c (compare_names): Call is_name_suffix with string1
1943 2011-03-07 Tom Tromey <tromey@redhat.com>
1945 * xcoffread.c (xcoff_sym_fns): Update.
1946 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1947 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1948 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1949 (symbol_file_add_with_addrs_or_offsets): Likewise.
1950 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1951 * somread.c (som_sym_fns): Update.
1952 * psymtab.h (require_partial_symbols): Declare.
1953 * psymtab.c (require_partial_symbols): New function.
1954 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1955 (ALL_OBJFILE_PSYMTABS): Undef.
1956 (ALL_PSYMTABS): Move from psympriv.h.
1957 (lookup_partial_symtab, find_pc_sect_psymtab)
1958 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1959 (find_last_source_symtab_from_partial)
1960 (forget_cached_source_info_partial)
1961 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1962 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1963 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1964 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1965 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1966 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1967 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1968 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1969 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1971 * mipsread.c (ecoff_sym_fns): Update.
1972 * machoread.c (macho_sym_fns): Update.
1973 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1974 (read_psyms): New function.
1975 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1976 (elf_sym_fns_lazy_psyms): New global.
1977 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1978 dwarf2_build_psymtabs.
1979 * dbxread.c (aout_sym_fns): Update.
1980 * coffread.c (coff_sym_fns): Update.
1982 2011-03-07 Tom Tromey <tromey@redhat.com>
1984 * infrun.c (print_exited_reason): Include inferior id and pid in
1987 2011-03-07 Tom Tromey <tromey@redhat.com>
1989 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1991 (target_has_execution_1): Update.
1992 (target_has_execution_current): Declare.
1993 (target_has_execution): Call target_has_execution_current.
1994 (default_child_has_execution): Update.
1995 * target.c (default_child_has_execution): Add 'the_ptid'
1997 (target_has_execution_1): Likewise.
1998 (target_has_execution_current): New function.
1999 (add_target): Update.
2000 (init_dummy_target): Update.
2001 * remote-m32r-sdi.c (m32r_has_execution): New function.
2002 (init_m32r_ops): Use it.
2003 * record.c (record_core_has_execution): Now static. Add
2004 'the_ptid' parameter.
2005 * inferior.c (have_live_inferiors): Don't save current thread.
2006 Use target_has_execution_1.
2008 2011-03-07 Yao Qi <yao@codesourcery.com>
2010 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2012 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2014 * elfread.c (elf_symtab_read): Minor reformatting.
2016 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2018 * objc-lang.c (selectors_info): Minor reformatting.
2020 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2022 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2024 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2025 Michael Snyder <msnyder@vmware.com>
2027 * ada-valprint.c (ada_val_print_array): Move the declaration of
2028 "byte_order" and "elttype" inside the block where these variables
2029 are actually used. Remove some special handling for the case
2030 where "elttype" and "eltlen" are null. Replace by a comment
2031 and a couple of assertion checks.
2033 2011-03-05 Michael Snyder <msnyder@vmware.com>
2035 * source.c (add_path): Replace semicolon at end of block.
2036 * dwarf2expr.c (execute_stack_op): Ditto.
2038 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2040 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2041 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2042 (bfin-*-*): Likewise.
2044 2011-03-05 Michael Snyder <msnyder@vmware.com>
2046 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2047 * mdebugread.c (parse_symbol): Ditto.
2048 * parse.c (parse_exp_in_context): Ditto.
2049 * source.c (add_path): Ditto.
2050 * utils.c (gnu_debuglink_crc32): Ditto.
2051 * varobj.c (variable_language): Ditto.
2053 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2055 2011-03-04 Michael Snyder <msnyder@vmware.com>
2057 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2059 * symfile.c (simple_overlay_update): Check for null return value
2060 from lookup_minimal_symbol.
2062 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2064 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2066 * eval.c (parse_and_eval_address_1): Remove function.
2067 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2068 instead of parse_and_eval_address_1.
2069 * value.h (parse_and_eval_address_1): Remove prototype.
2071 2011-03-04 Michael Snyder <msnyder@vmware.com>
2073 * remote.c (putpkt_binary): Document that case stmt falls through.
2075 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2077 * breakpointc (print_it_typical): Move NULL check from here...
2078 (print_bp_stop_message): ... to here.
2080 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2082 * breakpoint.c (enable_command): Use break instead of continue,
2083 and fill in a missing break.
2084 (disable_command): Ditto.
2086 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2088 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2089 (terminal_save_ours): Remove misleading comment.
2090 (inflow_inferior_data_cleanup): Free ttystate.
2091 (inflow_inferior_exit): Likewise.
2092 (copy_terminal_info): Copy ttystate.
2094 * serial.c (serial_copy_tty_state): New function.
2095 * serial.h (serial_copy_tty_state): Add prototype.
2096 (struct serial_ops): Add copy_tty_state callback.
2097 * ser-base.c (ser_base_copy_tty_state): New function.
2098 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2099 * ser-go32.c (dos_copy_tty_state): New function.
2100 (dos_ops): Install copy_tty_state callback.
2101 * ser-mingw.c (_initialize_ser_windows): Likewise.
2102 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2103 * ser-unix.c (hardwire_copy_tty_state): New function.
2104 (_initialize_ser_hardwire): Install it.
2106 2011-03-04 Michael Snyder <msnyder@vmware.com>
2108 * breakpoint.c (create_breakpoint): Add missing break statement.
2110 Reverting this patch:
2111 * infcall.c (call_function_by_hand): Add break statements for lint.
2113 Reverting this patch:
2114 * cli/cli-script.c (script_from_file): Add break for lint.
2116 2011-03-04 Michael Snyder <msnyder@vmware.com>
2118 * solib.c (reload_shared_libraries_1): Close memory leak.
2120 2011-03-03 Tom Tromey <tromey@redhat.com>
2123 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2126 2011-03-03 Michael Snyder <msnyder@vmware.com>
2128 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2129 fields of struct 'st' to zero.
2131 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2132 sal.pspace before calling set_current_source_symtab_and_line.
2134 2011-03-03 Yao Qi <yao@codesourcery.com>
2136 * Makefile.in (configure-common): Remove. Let Makefile
2137 in dir common to rebuild itself.
2138 (common/Makefile): Likewise.
2140 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2142 * utils.c (parse_escape): Add i18n markup in error message.
2144 2011-03-03 Yao Qi <yao@codesourcery.com>
2146 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2148 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2149 (displaced_write_reg, displaced_read_reg): Likewise.
2150 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2151 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2152 (cleanup_branch): Replace magic number 14 and 15 with
2153 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2155 2011-03-02 Michael Snyder <msnyder@vmware.com>
2157 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2159 * cli/cli-script.c (script_from_file): Add break for lint.
2161 * mdebugread.c (parse_partial_symbols): Fix indent.
2163 * target-descriptions.c (tdesc_gdb_type): No need to call
2164 xstrdup, callee saves a copy.
2166 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2168 * infcall.c (call_function_by_hand): Add break statements for lint.
2170 * utils.c (parse_escape): Escape the escape char.
2172 * python/py-inferior.c (build_inferior_list): Error out if
2173 PyList_Append fails.
2174 (gdbpy_inferiors): Error out if build_inferior_list fails.
2176 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2179 * record.c (record_restore): Move printf to before error return.
2181 2011-03-02 Yao Qi <yao@codesourcery.com>
2183 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2184 is_thumb and insn_size.
2185 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2186 on both ARM and Thumb mode.
2187 (arm_process_displaced_insn): Set is_thumb and insn_size.
2188 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2189 (arm_displaced_step_fixup): Likewise.
2191 2011-03-01 Michael Snyder <msnyder@vmware.com>
2193 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2195 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2197 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2199 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2201 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2204 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2205 which shadows function parameter.
2207 * tracepoint.c (create_tsv_from_upload): Superfluous call
2208 to xstrdup. Callee already calls xstrdup.
2210 * linespec.c (decode_line_1): Remove unnecessary null check.
2212 * tracepoint.c (scope_info): Fix mem leak, remove underused
2215 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2216 superfluous null check.
2218 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2219 (value_of_builtin_frame_fp_reg): Ditto.
2221 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2223 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2226 * linespec.c (decode_line_1): Check for null before dereference.
2228 * reverse.c (record_restore): Move null-check to before pointer
2231 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2233 * objc-lang.c (selectors_info): Add explanitory comment.
2234 (classes_info): Ditto.
2236 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2238 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2239 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2240 versions of the trampoline. Handle Thumb vs. ARM addresses.
2241 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2242 (arm_linux_init_abi): Install it.
2243 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2244 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2246 2011-02-28 Michael Snyder <msnyder@vmware.com>
2248 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2249 a little bigger, to avoid possibility of an overflow.
2251 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2252 buffers a little bigger, to avoid possibility of an overflow.
2254 * coffread.c (coff_getfilename): Add check to avoid overflow.
2256 * objc-lang.c (selectors_info): Add a small safety margin to
2258 (classes_info): Error out on too long REGEXP.
2260 * infrun.c (handle_inferior_event): Remove unused function call.
2262 * fork-child.c (fork_inferior): Remove ifdef'd code and
2265 * linux-thread-db.c (attach_thread): Discard unused value.
2267 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2269 * remote.c (remote_get_noisy_reply): Discard unused value.
2270 (remote_vcont_resume): Ditto.
2271 (remote_stop_ns): Ditto.
2273 * linespec.c (decode_objc): Delete unused variable.
2275 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2277 * dwarf2read.c (add_partial_symbol): Discard unused values.
2278 (read_base_type): Delete unused variable.
2280 * dbxread.c (read_dbx_symtab): Discard unused value.
2282 * eval.c (evaluate_subexp_standard): Delete unused variable,
2283 and discard unused values.
2285 * infcmd.c (_initialize_infcmd): Discard unused values.
2287 * stabsread.c (rs6000_builtin_type): Missing break statement.
2289 * dbxread.c (process_one_symbol): Discard unused value.
2291 * coffread.c (coff_end_symtab): Delete unused variable.
2293 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2294 (dwarf2_add_typedef): Delete unused variable.
2295 (read_namespace): Ditto.
2296 (dwarf_decode_macros): Ditto.
2298 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2300 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2302 * p-valprint.c (pascal_val_print): Discard unused value.
2304 * utils.c (nquery): Call va_end before return;
2308 * proc-service.c (ps_plog): Call va_end before return.
2310 2011-02-28 Tom Tromey <tromey@redhat.com>
2312 * python/python.c (gdbpy_value_cst): New global.
2313 (_initialize_python): Initialize it.
2314 * python/python-internal.h (gdbpy_value_cst): Declare.
2315 * python/py-value.c (convert_value_from_python): Use
2318 2011-02-28 Michael Snyder <msnyder@vmware.com>
2320 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2322 * breakpoint.c (catch_syscall_completer): Free malloced list.
2324 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2326 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2327 (lval_func_check_synthetic_pointer): Ditto.
2328 (lval_func_free_closure): Fix use-after-free.
2330 2011-02-28 Tom Tromey <tromey@redhat.com>
2332 * psymtab.c (expand_partial_symbol_tables): Use
2333 ALL_OBJFILE_PSYMTABS.
2335 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2337 * objc-lang.c (selectors_info): Error on too long REGEXP.
2339 2011-02-28 Michael Snyder <msnyder@vmware.com>
2341 * python/py-param.c (set_parameter_value): Add missing
2344 * linux-record.c (record_linux_system_call): Add missing
2347 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2349 * breakpoint.c (print_one_breakpoint_location): Remove unused
2350 argument PRINT_ADDRESS_BITS. Update callers.
2351 (print_one_breakpoint): Likewise.
2353 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2355 * breakpoint.c (wrap_indent_at_field): New function.
2356 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2357 Allocate ui_stream locally instead of using STB argument.
2358 (print_one_breakpoint_location): Update call.
2359 * ui-out.c (ui_out_query_field): New function.
2360 * ui-out.h (ui_out_query_field): Add prototype.
2362 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2364 From Michael Snyder <msnyder@vmware.com>
2365 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2367 2011-02-27 Michael Snyder <msnyder@vmware.com>
2369 * objc-lang.c (selectors_info): Prevent string overrun.
2371 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2374 * symtab.c (rbreak_command): Move variable 'file_name' to
2377 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2378 param with a local variable of the same name.
2380 2011-02-27 Michael Snyder <msnyder@vmware.com>
2382 * value.c (value_from_history_ref): New function.
2383 * value.h (value_from_history_ref): Export.
2384 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2385 to parse value history references.
2386 * cli/cli-utils.h (get_number_trailer): Update comment.
2388 2011-02-27 Michael Snyder <msnyder@vmware.com>
2390 * inferior.c (detach_inferior_command): Use get_number_or_range.
2391 (kill_inferior_command): Ditto.
2392 (remove_inferior_command): Ditto.
2393 (initialize_inferiors): Make command names plural.
2394 Update help strings.
2396 2011-02-27 Michael Snyder <msnyder@vmware.com>
2398 * darwin-nat-info.c: Fix comment typo.
2399 * dwarf2expr.h: Ditto.
2400 * fbsd-nat.c: Ditto.
2401 * fbsd-nat.h: Ditto.
2402 * frame-unwind.h: Ditto.
2404 * hppa-hpux-tdep.c: Ditto.
2405 * i386-linux-nat.c: Ditto.
2406 * linux-nat.c: Ditto.
2407 * nbsd-nat.c: Ditto.
2408 * nbsd-nat.h: Ditto.
2409 * ppc-linux-tdep.c: Ditto.
2412 * tui/tui-winsource.c: Ditto.
2414 2011-02-26 Michael Snyder <msnyder@vmware.com>
2416 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2418 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2420 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2421 with a local variable of the same name.
2423 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2424 param with a local variable of the same name.
2425 (i387_supply_xsave): Ditto.
2427 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2428 that it does not shadow a function parameter.
2430 * i386-nat.c (i386_length_and_rw_bits): Document that case
2431 statement is meant to fall through.
2433 * expprint.c (dump_subexp_body_standard): Document that case
2434 statement is meant to fall through.
2436 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2437 dead if statement. Condition can't be false.
2439 2011-02-25 Michael Snyder <msnyder@vmware.com>
2441 * arm-tdep.c: Fix typos in comments.
2442 * bsd-uthread.c: Ditto.
2443 * completer.c: Ditto.
2445 * cp-namespace.c: Ditto.
2446 * cp-support.c: Ditto.
2447 * cris-tdep.c: Ditto.
2449 * dwarf2read.c: Ditto.
2451 * gdbtypes.h: Ditto.
2452 * inferior.h: Ditto.
2453 * mdebugread.c: Ditto.
2454 * mips-tdep.c: Ditto.
2455 * ppc-linux-nat.c: Ditto.
2456 * ppc-linux-tdep.c: Ditto.
2457 * printcmd.c: Ditto.
2458 * sol-thread.c: Ditto.
2459 * solib-frv.c: Ditto.
2461 * sparc64-tdep.c: Ditto.
2462 * spu-tdep.c: Ditto.
2463 * stabsread.c: Ditto.
2468 * python/py-block.c: Ditto.
2469 * python/py-symbol.c: Ditto.
2470 * python/py-symtab.c: Ditto.
2471 * python/py-value.c: Ditto.
2472 * tui/tui-win.c: Ditto.
2474 2011-02-25 Michael Snyder <msnyder@vmware.com>
2476 * inferior.c (print_inferior): Accept a string instead of an int
2477 for requested_inferiors, and use get_number_or_range to parse it.
2478 (info_inferiors_command): Pass args string to print_inferior.
2479 (initialize_inferiors): Change help string for info inferiors.
2480 * inferior.h (print_inferior): Export prototype change.
2482 2011-02-25 Tom Tromey <tromey@redhat.com>
2484 * common/ax.def (invalid2): Set to 0x31.
2486 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2488 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2490 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2492 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2494 2011-02-24 Michael Snyder <msnyder@vmware.com>
2496 * Makefile.in (clean): Make clean should remove generated files
2497 observer.h and observer.inc.
2499 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2501 Revert the following patch (not approved yet):
2502 2011-02-21 Hui Zhu <teawater@gmail.com>
2503 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2504 * ax-gdb.c (gen_printf_expr_callback): New function.
2505 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2506 * ax-general.c (ax_memcpy): New function.
2507 (ax_print): Handle "printf".
2509 * ax.h (ax_memcpy): Forward declare.
2510 * common/ax.def (invalid2): Removed.
2511 (printf): New entry.
2512 * printcmd.c (printcmd.h): New include.
2513 (string_printf): New function.
2514 (ui_printf): Removed.
2515 (printf_command): Remove static. Call string_printf.
2516 (eval_command): Call string_printf.
2517 * printcmd.h: New file.
2518 * tracepoint.c (validate_actionline,
2519 encode_actions_1): handle printf_command.
2521 2011-02-23 Tom Tromey <tromey@redhat.com>
2523 * ax-general.c (ax_pick): Add missing newline.
2525 2011-02-23 Michael Snyder <msnyder@vmware.com>
2527 * breakpoint.c (breakpoint_1): Change first argument from an int
2528 to a char pointer, so that the function now accepts a list of
2529 breakpoints rather than just one. Use new function
2530 'number_is_in_list' to implement.
2531 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2532 (watchpoints_info): Ditto.
2533 (tracepoints_info): Ditto.
2534 (maintenance_info_breakpoints): Ditto.
2535 (_initialize_breakpoint): Update help strings to reflect the fact
2536 that these functions can now take more than one argument.
2537 * cli/cli-utils.c (number_is_in_list): New function.
2538 * cli/cli-utils.h (number_is_in_list): Export.
2540 2011-02-23 Michael Snyder <msnyder@vmware.com>
2542 * memattr.c (mem_enable_command): Use get_number_or_range.
2543 (mem_disable_command): Ditto.
2544 (mem_delete_command): Ditto.
2545 (_initialize_mem): Tweak usage message to reflect multiple
2548 2011-02-22 Doug Evans <dje@google.com>
2550 Add gdb.lookup_global_symbol python function.
2552 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2553 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2554 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2556 2011-02-22 Tom Tromey <tromey@redhat.com>
2558 * language.c (language_class_name_from_physname): Rename
2559 'curr_language' argument to 'lang'; use in body.
2561 2011-02-22 Michael Snyder <msnyder@vmware.com>
2563 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2565 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2567 * frame-unwind.h: Fix comment to mention the this frame, not the
2570 2011-02-22 Tom Tromey <tromey@redhat.com>
2572 * symfile.c (auto_solib_limit): Remove.
2573 * symfile.h (auto_solib_limit): Remove.
2575 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2577 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2579 2011-02-21 Michael Snyder <msnyder@vmware.com>
2581 * gdbthread.h (print_thread_info): Change prototype.
2582 * thread.c (print_thread_info): Accept char* instead of int for
2583 requested_threads argument. Use new function number_is_in_list
2584 to determine which threads to list.
2585 (info_threads_command): Pass char* to print_thread_info.
2586 * cli/cli-utils.c (number_is_in_list): New function.
2587 * cli/cli-utils.h (number_is_in_list): Export.
2588 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2590 (print_one_inferior): Ditto.
2591 (mi_cmd_list_thread_groups): Ditto.
2593 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 * common/Makefile.in (CFLAGS): New.
2596 (COMPILE): Add $(CFLAGS).
2598 2011-02-21 Tom Tromey <tromey@redhat.com>
2600 * breakpoint.c (catch_syscall_command_1): Fix typo.
2602 2011-02-21 Tom Tromey <tromey@redhat.com>
2604 * reverse.c: Include cli-utils.h.
2605 * printcmd.c: Include cli-utils.h.
2606 (string_printf): Use skip_spaces.
2607 * cli/cli-utils.h: New file.
2608 * cli/cli-utils.c: New file.
2609 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2610 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2611 * breakpoint.h (get_number, get_number_or_range): Move to
2613 * breakpoint.c: Include cli-utils.h.
2614 (get_number_trailer, get_number, get_number_or_range)
2615 (ep_skip_leading_whitespace): Move to cli-utils.c.
2616 (create_breakpoint_sal, find_condition_and_thread)
2617 (decode_static_tracepoint_spec, watch_command_1)
2618 (watch_maybe_just_location, ep_parse_optional_if_clause)
2619 (catch_fork_command_1, catch_exec_command_1)
2620 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2621 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2622 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2623 (HFILES_NO_SRCDIR): Add cli-utils.h.
2624 (cli-utils.o): New target.
2626 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2628 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2629 before calling discard_all_inferiors.
2631 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2633 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2634 (struct builtin_opencl_type): Remove.
2635 (builtin_opencl_type): Change return type to "struct type **".
2636 (lookup_opencl_vector_type): Update caller.
2637 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2638 (build_opencl_types): Install plain array of "struct type *"
2639 instead of "struct builtin_opencl_type".
2641 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2642 Ulrich Weigand <uweigand@de.ibm.com>
2644 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2645 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2646 (struct arm_linux_hwbp_cap): New type.
2647 (arm_linux_get_hwbp_cap): New function.
2648 (arm_linux_get_hw_breakpoint_count): Likewise.
2649 (arm_linux_get_hw_watchpoint_count): Likewise.
2650 (arm_linux_can_use_hw_breakpoint): Likewise.
2651 (arm_hwbp_type): New type.
2652 (arm_hwbp_control_t): Likewise.
2653 (struct arm_linux_hw_breakpoint): Likewise.
2654 (struct arm_linux_thread_points): Likewise.
2655 (arm_threads): New global variable.
2656 (arm_linux_find_breakpoints_by_tid): New function.
2657 (arm_hwbp_control_initialize): Likewise.
2658 (arm_hwbp_control_is_enabled): Likewise.
2659 (arm_hwbp_control_disable): Likewise.
2660 (arm_linux_hw_breakpoint_initialize): Likewise.
2661 (arm_linux_get_hwbp_type): Likewise.
2662 (arm_linux_hw_watchpoint_initialize): Likewise.
2663 (arm_linux_hw_breakpoint_equal): Likewise.
2664 (arm_linux_insert_hw_breakpoint1): Likewise.
2665 (arm_linux_remove_hw_breakpoint1): Likewise.
2666 (arm_linux_insert_hw_breakpoint): Likewise.
2667 (arm_linux_remove_hw_breakpoint): Likewise.
2668 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2669 (arm_linux_insert_watchpoint): Likewise.
2670 (arm_linux_remove_watchpoint): Likewise.
2671 (arm_linux_stopped_data_address): Likewise.
2672 (arm_linux_stopped_by_watchpoint): Likewise.
2673 (arm_linux_watchpoint_addr_within_range): Likewise.
2674 (arm_linux_new_thread): Likewise.
2675 (arm_linux_thread_exit): Likewise.
2676 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2677 related target callbacks. Register arm_linux_new_thread and
2678 arm_linux_thread_exit.
2679 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2680 * arm-tdep.c (arm_pc_is_thumb): Make global.
2681 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2683 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2685 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2686 per-frame locations while within a function epilogue.
2688 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2690 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2691 to GNU coding standards.
2693 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2695 Allow use of mingw native on Windows 95 OS.
2696 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2697 (ser_windows_close): Only call CancelIo if function exists.
2698 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2699 to check for existence of CancelIo function in kernel32 DLL.
2701 2011-02-21 Hui Zhu <teawater@gmail.com>
2703 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2704 * ax-gdb.c (gen_printf_expr_callback): New function.
2705 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2706 * ax-general.c (ax_memcpy): New function.
2707 (ax_print): Handle "printf".
2709 * ax.h (ax_memcpy): Forward declare.
2710 * common/ax.def (invalid2): Removed.
2711 (printf): New entry.
2712 * printcmd.c (printcmd.h): New include.
2713 (string_printf): New function.
2714 (ui_printf): Removed.
2715 (printf_command): Remove static. Call string_printf.
2716 (eval_command): Call string_printf.
2717 * printcmd.h: New file.
2718 * tracepoint.c (validate_actionline,
2719 encode_actions_1): handle printf_command.
2721 2011-02-19 Michael Snyder <msnyder@vmware.com>
2723 * reverse.c (delete_one_bookmark): Argument is now bookmark
2724 id rather than pointer to bookmark struct.
2725 (delete_bookmark_command): Use get_number_or_range.
2726 (goto_bookmark_command): Parse with get_number instead of strtoul.
2727 (bookmark_1): New function. Print info for one bookmark.
2728 (bookmarks_info): Use get_number_or_range and bookmark_1.
2730 2011-02-18 Michael Snyder <msnyder@vmware.com>
2732 * thread.c (info_threads_command): Re-implement using
2733 get_number_or_range.
2734 (thread_apply_command): Ditto.
2736 2011-02-18 Tom Tromey <tromey@redhat.com>
2738 * common/ax.def: New file.
2739 * ax.h (enum agent_op): Use ax.def.
2740 * ax-general.c (aop_map): Use ax.def.
2742 2011-02-18 Tom Tromey <tromey@redhat.com>
2744 * ax-general.c (aop_map): Add pick and rot.
2745 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2746 <DW_OP_rot>: Implement.
2747 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2749 * ax-general.c (ax_pick): New function.
2751 2011-02-18 Tom Tromey <tromey@redhat.com>
2753 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2755 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2756 Tom Tromey <tromey@redhat.com>
2758 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2759 make_symbol_overload_list_block with NULL BLOCK.
2760 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2762 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2764 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2765 * breakpoint.h (get_number_or_range): Declare.
2766 * printcmd.c (ALL_DISPLAYS): Declare.
2767 (delete_display): Reimplement taking a display pointer.
2768 (undisplay_command): Accept a range of displays to delete, using
2769 get_number_or_range.
2771 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2773 * c-valprint.c (c_val_print): Add embedded_offset to address
2774 for arrays of unspecified length.
2775 * p-valprint.c (pascal_val_print): Likewise.
2777 2011-02-18 Yao Qi <yao@codesourcery.com>
2779 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2780 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2781 (thumb_process_displaced_insn): New.
2782 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2783 call to arm_process_displaced_insn.
2784 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2786 2011-02-17 Tom Tromey <tromey@redhat.com>
2788 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2789 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2790 compile_dwarf_to_ax. No longer static. Call
2791 dwarf2_compile_cfa_to_ax.
2792 (locexpr_tracepoint_var_ref): Update.
2793 (loclist_tracepoint_var_ref): Update.
2794 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2795 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2796 argument; add 'gdbarch' and 'pc'.
2797 (dwarf2_compile_cfa_to_ax): New function.
2798 (dwarf2_frame_cache): Update.
2800 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2802 * ada-lang.c (ada_type_of_array): Fix the size of the array
2803 in the case of an unconstrained packed array.
2805 2011-02-17 Yao Qi <yao@codesourcery.com>
2807 * common/Makefile.in: Add more targets for make.
2809 2011-02-16 Tom Tromey <tromey@redhat.com>
2811 * dwarf2loc.c (unimplemented): Fix typo.
2813 2011-02-16 Tom Tromey <tromey@redhat.com>
2815 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2816 (compile_dwarf_to_ax) <default>: Use unimplemented.
2817 <DW_OP_deref>: Update.
2818 (disassemble_dwarf_expression): Update.
2819 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2820 (decode_locdesc): Update.
2821 * dwarf2expr.h (dwarf_stack_op_name): Update.
2823 2011-02-16 Tom Tromey <tromey@redhat.com>
2825 * ax.h (struct aop_map) <name>: Now const.
2827 2011-02-16 Tom Tromey <tromey@redhat.com>
2829 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2832 2011-02-16 Yao Qi <yao@codesourcery.com>
2834 * infrun.c (get_displaced_step_closure_by_addr): New.
2835 * inferior.h: Declare it.
2836 * arm-tdep.c: (arm_pc_is_thumb): Call
2837 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2840 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2841 Jan Kratochvil <jan.kratochvil@redhat.com>
2844 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2846 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2847 Jan Kratochvil <jan.kratochvil@redhat.com>
2849 * value.c (value_contents_copy_raw): Extend describing comment.
2850 Assert that the destination contents we're overwriting are wholly
2852 (value_contents_copy): Extend describing comment.
2854 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2855 Jan Kratochvil <jan.kratochvil@redhat.com>
2857 * value.c (value_available_contents_eq): Remove redundant local
2858 variables. Fix available contents comparision.
2859 * value.h (value_available_contents_eq): Extend describing
2862 2011-02-16 Yao Qi <yao@codesourcery.com>
2864 * thread.c (info_threads_command): Add missing i18n markup and remove
2867 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2869 * breakpoint.c (longjmp_names): New variable.
2870 (struct breakpoint_objfile_data): New type.
2871 (breakpoint_objfile_key): New variable.
2872 (msym_not_found): New variable.
2873 (msym_not_found_p): New predicate.
2874 (get_breakpoint_objfile_data): New function.
2875 (create_overlay_event_breakpoint): Check per-objfile cache for
2877 (create_longjmp_master_breakpoint): Likewise.
2878 (create_std_terminate_master_breakpoint): Likewise.
2879 (create_exception_master_breakpoint): Likewise.
2880 (_initialize_breakpoint): Register per-objfile data key.
2882 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2884 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2886 (create_longjmp_master_breakpoint): Loop over longjmp names.
2887 (create_std_terminate_master_breakpoint): Const-propagate parameter
2889 (update_breakpoints_after_exec): Adjust.
2890 (breakpoint_re_set): Adjust.
2892 2011-02-15 Michael Snyder <msnyder@vmware.com>
2894 * thread.c (info_threads_command): Process arg as thread id,
2895 or list of thread ids.
2896 (thread_find_command): New command.
2897 (_initialize_thread): Document argument for info threads.
2898 Document 'thread find' command.
2899 * NEWS: Document new command "thread find".
2901 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2903 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2904 * aclocal.m4: Regenerated with aclocal-1.11.1.
2905 * common/configure: Regenerate with autoconf-2.64.
2907 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2909 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2910 bool data type to a size of one byte.
2912 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2913 Jan Kratochvil <jan.kratochvil@redhat.com>
2915 * target.c (memory_xfer_live_readonly_partial): Document where to
2916 look for interface description.
2918 2011-02-15 Yao Qi <yao@codesourcery.com>
2921 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2922 order to store PC value on stack instead of text section.
2924 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2926 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2927 the EFP register set size.
2928 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2929 data from the VMX register.
2930 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2931 and write data from/to the VMX register.
2933 2011-02-14 Michael Snyder <msnyder@vmware.com>
2935 * command.h (enum command_class): New class 'no_set_class', for
2936 "show" commands without a corresponding "set" command.
2937 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2938 * copying.c (_initialize_copying): Ditto for "show copying" and
2940 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2942 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2943 which there is no corresponding "set" command (eg. "show copying").
2945 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2946 Jan Kratochvil <jan.kratochvil@redhat.com>
2948 * exec.c (section_table_available_memory): Change `len' parameter
2950 * exec.h (section_table_available_memory): Ditto.
2951 * value.h (read_value_memory): Rename the `offset' parameter to
2954 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2955 Jan Kratochvil <jan.kratochvil@redhat.com>
2957 * memrange.c (compare_mem_ranges): Mention sort order in
2959 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2960 * tracepoint.c (traceframe_available_memory): Extend comment to
2961 mention what happens to RESULT when the target does not support
2964 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2965 Jan Kratochvil <jan.kratochvil@redhat.com>
2967 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2970 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2972 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2973 No longer handle NULL values.
2975 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2977 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2978 * value.c: Include "exceptions.h".
2979 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2981 * cp-abi.c: Include gdb_assert.h.
2982 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2983 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2985 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2986 parameters. No longer returns -1 on error.
2987 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2989 * cp-valprint.c: Include exceptions.h.
2990 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2991 the baseclass_offset. Handle unavailable base classes. Use
2992 val_print_invalid_address.
2993 * p-valprint.c: Include exceptions.h.
2994 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2995 when fetching the baseclass_offset. No longer expect
2996 baseclass_offset returning -1. Handle unavailable base classes.
2997 Use val_print_invalid_address.
2998 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2999 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3000 `embedded_offset' and `val' parameters. Adjust.
3001 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3002 parameter, and change its type to gdb_byte pointer. Add
3003 `embedded_offset' and `val' parameters. Adjust. No longer expect
3004 baseclass_offset returning -1.
3005 (value_dynamic_cast): Use value_contents_for_printing rather than
3006 value_contents. Adjust.
3007 (search_struct_field): No longer expect baseclass_offset returning
3009 (search_struct_method): If reading memory from the target is
3010 necessary, wrap it in a new value to pass to baseclass_offset. No
3011 longer expect baseclass_offset returning -1.
3012 (find_method_list): No longer expect baseclass_offset returning
3013 -1. Use value_contents_for_printing rather than value_contents.
3014 * valprint.c (val_print_invalid_address): New function.
3015 * valprint.h (val_print_invalid_address): Declare.
3016 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3017 and `val' parameters. No longer expect baseclass_offset returning
3019 * gnu-v2-abi.c: Include "exceptions.h".
3020 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3021 parameters. Handle unavailable memory. Recurse through
3022 gnuv2_baseclass_offset directly, rather than through
3023 baseclass_offset. No longer returns -1 on not found, instead
3025 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3026 `val' parameters. Adjust.
3028 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3030 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3031 almost but not quite adjacent.
3033 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3035 * value.h (value_entirely_available): Declare.
3036 * value.c (value_entirely_available): New function.
3037 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3038 real type if the pointer is unavailable.
3040 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3042 * valops.c (value_repeat): Use read_value_memory instead of
3045 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3047 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3048 * value.c (value_contents_copy_raw, value_contents_copy): New
3050 (value_primitive_field): Use value_contents_copy_raw instead of
3052 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3054 (value_array, value_slice): Ditto.
3055 * valarith.c (value_subscripted_rvalue): Use
3056 value_contents_copy_raw instead of memcpy.
3058 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3060 <unavailable> references.
3062 * valops.c (get_value_at): Use value_from_contents_and_address,
3063 avoiding read_memory.
3065 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3067 * c-valprint.c (c_val_print): Print a string with unavailable
3068 contents as an array.
3070 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3072 * value.h (unpack_bits_as_long): Delete declaration.
3073 (unpack_value_bits_as_long): Declare.
3074 (unpack_value_field_as_long): Declare.
3075 (value_field_bitfield): Declare.
3076 * value.c (unpack_bits_as_long): Rename to...
3077 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3078 value parameters. Return the extracted result in a new output
3079 parameter. If the value contents are unavailable, return false,
3080 otherwise return true.
3081 (unpack_value_bits_as_long): New.
3082 (unpack_field_as_long): Rename to...
3083 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3084 Add embedded_offset and value parameters. Return the extracted
3085 result in a new output parameter. If the value contents are
3086 unavailable, return false, otherwise return true.
3087 (unpack_value_field_as_long): New.
3088 (unpack_field_as_long_1): New.
3089 (unpack_field_as_long): Reimplement as wrapper around
3090 unpack_value_field_as_long_1.
3091 (value_field_bitfield): New function.
3092 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3093 unpack_value_bits_as_long. Mark the value as unavailable, if it
3095 * jv-valprint.c (java_print_value_fields): Use
3096 value_field_bitfield.
3097 * p-valprint.c (pascal_object_print_value_fields): Use
3098 value_field_bitfield.
3099 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3103 * value.c (get_internalvar_integer): Also return the int value of
3104 TYPE_CODE_INT INTERNALVAR_VALUE values.
3105 (set_internalvar): Don't special case TYPE_CODE_INT.
3107 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3109 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3110 INTERNALVAR_POINTER.
3112 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3113 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3114 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3116 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3118 * value.h (value_available_contents_eq): Declare.
3119 * value.c (find_first_range_overlap): New function.
3120 (value_available_contents_eq): New function.
3121 * valprint.c (val_print_array_elements): Use
3122 value_available_contents_eq.
3123 * ada-valprint.c (val_print_packed_array_elements): Use
3124 value_available_contents_eq.
3125 * jv-valprint.c (java_value_print): Use
3126 value_available_contents_eq.
3128 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3130 * target.c (target_read_live_memory): New function.
3131 (memory_xfer_live_readonly_partial): New.
3132 (memory_xfer_partial): If reading from a traceframe, fallback to
3133 reading unavailable read-only memory from read-only regions of
3135 * tracepoint.c (disconnect_tracing): Adjust.
3136 (set_current_traceframe): New, factored out from
3137 set_traceframe_number.
3138 (set_traceframe_number): Reimplement to only change the traceframe
3139 number on the GDB side.
3140 (do_restore_current_traceframe_cleanup): Adjust.
3141 (make_cleanup_restore_traceframe_number): New.
3142 (cur_traceframe_number): New global.
3143 (tfile_open): Set cur_traceframe_number to no traceframe.
3144 (set_tfile_traceframe): New function.
3145 (tfile_trace_find): If looking up a traceframe using any method
3146 other than by number, make sure the current tfile traceframe
3147 matches gdb's current traceframe. Update the current tfile
3148 traceframe if the lookup succeeded.
3149 (tfile_fetch_registers, tfile_xfer_partial)
3150 (tfile_get_trace_state_variable_value): Make sure the remote
3151 traceframe matches gdb's current traceframe.
3152 * remote.c (remote_traceframe_number): New global.
3153 (remote_open_1): Set it to -1.
3154 (set_remote_traceframe): New function.
3155 (remote_fetch_registers, remote_store_registers)
3156 (remote_xfer_memory, remote_xfer_partial)
3157 (remote_get_trace_state_variable_value): Make sure the remote
3158 traceframe matches gdb's current traceframe.
3159 (remote_trace_find): If looking up a traceframe using any method
3160 other than by number, make sure the current remote traceframe
3161 matches gdb's current traceframe. Update the current remote
3162 traceframe if the lookup succeeded.
3163 * infrun.c (fetch_inferior_event): Adjust.
3164 * tracepoint.h (set_current_traceframe): Declare.
3165 (get_traceframe_number, set_traceframe_number): Add describing
3168 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3170 Mark pieces of values as unavailable if the corresponding memory
3173 * valops.c: Include tracepoint.h.
3174 (value_fetch_lazy): Use read_value_memory.
3175 (read_value_memory): New.
3176 * value.h (read_value_memory): Declare.
3177 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3178 * exec.c (section_table_available_memory): New function.
3179 * exec.h (section_table_available_memory): Declare.
3181 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3183 * Makefile.in (SFILES): Add memrange.c.
3184 (HFILES_NO_SRCDIR): Add memrange.h.
3185 (COMMON_OBS): Add memrange.o.
3186 * memrange.c: New file.
3187 * memrange.h: New file.
3188 * tracepoint.c: Include memrange.h.
3189 (struct mem_range): Delete.
3190 (mem_range_s): Delete.
3191 (traceframe_available_memory): New function.
3192 * tracepoint.h (traceframe_available_memory): Declare.
3194 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3196 * target.h (struct traceframe_info): Forward declare.
3197 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3198 (struct target_ops) <to_traceframe_info>: New field.
3199 (target_traceframe_info): New.
3200 * target.c (update_current_target): Inherit and default
3202 * remote.c (PACKET_qXfer_traceframe_info): New.
3203 (remote_protocol_features): Register qXfer:traceframe-info:read.
3204 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3205 (remote_traceframe_info): New.
3206 (init_remote_ops): Install it.
3207 (_initialize_remote): Install "set/show remote traceframe-info"
3209 * tracepoint.h (parse_traceframe_info): Declare.
3210 * tracepoint.c (struct mem_range): New.
3211 (mem_range_s): New typedef.
3212 (struct traceframe_info): New.
3213 (traceframe_info): New global.
3214 (free_traceframe_info): New function.
3215 (clear_traceframe_info): New function.
3216 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3218 (build_traceframe_info): New function.
3219 (tfile_traceframe_info): New function.
3220 (init_tfile_ops): Install tfile_traceframe_info.
3221 (traceframe_info_start_memory, free_result): New functions.
3222 (memory_attributes, traceframe_info_elements): New globals.
3223 (parse_traceframe_info, get_traceframe_info): New functions.
3224 * features/traceframe-info.dtd: New file.
3225 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3227 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3229 Base support for <unavailable> value contents.
3231 * value.h (value_bytes_available): Declare.
3232 (mark_value_bytes_unavailable): Declare.
3233 * value.c (struct range): New struct.
3234 (range_s): New typedef.
3235 (ranges_overlap): New function.
3236 (range_lessthan): New function.
3237 (ranges_contain_p): New function.
3238 (struct value) <unavailable>: New field.
3239 (value_bytes_available): New function.
3240 (mark_value_bytes_unavailable): New function.
3241 (require_not_optimized_out): Constify parameter.
3242 (require_available): New function.
3243 (value_contents_all, value_contents): Require all bytes be
3245 (value_free): Free `unavailable'.
3246 (value_copy): Copy `unavailable'.
3247 * valprint.h (val_print_unavailable): Declare.
3248 * valprint.c (valprint_check_validity): Rename `offset' parameter
3249 to `embedded_offset'. If printing a scalar, check whether the
3250 value chunk is available.
3251 (val_print_unavailable): New.
3252 (val_print_scalar_formatted): Check whether the value is
3254 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3255 pretty-printing unavailable values.
3257 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3259 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3260 * c-typeprint.c (c_type_print_args): Update the function comment. New
3261 variable param_type, initialize it. Remove const/volatile qualifiers
3262 for language_cplus and !show_artificial. Use param_type.
3264 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3266 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3267 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3268 * symtab.h (struct symtab) <next>: Comment extension.
3270 2011-02-12 Yao Qi <yao@codesourcery.com>
3272 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3274 2011-02-11 Yao Qi <yao@codesourcery.com>
3276 * common/Makefile.in: Add copyright header.
3278 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3280 * infrun.c (proceed): Move switching out and in of tfind mode from
3282 (fetch_inferior_event): ... to here.
3284 2011-02-11 Yao Qi <yao@codesourcery.com>
3286 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3288 * configure.ac: Add common to sub dir.
3289 * configure: Regenerate.
3291 2011-02-11 Yao Qi <yao@codesourcery.com>
3295 * common/Makefile.in: New.
3296 * common/configure.ac: New.
3297 * common/aclocal.m4: New.
3298 * common/configure: Generate.
3300 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3302 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3303 side of the parenthesis.
3306 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3307 * vec.h (VEC_block_remove): Fix comment.
3309 2011-02-08 Michael Snyder <msnyder@vmware.com>
3311 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3313 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3315 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3316 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3319 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3322 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3324 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3325 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3327 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3329 * dwarf2read.c (read_subroutine_type): Set special calling
3330 convention flag for functions compiled by IBM XL C for OpenCL.
3331 * ppc-sysv-tdep.c: Include "dwarf2.h"
3332 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3334 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3335 IBM OpenCL vector types calling convention.
3336 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3337 (ppc_sysv_abi_broken_return_value): Likewise.
3338 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3339 types calling convention.
3340 (ppc64_sysv_abi_return_value): Likewise.
3341 * spu-tdep.c: Include "dwarf2.h"
3342 (spu_return_value): Implement IBM OpenCL vector types calling
3345 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3347 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3348 correct ABI for AltiVec vector arguments.
3350 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3352 * valprint.c (val_print): Extend comment.
3353 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3354 interface explanation to val_print.
3355 (ada_val_print_array): Adjust comment to current interface.
3356 (print_field_values): Adjust comment to current interface.
3357 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3358 explanation to val_print.
3359 * f-valprint.c (f_val_print): Ditto.
3360 * jv-valprint.c (java_val_print): Ditto.
3361 * m2-valprint.c (m2_val_print): Ditto.
3362 * p-valprint.c (pascal_val_print): Ditto.
3364 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3366 * breakpoint.c (parse_breakpoint_sals): Fix description.
3368 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3369 Oguz Kayral <oguzkayral@gmail.com>
3371 * python/py-inferior.c (python_on_normal_stop): New function.
3372 (python_on_resume): New function.
3373 (python_inferior_exit): New function.
3374 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3375 inferior_exit observers.
3376 * python/py-evtregistry.c: New file.
3377 * python/py-threadevent.c : New file.
3378 * python/py-event.c: New file.
3379 * python/py-evts.c: New file.
3380 * python/py-continueevent.c: New file.
3381 * python/py-bpevent.c: New file.
3382 * python/py-signalevent.c: New file.
3383 * python/py-exetiedevent.c: New file.
3384 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3385 Move struct breakpoint_object from here...
3386 * python/python-internal.h: ... to here.
3387 * python/py-event.h: New file.
3388 * python/py-events.h: New file.
3389 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3390 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3391 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3392 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3393 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3394 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3395 Add build rules for all the above.
3397 2011-02-04 Tom Tromey <tromey@redhat.com>
3399 * dwarf2read.c (dwarf2_section_empty_p): New function.
3400 (dwarf2_read_section): Use dwarf2_section_empty_p.
3401 (dwarf2_section_size): New function.
3402 (dwarf2_get_section_info): Unconditionally read section.
3403 (dwarf2_read_index): Use dwarf2_section_empty_p.
3404 (partial_read_comp_unit_head): Use dwarf2_section_size.
3405 (dwarf2_symbol_mark_computed): Likewise.
3407 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3409 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3411 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3413 * mips-linux-tdep.c: Include xml-syscall.h.
3414 (mips_linux_get_syscall_number): New function.
3415 (mips_linux_init_abi): Add calls to
3416 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3417 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3418 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3419 * syscalls/mips-n32-linux.xml: New file.
3420 * syscalls/mips-n64-linux.xml: New file.
3421 * syscalls/mips-o32-linux.xml: New file.
3423 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3425 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3426 Complain about inverted range entries.
3427 (dwarf2_record_block_ranges): Likewise.
3429 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3432 * breakpoint.c (update_watchpoint): Fix name of the
3433 update_global_location_list function.
3434 (print_one_breakpoint): Fix typo.
3435 (_initialize_breakpoint): Remove extra space in hbreak help
3437 * breakpoint.h (struct bp_location) <length>: Fix field
3440 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3442 * regcache.c (registers_changed_ptid): Don't explictly always
3443 clear `current_regcache'. Only clear current_thread_ptid and
3444 current_thread_arch when PTID matches. Only reinit the frame
3445 cache if PTID matches the current inferior_ptid. Move alloca(0)
3447 (registers_changed): ... here.
3449 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3451 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3452 starts with __stack_chk_guard as stack guard symbol.
3454 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3456 * disasm.c (compare_lines): Handle the end of sequence markers
3457 within the line table to better support disassembling over
3458 compilation unit boundaries.
3460 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3462 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3463 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3464 implementation even if no symbols are available.
3465 (thumb_analyze_prologue): Update call to skip_prologue_function.
3466 (arm_analyze_prologue): Likewise.
3468 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3470 * arm-tdep.c: Include "observer.h".
3471 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3472 (arm_exidx_data_key): New static variable.
3473 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3474 (struct arm_exidx_data): Likewise.
3475 (arm_exidx_data_free): New function.
3476 (arm_compare_exidx_entries): Likewise.
3477 (arm_obj_section_from_vma): Likewise.
3478 (arm_exidx_new_objfile): Likewise.
3479 (arm_find_exidx_entry): Likewise.
3480 (arm_exidx_fill_cache): Likewise.
3481 (arm_exidx_unwind_sniffer): Likewise.
3482 (arm_exidx_unwind): New global variable.
3483 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3484 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3485 observer. Register arm_exidx_data_key as objfile data.
3487 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3489 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3490 due to accessing uninitialized variable. Fix indentation.
3492 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3494 * c-valprint.c (c_value_print): When doing virtual base pointer
3495 adjustment, create a new value with adjusted contents rather than
3496 changing the contents of the value being printed (and getting it
3499 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3501 * xml-support.c (xml_find_attribute): New.
3502 (xinclude_start_include): Use it.
3503 * xml-support.h (xml_find_attribute): Declare.
3504 * memory-map.c (memory_map_start_memory)
3505 (memory_map_start_property): Use xml_find_attribute.
3506 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3508 * remote.c (start_thread): Use xml_find_attribute.
3509 * solib-target.c (library_list_start_segment)
3510 (library_list_start_section, library_list_start_library)
3511 (library_list_start_list): Use xml_find_attribute.
3512 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3513 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3514 (tdesc_start_field): Use xml_find_attribute.
3516 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3518 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3519 (BUILD_OCL_VTYPES): Update.
3521 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3523 * configure.ac: Work around non-GNU sed limitation when computing
3524 python version number.
3525 * configure: Regenerate.
3527 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3529 Fix debug printing of TYPE_INSTANCE.
3530 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3531 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3533 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3536 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3537 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3538 * ada-operator.inc: Rename the file to ...
3539 * ada-operator.def: ... here, wrap all the entries by macro OP.
3540 * expprint.c (op_name_standard): Remove all the entries. Include
3541 "std-operator.def" instead.
3542 * expression.h (enum exp_opcode): Include "std-operator.def" and
3543 "ada-operator.def". Move all the entries ...
3544 * std-operator.def: ... here, wrap all the entries by macro OP.
3546 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3548 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3549 * breakpoint.c (remove_jit_event_breakpoints): New function.
3550 * jit.c (jit_descriptor_addr): Delete.
3551 (registering_code): Delete.
3552 (clear_int): Delete.
3553 (jit_inferior_data): New variable.
3554 (struct jit_inferior_data): New type.
3555 (get_jit_inferior_data): New function.
3556 (jit_inferior_data_cleanup): New function.
3557 (jit_read_descriptor): Adjust.
3558 (jit_register_code): Adjust.
3559 (jit_breakpoint_re_set_internal): New function; move code here ...
3560 (jit_inferior_init): ... from here.
3561 (jit_breakpoint_re_set): Adjust.
3562 (jit_reset_inferior_data_and_breakpoints): New function.
3563 (jit_inferior_created_observer): Adjust.
3564 (jit_inferior_exit_hook): Adjust.
3565 (jit_executable_changed_observer): New function.
3566 (jit_event_handler): Adjust.
3567 (_initialize_jit): Adjust.
3569 2011-01-31 Michael Snyder <msnyder@vmware.com>
3571 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3574 2011-01-31 Tom Tromey <tromey@redhat.com>
3577 * python/python.c (execute_gdb_command): Call
3578 prevent_dont_repeat.
3579 * top.c (suppress_dont_repeat): New global.
3580 (dont_repeat): Use it.
3581 (prevent_dont_repeat): New function.
3582 * command.h (prevent_dont_repeat): Declare.
3584 2011-01-31 Tom Tromey <tromey@redhat.com>
3586 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3587 * python/py-breakpoint.c (bppy_set_silent): Use
3588 breakpoint_set_silent.
3589 (bppy_set_thread): Use breakpoint_set_thread.
3590 (bppy_set_task): Use breakpoint_set_task.
3591 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3592 (breakpoint_set_task): Declare.
3593 (make_breakpoint_silent): Remove.
3594 * breakpoint.c (breakpoint_set_silent): New function.
3595 (breakpoint_set_thread): Likewise.
3596 (breakpoint_set_task): Likewise.
3597 (make_breakpoint_silent): Remove.
3599 2011-01-31 Tom Tromey <tromey@redhat.com>
3601 * breakpoint.h (user_breakpoint_p): Declare.
3602 * breakpoint.c (user_breakpoint_p): New function.
3603 (breakpoint_1): Use it.
3604 (save_breakpoints): Likewise.
3606 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3608 * configure.ac: Add handling of Python distribution on Windows.
3609 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3610 sysconfig variables are not defined, then do not use them.
3611 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3612 instead. On Windows, return all paths using forward-slashes
3613 rather than backslashes.
3615 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3617 * configure.ac: Remove fallback behavior for building
3618 against Python. Remove tweaking of Python include path.
3619 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3620 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3621 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3622 Always restore CPPFLAGS and LIBS after linking test.
3623 * configure: Regenerated.
3624 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3625 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3626 * python/python-internal.h: Adjust includes of Python .h files.
3628 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3630 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3633 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3635 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3638 2011-01-31 Yao Qi <yao@codesourcery.com>
3640 * arm-linux-nat.c: Update calls to regcache_register_status
3641 instead of regcache_valid_p.
3642 * aix-thread.c: Likewise.
3643 * i386gnu-nat.c: Likewise.
3645 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3649 touching TYPE_FIELD_ARTIFICIAL.
3651 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3653 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3656 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3658 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3659 selected, don't try iterating over the traceframe's blocks.
3660 (tfile_has_stack): If there's no traceframe selected, then there's
3662 (tfile_has_registers): If there's no traceframe selected, then
3663 there's no registers.
3665 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3667 * target.c (memory_xfer_partial): No need to restore shadows if we
3668 haven't read anything.
3670 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3672 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3673 and val_print_scalar_formatted.
3675 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3677 * tracepoint.c (tfile_read): New.
3678 (tfile_open): Use it.
3679 (tfile_get_traceframe_address): Use it.
3680 (tfile_trace_find): Use it.
3681 (walk_blocks_callback_func): New typedef.
3682 (match_blocktype): New function.
3683 (traceframe_walk_blocks): New function.
3684 (traceframe_find_block_type): New function.
3685 (tfile_fetch_registers, tfile_xfer_partial)
3686 (tfile_get_trace_state_variable_value): Use
3687 traceframe_find_block_type and tfile_read.
3689 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3691 * remote-mips.c: Add internationalization mark ups. Remove
3692 trailing \n from already marked up strings.
3694 2011-01-26 Tom Tromey <tromey@redhat.com>
3696 * python/py-prettyprint.c (print_string_repr): Clear
3697 'addressprint' option when calling val_print_string.
3698 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3699 option when calling val_print_string.
3701 2011-01-26 Tom Tromey <tromey@redhat.com>
3703 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3705 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3707 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3708 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3709 (gdb_py_long_as_ulongest): New defines.
3710 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3711 (gdb_py_int_as_long): Declare.
3712 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3713 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3714 (valpy_long): Add comment.
3715 * python/py-utils.c (get_addr_from_python): Use
3716 gdb_py_long_as_ulongest. Handle overflow properly.
3717 (gdb_py_object_from_longest): New function.
3718 (gdb_py_object_from_ulongest): Likewise.
3719 (gdb_py_int_as_long): Likewise.
3720 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3721 * python/py-symtab.c (salpy_get_pc): Use
3722 gdb_py_long_from_ulongest.
3723 (salpy_get_line): Use PyInt_FromLong.
3724 * python/py-param.c (set_parameter_value): Use
3726 * python/py-lazy-string.c (stpy_get_address): Use
3727 gdb_py_long_from_ulongest.
3728 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3729 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3730 * python/py-breakpoint.c (bppy_set_thread): Use
3732 (bppy_set_task): Likewise.
3733 (bppy_set_ignore_count): Likewise.
3734 (bppy_set_hit_count): Likewise.
3735 * python/py-block.c (blpy_get_start): Use
3736 gdb_py_object_from_ulongest.
3737 (blpy_get_end): Likewise.
3738 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3740 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3743 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3744 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3745 equality test for objfile, initialize addr_low if needed.
3747 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3749 * tui/tui-regs.c (tui_register_format): Remove dead code.
3751 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3753 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3754 instead of print_scalar_formatted.
3755 (print_scalar_formatted): Don't handle 's' format strings here,
3756 and add an assertion that we never see such format here.
3757 * valprint.h (val_print_scalar_formatted): Declare.
3758 * valprint.c (val_print_scalar_formatted): New.
3759 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3760 instead of print_scalar_formatted.
3761 * jv-valprint.c (java_val_print): Ditto.
3762 * p-valprint.c (pascal_val_print): Ditto.
3763 * ada-valprint.c (ada_val_print_1): Ditto.
3764 * f-valprint.c (f_val_print): Ditto.
3765 * infcmd.c (registers_info): Ditto.
3766 * m2-valprint.c (m2_val_print): Ditto.
3768 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3770 * m2-valprint.c (print_unbounded_array): Pass
3771 value_contents_for_printing rather than value_contents, to
3772 m2_print_array_contents. Also pass in the value.
3774 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3776 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3777 (save_gdb_index_command): Switch to .gdb_index version 4.
3779 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3781 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3782 than frame_register, and always pass a valid value to val_print.
3784 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3786 Centralize printing "<optimized out>".
3788 * valprint.h (val_print_optimized_out): Declare.
3789 * cp-valprint.c (cp_print_value_fields): Use
3790 val_print_optimized_out.
3791 * jv-valprint.c (java_print_value_fields): Ditto.
3792 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3793 * printcmd.c (print_formatted): Ditto.
3794 * valprint.c (valprint_check_validity): Ditto.
3795 (value_check_printable): Ditto.
3796 (val_print_optimized_out): New.
3798 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3800 * infcmd.c (default_print_registers_info): Allocate values so to
3801 never pass a NULL value to val_print.
3803 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3805 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3806 boolean. Make sure to always pass a value that matches the
3807 contents buffer to callees. Preserve `address' for following
3809 * value.c (value_contents_for_printing_const): New.
3810 (value_address): Constify value argument.
3811 * value.h (value_contents_for_printing_const): Declare.
3812 (value_address): Constify value argument.
3814 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3816 * regcache.c (struct regcache_descr): Rename
3817 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3818 and sizeof_cooked_register_valid_p to
3819 sizeof_cooked_register_status.
3820 (init_regcache_descr): Adjust.
3821 (struct regcache): Rename register_valid_p field to
3823 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3824 (do_cooked_read): Adjust.
3825 (regcache_valid_p): Rename to ...
3826 (regcache_register_status): ... this. Adjust.
3827 (regcache_invalidate): Adjust.
3828 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3830 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3831 as unavailable, not valid.
3832 (regcache_dump): Adjust.
3833 * regcache.h (enum register_status): New.
3834 (regcache_register_status): Declare.
3835 (regcache_invalidate): Delete declaration.
3836 * corelow.c (get_core_registers): Adjust.
3837 * tracepoint.c (tfile_fetch_registers): Adjust.
3838 * trad-frame.c (REG_VALUE): Rename to ...
3839 (TF_REG_VALUE): ... this.
3840 (REG_UNKNOWN): Rename to ...
3841 (TF_REG_UNKNOWN): ... this.
3842 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3843 * mi/mi-main.c (register_changed_p): Adjust.
3845 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3847 * regcache.c (struct regcache_descr): Remove outdated comment.
3848 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3850 (regcache_xmalloc): Rename to ...
3851 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3852 Allocate the regcache type accordingly.
3853 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3854 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3855 cooked registers, not raw.
3856 (regcache_dup_no_passthrough): Delete.
3857 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3858 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3859 mention obsolete write_register_bytes.
3860 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3862 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3864 Stop remote_read_bytes from handling partial reads itself.
3866 * remote-fileio.c: Include target.h.
3867 (remote_fileio_write_bytes): Delete.
3868 (remote_fileio_func_open, remote_fileio_func_write)
3869 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3871 (remote_fileio_func_stat): Use target_read_memory and
3872 target_write_memory.
3873 (remote_fileio_func_gettimeofday): Use target_write_memory.
3874 (remote_fileio_func_system): Use target_read_memory.
3875 * remote.c (remote_write_bytes): Make it static.
3876 (remote_read_bytes): Don't handle partial reads here.
3877 * remote.h (remote_read_bytes): Delete declaration.
3879 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3881 Simplify XML parsing a bit.
3883 * xml-support.h (gdb_xml_parse_quick): Declare.
3884 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3885 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3887 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3888 gdb_xml_create_parser_and_cleanup_1.
3889 (gdb_xml_parse_quick): New.
3890 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3891 * osdata.c (osdata_parse): Ditto.
3892 * remote.c (remote_threads_info): Ditto.
3893 * solib-target.c (solib_target_parse_libraries): Ditto.
3894 * xml-syscall.c (syscall_parse_xml): Ditto.
3895 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3897 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3899 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3900 with remote-mips.o added to gdb_target_obs.
3901 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3903 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3905 * ada-valprint.c (val_print_packed_array_elements): Pass the
3906 correct struct value to val_print.
3907 (ada_val_print_1): Ditto.
3909 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3911 Don't lose embedded_offset in printing routines throughout.
3913 * valprint.h (val_print_array_elements): Change prototype.
3914 * valprint.c (val_print_array_elements): Add `embedded_offset'
3915 parameter, and adjust to pass it down to val_print, while passing
3916 `valaddr' or `address' unmodified. Take embedded_offset into
3917 account when checking repetitions.
3918 * c-valprint.c (c_val_print): Pass embedded_offset to
3919 val_print_array_elements instead of adjusting `valaddr' and
3921 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3922 embedded_offset to val_print_array_elements instead of adjusting
3924 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3925 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3926 val_print_array_elements and pascal_object_print_value_fields
3927 instead of adjusting `valaddr'.
3928 (pascal_object_print_value_fields): Add `offset' parameter, and
3930 (pascal_object_print_value): Add `offset' parameter, and adjust to
3932 (pascal_object_print_static_field): Use
3933 value_contents_for_printing/value_embedded_offset, rather than
3935 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3936 parameter, and adjust to use it. Use
3937 value_contents_for_printing/value_embedded_offset, rather than
3939 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3940 (ada_val_print_array): Add `offset' parameter, and adjust to use
3942 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3943 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3944 Instead work with offsets. Use
3945 value_contents_for_printing/value_embedded_offset, rather than
3946 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3947 and use value_from_pointer to extract a target pointer, rather
3948 than value_from_longest.
3949 (print_variant_part): Add `offset' parameter. Replace
3950 `outer_valaddr' parameter by a new `outer_offset' parameter.
3951 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3952 (ada_value_print): Use
3953 value_contents_for_printing/value_embedded_offset, rather than
3955 (print_record): Add `offset' parameter, and adjust to pass it
3957 (print_field_values): Add `offset' parameter. Replace
3958 `outer_valaddr' parameter by a new `outer_offset' parameter.
3959 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3960 Use value_contents_for_printing/value_embedded_offset, rather than
3962 * d-valprint.c (dynamic_array_type): Use
3963 value_contents_for_printing/value_embedded_offset, rather than
3965 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3966 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3967 (java_print_value_fields): Take `offset' into account. Don't
3968 re-adjust `valaddr'. Instead pass down adjusted offsets.
3969 (java_val_print): Take `embedded_offset' into account. Pass it to
3970 java_print_value_fields.
3971 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3972 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3973 down adjusted offsets.
3974 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3975 (f_val_print): Take `embedded_offset' into account.
3977 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3979 * inflow.c: Include "gdbcmd.h".
3980 (interactive_mode): New static global, moved here from top.c.
3981 (show_interactive_mode): New function, moved here from top.c.
3982 use gdb_has_a_terminal instead of input_from_terminal_p to
3983 determine the current mode.
3984 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3986 (_initialize_inflow): Add the "set/show interactive-mode"
3987 commands. Moved here from top.c, after having adjusted slightly
3989 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3991 (input_from_terminal_p): Remove handling of "interactive-mode"
3992 setting, moved to infow.c.
3993 (init_main): Remove creation of the "set/show interactive-mode"
3994 commands, moved to inflow.c.
3996 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3998 * NEWS: Add entry for native ia64-hpux support.
4000 2011-01-19 Tom Tromey <tromey@redhat.com>
4003 * thread.c (free_thread): Free 'name'.
4004 (print_thread_info): Emit thread name. Change CLI output.
4005 (thread_name_command): New function.
4006 (do_captured_thread_select): Emit newline.
4007 (_initialize_thread): Register 'thread name' command.
4008 * target.h (struct target_ops) <to_thread_name>: New field.
4009 (target_thread_name): New macro.
4010 * target.c (update_current_target): Handle to_thread_name.
4011 * python/py-infthread.c (thpy_get_name): New function.
4012 (thpy_set_name): Likewise.
4013 (thread_object_getset): Add "name".
4014 * linux-nat.c (linux_nat_thread_name): New function.
4015 (linux_nat_add_target): Set to_thread_name.
4016 * gdbthread.h (struct thread_info) <name>: New field.
4018 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4020 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4021 (ada_val_print_1): Likewise.
4023 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4025 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4026 upper limit address is not greater than the function end address
4027 when the upper limit could not be computed using the debugging
4030 2011-01-17 Tom Tromey <tromey@redhat.com>
4032 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4034 * utils.c: Include gdb_regex.h.
4035 (do_regfree_cleanup): New function.
4036 (make_regfree_cleanup): Likewise.
4037 (get_regcomp_error): Likewise.
4038 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4040 2011-01-17 Tom Tromey <tromey@redhat.com>
4042 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4045 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4047 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4048 for internal variables.
4049 (last_was_structop): New static variable.
4050 (COMPLETE): New token.
4051 (field_exp): New rule to group all '.' suffix handling.
4052 Add mark_struct_expression calls when approriate to be able
4053 to correctly find fields for completion.
4054 (yylex): Adapt to handle field completion and set INTVAR when
4057 2011-01-14 Yao Qi <yao@codesourcery.com>
4059 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4060 save_reggroup, restore_reggroup and all_reggroup.
4062 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4064 * ada-valprint. (ada_printchar): Use the correct type length
4065 in call to ada_emit_char.
4066 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4068 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4070 * solib-som.h (hpux_major_release): Declare variable here.
4071 * solib-som.c: Remove <sys/utsname.h> header.
4072 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4073 (hpux_major_release): Make global, change default value to
4074 DEFAULT_HPUX_MAJOR_RELEASE.
4075 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4076 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4077 Add "solib-som.h" header.
4078 (set_hpux_major_release): New function.
4079 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4081 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4083 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4085 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4087 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4088 new-line at end of warning message.
4089 (ia64_hpux_store_register): Remove trailing new-line at end of
4091 * ia64-hpux-tdep.c: Rephrase comment.
4092 * solib-ia64-hpux.c (struct dld_info): Change type of field
4093 dld_flags from "long long" to ULONGEST.
4095 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4097 * target.h (deprecated_child_ops): Delete declaration.
4098 * target.c (deprecated_child_ops): Delete definition.
4100 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4102 * Makefile.in (hpux-thread.o): Delete rule.
4103 * configure.ac: Don't check for HPUX DCE threads support.
4104 * configure, config.in: Regenerate.
4105 * hppa-hpux-nat.c (child_suppress_run): Delete.
4106 (hppa_hpux_child_can_run): Delete.
4107 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4108 * hpux-thread.c: Delete.
4110 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4112 * hpux-thread.c (hpux_pid_to_str): Delete.
4114 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4116 * ada-valprint.c (ada_emit_char): Remove strange code.
4117 Check that c is <= UCHAR_MAX before passing it to isascii.
4118 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4120 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4122 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4123 to the case where instream is stdin.
4125 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4127 * ia64-tdep.h (struct regcache): Forward declare.
4128 (struct ia64_infcall_ops): New struct type.
4129 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4131 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4132 Renames ia64_find_global_pointer.
4133 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4134 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4135 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4137 (ia64_infcall_ops): New static global constant.
4138 (ia64_gdbarch_init): Set tdep->infcall_ops.
4139 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4140 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4141 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4142 (ia64_hpux_dummy_code): New static global constant.
4143 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4144 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4145 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4147 (ia64_hpux_infcall_ops): New static global constant.
4148 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4149 for inferior function calls to work properly on ia64-hpux.
4151 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4153 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4154 * ia64-tdep.h (struct frame_info): forward declaration.
4155 (struct gdbarch_tdep): Add field size_of_register_frame.
4156 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4157 to determine the size of the register frame.
4158 (ia64_size_of_register_frame): New function.
4159 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4160 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4161 (IA64_HPUX_UREG_REASON): New macro.
4162 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4164 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4165 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4166 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4169 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4171 Add support for ia64-hpux.
4172 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4173 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4175 * configure.host: Add handling for ia64-hpux hosts. Add associated
4177 * configure.tgt: Add handling for ia64-hpux targets.
4178 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4179 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4180 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4182 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4184 [ttrace] Compute thread list immediately after attach.
4185 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4187 (inf_ttrace_attach): Use it.
4189 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4191 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4192 if we could not determine the frame's function address. Instead,
4193 use the frame's PC, and then continue.
4195 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4197 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4198 not already defined.
4200 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4202 * ia64-tdep.c (ia64_struct_type_p): New function.
4203 (ia64_extract_return_value): Handle integral values that are
4204 less than 8 bytes long.
4205 (ia64_push_dummy_call): Likewise.
4207 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4209 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4210 floatformat_ia64_ext.
4211 (floatformat_ia64_ext_big): New static const.
4212 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4214 2011-01-12 Tom Tromey <tromey@redhat.com>
4216 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4218 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4219 (mi_cmd_thread_list_ids): Likewise.
4220 (mi_cmd_data_list_changed_registers): Likewise.
4221 (mi_cmd_data_list_register_values): Likewise.
4222 (mi_cmd_data_write_register_values): Likewise.
4223 (mi_cmd_data_evaluate_expression): Likewise.
4224 (mi_cmd_data_read_memory): Likewise.
4225 (mi_cmd_data_read_memory_bytes): Likewise.
4226 (mi_cmd_data_write_memory): Likewise.
4227 (mi_cmd_enable_timings): Likewise.
4228 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4229 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4230 (mi_cmd_var_delete): Likewise.
4231 (mi_cmd_var_set_format): Likewise.
4232 (mi_cmd_var_show_format): Likewise.
4233 (mi_cmd_var_info_num_children): Likewise.
4234 (mi_cmd_var_list_children): Likewise.
4235 (mi_cmd_var_info_type): Likewise.
4236 (mi_cmd_var_info_expression): Likewise.
4237 (mi_cmd_var_show_attributes): Likewise.
4238 (mi_cmd_var_assign): Likewise.
4239 (mi_cmd_var_update): Likewise.
4240 (mi_cmd_enable_pretty_printing): Likewise.
4241 (mi_cmd_var_set_update_range): Likewise.
4242 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4244 (mi_cmd_target_file_put): Likewise.
4245 (mi_cmd_target_file_delete): Likewise.
4246 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4248 (mi_cmd_stack_info_depth): Likewise.
4249 (mi_cmd_stack_list_locals): Likewise.
4250 (mi_cmd_stack_list_args): Likewise.
4251 (mi_cmd_stack_select_frame): Likewise.
4252 (mi_cmd_stack_select_frame): Likewise.
4253 (mi_cmd_stack_info_frame): Likewise.
4254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4256 (mi_cmd_file_list_exec_source_files): Likewise.
4257 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4258 (mi_cmd_env_cd): Likewise.
4259 (mi_cmd_env_path): Likewise.
4260 (mi_cmd_env_dir): Likewise.
4261 (mi_cmd_inferior_tty_show): Likewise.
4262 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4263 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4264 (mi_cmd_break_watch): Likewise.
4266 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4268 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4269 (ppc_linux_insert_hw_breakpoint): Likewise.
4270 (ppc_linux_remove_hw_breakpoint): Likewise.
4271 (ppc_linux_insert_watchpoint): Likewise.
4273 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4274 Jan Kratochvil <jan.kratochvil@redhat.com>
4276 PR fortran/11104 and DWARF unbound arrays detection.
4277 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4278 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4279 unspecified upper bound.
4280 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4281 variables array_size_array, tmp_type and offset_item. New variable
4282 array. Remove call to f77_get_upperbound. New variables array_type
4283 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4284 the final call to deprecated_set_value_type.
4286 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4288 Make value allocations more lazy.
4289 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4290 instead of allocate_value and set_value_lazy when possible.
4291 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4292 instead of allocate_value and set_value_lazy.
4293 * findvar.c (value_of_register_lazy): Likewise.
4294 (read_var_value): Remove V preallocation, call just check_typedef in
4295 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4296 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4297 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4298 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4299 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4300 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4301 the end, remove set_value_lazy there.
4302 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4303 instead of allocate_value and set_value_lazy when possible.
4304 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4305 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4306 of allocate_value and set_value_lazy.
4307 (value_from_contents_and_address): Use allocate_value_lazy instead of
4308 allocate_value and set_value_lazy when possible.
4310 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4312 * disasm.c (dump_insns): Support dumping opcodes for MI.
4313 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4314 dumping of instruction opcodes.
4316 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4318 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4321 2011-01-11 Tom Tromey <tromey@redhat.com>
4323 * thread.c (do_captured_thread_select): Emit newline before
4326 2011-01-11 Michael Snyder <msnyder@vmware.com>
4328 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4329 * score-tdep.c: Ditto.
4330 * score-tdep.h: Ditto.
4331 * ser-base.c: Ditto.
4332 * ser-go32.c: Ditto.
4335 * ser-mingw.c: Ditto.
4336 * ser-pipe.c: Ditto.
4338 * ser-unix.c: Ditto.
4339 * sh64-tdep.c: Ditto.
4340 * shnbsd-nat.c: Ditto.
4344 * solib-darwin.c: Ditto.
4345 * solib-frv.c: Ditto.
4347 * solib-irix.c: Ditto.
4348 * solib-osf.c: Ditto.
4349 * solib-pa64.c: Ditto.
4350 * solib-som.c: Ditto.
4351 * solib-spu.c: Ditto.
4352 * solib-sunos.c: Ditto.
4353 * solib-svr4.c: Ditto.
4355 * sol-thread.c: Ditto.
4359 * sparc64-linux-tdep.c: Ditto.
4360 * sparc64-tdep.c: Ditto.
4361 * sparc-linux-nat.c: Ditto.
4362 * sparc-linux-tdep.c: Ditto.
4363 * sparc-sol2-nat.c: Ditto.
4364 * sparc-sol2-tdep.c: Ditto.
4365 * sparc-tdep.c: Ditto.
4366 * sparc-tdep.h: Ditto.
4367 * spu-tdep.c: Ditto.
4368 * stabsread.c: Ditto.
4369 * stabsread.h: Ditto.
4377 * target-descriptions.c: Ditto.
4378 * target-descriptions.h: Ditto.
4380 * target-memory.c: Ditto.
4381 * terminal.h: Ditto.
4384 * tracepoint.c: Ditto.
4385 * tracepoint.h: Ditto.
4386 * trad-frame.h: Ditto.
4387 * typeprint.c: Ditto.
4389 2011-01-11 Michael Snyder <msnyder@vmware.com>
4391 * ui-file.c: Comment cleanup, mostly periods and spaces.
4396 * v850-tdep.c: Ditto.
4397 * valarith.c: Ditto.
4399 * valprint.c: Ditto.
4400 * valprint.h: Ditto.
4405 * vax-tdep.c: Ditto.
4409 * windows-nat.c: Ditto.
4410 * windows-tdep.c: Ditto.
4411 * xcoffread.c: Ditto.
4412 * xcoffsolib.c: Ditto.
4413 * xml-support.c: Ditto.
4414 * xstormy16-tdep.c: Ditto.
4415 * xtensa-tdep.c: Ditto.
4416 * xtensa-tdep.h: Ditto.
4418 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4420 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4421 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4423 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4424 Thiago Jung Bauermann <bauerman@br.ibm.com>
4426 Implement support for PowerPC BookE ranged watchpoints.
4428 (struct breakpoint_ops) <resources_needed>: New method.
4429 Initialize to NULL in all existing breakpoint_ops instances.
4430 (struct breakpoint) <exact>: New field.
4431 (target_exact_watchpoints): Declare external global.
4432 * breakpoint.c (target_exact_watchpoints): New global flag.
4433 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4434 b->enable_state to bp_enabled before calling
4435 hw_watchpoint_used_count.
4436 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4437 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4439 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4440 if the watchpoint is exact.
4441 (resources_needed_watchpoint): New function.
4442 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4443 (watch_command_1): Set b->exact if the user asked for an exact
4444 watchpoint and one can be set.
4445 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4446 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4447 the user asks for an exact watchpoint and one can be set. Return
4448 number of needed debug registers to watch the expression.
4449 * gdbtypes.c (is_scalar_type): New function, based on
4450 valprint.c:scalar_type_p.
4451 (is_scalar_type_recursive): New function.
4452 * gdbtypes.h (is_scalar_type_recursive): Declare.
4453 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4454 handle regions when ranged watchpoints are available.
4455 (create_watchpoint_request): New function.
4456 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4457 create_watchpoint_request.
4458 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4459 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4460 `set powerpc' and `show powerpc' commands.
4461 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4462 Mention documentation comment in the target macro.
4463 (target_region_ok_for_hw_watchpoint): Document return value.
4465 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4467 * breakpoint.c (update_watchpoint): Decide on using a software or
4468 hardware watchpoint after the bp_locations are created.
4470 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4472 Convert hardware watchpoints to use breakpoint_ops.
4473 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4474 <insert_location>: ... this. Return int instead of void.
4475 Accept pointer to struct bp_location instead of pointer to
4476 struct breakpoint. Adapt all implementations.
4477 (breakpoint_ops) <remove>: Rename to...
4478 <remove_location>: ... this. Accept pointer to struct bp_location
4479 instead of pointer to struct breakpoint. Adapt all implementations.
4480 * breakpoint.c (insert_catchpoint): Delete function.
4481 (insert_bp_location): Call the watchpoint or catchpoint's
4482 breakpoint_ops.insert method.
4483 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4484 breakpoint_ops.remove method.
4485 (insert_watchpoint, remove_watchpoint): New functions.
4486 (watchpoint_breakpoint_ops): New structure.
4487 (watch_command_1): Initialize the OPS field.
4488 * inf-child.c (inf_child_insert_fork_catchpoint)
4489 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4490 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4491 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4493 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4494 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4495 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4496 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4497 * target.c (update_current_target): Change default implementation of
4498 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4499 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4500 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4501 to_set_syscall_catchpoint to return_one.
4502 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4503 (debug_to_insert_exec_catchpoint): Report return value.
4504 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4505 (to_insert_exec_catchpoint): Change declaration to return int instead
4508 2011-01-11 Michael Snyder <msnyder@vmware.com>
4510 * arm-tdep.c: Internationalization.
4513 * fork-child.c: Ditto.
4514 * nto-procfs.c: Ditto.
4515 * ppc-sysv-tdep.c: Ditto.
4517 * remote-mips.c: Ditto.
4519 * rs6000-nat.c: Ditto.
4520 * rs6000-tdep.c: Ditto.
4524 * xml-support.c: Ditto.
4525 * mi/mi-cmd-break.c: Ditto.
4526 * mi/mi-cmd-var.c: Ditto.
4527 * mi/mi-interp.c: Ditto.
4528 * mi/mi-main.c: Ditto.
4530 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4532 * remote-sim.c (gdbsim_store_register): Update API to
4533 sim_store_register to check more error conditions.
4535 2011-01-10 Michael Snyder <msnyder@vmware.com>
4537 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4538 * nto-tdep.c: Ditto.
4539 * nto-tdep.h: Ditto.
4540 * objc-exp.y: Ditto.
4541 * objc-lang.c: Ditto.
4542 * objfiles.c: Ditto.
4543 * objfiles.h: Ditto.
4544 * observer.c: Ditto.
4545 * opencl-lang.c: Ditto.
4548 * parser-defs.h: Ditto.
4551 * posix-hdep.c: Ditto.
4552 * ppcbug-rom.c: Ditto.
4553 * ppc-linux-nat.c: Ditto.
4554 * ppc-linux-tdep.c: Ditto.
4555 * ppc-linux-tdep.h: Ditto.
4556 * ppcnbsd-tdep.c: Ditto.
4557 * ppcobsd-tdep.c: Ditto.
4558 * ppcobsd-tdep.h: Ditto.
4559 * ppc-sysv-tdep.c: Ditto.
4560 * ppc-tdep.h: Ditto.
4561 * printcmd.c: Ditto.
4562 * proc-abi.c: Ditto.
4563 * proc-flags.c: Ditto.
4565 * proc-utils.h: Ditto.
4566 * progspace.h: Ditto.
4567 * prologue-value.c: Ditto.
4568 * prologue-value.h: Ditto.
4569 * psympriv.h: Ditto.
4571 * p-typeprint.c: Ditto.
4572 * p-valprint.c: Ditto.
4573 * ravenscar-sparc-thread.c: Ditto.
4574 * ravenscar-thread.c: Ditto.
4575 * ravenscar-thread.h: Ditto.
4577 * regcache.c: Ditto.
4578 * regcache.h: Ditto.
4580 * remote-fileio.c: Ditto.
4581 * remote-fileio.h: Ditto.
4583 * remote-m32r-sdi.c: Ditto.
4584 * remote-mips.c: Ditto.
4585 * remote-sim.c: Ditto.
4586 * rs6000-aix-tdep.c: Ditto.
4587 * rs6000-nat.c: Ditto.
4588 * rs6000-tdep.c: Ditto.
4590 2011-01-10 Michael Snyder <msnyder@vmware.com>
4592 * charset.c (validate): Internationalization.
4593 * coffread.c (read_one_sym): Ditto.
4594 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4595 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4596 * inflow.c (new_tty): Ditto.
4597 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4598 * m32c-tdep.c (m32c_return_value): Ditto.
4599 * mep-tdep.c (mep_store_return_value): Ditto.
4600 * score-tdep.c (score7_fetch_insn): Ditto.
4601 * ser-mingw.c (pipe_windows_open): Ditto.
4602 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4603 * spu-tdep.c (spu_register_type): Ditto.
4604 * tracepoint.c (trace_find_command): Ditto.
4605 * valarith.c (value_pos): Ditto.
4607 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4609 * ada-valprint.c (printstr): Minor comment reformatting.
4611 2011-01-08 Michael Snyder <msnyder@vmware.com>
4613 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4616 2011-01-08 Michael Snyder <msnyder@vmware.com>
4618 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4619 * hppa-hpux-tdep.c: Ditto.
4620 * hppa-linux-nat.c: Ditto.
4621 * hppa-linux-tdep.c: Ditto.
4622 * hppanbsd-tdep.c: Ditto.
4623 * hppa-tdep.c: Ditto.
4624 * hppa-tdep.h: Ditto.
4625 * hpux-thread.c: Ditto.
4626 * i386-cygwin-tdep.c: Ditto.
4627 * i386-darwin-nat.c: Ditto.
4628 * i386gnu-nat.c: Ditto.
4629 * i386-linux-nat.c: Ditto.
4630 * i386-linux-tdep.c: Ditto.
4631 * i386-nat.c: Ditto.
4632 * i386-nat.h: Ditto.
4633 * i386nbsd-tdep.c: Ditto.
4634 * i386-sol2-nat.c: Ditto.
4635 * i386-stub.c: Ditto.
4636 * i386-tdep.c: Ditto.
4637 * i386-tdep.h: Ditto.
4638 * i387-tdep.c: Ditto.
4639 * ia64-linux-nat.c: Ditto.
4640 * ia64-linux-tdep.c: Ditto.
4641 * ia64-tdep.c: Ditto.
4645 * inferior.c: Ditto.
4646 * inferior.h: Ditto.
4652 * iq2000-tdep.c: Ditto.
4653 * irix5-nat.c: Ditto.
4659 * jv-typeprint.c: Ditto.
4660 * jv-valprint.c: Ditto.
4661 * language.c: Ditto.
4662 * language.h: Ditto.
4663 * linespec.c: Ditto.
4664 * linux-fork.c: Ditto.
4665 * linux-nat.c: Ditto.
4666 * linux-thread-db.c: Ditto.
4667 * lm32-tdep.c: Ditto.
4669 2011-01-08 Michael Snyder <msnyder@vmware.com>
4671 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4673 * m2-typeprint.c: Ditto.
4674 * m2-valprint.c: Ditto.
4675 * m32c-tdep.c: Ditto.
4676 * m32r-linux-nat.c: Ditto.
4677 * m32r-rom.c: Ditto.
4678 * m32r-tdep.c: Ditto.
4679 * m32r-tdep.h: Ditto.
4680 * m68hc11-tdep.c: Ditto.
4681 * m58klinux-nat.c: Ditto.
4682 * m68k-tdep.c: Ditto.
4683 * m88k-tdep.c: Ditto.
4684 * m88k-tdep.h: Ditto.
4685 * machoread.c: Ditto.
4686 * macrocmd.c: Ditto.
4687 * macroexp.c: Ditto.
4688 * macrotab.c: Ditto.
4691 * mdebugread.c: Ditto.
4692 * mdebugread.h: Ditto.
4695 * memory-map.h: Ditto.
4696 * mep-tdep.c: Ditto.
4697 * microblaze-rom.c: Ditto.
4698 * microblaze-tdep.c: Ditto.
4700 * mips-irix-tdep.c: Ditto.
4701 * mips-linux-nat.c: Ditto.
4702 * mips-linux-tdep.c: Ditto.
4703 * mips-linux-tdep.h: Ditto.
4704 * mipsnbsd-nat.c: Ditto.
4705 * mipsnbsd-tdep.c: Ditto.
4706 * mipsread.c: Ditto.
4707 * mips-tdep.c: Ditto.
4708 * mips-tdep.h: Ditto.
4709 * mn10300-linux-tdep.c: Ditto.
4710 * mn10300-tdep.c: Ditto.
4711 * mn10300-tdep.h: Ditto.
4714 * moxie-tdep.c: Ditto.
4715 * moxie-tdep.h: Ditto.
4718 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4720 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4722 2011-01-08 Robert Millan <rmh@gnu.org>
4724 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4726 2011-01-07 Michael Snyder <msnyder@vmware.com>
4728 * charset.c (_initialize_charset): Fix typo in string.
4730 2011-01-07 Michael Snyder <msnyder@vmware.com>
4732 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4734 * tui/tui-layout.c (tui_set_layout_for_display_command):
4735 Split line so that operator goes to beginning of line.
4736 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4737 assignment out of if statement.
4739 2011-01-07 Michael Snyder <msnyder@vmware.com>
4741 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4742 * ada-lang.h: Ditto.
4743 * ada-tasks.c: Ditto.
4744 * ada-valprint.c: Ditto.
4745 * aix-threads.c: Ditto.
4746 * alpha-linux-nat.c: Ditto.
4747 * alpha-linux-tdep.c: Ditto.
4748 * alpha-mdebug-tdep.c: Ditto.
4749 * alpha-nat.c: Ditto.
4750 * alpha-osf1-tdep.c: Ditto.
4751 * alpha-tdep.c: Ditto.
4752 * alphabsd-nat.c: Ditto.
4753 * alphabsd-tdep.c: Ditto.
4754 * amd64-darwin-tdep.c: Ditto.
4755 * amd64-linux-nat.c: Ditto.
4756 * amd64-linux-tdep.c: Ditto.
4757 * amd64-sol2-tdep.c: Ditto.
4758 * amd64-tdep.c: Ditto.
4759 * amd64-fbsd-tdep.c: Ditto.
4760 * amd64-nbsd-tdep.c: Ditto.
4761 * amd64-obsd-tdep.c: Ditto.
4762 * amd64-linux-nat.c: Ditto.
4763 * amd64-linux-tdep.c: Ditto.
4764 * arm-tdep.c: Ditto.
4765 * arm-tdep.h: Ditto.
4766 * armnbsd-nat.c: Ditto.
4767 * avr-tdep.c: Ditto.
4768 * bfin-tdep.c: Ditto.
4770 * c-typeprintc: Ditto.
4771 * c-valprint.c: Ditto.
4772 * coff-pe-read.h: Ditto.
4773 * coffreead.c: Ditto.
4774 * cris-tdep.c: Ditto.
4776 * darwin-nat-info.c: Ditto.
4777 * darwin-nat.c: Ditto.
4778 * dbug-rom.c: Ditto.
4782 * dec-thread.c: Ditto.
4784 * demangle.c: Ditto.
4785 * dicos-tdep.c: Ditto.
4786 * dictionary.c: Ditto.
4787 * dictionary.h: Ditto.
4788 * dink32-rom.c: Ditto.
4790 * doublest.c: Ditto.
4792 * dummy-frame.c: Ditto.
4793 * dwarf2-frame.c: Ditto.
4794 * dwarf2expr.c: Ditto.
4795 * dwarf2loc.c: Ditto.
4796 * dwarf2read.c: Ditto.
4800 * event-top.h: Ditto.
4801 * exceptions.c: Ditto.
4802 * exceptions.h: Ditto.
4804 * expprint.c: Ditto.
4805 * expression.h: Ditto.
4809 * f-typeprint.c: Ditto.
4810 * f-valprint.c: Ditto.
4811 * fbsd-nat.c: Ditto.
4813 * fork-child.c: Ditto.
4816 * frv-linux-tdep.c: Ditto.
4817 * frv-tdep.c: Ditto.
4819 * gdb-stabs.h: Ditto.
4820 * gdb_assert.h: Ditto.
4821 * gdb_string.h: Ditto.
4822 * gdb_thread_db.h: Ditto.
4823 * gdb_wait.h: Ditto.
4824 * gdbarch.sh: Ditto.
4826 * gdbthread.h: Ditto.
4827 * gdbtypes.c: Ditto.
4828 * gdbtypes.h: Ditto.
4831 * gnu-v2-abi.c: Ditto.
4832 * gnu-v3-abi.c: Ditto.
4833 * go32-nat.c: Ditto.
4834 * gdbarch.c: Regenerate.
4835 * gdbarch.h: Regenerate.
4837 2011-01-07 Michael Snyder <msnyder@vmware.com>
4839 * ax-gdb.c: Adjust some long output strings.
4840 * breakpoint.c: Ditto.
4845 * linux-nat.c: Ditto.
4846 * solib-pa64.c: Ditto.
4847 * solib-som.c: Ditto.
4849 2011-01-06 Tom Tromey <tromey@redhat.com>
4853 * python/python.c (GdbMethods): Add "newest_frame" method.
4854 * python/python-internal.h (gdbpy_newest_frame): Declare.
4855 * python/py-frame.c (gdbpy_newest_frame): New function.
4857 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4859 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4860 * jit.c (jit_debug): New variable.
4861 (show_jit_debug): New function.
4862 (struct target_buffer): Use ULONGEST.
4863 (bfd_open_from_target_memory): Likewise.
4864 (jit_register_code, jit_inferior_init): Add debug output.
4865 (_initialize_jit): Register "debug jit" command.
4867 2011-01-06 Tom Tromey <tromey@redhat.com>
4869 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4870 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4873 2011-01-06 Tom Tromey <tromey@redhat.com>
4875 * python/py-frame.c (frapy_block): Use get_frame_block.
4877 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4879 Do not stop on SIGPRIO signals by default
4880 * infrun.c (_initialize_infrun): Unset signal_stop and
4881 signal_print for TARGET_SIGNAL_PRIO.
4883 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4885 * ada-tasks.c: Fix style violation in comment.
4887 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4889 * linespec.c (decode_compound, find_method): Remove trailing \n
4890 at end of error string.
4891 * solib-irix.c (irix_current_sos): Likewise.
4892 * varobj.c (uninstall_variable): Likewise.
4894 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4896 * copyright.py: New script.
4897 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4898 Launch emacs without exec'ing. Call copyright.py afterwards.
4900 2011-01-05 Michael Snyder <msnyder@vmware.com>
4902 * addrmap.c: Shorten lines of >= 80 columns.
4903 * arch-utils.c: Ditto.
4904 * arch-utils.h: Ditto.
4906 * ax-general.c: Ditto.
4908 * blockframe.c: Ditto.
4909 * breakpoint.c: Ditto.
4910 * buildsym.c: Ditto.
4912 * c-typeprint.c: Ditto.
4914 * coffread.c: Ditto.
4918 * cp-namespace.c: Ditto.
4919 * cp-support.c: Ditto.
4920 * dbug-rom.c: Ditto.
4925 * dictionary.c: Ditto.
4927 * doublest.c: Ditto.
4928 * dwarf2-frame.c: Ditto.
4929 * dwarf2expr.c: Ditto.
4930 * dwarf2loc.c: Ditto.
4931 * dwarf2read.c: Ditto.
4934 * event-loop.c: Ditto.
4935 * event-loop.h: Ditto.
4936 * exceptions.h: Ditto.
4938 * expprint.c: Ditto.
4939 * expression.h: Ditto.
4941 * f-valprint.c: Ditto.
4943 * frame-base.c: Ditto.
4944 * frame-unwind.c: Ditto.
4945 * frame-unwind.h: Ditto.
4949 * gdb-stabs.h: Ditto.
4950 * gdb_assert.h: Ditto.
4951 * gdb_dirent.h: Ditto.
4952 * gdb_obstack.h: Ditto.
4954 * gdbtypes.c: Ditto.
4955 * gdbtypes.h: Ditto.
4956 * inf-ttrace.c: Ditto.
4961 * inline-frame.h: Ditto.
4962 * language.c: Ditto.
4963 * language.h: Ditto.
4964 * libunwind-frame.c: Ditto.
4965 * libunwind-frame.h: Ditto.
4966 * linespec.c: Ditto.
4967 * linux-nat.c: Ditto.
4968 * linux-nat.h: Ditto.
4969 * linux-thread-db.c: Ditto.
4970 * machoread.c: Ditto.
4971 * macroexp.c: Ditto.
4972 * macrotab.c: Ditto.
4975 * mdebugread.c: Ditto.
4980 * objfiles.c: Ditto.
4981 * objfiles.h: Ditto.
4983 * p-typeprint.c: Ditto.
4984 * p-valprint.c: Ditto.
4986 * printcmd.c: Ditto.
4987 * proc-events.c: Ditto.
4989 * progspace.c: Ditto.
4990 * progspace.h: Ditto.
4991 * psympriv.h: Ditto.
4994 * regcache.c: Ditto.
4995 * regcache.h: Ditto.
4996 * remote-fileio.c: Ditto.
4998 * ser-mingw.c: Ditto.
5000 * ser-unix.c: Ditto.
5003 * solib-frv.c: Ditto.
5004 * solib-irix.c: Ditto.
5005 * solib-osf.c: Ditto.
5006 * solib-pa64.c: Ditto.
5007 * solib-som.c: Ditto.
5008 * solib-sunos.c: Ditto.
5009 * solib-svr4.c: Ditto.
5010 * solib-target.c: Ditto.
5014 * stabsread.c: Ditto.
5015 * stabsread.c: Ditto.
5018 * symfile-mem.c: Ditto.
5024 * target-descriptions.c: Ditto.
5025 * target-memory.c: Ditto.
5028 * terminal.h: Ditto.
5031 * tracepoint.c: Ditto.
5032 * tracepoint.h: Ditto.
5036 * user-regs.c: Ditto.
5037 * user-regs.h: Ditto.
5039 * valarith.c: Ditto.
5041 * valprint.c: Ditto.
5042 * valprint.h: Ditto.
5047 * xcoffread.c: Ditto.
5048 * xcoffsolib.c: Ditto.
5049 * xcoffsolib.h: Ditto.
5050 * xml-syscall.c: Ditto.
5051 * xml-tdesc.c: Ditto.
5053 2011-01-05 Michael Snyder <msnyder@vmware.com>
5055 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5056 * cli/cli-decode.c: Ditto.
5057 * cli/cli-dump.c: Ditto.
5058 * cli/cli-logging.c: Ditto.
5059 * cli/cli-script.c: Ditto.
5060 * cli/cli-setshow.c: Ditto.
5061 * common/signals.c: Ditto.
5062 * mi/mi-cmd-break.c: Ditto.
5063 * mi/mi-cmd-disas.c: Ditto.
5064 * mi/mi-cmd-stack.c: Ditto.
5065 * mi/mi-cmd-var.c: Ditto.
5066 * mi/mi-cmds.c: Ditto.
5067 * mi/mi-common.h: Ditto.
5068 * mi/mi-console.c: Ditto.
5069 * mi/mi-interp.c: Ditto.
5070 * mi/mi-main.c: Ditto.
5071 * osf-share/cma_attr.c: Ditto.
5072 * osf-share/cma_deb_core.h: Ditto.
5073 * osf-share/cma_debug_client.h: Ditto.
5074 * osf-share/cma_handle.h: Ditto.
5075 * osf-share/cma_mutex.h: Ditto.
5076 * osf-share/cma_stack_int.h: Ditto.
5077 * osf-share/cma_tcb_defs.h: Ditto.
5078 * python/py-auto-load.c: Ditto.
5079 * python/py-breakpoint.c: Ditto.
5080 * python/py-cmd.c: Ditto.
5081 * python/py-frame.c: Ditto.
5082 * python/py-objfile.c: Ditto.
5083 * python/py-param.c: Ditto.
5084 * python/py-progspace.c: Ditto.
5085 * python/py-symbol.c: Ditto.
5086 * python/py-value.c: Ditto.
5087 * python/python-internal.h: Ditto.
5088 * python/python.c: Ditto.
5089 * tui/tui-data.c: Ditto.
5090 * tui/tui-disasm.c: Ditto.
5091 * tui/tui-hooks.c: Ditto.
5092 * tui/tui-io.c: Ditto.
5093 * tui/tui-layout.c: Ditto.
5094 * tui/tui-regs.c: Ditto.
5095 * tui/tui-source.c: Ditto.
5096 * tui/tui-stack.c: Ditto.
5097 * tui/tui-win.c: Ditto.
5098 * tui/tui-windata.c: Ditto.
5099 * tui/tui-winsource.c: Ditto.
5101 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5103 * configure.ac, gdb.1: Copyright year update.
5105 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5107 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5108 this_pc_in_block, morestack_msym and morestack_name. Check for
5109 "__morestack" minimal symbol there.
5111 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5113 * symfile.c (find_sym_fns): Add call to dont_repeat.
5115 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5117 Copyright year update in most files (performed by copyright.sh).
5119 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5121 * top.c (print_gdb_version): Update copyright year in version output.
5123 For older changes see ChangeLog-2010.
5129 version-control: never