1 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Eli Zaretskii <eliz@gnu.org>
4 * NEWS: Document the new gdbserver --once option.
6 2011-04-21 Jie Zhang <jzhang918@gmail.com>
8 * MAINTAINERS: Update my email address.
10 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
12 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
13 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
14 function call if __STDC_ISO_10646__ macro is defined.
15 (intermediate_encoding): New prototype.
16 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
17 to generate compile time error for unsupported gdb_wchar_t size.
18 (ENDIAN_SUFFIX): New macro.
19 (intermediate_encoding): New function.
21 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
23 * ada-lang.c (struct add_partial_datum): Update the comment for
24 expand_partial_symbol_name.
25 (ada_add_partial_symbol_completions): Rename to ...
26 (ada_expand_partial_symbol_name): ... here, change return type, update
27 function comment, call symbol_completion_match instead of
28 symbol_completion_add.
29 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
30 and ada_expand_partial_symbol_name.
31 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
33 (dw2_map_symbol_names): Remove.
34 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
35 * psymtab.c (map_symbol_names_psymtab): Remove.
36 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
37 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
39 (psym_functions): Unlist map_symbol_names_psymtab.
40 (map_partial_symbol_names): Rename to ...
41 (expand_partial_symbol_names): ... here, change the FUN type, call
42 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
43 * psymtab.h (map_partial_symbol_names): Rename to ...
44 (expand_partial_symbol_names): ... here, change the FUN type.
45 * symfile.h (struct quick_symbol_functions): Update the description of
46 expand_symtabs_matching. Remove map_symbol_names.
47 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
48 (struct add_name_data): Update the comment for
49 expand_partial_symbol_name.
50 (add_partial_symbol_name): Rename to ...
51 (expand_partial_symbol_name): ... here. Replace
52 completion_list_add_name call by strncmp.
53 (default_make_symbol_completion_list_break_on): Use now
54 expand_partial_symbol_names and expand_partial_symbol_name.
55 * symtab.h (enum search_domain): New element ALL_DOMAIN.
57 2011-04-20 Tom Tromey <tromey@redhat.com>
59 * dwarf2read.c (save_gdb_index_command): Replace format
60 documentation with a pointer to the manual.
62 2011-04-20 Pedro Alves <pedro@codesourcery.com>
64 * regcache.c: Include remote.h.
65 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
66 (regcache_dump): Handle regcache_dump_remote.
67 (maintenance_print_remote_registers): New function.
68 (_initialize_regcache): Install "maint print remote-registers"
70 * remote.c (map_regcache_remote_table): New function, factored out
72 (init_remote_state): ... here.
73 (remote_register_number_and_offset): New.
74 * remote.h (remote_register_number_and_offset): Declare.
76 2011-04-20 Pedro Alves <pedro@codesourcery.com>
78 * regcache.c (get_thread_arch_regcache): If creating a regcache for
79 null_ptid, assume and allow a NULL address space, instead of
80 asking the target for the ptid's address space.
81 * infrun.c (ptid_is_pid): Remove assertion.
83 2011-04-19 Tom Tromey <tromey@redhat.com>
85 * windows-tdep.c (windows_xfer_shared_library):
86 * windows-nat.c (get_module_name, windows_make_so):
87 * v850-tdep.c (v850_handle_pushm):
88 * utils.c (null_cleanup, gdb_realpath):
89 * ui-out.c (get_next_header):
90 * tracepoint.c (clear_traceframe_info):
91 * symtab.c (lookup_symtab):
92 * serial.h (struct serial_ops):
93 * mipsread.c (read_alphacoff_dynamic_symtab):
94 * infcmd.c (print_return_value):
95 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
96 * f-exp.y (parse_number):
97 * exceptions.c (catch_exceptions):
98 * dummy-frame.c (dummy_frame_this_id):
99 * defs.h (struct cleanup):
100 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
101 * arm-tdep.c (arm_push_dummy_call):
102 * amd64-tdep.h (amd64_collect_xsave):
103 * amd64-tdep.c (amd64_collect_xsave):
104 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
105 * README (typing): Remove duplicate words.
106 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
107 * infrun.c (siginfo_value_read): Fix typo.
108 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
109 * top.c (source_line_number): Add comma.
111 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
113 * thread.c (any_live_thread_of_process): Prioritize threads
114 that are not executing.
115 * gdbthread.h (any_live_thread_of_process): Update comment
118 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
120 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
121 (scan_xcoff_symtab): Likewise.
123 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
125 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
128 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
129 Pedro Alves <pedro@codesourcery.com>
131 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
132 variables to simplify code and avoid == operator at end of
133 line as this is against GNU coding standards.
135 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
137 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
138 lm_name to name_lm to avoid conflict with lm_name function.
140 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
142 ARI fixes: Use only lowercase function name for static functions.
143 * nto-tdep.c (LM_ADDR): Rename to...
144 (lm_addr): New function name.
145 (nto_relocate_section_addresses): Adapt to change above.
146 * solib-sunos.c (LM_ADDR): Rename to...
147 (lm_addr): New function name.
148 (LM_NEXT): Rename to...
149 (lm_next): New function name.
150 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
151 function name changes above.
152 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
153 (lm_addr_from_link_map): New function name.
154 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
155 (has_lm_dynamic_from_link_map): New function name.
156 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
157 (lm_dynamic_from_link_map): New function name.
158 (LM_ADDR_CHECK): Rename to...
159 (lm_addr_check): New function name.
160 (LM_NEXT): Rename to...
161 (lm_next): New function name.
162 (LM_PREV): Rename to...
163 (lm_prev): New function name.
164 (LM_NAME): Rename to...
165 (lm_name): New function name.
166 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
167 (ignore_first_link_map_entry): New function name.
168 (svr4_keep_data_in_core): Adapt to function name changes above.
169 (svr4_current_sos): Likewise.
170 (enable_break): Likewise.
171 (svr4_relocate_section_addresses): Likewise.
173 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
176 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
177 sprintf. Simplify code and avoid loosing memory.
178 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
179 (call0_frame_cache): Remove && operator from end of line.
181 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
183 Fix libraries displacement if they change whether they were prelinked.
184 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
185 does not match. Comment why.
187 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
189 * corelow.c: Include wrapper.h.
190 (core_open): Call now gdb_target_find_new_threads.
191 * wrapper.c: Include target.h.
192 (gdb_target_find_new_threads): New.
193 * wrapper.h (gdb_target_find_new_threads): New declaration.
195 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
197 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
198 even if !TARGET_HAS_EXECUTION.
200 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
202 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
203 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
204 bfd_get_synthetic_symtab.
205 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
206 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
207 parameter parent, remove the call to add_separate_debug_objfile.
208 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
209 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
210 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
211 parent, new comment for it, call add_separate_debug_objfile for it.
212 (symbol_file_add_separate): Pass objfile as the parameter parent,
213 remove the call to add_separate_debug_objfile.
214 (symbol_file_add_from_bfd): New parameter parent, pass it.
215 (symbol_file_add): Pass NULL to the new parameter parent.
216 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
218 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
220 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
223 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
225 Fix Python access to inlined frames.
226 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
227 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
229 2011-04-15 Tom Tromey <tromey@redhat.com>
231 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
233 2011-04-15 Gary Benson <gbenson@redhat.com>
235 * MAINTAINERS: Add myself to write-after-approval section.
237 2011-04-14 Mike Frysinger <vapier@gentoo.org>
239 * remote-sim.c (sim_command_completer): New function.
240 (_initialize_remote_sim): Set completer to sim_command_completer.
242 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
244 * breakpoint.c (print_exception_catchpoint): Rename to ...
245 (print_it_exception_catchpoint): ... this.
246 (gnu_v3_exception_catchpoint_ops): Update with new name
247 for print_it_exception_catchpoint.
249 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
251 * MAINTAINERS: Add myself for write after approval privileges.
253 2011-04-13 Marek Polacek <mpolacek@redhat.com>
255 * MAINTAINERS: Add myself as a write-after-approval maintainer.
257 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
259 * breakpoint.c (watch_command_1): Remove colon from exp_string.
261 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
263 * breakpoint.c (save_breakpoints): Verify whether
264 breakpoint_ops.print_recreate is defined before calling it.
266 2011-04-11 Gary Benson <gbenson@redhat.com>
268 Fix failure with --enable-maintainer-mode.
269 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
271 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
274 * symtab.c (search_symbols): Reorder the KIND description in the
275 function comment. Remove the unused 4th element of types, types2,
276 types3 and types4. New gdb_assert on KIND.
277 (symtab_symbol_info): Remove the unused 4th element of classnames.
278 New gdb_assert on KIND.
279 * symtab.h (enum search_domain): New warning in the enum comment.
280 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
283 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Fix crash of gdb save-index on a STABS file.
286 * dwarf2read.c (write_psymtabs_to_index): Return also on no
289 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
291 Fix DW_AT_accessibility compatibility with gcc-4.6+.
292 * dwarf2read.c: Include ctype.h.
293 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
295 (dwarf2_add_field): Fix new_field->accessibility by calling
296 dwarf2_default_access_attribute. Restructure setting accessibility
298 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
299 is_private and is_protected by calling
300 dwarf2_default_access_attribute.
302 2011-04-08 Kevin Buettner <kevinb@redhat.com>
304 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
305 to the initialization.
307 2011-04-08 Steve Ellcey <sje@cup.hp.com>
309 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
312 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
314 Remove support for old Cygwin 1.5 versions.
315 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
316 function on old Cygwin version.
317 * windows-nat.c: Remove cygwin version check and always define
318 __USEWIDE for Cygwin compilation.
320 2011-04-07 Yao Qi <yao@codesourcery.com>
322 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
324 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
325 (arm_copy_svc): Remove parameters INSN and TO.
326 (decode_svc_copro): Update caller.
327 * arm-tdep.h (struct displaced_step_closure): Remove parameters
328 from function pointer `copy_svc_os'.
330 2011-04-07 Yao Qi <yao@codesourcery.com>
332 * arm-tdep.c (cleanup_branch): Set a correct return address in
333 LR for ARM and Thumb.
335 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
338 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
339 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
340 in the function comment, a new note on values compatibility.
341 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
342 * symtab.h (SYMBOL_HASH_NEXT): New.
344 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
346 * ppc-linux-nat.c (check_condition): Add len output parameter.
347 Set it based on the memory region referenced in the condition
348 expression. Update all callers.
350 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
352 Fix crash regression on systems featuring .gdb_index.
353 * objfiles.c (free_objfile): Move the
354 forget_cached_source_info_for_objfile call earlier. Comment it.
355 Extend the comment for objfile_free_data.
357 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
359 Fix regression of displaying the debug format.
360 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
363 2011-04-04 Tom Tromey <tromey@redhat.com>
365 * cli/cli-interp.c (struct captured_execute_command_args):
367 (do_captured_execute_command): Remove.
368 (safe_execute_command): Use TRY_CATCH.
369 * cli/cli-script.c (struct wrapped_read_command_file_args):
371 (wrapped_read_command_file): Remove.
372 (script_from_file): Use TRY_CATCH.
373 * exceptions.c (catch_exception): Remove.
374 * exceptions.h (catch_exception): Remove.
375 (deprecated_throw_reason): Update comment.
376 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
377 argument to 'context'.
378 (mi_execute_command): Use TRY_CATCH.
379 * remote.c (struct start_remote_args): Remove.
380 (remote_start_remote): Update; change arguments.
381 (remote_open_1): Use TRY_CATCH.
383 2011-04-04 Tom Tromey <tromey@redhat.com>
385 * tracepoint.c (scope_info): Update.
386 * symtab.c (decode_line_spec): Update.
387 * python/python.c (gdbpy_decode_line): Update.
388 * linespec.h (decode_line_1): Update.
389 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
390 (decode_compound, find_method, symtab_from_filename)
391 (decode_variable): Likewise.
392 * cli/cli-cmds.c (edit_command): Update.
393 (list_command): Update.
394 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
396 (create_breakpoint): Update.
397 (until_break_command): Update.
398 (addr_string_to_sals): Update.
399 (decode_line_spec_1): Update.
401 2011-04-04 Tom Tromey <tromey@redhat.com>
403 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
404 (do_captured_parse_breakpoint): Remove.
405 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
406 Use TRY_CATCH directly.
408 2011-04-04 Tom Tromey <tromey@redhat.com>
410 * symtab.h (free_symtab): Remove.
411 (forget_cached_source_info_for_objfile): Declare.
412 * symmisc.c (free_symtab): Remove.
413 * source.c (forget_cached_source_info_for_objfile): New function.
414 (forget_cached_source_info): Use it.
415 * objfiles.c (free_objfile): Simplify check before calling
416 clear_current_source_symtab_and_line. Call
417 forget_cached_source_info_for_objfile.
419 2011-04-04 Tom Tromey <tromey@redhat.com>
421 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
422 (new_symtab): Don't set `free_code' on symtab.
423 (new_linetable): Properly handle size==0.
424 * symtab.h (struct symtab) <free_code, free_func>: Remove.
425 * symmisc.c (free_symtab): Don't free the linetable. Don't call
427 * jv-lang.c (struct jv_per_objfile_data): New.
428 (jv_per_objfile_free): Free the data.
429 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
430 (get_java_class_symtab): Set the `dict' field on the
432 (free_class_block): Remove.
433 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
436 2011-04-04 Tom Tromey <tromey@redhat.com>
438 * symfile.c (reread_symbols): Update.
439 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
441 * objfiles.c (allocate_objfile): Update.
442 * cp-support.h (cp_check_possible_namespace_symbols): Don't
444 * cp-namespace.c (lookup_symbol_file): Don't call
445 lookup_possible_namespace_symbol.
446 (initialize_namespace_symtab, get_possible_namespace_block)
447 (free_namespace_block, cp_check_possible_namespace_symbols)
448 (check_possible_namespace_symbols_loop)
449 (check_one_possible_namespace_symbol)
450 (lookup_possible_namespace_symbol): Remove.
451 (maintenance_cplus_namespace): Replace with notice.
452 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
454 2011-04-04 Tom Tromey <tromey@redhat.com>
456 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
457 * symtab.h (struct symtab) <producer, debugformat>: Now const.
458 * symmisc.c (free_symtab): Don't free debugformat.
459 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
460 (record_debugformat, record_producer): Document.
461 * buildsym.c (end_symtab): Don't save debugformat and producer
463 (end_symtab): Don't free debugformat and producer fields.
464 (record_debugformat): Don't call xstrdup.
465 (record_producer): Likewise.
467 2011-04-04 Tom Tromey <tromey@redhat.com>
469 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
470 (source_line_charpos, source_charpos_line): Remove.
472 2011-04-04 Tom Tromey <tromey@redhat.com>
474 * symtab.h (domain_enum): Split in two...
475 (enum search_domain): New.
476 (search_symbols): Update.
477 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
478 redundant declarations.
479 (search_symbols): Change 'kind' argument to search_domain.
481 (print_symbol_info): Likewise.
482 (symtab_symbol_info): Likewise.
483 * symfile.h (struct quick_symbol_functions)
484 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
485 <expand_symtabs_matching>: Likewise.
486 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
487 (expand_symtabs_matching_via_partial): Update.
488 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
489 (dw2_expand_symtabs_for_function): Update.
490 * block.h: Moved anonymous enum...
491 * defs.h (enum block_enum): ... here. Now named.
493 2011-04-03 Joel Brobecker <brobecker@adacore.com>
495 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
496 * version.in: Bump version to 7.3.50.20110403-cvs.
498 2011-04-03 Joel Brobecker <brobecker@adacore.com>
500 * NEWS: Create a new section for the next release branch.
501 Rename the section of the current branch, now that it has
504 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
506 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
507 for "fpscr" in target description.
509 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
511 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
512 initialize it. Delay HASH initialization. Strip the part after open
513 parenthesis for languages with qualifiers. Call do_cleanups.
515 2011-04-01 Tom Tromey <tromey@redhat.com>
517 * utils.c (report_command_stats): Don't print `-' for negative
520 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
522 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
523 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
526 2011-04-01 Joel Brobecker <brobecker@adacore.com>
528 * breakpoint.h (bpdisp_text): Add declaration.
529 * breakpoint.c (bpdisp_text): Make non-static.
530 * ada-lang.c: #include "mi/mi-common.h".
531 (print_it_exception): Rewrite to improve GDB/MI output.
533 2011-04-01 Pedro Alves <pedro@codesourcery.com>
535 * arm-tdep.h (struct address_space): Add forward declaration.
537 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
539 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
540 * arm-tdep.c (arm_override_mode): New global.
541 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
542 execution mode heuristics.
543 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
544 second single-step breakpoint if needed, using
545 arm_insert_single_step_breakpoint.
546 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
547 ARM execution mode, do not call thumb_get_next_pc_raw.
548 (arm_get_next_pc): Encode execution mode in return value. Call
549 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
550 (arm_insert_single_step_breakpoint): New function.
551 (arm_software_single_step): Call it.
552 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
553 argument to return execution mode of sigreturn target.
554 (arm_linux_syscall_next_pc): Use it.
555 (arm_linux_copy_svc): Update call.
556 (arm_linux_software_single_step): Call
557 arm_insert_single_step_breakpoint.
559 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
564 2011-03-31 Tom Tromey <tromey@redhat.com>
566 * varobj.c (update_dynamic_varobj_children): Properly handle
567 errors from iterator.
569 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
571 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
572 struct linkage name twice.
574 2011-03-31 Tom Tromey <tromey@redhat.com>
576 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
577 missing ">" to message.
579 2011-03-31 Tom Tromey <tromey@redhat.com>
581 * varobj.c (instantiate_pretty_printer): Remove duplicate
584 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
586 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
587 if neither saved value nor register available (e.g. signal frame).
589 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
591 * macroexp.c (expand): Avoid uninitialized variable
594 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
596 * breakpoint.c (break_range_command): Fix typo in comment.
598 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
599 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
601 Implement support for PowerPC BookE ranged breakpoints.
602 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
603 * breakpoint.h (struct bp_target_info) <length>: New member
605 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
606 instead of struct breakpoint as argument, and also add ASPACE
607 and BP_ADDR arguments. Update all callers.
608 (struct breakpoint_ops) <print_one_detail>: New method.
609 (struct breakpoint) <addr_string_range_end>: New member variable.
610 * breakpoint.c (breakpoint_location_address_match): Add function
612 (insert_bp_location): Set bl->target_info.length.
613 (breakpoint_here_p): Call breakpoint_location_address_match.
614 (moribund_breakpoint_here_p): Likewise.
615 (regular_breakpoint_inserted_here_p): Likewise.
616 (breakpoint_thread_match): Likewise.
617 (bpstat_stop_status): Likewise.
618 (bpstat_check_location): Move call to
619 breakpoint_ops.breakpoint_hit to the top.
620 (print_one_breakpoint_location): Call
621 breakpoint_ops.print_one_detail if available.
622 (breakpoint_address_match_range): New function.
623 (breakpoint_location_address_match): Likewise.
624 (breakpoint_locations_match): Compare the length field of the
626 (hw_breakpoint_used_count): Count resources used by all locations
627 in a breakpoint, and use breakpoint_ops.resources_needed if
629 (breakpoint_hit_ranged_breakpoint): New function.
630 (resources_needed_ranged_breakpoint): Likewise.
631 (print_it_ranged_breakpoint): Likewise.
632 (print_one_ranged_breakpoint): Likewise.
633 (print_one_detail_ranged_breakpoint): Likewise.
634 (print_mention_ranged_breakpoint): Likewise.
635 (print_recreate_ranged_breakpoint): Likewise.
636 (ranged_breakpoint_ops): New structure.
637 (find_breakpoint_range_end): New function.
638 (break_range_command): Likewise.
639 (delete_breakpoint): Free addr_string_range_end.
640 (update_breakpoint_locations): Add SALS_END argument. Update
641 all callers. Calculate breakpoint length if a non-zero SALS_END
642 is given. Call breakpoint_locations_match instead of
643 breakpoint_address_match.
644 (reset_breakpoint): Find SaL of the end of the range if B is a
646 (_initialize_breakpoint): Register break-range command.
647 * defs.h (print_core_address): Add function prototype.
648 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
650 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
651 (ppc_linux_remove_hw_breakpoint): Likewise.
652 (_initialize_ppc_linux_nat): Initialize
653 to_ranged_break_num_registers.
654 * target.c (update_current_target): Add comment about
655 to_ranged_break_num_registers.
656 (target_ranged_break_num_registers): New function.
657 * target.h (struct target_ops) <to_ranged_break_num_registers>:
659 (target_ranged_break_num_registers): Add function prototype.
660 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
661 * utils.c (print_core_address): ... here.
663 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
665 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
666 variable compiler warning.
668 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
670 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
672 (re_set_breakpoint): ... to here ...
673 (addr_string_to_sals): ... and here.
675 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
677 * Makefile.in (SFILES): Add missing C sources.
678 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
681 2011-03-29 Mike Frysinger <vapier@gentoo.org>
683 * .gitignore: New file.
685 2011-03-29 Mike Frysinger <vapier@gentoo.org>
687 * NEWS: Mention new cfi device simulation.
689 2011-03-29 Tom Tromey <tromey@redhat.com>
691 * dwarf2read.c (fixup_partial_die): Handle linkage name on
692 otherwise anonymous types.
693 (dwarf2_name): Likewise.
694 * valops.c (value_struct_elt_for_reference): Refine artificial
695 type logic. Call error if j==-1.
697 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
699 Fix false GCC warning.
700 * infcall.c (find_function_addr): Initialize funaddr.
702 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
704 Fix mingw compilation with --enable-targets=all.
705 * remote-mips.c (gdb_usleep.h): Include header.
706 (mips_enter_debug): Use gdb_usleep instead of sleep.
708 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
710 Support resolution of STT_GNU_IFUNC via breakpoints.
711 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
712 bp_gnu_ifunc_resolver_return.
713 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
714 the loop. Support bp_gnu_ifunc_resolver and
715 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
716 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
718 (bptype_string, print_one_breakpoint_location): Support
719 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
720 (user_settable_breakpoint): Return true also for
721 bp_gnu_ifunc_resolver.
722 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
723 bp_gnu_ifunc_resolver_return.
724 (set_breakpoint_location_function): New parameter explicit_loc,
725 describe it. Call find_pc_partial_function_gnu_ifunc with new
726 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
727 EXPLICIT_LOC is not set.
728 (set_raw_breakpoint): Set EXPLICIT_LOC for
729 set_breakpoint_location_function.
730 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
731 set_breakpoint_location_function.
732 (mention): Support bp_gnu_ifunc_resolver and
733 bp_gnu_ifunc_resolver_return.
734 (add_location_to_breakpoint): Set EXPLICIT_LOC for
735 set_breakpoint_location_function.
736 (update_breakpoint_locations): Remove static.
737 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
738 bp_gnu_ifunc_resolver_return.
739 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
740 bp_gnu_ifunc_resolver_return.
741 (update_breakpoint_locations): New declaration.
742 * elfread.c: Include gdbthread.h and regcache.h.
743 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
745 (elf_gnu_ifunc_fns): Install them.
746 * minsyms.c (stub_gnu_ifunc_resolver_stop)
747 (stub_gnu_ifunc_resolver_return_stop): New functions.
748 (stub_gnu_ifunc_fns): Install them.
749 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
750 and gnu_ifunc_resolver_return_stop.
751 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
753 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
755 STT_GNU_IFUNC reader implementation.
756 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
757 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
758 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
759 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
760 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
761 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
762 (elf_gnu_ifunc_resolve_addr): New.
763 (elf_symfile_read): Call elf_rel_plt_read.
764 (elf_gnu_ifunc_fns): New.
765 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
766 Install elf_gnu_ifunc_fns.
767 * infcall.c (find_function_return_type): New function.
768 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
769 * minsyms.c (stub_gnu_ifunc_resolve_addr)
770 (stub_gnu_ifunc_resolve_name): New functions.
771 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
772 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
773 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
775 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
777 Code cleanup for later STT_GNU_IFUNC support.
778 * infcall.c (find_function_addr): Remove variable code, use explicit
779 dereferences for it. Move VALUE_TYPE initialization later.
781 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
783 GDB find_pc_partial_function support for STT_GNU_IFUNC.
784 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
785 (clear_pc_function_cache): Clear it.
786 (find_pc_partial_function): Rename to ...
787 (find_pc_partial_function_gnu_ifunc): ... this function. New
788 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
789 (find_pc_partial_function): New wrapper for this function.
790 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
792 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
794 GDB internal type support for STT_GNU_IFUNC.
795 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
796 (elf_symtab_read): Set mst_text_gnu_ifunc for
797 BSF_GNU_INDIRECT_FUNCTION.
798 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
799 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
800 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
801 nodebug_got_plt_symbol.
802 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
803 (TYPE_GNU_IFUNC): New.
804 (struct main_type): New field flag_gnu_ifunc.
805 (struct builtin_type): New field builtin_func_func.
806 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
807 nodebug_got_plt_symbol.
808 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
809 (in_gnu_ifunc_stub): New.
810 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
812 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
813 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
814 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
816 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
817 * symtab.c (search_symbols): Likewise.
818 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
819 and mst_slot_got_plt.
820 (in_gnu_ifunc_stub): New declaration.
822 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
824 Support a ring of related breakpoints.
825 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
826 other functions, add gdb_assert.
827 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
828 watchpoint_del_at_next_stop.
829 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
830 (bpstat_stop_status): Handle ring in related_breakpoint.
831 (set_raw_breakpoint_without_location): Initialize ring in
833 (delete_breakpoint): Handle ring in related_breakpoint, use
834 watchpoint_del_at_next_stop.
835 (map_breakpoint_numbers): Handle ring in related_breakpoint.
837 2011-03-28 Tom Tromey <tromey@redhat.com>
840 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
841 with `language_minimal'.
843 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
845 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
846 instead of checking for STT_ARM_TFUNC symbol type.
848 2011-03-25 Tom Tromey <tromey@redhat.com>
850 * linespec.c (symbol_found): Restore line-based result for
851 non-LOC_LABEL symbols.
853 2011-03-25 Kai Tietz <ktietz@redhat.com>
855 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
856 instead of strcmp for comparison.
857 (tui_source_is_displayed): Likewise.
858 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
860 2011-03-24 Mark Wielaard <mjw@redhat.com>
862 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
864 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
865 (find_partial_die_in_comp_unit): Likewise in comment.
866 (read_attribute_value): Likewise.
867 (lookup_die_type): Likewise.
868 (dwarf_form_name): Likewise.
869 (dump_die_shallow): Likewise.
870 (follow_die_ref_or_sig): Likewise.
872 2011-03-24 Tom Tromey <tromey@redhat.com>
874 PR breakpoints/11816:
875 * linespec.c (decode_line_1): Parse `function:label' linespecs.
876 (decode_compound): Update.
877 (find_function_symbol): New function.
878 (decode_dollar): Update.
879 (decode_label): Add 'function_symbol' parameter. Handle
880 function-relative labels.
881 (decode_variable): Update.
882 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
883 not its line. Set `special_display' and canonical name for
886 2011-03-24 Tom Tromey <tromey@redhat.com>
888 * linespec.h (struct linespec_result) <special_display>: New
890 * breakpoint.h (struct breakpoint) <display_canonical>: New
892 * breakpoint.c (print_breakpoint_location): Respect
894 (create_breakpoint_sal): Add 'display_canonical' parameter.
895 (create_breakpoints_sal): Update.
896 (create_breakpoint): Update.
898 2011-03-24 Tom Tromey <tromey@redhat.com>
900 * symtab.c (decode_line_spec): Update.
901 * linespec.c (build_canonical_line_spec): Change type of
903 (decode_line_2, decode_line_1, decode_objc, decode_compound)
904 (find_method, decode_all_digits, decode_dollar, decode_label)
905 (symbol_found): Likewise.
906 (init_linespec_result): New function.
907 * breakpoint.c (struct captured_parse_breakpoint_args)
908 <canonical_p>: New field, replaces addr_string_p.
909 (create_breakpoints_sal): Add 'canonical' parameter, replacing
911 (parse_breakpoint_sals): Likewise.
912 (do_captured_parse_breakpoint): Update.
913 (create_breakpoint): Use struct linespec_result.
914 (until_break_command): Update.
915 (breakpoint_re_set_one): Update.
916 (decode_line_spec_1): Update.
917 * linespec.h (struct linespec_result): New.
918 (init_linespec_result): Declare.
920 2011-03-23 Pedro Alves <pedro@codesourcery.com>
922 * regcache.c (regcache_raw_read): If the target didn't supply a
923 given raw register, mark it as unavailable.
925 2011-03-23 Kai Tietz <ktietz@redhat.com>
927 * breakpoint.c (clear_command): Use filename_cmp
928 instead of strcmp for comparison.
929 * buildsym.c (watch_main_source_file_lossage): Likewise.
930 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
931 checking just for slash.
932 * dbxread.c (read_dbx_symtab): Use lbasename instead of
933 strrchr and filename_cmp instead of strcmp for filenames.
934 (add_old_header_file): Use filename_cmp
935 instead of strcmp for comparison.
936 * exec.c (exec_set_section_address): Likewise.
937 * macrotab.c (macro_lookup_inclusion): Likewise.
938 (macro_lookup_inclusion): Likewise.
939 * elfread.c (_initialize_elfread): Likewise.
940 (elfstab_offset_sections): Likewise.
941 (elfstab_offset_sections): Use lbasename instead of
943 * mdebugread.c (parse_partial_symbols): Likewise.
944 (arse_partial_symbols): Use filename_(n)cmp instead of
945 str(n)cmp for comparison.
946 * minsyms.c (lookup_minimal_symbol): Likewise.
947 * psymtab.c (read_psymtabs_with_filename): Likewise.
948 * solib.c (solib_read_symbols): Likewise.
949 (reload_shared_libraries_1): Likewise.
950 * symmisc.c (maintenance_print_symbols): Likewise.
951 * symfile.c (separate_debug_file_exists): Likewise.
952 (reread_symbols): Likewise.
953 (find_separate_debug_file_by_debuglink): Likewise.
954 * remote-fileio.c (remote_fileio_func_rename): Likewise.
955 * source.c (add_path): Likewise.
956 * symtab.c (filename_seen): Likewise.
957 (file_matches): Likewise.
958 (print_symbol_info): Likewise.
959 (maybe_add_partial_symtab_filename): Likewise.
960 (make_source_files_completion_list): Likewise.
961 * xml-syscall.c (init_sysinfo): Likewise.
962 * windows-nat.c (_initialize_check_for_gdb_ini): Use
963 IS_DIR_SEPARATOR for checking for trailing path separator.
965 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
967 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
968 label abort_expression.
969 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
970 DWARF_VALUE_OPTIMIZED_OUT.
972 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
975 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
976 to linkage_name. Invert its value. Update the function comment.
977 (c_type_print_varspec_suffix): Invert it at the caller.
978 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
980 2011-03-22 Pedro Alves <pedro@codesourcery.com>
982 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
983 errors when reading the `stop_pc'.
984 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
987 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
989 * NEWS: Document gdb.Write stream keyword.
991 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
994 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
995 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
996 (dwarf2_add_field): Fix new_field->accessibility for
997 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
999 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1003 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1004 other error classes. Do not print stack trace.
1006 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1008 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1009 (dwarf2_add_field): Fix new_field->accessibility for
1010 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1012 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1014 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1015 encountering a load via a non-SP register.
1017 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1019 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1020 field in returned unwinder.
1022 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1026 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1028 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1031 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1033 * frame.c (frame_unwind_register): Throw an error if unwinding the
1035 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1036 an unwind stop reason.
1037 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1038 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1039 UNWIND_UNAVAILABLE>: New.
1040 * inline-frame.c (inline_frame_unwind): Install
1041 default_frame_unwind_stop_reason.
1042 * frame-unwind.c: Include "exceptions.h".
1043 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1044 (default_frame_unwind_stop_reason): New.
1045 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1046 (default_frame_unwind_stop_reason): Declare.
1047 (struct frame_unwind) <stop_reason>: New function pointer.
1049 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1050 * dwarf2-frame.c: Include exceptions.h.
1051 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1052 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1053 computing the CFA. If such an error was thrown, set
1054 unavailable_retaddr.
1055 (dwarf2_frame_unwind_stop_reason): New.
1056 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1058 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1059 (dwarf2_signal_frame_unwind): Ditto.
1061 * amd64-tdep.c: Include "exceptions.h".
1062 (struct amd64_frame_cache): New field "base_p".
1063 (amd64_init_frame_cache): Clear it.
1064 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1065 Avoid reading registers with functions that throw if the register
1066 is not necessary to compute the frame base.
1067 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1068 swallowing NOT_AVAILABLE_ERROR.
1069 (amd64_frame_unwind_stop_reason): New.
1070 (amd64_frame_this_id): Don't build a frame id if the frame base
1072 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1073 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1074 base_p if the frame base was computable.
1075 (amd64_sigtramp_frame_unwind_stop_reason): New.
1076 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1077 frame base was unavailable.
1078 (amd64_sigtramp_frame_unwind): Install
1079 amd64_sigtramp_frame_unwind_stop_reason.
1080 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1081 base_p if the frame base was computable.
1082 (amd64_epilogue_frame_unwind_stop_reason): New.
1083 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1084 frame base was unavailable.
1085 (amd64_epilogue_frame_unwind): Install
1086 amd64_epilogue_frame_unwind_stop_reason.
1087 * i386-tdep.c: Include "exceptions.h".
1088 (struct i386_frame_cache): New field "base_p".
1089 (i386_init_frame_cache): Clear it.
1090 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1091 Avoid reading registers with functions that throw if the register
1092 is not necessary to compute the frame base.
1093 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1094 swallowing NOT_AVAILABLE_ERROR.
1095 (i386_frame_unwind_stop_reason): New.
1096 (i386_frame_this_id): Don't build a frame id if the frame base was
1098 (i386_frame_prev_register): Handle unavailable SP.
1099 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1100 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1101 base_p if the frame base was computable.
1102 (i386_epilogue_frame_unwind_stop_reason): New.
1103 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1104 base was unavailable.
1105 (i386_epilogue_frame_unwind): Install
1106 i386_epilogue_frame_unwind_stop_reason.
1107 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1108 base_p if the frame base was computable.
1109 (i386_sigtramp_frame_unwind_stop_reason): New.
1110 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1111 base was unavailable.
1112 (i386_sigtramp_frame_unwind): Install
1113 i386_sigtramp_frame_unwind_stop_reason.
1114 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1115 type's size, not the register's.
1116 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1118 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1119 default_frame_unwind_stop_reason.
1120 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1121 (alpha_heuristic_frame_unwind): Ditto.
1122 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1123 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1124 * avr-tdep.c (avr_frame_unwind): Ditto.
1125 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1127 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1128 * frv-tdep.c (frv_frame_unwind): Ditto.
1129 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1130 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1131 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1132 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1133 (hppa_stub_frame_unwind): Ditto.
1134 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1135 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1136 (ia64_libunwind_frame_unwind)
1137 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1138 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1139 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1140 * m32c-tdep.c (m32c_unwind): Ditto.
1141 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1142 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1143 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1144 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1145 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1146 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1147 * mep-tdep.c (mep_frame_unwind): Ditto.
1148 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1149 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1150 (mips_stub_frame_unwind): Ditto.
1151 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1152 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1153 * mt-tdep.c (mt_frame_unwind): Ditto.
1154 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1155 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1156 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1157 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1158 (s390_sigtramp_frame_unwind): Ditto.
1159 * score-tdep.c (score_prologue_unwind): Ditto.
1160 * sh-tdep.c (sh_frame_unwind): Ditto.
1161 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1162 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1163 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1164 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1165 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1166 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1167 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1168 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1169 (sparc64obsd_trapframe_unwind): Ditto.
1170 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1171 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1172 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1173 * v850-tdep.c (v850_frame_unwind): Ditto.
1174 * vax-tdep.c (vax_frame_unwind): Ditto.
1175 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1176 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1177 * xtensa-tdep.c (xtensa_unwind): Ditto.
1179 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1181 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1182 there's always a frame. Use get_frame_pc_if_available instead of
1183 get_frame_pc, and if there's no PC available, don't look up a
1186 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1188 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1191 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1193 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1196 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1198 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1199 * frame.c (frame_unwind_caller_pc_if_available): New.
1200 * stack.c (frame_info): Handle unavailable PC.
1202 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1204 * frame.c (frame_unwind_pc): Rename to ...
1205 (frame_unwind_pc_if_available): ... this. New `pc' output
1206 parameter. Change return type to int. Gracefully handle
1207 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1208 happened, or 1 otherwise.
1209 (frame_unwind_pc): Reimplement on top of
1210 frame_unwind_pc_if_available.
1211 (get_frame_func): Rename to ...
1212 (get_frame_func_if_available): New `pc' output parameter. Change
1213 return type to int. Gracefully handle the PC not being available.
1214 (get_frame_func): Reimplement on top of
1215 get_frame_func_if_available.
1216 (select_frame): Handle the PC being unavailable.
1217 (get_prev_frame): Handle the PC being unavailable.
1218 (get_frame_pc_if_available): New.
1219 (get_frame_address_in_block_if_available): New.
1220 (find_frame_sal): Handle the frame PC not being available.
1221 * frame.h (get_frame_pc_if_available): Declare.
1222 (get_frame_address_in_block_if_available): Declare.
1223 (get_frame_func_if_available): Declare.
1224 * stack.c (print_frame_info): Handle the PC being unavailable.
1225 (find_frame_funname): Ditto.
1226 (print_frame): Handle the PC being unavailable.
1227 (get_frame_language): Ditto.
1228 * blockframe.c (get_frame_block): Ditto.
1229 * macroscope.c (default_macro_scope): Ditto.
1230 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1232 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1234 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1235 NOT_AVAILABLE_ERROR when evaluating the location expression.
1237 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1239 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1240 returning that the register piece is unavailable/optimized out.
1241 (write_pieced_value): Handle get_frame_register_bytes returning
1242 that the register piece is unavailable/optimized out when doing a
1243 read-modify write of a bitfield.
1244 * findvar.c (value_from_register): Handle get_frame_register_bytes
1245 returning that the register piece is unavailable/optimized out.
1246 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1247 and `unavailablep'. Throw error on bad debug info. Use
1248 frame_register instead of frame_register_read, to fill in the new
1250 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1252 * valops.c: (value_assign): Adjust, and handle
1253 get_frame_register_bytes failing.
1254 * spu-tdep.c: Include exceptions.h.
1255 (spu_software_single_step): Adjust, and handle
1256 get_frame_register_bytes failing.
1257 (spu_get_longjmp_target): Ditto.
1258 * gdbarch.sh (register_to_value): Change to return int. New
1259 parameters `optimizedp' and `unavailablep'.
1260 * gdbarch.h, gdbarch.c: Regenerate.
1261 * i386-tdep.c (i386_register_to_value): Adjust to new
1262 gdbarch_register_to_value interface.
1263 * i387-tdep.c (i387_register_to_value): Ditto.
1264 * i387-tdep.h (i387_register_to_value): Ditto.
1265 * alpha-tdep.c (alpha_register_to_value): Ditto.
1266 * ia64-tdep.c (ia64_register_to_value): Ditto.
1267 * m68k-tdep.c (m68k_register_to_value): Ditto.
1268 * mips-tdep.c (mips_register_to_value): Ditto.
1269 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1271 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1273 * findvar.c (value_of_register): Mark the value as unavailable, if
1274 the register is unavailable.
1275 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1276 (frame_register): New `unavailablep' parameter.
1277 (frame_register_read): Update comment.
1278 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1279 Set it if the register is unavailable. If the register is
1280 unavailable, clear the output buffer.
1281 (frame_register): New `unavailablep' parameter. Pass it down.
1282 (frame_unwind_register): Adjust.
1283 (put_frame_register): Adjust.
1284 (frame_register_read): Adjust. Also return false if the register
1286 (frame_register_unwind_location): Adjust.
1287 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1288 is unavailable, mark the value accordingly.
1289 * stack.c (frame_info): Handle unavailable registers.
1291 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1293 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1294 simplify, using regcache_cooked_read.
1296 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1298 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1299 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1300 (regcache_raw_read_unsigned, regcache_raw_read_part)
1301 (regcache_cooked_read, regcache_cooked_read_signed)
1302 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1303 (regcache_cooked_read_ftype): Change return to enum
1305 * regcache.c: Include exceptions.h
1306 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1307 (do_cooked_read): Change return to enum register_status. Always
1308 forward to regcache_cooked_read.
1309 (regcache_raw_read): Change return to enum register_status. If
1310 the register is not REG_VALID, memset the buffer. Return the
1312 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1313 return the register's status.
1314 (regcache_raw_read_unsigned): Ditto.
1315 (regcache_cooked_read): Change return to enum register_status.
1316 Assert that with read-only regcaches, the register's status must
1317 be known. If the regcache is read-only, and the register is not
1318 REG_VALID, memset the buffer. Return the register's status.
1319 (regcache_cooked_read_signed): Change return to enum
1320 register_status. Handle non-REG_VALID registers and return the
1322 (regcache_cooked_read_unsigned): Change return to enum
1323 register_status. Handle non-REG_VALID registers and return the
1325 (regcache_xfer_part, regcache_raw_read_part)
1326 (regcache_cooked_read_part): Change return to enum
1327 register_status. Return the register's status.
1328 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1330 (regcache_dump): Handle unavailable cooked registers.
1331 * frame.c (do_frame_register_read): Adjust interface to match
1332 regcache_cooked_read_ftype.
1333 * gdbarch.sh (pseudo_register_read): Change return to enum
1335 * gdbarch.h, gdbarch.c: Regenerate.
1337 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1339 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1340 register_status. If reading a raw register indicates the raw
1341 register is not valid, return the raw register's status,
1342 otherwise, return REG_VALID.
1343 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1344 register_status. Handle non-REG_VALID raw registers and return
1345 the register's status.
1346 * arm-tdep.c (arm_neon_quad_read)
1347 (arm_pseudo_read): Change return to enum register_status. Handle
1348 non-REG_VALID raw registers and return the register's status.
1349 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1350 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1351 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1352 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1353 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1355 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1356 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1357 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1358 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1359 (m32c_pseudo_register_read): Change return to enum
1360 register_status. Adjust.
1361 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1362 enum register_status. Return the register's status.
1363 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1364 register_status. Return the register's status.
1365 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1366 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1367 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1368 * rs6000-tdep.c (move_ev_register_func): New typedef.
1369 (e500_move_ev_register): Use it. Change return to enum
1370 register_status. Return the register's status.
1371 (do_regcache_raw_read): New function.
1372 (do_regcache_raw_write): New function.
1373 (e500_pseudo_register_read): Change return to enum
1374 register_status. Return the register's status. Use
1375 do_regcache_raw_read.
1376 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1377 (dfp_pseudo_register_read): Change return to enum register_status.
1378 Return the register's status.
1379 (vsx_pseudo_register_read): Ditto.
1380 (efpr_pseudo_register_read): Ditto.
1381 (rs6000_pseudo_register_read): Ditto.
1382 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1383 register_status. Return the register's status.
1384 * sh64-tdep.c (pseudo_register_read_portions): New function.
1385 (sh64_pseudo_register_read): Change return to enum
1386 register_status. Use pseudo_register_read_portions. Return the
1388 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1389 register_status. Return the register's status.
1390 * sh-tdep.c (pseudo_register_read_portions): New function.
1391 (sh_pseudo_register_read): Change return to enum register_status.
1392 Use pseudo_register_read_portions. Return the register's status.
1393 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1394 enum register_status. Return the register's status.
1395 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1396 * spu-tdep.c (spu_pseudo_register_read_spu)
1397 (spu_pseudo_register_read): Ditto.
1398 * xtensa-tdep.c (xtensa_register_read_masked)
1399 (xtensa_pseudo_register_read): Ditto.
1400 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1402 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1404 * python/py-value.c (valpy_getitem): Fix formatting of error function
1407 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1409 ARI fixes: Add missing internationalization markups throughout
1411 * darwin-nat-info.c: Ditto.
1414 * mi/mi-main.c: Ditto.
1416 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1418 ARI fixes: Add missing internationalization markups throughout
1421 * cp-name-parser.y: Ditto.
1424 * objc-exp.y: Ditto.
1427 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1429 ARI fixes: Messages should have no trailing new lines.
1430 * darwin-nat.c (mach_check_error): Remove trailing new line from
1431 warning function call message.
1432 * record.c (bfdcore_read): Idem for error call.
1434 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1436 * common/signals.c (target_signal_from_host): Add _ markup to error
1437 function call message.
1438 (target_signal_to_host): Add _ markup and remove trailing new line
1439 from warning call message.
1440 (target_signal_from_command): Add _ markup to error function call
1443 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1447 * python/python.c (gdbpy_write): Accept a stream argument and
1448 operate to the appropriate stream.
1449 (gdbpy_flush): Likewise.
1450 (_initialize_python): Add stream constants.
1451 (finish_python_initialization): Add GdbOutputErrorFile class.
1453 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1455 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1457 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1459 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1460 to store_signed_integer. Add debug message when relocating CALL
1461 instructions. Fix formatting of debug message.
1462 * i386-tdep.c (i386_relocate_instruction): Ditto.
1464 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1466 * target.h (struct target_ops): Remove to_lookup_symbol field.
1467 (target_lookup_symbol): Delete macro.
1468 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1469 (update_current_target, setup_target_debug): Remove handling
1470 of to_lookup_symbol target_ops field.
1471 * ada-tasks.c (get_known_tasks_addr): Remove use of
1472 target_lookup_symbol.
1473 * coffread.c (coff_symtab_read): Likewise.
1474 * dbxread.c (read_dbx_symtab): Ditto.
1476 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1479 * configure.ac: Add getthrds declaration check.
1480 * configure, config.in: Regenerate.
1481 * aix-thread.c (getthrds): Declare only if not already declared
1482 in procinfo.h. More declaration out of get_signaled_thread to
1485 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1487 * python/py-symtab.c: Populate symtab_object_methods,
1489 (stpy_is_valid): New function.
1490 (salpy_is_valid): Ditto.
1491 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1492 (sympy_is_valid): New function.
1493 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1494 (objfpy_is_valid): New function.
1495 * python/py-inferior.c: Populate inferior_object_methods.
1496 (infpy_is_valid): New function.
1497 * python/py-infthread.c: Populate thread_object_methods.
1498 (thpy_is_valid): New function.
1499 * python/py-block.c: Declare block_object_methods. Populate. Declare
1500 block_iterator_object_methods. Populate.
1501 (blpy_is_valid): New function.
1502 (blpy_iter_is_valid): Ditto.
1504 2011-03-16 Keith Seitz <keiths@redhat.com>
1506 * linespec.c (find_methods): Canonicalize NAME before looking
1508 (name_end): New function.
1509 (keep_name_info): New function.
1510 (decode_line_1): Use keep_name_info.
1511 (decode_compound): Likewise.
1512 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1513 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1516 * linespec.c (locate_first_half): Keep overload information, too.
1517 (decode_compound): Use a string to represent break characters
1519 If P points to a break character, do not increment it.
1520 For C++ and Java, keep overload information and relevant keywords.
1521 If we cannot find a symbol, search the minimal symbols.
1524 * linespec.c (decode_compound): Rename SAVED_ARG to
1526 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1528 Pass a valid block to lookup_symbol.
1529 (lookup_prefix_sym): Likewise.
1530 (find_method): Construct search name based on SYM_CLASS instead
1532 * psymtab.c (lookup_partial_symbol): Add language parameter.
1533 (lookup_symbol_aux_psymtabs): Likewise.
1534 Don't assume that the psymtab we found was the right one. Search
1535 for the desired symbol in the symtab to be certain.
1536 (psymtab_search_name): New function.
1537 (lookup_partial_symbol): Use psymtab_search_name.
1538 Add language parameter.
1539 (read_symtabs_for_function): Add language parameter and pass to
1540 lookup_partial_symbol.
1541 (find_symbol_file_from_partial): Likewise.
1543 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1546 * dwarf2read.c (noop_record_line): New function.
1547 (dwarf_decode_lines): Ignore line tables for GCd functions.
1549 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1551 Fix ARI warnings about new lines at the end of messages, which
1552 are unneeded as there is a new line added at the end of the message
1554 * darwin-nat.c (darwin_stop_inferior): Ditto.
1555 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1556 * dfp.c (decimal_to_number): Ditto.
1557 * exec.c (print_section_info): Ditto.
1558 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1559 * osdata.c (get_osdata): Ditto.
1560 * record.c (bfdcore_write): Ditto.
1561 * remote-mips.c (mips_readchar): Ditto.
1562 * remote.c (read_ptid): Ditto.
1563 * ser-mingw.c (ser_windows_raw): Ditto.
1564 * tracepoint.c (add_local_symbols): Ditto.
1565 * windows-nat.c (fake_create_process): Ditto.
1567 2011-03-16 Tom Tromey <tromey@redhat.com>
1569 * tracepoint.c (stop_tracing): Don't declare.
1570 * event-top.c (after_char_processing_hook): Add `(void)'.
1572 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1574 * NEWS: Add Parameter sub-classing description.
1576 2011-03-16 Kai Tietz <ktietz@redhat.com>
1578 * MAINTAINERS: Update my e-mail address.
1580 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1582 * MAINTAINERS: Add myself for write after approval privileges.
1584 2011-03-15 Michael Snyder <msnyder@vmware.com>
1586 * frame.c (find_frame_sal): Assert sym is not null.
1588 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1590 * objc-lang.c (selectors_info): Check strchr for null result.
1592 * stabsread.c (define_symbol): Guard against bad stabstring input.
1594 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1596 Remove trailing spaces and tabulations from pascal language
1601 p-valprint.c: Ditto.
1603 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1605 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1606 than LOW. Comment it.
1607 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1608 HIGHPC not strictly higher than LOWPC.
1610 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1612 Fix formatting of function declarations returning a pointer in
1614 * varobj.c (varobj_add_child): Ditto.
1615 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1616 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1618 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1620 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1621 for the "generic" vector ABI used with GCC 4.3 and later.
1622 (ppc64_sysv_abi_return_value): Likewise.
1624 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1626 * infcall.c (call_function_by_hand): Function return value is
1627 always a non_lval, even when using struct_return.
1629 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1631 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1632 (map_display_numbers): New.
1633 (do_delete_display): New.
1634 (undisplay_command): Use map_display_numbers.
1635 (do_enable_disable_display): New.
1636 (enable_disable_display_command): New function.
1637 (enable_display): Delete.
1638 (enable_display_command): New.
1639 (disable_display_command): Reimplement.
1640 (_initialize_printcmd): Adjust "enable display" command to use
1641 `enable_display_command' as callback.
1643 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1645 * NEWS: Add Python breakpoint 'stop' operation.
1647 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1649 * NEWS: Delete duplicate entry. Fix typo.
1651 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1653 Fix ARI warning about function names in first column.
1654 Put prototype declaration on same line as return type.
1655 * objc-exp.y: Ditto.
1657 * python/py-stopevent.h: Ditto.
1658 For long function names, split parameters to
1659 allow function name on same line as return type.
1660 * solib-pa64.c: Ditto.
1663 For long function declaration, use single line.
1664 * hppa-tdep.h: Ditto.
1665 * inferior.h: Ditto.
1667 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1669 * python/python.h: Declare gdbpy_should_stop and
1670 gdbpy_breakpoint_has_py_cond.
1671 * python/python.c: Add python.h to includes. Remove python.h from
1672 HAVE_PYTHON definition
1673 (gdbpy_should_stop): New dummy function.
1674 (gdbpy_breakpoint_has_py_cond): New dummy function.
1675 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1676 sub-classing capabilities.
1677 (gdbpy_should_stop): New function.
1678 (gdbpy_breakpoint_has_py_cond): New function.
1679 (local_setattro): New function.
1680 * breakpoint.c (condition_command): Add check for Python 'stop'
1682 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1683 operation function as part of stop/continue tests.
1685 2011-03-14 Tom Tromey <tromey@redhat.com>
1688 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1689 (needs_frame_dwarf_call): Likewise.
1691 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1693 Fix ARI warning about functions without parameters that do not
1695 * breakpoint.c (all_tracepoints): Replace () by (void).
1696 * f-exp.y (match_string_literal): Ditto.
1698 * m2-exp.y (yylex): Ditto.
1699 * mep-tdep.c (current_me_module): Ditto.
1700 (current_options): Ditto.
1701 (current_cop_data_bus_width): Ditto.
1702 (current_cr_names): Ditto.
1703 (current_cr_is_float): Ditto.
1704 (current_ccr_names): Ditto.
1705 * objc-exp.y (yylex): Ditto.
1706 * p-exp.y (yylex): Ditto.
1707 * remote.c (send_interrupt_sequence): Ditto.
1708 * tracepoint.c (current_trace_status): Ditto.
1709 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1710 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1712 2011-03-11 Michael Snyder <msnyder@vmware.com>
1714 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1715 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1716 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1717 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1718 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1720 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1721 (delete_async_event_handler): Ditto.
1723 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1725 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1727 * top.c (set_verbose): Assert showcmd was found.
1729 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1731 * xtensa-tdep.c (warning_once): Correct style issues.
1733 2011-03-11 Yao Qi <yao@codesourcery.com>
1735 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1737 2011-03-11 Andreas Schwab <schwab@redhat.com>
1739 * common/aclocal.m4: Remove.
1741 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1743 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1744 (xtensa_write_register, xtensa_read_register): Likewise.
1745 (xtensa_hextochar): Removed.
1746 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1748 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1750 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1751 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1752 (xtensa_alloc_frame_cache): Add initialization for new fields.
1753 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1754 (warning_once): New function.
1755 (xtensa_insn_kind): New item c0opc_and.
1756 (call0_classify_opcode): Add the case for AND instruction.
1757 (call0_track_op): Change arguments. New local variable litbase.
1758 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1759 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1761 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1762 (call0_analyze_prologue): Update the comments. Change arguments.
1763 Add the variety of updates to handle extended prologues, which now can
1764 conduct dynamic stack adjustments.
1765 (call0_frame_cache): Likewise.
1766 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1767 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1769 2011-03-10 Michael Snyder <msnyder@vmware.com>
1771 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1772 (cmd_qtframe): Ditto.
1773 (cmd_qtbuffer): Ditto.
1774 (cmd_bigqtbuffer): Ditto.
1776 2011-03-10 Tom Tromey <tromey@redhat.com>
1778 * tracepoint.c (trace_actions_command): Update.
1779 * thread.c (thread_apply_command): Update.
1780 * reverse.c (delete_bookmark_command): Update.
1781 (bookmarks_info): Update.
1782 * printcmd.c (undisplay_command): Update.
1783 * memattr.c (mem_enable_command): Update.
1784 (mem_disable_command): Update.
1785 (mem_delete_command): Update.
1786 * inferior.c (detach_inferior_command): Update.
1787 (kill_inferior_command): Update.
1788 (remove_inferior_command): Update.
1789 * cli/cli-utils.h (struct get_number_or_range_state): New.
1790 (init_number_or_range): Declare.
1791 (get_number_or_range): Update.
1792 * cli/cli-utils.c (init_number_or_range): New function.
1793 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1795 (number_is_in_list): Update.
1796 * breakpoint.h (get_tracepoint_by_number): Update.
1797 * breakpoint.c (map_breakpoint_numbers): Update for change to
1798 get_number_or_range.
1799 (find_location_by_number): Use get_number, not
1800 get_number_or_range.
1801 (trace_pass_set_count): New function.
1802 (trace_pass_command): Update for change to get_number_or_range.
1804 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1807 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1809 * python/py-param.c (add_setshow_generic): Add set/show callback
1810 parameters. Register Python object context.
1811 (get_show_value): New function.
1812 (get_set_value): New function.
1813 (call_doc_function): New function.
1814 (get_doc_string): Move behind get_show_value/get_set_value.
1816 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1818 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1820 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1822 * xtensa-tdep.c (xtensa_read_register): Add comment.
1823 (xtensa_write_register): Likewise.
1824 (xtensa_hextochar): Add comment and update to match coding conventions.
1825 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1826 (execute_l32e, execute_s32e, execute_code): Update comments.
1827 (xtensa_exception_handler_t): Update to match coding conventions.
1828 (xtensa_insn_kind): Likewise.
1830 2011-03-09 Michael Snyder <msnyder@vmware.com>
1832 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1834 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1836 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1838 2011-03-09 Tom Tromey <tromey@redhat.com>
1840 * thread.c (restore_selected_frame): Handle frame_level == -1.
1841 (make_cleanup_restore_current_thread): Use
1842 get_selected_frame_if_set.
1843 * frame.h (get_selected_frame_if_set): Declare.
1844 * frame.c (get_selected_frame_if_set): New function.
1846 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1848 * cli/cli-cmds.c (shell_escape): Use lbasename.
1849 * coffread.c (coff_start_symtab): Constify parameter.
1850 (complete_symtab): Constify `name' parameter.
1851 (coff_symtab_read): Constify `filestring' local.
1852 (coff_getfilename): Constify return and `result' local.
1854 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1855 * linux-fork.c (info_checkpoints_command): Use lbasename.
1856 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1857 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1858 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1859 * procfs.c (procfs_make_note_section): Use lbasename.
1860 * tui/tui-io.c (printable_part): Constity return and parameter.
1862 (print_filename): Constify parameters, and local `s'.
1863 (tui_rl_display_match_list): Constify local `temp'.
1865 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1868 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1869 Fix DWARF-3+ DW_AT_accessibility default assumption.
1870 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1871 cu->header.version >= 3.
1873 2011-03-09 Yao Qi <yao@codesourcery.com>
1875 * common/Makefile.in: Remove.
1876 * common/configure: Remove.
1877 * common/configure.ac: Remove.
1879 2011-03-09 Yao Qi <yao@codesourcery.com>
1882 2011-02-11 Yao Qi <yao@codesourcery.com>
1884 * common/Makefile.in: Add copyright header.
1886 2011-02-11 Yao Qi <yao@codesourcery.com>
1888 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1890 * configure.ac: Add common to sub dir.
1891 * configure: Regenerate.
1893 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1895 * xtensa-tdep.c (call0_ret): New function.
1896 (xtensa_skip_prologue): Speed up analysis.
1898 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1900 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1901 while executing MI command -data-list-changed-registers.
1903 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1905 * xtensa-tdep.c (xtensa_read_register): New function.
1906 (xtensa_write_register): New function.
1907 (xtensa_find_register_by_name): New function.
1908 (xtensa_windowed_frame_cache): Update comments in type description.
1909 (xtensa_frame_cache): Likewise.
1910 (xtensa_window_interrupt_insn): New function.
1911 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1912 (xtensa_insn_kind): Add new instructions.
1913 (rwx_special_register): New function.
1914 (call0_classify_opcode): Add new instructions to the analysis.
1915 (a0_saved, a7_saved, a11_saved): New variables.
1916 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1917 (execute_l32e): New function.
1918 (execute_s32e): New function.
1919 (xtensa_exception_handler_t): New type.
1920 (execute_code): New function.
1921 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1922 analysis for Xtensa Window Exception handlers.
1924 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1926 * xtensa-tdep.c (TX_PS): New.
1927 (windowing_enabled): Update to count for Call0 ABI.
1928 (xtensa_hextochar): New.
1929 (xtensa_init_reggroups): Make algorithm generic.
1930 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1932 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1934 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1936 2011-03-08 Michael Snyder <msnyder@vmware.com>
1938 * i386-tdep.c (i386_follow_jump): Check return value of
1940 (i386_analyze_struct_return): Ditto.
1941 (i386_skip_probe): Ditto.
1942 (i386_match_insn): Ditto.
1943 (i386_skip_noop): Ditto.
1944 (i386_analyze_frame_setup): Ditto.
1945 (i386_analyze_register_saves): Ditto.
1946 (i386_skip_prologue): Ditto.
1947 (i386_skip_main_prologue): Ditto.
1949 * target.c (read_whatever_is_readable): Fix memory leak.
1951 * i386-tdep.c (i386_process_record): Document fall through.
1953 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1955 Fix DWARF-3+ DW_AT_accessibility default assumption.
1956 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1957 cu->header.version >= 3.
1959 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1961 * remote.c (remote_check_symbols): Skip if the target has no
1964 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1966 * target.c (read_whatever_is_readable): Reformat comment,
1967 with a minor typo fix. Minor reformatting of the code.
1969 2011-03-08 Yao Qi <yao@codesourcery.com>
1971 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1972 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1973 Use cached result instead of calling displaced_in_arm_mode again.
1974 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1975 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1976 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1977 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1978 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1979 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1980 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1981 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1982 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1983 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1984 (arm_catch_kernel_helper_return): Likewise.
1985 * gdb/arm-tdep.h : Update function declarations.
1987 2011-03-07 Michael Snyder <msnyder@vmware.com>
1989 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1991 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1993 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1995 * elfread.c (elf_symtab_read): Stop memory leak.
1997 * main.c (captured_main): Fix memory leak.
1999 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2001 * ada-lang.c (compare_names): Call is_name_suffix with string1
2004 2011-03-07 Tom Tromey <tromey@redhat.com>
2006 * xcoffread.c (xcoff_sym_fns): Update.
2007 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2008 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2009 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2010 (symbol_file_add_with_addrs_or_offsets): Likewise.
2011 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2012 * somread.c (som_sym_fns): Update.
2013 * psymtab.h (require_partial_symbols): Declare.
2014 * psymtab.c (require_partial_symbols): New function.
2015 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2016 (ALL_OBJFILE_PSYMTABS): Undef.
2017 (ALL_PSYMTABS): Move from psympriv.h.
2018 (lookup_partial_symtab, find_pc_sect_psymtab)
2019 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2020 (find_last_source_symtab_from_partial)
2021 (forget_cached_source_info_partial)
2022 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2023 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2024 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2025 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2026 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2027 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2028 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2029 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2030 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2032 * mipsread.c (ecoff_sym_fns): Update.
2033 * machoread.c (macho_sym_fns): Update.
2034 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2035 (read_psyms): New function.
2036 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2037 (elf_sym_fns_lazy_psyms): New global.
2038 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2039 dwarf2_build_psymtabs.
2040 * dbxread.c (aout_sym_fns): Update.
2041 * coffread.c (coff_sym_fns): Update.
2043 2011-03-07 Tom Tromey <tromey@redhat.com>
2045 * infrun.c (print_exited_reason): Include inferior id and pid in
2048 2011-03-07 Tom Tromey <tromey@redhat.com>
2050 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2052 (target_has_execution_1): Update.
2053 (target_has_execution_current): Declare.
2054 (target_has_execution): Call target_has_execution_current.
2055 (default_child_has_execution): Update.
2056 * target.c (default_child_has_execution): Add 'the_ptid'
2058 (target_has_execution_1): Likewise.
2059 (target_has_execution_current): New function.
2060 (add_target): Update.
2061 (init_dummy_target): Update.
2062 * remote-m32r-sdi.c (m32r_has_execution): New function.
2063 (init_m32r_ops): Use it.
2064 * record.c (record_core_has_execution): Now static. Add
2065 'the_ptid' parameter.
2066 * inferior.c (have_live_inferiors): Don't save current thread.
2067 Use target_has_execution_1.
2069 2011-03-07 Yao Qi <yao@codesourcery.com>
2071 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2073 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2075 * elfread.c (elf_symtab_read): Minor reformatting.
2077 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2079 * objc-lang.c (selectors_info): Minor reformatting.
2081 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2083 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2085 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2086 Michael Snyder <msnyder@vmware.com>
2088 * ada-valprint.c (ada_val_print_array): Move the declaration of
2089 "byte_order" and "elttype" inside the block where these variables
2090 are actually used. Remove some special handling for the case
2091 where "elttype" and "eltlen" are null. Replace by a comment
2092 and a couple of assertion checks.
2094 2011-03-05 Michael Snyder <msnyder@vmware.com>
2096 * source.c (add_path): Replace semicolon at end of block.
2097 * dwarf2expr.c (execute_stack_op): Ditto.
2099 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2101 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2102 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2103 (bfin-*-*): Likewise.
2105 2011-03-05 Michael Snyder <msnyder@vmware.com>
2107 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2108 * mdebugread.c (parse_symbol): Ditto.
2109 * parse.c (parse_exp_in_context): Ditto.
2110 * source.c (add_path): Ditto.
2111 * utils.c (gnu_debuglink_crc32): Ditto.
2112 * varobj.c (variable_language): Ditto.
2114 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2116 2011-03-04 Michael Snyder <msnyder@vmware.com>
2118 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2120 * symfile.c (simple_overlay_update): Check for null return value
2121 from lookup_minimal_symbol.
2123 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2125 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2127 * eval.c (parse_and_eval_address_1): Remove function.
2128 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2129 instead of parse_and_eval_address_1.
2130 * value.h (parse_and_eval_address_1): Remove prototype.
2132 2011-03-04 Michael Snyder <msnyder@vmware.com>
2134 * remote.c (putpkt_binary): Document that case stmt falls through.
2136 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2138 * breakpointc (print_it_typical): Move NULL check from here...
2139 (print_bp_stop_message): ... to here.
2141 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2143 * breakpoint.c (enable_command): Use break instead of continue,
2144 and fill in a missing break.
2145 (disable_command): Ditto.
2147 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2149 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2150 (terminal_save_ours): Remove misleading comment.
2151 (inflow_inferior_data_cleanup): Free ttystate.
2152 (inflow_inferior_exit): Likewise.
2153 (copy_terminal_info): Copy ttystate.
2155 * serial.c (serial_copy_tty_state): New function.
2156 * serial.h (serial_copy_tty_state): Add prototype.
2157 (struct serial_ops): Add copy_tty_state callback.
2158 * ser-base.c (ser_base_copy_tty_state): New function.
2159 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2160 * ser-go32.c (dos_copy_tty_state): New function.
2161 (dos_ops): Install copy_tty_state callback.
2162 * ser-mingw.c (_initialize_ser_windows): Likewise.
2163 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2164 * ser-unix.c (hardwire_copy_tty_state): New function.
2165 (_initialize_ser_hardwire): Install it.
2167 2011-03-04 Michael Snyder <msnyder@vmware.com>
2169 * breakpoint.c (create_breakpoint): Add missing break statement.
2171 Reverting this patch:
2172 * infcall.c (call_function_by_hand): Add break statements for lint.
2174 Reverting this patch:
2175 * cli/cli-script.c (script_from_file): Add break for lint.
2177 2011-03-04 Michael Snyder <msnyder@vmware.com>
2179 * solib.c (reload_shared_libraries_1): Close memory leak.
2181 2011-03-03 Tom Tromey <tromey@redhat.com>
2184 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2187 2011-03-03 Michael Snyder <msnyder@vmware.com>
2189 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2190 fields of struct 'st' to zero.
2192 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2193 sal.pspace before calling set_current_source_symtab_and_line.
2195 2011-03-03 Yao Qi <yao@codesourcery.com>
2197 * Makefile.in (configure-common): Remove. Let Makefile
2198 in dir common to rebuild itself.
2199 (common/Makefile): Likewise.
2201 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2203 * utils.c (parse_escape): Add i18n markup in error message.
2205 2011-03-03 Yao Qi <yao@codesourcery.com>
2207 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2209 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2210 (displaced_write_reg, displaced_read_reg): Likewise.
2211 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2212 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2213 (cleanup_branch): Replace magic number 14 and 15 with
2214 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2216 2011-03-02 Michael Snyder <msnyder@vmware.com>
2218 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2220 * cli/cli-script.c (script_from_file): Add break for lint.
2222 * mdebugread.c (parse_partial_symbols): Fix indent.
2224 * target-descriptions.c (tdesc_gdb_type): No need to call
2225 xstrdup, callee saves a copy.
2227 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2229 * infcall.c (call_function_by_hand): Add break statements for lint.
2231 * utils.c (parse_escape): Escape the escape char.
2233 * python/py-inferior.c (build_inferior_list): Error out if
2234 PyList_Append fails.
2235 (gdbpy_inferiors): Error out if build_inferior_list fails.
2237 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2240 * record.c (record_restore): Move printf to before error return.
2242 2011-03-02 Yao Qi <yao@codesourcery.com>
2244 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2245 is_thumb and insn_size.
2246 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2247 on both ARM and Thumb mode.
2248 (arm_process_displaced_insn): Set is_thumb and insn_size.
2249 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2250 (arm_displaced_step_fixup): Likewise.
2252 2011-03-01 Michael Snyder <msnyder@vmware.com>
2254 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2256 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2258 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2260 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2262 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2265 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2266 which shadows function parameter.
2268 * tracepoint.c (create_tsv_from_upload): Superfluous call
2269 to xstrdup. Callee already calls xstrdup.
2271 * linespec.c (decode_line_1): Remove unnecessary null check.
2273 * tracepoint.c (scope_info): Fix mem leak, remove underused
2276 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2277 superfluous null check.
2279 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2280 (value_of_builtin_frame_fp_reg): Ditto.
2282 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2284 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2287 * linespec.c (decode_line_1): Check for null before dereference.
2289 * reverse.c (record_restore): Move null-check to before pointer
2292 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2294 * objc-lang.c (selectors_info): Add explanitory comment.
2295 (classes_info): Ditto.
2297 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2299 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2300 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2301 versions of the trampoline. Handle Thumb vs. ARM addresses.
2302 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2303 (arm_linux_init_abi): Install it.
2304 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2305 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2307 2011-02-28 Michael Snyder <msnyder@vmware.com>
2309 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2310 a little bigger, to avoid possibility of an overflow.
2312 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2313 buffers a little bigger, to avoid possibility of an overflow.
2315 * coffread.c (coff_getfilename): Add check to avoid overflow.
2317 * objc-lang.c (selectors_info): Add a small safety margin to
2319 (classes_info): Error out on too long REGEXP.
2321 * infrun.c (handle_inferior_event): Remove unused function call.
2323 * fork-child.c (fork_inferior): Remove ifdef'd code and
2326 * linux-thread-db.c (attach_thread): Discard unused value.
2328 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2330 * remote.c (remote_get_noisy_reply): Discard unused value.
2331 (remote_vcont_resume): Ditto.
2332 (remote_stop_ns): Ditto.
2334 * linespec.c (decode_objc): Delete unused variable.
2336 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2338 * dwarf2read.c (add_partial_symbol): Discard unused values.
2339 (read_base_type): Delete unused variable.
2341 * dbxread.c (read_dbx_symtab): Discard unused value.
2343 * eval.c (evaluate_subexp_standard): Delete unused variable,
2344 and discard unused values.
2346 * infcmd.c (_initialize_infcmd): Discard unused values.
2348 * stabsread.c (rs6000_builtin_type): Missing break statement.
2350 * dbxread.c (process_one_symbol): Discard unused value.
2352 * coffread.c (coff_end_symtab): Delete unused variable.
2354 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2355 (dwarf2_add_typedef): Delete unused variable.
2356 (read_namespace): Ditto.
2357 (dwarf_decode_macros): Ditto.
2359 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2361 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2363 * p-valprint.c (pascal_val_print): Discard unused value.
2365 * utils.c (nquery): Call va_end before return;
2369 * proc-service.c (ps_plog): Call va_end before return.
2371 2011-02-28 Tom Tromey <tromey@redhat.com>
2373 * python/python.c (gdbpy_value_cst): New global.
2374 (_initialize_python): Initialize it.
2375 * python/python-internal.h (gdbpy_value_cst): Declare.
2376 * python/py-value.c (convert_value_from_python): Use
2379 2011-02-28 Michael Snyder <msnyder@vmware.com>
2381 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2383 * breakpoint.c (catch_syscall_completer): Free malloced list.
2385 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2387 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2388 (lval_func_check_synthetic_pointer): Ditto.
2389 (lval_func_free_closure): Fix use-after-free.
2391 2011-02-28 Tom Tromey <tromey@redhat.com>
2393 * psymtab.c (expand_partial_symbol_tables): Use
2394 ALL_OBJFILE_PSYMTABS.
2396 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2398 * objc-lang.c (selectors_info): Error on too long REGEXP.
2400 2011-02-28 Michael Snyder <msnyder@vmware.com>
2402 * python/py-param.c (set_parameter_value): Add missing
2405 * linux-record.c (record_linux_system_call): Add missing
2408 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2410 * breakpoint.c (print_one_breakpoint_location): Remove unused
2411 argument PRINT_ADDRESS_BITS. Update callers.
2412 (print_one_breakpoint): Likewise.
2414 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2416 * breakpoint.c (wrap_indent_at_field): New function.
2417 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2418 Allocate ui_stream locally instead of using STB argument.
2419 (print_one_breakpoint_location): Update call.
2420 * ui-out.c (ui_out_query_field): New function.
2421 * ui-out.h (ui_out_query_field): Add prototype.
2423 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2425 From Michael Snyder <msnyder@vmware.com>
2426 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2428 2011-02-27 Michael Snyder <msnyder@vmware.com>
2430 * objc-lang.c (selectors_info): Prevent string overrun.
2432 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2435 * symtab.c (rbreak_command): Move variable 'file_name' to
2438 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2439 param with a local variable of the same name.
2441 2011-02-27 Michael Snyder <msnyder@vmware.com>
2443 * value.c (value_from_history_ref): New function.
2444 * value.h (value_from_history_ref): Export.
2445 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2446 to parse value history references.
2447 * cli/cli-utils.h (get_number_trailer): Update comment.
2449 2011-02-27 Michael Snyder <msnyder@vmware.com>
2451 * inferior.c (detach_inferior_command): Use get_number_or_range.
2452 (kill_inferior_command): Ditto.
2453 (remove_inferior_command): Ditto.
2454 (initialize_inferiors): Make command names plural.
2455 Update help strings.
2457 2011-02-27 Michael Snyder <msnyder@vmware.com>
2459 * darwin-nat-info.c: Fix comment typo.
2460 * dwarf2expr.h: Ditto.
2461 * fbsd-nat.c: Ditto.
2462 * fbsd-nat.h: Ditto.
2463 * frame-unwind.h: Ditto.
2465 * hppa-hpux-tdep.c: Ditto.
2466 * i386-linux-nat.c: Ditto.
2467 * linux-nat.c: Ditto.
2468 * nbsd-nat.c: Ditto.
2469 * nbsd-nat.h: Ditto.
2470 * ppc-linux-tdep.c: Ditto.
2473 * tui/tui-winsource.c: Ditto.
2475 2011-02-26 Michael Snyder <msnyder@vmware.com>
2477 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2479 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2481 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2482 with a local variable of the same name.
2484 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2485 param with a local variable of the same name.
2486 (i387_supply_xsave): Ditto.
2488 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2489 that it does not shadow a function parameter.
2491 * i386-nat.c (i386_length_and_rw_bits): Document that case
2492 statement is meant to fall through.
2494 * expprint.c (dump_subexp_body_standard): Document that case
2495 statement is meant to fall through.
2497 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2498 dead if statement. Condition can't be false.
2500 2011-02-25 Michael Snyder <msnyder@vmware.com>
2502 * arm-tdep.c: Fix typos in comments.
2503 * bsd-uthread.c: Ditto.
2504 * completer.c: Ditto.
2506 * cp-namespace.c: Ditto.
2507 * cp-support.c: Ditto.
2508 * cris-tdep.c: Ditto.
2510 * dwarf2read.c: Ditto.
2512 * gdbtypes.h: Ditto.
2513 * inferior.h: Ditto.
2514 * mdebugread.c: Ditto.
2515 * mips-tdep.c: Ditto.
2516 * ppc-linux-nat.c: Ditto.
2517 * ppc-linux-tdep.c: Ditto.
2518 * printcmd.c: Ditto.
2519 * sol-thread.c: Ditto.
2520 * solib-frv.c: Ditto.
2522 * sparc64-tdep.c: Ditto.
2523 * spu-tdep.c: Ditto.
2524 * stabsread.c: Ditto.
2529 * python/py-block.c: Ditto.
2530 * python/py-symbol.c: Ditto.
2531 * python/py-symtab.c: Ditto.
2532 * python/py-value.c: Ditto.
2533 * tui/tui-win.c: Ditto.
2535 2011-02-25 Michael Snyder <msnyder@vmware.com>
2537 * inferior.c (print_inferior): Accept a string instead of an int
2538 for requested_inferiors, and use get_number_or_range to parse it.
2539 (info_inferiors_command): Pass args string to print_inferior.
2540 (initialize_inferiors): Change help string for info inferiors.
2541 * inferior.h (print_inferior): Export prototype change.
2543 2011-02-25 Tom Tromey <tromey@redhat.com>
2545 * common/ax.def (invalid2): Set to 0x31.
2547 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2549 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2551 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2553 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2555 2011-02-24 Michael Snyder <msnyder@vmware.com>
2557 * Makefile.in (clean): Make clean should remove generated files
2558 observer.h and observer.inc.
2560 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2562 Revert the following patch (not approved yet):
2563 2011-02-21 Hui Zhu <teawater@gmail.com>
2564 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2565 * ax-gdb.c (gen_printf_expr_callback): New function.
2566 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2567 * ax-general.c (ax_memcpy): New function.
2568 (ax_print): Handle "printf".
2570 * ax.h (ax_memcpy): Forward declare.
2571 * common/ax.def (invalid2): Removed.
2572 (printf): New entry.
2573 * printcmd.c (printcmd.h): New include.
2574 (string_printf): New function.
2575 (ui_printf): Removed.
2576 (printf_command): Remove static. Call string_printf.
2577 (eval_command): Call string_printf.
2578 * printcmd.h: New file.
2579 * tracepoint.c (validate_actionline,
2580 encode_actions_1): handle printf_command.
2582 2011-02-23 Tom Tromey <tromey@redhat.com>
2584 * ax-general.c (ax_pick): Add missing newline.
2586 2011-02-23 Michael Snyder <msnyder@vmware.com>
2588 * breakpoint.c (breakpoint_1): Change first argument from an int
2589 to a char pointer, so that the function now accepts a list of
2590 breakpoints rather than just one. Use new function
2591 'number_is_in_list' to implement.
2592 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2593 (watchpoints_info): Ditto.
2594 (tracepoints_info): Ditto.
2595 (maintenance_info_breakpoints): Ditto.
2596 (_initialize_breakpoint): Update help strings to reflect the fact
2597 that these functions can now take more than one argument.
2598 * cli/cli-utils.c (number_is_in_list): New function.
2599 * cli/cli-utils.h (number_is_in_list): Export.
2601 2011-02-23 Michael Snyder <msnyder@vmware.com>
2603 * memattr.c (mem_enable_command): Use get_number_or_range.
2604 (mem_disable_command): Ditto.
2605 (mem_delete_command): Ditto.
2606 (_initialize_mem): Tweak usage message to reflect multiple
2609 2011-02-22 Doug Evans <dje@google.com>
2611 Add gdb.lookup_global_symbol python function.
2613 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2614 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2615 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2617 2011-02-22 Tom Tromey <tromey@redhat.com>
2619 * language.c (language_class_name_from_physname): Rename
2620 'curr_language' argument to 'lang'; use in body.
2622 2011-02-22 Michael Snyder <msnyder@vmware.com>
2624 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2626 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2628 * frame-unwind.h: Fix comment to mention the this frame, not the
2631 2011-02-22 Tom Tromey <tromey@redhat.com>
2633 * symfile.c (auto_solib_limit): Remove.
2634 * symfile.h (auto_solib_limit): Remove.
2636 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2638 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2640 2011-02-21 Michael Snyder <msnyder@vmware.com>
2642 * gdbthread.h (print_thread_info): Change prototype.
2643 * thread.c (print_thread_info): Accept char* instead of int for
2644 requested_threads argument. Use new function number_is_in_list
2645 to determine which threads to list.
2646 (info_threads_command): Pass char* to print_thread_info.
2647 * cli/cli-utils.c (number_is_in_list): New function.
2648 * cli/cli-utils.h (number_is_in_list): Export.
2649 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2651 (print_one_inferior): Ditto.
2652 (mi_cmd_list_thread_groups): Ditto.
2654 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2656 * common/Makefile.in (CFLAGS): New.
2657 (COMPILE): Add $(CFLAGS).
2659 2011-02-21 Tom Tromey <tromey@redhat.com>
2661 * breakpoint.c (catch_syscall_command_1): Fix typo.
2663 2011-02-21 Tom Tromey <tromey@redhat.com>
2665 * reverse.c: Include cli-utils.h.
2666 * printcmd.c: Include cli-utils.h.
2667 (string_printf): Use skip_spaces.
2668 * cli/cli-utils.h: New file.
2669 * cli/cli-utils.c: New file.
2670 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2671 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2672 * breakpoint.h (get_number, get_number_or_range): Move to
2674 * breakpoint.c: Include cli-utils.h.
2675 (get_number_trailer, get_number, get_number_or_range)
2676 (ep_skip_leading_whitespace): Move to cli-utils.c.
2677 (create_breakpoint_sal, find_condition_and_thread)
2678 (decode_static_tracepoint_spec, watch_command_1)
2679 (watch_maybe_just_location, ep_parse_optional_if_clause)
2680 (catch_fork_command_1, catch_exec_command_1)
2681 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2682 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2683 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2684 (HFILES_NO_SRCDIR): Add cli-utils.h.
2685 (cli-utils.o): New target.
2687 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2689 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2690 before calling discard_all_inferiors.
2692 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2694 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2695 (struct builtin_opencl_type): Remove.
2696 (builtin_opencl_type): Change return type to "struct type **".
2697 (lookup_opencl_vector_type): Update caller.
2698 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2699 (build_opencl_types): Install plain array of "struct type *"
2700 instead of "struct builtin_opencl_type".
2702 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2703 Ulrich Weigand <uweigand@de.ibm.com>
2705 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2706 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2707 (struct arm_linux_hwbp_cap): New type.
2708 (arm_linux_get_hwbp_cap): New function.
2709 (arm_linux_get_hw_breakpoint_count): Likewise.
2710 (arm_linux_get_hw_watchpoint_count): Likewise.
2711 (arm_linux_can_use_hw_breakpoint): Likewise.
2712 (arm_hwbp_type): New type.
2713 (arm_hwbp_control_t): Likewise.
2714 (struct arm_linux_hw_breakpoint): Likewise.
2715 (struct arm_linux_thread_points): Likewise.
2716 (arm_threads): New global variable.
2717 (arm_linux_find_breakpoints_by_tid): New function.
2718 (arm_hwbp_control_initialize): Likewise.
2719 (arm_hwbp_control_is_enabled): Likewise.
2720 (arm_hwbp_control_disable): Likewise.
2721 (arm_linux_hw_breakpoint_initialize): Likewise.
2722 (arm_linux_get_hwbp_type): Likewise.
2723 (arm_linux_hw_watchpoint_initialize): Likewise.
2724 (arm_linux_hw_breakpoint_equal): Likewise.
2725 (arm_linux_insert_hw_breakpoint1): Likewise.
2726 (arm_linux_remove_hw_breakpoint1): Likewise.
2727 (arm_linux_insert_hw_breakpoint): Likewise.
2728 (arm_linux_remove_hw_breakpoint): Likewise.
2729 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2730 (arm_linux_insert_watchpoint): Likewise.
2731 (arm_linux_remove_watchpoint): Likewise.
2732 (arm_linux_stopped_data_address): Likewise.
2733 (arm_linux_stopped_by_watchpoint): Likewise.
2734 (arm_linux_watchpoint_addr_within_range): Likewise.
2735 (arm_linux_new_thread): Likewise.
2736 (arm_linux_thread_exit): Likewise.
2737 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2738 related target callbacks. Register arm_linux_new_thread and
2739 arm_linux_thread_exit.
2740 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2741 * arm-tdep.c (arm_pc_is_thumb): Make global.
2742 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2744 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2746 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2747 per-frame locations while within a function epilogue.
2749 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2751 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2752 to GNU coding standards.
2754 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2756 Allow use of mingw native on Windows 95 OS.
2757 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2758 (ser_windows_close): Only call CancelIo if function exists.
2759 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2760 to check for existence of CancelIo function in kernel32 DLL.
2762 2011-02-21 Hui Zhu <teawater@gmail.com>
2764 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2765 * ax-gdb.c (gen_printf_expr_callback): New function.
2766 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2767 * ax-general.c (ax_memcpy): New function.
2768 (ax_print): Handle "printf".
2770 * ax.h (ax_memcpy): Forward declare.
2771 * common/ax.def (invalid2): Removed.
2772 (printf): New entry.
2773 * printcmd.c (printcmd.h): New include.
2774 (string_printf): New function.
2775 (ui_printf): Removed.
2776 (printf_command): Remove static. Call string_printf.
2777 (eval_command): Call string_printf.
2778 * printcmd.h: New file.
2779 * tracepoint.c (validate_actionline,
2780 encode_actions_1): handle printf_command.
2782 2011-02-19 Michael Snyder <msnyder@vmware.com>
2784 * reverse.c (delete_one_bookmark): Argument is now bookmark
2785 id rather than pointer to bookmark struct.
2786 (delete_bookmark_command): Use get_number_or_range.
2787 (goto_bookmark_command): Parse with get_number instead of strtoul.
2788 (bookmark_1): New function. Print info for one bookmark.
2789 (bookmarks_info): Use get_number_or_range and bookmark_1.
2791 2011-02-18 Michael Snyder <msnyder@vmware.com>
2793 * thread.c (info_threads_command): Re-implement using
2794 get_number_or_range.
2795 (thread_apply_command): Ditto.
2797 2011-02-18 Tom Tromey <tromey@redhat.com>
2799 * common/ax.def: New file.
2800 * ax.h (enum agent_op): Use ax.def.
2801 * ax-general.c (aop_map): Use ax.def.
2803 2011-02-18 Tom Tromey <tromey@redhat.com>
2805 * ax-general.c (aop_map): Add pick and rot.
2806 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2807 <DW_OP_rot>: Implement.
2808 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2810 * ax-general.c (ax_pick): New function.
2812 2011-02-18 Tom Tromey <tromey@redhat.com>
2814 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2816 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 Tom Tromey <tromey@redhat.com>
2819 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2820 make_symbol_overload_list_block with NULL BLOCK.
2821 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2823 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2825 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2826 * breakpoint.h (get_number_or_range): Declare.
2827 * printcmd.c (ALL_DISPLAYS): Declare.
2828 (delete_display): Reimplement taking a display pointer.
2829 (undisplay_command): Accept a range of displays to delete, using
2830 get_number_or_range.
2832 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2834 * c-valprint.c (c_val_print): Add embedded_offset to address
2835 for arrays of unspecified length.
2836 * p-valprint.c (pascal_val_print): Likewise.
2838 2011-02-18 Yao Qi <yao@codesourcery.com>
2840 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2841 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2842 (thumb_process_displaced_insn): New.
2843 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2844 call to arm_process_displaced_insn.
2845 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2847 2011-02-17 Tom Tromey <tromey@redhat.com>
2849 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2850 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2851 compile_dwarf_to_ax. No longer static. Call
2852 dwarf2_compile_cfa_to_ax.
2853 (locexpr_tracepoint_var_ref): Update.
2854 (loclist_tracepoint_var_ref): Update.
2855 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2856 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2857 argument; add 'gdbarch' and 'pc'.
2858 (dwarf2_compile_cfa_to_ax): New function.
2859 (dwarf2_frame_cache): Update.
2861 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2863 * ada-lang.c (ada_type_of_array): Fix the size of the array
2864 in the case of an unconstrained packed array.
2866 2011-02-17 Yao Qi <yao@codesourcery.com>
2868 * common/Makefile.in: Add more targets for make.
2870 2011-02-16 Tom Tromey <tromey@redhat.com>
2872 * dwarf2loc.c (unimplemented): Fix typo.
2874 2011-02-16 Tom Tromey <tromey@redhat.com>
2876 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2877 (compile_dwarf_to_ax) <default>: Use unimplemented.
2878 <DW_OP_deref>: Update.
2879 (disassemble_dwarf_expression): Update.
2880 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2881 (decode_locdesc): Update.
2882 * dwarf2expr.h (dwarf_stack_op_name): Update.
2884 2011-02-16 Tom Tromey <tromey@redhat.com>
2886 * ax.h (struct aop_map) <name>: Now const.
2888 2011-02-16 Tom Tromey <tromey@redhat.com>
2890 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2893 2011-02-16 Yao Qi <yao@codesourcery.com>
2895 * infrun.c (get_displaced_step_closure_by_addr): New.
2896 * inferior.h: Declare it.
2897 * arm-tdep.c: (arm_pc_is_thumb): Call
2898 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2901 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2902 Jan Kratochvil <jan.kratochvil@redhat.com>
2905 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2907 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2908 Jan Kratochvil <jan.kratochvil@redhat.com>
2910 * value.c (value_contents_copy_raw): Extend describing comment.
2911 Assert that the destination contents we're overwriting are wholly
2913 (value_contents_copy): Extend describing comment.
2915 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2916 Jan Kratochvil <jan.kratochvil@redhat.com>
2918 * value.c (value_available_contents_eq): Remove redundant local
2919 variables. Fix available contents comparision.
2920 * value.h (value_available_contents_eq): Extend describing
2923 2011-02-16 Yao Qi <yao@codesourcery.com>
2925 * thread.c (info_threads_command): Add missing i18n markup and remove
2928 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2930 * breakpoint.c (longjmp_names): New variable.
2931 (struct breakpoint_objfile_data): New type.
2932 (breakpoint_objfile_key): New variable.
2933 (msym_not_found): New variable.
2934 (msym_not_found_p): New predicate.
2935 (get_breakpoint_objfile_data): New function.
2936 (create_overlay_event_breakpoint): Check per-objfile cache for
2938 (create_longjmp_master_breakpoint): Likewise.
2939 (create_std_terminate_master_breakpoint): Likewise.
2940 (create_exception_master_breakpoint): Likewise.
2941 (_initialize_breakpoint): Register per-objfile data key.
2943 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2945 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2947 (create_longjmp_master_breakpoint): Loop over longjmp names.
2948 (create_std_terminate_master_breakpoint): Const-propagate parameter
2950 (update_breakpoints_after_exec): Adjust.
2951 (breakpoint_re_set): Adjust.
2953 2011-02-15 Michael Snyder <msnyder@vmware.com>
2955 * thread.c (info_threads_command): Process arg as thread id,
2956 or list of thread ids.
2957 (thread_find_command): New command.
2958 (_initialize_thread): Document argument for info threads.
2959 Document 'thread find' command.
2960 * NEWS: Document new command "thread find".
2962 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2965 * aclocal.m4: Regenerated with aclocal-1.11.1.
2966 * common/configure: Regenerate with autoconf-2.64.
2968 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2970 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2971 bool data type to a size of one byte.
2973 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2974 Jan Kratochvil <jan.kratochvil@redhat.com>
2976 * target.c (memory_xfer_live_readonly_partial): Document where to
2977 look for interface description.
2979 2011-02-15 Yao Qi <yao@codesourcery.com>
2982 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2983 order to store PC value on stack instead of text section.
2985 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2987 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2988 the EFP register set size.
2989 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2990 data from the VMX register.
2991 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2992 and write data from/to the VMX register.
2994 2011-02-14 Michael Snyder <msnyder@vmware.com>
2996 * command.h (enum command_class): New class 'no_set_class', for
2997 "show" commands without a corresponding "set" command.
2998 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2999 * copying.c (_initialize_copying): Ditto for "show copying" and
3001 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3003 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3004 which there is no corresponding "set" command (eg. "show copying").
3006 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3007 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 * exec.c (section_table_available_memory): Change `len' parameter
3011 * exec.h (section_table_available_memory): Ditto.
3012 * value.h (read_value_memory): Rename the `offset' parameter to
3015 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3016 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 * memrange.c (compare_mem_ranges): Mention sort order in
3020 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3021 * tracepoint.c (traceframe_available_memory): Extend comment to
3022 mention what happens to RESULT when the target does not support
3025 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3026 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3031 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3033 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3034 No longer handle NULL values.
3036 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3038 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3039 * value.c: Include "exceptions.h".
3040 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3042 * cp-abi.c: Include gdb_assert.h.
3043 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3044 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3046 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3047 parameters. No longer returns -1 on error.
3048 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3050 * cp-valprint.c: Include exceptions.h.
3051 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3052 the baseclass_offset. Handle unavailable base classes. Use
3053 val_print_invalid_address.
3054 * p-valprint.c: Include exceptions.h.
3055 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3056 when fetching the baseclass_offset. No longer expect
3057 baseclass_offset returning -1. Handle unavailable base classes.
3058 Use val_print_invalid_address.
3059 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3060 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3061 `embedded_offset' and `val' parameters. Adjust.
3062 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3063 parameter, and change its type to gdb_byte pointer. Add
3064 `embedded_offset' and `val' parameters. Adjust. No longer expect
3065 baseclass_offset returning -1.
3066 (value_dynamic_cast): Use value_contents_for_printing rather than
3067 value_contents. Adjust.
3068 (search_struct_field): No longer expect baseclass_offset returning
3070 (search_struct_method): If reading memory from the target is
3071 necessary, wrap it in a new value to pass to baseclass_offset. No
3072 longer expect baseclass_offset returning -1.
3073 (find_method_list): No longer expect baseclass_offset returning
3074 -1. Use value_contents_for_printing rather than value_contents.
3075 * valprint.c (val_print_invalid_address): New function.
3076 * valprint.h (val_print_invalid_address): Declare.
3077 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3078 and `val' parameters. No longer expect baseclass_offset returning
3080 * gnu-v2-abi.c: Include "exceptions.h".
3081 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3082 parameters. Handle unavailable memory. Recurse through
3083 gnuv2_baseclass_offset directly, rather than through
3084 baseclass_offset. No longer returns -1 on not found, instead
3086 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3087 `val' parameters. Adjust.
3089 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3091 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3092 almost but not quite adjacent.
3094 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3096 * value.h (value_entirely_available): Declare.
3097 * value.c (value_entirely_available): New function.
3098 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3099 real type if the pointer is unavailable.
3101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3103 * valops.c (value_repeat): Use read_value_memory instead of
3106 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3108 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3109 * value.c (value_contents_copy_raw, value_contents_copy): New
3111 (value_primitive_field): Use value_contents_copy_raw instead of
3113 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3115 (value_array, value_slice): Ditto.
3116 * valarith.c (value_subscripted_rvalue): Use
3117 value_contents_copy_raw instead of memcpy.
3119 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3121 <unavailable> references.
3123 * valops.c (get_value_at): Use value_from_contents_and_address,
3124 avoiding read_memory.
3126 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3128 * c-valprint.c (c_val_print): Print a string with unavailable
3129 contents as an array.
3131 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3133 * value.h (unpack_bits_as_long): Delete declaration.
3134 (unpack_value_bits_as_long): Declare.
3135 (unpack_value_field_as_long): Declare.
3136 (value_field_bitfield): Declare.
3137 * value.c (unpack_bits_as_long): Rename to...
3138 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3139 value parameters. Return the extracted result in a new output
3140 parameter. If the value contents are unavailable, return false,
3141 otherwise return true.
3142 (unpack_value_bits_as_long): New.
3143 (unpack_field_as_long): Rename to...
3144 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3145 Add embedded_offset and value parameters. Return the extracted
3146 result in a new output parameter. If the value contents are
3147 unavailable, return false, otherwise return true.
3148 (unpack_value_field_as_long): New.
3149 (unpack_field_as_long_1): New.
3150 (unpack_field_as_long): Reimplement as wrapper around
3151 unpack_value_field_as_long_1.
3152 (value_field_bitfield): New function.
3153 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3154 unpack_value_bits_as_long. Mark the value as unavailable, if it
3156 * jv-valprint.c (java_print_value_fields): Use
3157 value_field_bitfield.
3158 * p-valprint.c (pascal_object_print_value_fields): Use
3159 value_field_bitfield.
3160 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3162 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3164 * value.c (get_internalvar_integer): Also return the int value of
3165 TYPE_CODE_INT INTERNALVAR_VALUE values.
3166 (set_internalvar): Don't special case TYPE_CODE_INT.
3168 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3170 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3171 INTERNALVAR_POINTER.
3173 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3174 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3175 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3177 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3179 * value.h (value_available_contents_eq): Declare.
3180 * value.c (find_first_range_overlap): New function.
3181 (value_available_contents_eq): New function.
3182 * valprint.c (val_print_array_elements): Use
3183 value_available_contents_eq.
3184 * ada-valprint.c (val_print_packed_array_elements): Use
3185 value_available_contents_eq.
3186 * jv-valprint.c (java_value_print): Use
3187 value_available_contents_eq.
3189 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3191 * target.c (target_read_live_memory): New function.
3192 (memory_xfer_live_readonly_partial): New.
3193 (memory_xfer_partial): If reading from a traceframe, fallback to
3194 reading unavailable read-only memory from read-only regions of
3196 * tracepoint.c (disconnect_tracing): Adjust.
3197 (set_current_traceframe): New, factored out from
3198 set_traceframe_number.
3199 (set_traceframe_number): Reimplement to only change the traceframe
3200 number on the GDB side.
3201 (do_restore_current_traceframe_cleanup): Adjust.
3202 (make_cleanup_restore_traceframe_number): New.
3203 (cur_traceframe_number): New global.
3204 (tfile_open): Set cur_traceframe_number to no traceframe.
3205 (set_tfile_traceframe): New function.
3206 (tfile_trace_find): If looking up a traceframe using any method
3207 other than by number, make sure the current tfile traceframe
3208 matches gdb's current traceframe. Update the current tfile
3209 traceframe if the lookup succeeded.
3210 (tfile_fetch_registers, tfile_xfer_partial)
3211 (tfile_get_trace_state_variable_value): Make sure the remote
3212 traceframe matches gdb's current traceframe.
3213 * remote.c (remote_traceframe_number): New global.
3214 (remote_open_1): Set it to -1.
3215 (set_remote_traceframe): New function.
3216 (remote_fetch_registers, remote_store_registers)
3217 (remote_xfer_memory, remote_xfer_partial)
3218 (remote_get_trace_state_variable_value): Make sure the remote
3219 traceframe matches gdb's current traceframe.
3220 (remote_trace_find): If looking up a traceframe using any method
3221 other than by number, make sure the current remote traceframe
3222 matches gdb's current traceframe. Update the current remote
3223 traceframe if the lookup succeeded.
3224 * infrun.c (fetch_inferior_event): Adjust.
3225 * tracepoint.h (set_current_traceframe): Declare.
3226 (get_traceframe_number, set_traceframe_number): Add describing
3229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3231 Mark pieces of values as unavailable if the corresponding memory
3234 * valops.c: Include tracepoint.h.
3235 (value_fetch_lazy): Use read_value_memory.
3236 (read_value_memory): New.
3237 * value.h (read_value_memory): Declare.
3238 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3239 * exec.c (section_table_available_memory): New function.
3240 * exec.h (section_table_available_memory): Declare.
3242 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3244 * Makefile.in (SFILES): Add memrange.c.
3245 (HFILES_NO_SRCDIR): Add memrange.h.
3246 (COMMON_OBS): Add memrange.o.
3247 * memrange.c: New file.
3248 * memrange.h: New file.
3249 * tracepoint.c: Include memrange.h.
3250 (struct mem_range): Delete.
3251 (mem_range_s): Delete.
3252 (traceframe_available_memory): New function.
3253 * tracepoint.h (traceframe_available_memory): Declare.
3255 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3257 * target.h (struct traceframe_info): Forward declare.
3258 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3259 (struct target_ops) <to_traceframe_info>: New field.
3260 (target_traceframe_info): New.
3261 * target.c (update_current_target): Inherit and default
3263 * remote.c (PACKET_qXfer_traceframe_info): New.
3264 (remote_protocol_features): Register qXfer:traceframe-info:read.
3265 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3266 (remote_traceframe_info): New.
3267 (init_remote_ops): Install it.
3268 (_initialize_remote): Install "set/show remote traceframe-info"
3270 * tracepoint.h (parse_traceframe_info): Declare.
3271 * tracepoint.c (struct mem_range): New.
3272 (mem_range_s): New typedef.
3273 (struct traceframe_info): New.
3274 (traceframe_info): New global.
3275 (free_traceframe_info): New function.
3276 (clear_traceframe_info): New function.
3277 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3279 (build_traceframe_info): New function.
3280 (tfile_traceframe_info): New function.
3281 (init_tfile_ops): Install tfile_traceframe_info.
3282 (traceframe_info_start_memory, free_result): New functions.
3283 (memory_attributes, traceframe_info_elements): New globals.
3284 (parse_traceframe_info, get_traceframe_info): New functions.
3285 * features/traceframe-info.dtd: New file.
3286 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3288 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3290 Base support for <unavailable> value contents.
3292 * value.h (value_bytes_available): Declare.
3293 (mark_value_bytes_unavailable): Declare.
3294 * value.c (struct range): New struct.
3295 (range_s): New typedef.
3296 (ranges_overlap): New function.
3297 (range_lessthan): New function.
3298 (ranges_contain_p): New function.
3299 (struct value) <unavailable>: New field.
3300 (value_bytes_available): New function.
3301 (mark_value_bytes_unavailable): New function.
3302 (require_not_optimized_out): Constify parameter.
3303 (require_available): New function.
3304 (value_contents_all, value_contents): Require all bytes be
3306 (value_free): Free `unavailable'.
3307 (value_copy): Copy `unavailable'.
3308 * valprint.h (val_print_unavailable): Declare.
3309 * valprint.c (valprint_check_validity): Rename `offset' parameter
3310 to `embedded_offset'. If printing a scalar, check whether the
3311 value chunk is available.
3312 (val_print_unavailable): New.
3313 (val_print_scalar_formatted): Check whether the value is
3315 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3316 pretty-printing unavailable values.
3318 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3320 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3321 * c-typeprint.c (c_type_print_args): Update the function comment. New
3322 variable param_type, initialize it. Remove const/volatile qualifiers
3323 for language_cplus and !show_artificial. Use param_type.
3325 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3327 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3328 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3329 * symtab.h (struct symtab) <next>: Comment extension.
3331 2011-02-12 Yao Qi <yao@codesourcery.com>
3333 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3335 2011-02-11 Yao Qi <yao@codesourcery.com>
3337 * common/Makefile.in: Add copyright header.
3339 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3341 * infrun.c (proceed): Move switching out and in of tfind mode from
3343 (fetch_inferior_event): ... to here.
3345 2011-02-11 Yao Qi <yao@codesourcery.com>
3347 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3349 * configure.ac: Add common to sub dir.
3350 * configure: Regenerate.
3352 2011-02-11 Yao Qi <yao@codesourcery.com>
3356 * common/Makefile.in: New.
3357 * common/configure.ac: New.
3358 * common/aclocal.m4: New.
3359 * common/configure: Generate.
3361 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3363 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3364 side of the parenthesis.
3367 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3368 * vec.h (VEC_block_remove): Fix comment.
3370 2011-02-08 Michael Snyder <msnyder@vmware.com>
3372 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3374 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3376 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3377 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3380 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3383 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3385 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3386 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3388 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3390 * dwarf2read.c (read_subroutine_type): Set special calling
3391 convention flag for functions compiled by IBM XL C for OpenCL.
3392 * ppc-sysv-tdep.c: Include "dwarf2.h"
3393 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3395 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3396 IBM OpenCL vector types calling convention.
3397 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3398 (ppc_sysv_abi_broken_return_value): Likewise.
3399 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3400 types calling convention.
3401 (ppc64_sysv_abi_return_value): Likewise.
3402 * spu-tdep.c: Include "dwarf2.h"
3403 (spu_return_value): Implement IBM OpenCL vector types calling
3406 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3408 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3409 correct ABI for AltiVec vector arguments.
3411 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3413 * valprint.c (val_print): Extend comment.
3414 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3415 interface explanation to val_print.
3416 (ada_val_print_array): Adjust comment to current interface.
3417 (print_field_values): Adjust comment to current interface.
3418 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3419 explanation to val_print.
3420 * f-valprint.c (f_val_print): Ditto.
3421 * jv-valprint.c (java_val_print): Ditto.
3422 * m2-valprint.c (m2_val_print): Ditto.
3423 * p-valprint.c (pascal_val_print): Ditto.
3425 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3427 * breakpoint.c (parse_breakpoint_sals): Fix description.
3429 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3430 Oguz Kayral <oguzkayral@gmail.com>
3432 * python/py-inferior.c (python_on_normal_stop): New function.
3433 (python_on_resume): New function.
3434 (python_inferior_exit): New function.
3435 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3436 inferior_exit observers.
3437 * python/py-evtregistry.c: New file.
3438 * python/py-threadevent.c : New file.
3439 * python/py-event.c: New file.
3440 * python/py-evts.c: New file.
3441 * python/py-continueevent.c: New file.
3442 * python/py-bpevent.c: New file.
3443 * python/py-signalevent.c: New file.
3444 * python/py-exetiedevent.c: New file.
3445 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3446 Move struct breakpoint_object from here...
3447 * python/python-internal.h: ... to here.
3448 * python/py-event.h: New file.
3449 * python/py-events.h: New file.
3450 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3451 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3452 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3453 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3454 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3455 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3456 Add build rules for all the above.
3458 2011-02-04 Tom Tromey <tromey@redhat.com>
3460 * dwarf2read.c (dwarf2_section_empty_p): New function.
3461 (dwarf2_read_section): Use dwarf2_section_empty_p.
3462 (dwarf2_section_size): New function.
3463 (dwarf2_get_section_info): Unconditionally read section.
3464 (dwarf2_read_index): Use dwarf2_section_empty_p.
3465 (partial_read_comp_unit_head): Use dwarf2_section_size.
3466 (dwarf2_symbol_mark_computed): Likewise.
3468 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3470 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3472 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3474 * mips-linux-tdep.c: Include xml-syscall.h.
3475 (mips_linux_get_syscall_number): New function.
3476 (mips_linux_init_abi): Add calls to
3477 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3478 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3479 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3480 * syscalls/mips-n32-linux.xml: New file.
3481 * syscalls/mips-n64-linux.xml: New file.
3482 * syscalls/mips-o32-linux.xml: New file.
3484 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3486 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3487 Complain about inverted range entries.
3488 (dwarf2_record_block_ranges): Likewise.
3490 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3493 * breakpoint.c (update_watchpoint): Fix name of the
3494 update_global_location_list function.
3495 (print_one_breakpoint): Fix typo.
3496 (_initialize_breakpoint): Remove extra space in hbreak help
3498 * breakpoint.h (struct bp_location) <length>: Fix field
3501 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3503 * regcache.c (registers_changed_ptid): Don't explictly always
3504 clear `current_regcache'. Only clear current_thread_ptid and
3505 current_thread_arch when PTID matches. Only reinit the frame
3506 cache if PTID matches the current inferior_ptid. Move alloca(0)
3508 (registers_changed): ... here.
3510 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3512 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3513 starts with __stack_chk_guard as stack guard symbol.
3515 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3517 * disasm.c (compare_lines): Handle the end of sequence markers
3518 within the line table to better support disassembling over
3519 compilation unit boundaries.
3521 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3523 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3524 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3525 implementation even if no symbols are available.
3526 (thumb_analyze_prologue): Update call to skip_prologue_function.
3527 (arm_analyze_prologue): Likewise.
3529 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3531 * arm-tdep.c: Include "observer.h".
3532 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3533 (arm_exidx_data_key): New static variable.
3534 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3535 (struct arm_exidx_data): Likewise.
3536 (arm_exidx_data_free): New function.
3537 (arm_compare_exidx_entries): Likewise.
3538 (arm_obj_section_from_vma): Likewise.
3539 (arm_exidx_new_objfile): Likewise.
3540 (arm_find_exidx_entry): Likewise.
3541 (arm_exidx_fill_cache): Likewise.
3542 (arm_exidx_unwind_sniffer): Likewise.
3543 (arm_exidx_unwind): New global variable.
3544 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3545 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3546 observer. Register arm_exidx_data_key as objfile data.
3548 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3550 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3551 due to accessing uninitialized variable. Fix indentation.
3553 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3555 * c-valprint.c (c_value_print): When doing virtual base pointer
3556 adjustment, create a new value with adjusted contents rather than
3557 changing the contents of the value being printed (and getting it
3560 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3562 * xml-support.c (xml_find_attribute): New.
3563 (xinclude_start_include): Use it.
3564 * xml-support.h (xml_find_attribute): Declare.
3565 * memory-map.c (memory_map_start_memory)
3566 (memory_map_start_property): Use xml_find_attribute.
3567 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3569 * remote.c (start_thread): Use xml_find_attribute.
3570 * solib-target.c (library_list_start_segment)
3571 (library_list_start_section, library_list_start_library)
3572 (library_list_start_list): Use xml_find_attribute.
3573 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3574 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3575 (tdesc_start_field): Use xml_find_attribute.
3577 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3579 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3580 (BUILD_OCL_VTYPES): Update.
3582 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3584 * configure.ac: Work around non-GNU sed limitation when computing
3585 python version number.
3586 * configure: Regenerate.
3588 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3590 Fix debug printing of TYPE_INSTANCE.
3591 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3592 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3594 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3596 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3597 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3598 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3599 * ada-operator.inc: Rename the file to ...
3600 * ada-operator.def: ... here, wrap all the entries by macro OP.
3601 * expprint.c (op_name_standard): Remove all the entries. Include
3602 "std-operator.def" instead.
3603 * expression.h (enum exp_opcode): Include "std-operator.def" and
3604 "ada-operator.def". Move all the entries ...
3605 * std-operator.def: ... here, wrap all the entries by macro OP.
3607 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3609 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3610 * breakpoint.c (remove_jit_event_breakpoints): New function.
3611 * jit.c (jit_descriptor_addr): Delete.
3612 (registering_code): Delete.
3613 (clear_int): Delete.
3614 (jit_inferior_data): New variable.
3615 (struct jit_inferior_data): New type.
3616 (get_jit_inferior_data): New function.
3617 (jit_inferior_data_cleanup): New function.
3618 (jit_read_descriptor): Adjust.
3619 (jit_register_code): Adjust.
3620 (jit_breakpoint_re_set_internal): New function; move code here ...
3621 (jit_inferior_init): ... from here.
3622 (jit_breakpoint_re_set): Adjust.
3623 (jit_reset_inferior_data_and_breakpoints): New function.
3624 (jit_inferior_created_observer): Adjust.
3625 (jit_inferior_exit_hook): Adjust.
3626 (jit_executable_changed_observer): New function.
3627 (jit_event_handler): Adjust.
3628 (_initialize_jit): Adjust.
3630 2011-01-31 Michael Snyder <msnyder@vmware.com>
3632 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3635 2011-01-31 Tom Tromey <tromey@redhat.com>
3638 * python/python.c (execute_gdb_command): Call
3639 prevent_dont_repeat.
3640 * top.c (suppress_dont_repeat): New global.
3641 (dont_repeat): Use it.
3642 (prevent_dont_repeat): New function.
3643 * command.h (prevent_dont_repeat): Declare.
3645 2011-01-31 Tom Tromey <tromey@redhat.com>
3647 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3648 * python/py-breakpoint.c (bppy_set_silent): Use
3649 breakpoint_set_silent.
3650 (bppy_set_thread): Use breakpoint_set_thread.
3651 (bppy_set_task): Use breakpoint_set_task.
3652 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3653 (breakpoint_set_task): Declare.
3654 (make_breakpoint_silent): Remove.
3655 * breakpoint.c (breakpoint_set_silent): New function.
3656 (breakpoint_set_thread): Likewise.
3657 (breakpoint_set_task): Likewise.
3658 (make_breakpoint_silent): Remove.
3660 2011-01-31 Tom Tromey <tromey@redhat.com>
3662 * breakpoint.h (user_breakpoint_p): Declare.
3663 * breakpoint.c (user_breakpoint_p): New function.
3664 (breakpoint_1): Use it.
3665 (save_breakpoints): Likewise.
3667 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3669 * configure.ac: Add handling of Python distribution on Windows.
3670 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3671 sysconfig variables are not defined, then do not use them.
3672 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3673 instead. On Windows, return all paths using forward-slashes
3674 rather than backslashes.
3676 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3678 * configure.ac: Remove fallback behavior for building
3679 against Python. Remove tweaking of Python include path.
3680 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3681 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3682 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3683 Always restore CPPFLAGS and LIBS after linking test.
3684 * configure: Regenerated.
3685 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3686 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3687 * python/python-internal.h: Adjust includes of Python .h files.
3689 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3691 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3694 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3696 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3699 2011-01-31 Yao Qi <yao@codesourcery.com>
3701 * arm-linux-nat.c: Update calls to regcache_register_status
3702 instead of regcache_valid_p.
3703 * aix-thread.c: Likewise.
3704 * i386gnu-nat.c: Likewise.
3706 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3710 touching TYPE_FIELD_ARTIFICIAL.
3712 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3714 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3717 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3719 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3720 selected, don't try iterating over the traceframe's blocks.
3721 (tfile_has_stack): If there's no traceframe selected, then there's
3723 (tfile_has_registers): If there's no traceframe selected, then
3724 there's no registers.
3726 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3728 * target.c (memory_xfer_partial): No need to restore shadows if we
3729 haven't read anything.
3731 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3733 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3734 and val_print_scalar_formatted.
3736 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3738 * tracepoint.c (tfile_read): New.
3739 (tfile_open): Use it.
3740 (tfile_get_traceframe_address): Use it.
3741 (tfile_trace_find): Use it.
3742 (walk_blocks_callback_func): New typedef.
3743 (match_blocktype): New function.
3744 (traceframe_walk_blocks): New function.
3745 (traceframe_find_block_type): New function.
3746 (tfile_fetch_registers, tfile_xfer_partial)
3747 (tfile_get_trace_state_variable_value): Use
3748 traceframe_find_block_type and tfile_read.
3750 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3752 * remote-mips.c: Add internationalization mark ups. Remove
3753 trailing \n from already marked up strings.
3755 2011-01-26 Tom Tromey <tromey@redhat.com>
3757 * python/py-prettyprint.c (print_string_repr): Clear
3758 'addressprint' option when calling val_print_string.
3759 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3760 option when calling val_print_string.
3762 2011-01-26 Tom Tromey <tromey@redhat.com>
3764 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3766 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3768 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3769 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3770 (gdb_py_long_as_ulongest): New defines.
3771 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3772 (gdb_py_int_as_long): Declare.
3773 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3774 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3775 (valpy_long): Add comment.
3776 * python/py-utils.c (get_addr_from_python): Use
3777 gdb_py_long_as_ulongest. Handle overflow properly.
3778 (gdb_py_object_from_longest): New function.
3779 (gdb_py_object_from_ulongest): Likewise.
3780 (gdb_py_int_as_long): Likewise.
3781 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3782 * python/py-symtab.c (salpy_get_pc): Use
3783 gdb_py_long_from_ulongest.
3784 (salpy_get_line): Use PyInt_FromLong.
3785 * python/py-param.c (set_parameter_value): Use
3787 * python/py-lazy-string.c (stpy_get_address): Use
3788 gdb_py_long_from_ulongest.
3789 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3790 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3791 * python/py-breakpoint.c (bppy_set_thread): Use
3793 (bppy_set_task): Likewise.
3794 (bppy_set_ignore_count): Likewise.
3795 (bppy_set_hit_count): Likewise.
3796 * python/py-block.c (blpy_get_start): Use
3797 gdb_py_object_from_ulongest.
3798 (blpy_get_end): Likewise.
3799 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3801 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3804 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3805 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3806 equality test for objfile, initialize addr_low if needed.
3808 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3810 * tui/tui-regs.c (tui_register_format): Remove dead code.
3812 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3814 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3815 instead of print_scalar_formatted.
3816 (print_scalar_formatted): Don't handle 's' format strings here,
3817 and add an assertion that we never see such format here.
3818 * valprint.h (val_print_scalar_formatted): Declare.
3819 * valprint.c (val_print_scalar_formatted): New.
3820 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3821 instead of print_scalar_formatted.
3822 * jv-valprint.c (java_val_print): Ditto.
3823 * p-valprint.c (pascal_val_print): Ditto.
3824 * ada-valprint.c (ada_val_print_1): Ditto.
3825 * f-valprint.c (f_val_print): Ditto.
3826 * infcmd.c (registers_info): Ditto.
3827 * m2-valprint.c (m2_val_print): Ditto.
3829 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3831 * m2-valprint.c (print_unbounded_array): Pass
3832 value_contents_for_printing rather than value_contents, to
3833 m2_print_array_contents. Also pass in the value.
3835 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3838 (save_gdb_index_command): Switch to .gdb_index version 4.
3840 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3842 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3843 than frame_register, and always pass a valid value to val_print.
3845 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3847 Centralize printing "<optimized out>".
3849 * valprint.h (val_print_optimized_out): Declare.
3850 * cp-valprint.c (cp_print_value_fields): Use
3851 val_print_optimized_out.
3852 * jv-valprint.c (java_print_value_fields): Ditto.
3853 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3854 * printcmd.c (print_formatted): Ditto.
3855 * valprint.c (valprint_check_validity): Ditto.
3856 (value_check_printable): Ditto.
3857 (val_print_optimized_out): New.
3859 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3861 * infcmd.c (default_print_registers_info): Allocate values so to
3862 never pass a NULL value to val_print.
3864 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3866 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3867 boolean. Make sure to always pass a value that matches the
3868 contents buffer to callees. Preserve `address' for following
3870 * value.c (value_contents_for_printing_const): New.
3871 (value_address): Constify value argument.
3872 * value.h (value_contents_for_printing_const): Declare.
3873 (value_address): Constify value argument.
3875 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3877 * regcache.c (struct regcache_descr): Rename
3878 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3879 and sizeof_cooked_register_valid_p to
3880 sizeof_cooked_register_status.
3881 (init_regcache_descr): Adjust.
3882 (struct regcache): Rename register_valid_p field to
3884 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3885 (do_cooked_read): Adjust.
3886 (regcache_valid_p): Rename to ...
3887 (regcache_register_status): ... this. Adjust.
3888 (regcache_invalidate): Adjust.
3889 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3891 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3892 as unavailable, not valid.
3893 (regcache_dump): Adjust.
3894 * regcache.h (enum register_status): New.
3895 (regcache_register_status): Declare.
3896 (regcache_invalidate): Delete declaration.
3897 * corelow.c (get_core_registers): Adjust.
3898 * tracepoint.c (tfile_fetch_registers): Adjust.
3899 * trad-frame.c (REG_VALUE): Rename to ...
3900 (TF_REG_VALUE): ... this.
3901 (REG_UNKNOWN): Rename to ...
3902 (TF_REG_UNKNOWN): ... this.
3903 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3904 * mi/mi-main.c (register_changed_p): Adjust.
3906 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3908 * regcache.c (struct regcache_descr): Remove outdated comment.
3909 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3911 (regcache_xmalloc): Rename to ...
3912 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3913 Allocate the regcache type accordingly.
3914 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3915 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3916 cooked registers, not raw.
3917 (regcache_dup_no_passthrough): Delete.
3918 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3919 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3920 mention obsolete write_register_bytes.
3921 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3923 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3925 Stop remote_read_bytes from handling partial reads itself.
3927 * remote-fileio.c: Include target.h.
3928 (remote_fileio_write_bytes): Delete.
3929 (remote_fileio_func_open, remote_fileio_func_write)
3930 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3932 (remote_fileio_func_stat): Use target_read_memory and
3933 target_write_memory.
3934 (remote_fileio_func_gettimeofday): Use target_write_memory.
3935 (remote_fileio_func_system): Use target_read_memory.
3936 * remote.c (remote_write_bytes): Make it static.
3937 (remote_read_bytes): Don't handle partial reads here.
3938 * remote.h (remote_read_bytes): Delete declaration.
3940 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3942 Simplify XML parsing a bit.
3944 * xml-support.h (gdb_xml_parse_quick): Declare.
3945 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3946 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3948 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3949 gdb_xml_create_parser_and_cleanup_1.
3950 (gdb_xml_parse_quick): New.
3951 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3952 * osdata.c (osdata_parse): Ditto.
3953 * remote.c (remote_threads_info): Ditto.
3954 * solib-target.c (solib_target_parse_libraries): Ditto.
3955 * xml-syscall.c (syscall_parse_xml): Ditto.
3956 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3958 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3960 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3961 with remote-mips.o added to gdb_target_obs.
3962 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3964 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3966 * ada-valprint.c (val_print_packed_array_elements): Pass the
3967 correct struct value to val_print.
3968 (ada_val_print_1): Ditto.
3970 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3972 Don't lose embedded_offset in printing routines throughout.
3974 * valprint.h (val_print_array_elements): Change prototype.
3975 * valprint.c (val_print_array_elements): Add `embedded_offset'
3976 parameter, and adjust to pass it down to val_print, while passing
3977 `valaddr' or `address' unmodified. Take embedded_offset into
3978 account when checking repetitions.
3979 * c-valprint.c (c_val_print): Pass embedded_offset to
3980 val_print_array_elements instead of adjusting `valaddr' and
3982 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3983 embedded_offset to val_print_array_elements instead of adjusting
3985 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3986 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3987 val_print_array_elements and pascal_object_print_value_fields
3988 instead of adjusting `valaddr'.
3989 (pascal_object_print_value_fields): Add `offset' parameter, and
3991 (pascal_object_print_value): Add `offset' parameter, and adjust to
3993 (pascal_object_print_static_field): Use
3994 value_contents_for_printing/value_embedded_offset, rather than
3996 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3997 parameter, and adjust to use it. Use
3998 value_contents_for_printing/value_embedded_offset, rather than
4000 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4001 (ada_val_print_array): Add `offset' parameter, and adjust to use
4003 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4004 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4005 Instead work with offsets. Use
4006 value_contents_for_printing/value_embedded_offset, rather than
4007 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4008 and use value_from_pointer to extract a target pointer, rather
4009 than value_from_longest.
4010 (print_variant_part): Add `offset' parameter. Replace
4011 `outer_valaddr' parameter by a new `outer_offset' parameter.
4012 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4013 (ada_value_print): Use
4014 value_contents_for_printing/value_embedded_offset, rather than
4016 (print_record): Add `offset' parameter, and adjust to pass it
4018 (print_field_values): Add `offset' parameter. Replace
4019 `outer_valaddr' parameter by a new `outer_offset' parameter.
4020 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4021 Use value_contents_for_printing/value_embedded_offset, rather than
4023 * d-valprint.c (dynamic_array_type): Use
4024 value_contents_for_printing/value_embedded_offset, rather than
4026 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4027 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4028 (java_print_value_fields): Take `offset' into account. Don't
4029 re-adjust `valaddr'. Instead pass down adjusted offsets.
4030 (java_val_print): Take `embedded_offset' into account. Pass it to
4031 java_print_value_fields.
4032 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4033 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4034 down adjusted offsets.
4035 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4036 (f_val_print): Take `embedded_offset' into account.
4038 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4040 * inflow.c: Include "gdbcmd.h".
4041 (interactive_mode): New static global, moved here from top.c.
4042 (show_interactive_mode): New function, moved here from top.c.
4043 use gdb_has_a_terminal instead of input_from_terminal_p to
4044 determine the current mode.
4045 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4047 (_initialize_inflow): Add the "set/show interactive-mode"
4048 commands. Moved here from top.c, after having adjusted slightly
4050 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4052 (input_from_terminal_p): Remove handling of "interactive-mode"
4053 setting, moved to infow.c.
4054 (init_main): Remove creation of the "set/show interactive-mode"
4055 commands, moved to inflow.c.
4057 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4059 * NEWS: Add entry for native ia64-hpux support.
4061 2011-01-19 Tom Tromey <tromey@redhat.com>
4064 * thread.c (free_thread): Free 'name'.
4065 (print_thread_info): Emit thread name. Change CLI output.
4066 (thread_name_command): New function.
4067 (do_captured_thread_select): Emit newline.
4068 (_initialize_thread): Register 'thread name' command.
4069 * target.h (struct target_ops) <to_thread_name>: New field.
4070 (target_thread_name): New macro.
4071 * target.c (update_current_target): Handle to_thread_name.
4072 * python/py-infthread.c (thpy_get_name): New function.
4073 (thpy_set_name): Likewise.
4074 (thread_object_getset): Add "name".
4075 * linux-nat.c (linux_nat_thread_name): New function.
4076 (linux_nat_add_target): Set to_thread_name.
4077 * gdbthread.h (struct thread_info) <name>: New field.
4079 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4081 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4082 (ada_val_print_1): Likewise.
4084 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4086 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4087 upper limit address is not greater than the function end address
4088 when the upper limit could not be computed using the debugging
4091 2011-01-17 Tom Tromey <tromey@redhat.com>
4093 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4095 * utils.c: Include gdb_regex.h.
4096 (do_regfree_cleanup): New function.
4097 (make_regfree_cleanup): Likewise.
4098 (get_regcomp_error): Likewise.
4099 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4101 2011-01-17 Tom Tromey <tromey@redhat.com>
4103 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4106 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4108 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4109 for internal variables.
4110 (last_was_structop): New static variable.
4111 (COMPLETE): New token.
4112 (field_exp): New rule to group all '.' suffix handling.
4113 Add mark_struct_expression calls when approriate to be able
4114 to correctly find fields for completion.
4115 (yylex): Adapt to handle field completion and set INTVAR when
4118 2011-01-14 Yao Qi <yao@codesourcery.com>
4120 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4121 save_reggroup, restore_reggroup and all_reggroup.
4123 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4125 * ada-valprint. (ada_printchar): Use the correct type length
4126 in call to ada_emit_char.
4127 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4129 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4131 * solib-som.h (hpux_major_release): Declare variable here.
4132 * solib-som.c: Remove <sys/utsname.h> header.
4133 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4134 (hpux_major_release): Make global, change default value to
4135 DEFAULT_HPUX_MAJOR_RELEASE.
4136 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4137 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4138 Add "solib-som.h" header.
4139 (set_hpux_major_release): New function.
4140 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4142 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4144 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4146 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4148 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4149 new-line at end of warning message.
4150 (ia64_hpux_store_register): Remove trailing new-line at end of
4152 * ia64-hpux-tdep.c: Rephrase comment.
4153 * solib-ia64-hpux.c (struct dld_info): Change type of field
4154 dld_flags from "long long" to ULONGEST.
4156 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4158 * target.h (deprecated_child_ops): Delete declaration.
4159 * target.c (deprecated_child_ops): Delete definition.
4161 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4163 * Makefile.in (hpux-thread.o): Delete rule.
4164 * configure.ac: Don't check for HPUX DCE threads support.
4165 * configure, config.in: Regenerate.
4166 * hppa-hpux-nat.c (child_suppress_run): Delete.
4167 (hppa_hpux_child_can_run): Delete.
4168 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4169 * hpux-thread.c: Delete.
4171 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4173 * hpux-thread.c (hpux_pid_to_str): Delete.
4175 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4177 * ada-valprint.c (ada_emit_char): Remove strange code.
4178 Check that c is <= UCHAR_MAX before passing it to isascii.
4179 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4181 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4183 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4184 to the case where instream is stdin.
4186 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4188 * ia64-tdep.h (struct regcache): Forward declare.
4189 (struct ia64_infcall_ops): New struct type.
4190 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4192 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4193 Renames ia64_find_global_pointer.
4194 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4195 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4196 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4198 (ia64_infcall_ops): New static global constant.
4199 (ia64_gdbarch_init): Set tdep->infcall_ops.
4200 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4201 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4202 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4203 (ia64_hpux_dummy_code): New static global constant.
4204 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4205 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4206 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4208 (ia64_hpux_infcall_ops): New static global constant.
4209 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4210 for inferior function calls to work properly on ia64-hpux.
4212 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4214 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4215 * ia64-tdep.h (struct frame_info): forward declaration.
4216 (struct gdbarch_tdep): Add field size_of_register_frame.
4217 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4218 to determine the size of the register frame.
4219 (ia64_size_of_register_frame): New function.
4220 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4221 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4222 (IA64_HPUX_UREG_REASON): New macro.
4223 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4225 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4226 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4227 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4230 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4232 Add support for ia64-hpux.
4233 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4234 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4236 * configure.host: Add handling for ia64-hpux hosts. Add associated
4238 * configure.tgt: Add handling for ia64-hpux targets.
4239 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4240 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4241 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4243 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4245 [ttrace] Compute thread list immediately after attach.
4246 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4248 (inf_ttrace_attach): Use it.
4250 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4252 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4253 if we could not determine the frame's function address. Instead,
4254 use the frame's PC, and then continue.
4256 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4258 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4259 not already defined.
4261 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4263 * ia64-tdep.c (ia64_struct_type_p): New function.
4264 (ia64_extract_return_value): Handle integral values that are
4265 less than 8 bytes long.
4266 (ia64_push_dummy_call): Likewise.
4268 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4270 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4271 floatformat_ia64_ext.
4272 (floatformat_ia64_ext_big): New static const.
4273 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4275 2011-01-12 Tom Tromey <tromey@redhat.com>
4277 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4279 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4280 (mi_cmd_thread_list_ids): Likewise.
4281 (mi_cmd_data_list_changed_registers): Likewise.
4282 (mi_cmd_data_list_register_values): Likewise.
4283 (mi_cmd_data_write_register_values): Likewise.
4284 (mi_cmd_data_evaluate_expression): Likewise.
4285 (mi_cmd_data_read_memory): Likewise.
4286 (mi_cmd_data_read_memory_bytes): Likewise.
4287 (mi_cmd_data_write_memory): Likewise.
4288 (mi_cmd_enable_timings): Likewise.
4289 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4290 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4291 (mi_cmd_var_delete): Likewise.
4292 (mi_cmd_var_set_format): Likewise.
4293 (mi_cmd_var_show_format): Likewise.
4294 (mi_cmd_var_info_num_children): Likewise.
4295 (mi_cmd_var_list_children): Likewise.
4296 (mi_cmd_var_info_type): Likewise.
4297 (mi_cmd_var_info_expression): Likewise.
4298 (mi_cmd_var_show_attributes): Likewise.
4299 (mi_cmd_var_assign): Likewise.
4300 (mi_cmd_var_update): Likewise.
4301 (mi_cmd_enable_pretty_printing): Likewise.
4302 (mi_cmd_var_set_update_range): Likewise.
4303 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4305 (mi_cmd_target_file_put): Likewise.
4306 (mi_cmd_target_file_delete): Likewise.
4307 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4309 (mi_cmd_stack_info_depth): Likewise.
4310 (mi_cmd_stack_list_locals): Likewise.
4311 (mi_cmd_stack_list_args): Likewise.
4312 (mi_cmd_stack_select_frame): Likewise.
4313 (mi_cmd_stack_select_frame): Likewise.
4314 (mi_cmd_stack_info_frame): Likewise.
4315 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4317 (mi_cmd_file_list_exec_source_files): Likewise.
4318 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4319 (mi_cmd_env_cd): Likewise.
4320 (mi_cmd_env_path): Likewise.
4321 (mi_cmd_env_dir): Likewise.
4322 (mi_cmd_inferior_tty_show): Likewise.
4323 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4324 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4325 (mi_cmd_break_watch): Likewise.
4327 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4329 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4330 (ppc_linux_insert_hw_breakpoint): Likewise.
4331 (ppc_linux_remove_hw_breakpoint): Likewise.
4332 (ppc_linux_insert_watchpoint): Likewise.
4334 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4335 Jan Kratochvil <jan.kratochvil@redhat.com>
4337 PR fortran/11104 and DWARF unbound arrays detection.
4338 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4339 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4340 unspecified upper bound.
4341 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4342 variables array_size_array, tmp_type and offset_item. New variable
4343 array. Remove call to f77_get_upperbound. New variables array_type
4344 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4345 the final call to deprecated_set_value_type.
4347 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4349 Make value allocations more lazy.
4350 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4351 instead of allocate_value and set_value_lazy when possible.
4352 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4353 instead of allocate_value and set_value_lazy.
4354 * findvar.c (value_of_register_lazy): Likewise.
4355 (read_var_value): Remove V preallocation, call just check_typedef in
4356 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4357 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4358 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4359 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4360 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4361 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4362 the end, remove set_value_lazy there.
4363 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4364 instead of allocate_value and set_value_lazy when possible.
4365 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4366 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4367 of allocate_value and set_value_lazy.
4368 (value_from_contents_and_address): Use allocate_value_lazy instead of
4369 allocate_value and set_value_lazy when possible.
4371 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4373 * disasm.c (dump_insns): Support dumping opcodes for MI.
4374 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4375 dumping of instruction opcodes.
4377 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4379 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4382 2011-01-11 Tom Tromey <tromey@redhat.com>
4384 * thread.c (do_captured_thread_select): Emit newline before
4387 2011-01-11 Michael Snyder <msnyder@vmware.com>
4389 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4390 * score-tdep.c: Ditto.
4391 * score-tdep.h: Ditto.
4392 * ser-base.c: Ditto.
4393 * ser-go32.c: Ditto.
4396 * ser-mingw.c: Ditto.
4397 * ser-pipe.c: Ditto.
4399 * ser-unix.c: Ditto.
4400 * sh64-tdep.c: Ditto.
4401 * shnbsd-nat.c: Ditto.
4405 * solib-darwin.c: Ditto.
4406 * solib-frv.c: Ditto.
4408 * solib-irix.c: Ditto.
4409 * solib-osf.c: Ditto.
4410 * solib-pa64.c: Ditto.
4411 * solib-som.c: Ditto.
4412 * solib-spu.c: Ditto.
4413 * solib-sunos.c: Ditto.
4414 * solib-svr4.c: Ditto.
4416 * sol-thread.c: Ditto.
4420 * sparc64-linux-tdep.c: Ditto.
4421 * sparc64-tdep.c: Ditto.
4422 * sparc-linux-nat.c: Ditto.
4423 * sparc-linux-tdep.c: Ditto.
4424 * sparc-sol2-nat.c: Ditto.
4425 * sparc-sol2-tdep.c: Ditto.
4426 * sparc-tdep.c: Ditto.
4427 * sparc-tdep.h: Ditto.
4428 * spu-tdep.c: Ditto.
4429 * stabsread.c: Ditto.
4430 * stabsread.h: Ditto.
4438 * target-descriptions.c: Ditto.
4439 * target-descriptions.h: Ditto.
4441 * target-memory.c: Ditto.
4442 * terminal.h: Ditto.
4445 * tracepoint.c: Ditto.
4446 * tracepoint.h: Ditto.
4447 * trad-frame.h: Ditto.
4448 * typeprint.c: Ditto.
4450 2011-01-11 Michael Snyder <msnyder@vmware.com>
4452 * ui-file.c: Comment cleanup, mostly periods and spaces.
4457 * v850-tdep.c: Ditto.
4458 * valarith.c: Ditto.
4460 * valprint.c: Ditto.
4461 * valprint.h: Ditto.
4466 * vax-tdep.c: Ditto.
4470 * windows-nat.c: Ditto.
4471 * windows-tdep.c: Ditto.
4472 * xcoffread.c: Ditto.
4473 * xcoffsolib.c: Ditto.
4474 * xml-support.c: Ditto.
4475 * xstormy16-tdep.c: Ditto.
4476 * xtensa-tdep.c: Ditto.
4477 * xtensa-tdep.h: Ditto.
4479 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4481 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4482 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4484 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4485 Thiago Jung Bauermann <bauerman@br.ibm.com>
4487 Implement support for PowerPC BookE ranged watchpoints.
4489 (struct breakpoint_ops) <resources_needed>: New method.
4490 Initialize to NULL in all existing breakpoint_ops instances.
4491 (struct breakpoint) <exact>: New field.
4492 (target_exact_watchpoints): Declare external global.
4493 * breakpoint.c (target_exact_watchpoints): New global flag.
4494 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4495 b->enable_state to bp_enabled before calling
4496 hw_watchpoint_used_count.
4497 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4498 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4500 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4501 if the watchpoint is exact.
4502 (resources_needed_watchpoint): New function.
4503 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4504 (watch_command_1): Set b->exact if the user asked for an exact
4505 watchpoint and one can be set.
4506 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4507 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4508 the user asks for an exact watchpoint and one can be set. Return
4509 number of needed debug registers to watch the expression.
4510 * gdbtypes.c (is_scalar_type): New function, based on
4511 valprint.c:scalar_type_p.
4512 (is_scalar_type_recursive): New function.
4513 * gdbtypes.h (is_scalar_type_recursive): Declare.
4514 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4515 handle regions when ranged watchpoints are available.
4516 (create_watchpoint_request): New function.
4517 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4518 create_watchpoint_request.
4519 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4520 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4521 `set powerpc' and `show powerpc' commands.
4522 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4523 Mention documentation comment in the target macro.
4524 (target_region_ok_for_hw_watchpoint): Document return value.
4526 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4528 * breakpoint.c (update_watchpoint): Decide on using a software or
4529 hardware watchpoint after the bp_locations are created.
4531 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4533 Convert hardware watchpoints to use breakpoint_ops.
4534 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4535 <insert_location>: ... this. Return int instead of void.
4536 Accept pointer to struct bp_location instead of pointer to
4537 struct breakpoint. Adapt all implementations.
4538 (breakpoint_ops) <remove>: Rename to...
4539 <remove_location>: ... this. Accept pointer to struct bp_location
4540 instead of pointer to struct breakpoint. Adapt all implementations.
4541 * breakpoint.c (insert_catchpoint): Delete function.
4542 (insert_bp_location): Call the watchpoint or catchpoint's
4543 breakpoint_ops.insert method.
4544 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4545 breakpoint_ops.remove method.
4546 (insert_watchpoint, remove_watchpoint): New functions.
4547 (watchpoint_breakpoint_ops): New structure.
4548 (watch_command_1): Initialize the OPS field.
4549 * inf-child.c (inf_child_insert_fork_catchpoint)
4550 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4551 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4552 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4554 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4555 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4556 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4557 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4558 * target.c (update_current_target): Change default implementation of
4559 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4560 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4561 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4562 to_set_syscall_catchpoint to return_one.
4563 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4564 (debug_to_insert_exec_catchpoint): Report return value.
4565 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4566 (to_insert_exec_catchpoint): Change declaration to return int instead
4569 2011-01-11 Michael Snyder <msnyder@vmware.com>
4571 * arm-tdep.c: Internationalization.
4574 * fork-child.c: Ditto.
4575 * nto-procfs.c: Ditto.
4576 * ppc-sysv-tdep.c: Ditto.
4578 * remote-mips.c: Ditto.
4580 * rs6000-nat.c: Ditto.
4581 * rs6000-tdep.c: Ditto.
4585 * xml-support.c: Ditto.
4586 * mi/mi-cmd-break.c: Ditto.
4587 * mi/mi-cmd-var.c: Ditto.
4588 * mi/mi-interp.c: Ditto.
4589 * mi/mi-main.c: Ditto.
4591 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4593 * remote-sim.c (gdbsim_store_register): Update API to
4594 sim_store_register to check more error conditions.
4596 2011-01-10 Michael Snyder <msnyder@vmware.com>
4598 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4599 * nto-tdep.c: Ditto.
4600 * nto-tdep.h: Ditto.
4601 * objc-exp.y: Ditto.
4602 * objc-lang.c: Ditto.
4603 * objfiles.c: Ditto.
4604 * objfiles.h: Ditto.
4605 * observer.c: Ditto.
4606 * opencl-lang.c: Ditto.
4609 * parser-defs.h: Ditto.
4612 * posix-hdep.c: Ditto.
4613 * ppcbug-rom.c: Ditto.
4614 * ppc-linux-nat.c: Ditto.
4615 * ppc-linux-tdep.c: Ditto.
4616 * ppc-linux-tdep.h: Ditto.
4617 * ppcnbsd-tdep.c: Ditto.
4618 * ppcobsd-tdep.c: Ditto.
4619 * ppcobsd-tdep.h: Ditto.
4620 * ppc-sysv-tdep.c: Ditto.
4621 * ppc-tdep.h: Ditto.
4622 * printcmd.c: Ditto.
4623 * proc-abi.c: Ditto.
4624 * proc-flags.c: Ditto.
4626 * proc-utils.h: Ditto.
4627 * progspace.h: Ditto.
4628 * prologue-value.c: Ditto.
4629 * prologue-value.h: Ditto.
4630 * psympriv.h: Ditto.
4632 * p-typeprint.c: Ditto.
4633 * p-valprint.c: Ditto.
4634 * ravenscar-sparc-thread.c: Ditto.
4635 * ravenscar-thread.c: Ditto.
4636 * ravenscar-thread.h: Ditto.
4638 * regcache.c: Ditto.
4639 * regcache.h: Ditto.
4641 * remote-fileio.c: Ditto.
4642 * remote-fileio.h: Ditto.
4644 * remote-m32r-sdi.c: Ditto.
4645 * remote-mips.c: Ditto.
4646 * remote-sim.c: Ditto.
4647 * rs6000-aix-tdep.c: Ditto.
4648 * rs6000-nat.c: Ditto.
4649 * rs6000-tdep.c: Ditto.
4651 2011-01-10 Michael Snyder <msnyder@vmware.com>
4653 * charset.c (validate): Internationalization.
4654 * coffread.c (read_one_sym): Ditto.
4655 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4656 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4657 * inflow.c (new_tty): Ditto.
4658 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4659 * m32c-tdep.c (m32c_return_value): Ditto.
4660 * mep-tdep.c (mep_store_return_value): Ditto.
4661 * score-tdep.c (score7_fetch_insn): Ditto.
4662 * ser-mingw.c (pipe_windows_open): Ditto.
4663 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4664 * spu-tdep.c (spu_register_type): Ditto.
4665 * tracepoint.c (trace_find_command): Ditto.
4666 * valarith.c (value_pos): Ditto.
4668 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4670 * ada-valprint.c (printstr): Minor comment reformatting.
4672 2011-01-08 Michael Snyder <msnyder@vmware.com>
4674 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4677 2011-01-08 Michael Snyder <msnyder@vmware.com>
4679 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4680 * hppa-hpux-tdep.c: Ditto.
4681 * hppa-linux-nat.c: Ditto.
4682 * hppa-linux-tdep.c: Ditto.
4683 * hppanbsd-tdep.c: Ditto.
4684 * hppa-tdep.c: Ditto.
4685 * hppa-tdep.h: Ditto.
4686 * hpux-thread.c: Ditto.
4687 * i386-cygwin-tdep.c: Ditto.
4688 * i386-darwin-nat.c: Ditto.
4689 * i386gnu-nat.c: Ditto.
4690 * i386-linux-nat.c: Ditto.
4691 * i386-linux-tdep.c: Ditto.
4692 * i386-nat.c: Ditto.
4693 * i386-nat.h: Ditto.
4694 * i386nbsd-tdep.c: Ditto.
4695 * i386-sol2-nat.c: Ditto.
4696 * i386-stub.c: Ditto.
4697 * i386-tdep.c: Ditto.
4698 * i386-tdep.h: Ditto.
4699 * i387-tdep.c: Ditto.
4700 * ia64-linux-nat.c: Ditto.
4701 * ia64-linux-tdep.c: Ditto.
4702 * ia64-tdep.c: Ditto.
4706 * inferior.c: Ditto.
4707 * inferior.h: Ditto.
4713 * iq2000-tdep.c: Ditto.
4714 * irix5-nat.c: Ditto.
4720 * jv-typeprint.c: Ditto.
4721 * jv-valprint.c: Ditto.
4722 * language.c: Ditto.
4723 * language.h: Ditto.
4724 * linespec.c: Ditto.
4725 * linux-fork.c: Ditto.
4726 * linux-nat.c: Ditto.
4727 * linux-thread-db.c: Ditto.
4728 * lm32-tdep.c: Ditto.
4730 2011-01-08 Michael Snyder <msnyder@vmware.com>
4732 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4734 * m2-typeprint.c: Ditto.
4735 * m2-valprint.c: Ditto.
4736 * m32c-tdep.c: Ditto.
4737 * m32r-linux-nat.c: Ditto.
4738 * m32r-rom.c: Ditto.
4739 * m32r-tdep.c: Ditto.
4740 * m32r-tdep.h: Ditto.
4741 * m68hc11-tdep.c: Ditto.
4742 * m58klinux-nat.c: Ditto.
4743 * m68k-tdep.c: Ditto.
4744 * m88k-tdep.c: Ditto.
4745 * m88k-tdep.h: Ditto.
4746 * machoread.c: Ditto.
4747 * macrocmd.c: Ditto.
4748 * macroexp.c: Ditto.
4749 * macrotab.c: Ditto.
4752 * mdebugread.c: Ditto.
4753 * mdebugread.h: Ditto.
4756 * memory-map.h: Ditto.
4757 * mep-tdep.c: Ditto.
4758 * microblaze-rom.c: Ditto.
4759 * microblaze-tdep.c: Ditto.
4761 * mips-irix-tdep.c: Ditto.
4762 * mips-linux-nat.c: Ditto.
4763 * mips-linux-tdep.c: Ditto.
4764 * mips-linux-tdep.h: Ditto.
4765 * mipsnbsd-nat.c: Ditto.
4766 * mipsnbsd-tdep.c: Ditto.
4767 * mipsread.c: Ditto.
4768 * mips-tdep.c: Ditto.
4769 * mips-tdep.h: Ditto.
4770 * mn10300-linux-tdep.c: Ditto.
4771 * mn10300-tdep.c: Ditto.
4772 * mn10300-tdep.h: Ditto.
4775 * moxie-tdep.c: Ditto.
4776 * moxie-tdep.h: Ditto.
4779 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4781 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4783 2011-01-08 Robert Millan <rmh@gnu.org>
4785 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4787 2011-01-07 Michael Snyder <msnyder@vmware.com>
4789 * charset.c (_initialize_charset): Fix typo in string.
4791 2011-01-07 Michael Snyder <msnyder@vmware.com>
4793 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4795 * tui/tui-layout.c (tui_set_layout_for_display_command):
4796 Split line so that operator goes to beginning of line.
4797 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4798 assignment out of if statement.
4800 2011-01-07 Michael Snyder <msnyder@vmware.com>
4802 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4803 * ada-lang.h: Ditto.
4804 * ada-tasks.c: Ditto.
4805 * ada-valprint.c: Ditto.
4806 * aix-threads.c: Ditto.
4807 * alpha-linux-nat.c: Ditto.
4808 * alpha-linux-tdep.c: Ditto.
4809 * alpha-mdebug-tdep.c: Ditto.
4810 * alpha-nat.c: Ditto.
4811 * alpha-osf1-tdep.c: Ditto.
4812 * alpha-tdep.c: Ditto.
4813 * alphabsd-nat.c: Ditto.
4814 * alphabsd-tdep.c: Ditto.
4815 * amd64-darwin-tdep.c: Ditto.
4816 * amd64-linux-nat.c: Ditto.
4817 * amd64-linux-tdep.c: Ditto.
4818 * amd64-sol2-tdep.c: Ditto.
4819 * amd64-tdep.c: Ditto.
4820 * amd64-fbsd-tdep.c: Ditto.
4821 * amd64-nbsd-tdep.c: Ditto.
4822 * amd64-obsd-tdep.c: Ditto.
4823 * amd64-linux-nat.c: Ditto.
4824 * amd64-linux-tdep.c: Ditto.
4825 * arm-tdep.c: Ditto.
4826 * arm-tdep.h: Ditto.
4827 * armnbsd-nat.c: Ditto.
4828 * avr-tdep.c: Ditto.
4829 * bfin-tdep.c: Ditto.
4831 * c-typeprintc: Ditto.
4832 * c-valprint.c: Ditto.
4833 * coff-pe-read.h: Ditto.
4834 * coffreead.c: Ditto.
4835 * cris-tdep.c: Ditto.
4837 * darwin-nat-info.c: Ditto.
4838 * darwin-nat.c: Ditto.
4839 * dbug-rom.c: Ditto.
4843 * dec-thread.c: Ditto.
4845 * demangle.c: Ditto.
4846 * dicos-tdep.c: Ditto.
4847 * dictionary.c: Ditto.
4848 * dictionary.h: Ditto.
4849 * dink32-rom.c: Ditto.
4851 * doublest.c: Ditto.
4853 * dummy-frame.c: Ditto.
4854 * dwarf2-frame.c: Ditto.
4855 * dwarf2expr.c: Ditto.
4856 * dwarf2loc.c: Ditto.
4857 * dwarf2read.c: Ditto.
4861 * event-top.h: Ditto.
4862 * exceptions.c: Ditto.
4863 * exceptions.h: Ditto.
4865 * expprint.c: Ditto.
4866 * expression.h: Ditto.
4870 * f-typeprint.c: Ditto.
4871 * f-valprint.c: Ditto.
4872 * fbsd-nat.c: Ditto.
4874 * fork-child.c: Ditto.
4877 * frv-linux-tdep.c: Ditto.
4878 * frv-tdep.c: Ditto.
4880 * gdb-stabs.h: Ditto.
4881 * gdb_assert.h: Ditto.
4882 * gdb_string.h: Ditto.
4883 * gdb_thread_db.h: Ditto.
4884 * gdb_wait.h: Ditto.
4885 * gdbarch.sh: Ditto.
4887 * gdbthread.h: Ditto.
4888 * gdbtypes.c: Ditto.
4889 * gdbtypes.h: Ditto.
4892 * gnu-v2-abi.c: Ditto.
4893 * gnu-v3-abi.c: Ditto.
4894 * go32-nat.c: Ditto.
4895 * gdbarch.c: Regenerate.
4896 * gdbarch.h: Regenerate.
4898 2011-01-07 Michael Snyder <msnyder@vmware.com>
4900 * ax-gdb.c: Adjust some long output strings.
4901 * breakpoint.c: Ditto.
4906 * linux-nat.c: Ditto.
4907 * solib-pa64.c: Ditto.
4908 * solib-som.c: Ditto.
4910 2011-01-06 Tom Tromey <tromey@redhat.com>
4914 * python/python.c (GdbMethods): Add "newest_frame" method.
4915 * python/python-internal.h (gdbpy_newest_frame): Declare.
4916 * python/py-frame.c (gdbpy_newest_frame): New function.
4918 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4920 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4921 * jit.c (jit_debug): New variable.
4922 (show_jit_debug): New function.
4923 (struct target_buffer): Use ULONGEST.
4924 (bfd_open_from_target_memory): Likewise.
4925 (jit_register_code, jit_inferior_init): Add debug output.
4926 (_initialize_jit): Register "debug jit" command.
4928 2011-01-06 Tom Tromey <tromey@redhat.com>
4930 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4931 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4934 2011-01-06 Tom Tromey <tromey@redhat.com>
4936 * python/py-frame.c (frapy_block): Use get_frame_block.
4938 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4940 Do not stop on SIGPRIO signals by default
4941 * infrun.c (_initialize_infrun): Unset signal_stop and
4942 signal_print for TARGET_SIGNAL_PRIO.
4944 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4946 * ada-tasks.c: Fix style violation in comment.
4948 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4950 * linespec.c (decode_compound, find_method): Remove trailing \n
4951 at end of error string.
4952 * solib-irix.c (irix_current_sos): Likewise.
4953 * varobj.c (uninstall_variable): Likewise.
4955 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4957 * copyright.py: New script.
4958 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4959 Launch emacs without exec'ing. Call copyright.py afterwards.
4961 2011-01-05 Michael Snyder <msnyder@vmware.com>
4963 * addrmap.c: Shorten lines of >= 80 columns.
4964 * arch-utils.c: Ditto.
4965 * arch-utils.h: Ditto.
4967 * ax-general.c: Ditto.
4969 * blockframe.c: Ditto.
4970 * breakpoint.c: Ditto.
4971 * buildsym.c: Ditto.
4973 * c-typeprint.c: Ditto.
4975 * coffread.c: Ditto.
4979 * cp-namespace.c: Ditto.
4980 * cp-support.c: Ditto.
4981 * dbug-rom.c: Ditto.
4986 * dictionary.c: Ditto.
4988 * doublest.c: Ditto.
4989 * dwarf2-frame.c: Ditto.
4990 * dwarf2expr.c: Ditto.
4991 * dwarf2loc.c: Ditto.
4992 * dwarf2read.c: Ditto.
4995 * event-loop.c: Ditto.
4996 * event-loop.h: Ditto.
4997 * exceptions.h: Ditto.
4999 * expprint.c: Ditto.
5000 * expression.h: Ditto.
5002 * f-valprint.c: Ditto.
5004 * frame-base.c: Ditto.
5005 * frame-unwind.c: Ditto.
5006 * frame-unwind.h: Ditto.
5010 * gdb-stabs.h: Ditto.
5011 * gdb_assert.h: Ditto.
5012 * gdb_dirent.h: Ditto.
5013 * gdb_obstack.h: Ditto.
5015 * gdbtypes.c: Ditto.
5016 * gdbtypes.h: Ditto.
5017 * inf-ttrace.c: Ditto.
5022 * inline-frame.h: Ditto.
5023 * language.c: Ditto.
5024 * language.h: Ditto.
5025 * libunwind-frame.c: Ditto.
5026 * libunwind-frame.h: Ditto.
5027 * linespec.c: Ditto.
5028 * linux-nat.c: Ditto.
5029 * linux-nat.h: Ditto.
5030 * linux-thread-db.c: Ditto.
5031 * machoread.c: Ditto.
5032 * macroexp.c: Ditto.
5033 * macrotab.c: Ditto.
5036 * mdebugread.c: Ditto.
5041 * objfiles.c: Ditto.
5042 * objfiles.h: Ditto.
5044 * p-typeprint.c: Ditto.
5045 * p-valprint.c: Ditto.
5047 * printcmd.c: Ditto.
5048 * proc-events.c: Ditto.
5050 * progspace.c: Ditto.
5051 * progspace.h: Ditto.
5052 * psympriv.h: Ditto.
5055 * regcache.c: Ditto.
5056 * regcache.h: Ditto.
5057 * remote-fileio.c: Ditto.
5059 * ser-mingw.c: Ditto.
5061 * ser-unix.c: Ditto.
5064 * solib-frv.c: Ditto.
5065 * solib-irix.c: Ditto.
5066 * solib-osf.c: Ditto.
5067 * solib-pa64.c: Ditto.
5068 * solib-som.c: Ditto.
5069 * solib-sunos.c: Ditto.
5070 * solib-svr4.c: Ditto.
5071 * solib-target.c: Ditto.
5075 * stabsread.c: Ditto.
5076 * stabsread.c: Ditto.
5079 * symfile-mem.c: Ditto.
5085 * target-descriptions.c: Ditto.
5086 * target-memory.c: Ditto.
5089 * terminal.h: Ditto.
5092 * tracepoint.c: Ditto.
5093 * tracepoint.h: Ditto.
5097 * user-regs.c: Ditto.
5098 * user-regs.h: Ditto.
5100 * valarith.c: Ditto.
5102 * valprint.c: Ditto.
5103 * valprint.h: Ditto.
5108 * xcoffread.c: Ditto.
5109 * xcoffsolib.c: Ditto.
5110 * xcoffsolib.h: Ditto.
5111 * xml-syscall.c: Ditto.
5112 * xml-tdesc.c: Ditto.
5114 2011-01-05 Michael Snyder <msnyder@vmware.com>
5116 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5117 * cli/cli-decode.c: Ditto.
5118 * cli/cli-dump.c: Ditto.
5119 * cli/cli-logging.c: Ditto.
5120 * cli/cli-script.c: Ditto.
5121 * cli/cli-setshow.c: Ditto.
5122 * common/signals.c: Ditto.
5123 * mi/mi-cmd-break.c: Ditto.
5124 * mi/mi-cmd-disas.c: Ditto.
5125 * mi/mi-cmd-stack.c: Ditto.
5126 * mi/mi-cmd-var.c: Ditto.
5127 * mi/mi-cmds.c: Ditto.
5128 * mi/mi-common.h: Ditto.
5129 * mi/mi-console.c: Ditto.
5130 * mi/mi-interp.c: Ditto.
5131 * mi/mi-main.c: Ditto.
5132 * osf-share/cma_attr.c: Ditto.
5133 * osf-share/cma_deb_core.h: Ditto.
5134 * osf-share/cma_debug_client.h: Ditto.
5135 * osf-share/cma_handle.h: Ditto.
5136 * osf-share/cma_mutex.h: Ditto.
5137 * osf-share/cma_stack_int.h: Ditto.
5138 * osf-share/cma_tcb_defs.h: Ditto.
5139 * python/py-auto-load.c: Ditto.
5140 * python/py-breakpoint.c: Ditto.
5141 * python/py-cmd.c: Ditto.
5142 * python/py-frame.c: Ditto.
5143 * python/py-objfile.c: Ditto.
5144 * python/py-param.c: Ditto.
5145 * python/py-progspace.c: Ditto.
5146 * python/py-symbol.c: Ditto.
5147 * python/py-value.c: Ditto.
5148 * python/python-internal.h: Ditto.
5149 * python/python.c: Ditto.
5150 * tui/tui-data.c: Ditto.
5151 * tui/tui-disasm.c: Ditto.
5152 * tui/tui-hooks.c: Ditto.
5153 * tui/tui-io.c: Ditto.
5154 * tui/tui-layout.c: Ditto.
5155 * tui/tui-regs.c: Ditto.
5156 * tui/tui-source.c: Ditto.
5157 * tui/tui-stack.c: Ditto.
5158 * tui/tui-win.c: Ditto.
5159 * tui/tui-windata.c: Ditto.
5160 * tui/tui-winsource.c: Ditto.
5162 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5164 * configure.ac, gdb.1: Copyright year update.
5166 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5168 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5169 this_pc_in_block, morestack_msym and morestack_name. Check for
5170 "__morestack" minimal symbol there.
5172 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5174 * symfile.c (find_sym_fns): Add call to dont_repeat.
5176 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5178 Copyright year update in most files (performed by copyright.sh).
5180 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5182 * top.c (print_gdb_version): Update copyright year in version output.
5184 For older changes see ChangeLog-2010.
5190 version-control: never