1 2011-05-24 Keith Seitz <keiths@redhat.com>
4 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5 (decode_compound): Unconditionally call keep_name_info.
7 2011-05-24 Pedro Alves <pedro@codesourcery.com>
9 * breakpoint.c (watchpoint_check): If the watchpoint went out of
10 scope, clear its command list.
11 (map_breakpoint_numbers): Don't walk the related breakpoints list
14 2011-05-24 Tom Tromey <tromey@redhat.com>
16 * MAINTAINERS: Move Jim Blandy to past maintainers.
18 2011-05-24 Tristan Gingold <gingold@adacore.com>
20 * symfile.h (enum dwarf2_section_enum): New type.
21 (dwarf2_get_section_info): New prototype.
22 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
23 section_name by sect. Use a switch to select the info.
24 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
25 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
27 2011-05-24 Pedro Alves <pedro@codesourcery.com>
29 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
30 shared library event breakpoint if there's no execution.
32 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
34 * breakpont.c (remove_hw_watchpoints): Remove unused function.
35 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
37 2011-05-23 Tom Tromey <tromey@redhat.com>
39 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
42 2011-05-23 Doug Evans <dje@google.com>
44 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
45 entry for RuntimeError to doc string.
47 2011-05-23 Jerome Guitton <guitton@adacore.com>
49 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
50 sequence for probing loops.
52 2011-05-23 Pedro Alves <pedro@codesourcery.com>
54 * infrun.c (user_visible_resume_ptid): Fix typos in describing
57 2011-05-21 Mark Kettenis <kettenis@gnu.org>
59 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
60 zero as the value for %g0 in the register cache.
61 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
62 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
64 2011-05-20 Pedro Alves <pedro@codesourcery.com>
66 * infrun.c (proceed): Set previous_inferior_ptid here.
67 (init_wait_for_inferior): Initialize previous_inferior_ptid from
68 inferior_ptid, not null_ptid.
69 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
70 (fetch_inferior_event): Nor here.
72 2011-05-20 Pedro Alves <pedro@codesourcery.com>
74 * inf-loop.c (inferior_event_handler): Only output a message if
77 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
79 * MAINTAINERS: Update my e-mail address.
81 2011-05-20 Pedro Alves <pedro@codesourcery.com>
83 * infrun.c (proceed): Switch the inferior event loop to
84 INF_EXEC_COMPLETE if the target refused to resume from a
87 2011-05-20 Pedro Alves <pedro@codesourcery.com>
89 * infcmd.c: Include "inf-loop.h".
90 (step_once): When stepping into an inline subroutine, pretend the
91 target has run. If the target can async, switch the inferior
92 event loop to INF_EXEC_COMPLETE.
93 * inferior.h (user_visible_resume_ptid): Declare.
94 * infrun.c (user_visible_resume_ptid): New function, factored out
97 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
98 that the current thread is running. Merge async and sync
101 2011-05-20 Pedro Alves <pedro@codesourcery.com>
103 * infcmd.c (step_1): Simplify synchronous case.
105 2011-05-20 Pedro Alves <pedro@codesourcery.com>
107 * tracepoint.c: Include exceptions.h.
108 (TFILE_PID): Move higher in file.
109 (tfile_open): Delay pushing the tfile target until we're assured
110 the tfile header is present in the file. Wrap reading the initial
111 newline-terminated lines in TRY_CATCH. Pop the target if the
112 initial setup failed. Add the tfile's thread immediately
113 aftwards, before any non-essential setup. Don't skip
114 post_create_inferior if there are no traceframes present in the
116 (tfile_close): Remove redundant check for null before xfree call.
117 (tfile_thread_alive): New function.
118 (init_tfile_ops): Register it as to_thread_alive callback.
120 2011-05-20 Pedro Alves <pedro@codesourcery.com>
122 * tracepoint.c (tfile_open): Delete #if 0'd code.
124 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
126 Fix -readnow for -gdwarf-4 unused type units.
127 * dwarf2read.c (struct signatured_type): Remove the field offset.
128 (create_signatured_type_table_from_index): Remove its initialization.
129 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
130 instead. Add a complaint call.
131 (process_psymtab_comp_unit): Change assignment to gdb_assert.
132 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
133 (lookup_signatured_type_at_offset, read_signatured_type)
134 (write_one_signatured_type): Update the field for per_cu.
136 2011-05-19 Tom Tromey <tromey@redhat.com>
138 * python/py-inferior.c (python_inferior_exit): Use
140 (python_on_resume): Likewise.
142 2011-05-19 Matt Rice <ratmice@gmail.com>
144 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
146 2011-05-19 Hui Zhu <teawater@gmail.com>
148 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
150 2011-05-19 Hui Zhu <teawater@gmail.com>
152 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
154 2011-05-18 Tom Tromey <tromey@redhat.com>
156 * dwarf2read.c (dwarf2_add_field): Constify.
157 * value.c (value_static_field): Constify.
158 * gdbtypes.h (struct main_type) <field.field_location.physname>:
160 * ax-gdb.c (gen_static_field): Constify
162 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
164 * linux-nat.c (kill_callback): Use SIGKILL first.
166 2011-05-18 Joel Brobecker <brobecker@adacore.com>
168 * ada-lang.c (print_it_exception): Avoid use of sprintf.
170 2011-05-18 Tom Tromey <tromey@redhat.com>
172 * value.c (value_fn_field): Constify.
173 * symtab.c (gdb_mangle_name): Constify.
174 * stabsread.c (update_method_name_from_physname): Make 'physname'
176 * p-typeprint.c (pascal_type_print_method_args): Make arguments
177 const. Use explicit fputc_filtered loop.
178 (pascal_type_print_base): Constify.
179 * p-lang.h (pascal_type_print_method_args): Update.
180 * linespec.c (add_matching_methods): Constify.
181 (add_constructors): Likewise.
182 * jv-typeprint.c (java_type_print_base): Constify.
183 * gdbtypes.h (struct cplus_struct_type)
184 <fn_fieldlist.fn_field.physname>: Now const.
185 * dwarf2read.c (compute_delayed_physnames): Constify.
186 (dwarf2_add_member_fn): Likewise.
187 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
189 2011-05-18 Pedro Alves <pedro@codesourcery.com>
191 * infrun.c (resume): Mention which is the current thread, and its
192 current PC in debug output.
193 (prepare_to_proceed): Mention the thread switching in debug
196 2011-05-18 Tom Tromey <tromey@redhat.com>
198 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
199 path check. Use xmalloc and cleanups.
200 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
202 2011-05-17 Tom Tromey <tromey@redhat.com>
204 * cp-valprint.c (cp_print_value_fields): Catch errors from
207 2011-05-17 Tom Tromey <tromey@redhat.com>
209 * dwarf2read.c (dwarf2_get_die_type): Call
210 get_die_type_at_offset.
211 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
212 get_base_type function.
214 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
216 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
219 2011-05-16 Doug Evans <dje@google.com>
221 * python/py-auto-load.c (source_section_scripts): Mention objfile
224 2011-05-15 Doug Evans <dje@google.com>
226 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
227 (try_thread_db_load_from_pdir): Call it. If unable to find
228 libthread_db in directory of libpthread, see if we're looking at
229 the separate-debug-info copy.
231 * python/py-autoload.c (print_script): Print "Missing" instead of
232 "No" for missing scripts.
233 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
235 2011-05-13 Doug Evans <dje@google.com>
237 * ui-file.c (stdio_file_write_async_safe): Add comment.
239 2011-05-14 Hui Zhu <teawater@gmail.com>
241 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
243 2011-05-13 Doug Evans <dje@google.com>
245 Support $pdir and $sdir in libthread-db-search-path.
246 * NEWS: Mention $sdir,$pdir.
247 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
248 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
249 (try_thread_db_load_from_sdir): New function.
250 (try_thread_db_load_from_dir): New function.
251 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
252 system directories if search of libthread-db-search-path fails,
253 that is now done via $sdir.
254 (has_libpthread): New function.
255 (thread_db_load): Remove search for libthread_db in directory of
256 libpthread, that is now done via $pdir.
258 * NEWS: Mention "info auto-load-scripts".
259 * python/py-auto-load.c (struct auto_load_pspace_info): New member
260 script_not_found_warning_printed.
261 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
262 all callers updated. Initialize script_not_found_warning_printed.
263 (get_auto_load_pspace_data_for_loading): New function.
264 (maybe_add_script): New function.
265 (source_section_scripts): Simplify. Only print one warning regardless
266 of the number of auto-load scripts not found.
267 (clear_section_scripts): Clear script_not_found_warning_printed.
268 (auto_load_objfile_script): Record script in hash table.
269 (count_matching_scripts): New function.
270 (maybe_print_script): Renamed from maybe_print_section_script, all
271 callers updated. Rewrite to use ui_out_*.
272 (info_auto_load_scripts): Renamed from
273 maintenance_print_section_scripts, all callers updated.
274 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
275 renamed as "info auto-load-scripts".
277 2011-05-13 Tom Tromey <tromey@redhat.com>
279 * dwarf2expr.c (read_uleb128): Cast intermediate result.
280 (read_sleb128): Likewise.
282 2011-05-13 Tom Tromey <tromey@redhat.com>
284 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
287 2011-05-13 Doug Evans <dje@google.com>
289 * linux-nat.c (debug_linux_nat_async): Delete.
290 Replace all references to use debug_linux_nat instead.
291 (show_debug_linux_nat_async): Delete.
292 (sigchld_handler): Call ui_file_write_async_safe instead of
294 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
295 * ui-file.c (struct ui_file): New member to_write_async_safe.
296 (null_file_write_async_safe): New function.
297 (ui_file_write_async_safe): New function.
298 (set_ui_file_write_async_safe): New function.
299 (ui_file_new): Initialize to_write_async_safe.
300 (stdio_file_write_async_safe): New function.
301 (struct stdio_file): New member fd.
302 (stdio_file_new): Initialize to_write_async_safe, fd.
303 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
305 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
306 (set_ui_file_write_async_safe): Declare.
307 (ui_file_write_async_safe): Declare.
309 2011-05-13 Tom Tromey <tromey@redhat.com>
311 * utils.c (do_value_free): New function.
312 (make_cleanup_value_free): Likewise.
313 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
315 (dwarf2_loc_desc_needs_frame): Call
316 make_cleanup_value_free_to_mark.
317 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
318 * dwarf2expr.c (free_dwarf_expr_context): Don't call
320 (new_dwarf_expr_context): Don't call value_mark.
321 * dwarf2-frame.c (execute_stack_op): Call
322 make_cleanup_value_free_to_mark.
323 * defs.h (make_cleanup_value_free): Declare.
325 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
327 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
328 prepare_execute_command.
329 * top.c (prepare_execute_command): Return cleanup.
330 (execute_command): Use cleanup from prepare_execute_command.
331 * top.h (prepare_execute_command): Change prototype to return
333 * defs.h (struct value): Add opaque declaration.
334 (make_cleanup_value_free_to_mark): Add prototype.
335 * utils.c (do_value_free_to_mark): New function.
336 (make_cleanup_value_free_to_mark): Likewise.
338 2011-05-12 Tom Tromey <tromey@redhat.com>
340 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
341 cast left-hand-side to unsigned.
343 2011-05-12 Tom Tromey <tromey@redhat.com>
346 * value.h (value_from_contents): Declare.
347 * value.c (value_from_contents): New function.
348 * dwarf2read.c (dwarf_stack_op_name): Add new values.
349 (dwarf2_get_die_type): New function.
350 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
351 (allocate_piece_closure): Acquire reference to values.
352 (read_pieced_value): Update for value-based expressions.
353 (write_pieced_value): Likewise.
354 (free_pieced_value_closure): Call value_free as needed.
355 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
356 Update for value-based expressions.
357 * dwarf2loc.h (dwarf2_get_die_type): Declare.
358 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
359 <get_base_type>: New field.
360 (struct dwarf_expr_piece) <v.value>: Change type.
361 <v.regno>: New field.
362 (struct dwarf_expr_context) <mark>: New field.
363 (dwarf_expr_piece, dwarf_expr_fetch): Update.
364 (dwarf_expr_pop, dwarf_expr_push): Remove.
365 (dwarf_expr_push_address): Declare.
366 * dwarf2expr.c (dwarf_arch_cookie): New global.
367 (struct dwarf_gdbarch_types): New.
368 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
370 (dwarf_expr_push): Change type of 'value' argument. Update. Now
372 (dwarf_expr_push_address): New function.
373 (dwarf_expr_pop): Now static.
374 (dwarf_expr_fetch): Change return type.
375 (dwarf_require_integral): New function.
376 (dwarf_expr_fetch): Simplify.
378 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
380 (execute_stack_op) <sign_ext>: Remove.
381 Use values for DWARF stack.
382 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
383 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
385 (_initialize_dwarf2expr): New function.
387 (new_dwarf_expr_context): Set new field.
388 (free_dwarf_expr_context): Call value_free_to_mark.
389 * dwarf2-frame.c (no_base_type): New function.
390 (execute_stack_op): Set get_base_type field. Update.
392 2011-05-12 Tom Tromey <tromey@redhat.com>
394 * dwarf2read.c (read_common_block): Fix formatting.
396 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
398 * breakpoint.c (disable_breakpoint): Disable all locations
399 associated with a tracepoint on target if a trace experiment is
401 (disable_command): Disable a specific tracepoint location on target if
402 a trace experiment is running.
403 (do_enable_breakpoint): Enable all locations associated with a
404 tracepoint on target if a trace experiment is running.
405 (enable_command) Enable a specific tracepoint location on target if a
406 trace experiment is running.
407 * target.c (update_current_target): Add INHERIT and de_fault clauses for
408 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
409 to_disable_tracepoint.
410 * target.h: Add declaration of struct bp_location.
411 (struct target_ops): Add new functions
412 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
413 to_disable_tracepoint to target operations.
414 (target_supports_enable_disable_tracepoint): New macro.
415 (target_enable_tracepoint): New macro.
416 (target_disable_tracepoint): New macro.
417 * remote.c (struct remote_state): Add new field.
418 (remote_enable_disable_tracepoint_feature): New.
419 (remote_protocol_features): Add new entry.
420 (remote_supports_enable_disable_tracepoint): New.
421 (remote_enable_tracepoint): New.
422 (remote_disable_tracepoint): New.
423 (init_remote_ops): Add remote_enable_tracepoint,
424 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
425 to remote operations.
426 * tracepoint.c (start_tracing): Allow tracing to start without any
427 tracepoints enabled with just a warning if they can be re-enabled
429 * NEWS: Add news item for the new behaviour of the enable and disable
430 GDB commands when applied to tracepoints.
431 Add news items for the new remote packets QTEnable and QTDisable.
433 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
435 * config.in: Regenerate.
436 * configure: Regenerate.
437 * configure.ac <--with-system-readline> (for readline_echoing_p):
439 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
440 (tui_old_rl_echoing_p): ... here.
441 (tui_setup_io): Rename extern declaration readline_echoing_p to
442 _rl_echoing_p. Adjust assignments for the both renames.
444 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
446 * symtab.c (lookup_symtab): Run cleanup before returning.
448 2011-05-11 Tom Tromey <tromey@redhat.com>
450 * dwarf2read.c (handle_data_member_location): New function.
451 (dwarf2_add_field): Use it.
452 (read_common_block): Likewise.
454 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
456 Make addrs->SECTINDEX always defined.
457 * symfile.c (relative_addr_info_to_section_offsets): Check for
458 SECTINDEX -1, not for zero ADDR.
459 (addrs_section_compar): Remove checking for invalid SECTINDEX.
460 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
461 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
464 2011-05-10 Doug Evans <dje@google.com>
466 * linux-thread-db.c: Whitespace cleanup.
467 (try_thread_db_load_1): Fix comment.
469 * linux-thread-db.c (set_libthread_db_search_path): New function.
470 (_initialize_thread_db): Add setter for libthread-db-search-path.
472 2011-05-09 Doug Evans <dje@google.com>
474 * NEWS: Mention --with-iconv-bin.
475 * configure.ac: New option --with-iconv-bin.
476 * configure: Regenerate.
477 * config.in: Regenerate.
478 * defs.h (relocate_gdb_directory): Declare.
479 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
480 removed progname parameter, and exported. All callers updated.
481 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
483 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
484 adding missing call to restore_child_signals_mask.
486 2011-05-09 Pedro Alves <pedro@codesourcery.com>
488 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
490 * infrun.c (proceed, start_remote): Adjust.
491 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
492 and adjust to not handle it.
493 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
494 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
495 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
496 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
497 * windows-nat.c (do_initial_windows_stuff): Adjust.
498 * infcmd.c (attach_command): Adjust.
499 (notice_new_inferior): Adjust.
501 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
503 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
504 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
505 * spu-tdep.c (op_selb): Use correct value.
507 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
509 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
510 "parent" parameter to symbol_file_add_from_bfd call.
512 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
513 Thiago Jung Bauermann <bauerman@br.ibm.com>
515 Implement support for PowerPC BookE masked watchpoints.
516 * NEWS: Mention masked watchpoint support. Create "Changed commands"
518 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
519 method. Initialize to NULL in all existing breakpoint_ops instances.
520 (struct breakpoint) <hw_wp_mask>: New field.
521 * breakpoint.c (is_masked_watchpoint): Add prototype.
522 (update_watchpoint): Don't set b->val for masked watchpoints. Call
523 breakpoint's breakpoint_ops.works_in_software_mode if available.
524 (watchpoints_triggered): Handle the case of a hardware masked
526 (watchpoint_check): Likewise.
527 (works_in_software_mode_watchpoint): New function.
528 (insert_masked_watchpoint, remove_masked_watchpoint)
529 (resources_needed_masked_watchpoint)
530 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
531 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
532 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
534 (masked_watchpoint_breakpoint_ops): New structure.
535 (watch_command_1): Check for the existence of the `mask' parameter.
536 Set b->ops according to the type of hardware watchpoint being created.
537 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
538 (ppc_linux_remove_mask_watchpoint)
539 (ppc_linux_masked_watch_num_registers): New functions.
540 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
541 to_remove_mask_watchpoint and to_masked_watch_num_registers.
542 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
543 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
544 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
545 (target_masked_watch_num_registers): New functions.
546 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
547 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
549 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
550 (target_masked_watch_num_registers): Add prototypes.
552 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
555 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
556 (producer_is_gcc_ge_4_0): New function.
557 (process_full_comp_unit): Set also symtab->locations_valid. Move the
558 symtab->language code.
559 (var_decode_location): Set cu->has_loclist.
560 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
561 skip. Intialize force_skip from locations_valid. Move the prologue
562 skipping code into two passes.
563 * symtab.h (struct symtab): Make the primary field a bitfield. New
564 field locations_valid.
566 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
568 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
569 (classify_inner_name): Call cp_lookup_nested_type with
571 * cp-namespace.c (cp_lookup_nested_type): New variable
572 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
573 type_name_no_tag_or_error with saved_parent_type.
574 * dwarf2read.c (load_partial_dies): Read in any children of
575 DW_TAG_typedef with complaint in such case.
576 * gdbtypes.c (type_name_no_tag_or_error): New function.
577 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
578 * valops.c (destructor_name_p): New comment for parameter type. Remove
579 type const. Make dname and cp const. Call type_name_no_tag_or_error.
580 * value.h (destructor_name_p): Remove type const.
582 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
584 * symtab.c (compare_symbol_name): New function.
585 (completion_list_add_name, expand_partial_symbol_name): Call it,
586 remove the variable ncmp.
587 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
590 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
592 Demote to sw watchpoint only in update_watchpoint.
593 * breakpoint.c (update_watchpoint): Change between software and
594 hardware watchpoint for all kinds of watchpoints, not just
595 read/write ones. Determine b->exact value here instead of
596 in watch_command_1. Error out if there are not enough resources
597 for a read or access hardware watchpoint.
598 (watch_command_1): Remove logic of checking whether there are
599 enough resources available, since update_watchpoint will do that
600 work now. Don't set b->exact here. Catch exceptions thrown by
601 update_watchpoint and delete the watchpoint.
602 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
603 Use target_exact_watchpoints instead.
604 (delete_breakpoint): Notify observers only if deleted watchpoint
605 has a breakpoint number assigned to it.
607 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
609 * MAINTAINERS: Add myself as a write-after-approval maintainer.
611 2011-05-05 Jerome Guitton <guitton@adacore.com>
613 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
615 (i386_stack_tramp_frame_unwind): New static global.
616 (i386_match_pattern): New function, extracted from i386_match_insn.
617 (i386_match_insn): Use i386_match_pattern.
618 (i386_match_insn_block): New function.
619 (i386_tramp_chain_in_reg_insns)
620 (i386_tramp_chain_on_stack_insns): New static variables.
621 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
624 2011-05-04 Joseph Myers <joseph@codesourcery.com>
626 * configure.host (xscale*): Don't handle target.
627 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
630 2011-05-04 Yao Qi <yao@codesourcery.com>
632 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
634 2011-05-03 Joel Brobecker <brobecker@adacore.com>
637 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
638 | * elfread.c (elf_symtab_read): Stop memory leak.
640 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
642 * nto-tdep.c (nto_target): Replace deprecated call to
643 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
645 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
647 Fix false GCC warning.
648 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
650 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
652 * breakpoint.c (update_watchpoint): Move code to change
653 the enable state of breakpoint from here ...
654 (do_enable_breakpoint): ... to here.
656 2011-04-26 Andrew Gontarek <andrewg@cray.com>
658 * valprint.c (val_print_array_elements): Fixed poor performance
659 of printing very large arrays with repeat_count_threshold set
660 to unlimited. New comment.
662 2011-04-29 Tom Tromey <tromey@redhat.com>
664 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
665 (mi_parse): Likewise.
666 * breakpoint.c (break_range_command): Use sizeof char*, not
668 (create_breakpoint): Likewise.
669 (parse_breakpoint_sals): Likewise.
671 2011-04-29 Pedro Alves <pedro@codesourcery.com>
673 * linux-nat.c (linux_child_remove_fork_catchpoint)
674 (linux_child_remove_vfork_catchpoint)
675 (linux_child_remove_exec_catchpoint): New functions.
676 (linux_target_install_ops): Install them.
678 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
682 * varobj.c (install_default_visualizer): Do not install a
683 visualizer if the varobj is CPLUS_FAKE_CHILD.
684 (construct_visualizer): Likewise.
686 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
688 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
689 case insensitive comparison.
691 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
693 * infrun.c (proceed): Revert previous change.
694 (resume): Instead, handle the case of signal delivery while stepping
695 off a breakpoint location here, and only if software single-stepping
696 is used. Handle nested signals.
698 2011-04-28 Yao Qi <yao@codesourcery.com>
700 * arm-tdep.c (copy_unmodified): Rename to ...
701 (arm_copy_unmodified): .. this. New.
702 (copy_preload): Move common part to ...
703 (install_preload): .. this. New.
704 (arm_copy_preload): New.
705 (copy_preload_reg): Move common part to ...
706 (install_preload_reg): ... this. New.
707 (arm_copy_preload_reg): New.
708 (copy_b_bl_blx): Move common part to ...
709 (install_b_bl_blx): .. this. New.
710 (arm_copy_b_bl_blx): New.
711 (copy_bx_blx_reg): Move common part to ...
712 (install_bx_blx_reg): ... this. New.
713 (arm_copy_bx_blx_reg): New.
714 (copy_alu_reg): Move common part to ...
715 (install_alu_reg): ... this. New.
716 (arm_copy_alu_reg): New.
717 (copy_alu_shifted_reg): Move common part to ...
718 (install_alu_shifted_reg): ... this. New.
719 (copy_ldr_str_ldrb_strb): Move common part to ...
720 (install_ldr_str_ldrb_strb): ... this. New.
721 (arm_copy_ldr_str_ldrb_strb): New.
722 (copy_copro_load_store): Move some common part to ...
723 (install_copy_copro_load_store): ... this. New.
724 (arm_copy_copro_load_store): New.
726 (arm_copy_svc): Renamed from copy_svc.
727 (copy_undef): Delete.
728 (arm_copy_undef): Renamed from copy_undef.
729 (decode_ext_reg_ld_st): Delete.
730 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
731 (decode_svc_copro): Delete.
732 (arm_decode_svc_copro): Renamed from decode_svc_copro.
733 (copy_copro_load_store, copy_alu_imm): update callers.
734 (copy_extra_ld_st, copy_block_xfer): Likewise.
735 (decode_misc_memhint_neon, decode_unconditional): Likewise.
736 (decode_miscellaneous, decode_dp_misc): Likewise.
737 (decode_ld_st_word_ubyte, decode_media): Likewise.
738 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
739 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
740 (decode_unconditional, decode_miscellaneous): Likewise.
741 (decode_media, decode_b_bl_ldmstm): Likewise.
742 (arm_process_displaced_insn): Likewise..
743 (decode_misc_memhint_neon): Delete.
744 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
745 (decode_miscellaneous): Delete.
746 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
747 (decode_dp_misc): Delete.
748 (arm_decode_dp_misc): Renamed from decode_dp_misc.
749 (decode_ld_st_word_ubyte): Delete.
750 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
751 (decode_media): Delete.
752 (arm_decode_media): Renamed from decode_media.
753 (decode_b_bl_ldmstm): Delete.
754 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
755 (decode_ext_reg_ld_st): Delete.
756 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
757 (decode_unconditional): Delete.
758 (arm_decode_unconditional): Renamed from decode_unconditional.
760 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
762 Case insensitive lookups implementation.
763 * dwarf2read.c: Include ctype.h.
764 (struct mapped_index): New field version.
765 (mapped_index_string_hash): New parameter index_version. New comment
766 for it. Call tolower appropriately.
767 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
768 Choose the right index version for mapped_index_string_hash.
769 (dwarf2_read_index): Support also the index version 5. Initialize the
770 new struct mapped_index field version.
771 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
772 (find_slot): Explain the version needs. Pass INT_MAX for the new
774 (write_psymtabs_to_index): Produce version 5.
775 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
776 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
777 * psymtab.c (lookup_partial_symbol): Find the
778 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
780 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
782 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
783 (completion_list_add_name): New variable ncmp, initialize it, use it.
784 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
785 * utils.c (strcmp_iw): Support case_sensitive_off.
786 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
787 New function comment part. New variables saved_string1,
788 saved_string2 and case_pass. Add a proper second pass.
790 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
792 Replace re_comp/re_exec by regcomp/regexec.
793 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
794 (search_symbols_name_matches): Use them, use regexec.
795 (search_symbols): New variable retval_chain, adjust the use of
796 old_chain against it. Replace re_comp by regcomp. Use the new struct
797 search_symbols_data fields, use regexec instead of re_exec.
799 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
801 Format the code for the next patch.
802 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
803 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
804 New variables c1 and c2.
806 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
808 * infrun.c (proceed): Do not single-step into signal delivery
809 when stepping off a breakpoint location.
810 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
811 (insert_step_resume_breakpoint_at_caller): Likewise.
812 (insert_step_resume_breakpoint_at_sal): Likewise.
813 (insert_longjmp_resume_breakpoint): Likewise.
815 2011-04-27 Yao Qi <yao@codesourcery.com>
817 * common/linux-ptrace.h: Remove include <sys/wait.h>.
819 2011-04-27 Joel Brobecker <brobecker@adacore.com>
821 * procfs.c (procfs_pass_signals): Fix advance declaration.
823 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
825 * target.h (struct target_ops): Remove to_notice_signals;
827 (target_notice_signals): Remove.
828 (target_pass_signals): Add prototype.
829 * target.c (update_current_target): Remove to_notice_signals;
830 mention to_pass_signals.
831 (target_pass_signals): New function.
832 (debug_to_notice_signals): Remove.
833 (setup_target_debug): Do not install debug_to_notice_signals.
835 * infrun.c (signal_pass): New global.
836 (resume): Call target_pass_signals.
837 (handle_inferior_event): Report all signals while stepping over
838 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
839 are re-inserted when stepping over a signal handler.
840 (signal_cache_update): New function.
841 (signal_stop_update): Call it.
842 (signal_print_update): Likewise.
843 (signal_pass_update): Likewise.
844 (handle_command): Call signal_cache_update and target_pass_signals
845 instead of target_notice_signals.
846 (_initialize_infrun): Initialize signal_pass.
848 * linux-nat.c (pass_mask): New global.
849 (linux_nat_pass_signals): New function.
850 (linux_nat_create_inferior): Report all signals initially.
851 (linux_nat_attach): Likewise.
852 (linux_nat_resume): Use pass_mask to decide whether to directly
853 handle an inferior signal.
854 (linux_nat_wait_1): Likewise.
855 (linux_nat_add_target): Install to_pass_signals callback.
857 * nto-procfs.c (notice_signals): Remove.
858 (procfs_resume): Do not call notice_signals.
859 (procfs_notice_signals): Remove.
860 (procfs_pass_signals): New function.
861 (init_procfs_ops): Install to_pass_signals callback instead of
862 to_notice_signals callback.
863 (_initialize_procfs): Report all signals initially.
865 * procfs.c (procfs_notice_signals): Remove.
866 (procfs_pass_signals): New function.
867 (procfs_target): Install to_pass_signals callback instead of
868 to_notice_signals callback.
869 (register_gdb_signals): Remove.
870 (procfs_debug_inferior): Report all signals initially.
871 (procfs_init_inferior): Remove redundant register_gdb_signals call.
873 * remote.c (remote_pass_signals): Add numsigs and pass_signals
874 parameters; use them instead of calling signal_..._state routines.
875 (remote_notice_signals): Remove.
876 (remote_start_remote): Report all signals initially.
877 (remote_resume): Do not call remote_pass_signals.
878 (_initialize_remote): Install to_pass_signals callback instead of
879 to_notice_signals callback.
881 2011-04-27 Pedro Alves <pedro@codesourcery.com>
883 * breakpoint.c (user_settable_breakpoint): Delete.
884 (user_breakpoint_p): Remove check on user_settable_breakpoint.
885 (delete_command): Check user_breakpoint_p instead of looking at
886 the breakpoint's type.
887 (disable_command): Ditto.
888 (enable_command): Ditto.
889 (delete_trace_command): Use user_breakpoint_p instead of looking
890 at the breakpoint number directly. When checking if there are
891 user visible tracepoints, in order to know whether to ask the user
892 for confirmation, check whether the breakpoint is actually a
895 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
897 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
900 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
902 MI breakpoint notifications.
904 * annotate.c (breakpoint_changed): Adjust parameter type.
905 * breakpoint.c (set_breakpoint_condition): Adjust to change
906 in breakpoint_modified type.
907 (breakpoint_set_commands): Likewise.
908 (do_map_commands_command): Likewise.
909 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
910 changed after bumping hit count.
911 (bpstat_stop_status): Likewise.
912 (print_one_breakpoint_location): Don't wrap in tuple here.
913 (print_one_breakpoint): Always print individual locations.
914 For locations, use unnamed tuple.
915 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
917 (create_catchpoint, create_syscall_event_catchpoint): Call
918 breakpoint_created obsever.
919 (mention): Don't call breakpoint_created observer.
920 (create_breakpoint_sal): Call breakpoint_created observer.
921 (create_breakpoint, watch_command_1): Likewise.
922 (create_ada_exception_breakpoint): Likewise.
923 (delete_breakpoint): Call breakpoint_deleted breakpoint.
924 (locations_are_equal): New.
925 (update_breakpoint_locations): If locations were changed, notify.
926 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
927 Call breakpoint_modified observer.
929 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
930 (mi_cmd_break_insert): Don't set observers for modify and delete.
931 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
932 (mi_breakpoint_created, mi_breakpoint_deleted)
933 (mi_breakpoint_modified): New.
934 (mi_interpreter_init): Hook the above.
935 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
936 while -break-* commands are executing.
937 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
938 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
940 (mi_ui_out_impl): Hook in mi_redirect.
941 (mi_field_skip): True to the name, skip the field, don't output
942 a field with an empty value.
944 * python/py-breakpoint.c (gdbpy_breakpoint_created)
945 (gdbpy_breakpoint_deleted): Adjust.
946 * tui/tui-hooks.c (tui_event_create_breakpoint)
947 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
949 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
951 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
952 (procfs_remove_hw_watchpoint): Likewise.
954 2011-04-26 Michael Walle <michael@walle.cc>
956 * remote.c (remote_start_remote): Ack packet after sending the
959 2011-04-26 Yao Qi <yao@codesourcery.com>
961 * linux-nat.c: Move common macros to ...
962 Include linux-ptrace.h.
963 * common/linux-ptrace.h: ... here. New.
965 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
967 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
968 !objfile_has_partial_symbols. New comment.
969 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
970 SYM_READ_PSYMBOLS is not present. Extend the comment.
971 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
973 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
975 * defs.h (ENUM_BITFIELD): Remove.
977 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
978 Eli Zaretskii <eliz@gnu.org>
980 * NEWS: Document the new gdbserver --once option.
982 2011-04-21 Jie Zhang <jzhang918@gmail.com>
984 * MAINTAINERS: Update my email address.
986 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
988 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
989 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
990 function call if __STDC_ISO_10646__ macro is defined.
991 (intermediate_encoding): New prototype.
992 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
993 to generate compile time error for unsupported gdb_wchar_t size.
994 (ENDIAN_SUFFIX): New macro.
995 (intermediate_encoding): New function.
997 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
999 * ada-lang.c (struct add_partial_datum): Update the comment for
1000 expand_partial_symbol_name.
1001 (ada_add_partial_symbol_completions): Rename to ...
1002 (ada_expand_partial_symbol_name): ... here, change return type, update
1003 function comment, call symbol_completion_match instead of
1004 symbol_completion_add.
1005 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1006 and ada_expand_partial_symbol_name.
1007 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1009 (dw2_map_symbol_names): Remove.
1010 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1011 * psymtab.c (map_symbol_names_psymtab): Remove.
1012 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1013 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1015 (psym_functions): Unlist map_symbol_names_psymtab.
1016 (map_partial_symbol_names): Rename to ...
1017 (expand_partial_symbol_names): ... here, change the FUN type, call
1018 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1019 * psymtab.h (map_partial_symbol_names): Rename to ...
1020 (expand_partial_symbol_names): ... here, change the FUN type.
1021 * symfile.h (struct quick_symbol_functions): Update the description of
1022 expand_symtabs_matching. Remove map_symbol_names.
1023 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1024 (struct add_name_data): Update the comment for
1025 expand_partial_symbol_name.
1026 (add_partial_symbol_name): Rename to ...
1027 (expand_partial_symbol_name): ... here. Replace
1028 completion_list_add_name call by strncmp.
1029 (default_make_symbol_completion_list_break_on): Use now
1030 expand_partial_symbol_names and expand_partial_symbol_name.
1031 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1033 2011-04-20 Tom Tromey <tromey@redhat.com>
1035 * dwarf2read.c (save_gdb_index_command): Replace format
1036 documentation with a pointer to the manual.
1038 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1040 * regcache.c: Include remote.h.
1041 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1042 (regcache_dump): Handle regcache_dump_remote.
1043 (maintenance_print_remote_registers): New function.
1044 (_initialize_regcache): Install "maint print remote-registers"
1046 * remote.c (map_regcache_remote_table): New function, factored out
1048 (init_remote_state): ... here.
1049 (remote_register_number_and_offset): New.
1050 * remote.h (remote_register_number_and_offset): Declare.
1052 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1054 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1055 null_ptid, assume and allow a NULL address space, instead of
1056 asking the target for the ptid's address space.
1057 * infrun.c (ptid_is_pid): Remove assertion.
1059 2011-04-19 Tom Tromey <tromey@redhat.com>
1061 * windows-tdep.c (windows_xfer_shared_library):
1062 * windows-nat.c (get_module_name, windows_make_so):
1063 * v850-tdep.c (v850_handle_pushm):
1064 * utils.c (null_cleanup, gdb_realpath):
1065 * ui-out.c (get_next_header):
1066 * tracepoint.c (clear_traceframe_info):
1067 * symtab.c (lookup_symtab):
1068 * serial.h (struct serial_ops):
1069 * mipsread.c (read_alphacoff_dynamic_symtab):
1070 * infcmd.c (print_return_value):
1071 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1072 * f-exp.y (parse_number):
1073 * exceptions.c (catch_exceptions):
1074 * dummy-frame.c (dummy_frame_this_id):
1075 * defs.h (struct cleanup):
1076 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1077 * arm-tdep.c (arm_push_dummy_call):
1078 * amd64-tdep.h (amd64_collect_xsave):
1079 * amd64-tdep.c (amd64_collect_xsave):
1080 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1081 * README (typing): Remove duplicate words.
1082 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1083 * infrun.c (siginfo_value_read): Fix typo.
1084 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1085 * top.c (source_line_number): Add comma.
1087 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1089 * thread.c (any_live_thread_of_process): Prioritize threads
1090 that are not executing.
1091 * gdbthread.h (any_live_thread_of_process): Update comment
1092 as per above change.
1094 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1096 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1097 (scan_xcoff_symtab): Likewise.
1099 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1101 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1104 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1105 Pedro Alves <pedro@codesourcery.com>
1107 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1108 variables to simplify code and avoid == operator at end of
1109 line as this is against GNU coding standards.
1111 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1113 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1114 lm_name to name_lm to avoid conflict with lm_name function.
1116 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1118 ARI fixes: Use only lowercase function name for static functions.
1119 * nto-tdep.c (LM_ADDR): Rename to...
1120 (lm_addr): New function name.
1121 (nto_relocate_section_addresses): Adapt to change above.
1122 * solib-sunos.c (LM_ADDR): Rename to...
1123 (lm_addr): New function name.
1124 (LM_NEXT): Rename to...
1125 (lm_next): New function name.
1126 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1127 function name changes above.
1128 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1129 (lm_addr_from_link_map): New function name.
1130 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1131 (has_lm_dynamic_from_link_map): New function name.
1132 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1133 (lm_dynamic_from_link_map): New function name.
1134 (LM_ADDR_CHECK): Rename to...
1135 (lm_addr_check): New function name.
1136 (LM_NEXT): Rename to...
1137 (lm_next): New function name.
1138 (LM_PREV): Rename to...
1139 (lm_prev): New function name.
1140 (LM_NAME): Rename to...
1141 (lm_name): New function name.
1142 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1143 (ignore_first_link_map_entry): New function name.
1144 (svr4_keep_data_in_core): Adapt to function name changes above.
1145 (svr4_current_sos): Likewise.
1146 (enable_break): Likewise.
1147 (svr4_relocate_section_addresses): Likewise.
1149 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1152 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1153 sprintf. Simplify code and avoid loosing memory.
1154 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1155 (call0_frame_cache): Remove && operator from end of line.
1157 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1159 Fix libraries displacement if they change whether they were prelinked.
1160 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1161 does not match. Comment why.
1163 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1165 * corelow.c: Include wrapper.h.
1166 (core_open): Call now gdb_target_find_new_threads.
1167 * wrapper.c: Include target.h.
1168 (gdb_target_find_new_threads): New.
1169 * wrapper.h (gdb_target_find_new_threads): New declaration.
1171 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1173 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1174 even if !TARGET_HAS_EXECUTION.
1176 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1178 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1179 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1180 bfd_get_synthetic_symtab.
1181 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1182 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1183 parameter parent, remove the call to add_separate_debug_objfile.
1184 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1185 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1186 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1187 parent, new comment for it, call add_separate_debug_objfile for it.
1188 (symbol_file_add_separate): Pass objfile as the parameter parent,
1189 remove the call to add_separate_debug_objfile.
1190 (symbol_file_add_from_bfd): New parameter parent, pass it.
1191 (symbol_file_add): Pass NULL to the new parameter parent.
1192 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1194 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1196 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1199 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1201 Fix Python access to inlined frames.
1202 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1203 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1205 2011-04-15 Tom Tromey <tromey@redhat.com>
1207 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1209 2011-04-15 Gary Benson <gbenson@redhat.com>
1211 * MAINTAINERS: Add myself to write-after-approval section.
1213 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1215 * remote-sim.c (sim_command_completer): New function.
1216 (_initialize_remote_sim): Set completer to sim_command_completer.
1218 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1220 * breakpoint.c (print_exception_catchpoint): Rename to ...
1221 (print_it_exception_catchpoint): ... this.
1222 (gnu_v3_exception_catchpoint_ops): Update with new name
1223 for print_it_exception_catchpoint.
1225 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1227 * MAINTAINERS: Add myself for write after approval privileges.
1229 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1231 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1233 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1235 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1237 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1239 * breakpoint.c (save_breakpoints): Verify whether
1240 breakpoint_ops.print_recreate is defined before calling it.
1242 2011-04-11 Gary Benson <gbenson@redhat.com>
1244 Fix failure with --enable-maintainer-mode.
1245 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1247 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1250 * symtab.c (search_symbols): Reorder the KIND description in the
1251 function comment. Remove the unused 4th element of types, types2,
1252 types3 and types4. New gdb_assert on KIND.
1253 (symtab_symbol_info): Remove the unused 4th element of classnames.
1254 New gdb_assert on KIND.
1255 * symtab.h (enum search_domain): New warning in the enum comment.
1256 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1259 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1261 Fix crash of gdb save-index on a STABS file.
1262 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1265 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1267 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1268 * dwarf2read.c: Include ctype.h.
1269 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1271 (dwarf2_add_field): Fix new_field->accessibility by calling
1272 dwarf2_default_access_attribute. Restructure setting accessibility
1274 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1275 is_private and is_protected by calling
1276 dwarf2_default_access_attribute.
1278 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1280 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1281 to the initialization.
1283 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1285 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1288 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1290 Remove support for old Cygwin 1.5 versions.
1291 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1292 function on old Cygwin version.
1293 * windows-nat.c: Remove cygwin version check and always define
1294 __USEWIDE for Cygwin compilation.
1296 2011-04-07 Yao Qi <yao@codesourcery.com>
1298 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1300 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1301 (arm_copy_svc): Remove parameters INSN and TO.
1302 (decode_svc_copro): Update caller.
1303 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1304 from function pointer `copy_svc_os'.
1306 2011-04-07 Yao Qi <yao@codesourcery.com>
1308 * arm-tdep.c (cleanup_branch): Set a correct return address in
1309 LR for ARM and Thumb.
1311 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1315 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1316 in the function comment, a new note on values compatibility.
1317 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1318 * symtab.h (SYMBOL_HASH_NEXT): New.
1320 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1322 * ppc-linux-nat.c (check_condition): Add len output parameter.
1323 Set it based on the memory region referenced in the condition
1324 expression. Update all callers.
1326 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1328 Fix crash regression on systems featuring .gdb_index.
1329 * objfiles.c (free_objfile): Move the
1330 forget_cached_source_info_for_objfile call earlier. Comment it.
1331 Extend the comment for objfile_free_data.
1333 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1335 Fix regression of displaying the debug format.
1336 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1339 2011-04-04 Tom Tromey <tromey@redhat.com>
1341 * cli/cli-interp.c (struct captured_execute_command_args):
1343 (do_captured_execute_command): Remove.
1344 (safe_execute_command): Use TRY_CATCH.
1345 * cli/cli-script.c (struct wrapped_read_command_file_args):
1347 (wrapped_read_command_file): Remove.
1348 (script_from_file): Use TRY_CATCH.
1349 * exceptions.c (catch_exception): Remove.
1350 * exceptions.h (catch_exception): Remove.
1351 (deprecated_throw_reason): Update comment.
1352 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1353 argument to 'context'.
1354 (mi_execute_command): Use TRY_CATCH.
1355 * remote.c (struct start_remote_args): Remove.
1356 (remote_start_remote): Update; change arguments.
1357 (remote_open_1): Use TRY_CATCH.
1359 2011-04-04 Tom Tromey <tromey@redhat.com>
1361 * tracepoint.c (scope_info): Update.
1362 * symtab.c (decode_line_spec): Update.
1363 * python/python.c (gdbpy_decode_line): Update.
1364 * linespec.h (decode_line_1): Update.
1365 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1366 (decode_compound, find_method, symtab_from_filename)
1367 (decode_variable): Likewise.
1368 * cli/cli-cmds.c (edit_command): Update.
1369 (list_command): Update.
1370 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1372 (create_breakpoint): Update.
1373 (until_break_command): Update.
1374 (addr_string_to_sals): Update.
1375 (decode_line_spec_1): Update.
1377 2011-04-04 Tom Tromey <tromey@redhat.com>
1379 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1380 (do_captured_parse_breakpoint): Remove.
1381 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1382 Use TRY_CATCH directly.
1384 2011-04-04 Tom Tromey <tromey@redhat.com>
1386 * symtab.h (free_symtab): Remove.
1387 (forget_cached_source_info_for_objfile): Declare.
1388 * symmisc.c (free_symtab): Remove.
1389 * source.c (forget_cached_source_info_for_objfile): New function.
1390 (forget_cached_source_info): Use it.
1391 * objfiles.c (free_objfile): Simplify check before calling
1392 clear_current_source_symtab_and_line. Call
1393 forget_cached_source_info_for_objfile.
1395 2011-04-04 Tom Tromey <tromey@redhat.com>
1397 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1398 (new_symtab): Don't set `free_code' on symtab.
1399 (new_linetable): Properly handle size==0.
1400 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1401 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1403 * jv-lang.c (struct jv_per_objfile_data): New.
1404 (jv_per_objfile_free): Free the data.
1405 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1406 (get_java_class_symtab): Set the `dict' field on the
1407 jv_per_objfile_data.
1408 (free_class_block): Remove.
1409 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1412 2011-04-04 Tom Tromey <tromey@redhat.com>
1414 * symfile.c (reread_symbols): Update.
1415 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1417 * objfiles.c (allocate_objfile): Update.
1418 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1420 * cp-namespace.c (lookup_symbol_file): Don't call
1421 lookup_possible_namespace_symbol.
1422 (initialize_namespace_symtab, get_possible_namespace_block)
1423 (free_namespace_block, cp_check_possible_namespace_symbols)
1424 (check_possible_namespace_symbols_loop)
1425 (check_one_possible_namespace_symbol)
1426 (lookup_possible_namespace_symbol): Remove.
1427 (maintenance_cplus_namespace): Replace with notice.
1428 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1430 2011-04-04 Tom Tromey <tromey@redhat.com>
1432 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1433 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1434 * symmisc.c (free_symtab): Don't free debugformat.
1435 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1436 (record_debugformat, record_producer): Document.
1437 * buildsym.c (end_symtab): Don't save debugformat and producer
1439 (end_symtab): Don't free debugformat and producer fields.
1440 (record_debugformat): Don't call xstrdup.
1441 (record_producer): Likewise.
1443 2011-04-04 Tom Tromey <tromey@redhat.com>
1445 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1446 (source_line_charpos, source_charpos_line): Remove.
1448 2011-04-04 Tom Tromey <tromey@redhat.com>
1450 * symtab.h (domain_enum): Split in two...
1451 (enum search_domain): New.
1452 (search_symbols): Update.
1453 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1454 redundant declarations.
1455 (search_symbols): Change 'kind' argument to search_domain.
1457 (print_symbol_info): Likewise.
1458 (symtab_symbol_info): Likewise.
1459 * symfile.h (struct quick_symbol_functions)
1460 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1461 <expand_symtabs_matching>: Likewise.
1462 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1463 (expand_symtabs_matching_via_partial): Update.
1464 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1465 (dw2_expand_symtabs_for_function): Update.
1466 * block.h: Moved anonymous enum...
1467 * defs.h (enum block_enum): ... here. Now named.
1469 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1471 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1472 * version.in: Bump version to 7.3.50.20110403-cvs.
1474 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1476 * NEWS: Create a new section for the next release branch.
1477 Rename the section of the current branch, now that it has
1480 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1482 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1483 for "fpscr" in target description.
1485 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1488 initialize it. Delay HASH initialization. Strip the part after open
1489 parenthesis for languages with qualifiers. Call do_cleanups.
1491 2011-04-01 Tom Tromey <tromey@redhat.com>
1493 * utils.c (report_command_stats): Don't print `-' for negative
1496 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1498 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1499 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1502 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1504 * breakpoint.h (bpdisp_text): Add declaration.
1505 * breakpoint.c (bpdisp_text): Make non-static.
1506 * ada-lang.c: #include "mi/mi-common.h".
1507 (print_it_exception): Rewrite to improve GDB/MI output.
1509 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1511 * arm-tdep.h (struct address_space): Add forward declaration.
1513 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1515 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1516 * arm-tdep.c (arm_override_mode): New global.
1517 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1518 execution mode heuristics.
1519 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1520 second single-step breakpoint if needed, using
1521 arm_insert_single_step_breakpoint.
1522 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1523 ARM execution mode, do not call thumb_get_next_pc_raw.
1524 (arm_get_next_pc): Encode execution mode in return value. Call
1525 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1526 (arm_insert_single_step_breakpoint): New function.
1527 (arm_software_single_step): Call it.
1528 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1529 argument to return execution mode of sigreturn target.
1530 (arm_linux_syscall_next_pc): Use it.
1531 (arm_linux_copy_svc): Update call.
1532 (arm_linux_software_single_step): Call
1533 arm_insert_single_step_breakpoint.
1535 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1537 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1540 2011-03-31 Tom Tromey <tromey@redhat.com>
1542 * varobj.c (update_dynamic_varobj_children): Properly handle
1543 errors from iterator.
1545 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1547 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1548 struct linkage name twice.
1550 2011-03-31 Tom Tromey <tromey@redhat.com>
1552 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1553 missing ">" to message.
1555 2011-03-31 Tom Tromey <tromey@redhat.com>
1557 * varobj.c (instantiate_pretty_printer): Remove duplicate
1560 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1562 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1563 if neither saved value nor register available (e.g. signal frame).
1565 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1567 * macroexp.c (expand): Avoid uninitialized variable
1570 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1572 * breakpoint.c (break_range_command): Fix typo in comment.
1574 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1575 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1577 Implement support for PowerPC BookE ranged breakpoints.
1578 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1579 * breakpoint.h (struct bp_target_info) <length>: New member
1581 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1582 instead of struct breakpoint as argument, and also add ASPACE
1583 and BP_ADDR arguments. Update all callers.
1584 (struct breakpoint_ops) <print_one_detail>: New method.
1585 (struct breakpoint) <addr_string_range_end>: New member variable.
1586 * breakpoint.c (breakpoint_location_address_match): Add function
1588 (insert_bp_location): Set bl->target_info.length.
1589 (breakpoint_here_p): Call breakpoint_location_address_match.
1590 (moribund_breakpoint_here_p): Likewise.
1591 (regular_breakpoint_inserted_here_p): Likewise.
1592 (breakpoint_thread_match): Likewise.
1593 (bpstat_stop_status): Likewise.
1594 (bpstat_check_location): Move call to
1595 breakpoint_ops.breakpoint_hit to the top.
1596 (print_one_breakpoint_location): Call
1597 breakpoint_ops.print_one_detail if available.
1598 (breakpoint_address_match_range): New function.
1599 (breakpoint_location_address_match): Likewise.
1600 (breakpoint_locations_match): Compare the length field of the
1602 (hw_breakpoint_used_count): Count resources used by all locations
1603 in a breakpoint, and use breakpoint_ops.resources_needed if
1605 (breakpoint_hit_ranged_breakpoint): New function.
1606 (resources_needed_ranged_breakpoint): Likewise.
1607 (print_it_ranged_breakpoint): Likewise.
1608 (print_one_ranged_breakpoint): Likewise.
1609 (print_one_detail_ranged_breakpoint): Likewise.
1610 (print_mention_ranged_breakpoint): Likewise.
1611 (print_recreate_ranged_breakpoint): Likewise.
1612 (ranged_breakpoint_ops): New structure.
1613 (find_breakpoint_range_end): New function.
1614 (break_range_command): Likewise.
1615 (delete_breakpoint): Free addr_string_range_end.
1616 (update_breakpoint_locations): Add SALS_END argument. Update
1617 all callers. Calculate breakpoint length if a non-zero SALS_END
1618 is given. Call breakpoint_locations_match instead of
1619 breakpoint_address_match.
1620 (reset_breakpoint): Find SaL of the end of the range if B is a
1622 (_initialize_breakpoint): Register break-range command.
1623 * defs.h (print_core_address): Add function prototype.
1624 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1626 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1627 (ppc_linux_remove_hw_breakpoint): Likewise.
1628 (_initialize_ppc_linux_nat): Initialize
1629 to_ranged_break_num_registers.
1630 * target.c (update_current_target): Add comment about
1631 to_ranged_break_num_registers.
1632 (target_ranged_break_num_registers): New function.
1633 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1635 (target_ranged_break_num_registers): Add function prototype.
1636 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1637 * utils.c (print_core_address): ... here.
1639 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1641 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1642 variable compiler warning.
1644 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1646 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1648 (re_set_breakpoint): ... to here ...
1649 (addr_string_to_sals): ... and here.
1651 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1653 * Makefile.in (SFILES): Add missing C sources.
1654 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1655 Add missing headers.
1657 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1659 * .gitignore: New file.
1661 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1663 * NEWS: Mention new cfi device simulation.
1665 2011-03-29 Tom Tromey <tromey@redhat.com>
1667 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1668 otherwise anonymous types.
1669 (dwarf2_name): Likewise.
1670 * valops.c (value_struct_elt_for_reference): Refine artificial
1671 type logic. Call error if j==-1.
1673 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1675 Fix false GCC warning.
1676 * infcall.c (find_function_addr): Initialize funaddr.
1678 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1680 Fix mingw compilation with --enable-targets=all.
1681 * remote-mips.c (gdb_usleep.h): Include header.
1682 (mips_enter_debug): Use gdb_usleep instead of sleep.
1684 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 Support resolution of STT_GNU_IFUNC via breakpoints.
1687 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1688 bp_gnu_ifunc_resolver_return.
1689 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1690 the loop. Support bp_gnu_ifunc_resolver and
1691 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1692 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1694 (bptype_string, print_one_breakpoint_location): Support
1695 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1696 (user_settable_breakpoint): Return true also for
1697 bp_gnu_ifunc_resolver.
1698 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1699 bp_gnu_ifunc_resolver_return.
1700 (set_breakpoint_location_function): New parameter explicit_loc,
1701 describe it. Call find_pc_partial_function_gnu_ifunc with new
1702 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1703 EXPLICIT_LOC is not set.
1704 (set_raw_breakpoint): Set EXPLICIT_LOC for
1705 set_breakpoint_location_function.
1706 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1707 set_breakpoint_location_function.
1708 (mention): Support bp_gnu_ifunc_resolver and
1709 bp_gnu_ifunc_resolver_return.
1710 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1711 set_breakpoint_location_function.
1712 (update_breakpoint_locations): Remove static.
1713 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1714 bp_gnu_ifunc_resolver_return.
1715 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1716 bp_gnu_ifunc_resolver_return.
1717 (update_breakpoint_locations): New declaration.
1718 * elfread.c: Include gdbthread.h and regcache.h.
1719 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1721 (elf_gnu_ifunc_fns): Install them.
1722 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1723 (stub_gnu_ifunc_resolver_return_stop): New functions.
1724 (stub_gnu_ifunc_fns): Install them.
1725 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1726 and gnu_ifunc_resolver_return_stop.
1727 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1729 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 STT_GNU_IFUNC reader implementation.
1732 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1733 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1734 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1735 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1736 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1737 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1738 (elf_gnu_ifunc_resolve_addr): New.
1739 (elf_symfile_read): Call elf_rel_plt_read.
1740 (elf_gnu_ifunc_fns): New.
1741 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1742 Install elf_gnu_ifunc_fns.
1743 * infcall.c (find_function_return_type): New function.
1744 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1745 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1746 (stub_gnu_ifunc_resolve_name): New functions.
1747 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1748 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1749 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1751 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1753 Code cleanup for later STT_GNU_IFUNC support.
1754 * infcall.c (find_function_addr): Remove variable code, use explicit
1755 dereferences for it. Move VALUE_TYPE initialization later.
1757 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1759 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1760 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1761 (clear_pc_function_cache): Clear it.
1762 (find_pc_partial_function): Rename to ...
1763 (find_pc_partial_function_gnu_ifunc): ... this function. New
1764 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1765 (find_pc_partial_function): New wrapper for this function.
1766 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1768 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1770 GDB internal type support for STT_GNU_IFUNC.
1771 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1772 (elf_symtab_read): Set mst_text_gnu_ifunc for
1773 BSF_GNU_INDIRECT_FUNCTION.
1774 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1775 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1776 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1777 nodebug_got_plt_symbol.
1778 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1779 (TYPE_GNU_IFUNC): New.
1780 (struct main_type): New field flag_gnu_ifunc.
1781 (struct builtin_type): New field builtin_func_func.
1782 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1783 nodebug_got_plt_symbol.
1784 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1785 (in_gnu_ifunc_stub): New.
1786 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1788 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1789 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1790 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1792 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1793 * symtab.c (search_symbols): Likewise.
1794 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1795 and mst_slot_got_plt.
1796 (in_gnu_ifunc_stub): New declaration.
1798 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1800 Support a ring of related breakpoints.
1801 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1802 other functions, add gdb_assert.
1803 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1804 watchpoint_del_at_next_stop.
1805 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1806 (bpstat_stop_status): Handle ring in related_breakpoint.
1807 (set_raw_breakpoint_without_location): Initialize ring in
1809 (delete_breakpoint): Handle ring in related_breakpoint, use
1810 watchpoint_del_at_next_stop.
1811 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1813 2011-03-28 Tom Tromey <tromey@redhat.com>
1816 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1817 with `language_minimal'.
1819 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1821 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1822 instead of checking for STT_ARM_TFUNC symbol type.
1824 2011-03-25 Tom Tromey <tromey@redhat.com>
1826 * linespec.c (symbol_found): Restore line-based result for
1827 non-LOC_LABEL symbols.
1829 2011-03-25 Kai Tietz <ktietz@redhat.com>
1831 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1832 instead of strcmp for comparison.
1833 (tui_source_is_displayed): Likewise.
1834 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1836 2011-03-24 Mark Wielaard <mjw@redhat.com>
1838 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1840 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1841 (find_partial_die_in_comp_unit): Likewise in comment.
1842 (read_attribute_value): Likewise.
1843 (lookup_die_type): Likewise.
1844 (dwarf_form_name): Likewise.
1845 (dump_die_shallow): Likewise.
1846 (follow_die_ref_or_sig): Likewise.
1848 2011-03-24 Tom Tromey <tromey@redhat.com>
1850 PR breakpoints/11816:
1851 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1852 (decode_compound): Update.
1853 (find_function_symbol): New function.
1854 (decode_dollar): Update.
1855 (decode_label): Add 'function_symbol' parameter. Handle
1856 function-relative labels.
1857 (decode_variable): Update.
1858 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1859 not its line. Set `special_display' and canonical name for
1862 2011-03-24 Tom Tromey <tromey@redhat.com>
1864 * linespec.h (struct linespec_result) <special_display>: New
1866 * breakpoint.h (struct breakpoint) <display_canonical>: New
1868 * breakpoint.c (print_breakpoint_location): Respect
1870 (create_breakpoint_sal): Add 'display_canonical' parameter.
1871 (create_breakpoints_sal): Update.
1872 (create_breakpoint): Update.
1874 2011-03-24 Tom Tromey <tromey@redhat.com>
1876 * symtab.c (decode_line_spec): Update.
1877 * linespec.c (build_canonical_line_spec): Change type of
1879 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1880 (find_method, decode_all_digits, decode_dollar, decode_label)
1881 (symbol_found): Likewise.
1882 (init_linespec_result): New function.
1883 * breakpoint.c (struct captured_parse_breakpoint_args)
1884 <canonical_p>: New field, replaces addr_string_p.
1885 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1887 (parse_breakpoint_sals): Likewise.
1888 (do_captured_parse_breakpoint): Update.
1889 (create_breakpoint): Use struct linespec_result.
1890 (until_break_command): Update.
1891 (breakpoint_re_set_one): Update.
1892 (decode_line_spec_1): Update.
1893 * linespec.h (struct linespec_result): New.
1894 (init_linespec_result): Declare.
1896 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1898 * regcache.c (regcache_raw_read): If the target didn't supply a
1899 given raw register, mark it as unavailable.
1901 2011-03-23 Kai Tietz <ktietz@redhat.com>
1903 * breakpoint.c (clear_command): Use filename_cmp
1904 instead of strcmp for comparison.
1905 * buildsym.c (watch_main_source_file_lossage): Likewise.
1906 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1907 checking just for slash.
1908 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1909 strrchr and filename_cmp instead of strcmp for filenames.
1910 (add_old_header_file): Use filename_cmp
1911 instead of strcmp for comparison.
1912 * exec.c (exec_set_section_address): Likewise.
1913 * macrotab.c (macro_lookup_inclusion): Likewise.
1914 (macro_lookup_inclusion): Likewise.
1915 * elfread.c (_initialize_elfread): Likewise.
1916 (elfstab_offset_sections): Likewise.
1917 (elfstab_offset_sections): Use lbasename instead of
1919 * mdebugread.c (parse_partial_symbols): Likewise.
1920 (arse_partial_symbols): Use filename_(n)cmp instead of
1921 str(n)cmp for comparison.
1922 * minsyms.c (lookup_minimal_symbol): Likewise.
1923 * psymtab.c (read_psymtabs_with_filename): Likewise.
1924 * solib.c (solib_read_symbols): Likewise.
1925 (reload_shared_libraries_1): Likewise.
1926 * symmisc.c (maintenance_print_symbols): Likewise.
1927 * symfile.c (separate_debug_file_exists): Likewise.
1928 (reread_symbols): Likewise.
1929 (find_separate_debug_file_by_debuglink): Likewise.
1930 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1931 * source.c (add_path): Likewise.
1932 * symtab.c (filename_seen): Likewise.
1933 (file_matches): Likewise.
1934 (print_symbol_info): Likewise.
1935 (maybe_add_partial_symtab_filename): Likewise.
1936 (make_source_files_completion_list): Likewise.
1937 * xml-syscall.c (init_sysinfo): Likewise.
1938 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1939 IS_DIR_SEPARATOR for checking for trailing path separator.
1941 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1944 label abort_expression.
1945 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1946 DWARF_VALUE_OPTIMIZED_OUT.
1948 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1951 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1952 to linkage_name. Invert its value. Update the function comment.
1953 (c_type_print_varspec_suffix): Invert it at the caller.
1954 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1956 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1958 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1959 errors when reading the `stop_pc'.
1960 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1963 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1965 * NEWS: Document gdb.Write stream keyword.
1967 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1972 (dwarf2_add_field): Fix new_field->accessibility for
1973 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1975 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1979 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1980 other error classes. Do not print stack trace.
1982 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1984 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1985 (dwarf2_add_field): Fix new_field->accessibility for
1986 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1988 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1990 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1991 encountering a load via a non-SP register.
1993 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1995 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1996 field in returned unwinder.
1998 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2002 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2004 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2007 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2009 * frame.c (frame_unwind_register): Throw an error if unwinding the
2011 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2012 an unwind stop reason.
2013 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2014 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2015 UNWIND_UNAVAILABLE>: New.
2016 * inline-frame.c (inline_frame_unwind): Install
2017 default_frame_unwind_stop_reason.
2018 * frame-unwind.c: Include "exceptions.h".
2019 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2020 (default_frame_unwind_stop_reason): New.
2021 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2022 (default_frame_unwind_stop_reason): Declare.
2023 (struct frame_unwind) <stop_reason>: New function pointer.
2025 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2026 * dwarf2-frame.c: Include exceptions.h.
2027 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2028 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2029 computing the CFA. If such an error was thrown, set
2030 unavailable_retaddr.
2031 (dwarf2_frame_unwind_stop_reason): New.
2032 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2034 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2035 (dwarf2_signal_frame_unwind): Ditto.
2037 * amd64-tdep.c: Include "exceptions.h".
2038 (struct amd64_frame_cache): New field "base_p".
2039 (amd64_init_frame_cache): Clear it.
2040 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2041 Avoid reading registers with functions that throw if the register
2042 is not necessary to compute the frame base.
2043 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2044 swallowing NOT_AVAILABLE_ERROR.
2045 (amd64_frame_unwind_stop_reason): New.
2046 (amd64_frame_this_id): Don't build a frame id if the frame base
2048 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2049 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2050 base_p if the frame base was computable.
2051 (amd64_sigtramp_frame_unwind_stop_reason): New.
2052 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2053 frame base was unavailable.
2054 (amd64_sigtramp_frame_unwind): Install
2055 amd64_sigtramp_frame_unwind_stop_reason.
2056 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2057 base_p if the frame base was computable.
2058 (amd64_epilogue_frame_unwind_stop_reason): New.
2059 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2060 frame base was unavailable.
2061 (amd64_epilogue_frame_unwind): Install
2062 amd64_epilogue_frame_unwind_stop_reason.
2063 * i386-tdep.c: Include "exceptions.h".
2064 (struct i386_frame_cache): New field "base_p".
2065 (i386_init_frame_cache): Clear it.
2066 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2067 Avoid reading registers with functions that throw if the register
2068 is not necessary to compute the frame base.
2069 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2070 swallowing NOT_AVAILABLE_ERROR.
2071 (i386_frame_unwind_stop_reason): New.
2072 (i386_frame_this_id): Don't build a frame id if the frame base was
2074 (i386_frame_prev_register): Handle unavailable SP.
2075 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2076 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2077 base_p if the frame base was computable.
2078 (i386_epilogue_frame_unwind_stop_reason): New.
2079 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2080 base was unavailable.
2081 (i386_epilogue_frame_unwind): Install
2082 i386_epilogue_frame_unwind_stop_reason.
2083 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2084 base_p if the frame base was computable.
2085 (i386_sigtramp_frame_unwind_stop_reason): New.
2086 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2087 base was unavailable.
2088 (i386_sigtramp_frame_unwind): Install
2089 i386_sigtramp_frame_unwind_stop_reason.
2090 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2091 type's size, not the register's.
2092 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2094 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2095 default_frame_unwind_stop_reason.
2096 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2097 (alpha_heuristic_frame_unwind): Ditto.
2098 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2099 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2100 * avr-tdep.c (avr_frame_unwind): Ditto.
2101 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2103 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2104 * frv-tdep.c (frv_frame_unwind): Ditto.
2105 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2106 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2107 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2108 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2109 (hppa_stub_frame_unwind): Ditto.
2110 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2111 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2112 (ia64_libunwind_frame_unwind)
2113 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2114 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2115 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2116 * m32c-tdep.c (m32c_unwind): Ditto.
2117 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2118 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2119 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2120 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2121 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2122 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2123 * mep-tdep.c (mep_frame_unwind): Ditto.
2124 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2125 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2126 (mips_stub_frame_unwind): Ditto.
2127 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2128 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2129 * mt-tdep.c (mt_frame_unwind): Ditto.
2130 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2131 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2132 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2133 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2134 (s390_sigtramp_frame_unwind): Ditto.
2135 * score-tdep.c (score_prologue_unwind): Ditto.
2136 * sh-tdep.c (sh_frame_unwind): Ditto.
2137 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2138 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2139 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2140 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2141 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2142 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2143 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2144 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2145 (sparc64obsd_trapframe_unwind): Ditto.
2146 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2147 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2148 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2149 * v850-tdep.c (v850_frame_unwind): Ditto.
2150 * vax-tdep.c (vax_frame_unwind): Ditto.
2151 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2152 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2153 * xtensa-tdep.c (xtensa_unwind): Ditto.
2155 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2157 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2158 there's always a frame. Use get_frame_pc_if_available instead of
2159 get_frame_pc, and if there's no PC available, don't look up a
2162 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2164 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2167 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2169 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2172 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2174 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2175 * frame.c (frame_unwind_caller_pc_if_available): New.
2176 * stack.c (frame_info): Handle unavailable PC.
2178 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2180 * frame.c (frame_unwind_pc): Rename to ...
2181 (frame_unwind_pc_if_available): ... this. New `pc' output
2182 parameter. Change return type to int. Gracefully handle
2183 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2184 happened, or 1 otherwise.
2185 (frame_unwind_pc): Reimplement on top of
2186 frame_unwind_pc_if_available.
2187 (get_frame_func): Rename to ...
2188 (get_frame_func_if_available): New `pc' output parameter. Change
2189 return type to int. Gracefully handle the PC not being available.
2190 (get_frame_func): Reimplement on top of
2191 get_frame_func_if_available.
2192 (select_frame): Handle the PC being unavailable.
2193 (get_prev_frame): Handle the PC being unavailable.
2194 (get_frame_pc_if_available): New.
2195 (get_frame_address_in_block_if_available): New.
2196 (find_frame_sal): Handle the frame PC not being available.
2197 * frame.h (get_frame_pc_if_available): Declare.
2198 (get_frame_address_in_block_if_available): Declare.
2199 (get_frame_func_if_available): Declare.
2200 * stack.c (print_frame_info): Handle the PC being unavailable.
2201 (find_frame_funname): Ditto.
2202 (print_frame): Handle the PC being unavailable.
2203 (get_frame_language): Ditto.
2204 * blockframe.c (get_frame_block): Ditto.
2205 * macroscope.c (default_macro_scope): Ditto.
2206 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2208 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2210 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2211 NOT_AVAILABLE_ERROR when evaluating the location expression.
2213 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2215 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2216 returning that the register piece is unavailable/optimized out.
2217 (write_pieced_value): Handle get_frame_register_bytes returning
2218 that the register piece is unavailable/optimized out when doing a
2219 read-modify write of a bitfield.
2220 * findvar.c (value_from_register): Handle get_frame_register_bytes
2221 returning that the register piece is unavailable/optimized out.
2222 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2223 and `unavailablep'. Throw error on bad debug info. Use
2224 frame_register instead of frame_register_read, to fill in the new
2226 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2228 * valops.c: (value_assign): Adjust, and handle
2229 get_frame_register_bytes failing.
2230 * spu-tdep.c: Include exceptions.h.
2231 (spu_software_single_step): Adjust, and handle
2232 get_frame_register_bytes failing.
2233 (spu_get_longjmp_target): Ditto.
2234 * gdbarch.sh (register_to_value): Change to return int. New
2235 parameters `optimizedp' and `unavailablep'.
2236 * gdbarch.h, gdbarch.c: Regenerate.
2237 * i386-tdep.c (i386_register_to_value): Adjust to new
2238 gdbarch_register_to_value interface.
2239 * i387-tdep.c (i387_register_to_value): Ditto.
2240 * i387-tdep.h (i387_register_to_value): Ditto.
2241 * alpha-tdep.c (alpha_register_to_value): Ditto.
2242 * ia64-tdep.c (ia64_register_to_value): Ditto.
2243 * m68k-tdep.c (m68k_register_to_value): Ditto.
2244 * mips-tdep.c (mips_register_to_value): Ditto.
2245 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2247 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2249 * findvar.c (value_of_register): Mark the value as unavailable, if
2250 the register is unavailable.
2251 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2252 (frame_register): New `unavailablep' parameter.
2253 (frame_register_read): Update comment.
2254 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2255 Set it if the register is unavailable. If the register is
2256 unavailable, clear the output buffer.
2257 (frame_register): New `unavailablep' parameter. Pass it down.
2258 (frame_unwind_register): Adjust.
2259 (put_frame_register): Adjust.
2260 (frame_register_read): Adjust. Also return false if the register
2262 (frame_register_unwind_location): Adjust.
2263 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2264 is unavailable, mark the value accordingly.
2265 * stack.c (frame_info): Handle unavailable registers.
2267 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2269 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2270 simplify, using regcache_cooked_read.
2272 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2274 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2275 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2276 (regcache_raw_read_unsigned, regcache_raw_read_part)
2277 (regcache_cooked_read, regcache_cooked_read_signed)
2278 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2279 (regcache_cooked_read_ftype): Change return to enum
2281 * regcache.c: Include exceptions.h
2282 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2283 (do_cooked_read): Change return to enum register_status. Always
2284 forward to regcache_cooked_read.
2285 (regcache_raw_read): Change return to enum register_status. If
2286 the register is not REG_VALID, memset the buffer. Return the
2288 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2289 return the register's status.
2290 (regcache_raw_read_unsigned): Ditto.
2291 (regcache_cooked_read): Change return to enum register_status.
2292 Assert that with read-only regcaches, the register's status must
2293 be known. If the regcache is read-only, and the register is not
2294 REG_VALID, memset the buffer. Return the register's status.
2295 (regcache_cooked_read_signed): Change return to enum
2296 register_status. Handle non-REG_VALID registers and return the
2298 (regcache_cooked_read_unsigned): Change return to enum
2299 register_status. Handle non-REG_VALID registers and return the
2301 (regcache_xfer_part, regcache_raw_read_part)
2302 (regcache_cooked_read_part): Change return to enum
2303 register_status. Return the register's status.
2304 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2306 (regcache_dump): Handle unavailable cooked registers.
2307 * frame.c (do_frame_register_read): Adjust interface to match
2308 regcache_cooked_read_ftype.
2309 * gdbarch.sh (pseudo_register_read): Change return to enum
2311 * gdbarch.h, gdbarch.c: Regenerate.
2313 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2315 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2316 register_status. If reading a raw register indicates the raw
2317 register is not valid, return the raw register's status,
2318 otherwise, return REG_VALID.
2319 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2320 register_status. Handle non-REG_VALID raw registers and return
2321 the register's status.
2322 * arm-tdep.c (arm_neon_quad_read)
2323 (arm_pseudo_read): Change return to enum register_status. Handle
2324 non-REG_VALID raw registers and return the register's status.
2325 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2326 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2327 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2328 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2329 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2331 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2332 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2333 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2334 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2335 (m32c_pseudo_register_read): Change return to enum
2336 register_status. Adjust.
2337 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2338 enum register_status. Return the register's status.
2339 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2340 register_status. Return the register's status.
2341 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2342 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2343 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2344 * rs6000-tdep.c (move_ev_register_func): New typedef.
2345 (e500_move_ev_register): Use it. Change return to enum
2346 register_status. Return the register's status.
2347 (do_regcache_raw_read): New function.
2348 (do_regcache_raw_write): New function.
2349 (e500_pseudo_register_read): Change return to enum
2350 register_status. Return the register's status. Use
2351 do_regcache_raw_read.
2352 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2353 (dfp_pseudo_register_read): Change return to enum register_status.
2354 Return the register's status.
2355 (vsx_pseudo_register_read): Ditto.
2356 (efpr_pseudo_register_read): Ditto.
2357 (rs6000_pseudo_register_read): Ditto.
2358 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2359 register_status. Return the register's status.
2360 * sh64-tdep.c (pseudo_register_read_portions): New function.
2361 (sh64_pseudo_register_read): Change return to enum
2362 register_status. Use pseudo_register_read_portions. Return the
2364 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2365 register_status. Return the register's status.
2366 * sh-tdep.c (pseudo_register_read_portions): New function.
2367 (sh_pseudo_register_read): Change return to enum register_status.
2368 Use pseudo_register_read_portions. Return the register's status.
2369 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2370 enum register_status. Return the register's status.
2371 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2372 * spu-tdep.c (spu_pseudo_register_read_spu)
2373 (spu_pseudo_register_read): Ditto.
2374 * xtensa-tdep.c (xtensa_register_read_masked)
2375 (xtensa_pseudo_register_read): Ditto.
2376 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2378 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2380 * python/py-value.c (valpy_getitem): Fix formatting of error function
2383 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2385 ARI fixes: Add missing internationalization markups throughout
2387 * darwin-nat-info.c: Ditto.
2390 * mi/mi-main.c: Ditto.
2392 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2394 ARI fixes: Add missing internationalization markups throughout
2397 * cp-name-parser.y: Ditto.
2400 * objc-exp.y: Ditto.
2403 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2405 ARI fixes: Messages should have no trailing new lines.
2406 * darwin-nat.c (mach_check_error): Remove trailing new line from
2407 warning function call message.
2408 * record.c (bfdcore_read): Idem for error call.
2410 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2412 * common/signals.c (target_signal_from_host): Add _ markup to error
2413 function call message.
2414 (target_signal_to_host): Add _ markup and remove trailing new line
2415 from warning call message.
2416 (target_signal_from_command): Add _ markup to error function call
2419 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2423 * python/python.c (gdbpy_write): Accept a stream argument and
2424 operate to the appropriate stream.
2425 (gdbpy_flush): Likewise.
2426 (_initialize_python): Add stream constants.
2427 (finish_python_initialization): Add GdbOutputErrorFile class.
2429 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2431 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2433 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2435 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2436 to store_signed_integer. Add debug message when relocating CALL
2437 instructions. Fix formatting of debug message.
2438 * i386-tdep.c (i386_relocate_instruction): Ditto.
2440 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2442 * target.h (struct target_ops): Remove to_lookup_symbol field.
2443 (target_lookup_symbol): Delete macro.
2444 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2445 (update_current_target, setup_target_debug): Remove handling
2446 of to_lookup_symbol target_ops field.
2447 * ada-tasks.c (get_known_tasks_addr): Remove use of
2448 target_lookup_symbol.
2449 * coffread.c (coff_symtab_read): Likewise.
2450 * dbxread.c (read_dbx_symtab): Ditto.
2452 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2455 * configure.ac: Add getthrds declaration check.
2456 * configure, config.in: Regenerate.
2457 * aix-thread.c (getthrds): Declare only if not already declared
2458 in procinfo.h. More declaration out of get_signaled_thread to
2461 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2463 * python/py-symtab.c: Populate symtab_object_methods,
2465 (stpy_is_valid): New function.
2466 (salpy_is_valid): Ditto.
2467 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2468 (sympy_is_valid): New function.
2469 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2470 (objfpy_is_valid): New function.
2471 * python/py-inferior.c: Populate inferior_object_methods.
2472 (infpy_is_valid): New function.
2473 * python/py-infthread.c: Populate thread_object_methods.
2474 (thpy_is_valid): New function.
2475 * python/py-block.c: Declare block_object_methods. Populate. Declare
2476 block_iterator_object_methods. Populate.
2477 (blpy_is_valid): New function.
2478 (blpy_iter_is_valid): Ditto.
2480 2011-03-16 Keith Seitz <keiths@redhat.com>
2482 * linespec.c (find_methods): Canonicalize NAME before looking
2484 (name_end): New function.
2485 (keep_name_info): New function.
2486 (decode_line_1): Use keep_name_info.
2487 (decode_compound): Likewise.
2488 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2489 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2492 * linespec.c (locate_first_half): Keep overload information, too.
2493 (decode_compound): Use a string to represent break characters
2495 If P points to a break character, do not increment it.
2496 For C++ and Java, keep overload information and relevant keywords.
2497 If we cannot find a symbol, search the minimal symbols.
2500 * linespec.c (decode_compound): Rename SAVED_ARG to
2502 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2504 Pass a valid block to lookup_symbol.
2505 (lookup_prefix_sym): Likewise.
2506 (find_method): Construct search name based on SYM_CLASS instead
2508 * psymtab.c (lookup_partial_symbol): Add language parameter.
2509 (lookup_symbol_aux_psymtabs): Likewise.
2510 Don't assume that the psymtab we found was the right one. Search
2511 for the desired symbol in the symtab to be certain.
2512 (psymtab_search_name): New function.
2513 (lookup_partial_symbol): Use psymtab_search_name.
2514 Add language parameter.
2515 (read_symtabs_for_function): Add language parameter and pass to
2516 lookup_partial_symbol.
2517 (find_symbol_file_from_partial): Likewise.
2519 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2522 * dwarf2read.c (noop_record_line): New function.
2523 (dwarf_decode_lines): Ignore line tables for GCd functions.
2525 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2527 Fix ARI warnings about new lines at the end of messages, which
2528 are unneeded as there is a new line added at the end of the message
2530 * darwin-nat.c (darwin_stop_inferior): Ditto.
2531 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2532 * dfp.c (decimal_to_number): Ditto.
2533 * exec.c (print_section_info): Ditto.
2534 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2535 * osdata.c (get_osdata): Ditto.
2536 * record.c (bfdcore_write): Ditto.
2537 * remote-mips.c (mips_readchar): Ditto.
2538 * remote.c (read_ptid): Ditto.
2539 * ser-mingw.c (ser_windows_raw): Ditto.
2540 * tracepoint.c (add_local_symbols): Ditto.
2541 * windows-nat.c (fake_create_process): Ditto.
2543 2011-03-16 Tom Tromey <tromey@redhat.com>
2545 * tracepoint.c (stop_tracing): Don't declare.
2546 * event-top.c (after_char_processing_hook): Add `(void)'.
2548 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2550 * NEWS: Add Parameter sub-classing description.
2552 2011-03-16 Kai Tietz <ktietz@redhat.com>
2554 * MAINTAINERS: Update my e-mail address.
2556 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2558 * MAINTAINERS: Add myself for write after approval privileges.
2560 2011-03-15 Michael Snyder <msnyder@vmware.com>
2562 * frame.c (find_frame_sal): Assert sym is not null.
2564 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2566 * objc-lang.c (selectors_info): Check strchr for null result.
2568 * stabsread.c (define_symbol): Guard against bad stabstring input.
2570 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2572 Remove trailing spaces and tabulations from pascal language
2577 p-valprint.c: Ditto.
2579 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2581 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2582 than LOW. Comment it.
2583 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2584 HIGHPC not strictly higher than LOWPC.
2586 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2588 Fix formatting of function declarations returning a pointer in
2590 * varobj.c (varobj_add_child): Ditto.
2591 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2592 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2594 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2596 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2597 for the "generic" vector ABI used with GCC 4.3 and later.
2598 (ppc64_sysv_abi_return_value): Likewise.
2600 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2602 * infcall.c (call_function_by_hand): Function return value is
2603 always a non_lval, even when using struct_return.
2605 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2607 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2608 (map_display_numbers): New.
2609 (do_delete_display): New.
2610 (undisplay_command): Use map_display_numbers.
2611 (do_enable_disable_display): New.
2612 (enable_disable_display_command): New function.
2613 (enable_display): Delete.
2614 (enable_display_command): New.
2615 (disable_display_command): Reimplement.
2616 (_initialize_printcmd): Adjust "enable display" command to use
2617 `enable_display_command' as callback.
2619 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2621 * NEWS: Add Python breakpoint 'stop' operation.
2623 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2625 * NEWS: Delete duplicate entry. Fix typo.
2627 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2629 Fix ARI warning about function names in first column.
2630 Put prototype declaration on same line as return type.
2631 * objc-exp.y: Ditto.
2633 * python/py-stopevent.h: Ditto.
2634 For long function names, split parameters to
2635 allow function name on same line as return type.
2636 * solib-pa64.c: Ditto.
2639 For long function declaration, use single line.
2640 * hppa-tdep.h: Ditto.
2641 * inferior.h: Ditto.
2643 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2645 * python/python.h: Declare gdbpy_should_stop and
2646 gdbpy_breakpoint_has_py_cond.
2647 * python/python.c: Add python.h to includes. Remove python.h from
2648 HAVE_PYTHON definition
2649 (gdbpy_should_stop): New dummy function.
2650 (gdbpy_breakpoint_has_py_cond): New dummy function.
2651 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2652 sub-classing capabilities.
2653 (gdbpy_should_stop): New function.
2654 (gdbpy_breakpoint_has_py_cond): New function.
2655 (local_setattro): New function.
2656 * breakpoint.c (condition_command): Add check for Python 'stop'
2658 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2659 operation function as part of stop/continue tests.
2661 2011-03-14 Tom Tromey <tromey@redhat.com>
2664 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2665 (needs_frame_dwarf_call): Likewise.
2667 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2669 Fix ARI warning about functions without parameters that do not
2671 * breakpoint.c (all_tracepoints): Replace () by (void).
2672 * f-exp.y (match_string_literal): Ditto.
2674 * m2-exp.y (yylex): Ditto.
2675 * mep-tdep.c (current_me_module): Ditto.
2676 (current_options): Ditto.
2677 (current_cop_data_bus_width): Ditto.
2678 (current_cr_names): Ditto.
2679 (current_cr_is_float): Ditto.
2680 (current_ccr_names): Ditto.
2681 * objc-exp.y (yylex): Ditto.
2682 * p-exp.y (yylex): Ditto.
2683 * remote.c (send_interrupt_sequence): Ditto.
2684 * tracepoint.c (current_trace_status): Ditto.
2685 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2686 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2688 2011-03-11 Michael Snyder <msnyder@vmware.com>
2690 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2691 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2692 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2693 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2694 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2696 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2697 (delete_async_event_handler): Ditto.
2699 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2701 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2703 * top.c (set_verbose): Assert showcmd was found.
2705 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2707 * xtensa-tdep.c (warning_once): Correct style issues.
2709 2011-03-11 Yao Qi <yao@codesourcery.com>
2711 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2713 2011-03-11 Andreas Schwab <schwab@redhat.com>
2715 * common/aclocal.m4: Remove.
2717 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2719 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2720 (xtensa_write_register, xtensa_read_register): Likewise.
2721 (xtensa_hextochar): Removed.
2722 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2724 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2726 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2727 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2728 (xtensa_alloc_frame_cache): Add initialization for new fields.
2729 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2730 (warning_once): New function.
2731 (xtensa_insn_kind): New item c0opc_and.
2732 (call0_classify_opcode): Add the case for AND instruction.
2733 (call0_track_op): Change arguments. New local variable litbase.
2734 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2735 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2737 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2738 (call0_analyze_prologue): Update the comments. Change arguments.
2739 Add the variety of updates to handle extended prologues, which now can
2740 conduct dynamic stack adjustments.
2741 (call0_frame_cache): Likewise.
2742 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2743 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2745 2011-03-10 Michael Snyder <msnyder@vmware.com>
2747 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2748 (cmd_qtframe): Ditto.
2749 (cmd_qtbuffer): Ditto.
2750 (cmd_bigqtbuffer): Ditto.
2752 2011-03-10 Tom Tromey <tromey@redhat.com>
2754 * tracepoint.c (trace_actions_command): Update.
2755 * thread.c (thread_apply_command): Update.
2756 * reverse.c (delete_bookmark_command): Update.
2757 (bookmarks_info): Update.
2758 * printcmd.c (undisplay_command): Update.
2759 * memattr.c (mem_enable_command): Update.
2760 (mem_disable_command): Update.
2761 (mem_delete_command): Update.
2762 * inferior.c (detach_inferior_command): Update.
2763 (kill_inferior_command): Update.
2764 (remove_inferior_command): Update.
2765 * cli/cli-utils.h (struct get_number_or_range_state): New.
2766 (init_number_or_range): Declare.
2767 (get_number_or_range): Update.
2768 * cli/cli-utils.c (init_number_or_range): New function.
2769 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2771 (number_is_in_list): Update.
2772 * breakpoint.h (get_tracepoint_by_number): Update.
2773 * breakpoint.c (map_breakpoint_numbers): Update for change to
2774 get_number_or_range.
2775 (find_location_by_number): Use get_number, not
2776 get_number_or_range.
2777 (trace_pass_set_count): New function.
2778 (trace_pass_command): Update for change to get_number_or_range.
2780 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2783 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2785 * python/py-param.c (add_setshow_generic): Add set/show callback
2786 parameters. Register Python object context.
2787 (get_show_value): New function.
2788 (get_set_value): New function.
2789 (call_doc_function): New function.
2790 (get_doc_string): Move behind get_show_value/get_set_value.
2792 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2794 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2796 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2798 * xtensa-tdep.c (xtensa_read_register): Add comment.
2799 (xtensa_write_register): Likewise.
2800 (xtensa_hextochar): Add comment and update to match coding conventions.
2801 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2802 (execute_l32e, execute_s32e, execute_code): Update comments.
2803 (xtensa_exception_handler_t): Update to match coding conventions.
2804 (xtensa_insn_kind): Likewise.
2806 2011-03-09 Michael Snyder <msnyder@vmware.com>
2808 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2810 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2812 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2814 2011-03-09 Tom Tromey <tromey@redhat.com>
2816 * thread.c (restore_selected_frame): Handle frame_level == -1.
2817 (make_cleanup_restore_current_thread): Use
2818 get_selected_frame_if_set.
2819 * frame.h (get_selected_frame_if_set): Declare.
2820 * frame.c (get_selected_frame_if_set): New function.
2822 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2824 * cli/cli-cmds.c (shell_escape): Use lbasename.
2825 * coffread.c (coff_start_symtab): Constify parameter.
2826 (complete_symtab): Constify `name' parameter.
2827 (coff_symtab_read): Constify `filestring' local.
2828 (coff_getfilename): Constify return and `result' local.
2830 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2831 * linux-fork.c (info_checkpoints_command): Use lbasename.
2832 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2833 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2834 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2835 * procfs.c (procfs_make_note_section): Use lbasename.
2836 * tui/tui-io.c (printable_part): Constity return and parameter.
2838 (print_filename): Constify parameters, and local `s'.
2839 (tui_rl_display_match_list): Constify local `temp'.
2841 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2844 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2845 Fix DWARF-3+ DW_AT_accessibility default assumption.
2846 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2847 cu->header.version >= 3.
2849 2011-03-09 Yao Qi <yao@codesourcery.com>
2851 * common/Makefile.in: Remove.
2852 * common/configure: Remove.
2853 * common/configure.ac: Remove.
2855 2011-03-09 Yao Qi <yao@codesourcery.com>
2858 2011-02-11 Yao Qi <yao@codesourcery.com>
2860 * common/Makefile.in: Add copyright header.
2862 2011-02-11 Yao Qi <yao@codesourcery.com>
2864 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2866 * configure.ac: Add common to sub dir.
2867 * configure: Regenerate.
2869 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2871 * xtensa-tdep.c (call0_ret): New function.
2872 (xtensa_skip_prologue): Speed up analysis.
2874 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2876 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2877 while executing MI command -data-list-changed-registers.
2879 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2881 * xtensa-tdep.c (xtensa_read_register): New function.
2882 (xtensa_write_register): New function.
2883 (xtensa_find_register_by_name): New function.
2884 (xtensa_windowed_frame_cache): Update comments in type description.
2885 (xtensa_frame_cache): Likewise.
2886 (xtensa_window_interrupt_insn): New function.
2887 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2888 (xtensa_insn_kind): Add new instructions.
2889 (rwx_special_register): New function.
2890 (call0_classify_opcode): Add new instructions to the analysis.
2891 (a0_saved, a7_saved, a11_saved): New variables.
2892 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2893 (execute_l32e): New function.
2894 (execute_s32e): New function.
2895 (xtensa_exception_handler_t): New type.
2896 (execute_code): New function.
2897 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2898 analysis for Xtensa Window Exception handlers.
2900 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2902 * xtensa-tdep.c (TX_PS): New.
2903 (windowing_enabled): Update to count for Call0 ABI.
2904 (xtensa_hextochar): New.
2905 (xtensa_init_reggroups): Make algorithm generic.
2906 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2908 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2910 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2912 2011-03-08 Michael Snyder <msnyder@vmware.com>
2914 * i386-tdep.c (i386_follow_jump): Check return value of
2916 (i386_analyze_struct_return): Ditto.
2917 (i386_skip_probe): Ditto.
2918 (i386_match_insn): Ditto.
2919 (i386_skip_noop): Ditto.
2920 (i386_analyze_frame_setup): Ditto.
2921 (i386_analyze_register_saves): Ditto.
2922 (i386_skip_prologue): Ditto.
2923 (i386_skip_main_prologue): Ditto.
2925 * target.c (read_whatever_is_readable): Fix memory leak.
2927 * i386-tdep.c (i386_process_record): Document fall through.
2929 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2931 Fix DWARF-3+ DW_AT_accessibility default assumption.
2932 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2933 cu->header.version >= 3.
2935 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2937 * remote.c (remote_check_symbols): Skip if the target has no
2940 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2942 * target.c (read_whatever_is_readable): Reformat comment,
2943 with a minor typo fix. Minor reformatting of the code.
2945 2011-03-08 Yao Qi <yao@codesourcery.com>
2947 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2948 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2949 Use cached result instead of calling displaced_in_arm_mode again.
2950 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2951 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2952 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2953 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2954 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2955 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2956 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2957 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2958 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2959 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2960 (arm_catch_kernel_helper_return): Likewise.
2961 * gdb/arm-tdep.h : Update function declarations.
2963 2011-03-07 Michael Snyder <msnyder@vmware.com>
2965 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2967 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2969 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2971 * elfread.c (elf_symtab_read): Stop memory leak.
2973 * main.c (captured_main): Fix memory leak.
2975 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2977 * ada-lang.c (compare_names): Call is_name_suffix with string1
2980 2011-03-07 Tom Tromey <tromey@redhat.com>
2982 * xcoffread.c (xcoff_sym_fns): Update.
2983 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2984 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2985 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2986 (symbol_file_add_with_addrs_or_offsets): Likewise.
2987 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2988 * somread.c (som_sym_fns): Update.
2989 * psymtab.h (require_partial_symbols): Declare.
2990 * psymtab.c (require_partial_symbols): New function.
2991 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2992 (ALL_OBJFILE_PSYMTABS): Undef.
2993 (ALL_PSYMTABS): Move from psympriv.h.
2994 (lookup_partial_symtab, find_pc_sect_psymtab)
2995 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2996 (find_last_source_symtab_from_partial)
2997 (forget_cached_source_info_partial)
2998 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2999 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3000 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3001 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3002 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3003 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3004 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3005 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3006 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3008 * mipsread.c (ecoff_sym_fns): Update.
3009 * machoread.c (macho_sym_fns): Update.
3010 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3011 (read_psyms): New function.
3012 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3013 (elf_sym_fns_lazy_psyms): New global.
3014 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3015 dwarf2_build_psymtabs.
3016 * dbxread.c (aout_sym_fns): Update.
3017 * coffread.c (coff_sym_fns): Update.
3019 2011-03-07 Tom Tromey <tromey@redhat.com>
3021 * infrun.c (print_exited_reason): Include inferior id and pid in
3024 2011-03-07 Tom Tromey <tromey@redhat.com>
3026 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3028 (target_has_execution_1): Update.
3029 (target_has_execution_current): Declare.
3030 (target_has_execution): Call target_has_execution_current.
3031 (default_child_has_execution): Update.
3032 * target.c (default_child_has_execution): Add 'the_ptid'
3034 (target_has_execution_1): Likewise.
3035 (target_has_execution_current): New function.
3036 (add_target): Update.
3037 (init_dummy_target): Update.
3038 * remote-m32r-sdi.c (m32r_has_execution): New function.
3039 (init_m32r_ops): Use it.
3040 * record.c (record_core_has_execution): Now static. Add
3041 'the_ptid' parameter.
3042 * inferior.c (have_live_inferiors): Don't save current thread.
3043 Use target_has_execution_1.
3045 2011-03-07 Yao Qi <yao@codesourcery.com>
3047 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3049 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3051 * elfread.c (elf_symtab_read): Minor reformatting.
3053 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3055 * objc-lang.c (selectors_info): Minor reformatting.
3057 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3059 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3061 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3062 Michael Snyder <msnyder@vmware.com>
3064 * ada-valprint.c (ada_val_print_array): Move the declaration of
3065 "byte_order" and "elttype" inside the block where these variables
3066 are actually used. Remove some special handling for the case
3067 where "elttype" and "eltlen" are null. Replace by a comment
3068 and a couple of assertion checks.
3070 2011-03-05 Michael Snyder <msnyder@vmware.com>
3072 * source.c (add_path): Replace semicolon at end of block.
3073 * dwarf2expr.c (execute_stack_op): Ditto.
3075 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3077 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3078 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3079 (bfin-*-*): Likewise.
3081 2011-03-05 Michael Snyder <msnyder@vmware.com>
3083 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3084 * mdebugread.c (parse_symbol): Ditto.
3085 * parse.c (parse_exp_in_context): Ditto.
3086 * source.c (add_path): Ditto.
3087 * utils.c (gnu_debuglink_crc32): Ditto.
3088 * varobj.c (variable_language): Ditto.
3090 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3092 2011-03-04 Michael Snyder <msnyder@vmware.com>
3094 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3096 * symfile.c (simple_overlay_update): Check for null return value
3097 from lookup_minimal_symbol.
3099 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3101 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3103 * eval.c (parse_and_eval_address_1): Remove function.
3104 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3105 instead of parse_and_eval_address_1.
3106 * value.h (parse_and_eval_address_1): Remove prototype.
3108 2011-03-04 Michael Snyder <msnyder@vmware.com>
3110 * remote.c (putpkt_binary): Document that case stmt falls through.
3112 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3114 * breakpointc (print_it_typical): Move NULL check from here...
3115 (print_bp_stop_message): ... to here.
3117 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3119 * breakpoint.c (enable_command): Use break instead of continue,
3120 and fill in a missing break.
3121 (disable_command): Ditto.
3123 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3125 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3126 (terminal_save_ours): Remove misleading comment.
3127 (inflow_inferior_data_cleanup): Free ttystate.
3128 (inflow_inferior_exit): Likewise.
3129 (copy_terminal_info): Copy ttystate.
3131 * serial.c (serial_copy_tty_state): New function.
3132 * serial.h (serial_copy_tty_state): Add prototype.
3133 (struct serial_ops): Add copy_tty_state callback.
3134 * ser-base.c (ser_base_copy_tty_state): New function.
3135 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3136 * ser-go32.c (dos_copy_tty_state): New function.
3137 (dos_ops): Install copy_tty_state callback.
3138 * ser-mingw.c (_initialize_ser_windows): Likewise.
3139 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3140 * ser-unix.c (hardwire_copy_tty_state): New function.
3141 (_initialize_ser_hardwire): Install it.
3143 2011-03-04 Michael Snyder <msnyder@vmware.com>
3145 * breakpoint.c (create_breakpoint): Add missing break statement.
3147 Reverting this patch:
3148 * infcall.c (call_function_by_hand): Add break statements for lint.
3150 Reverting this patch:
3151 * cli/cli-script.c (script_from_file): Add break for lint.
3153 2011-03-04 Michael Snyder <msnyder@vmware.com>
3155 * solib.c (reload_shared_libraries_1): Close memory leak.
3157 2011-03-03 Tom Tromey <tromey@redhat.com>
3160 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3163 2011-03-03 Michael Snyder <msnyder@vmware.com>
3165 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3166 fields of struct 'st' to zero.
3168 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3169 sal.pspace before calling set_current_source_symtab_and_line.
3171 2011-03-03 Yao Qi <yao@codesourcery.com>
3173 * Makefile.in (configure-common): Remove. Let Makefile
3174 in dir common to rebuild itself.
3175 (common/Makefile): Likewise.
3177 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3179 * utils.c (parse_escape): Add i18n markup in error message.
3181 2011-03-03 Yao Qi <yao@codesourcery.com>
3183 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3185 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3186 (displaced_write_reg, displaced_read_reg): Likewise.
3187 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3188 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3189 (cleanup_branch): Replace magic number 14 and 15 with
3190 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3192 2011-03-02 Michael Snyder <msnyder@vmware.com>
3194 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3196 * cli/cli-script.c (script_from_file): Add break for lint.
3198 * mdebugread.c (parse_partial_symbols): Fix indent.
3200 * target-descriptions.c (tdesc_gdb_type): No need to call
3201 xstrdup, callee saves a copy.
3203 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3205 * infcall.c (call_function_by_hand): Add break statements for lint.
3207 * utils.c (parse_escape): Escape the escape char.
3209 * python/py-inferior.c (build_inferior_list): Error out if
3210 PyList_Append fails.
3211 (gdbpy_inferiors): Error out if build_inferior_list fails.
3213 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3216 * record.c (record_restore): Move printf to before error return.
3218 2011-03-02 Yao Qi <yao@codesourcery.com>
3220 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3221 is_thumb and insn_size.
3222 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3223 on both ARM and Thumb mode.
3224 (arm_process_displaced_insn): Set is_thumb and insn_size.
3225 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3226 (arm_displaced_step_fixup): Likewise.
3228 2011-03-01 Michael Snyder <msnyder@vmware.com>
3230 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3232 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3234 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3236 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3238 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3241 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3242 which shadows function parameter.
3244 * tracepoint.c (create_tsv_from_upload): Superfluous call
3245 to xstrdup. Callee already calls xstrdup.
3247 * linespec.c (decode_line_1): Remove unnecessary null check.
3249 * tracepoint.c (scope_info): Fix mem leak, remove underused
3252 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3253 superfluous null check.
3255 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3256 (value_of_builtin_frame_fp_reg): Ditto.
3258 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3260 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3263 * linespec.c (decode_line_1): Check for null before dereference.
3265 * reverse.c (record_restore): Move null-check to before pointer
3268 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3270 * objc-lang.c (selectors_info): Add explanitory comment.
3271 (classes_info): Ditto.
3273 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3275 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3276 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3277 versions of the trampoline. Handle Thumb vs. ARM addresses.
3278 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3279 (arm_linux_init_abi): Install it.
3280 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3281 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3283 2011-02-28 Michael Snyder <msnyder@vmware.com>
3285 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3286 a little bigger, to avoid possibility of an overflow.
3288 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3289 buffers a little bigger, to avoid possibility of an overflow.
3291 * coffread.c (coff_getfilename): Add check to avoid overflow.
3293 * objc-lang.c (selectors_info): Add a small safety margin to
3295 (classes_info): Error out on too long REGEXP.
3297 * infrun.c (handle_inferior_event): Remove unused function call.
3299 * fork-child.c (fork_inferior): Remove ifdef'd code and
3302 * linux-thread-db.c (attach_thread): Discard unused value.
3304 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3306 * remote.c (remote_get_noisy_reply): Discard unused value.
3307 (remote_vcont_resume): Ditto.
3308 (remote_stop_ns): Ditto.
3310 * linespec.c (decode_objc): Delete unused variable.
3312 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3314 * dwarf2read.c (add_partial_symbol): Discard unused values.
3315 (read_base_type): Delete unused variable.
3317 * dbxread.c (read_dbx_symtab): Discard unused value.
3319 * eval.c (evaluate_subexp_standard): Delete unused variable,
3320 and discard unused values.
3322 * infcmd.c (_initialize_infcmd): Discard unused values.
3324 * stabsread.c (rs6000_builtin_type): Missing break statement.
3326 * dbxread.c (process_one_symbol): Discard unused value.
3328 * coffread.c (coff_end_symtab): Delete unused variable.
3330 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3331 (dwarf2_add_typedef): Delete unused variable.
3332 (read_namespace): Ditto.
3333 (dwarf_decode_macros): Ditto.
3335 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3337 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3339 * p-valprint.c (pascal_val_print): Discard unused value.
3341 * utils.c (nquery): Call va_end before return;
3345 * proc-service.c (ps_plog): Call va_end before return.
3347 2011-02-28 Tom Tromey <tromey@redhat.com>
3349 * python/python.c (gdbpy_value_cst): New global.
3350 (_initialize_python): Initialize it.
3351 * python/python-internal.h (gdbpy_value_cst): Declare.
3352 * python/py-value.c (convert_value_from_python): Use
3355 2011-02-28 Michael Snyder <msnyder@vmware.com>
3357 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3359 * breakpoint.c (catch_syscall_completer): Free malloced list.
3361 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3363 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3364 (lval_func_check_synthetic_pointer): Ditto.
3365 (lval_func_free_closure): Fix use-after-free.
3367 2011-02-28 Tom Tromey <tromey@redhat.com>
3369 * psymtab.c (expand_partial_symbol_tables): Use
3370 ALL_OBJFILE_PSYMTABS.
3372 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3374 * objc-lang.c (selectors_info): Error on too long REGEXP.
3376 2011-02-28 Michael Snyder <msnyder@vmware.com>
3378 * python/py-param.c (set_parameter_value): Add missing
3381 * linux-record.c (record_linux_system_call): Add missing
3384 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3386 * breakpoint.c (print_one_breakpoint_location): Remove unused
3387 argument PRINT_ADDRESS_BITS. Update callers.
3388 (print_one_breakpoint): Likewise.
3390 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3392 * breakpoint.c (wrap_indent_at_field): New function.
3393 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3394 Allocate ui_stream locally instead of using STB argument.
3395 (print_one_breakpoint_location): Update call.
3396 * ui-out.c (ui_out_query_field): New function.
3397 * ui-out.h (ui_out_query_field): Add prototype.
3399 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3401 From Michael Snyder <msnyder@vmware.com>
3402 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3404 2011-02-27 Michael Snyder <msnyder@vmware.com>
3406 * objc-lang.c (selectors_info): Prevent string overrun.
3408 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3411 * symtab.c (rbreak_command): Move variable 'file_name' to
3414 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3415 param with a local variable of the same name.
3417 2011-02-27 Michael Snyder <msnyder@vmware.com>
3419 * value.c (value_from_history_ref): New function.
3420 * value.h (value_from_history_ref): Export.
3421 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3422 to parse value history references.
3423 * cli/cli-utils.h (get_number_trailer): Update comment.
3425 2011-02-27 Michael Snyder <msnyder@vmware.com>
3427 * inferior.c (detach_inferior_command): Use get_number_or_range.
3428 (kill_inferior_command): Ditto.
3429 (remove_inferior_command): Ditto.
3430 (initialize_inferiors): Make command names plural.
3431 Update help strings.
3433 2011-02-27 Michael Snyder <msnyder@vmware.com>
3435 * darwin-nat-info.c: Fix comment typo.
3436 * dwarf2expr.h: Ditto.
3437 * fbsd-nat.c: Ditto.
3438 * fbsd-nat.h: Ditto.
3439 * frame-unwind.h: Ditto.
3441 * hppa-hpux-tdep.c: Ditto.
3442 * i386-linux-nat.c: Ditto.
3443 * linux-nat.c: Ditto.
3444 * nbsd-nat.c: Ditto.
3445 * nbsd-nat.h: Ditto.
3446 * ppc-linux-tdep.c: Ditto.
3449 * tui/tui-winsource.c: Ditto.
3451 2011-02-26 Michael Snyder <msnyder@vmware.com>
3453 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3455 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3457 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3458 with a local variable of the same name.
3460 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3461 param with a local variable of the same name.
3462 (i387_supply_xsave): Ditto.
3464 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3465 that it does not shadow a function parameter.
3467 * i386-nat.c (i386_length_and_rw_bits): Document that case
3468 statement is meant to fall through.
3470 * expprint.c (dump_subexp_body_standard): Document that case
3471 statement is meant to fall through.
3473 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3474 dead if statement. Condition can't be false.
3476 2011-02-25 Michael Snyder <msnyder@vmware.com>
3478 * arm-tdep.c: Fix typos in comments.
3479 * bsd-uthread.c: Ditto.
3480 * completer.c: Ditto.
3482 * cp-namespace.c: Ditto.
3483 * cp-support.c: Ditto.
3484 * cris-tdep.c: Ditto.
3486 * dwarf2read.c: Ditto.
3488 * gdbtypes.h: Ditto.
3489 * inferior.h: Ditto.
3490 * mdebugread.c: Ditto.
3491 * mips-tdep.c: Ditto.
3492 * ppc-linux-nat.c: Ditto.
3493 * ppc-linux-tdep.c: Ditto.
3494 * printcmd.c: Ditto.
3495 * sol-thread.c: Ditto.
3496 * solib-frv.c: Ditto.
3498 * sparc64-tdep.c: Ditto.
3499 * spu-tdep.c: Ditto.
3500 * stabsread.c: Ditto.
3505 * python/py-block.c: Ditto.
3506 * python/py-symbol.c: Ditto.
3507 * python/py-symtab.c: Ditto.
3508 * python/py-value.c: Ditto.
3509 * tui/tui-win.c: Ditto.
3511 2011-02-25 Michael Snyder <msnyder@vmware.com>
3513 * inferior.c (print_inferior): Accept a string instead of an int
3514 for requested_inferiors, and use get_number_or_range to parse it.
3515 (info_inferiors_command): Pass args string to print_inferior.
3516 (initialize_inferiors): Change help string for info inferiors.
3517 * inferior.h (print_inferior): Export prototype change.
3519 2011-02-25 Tom Tromey <tromey@redhat.com>
3521 * common/ax.def (invalid2): Set to 0x31.
3523 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3525 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3527 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3529 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3531 2011-02-24 Michael Snyder <msnyder@vmware.com>
3533 * Makefile.in (clean): Make clean should remove generated files
3534 observer.h and observer.inc.
3536 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3538 Revert the following patch (not approved yet):
3539 2011-02-21 Hui Zhu <teawater@gmail.com>
3540 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3541 * ax-gdb.c (gen_printf_expr_callback): New function.
3542 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3543 * ax-general.c (ax_memcpy): New function.
3544 (ax_print): Handle "printf".
3546 * ax.h (ax_memcpy): Forward declare.
3547 * common/ax.def (invalid2): Removed.
3548 (printf): New entry.
3549 * printcmd.c (printcmd.h): New include.
3550 (string_printf): New function.
3551 (ui_printf): Removed.
3552 (printf_command): Remove static. Call string_printf.
3553 (eval_command): Call string_printf.
3554 * printcmd.h: New file.
3555 * tracepoint.c (validate_actionline,
3556 encode_actions_1): handle printf_command.
3558 2011-02-23 Tom Tromey <tromey@redhat.com>
3560 * ax-general.c (ax_pick): Add missing newline.
3562 2011-02-23 Michael Snyder <msnyder@vmware.com>
3564 * breakpoint.c (breakpoint_1): Change first argument from an int
3565 to a char pointer, so that the function now accepts a list of
3566 breakpoints rather than just one. Use new function
3567 'number_is_in_list' to implement.
3568 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3569 (watchpoints_info): Ditto.
3570 (tracepoints_info): Ditto.
3571 (maintenance_info_breakpoints): Ditto.
3572 (_initialize_breakpoint): Update help strings to reflect the fact
3573 that these functions can now take more than one argument.
3574 * cli/cli-utils.c (number_is_in_list): New function.
3575 * cli/cli-utils.h (number_is_in_list): Export.
3577 2011-02-23 Michael Snyder <msnyder@vmware.com>
3579 * memattr.c (mem_enable_command): Use get_number_or_range.
3580 (mem_disable_command): Ditto.
3581 (mem_delete_command): Ditto.
3582 (_initialize_mem): Tweak usage message to reflect multiple
3585 2011-02-22 Doug Evans <dje@google.com>
3587 Add gdb.lookup_global_symbol python function.
3589 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3590 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3591 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3593 2011-02-22 Tom Tromey <tromey@redhat.com>
3595 * language.c (language_class_name_from_physname): Rename
3596 'curr_language' argument to 'lang'; use in body.
3598 2011-02-22 Michael Snyder <msnyder@vmware.com>
3600 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3602 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3604 * frame-unwind.h: Fix comment to mention the this frame, not the
3607 2011-02-22 Tom Tromey <tromey@redhat.com>
3609 * symfile.c (auto_solib_limit): Remove.
3610 * symfile.h (auto_solib_limit): Remove.
3612 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3614 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3616 2011-02-21 Michael Snyder <msnyder@vmware.com>
3618 * gdbthread.h (print_thread_info): Change prototype.
3619 * thread.c (print_thread_info): Accept char* instead of int for
3620 requested_threads argument. Use new function number_is_in_list
3621 to determine which threads to list.
3622 (info_threads_command): Pass char* to print_thread_info.
3623 * cli/cli-utils.c (number_is_in_list): New function.
3624 * cli/cli-utils.h (number_is_in_list): Export.
3625 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3627 (print_one_inferior): Ditto.
3628 (mi_cmd_list_thread_groups): Ditto.
3630 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3632 * common/Makefile.in (CFLAGS): New.
3633 (COMPILE): Add $(CFLAGS).
3635 2011-02-21 Tom Tromey <tromey@redhat.com>
3637 * breakpoint.c (catch_syscall_command_1): Fix typo.
3639 2011-02-21 Tom Tromey <tromey@redhat.com>
3641 * reverse.c: Include cli-utils.h.
3642 * printcmd.c: Include cli-utils.h.
3643 (string_printf): Use skip_spaces.
3644 * cli/cli-utils.h: New file.
3645 * cli/cli-utils.c: New file.
3646 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3647 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3648 * breakpoint.h (get_number, get_number_or_range): Move to
3650 * breakpoint.c: Include cli-utils.h.
3651 (get_number_trailer, get_number, get_number_or_range)
3652 (ep_skip_leading_whitespace): Move to cli-utils.c.
3653 (create_breakpoint_sal, find_condition_and_thread)
3654 (decode_static_tracepoint_spec, watch_command_1)
3655 (watch_maybe_just_location, ep_parse_optional_if_clause)
3656 (catch_fork_command_1, catch_exec_command_1)
3657 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3658 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3659 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3660 (HFILES_NO_SRCDIR): Add cli-utils.h.
3661 (cli-utils.o): New target.
3663 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3665 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3666 before calling discard_all_inferiors.
3668 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3670 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3671 (struct builtin_opencl_type): Remove.
3672 (builtin_opencl_type): Change return type to "struct type **".
3673 (lookup_opencl_vector_type): Update caller.
3674 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3675 (build_opencl_types): Install plain array of "struct type *"
3676 instead of "struct builtin_opencl_type".
3678 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3679 Ulrich Weigand <uweigand@de.ibm.com>
3681 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3682 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3683 (struct arm_linux_hwbp_cap): New type.
3684 (arm_linux_get_hwbp_cap): New function.
3685 (arm_linux_get_hw_breakpoint_count): Likewise.
3686 (arm_linux_get_hw_watchpoint_count): Likewise.
3687 (arm_linux_can_use_hw_breakpoint): Likewise.
3688 (arm_hwbp_type): New type.
3689 (arm_hwbp_control_t): Likewise.
3690 (struct arm_linux_hw_breakpoint): Likewise.
3691 (struct arm_linux_thread_points): Likewise.
3692 (arm_threads): New global variable.
3693 (arm_linux_find_breakpoints_by_tid): New function.
3694 (arm_hwbp_control_initialize): Likewise.
3695 (arm_hwbp_control_is_enabled): Likewise.
3696 (arm_hwbp_control_disable): Likewise.
3697 (arm_linux_hw_breakpoint_initialize): Likewise.
3698 (arm_linux_get_hwbp_type): Likewise.
3699 (arm_linux_hw_watchpoint_initialize): Likewise.
3700 (arm_linux_hw_breakpoint_equal): Likewise.
3701 (arm_linux_insert_hw_breakpoint1): Likewise.
3702 (arm_linux_remove_hw_breakpoint1): Likewise.
3703 (arm_linux_insert_hw_breakpoint): Likewise.
3704 (arm_linux_remove_hw_breakpoint): Likewise.
3705 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3706 (arm_linux_insert_watchpoint): Likewise.
3707 (arm_linux_remove_watchpoint): Likewise.
3708 (arm_linux_stopped_data_address): Likewise.
3709 (arm_linux_stopped_by_watchpoint): Likewise.
3710 (arm_linux_watchpoint_addr_within_range): Likewise.
3711 (arm_linux_new_thread): Likewise.
3712 (arm_linux_thread_exit): Likewise.
3713 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3714 related target callbacks. Register arm_linux_new_thread and
3715 arm_linux_thread_exit.
3716 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3717 * arm-tdep.c (arm_pc_is_thumb): Make global.
3718 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3720 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3722 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3723 per-frame locations while within a function epilogue.
3725 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3727 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3728 to GNU coding standards.
3730 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3732 Allow use of mingw native on Windows 95 OS.
3733 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3734 (ser_windows_close): Only call CancelIo if function exists.
3735 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3736 to check for existence of CancelIo function in kernel32 DLL.
3738 2011-02-21 Hui Zhu <teawater@gmail.com>
3740 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3741 * ax-gdb.c (gen_printf_expr_callback): New function.
3742 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3743 * ax-general.c (ax_memcpy): New function.
3744 (ax_print): Handle "printf".
3746 * ax.h (ax_memcpy): Forward declare.
3747 * common/ax.def (invalid2): Removed.
3748 (printf): New entry.
3749 * printcmd.c (printcmd.h): New include.
3750 (string_printf): New function.
3751 (ui_printf): Removed.
3752 (printf_command): Remove static. Call string_printf.
3753 (eval_command): Call string_printf.
3754 * printcmd.h: New file.
3755 * tracepoint.c (validate_actionline,
3756 encode_actions_1): handle printf_command.
3758 2011-02-19 Michael Snyder <msnyder@vmware.com>
3760 * reverse.c (delete_one_bookmark): Argument is now bookmark
3761 id rather than pointer to bookmark struct.
3762 (delete_bookmark_command): Use get_number_or_range.
3763 (goto_bookmark_command): Parse with get_number instead of strtoul.
3764 (bookmark_1): New function. Print info for one bookmark.
3765 (bookmarks_info): Use get_number_or_range and bookmark_1.
3767 2011-02-18 Michael Snyder <msnyder@vmware.com>
3769 * thread.c (info_threads_command): Re-implement using
3770 get_number_or_range.
3771 (thread_apply_command): Ditto.
3773 2011-02-18 Tom Tromey <tromey@redhat.com>
3775 * common/ax.def: New file.
3776 * ax.h (enum agent_op): Use ax.def.
3777 * ax-general.c (aop_map): Use ax.def.
3779 2011-02-18 Tom Tromey <tromey@redhat.com>
3781 * ax-general.c (aop_map): Add pick and rot.
3782 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3783 <DW_OP_rot>: Implement.
3784 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3786 * ax-general.c (ax_pick): New function.
3788 2011-02-18 Tom Tromey <tromey@redhat.com>
3790 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3792 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3793 Tom Tromey <tromey@redhat.com>
3795 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3796 make_symbol_overload_list_block with NULL BLOCK.
3797 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3799 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3801 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3802 * breakpoint.h (get_number_or_range): Declare.
3803 * printcmd.c (ALL_DISPLAYS): Declare.
3804 (delete_display): Reimplement taking a display pointer.
3805 (undisplay_command): Accept a range of displays to delete, using
3806 get_number_or_range.
3808 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3810 * c-valprint.c (c_val_print): Add embedded_offset to address
3811 for arrays of unspecified length.
3812 * p-valprint.c (pascal_val_print): Likewise.
3814 2011-02-18 Yao Qi <yao@codesourcery.com>
3816 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3817 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3818 (thumb_process_displaced_insn): New.
3819 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3820 call to arm_process_displaced_insn.
3821 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3823 2011-02-17 Tom Tromey <tromey@redhat.com>
3825 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3826 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3827 compile_dwarf_to_ax. No longer static. Call
3828 dwarf2_compile_cfa_to_ax.
3829 (locexpr_tracepoint_var_ref): Update.
3830 (loclist_tracepoint_var_ref): Update.
3831 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3832 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3833 argument; add 'gdbarch' and 'pc'.
3834 (dwarf2_compile_cfa_to_ax): New function.
3835 (dwarf2_frame_cache): Update.
3837 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3839 * ada-lang.c (ada_type_of_array): Fix the size of the array
3840 in the case of an unconstrained packed array.
3842 2011-02-17 Yao Qi <yao@codesourcery.com>
3844 * common/Makefile.in: Add more targets for make.
3846 2011-02-16 Tom Tromey <tromey@redhat.com>
3848 * dwarf2loc.c (unimplemented): Fix typo.
3850 2011-02-16 Tom Tromey <tromey@redhat.com>
3852 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3853 (compile_dwarf_to_ax) <default>: Use unimplemented.
3854 <DW_OP_deref>: Update.
3855 (disassemble_dwarf_expression): Update.
3856 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3857 (decode_locdesc): Update.
3858 * dwarf2expr.h (dwarf_stack_op_name): Update.
3860 2011-02-16 Tom Tromey <tromey@redhat.com>
3862 * ax.h (struct aop_map) <name>: Now const.
3864 2011-02-16 Tom Tromey <tromey@redhat.com>
3866 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3869 2011-02-16 Yao Qi <yao@codesourcery.com>
3871 * infrun.c (get_displaced_step_closure_by_addr): New.
3872 * inferior.h: Declare it.
3873 * arm-tdep.c: (arm_pc_is_thumb): Call
3874 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3877 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3878 Jan Kratochvil <jan.kratochvil@redhat.com>
3881 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3883 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3884 Jan Kratochvil <jan.kratochvil@redhat.com>
3886 * value.c (value_contents_copy_raw): Extend describing comment.
3887 Assert that the destination contents we're overwriting are wholly
3889 (value_contents_copy): Extend describing comment.
3891 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3892 Jan Kratochvil <jan.kratochvil@redhat.com>
3894 * value.c (value_available_contents_eq): Remove redundant local
3895 variables. Fix available contents comparision.
3896 * value.h (value_available_contents_eq): Extend describing
3899 2011-02-16 Yao Qi <yao@codesourcery.com>
3901 * thread.c (info_threads_command): Add missing i18n markup and remove
3904 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3906 * breakpoint.c (longjmp_names): New variable.
3907 (struct breakpoint_objfile_data): New type.
3908 (breakpoint_objfile_key): New variable.
3909 (msym_not_found): New variable.
3910 (msym_not_found_p): New predicate.
3911 (get_breakpoint_objfile_data): New function.
3912 (create_overlay_event_breakpoint): Check per-objfile cache for
3914 (create_longjmp_master_breakpoint): Likewise.
3915 (create_std_terminate_master_breakpoint): Likewise.
3916 (create_exception_master_breakpoint): Likewise.
3917 (_initialize_breakpoint): Register per-objfile data key.
3919 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3921 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3923 (create_longjmp_master_breakpoint): Loop over longjmp names.
3924 (create_std_terminate_master_breakpoint): Const-propagate parameter
3926 (update_breakpoints_after_exec): Adjust.
3927 (breakpoint_re_set): Adjust.
3929 2011-02-15 Michael Snyder <msnyder@vmware.com>
3931 * thread.c (info_threads_command): Process arg as thread id,
3932 or list of thread ids.
3933 (thread_find_command): New command.
3934 (_initialize_thread): Document argument for info threads.
3935 Document 'thread find' command.
3936 * NEWS: Document new command "thread find".
3938 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3940 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3941 * aclocal.m4: Regenerated with aclocal-1.11.1.
3942 * common/configure: Regenerate with autoconf-2.64.
3944 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3946 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3947 bool data type to a size of one byte.
3949 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3950 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 * target.c (memory_xfer_live_readonly_partial): Document where to
3953 look for interface description.
3955 2011-02-15 Yao Qi <yao@codesourcery.com>
3958 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3959 order to store PC value on stack instead of text section.
3961 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3963 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3964 the EFP register set size.
3965 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3966 data from the VMX register.
3967 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3968 and write data from/to the VMX register.
3970 2011-02-14 Michael Snyder <msnyder@vmware.com>
3972 * command.h (enum command_class): New class 'no_set_class', for
3973 "show" commands without a corresponding "set" command.
3974 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3975 * copying.c (_initialize_copying): Ditto for "show copying" and
3977 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3979 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3980 which there is no corresponding "set" command (eg. "show copying").
3982 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3983 Jan Kratochvil <jan.kratochvil@redhat.com>
3985 * exec.c (section_table_available_memory): Change `len' parameter
3987 * exec.h (section_table_available_memory): Ditto.
3988 * value.h (read_value_memory): Rename the `offset' parameter to
3991 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3992 Jan Kratochvil <jan.kratochvil@redhat.com>
3994 * memrange.c (compare_mem_ranges): Mention sort order in
3996 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3997 * tracepoint.c (traceframe_available_memory): Extend comment to
3998 mention what happens to RESULT when the target does not support
4001 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4002 Jan Kratochvil <jan.kratochvil@redhat.com>
4004 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4007 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4009 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4010 No longer handle NULL values.
4012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4014 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4015 * value.c: Include "exceptions.h".
4016 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4018 * cp-abi.c: Include gdb_assert.h.
4019 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4020 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4022 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4023 parameters. No longer returns -1 on error.
4024 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4026 * cp-valprint.c: Include exceptions.h.
4027 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4028 the baseclass_offset. Handle unavailable base classes. Use
4029 val_print_invalid_address.
4030 * p-valprint.c: Include exceptions.h.
4031 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4032 when fetching the baseclass_offset. No longer expect
4033 baseclass_offset returning -1. Handle unavailable base classes.
4034 Use val_print_invalid_address.
4035 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4036 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4037 `embedded_offset' and `val' parameters. Adjust.
4038 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4039 parameter, and change its type to gdb_byte pointer. Add
4040 `embedded_offset' and `val' parameters. Adjust. No longer expect
4041 baseclass_offset returning -1.
4042 (value_dynamic_cast): Use value_contents_for_printing rather than
4043 value_contents. Adjust.
4044 (search_struct_field): No longer expect baseclass_offset returning
4046 (search_struct_method): If reading memory from the target is
4047 necessary, wrap it in a new value to pass to baseclass_offset. No
4048 longer expect baseclass_offset returning -1.
4049 (find_method_list): No longer expect baseclass_offset returning
4050 -1. Use value_contents_for_printing rather than value_contents.
4051 * valprint.c (val_print_invalid_address): New function.
4052 * valprint.h (val_print_invalid_address): Declare.
4053 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4054 and `val' parameters. No longer expect baseclass_offset returning
4056 * gnu-v2-abi.c: Include "exceptions.h".
4057 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4058 parameters. Handle unavailable memory. Recurse through
4059 gnuv2_baseclass_offset directly, rather than through
4060 baseclass_offset. No longer returns -1 on not found, instead
4062 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4063 `val' parameters. Adjust.
4065 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4067 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4068 almost but not quite adjacent.
4070 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4072 * value.h (value_entirely_available): Declare.
4073 * value.c (value_entirely_available): New function.
4074 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4075 real type if the pointer is unavailable.
4077 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4079 * valops.c (value_repeat): Use read_value_memory instead of
4082 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4084 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4085 * value.c (value_contents_copy_raw, value_contents_copy): New
4087 (value_primitive_field): Use value_contents_copy_raw instead of
4089 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4091 (value_array, value_slice): Ditto.
4092 * valarith.c (value_subscripted_rvalue): Use
4093 value_contents_copy_raw instead of memcpy.
4095 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4097 <unavailable> references.
4099 * valops.c (get_value_at): Use value_from_contents_and_address,
4100 avoiding read_memory.
4102 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4104 * c-valprint.c (c_val_print): Print a string with unavailable
4105 contents as an array.
4107 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4109 * value.h (unpack_bits_as_long): Delete declaration.
4110 (unpack_value_bits_as_long): Declare.
4111 (unpack_value_field_as_long): Declare.
4112 (value_field_bitfield): Declare.
4113 * value.c (unpack_bits_as_long): Rename to...
4114 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4115 value parameters. Return the extracted result in a new output
4116 parameter. If the value contents are unavailable, return false,
4117 otherwise return true.
4118 (unpack_value_bits_as_long): New.
4119 (unpack_field_as_long): Rename to...
4120 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4121 Add embedded_offset and value parameters. Return the extracted
4122 result in a new output parameter. If the value contents are
4123 unavailable, return false, otherwise return true.
4124 (unpack_value_field_as_long): New.
4125 (unpack_field_as_long_1): New.
4126 (unpack_field_as_long): Reimplement as wrapper around
4127 unpack_value_field_as_long_1.
4128 (value_field_bitfield): New function.
4129 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4130 unpack_value_bits_as_long. Mark the value as unavailable, if it
4132 * jv-valprint.c (java_print_value_fields): Use
4133 value_field_bitfield.
4134 * p-valprint.c (pascal_object_print_value_fields): Use
4135 value_field_bitfield.
4136 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4138 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4140 * value.c (get_internalvar_integer): Also return the int value of
4141 TYPE_CODE_INT INTERNALVAR_VALUE values.
4142 (set_internalvar): Don't special case TYPE_CODE_INT.
4144 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4146 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4147 INTERNALVAR_POINTER.
4149 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4150 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4151 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4153 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4155 * value.h (value_available_contents_eq): Declare.
4156 * value.c (find_first_range_overlap): New function.
4157 (value_available_contents_eq): New function.
4158 * valprint.c (val_print_array_elements): Use
4159 value_available_contents_eq.
4160 * ada-valprint.c (val_print_packed_array_elements): Use
4161 value_available_contents_eq.
4162 * jv-valprint.c (java_value_print): Use
4163 value_available_contents_eq.
4165 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4167 * target.c (target_read_live_memory): New function.
4168 (memory_xfer_live_readonly_partial): New.
4169 (memory_xfer_partial): If reading from a traceframe, fallback to
4170 reading unavailable read-only memory from read-only regions of
4172 * tracepoint.c (disconnect_tracing): Adjust.
4173 (set_current_traceframe): New, factored out from
4174 set_traceframe_number.
4175 (set_traceframe_number): Reimplement to only change the traceframe
4176 number on the GDB side.
4177 (do_restore_current_traceframe_cleanup): Adjust.
4178 (make_cleanup_restore_traceframe_number): New.
4179 (cur_traceframe_number): New global.
4180 (tfile_open): Set cur_traceframe_number to no traceframe.
4181 (set_tfile_traceframe): New function.
4182 (tfile_trace_find): If looking up a traceframe using any method
4183 other than by number, make sure the current tfile traceframe
4184 matches gdb's current traceframe. Update the current tfile
4185 traceframe if the lookup succeeded.
4186 (tfile_fetch_registers, tfile_xfer_partial)
4187 (tfile_get_trace_state_variable_value): Make sure the remote
4188 traceframe matches gdb's current traceframe.
4189 * remote.c (remote_traceframe_number): New global.
4190 (remote_open_1): Set it to -1.
4191 (set_remote_traceframe): New function.
4192 (remote_fetch_registers, remote_store_registers)
4193 (remote_xfer_memory, remote_xfer_partial)
4194 (remote_get_trace_state_variable_value): Make sure the remote
4195 traceframe matches gdb's current traceframe.
4196 (remote_trace_find): If looking up a traceframe using any method
4197 other than by number, make sure the current remote traceframe
4198 matches gdb's current traceframe. Update the current remote
4199 traceframe if the lookup succeeded.
4200 * infrun.c (fetch_inferior_event): Adjust.
4201 * tracepoint.h (set_current_traceframe): Declare.
4202 (get_traceframe_number, set_traceframe_number): Add describing
4205 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4207 Mark pieces of values as unavailable if the corresponding memory
4210 * valops.c: Include tracepoint.h.
4211 (value_fetch_lazy): Use read_value_memory.
4212 (read_value_memory): New.
4213 * value.h (read_value_memory): Declare.
4214 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4215 * exec.c (section_table_available_memory): New function.
4216 * exec.h (section_table_available_memory): Declare.
4218 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4220 * Makefile.in (SFILES): Add memrange.c.
4221 (HFILES_NO_SRCDIR): Add memrange.h.
4222 (COMMON_OBS): Add memrange.o.
4223 * memrange.c: New file.
4224 * memrange.h: New file.
4225 * tracepoint.c: Include memrange.h.
4226 (struct mem_range): Delete.
4227 (mem_range_s): Delete.
4228 (traceframe_available_memory): New function.
4229 * tracepoint.h (traceframe_available_memory): Declare.
4231 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4233 * target.h (struct traceframe_info): Forward declare.
4234 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4235 (struct target_ops) <to_traceframe_info>: New field.
4236 (target_traceframe_info): New.
4237 * target.c (update_current_target): Inherit and default
4239 * remote.c (PACKET_qXfer_traceframe_info): New.
4240 (remote_protocol_features): Register qXfer:traceframe-info:read.
4241 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4242 (remote_traceframe_info): New.
4243 (init_remote_ops): Install it.
4244 (_initialize_remote): Install "set/show remote traceframe-info"
4246 * tracepoint.h (parse_traceframe_info): Declare.
4247 * tracepoint.c (struct mem_range): New.
4248 (mem_range_s): New typedef.
4249 (struct traceframe_info): New.
4250 (traceframe_info): New global.
4251 (free_traceframe_info): New function.
4252 (clear_traceframe_info): New function.
4253 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4255 (build_traceframe_info): New function.
4256 (tfile_traceframe_info): New function.
4257 (init_tfile_ops): Install tfile_traceframe_info.
4258 (traceframe_info_start_memory, free_result): New functions.
4259 (memory_attributes, traceframe_info_elements): New globals.
4260 (parse_traceframe_info, get_traceframe_info): New functions.
4261 * features/traceframe-info.dtd: New file.
4262 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4264 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4266 Base support for <unavailable> value contents.
4268 * value.h (value_bytes_available): Declare.
4269 (mark_value_bytes_unavailable): Declare.
4270 * value.c (struct range): New struct.
4271 (range_s): New typedef.
4272 (ranges_overlap): New function.
4273 (range_lessthan): New function.
4274 (ranges_contain_p): New function.
4275 (struct value) <unavailable>: New field.
4276 (value_bytes_available): New function.
4277 (mark_value_bytes_unavailable): New function.
4278 (require_not_optimized_out): Constify parameter.
4279 (require_available): New function.
4280 (value_contents_all, value_contents): Require all bytes be
4282 (value_free): Free `unavailable'.
4283 (value_copy): Copy `unavailable'.
4284 * valprint.h (val_print_unavailable): Declare.
4285 * valprint.c (valprint_check_validity): Rename `offset' parameter
4286 to `embedded_offset'. If printing a scalar, check whether the
4287 value chunk is available.
4288 (val_print_unavailable): New.
4289 (val_print_scalar_formatted): Check whether the value is
4291 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4292 pretty-printing unavailable values.
4294 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4296 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4297 * c-typeprint.c (c_type_print_args): Update the function comment. New
4298 variable param_type, initialize it. Remove const/volatile qualifiers
4299 for language_cplus and !show_artificial. Use param_type.
4301 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4303 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4304 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4305 * symtab.h (struct symtab) <next>: Comment extension.
4307 2011-02-12 Yao Qi <yao@codesourcery.com>
4309 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4311 2011-02-11 Yao Qi <yao@codesourcery.com>
4313 * common/Makefile.in: Add copyright header.
4315 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4317 * infrun.c (proceed): Move switching out and in of tfind mode from
4319 (fetch_inferior_event): ... to here.
4321 2011-02-11 Yao Qi <yao@codesourcery.com>
4323 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4325 * configure.ac: Add common to sub dir.
4326 * configure: Regenerate.
4328 2011-02-11 Yao Qi <yao@codesourcery.com>
4332 * common/Makefile.in: New.
4333 * common/configure.ac: New.
4334 * common/aclocal.m4: New.
4335 * common/configure: Generate.
4337 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4339 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4340 side of the parenthesis.
4343 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4344 * vec.h (VEC_block_remove): Fix comment.
4346 2011-02-08 Michael Snyder <msnyder@vmware.com>
4348 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4350 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4353 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4356 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4361 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4362 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4364 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4366 * dwarf2read.c (read_subroutine_type): Set special calling
4367 convention flag for functions compiled by IBM XL C for OpenCL.
4368 * ppc-sysv-tdep.c: Include "dwarf2.h"
4369 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4371 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4372 IBM OpenCL vector types calling convention.
4373 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4374 (ppc_sysv_abi_broken_return_value): Likewise.
4375 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4376 types calling convention.
4377 (ppc64_sysv_abi_return_value): Likewise.
4378 * spu-tdep.c: Include "dwarf2.h"
4379 (spu_return_value): Implement IBM OpenCL vector types calling
4382 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4384 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4385 correct ABI for AltiVec vector arguments.
4387 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4389 * valprint.c (val_print): Extend comment.
4390 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4391 interface explanation to val_print.
4392 (ada_val_print_array): Adjust comment to current interface.
4393 (print_field_values): Adjust comment to current interface.
4394 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4395 explanation to val_print.
4396 * f-valprint.c (f_val_print): Ditto.
4397 * jv-valprint.c (java_val_print): Ditto.
4398 * m2-valprint.c (m2_val_print): Ditto.
4399 * p-valprint.c (pascal_val_print): Ditto.
4401 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4403 * breakpoint.c (parse_breakpoint_sals): Fix description.
4405 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4406 Oguz Kayral <oguzkayral@gmail.com>
4408 * python/py-inferior.c (python_on_normal_stop): New function.
4409 (python_on_resume): New function.
4410 (python_inferior_exit): New function.
4411 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4412 inferior_exit observers.
4413 * python/py-evtregistry.c: New file.
4414 * python/py-threadevent.c : New file.
4415 * python/py-event.c: New file.
4416 * python/py-evts.c: New file.
4417 * python/py-continueevent.c: New file.
4418 * python/py-bpevent.c: New file.
4419 * python/py-signalevent.c: New file.
4420 * python/py-exetiedevent.c: New file.
4421 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4422 Move struct breakpoint_object from here...
4423 * python/python-internal.h: ... to here.
4424 * python/py-event.h: New file.
4425 * python/py-events.h: New file.
4426 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4427 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4428 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4429 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4430 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4431 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4432 Add build rules for all the above.
4434 2011-02-04 Tom Tromey <tromey@redhat.com>
4436 * dwarf2read.c (dwarf2_section_empty_p): New function.
4437 (dwarf2_read_section): Use dwarf2_section_empty_p.
4438 (dwarf2_section_size): New function.
4439 (dwarf2_get_section_info): Unconditionally read section.
4440 (dwarf2_read_index): Use dwarf2_section_empty_p.
4441 (partial_read_comp_unit_head): Use dwarf2_section_size.
4442 (dwarf2_symbol_mark_computed): Likewise.
4444 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4446 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4448 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4450 * mips-linux-tdep.c: Include xml-syscall.h.
4451 (mips_linux_get_syscall_number): New function.
4452 (mips_linux_init_abi): Add calls to
4453 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4454 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4455 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4456 * syscalls/mips-n32-linux.xml: New file.
4457 * syscalls/mips-n64-linux.xml: New file.
4458 * syscalls/mips-o32-linux.xml: New file.
4460 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4462 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4463 Complain about inverted range entries.
4464 (dwarf2_record_block_ranges): Likewise.
4466 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4469 * breakpoint.c (update_watchpoint): Fix name of the
4470 update_global_location_list function.
4471 (print_one_breakpoint): Fix typo.
4472 (_initialize_breakpoint): Remove extra space in hbreak help
4474 * breakpoint.h (struct bp_location) <length>: Fix field
4477 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4479 * regcache.c (registers_changed_ptid): Don't explictly always
4480 clear `current_regcache'. Only clear current_thread_ptid and
4481 current_thread_arch when PTID matches. Only reinit the frame
4482 cache if PTID matches the current inferior_ptid. Move alloca(0)
4484 (registers_changed): ... here.
4486 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4488 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4489 starts with __stack_chk_guard as stack guard symbol.
4491 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4493 * disasm.c (compare_lines): Handle the end of sequence markers
4494 within the line table to better support disassembling over
4495 compilation unit boundaries.
4497 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4499 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4500 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4501 implementation even if no symbols are available.
4502 (thumb_analyze_prologue): Update call to skip_prologue_function.
4503 (arm_analyze_prologue): Likewise.
4505 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4507 * arm-tdep.c: Include "observer.h".
4508 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4509 (arm_exidx_data_key): New static variable.
4510 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4511 (struct arm_exidx_data): Likewise.
4512 (arm_exidx_data_free): New function.
4513 (arm_compare_exidx_entries): Likewise.
4514 (arm_obj_section_from_vma): Likewise.
4515 (arm_exidx_new_objfile): Likewise.
4516 (arm_find_exidx_entry): Likewise.
4517 (arm_exidx_fill_cache): Likewise.
4518 (arm_exidx_unwind_sniffer): Likewise.
4519 (arm_exidx_unwind): New global variable.
4520 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4521 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4522 observer. Register arm_exidx_data_key as objfile data.
4524 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4526 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4527 due to accessing uninitialized variable. Fix indentation.
4529 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4531 * c-valprint.c (c_value_print): When doing virtual base pointer
4532 adjustment, create a new value with adjusted contents rather than
4533 changing the contents of the value being printed (and getting it
4536 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4538 * xml-support.c (xml_find_attribute): New.
4539 (xinclude_start_include): Use it.
4540 * xml-support.h (xml_find_attribute): Declare.
4541 * memory-map.c (memory_map_start_memory)
4542 (memory_map_start_property): Use xml_find_attribute.
4543 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4545 * remote.c (start_thread): Use xml_find_attribute.
4546 * solib-target.c (library_list_start_segment)
4547 (library_list_start_section, library_list_start_library)
4548 (library_list_start_list): Use xml_find_attribute.
4549 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4550 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4551 (tdesc_start_field): Use xml_find_attribute.
4553 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4555 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4556 (BUILD_OCL_VTYPES): Update.
4558 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4560 * configure.ac: Work around non-GNU sed limitation when computing
4561 python version number.
4562 * configure: Regenerate.
4564 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4566 Fix debug printing of TYPE_INSTANCE.
4567 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4568 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4570 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4572 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4573 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4574 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4575 * ada-operator.inc: Rename the file to ...
4576 * ada-operator.def: ... here, wrap all the entries by macro OP.
4577 * expprint.c (op_name_standard): Remove all the entries. Include
4578 "std-operator.def" instead.
4579 * expression.h (enum exp_opcode): Include "std-operator.def" and
4580 "ada-operator.def". Move all the entries ...
4581 * std-operator.def: ... here, wrap all the entries by macro OP.
4583 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4585 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4586 * breakpoint.c (remove_jit_event_breakpoints): New function.
4587 * jit.c (jit_descriptor_addr): Delete.
4588 (registering_code): Delete.
4589 (clear_int): Delete.
4590 (jit_inferior_data): New variable.
4591 (struct jit_inferior_data): New type.
4592 (get_jit_inferior_data): New function.
4593 (jit_inferior_data_cleanup): New function.
4594 (jit_read_descriptor): Adjust.
4595 (jit_register_code): Adjust.
4596 (jit_breakpoint_re_set_internal): New function; move code here ...
4597 (jit_inferior_init): ... from here.
4598 (jit_breakpoint_re_set): Adjust.
4599 (jit_reset_inferior_data_and_breakpoints): New function.
4600 (jit_inferior_created_observer): Adjust.
4601 (jit_inferior_exit_hook): Adjust.
4602 (jit_executable_changed_observer): New function.
4603 (jit_event_handler): Adjust.
4604 (_initialize_jit): Adjust.
4606 2011-01-31 Michael Snyder <msnyder@vmware.com>
4608 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4611 2011-01-31 Tom Tromey <tromey@redhat.com>
4614 * python/python.c (execute_gdb_command): Call
4615 prevent_dont_repeat.
4616 * top.c (suppress_dont_repeat): New global.
4617 (dont_repeat): Use it.
4618 (prevent_dont_repeat): New function.
4619 * command.h (prevent_dont_repeat): Declare.
4621 2011-01-31 Tom Tromey <tromey@redhat.com>
4623 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4624 * python/py-breakpoint.c (bppy_set_silent): Use
4625 breakpoint_set_silent.
4626 (bppy_set_thread): Use breakpoint_set_thread.
4627 (bppy_set_task): Use breakpoint_set_task.
4628 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4629 (breakpoint_set_task): Declare.
4630 (make_breakpoint_silent): Remove.
4631 * breakpoint.c (breakpoint_set_silent): New function.
4632 (breakpoint_set_thread): Likewise.
4633 (breakpoint_set_task): Likewise.
4634 (make_breakpoint_silent): Remove.
4636 2011-01-31 Tom Tromey <tromey@redhat.com>
4638 * breakpoint.h (user_breakpoint_p): Declare.
4639 * breakpoint.c (user_breakpoint_p): New function.
4640 (breakpoint_1): Use it.
4641 (save_breakpoints): Likewise.
4643 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4645 * configure.ac: Add handling of Python distribution on Windows.
4646 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4647 sysconfig variables are not defined, then do not use them.
4648 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4649 instead. On Windows, return all paths using forward-slashes
4650 rather than backslashes.
4652 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4654 * configure.ac: Remove fallback behavior for building
4655 against Python. Remove tweaking of Python include path.
4656 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4657 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4658 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4659 Always restore CPPFLAGS and LIBS after linking test.
4660 * configure: Regenerated.
4661 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4662 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4663 * python/python-internal.h: Adjust includes of Python .h files.
4665 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4667 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4670 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4672 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4675 2011-01-31 Yao Qi <yao@codesourcery.com>
4677 * arm-linux-nat.c: Update calls to regcache_register_status
4678 instead of regcache_valid_p.
4679 * aix-thread.c: Likewise.
4680 * i386gnu-nat.c: Likewise.
4682 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4686 touching TYPE_FIELD_ARTIFICIAL.
4688 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4690 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4693 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4695 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4696 selected, don't try iterating over the traceframe's blocks.
4697 (tfile_has_stack): If there's no traceframe selected, then there's
4699 (tfile_has_registers): If there's no traceframe selected, then
4700 there's no registers.
4702 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4704 * target.c (memory_xfer_partial): No need to restore shadows if we
4705 haven't read anything.
4707 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4709 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4710 and val_print_scalar_formatted.
4712 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4714 * tracepoint.c (tfile_read): New.
4715 (tfile_open): Use it.
4716 (tfile_get_traceframe_address): Use it.
4717 (tfile_trace_find): Use it.
4718 (walk_blocks_callback_func): New typedef.
4719 (match_blocktype): New function.
4720 (traceframe_walk_blocks): New function.
4721 (traceframe_find_block_type): New function.
4722 (tfile_fetch_registers, tfile_xfer_partial)
4723 (tfile_get_trace_state_variable_value): Use
4724 traceframe_find_block_type and tfile_read.
4726 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4728 * remote-mips.c: Add internationalization mark ups. Remove
4729 trailing \n from already marked up strings.
4731 2011-01-26 Tom Tromey <tromey@redhat.com>
4733 * python/py-prettyprint.c (print_string_repr): Clear
4734 'addressprint' option when calling val_print_string.
4735 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4736 option when calling val_print_string.
4738 2011-01-26 Tom Tromey <tromey@redhat.com>
4740 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4742 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4744 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4745 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4746 (gdb_py_long_as_ulongest): New defines.
4747 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4748 (gdb_py_int_as_long): Declare.
4749 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4750 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4751 (valpy_long): Add comment.
4752 * python/py-utils.c (get_addr_from_python): Use
4753 gdb_py_long_as_ulongest. Handle overflow properly.
4754 (gdb_py_object_from_longest): New function.
4755 (gdb_py_object_from_ulongest): Likewise.
4756 (gdb_py_int_as_long): Likewise.
4757 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4758 * python/py-symtab.c (salpy_get_pc): Use
4759 gdb_py_long_from_ulongest.
4760 (salpy_get_line): Use PyInt_FromLong.
4761 * python/py-param.c (set_parameter_value): Use
4763 * python/py-lazy-string.c (stpy_get_address): Use
4764 gdb_py_long_from_ulongest.
4765 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4766 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4767 * python/py-breakpoint.c (bppy_set_thread): Use
4769 (bppy_set_task): Likewise.
4770 (bppy_set_ignore_count): Likewise.
4771 (bppy_set_hit_count): Likewise.
4772 * python/py-block.c (blpy_get_start): Use
4773 gdb_py_object_from_ulongest.
4774 (blpy_get_end): Likewise.
4775 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4777 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4780 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4781 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4782 equality test for objfile, initialize addr_low if needed.
4784 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4786 * tui/tui-regs.c (tui_register_format): Remove dead code.
4788 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4790 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4791 instead of print_scalar_formatted.
4792 (print_scalar_formatted): Don't handle 's' format strings here,
4793 and add an assertion that we never see such format here.
4794 * valprint.h (val_print_scalar_formatted): Declare.
4795 * valprint.c (val_print_scalar_formatted): New.
4796 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4797 instead of print_scalar_formatted.
4798 * jv-valprint.c (java_val_print): Ditto.
4799 * p-valprint.c (pascal_val_print): Ditto.
4800 * ada-valprint.c (ada_val_print_1): Ditto.
4801 * f-valprint.c (f_val_print): Ditto.
4802 * infcmd.c (registers_info): Ditto.
4803 * m2-valprint.c (m2_val_print): Ditto.
4805 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4807 * m2-valprint.c (print_unbounded_array): Pass
4808 value_contents_for_printing rather than value_contents, to
4809 m2_print_array_contents. Also pass in the value.
4811 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4814 (save_gdb_index_command): Switch to .gdb_index version 4.
4816 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4818 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4819 than frame_register, and always pass a valid value to val_print.
4821 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4823 Centralize printing "<optimized out>".
4825 * valprint.h (val_print_optimized_out): Declare.
4826 * cp-valprint.c (cp_print_value_fields): Use
4827 val_print_optimized_out.
4828 * jv-valprint.c (java_print_value_fields): Ditto.
4829 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4830 * printcmd.c (print_formatted): Ditto.
4831 * valprint.c (valprint_check_validity): Ditto.
4832 (value_check_printable): Ditto.
4833 (val_print_optimized_out): New.
4835 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4837 * infcmd.c (default_print_registers_info): Allocate values so to
4838 never pass a NULL value to val_print.
4840 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4842 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4843 boolean. Make sure to always pass a value that matches the
4844 contents buffer to callees. Preserve `address' for following
4846 * value.c (value_contents_for_printing_const): New.
4847 (value_address): Constify value argument.
4848 * value.h (value_contents_for_printing_const): Declare.
4849 (value_address): Constify value argument.
4851 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4853 * regcache.c (struct regcache_descr): Rename
4854 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4855 and sizeof_cooked_register_valid_p to
4856 sizeof_cooked_register_status.
4857 (init_regcache_descr): Adjust.
4858 (struct regcache): Rename register_valid_p field to
4860 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4861 (do_cooked_read): Adjust.
4862 (regcache_valid_p): Rename to ...
4863 (regcache_register_status): ... this. Adjust.
4864 (regcache_invalidate): Adjust.
4865 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4867 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4868 as unavailable, not valid.
4869 (regcache_dump): Adjust.
4870 * regcache.h (enum register_status): New.
4871 (regcache_register_status): Declare.
4872 (regcache_invalidate): Delete declaration.
4873 * corelow.c (get_core_registers): Adjust.
4874 * tracepoint.c (tfile_fetch_registers): Adjust.
4875 * trad-frame.c (REG_VALUE): Rename to ...
4876 (TF_REG_VALUE): ... this.
4877 (REG_UNKNOWN): Rename to ...
4878 (TF_REG_UNKNOWN): ... this.
4879 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4880 * mi/mi-main.c (register_changed_p): Adjust.
4882 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4884 * regcache.c (struct regcache_descr): Remove outdated comment.
4885 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4887 (regcache_xmalloc): Rename to ...
4888 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4889 Allocate the regcache type accordingly.
4890 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4891 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4892 cooked registers, not raw.
4893 (regcache_dup_no_passthrough): Delete.
4894 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4895 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4896 mention obsolete write_register_bytes.
4897 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4899 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4901 Stop remote_read_bytes from handling partial reads itself.
4903 * remote-fileio.c: Include target.h.
4904 (remote_fileio_write_bytes): Delete.
4905 (remote_fileio_func_open, remote_fileio_func_write)
4906 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4908 (remote_fileio_func_stat): Use target_read_memory and
4909 target_write_memory.
4910 (remote_fileio_func_gettimeofday): Use target_write_memory.
4911 (remote_fileio_func_system): Use target_read_memory.
4912 * remote.c (remote_write_bytes): Make it static.
4913 (remote_read_bytes): Don't handle partial reads here.
4914 * remote.h (remote_read_bytes): Delete declaration.
4916 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4918 Simplify XML parsing a bit.
4920 * xml-support.h (gdb_xml_parse_quick): Declare.
4921 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4922 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4924 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4925 gdb_xml_create_parser_and_cleanup_1.
4926 (gdb_xml_parse_quick): New.
4927 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4928 * osdata.c (osdata_parse): Ditto.
4929 * remote.c (remote_threads_info): Ditto.
4930 * solib-target.c (solib_target_parse_libraries): Ditto.
4931 * xml-syscall.c (syscall_parse_xml): Ditto.
4932 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4934 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4936 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4937 with remote-mips.o added to gdb_target_obs.
4938 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4940 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4942 * ada-valprint.c (val_print_packed_array_elements): Pass the
4943 correct struct value to val_print.
4944 (ada_val_print_1): Ditto.
4946 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4948 Don't lose embedded_offset in printing routines throughout.
4950 * valprint.h (val_print_array_elements): Change prototype.
4951 * valprint.c (val_print_array_elements): Add `embedded_offset'
4952 parameter, and adjust to pass it down to val_print, while passing
4953 `valaddr' or `address' unmodified. Take embedded_offset into
4954 account when checking repetitions.
4955 * c-valprint.c (c_val_print): Pass embedded_offset to
4956 val_print_array_elements instead of adjusting `valaddr' and
4958 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4959 embedded_offset to val_print_array_elements instead of adjusting
4961 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4962 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4963 val_print_array_elements and pascal_object_print_value_fields
4964 instead of adjusting `valaddr'.
4965 (pascal_object_print_value_fields): Add `offset' parameter, and
4967 (pascal_object_print_value): Add `offset' parameter, and adjust to
4969 (pascal_object_print_static_field): Use
4970 value_contents_for_printing/value_embedded_offset, rather than
4972 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4973 parameter, and adjust to use it. Use
4974 value_contents_for_printing/value_embedded_offset, rather than
4976 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4977 (ada_val_print_array): Add `offset' parameter, and adjust to use
4979 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4980 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4981 Instead work with offsets. Use
4982 value_contents_for_printing/value_embedded_offset, rather than
4983 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4984 and use value_from_pointer to extract a target pointer, rather
4985 than value_from_longest.
4986 (print_variant_part): Add `offset' parameter. Replace
4987 `outer_valaddr' parameter by a new `outer_offset' parameter.
4988 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4989 (ada_value_print): Use
4990 value_contents_for_printing/value_embedded_offset, rather than
4992 (print_record): Add `offset' parameter, and adjust to pass it
4994 (print_field_values): Add `offset' parameter. Replace
4995 `outer_valaddr' parameter by a new `outer_offset' parameter.
4996 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4997 Use value_contents_for_printing/value_embedded_offset, rather than
4999 * d-valprint.c (dynamic_array_type): Use
5000 value_contents_for_printing/value_embedded_offset, rather than
5002 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5003 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5004 (java_print_value_fields): Take `offset' into account. Don't
5005 re-adjust `valaddr'. Instead pass down adjusted offsets.
5006 (java_val_print): Take `embedded_offset' into account. Pass it to
5007 java_print_value_fields.
5008 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5009 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5010 down adjusted offsets.
5011 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5012 (f_val_print): Take `embedded_offset' into account.
5014 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5016 * inflow.c: Include "gdbcmd.h".
5017 (interactive_mode): New static global, moved here from top.c.
5018 (show_interactive_mode): New function, moved here from top.c.
5019 use gdb_has_a_terminal instead of input_from_terminal_p to
5020 determine the current mode.
5021 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5023 (_initialize_inflow): Add the "set/show interactive-mode"
5024 commands. Moved here from top.c, after having adjusted slightly
5026 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5028 (input_from_terminal_p): Remove handling of "interactive-mode"
5029 setting, moved to infow.c.
5030 (init_main): Remove creation of the "set/show interactive-mode"
5031 commands, moved to inflow.c.
5033 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5035 * NEWS: Add entry for native ia64-hpux support.
5037 2011-01-19 Tom Tromey <tromey@redhat.com>
5040 * thread.c (free_thread): Free 'name'.
5041 (print_thread_info): Emit thread name. Change CLI output.
5042 (thread_name_command): New function.
5043 (do_captured_thread_select): Emit newline.
5044 (_initialize_thread): Register 'thread name' command.
5045 * target.h (struct target_ops) <to_thread_name>: New field.
5046 (target_thread_name): New macro.
5047 * target.c (update_current_target): Handle to_thread_name.
5048 * python/py-infthread.c (thpy_get_name): New function.
5049 (thpy_set_name): Likewise.
5050 (thread_object_getset): Add "name".
5051 * linux-nat.c (linux_nat_thread_name): New function.
5052 (linux_nat_add_target): Set to_thread_name.
5053 * gdbthread.h (struct thread_info) <name>: New field.
5055 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5057 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5058 (ada_val_print_1): Likewise.
5060 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5062 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5063 upper limit address is not greater than the function end address
5064 when the upper limit could not be computed using the debugging
5067 2011-01-17 Tom Tromey <tromey@redhat.com>
5069 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5071 * utils.c: Include gdb_regex.h.
5072 (do_regfree_cleanup): New function.
5073 (make_regfree_cleanup): Likewise.
5074 (get_regcomp_error): Likewise.
5075 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5077 2011-01-17 Tom Tromey <tromey@redhat.com>
5079 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5082 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5084 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5085 for internal variables.
5086 (last_was_structop): New static variable.
5087 (COMPLETE): New token.
5088 (field_exp): New rule to group all '.' suffix handling.
5089 Add mark_struct_expression calls when approriate to be able
5090 to correctly find fields for completion.
5091 (yylex): Adapt to handle field completion and set INTVAR when
5094 2011-01-14 Yao Qi <yao@codesourcery.com>
5096 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5097 save_reggroup, restore_reggroup and all_reggroup.
5099 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5101 * ada-valprint. (ada_printchar): Use the correct type length
5102 in call to ada_emit_char.
5103 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5105 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5107 * solib-som.h (hpux_major_release): Declare variable here.
5108 * solib-som.c: Remove <sys/utsname.h> header.
5109 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5110 (hpux_major_release): Make global, change default value to
5111 DEFAULT_HPUX_MAJOR_RELEASE.
5112 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5113 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5114 Add "solib-som.h" header.
5115 (set_hpux_major_release): New function.
5116 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5118 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5120 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5122 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5124 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5125 new-line at end of warning message.
5126 (ia64_hpux_store_register): Remove trailing new-line at end of
5128 * ia64-hpux-tdep.c: Rephrase comment.
5129 * solib-ia64-hpux.c (struct dld_info): Change type of field
5130 dld_flags from "long long" to ULONGEST.
5132 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5134 * target.h (deprecated_child_ops): Delete declaration.
5135 * target.c (deprecated_child_ops): Delete definition.
5137 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5139 * Makefile.in (hpux-thread.o): Delete rule.
5140 * configure.ac: Don't check for HPUX DCE threads support.
5141 * configure, config.in: Regenerate.
5142 * hppa-hpux-nat.c (child_suppress_run): Delete.
5143 (hppa_hpux_child_can_run): Delete.
5144 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5145 * hpux-thread.c: Delete.
5147 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5149 * hpux-thread.c (hpux_pid_to_str): Delete.
5151 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5153 * ada-valprint.c (ada_emit_char): Remove strange code.
5154 Check that c is <= UCHAR_MAX before passing it to isascii.
5155 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5157 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5159 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5160 to the case where instream is stdin.
5162 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5164 * ia64-tdep.h (struct regcache): Forward declare.
5165 (struct ia64_infcall_ops): New struct type.
5166 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5168 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5169 Renames ia64_find_global_pointer.
5170 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5171 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5172 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5174 (ia64_infcall_ops): New static global constant.
5175 (ia64_gdbarch_init): Set tdep->infcall_ops.
5176 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5177 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5178 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5179 (ia64_hpux_dummy_code): New static global constant.
5180 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5181 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5182 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5184 (ia64_hpux_infcall_ops): New static global constant.
5185 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5186 for inferior function calls to work properly on ia64-hpux.
5188 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5190 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5191 * ia64-tdep.h (struct frame_info): forward declaration.
5192 (struct gdbarch_tdep): Add field size_of_register_frame.
5193 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5194 to determine the size of the register frame.
5195 (ia64_size_of_register_frame): New function.
5196 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5197 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5198 (IA64_HPUX_UREG_REASON): New macro.
5199 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5201 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5202 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5203 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5206 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5208 Add support for ia64-hpux.
5209 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5210 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5212 * configure.host: Add handling for ia64-hpux hosts. Add associated
5214 * configure.tgt: Add handling for ia64-hpux targets.
5215 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5216 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5217 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5219 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5221 [ttrace] Compute thread list immediately after attach.
5222 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5224 (inf_ttrace_attach): Use it.
5226 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5228 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5229 if we could not determine the frame's function address. Instead,
5230 use the frame's PC, and then continue.
5232 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5234 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5235 not already defined.
5237 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5239 * ia64-tdep.c (ia64_struct_type_p): New function.
5240 (ia64_extract_return_value): Handle integral values that are
5241 less than 8 bytes long.
5242 (ia64_push_dummy_call): Likewise.
5244 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5246 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5247 floatformat_ia64_ext.
5248 (floatformat_ia64_ext_big): New static const.
5249 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5251 2011-01-12 Tom Tromey <tromey@redhat.com>
5253 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5255 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5256 (mi_cmd_thread_list_ids): Likewise.
5257 (mi_cmd_data_list_changed_registers): Likewise.
5258 (mi_cmd_data_list_register_values): Likewise.
5259 (mi_cmd_data_write_register_values): Likewise.
5260 (mi_cmd_data_evaluate_expression): Likewise.
5261 (mi_cmd_data_read_memory): Likewise.
5262 (mi_cmd_data_read_memory_bytes): Likewise.
5263 (mi_cmd_data_write_memory): Likewise.
5264 (mi_cmd_enable_timings): Likewise.
5265 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5266 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5267 (mi_cmd_var_delete): Likewise.
5268 (mi_cmd_var_set_format): Likewise.
5269 (mi_cmd_var_show_format): Likewise.
5270 (mi_cmd_var_info_num_children): Likewise.
5271 (mi_cmd_var_list_children): Likewise.
5272 (mi_cmd_var_info_type): Likewise.
5273 (mi_cmd_var_info_expression): Likewise.
5274 (mi_cmd_var_show_attributes): Likewise.
5275 (mi_cmd_var_assign): Likewise.
5276 (mi_cmd_var_update): Likewise.
5277 (mi_cmd_enable_pretty_printing): Likewise.
5278 (mi_cmd_var_set_update_range): Likewise.
5279 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5281 (mi_cmd_target_file_put): Likewise.
5282 (mi_cmd_target_file_delete): Likewise.
5283 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5285 (mi_cmd_stack_info_depth): Likewise.
5286 (mi_cmd_stack_list_locals): Likewise.
5287 (mi_cmd_stack_list_args): Likewise.
5288 (mi_cmd_stack_select_frame): Likewise.
5289 (mi_cmd_stack_select_frame): Likewise.
5290 (mi_cmd_stack_info_frame): Likewise.
5291 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5293 (mi_cmd_file_list_exec_source_files): Likewise.
5294 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5295 (mi_cmd_env_cd): Likewise.
5296 (mi_cmd_env_path): Likewise.
5297 (mi_cmd_env_dir): Likewise.
5298 (mi_cmd_inferior_tty_show): Likewise.
5299 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5300 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5301 (mi_cmd_break_watch): Likewise.
5303 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5305 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5306 (ppc_linux_insert_hw_breakpoint): Likewise.
5307 (ppc_linux_remove_hw_breakpoint): Likewise.
5308 (ppc_linux_insert_watchpoint): Likewise.
5310 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5311 Jan Kratochvil <jan.kratochvil@redhat.com>
5313 PR fortran/11104 and DWARF unbound arrays detection.
5314 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5315 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5316 unspecified upper bound.
5317 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5318 variables array_size_array, tmp_type and offset_item. New variable
5319 array. Remove call to f77_get_upperbound. New variables array_type
5320 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5321 the final call to deprecated_set_value_type.
5323 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5325 Make value allocations more lazy.
5326 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5327 instead of allocate_value and set_value_lazy when possible.
5328 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5329 instead of allocate_value and set_value_lazy.
5330 * findvar.c (value_of_register_lazy): Likewise.
5331 (read_var_value): Remove V preallocation, call just check_typedef in
5332 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5333 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5334 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5335 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5336 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5337 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5338 the end, remove set_value_lazy there.
5339 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5340 instead of allocate_value and set_value_lazy when possible.
5341 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5342 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5343 of allocate_value and set_value_lazy.
5344 (value_from_contents_and_address): Use allocate_value_lazy instead of
5345 allocate_value and set_value_lazy when possible.
5347 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5349 * disasm.c (dump_insns): Support dumping opcodes for MI.
5350 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5351 dumping of instruction opcodes.
5353 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5355 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5358 2011-01-11 Tom Tromey <tromey@redhat.com>
5360 * thread.c (do_captured_thread_select): Emit newline before
5363 2011-01-11 Michael Snyder <msnyder@vmware.com>
5365 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5366 * score-tdep.c: Ditto.
5367 * score-tdep.h: Ditto.
5368 * ser-base.c: Ditto.
5369 * ser-go32.c: Ditto.
5372 * ser-mingw.c: Ditto.
5373 * ser-pipe.c: Ditto.
5375 * ser-unix.c: Ditto.
5376 * sh64-tdep.c: Ditto.
5377 * shnbsd-nat.c: Ditto.
5381 * solib-darwin.c: Ditto.
5382 * solib-frv.c: Ditto.
5384 * solib-irix.c: Ditto.
5385 * solib-osf.c: Ditto.
5386 * solib-pa64.c: Ditto.
5387 * solib-som.c: Ditto.
5388 * solib-spu.c: Ditto.
5389 * solib-sunos.c: Ditto.
5390 * solib-svr4.c: Ditto.
5392 * sol-thread.c: Ditto.
5396 * sparc64-linux-tdep.c: Ditto.
5397 * sparc64-tdep.c: Ditto.
5398 * sparc-linux-nat.c: Ditto.
5399 * sparc-linux-tdep.c: Ditto.
5400 * sparc-sol2-nat.c: Ditto.
5401 * sparc-sol2-tdep.c: Ditto.
5402 * sparc-tdep.c: Ditto.
5403 * sparc-tdep.h: Ditto.
5404 * spu-tdep.c: Ditto.
5405 * stabsread.c: Ditto.
5406 * stabsread.h: Ditto.
5414 * target-descriptions.c: Ditto.
5415 * target-descriptions.h: Ditto.
5417 * target-memory.c: Ditto.
5418 * terminal.h: Ditto.
5421 * tracepoint.c: Ditto.
5422 * tracepoint.h: Ditto.
5423 * trad-frame.h: Ditto.
5424 * typeprint.c: Ditto.
5426 2011-01-11 Michael Snyder <msnyder@vmware.com>
5428 * ui-file.c: Comment cleanup, mostly periods and spaces.
5433 * v850-tdep.c: Ditto.
5434 * valarith.c: Ditto.
5436 * valprint.c: Ditto.
5437 * valprint.h: Ditto.
5442 * vax-tdep.c: Ditto.
5446 * windows-nat.c: Ditto.
5447 * windows-tdep.c: Ditto.
5448 * xcoffread.c: Ditto.
5449 * xcoffsolib.c: Ditto.
5450 * xml-support.c: Ditto.
5451 * xstormy16-tdep.c: Ditto.
5452 * xtensa-tdep.c: Ditto.
5453 * xtensa-tdep.h: Ditto.
5455 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5457 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5458 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5460 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5461 Thiago Jung Bauermann <bauerman@br.ibm.com>
5463 Implement support for PowerPC BookE ranged watchpoints.
5465 (struct breakpoint_ops) <resources_needed>: New method.
5466 Initialize to NULL in all existing breakpoint_ops instances.
5467 (struct breakpoint) <exact>: New field.
5468 (target_exact_watchpoints): Declare external global.
5469 * breakpoint.c (target_exact_watchpoints): New global flag.
5470 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5471 b->enable_state to bp_enabled before calling
5472 hw_watchpoint_used_count.
5473 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5474 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5476 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5477 if the watchpoint is exact.
5478 (resources_needed_watchpoint): New function.
5479 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5480 (watch_command_1): Set b->exact if the user asked for an exact
5481 watchpoint and one can be set.
5482 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5483 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5484 the user asks for an exact watchpoint and one can be set. Return
5485 number of needed debug registers to watch the expression.
5486 * gdbtypes.c (is_scalar_type): New function, based on
5487 valprint.c:scalar_type_p.
5488 (is_scalar_type_recursive): New function.
5489 * gdbtypes.h (is_scalar_type_recursive): Declare.
5490 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5491 handle regions when ranged watchpoints are available.
5492 (create_watchpoint_request): New function.
5493 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5494 create_watchpoint_request.
5495 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5496 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5497 `set powerpc' and `show powerpc' commands.
5498 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5499 Mention documentation comment in the target macro.
5500 (target_region_ok_for_hw_watchpoint): Document return value.
5502 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5504 * breakpoint.c (update_watchpoint): Decide on using a software or
5505 hardware watchpoint after the bp_locations are created.
5507 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5509 Convert hardware watchpoints to use breakpoint_ops.
5510 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5511 <insert_location>: ... this. Return int instead of void.
5512 Accept pointer to struct bp_location instead of pointer to
5513 struct breakpoint. Adapt all implementations.
5514 (breakpoint_ops) <remove>: Rename to...
5515 <remove_location>: ... this. Accept pointer to struct bp_location
5516 instead of pointer to struct breakpoint. Adapt all implementations.
5517 * breakpoint.c (insert_catchpoint): Delete function.
5518 (insert_bp_location): Call the watchpoint or catchpoint's
5519 breakpoint_ops.insert method.
5520 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5521 breakpoint_ops.remove method.
5522 (insert_watchpoint, remove_watchpoint): New functions.
5523 (watchpoint_breakpoint_ops): New structure.
5524 (watch_command_1): Initialize the OPS field.
5525 * inf-child.c (inf_child_insert_fork_catchpoint)
5526 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5527 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5528 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5530 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5531 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5532 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5533 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5534 * target.c (update_current_target): Change default implementation of
5535 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5536 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5537 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5538 to_set_syscall_catchpoint to return_one.
5539 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5540 (debug_to_insert_exec_catchpoint): Report return value.
5541 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5542 (to_insert_exec_catchpoint): Change declaration to return int instead
5545 2011-01-11 Michael Snyder <msnyder@vmware.com>
5547 * arm-tdep.c: Internationalization.
5550 * fork-child.c: Ditto.
5551 * nto-procfs.c: Ditto.
5552 * ppc-sysv-tdep.c: Ditto.
5554 * remote-mips.c: Ditto.
5556 * rs6000-nat.c: Ditto.
5557 * rs6000-tdep.c: Ditto.
5561 * xml-support.c: Ditto.
5562 * mi/mi-cmd-break.c: Ditto.
5563 * mi/mi-cmd-var.c: Ditto.
5564 * mi/mi-interp.c: Ditto.
5565 * mi/mi-main.c: Ditto.
5567 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5569 * remote-sim.c (gdbsim_store_register): Update API to
5570 sim_store_register to check more error conditions.
5572 2011-01-10 Michael Snyder <msnyder@vmware.com>
5574 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5575 * nto-tdep.c: Ditto.
5576 * nto-tdep.h: Ditto.
5577 * objc-exp.y: Ditto.
5578 * objc-lang.c: Ditto.
5579 * objfiles.c: Ditto.
5580 * objfiles.h: Ditto.
5581 * observer.c: Ditto.
5582 * opencl-lang.c: Ditto.
5585 * parser-defs.h: Ditto.
5588 * posix-hdep.c: Ditto.
5589 * ppcbug-rom.c: Ditto.
5590 * ppc-linux-nat.c: Ditto.
5591 * ppc-linux-tdep.c: Ditto.
5592 * ppc-linux-tdep.h: Ditto.
5593 * ppcnbsd-tdep.c: Ditto.
5594 * ppcobsd-tdep.c: Ditto.
5595 * ppcobsd-tdep.h: Ditto.
5596 * ppc-sysv-tdep.c: Ditto.
5597 * ppc-tdep.h: Ditto.
5598 * printcmd.c: Ditto.
5599 * proc-abi.c: Ditto.
5600 * proc-flags.c: Ditto.
5602 * proc-utils.h: Ditto.
5603 * progspace.h: Ditto.
5604 * prologue-value.c: Ditto.
5605 * prologue-value.h: Ditto.
5606 * psympriv.h: Ditto.
5608 * p-typeprint.c: Ditto.
5609 * p-valprint.c: Ditto.
5610 * ravenscar-sparc-thread.c: Ditto.
5611 * ravenscar-thread.c: Ditto.
5612 * ravenscar-thread.h: Ditto.
5614 * regcache.c: Ditto.
5615 * regcache.h: Ditto.
5617 * remote-fileio.c: Ditto.
5618 * remote-fileio.h: Ditto.
5620 * remote-m32r-sdi.c: Ditto.
5621 * remote-mips.c: Ditto.
5622 * remote-sim.c: Ditto.
5623 * rs6000-aix-tdep.c: Ditto.
5624 * rs6000-nat.c: Ditto.
5625 * rs6000-tdep.c: Ditto.
5627 2011-01-10 Michael Snyder <msnyder@vmware.com>
5629 * charset.c (validate): Internationalization.
5630 * coffread.c (read_one_sym): Ditto.
5631 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5632 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5633 * inflow.c (new_tty): Ditto.
5634 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5635 * m32c-tdep.c (m32c_return_value): Ditto.
5636 * mep-tdep.c (mep_store_return_value): Ditto.
5637 * score-tdep.c (score7_fetch_insn): Ditto.
5638 * ser-mingw.c (pipe_windows_open): Ditto.
5639 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5640 * spu-tdep.c (spu_register_type): Ditto.
5641 * tracepoint.c (trace_find_command): Ditto.
5642 * valarith.c (value_pos): Ditto.
5644 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5646 * ada-valprint.c (printstr): Minor comment reformatting.
5648 2011-01-08 Michael Snyder <msnyder@vmware.com>
5650 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5653 2011-01-08 Michael Snyder <msnyder@vmware.com>
5655 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5656 * hppa-hpux-tdep.c: Ditto.
5657 * hppa-linux-nat.c: Ditto.
5658 * hppa-linux-tdep.c: Ditto.
5659 * hppanbsd-tdep.c: Ditto.
5660 * hppa-tdep.c: Ditto.
5661 * hppa-tdep.h: Ditto.
5662 * hpux-thread.c: Ditto.
5663 * i386-cygwin-tdep.c: Ditto.
5664 * i386-darwin-nat.c: Ditto.
5665 * i386gnu-nat.c: Ditto.
5666 * i386-linux-nat.c: Ditto.
5667 * i386-linux-tdep.c: Ditto.
5668 * i386-nat.c: Ditto.
5669 * i386-nat.h: Ditto.
5670 * i386nbsd-tdep.c: Ditto.
5671 * i386-sol2-nat.c: Ditto.
5672 * i386-stub.c: Ditto.
5673 * i386-tdep.c: Ditto.
5674 * i386-tdep.h: Ditto.
5675 * i387-tdep.c: Ditto.
5676 * ia64-linux-nat.c: Ditto.
5677 * ia64-linux-tdep.c: Ditto.
5678 * ia64-tdep.c: Ditto.
5682 * inferior.c: Ditto.
5683 * inferior.h: Ditto.
5689 * iq2000-tdep.c: Ditto.
5690 * irix5-nat.c: Ditto.
5696 * jv-typeprint.c: Ditto.
5697 * jv-valprint.c: Ditto.
5698 * language.c: Ditto.
5699 * language.h: Ditto.
5700 * linespec.c: Ditto.
5701 * linux-fork.c: Ditto.
5702 * linux-nat.c: Ditto.
5703 * linux-thread-db.c: Ditto.
5704 * lm32-tdep.c: Ditto.
5706 2011-01-08 Michael Snyder <msnyder@vmware.com>
5708 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5710 * m2-typeprint.c: Ditto.
5711 * m2-valprint.c: Ditto.
5712 * m32c-tdep.c: Ditto.
5713 * m32r-linux-nat.c: Ditto.
5714 * m32r-rom.c: Ditto.
5715 * m32r-tdep.c: Ditto.
5716 * m32r-tdep.h: Ditto.
5717 * m68hc11-tdep.c: Ditto.
5718 * m58klinux-nat.c: Ditto.
5719 * m68k-tdep.c: Ditto.
5720 * m88k-tdep.c: Ditto.
5721 * m88k-tdep.h: Ditto.
5722 * machoread.c: Ditto.
5723 * macrocmd.c: Ditto.
5724 * macroexp.c: Ditto.
5725 * macrotab.c: Ditto.
5728 * mdebugread.c: Ditto.
5729 * mdebugread.h: Ditto.
5732 * memory-map.h: Ditto.
5733 * mep-tdep.c: Ditto.
5734 * microblaze-rom.c: Ditto.
5735 * microblaze-tdep.c: Ditto.
5737 * mips-irix-tdep.c: Ditto.
5738 * mips-linux-nat.c: Ditto.
5739 * mips-linux-tdep.c: Ditto.
5740 * mips-linux-tdep.h: Ditto.
5741 * mipsnbsd-nat.c: Ditto.
5742 * mipsnbsd-tdep.c: Ditto.
5743 * mipsread.c: Ditto.
5744 * mips-tdep.c: Ditto.
5745 * mips-tdep.h: Ditto.
5746 * mn10300-linux-tdep.c: Ditto.
5747 * mn10300-tdep.c: Ditto.
5748 * mn10300-tdep.h: Ditto.
5751 * moxie-tdep.c: Ditto.
5752 * moxie-tdep.h: Ditto.
5755 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5757 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5759 2011-01-08 Robert Millan <rmh@gnu.org>
5761 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5763 2011-01-07 Michael Snyder <msnyder@vmware.com>
5765 * charset.c (_initialize_charset): Fix typo in string.
5767 2011-01-07 Michael Snyder <msnyder@vmware.com>
5769 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5771 * tui/tui-layout.c (tui_set_layout_for_display_command):
5772 Split line so that operator goes to beginning of line.
5773 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5774 assignment out of if statement.
5776 2011-01-07 Michael Snyder <msnyder@vmware.com>
5778 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5779 * ada-lang.h: Ditto.
5780 * ada-tasks.c: Ditto.
5781 * ada-valprint.c: Ditto.
5782 * aix-threads.c: Ditto.
5783 * alpha-linux-nat.c: Ditto.
5784 * alpha-linux-tdep.c: Ditto.
5785 * alpha-mdebug-tdep.c: Ditto.
5786 * alpha-nat.c: Ditto.
5787 * alpha-osf1-tdep.c: Ditto.
5788 * alpha-tdep.c: Ditto.
5789 * alphabsd-nat.c: Ditto.
5790 * alphabsd-tdep.c: Ditto.
5791 * amd64-darwin-tdep.c: Ditto.
5792 * amd64-linux-nat.c: Ditto.
5793 * amd64-linux-tdep.c: Ditto.
5794 * amd64-sol2-tdep.c: Ditto.
5795 * amd64-tdep.c: Ditto.
5796 * amd64-fbsd-tdep.c: Ditto.
5797 * amd64-nbsd-tdep.c: Ditto.
5798 * amd64-obsd-tdep.c: Ditto.
5799 * amd64-linux-nat.c: Ditto.
5800 * amd64-linux-tdep.c: Ditto.
5801 * arm-tdep.c: Ditto.
5802 * arm-tdep.h: Ditto.
5803 * armnbsd-nat.c: Ditto.
5804 * avr-tdep.c: Ditto.
5805 * bfin-tdep.c: Ditto.
5807 * c-typeprintc: Ditto.
5808 * c-valprint.c: Ditto.
5809 * coff-pe-read.h: Ditto.
5810 * coffreead.c: Ditto.
5811 * cris-tdep.c: Ditto.
5813 * darwin-nat-info.c: Ditto.
5814 * darwin-nat.c: Ditto.
5815 * dbug-rom.c: Ditto.
5819 * dec-thread.c: Ditto.
5821 * demangle.c: Ditto.
5822 * dicos-tdep.c: Ditto.
5823 * dictionary.c: Ditto.
5824 * dictionary.h: Ditto.
5825 * dink32-rom.c: Ditto.
5827 * doublest.c: Ditto.
5829 * dummy-frame.c: Ditto.
5830 * dwarf2-frame.c: Ditto.
5831 * dwarf2expr.c: Ditto.
5832 * dwarf2loc.c: Ditto.
5833 * dwarf2read.c: Ditto.
5837 * event-top.h: Ditto.
5838 * exceptions.c: Ditto.
5839 * exceptions.h: Ditto.
5841 * expprint.c: Ditto.
5842 * expression.h: Ditto.
5846 * f-typeprint.c: Ditto.
5847 * f-valprint.c: Ditto.
5848 * fbsd-nat.c: Ditto.
5850 * fork-child.c: Ditto.
5853 * frv-linux-tdep.c: Ditto.
5854 * frv-tdep.c: Ditto.
5856 * gdb-stabs.h: Ditto.
5857 * gdb_assert.h: Ditto.
5858 * gdb_string.h: Ditto.
5859 * gdb_thread_db.h: Ditto.
5860 * gdb_wait.h: Ditto.
5861 * gdbarch.sh: Ditto.
5863 * gdbthread.h: Ditto.
5864 * gdbtypes.c: Ditto.
5865 * gdbtypes.h: Ditto.
5868 * gnu-v2-abi.c: Ditto.
5869 * gnu-v3-abi.c: Ditto.
5870 * go32-nat.c: Ditto.
5871 * gdbarch.c: Regenerate.
5872 * gdbarch.h: Regenerate.
5874 2011-01-07 Michael Snyder <msnyder@vmware.com>
5876 * ax-gdb.c: Adjust some long output strings.
5877 * breakpoint.c: Ditto.
5882 * linux-nat.c: Ditto.
5883 * solib-pa64.c: Ditto.
5884 * solib-som.c: Ditto.
5886 2011-01-06 Tom Tromey <tromey@redhat.com>
5890 * python/python.c (GdbMethods): Add "newest_frame" method.
5891 * python/python-internal.h (gdbpy_newest_frame): Declare.
5892 * python/py-frame.c (gdbpy_newest_frame): New function.
5894 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5896 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5897 * jit.c (jit_debug): New variable.
5898 (show_jit_debug): New function.
5899 (struct target_buffer): Use ULONGEST.
5900 (bfd_open_from_target_memory): Likewise.
5901 (jit_register_code, jit_inferior_init): Add debug output.
5902 (_initialize_jit): Register "debug jit" command.
5904 2011-01-06 Tom Tromey <tromey@redhat.com>
5906 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5907 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5910 2011-01-06 Tom Tromey <tromey@redhat.com>
5912 * python/py-frame.c (frapy_block): Use get_frame_block.
5914 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5916 Do not stop on SIGPRIO signals by default
5917 * infrun.c (_initialize_infrun): Unset signal_stop and
5918 signal_print for TARGET_SIGNAL_PRIO.
5920 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5922 * ada-tasks.c: Fix style violation in comment.
5924 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5926 * linespec.c (decode_compound, find_method): Remove trailing \n
5927 at end of error string.
5928 * solib-irix.c (irix_current_sos): Likewise.
5929 * varobj.c (uninstall_variable): Likewise.
5931 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5933 * copyright.py: New script.
5934 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5935 Launch emacs without exec'ing. Call copyright.py afterwards.
5937 2011-01-05 Michael Snyder <msnyder@vmware.com>
5939 * addrmap.c: Shorten lines of >= 80 columns.
5940 * arch-utils.c: Ditto.
5941 * arch-utils.h: Ditto.
5943 * ax-general.c: Ditto.
5945 * blockframe.c: Ditto.
5946 * breakpoint.c: Ditto.
5947 * buildsym.c: Ditto.
5949 * c-typeprint.c: Ditto.
5951 * coffread.c: Ditto.
5955 * cp-namespace.c: Ditto.
5956 * cp-support.c: Ditto.
5957 * dbug-rom.c: Ditto.
5962 * dictionary.c: Ditto.
5964 * doublest.c: Ditto.
5965 * dwarf2-frame.c: Ditto.
5966 * dwarf2expr.c: Ditto.
5967 * dwarf2loc.c: Ditto.
5968 * dwarf2read.c: Ditto.
5971 * event-loop.c: Ditto.
5972 * event-loop.h: Ditto.
5973 * exceptions.h: Ditto.
5975 * expprint.c: Ditto.
5976 * expression.h: Ditto.
5978 * f-valprint.c: Ditto.
5980 * frame-base.c: Ditto.
5981 * frame-unwind.c: Ditto.
5982 * frame-unwind.h: Ditto.
5986 * gdb-stabs.h: Ditto.
5987 * gdb_assert.h: Ditto.
5988 * gdb_dirent.h: Ditto.
5989 * gdb_obstack.h: Ditto.
5991 * gdbtypes.c: Ditto.
5992 * gdbtypes.h: Ditto.
5993 * inf-ttrace.c: Ditto.
5998 * inline-frame.h: Ditto.
5999 * language.c: Ditto.
6000 * language.h: Ditto.
6001 * libunwind-frame.c: Ditto.
6002 * libunwind-frame.h: Ditto.
6003 * linespec.c: Ditto.
6004 * linux-nat.c: Ditto.
6005 * linux-nat.h: Ditto.
6006 * linux-thread-db.c: Ditto.
6007 * machoread.c: Ditto.
6008 * macroexp.c: Ditto.
6009 * macrotab.c: Ditto.
6012 * mdebugread.c: Ditto.
6017 * objfiles.c: Ditto.
6018 * objfiles.h: Ditto.
6020 * p-typeprint.c: Ditto.
6021 * p-valprint.c: Ditto.
6023 * printcmd.c: Ditto.
6024 * proc-events.c: Ditto.
6026 * progspace.c: Ditto.
6027 * progspace.h: Ditto.
6028 * psympriv.h: Ditto.
6031 * regcache.c: Ditto.
6032 * regcache.h: Ditto.
6033 * remote-fileio.c: Ditto.
6035 * ser-mingw.c: Ditto.
6037 * ser-unix.c: Ditto.
6040 * solib-frv.c: Ditto.
6041 * solib-irix.c: Ditto.
6042 * solib-osf.c: Ditto.
6043 * solib-pa64.c: Ditto.
6044 * solib-som.c: Ditto.
6045 * solib-sunos.c: Ditto.
6046 * solib-svr4.c: Ditto.
6047 * solib-target.c: Ditto.
6051 * stabsread.c: Ditto.
6052 * stabsread.c: Ditto.
6055 * symfile-mem.c: Ditto.
6061 * target-descriptions.c: Ditto.
6062 * target-memory.c: Ditto.
6065 * terminal.h: Ditto.
6068 * tracepoint.c: Ditto.
6069 * tracepoint.h: Ditto.
6073 * user-regs.c: Ditto.
6074 * user-regs.h: Ditto.
6076 * valarith.c: Ditto.
6078 * valprint.c: Ditto.
6079 * valprint.h: Ditto.
6084 * xcoffread.c: Ditto.
6085 * xcoffsolib.c: Ditto.
6086 * xcoffsolib.h: Ditto.
6087 * xml-syscall.c: Ditto.
6088 * xml-tdesc.c: Ditto.
6090 2011-01-05 Michael Snyder <msnyder@vmware.com>
6092 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6093 * cli/cli-decode.c: Ditto.
6094 * cli/cli-dump.c: Ditto.
6095 * cli/cli-logging.c: Ditto.
6096 * cli/cli-script.c: Ditto.
6097 * cli/cli-setshow.c: Ditto.
6098 * common/signals.c: Ditto.
6099 * mi/mi-cmd-break.c: Ditto.
6100 * mi/mi-cmd-disas.c: Ditto.
6101 * mi/mi-cmd-stack.c: Ditto.
6102 * mi/mi-cmd-var.c: Ditto.
6103 * mi/mi-cmds.c: Ditto.
6104 * mi/mi-common.h: Ditto.
6105 * mi/mi-console.c: Ditto.
6106 * mi/mi-interp.c: Ditto.
6107 * mi/mi-main.c: Ditto.
6108 * osf-share/cma_attr.c: Ditto.
6109 * osf-share/cma_deb_core.h: Ditto.
6110 * osf-share/cma_debug_client.h: Ditto.
6111 * osf-share/cma_handle.h: Ditto.
6112 * osf-share/cma_mutex.h: Ditto.
6113 * osf-share/cma_stack_int.h: Ditto.
6114 * osf-share/cma_tcb_defs.h: Ditto.
6115 * python/py-auto-load.c: Ditto.
6116 * python/py-breakpoint.c: Ditto.
6117 * python/py-cmd.c: Ditto.
6118 * python/py-frame.c: Ditto.
6119 * python/py-objfile.c: Ditto.
6120 * python/py-param.c: Ditto.
6121 * python/py-progspace.c: Ditto.
6122 * python/py-symbol.c: Ditto.
6123 * python/py-value.c: Ditto.
6124 * python/python-internal.h: Ditto.
6125 * python/python.c: Ditto.
6126 * tui/tui-data.c: Ditto.
6127 * tui/tui-disasm.c: Ditto.
6128 * tui/tui-hooks.c: Ditto.
6129 * tui/tui-io.c: Ditto.
6130 * tui/tui-layout.c: Ditto.
6131 * tui/tui-regs.c: Ditto.
6132 * tui/tui-source.c: Ditto.
6133 * tui/tui-stack.c: Ditto.
6134 * tui/tui-win.c: Ditto.
6135 * tui/tui-windata.c: Ditto.
6136 * tui/tui-winsource.c: Ditto.
6138 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6140 * configure.ac, gdb.1: Copyright year update.
6142 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6144 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6145 this_pc_in_block, morestack_msym and morestack_name. Check for
6146 "__morestack" minimal symbol there.
6148 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6150 * symfile.c (find_sym_fns): Add call to dont_repeat.
6152 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6154 Copyright year update in most files (performed by copyright.sh).
6156 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6158 * top.c (print_gdb_version): Update copyright year in version output.
6160 For older changes see ChangeLog-2010.
6166 version-control: never