1 2011-05-24 Tristan Gingold <gingold@adacore.com>
3 * symfile.h (enum dwarf2_section_enum): New type.
4 (dwarf2_get_section_info): New prototype.
5 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6 section_name by sect. Use a switch to select the info.
7 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
8 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
10 2011-05-24 Pedro Alves <pedro@codesourcery.com>
12 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
13 shared library event breakpoint if there's no execution.
15 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
17 * breakpont.c (remove_hw_watchpoints): Remove unused function.
18 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
20 2011-05-23 Tom Tromey <tromey@redhat.com>
22 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
25 2011-05-23 Doug Evans <dje@google.com>
27 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
28 entry for RuntimeError to doc string.
30 2011-05-23 Jerome Guitton <guitton@adacore.com>
32 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
33 sequence for probing loops.
35 2011-05-23 Pedro Alves <pedro@codesourcery.com>
37 * infrun.c (user_visible_resume_ptid): Fix typos in describing
40 2011-05-21 Mark Kettenis <kettenis@gnu.org>
42 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
43 zero as the value for %g0 in the register cache.
44 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
45 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
47 2011-05-20 Pedro Alves <pedro@codesourcery.com>
49 * infrun.c (proceed): Set previous_inferior_ptid here.
50 (init_wait_for_inferior): Initialize previous_inferior_ptid from
51 inferior_ptid, not null_ptid.
52 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
53 (fetch_inferior_event): Nor here.
55 2011-05-20 Pedro Alves <pedro@codesourcery.com>
57 * inf-loop.c (inferior_event_handler): Only output a message if
60 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
62 * MAINTAINERS: Update my e-mail address.
64 2011-05-20 Pedro Alves <pedro@codesourcery.com>
66 * infrun.c (proceed): Switch the inferior event loop to
67 INF_EXEC_COMPLETE if the target refused to resume from a
70 2011-05-20 Pedro Alves <pedro@codesourcery.com>
72 * infcmd.c: Include "inf-loop.h".
73 (step_once): When stepping into an inline subroutine, pretend the
74 target has run. If the target can async, switch the inferior
75 event loop to INF_EXEC_COMPLETE.
76 * inferior.h (user_visible_resume_ptid): Declare.
77 * infrun.c (user_visible_resume_ptid): New function, factored out
80 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
81 that the current thread is running. Merge async and sync
84 2011-05-20 Pedro Alves <pedro@codesourcery.com>
86 * infcmd.c (step_1): Simplify synchronous case.
88 2011-05-20 Pedro Alves <pedro@codesourcery.com>
90 * tracepoint.c: Include exceptions.h.
91 (TFILE_PID): Move higher in file.
92 (tfile_open): Delay pushing the tfile target until we're assured
93 the tfile header is present in the file. Wrap reading the initial
94 newline-terminated lines in TRY_CATCH. Pop the target if the
95 initial setup failed. Add the tfile's thread immediately
96 aftwards, before any non-essential setup. Don't skip
97 post_create_inferior if there are no traceframes present in the
99 (tfile_close): Remove redundant check for null before xfree call.
100 (tfile_thread_alive): New function.
101 (init_tfile_ops): Register it as to_thread_alive callback.
103 2011-05-20 Pedro Alves <pedro@codesourcery.com>
105 * tracepoint.c (tfile_open): Delete #if 0'd code.
107 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
109 Fix -readnow for -gdwarf-4 unused type units.
110 * dwarf2read.c (struct signatured_type): Remove the field offset.
111 (create_signatured_type_table_from_index): Remove its initialization.
112 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
113 instead. Add a complaint call.
114 (process_psymtab_comp_unit): Change assignment to gdb_assert.
115 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
116 (lookup_signatured_type_at_offset, read_signatured_type)
117 (write_one_signatured_type): Update the field for per_cu.
119 2011-05-19 Tom Tromey <tromey@redhat.com>
121 * python/py-inferior.c (python_inferior_exit): Use
123 (python_on_resume): Likewise.
125 2011-05-19 Matt Rice <ratmice@gmail.com>
127 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
129 2011-05-19 Hui Zhu <teawater@gmail.com>
131 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
133 2011-05-19 Hui Zhu <teawater@gmail.com>
135 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
137 2011-05-18 Tom Tromey <tromey@redhat.com>
139 * dwarf2read.c (dwarf2_add_field): Constify.
140 * value.c (value_static_field): Constify.
141 * gdbtypes.h (struct main_type) <field.field_location.physname>:
143 * ax-gdb.c (gen_static_field): Constify
145 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
147 * linux-nat.c (kill_callback): Use SIGKILL first.
149 2011-05-18 Joel Brobecker <brobecker@adacore.com>
151 * ada-lang.c (print_it_exception): Avoid use of sprintf.
153 2011-05-18 Tom Tromey <tromey@redhat.com>
155 * value.c (value_fn_field): Constify.
156 * symtab.c (gdb_mangle_name): Constify.
157 * stabsread.c (update_method_name_from_physname): Make 'physname'
159 * p-typeprint.c (pascal_type_print_method_args): Make arguments
160 const. Use explicit fputc_filtered loop.
161 (pascal_type_print_base): Constify.
162 * p-lang.h (pascal_type_print_method_args): Update.
163 * linespec.c (add_matching_methods): Constify.
164 (add_constructors): Likewise.
165 * jv-typeprint.c (java_type_print_base): Constify.
166 * gdbtypes.h (struct cplus_struct_type)
167 <fn_fieldlist.fn_field.physname>: Now const.
168 * dwarf2read.c (compute_delayed_physnames): Constify.
169 (dwarf2_add_member_fn): Likewise.
170 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
172 2011-05-18 Pedro Alves <pedro@codesourcery.com>
174 * infrun.c (resume): Mention which is the current thread, and its
175 current PC in debug output.
176 (prepare_to_proceed): Mention the thread switching in debug
179 2011-05-18 Tom Tromey <tromey@redhat.com>
181 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
182 path check. Use xmalloc and cleanups.
183 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
185 2011-05-17 Tom Tromey <tromey@redhat.com>
187 * cp-valprint.c (cp_print_value_fields): Catch errors from
190 2011-05-17 Tom Tromey <tromey@redhat.com>
192 * dwarf2read.c (dwarf2_get_die_type): Call
193 get_die_type_at_offset.
194 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
195 get_base_type function.
197 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
199 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
202 2011-05-16 Doug Evans <dje@google.com>
204 * python/py-auto-load.c (source_section_scripts): Mention objfile
207 2011-05-15 Doug Evans <dje@google.com>
209 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
210 (try_thread_db_load_from_pdir): Call it. If unable to find
211 libthread_db in directory of libpthread, see if we're looking at
212 the separate-debug-info copy.
214 * python/py-autoload.c (print_script): Print "Missing" instead of
215 "No" for missing scripts.
216 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
218 2011-05-13 Doug Evans <dje@google.com>
220 * ui-file.c (stdio_file_write_async_safe): Add comment.
222 2011-05-14 Hui Zhu <teawater@gmail.com>
224 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
226 2011-05-13 Doug Evans <dje@google.com>
228 Support $pdir and $sdir in libthread-db-search-path.
229 * NEWS: Mention $sdir,$pdir.
230 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
231 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
232 (try_thread_db_load_from_sdir): New function.
233 (try_thread_db_load_from_dir): New function.
234 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
235 system directories if search of libthread-db-search-path fails,
236 that is now done via $sdir.
237 (has_libpthread): New function.
238 (thread_db_load): Remove search for libthread_db in directory of
239 libpthread, that is now done via $pdir.
241 * NEWS: Mention "info auto-load-scripts".
242 * python/py-auto-load.c (struct auto_load_pspace_info): New member
243 script_not_found_warning_printed.
244 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
245 all callers updated. Initialize script_not_found_warning_printed.
246 (get_auto_load_pspace_data_for_loading): New function.
247 (maybe_add_script): New function.
248 (source_section_scripts): Simplify. Only print one warning regardless
249 of the number of auto-load scripts not found.
250 (clear_section_scripts): Clear script_not_found_warning_printed.
251 (auto_load_objfile_script): Record script in hash table.
252 (count_matching_scripts): New function.
253 (maybe_print_script): Renamed from maybe_print_section_script, all
254 callers updated. Rewrite to use ui_out_*.
255 (info_auto_load_scripts): Renamed from
256 maintenance_print_section_scripts, all callers updated.
257 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
258 renamed as "info auto-load-scripts".
260 2011-05-13 Tom Tromey <tromey@redhat.com>
262 * dwarf2expr.c (read_uleb128): Cast intermediate result.
263 (read_sleb128): Likewise.
265 2011-05-13 Tom Tromey <tromey@redhat.com>
267 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
270 2011-05-13 Doug Evans <dje@google.com>
272 * linux-nat.c (debug_linux_nat_async): Delete.
273 Replace all references to use debug_linux_nat instead.
274 (show_debug_linux_nat_async): Delete.
275 (sigchld_handler): Call ui_file_write_async_safe instead of
277 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
278 * ui-file.c (struct ui_file): New member to_write_async_safe.
279 (null_file_write_async_safe): New function.
280 (ui_file_write_async_safe): New function.
281 (set_ui_file_write_async_safe): New function.
282 (ui_file_new): Initialize to_write_async_safe.
283 (stdio_file_write_async_safe): New function.
284 (struct stdio_file): New member fd.
285 (stdio_file_new): Initialize to_write_async_safe, fd.
286 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
288 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
289 (set_ui_file_write_async_safe): Declare.
290 (ui_file_write_async_safe): Declare.
292 2011-05-13 Tom Tromey <tromey@redhat.com>
294 * utils.c (do_value_free): New function.
295 (make_cleanup_value_free): Likewise.
296 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
298 (dwarf2_loc_desc_needs_frame): Call
299 make_cleanup_value_free_to_mark.
300 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
301 * dwarf2expr.c (free_dwarf_expr_context): Don't call
303 (new_dwarf_expr_context): Don't call value_mark.
304 * dwarf2-frame.c (execute_stack_op): Call
305 make_cleanup_value_free_to_mark.
306 * defs.h (make_cleanup_value_free): Declare.
308 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
310 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
311 prepare_execute_command.
312 * top.c (prepare_execute_command): Return cleanup.
313 (execute_command): Use cleanup from prepare_execute_command.
314 * top.h (prepare_execute_command): Change prototype to return
316 * defs.h (struct value): Add opaque declaration.
317 (make_cleanup_value_free_to_mark): Add prototype.
318 * utils.c (do_value_free_to_mark): New function.
319 (make_cleanup_value_free_to_mark): Likewise.
321 2011-05-12 Tom Tromey <tromey@redhat.com>
323 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
324 cast left-hand-side to unsigned.
326 2011-05-12 Tom Tromey <tromey@redhat.com>
329 * value.h (value_from_contents): Declare.
330 * value.c (value_from_contents): New function.
331 * dwarf2read.c (dwarf_stack_op_name): Add new values.
332 (dwarf2_get_die_type): New function.
333 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
334 (allocate_piece_closure): Acquire reference to values.
335 (read_pieced_value): Update for value-based expressions.
336 (write_pieced_value): Likewise.
337 (free_pieced_value_closure): Call value_free as needed.
338 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
339 Update for value-based expressions.
340 * dwarf2loc.h (dwarf2_get_die_type): Declare.
341 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
342 <get_base_type>: New field.
343 (struct dwarf_expr_piece) <v.value>: Change type.
344 <v.regno>: New field.
345 (struct dwarf_expr_context) <mark>: New field.
346 (dwarf_expr_piece, dwarf_expr_fetch): Update.
347 (dwarf_expr_pop, dwarf_expr_push): Remove.
348 (dwarf_expr_push_address): Declare.
349 * dwarf2expr.c (dwarf_arch_cookie): New global.
350 (struct dwarf_gdbarch_types): New.
351 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
353 (dwarf_expr_push): Change type of 'value' argument. Update. Now
355 (dwarf_expr_push_address): New function.
356 (dwarf_expr_pop): Now static.
357 (dwarf_expr_fetch): Change return type.
358 (dwarf_require_integral): New function.
359 (dwarf_expr_fetch): Simplify.
361 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
363 (execute_stack_op) <sign_ext>: Remove.
364 Use values for DWARF stack.
365 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
366 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
368 (_initialize_dwarf2expr): New function.
370 (new_dwarf_expr_context): Set new field.
371 (free_dwarf_expr_context): Call value_free_to_mark.
372 * dwarf2-frame.c (no_base_type): New function.
373 (execute_stack_op): Set get_base_type field. Update.
375 2011-05-12 Tom Tromey <tromey@redhat.com>
377 * dwarf2read.c (read_common_block): Fix formatting.
379 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
381 * breakpoint.c (disable_breakpoint): Disable all locations
382 associated with a tracepoint on target if a trace experiment is
384 (disable_command): Disable a specific tracepoint location on target if
385 a trace experiment is running.
386 (do_enable_breakpoint): Enable all locations associated with a
387 tracepoint on target if a trace experiment is running.
388 (enable_command) Enable a specific tracepoint location on target if a
389 trace experiment is running.
390 * target.c (update_current_target): Add INHERIT and de_fault clauses for
391 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
392 to_disable_tracepoint.
393 * target.h: Add declaration of struct bp_location.
394 (struct target_ops): Add new functions
395 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
396 to_disable_tracepoint to target operations.
397 (target_supports_enable_disable_tracepoint): New macro.
398 (target_enable_tracepoint): New macro.
399 (target_disable_tracepoint): New macro.
400 * remote.c (struct remote_state): Add new field.
401 (remote_enable_disable_tracepoint_feature): New.
402 (remote_protocol_features): Add new entry.
403 (remote_supports_enable_disable_tracepoint): New.
404 (remote_enable_tracepoint): New.
405 (remote_disable_tracepoint): New.
406 (init_remote_ops): Add remote_enable_tracepoint,
407 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
408 to remote operations.
409 * tracepoint.c (start_tracing): Allow tracing to start without any
410 tracepoints enabled with just a warning if they can be re-enabled
412 * NEWS: Add news item for the new behaviour of the enable and disable
413 GDB commands when applied to tracepoints.
414 Add news items for the new remote packets QTEnable and QTDisable.
416 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
418 * config.in: Regenerate.
419 * configure: Regenerate.
420 * configure.ac <--with-system-readline> (for readline_echoing_p):
422 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
423 (tui_old_rl_echoing_p): ... here.
424 (tui_setup_io): Rename extern declaration readline_echoing_p to
425 _rl_echoing_p. Adjust assignments for the both renames.
427 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
429 * symtab.c (lookup_symtab): Run cleanup before returning.
431 2011-05-11 Tom Tromey <tromey@redhat.com>
433 * dwarf2read.c (handle_data_member_location): New function.
434 (dwarf2_add_field): Use it.
435 (read_common_block): Likewise.
437 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
439 Make addrs->SECTINDEX always defined.
440 * symfile.c (relative_addr_info_to_section_offsets): Check for
441 SECTINDEX -1, not for zero ADDR.
442 (addrs_section_compar): Remove checking for invalid SECTINDEX.
443 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
444 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
447 2011-05-10 Doug Evans <dje@google.com>
449 * linux-thread-db.c: Whitespace cleanup.
450 (try_thread_db_load_1): Fix comment.
452 * linux-thread-db.c (set_libthread_db_search_path): New function.
453 (_initialize_thread_db): Add setter for libthread-db-search-path.
455 2011-05-09 Doug Evans <dje@google.com>
457 * NEWS: Mention --with-iconv-bin.
458 * configure.ac: New option --with-iconv-bin.
459 * configure: Regenerate.
460 * config.in: Regenerate.
461 * defs.h (relocate_gdb_directory): Declare.
462 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
463 removed progname parameter, and exported. All callers updated.
464 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
466 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
467 adding missing call to restore_child_signals_mask.
469 2011-05-09 Pedro Alves <pedro@codesourcery.com>
471 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
473 * infrun.c (proceed, start_remote): Adjust.
474 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
475 and adjust to not handle it.
476 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
477 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
478 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
479 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
480 * windows-nat.c (do_initial_windows_stuff): Adjust.
481 * infcmd.c (attach_command): Adjust.
482 (notice_new_inferior): Adjust.
484 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
486 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
487 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
488 * spu-tdep.c (op_selb): Use correct value.
490 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
492 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
493 "parent" parameter to symbol_file_add_from_bfd call.
495 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
496 Thiago Jung Bauermann <bauerman@br.ibm.com>
498 Implement support for PowerPC BookE masked watchpoints.
499 * NEWS: Mention masked watchpoint support. Create "Changed commands"
501 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
502 method. Initialize to NULL in all existing breakpoint_ops instances.
503 (struct breakpoint) <hw_wp_mask>: New field.
504 * breakpoint.c (is_masked_watchpoint): Add prototype.
505 (update_watchpoint): Don't set b->val for masked watchpoints. Call
506 breakpoint's breakpoint_ops.works_in_software_mode if available.
507 (watchpoints_triggered): Handle the case of a hardware masked
509 (watchpoint_check): Likewise.
510 (works_in_software_mode_watchpoint): New function.
511 (insert_masked_watchpoint, remove_masked_watchpoint)
512 (resources_needed_masked_watchpoint)
513 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
514 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
515 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
517 (masked_watchpoint_breakpoint_ops): New structure.
518 (watch_command_1): Check for the existence of the `mask' parameter.
519 Set b->ops according to the type of hardware watchpoint being created.
520 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
521 (ppc_linux_remove_mask_watchpoint)
522 (ppc_linux_masked_watch_num_registers): New functions.
523 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
524 to_remove_mask_watchpoint and to_masked_watch_num_registers.
525 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
526 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
527 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
528 (target_masked_watch_num_registers): New functions.
529 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
530 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
532 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
533 (target_masked_watch_num_registers): Add prototypes.
535 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
538 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
539 (producer_is_gcc_ge_4_0): New function.
540 (process_full_comp_unit): Set also symtab->locations_valid. Move the
541 symtab->language code.
542 (var_decode_location): Set cu->has_loclist.
543 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
544 skip. Intialize force_skip from locations_valid. Move the prologue
545 skipping code into two passes.
546 * symtab.h (struct symtab): Make the primary field a bitfield. New
547 field locations_valid.
549 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
551 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
552 (classify_inner_name): Call cp_lookup_nested_type with
554 * cp-namespace.c (cp_lookup_nested_type): New variable
555 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
556 type_name_no_tag_or_error with saved_parent_type.
557 * dwarf2read.c (load_partial_dies): Read in any children of
558 DW_TAG_typedef with complaint in such case.
559 * gdbtypes.c (type_name_no_tag_or_error): New function.
560 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
561 * valops.c (destructor_name_p): New comment for parameter type. Remove
562 type const. Make dname and cp const. Call type_name_no_tag_or_error.
563 * value.h (destructor_name_p): Remove type const.
565 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
567 * symtab.c (compare_symbol_name): New function.
568 (completion_list_add_name, expand_partial_symbol_name): Call it,
569 remove the variable ncmp.
570 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
573 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
575 Demote to sw watchpoint only in update_watchpoint.
576 * breakpoint.c (update_watchpoint): Change between software and
577 hardware watchpoint for all kinds of watchpoints, not just
578 read/write ones. Determine b->exact value here instead of
579 in watch_command_1. Error out if there are not enough resources
580 for a read or access hardware watchpoint.
581 (watch_command_1): Remove logic of checking whether there are
582 enough resources available, since update_watchpoint will do that
583 work now. Don't set b->exact here. Catch exceptions thrown by
584 update_watchpoint and delete the watchpoint.
585 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
586 Use target_exact_watchpoints instead.
587 (delete_breakpoint): Notify observers only if deleted watchpoint
588 has a breakpoint number assigned to it.
590 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
592 * MAINTAINERS: Add myself as a write-after-approval maintainer.
594 2011-05-05 Jerome Guitton <guitton@adacore.com>
596 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
598 (i386_stack_tramp_frame_unwind): New static global.
599 (i386_match_pattern): New function, extracted from i386_match_insn.
600 (i386_match_insn): Use i386_match_pattern.
601 (i386_match_insn_block): New function.
602 (i386_tramp_chain_in_reg_insns)
603 (i386_tramp_chain_on_stack_insns): New static variables.
604 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
607 2011-05-04 Joseph Myers <joseph@codesourcery.com>
609 * configure.host (xscale*): Don't handle target.
610 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
613 2011-05-04 Yao Qi <yao@codesourcery.com>
615 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
617 2011-05-03 Joel Brobecker <brobecker@adacore.com>
620 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
621 | * elfread.c (elf_symtab_read): Stop memory leak.
623 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
625 * nto-tdep.c (nto_target): Replace deprecated call to
626 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
628 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
630 Fix false GCC warning.
631 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
633 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
635 * breakpoint.c (update_watchpoint): Move code to change
636 the enable state of breakpoint from here ...
637 (do_enable_breakpoint): ... to here.
639 2011-04-26 Andrew Gontarek <andrewg@cray.com>
641 * valprint.c (val_print_array_elements): Fixed poor performance
642 of printing very large arrays with repeat_count_threshold set
643 to unlimited. New comment.
645 2011-04-29 Tom Tromey <tromey@redhat.com>
647 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
648 (mi_parse): Likewise.
649 * breakpoint.c (break_range_command): Use sizeof char*, not
651 (create_breakpoint): Likewise.
652 (parse_breakpoint_sals): Likewise.
654 2011-04-29 Pedro Alves <pedro@codesourcery.com>
656 * linux-nat.c (linux_child_remove_fork_catchpoint)
657 (linux_child_remove_vfork_catchpoint)
658 (linux_child_remove_exec_catchpoint): New functions.
659 (linux_target_install_ops): Install them.
661 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
665 * varobj.c (install_default_visualizer): Do not install a
666 visualizer if the varobj is CPLUS_FAKE_CHILD.
667 (construct_visualizer): Likewise.
669 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
671 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
672 case insensitive comparison.
674 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
676 * infrun.c (proceed): Revert previous change.
677 (resume): Instead, handle the case of signal delivery while stepping
678 off a breakpoint location here, and only if software single-stepping
679 is used. Handle nested signals.
681 2011-04-28 Yao Qi <yao@codesourcery.com>
683 * arm-tdep.c (copy_unmodified): Rename to ...
684 (arm_copy_unmodified): .. this. New.
685 (copy_preload): Move common part to ...
686 (install_preload): .. this. New.
687 (arm_copy_preload): New.
688 (copy_preload_reg): Move common part to ...
689 (install_preload_reg): ... this. New.
690 (arm_copy_preload_reg): New.
691 (copy_b_bl_blx): Move common part to ...
692 (install_b_bl_blx): .. this. New.
693 (arm_copy_b_bl_blx): New.
694 (copy_bx_blx_reg): Move common part to ...
695 (install_bx_blx_reg): ... this. New.
696 (arm_copy_bx_blx_reg): New.
697 (copy_alu_reg): Move common part to ...
698 (install_alu_reg): ... this. New.
699 (arm_copy_alu_reg): New.
700 (copy_alu_shifted_reg): Move common part to ...
701 (install_alu_shifted_reg): ... this. New.
702 (copy_ldr_str_ldrb_strb): Move common part to ...
703 (install_ldr_str_ldrb_strb): ... this. New.
704 (arm_copy_ldr_str_ldrb_strb): New.
705 (copy_copro_load_store): Move some common part to ...
706 (install_copy_copro_load_store): ... this. New.
707 (arm_copy_copro_load_store): New.
709 (arm_copy_svc): Renamed from copy_svc.
710 (copy_undef): Delete.
711 (arm_copy_undef): Renamed from copy_undef.
712 (decode_ext_reg_ld_st): Delete.
713 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
714 (decode_svc_copro): Delete.
715 (arm_decode_svc_copro): Renamed from decode_svc_copro.
716 (copy_copro_load_store, copy_alu_imm): update callers.
717 (copy_extra_ld_st, copy_block_xfer): Likewise.
718 (decode_misc_memhint_neon, decode_unconditional): Likewise.
719 (decode_miscellaneous, decode_dp_misc): Likewise.
720 (decode_ld_st_word_ubyte, decode_media): Likewise.
721 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
722 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
723 (decode_unconditional, decode_miscellaneous): Likewise.
724 (decode_media, decode_b_bl_ldmstm): Likewise.
725 (arm_process_displaced_insn): Likewise..
726 (decode_misc_memhint_neon): Delete.
727 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
728 (decode_miscellaneous): Delete.
729 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
730 (decode_dp_misc): Delete.
731 (arm_decode_dp_misc): Renamed from decode_dp_misc.
732 (decode_ld_st_word_ubyte): Delete.
733 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
734 (decode_media): Delete.
735 (arm_decode_media): Renamed from decode_media.
736 (decode_b_bl_ldmstm): Delete.
737 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
738 (decode_ext_reg_ld_st): Delete.
739 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
740 (decode_unconditional): Delete.
741 (arm_decode_unconditional): Renamed from decode_unconditional.
743 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
745 Case insensitive lookups implementation.
746 * dwarf2read.c: Include ctype.h.
747 (struct mapped_index): New field version.
748 (mapped_index_string_hash): New parameter index_version. New comment
749 for it. Call tolower appropriately.
750 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
751 Choose the right index version for mapped_index_string_hash.
752 (dwarf2_read_index): Support also the index version 5. Initialize the
753 new struct mapped_index field version.
754 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
755 (find_slot): Explain the version needs. Pass INT_MAX for the new
757 (write_psymtabs_to_index): Produce version 5.
758 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
759 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
760 * psymtab.c (lookup_partial_symbol): Find the
761 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
763 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
765 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
766 (completion_list_add_name): New variable ncmp, initialize it, use it.
767 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
768 * utils.c (strcmp_iw): Support case_sensitive_off.
769 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
770 New function comment part. New variables saved_string1,
771 saved_string2 and case_pass. Add a proper second pass.
773 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
775 Replace re_comp/re_exec by regcomp/regexec.
776 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
777 (search_symbols_name_matches): Use them, use regexec.
778 (search_symbols): New variable retval_chain, adjust the use of
779 old_chain against it. Replace re_comp by regcomp. Use the new struct
780 search_symbols_data fields, use regexec instead of re_exec.
782 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
784 Format the code for the next patch.
785 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
786 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
787 New variables c1 and c2.
789 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
791 * infrun.c (proceed): Do not single-step into signal delivery
792 when stepping off a breakpoint location.
793 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
794 (insert_step_resume_breakpoint_at_caller): Likewise.
795 (insert_step_resume_breakpoint_at_sal): Likewise.
796 (insert_longjmp_resume_breakpoint): Likewise.
798 2011-04-27 Yao Qi <yao@codesourcery.com>
800 * common/linux-ptrace.h: Remove include <sys/wait.h>.
802 2011-04-27 Joel Brobecker <brobecker@adacore.com>
804 * procfs.c (procfs_pass_signals): Fix advance declaration.
806 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
808 * target.h (struct target_ops): Remove to_notice_signals;
810 (target_notice_signals): Remove.
811 (target_pass_signals): Add prototype.
812 * target.c (update_current_target): Remove to_notice_signals;
813 mention to_pass_signals.
814 (target_pass_signals): New function.
815 (debug_to_notice_signals): Remove.
816 (setup_target_debug): Do not install debug_to_notice_signals.
818 * infrun.c (signal_pass): New global.
819 (resume): Call target_pass_signals.
820 (handle_inferior_event): Report all signals while stepping over
821 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
822 are re-inserted when stepping over a signal handler.
823 (signal_cache_update): New function.
824 (signal_stop_update): Call it.
825 (signal_print_update): Likewise.
826 (signal_pass_update): Likewise.
827 (handle_command): Call signal_cache_update and target_pass_signals
828 instead of target_notice_signals.
829 (_initialize_infrun): Initialize signal_pass.
831 * linux-nat.c (pass_mask): New global.
832 (linux_nat_pass_signals): New function.
833 (linux_nat_create_inferior): Report all signals initially.
834 (linux_nat_attach): Likewise.
835 (linux_nat_resume): Use pass_mask to decide whether to directly
836 handle an inferior signal.
837 (linux_nat_wait_1): Likewise.
838 (linux_nat_add_target): Install to_pass_signals callback.
840 * nto-procfs.c (notice_signals): Remove.
841 (procfs_resume): Do not call notice_signals.
842 (procfs_notice_signals): Remove.
843 (procfs_pass_signals): New function.
844 (init_procfs_ops): Install to_pass_signals callback instead of
845 to_notice_signals callback.
846 (_initialize_procfs): Report all signals initially.
848 * procfs.c (procfs_notice_signals): Remove.
849 (procfs_pass_signals): New function.
850 (procfs_target): Install to_pass_signals callback instead of
851 to_notice_signals callback.
852 (register_gdb_signals): Remove.
853 (procfs_debug_inferior): Report all signals initially.
854 (procfs_init_inferior): Remove redundant register_gdb_signals call.
856 * remote.c (remote_pass_signals): Add numsigs and pass_signals
857 parameters; use them instead of calling signal_..._state routines.
858 (remote_notice_signals): Remove.
859 (remote_start_remote): Report all signals initially.
860 (remote_resume): Do not call remote_pass_signals.
861 (_initialize_remote): Install to_pass_signals callback instead of
862 to_notice_signals callback.
864 2011-04-27 Pedro Alves <pedro@codesourcery.com>
866 * breakpoint.c (user_settable_breakpoint): Delete.
867 (user_breakpoint_p): Remove check on user_settable_breakpoint.
868 (delete_command): Check user_breakpoint_p instead of looking at
869 the breakpoint's type.
870 (disable_command): Ditto.
871 (enable_command): Ditto.
872 (delete_trace_command): Use user_breakpoint_p instead of looking
873 at the breakpoint number directly. When checking if there are
874 user visible tracepoints, in order to know whether to ask the user
875 for confirmation, check whether the breakpoint is actually a
878 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
880 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
883 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
885 MI breakpoint notifications.
887 * annotate.c (breakpoint_changed): Adjust parameter type.
888 * breakpoint.c (set_breakpoint_condition): Adjust to change
889 in breakpoint_modified type.
890 (breakpoint_set_commands): Likewise.
891 (do_map_commands_command): Likewise.
892 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
893 changed after bumping hit count.
894 (bpstat_stop_status): Likewise.
895 (print_one_breakpoint_location): Don't wrap in tuple here.
896 (print_one_breakpoint): Always print individual locations.
897 For locations, use unnamed tuple.
898 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
900 (create_catchpoint, create_syscall_event_catchpoint): Call
901 breakpoint_created obsever.
902 (mention): Don't call breakpoint_created observer.
903 (create_breakpoint_sal): Call breakpoint_created observer.
904 (create_breakpoint, watch_command_1): Likewise.
905 (create_ada_exception_breakpoint): Likewise.
906 (delete_breakpoint): Call breakpoint_deleted breakpoint.
907 (locations_are_equal): New.
908 (update_breakpoint_locations): If locations were changed, notify.
909 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
910 Call breakpoint_modified observer.
912 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
913 (mi_cmd_break_insert): Don't set observers for modify and delete.
914 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
915 (mi_breakpoint_created, mi_breakpoint_deleted)
916 (mi_breakpoint_modified): New.
917 (mi_interpreter_init): Hook the above.
918 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
919 while -break-* commands are executing.
920 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
921 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
923 (mi_ui_out_impl): Hook in mi_redirect.
924 (mi_field_skip): True to the name, skip the field, don't output
925 a field with an empty value.
927 * python/py-breakpoint.c (gdbpy_breakpoint_created)
928 (gdbpy_breakpoint_deleted): Adjust.
929 * tui/tui-hooks.c (tui_event_create_breakpoint)
930 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
932 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
934 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
935 (procfs_remove_hw_watchpoint): Likewise.
937 2011-04-26 Michael Walle <michael@walle.cc>
939 * remote.c (remote_start_remote): Ack packet after sending the
942 2011-04-26 Yao Qi <yao@codesourcery.com>
944 * linux-nat.c: Move common macros to ...
945 Include linux-ptrace.h.
946 * common/linux-ptrace.h: ... here. New.
948 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
950 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
951 !objfile_has_partial_symbols. New comment.
952 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
953 SYM_READ_PSYMBOLS is not present. Extend the comment.
954 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
956 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
958 * defs.h (ENUM_BITFIELD): Remove.
960 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
961 Eli Zaretskii <eliz@gnu.org>
963 * NEWS: Document the new gdbserver --once option.
965 2011-04-21 Jie Zhang <jzhang918@gmail.com>
967 * MAINTAINERS: Update my email address.
969 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
971 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
972 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
973 function call if __STDC_ISO_10646__ macro is defined.
974 (intermediate_encoding): New prototype.
975 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
976 to generate compile time error for unsupported gdb_wchar_t size.
977 (ENDIAN_SUFFIX): New macro.
978 (intermediate_encoding): New function.
980 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
982 * ada-lang.c (struct add_partial_datum): Update the comment for
983 expand_partial_symbol_name.
984 (ada_add_partial_symbol_completions): Rename to ...
985 (ada_expand_partial_symbol_name): ... here, change return type, update
986 function comment, call symbol_completion_match instead of
987 symbol_completion_add.
988 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
989 and ada_expand_partial_symbol_name.
990 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
992 (dw2_map_symbol_names): Remove.
993 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
994 * psymtab.c (map_symbol_names_psymtab): Remove.
995 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
996 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
998 (psym_functions): Unlist map_symbol_names_psymtab.
999 (map_partial_symbol_names): Rename to ...
1000 (expand_partial_symbol_names): ... here, change the FUN type, call
1001 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1002 * psymtab.h (map_partial_symbol_names): Rename to ...
1003 (expand_partial_symbol_names): ... here, change the FUN type.
1004 * symfile.h (struct quick_symbol_functions): Update the description of
1005 expand_symtabs_matching. Remove map_symbol_names.
1006 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1007 (struct add_name_data): Update the comment for
1008 expand_partial_symbol_name.
1009 (add_partial_symbol_name): Rename to ...
1010 (expand_partial_symbol_name): ... here. Replace
1011 completion_list_add_name call by strncmp.
1012 (default_make_symbol_completion_list_break_on): Use now
1013 expand_partial_symbol_names and expand_partial_symbol_name.
1014 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1016 2011-04-20 Tom Tromey <tromey@redhat.com>
1018 * dwarf2read.c (save_gdb_index_command): Replace format
1019 documentation with a pointer to the manual.
1021 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1023 * regcache.c: Include remote.h.
1024 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1025 (regcache_dump): Handle regcache_dump_remote.
1026 (maintenance_print_remote_registers): New function.
1027 (_initialize_regcache): Install "maint print remote-registers"
1029 * remote.c (map_regcache_remote_table): New function, factored out
1031 (init_remote_state): ... here.
1032 (remote_register_number_and_offset): New.
1033 * remote.h (remote_register_number_and_offset): Declare.
1035 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1037 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1038 null_ptid, assume and allow a NULL address space, instead of
1039 asking the target for the ptid's address space.
1040 * infrun.c (ptid_is_pid): Remove assertion.
1042 2011-04-19 Tom Tromey <tromey@redhat.com>
1044 * windows-tdep.c (windows_xfer_shared_library):
1045 * windows-nat.c (get_module_name, windows_make_so):
1046 * v850-tdep.c (v850_handle_pushm):
1047 * utils.c (null_cleanup, gdb_realpath):
1048 * ui-out.c (get_next_header):
1049 * tracepoint.c (clear_traceframe_info):
1050 * symtab.c (lookup_symtab):
1051 * serial.h (struct serial_ops):
1052 * mipsread.c (read_alphacoff_dynamic_symtab):
1053 * infcmd.c (print_return_value):
1054 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1055 * f-exp.y (parse_number):
1056 * exceptions.c (catch_exceptions):
1057 * dummy-frame.c (dummy_frame_this_id):
1058 * defs.h (struct cleanup):
1059 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1060 * arm-tdep.c (arm_push_dummy_call):
1061 * amd64-tdep.h (amd64_collect_xsave):
1062 * amd64-tdep.c (amd64_collect_xsave):
1063 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1064 * README (typing): Remove duplicate words.
1065 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1066 * infrun.c (siginfo_value_read): Fix typo.
1067 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1068 * top.c (source_line_number): Add comma.
1070 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1072 * thread.c (any_live_thread_of_process): Prioritize threads
1073 that are not executing.
1074 * gdbthread.h (any_live_thread_of_process): Update comment
1075 as per above change.
1077 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1079 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1080 (scan_xcoff_symtab): Likewise.
1082 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1084 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1087 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1088 Pedro Alves <pedro@codesourcery.com>
1090 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1091 variables to simplify code and avoid == operator at end of
1092 line as this is against GNU coding standards.
1094 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1096 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1097 lm_name to name_lm to avoid conflict with lm_name function.
1099 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1101 ARI fixes: Use only lowercase function name for static functions.
1102 * nto-tdep.c (LM_ADDR): Rename to...
1103 (lm_addr): New function name.
1104 (nto_relocate_section_addresses): Adapt to change above.
1105 * solib-sunos.c (LM_ADDR): Rename to...
1106 (lm_addr): New function name.
1107 (LM_NEXT): Rename to...
1108 (lm_next): New function name.
1109 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1110 function name changes above.
1111 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1112 (lm_addr_from_link_map): New function name.
1113 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1114 (has_lm_dynamic_from_link_map): New function name.
1115 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1116 (lm_dynamic_from_link_map): New function name.
1117 (LM_ADDR_CHECK): Rename to...
1118 (lm_addr_check): New function name.
1119 (LM_NEXT): Rename to...
1120 (lm_next): New function name.
1121 (LM_PREV): Rename to...
1122 (lm_prev): New function name.
1123 (LM_NAME): Rename to...
1124 (lm_name): New function name.
1125 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1126 (ignore_first_link_map_entry): New function name.
1127 (svr4_keep_data_in_core): Adapt to function name changes above.
1128 (svr4_current_sos): Likewise.
1129 (enable_break): Likewise.
1130 (svr4_relocate_section_addresses): Likewise.
1132 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1135 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1136 sprintf. Simplify code and avoid loosing memory.
1137 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1138 (call0_frame_cache): Remove && operator from end of line.
1140 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1142 Fix libraries displacement if they change whether they were prelinked.
1143 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1144 does not match. Comment why.
1146 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 * corelow.c: Include wrapper.h.
1149 (core_open): Call now gdb_target_find_new_threads.
1150 * wrapper.c: Include target.h.
1151 (gdb_target_find_new_threads): New.
1152 * wrapper.h (gdb_target_find_new_threads): New declaration.
1154 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1157 even if !TARGET_HAS_EXECUTION.
1159 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1161 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1162 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1163 bfd_get_synthetic_symtab.
1164 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1165 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1166 parameter parent, remove the call to add_separate_debug_objfile.
1167 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1168 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1169 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1170 parent, new comment for it, call add_separate_debug_objfile for it.
1171 (symbol_file_add_separate): Pass objfile as the parameter parent,
1172 remove the call to add_separate_debug_objfile.
1173 (symbol_file_add_from_bfd): New parameter parent, pass it.
1174 (symbol_file_add): Pass NULL to the new parameter parent.
1175 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1177 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1179 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1182 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1184 Fix Python access to inlined frames.
1185 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1186 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1188 2011-04-15 Tom Tromey <tromey@redhat.com>
1190 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1192 2011-04-15 Gary Benson <gbenson@redhat.com>
1194 * MAINTAINERS: Add myself to write-after-approval section.
1196 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1198 * remote-sim.c (sim_command_completer): New function.
1199 (_initialize_remote_sim): Set completer to sim_command_completer.
1201 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1203 * breakpoint.c (print_exception_catchpoint): Rename to ...
1204 (print_it_exception_catchpoint): ... this.
1205 (gnu_v3_exception_catchpoint_ops): Update with new name
1206 for print_it_exception_catchpoint.
1208 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1210 * MAINTAINERS: Add myself for write after approval privileges.
1212 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1214 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1216 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1218 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1220 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1222 * breakpoint.c (save_breakpoints): Verify whether
1223 breakpoint_ops.print_recreate is defined before calling it.
1225 2011-04-11 Gary Benson <gbenson@redhat.com>
1227 Fix failure with --enable-maintainer-mode.
1228 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1230 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 * symtab.c (search_symbols): Reorder the KIND description in the
1234 function comment. Remove the unused 4th element of types, types2,
1235 types3 and types4. New gdb_assert on KIND.
1236 (symtab_symbol_info): Remove the unused 4th element of classnames.
1237 New gdb_assert on KIND.
1238 * symtab.h (enum search_domain): New warning in the enum comment.
1239 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1242 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1244 Fix crash of gdb save-index on a STABS file.
1245 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1248 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1250 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1251 * dwarf2read.c: Include ctype.h.
1252 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1254 (dwarf2_add_field): Fix new_field->accessibility by calling
1255 dwarf2_default_access_attribute. Restructure setting accessibility
1257 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1258 is_private and is_protected by calling
1259 dwarf2_default_access_attribute.
1261 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1263 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1264 to the initialization.
1266 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1268 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1271 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1273 Remove support for old Cygwin 1.5 versions.
1274 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1275 function on old Cygwin version.
1276 * windows-nat.c: Remove cygwin version check and always define
1277 __USEWIDE for Cygwin compilation.
1279 2011-04-07 Yao Qi <yao@codesourcery.com>
1281 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1283 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1284 (arm_copy_svc): Remove parameters INSN and TO.
1285 (decode_svc_copro): Update caller.
1286 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1287 from function pointer `copy_svc_os'.
1289 2011-04-07 Yao Qi <yao@codesourcery.com>
1291 * arm-tdep.c (cleanup_branch): Set a correct return address in
1292 LR for ARM and Thumb.
1294 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1297 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1298 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1299 in the function comment, a new note on values compatibility.
1300 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1301 * symtab.h (SYMBOL_HASH_NEXT): New.
1303 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1305 * ppc-linux-nat.c (check_condition): Add len output parameter.
1306 Set it based on the memory region referenced in the condition
1307 expression. Update all callers.
1309 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1311 Fix crash regression on systems featuring .gdb_index.
1312 * objfiles.c (free_objfile): Move the
1313 forget_cached_source_info_for_objfile call earlier. Comment it.
1314 Extend the comment for objfile_free_data.
1316 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1318 Fix regression of displaying the debug format.
1319 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1322 2011-04-04 Tom Tromey <tromey@redhat.com>
1324 * cli/cli-interp.c (struct captured_execute_command_args):
1326 (do_captured_execute_command): Remove.
1327 (safe_execute_command): Use TRY_CATCH.
1328 * cli/cli-script.c (struct wrapped_read_command_file_args):
1330 (wrapped_read_command_file): Remove.
1331 (script_from_file): Use TRY_CATCH.
1332 * exceptions.c (catch_exception): Remove.
1333 * exceptions.h (catch_exception): Remove.
1334 (deprecated_throw_reason): Update comment.
1335 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1336 argument to 'context'.
1337 (mi_execute_command): Use TRY_CATCH.
1338 * remote.c (struct start_remote_args): Remove.
1339 (remote_start_remote): Update; change arguments.
1340 (remote_open_1): Use TRY_CATCH.
1342 2011-04-04 Tom Tromey <tromey@redhat.com>
1344 * tracepoint.c (scope_info): Update.
1345 * symtab.c (decode_line_spec): Update.
1346 * python/python.c (gdbpy_decode_line): Update.
1347 * linespec.h (decode_line_1): Update.
1348 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1349 (decode_compound, find_method, symtab_from_filename)
1350 (decode_variable): Likewise.
1351 * cli/cli-cmds.c (edit_command): Update.
1352 (list_command): Update.
1353 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1355 (create_breakpoint): Update.
1356 (until_break_command): Update.
1357 (addr_string_to_sals): Update.
1358 (decode_line_spec_1): Update.
1360 2011-04-04 Tom Tromey <tromey@redhat.com>
1362 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1363 (do_captured_parse_breakpoint): Remove.
1364 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1365 Use TRY_CATCH directly.
1367 2011-04-04 Tom Tromey <tromey@redhat.com>
1369 * symtab.h (free_symtab): Remove.
1370 (forget_cached_source_info_for_objfile): Declare.
1371 * symmisc.c (free_symtab): Remove.
1372 * source.c (forget_cached_source_info_for_objfile): New function.
1373 (forget_cached_source_info): Use it.
1374 * objfiles.c (free_objfile): Simplify check before calling
1375 clear_current_source_symtab_and_line. Call
1376 forget_cached_source_info_for_objfile.
1378 2011-04-04 Tom Tromey <tromey@redhat.com>
1380 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1381 (new_symtab): Don't set `free_code' on symtab.
1382 (new_linetable): Properly handle size==0.
1383 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1384 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1386 * jv-lang.c (struct jv_per_objfile_data): New.
1387 (jv_per_objfile_free): Free the data.
1388 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1389 (get_java_class_symtab): Set the `dict' field on the
1390 jv_per_objfile_data.
1391 (free_class_block): Remove.
1392 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1395 2011-04-04 Tom Tromey <tromey@redhat.com>
1397 * symfile.c (reread_symbols): Update.
1398 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1400 * objfiles.c (allocate_objfile): Update.
1401 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1403 * cp-namespace.c (lookup_symbol_file): Don't call
1404 lookup_possible_namespace_symbol.
1405 (initialize_namespace_symtab, get_possible_namespace_block)
1406 (free_namespace_block, cp_check_possible_namespace_symbols)
1407 (check_possible_namespace_symbols_loop)
1408 (check_one_possible_namespace_symbol)
1409 (lookup_possible_namespace_symbol): Remove.
1410 (maintenance_cplus_namespace): Replace with notice.
1411 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1413 2011-04-04 Tom Tromey <tromey@redhat.com>
1415 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1416 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1417 * symmisc.c (free_symtab): Don't free debugformat.
1418 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1419 (record_debugformat, record_producer): Document.
1420 * buildsym.c (end_symtab): Don't save debugformat and producer
1422 (end_symtab): Don't free debugformat and producer fields.
1423 (record_debugformat): Don't call xstrdup.
1424 (record_producer): Likewise.
1426 2011-04-04 Tom Tromey <tromey@redhat.com>
1428 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1429 (source_line_charpos, source_charpos_line): Remove.
1431 2011-04-04 Tom Tromey <tromey@redhat.com>
1433 * symtab.h (domain_enum): Split in two...
1434 (enum search_domain): New.
1435 (search_symbols): Update.
1436 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1437 redundant declarations.
1438 (search_symbols): Change 'kind' argument to search_domain.
1440 (print_symbol_info): Likewise.
1441 (symtab_symbol_info): Likewise.
1442 * symfile.h (struct quick_symbol_functions)
1443 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1444 <expand_symtabs_matching>: Likewise.
1445 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1446 (expand_symtabs_matching_via_partial): Update.
1447 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1448 (dw2_expand_symtabs_for_function): Update.
1449 * block.h: Moved anonymous enum...
1450 * defs.h (enum block_enum): ... here. Now named.
1452 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1454 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1455 * version.in: Bump version to 7.3.50.20110403-cvs.
1457 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1459 * NEWS: Create a new section for the next release branch.
1460 Rename the section of the current branch, now that it has
1463 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1465 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1466 for "fpscr" in target description.
1468 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1470 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1471 initialize it. Delay HASH initialization. Strip the part after open
1472 parenthesis for languages with qualifiers. Call do_cleanups.
1474 2011-04-01 Tom Tromey <tromey@redhat.com>
1476 * utils.c (report_command_stats): Don't print `-' for negative
1479 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1481 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1482 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1485 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1487 * breakpoint.h (bpdisp_text): Add declaration.
1488 * breakpoint.c (bpdisp_text): Make non-static.
1489 * ada-lang.c: #include "mi/mi-common.h".
1490 (print_it_exception): Rewrite to improve GDB/MI output.
1492 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1494 * arm-tdep.h (struct address_space): Add forward declaration.
1496 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1498 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1499 * arm-tdep.c (arm_override_mode): New global.
1500 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1501 execution mode heuristics.
1502 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1503 second single-step breakpoint if needed, using
1504 arm_insert_single_step_breakpoint.
1505 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1506 ARM execution mode, do not call thumb_get_next_pc_raw.
1507 (arm_get_next_pc): Encode execution mode in return value. Call
1508 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1509 (arm_insert_single_step_breakpoint): New function.
1510 (arm_software_single_step): Call it.
1511 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1512 argument to return execution mode of sigreturn target.
1513 (arm_linux_syscall_next_pc): Use it.
1514 (arm_linux_copy_svc): Update call.
1515 (arm_linux_software_single_step): Call
1516 arm_insert_single_step_breakpoint.
1518 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1520 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1523 2011-03-31 Tom Tromey <tromey@redhat.com>
1525 * varobj.c (update_dynamic_varobj_children): Properly handle
1526 errors from iterator.
1528 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1531 struct linkage name twice.
1533 2011-03-31 Tom Tromey <tromey@redhat.com>
1535 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1536 missing ">" to message.
1538 2011-03-31 Tom Tromey <tromey@redhat.com>
1540 * varobj.c (instantiate_pretty_printer): Remove duplicate
1543 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1545 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1546 if neither saved value nor register available (e.g. signal frame).
1548 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1550 * macroexp.c (expand): Avoid uninitialized variable
1553 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1555 * breakpoint.c (break_range_command): Fix typo in comment.
1557 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1558 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1560 Implement support for PowerPC BookE ranged breakpoints.
1561 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1562 * breakpoint.h (struct bp_target_info) <length>: New member
1564 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1565 instead of struct breakpoint as argument, and also add ASPACE
1566 and BP_ADDR arguments. Update all callers.
1567 (struct breakpoint_ops) <print_one_detail>: New method.
1568 (struct breakpoint) <addr_string_range_end>: New member variable.
1569 * breakpoint.c (breakpoint_location_address_match): Add function
1571 (insert_bp_location): Set bl->target_info.length.
1572 (breakpoint_here_p): Call breakpoint_location_address_match.
1573 (moribund_breakpoint_here_p): Likewise.
1574 (regular_breakpoint_inserted_here_p): Likewise.
1575 (breakpoint_thread_match): Likewise.
1576 (bpstat_stop_status): Likewise.
1577 (bpstat_check_location): Move call to
1578 breakpoint_ops.breakpoint_hit to the top.
1579 (print_one_breakpoint_location): Call
1580 breakpoint_ops.print_one_detail if available.
1581 (breakpoint_address_match_range): New function.
1582 (breakpoint_location_address_match): Likewise.
1583 (breakpoint_locations_match): Compare the length field of the
1585 (hw_breakpoint_used_count): Count resources used by all locations
1586 in a breakpoint, and use breakpoint_ops.resources_needed if
1588 (breakpoint_hit_ranged_breakpoint): New function.
1589 (resources_needed_ranged_breakpoint): Likewise.
1590 (print_it_ranged_breakpoint): Likewise.
1591 (print_one_ranged_breakpoint): Likewise.
1592 (print_one_detail_ranged_breakpoint): Likewise.
1593 (print_mention_ranged_breakpoint): Likewise.
1594 (print_recreate_ranged_breakpoint): Likewise.
1595 (ranged_breakpoint_ops): New structure.
1596 (find_breakpoint_range_end): New function.
1597 (break_range_command): Likewise.
1598 (delete_breakpoint): Free addr_string_range_end.
1599 (update_breakpoint_locations): Add SALS_END argument. Update
1600 all callers. Calculate breakpoint length if a non-zero SALS_END
1601 is given. Call breakpoint_locations_match instead of
1602 breakpoint_address_match.
1603 (reset_breakpoint): Find SaL of the end of the range if B is a
1605 (_initialize_breakpoint): Register break-range command.
1606 * defs.h (print_core_address): Add function prototype.
1607 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1609 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1610 (ppc_linux_remove_hw_breakpoint): Likewise.
1611 (_initialize_ppc_linux_nat): Initialize
1612 to_ranged_break_num_registers.
1613 * target.c (update_current_target): Add comment about
1614 to_ranged_break_num_registers.
1615 (target_ranged_break_num_registers): New function.
1616 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1618 (target_ranged_break_num_registers): Add function prototype.
1619 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1620 * utils.c (print_core_address): ... here.
1622 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1624 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1625 variable compiler warning.
1627 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1629 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1631 (re_set_breakpoint): ... to here ...
1632 (addr_string_to_sals): ... and here.
1634 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1636 * Makefile.in (SFILES): Add missing C sources.
1637 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1638 Add missing headers.
1640 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1642 * .gitignore: New file.
1644 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1646 * NEWS: Mention new cfi device simulation.
1648 2011-03-29 Tom Tromey <tromey@redhat.com>
1650 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1651 otherwise anonymous types.
1652 (dwarf2_name): Likewise.
1653 * valops.c (value_struct_elt_for_reference): Refine artificial
1654 type logic. Call error if j==-1.
1656 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1658 Fix false GCC warning.
1659 * infcall.c (find_function_addr): Initialize funaddr.
1661 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1663 Fix mingw compilation with --enable-targets=all.
1664 * remote-mips.c (gdb_usleep.h): Include header.
1665 (mips_enter_debug): Use gdb_usleep instead of sleep.
1667 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1669 Support resolution of STT_GNU_IFUNC via breakpoints.
1670 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1671 bp_gnu_ifunc_resolver_return.
1672 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1673 the loop. Support bp_gnu_ifunc_resolver and
1674 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1675 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1677 (bptype_string, print_one_breakpoint_location): Support
1678 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1679 (user_settable_breakpoint): Return true also for
1680 bp_gnu_ifunc_resolver.
1681 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1682 bp_gnu_ifunc_resolver_return.
1683 (set_breakpoint_location_function): New parameter explicit_loc,
1684 describe it. Call find_pc_partial_function_gnu_ifunc with new
1685 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1686 EXPLICIT_LOC is not set.
1687 (set_raw_breakpoint): Set EXPLICIT_LOC for
1688 set_breakpoint_location_function.
1689 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1690 set_breakpoint_location_function.
1691 (mention): Support bp_gnu_ifunc_resolver and
1692 bp_gnu_ifunc_resolver_return.
1693 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1694 set_breakpoint_location_function.
1695 (update_breakpoint_locations): Remove static.
1696 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1697 bp_gnu_ifunc_resolver_return.
1698 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1699 bp_gnu_ifunc_resolver_return.
1700 (update_breakpoint_locations): New declaration.
1701 * elfread.c: Include gdbthread.h and regcache.h.
1702 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1704 (elf_gnu_ifunc_fns): Install them.
1705 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1706 (stub_gnu_ifunc_resolver_return_stop): New functions.
1707 (stub_gnu_ifunc_fns): Install them.
1708 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1709 and gnu_ifunc_resolver_return_stop.
1710 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1712 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1714 STT_GNU_IFUNC reader implementation.
1715 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1716 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1717 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1718 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1719 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1720 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1721 (elf_gnu_ifunc_resolve_addr): New.
1722 (elf_symfile_read): Call elf_rel_plt_read.
1723 (elf_gnu_ifunc_fns): New.
1724 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1725 Install elf_gnu_ifunc_fns.
1726 * infcall.c (find_function_return_type): New function.
1727 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1728 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1729 (stub_gnu_ifunc_resolve_name): New functions.
1730 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1731 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1732 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1734 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1736 Code cleanup for later STT_GNU_IFUNC support.
1737 * infcall.c (find_function_addr): Remove variable code, use explicit
1738 dereferences for it. Move VALUE_TYPE initialization later.
1740 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1742 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1743 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1744 (clear_pc_function_cache): Clear it.
1745 (find_pc_partial_function): Rename to ...
1746 (find_pc_partial_function_gnu_ifunc): ... this function. New
1747 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1748 (find_pc_partial_function): New wrapper for this function.
1749 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1751 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1753 GDB internal type support for STT_GNU_IFUNC.
1754 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1755 (elf_symtab_read): Set mst_text_gnu_ifunc for
1756 BSF_GNU_INDIRECT_FUNCTION.
1757 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1758 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1759 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1760 nodebug_got_plt_symbol.
1761 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1762 (TYPE_GNU_IFUNC): New.
1763 (struct main_type): New field flag_gnu_ifunc.
1764 (struct builtin_type): New field builtin_func_func.
1765 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1766 nodebug_got_plt_symbol.
1767 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1768 (in_gnu_ifunc_stub): New.
1769 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1771 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1772 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1773 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1775 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1776 * symtab.c (search_symbols): Likewise.
1777 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1778 and mst_slot_got_plt.
1779 (in_gnu_ifunc_stub): New declaration.
1781 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1783 Support a ring of related breakpoints.
1784 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1785 other functions, add gdb_assert.
1786 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1787 watchpoint_del_at_next_stop.
1788 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1789 (bpstat_stop_status): Handle ring in related_breakpoint.
1790 (set_raw_breakpoint_without_location): Initialize ring in
1792 (delete_breakpoint): Handle ring in related_breakpoint, use
1793 watchpoint_del_at_next_stop.
1794 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1796 2011-03-28 Tom Tromey <tromey@redhat.com>
1799 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1800 with `language_minimal'.
1802 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1804 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1805 instead of checking for STT_ARM_TFUNC symbol type.
1807 2011-03-25 Tom Tromey <tromey@redhat.com>
1809 * linespec.c (symbol_found): Restore line-based result for
1810 non-LOC_LABEL symbols.
1812 2011-03-25 Kai Tietz <ktietz@redhat.com>
1814 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1815 instead of strcmp for comparison.
1816 (tui_source_is_displayed): Likewise.
1817 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1819 2011-03-24 Mark Wielaard <mjw@redhat.com>
1821 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1823 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1824 (find_partial_die_in_comp_unit): Likewise in comment.
1825 (read_attribute_value): Likewise.
1826 (lookup_die_type): Likewise.
1827 (dwarf_form_name): Likewise.
1828 (dump_die_shallow): Likewise.
1829 (follow_die_ref_or_sig): Likewise.
1831 2011-03-24 Tom Tromey <tromey@redhat.com>
1833 PR breakpoints/11816:
1834 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1835 (decode_compound): Update.
1836 (find_function_symbol): New function.
1837 (decode_dollar): Update.
1838 (decode_label): Add 'function_symbol' parameter. Handle
1839 function-relative labels.
1840 (decode_variable): Update.
1841 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1842 not its line. Set `special_display' and canonical name for
1845 2011-03-24 Tom Tromey <tromey@redhat.com>
1847 * linespec.h (struct linespec_result) <special_display>: New
1849 * breakpoint.h (struct breakpoint) <display_canonical>: New
1851 * breakpoint.c (print_breakpoint_location): Respect
1853 (create_breakpoint_sal): Add 'display_canonical' parameter.
1854 (create_breakpoints_sal): Update.
1855 (create_breakpoint): Update.
1857 2011-03-24 Tom Tromey <tromey@redhat.com>
1859 * symtab.c (decode_line_spec): Update.
1860 * linespec.c (build_canonical_line_spec): Change type of
1862 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1863 (find_method, decode_all_digits, decode_dollar, decode_label)
1864 (symbol_found): Likewise.
1865 (init_linespec_result): New function.
1866 * breakpoint.c (struct captured_parse_breakpoint_args)
1867 <canonical_p>: New field, replaces addr_string_p.
1868 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1870 (parse_breakpoint_sals): Likewise.
1871 (do_captured_parse_breakpoint): Update.
1872 (create_breakpoint): Use struct linespec_result.
1873 (until_break_command): Update.
1874 (breakpoint_re_set_one): Update.
1875 (decode_line_spec_1): Update.
1876 * linespec.h (struct linespec_result): New.
1877 (init_linespec_result): Declare.
1879 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1881 * regcache.c (regcache_raw_read): If the target didn't supply a
1882 given raw register, mark it as unavailable.
1884 2011-03-23 Kai Tietz <ktietz@redhat.com>
1886 * breakpoint.c (clear_command): Use filename_cmp
1887 instead of strcmp for comparison.
1888 * buildsym.c (watch_main_source_file_lossage): Likewise.
1889 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1890 checking just for slash.
1891 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1892 strrchr and filename_cmp instead of strcmp for filenames.
1893 (add_old_header_file): Use filename_cmp
1894 instead of strcmp for comparison.
1895 * exec.c (exec_set_section_address): Likewise.
1896 * macrotab.c (macro_lookup_inclusion): Likewise.
1897 (macro_lookup_inclusion): Likewise.
1898 * elfread.c (_initialize_elfread): Likewise.
1899 (elfstab_offset_sections): Likewise.
1900 (elfstab_offset_sections): Use lbasename instead of
1902 * mdebugread.c (parse_partial_symbols): Likewise.
1903 (arse_partial_symbols): Use filename_(n)cmp instead of
1904 str(n)cmp for comparison.
1905 * minsyms.c (lookup_minimal_symbol): Likewise.
1906 * psymtab.c (read_psymtabs_with_filename): Likewise.
1907 * solib.c (solib_read_symbols): Likewise.
1908 (reload_shared_libraries_1): Likewise.
1909 * symmisc.c (maintenance_print_symbols): Likewise.
1910 * symfile.c (separate_debug_file_exists): Likewise.
1911 (reread_symbols): Likewise.
1912 (find_separate_debug_file_by_debuglink): Likewise.
1913 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1914 * source.c (add_path): Likewise.
1915 * symtab.c (filename_seen): Likewise.
1916 (file_matches): Likewise.
1917 (print_symbol_info): Likewise.
1918 (maybe_add_partial_symtab_filename): Likewise.
1919 (make_source_files_completion_list): Likewise.
1920 * xml-syscall.c (init_sysinfo): Likewise.
1921 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1922 IS_DIR_SEPARATOR for checking for trailing path separator.
1924 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1926 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1927 label abort_expression.
1928 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1929 DWARF_VALUE_OPTIMIZED_OUT.
1931 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1935 to linkage_name. Invert its value. Update the function comment.
1936 (c_type_print_varspec_suffix): Invert it at the caller.
1937 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1939 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1941 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1942 errors when reading the `stop_pc'.
1943 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1946 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1948 * NEWS: Document gdb.Write stream keyword.
1950 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1954 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1955 (dwarf2_add_field): Fix new_field->accessibility for
1956 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1958 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1962 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1963 other error classes. Do not print stack trace.
1965 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1967 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1968 (dwarf2_add_field): Fix new_field->accessibility for
1969 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1971 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1973 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1974 encountering a load via a non-SP register.
1976 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1978 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1979 field in returned unwinder.
1981 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1985 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1987 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1990 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1992 * frame.c (frame_unwind_register): Throw an error if unwinding the
1994 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1995 an unwind stop reason.
1996 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1997 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1998 UNWIND_UNAVAILABLE>: New.
1999 * inline-frame.c (inline_frame_unwind): Install
2000 default_frame_unwind_stop_reason.
2001 * frame-unwind.c: Include "exceptions.h".
2002 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2003 (default_frame_unwind_stop_reason): New.
2004 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2005 (default_frame_unwind_stop_reason): Declare.
2006 (struct frame_unwind) <stop_reason>: New function pointer.
2008 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2009 * dwarf2-frame.c: Include exceptions.h.
2010 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2011 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2012 computing the CFA. If such an error was thrown, set
2013 unavailable_retaddr.
2014 (dwarf2_frame_unwind_stop_reason): New.
2015 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2017 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2018 (dwarf2_signal_frame_unwind): Ditto.
2020 * amd64-tdep.c: Include "exceptions.h".
2021 (struct amd64_frame_cache): New field "base_p".
2022 (amd64_init_frame_cache): Clear it.
2023 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2024 Avoid reading registers with functions that throw if the register
2025 is not necessary to compute the frame base.
2026 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2027 swallowing NOT_AVAILABLE_ERROR.
2028 (amd64_frame_unwind_stop_reason): New.
2029 (amd64_frame_this_id): Don't build a frame id if the frame base
2031 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2032 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2033 base_p if the frame base was computable.
2034 (amd64_sigtramp_frame_unwind_stop_reason): New.
2035 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2036 frame base was unavailable.
2037 (amd64_sigtramp_frame_unwind): Install
2038 amd64_sigtramp_frame_unwind_stop_reason.
2039 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2040 base_p if the frame base was computable.
2041 (amd64_epilogue_frame_unwind_stop_reason): New.
2042 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2043 frame base was unavailable.
2044 (amd64_epilogue_frame_unwind): Install
2045 amd64_epilogue_frame_unwind_stop_reason.
2046 * i386-tdep.c: Include "exceptions.h".
2047 (struct i386_frame_cache): New field "base_p".
2048 (i386_init_frame_cache): Clear it.
2049 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2050 Avoid reading registers with functions that throw if the register
2051 is not necessary to compute the frame base.
2052 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2053 swallowing NOT_AVAILABLE_ERROR.
2054 (i386_frame_unwind_stop_reason): New.
2055 (i386_frame_this_id): Don't build a frame id if the frame base was
2057 (i386_frame_prev_register): Handle unavailable SP.
2058 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2059 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2060 base_p if the frame base was computable.
2061 (i386_epilogue_frame_unwind_stop_reason): New.
2062 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2063 base was unavailable.
2064 (i386_epilogue_frame_unwind): Install
2065 i386_epilogue_frame_unwind_stop_reason.
2066 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2067 base_p if the frame base was computable.
2068 (i386_sigtramp_frame_unwind_stop_reason): New.
2069 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2070 base was unavailable.
2071 (i386_sigtramp_frame_unwind): Install
2072 i386_sigtramp_frame_unwind_stop_reason.
2073 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2074 type's size, not the register's.
2075 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2077 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2078 default_frame_unwind_stop_reason.
2079 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2080 (alpha_heuristic_frame_unwind): Ditto.
2081 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2082 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2083 * avr-tdep.c (avr_frame_unwind): Ditto.
2084 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2086 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2087 * frv-tdep.c (frv_frame_unwind): Ditto.
2088 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2089 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2090 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2091 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2092 (hppa_stub_frame_unwind): Ditto.
2093 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2094 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2095 (ia64_libunwind_frame_unwind)
2096 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2097 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2098 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2099 * m32c-tdep.c (m32c_unwind): Ditto.
2100 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2101 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2102 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2103 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2104 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2105 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2106 * mep-tdep.c (mep_frame_unwind): Ditto.
2107 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2108 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2109 (mips_stub_frame_unwind): Ditto.
2110 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2111 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2112 * mt-tdep.c (mt_frame_unwind): Ditto.
2113 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2114 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2115 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2116 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2117 (s390_sigtramp_frame_unwind): Ditto.
2118 * score-tdep.c (score_prologue_unwind): Ditto.
2119 * sh-tdep.c (sh_frame_unwind): Ditto.
2120 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2121 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2122 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2123 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2124 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2125 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2126 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2127 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2128 (sparc64obsd_trapframe_unwind): Ditto.
2129 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2130 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2131 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2132 * v850-tdep.c (v850_frame_unwind): Ditto.
2133 * vax-tdep.c (vax_frame_unwind): Ditto.
2134 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2135 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2136 * xtensa-tdep.c (xtensa_unwind): Ditto.
2138 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2140 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2141 there's always a frame. Use get_frame_pc_if_available instead of
2142 get_frame_pc, and if there's no PC available, don't look up a
2145 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2147 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2150 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2152 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2155 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2157 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2158 * frame.c (frame_unwind_caller_pc_if_available): New.
2159 * stack.c (frame_info): Handle unavailable PC.
2161 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2163 * frame.c (frame_unwind_pc): Rename to ...
2164 (frame_unwind_pc_if_available): ... this. New `pc' output
2165 parameter. Change return type to int. Gracefully handle
2166 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2167 happened, or 1 otherwise.
2168 (frame_unwind_pc): Reimplement on top of
2169 frame_unwind_pc_if_available.
2170 (get_frame_func): Rename to ...
2171 (get_frame_func_if_available): New `pc' output parameter. Change
2172 return type to int. Gracefully handle the PC not being available.
2173 (get_frame_func): Reimplement on top of
2174 get_frame_func_if_available.
2175 (select_frame): Handle the PC being unavailable.
2176 (get_prev_frame): Handle the PC being unavailable.
2177 (get_frame_pc_if_available): New.
2178 (get_frame_address_in_block_if_available): New.
2179 (find_frame_sal): Handle the frame PC not being available.
2180 * frame.h (get_frame_pc_if_available): Declare.
2181 (get_frame_address_in_block_if_available): Declare.
2182 (get_frame_func_if_available): Declare.
2183 * stack.c (print_frame_info): Handle the PC being unavailable.
2184 (find_frame_funname): Ditto.
2185 (print_frame): Handle the PC being unavailable.
2186 (get_frame_language): Ditto.
2187 * blockframe.c (get_frame_block): Ditto.
2188 * macroscope.c (default_macro_scope): Ditto.
2189 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2191 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2193 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2194 NOT_AVAILABLE_ERROR when evaluating the location expression.
2196 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2198 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2199 returning that the register piece is unavailable/optimized out.
2200 (write_pieced_value): Handle get_frame_register_bytes returning
2201 that the register piece is unavailable/optimized out when doing a
2202 read-modify write of a bitfield.
2203 * findvar.c (value_from_register): Handle get_frame_register_bytes
2204 returning that the register piece is unavailable/optimized out.
2205 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2206 and `unavailablep'. Throw error on bad debug info. Use
2207 frame_register instead of frame_register_read, to fill in the new
2209 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2211 * valops.c: (value_assign): Adjust, and handle
2212 get_frame_register_bytes failing.
2213 * spu-tdep.c: Include exceptions.h.
2214 (spu_software_single_step): Adjust, and handle
2215 get_frame_register_bytes failing.
2216 (spu_get_longjmp_target): Ditto.
2217 * gdbarch.sh (register_to_value): Change to return int. New
2218 parameters `optimizedp' and `unavailablep'.
2219 * gdbarch.h, gdbarch.c: Regenerate.
2220 * i386-tdep.c (i386_register_to_value): Adjust to new
2221 gdbarch_register_to_value interface.
2222 * i387-tdep.c (i387_register_to_value): Ditto.
2223 * i387-tdep.h (i387_register_to_value): Ditto.
2224 * alpha-tdep.c (alpha_register_to_value): Ditto.
2225 * ia64-tdep.c (ia64_register_to_value): Ditto.
2226 * m68k-tdep.c (m68k_register_to_value): Ditto.
2227 * mips-tdep.c (mips_register_to_value): Ditto.
2228 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2230 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2232 * findvar.c (value_of_register): Mark the value as unavailable, if
2233 the register is unavailable.
2234 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2235 (frame_register): New `unavailablep' parameter.
2236 (frame_register_read): Update comment.
2237 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2238 Set it if the register is unavailable. If the register is
2239 unavailable, clear the output buffer.
2240 (frame_register): New `unavailablep' parameter. Pass it down.
2241 (frame_unwind_register): Adjust.
2242 (put_frame_register): Adjust.
2243 (frame_register_read): Adjust. Also return false if the register
2245 (frame_register_unwind_location): Adjust.
2246 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2247 is unavailable, mark the value accordingly.
2248 * stack.c (frame_info): Handle unavailable registers.
2250 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2252 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2253 simplify, using regcache_cooked_read.
2255 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2257 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2258 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2259 (regcache_raw_read_unsigned, regcache_raw_read_part)
2260 (regcache_cooked_read, regcache_cooked_read_signed)
2261 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2262 (regcache_cooked_read_ftype): Change return to enum
2264 * regcache.c: Include exceptions.h
2265 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2266 (do_cooked_read): Change return to enum register_status. Always
2267 forward to regcache_cooked_read.
2268 (regcache_raw_read): Change return to enum register_status. If
2269 the register is not REG_VALID, memset the buffer. Return the
2271 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2272 return the register's status.
2273 (regcache_raw_read_unsigned): Ditto.
2274 (regcache_cooked_read): Change return to enum register_status.
2275 Assert that with read-only regcaches, the register's status must
2276 be known. If the regcache is read-only, and the register is not
2277 REG_VALID, memset the buffer. Return the register's status.
2278 (regcache_cooked_read_signed): Change return to enum
2279 register_status. Handle non-REG_VALID registers and return the
2281 (regcache_cooked_read_unsigned): Change return to enum
2282 register_status. Handle non-REG_VALID registers and return the
2284 (regcache_xfer_part, regcache_raw_read_part)
2285 (regcache_cooked_read_part): Change return to enum
2286 register_status. Return the register's status.
2287 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2289 (regcache_dump): Handle unavailable cooked registers.
2290 * frame.c (do_frame_register_read): Adjust interface to match
2291 regcache_cooked_read_ftype.
2292 * gdbarch.sh (pseudo_register_read): Change return to enum
2294 * gdbarch.h, gdbarch.c: Regenerate.
2296 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2298 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2299 register_status. If reading a raw register indicates the raw
2300 register is not valid, return the raw register's status,
2301 otherwise, return REG_VALID.
2302 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2303 register_status. Handle non-REG_VALID raw registers and return
2304 the register's status.
2305 * arm-tdep.c (arm_neon_quad_read)
2306 (arm_pseudo_read): Change return to enum register_status. Handle
2307 non-REG_VALID raw registers and return the register's status.
2308 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2309 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2310 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2311 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2312 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2314 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2315 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2316 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2317 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2318 (m32c_pseudo_register_read): Change return to enum
2319 register_status. Adjust.
2320 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2321 enum register_status. Return the register's status.
2322 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2323 register_status. Return the register's status.
2324 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2325 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2326 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2327 * rs6000-tdep.c (move_ev_register_func): New typedef.
2328 (e500_move_ev_register): Use it. Change return to enum
2329 register_status. Return the register's status.
2330 (do_regcache_raw_read): New function.
2331 (do_regcache_raw_write): New function.
2332 (e500_pseudo_register_read): Change return to enum
2333 register_status. Return the register's status. Use
2334 do_regcache_raw_read.
2335 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2336 (dfp_pseudo_register_read): Change return to enum register_status.
2337 Return the register's status.
2338 (vsx_pseudo_register_read): Ditto.
2339 (efpr_pseudo_register_read): Ditto.
2340 (rs6000_pseudo_register_read): Ditto.
2341 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2342 register_status. Return the register's status.
2343 * sh64-tdep.c (pseudo_register_read_portions): New function.
2344 (sh64_pseudo_register_read): Change return to enum
2345 register_status. Use pseudo_register_read_portions. Return the
2347 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2348 register_status. Return the register's status.
2349 * sh-tdep.c (pseudo_register_read_portions): New function.
2350 (sh_pseudo_register_read): Change return to enum register_status.
2351 Use pseudo_register_read_portions. Return the register's status.
2352 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2353 enum register_status. Return the register's status.
2354 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2355 * spu-tdep.c (spu_pseudo_register_read_spu)
2356 (spu_pseudo_register_read): Ditto.
2357 * xtensa-tdep.c (xtensa_register_read_masked)
2358 (xtensa_pseudo_register_read): Ditto.
2359 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2361 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2363 * python/py-value.c (valpy_getitem): Fix formatting of error function
2366 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2368 ARI fixes: Add missing internationalization markups throughout
2370 * darwin-nat-info.c: Ditto.
2373 * mi/mi-main.c: Ditto.
2375 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2377 ARI fixes: Add missing internationalization markups throughout
2380 * cp-name-parser.y: Ditto.
2383 * objc-exp.y: Ditto.
2386 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2388 ARI fixes: Messages should have no trailing new lines.
2389 * darwin-nat.c (mach_check_error): Remove trailing new line from
2390 warning function call message.
2391 * record.c (bfdcore_read): Idem for error call.
2393 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2395 * common/signals.c (target_signal_from_host): Add _ markup to error
2396 function call message.
2397 (target_signal_to_host): Add _ markup and remove trailing new line
2398 from warning call message.
2399 (target_signal_from_command): Add _ markup to error function call
2402 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2406 * python/python.c (gdbpy_write): Accept a stream argument and
2407 operate to the appropriate stream.
2408 (gdbpy_flush): Likewise.
2409 (_initialize_python): Add stream constants.
2410 (finish_python_initialization): Add GdbOutputErrorFile class.
2412 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2414 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2416 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2418 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2419 to store_signed_integer. Add debug message when relocating CALL
2420 instructions. Fix formatting of debug message.
2421 * i386-tdep.c (i386_relocate_instruction): Ditto.
2423 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2425 * target.h (struct target_ops): Remove to_lookup_symbol field.
2426 (target_lookup_symbol): Delete macro.
2427 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2428 (update_current_target, setup_target_debug): Remove handling
2429 of to_lookup_symbol target_ops field.
2430 * ada-tasks.c (get_known_tasks_addr): Remove use of
2431 target_lookup_symbol.
2432 * coffread.c (coff_symtab_read): Likewise.
2433 * dbxread.c (read_dbx_symtab): Ditto.
2435 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2438 * configure.ac: Add getthrds declaration check.
2439 * configure, config.in: Regenerate.
2440 * aix-thread.c (getthrds): Declare only if not already declared
2441 in procinfo.h. More declaration out of get_signaled_thread to
2444 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2446 * python/py-symtab.c: Populate symtab_object_methods,
2448 (stpy_is_valid): New function.
2449 (salpy_is_valid): Ditto.
2450 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2451 (sympy_is_valid): New function.
2452 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2453 (objfpy_is_valid): New function.
2454 * python/py-inferior.c: Populate inferior_object_methods.
2455 (infpy_is_valid): New function.
2456 * python/py-infthread.c: Populate thread_object_methods.
2457 (thpy_is_valid): New function.
2458 * python/py-block.c: Declare block_object_methods. Populate. Declare
2459 block_iterator_object_methods. Populate.
2460 (blpy_is_valid): New function.
2461 (blpy_iter_is_valid): Ditto.
2463 2011-03-16 Keith Seitz <keiths@redhat.com>
2465 * linespec.c (find_methods): Canonicalize NAME before looking
2467 (name_end): New function.
2468 (keep_name_info): New function.
2469 (decode_line_1): Use keep_name_info.
2470 (decode_compound): Likewise.
2471 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2472 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2475 * linespec.c (locate_first_half): Keep overload information, too.
2476 (decode_compound): Use a string to represent break characters
2478 If P points to a break character, do not increment it.
2479 For C++ and Java, keep overload information and relevant keywords.
2480 If we cannot find a symbol, search the minimal symbols.
2483 * linespec.c (decode_compound): Rename SAVED_ARG to
2485 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2487 Pass a valid block to lookup_symbol.
2488 (lookup_prefix_sym): Likewise.
2489 (find_method): Construct search name based on SYM_CLASS instead
2491 * psymtab.c (lookup_partial_symbol): Add language parameter.
2492 (lookup_symbol_aux_psymtabs): Likewise.
2493 Don't assume that the psymtab we found was the right one. Search
2494 for the desired symbol in the symtab to be certain.
2495 (psymtab_search_name): New function.
2496 (lookup_partial_symbol): Use psymtab_search_name.
2497 Add language parameter.
2498 (read_symtabs_for_function): Add language parameter and pass to
2499 lookup_partial_symbol.
2500 (find_symbol_file_from_partial): Likewise.
2502 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2505 * dwarf2read.c (noop_record_line): New function.
2506 (dwarf_decode_lines): Ignore line tables for GCd functions.
2508 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2510 Fix ARI warnings about new lines at the end of messages, which
2511 are unneeded as there is a new line added at the end of the message
2513 * darwin-nat.c (darwin_stop_inferior): Ditto.
2514 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2515 * dfp.c (decimal_to_number): Ditto.
2516 * exec.c (print_section_info): Ditto.
2517 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2518 * osdata.c (get_osdata): Ditto.
2519 * record.c (bfdcore_write): Ditto.
2520 * remote-mips.c (mips_readchar): Ditto.
2521 * remote.c (read_ptid): Ditto.
2522 * ser-mingw.c (ser_windows_raw): Ditto.
2523 * tracepoint.c (add_local_symbols): Ditto.
2524 * windows-nat.c (fake_create_process): Ditto.
2526 2011-03-16 Tom Tromey <tromey@redhat.com>
2528 * tracepoint.c (stop_tracing): Don't declare.
2529 * event-top.c (after_char_processing_hook): Add `(void)'.
2531 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2533 * NEWS: Add Parameter sub-classing description.
2535 2011-03-16 Kai Tietz <ktietz@redhat.com>
2537 * MAINTAINERS: Update my e-mail address.
2539 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2541 * MAINTAINERS: Add myself for write after approval privileges.
2543 2011-03-15 Michael Snyder <msnyder@vmware.com>
2545 * frame.c (find_frame_sal): Assert sym is not null.
2547 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2549 * objc-lang.c (selectors_info): Check strchr for null result.
2551 * stabsread.c (define_symbol): Guard against bad stabstring input.
2553 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2555 Remove trailing spaces and tabulations from pascal language
2560 p-valprint.c: Ditto.
2562 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2564 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2565 than LOW. Comment it.
2566 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2567 HIGHPC not strictly higher than LOWPC.
2569 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2571 Fix formatting of function declarations returning a pointer in
2573 * varobj.c (varobj_add_child): Ditto.
2574 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2575 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2577 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2579 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2580 for the "generic" vector ABI used with GCC 4.3 and later.
2581 (ppc64_sysv_abi_return_value): Likewise.
2583 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2585 * infcall.c (call_function_by_hand): Function return value is
2586 always a non_lval, even when using struct_return.
2588 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2590 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2591 (map_display_numbers): New.
2592 (do_delete_display): New.
2593 (undisplay_command): Use map_display_numbers.
2594 (do_enable_disable_display): New.
2595 (enable_disable_display_command): New function.
2596 (enable_display): Delete.
2597 (enable_display_command): New.
2598 (disable_display_command): Reimplement.
2599 (_initialize_printcmd): Adjust "enable display" command to use
2600 `enable_display_command' as callback.
2602 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2604 * NEWS: Add Python breakpoint 'stop' operation.
2606 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2608 * NEWS: Delete duplicate entry. Fix typo.
2610 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2612 Fix ARI warning about function names in first column.
2613 Put prototype declaration on same line as return type.
2614 * objc-exp.y: Ditto.
2616 * python/py-stopevent.h: Ditto.
2617 For long function names, split parameters to
2618 allow function name on same line as return type.
2619 * solib-pa64.c: Ditto.
2622 For long function declaration, use single line.
2623 * hppa-tdep.h: Ditto.
2624 * inferior.h: Ditto.
2626 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2628 * python/python.h: Declare gdbpy_should_stop and
2629 gdbpy_breakpoint_has_py_cond.
2630 * python/python.c: Add python.h to includes. Remove python.h from
2631 HAVE_PYTHON definition
2632 (gdbpy_should_stop): New dummy function.
2633 (gdbpy_breakpoint_has_py_cond): New dummy function.
2634 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2635 sub-classing capabilities.
2636 (gdbpy_should_stop): New function.
2637 (gdbpy_breakpoint_has_py_cond): New function.
2638 (local_setattro): New function.
2639 * breakpoint.c (condition_command): Add check for Python 'stop'
2641 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2642 operation function as part of stop/continue tests.
2644 2011-03-14 Tom Tromey <tromey@redhat.com>
2647 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2648 (needs_frame_dwarf_call): Likewise.
2650 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2652 Fix ARI warning about functions without parameters that do not
2654 * breakpoint.c (all_tracepoints): Replace () by (void).
2655 * f-exp.y (match_string_literal): Ditto.
2657 * m2-exp.y (yylex): Ditto.
2658 * mep-tdep.c (current_me_module): Ditto.
2659 (current_options): Ditto.
2660 (current_cop_data_bus_width): Ditto.
2661 (current_cr_names): Ditto.
2662 (current_cr_is_float): Ditto.
2663 (current_ccr_names): Ditto.
2664 * objc-exp.y (yylex): Ditto.
2665 * p-exp.y (yylex): Ditto.
2666 * remote.c (send_interrupt_sequence): Ditto.
2667 * tracepoint.c (current_trace_status): Ditto.
2668 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2669 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2671 2011-03-11 Michael Snyder <msnyder@vmware.com>
2673 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2674 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2675 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2676 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2677 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2679 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2680 (delete_async_event_handler): Ditto.
2682 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2684 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2686 * top.c (set_verbose): Assert showcmd was found.
2688 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2690 * xtensa-tdep.c (warning_once): Correct style issues.
2692 2011-03-11 Yao Qi <yao@codesourcery.com>
2694 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2696 2011-03-11 Andreas Schwab <schwab@redhat.com>
2698 * common/aclocal.m4: Remove.
2700 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2702 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2703 (xtensa_write_register, xtensa_read_register): Likewise.
2704 (xtensa_hextochar): Removed.
2705 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2707 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2709 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2710 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2711 (xtensa_alloc_frame_cache): Add initialization for new fields.
2712 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2713 (warning_once): New function.
2714 (xtensa_insn_kind): New item c0opc_and.
2715 (call0_classify_opcode): Add the case for AND instruction.
2716 (call0_track_op): Change arguments. New local variable litbase.
2717 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2718 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2720 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2721 (call0_analyze_prologue): Update the comments. Change arguments.
2722 Add the variety of updates to handle extended prologues, which now can
2723 conduct dynamic stack adjustments.
2724 (call0_frame_cache): Likewise.
2725 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2726 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2728 2011-03-10 Michael Snyder <msnyder@vmware.com>
2730 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2731 (cmd_qtframe): Ditto.
2732 (cmd_qtbuffer): Ditto.
2733 (cmd_bigqtbuffer): Ditto.
2735 2011-03-10 Tom Tromey <tromey@redhat.com>
2737 * tracepoint.c (trace_actions_command): Update.
2738 * thread.c (thread_apply_command): Update.
2739 * reverse.c (delete_bookmark_command): Update.
2740 (bookmarks_info): Update.
2741 * printcmd.c (undisplay_command): Update.
2742 * memattr.c (mem_enable_command): Update.
2743 (mem_disable_command): Update.
2744 (mem_delete_command): Update.
2745 * inferior.c (detach_inferior_command): Update.
2746 (kill_inferior_command): Update.
2747 (remove_inferior_command): Update.
2748 * cli/cli-utils.h (struct get_number_or_range_state): New.
2749 (init_number_or_range): Declare.
2750 (get_number_or_range): Update.
2751 * cli/cli-utils.c (init_number_or_range): New function.
2752 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2754 (number_is_in_list): Update.
2755 * breakpoint.h (get_tracepoint_by_number): Update.
2756 * breakpoint.c (map_breakpoint_numbers): Update for change to
2757 get_number_or_range.
2758 (find_location_by_number): Use get_number, not
2759 get_number_or_range.
2760 (trace_pass_set_count): New function.
2761 (trace_pass_command): Update for change to get_number_or_range.
2763 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2766 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2768 * python/py-param.c (add_setshow_generic): Add set/show callback
2769 parameters. Register Python object context.
2770 (get_show_value): New function.
2771 (get_set_value): New function.
2772 (call_doc_function): New function.
2773 (get_doc_string): Move behind get_show_value/get_set_value.
2775 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2777 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2779 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2781 * xtensa-tdep.c (xtensa_read_register): Add comment.
2782 (xtensa_write_register): Likewise.
2783 (xtensa_hextochar): Add comment and update to match coding conventions.
2784 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2785 (execute_l32e, execute_s32e, execute_code): Update comments.
2786 (xtensa_exception_handler_t): Update to match coding conventions.
2787 (xtensa_insn_kind): Likewise.
2789 2011-03-09 Michael Snyder <msnyder@vmware.com>
2791 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2793 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2795 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2797 2011-03-09 Tom Tromey <tromey@redhat.com>
2799 * thread.c (restore_selected_frame): Handle frame_level == -1.
2800 (make_cleanup_restore_current_thread): Use
2801 get_selected_frame_if_set.
2802 * frame.h (get_selected_frame_if_set): Declare.
2803 * frame.c (get_selected_frame_if_set): New function.
2805 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2807 * cli/cli-cmds.c (shell_escape): Use lbasename.
2808 * coffread.c (coff_start_symtab): Constify parameter.
2809 (complete_symtab): Constify `name' parameter.
2810 (coff_symtab_read): Constify `filestring' local.
2811 (coff_getfilename): Constify return and `result' local.
2813 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2814 * linux-fork.c (info_checkpoints_command): Use lbasename.
2815 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2816 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2817 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2818 * procfs.c (procfs_make_note_section): Use lbasename.
2819 * tui/tui-io.c (printable_part): Constity return and parameter.
2821 (print_filename): Constify parameters, and local `s'.
2822 (tui_rl_display_match_list): Constify local `temp'.
2824 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2827 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2828 Fix DWARF-3+ DW_AT_accessibility default assumption.
2829 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2830 cu->header.version >= 3.
2832 2011-03-09 Yao Qi <yao@codesourcery.com>
2834 * common/Makefile.in: Remove.
2835 * common/configure: Remove.
2836 * common/configure.ac: Remove.
2838 2011-03-09 Yao Qi <yao@codesourcery.com>
2841 2011-02-11 Yao Qi <yao@codesourcery.com>
2843 * common/Makefile.in: Add copyright header.
2845 2011-02-11 Yao Qi <yao@codesourcery.com>
2847 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2849 * configure.ac: Add common to sub dir.
2850 * configure: Regenerate.
2852 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2854 * xtensa-tdep.c (call0_ret): New function.
2855 (xtensa_skip_prologue): Speed up analysis.
2857 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2859 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2860 while executing MI command -data-list-changed-registers.
2862 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2864 * xtensa-tdep.c (xtensa_read_register): New function.
2865 (xtensa_write_register): New function.
2866 (xtensa_find_register_by_name): New function.
2867 (xtensa_windowed_frame_cache): Update comments in type description.
2868 (xtensa_frame_cache): Likewise.
2869 (xtensa_window_interrupt_insn): New function.
2870 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2871 (xtensa_insn_kind): Add new instructions.
2872 (rwx_special_register): New function.
2873 (call0_classify_opcode): Add new instructions to the analysis.
2874 (a0_saved, a7_saved, a11_saved): New variables.
2875 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2876 (execute_l32e): New function.
2877 (execute_s32e): New function.
2878 (xtensa_exception_handler_t): New type.
2879 (execute_code): New function.
2880 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2881 analysis for Xtensa Window Exception handlers.
2883 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2885 * xtensa-tdep.c (TX_PS): New.
2886 (windowing_enabled): Update to count for Call0 ABI.
2887 (xtensa_hextochar): New.
2888 (xtensa_init_reggroups): Make algorithm generic.
2889 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2891 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2893 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2895 2011-03-08 Michael Snyder <msnyder@vmware.com>
2897 * i386-tdep.c (i386_follow_jump): Check return value of
2899 (i386_analyze_struct_return): Ditto.
2900 (i386_skip_probe): Ditto.
2901 (i386_match_insn): Ditto.
2902 (i386_skip_noop): Ditto.
2903 (i386_analyze_frame_setup): Ditto.
2904 (i386_analyze_register_saves): Ditto.
2905 (i386_skip_prologue): Ditto.
2906 (i386_skip_main_prologue): Ditto.
2908 * target.c (read_whatever_is_readable): Fix memory leak.
2910 * i386-tdep.c (i386_process_record): Document fall through.
2912 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 Fix DWARF-3+ DW_AT_accessibility default assumption.
2915 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2916 cu->header.version >= 3.
2918 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2920 * remote.c (remote_check_symbols): Skip if the target has no
2923 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2925 * target.c (read_whatever_is_readable): Reformat comment,
2926 with a minor typo fix. Minor reformatting of the code.
2928 2011-03-08 Yao Qi <yao@codesourcery.com>
2930 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2931 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2932 Use cached result instead of calling displaced_in_arm_mode again.
2933 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2934 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2935 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2936 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2937 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2938 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2939 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2940 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2941 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2942 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2943 (arm_catch_kernel_helper_return): Likewise.
2944 * gdb/arm-tdep.h : Update function declarations.
2946 2011-03-07 Michael Snyder <msnyder@vmware.com>
2948 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2950 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2952 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2954 * elfread.c (elf_symtab_read): Stop memory leak.
2956 * main.c (captured_main): Fix memory leak.
2958 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2960 * ada-lang.c (compare_names): Call is_name_suffix with string1
2963 2011-03-07 Tom Tromey <tromey@redhat.com>
2965 * xcoffread.c (xcoff_sym_fns): Update.
2966 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2967 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2968 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2969 (symbol_file_add_with_addrs_or_offsets): Likewise.
2970 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2971 * somread.c (som_sym_fns): Update.
2972 * psymtab.h (require_partial_symbols): Declare.
2973 * psymtab.c (require_partial_symbols): New function.
2974 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2975 (ALL_OBJFILE_PSYMTABS): Undef.
2976 (ALL_PSYMTABS): Move from psympriv.h.
2977 (lookup_partial_symtab, find_pc_sect_psymtab)
2978 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2979 (find_last_source_symtab_from_partial)
2980 (forget_cached_source_info_partial)
2981 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2982 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2983 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2984 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2985 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2986 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2987 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2988 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2989 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2991 * mipsread.c (ecoff_sym_fns): Update.
2992 * machoread.c (macho_sym_fns): Update.
2993 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2994 (read_psyms): New function.
2995 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2996 (elf_sym_fns_lazy_psyms): New global.
2997 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2998 dwarf2_build_psymtabs.
2999 * dbxread.c (aout_sym_fns): Update.
3000 * coffread.c (coff_sym_fns): Update.
3002 2011-03-07 Tom Tromey <tromey@redhat.com>
3004 * infrun.c (print_exited_reason): Include inferior id and pid in
3007 2011-03-07 Tom Tromey <tromey@redhat.com>
3009 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3011 (target_has_execution_1): Update.
3012 (target_has_execution_current): Declare.
3013 (target_has_execution): Call target_has_execution_current.
3014 (default_child_has_execution): Update.
3015 * target.c (default_child_has_execution): Add 'the_ptid'
3017 (target_has_execution_1): Likewise.
3018 (target_has_execution_current): New function.
3019 (add_target): Update.
3020 (init_dummy_target): Update.
3021 * remote-m32r-sdi.c (m32r_has_execution): New function.
3022 (init_m32r_ops): Use it.
3023 * record.c (record_core_has_execution): Now static. Add
3024 'the_ptid' parameter.
3025 * inferior.c (have_live_inferiors): Don't save current thread.
3026 Use target_has_execution_1.
3028 2011-03-07 Yao Qi <yao@codesourcery.com>
3030 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3032 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3034 * elfread.c (elf_symtab_read): Minor reformatting.
3036 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3038 * objc-lang.c (selectors_info): Minor reformatting.
3040 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3042 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3044 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3045 Michael Snyder <msnyder@vmware.com>
3047 * ada-valprint.c (ada_val_print_array): Move the declaration of
3048 "byte_order" and "elttype" inside the block where these variables
3049 are actually used. Remove some special handling for the case
3050 where "elttype" and "eltlen" are null. Replace by a comment
3051 and a couple of assertion checks.
3053 2011-03-05 Michael Snyder <msnyder@vmware.com>
3055 * source.c (add_path): Replace semicolon at end of block.
3056 * dwarf2expr.c (execute_stack_op): Ditto.
3058 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3060 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3061 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3062 (bfin-*-*): Likewise.
3064 2011-03-05 Michael Snyder <msnyder@vmware.com>
3066 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3067 * mdebugread.c (parse_symbol): Ditto.
3068 * parse.c (parse_exp_in_context): Ditto.
3069 * source.c (add_path): Ditto.
3070 * utils.c (gnu_debuglink_crc32): Ditto.
3071 * varobj.c (variable_language): Ditto.
3073 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3075 2011-03-04 Michael Snyder <msnyder@vmware.com>
3077 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3079 * symfile.c (simple_overlay_update): Check for null return value
3080 from lookup_minimal_symbol.
3082 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3084 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3086 * eval.c (parse_and_eval_address_1): Remove function.
3087 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3088 instead of parse_and_eval_address_1.
3089 * value.h (parse_and_eval_address_1): Remove prototype.
3091 2011-03-04 Michael Snyder <msnyder@vmware.com>
3093 * remote.c (putpkt_binary): Document that case stmt falls through.
3095 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3097 * breakpointc (print_it_typical): Move NULL check from here...
3098 (print_bp_stop_message): ... to here.
3100 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3102 * breakpoint.c (enable_command): Use break instead of continue,
3103 and fill in a missing break.
3104 (disable_command): Ditto.
3106 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3108 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3109 (terminal_save_ours): Remove misleading comment.
3110 (inflow_inferior_data_cleanup): Free ttystate.
3111 (inflow_inferior_exit): Likewise.
3112 (copy_terminal_info): Copy ttystate.
3114 * serial.c (serial_copy_tty_state): New function.
3115 * serial.h (serial_copy_tty_state): Add prototype.
3116 (struct serial_ops): Add copy_tty_state callback.
3117 * ser-base.c (ser_base_copy_tty_state): New function.
3118 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3119 * ser-go32.c (dos_copy_tty_state): New function.
3120 (dos_ops): Install copy_tty_state callback.
3121 * ser-mingw.c (_initialize_ser_windows): Likewise.
3122 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3123 * ser-unix.c (hardwire_copy_tty_state): New function.
3124 (_initialize_ser_hardwire): Install it.
3126 2011-03-04 Michael Snyder <msnyder@vmware.com>
3128 * breakpoint.c (create_breakpoint): Add missing break statement.
3130 Reverting this patch:
3131 * infcall.c (call_function_by_hand): Add break statements for lint.
3133 Reverting this patch:
3134 * cli/cli-script.c (script_from_file): Add break for lint.
3136 2011-03-04 Michael Snyder <msnyder@vmware.com>
3138 * solib.c (reload_shared_libraries_1): Close memory leak.
3140 2011-03-03 Tom Tromey <tromey@redhat.com>
3143 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3146 2011-03-03 Michael Snyder <msnyder@vmware.com>
3148 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3149 fields of struct 'st' to zero.
3151 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3152 sal.pspace before calling set_current_source_symtab_and_line.
3154 2011-03-03 Yao Qi <yao@codesourcery.com>
3156 * Makefile.in (configure-common): Remove. Let Makefile
3157 in dir common to rebuild itself.
3158 (common/Makefile): Likewise.
3160 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3162 * utils.c (parse_escape): Add i18n markup in error message.
3164 2011-03-03 Yao Qi <yao@codesourcery.com>
3166 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3168 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3169 (displaced_write_reg, displaced_read_reg): Likewise.
3170 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3171 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3172 (cleanup_branch): Replace magic number 14 and 15 with
3173 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3175 2011-03-02 Michael Snyder <msnyder@vmware.com>
3177 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3179 * cli/cli-script.c (script_from_file): Add break for lint.
3181 * mdebugread.c (parse_partial_symbols): Fix indent.
3183 * target-descriptions.c (tdesc_gdb_type): No need to call
3184 xstrdup, callee saves a copy.
3186 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3188 * infcall.c (call_function_by_hand): Add break statements for lint.
3190 * utils.c (parse_escape): Escape the escape char.
3192 * python/py-inferior.c (build_inferior_list): Error out if
3193 PyList_Append fails.
3194 (gdbpy_inferiors): Error out if build_inferior_list fails.
3196 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3199 * record.c (record_restore): Move printf to before error return.
3201 2011-03-02 Yao Qi <yao@codesourcery.com>
3203 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3204 is_thumb and insn_size.
3205 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3206 on both ARM and Thumb mode.
3207 (arm_process_displaced_insn): Set is_thumb and insn_size.
3208 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3209 (arm_displaced_step_fixup): Likewise.
3211 2011-03-01 Michael Snyder <msnyder@vmware.com>
3213 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3215 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3217 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3219 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3221 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3224 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3225 which shadows function parameter.
3227 * tracepoint.c (create_tsv_from_upload): Superfluous call
3228 to xstrdup. Callee already calls xstrdup.
3230 * linespec.c (decode_line_1): Remove unnecessary null check.
3232 * tracepoint.c (scope_info): Fix mem leak, remove underused
3235 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3236 superfluous null check.
3238 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3239 (value_of_builtin_frame_fp_reg): Ditto.
3241 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3243 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3246 * linespec.c (decode_line_1): Check for null before dereference.
3248 * reverse.c (record_restore): Move null-check to before pointer
3251 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3253 * objc-lang.c (selectors_info): Add explanitory comment.
3254 (classes_info): Ditto.
3256 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3258 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3259 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3260 versions of the trampoline. Handle Thumb vs. ARM addresses.
3261 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3262 (arm_linux_init_abi): Install it.
3263 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3264 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3266 2011-02-28 Michael Snyder <msnyder@vmware.com>
3268 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3269 a little bigger, to avoid possibility of an overflow.
3271 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3272 buffers a little bigger, to avoid possibility of an overflow.
3274 * coffread.c (coff_getfilename): Add check to avoid overflow.
3276 * objc-lang.c (selectors_info): Add a small safety margin to
3278 (classes_info): Error out on too long REGEXP.
3280 * infrun.c (handle_inferior_event): Remove unused function call.
3282 * fork-child.c (fork_inferior): Remove ifdef'd code and
3285 * linux-thread-db.c (attach_thread): Discard unused value.
3287 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3289 * remote.c (remote_get_noisy_reply): Discard unused value.
3290 (remote_vcont_resume): Ditto.
3291 (remote_stop_ns): Ditto.
3293 * linespec.c (decode_objc): Delete unused variable.
3295 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3297 * dwarf2read.c (add_partial_symbol): Discard unused values.
3298 (read_base_type): Delete unused variable.
3300 * dbxread.c (read_dbx_symtab): Discard unused value.
3302 * eval.c (evaluate_subexp_standard): Delete unused variable,
3303 and discard unused values.
3305 * infcmd.c (_initialize_infcmd): Discard unused values.
3307 * stabsread.c (rs6000_builtin_type): Missing break statement.
3309 * dbxread.c (process_one_symbol): Discard unused value.
3311 * coffread.c (coff_end_symtab): Delete unused variable.
3313 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3314 (dwarf2_add_typedef): Delete unused variable.
3315 (read_namespace): Ditto.
3316 (dwarf_decode_macros): Ditto.
3318 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3320 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3322 * p-valprint.c (pascal_val_print): Discard unused value.
3324 * utils.c (nquery): Call va_end before return;
3328 * proc-service.c (ps_plog): Call va_end before return.
3330 2011-02-28 Tom Tromey <tromey@redhat.com>
3332 * python/python.c (gdbpy_value_cst): New global.
3333 (_initialize_python): Initialize it.
3334 * python/python-internal.h (gdbpy_value_cst): Declare.
3335 * python/py-value.c (convert_value_from_python): Use
3338 2011-02-28 Michael Snyder <msnyder@vmware.com>
3340 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3342 * breakpoint.c (catch_syscall_completer): Free malloced list.
3344 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3346 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3347 (lval_func_check_synthetic_pointer): Ditto.
3348 (lval_func_free_closure): Fix use-after-free.
3350 2011-02-28 Tom Tromey <tromey@redhat.com>
3352 * psymtab.c (expand_partial_symbol_tables): Use
3353 ALL_OBJFILE_PSYMTABS.
3355 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3357 * objc-lang.c (selectors_info): Error on too long REGEXP.
3359 2011-02-28 Michael Snyder <msnyder@vmware.com>
3361 * python/py-param.c (set_parameter_value): Add missing
3364 * linux-record.c (record_linux_system_call): Add missing
3367 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3369 * breakpoint.c (print_one_breakpoint_location): Remove unused
3370 argument PRINT_ADDRESS_BITS. Update callers.
3371 (print_one_breakpoint): Likewise.
3373 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3375 * breakpoint.c (wrap_indent_at_field): New function.
3376 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3377 Allocate ui_stream locally instead of using STB argument.
3378 (print_one_breakpoint_location): Update call.
3379 * ui-out.c (ui_out_query_field): New function.
3380 * ui-out.h (ui_out_query_field): Add prototype.
3382 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3384 From Michael Snyder <msnyder@vmware.com>
3385 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3387 2011-02-27 Michael Snyder <msnyder@vmware.com>
3389 * objc-lang.c (selectors_info): Prevent string overrun.
3391 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3394 * symtab.c (rbreak_command): Move variable 'file_name' to
3397 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3398 param with a local variable of the same name.
3400 2011-02-27 Michael Snyder <msnyder@vmware.com>
3402 * value.c (value_from_history_ref): New function.
3403 * value.h (value_from_history_ref): Export.
3404 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3405 to parse value history references.
3406 * cli/cli-utils.h (get_number_trailer): Update comment.
3408 2011-02-27 Michael Snyder <msnyder@vmware.com>
3410 * inferior.c (detach_inferior_command): Use get_number_or_range.
3411 (kill_inferior_command): Ditto.
3412 (remove_inferior_command): Ditto.
3413 (initialize_inferiors): Make command names plural.
3414 Update help strings.
3416 2011-02-27 Michael Snyder <msnyder@vmware.com>
3418 * darwin-nat-info.c: Fix comment typo.
3419 * dwarf2expr.h: Ditto.
3420 * fbsd-nat.c: Ditto.
3421 * fbsd-nat.h: Ditto.
3422 * frame-unwind.h: Ditto.
3424 * hppa-hpux-tdep.c: Ditto.
3425 * i386-linux-nat.c: Ditto.
3426 * linux-nat.c: Ditto.
3427 * nbsd-nat.c: Ditto.
3428 * nbsd-nat.h: Ditto.
3429 * ppc-linux-tdep.c: Ditto.
3432 * tui/tui-winsource.c: Ditto.
3434 2011-02-26 Michael Snyder <msnyder@vmware.com>
3436 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3438 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3440 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3441 with a local variable of the same name.
3443 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3444 param with a local variable of the same name.
3445 (i387_supply_xsave): Ditto.
3447 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3448 that it does not shadow a function parameter.
3450 * i386-nat.c (i386_length_and_rw_bits): Document that case
3451 statement is meant to fall through.
3453 * expprint.c (dump_subexp_body_standard): Document that case
3454 statement is meant to fall through.
3456 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3457 dead if statement. Condition can't be false.
3459 2011-02-25 Michael Snyder <msnyder@vmware.com>
3461 * arm-tdep.c: Fix typos in comments.
3462 * bsd-uthread.c: Ditto.
3463 * completer.c: Ditto.
3465 * cp-namespace.c: Ditto.
3466 * cp-support.c: Ditto.
3467 * cris-tdep.c: Ditto.
3469 * dwarf2read.c: Ditto.
3471 * gdbtypes.h: Ditto.
3472 * inferior.h: Ditto.
3473 * mdebugread.c: Ditto.
3474 * mips-tdep.c: Ditto.
3475 * ppc-linux-nat.c: Ditto.
3476 * ppc-linux-tdep.c: Ditto.
3477 * printcmd.c: Ditto.
3478 * sol-thread.c: Ditto.
3479 * solib-frv.c: Ditto.
3481 * sparc64-tdep.c: Ditto.
3482 * spu-tdep.c: Ditto.
3483 * stabsread.c: Ditto.
3488 * python/py-block.c: Ditto.
3489 * python/py-symbol.c: Ditto.
3490 * python/py-symtab.c: Ditto.
3491 * python/py-value.c: Ditto.
3492 * tui/tui-win.c: Ditto.
3494 2011-02-25 Michael Snyder <msnyder@vmware.com>
3496 * inferior.c (print_inferior): Accept a string instead of an int
3497 for requested_inferiors, and use get_number_or_range to parse it.
3498 (info_inferiors_command): Pass args string to print_inferior.
3499 (initialize_inferiors): Change help string for info inferiors.
3500 * inferior.h (print_inferior): Export prototype change.
3502 2011-02-25 Tom Tromey <tromey@redhat.com>
3504 * common/ax.def (invalid2): Set to 0x31.
3506 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3508 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3510 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3512 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3514 2011-02-24 Michael Snyder <msnyder@vmware.com>
3516 * Makefile.in (clean): Make clean should remove generated files
3517 observer.h and observer.inc.
3519 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3521 Revert the following patch (not approved yet):
3522 2011-02-21 Hui Zhu <teawater@gmail.com>
3523 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3524 * ax-gdb.c (gen_printf_expr_callback): New function.
3525 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3526 * ax-general.c (ax_memcpy): New function.
3527 (ax_print): Handle "printf".
3529 * ax.h (ax_memcpy): Forward declare.
3530 * common/ax.def (invalid2): Removed.
3531 (printf): New entry.
3532 * printcmd.c (printcmd.h): New include.
3533 (string_printf): New function.
3534 (ui_printf): Removed.
3535 (printf_command): Remove static. Call string_printf.
3536 (eval_command): Call string_printf.
3537 * printcmd.h: New file.
3538 * tracepoint.c (validate_actionline,
3539 encode_actions_1): handle printf_command.
3541 2011-02-23 Tom Tromey <tromey@redhat.com>
3543 * ax-general.c (ax_pick): Add missing newline.
3545 2011-02-23 Michael Snyder <msnyder@vmware.com>
3547 * breakpoint.c (breakpoint_1): Change first argument from an int
3548 to a char pointer, so that the function now accepts a list of
3549 breakpoints rather than just one. Use new function
3550 'number_is_in_list' to implement.
3551 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3552 (watchpoints_info): Ditto.
3553 (tracepoints_info): Ditto.
3554 (maintenance_info_breakpoints): Ditto.
3555 (_initialize_breakpoint): Update help strings to reflect the fact
3556 that these functions can now take more than one argument.
3557 * cli/cli-utils.c (number_is_in_list): New function.
3558 * cli/cli-utils.h (number_is_in_list): Export.
3560 2011-02-23 Michael Snyder <msnyder@vmware.com>
3562 * memattr.c (mem_enable_command): Use get_number_or_range.
3563 (mem_disable_command): Ditto.
3564 (mem_delete_command): Ditto.
3565 (_initialize_mem): Tweak usage message to reflect multiple
3568 2011-02-22 Doug Evans <dje@google.com>
3570 Add gdb.lookup_global_symbol python function.
3572 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3573 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3574 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3576 2011-02-22 Tom Tromey <tromey@redhat.com>
3578 * language.c (language_class_name_from_physname): Rename
3579 'curr_language' argument to 'lang'; use in body.
3581 2011-02-22 Michael Snyder <msnyder@vmware.com>
3583 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3585 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3587 * frame-unwind.h: Fix comment to mention the this frame, not the
3590 2011-02-22 Tom Tromey <tromey@redhat.com>
3592 * symfile.c (auto_solib_limit): Remove.
3593 * symfile.h (auto_solib_limit): Remove.
3595 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3597 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3599 2011-02-21 Michael Snyder <msnyder@vmware.com>
3601 * gdbthread.h (print_thread_info): Change prototype.
3602 * thread.c (print_thread_info): Accept char* instead of int for
3603 requested_threads argument. Use new function number_is_in_list
3604 to determine which threads to list.
3605 (info_threads_command): Pass char* to print_thread_info.
3606 * cli/cli-utils.c (number_is_in_list): New function.
3607 * cli/cli-utils.h (number_is_in_list): Export.
3608 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3610 (print_one_inferior): Ditto.
3611 (mi_cmd_list_thread_groups): Ditto.
3613 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 * common/Makefile.in (CFLAGS): New.
3616 (COMPILE): Add $(CFLAGS).
3618 2011-02-21 Tom Tromey <tromey@redhat.com>
3620 * breakpoint.c (catch_syscall_command_1): Fix typo.
3622 2011-02-21 Tom Tromey <tromey@redhat.com>
3624 * reverse.c: Include cli-utils.h.
3625 * printcmd.c: Include cli-utils.h.
3626 (string_printf): Use skip_spaces.
3627 * cli/cli-utils.h: New file.
3628 * cli/cli-utils.c: New file.
3629 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3630 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3631 * breakpoint.h (get_number, get_number_or_range): Move to
3633 * breakpoint.c: Include cli-utils.h.
3634 (get_number_trailer, get_number, get_number_or_range)
3635 (ep_skip_leading_whitespace): Move to cli-utils.c.
3636 (create_breakpoint_sal, find_condition_and_thread)
3637 (decode_static_tracepoint_spec, watch_command_1)
3638 (watch_maybe_just_location, ep_parse_optional_if_clause)
3639 (catch_fork_command_1, catch_exec_command_1)
3640 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3641 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3642 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3643 (HFILES_NO_SRCDIR): Add cli-utils.h.
3644 (cli-utils.o): New target.
3646 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3648 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3649 before calling discard_all_inferiors.
3651 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3653 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3654 (struct builtin_opencl_type): Remove.
3655 (builtin_opencl_type): Change return type to "struct type **".
3656 (lookup_opencl_vector_type): Update caller.
3657 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3658 (build_opencl_types): Install plain array of "struct type *"
3659 instead of "struct builtin_opencl_type".
3661 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3662 Ulrich Weigand <uweigand@de.ibm.com>
3664 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3665 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3666 (struct arm_linux_hwbp_cap): New type.
3667 (arm_linux_get_hwbp_cap): New function.
3668 (arm_linux_get_hw_breakpoint_count): Likewise.
3669 (arm_linux_get_hw_watchpoint_count): Likewise.
3670 (arm_linux_can_use_hw_breakpoint): Likewise.
3671 (arm_hwbp_type): New type.
3672 (arm_hwbp_control_t): Likewise.
3673 (struct arm_linux_hw_breakpoint): Likewise.
3674 (struct arm_linux_thread_points): Likewise.
3675 (arm_threads): New global variable.
3676 (arm_linux_find_breakpoints_by_tid): New function.
3677 (arm_hwbp_control_initialize): Likewise.
3678 (arm_hwbp_control_is_enabled): Likewise.
3679 (arm_hwbp_control_disable): Likewise.
3680 (arm_linux_hw_breakpoint_initialize): Likewise.
3681 (arm_linux_get_hwbp_type): Likewise.
3682 (arm_linux_hw_watchpoint_initialize): Likewise.
3683 (arm_linux_hw_breakpoint_equal): Likewise.
3684 (arm_linux_insert_hw_breakpoint1): Likewise.
3685 (arm_linux_remove_hw_breakpoint1): Likewise.
3686 (arm_linux_insert_hw_breakpoint): Likewise.
3687 (arm_linux_remove_hw_breakpoint): Likewise.
3688 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3689 (arm_linux_insert_watchpoint): Likewise.
3690 (arm_linux_remove_watchpoint): Likewise.
3691 (arm_linux_stopped_data_address): Likewise.
3692 (arm_linux_stopped_by_watchpoint): Likewise.
3693 (arm_linux_watchpoint_addr_within_range): Likewise.
3694 (arm_linux_new_thread): Likewise.
3695 (arm_linux_thread_exit): Likewise.
3696 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3697 related target callbacks. Register arm_linux_new_thread and
3698 arm_linux_thread_exit.
3699 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3700 * arm-tdep.c (arm_pc_is_thumb): Make global.
3701 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3703 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3705 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3706 per-frame locations while within a function epilogue.
3708 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3710 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3711 to GNU coding standards.
3713 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3715 Allow use of mingw native on Windows 95 OS.
3716 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3717 (ser_windows_close): Only call CancelIo if function exists.
3718 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3719 to check for existence of CancelIo function in kernel32 DLL.
3721 2011-02-21 Hui Zhu <teawater@gmail.com>
3723 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3724 * ax-gdb.c (gen_printf_expr_callback): New function.
3725 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3726 * ax-general.c (ax_memcpy): New function.
3727 (ax_print): Handle "printf".
3729 * ax.h (ax_memcpy): Forward declare.
3730 * common/ax.def (invalid2): Removed.
3731 (printf): New entry.
3732 * printcmd.c (printcmd.h): New include.
3733 (string_printf): New function.
3734 (ui_printf): Removed.
3735 (printf_command): Remove static. Call string_printf.
3736 (eval_command): Call string_printf.
3737 * printcmd.h: New file.
3738 * tracepoint.c (validate_actionline,
3739 encode_actions_1): handle printf_command.
3741 2011-02-19 Michael Snyder <msnyder@vmware.com>
3743 * reverse.c (delete_one_bookmark): Argument is now bookmark
3744 id rather than pointer to bookmark struct.
3745 (delete_bookmark_command): Use get_number_or_range.
3746 (goto_bookmark_command): Parse with get_number instead of strtoul.
3747 (bookmark_1): New function. Print info for one bookmark.
3748 (bookmarks_info): Use get_number_or_range and bookmark_1.
3750 2011-02-18 Michael Snyder <msnyder@vmware.com>
3752 * thread.c (info_threads_command): Re-implement using
3753 get_number_or_range.
3754 (thread_apply_command): Ditto.
3756 2011-02-18 Tom Tromey <tromey@redhat.com>
3758 * common/ax.def: New file.
3759 * ax.h (enum agent_op): Use ax.def.
3760 * ax-general.c (aop_map): Use ax.def.
3762 2011-02-18 Tom Tromey <tromey@redhat.com>
3764 * ax-general.c (aop_map): Add pick and rot.
3765 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3766 <DW_OP_rot>: Implement.
3767 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3769 * ax-general.c (ax_pick): New function.
3771 2011-02-18 Tom Tromey <tromey@redhat.com>
3773 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3775 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3776 Tom Tromey <tromey@redhat.com>
3778 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3779 make_symbol_overload_list_block with NULL BLOCK.
3780 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3782 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3784 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3785 * breakpoint.h (get_number_or_range): Declare.
3786 * printcmd.c (ALL_DISPLAYS): Declare.
3787 (delete_display): Reimplement taking a display pointer.
3788 (undisplay_command): Accept a range of displays to delete, using
3789 get_number_or_range.
3791 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3793 * c-valprint.c (c_val_print): Add embedded_offset to address
3794 for arrays of unspecified length.
3795 * p-valprint.c (pascal_val_print): Likewise.
3797 2011-02-18 Yao Qi <yao@codesourcery.com>
3799 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3800 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3801 (thumb_process_displaced_insn): New.
3802 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3803 call to arm_process_displaced_insn.
3804 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3806 2011-02-17 Tom Tromey <tromey@redhat.com>
3808 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3809 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3810 compile_dwarf_to_ax. No longer static. Call
3811 dwarf2_compile_cfa_to_ax.
3812 (locexpr_tracepoint_var_ref): Update.
3813 (loclist_tracepoint_var_ref): Update.
3814 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3815 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3816 argument; add 'gdbarch' and 'pc'.
3817 (dwarf2_compile_cfa_to_ax): New function.
3818 (dwarf2_frame_cache): Update.
3820 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3822 * ada-lang.c (ada_type_of_array): Fix the size of the array
3823 in the case of an unconstrained packed array.
3825 2011-02-17 Yao Qi <yao@codesourcery.com>
3827 * common/Makefile.in: Add more targets for make.
3829 2011-02-16 Tom Tromey <tromey@redhat.com>
3831 * dwarf2loc.c (unimplemented): Fix typo.
3833 2011-02-16 Tom Tromey <tromey@redhat.com>
3835 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3836 (compile_dwarf_to_ax) <default>: Use unimplemented.
3837 <DW_OP_deref>: Update.
3838 (disassemble_dwarf_expression): Update.
3839 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3840 (decode_locdesc): Update.
3841 * dwarf2expr.h (dwarf_stack_op_name): Update.
3843 2011-02-16 Tom Tromey <tromey@redhat.com>
3845 * ax.h (struct aop_map) <name>: Now const.
3847 2011-02-16 Tom Tromey <tromey@redhat.com>
3849 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3852 2011-02-16 Yao Qi <yao@codesourcery.com>
3854 * infrun.c (get_displaced_step_closure_by_addr): New.
3855 * inferior.h: Declare it.
3856 * arm-tdep.c: (arm_pc_is_thumb): Call
3857 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3860 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3861 Jan Kratochvil <jan.kratochvil@redhat.com>
3864 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3866 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3867 Jan Kratochvil <jan.kratochvil@redhat.com>
3869 * value.c (value_contents_copy_raw): Extend describing comment.
3870 Assert that the destination contents we're overwriting are wholly
3872 (value_contents_copy): Extend describing comment.
3874 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3875 Jan Kratochvil <jan.kratochvil@redhat.com>
3877 * value.c (value_available_contents_eq): Remove redundant local
3878 variables. Fix available contents comparision.
3879 * value.h (value_available_contents_eq): Extend describing
3882 2011-02-16 Yao Qi <yao@codesourcery.com>
3884 * thread.c (info_threads_command): Add missing i18n markup and remove
3887 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3889 * breakpoint.c (longjmp_names): New variable.
3890 (struct breakpoint_objfile_data): New type.
3891 (breakpoint_objfile_key): New variable.
3892 (msym_not_found): New variable.
3893 (msym_not_found_p): New predicate.
3894 (get_breakpoint_objfile_data): New function.
3895 (create_overlay_event_breakpoint): Check per-objfile cache for
3897 (create_longjmp_master_breakpoint): Likewise.
3898 (create_std_terminate_master_breakpoint): Likewise.
3899 (create_exception_master_breakpoint): Likewise.
3900 (_initialize_breakpoint): Register per-objfile data key.
3902 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3904 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3906 (create_longjmp_master_breakpoint): Loop over longjmp names.
3907 (create_std_terminate_master_breakpoint): Const-propagate parameter
3909 (update_breakpoints_after_exec): Adjust.
3910 (breakpoint_re_set): Adjust.
3912 2011-02-15 Michael Snyder <msnyder@vmware.com>
3914 * thread.c (info_threads_command): Process arg as thread id,
3915 or list of thread ids.
3916 (thread_find_command): New command.
3917 (_initialize_thread): Document argument for info threads.
3918 Document 'thread find' command.
3919 * NEWS: Document new command "thread find".
3921 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3923 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3924 * aclocal.m4: Regenerated with aclocal-1.11.1.
3925 * common/configure: Regenerate with autoconf-2.64.
3927 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3929 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3930 bool data type to a size of one byte.
3932 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3933 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * target.c (memory_xfer_live_readonly_partial): Document where to
3936 look for interface description.
3938 2011-02-15 Yao Qi <yao@codesourcery.com>
3941 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3942 order to store PC value on stack instead of text section.
3944 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3946 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3947 the EFP register set size.
3948 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3949 data from the VMX register.
3950 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3951 and write data from/to the VMX register.
3953 2011-02-14 Michael Snyder <msnyder@vmware.com>
3955 * command.h (enum command_class): New class 'no_set_class', for
3956 "show" commands without a corresponding "set" command.
3957 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3958 * copying.c (_initialize_copying): Ditto for "show copying" and
3960 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3962 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3963 which there is no corresponding "set" command (eg. "show copying").
3965 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3966 Jan Kratochvil <jan.kratochvil@redhat.com>
3968 * exec.c (section_table_available_memory): Change `len' parameter
3970 * exec.h (section_table_available_memory): Ditto.
3971 * value.h (read_value_memory): Rename the `offset' parameter to
3974 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3975 Jan Kratochvil <jan.kratochvil@redhat.com>
3977 * memrange.c (compare_mem_ranges): Mention sort order in
3979 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3980 * tracepoint.c (traceframe_available_memory): Extend comment to
3981 mention what happens to RESULT when the target does not support
3984 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3985 Jan Kratochvil <jan.kratochvil@redhat.com>
3987 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3990 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3992 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3993 No longer handle NULL values.
3995 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3997 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3998 * value.c: Include "exceptions.h".
3999 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4001 * cp-abi.c: Include gdb_assert.h.
4002 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4003 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4005 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4006 parameters. No longer returns -1 on error.
4007 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4009 * cp-valprint.c: Include exceptions.h.
4010 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4011 the baseclass_offset. Handle unavailable base classes. Use
4012 val_print_invalid_address.
4013 * p-valprint.c: Include exceptions.h.
4014 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4015 when fetching the baseclass_offset. No longer expect
4016 baseclass_offset returning -1. Handle unavailable base classes.
4017 Use val_print_invalid_address.
4018 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4019 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4020 `embedded_offset' and `val' parameters. Adjust.
4021 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4022 parameter, and change its type to gdb_byte pointer. Add
4023 `embedded_offset' and `val' parameters. Adjust. No longer expect
4024 baseclass_offset returning -1.
4025 (value_dynamic_cast): Use value_contents_for_printing rather than
4026 value_contents. Adjust.
4027 (search_struct_field): No longer expect baseclass_offset returning
4029 (search_struct_method): If reading memory from the target is
4030 necessary, wrap it in a new value to pass to baseclass_offset. No
4031 longer expect baseclass_offset returning -1.
4032 (find_method_list): No longer expect baseclass_offset returning
4033 -1. Use value_contents_for_printing rather than value_contents.
4034 * valprint.c (val_print_invalid_address): New function.
4035 * valprint.h (val_print_invalid_address): Declare.
4036 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4037 and `val' parameters. No longer expect baseclass_offset returning
4039 * gnu-v2-abi.c: Include "exceptions.h".
4040 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4041 parameters. Handle unavailable memory. Recurse through
4042 gnuv2_baseclass_offset directly, rather than through
4043 baseclass_offset. No longer returns -1 on not found, instead
4045 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4046 `val' parameters. Adjust.
4048 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4050 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4051 almost but not quite adjacent.
4053 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4055 * value.h (value_entirely_available): Declare.
4056 * value.c (value_entirely_available): New function.
4057 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4058 real type if the pointer is unavailable.
4060 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4062 * valops.c (value_repeat): Use read_value_memory instead of
4065 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4067 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4068 * value.c (value_contents_copy_raw, value_contents_copy): New
4070 (value_primitive_field): Use value_contents_copy_raw instead of
4072 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4074 (value_array, value_slice): Ditto.
4075 * valarith.c (value_subscripted_rvalue): Use
4076 value_contents_copy_raw instead of memcpy.
4078 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4080 <unavailable> references.
4082 * valops.c (get_value_at): Use value_from_contents_and_address,
4083 avoiding read_memory.
4085 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4087 * c-valprint.c (c_val_print): Print a string with unavailable
4088 contents as an array.
4090 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4092 * value.h (unpack_bits_as_long): Delete declaration.
4093 (unpack_value_bits_as_long): Declare.
4094 (unpack_value_field_as_long): Declare.
4095 (value_field_bitfield): Declare.
4096 * value.c (unpack_bits_as_long): Rename to...
4097 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4098 value parameters. Return the extracted result in a new output
4099 parameter. If the value contents are unavailable, return false,
4100 otherwise return true.
4101 (unpack_value_bits_as_long): New.
4102 (unpack_field_as_long): Rename to...
4103 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4104 Add embedded_offset and value parameters. Return the extracted
4105 result in a new output parameter. If the value contents are
4106 unavailable, return false, otherwise return true.
4107 (unpack_value_field_as_long): New.
4108 (unpack_field_as_long_1): New.
4109 (unpack_field_as_long): Reimplement as wrapper around
4110 unpack_value_field_as_long_1.
4111 (value_field_bitfield): New function.
4112 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4113 unpack_value_bits_as_long. Mark the value as unavailable, if it
4115 * jv-valprint.c (java_print_value_fields): Use
4116 value_field_bitfield.
4117 * p-valprint.c (pascal_object_print_value_fields): Use
4118 value_field_bitfield.
4119 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4121 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4123 * value.c (get_internalvar_integer): Also return the int value of
4124 TYPE_CODE_INT INTERNALVAR_VALUE values.
4125 (set_internalvar): Don't special case TYPE_CODE_INT.
4127 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4129 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4130 INTERNALVAR_POINTER.
4132 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4133 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4134 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4136 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4138 * value.h (value_available_contents_eq): Declare.
4139 * value.c (find_first_range_overlap): New function.
4140 (value_available_contents_eq): New function.
4141 * valprint.c (val_print_array_elements): Use
4142 value_available_contents_eq.
4143 * ada-valprint.c (val_print_packed_array_elements): Use
4144 value_available_contents_eq.
4145 * jv-valprint.c (java_value_print): Use
4146 value_available_contents_eq.
4148 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4150 * target.c (target_read_live_memory): New function.
4151 (memory_xfer_live_readonly_partial): New.
4152 (memory_xfer_partial): If reading from a traceframe, fallback to
4153 reading unavailable read-only memory from read-only regions of
4155 * tracepoint.c (disconnect_tracing): Adjust.
4156 (set_current_traceframe): New, factored out from
4157 set_traceframe_number.
4158 (set_traceframe_number): Reimplement to only change the traceframe
4159 number on the GDB side.
4160 (do_restore_current_traceframe_cleanup): Adjust.
4161 (make_cleanup_restore_traceframe_number): New.
4162 (cur_traceframe_number): New global.
4163 (tfile_open): Set cur_traceframe_number to no traceframe.
4164 (set_tfile_traceframe): New function.
4165 (tfile_trace_find): If looking up a traceframe using any method
4166 other than by number, make sure the current tfile traceframe
4167 matches gdb's current traceframe. Update the current tfile
4168 traceframe if the lookup succeeded.
4169 (tfile_fetch_registers, tfile_xfer_partial)
4170 (tfile_get_trace_state_variable_value): Make sure the remote
4171 traceframe matches gdb's current traceframe.
4172 * remote.c (remote_traceframe_number): New global.
4173 (remote_open_1): Set it to -1.
4174 (set_remote_traceframe): New function.
4175 (remote_fetch_registers, remote_store_registers)
4176 (remote_xfer_memory, remote_xfer_partial)
4177 (remote_get_trace_state_variable_value): Make sure the remote
4178 traceframe matches gdb's current traceframe.
4179 (remote_trace_find): If looking up a traceframe using any method
4180 other than by number, make sure the current remote traceframe
4181 matches gdb's current traceframe. Update the current remote
4182 traceframe if the lookup succeeded.
4183 * infrun.c (fetch_inferior_event): Adjust.
4184 * tracepoint.h (set_current_traceframe): Declare.
4185 (get_traceframe_number, set_traceframe_number): Add describing
4188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4190 Mark pieces of values as unavailable if the corresponding memory
4193 * valops.c: Include tracepoint.h.
4194 (value_fetch_lazy): Use read_value_memory.
4195 (read_value_memory): New.
4196 * value.h (read_value_memory): Declare.
4197 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4198 * exec.c (section_table_available_memory): New function.
4199 * exec.h (section_table_available_memory): Declare.
4201 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4203 * Makefile.in (SFILES): Add memrange.c.
4204 (HFILES_NO_SRCDIR): Add memrange.h.
4205 (COMMON_OBS): Add memrange.o.
4206 * memrange.c: New file.
4207 * memrange.h: New file.
4208 * tracepoint.c: Include memrange.h.
4209 (struct mem_range): Delete.
4210 (mem_range_s): Delete.
4211 (traceframe_available_memory): New function.
4212 * tracepoint.h (traceframe_available_memory): Declare.
4214 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4216 * target.h (struct traceframe_info): Forward declare.
4217 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4218 (struct target_ops) <to_traceframe_info>: New field.
4219 (target_traceframe_info): New.
4220 * target.c (update_current_target): Inherit and default
4222 * remote.c (PACKET_qXfer_traceframe_info): New.
4223 (remote_protocol_features): Register qXfer:traceframe-info:read.
4224 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4225 (remote_traceframe_info): New.
4226 (init_remote_ops): Install it.
4227 (_initialize_remote): Install "set/show remote traceframe-info"
4229 * tracepoint.h (parse_traceframe_info): Declare.
4230 * tracepoint.c (struct mem_range): New.
4231 (mem_range_s): New typedef.
4232 (struct traceframe_info): New.
4233 (traceframe_info): New global.
4234 (free_traceframe_info): New function.
4235 (clear_traceframe_info): New function.
4236 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4238 (build_traceframe_info): New function.
4239 (tfile_traceframe_info): New function.
4240 (init_tfile_ops): Install tfile_traceframe_info.
4241 (traceframe_info_start_memory, free_result): New functions.
4242 (memory_attributes, traceframe_info_elements): New globals.
4243 (parse_traceframe_info, get_traceframe_info): New functions.
4244 * features/traceframe-info.dtd: New file.
4245 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4247 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4249 Base support for <unavailable> value contents.
4251 * value.h (value_bytes_available): Declare.
4252 (mark_value_bytes_unavailable): Declare.
4253 * value.c (struct range): New struct.
4254 (range_s): New typedef.
4255 (ranges_overlap): New function.
4256 (range_lessthan): New function.
4257 (ranges_contain_p): New function.
4258 (struct value) <unavailable>: New field.
4259 (value_bytes_available): New function.
4260 (mark_value_bytes_unavailable): New function.
4261 (require_not_optimized_out): Constify parameter.
4262 (require_available): New function.
4263 (value_contents_all, value_contents): Require all bytes be
4265 (value_free): Free `unavailable'.
4266 (value_copy): Copy `unavailable'.
4267 * valprint.h (val_print_unavailable): Declare.
4268 * valprint.c (valprint_check_validity): Rename `offset' parameter
4269 to `embedded_offset'. If printing a scalar, check whether the
4270 value chunk is available.
4271 (val_print_unavailable): New.
4272 (val_print_scalar_formatted): Check whether the value is
4274 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4275 pretty-printing unavailable values.
4277 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4279 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4280 * c-typeprint.c (c_type_print_args): Update the function comment. New
4281 variable param_type, initialize it. Remove const/volatile qualifiers
4282 for language_cplus and !show_artificial. Use param_type.
4284 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4286 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4287 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4288 * symtab.h (struct symtab) <next>: Comment extension.
4290 2011-02-12 Yao Qi <yao@codesourcery.com>
4292 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4294 2011-02-11 Yao Qi <yao@codesourcery.com>
4296 * common/Makefile.in: Add copyright header.
4298 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4300 * infrun.c (proceed): Move switching out and in of tfind mode from
4302 (fetch_inferior_event): ... to here.
4304 2011-02-11 Yao Qi <yao@codesourcery.com>
4306 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4308 * configure.ac: Add common to sub dir.
4309 * configure: Regenerate.
4311 2011-02-11 Yao Qi <yao@codesourcery.com>
4315 * common/Makefile.in: New.
4316 * common/configure.ac: New.
4317 * common/aclocal.m4: New.
4318 * common/configure: Generate.
4320 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4322 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4323 side of the parenthesis.
4326 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4327 * vec.h (VEC_block_remove): Fix comment.
4329 2011-02-08 Michael Snyder <msnyder@vmware.com>
4331 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4333 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4335 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4336 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4339 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4342 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4344 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4345 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4347 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4349 * dwarf2read.c (read_subroutine_type): Set special calling
4350 convention flag for functions compiled by IBM XL C for OpenCL.
4351 * ppc-sysv-tdep.c: Include "dwarf2.h"
4352 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4354 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4355 IBM OpenCL vector types calling convention.
4356 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4357 (ppc_sysv_abi_broken_return_value): Likewise.
4358 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4359 types calling convention.
4360 (ppc64_sysv_abi_return_value): Likewise.
4361 * spu-tdep.c: Include "dwarf2.h"
4362 (spu_return_value): Implement IBM OpenCL vector types calling
4365 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4368 correct ABI for AltiVec vector arguments.
4370 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4372 * valprint.c (val_print): Extend comment.
4373 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4374 interface explanation to val_print.
4375 (ada_val_print_array): Adjust comment to current interface.
4376 (print_field_values): Adjust comment to current interface.
4377 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4378 explanation to val_print.
4379 * f-valprint.c (f_val_print): Ditto.
4380 * jv-valprint.c (java_val_print): Ditto.
4381 * m2-valprint.c (m2_val_print): Ditto.
4382 * p-valprint.c (pascal_val_print): Ditto.
4384 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4386 * breakpoint.c (parse_breakpoint_sals): Fix description.
4388 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4389 Oguz Kayral <oguzkayral@gmail.com>
4391 * python/py-inferior.c (python_on_normal_stop): New function.
4392 (python_on_resume): New function.
4393 (python_inferior_exit): New function.
4394 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4395 inferior_exit observers.
4396 * python/py-evtregistry.c: New file.
4397 * python/py-threadevent.c : New file.
4398 * python/py-event.c: New file.
4399 * python/py-evts.c: New file.
4400 * python/py-continueevent.c: New file.
4401 * python/py-bpevent.c: New file.
4402 * python/py-signalevent.c: New file.
4403 * python/py-exetiedevent.c: New file.
4404 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4405 Move struct breakpoint_object from here...
4406 * python/python-internal.h: ... to here.
4407 * python/py-event.h: New file.
4408 * python/py-events.h: New file.
4409 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4410 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4411 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4412 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4413 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4414 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4415 Add build rules for all the above.
4417 2011-02-04 Tom Tromey <tromey@redhat.com>
4419 * dwarf2read.c (dwarf2_section_empty_p): New function.
4420 (dwarf2_read_section): Use dwarf2_section_empty_p.
4421 (dwarf2_section_size): New function.
4422 (dwarf2_get_section_info): Unconditionally read section.
4423 (dwarf2_read_index): Use dwarf2_section_empty_p.
4424 (partial_read_comp_unit_head): Use dwarf2_section_size.
4425 (dwarf2_symbol_mark_computed): Likewise.
4427 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4429 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4431 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4433 * mips-linux-tdep.c: Include xml-syscall.h.
4434 (mips_linux_get_syscall_number): New function.
4435 (mips_linux_init_abi): Add calls to
4436 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4437 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4438 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4439 * syscalls/mips-n32-linux.xml: New file.
4440 * syscalls/mips-n64-linux.xml: New file.
4441 * syscalls/mips-o32-linux.xml: New file.
4443 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4445 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4446 Complain about inverted range entries.
4447 (dwarf2_record_block_ranges): Likewise.
4449 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4452 * breakpoint.c (update_watchpoint): Fix name of the
4453 update_global_location_list function.
4454 (print_one_breakpoint): Fix typo.
4455 (_initialize_breakpoint): Remove extra space in hbreak help
4457 * breakpoint.h (struct bp_location) <length>: Fix field
4460 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4462 * regcache.c (registers_changed_ptid): Don't explictly always
4463 clear `current_regcache'. Only clear current_thread_ptid and
4464 current_thread_arch when PTID matches. Only reinit the frame
4465 cache if PTID matches the current inferior_ptid. Move alloca(0)
4467 (registers_changed): ... here.
4469 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4471 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4472 starts with __stack_chk_guard as stack guard symbol.
4474 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4476 * disasm.c (compare_lines): Handle the end of sequence markers
4477 within the line table to better support disassembling over
4478 compilation unit boundaries.
4480 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4482 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4483 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4484 implementation even if no symbols are available.
4485 (thumb_analyze_prologue): Update call to skip_prologue_function.
4486 (arm_analyze_prologue): Likewise.
4488 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4490 * arm-tdep.c: Include "observer.h".
4491 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4492 (arm_exidx_data_key): New static variable.
4493 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4494 (struct arm_exidx_data): Likewise.
4495 (arm_exidx_data_free): New function.
4496 (arm_compare_exidx_entries): Likewise.
4497 (arm_obj_section_from_vma): Likewise.
4498 (arm_exidx_new_objfile): Likewise.
4499 (arm_find_exidx_entry): Likewise.
4500 (arm_exidx_fill_cache): Likewise.
4501 (arm_exidx_unwind_sniffer): Likewise.
4502 (arm_exidx_unwind): New global variable.
4503 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4504 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4505 observer. Register arm_exidx_data_key as objfile data.
4507 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4509 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4510 due to accessing uninitialized variable. Fix indentation.
4512 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4514 * c-valprint.c (c_value_print): When doing virtual base pointer
4515 adjustment, create a new value with adjusted contents rather than
4516 changing the contents of the value being printed (and getting it
4519 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4521 * xml-support.c (xml_find_attribute): New.
4522 (xinclude_start_include): Use it.
4523 * xml-support.h (xml_find_attribute): Declare.
4524 * memory-map.c (memory_map_start_memory)
4525 (memory_map_start_property): Use xml_find_attribute.
4526 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4528 * remote.c (start_thread): Use xml_find_attribute.
4529 * solib-target.c (library_list_start_segment)
4530 (library_list_start_section, library_list_start_library)
4531 (library_list_start_list): Use xml_find_attribute.
4532 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4533 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4534 (tdesc_start_field): Use xml_find_attribute.
4536 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4538 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4539 (BUILD_OCL_VTYPES): Update.
4541 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4543 * configure.ac: Work around non-GNU sed limitation when computing
4544 python version number.
4545 * configure: Regenerate.
4547 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4549 Fix debug printing of TYPE_INSTANCE.
4550 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4551 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4553 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4555 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4556 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4557 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4558 * ada-operator.inc: Rename the file to ...
4559 * ada-operator.def: ... here, wrap all the entries by macro OP.
4560 * expprint.c (op_name_standard): Remove all the entries. Include
4561 "std-operator.def" instead.
4562 * expression.h (enum exp_opcode): Include "std-operator.def" and
4563 "ada-operator.def". Move all the entries ...
4564 * std-operator.def: ... here, wrap all the entries by macro OP.
4566 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4568 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4569 * breakpoint.c (remove_jit_event_breakpoints): New function.
4570 * jit.c (jit_descriptor_addr): Delete.
4571 (registering_code): Delete.
4572 (clear_int): Delete.
4573 (jit_inferior_data): New variable.
4574 (struct jit_inferior_data): New type.
4575 (get_jit_inferior_data): New function.
4576 (jit_inferior_data_cleanup): New function.
4577 (jit_read_descriptor): Adjust.
4578 (jit_register_code): Adjust.
4579 (jit_breakpoint_re_set_internal): New function; move code here ...
4580 (jit_inferior_init): ... from here.
4581 (jit_breakpoint_re_set): Adjust.
4582 (jit_reset_inferior_data_and_breakpoints): New function.
4583 (jit_inferior_created_observer): Adjust.
4584 (jit_inferior_exit_hook): Adjust.
4585 (jit_executable_changed_observer): New function.
4586 (jit_event_handler): Adjust.
4587 (_initialize_jit): Adjust.
4589 2011-01-31 Michael Snyder <msnyder@vmware.com>
4591 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4594 2011-01-31 Tom Tromey <tromey@redhat.com>
4597 * python/python.c (execute_gdb_command): Call
4598 prevent_dont_repeat.
4599 * top.c (suppress_dont_repeat): New global.
4600 (dont_repeat): Use it.
4601 (prevent_dont_repeat): New function.
4602 * command.h (prevent_dont_repeat): Declare.
4604 2011-01-31 Tom Tromey <tromey@redhat.com>
4606 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4607 * python/py-breakpoint.c (bppy_set_silent): Use
4608 breakpoint_set_silent.
4609 (bppy_set_thread): Use breakpoint_set_thread.
4610 (bppy_set_task): Use breakpoint_set_task.
4611 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4612 (breakpoint_set_task): Declare.
4613 (make_breakpoint_silent): Remove.
4614 * breakpoint.c (breakpoint_set_silent): New function.
4615 (breakpoint_set_thread): Likewise.
4616 (breakpoint_set_task): Likewise.
4617 (make_breakpoint_silent): Remove.
4619 2011-01-31 Tom Tromey <tromey@redhat.com>
4621 * breakpoint.h (user_breakpoint_p): Declare.
4622 * breakpoint.c (user_breakpoint_p): New function.
4623 (breakpoint_1): Use it.
4624 (save_breakpoints): Likewise.
4626 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4628 * configure.ac: Add handling of Python distribution on Windows.
4629 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4630 sysconfig variables are not defined, then do not use them.
4631 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4632 instead. On Windows, return all paths using forward-slashes
4633 rather than backslashes.
4635 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4637 * configure.ac: Remove fallback behavior for building
4638 against Python. Remove tweaking of Python include path.
4639 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4640 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4641 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4642 Always restore CPPFLAGS and LIBS after linking test.
4643 * configure: Regenerated.
4644 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4645 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4646 * python/python-internal.h: Adjust includes of Python .h files.
4648 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4650 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4653 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4655 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4658 2011-01-31 Yao Qi <yao@codesourcery.com>
4660 * arm-linux-nat.c: Update calls to regcache_register_status
4661 instead of regcache_valid_p.
4662 * aix-thread.c: Likewise.
4663 * i386gnu-nat.c: Likewise.
4665 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4668 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4669 touching TYPE_FIELD_ARTIFICIAL.
4671 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4673 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4676 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4678 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4679 selected, don't try iterating over the traceframe's blocks.
4680 (tfile_has_stack): If there's no traceframe selected, then there's
4682 (tfile_has_registers): If there's no traceframe selected, then
4683 there's no registers.
4685 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4687 * target.c (memory_xfer_partial): No need to restore shadows if we
4688 haven't read anything.
4690 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4692 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4693 and val_print_scalar_formatted.
4695 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4697 * tracepoint.c (tfile_read): New.
4698 (tfile_open): Use it.
4699 (tfile_get_traceframe_address): Use it.
4700 (tfile_trace_find): Use it.
4701 (walk_blocks_callback_func): New typedef.
4702 (match_blocktype): New function.
4703 (traceframe_walk_blocks): New function.
4704 (traceframe_find_block_type): New function.
4705 (tfile_fetch_registers, tfile_xfer_partial)
4706 (tfile_get_trace_state_variable_value): Use
4707 traceframe_find_block_type and tfile_read.
4709 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4711 * remote-mips.c: Add internationalization mark ups. Remove
4712 trailing \n from already marked up strings.
4714 2011-01-26 Tom Tromey <tromey@redhat.com>
4716 * python/py-prettyprint.c (print_string_repr): Clear
4717 'addressprint' option when calling val_print_string.
4718 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4719 option when calling val_print_string.
4721 2011-01-26 Tom Tromey <tromey@redhat.com>
4723 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4725 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4727 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4728 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4729 (gdb_py_long_as_ulongest): New defines.
4730 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4731 (gdb_py_int_as_long): Declare.
4732 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4733 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4734 (valpy_long): Add comment.
4735 * python/py-utils.c (get_addr_from_python): Use
4736 gdb_py_long_as_ulongest. Handle overflow properly.
4737 (gdb_py_object_from_longest): New function.
4738 (gdb_py_object_from_ulongest): Likewise.
4739 (gdb_py_int_as_long): Likewise.
4740 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4741 * python/py-symtab.c (salpy_get_pc): Use
4742 gdb_py_long_from_ulongest.
4743 (salpy_get_line): Use PyInt_FromLong.
4744 * python/py-param.c (set_parameter_value): Use
4746 * python/py-lazy-string.c (stpy_get_address): Use
4747 gdb_py_long_from_ulongest.
4748 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4749 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4750 * python/py-breakpoint.c (bppy_set_thread): Use
4752 (bppy_set_task): Likewise.
4753 (bppy_set_ignore_count): Likewise.
4754 (bppy_set_hit_count): Likewise.
4755 * python/py-block.c (blpy_get_start): Use
4756 gdb_py_object_from_ulongest.
4757 (blpy_get_end): Likewise.
4758 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4760 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4763 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4764 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4765 equality test for objfile, initialize addr_low if needed.
4767 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4769 * tui/tui-regs.c (tui_register_format): Remove dead code.
4771 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4773 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4774 instead of print_scalar_formatted.
4775 (print_scalar_formatted): Don't handle 's' format strings here,
4776 and add an assertion that we never see such format here.
4777 * valprint.h (val_print_scalar_formatted): Declare.
4778 * valprint.c (val_print_scalar_formatted): New.
4779 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4780 instead of print_scalar_formatted.
4781 * jv-valprint.c (java_val_print): Ditto.
4782 * p-valprint.c (pascal_val_print): Ditto.
4783 * ada-valprint.c (ada_val_print_1): Ditto.
4784 * f-valprint.c (f_val_print): Ditto.
4785 * infcmd.c (registers_info): Ditto.
4786 * m2-valprint.c (m2_val_print): Ditto.
4788 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4790 * m2-valprint.c (print_unbounded_array): Pass
4791 value_contents_for_printing rather than value_contents, to
4792 m2_print_array_contents. Also pass in the value.
4794 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4796 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4797 (save_gdb_index_command): Switch to .gdb_index version 4.
4799 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4801 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4802 than frame_register, and always pass a valid value to val_print.
4804 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4806 Centralize printing "<optimized out>".
4808 * valprint.h (val_print_optimized_out): Declare.
4809 * cp-valprint.c (cp_print_value_fields): Use
4810 val_print_optimized_out.
4811 * jv-valprint.c (java_print_value_fields): Ditto.
4812 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4813 * printcmd.c (print_formatted): Ditto.
4814 * valprint.c (valprint_check_validity): Ditto.
4815 (value_check_printable): Ditto.
4816 (val_print_optimized_out): New.
4818 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4820 * infcmd.c (default_print_registers_info): Allocate values so to
4821 never pass a NULL value to val_print.
4823 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4825 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4826 boolean. Make sure to always pass a value that matches the
4827 contents buffer to callees. Preserve `address' for following
4829 * value.c (value_contents_for_printing_const): New.
4830 (value_address): Constify value argument.
4831 * value.h (value_contents_for_printing_const): Declare.
4832 (value_address): Constify value argument.
4834 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4836 * regcache.c (struct regcache_descr): Rename
4837 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4838 and sizeof_cooked_register_valid_p to
4839 sizeof_cooked_register_status.
4840 (init_regcache_descr): Adjust.
4841 (struct regcache): Rename register_valid_p field to
4843 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4844 (do_cooked_read): Adjust.
4845 (regcache_valid_p): Rename to ...
4846 (regcache_register_status): ... this. Adjust.
4847 (regcache_invalidate): Adjust.
4848 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4850 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4851 as unavailable, not valid.
4852 (regcache_dump): Adjust.
4853 * regcache.h (enum register_status): New.
4854 (regcache_register_status): Declare.
4855 (regcache_invalidate): Delete declaration.
4856 * corelow.c (get_core_registers): Adjust.
4857 * tracepoint.c (tfile_fetch_registers): Adjust.
4858 * trad-frame.c (REG_VALUE): Rename to ...
4859 (TF_REG_VALUE): ... this.
4860 (REG_UNKNOWN): Rename to ...
4861 (TF_REG_UNKNOWN): ... this.
4862 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4863 * mi/mi-main.c (register_changed_p): Adjust.
4865 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4867 * regcache.c (struct regcache_descr): Remove outdated comment.
4868 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4870 (regcache_xmalloc): Rename to ...
4871 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4872 Allocate the regcache type accordingly.
4873 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4874 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4875 cooked registers, not raw.
4876 (regcache_dup_no_passthrough): Delete.
4877 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4878 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4879 mention obsolete write_register_bytes.
4880 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4882 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4884 Stop remote_read_bytes from handling partial reads itself.
4886 * remote-fileio.c: Include target.h.
4887 (remote_fileio_write_bytes): Delete.
4888 (remote_fileio_func_open, remote_fileio_func_write)
4889 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4891 (remote_fileio_func_stat): Use target_read_memory and
4892 target_write_memory.
4893 (remote_fileio_func_gettimeofday): Use target_write_memory.
4894 (remote_fileio_func_system): Use target_read_memory.
4895 * remote.c (remote_write_bytes): Make it static.
4896 (remote_read_bytes): Don't handle partial reads here.
4897 * remote.h (remote_read_bytes): Delete declaration.
4899 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4901 Simplify XML parsing a bit.
4903 * xml-support.h (gdb_xml_parse_quick): Declare.
4904 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4905 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4907 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4908 gdb_xml_create_parser_and_cleanup_1.
4909 (gdb_xml_parse_quick): New.
4910 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4911 * osdata.c (osdata_parse): Ditto.
4912 * remote.c (remote_threads_info): Ditto.
4913 * solib-target.c (solib_target_parse_libraries): Ditto.
4914 * xml-syscall.c (syscall_parse_xml): Ditto.
4915 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4917 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4919 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4920 with remote-mips.o added to gdb_target_obs.
4921 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4923 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4925 * ada-valprint.c (val_print_packed_array_elements): Pass the
4926 correct struct value to val_print.
4927 (ada_val_print_1): Ditto.
4929 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4931 Don't lose embedded_offset in printing routines throughout.
4933 * valprint.h (val_print_array_elements): Change prototype.
4934 * valprint.c (val_print_array_elements): Add `embedded_offset'
4935 parameter, and adjust to pass it down to val_print, while passing
4936 `valaddr' or `address' unmodified. Take embedded_offset into
4937 account when checking repetitions.
4938 * c-valprint.c (c_val_print): Pass embedded_offset to
4939 val_print_array_elements instead of adjusting `valaddr' and
4941 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4942 embedded_offset to val_print_array_elements instead of adjusting
4944 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4945 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4946 val_print_array_elements and pascal_object_print_value_fields
4947 instead of adjusting `valaddr'.
4948 (pascal_object_print_value_fields): Add `offset' parameter, and
4950 (pascal_object_print_value): Add `offset' parameter, and adjust to
4952 (pascal_object_print_static_field): Use
4953 value_contents_for_printing/value_embedded_offset, rather than
4955 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4956 parameter, and adjust to use it. Use
4957 value_contents_for_printing/value_embedded_offset, rather than
4959 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4960 (ada_val_print_array): Add `offset' parameter, and adjust to use
4962 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4963 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4964 Instead work with offsets. Use
4965 value_contents_for_printing/value_embedded_offset, rather than
4966 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4967 and use value_from_pointer to extract a target pointer, rather
4968 than value_from_longest.
4969 (print_variant_part): Add `offset' parameter. Replace
4970 `outer_valaddr' parameter by a new `outer_offset' parameter.
4971 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4972 (ada_value_print): Use
4973 value_contents_for_printing/value_embedded_offset, rather than
4975 (print_record): Add `offset' parameter, and adjust to pass it
4977 (print_field_values): Add `offset' parameter. Replace
4978 `outer_valaddr' parameter by a new `outer_offset' parameter.
4979 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4980 Use value_contents_for_printing/value_embedded_offset, rather than
4982 * d-valprint.c (dynamic_array_type): Use
4983 value_contents_for_printing/value_embedded_offset, rather than
4985 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4986 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4987 (java_print_value_fields): Take `offset' into account. Don't
4988 re-adjust `valaddr'. Instead pass down adjusted offsets.
4989 (java_val_print): Take `embedded_offset' into account. Pass it to
4990 java_print_value_fields.
4991 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4992 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4993 down adjusted offsets.
4994 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4995 (f_val_print): Take `embedded_offset' into account.
4997 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4999 * inflow.c: Include "gdbcmd.h".
5000 (interactive_mode): New static global, moved here from top.c.
5001 (show_interactive_mode): New function, moved here from top.c.
5002 use gdb_has_a_terminal instead of input_from_terminal_p to
5003 determine the current mode.
5004 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5006 (_initialize_inflow): Add the "set/show interactive-mode"
5007 commands. Moved here from top.c, after having adjusted slightly
5009 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5011 (input_from_terminal_p): Remove handling of "interactive-mode"
5012 setting, moved to infow.c.
5013 (init_main): Remove creation of the "set/show interactive-mode"
5014 commands, moved to inflow.c.
5016 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5018 * NEWS: Add entry for native ia64-hpux support.
5020 2011-01-19 Tom Tromey <tromey@redhat.com>
5023 * thread.c (free_thread): Free 'name'.
5024 (print_thread_info): Emit thread name. Change CLI output.
5025 (thread_name_command): New function.
5026 (do_captured_thread_select): Emit newline.
5027 (_initialize_thread): Register 'thread name' command.
5028 * target.h (struct target_ops) <to_thread_name>: New field.
5029 (target_thread_name): New macro.
5030 * target.c (update_current_target): Handle to_thread_name.
5031 * python/py-infthread.c (thpy_get_name): New function.
5032 (thpy_set_name): Likewise.
5033 (thread_object_getset): Add "name".
5034 * linux-nat.c (linux_nat_thread_name): New function.
5035 (linux_nat_add_target): Set to_thread_name.
5036 * gdbthread.h (struct thread_info) <name>: New field.
5038 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5040 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5041 (ada_val_print_1): Likewise.
5043 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5045 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5046 upper limit address is not greater than the function end address
5047 when the upper limit could not be computed using the debugging
5050 2011-01-17 Tom Tromey <tromey@redhat.com>
5052 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5054 * utils.c: Include gdb_regex.h.
5055 (do_regfree_cleanup): New function.
5056 (make_regfree_cleanup): Likewise.
5057 (get_regcomp_error): Likewise.
5058 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5060 2011-01-17 Tom Tromey <tromey@redhat.com>
5062 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5065 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5067 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5068 for internal variables.
5069 (last_was_structop): New static variable.
5070 (COMPLETE): New token.
5071 (field_exp): New rule to group all '.' suffix handling.
5072 Add mark_struct_expression calls when approriate to be able
5073 to correctly find fields for completion.
5074 (yylex): Adapt to handle field completion and set INTVAR when
5077 2011-01-14 Yao Qi <yao@codesourcery.com>
5079 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5080 save_reggroup, restore_reggroup and all_reggroup.
5082 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5084 * ada-valprint. (ada_printchar): Use the correct type length
5085 in call to ada_emit_char.
5086 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5088 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5090 * solib-som.h (hpux_major_release): Declare variable here.
5091 * solib-som.c: Remove <sys/utsname.h> header.
5092 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5093 (hpux_major_release): Make global, change default value to
5094 DEFAULT_HPUX_MAJOR_RELEASE.
5095 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5096 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5097 Add "solib-som.h" header.
5098 (set_hpux_major_release): New function.
5099 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5101 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5103 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5105 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5107 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5108 new-line at end of warning message.
5109 (ia64_hpux_store_register): Remove trailing new-line at end of
5111 * ia64-hpux-tdep.c: Rephrase comment.
5112 * solib-ia64-hpux.c (struct dld_info): Change type of field
5113 dld_flags from "long long" to ULONGEST.
5115 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5117 * target.h (deprecated_child_ops): Delete declaration.
5118 * target.c (deprecated_child_ops): Delete definition.
5120 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5122 * Makefile.in (hpux-thread.o): Delete rule.
5123 * configure.ac: Don't check for HPUX DCE threads support.
5124 * configure, config.in: Regenerate.
5125 * hppa-hpux-nat.c (child_suppress_run): Delete.
5126 (hppa_hpux_child_can_run): Delete.
5127 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5128 * hpux-thread.c: Delete.
5130 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5132 * hpux-thread.c (hpux_pid_to_str): Delete.
5134 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5136 * ada-valprint.c (ada_emit_char): Remove strange code.
5137 Check that c is <= UCHAR_MAX before passing it to isascii.
5138 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5140 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5142 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5143 to the case where instream is stdin.
5145 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5147 * ia64-tdep.h (struct regcache): Forward declare.
5148 (struct ia64_infcall_ops): New struct type.
5149 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5151 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5152 Renames ia64_find_global_pointer.
5153 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5154 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5155 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5157 (ia64_infcall_ops): New static global constant.
5158 (ia64_gdbarch_init): Set tdep->infcall_ops.
5159 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5160 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5161 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5162 (ia64_hpux_dummy_code): New static global constant.
5163 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5164 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5165 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5167 (ia64_hpux_infcall_ops): New static global constant.
5168 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5169 for inferior function calls to work properly on ia64-hpux.
5171 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5173 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5174 * ia64-tdep.h (struct frame_info): forward declaration.
5175 (struct gdbarch_tdep): Add field size_of_register_frame.
5176 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5177 to determine the size of the register frame.
5178 (ia64_size_of_register_frame): New function.
5179 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5180 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5181 (IA64_HPUX_UREG_REASON): New macro.
5182 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5184 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5185 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5186 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5189 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5191 Add support for ia64-hpux.
5192 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5193 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5195 * configure.host: Add handling for ia64-hpux hosts. Add associated
5197 * configure.tgt: Add handling for ia64-hpux targets.
5198 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5199 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5200 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5202 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5204 [ttrace] Compute thread list immediately after attach.
5205 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5207 (inf_ttrace_attach): Use it.
5209 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5211 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5212 if we could not determine the frame's function address. Instead,
5213 use the frame's PC, and then continue.
5215 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5217 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5218 not already defined.
5220 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5222 * ia64-tdep.c (ia64_struct_type_p): New function.
5223 (ia64_extract_return_value): Handle integral values that are
5224 less than 8 bytes long.
5225 (ia64_push_dummy_call): Likewise.
5227 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5229 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5230 floatformat_ia64_ext.
5231 (floatformat_ia64_ext_big): New static const.
5232 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5234 2011-01-12 Tom Tromey <tromey@redhat.com>
5236 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5238 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5239 (mi_cmd_thread_list_ids): Likewise.
5240 (mi_cmd_data_list_changed_registers): Likewise.
5241 (mi_cmd_data_list_register_values): Likewise.
5242 (mi_cmd_data_write_register_values): Likewise.
5243 (mi_cmd_data_evaluate_expression): Likewise.
5244 (mi_cmd_data_read_memory): Likewise.
5245 (mi_cmd_data_read_memory_bytes): Likewise.
5246 (mi_cmd_data_write_memory): Likewise.
5247 (mi_cmd_enable_timings): Likewise.
5248 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5249 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5250 (mi_cmd_var_delete): Likewise.
5251 (mi_cmd_var_set_format): Likewise.
5252 (mi_cmd_var_show_format): Likewise.
5253 (mi_cmd_var_info_num_children): Likewise.
5254 (mi_cmd_var_list_children): Likewise.
5255 (mi_cmd_var_info_type): Likewise.
5256 (mi_cmd_var_info_expression): Likewise.
5257 (mi_cmd_var_show_attributes): Likewise.
5258 (mi_cmd_var_assign): Likewise.
5259 (mi_cmd_var_update): Likewise.
5260 (mi_cmd_enable_pretty_printing): Likewise.
5261 (mi_cmd_var_set_update_range): Likewise.
5262 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5264 (mi_cmd_target_file_put): Likewise.
5265 (mi_cmd_target_file_delete): Likewise.
5266 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5268 (mi_cmd_stack_info_depth): Likewise.
5269 (mi_cmd_stack_list_locals): Likewise.
5270 (mi_cmd_stack_list_args): Likewise.
5271 (mi_cmd_stack_select_frame): Likewise.
5272 (mi_cmd_stack_select_frame): Likewise.
5273 (mi_cmd_stack_info_frame): Likewise.
5274 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5276 (mi_cmd_file_list_exec_source_files): Likewise.
5277 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5278 (mi_cmd_env_cd): Likewise.
5279 (mi_cmd_env_path): Likewise.
5280 (mi_cmd_env_dir): Likewise.
5281 (mi_cmd_inferior_tty_show): Likewise.
5282 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5283 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5284 (mi_cmd_break_watch): Likewise.
5286 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5288 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5289 (ppc_linux_insert_hw_breakpoint): Likewise.
5290 (ppc_linux_remove_hw_breakpoint): Likewise.
5291 (ppc_linux_insert_watchpoint): Likewise.
5293 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5294 Jan Kratochvil <jan.kratochvil@redhat.com>
5296 PR fortran/11104 and DWARF unbound arrays detection.
5297 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5298 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5299 unspecified upper bound.
5300 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5301 variables array_size_array, tmp_type and offset_item. New variable
5302 array. Remove call to f77_get_upperbound. New variables array_type
5303 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5304 the final call to deprecated_set_value_type.
5306 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5308 Make value allocations more lazy.
5309 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5310 instead of allocate_value and set_value_lazy when possible.
5311 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5312 instead of allocate_value and set_value_lazy.
5313 * findvar.c (value_of_register_lazy): Likewise.
5314 (read_var_value): Remove V preallocation, call just check_typedef in
5315 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5316 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5317 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5318 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5319 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5320 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5321 the end, remove set_value_lazy there.
5322 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5323 instead of allocate_value and set_value_lazy when possible.
5324 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5325 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5326 of allocate_value and set_value_lazy.
5327 (value_from_contents_and_address): Use allocate_value_lazy instead of
5328 allocate_value and set_value_lazy when possible.
5330 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5332 * disasm.c (dump_insns): Support dumping opcodes for MI.
5333 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5334 dumping of instruction opcodes.
5336 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5338 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5341 2011-01-11 Tom Tromey <tromey@redhat.com>
5343 * thread.c (do_captured_thread_select): Emit newline before
5346 2011-01-11 Michael Snyder <msnyder@vmware.com>
5348 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5349 * score-tdep.c: Ditto.
5350 * score-tdep.h: Ditto.
5351 * ser-base.c: Ditto.
5352 * ser-go32.c: Ditto.
5355 * ser-mingw.c: Ditto.
5356 * ser-pipe.c: Ditto.
5358 * ser-unix.c: Ditto.
5359 * sh64-tdep.c: Ditto.
5360 * shnbsd-nat.c: Ditto.
5364 * solib-darwin.c: Ditto.
5365 * solib-frv.c: Ditto.
5367 * solib-irix.c: Ditto.
5368 * solib-osf.c: Ditto.
5369 * solib-pa64.c: Ditto.
5370 * solib-som.c: Ditto.
5371 * solib-spu.c: Ditto.
5372 * solib-sunos.c: Ditto.
5373 * solib-svr4.c: Ditto.
5375 * sol-thread.c: Ditto.
5379 * sparc64-linux-tdep.c: Ditto.
5380 * sparc64-tdep.c: Ditto.
5381 * sparc-linux-nat.c: Ditto.
5382 * sparc-linux-tdep.c: Ditto.
5383 * sparc-sol2-nat.c: Ditto.
5384 * sparc-sol2-tdep.c: Ditto.
5385 * sparc-tdep.c: Ditto.
5386 * sparc-tdep.h: Ditto.
5387 * spu-tdep.c: Ditto.
5388 * stabsread.c: Ditto.
5389 * stabsread.h: Ditto.
5397 * target-descriptions.c: Ditto.
5398 * target-descriptions.h: Ditto.
5400 * target-memory.c: Ditto.
5401 * terminal.h: Ditto.
5404 * tracepoint.c: Ditto.
5405 * tracepoint.h: Ditto.
5406 * trad-frame.h: Ditto.
5407 * typeprint.c: Ditto.
5409 2011-01-11 Michael Snyder <msnyder@vmware.com>
5411 * ui-file.c: Comment cleanup, mostly periods and spaces.
5416 * v850-tdep.c: Ditto.
5417 * valarith.c: Ditto.
5419 * valprint.c: Ditto.
5420 * valprint.h: Ditto.
5425 * vax-tdep.c: Ditto.
5429 * windows-nat.c: Ditto.
5430 * windows-tdep.c: Ditto.
5431 * xcoffread.c: Ditto.
5432 * xcoffsolib.c: Ditto.
5433 * xml-support.c: Ditto.
5434 * xstormy16-tdep.c: Ditto.
5435 * xtensa-tdep.c: Ditto.
5436 * xtensa-tdep.h: Ditto.
5438 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5440 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5441 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5443 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5444 Thiago Jung Bauermann <bauerman@br.ibm.com>
5446 Implement support for PowerPC BookE ranged watchpoints.
5448 (struct breakpoint_ops) <resources_needed>: New method.
5449 Initialize to NULL in all existing breakpoint_ops instances.
5450 (struct breakpoint) <exact>: New field.
5451 (target_exact_watchpoints): Declare external global.
5452 * breakpoint.c (target_exact_watchpoints): New global flag.
5453 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5454 b->enable_state to bp_enabled before calling
5455 hw_watchpoint_used_count.
5456 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5457 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5459 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5460 if the watchpoint is exact.
5461 (resources_needed_watchpoint): New function.
5462 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5463 (watch_command_1): Set b->exact if the user asked for an exact
5464 watchpoint and one can be set.
5465 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5466 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5467 the user asks for an exact watchpoint and one can be set. Return
5468 number of needed debug registers to watch the expression.
5469 * gdbtypes.c (is_scalar_type): New function, based on
5470 valprint.c:scalar_type_p.
5471 (is_scalar_type_recursive): New function.
5472 * gdbtypes.h (is_scalar_type_recursive): Declare.
5473 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5474 handle regions when ranged watchpoints are available.
5475 (create_watchpoint_request): New function.
5476 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5477 create_watchpoint_request.
5478 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5479 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5480 `set powerpc' and `show powerpc' commands.
5481 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5482 Mention documentation comment in the target macro.
5483 (target_region_ok_for_hw_watchpoint): Document return value.
5485 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5487 * breakpoint.c (update_watchpoint): Decide on using a software or
5488 hardware watchpoint after the bp_locations are created.
5490 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5492 Convert hardware watchpoints to use breakpoint_ops.
5493 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5494 <insert_location>: ... this. Return int instead of void.
5495 Accept pointer to struct bp_location instead of pointer to
5496 struct breakpoint. Adapt all implementations.
5497 (breakpoint_ops) <remove>: Rename to...
5498 <remove_location>: ... this. Accept pointer to struct bp_location
5499 instead of pointer to struct breakpoint. Adapt all implementations.
5500 * breakpoint.c (insert_catchpoint): Delete function.
5501 (insert_bp_location): Call the watchpoint or catchpoint's
5502 breakpoint_ops.insert method.
5503 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5504 breakpoint_ops.remove method.
5505 (insert_watchpoint, remove_watchpoint): New functions.
5506 (watchpoint_breakpoint_ops): New structure.
5507 (watch_command_1): Initialize the OPS field.
5508 * inf-child.c (inf_child_insert_fork_catchpoint)
5509 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5510 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5511 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5513 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5514 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5515 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5516 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5517 * target.c (update_current_target): Change default implementation of
5518 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5519 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5520 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5521 to_set_syscall_catchpoint to return_one.
5522 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5523 (debug_to_insert_exec_catchpoint): Report return value.
5524 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5525 (to_insert_exec_catchpoint): Change declaration to return int instead
5528 2011-01-11 Michael Snyder <msnyder@vmware.com>
5530 * arm-tdep.c: Internationalization.
5533 * fork-child.c: Ditto.
5534 * nto-procfs.c: Ditto.
5535 * ppc-sysv-tdep.c: Ditto.
5537 * remote-mips.c: Ditto.
5539 * rs6000-nat.c: Ditto.
5540 * rs6000-tdep.c: Ditto.
5544 * xml-support.c: Ditto.
5545 * mi/mi-cmd-break.c: Ditto.
5546 * mi/mi-cmd-var.c: Ditto.
5547 * mi/mi-interp.c: Ditto.
5548 * mi/mi-main.c: Ditto.
5550 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5552 * remote-sim.c (gdbsim_store_register): Update API to
5553 sim_store_register to check more error conditions.
5555 2011-01-10 Michael Snyder <msnyder@vmware.com>
5557 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5558 * nto-tdep.c: Ditto.
5559 * nto-tdep.h: Ditto.
5560 * objc-exp.y: Ditto.
5561 * objc-lang.c: Ditto.
5562 * objfiles.c: Ditto.
5563 * objfiles.h: Ditto.
5564 * observer.c: Ditto.
5565 * opencl-lang.c: Ditto.
5568 * parser-defs.h: Ditto.
5571 * posix-hdep.c: Ditto.
5572 * ppcbug-rom.c: Ditto.
5573 * ppc-linux-nat.c: Ditto.
5574 * ppc-linux-tdep.c: Ditto.
5575 * ppc-linux-tdep.h: Ditto.
5576 * ppcnbsd-tdep.c: Ditto.
5577 * ppcobsd-tdep.c: Ditto.
5578 * ppcobsd-tdep.h: Ditto.
5579 * ppc-sysv-tdep.c: Ditto.
5580 * ppc-tdep.h: Ditto.
5581 * printcmd.c: Ditto.
5582 * proc-abi.c: Ditto.
5583 * proc-flags.c: Ditto.
5585 * proc-utils.h: Ditto.
5586 * progspace.h: Ditto.
5587 * prologue-value.c: Ditto.
5588 * prologue-value.h: Ditto.
5589 * psympriv.h: Ditto.
5591 * p-typeprint.c: Ditto.
5592 * p-valprint.c: Ditto.
5593 * ravenscar-sparc-thread.c: Ditto.
5594 * ravenscar-thread.c: Ditto.
5595 * ravenscar-thread.h: Ditto.
5597 * regcache.c: Ditto.
5598 * regcache.h: Ditto.
5600 * remote-fileio.c: Ditto.
5601 * remote-fileio.h: Ditto.
5603 * remote-m32r-sdi.c: Ditto.
5604 * remote-mips.c: Ditto.
5605 * remote-sim.c: Ditto.
5606 * rs6000-aix-tdep.c: Ditto.
5607 * rs6000-nat.c: Ditto.
5608 * rs6000-tdep.c: Ditto.
5610 2011-01-10 Michael Snyder <msnyder@vmware.com>
5612 * charset.c (validate): Internationalization.
5613 * coffread.c (read_one_sym): Ditto.
5614 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5615 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5616 * inflow.c (new_tty): Ditto.
5617 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5618 * m32c-tdep.c (m32c_return_value): Ditto.
5619 * mep-tdep.c (mep_store_return_value): Ditto.
5620 * score-tdep.c (score7_fetch_insn): Ditto.
5621 * ser-mingw.c (pipe_windows_open): Ditto.
5622 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5623 * spu-tdep.c (spu_register_type): Ditto.
5624 * tracepoint.c (trace_find_command): Ditto.
5625 * valarith.c (value_pos): Ditto.
5627 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5629 * ada-valprint.c (printstr): Minor comment reformatting.
5631 2011-01-08 Michael Snyder <msnyder@vmware.com>
5633 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5636 2011-01-08 Michael Snyder <msnyder@vmware.com>
5638 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5639 * hppa-hpux-tdep.c: Ditto.
5640 * hppa-linux-nat.c: Ditto.
5641 * hppa-linux-tdep.c: Ditto.
5642 * hppanbsd-tdep.c: Ditto.
5643 * hppa-tdep.c: Ditto.
5644 * hppa-tdep.h: Ditto.
5645 * hpux-thread.c: Ditto.
5646 * i386-cygwin-tdep.c: Ditto.
5647 * i386-darwin-nat.c: Ditto.
5648 * i386gnu-nat.c: Ditto.
5649 * i386-linux-nat.c: Ditto.
5650 * i386-linux-tdep.c: Ditto.
5651 * i386-nat.c: Ditto.
5652 * i386-nat.h: Ditto.
5653 * i386nbsd-tdep.c: Ditto.
5654 * i386-sol2-nat.c: Ditto.
5655 * i386-stub.c: Ditto.
5656 * i386-tdep.c: Ditto.
5657 * i386-tdep.h: Ditto.
5658 * i387-tdep.c: Ditto.
5659 * ia64-linux-nat.c: Ditto.
5660 * ia64-linux-tdep.c: Ditto.
5661 * ia64-tdep.c: Ditto.
5665 * inferior.c: Ditto.
5666 * inferior.h: Ditto.
5672 * iq2000-tdep.c: Ditto.
5673 * irix5-nat.c: Ditto.
5679 * jv-typeprint.c: Ditto.
5680 * jv-valprint.c: Ditto.
5681 * language.c: Ditto.
5682 * language.h: Ditto.
5683 * linespec.c: Ditto.
5684 * linux-fork.c: Ditto.
5685 * linux-nat.c: Ditto.
5686 * linux-thread-db.c: Ditto.
5687 * lm32-tdep.c: Ditto.
5689 2011-01-08 Michael Snyder <msnyder@vmware.com>
5691 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5693 * m2-typeprint.c: Ditto.
5694 * m2-valprint.c: Ditto.
5695 * m32c-tdep.c: Ditto.
5696 * m32r-linux-nat.c: Ditto.
5697 * m32r-rom.c: Ditto.
5698 * m32r-tdep.c: Ditto.
5699 * m32r-tdep.h: Ditto.
5700 * m68hc11-tdep.c: Ditto.
5701 * m58klinux-nat.c: Ditto.
5702 * m68k-tdep.c: Ditto.
5703 * m88k-tdep.c: Ditto.
5704 * m88k-tdep.h: Ditto.
5705 * machoread.c: Ditto.
5706 * macrocmd.c: Ditto.
5707 * macroexp.c: Ditto.
5708 * macrotab.c: Ditto.
5711 * mdebugread.c: Ditto.
5712 * mdebugread.h: Ditto.
5715 * memory-map.h: Ditto.
5716 * mep-tdep.c: Ditto.
5717 * microblaze-rom.c: Ditto.
5718 * microblaze-tdep.c: Ditto.
5720 * mips-irix-tdep.c: Ditto.
5721 * mips-linux-nat.c: Ditto.
5722 * mips-linux-tdep.c: Ditto.
5723 * mips-linux-tdep.h: Ditto.
5724 * mipsnbsd-nat.c: Ditto.
5725 * mipsnbsd-tdep.c: Ditto.
5726 * mipsread.c: Ditto.
5727 * mips-tdep.c: Ditto.
5728 * mips-tdep.h: Ditto.
5729 * mn10300-linux-tdep.c: Ditto.
5730 * mn10300-tdep.c: Ditto.
5731 * mn10300-tdep.h: Ditto.
5734 * moxie-tdep.c: Ditto.
5735 * moxie-tdep.h: Ditto.
5738 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5740 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5742 2011-01-08 Robert Millan <rmh@gnu.org>
5744 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5746 2011-01-07 Michael Snyder <msnyder@vmware.com>
5748 * charset.c (_initialize_charset): Fix typo in string.
5750 2011-01-07 Michael Snyder <msnyder@vmware.com>
5752 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5754 * tui/tui-layout.c (tui_set_layout_for_display_command):
5755 Split line so that operator goes to beginning of line.
5756 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5757 assignment out of if statement.
5759 2011-01-07 Michael Snyder <msnyder@vmware.com>
5761 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5762 * ada-lang.h: Ditto.
5763 * ada-tasks.c: Ditto.
5764 * ada-valprint.c: Ditto.
5765 * aix-threads.c: Ditto.
5766 * alpha-linux-nat.c: Ditto.
5767 * alpha-linux-tdep.c: Ditto.
5768 * alpha-mdebug-tdep.c: Ditto.
5769 * alpha-nat.c: Ditto.
5770 * alpha-osf1-tdep.c: Ditto.
5771 * alpha-tdep.c: Ditto.
5772 * alphabsd-nat.c: Ditto.
5773 * alphabsd-tdep.c: Ditto.
5774 * amd64-darwin-tdep.c: Ditto.
5775 * amd64-linux-nat.c: Ditto.
5776 * amd64-linux-tdep.c: Ditto.
5777 * amd64-sol2-tdep.c: Ditto.
5778 * amd64-tdep.c: Ditto.
5779 * amd64-fbsd-tdep.c: Ditto.
5780 * amd64-nbsd-tdep.c: Ditto.
5781 * amd64-obsd-tdep.c: Ditto.
5782 * amd64-linux-nat.c: Ditto.
5783 * amd64-linux-tdep.c: Ditto.
5784 * arm-tdep.c: Ditto.
5785 * arm-tdep.h: Ditto.
5786 * armnbsd-nat.c: Ditto.
5787 * avr-tdep.c: Ditto.
5788 * bfin-tdep.c: Ditto.
5790 * c-typeprintc: Ditto.
5791 * c-valprint.c: Ditto.
5792 * coff-pe-read.h: Ditto.
5793 * coffreead.c: Ditto.
5794 * cris-tdep.c: Ditto.
5796 * darwin-nat-info.c: Ditto.
5797 * darwin-nat.c: Ditto.
5798 * dbug-rom.c: Ditto.
5802 * dec-thread.c: Ditto.
5804 * demangle.c: Ditto.
5805 * dicos-tdep.c: Ditto.
5806 * dictionary.c: Ditto.
5807 * dictionary.h: Ditto.
5808 * dink32-rom.c: Ditto.
5810 * doublest.c: Ditto.
5812 * dummy-frame.c: Ditto.
5813 * dwarf2-frame.c: Ditto.
5814 * dwarf2expr.c: Ditto.
5815 * dwarf2loc.c: Ditto.
5816 * dwarf2read.c: Ditto.
5820 * event-top.h: Ditto.
5821 * exceptions.c: Ditto.
5822 * exceptions.h: Ditto.
5824 * expprint.c: Ditto.
5825 * expression.h: Ditto.
5829 * f-typeprint.c: Ditto.
5830 * f-valprint.c: Ditto.
5831 * fbsd-nat.c: Ditto.
5833 * fork-child.c: Ditto.
5836 * frv-linux-tdep.c: Ditto.
5837 * frv-tdep.c: Ditto.
5839 * gdb-stabs.h: Ditto.
5840 * gdb_assert.h: Ditto.
5841 * gdb_string.h: Ditto.
5842 * gdb_thread_db.h: Ditto.
5843 * gdb_wait.h: Ditto.
5844 * gdbarch.sh: Ditto.
5846 * gdbthread.h: Ditto.
5847 * gdbtypes.c: Ditto.
5848 * gdbtypes.h: Ditto.
5851 * gnu-v2-abi.c: Ditto.
5852 * gnu-v3-abi.c: Ditto.
5853 * go32-nat.c: Ditto.
5854 * gdbarch.c: Regenerate.
5855 * gdbarch.h: Regenerate.
5857 2011-01-07 Michael Snyder <msnyder@vmware.com>
5859 * ax-gdb.c: Adjust some long output strings.
5860 * breakpoint.c: Ditto.
5865 * linux-nat.c: Ditto.
5866 * solib-pa64.c: Ditto.
5867 * solib-som.c: Ditto.
5869 2011-01-06 Tom Tromey <tromey@redhat.com>
5873 * python/python.c (GdbMethods): Add "newest_frame" method.
5874 * python/python-internal.h (gdbpy_newest_frame): Declare.
5875 * python/py-frame.c (gdbpy_newest_frame): New function.
5877 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5879 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5880 * jit.c (jit_debug): New variable.
5881 (show_jit_debug): New function.
5882 (struct target_buffer): Use ULONGEST.
5883 (bfd_open_from_target_memory): Likewise.
5884 (jit_register_code, jit_inferior_init): Add debug output.
5885 (_initialize_jit): Register "debug jit" command.
5887 2011-01-06 Tom Tromey <tromey@redhat.com>
5889 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5890 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5893 2011-01-06 Tom Tromey <tromey@redhat.com>
5895 * python/py-frame.c (frapy_block): Use get_frame_block.
5897 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5899 Do not stop on SIGPRIO signals by default
5900 * infrun.c (_initialize_infrun): Unset signal_stop and
5901 signal_print for TARGET_SIGNAL_PRIO.
5903 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5905 * ada-tasks.c: Fix style violation in comment.
5907 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5909 * linespec.c (decode_compound, find_method): Remove trailing \n
5910 at end of error string.
5911 * solib-irix.c (irix_current_sos): Likewise.
5912 * varobj.c (uninstall_variable): Likewise.
5914 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5916 * copyright.py: New script.
5917 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5918 Launch emacs without exec'ing. Call copyright.py afterwards.
5920 2011-01-05 Michael Snyder <msnyder@vmware.com>
5922 * addrmap.c: Shorten lines of >= 80 columns.
5923 * arch-utils.c: Ditto.
5924 * arch-utils.h: Ditto.
5926 * ax-general.c: Ditto.
5928 * blockframe.c: Ditto.
5929 * breakpoint.c: Ditto.
5930 * buildsym.c: Ditto.
5932 * c-typeprint.c: Ditto.
5934 * coffread.c: Ditto.
5938 * cp-namespace.c: Ditto.
5939 * cp-support.c: Ditto.
5940 * dbug-rom.c: Ditto.
5945 * dictionary.c: Ditto.
5947 * doublest.c: Ditto.
5948 * dwarf2-frame.c: Ditto.
5949 * dwarf2expr.c: Ditto.
5950 * dwarf2loc.c: Ditto.
5951 * dwarf2read.c: Ditto.
5954 * event-loop.c: Ditto.
5955 * event-loop.h: Ditto.
5956 * exceptions.h: Ditto.
5958 * expprint.c: Ditto.
5959 * expression.h: Ditto.
5961 * f-valprint.c: Ditto.
5963 * frame-base.c: Ditto.
5964 * frame-unwind.c: Ditto.
5965 * frame-unwind.h: Ditto.
5969 * gdb-stabs.h: Ditto.
5970 * gdb_assert.h: Ditto.
5971 * gdb_dirent.h: Ditto.
5972 * gdb_obstack.h: Ditto.
5974 * gdbtypes.c: Ditto.
5975 * gdbtypes.h: Ditto.
5976 * inf-ttrace.c: Ditto.
5981 * inline-frame.h: Ditto.
5982 * language.c: Ditto.
5983 * language.h: Ditto.
5984 * libunwind-frame.c: Ditto.
5985 * libunwind-frame.h: Ditto.
5986 * linespec.c: Ditto.
5987 * linux-nat.c: Ditto.
5988 * linux-nat.h: Ditto.
5989 * linux-thread-db.c: Ditto.
5990 * machoread.c: Ditto.
5991 * macroexp.c: Ditto.
5992 * macrotab.c: Ditto.
5995 * mdebugread.c: Ditto.
6000 * objfiles.c: Ditto.
6001 * objfiles.h: Ditto.
6003 * p-typeprint.c: Ditto.
6004 * p-valprint.c: Ditto.
6006 * printcmd.c: Ditto.
6007 * proc-events.c: Ditto.
6009 * progspace.c: Ditto.
6010 * progspace.h: Ditto.
6011 * psympriv.h: Ditto.
6014 * regcache.c: Ditto.
6015 * regcache.h: Ditto.
6016 * remote-fileio.c: Ditto.
6018 * ser-mingw.c: Ditto.
6020 * ser-unix.c: Ditto.
6023 * solib-frv.c: Ditto.
6024 * solib-irix.c: Ditto.
6025 * solib-osf.c: Ditto.
6026 * solib-pa64.c: Ditto.
6027 * solib-som.c: Ditto.
6028 * solib-sunos.c: Ditto.
6029 * solib-svr4.c: Ditto.
6030 * solib-target.c: Ditto.
6034 * stabsread.c: Ditto.
6035 * stabsread.c: Ditto.
6038 * symfile-mem.c: Ditto.
6044 * target-descriptions.c: Ditto.
6045 * target-memory.c: Ditto.
6048 * terminal.h: Ditto.
6051 * tracepoint.c: Ditto.
6052 * tracepoint.h: Ditto.
6056 * user-regs.c: Ditto.
6057 * user-regs.h: Ditto.
6059 * valarith.c: Ditto.
6061 * valprint.c: Ditto.
6062 * valprint.h: Ditto.
6067 * xcoffread.c: Ditto.
6068 * xcoffsolib.c: Ditto.
6069 * xcoffsolib.h: Ditto.
6070 * xml-syscall.c: Ditto.
6071 * xml-tdesc.c: Ditto.
6073 2011-01-05 Michael Snyder <msnyder@vmware.com>
6075 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6076 * cli/cli-decode.c: Ditto.
6077 * cli/cli-dump.c: Ditto.
6078 * cli/cli-logging.c: Ditto.
6079 * cli/cli-script.c: Ditto.
6080 * cli/cli-setshow.c: Ditto.
6081 * common/signals.c: Ditto.
6082 * mi/mi-cmd-break.c: Ditto.
6083 * mi/mi-cmd-disas.c: Ditto.
6084 * mi/mi-cmd-stack.c: Ditto.
6085 * mi/mi-cmd-var.c: Ditto.
6086 * mi/mi-cmds.c: Ditto.
6087 * mi/mi-common.h: Ditto.
6088 * mi/mi-console.c: Ditto.
6089 * mi/mi-interp.c: Ditto.
6090 * mi/mi-main.c: Ditto.
6091 * osf-share/cma_attr.c: Ditto.
6092 * osf-share/cma_deb_core.h: Ditto.
6093 * osf-share/cma_debug_client.h: Ditto.
6094 * osf-share/cma_handle.h: Ditto.
6095 * osf-share/cma_mutex.h: Ditto.
6096 * osf-share/cma_stack_int.h: Ditto.
6097 * osf-share/cma_tcb_defs.h: Ditto.
6098 * python/py-auto-load.c: Ditto.
6099 * python/py-breakpoint.c: Ditto.
6100 * python/py-cmd.c: Ditto.
6101 * python/py-frame.c: Ditto.
6102 * python/py-objfile.c: Ditto.
6103 * python/py-param.c: Ditto.
6104 * python/py-progspace.c: Ditto.
6105 * python/py-symbol.c: Ditto.
6106 * python/py-value.c: Ditto.
6107 * python/python-internal.h: Ditto.
6108 * python/python.c: Ditto.
6109 * tui/tui-data.c: Ditto.
6110 * tui/tui-disasm.c: Ditto.
6111 * tui/tui-hooks.c: Ditto.
6112 * tui/tui-io.c: Ditto.
6113 * tui/tui-layout.c: Ditto.
6114 * tui/tui-regs.c: Ditto.
6115 * tui/tui-source.c: Ditto.
6116 * tui/tui-stack.c: Ditto.
6117 * tui/tui-win.c: Ditto.
6118 * tui/tui-windata.c: Ditto.
6119 * tui/tui-winsource.c: Ditto.
6121 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6123 * configure.ac, gdb.1: Copyright year update.
6125 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6128 this_pc_in_block, morestack_msym and morestack_name. Check for
6129 "__morestack" minimal symbol there.
6131 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6133 * symfile.c (find_sym_fns): Add call to dont_repeat.
6135 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6137 Copyright year update in most files (performed by copyright.sh).
6139 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6141 * top.c (print_gdb_version): Update copyright year in version output.
6143 For older changes see ChangeLog-2010.
6149 version-control: never