1 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3 * utils.c (struct continuation, add_continuation)
4 (add_inferior_continuation)
5 (do_all_inferior_continuations, discard_all_inferior_continuations)
6 (restore_thread_cleanup, do_all_continuations_ptid)
7 (do_all_continuations_thread_callback)
8 (do_all_continuations_thread, do_all_continuations)
9 (discard_all_continuations_thread_callback)
10 (discard_all_continuations_thread, discard_all_continuations)
11 (add_intermediate_continuation)
12 (do_all_intermediate_continuations_thread_callback)
13 (do_all_intermediate_continuations_thread)
14 (do_all_intermediate_continuations)
15 (discard_all_intermediate_continuations_thread_callback)
16 (discard_all_intermediate_continuations_thread)
17 (discard_all_intermediate_continuations): Move to ...
18 * continuations.c: ... this new file, and adjust to no longer
19 implement continuations on top of cleanups.
20 * Makefile.in (SFILES): Add continuations.c.
21 (COMMON_OBS): Add continuations.o.
23 2011-05-26 Pedro Alves <pedro@codesourcery.com>
25 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
26 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
27 Internal error on invalid values.
28 * reverse.c: Don't handle EXEC_ERROR.
29 * mi/mi-main.c: Don't handle EXEC_ERROR.
31 2011-05-26 Pedro Alves <pedro@codesourcery.com>
33 * record.c: Include event-loop.h, inf-loop.h.
34 (record_beneath_to_async): New global.
35 (tmp_to_async): New global.
36 (record_async_inferior_event_token): New global.
37 (record_open_1): Don't error out if async is enabled.
38 (record_open): Handle to_async. Create an async event source in
40 (record_close): Delete the async event source.
41 (record_resumed): New global.
42 (record_execution_dir): New global.
43 (record_resume, record_core_resume): Set them. Register the
44 target on the event loop.
45 (record_wait): Rename to ...
46 (record_wait_1): ... this. Add more debug output. Handle
47 TARGET_WNOHANG, and the target beneath returning
48 TARGET_WAITKIND_IGNORE.
49 (record_wait): Reimplement on top of record_wait_1.
50 (record_async_mask_value): New global.
51 (record_async, record_async_mask, record_can_async_p)
52 (record_is_async_p, record_execution_direction): New functions.
53 (init_record_ops, init_record_core_ops): Install new methods.
54 * infrun.c (fetch_inferior_event): Temporarily switch the global
55 execution direction to the direction the target was going.
56 (execution_direction): Change type to int.
57 * target.c (default_execution_direction): New function.
58 (update_current_target): Inherit and de_fault
59 to_execution_direction.
60 * target.h (struct target_ops) <to_execution_direction>: New
62 (target_execution_direction): New macro.
63 * inferior.h (execution_direction): Change type to int.
65 2011-05-26 Pedro Alves <pedro@codesourcery.com>
67 * infcall.c (call_function_by_hand): Don't allow calling functions
68 in reverse execution mode.
70 2011-05-26 Pedro Alves <pedro@codesourcery.com>
72 * infcmd.c (finish_command): Allow async finish in reverse.
74 2011-05-26 Yao Qi <yao@codesourcery.com>
76 * gdb_thread_db.h: Delete. Move to ...
77 * common/gdb_thread_db.h: ... here.
79 2011-05-26 Pedro Alves <pedro@codesourcery.com>
81 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
82 function's entry point instead of a manually managed momentary
83 breakpoint, and only ever issue one proceed call.
84 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
85 doing a reverse-finish, switch to stepi mode, to do another step.
86 (insert_step_resume_breakpoint_at_sal): Make public.
87 (normal_stop): No need to save function value return registers if
89 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
91 2011-05-26 Pedro Alves <pedro@codesourcery.com>
93 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
94 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
95 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
97 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
98 step-resume breakpoints.
99 (print_it_typical): Handle bp_hp_step_resume.
100 (bpstat_what): Ditto.
101 (bptype_string): Ditto.
102 (print_one_breakpoint_location): Ditto.
103 (allocate_bp_location): Ditto.
105 (breakpoint_re_set_one): Ditto.
106 * infrun.c (handle_inferior_event): Adjust. Split
107 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
108 BPSTAT_WHAT_HP_STEP_RESUME.
109 (insert_step_resume_breakpoint_at_sal): Rename to ...
110 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
111 parameter. Handle it.
112 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
113 insert_step_resume_breakpoint_at_sal_1.
114 (insert_step_resume_breakpoint_at_frame): Rename to ...
115 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
116 set a high-priority step-resume breakpoint.
117 (insert_step_resume_breakpoint_at_frame): Adjust comment.
118 (insert_step_resume_breakpoint_at_caller): Ditto.
120 2011-05-26 Pedro Alves <pedro@codesourcery.com>
122 * breakpoint.c (iterate_over_related_breakpoints): New.
123 (do_map_delete_breakpoint): New.
124 (delete_command): Pass do_map_delete_breakpoint to
125 map_breakpoint_numbers.
126 (do_disable_breakpoint): New.
127 (do_map_disable_breakpoint): Iterate over the breakpoint's related
129 (do_enable_breakpoint): Rename to ...
130 (enable_breakpoint_disp): ... this.
131 (enable_breakpoint): Adjust.
132 (do_enable_breakpoint): New.
133 (enable_once_breakpoint): Delete.
134 (do_map_enable_breakpoint): New.
135 (do_map_enable_once_breakpoint): New.
136 (enable_once_command, enable_delete_command)
137 (delete_trace_command): Iterate over the breakpoint's related
140 2011-05-26 Pedro Alves <pedro@codesourcery.com>
142 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
143 for ALPHA_ZERO_REGNUM.
144 (alpha_supply_int_regs): Explicitly supply zero as the value for
145 ALPHA_ZERO_REGNUM in the register cache.
146 * alpha-nat.c (fetch_osf_core_registers): Ditto.
148 2011-05-26 Yao Qi <yao@codesourcery.com>
150 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
152 2011-05-26 Tristan Gingold <gingold@adacore.com>
154 * symfile.h (struct dwarf2_section_names): New type.
155 (struct dwarf2_debug_sections): New type.
156 (dwarf2_has_info): Add parameter.
157 * dwarf2read.c (dwarf2_elf_names): New variable.
158 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
159 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
160 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
161 (dwarf2_has_info): Add names parameter. Pass names
162 to dwarf2_locate_sections.
163 (section_is_p): Rewrite using the names parameter.
164 (dwarf2_locate_sections): Use section names from the names parameter.
165 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
166 * elfread.c (read_psyms): Ditto.
167 * machoread.c (macho_symfile_read): Ditto.
169 2011-05-25 Andreas Schwab <schwab@redhat.com>
172 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
174 2011-05-24 Keith Seitz <keiths@redhat.com>
177 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
178 (decode_compound): Unconditionally call keep_name_info.
180 2011-05-24 Pedro Alves <pedro@codesourcery.com>
182 * breakpoint.c (watchpoint_check): If the watchpoint went out of
183 scope, clear its command list.
184 (map_breakpoint_numbers): Don't walk the related breakpoints list
187 2011-05-24 Tom Tromey <tromey@redhat.com>
189 * MAINTAINERS: Move Jim Blandy to past maintainers.
191 2011-05-24 Tristan Gingold <gingold@adacore.com>
193 * symfile.h (enum dwarf2_section_enum): New type.
194 (dwarf2_get_section_info): New prototype.
195 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
196 section_name by sect. Use a switch to select the info.
197 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
198 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
200 2011-05-24 Pedro Alves <pedro@codesourcery.com>
202 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
203 shared library event breakpoint if there's no execution.
205 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
207 * breakpont.c (remove_hw_watchpoints): Remove unused function.
208 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
210 2011-05-23 Tom Tromey <tromey@redhat.com>
212 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
215 2011-05-23 Doug Evans <dje@google.com>
217 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
218 entry for RuntimeError to doc string.
220 2011-05-23 Jerome Guitton <guitton@adacore.com>
222 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
223 sequence for probing loops.
225 2011-05-23 Pedro Alves <pedro@codesourcery.com>
227 * infrun.c (user_visible_resume_ptid): Fix typos in describing
230 2011-05-21 Mark Kettenis <kettenis@gnu.org>
232 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
233 zero as the value for %g0 in the register cache.
234 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
235 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
237 2011-05-20 Pedro Alves <pedro@codesourcery.com>
239 * infrun.c (proceed): Set previous_inferior_ptid here.
240 (init_wait_for_inferior): Initialize previous_inferior_ptid from
241 inferior_ptid, not null_ptid.
242 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
243 (fetch_inferior_event): Nor here.
245 2011-05-20 Pedro Alves <pedro@codesourcery.com>
247 * inf-loop.c (inferior_event_handler): Only output a message if
250 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
252 * MAINTAINERS: Update my e-mail address.
254 2011-05-20 Pedro Alves <pedro@codesourcery.com>
256 * infrun.c (proceed): Switch the inferior event loop to
257 INF_EXEC_COMPLETE if the target refused to resume from a
260 2011-05-20 Pedro Alves <pedro@codesourcery.com>
262 * infcmd.c: Include "inf-loop.h".
263 (step_once): When stepping into an inline subroutine, pretend the
264 target has run. If the target can async, switch the inferior
265 event loop to INF_EXEC_COMPLETE.
266 * inferior.h (user_visible_resume_ptid): Declare.
267 * infrun.c (user_visible_resume_ptid): New function, factored out
270 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
271 that the current thread is running. Merge async and sync
274 2011-05-20 Pedro Alves <pedro@codesourcery.com>
276 * infcmd.c (step_1): Simplify synchronous case.
278 2011-05-20 Pedro Alves <pedro@codesourcery.com>
280 * tracepoint.c: Include exceptions.h.
281 (TFILE_PID): Move higher in file.
282 (tfile_open): Delay pushing the tfile target until we're assured
283 the tfile header is present in the file. Wrap reading the initial
284 newline-terminated lines in TRY_CATCH. Pop the target if the
285 initial setup failed. Add the tfile's thread immediately
286 aftwards, before any non-essential setup. Don't skip
287 post_create_inferior if there are no traceframes present in the
289 (tfile_close): Remove redundant check for null before xfree call.
290 (tfile_thread_alive): New function.
291 (init_tfile_ops): Register it as to_thread_alive callback.
293 2011-05-20 Pedro Alves <pedro@codesourcery.com>
295 * tracepoint.c (tfile_open): Delete #if 0'd code.
297 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
299 Fix -readnow for -gdwarf-4 unused type units.
300 * dwarf2read.c (struct signatured_type): Remove the field offset.
301 (create_signatured_type_table_from_index): Remove its initialization.
302 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
303 instead. Add a complaint call.
304 (process_psymtab_comp_unit): Change assignment to gdb_assert.
305 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
306 (lookup_signatured_type_at_offset, read_signatured_type)
307 (write_one_signatured_type): Update the field for per_cu.
309 2011-05-19 Tom Tromey <tromey@redhat.com>
311 * python/py-inferior.c (python_inferior_exit): Use
313 (python_on_resume): Likewise.
315 2011-05-19 Matt Rice <ratmice@gmail.com>
317 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
319 2011-05-19 Hui Zhu <teawater@gmail.com>
321 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
323 2011-05-19 Hui Zhu <teawater@gmail.com>
325 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
327 2011-05-18 Tom Tromey <tromey@redhat.com>
329 * dwarf2read.c (dwarf2_add_field): Constify.
330 * value.c (value_static_field): Constify.
331 * gdbtypes.h (struct main_type) <field.field_location.physname>:
333 * ax-gdb.c (gen_static_field): Constify
335 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
337 * linux-nat.c (kill_callback): Use SIGKILL first.
339 2011-05-18 Joel Brobecker <brobecker@adacore.com>
341 * ada-lang.c (print_it_exception): Avoid use of sprintf.
343 2011-05-18 Tom Tromey <tromey@redhat.com>
345 * value.c (value_fn_field): Constify.
346 * symtab.c (gdb_mangle_name): Constify.
347 * stabsread.c (update_method_name_from_physname): Make 'physname'
349 * p-typeprint.c (pascal_type_print_method_args): Make arguments
350 const. Use explicit fputc_filtered loop.
351 (pascal_type_print_base): Constify.
352 * p-lang.h (pascal_type_print_method_args): Update.
353 * linespec.c (add_matching_methods): Constify.
354 (add_constructors): Likewise.
355 * jv-typeprint.c (java_type_print_base): Constify.
356 * gdbtypes.h (struct cplus_struct_type)
357 <fn_fieldlist.fn_field.physname>: Now const.
358 * dwarf2read.c (compute_delayed_physnames): Constify.
359 (dwarf2_add_member_fn): Likewise.
360 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
362 2011-05-18 Pedro Alves <pedro@codesourcery.com>
364 * infrun.c (resume): Mention which is the current thread, and its
365 current PC in debug output.
366 (prepare_to_proceed): Mention the thread switching in debug
369 2011-05-18 Tom Tromey <tromey@redhat.com>
371 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
372 path check. Use xmalloc and cleanups.
373 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
375 2011-05-17 Tom Tromey <tromey@redhat.com>
377 * cp-valprint.c (cp_print_value_fields): Catch errors from
380 2011-05-17 Tom Tromey <tromey@redhat.com>
382 * dwarf2read.c (dwarf2_get_die_type): Call
383 get_die_type_at_offset.
384 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
385 get_base_type function.
387 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
389 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
392 2011-05-16 Doug Evans <dje@google.com>
394 * python/py-auto-load.c (source_section_scripts): Mention objfile
397 2011-05-15 Doug Evans <dje@google.com>
399 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
400 (try_thread_db_load_from_pdir): Call it. If unable to find
401 libthread_db in directory of libpthread, see if we're looking at
402 the separate-debug-info copy.
404 * python/py-autoload.c (print_script): Print "Missing" instead of
405 "No" for missing scripts.
406 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
408 2011-05-13 Doug Evans <dje@google.com>
410 * ui-file.c (stdio_file_write_async_safe): Add comment.
412 2011-05-14 Hui Zhu <teawater@gmail.com>
414 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
416 2011-05-13 Doug Evans <dje@google.com>
418 Support $pdir and $sdir in libthread-db-search-path.
419 * NEWS: Mention $sdir,$pdir.
420 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
421 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
422 (try_thread_db_load_from_sdir): New function.
423 (try_thread_db_load_from_dir): New function.
424 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
425 system directories if search of libthread-db-search-path fails,
426 that is now done via $sdir.
427 (has_libpthread): New function.
428 (thread_db_load): Remove search for libthread_db in directory of
429 libpthread, that is now done via $pdir.
431 * NEWS: Mention "info auto-load-scripts".
432 * python/py-auto-load.c (struct auto_load_pspace_info): New member
433 script_not_found_warning_printed.
434 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
435 all callers updated. Initialize script_not_found_warning_printed.
436 (get_auto_load_pspace_data_for_loading): New function.
437 (maybe_add_script): New function.
438 (source_section_scripts): Simplify. Only print one warning regardless
439 of the number of auto-load scripts not found.
440 (clear_section_scripts): Clear script_not_found_warning_printed.
441 (auto_load_objfile_script): Record script in hash table.
442 (count_matching_scripts): New function.
443 (maybe_print_script): Renamed from maybe_print_section_script, all
444 callers updated. Rewrite to use ui_out_*.
445 (info_auto_load_scripts): Renamed from
446 maintenance_print_section_scripts, all callers updated.
447 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
448 renamed as "info auto-load-scripts".
450 2011-05-13 Tom Tromey <tromey@redhat.com>
452 * dwarf2expr.c (read_uleb128): Cast intermediate result.
453 (read_sleb128): Likewise.
455 2011-05-13 Tom Tromey <tromey@redhat.com>
457 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
460 2011-05-13 Doug Evans <dje@google.com>
462 * linux-nat.c (debug_linux_nat_async): Delete.
463 Replace all references to use debug_linux_nat instead.
464 (show_debug_linux_nat_async): Delete.
465 (sigchld_handler): Call ui_file_write_async_safe instead of
467 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
468 * ui-file.c (struct ui_file): New member to_write_async_safe.
469 (null_file_write_async_safe): New function.
470 (ui_file_write_async_safe): New function.
471 (set_ui_file_write_async_safe): New function.
472 (ui_file_new): Initialize to_write_async_safe.
473 (stdio_file_write_async_safe): New function.
474 (struct stdio_file): New member fd.
475 (stdio_file_new): Initialize to_write_async_safe, fd.
476 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
478 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
479 (set_ui_file_write_async_safe): Declare.
480 (ui_file_write_async_safe): Declare.
482 2011-05-13 Tom Tromey <tromey@redhat.com>
484 * utils.c (do_value_free): New function.
485 (make_cleanup_value_free): Likewise.
486 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
488 (dwarf2_loc_desc_needs_frame): Call
489 make_cleanup_value_free_to_mark.
490 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
491 * dwarf2expr.c (free_dwarf_expr_context): Don't call
493 (new_dwarf_expr_context): Don't call value_mark.
494 * dwarf2-frame.c (execute_stack_op): Call
495 make_cleanup_value_free_to_mark.
496 * defs.h (make_cleanup_value_free): Declare.
498 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
500 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
501 prepare_execute_command.
502 * top.c (prepare_execute_command): Return cleanup.
503 (execute_command): Use cleanup from prepare_execute_command.
504 * top.h (prepare_execute_command): Change prototype to return
506 * defs.h (struct value): Add opaque declaration.
507 (make_cleanup_value_free_to_mark): Add prototype.
508 * utils.c (do_value_free_to_mark): New function.
509 (make_cleanup_value_free_to_mark): Likewise.
511 2011-05-12 Tom Tromey <tromey@redhat.com>
513 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
514 cast left-hand-side to unsigned.
516 2011-05-12 Tom Tromey <tromey@redhat.com>
519 * value.h (value_from_contents): Declare.
520 * value.c (value_from_contents): New function.
521 * dwarf2read.c (dwarf_stack_op_name): Add new values.
522 (dwarf2_get_die_type): New function.
523 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
524 (allocate_piece_closure): Acquire reference to values.
525 (read_pieced_value): Update for value-based expressions.
526 (write_pieced_value): Likewise.
527 (free_pieced_value_closure): Call value_free as needed.
528 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
529 Update for value-based expressions.
530 * dwarf2loc.h (dwarf2_get_die_type): Declare.
531 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
532 <get_base_type>: New field.
533 (struct dwarf_expr_piece) <v.value>: Change type.
534 <v.regno>: New field.
535 (struct dwarf_expr_context) <mark>: New field.
536 (dwarf_expr_piece, dwarf_expr_fetch): Update.
537 (dwarf_expr_pop, dwarf_expr_push): Remove.
538 (dwarf_expr_push_address): Declare.
539 * dwarf2expr.c (dwarf_arch_cookie): New global.
540 (struct dwarf_gdbarch_types): New.
541 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
543 (dwarf_expr_push): Change type of 'value' argument. Update. Now
545 (dwarf_expr_push_address): New function.
546 (dwarf_expr_pop): Now static.
547 (dwarf_expr_fetch): Change return type.
548 (dwarf_require_integral): New function.
549 (dwarf_expr_fetch): Simplify.
551 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
553 (execute_stack_op) <sign_ext>: Remove.
554 Use values for DWARF stack.
555 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
556 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
558 (_initialize_dwarf2expr): New function.
560 (new_dwarf_expr_context): Set new field.
561 (free_dwarf_expr_context): Call value_free_to_mark.
562 * dwarf2-frame.c (no_base_type): New function.
563 (execute_stack_op): Set get_base_type field. Update.
565 2011-05-12 Tom Tromey <tromey@redhat.com>
567 * dwarf2read.c (read_common_block): Fix formatting.
569 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
571 * breakpoint.c (disable_breakpoint): Disable all locations
572 associated with a tracepoint on target if a trace experiment is
574 (disable_command): Disable a specific tracepoint location on target if
575 a trace experiment is running.
576 (do_enable_breakpoint): Enable all locations associated with a
577 tracepoint on target if a trace experiment is running.
578 (enable_command) Enable a specific tracepoint location on target if a
579 trace experiment is running.
580 * target.c (update_current_target): Add INHERIT and de_fault clauses for
581 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
582 to_disable_tracepoint.
583 * target.h: Add declaration of struct bp_location.
584 (struct target_ops): Add new functions
585 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
586 to_disable_tracepoint to target operations.
587 (target_supports_enable_disable_tracepoint): New macro.
588 (target_enable_tracepoint): New macro.
589 (target_disable_tracepoint): New macro.
590 * remote.c (struct remote_state): Add new field.
591 (remote_enable_disable_tracepoint_feature): New.
592 (remote_protocol_features): Add new entry.
593 (remote_supports_enable_disable_tracepoint): New.
594 (remote_enable_tracepoint): New.
595 (remote_disable_tracepoint): New.
596 (init_remote_ops): Add remote_enable_tracepoint,
597 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
598 to remote operations.
599 * tracepoint.c (start_tracing): Allow tracing to start without any
600 tracepoints enabled with just a warning if they can be re-enabled
602 * NEWS: Add news item for the new behaviour of the enable and disable
603 GDB commands when applied to tracepoints.
604 Add news items for the new remote packets QTEnable and QTDisable.
606 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
608 * config.in: Regenerate.
609 * configure: Regenerate.
610 * configure.ac <--with-system-readline> (for readline_echoing_p):
612 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
613 (tui_old_rl_echoing_p): ... here.
614 (tui_setup_io): Rename extern declaration readline_echoing_p to
615 _rl_echoing_p. Adjust assignments for the both renames.
617 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
619 * symtab.c (lookup_symtab): Run cleanup before returning.
621 2011-05-11 Tom Tromey <tromey@redhat.com>
623 * dwarf2read.c (handle_data_member_location): New function.
624 (dwarf2_add_field): Use it.
625 (read_common_block): Likewise.
627 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
629 Make addrs->SECTINDEX always defined.
630 * symfile.c (relative_addr_info_to_section_offsets): Check for
631 SECTINDEX -1, not for zero ADDR.
632 (addrs_section_compar): Remove checking for invalid SECTINDEX.
633 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
634 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
637 2011-05-10 Doug Evans <dje@google.com>
639 * linux-thread-db.c: Whitespace cleanup.
640 (try_thread_db_load_1): Fix comment.
642 * linux-thread-db.c (set_libthread_db_search_path): New function.
643 (_initialize_thread_db): Add setter for libthread-db-search-path.
645 2011-05-09 Doug Evans <dje@google.com>
647 * NEWS: Mention --with-iconv-bin.
648 * configure.ac: New option --with-iconv-bin.
649 * configure: Regenerate.
650 * config.in: Regenerate.
651 * defs.h (relocate_gdb_directory): Declare.
652 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
653 removed progname parameter, and exported. All callers updated.
654 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
656 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
657 adding missing call to restore_child_signals_mask.
659 2011-05-09 Pedro Alves <pedro@codesourcery.com>
661 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
663 * infrun.c (proceed, start_remote): Adjust.
664 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
665 and adjust to not handle it.
666 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
667 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
668 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
669 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
670 * windows-nat.c (do_initial_windows_stuff): Adjust.
671 * infcmd.c (attach_command): Adjust.
672 (notice_new_inferior): Adjust.
674 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
676 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
677 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
678 * spu-tdep.c (op_selb): Use correct value.
680 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
682 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
683 "parent" parameter to symbol_file_add_from_bfd call.
685 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
686 Thiago Jung Bauermann <bauerman@br.ibm.com>
688 Implement support for PowerPC BookE masked watchpoints.
689 * NEWS: Mention masked watchpoint support. Create "Changed commands"
691 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
692 method. Initialize to NULL in all existing breakpoint_ops instances.
693 (struct breakpoint) <hw_wp_mask>: New field.
694 * breakpoint.c (is_masked_watchpoint): Add prototype.
695 (update_watchpoint): Don't set b->val for masked watchpoints. Call
696 breakpoint's breakpoint_ops.works_in_software_mode if available.
697 (watchpoints_triggered): Handle the case of a hardware masked
699 (watchpoint_check): Likewise.
700 (works_in_software_mode_watchpoint): New function.
701 (insert_masked_watchpoint, remove_masked_watchpoint)
702 (resources_needed_masked_watchpoint)
703 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
704 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
705 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
707 (masked_watchpoint_breakpoint_ops): New structure.
708 (watch_command_1): Check for the existence of the `mask' parameter.
709 Set b->ops according to the type of hardware watchpoint being created.
710 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
711 (ppc_linux_remove_mask_watchpoint)
712 (ppc_linux_masked_watch_num_registers): New functions.
713 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
714 to_remove_mask_watchpoint and to_masked_watch_num_registers.
715 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
716 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
717 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
718 (target_masked_watch_num_registers): New functions.
719 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
720 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
722 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
723 (target_masked_watch_num_registers): Add prototypes.
725 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
728 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
729 (producer_is_gcc_ge_4_0): New function.
730 (process_full_comp_unit): Set also symtab->locations_valid. Move the
731 symtab->language code.
732 (var_decode_location): Set cu->has_loclist.
733 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
734 skip. Intialize force_skip from locations_valid. Move the prologue
735 skipping code into two passes.
736 * symtab.h (struct symtab): Make the primary field a bitfield. New
737 field locations_valid.
739 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
741 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
742 (classify_inner_name): Call cp_lookup_nested_type with
744 * cp-namespace.c (cp_lookup_nested_type): New variable
745 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
746 type_name_no_tag_or_error with saved_parent_type.
747 * dwarf2read.c (load_partial_dies): Read in any children of
748 DW_TAG_typedef with complaint in such case.
749 * gdbtypes.c (type_name_no_tag_or_error): New function.
750 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
751 * valops.c (destructor_name_p): New comment for parameter type. Remove
752 type const. Make dname and cp const. Call type_name_no_tag_or_error.
753 * value.h (destructor_name_p): Remove type const.
755 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * symtab.c (compare_symbol_name): New function.
758 (completion_list_add_name, expand_partial_symbol_name): Call it,
759 remove the variable ncmp.
760 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
763 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
765 Demote to sw watchpoint only in update_watchpoint.
766 * breakpoint.c (update_watchpoint): Change between software and
767 hardware watchpoint for all kinds of watchpoints, not just
768 read/write ones. Determine b->exact value here instead of
769 in watch_command_1. Error out if there are not enough resources
770 for a read or access hardware watchpoint.
771 (watch_command_1): Remove logic of checking whether there are
772 enough resources available, since update_watchpoint will do that
773 work now. Don't set b->exact here. Catch exceptions thrown by
774 update_watchpoint and delete the watchpoint.
775 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
776 Use target_exact_watchpoints instead.
777 (delete_breakpoint): Notify observers only if deleted watchpoint
778 has a breakpoint number assigned to it.
780 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
782 * MAINTAINERS: Add myself as a write-after-approval maintainer.
784 2011-05-05 Jerome Guitton <guitton@adacore.com>
786 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
788 (i386_stack_tramp_frame_unwind): New static global.
789 (i386_match_pattern): New function, extracted from i386_match_insn.
790 (i386_match_insn): Use i386_match_pattern.
791 (i386_match_insn_block): New function.
792 (i386_tramp_chain_in_reg_insns)
793 (i386_tramp_chain_on_stack_insns): New static variables.
794 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
797 2011-05-04 Joseph Myers <joseph@codesourcery.com>
799 * configure.host (xscale*): Don't handle target.
800 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
803 2011-05-04 Yao Qi <yao@codesourcery.com>
805 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
807 2011-05-03 Joel Brobecker <brobecker@adacore.com>
810 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
811 | * elfread.c (elf_symtab_read): Stop memory leak.
813 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
815 * nto-tdep.c (nto_target): Replace deprecated call to
816 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
818 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
820 Fix false GCC warning.
821 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
823 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
825 * breakpoint.c (update_watchpoint): Move code to change
826 the enable state of breakpoint from here ...
827 (do_enable_breakpoint): ... to here.
829 2011-04-26 Andrew Gontarek <andrewg@cray.com>
831 * valprint.c (val_print_array_elements): Fixed poor performance
832 of printing very large arrays with repeat_count_threshold set
833 to unlimited. New comment.
835 2011-04-29 Tom Tromey <tromey@redhat.com>
837 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
838 (mi_parse): Likewise.
839 * breakpoint.c (break_range_command): Use sizeof char*, not
841 (create_breakpoint): Likewise.
842 (parse_breakpoint_sals): Likewise.
844 2011-04-29 Pedro Alves <pedro@codesourcery.com>
846 * linux-nat.c (linux_child_remove_fork_catchpoint)
847 (linux_child_remove_vfork_catchpoint)
848 (linux_child_remove_exec_catchpoint): New functions.
849 (linux_target_install_ops): Install them.
851 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
855 * varobj.c (install_default_visualizer): Do not install a
856 visualizer if the varobj is CPLUS_FAKE_CHILD.
857 (construct_visualizer): Likewise.
859 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
861 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
862 case insensitive comparison.
864 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
866 * infrun.c (proceed): Revert previous change.
867 (resume): Instead, handle the case of signal delivery while stepping
868 off a breakpoint location here, and only if software single-stepping
869 is used. Handle nested signals.
871 2011-04-28 Yao Qi <yao@codesourcery.com>
873 * arm-tdep.c (copy_unmodified): Rename to ...
874 (arm_copy_unmodified): .. this. New.
875 (copy_preload): Move common part to ...
876 (install_preload): .. this. New.
877 (arm_copy_preload): New.
878 (copy_preload_reg): Move common part to ...
879 (install_preload_reg): ... this. New.
880 (arm_copy_preload_reg): New.
881 (copy_b_bl_blx): Move common part to ...
882 (install_b_bl_blx): .. this. New.
883 (arm_copy_b_bl_blx): New.
884 (copy_bx_blx_reg): Move common part to ...
885 (install_bx_blx_reg): ... this. New.
886 (arm_copy_bx_blx_reg): New.
887 (copy_alu_reg): Move common part to ...
888 (install_alu_reg): ... this. New.
889 (arm_copy_alu_reg): New.
890 (copy_alu_shifted_reg): Move common part to ...
891 (install_alu_shifted_reg): ... this. New.
892 (copy_ldr_str_ldrb_strb): Move common part to ...
893 (install_ldr_str_ldrb_strb): ... this. New.
894 (arm_copy_ldr_str_ldrb_strb): New.
895 (copy_copro_load_store): Move some common part to ...
896 (install_copy_copro_load_store): ... this. New.
897 (arm_copy_copro_load_store): New.
899 (arm_copy_svc): Renamed from copy_svc.
900 (copy_undef): Delete.
901 (arm_copy_undef): Renamed from copy_undef.
902 (decode_ext_reg_ld_st): Delete.
903 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
904 (decode_svc_copro): Delete.
905 (arm_decode_svc_copro): Renamed from decode_svc_copro.
906 (copy_copro_load_store, copy_alu_imm): update callers.
907 (copy_extra_ld_st, copy_block_xfer): Likewise.
908 (decode_misc_memhint_neon, decode_unconditional): Likewise.
909 (decode_miscellaneous, decode_dp_misc): Likewise.
910 (decode_ld_st_word_ubyte, decode_media): Likewise.
911 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
912 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
913 (decode_unconditional, decode_miscellaneous): Likewise.
914 (decode_media, decode_b_bl_ldmstm): Likewise.
915 (arm_process_displaced_insn): Likewise..
916 (decode_misc_memhint_neon): Delete.
917 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
918 (decode_miscellaneous): Delete.
919 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
920 (decode_dp_misc): Delete.
921 (arm_decode_dp_misc): Renamed from decode_dp_misc.
922 (decode_ld_st_word_ubyte): Delete.
923 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
924 (decode_media): Delete.
925 (arm_decode_media): Renamed from decode_media.
926 (decode_b_bl_ldmstm): Delete.
927 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
928 (decode_ext_reg_ld_st): Delete.
929 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
930 (decode_unconditional): Delete.
931 (arm_decode_unconditional): Renamed from decode_unconditional.
933 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
935 Case insensitive lookups implementation.
936 * dwarf2read.c: Include ctype.h.
937 (struct mapped_index): New field version.
938 (mapped_index_string_hash): New parameter index_version. New comment
939 for it. Call tolower appropriately.
940 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
941 Choose the right index version for mapped_index_string_hash.
942 (dwarf2_read_index): Support also the index version 5. Initialize the
943 new struct mapped_index field version.
944 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
945 (find_slot): Explain the version needs. Pass INT_MAX for the new
947 (write_psymtabs_to_index): Produce version 5.
948 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
949 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
950 * psymtab.c (lookup_partial_symbol): Find the
951 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
953 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
955 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
956 (completion_list_add_name): New variable ncmp, initialize it, use it.
957 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
958 * utils.c (strcmp_iw): Support case_sensitive_off.
959 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
960 New function comment part. New variables saved_string1,
961 saved_string2 and case_pass. Add a proper second pass.
963 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
965 Replace re_comp/re_exec by regcomp/regexec.
966 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
967 (search_symbols_name_matches): Use them, use regexec.
968 (search_symbols): New variable retval_chain, adjust the use of
969 old_chain against it. Replace re_comp by regcomp. Use the new struct
970 search_symbols_data fields, use regexec instead of re_exec.
972 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
974 Format the code for the next patch.
975 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
976 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
977 New variables c1 and c2.
979 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
981 * infrun.c (proceed): Do not single-step into signal delivery
982 when stepping off a breakpoint location.
983 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
984 (insert_step_resume_breakpoint_at_caller): Likewise.
985 (insert_step_resume_breakpoint_at_sal): Likewise.
986 (insert_longjmp_resume_breakpoint): Likewise.
988 2011-04-27 Yao Qi <yao@codesourcery.com>
990 * common/linux-ptrace.h: Remove include <sys/wait.h>.
992 2011-04-27 Joel Brobecker <brobecker@adacore.com>
994 * procfs.c (procfs_pass_signals): Fix advance declaration.
996 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
998 * target.h (struct target_ops): Remove to_notice_signals;
1000 (target_notice_signals): Remove.
1001 (target_pass_signals): Add prototype.
1002 * target.c (update_current_target): Remove to_notice_signals;
1003 mention to_pass_signals.
1004 (target_pass_signals): New function.
1005 (debug_to_notice_signals): Remove.
1006 (setup_target_debug): Do not install debug_to_notice_signals.
1008 * infrun.c (signal_pass): New global.
1009 (resume): Call target_pass_signals.
1010 (handle_inferior_event): Report all signals while stepping over
1011 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1012 are re-inserted when stepping over a signal handler.
1013 (signal_cache_update): New function.
1014 (signal_stop_update): Call it.
1015 (signal_print_update): Likewise.
1016 (signal_pass_update): Likewise.
1017 (handle_command): Call signal_cache_update and target_pass_signals
1018 instead of target_notice_signals.
1019 (_initialize_infrun): Initialize signal_pass.
1021 * linux-nat.c (pass_mask): New global.
1022 (linux_nat_pass_signals): New function.
1023 (linux_nat_create_inferior): Report all signals initially.
1024 (linux_nat_attach): Likewise.
1025 (linux_nat_resume): Use pass_mask to decide whether to directly
1026 handle an inferior signal.
1027 (linux_nat_wait_1): Likewise.
1028 (linux_nat_add_target): Install to_pass_signals callback.
1030 * nto-procfs.c (notice_signals): Remove.
1031 (procfs_resume): Do not call notice_signals.
1032 (procfs_notice_signals): Remove.
1033 (procfs_pass_signals): New function.
1034 (init_procfs_ops): Install to_pass_signals callback instead of
1035 to_notice_signals callback.
1036 (_initialize_procfs): Report all signals initially.
1038 * procfs.c (procfs_notice_signals): Remove.
1039 (procfs_pass_signals): New function.
1040 (procfs_target): Install to_pass_signals callback instead of
1041 to_notice_signals callback.
1042 (register_gdb_signals): Remove.
1043 (procfs_debug_inferior): Report all signals initially.
1044 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1046 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1047 parameters; use them instead of calling signal_..._state routines.
1048 (remote_notice_signals): Remove.
1049 (remote_start_remote): Report all signals initially.
1050 (remote_resume): Do not call remote_pass_signals.
1051 (_initialize_remote): Install to_pass_signals callback instead of
1052 to_notice_signals callback.
1054 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1056 * breakpoint.c (user_settable_breakpoint): Delete.
1057 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1058 (delete_command): Check user_breakpoint_p instead of looking at
1059 the breakpoint's type.
1060 (disable_command): Ditto.
1061 (enable_command): Ditto.
1062 (delete_trace_command): Use user_breakpoint_p instead of looking
1063 at the breakpoint number directly. When checking if there are
1064 user visible tracepoints, in order to know whether to ask the user
1065 for confirmation, check whether the breakpoint is actually a
1068 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1070 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1073 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1075 MI breakpoint notifications.
1077 * annotate.c (breakpoint_changed): Adjust parameter type.
1078 * breakpoint.c (set_breakpoint_condition): Adjust to change
1079 in breakpoint_modified type.
1080 (breakpoint_set_commands): Likewise.
1081 (do_map_commands_command): Likewise.
1082 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1083 changed after bumping hit count.
1084 (bpstat_stop_status): Likewise.
1085 (print_one_breakpoint_location): Don't wrap in tuple here.
1086 (print_one_breakpoint): Always print individual locations.
1087 For locations, use unnamed tuple.
1088 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1090 (create_catchpoint, create_syscall_event_catchpoint): Call
1091 breakpoint_created obsever.
1092 (mention): Don't call breakpoint_created observer.
1093 (create_breakpoint_sal): Call breakpoint_created observer.
1094 (create_breakpoint, watch_command_1): Likewise.
1095 (create_ada_exception_breakpoint): Likewise.
1096 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1097 (locations_are_equal): New.
1098 (update_breakpoint_locations): If locations were changed, notify.
1099 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1100 Call breakpoint_modified observer.
1102 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1103 (mi_cmd_break_insert): Don't set observers for modify and delete.
1104 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1105 (mi_breakpoint_created, mi_breakpoint_deleted)
1106 (mi_breakpoint_modified): New.
1107 (mi_interpreter_init): Hook the above.
1108 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1109 while -break-* commands are executing.
1110 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1111 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1113 (mi_ui_out_impl): Hook in mi_redirect.
1114 (mi_field_skip): True to the name, skip the field, don't output
1115 a field with an empty value.
1117 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1118 (gdbpy_breakpoint_deleted): Adjust.
1119 * tui/tui-hooks.c (tui_event_create_breakpoint)
1120 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1122 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1124 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1125 (procfs_remove_hw_watchpoint): Likewise.
1127 2011-04-26 Michael Walle <michael@walle.cc>
1129 * remote.c (remote_start_remote): Ack packet after sending the
1132 2011-04-26 Yao Qi <yao@codesourcery.com>
1134 * linux-nat.c: Move common macros to ...
1135 Include linux-ptrace.h.
1136 * common/linux-ptrace.h: ... here. New.
1138 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1140 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1141 !objfile_has_partial_symbols. New comment.
1142 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1143 SYM_READ_PSYMBOLS is not present. Extend the comment.
1144 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1146 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 * defs.h (ENUM_BITFIELD): Remove.
1150 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 Eli Zaretskii <eliz@gnu.org>
1153 * NEWS: Document the new gdbserver --once option.
1155 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1157 * MAINTAINERS: Update my email address.
1159 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1161 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1162 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1163 function call if __STDC_ISO_10646__ macro is defined.
1164 (intermediate_encoding): New prototype.
1165 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1166 to generate compile time error for unsupported gdb_wchar_t size.
1167 (ENDIAN_SUFFIX): New macro.
1168 (intermediate_encoding): New function.
1170 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1172 * ada-lang.c (struct add_partial_datum): Update the comment for
1173 expand_partial_symbol_name.
1174 (ada_add_partial_symbol_completions): Rename to ...
1175 (ada_expand_partial_symbol_name): ... here, change return type, update
1176 function comment, call symbol_completion_match instead of
1177 symbol_completion_add.
1178 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1179 and ada_expand_partial_symbol_name.
1180 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1182 (dw2_map_symbol_names): Remove.
1183 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1184 * psymtab.c (map_symbol_names_psymtab): Remove.
1185 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1186 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1188 (psym_functions): Unlist map_symbol_names_psymtab.
1189 (map_partial_symbol_names): Rename to ...
1190 (expand_partial_symbol_names): ... here, change the FUN type, call
1191 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1192 * psymtab.h (map_partial_symbol_names): Rename to ...
1193 (expand_partial_symbol_names): ... here, change the FUN type.
1194 * symfile.h (struct quick_symbol_functions): Update the description of
1195 expand_symtabs_matching. Remove map_symbol_names.
1196 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1197 (struct add_name_data): Update the comment for
1198 expand_partial_symbol_name.
1199 (add_partial_symbol_name): Rename to ...
1200 (expand_partial_symbol_name): ... here. Replace
1201 completion_list_add_name call by strncmp.
1202 (default_make_symbol_completion_list_break_on): Use now
1203 expand_partial_symbol_names and expand_partial_symbol_name.
1204 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1206 2011-04-20 Tom Tromey <tromey@redhat.com>
1208 * dwarf2read.c (save_gdb_index_command): Replace format
1209 documentation with a pointer to the manual.
1211 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1213 * regcache.c: Include remote.h.
1214 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1215 (regcache_dump): Handle regcache_dump_remote.
1216 (maintenance_print_remote_registers): New function.
1217 (_initialize_regcache): Install "maint print remote-registers"
1219 * remote.c (map_regcache_remote_table): New function, factored out
1221 (init_remote_state): ... here.
1222 (remote_register_number_and_offset): New.
1223 * remote.h (remote_register_number_and_offset): Declare.
1225 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1227 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1228 null_ptid, assume and allow a NULL address space, instead of
1229 asking the target for the ptid's address space.
1230 * infrun.c (ptid_is_pid): Remove assertion.
1232 2011-04-19 Tom Tromey <tromey@redhat.com>
1234 * windows-tdep.c (windows_xfer_shared_library):
1235 * windows-nat.c (get_module_name, windows_make_so):
1236 * v850-tdep.c (v850_handle_pushm):
1237 * utils.c (null_cleanup, gdb_realpath):
1238 * ui-out.c (get_next_header):
1239 * tracepoint.c (clear_traceframe_info):
1240 * symtab.c (lookup_symtab):
1241 * serial.h (struct serial_ops):
1242 * mipsread.c (read_alphacoff_dynamic_symtab):
1243 * infcmd.c (print_return_value):
1244 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1245 * f-exp.y (parse_number):
1246 * exceptions.c (catch_exceptions):
1247 * dummy-frame.c (dummy_frame_this_id):
1248 * defs.h (struct cleanup):
1249 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1250 * arm-tdep.c (arm_push_dummy_call):
1251 * amd64-tdep.h (amd64_collect_xsave):
1252 * amd64-tdep.c (amd64_collect_xsave):
1253 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1254 * README (typing): Remove duplicate words.
1255 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1256 * infrun.c (siginfo_value_read): Fix typo.
1257 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1258 * top.c (source_line_number): Add comma.
1260 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1262 * thread.c (any_live_thread_of_process): Prioritize threads
1263 that are not executing.
1264 * gdbthread.h (any_live_thread_of_process): Update comment
1265 as per above change.
1267 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1269 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1270 (scan_xcoff_symtab): Likewise.
1272 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1274 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1277 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1278 Pedro Alves <pedro@codesourcery.com>
1280 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1281 variables to simplify code and avoid == operator at end of
1282 line as this is against GNU coding standards.
1284 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1286 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1287 lm_name to name_lm to avoid conflict with lm_name function.
1289 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1291 ARI fixes: Use only lowercase function name for static functions.
1292 * nto-tdep.c (LM_ADDR): Rename to...
1293 (lm_addr): New function name.
1294 (nto_relocate_section_addresses): Adapt to change above.
1295 * solib-sunos.c (LM_ADDR): Rename to...
1296 (lm_addr): New function name.
1297 (LM_NEXT): Rename to...
1298 (lm_next): New function name.
1299 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1300 function name changes above.
1301 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1302 (lm_addr_from_link_map): New function name.
1303 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1304 (has_lm_dynamic_from_link_map): New function name.
1305 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1306 (lm_dynamic_from_link_map): New function name.
1307 (LM_ADDR_CHECK): Rename to...
1308 (lm_addr_check): New function name.
1309 (LM_NEXT): Rename to...
1310 (lm_next): New function name.
1311 (LM_PREV): Rename to...
1312 (lm_prev): New function name.
1313 (LM_NAME): Rename to...
1314 (lm_name): New function name.
1315 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1316 (ignore_first_link_map_entry): New function name.
1317 (svr4_keep_data_in_core): Adapt to function name changes above.
1318 (svr4_current_sos): Likewise.
1319 (enable_break): Likewise.
1320 (svr4_relocate_section_addresses): Likewise.
1322 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1325 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1326 sprintf. Simplify code and avoid loosing memory.
1327 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1328 (call0_frame_cache): Remove && operator from end of line.
1330 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1332 Fix libraries displacement if they change whether they were prelinked.
1333 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1334 does not match. Comment why.
1336 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1338 * corelow.c: Include wrapper.h.
1339 (core_open): Call now gdb_target_find_new_threads.
1340 * wrapper.c: Include target.h.
1341 (gdb_target_find_new_threads): New.
1342 * wrapper.h (gdb_target_find_new_threads): New declaration.
1344 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1346 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1347 even if !TARGET_HAS_EXECUTION.
1349 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1351 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1352 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1353 bfd_get_synthetic_symtab.
1354 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1355 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1356 parameter parent, remove the call to add_separate_debug_objfile.
1357 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1358 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1359 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1360 parent, new comment for it, call add_separate_debug_objfile for it.
1361 (symbol_file_add_separate): Pass objfile as the parameter parent,
1362 remove the call to add_separate_debug_objfile.
1363 (symbol_file_add_from_bfd): New parameter parent, pass it.
1364 (symbol_file_add): Pass NULL to the new parameter parent.
1365 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1367 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1369 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1372 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1374 Fix Python access to inlined frames.
1375 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1376 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1378 2011-04-15 Tom Tromey <tromey@redhat.com>
1380 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1382 2011-04-15 Gary Benson <gbenson@redhat.com>
1384 * MAINTAINERS: Add myself to write-after-approval section.
1386 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1388 * remote-sim.c (sim_command_completer): New function.
1389 (_initialize_remote_sim): Set completer to sim_command_completer.
1391 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1393 * breakpoint.c (print_exception_catchpoint): Rename to ...
1394 (print_it_exception_catchpoint): ... this.
1395 (gnu_v3_exception_catchpoint_ops): Update with new name
1396 for print_it_exception_catchpoint.
1398 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1400 * MAINTAINERS: Add myself for write after approval privileges.
1402 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1404 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1406 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1408 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1410 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1412 * breakpoint.c (save_breakpoints): Verify whether
1413 breakpoint_ops.print_recreate is defined before calling it.
1415 2011-04-11 Gary Benson <gbenson@redhat.com>
1417 Fix failure with --enable-maintainer-mode.
1418 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1420 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1423 * symtab.c (search_symbols): Reorder the KIND description in the
1424 function comment. Remove the unused 4th element of types, types2,
1425 types3 and types4. New gdb_assert on KIND.
1426 (symtab_symbol_info): Remove the unused 4th element of classnames.
1427 New gdb_assert on KIND.
1428 * symtab.h (enum search_domain): New warning in the enum comment.
1429 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1432 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1434 Fix crash of gdb save-index on a STABS file.
1435 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1438 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1440 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1441 * dwarf2read.c: Include ctype.h.
1442 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1444 (dwarf2_add_field): Fix new_field->accessibility by calling
1445 dwarf2_default_access_attribute. Restructure setting accessibility
1447 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1448 is_private and is_protected by calling
1449 dwarf2_default_access_attribute.
1451 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1453 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1454 to the initialization.
1456 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1458 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1461 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1463 Remove support for old Cygwin 1.5 versions.
1464 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1465 function on old Cygwin version.
1466 * windows-nat.c: Remove cygwin version check and always define
1467 __USEWIDE for Cygwin compilation.
1469 2011-04-07 Yao Qi <yao@codesourcery.com>
1471 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1473 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1474 (arm_copy_svc): Remove parameters INSN and TO.
1475 (decode_svc_copro): Update caller.
1476 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1477 from function pointer `copy_svc_os'.
1479 2011-04-07 Yao Qi <yao@codesourcery.com>
1481 * arm-tdep.c (cleanup_branch): Set a correct return address in
1482 LR for ARM and Thumb.
1484 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1488 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1489 in the function comment, a new note on values compatibility.
1490 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1491 * symtab.h (SYMBOL_HASH_NEXT): New.
1493 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1495 * ppc-linux-nat.c (check_condition): Add len output parameter.
1496 Set it based on the memory region referenced in the condition
1497 expression. Update all callers.
1499 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1501 Fix crash regression on systems featuring .gdb_index.
1502 * objfiles.c (free_objfile): Move the
1503 forget_cached_source_info_for_objfile call earlier. Comment it.
1504 Extend the comment for objfile_free_data.
1506 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1508 Fix regression of displaying the debug format.
1509 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1512 2011-04-04 Tom Tromey <tromey@redhat.com>
1514 * cli/cli-interp.c (struct captured_execute_command_args):
1516 (do_captured_execute_command): Remove.
1517 (safe_execute_command): Use TRY_CATCH.
1518 * cli/cli-script.c (struct wrapped_read_command_file_args):
1520 (wrapped_read_command_file): Remove.
1521 (script_from_file): Use TRY_CATCH.
1522 * exceptions.c (catch_exception): Remove.
1523 * exceptions.h (catch_exception): Remove.
1524 (deprecated_throw_reason): Update comment.
1525 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1526 argument to 'context'.
1527 (mi_execute_command): Use TRY_CATCH.
1528 * remote.c (struct start_remote_args): Remove.
1529 (remote_start_remote): Update; change arguments.
1530 (remote_open_1): Use TRY_CATCH.
1532 2011-04-04 Tom Tromey <tromey@redhat.com>
1534 * tracepoint.c (scope_info): Update.
1535 * symtab.c (decode_line_spec): Update.
1536 * python/python.c (gdbpy_decode_line): Update.
1537 * linespec.h (decode_line_1): Update.
1538 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1539 (decode_compound, find_method, symtab_from_filename)
1540 (decode_variable): Likewise.
1541 * cli/cli-cmds.c (edit_command): Update.
1542 (list_command): Update.
1543 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1545 (create_breakpoint): Update.
1546 (until_break_command): Update.
1547 (addr_string_to_sals): Update.
1548 (decode_line_spec_1): Update.
1550 2011-04-04 Tom Tromey <tromey@redhat.com>
1552 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1553 (do_captured_parse_breakpoint): Remove.
1554 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1555 Use TRY_CATCH directly.
1557 2011-04-04 Tom Tromey <tromey@redhat.com>
1559 * symtab.h (free_symtab): Remove.
1560 (forget_cached_source_info_for_objfile): Declare.
1561 * symmisc.c (free_symtab): Remove.
1562 * source.c (forget_cached_source_info_for_objfile): New function.
1563 (forget_cached_source_info): Use it.
1564 * objfiles.c (free_objfile): Simplify check before calling
1565 clear_current_source_symtab_and_line. Call
1566 forget_cached_source_info_for_objfile.
1568 2011-04-04 Tom Tromey <tromey@redhat.com>
1570 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1571 (new_symtab): Don't set `free_code' on symtab.
1572 (new_linetable): Properly handle size==0.
1573 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1574 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1576 * jv-lang.c (struct jv_per_objfile_data): New.
1577 (jv_per_objfile_free): Free the data.
1578 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1579 (get_java_class_symtab): Set the `dict' field on the
1580 jv_per_objfile_data.
1581 (free_class_block): Remove.
1582 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1585 2011-04-04 Tom Tromey <tromey@redhat.com>
1587 * symfile.c (reread_symbols): Update.
1588 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1590 * objfiles.c (allocate_objfile): Update.
1591 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1593 * cp-namespace.c (lookup_symbol_file): Don't call
1594 lookup_possible_namespace_symbol.
1595 (initialize_namespace_symtab, get_possible_namespace_block)
1596 (free_namespace_block, cp_check_possible_namespace_symbols)
1597 (check_possible_namespace_symbols_loop)
1598 (check_one_possible_namespace_symbol)
1599 (lookup_possible_namespace_symbol): Remove.
1600 (maintenance_cplus_namespace): Replace with notice.
1601 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1603 2011-04-04 Tom Tromey <tromey@redhat.com>
1605 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1606 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1607 * symmisc.c (free_symtab): Don't free debugformat.
1608 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1609 (record_debugformat, record_producer): Document.
1610 * buildsym.c (end_symtab): Don't save debugformat and producer
1612 (end_symtab): Don't free debugformat and producer fields.
1613 (record_debugformat): Don't call xstrdup.
1614 (record_producer): Likewise.
1616 2011-04-04 Tom Tromey <tromey@redhat.com>
1618 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1619 (source_line_charpos, source_charpos_line): Remove.
1621 2011-04-04 Tom Tromey <tromey@redhat.com>
1623 * symtab.h (domain_enum): Split in two...
1624 (enum search_domain): New.
1625 (search_symbols): Update.
1626 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1627 redundant declarations.
1628 (search_symbols): Change 'kind' argument to search_domain.
1630 (print_symbol_info): Likewise.
1631 (symtab_symbol_info): Likewise.
1632 * symfile.h (struct quick_symbol_functions)
1633 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1634 <expand_symtabs_matching>: Likewise.
1635 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1636 (expand_symtabs_matching_via_partial): Update.
1637 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1638 (dw2_expand_symtabs_for_function): Update.
1639 * block.h: Moved anonymous enum...
1640 * defs.h (enum block_enum): ... here. Now named.
1642 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1644 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1645 * version.in: Bump version to 7.3.50.20110403-cvs.
1647 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1649 * NEWS: Create a new section for the next release branch.
1650 Rename the section of the current branch, now that it has
1653 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1655 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1656 for "fpscr" in target description.
1658 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1660 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1661 initialize it. Delay HASH initialization. Strip the part after open
1662 parenthesis for languages with qualifiers. Call do_cleanups.
1664 2011-04-01 Tom Tromey <tromey@redhat.com>
1666 * utils.c (report_command_stats): Don't print `-' for negative
1669 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1671 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1672 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1675 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1677 * breakpoint.h (bpdisp_text): Add declaration.
1678 * breakpoint.c (bpdisp_text): Make non-static.
1679 * ada-lang.c: #include "mi/mi-common.h".
1680 (print_it_exception): Rewrite to improve GDB/MI output.
1682 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1684 * arm-tdep.h (struct address_space): Add forward declaration.
1686 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1688 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1689 * arm-tdep.c (arm_override_mode): New global.
1690 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1691 execution mode heuristics.
1692 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1693 second single-step breakpoint if needed, using
1694 arm_insert_single_step_breakpoint.
1695 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1696 ARM execution mode, do not call thumb_get_next_pc_raw.
1697 (arm_get_next_pc): Encode execution mode in return value. Call
1698 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1699 (arm_insert_single_step_breakpoint): New function.
1700 (arm_software_single_step): Call it.
1701 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1702 argument to return execution mode of sigreturn target.
1703 (arm_linux_syscall_next_pc): Use it.
1704 (arm_linux_copy_svc): Update call.
1705 (arm_linux_software_single_step): Call
1706 arm_insert_single_step_breakpoint.
1708 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1710 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1713 2011-03-31 Tom Tromey <tromey@redhat.com>
1715 * varobj.c (update_dynamic_varobj_children): Properly handle
1716 errors from iterator.
1718 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1720 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1721 struct linkage name twice.
1723 2011-03-31 Tom Tromey <tromey@redhat.com>
1725 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1726 missing ">" to message.
1728 2011-03-31 Tom Tromey <tromey@redhat.com>
1730 * varobj.c (instantiate_pretty_printer): Remove duplicate
1733 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1735 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1736 if neither saved value nor register available (e.g. signal frame).
1738 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1740 * macroexp.c (expand): Avoid uninitialized variable
1743 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1745 * breakpoint.c (break_range_command): Fix typo in comment.
1747 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1748 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1750 Implement support for PowerPC BookE ranged breakpoints.
1751 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1752 * breakpoint.h (struct bp_target_info) <length>: New member
1754 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1755 instead of struct breakpoint as argument, and also add ASPACE
1756 and BP_ADDR arguments. Update all callers.
1757 (struct breakpoint_ops) <print_one_detail>: New method.
1758 (struct breakpoint) <addr_string_range_end>: New member variable.
1759 * breakpoint.c (breakpoint_location_address_match): Add function
1761 (insert_bp_location): Set bl->target_info.length.
1762 (breakpoint_here_p): Call breakpoint_location_address_match.
1763 (moribund_breakpoint_here_p): Likewise.
1764 (regular_breakpoint_inserted_here_p): Likewise.
1765 (breakpoint_thread_match): Likewise.
1766 (bpstat_stop_status): Likewise.
1767 (bpstat_check_location): Move call to
1768 breakpoint_ops.breakpoint_hit to the top.
1769 (print_one_breakpoint_location): Call
1770 breakpoint_ops.print_one_detail if available.
1771 (breakpoint_address_match_range): New function.
1772 (breakpoint_location_address_match): Likewise.
1773 (breakpoint_locations_match): Compare the length field of the
1775 (hw_breakpoint_used_count): Count resources used by all locations
1776 in a breakpoint, and use breakpoint_ops.resources_needed if
1778 (breakpoint_hit_ranged_breakpoint): New function.
1779 (resources_needed_ranged_breakpoint): Likewise.
1780 (print_it_ranged_breakpoint): Likewise.
1781 (print_one_ranged_breakpoint): Likewise.
1782 (print_one_detail_ranged_breakpoint): Likewise.
1783 (print_mention_ranged_breakpoint): Likewise.
1784 (print_recreate_ranged_breakpoint): Likewise.
1785 (ranged_breakpoint_ops): New structure.
1786 (find_breakpoint_range_end): New function.
1787 (break_range_command): Likewise.
1788 (delete_breakpoint): Free addr_string_range_end.
1789 (update_breakpoint_locations): Add SALS_END argument. Update
1790 all callers. Calculate breakpoint length if a non-zero SALS_END
1791 is given. Call breakpoint_locations_match instead of
1792 breakpoint_address_match.
1793 (reset_breakpoint): Find SaL of the end of the range if B is a
1795 (_initialize_breakpoint): Register break-range command.
1796 * defs.h (print_core_address): Add function prototype.
1797 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1799 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1800 (ppc_linux_remove_hw_breakpoint): Likewise.
1801 (_initialize_ppc_linux_nat): Initialize
1802 to_ranged_break_num_registers.
1803 * target.c (update_current_target): Add comment about
1804 to_ranged_break_num_registers.
1805 (target_ranged_break_num_registers): New function.
1806 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1808 (target_ranged_break_num_registers): Add function prototype.
1809 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1810 * utils.c (print_core_address): ... here.
1812 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1814 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1815 variable compiler warning.
1817 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1819 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1821 (re_set_breakpoint): ... to here ...
1822 (addr_string_to_sals): ... and here.
1824 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1826 * Makefile.in (SFILES): Add missing C sources.
1827 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1828 Add missing headers.
1830 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1832 * .gitignore: New file.
1834 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1836 * NEWS: Mention new cfi device simulation.
1838 2011-03-29 Tom Tromey <tromey@redhat.com>
1840 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1841 otherwise anonymous types.
1842 (dwarf2_name): Likewise.
1843 * valops.c (value_struct_elt_for_reference): Refine artificial
1844 type logic. Call error if j==-1.
1846 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1848 Fix false GCC warning.
1849 * infcall.c (find_function_addr): Initialize funaddr.
1851 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1853 Fix mingw compilation with --enable-targets=all.
1854 * remote-mips.c (gdb_usleep.h): Include header.
1855 (mips_enter_debug): Use gdb_usleep instead of sleep.
1857 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 Support resolution of STT_GNU_IFUNC via breakpoints.
1860 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1861 bp_gnu_ifunc_resolver_return.
1862 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1863 the loop. Support bp_gnu_ifunc_resolver and
1864 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1865 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1867 (bptype_string, print_one_breakpoint_location): Support
1868 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1869 (user_settable_breakpoint): Return true also for
1870 bp_gnu_ifunc_resolver.
1871 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1872 bp_gnu_ifunc_resolver_return.
1873 (set_breakpoint_location_function): New parameter explicit_loc,
1874 describe it. Call find_pc_partial_function_gnu_ifunc with new
1875 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1876 EXPLICIT_LOC is not set.
1877 (set_raw_breakpoint): Set EXPLICIT_LOC for
1878 set_breakpoint_location_function.
1879 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1880 set_breakpoint_location_function.
1881 (mention): Support bp_gnu_ifunc_resolver and
1882 bp_gnu_ifunc_resolver_return.
1883 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1884 set_breakpoint_location_function.
1885 (update_breakpoint_locations): Remove static.
1886 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1887 bp_gnu_ifunc_resolver_return.
1888 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1889 bp_gnu_ifunc_resolver_return.
1890 (update_breakpoint_locations): New declaration.
1891 * elfread.c: Include gdbthread.h and regcache.h.
1892 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1894 (elf_gnu_ifunc_fns): Install them.
1895 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1896 (stub_gnu_ifunc_resolver_return_stop): New functions.
1897 (stub_gnu_ifunc_fns): Install them.
1898 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1899 and gnu_ifunc_resolver_return_stop.
1900 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1902 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1904 STT_GNU_IFUNC reader implementation.
1905 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1906 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1907 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1908 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1909 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1910 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1911 (elf_gnu_ifunc_resolve_addr): New.
1912 (elf_symfile_read): Call elf_rel_plt_read.
1913 (elf_gnu_ifunc_fns): New.
1914 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1915 Install elf_gnu_ifunc_fns.
1916 * infcall.c (find_function_return_type): New function.
1917 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1918 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1919 (stub_gnu_ifunc_resolve_name): New functions.
1920 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1921 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1922 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1924 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1926 Code cleanup for later STT_GNU_IFUNC support.
1927 * infcall.c (find_function_addr): Remove variable code, use explicit
1928 dereferences for it. Move VALUE_TYPE initialization later.
1930 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1932 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1933 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1934 (clear_pc_function_cache): Clear it.
1935 (find_pc_partial_function): Rename to ...
1936 (find_pc_partial_function_gnu_ifunc): ... this function. New
1937 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1938 (find_pc_partial_function): New wrapper for this function.
1939 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1941 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 GDB internal type support for STT_GNU_IFUNC.
1944 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1945 (elf_symtab_read): Set mst_text_gnu_ifunc for
1946 BSF_GNU_INDIRECT_FUNCTION.
1947 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1948 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1949 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1950 nodebug_got_plt_symbol.
1951 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1952 (TYPE_GNU_IFUNC): New.
1953 (struct main_type): New field flag_gnu_ifunc.
1954 (struct builtin_type): New field builtin_func_func.
1955 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1956 nodebug_got_plt_symbol.
1957 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1958 (in_gnu_ifunc_stub): New.
1959 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1961 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1962 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1963 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1965 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1966 * symtab.c (search_symbols): Likewise.
1967 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1968 and mst_slot_got_plt.
1969 (in_gnu_ifunc_stub): New declaration.
1971 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1973 Support a ring of related breakpoints.
1974 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1975 other functions, add gdb_assert.
1976 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1977 watchpoint_del_at_next_stop.
1978 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1979 (bpstat_stop_status): Handle ring in related_breakpoint.
1980 (set_raw_breakpoint_without_location): Initialize ring in
1982 (delete_breakpoint): Handle ring in related_breakpoint, use
1983 watchpoint_del_at_next_stop.
1984 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1986 2011-03-28 Tom Tromey <tromey@redhat.com>
1989 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1990 with `language_minimal'.
1992 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1994 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1995 instead of checking for STT_ARM_TFUNC symbol type.
1997 2011-03-25 Tom Tromey <tromey@redhat.com>
1999 * linespec.c (symbol_found): Restore line-based result for
2000 non-LOC_LABEL symbols.
2002 2011-03-25 Kai Tietz <ktietz@redhat.com>
2004 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2005 instead of strcmp for comparison.
2006 (tui_source_is_displayed): Likewise.
2007 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2009 2011-03-24 Mark Wielaard <mjw@redhat.com>
2011 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2013 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2014 (find_partial_die_in_comp_unit): Likewise in comment.
2015 (read_attribute_value): Likewise.
2016 (lookup_die_type): Likewise.
2017 (dwarf_form_name): Likewise.
2018 (dump_die_shallow): Likewise.
2019 (follow_die_ref_or_sig): Likewise.
2021 2011-03-24 Tom Tromey <tromey@redhat.com>
2023 PR breakpoints/11816:
2024 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2025 (decode_compound): Update.
2026 (find_function_symbol): New function.
2027 (decode_dollar): Update.
2028 (decode_label): Add 'function_symbol' parameter. Handle
2029 function-relative labels.
2030 (decode_variable): Update.
2031 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2032 not its line. Set `special_display' and canonical name for
2035 2011-03-24 Tom Tromey <tromey@redhat.com>
2037 * linespec.h (struct linespec_result) <special_display>: New
2039 * breakpoint.h (struct breakpoint) <display_canonical>: New
2041 * breakpoint.c (print_breakpoint_location): Respect
2043 (create_breakpoint_sal): Add 'display_canonical' parameter.
2044 (create_breakpoints_sal): Update.
2045 (create_breakpoint): Update.
2047 2011-03-24 Tom Tromey <tromey@redhat.com>
2049 * symtab.c (decode_line_spec): Update.
2050 * linespec.c (build_canonical_line_spec): Change type of
2052 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2053 (find_method, decode_all_digits, decode_dollar, decode_label)
2054 (symbol_found): Likewise.
2055 (init_linespec_result): New function.
2056 * breakpoint.c (struct captured_parse_breakpoint_args)
2057 <canonical_p>: New field, replaces addr_string_p.
2058 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2060 (parse_breakpoint_sals): Likewise.
2061 (do_captured_parse_breakpoint): Update.
2062 (create_breakpoint): Use struct linespec_result.
2063 (until_break_command): Update.
2064 (breakpoint_re_set_one): Update.
2065 (decode_line_spec_1): Update.
2066 * linespec.h (struct linespec_result): New.
2067 (init_linespec_result): Declare.
2069 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2071 * regcache.c (regcache_raw_read): If the target didn't supply a
2072 given raw register, mark it as unavailable.
2074 2011-03-23 Kai Tietz <ktietz@redhat.com>
2076 * breakpoint.c (clear_command): Use filename_cmp
2077 instead of strcmp for comparison.
2078 * buildsym.c (watch_main_source_file_lossage): Likewise.
2079 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2080 checking just for slash.
2081 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2082 strrchr and filename_cmp instead of strcmp for filenames.
2083 (add_old_header_file): Use filename_cmp
2084 instead of strcmp for comparison.
2085 * exec.c (exec_set_section_address): Likewise.
2086 * macrotab.c (macro_lookup_inclusion): Likewise.
2087 (macro_lookup_inclusion): Likewise.
2088 * elfread.c (_initialize_elfread): Likewise.
2089 (elfstab_offset_sections): Likewise.
2090 (elfstab_offset_sections): Use lbasename instead of
2092 * mdebugread.c (parse_partial_symbols): Likewise.
2093 (arse_partial_symbols): Use filename_(n)cmp instead of
2094 str(n)cmp for comparison.
2095 * minsyms.c (lookup_minimal_symbol): Likewise.
2096 * psymtab.c (read_psymtabs_with_filename): Likewise.
2097 * solib.c (solib_read_symbols): Likewise.
2098 (reload_shared_libraries_1): Likewise.
2099 * symmisc.c (maintenance_print_symbols): Likewise.
2100 * symfile.c (separate_debug_file_exists): Likewise.
2101 (reread_symbols): Likewise.
2102 (find_separate_debug_file_by_debuglink): Likewise.
2103 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2104 * source.c (add_path): Likewise.
2105 * symtab.c (filename_seen): Likewise.
2106 (file_matches): Likewise.
2107 (print_symbol_info): Likewise.
2108 (maybe_add_partial_symtab_filename): Likewise.
2109 (make_source_files_completion_list): Likewise.
2110 * xml-syscall.c (init_sysinfo): Likewise.
2111 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2112 IS_DIR_SEPARATOR for checking for trailing path separator.
2114 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2116 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2117 label abort_expression.
2118 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2119 DWARF_VALUE_OPTIMIZED_OUT.
2121 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2124 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2125 to linkage_name. Invert its value. Update the function comment.
2126 (c_type_print_varspec_suffix): Invert it at the caller.
2127 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2129 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2131 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2132 errors when reading the `stop_pc'.
2133 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2136 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2138 * NEWS: Document gdb.Write stream keyword.
2140 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2144 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2145 (dwarf2_add_field): Fix new_field->accessibility for
2146 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2148 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2152 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2153 other error classes. Do not print stack trace.
2155 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2157 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2158 (dwarf2_add_field): Fix new_field->accessibility for
2159 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2161 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2163 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2164 encountering a load via a non-SP register.
2166 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2168 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2169 field in returned unwinder.
2171 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2173 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2175 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2177 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2180 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2182 * frame.c (frame_unwind_register): Throw an error if unwinding the
2184 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2185 an unwind stop reason.
2186 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2187 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2188 UNWIND_UNAVAILABLE>: New.
2189 * inline-frame.c (inline_frame_unwind): Install
2190 default_frame_unwind_stop_reason.
2191 * frame-unwind.c: Include "exceptions.h".
2192 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2193 (default_frame_unwind_stop_reason): New.
2194 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2195 (default_frame_unwind_stop_reason): Declare.
2196 (struct frame_unwind) <stop_reason>: New function pointer.
2198 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2199 * dwarf2-frame.c: Include exceptions.h.
2200 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2201 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2202 computing the CFA. If such an error was thrown, set
2203 unavailable_retaddr.
2204 (dwarf2_frame_unwind_stop_reason): New.
2205 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2207 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2208 (dwarf2_signal_frame_unwind): Ditto.
2210 * amd64-tdep.c: Include "exceptions.h".
2211 (struct amd64_frame_cache): New field "base_p".
2212 (amd64_init_frame_cache): Clear it.
2213 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2214 Avoid reading registers with functions that throw if the register
2215 is not necessary to compute the frame base.
2216 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2217 swallowing NOT_AVAILABLE_ERROR.
2218 (amd64_frame_unwind_stop_reason): New.
2219 (amd64_frame_this_id): Don't build a frame id if the frame base
2221 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2222 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2223 base_p if the frame base was computable.
2224 (amd64_sigtramp_frame_unwind_stop_reason): New.
2225 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2226 frame base was unavailable.
2227 (amd64_sigtramp_frame_unwind): Install
2228 amd64_sigtramp_frame_unwind_stop_reason.
2229 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2230 base_p if the frame base was computable.
2231 (amd64_epilogue_frame_unwind_stop_reason): New.
2232 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2233 frame base was unavailable.
2234 (amd64_epilogue_frame_unwind): Install
2235 amd64_epilogue_frame_unwind_stop_reason.
2236 * i386-tdep.c: Include "exceptions.h".
2237 (struct i386_frame_cache): New field "base_p".
2238 (i386_init_frame_cache): Clear it.
2239 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2240 Avoid reading registers with functions that throw if the register
2241 is not necessary to compute the frame base.
2242 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2243 swallowing NOT_AVAILABLE_ERROR.
2244 (i386_frame_unwind_stop_reason): New.
2245 (i386_frame_this_id): Don't build a frame id if the frame base was
2247 (i386_frame_prev_register): Handle unavailable SP.
2248 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2249 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2250 base_p if the frame base was computable.
2251 (i386_epilogue_frame_unwind_stop_reason): New.
2252 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2253 base was unavailable.
2254 (i386_epilogue_frame_unwind): Install
2255 i386_epilogue_frame_unwind_stop_reason.
2256 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2257 base_p if the frame base was computable.
2258 (i386_sigtramp_frame_unwind_stop_reason): New.
2259 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2260 base was unavailable.
2261 (i386_sigtramp_frame_unwind): Install
2262 i386_sigtramp_frame_unwind_stop_reason.
2263 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2264 type's size, not the register's.
2265 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2267 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2268 default_frame_unwind_stop_reason.
2269 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2270 (alpha_heuristic_frame_unwind): Ditto.
2271 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2272 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2273 * avr-tdep.c (avr_frame_unwind): Ditto.
2274 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2276 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2277 * frv-tdep.c (frv_frame_unwind): Ditto.
2278 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2279 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2280 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2281 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2282 (hppa_stub_frame_unwind): Ditto.
2283 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2284 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2285 (ia64_libunwind_frame_unwind)
2286 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2287 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2288 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2289 * m32c-tdep.c (m32c_unwind): Ditto.
2290 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2291 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2292 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2293 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2294 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2295 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2296 * mep-tdep.c (mep_frame_unwind): Ditto.
2297 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2298 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2299 (mips_stub_frame_unwind): Ditto.
2300 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2301 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2302 * mt-tdep.c (mt_frame_unwind): Ditto.
2303 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2304 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2305 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2306 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2307 (s390_sigtramp_frame_unwind): Ditto.
2308 * score-tdep.c (score_prologue_unwind): Ditto.
2309 * sh-tdep.c (sh_frame_unwind): Ditto.
2310 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2311 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2312 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2313 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2314 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2315 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2316 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2317 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2318 (sparc64obsd_trapframe_unwind): Ditto.
2319 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2320 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2321 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2322 * v850-tdep.c (v850_frame_unwind): Ditto.
2323 * vax-tdep.c (vax_frame_unwind): Ditto.
2324 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2325 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2326 * xtensa-tdep.c (xtensa_unwind): Ditto.
2328 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2330 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2331 there's always a frame. Use get_frame_pc_if_available instead of
2332 get_frame_pc, and if there's no PC available, don't look up a
2335 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2337 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2340 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2342 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2345 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2347 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2348 * frame.c (frame_unwind_caller_pc_if_available): New.
2349 * stack.c (frame_info): Handle unavailable PC.
2351 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2353 * frame.c (frame_unwind_pc): Rename to ...
2354 (frame_unwind_pc_if_available): ... this. New `pc' output
2355 parameter. Change return type to int. Gracefully handle
2356 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2357 happened, or 1 otherwise.
2358 (frame_unwind_pc): Reimplement on top of
2359 frame_unwind_pc_if_available.
2360 (get_frame_func): Rename to ...
2361 (get_frame_func_if_available): New `pc' output parameter. Change
2362 return type to int. Gracefully handle the PC not being available.
2363 (get_frame_func): Reimplement on top of
2364 get_frame_func_if_available.
2365 (select_frame): Handle the PC being unavailable.
2366 (get_prev_frame): Handle the PC being unavailable.
2367 (get_frame_pc_if_available): New.
2368 (get_frame_address_in_block_if_available): New.
2369 (find_frame_sal): Handle the frame PC not being available.
2370 * frame.h (get_frame_pc_if_available): Declare.
2371 (get_frame_address_in_block_if_available): Declare.
2372 (get_frame_func_if_available): Declare.
2373 * stack.c (print_frame_info): Handle the PC being unavailable.
2374 (find_frame_funname): Ditto.
2375 (print_frame): Handle the PC being unavailable.
2376 (get_frame_language): Ditto.
2377 * blockframe.c (get_frame_block): Ditto.
2378 * macroscope.c (default_macro_scope): Ditto.
2379 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2381 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2383 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2384 NOT_AVAILABLE_ERROR when evaluating the location expression.
2386 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2388 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2389 returning that the register piece is unavailable/optimized out.
2390 (write_pieced_value): Handle get_frame_register_bytes returning
2391 that the register piece is unavailable/optimized out when doing a
2392 read-modify write of a bitfield.
2393 * findvar.c (value_from_register): Handle get_frame_register_bytes
2394 returning that the register piece is unavailable/optimized out.
2395 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2396 and `unavailablep'. Throw error on bad debug info. Use
2397 frame_register instead of frame_register_read, to fill in the new
2399 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2401 * valops.c: (value_assign): Adjust, and handle
2402 get_frame_register_bytes failing.
2403 * spu-tdep.c: Include exceptions.h.
2404 (spu_software_single_step): Adjust, and handle
2405 get_frame_register_bytes failing.
2406 (spu_get_longjmp_target): Ditto.
2407 * gdbarch.sh (register_to_value): Change to return int. New
2408 parameters `optimizedp' and `unavailablep'.
2409 * gdbarch.h, gdbarch.c: Regenerate.
2410 * i386-tdep.c (i386_register_to_value): Adjust to new
2411 gdbarch_register_to_value interface.
2412 * i387-tdep.c (i387_register_to_value): Ditto.
2413 * i387-tdep.h (i387_register_to_value): Ditto.
2414 * alpha-tdep.c (alpha_register_to_value): Ditto.
2415 * ia64-tdep.c (ia64_register_to_value): Ditto.
2416 * m68k-tdep.c (m68k_register_to_value): Ditto.
2417 * mips-tdep.c (mips_register_to_value): Ditto.
2418 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2420 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2422 * findvar.c (value_of_register): Mark the value as unavailable, if
2423 the register is unavailable.
2424 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2425 (frame_register): New `unavailablep' parameter.
2426 (frame_register_read): Update comment.
2427 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2428 Set it if the register is unavailable. If the register is
2429 unavailable, clear the output buffer.
2430 (frame_register): New `unavailablep' parameter. Pass it down.
2431 (frame_unwind_register): Adjust.
2432 (put_frame_register): Adjust.
2433 (frame_register_read): Adjust. Also return false if the register
2435 (frame_register_unwind_location): Adjust.
2436 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2437 is unavailable, mark the value accordingly.
2438 * stack.c (frame_info): Handle unavailable registers.
2440 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2442 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2443 simplify, using regcache_cooked_read.
2445 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2447 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2448 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2449 (regcache_raw_read_unsigned, regcache_raw_read_part)
2450 (regcache_cooked_read, regcache_cooked_read_signed)
2451 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2452 (regcache_cooked_read_ftype): Change return to enum
2454 * regcache.c: Include exceptions.h
2455 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2456 (do_cooked_read): Change return to enum register_status. Always
2457 forward to regcache_cooked_read.
2458 (regcache_raw_read): Change return to enum register_status. If
2459 the register is not REG_VALID, memset the buffer. Return the
2461 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2462 return the register's status.
2463 (regcache_raw_read_unsigned): Ditto.
2464 (regcache_cooked_read): Change return to enum register_status.
2465 Assert that with read-only regcaches, the register's status must
2466 be known. If the regcache is read-only, and the register is not
2467 REG_VALID, memset the buffer. Return the register's status.
2468 (regcache_cooked_read_signed): Change return to enum
2469 register_status. Handle non-REG_VALID registers and return the
2471 (regcache_cooked_read_unsigned): Change return to enum
2472 register_status. Handle non-REG_VALID registers and return the
2474 (regcache_xfer_part, regcache_raw_read_part)
2475 (regcache_cooked_read_part): Change return to enum
2476 register_status. Return the register's status.
2477 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2479 (regcache_dump): Handle unavailable cooked registers.
2480 * frame.c (do_frame_register_read): Adjust interface to match
2481 regcache_cooked_read_ftype.
2482 * gdbarch.sh (pseudo_register_read): Change return to enum
2484 * gdbarch.h, gdbarch.c: Regenerate.
2486 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2488 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2489 register_status. If reading a raw register indicates the raw
2490 register is not valid, return the raw register's status,
2491 otherwise, return REG_VALID.
2492 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2493 register_status. Handle non-REG_VALID raw registers and return
2494 the register's status.
2495 * arm-tdep.c (arm_neon_quad_read)
2496 (arm_pseudo_read): Change return to enum register_status. Handle
2497 non-REG_VALID raw registers and return the register's status.
2498 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2499 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2500 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2501 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2502 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2504 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2505 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2506 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2507 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2508 (m32c_pseudo_register_read): Change return to enum
2509 register_status. Adjust.
2510 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2511 enum register_status. Return the register's status.
2512 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2513 register_status. Return the register's status.
2514 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2515 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2516 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2517 * rs6000-tdep.c (move_ev_register_func): New typedef.
2518 (e500_move_ev_register): Use it. Change return to enum
2519 register_status. Return the register's status.
2520 (do_regcache_raw_read): New function.
2521 (do_regcache_raw_write): New function.
2522 (e500_pseudo_register_read): Change return to enum
2523 register_status. Return the register's status. Use
2524 do_regcache_raw_read.
2525 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2526 (dfp_pseudo_register_read): Change return to enum register_status.
2527 Return the register's status.
2528 (vsx_pseudo_register_read): Ditto.
2529 (efpr_pseudo_register_read): Ditto.
2530 (rs6000_pseudo_register_read): Ditto.
2531 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2532 register_status. Return the register's status.
2533 * sh64-tdep.c (pseudo_register_read_portions): New function.
2534 (sh64_pseudo_register_read): Change return to enum
2535 register_status. Use pseudo_register_read_portions. Return the
2537 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2538 register_status. Return the register's status.
2539 * sh-tdep.c (pseudo_register_read_portions): New function.
2540 (sh_pseudo_register_read): Change return to enum register_status.
2541 Use pseudo_register_read_portions. Return the register's status.
2542 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2543 enum register_status. Return the register's status.
2544 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2545 * spu-tdep.c (spu_pseudo_register_read_spu)
2546 (spu_pseudo_register_read): Ditto.
2547 * xtensa-tdep.c (xtensa_register_read_masked)
2548 (xtensa_pseudo_register_read): Ditto.
2549 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2551 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2553 * python/py-value.c (valpy_getitem): Fix formatting of error function
2556 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2558 ARI fixes: Add missing internationalization markups throughout
2560 * darwin-nat-info.c: Ditto.
2563 * mi/mi-main.c: Ditto.
2565 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2567 ARI fixes: Add missing internationalization markups throughout
2570 * cp-name-parser.y: Ditto.
2573 * objc-exp.y: Ditto.
2576 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2578 ARI fixes: Messages should have no trailing new lines.
2579 * darwin-nat.c (mach_check_error): Remove trailing new line from
2580 warning function call message.
2581 * record.c (bfdcore_read): Idem for error call.
2583 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2585 * common/signals.c (target_signal_from_host): Add _ markup to error
2586 function call message.
2587 (target_signal_to_host): Add _ markup and remove trailing new line
2588 from warning call message.
2589 (target_signal_from_command): Add _ markup to error function call
2592 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2596 * python/python.c (gdbpy_write): Accept a stream argument and
2597 operate to the appropriate stream.
2598 (gdbpy_flush): Likewise.
2599 (_initialize_python): Add stream constants.
2600 (finish_python_initialization): Add GdbOutputErrorFile class.
2602 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2604 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2606 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2608 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2609 to store_signed_integer. Add debug message when relocating CALL
2610 instructions. Fix formatting of debug message.
2611 * i386-tdep.c (i386_relocate_instruction): Ditto.
2613 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2615 * target.h (struct target_ops): Remove to_lookup_symbol field.
2616 (target_lookup_symbol): Delete macro.
2617 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2618 (update_current_target, setup_target_debug): Remove handling
2619 of to_lookup_symbol target_ops field.
2620 * ada-tasks.c (get_known_tasks_addr): Remove use of
2621 target_lookup_symbol.
2622 * coffread.c (coff_symtab_read): Likewise.
2623 * dbxread.c (read_dbx_symtab): Ditto.
2625 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2628 * configure.ac: Add getthrds declaration check.
2629 * configure, config.in: Regenerate.
2630 * aix-thread.c (getthrds): Declare only if not already declared
2631 in procinfo.h. More declaration out of get_signaled_thread to
2634 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2636 * python/py-symtab.c: Populate symtab_object_methods,
2638 (stpy_is_valid): New function.
2639 (salpy_is_valid): Ditto.
2640 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2641 (sympy_is_valid): New function.
2642 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2643 (objfpy_is_valid): New function.
2644 * python/py-inferior.c: Populate inferior_object_methods.
2645 (infpy_is_valid): New function.
2646 * python/py-infthread.c: Populate thread_object_methods.
2647 (thpy_is_valid): New function.
2648 * python/py-block.c: Declare block_object_methods. Populate. Declare
2649 block_iterator_object_methods. Populate.
2650 (blpy_is_valid): New function.
2651 (blpy_iter_is_valid): Ditto.
2653 2011-03-16 Keith Seitz <keiths@redhat.com>
2655 * linespec.c (find_methods): Canonicalize NAME before looking
2657 (name_end): New function.
2658 (keep_name_info): New function.
2659 (decode_line_1): Use keep_name_info.
2660 (decode_compound): Likewise.
2661 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2662 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2665 * linespec.c (locate_first_half): Keep overload information, too.
2666 (decode_compound): Use a string to represent break characters
2668 If P points to a break character, do not increment it.
2669 For C++ and Java, keep overload information and relevant keywords.
2670 If we cannot find a symbol, search the minimal symbols.
2673 * linespec.c (decode_compound): Rename SAVED_ARG to
2675 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2677 Pass a valid block to lookup_symbol.
2678 (lookup_prefix_sym): Likewise.
2679 (find_method): Construct search name based on SYM_CLASS instead
2681 * psymtab.c (lookup_partial_symbol): Add language parameter.
2682 (lookup_symbol_aux_psymtabs): Likewise.
2683 Don't assume that the psymtab we found was the right one. Search
2684 for the desired symbol in the symtab to be certain.
2685 (psymtab_search_name): New function.
2686 (lookup_partial_symbol): Use psymtab_search_name.
2687 Add language parameter.
2688 (read_symtabs_for_function): Add language parameter and pass to
2689 lookup_partial_symbol.
2690 (find_symbol_file_from_partial): Likewise.
2692 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2695 * dwarf2read.c (noop_record_line): New function.
2696 (dwarf_decode_lines): Ignore line tables for GCd functions.
2698 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2700 Fix ARI warnings about new lines at the end of messages, which
2701 are unneeded as there is a new line added at the end of the message
2703 * darwin-nat.c (darwin_stop_inferior): Ditto.
2704 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2705 * dfp.c (decimal_to_number): Ditto.
2706 * exec.c (print_section_info): Ditto.
2707 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2708 * osdata.c (get_osdata): Ditto.
2709 * record.c (bfdcore_write): Ditto.
2710 * remote-mips.c (mips_readchar): Ditto.
2711 * remote.c (read_ptid): Ditto.
2712 * ser-mingw.c (ser_windows_raw): Ditto.
2713 * tracepoint.c (add_local_symbols): Ditto.
2714 * windows-nat.c (fake_create_process): Ditto.
2716 2011-03-16 Tom Tromey <tromey@redhat.com>
2718 * tracepoint.c (stop_tracing): Don't declare.
2719 * event-top.c (after_char_processing_hook): Add `(void)'.
2721 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2723 * NEWS: Add Parameter sub-classing description.
2725 2011-03-16 Kai Tietz <ktietz@redhat.com>
2727 * MAINTAINERS: Update my e-mail address.
2729 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2731 * MAINTAINERS: Add myself for write after approval privileges.
2733 2011-03-15 Michael Snyder <msnyder@vmware.com>
2735 * frame.c (find_frame_sal): Assert sym is not null.
2737 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2739 * objc-lang.c (selectors_info): Check strchr for null result.
2741 * stabsread.c (define_symbol): Guard against bad stabstring input.
2743 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2745 Remove trailing spaces and tabulations from pascal language
2750 p-valprint.c: Ditto.
2752 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2754 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2755 than LOW. Comment it.
2756 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2757 HIGHPC not strictly higher than LOWPC.
2759 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2761 Fix formatting of function declarations returning a pointer in
2763 * varobj.c (varobj_add_child): Ditto.
2764 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2765 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2767 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2769 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2770 for the "generic" vector ABI used with GCC 4.3 and later.
2771 (ppc64_sysv_abi_return_value): Likewise.
2773 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2775 * infcall.c (call_function_by_hand): Function return value is
2776 always a non_lval, even when using struct_return.
2778 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2780 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2781 (map_display_numbers): New.
2782 (do_delete_display): New.
2783 (undisplay_command): Use map_display_numbers.
2784 (do_enable_disable_display): New.
2785 (enable_disable_display_command): New function.
2786 (enable_display): Delete.
2787 (enable_display_command): New.
2788 (disable_display_command): Reimplement.
2789 (_initialize_printcmd): Adjust "enable display" command to use
2790 `enable_display_command' as callback.
2792 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2794 * NEWS: Add Python breakpoint 'stop' operation.
2796 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2798 * NEWS: Delete duplicate entry. Fix typo.
2800 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2802 Fix ARI warning about function names in first column.
2803 Put prototype declaration on same line as return type.
2804 * objc-exp.y: Ditto.
2806 * python/py-stopevent.h: Ditto.
2807 For long function names, split parameters to
2808 allow function name on same line as return type.
2809 * solib-pa64.c: Ditto.
2812 For long function declaration, use single line.
2813 * hppa-tdep.h: Ditto.
2814 * inferior.h: Ditto.
2816 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2818 * python/python.h: Declare gdbpy_should_stop and
2819 gdbpy_breakpoint_has_py_cond.
2820 * python/python.c: Add python.h to includes. Remove python.h from
2821 HAVE_PYTHON definition
2822 (gdbpy_should_stop): New dummy function.
2823 (gdbpy_breakpoint_has_py_cond): New dummy function.
2824 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2825 sub-classing capabilities.
2826 (gdbpy_should_stop): New function.
2827 (gdbpy_breakpoint_has_py_cond): New function.
2828 (local_setattro): New function.
2829 * breakpoint.c (condition_command): Add check for Python 'stop'
2831 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2832 operation function as part of stop/continue tests.
2834 2011-03-14 Tom Tromey <tromey@redhat.com>
2837 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2838 (needs_frame_dwarf_call): Likewise.
2840 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2842 Fix ARI warning about functions without parameters that do not
2844 * breakpoint.c (all_tracepoints): Replace () by (void).
2845 * f-exp.y (match_string_literal): Ditto.
2847 * m2-exp.y (yylex): Ditto.
2848 * mep-tdep.c (current_me_module): Ditto.
2849 (current_options): Ditto.
2850 (current_cop_data_bus_width): Ditto.
2851 (current_cr_names): Ditto.
2852 (current_cr_is_float): Ditto.
2853 (current_ccr_names): Ditto.
2854 * objc-exp.y (yylex): Ditto.
2855 * p-exp.y (yylex): Ditto.
2856 * remote.c (send_interrupt_sequence): Ditto.
2857 * tracepoint.c (current_trace_status): Ditto.
2858 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2859 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2861 2011-03-11 Michael Snyder <msnyder@vmware.com>
2863 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2864 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2865 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2866 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2867 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2869 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2870 (delete_async_event_handler): Ditto.
2872 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2874 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2876 * top.c (set_verbose): Assert showcmd was found.
2878 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2880 * xtensa-tdep.c (warning_once): Correct style issues.
2882 2011-03-11 Yao Qi <yao@codesourcery.com>
2884 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2886 2011-03-11 Andreas Schwab <schwab@redhat.com>
2888 * common/aclocal.m4: Remove.
2890 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2892 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2893 (xtensa_write_register, xtensa_read_register): Likewise.
2894 (xtensa_hextochar): Removed.
2895 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2897 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2899 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2900 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2901 (xtensa_alloc_frame_cache): Add initialization for new fields.
2902 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2903 (warning_once): New function.
2904 (xtensa_insn_kind): New item c0opc_and.
2905 (call0_classify_opcode): Add the case for AND instruction.
2906 (call0_track_op): Change arguments. New local variable litbase.
2907 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2908 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2910 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2911 (call0_analyze_prologue): Update the comments. Change arguments.
2912 Add the variety of updates to handle extended prologues, which now can
2913 conduct dynamic stack adjustments.
2914 (call0_frame_cache): Likewise.
2915 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2916 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2918 2011-03-10 Michael Snyder <msnyder@vmware.com>
2920 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2921 (cmd_qtframe): Ditto.
2922 (cmd_qtbuffer): Ditto.
2923 (cmd_bigqtbuffer): Ditto.
2925 2011-03-10 Tom Tromey <tromey@redhat.com>
2927 * tracepoint.c (trace_actions_command): Update.
2928 * thread.c (thread_apply_command): Update.
2929 * reverse.c (delete_bookmark_command): Update.
2930 (bookmarks_info): Update.
2931 * printcmd.c (undisplay_command): Update.
2932 * memattr.c (mem_enable_command): Update.
2933 (mem_disable_command): Update.
2934 (mem_delete_command): Update.
2935 * inferior.c (detach_inferior_command): Update.
2936 (kill_inferior_command): Update.
2937 (remove_inferior_command): Update.
2938 * cli/cli-utils.h (struct get_number_or_range_state): New.
2939 (init_number_or_range): Declare.
2940 (get_number_or_range): Update.
2941 * cli/cli-utils.c (init_number_or_range): New function.
2942 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2944 (number_is_in_list): Update.
2945 * breakpoint.h (get_tracepoint_by_number): Update.
2946 * breakpoint.c (map_breakpoint_numbers): Update for change to
2947 get_number_or_range.
2948 (find_location_by_number): Use get_number, not
2949 get_number_or_range.
2950 (trace_pass_set_count): New function.
2951 (trace_pass_command): Update for change to get_number_or_range.
2953 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2956 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2958 * python/py-param.c (add_setshow_generic): Add set/show callback
2959 parameters. Register Python object context.
2960 (get_show_value): New function.
2961 (get_set_value): New function.
2962 (call_doc_function): New function.
2963 (get_doc_string): Move behind get_show_value/get_set_value.
2965 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2967 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2969 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2971 * xtensa-tdep.c (xtensa_read_register): Add comment.
2972 (xtensa_write_register): Likewise.
2973 (xtensa_hextochar): Add comment and update to match coding conventions.
2974 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2975 (execute_l32e, execute_s32e, execute_code): Update comments.
2976 (xtensa_exception_handler_t): Update to match coding conventions.
2977 (xtensa_insn_kind): Likewise.
2979 2011-03-09 Michael Snyder <msnyder@vmware.com>
2981 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2983 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2985 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2987 2011-03-09 Tom Tromey <tromey@redhat.com>
2989 * thread.c (restore_selected_frame): Handle frame_level == -1.
2990 (make_cleanup_restore_current_thread): Use
2991 get_selected_frame_if_set.
2992 * frame.h (get_selected_frame_if_set): Declare.
2993 * frame.c (get_selected_frame_if_set): New function.
2995 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2997 * cli/cli-cmds.c (shell_escape): Use lbasename.
2998 * coffread.c (coff_start_symtab): Constify parameter.
2999 (complete_symtab): Constify `name' parameter.
3000 (coff_symtab_read): Constify `filestring' local.
3001 (coff_getfilename): Constify return and `result' local.
3003 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3004 * linux-fork.c (info_checkpoints_command): Use lbasename.
3005 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3006 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3007 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3008 * procfs.c (procfs_make_note_section): Use lbasename.
3009 * tui/tui-io.c (printable_part): Constity return and parameter.
3011 (print_filename): Constify parameters, and local `s'.
3012 (tui_rl_display_match_list): Constify local `temp'.
3014 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3017 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 Fix DWARF-3+ DW_AT_accessibility default assumption.
3019 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3020 cu->header.version >= 3.
3022 2011-03-09 Yao Qi <yao@codesourcery.com>
3024 * common/Makefile.in: Remove.
3025 * common/configure: Remove.
3026 * common/configure.ac: Remove.
3028 2011-03-09 Yao Qi <yao@codesourcery.com>
3031 2011-02-11 Yao Qi <yao@codesourcery.com>
3033 * common/Makefile.in: Add copyright header.
3035 2011-02-11 Yao Qi <yao@codesourcery.com>
3037 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3039 * configure.ac: Add common to sub dir.
3040 * configure: Regenerate.
3042 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3044 * xtensa-tdep.c (call0_ret): New function.
3045 (xtensa_skip_prologue): Speed up analysis.
3047 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3049 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3050 while executing MI command -data-list-changed-registers.
3052 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3054 * xtensa-tdep.c (xtensa_read_register): New function.
3055 (xtensa_write_register): New function.
3056 (xtensa_find_register_by_name): New function.
3057 (xtensa_windowed_frame_cache): Update comments in type description.
3058 (xtensa_frame_cache): Likewise.
3059 (xtensa_window_interrupt_insn): New function.
3060 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3061 (xtensa_insn_kind): Add new instructions.
3062 (rwx_special_register): New function.
3063 (call0_classify_opcode): Add new instructions to the analysis.
3064 (a0_saved, a7_saved, a11_saved): New variables.
3065 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3066 (execute_l32e): New function.
3067 (execute_s32e): New function.
3068 (xtensa_exception_handler_t): New type.
3069 (execute_code): New function.
3070 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3071 analysis for Xtensa Window Exception handlers.
3073 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3075 * xtensa-tdep.c (TX_PS): New.
3076 (windowing_enabled): Update to count for Call0 ABI.
3077 (xtensa_hextochar): New.
3078 (xtensa_init_reggroups): Make algorithm generic.
3079 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3081 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3083 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3085 2011-03-08 Michael Snyder <msnyder@vmware.com>
3087 * i386-tdep.c (i386_follow_jump): Check return value of
3089 (i386_analyze_struct_return): Ditto.
3090 (i386_skip_probe): Ditto.
3091 (i386_match_insn): Ditto.
3092 (i386_skip_noop): Ditto.
3093 (i386_analyze_frame_setup): Ditto.
3094 (i386_analyze_register_saves): Ditto.
3095 (i386_skip_prologue): Ditto.
3096 (i386_skip_main_prologue): Ditto.
3098 * target.c (read_whatever_is_readable): Fix memory leak.
3100 * i386-tdep.c (i386_process_record): Document fall through.
3102 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 Fix DWARF-3+ DW_AT_accessibility default assumption.
3105 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3106 cu->header.version >= 3.
3108 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3110 * remote.c (remote_check_symbols): Skip if the target has no
3113 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3115 * target.c (read_whatever_is_readable): Reformat comment,
3116 with a minor typo fix. Minor reformatting of the code.
3118 2011-03-08 Yao Qi <yao@codesourcery.com>
3120 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3121 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3122 Use cached result instead of calling displaced_in_arm_mode again.
3123 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3124 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3125 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3126 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3127 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3128 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3129 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3130 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3131 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3132 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3133 (arm_catch_kernel_helper_return): Likewise.
3134 * gdb/arm-tdep.h : Update function declarations.
3136 2011-03-07 Michael Snyder <msnyder@vmware.com>
3138 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3140 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3142 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3144 * elfread.c (elf_symtab_read): Stop memory leak.
3146 * main.c (captured_main): Fix memory leak.
3148 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3150 * ada-lang.c (compare_names): Call is_name_suffix with string1
3153 2011-03-07 Tom Tromey <tromey@redhat.com>
3155 * xcoffread.c (xcoff_sym_fns): Update.
3156 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3157 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3158 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3159 (symbol_file_add_with_addrs_or_offsets): Likewise.
3160 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3161 * somread.c (som_sym_fns): Update.
3162 * psymtab.h (require_partial_symbols): Declare.
3163 * psymtab.c (require_partial_symbols): New function.
3164 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3165 (ALL_OBJFILE_PSYMTABS): Undef.
3166 (ALL_PSYMTABS): Move from psympriv.h.
3167 (lookup_partial_symtab, find_pc_sect_psymtab)
3168 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3169 (find_last_source_symtab_from_partial)
3170 (forget_cached_source_info_partial)
3171 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3172 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3173 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3174 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3175 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3176 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3177 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3178 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3179 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3181 * mipsread.c (ecoff_sym_fns): Update.
3182 * machoread.c (macho_sym_fns): Update.
3183 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3184 (read_psyms): New function.
3185 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3186 (elf_sym_fns_lazy_psyms): New global.
3187 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3188 dwarf2_build_psymtabs.
3189 * dbxread.c (aout_sym_fns): Update.
3190 * coffread.c (coff_sym_fns): Update.
3192 2011-03-07 Tom Tromey <tromey@redhat.com>
3194 * infrun.c (print_exited_reason): Include inferior id and pid in
3197 2011-03-07 Tom Tromey <tromey@redhat.com>
3199 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3201 (target_has_execution_1): Update.
3202 (target_has_execution_current): Declare.
3203 (target_has_execution): Call target_has_execution_current.
3204 (default_child_has_execution): Update.
3205 * target.c (default_child_has_execution): Add 'the_ptid'
3207 (target_has_execution_1): Likewise.
3208 (target_has_execution_current): New function.
3209 (add_target): Update.
3210 (init_dummy_target): Update.
3211 * remote-m32r-sdi.c (m32r_has_execution): New function.
3212 (init_m32r_ops): Use it.
3213 * record.c (record_core_has_execution): Now static. Add
3214 'the_ptid' parameter.
3215 * inferior.c (have_live_inferiors): Don't save current thread.
3216 Use target_has_execution_1.
3218 2011-03-07 Yao Qi <yao@codesourcery.com>
3220 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3222 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3224 * elfread.c (elf_symtab_read): Minor reformatting.
3226 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3228 * objc-lang.c (selectors_info): Minor reformatting.
3230 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3232 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3234 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3235 Michael Snyder <msnyder@vmware.com>
3237 * ada-valprint.c (ada_val_print_array): Move the declaration of
3238 "byte_order" and "elttype" inside the block where these variables
3239 are actually used. Remove some special handling for the case
3240 where "elttype" and "eltlen" are null. Replace by a comment
3241 and a couple of assertion checks.
3243 2011-03-05 Michael Snyder <msnyder@vmware.com>
3245 * source.c (add_path): Replace semicolon at end of block.
3246 * dwarf2expr.c (execute_stack_op): Ditto.
3248 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3250 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3251 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3252 (bfin-*-*): Likewise.
3254 2011-03-05 Michael Snyder <msnyder@vmware.com>
3256 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3257 * mdebugread.c (parse_symbol): Ditto.
3258 * parse.c (parse_exp_in_context): Ditto.
3259 * source.c (add_path): Ditto.
3260 * utils.c (gnu_debuglink_crc32): Ditto.
3261 * varobj.c (variable_language): Ditto.
3263 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3265 2011-03-04 Michael Snyder <msnyder@vmware.com>
3267 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3269 * symfile.c (simple_overlay_update): Check for null return value
3270 from lookup_minimal_symbol.
3272 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3274 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3276 * eval.c (parse_and_eval_address_1): Remove function.
3277 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3278 instead of parse_and_eval_address_1.
3279 * value.h (parse_and_eval_address_1): Remove prototype.
3281 2011-03-04 Michael Snyder <msnyder@vmware.com>
3283 * remote.c (putpkt_binary): Document that case stmt falls through.
3285 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3287 * breakpointc (print_it_typical): Move NULL check from here...
3288 (print_bp_stop_message): ... to here.
3290 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3292 * breakpoint.c (enable_command): Use break instead of continue,
3293 and fill in a missing break.
3294 (disable_command): Ditto.
3296 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3298 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3299 (terminal_save_ours): Remove misleading comment.
3300 (inflow_inferior_data_cleanup): Free ttystate.
3301 (inflow_inferior_exit): Likewise.
3302 (copy_terminal_info): Copy ttystate.
3304 * serial.c (serial_copy_tty_state): New function.
3305 * serial.h (serial_copy_tty_state): Add prototype.
3306 (struct serial_ops): Add copy_tty_state callback.
3307 * ser-base.c (ser_base_copy_tty_state): New function.
3308 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3309 * ser-go32.c (dos_copy_tty_state): New function.
3310 (dos_ops): Install copy_tty_state callback.
3311 * ser-mingw.c (_initialize_ser_windows): Likewise.
3312 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3313 * ser-unix.c (hardwire_copy_tty_state): New function.
3314 (_initialize_ser_hardwire): Install it.
3316 2011-03-04 Michael Snyder <msnyder@vmware.com>
3318 * breakpoint.c (create_breakpoint): Add missing break statement.
3320 Reverting this patch:
3321 * infcall.c (call_function_by_hand): Add break statements for lint.
3323 Reverting this patch:
3324 * cli/cli-script.c (script_from_file): Add break for lint.
3326 2011-03-04 Michael Snyder <msnyder@vmware.com>
3328 * solib.c (reload_shared_libraries_1): Close memory leak.
3330 2011-03-03 Tom Tromey <tromey@redhat.com>
3333 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3336 2011-03-03 Michael Snyder <msnyder@vmware.com>
3338 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3339 fields of struct 'st' to zero.
3341 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3342 sal.pspace before calling set_current_source_symtab_and_line.
3344 2011-03-03 Yao Qi <yao@codesourcery.com>
3346 * Makefile.in (configure-common): Remove. Let Makefile
3347 in dir common to rebuild itself.
3348 (common/Makefile): Likewise.
3350 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3352 * utils.c (parse_escape): Add i18n markup in error message.
3354 2011-03-03 Yao Qi <yao@codesourcery.com>
3356 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3358 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3359 (displaced_write_reg, displaced_read_reg): Likewise.
3360 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3361 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3362 (cleanup_branch): Replace magic number 14 and 15 with
3363 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3365 2011-03-02 Michael Snyder <msnyder@vmware.com>
3367 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3369 * cli/cli-script.c (script_from_file): Add break for lint.
3371 * mdebugread.c (parse_partial_symbols): Fix indent.
3373 * target-descriptions.c (tdesc_gdb_type): No need to call
3374 xstrdup, callee saves a copy.
3376 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3378 * infcall.c (call_function_by_hand): Add break statements for lint.
3380 * utils.c (parse_escape): Escape the escape char.
3382 * python/py-inferior.c (build_inferior_list): Error out if
3383 PyList_Append fails.
3384 (gdbpy_inferiors): Error out if build_inferior_list fails.
3386 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3389 * record.c (record_restore): Move printf to before error return.
3391 2011-03-02 Yao Qi <yao@codesourcery.com>
3393 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3394 is_thumb and insn_size.
3395 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3396 on both ARM and Thumb mode.
3397 (arm_process_displaced_insn): Set is_thumb and insn_size.
3398 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3399 (arm_displaced_step_fixup): Likewise.
3401 2011-03-01 Michael Snyder <msnyder@vmware.com>
3403 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3405 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3407 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3409 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3411 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3414 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3415 which shadows function parameter.
3417 * tracepoint.c (create_tsv_from_upload): Superfluous call
3418 to xstrdup. Callee already calls xstrdup.
3420 * linespec.c (decode_line_1): Remove unnecessary null check.
3422 * tracepoint.c (scope_info): Fix mem leak, remove underused
3425 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3426 superfluous null check.
3428 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3429 (value_of_builtin_frame_fp_reg): Ditto.
3431 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3433 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3436 * linespec.c (decode_line_1): Check for null before dereference.
3438 * reverse.c (record_restore): Move null-check to before pointer
3441 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3443 * objc-lang.c (selectors_info): Add explanitory comment.
3444 (classes_info): Ditto.
3446 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3448 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3449 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3450 versions of the trampoline. Handle Thumb vs. ARM addresses.
3451 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3452 (arm_linux_init_abi): Install it.
3453 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3454 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3456 2011-02-28 Michael Snyder <msnyder@vmware.com>
3458 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3459 a little bigger, to avoid possibility of an overflow.
3461 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3462 buffers a little bigger, to avoid possibility of an overflow.
3464 * coffread.c (coff_getfilename): Add check to avoid overflow.
3466 * objc-lang.c (selectors_info): Add a small safety margin to
3468 (classes_info): Error out on too long REGEXP.
3470 * infrun.c (handle_inferior_event): Remove unused function call.
3472 * fork-child.c (fork_inferior): Remove ifdef'd code and
3475 * linux-thread-db.c (attach_thread): Discard unused value.
3477 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3479 * remote.c (remote_get_noisy_reply): Discard unused value.
3480 (remote_vcont_resume): Ditto.
3481 (remote_stop_ns): Ditto.
3483 * linespec.c (decode_objc): Delete unused variable.
3485 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3487 * dwarf2read.c (add_partial_symbol): Discard unused values.
3488 (read_base_type): Delete unused variable.
3490 * dbxread.c (read_dbx_symtab): Discard unused value.
3492 * eval.c (evaluate_subexp_standard): Delete unused variable,
3493 and discard unused values.
3495 * infcmd.c (_initialize_infcmd): Discard unused values.
3497 * stabsread.c (rs6000_builtin_type): Missing break statement.
3499 * dbxread.c (process_one_symbol): Discard unused value.
3501 * coffread.c (coff_end_symtab): Delete unused variable.
3503 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3504 (dwarf2_add_typedef): Delete unused variable.
3505 (read_namespace): Ditto.
3506 (dwarf_decode_macros): Ditto.
3508 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3510 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3512 * p-valprint.c (pascal_val_print): Discard unused value.
3514 * utils.c (nquery): Call va_end before return;
3518 * proc-service.c (ps_plog): Call va_end before return.
3520 2011-02-28 Tom Tromey <tromey@redhat.com>
3522 * python/python.c (gdbpy_value_cst): New global.
3523 (_initialize_python): Initialize it.
3524 * python/python-internal.h (gdbpy_value_cst): Declare.
3525 * python/py-value.c (convert_value_from_python): Use
3528 2011-02-28 Michael Snyder <msnyder@vmware.com>
3530 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3532 * breakpoint.c (catch_syscall_completer): Free malloced list.
3534 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3536 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3537 (lval_func_check_synthetic_pointer): Ditto.
3538 (lval_func_free_closure): Fix use-after-free.
3540 2011-02-28 Tom Tromey <tromey@redhat.com>
3542 * psymtab.c (expand_partial_symbol_tables): Use
3543 ALL_OBJFILE_PSYMTABS.
3545 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 * objc-lang.c (selectors_info): Error on too long REGEXP.
3549 2011-02-28 Michael Snyder <msnyder@vmware.com>
3551 * python/py-param.c (set_parameter_value): Add missing
3554 * linux-record.c (record_linux_system_call): Add missing
3557 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3559 * breakpoint.c (print_one_breakpoint_location): Remove unused
3560 argument PRINT_ADDRESS_BITS. Update callers.
3561 (print_one_breakpoint): Likewise.
3563 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3565 * breakpoint.c (wrap_indent_at_field): New function.
3566 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3567 Allocate ui_stream locally instead of using STB argument.
3568 (print_one_breakpoint_location): Update call.
3569 * ui-out.c (ui_out_query_field): New function.
3570 * ui-out.h (ui_out_query_field): Add prototype.
3572 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3574 From Michael Snyder <msnyder@vmware.com>
3575 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3577 2011-02-27 Michael Snyder <msnyder@vmware.com>
3579 * objc-lang.c (selectors_info): Prevent string overrun.
3581 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3584 * symtab.c (rbreak_command): Move variable 'file_name' to
3587 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3588 param with a local variable of the same name.
3590 2011-02-27 Michael Snyder <msnyder@vmware.com>
3592 * value.c (value_from_history_ref): New function.
3593 * value.h (value_from_history_ref): Export.
3594 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3595 to parse value history references.
3596 * cli/cli-utils.h (get_number_trailer): Update comment.
3598 2011-02-27 Michael Snyder <msnyder@vmware.com>
3600 * inferior.c (detach_inferior_command): Use get_number_or_range.
3601 (kill_inferior_command): Ditto.
3602 (remove_inferior_command): Ditto.
3603 (initialize_inferiors): Make command names plural.
3604 Update help strings.
3606 2011-02-27 Michael Snyder <msnyder@vmware.com>
3608 * darwin-nat-info.c: Fix comment typo.
3609 * dwarf2expr.h: Ditto.
3610 * fbsd-nat.c: Ditto.
3611 * fbsd-nat.h: Ditto.
3612 * frame-unwind.h: Ditto.
3614 * hppa-hpux-tdep.c: Ditto.
3615 * i386-linux-nat.c: Ditto.
3616 * linux-nat.c: Ditto.
3617 * nbsd-nat.c: Ditto.
3618 * nbsd-nat.h: Ditto.
3619 * ppc-linux-tdep.c: Ditto.
3622 * tui/tui-winsource.c: Ditto.
3624 2011-02-26 Michael Snyder <msnyder@vmware.com>
3626 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3628 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3630 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3631 with a local variable of the same name.
3633 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3634 param with a local variable of the same name.
3635 (i387_supply_xsave): Ditto.
3637 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3638 that it does not shadow a function parameter.
3640 * i386-nat.c (i386_length_and_rw_bits): Document that case
3641 statement is meant to fall through.
3643 * expprint.c (dump_subexp_body_standard): Document that case
3644 statement is meant to fall through.
3646 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3647 dead if statement. Condition can't be false.
3649 2011-02-25 Michael Snyder <msnyder@vmware.com>
3651 * arm-tdep.c: Fix typos in comments.
3652 * bsd-uthread.c: Ditto.
3653 * completer.c: Ditto.
3655 * cp-namespace.c: Ditto.
3656 * cp-support.c: Ditto.
3657 * cris-tdep.c: Ditto.
3659 * dwarf2read.c: Ditto.
3661 * gdbtypes.h: Ditto.
3662 * inferior.h: Ditto.
3663 * mdebugread.c: Ditto.
3664 * mips-tdep.c: Ditto.
3665 * ppc-linux-nat.c: Ditto.
3666 * ppc-linux-tdep.c: Ditto.
3667 * printcmd.c: Ditto.
3668 * sol-thread.c: Ditto.
3669 * solib-frv.c: Ditto.
3671 * sparc64-tdep.c: Ditto.
3672 * spu-tdep.c: Ditto.
3673 * stabsread.c: Ditto.
3678 * python/py-block.c: Ditto.
3679 * python/py-symbol.c: Ditto.
3680 * python/py-symtab.c: Ditto.
3681 * python/py-value.c: Ditto.
3682 * tui/tui-win.c: Ditto.
3684 2011-02-25 Michael Snyder <msnyder@vmware.com>
3686 * inferior.c (print_inferior): Accept a string instead of an int
3687 for requested_inferiors, and use get_number_or_range to parse it.
3688 (info_inferiors_command): Pass args string to print_inferior.
3689 (initialize_inferiors): Change help string for info inferiors.
3690 * inferior.h (print_inferior): Export prototype change.
3692 2011-02-25 Tom Tromey <tromey@redhat.com>
3694 * common/ax.def (invalid2): Set to 0x31.
3696 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3698 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3700 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3702 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3704 2011-02-24 Michael Snyder <msnyder@vmware.com>
3706 * Makefile.in (clean): Make clean should remove generated files
3707 observer.h and observer.inc.
3709 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3711 Revert the following patch (not approved yet):
3712 2011-02-21 Hui Zhu <teawater@gmail.com>
3713 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3714 * ax-gdb.c (gen_printf_expr_callback): New function.
3715 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3716 * ax-general.c (ax_memcpy): New function.
3717 (ax_print): Handle "printf".
3719 * ax.h (ax_memcpy): Forward declare.
3720 * common/ax.def (invalid2): Removed.
3721 (printf): New entry.
3722 * printcmd.c (printcmd.h): New include.
3723 (string_printf): New function.
3724 (ui_printf): Removed.
3725 (printf_command): Remove static. Call string_printf.
3726 (eval_command): Call string_printf.
3727 * printcmd.h: New file.
3728 * tracepoint.c (validate_actionline,
3729 encode_actions_1): handle printf_command.
3731 2011-02-23 Tom Tromey <tromey@redhat.com>
3733 * ax-general.c (ax_pick): Add missing newline.
3735 2011-02-23 Michael Snyder <msnyder@vmware.com>
3737 * breakpoint.c (breakpoint_1): Change first argument from an int
3738 to a char pointer, so that the function now accepts a list of
3739 breakpoints rather than just one. Use new function
3740 'number_is_in_list' to implement.
3741 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3742 (watchpoints_info): Ditto.
3743 (tracepoints_info): Ditto.
3744 (maintenance_info_breakpoints): Ditto.
3745 (_initialize_breakpoint): Update help strings to reflect the fact
3746 that these functions can now take more than one argument.
3747 * cli/cli-utils.c (number_is_in_list): New function.
3748 * cli/cli-utils.h (number_is_in_list): Export.
3750 2011-02-23 Michael Snyder <msnyder@vmware.com>
3752 * memattr.c (mem_enable_command): Use get_number_or_range.
3753 (mem_disable_command): Ditto.
3754 (mem_delete_command): Ditto.
3755 (_initialize_mem): Tweak usage message to reflect multiple
3758 2011-02-22 Doug Evans <dje@google.com>
3760 Add gdb.lookup_global_symbol python function.
3762 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3763 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3764 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3766 2011-02-22 Tom Tromey <tromey@redhat.com>
3768 * language.c (language_class_name_from_physname): Rename
3769 'curr_language' argument to 'lang'; use in body.
3771 2011-02-22 Michael Snyder <msnyder@vmware.com>
3773 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3775 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3777 * frame-unwind.h: Fix comment to mention the this frame, not the
3780 2011-02-22 Tom Tromey <tromey@redhat.com>
3782 * symfile.c (auto_solib_limit): Remove.
3783 * symfile.h (auto_solib_limit): Remove.
3785 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3787 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3789 2011-02-21 Michael Snyder <msnyder@vmware.com>
3791 * gdbthread.h (print_thread_info): Change prototype.
3792 * thread.c (print_thread_info): Accept char* instead of int for
3793 requested_threads argument. Use new function number_is_in_list
3794 to determine which threads to list.
3795 (info_threads_command): Pass char* to print_thread_info.
3796 * cli/cli-utils.c (number_is_in_list): New function.
3797 * cli/cli-utils.h (number_is_in_list): Export.
3798 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3800 (print_one_inferior): Ditto.
3801 (mi_cmd_list_thread_groups): Ditto.
3803 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3805 * common/Makefile.in (CFLAGS): New.
3806 (COMPILE): Add $(CFLAGS).
3808 2011-02-21 Tom Tromey <tromey@redhat.com>
3810 * breakpoint.c (catch_syscall_command_1): Fix typo.
3812 2011-02-21 Tom Tromey <tromey@redhat.com>
3814 * reverse.c: Include cli-utils.h.
3815 * printcmd.c: Include cli-utils.h.
3816 (string_printf): Use skip_spaces.
3817 * cli/cli-utils.h: New file.
3818 * cli/cli-utils.c: New file.
3819 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3820 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3821 * breakpoint.h (get_number, get_number_or_range): Move to
3823 * breakpoint.c: Include cli-utils.h.
3824 (get_number_trailer, get_number, get_number_or_range)
3825 (ep_skip_leading_whitespace): Move to cli-utils.c.
3826 (create_breakpoint_sal, find_condition_and_thread)
3827 (decode_static_tracepoint_spec, watch_command_1)
3828 (watch_maybe_just_location, ep_parse_optional_if_clause)
3829 (catch_fork_command_1, catch_exec_command_1)
3830 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3831 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3832 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3833 (HFILES_NO_SRCDIR): Add cli-utils.h.
3834 (cli-utils.o): New target.
3836 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3838 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3839 before calling discard_all_inferiors.
3841 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3843 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3844 (struct builtin_opencl_type): Remove.
3845 (builtin_opencl_type): Change return type to "struct type **".
3846 (lookup_opencl_vector_type): Update caller.
3847 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3848 (build_opencl_types): Install plain array of "struct type *"
3849 instead of "struct builtin_opencl_type".
3851 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3852 Ulrich Weigand <uweigand@de.ibm.com>
3854 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3855 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3856 (struct arm_linux_hwbp_cap): New type.
3857 (arm_linux_get_hwbp_cap): New function.
3858 (arm_linux_get_hw_breakpoint_count): Likewise.
3859 (arm_linux_get_hw_watchpoint_count): Likewise.
3860 (arm_linux_can_use_hw_breakpoint): Likewise.
3861 (arm_hwbp_type): New type.
3862 (arm_hwbp_control_t): Likewise.
3863 (struct arm_linux_hw_breakpoint): Likewise.
3864 (struct arm_linux_thread_points): Likewise.
3865 (arm_threads): New global variable.
3866 (arm_linux_find_breakpoints_by_tid): New function.
3867 (arm_hwbp_control_initialize): Likewise.
3868 (arm_hwbp_control_is_enabled): Likewise.
3869 (arm_hwbp_control_disable): Likewise.
3870 (arm_linux_hw_breakpoint_initialize): Likewise.
3871 (arm_linux_get_hwbp_type): Likewise.
3872 (arm_linux_hw_watchpoint_initialize): Likewise.
3873 (arm_linux_hw_breakpoint_equal): Likewise.
3874 (arm_linux_insert_hw_breakpoint1): Likewise.
3875 (arm_linux_remove_hw_breakpoint1): Likewise.
3876 (arm_linux_insert_hw_breakpoint): Likewise.
3877 (arm_linux_remove_hw_breakpoint): Likewise.
3878 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3879 (arm_linux_insert_watchpoint): Likewise.
3880 (arm_linux_remove_watchpoint): Likewise.
3881 (arm_linux_stopped_data_address): Likewise.
3882 (arm_linux_stopped_by_watchpoint): Likewise.
3883 (arm_linux_watchpoint_addr_within_range): Likewise.
3884 (arm_linux_new_thread): Likewise.
3885 (arm_linux_thread_exit): Likewise.
3886 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3887 related target callbacks. Register arm_linux_new_thread and
3888 arm_linux_thread_exit.
3889 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3890 * arm-tdep.c (arm_pc_is_thumb): Make global.
3891 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3893 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3895 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3896 per-frame locations while within a function epilogue.
3898 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3900 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3901 to GNU coding standards.
3903 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3905 Allow use of mingw native on Windows 95 OS.
3906 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3907 (ser_windows_close): Only call CancelIo if function exists.
3908 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3909 to check for existence of CancelIo function in kernel32 DLL.
3911 2011-02-21 Hui Zhu <teawater@gmail.com>
3913 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3914 * ax-gdb.c (gen_printf_expr_callback): New function.
3915 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3916 * ax-general.c (ax_memcpy): New function.
3917 (ax_print): Handle "printf".
3919 * ax.h (ax_memcpy): Forward declare.
3920 * common/ax.def (invalid2): Removed.
3921 (printf): New entry.
3922 * printcmd.c (printcmd.h): New include.
3923 (string_printf): New function.
3924 (ui_printf): Removed.
3925 (printf_command): Remove static. Call string_printf.
3926 (eval_command): Call string_printf.
3927 * printcmd.h: New file.
3928 * tracepoint.c (validate_actionline,
3929 encode_actions_1): handle printf_command.
3931 2011-02-19 Michael Snyder <msnyder@vmware.com>
3933 * reverse.c (delete_one_bookmark): Argument is now bookmark
3934 id rather than pointer to bookmark struct.
3935 (delete_bookmark_command): Use get_number_or_range.
3936 (goto_bookmark_command): Parse with get_number instead of strtoul.
3937 (bookmark_1): New function. Print info for one bookmark.
3938 (bookmarks_info): Use get_number_or_range and bookmark_1.
3940 2011-02-18 Michael Snyder <msnyder@vmware.com>
3942 * thread.c (info_threads_command): Re-implement using
3943 get_number_or_range.
3944 (thread_apply_command): Ditto.
3946 2011-02-18 Tom Tromey <tromey@redhat.com>
3948 * common/ax.def: New file.
3949 * ax.h (enum agent_op): Use ax.def.
3950 * ax-general.c (aop_map): Use ax.def.
3952 2011-02-18 Tom Tromey <tromey@redhat.com>
3954 * ax-general.c (aop_map): Add pick and rot.
3955 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3956 <DW_OP_rot>: Implement.
3957 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3959 * ax-general.c (ax_pick): New function.
3961 2011-02-18 Tom Tromey <tromey@redhat.com>
3963 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3965 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3966 Tom Tromey <tromey@redhat.com>
3968 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3969 make_symbol_overload_list_block with NULL BLOCK.
3970 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3972 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3974 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3975 * breakpoint.h (get_number_or_range): Declare.
3976 * printcmd.c (ALL_DISPLAYS): Declare.
3977 (delete_display): Reimplement taking a display pointer.
3978 (undisplay_command): Accept a range of displays to delete, using
3979 get_number_or_range.
3981 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3983 * c-valprint.c (c_val_print): Add embedded_offset to address
3984 for arrays of unspecified length.
3985 * p-valprint.c (pascal_val_print): Likewise.
3987 2011-02-18 Yao Qi <yao@codesourcery.com>
3989 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3990 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3991 (thumb_process_displaced_insn): New.
3992 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3993 call to arm_process_displaced_insn.
3994 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3996 2011-02-17 Tom Tromey <tromey@redhat.com>
3998 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3999 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4000 compile_dwarf_to_ax. No longer static. Call
4001 dwarf2_compile_cfa_to_ax.
4002 (locexpr_tracepoint_var_ref): Update.
4003 (loclist_tracepoint_var_ref): Update.
4004 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4005 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4006 argument; add 'gdbarch' and 'pc'.
4007 (dwarf2_compile_cfa_to_ax): New function.
4008 (dwarf2_frame_cache): Update.
4010 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4012 * ada-lang.c (ada_type_of_array): Fix the size of the array
4013 in the case of an unconstrained packed array.
4015 2011-02-17 Yao Qi <yao@codesourcery.com>
4017 * common/Makefile.in: Add more targets for make.
4019 2011-02-16 Tom Tromey <tromey@redhat.com>
4021 * dwarf2loc.c (unimplemented): Fix typo.
4023 2011-02-16 Tom Tromey <tromey@redhat.com>
4025 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4026 (compile_dwarf_to_ax) <default>: Use unimplemented.
4027 <DW_OP_deref>: Update.
4028 (disassemble_dwarf_expression): Update.
4029 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4030 (decode_locdesc): Update.
4031 * dwarf2expr.h (dwarf_stack_op_name): Update.
4033 2011-02-16 Tom Tromey <tromey@redhat.com>
4035 * ax.h (struct aop_map) <name>: Now const.
4037 2011-02-16 Tom Tromey <tromey@redhat.com>
4039 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4042 2011-02-16 Yao Qi <yao@codesourcery.com>
4044 * infrun.c (get_displaced_step_closure_by_addr): New.
4045 * inferior.h: Declare it.
4046 * arm-tdep.c: (arm_pc_is_thumb): Call
4047 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4050 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4051 Jan Kratochvil <jan.kratochvil@redhat.com>
4054 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4056 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4057 Jan Kratochvil <jan.kratochvil@redhat.com>
4059 * value.c (value_contents_copy_raw): Extend describing comment.
4060 Assert that the destination contents we're overwriting are wholly
4062 (value_contents_copy): Extend describing comment.
4064 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4065 Jan Kratochvil <jan.kratochvil@redhat.com>
4067 * value.c (value_available_contents_eq): Remove redundant local
4068 variables. Fix available contents comparision.
4069 * value.h (value_available_contents_eq): Extend describing
4072 2011-02-16 Yao Qi <yao@codesourcery.com>
4074 * thread.c (info_threads_command): Add missing i18n markup and remove
4077 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4079 * breakpoint.c (longjmp_names): New variable.
4080 (struct breakpoint_objfile_data): New type.
4081 (breakpoint_objfile_key): New variable.
4082 (msym_not_found): New variable.
4083 (msym_not_found_p): New predicate.
4084 (get_breakpoint_objfile_data): New function.
4085 (create_overlay_event_breakpoint): Check per-objfile cache for
4087 (create_longjmp_master_breakpoint): Likewise.
4088 (create_std_terminate_master_breakpoint): Likewise.
4089 (create_exception_master_breakpoint): Likewise.
4090 (_initialize_breakpoint): Register per-objfile data key.
4092 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4094 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4096 (create_longjmp_master_breakpoint): Loop over longjmp names.
4097 (create_std_terminate_master_breakpoint): Const-propagate parameter
4099 (update_breakpoints_after_exec): Adjust.
4100 (breakpoint_re_set): Adjust.
4102 2011-02-15 Michael Snyder <msnyder@vmware.com>
4104 * thread.c (info_threads_command): Process arg as thread id,
4105 or list of thread ids.
4106 (thread_find_command): New command.
4107 (_initialize_thread): Document argument for info threads.
4108 Document 'thread find' command.
4109 * NEWS: Document new command "thread find".
4111 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4113 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4114 * aclocal.m4: Regenerated with aclocal-1.11.1.
4115 * common/configure: Regenerate with autoconf-2.64.
4117 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4119 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4120 bool data type to a size of one byte.
4122 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4123 Jan Kratochvil <jan.kratochvil@redhat.com>
4125 * target.c (memory_xfer_live_readonly_partial): Document where to
4126 look for interface description.
4128 2011-02-15 Yao Qi <yao@codesourcery.com>
4131 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4132 order to store PC value on stack instead of text section.
4134 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4136 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4137 the EFP register set size.
4138 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4139 data from the VMX register.
4140 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4141 and write data from/to the VMX register.
4143 2011-02-14 Michael Snyder <msnyder@vmware.com>
4145 * command.h (enum command_class): New class 'no_set_class', for
4146 "show" commands without a corresponding "set" command.
4147 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4148 * copying.c (_initialize_copying): Ditto for "show copying" and
4150 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4152 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4153 which there is no corresponding "set" command (eg. "show copying").
4155 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4156 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 * exec.c (section_table_available_memory): Change `len' parameter
4160 * exec.h (section_table_available_memory): Ditto.
4161 * value.h (read_value_memory): Rename the `offset' parameter to
4164 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4165 Jan Kratochvil <jan.kratochvil@redhat.com>
4167 * memrange.c (compare_mem_ranges): Mention sort order in
4169 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4170 * tracepoint.c (traceframe_available_memory): Extend comment to
4171 mention what happens to RESULT when the target does not support
4174 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4175 Jan Kratochvil <jan.kratochvil@redhat.com>
4177 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4180 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4182 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4183 No longer handle NULL values.
4185 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4187 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4188 * value.c: Include "exceptions.h".
4189 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4191 * cp-abi.c: Include gdb_assert.h.
4192 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4193 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4195 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4196 parameters. No longer returns -1 on error.
4197 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4199 * cp-valprint.c: Include exceptions.h.
4200 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4201 the baseclass_offset. Handle unavailable base classes. Use
4202 val_print_invalid_address.
4203 * p-valprint.c: Include exceptions.h.
4204 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4205 when fetching the baseclass_offset. No longer expect
4206 baseclass_offset returning -1. Handle unavailable base classes.
4207 Use val_print_invalid_address.
4208 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4209 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4210 `embedded_offset' and `val' parameters. Adjust.
4211 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4212 parameter, and change its type to gdb_byte pointer. Add
4213 `embedded_offset' and `val' parameters. Adjust. No longer expect
4214 baseclass_offset returning -1.
4215 (value_dynamic_cast): Use value_contents_for_printing rather than
4216 value_contents. Adjust.
4217 (search_struct_field): No longer expect baseclass_offset returning
4219 (search_struct_method): If reading memory from the target is
4220 necessary, wrap it in a new value to pass to baseclass_offset. No
4221 longer expect baseclass_offset returning -1.
4222 (find_method_list): No longer expect baseclass_offset returning
4223 -1. Use value_contents_for_printing rather than value_contents.
4224 * valprint.c (val_print_invalid_address): New function.
4225 * valprint.h (val_print_invalid_address): Declare.
4226 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4227 and `val' parameters. No longer expect baseclass_offset returning
4229 * gnu-v2-abi.c: Include "exceptions.h".
4230 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4231 parameters. Handle unavailable memory. Recurse through
4232 gnuv2_baseclass_offset directly, rather than through
4233 baseclass_offset. No longer returns -1 on not found, instead
4235 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4236 `val' parameters. Adjust.
4238 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4240 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4241 almost but not quite adjacent.
4243 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4245 * value.h (value_entirely_available): Declare.
4246 * value.c (value_entirely_available): New function.
4247 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4248 real type if the pointer is unavailable.
4250 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4252 * valops.c (value_repeat): Use read_value_memory instead of
4255 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4257 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4258 * value.c (value_contents_copy_raw, value_contents_copy): New
4260 (value_primitive_field): Use value_contents_copy_raw instead of
4262 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4264 (value_array, value_slice): Ditto.
4265 * valarith.c (value_subscripted_rvalue): Use
4266 value_contents_copy_raw instead of memcpy.
4268 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4270 <unavailable> references.
4272 * valops.c (get_value_at): Use value_from_contents_and_address,
4273 avoiding read_memory.
4275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4277 * c-valprint.c (c_val_print): Print a string with unavailable
4278 contents as an array.
4280 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4282 * value.h (unpack_bits_as_long): Delete declaration.
4283 (unpack_value_bits_as_long): Declare.
4284 (unpack_value_field_as_long): Declare.
4285 (value_field_bitfield): Declare.
4286 * value.c (unpack_bits_as_long): Rename to...
4287 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4288 value parameters. Return the extracted result in a new output
4289 parameter. If the value contents are unavailable, return false,
4290 otherwise return true.
4291 (unpack_value_bits_as_long): New.
4292 (unpack_field_as_long): Rename to...
4293 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4294 Add embedded_offset and value parameters. Return the extracted
4295 result in a new output parameter. If the value contents are
4296 unavailable, return false, otherwise return true.
4297 (unpack_value_field_as_long): New.
4298 (unpack_field_as_long_1): New.
4299 (unpack_field_as_long): Reimplement as wrapper around
4300 unpack_value_field_as_long_1.
4301 (value_field_bitfield): New function.
4302 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4303 unpack_value_bits_as_long. Mark the value as unavailable, if it
4305 * jv-valprint.c (java_print_value_fields): Use
4306 value_field_bitfield.
4307 * p-valprint.c (pascal_object_print_value_fields): Use
4308 value_field_bitfield.
4309 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4313 * value.c (get_internalvar_integer): Also return the int value of
4314 TYPE_CODE_INT INTERNALVAR_VALUE values.
4315 (set_internalvar): Don't special case TYPE_CODE_INT.
4317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4319 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4320 INTERNALVAR_POINTER.
4322 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4323 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4324 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4326 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4328 * value.h (value_available_contents_eq): Declare.
4329 * value.c (find_first_range_overlap): New function.
4330 (value_available_contents_eq): New function.
4331 * valprint.c (val_print_array_elements): Use
4332 value_available_contents_eq.
4333 * ada-valprint.c (val_print_packed_array_elements): Use
4334 value_available_contents_eq.
4335 * jv-valprint.c (java_value_print): Use
4336 value_available_contents_eq.
4338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4340 * target.c (target_read_live_memory): New function.
4341 (memory_xfer_live_readonly_partial): New.
4342 (memory_xfer_partial): If reading from a traceframe, fallback to
4343 reading unavailable read-only memory from read-only regions of
4345 * tracepoint.c (disconnect_tracing): Adjust.
4346 (set_current_traceframe): New, factored out from
4347 set_traceframe_number.
4348 (set_traceframe_number): Reimplement to only change the traceframe
4349 number on the GDB side.
4350 (do_restore_current_traceframe_cleanup): Adjust.
4351 (make_cleanup_restore_traceframe_number): New.
4352 (cur_traceframe_number): New global.
4353 (tfile_open): Set cur_traceframe_number to no traceframe.
4354 (set_tfile_traceframe): New function.
4355 (tfile_trace_find): If looking up a traceframe using any method
4356 other than by number, make sure the current tfile traceframe
4357 matches gdb's current traceframe. Update the current tfile
4358 traceframe if the lookup succeeded.
4359 (tfile_fetch_registers, tfile_xfer_partial)
4360 (tfile_get_trace_state_variable_value): Make sure the remote
4361 traceframe matches gdb's current traceframe.
4362 * remote.c (remote_traceframe_number): New global.
4363 (remote_open_1): Set it to -1.
4364 (set_remote_traceframe): New function.
4365 (remote_fetch_registers, remote_store_registers)
4366 (remote_xfer_memory, remote_xfer_partial)
4367 (remote_get_trace_state_variable_value): Make sure the remote
4368 traceframe matches gdb's current traceframe.
4369 (remote_trace_find): If looking up a traceframe using any method
4370 other than by number, make sure the current remote traceframe
4371 matches gdb's current traceframe. Update the current remote
4372 traceframe if the lookup succeeded.
4373 * infrun.c (fetch_inferior_event): Adjust.
4374 * tracepoint.h (set_current_traceframe): Declare.
4375 (get_traceframe_number, set_traceframe_number): Add describing
4378 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4380 Mark pieces of values as unavailable if the corresponding memory
4383 * valops.c: Include tracepoint.h.
4384 (value_fetch_lazy): Use read_value_memory.
4385 (read_value_memory): New.
4386 * value.h (read_value_memory): Declare.
4387 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4388 * exec.c (section_table_available_memory): New function.
4389 * exec.h (section_table_available_memory): Declare.
4391 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4393 * Makefile.in (SFILES): Add memrange.c.
4394 (HFILES_NO_SRCDIR): Add memrange.h.
4395 (COMMON_OBS): Add memrange.o.
4396 * memrange.c: New file.
4397 * memrange.h: New file.
4398 * tracepoint.c: Include memrange.h.
4399 (struct mem_range): Delete.
4400 (mem_range_s): Delete.
4401 (traceframe_available_memory): New function.
4402 * tracepoint.h (traceframe_available_memory): Declare.
4404 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4406 * target.h (struct traceframe_info): Forward declare.
4407 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4408 (struct target_ops) <to_traceframe_info>: New field.
4409 (target_traceframe_info): New.
4410 * target.c (update_current_target): Inherit and default
4412 * remote.c (PACKET_qXfer_traceframe_info): New.
4413 (remote_protocol_features): Register qXfer:traceframe-info:read.
4414 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4415 (remote_traceframe_info): New.
4416 (init_remote_ops): Install it.
4417 (_initialize_remote): Install "set/show remote traceframe-info"
4419 * tracepoint.h (parse_traceframe_info): Declare.
4420 * tracepoint.c (struct mem_range): New.
4421 (mem_range_s): New typedef.
4422 (struct traceframe_info): New.
4423 (traceframe_info): New global.
4424 (free_traceframe_info): New function.
4425 (clear_traceframe_info): New function.
4426 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4428 (build_traceframe_info): New function.
4429 (tfile_traceframe_info): New function.
4430 (init_tfile_ops): Install tfile_traceframe_info.
4431 (traceframe_info_start_memory, free_result): New functions.
4432 (memory_attributes, traceframe_info_elements): New globals.
4433 (parse_traceframe_info, get_traceframe_info): New functions.
4434 * features/traceframe-info.dtd: New file.
4435 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4439 Base support for <unavailable> value contents.
4441 * value.h (value_bytes_available): Declare.
4442 (mark_value_bytes_unavailable): Declare.
4443 * value.c (struct range): New struct.
4444 (range_s): New typedef.
4445 (ranges_overlap): New function.
4446 (range_lessthan): New function.
4447 (ranges_contain_p): New function.
4448 (struct value) <unavailable>: New field.
4449 (value_bytes_available): New function.
4450 (mark_value_bytes_unavailable): New function.
4451 (require_not_optimized_out): Constify parameter.
4452 (require_available): New function.
4453 (value_contents_all, value_contents): Require all bytes be
4455 (value_free): Free `unavailable'.
4456 (value_copy): Copy `unavailable'.
4457 * valprint.h (val_print_unavailable): Declare.
4458 * valprint.c (valprint_check_validity): Rename `offset' parameter
4459 to `embedded_offset'. If printing a scalar, check whether the
4460 value chunk is available.
4461 (val_print_unavailable): New.
4462 (val_print_scalar_formatted): Check whether the value is
4464 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4465 pretty-printing unavailable values.
4467 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4469 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4470 * c-typeprint.c (c_type_print_args): Update the function comment. New
4471 variable param_type, initialize it. Remove const/volatile qualifiers
4472 for language_cplus and !show_artificial. Use param_type.
4474 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4476 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4477 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4478 * symtab.h (struct symtab) <next>: Comment extension.
4480 2011-02-12 Yao Qi <yao@codesourcery.com>
4482 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4484 2011-02-11 Yao Qi <yao@codesourcery.com>
4486 * common/Makefile.in: Add copyright header.
4488 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4490 * infrun.c (proceed): Move switching out and in of tfind mode from
4492 (fetch_inferior_event): ... to here.
4494 2011-02-11 Yao Qi <yao@codesourcery.com>
4496 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4498 * configure.ac: Add common to sub dir.
4499 * configure: Regenerate.
4501 2011-02-11 Yao Qi <yao@codesourcery.com>
4505 * common/Makefile.in: New.
4506 * common/configure.ac: New.
4507 * common/aclocal.m4: New.
4508 * common/configure: Generate.
4510 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4512 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4513 side of the parenthesis.
4516 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4517 * vec.h (VEC_block_remove): Fix comment.
4519 2011-02-08 Michael Snyder <msnyder@vmware.com>
4521 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4523 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4525 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4526 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4529 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4532 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4534 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4535 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4537 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4539 * dwarf2read.c (read_subroutine_type): Set special calling
4540 convention flag for functions compiled by IBM XL C for OpenCL.
4541 * ppc-sysv-tdep.c: Include "dwarf2.h"
4542 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4544 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4545 IBM OpenCL vector types calling convention.
4546 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4547 (ppc_sysv_abi_broken_return_value): Likewise.
4548 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4549 types calling convention.
4550 (ppc64_sysv_abi_return_value): Likewise.
4551 * spu-tdep.c: Include "dwarf2.h"
4552 (spu_return_value): Implement IBM OpenCL vector types calling
4555 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4557 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4558 correct ABI for AltiVec vector arguments.
4560 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4562 * valprint.c (val_print): Extend comment.
4563 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4564 interface explanation to val_print.
4565 (ada_val_print_array): Adjust comment to current interface.
4566 (print_field_values): Adjust comment to current interface.
4567 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4568 explanation to val_print.
4569 * f-valprint.c (f_val_print): Ditto.
4570 * jv-valprint.c (java_val_print): Ditto.
4571 * m2-valprint.c (m2_val_print): Ditto.
4572 * p-valprint.c (pascal_val_print): Ditto.
4574 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4576 * breakpoint.c (parse_breakpoint_sals): Fix description.
4578 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4579 Oguz Kayral <oguzkayral@gmail.com>
4581 * python/py-inferior.c (python_on_normal_stop): New function.
4582 (python_on_resume): New function.
4583 (python_inferior_exit): New function.
4584 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4585 inferior_exit observers.
4586 * python/py-evtregistry.c: New file.
4587 * python/py-threadevent.c : New file.
4588 * python/py-event.c: New file.
4589 * python/py-evts.c: New file.
4590 * python/py-continueevent.c: New file.
4591 * python/py-bpevent.c: New file.
4592 * python/py-signalevent.c: New file.
4593 * python/py-exetiedevent.c: New file.
4594 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4595 Move struct breakpoint_object from here...
4596 * python/python-internal.h: ... to here.
4597 * python/py-event.h: New file.
4598 * python/py-events.h: New file.
4599 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4600 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4601 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4602 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4603 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4604 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4605 Add build rules for all the above.
4607 2011-02-04 Tom Tromey <tromey@redhat.com>
4609 * dwarf2read.c (dwarf2_section_empty_p): New function.
4610 (dwarf2_read_section): Use dwarf2_section_empty_p.
4611 (dwarf2_section_size): New function.
4612 (dwarf2_get_section_info): Unconditionally read section.
4613 (dwarf2_read_index): Use dwarf2_section_empty_p.
4614 (partial_read_comp_unit_head): Use dwarf2_section_size.
4615 (dwarf2_symbol_mark_computed): Likewise.
4617 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4619 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4621 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4623 * mips-linux-tdep.c: Include xml-syscall.h.
4624 (mips_linux_get_syscall_number): New function.
4625 (mips_linux_init_abi): Add calls to
4626 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4627 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4628 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4629 * syscalls/mips-n32-linux.xml: New file.
4630 * syscalls/mips-n64-linux.xml: New file.
4631 * syscalls/mips-o32-linux.xml: New file.
4633 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4635 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4636 Complain about inverted range entries.
4637 (dwarf2_record_block_ranges): Likewise.
4639 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4642 * breakpoint.c (update_watchpoint): Fix name of the
4643 update_global_location_list function.
4644 (print_one_breakpoint): Fix typo.
4645 (_initialize_breakpoint): Remove extra space in hbreak help
4647 * breakpoint.h (struct bp_location) <length>: Fix field
4650 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4652 * regcache.c (registers_changed_ptid): Don't explictly always
4653 clear `current_regcache'. Only clear current_thread_ptid and
4654 current_thread_arch when PTID matches. Only reinit the frame
4655 cache if PTID matches the current inferior_ptid. Move alloca(0)
4657 (registers_changed): ... here.
4659 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4661 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4662 starts with __stack_chk_guard as stack guard symbol.
4664 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4666 * disasm.c (compare_lines): Handle the end of sequence markers
4667 within the line table to better support disassembling over
4668 compilation unit boundaries.
4670 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4672 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4673 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4674 implementation even if no symbols are available.
4675 (thumb_analyze_prologue): Update call to skip_prologue_function.
4676 (arm_analyze_prologue): Likewise.
4678 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4680 * arm-tdep.c: Include "observer.h".
4681 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4682 (arm_exidx_data_key): New static variable.
4683 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4684 (struct arm_exidx_data): Likewise.
4685 (arm_exidx_data_free): New function.
4686 (arm_compare_exidx_entries): Likewise.
4687 (arm_obj_section_from_vma): Likewise.
4688 (arm_exidx_new_objfile): Likewise.
4689 (arm_find_exidx_entry): Likewise.
4690 (arm_exidx_fill_cache): Likewise.
4691 (arm_exidx_unwind_sniffer): Likewise.
4692 (arm_exidx_unwind): New global variable.
4693 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4694 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4695 observer. Register arm_exidx_data_key as objfile data.
4697 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4699 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4700 due to accessing uninitialized variable. Fix indentation.
4702 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4704 * c-valprint.c (c_value_print): When doing virtual base pointer
4705 adjustment, create a new value with adjusted contents rather than
4706 changing the contents of the value being printed (and getting it
4709 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4711 * xml-support.c (xml_find_attribute): New.
4712 (xinclude_start_include): Use it.
4713 * xml-support.h (xml_find_attribute): Declare.
4714 * memory-map.c (memory_map_start_memory)
4715 (memory_map_start_property): Use xml_find_attribute.
4716 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4718 * remote.c (start_thread): Use xml_find_attribute.
4719 * solib-target.c (library_list_start_segment)
4720 (library_list_start_section, library_list_start_library)
4721 (library_list_start_list): Use xml_find_attribute.
4722 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4723 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4724 (tdesc_start_field): Use xml_find_attribute.
4726 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4728 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4729 (BUILD_OCL_VTYPES): Update.
4731 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4733 * configure.ac: Work around non-GNU sed limitation when computing
4734 python version number.
4735 * configure: Regenerate.
4737 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4739 Fix debug printing of TYPE_INSTANCE.
4740 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4741 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4743 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4745 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4746 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4747 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4748 * ada-operator.inc: Rename the file to ...
4749 * ada-operator.def: ... here, wrap all the entries by macro OP.
4750 * expprint.c (op_name_standard): Remove all the entries. Include
4751 "std-operator.def" instead.
4752 * expression.h (enum exp_opcode): Include "std-operator.def" and
4753 "ada-operator.def". Move all the entries ...
4754 * std-operator.def: ... here, wrap all the entries by macro OP.
4756 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4758 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4759 * breakpoint.c (remove_jit_event_breakpoints): New function.
4760 * jit.c (jit_descriptor_addr): Delete.
4761 (registering_code): Delete.
4762 (clear_int): Delete.
4763 (jit_inferior_data): New variable.
4764 (struct jit_inferior_data): New type.
4765 (get_jit_inferior_data): New function.
4766 (jit_inferior_data_cleanup): New function.
4767 (jit_read_descriptor): Adjust.
4768 (jit_register_code): Adjust.
4769 (jit_breakpoint_re_set_internal): New function; move code here ...
4770 (jit_inferior_init): ... from here.
4771 (jit_breakpoint_re_set): Adjust.
4772 (jit_reset_inferior_data_and_breakpoints): New function.
4773 (jit_inferior_created_observer): Adjust.
4774 (jit_inferior_exit_hook): Adjust.
4775 (jit_executable_changed_observer): New function.
4776 (jit_event_handler): Adjust.
4777 (_initialize_jit): Adjust.
4779 2011-01-31 Michael Snyder <msnyder@vmware.com>
4781 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4784 2011-01-31 Tom Tromey <tromey@redhat.com>
4787 * python/python.c (execute_gdb_command): Call
4788 prevent_dont_repeat.
4789 * top.c (suppress_dont_repeat): New global.
4790 (dont_repeat): Use it.
4791 (prevent_dont_repeat): New function.
4792 * command.h (prevent_dont_repeat): Declare.
4794 2011-01-31 Tom Tromey <tromey@redhat.com>
4796 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4797 * python/py-breakpoint.c (bppy_set_silent): Use
4798 breakpoint_set_silent.
4799 (bppy_set_thread): Use breakpoint_set_thread.
4800 (bppy_set_task): Use breakpoint_set_task.
4801 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4802 (breakpoint_set_task): Declare.
4803 (make_breakpoint_silent): Remove.
4804 * breakpoint.c (breakpoint_set_silent): New function.
4805 (breakpoint_set_thread): Likewise.
4806 (breakpoint_set_task): Likewise.
4807 (make_breakpoint_silent): Remove.
4809 2011-01-31 Tom Tromey <tromey@redhat.com>
4811 * breakpoint.h (user_breakpoint_p): Declare.
4812 * breakpoint.c (user_breakpoint_p): New function.
4813 (breakpoint_1): Use it.
4814 (save_breakpoints): Likewise.
4816 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4818 * configure.ac: Add handling of Python distribution on Windows.
4819 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4820 sysconfig variables are not defined, then do not use them.
4821 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4822 instead. On Windows, return all paths using forward-slashes
4823 rather than backslashes.
4825 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4827 * configure.ac: Remove fallback behavior for building
4828 against Python. Remove tweaking of Python include path.
4829 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4830 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4831 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4832 Always restore CPPFLAGS and LIBS after linking test.
4833 * configure: Regenerated.
4834 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4835 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4836 * python/python-internal.h: Adjust includes of Python .h files.
4838 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4840 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4843 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4845 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4848 2011-01-31 Yao Qi <yao@codesourcery.com>
4850 * arm-linux-nat.c: Update calls to regcache_register_status
4851 instead of regcache_valid_p.
4852 * aix-thread.c: Likewise.
4853 * i386gnu-nat.c: Likewise.
4855 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4858 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4859 touching TYPE_FIELD_ARTIFICIAL.
4861 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4863 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4866 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4868 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4869 selected, don't try iterating over the traceframe's blocks.
4870 (tfile_has_stack): If there's no traceframe selected, then there's
4872 (tfile_has_registers): If there's no traceframe selected, then
4873 there's no registers.
4875 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4877 * target.c (memory_xfer_partial): No need to restore shadows if we
4878 haven't read anything.
4880 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4882 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4883 and val_print_scalar_formatted.
4885 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4887 * tracepoint.c (tfile_read): New.
4888 (tfile_open): Use it.
4889 (tfile_get_traceframe_address): Use it.
4890 (tfile_trace_find): Use it.
4891 (walk_blocks_callback_func): New typedef.
4892 (match_blocktype): New function.
4893 (traceframe_walk_blocks): New function.
4894 (traceframe_find_block_type): New function.
4895 (tfile_fetch_registers, tfile_xfer_partial)
4896 (tfile_get_trace_state_variable_value): Use
4897 traceframe_find_block_type and tfile_read.
4899 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4901 * remote-mips.c: Add internationalization mark ups. Remove
4902 trailing \n from already marked up strings.
4904 2011-01-26 Tom Tromey <tromey@redhat.com>
4906 * python/py-prettyprint.c (print_string_repr): Clear
4907 'addressprint' option when calling val_print_string.
4908 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4909 option when calling val_print_string.
4911 2011-01-26 Tom Tromey <tromey@redhat.com>
4913 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4915 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4917 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4918 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4919 (gdb_py_long_as_ulongest): New defines.
4920 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4921 (gdb_py_int_as_long): Declare.
4922 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4923 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4924 (valpy_long): Add comment.
4925 * python/py-utils.c (get_addr_from_python): Use
4926 gdb_py_long_as_ulongest. Handle overflow properly.
4927 (gdb_py_object_from_longest): New function.
4928 (gdb_py_object_from_ulongest): Likewise.
4929 (gdb_py_int_as_long): Likewise.
4930 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4931 * python/py-symtab.c (salpy_get_pc): Use
4932 gdb_py_long_from_ulongest.
4933 (salpy_get_line): Use PyInt_FromLong.
4934 * python/py-param.c (set_parameter_value): Use
4936 * python/py-lazy-string.c (stpy_get_address): Use
4937 gdb_py_long_from_ulongest.
4938 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4939 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4940 * python/py-breakpoint.c (bppy_set_thread): Use
4942 (bppy_set_task): Likewise.
4943 (bppy_set_ignore_count): Likewise.
4944 (bppy_set_hit_count): Likewise.
4945 * python/py-block.c (blpy_get_start): Use
4946 gdb_py_object_from_ulongest.
4947 (blpy_get_end): Likewise.
4948 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4950 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4953 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4954 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4955 equality test for objfile, initialize addr_low if needed.
4957 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4959 * tui/tui-regs.c (tui_register_format): Remove dead code.
4961 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4963 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4964 instead of print_scalar_formatted.
4965 (print_scalar_formatted): Don't handle 's' format strings here,
4966 and add an assertion that we never see such format here.
4967 * valprint.h (val_print_scalar_formatted): Declare.
4968 * valprint.c (val_print_scalar_formatted): New.
4969 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4970 instead of print_scalar_formatted.
4971 * jv-valprint.c (java_val_print): Ditto.
4972 * p-valprint.c (pascal_val_print): Ditto.
4973 * ada-valprint.c (ada_val_print_1): Ditto.
4974 * f-valprint.c (f_val_print): Ditto.
4975 * infcmd.c (registers_info): Ditto.
4976 * m2-valprint.c (m2_val_print): Ditto.
4978 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4980 * m2-valprint.c (print_unbounded_array): Pass
4981 value_contents_for_printing rather than value_contents, to
4982 m2_print_array_contents. Also pass in the value.
4984 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4986 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4987 (save_gdb_index_command): Switch to .gdb_index version 4.
4989 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4991 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4992 than frame_register, and always pass a valid value to val_print.
4994 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4996 Centralize printing "<optimized out>".
4998 * valprint.h (val_print_optimized_out): Declare.
4999 * cp-valprint.c (cp_print_value_fields): Use
5000 val_print_optimized_out.
5001 * jv-valprint.c (java_print_value_fields): Ditto.
5002 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5003 * printcmd.c (print_formatted): Ditto.
5004 * valprint.c (valprint_check_validity): Ditto.
5005 (value_check_printable): Ditto.
5006 (val_print_optimized_out): New.
5008 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5010 * infcmd.c (default_print_registers_info): Allocate values so to
5011 never pass a NULL value to val_print.
5013 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5015 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5016 boolean. Make sure to always pass a value that matches the
5017 contents buffer to callees. Preserve `address' for following
5019 * value.c (value_contents_for_printing_const): New.
5020 (value_address): Constify value argument.
5021 * value.h (value_contents_for_printing_const): Declare.
5022 (value_address): Constify value argument.
5024 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5026 * regcache.c (struct regcache_descr): Rename
5027 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5028 and sizeof_cooked_register_valid_p to
5029 sizeof_cooked_register_status.
5030 (init_regcache_descr): Adjust.
5031 (struct regcache): Rename register_valid_p field to
5033 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5034 (do_cooked_read): Adjust.
5035 (regcache_valid_p): Rename to ...
5036 (regcache_register_status): ... this. Adjust.
5037 (regcache_invalidate): Adjust.
5038 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5040 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5041 as unavailable, not valid.
5042 (regcache_dump): Adjust.
5043 * regcache.h (enum register_status): New.
5044 (regcache_register_status): Declare.
5045 (regcache_invalidate): Delete declaration.
5046 * corelow.c (get_core_registers): Adjust.
5047 * tracepoint.c (tfile_fetch_registers): Adjust.
5048 * trad-frame.c (REG_VALUE): Rename to ...
5049 (TF_REG_VALUE): ... this.
5050 (REG_UNKNOWN): Rename to ...
5051 (TF_REG_UNKNOWN): ... this.
5052 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5053 * mi/mi-main.c (register_changed_p): Adjust.
5055 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5057 * regcache.c (struct regcache_descr): Remove outdated comment.
5058 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5060 (regcache_xmalloc): Rename to ...
5061 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5062 Allocate the regcache type accordingly.
5063 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5064 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5065 cooked registers, not raw.
5066 (regcache_dup_no_passthrough): Delete.
5067 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5068 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5069 mention obsolete write_register_bytes.
5070 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5072 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5074 Stop remote_read_bytes from handling partial reads itself.
5076 * remote-fileio.c: Include target.h.
5077 (remote_fileio_write_bytes): Delete.
5078 (remote_fileio_func_open, remote_fileio_func_write)
5079 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5081 (remote_fileio_func_stat): Use target_read_memory and
5082 target_write_memory.
5083 (remote_fileio_func_gettimeofday): Use target_write_memory.
5084 (remote_fileio_func_system): Use target_read_memory.
5085 * remote.c (remote_write_bytes): Make it static.
5086 (remote_read_bytes): Don't handle partial reads here.
5087 * remote.h (remote_read_bytes): Delete declaration.
5089 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5091 Simplify XML parsing a bit.
5093 * xml-support.h (gdb_xml_parse_quick): Declare.
5094 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5095 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5097 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5098 gdb_xml_create_parser_and_cleanup_1.
5099 (gdb_xml_parse_quick): New.
5100 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5101 * osdata.c (osdata_parse): Ditto.
5102 * remote.c (remote_threads_info): Ditto.
5103 * solib-target.c (solib_target_parse_libraries): Ditto.
5104 * xml-syscall.c (syscall_parse_xml): Ditto.
5105 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5107 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5109 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5110 with remote-mips.o added to gdb_target_obs.
5111 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5113 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5115 * ada-valprint.c (val_print_packed_array_elements): Pass the
5116 correct struct value to val_print.
5117 (ada_val_print_1): Ditto.
5119 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5121 Don't lose embedded_offset in printing routines throughout.
5123 * valprint.h (val_print_array_elements): Change prototype.
5124 * valprint.c (val_print_array_elements): Add `embedded_offset'
5125 parameter, and adjust to pass it down to val_print, while passing
5126 `valaddr' or `address' unmodified. Take embedded_offset into
5127 account when checking repetitions.
5128 * c-valprint.c (c_val_print): Pass embedded_offset to
5129 val_print_array_elements instead of adjusting `valaddr' and
5131 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5132 embedded_offset to val_print_array_elements instead of adjusting
5134 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5135 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5136 val_print_array_elements and pascal_object_print_value_fields
5137 instead of adjusting `valaddr'.
5138 (pascal_object_print_value_fields): Add `offset' parameter, and
5140 (pascal_object_print_value): Add `offset' parameter, and adjust to
5142 (pascal_object_print_static_field): Use
5143 value_contents_for_printing/value_embedded_offset, rather than
5145 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5146 parameter, and adjust to use it. Use
5147 value_contents_for_printing/value_embedded_offset, rather than
5149 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5150 (ada_val_print_array): Add `offset' parameter, and adjust to use
5152 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5153 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5154 Instead work with offsets. Use
5155 value_contents_for_printing/value_embedded_offset, rather than
5156 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5157 and use value_from_pointer to extract a target pointer, rather
5158 than value_from_longest.
5159 (print_variant_part): Add `offset' parameter. Replace
5160 `outer_valaddr' parameter by a new `outer_offset' parameter.
5161 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5162 (ada_value_print): Use
5163 value_contents_for_printing/value_embedded_offset, rather than
5165 (print_record): Add `offset' parameter, and adjust to pass it
5167 (print_field_values): Add `offset' parameter. Replace
5168 `outer_valaddr' parameter by a new `outer_offset' parameter.
5169 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5170 Use value_contents_for_printing/value_embedded_offset, rather than
5172 * d-valprint.c (dynamic_array_type): Use
5173 value_contents_for_printing/value_embedded_offset, rather than
5175 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5176 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5177 (java_print_value_fields): Take `offset' into account. Don't
5178 re-adjust `valaddr'. Instead pass down adjusted offsets.
5179 (java_val_print): Take `embedded_offset' into account. Pass it to
5180 java_print_value_fields.
5181 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5182 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5183 down adjusted offsets.
5184 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5185 (f_val_print): Take `embedded_offset' into account.
5187 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5189 * inflow.c: Include "gdbcmd.h".
5190 (interactive_mode): New static global, moved here from top.c.
5191 (show_interactive_mode): New function, moved here from top.c.
5192 use gdb_has_a_terminal instead of input_from_terminal_p to
5193 determine the current mode.
5194 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5196 (_initialize_inflow): Add the "set/show interactive-mode"
5197 commands. Moved here from top.c, after having adjusted slightly
5199 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5201 (input_from_terminal_p): Remove handling of "interactive-mode"
5202 setting, moved to infow.c.
5203 (init_main): Remove creation of the "set/show interactive-mode"
5204 commands, moved to inflow.c.
5206 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5208 * NEWS: Add entry for native ia64-hpux support.
5210 2011-01-19 Tom Tromey <tromey@redhat.com>
5213 * thread.c (free_thread): Free 'name'.
5214 (print_thread_info): Emit thread name. Change CLI output.
5215 (thread_name_command): New function.
5216 (do_captured_thread_select): Emit newline.
5217 (_initialize_thread): Register 'thread name' command.
5218 * target.h (struct target_ops) <to_thread_name>: New field.
5219 (target_thread_name): New macro.
5220 * target.c (update_current_target): Handle to_thread_name.
5221 * python/py-infthread.c (thpy_get_name): New function.
5222 (thpy_set_name): Likewise.
5223 (thread_object_getset): Add "name".
5224 * linux-nat.c (linux_nat_thread_name): New function.
5225 (linux_nat_add_target): Set to_thread_name.
5226 * gdbthread.h (struct thread_info) <name>: New field.
5228 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5230 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5231 (ada_val_print_1): Likewise.
5233 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5235 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5236 upper limit address is not greater than the function end address
5237 when the upper limit could not be computed using the debugging
5240 2011-01-17 Tom Tromey <tromey@redhat.com>
5242 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5244 * utils.c: Include gdb_regex.h.
5245 (do_regfree_cleanup): New function.
5246 (make_regfree_cleanup): Likewise.
5247 (get_regcomp_error): Likewise.
5248 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5250 2011-01-17 Tom Tromey <tromey@redhat.com>
5252 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5255 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5257 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5258 for internal variables.
5259 (last_was_structop): New static variable.
5260 (COMPLETE): New token.
5261 (field_exp): New rule to group all '.' suffix handling.
5262 Add mark_struct_expression calls when approriate to be able
5263 to correctly find fields for completion.
5264 (yylex): Adapt to handle field completion and set INTVAR when
5267 2011-01-14 Yao Qi <yao@codesourcery.com>
5269 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5270 save_reggroup, restore_reggroup and all_reggroup.
5272 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5274 * ada-valprint. (ada_printchar): Use the correct type length
5275 in call to ada_emit_char.
5276 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5278 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5280 * solib-som.h (hpux_major_release): Declare variable here.
5281 * solib-som.c: Remove <sys/utsname.h> header.
5282 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5283 (hpux_major_release): Make global, change default value to
5284 DEFAULT_HPUX_MAJOR_RELEASE.
5285 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5286 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5287 Add "solib-som.h" header.
5288 (set_hpux_major_release): New function.
5289 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5291 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5293 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5295 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5297 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5298 new-line at end of warning message.
5299 (ia64_hpux_store_register): Remove trailing new-line at end of
5301 * ia64-hpux-tdep.c: Rephrase comment.
5302 * solib-ia64-hpux.c (struct dld_info): Change type of field
5303 dld_flags from "long long" to ULONGEST.
5305 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5307 * target.h (deprecated_child_ops): Delete declaration.
5308 * target.c (deprecated_child_ops): Delete definition.
5310 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5312 * Makefile.in (hpux-thread.o): Delete rule.
5313 * configure.ac: Don't check for HPUX DCE threads support.
5314 * configure, config.in: Regenerate.
5315 * hppa-hpux-nat.c (child_suppress_run): Delete.
5316 (hppa_hpux_child_can_run): Delete.
5317 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5318 * hpux-thread.c: Delete.
5320 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5322 * hpux-thread.c (hpux_pid_to_str): Delete.
5324 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5326 * ada-valprint.c (ada_emit_char): Remove strange code.
5327 Check that c is <= UCHAR_MAX before passing it to isascii.
5328 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5330 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5332 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5333 to the case where instream is stdin.
5335 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5337 * ia64-tdep.h (struct regcache): Forward declare.
5338 (struct ia64_infcall_ops): New struct type.
5339 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5341 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5342 Renames ia64_find_global_pointer.
5343 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5344 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5345 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5347 (ia64_infcall_ops): New static global constant.
5348 (ia64_gdbarch_init): Set tdep->infcall_ops.
5349 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5350 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5351 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5352 (ia64_hpux_dummy_code): New static global constant.
5353 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5354 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5355 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5357 (ia64_hpux_infcall_ops): New static global constant.
5358 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5359 for inferior function calls to work properly on ia64-hpux.
5361 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5363 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5364 * ia64-tdep.h (struct frame_info): forward declaration.
5365 (struct gdbarch_tdep): Add field size_of_register_frame.
5366 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5367 to determine the size of the register frame.
5368 (ia64_size_of_register_frame): New function.
5369 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5370 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5371 (IA64_HPUX_UREG_REASON): New macro.
5372 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5374 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5375 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5376 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5379 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5381 Add support for ia64-hpux.
5382 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5383 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5385 * configure.host: Add handling for ia64-hpux hosts. Add associated
5387 * configure.tgt: Add handling for ia64-hpux targets.
5388 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5389 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5390 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5392 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5394 [ttrace] Compute thread list immediately after attach.
5395 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5397 (inf_ttrace_attach): Use it.
5399 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5401 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5402 if we could not determine the frame's function address. Instead,
5403 use the frame's PC, and then continue.
5405 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5407 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5408 not already defined.
5410 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5412 * ia64-tdep.c (ia64_struct_type_p): New function.
5413 (ia64_extract_return_value): Handle integral values that are
5414 less than 8 bytes long.
5415 (ia64_push_dummy_call): Likewise.
5417 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5419 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5420 floatformat_ia64_ext.
5421 (floatformat_ia64_ext_big): New static const.
5422 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5424 2011-01-12 Tom Tromey <tromey@redhat.com>
5426 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5428 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5429 (mi_cmd_thread_list_ids): Likewise.
5430 (mi_cmd_data_list_changed_registers): Likewise.
5431 (mi_cmd_data_list_register_values): Likewise.
5432 (mi_cmd_data_write_register_values): Likewise.
5433 (mi_cmd_data_evaluate_expression): Likewise.
5434 (mi_cmd_data_read_memory): Likewise.
5435 (mi_cmd_data_read_memory_bytes): Likewise.
5436 (mi_cmd_data_write_memory): Likewise.
5437 (mi_cmd_enable_timings): Likewise.
5438 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5439 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5440 (mi_cmd_var_delete): Likewise.
5441 (mi_cmd_var_set_format): Likewise.
5442 (mi_cmd_var_show_format): Likewise.
5443 (mi_cmd_var_info_num_children): Likewise.
5444 (mi_cmd_var_list_children): Likewise.
5445 (mi_cmd_var_info_type): Likewise.
5446 (mi_cmd_var_info_expression): Likewise.
5447 (mi_cmd_var_show_attributes): Likewise.
5448 (mi_cmd_var_assign): Likewise.
5449 (mi_cmd_var_update): Likewise.
5450 (mi_cmd_enable_pretty_printing): Likewise.
5451 (mi_cmd_var_set_update_range): Likewise.
5452 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5454 (mi_cmd_target_file_put): Likewise.
5455 (mi_cmd_target_file_delete): Likewise.
5456 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5458 (mi_cmd_stack_info_depth): Likewise.
5459 (mi_cmd_stack_list_locals): Likewise.
5460 (mi_cmd_stack_list_args): Likewise.
5461 (mi_cmd_stack_select_frame): Likewise.
5462 (mi_cmd_stack_select_frame): Likewise.
5463 (mi_cmd_stack_info_frame): Likewise.
5464 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5466 (mi_cmd_file_list_exec_source_files): Likewise.
5467 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5468 (mi_cmd_env_cd): Likewise.
5469 (mi_cmd_env_path): Likewise.
5470 (mi_cmd_env_dir): Likewise.
5471 (mi_cmd_inferior_tty_show): Likewise.
5472 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5473 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5474 (mi_cmd_break_watch): Likewise.
5476 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5478 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5479 (ppc_linux_insert_hw_breakpoint): Likewise.
5480 (ppc_linux_remove_hw_breakpoint): Likewise.
5481 (ppc_linux_insert_watchpoint): Likewise.
5483 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5484 Jan Kratochvil <jan.kratochvil@redhat.com>
5486 PR fortran/11104 and DWARF unbound arrays detection.
5487 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5488 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5489 unspecified upper bound.
5490 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5491 variables array_size_array, tmp_type and offset_item. New variable
5492 array. Remove call to f77_get_upperbound. New variables array_type
5493 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5494 the final call to deprecated_set_value_type.
5496 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5498 Make value allocations more lazy.
5499 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5500 instead of allocate_value and set_value_lazy when possible.
5501 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5502 instead of allocate_value and set_value_lazy.
5503 * findvar.c (value_of_register_lazy): Likewise.
5504 (read_var_value): Remove V preallocation, call just check_typedef in
5505 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5506 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5507 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5508 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5509 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5510 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5511 the end, remove set_value_lazy there.
5512 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5513 instead of allocate_value and set_value_lazy when possible.
5514 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5515 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5516 of allocate_value and set_value_lazy.
5517 (value_from_contents_and_address): Use allocate_value_lazy instead of
5518 allocate_value and set_value_lazy when possible.
5520 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5522 * disasm.c (dump_insns): Support dumping opcodes for MI.
5523 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5524 dumping of instruction opcodes.
5526 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5528 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5531 2011-01-11 Tom Tromey <tromey@redhat.com>
5533 * thread.c (do_captured_thread_select): Emit newline before
5536 2011-01-11 Michael Snyder <msnyder@vmware.com>
5538 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5539 * score-tdep.c: Ditto.
5540 * score-tdep.h: Ditto.
5541 * ser-base.c: Ditto.
5542 * ser-go32.c: Ditto.
5545 * ser-mingw.c: Ditto.
5546 * ser-pipe.c: Ditto.
5548 * ser-unix.c: Ditto.
5549 * sh64-tdep.c: Ditto.
5550 * shnbsd-nat.c: Ditto.
5554 * solib-darwin.c: Ditto.
5555 * solib-frv.c: Ditto.
5557 * solib-irix.c: Ditto.
5558 * solib-osf.c: Ditto.
5559 * solib-pa64.c: Ditto.
5560 * solib-som.c: Ditto.
5561 * solib-spu.c: Ditto.
5562 * solib-sunos.c: Ditto.
5563 * solib-svr4.c: Ditto.
5565 * sol-thread.c: Ditto.
5569 * sparc64-linux-tdep.c: Ditto.
5570 * sparc64-tdep.c: Ditto.
5571 * sparc-linux-nat.c: Ditto.
5572 * sparc-linux-tdep.c: Ditto.
5573 * sparc-sol2-nat.c: Ditto.
5574 * sparc-sol2-tdep.c: Ditto.
5575 * sparc-tdep.c: Ditto.
5576 * sparc-tdep.h: Ditto.
5577 * spu-tdep.c: Ditto.
5578 * stabsread.c: Ditto.
5579 * stabsread.h: Ditto.
5587 * target-descriptions.c: Ditto.
5588 * target-descriptions.h: Ditto.
5590 * target-memory.c: Ditto.
5591 * terminal.h: Ditto.
5594 * tracepoint.c: Ditto.
5595 * tracepoint.h: Ditto.
5596 * trad-frame.h: Ditto.
5597 * typeprint.c: Ditto.
5599 2011-01-11 Michael Snyder <msnyder@vmware.com>
5601 * ui-file.c: Comment cleanup, mostly periods and spaces.
5606 * v850-tdep.c: Ditto.
5607 * valarith.c: Ditto.
5609 * valprint.c: Ditto.
5610 * valprint.h: Ditto.
5615 * vax-tdep.c: Ditto.
5619 * windows-nat.c: Ditto.
5620 * windows-tdep.c: Ditto.
5621 * xcoffread.c: Ditto.
5622 * xcoffsolib.c: Ditto.
5623 * xml-support.c: Ditto.
5624 * xstormy16-tdep.c: Ditto.
5625 * xtensa-tdep.c: Ditto.
5626 * xtensa-tdep.h: Ditto.
5628 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5630 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5631 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5633 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5634 Thiago Jung Bauermann <bauerman@br.ibm.com>
5636 Implement support for PowerPC BookE ranged watchpoints.
5638 (struct breakpoint_ops) <resources_needed>: New method.
5639 Initialize to NULL in all existing breakpoint_ops instances.
5640 (struct breakpoint) <exact>: New field.
5641 (target_exact_watchpoints): Declare external global.
5642 * breakpoint.c (target_exact_watchpoints): New global flag.
5643 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5644 b->enable_state to bp_enabled before calling
5645 hw_watchpoint_used_count.
5646 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5647 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5649 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5650 if the watchpoint is exact.
5651 (resources_needed_watchpoint): New function.
5652 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5653 (watch_command_1): Set b->exact if the user asked for an exact
5654 watchpoint and one can be set.
5655 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5656 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5657 the user asks for an exact watchpoint and one can be set. Return
5658 number of needed debug registers to watch the expression.
5659 * gdbtypes.c (is_scalar_type): New function, based on
5660 valprint.c:scalar_type_p.
5661 (is_scalar_type_recursive): New function.
5662 * gdbtypes.h (is_scalar_type_recursive): Declare.
5663 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5664 handle regions when ranged watchpoints are available.
5665 (create_watchpoint_request): New function.
5666 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5667 create_watchpoint_request.
5668 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5669 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5670 `set powerpc' and `show powerpc' commands.
5671 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5672 Mention documentation comment in the target macro.
5673 (target_region_ok_for_hw_watchpoint): Document return value.
5675 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5677 * breakpoint.c (update_watchpoint): Decide on using a software or
5678 hardware watchpoint after the bp_locations are created.
5680 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5682 Convert hardware watchpoints to use breakpoint_ops.
5683 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5684 <insert_location>: ... this. Return int instead of void.
5685 Accept pointer to struct bp_location instead of pointer to
5686 struct breakpoint. Adapt all implementations.
5687 (breakpoint_ops) <remove>: Rename to...
5688 <remove_location>: ... this. Accept pointer to struct bp_location
5689 instead of pointer to struct breakpoint. Adapt all implementations.
5690 * breakpoint.c (insert_catchpoint): Delete function.
5691 (insert_bp_location): Call the watchpoint or catchpoint's
5692 breakpoint_ops.insert method.
5693 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5694 breakpoint_ops.remove method.
5695 (insert_watchpoint, remove_watchpoint): New functions.
5696 (watchpoint_breakpoint_ops): New structure.
5697 (watch_command_1): Initialize the OPS field.
5698 * inf-child.c (inf_child_insert_fork_catchpoint)
5699 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5700 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5701 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5703 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5704 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5705 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5706 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5707 * target.c (update_current_target): Change default implementation of
5708 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5709 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5710 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5711 to_set_syscall_catchpoint to return_one.
5712 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5713 (debug_to_insert_exec_catchpoint): Report return value.
5714 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5715 (to_insert_exec_catchpoint): Change declaration to return int instead
5718 2011-01-11 Michael Snyder <msnyder@vmware.com>
5720 * arm-tdep.c: Internationalization.
5723 * fork-child.c: Ditto.
5724 * nto-procfs.c: Ditto.
5725 * ppc-sysv-tdep.c: Ditto.
5727 * remote-mips.c: Ditto.
5729 * rs6000-nat.c: Ditto.
5730 * rs6000-tdep.c: Ditto.
5734 * xml-support.c: Ditto.
5735 * mi/mi-cmd-break.c: Ditto.
5736 * mi/mi-cmd-var.c: Ditto.
5737 * mi/mi-interp.c: Ditto.
5738 * mi/mi-main.c: Ditto.
5740 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5742 * remote-sim.c (gdbsim_store_register): Update API to
5743 sim_store_register to check more error conditions.
5745 2011-01-10 Michael Snyder <msnyder@vmware.com>
5747 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5748 * nto-tdep.c: Ditto.
5749 * nto-tdep.h: Ditto.
5750 * objc-exp.y: Ditto.
5751 * objc-lang.c: Ditto.
5752 * objfiles.c: Ditto.
5753 * objfiles.h: Ditto.
5754 * observer.c: Ditto.
5755 * opencl-lang.c: Ditto.
5758 * parser-defs.h: Ditto.
5761 * posix-hdep.c: Ditto.
5762 * ppcbug-rom.c: Ditto.
5763 * ppc-linux-nat.c: Ditto.
5764 * ppc-linux-tdep.c: Ditto.
5765 * ppc-linux-tdep.h: Ditto.
5766 * ppcnbsd-tdep.c: Ditto.
5767 * ppcobsd-tdep.c: Ditto.
5768 * ppcobsd-tdep.h: Ditto.
5769 * ppc-sysv-tdep.c: Ditto.
5770 * ppc-tdep.h: Ditto.
5771 * printcmd.c: Ditto.
5772 * proc-abi.c: Ditto.
5773 * proc-flags.c: Ditto.
5775 * proc-utils.h: Ditto.
5776 * progspace.h: Ditto.
5777 * prologue-value.c: Ditto.
5778 * prologue-value.h: Ditto.
5779 * psympriv.h: Ditto.
5781 * p-typeprint.c: Ditto.
5782 * p-valprint.c: Ditto.
5783 * ravenscar-sparc-thread.c: Ditto.
5784 * ravenscar-thread.c: Ditto.
5785 * ravenscar-thread.h: Ditto.
5787 * regcache.c: Ditto.
5788 * regcache.h: Ditto.
5790 * remote-fileio.c: Ditto.
5791 * remote-fileio.h: Ditto.
5793 * remote-m32r-sdi.c: Ditto.
5794 * remote-mips.c: Ditto.
5795 * remote-sim.c: Ditto.
5796 * rs6000-aix-tdep.c: Ditto.
5797 * rs6000-nat.c: Ditto.
5798 * rs6000-tdep.c: Ditto.
5800 2011-01-10 Michael Snyder <msnyder@vmware.com>
5802 * charset.c (validate): Internationalization.
5803 * coffread.c (read_one_sym): Ditto.
5804 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5805 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5806 * inflow.c (new_tty): Ditto.
5807 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5808 * m32c-tdep.c (m32c_return_value): Ditto.
5809 * mep-tdep.c (mep_store_return_value): Ditto.
5810 * score-tdep.c (score7_fetch_insn): Ditto.
5811 * ser-mingw.c (pipe_windows_open): Ditto.
5812 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5813 * spu-tdep.c (spu_register_type): Ditto.
5814 * tracepoint.c (trace_find_command): Ditto.
5815 * valarith.c (value_pos): Ditto.
5817 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5819 * ada-valprint.c (printstr): Minor comment reformatting.
5821 2011-01-08 Michael Snyder <msnyder@vmware.com>
5823 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5826 2011-01-08 Michael Snyder <msnyder@vmware.com>
5828 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5829 * hppa-hpux-tdep.c: Ditto.
5830 * hppa-linux-nat.c: Ditto.
5831 * hppa-linux-tdep.c: Ditto.
5832 * hppanbsd-tdep.c: Ditto.
5833 * hppa-tdep.c: Ditto.
5834 * hppa-tdep.h: Ditto.
5835 * hpux-thread.c: Ditto.
5836 * i386-cygwin-tdep.c: Ditto.
5837 * i386-darwin-nat.c: Ditto.
5838 * i386gnu-nat.c: Ditto.
5839 * i386-linux-nat.c: Ditto.
5840 * i386-linux-tdep.c: Ditto.
5841 * i386-nat.c: Ditto.
5842 * i386-nat.h: Ditto.
5843 * i386nbsd-tdep.c: Ditto.
5844 * i386-sol2-nat.c: Ditto.
5845 * i386-stub.c: Ditto.
5846 * i386-tdep.c: Ditto.
5847 * i386-tdep.h: Ditto.
5848 * i387-tdep.c: Ditto.
5849 * ia64-linux-nat.c: Ditto.
5850 * ia64-linux-tdep.c: Ditto.
5851 * ia64-tdep.c: Ditto.
5855 * inferior.c: Ditto.
5856 * inferior.h: Ditto.
5862 * iq2000-tdep.c: Ditto.
5863 * irix5-nat.c: Ditto.
5869 * jv-typeprint.c: Ditto.
5870 * jv-valprint.c: Ditto.
5871 * language.c: Ditto.
5872 * language.h: Ditto.
5873 * linespec.c: Ditto.
5874 * linux-fork.c: Ditto.
5875 * linux-nat.c: Ditto.
5876 * linux-thread-db.c: Ditto.
5877 * lm32-tdep.c: Ditto.
5879 2011-01-08 Michael Snyder <msnyder@vmware.com>
5881 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5883 * m2-typeprint.c: Ditto.
5884 * m2-valprint.c: Ditto.
5885 * m32c-tdep.c: Ditto.
5886 * m32r-linux-nat.c: Ditto.
5887 * m32r-rom.c: Ditto.
5888 * m32r-tdep.c: Ditto.
5889 * m32r-tdep.h: Ditto.
5890 * m68hc11-tdep.c: Ditto.
5891 * m58klinux-nat.c: Ditto.
5892 * m68k-tdep.c: Ditto.
5893 * m88k-tdep.c: Ditto.
5894 * m88k-tdep.h: Ditto.
5895 * machoread.c: Ditto.
5896 * macrocmd.c: Ditto.
5897 * macroexp.c: Ditto.
5898 * macrotab.c: Ditto.
5901 * mdebugread.c: Ditto.
5902 * mdebugread.h: Ditto.
5905 * memory-map.h: Ditto.
5906 * mep-tdep.c: Ditto.
5907 * microblaze-rom.c: Ditto.
5908 * microblaze-tdep.c: Ditto.
5910 * mips-irix-tdep.c: Ditto.
5911 * mips-linux-nat.c: Ditto.
5912 * mips-linux-tdep.c: Ditto.
5913 * mips-linux-tdep.h: Ditto.
5914 * mipsnbsd-nat.c: Ditto.
5915 * mipsnbsd-tdep.c: Ditto.
5916 * mipsread.c: Ditto.
5917 * mips-tdep.c: Ditto.
5918 * mips-tdep.h: Ditto.
5919 * mn10300-linux-tdep.c: Ditto.
5920 * mn10300-tdep.c: Ditto.
5921 * mn10300-tdep.h: Ditto.
5924 * moxie-tdep.c: Ditto.
5925 * moxie-tdep.h: Ditto.
5928 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5930 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5932 2011-01-08 Robert Millan <rmh@gnu.org>
5934 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5936 2011-01-07 Michael Snyder <msnyder@vmware.com>
5938 * charset.c (_initialize_charset): Fix typo in string.
5940 2011-01-07 Michael Snyder <msnyder@vmware.com>
5942 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5944 * tui/tui-layout.c (tui_set_layout_for_display_command):
5945 Split line so that operator goes to beginning of line.
5946 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5947 assignment out of if statement.
5949 2011-01-07 Michael Snyder <msnyder@vmware.com>
5951 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5952 * ada-lang.h: Ditto.
5953 * ada-tasks.c: Ditto.
5954 * ada-valprint.c: Ditto.
5955 * aix-threads.c: Ditto.
5956 * alpha-linux-nat.c: Ditto.
5957 * alpha-linux-tdep.c: Ditto.
5958 * alpha-mdebug-tdep.c: Ditto.
5959 * alpha-nat.c: Ditto.
5960 * alpha-osf1-tdep.c: Ditto.
5961 * alpha-tdep.c: Ditto.
5962 * alphabsd-nat.c: Ditto.
5963 * alphabsd-tdep.c: Ditto.
5964 * amd64-darwin-tdep.c: Ditto.
5965 * amd64-linux-nat.c: Ditto.
5966 * amd64-linux-tdep.c: Ditto.
5967 * amd64-sol2-tdep.c: Ditto.
5968 * amd64-tdep.c: Ditto.
5969 * amd64-fbsd-tdep.c: Ditto.
5970 * amd64-nbsd-tdep.c: Ditto.
5971 * amd64-obsd-tdep.c: Ditto.
5972 * amd64-linux-nat.c: Ditto.
5973 * amd64-linux-tdep.c: Ditto.
5974 * arm-tdep.c: Ditto.
5975 * arm-tdep.h: Ditto.
5976 * armnbsd-nat.c: Ditto.
5977 * avr-tdep.c: Ditto.
5978 * bfin-tdep.c: Ditto.
5980 * c-typeprintc: Ditto.
5981 * c-valprint.c: Ditto.
5982 * coff-pe-read.h: Ditto.
5983 * coffreead.c: Ditto.
5984 * cris-tdep.c: Ditto.
5986 * darwin-nat-info.c: Ditto.
5987 * darwin-nat.c: Ditto.
5988 * dbug-rom.c: Ditto.
5992 * dec-thread.c: Ditto.
5994 * demangle.c: Ditto.
5995 * dicos-tdep.c: Ditto.
5996 * dictionary.c: Ditto.
5997 * dictionary.h: Ditto.
5998 * dink32-rom.c: Ditto.
6000 * doublest.c: Ditto.
6002 * dummy-frame.c: Ditto.
6003 * dwarf2-frame.c: Ditto.
6004 * dwarf2expr.c: Ditto.
6005 * dwarf2loc.c: Ditto.
6006 * dwarf2read.c: Ditto.
6010 * event-top.h: Ditto.
6011 * exceptions.c: Ditto.
6012 * exceptions.h: Ditto.
6014 * expprint.c: Ditto.
6015 * expression.h: Ditto.
6019 * f-typeprint.c: Ditto.
6020 * f-valprint.c: Ditto.
6021 * fbsd-nat.c: Ditto.
6023 * fork-child.c: Ditto.
6026 * frv-linux-tdep.c: Ditto.
6027 * frv-tdep.c: Ditto.
6029 * gdb-stabs.h: Ditto.
6030 * gdb_assert.h: Ditto.
6031 * gdb_string.h: Ditto.
6032 * gdb_thread_db.h: Ditto.
6033 * gdb_wait.h: Ditto.
6034 * gdbarch.sh: Ditto.
6036 * gdbthread.h: Ditto.
6037 * gdbtypes.c: Ditto.
6038 * gdbtypes.h: Ditto.
6041 * gnu-v2-abi.c: Ditto.
6042 * gnu-v3-abi.c: Ditto.
6043 * go32-nat.c: Ditto.
6044 * gdbarch.c: Regenerate.
6045 * gdbarch.h: Regenerate.
6047 2011-01-07 Michael Snyder <msnyder@vmware.com>
6049 * ax-gdb.c: Adjust some long output strings.
6050 * breakpoint.c: Ditto.
6055 * linux-nat.c: Ditto.
6056 * solib-pa64.c: Ditto.
6057 * solib-som.c: Ditto.
6059 2011-01-06 Tom Tromey <tromey@redhat.com>
6063 * python/python.c (GdbMethods): Add "newest_frame" method.
6064 * python/python-internal.h (gdbpy_newest_frame): Declare.
6065 * python/py-frame.c (gdbpy_newest_frame): New function.
6067 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6069 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6070 * jit.c (jit_debug): New variable.
6071 (show_jit_debug): New function.
6072 (struct target_buffer): Use ULONGEST.
6073 (bfd_open_from_target_memory): Likewise.
6074 (jit_register_code, jit_inferior_init): Add debug output.
6075 (_initialize_jit): Register "debug jit" command.
6077 2011-01-06 Tom Tromey <tromey@redhat.com>
6079 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6080 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6083 2011-01-06 Tom Tromey <tromey@redhat.com>
6085 * python/py-frame.c (frapy_block): Use get_frame_block.
6087 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6089 Do not stop on SIGPRIO signals by default
6090 * infrun.c (_initialize_infrun): Unset signal_stop and
6091 signal_print for TARGET_SIGNAL_PRIO.
6093 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6095 * ada-tasks.c: Fix style violation in comment.
6097 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6099 * linespec.c (decode_compound, find_method): Remove trailing \n
6100 at end of error string.
6101 * solib-irix.c (irix_current_sos): Likewise.
6102 * varobj.c (uninstall_variable): Likewise.
6104 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6106 * copyright.py: New script.
6107 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6108 Launch emacs without exec'ing. Call copyright.py afterwards.
6110 2011-01-05 Michael Snyder <msnyder@vmware.com>
6112 * addrmap.c: Shorten lines of >= 80 columns.
6113 * arch-utils.c: Ditto.
6114 * arch-utils.h: Ditto.
6116 * ax-general.c: Ditto.
6118 * blockframe.c: Ditto.
6119 * breakpoint.c: Ditto.
6120 * buildsym.c: Ditto.
6122 * c-typeprint.c: Ditto.
6124 * coffread.c: Ditto.
6128 * cp-namespace.c: Ditto.
6129 * cp-support.c: Ditto.
6130 * dbug-rom.c: Ditto.
6135 * dictionary.c: Ditto.
6137 * doublest.c: Ditto.
6138 * dwarf2-frame.c: Ditto.
6139 * dwarf2expr.c: Ditto.
6140 * dwarf2loc.c: Ditto.
6141 * dwarf2read.c: Ditto.
6144 * event-loop.c: Ditto.
6145 * event-loop.h: Ditto.
6146 * exceptions.h: Ditto.
6148 * expprint.c: Ditto.
6149 * expression.h: Ditto.
6151 * f-valprint.c: Ditto.
6153 * frame-base.c: Ditto.
6154 * frame-unwind.c: Ditto.
6155 * frame-unwind.h: Ditto.
6159 * gdb-stabs.h: Ditto.
6160 * gdb_assert.h: Ditto.
6161 * gdb_dirent.h: Ditto.
6162 * gdb_obstack.h: Ditto.
6164 * gdbtypes.c: Ditto.
6165 * gdbtypes.h: Ditto.
6166 * inf-ttrace.c: Ditto.
6171 * inline-frame.h: Ditto.
6172 * language.c: Ditto.
6173 * language.h: Ditto.
6174 * libunwind-frame.c: Ditto.
6175 * libunwind-frame.h: Ditto.
6176 * linespec.c: Ditto.
6177 * linux-nat.c: Ditto.
6178 * linux-nat.h: Ditto.
6179 * linux-thread-db.c: Ditto.
6180 * machoread.c: Ditto.
6181 * macroexp.c: Ditto.
6182 * macrotab.c: Ditto.
6185 * mdebugread.c: Ditto.
6190 * objfiles.c: Ditto.
6191 * objfiles.h: Ditto.
6193 * p-typeprint.c: Ditto.
6194 * p-valprint.c: Ditto.
6196 * printcmd.c: Ditto.
6197 * proc-events.c: Ditto.
6199 * progspace.c: Ditto.
6200 * progspace.h: Ditto.
6201 * psympriv.h: Ditto.
6204 * regcache.c: Ditto.
6205 * regcache.h: Ditto.
6206 * remote-fileio.c: Ditto.
6208 * ser-mingw.c: Ditto.
6210 * ser-unix.c: Ditto.
6213 * solib-frv.c: Ditto.
6214 * solib-irix.c: Ditto.
6215 * solib-osf.c: Ditto.
6216 * solib-pa64.c: Ditto.
6217 * solib-som.c: Ditto.
6218 * solib-sunos.c: Ditto.
6219 * solib-svr4.c: Ditto.
6220 * solib-target.c: Ditto.
6224 * stabsread.c: Ditto.
6225 * stabsread.c: Ditto.
6228 * symfile-mem.c: Ditto.
6234 * target-descriptions.c: Ditto.
6235 * target-memory.c: Ditto.
6238 * terminal.h: Ditto.
6241 * tracepoint.c: Ditto.
6242 * tracepoint.h: Ditto.
6246 * user-regs.c: Ditto.
6247 * user-regs.h: Ditto.
6249 * valarith.c: Ditto.
6251 * valprint.c: Ditto.
6252 * valprint.h: Ditto.
6257 * xcoffread.c: Ditto.
6258 * xcoffsolib.c: Ditto.
6259 * xcoffsolib.h: Ditto.
6260 * xml-syscall.c: Ditto.
6261 * xml-tdesc.c: Ditto.
6263 2011-01-05 Michael Snyder <msnyder@vmware.com>
6265 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6266 * cli/cli-decode.c: Ditto.
6267 * cli/cli-dump.c: Ditto.
6268 * cli/cli-logging.c: Ditto.
6269 * cli/cli-script.c: Ditto.
6270 * cli/cli-setshow.c: Ditto.
6271 * common/signals.c: Ditto.
6272 * mi/mi-cmd-break.c: Ditto.
6273 * mi/mi-cmd-disas.c: Ditto.
6274 * mi/mi-cmd-stack.c: Ditto.
6275 * mi/mi-cmd-var.c: Ditto.
6276 * mi/mi-cmds.c: Ditto.
6277 * mi/mi-common.h: Ditto.
6278 * mi/mi-console.c: Ditto.
6279 * mi/mi-interp.c: Ditto.
6280 * mi/mi-main.c: Ditto.
6281 * osf-share/cma_attr.c: Ditto.
6282 * osf-share/cma_deb_core.h: Ditto.
6283 * osf-share/cma_debug_client.h: Ditto.
6284 * osf-share/cma_handle.h: Ditto.
6285 * osf-share/cma_mutex.h: Ditto.
6286 * osf-share/cma_stack_int.h: Ditto.
6287 * osf-share/cma_tcb_defs.h: Ditto.
6288 * python/py-auto-load.c: Ditto.
6289 * python/py-breakpoint.c: Ditto.
6290 * python/py-cmd.c: Ditto.
6291 * python/py-frame.c: Ditto.
6292 * python/py-objfile.c: Ditto.
6293 * python/py-param.c: Ditto.
6294 * python/py-progspace.c: Ditto.
6295 * python/py-symbol.c: Ditto.
6296 * python/py-value.c: Ditto.
6297 * python/python-internal.h: Ditto.
6298 * python/python.c: Ditto.
6299 * tui/tui-data.c: Ditto.
6300 * tui/tui-disasm.c: Ditto.
6301 * tui/tui-hooks.c: Ditto.
6302 * tui/tui-io.c: Ditto.
6303 * tui/tui-layout.c: Ditto.
6304 * tui/tui-regs.c: Ditto.
6305 * tui/tui-source.c: Ditto.
6306 * tui/tui-stack.c: Ditto.
6307 * tui/tui-win.c: Ditto.
6308 * tui/tui-windata.c: Ditto.
6309 * tui/tui-winsource.c: Ditto.
6311 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6313 * configure.ac, gdb.1: Copyright year update.
6315 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6318 this_pc_in_block, morestack_msym and morestack_name. Check for
6319 "__morestack" minimal symbol there.
6321 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6323 * symfile.c (find_sym_fns): Add call to dont_repeat.
6325 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6327 Copyright year update in most files (performed by copyright.sh).
6329 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6331 * top.c (print_gdb_version): Update copyright year in version output.
6333 For older changes see ChangeLog-2010.
6339 version-control: never