1 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4 (procfs_remove_hw_watchpoint): Likewise.
6 2011-04-26 Michael Walle <michael@walle.cc>
8 * remote.c (remote_start_remote): Ack packet after sending the
11 2011-04-26 Yao Qi <yao@codesourcery.com>
13 * linux-nat.c: Move common macros to ...
14 Include linux-ptrace.h.
15 * common/linux-ptrace.h: ... here. New.
17 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
19 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
20 !objfile_has_partial_symbols. New comment.
21 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
22 SYM_READ_PSYMBOLS is not present. Extend the comment.
23 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
25 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
27 * defs.h (ENUM_BITFIELD): Remove.
29 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
30 Eli Zaretskii <eliz@gnu.org>
32 * NEWS: Document the new gdbserver --once option.
34 2011-04-21 Jie Zhang <jzhang918@gmail.com>
36 * MAINTAINERS: Update my email address.
38 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
40 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
41 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
42 function call if __STDC_ISO_10646__ macro is defined.
43 (intermediate_encoding): New prototype.
44 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
45 to generate compile time error for unsupported gdb_wchar_t size.
46 (ENDIAN_SUFFIX): New macro.
47 (intermediate_encoding): New function.
49 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
51 * ada-lang.c (struct add_partial_datum): Update the comment for
52 expand_partial_symbol_name.
53 (ada_add_partial_symbol_completions): Rename to ...
54 (ada_expand_partial_symbol_name): ... here, change return type, update
55 function comment, call symbol_completion_match instead of
56 symbol_completion_add.
57 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
58 and ada_expand_partial_symbol_name.
59 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
61 (dw2_map_symbol_names): Remove.
62 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
63 * psymtab.c (map_symbol_names_psymtab): Remove.
64 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
65 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
67 (psym_functions): Unlist map_symbol_names_psymtab.
68 (map_partial_symbol_names): Rename to ...
69 (expand_partial_symbol_names): ... here, change the FUN type, call
70 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
71 * psymtab.h (map_partial_symbol_names): Rename to ...
72 (expand_partial_symbol_names): ... here, change the FUN type.
73 * symfile.h (struct quick_symbol_functions): Update the description of
74 expand_symtabs_matching. Remove map_symbol_names.
75 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
76 (struct add_name_data): Update the comment for
77 expand_partial_symbol_name.
78 (add_partial_symbol_name): Rename to ...
79 (expand_partial_symbol_name): ... here. Replace
80 completion_list_add_name call by strncmp.
81 (default_make_symbol_completion_list_break_on): Use now
82 expand_partial_symbol_names and expand_partial_symbol_name.
83 * symtab.h (enum search_domain): New element ALL_DOMAIN.
85 2011-04-20 Tom Tromey <tromey@redhat.com>
87 * dwarf2read.c (save_gdb_index_command): Replace format
88 documentation with a pointer to the manual.
90 2011-04-20 Pedro Alves <pedro@codesourcery.com>
92 * regcache.c: Include remote.h.
93 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
94 (regcache_dump): Handle regcache_dump_remote.
95 (maintenance_print_remote_registers): New function.
96 (_initialize_regcache): Install "maint print remote-registers"
98 * remote.c (map_regcache_remote_table): New function, factored out
100 (init_remote_state): ... here.
101 (remote_register_number_and_offset): New.
102 * remote.h (remote_register_number_and_offset): Declare.
104 2011-04-20 Pedro Alves <pedro@codesourcery.com>
106 * regcache.c (get_thread_arch_regcache): If creating a regcache for
107 null_ptid, assume and allow a NULL address space, instead of
108 asking the target for the ptid's address space.
109 * infrun.c (ptid_is_pid): Remove assertion.
111 2011-04-19 Tom Tromey <tromey@redhat.com>
113 * windows-tdep.c (windows_xfer_shared_library):
114 * windows-nat.c (get_module_name, windows_make_so):
115 * v850-tdep.c (v850_handle_pushm):
116 * utils.c (null_cleanup, gdb_realpath):
117 * ui-out.c (get_next_header):
118 * tracepoint.c (clear_traceframe_info):
119 * symtab.c (lookup_symtab):
120 * serial.h (struct serial_ops):
121 * mipsread.c (read_alphacoff_dynamic_symtab):
122 * infcmd.c (print_return_value):
123 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
124 * f-exp.y (parse_number):
125 * exceptions.c (catch_exceptions):
126 * dummy-frame.c (dummy_frame_this_id):
127 * defs.h (struct cleanup):
128 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
129 * arm-tdep.c (arm_push_dummy_call):
130 * amd64-tdep.h (amd64_collect_xsave):
131 * amd64-tdep.c (amd64_collect_xsave):
132 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
133 * README (typing): Remove duplicate words.
134 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
135 * infrun.c (siginfo_value_read): Fix typo.
136 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
137 * top.c (source_line_number): Add comma.
139 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
141 * thread.c (any_live_thread_of_process): Prioritize threads
142 that are not executing.
143 * gdbthread.h (any_live_thread_of_process): Update comment
146 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
148 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
149 (scan_xcoff_symtab): Likewise.
151 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
153 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
156 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
157 Pedro Alves <pedro@codesourcery.com>
159 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
160 variables to simplify code and avoid == operator at end of
161 line as this is against GNU coding standards.
163 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
165 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
166 lm_name to name_lm to avoid conflict with lm_name function.
168 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
170 ARI fixes: Use only lowercase function name for static functions.
171 * nto-tdep.c (LM_ADDR): Rename to...
172 (lm_addr): New function name.
173 (nto_relocate_section_addresses): Adapt to change above.
174 * solib-sunos.c (LM_ADDR): Rename to...
175 (lm_addr): New function name.
176 (LM_NEXT): Rename to...
177 (lm_next): New function name.
178 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
179 function name changes above.
180 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
181 (lm_addr_from_link_map): New function name.
182 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
183 (has_lm_dynamic_from_link_map): New function name.
184 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
185 (lm_dynamic_from_link_map): New function name.
186 (LM_ADDR_CHECK): Rename to...
187 (lm_addr_check): New function name.
188 (LM_NEXT): Rename to...
189 (lm_next): New function name.
190 (LM_PREV): Rename to...
191 (lm_prev): New function name.
192 (LM_NAME): Rename to...
193 (lm_name): New function name.
194 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
195 (ignore_first_link_map_entry): New function name.
196 (svr4_keep_data_in_core): Adapt to function name changes above.
197 (svr4_current_sos): Likewise.
198 (enable_break): Likewise.
199 (svr4_relocate_section_addresses): Likewise.
201 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
204 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
205 sprintf. Simplify code and avoid loosing memory.
206 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
207 (call0_frame_cache): Remove && operator from end of line.
209 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
211 Fix libraries displacement if they change whether they were prelinked.
212 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
213 does not match. Comment why.
215 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
217 * corelow.c: Include wrapper.h.
218 (core_open): Call now gdb_target_find_new_threads.
219 * wrapper.c: Include target.h.
220 (gdb_target_find_new_threads): New.
221 * wrapper.h (gdb_target_find_new_threads): New declaration.
223 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
225 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
226 even if !TARGET_HAS_EXECUTION.
228 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
230 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
231 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
232 bfd_get_synthetic_symtab.
233 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
234 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
235 parameter parent, remove the call to add_separate_debug_objfile.
236 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
237 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
238 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
239 parent, new comment for it, call add_separate_debug_objfile for it.
240 (symbol_file_add_separate): Pass objfile as the parameter parent,
241 remove the call to add_separate_debug_objfile.
242 (symbol_file_add_from_bfd): New parameter parent, pass it.
243 (symbol_file_add): Pass NULL to the new parameter parent.
244 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
246 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
248 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
251 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
253 Fix Python access to inlined frames.
254 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
255 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
257 2011-04-15 Tom Tromey <tromey@redhat.com>
259 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
261 2011-04-15 Gary Benson <gbenson@redhat.com>
263 * MAINTAINERS: Add myself to write-after-approval section.
265 2011-04-14 Mike Frysinger <vapier@gentoo.org>
267 * remote-sim.c (sim_command_completer): New function.
268 (_initialize_remote_sim): Set completer to sim_command_completer.
270 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
272 * breakpoint.c (print_exception_catchpoint): Rename to ...
273 (print_it_exception_catchpoint): ... this.
274 (gnu_v3_exception_catchpoint_ops): Update with new name
275 for print_it_exception_catchpoint.
277 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
279 * MAINTAINERS: Add myself for write after approval privileges.
281 2011-04-13 Marek Polacek <mpolacek@redhat.com>
283 * MAINTAINERS: Add myself as a write-after-approval maintainer.
285 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
287 * breakpoint.c (watch_command_1): Remove colon from exp_string.
289 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
291 * breakpoint.c (save_breakpoints): Verify whether
292 breakpoint_ops.print_recreate is defined before calling it.
294 2011-04-11 Gary Benson <gbenson@redhat.com>
296 Fix failure with --enable-maintainer-mode.
297 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
299 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
302 * symtab.c (search_symbols): Reorder the KIND description in the
303 function comment. Remove the unused 4th element of types, types2,
304 types3 and types4. New gdb_assert on KIND.
305 (symtab_symbol_info): Remove the unused 4th element of classnames.
306 New gdb_assert on KIND.
307 * symtab.h (enum search_domain): New warning in the enum comment.
308 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
311 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
313 Fix crash of gdb save-index on a STABS file.
314 * dwarf2read.c (write_psymtabs_to_index): Return also on no
317 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Fix DW_AT_accessibility compatibility with gcc-4.6+.
320 * dwarf2read.c: Include ctype.h.
321 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
323 (dwarf2_add_field): Fix new_field->accessibility by calling
324 dwarf2_default_access_attribute. Restructure setting accessibility
326 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
327 is_private and is_protected by calling
328 dwarf2_default_access_attribute.
330 2011-04-08 Kevin Buettner <kevinb@redhat.com>
332 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
333 to the initialization.
335 2011-04-08 Steve Ellcey <sje@cup.hp.com>
337 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
340 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
342 Remove support for old Cygwin 1.5 versions.
343 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
344 function on old Cygwin version.
345 * windows-nat.c: Remove cygwin version check and always define
346 __USEWIDE for Cygwin compilation.
348 2011-04-07 Yao Qi <yao@codesourcery.com>
350 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
352 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
353 (arm_copy_svc): Remove parameters INSN and TO.
354 (decode_svc_copro): Update caller.
355 * arm-tdep.h (struct displaced_step_closure): Remove parameters
356 from function pointer `copy_svc_os'.
358 2011-04-07 Yao Qi <yao@codesourcery.com>
360 * arm-tdep.c (cleanup_branch): Set a correct return address in
361 LR for ARM and Thumb.
363 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
366 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
367 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
368 in the function comment, a new note on values compatibility.
369 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
370 * symtab.h (SYMBOL_HASH_NEXT): New.
372 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
374 * ppc-linux-nat.c (check_condition): Add len output parameter.
375 Set it based on the memory region referenced in the condition
376 expression. Update all callers.
378 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
380 Fix crash regression on systems featuring .gdb_index.
381 * objfiles.c (free_objfile): Move the
382 forget_cached_source_info_for_objfile call earlier. Comment it.
383 Extend the comment for objfile_free_data.
385 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
387 Fix regression of displaying the debug format.
388 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
391 2011-04-04 Tom Tromey <tromey@redhat.com>
393 * cli/cli-interp.c (struct captured_execute_command_args):
395 (do_captured_execute_command): Remove.
396 (safe_execute_command): Use TRY_CATCH.
397 * cli/cli-script.c (struct wrapped_read_command_file_args):
399 (wrapped_read_command_file): Remove.
400 (script_from_file): Use TRY_CATCH.
401 * exceptions.c (catch_exception): Remove.
402 * exceptions.h (catch_exception): Remove.
403 (deprecated_throw_reason): Update comment.
404 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
405 argument to 'context'.
406 (mi_execute_command): Use TRY_CATCH.
407 * remote.c (struct start_remote_args): Remove.
408 (remote_start_remote): Update; change arguments.
409 (remote_open_1): Use TRY_CATCH.
411 2011-04-04 Tom Tromey <tromey@redhat.com>
413 * tracepoint.c (scope_info): Update.
414 * symtab.c (decode_line_spec): Update.
415 * python/python.c (gdbpy_decode_line): Update.
416 * linespec.h (decode_line_1): Update.
417 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
418 (decode_compound, find_method, symtab_from_filename)
419 (decode_variable): Likewise.
420 * cli/cli-cmds.c (edit_command): Update.
421 (list_command): Update.
422 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
424 (create_breakpoint): Update.
425 (until_break_command): Update.
426 (addr_string_to_sals): Update.
427 (decode_line_spec_1): Update.
429 2011-04-04 Tom Tromey <tromey@redhat.com>
431 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
432 (do_captured_parse_breakpoint): Remove.
433 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
434 Use TRY_CATCH directly.
436 2011-04-04 Tom Tromey <tromey@redhat.com>
438 * symtab.h (free_symtab): Remove.
439 (forget_cached_source_info_for_objfile): Declare.
440 * symmisc.c (free_symtab): Remove.
441 * source.c (forget_cached_source_info_for_objfile): New function.
442 (forget_cached_source_info): Use it.
443 * objfiles.c (free_objfile): Simplify check before calling
444 clear_current_source_symtab_and_line. Call
445 forget_cached_source_info_for_objfile.
447 2011-04-04 Tom Tromey <tromey@redhat.com>
449 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
450 (new_symtab): Don't set `free_code' on symtab.
451 (new_linetable): Properly handle size==0.
452 * symtab.h (struct symtab) <free_code, free_func>: Remove.
453 * symmisc.c (free_symtab): Don't free the linetable. Don't call
455 * jv-lang.c (struct jv_per_objfile_data): New.
456 (jv_per_objfile_free): Free the data.
457 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
458 (get_java_class_symtab): Set the `dict' field on the
460 (free_class_block): Remove.
461 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
464 2011-04-04 Tom Tromey <tromey@redhat.com>
466 * symfile.c (reread_symbols): Update.
467 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
469 * objfiles.c (allocate_objfile): Update.
470 * cp-support.h (cp_check_possible_namespace_symbols): Don't
472 * cp-namespace.c (lookup_symbol_file): Don't call
473 lookup_possible_namespace_symbol.
474 (initialize_namespace_symtab, get_possible_namespace_block)
475 (free_namespace_block, cp_check_possible_namespace_symbols)
476 (check_possible_namespace_symbols_loop)
477 (check_one_possible_namespace_symbol)
478 (lookup_possible_namespace_symbol): Remove.
479 (maintenance_cplus_namespace): Replace with notice.
480 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
482 2011-04-04 Tom Tromey <tromey@redhat.com>
484 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
485 * symtab.h (struct symtab) <producer, debugformat>: Now const.
486 * symmisc.c (free_symtab): Don't free debugformat.
487 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
488 (record_debugformat, record_producer): Document.
489 * buildsym.c (end_symtab): Don't save debugformat and producer
491 (end_symtab): Don't free debugformat and producer fields.
492 (record_debugformat): Don't call xstrdup.
493 (record_producer): Likewise.
495 2011-04-04 Tom Tromey <tromey@redhat.com>
497 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
498 (source_line_charpos, source_charpos_line): Remove.
500 2011-04-04 Tom Tromey <tromey@redhat.com>
502 * symtab.h (domain_enum): Split in two...
503 (enum search_domain): New.
504 (search_symbols): Update.
505 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
506 redundant declarations.
507 (search_symbols): Change 'kind' argument to search_domain.
509 (print_symbol_info): Likewise.
510 (symtab_symbol_info): Likewise.
511 * symfile.h (struct quick_symbol_functions)
512 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
513 <expand_symtabs_matching>: Likewise.
514 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
515 (expand_symtabs_matching_via_partial): Update.
516 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
517 (dw2_expand_symtabs_for_function): Update.
518 * block.h: Moved anonymous enum...
519 * defs.h (enum block_enum): ... here. Now named.
521 2011-04-03 Joel Brobecker <brobecker@adacore.com>
523 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
524 * version.in: Bump version to 7.3.50.20110403-cvs.
526 2011-04-03 Joel Brobecker <brobecker@adacore.com>
528 * NEWS: Create a new section for the next release branch.
529 Rename the section of the current branch, now that it has
532 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
534 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
535 for "fpscr" in target description.
537 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
539 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
540 initialize it. Delay HASH initialization. Strip the part after open
541 parenthesis for languages with qualifiers. Call do_cleanups.
543 2011-04-01 Tom Tromey <tromey@redhat.com>
545 * utils.c (report_command_stats): Don't print `-' for negative
548 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
550 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
551 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
554 2011-04-01 Joel Brobecker <brobecker@adacore.com>
556 * breakpoint.h (bpdisp_text): Add declaration.
557 * breakpoint.c (bpdisp_text): Make non-static.
558 * ada-lang.c: #include "mi/mi-common.h".
559 (print_it_exception): Rewrite to improve GDB/MI output.
561 2011-04-01 Pedro Alves <pedro@codesourcery.com>
563 * arm-tdep.h (struct address_space): Add forward declaration.
565 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
567 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
568 * arm-tdep.c (arm_override_mode): New global.
569 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
570 execution mode heuristics.
571 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
572 second single-step breakpoint if needed, using
573 arm_insert_single_step_breakpoint.
574 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
575 ARM execution mode, do not call thumb_get_next_pc_raw.
576 (arm_get_next_pc): Encode execution mode in return value. Call
577 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
578 (arm_insert_single_step_breakpoint): New function.
579 (arm_software_single_step): Call it.
580 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
581 argument to return execution mode of sigreturn target.
582 (arm_linux_syscall_next_pc): Use it.
583 (arm_linux_copy_svc): Update call.
584 (arm_linux_software_single_step): Call
585 arm_insert_single_step_breakpoint.
587 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
589 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
592 2011-03-31 Tom Tromey <tromey@redhat.com>
594 * varobj.c (update_dynamic_varobj_children): Properly handle
595 errors from iterator.
597 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
599 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
600 struct linkage name twice.
602 2011-03-31 Tom Tromey <tromey@redhat.com>
604 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
605 missing ">" to message.
607 2011-03-31 Tom Tromey <tromey@redhat.com>
609 * varobj.c (instantiate_pretty_printer): Remove duplicate
612 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
614 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
615 if neither saved value nor register available (e.g. signal frame).
617 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
619 * macroexp.c (expand): Avoid uninitialized variable
622 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
624 * breakpoint.c (break_range_command): Fix typo in comment.
626 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
627 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
629 Implement support for PowerPC BookE ranged breakpoints.
630 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
631 * breakpoint.h (struct bp_target_info) <length>: New member
633 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
634 instead of struct breakpoint as argument, and also add ASPACE
635 and BP_ADDR arguments. Update all callers.
636 (struct breakpoint_ops) <print_one_detail>: New method.
637 (struct breakpoint) <addr_string_range_end>: New member variable.
638 * breakpoint.c (breakpoint_location_address_match): Add function
640 (insert_bp_location): Set bl->target_info.length.
641 (breakpoint_here_p): Call breakpoint_location_address_match.
642 (moribund_breakpoint_here_p): Likewise.
643 (regular_breakpoint_inserted_here_p): Likewise.
644 (breakpoint_thread_match): Likewise.
645 (bpstat_stop_status): Likewise.
646 (bpstat_check_location): Move call to
647 breakpoint_ops.breakpoint_hit to the top.
648 (print_one_breakpoint_location): Call
649 breakpoint_ops.print_one_detail if available.
650 (breakpoint_address_match_range): New function.
651 (breakpoint_location_address_match): Likewise.
652 (breakpoint_locations_match): Compare the length field of the
654 (hw_breakpoint_used_count): Count resources used by all locations
655 in a breakpoint, and use breakpoint_ops.resources_needed if
657 (breakpoint_hit_ranged_breakpoint): New function.
658 (resources_needed_ranged_breakpoint): Likewise.
659 (print_it_ranged_breakpoint): Likewise.
660 (print_one_ranged_breakpoint): Likewise.
661 (print_one_detail_ranged_breakpoint): Likewise.
662 (print_mention_ranged_breakpoint): Likewise.
663 (print_recreate_ranged_breakpoint): Likewise.
664 (ranged_breakpoint_ops): New structure.
665 (find_breakpoint_range_end): New function.
666 (break_range_command): Likewise.
667 (delete_breakpoint): Free addr_string_range_end.
668 (update_breakpoint_locations): Add SALS_END argument. Update
669 all callers. Calculate breakpoint length if a non-zero SALS_END
670 is given. Call breakpoint_locations_match instead of
671 breakpoint_address_match.
672 (reset_breakpoint): Find SaL of the end of the range if B is a
674 (_initialize_breakpoint): Register break-range command.
675 * defs.h (print_core_address): Add function prototype.
676 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
678 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
679 (ppc_linux_remove_hw_breakpoint): Likewise.
680 (_initialize_ppc_linux_nat): Initialize
681 to_ranged_break_num_registers.
682 * target.c (update_current_target): Add comment about
683 to_ranged_break_num_registers.
684 (target_ranged_break_num_registers): New function.
685 * target.h (struct target_ops) <to_ranged_break_num_registers>:
687 (target_ranged_break_num_registers): Add function prototype.
688 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
689 * utils.c (print_core_address): ... here.
691 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
693 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
694 variable compiler warning.
696 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
698 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
700 (re_set_breakpoint): ... to here ...
701 (addr_string_to_sals): ... and here.
703 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
705 * Makefile.in (SFILES): Add missing C sources.
706 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
709 2011-03-29 Mike Frysinger <vapier@gentoo.org>
711 * .gitignore: New file.
713 2011-03-29 Mike Frysinger <vapier@gentoo.org>
715 * NEWS: Mention new cfi device simulation.
717 2011-03-29 Tom Tromey <tromey@redhat.com>
719 * dwarf2read.c (fixup_partial_die): Handle linkage name on
720 otherwise anonymous types.
721 (dwarf2_name): Likewise.
722 * valops.c (value_struct_elt_for_reference): Refine artificial
723 type logic. Call error if j==-1.
725 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
727 Fix false GCC warning.
728 * infcall.c (find_function_addr): Initialize funaddr.
730 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
732 Fix mingw compilation with --enable-targets=all.
733 * remote-mips.c (gdb_usleep.h): Include header.
734 (mips_enter_debug): Use gdb_usleep instead of sleep.
736 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
738 Support resolution of STT_GNU_IFUNC via breakpoints.
739 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
740 bp_gnu_ifunc_resolver_return.
741 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
742 the loop. Support bp_gnu_ifunc_resolver and
743 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
744 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
746 (bptype_string, print_one_breakpoint_location): Support
747 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
748 (user_settable_breakpoint): Return true also for
749 bp_gnu_ifunc_resolver.
750 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
751 bp_gnu_ifunc_resolver_return.
752 (set_breakpoint_location_function): New parameter explicit_loc,
753 describe it. Call find_pc_partial_function_gnu_ifunc with new
754 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
755 EXPLICIT_LOC is not set.
756 (set_raw_breakpoint): Set EXPLICIT_LOC for
757 set_breakpoint_location_function.
758 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
759 set_breakpoint_location_function.
760 (mention): Support bp_gnu_ifunc_resolver and
761 bp_gnu_ifunc_resolver_return.
762 (add_location_to_breakpoint): Set EXPLICIT_LOC for
763 set_breakpoint_location_function.
764 (update_breakpoint_locations): Remove static.
765 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
766 bp_gnu_ifunc_resolver_return.
767 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
768 bp_gnu_ifunc_resolver_return.
769 (update_breakpoint_locations): New declaration.
770 * elfread.c: Include gdbthread.h and regcache.h.
771 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
773 (elf_gnu_ifunc_fns): Install them.
774 * minsyms.c (stub_gnu_ifunc_resolver_stop)
775 (stub_gnu_ifunc_resolver_return_stop): New functions.
776 (stub_gnu_ifunc_fns): Install them.
777 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
778 and gnu_ifunc_resolver_return_stop.
779 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
781 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
783 STT_GNU_IFUNC reader implementation.
784 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
785 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
786 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
787 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
788 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
789 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
790 (elf_gnu_ifunc_resolve_addr): New.
791 (elf_symfile_read): Call elf_rel_plt_read.
792 (elf_gnu_ifunc_fns): New.
793 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
794 Install elf_gnu_ifunc_fns.
795 * infcall.c (find_function_return_type): New function.
796 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
797 * minsyms.c (stub_gnu_ifunc_resolve_addr)
798 (stub_gnu_ifunc_resolve_name): New functions.
799 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
800 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
801 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
803 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
805 Code cleanup for later STT_GNU_IFUNC support.
806 * infcall.c (find_function_addr): Remove variable code, use explicit
807 dereferences for it. Move VALUE_TYPE initialization later.
809 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
811 GDB find_pc_partial_function support for STT_GNU_IFUNC.
812 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
813 (clear_pc_function_cache): Clear it.
814 (find_pc_partial_function): Rename to ...
815 (find_pc_partial_function_gnu_ifunc): ... this function. New
816 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
817 (find_pc_partial_function): New wrapper for this function.
818 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
820 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
822 GDB internal type support for STT_GNU_IFUNC.
823 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
824 (elf_symtab_read): Set mst_text_gnu_ifunc for
825 BSF_GNU_INDIRECT_FUNCTION.
826 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
827 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
828 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
829 nodebug_got_plt_symbol.
830 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
831 (TYPE_GNU_IFUNC): New.
832 (struct main_type): New field flag_gnu_ifunc.
833 (struct builtin_type): New field builtin_func_func.
834 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
835 nodebug_got_plt_symbol.
836 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
837 (in_gnu_ifunc_stub): New.
838 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
840 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
841 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
842 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
844 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
845 * symtab.c (search_symbols): Likewise.
846 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
847 and mst_slot_got_plt.
848 (in_gnu_ifunc_stub): New declaration.
850 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
852 Support a ring of related breakpoints.
853 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
854 other functions, add gdb_assert.
855 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
856 watchpoint_del_at_next_stop.
857 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
858 (bpstat_stop_status): Handle ring in related_breakpoint.
859 (set_raw_breakpoint_without_location): Initialize ring in
861 (delete_breakpoint): Handle ring in related_breakpoint, use
862 watchpoint_del_at_next_stop.
863 (map_breakpoint_numbers): Handle ring in related_breakpoint.
865 2011-03-28 Tom Tromey <tromey@redhat.com>
868 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
869 with `language_minimal'.
871 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
873 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
874 instead of checking for STT_ARM_TFUNC symbol type.
876 2011-03-25 Tom Tromey <tromey@redhat.com>
878 * linespec.c (symbol_found): Restore line-based result for
879 non-LOC_LABEL symbols.
881 2011-03-25 Kai Tietz <ktietz@redhat.com>
883 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
884 instead of strcmp for comparison.
885 (tui_source_is_displayed): Likewise.
886 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
888 2011-03-24 Mark Wielaard <mjw@redhat.com>
890 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
892 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
893 (find_partial_die_in_comp_unit): Likewise in comment.
894 (read_attribute_value): Likewise.
895 (lookup_die_type): Likewise.
896 (dwarf_form_name): Likewise.
897 (dump_die_shallow): Likewise.
898 (follow_die_ref_or_sig): Likewise.
900 2011-03-24 Tom Tromey <tromey@redhat.com>
902 PR breakpoints/11816:
903 * linespec.c (decode_line_1): Parse `function:label' linespecs.
904 (decode_compound): Update.
905 (find_function_symbol): New function.
906 (decode_dollar): Update.
907 (decode_label): Add 'function_symbol' parameter. Handle
908 function-relative labels.
909 (decode_variable): Update.
910 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
911 not its line. Set `special_display' and canonical name for
914 2011-03-24 Tom Tromey <tromey@redhat.com>
916 * linespec.h (struct linespec_result) <special_display>: New
918 * breakpoint.h (struct breakpoint) <display_canonical>: New
920 * breakpoint.c (print_breakpoint_location): Respect
922 (create_breakpoint_sal): Add 'display_canonical' parameter.
923 (create_breakpoints_sal): Update.
924 (create_breakpoint): Update.
926 2011-03-24 Tom Tromey <tromey@redhat.com>
928 * symtab.c (decode_line_spec): Update.
929 * linespec.c (build_canonical_line_spec): Change type of
931 (decode_line_2, decode_line_1, decode_objc, decode_compound)
932 (find_method, decode_all_digits, decode_dollar, decode_label)
933 (symbol_found): Likewise.
934 (init_linespec_result): New function.
935 * breakpoint.c (struct captured_parse_breakpoint_args)
936 <canonical_p>: New field, replaces addr_string_p.
937 (create_breakpoints_sal): Add 'canonical' parameter, replacing
939 (parse_breakpoint_sals): Likewise.
940 (do_captured_parse_breakpoint): Update.
941 (create_breakpoint): Use struct linespec_result.
942 (until_break_command): Update.
943 (breakpoint_re_set_one): Update.
944 (decode_line_spec_1): Update.
945 * linespec.h (struct linespec_result): New.
946 (init_linespec_result): Declare.
948 2011-03-23 Pedro Alves <pedro@codesourcery.com>
950 * regcache.c (regcache_raw_read): If the target didn't supply a
951 given raw register, mark it as unavailable.
953 2011-03-23 Kai Tietz <ktietz@redhat.com>
955 * breakpoint.c (clear_command): Use filename_cmp
956 instead of strcmp for comparison.
957 * buildsym.c (watch_main_source_file_lossage): Likewise.
958 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
959 checking just for slash.
960 * dbxread.c (read_dbx_symtab): Use lbasename instead of
961 strrchr and filename_cmp instead of strcmp for filenames.
962 (add_old_header_file): Use filename_cmp
963 instead of strcmp for comparison.
964 * exec.c (exec_set_section_address): Likewise.
965 * macrotab.c (macro_lookup_inclusion): Likewise.
966 (macro_lookup_inclusion): Likewise.
967 * elfread.c (_initialize_elfread): Likewise.
968 (elfstab_offset_sections): Likewise.
969 (elfstab_offset_sections): Use lbasename instead of
971 * mdebugread.c (parse_partial_symbols): Likewise.
972 (arse_partial_symbols): Use filename_(n)cmp instead of
973 str(n)cmp for comparison.
974 * minsyms.c (lookup_minimal_symbol): Likewise.
975 * psymtab.c (read_psymtabs_with_filename): Likewise.
976 * solib.c (solib_read_symbols): Likewise.
977 (reload_shared_libraries_1): Likewise.
978 * symmisc.c (maintenance_print_symbols): Likewise.
979 * symfile.c (separate_debug_file_exists): Likewise.
980 (reread_symbols): Likewise.
981 (find_separate_debug_file_by_debuglink): Likewise.
982 * remote-fileio.c (remote_fileio_func_rename): Likewise.
983 * source.c (add_path): Likewise.
984 * symtab.c (filename_seen): Likewise.
985 (file_matches): Likewise.
986 (print_symbol_info): Likewise.
987 (maybe_add_partial_symtab_filename): Likewise.
988 (make_source_files_completion_list): Likewise.
989 * xml-syscall.c (init_sysinfo): Likewise.
990 * windows-nat.c (_initialize_check_for_gdb_ini): Use
991 IS_DIR_SEPARATOR for checking for trailing path separator.
993 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
995 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
996 label abort_expression.
997 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
998 DWARF_VALUE_OPTIMIZED_OUT.
1000 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1004 to linkage_name. Invert its value. Update the function comment.
1005 (c_type_print_varspec_suffix): Invert it at the caller.
1006 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1008 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1010 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1011 errors when reading the `stop_pc'.
1012 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1015 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1017 * NEWS: Document gdb.Write stream keyword.
1019 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1022 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1023 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1024 (dwarf2_add_field): Fix new_field->accessibility for
1025 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1027 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1031 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1032 other error classes. Do not print stack trace.
1034 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1036 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1037 (dwarf2_add_field): Fix new_field->accessibility for
1038 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1040 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1042 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1043 encountering a load via a non-SP register.
1045 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1047 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1048 field in returned unwinder.
1050 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1052 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1054 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1056 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1059 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1061 * frame.c (frame_unwind_register): Throw an error if unwinding the
1063 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1064 an unwind stop reason.
1065 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1066 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1067 UNWIND_UNAVAILABLE>: New.
1068 * inline-frame.c (inline_frame_unwind): Install
1069 default_frame_unwind_stop_reason.
1070 * frame-unwind.c: Include "exceptions.h".
1071 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1072 (default_frame_unwind_stop_reason): New.
1073 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1074 (default_frame_unwind_stop_reason): Declare.
1075 (struct frame_unwind) <stop_reason>: New function pointer.
1077 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1078 * dwarf2-frame.c: Include exceptions.h.
1079 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1080 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1081 computing the CFA. If such an error was thrown, set
1082 unavailable_retaddr.
1083 (dwarf2_frame_unwind_stop_reason): New.
1084 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1086 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1087 (dwarf2_signal_frame_unwind): Ditto.
1089 * amd64-tdep.c: Include "exceptions.h".
1090 (struct amd64_frame_cache): New field "base_p".
1091 (amd64_init_frame_cache): Clear it.
1092 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1093 Avoid reading registers with functions that throw if the register
1094 is not necessary to compute the frame base.
1095 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1096 swallowing NOT_AVAILABLE_ERROR.
1097 (amd64_frame_unwind_stop_reason): New.
1098 (amd64_frame_this_id): Don't build a frame id if the frame base
1100 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1101 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1102 base_p if the frame base was computable.
1103 (amd64_sigtramp_frame_unwind_stop_reason): New.
1104 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1105 frame base was unavailable.
1106 (amd64_sigtramp_frame_unwind): Install
1107 amd64_sigtramp_frame_unwind_stop_reason.
1108 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1109 base_p if the frame base was computable.
1110 (amd64_epilogue_frame_unwind_stop_reason): New.
1111 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1112 frame base was unavailable.
1113 (amd64_epilogue_frame_unwind): Install
1114 amd64_epilogue_frame_unwind_stop_reason.
1115 * i386-tdep.c: Include "exceptions.h".
1116 (struct i386_frame_cache): New field "base_p".
1117 (i386_init_frame_cache): Clear it.
1118 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1119 Avoid reading registers with functions that throw if the register
1120 is not necessary to compute the frame base.
1121 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1122 swallowing NOT_AVAILABLE_ERROR.
1123 (i386_frame_unwind_stop_reason): New.
1124 (i386_frame_this_id): Don't build a frame id if the frame base was
1126 (i386_frame_prev_register): Handle unavailable SP.
1127 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1128 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1129 base_p if the frame base was computable.
1130 (i386_epilogue_frame_unwind_stop_reason): New.
1131 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1132 base was unavailable.
1133 (i386_epilogue_frame_unwind): Install
1134 i386_epilogue_frame_unwind_stop_reason.
1135 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1136 base_p if the frame base was computable.
1137 (i386_sigtramp_frame_unwind_stop_reason): New.
1138 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1139 base was unavailable.
1140 (i386_sigtramp_frame_unwind): Install
1141 i386_sigtramp_frame_unwind_stop_reason.
1142 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1143 type's size, not the register's.
1144 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1146 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1147 default_frame_unwind_stop_reason.
1148 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1149 (alpha_heuristic_frame_unwind): Ditto.
1150 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1151 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1152 * avr-tdep.c (avr_frame_unwind): Ditto.
1153 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1155 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1156 * frv-tdep.c (frv_frame_unwind): Ditto.
1157 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1158 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1159 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1160 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1161 (hppa_stub_frame_unwind): Ditto.
1162 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1163 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1164 (ia64_libunwind_frame_unwind)
1165 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1166 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1167 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1168 * m32c-tdep.c (m32c_unwind): Ditto.
1169 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1170 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1171 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1172 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1173 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1174 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1175 * mep-tdep.c (mep_frame_unwind): Ditto.
1176 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1177 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1178 (mips_stub_frame_unwind): Ditto.
1179 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1180 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1181 * mt-tdep.c (mt_frame_unwind): Ditto.
1182 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1183 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1184 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1185 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1186 (s390_sigtramp_frame_unwind): Ditto.
1187 * score-tdep.c (score_prologue_unwind): Ditto.
1188 * sh-tdep.c (sh_frame_unwind): Ditto.
1189 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1190 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1191 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1192 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1193 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1194 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1195 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1196 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1197 (sparc64obsd_trapframe_unwind): Ditto.
1198 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1199 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1200 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1201 * v850-tdep.c (v850_frame_unwind): Ditto.
1202 * vax-tdep.c (vax_frame_unwind): Ditto.
1203 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1204 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1205 * xtensa-tdep.c (xtensa_unwind): Ditto.
1207 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1209 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1210 there's always a frame. Use get_frame_pc_if_available instead of
1211 get_frame_pc, and if there's no PC available, don't look up a
1214 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1216 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1219 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1221 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1224 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1226 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1227 * frame.c (frame_unwind_caller_pc_if_available): New.
1228 * stack.c (frame_info): Handle unavailable PC.
1230 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1232 * frame.c (frame_unwind_pc): Rename to ...
1233 (frame_unwind_pc_if_available): ... this. New `pc' output
1234 parameter. Change return type to int. Gracefully handle
1235 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1236 happened, or 1 otherwise.
1237 (frame_unwind_pc): Reimplement on top of
1238 frame_unwind_pc_if_available.
1239 (get_frame_func): Rename to ...
1240 (get_frame_func_if_available): New `pc' output parameter. Change
1241 return type to int. Gracefully handle the PC not being available.
1242 (get_frame_func): Reimplement on top of
1243 get_frame_func_if_available.
1244 (select_frame): Handle the PC being unavailable.
1245 (get_prev_frame): Handle the PC being unavailable.
1246 (get_frame_pc_if_available): New.
1247 (get_frame_address_in_block_if_available): New.
1248 (find_frame_sal): Handle the frame PC not being available.
1249 * frame.h (get_frame_pc_if_available): Declare.
1250 (get_frame_address_in_block_if_available): Declare.
1251 (get_frame_func_if_available): Declare.
1252 * stack.c (print_frame_info): Handle the PC being unavailable.
1253 (find_frame_funname): Ditto.
1254 (print_frame): Handle the PC being unavailable.
1255 (get_frame_language): Ditto.
1256 * blockframe.c (get_frame_block): Ditto.
1257 * macroscope.c (default_macro_scope): Ditto.
1258 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1260 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1262 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1263 NOT_AVAILABLE_ERROR when evaluating the location expression.
1265 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1267 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1268 returning that the register piece is unavailable/optimized out.
1269 (write_pieced_value): Handle get_frame_register_bytes returning
1270 that the register piece is unavailable/optimized out when doing a
1271 read-modify write of a bitfield.
1272 * findvar.c (value_from_register): Handle get_frame_register_bytes
1273 returning that the register piece is unavailable/optimized out.
1274 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1275 and `unavailablep'. Throw error on bad debug info. Use
1276 frame_register instead of frame_register_read, to fill in the new
1278 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1280 * valops.c: (value_assign): Adjust, and handle
1281 get_frame_register_bytes failing.
1282 * spu-tdep.c: Include exceptions.h.
1283 (spu_software_single_step): Adjust, and handle
1284 get_frame_register_bytes failing.
1285 (spu_get_longjmp_target): Ditto.
1286 * gdbarch.sh (register_to_value): Change to return int. New
1287 parameters `optimizedp' and `unavailablep'.
1288 * gdbarch.h, gdbarch.c: Regenerate.
1289 * i386-tdep.c (i386_register_to_value): Adjust to new
1290 gdbarch_register_to_value interface.
1291 * i387-tdep.c (i387_register_to_value): Ditto.
1292 * i387-tdep.h (i387_register_to_value): Ditto.
1293 * alpha-tdep.c (alpha_register_to_value): Ditto.
1294 * ia64-tdep.c (ia64_register_to_value): Ditto.
1295 * m68k-tdep.c (m68k_register_to_value): Ditto.
1296 * mips-tdep.c (mips_register_to_value): Ditto.
1297 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1299 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1301 * findvar.c (value_of_register): Mark the value as unavailable, if
1302 the register is unavailable.
1303 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1304 (frame_register): New `unavailablep' parameter.
1305 (frame_register_read): Update comment.
1306 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1307 Set it if the register is unavailable. If the register is
1308 unavailable, clear the output buffer.
1309 (frame_register): New `unavailablep' parameter. Pass it down.
1310 (frame_unwind_register): Adjust.
1311 (put_frame_register): Adjust.
1312 (frame_register_read): Adjust. Also return false if the register
1314 (frame_register_unwind_location): Adjust.
1315 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1316 is unavailable, mark the value accordingly.
1317 * stack.c (frame_info): Handle unavailable registers.
1319 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1321 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1322 simplify, using regcache_cooked_read.
1324 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1326 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1327 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1328 (regcache_raw_read_unsigned, regcache_raw_read_part)
1329 (regcache_cooked_read, regcache_cooked_read_signed)
1330 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1331 (regcache_cooked_read_ftype): Change return to enum
1333 * regcache.c: Include exceptions.h
1334 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1335 (do_cooked_read): Change return to enum register_status. Always
1336 forward to regcache_cooked_read.
1337 (regcache_raw_read): Change return to enum register_status. If
1338 the register is not REG_VALID, memset the buffer. Return the
1340 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1341 return the register's status.
1342 (regcache_raw_read_unsigned): Ditto.
1343 (regcache_cooked_read): Change return to enum register_status.
1344 Assert that with read-only regcaches, the register's status must
1345 be known. If the regcache is read-only, and the register is not
1346 REG_VALID, memset the buffer. Return the register's status.
1347 (regcache_cooked_read_signed): Change return to enum
1348 register_status. Handle non-REG_VALID registers and return the
1350 (regcache_cooked_read_unsigned): Change return to enum
1351 register_status. Handle non-REG_VALID registers and return the
1353 (regcache_xfer_part, regcache_raw_read_part)
1354 (regcache_cooked_read_part): Change return to enum
1355 register_status. Return the register's status.
1356 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1358 (regcache_dump): Handle unavailable cooked registers.
1359 * frame.c (do_frame_register_read): Adjust interface to match
1360 regcache_cooked_read_ftype.
1361 * gdbarch.sh (pseudo_register_read): Change return to enum
1363 * gdbarch.h, gdbarch.c: Regenerate.
1365 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1367 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1368 register_status. If reading a raw register indicates the raw
1369 register is not valid, return the raw register's status,
1370 otherwise, return REG_VALID.
1371 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1372 register_status. Handle non-REG_VALID raw registers and return
1373 the register's status.
1374 * arm-tdep.c (arm_neon_quad_read)
1375 (arm_pseudo_read): Change return to enum register_status. Handle
1376 non-REG_VALID raw registers and return the register's status.
1377 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1378 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1379 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1380 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1381 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1383 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1384 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1385 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1386 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1387 (m32c_pseudo_register_read): Change return to enum
1388 register_status. Adjust.
1389 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1390 enum register_status. Return the register's status.
1391 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1392 register_status. Return the register's status.
1393 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1394 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1395 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1396 * rs6000-tdep.c (move_ev_register_func): New typedef.
1397 (e500_move_ev_register): Use it. Change return to enum
1398 register_status. Return the register's status.
1399 (do_regcache_raw_read): New function.
1400 (do_regcache_raw_write): New function.
1401 (e500_pseudo_register_read): Change return to enum
1402 register_status. Return the register's status. Use
1403 do_regcache_raw_read.
1404 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1405 (dfp_pseudo_register_read): Change return to enum register_status.
1406 Return the register's status.
1407 (vsx_pseudo_register_read): Ditto.
1408 (efpr_pseudo_register_read): Ditto.
1409 (rs6000_pseudo_register_read): Ditto.
1410 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1411 register_status. Return the register's status.
1412 * sh64-tdep.c (pseudo_register_read_portions): New function.
1413 (sh64_pseudo_register_read): Change return to enum
1414 register_status. Use pseudo_register_read_portions. Return the
1416 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1417 register_status. Return the register's status.
1418 * sh-tdep.c (pseudo_register_read_portions): New function.
1419 (sh_pseudo_register_read): Change return to enum register_status.
1420 Use pseudo_register_read_portions. Return the register's status.
1421 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1422 enum register_status. Return the register's status.
1423 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1424 * spu-tdep.c (spu_pseudo_register_read_spu)
1425 (spu_pseudo_register_read): Ditto.
1426 * xtensa-tdep.c (xtensa_register_read_masked)
1427 (xtensa_pseudo_register_read): Ditto.
1428 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1430 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1432 * python/py-value.c (valpy_getitem): Fix formatting of error function
1435 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1437 ARI fixes: Add missing internationalization markups throughout
1439 * darwin-nat-info.c: Ditto.
1442 * mi/mi-main.c: Ditto.
1444 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1446 ARI fixes: Add missing internationalization markups throughout
1449 * cp-name-parser.y: Ditto.
1452 * objc-exp.y: Ditto.
1455 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1457 ARI fixes: Messages should have no trailing new lines.
1458 * darwin-nat.c (mach_check_error): Remove trailing new line from
1459 warning function call message.
1460 * record.c (bfdcore_read): Idem for error call.
1462 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1464 * common/signals.c (target_signal_from_host): Add _ markup to error
1465 function call message.
1466 (target_signal_to_host): Add _ markup and remove trailing new line
1467 from warning call message.
1468 (target_signal_from_command): Add _ markup to error function call
1471 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1475 * python/python.c (gdbpy_write): Accept a stream argument and
1476 operate to the appropriate stream.
1477 (gdbpy_flush): Likewise.
1478 (_initialize_python): Add stream constants.
1479 (finish_python_initialization): Add GdbOutputErrorFile class.
1481 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1483 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1485 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1487 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1488 to store_signed_integer. Add debug message when relocating CALL
1489 instructions. Fix formatting of debug message.
1490 * i386-tdep.c (i386_relocate_instruction): Ditto.
1492 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1494 * target.h (struct target_ops): Remove to_lookup_symbol field.
1495 (target_lookup_symbol): Delete macro.
1496 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1497 (update_current_target, setup_target_debug): Remove handling
1498 of to_lookup_symbol target_ops field.
1499 * ada-tasks.c (get_known_tasks_addr): Remove use of
1500 target_lookup_symbol.
1501 * coffread.c (coff_symtab_read): Likewise.
1502 * dbxread.c (read_dbx_symtab): Ditto.
1504 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1507 * configure.ac: Add getthrds declaration check.
1508 * configure, config.in: Regenerate.
1509 * aix-thread.c (getthrds): Declare only if not already declared
1510 in procinfo.h. More declaration out of get_signaled_thread to
1513 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1515 * python/py-symtab.c: Populate symtab_object_methods,
1517 (stpy_is_valid): New function.
1518 (salpy_is_valid): Ditto.
1519 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1520 (sympy_is_valid): New function.
1521 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1522 (objfpy_is_valid): New function.
1523 * python/py-inferior.c: Populate inferior_object_methods.
1524 (infpy_is_valid): New function.
1525 * python/py-infthread.c: Populate thread_object_methods.
1526 (thpy_is_valid): New function.
1527 * python/py-block.c: Declare block_object_methods. Populate. Declare
1528 block_iterator_object_methods. Populate.
1529 (blpy_is_valid): New function.
1530 (blpy_iter_is_valid): Ditto.
1532 2011-03-16 Keith Seitz <keiths@redhat.com>
1534 * linespec.c (find_methods): Canonicalize NAME before looking
1536 (name_end): New function.
1537 (keep_name_info): New function.
1538 (decode_line_1): Use keep_name_info.
1539 (decode_compound): Likewise.
1540 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1541 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1544 * linespec.c (locate_first_half): Keep overload information, too.
1545 (decode_compound): Use a string to represent break characters
1547 If P points to a break character, do not increment it.
1548 For C++ and Java, keep overload information and relevant keywords.
1549 If we cannot find a symbol, search the minimal symbols.
1552 * linespec.c (decode_compound): Rename SAVED_ARG to
1554 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1556 Pass a valid block to lookup_symbol.
1557 (lookup_prefix_sym): Likewise.
1558 (find_method): Construct search name based on SYM_CLASS instead
1560 * psymtab.c (lookup_partial_symbol): Add language parameter.
1561 (lookup_symbol_aux_psymtabs): Likewise.
1562 Don't assume that the psymtab we found was the right one. Search
1563 for the desired symbol in the symtab to be certain.
1564 (psymtab_search_name): New function.
1565 (lookup_partial_symbol): Use psymtab_search_name.
1566 Add language parameter.
1567 (read_symtabs_for_function): Add language parameter and pass to
1568 lookup_partial_symbol.
1569 (find_symbol_file_from_partial): Likewise.
1571 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1574 * dwarf2read.c (noop_record_line): New function.
1575 (dwarf_decode_lines): Ignore line tables for GCd functions.
1577 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1579 Fix ARI warnings about new lines at the end of messages, which
1580 are unneeded as there is a new line added at the end of the message
1582 * darwin-nat.c (darwin_stop_inferior): Ditto.
1583 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1584 * dfp.c (decimal_to_number): Ditto.
1585 * exec.c (print_section_info): Ditto.
1586 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1587 * osdata.c (get_osdata): Ditto.
1588 * record.c (bfdcore_write): Ditto.
1589 * remote-mips.c (mips_readchar): Ditto.
1590 * remote.c (read_ptid): Ditto.
1591 * ser-mingw.c (ser_windows_raw): Ditto.
1592 * tracepoint.c (add_local_symbols): Ditto.
1593 * windows-nat.c (fake_create_process): Ditto.
1595 2011-03-16 Tom Tromey <tromey@redhat.com>
1597 * tracepoint.c (stop_tracing): Don't declare.
1598 * event-top.c (after_char_processing_hook): Add `(void)'.
1600 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1602 * NEWS: Add Parameter sub-classing description.
1604 2011-03-16 Kai Tietz <ktietz@redhat.com>
1606 * MAINTAINERS: Update my e-mail address.
1608 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1610 * MAINTAINERS: Add myself for write after approval privileges.
1612 2011-03-15 Michael Snyder <msnyder@vmware.com>
1614 * frame.c (find_frame_sal): Assert sym is not null.
1616 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1618 * objc-lang.c (selectors_info): Check strchr for null result.
1620 * stabsread.c (define_symbol): Guard against bad stabstring input.
1622 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1624 Remove trailing spaces and tabulations from pascal language
1629 p-valprint.c: Ditto.
1631 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1634 than LOW. Comment it.
1635 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1636 HIGHPC not strictly higher than LOWPC.
1638 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1640 Fix formatting of function declarations returning a pointer in
1642 * varobj.c (varobj_add_child): Ditto.
1643 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1644 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1646 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1648 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1649 for the "generic" vector ABI used with GCC 4.3 and later.
1650 (ppc64_sysv_abi_return_value): Likewise.
1652 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1654 * infcall.c (call_function_by_hand): Function return value is
1655 always a non_lval, even when using struct_return.
1657 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1659 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1660 (map_display_numbers): New.
1661 (do_delete_display): New.
1662 (undisplay_command): Use map_display_numbers.
1663 (do_enable_disable_display): New.
1664 (enable_disable_display_command): New function.
1665 (enable_display): Delete.
1666 (enable_display_command): New.
1667 (disable_display_command): Reimplement.
1668 (_initialize_printcmd): Adjust "enable display" command to use
1669 `enable_display_command' as callback.
1671 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1673 * NEWS: Add Python breakpoint 'stop' operation.
1675 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1677 * NEWS: Delete duplicate entry. Fix typo.
1679 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1681 Fix ARI warning about function names in first column.
1682 Put prototype declaration on same line as return type.
1683 * objc-exp.y: Ditto.
1685 * python/py-stopevent.h: Ditto.
1686 For long function names, split parameters to
1687 allow function name on same line as return type.
1688 * solib-pa64.c: Ditto.
1691 For long function declaration, use single line.
1692 * hppa-tdep.h: Ditto.
1693 * inferior.h: Ditto.
1695 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1697 * python/python.h: Declare gdbpy_should_stop and
1698 gdbpy_breakpoint_has_py_cond.
1699 * python/python.c: Add python.h to includes. Remove python.h from
1700 HAVE_PYTHON definition
1701 (gdbpy_should_stop): New dummy function.
1702 (gdbpy_breakpoint_has_py_cond): New dummy function.
1703 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1704 sub-classing capabilities.
1705 (gdbpy_should_stop): New function.
1706 (gdbpy_breakpoint_has_py_cond): New function.
1707 (local_setattro): New function.
1708 * breakpoint.c (condition_command): Add check for Python 'stop'
1710 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1711 operation function as part of stop/continue tests.
1713 2011-03-14 Tom Tromey <tromey@redhat.com>
1716 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1717 (needs_frame_dwarf_call): Likewise.
1719 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1721 Fix ARI warning about functions without parameters that do not
1723 * breakpoint.c (all_tracepoints): Replace () by (void).
1724 * f-exp.y (match_string_literal): Ditto.
1726 * m2-exp.y (yylex): Ditto.
1727 * mep-tdep.c (current_me_module): Ditto.
1728 (current_options): Ditto.
1729 (current_cop_data_bus_width): Ditto.
1730 (current_cr_names): Ditto.
1731 (current_cr_is_float): Ditto.
1732 (current_ccr_names): Ditto.
1733 * objc-exp.y (yylex): Ditto.
1734 * p-exp.y (yylex): Ditto.
1735 * remote.c (send_interrupt_sequence): Ditto.
1736 * tracepoint.c (current_trace_status): Ditto.
1737 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1738 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1740 2011-03-11 Michael Snyder <msnyder@vmware.com>
1742 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1743 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1744 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1745 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1746 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1748 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1749 (delete_async_event_handler): Ditto.
1751 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1753 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1755 * top.c (set_verbose): Assert showcmd was found.
1757 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1759 * xtensa-tdep.c (warning_once): Correct style issues.
1761 2011-03-11 Yao Qi <yao@codesourcery.com>
1763 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1765 2011-03-11 Andreas Schwab <schwab@redhat.com>
1767 * common/aclocal.m4: Remove.
1769 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1771 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1772 (xtensa_write_register, xtensa_read_register): Likewise.
1773 (xtensa_hextochar): Removed.
1774 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1776 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1778 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1779 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1780 (xtensa_alloc_frame_cache): Add initialization for new fields.
1781 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1782 (warning_once): New function.
1783 (xtensa_insn_kind): New item c0opc_and.
1784 (call0_classify_opcode): Add the case for AND instruction.
1785 (call0_track_op): Change arguments. New local variable litbase.
1786 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1787 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1789 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1790 (call0_analyze_prologue): Update the comments. Change arguments.
1791 Add the variety of updates to handle extended prologues, which now can
1792 conduct dynamic stack adjustments.
1793 (call0_frame_cache): Likewise.
1794 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1795 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1797 2011-03-10 Michael Snyder <msnyder@vmware.com>
1799 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1800 (cmd_qtframe): Ditto.
1801 (cmd_qtbuffer): Ditto.
1802 (cmd_bigqtbuffer): Ditto.
1804 2011-03-10 Tom Tromey <tromey@redhat.com>
1806 * tracepoint.c (trace_actions_command): Update.
1807 * thread.c (thread_apply_command): Update.
1808 * reverse.c (delete_bookmark_command): Update.
1809 (bookmarks_info): Update.
1810 * printcmd.c (undisplay_command): Update.
1811 * memattr.c (mem_enable_command): Update.
1812 (mem_disable_command): Update.
1813 (mem_delete_command): Update.
1814 * inferior.c (detach_inferior_command): Update.
1815 (kill_inferior_command): Update.
1816 (remove_inferior_command): Update.
1817 * cli/cli-utils.h (struct get_number_or_range_state): New.
1818 (init_number_or_range): Declare.
1819 (get_number_or_range): Update.
1820 * cli/cli-utils.c (init_number_or_range): New function.
1821 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1823 (number_is_in_list): Update.
1824 * breakpoint.h (get_tracepoint_by_number): Update.
1825 * breakpoint.c (map_breakpoint_numbers): Update for change to
1826 get_number_or_range.
1827 (find_location_by_number): Use get_number, not
1828 get_number_or_range.
1829 (trace_pass_set_count): New function.
1830 (trace_pass_command): Update for change to get_number_or_range.
1832 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1835 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1837 * python/py-param.c (add_setshow_generic): Add set/show callback
1838 parameters. Register Python object context.
1839 (get_show_value): New function.
1840 (get_set_value): New function.
1841 (call_doc_function): New function.
1842 (get_doc_string): Move behind get_show_value/get_set_value.
1844 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1846 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1848 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1850 * xtensa-tdep.c (xtensa_read_register): Add comment.
1851 (xtensa_write_register): Likewise.
1852 (xtensa_hextochar): Add comment and update to match coding conventions.
1853 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1854 (execute_l32e, execute_s32e, execute_code): Update comments.
1855 (xtensa_exception_handler_t): Update to match coding conventions.
1856 (xtensa_insn_kind): Likewise.
1858 2011-03-09 Michael Snyder <msnyder@vmware.com>
1860 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1862 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1864 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1866 2011-03-09 Tom Tromey <tromey@redhat.com>
1868 * thread.c (restore_selected_frame): Handle frame_level == -1.
1869 (make_cleanup_restore_current_thread): Use
1870 get_selected_frame_if_set.
1871 * frame.h (get_selected_frame_if_set): Declare.
1872 * frame.c (get_selected_frame_if_set): New function.
1874 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1876 * cli/cli-cmds.c (shell_escape): Use lbasename.
1877 * coffread.c (coff_start_symtab): Constify parameter.
1878 (complete_symtab): Constify `name' parameter.
1879 (coff_symtab_read): Constify `filestring' local.
1880 (coff_getfilename): Constify return and `result' local.
1882 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1883 * linux-fork.c (info_checkpoints_command): Use lbasename.
1884 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1885 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1886 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1887 * procfs.c (procfs_make_note_section): Use lbasename.
1888 * tui/tui-io.c (printable_part): Constity return and parameter.
1890 (print_filename): Constify parameters, and local `s'.
1891 (tui_rl_display_match_list): Constify local `temp'.
1893 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1896 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1897 Fix DWARF-3+ DW_AT_accessibility default assumption.
1898 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1899 cu->header.version >= 3.
1901 2011-03-09 Yao Qi <yao@codesourcery.com>
1903 * common/Makefile.in: Remove.
1904 * common/configure: Remove.
1905 * common/configure.ac: Remove.
1907 2011-03-09 Yao Qi <yao@codesourcery.com>
1910 2011-02-11 Yao Qi <yao@codesourcery.com>
1912 * common/Makefile.in: Add copyright header.
1914 2011-02-11 Yao Qi <yao@codesourcery.com>
1916 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1918 * configure.ac: Add common to sub dir.
1919 * configure: Regenerate.
1921 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1923 * xtensa-tdep.c (call0_ret): New function.
1924 (xtensa_skip_prologue): Speed up analysis.
1926 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1928 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1929 while executing MI command -data-list-changed-registers.
1931 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1933 * xtensa-tdep.c (xtensa_read_register): New function.
1934 (xtensa_write_register): New function.
1935 (xtensa_find_register_by_name): New function.
1936 (xtensa_windowed_frame_cache): Update comments in type description.
1937 (xtensa_frame_cache): Likewise.
1938 (xtensa_window_interrupt_insn): New function.
1939 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1940 (xtensa_insn_kind): Add new instructions.
1941 (rwx_special_register): New function.
1942 (call0_classify_opcode): Add new instructions to the analysis.
1943 (a0_saved, a7_saved, a11_saved): New variables.
1944 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1945 (execute_l32e): New function.
1946 (execute_s32e): New function.
1947 (xtensa_exception_handler_t): New type.
1948 (execute_code): New function.
1949 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1950 analysis for Xtensa Window Exception handlers.
1952 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1954 * xtensa-tdep.c (TX_PS): New.
1955 (windowing_enabled): Update to count for Call0 ABI.
1956 (xtensa_hextochar): New.
1957 (xtensa_init_reggroups): Make algorithm generic.
1958 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1960 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1962 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1964 2011-03-08 Michael Snyder <msnyder@vmware.com>
1966 * i386-tdep.c (i386_follow_jump): Check return value of
1968 (i386_analyze_struct_return): Ditto.
1969 (i386_skip_probe): Ditto.
1970 (i386_match_insn): Ditto.
1971 (i386_skip_noop): Ditto.
1972 (i386_analyze_frame_setup): Ditto.
1973 (i386_analyze_register_saves): Ditto.
1974 (i386_skip_prologue): Ditto.
1975 (i386_skip_main_prologue): Ditto.
1977 * target.c (read_whatever_is_readable): Fix memory leak.
1979 * i386-tdep.c (i386_process_record): Document fall through.
1981 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 Fix DWARF-3+ DW_AT_accessibility default assumption.
1984 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1985 cu->header.version >= 3.
1987 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1989 * remote.c (remote_check_symbols): Skip if the target has no
1992 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1994 * target.c (read_whatever_is_readable): Reformat comment,
1995 with a minor typo fix. Minor reformatting of the code.
1997 2011-03-08 Yao Qi <yao@codesourcery.com>
1999 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2000 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2001 Use cached result instead of calling displaced_in_arm_mode again.
2002 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2003 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2004 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2005 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2006 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2007 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2008 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2009 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2010 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2011 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2012 (arm_catch_kernel_helper_return): Likewise.
2013 * gdb/arm-tdep.h : Update function declarations.
2015 2011-03-07 Michael Snyder <msnyder@vmware.com>
2017 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2019 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2021 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2023 * elfread.c (elf_symtab_read): Stop memory leak.
2025 * main.c (captured_main): Fix memory leak.
2027 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2029 * ada-lang.c (compare_names): Call is_name_suffix with string1
2032 2011-03-07 Tom Tromey <tromey@redhat.com>
2034 * xcoffread.c (xcoff_sym_fns): Update.
2035 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2036 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2037 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2038 (symbol_file_add_with_addrs_or_offsets): Likewise.
2039 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2040 * somread.c (som_sym_fns): Update.
2041 * psymtab.h (require_partial_symbols): Declare.
2042 * psymtab.c (require_partial_symbols): New function.
2043 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2044 (ALL_OBJFILE_PSYMTABS): Undef.
2045 (ALL_PSYMTABS): Move from psympriv.h.
2046 (lookup_partial_symtab, find_pc_sect_psymtab)
2047 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2048 (find_last_source_symtab_from_partial)
2049 (forget_cached_source_info_partial)
2050 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2051 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2052 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2053 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2054 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2055 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2056 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2057 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2058 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2060 * mipsread.c (ecoff_sym_fns): Update.
2061 * machoread.c (macho_sym_fns): Update.
2062 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2063 (read_psyms): New function.
2064 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2065 (elf_sym_fns_lazy_psyms): New global.
2066 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2067 dwarf2_build_psymtabs.
2068 * dbxread.c (aout_sym_fns): Update.
2069 * coffread.c (coff_sym_fns): Update.
2071 2011-03-07 Tom Tromey <tromey@redhat.com>
2073 * infrun.c (print_exited_reason): Include inferior id and pid in
2076 2011-03-07 Tom Tromey <tromey@redhat.com>
2078 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2080 (target_has_execution_1): Update.
2081 (target_has_execution_current): Declare.
2082 (target_has_execution): Call target_has_execution_current.
2083 (default_child_has_execution): Update.
2084 * target.c (default_child_has_execution): Add 'the_ptid'
2086 (target_has_execution_1): Likewise.
2087 (target_has_execution_current): New function.
2088 (add_target): Update.
2089 (init_dummy_target): Update.
2090 * remote-m32r-sdi.c (m32r_has_execution): New function.
2091 (init_m32r_ops): Use it.
2092 * record.c (record_core_has_execution): Now static. Add
2093 'the_ptid' parameter.
2094 * inferior.c (have_live_inferiors): Don't save current thread.
2095 Use target_has_execution_1.
2097 2011-03-07 Yao Qi <yao@codesourcery.com>
2099 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2101 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2103 * elfread.c (elf_symtab_read): Minor reformatting.
2105 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2107 * objc-lang.c (selectors_info): Minor reformatting.
2109 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2111 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2113 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2114 Michael Snyder <msnyder@vmware.com>
2116 * ada-valprint.c (ada_val_print_array): Move the declaration of
2117 "byte_order" and "elttype" inside the block where these variables
2118 are actually used. Remove some special handling for the case
2119 where "elttype" and "eltlen" are null. Replace by a comment
2120 and a couple of assertion checks.
2122 2011-03-05 Michael Snyder <msnyder@vmware.com>
2124 * source.c (add_path): Replace semicolon at end of block.
2125 * dwarf2expr.c (execute_stack_op): Ditto.
2127 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2129 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2130 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2131 (bfin-*-*): Likewise.
2133 2011-03-05 Michael Snyder <msnyder@vmware.com>
2135 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2136 * mdebugread.c (parse_symbol): Ditto.
2137 * parse.c (parse_exp_in_context): Ditto.
2138 * source.c (add_path): Ditto.
2139 * utils.c (gnu_debuglink_crc32): Ditto.
2140 * varobj.c (variable_language): Ditto.
2142 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2144 2011-03-04 Michael Snyder <msnyder@vmware.com>
2146 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2148 * symfile.c (simple_overlay_update): Check for null return value
2149 from lookup_minimal_symbol.
2151 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2153 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2155 * eval.c (parse_and_eval_address_1): Remove function.
2156 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2157 instead of parse_and_eval_address_1.
2158 * value.h (parse_and_eval_address_1): Remove prototype.
2160 2011-03-04 Michael Snyder <msnyder@vmware.com>
2162 * remote.c (putpkt_binary): Document that case stmt falls through.
2164 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2166 * breakpointc (print_it_typical): Move NULL check from here...
2167 (print_bp_stop_message): ... to here.
2169 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2171 * breakpoint.c (enable_command): Use break instead of continue,
2172 and fill in a missing break.
2173 (disable_command): Ditto.
2175 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2177 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2178 (terminal_save_ours): Remove misleading comment.
2179 (inflow_inferior_data_cleanup): Free ttystate.
2180 (inflow_inferior_exit): Likewise.
2181 (copy_terminal_info): Copy ttystate.
2183 * serial.c (serial_copy_tty_state): New function.
2184 * serial.h (serial_copy_tty_state): Add prototype.
2185 (struct serial_ops): Add copy_tty_state callback.
2186 * ser-base.c (ser_base_copy_tty_state): New function.
2187 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2188 * ser-go32.c (dos_copy_tty_state): New function.
2189 (dos_ops): Install copy_tty_state callback.
2190 * ser-mingw.c (_initialize_ser_windows): Likewise.
2191 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2192 * ser-unix.c (hardwire_copy_tty_state): New function.
2193 (_initialize_ser_hardwire): Install it.
2195 2011-03-04 Michael Snyder <msnyder@vmware.com>
2197 * breakpoint.c (create_breakpoint): Add missing break statement.
2199 Reverting this patch:
2200 * infcall.c (call_function_by_hand): Add break statements for lint.
2202 Reverting this patch:
2203 * cli/cli-script.c (script_from_file): Add break for lint.
2205 2011-03-04 Michael Snyder <msnyder@vmware.com>
2207 * solib.c (reload_shared_libraries_1): Close memory leak.
2209 2011-03-03 Tom Tromey <tromey@redhat.com>
2212 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2215 2011-03-03 Michael Snyder <msnyder@vmware.com>
2217 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2218 fields of struct 'st' to zero.
2220 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2221 sal.pspace before calling set_current_source_symtab_and_line.
2223 2011-03-03 Yao Qi <yao@codesourcery.com>
2225 * Makefile.in (configure-common): Remove. Let Makefile
2226 in dir common to rebuild itself.
2227 (common/Makefile): Likewise.
2229 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2231 * utils.c (parse_escape): Add i18n markup in error message.
2233 2011-03-03 Yao Qi <yao@codesourcery.com>
2235 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2237 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2238 (displaced_write_reg, displaced_read_reg): Likewise.
2239 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2240 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2241 (cleanup_branch): Replace magic number 14 and 15 with
2242 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2244 2011-03-02 Michael Snyder <msnyder@vmware.com>
2246 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2248 * cli/cli-script.c (script_from_file): Add break for lint.
2250 * mdebugread.c (parse_partial_symbols): Fix indent.
2252 * target-descriptions.c (tdesc_gdb_type): No need to call
2253 xstrdup, callee saves a copy.
2255 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2257 * infcall.c (call_function_by_hand): Add break statements for lint.
2259 * utils.c (parse_escape): Escape the escape char.
2261 * python/py-inferior.c (build_inferior_list): Error out if
2262 PyList_Append fails.
2263 (gdbpy_inferiors): Error out if build_inferior_list fails.
2265 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2268 * record.c (record_restore): Move printf to before error return.
2270 2011-03-02 Yao Qi <yao@codesourcery.com>
2272 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2273 is_thumb and insn_size.
2274 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2275 on both ARM and Thumb mode.
2276 (arm_process_displaced_insn): Set is_thumb and insn_size.
2277 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2278 (arm_displaced_step_fixup): Likewise.
2280 2011-03-01 Michael Snyder <msnyder@vmware.com>
2282 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2284 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2286 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2288 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2290 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2293 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2294 which shadows function parameter.
2296 * tracepoint.c (create_tsv_from_upload): Superfluous call
2297 to xstrdup. Callee already calls xstrdup.
2299 * linespec.c (decode_line_1): Remove unnecessary null check.
2301 * tracepoint.c (scope_info): Fix mem leak, remove underused
2304 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2305 superfluous null check.
2307 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2308 (value_of_builtin_frame_fp_reg): Ditto.
2310 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2312 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2315 * linespec.c (decode_line_1): Check for null before dereference.
2317 * reverse.c (record_restore): Move null-check to before pointer
2320 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2322 * objc-lang.c (selectors_info): Add explanitory comment.
2323 (classes_info): Ditto.
2325 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2327 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2328 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2329 versions of the trampoline. Handle Thumb vs. ARM addresses.
2330 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2331 (arm_linux_init_abi): Install it.
2332 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2333 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2335 2011-02-28 Michael Snyder <msnyder@vmware.com>
2337 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2338 a little bigger, to avoid possibility of an overflow.
2340 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2341 buffers a little bigger, to avoid possibility of an overflow.
2343 * coffread.c (coff_getfilename): Add check to avoid overflow.
2345 * objc-lang.c (selectors_info): Add a small safety margin to
2347 (classes_info): Error out on too long REGEXP.
2349 * infrun.c (handle_inferior_event): Remove unused function call.
2351 * fork-child.c (fork_inferior): Remove ifdef'd code and
2354 * linux-thread-db.c (attach_thread): Discard unused value.
2356 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2358 * remote.c (remote_get_noisy_reply): Discard unused value.
2359 (remote_vcont_resume): Ditto.
2360 (remote_stop_ns): Ditto.
2362 * linespec.c (decode_objc): Delete unused variable.
2364 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2366 * dwarf2read.c (add_partial_symbol): Discard unused values.
2367 (read_base_type): Delete unused variable.
2369 * dbxread.c (read_dbx_symtab): Discard unused value.
2371 * eval.c (evaluate_subexp_standard): Delete unused variable,
2372 and discard unused values.
2374 * infcmd.c (_initialize_infcmd): Discard unused values.
2376 * stabsread.c (rs6000_builtin_type): Missing break statement.
2378 * dbxread.c (process_one_symbol): Discard unused value.
2380 * coffread.c (coff_end_symtab): Delete unused variable.
2382 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2383 (dwarf2_add_typedef): Delete unused variable.
2384 (read_namespace): Ditto.
2385 (dwarf_decode_macros): Ditto.
2387 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2389 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2391 * p-valprint.c (pascal_val_print): Discard unused value.
2393 * utils.c (nquery): Call va_end before return;
2397 * proc-service.c (ps_plog): Call va_end before return.
2399 2011-02-28 Tom Tromey <tromey@redhat.com>
2401 * python/python.c (gdbpy_value_cst): New global.
2402 (_initialize_python): Initialize it.
2403 * python/python-internal.h (gdbpy_value_cst): Declare.
2404 * python/py-value.c (convert_value_from_python): Use
2407 2011-02-28 Michael Snyder <msnyder@vmware.com>
2409 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2411 * breakpoint.c (catch_syscall_completer): Free malloced list.
2413 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2415 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2416 (lval_func_check_synthetic_pointer): Ditto.
2417 (lval_func_free_closure): Fix use-after-free.
2419 2011-02-28 Tom Tromey <tromey@redhat.com>
2421 * psymtab.c (expand_partial_symbol_tables): Use
2422 ALL_OBJFILE_PSYMTABS.
2424 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2426 * objc-lang.c (selectors_info): Error on too long REGEXP.
2428 2011-02-28 Michael Snyder <msnyder@vmware.com>
2430 * python/py-param.c (set_parameter_value): Add missing
2433 * linux-record.c (record_linux_system_call): Add missing
2436 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2438 * breakpoint.c (print_one_breakpoint_location): Remove unused
2439 argument PRINT_ADDRESS_BITS. Update callers.
2440 (print_one_breakpoint): Likewise.
2442 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2444 * breakpoint.c (wrap_indent_at_field): New function.
2445 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2446 Allocate ui_stream locally instead of using STB argument.
2447 (print_one_breakpoint_location): Update call.
2448 * ui-out.c (ui_out_query_field): New function.
2449 * ui-out.h (ui_out_query_field): Add prototype.
2451 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2453 From Michael Snyder <msnyder@vmware.com>
2454 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2456 2011-02-27 Michael Snyder <msnyder@vmware.com>
2458 * objc-lang.c (selectors_info): Prevent string overrun.
2460 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2463 * symtab.c (rbreak_command): Move variable 'file_name' to
2466 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2467 param with a local variable of the same name.
2469 2011-02-27 Michael Snyder <msnyder@vmware.com>
2471 * value.c (value_from_history_ref): New function.
2472 * value.h (value_from_history_ref): Export.
2473 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2474 to parse value history references.
2475 * cli/cli-utils.h (get_number_trailer): Update comment.
2477 2011-02-27 Michael Snyder <msnyder@vmware.com>
2479 * inferior.c (detach_inferior_command): Use get_number_or_range.
2480 (kill_inferior_command): Ditto.
2481 (remove_inferior_command): Ditto.
2482 (initialize_inferiors): Make command names plural.
2483 Update help strings.
2485 2011-02-27 Michael Snyder <msnyder@vmware.com>
2487 * darwin-nat-info.c: Fix comment typo.
2488 * dwarf2expr.h: Ditto.
2489 * fbsd-nat.c: Ditto.
2490 * fbsd-nat.h: Ditto.
2491 * frame-unwind.h: Ditto.
2493 * hppa-hpux-tdep.c: Ditto.
2494 * i386-linux-nat.c: Ditto.
2495 * linux-nat.c: Ditto.
2496 * nbsd-nat.c: Ditto.
2497 * nbsd-nat.h: Ditto.
2498 * ppc-linux-tdep.c: Ditto.
2501 * tui/tui-winsource.c: Ditto.
2503 2011-02-26 Michael Snyder <msnyder@vmware.com>
2505 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2507 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2509 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2510 with a local variable of the same name.
2512 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2513 param with a local variable of the same name.
2514 (i387_supply_xsave): Ditto.
2516 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2517 that it does not shadow a function parameter.
2519 * i386-nat.c (i386_length_and_rw_bits): Document that case
2520 statement is meant to fall through.
2522 * expprint.c (dump_subexp_body_standard): Document that case
2523 statement is meant to fall through.
2525 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2526 dead if statement. Condition can't be false.
2528 2011-02-25 Michael Snyder <msnyder@vmware.com>
2530 * arm-tdep.c: Fix typos in comments.
2531 * bsd-uthread.c: Ditto.
2532 * completer.c: Ditto.
2534 * cp-namespace.c: Ditto.
2535 * cp-support.c: Ditto.
2536 * cris-tdep.c: Ditto.
2538 * dwarf2read.c: Ditto.
2540 * gdbtypes.h: Ditto.
2541 * inferior.h: Ditto.
2542 * mdebugread.c: Ditto.
2543 * mips-tdep.c: Ditto.
2544 * ppc-linux-nat.c: Ditto.
2545 * ppc-linux-tdep.c: Ditto.
2546 * printcmd.c: Ditto.
2547 * sol-thread.c: Ditto.
2548 * solib-frv.c: Ditto.
2550 * sparc64-tdep.c: Ditto.
2551 * spu-tdep.c: Ditto.
2552 * stabsread.c: Ditto.
2557 * python/py-block.c: Ditto.
2558 * python/py-symbol.c: Ditto.
2559 * python/py-symtab.c: Ditto.
2560 * python/py-value.c: Ditto.
2561 * tui/tui-win.c: Ditto.
2563 2011-02-25 Michael Snyder <msnyder@vmware.com>
2565 * inferior.c (print_inferior): Accept a string instead of an int
2566 for requested_inferiors, and use get_number_or_range to parse it.
2567 (info_inferiors_command): Pass args string to print_inferior.
2568 (initialize_inferiors): Change help string for info inferiors.
2569 * inferior.h (print_inferior): Export prototype change.
2571 2011-02-25 Tom Tromey <tromey@redhat.com>
2573 * common/ax.def (invalid2): Set to 0x31.
2575 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2577 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2579 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2581 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2583 2011-02-24 Michael Snyder <msnyder@vmware.com>
2585 * Makefile.in (clean): Make clean should remove generated files
2586 observer.h and observer.inc.
2588 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2590 Revert the following patch (not approved yet):
2591 2011-02-21 Hui Zhu <teawater@gmail.com>
2592 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2593 * ax-gdb.c (gen_printf_expr_callback): New function.
2594 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2595 * ax-general.c (ax_memcpy): New function.
2596 (ax_print): Handle "printf".
2598 * ax.h (ax_memcpy): Forward declare.
2599 * common/ax.def (invalid2): Removed.
2600 (printf): New entry.
2601 * printcmd.c (printcmd.h): New include.
2602 (string_printf): New function.
2603 (ui_printf): Removed.
2604 (printf_command): Remove static. Call string_printf.
2605 (eval_command): Call string_printf.
2606 * printcmd.h: New file.
2607 * tracepoint.c (validate_actionline,
2608 encode_actions_1): handle printf_command.
2610 2011-02-23 Tom Tromey <tromey@redhat.com>
2612 * ax-general.c (ax_pick): Add missing newline.
2614 2011-02-23 Michael Snyder <msnyder@vmware.com>
2616 * breakpoint.c (breakpoint_1): Change first argument from an int
2617 to a char pointer, so that the function now accepts a list of
2618 breakpoints rather than just one. Use new function
2619 'number_is_in_list' to implement.
2620 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2621 (watchpoints_info): Ditto.
2622 (tracepoints_info): Ditto.
2623 (maintenance_info_breakpoints): Ditto.
2624 (_initialize_breakpoint): Update help strings to reflect the fact
2625 that these functions can now take more than one argument.
2626 * cli/cli-utils.c (number_is_in_list): New function.
2627 * cli/cli-utils.h (number_is_in_list): Export.
2629 2011-02-23 Michael Snyder <msnyder@vmware.com>
2631 * memattr.c (mem_enable_command): Use get_number_or_range.
2632 (mem_disable_command): Ditto.
2633 (mem_delete_command): Ditto.
2634 (_initialize_mem): Tweak usage message to reflect multiple
2637 2011-02-22 Doug Evans <dje@google.com>
2639 Add gdb.lookup_global_symbol python function.
2641 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2642 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2643 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2645 2011-02-22 Tom Tromey <tromey@redhat.com>
2647 * language.c (language_class_name_from_physname): Rename
2648 'curr_language' argument to 'lang'; use in body.
2650 2011-02-22 Michael Snyder <msnyder@vmware.com>
2652 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2654 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2656 * frame-unwind.h: Fix comment to mention the this frame, not the
2659 2011-02-22 Tom Tromey <tromey@redhat.com>
2661 * symfile.c (auto_solib_limit): Remove.
2662 * symfile.h (auto_solib_limit): Remove.
2664 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2666 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2668 2011-02-21 Michael Snyder <msnyder@vmware.com>
2670 * gdbthread.h (print_thread_info): Change prototype.
2671 * thread.c (print_thread_info): Accept char* instead of int for
2672 requested_threads argument. Use new function number_is_in_list
2673 to determine which threads to list.
2674 (info_threads_command): Pass char* to print_thread_info.
2675 * cli/cli-utils.c (number_is_in_list): New function.
2676 * cli/cli-utils.h (number_is_in_list): Export.
2677 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2679 (print_one_inferior): Ditto.
2680 (mi_cmd_list_thread_groups): Ditto.
2682 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2684 * common/Makefile.in (CFLAGS): New.
2685 (COMPILE): Add $(CFLAGS).
2687 2011-02-21 Tom Tromey <tromey@redhat.com>
2689 * breakpoint.c (catch_syscall_command_1): Fix typo.
2691 2011-02-21 Tom Tromey <tromey@redhat.com>
2693 * reverse.c: Include cli-utils.h.
2694 * printcmd.c: Include cli-utils.h.
2695 (string_printf): Use skip_spaces.
2696 * cli/cli-utils.h: New file.
2697 * cli/cli-utils.c: New file.
2698 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2699 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2700 * breakpoint.h (get_number, get_number_or_range): Move to
2702 * breakpoint.c: Include cli-utils.h.
2703 (get_number_trailer, get_number, get_number_or_range)
2704 (ep_skip_leading_whitespace): Move to cli-utils.c.
2705 (create_breakpoint_sal, find_condition_and_thread)
2706 (decode_static_tracepoint_spec, watch_command_1)
2707 (watch_maybe_just_location, ep_parse_optional_if_clause)
2708 (catch_fork_command_1, catch_exec_command_1)
2709 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2710 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2711 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2712 (HFILES_NO_SRCDIR): Add cli-utils.h.
2713 (cli-utils.o): New target.
2715 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2717 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2718 before calling discard_all_inferiors.
2720 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2722 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2723 (struct builtin_opencl_type): Remove.
2724 (builtin_opencl_type): Change return type to "struct type **".
2725 (lookup_opencl_vector_type): Update caller.
2726 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2727 (build_opencl_types): Install plain array of "struct type *"
2728 instead of "struct builtin_opencl_type".
2730 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2731 Ulrich Weigand <uweigand@de.ibm.com>
2733 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2734 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2735 (struct arm_linux_hwbp_cap): New type.
2736 (arm_linux_get_hwbp_cap): New function.
2737 (arm_linux_get_hw_breakpoint_count): Likewise.
2738 (arm_linux_get_hw_watchpoint_count): Likewise.
2739 (arm_linux_can_use_hw_breakpoint): Likewise.
2740 (arm_hwbp_type): New type.
2741 (arm_hwbp_control_t): Likewise.
2742 (struct arm_linux_hw_breakpoint): Likewise.
2743 (struct arm_linux_thread_points): Likewise.
2744 (arm_threads): New global variable.
2745 (arm_linux_find_breakpoints_by_tid): New function.
2746 (arm_hwbp_control_initialize): Likewise.
2747 (arm_hwbp_control_is_enabled): Likewise.
2748 (arm_hwbp_control_disable): Likewise.
2749 (arm_linux_hw_breakpoint_initialize): Likewise.
2750 (arm_linux_get_hwbp_type): Likewise.
2751 (arm_linux_hw_watchpoint_initialize): Likewise.
2752 (arm_linux_hw_breakpoint_equal): Likewise.
2753 (arm_linux_insert_hw_breakpoint1): Likewise.
2754 (arm_linux_remove_hw_breakpoint1): Likewise.
2755 (arm_linux_insert_hw_breakpoint): Likewise.
2756 (arm_linux_remove_hw_breakpoint): Likewise.
2757 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2758 (arm_linux_insert_watchpoint): Likewise.
2759 (arm_linux_remove_watchpoint): Likewise.
2760 (arm_linux_stopped_data_address): Likewise.
2761 (arm_linux_stopped_by_watchpoint): Likewise.
2762 (arm_linux_watchpoint_addr_within_range): Likewise.
2763 (arm_linux_new_thread): Likewise.
2764 (arm_linux_thread_exit): Likewise.
2765 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2766 related target callbacks. Register arm_linux_new_thread and
2767 arm_linux_thread_exit.
2768 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2769 * arm-tdep.c (arm_pc_is_thumb): Make global.
2770 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2772 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2774 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2775 per-frame locations while within a function epilogue.
2777 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2779 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2780 to GNU coding standards.
2782 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2784 Allow use of mingw native on Windows 95 OS.
2785 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2786 (ser_windows_close): Only call CancelIo if function exists.
2787 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2788 to check for existence of CancelIo function in kernel32 DLL.
2790 2011-02-21 Hui Zhu <teawater@gmail.com>
2792 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2793 * ax-gdb.c (gen_printf_expr_callback): New function.
2794 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2795 * ax-general.c (ax_memcpy): New function.
2796 (ax_print): Handle "printf".
2798 * ax.h (ax_memcpy): Forward declare.
2799 * common/ax.def (invalid2): Removed.
2800 (printf): New entry.
2801 * printcmd.c (printcmd.h): New include.
2802 (string_printf): New function.
2803 (ui_printf): Removed.
2804 (printf_command): Remove static. Call string_printf.
2805 (eval_command): Call string_printf.
2806 * printcmd.h: New file.
2807 * tracepoint.c (validate_actionline,
2808 encode_actions_1): handle printf_command.
2810 2011-02-19 Michael Snyder <msnyder@vmware.com>
2812 * reverse.c (delete_one_bookmark): Argument is now bookmark
2813 id rather than pointer to bookmark struct.
2814 (delete_bookmark_command): Use get_number_or_range.
2815 (goto_bookmark_command): Parse with get_number instead of strtoul.
2816 (bookmark_1): New function. Print info for one bookmark.
2817 (bookmarks_info): Use get_number_or_range and bookmark_1.
2819 2011-02-18 Michael Snyder <msnyder@vmware.com>
2821 * thread.c (info_threads_command): Re-implement using
2822 get_number_or_range.
2823 (thread_apply_command): Ditto.
2825 2011-02-18 Tom Tromey <tromey@redhat.com>
2827 * common/ax.def: New file.
2828 * ax.h (enum agent_op): Use ax.def.
2829 * ax-general.c (aop_map): Use ax.def.
2831 2011-02-18 Tom Tromey <tromey@redhat.com>
2833 * ax-general.c (aop_map): Add pick and rot.
2834 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2835 <DW_OP_rot>: Implement.
2836 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2838 * ax-general.c (ax_pick): New function.
2840 2011-02-18 Tom Tromey <tromey@redhat.com>
2842 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2844 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2845 Tom Tromey <tromey@redhat.com>
2847 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2848 make_symbol_overload_list_block with NULL BLOCK.
2849 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2851 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2853 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2854 * breakpoint.h (get_number_or_range): Declare.
2855 * printcmd.c (ALL_DISPLAYS): Declare.
2856 (delete_display): Reimplement taking a display pointer.
2857 (undisplay_command): Accept a range of displays to delete, using
2858 get_number_or_range.
2860 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2862 * c-valprint.c (c_val_print): Add embedded_offset to address
2863 for arrays of unspecified length.
2864 * p-valprint.c (pascal_val_print): Likewise.
2866 2011-02-18 Yao Qi <yao@codesourcery.com>
2868 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2869 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2870 (thumb_process_displaced_insn): New.
2871 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2872 call to arm_process_displaced_insn.
2873 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2875 2011-02-17 Tom Tromey <tromey@redhat.com>
2877 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2878 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2879 compile_dwarf_to_ax. No longer static. Call
2880 dwarf2_compile_cfa_to_ax.
2881 (locexpr_tracepoint_var_ref): Update.
2882 (loclist_tracepoint_var_ref): Update.
2883 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2884 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2885 argument; add 'gdbarch' and 'pc'.
2886 (dwarf2_compile_cfa_to_ax): New function.
2887 (dwarf2_frame_cache): Update.
2889 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2891 * ada-lang.c (ada_type_of_array): Fix the size of the array
2892 in the case of an unconstrained packed array.
2894 2011-02-17 Yao Qi <yao@codesourcery.com>
2896 * common/Makefile.in: Add more targets for make.
2898 2011-02-16 Tom Tromey <tromey@redhat.com>
2900 * dwarf2loc.c (unimplemented): Fix typo.
2902 2011-02-16 Tom Tromey <tromey@redhat.com>
2904 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2905 (compile_dwarf_to_ax) <default>: Use unimplemented.
2906 <DW_OP_deref>: Update.
2907 (disassemble_dwarf_expression): Update.
2908 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2909 (decode_locdesc): Update.
2910 * dwarf2expr.h (dwarf_stack_op_name): Update.
2912 2011-02-16 Tom Tromey <tromey@redhat.com>
2914 * ax.h (struct aop_map) <name>: Now const.
2916 2011-02-16 Tom Tromey <tromey@redhat.com>
2918 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2921 2011-02-16 Yao Qi <yao@codesourcery.com>
2923 * infrun.c (get_displaced_step_closure_by_addr): New.
2924 * inferior.h: Declare it.
2925 * arm-tdep.c: (arm_pc_is_thumb): Call
2926 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2929 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2930 Jan Kratochvil <jan.kratochvil@redhat.com>
2933 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2935 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2936 Jan Kratochvil <jan.kratochvil@redhat.com>
2938 * value.c (value_contents_copy_raw): Extend describing comment.
2939 Assert that the destination contents we're overwriting are wholly
2941 (value_contents_copy): Extend describing comment.
2943 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2944 Jan Kratochvil <jan.kratochvil@redhat.com>
2946 * value.c (value_available_contents_eq): Remove redundant local
2947 variables. Fix available contents comparision.
2948 * value.h (value_available_contents_eq): Extend describing
2951 2011-02-16 Yao Qi <yao@codesourcery.com>
2953 * thread.c (info_threads_command): Add missing i18n markup and remove
2956 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2958 * breakpoint.c (longjmp_names): New variable.
2959 (struct breakpoint_objfile_data): New type.
2960 (breakpoint_objfile_key): New variable.
2961 (msym_not_found): New variable.
2962 (msym_not_found_p): New predicate.
2963 (get_breakpoint_objfile_data): New function.
2964 (create_overlay_event_breakpoint): Check per-objfile cache for
2966 (create_longjmp_master_breakpoint): Likewise.
2967 (create_std_terminate_master_breakpoint): Likewise.
2968 (create_exception_master_breakpoint): Likewise.
2969 (_initialize_breakpoint): Register per-objfile data key.
2971 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2973 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2975 (create_longjmp_master_breakpoint): Loop over longjmp names.
2976 (create_std_terminate_master_breakpoint): Const-propagate parameter
2978 (update_breakpoints_after_exec): Adjust.
2979 (breakpoint_re_set): Adjust.
2981 2011-02-15 Michael Snyder <msnyder@vmware.com>
2983 * thread.c (info_threads_command): Process arg as thread id,
2984 or list of thread ids.
2985 (thread_find_command): New command.
2986 (_initialize_thread): Document argument for info threads.
2987 Document 'thread find' command.
2988 * NEWS: Document new command "thread find".
2990 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2992 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2993 * aclocal.m4: Regenerated with aclocal-1.11.1.
2994 * common/configure: Regenerate with autoconf-2.64.
2996 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2998 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2999 bool data type to a size of one byte.
3001 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3002 Jan Kratochvil <jan.kratochvil@redhat.com>
3004 * target.c (memory_xfer_live_readonly_partial): Document where to
3005 look for interface description.
3007 2011-02-15 Yao Qi <yao@codesourcery.com>
3010 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3011 order to store PC value on stack instead of text section.
3013 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3015 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3016 the EFP register set size.
3017 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3018 data from the VMX register.
3019 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3020 and write data from/to the VMX register.
3022 2011-02-14 Michael Snyder <msnyder@vmware.com>
3024 * command.h (enum command_class): New class 'no_set_class', for
3025 "show" commands without a corresponding "set" command.
3026 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3027 * copying.c (_initialize_copying): Ditto for "show copying" and
3029 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3031 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3032 which there is no corresponding "set" command (eg. "show copying").
3034 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3035 Jan Kratochvil <jan.kratochvil@redhat.com>
3037 * exec.c (section_table_available_memory): Change `len' parameter
3039 * exec.h (section_table_available_memory): Ditto.
3040 * value.h (read_value_memory): Rename the `offset' parameter to
3043 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3044 Jan Kratochvil <jan.kratochvil@redhat.com>
3046 * memrange.c (compare_mem_ranges): Mention sort order in
3048 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3049 * tracepoint.c (traceframe_available_memory): Extend comment to
3050 mention what happens to RESULT when the target does not support
3053 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3054 Jan Kratochvil <jan.kratochvil@redhat.com>
3056 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3059 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3061 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3062 No longer handle NULL values.
3064 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3066 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3067 * value.c: Include "exceptions.h".
3068 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3070 * cp-abi.c: Include gdb_assert.h.
3071 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3072 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3074 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3075 parameters. No longer returns -1 on error.
3076 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3078 * cp-valprint.c: Include exceptions.h.
3079 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3080 the baseclass_offset. Handle unavailable base classes. Use
3081 val_print_invalid_address.
3082 * p-valprint.c: Include exceptions.h.
3083 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3084 when fetching the baseclass_offset. No longer expect
3085 baseclass_offset returning -1. Handle unavailable base classes.
3086 Use val_print_invalid_address.
3087 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3088 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3089 `embedded_offset' and `val' parameters. Adjust.
3090 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3091 parameter, and change its type to gdb_byte pointer. Add
3092 `embedded_offset' and `val' parameters. Adjust. No longer expect
3093 baseclass_offset returning -1.
3094 (value_dynamic_cast): Use value_contents_for_printing rather than
3095 value_contents. Adjust.
3096 (search_struct_field): No longer expect baseclass_offset returning
3098 (search_struct_method): If reading memory from the target is
3099 necessary, wrap it in a new value to pass to baseclass_offset. No
3100 longer expect baseclass_offset returning -1.
3101 (find_method_list): No longer expect baseclass_offset returning
3102 -1. Use value_contents_for_printing rather than value_contents.
3103 * valprint.c (val_print_invalid_address): New function.
3104 * valprint.h (val_print_invalid_address): Declare.
3105 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3106 and `val' parameters. No longer expect baseclass_offset returning
3108 * gnu-v2-abi.c: Include "exceptions.h".
3109 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3110 parameters. Handle unavailable memory. Recurse through
3111 gnuv2_baseclass_offset directly, rather than through
3112 baseclass_offset. No longer returns -1 on not found, instead
3114 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3115 `val' parameters. Adjust.
3117 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3119 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3120 almost but not quite adjacent.
3122 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3124 * value.h (value_entirely_available): Declare.
3125 * value.c (value_entirely_available): New function.
3126 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3127 real type if the pointer is unavailable.
3129 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3131 * valops.c (value_repeat): Use read_value_memory instead of
3134 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3136 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3137 * value.c (value_contents_copy_raw, value_contents_copy): New
3139 (value_primitive_field): Use value_contents_copy_raw instead of
3141 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3143 (value_array, value_slice): Ditto.
3144 * valarith.c (value_subscripted_rvalue): Use
3145 value_contents_copy_raw instead of memcpy.
3147 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3149 <unavailable> references.
3151 * valops.c (get_value_at): Use value_from_contents_and_address,
3152 avoiding read_memory.
3154 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3156 * c-valprint.c (c_val_print): Print a string with unavailable
3157 contents as an array.
3159 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3161 * value.h (unpack_bits_as_long): Delete declaration.
3162 (unpack_value_bits_as_long): Declare.
3163 (unpack_value_field_as_long): Declare.
3164 (value_field_bitfield): Declare.
3165 * value.c (unpack_bits_as_long): Rename to...
3166 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3167 value parameters. Return the extracted result in a new output
3168 parameter. If the value contents are unavailable, return false,
3169 otherwise return true.
3170 (unpack_value_bits_as_long): New.
3171 (unpack_field_as_long): Rename to...
3172 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3173 Add embedded_offset and value parameters. Return the extracted
3174 result in a new output parameter. If the value contents are
3175 unavailable, return false, otherwise return true.
3176 (unpack_value_field_as_long): New.
3177 (unpack_field_as_long_1): New.
3178 (unpack_field_as_long): Reimplement as wrapper around
3179 unpack_value_field_as_long_1.
3180 (value_field_bitfield): New function.
3181 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3182 unpack_value_bits_as_long. Mark the value as unavailable, if it
3184 * jv-valprint.c (java_print_value_fields): Use
3185 value_field_bitfield.
3186 * p-valprint.c (pascal_object_print_value_fields): Use
3187 value_field_bitfield.
3188 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3190 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3192 * value.c (get_internalvar_integer): Also return the int value of
3193 TYPE_CODE_INT INTERNALVAR_VALUE values.
3194 (set_internalvar): Don't special case TYPE_CODE_INT.
3196 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3198 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3199 INTERNALVAR_POINTER.
3201 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3202 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3203 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3205 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3207 * value.h (value_available_contents_eq): Declare.
3208 * value.c (find_first_range_overlap): New function.
3209 (value_available_contents_eq): New function.
3210 * valprint.c (val_print_array_elements): Use
3211 value_available_contents_eq.
3212 * ada-valprint.c (val_print_packed_array_elements): Use
3213 value_available_contents_eq.
3214 * jv-valprint.c (java_value_print): Use
3215 value_available_contents_eq.
3217 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3219 * target.c (target_read_live_memory): New function.
3220 (memory_xfer_live_readonly_partial): New.
3221 (memory_xfer_partial): If reading from a traceframe, fallback to
3222 reading unavailable read-only memory from read-only regions of
3224 * tracepoint.c (disconnect_tracing): Adjust.
3225 (set_current_traceframe): New, factored out from
3226 set_traceframe_number.
3227 (set_traceframe_number): Reimplement to only change the traceframe
3228 number on the GDB side.
3229 (do_restore_current_traceframe_cleanup): Adjust.
3230 (make_cleanup_restore_traceframe_number): New.
3231 (cur_traceframe_number): New global.
3232 (tfile_open): Set cur_traceframe_number to no traceframe.
3233 (set_tfile_traceframe): New function.
3234 (tfile_trace_find): If looking up a traceframe using any method
3235 other than by number, make sure the current tfile traceframe
3236 matches gdb's current traceframe. Update the current tfile
3237 traceframe if the lookup succeeded.
3238 (tfile_fetch_registers, tfile_xfer_partial)
3239 (tfile_get_trace_state_variable_value): Make sure the remote
3240 traceframe matches gdb's current traceframe.
3241 * remote.c (remote_traceframe_number): New global.
3242 (remote_open_1): Set it to -1.
3243 (set_remote_traceframe): New function.
3244 (remote_fetch_registers, remote_store_registers)
3245 (remote_xfer_memory, remote_xfer_partial)
3246 (remote_get_trace_state_variable_value): Make sure the remote
3247 traceframe matches gdb's current traceframe.
3248 (remote_trace_find): If looking up a traceframe using any method
3249 other than by number, make sure the current remote traceframe
3250 matches gdb's current traceframe. Update the current remote
3251 traceframe if the lookup succeeded.
3252 * infrun.c (fetch_inferior_event): Adjust.
3253 * tracepoint.h (set_current_traceframe): Declare.
3254 (get_traceframe_number, set_traceframe_number): Add describing
3257 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3259 Mark pieces of values as unavailable if the corresponding memory
3262 * valops.c: Include tracepoint.h.
3263 (value_fetch_lazy): Use read_value_memory.
3264 (read_value_memory): New.
3265 * value.h (read_value_memory): Declare.
3266 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3267 * exec.c (section_table_available_memory): New function.
3268 * exec.h (section_table_available_memory): Declare.
3270 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3272 * Makefile.in (SFILES): Add memrange.c.
3273 (HFILES_NO_SRCDIR): Add memrange.h.
3274 (COMMON_OBS): Add memrange.o.
3275 * memrange.c: New file.
3276 * memrange.h: New file.
3277 * tracepoint.c: Include memrange.h.
3278 (struct mem_range): Delete.
3279 (mem_range_s): Delete.
3280 (traceframe_available_memory): New function.
3281 * tracepoint.h (traceframe_available_memory): Declare.
3283 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3285 * target.h (struct traceframe_info): Forward declare.
3286 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3287 (struct target_ops) <to_traceframe_info>: New field.
3288 (target_traceframe_info): New.
3289 * target.c (update_current_target): Inherit and default
3291 * remote.c (PACKET_qXfer_traceframe_info): New.
3292 (remote_protocol_features): Register qXfer:traceframe-info:read.
3293 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3294 (remote_traceframe_info): New.
3295 (init_remote_ops): Install it.
3296 (_initialize_remote): Install "set/show remote traceframe-info"
3298 * tracepoint.h (parse_traceframe_info): Declare.
3299 * tracepoint.c (struct mem_range): New.
3300 (mem_range_s): New typedef.
3301 (struct traceframe_info): New.
3302 (traceframe_info): New global.
3303 (free_traceframe_info): New function.
3304 (clear_traceframe_info): New function.
3305 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3307 (build_traceframe_info): New function.
3308 (tfile_traceframe_info): New function.
3309 (init_tfile_ops): Install tfile_traceframe_info.
3310 (traceframe_info_start_memory, free_result): New functions.
3311 (memory_attributes, traceframe_info_elements): New globals.
3312 (parse_traceframe_info, get_traceframe_info): New functions.
3313 * features/traceframe-info.dtd: New file.
3314 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3316 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3318 Base support for <unavailable> value contents.
3320 * value.h (value_bytes_available): Declare.
3321 (mark_value_bytes_unavailable): Declare.
3322 * value.c (struct range): New struct.
3323 (range_s): New typedef.
3324 (ranges_overlap): New function.
3325 (range_lessthan): New function.
3326 (ranges_contain_p): New function.
3327 (struct value) <unavailable>: New field.
3328 (value_bytes_available): New function.
3329 (mark_value_bytes_unavailable): New function.
3330 (require_not_optimized_out): Constify parameter.
3331 (require_available): New function.
3332 (value_contents_all, value_contents): Require all bytes be
3334 (value_free): Free `unavailable'.
3335 (value_copy): Copy `unavailable'.
3336 * valprint.h (val_print_unavailable): Declare.
3337 * valprint.c (valprint_check_validity): Rename `offset' parameter
3338 to `embedded_offset'. If printing a scalar, check whether the
3339 value chunk is available.
3340 (val_print_unavailable): New.
3341 (val_print_scalar_formatted): Check whether the value is
3343 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3344 pretty-printing unavailable values.
3346 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3348 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3349 * c-typeprint.c (c_type_print_args): Update the function comment. New
3350 variable param_type, initialize it. Remove const/volatile qualifiers
3351 for language_cplus and !show_artificial. Use param_type.
3353 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3355 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3356 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3357 * symtab.h (struct symtab) <next>: Comment extension.
3359 2011-02-12 Yao Qi <yao@codesourcery.com>
3361 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3363 2011-02-11 Yao Qi <yao@codesourcery.com>
3365 * common/Makefile.in: Add copyright header.
3367 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3369 * infrun.c (proceed): Move switching out and in of tfind mode from
3371 (fetch_inferior_event): ... to here.
3373 2011-02-11 Yao Qi <yao@codesourcery.com>
3375 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3377 * configure.ac: Add common to sub dir.
3378 * configure: Regenerate.
3380 2011-02-11 Yao Qi <yao@codesourcery.com>
3384 * common/Makefile.in: New.
3385 * common/configure.ac: New.
3386 * common/aclocal.m4: New.
3387 * common/configure: Generate.
3389 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3391 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3392 side of the parenthesis.
3395 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3396 * vec.h (VEC_block_remove): Fix comment.
3398 2011-02-08 Michael Snyder <msnyder@vmware.com>
3400 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3402 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3404 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3405 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3408 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3413 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3414 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3416 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3418 * dwarf2read.c (read_subroutine_type): Set special calling
3419 convention flag for functions compiled by IBM XL C for OpenCL.
3420 * ppc-sysv-tdep.c: Include "dwarf2.h"
3421 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3423 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3424 IBM OpenCL vector types calling convention.
3425 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3426 (ppc_sysv_abi_broken_return_value): Likewise.
3427 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3428 types calling convention.
3429 (ppc64_sysv_abi_return_value): Likewise.
3430 * spu-tdep.c: Include "dwarf2.h"
3431 (spu_return_value): Implement IBM OpenCL vector types calling
3434 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3436 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3437 correct ABI for AltiVec vector arguments.
3439 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3441 * valprint.c (val_print): Extend comment.
3442 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3443 interface explanation to val_print.
3444 (ada_val_print_array): Adjust comment to current interface.
3445 (print_field_values): Adjust comment to current interface.
3446 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3447 explanation to val_print.
3448 * f-valprint.c (f_val_print): Ditto.
3449 * jv-valprint.c (java_val_print): Ditto.
3450 * m2-valprint.c (m2_val_print): Ditto.
3451 * p-valprint.c (pascal_val_print): Ditto.
3453 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3455 * breakpoint.c (parse_breakpoint_sals): Fix description.
3457 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3458 Oguz Kayral <oguzkayral@gmail.com>
3460 * python/py-inferior.c (python_on_normal_stop): New function.
3461 (python_on_resume): New function.
3462 (python_inferior_exit): New function.
3463 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3464 inferior_exit observers.
3465 * python/py-evtregistry.c: New file.
3466 * python/py-threadevent.c : New file.
3467 * python/py-event.c: New file.
3468 * python/py-evts.c: New file.
3469 * python/py-continueevent.c: New file.
3470 * python/py-bpevent.c: New file.
3471 * python/py-signalevent.c: New file.
3472 * python/py-exetiedevent.c: New file.
3473 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3474 Move struct breakpoint_object from here...
3475 * python/python-internal.h: ... to here.
3476 * python/py-event.h: New file.
3477 * python/py-events.h: New file.
3478 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3479 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3480 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3481 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3482 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3483 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3484 Add build rules for all the above.
3486 2011-02-04 Tom Tromey <tromey@redhat.com>
3488 * dwarf2read.c (dwarf2_section_empty_p): New function.
3489 (dwarf2_read_section): Use dwarf2_section_empty_p.
3490 (dwarf2_section_size): New function.
3491 (dwarf2_get_section_info): Unconditionally read section.
3492 (dwarf2_read_index): Use dwarf2_section_empty_p.
3493 (partial_read_comp_unit_head): Use dwarf2_section_size.
3494 (dwarf2_symbol_mark_computed): Likewise.
3496 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3498 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3500 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3502 * mips-linux-tdep.c: Include xml-syscall.h.
3503 (mips_linux_get_syscall_number): New function.
3504 (mips_linux_init_abi): Add calls to
3505 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3506 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3507 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3508 * syscalls/mips-n32-linux.xml: New file.
3509 * syscalls/mips-n64-linux.xml: New file.
3510 * syscalls/mips-o32-linux.xml: New file.
3512 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3514 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3515 Complain about inverted range entries.
3516 (dwarf2_record_block_ranges): Likewise.
3518 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3521 * breakpoint.c (update_watchpoint): Fix name of the
3522 update_global_location_list function.
3523 (print_one_breakpoint): Fix typo.
3524 (_initialize_breakpoint): Remove extra space in hbreak help
3526 * breakpoint.h (struct bp_location) <length>: Fix field
3529 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3531 * regcache.c (registers_changed_ptid): Don't explictly always
3532 clear `current_regcache'. Only clear current_thread_ptid and
3533 current_thread_arch when PTID matches. Only reinit the frame
3534 cache if PTID matches the current inferior_ptid. Move alloca(0)
3536 (registers_changed): ... here.
3538 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3540 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3541 starts with __stack_chk_guard as stack guard symbol.
3543 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3545 * disasm.c (compare_lines): Handle the end of sequence markers
3546 within the line table to better support disassembling over
3547 compilation unit boundaries.
3549 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3551 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3552 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3553 implementation even if no symbols are available.
3554 (thumb_analyze_prologue): Update call to skip_prologue_function.
3555 (arm_analyze_prologue): Likewise.
3557 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3559 * arm-tdep.c: Include "observer.h".
3560 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3561 (arm_exidx_data_key): New static variable.
3562 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3563 (struct arm_exidx_data): Likewise.
3564 (arm_exidx_data_free): New function.
3565 (arm_compare_exidx_entries): Likewise.
3566 (arm_obj_section_from_vma): Likewise.
3567 (arm_exidx_new_objfile): Likewise.
3568 (arm_find_exidx_entry): Likewise.
3569 (arm_exidx_fill_cache): Likewise.
3570 (arm_exidx_unwind_sniffer): Likewise.
3571 (arm_exidx_unwind): New global variable.
3572 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3573 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3574 observer. Register arm_exidx_data_key as objfile data.
3576 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3578 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3579 due to accessing uninitialized variable. Fix indentation.
3581 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3583 * c-valprint.c (c_value_print): When doing virtual base pointer
3584 adjustment, create a new value with adjusted contents rather than
3585 changing the contents of the value being printed (and getting it
3588 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3590 * xml-support.c (xml_find_attribute): New.
3591 (xinclude_start_include): Use it.
3592 * xml-support.h (xml_find_attribute): Declare.
3593 * memory-map.c (memory_map_start_memory)
3594 (memory_map_start_property): Use xml_find_attribute.
3595 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3597 * remote.c (start_thread): Use xml_find_attribute.
3598 * solib-target.c (library_list_start_segment)
3599 (library_list_start_section, library_list_start_library)
3600 (library_list_start_list): Use xml_find_attribute.
3601 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3602 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3603 (tdesc_start_field): Use xml_find_attribute.
3605 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3607 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3608 (BUILD_OCL_VTYPES): Update.
3610 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3612 * configure.ac: Work around non-GNU sed limitation when computing
3613 python version number.
3614 * configure: Regenerate.
3616 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3618 Fix debug printing of TYPE_INSTANCE.
3619 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3620 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3622 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3624 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3625 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3626 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3627 * ada-operator.inc: Rename the file to ...
3628 * ada-operator.def: ... here, wrap all the entries by macro OP.
3629 * expprint.c (op_name_standard): Remove all the entries. Include
3630 "std-operator.def" instead.
3631 * expression.h (enum exp_opcode): Include "std-operator.def" and
3632 "ada-operator.def". Move all the entries ...
3633 * std-operator.def: ... here, wrap all the entries by macro OP.
3635 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3637 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3638 * breakpoint.c (remove_jit_event_breakpoints): New function.
3639 * jit.c (jit_descriptor_addr): Delete.
3640 (registering_code): Delete.
3641 (clear_int): Delete.
3642 (jit_inferior_data): New variable.
3643 (struct jit_inferior_data): New type.
3644 (get_jit_inferior_data): New function.
3645 (jit_inferior_data_cleanup): New function.
3646 (jit_read_descriptor): Adjust.
3647 (jit_register_code): Adjust.
3648 (jit_breakpoint_re_set_internal): New function; move code here ...
3649 (jit_inferior_init): ... from here.
3650 (jit_breakpoint_re_set): Adjust.
3651 (jit_reset_inferior_data_and_breakpoints): New function.
3652 (jit_inferior_created_observer): Adjust.
3653 (jit_inferior_exit_hook): Adjust.
3654 (jit_executable_changed_observer): New function.
3655 (jit_event_handler): Adjust.
3656 (_initialize_jit): Adjust.
3658 2011-01-31 Michael Snyder <msnyder@vmware.com>
3660 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3663 2011-01-31 Tom Tromey <tromey@redhat.com>
3666 * python/python.c (execute_gdb_command): Call
3667 prevent_dont_repeat.
3668 * top.c (suppress_dont_repeat): New global.
3669 (dont_repeat): Use it.
3670 (prevent_dont_repeat): New function.
3671 * command.h (prevent_dont_repeat): Declare.
3673 2011-01-31 Tom Tromey <tromey@redhat.com>
3675 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3676 * python/py-breakpoint.c (bppy_set_silent): Use
3677 breakpoint_set_silent.
3678 (bppy_set_thread): Use breakpoint_set_thread.
3679 (bppy_set_task): Use breakpoint_set_task.
3680 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3681 (breakpoint_set_task): Declare.
3682 (make_breakpoint_silent): Remove.
3683 * breakpoint.c (breakpoint_set_silent): New function.
3684 (breakpoint_set_thread): Likewise.
3685 (breakpoint_set_task): Likewise.
3686 (make_breakpoint_silent): Remove.
3688 2011-01-31 Tom Tromey <tromey@redhat.com>
3690 * breakpoint.h (user_breakpoint_p): Declare.
3691 * breakpoint.c (user_breakpoint_p): New function.
3692 (breakpoint_1): Use it.
3693 (save_breakpoints): Likewise.
3695 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3697 * configure.ac: Add handling of Python distribution on Windows.
3698 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3699 sysconfig variables are not defined, then do not use them.
3700 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3701 instead. On Windows, return all paths using forward-slashes
3702 rather than backslashes.
3704 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3706 * configure.ac: Remove fallback behavior for building
3707 against Python. Remove tweaking of Python include path.
3708 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3709 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3710 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3711 Always restore CPPFLAGS and LIBS after linking test.
3712 * configure: Regenerated.
3713 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3714 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3715 * python/python-internal.h: Adjust includes of Python .h files.
3717 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3719 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3722 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3724 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3727 2011-01-31 Yao Qi <yao@codesourcery.com>
3729 * arm-linux-nat.c: Update calls to regcache_register_status
3730 instead of regcache_valid_p.
3731 * aix-thread.c: Likewise.
3732 * i386gnu-nat.c: Likewise.
3734 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3737 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3738 touching TYPE_FIELD_ARTIFICIAL.
3740 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3742 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3745 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3747 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3748 selected, don't try iterating over the traceframe's blocks.
3749 (tfile_has_stack): If there's no traceframe selected, then there's
3751 (tfile_has_registers): If there's no traceframe selected, then
3752 there's no registers.
3754 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3756 * target.c (memory_xfer_partial): No need to restore shadows if we
3757 haven't read anything.
3759 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3761 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3762 and val_print_scalar_formatted.
3764 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3766 * tracepoint.c (tfile_read): New.
3767 (tfile_open): Use it.
3768 (tfile_get_traceframe_address): Use it.
3769 (tfile_trace_find): Use it.
3770 (walk_blocks_callback_func): New typedef.
3771 (match_blocktype): New function.
3772 (traceframe_walk_blocks): New function.
3773 (traceframe_find_block_type): New function.
3774 (tfile_fetch_registers, tfile_xfer_partial)
3775 (tfile_get_trace_state_variable_value): Use
3776 traceframe_find_block_type and tfile_read.
3778 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3780 * remote-mips.c: Add internationalization mark ups. Remove
3781 trailing \n from already marked up strings.
3783 2011-01-26 Tom Tromey <tromey@redhat.com>
3785 * python/py-prettyprint.c (print_string_repr): Clear
3786 'addressprint' option when calling val_print_string.
3787 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3788 option when calling val_print_string.
3790 2011-01-26 Tom Tromey <tromey@redhat.com>
3792 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3794 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3796 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3797 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3798 (gdb_py_long_as_ulongest): New defines.
3799 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3800 (gdb_py_int_as_long): Declare.
3801 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3802 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3803 (valpy_long): Add comment.
3804 * python/py-utils.c (get_addr_from_python): Use
3805 gdb_py_long_as_ulongest. Handle overflow properly.
3806 (gdb_py_object_from_longest): New function.
3807 (gdb_py_object_from_ulongest): Likewise.
3808 (gdb_py_int_as_long): Likewise.
3809 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3810 * python/py-symtab.c (salpy_get_pc): Use
3811 gdb_py_long_from_ulongest.
3812 (salpy_get_line): Use PyInt_FromLong.
3813 * python/py-param.c (set_parameter_value): Use
3815 * python/py-lazy-string.c (stpy_get_address): Use
3816 gdb_py_long_from_ulongest.
3817 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3818 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3819 * python/py-breakpoint.c (bppy_set_thread): Use
3821 (bppy_set_task): Likewise.
3822 (bppy_set_ignore_count): Likewise.
3823 (bppy_set_hit_count): Likewise.
3824 * python/py-block.c (blpy_get_start): Use
3825 gdb_py_object_from_ulongest.
3826 (blpy_get_end): Likewise.
3827 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3829 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3832 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3833 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3834 equality test for objfile, initialize addr_low if needed.
3836 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3838 * tui/tui-regs.c (tui_register_format): Remove dead code.
3840 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3842 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3843 instead of print_scalar_formatted.
3844 (print_scalar_formatted): Don't handle 's' format strings here,
3845 and add an assertion that we never see such format here.
3846 * valprint.h (val_print_scalar_formatted): Declare.
3847 * valprint.c (val_print_scalar_formatted): New.
3848 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3849 instead of print_scalar_formatted.
3850 * jv-valprint.c (java_val_print): Ditto.
3851 * p-valprint.c (pascal_val_print): Ditto.
3852 * ada-valprint.c (ada_val_print_1): Ditto.
3853 * f-valprint.c (f_val_print): Ditto.
3854 * infcmd.c (registers_info): Ditto.
3855 * m2-valprint.c (m2_val_print): Ditto.
3857 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3859 * m2-valprint.c (print_unbounded_array): Pass
3860 value_contents_for_printing rather than value_contents, to
3861 m2_print_array_contents. Also pass in the value.
3863 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3865 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3866 (save_gdb_index_command): Switch to .gdb_index version 4.
3868 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3870 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3871 than frame_register, and always pass a valid value to val_print.
3873 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3875 Centralize printing "<optimized out>".
3877 * valprint.h (val_print_optimized_out): Declare.
3878 * cp-valprint.c (cp_print_value_fields): Use
3879 val_print_optimized_out.
3880 * jv-valprint.c (java_print_value_fields): Ditto.
3881 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3882 * printcmd.c (print_formatted): Ditto.
3883 * valprint.c (valprint_check_validity): Ditto.
3884 (value_check_printable): Ditto.
3885 (val_print_optimized_out): New.
3887 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3889 * infcmd.c (default_print_registers_info): Allocate values so to
3890 never pass a NULL value to val_print.
3892 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3894 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3895 boolean. Make sure to always pass a value that matches the
3896 contents buffer to callees. Preserve `address' for following
3898 * value.c (value_contents_for_printing_const): New.
3899 (value_address): Constify value argument.
3900 * value.h (value_contents_for_printing_const): Declare.
3901 (value_address): Constify value argument.
3903 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3905 * regcache.c (struct regcache_descr): Rename
3906 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3907 and sizeof_cooked_register_valid_p to
3908 sizeof_cooked_register_status.
3909 (init_regcache_descr): Adjust.
3910 (struct regcache): Rename register_valid_p field to
3912 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3913 (do_cooked_read): Adjust.
3914 (regcache_valid_p): Rename to ...
3915 (regcache_register_status): ... this. Adjust.
3916 (regcache_invalidate): Adjust.
3917 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3919 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3920 as unavailable, not valid.
3921 (regcache_dump): Adjust.
3922 * regcache.h (enum register_status): New.
3923 (regcache_register_status): Declare.
3924 (regcache_invalidate): Delete declaration.
3925 * corelow.c (get_core_registers): Adjust.
3926 * tracepoint.c (tfile_fetch_registers): Adjust.
3927 * trad-frame.c (REG_VALUE): Rename to ...
3928 (TF_REG_VALUE): ... this.
3929 (REG_UNKNOWN): Rename to ...
3930 (TF_REG_UNKNOWN): ... this.
3931 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3932 * mi/mi-main.c (register_changed_p): Adjust.
3934 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3936 * regcache.c (struct regcache_descr): Remove outdated comment.
3937 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3939 (regcache_xmalloc): Rename to ...
3940 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3941 Allocate the regcache type accordingly.
3942 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3943 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3944 cooked registers, not raw.
3945 (regcache_dup_no_passthrough): Delete.
3946 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3947 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3948 mention obsolete write_register_bytes.
3949 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3951 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3953 Stop remote_read_bytes from handling partial reads itself.
3955 * remote-fileio.c: Include target.h.
3956 (remote_fileio_write_bytes): Delete.
3957 (remote_fileio_func_open, remote_fileio_func_write)
3958 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3960 (remote_fileio_func_stat): Use target_read_memory and
3961 target_write_memory.
3962 (remote_fileio_func_gettimeofday): Use target_write_memory.
3963 (remote_fileio_func_system): Use target_read_memory.
3964 * remote.c (remote_write_bytes): Make it static.
3965 (remote_read_bytes): Don't handle partial reads here.
3966 * remote.h (remote_read_bytes): Delete declaration.
3968 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3970 Simplify XML parsing a bit.
3972 * xml-support.h (gdb_xml_parse_quick): Declare.
3973 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3974 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3976 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3977 gdb_xml_create_parser_and_cleanup_1.
3978 (gdb_xml_parse_quick): New.
3979 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3980 * osdata.c (osdata_parse): Ditto.
3981 * remote.c (remote_threads_info): Ditto.
3982 * solib-target.c (solib_target_parse_libraries): Ditto.
3983 * xml-syscall.c (syscall_parse_xml): Ditto.
3984 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3986 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3988 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3989 with remote-mips.o added to gdb_target_obs.
3990 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3992 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3994 * ada-valprint.c (val_print_packed_array_elements): Pass the
3995 correct struct value to val_print.
3996 (ada_val_print_1): Ditto.
3998 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4000 Don't lose embedded_offset in printing routines throughout.
4002 * valprint.h (val_print_array_elements): Change prototype.
4003 * valprint.c (val_print_array_elements): Add `embedded_offset'
4004 parameter, and adjust to pass it down to val_print, while passing
4005 `valaddr' or `address' unmodified. Take embedded_offset into
4006 account when checking repetitions.
4007 * c-valprint.c (c_val_print): Pass embedded_offset to
4008 val_print_array_elements instead of adjusting `valaddr' and
4010 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4011 embedded_offset to val_print_array_elements instead of adjusting
4013 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4014 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4015 val_print_array_elements and pascal_object_print_value_fields
4016 instead of adjusting `valaddr'.
4017 (pascal_object_print_value_fields): Add `offset' parameter, and
4019 (pascal_object_print_value): Add `offset' parameter, and adjust to
4021 (pascal_object_print_static_field): Use
4022 value_contents_for_printing/value_embedded_offset, rather than
4024 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4025 parameter, and adjust to use it. Use
4026 value_contents_for_printing/value_embedded_offset, rather than
4028 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4029 (ada_val_print_array): Add `offset' parameter, and adjust to use
4031 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4032 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4033 Instead work with offsets. Use
4034 value_contents_for_printing/value_embedded_offset, rather than
4035 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4036 and use value_from_pointer to extract a target pointer, rather
4037 than value_from_longest.
4038 (print_variant_part): Add `offset' parameter. Replace
4039 `outer_valaddr' parameter by a new `outer_offset' parameter.
4040 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4041 (ada_value_print): Use
4042 value_contents_for_printing/value_embedded_offset, rather than
4044 (print_record): Add `offset' parameter, and adjust to pass it
4046 (print_field_values): Add `offset' parameter. Replace
4047 `outer_valaddr' parameter by a new `outer_offset' parameter.
4048 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4049 Use value_contents_for_printing/value_embedded_offset, rather than
4051 * d-valprint.c (dynamic_array_type): Use
4052 value_contents_for_printing/value_embedded_offset, rather than
4054 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4055 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4056 (java_print_value_fields): Take `offset' into account. Don't
4057 re-adjust `valaddr'. Instead pass down adjusted offsets.
4058 (java_val_print): Take `embedded_offset' into account. Pass it to
4059 java_print_value_fields.
4060 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4061 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4062 down adjusted offsets.
4063 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4064 (f_val_print): Take `embedded_offset' into account.
4066 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4068 * inflow.c: Include "gdbcmd.h".
4069 (interactive_mode): New static global, moved here from top.c.
4070 (show_interactive_mode): New function, moved here from top.c.
4071 use gdb_has_a_terminal instead of input_from_terminal_p to
4072 determine the current mode.
4073 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4075 (_initialize_inflow): Add the "set/show interactive-mode"
4076 commands. Moved here from top.c, after having adjusted slightly
4078 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4080 (input_from_terminal_p): Remove handling of "interactive-mode"
4081 setting, moved to infow.c.
4082 (init_main): Remove creation of the "set/show interactive-mode"
4083 commands, moved to inflow.c.
4085 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4087 * NEWS: Add entry for native ia64-hpux support.
4089 2011-01-19 Tom Tromey <tromey@redhat.com>
4092 * thread.c (free_thread): Free 'name'.
4093 (print_thread_info): Emit thread name. Change CLI output.
4094 (thread_name_command): New function.
4095 (do_captured_thread_select): Emit newline.
4096 (_initialize_thread): Register 'thread name' command.
4097 * target.h (struct target_ops) <to_thread_name>: New field.
4098 (target_thread_name): New macro.
4099 * target.c (update_current_target): Handle to_thread_name.
4100 * python/py-infthread.c (thpy_get_name): New function.
4101 (thpy_set_name): Likewise.
4102 (thread_object_getset): Add "name".
4103 * linux-nat.c (linux_nat_thread_name): New function.
4104 (linux_nat_add_target): Set to_thread_name.
4105 * gdbthread.h (struct thread_info) <name>: New field.
4107 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4109 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4110 (ada_val_print_1): Likewise.
4112 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4114 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4115 upper limit address is not greater than the function end address
4116 when the upper limit could not be computed using the debugging
4119 2011-01-17 Tom Tromey <tromey@redhat.com>
4121 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4123 * utils.c: Include gdb_regex.h.
4124 (do_regfree_cleanup): New function.
4125 (make_regfree_cleanup): Likewise.
4126 (get_regcomp_error): Likewise.
4127 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4129 2011-01-17 Tom Tromey <tromey@redhat.com>
4131 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4134 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4136 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4137 for internal variables.
4138 (last_was_structop): New static variable.
4139 (COMPLETE): New token.
4140 (field_exp): New rule to group all '.' suffix handling.
4141 Add mark_struct_expression calls when approriate to be able
4142 to correctly find fields for completion.
4143 (yylex): Adapt to handle field completion and set INTVAR when
4146 2011-01-14 Yao Qi <yao@codesourcery.com>
4148 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4149 save_reggroup, restore_reggroup and all_reggroup.
4151 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4153 * ada-valprint. (ada_printchar): Use the correct type length
4154 in call to ada_emit_char.
4155 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4157 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4159 * solib-som.h (hpux_major_release): Declare variable here.
4160 * solib-som.c: Remove <sys/utsname.h> header.
4161 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4162 (hpux_major_release): Make global, change default value to
4163 DEFAULT_HPUX_MAJOR_RELEASE.
4164 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4165 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4166 Add "solib-som.h" header.
4167 (set_hpux_major_release): New function.
4168 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4170 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4172 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4174 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4176 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4177 new-line at end of warning message.
4178 (ia64_hpux_store_register): Remove trailing new-line at end of
4180 * ia64-hpux-tdep.c: Rephrase comment.
4181 * solib-ia64-hpux.c (struct dld_info): Change type of field
4182 dld_flags from "long long" to ULONGEST.
4184 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4186 * target.h (deprecated_child_ops): Delete declaration.
4187 * target.c (deprecated_child_ops): Delete definition.
4189 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4191 * Makefile.in (hpux-thread.o): Delete rule.
4192 * configure.ac: Don't check for HPUX DCE threads support.
4193 * configure, config.in: Regenerate.
4194 * hppa-hpux-nat.c (child_suppress_run): Delete.
4195 (hppa_hpux_child_can_run): Delete.
4196 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4197 * hpux-thread.c: Delete.
4199 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4201 * hpux-thread.c (hpux_pid_to_str): Delete.
4203 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4205 * ada-valprint.c (ada_emit_char): Remove strange code.
4206 Check that c is <= UCHAR_MAX before passing it to isascii.
4207 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4209 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4211 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4212 to the case where instream is stdin.
4214 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4216 * ia64-tdep.h (struct regcache): Forward declare.
4217 (struct ia64_infcall_ops): New struct type.
4218 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4220 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4221 Renames ia64_find_global_pointer.
4222 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4223 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4224 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4226 (ia64_infcall_ops): New static global constant.
4227 (ia64_gdbarch_init): Set tdep->infcall_ops.
4228 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4229 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4230 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4231 (ia64_hpux_dummy_code): New static global constant.
4232 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4233 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4234 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4236 (ia64_hpux_infcall_ops): New static global constant.
4237 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4238 for inferior function calls to work properly on ia64-hpux.
4240 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4242 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4243 * ia64-tdep.h (struct frame_info): forward declaration.
4244 (struct gdbarch_tdep): Add field size_of_register_frame.
4245 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4246 to determine the size of the register frame.
4247 (ia64_size_of_register_frame): New function.
4248 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4249 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4250 (IA64_HPUX_UREG_REASON): New macro.
4251 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4253 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4254 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4255 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4258 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4260 Add support for ia64-hpux.
4261 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4262 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4264 * configure.host: Add handling for ia64-hpux hosts. Add associated
4266 * configure.tgt: Add handling for ia64-hpux targets.
4267 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4268 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4269 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4271 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4273 [ttrace] Compute thread list immediately after attach.
4274 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4276 (inf_ttrace_attach): Use it.
4278 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4280 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4281 if we could not determine the frame's function address. Instead,
4282 use the frame's PC, and then continue.
4284 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4286 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4287 not already defined.
4289 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4291 * ia64-tdep.c (ia64_struct_type_p): New function.
4292 (ia64_extract_return_value): Handle integral values that are
4293 less than 8 bytes long.
4294 (ia64_push_dummy_call): Likewise.
4296 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4298 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4299 floatformat_ia64_ext.
4300 (floatformat_ia64_ext_big): New static const.
4301 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4303 2011-01-12 Tom Tromey <tromey@redhat.com>
4305 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4307 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4308 (mi_cmd_thread_list_ids): Likewise.
4309 (mi_cmd_data_list_changed_registers): Likewise.
4310 (mi_cmd_data_list_register_values): Likewise.
4311 (mi_cmd_data_write_register_values): Likewise.
4312 (mi_cmd_data_evaluate_expression): Likewise.
4313 (mi_cmd_data_read_memory): Likewise.
4314 (mi_cmd_data_read_memory_bytes): Likewise.
4315 (mi_cmd_data_write_memory): Likewise.
4316 (mi_cmd_enable_timings): Likewise.
4317 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4318 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4319 (mi_cmd_var_delete): Likewise.
4320 (mi_cmd_var_set_format): Likewise.
4321 (mi_cmd_var_show_format): Likewise.
4322 (mi_cmd_var_info_num_children): Likewise.
4323 (mi_cmd_var_list_children): Likewise.
4324 (mi_cmd_var_info_type): Likewise.
4325 (mi_cmd_var_info_expression): Likewise.
4326 (mi_cmd_var_show_attributes): Likewise.
4327 (mi_cmd_var_assign): Likewise.
4328 (mi_cmd_var_update): Likewise.
4329 (mi_cmd_enable_pretty_printing): Likewise.
4330 (mi_cmd_var_set_update_range): Likewise.
4331 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4333 (mi_cmd_target_file_put): Likewise.
4334 (mi_cmd_target_file_delete): Likewise.
4335 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4337 (mi_cmd_stack_info_depth): Likewise.
4338 (mi_cmd_stack_list_locals): Likewise.
4339 (mi_cmd_stack_list_args): Likewise.
4340 (mi_cmd_stack_select_frame): Likewise.
4341 (mi_cmd_stack_select_frame): Likewise.
4342 (mi_cmd_stack_info_frame): Likewise.
4343 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4345 (mi_cmd_file_list_exec_source_files): Likewise.
4346 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4347 (mi_cmd_env_cd): Likewise.
4348 (mi_cmd_env_path): Likewise.
4349 (mi_cmd_env_dir): Likewise.
4350 (mi_cmd_inferior_tty_show): Likewise.
4351 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4352 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4353 (mi_cmd_break_watch): Likewise.
4355 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4357 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4358 (ppc_linux_insert_hw_breakpoint): Likewise.
4359 (ppc_linux_remove_hw_breakpoint): Likewise.
4360 (ppc_linux_insert_watchpoint): Likewise.
4362 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4363 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 PR fortran/11104 and DWARF unbound arrays detection.
4366 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4367 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4368 unspecified upper bound.
4369 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4370 variables array_size_array, tmp_type and offset_item. New variable
4371 array. Remove call to f77_get_upperbound. New variables array_type
4372 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4373 the final call to deprecated_set_value_type.
4375 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4377 Make value allocations more lazy.
4378 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4379 instead of allocate_value and set_value_lazy when possible.
4380 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4381 instead of allocate_value and set_value_lazy.
4382 * findvar.c (value_of_register_lazy): Likewise.
4383 (read_var_value): Remove V preallocation, call just check_typedef in
4384 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4385 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4386 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4387 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4388 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4389 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4390 the end, remove set_value_lazy there.
4391 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4392 instead of allocate_value and set_value_lazy when possible.
4393 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4394 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4395 of allocate_value and set_value_lazy.
4396 (value_from_contents_and_address): Use allocate_value_lazy instead of
4397 allocate_value and set_value_lazy when possible.
4399 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4401 * disasm.c (dump_insns): Support dumping opcodes for MI.
4402 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4403 dumping of instruction opcodes.
4405 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4407 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4410 2011-01-11 Tom Tromey <tromey@redhat.com>
4412 * thread.c (do_captured_thread_select): Emit newline before
4415 2011-01-11 Michael Snyder <msnyder@vmware.com>
4417 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4418 * score-tdep.c: Ditto.
4419 * score-tdep.h: Ditto.
4420 * ser-base.c: Ditto.
4421 * ser-go32.c: Ditto.
4424 * ser-mingw.c: Ditto.
4425 * ser-pipe.c: Ditto.
4427 * ser-unix.c: Ditto.
4428 * sh64-tdep.c: Ditto.
4429 * shnbsd-nat.c: Ditto.
4433 * solib-darwin.c: Ditto.
4434 * solib-frv.c: Ditto.
4436 * solib-irix.c: Ditto.
4437 * solib-osf.c: Ditto.
4438 * solib-pa64.c: Ditto.
4439 * solib-som.c: Ditto.
4440 * solib-spu.c: Ditto.
4441 * solib-sunos.c: Ditto.
4442 * solib-svr4.c: Ditto.
4444 * sol-thread.c: Ditto.
4448 * sparc64-linux-tdep.c: Ditto.
4449 * sparc64-tdep.c: Ditto.
4450 * sparc-linux-nat.c: Ditto.
4451 * sparc-linux-tdep.c: Ditto.
4452 * sparc-sol2-nat.c: Ditto.
4453 * sparc-sol2-tdep.c: Ditto.
4454 * sparc-tdep.c: Ditto.
4455 * sparc-tdep.h: Ditto.
4456 * spu-tdep.c: Ditto.
4457 * stabsread.c: Ditto.
4458 * stabsread.h: Ditto.
4466 * target-descriptions.c: Ditto.
4467 * target-descriptions.h: Ditto.
4469 * target-memory.c: Ditto.
4470 * terminal.h: Ditto.
4473 * tracepoint.c: Ditto.
4474 * tracepoint.h: Ditto.
4475 * trad-frame.h: Ditto.
4476 * typeprint.c: Ditto.
4478 2011-01-11 Michael Snyder <msnyder@vmware.com>
4480 * ui-file.c: Comment cleanup, mostly periods and spaces.
4485 * v850-tdep.c: Ditto.
4486 * valarith.c: Ditto.
4488 * valprint.c: Ditto.
4489 * valprint.h: Ditto.
4494 * vax-tdep.c: Ditto.
4498 * windows-nat.c: Ditto.
4499 * windows-tdep.c: Ditto.
4500 * xcoffread.c: Ditto.
4501 * xcoffsolib.c: Ditto.
4502 * xml-support.c: Ditto.
4503 * xstormy16-tdep.c: Ditto.
4504 * xtensa-tdep.c: Ditto.
4505 * xtensa-tdep.h: Ditto.
4507 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4509 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4510 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4512 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4513 Thiago Jung Bauermann <bauerman@br.ibm.com>
4515 Implement support for PowerPC BookE ranged watchpoints.
4517 (struct breakpoint_ops) <resources_needed>: New method.
4518 Initialize to NULL in all existing breakpoint_ops instances.
4519 (struct breakpoint) <exact>: New field.
4520 (target_exact_watchpoints): Declare external global.
4521 * breakpoint.c (target_exact_watchpoints): New global flag.
4522 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4523 b->enable_state to bp_enabled before calling
4524 hw_watchpoint_used_count.
4525 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4526 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4528 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4529 if the watchpoint is exact.
4530 (resources_needed_watchpoint): New function.
4531 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4532 (watch_command_1): Set b->exact if the user asked for an exact
4533 watchpoint and one can be set.
4534 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4535 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4536 the user asks for an exact watchpoint and one can be set. Return
4537 number of needed debug registers to watch the expression.
4538 * gdbtypes.c (is_scalar_type): New function, based on
4539 valprint.c:scalar_type_p.
4540 (is_scalar_type_recursive): New function.
4541 * gdbtypes.h (is_scalar_type_recursive): Declare.
4542 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4543 handle regions when ranged watchpoints are available.
4544 (create_watchpoint_request): New function.
4545 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4546 create_watchpoint_request.
4547 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4548 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4549 `set powerpc' and `show powerpc' commands.
4550 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4551 Mention documentation comment in the target macro.
4552 (target_region_ok_for_hw_watchpoint): Document return value.
4554 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4556 * breakpoint.c (update_watchpoint): Decide on using a software or
4557 hardware watchpoint after the bp_locations are created.
4559 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4561 Convert hardware watchpoints to use breakpoint_ops.
4562 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4563 <insert_location>: ... this. Return int instead of void.
4564 Accept pointer to struct bp_location instead of pointer to
4565 struct breakpoint. Adapt all implementations.
4566 (breakpoint_ops) <remove>: Rename to...
4567 <remove_location>: ... this. Accept pointer to struct bp_location
4568 instead of pointer to struct breakpoint. Adapt all implementations.
4569 * breakpoint.c (insert_catchpoint): Delete function.
4570 (insert_bp_location): Call the watchpoint or catchpoint's
4571 breakpoint_ops.insert method.
4572 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4573 breakpoint_ops.remove method.
4574 (insert_watchpoint, remove_watchpoint): New functions.
4575 (watchpoint_breakpoint_ops): New structure.
4576 (watch_command_1): Initialize the OPS field.
4577 * inf-child.c (inf_child_insert_fork_catchpoint)
4578 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4579 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4580 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4582 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4583 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4584 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4585 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4586 * target.c (update_current_target): Change default implementation of
4587 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4588 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4589 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4590 to_set_syscall_catchpoint to return_one.
4591 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4592 (debug_to_insert_exec_catchpoint): Report return value.
4593 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4594 (to_insert_exec_catchpoint): Change declaration to return int instead
4597 2011-01-11 Michael Snyder <msnyder@vmware.com>
4599 * arm-tdep.c: Internationalization.
4602 * fork-child.c: Ditto.
4603 * nto-procfs.c: Ditto.
4604 * ppc-sysv-tdep.c: Ditto.
4606 * remote-mips.c: Ditto.
4608 * rs6000-nat.c: Ditto.
4609 * rs6000-tdep.c: Ditto.
4613 * xml-support.c: Ditto.
4614 * mi/mi-cmd-break.c: Ditto.
4615 * mi/mi-cmd-var.c: Ditto.
4616 * mi/mi-interp.c: Ditto.
4617 * mi/mi-main.c: Ditto.
4619 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4621 * remote-sim.c (gdbsim_store_register): Update API to
4622 sim_store_register to check more error conditions.
4624 2011-01-10 Michael Snyder <msnyder@vmware.com>
4626 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4627 * nto-tdep.c: Ditto.
4628 * nto-tdep.h: Ditto.
4629 * objc-exp.y: Ditto.
4630 * objc-lang.c: Ditto.
4631 * objfiles.c: Ditto.
4632 * objfiles.h: Ditto.
4633 * observer.c: Ditto.
4634 * opencl-lang.c: Ditto.
4637 * parser-defs.h: Ditto.
4640 * posix-hdep.c: Ditto.
4641 * ppcbug-rom.c: Ditto.
4642 * ppc-linux-nat.c: Ditto.
4643 * ppc-linux-tdep.c: Ditto.
4644 * ppc-linux-tdep.h: Ditto.
4645 * ppcnbsd-tdep.c: Ditto.
4646 * ppcobsd-tdep.c: Ditto.
4647 * ppcobsd-tdep.h: Ditto.
4648 * ppc-sysv-tdep.c: Ditto.
4649 * ppc-tdep.h: Ditto.
4650 * printcmd.c: Ditto.
4651 * proc-abi.c: Ditto.
4652 * proc-flags.c: Ditto.
4654 * proc-utils.h: Ditto.
4655 * progspace.h: Ditto.
4656 * prologue-value.c: Ditto.
4657 * prologue-value.h: Ditto.
4658 * psympriv.h: Ditto.
4660 * p-typeprint.c: Ditto.
4661 * p-valprint.c: Ditto.
4662 * ravenscar-sparc-thread.c: Ditto.
4663 * ravenscar-thread.c: Ditto.
4664 * ravenscar-thread.h: Ditto.
4666 * regcache.c: Ditto.
4667 * regcache.h: Ditto.
4669 * remote-fileio.c: Ditto.
4670 * remote-fileio.h: Ditto.
4672 * remote-m32r-sdi.c: Ditto.
4673 * remote-mips.c: Ditto.
4674 * remote-sim.c: Ditto.
4675 * rs6000-aix-tdep.c: Ditto.
4676 * rs6000-nat.c: Ditto.
4677 * rs6000-tdep.c: Ditto.
4679 2011-01-10 Michael Snyder <msnyder@vmware.com>
4681 * charset.c (validate): Internationalization.
4682 * coffread.c (read_one_sym): Ditto.
4683 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4684 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4685 * inflow.c (new_tty): Ditto.
4686 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4687 * m32c-tdep.c (m32c_return_value): Ditto.
4688 * mep-tdep.c (mep_store_return_value): Ditto.
4689 * score-tdep.c (score7_fetch_insn): Ditto.
4690 * ser-mingw.c (pipe_windows_open): Ditto.
4691 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4692 * spu-tdep.c (spu_register_type): Ditto.
4693 * tracepoint.c (trace_find_command): Ditto.
4694 * valarith.c (value_pos): Ditto.
4696 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4698 * ada-valprint.c (printstr): Minor comment reformatting.
4700 2011-01-08 Michael Snyder <msnyder@vmware.com>
4702 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4705 2011-01-08 Michael Snyder <msnyder@vmware.com>
4707 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4708 * hppa-hpux-tdep.c: Ditto.
4709 * hppa-linux-nat.c: Ditto.
4710 * hppa-linux-tdep.c: Ditto.
4711 * hppanbsd-tdep.c: Ditto.
4712 * hppa-tdep.c: Ditto.
4713 * hppa-tdep.h: Ditto.
4714 * hpux-thread.c: Ditto.
4715 * i386-cygwin-tdep.c: Ditto.
4716 * i386-darwin-nat.c: Ditto.
4717 * i386gnu-nat.c: Ditto.
4718 * i386-linux-nat.c: Ditto.
4719 * i386-linux-tdep.c: Ditto.
4720 * i386-nat.c: Ditto.
4721 * i386-nat.h: Ditto.
4722 * i386nbsd-tdep.c: Ditto.
4723 * i386-sol2-nat.c: Ditto.
4724 * i386-stub.c: Ditto.
4725 * i386-tdep.c: Ditto.
4726 * i386-tdep.h: Ditto.
4727 * i387-tdep.c: Ditto.
4728 * ia64-linux-nat.c: Ditto.
4729 * ia64-linux-tdep.c: Ditto.
4730 * ia64-tdep.c: Ditto.
4734 * inferior.c: Ditto.
4735 * inferior.h: Ditto.
4741 * iq2000-tdep.c: Ditto.
4742 * irix5-nat.c: Ditto.
4748 * jv-typeprint.c: Ditto.
4749 * jv-valprint.c: Ditto.
4750 * language.c: Ditto.
4751 * language.h: Ditto.
4752 * linespec.c: Ditto.
4753 * linux-fork.c: Ditto.
4754 * linux-nat.c: Ditto.
4755 * linux-thread-db.c: Ditto.
4756 * lm32-tdep.c: Ditto.
4758 2011-01-08 Michael Snyder <msnyder@vmware.com>
4760 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4762 * m2-typeprint.c: Ditto.
4763 * m2-valprint.c: Ditto.
4764 * m32c-tdep.c: Ditto.
4765 * m32r-linux-nat.c: Ditto.
4766 * m32r-rom.c: Ditto.
4767 * m32r-tdep.c: Ditto.
4768 * m32r-tdep.h: Ditto.
4769 * m68hc11-tdep.c: Ditto.
4770 * m58klinux-nat.c: Ditto.
4771 * m68k-tdep.c: Ditto.
4772 * m88k-tdep.c: Ditto.
4773 * m88k-tdep.h: Ditto.
4774 * machoread.c: Ditto.
4775 * macrocmd.c: Ditto.
4776 * macroexp.c: Ditto.
4777 * macrotab.c: Ditto.
4780 * mdebugread.c: Ditto.
4781 * mdebugread.h: Ditto.
4784 * memory-map.h: Ditto.
4785 * mep-tdep.c: Ditto.
4786 * microblaze-rom.c: Ditto.
4787 * microblaze-tdep.c: Ditto.
4789 * mips-irix-tdep.c: Ditto.
4790 * mips-linux-nat.c: Ditto.
4791 * mips-linux-tdep.c: Ditto.
4792 * mips-linux-tdep.h: Ditto.
4793 * mipsnbsd-nat.c: Ditto.
4794 * mipsnbsd-tdep.c: Ditto.
4795 * mipsread.c: Ditto.
4796 * mips-tdep.c: Ditto.
4797 * mips-tdep.h: Ditto.
4798 * mn10300-linux-tdep.c: Ditto.
4799 * mn10300-tdep.c: Ditto.
4800 * mn10300-tdep.h: Ditto.
4803 * moxie-tdep.c: Ditto.
4804 * moxie-tdep.h: Ditto.
4807 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4809 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4811 2011-01-08 Robert Millan <rmh@gnu.org>
4813 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4815 2011-01-07 Michael Snyder <msnyder@vmware.com>
4817 * charset.c (_initialize_charset): Fix typo in string.
4819 2011-01-07 Michael Snyder <msnyder@vmware.com>
4821 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4823 * tui/tui-layout.c (tui_set_layout_for_display_command):
4824 Split line so that operator goes to beginning of line.
4825 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4826 assignment out of if statement.
4828 2011-01-07 Michael Snyder <msnyder@vmware.com>
4830 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4831 * ada-lang.h: Ditto.
4832 * ada-tasks.c: Ditto.
4833 * ada-valprint.c: Ditto.
4834 * aix-threads.c: Ditto.
4835 * alpha-linux-nat.c: Ditto.
4836 * alpha-linux-tdep.c: Ditto.
4837 * alpha-mdebug-tdep.c: Ditto.
4838 * alpha-nat.c: Ditto.
4839 * alpha-osf1-tdep.c: Ditto.
4840 * alpha-tdep.c: Ditto.
4841 * alphabsd-nat.c: Ditto.
4842 * alphabsd-tdep.c: Ditto.
4843 * amd64-darwin-tdep.c: Ditto.
4844 * amd64-linux-nat.c: Ditto.
4845 * amd64-linux-tdep.c: Ditto.
4846 * amd64-sol2-tdep.c: Ditto.
4847 * amd64-tdep.c: Ditto.
4848 * amd64-fbsd-tdep.c: Ditto.
4849 * amd64-nbsd-tdep.c: Ditto.
4850 * amd64-obsd-tdep.c: Ditto.
4851 * amd64-linux-nat.c: Ditto.
4852 * amd64-linux-tdep.c: Ditto.
4853 * arm-tdep.c: Ditto.
4854 * arm-tdep.h: Ditto.
4855 * armnbsd-nat.c: Ditto.
4856 * avr-tdep.c: Ditto.
4857 * bfin-tdep.c: Ditto.
4859 * c-typeprintc: Ditto.
4860 * c-valprint.c: Ditto.
4861 * coff-pe-read.h: Ditto.
4862 * coffreead.c: Ditto.
4863 * cris-tdep.c: Ditto.
4865 * darwin-nat-info.c: Ditto.
4866 * darwin-nat.c: Ditto.
4867 * dbug-rom.c: Ditto.
4871 * dec-thread.c: Ditto.
4873 * demangle.c: Ditto.
4874 * dicos-tdep.c: Ditto.
4875 * dictionary.c: Ditto.
4876 * dictionary.h: Ditto.
4877 * dink32-rom.c: Ditto.
4879 * doublest.c: Ditto.
4881 * dummy-frame.c: Ditto.
4882 * dwarf2-frame.c: Ditto.
4883 * dwarf2expr.c: Ditto.
4884 * dwarf2loc.c: Ditto.
4885 * dwarf2read.c: Ditto.
4889 * event-top.h: Ditto.
4890 * exceptions.c: Ditto.
4891 * exceptions.h: Ditto.
4893 * expprint.c: Ditto.
4894 * expression.h: Ditto.
4898 * f-typeprint.c: Ditto.
4899 * f-valprint.c: Ditto.
4900 * fbsd-nat.c: Ditto.
4902 * fork-child.c: Ditto.
4905 * frv-linux-tdep.c: Ditto.
4906 * frv-tdep.c: Ditto.
4908 * gdb-stabs.h: Ditto.
4909 * gdb_assert.h: Ditto.
4910 * gdb_string.h: Ditto.
4911 * gdb_thread_db.h: Ditto.
4912 * gdb_wait.h: Ditto.
4913 * gdbarch.sh: Ditto.
4915 * gdbthread.h: Ditto.
4916 * gdbtypes.c: Ditto.
4917 * gdbtypes.h: Ditto.
4920 * gnu-v2-abi.c: Ditto.
4921 * gnu-v3-abi.c: Ditto.
4922 * go32-nat.c: Ditto.
4923 * gdbarch.c: Regenerate.
4924 * gdbarch.h: Regenerate.
4926 2011-01-07 Michael Snyder <msnyder@vmware.com>
4928 * ax-gdb.c: Adjust some long output strings.
4929 * breakpoint.c: Ditto.
4934 * linux-nat.c: Ditto.
4935 * solib-pa64.c: Ditto.
4936 * solib-som.c: Ditto.
4938 2011-01-06 Tom Tromey <tromey@redhat.com>
4942 * python/python.c (GdbMethods): Add "newest_frame" method.
4943 * python/python-internal.h (gdbpy_newest_frame): Declare.
4944 * python/py-frame.c (gdbpy_newest_frame): New function.
4946 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4948 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4949 * jit.c (jit_debug): New variable.
4950 (show_jit_debug): New function.
4951 (struct target_buffer): Use ULONGEST.
4952 (bfd_open_from_target_memory): Likewise.
4953 (jit_register_code, jit_inferior_init): Add debug output.
4954 (_initialize_jit): Register "debug jit" command.
4956 2011-01-06 Tom Tromey <tromey@redhat.com>
4958 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4959 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4962 2011-01-06 Tom Tromey <tromey@redhat.com>
4964 * python/py-frame.c (frapy_block): Use get_frame_block.
4966 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4968 Do not stop on SIGPRIO signals by default
4969 * infrun.c (_initialize_infrun): Unset signal_stop and
4970 signal_print for TARGET_SIGNAL_PRIO.
4972 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4974 * ada-tasks.c: Fix style violation in comment.
4976 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4978 * linespec.c (decode_compound, find_method): Remove trailing \n
4979 at end of error string.
4980 * solib-irix.c (irix_current_sos): Likewise.
4981 * varobj.c (uninstall_variable): Likewise.
4983 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4985 * copyright.py: New script.
4986 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4987 Launch emacs without exec'ing. Call copyright.py afterwards.
4989 2011-01-05 Michael Snyder <msnyder@vmware.com>
4991 * addrmap.c: Shorten lines of >= 80 columns.
4992 * arch-utils.c: Ditto.
4993 * arch-utils.h: Ditto.
4995 * ax-general.c: Ditto.
4997 * blockframe.c: Ditto.
4998 * breakpoint.c: Ditto.
4999 * buildsym.c: Ditto.
5001 * c-typeprint.c: Ditto.
5003 * coffread.c: Ditto.
5007 * cp-namespace.c: Ditto.
5008 * cp-support.c: Ditto.
5009 * dbug-rom.c: Ditto.
5014 * dictionary.c: Ditto.
5016 * doublest.c: Ditto.
5017 * dwarf2-frame.c: Ditto.
5018 * dwarf2expr.c: Ditto.
5019 * dwarf2loc.c: Ditto.
5020 * dwarf2read.c: Ditto.
5023 * event-loop.c: Ditto.
5024 * event-loop.h: Ditto.
5025 * exceptions.h: Ditto.
5027 * expprint.c: Ditto.
5028 * expression.h: Ditto.
5030 * f-valprint.c: Ditto.
5032 * frame-base.c: Ditto.
5033 * frame-unwind.c: Ditto.
5034 * frame-unwind.h: Ditto.
5038 * gdb-stabs.h: Ditto.
5039 * gdb_assert.h: Ditto.
5040 * gdb_dirent.h: Ditto.
5041 * gdb_obstack.h: Ditto.
5043 * gdbtypes.c: Ditto.
5044 * gdbtypes.h: Ditto.
5045 * inf-ttrace.c: Ditto.
5050 * inline-frame.h: Ditto.
5051 * language.c: Ditto.
5052 * language.h: Ditto.
5053 * libunwind-frame.c: Ditto.
5054 * libunwind-frame.h: Ditto.
5055 * linespec.c: Ditto.
5056 * linux-nat.c: Ditto.
5057 * linux-nat.h: Ditto.
5058 * linux-thread-db.c: Ditto.
5059 * machoread.c: Ditto.
5060 * macroexp.c: Ditto.
5061 * macrotab.c: Ditto.
5064 * mdebugread.c: Ditto.
5069 * objfiles.c: Ditto.
5070 * objfiles.h: Ditto.
5072 * p-typeprint.c: Ditto.
5073 * p-valprint.c: Ditto.
5075 * printcmd.c: Ditto.
5076 * proc-events.c: Ditto.
5078 * progspace.c: Ditto.
5079 * progspace.h: Ditto.
5080 * psympriv.h: Ditto.
5083 * regcache.c: Ditto.
5084 * regcache.h: Ditto.
5085 * remote-fileio.c: Ditto.
5087 * ser-mingw.c: Ditto.
5089 * ser-unix.c: Ditto.
5092 * solib-frv.c: Ditto.
5093 * solib-irix.c: Ditto.
5094 * solib-osf.c: Ditto.
5095 * solib-pa64.c: Ditto.
5096 * solib-som.c: Ditto.
5097 * solib-sunos.c: Ditto.
5098 * solib-svr4.c: Ditto.
5099 * solib-target.c: Ditto.
5103 * stabsread.c: Ditto.
5104 * stabsread.c: Ditto.
5107 * symfile-mem.c: Ditto.
5113 * target-descriptions.c: Ditto.
5114 * target-memory.c: Ditto.
5117 * terminal.h: Ditto.
5120 * tracepoint.c: Ditto.
5121 * tracepoint.h: Ditto.
5125 * user-regs.c: Ditto.
5126 * user-regs.h: Ditto.
5128 * valarith.c: Ditto.
5130 * valprint.c: Ditto.
5131 * valprint.h: Ditto.
5136 * xcoffread.c: Ditto.
5137 * xcoffsolib.c: Ditto.
5138 * xcoffsolib.h: Ditto.
5139 * xml-syscall.c: Ditto.
5140 * xml-tdesc.c: Ditto.
5142 2011-01-05 Michael Snyder <msnyder@vmware.com>
5144 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5145 * cli/cli-decode.c: Ditto.
5146 * cli/cli-dump.c: Ditto.
5147 * cli/cli-logging.c: Ditto.
5148 * cli/cli-script.c: Ditto.
5149 * cli/cli-setshow.c: Ditto.
5150 * common/signals.c: Ditto.
5151 * mi/mi-cmd-break.c: Ditto.
5152 * mi/mi-cmd-disas.c: Ditto.
5153 * mi/mi-cmd-stack.c: Ditto.
5154 * mi/mi-cmd-var.c: Ditto.
5155 * mi/mi-cmds.c: Ditto.
5156 * mi/mi-common.h: Ditto.
5157 * mi/mi-console.c: Ditto.
5158 * mi/mi-interp.c: Ditto.
5159 * mi/mi-main.c: Ditto.
5160 * osf-share/cma_attr.c: Ditto.
5161 * osf-share/cma_deb_core.h: Ditto.
5162 * osf-share/cma_debug_client.h: Ditto.
5163 * osf-share/cma_handle.h: Ditto.
5164 * osf-share/cma_mutex.h: Ditto.
5165 * osf-share/cma_stack_int.h: Ditto.
5166 * osf-share/cma_tcb_defs.h: Ditto.
5167 * python/py-auto-load.c: Ditto.
5168 * python/py-breakpoint.c: Ditto.
5169 * python/py-cmd.c: Ditto.
5170 * python/py-frame.c: Ditto.
5171 * python/py-objfile.c: Ditto.
5172 * python/py-param.c: Ditto.
5173 * python/py-progspace.c: Ditto.
5174 * python/py-symbol.c: Ditto.
5175 * python/py-value.c: Ditto.
5176 * python/python-internal.h: Ditto.
5177 * python/python.c: Ditto.
5178 * tui/tui-data.c: Ditto.
5179 * tui/tui-disasm.c: Ditto.
5180 * tui/tui-hooks.c: Ditto.
5181 * tui/tui-io.c: Ditto.
5182 * tui/tui-layout.c: Ditto.
5183 * tui/tui-regs.c: Ditto.
5184 * tui/tui-source.c: Ditto.
5185 * tui/tui-stack.c: Ditto.
5186 * tui/tui-win.c: Ditto.
5187 * tui/tui-windata.c: Ditto.
5188 * tui/tui-winsource.c: Ditto.
5190 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5192 * configure.ac, gdb.1: Copyright year update.
5194 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5196 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5197 this_pc_in_block, morestack_msym and morestack_name. Check for
5198 "__morestack" minimal symbol there.
5200 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5202 * symfile.c (find_sym_fns): Add call to dont_repeat.
5204 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5206 Copyright year update in most files (performed by copyright.sh).
5208 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5210 * top.c (print_gdb_version): Update copyright year in version output.
5212 For older changes see ChangeLog-2010.
5218 version-control: never