1 2011-05-25 Andreas Schwab <schwab@redhat.com>
4 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6 2011-05-24 Keith Seitz <keiths@redhat.com>
9 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
10 (decode_compound): Unconditionally call keep_name_info.
12 2011-05-24 Pedro Alves <pedro@codesourcery.com>
14 * breakpoint.c (watchpoint_check): If the watchpoint went out of
15 scope, clear its command list.
16 (map_breakpoint_numbers): Don't walk the related breakpoints list
19 2011-05-24 Tom Tromey <tromey@redhat.com>
21 * MAINTAINERS: Move Jim Blandy to past maintainers.
23 2011-05-24 Tristan Gingold <gingold@adacore.com>
25 * symfile.h (enum dwarf2_section_enum): New type.
26 (dwarf2_get_section_info): New prototype.
27 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
28 section_name by sect. Use a switch to select the info.
29 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
30 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
32 2011-05-24 Pedro Alves <pedro@codesourcery.com>
34 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
35 shared library event breakpoint if there's no execution.
37 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
39 * breakpont.c (remove_hw_watchpoints): Remove unused function.
40 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
42 2011-05-23 Tom Tromey <tromey@redhat.com>
44 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
47 2011-05-23 Doug Evans <dje@google.com>
49 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
50 entry for RuntimeError to doc string.
52 2011-05-23 Jerome Guitton <guitton@adacore.com>
54 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
55 sequence for probing loops.
57 2011-05-23 Pedro Alves <pedro@codesourcery.com>
59 * infrun.c (user_visible_resume_ptid): Fix typos in describing
62 2011-05-21 Mark Kettenis <kettenis@gnu.org>
64 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
65 zero as the value for %g0 in the register cache.
66 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
67 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
69 2011-05-20 Pedro Alves <pedro@codesourcery.com>
71 * infrun.c (proceed): Set previous_inferior_ptid here.
72 (init_wait_for_inferior): Initialize previous_inferior_ptid from
73 inferior_ptid, not null_ptid.
74 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
75 (fetch_inferior_event): Nor here.
77 2011-05-20 Pedro Alves <pedro@codesourcery.com>
79 * inf-loop.c (inferior_event_handler): Only output a message if
82 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
84 * MAINTAINERS: Update my e-mail address.
86 2011-05-20 Pedro Alves <pedro@codesourcery.com>
88 * infrun.c (proceed): Switch the inferior event loop to
89 INF_EXEC_COMPLETE if the target refused to resume from a
92 2011-05-20 Pedro Alves <pedro@codesourcery.com>
94 * infcmd.c: Include "inf-loop.h".
95 (step_once): When stepping into an inline subroutine, pretend the
96 target has run. If the target can async, switch the inferior
97 event loop to INF_EXEC_COMPLETE.
98 * inferior.h (user_visible_resume_ptid): Declare.
99 * infrun.c (user_visible_resume_ptid): New function, factored out
102 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
103 that the current thread is running. Merge async and sync
106 2011-05-20 Pedro Alves <pedro@codesourcery.com>
108 * infcmd.c (step_1): Simplify synchronous case.
110 2011-05-20 Pedro Alves <pedro@codesourcery.com>
112 * tracepoint.c: Include exceptions.h.
113 (TFILE_PID): Move higher in file.
114 (tfile_open): Delay pushing the tfile target until we're assured
115 the tfile header is present in the file. Wrap reading the initial
116 newline-terminated lines in TRY_CATCH. Pop the target if the
117 initial setup failed. Add the tfile's thread immediately
118 aftwards, before any non-essential setup. Don't skip
119 post_create_inferior if there are no traceframes present in the
121 (tfile_close): Remove redundant check for null before xfree call.
122 (tfile_thread_alive): New function.
123 (init_tfile_ops): Register it as to_thread_alive callback.
125 2011-05-20 Pedro Alves <pedro@codesourcery.com>
127 * tracepoint.c (tfile_open): Delete #if 0'd code.
129 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
131 Fix -readnow for -gdwarf-4 unused type units.
132 * dwarf2read.c (struct signatured_type): Remove the field offset.
133 (create_signatured_type_table_from_index): Remove its initialization.
134 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
135 instead. Add a complaint call.
136 (process_psymtab_comp_unit): Change assignment to gdb_assert.
137 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
138 (lookup_signatured_type_at_offset, read_signatured_type)
139 (write_one_signatured_type): Update the field for per_cu.
141 2011-05-19 Tom Tromey <tromey@redhat.com>
143 * python/py-inferior.c (python_inferior_exit): Use
145 (python_on_resume): Likewise.
147 2011-05-19 Matt Rice <ratmice@gmail.com>
149 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
151 2011-05-19 Hui Zhu <teawater@gmail.com>
153 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
155 2011-05-19 Hui Zhu <teawater@gmail.com>
157 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
159 2011-05-18 Tom Tromey <tromey@redhat.com>
161 * dwarf2read.c (dwarf2_add_field): Constify.
162 * value.c (value_static_field): Constify.
163 * gdbtypes.h (struct main_type) <field.field_location.physname>:
165 * ax-gdb.c (gen_static_field): Constify
167 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
169 * linux-nat.c (kill_callback): Use SIGKILL first.
171 2011-05-18 Joel Brobecker <brobecker@adacore.com>
173 * ada-lang.c (print_it_exception): Avoid use of sprintf.
175 2011-05-18 Tom Tromey <tromey@redhat.com>
177 * value.c (value_fn_field): Constify.
178 * symtab.c (gdb_mangle_name): Constify.
179 * stabsread.c (update_method_name_from_physname): Make 'physname'
181 * p-typeprint.c (pascal_type_print_method_args): Make arguments
182 const. Use explicit fputc_filtered loop.
183 (pascal_type_print_base): Constify.
184 * p-lang.h (pascal_type_print_method_args): Update.
185 * linespec.c (add_matching_methods): Constify.
186 (add_constructors): Likewise.
187 * jv-typeprint.c (java_type_print_base): Constify.
188 * gdbtypes.h (struct cplus_struct_type)
189 <fn_fieldlist.fn_field.physname>: Now const.
190 * dwarf2read.c (compute_delayed_physnames): Constify.
191 (dwarf2_add_member_fn): Likewise.
192 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
194 2011-05-18 Pedro Alves <pedro@codesourcery.com>
196 * infrun.c (resume): Mention which is the current thread, and its
197 current PC in debug output.
198 (prepare_to_proceed): Mention the thread switching in debug
201 2011-05-18 Tom Tromey <tromey@redhat.com>
203 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
204 path check. Use xmalloc and cleanups.
205 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
207 2011-05-17 Tom Tromey <tromey@redhat.com>
209 * cp-valprint.c (cp_print_value_fields): Catch errors from
212 2011-05-17 Tom Tromey <tromey@redhat.com>
214 * dwarf2read.c (dwarf2_get_die_type): Call
215 get_die_type_at_offset.
216 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
217 get_base_type function.
219 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
221 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
224 2011-05-16 Doug Evans <dje@google.com>
226 * python/py-auto-load.c (source_section_scripts): Mention objfile
229 2011-05-15 Doug Evans <dje@google.com>
231 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
232 (try_thread_db_load_from_pdir): Call it. If unable to find
233 libthread_db in directory of libpthread, see if we're looking at
234 the separate-debug-info copy.
236 * python/py-autoload.c (print_script): Print "Missing" instead of
237 "No" for missing scripts.
238 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
240 2011-05-13 Doug Evans <dje@google.com>
242 * ui-file.c (stdio_file_write_async_safe): Add comment.
244 2011-05-14 Hui Zhu <teawater@gmail.com>
246 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
248 2011-05-13 Doug Evans <dje@google.com>
250 Support $pdir and $sdir in libthread-db-search-path.
251 * NEWS: Mention $sdir,$pdir.
252 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
253 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
254 (try_thread_db_load_from_sdir): New function.
255 (try_thread_db_load_from_dir): New function.
256 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
257 system directories if search of libthread-db-search-path fails,
258 that is now done via $sdir.
259 (has_libpthread): New function.
260 (thread_db_load): Remove search for libthread_db in directory of
261 libpthread, that is now done via $pdir.
263 * NEWS: Mention "info auto-load-scripts".
264 * python/py-auto-load.c (struct auto_load_pspace_info): New member
265 script_not_found_warning_printed.
266 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
267 all callers updated. Initialize script_not_found_warning_printed.
268 (get_auto_load_pspace_data_for_loading): New function.
269 (maybe_add_script): New function.
270 (source_section_scripts): Simplify. Only print one warning regardless
271 of the number of auto-load scripts not found.
272 (clear_section_scripts): Clear script_not_found_warning_printed.
273 (auto_load_objfile_script): Record script in hash table.
274 (count_matching_scripts): New function.
275 (maybe_print_script): Renamed from maybe_print_section_script, all
276 callers updated. Rewrite to use ui_out_*.
277 (info_auto_load_scripts): Renamed from
278 maintenance_print_section_scripts, all callers updated.
279 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
280 renamed as "info auto-load-scripts".
282 2011-05-13 Tom Tromey <tromey@redhat.com>
284 * dwarf2expr.c (read_uleb128): Cast intermediate result.
285 (read_sleb128): Likewise.
287 2011-05-13 Tom Tromey <tromey@redhat.com>
289 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
292 2011-05-13 Doug Evans <dje@google.com>
294 * linux-nat.c (debug_linux_nat_async): Delete.
295 Replace all references to use debug_linux_nat instead.
296 (show_debug_linux_nat_async): Delete.
297 (sigchld_handler): Call ui_file_write_async_safe instead of
299 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
300 * ui-file.c (struct ui_file): New member to_write_async_safe.
301 (null_file_write_async_safe): New function.
302 (ui_file_write_async_safe): New function.
303 (set_ui_file_write_async_safe): New function.
304 (ui_file_new): Initialize to_write_async_safe.
305 (stdio_file_write_async_safe): New function.
306 (struct stdio_file): New member fd.
307 (stdio_file_new): Initialize to_write_async_safe, fd.
308 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
310 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
311 (set_ui_file_write_async_safe): Declare.
312 (ui_file_write_async_safe): Declare.
314 2011-05-13 Tom Tromey <tromey@redhat.com>
316 * utils.c (do_value_free): New function.
317 (make_cleanup_value_free): Likewise.
318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
320 (dwarf2_loc_desc_needs_frame): Call
321 make_cleanup_value_free_to_mark.
322 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
323 * dwarf2expr.c (free_dwarf_expr_context): Don't call
325 (new_dwarf_expr_context): Don't call value_mark.
326 * dwarf2-frame.c (execute_stack_op): Call
327 make_cleanup_value_free_to_mark.
328 * defs.h (make_cleanup_value_free): Declare.
330 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
332 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
333 prepare_execute_command.
334 * top.c (prepare_execute_command): Return cleanup.
335 (execute_command): Use cleanup from prepare_execute_command.
336 * top.h (prepare_execute_command): Change prototype to return
338 * defs.h (struct value): Add opaque declaration.
339 (make_cleanup_value_free_to_mark): Add prototype.
340 * utils.c (do_value_free_to_mark): New function.
341 (make_cleanup_value_free_to_mark): Likewise.
343 2011-05-12 Tom Tromey <tromey@redhat.com>
345 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
346 cast left-hand-side to unsigned.
348 2011-05-12 Tom Tromey <tromey@redhat.com>
351 * value.h (value_from_contents): Declare.
352 * value.c (value_from_contents): New function.
353 * dwarf2read.c (dwarf_stack_op_name): Add new values.
354 (dwarf2_get_die_type): New function.
355 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
356 (allocate_piece_closure): Acquire reference to values.
357 (read_pieced_value): Update for value-based expressions.
358 (write_pieced_value): Likewise.
359 (free_pieced_value_closure): Call value_free as needed.
360 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
361 Update for value-based expressions.
362 * dwarf2loc.h (dwarf2_get_die_type): Declare.
363 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
364 <get_base_type>: New field.
365 (struct dwarf_expr_piece) <v.value>: Change type.
366 <v.regno>: New field.
367 (struct dwarf_expr_context) <mark>: New field.
368 (dwarf_expr_piece, dwarf_expr_fetch): Update.
369 (dwarf_expr_pop, dwarf_expr_push): Remove.
370 (dwarf_expr_push_address): Declare.
371 * dwarf2expr.c (dwarf_arch_cookie): New global.
372 (struct dwarf_gdbarch_types): New.
373 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
375 (dwarf_expr_push): Change type of 'value' argument. Update. Now
377 (dwarf_expr_push_address): New function.
378 (dwarf_expr_pop): Now static.
379 (dwarf_expr_fetch): Change return type.
380 (dwarf_require_integral): New function.
381 (dwarf_expr_fetch): Simplify.
383 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
385 (execute_stack_op) <sign_ext>: Remove.
386 Use values for DWARF stack.
387 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
388 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
390 (_initialize_dwarf2expr): New function.
392 (new_dwarf_expr_context): Set new field.
393 (free_dwarf_expr_context): Call value_free_to_mark.
394 * dwarf2-frame.c (no_base_type): New function.
395 (execute_stack_op): Set get_base_type field. Update.
397 2011-05-12 Tom Tromey <tromey@redhat.com>
399 * dwarf2read.c (read_common_block): Fix formatting.
401 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
403 * breakpoint.c (disable_breakpoint): Disable all locations
404 associated with a tracepoint on target if a trace experiment is
406 (disable_command): Disable a specific tracepoint location on target if
407 a trace experiment is running.
408 (do_enable_breakpoint): Enable all locations associated with a
409 tracepoint on target if a trace experiment is running.
410 (enable_command) Enable a specific tracepoint location on target if a
411 trace experiment is running.
412 * target.c (update_current_target): Add INHERIT and de_fault clauses for
413 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
414 to_disable_tracepoint.
415 * target.h: Add declaration of struct bp_location.
416 (struct target_ops): Add new functions
417 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
418 to_disable_tracepoint to target operations.
419 (target_supports_enable_disable_tracepoint): New macro.
420 (target_enable_tracepoint): New macro.
421 (target_disable_tracepoint): New macro.
422 * remote.c (struct remote_state): Add new field.
423 (remote_enable_disable_tracepoint_feature): New.
424 (remote_protocol_features): Add new entry.
425 (remote_supports_enable_disable_tracepoint): New.
426 (remote_enable_tracepoint): New.
427 (remote_disable_tracepoint): New.
428 (init_remote_ops): Add remote_enable_tracepoint,
429 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
430 to remote operations.
431 * tracepoint.c (start_tracing): Allow tracing to start without any
432 tracepoints enabled with just a warning if they can be re-enabled
434 * NEWS: Add news item for the new behaviour of the enable and disable
435 GDB commands when applied to tracepoints.
436 Add news items for the new remote packets QTEnable and QTDisable.
438 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
440 * config.in: Regenerate.
441 * configure: Regenerate.
442 * configure.ac <--with-system-readline> (for readline_echoing_p):
444 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
445 (tui_old_rl_echoing_p): ... here.
446 (tui_setup_io): Rename extern declaration readline_echoing_p to
447 _rl_echoing_p. Adjust assignments for the both renames.
449 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
451 * symtab.c (lookup_symtab): Run cleanup before returning.
453 2011-05-11 Tom Tromey <tromey@redhat.com>
455 * dwarf2read.c (handle_data_member_location): New function.
456 (dwarf2_add_field): Use it.
457 (read_common_block): Likewise.
459 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
461 Make addrs->SECTINDEX always defined.
462 * symfile.c (relative_addr_info_to_section_offsets): Check for
463 SECTINDEX -1, not for zero ADDR.
464 (addrs_section_compar): Remove checking for invalid SECTINDEX.
465 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
466 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
469 2011-05-10 Doug Evans <dje@google.com>
471 * linux-thread-db.c: Whitespace cleanup.
472 (try_thread_db_load_1): Fix comment.
474 * linux-thread-db.c (set_libthread_db_search_path): New function.
475 (_initialize_thread_db): Add setter for libthread-db-search-path.
477 2011-05-09 Doug Evans <dje@google.com>
479 * NEWS: Mention --with-iconv-bin.
480 * configure.ac: New option --with-iconv-bin.
481 * configure: Regenerate.
482 * config.in: Regenerate.
483 * defs.h (relocate_gdb_directory): Declare.
484 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
485 removed progname parameter, and exported. All callers updated.
486 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
488 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
489 adding missing call to restore_child_signals_mask.
491 2011-05-09 Pedro Alves <pedro@codesourcery.com>
493 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
495 * infrun.c (proceed, start_remote): Adjust.
496 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
497 and adjust to not handle it.
498 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
499 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
500 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
501 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
502 * windows-nat.c (do_initial_windows_stuff): Adjust.
503 * infcmd.c (attach_command): Adjust.
504 (notice_new_inferior): Adjust.
506 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
508 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
509 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
510 * spu-tdep.c (op_selb): Use correct value.
512 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
514 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
515 "parent" parameter to symbol_file_add_from_bfd call.
517 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
518 Thiago Jung Bauermann <bauerman@br.ibm.com>
520 Implement support for PowerPC BookE masked watchpoints.
521 * NEWS: Mention masked watchpoint support. Create "Changed commands"
523 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
524 method. Initialize to NULL in all existing breakpoint_ops instances.
525 (struct breakpoint) <hw_wp_mask>: New field.
526 * breakpoint.c (is_masked_watchpoint): Add prototype.
527 (update_watchpoint): Don't set b->val for masked watchpoints. Call
528 breakpoint's breakpoint_ops.works_in_software_mode if available.
529 (watchpoints_triggered): Handle the case of a hardware masked
531 (watchpoint_check): Likewise.
532 (works_in_software_mode_watchpoint): New function.
533 (insert_masked_watchpoint, remove_masked_watchpoint)
534 (resources_needed_masked_watchpoint)
535 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
536 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
537 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
539 (masked_watchpoint_breakpoint_ops): New structure.
540 (watch_command_1): Check for the existence of the `mask' parameter.
541 Set b->ops according to the type of hardware watchpoint being created.
542 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
543 (ppc_linux_remove_mask_watchpoint)
544 (ppc_linux_masked_watch_num_registers): New functions.
545 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
546 to_remove_mask_watchpoint and to_masked_watch_num_registers.
547 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
548 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
549 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
550 (target_masked_watch_num_registers): New functions.
551 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
552 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
554 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
555 (target_masked_watch_num_registers): Add prototypes.
557 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
560 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
561 (producer_is_gcc_ge_4_0): New function.
562 (process_full_comp_unit): Set also symtab->locations_valid. Move the
563 symtab->language code.
564 (var_decode_location): Set cu->has_loclist.
565 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
566 skip. Intialize force_skip from locations_valid. Move the prologue
567 skipping code into two passes.
568 * symtab.h (struct symtab): Make the primary field a bitfield. New
569 field locations_valid.
571 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
573 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
574 (classify_inner_name): Call cp_lookup_nested_type with
576 * cp-namespace.c (cp_lookup_nested_type): New variable
577 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
578 type_name_no_tag_or_error with saved_parent_type.
579 * dwarf2read.c (load_partial_dies): Read in any children of
580 DW_TAG_typedef with complaint in such case.
581 * gdbtypes.c (type_name_no_tag_or_error): New function.
582 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
583 * valops.c (destructor_name_p): New comment for parameter type. Remove
584 type const. Make dname and cp const. Call type_name_no_tag_or_error.
585 * value.h (destructor_name_p): Remove type const.
587 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
589 * symtab.c (compare_symbol_name): New function.
590 (completion_list_add_name, expand_partial_symbol_name): Call it,
591 remove the variable ncmp.
592 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
595 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
597 Demote to sw watchpoint only in update_watchpoint.
598 * breakpoint.c (update_watchpoint): Change between software and
599 hardware watchpoint for all kinds of watchpoints, not just
600 read/write ones. Determine b->exact value here instead of
601 in watch_command_1. Error out if there are not enough resources
602 for a read or access hardware watchpoint.
603 (watch_command_1): Remove logic of checking whether there are
604 enough resources available, since update_watchpoint will do that
605 work now. Don't set b->exact here. Catch exceptions thrown by
606 update_watchpoint and delete the watchpoint.
607 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
608 Use target_exact_watchpoints instead.
609 (delete_breakpoint): Notify observers only if deleted watchpoint
610 has a breakpoint number assigned to it.
612 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
614 * MAINTAINERS: Add myself as a write-after-approval maintainer.
616 2011-05-05 Jerome Guitton <guitton@adacore.com>
618 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
620 (i386_stack_tramp_frame_unwind): New static global.
621 (i386_match_pattern): New function, extracted from i386_match_insn.
622 (i386_match_insn): Use i386_match_pattern.
623 (i386_match_insn_block): New function.
624 (i386_tramp_chain_in_reg_insns)
625 (i386_tramp_chain_on_stack_insns): New static variables.
626 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
629 2011-05-04 Joseph Myers <joseph@codesourcery.com>
631 * configure.host (xscale*): Don't handle target.
632 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
635 2011-05-04 Yao Qi <yao@codesourcery.com>
637 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
639 2011-05-03 Joel Brobecker <brobecker@adacore.com>
642 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
643 | * elfread.c (elf_symtab_read): Stop memory leak.
645 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
647 * nto-tdep.c (nto_target): Replace deprecated call to
648 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
650 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
652 Fix false GCC warning.
653 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
655 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
657 * breakpoint.c (update_watchpoint): Move code to change
658 the enable state of breakpoint from here ...
659 (do_enable_breakpoint): ... to here.
661 2011-04-26 Andrew Gontarek <andrewg@cray.com>
663 * valprint.c (val_print_array_elements): Fixed poor performance
664 of printing very large arrays with repeat_count_threshold set
665 to unlimited. New comment.
667 2011-04-29 Tom Tromey <tromey@redhat.com>
669 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
670 (mi_parse): Likewise.
671 * breakpoint.c (break_range_command): Use sizeof char*, not
673 (create_breakpoint): Likewise.
674 (parse_breakpoint_sals): Likewise.
676 2011-04-29 Pedro Alves <pedro@codesourcery.com>
678 * linux-nat.c (linux_child_remove_fork_catchpoint)
679 (linux_child_remove_vfork_catchpoint)
680 (linux_child_remove_exec_catchpoint): New functions.
681 (linux_target_install_ops): Install them.
683 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
687 * varobj.c (install_default_visualizer): Do not install a
688 visualizer if the varobj is CPLUS_FAKE_CHILD.
689 (construct_visualizer): Likewise.
691 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
693 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
694 case insensitive comparison.
696 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
698 * infrun.c (proceed): Revert previous change.
699 (resume): Instead, handle the case of signal delivery while stepping
700 off a breakpoint location here, and only if software single-stepping
701 is used. Handle nested signals.
703 2011-04-28 Yao Qi <yao@codesourcery.com>
705 * arm-tdep.c (copy_unmodified): Rename to ...
706 (arm_copy_unmodified): .. this. New.
707 (copy_preload): Move common part to ...
708 (install_preload): .. this. New.
709 (arm_copy_preload): New.
710 (copy_preload_reg): Move common part to ...
711 (install_preload_reg): ... this. New.
712 (arm_copy_preload_reg): New.
713 (copy_b_bl_blx): Move common part to ...
714 (install_b_bl_blx): .. this. New.
715 (arm_copy_b_bl_blx): New.
716 (copy_bx_blx_reg): Move common part to ...
717 (install_bx_blx_reg): ... this. New.
718 (arm_copy_bx_blx_reg): New.
719 (copy_alu_reg): Move common part to ...
720 (install_alu_reg): ... this. New.
721 (arm_copy_alu_reg): New.
722 (copy_alu_shifted_reg): Move common part to ...
723 (install_alu_shifted_reg): ... this. New.
724 (copy_ldr_str_ldrb_strb): Move common part to ...
725 (install_ldr_str_ldrb_strb): ... this. New.
726 (arm_copy_ldr_str_ldrb_strb): New.
727 (copy_copro_load_store): Move some common part to ...
728 (install_copy_copro_load_store): ... this. New.
729 (arm_copy_copro_load_store): New.
731 (arm_copy_svc): Renamed from copy_svc.
732 (copy_undef): Delete.
733 (arm_copy_undef): Renamed from copy_undef.
734 (decode_ext_reg_ld_st): Delete.
735 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
736 (decode_svc_copro): Delete.
737 (arm_decode_svc_copro): Renamed from decode_svc_copro.
738 (copy_copro_load_store, copy_alu_imm): update callers.
739 (copy_extra_ld_st, copy_block_xfer): Likewise.
740 (decode_misc_memhint_neon, decode_unconditional): Likewise.
741 (decode_miscellaneous, decode_dp_misc): Likewise.
742 (decode_ld_st_word_ubyte, decode_media): Likewise.
743 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
744 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
745 (decode_unconditional, decode_miscellaneous): Likewise.
746 (decode_media, decode_b_bl_ldmstm): Likewise.
747 (arm_process_displaced_insn): Likewise..
748 (decode_misc_memhint_neon): Delete.
749 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
750 (decode_miscellaneous): Delete.
751 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
752 (decode_dp_misc): Delete.
753 (arm_decode_dp_misc): Renamed from decode_dp_misc.
754 (decode_ld_st_word_ubyte): Delete.
755 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
756 (decode_media): Delete.
757 (arm_decode_media): Renamed from decode_media.
758 (decode_b_bl_ldmstm): Delete.
759 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
760 (decode_ext_reg_ld_st): Delete.
761 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
762 (decode_unconditional): Delete.
763 (arm_decode_unconditional): Renamed from decode_unconditional.
765 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
767 Case insensitive lookups implementation.
768 * dwarf2read.c: Include ctype.h.
769 (struct mapped_index): New field version.
770 (mapped_index_string_hash): New parameter index_version. New comment
771 for it. Call tolower appropriately.
772 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
773 Choose the right index version for mapped_index_string_hash.
774 (dwarf2_read_index): Support also the index version 5. Initialize the
775 new struct mapped_index field version.
776 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
777 (find_slot): Explain the version needs. Pass INT_MAX for the new
779 (write_psymtabs_to_index): Produce version 5.
780 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
781 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
782 * psymtab.c (lookup_partial_symbol): Find the
783 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
785 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
787 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
788 (completion_list_add_name): New variable ncmp, initialize it, use it.
789 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
790 * utils.c (strcmp_iw): Support case_sensitive_off.
791 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
792 New function comment part. New variables saved_string1,
793 saved_string2 and case_pass. Add a proper second pass.
795 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
797 Replace re_comp/re_exec by regcomp/regexec.
798 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
799 (search_symbols_name_matches): Use them, use regexec.
800 (search_symbols): New variable retval_chain, adjust the use of
801 old_chain against it. Replace re_comp by regcomp. Use the new struct
802 search_symbols_data fields, use regexec instead of re_exec.
804 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
806 Format the code for the next patch.
807 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
808 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
809 New variables c1 and c2.
811 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
813 * infrun.c (proceed): Do not single-step into signal delivery
814 when stepping off a breakpoint location.
815 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
816 (insert_step_resume_breakpoint_at_caller): Likewise.
817 (insert_step_resume_breakpoint_at_sal): Likewise.
818 (insert_longjmp_resume_breakpoint): Likewise.
820 2011-04-27 Yao Qi <yao@codesourcery.com>
822 * common/linux-ptrace.h: Remove include <sys/wait.h>.
824 2011-04-27 Joel Brobecker <brobecker@adacore.com>
826 * procfs.c (procfs_pass_signals): Fix advance declaration.
828 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
830 * target.h (struct target_ops): Remove to_notice_signals;
832 (target_notice_signals): Remove.
833 (target_pass_signals): Add prototype.
834 * target.c (update_current_target): Remove to_notice_signals;
835 mention to_pass_signals.
836 (target_pass_signals): New function.
837 (debug_to_notice_signals): Remove.
838 (setup_target_debug): Do not install debug_to_notice_signals.
840 * infrun.c (signal_pass): New global.
841 (resume): Call target_pass_signals.
842 (handle_inferior_event): Report all signals while stepping over
843 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
844 are re-inserted when stepping over a signal handler.
845 (signal_cache_update): New function.
846 (signal_stop_update): Call it.
847 (signal_print_update): Likewise.
848 (signal_pass_update): Likewise.
849 (handle_command): Call signal_cache_update and target_pass_signals
850 instead of target_notice_signals.
851 (_initialize_infrun): Initialize signal_pass.
853 * linux-nat.c (pass_mask): New global.
854 (linux_nat_pass_signals): New function.
855 (linux_nat_create_inferior): Report all signals initially.
856 (linux_nat_attach): Likewise.
857 (linux_nat_resume): Use pass_mask to decide whether to directly
858 handle an inferior signal.
859 (linux_nat_wait_1): Likewise.
860 (linux_nat_add_target): Install to_pass_signals callback.
862 * nto-procfs.c (notice_signals): Remove.
863 (procfs_resume): Do not call notice_signals.
864 (procfs_notice_signals): Remove.
865 (procfs_pass_signals): New function.
866 (init_procfs_ops): Install to_pass_signals callback instead of
867 to_notice_signals callback.
868 (_initialize_procfs): Report all signals initially.
870 * procfs.c (procfs_notice_signals): Remove.
871 (procfs_pass_signals): New function.
872 (procfs_target): Install to_pass_signals callback instead of
873 to_notice_signals callback.
874 (register_gdb_signals): Remove.
875 (procfs_debug_inferior): Report all signals initially.
876 (procfs_init_inferior): Remove redundant register_gdb_signals call.
878 * remote.c (remote_pass_signals): Add numsigs and pass_signals
879 parameters; use them instead of calling signal_..._state routines.
880 (remote_notice_signals): Remove.
881 (remote_start_remote): Report all signals initially.
882 (remote_resume): Do not call remote_pass_signals.
883 (_initialize_remote): Install to_pass_signals callback instead of
884 to_notice_signals callback.
886 2011-04-27 Pedro Alves <pedro@codesourcery.com>
888 * breakpoint.c (user_settable_breakpoint): Delete.
889 (user_breakpoint_p): Remove check on user_settable_breakpoint.
890 (delete_command): Check user_breakpoint_p instead of looking at
891 the breakpoint's type.
892 (disable_command): Ditto.
893 (enable_command): Ditto.
894 (delete_trace_command): Use user_breakpoint_p instead of looking
895 at the breakpoint number directly. When checking if there are
896 user visible tracepoints, in order to know whether to ask the user
897 for confirmation, check whether the breakpoint is actually a
900 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
902 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
905 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
907 MI breakpoint notifications.
909 * annotate.c (breakpoint_changed): Adjust parameter type.
910 * breakpoint.c (set_breakpoint_condition): Adjust to change
911 in breakpoint_modified type.
912 (breakpoint_set_commands): Likewise.
913 (do_map_commands_command): Likewise.
914 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
915 changed after bumping hit count.
916 (bpstat_stop_status): Likewise.
917 (print_one_breakpoint_location): Don't wrap in tuple here.
918 (print_one_breakpoint): Always print individual locations.
919 For locations, use unnamed tuple.
920 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
922 (create_catchpoint, create_syscall_event_catchpoint): Call
923 breakpoint_created obsever.
924 (mention): Don't call breakpoint_created observer.
925 (create_breakpoint_sal): Call breakpoint_created observer.
926 (create_breakpoint, watch_command_1): Likewise.
927 (create_ada_exception_breakpoint): Likewise.
928 (delete_breakpoint): Call breakpoint_deleted breakpoint.
929 (locations_are_equal): New.
930 (update_breakpoint_locations): If locations were changed, notify.
931 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
932 Call breakpoint_modified observer.
934 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
935 (mi_cmd_break_insert): Don't set observers for modify and delete.
936 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
937 (mi_breakpoint_created, mi_breakpoint_deleted)
938 (mi_breakpoint_modified): New.
939 (mi_interpreter_init): Hook the above.
940 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
941 while -break-* commands are executing.
942 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
943 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
945 (mi_ui_out_impl): Hook in mi_redirect.
946 (mi_field_skip): True to the name, skip the field, don't output
947 a field with an empty value.
949 * python/py-breakpoint.c (gdbpy_breakpoint_created)
950 (gdbpy_breakpoint_deleted): Adjust.
951 * tui/tui-hooks.c (tui_event_create_breakpoint)
952 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
954 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
956 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
957 (procfs_remove_hw_watchpoint): Likewise.
959 2011-04-26 Michael Walle <michael@walle.cc>
961 * remote.c (remote_start_remote): Ack packet after sending the
964 2011-04-26 Yao Qi <yao@codesourcery.com>
966 * linux-nat.c: Move common macros to ...
967 Include linux-ptrace.h.
968 * common/linux-ptrace.h: ... here. New.
970 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
972 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
973 !objfile_has_partial_symbols. New comment.
974 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
975 SYM_READ_PSYMBOLS is not present. Extend the comment.
976 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
978 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
980 * defs.h (ENUM_BITFIELD): Remove.
982 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
983 Eli Zaretskii <eliz@gnu.org>
985 * NEWS: Document the new gdbserver --once option.
987 2011-04-21 Jie Zhang <jzhang918@gmail.com>
989 * MAINTAINERS: Update my email address.
991 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
993 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
994 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
995 function call if __STDC_ISO_10646__ macro is defined.
996 (intermediate_encoding): New prototype.
997 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
998 to generate compile time error for unsupported gdb_wchar_t size.
999 (ENDIAN_SUFFIX): New macro.
1000 (intermediate_encoding): New function.
1002 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 * ada-lang.c (struct add_partial_datum): Update the comment for
1005 expand_partial_symbol_name.
1006 (ada_add_partial_symbol_completions): Rename to ...
1007 (ada_expand_partial_symbol_name): ... here, change return type, update
1008 function comment, call symbol_completion_match instead of
1009 symbol_completion_add.
1010 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1011 and ada_expand_partial_symbol_name.
1012 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1014 (dw2_map_symbol_names): Remove.
1015 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1016 * psymtab.c (map_symbol_names_psymtab): Remove.
1017 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1018 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1020 (psym_functions): Unlist map_symbol_names_psymtab.
1021 (map_partial_symbol_names): Rename to ...
1022 (expand_partial_symbol_names): ... here, change the FUN type, call
1023 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1024 * psymtab.h (map_partial_symbol_names): Rename to ...
1025 (expand_partial_symbol_names): ... here, change the FUN type.
1026 * symfile.h (struct quick_symbol_functions): Update the description of
1027 expand_symtabs_matching. Remove map_symbol_names.
1028 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1029 (struct add_name_data): Update the comment for
1030 expand_partial_symbol_name.
1031 (add_partial_symbol_name): Rename to ...
1032 (expand_partial_symbol_name): ... here. Replace
1033 completion_list_add_name call by strncmp.
1034 (default_make_symbol_completion_list_break_on): Use now
1035 expand_partial_symbol_names and expand_partial_symbol_name.
1036 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1038 2011-04-20 Tom Tromey <tromey@redhat.com>
1040 * dwarf2read.c (save_gdb_index_command): Replace format
1041 documentation with a pointer to the manual.
1043 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1045 * regcache.c: Include remote.h.
1046 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1047 (regcache_dump): Handle regcache_dump_remote.
1048 (maintenance_print_remote_registers): New function.
1049 (_initialize_regcache): Install "maint print remote-registers"
1051 * remote.c (map_regcache_remote_table): New function, factored out
1053 (init_remote_state): ... here.
1054 (remote_register_number_and_offset): New.
1055 * remote.h (remote_register_number_and_offset): Declare.
1057 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1059 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1060 null_ptid, assume and allow a NULL address space, instead of
1061 asking the target for the ptid's address space.
1062 * infrun.c (ptid_is_pid): Remove assertion.
1064 2011-04-19 Tom Tromey <tromey@redhat.com>
1066 * windows-tdep.c (windows_xfer_shared_library):
1067 * windows-nat.c (get_module_name, windows_make_so):
1068 * v850-tdep.c (v850_handle_pushm):
1069 * utils.c (null_cleanup, gdb_realpath):
1070 * ui-out.c (get_next_header):
1071 * tracepoint.c (clear_traceframe_info):
1072 * symtab.c (lookup_symtab):
1073 * serial.h (struct serial_ops):
1074 * mipsread.c (read_alphacoff_dynamic_symtab):
1075 * infcmd.c (print_return_value):
1076 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1077 * f-exp.y (parse_number):
1078 * exceptions.c (catch_exceptions):
1079 * dummy-frame.c (dummy_frame_this_id):
1080 * defs.h (struct cleanup):
1081 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1082 * arm-tdep.c (arm_push_dummy_call):
1083 * amd64-tdep.h (amd64_collect_xsave):
1084 * amd64-tdep.c (amd64_collect_xsave):
1085 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1086 * README (typing): Remove duplicate words.
1087 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1088 * infrun.c (siginfo_value_read): Fix typo.
1089 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1090 * top.c (source_line_number): Add comma.
1092 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1094 * thread.c (any_live_thread_of_process): Prioritize threads
1095 that are not executing.
1096 * gdbthread.h (any_live_thread_of_process): Update comment
1097 as per above change.
1099 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1101 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1102 (scan_xcoff_symtab): Likewise.
1104 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1106 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1109 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1110 Pedro Alves <pedro@codesourcery.com>
1112 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1113 variables to simplify code and avoid == operator at end of
1114 line as this is against GNU coding standards.
1116 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1118 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1119 lm_name to name_lm to avoid conflict with lm_name function.
1121 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1123 ARI fixes: Use only lowercase function name for static functions.
1124 * nto-tdep.c (LM_ADDR): Rename to...
1125 (lm_addr): New function name.
1126 (nto_relocate_section_addresses): Adapt to change above.
1127 * solib-sunos.c (LM_ADDR): Rename to...
1128 (lm_addr): New function name.
1129 (LM_NEXT): Rename to...
1130 (lm_next): New function name.
1131 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1132 function name changes above.
1133 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1134 (lm_addr_from_link_map): New function name.
1135 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1136 (has_lm_dynamic_from_link_map): New function name.
1137 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1138 (lm_dynamic_from_link_map): New function name.
1139 (LM_ADDR_CHECK): Rename to...
1140 (lm_addr_check): New function name.
1141 (LM_NEXT): Rename to...
1142 (lm_next): New function name.
1143 (LM_PREV): Rename to...
1144 (lm_prev): New function name.
1145 (LM_NAME): Rename to...
1146 (lm_name): New function name.
1147 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1148 (ignore_first_link_map_entry): New function name.
1149 (svr4_keep_data_in_core): Adapt to function name changes above.
1150 (svr4_current_sos): Likewise.
1151 (enable_break): Likewise.
1152 (svr4_relocate_section_addresses): Likewise.
1154 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1157 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1158 sprintf. Simplify code and avoid loosing memory.
1159 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1160 (call0_frame_cache): Remove && operator from end of line.
1162 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1164 Fix libraries displacement if they change whether they were prelinked.
1165 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1166 does not match. Comment why.
1168 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1170 * corelow.c: Include wrapper.h.
1171 (core_open): Call now gdb_target_find_new_threads.
1172 * wrapper.c: Include target.h.
1173 (gdb_target_find_new_threads): New.
1174 * wrapper.h (gdb_target_find_new_threads): New declaration.
1176 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1178 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1179 even if !TARGET_HAS_EXECUTION.
1181 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1183 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1184 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1185 bfd_get_synthetic_symtab.
1186 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1187 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1188 parameter parent, remove the call to add_separate_debug_objfile.
1189 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1190 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1191 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1192 parent, new comment for it, call add_separate_debug_objfile for it.
1193 (symbol_file_add_separate): Pass objfile as the parameter parent,
1194 remove the call to add_separate_debug_objfile.
1195 (symbol_file_add_from_bfd): New parameter parent, pass it.
1196 (symbol_file_add): Pass NULL to the new parameter parent.
1197 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1199 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1201 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1204 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1206 Fix Python access to inlined frames.
1207 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1208 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1210 2011-04-15 Tom Tromey <tromey@redhat.com>
1212 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1214 2011-04-15 Gary Benson <gbenson@redhat.com>
1216 * MAINTAINERS: Add myself to write-after-approval section.
1218 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1220 * remote-sim.c (sim_command_completer): New function.
1221 (_initialize_remote_sim): Set completer to sim_command_completer.
1223 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1225 * breakpoint.c (print_exception_catchpoint): Rename to ...
1226 (print_it_exception_catchpoint): ... this.
1227 (gnu_v3_exception_catchpoint_ops): Update with new name
1228 for print_it_exception_catchpoint.
1230 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1232 * MAINTAINERS: Add myself for write after approval privileges.
1234 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1236 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1238 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1240 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1242 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1244 * breakpoint.c (save_breakpoints): Verify whether
1245 breakpoint_ops.print_recreate is defined before calling it.
1247 2011-04-11 Gary Benson <gbenson@redhat.com>
1249 Fix failure with --enable-maintainer-mode.
1250 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1252 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1255 * symtab.c (search_symbols): Reorder the KIND description in the
1256 function comment. Remove the unused 4th element of types, types2,
1257 types3 and types4. New gdb_assert on KIND.
1258 (symtab_symbol_info): Remove the unused 4th element of classnames.
1259 New gdb_assert on KIND.
1260 * symtab.h (enum search_domain): New warning in the enum comment.
1261 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1264 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1266 Fix crash of gdb save-index on a STABS file.
1267 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1270 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1272 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1273 * dwarf2read.c: Include ctype.h.
1274 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1276 (dwarf2_add_field): Fix new_field->accessibility by calling
1277 dwarf2_default_access_attribute. Restructure setting accessibility
1279 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1280 is_private and is_protected by calling
1281 dwarf2_default_access_attribute.
1283 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1285 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1286 to the initialization.
1288 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1290 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1293 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1295 Remove support for old Cygwin 1.5 versions.
1296 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1297 function on old Cygwin version.
1298 * windows-nat.c: Remove cygwin version check and always define
1299 __USEWIDE for Cygwin compilation.
1301 2011-04-07 Yao Qi <yao@codesourcery.com>
1303 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1305 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1306 (arm_copy_svc): Remove parameters INSN and TO.
1307 (decode_svc_copro): Update caller.
1308 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1309 from function pointer `copy_svc_os'.
1311 2011-04-07 Yao Qi <yao@codesourcery.com>
1313 * arm-tdep.c (cleanup_branch): Set a correct return address in
1314 LR for ARM and Thumb.
1316 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1319 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1320 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1321 in the function comment, a new note on values compatibility.
1322 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1323 * symtab.h (SYMBOL_HASH_NEXT): New.
1325 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1327 * ppc-linux-nat.c (check_condition): Add len output parameter.
1328 Set it based on the memory region referenced in the condition
1329 expression. Update all callers.
1331 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1333 Fix crash regression on systems featuring .gdb_index.
1334 * objfiles.c (free_objfile): Move the
1335 forget_cached_source_info_for_objfile call earlier. Comment it.
1336 Extend the comment for objfile_free_data.
1338 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1340 Fix regression of displaying the debug format.
1341 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1344 2011-04-04 Tom Tromey <tromey@redhat.com>
1346 * cli/cli-interp.c (struct captured_execute_command_args):
1348 (do_captured_execute_command): Remove.
1349 (safe_execute_command): Use TRY_CATCH.
1350 * cli/cli-script.c (struct wrapped_read_command_file_args):
1352 (wrapped_read_command_file): Remove.
1353 (script_from_file): Use TRY_CATCH.
1354 * exceptions.c (catch_exception): Remove.
1355 * exceptions.h (catch_exception): Remove.
1356 (deprecated_throw_reason): Update comment.
1357 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1358 argument to 'context'.
1359 (mi_execute_command): Use TRY_CATCH.
1360 * remote.c (struct start_remote_args): Remove.
1361 (remote_start_remote): Update; change arguments.
1362 (remote_open_1): Use TRY_CATCH.
1364 2011-04-04 Tom Tromey <tromey@redhat.com>
1366 * tracepoint.c (scope_info): Update.
1367 * symtab.c (decode_line_spec): Update.
1368 * python/python.c (gdbpy_decode_line): Update.
1369 * linespec.h (decode_line_1): Update.
1370 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1371 (decode_compound, find_method, symtab_from_filename)
1372 (decode_variable): Likewise.
1373 * cli/cli-cmds.c (edit_command): Update.
1374 (list_command): Update.
1375 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1377 (create_breakpoint): Update.
1378 (until_break_command): Update.
1379 (addr_string_to_sals): Update.
1380 (decode_line_spec_1): Update.
1382 2011-04-04 Tom Tromey <tromey@redhat.com>
1384 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1385 (do_captured_parse_breakpoint): Remove.
1386 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1387 Use TRY_CATCH directly.
1389 2011-04-04 Tom Tromey <tromey@redhat.com>
1391 * symtab.h (free_symtab): Remove.
1392 (forget_cached_source_info_for_objfile): Declare.
1393 * symmisc.c (free_symtab): Remove.
1394 * source.c (forget_cached_source_info_for_objfile): New function.
1395 (forget_cached_source_info): Use it.
1396 * objfiles.c (free_objfile): Simplify check before calling
1397 clear_current_source_symtab_and_line. Call
1398 forget_cached_source_info_for_objfile.
1400 2011-04-04 Tom Tromey <tromey@redhat.com>
1402 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1403 (new_symtab): Don't set `free_code' on symtab.
1404 (new_linetable): Properly handle size==0.
1405 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1406 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1408 * jv-lang.c (struct jv_per_objfile_data): New.
1409 (jv_per_objfile_free): Free the data.
1410 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1411 (get_java_class_symtab): Set the `dict' field on the
1412 jv_per_objfile_data.
1413 (free_class_block): Remove.
1414 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1417 2011-04-04 Tom Tromey <tromey@redhat.com>
1419 * symfile.c (reread_symbols): Update.
1420 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1422 * objfiles.c (allocate_objfile): Update.
1423 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1425 * cp-namespace.c (lookup_symbol_file): Don't call
1426 lookup_possible_namespace_symbol.
1427 (initialize_namespace_symtab, get_possible_namespace_block)
1428 (free_namespace_block, cp_check_possible_namespace_symbols)
1429 (check_possible_namespace_symbols_loop)
1430 (check_one_possible_namespace_symbol)
1431 (lookup_possible_namespace_symbol): Remove.
1432 (maintenance_cplus_namespace): Replace with notice.
1433 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1435 2011-04-04 Tom Tromey <tromey@redhat.com>
1437 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1438 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1439 * symmisc.c (free_symtab): Don't free debugformat.
1440 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1441 (record_debugformat, record_producer): Document.
1442 * buildsym.c (end_symtab): Don't save debugformat and producer
1444 (end_symtab): Don't free debugformat and producer fields.
1445 (record_debugformat): Don't call xstrdup.
1446 (record_producer): Likewise.
1448 2011-04-04 Tom Tromey <tromey@redhat.com>
1450 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1451 (source_line_charpos, source_charpos_line): Remove.
1453 2011-04-04 Tom Tromey <tromey@redhat.com>
1455 * symtab.h (domain_enum): Split in two...
1456 (enum search_domain): New.
1457 (search_symbols): Update.
1458 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1459 redundant declarations.
1460 (search_symbols): Change 'kind' argument to search_domain.
1462 (print_symbol_info): Likewise.
1463 (symtab_symbol_info): Likewise.
1464 * symfile.h (struct quick_symbol_functions)
1465 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1466 <expand_symtabs_matching>: Likewise.
1467 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1468 (expand_symtabs_matching_via_partial): Update.
1469 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1470 (dw2_expand_symtabs_for_function): Update.
1471 * block.h: Moved anonymous enum...
1472 * defs.h (enum block_enum): ... here. Now named.
1474 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1476 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1477 * version.in: Bump version to 7.3.50.20110403-cvs.
1479 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1481 * NEWS: Create a new section for the next release branch.
1482 Rename the section of the current branch, now that it has
1485 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1487 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1488 for "fpscr" in target description.
1490 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1492 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1493 initialize it. Delay HASH initialization. Strip the part after open
1494 parenthesis for languages with qualifiers. Call do_cleanups.
1496 2011-04-01 Tom Tromey <tromey@redhat.com>
1498 * utils.c (report_command_stats): Don't print `-' for negative
1501 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1503 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1504 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1507 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1509 * breakpoint.h (bpdisp_text): Add declaration.
1510 * breakpoint.c (bpdisp_text): Make non-static.
1511 * ada-lang.c: #include "mi/mi-common.h".
1512 (print_it_exception): Rewrite to improve GDB/MI output.
1514 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1516 * arm-tdep.h (struct address_space): Add forward declaration.
1518 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1520 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1521 * arm-tdep.c (arm_override_mode): New global.
1522 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1523 execution mode heuristics.
1524 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1525 second single-step breakpoint if needed, using
1526 arm_insert_single_step_breakpoint.
1527 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1528 ARM execution mode, do not call thumb_get_next_pc_raw.
1529 (arm_get_next_pc): Encode execution mode in return value. Call
1530 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1531 (arm_insert_single_step_breakpoint): New function.
1532 (arm_software_single_step): Call it.
1533 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1534 argument to return execution mode of sigreturn target.
1535 (arm_linux_syscall_next_pc): Use it.
1536 (arm_linux_copy_svc): Update call.
1537 (arm_linux_software_single_step): Call
1538 arm_insert_single_step_breakpoint.
1540 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1542 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1545 2011-03-31 Tom Tromey <tromey@redhat.com>
1547 * varobj.c (update_dynamic_varobj_children): Properly handle
1548 errors from iterator.
1550 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1552 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1553 struct linkage name twice.
1555 2011-03-31 Tom Tromey <tromey@redhat.com>
1557 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1558 missing ">" to message.
1560 2011-03-31 Tom Tromey <tromey@redhat.com>
1562 * varobj.c (instantiate_pretty_printer): Remove duplicate
1565 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1567 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1568 if neither saved value nor register available (e.g. signal frame).
1570 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1572 * macroexp.c (expand): Avoid uninitialized variable
1575 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1577 * breakpoint.c (break_range_command): Fix typo in comment.
1579 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1580 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1582 Implement support for PowerPC BookE ranged breakpoints.
1583 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1584 * breakpoint.h (struct bp_target_info) <length>: New member
1586 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1587 instead of struct breakpoint as argument, and also add ASPACE
1588 and BP_ADDR arguments. Update all callers.
1589 (struct breakpoint_ops) <print_one_detail>: New method.
1590 (struct breakpoint) <addr_string_range_end>: New member variable.
1591 * breakpoint.c (breakpoint_location_address_match): Add function
1593 (insert_bp_location): Set bl->target_info.length.
1594 (breakpoint_here_p): Call breakpoint_location_address_match.
1595 (moribund_breakpoint_here_p): Likewise.
1596 (regular_breakpoint_inserted_here_p): Likewise.
1597 (breakpoint_thread_match): Likewise.
1598 (bpstat_stop_status): Likewise.
1599 (bpstat_check_location): Move call to
1600 breakpoint_ops.breakpoint_hit to the top.
1601 (print_one_breakpoint_location): Call
1602 breakpoint_ops.print_one_detail if available.
1603 (breakpoint_address_match_range): New function.
1604 (breakpoint_location_address_match): Likewise.
1605 (breakpoint_locations_match): Compare the length field of the
1607 (hw_breakpoint_used_count): Count resources used by all locations
1608 in a breakpoint, and use breakpoint_ops.resources_needed if
1610 (breakpoint_hit_ranged_breakpoint): New function.
1611 (resources_needed_ranged_breakpoint): Likewise.
1612 (print_it_ranged_breakpoint): Likewise.
1613 (print_one_ranged_breakpoint): Likewise.
1614 (print_one_detail_ranged_breakpoint): Likewise.
1615 (print_mention_ranged_breakpoint): Likewise.
1616 (print_recreate_ranged_breakpoint): Likewise.
1617 (ranged_breakpoint_ops): New structure.
1618 (find_breakpoint_range_end): New function.
1619 (break_range_command): Likewise.
1620 (delete_breakpoint): Free addr_string_range_end.
1621 (update_breakpoint_locations): Add SALS_END argument. Update
1622 all callers. Calculate breakpoint length if a non-zero SALS_END
1623 is given. Call breakpoint_locations_match instead of
1624 breakpoint_address_match.
1625 (reset_breakpoint): Find SaL of the end of the range if B is a
1627 (_initialize_breakpoint): Register break-range command.
1628 * defs.h (print_core_address): Add function prototype.
1629 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1631 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1632 (ppc_linux_remove_hw_breakpoint): Likewise.
1633 (_initialize_ppc_linux_nat): Initialize
1634 to_ranged_break_num_registers.
1635 * target.c (update_current_target): Add comment about
1636 to_ranged_break_num_registers.
1637 (target_ranged_break_num_registers): New function.
1638 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1640 (target_ranged_break_num_registers): Add function prototype.
1641 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1642 * utils.c (print_core_address): ... here.
1644 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1646 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1647 variable compiler warning.
1649 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1651 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1653 (re_set_breakpoint): ... to here ...
1654 (addr_string_to_sals): ... and here.
1656 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1658 * Makefile.in (SFILES): Add missing C sources.
1659 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1660 Add missing headers.
1662 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1664 * .gitignore: New file.
1666 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1668 * NEWS: Mention new cfi device simulation.
1670 2011-03-29 Tom Tromey <tromey@redhat.com>
1672 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1673 otherwise anonymous types.
1674 (dwarf2_name): Likewise.
1675 * valops.c (value_struct_elt_for_reference): Refine artificial
1676 type logic. Call error if j==-1.
1678 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1680 Fix false GCC warning.
1681 * infcall.c (find_function_addr): Initialize funaddr.
1683 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1685 Fix mingw compilation with --enable-targets=all.
1686 * remote-mips.c (gdb_usleep.h): Include header.
1687 (mips_enter_debug): Use gdb_usleep instead of sleep.
1689 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 Support resolution of STT_GNU_IFUNC via breakpoints.
1692 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1693 bp_gnu_ifunc_resolver_return.
1694 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1695 the loop. Support bp_gnu_ifunc_resolver and
1696 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1697 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1699 (bptype_string, print_one_breakpoint_location): Support
1700 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1701 (user_settable_breakpoint): Return true also for
1702 bp_gnu_ifunc_resolver.
1703 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1704 bp_gnu_ifunc_resolver_return.
1705 (set_breakpoint_location_function): New parameter explicit_loc,
1706 describe it. Call find_pc_partial_function_gnu_ifunc with new
1707 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1708 EXPLICIT_LOC is not set.
1709 (set_raw_breakpoint): Set EXPLICIT_LOC for
1710 set_breakpoint_location_function.
1711 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1712 set_breakpoint_location_function.
1713 (mention): Support bp_gnu_ifunc_resolver and
1714 bp_gnu_ifunc_resolver_return.
1715 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1716 set_breakpoint_location_function.
1717 (update_breakpoint_locations): Remove static.
1718 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1719 bp_gnu_ifunc_resolver_return.
1720 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1721 bp_gnu_ifunc_resolver_return.
1722 (update_breakpoint_locations): New declaration.
1723 * elfread.c: Include gdbthread.h and regcache.h.
1724 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1726 (elf_gnu_ifunc_fns): Install them.
1727 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1728 (stub_gnu_ifunc_resolver_return_stop): New functions.
1729 (stub_gnu_ifunc_fns): Install them.
1730 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1731 and gnu_ifunc_resolver_return_stop.
1732 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1734 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1736 STT_GNU_IFUNC reader implementation.
1737 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1738 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1739 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1740 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1741 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1742 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1743 (elf_gnu_ifunc_resolve_addr): New.
1744 (elf_symfile_read): Call elf_rel_plt_read.
1745 (elf_gnu_ifunc_fns): New.
1746 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1747 Install elf_gnu_ifunc_fns.
1748 * infcall.c (find_function_return_type): New function.
1749 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1750 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1751 (stub_gnu_ifunc_resolve_name): New functions.
1752 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1753 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1754 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1756 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 Code cleanup for later STT_GNU_IFUNC support.
1759 * infcall.c (find_function_addr): Remove variable code, use explicit
1760 dereferences for it. Move VALUE_TYPE initialization later.
1762 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1764 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1765 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1766 (clear_pc_function_cache): Clear it.
1767 (find_pc_partial_function): Rename to ...
1768 (find_pc_partial_function_gnu_ifunc): ... this function. New
1769 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1770 (find_pc_partial_function): New wrapper for this function.
1771 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1773 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1775 GDB internal type support for STT_GNU_IFUNC.
1776 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1777 (elf_symtab_read): Set mst_text_gnu_ifunc for
1778 BSF_GNU_INDIRECT_FUNCTION.
1779 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1780 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1781 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1782 nodebug_got_plt_symbol.
1783 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1784 (TYPE_GNU_IFUNC): New.
1785 (struct main_type): New field flag_gnu_ifunc.
1786 (struct builtin_type): New field builtin_func_func.
1787 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1788 nodebug_got_plt_symbol.
1789 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1790 (in_gnu_ifunc_stub): New.
1791 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1793 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1794 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1795 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1797 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1798 * symtab.c (search_symbols): Likewise.
1799 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1800 and mst_slot_got_plt.
1801 (in_gnu_ifunc_stub): New declaration.
1803 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1805 Support a ring of related breakpoints.
1806 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1807 other functions, add gdb_assert.
1808 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1809 watchpoint_del_at_next_stop.
1810 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1811 (bpstat_stop_status): Handle ring in related_breakpoint.
1812 (set_raw_breakpoint_without_location): Initialize ring in
1814 (delete_breakpoint): Handle ring in related_breakpoint, use
1815 watchpoint_del_at_next_stop.
1816 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1818 2011-03-28 Tom Tromey <tromey@redhat.com>
1821 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1822 with `language_minimal'.
1824 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1826 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1827 instead of checking for STT_ARM_TFUNC symbol type.
1829 2011-03-25 Tom Tromey <tromey@redhat.com>
1831 * linespec.c (symbol_found): Restore line-based result for
1832 non-LOC_LABEL symbols.
1834 2011-03-25 Kai Tietz <ktietz@redhat.com>
1836 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1837 instead of strcmp for comparison.
1838 (tui_source_is_displayed): Likewise.
1839 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1841 2011-03-24 Mark Wielaard <mjw@redhat.com>
1843 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1845 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1846 (find_partial_die_in_comp_unit): Likewise in comment.
1847 (read_attribute_value): Likewise.
1848 (lookup_die_type): Likewise.
1849 (dwarf_form_name): Likewise.
1850 (dump_die_shallow): Likewise.
1851 (follow_die_ref_or_sig): Likewise.
1853 2011-03-24 Tom Tromey <tromey@redhat.com>
1855 PR breakpoints/11816:
1856 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1857 (decode_compound): Update.
1858 (find_function_symbol): New function.
1859 (decode_dollar): Update.
1860 (decode_label): Add 'function_symbol' parameter. Handle
1861 function-relative labels.
1862 (decode_variable): Update.
1863 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1864 not its line. Set `special_display' and canonical name for
1867 2011-03-24 Tom Tromey <tromey@redhat.com>
1869 * linespec.h (struct linespec_result) <special_display>: New
1871 * breakpoint.h (struct breakpoint) <display_canonical>: New
1873 * breakpoint.c (print_breakpoint_location): Respect
1875 (create_breakpoint_sal): Add 'display_canonical' parameter.
1876 (create_breakpoints_sal): Update.
1877 (create_breakpoint): Update.
1879 2011-03-24 Tom Tromey <tromey@redhat.com>
1881 * symtab.c (decode_line_spec): Update.
1882 * linespec.c (build_canonical_line_spec): Change type of
1884 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1885 (find_method, decode_all_digits, decode_dollar, decode_label)
1886 (symbol_found): Likewise.
1887 (init_linespec_result): New function.
1888 * breakpoint.c (struct captured_parse_breakpoint_args)
1889 <canonical_p>: New field, replaces addr_string_p.
1890 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1892 (parse_breakpoint_sals): Likewise.
1893 (do_captured_parse_breakpoint): Update.
1894 (create_breakpoint): Use struct linespec_result.
1895 (until_break_command): Update.
1896 (breakpoint_re_set_one): Update.
1897 (decode_line_spec_1): Update.
1898 * linespec.h (struct linespec_result): New.
1899 (init_linespec_result): Declare.
1901 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1903 * regcache.c (regcache_raw_read): If the target didn't supply a
1904 given raw register, mark it as unavailable.
1906 2011-03-23 Kai Tietz <ktietz@redhat.com>
1908 * breakpoint.c (clear_command): Use filename_cmp
1909 instead of strcmp for comparison.
1910 * buildsym.c (watch_main_source_file_lossage): Likewise.
1911 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1912 checking just for slash.
1913 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1914 strrchr and filename_cmp instead of strcmp for filenames.
1915 (add_old_header_file): Use filename_cmp
1916 instead of strcmp for comparison.
1917 * exec.c (exec_set_section_address): Likewise.
1918 * macrotab.c (macro_lookup_inclusion): Likewise.
1919 (macro_lookup_inclusion): Likewise.
1920 * elfread.c (_initialize_elfread): Likewise.
1921 (elfstab_offset_sections): Likewise.
1922 (elfstab_offset_sections): Use lbasename instead of
1924 * mdebugread.c (parse_partial_symbols): Likewise.
1925 (arse_partial_symbols): Use filename_(n)cmp instead of
1926 str(n)cmp for comparison.
1927 * minsyms.c (lookup_minimal_symbol): Likewise.
1928 * psymtab.c (read_psymtabs_with_filename): Likewise.
1929 * solib.c (solib_read_symbols): Likewise.
1930 (reload_shared_libraries_1): Likewise.
1931 * symmisc.c (maintenance_print_symbols): Likewise.
1932 * symfile.c (separate_debug_file_exists): Likewise.
1933 (reread_symbols): Likewise.
1934 (find_separate_debug_file_by_debuglink): Likewise.
1935 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1936 * source.c (add_path): Likewise.
1937 * symtab.c (filename_seen): Likewise.
1938 (file_matches): Likewise.
1939 (print_symbol_info): Likewise.
1940 (maybe_add_partial_symtab_filename): Likewise.
1941 (make_source_files_completion_list): Likewise.
1942 * xml-syscall.c (init_sysinfo): Likewise.
1943 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1944 IS_DIR_SEPARATOR for checking for trailing path separator.
1946 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1948 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1949 label abort_expression.
1950 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1951 DWARF_VALUE_OPTIMIZED_OUT.
1953 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1956 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1957 to linkage_name. Invert its value. Update the function comment.
1958 (c_type_print_varspec_suffix): Invert it at the caller.
1959 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1961 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1963 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1964 errors when reading the `stop_pc'.
1965 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1968 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1970 * NEWS: Document gdb.Write stream keyword.
1972 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1977 (dwarf2_add_field): Fix new_field->accessibility for
1978 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1980 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1984 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1985 other error classes. Do not print stack trace.
1987 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1989 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1990 (dwarf2_add_field): Fix new_field->accessibility for
1991 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1993 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1995 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1996 encountering a load via a non-SP register.
1998 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2000 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2001 field in returned unwinder.
2003 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2005 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2007 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2009 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2012 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2014 * frame.c (frame_unwind_register): Throw an error if unwinding the
2016 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2017 an unwind stop reason.
2018 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2019 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2020 UNWIND_UNAVAILABLE>: New.
2021 * inline-frame.c (inline_frame_unwind): Install
2022 default_frame_unwind_stop_reason.
2023 * frame-unwind.c: Include "exceptions.h".
2024 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2025 (default_frame_unwind_stop_reason): New.
2026 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2027 (default_frame_unwind_stop_reason): Declare.
2028 (struct frame_unwind) <stop_reason>: New function pointer.
2030 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2031 * dwarf2-frame.c: Include exceptions.h.
2032 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2033 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2034 computing the CFA. If such an error was thrown, set
2035 unavailable_retaddr.
2036 (dwarf2_frame_unwind_stop_reason): New.
2037 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2039 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2040 (dwarf2_signal_frame_unwind): Ditto.
2042 * amd64-tdep.c: Include "exceptions.h".
2043 (struct amd64_frame_cache): New field "base_p".
2044 (amd64_init_frame_cache): Clear it.
2045 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2046 Avoid reading registers with functions that throw if the register
2047 is not necessary to compute the frame base.
2048 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2049 swallowing NOT_AVAILABLE_ERROR.
2050 (amd64_frame_unwind_stop_reason): New.
2051 (amd64_frame_this_id): Don't build a frame id if the frame base
2053 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2054 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2055 base_p if the frame base was computable.
2056 (amd64_sigtramp_frame_unwind_stop_reason): New.
2057 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2058 frame base was unavailable.
2059 (amd64_sigtramp_frame_unwind): Install
2060 amd64_sigtramp_frame_unwind_stop_reason.
2061 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2062 base_p if the frame base was computable.
2063 (amd64_epilogue_frame_unwind_stop_reason): New.
2064 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2065 frame base was unavailable.
2066 (amd64_epilogue_frame_unwind): Install
2067 amd64_epilogue_frame_unwind_stop_reason.
2068 * i386-tdep.c: Include "exceptions.h".
2069 (struct i386_frame_cache): New field "base_p".
2070 (i386_init_frame_cache): Clear it.
2071 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2072 Avoid reading registers with functions that throw if the register
2073 is not necessary to compute the frame base.
2074 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2075 swallowing NOT_AVAILABLE_ERROR.
2076 (i386_frame_unwind_stop_reason): New.
2077 (i386_frame_this_id): Don't build a frame id if the frame base was
2079 (i386_frame_prev_register): Handle unavailable SP.
2080 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2081 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2082 base_p if the frame base was computable.
2083 (i386_epilogue_frame_unwind_stop_reason): New.
2084 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2085 base was unavailable.
2086 (i386_epilogue_frame_unwind): Install
2087 i386_epilogue_frame_unwind_stop_reason.
2088 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2089 base_p if the frame base was computable.
2090 (i386_sigtramp_frame_unwind_stop_reason): New.
2091 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2092 base was unavailable.
2093 (i386_sigtramp_frame_unwind): Install
2094 i386_sigtramp_frame_unwind_stop_reason.
2095 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2096 type's size, not the register's.
2097 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2099 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2100 default_frame_unwind_stop_reason.
2101 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2102 (alpha_heuristic_frame_unwind): Ditto.
2103 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2104 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2105 * avr-tdep.c (avr_frame_unwind): Ditto.
2106 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2108 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2109 * frv-tdep.c (frv_frame_unwind): Ditto.
2110 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2111 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2112 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2113 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2114 (hppa_stub_frame_unwind): Ditto.
2115 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2116 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2117 (ia64_libunwind_frame_unwind)
2118 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2119 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2120 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2121 * m32c-tdep.c (m32c_unwind): Ditto.
2122 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2123 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2124 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2125 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2126 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2127 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2128 * mep-tdep.c (mep_frame_unwind): Ditto.
2129 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2130 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2131 (mips_stub_frame_unwind): Ditto.
2132 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2133 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2134 * mt-tdep.c (mt_frame_unwind): Ditto.
2135 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2136 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2137 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2138 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2139 (s390_sigtramp_frame_unwind): Ditto.
2140 * score-tdep.c (score_prologue_unwind): Ditto.
2141 * sh-tdep.c (sh_frame_unwind): Ditto.
2142 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2143 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2144 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2145 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2146 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2147 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2148 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2149 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2150 (sparc64obsd_trapframe_unwind): Ditto.
2151 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2152 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2153 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2154 * v850-tdep.c (v850_frame_unwind): Ditto.
2155 * vax-tdep.c (vax_frame_unwind): Ditto.
2156 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2157 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2158 * xtensa-tdep.c (xtensa_unwind): Ditto.
2160 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2162 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2163 there's always a frame. Use get_frame_pc_if_available instead of
2164 get_frame_pc, and if there's no PC available, don't look up a
2167 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2169 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2172 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2174 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2177 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2179 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2180 * frame.c (frame_unwind_caller_pc_if_available): New.
2181 * stack.c (frame_info): Handle unavailable PC.
2183 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2185 * frame.c (frame_unwind_pc): Rename to ...
2186 (frame_unwind_pc_if_available): ... this. New `pc' output
2187 parameter. Change return type to int. Gracefully handle
2188 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2189 happened, or 1 otherwise.
2190 (frame_unwind_pc): Reimplement on top of
2191 frame_unwind_pc_if_available.
2192 (get_frame_func): Rename to ...
2193 (get_frame_func_if_available): New `pc' output parameter. Change
2194 return type to int. Gracefully handle the PC not being available.
2195 (get_frame_func): Reimplement on top of
2196 get_frame_func_if_available.
2197 (select_frame): Handle the PC being unavailable.
2198 (get_prev_frame): Handle the PC being unavailable.
2199 (get_frame_pc_if_available): New.
2200 (get_frame_address_in_block_if_available): New.
2201 (find_frame_sal): Handle the frame PC not being available.
2202 * frame.h (get_frame_pc_if_available): Declare.
2203 (get_frame_address_in_block_if_available): Declare.
2204 (get_frame_func_if_available): Declare.
2205 * stack.c (print_frame_info): Handle the PC being unavailable.
2206 (find_frame_funname): Ditto.
2207 (print_frame): Handle the PC being unavailable.
2208 (get_frame_language): Ditto.
2209 * blockframe.c (get_frame_block): Ditto.
2210 * macroscope.c (default_macro_scope): Ditto.
2211 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2213 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2215 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2216 NOT_AVAILABLE_ERROR when evaluating the location expression.
2218 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2220 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2221 returning that the register piece is unavailable/optimized out.
2222 (write_pieced_value): Handle get_frame_register_bytes returning
2223 that the register piece is unavailable/optimized out when doing a
2224 read-modify write of a bitfield.
2225 * findvar.c (value_from_register): Handle get_frame_register_bytes
2226 returning that the register piece is unavailable/optimized out.
2227 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2228 and `unavailablep'. Throw error on bad debug info. Use
2229 frame_register instead of frame_register_read, to fill in the new
2231 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2233 * valops.c: (value_assign): Adjust, and handle
2234 get_frame_register_bytes failing.
2235 * spu-tdep.c: Include exceptions.h.
2236 (spu_software_single_step): Adjust, and handle
2237 get_frame_register_bytes failing.
2238 (spu_get_longjmp_target): Ditto.
2239 * gdbarch.sh (register_to_value): Change to return int. New
2240 parameters `optimizedp' and `unavailablep'.
2241 * gdbarch.h, gdbarch.c: Regenerate.
2242 * i386-tdep.c (i386_register_to_value): Adjust to new
2243 gdbarch_register_to_value interface.
2244 * i387-tdep.c (i387_register_to_value): Ditto.
2245 * i387-tdep.h (i387_register_to_value): Ditto.
2246 * alpha-tdep.c (alpha_register_to_value): Ditto.
2247 * ia64-tdep.c (ia64_register_to_value): Ditto.
2248 * m68k-tdep.c (m68k_register_to_value): Ditto.
2249 * mips-tdep.c (mips_register_to_value): Ditto.
2250 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2252 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2254 * findvar.c (value_of_register): Mark the value as unavailable, if
2255 the register is unavailable.
2256 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2257 (frame_register): New `unavailablep' parameter.
2258 (frame_register_read): Update comment.
2259 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2260 Set it if the register is unavailable. If the register is
2261 unavailable, clear the output buffer.
2262 (frame_register): New `unavailablep' parameter. Pass it down.
2263 (frame_unwind_register): Adjust.
2264 (put_frame_register): Adjust.
2265 (frame_register_read): Adjust. Also return false if the register
2267 (frame_register_unwind_location): Adjust.
2268 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2269 is unavailable, mark the value accordingly.
2270 * stack.c (frame_info): Handle unavailable registers.
2272 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2274 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2275 simplify, using regcache_cooked_read.
2277 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2279 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2280 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2281 (regcache_raw_read_unsigned, regcache_raw_read_part)
2282 (regcache_cooked_read, regcache_cooked_read_signed)
2283 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2284 (regcache_cooked_read_ftype): Change return to enum
2286 * regcache.c: Include exceptions.h
2287 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2288 (do_cooked_read): Change return to enum register_status. Always
2289 forward to regcache_cooked_read.
2290 (regcache_raw_read): Change return to enum register_status. If
2291 the register is not REG_VALID, memset the buffer. Return the
2293 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2294 return the register's status.
2295 (regcache_raw_read_unsigned): Ditto.
2296 (regcache_cooked_read): Change return to enum register_status.
2297 Assert that with read-only regcaches, the register's status must
2298 be known. If the regcache is read-only, and the register is not
2299 REG_VALID, memset the buffer. Return the register's status.
2300 (regcache_cooked_read_signed): Change return to enum
2301 register_status. Handle non-REG_VALID registers and return the
2303 (regcache_cooked_read_unsigned): Change return to enum
2304 register_status. Handle non-REG_VALID registers and return the
2306 (regcache_xfer_part, regcache_raw_read_part)
2307 (regcache_cooked_read_part): Change return to enum
2308 register_status. Return the register's status.
2309 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2311 (regcache_dump): Handle unavailable cooked registers.
2312 * frame.c (do_frame_register_read): Adjust interface to match
2313 regcache_cooked_read_ftype.
2314 * gdbarch.sh (pseudo_register_read): Change return to enum
2316 * gdbarch.h, gdbarch.c: Regenerate.
2318 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2320 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2321 register_status. If reading a raw register indicates the raw
2322 register is not valid, return the raw register's status,
2323 otherwise, return REG_VALID.
2324 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2325 register_status. Handle non-REG_VALID raw registers and return
2326 the register's status.
2327 * arm-tdep.c (arm_neon_quad_read)
2328 (arm_pseudo_read): Change return to enum register_status. Handle
2329 non-REG_VALID raw registers and return the register's status.
2330 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2331 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2332 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2333 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2334 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2336 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2337 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2338 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2339 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2340 (m32c_pseudo_register_read): Change return to enum
2341 register_status. Adjust.
2342 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2343 enum register_status. Return the register's status.
2344 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2345 register_status. Return the register's status.
2346 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2347 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2348 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2349 * rs6000-tdep.c (move_ev_register_func): New typedef.
2350 (e500_move_ev_register): Use it. Change return to enum
2351 register_status. Return the register's status.
2352 (do_regcache_raw_read): New function.
2353 (do_regcache_raw_write): New function.
2354 (e500_pseudo_register_read): Change return to enum
2355 register_status. Return the register's status. Use
2356 do_regcache_raw_read.
2357 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2358 (dfp_pseudo_register_read): Change return to enum register_status.
2359 Return the register's status.
2360 (vsx_pseudo_register_read): Ditto.
2361 (efpr_pseudo_register_read): Ditto.
2362 (rs6000_pseudo_register_read): Ditto.
2363 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2364 register_status. Return the register's status.
2365 * sh64-tdep.c (pseudo_register_read_portions): New function.
2366 (sh64_pseudo_register_read): Change return to enum
2367 register_status. Use pseudo_register_read_portions. Return the
2369 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2370 register_status. Return the register's status.
2371 * sh-tdep.c (pseudo_register_read_portions): New function.
2372 (sh_pseudo_register_read): Change return to enum register_status.
2373 Use pseudo_register_read_portions. Return the register's status.
2374 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2375 enum register_status. Return the register's status.
2376 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2377 * spu-tdep.c (spu_pseudo_register_read_spu)
2378 (spu_pseudo_register_read): Ditto.
2379 * xtensa-tdep.c (xtensa_register_read_masked)
2380 (xtensa_pseudo_register_read): Ditto.
2381 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2383 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2385 * python/py-value.c (valpy_getitem): Fix formatting of error function
2388 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2390 ARI fixes: Add missing internationalization markups throughout
2392 * darwin-nat-info.c: Ditto.
2395 * mi/mi-main.c: Ditto.
2397 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2399 ARI fixes: Add missing internationalization markups throughout
2402 * cp-name-parser.y: Ditto.
2405 * objc-exp.y: Ditto.
2408 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2410 ARI fixes: Messages should have no trailing new lines.
2411 * darwin-nat.c (mach_check_error): Remove trailing new line from
2412 warning function call message.
2413 * record.c (bfdcore_read): Idem for error call.
2415 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2417 * common/signals.c (target_signal_from_host): Add _ markup to error
2418 function call message.
2419 (target_signal_to_host): Add _ markup and remove trailing new line
2420 from warning call message.
2421 (target_signal_from_command): Add _ markup to error function call
2424 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2428 * python/python.c (gdbpy_write): Accept a stream argument and
2429 operate to the appropriate stream.
2430 (gdbpy_flush): Likewise.
2431 (_initialize_python): Add stream constants.
2432 (finish_python_initialization): Add GdbOutputErrorFile class.
2434 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2436 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2438 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2440 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2441 to store_signed_integer. Add debug message when relocating CALL
2442 instructions. Fix formatting of debug message.
2443 * i386-tdep.c (i386_relocate_instruction): Ditto.
2445 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2447 * target.h (struct target_ops): Remove to_lookup_symbol field.
2448 (target_lookup_symbol): Delete macro.
2449 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2450 (update_current_target, setup_target_debug): Remove handling
2451 of to_lookup_symbol target_ops field.
2452 * ada-tasks.c (get_known_tasks_addr): Remove use of
2453 target_lookup_symbol.
2454 * coffread.c (coff_symtab_read): Likewise.
2455 * dbxread.c (read_dbx_symtab): Ditto.
2457 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2460 * configure.ac: Add getthrds declaration check.
2461 * configure, config.in: Regenerate.
2462 * aix-thread.c (getthrds): Declare only if not already declared
2463 in procinfo.h. More declaration out of get_signaled_thread to
2466 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2468 * python/py-symtab.c: Populate symtab_object_methods,
2470 (stpy_is_valid): New function.
2471 (salpy_is_valid): Ditto.
2472 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2473 (sympy_is_valid): New function.
2474 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2475 (objfpy_is_valid): New function.
2476 * python/py-inferior.c: Populate inferior_object_methods.
2477 (infpy_is_valid): New function.
2478 * python/py-infthread.c: Populate thread_object_methods.
2479 (thpy_is_valid): New function.
2480 * python/py-block.c: Declare block_object_methods. Populate. Declare
2481 block_iterator_object_methods. Populate.
2482 (blpy_is_valid): New function.
2483 (blpy_iter_is_valid): Ditto.
2485 2011-03-16 Keith Seitz <keiths@redhat.com>
2487 * linespec.c (find_methods): Canonicalize NAME before looking
2489 (name_end): New function.
2490 (keep_name_info): New function.
2491 (decode_line_1): Use keep_name_info.
2492 (decode_compound): Likewise.
2493 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2494 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2497 * linespec.c (locate_first_half): Keep overload information, too.
2498 (decode_compound): Use a string to represent break characters
2500 If P points to a break character, do not increment it.
2501 For C++ and Java, keep overload information and relevant keywords.
2502 If we cannot find a symbol, search the minimal symbols.
2505 * linespec.c (decode_compound): Rename SAVED_ARG to
2507 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2509 Pass a valid block to lookup_symbol.
2510 (lookup_prefix_sym): Likewise.
2511 (find_method): Construct search name based on SYM_CLASS instead
2513 * psymtab.c (lookup_partial_symbol): Add language parameter.
2514 (lookup_symbol_aux_psymtabs): Likewise.
2515 Don't assume that the psymtab we found was the right one. Search
2516 for the desired symbol in the symtab to be certain.
2517 (psymtab_search_name): New function.
2518 (lookup_partial_symbol): Use psymtab_search_name.
2519 Add language parameter.
2520 (read_symtabs_for_function): Add language parameter and pass to
2521 lookup_partial_symbol.
2522 (find_symbol_file_from_partial): Likewise.
2524 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2527 * dwarf2read.c (noop_record_line): New function.
2528 (dwarf_decode_lines): Ignore line tables for GCd functions.
2530 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2532 Fix ARI warnings about new lines at the end of messages, which
2533 are unneeded as there is a new line added at the end of the message
2535 * darwin-nat.c (darwin_stop_inferior): Ditto.
2536 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2537 * dfp.c (decimal_to_number): Ditto.
2538 * exec.c (print_section_info): Ditto.
2539 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2540 * osdata.c (get_osdata): Ditto.
2541 * record.c (bfdcore_write): Ditto.
2542 * remote-mips.c (mips_readchar): Ditto.
2543 * remote.c (read_ptid): Ditto.
2544 * ser-mingw.c (ser_windows_raw): Ditto.
2545 * tracepoint.c (add_local_symbols): Ditto.
2546 * windows-nat.c (fake_create_process): Ditto.
2548 2011-03-16 Tom Tromey <tromey@redhat.com>
2550 * tracepoint.c (stop_tracing): Don't declare.
2551 * event-top.c (after_char_processing_hook): Add `(void)'.
2553 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2555 * NEWS: Add Parameter sub-classing description.
2557 2011-03-16 Kai Tietz <ktietz@redhat.com>
2559 * MAINTAINERS: Update my e-mail address.
2561 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2563 * MAINTAINERS: Add myself for write after approval privileges.
2565 2011-03-15 Michael Snyder <msnyder@vmware.com>
2567 * frame.c (find_frame_sal): Assert sym is not null.
2569 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2571 * objc-lang.c (selectors_info): Check strchr for null result.
2573 * stabsread.c (define_symbol): Guard against bad stabstring input.
2575 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2577 Remove trailing spaces and tabulations from pascal language
2582 p-valprint.c: Ditto.
2584 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2587 than LOW. Comment it.
2588 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2589 HIGHPC not strictly higher than LOWPC.
2591 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2593 Fix formatting of function declarations returning a pointer in
2595 * varobj.c (varobj_add_child): Ditto.
2596 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2597 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2599 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2601 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2602 for the "generic" vector ABI used with GCC 4.3 and later.
2603 (ppc64_sysv_abi_return_value): Likewise.
2605 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2607 * infcall.c (call_function_by_hand): Function return value is
2608 always a non_lval, even when using struct_return.
2610 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2612 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2613 (map_display_numbers): New.
2614 (do_delete_display): New.
2615 (undisplay_command): Use map_display_numbers.
2616 (do_enable_disable_display): New.
2617 (enable_disable_display_command): New function.
2618 (enable_display): Delete.
2619 (enable_display_command): New.
2620 (disable_display_command): Reimplement.
2621 (_initialize_printcmd): Adjust "enable display" command to use
2622 `enable_display_command' as callback.
2624 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2626 * NEWS: Add Python breakpoint 'stop' operation.
2628 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2630 * NEWS: Delete duplicate entry. Fix typo.
2632 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2634 Fix ARI warning about function names in first column.
2635 Put prototype declaration on same line as return type.
2636 * objc-exp.y: Ditto.
2638 * python/py-stopevent.h: Ditto.
2639 For long function names, split parameters to
2640 allow function name on same line as return type.
2641 * solib-pa64.c: Ditto.
2644 For long function declaration, use single line.
2645 * hppa-tdep.h: Ditto.
2646 * inferior.h: Ditto.
2648 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2650 * python/python.h: Declare gdbpy_should_stop and
2651 gdbpy_breakpoint_has_py_cond.
2652 * python/python.c: Add python.h to includes. Remove python.h from
2653 HAVE_PYTHON definition
2654 (gdbpy_should_stop): New dummy function.
2655 (gdbpy_breakpoint_has_py_cond): New dummy function.
2656 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2657 sub-classing capabilities.
2658 (gdbpy_should_stop): New function.
2659 (gdbpy_breakpoint_has_py_cond): New function.
2660 (local_setattro): New function.
2661 * breakpoint.c (condition_command): Add check for Python 'stop'
2663 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2664 operation function as part of stop/continue tests.
2666 2011-03-14 Tom Tromey <tromey@redhat.com>
2669 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2670 (needs_frame_dwarf_call): Likewise.
2672 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2674 Fix ARI warning about functions without parameters that do not
2676 * breakpoint.c (all_tracepoints): Replace () by (void).
2677 * f-exp.y (match_string_literal): Ditto.
2679 * m2-exp.y (yylex): Ditto.
2680 * mep-tdep.c (current_me_module): Ditto.
2681 (current_options): Ditto.
2682 (current_cop_data_bus_width): Ditto.
2683 (current_cr_names): Ditto.
2684 (current_cr_is_float): Ditto.
2685 (current_ccr_names): Ditto.
2686 * objc-exp.y (yylex): Ditto.
2687 * p-exp.y (yylex): Ditto.
2688 * remote.c (send_interrupt_sequence): Ditto.
2689 * tracepoint.c (current_trace_status): Ditto.
2690 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2691 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2693 2011-03-11 Michael Snyder <msnyder@vmware.com>
2695 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2696 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2697 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2698 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2699 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2701 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2702 (delete_async_event_handler): Ditto.
2704 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2706 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2708 * top.c (set_verbose): Assert showcmd was found.
2710 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2712 * xtensa-tdep.c (warning_once): Correct style issues.
2714 2011-03-11 Yao Qi <yao@codesourcery.com>
2716 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2718 2011-03-11 Andreas Schwab <schwab@redhat.com>
2720 * common/aclocal.m4: Remove.
2722 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2724 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2725 (xtensa_write_register, xtensa_read_register): Likewise.
2726 (xtensa_hextochar): Removed.
2727 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2729 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2731 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2732 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2733 (xtensa_alloc_frame_cache): Add initialization for new fields.
2734 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2735 (warning_once): New function.
2736 (xtensa_insn_kind): New item c0opc_and.
2737 (call0_classify_opcode): Add the case for AND instruction.
2738 (call0_track_op): Change arguments. New local variable litbase.
2739 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2740 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2742 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2743 (call0_analyze_prologue): Update the comments. Change arguments.
2744 Add the variety of updates to handle extended prologues, which now can
2745 conduct dynamic stack adjustments.
2746 (call0_frame_cache): Likewise.
2747 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2748 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2750 2011-03-10 Michael Snyder <msnyder@vmware.com>
2752 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2753 (cmd_qtframe): Ditto.
2754 (cmd_qtbuffer): Ditto.
2755 (cmd_bigqtbuffer): Ditto.
2757 2011-03-10 Tom Tromey <tromey@redhat.com>
2759 * tracepoint.c (trace_actions_command): Update.
2760 * thread.c (thread_apply_command): Update.
2761 * reverse.c (delete_bookmark_command): Update.
2762 (bookmarks_info): Update.
2763 * printcmd.c (undisplay_command): Update.
2764 * memattr.c (mem_enable_command): Update.
2765 (mem_disable_command): Update.
2766 (mem_delete_command): Update.
2767 * inferior.c (detach_inferior_command): Update.
2768 (kill_inferior_command): Update.
2769 (remove_inferior_command): Update.
2770 * cli/cli-utils.h (struct get_number_or_range_state): New.
2771 (init_number_or_range): Declare.
2772 (get_number_or_range): Update.
2773 * cli/cli-utils.c (init_number_or_range): New function.
2774 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2776 (number_is_in_list): Update.
2777 * breakpoint.h (get_tracepoint_by_number): Update.
2778 * breakpoint.c (map_breakpoint_numbers): Update for change to
2779 get_number_or_range.
2780 (find_location_by_number): Use get_number, not
2781 get_number_or_range.
2782 (trace_pass_set_count): New function.
2783 (trace_pass_command): Update for change to get_number_or_range.
2785 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2788 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2790 * python/py-param.c (add_setshow_generic): Add set/show callback
2791 parameters. Register Python object context.
2792 (get_show_value): New function.
2793 (get_set_value): New function.
2794 (call_doc_function): New function.
2795 (get_doc_string): Move behind get_show_value/get_set_value.
2797 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2799 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2801 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2803 * xtensa-tdep.c (xtensa_read_register): Add comment.
2804 (xtensa_write_register): Likewise.
2805 (xtensa_hextochar): Add comment and update to match coding conventions.
2806 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2807 (execute_l32e, execute_s32e, execute_code): Update comments.
2808 (xtensa_exception_handler_t): Update to match coding conventions.
2809 (xtensa_insn_kind): Likewise.
2811 2011-03-09 Michael Snyder <msnyder@vmware.com>
2813 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2815 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2817 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2819 2011-03-09 Tom Tromey <tromey@redhat.com>
2821 * thread.c (restore_selected_frame): Handle frame_level == -1.
2822 (make_cleanup_restore_current_thread): Use
2823 get_selected_frame_if_set.
2824 * frame.h (get_selected_frame_if_set): Declare.
2825 * frame.c (get_selected_frame_if_set): New function.
2827 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2829 * cli/cli-cmds.c (shell_escape): Use lbasename.
2830 * coffread.c (coff_start_symtab): Constify parameter.
2831 (complete_symtab): Constify `name' parameter.
2832 (coff_symtab_read): Constify `filestring' local.
2833 (coff_getfilename): Constify return and `result' local.
2835 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2836 * linux-fork.c (info_checkpoints_command): Use lbasename.
2837 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2838 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2839 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2840 * procfs.c (procfs_make_note_section): Use lbasename.
2841 * tui/tui-io.c (printable_part): Constity return and parameter.
2843 (print_filename): Constify parameters, and local `s'.
2844 (tui_rl_display_match_list): Constify local `temp'.
2846 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2849 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2850 Fix DWARF-3+ DW_AT_accessibility default assumption.
2851 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2852 cu->header.version >= 3.
2854 2011-03-09 Yao Qi <yao@codesourcery.com>
2856 * common/Makefile.in: Remove.
2857 * common/configure: Remove.
2858 * common/configure.ac: Remove.
2860 2011-03-09 Yao Qi <yao@codesourcery.com>
2863 2011-02-11 Yao Qi <yao@codesourcery.com>
2865 * common/Makefile.in: Add copyright header.
2867 2011-02-11 Yao Qi <yao@codesourcery.com>
2869 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2871 * configure.ac: Add common to sub dir.
2872 * configure: Regenerate.
2874 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2876 * xtensa-tdep.c (call0_ret): New function.
2877 (xtensa_skip_prologue): Speed up analysis.
2879 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2881 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2882 while executing MI command -data-list-changed-registers.
2884 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2886 * xtensa-tdep.c (xtensa_read_register): New function.
2887 (xtensa_write_register): New function.
2888 (xtensa_find_register_by_name): New function.
2889 (xtensa_windowed_frame_cache): Update comments in type description.
2890 (xtensa_frame_cache): Likewise.
2891 (xtensa_window_interrupt_insn): New function.
2892 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2893 (xtensa_insn_kind): Add new instructions.
2894 (rwx_special_register): New function.
2895 (call0_classify_opcode): Add new instructions to the analysis.
2896 (a0_saved, a7_saved, a11_saved): New variables.
2897 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2898 (execute_l32e): New function.
2899 (execute_s32e): New function.
2900 (xtensa_exception_handler_t): New type.
2901 (execute_code): New function.
2902 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2903 analysis for Xtensa Window Exception handlers.
2905 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2907 * xtensa-tdep.c (TX_PS): New.
2908 (windowing_enabled): Update to count for Call0 ABI.
2909 (xtensa_hextochar): New.
2910 (xtensa_init_reggroups): Make algorithm generic.
2911 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2913 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2915 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2917 2011-03-08 Michael Snyder <msnyder@vmware.com>
2919 * i386-tdep.c (i386_follow_jump): Check return value of
2921 (i386_analyze_struct_return): Ditto.
2922 (i386_skip_probe): Ditto.
2923 (i386_match_insn): Ditto.
2924 (i386_skip_noop): Ditto.
2925 (i386_analyze_frame_setup): Ditto.
2926 (i386_analyze_register_saves): Ditto.
2927 (i386_skip_prologue): Ditto.
2928 (i386_skip_main_prologue): Ditto.
2930 * target.c (read_whatever_is_readable): Fix memory leak.
2932 * i386-tdep.c (i386_process_record): Document fall through.
2934 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 Fix DWARF-3+ DW_AT_accessibility default assumption.
2937 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2938 cu->header.version >= 3.
2940 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2942 * remote.c (remote_check_symbols): Skip if the target has no
2945 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2947 * target.c (read_whatever_is_readable): Reformat comment,
2948 with a minor typo fix. Minor reformatting of the code.
2950 2011-03-08 Yao Qi <yao@codesourcery.com>
2952 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2953 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2954 Use cached result instead of calling displaced_in_arm_mode again.
2955 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2956 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2957 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2958 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2959 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2960 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2961 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2962 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2963 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2964 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2965 (arm_catch_kernel_helper_return): Likewise.
2966 * gdb/arm-tdep.h : Update function declarations.
2968 2011-03-07 Michael Snyder <msnyder@vmware.com>
2970 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2972 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2974 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2976 * elfread.c (elf_symtab_read): Stop memory leak.
2978 * main.c (captured_main): Fix memory leak.
2980 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2982 * ada-lang.c (compare_names): Call is_name_suffix with string1
2985 2011-03-07 Tom Tromey <tromey@redhat.com>
2987 * xcoffread.c (xcoff_sym_fns): Update.
2988 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2989 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2990 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2991 (symbol_file_add_with_addrs_or_offsets): Likewise.
2992 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2993 * somread.c (som_sym_fns): Update.
2994 * psymtab.h (require_partial_symbols): Declare.
2995 * psymtab.c (require_partial_symbols): New function.
2996 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2997 (ALL_OBJFILE_PSYMTABS): Undef.
2998 (ALL_PSYMTABS): Move from psympriv.h.
2999 (lookup_partial_symtab, find_pc_sect_psymtab)
3000 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3001 (find_last_source_symtab_from_partial)
3002 (forget_cached_source_info_partial)
3003 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3004 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3005 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3006 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3007 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3008 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3009 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3010 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3011 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3013 * mipsread.c (ecoff_sym_fns): Update.
3014 * machoread.c (macho_sym_fns): Update.
3015 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3016 (read_psyms): New function.
3017 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3018 (elf_sym_fns_lazy_psyms): New global.
3019 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3020 dwarf2_build_psymtabs.
3021 * dbxread.c (aout_sym_fns): Update.
3022 * coffread.c (coff_sym_fns): Update.
3024 2011-03-07 Tom Tromey <tromey@redhat.com>
3026 * infrun.c (print_exited_reason): Include inferior id and pid in
3029 2011-03-07 Tom Tromey <tromey@redhat.com>
3031 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3033 (target_has_execution_1): Update.
3034 (target_has_execution_current): Declare.
3035 (target_has_execution): Call target_has_execution_current.
3036 (default_child_has_execution): Update.
3037 * target.c (default_child_has_execution): Add 'the_ptid'
3039 (target_has_execution_1): Likewise.
3040 (target_has_execution_current): New function.
3041 (add_target): Update.
3042 (init_dummy_target): Update.
3043 * remote-m32r-sdi.c (m32r_has_execution): New function.
3044 (init_m32r_ops): Use it.
3045 * record.c (record_core_has_execution): Now static. Add
3046 'the_ptid' parameter.
3047 * inferior.c (have_live_inferiors): Don't save current thread.
3048 Use target_has_execution_1.
3050 2011-03-07 Yao Qi <yao@codesourcery.com>
3052 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3054 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3056 * elfread.c (elf_symtab_read): Minor reformatting.
3058 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3060 * objc-lang.c (selectors_info): Minor reformatting.
3062 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3064 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3066 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3067 Michael Snyder <msnyder@vmware.com>
3069 * ada-valprint.c (ada_val_print_array): Move the declaration of
3070 "byte_order" and "elttype" inside the block where these variables
3071 are actually used. Remove some special handling for the case
3072 where "elttype" and "eltlen" are null. Replace by a comment
3073 and a couple of assertion checks.
3075 2011-03-05 Michael Snyder <msnyder@vmware.com>
3077 * source.c (add_path): Replace semicolon at end of block.
3078 * dwarf2expr.c (execute_stack_op): Ditto.
3080 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3082 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3083 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3084 (bfin-*-*): Likewise.
3086 2011-03-05 Michael Snyder <msnyder@vmware.com>
3088 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3089 * mdebugread.c (parse_symbol): Ditto.
3090 * parse.c (parse_exp_in_context): Ditto.
3091 * source.c (add_path): Ditto.
3092 * utils.c (gnu_debuglink_crc32): Ditto.
3093 * varobj.c (variable_language): Ditto.
3095 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3097 2011-03-04 Michael Snyder <msnyder@vmware.com>
3099 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3101 * symfile.c (simple_overlay_update): Check for null return value
3102 from lookup_minimal_symbol.
3104 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3106 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3108 * eval.c (parse_and_eval_address_1): Remove function.
3109 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3110 instead of parse_and_eval_address_1.
3111 * value.h (parse_and_eval_address_1): Remove prototype.
3113 2011-03-04 Michael Snyder <msnyder@vmware.com>
3115 * remote.c (putpkt_binary): Document that case stmt falls through.
3117 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3119 * breakpointc (print_it_typical): Move NULL check from here...
3120 (print_bp_stop_message): ... to here.
3122 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3124 * breakpoint.c (enable_command): Use break instead of continue,
3125 and fill in a missing break.
3126 (disable_command): Ditto.
3128 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3130 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3131 (terminal_save_ours): Remove misleading comment.
3132 (inflow_inferior_data_cleanup): Free ttystate.
3133 (inflow_inferior_exit): Likewise.
3134 (copy_terminal_info): Copy ttystate.
3136 * serial.c (serial_copy_tty_state): New function.
3137 * serial.h (serial_copy_tty_state): Add prototype.
3138 (struct serial_ops): Add copy_tty_state callback.
3139 * ser-base.c (ser_base_copy_tty_state): New function.
3140 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3141 * ser-go32.c (dos_copy_tty_state): New function.
3142 (dos_ops): Install copy_tty_state callback.
3143 * ser-mingw.c (_initialize_ser_windows): Likewise.
3144 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3145 * ser-unix.c (hardwire_copy_tty_state): New function.
3146 (_initialize_ser_hardwire): Install it.
3148 2011-03-04 Michael Snyder <msnyder@vmware.com>
3150 * breakpoint.c (create_breakpoint): Add missing break statement.
3152 Reverting this patch:
3153 * infcall.c (call_function_by_hand): Add break statements for lint.
3155 Reverting this patch:
3156 * cli/cli-script.c (script_from_file): Add break for lint.
3158 2011-03-04 Michael Snyder <msnyder@vmware.com>
3160 * solib.c (reload_shared_libraries_1): Close memory leak.
3162 2011-03-03 Tom Tromey <tromey@redhat.com>
3165 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3168 2011-03-03 Michael Snyder <msnyder@vmware.com>
3170 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3171 fields of struct 'st' to zero.
3173 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3174 sal.pspace before calling set_current_source_symtab_and_line.
3176 2011-03-03 Yao Qi <yao@codesourcery.com>
3178 * Makefile.in (configure-common): Remove. Let Makefile
3179 in dir common to rebuild itself.
3180 (common/Makefile): Likewise.
3182 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3184 * utils.c (parse_escape): Add i18n markup in error message.
3186 2011-03-03 Yao Qi <yao@codesourcery.com>
3188 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3190 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3191 (displaced_write_reg, displaced_read_reg): Likewise.
3192 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3193 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3194 (cleanup_branch): Replace magic number 14 and 15 with
3195 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3197 2011-03-02 Michael Snyder <msnyder@vmware.com>
3199 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3201 * cli/cli-script.c (script_from_file): Add break for lint.
3203 * mdebugread.c (parse_partial_symbols): Fix indent.
3205 * target-descriptions.c (tdesc_gdb_type): No need to call
3206 xstrdup, callee saves a copy.
3208 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3210 * infcall.c (call_function_by_hand): Add break statements for lint.
3212 * utils.c (parse_escape): Escape the escape char.
3214 * python/py-inferior.c (build_inferior_list): Error out if
3215 PyList_Append fails.
3216 (gdbpy_inferiors): Error out if build_inferior_list fails.
3218 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3221 * record.c (record_restore): Move printf to before error return.
3223 2011-03-02 Yao Qi <yao@codesourcery.com>
3225 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3226 is_thumb and insn_size.
3227 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3228 on both ARM and Thumb mode.
3229 (arm_process_displaced_insn): Set is_thumb and insn_size.
3230 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3231 (arm_displaced_step_fixup): Likewise.
3233 2011-03-01 Michael Snyder <msnyder@vmware.com>
3235 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3237 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3239 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3241 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3243 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3246 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3247 which shadows function parameter.
3249 * tracepoint.c (create_tsv_from_upload): Superfluous call
3250 to xstrdup. Callee already calls xstrdup.
3252 * linespec.c (decode_line_1): Remove unnecessary null check.
3254 * tracepoint.c (scope_info): Fix mem leak, remove underused
3257 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3258 superfluous null check.
3260 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3261 (value_of_builtin_frame_fp_reg): Ditto.
3263 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3265 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3268 * linespec.c (decode_line_1): Check for null before dereference.
3270 * reverse.c (record_restore): Move null-check to before pointer
3273 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3275 * objc-lang.c (selectors_info): Add explanitory comment.
3276 (classes_info): Ditto.
3278 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3280 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3281 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3282 versions of the trampoline. Handle Thumb vs. ARM addresses.
3283 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3284 (arm_linux_init_abi): Install it.
3285 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3286 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3288 2011-02-28 Michael Snyder <msnyder@vmware.com>
3290 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3291 a little bigger, to avoid possibility of an overflow.
3293 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3294 buffers a little bigger, to avoid possibility of an overflow.
3296 * coffread.c (coff_getfilename): Add check to avoid overflow.
3298 * objc-lang.c (selectors_info): Add a small safety margin to
3300 (classes_info): Error out on too long REGEXP.
3302 * infrun.c (handle_inferior_event): Remove unused function call.
3304 * fork-child.c (fork_inferior): Remove ifdef'd code and
3307 * linux-thread-db.c (attach_thread): Discard unused value.
3309 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3311 * remote.c (remote_get_noisy_reply): Discard unused value.
3312 (remote_vcont_resume): Ditto.
3313 (remote_stop_ns): Ditto.
3315 * linespec.c (decode_objc): Delete unused variable.
3317 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3319 * dwarf2read.c (add_partial_symbol): Discard unused values.
3320 (read_base_type): Delete unused variable.
3322 * dbxread.c (read_dbx_symtab): Discard unused value.
3324 * eval.c (evaluate_subexp_standard): Delete unused variable,
3325 and discard unused values.
3327 * infcmd.c (_initialize_infcmd): Discard unused values.
3329 * stabsread.c (rs6000_builtin_type): Missing break statement.
3331 * dbxread.c (process_one_symbol): Discard unused value.
3333 * coffread.c (coff_end_symtab): Delete unused variable.
3335 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3336 (dwarf2_add_typedef): Delete unused variable.
3337 (read_namespace): Ditto.
3338 (dwarf_decode_macros): Ditto.
3340 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3342 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3344 * p-valprint.c (pascal_val_print): Discard unused value.
3346 * utils.c (nquery): Call va_end before return;
3350 * proc-service.c (ps_plog): Call va_end before return.
3352 2011-02-28 Tom Tromey <tromey@redhat.com>
3354 * python/python.c (gdbpy_value_cst): New global.
3355 (_initialize_python): Initialize it.
3356 * python/python-internal.h (gdbpy_value_cst): Declare.
3357 * python/py-value.c (convert_value_from_python): Use
3360 2011-02-28 Michael Snyder <msnyder@vmware.com>
3362 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3364 * breakpoint.c (catch_syscall_completer): Free malloced list.
3366 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3368 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3369 (lval_func_check_synthetic_pointer): Ditto.
3370 (lval_func_free_closure): Fix use-after-free.
3372 2011-02-28 Tom Tromey <tromey@redhat.com>
3374 * psymtab.c (expand_partial_symbol_tables): Use
3375 ALL_OBJFILE_PSYMTABS.
3377 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3379 * objc-lang.c (selectors_info): Error on too long REGEXP.
3381 2011-02-28 Michael Snyder <msnyder@vmware.com>
3383 * python/py-param.c (set_parameter_value): Add missing
3386 * linux-record.c (record_linux_system_call): Add missing
3389 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3391 * breakpoint.c (print_one_breakpoint_location): Remove unused
3392 argument PRINT_ADDRESS_BITS. Update callers.
3393 (print_one_breakpoint): Likewise.
3395 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3397 * breakpoint.c (wrap_indent_at_field): New function.
3398 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3399 Allocate ui_stream locally instead of using STB argument.
3400 (print_one_breakpoint_location): Update call.
3401 * ui-out.c (ui_out_query_field): New function.
3402 * ui-out.h (ui_out_query_field): Add prototype.
3404 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3406 From Michael Snyder <msnyder@vmware.com>
3407 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3409 2011-02-27 Michael Snyder <msnyder@vmware.com>
3411 * objc-lang.c (selectors_info): Prevent string overrun.
3413 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3416 * symtab.c (rbreak_command): Move variable 'file_name' to
3419 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3420 param with a local variable of the same name.
3422 2011-02-27 Michael Snyder <msnyder@vmware.com>
3424 * value.c (value_from_history_ref): New function.
3425 * value.h (value_from_history_ref): Export.
3426 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3427 to parse value history references.
3428 * cli/cli-utils.h (get_number_trailer): Update comment.
3430 2011-02-27 Michael Snyder <msnyder@vmware.com>
3432 * inferior.c (detach_inferior_command): Use get_number_or_range.
3433 (kill_inferior_command): Ditto.
3434 (remove_inferior_command): Ditto.
3435 (initialize_inferiors): Make command names plural.
3436 Update help strings.
3438 2011-02-27 Michael Snyder <msnyder@vmware.com>
3440 * darwin-nat-info.c: Fix comment typo.
3441 * dwarf2expr.h: Ditto.
3442 * fbsd-nat.c: Ditto.
3443 * fbsd-nat.h: Ditto.
3444 * frame-unwind.h: Ditto.
3446 * hppa-hpux-tdep.c: Ditto.
3447 * i386-linux-nat.c: Ditto.
3448 * linux-nat.c: Ditto.
3449 * nbsd-nat.c: Ditto.
3450 * nbsd-nat.h: Ditto.
3451 * ppc-linux-tdep.c: Ditto.
3454 * tui/tui-winsource.c: Ditto.
3456 2011-02-26 Michael Snyder <msnyder@vmware.com>
3458 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3460 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3462 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3463 with a local variable of the same name.
3465 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3466 param with a local variable of the same name.
3467 (i387_supply_xsave): Ditto.
3469 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3470 that it does not shadow a function parameter.
3472 * i386-nat.c (i386_length_and_rw_bits): Document that case
3473 statement is meant to fall through.
3475 * expprint.c (dump_subexp_body_standard): Document that case
3476 statement is meant to fall through.
3478 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3479 dead if statement. Condition can't be false.
3481 2011-02-25 Michael Snyder <msnyder@vmware.com>
3483 * arm-tdep.c: Fix typos in comments.
3484 * bsd-uthread.c: Ditto.
3485 * completer.c: Ditto.
3487 * cp-namespace.c: Ditto.
3488 * cp-support.c: Ditto.
3489 * cris-tdep.c: Ditto.
3491 * dwarf2read.c: Ditto.
3493 * gdbtypes.h: Ditto.
3494 * inferior.h: Ditto.
3495 * mdebugread.c: Ditto.
3496 * mips-tdep.c: Ditto.
3497 * ppc-linux-nat.c: Ditto.
3498 * ppc-linux-tdep.c: Ditto.
3499 * printcmd.c: Ditto.
3500 * sol-thread.c: Ditto.
3501 * solib-frv.c: Ditto.
3503 * sparc64-tdep.c: Ditto.
3504 * spu-tdep.c: Ditto.
3505 * stabsread.c: Ditto.
3510 * python/py-block.c: Ditto.
3511 * python/py-symbol.c: Ditto.
3512 * python/py-symtab.c: Ditto.
3513 * python/py-value.c: Ditto.
3514 * tui/tui-win.c: Ditto.
3516 2011-02-25 Michael Snyder <msnyder@vmware.com>
3518 * inferior.c (print_inferior): Accept a string instead of an int
3519 for requested_inferiors, and use get_number_or_range to parse it.
3520 (info_inferiors_command): Pass args string to print_inferior.
3521 (initialize_inferiors): Change help string for info inferiors.
3522 * inferior.h (print_inferior): Export prototype change.
3524 2011-02-25 Tom Tromey <tromey@redhat.com>
3526 * common/ax.def (invalid2): Set to 0x31.
3528 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3530 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3532 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3534 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3536 2011-02-24 Michael Snyder <msnyder@vmware.com>
3538 * Makefile.in (clean): Make clean should remove generated files
3539 observer.h and observer.inc.
3541 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3543 Revert the following patch (not approved yet):
3544 2011-02-21 Hui Zhu <teawater@gmail.com>
3545 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3546 * ax-gdb.c (gen_printf_expr_callback): New function.
3547 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3548 * ax-general.c (ax_memcpy): New function.
3549 (ax_print): Handle "printf".
3551 * ax.h (ax_memcpy): Forward declare.
3552 * common/ax.def (invalid2): Removed.
3553 (printf): New entry.
3554 * printcmd.c (printcmd.h): New include.
3555 (string_printf): New function.
3556 (ui_printf): Removed.
3557 (printf_command): Remove static. Call string_printf.
3558 (eval_command): Call string_printf.
3559 * printcmd.h: New file.
3560 * tracepoint.c (validate_actionline,
3561 encode_actions_1): handle printf_command.
3563 2011-02-23 Tom Tromey <tromey@redhat.com>
3565 * ax-general.c (ax_pick): Add missing newline.
3567 2011-02-23 Michael Snyder <msnyder@vmware.com>
3569 * breakpoint.c (breakpoint_1): Change first argument from an int
3570 to a char pointer, so that the function now accepts a list of
3571 breakpoints rather than just one. Use new function
3572 'number_is_in_list' to implement.
3573 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3574 (watchpoints_info): Ditto.
3575 (tracepoints_info): Ditto.
3576 (maintenance_info_breakpoints): Ditto.
3577 (_initialize_breakpoint): Update help strings to reflect the fact
3578 that these functions can now take more than one argument.
3579 * cli/cli-utils.c (number_is_in_list): New function.
3580 * cli/cli-utils.h (number_is_in_list): Export.
3582 2011-02-23 Michael Snyder <msnyder@vmware.com>
3584 * memattr.c (mem_enable_command): Use get_number_or_range.
3585 (mem_disable_command): Ditto.
3586 (mem_delete_command): Ditto.
3587 (_initialize_mem): Tweak usage message to reflect multiple
3590 2011-02-22 Doug Evans <dje@google.com>
3592 Add gdb.lookup_global_symbol python function.
3594 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3595 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3596 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3598 2011-02-22 Tom Tromey <tromey@redhat.com>
3600 * language.c (language_class_name_from_physname): Rename
3601 'curr_language' argument to 'lang'; use in body.
3603 2011-02-22 Michael Snyder <msnyder@vmware.com>
3605 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3607 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3609 * frame-unwind.h: Fix comment to mention the this frame, not the
3612 2011-02-22 Tom Tromey <tromey@redhat.com>
3614 * symfile.c (auto_solib_limit): Remove.
3615 * symfile.h (auto_solib_limit): Remove.
3617 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3619 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3621 2011-02-21 Michael Snyder <msnyder@vmware.com>
3623 * gdbthread.h (print_thread_info): Change prototype.
3624 * thread.c (print_thread_info): Accept char* instead of int for
3625 requested_threads argument. Use new function number_is_in_list
3626 to determine which threads to list.
3627 (info_threads_command): Pass char* to print_thread_info.
3628 * cli/cli-utils.c (number_is_in_list): New function.
3629 * cli/cli-utils.h (number_is_in_list): Export.
3630 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3632 (print_one_inferior): Ditto.
3633 (mi_cmd_list_thread_groups): Ditto.
3635 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3637 * common/Makefile.in (CFLAGS): New.
3638 (COMPILE): Add $(CFLAGS).
3640 2011-02-21 Tom Tromey <tromey@redhat.com>
3642 * breakpoint.c (catch_syscall_command_1): Fix typo.
3644 2011-02-21 Tom Tromey <tromey@redhat.com>
3646 * reverse.c: Include cli-utils.h.
3647 * printcmd.c: Include cli-utils.h.
3648 (string_printf): Use skip_spaces.
3649 * cli/cli-utils.h: New file.
3650 * cli/cli-utils.c: New file.
3651 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3652 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3653 * breakpoint.h (get_number, get_number_or_range): Move to
3655 * breakpoint.c: Include cli-utils.h.
3656 (get_number_trailer, get_number, get_number_or_range)
3657 (ep_skip_leading_whitespace): Move to cli-utils.c.
3658 (create_breakpoint_sal, find_condition_and_thread)
3659 (decode_static_tracepoint_spec, watch_command_1)
3660 (watch_maybe_just_location, ep_parse_optional_if_clause)
3661 (catch_fork_command_1, catch_exec_command_1)
3662 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3663 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3664 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3665 (HFILES_NO_SRCDIR): Add cli-utils.h.
3666 (cli-utils.o): New target.
3668 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3670 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3671 before calling discard_all_inferiors.
3673 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3675 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3676 (struct builtin_opencl_type): Remove.
3677 (builtin_opencl_type): Change return type to "struct type **".
3678 (lookup_opencl_vector_type): Update caller.
3679 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3680 (build_opencl_types): Install plain array of "struct type *"
3681 instead of "struct builtin_opencl_type".
3683 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3684 Ulrich Weigand <uweigand@de.ibm.com>
3686 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3687 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3688 (struct arm_linux_hwbp_cap): New type.
3689 (arm_linux_get_hwbp_cap): New function.
3690 (arm_linux_get_hw_breakpoint_count): Likewise.
3691 (arm_linux_get_hw_watchpoint_count): Likewise.
3692 (arm_linux_can_use_hw_breakpoint): Likewise.
3693 (arm_hwbp_type): New type.
3694 (arm_hwbp_control_t): Likewise.
3695 (struct arm_linux_hw_breakpoint): Likewise.
3696 (struct arm_linux_thread_points): Likewise.
3697 (arm_threads): New global variable.
3698 (arm_linux_find_breakpoints_by_tid): New function.
3699 (arm_hwbp_control_initialize): Likewise.
3700 (arm_hwbp_control_is_enabled): Likewise.
3701 (arm_hwbp_control_disable): Likewise.
3702 (arm_linux_hw_breakpoint_initialize): Likewise.
3703 (arm_linux_get_hwbp_type): Likewise.
3704 (arm_linux_hw_watchpoint_initialize): Likewise.
3705 (arm_linux_hw_breakpoint_equal): Likewise.
3706 (arm_linux_insert_hw_breakpoint1): Likewise.
3707 (arm_linux_remove_hw_breakpoint1): Likewise.
3708 (arm_linux_insert_hw_breakpoint): Likewise.
3709 (arm_linux_remove_hw_breakpoint): Likewise.
3710 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3711 (arm_linux_insert_watchpoint): Likewise.
3712 (arm_linux_remove_watchpoint): Likewise.
3713 (arm_linux_stopped_data_address): Likewise.
3714 (arm_linux_stopped_by_watchpoint): Likewise.
3715 (arm_linux_watchpoint_addr_within_range): Likewise.
3716 (arm_linux_new_thread): Likewise.
3717 (arm_linux_thread_exit): Likewise.
3718 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3719 related target callbacks. Register arm_linux_new_thread and
3720 arm_linux_thread_exit.
3721 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3722 * arm-tdep.c (arm_pc_is_thumb): Make global.
3723 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3725 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3727 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3728 per-frame locations while within a function epilogue.
3730 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3732 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3733 to GNU coding standards.
3735 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3737 Allow use of mingw native on Windows 95 OS.
3738 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3739 (ser_windows_close): Only call CancelIo if function exists.
3740 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3741 to check for existence of CancelIo function in kernel32 DLL.
3743 2011-02-21 Hui Zhu <teawater@gmail.com>
3745 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3746 * ax-gdb.c (gen_printf_expr_callback): New function.
3747 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3748 * ax-general.c (ax_memcpy): New function.
3749 (ax_print): Handle "printf".
3751 * ax.h (ax_memcpy): Forward declare.
3752 * common/ax.def (invalid2): Removed.
3753 (printf): New entry.
3754 * printcmd.c (printcmd.h): New include.
3755 (string_printf): New function.
3756 (ui_printf): Removed.
3757 (printf_command): Remove static. Call string_printf.
3758 (eval_command): Call string_printf.
3759 * printcmd.h: New file.
3760 * tracepoint.c (validate_actionline,
3761 encode_actions_1): handle printf_command.
3763 2011-02-19 Michael Snyder <msnyder@vmware.com>
3765 * reverse.c (delete_one_bookmark): Argument is now bookmark
3766 id rather than pointer to bookmark struct.
3767 (delete_bookmark_command): Use get_number_or_range.
3768 (goto_bookmark_command): Parse with get_number instead of strtoul.
3769 (bookmark_1): New function. Print info for one bookmark.
3770 (bookmarks_info): Use get_number_or_range and bookmark_1.
3772 2011-02-18 Michael Snyder <msnyder@vmware.com>
3774 * thread.c (info_threads_command): Re-implement using
3775 get_number_or_range.
3776 (thread_apply_command): Ditto.
3778 2011-02-18 Tom Tromey <tromey@redhat.com>
3780 * common/ax.def: New file.
3781 * ax.h (enum agent_op): Use ax.def.
3782 * ax-general.c (aop_map): Use ax.def.
3784 2011-02-18 Tom Tromey <tromey@redhat.com>
3786 * ax-general.c (aop_map): Add pick and rot.
3787 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3788 <DW_OP_rot>: Implement.
3789 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3791 * ax-general.c (ax_pick): New function.
3793 2011-02-18 Tom Tromey <tromey@redhat.com>
3795 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3797 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3798 Tom Tromey <tromey@redhat.com>
3800 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3801 make_symbol_overload_list_block with NULL BLOCK.
3802 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3804 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3806 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3807 * breakpoint.h (get_number_or_range): Declare.
3808 * printcmd.c (ALL_DISPLAYS): Declare.
3809 (delete_display): Reimplement taking a display pointer.
3810 (undisplay_command): Accept a range of displays to delete, using
3811 get_number_or_range.
3813 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3815 * c-valprint.c (c_val_print): Add embedded_offset to address
3816 for arrays of unspecified length.
3817 * p-valprint.c (pascal_val_print): Likewise.
3819 2011-02-18 Yao Qi <yao@codesourcery.com>
3821 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3822 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3823 (thumb_process_displaced_insn): New.
3824 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3825 call to arm_process_displaced_insn.
3826 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3828 2011-02-17 Tom Tromey <tromey@redhat.com>
3830 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3831 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3832 compile_dwarf_to_ax. No longer static. Call
3833 dwarf2_compile_cfa_to_ax.
3834 (locexpr_tracepoint_var_ref): Update.
3835 (loclist_tracepoint_var_ref): Update.
3836 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3837 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3838 argument; add 'gdbarch' and 'pc'.
3839 (dwarf2_compile_cfa_to_ax): New function.
3840 (dwarf2_frame_cache): Update.
3842 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3844 * ada-lang.c (ada_type_of_array): Fix the size of the array
3845 in the case of an unconstrained packed array.
3847 2011-02-17 Yao Qi <yao@codesourcery.com>
3849 * common/Makefile.in: Add more targets for make.
3851 2011-02-16 Tom Tromey <tromey@redhat.com>
3853 * dwarf2loc.c (unimplemented): Fix typo.
3855 2011-02-16 Tom Tromey <tromey@redhat.com>
3857 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3858 (compile_dwarf_to_ax) <default>: Use unimplemented.
3859 <DW_OP_deref>: Update.
3860 (disassemble_dwarf_expression): Update.
3861 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3862 (decode_locdesc): Update.
3863 * dwarf2expr.h (dwarf_stack_op_name): Update.
3865 2011-02-16 Tom Tromey <tromey@redhat.com>
3867 * ax.h (struct aop_map) <name>: Now const.
3869 2011-02-16 Tom Tromey <tromey@redhat.com>
3871 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3874 2011-02-16 Yao Qi <yao@codesourcery.com>
3876 * infrun.c (get_displaced_step_closure_by_addr): New.
3877 * inferior.h: Declare it.
3878 * arm-tdep.c: (arm_pc_is_thumb): Call
3879 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3882 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3883 Jan Kratochvil <jan.kratochvil@redhat.com>
3886 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3888 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3889 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 * value.c (value_contents_copy_raw): Extend describing comment.
3892 Assert that the destination contents we're overwriting are wholly
3894 (value_contents_copy): Extend describing comment.
3896 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3897 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 * value.c (value_available_contents_eq): Remove redundant local
3900 variables. Fix available contents comparision.
3901 * value.h (value_available_contents_eq): Extend describing
3904 2011-02-16 Yao Qi <yao@codesourcery.com>
3906 * thread.c (info_threads_command): Add missing i18n markup and remove
3909 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3911 * breakpoint.c (longjmp_names): New variable.
3912 (struct breakpoint_objfile_data): New type.
3913 (breakpoint_objfile_key): New variable.
3914 (msym_not_found): New variable.
3915 (msym_not_found_p): New predicate.
3916 (get_breakpoint_objfile_data): New function.
3917 (create_overlay_event_breakpoint): Check per-objfile cache for
3919 (create_longjmp_master_breakpoint): Likewise.
3920 (create_std_terminate_master_breakpoint): Likewise.
3921 (create_exception_master_breakpoint): Likewise.
3922 (_initialize_breakpoint): Register per-objfile data key.
3924 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3926 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3928 (create_longjmp_master_breakpoint): Loop over longjmp names.
3929 (create_std_terminate_master_breakpoint): Const-propagate parameter
3931 (update_breakpoints_after_exec): Adjust.
3932 (breakpoint_re_set): Adjust.
3934 2011-02-15 Michael Snyder <msnyder@vmware.com>
3936 * thread.c (info_threads_command): Process arg as thread id,
3937 or list of thread ids.
3938 (thread_find_command): New command.
3939 (_initialize_thread): Document argument for info threads.
3940 Document 'thread find' command.
3941 * NEWS: Document new command "thread find".
3943 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3945 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3946 * aclocal.m4: Regenerated with aclocal-1.11.1.
3947 * common/configure: Regenerate with autoconf-2.64.
3949 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3951 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3952 bool data type to a size of one byte.
3954 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3955 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 * target.c (memory_xfer_live_readonly_partial): Document where to
3958 look for interface description.
3960 2011-02-15 Yao Qi <yao@codesourcery.com>
3963 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3964 order to store PC value on stack instead of text section.
3966 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3968 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3969 the EFP register set size.
3970 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3971 data from the VMX register.
3972 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3973 and write data from/to the VMX register.
3975 2011-02-14 Michael Snyder <msnyder@vmware.com>
3977 * command.h (enum command_class): New class 'no_set_class', for
3978 "show" commands without a corresponding "set" command.
3979 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3980 * copying.c (_initialize_copying): Ditto for "show copying" and
3982 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3984 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3985 which there is no corresponding "set" command (eg. "show copying").
3987 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3988 Jan Kratochvil <jan.kratochvil@redhat.com>
3990 * exec.c (section_table_available_memory): Change `len' parameter
3992 * exec.h (section_table_available_memory): Ditto.
3993 * value.h (read_value_memory): Rename the `offset' parameter to
3996 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3997 Jan Kratochvil <jan.kratochvil@redhat.com>
3999 * memrange.c (compare_mem_ranges): Mention sort order in
4001 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4002 * tracepoint.c (traceframe_available_memory): Extend comment to
4003 mention what happens to RESULT when the target does not support
4006 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4007 Jan Kratochvil <jan.kratochvil@redhat.com>
4009 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4012 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4014 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4015 No longer handle NULL values.
4017 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4019 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4020 * value.c: Include "exceptions.h".
4021 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4023 * cp-abi.c: Include gdb_assert.h.
4024 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4025 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4027 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4028 parameters. No longer returns -1 on error.
4029 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4031 * cp-valprint.c: Include exceptions.h.
4032 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4033 the baseclass_offset. Handle unavailable base classes. Use
4034 val_print_invalid_address.
4035 * p-valprint.c: Include exceptions.h.
4036 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4037 when fetching the baseclass_offset. No longer expect
4038 baseclass_offset returning -1. Handle unavailable base classes.
4039 Use val_print_invalid_address.
4040 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4041 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4042 `embedded_offset' and `val' parameters. Adjust.
4043 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4044 parameter, and change its type to gdb_byte pointer. Add
4045 `embedded_offset' and `val' parameters. Adjust. No longer expect
4046 baseclass_offset returning -1.
4047 (value_dynamic_cast): Use value_contents_for_printing rather than
4048 value_contents. Adjust.
4049 (search_struct_field): No longer expect baseclass_offset returning
4051 (search_struct_method): If reading memory from the target is
4052 necessary, wrap it in a new value to pass to baseclass_offset. No
4053 longer expect baseclass_offset returning -1.
4054 (find_method_list): No longer expect baseclass_offset returning
4055 -1. Use value_contents_for_printing rather than value_contents.
4056 * valprint.c (val_print_invalid_address): New function.
4057 * valprint.h (val_print_invalid_address): Declare.
4058 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4059 and `val' parameters. No longer expect baseclass_offset returning
4061 * gnu-v2-abi.c: Include "exceptions.h".
4062 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4063 parameters. Handle unavailable memory. Recurse through
4064 gnuv2_baseclass_offset directly, rather than through
4065 baseclass_offset. No longer returns -1 on not found, instead
4067 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4068 `val' parameters. Adjust.
4070 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4072 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4073 almost but not quite adjacent.
4075 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4077 * value.h (value_entirely_available): Declare.
4078 * value.c (value_entirely_available): New function.
4079 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4080 real type if the pointer is unavailable.
4082 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4084 * valops.c (value_repeat): Use read_value_memory instead of
4087 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4089 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4090 * value.c (value_contents_copy_raw, value_contents_copy): New
4092 (value_primitive_field): Use value_contents_copy_raw instead of
4094 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4096 (value_array, value_slice): Ditto.
4097 * valarith.c (value_subscripted_rvalue): Use
4098 value_contents_copy_raw instead of memcpy.
4100 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4102 <unavailable> references.
4104 * valops.c (get_value_at): Use value_from_contents_and_address,
4105 avoiding read_memory.
4107 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4109 * c-valprint.c (c_val_print): Print a string with unavailable
4110 contents as an array.
4112 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4114 * value.h (unpack_bits_as_long): Delete declaration.
4115 (unpack_value_bits_as_long): Declare.
4116 (unpack_value_field_as_long): Declare.
4117 (value_field_bitfield): Declare.
4118 * value.c (unpack_bits_as_long): Rename to...
4119 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4120 value parameters. Return the extracted result in a new output
4121 parameter. If the value contents are unavailable, return false,
4122 otherwise return true.
4123 (unpack_value_bits_as_long): New.
4124 (unpack_field_as_long): Rename to...
4125 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4126 Add embedded_offset and value parameters. Return the extracted
4127 result in a new output parameter. If the value contents are
4128 unavailable, return false, otherwise return true.
4129 (unpack_value_field_as_long): New.
4130 (unpack_field_as_long_1): New.
4131 (unpack_field_as_long): Reimplement as wrapper around
4132 unpack_value_field_as_long_1.
4133 (value_field_bitfield): New function.
4134 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4135 unpack_value_bits_as_long. Mark the value as unavailable, if it
4137 * jv-valprint.c (java_print_value_fields): Use
4138 value_field_bitfield.
4139 * p-valprint.c (pascal_object_print_value_fields): Use
4140 value_field_bitfield.
4141 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4143 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4145 * value.c (get_internalvar_integer): Also return the int value of
4146 TYPE_CODE_INT INTERNALVAR_VALUE values.
4147 (set_internalvar): Don't special case TYPE_CODE_INT.
4149 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4151 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4152 INTERNALVAR_POINTER.
4154 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4155 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4156 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4158 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4160 * value.h (value_available_contents_eq): Declare.
4161 * value.c (find_first_range_overlap): New function.
4162 (value_available_contents_eq): New function.
4163 * valprint.c (val_print_array_elements): Use
4164 value_available_contents_eq.
4165 * ada-valprint.c (val_print_packed_array_elements): Use
4166 value_available_contents_eq.
4167 * jv-valprint.c (java_value_print): Use
4168 value_available_contents_eq.
4170 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4172 * target.c (target_read_live_memory): New function.
4173 (memory_xfer_live_readonly_partial): New.
4174 (memory_xfer_partial): If reading from a traceframe, fallback to
4175 reading unavailable read-only memory from read-only regions of
4177 * tracepoint.c (disconnect_tracing): Adjust.
4178 (set_current_traceframe): New, factored out from
4179 set_traceframe_number.
4180 (set_traceframe_number): Reimplement to only change the traceframe
4181 number on the GDB side.
4182 (do_restore_current_traceframe_cleanup): Adjust.
4183 (make_cleanup_restore_traceframe_number): New.
4184 (cur_traceframe_number): New global.
4185 (tfile_open): Set cur_traceframe_number to no traceframe.
4186 (set_tfile_traceframe): New function.
4187 (tfile_trace_find): If looking up a traceframe using any method
4188 other than by number, make sure the current tfile traceframe
4189 matches gdb's current traceframe. Update the current tfile
4190 traceframe if the lookup succeeded.
4191 (tfile_fetch_registers, tfile_xfer_partial)
4192 (tfile_get_trace_state_variable_value): Make sure the remote
4193 traceframe matches gdb's current traceframe.
4194 * remote.c (remote_traceframe_number): New global.
4195 (remote_open_1): Set it to -1.
4196 (set_remote_traceframe): New function.
4197 (remote_fetch_registers, remote_store_registers)
4198 (remote_xfer_memory, remote_xfer_partial)
4199 (remote_get_trace_state_variable_value): Make sure the remote
4200 traceframe matches gdb's current traceframe.
4201 (remote_trace_find): If looking up a traceframe using any method
4202 other than by number, make sure the current remote traceframe
4203 matches gdb's current traceframe. Update the current remote
4204 traceframe if the lookup succeeded.
4205 * infrun.c (fetch_inferior_event): Adjust.
4206 * tracepoint.h (set_current_traceframe): Declare.
4207 (get_traceframe_number, set_traceframe_number): Add describing
4210 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4212 Mark pieces of values as unavailable if the corresponding memory
4215 * valops.c: Include tracepoint.h.
4216 (value_fetch_lazy): Use read_value_memory.
4217 (read_value_memory): New.
4218 * value.h (read_value_memory): Declare.
4219 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4220 * exec.c (section_table_available_memory): New function.
4221 * exec.h (section_table_available_memory): Declare.
4223 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4225 * Makefile.in (SFILES): Add memrange.c.
4226 (HFILES_NO_SRCDIR): Add memrange.h.
4227 (COMMON_OBS): Add memrange.o.
4228 * memrange.c: New file.
4229 * memrange.h: New file.
4230 * tracepoint.c: Include memrange.h.
4231 (struct mem_range): Delete.
4232 (mem_range_s): Delete.
4233 (traceframe_available_memory): New function.
4234 * tracepoint.h (traceframe_available_memory): Declare.
4236 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4238 * target.h (struct traceframe_info): Forward declare.
4239 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4240 (struct target_ops) <to_traceframe_info>: New field.
4241 (target_traceframe_info): New.
4242 * target.c (update_current_target): Inherit and default
4244 * remote.c (PACKET_qXfer_traceframe_info): New.
4245 (remote_protocol_features): Register qXfer:traceframe-info:read.
4246 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4247 (remote_traceframe_info): New.
4248 (init_remote_ops): Install it.
4249 (_initialize_remote): Install "set/show remote traceframe-info"
4251 * tracepoint.h (parse_traceframe_info): Declare.
4252 * tracepoint.c (struct mem_range): New.
4253 (mem_range_s): New typedef.
4254 (struct traceframe_info): New.
4255 (traceframe_info): New global.
4256 (free_traceframe_info): New function.
4257 (clear_traceframe_info): New function.
4258 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4260 (build_traceframe_info): New function.
4261 (tfile_traceframe_info): New function.
4262 (init_tfile_ops): Install tfile_traceframe_info.
4263 (traceframe_info_start_memory, free_result): New functions.
4264 (memory_attributes, traceframe_info_elements): New globals.
4265 (parse_traceframe_info, get_traceframe_info): New functions.
4266 * features/traceframe-info.dtd: New file.
4267 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4269 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4271 Base support for <unavailable> value contents.
4273 * value.h (value_bytes_available): Declare.
4274 (mark_value_bytes_unavailable): Declare.
4275 * value.c (struct range): New struct.
4276 (range_s): New typedef.
4277 (ranges_overlap): New function.
4278 (range_lessthan): New function.
4279 (ranges_contain_p): New function.
4280 (struct value) <unavailable>: New field.
4281 (value_bytes_available): New function.
4282 (mark_value_bytes_unavailable): New function.
4283 (require_not_optimized_out): Constify parameter.
4284 (require_available): New function.
4285 (value_contents_all, value_contents): Require all bytes be
4287 (value_free): Free `unavailable'.
4288 (value_copy): Copy `unavailable'.
4289 * valprint.h (val_print_unavailable): Declare.
4290 * valprint.c (valprint_check_validity): Rename `offset' parameter
4291 to `embedded_offset'. If printing a scalar, check whether the
4292 value chunk is available.
4293 (val_print_unavailable): New.
4294 (val_print_scalar_formatted): Check whether the value is
4296 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4297 pretty-printing unavailable values.
4299 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4301 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4302 * c-typeprint.c (c_type_print_args): Update the function comment. New
4303 variable param_type, initialize it. Remove const/volatile qualifiers
4304 for language_cplus and !show_artificial. Use param_type.
4306 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4308 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4309 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4310 * symtab.h (struct symtab) <next>: Comment extension.
4312 2011-02-12 Yao Qi <yao@codesourcery.com>
4314 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4316 2011-02-11 Yao Qi <yao@codesourcery.com>
4318 * common/Makefile.in: Add copyright header.
4320 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4322 * infrun.c (proceed): Move switching out and in of tfind mode from
4324 (fetch_inferior_event): ... to here.
4326 2011-02-11 Yao Qi <yao@codesourcery.com>
4328 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4330 * configure.ac: Add common to sub dir.
4331 * configure: Regenerate.
4333 2011-02-11 Yao Qi <yao@codesourcery.com>
4337 * common/Makefile.in: New.
4338 * common/configure.ac: New.
4339 * common/aclocal.m4: New.
4340 * common/configure: Generate.
4342 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4344 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4345 side of the parenthesis.
4348 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4349 * vec.h (VEC_block_remove): Fix comment.
4351 2011-02-08 Michael Snyder <msnyder@vmware.com>
4353 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4355 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4357 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4358 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4361 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4364 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4366 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4367 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4369 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4371 * dwarf2read.c (read_subroutine_type): Set special calling
4372 convention flag for functions compiled by IBM XL C for OpenCL.
4373 * ppc-sysv-tdep.c: Include "dwarf2.h"
4374 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4376 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4377 IBM OpenCL vector types calling convention.
4378 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4379 (ppc_sysv_abi_broken_return_value): Likewise.
4380 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4381 types calling convention.
4382 (ppc64_sysv_abi_return_value): Likewise.
4383 * spu-tdep.c: Include "dwarf2.h"
4384 (spu_return_value): Implement IBM OpenCL vector types calling
4387 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4389 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4390 correct ABI for AltiVec vector arguments.
4392 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4394 * valprint.c (val_print): Extend comment.
4395 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4396 interface explanation to val_print.
4397 (ada_val_print_array): Adjust comment to current interface.
4398 (print_field_values): Adjust comment to current interface.
4399 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4400 explanation to val_print.
4401 * f-valprint.c (f_val_print): Ditto.
4402 * jv-valprint.c (java_val_print): Ditto.
4403 * m2-valprint.c (m2_val_print): Ditto.
4404 * p-valprint.c (pascal_val_print): Ditto.
4406 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4408 * breakpoint.c (parse_breakpoint_sals): Fix description.
4410 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4411 Oguz Kayral <oguzkayral@gmail.com>
4413 * python/py-inferior.c (python_on_normal_stop): New function.
4414 (python_on_resume): New function.
4415 (python_inferior_exit): New function.
4416 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4417 inferior_exit observers.
4418 * python/py-evtregistry.c: New file.
4419 * python/py-threadevent.c : New file.
4420 * python/py-event.c: New file.
4421 * python/py-evts.c: New file.
4422 * python/py-continueevent.c: New file.
4423 * python/py-bpevent.c: New file.
4424 * python/py-signalevent.c: New file.
4425 * python/py-exetiedevent.c: New file.
4426 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4427 Move struct breakpoint_object from here...
4428 * python/python-internal.h: ... to here.
4429 * python/py-event.h: New file.
4430 * python/py-events.h: New file.
4431 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4432 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4433 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4434 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4435 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4436 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4437 Add build rules for all the above.
4439 2011-02-04 Tom Tromey <tromey@redhat.com>
4441 * dwarf2read.c (dwarf2_section_empty_p): New function.
4442 (dwarf2_read_section): Use dwarf2_section_empty_p.
4443 (dwarf2_section_size): New function.
4444 (dwarf2_get_section_info): Unconditionally read section.
4445 (dwarf2_read_index): Use dwarf2_section_empty_p.
4446 (partial_read_comp_unit_head): Use dwarf2_section_size.
4447 (dwarf2_symbol_mark_computed): Likewise.
4449 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4451 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4453 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4455 * mips-linux-tdep.c: Include xml-syscall.h.
4456 (mips_linux_get_syscall_number): New function.
4457 (mips_linux_init_abi): Add calls to
4458 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4459 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4460 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4461 * syscalls/mips-n32-linux.xml: New file.
4462 * syscalls/mips-n64-linux.xml: New file.
4463 * syscalls/mips-o32-linux.xml: New file.
4465 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4467 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4468 Complain about inverted range entries.
4469 (dwarf2_record_block_ranges): Likewise.
4471 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4474 * breakpoint.c (update_watchpoint): Fix name of the
4475 update_global_location_list function.
4476 (print_one_breakpoint): Fix typo.
4477 (_initialize_breakpoint): Remove extra space in hbreak help
4479 * breakpoint.h (struct bp_location) <length>: Fix field
4482 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4484 * regcache.c (registers_changed_ptid): Don't explictly always
4485 clear `current_regcache'. Only clear current_thread_ptid and
4486 current_thread_arch when PTID matches. Only reinit the frame
4487 cache if PTID matches the current inferior_ptid. Move alloca(0)
4489 (registers_changed): ... here.
4491 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4493 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4494 starts with __stack_chk_guard as stack guard symbol.
4496 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4498 * disasm.c (compare_lines): Handle the end of sequence markers
4499 within the line table to better support disassembling over
4500 compilation unit boundaries.
4502 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4504 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4505 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4506 implementation even if no symbols are available.
4507 (thumb_analyze_prologue): Update call to skip_prologue_function.
4508 (arm_analyze_prologue): Likewise.
4510 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4512 * arm-tdep.c: Include "observer.h".
4513 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4514 (arm_exidx_data_key): New static variable.
4515 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4516 (struct arm_exidx_data): Likewise.
4517 (arm_exidx_data_free): New function.
4518 (arm_compare_exidx_entries): Likewise.
4519 (arm_obj_section_from_vma): Likewise.
4520 (arm_exidx_new_objfile): Likewise.
4521 (arm_find_exidx_entry): Likewise.
4522 (arm_exidx_fill_cache): Likewise.
4523 (arm_exidx_unwind_sniffer): Likewise.
4524 (arm_exidx_unwind): New global variable.
4525 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4526 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4527 observer. Register arm_exidx_data_key as objfile data.
4529 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4531 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4532 due to accessing uninitialized variable. Fix indentation.
4534 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4536 * c-valprint.c (c_value_print): When doing virtual base pointer
4537 adjustment, create a new value with adjusted contents rather than
4538 changing the contents of the value being printed (and getting it
4541 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4543 * xml-support.c (xml_find_attribute): New.
4544 (xinclude_start_include): Use it.
4545 * xml-support.h (xml_find_attribute): Declare.
4546 * memory-map.c (memory_map_start_memory)
4547 (memory_map_start_property): Use xml_find_attribute.
4548 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4550 * remote.c (start_thread): Use xml_find_attribute.
4551 * solib-target.c (library_list_start_segment)
4552 (library_list_start_section, library_list_start_library)
4553 (library_list_start_list): Use xml_find_attribute.
4554 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4555 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4556 (tdesc_start_field): Use xml_find_attribute.
4558 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4560 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4561 (BUILD_OCL_VTYPES): Update.
4563 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4565 * configure.ac: Work around non-GNU sed limitation when computing
4566 python version number.
4567 * configure: Regenerate.
4569 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4571 Fix debug printing of TYPE_INSTANCE.
4572 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4573 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4575 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4577 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4578 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4579 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4580 * ada-operator.inc: Rename the file to ...
4581 * ada-operator.def: ... here, wrap all the entries by macro OP.
4582 * expprint.c (op_name_standard): Remove all the entries. Include
4583 "std-operator.def" instead.
4584 * expression.h (enum exp_opcode): Include "std-operator.def" and
4585 "ada-operator.def". Move all the entries ...
4586 * std-operator.def: ... here, wrap all the entries by macro OP.
4588 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4590 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4591 * breakpoint.c (remove_jit_event_breakpoints): New function.
4592 * jit.c (jit_descriptor_addr): Delete.
4593 (registering_code): Delete.
4594 (clear_int): Delete.
4595 (jit_inferior_data): New variable.
4596 (struct jit_inferior_data): New type.
4597 (get_jit_inferior_data): New function.
4598 (jit_inferior_data_cleanup): New function.
4599 (jit_read_descriptor): Adjust.
4600 (jit_register_code): Adjust.
4601 (jit_breakpoint_re_set_internal): New function; move code here ...
4602 (jit_inferior_init): ... from here.
4603 (jit_breakpoint_re_set): Adjust.
4604 (jit_reset_inferior_data_and_breakpoints): New function.
4605 (jit_inferior_created_observer): Adjust.
4606 (jit_inferior_exit_hook): Adjust.
4607 (jit_executable_changed_observer): New function.
4608 (jit_event_handler): Adjust.
4609 (_initialize_jit): Adjust.
4611 2011-01-31 Michael Snyder <msnyder@vmware.com>
4613 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4616 2011-01-31 Tom Tromey <tromey@redhat.com>
4619 * python/python.c (execute_gdb_command): Call
4620 prevent_dont_repeat.
4621 * top.c (suppress_dont_repeat): New global.
4622 (dont_repeat): Use it.
4623 (prevent_dont_repeat): New function.
4624 * command.h (prevent_dont_repeat): Declare.
4626 2011-01-31 Tom Tromey <tromey@redhat.com>
4628 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4629 * python/py-breakpoint.c (bppy_set_silent): Use
4630 breakpoint_set_silent.
4631 (bppy_set_thread): Use breakpoint_set_thread.
4632 (bppy_set_task): Use breakpoint_set_task.
4633 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4634 (breakpoint_set_task): Declare.
4635 (make_breakpoint_silent): Remove.
4636 * breakpoint.c (breakpoint_set_silent): New function.
4637 (breakpoint_set_thread): Likewise.
4638 (breakpoint_set_task): Likewise.
4639 (make_breakpoint_silent): Remove.
4641 2011-01-31 Tom Tromey <tromey@redhat.com>
4643 * breakpoint.h (user_breakpoint_p): Declare.
4644 * breakpoint.c (user_breakpoint_p): New function.
4645 (breakpoint_1): Use it.
4646 (save_breakpoints): Likewise.
4648 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4650 * configure.ac: Add handling of Python distribution on Windows.
4651 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4652 sysconfig variables are not defined, then do not use them.
4653 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4654 instead. On Windows, return all paths using forward-slashes
4655 rather than backslashes.
4657 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4659 * configure.ac: Remove fallback behavior for building
4660 against Python. Remove tweaking of Python include path.
4661 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4662 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4663 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4664 Always restore CPPFLAGS and LIBS after linking test.
4665 * configure: Regenerated.
4666 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4667 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4668 * python/python-internal.h: Adjust includes of Python .h files.
4670 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4672 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4675 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4677 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4680 2011-01-31 Yao Qi <yao@codesourcery.com>
4682 * arm-linux-nat.c: Update calls to regcache_register_status
4683 instead of regcache_valid_p.
4684 * aix-thread.c: Likewise.
4685 * i386gnu-nat.c: Likewise.
4687 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4690 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4691 touching TYPE_FIELD_ARTIFICIAL.
4693 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4695 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4698 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4700 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4701 selected, don't try iterating over the traceframe's blocks.
4702 (tfile_has_stack): If there's no traceframe selected, then there's
4704 (tfile_has_registers): If there's no traceframe selected, then
4705 there's no registers.
4707 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4709 * target.c (memory_xfer_partial): No need to restore shadows if we
4710 haven't read anything.
4712 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4714 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4715 and val_print_scalar_formatted.
4717 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4719 * tracepoint.c (tfile_read): New.
4720 (tfile_open): Use it.
4721 (tfile_get_traceframe_address): Use it.
4722 (tfile_trace_find): Use it.
4723 (walk_blocks_callback_func): New typedef.
4724 (match_blocktype): New function.
4725 (traceframe_walk_blocks): New function.
4726 (traceframe_find_block_type): New function.
4727 (tfile_fetch_registers, tfile_xfer_partial)
4728 (tfile_get_trace_state_variable_value): Use
4729 traceframe_find_block_type and tfile_read.
4731 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4733 * remote-mips.c: Add internationalization mark ups. Remove
4734 trailing \n from already marked up strings.
4736 2011-01-26 Tom Tromey <tromey@redhat.com>
4738 * python/py-prettyprint.c (print_string_repr): Clear
4739 'addressprint' option when calling val_print_string.
4740 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4741 option when calling val_print_string.
4743 2011-01-26 Tom Tromey <tromey@redhat.com>
4745 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4747 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4749 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4750 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4751 (gdb_py_long_as_ulongest): New defines.
4752 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4753 (gdb_py_int_as_long): Declare.
4754 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4755 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4756 (valpy_long): Add comment.
4757 * python/py-utils.c (get_addr_from_python): Use
4758 gdb_py_long_as_ulongest. Handle overflow properly.
4759 (gdb_py_object_from_longest): New function.
4760 (gdb_py_object_from_ulongest): Likewise.
4761 (gdb_py_int_as_long): Likewise.
4762 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4763 * python/py-symtab.c (salpy_get_pc): Use
4764 gdb_py_long_from_ulongest.
4765 (salpy_get_line): Use PyInt_FromLong.
4766 * python/py-param.c (set_parameter_value): Use
4768 * python/py-lazy-string.c (stpy_get_address): Use
4769 gdb_py_long_from_ulongest.
4770 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4771 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4772 * python/py-breakpoint.c (bppy_set_thread): Use
4774 (bppy_set_task): Likewise.
4775 (bppy_set_ignore_count): Likewise.
4776 (bppy_set_hit_count): Likewise.
4777 * python/py-block.c (blpy_get_start): Use
4778 gdb_py_object_from_ulongest.
4779 (blpy_get_end): Likewise.
4780 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4782 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4785 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4786 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4787 equality test for objfile, initialize addr_low if needed.
4789 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4791 * tui/tui-regs.c (tui_register_format): Remove dead code.
4793 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4795 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4796 instead of print_scalar_formatted.
4797 (print_scalar_formatted): Don't handle 's' format strings here,
4798 and add an assertion that we never see such format here.
4799 * valprint.h (val_print_scalar_formatted): Declare.
4800 * valprint.c (val_print_scalar_formatted): New.
4801 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4802 instead of print_scalar_formatted.
4803 * jv-valprint.c (java_val_print): Ditto.
4804 * p-valprint.c (pascal_val_print): Ditto.
4805 * ada-valprint.c (ada_val_print_1): Ditto.
4806 * f-valprint.c (f_val_print): Ditto.
4807 * infcmd.c (registers_info): Ditto.
4808 * m2-valprint.c (m2_val_print): Ditto.
4810 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4812 * m2-valprint.c (print_unbounded_array): Pass
4813 value_contents_for_printing rather than value_contents, to
4814 m2_print_array_contents. Also pass in the value.
4816 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4818 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4819 (save_gdb_index_command): Switch to .gdb_index version 4.
4821 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4823 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4824 than frame_register, and always pass a valid value to val_print.
4826 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4828 Centralize printing "<optimized out>".
4830 * valprint.h (val_print_optimized_out): Declare.
4831 * cp-valprint.c (cp_print_value_fields): Use
4832 val_print_optimized_out.
4833 * jv-valprint.c (java_print_value_fields): Ditto.
4834 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4835 * printcmd.c (print_formatted): Ditto.
4836 * valprint.c (valprint_check_validity): Ditto.
4837 (value_check_printable): Ditto.
4838 (val_print_optimized_out): New.
4840 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4842 * infcmd.c (default_print_registers_info): Allocate values so to
4843 never pass a NULL value to val_print.
4845 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4847 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4848 boolean. Make sure to always pass a value that matches the
4849 contents buffer to callees. Preserve `address' for following
4851 * value.c (value_contents_for_printing_const): New.
4852 (value_address): Constify value argument.
4853 * value.h (value_contents_for_printing_const): Declare.
4854 (value_address): Constify value argument.
4856 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4858 * regcache.c (struct regcache_descr): Rename
4859 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4860 and sizeof_cooked_register_valid_p to
4861 sizeof_cooked_register_status.
4862 (init_regcache_descr): Adjust.
4863 (struct regcache): Rename register_valid_p field to
4865 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4866 (do_cooked_read): Adjust.
4867 (regcache_valid_p): Rename to ...
4868 (regcache_register_status): ... this. Adjust.
4869 (regcache_invalidate): Adjust.
4870 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4872 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4873 as unavailable, not valid.
4874 (regcache_dump): Adjust.
4875 * regcache.h (enum register_status): New.
4876 (regcache_register_status): Declare.
4877 (regcache_invalidate): Delete declaration.
4878 * corelow.c (get_core_registers): Adjust.
4879 * tracepoint.c (tfile_fetch_registers): Adjust.
4880 * trad-frame.c (REG_VALUE): Rename to ...
4881 (TF_REG_VALUE): ... this.
4882 (REG_UNKNOWN): Rename to ...
4883 (TF_REG_UNKNOWN): ... this.
4884 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4885 * mi/mi-main.c (register_changed_p): Adjust.
4887 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4889 * regcache.c (struct regcache_descr): Remove outdated comment.
4890 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4892 (regcache_xmalloc): Rename to ...
4893 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4894 Allocate the regcache type accordingly.
4895 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4896 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4897 cooked registers, not raw.
4898 (regcache_dup_no_passthrough): Delete.
4899 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4900 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4901 mention obsolete write_register_bytes.
4902 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4904 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4906 Stop remote_read_bytes from handling partial reads itself.
4908 * remote-fileio.c: Include target.h.
4909 (remote_fileio_write_bytes): Delete.
4910 (remote_fileio_func_open, remote_fileio_func_write)
4911 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4913 (remote_fileio_func_stat): Use target_read_memory and
4914 target_write_memory.
4915 (remote_fileio_func_gettimeofday): Use target_write_memory.
4916 (remote_fileio_func_system): Use target_read_memory.
4917 * remote.c (remote_write_bytes): Make it static.
4918 (remote_read_bytes): Don't handle partial reads here.
4919 * remote.h (remote_read_bytes): Delete declaration.
4921 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4923 Simplify XML parsing a bit.
4925 * xml-support.h (gdb_xml_parse_quick): Declare.
4926 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4927 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4929 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4930 gdb_xml_create_parser_and_cleanup_1.
4931 (gdb_xml_parse_quick): New.
4932 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4933 * osdata.c (osdata_parse): Ditto.
4934 * remote.c (remote_threads_info): Ditto.
4935 * solib-target.c (solib_target_parse_libraries): Ditto.
4936 * xml-syscall.c (syscall_parse_xml): Ditto.
4937 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4939 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4941 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4942 with remote-mips.o added to gdb_target_obs.
4943 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4945 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4947 * ada-valprint.c (val_print_packed_array_elements): Pass the
4948 correct struct value to val_print.
4949 (ada_val_print_1): Ditto.
4951 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4953 Don't lose embedded_offset in printing routines throughout.
4955 * valprint.h (val_print_array_elements): Change prototype.
4956 * valprint.c (val_print_array_elements): Add `embedded_offset'
4957 parameter, and adjust to pass it down to val_print, while passing
4958 `valaddr' or `address' unmodified. Take embedded_offset into
4959 account when checking repetitions.
4960 * c-valprint.c (c_val_print): Pass embedded_offset to
4961 val_print_array_elements instead of adjusting `valaddr' and
4963 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4964 embedded_offset to val_print_array_elements instead of adjusting
4966 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4967 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4968 val_print_array_elements and pascal_object_print_value_fields
4969 instead of adjusting `valaddr'.
4970 (pascal_object_print_value_fields): Add `offset' parameter, and
4972 (pascal_object_print_value): Add `offset' parameter, and adjust to
4974 (pascal_object_print_static_field): Use
4975 value_contents_for_printing/value_embedded_offset, rather than
4977 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4978 parameter, and adjust to use it. Use
4979 value_contents_for_printing/value_embedded_offset, rather than
4981 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4982 (ada_val_print_array): Add `offset' parameter, and adjust to use
4984 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4985 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4986 Instead work with offsets. Use
4987 value_contents_for_printing/value_embedded_offset, rather than
4988 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4989 and use value_from_pointer to extract a target pointer, rather
4990 than value_from_longest.
4991 (print_variant_part): Add `offset' parameter. Replace
4992 `outer_valaddr' parameter by a new `outer_offset' parameter.
4993 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4994 (ada_value_print): Use
4995 value_contents_for_printing/value_embedded_offset, rather than
4997 (print_record): Add `offset' parameter, and adjust to pass it
4999 (print_field_values): Add `offset' parameter. Replace
5000 `outer_valaddr' parameter by a new `outer_offset' parameter.
5001 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5002 Use value_contents_for_printing/value_embedded_offset, rather than
5004 * d-valprint.c (dynamic_array_type): Use
5005 value_contents_for_printing/value_embedded_offset, rather than
5007 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5008 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5009 (java_print_value_fields): Take `offset' into account. Don't
5010 re-adjust `valaddr'. Instead pass down adjusted offsets.
5011 (java_val_print): Take `embedded_offset' into account. Pass it to
5012 java_print_value_fields.
5013 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5014 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5015 down adjusted offsets.
5016 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5017 (f_val_print): Take `embedded_offset' into account.
5019 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5021 * inflow.c: Include "gdbcmd.h".
5022 (interactive_mode): New static global, moved here from top.c.
5023 (show_interactive_mode): New function, moved here from top.c.
5024 use gdb_has_a_terminal instead of input_from_terminal_p to
5025 determine the current mode.
5026 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5028 (_initialize_inflow): Add the "set/show interactive-mode"
5029 commands. Moved here from top.c, after having adjusted slightly
5031 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5033 (input_from_terminal_p): Remove handling of "interactive-mode"
5034 setting, moved to infow.c.
5035 (init_main): Remove creation of the "set/show interactive-mode"
5036 commands, moved to inflow.c.
5038 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5040 * NEWS: Add entry for native ia64-hpux support.
5042 2011-01-19 Tom Tromey <tromey@redhat.com>
5045 * thread.c (free_thread): Free 'name'.
5046 (print_thread_info): Emit thread name. Change CLI output.
5047 (thread_name_command): New function.
5048 (do_captured_thread_select): Emit newline.
5049 (_initialize_thread): Register 'thread name' command.
5050 * target.h (struct target_ops) <to_thread_name>: New field.
5051 (target_thread_name): New macro.
5052 * target.c (update_current_target): Handle to_thread_name.
5053 * python/py-infthread.c (thpy_get_name): New function.
5054 (thpy_set_name): Likewise.
5055 (thread_object_getset): Add "name".
5056 * linux-nat.c (linux_nat_thread_name): New function.
5057 (linux_nat_add_target): Set to_thread_name.
5058 * gdbthread.h (struct thread_info) <name>: New field.
5060 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5062 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5063 (ada_val_print_1): Likewise.
5065 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5067 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5068 upper limit address is not greater than the function end address
5069 when the upper limit could not be computed using the debugging
5072 2011-01-17 Tom Tromey <tromey@redhat.com>
5074 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5076 * utils.c: Include gdb_regex.h.
5077 (do_regfree_cleanup): New function.
5078 (make_regfree_cleanup): Likewise.
5079 (get_regcomp_error): Likewise.
5080 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5082 2011-01-17 Tom Tromey <tromey@redhat.com>
5084 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5087 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5089 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5090 for internal variables.
5091 (last_was_structop): New static variable.
5092 (COMPLETE): New token.
5093 (field_exp): New rule to group all '.' suffix handling.
5094 Add mark_struct_expression calls when approriate to be able
5095 to correctly find fields for completion.
5096 (yylex): Adapt to handle field completion and set INTVAR when
5099 2011-01-14 Yao Qi <yao@codesourcery.com>
5101 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5102 save_reggroup, restore_reggroup and all_reggroup.
5104 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5106 * ada-valprint. (ada_printchar): Use the correct type length
5107 in call to ada_emit_char.
5108 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5110 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5112 * solib-som.h (hpux_major_release): Declare variable here.
5113 * solib-som.c: Remove <sys/utsname.h> header.
5114 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5115 (hpux_major_release): Make global, change default value to
5116 DEFAULT_HPUX_MAJOR_RELEASE.
5117 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5118 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5119 Add "solib-som.h" header.
5120 (set_hpux_major_release): New function.
5121 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5123 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5125 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5127 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5129 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5130 new-line at end of warning message.
5131 (ia64_hpux_store_register): Remove trailing new-line at end of
5133 * ia64-hpux-tdep.c: Rephrase comment.
5134 * solib-ia64-hpux.c (struct dld_info): Change type of field
5135 dld_flags from "long long" to ULONGEST.
5137 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5139 * target.h (deprecated_child_ops): Delete declaration.
5140 * target.c (deprecated_child_ops): Delete definition.
5142 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5144 * Makefile.in (hpux-thread.o): Delete rule.
5145 * configure.ac: Don't check for HPUX DCE threads support.
5146 * configure, config.in: Regenerate.
5147 * hppa-hpux-nat.c (child_suppress_run): Delete.
5148 (hppa_hpux_child_can_run): Delete.
5149 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5150 * hpux-thread.c: Delete.
5152 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5154 * hpux-thread.c (hpux_pid_to_str): Delete.
5156 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5158 * ada-valprint.c (ada_emit_char): Remove strange code.
5159 Check that c is <= UCHAR_MAX before passing it to isascii.
5160 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5162 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5164 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5165 to the case where instream is stdin.
5167 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5169 * ia64-tdep.h (struct regcache): Forward declare.
5170 (struct ia64_infcall_ops): New struct type.
5171 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5173 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5174 Renames ia64_find_global_pointer.
5175 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5176 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5177 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5179 (ia64_infcall_ops): New static global constant.
5180 (ia64_gdbarch_init): Set tdep->infcall_ops.
5181 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5182 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5183 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5184 (ia64_hpux_dummy_code): New static global constant.
5185 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5186 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5187 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5189 (ia64_hpux_infcall_ops): New static global constant.
5190 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5191 for inferior function calls to work properly on ia64-hpux.
5193 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5195 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5196 * ia64-tdep.h (struct frame_info): forward declaration.
5197 (struct gdbarch_tdep): Add field size_of_register_frame.
5198 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5199 to determine the size of the register frame.
5200 (ia64_size_of_register_frame): New function.
5201 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5202 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5203 (IA64_HPUX_UREG_REASON): New macro.
5204 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5206 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5207 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5208 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5211 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5213 Add support for ia64-hpux.
5214 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5215 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5217 * configure.host: Add handling for ia64-hpux hosts. Add associated
5219 * configure.tgt: Add handling for ia64-hpux targets.
5220 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5221 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5222 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5224 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5226 [ttrace] Compute thread list immediately after attach.
5227 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5229 (inf_ttrace_attach): Use it.
5231 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5233 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5234 if we could not determine the frame's function address. Instead,
5235 use the frame's PC, and then continue.
5237 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5239 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5240 not already defined.
5242 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5244 * ia64-tdep.c (ia64_struct_type_p): New function.
5245 (ia64_extract_return_value): Handle integral values that are
5246 less than 8 bytes long.
5247 (ia64_push_dummy_call): Likewise.
5249 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5251 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5252 floatformat_ia64_ext.
5253 (floatformat_ia64_ext_big): New static const.
5254 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5256 2011-01-12 Tom Tromey <tromey@redhat.com>
5258 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5260 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5261 (mi_cmd_thread_list_ids): Likewise.
5262 (mi_cmd_data_list_changed_registers): Likewise.
5263 (mi_cmd_data_list_register_values): Likewise.
5264 (mi_cmd_data_write_register_values): Likewise.
5265 (mi_cmd_data_evaluate_expression): Likewise.
5266 (mi_cmd_data_read_memory): Likewise.
5267 (mi_cmd_data_read_memory_bytes): Likewise.
5268 (mi_cmd_data_write_memory): Likewise.
5269 (mi_cmd_enable_timings): Likewise.
5270 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5271 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5272 (mi_cmd_var_delete): Likewise.
5273 (mi_cmd_var_set_format): Likewise.
5274 (mi_cmd_var_show_format): Likewise.
5275 (mi_cmd_var_info_num_children): Likewise.
5276 (mi_cmd_var_list_children): Likewise.
5277 (mi_cmd_var_info_type): Likewise.
5278 (mi_cmd_var_info_expression): Likewise.
5279 (mi_cmd_var_show_attributes): Likewise.
5280 (mi_cmd_var_assign): Likewise.
5281 (mi_cmd_var_update): Likewise.
5282 (mi_cmd_enable_pretty_printing): Likewise.
5283 (mi_cmd_var_set_update_range): Likewise.
5284 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5286 (mi_cmd_target_file_put): Likewise.
5287 (mi_cmd_target_file_delete): Likewise.
5288 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5290 (mi_cmd_stack_info_depth): Likewise.
5291 (mi_cmd_stack_list_locals): Likewise.
5292 (mi_cmd_stack_list_args): Likewise.
5293 (mi_cmd_stack_select_frame): Likewise.
5294 (mi_cmd_stack_select_frame): Likewise.
5295 (mi_cmd_stack_info_frame): Likewise.
5296 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5298 (mi_cmd_file_list_exec_source_files): Likewise.
5299 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5300 (mi_cmd_env_cd): Likewise.
5301 (mi_cmd_env_path): Likewise.
5302 (mi_cmd_env_dir): Likewise.
5303 (mi_cmd_inferior_tty_show): Likewise.
5304 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5305 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5306 (mi_cmd_break_watch): Likewise.
5308 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5310 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5311 (ppc_linux_insert_hw_breakpoint): Likewise.
5312 (ppc_linux_remove_hw_breakpoint): Likewise.
5313 (ppc_linux_insert_watchpoint): Likewise.
5315 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5316 Jan Kratochvil <jan.kratochvil@redhat.com>
5318 PR fortran/11104 and DWARF unbound arrays detection.
5319 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5320 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5321 unspecified upper bound.
5322 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5323 variables array_size_array, tmp_type and offset_item. New variable
5324 array. Remove call to f77_get_upperbound. New variables array_type
5325 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5326 the final call to deprecated_set_value_type.
5328 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5330 Make value allocations more lazy.
5331 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5332 instead of allocate_value and set_value_lazy when possible.
5333 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5334 instead of allocate_value and set_value_lazy.
5335 * findvar.c (value_of_register_lazy): Likewise.
5336 (read_var_value): Remove V preallocation, call just check_typedef in
5337 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5338 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5339 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5340 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5341 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5342 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5343 the end, remove set_value_lazy there.
5344 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5345 instead of allocate_value and set_value_lazy when possible.
5346 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5347 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5348 of allocate_value and set_value_lazy.
5349 (value_from_contents_and_address): Use allocate_value_lazy instead of
5350 allocate_value and set_value_lazy when possible.
5352 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5354 * disasm.c (dump_insns): Support dumping opcodes for MI.
5355 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5356 dumping of instruction opcodes.
5358 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5360 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5363 2011-01-11 Tom Tromey <tromey@redhat.com>
5365 * thread.c (do_captured_thread_select): Emit newline before
5368 2011-01-11 Michael Snyder <msnyder@vmware.com>
5370 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5371 * score-tdep.c: Ditto.
5372 * score-tdep.h: Ditto.
5373 * ser-base.c: Ditto.
5374 * ser-go32.c: Ditto.
5377 * ser-mingw.c: Ditto.
5378 * ser-pipe.c: Ditto.
5380 * ser-unix.c: Ditto.
5381 * sh64-tdep.c: Ditto.
5382 * shnbsd-nat.c: Ditto.
5386 * solib-darwin.c: Ditto.
5387 * solib-frv.c: Ditto.
5389 * solib-irix.c: Ditto.
5390 * solib-osf.c: Ditto.
5391 * solib-pa64.c: Ditto.
5392 * solib-som.c: Ditto.
5393 * solib-spu.c: Ditto.
5394 * solib-sunos.c: Ditto.
5395 * solib-svr4.c: Ditto.
5397 * sol-thread.c: Ditto.
5401 * sparc64-linux-tdep.c: Ditto.
5402 * sparc64-tdep.c: Ditto.
5403 * sparc-linux-nat.c: Ditto.
5404 * sparc-linux-tdep.c: Ditto.
5405 * sparc-sol2-nat.c: Ditto.
5406 * sparc-sol2-tdep.c: Ditto.
5407 * sparc-tdep.c: Ditto.
5408 * sparc-tdep.h: Ditto.
5409 * spu-tdep.c: Ditto.
5410 * stabsread.c: Ditto.
5411 * stabsread.h: Ditto.
5419 * target-descriptions.c: Ditto.
5420 * target-descriptions.h: Ditto.
5422 * target-memory.c: Ditto.
5423 * terminal.h: Ditto.
5426 * tracepoint.c: Ditto.
5427 * tracepoint.h: Ditto.
5428 * trad-frame.h: Ditto.
5429 * typeprint.c: Ditto.
5431 2011-01-11 Michael Snyder <msnyder@vmware.com>
5433 * ui-file.c: Comment cleanup, mostly periods and spaces.
5438 * v850-tdep.c: Ditto.
5439 * valarith.c: Ditto.
5441 * valprint.c: Ditto.
5442 * valprint.h: Ditto.
5447 * vax-tdep.c: Ditto.
5451 * windows-nat.c: Ditto.
5452 * windows-tdep.c: Ditto.
5453 * xcoffread.c: Ditto.
5454 * xcoffsolib.c: Ditto.
5455 * xml-support.c: Ditto.
5456 * xstormy16-tdep.c: Ditto.
5457 * xtensa-tdep.c: Ditto.
5458 * xtensa-tdep.h: Ditto.
5460 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5462 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5463 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5465 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5466 Thiago Jung Bauermann <bauerman@br.ibm.com>
5468 Implement support for PowerPC BookE ranged watchpoints.
5470 (struct breakpoint_ops) <resources_needed>: New method.
5471 Initialize to NULL in all existing breakpoint_ops instances.
5472 (struct breakpoint) <exact>: New field.
5473 (target_exact_watchpoints): Declare external global.
5474 * breakpoint.c (target_exact_watchpoints): New global flag.
5475 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5476 b->enable_state to bp_enabled before calling
5477 hw_watchpoint_used_count.
5478 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5479 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5481 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5482 if the watchpoint is exact.
5483 (resources_needed_watchpoint): New function.
5484 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5485 (watch_command_1): Set b->exact if the user asked for an exact
5486 watchpoint and one can be set.
5487 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5488 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5489 the user asks for an exact watchpoint and one can be set. Return
5490 number of needed debug registers to watch the expression.
5491 * gdbtypes.c (is_scalar_type): New function, based on
5492 valprint.c:scalar_type_p.
5493 (is_scalar_type_recursive): New function.
5494 * gdbtypes.h (is_scalar_type_recursive): Declare.
5495 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5496 handle regions when ranged watchpoints are available.
5497 (create_watchpoint_request): New function.
5498 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5499 create_watchpoint_request.
5500 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5501 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5502 `set powerpc' and `show powerpc' commands.
5503 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5504 Mention documentation comment in the target macro.
5505 (target_region_ok_for_hw_watchpoint): Document return value.
5507 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5509 * breakpoint.c (update_watchpoint): Decide on using a software or
5510 hardware watchpoint after the bp_locations are created.
5512 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5514 Convert hardware watchpoints to use breakpoint_ops.
5515 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5516 <insert_location>: ... this. Return int instead of void.
5517 Accept pointer to struct bp_location instead of pointer to
5518 struct breakpoint. Adapt all implementations.
5519 (breakpoint_ops) <remove>: Rename to...
5520 <remove_location>: ... this. Accept pointer to struct bp_location
5521 instead of pointer to struct breakpoint. Adapt all implementations.
5522 * breakpoint.c (insert_catchpoint): Delete function.
5523 (insert_bp_location): Call the watchpoint or catchpoint's
5524 breakpoint_ops.insert method.
5525 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5526 breakpoint_ops.remove method.
5527 (insert_watchpoint, remove_watchpoint): New functions.
5528 (watchpoint_breakpoint_ops): New structure.
5529 (watch_command_1): Initialize the OPS field.
5530 * inf-child.c (inf_child_insert_fork_catchpoint)
5531 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5532 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5533 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5535 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5536 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5537 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5538 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5539 * target.c (update_current_target): Change default implementation of
5540 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5541 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5542 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5543 to_set_syscall_catchpoint to return_one.
5544 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5545 (debug_to_insert_exec_catchpoint): Report return value.
5546 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5547 (to_insert_exec_catchpoint): Change declaration to return int instead
5550 2011-01-11 Michael Snyder <msnyder@vmware.com>
5552 * arm-tdep.c: Internationalization.
5555 * fork-child.c: Ditto.
5556 * nto-procfs.c: Ditto.
5557 * ppc-sysv-tdep.c: Ditto.
5559 * remote-mips.c: Ditto.
5561 * rs6000-nat.c: Ditto.
5562 * rs6000-tdep.c: Ditto.
5566 * xml-support.c: Ditto.
5567 * mi/mi-cmd-break.c: Ditto.
5568 * mi/mi-cmd-var.c: Ditto.
5569 * mi/mi-interp.c: Ditto.
5570 * mi/mi-main.c: Ditto.
5572 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5574 * remote-sim.c (gdbsim_store_register): Update API to
5575 sim_store_register to check more error conditions.
5577 2011-01-10 Michael Snyder <msnyder@vmware.com>
5579 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5580 * nto-tdep.c: Ditto.
5581 * nto-tdep.h: Ditto.
5582 * objc-exp.y: Ditto.
5583 * objc-lang.c: Ditto.
5584 * objfiles.c: Ditto.
5585 * objfiles.h: Ditto.
5586 * observer.c: Ditto.
5587 * opencl-lang.c: Ditto.
5590 * parser-defs.h: Ditto.
5593 * posix-hdep.c: Ditto.
5594 * ppcbug-rom.c: Ditto.
5595 * ppc-linux-nat.c: Ditto.
5596 * ppc-linux-tdep.c: Ditto.
5597 * ppc-linux-tdep.h: Ditto.
5598 * ppcnbsd-tdep.c: Ditto.
5599 * ppcobsd-tdep.c: Ditto.
5600 * ppcobsd-tdep.h: Ditto.
5601 * ppc-sysv-tdep.c: Ditto.
5602 * ppc-tdep.h: Ditto.
5603 * printcmd.c: Ditto.
5604 * proc-abi.c: Ditto.
5605 * proc-flags.c: Ditto.
5607 * proc-utils.h: Ditto.
5608 * progspace.h: Ditto.
5609 * prologue-value.c: Ditto.
5610 * prologue-value.h: Ditto.
5611 * psympriv.h: Ditto.
5613 * p-typeprint.c: Ditto.
5614 * p-valprint.c: Ditto.
5615 * ravenscar-sparc-thread.c: Ditto.
5616 * ravenscar-thread.c: Ditto.
5617 * ravenscar-thread.h: Ditto.
5619 * regcache.c: Ditto.
5620 * regcache.h: Ditto.
5622 * remote-fileio.c: Ditto.
5623 * remote-fileio.h: Ditto.
5625 * remote-m32r-sdi.c: Ditto.
5626 * remote-mips.c: Ditto.
5627 * remote-sim.c: Ditto.
5628 * rs6000-aix-tdep.c: Ditto.
5629 * rs6000-nat.c: Ditto.
5630 * rs6000-tdep.c: Ditto.
5632 2011-01-10 Michael Snyder <msnyder@vmware.com>
5634 * charset.c (validate): Internationalization.
5635 * coffread.c (read_one_sym): Ditto.
5636 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5637 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5638 * inflow.c (new_tty): Ditto.
5639 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5640 * m32c-tdep.c (m32c_return_value): Ditto.
5641 * mep-tdep.c (mep_store_return_value): Ditto.
5642 * score-tdep.c (score7_fetch_insn): Ditto.
5643 * ser-mingw.c (pipe_windows_open): Ditto.
5644 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5645 * spu-tdep.c (spu_register_type): Ditto.
5646 * tracepoint.c (trace_find_command): Ditto.
5647 * valarith.c (value_pos): Ditto.
5649 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5651 * ada-valprint.c (printstr): Minor comment reformatting.
5653 2011-01-08 Michael Snyder <msnyder@vmware.com>
5655 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5658 2011-01-08 Michael Snyder <msnyder@vmware.com>
5660 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5661 * hppa-hpux-tdep.c: Ditto.
5662 * hppa-linux-nat.c: Ditto.
5663 * hppa-linux-tdep.c: Ditto.
5664 * hppanbsd-tdep.c: Ditto.
5665 * hppa-tdep.c: Ditto.
5666 * hppa-tdep.h: Ditto.
5667 * hpux-thread.c: Ditto.
5668 * i386-cygwin-tdep.c: Ditto.
5669 * i386-darwin-nat.c: Ditto.
5670 * i386gnu-nat.c: Ditto.
5671 * i386-linux-nat.c: Ditto.
5672 * i386-linux-tdep.c: Ditto.
5673 * i386-nat.c: Ditto.
5674 * i386-nat.h: Ditto.
5675 * i386nbsd-tdep.c: Ditto.
5676 * i386-sol2-nat.c: Ditto.
5677 * i386-stub.c: Ditto.
5678 * i386-tdep.c: Ditto.
5679 * i386-tdep.h: Ditto.
5680 * i387-tdep.c: Ditto.
5681 * ia64-linux-nat.c: Ditto.
5682 * ia64-linux-tdep.c: Ditto.
5683 * ia64-tdep.c: Ditto.
5687 * inferior.c: Ditto.
5688 * inferior.h: Ditto.
5694 * iq2000-tdep.c: Ditto.
5695 * irix5-nat.c: Ditto.
5701 * jv-typeprint.c: Ditto.
5702 * jv-valprint.c: Ditto.
5703 * language.c: Ditto.
5704 * language.h: Ditto.
5705 * linespec.c: Ditto.
5706 * linux-fork.c: Ditto.
5707 * linux-nat.c: Ditto.
5708 * linux-thread-db.c: Ditto.
5709 * lm32-tdep.c: Ditto.
5711 2011-01-08 Michael Snyder <msnyder@vmware.com>
5713 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5715 * m2-typeprint.c: Ditto.
5716 * m2-valprint.c: Ditto.
5717 * m32c-tdep.c: Ditto.
5718 * m32r-linux-nat.c: Ditto.
5719 * m32r-rom.c: Ditto.
5720 * m32r-tdep.c: Ditto.
5721 * m32r-tdep.h: Ditto.
5722 * m68hc11-tdep.c: Ditto.
5723 * m58klinux-nat.c: Ditto.
5724 * m68k-tdep.c: Ditto.
5725 * m88k-tdep.c: Ditto.
5726 * m88k-tdep.h: Ditto.
5727 * machoread.c: Ditto.
5728 * macrocmd.c: Ditto.
5729 * macroexp.c: Ditto.
5730 * macrotab.c: Ditto.
5733 * mdebugread.c: Ditto.
5734 * mdebugread.h: Ditto.
5737 * memory-map.h: Ditto.
5738 * mep-tdep.c: Ditto.
5739 * microblaze-rom.c: Ditto.
5740 * microblaze-tdep.c: Ditto.
5742 * mips-irix-tdep.c: Ditto.
5743 * mips-linux-nat.c: Ditto.
5744 * mips-linux-tdep.c: Ditto.
5745 * mips-linux-tdep.h: Ditto.
5746 * mipsnbsd-nat.c: Ditto.
5747 * mipsnbsd-tdep.c: Ditto.
5748 * mipsread.c: Ditto.
5749 * mips-tdep.c: Ditto.
5750 * mips-tdep.h: Ditto.
5751 * mn10300-linux-tdep.c: Ditto.
5752 * mn10300-tdep.c: Ditto.
5753 * mn10300-tdep.h: Ditto.
5756 * moxie-tdep.c: Ditto.
5757 * moxie-tdep.h: Ditto.
5760 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5762 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5764 2011-01-08 Robert Millan <rmh@gnu.org>
5766 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5768 2011-01-07 Michael Snyder <msnyder@vmware.com>
5770 * charset.c (_initialize_charset): Fix typo in string.
5772 2011-01-07 Michael Snyder <msnyder@vmware.com>
5774 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5776 * tui/tui-layout.c (tui_set_layout_for_display_command):
5777 Split line so that operator goes to beginning of line.
5778 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5779 assignment out of if statement.
5781 2011-01-07 Michael Snyder <msnyder@vmware.com>
5783 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5784 * ada-lang.h: Ditto.
5785 * ada-tasks.c: Ditto.
5786 * ada-valprint.c: Ditto.
5787 * aix-threads.c: Ditto.
5788 * alpha-linux-nat.c: Ditto.
5789 * alpha-linux-tdep.c: Ditto.
5790 * alpha-mdebug-tdep.c: Ditto.
5791 * alpha-nat.c: Ditto.
5792 * alpha-osf1-tdep.c: Ditto.
5793 * alpha-tdep.c: Ditto.
5794 * alphabsd-nat.c: Ditto.
5795 * alphabsd-tdep.c: Ditto.
5796 * amd64-darwin-tdep.c: Ditto.
5797 * amd64-linux-nat.c: Ditto.
5798 * amd64-linux-tdep.c: Ditto.
5799 * amd64-sol2-tdep.c: Ditto.
5800 * amd64-tdep.c: Ditto.
5801 * amd64-fbsd-tdep.c: Ditto.
5802 * amd64-nbsd-tdep.c: Ditto.
5803 * amd64-obsd-tdep.c: Ditto.
5804 * amd64-linux-nat.c: Ditto.
5805 * amd64-linux-tdep.c: Ditto.
5806 * arm-tdep.c: Ditto.
5807 * arm-tdep.h: Ditto.
5808 * armnbsd-nat.c: Ditto.
5809 * avr-tdep.c: Ditto.
5810 * bfin-tdep.c: Ditto.
5812 * c-typeprintc: Ditto.
5813 * c-valprint.c: Ditto.
5814 * coff-pe-read.h: Ditto.
5815 * coffreead.c: Ditto.
5816 * cris-tdep.c: Ditto.
5818 * darwin-nat-info.c: Ditto.
5819 * darwin-nat.c: Ditto.
5820 * dbug-rom.c: Ditto.
5824 * dec-thread.c: Ditto.
5826 * demangle.c: Ditto.
5827 * dicos-tdep.c: Ditto.
5828 * dictionary.c: Ditto.
5829 * dictionary.h: Ditto.
5830 * dink32-rom.c: Ditto.
5832 * doublest.c: Ditto.
5834 * dummy-frame.c: Ditto.
5835 * dwarf2-frame.c: Ditto.
5836 * dwarf2expr.c: Ditto.
5837 * dwarf2loc.c: Ditto.
5838 * dwarf2read.c: Ditto.
5842 * event-top.h: Ditto.
5843 * exceptions.c: Ditto.
5844 * exceptions.h: Ditto.
5846 * expprint.c: Ditto.
5847 * expression.h: Ditto.
5851 * f-typeprint.c: Ditto.
5852 * f-valprint.c: Ditto.
5853 * fbsd-nat.c: Ditto.
5855 * fork-child.c: Ditto.
5858 * frv-linux-tdep.c: Ditto.
5859 * frv-tdep.c: Ditto.
5861 * gdb-stabs.h: Ditto.
5862 * gdb_assert.h: Ditto.
5863 * gdb_string.h: Ditto.
5864 * gdb_thread_db.h: Ditto.
5865 * gdb_wait.h: Ditto.
5866 * gdbarch.sh: Ditto.
5868 * gdbthread.h: Ditto.
5869 * gdbtypes.c: Ditto.
5870 * gdbtypes.h: Ditto.
5873 * gnu-v2-abi.c: Ditto.
5874 * gnu-v3-abi.c: Ditto.
5875 * go32-nat.c: Ditto.
5876 * gdbarch.c: Regenerate.
5877 * gdbarch.h: Regenerate.
5879 2011-01-07 Michael Snyder <msnyder@vmware.com>
5881 * ax-gdb.c: Adjust some long output strings.
5882 * breakpoint.c: Ditto.
5887 * linux-nat.c: Ditto.
5888 * solib-pa64.c: Ditto.
5889 * solib-som.c: Ditto.
5891 2011-01-06 Tom Tromey <tromey@redhat.com>
5895 * python/python.c (GdbMethods): Add "newest_frame" method.
5896 * python/python-internal.h (gdbpy_newest_frame): Declare.
5897 * python/py-frame.c (gdbpy_newest_frame): New function.
5899 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5901 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5902 * jit.c (jit_debug): New variable.
5903 (show_jit_debug): New function.
5904 (struct target_buffer): Use ULONGEST.
5905 (bfd_open_from_target_memory): Likewise.
5906 (jit_register_code, jit_inferior_init): Add debug output.
5907 (_initialize_jit): Register "debug jit" command.
5909 2011-01-06 Tom Tromey <tromey@redhat.com>
5911 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5912 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5915 2011-01-06 Tom Tromey <tromey@redhat.com>
5917 * python/py-frame.c (frapy_block): Use get_frame_block.
5919 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5921 Do not stop on SIGPRIO signals by default
5922 * infrun.c (_initialize_infrun): Unset signal_stop and
5923 signal_print for TARGET_SIGNAL_PRIO.
5925 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5927 * ada-tasks.c: Fix style violation in comment.
5929 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5931 * linespec.c (decode_compound, find_method): Remove trailing \n
5932 at end of error string.
5933 * solib-irix.c (irix_current_sos): Likewise.
5934 * varobj.c (uninstall_variable): Likewise.
5936 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5938 * copyright.py: New script.
5939 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5940 Launch emacs without exec'ing. Call copyright.py afterwards.
5942 2011-01-05 Michael Snyder <msnyder@vmware.com>
5944 * addrmap.c: Shorten lines of >= 80 columns.
5945 * arch-utils.c: Ditto.
5946 * arch-utils.h: Ditto.
5948 * ax-general.c: Ditto.
5950 * blockframe.c: Ditto.
5951 * breakpoint.c: Ditto.
5952 * buildsym.c: Ditto.
5954 * c-typeprint.c: Ditto.
5956 * coffread.c: Ditto.
5960 * cp-namespace.c: Ditto.
5961 * cp-support.c: Ditto.
5962 * dbug-rom.c: Ditto.
5967 * dictionary.c: Ditto.
5969 * doublest.c: Ditto.
5970 * dwarf2-frame.c: Ditto.
5971 * dwarf2expr.c: Ditto.
5972 * dwarf2loc.c: Ditto.
5973 * dwarf2read.c: Ditto.
5976 * event-loop.c: Ditto.
5977 * event-loop.h: Ditto.
5978 * exceptions.h: Ditto.
5980 * expprint.c: Ditto.
5981 * expression.h: Ditto.
5983 * f-valprint.c: Ditto.
5985 * frame-base.c: Ditto.
5986 * frame-unwind.c: Ditto.
5987 * frame-unwind.h: Ditto.
5991 * gdb-stabs.h: Ditto.
5992 * gdb_assert.h: Ditto.
5993 * gdb_dirent.h: Ditto.
5994 * gdb_obstack.h: Ditto.
5996 * gdbtypes.c: Ditto.
5997 * gdbtypes.h: Ditto.
5998 * inf-ttrace.c: Ditto.
6003 * inline-frame.h: Ditto.
6004 * language.c: Ditto.
6005 * language.h: Ditto.
6006 * libunwind-frame.c: Ditto.
6007 * libunwind-frame.h: Ditto.
6008 * linespec.c: Ditto.
6009 * linux-nat.c: Ditto.
6010 * linux-nat.h: Ditto.
6011 * linux-thread-db.c: Ditto.
6012 * machoread.c: Ditto.
6013 * macroexp.c: Ditto.
6014 * macrotab.c: Ditto.
6017 * mdebugread.c: Ditto.
6022 * objfiles.c: Ditto.
6023 * objfiles.h: Ditto.
6025 * p-typeprint.c: Ditto.
6026 * p-valprint.c: Ditto.
6028 * printcmd.c: Ditto.
6029 * proc-events.c: Ditto.
6031 * progspace.c: Ditto.
6032 * progspace.h: Ditto.
6033 * psympriv.h: Ditto.
6036 * regcache.c: Ditto.
6037 * regcache.h: Ditto.
6038 * remote-fileio.c: Ditto.
6040 * ser-mingw.c: Ditto.
6042 * ser-unix.c: Ditto.
6045 * solib-frv.c: Ditto.
6046 * solib-irix.c: Ditto.
6047 * solib-osf.c: Ditto.
6048 * solib-pa64.c: Ditto.
6049 * solib-som.c: Ditto.
6050 * solib-sunos.c: Ditto.
6051 * solib-svr4.c: Ditto.
6052 * solib-target.c: Ditto.
6056 * stabsread.c: Ditto.
6057 * stabsread.c: Ditto.
6060 * symfile-mem.c: Ditto.
6066 * target-descriptions.c: Ditto.
6067 * target-memory.c: Ditto.
6070 * terminal.h: Ditto.
6073 * tracepoint.c: Ditto.
6074 * tracepoint.h: Ditto.
6078 * user-regs.c: Ditto.
6079 * user-regs.h: Ditto.
6081 * valarith.c: Ditto.
6083 * valprint.c: Ditto.
6084 * valprint.h: Ditto.
6089 * xcoffread.c: Ditto.
6090 * xcoffsolib.c: Ditto.
6091 * xcoffsolib.h: Ditto.
6092 * xml-syscall.c: Ditto.
6093 * xml-tdesc.c: Ditto.
6095 2011-01-05 Michael Snyder <msnyder@vmware.com>
6097 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6098 * cli/cli-decode.c: Ditto.
6099 * cli/cli-dump.c: Ditto.
6100 * cli/cli-logging.c: Ditto.
6101 * cli/cli-script.c: Ditto.
6102 * cli/cli-setshow.c: Ditto.
6103 * common/signals.c: Ditto.
6104 * mi/mi-cmd-break.c: Ditto.
6105 * mi/mi-cmd-disas.c: Ditto.
6106 * mi/mi-cmd-stack.c: Ditto.
6107 * mi/mi-cmd-var.c: Ditto.
6108 * mi/mi-cmds.c: Ditto.
6109 * mi/mi-common.h: Ditto.
6110 * mi/mi-console.c: Ditto.
6111 * mi/mi-interp.c: Ditto.
6112 * mi/mi-main.c: Ditto.
6113 * osf-share/cma_attr.c: Ditto.
6114 * osf-share/cma_deb_core.h: Ditto.
6115 * osf-share/cma_debug_client.h: Ditto.
6116 * osf-share/cma_handle.h: Ditto.
6117 * osf-share/cma_mutex.h: Ditto.
6118 * osf-share/cma_stack_int.h: Ditto.
6119 * osf-share/cma_tcb_defs.h: Ditto.
6120 * python/py-auto-load.c: Ditto.
6121 * python/py-breakpoint.c: Ditto.
6122 * python/py-cmd.c: Ditto.
6123 * python/py-frame.c: Ditto.
6124 * python/py-objfile.c: Ditto.
6125 * python/py-param.c: Ditto.
6126 * python/py-progspace.c: Ditto.
6127 * python/py-symbol.c: Ditto.
6128 * python/py-value.c: Ditto.
6129 * python/python-internal.h: Ditto.
6130 * python/python.c: Ditto.
6131 * tui/tui-data.c: Ditto.
6132 * tui/tui-disasm.c: Ditto.
6133 * tui/tui-hooks.c: Ditto.
6134 * tui/tui-io.c: Ditto.
6135 * tui/tui-layout.c: Ditto.
6136 * tui/tui-regs.c: Ditto.
6137 * tui/tui-source.c: Ditto.
6138 * tui/tui-stack.c: Ditto.
6139 * tui/tui-win.c: Ditto.
6140 * tui/tui-windata.c: Ditto.
6141 * tui/tui-winsource.c: Ditto.
6143 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6145 * configure.ac, gdb.1: Copyright year update.
6147 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6149 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6150 this_pc_in_block, morestack_msym and morestack_name. Check for
6151 "__morestack" minimal symbol there.
6153 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6155 * symfile.c (find_sym_fns): Add call to dont_repeat.
6157 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6159 Copyright year update in most files (performed by copyright.sh).
6161 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6163 * top.c (print_gdb_version): Update copyright year in version output.
6165 For older changes see ChangeLog-2010.
6171 version-control: never