1 2011-05-19 Matt Rice <ratmice@gmail.com>
3 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5 2011-05-19 Hui Zhu <teawater@gmail.com>
7 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
9 2011-05-19 Hui Zhu <teawater@gmail.com>
11 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
13 2011-05-18 Tom Tromey <tromey@redhat.com>
15 * dwarf2read.c (dwarf2_add_field): Constify.
16 * value.c (value_static_field): Constify.
17 * gdbtypes.h (struct main_type) <field.field_location.physname>:
19 * ax-gdb.c (gen_static_field): Constify
21 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
23 * linux-nat.c (kill_callback): Use SIGKILL first.
25 2011-05-18 Joel Brobecker <brobecker@adacore.com>
27 * ada-lang.c (print_it_exception): Avoid use of sprintf.
29 2011-05-18 Tom Tromey <tromey@redhat.com>
31 * value.c (value_fn_field): Constify.
32 * symtab.c (gdb_mangle_name): Constify.
33 * stabsread.c (update_method_name_from_physname): Make 'physname'
35 * p-typeprint.c (pascal_type_print_method_args): Make arguments
36 const. Use explicit fputc_filtered loop.
37 (pascal_type_print_base): Constify.
38 * p-lang.h (pascal_type_print_method_args): Update.
39 * linespec.c (add_matching_methods): Constify.
40 (add_constructors): Likewise.
41 * jv-typeprint.c (java_type_print_base): Constify.
42 * gdbtypes.h (struct cplus_struct_type)
43 <fn_fieldlist.fn_field.physname>: Now const.
44 * dwarf2read.c (compute_delayed_physnames): Constify.
45 (dwarf2_add_member_fn): Likewise.
46 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
48 2011-05-18 Pedro Alves <pedro@codesourcery.com>
50 * infrun.c (resume): Mention which is the current thread, and its
51 current PC in debug output.
52 (prepare_to_proceed): Mention the thread switching in debug
55 2011-05-18 Tom Tromey <tromey@redhat.com>
57 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
58 path check. Use xmalloc and cleanups.
59 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
61 2011-05-17 Tom Tromey <tromey@redhat.com>
63 * cp-valprint.c (cp_print_value_fields): Catch errors from
66 2011-05-17 Tom Tromey <tromey@redhat.com>
68 * dwarf2read.c (dwarf2_get_die_type): Call
69 get_die_type_at_offset.
70 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
71 get_base_type function.
73 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
75 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
78 2011-05-16 Doug Evans <dje@google.com>
80 * python/py-auto-load.c (source_section_scripts): Mention objfile
83 2011-05-15 Doug Evans <dje@google.com>
85 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
86 (try_thread_db_load_from_pdir): Call it. If unable to find
87 libthread_db in directory of libpthread, see if we're looking at
88 the separate-debug-info copy.
90 * python/py-autoload.c (print_script): Print "Missing" instead of
91 "No" for missing scripts.
92 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
94 2011-05-13 Doug Evans <dje@google.com>
96 * ui-file.c (stdio_file_write_async_safe): Add comment.
98 2011-05-14 Hui Zhu <teawater@gmail.com>
100 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
102 2011-05-13 Doug Evans <dje@google.com>
104 Support $pdir and $sdir in libthread-db-search-path.
105 * NEWS: Mention $sdir,$pdir.
106 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
107 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
108 (try_thread_db_load_from_sdir): New function.
109 (try_thread_db_load_from_dir): New function.
110 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
111 system directories if search of libthread-db-search-path fails,
112 that is now done via $sdir.
113 (has_libpthread): New function.
114 (thread_db_load): Remove search for libthread_db in directory of
115 libpthread, that is now done via $pdir.
117 * NEWS: Mention "info auto-load-scripts".
118 * python/py-auto-load.c (struct auto_load_pspace_info): New member
119 script_not_found_warning_printed.
120 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
121 all callers updated. Initialize script_not_found_warning_printed.
122 (get_auto_load_pspace_data_for_loading): New function.
123 (maybe_add_script): New function.
124 (source_section_scripts): Simplify. Only print one warning regardless
125 of the number of auto-load scripts not found.
126 (clear_section_scripts): Clear script_not_found_warning_printed.
127 (auto_load_objfile_script): Record script in hash table.
128 (count_matching_scripts): New function.
129 (maybe_print_script): Renamed from maybe_print_section_script, all
130 callers updated. Rewrite to use ui_out_*.
131 (info_auto_load_scripts): Renamed from
132 maintenance_print_section_scripts, all callers updated.
133 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
134 renamed as "info auto-load-scripts".
136 2011-05-13 Tom Tromey <tromey@redhat.com>
138 * dwarf2expr.c (read_uleb128): Cast intermediate result.
139 (read_sleb128): Likewise.
141 2011-05-13 Tom Tromey <tromey@redhat.com>
143 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
146 2011-05-13 Doug Evans <dje@google.com>
148 * linux-nat.c (debug_linux_nat_async): Delete.
149 Replace all references to use debug_linux_nat instead.
150 (show_debug_linux_nat_async): Delete.
151 (sigchld_handler): Call ui_file_write_async_safe instead of
153 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
154 * ui-file.c (struct ui_file): New member to_write_async_safe.
155 (null_file_write_async_safe): New function.
156 (ui_file_write_async_safe): New function.
157 (set_ui_file_write_async_safe): New function.
158 (ui_file_new): Initialize to_write_async_safe.
159 (stdio_file_write_async_safe): New function.
160 (struct stdio_file): New member fd.
161 (stdio_file_new): Initialize to_write_async_safe, fd.
162 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
164 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
165 (set_ui_file_write_async_safe): Declare.
166 (ui_file_write_async_safe): Declare.
168 2011-05-13 Tom Tromey <tromey@redhat.com>
170 * utils.c (do_value_free): New function.
171 (make_cleanup_value_free): Likewise.
172 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
174 (dwarf2_loc_desc_needs_frame): Call
175 make_cleanup_value_free_to_mark.
176 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
177 * dwarf2expr.c (free_dwarf_expr_context): Don't call
179 (new_dwarf_expr_context): Don't call value_mark.
180 * dwarf2-frame.c (execute_stack_op): Call
181 make_cleanup_value_free_to_mark.
182 * defs.h (make_cleanup_value_free): Declare.
184 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
186 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
187 prepare_execute_command.
188 * top.c (prepare_execute_command): Return cleanup.
189 (execute_command): Use cleanup from prepare_execute_command.
190 * top.h (prepare_execute_command): Change prototype to return
192 * defs.h (struct value): Add opaque declaration.
193 (make_cleanup_value_free_to_mark): Add prototype.
194 * utils.c (do_value_free_to_mark): New function.
195 (make_cleanup_value_free_to_mark): Likewise.
197 2011-05-12 Tom Tromey <tromey@redhat.com>
199 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
200 cast left-hand-side to unsigned.
202 2011-05-12 Tom Tromey <tromey@redhat.com>
205 * value.h (value_from_contents): Declare.
206 * value.c (value_from_contents): New function.
207 * dwarf2read.c (dwarf_stack_op_name): Add new values.
208 (dwarf2_get_die_type): New function.
209 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
210 (allocate_piece_closure): Acquire reference to values.
211 (read_pieced_value): Update for value-based expressions.
212 (write_pieced_value): Likewise.
213 (free_pieced_value_closure): Call value_free as needed.
214 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
215 Update for value-based expressions.
216 * dwarf2loc.h (dwarf2_get_die_type): Declare.
217 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
218 <get_base_type>: New field.
219 (struct dwarf_expr_piece) <v.value>: Change type.
220 <v.regno>: New field.
221 (struct dwarf_expr_context) <mark>: New field.
222 (dwarf_expr_piece, dwarf_expr_fetch): Update.
223 (dwarf_expr_pop, dwarf_expr_push): Remove.
224 (dwarf_expr_push_address): Declare.
225 * dwarf2expr.c (dwarf_arch_cookie): New global.
226 (struct dwarf_gdbarch_types): New.
227 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
229 (dwarf_expr_push): Change type of 'value' argument. Update. Now
231 (dwarf_expr_push_address): New function.
232 (dwarf_expr_pop): Now static.
233 (dwarf_expr_fetch): Change return type.
234 (dwarf_require_integral): New function.
235 (dwarf_expr_fetch): Simplify.
237 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
239 (execute_stack_op) <sign_ext>: Remove.
240 Use values for DWARF stack.
241 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
242 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
244 (_initialize_dwarf2expr): New function.
246 (new_dwarf_expr_context): Set new field.
247 (free_dwarf_expr_context): Call value_free_to_mark.
248 * dwarf2-frame.c (no_base_type): New function.
249 (execute_stack_op): Set get_base_type field. Update.
251 2011-05-12 Tom Tromey <tromey@redhat.com>
253 * dwarf2read.c (read_common_block): Fix formatting.
255 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
257 * breakpoint.c (disable_breakpoint): Disable all locations
258 associated with a tracepoint on target if a trace experiment is
260 (disable_command): Disable a specific tracepoint location on target if
261 a trace experiment is running.
262 (do_enable_breakpoint): Enable all locations associated with a
263 tracepoint on target if a trace experiment is running.
264 (enable_command) Enable a specific tracepoint location on target if a
265 trace experiment is running.
266 * target.c (update_current_target): Add INHERIT and de_fault clauses for
267 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
268 to_disable_tracepoint.
269 * target.h: Add declaration of struct bp_location.
270 (struct target_ops): Add new functions
271 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
272 to_disable_tracepoint to target operations.
273 (target_supports_enable_disable_tracepoint): New macro.
274 (target_enable_tracepoint): New macro.
275 (target_disable_tracepoint): New macro.
276 * remote.c (struct remote_state): Add new field.
277 (remote_enable_disable_tracepoint_feature): New.
278 (remote_protocol_features): Add new entry.
279 (remote_supports_enable_disable_tracepoint): New.
280 (remote_enable_tracepoint): New.
281 (remote_disable_tracepoint): New.
282 (init_remote_ops): Add remote_enable_tracepoint,
283 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
284 to remote operations.
285 * tracepoint.c (start_tracing): Allow tracing to start without any
286 tracepoints enabled with just a warning if they can be re-enabled
288 * NEWS: Add news item for the new behaviour of the enable and disable
289 GDB commands when applied to tracepoints.
290 Add news items for the new remote packets QTEnable and QTDisable.
292 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
294 * config.in: Regenerate.
295 * configure: Regenerate.
296 * configure.ac <--with-system-readline> (for readline_echoing_p):
298 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
299 (tui_old_rl_echoing_p): ... here.
300 (tui_setup_io): Rename extern declaration readline_echoing_p to
301 _rl_echoing_p. Adjust assignments for the both renames.
303 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
305 * symtab.c (lookup_symtab): Run cleanup before returning.
307 2011-05-11 Tom Tromey <tromey@redhat.com>
309 * dwarf2read.c (handle_data_member_location): New function.
310 (dwarf2_add_field): Use it.
311 (read_common_block): Likewise.
313 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
315 Make addrs->SECTINDEX always defined.
316 * symfile.c (relative_addr_info_to_section_offsets): Check for
317 SECTINDEX -1, not for zero ADDR.
318 (addrs_section_compar): Remove checking for invalid SECTINDEX.
319 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
320 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
323 2011-05-10 Doug Evans <dje@google.com>
325 * linux-thread-db.c: Whitespace cleanup.
326 (try_thread_db_load_1): Fix comment.
328 * linux-thread-db.c (set_libthread_db_search_path): New function.
329 (_initialize_thread_db): Add setter for libthread-db-search-path.
331 2011-05-09 Doug Evans <dje@google.com>
333 * NEWS: Mention --with-iconv-bin.
334 * configure.ac: New option --with-iconv-bin.
335 * configure: Regenerate.
336 * config.in: Regenerate.
337 * defs.h (relocate_gdb_directory): Declare.
338 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
339 removed progname parameter, and exported. All callers updated.
340 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
342 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
343 adding missing call to restore_child_signals_mask.
345 2011-05-09 Pedro Alves <pedro@codesourcery.com>
347 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
349 * infrun.c (proceed, start_remote): Adjust.
350 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
351 and adjust to not handle it.
352 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
353 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
354 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
355 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
356 * windows-nat.c (do_initial_windows_stuff): Adjust.
357 * infcmd.c (attach_command): Adjust.
358 (notice_new_inferior): Adjust.
360 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
362 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
363 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
364 * spu-tdep.c (op_selb): Use correct value.
366 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
368 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
369 "parent" parameter to symbol_file_add_from_bfd call.
371 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
372 Thiago Jung Bauermann <bauerman@br.ibm.com>
374 Implement support for PowerPC BookE masked watchpoints.
375 * NEWS: Mention masked watchpoint support. Create "Changed commands"
377 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
378 method. Initialize to NULL in all existing breakpoint_ops instances.
379 (struct breakpoint) <hw_wp_mask>: New field.
380 * breakpoint.c (is_masked_watchpoint): Add prototype.
381 (update_watchpoint): Don't set b->val for masked watchpoints. Call
382 breakpoint's breakpoint_ops.works_in_software_mode if available.
383 (watchpoints_triggered): Handle the case of a hardware masked
385 (watchpoint_check): Likewise.
386 (works_in_software_mode_watchpoint): New function.
387 (insert_masked_watchpoint, remove_masked_watchpoint)
388 (resources_needed_masked_watchpoint)
389 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
390 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
391 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
393 (masked_watchpoint_breakpoint_ops): New structure.
394 (watch_command_1): Check for the existence of the `mask' parameter.
395 Set b->ops according to the type of hardware watchpoint being created.
396 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
397 (ppc_linux_remove_mask_watchpoint)
398 (ppc_linux_masked_watch_num_registers): New functions.
399 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
400 to_remove_mask_watchpoint and to_masked_watch_num_registers.
401 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
402 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
403 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
404 (target_masked_watch_num_registers): New functions.
405 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
406 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
408 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
409 (target_masked_watch_num_registers): Add prototypes.
411 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
414 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
415 (producer_is_gcc_ge_4_0): New function.
416 (process_full_comp_unit): Set also symtab->locations_valid. Move the
417 symtab->language code.
418 (var_decode_location): Set cu->has_loclist.
419 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
420 skip. Intialize force_skip from locations_valid. Move the prologue
421 skipping code into two passes.
422 * symtab.h (struct symtab): Make the primary field a bitfield. New
423 field locations_valid.
425 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
427 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
428 (classify_inner_name): Call cp_lookup_nested_type with
430 * cp-namespace.c (cp_lookup_nested_type): New variable
431 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
432 type_name_no_tag_or_error with saved_parent_type.
433 * dwarf2read.c (load_partial_dies): Read in any children of
434 DW_TAG_typedef with complaint in such case.
435 * gdbtypes.c (type_name_no_tag_or_error): New function.
436 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
437 * valops.c (destructor_name_p): New comment for parameter type. Remove
438 type const. Make dname and cp const. Call type_name_no_tag_or_error.
439 * value.h (destructor_name_p): Remove type const.
441 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
443 * symtab.c (compare_symbol_name): New function.
444 (completion_list_add_name, expand_partial_symbol_name): Call it,
445 remove the variable ncmp.
446 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
449 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
451 Demote to sw watchpoint only in update_watchpoint.
452 * breakpoint.c (update_watchpoint): Change between software and
453 hardware watchpoint for all kinds of watchpoints, not just
454 read/write ones. Determine b->exact value here instead of
455 in watch_command_1. Error out if there are not enough resources
456 for a read or access hardware watchpoint.
457 (watch_command_1): Remove logic of checking whether there are
458 enough resources available, since update_watchpoint will do that
459 work now. Don't set b->exact here. Catch exceptions thrown by
460 update_watchpoint and delete the watchpoint.
461 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
462 Use target_exact_watchpoints instead.
463 (delete_breakpoint): Notify observers only if deleted watchpoint
464 has a breakpoint number assigned to it.
466 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
468 * MAINTAINERS: Add myself as a write-after-approval maintainer.
470 2011-05-05 Jerome Guitton <guitton@adacore.com>
472 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
474 (i386_stack_tramp_frame_unwind): New static global.
475 (i386_match_pattern): New function, extracted from i386_match_insn.
476 (i386_match_insn): Use i386_match_pattern.
477 (i386_match_insn_block): New function.
478 (i386_tramp_chain_in_reg_insns)
479 (i386_tramp_chain_on_stack_insns): New static variables.
480 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
483 2011-05-04 Joseph Myers <joseph@codesourcery.com>
485 * configure.host (xscale*): Don't handle target.
486 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
489 2011-05-04 Yao Qi <yao@codesourcery.com>
491 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
493 2011-05-03 Joel Brobecker <brobecker@adacore.com>
496 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
497 | * elfread.c (elf_symtab_read): Stop memory leak.
499 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
501 * nto-tdep.c (nto_target): Replace deprecated call to
502 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
504 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
506 Fix false GCC warning.
507 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
509 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
511 * breakpoint.c (update_watchpoint): Move code to change
512 the enable state of breakpoint from here ...
513 (do_enable_breakpoint): ... to here.
515 2011-04-26 Andrew Gontarek <andrewg@cray.com>
517 * valprint.c (val_print_array_elements): Fixed poor performance
518 of printing very large arrays with repeat_count_threshold set
519 to unlimited. New comment.
521 2011-04-29 Tom Tromey <tromey@redhat.com>
523 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
524 (mi_parse): Likewise.
525 * breakpoint.c (break_range_command): Use sizeof char*, not
527 (create_breakpoint): Likewise.
528 (parse_breakpoint_sals): Likewise.
530 2011-04-29 Pedro Alves <pedro@codesourcery.com>
532 * linux-nat.c (linux_child_remove_fork_catchpoint)
533 (linux_child_remove_vfork_catchpoint)
534 (linux_child_remove_exec_catchpoint): New functions.
535 (linux_target_install_ops): Install them.
537 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
541 * varobj.c (install_default_visualizer): Do not install a
542 visualizer if the varobj is CPLUS_FAKE_CHILD.
543 (construct_visualizer): Likewise.
545 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
547 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
548 case insensitive comparison.
550 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
552 * infrun.c (proceed): Revert previous change.
553 (resume): Instead, handle the case of signal delivery while stepping
554 off a breakpoint location here, and only if software single-stepping
555 is used. Handle nested signals.
557 2011-04-28 Yao Qi <yao@codesourcery.com>
559 * arm-tdep.c (copy_unmodified): Rename to ...
560 (arm_copy_unmodified): .. this. New.
561 (copy_preload): Move common part to ...
562 (install_preload): .. this. New.
563 (arm_copy_preload): New.
564 (copy_preload_reg): Move common part to ...
565 (install_preload_reg): ... this. New.
566 (arm_copy_preload_reg): New.
567 (copy_b_bl_blx): Move common part to ...
568 (install_b_bl_blx): .. this. New.
569 (arm_copy_b_bl_blx): New.
570 (copy_bx_blx_reg): Move common part to ...
571 (install_bx_blx_reg): ... this. New.
572 (arm_copy_bx_blx_reg): New.
573 (copy_alu_reg): Move common part to ...
574 (install_alu_reg): ... this. New.
575 (arm_copy_alu_reg): New.
576 (copy_alu_shifted_reg): Move common part to ...
577 (install_alu_shifted_reg): ... this. New.
578 (copy_ldr_str_ldrb_strb): Move common part to ...
579 (install_ldr_str_ldrb_strb): ... this. New.
580 (arm_copy_ldr_str_ldrb_strb): New.
581 (copy_copro_load_store): Move some common part to ...
582 (install_copy_copro_load_store): ... this. New.
583 (arm_copy_copro_load_store): New.
585 (arm_copy_svc): Renamed from copy_svc.
586 (copy_undef): Delete.
587 (arm_copy_undef): Renamed from copy_undef.
588 (decode_ext_reg_ld_st): Delete.
589 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
590 (decode_svc_copro): Delete.
591 (arm_decode_svc_copro): Renamed from decode_svc_copro.
592 (copy_copro_load_store, copy_alu_imm): update callers.
593 (copy_extra_ld_st, copy_block_xfer): Likewise.
594 (decode_misc_memhint_neon, decode_unconditional): Likewise.
595 (decode_miscellaneous, decode_dp_misc): Likewise.
596 (decode_ld_st_word_ubyte, decode_media): Likewise.
597 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
598 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
599 (decode_unconditional, decode_miscellaneous): Likewise.
600 (decode_media, decode_b_bl_ldmstm): Likewise.
601 (arm_process_displaced_insn): Likewise..
602 (decode_misc_memhint_neon): Delete.
603 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
604 (decode_miscellaneous): Delete.
605 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
606 (decode_dp_misc): Delete.
607 (arm_decode_dp_misc): Renamed from decode_dp_misc.
608 (decode_ld_st_word_ubyte): Delete.
609 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
610 (decode_media): Delete.
611 (arm_decode_media): Renamed from decode_media.
612 (decode_b_bl_ldmstm): Delete.
613 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
614 (decode_ext_reg_ld_st): Delete.
615 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
616 (decode_unconditional): Delete.
617 (arm_decode_unconditional): Renamed from decode_unconditional.
619 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
621 Case insensitive lookups implementation.
622 * dwarf2read.c: Include ctype.h.
623 (struct mapped_index): New field version.
624 (mapped_index_string_hash): New parameter index_version. New comment
625 for it. Call tolower appropriately.
626 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
627 Choose the right index version for mapped_index_string_hash.
628 (dwarf2_read_index): Support also the index version 5. Initialize the
629 new struct mapped_index field version.
630 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
631 (find_slot): Explain the version needs. Pass INT_MAX for the new
633 (write_psymtabs_to_index): Produce version 5.
634 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
635 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
636 * psymtab.c (lookup_partial_symbol): Find the
637 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
639 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
641 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
642 (completion_list_add_name): New variable ncmp, initialize it, use it.
643 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
644 * utils.c (strcmp_iw): Support case_sensitive_off.
645 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
646 New function comment part. New variables saved_string1,
647 saved_string2 and case_pass. Add a proper second pass.
649 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
651 Replace re_comp/re_exec by regcomp/regexec.
652 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
653 (search_symbols_name_matches): Use them, use regexec.
654 (search_symbols): New variable retval_chain, adjust the use of
655 old_chain against it. Replace re_comp by regcomp. Use the new struct
656 search_symbols_data fields, use regexec instead of re_exec.
658 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
660 Format the code for the next patch.
661 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
662 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
663 New variables c1 and c2.
665 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
667 * infrun.c (proceed): Do not single-step into signal delivery
668 when stepping off a breakpoint location.
669 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
670 (insert_step_resume_breakpoint_at_caller): Likewise.
671 (insert_step_resume_breakpoint_at_sal): Likewise.
672 (insert_longjmp_resume_breakpoint): Likewise.
674 2011-04-27 Yao Qi <yao@codesourcery.com>
676 * common/linux-ptrace.h: Remove include <sys/wait.h>.
678 2011-04-27 Joel Brobecker <brobecker@adacore.com>
680 * procfs.c (procfs_pass_signals): Fix advance declaration.
682 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
684 * target.h (struct target_ops): Remove to_notice_signals;
686 (target_notice_signals): Remove.
687 (target_pass_signals): Add prototype.
688 * target.c (update_current_target): Remove to_notice_signals;
689 mention to_pass_signals.
690 (target_pass_signals): New function.
691 (debug_to_notice_signals): Remove.
692 (setup_target_debug): Do not install debug_to_notice_signals.
694 * infrun.c (signal_pass): New global.
695 (resume): Call target_pass_signals.
696 (handle_inferior_event): Report all signals while stepping over
697 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
698 are re-inserted when stepping over a signal handler.
699 (signal_cache_update): New function.
700 (signal_stop_update): Call it.
701 (signal_print_update): Likewise.
702 (signal_pass_update): Likewise.
703 (handle_command): Call signal_cache_update and target_pass_signals
704 instead of target_notice_signals.
705 (_initialize_infrun): Initialize signal_pass.
707 * linux-nat.c (pass_mask): New global.
708 (linux_nat_pass_signals): New function.
709 (linux_nat_create_inferior): Report all signals initially.
710 (linux_nat_attach): Likewise.
711 (linux_nat_resume): Use pass_mask to decide whether to directly
712 handle an inferior signal.
713 (linux_nat_wait_1): Likewise.
714 (linux_nat_add_target): Install to_pass_signals callback.
716 * nto-procfs.c (notice_signals): Remove.
717 (procfs_resume): Do not call notice_signals.
718 (procfs_notice_signals): Remove.
719 (procfs_pass_signals): New function.
720 (init_procfs_ops): Install to_pass_signals callback instead of
721 to_notice_signals callback.
722 (_initialize_procfs): Report all signals initially.
724 * procfs.c (procfs_notice_signals): Remove.
725 (procfs_pass_signals): New function.
726 (procfs_target): Install to_pass_signals callback instead of
727 to_notice_signals callback.
728 (register_gdb_signals): Remove.
729 (procfs_debug_inferior): Report all signals initially.
730 (procfs_init_inferior): Remove redundant register_gdb_signals call.
732 * remote.c (remote_pass_signals): Add numsigs and pass_signals
733 parameters; use them instead of calling signal_..._state routines.
734 (remote_notice_signals): Remove.
735 (remote_start_remote): Report all signals initially.
736 (remote_resume): Do not call remote_pass_signals.
737 (_initialize_remote): Install to_pass_signals callback instead of
738 to_notice_signals callback.
740 2011-04-27 Pedro Alves <pedro@codesourcery.com>
742 * breakpoint.c (user_settable_breakpoint): Delete.
743 (user_breakpoint_p): Remove check on user_settable_breakpoint.
744 (delete_command): Check user_breakpoint_p instead of looking at
745 the breakpoint's type.
746 (disable_command): Ditto.
747 (enable_command): Ditto.
748 (delete_trace_command): Use user_breakpoint_p instead of looking
749 at the breakpoint number directly. When checking if there are
750 user visible tracepoints, in order to know whether to ask the user
751 for confirmation, check whether the breakpoint is actually a
754 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
756 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
759 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
761 MI breakpoint notifications.
763 * annotate.c (breakpoint_changed): Adjust parameter type.
764 * breakpoint.c (set_breakpoint_condition): Adjust to change
765 in breakpoint_modified type.
766 (breakpoint_set_commands): Likewise.
767 (do_map_commands_command): Likewise.
768 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
769 changed after bumping hit count.
770 (bpstat_stop_status): Likewise.
771 (print_one_breakpoint_location): Don't wrap in tuple here.
772 (print_one_breakpoint): Always print individual locations.
773 For locations, use unnamed tuple.
774 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
776 (create_catchpoint, create_syscall_event_catchpoint): Call
777 breakpoint_created obsever.
778 (mention): Don't call breakpoint_created observer.
779 (create_breakpoint_sal): Call breakpoint_created observer.
780 (create_breakpoint, watch_command_1): Likewise.
781 (create_ada_exception_breakpoint): Likewise.
782 (delete_breakpoint): Call breakpoint_deleted breakpoint.
783 (locations_are_equal): New.
784 (update_breakpoint_locations): If locations were changed, notify.
785 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
786 Call breakpoint_modified observer.
788 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
789 (mi_cmd_break_insert): Don't set observers for modify and delete.
790 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
791 (mi_breakpoint_created, mi_breakpoint_deleted)
792 (mi_breakpoint_modified): New.
793 (mi_interpreter_init): Hook the above.
794 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
795 while -break-* commands are executing.
796 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
797 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
799 (mi_ui_out_impl): Hook in mi_redirect.
800 (mi_field_skip): True to the name, skip the field, don't output
801 a field with an empty value.
803 * python/py-breakpoint.c (gdbpy_breakpoint_created)
804 (gdbpy_breakpoint_deleted): Adjust.
805 * tui/tui-hooks.c (tui_event_create_breakpoint)
806 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
808 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
810 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
811 (procfs_remove_hw_watchpoint): Likewise.
813 2011-04-26 Michael Walle <michael@walle.cc>
815 * remote.c (remote_start_remote): Ack packet after sending the
818 2011-04-26 Yao Qi <yao@codesourcery.com>
820 * linux-nat.c: Move common macros to ...
821 Include linux-ptrace.h.
822 * common/linux-ptrace.h: ... here. New.
824 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
826 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
827 !objfile_has_partial_symbols. New comment.
828 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
829 SYM_READ_PSYMBOLS is not present. Extend the comment.
830 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
832 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
834 * defs.h (ENUM_BITFIELD): Remove.
836 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
837 Eli Zaretskii <eliz@gnu.org>
839 * NEWS: Document the new gdbserver --once option.
841 2011-04-21 Jie Zhang <jzhang918@gmail.com>
843 * MAINTAINERS: Update my email address.
845 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
847 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
848 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
849 function call if __STDC_ISO_10646__ macro is defined.
850 (intermediate_encoding): New prototype.
851 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
852 to generate compile time error for unsupported gdb_wchar_t size.
853 (ENDIAN_SUFFIX): New macro.
854 (intermediate_encoding): New function.
856 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
858 * ada-lang.c (struct add_partial_datum): Update the comment for
859 expand_partial_symbol_name.
860 (ada_add_partial_symbol_completions): Rename to ...
861 (ada_expand_partial_symbol_name): ... here, change return type, update
862 function comment, call symbol_completion_match instead of
863 symbol_completion_add.
864 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
865 and ada_expand_partial_symbol_name.
866 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
868 (dw2_map_symbol_names): Remove.
869 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
870 * psymtab.c (map_symbol_names_psymtab): Remove.
871 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
872 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
874 (psym_functions): Unlist map_symbol_names_psymtab.
875 (map_partial_symbol_names): Rename to ...
876 (expand_partial_symbol_names): ... here, change the FUN type, call
877 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
878 * psymtab.h (map_partial_symbol_names): Rename to ...
879 (expand_partial_symbol_names): ... here, change the FUN type.
880 * symfile.h (struct quick_symbol_functions): Update the description of
881 expand_symtabs_matching. Remove map_symbol_names.
882 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
883 (struct add_name_data): Update the comment for
884 expand_partial_symbol_name.
885 (add_partial_symbol_name): Rename to ...
886 (expand_partial_symbol_name): ... here. Replace
887 completion_list_add_name call by strncmp.
888 (default_make_symbol_completion_list_break_on): Use now
889 expand_partial_symbol_names and expand_partial_symbol_name.
890 * symtab.h (enum search_domain): New element ALL_DOMAIN.
892 2011-04-20 Tom Tromey <tromey@redhat.com>
894 * dwarf2read.c (save_gdb_index_command): Replace format
895 documentation with a pointer to the manual.
897 2011-04-20 Pedro Alves <pedro@codesourcery.com>
899 * regcache.c: Include remote.h.
900 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
901 (regcache_dump): Handle regcache_dump_remote.
902 (maintenance_print_remote_registers): New function.
903 (_initialize_regcache): Install "maint print remote-registers"
905 * remote.c (map_regcache_remote_table): New function, factored out
907 (init_remote_state): ... here.
908 (remote_register_number_and_offset): New.
909 * remote.h (remote_register_number_and_offset): Declare.
911 2011-04-20 Pedro Alves <pedro@codesourcery.com>
913 * regcache.c (get_thread_arch_regcache): If creating a regcache for
914 null_ptid, assume and allow a NULL address space, instead of
915 asking the target for the ptid's address space.
916 * infrun.c (ptid_is_pid): Remove assertion.
918 2011-04-19 Tom Tromey <tromey@redhat.com>
920 * windows-tdep.c (windows_xfer_shared_library):
921 * windows-nat.c (get_module_name, windows_make_so):
922 * v850-tdep.c (v850_handle_pushm):
923 * utils.c (null_cleanup, gdb_realpath):
924 * ui-out.c (get_next_header):
925 * tracepoint.c (clear_traceframe_info):
926 * symtab.c (lookup_symtab):
927 * serial.h (struct serial_ops):
928 * mipsread.c (read_alphacoff_dynamic_symtab):
929 * infcmd.c (print_return_value):
930 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
931 * f-exp.y (parse_number):
932 * exceptions.c (catch_exceptions):
933 * dummy-frame.c (dummy_frame_this_id):
934 * defs.h (struct cleanup):
935 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
936 * arm-tdep.c (arm_push_dummy_call):
937 * amd64-tdep.h (amd64_collect_xsave):
938 * amd64-tdep.c (amd64_collect_xsave):
939 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
940 * README (typing): Remove duplicate words.
941 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
942 * infrun.c (siginfo_value_read): Fix typo.
943 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
944 * top.c (source_line_number): Add comma.
946 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
948 * thread.c (any_live_thread_of_process): Prioritize threads
949 that are not executing.
950 * gdbthread.h (any_live_thread_of_process): Update comment
953 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
955 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
956 (scan_xcoff_symtab): Likewise.
958 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
960 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
963 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
964 Pedro Alves <pedro@codesourcery.com>
966 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
967 variables to simplify code and avoid == operator at end of
968 line as this is against GNU coding standards.
970 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
972 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
973 lm_name to name_lm to avoid conflict with lm_name function.
975 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
977 ARI fixes: Use only lowercase function name for static functions.
978 * nto-tdep.c (LM_ADDR): Rename to...
979 (lm_addr): New function name.
980 (nto_relocate_section_addresses): Adapt to change above.
981 * solib-sunos.c (LM_ADDR): Rename to...
982 (lm_addr): New function name.
983 (LM_NEXT): Rename to...
984 (lm_next): New function name.
985 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
986 function name changes above.
987 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
988 (lm_addr_from_link_map): New function name.
989 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
990 (has_lm_dynamic_from_link_map): New function name.
991 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
992 (lm_dynamic_from_link_map): New function name.
993 (LM_ADDR_CHECK): Rename to...
994 (lm_addr_check): New function name.
995 (LM_NEXT): Rename to...
996 (lm_next): New function name.
997 (LM_PREV): Rename to...
998 (lm_prev): New function name.
999 (LM_NAME): Rename to...
1000 (lm_name): New function name.
1001 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1002 (ignore_first_link_map_entry): New function name.
1003 (svr4_keep_data_in_core): Adapt to function name changes above.
1004 (svr4_current_sos): Likewise.
1005 (enable_break): Likewise.
1006 (svr4_relocate_section_addresses): Likewise.
1008 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1011 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1012 sprintf. Simplify code and avoid loosing memory.
1013 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1014 (call0_frame_cache): Remove && operator from end of line.
1016 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1018 Fix libraries displacement if they change whether they were prelinked.
1019 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1020 does not match. Comment why.
1022 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * corelow.c: Include wrapper.h.
1025 (core_open): Call now gdb_target_find_new_threads.
1026 * wrapper.c: Include target.h.
1027 (gdb_target_find_new_threads): New.
1028 * wrapper.h (gdb_target_find_new_threads): New declaration.
1030 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1032 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1033 even if !TARGET_HAS_EXECUTION.
1035 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1037 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1038 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1039 bfd_get_synthetic_symtab.
1040 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1041 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1042 parameter parent, remove the call to add_separate_debug_objfile.
1043 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1044 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1045 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1046 parent, new comment for it, call add_separate_debug_objfile for it.
1047 (symbol_file_add_separate): Pass objfile as the parameter parent,
1048 remove the call to add_separate_debug_objfile.
1049 (symbol_file_add_from_bfd): New parameter parent, pass it.
1050 (symbol_file_add): Pass NULL to the new parameter parent.
1051 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1053 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1058 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1060 Fix Python access to inlined frames.
1061 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1062 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1064 2011-04-15 Tom Tromey <tromey@redhat.com>
1066 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1068 2011-04-15 Gary Benson <gbenson@redhat.com>
1070 * MAINTAINERS: Add myself to write-after-approval section.
1072 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1074 * remote-sim.c (sim_command_completer): New function.
1075 (_initialize_remote_sim): Set completer to sim_command_completer.
1077 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1079 * breakpoint.c (print_exception_catchpoint): Rename to ...
1080 (print_it_exception_catchpoint): ... this.
1081 (gnu_v3_exception_catchpoint_ops): Update with new name
1082 for print_it_exception_catchpoint.
1084 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1086 * MAINTAINERS: Add myself for write after approval privileges.
1088 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1090 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1092 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1094 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1096 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1098 * breakpoint.c (save_breakpoints): Verify whether
1099 breakpoint_ops.print_recreate is defined before calling it.
1101 2011-04-11 Gary Benson <gbenson@redhat.com>
1103 Fix failure with --enable-maintainer-mode.
1104 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1106 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 * symtab.c (search_symbols): Reorder the KIND description in the
1110 function comment. Remove the unused 4th element of types, types2,
1111 types3 and types4. New gdb_assert on KIND.
1112 (symtab_symbol_info): Remove the unused 4th element of classnames.
1113 New gdb_assert on KIND.
1114 * symtab.h (enum search_domain): New warning in the enum comment.
1115 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1118 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1120 Fix crash of gdb save-index on a STABS file.
1121 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1124 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1126 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1127 * dwarf2read.c: Include ctype.h.
1128 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1130 (dwarf2_add_field): Fix new_field->accessibility by calling
1131 dwarf2_default_access_attribute. Restructure setting accessibility
1133 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1134 is_private and is_protected by calling
1135 dwarf2_default_access_attribute.
1137 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1139 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1140 to the initialization.
1142 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1144 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1147 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1149 Remove support for old Cygwin 1.5 versions.
1150 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1151 function on old Cygwin version.
1152 * windows-nat.c: Remove cygwin version check and always define
1153 __USEWIDE for Cygwin compilation.
1155 2011-04-07 Yao Qi <yao@codesourcery.com>
1157 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1159 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1160 (arm_copy_svc): Remove parameters INSN and TO.
1161 (decode_svc_copro): Update caller.
1162 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1163 from function pointer `copy_svc_os'.
1165 2011-04-07 Yao Qi <yao@codesourcery.com>
1167 * arm-tdep.c (cleanup_branch): Set a correct return address in
1168 LR for ARM and Thumb.
1170 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1173 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1174 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1175 in the function comment, a new note on values compatibility.
1176 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1177 * symtab.h (SYMBOL_HASH_NEXT): New.
1179 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1181 * ppc-linux-nat.c (check_condition): Add len output parameter.
1182 Set it based on the memory region referenced in the condition
1183 expression. Update all callers.
1185 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1187 Fix crash regression on systems featuring .gdb_index.
1188 * objfiles.c (free_objfile): Move the
1189 forget_cached_source_info_for_objfile call earlier. Comment it.
1190 Extend the comment for objfile_free_data.
1192 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 Fix regression of displaying the debug format.
1195 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1198 2011-04-04 Tom Tromey <tromey@redhat.com>
1200 * cli/cli-interp.c (struct captured_execute_command_args):
1202 (do_captured_execute_command): Remove.
1203 (safe_execute_command): Use TRY_CATCH.
1204 * cli/cli-script.c (struct wrapped_read_command_file_args):
1206 (wrapped_read_command_file): Remove.
1207 (script_from_file): Use TRY_CATCH.
1208 * exceptions.c (catch_exception): Remove.
1209 * exceptions.h (catch_exception): Remove.
1210 (deprecated_throw_reason): Update comment.
1211 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1212 argument to 'context'.
1213 (mi_execute_command): Use TRY_CATCH.
1214 * remote.c (struct start_remote_args): Remove.
1215 (remote_start_remote): Update; change arguments.
1216 (remote_open_1): Use TRY_CATCH.
1218 2011-04-04 Tom Tromey <tromey@redhat.com>
1220 * tracepoint.c (scope_info): Update.
1221 * symtab.c (decode_line_spec): Update.
1222 * python/python.c (gdbpy_decode_line): Update.
1223 * linespec.h (decode_line_1): Update.
1224 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1225 (decode_compound, find_method, symtab_from_filename)
1226 (decode_variable): Likewise.
1227 * cli/cli-cmds.c (edit_command): Update.
1228 (list_command): Update.
1229 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1231 (create_breakpoint): Update.
1232 (until_break_command): Update.
1233 (addr_string_to_sals): Update.
1234 (decode_line_spec_1): Update.
1236 2011-04-04 Tom Tromey <tromey@redhat.com>
1238 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1239 (do_captured_parse_breakpoint): Remove.
1240 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1241 Use TRY_CATCH directly.
1243 2011-04-04 Tom Tromey <tromey@redhat.com>
1245 * symtab.h (free_symtab): Remove.
1246 (forget_cached_source_info_for_objfile): Declare.
1247 * symmisc.c (free_symtab): Remove.
1248 * source.c (forget_cached_source_info_for_objfile): New function.
1249 (forget_cached_source_info): Use it.
1250 * objfiles.c (free_objfile): Simplify check before calling
1251 clear_current_source_symtab_and_line. Call
1252 forget_cached_source_info_for_objfile.
1254 2011-04-04 Tom Tromey <tromey@redhat.com>
1256 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1257 (new_symtab): Don't set `free_code' on symtab.
1258 (new_linetable): Properly handle size==0.
1259 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1260 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1262 * jv-lang.c (struct jv_per_objfile_data): New.
1263 (jv_per_objfile_free): Free the data.
1264 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1265 (get_java_class_symtab): Set the `dict' field on the
1266 jv_per_objfile_data.
1267 (free_class_block): Remove.
1268 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1271 2011-04-04 Tom Tromey <tromey@redhat.com>
1273 * symfile.c (reread_symbols): Update.
1274 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1276 * objfiles.c (allocate_objfile): Update.
1277 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1279 * cp-namespace.c (lookup_symbol_file): Don't call
1280 lookup_possible_namespace_symbol.
1281 (initialize_namespace_symtab, get_possible_namespace_block)
1282 (free_namespace_block, cp_check_possible_namespace_symbols)
1283 (check_possible_namespace_symbols_loop)
1284 (check_one_possible_namespace_symbol)
1285 (lookup_possible_namespace_symbol): Remove.
1286 (maintenance_cplus_namespace): Replace with notice.
1287 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1289 2011-04-04 Tom Tromey <tromey@redhat.com>
1291 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1292 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1293 * symmisc.c (free_symtab): Don't free debugformat.
1294 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1295 (record_debugformat, record_producer): Document.
1296 * buildsym.c (end_symtab): Don't save debugformat and producer
1298 (end_symtab): Don't free debugformat and producer fields.
1299 (record_debugformat): Don't call xstrdup.
1300 (record_producer): Likewise.
1302 2011-04-04 Tom Tromey <tromey@redhat.com>
1304 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1305 (source_line_charpos, source_charpos_line): Remove.
1307 2011-04-04 Tom Tromey <tromey@redhat.com>
1309 * symtab.h (domain_enum): Split in two...
1310 (enum search_domain): New.
1311 (search_symbols): Update.
1312 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1313 redundant declarations.
1314 (search_symbols): Change 'kind' argument to search_domain.
1316 (print_symbol_info): Likewise.
1317 (symtab_symbol_info): Likewise.
1318 * symfile.h (struct quick_symbol_functions)
1319 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1320 <expand_symtabs_matching>: Likewise.
1321 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1322 (expand_symtabs_matching_via_partial): Update.
1323 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1324 (dw2_expand_symtabs_for_function): Update.
1325 * block.h: Moved anonymous enum...
1326 * defs.h (enum block_enum): ... here. Now named.
1328 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1330 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1331 * version.in: Bump version to 7.3.50.20110403-cvs.
1333 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1335 * NEWS: Create a new section for the next release branch.
1336 Rename the section of the current branch, now that it has
1339 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1341 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1342 for "fpscr" in target description.
1344 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1346 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1347 initialize it. Delay HASH initialization. Strip the part after open
1348 parenthesis for languages with qualifiers. Call do_cleanups.
1350 2011-04-01 Tom Tromey <tromey@redhat.com>
1352 * utils.c (report_command_stats): Don't print `-' for negative
1355 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1357 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1358 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1361 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1363 * breakpoint.h (bpdisp_text): Add declaration.
1364 * breakpoint.c (bpdisp_text): Make non-static.
1365 * ada-lang.c: #include "mi/mi-common.h".
1366 (print_it_exception): Rewrite to improve GDB/MI output.
1368 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1370 * arm-tdep.h (struct address_space): Add forward declaration.
1372 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1374 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1375 * arm-tdep.c (arm_override_mode): New global.
1376 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1377 execution mode heuristics.
1378 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1379 second single-step breakpoint if needed, using
1380 arm_insert_single_step_breakpoint.
1381 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1382 ARM execution mode, do not call thumb_get_next_pc_raw.
1383 (arm_get_next_pc): Encode execution mode in return value. Call
1384 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1385 (arm_insert_single_step_breakpoint): New function.
1386 (arm_software_single_step): Call it.
1387 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1388 argument to return execution mode of sigreturn target.
1389 (arm_linux_syscall_next_pc): Use it.
1390 (arm_linux_copy_svc): Update call.
1391 (arm_linux_software_single_step): Call
1392 arm_insert_single_step_breakpoint.
1394 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1396 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1399 2011-03-31 Tom Tromey <tromey@redhat.com>
1401 * varobj.c (update_dynamic_varobj_children): Properly handle
1402 errors from iterator.
1404 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1407 struct linkage name twice.
1409 2011-03-31 Tom Tromey <tromey@redhat.com>
1411 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1412 missing ">" to message.
1414 2011-03-31 Tom Tromey <tromey@redhat.com>
1416 * varobj.c (instantiate_pretty_printer): Remove duplicate
1419 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1421 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1422 if neither saved value nor register available (e.g. signal frame).
1424 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1426 * macroexp.c (expand): Avoid uninitialized variable
1429 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1431 * breakpoint.c (break_range_command): Fix typo in comment.
1433 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1434 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1436 Implement support for PowerPC BookE ranged breakpoints.
1437 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1438 * breakpoint.h (struct bp_target_info) <length>: New member
1440 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1441 instead of struct breakpoint as argument, and also add ASPACE
1442 and BP_ADDR arguments. Update all callers.
1443 (struct breakpoint_ops) <print_one_detail>: New method.
1444 (struct breakpoint) <addr_string_range_end>: New member variable.
1445 * breakpoint.c (breakpoint_location_address_match): Add function
1447 (insert_bp_location): Set bl->target_info.length.
1448 (breakpoint_here_p): Call breakpoint_location_address_match.
1449 (moribund_breakpoint_here_p): Likewise.
1450 (regular_breakpoint_inserted_here_p): Likewise.
1451 (breakpoint_thread_match): Likewise.
1452 (bpstat_stop_status): Likewise.
1453 (bpstat_check_location): Move call to
1454 breakpoint_ops.breakpoint_hit to the top.
1455 (print_one_breakpoint_location): Call
1456 breakpoint_ops.print_one_detail if available.
1457 (breakpoint_address_match_range): New function.
1458 (breakpoint_location_address_match): Likewise.
1459 (breakpoint_locations_match): Compare the length field of the
1461 (hw_breakpoint_used_count): Count resources used by all locations
1462 in a breakpoint, and use breakpoint_ops.resources_needed if
1464 (breakpoint_hit_ranged_breakpoint): New function.
1465 (resources_needed_ranged_breakpoint): Likewise.
1466 (print_it_ranged_breakpoint): Likewise.
1467 (print_one_ranged_breakpoint): Likewise.
1468 (print_one_detail_ranged_breakpoint): Likewise.
1469 (print_mention_ranged_breakpoint): Likewise.
1470 (print_recreate_ranged_breakpoint): Likewise.
1471 (ranged_breakpoint_ops): New structure.
1472 (find_breakpoint_range_end): New function.
1473 (break_range_command): Likewise.
1474 (delete_breakpoint): Free addr_string_range_end.
1475 (update_breakpoint_locations): Add SALS_END argument. Update
1476 all callers. Calculate breakpoint length if a non-zero SALS_END
1477 is given. Call breakpoint_locations_match instead of
1478 breakpoint_address_match.
1479 (reset_breakpoint): Find SaL of the end of the range if B is a
1481 (_initialize_breakpoint): Register break-range command.
1482 * defs.h (print_core_address): Add function prototype.
1483 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1485 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1486 (ppc_linux_remove_hw_breakpoint): Likewise.
1487 (_initialize_ppc_linux_nat): Initialize
1488 to_ranged_break_num_registers.
1489 * target.c (update_current_target): Add comment about
1490 to_ranged_break_num_registers.
1491 (target_ranged_break_num_registers): New function.
1492 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1494 (target_ranged_break_num_registers): Add function prototype.
1495 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1496 * utils.c (print_core_address): ... here.
1498 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1500 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1501 variable compiler warning.
1503 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1505 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1507 (re_set_breakpoint): ... to here ...
1508 (addr_string_to_sals): ... and here.
1510 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1512 * Makefile.in (SFILES): Add missing C sources.
1513 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1514 Add missing headers.
1516 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1518 * .gitignore: New file.
1520 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1522 * NEWS: Mention new cfi device simulation.
1524 2011-03-29 Tom Tromey <tromey@redhat.com>
1526 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1527 otherwise anonymous types.
1528 (dwarf2_name): Likewise.
1529 * valops.c (value_struct_elt_for_reference): Refine artificial
1530 type logic. Call error if j==-1.
1532 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1534 Fix false GCC warning.
1535 * infcall.c (find_function_addr): Initialize funaddr.
1537 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1539 Fix mingw compilation with --enable-targets=all.
1540 * remote-mips.c (gdb_usleep.h): Include header.
1541 (mips_enter_debug): Use gdb_usleep instead of sleep.
1543 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1545 Support resolution of STT_GNU_IFUNC via breakpoints.
1546 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1547 bp_gnu_ifunc_resolver_return.
1548 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1549 the loop. Support bp_gnu_ifunc_resolver and
1550 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1551 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1553 (bptype_string, print_one_breakpoint_location): Support
1554 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1555 (user_settable_breakpoint): Return true also for
1556 bp_gnu_ifunc_resolver.
1557 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1558 bp_gnu_ifunc_resolver_return.
1559 (set_breakpoint_location_function): New parameter explicit_loc,
1560 describe it. Call find_pc_partial_function_gnu_ifunc with new
1561 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1562 EXPLICIT_LOC is not set.
1563 (set_raw_breakpoint): Set EXPLICIT_LOC for
1564 set_breakpoint_location_function.
1565 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1566 set_breakpoint_location_function.
1567 (mention): Support bp_gnu_ifunc_resolver and
1568 bp_gnu_ifunc_resolver_return.
1569 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1570 set_breakpoint_location_function.
1571 (update_breakpoint_locations): Remove static.
1572 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1573 bp_gnu_ifunc_resolver_return.
1574 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1575 bp_gnu_ifunc_resolver_return.
1576 (update_breakpoint_locations): New declaration.
1577 * elfread.c: Include gdbthread.h and regcache.h.
1578 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1580 (elf_gnu_ifunc_fns): Install them.
1581 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1582 (stub_gnu_ifunc_resolver_return_stop): New functions.
1583 (stub_gnu_ifunc_fns): Install them.
1584 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1585 and gnu_ifunc_resolver_return_stop.
1586 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1588 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 STT_GNU_IFUNC reader implementation.
1591 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1592 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1593 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1594 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1595 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1596 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1597 (elf_gnu_ifunc_resolve_addr): New.
1598 (elf_symfile_read): Call elf_rel_plt_read.
1599 (elf_gnu_ifunc_fns): New.
1600 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1601 Install elf_gnu_ifunc_fns.
1602 * infcall.c (find_function_return_type): New function.
1603 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1604 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1605 (stub_gnu_ifunc_resolve_name): New functions.
1606 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1607 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1608 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1610 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1612 Code cleanup for later STT_GNU_IFUNC support.
1613 * infcall.c (find_function_addr): Remove variable code, use explicit
1614 dereferences for it. Move VALUE_TYPE initialization later.
1616 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1618 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1619 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1620 (clear_pc_function_cache): Clear it.
1621 (find_pc_partial_function): Rename to ...
1622 (find_pc_partial_function_gnu_ifunc): ... this function. New
1623 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1624 (find_pc_partial_function): New wrapper for this function.
1625 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1627 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 GDB internal type support for STT_GNU_IFUNC.
1630 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1631 (elf_symtab_read): Set mst_text_gnu_ifunc for
1632 BSF_GNU_INDIRECT_FUNCTION.
1633 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1634 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1635 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1636 nodebug_got_plt_symbol.
1637 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1638 (TYPE_GNU_IFUNC): New.
1639 (struct main_type): New field flag_gnu_ifunc.
1640 (struct builtin_type): New field builtin_func_func.
1641 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1642 nodebug_got_plt_symbol.
1643 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1644 (in_gnu_ifunc_stub): New.
1645 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1647 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1648 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1649 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1651 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1652 * symtab.c (search_symbols): Likewise.
1653 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1654 and mst_slot_got_plt.
1655 (in_gnu_ifunc_stub): New declaration.
1657 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1659 Support a ring of related breakpoints.
1660 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1661 other functions, add gdb_assert.
1662 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1663 watchpoint_del_at_next_stop.
1664 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1665 (bpstat_stop_status): Handle ring in related_breakpoint.
1666 (set_raw_breakpoint_without_location): Initialize ring in
1668 (delete_breakpoint): Handle ring in related_breakpoint, use
1669 watchpoint_del_at_next_stop.
1670 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1672 2011-03-28 Tom Tromey <tromey@redhat.com>
1675 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1676 with `language_minimal'.
1678 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1680 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1681 instead of checking for STT_ARM_TFUNC symbol type.
1683 2011-03-25 Tom Tromey <tromey@redhat.com>
1685 * linespec.c (symbol_found): Restore line-based result for
1686 non-LOC_LABEL symbols.
1688 2011-03-25 Kai Tietz <ktietz@redhat.com>
1690 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1691 instead of strcmp for comparison.
1692 (tui_source_is_displayed): Likewise.
1693 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1695 2011-03-24 Mark Wielaard <mjw@redhat.com>
1697 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1699 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1700 (find_partial_die_in_comp_unit): Likewise in comment.
1701 (read_attribute_value): Likewise.
1702 (lookup_die_type): Likewise.
1703 (dwarf_form_name): Likewise.
1704 (dump_die_shallow): Likewise.
1705 (follow_die_ref_or_sig): Likewise.
1707 2011-03-24 Tom Tromey <tromey@redhat.com>
1709 PR breakpoints/11816:
1710 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1711 (decode_compound): Update.
1712 (find_function_symbol): New function.
1713 (decode_dollar): Update.
1714 (decode_label): Add 'function_symbol' parameter. Handle
1715 function-relative labels.
1716 (decode_variable): Update.
1717 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1718 not its line. Set `special_display' and canonical name for
1721 2011-03-24 Tom Tromey <tromey@redhat.com>
1723 * linespec.h (struct linespec_result) <special_display>: New
1725 * breakpoint.h (struct breakpoint) <display_canonical>: New
1727 * breakpoint.c (print_breakpoint_location): Respect
1729 (create_breakpoint_sal): Add 'display_canonical' parameter.
1730 (create_breakpoints_sal): Update.
1731 (create_breakpoint): Update.
1733 2011-03-24 Tom Tromey <tromey@redhat.com>
1735 * symtab.c (decode_line_spec): Update.
1736 * linespec.c (build_canonical_line_spec): Change type of
1738 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1739 (find_method, decode_all_digits, decode_dollar, decode_label)
1740 (symbol_found): Likewise.
1741 (init_linespec_result): New function.
1742 * breakpoint.c (struct captured_parse_breakpoint_args)
1743 <canonical_p>: New field, replaces addr_string_p.
1744 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1746 (parse_breakpoint_sals): Likewise.
1747 (do_captured_parse_breakpoint): Update.
1748 (create_breakpoint): Use struct linespec_result.
1749 (until_break_command): Update.
1750 (breakpoint_re_set_one): Update.
1751 (decode_line_spec_1): Update.
1752 * linespec.h (struct linespec_result): New.
1753 (init_linespec_result): Declare.
1755 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1757 * regcache.c (regcache_raw_read): If the target didn't supply a
1758 given raw register, mark it as unavailable.
1760 2011-03-23 Kai Tietz <ktietz@redhat.com>
1762 * breakpoint.c (clear_command): Use filename_cmp
1763 instead of strcmp for comparison.
1764 * buildsym.c (watch_main_source_file_lossage): Likewise.
1765 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1766 checking just for slash.
1767 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1768 strrchr and filename_cmp instead of strcmp for filenames.
1769 (add_old_header_file): Use filename_cmp
1770 instead of strcmp for comparison.
1771 * exec.c (exec_set_section_address): Likewise.
1772 * macrotab.c (macro_lookup_inclusion): Likewise.
1773 (macro_lookup_inclusion): Likewise.
1774 * elfread.c (_initialize_elfread): Likewise.
1775 (elfstab_offset_sections): Likewise.
1776 (elfstab_offset_sections): Use lbasename instead of
1778 * mdebugread.c (parse_partial_symbols): Likewise.
1779 (arse_partial_symbols): Use filename_(n)cmp instead of
1780 str(n)cmp for comparison.
1781 * minsyms.c (lookup_minimal_symbol): Likewise.
1782 * psymtab.c (read_psymtabs_with_filename): Likewise.
1783 * solib.c (solib_read_symbols): Likewise.
1784 (reload_shared_libraries_1): Likewise.
1785 * symmisc.c (maintenance_print_symbols): Likewise.
1786 * symfile.c (separate_debug_file_exists): Likewise.
1787 (reread_symbols): Likewise.
1788 (find_separate_debug_file_by_debuglink): Likewise.
1789 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1790 * source.c (add_path): Likewise.
1791 * symtab.c (filename_seen): Likewise.
1792 (file_matches): Likewise.
1793 (print_symbol_info): Likewise.
1794 (maybe_add_partial_symtab_filename): Likewise.
1795 (make_source_files_completion_list): Likewise.
1796 * xml-syscall.c (init_sysinfo): Likewise.
1797 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1798 IS_DIR_SEPARATOR for checking for trailing path separator.
1800 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1803 label abort_expression.
1804 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1805 DWARF_VALUE_OPTIMIZED_OUT.
1807 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1810 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1811 to linkage_name. Invert its value. Update the function comment.
1812 (c_type_print_varspec_suffix): Invert it at the caller.
1813 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1815 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1817 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1818 errors when reading the `stop_pc'.
1819 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1822 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1824 * NEWS: Document gdb.Write stream keyword.
1826 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1829 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1831 (dwarf2_add_field): Fix new_field->accessibility for
1832 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1834 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1838 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1839 other error classes. Do not print stack trace.
1841 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1843 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1844 (dwarf2_add_field): Fix new_field->accessibility for
1845 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1847 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1849 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1850 encountering a load via a non-SP register.
1852 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1854 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1855 field in returned unwinder.
1857 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1861 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1863 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1866 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1868 * frame.c (frame_unwind_register): Throw an error if unwinding the
1870 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1871 an unwind stop reason.
1872 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1873 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1874 UNWIND_UNAVAILABLE>: New.
1875 * inline-frame.c (inline_frame_unwind): Install
1876 default_frame_unwind_stop_reason.
1877 * frame-unwind.c: Include "exceptions.h".
1878 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1879 (default_frame_unwind_stop_reason): New.
1880 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1881 (default_frame_unwind_stop_reason): Declare.
1882 (struct frame_unwind) <stop_reason>: New function pointer.
1884 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1885 * dwarf2-frame.c: Include exceptions.h.
1886 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1887 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1888 computing the CFA. If such an error was thrown, set
1889 unavailable_retaddr.
1890 (dwarf2_frame_unwind_stop_reason): New.
1891 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1893 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1894 (dwarf2_signal_frame_unwind): Ditto.
1896 * amd64-tdep.c: Include "exceptions.h".
1897 (struct amd64_frame_cache): New field "base_p".
1898 (amd64_init_frame_cache): Clear it.
1899 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1900 Avoid reading registers with functions that throw if the register
1901 is not necessary to compute the frame base.
1902 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1903 swallowing NOT_AVAILABLE_ERROR.
1904 (amd64_frame_unwind_stop_reason): New.
1905 (amd64_frame_this_id): Don't build a frame id if the frame base
1907 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1908 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1909 base_p if the frame base was computable.
1910 (amd64_sigtramp_frame_unwind_stop_reason): New.
1911 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1912 frame base was unavailable.
1913 (amd64_sigtramp_frame_unwind): Install
1914 amd64_sigtramp_frame_unwind_stop_reason.
1915 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1916 base_p if the frame base was computable.
1917 (amd64_epilogue_frame_unwind_stop_reason): New.
1918 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1919 frame base was unavailable.
1920 (amd64_epilogue_frame_unwind): Install
1921 amd64_epilogue_frame_unwind_stop_reason.
1922 * i386-tdep.c: Include "exceptions.h".
1923 (struct i386_frame_cache): New field "base_p".
1924 (i386_init_frame_cache): Clear it.
1925 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1926 Avoid reading registers with functions that throw if the register
1927 is not necessary to compute the frame base.
1928 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1929 swallowing NOT_AVAILABLE_ERROR.
1930 (i386_frame_unwind_stop_reason): New.
1931 (i386_frame_this_id): Don't build a frame id if the frame base was
1933 (i386_frame_prev_register): Handle unavailable SP.
1934 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1935 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1936 base_p if the frame base was computable.
1937 (i386_epilogue_frame_unwind_stop_reason): New.
1938 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1939 base was unavailable.
1940 (i386_epilogue_frame_unwind): Install
1941 i386_epilogue_frame_unwind_stop_reason.
1942 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1943 base_p if the frame base was computable.
1944 (i386_sigtramp_frame_unwind_stop_reason): New.
1945 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1946 base was unavailable.
1947 (i386_sigtramp_frame_unwind): Install
1948 i386_sigtramp_frame_unwind_stop_reason.
1949 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1950 type's size, not the register's.
1951 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1953 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1954 default_frame_unwind_stop_reason.
1955 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1956 (alpha_heuristic_frame_unwind): Ditto.
1957 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1958 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1959 * avr-tdep.c (avr_frame_unwind): Ditto.
1960 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1962 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1963 * frv-tdep.c (frv_frame_unwind): Ditto.
1964 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1965 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1966 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1967 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1968 (hppa_stub_frame_unwind): Ditto.
1969 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1970 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1971 (ia64_libunwind_frame_unwind)
1972 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1973 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1974 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1975 * m32c-tdep.c (m32c_unwind): Ditto.
1976 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1977 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1978 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1979 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1980 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1981 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1982 * mep-tdep.c (mep_frame_unwind): Ditto.
1983 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1984 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1985 (mips_stub_frame_unwind): Ditto.
1986 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1987 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1988 * mt-tdep.c (mt_frame_unwind): Ditto.
1989 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1990 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1991 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1992 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1993 (s390_sigtramp_frame_unwind): Ditto.
1994 * score-tdep.c (score_prologue_unwind): Ditto.
1995 * sh-tdep.c (sh_frame_unwind): Ditto.
1996 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1997 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1998 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1999 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2000 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2001 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2002 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2003 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2004 (sparc64obsd_trapframe_unwind): Ditto.
2005 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2006 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2007 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2008 * v850-tdep.c (v850_frame_unwind): Ditto.
2009 * vax-tdep.c (vax_frame_unwind): Ditto.
2010 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2011 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2012 * xtensa-tdep.c (xtensa_unwind): Ditto.
2014 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2016 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2017 there's always a frame. Use get_frame_pc_if_available instead of
2018 get_frame_pc, and if there's no PC available, don't look up a
2021 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2023 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2026 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2028 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2031 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2033 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2034 * frame.c (frame_unwind_caller_pc_if_available): New.
2035 * stack.c (frame_info): Handle unavailable PC.
2037 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2039 * frame.c (frame_unwind_pc): Rename to ...
2040 (frame_unwind_pc_if_available): ... this. New `pc' output
2041 parameter. Change return type to int. Gracefully handle
2042 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2043 happened, or 1 otherwise.
2044 (frame_unwind_pc): Reimplement on top of
2045 frame_unwind_pc_if_available.
2046 (get_frame_func): Rename to ...
2047 (get_frame_func_if_available): New `pc' output parameter. Change
2048 return type to int. Gracefully handle the PC not being available.
2049 (get_frame_func): Reimplement on top of
2050 get_frame_func_if_available.
2051 (select_frame): Handle the PC being unavailable.
2052 (get_prev_frame): Handle the PC being unavailable.
2053 (get_frame_pc_if_available): New.
2054 (get_frame_address_in_block_if_available): New.
2055 (find_frame_sal): Handle the frame PC not being available.
2056 * frame.h (get_frame_pc_if_available): Declare.
2057 (get_frame_address_in_block_if_available): Declare.
2058 (get_frame_func_if_available): Declare.
2059 * stack.c (print_frame_info): Handle the PC being unavailable.
2060 (find_frame_funname): Ditto.
2061 (print_frame): Handle the PC being unavailable.
2062 (get_frame_language): Ditto.
2063 * blockframe.c (get_frame_block): Ditto.
2064 * macroscope.c (default_macro_scope): Ditto.
2065 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2067 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2069 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2070 NOT_AVAILABLE_ERROR when evaluating the location expression.
2072 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2074 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2075 returning that the register piece is unavailable/optimized out.
2076 (write_pieced_value): Handle get_frame_register_bytes returning
2077 that the register piece is unavailable/optimized out when doing a
2078 read-modify write of a bitfield.
2079 * findvar.c (value_from_register): Handle get_frame_register_bytes
2080 returning that the register piece is unavailable/optimized out.
2081 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2082 and `unavailablep'. Throw error on bad debug info. Use
2083 frame_register instead of frame_register_read, to fill in the new
2085 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2087 * valops.c: (value_assign): Adjust, and handle
2088 get_frame_register_bytes failing.
2089 * spu-tdep.c: Include exceptions.h.
2090 (spu_software_single_step): Adjust, and handle
2091 get_frame_register_bytes failing.
2092 (spu_get_longjmp_target): Ditto.
2093 * gdbarch.sh (register_to_value): Change to return int. New
2094 parameters `optimizedp' and `unavailablep'.
2095 * gdbarch.h, gdbarch.c: Regenerate.
2096 * i386-tdep.c (i386_register_to_value): Adjust to new
2097 gdbarch_register_to_value interface.
2098 * i387-tdep.c (i387_register_to_value): Ditto.
2099 * i387-tdep.h (i387_register_to_value): Ditto.
2100 * alpha-tdep.c (alpha_register_to_value): Ditto.
2101 * ia64-tdep.c (ia64_register_to_value): Ditto.
2102 * m68k-tdep.c (m68k_register_to_value): Ditto.
2103 * mips-tdep.c (mips_register_to_value): Ditto.
2104 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2106 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2108 * findvar.c (value_of_register): Mark the value as unavailable, if
2109 the register is unavailable.
2110 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2111 (frame_register): New `unavailablep' parameter.
2112 (frame_register_read): Update comment.
2113 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2114 Set it if the register is unavailable. If the register is
2115 unavailable, clear the output buffer.
2116 (frame_register): New `unavailablep' parameter. Pass it down.
2117 (frame_unwind_register): Adjust.
2118 (put_frame_register): Adjust.
2119 (frame_register_read): Adjust. Also return false if the register
2121 (frame_register_unwind_location): Adjust.
2122 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2123 is unavailable, mark the value accordingly.
2124 * stack.c (frame_info): Handle unavailable registers.
2126 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2128 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2129 simplify, using regcache_cooked_read.
2131 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2133 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2134 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2135 (regcache_raw_read_unsigned, regcache_raw_read_part)
2136 (regcache_cooked_read, regcache_cooked_read_signed)
2137 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2138 (regcache_cooked_read_ftype): Change return to enum
2140 * regcache.c: Include exceptions.h
2141 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2142 (do_cooked_read): Change return to enum register_status. Always
2143 forward to regcache_cooked_read.
2144 (regcache_raw_read): Change return to enum register_status. If
2145 the register is not REG_VALID, memset the buffer. Return the
2147 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2148 return the register's status.
2149 (regcache_raw_read_unsigned): Ditto.
2150 (regcache_cooked_read): Change return to enum register_status.
2151 Assert that with read-only regcaches, the register's status must
2152 be known. If the regcache is read-only, and the register is not
2153 REG_VALID, memset the buffer. Return the register's status.
2154 (regcache_cooked_read_signed): Change return to enum
2155 register_status. Handle non-REG_VALID registers and return the
2157 (regcache_cooked_read_unsigned): Change return to enum
2158 register_status. Handle non-REG_VALID registers and return the
2160 (regcache_xfer_part, regcache_raw_read_part)
2161 (regcache_cooked_read_part): Change return to enum
2162 register_status. Return the register's status.
2163 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2165 (regcache_dump): Handle unavailable cooked registers.
2166 * frame.c (do_frame_register_read): Adjust interface to match
2167 regcache_cooked_read_ftype.
2168 * gdbarch.sh (pseudo_register_read): Change return to enum
2170 * gdbarch.h, gdbarch.c: Regenerate.
2172 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2174 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2175 register_status. If reading a raw register indicates the raw
2176 register is not valid, return the raw register's status,
2177 otherwise, return REG_VALID.
2178 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2179 register_status. Handle non-REG_VALID raw registers and return
2180 the register's status.
2181 * arm-tdep.c (arm_neon_quad_read)
2182 (arm_pseudo_read): Change return to enum register_status. Handle
2183 non-REG_VALID raw registers and return the register's status.
2184 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2185 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2186 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2187 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2188 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2190 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2191 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2192 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2193 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2194 (m32c_pseudo_register_read): Change return to enum
2195 register_status. Adjust.
2196 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2197 enum register_status. Return the register's status.
2198 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2199 register_status. Return the register's status.
2200 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2201 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2202 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2203 * rs6000-tdep.c (move_ev_register_func): New typedef.
2204 (e500_move_ev_register): Use it. Change return to enum
2205 register_status. Return the register's status.
2206 (do_regcache_raw_read): New function.
2207 (do_regcache_raw_write): New function.
2208 (e500_pseudo_register_read): Change return to enum
2209 register_status. Return the register's status. Use
2210 do_regcache_raw_read.
2211 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2212 (dfp_pseudo_register_read): Change return to enum register_status.
2213 Return the register's status.
2214 (vsx_pseudo_register_read): Ditto.
2215 (efpr_pseudo_register_read): Ditto.
2216 (rs6000_pseudo_register_read): Ditto.
2217 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2218 register_status. Return the register's status.
2219 * sh64-tdep.c (pseudo_register_read_portions): New function.
2220 (sh64_pseudo_register_read): Change return to enum
2221 register_status. Use pseudo_register_read_portions. Return the
2223 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2224 register_status. Return the register's status.
2225 * sh-tdep.c (pseudo_register_read_portions): New function.
2226 (sh_pseudo_register_read): Change return to enum register_status.
2227 Use pseudo_register_read_portions. Return the register's status.
2228 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2229 enum register_status. Return the register's status.
2230 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2231 * spu-tdep.c (spu_pseudo_register_read_spu)
2232 (spu_pseudo_register_read): Ditto.
2233 * xtensa-tdep.c (xtensa_register_read_masked)
2234 (xtensa_pseudo_register_read): Ditto.
2235 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2237 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2239 * python/py-value.c (valpy_getitem): Fix formatting of error function
2242 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2244 ARI fixes: Add missing internationalization markups throughout
2246 * darwin-nat-info.c: Ditto.
2249 * mi/mi-main.c: Ditto.
2251 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2253 ARI fixes: Add missing internationalization markups throughout
2256 * cp-name-parser.y: Ditto.
2259 * objc-exp.y: Ditto.
2262 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2264 ARI fixes: Messages should have no trailing new lines.
2265 * darwin-nat.c (mach_check_error): Remove trailing new line from
2266 warning function call message.
2267 * record.c (bfdcore_read): Idem for error call.
2269 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2271 * common/signals.c (target_signal_from_host): Add _ markup to error
2272 function call message.
2273 (target_signal_to_host): Add _ markup and remove trailing new line
2274 from warning call message.
2275 (target_signal_from_command): Add _ markup to error function call
2278 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2282 * python/python.c (gdbpy_write): Accept a stream argument and
2283 operate to the appropriate stream.
2284 (gdbpy_flush): Likewise.
2285 (_initialize_python): Add stream constants.
2286 (finish_python_initialization): Add GdbOutputErrorFile class.
2288 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2290 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2292 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2294 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2295 to store_signed_integer. Add debug message when relocating CALL
2296 instructions. Fix formatting of debug message.
2297 * i386-tdep.c (i386_relocate_instruction): Ditto.
2299 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2301 * target.h (struct target_ops): Remove to_lookup_symbol field.
2302 (target_lookup_symbol): Delete macro.
2303 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2304 (update_current_target, setup_target_debug): Remove handling
2305 of to_lookup_symbol target_ops field.
2306 * ada-tasks.c (get_known_tasks_addr): Remove use of
2307 target_lookup_symbol.
2308 * coffread.c (coff_symtab_read): Likewise.
2309 * dbxread.c (read_dbx_symtab): Ditto.
2311 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2314 * configure.ac: Add getthrds declaration check.
2315 * configure, config.in: Regenerate.
2316 * aix-thread.c (getthrds): Declare only if not already declared
2317 in procinfo.h. More declaration out of get_signaled_thread to
2320 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2322 * python/py-symtab.c: Populate symtab_object_methods,
2324 (stpy_is_valid): New function.
2325 (salpy_is_valid): Ditto.
2326 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2327 (sympy_is_valid): New function.
2328 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2329 (objfpy_is_valid): New function.
2330 * python/py-inferior.c: Populate inferior_object_methods.
2331 (infpy_is_valid): New function.
2332 * python/py-infthread.c: Populate thread_object_methods.
2333 (thpy_is_valid): New function.
2334 * python/py-block.c: Declare block_object_methods. Populate. Declare
2335 block_iterator_object_methods. Populate.
2336 (blpy_is_valid): New function.
2337 (blpy_iter_is_valid): Ditto.
2339 2011-03-16 Keith Seitz <keiths@redhat.com>
2341 * linespec.c (find_methods): Canonicalize NAME before looking
2343 (name_end): New function.
2344 (keep_name_info): New function.
2345 (decode_line_1): Use keep_name_info.
2346 (decode_compound): Likewise.
2347 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2348 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2351 * linespec.c (locate_first_half): Keep overload information, too.
2352 (decode_compound): Use a string to represent break characters
2354 If P points to a break character, do not increment it.
2355 For C++ and Java, keep overload information and relevant keywords.
2356 If we cannot find a symbol, search the minimal symbols.
2359 * linespec.c (decode_compound): Rename SAVED_ARG to
2361 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2363 Pass a valid block to lookup_symbol.
2364 (lookup_prefix_sym): Likewise.
2365 (find_method): Construct search name based on SYM_CLASS instead
2367 * psymtab.c (lookup_partial_symbol): Add language parameter.
2368 (lookup_symbol_aux_psymtabs): Likewise.
2369 Don't assume that the psymtab we found was the right one. Search
2370 for the desired symbol in the symtab to be certain.
2371 (psymtab_search_name): New function.
2372 (lookup_partial_symbol): Use psymtab_search_name.
2373 Add language parameter.
2374 (read_symtabs_for_function): Add language parameter and pass to
2375 lookup_partial_symbol.
2376 (find_symbol_file_from_partial): Likewise.
2378 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2381 * dwarf2read.c (noop_record_line): New function.
2382 (dwarf_decode_lines): Ignore line tables for GCd functions.
2384 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2386 Fix ARI warnings about new lines at the end of messages, which
2387 are unneeded as there is a new line added at the end of the message
2389 * darwin-nat.c (darwin_stop_inferior): Ditto.
2390 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2391 * dfp.c (decimal_to_number): Ditto.
2392 * exec.c (print_section_info): Ditto.
2393 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2394 * osdata.c (get_osdata): Ditto.
2395 * record.c (bfdcore_write): Ditto.
2396 * remote-mips.c (mips_readchar): Ditto.
2397 * remote.c (read_ptid): Ditto.
2398 * ser-mingw.c (ser_windows_raw): Ditto.
2399 * tracepoint.c (add_local_symbols): Ditto.
2400 * windows-nat.c (fake_create_process): Ditto.
2402 2011-03-16 Tom Tromey <tromey@redhat.com>
2404 * tracepoint.c (stop_tracing): Don't declare.
2405 * event-top.c (after_char_processing_hook): Add `(void)'.
2407 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2409 * NEWS: Add Parameter sub-classing description.
2411 2011-03-16 Kai Tietz <ktietz@redhat.com>
2413 * MAINTAINERS: Update my e-mail address.
2415 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2417 * MAINTAINERS: Add myself for write after approval privileges.
2419 2011-03-15 Michael Snyder <msnyder@vmware.com>
2421 * frame.c (find_frame_sal): Assert sym is not null.
2423 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2425 * objc-lang.c (selectors_info): Check strchr for null result.
2427 * stabsread.c (define_symbol): Guard against bad stabstring input.
2429 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2431 Remove trailing spaces and tabulations from pascal language
2436 p-valprint.c: Ditto.
2438 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2440 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2441 than LOW. Comment it.
2442 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2443 HIGHPC not strictly higher than LOWPC.
2445 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2447 Fix formatting of function declarations returning a pointer in
2449 * varobj.c (varobj_add_child): Ditto.
2450 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2451 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2453 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2455 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2456 for the "generic" vector ABI used with GCC 4.3 and later.
2457 (ppc64_sysv_abi_return_value): Likewise.
2459 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2461 * infcall.c (call_function_by_hand): Function return value is
2462 always a non_lval, even when using struct_return.
2464 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2466 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2467 (map_display_numbers): New.
2468 (do_delete_display): New.
2469 (undisplay_command): Use map_display_numbers.
2470 (do_enable_disable_display): New.
2471 (enable_disable_display_command): New function.
2472 (enable_display): Delete.
2473 (enable_display_command): New.
2474 (disable_display_command): Reimplement.
2475 (_initialize_printcmd): Adjust "enable display" command to use
2476 `enable_display_command' as callback.
2478 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2480 * NEWS: Add Python breakpoint 'stop' operation.
2482 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2484 * NEWS: Delete duplicate entry. Fix typo.
2486 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2488 Fix ARI warning about function names in first column.
2489 Put prototype declaration on same line as return type.
2490 * objc-exp.y: Ditto.
2492 * python/py-stopevent.h: Ditto.
2493 For long function names, split parameters to
2494 allow function name on same line as return type.
2495 * solib-pa64.c: Ditto.
2498 For long function declaration, use single line.
2499 * hppa-tdep.h: Ditto.
2500 * inferior.h: Ditto.
2502 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2504 * python/python.h: Declare gdbpy_should_stop and
2505 gdbpy_breakpoint_has_py_cond.
2506 * python/python.c: Add python.h to includes. Remove python.h from
2507 HAVE_PYTHON definition
2508 (gdbpy_should_stop): New dummy function.
2509 (gdbpy_breakpoint_has_py_cond): New dummy function.
2510 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2511 sub-classing capabilities.
2512 (gdbpy_should_stop): New function.
2513 (gdbpy_breakpoint_has_py_cond): New function.
2514 (local_setattro): New function.
2515 * breakpoint.c (condition_command): Add check for Python 'stop'
2517 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2518 operation function as part of stop/continue tests.
2520 2011-03-14 Tom Tromey <tromey@redhat.com>
2523 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2524 (needs_frame_dwarf_call): Likewise.
2526 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2528 Fix ARI warning about functions without parameters that do not
2530 * breakpoint.c (all_tracepoints): Replace () by (void).
2531 * f-exp.y (match_string_literal): Ditto.
2533 * m2-exp.y (yylex): Ditto.
2534 * mep-tdep.c (current_me_module): Ditto.
2535 (current_options): Ditto.
2536 (current_cop_data_bus_width): Ditto.
2537 (current_cr_names): Ditto.
2538 (current_cr_is_float): Ditto.
2539 (current_ccr_names): Ditto.
2540 * objc-exp.y (yylex): Ditto.
2541 * p-exp.y (yylex): Ditto.
2542 * remote.c (send_interrupt_sequence): Ditto.
2543 * tracepoint.c (current_trace_status): Ditto.
2544 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2545 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2547 2011-03-11 Michael Snyder <msnyder@vmware.com>
2549 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2550 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2551 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2552 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2553 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2555 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2556 (delete_async_event_handler): Ditto.
2558 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2560 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2562 * top.c (set_verbose): Assert showcmd was found.
2564 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2566 * xtensa-tdep.c (warning_once): Correct style issues.
2568 2011-03-11 Yao Qi <yao@codesourcery.com>
2570 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2572 2011-03-11 Andreas Schwab <schwab@redhat.com>
2574 * common/aclocal.m4: Remove.
2576 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2578 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2579 (xtensa_write_register, xtensa_read_register): Likewise.
2580 (xtensa_hextochar): Removed.
2581 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2583 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2585 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2586 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2587 (xtensa_alloc_frame_cache): Add initialization for new fields.
2588 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2589 (warning_once): New function.
2590 (xtensa_insn_kind): New item c0opc_and.
2591 (call0_classify_opcode): Add the case for AND instruction.
2592 (call0_track_op): Change arguments. New local variable litbase.
2593 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2594 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2596 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2597 (call0_analyze_prologue): Update the comments. Change arguments.
2598 Add the variety of updates to handle extended prologues, which now can
2599 conduct dynamic stack adjustments.
2600 (call0_frame_cache): Likewise.
2601 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2602 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2604 2011-03-10 Michael Snyder <msnyder@vmware.com>
2606 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2607 (cmd_qtframe): Ditto.
2608 (cmd_qtbuffer): Ditto.
2609 (cmd_bigqtbuffer): Ditto.
2611 2011-03-10 Tom Tromey <tromey@redhat.com>
2613 * tracepoint.c (trace_actions_command): Update.
2614 * thread.c (thread_apply_command): Update.
2615 * reverse.c (delete_bookmark_command): Update.
2616 (bookmarks_info): Update.
2617 * printcmd.c (undisplay_command): Update.
2618 * memattr.c (mem_enable_command): Update.
2619 (mem_disable_command): Update.
2620 (mem_delete_command): Update.
2621 * inferior.c (detach_inferior_command): Update.
2622 (kill_inferior_command): Update.
2623 (remove_inferior_command): Update.
2624 * cli/cli-utils.h (struct get_number_or_range_state): New.
2625 (init_number_or_range): Declare.
2626 (get_number_or_range): Update.
2627 * cli/cli-utils.c (init_number_or_range): New function.
2628 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2630 (number_is_in_list): Update.
2631 * breakpoint.h (get_tracepoint_by_number): Update.
2632 * breakpoint.c (map_breakpoint_numbers): Update for change to
2633 get_number_or_range.
2634 (find_location_by_number): Use get_number, not
2635 get_number_or_range.
2636 (trace_pass_set_count): New function.
2637 (trace_pass_command): Update for change to get_number_or_range.
2639 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2642 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2644 * python/py-param.c (add_setshow_generic): Add set/show callback
2645 parameters. Register Python object context.
2646 (get_show_value): New function.
2647 (get_set_value): New function.
2648 (call_doc_function): New function.
2649 (get_doc_string): Move behind get_show_value/get_set_value.
2651 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2653 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2655 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2657 * xtensa-tdep.c (xtensa_read_register): Add comment.
2658 (xtensa_write_register): Likewise.
2659 (xtensa_hextochar): Add comment and update to match coding conventions.
2660 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2661 (execute_l32e, execute_s32e, execute_code): Update comments.
2662 (xtensa_exception_handler_t): Update to match coding conventions.
2663 (xtensa_insn_kind): Likewise.
2665 2011-03-09 Michael Snyder <msnyder@vmware.com>
2667 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2669 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2671 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2673 2011-03-09 Tom Tromey <tromey@redhat.com>
2675 * thread.c (restore_selected_frame): Handle frame_level == -1.
2676 (make_cleanup_restore_current_thread): Use
2677 get_selected_frame_if_set.
2678 * frame.h (get_selected_frame_if_set): Declare.
2679 * frame.c (get_selected_frame_if_set): New function.
2681 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2683 * cli/cli-cmds.c (shell_escape): Use lbasename.
2684 * coffread.c (coff_start_symtab): Constify parameter.
2685 (complete_symtab): Constify `name' parameter.
2686 (coff_symtab_read): Constify `filestring' local.
2687 (coff_getfilename): Constify return and `result' local.
2689 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2690 * linux-fork.c (info_checkpoints_command): Use lbasename.
2691 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2692 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2693 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2694 * procfs.c (procfs_make_note_section): Use lbasename.
2695 * tui/tui-io.c (printable_part): Constity return and parameter.
2697 (print_filename): Constify parameters, and local `s'.
2698 (tui_rl_display_match_list): Constify local `temp'.
2700 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2703 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2704 Fix DWARF-3+ DW_AT_accessibility default assumption.
2705 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2706 cu->header.version >= 3.
2708 2011-03-09 Yao Qi <yao@codesourcery.com>
2710 * common/Makefile.in: Remove.
2711 * common/configure: Remove.
2712 * common/configure.ac: Remove.
2714 2011-03-09 Yao Qi <yao@codesourcery.com>
2717 2011-02-11 Yao Qi <yao@codesourcery.com>
2719 * common/Makefile.in: Add copyright header.
2721 2011-02-11 Yao Qi <yao@codesourcery.com>
2723 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2725 * configure.ac: Add common to sub dir.
2726 * configure: Regenerate.
2728 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2730 * xtensa-tdep.c (call0_ret): New function.
2731 (xtensa_skip_prologue): Speed up analysis.
2733 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2735 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2736 while executing MI command -data-list-changed-registers.
2738 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2740 * xtensa-tdep.c (xtensa_read_register): New function.
2741 (xtensa_write_register): New function.
2742 (xtensa_find_register_by_name): New function.
2743 (xtensa_windowed_frame_cache): Update comments in type description.
2744 (xtensa_frame_cache): Likewise.
2745 (xtensa_window_interrupt_insn): New function.
2746 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2747 (xtensa_insn_kind): Add new instructions.
2748 (rwx_special_register): New function.
2749 (call0_classify_opcode): Add new instructions to the analysis.
2750 (a0_saved, a7_saved, a11_saved): New variables.
2751 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2752 (execute_l32e): New function.
2753 (execute_s32e): New function.
2754 (xtensa_exception_handler_t): New type.
2755 (execute_code): New function.
2756 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2757 analysis for Xtensa Window Exception handlers.
2759 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2761 * xtensa-tdep.c (TX_PS): New.
2762 (windowing_enabled): Update to count for Call0 ABI.
2763 (xtensa_hextochar): New.
2764 (xtensa_init_reggroups): Make algorithm generic.
2765 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2767 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2769 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2771 2011-03-08 Michael Snyder <msnyder@vmware.com>
2773 * i386-tdep.c (i386_follow_jump): Check return value of
2775 (i386_analyze_struct_return): Ditto.
2776 (i386_skip_probe): Ditto.
2777 (i386_match_insn): Ditto.
2778 (i386_skip_noop): Ditto.
2779 (i386_analyze_frame_setup): Ditto.
2780 (i386_analyze_register_saves): Ditto.
2781 (i386_skip_prologue): Ditto.
2782 (i386_skip_main_prologue): Ditto.
2784 * target.c (read_whatever_is_readable): Fix memory leak.
2786 * i386-tdep.c (i386_process_record): Document fall through.
2788 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 Fix DWARF-3+ DW_AT_accessibility default assumption.
2791 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2792 cu->header.version >= 3.
2794 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2796 * remote.c (remote_check_symbols): Skip if the target has no
2799 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2801 * target.c (read_whatever_is_readable): Reformat comment,
2802 with a minor typo fix. Minor reformatting of the code.
2804 2011-03-08 Yao Qi <yao@codesourcery.com>
2806 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2807 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2808 Use cached result instead of calling displaced_in_arm_mode again.
2809 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2810 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2811 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2812 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2813 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2814 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2815 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2816 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2817 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2818 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2819 (arm_catch_kernel_helper_return): Likewise.
2820 * gdb/arm-tdep.h : Update function declarations.
2822 2011-03-07 Michael Snyder <msnyder@vmware.com>
2824 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2826 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2828 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2830 * elfread.c (elf_symtab_read): Stop memory leak.
2832 * main.c (captured_main): Fix memory leak.
2834 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2836 * ada-lang.c (compare_names): Call is_name_suffix with string1
2839 2011-03-07 Tom Tromey <tromey@redhat.com>
2841 * xcoffread.c (xcoff_sym_fns): Update.
2842 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2843 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2844 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2845 (symbol_file_add_with_addrs_or_offsets): Likewise.
2846 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2847 * somread.c (som_sym_fns): Update.
2848 * psymtab.h (require_partial_symbols): Declare.
2849 * psymtab.c (require_partial_symbols): New function.
2850 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2851 (ALL_OBJFILE_PSYMTABS): Undef.
2852 (ALL_PSYMTABS): Move from psympriv.h.
2853 (lookup_partial_symtab, find_pc_sect_psymtab)
2854 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2855 (find_last_source_symtab_from_partial)
2856 (forget_cached_source_info_partial)
2857 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2858 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2859 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2860 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2861 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2862 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2863 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2864 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2865 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2867 * mipsread.c (ecoff_sym_fns): Update.
2868 * machoread.c (macho_sym_fns): Update.
2869 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2870 (read_psyms): New function.
2871 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2872 (elf_sym_fns_lazy_psyms): New global.
2873 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2874 dwarf2_build_psymtabs.
2875 * dbxread.c (aout_sym_fns): Update.
2876 * coffread.c (coff_sym_fns): Update.
2878 2011-03-07 Tom Tromey <tromey@redhat.com>
2880 * infrun.c (print_exited_reason): Include inferior id and pid in
2883 2011-03-07 Tom Tromey <tromey@redhat.com>
2885 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2887 (target_has_execution_1): Update.
2888 (target_has_execution_current): Declare.
2889 (target_has_execution): Call target_has_execution_current.
2890 (default_child_has_execution): Update.
2891 * target.c (default_child_has_execution): Add 'the_ptid'
2893 (target_has_execution_1): Likewise.
2894 (target_has_execution_current): New function.
2895 (add_target): Update.
2896 (init_dummy_target): Update.
2897 * remote-m32r-sdi.c (m32r_has_execution): New function.
2898 (init_m32r_ops): Use it.
2899 * record.c (record_core_has_execution): Now static. Add
2900 'the_ptid' parameter.
2901 * inferior.c (have_live_inferiors): Don't save current thread.
2902 Use target_has_execution_1.
2904 2011-03-07 Yao Qi <yao@codesourcery.com>
2906 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2908 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2910 * elfread.c (elf_symtab_read): Minor reformatting.
2912 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2914 * objc-lang.c (selectors_info): Minor reformatting.
2916 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2918 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2920 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2921 Michael Snyder <msnyder@vmware.com>
2923 * ada-valprint.c (ada_val_print_array): Move the declaration of
2924 "byte_order" and "elttype" inside the block where these variables
2925 are actually used. Remove some special handling for the case
2926 where "elttype" and "eltlen" are null. Replace by a comment
2927 and a couple of assertion checks.
2929 2011-03-05 Michael Snyder <msnyder@vmware.com>
2931 * source.c (add_path): Replace semicolon at end of block.
2932 * dwarf2expr.c (execute_stack_op): Ditto.
2934 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2936 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2937 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2938 (bfin-*-*): Likewise.
2940 2011-03-05 Michael Snyder <msnyder@vmware.com>
2942 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2943 * mdebugread.c (parse_symbol): Ditto.
2944 * parse.c (parse_exp_in_context): Ditto.
2945 * source.c (add_path): Ditto.
2946 * utils.c (gnu_debuglink_crc32): Ditto.
2947 * varobj.c (variable_language): Ditto.
2949 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2951 2011-03-04 Michael Snyder <msnyder@vmware.com>
2953 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2955 * symfile.c (simple_overlay_update): Check for null return value
2956 from lookup_minimal_symbol.
2958 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2960 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2962 * eval.c (parse_and_eval_address_1): Remove function.
2963 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2964 instead of parse_and_eval_address_1.
2965 * value.h (parse_and_eval_address_1): Remove prototype.
2967 2011-03-04 Michael Snyder <msnyder@vmware.com>
2969 * remote.c (putpkt_binary): Document that case stmt falls through.
2971 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2973 * breakpointc (print_it_typical): Move NULL check from here...
2974 (print_bp_stop_message): ... to here.
2976 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2978 * breakpoint.c (enable_command): Use break instead of continue,
2979 and fill in a missing break.
2980 (disable_command): Ditto.
2982 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2984 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2985 (terminal_save_ours): Remove misleading comment.
2986 (inflow_inferior_data_cleanup): Free ttystate.
2987 (inflow_inferior_exit): Likewise.
2988 (copy_terminal_info): Copy ttystate.
2990 * serial.c (serial_copy_tty_state): New function.
2991 * serial.h (serial_copy_tty_state): Add prototype.
2992 (struct serial_ops): Add copy_tty_state callback.
2993 * ser-base.c (ser_base_copy_tty_state): New function.
2994 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2995 * ser-go32.c (dos_copy_tty_state): New function.
2996 (dos_ops): Install copy_tty_state callback.
2997 * ser-mingw.c (_initialize_ser_windows): Likewise.
2998 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2999 * ser-unix.c (hardwire_copy_tty_state): New function.
3000 (_initialize_ser_hardwire): Install it.
3002 2011-03-04 Michael Snyder <msnyder@vmware.com>
3004 * breakpoint.c (create_breakpoint): Add missing break statement.
3006 Reverting this patch:
3007 * infcall.c (call_function_by_hand): Add break statements for lint.
3009 Reverting this patch:
3010 * cli/cli-script.c (script_from_file): Add break for lint.
3012 2011-03-04 Michael Snyder <msnyder@vmware.com>
3014 * solib.c (reload_shared_libraries_1): Close memory leak.
3016 2011-03-03 Tom Tromey <tromey@redhat.com>
3019 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3022 2011-03-03 Michael Snyder <msnyder@vmware.com>
3024 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3025 fields of struct 'st' to zero.
3027 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3028 sal.pspace before calling set_current_source_symtab_and_line.
3030 2011-03-03 Yao Qi <yao@codesourcery.com>
3032 * Makefile.in (configure-common): Remove. Let Makefile
3033 in dir common to rebuild itself.
3034 (common/Makefile): Likewise.
3036 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3038 * utils.c (parse_escape): Add i18n markup in error message.
3040 2011-03-03 Yao Qi <yao@codesourcery.com>
3042 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3044 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3045 (displaced_write_reg, displaced_read_reg): Likewise.
3046 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3047 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3048 (cleanup_branch): Replace magic number 14 and 15 with
3049 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3051 2011-03-02 Michael Snyder <msnyder@vmware.com>
3053 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3055 * cli/cli-script.c (script_from_file): Add break for lint.
3057 * mdebugread.c (parse_partial_symbols): Fix indent.
3059 * target-descriptions.c (tdesc_gdb_type): No need to call
3060 xstrdup, callee saves a copy.
3062 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3064 * infcall.c (call_function_by_hand): Add break statements for lint.
3066 * utils.c (parse_escape): Escape the escape char.
3068 * python/py-inferior.c (build_inferior_list): Error out if
3069 PyList_Append fails.
3070 (gdbpy_inferiors): Error out if build_inferior_list fails.
3072 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3075 * record.c (record_restore): Move printf to before error return.
3077 2011-03-02 Yao Qi <yao@codesourcery.com>
3079 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3080 is_thumb and insn_size.
3081 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3082 on both ARM and Thumb mode.
3083 (arm_process_displaced_insn): Set is_thumb and insn_size.
3084 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3085 (arm_displaced_step_fixup): Likewise.
3087 2011-03-01 Michael Snyder <msnyder@vmware.com>
3089 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3091 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3093 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3095 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3097 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3100 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3101 which shadows function parameter.
3103 * tracepoint.c (create_tsv_from_upload): Superfluous call
3104 to xstrdup. Callee already calls xstrdup.
3106 * linespec.c (decode_line_1): Remove unnecessary null check.
3108 * tracepoint.c (scope_info): Fix mem leak, remove underused
3111 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3112 superfluous null check.
3114 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3115 (value_of_builtin_frame_fp_reg): Ditto.
3117 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3119 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3122 * linespec.c (decode_line_1): Check for null before dereference.
3124 * reverse.c (record_restore): Move null-check to before pointer
3127 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3129 * objc-lang.c (selectors_info): Add explanitory comment.
3130 (classes_info): Ditto.
3132 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3134 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3135 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3136 versions of the trampoline. Handle Thumb vs. ARM addresses.
3137 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3138 (arm_linux_init_abi): Install it.
3139 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3140 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3142 2011-02-28 Michael Snyder <msnyder@vmware.com>
3144 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3145 a little bigger, to avoid possibility of an overflow.
3147 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3148 buffers a little bigger, to avoid possibility of an overflow.
3150 * coffread.c (coff_getfilename): Add check to avoid overflow.
3152 * objc-lang.c (selectors_info): Add a small safety margin to
3154 (classes_info): Error out on too long REGEXP.
3156 * infrun.c (handle_inferior_event): Remove unused function call.
3158 * fork-child.c (fork_inferior): Remove ifdef'd code and
3161 * linux-thread-db.c (attach_thread): Discard unused value.
3163 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3165 * remote.c (remote_get_noisy_reply): Discard unused value.
3166 (remote_vcont_resume): Ditto.
3167 (remote_stop_ns): Ditto.
3169 * linespec.c (decode_objc): Delete unused variable.
3171 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3173 * dwarf2read.c (add_partial_symbol): Discard unused values.
3174 (read_base_type): Delete unused variable.
3176 * dbxread.c (read_dbx_symtab): Discard unused value.
3178 * eval.c (evaluate_subexp_standard): Delete unused variable,
3179 and discard unused values.
3181 * infcmd.c (_initialize_infcmd): Discard unused values.
3183 * stabsread.c (rs6000_builtin_type): Missing break statement.
3185 * dbxread.c (process_one_symbol): Discard unused value.
3187 * coffread.c (coff_end_symtab): Delete unused variable.
3189 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3190 (dwarf2_add_typedef): Delete unused variable.
3191 (read_namespace): Ditto.
3192 (dwarf_decode_macros): Ditto.
3194 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3196 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3198 * p-valprint.c (pascal_val_print): Discard unused value.
3200 * utils.c (nquery): Call va_end before return;
3204 * proc-service.c (ps_plog): Call va_end before return.
3206 2011-02-28 Tom Tromey <tromey@redhat.com>
3208 * python/python.c (gdbpy_value_cst): New global.
3209 (_initialize_python): Initialize it.
3210 * python/python-internal.h (gdbpy_value_cst): Declare.
3211 * python/py-value.c (convert_value_from_python): Use
3214 2011-02-28 Michael Snyder <msnyder@vmware.com>
3216 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3218 * breakpoint.c (catch_syscall_completer): Free malloced list.
3220 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3222 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3223 (lval_func_check_synthetic_pointer): Ditto.
3224 (lval_func_free_closure): Fix use-after-free.
3226 2011-02-28 Tom Tromey <tromey@redhat.com>
3228 * psymtab.c (expand_partial_symbol_tables): Use
3229 ALL_OBJFILE_PSYMTABS.
3231 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3233 * objc-lang.c (selectors_info): Error on too long REGEXP.
3235 2011-02-28 Michael Snyder <msnyder@vmware.com>
3237 * python/py-param.c (set_parameter_value): Add missing
3240 * linux-record.c (record_linux_system_call): Add missing
3243 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3245 * breakpoint.c (print_one_breakpoint_location): Remove unused
3246 argument PRINT_ADDRESS_BITS. Update callers.
3247 (print_one_breakpoint): Likewise.
3249 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3251 * breakpoint.c (wrap_indent_at_field): New function.
3252 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3253 Allocate ui_stream locally instead of using STB argument.
3254 (print_one_breakpoint_location): Update call.
3255 * ui-out.c (ui_out_query_field): New function.
3256 * ui-out.h (ui_out_query_field): Add prototype.
3258 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3260 From Michael Snyder <msnyder@vmware.com>
3261 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3263 2011-02-27 Michael Snyder <msnyder@vmware.com>
3265 * objc-lang.c (selectors_info): Prevent string overrun.
3267 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3270 * symtab.c (rbreak_command): Move variable 'file_name' to
3273 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3274 param with a local variable of the same name.
3276 2011-02-27 Michael Snyder <msnyder@vmware.com>
3278 * value.c (value_from_history_ref): New function.
3279 * value.h (value_from_history_ref): Export.
3280 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3281 to parse value history references.
3282 * cli/cli-utils.h (get_number_trailer): Update comment.
3284 2011-02-27 Michael Snyder <msnyder@vmware.com>
3286 * inferior.c (detach_inferior_command): Use get_number_or_range.
3287 (kill_inferior_command): Ditto.
3288 (remove_inferior_command): Ditto.
3289 (initialize_inferiors): Make command names plural.
3290 Update help strings.
3292 2011-02-27 Michael Snyder <msnyder@vmware.com>
3294 * darwin-nat-info.c: Fix comment typo.
3295 * dwarf2expr.h: Ditto.
3296 * fbsd-nat.c: Ditto.
3297 * fbsd-nat.h: Ditto.
3298 * frame-unwind.h: Ditto.
3300 * hppa-hpux-tdep.c: Ditto.
3301 * i386-linux-nat.c: Ditto.
3302 * linux-nat.c: Ditto.
3303 * nbsd-nat.c: Ditto.
3304 * nbsd-nat.h: Ditto.
3305 * ppc-linux-tdep.c: Ditto.
3308 * tui/tui-winsource.c: Ditto.
3310 2011-02-26 Michael Snyder <msnyder@vmware.com>
3312 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3314 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3316 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3317 with a local variable of the same name.
3319 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3320 param with a local variable of the same name.
3321 (i387_supply_xsave): Ditto.
3323 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3324 that it does not shadow a function parameter.
3326 * i386-nat.c (i386_length_and_rw_bits): Document that case
3327 statement is meant to fall through.
3329 * expprint.c (dump_subexp_body_standard): Document that case
3330 statement is meant to fall through.
3332 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3333 dead if statement. Condition can't be false.
3335 2011-02-25 Michael Snyder <msnyder@vmware.com>
3337 * arm-tdep.c: Fix typos in comments.
3338 * bsd-uthread.c: Ditto.
3339 * completer.c: Ditto.
3341 * cp-namespace.c: Ditto.
3342 * cp-support.c: Ditto.
3343 * cris-tdep.c: Ditto.
3345 * dwarf2read.c: Ditto.
3347 * gdbtypes.h: Ditto.
3348 * inferior.h: Ditto.
3349 * mdebugread.c: Ditto.
3350 * mips-tdep.c: Ditto.
3351 * ppc-linux-nat.c: Ditto.
3352 * ppc-linux-tdep.c: Ditto.
3353 * printcmd.c: Ditto.
3354 * sol-thread.c: Ditto.
3355 * solib-frv.c: Ditto.
3357 * sparc64-tdep.c: Ditto.
3358 * spu-tdep.c: Ditto.
3359 * stabsread.c: Ditto.
3364 * python/py-block.c: Ditto.
3365 * python/py-symbol.c: Ditto.
3366 * python/py-symtab.c: Ditto.
3367 * python/py-value.c: Ditto.
3368 * tui/tui-win.c: Ditto.
3370 2011-02-25 Michael Snyder <msnyder@vmware.com>
3372 * inferior.c (print_inferior): Accept a string instead of an int
3373 for requested_inferiors, and use get_number_or_range to parse it.
3374 (info_inferiors_command): Pass args string to print_inferior.
3375 (initialize_inferiors): Change help string for info inferiors.
3376 * inferior.h (print_inferior): Export prototype change.
3378 2011-02-25 Tom Tromey <tromey@redhat.com>
3380 * common/ax.def (invalid2): Set to 0x31.
3382 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3384 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3386 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3388 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3390 2011-02-24 Michael Snyder <msnyder@vmware.com>
3392 * Makefile.in (clean): Make clean should remove generated files
3393 observer.h and observer.inc.
3395 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3397 Revert the following patch (not approved yet):
3398 2011-02-21 Hui Zhu <teawater@gmail.com>
3399 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3400 * ax-gdb.c (gen_printf_expr_callback): New function.
3401 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3402 * ax-general.c (ax_memcpy): New function.
3403 (ax_print): Handle "printf".
3405 * ax.h (ax_memcpy): Forward declare.
3406 * common/ax.def (invalid2): Removed.
3407 (printf): New entry.
3408 * printcmd.c (printcmd.h): New include.
3409 (string_printf): New function.
3410 (ui_printf): Removed.
3411 (printf_command): Remove static. Call string_printf.
3412 (eval_command): Call string_printf.
3413 * printcmd.h: New file.
3414 * tracepoint.c (validate_actionline,
3415 encode_actions_1): handle printf_command.
3417 2011-02-23 Tom Tromey <tromey@redhat.com>
3419 * ax-general.c (ax_pick): Add missing newline.
3421 2011-02-23 Michael Snyder <msnyder@vmware.com>
3423 * breakpoint.c (breakpoint_1): Change first argument from an int
3424 to a char pointer, so that the function now accepts a list of
3425 breakpoints rather than just one. Use new function
3426 'number_is_in_list' to implement.
3427 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3428 (watchpoints_info): Ditto.
3429 (tracepoints_info): Ditto.
3430 (maintenance_info_breakpoints): Ditto.
3431 (_initialize_breakpoint): Update help strings to reflect the fact
3432 that these functions can now take more than one argument.
3433 * cli/cli-utils.c (number_is_in_list): New function.
3434 * cli/cli-utils.h (number_is_in_list): Export.
3436 2011-02-23 Michael Snyder <msnyder@vmware.com>
3438 * memattr.c (mem_enable_command): Use get_number_or_range.
3439 (mem_disable_command): Ditto.
3440 (mem_delete_command): Ditto.
3441 (_initialize_mem): Tweak usage message to reflect multiple
3444 2011-02-22 Doug Evans <dje@google.com>
3446 Add gdb.lookup_global_symbol python function.
3448 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3449 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3450 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3452 2011-02-22 Tom Tromey <tromey@redhat.com>
3454 * language.c (language_class_name_from_physname): Rename
3455 'curr_language' argument to 'lang'; use in body.
3457 2011-02-22 Michael Snyder <msnyder@vmware.com>
3459 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3461 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3463 * frame-unwind.h: Fix comment to mention the this frame, not the
3466 2011-02-22 Tom Tromey <tromey@redhat.com>
3468 * symfile.c (auto_solib_limit): Remove.
3469 * symfile.h (auto_solib_limit): Remove.
3471 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3473 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3475 2011-02-21 Michael Snyder <msnyder@vmware.com>
3477 * gdbthread.h (print_thread_info): Change prototype.
3478 * thread.c (print_thread_info): Accept char* instead of int for
3479 requested_threads argument. Use new function number_is_in_list
3480 to determine which threads to list.
3481 (info_threads_command): Pass char* to print_thread_info.
3482 * cli/cli-utils.c (number_is_in_list): New function.
3483 * cli/cli-utils.h (number_is_in_list): Export.
3484 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3486 (print_one_inferior): Ditto.
3487 (mi_cmd_list_thread_groups): Ditto.
3489 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 * common/Makefile.in (CFLAGS): New.
3492 (COMPILE): Add $(CFLAGS).
3494 2011-02-21 Tom Tromey <tromey@redhat.com>
3496 * breakpoint.c (catch_syscall_command_1): Fix typo.
3498 2011-02-21 Tom Tromey <tromey@redhat.com>
3500 * reverse.c: Include cli-utils.h.
3501 * printcmd.c: Include cli-utils.h.
3502 (string_printf): Use skip_spaces.
3503 * cli/cli-utils.h: New file.
3504 * cli/cli-utils.c: New file.
3505 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3506 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3507 * breakpoint.h (get_number, get_number_or_range): Move to
3509 * breakpoint.c: Include cli-utils.h.
3510 (get_number_trailer, get_number, get_number_or_range)
3511 (ep_skip_leading_whitespace): Move to cli-utils.c.
3512 (create_breakpoint_sal, find_condition_and_thread)
3513 (decode_static_tracepoint_spec, watch_command_1)
3514 (watch_maybe_just_location, ep_parse_optional_if_clause)
3515 (catch_fork_command_1, catch_exec_command_1)
3516 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3517 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3518 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3519 (HFILES_NO_SRCDIR): Add cli-utils.h.
3520 (cli-utils.o): New target.
3522 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3524 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3525 before calling discard_all_inferiors.
3527 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3529 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3530 (struct builtin_opencl_type): Remove.
3531 (builtin_opencl_type): Change return type to "struct type **".
3532 (lookup_opencl_vector_type): Update caller.
3533 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3534 (build_opencl_types): Install plain array of "struct type *"
3535 instead of "struct builtin_opencl_type".
3537 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3538 Ulrich Weigand <uweigand@de.ibm.com>
3540 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3541 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3542 (struct arm_linux_hwbp_cap): New type.
3543 (arm_linux_get_hwbp_cap): New function.
3544 (arm_linux_get_hw_breakpoint_count): Likewise.
3545 (arm_linux_get_hw_watchpoint_count): Likewise.
3546 (arm_linux_can_use_hw_breakpoint): Likewise.
3547 (arm_hwbp_type): New type.
3548 (arm_hwbp_control_t): Likewise.
3549 (struct arm_linux_hw_breakpoint): Likewise.
3550 (struct arm_linux_thread_points): Likewise.
3551 (arm_threads): New global variable.
3552 (arm_linux_find_breakpoints_by_tid): New function.
3553 (arm_hwbp_control_initialize): Likewise.
3554 (arm_hwbp_control_is_enabled): Likewise.
3555 (arm_hwbp_control_disable): Likewise.
3556 (arm_linux_hw_breakpoint_initialize): Likewise.
3557 (arm_linux_get_hwbp_type): Likewise.
3558 (arm_linux_hw_watchpoint_initialize): Likewise.
3559 (arm_linux_hw_breakpoint_equal): Likewise.
3560 (arm_linux_insert_hw_breakpoint1): Likewise.
3561 (arm_linux_remove_hw_breakpoint1): Likewise.
3562 (arm_linux_insert_hw_breakpoint): Likewise.
3563 (arm_linux_remove_hw_breakpoint): Likewise.
3564 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3565 (arm_linux_insert_watchpoint): Likewise.
3566 (arm_linux_remove_watchpoint): Likewise.
3567 (arm_linux_stopped_data_address): Likewise.
3568 (arm_linux_stopped_by_watchpoint): Likewise.
3569 (arm_linux_watchpoint_addr_within_range): Likewise.
3570 (arm_linux_new_thread): Likewise.
3571 (arm_linux_thread_exit): Likewise.
3572 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3573 related target callbacks. Register arm_linux_new_thread and
3574 arm_linux_thread_exit.
3575 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3576 * arm-tdep.c (arm_pc_is_thumb): Make global.
3577 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3579 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3581 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3582 per-frame locations while within a function epilogue.
3584 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3586 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3587 to GNU coding standards.
3589 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3591 Allow use of mingw native on Windows 95 OS.
3592 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3593 (ser_windows_close): Only call CancelIo if function exists.
3594 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3595 to check for existence of CancelIo function in kernel32 DLL.
3597 2011-02-21 Hui Zhu <teawater@gmail.com>
3599 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3600 * ax-gdb.c (gen_printf_expr_callback): New function.
3601 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3602 * ax-general.c (ax_memcpy): New function.
3603 (ax_print): Handle "printf".
3605 * ax.h (ax_memcpy): Forward declare.
3606 * common/ax.def (invalid2): Removed.
3607 (printf): New entry.
3608 * printcmd.c (printcmd.h): New include.
3609 (string_printf): New function.
3610 (ui_printf): Removed.
3611 (printf_command): Remove static. Call string_printf.
3612 (eval_command): Call string_printf.
3613 * printcmd.h: New file.
3614 * tracepoint.c (validate_actionline,
3615 encode_actions_1): handle printf_command.
3617 2011-02-19 Michael Snyder <msnyder@vmware.com>
3619 * reverse.c (delete_one_bookmark): Argument is now bookmark
3620 id rather than pointer to bookmark struct.
3621 (delete_bookmark_command): Use get_number_or_range.
3622 (goto_bookmark_command): Parse with get_number instead of strtoul.
3623 (bookmark_1): New function. Print info for one bookmark.
3624 (bookmarks_info): Use get_number_or_range and bookmark_1.
3626 2011-02-18 Michael Snyder <msnyder@vmware.com>
3628 * thread.c (info_threads_command): Re-implement using
3629 get_number_or_range.
3630 (thread_apply_command): Ditto.
3632 2011-02-18 Tom Tromey <tromey@redhat.com>
3634 * common/ax.def: New file.
3635 * ax.h (enum agent_op): Use ax.def.
3636 * ax-general.c (aop_map): Use ax.def.
3638 2011-02-18 Tom Tromey <tromey@redhat.com>
3640 * ax-general.c (aop_map): Add pick and rot.
3641 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3642 <DW_OP_rot>: Implement.
3643 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3645 * ax-general.c (ax_pick): New function.
3647 2011-02-18 Tom Tromey <tromey@redhat.com>
3649 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3651 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3652 Tom Tromey <tromey@redhat.com>
3654 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3655 make_symbol_overload_list_block with NULL BLOCK.
3656 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3658 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3660 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3661 * breakpoint.h (get_number_or_range): Declare.
3662 * printcmd.c (ALL_DISPLAYS): Declare.
3663 (delete_display): Reimplement taking a display pointer.
3664 (undisplay_command): Accept a range of displays to delete, using
3665 get_number_or_range.
3667 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3669 * c-valprint.c (c_val_print): Add embedded_offset to address
3670 for arrays of unspecified length.
3671 * p-valprint.c (pascal_val_print): Likewise.
3673 2011-02-18 Yao Qi <yao@codesourcery.com>
3675 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3676 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3677 (thumb_process_displaced_insn): New.
3678 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3679 call to arm_process_displaced_insn.
3680 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3682 2011-02-17 Tom Tromey <tromey@redhat.com>
3684 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3685 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3686 compile_dwarf_to_ax. No longer static. Call
3687 dwarf2_compile_cfa_to_ax.
3688 (locexpr_tracepoint_var_ref): Update.
3689 (loclist_tracepoint_var_ref): Update.
3690 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3691 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3692 argument; add 'gdbarch' and 'pc'.
3693 (dwarf2_compile_cfa_to_ax): New function.
3694 (dwarf2_frame_cache): Update.
3696 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3698 * ada-lang.c (ada_type_of_array): Fix the size of the array
3699 in the case of an unconstrained packed array.
3701 2011-02-17 Yao Qi <yao@codesourcery.com>
3703 * common/Makefile.in: Add more targets for make.
3705 2011-02-16 Tom Tromey <tromey@redhat.com>
3707 * dwarf2loc.c (unimplemented): Fix typo.
3709 2011-02-16 Tom Tromey <tromey@redhat.com>
3711 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3712 (compile_dwarf_to_ax) <default>: Use unimplemented.
3713 <DW_OP_deref>: Update.
3714 (disassemble_dwarf_expression): Update.
3715 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3716 (decode_locdesc): Update.
3717 * dwarf2expr.h (dwarf_stack_op_name): Update.
3719 2011-02-16 Tom Tromey <tromey@redhat.com>
3721 * ax.h (struct aop_map) <name>: Now const.
3723 2011-02-16 Tom Tromey <tromey@redhat.com>
3725 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3728 2011-02-16 Yao Qi <yao@codesourcery.com>
3730 * infrun.c (get_displaced_step_closure_by_addr): New.
3731 * inferior.h: Declare it.
3732 * arm-tdep.c: (arm_pc_is_thumb): Call
3733 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3736 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3737 Jan Kratochvil <jan.kratochvil@redhat.com>
3740 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3742 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3743 Jan Kratochvil <jan.kratochvil@redhat.com>
3745 * value.c (value_contents_copy_raw): Extend describing comment.
3746 Assert that the destination contents we're overwriting are wholly
3748 (value_contents_copy): Extend describing comment.
3750 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3751 Jan Kratochvil <jan.kratochvil@redhat.com>
3753 * value.c (value_available_contents_eq): Remove redundant local
3754 variables. Fix available contents comparision.
3755 * value.h (value_available_contents_eq): Extend describing
3758 2011-02-16 Yao Qi <yao@codesourcery.com>
3760 * thread.c (info_threads_command): Add missing i18n markup and remove
3763 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3765 * breakpoint.c (longjmp_names): New variable.
3766 (struct breakpoint_objfile_data): New type.
3767 (breakpoint_objfile_key): New variable.
3768 (msym_not_found): New variable.
3769 (msym_not_found_p): New predicate.
3770 (get_breakpoint_objfile_data): New function.
3771 (create_overlay_event_breakpoint): Check per-objfile cache for
3773 (create_longjmp_master_breakpoint): Likewise.
3774 (create_std_terminate_master_breakpoint): Likewise.
3775 (create_exception_master_breakpoint): Likewise.
3776 (_initialize_breakpoint): Register per-objfile data key.
3778 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3780 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3782 (create_longjmp_master_breakpoint): Loop over longjmp names.
3783 (create_std_terminate_master_breakpoint): Const-propagate parameter
3785 (update_breakpoints_after_exec): Adjust.
3786 (breakpoint_re_set): Adjust.
3788 2011-02-15 Michael Snyder <msnyder@vmware.com>
3790 * thread.c (info_threads_command): Process arg as thread id,
3791 or list of thread ids.
3792 (thread_find_command): New command.
3793 (_initialize_thread): Document argument for info threads.
3794 Document 'thread find' command.
3795 * NEWS: Document new command "thread find".
3797 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3799 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3800 * aclocal.m4: Regenerated with aclocal-1.11.1.
3801 * common/configure: Regenerate with autoconf-2.64.
3803 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3805 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3806 bool data type to a size of one byte.
3808 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3809 Jan Kratochvil <jan.kratochvil@redhat.com>
3811 * target.c (memory_xfer_live_readonly_partial): Document where to
3812 look for interface description.
3814 2011-02-15 Yao Qi <yao@codesourcery.com>
3817 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3818 order to store PC value on stack instead of text section.
3820 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3822 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3823 the EFP register set size.
3824 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3825 data from the VMX register.
3826 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3827 and write data from/to the VMX register.
3829 2011-02-14 Michael Snyder <msnyder@vmware.com>
3831 * command.h (enum command_class): New class 'no_set_class', for
3832 "show" commands without a corresponding "set" command.
3833 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3834 * copying.c (_initialize_copying): Ditto for "show copying" and
3836 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3838 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3839 which there is no corresponding "set" command (eg. "show copying").
3841 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3842 Jan Kratochvil <jan.kratochvil@redhat.com>
3844 * exec.c (section_table_available_memory): Change `len' parameter
3846 * exec.h (section_table_available_memory): Ditto.
3847 * value.h (read_value_memory): Rename the `offset' parameter to
3850 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3851 Jan Kratochvil <jan.kratochvil@redhat.com>
3853 * memrange.c (compare_mem_ranges): Mention sort order in
3855 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3856 * tracepoint.c (traceframe_available_memory): Extend comment to
3857 mention what happens to RESULT when the target does not support
3860 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3861 Jan Kratochvil <jan.kratochvil@redhat.com>
3863 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3866 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3868 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3869 No longer handle NULL values.
3871 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3873 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3874 * value.c: Include "exceptions.h".
3875 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3877 * cp-abi.c: Include gdb_assert.h.
3878 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3879 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3881 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3882 parameters. No longer returns -1 on error.
3883 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3885 * cp-valprint.c: Include exceptions.h.
3886 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3887 the baseclass_offset. Handle unavailable base classes. Use
3888 val_print_invalid_address.
3889 * p-valprint.c: Include exceptions.h.
3890 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3891 when fetching the baseclass_offset. No longer expect
3892 baseclass_offset returning -1. Handle unavailable base classes.
3893 Use val_print_invalid_address.
3894 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3895 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3896 `embedded_offset' and `val' parameters. Adjust.
3897 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3898 parameter, and change its type to gdb_byte pointer. Add
3899 `embedded_offset' and `val' parameters. Adjust. No longer expect
3900 baseclass_offset returning -1.
3901 (value_dynamic_cast): Use value_contents_for_printing rather than
3902 value_contents. Adjust.
3903 (search_struct_field): No longer expect baseclass_offset returning
3905 (search_struct_method): If reading memory from the target is
3906 necessary, wrap it in a new value to pass to baseclass_offset. No
3907 longer expect baseclass_offset returning -1.
3908 (find_method_list): No longer expect baseclass_offset returning
3909 -1. Use value_contents_for_printing rather than value_contents.
3910 * valprint.c (val_print_invalid_address): New function.
3911 * valprint.h (val_print_invalid_address): Declare.
3912 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3913 and `val' parameters. No longer expect baseclass_offset returning
3915 * gnu-v2-abi.c: Include "exceptions.h".
3916 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3917 parameters. Handle unavailable memory. Recurse through
3918 gnuv2_baseclass_offset directly, rather than through
3919 baseclass_offset. No longer returns -1 on not found, instead
3921 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3922 `val' parameters. Adjust.
3924 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3926 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3927 almost but not quite adjacent.
3929 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3931 * value.h (value_entirely_available): Declare.
3932 * value.c (value_entirely_available): New function.
3933 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3934 real type if the pointer is unavailable.
3936 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3938 * valops.c (value_repeat): Use read_value_memory instead of
3941 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3943 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3944 * value.c (value_contents_copy_raw, value_contents_copy): New
3946 (value_primitive_field): Use value_contents_copy_raw instead of
3948 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3950 (value_array, value_slice): Ditto.
3951 * valarith.c (value_subscripted_rvalue): Use
3952 value_contents_copy_raw instead of memcpy.
3954 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3956 <unavailable> references.
3958 * valops.c (get_value_at): Use value_from_contents_and_address,
3959 avoiding read_memory.
3961 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3963 * c-valprint.c (c_val_print): Print a string with unavailable
3964 contents as an array.
3966 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3968 * value.h (unpack_bits_as_long): Delete declaration.
3969 (unpack_value_bits_as_long): Declare.
3970 (unpack_value_field_as_long): Declare.
3971 (value_field_bitfield): Declare.
3972 * value.c (unpack_bits_as_long): Rename to...
3973 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3974 value parameters. Return the extracted result in a new output
3975 parameter. If the value contents are unavailable, return false,
3976 otherwise return true.
3977 (unpack_value_bits_as_long): New.
3978 (unpack_field_as_long): Rename to...
3979 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3980 Add embedded_offset and value parameters. Return the extracted
3981 result in a new output parameter. If the value contents are
3982 unavailable, return false, otherwise return true.
3983 (unpack_value_field_as_long): New.
3984 (unpack_field_as_long_1): New.
3985 (unpack_field_as_long): Reimplement as wrapper around
3986 unpack_value_field_as_long_1.
3987 (value_field_bitfield): New function.
3988 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3989 unpack_value_bits_as_long. Mark the value as unavailable, if it
3991 * jv-valprint.c (java_print_value_fields): Use
3992 value_field_bitfield.
3993 * p-valprint.c (pascal_object_print_value_fields): Use
3994 value_field_bitfield.
3995 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3997 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3999 * value.c (get_internalvar_integer): Also return the int value of
4000 TYPE_CODE_INT INTERNALVAR_VALUE values.
4001 (set_internalvar): Don't special case TYPE_CODE_INT.
4003 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4005 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4006 INTERNALVAR_POINTER.
4008 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4009 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4010 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4014 * value.h (value_available_contents_eq): Declare.
4015 * value.c (find_first_range_overlap): New function.
4016 (value_available_contents_eq): New function.
4017 * valprint.c (val_print_array_elements): Use
4018 value_available_contents_eq.
4019 * ada-valprint.c (val_print_packed_array_elements): Use
4020 value_available_contents_eq.
4021 * jv-valprint.c (java_value_print): Use
4022 value_available_contents_eq.
4024 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4026 * target.c (target_read_live_memory): New function.
4027 (memory_xfer_live_readonly_partial): New.
4028 (memory_xfer_partial): If reading from a traceframe, fallback to
4029 reading unavailable read-only memory from read-only regions of
4031 * tracepoint.c (disconnect_tracing): Adjust.
4032 (set_current_traceframe): New, factored out from
4033 set_traceframe_number.
4034 (set_traceframe_number): Reimplement to only change the traceframe
4035 number on the GDB side.
4036 (do_restore_current_traceframe_cleanup): Adjust.
4037 (make_cleanup_restore_traceframe_number): New.
4038 (cur_traceframe_number): New global.
4039 (tfile_open): Set cur_traceframe_number to no traceframe.
4040 (set_tfile_traceframe): New function.
4041 (tfile_trace_find): If looking up a traceframe using any method
4042 other than by number, make sure the current tfile traceframe
4043 matches gdb's current traceframe. Update the current tfile
4044 traceframe if the lookup succeeded.
4045 (tfile_fetch_registers, tfile_xfer_partial)
4046 (tfile_get_trace_state_variable_value): Make sure the remote
4047 traceframe matches gdb's current traceframe.
4048 * remote.c (remote_traceframe_number): New global.
4049 (remote_open_1): Set it to -1.
4050 (set_remote_traceframe): New function.
4051 (remote_fetch_registers, remote_store_registers)
4052 (remote_xfer_memory, remote_xfer_partial)
4053 (remote_get_trace_state_variable_value): Make sure the remote
4054 traceframe matches gdb's current traceframe.
4055 (remote_trace_find): If looking up a traceframe using any method
4056 other than by number, make sure the current remote traceframe
4057 matches gdb's current traceframe. Update the current remote
4058 traceframe if the lookup succeeded.
4059 * infrun.c (fetch_inferior_event): Adjust.
4060 * tracepoint.h (set_current_traceframe): Declare.
4061 (get_traceframe_number, set_traceframe_number): Add describing
4064 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4066 Mark pieces of values as unavailable if the corresponding memory
4069 * valops.c: Include tracepoint.h.
4070 (value_fetch_lazy): Use read_value_memory.
4071 (read_value_memory): New.
4072 * value.h (read_value_memory): Declare.
4073 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4074 * exec.c (section_table_available_memory): New function.
4075 * exec.h (section_table_available_memory): Declare.
4077 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4079 * Makefile.in (SFILES): Add memrange.c.
4080 (HFILES_NO_SRCDIR): Add memrange.h.
4081 (COMMON_OBS): Add memrange.o.
4082 * memrange.c: New file.
4083 * memrange.h: New file.
4084 * tracepoint.c: Include memrange.h.
4085 (struct mem_range): Delete.
4086 (mem_range_s): Delete.
4087 (traceframe_available_memory): New function.
4088 * tracepoint.h (traceframe_available_memory): Declare.
4090 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4092 * target.h (struct traceframe_info): Forward declare.
4093 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4094 (struct target_ops) <to_traceframe_info>: New field.
4095 (target_traceframe_info): New.
4096 * target.c (update_current_target): Inherit and default
4098 * remote.c (PACKET_qXfer_traceframe_info): New.
4099 (remote_protocol_features): Register qXfer:traceframe-info:read.
4100 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4101 (remote_traceframe_info): New.
4102 (init_remote_ops): Install it.
4103 (_initialize_remote): Install "set/show remote traceframe-info"
4105 * tracepoint.h (parse_traceframe_info): Declare.
4106 * tracepoint.c (struct mem_range): New.
4107 (mem_range_s): New typedef.
4108 (struct traceframe_info): New.
4109 (traceframe_info): New global.
4110 (free_traceframe_info): New function.
4111 (clear_traceframe_info): New function.
4112 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4114 (build_traceframe_info): New function.
4115 (tfile_traceframe_info): New function.
4116 (init_tfile_ops): Install tfile_traceframe_info.
4117 (traceframe_info_start_memory, free_result): New functions.
4118 (memory_attributes, traceframe_info_elements): New globals.
4119 (parse_traceframe_info, get_traceframe_info): New functions.
4120 * features/traceframe-info.dtd: New file.
4121 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4123 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4125 Base support for <unavailable> value contents.
4127 * value.h (value_bytes_available): Declare.
4128 (mark_value_bytes_unavailable): Declare.
4129 * value.c (struct range): New struct.
4130 (range_s): New typedef.
4131 (ranges_overlap): New function.
4132 (range_lessthan): New function.
4133 (ranges_contain_p): New function.
4134 (struct value) <unavailable>: New field.
4135 (value_bytes_available): New function.
4136 (mark_value_bytes_unavailable): New function.
4137 (require_not_optimized_out): Constify parameter.
4138 (require_available): New function.
4139 (value_contents_all, value_contents): Require all bytes be
4141 (value_free): Free `unavailable'.
4142 (value_copy): Copy `unavailable'.
4143 * valprint.h (val_print_unavailable): Declare.
4144 * valprint.c (valprint_check_validity): Rename `offset' parameter
4145 to `embedded_offset'. If printing a scalar, check whether the
4146 value chunk is available.
4147 (val_print_unavailable): New.
4148 (val_print_scalar_formatted): Check whether the value is
4150 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4151 pretty-printing unavailable values.
4153 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4156 * c-typeprint.c (c_type_print_args): Update the function comment. New
4157 variable param_type, initialize it. Remove const/volatile qualifiers
4158 for language_cplus and !show_artificial. Use param_type.
4160 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4162 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4163 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4164 * symtab.h (struct symtab) <next>: Comment extension.
4166 2011-02-12 Yao Qi <yao@codesourcery.com>
4168 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4170 2011-02-11 Yao Qi <yao@codesourcery.com>
4172 * common/Makefile.in: Add copyright header.
4174 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4176 * infrun.c (proceed): Move switching out and in of tfind mode from
4178 (fetch_inferior_event): ... to here.
4180 2011-02-11 Yao Qi <yao@codesourcery.com>
4182 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4184 * configure.ac: Add common to sub dir.
4185 * configure: Regenerate.
4187 2011-02-11 Yao Qi <yao@codesourcery.com>
4191 * common/Makefile.in: New.
4192 * common/configure.ac: New.
4193 * common/aclocal.m4: New.
4194 * common/configure: Generate.
4196 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4198 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4199 side of the parenthesis.
4202 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4203 * vec.h (VEC_block_remove): Fix comment.
4205 2011-02-08 Michael Snyder <msnyder@vmware.com>
4207 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4209 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4211 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4212 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4215 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4218 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4220 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4221 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4223 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4225 * dwarf2read.c (read_subroutine_type): Set special calling
4226 convention flag for functions compiled by IBM XL C for OpenCL.
4227 * ppc-sysv-tdep.c: Include "dwarf2.h"
4228 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4230 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4231 IBM OpenCL vector types calling convention.
4232 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4233 (ppc_sysv_abi_broken_return_value): Likewise.
4234 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4235 types calling convention.
4236 (ppc64_sysv_abi_return_value): Likewise.
4237 * spu-tdep.c: Include "dwarf2.h"
4238 (spu_return_value): Implement IBM OpenCL vector types calling
4241 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4243 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4244 correct ABI for AltiVec vector arguments.
4246 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4248 * valprint.c (val_print): Extend comment.
4249 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4250 interface explanation to val_print.
4251 (ada_val_print_array): Adjust comment to current interface.
4252 (print_field_values): Adjust comment to current interface.
4253 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4254 explanation to val_print.
4255 * f-valprint.c (f_val_print): Ditto.
4256 * jv-valprint.c (java_val_print): Ditto.
4257 * m2-valprint.c (m2_val_print): Ditto.
4258 * p-valprint.c (pascal_val_print): Ditto.
4260 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4262 * breakpoint.c (parse_breakpoint_sals): Fix description.
4264 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4265 Oguz Kayral <oguzkayral@gmail.com>
4267 * python/py-inferior.c (python_on_normal_stop): New function.
4268 (python_on_resume): New function.
4269 (python_inferior_exit): New function.
4270 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4271 inferior_exit observers.
4272 * python/py-evtregistry.c: New file.
4273 * python/py-threadevent.c : New file.
4274 * python/py-event.c: New file.
4275 * python/py-evts.c: New file.
4276 * python/py-continueevent.c: New file.
4277 * python/py-bpevent.c: New file.
4278 * python/py-signalevent.c: New file.
4279 * python/py-exetiedevent.c: New file.
4280 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4281 Move struct breakpoint_object from here...
4282 * python/python-internal.h: ... to here.
4283 * python/py-event.h: New file.
4284 * python/py-events.h: New file.
4285 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4286 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4287 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4288 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4289 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4290 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4291 Add build rules for all the above.
4293 2011-02-04 Tom Tromey <tromey@redhat.com>
4295 * dwarf2read.c (dwarf2_section_empty_p): New function.
4296 (dwarf2_read_section): Use dwarf2_section_empty_p.
4297 (dwarf2_section_size): New function.
4298 (dwarf2_get_section_info): Unconditionally read section.
4299 (dwarf2_read_index): Use dwarf2_section_empty_p.
4300 (partial_read_comp_unit_head): Use dwarf2_section_size.
4301 (dwarf2_symbol_mark_computed): Likewise.
4303 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4305 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4307 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4309 * mips-linux-tdep.c: Include xml-syscall.h.
4310 (mips_linux_get_syscall_number): New function.
4311 (mips_linux_init_abi): Add calls to
4312 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4313 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4314 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4315 * syscalls/mips-n32-linux.xml: New file.
4316 * syscalls/mips-n64-linux.xml: New file.
4317 * syscalls/mips-o32-linux.xml: New file.
4319 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4321 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4322 Complain about inverted range entries.
4323 (dwarf2_record_block_ranges): Likewise.
4325 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4328 * breakpoint.c (update_watchpoint): Fix name of the
4329 update_global_location_list function.
4330 (print_one_breakpoint): Fix typo.
4331 (_initialize_breakpoint): Remove extra space in hbreak help
4333 * breakpoint.h (struct bp_location) <length>: Fix field
4336 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4338 * regcache.c (registers_changed_ptid): Don't explictly always
4339 clear `current_regcache'. Only clear current_thread_ptid and
4340 current_thread_arch when PTID matches. Only reinit the frame
4341 cache if PTID matches the current inferior_ptid. Move alloca(0)
4343 (registers_changed): ... here.
4345 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4347 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4348 starts with __stack_chk_guard as stack guard symbol.
4350 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4352 * disasm.c (compare_lines): Handle the end of sequence markers
4353 within the line table to better support disassembling over
4354 compilation unit boundaries.
4356 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4358 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4359 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4360 implementation even if no symbols are available.
4361 (thumb_analyze_prologue): Update call to skip_prologue_function.
4362 (arm_analyze_prologue): Likewise.
4364 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4366 * arm-tdep.c: Include "observer.h".
4367 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4368 (arm_exidx_data_key): New static variable.
4369 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4370 (struct arm_exidx_data): Likewise.
4371 (arm_exidx_data_free): New function.
4372 (arm_compare_exidx_entries): Likewise.
4373 (arm_obj_section_from_vma): Likewise.
4374 (arm_exidx_new_objfile): Likewise.
4375 (arm_find_exidx_entry): Likewise.
4376 (arm_exidx_fill_cache): Likewise.
4377 (arm_exidx_unwind_sniffer): Likewise.
4378 (arm_exidx_unwind): New global variable.
4379 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4380 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4381 observer. Register arm_exidx_data_key as objfile data.
4383 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4385 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4386 due to accessing uninitialized variable. Fix indentation.
4388 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4390 * c-valprint.c (c_value_print): When doing virtual base pointer
4391 adjustment, create a new value with adjusted contents rather than
4392 changing the contents of the value being printed (and getting it
4395 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4397 * xml-support.c (xml_find_attribute): New.
4398 (xinclude_start_include): Use it.
4399 * xml-support.h (xml_find_attribute): Declare.
4400 * memory-map.c (memory_map_start_memory)
4401 (memory_map_start_property): Use xml_find_attribute.
4402 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4404 * remote.c (start_thread): Use xml_find_attribute.
4405 * solib-target.c (library_list_start_segment)
4406 (library_list_start_section, library_list_start_library)
4407 (library_list_start_list): Use xml_find_attribute.
4408 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4409 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4410 (tdesc_start_field): Use xml_find_attribute.
4412 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4414 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4415 (BUILD_OCL_VTYPES): Update.
4417 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4419 * configure.ac: Work around non-GNU sed limitation when computing
4420 python version number.
4421 * configure: Regenerate.
4423 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4425 Fix debug printing of TYPE_INSTANCE.
4426 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4427 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4429 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4431 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4432 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4433 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4434 * ada-operator.inc: Rename the file to ...
4435 * ada-operator.def: ... here, wrap all the entries by macro OP.
4436 * expprint.c (op_name_standard): Remove all the entries. Include
4437 "std-operator.def" instead.
4438 * expression.h (enum exp_opcode): Include "std-operator.def" and
4439 "ada-operator.def". Move all the entries ...
4440 * std-operator.def: ... here, wrap all the entries by macro OP.
4442 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4444 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4445 * breakpoint.c (remove_jit_event_breakpoints): New function.
4446 * jit.c (jit_descriptor_addr): Delete.
4447 (registering_code): Delete.
4448 (clear_int): Delete.
4449 (jit_inferior_data): New variable.
4450 (struct jit_inferior_data): New type.
4451 (get_jit_inferior_data): New function.
4452 (jit_inferior_data_cleanup): New function.
4453 (jit_read_descriptor): Adjust.
4454 (jit_register_code): Adjust.
4455 (jit_breakpoint_re_set_internal): New function; move code here ...
4456 (jit_inferior_init): ... from here.
4457 (jit_breakpoint_re_set): Adjust.
4458 (jit_reset_inferior_data_and_breakpoints): New function.
4459 (jit_inferior_created_observer): Adjust.
4460 (jit_inferior_exit_hook): Adjust.
4461 (jit_executable_changed_observer): New function.
4462 (jit_event_handler): Adjust.
4463 (_initialize_jit): Adjust.
4465 2011-01-31 Michael Snyder <msnyder@vmware.com>
4467 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4470 2011-01-31 Tom Tromey <tromey@redhat.com>
4473 * python/python.c (execute_gdb_command): Call
4474 prevent_dont_repeat.
4475 * top.c (suppress_dont_repeat): New global.
4476 (dont_repeat): Use it.
4477 (prevent_dont_repeat): New function.
4478 * command.h (prevent_dont_repeat): Declare.
4480 2011-01-31 Tom Tromey <tromey@redhat.com>
4482 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4483 * python/py-breakpoint.c (bppy_set_silent): Use
4484 breakpoint_set_silent.
4485 (bppy_set_thread): Use breakpoint_set_thread.
4486 (bppy_set_task): Use breakpoint_set_task.
4487 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4488 (breakpoint_set_task): Declare.
4489 (make_breakpoint_silent): Remove.
4490 * breakpoint.c (breakpoint_set_silent): New function.
4491 (breakpoint_set_thread): Likewise.
4492 (breakpoint_set_task): Likewise.
4493 (make_breakpoint_silent): Remove.
4495 2011-01-31 Tom Tromey <tromey@redhat.com>
4497 * breakpoint.h (user_breakpoint_p): Declare.
4498 * breakpoint.c (user_breakpoint_p): New function.
4499 (breakpoint_1): Use it.
4500 (save_breakpoints): Likewise.
4502 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4504 * configure.ac: Add handling of Python distribution on Windows.
4505 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4506 sysconfig variables are not defined, then do not use them.
4507 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4508 instead. On Windows, return all paths using forward-slashes
4509 rather than backslashes.
4511 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4513 * configure.ac: Remove fallback behavior for building
4514 against Python. Remove tweaking of Python include path.
4515 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4516 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4517 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4518 Always restore CPPFLAGS and LIBS after linking test.
4519 * configure: Regenerated.
4520 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4521 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4522 * python/python-internal.h: Adjust includes of Python .h files.
4524 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4526 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4529 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4531 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4534 2011-01-31 Yao Qi <yao@codesourcery.com>
4536 * arm-linux-nat.c: Update calls to regcache_register_status
4537 instead of regcache_valid_p.
4538 * aix-thread.c: Likewise.
4539 * i386gnu-nat.c: Likewise.
4541 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4544 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4545 touching TYPE_FIELD_ARTIFICIAL.
4547 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4549 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4552 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4554 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4555 selected, don't try iterating over the traceframe's blocks.
4556 (tfile_has_stack): If there's no traceframe selected, then there's
4558 (tfile_has_registers): If there's no traceframe selected, then
4559 there's no registers.
4561 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4563 * target.c (memory_xfer_partial): No need to restore shadows if we
4564 haven't read anything.
4566 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4568 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4569 and val_print_scalar_formatted.
4571 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4573 * tracepoint.c (tfile_read): New.
4574 (tfile_open): Use it.
4575 (tfile_get_traceframe_address): Use it.
4576 (tfile_trace_find): Use it.
4577 (walk_blocks_callback_func): New typedef.
4578 (match_blocktype): New function.
4579 (traceframe_walk_blocks): New function.
4580 (traceframe_find_block_type): New function.
4581 (tfile_fetch_registers, tfile_xfer_partial)
4582 (tfile_get_trace_state_variable_value): Use
4583 traceframe_find_block_type and tfile_read.
4585 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4587 * remote-mips.c: Add internationalization mark ups. Remove
4588 trailing \n from already marked up strings.
4590 2011-01-26 Tom Tromey <tromey@redhat.com>
4592 * python/py-prettyprint.c (print_string_repr): Clear
4593 'addressprint' option when calling val_print_string.
4594 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4595 option when calling val_print_string.
4597 2011-01-26 Tom Tromey <tromey@redhat.com>
4599 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4601 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4603 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4604 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4605 (gdb_py_long_as_ulongest): New defines.
4606 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4607 (gdb_py_int_as_long): Declare.
4608 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4609 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4610 (valpy_long): Add comment.
4611 * python/py-utils.c (get_addr_from_python): Use
4612 gdb_py_long_as_ulongest. Handle overflow properly.
4613 (gdb_py_object_from_longest): New function.
4614 (gdb_py_object_from_ulongest): Likewise.
4615 (gdb_py_int_as_long): Likewise.
4616 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4617 * python/py-symtab.c (salpy_get_pc): Use
4618 gdb_py_long_from_ulongest.
4619 (salpy_get_line): Use PyInt_FromLong.
4620 * python/py-param.c (set_parameter_value): Use
4622 * python/py-lazy-string.c (stpy_get_address): Use
4623 gdb_py_long_from_ulongest.
4624 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4625 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4626 * python/py-breakpoint.c (bppy_set_thread): Use
4628 (bppy_set_task): Likewise.
4629 (bppy_set_ignore_count): Likewise.
4630 (bppy_set_hit_count): Likewise.
4631 * python/py-block.c (blpy_get_start): Use
4632 gdb_py_object_from_ulongest.
4633 (blpy_get_end): Likewise.
4634 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4636 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4639 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4640 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4641 equality test for objfile, initialize addr_low if needed.
4643 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4645 * tui/tui-regs.c (tui_register_format): Remove dead code.
4647 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4649 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4650 instead of print_scalar_formatted.
4651 (print_scalar_formatted): Don't handle 's' format strings here,
4652 and add an assertion that we never see such format here.
4653 * valprint.h (val_print_scalar_formatted): Declare.
4654 * valprint.c (val_print_scalar_formatted): New.
4655 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4656 instead of print_scalar_formatted.
4657 * jv-valprint.c (java_val_print): Ditto.
4658 * p-valprint.c (pascal_val_print): Ditto.
4659 * ada-valprint.c (ada_val_print_1): Ditto.
4660 * f-valprint.c (f_val_print): Ditto.
4661 * infcmd.c (registers_info): Ditto.
4662 * m2-valprint.c (m2_val_print): Ditto.
4664 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4666 * m2-valprint.c (print_unbounded_array): Pass
4667 value_contents_for_printing rather than value_contents, to
4668 m2_print_array_contents. Also pass in the value.
4670 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4672 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4673 (save_gdb_index_command): Switch to .gdb_index version 4.
4675 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4677 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4678 than frame_register, and always pass a valid value to val_print.
4680 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4682 Centralize printing "<optimized out>".
4684 * valprint.h (val_print_optimized_out): Declare.
4685 * cp-valprint.c (cp_print_value_fields): Use
4686 val_print_optimized_out.
4687 * jv-valprint.c (java_print_value_fields): Ditto.
4688 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4689 * printcmd.c (print_formatted): Ditto.
4690 * valprint.c (valprint_check_validity): Ditto.
4691 (value_check_printable): Ditto.
4692 (val_print_optimized_out): New.
4694 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4696 * infcmd.c (default_print_registers_info): Allocate values so to
4697 never pass a NULL value to val_print.
4699 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4701 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4702 boolean. Make sure to always pass a value that matches the
4703 contents buffer to callees. Preserve `address' for following
4705 * value.c (value_contents_for_printing_const): New.
4706 (value_address): Constify value argument.
4707 * value.h (value_contents_for_printing_const): Declare.
4708 (value_address): Constify value argument.
4710 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4712 * regcache.c (struct regcache_descr): Rename
4713 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4714 and sizeof_cooked_register_valid_p to
4715 sizeof_cooked_register_status.
4716 (init_regcache_descr): Adjust.
4717 (struct regcache): Rename register_valid_p field to
4719 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4720 (do_cooked_read): Adjust.
4721 (regcache_valid_p): Rename to ...
4722 (regcache_register_status): ... this. Adjust.
4723 (regcache_invalidate): Adjust.
4724 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4726 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4727 as unavailable, not valid.
4728 (regcache_dump): Adjust.
4729 * regcache.h (enum register_status): New.
4730 (regcache_register_status): Declare.
4731 (regcache_invalidate): Delete declaration.
4732 * corelow.c (get_core_registers): Adjust.
4733 * tracepoint.c (tfile_fetch_registers): Adjust.
4734 * trad-frame.c (REG_VALUE): Rename to ...
4735 (TF_REG_VALUE): ... this.
4736 (REG_UNKNOWN): Rename to ...
4737 (TF_REG_UNKNOWN): ... this.
4738 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4739 * mi/mi-main.c (register_changed_p): Adjust.
4741 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4743 * regcache.c (struct regcache_descr): Remove outdated comment.
4744 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4746 (regcache_xmalloc): Rename to ...
4747 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4748 Allocate the regcache type accordingly.
4749 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4750 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4751 cooked registers, not raw.
4752 (regcache_dup_no_passthrough): Delete.
4753 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4754 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4755 mention obsolete write_register_bytes.
4756 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4758 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4760 Stop remote_read_bytes from handling partial reads itself.
4762 * remote-fileio.c: Include target.h.
4763 (remote_fileio_write_bytes): Delete.
4764 (remote_fileio_func_open, remote_fileio_func_write)
4765 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4767 (remote_fileio_func_stat): Use target_read_memory and
4768 target_write_memory.
4769 (remote_fileio_func_gettimeofday): Use target_write_memory.
4770 (remote_fileio_func_system): Use target_read_memory.
4771 * remote.c (remote_write_bytes): Make it static.
4772 (remote_read_bytes): Don't handle partial reads here.
4773 * remote.h (remote_read_bytes): Delete declaration.
4775 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4777 Simplify XML parsing a bit.
4779 * xml-support.h (gdb_xml_parse_quick): Declare.
4780 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4781 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4783 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4784 gdb_xml_create_parser_and_cleanup_1.
4785 (gdb_xml_parse_quick): New.
4786 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4787 * osdata.c (osdata_parse): Ditto.
4788 * remote.c (remote_threads_info): Ditto.
4789 * solib-target.c (solib_target_parse_libraries): Ditto.
4790 * xml-syscall.c (syscall_parse_xml): Ditto.
4791 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4793 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4795 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4796 with remote-mips.o added to gdb_target_obs.
4797 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4799 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4801 * ada-valprint.c (val_print_packed_array_elements): Pass the
4802 correct struct value to val_print.
4803 (ada_val_print_1): Ditto.
4805 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4807 Don't lose embedded_offset in printing routines throughout.
4809 * valprint.h (val_print_array_elements): Change prototype.
4810 * valprint.c (val_print_array_elements): Add `embedded_offset'
4811 parameter, and adjust to pass it down to val_print, while passing
4812 `valaddr' or `address' unmodified. Take embedded_offset into
4813 account when checking repetitions.
4814 * c-valprint.c (c_val_print): Pass embedded_offset to
4815 val_print_array_elements instead of adjusting `valaddr' and
4817 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4818 embedded_offset to val_print_array_elements instead of adjusting
4820 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4821 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4822 val_print_array_elements and pascal_object_print_value_fields
4823 instead of adjusting `valaddr'.
4824 (pascal_object_print_value_fields): Add `offset' parameter, and
4826 (pascal_object_print_value): Add `offset' parameter, and adjust to
4828 (pascal_object_print_static_field): Use
4829 value_contents_for_printing/value_embedded_offset, rather than
4831 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4832 parameter, and adjust to use it. Use
4833 value_contents_for_printing/value_embedded_offset, rather than
4835 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4836 (ada_val_print_array): Add `offset' parameter, and adjust to use
4838 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4839 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4840 Instead work with offsets. Use
4841 value_contents_for_printing/value_embedded_offset, rather than
4842 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4843 and use value_from_pointer to extract a target pointer, rather
4844 than value_from_longest.
4845 (print_variant_part): Add `offset' parameter. Replace
4846 `outer_valaddr' parameter by a new `outer_offset' parameter.
4847 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4848 (ada_value_print): Use
4849 value_contents_for_printing/value_embedded_offset, rather than
4851 (print_record): Add `offset' parameter, and adjust to pass it
4853 (print_field_values): Add `offset' parameter. Replace
4854 `outer_valaddr' parameter by a new `outer_offset' parameter.
4855 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4856 Use value_contents_for_printing/value_embedded_offset, rather than
4858 * d-valprint.c (dynamic_array_type): Use
4859 value_contents_for_printing/value_embedded_offset, rather than
4861 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4862 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4863 (java_print_value_fields): Take `offset' into account. Don't
4864 re-adjust `valaddr'. Instead pass down adjusted offsets.
4865 (java_val_print): Take `embedded_offset' into account. Pass it to
4866 java_print_value_fields.
4867 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4868 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4869 down adjusted offsets.
4870 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4871 (f_val_print): Take `embedded_offset' into account.
4873 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4875 * inflow.c: Include "gdbcmd.h".
4876 (interactive_mode): New static global, moved here from top.c.
4877 (show_interactive_mode): New function, moved here from top.c.
4878 use gdb_has_a_terminal instead of input_from_terminal_p to
4879 determine the current mode.
4880 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4882 (_initialize_inflow): Add the "set/show interactive-mode"
4883 commands. Moved here from top.c, after having adjusted slightly
4885 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4887 (input_from_terminal_p): Remove handling of "interactive-mode"
4888 setting, moved to infow.c.
4889 (init_main): Remove creation of the "set/show interactive-mode"
4890 commands, moved to inflow.c.
4892 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4894 * NEWS: Add entry for native ia64-hpux support.
4896 2011-01-19 Tom Tromey <tromey@redhat.com>
4899 * thread.c (free_thread): Free 'name'.
4900 (print_thread_info): Emit thread name. Change CLI output.
4901 (thread_name_command): New function.
4902 (do_captured_thread_select): Emit newline.
4903 (_initialize_thread): Register 'thread name' command.
4904 * target.h (struct target_ops) <to_thread_name>: New field.
4905 (target_thread_name): New macro.
4906 * target.c (update_current_target): Handle to_thread_name.
4907 * python/py-infthread.c (thpy_get_name): New function.
4908 (thpy_set_name): Likewise.
4909 (thread_object_getset): Add "name".
4910 * linux-nat.c (linux_nat_thread_name): New function.
4911 (linux_nat_add_target): Set to_thread_name.
4912 * gdbthread.h (struct thread_info) <name>: New field.
4914 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4916 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4917 (ada_val_print_1): Likewise.
4919 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4921 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4922 upper limit address is not greater than the function end address
4923 when the upper limit could not be computed using the debugging
4926 2011-01-17 Tom Tromey <tromey@redhat.com>
4928 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4930 * utils.c: Include gdb_regex.h.
4931 (do_regfree_cleanup): New function.
4932 (make_regfree_cleanup): Likewise.
4933 (get_regcomp_error): Likewise.
4934 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4936 2011-01-17 Tom Tromey <tromey@redhat.com>
4938 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4941 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4943 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4944 for internal variables.
4945 (last_was_structop): New static variable.
4946 (COMPLETE): New token.
4947 (field_exp): New rule to group all '.' suffix handling.
4948 Add mark_struct_expression calls when approriate to be able
4949 to correctly find fields for completion.
4950 (yylex): Adapt to handle field completion and set INTVAR when
4953 2011-01-14 Yao Qi <yao@codesourcery.com>
4955 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4956 save_reggroup, restore_reggroup and all_reggroup.
4958 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4960 * ada-valprint. (ada_printchar): Use the correct type length
4961 in call to ada_emit_char.
4962 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4964 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4966 * solib-som.h (hpux_major_release): Declare variable here.
4967 * solib-som.c: Remove <sys/utsname.h> header.
4968 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4969 (hpux_major_release): Make global, change default value to
4970 DEFAULT_HPUX_MAJOR_RELEASE.
4971 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4972 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4973 Add "solib-som.h" header.
4974 (set_hpux_major_release): New function.
4975 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4977 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4979 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4981 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4983 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4984 new-line at end of warning message.
4985 (ia64_hpux_store_register): Remove trailing new-line at end of
4987 * ia64-hpux-tdep.c: Rephrase comment.
4988 * solib-ia64-hpux.c (struct dld_info): Change type of field
4989 dld_flags from "long long" to ULONGEST.
4991 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4993 * target.h (deprecated_child_ops): Delete declaration.
4994 * target.c (deprecated_child_ops): Delete definition.
4996 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4998 * Makefile.in (hpux-thread.o): Delete rule.
4999 * configure.ac: Don't check for HPUX DCE threads support.
5000 * configure, config.in: Regenerate.
5001 * hppa-hpux-nat.c (child_suppress_run): Delete.
5002 (hppa_hpux_child_can_run): Delete.
5003 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5004 * hpux-thread.c: Delete.
5006 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5008 * hpux-thread.c (hpux_pid_to_str): Delete.
5010 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5012 * ada-valprint.c (ada_emit_char): Remove strange code.
5013 Check that c is <= UCHAR_MAX before passing it to isascii.
5014 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5016 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5018 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5019 to the case where instream is stdin.
5021 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5023 * ia64-tdep.h (struct regcache): Forward declare.
5024 (struct ia64_infcall_ops): New struct type.
5025 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5027 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5028 Renames ia64_find_global_pointer.
5029 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5030 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5031 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5033 (ia64_infcall_ops): New static global constant.
5034 (ia64_gdbarch_init): Set tdep->infcall_ops.
5035 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5036 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5037 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5038 (ia64_hpux_dummy_code): New static global constant.
5039 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5040 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5041 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5043 (ia64_hpux_infcall_ops): New static global constant.
5044 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5045 for inferior function calls to work properly on ia64-hpux.
5047 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5049 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5050 * ia64-tdep.h (struct frame_info): forward declaration.
5051 (struct gdbarch_tdep): Add field size_of_register_frame.
5052 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5053 to determine the size of the register frame.
5054 (ia64_size_of_register_frame): New function.
5055 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5056 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5057 (IA64_HPUX_UREG_REASON): New macro.
5058 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5060 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5061 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5062 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5065 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5067 Add support for ia64-hpux.
5068 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5069 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5071 * configure.host: Add handling for ia64-hpux hosts. Add associated
5073 * configure.tgt: Add handling for ia64-hpux targets.
5074 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5075 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5076 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5078 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5080 [ttrace] Compute thread list immediately after attach.
5081 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5083 (inf_ttrace_attach): Use it.
5085 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5087 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5088 if we could not determine the frame's function address. Instead,
5089 use the frame's PC, and then continue.
5091 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5093 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5094 not already defined.
5096 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5098 * ia64-tdep.c (ia64_struct_type_p): New function.
5099 (ia64_extract_return_value): Handle integral values that are
5100 less than 8 bytes long.
5101 (ia64_push_dummy_call): Likewise.
5103 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5105 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5106 floatformat_ia64_ext.
5107 (floatformat_ia64_ext_big): New static const.
5108 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5110 2011-01-12 Tom Tromey <tromey@redhat.com>
5112 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5114 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5115 (mi_cmd_thread_list_ids): Likewise.
5116 (mi_cmd_data_list_changed_registers): Likewise.
5117 (mi_cmd_data_list_register_values): Likewise.
5118 (mi_cmd_data_write_register_values): Likewise.
5119 (mi_cmd_data_evaluate_expression): Likewise.
5120 (mi_cmd_data_read_memory): Likewise.
5121 (mi_cmd_data_read_memory_bytes): Likewise.
5122 (mi_cmd_data_write_memory): Likewise.
5123 (mi_cmd_enable_timings): Likewise.
5124 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5125 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5126 (mi_cmd_var_delete): Likewise.
5127 (mi_cmd_var_set_format): Likewise.
5128 (mi_cmd_var_show_format): Likewise.
5129 (mi_cmd_var_info_num_children): Likewise.
5130 (mi_cmd_var_list_children): Likewise.
5131 (mi_cmd_var_info_type): Likewise.
5132 (mi_cmd_var_info_expression): Likewise.
5133 (mi_cmd_var_show_attributes): Likewise.
5134 (mi_cmd_var_assign): Likewise.
5135 (mi_cmd_var_update): Likewise.
5136 (mi_cmd_enable_pretty_printing): Likewise.
5137 (mi_cmd_var_set_update_range): Likewise.
5138 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5140 (mi_cmd_target_file_put): Likewise.
5141 (mi_cmd_target_file_delete): Likewise.
5142 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5144 (mi_cmd_stack_info_depth): Likewise.
5145 (mi_cmd_stack_list_locals): Likewise.
5146 (mi_cmd_stack_list_args): Likewise.
5147 (mi_cmd_stack_select_frame): Likewise.
5148 (mi_cmd_stack_select_frame): Likewise.
5149 (mi_cmd_stack_info_frame): Likewise.
5150 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5152 (mi_cmd_file_list_exec_source_files): Likewise.
5153 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5154 (mi_cmd_env_cd): Likewise.
5155 (mi_cmd_env_path): Likewise.
5156 (mi_cmd_env_dir): Likewise.
5157 (mi_cmd_inferior_tty_show): Likewise.
5158 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5159 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5160 (mi_cmd_break_watch): Likewise.
5162 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5164 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5165 (ppc_linux_insert_hw_breakpoint): Likewise.
5166 (ppc_linux_remove_hw_breakpoint): Likewise.
5167 (ppc_linux_insert_watchpoint): Likewise.
5169 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5170 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 PR fortran/11104 and DWARF unbound arrays detection.
5173 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5174 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5175 unspecified upper bound.
5176 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5177 variables array_size_array, tmp_type and offset_item. New variable
5178 array. Remove call to f77_get_upperbound. New variables array_type
5179 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5180 the final call to deprecated_set_value_type.
5182 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5184 Make value allocations more lazy.
5185 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5186 instead of allocate_value and set_value_lazy when possible.
5187 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5188 instead of allocate_value and set_value_lazy.
5189 * findvar.c (value_of_register_lazy): Likewise.
5190 (read_var_value): Remove V preallocation, call just check_typedef in
5191 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5192 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5193 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5194 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5195 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5196 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5197 the end, remove set_value_lazy there.
5198 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5199 instead of allocate_value and set_value_lazy when possible.
5200 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5201 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5202 of allocate_value and set_value_lazy.
5203 (value_from_contents_and_address): Use allocate_value_lazy instead of
5204 allocate_value and set_value_lazy when possible.
5206 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5208 * disasm.c (dump_insns): Support dumping opcodes for MI.
5209 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5210 dumping of instruction opcodes.
5212 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5214 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5217 2011-01-11 Tom Tromey <tromey@redhat.com>
5219 * thread.c (do_captured_thread_select): Emit newline before
5222 2011-01-11 Michael Snyder <msnyder@vmware.com>
5224 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5225 * score-tdep.c: Ditto.
5226 * score-tdep.h: Ditto.
5227 * ser-base.c: Ditto.
5228 * ser-go32.c: Ditto.
5231 * ser-mingw.c: Ditto.
5232 * ser-pipe.c: Ditto.
5234 * ser-unix.c: Ditto.
5235 * sh64-tdep.c: Ditto.
5236 * shnbsd-nat.c: Ditto.
5240 * solib-darwin.c: Ditto.
5241 * solib-frv.c: Ditto.
5243 * solib-irix.c: Ditto.
5244 * solib-osf.c: Ditto.
5245 * solib-pa64.c: Ditto.
5246 * solib-som.c: Ditto.
5247 * solib-spu.c: Ditto.
5248 * solib-sunos.c: Ditto.
5249 * solib-svr4.c: Ditto.
5251 * sol-thread.c: Ditto.
5255 * sparc64-linux-tdep.c: Ditto.
5256 * sparc64-tdep.c: Ditto.
5257 * sparc-linux-nat.c: Ditto.
5258 * sparc-linux-tdep.c: Ditto.
5259 * sparc-sol2-nat.c: Ditto.
5260 * sparc-sol2-tdep.c: Ditto.
5261 * sparc-tdep.c: Ditto.
5262 * sparc-tdep.h: Ditto.
5263 * spu-tdep.c: Ditto.
5264 * stabsread.c: Ditto.
5265 * stabsread.h: Ditto.
5273 * target-descriptions.c: Ditto.
5274 * target-descriptions.h: Ditto.
5276 * target-memory.c: Ditto.
5277 * terminal.h: Ditto.
5280 * tracepoint.c: Ditto.
5281 * tracepoint.h: Ditto.
5282 * trad-frame.h: Ditto.
5283 * typeprint.c: Ditto.
5285 2011-01-11 Michael Snyder <msnyder@vmware.com>
5287 * ui-file.c: Comment cleanup, mostly periods and spaces.
5292 * v850-tdep.c: Ditto.
5293 * valarith.c: Ditto.
5295 * valprint.c: Ditto.
5296 * valprint.h: Ditto.
5301 * vax-tdep.c: Ditto.
5305 * windows-nat.c: Ditto.
5306 * windows-tdep.c: Ditto.
5307 * xcoffread.c: Ditto.
5308 * xcoffsolib.c: Ditto.
5309 * xml-support.c: Ditto.
5310 * xstormy16-tdep.c: Ditto.
5311 * xtensa-tdep.c: Ditto.
5312 * xtensa-tdep.h: Ditto.
5314 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5316 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5317 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5319 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5320 Thiago Jung Bauermann <bauerman@br.ibm.com>
5322 Implement support for PowerPC BookE ranged watchpoints.
5324 (struct breakpoint_ops) <resources_needed>: New method.
5325 Initialize to NULL in all existing breakpoint_ops instances.
5326 (struct breakpoint) <exact>: New field.
5327 (target_exact_watchpoints): Declare external global.
5328 * breakpoint.c (target_exact_watchpoints): New global flag.
5329 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5330 b->enable_state to bp_enabled before calling
5331 hw_watchpoint_used_count.
5332 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5333 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5335 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5336 if the watchpoint is exact.
5337 (resources_needed_watchpoint): New function.
5338 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5339 (watch_command_1): Set b->exact if the user asked for an exact
5340 watchpoint and one can be set.
5341 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5342 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5343 the user asks for an exact watchpoint and one can be set. Return
5344 number of needed debug registers to watch the expression.
5345 * gdbtypes.c (is_scalar_type): New function, based on
5346 valprint.c:scalar_type_p.
5347 (is_scalar_type_recursive): New function.
5348 * gdbtypes.h (is_scalar_type_recursive): Declare.
5349 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5350 handle regions when ranged watchpoints are available.
5351 (create_watchpoint_request): New function.
5352 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5353 create_watchpoint_request.
5354 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5355 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5356 `set powerpc' and `show powerpc' commands.
5357 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5358 Mention documentation comment in the target macro.
5359 (target_region_ok_for_hw_watchpoint): Document return value.
5361 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5363 * breakpoint.c (update_watchpoint): Decide on using a software or
5364 hardware watchpoint after the bp_locations are created.
5366 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5368 Convert hardware watchpoints to use breakpoint_ops.
5369 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5370 <insert_location>: ... this. Return int instead of void.
5371 Accept pointer to struct bp_location instead of pointer to
5372 struct breakpoint. Adapt all implementations.
5373 (breakpoint_ops) <remove>: Rename to...
5374 <remove_location>: ... this. Accept pointer to struct bp_location
5375 instead of pointer to struct breakpoint. Adapt all implementations.
5376 * breakpoint.c (insert_catchpoint): Delete function.
5377 (insert_bp_location): Call the watchpoint or catchpoint's
5378 breakpoint_ops.insert method.
5379 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5380 breakpoint_ops.remove method.
5381 (insert_watchpoint, remove_watchpoint): New functions.
5382 (watchpoint_breakpoint_ops): New structure.
5383 (watch_command_1): Initialize the OPS field.
5384 * inf-child.c (inf_child_insert_fork_catchpoint)
5385 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5386 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5387 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5389 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5390 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5391 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5392 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5393 * target.c (update_current_target): Change default implementation of
5394 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5395 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5396 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5397 to_set_syscall_catchpoint to return_one.
5398 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5399 (debug_to_insert_exec_catchpoint): Report return value.
5400 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5401 (to_insert_exec_catchpoint): Change declaration to return int instead
5404 2011-01-11 Michael Snyder <msnyder@vmware.com>
5406 * arm-tdep.c: Internationalization.
5409 * fork-child.c: Ditto.
5410 * nto-procfs.c: Ditto.
5411 * ppc-sysv-tdep.c: Ditto.
5413 * remote-mips.c: Ditto.
5415 * rs6000-nat.c: Ditto.
5416 * rs6000-tdep.c: Ditto.
5420 * xml-support.c: Ditto.
5421 * mi/mi-cmd-break.c: Ditto.
5422 * mi/mi-cmd-var.c: Ditto.
5423 * mi/mi-interp.c: Ditto.
5424 * mi/mi-main.c: Ditto.
5426 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5428 * remote-sim.c (gdbsim_store_register): Update API to
5429 sim_store_register to check more error conditions.
5431 2011-01-10 Michael Snyder <msnyder@vmware.com>
5433 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5434 * nto-tdep.c: Ditto.
5435 * nto-tdep.h: Ditto.
5436 * objc-exp.y: Ditto.
5437 * objc-lang.c: Ditto.
5438 * objfiles.c: Ditto.
5439 * objfiles.h: Ditto.
5440 * observer.c: Ditto.
5441 * opencl-lang.c: Ditto.
5444 * parser-defs.h: Ditto.
5447 * posix-hdep.c: Ditto.
5448 * ppcbug-rom.c: Ditto.
5449 * ppc-linux-nat.c: Ditto.
5450 * ppc-linux-tdep.c: Ditto.
5451 * ppc-linux-tdep.h: Ditto.
5452 * ppcnbsd-tdep.c: Ditto.
5453 * ppcobsd-tdep.c: Ditto.
5454 * ppcobsd-tdep.h: Ditto.
5455 * ppc-sysv-tdep.c: Ditto.
5456 * ppc-tdep.h: Ditto.
5457 * printcmd.c: Ditto.
5458 * proc-abi.c: Ditto.
5459 * proc-flags.c: Ditto.
5461 * proc-utils.h: Ditto.
5462 * progspace.h: Ditto.
5463 * prologue-value.c: Ditto.
5464 * prologue-value.h: Ditto.
5465 * psympriv.h: Ditto.
5467 * p-typeprint.c: Ditto.
5468 * p-valprint.c: Ditto.
5469 * ravenscar-sparc-thread.c: Ditto.
5470 * ravenscar-thread.c: Ditto.
5471 * ravenscar-thread.h: Ditto.
5473 * regcache.c: Ditto.
5474 * regcache.h: Ditto.
5476 * remote-fileio.c: Ditto.
5477 * remote-fileio.h: Ditto.
5479 * remote-m32r-sdi.c: Ditto.
5480 * remote-mips.c: Ditto.
5481 * remote-sim.c: Ditto.
5482 * rs6000-aix-tdep.c: Ditto.
5483 * rs6000-nat.c: Ditto.
5484 * rs6000-tdep.c: Ditto.
5486 2011-01-10 Michael Snyder <msnyder@vmware.com>
5488 * charset.c (validate): Internationalization.
5489 * coffread.c (read_one_sym): Ditto.
5490 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5491 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5492 * inflow.c (new_tty): Ditto.
5493 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5494 * m32c-tdep.c (m32c_return_value): Ditto.
5495 * mep-tdep.c (mep_store_return_value): Ditto.
5496 * score-tdep.c (score7_fetch_insn): Ditto.
5497 * ser-mingw.c (pipe_windows_open): Ditto.
5498 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5499 * spu-tdep.c (spu_register_type): Ditto.
5500 * tracepoint.c (trace_find_command): Ditto.
5501 * valarith.c (value_pos): Ditto.
5503 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5505 * ada-valprint.c (printstr): Minor comment reformatting.
5507 2011-01-08 Michael Snyder <msnyder@vmware.com>
5509 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5512 2011-01-08 Michael Snyder <msnyder@vmware.com>
5514 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5515 * hppa-hpux-tdep.c: Ditto.
5516 * hppa-linux-nat.c: Ditto.
5517 * hppa-linux-tdep.c: Ditto.
5518 * hppanbsd-tdep.c: Ditto.
5519 * hppa-tdep.c: Ditto.
5520 * hppa-tdep.h: Ditto.
5521 * hpux-thread.c: Ditto.
5522 * i386-cygwin-tdep.c: Ditto.
5523 * i386-darwin-nat.c: Ditto.
5524 * i386gnu-nat.c: Ditto.
5525 * i386-linux-nat.c: Ditto.
5526 * i386-linux-tdep.c: Ditto.
5527 * i386-nat.c: Ditto.
5528 * i386-nat.h: Ditto.
5529 * i386nbsd-tdep.c: Ditto.
5530 * i386-sol2-nat.c: Ditto.
5531 * i386-stub.c: Ditto.
5532 * i386-tdep.c: Ditto.
5533 * i386-tdep.h: Ditto.
5534 * i387-tdep.c: Ditto.
5535 * ia64-linux-nat.c: Ditto.
5536 * ia64-linux-tdep.c: Ditto.
5537 * ia64-tdep.c: Ditto.
5541 * inferior.c: Ditto.
5542 * inferior.h: Ditto.
5548 * iq2000-tdep.c: Ditto.
5549 * irix5-nat.c: Ditto.
5555 * jv-typeprint.c: Ditto.
5556 * jv-valprint.c: Ditto.
5557 * language.c: Ditto.
5558 * language.h: Ditto.
5559 * linespec.c: Ditto.
5560 * linux-fork.c: Ditto.
5561 * linux-nat.c: Ditto.
5562 * linux-thread-db.c: Ditto.
5563 * lm32-tdep.c: Ditto.
5565 2011-01-08 Michael Snyder <msnyder@vmware.com>
5567 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5569 * m2-typeprint.c: Ditto.
5570 * m2-valprint.c: Ditto.
5571 * m32c-tdep.c: Ditto.
5572 * m32r-linux-nat.c: Ditto.
5573 * m32r-rom.c: Ditto.
5574 * m32r-tdep.c: Ditto.
5575 * m32r-tdep.h: Ditto.
5576 * m68hc11-tdep.c: Ditto.
5577 * m58klinux-nat.c: Ditto.
5578 * m68k-tdep.c: Ditto.
5579 * m88k-tdep.c: Ditto.
5580 * m88k-tdep.h: Ditto.
5581 * machoread.c: Ditto.
5582 * macrocmd.c: Ditto.
5583 * macroexp.c: Ditto.
5584 * macrotab.c: Ditto.
5587 * mdebugread.c: Ditto.
5588 * mdebugread.h: Ditto.
5591 * memory-map.h: Ditto.
5592 * mep-tdep.c: Ditto.
5593 * microblaze-rom.c: Ditto.
5594 * microblaze-tdep.c: Ditto.
5596 * mips-irix-tdep.c: Ditto.
5597 * mips-linux-nat.c: Ditto.
5598 * mips-linux-tdep.c: Ditto.
5599 * mips-linux-tdep.h: Ditto.
5600 * mipsnbsd-nat.c: Ditto.
5601 * mipsnbsd-tdep.c: Ditto.
5602 * mipsread.c: Ditto.
5603 * mips-tdep.c: Ditto.
5604 * mips-tdep.h: Ditto.
5605 * mn10300-linux-tdep.c: Ditto.
5606 * mn10300-tdep.c: Ditto.
5607 * mn10300-tdep.h: Ditto.
5610 * moxie-tdep.c: Ditto.
5611 * moxie-tdep.h: Ditto.
5614 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5616 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5618 2011-01-08 Robert Millan <rmh@gnu.org>
5620 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5622 2011-01-07 Michael Snyder <msnyder@vmware.com>
5624 * charset.c (_initialize_charset): Fix typo in string.
5626 2011-01-07 Michael Snyder <msnyder@vmware.com>
5628 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5630 * tui/tui-layout.c (tui_set_layout_for_display_command):
5631 Split line so that operator goes to beginning of line.
5632 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5633 assignment out of if statement.
5635 2011-01-07 Michael Snyder <msnyder@vmware.com>
5637 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5638 * ada-lang.h: Ditto.
5639 * ada-tasks.c: Ditto.
5640 * ada-valprint.c: Ditto.
5641 * aix-threads.c: Ditto.
5642 * alpha-linux-nat.c: Ditto.
5643 * alpha-linux-tdep.c: Ditto.
5644 * alpha-mdebug-tdep.c: Ditto.
5645 * alpha-nat.c: Ditto.
5646 * alpha-osf1-tdep.c: Ditto.
5647 * alpha-tdep.c: Ditto.
5648 * alphabsd-nat.c: Ditto.
5649 * alphabsd-tdep.c: Ditto.
5650 * amd64-darwin-tdep.c: Ditto.
5651 * amd64-linux-nat.c: Ditto.
5652 * amd64-linux-tdep.c: Ditto.
5653 * amd64-sol2-tdep.c: Ditto.
5654 * amd64-tdep.c: Ditto.
5655 * amd64-fbsd-tdep.c: Ditto.
5656 * amd64-nbsd-tdep.c: Ditto.
5657 * amd64-obsd-tdep.c: Ditto.
5658 * amd64-linux-nat.c: Ditto.
5659 * amd64-linux-tdep.c: Ditto.
5660 * arm-tdep.c: Ditto.
5661 * arm-tdep.h: Ditto.
5662 * armnbsd-nat.c: Ditto.
5663 * avr-tdep.c: Ditto.
5664 * bfin-tdep.c: Ditto.
5666 * c-typeprintc: Ditto.
5667 * c-valprint.c: Ditto.
5668 * coff-pe-read.h: Ditto.
5669 * coffreead.c: Ditto.
5670 * cris-tdep.c: Ditto.
5672 * darwin-nat-info.c: Ditto.
5673 * darwin-nat.c: Ditto.
5674 * dbug-rom.c: Ditto.
5678 * dec-thread.c: Ditto.
5680 * demangle.c: Ditto.
5681 * dicos-tdep.c: Ditto.
5682 * dictionary.c: Ditto.
5683 * dictionary.h: Ditto.
5684 * dink32-rom.c: Ditto.
5686 * doublest.c: Ditto.
5688 * dummy-frame.c: Ditto.
5689 * dwarf2-frame.c: Ditto.
5690 * dwarf2expr.c: Ditto.
5691 * dwarf2loc.c: Ditto.
5692 * dwarf2read.c: Ditto.
5696 * event-top.h: Ditto.
5697 * exceptions.c: Ditto.
5698 * exceptions.h: Ditto.
5700 * expprint.c: Ditto.
5701 * expression.h: Ditto.
5705 * f-typeprint.c: Ditto.
5706 * f-valprint.c: Ditto.
5707 * fbsd-nat.c: Ditto.
5709 * fork-child.c: Ditto.
5712 * frv-linux-tdep.c: Ditto.
5713 * frv-tdep.c: Ditto.
5715 * gdb-stabs.h: Ditto.
5716 * gdb_assert.h: Ditto.
5717 * gdb_string.h: Ditto.
5718 * gdb_thread_db.h: Ditto.
5719 * gdb_wait.h: Ditto.
5720 * gdbarch.sh: Ditto.
5722 * gdbthread.h: Ditto.
5723 * gdbtypes.c: Ditto.
5724 * gdbtypes.h: Ditto.
5727 * gnu-v2-abi.c: Ditto.
5728 * gnu-v3-abi.c: Ditto.
5729 * go32-nat.c: Ditto.
5730 * gdbarch.c: Regenerate.
5731 * gdbarch.h: Regenerate.
5733 2011-01-07 Michael Snyder <msnyder@vmware.com>
5735 * ax-gdb.c: Adjust some long output strings.
5736 * breakpoint.c: Ditto.
5741 * linux-nat.c: Ditto.
5742 * solib-pa64.c: Ditto.
5743 * solib-som.c: Ditto.
5745 2011-01-06 Tom Tromey <tromey@redhat.com>
5749 * python/python.c (GdbMethods): Add "newest_frame" method.
5750 * python/python-internal.h (gdbpy_newest_frame): Declare.
5751 * python/py-frame.c (gdbpy_newest_frame): New function.
5753 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5755 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5756 * jit.c (jit_debug): New variable.
5757 (show_jit_debug): New function.
5758 (struct target_buffer): Use ULONGEST.
5759 (bfd_open_from_target_memory): Likewise.
5760 (jit_register_code, jit_inferior_init): Add debug output.
5761 (_initialize_jit): Register "debug jit" command.
5763 2011-01-06 Tom Tromey <tromey@redhat.com>
5765 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5766 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5769 2011-01-06 Tom Tromey <tromey@redhat.com>
5771 * python/py-frame.c (frapy_block): Use get_frame_block.
5773 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5775 Do not stop on SIGPRIO signals by default
5776 * infrun.c (_initialize_infrun): Unset signal_stop and
5777 signal_print for TARGET_SIGNAL_PRIO.
5779 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5781 * ada-tasks.c: Fix style violation in comment.
5783 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5785 * linespec.c (decode_compound, find_method): Remove trailing \n
5786 at end of error string.
5787 * solib-irix.c (irix_current_sos): Likewise.
5788 * varobj.c (uninstall_variable): Likewise.
5790 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5792 * copyright.py: New script.
5793 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5794 Launch emacs without exec'ing. Call copyright.py afterwards.
5796 2011-01-05 Michael Snyder <msnyder@vmware.com>
5798 * addrmap.c: Shorten lines of >= 80 columns.
5799 * arch-utils.c: Ditto.
5800 * arch-utils.h: Ditto.
5802 * ax-general.c: Ditto.
5804 * blockframe.c: Ditto.
5805 * breakpoint.c: Ditto.
5806 * buildsym.c: Ditto.
5808 * c-typeprint.c: Ditto.
5810 * coffread.c: Ditto.
5814 * cp-namespace.c: Ditto.
5815 * cp-support.c: Ditto.
5816 * dbug-rom.c: Ditto.
5821 * dictionary.c: Ditto.
5823 * doublest.c: Ditto.
5824 * dwarf2-frame.c: Ditto.
5825 * dwarf2expr.c: Ditto.
5826 * dwarf2loc.c: Ditto.
5827 * dwarf2read.c: Ditto.
5830 * event-loop.c: Ditto.
5831 * event-loop.h: Ditto.
5832 * exceptions.h: Ditto.
5834 * expprint.c: Ditto.
5835 * expression.h: Ditto.
5837 * f-valprint.c: Ditto.
5839 * frame-base.c: Ditto.
5840 * frame-unwind.c: Ditto.
5841 * frame-unwind.h: Ditto.
5845 * gdb-stabs.h: Ditto.
5846 * gdb_assert.h: Ditto.
5847 * gdb_dirent.h: Ditto.
5848 * gdb_obstack.h: Ditto.
5850 * gdbtypes.c: Ditto.
5851 * gdbtypes.h: Ditto.
5852 * inf-ttrace.c: Ditto.
5857 * inline-frame.h: Ditto.
5858 * language.c: Ditto.
5859 * language.h: Ditto.
5860 * libunwind-frame.c: Ditto.
5861 * libunwind-frame.h: Ditto.
5862 * linespec.c: Ditto.
5863 * linux-nat.c: Ditto.
5864 * linux-nat.h: Ditto.
5865 * linux-thread-db.c: Ditto.
5866 * machoread.c: Ditto.
5867 * macroexp.c: Ditto.
5868 * macrotab.c: Ditto.
5871 * mdebugread.c: Ditto.
5876 * objfiles.c: Ditto.
5877 * objfiles.h: Ditto.
5879 * p-typeprint.c: Ditto.
5880 * p-valprint.c: Ditto.
5882 * printcmd.c: Ditto.
5883 * proc-events.c: Ditto.
5885 * progspace.c: Ditto.
5886 * progspace.h: Ditto.
5887 * psympriv.h: Ditto.
5890 * regcache.c: Ditto.
5891 * regcache.h: Ditto.
5892 * remote-fileio.c: Ditto.
5894 * ser-mingw.c: Ditto.
5896 * ser-unix.c: Ditto.
5899 * solib-frv.c: Ditto.
5900 * solib-irix.c: Ditto.
5901 * solib-osf.c: Ditto.
5902 * solib-pa64.c: Ditto.
5903 * solib-som.c: Ditto.
5904 * solib-sunos.c: Ditto.
5905 * solib-svr4.c: Ditto.
5906 * solib-target.c: Ditto.
5910 * stabsread.c: Ditto.
5911 * stabsread.c: Ditto.
5914 * symfile-mem.c: Ditto.
5920 * target-descriptions.c: Ditto.
5921 * target-memory.c: Ditto.
5924 * terminal.h: Ditto.
5927 * tracepoint.c: Ditto.
5928 * tracepoint.h: Ditto.
5932 * user-regs.c: Ditto.
5933 * user-regs.h: Ditto.
5935 * valarith.c: Ditto.
5937 * valprint.c: Ditto.
5938 * valprint.h: Ditto.
5943 * xcoffread.c: Ditto.
5944 * xcoffsolib.c: Ditto.
5945 * xcoffsolib.h: Ditto.
5946 * xml-syscall.c: Ditto.
5947 * xml-tdesc.c: Ditto.
5949 2011-01-05 Michael Snyder <msnyder@vmware.com>
5951 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5952 * cli/cli-decode.c: Ditto.
5953 * cli/cli-dump.c: Ditto.
5954 * cli/cli-logging.c: Ditto.
5955 * cli/cli-script.c: Ditto.
5956 * cli/cli-setshow.c: Ditto.
5957 * common/signals.c: Ditto.
5958 * mi/mi-cmd-break.c: Ditto.
5959 * mi/mi-cmd-disas.c: Ditto.
5960 * mi/mi-cmd-stack.c: Ditto.
5961 * mi/mi-cmd-var.c: Ditto.
5962 * mi/mi-cmds.c: Ditto.
5963 * mi/mi-common.h: Ditto.
5964 * mi/mi-console.c: Ditto.
5965 * mi/mi-interp.c: Ditto.
5966 * mi/mi-main.c: Ditto.
5967 * osf-share/cma_attr.c: Ditto.
5968 * osf-share/cma_deb_core.h: Ditto.
5969 * osf-share/cma_debug_client.h: Ditto.
5970 * osf-share/cma_handle.h: Ditto.
5971 * osf-share/cma_mutex.h: Ditto.
5972 * osf-share/cma_stack_int.h: Ditto.
5973 * osf-share/cma_tcb_defs.h: Ditto.
5974 * python/py-auto-load.c: Ditto.
5975 * python/py-breakpoint.c: Ditto.
5976 * python/py-cmd.c: Ditto.
5977 * python/py-frame.c: Ditto.
5978 * python/py-objfile.c: Ditto.
5979 * python/py-param.c: Ditto.
5980 * python/py-progspace.c: Ditto.
5981 * python/py-symbol.c: Ditto.
5982 * python/py-value.c: Ditto.
5983 * python/python-internal.h: Ditto.
5984 * python/python.c: Ditto.
5985 * tui/tui-data.c: Ditto.
5986 * tui/tui-disasm.c: Ditto.
5987 * tui/tui-hooks.c: Ditto.
5988 * tui/tui-io.c: Ditto.
5989 * tui/tui-layout.c: Ditto.
5990 * tui/tui-regs.c: Ditto.
5991 * tui/tui-source.c: Ditto.
5992 * tui/tui-stack.c: Ditto.
5993 * tui/tui-win.c: Ditto.
5994 * tui/tui-windata.c: Ditto.
5995 * tui/tui-winsource.c: Ditto.
5997 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5999 * configure.ac, gdb.1: Copyright year update.
6001 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6003 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6004 this_pc_in_block, morestack_msym and morestack_name. Check for
6005 "__morestack" minimal symbol there.
6007 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6009 * symfile.c (find_sym_fns): Add call to dont_repeat.
6011 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6013 Copyright year update in most files (performed by copyright.sh).
6015 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6017 * top.c (print_gdb_version): Update copyright year in version output.
6019 For older changes see ChangeLog-2010.
6025 version-control: never