1 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3 * record.c: Include event-loop.h, inf-loop.h.
4 (record_beneath_to_async): New global.
5 (tmp_to_async): New global.
6 (record_async_inferior_event_token): New global.
7 (record_open_1): Don't error out if async is enabled.
8 (record_open): Handle to_async. Create an async event source in
10 (record_close): Delete the async event source.
11 (record_resumed): New global.
12 (record_execution_dir): New global.
13 (record_resume, record_core_resume): Set them. Register the
14 target on the event loop.
15 (record_wait): Rename to ...
16 (record_wait_1): ... this. Add more debug output. Handle
17 TARGET_WNOHANG, and the target beneath returning
18 TARGET_WAITKIND_IGNORE.
19 (record_wait): Reimplement on top of record_wait_1.
20 (record_async_mask_value): New global.
21 (record_async, record_async_mask, record_can_async_p)
22 (record_is_async_p, record_execution_direction): New functions.
23 (init_record_ops, init_record_core_ops): Install new methods.
24 * infrun.c (fetch_inferior_event): Temporarily switch the global
25 execution direction to the direction the target was going.
26 (execution_direction): Change type to int.
27 * target.c (default_execution_direction): New function.
28 (update_current_target): Inherit and de_fault
29 to_execution_direction.
30 * target.h (struct target_ops) <to_execution_direction>: New
32 (target_execution_direction): New macro.
33 * inferior.h (execution_direction): Change type to int.
35 2011-05-26 Pedro Alves <pedro@codesourcery.com>
37 * infcall.c (call_function_by_hand): Don't allow calling functions
38 in reverse execution mode.
40 2011-05-26 Pedro Alves <pedro@codesourcery.com>
42 * infcmd.c (finish_command): Allow async finish in reverse.
44 2011-05-26 Yao Qi <yao@codesourcery.com>
46 * gdb_thread_db.h: Delete. Move to ...
47 * common/gdb_thread_db.h: ... here.
49 2011-05-26 Pedro Alves <pedro@codesourcery.com>
51 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
52 function's entry point instead of a manually managed momentary
53 breakpoint, and only ever issue one proceed call.
54 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
55 doing a reverse-finish, switch to stepi mode, to do another step.
56 (insert_step_resume_breakpoint_at_sal): Make public.
57 (normal_stop): No need to save function value return registers if
59 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
61 2011-05-26 Pedro Alves <pedro@codesourcery.com>
63 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
64 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
65 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
67 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
68 step-resume breakpoints.
69 (print_it_typical): Handle bp_hp_step_resume.
71 (bptype_string): Ditto.
72 (print_one_breakpoint_location): Ditto.
73 (allocate_bp_location): Ditto.
75 (breakpoint_re_set_one): Ditto.
76 * infrun.c (handle_inferior_event): Adjust. Split
77 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
78 BPSTAT_WHAT_HP_STEP_RESUME.
79 (insert_step_resume_breakpoint_at_sal): Rename to ...
80 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
82 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
83 insert_step_resume_breakpoint_at_sal_1.
84 (insert_step_resume_breakpoint_at_frame): Rename to ...
85 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
86 set a high-priority step-resume breakpoint.
87 (insert_step_resume_breakpoint_at_frame): Adjust comment.
88 (insert_step_resume_breakpoint_at_caller): Ditto.
90 2011-05-26 Pedro Alves <pedro@codesourcery.com>
92 * breakpoint.c (iterate_over_related_breakpoints): New.
93 (do_map_delete_breakpoint): New.
94 (delete_command): Pass do_map_delete_breakpoint to
95 map_breakpoint_numbers.
96 (do_disable_breakpoint): New.
97 (do_map_disable_breakpoint): Iterate over the breakpoint's related
99 (do_enable_breakpoint): Rename to ...
100 (enable_breakpoint_disp): ... this.
101 (enable_breakpoint): Adjust.
102 (do_enable_breakpoint): New.
103 (enable_once_breakpoint): Delete.
104 (do_map_enable_breakpoint): New.
105 (do_map_enable_once_breakpoint): New.
106 (enable_once_command, enable_delete_command)
107 (delete_trace_command): Iterate over the breakpoint's related
110 2011-05-26 Pedro Alves <pedro@codesourcery.com>
112 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
113 for ALPHA_ZERO_REGNUM.
114 (alpha_supply_int_regs): Explicitly supply zero as the value for
115 ALPHA_ZERO_REGNUM in the register cache.
116 * alpha-nat.c (fetch_osf_core_registers): Ditto.
118 2011-05-26 Yao Qi <yao@codesourcery.com>
120 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
122 2011-05-26 Tristan Gingold <gingold@adacore.com>
124 * symfile.h (struct dwarf2_section_names): New type.
125 (struct dwarf2_debug_sections): New type.
126 (dwarf2_has_info): Add parameter.
127 * dwarf2read.c (dwarf2_elf_names): New variable.
128 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
129 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
130 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
131 (dwarf2_has_info): Add names parameter. Pass names
132 to dwarf2_locate_sections.
133 (section_is_p): Rewrite using the names parameter.
134 (dwarf2_locate_sections): Use section names from the names parameter.
135 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
136 * elfread.c (read_psyms): Ditto.
137 * machoread.c (macho_symfile_read): Ditto.
139 2011-05-25 Andreas Schwab <schwab@redhat.com>
142 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
144 2011-05-24 Keith Seitz <keiths@redhat.com>
147 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
148 (decode_compound): Unconditionally call keep_name_info.
150 2011-05-24 Pedro Alves <pedro@codesourcery.com>
152 * breakpoint.c (watchpoint_check): If the watchpoint went out of
153 scope, clear its command list.
154 (map_breakpoint_numbers): Don't walk the related breakpoints list
157 2011-05-24 Tom Tromey <tromey@redhat.com>
159 * MAINTAINERS: Move Jim Blandy to past maintainers.
161 2011-05-24 Tristan Gingold <gingold@adacore.com>
163 * symfile.h (enum dwarf2_section_enum): New type.
164 (dwarf2_get_section_info): New prototype.
165 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
166 section_name by sect. Use a switch to select the info.
167 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
168 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
170 2011-05-24 Pedro Alves <pedro@codesourcery.com>
172 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
173 shared library event breakpoint if there's no execution.
175 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
177 * breakpont.c (remove_hw_watchpoints): Remove unused function.
178 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
180 2011-05-23 Tom Tromey <tromey@redhat.com>
182 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
185 2011-05-23 Doug Evans <dje@google.com>
187 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
188 entry for RuntimeError to doc string.
190 2011-05-23 Jerome Guitton <guitton@adacore.com>
192 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
193 sequence for probing loops.
195 2011-05-23 Pedro Alves <pedro@codesourcery.com>
197 * infrun.c (user_visible_resume_ptid): Fix typos in describing
200 2011-05-21 Mark Kettenis <kettenis@gnu.org>
202 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
203 zero as the value for %g0 in the register cache.
204 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
205 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
207 2011-05-20 Pedro Alves <pedro@codesourcery.com>
209 * infrun.c (proceed): Set previous_inferior_ptid here.
210 (init_wait_for_inferior): Initialize previous_inferior_ptid from
211 inferior_ptid, not null_ptid.
212 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
213 (fetch_inferior_event): Nor here.
215 2011-05-20 Pedro Alves <pedro@codesourcery.com>
217 * inf-loop.c (inferior_event_handler): Only output a message if
220 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
222 * MAINTAINERS: Update my e-mail address.
224 2011-05-20 Pedro Alves <pedro@codesourcery.com>
226 * infrun.c (proceed): Switch the inferior event loop to
227 INF_EXEC_COMPLETE if the target refused to resume from a
230 2011-05-20 Pedro Alves <pedro@codesourcery.com>
232 * infcmd.c: Include "inf-loop.h".
233 (step_once): When stepping into an inline subroutine, pretend the
234 target has run. If the target can async, switch the inferior
235 event loop to INF_EXEC_COMPLETE.
236 * inferior.h (user_visible_resume_ptid): Declare.
237 * infrun.c (user_visible_resume_ptid): New function, factored out
240 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
241 that the current thread is running. Merge async and sync
244 2011-05-20 Pedro Alves <pedro@codesourcery.com>
246 * infcmd.c (step_1): Simplify synchronous case.
248 2011-05-20 Pedro Alves <pedro@codesourcery.com>
250 * tracepoint.c: Include exceptions.h.
251 (TFILE_PID): Move higher in file.
252 (tfile_open): Delay pushing the tfile target until we're assured
253 the tfile header is present in the file. Wrap reading the initial
254 newline-terminated lines in TRY_CATCH. Pop the target if the
255 initial setup failed. Add the tfile's thread immediately
256 aftwards, before any non-essential setup. Don't skip
257 post_create_inferior if there are no traceframes present in the
259 (tfile_close): Remove redundant check for null before xfree call.
260 (tfile_thread_alive): New function.
261 (init_tfile_ops): Register it as to_thread_alive callback.
263 2011-05-20 Pedro Alves <pedro@codesourcery.com>
265 * tracepoint.c (tfile_open): Delete #if 0'd code.
267 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
269 Fix -readnow for -gdwarf-4 unused type units.
270 * dwarf2read.c (struct signatured_type): Remove the field offset.
271 (create_signatured_type_table_from_index): Remove its initialization.
272 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
273 instead. Add a complaint call.
274 (process_psymtab_comp_unit): Change assignment to gdb_assert.
275 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
276 (lookup_signatured_type_at_offset, read_signatured_type)
277 (write_one_signatured_type): Update the field for per_cu.
279 2011-05-19 Tom Tromey <tromey@redhat.com>
281 * python/py-inferior.c (python_inferior_exit): Use
283 (python_on_resume): Likewise.
285 2011-05-19 Matt Rice <ratmice@gmail.com>
287 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
289 2011-05-19 Hui Zhu <teawater@gmail.com>
291 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
293 2011-05-19 Hui Zhu <teawater@gmail.com>
295 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
297 2011-05-18 Tom Tromey <tromey@redhat.com>
299 * dwarf2read.c (dwarf2_add_field): Constify.
300 * value.c (value_static_field): Constify.
301 * gdbtypes.h (struct main_type) <field.field_location.physname>:
303 * ax-gdb.c (gen_static_field): Constify
305 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
307 * linux-nat.c (kill_callback): Use SIGKILL first.
309 2011-05-18 Joel Brobecker <brobecker@adacore.com>
311 * ada-lang.c (print_it_exception): Avoid use of sprintf.
313 2011-05-18 Tom Tromey <tromey@redhat.com>
315 * value.c (value_fn_field): Constify.
316 * symtab.c (gdb_mangle_name): Constify.
317 * stabsread.c (update_method_name_from_physname): Make 'physname'
319 * p-typeprint.c (pascal_type_print_method_args): Make arguments
320 const. Use explicit fputc_filtered loop.
321 (pascal_type_print_base): Constify.
322 * p-lang.h (pascal_type_print_method_args): Update.
323 * linespec.c (add_matching_methods): Constify.
324 (add_constructors): Likewise.
325 * jv-typeprint.c (java_type_print_base): Constify.
326 * gdbtypes.h (struct cplus_struct_type)
327 <fn_fieldlist.fn_field.physname>: Now const.
328 * dwarf2read.c (compute_delayed_physnames): Constify.
329 (dwarf2_add_member_fn): Likewise.
330 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
332 2011-05-18 Pedro Alves <pedro@codesourcery.com>
334 * infrun.c (resume): Mention which is the current thread, and its
335 current PC in debug output.
336 (prepare_to_proceed): Mention the thread switching in debug
339 2011-05-18 Tom Tromey <tromey@redhat.com>
341 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
342 path check. Use xmalloc and cleanups.
343 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
345 2011-05-17 Tom Tromey <tromey@redhat.com>
347 * cp-valprint.c (cp_print_value_fields): Catch errors from
350 2011-05-17 Tom Tromey <tromey@redhat.com>
352 * dwarf2read.c (dwarf2_get_die_type): Call
353 get_die_type_at_offset.
354 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
355 get_base_type function.
357 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
359 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
362 2011-05-16 Doug Evans <dje@google.com>
364 * python/py-auto-load.c (source_section_scripts): Mention objfile
367 2011-05-15 Doug Evans <dje@google.com>
369 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
370 (try_thread_db_load_from_pdir): Call it. If unable to find
371 libthread_db in directory of libpthread, see if we're looking at
372 the separate-debug-info copy.
374 * python/py-autoload.c (print_script): Print "Missing" instead of
375 "No" for missing scripts.
376 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
378 2011-05-13 Doug Evans <dje@google.com>
380 * ui-file.c (stdio_file_write_async_safe): Add comment.
382 2011-05-14 Hui Zhu <teawater@gmail.com>
384 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
386 2011-05-13 Doug Evans <dje@google.com>
388 Support $pdir and $sdir in libthread-db-search-path.
389 * NEWS: Mention $sdir,$pdir.
390 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
391 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
392 (try_thread_db_load_from_sdir): New function.
393 (try_thread_db_load_from_dir): New function.
394 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
395 system directories if search of libthread-db-search-path fails,
396 that is now done via $sdir.
397 (has_libpthread): New function.
398 (thread_db_load): Remove search for libthread_db in directory of
399 libpthread, that is now done via $pdir.
401 * NEWS: Mention "info auto-load-scripts".
402 * python/py-auto-load.c (struct auto_load_pspace_info): New member
403 script_not_found_warning_printed.
404 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
405 all callers updated. Initialize script_not_found_warning_printed.
406 (get_auto_load_pspace_data_for_loading): New function.
407 (maybe_add_script): New function.
408 (source_section_scripts): Simplify. Only print one warning regardless
409 of the number of auto-load scripts not found.
410 (clear_section_scripts): Clear script_not_found_warning_printed.
411 (auto_load_objfile_script): Record script in hash table.
412 (count_matching_scripts): New function.
413 (maybe_print_script): Renamed from maybe_print_section_script, all
414 callers updated. Rewrite to use ui_out_*.
415 (info_auto_load_scripts): Renamed from
416 maintenance_print_section_scripts, all callers updated.
417 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
418 renamed as "info auto-load-scripts".
420 2011-05-13 Tom Tromey <tromey@redhat.com>
422 * dwarf2expr.c (read_uleb128): Cast intermediate result.
423 (read_sleb128): Likewise.
425 2011-05-13 Tom Tromey <tromey@redhat.com>
427 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
430 2011-05-13 Doug Evans <dje@google.com>
432 * linux-nat.c (debug_linux_nat_async): Delete.
433 Replace all references to use debug_linux_nat instead.
434 (show_debug_linux_nat_async): Delete.
435 (sigchld_handler): Call ui_file_write_async_safe instead of
437 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
438 * ui-file.c (struct ui_file): New member to_write_async_safe.
439 (null_file_write_async_safe): New function.
440 (ui_file_write_async_safe): New function.
441 (set_ui_file_write_async_safe): New function.
442 (ui_file_new): Initialize to_write_async_safe.
443 (stdio_file_write_async_safe): New function.
444 (struct stdio_file): New member fd.
445 (stdio_file_new): Initialize to_write_async_safe, fd.
446 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
448 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
449 (set_ui_file_write_async_safe): Declare.
450 (ui_file_write_async_safe): Declare.
452 2011-05-13 Tom Tromey <tromey@redhat.com>
454 * utils.c (do_value_free): New function.
455 (make_cleanup_value_free): Likewise.
456 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
458 (dwarf2_loc_desc_needs_frame): Call
459 make_cleanup_value_free_to_mark.
460 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
461 * dwarf2expr.c (free_dwarf_expr_context): Don't call
463 (new_dwarf_expr_context): Don't call value_mark.
464 * dwarf2-frame.c (execute_stack_op): Call
465 make_cleanup_value_free_to_mark.
466 * defs.h (make_cleanup_value_free): Declare.
468 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
470 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
471 prepare_execute_command.
472 * top.c (prepare_execute_command): Return cleanup.
473 (execute_command): Use cleanup from prepare_execute_command.
474 * top.h (prepare_execute_command): Change prototype to return
476 * defs.h (struct value): Add opaque declaration.
477 (make_cleanup_value_free_to_mark): Add prototype.
478 * utils.c (do_value_free_to_mark): New function.
479 (make_cleanup_value_free_to_mark): Likewise.
481 2011-05-12 Tom Tromey <tromey@redhat.com>
483 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
484 cast left-hand-side to unsigned.
486 2011-05-12 Tom Tromey <tromey@redhat.com>
489 * value.h (value_from_contents): Declare.
490 * value.c (value_from_contents): New function.
491 * dwarf2read.c (dwarf_stack_op_name): Add new values.
492 (dwarf2_get_die_type): New function.
493 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
494 (allocate_piece_closure): Acquire reference to values.
495 (read_pieced_value): Update for value-based expressions.
496 (write_pieced_value): Likewise.
497 (free_pieced_value_closure): Call value_free as needed.
498 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
499 Update for value-based expressions.
500 * dwarf2loc.h (dwarf2_get_die_type): Declare.
501 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
502 <get_base_type>: New field.
503 (struct dwarf_expr_piece) <v.value>: Change type.
504 <v.regno>: New field.
505 (struct dwarf_expr_context) <mark>: New field.
506 (dwarf_expr_piece, dwarf_expr_fetch): Update.
507 (dwarf_expr_pop, dwarf_expr_push): Remove.
508 (dwarf_expr_push_address): Declare.
509 * dwarf2expr.c (dwarf_arch_cookie): New global.
510 (struct dwarf_gdbarch_types): New.
511 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
513 (dwarf_expr_push): Change type of 'value' argument. Update. Now
515 (dwarf_expr_push_address): New function.
516 (dwarf_expr_pop): Now static.
517 (dwarf_expr_fetch): Change return type.
518 (dwarf_require_integral): New function.
519 (dwarf_expr_fetch): Simplify.
521 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
523 (execute_stack_op) <sign_ext>: Remove.
524 Use values for DWARF stack.
525 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
526 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
528 (_initialize_dwarf2expr): New function.
530 (new_dwarf_expr_context): Set new field.
531 (free_dwarf_expr_context): Call value_free_to_mark.
532 * dwarf2-frame.c (no_base_type): New function.
533 (execute_stack_op): Set get_base_type field. Update.
535 2011-05-12 Tom Tromey <tromey@redhat.com>
537 * dwarf2read.c (read_common_block): Fix formatting.
539 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
541 * breakpoint.c (disable_breakpoint): Disable all locations
542 associated with a tracepoint on target if a trace experiment is
544 (disable_command): Disable a specific tracepoint location on target if
545 a trace experiment is running.
546 (do_enable_breakpoint): Enable all locations associated with a
547 tracepoint on target if a trace experiment is running.
548 (enable_command) Enable a specific tracepoint location on target if a
549 trace experiment is running.
550 * target.c (update_current_target): Add INHERIT and de_fault clauses for
551 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
552 to_disable_tracepoint.
553 * target.h: Add declaration of struct bp_location.
554 (struct target_ops): Add new functions
555 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
556 to_disable_tracepoint to target operations.
557 (target_supports_enable_disable_tracepoint): New macro.
558 (target_enable_tracepoint): New macro.
559 (target_disable_tracepoint): New macro.
560 * remote.c (struct remote_state): Add new field.
561 (remote_enable_disable_tracepoint_feature): New.
562 (remote_protocol_features): Add new entry.
563 (remote_supports_enable_disable_tracepoint): New.
564 (remote_enable_tracepoint): New.
565 (remote_disable_tracepoint): New.
566 (init_remote_ops): Add remote_enable_tracepoint,
567 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
568 to remote operations.
569 * tracepoint.c (start_tracing): Allow tracing to start without any
570 tracepoints enabled with just a warning if they can be re-enabled
572 * NEWS: Add news item for the new behaviour of the enable and disable
573 GDB commands when applied to tracepoints.
574 Add news items for the new remote packets QTEnable and QTDisable.
576 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
578 * config.in: Regenerate.
579 * configure: Regenerate.
580 * configure.ac <--with-system-readline> (for readline_echoing_p):
582 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
583 (tui_old_rl_echoing_p): ... here.
584 (tui_setup_io): Rename extern declaration readline_echoing_p to
585 _rl_echoing_p. Adjust assignments for the both renames.
587 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
589 * symtab.c (lookup_symtab): Run cleanup before returning.
591 2011-05-11 Tom Tromey <tromey@redhat.com>
593 * dwarf2read.c (handle_data_member_location): New function.
594 (dwarf2_add_field): Use it.
595 (read_common_block): Likewise.
597 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
599 Make addrs->SECTINDEX always defined.
600 * symfile.c (relative_addr_info_to_section_offsets): Check for
601 SECTINDEX -1, not for zero ADDR.
602 (addrs_section_compar): Remove checking for invalid SECTINDEX.
603 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
604 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
607 2011-05-10 Doug Evans <dje@google.com>
609 * linux-thread-db.c: Whitespace cleanup.
610 (try_thread_db_load_1): Fix comment.
612 * linux-thread-db.c (set_libthread_db_search_path): New function.
613 (_initialize_thread_db): Add setter for libthread-db-search-path.
615 2011-05-09 Doug Evans <dje@google.com>
617 * NEWS: Mention --with-iconv-bin.
618 * configure.ac: New option --with-iconv-bin.
619 * configure: Regenerate.
620 * config.in: Regenerate.
621 * defs.h (relocate_gdb_directory): Declare.
622 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
623 removed progname parameter, and exported. All callers updated.
624 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
626 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
627 adding missing call to restore_child_signals_mask.
629 2011-05-09 Pedro Alves <pedro@codesourcery.com>
631 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
633 * infrun.c (proceed, start_remote): Adjust.
634 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
635 and adjust to not handle it.
636 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
637 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
638 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
639 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
640 * windows-nat.c (do_initial_windows_stuff): Adjust.
641 * infcmd.c (attach_command): Adjust.
642 (notice_new_inferior): Adjust.
644 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
646 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
647 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
648 * spu-tdep.c (op_selb): Use correct value.
650 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
652 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
653 "parent" parameter to symbol_file_add_from_bfd call.
655 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
656 Thiago Jung Bauermann <bauerman@br.ibm.com>
658 Implement support for PowerPC BookE masked watchpoints.
659 * NEWS: Mention masked watchpoint support. Create "Changed commands"
661 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
662 method. Initialize to NULL in all existing breakpoint_ops instances.
663 (struct breakpoint) <hw_wp_mask>: New field.
664 * breakpoint.c (is_masked_watchpoint): Add prototype.
665 (update_watchpoint): Don't set b->val for masked watchpoints. Call
666 breakpoint's breakpoint_ops.works_in_software_mode if available.
667 (watchpoints_triggered): Handle the case of a hardware masked
669 (watchpoint_check): Likewise.
670 (works_in_software_mode_watchpoint): New function.
671 (insert_masked_watchpoint, remove_masked_watchpoint)
672 (resources_needed_masked_watchpoint)
673 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
674 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
675 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
677 (masked_watchpoint_breakpoint_ops): New structure.
678 (watch_command_1): Check for the existence of the `mask' parameter.
679 Set b->ops according to the type of hardware watchpoint being created.
680 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
681 (ppc_linux_remove_mask_watchpoint)
682 (ppc_linux_masked_watch_num_registers): New functions.
683 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
684 to_remove_mask_watchpoint and to_masked_watch_num_registers.
685 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
686 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
687 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
688 (target_masked_watch_num_registers): New functions.
689 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
690 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
692 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
693 (target_masked_watch_num_registers): Add prototypes.
695 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
698 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
699 (producer_is_gcc_ge_4_0): New function.
700 (process_full_comp_unit): Set also symtab->locations_valid. Move the
701 symtab->language code.
702 (var_decode_location): Set cu->has_loclist.
703 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
704 skip. Intialize force_skip from locations_valid. Move the prologue
705 skipping code into two passes.
706 * symtab.h (struct symtab): Make the primary field a bitfield. New
707 field locations_valid.
709 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
711 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
712 (classify_inner_name): Call cp_lookup_nested_type with
714 * cp-namespace.c (cp_lookup_nested_type): New variable
715 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
716 type_name_no_tag_or_error with saved_parent_type.
717 * dwarf2read.c (load_partial_dies): Read in any children of
718 DW_TAG_typedef with complaint in such case.
719 * gdbtypes.c (type_name_no_tag_or_error): New function.
720 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
721 * valops.c (destructor_name_p): New comment for parameter type. Remove
722 type const. Make dname and cp const. Call type_name_no_tag_or_error.
723 * value.h (destructor_name_p): Remove type const.
725 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
727 * symtab.c (compare_symbol_name): New function.
728 (completion_list_add_name, expand_partial_symbol_name): Call it,
729 remove the variable ncmp.
730 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
733 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
735 Demote to sw watchpoint only in update_watchpoint.
736 * breakpoint.c (update_watchpoint): Change between software and
737 hardware watchpoint for all kinds of watchpoints, not just
738 read/write ones. Determine b->exact value here instead of
739 in watch_command_1. Error out if there are not enough resources
740 for a read or access hardware watchpoint.
741 (watch_command_1): Remove logic of checking whether there are
742 enough resources available, since update_watchpoint will do that
743 work now. Don't set b->exact here. Catch exceptions thrown by
744 update_watchpoint and delete the watchpoint.
745 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
746 Use target_exact_watchpoints instead.
747 (delete_breakpoint): Notify observers only if deleted watchpoint
748 has a breakpoint number assigned to it.
750 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
752 * MAINTAINERS: Add myself as a write-after-approval maintainer.
754 2011-05-05 Jerome Guitton <guitton@adacore.com>
756 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
758 (i386_stack_tramp_frame_unwind): New static global.
759 (i386_match_pattern): New function, extracted from i386_match_insn.
760 (i386_match_insn): Use i386_match_pattern.
761 (i386_match_insn_block): New function.
762 (i386_tramp_chain_in_reg_insns)
763 (i386_tramp_chain_on_stack_insns): New static variables.
764 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
767 2011-05-04 Joseph Myers <joseph@codesourcery.com>
769 * configure.host (xscale*): Don't handle target.
770 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
773 2011-05-04 Yao Qi <yao@codesourcery.com>
775 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
777 2011-05-03 Joel Brobecker <brobecker@adacore.com>
780 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
781 | * elfread.c (elf_symtab_read): Stop memory leak.
783 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
785 * nto-tdep.c (nto_target): Replace deprecated call to
786 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
788 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
790 Fix false GCC warning.
791 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
793 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
795 * breakpoint.c (update_watchpoint): Move code to change
796 the enable state of breakpoint from here ...
797 (do_enable_breakpoint): ... to here.
799 2011-04-26 Andrew Gontarek <andrewg@cray.com>
801 * valprint.c (val_print_array_elements): Fixed poor performance
802 of printing very large arrays with repeat_count_threshold set
803 to unlimited. New comment.
805 2011-04-29 Tom Tromey <tromey@redhat.com>
807 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
808 (mi_parse): Likewise.
809 * breakpoint.c (break_range_command): Use sizeof char*, not
811 (create_breakpoint): Likewise.
812 (parse_breakpoint_sals): Likewise.
814 2011-04-29 Pedro Alves <pedro@codesourcery.com>
816 * linux-nat.c (linux_child_remove_fork_catchpoint)
817 (linux_child_remove_vfork_catchpoint)
818 (linux_child_remove_exec_catchpoint): New functions.
819 (linux_target_install_ops): Install them.
821 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
825 * varobj.c (install_default_visualizer): Do not install a
826 visualizer if the varobj is CPLUS_FAKE_CHILD.
827 (construct_visualizer): Likewise.
829 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
831 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
832 case insensitive comparison.
834 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
836 * infrun.c (proceed): Revert previous change.
837 (resume): Instead, handle the case of signal delivery while stepping
838 off a breakpoint location here, and only if software single-stepping
839 is used. Handle nested signals.
841 2011-04-28 Yao Qi <yao@codesourcery.com>
843 * arm-tdep.c (copy_unmodified): Rename to ...
844 (arm_copy_unmodified): .. this. New.
845 (copy_preload): Move common part to ...
846 (install_preload): .. this. New.
847 (arm_copy_preload): New.
848 (copy_preload_reg): Move common part to ...
849 (install_preload_reg): ... this. New.
850 (arm_copy_preload_reg): New.
851 (copy_b_bl_blx): Move common part to ...
852 (install_b_bl_blx): .. this. New.
853 (arm_copy_b_bl_blx): New.
854 (copy_bx_blx_reg): Move common part to ...
855 (install_bx_blx_reg): ... this. New.
856 (arm_copy_bx_blx_reg): New.
857 (copy_alu_reg): Move common part to ...
858 (install_alu_reg): ... this. New.
859 (arm_copy_alu_reg): New.
860 (copy_alu_shifted_reg): Move common part to ...
861 (install_alu_shifted_reg): ... this. New.
862 (copy_ldr_str_ldrb_strb): Move common part to ...
863 (install_ldr_str_ldrb_strb): ... this. New.
864 (arm_copy_ldr_str_ldrb_strb): New.
865 (copy_copro_load_store): Move some common part to ...
866 (install_copy_copro_load_store): ... this. New.
867 (arm_copy_copro_load_store): New.
869 (arm_copy_svc): Renamed from copy_svc.
870 (copy_undef): Delete.
871 (arm_copy_undef): Renamed from copy_undef.
872 (decode_ext_reg_ld_st): Delete.
873 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
874 (decode_svc_copro): Delete.
875 (arm_decode_svc_copro): Renamed from decode_svc_copro.
876 (copy_copro_load_store, copy_alu_imm): update callers.
877 (copy_extra_ld_st, copy_block_xfer): Likewise.
878 (decode_misc_memhint_neon, decode_unconditional): Likewise.
879 (decode_miscellaneous, decode_dp_misc): Likewise.
880 (decode_ld_st_word_ubyte, decode_media): Likewise.
881 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
882 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
883 (decode_unconditional, decode_miscellaneous): Likewise.
884 (decode_media, decode_b_bl_ldmstm): Likewise.
885 (arm_process_displaced_insn): Likewise..
886 (decode_misc_memhint_neon): Delete.
887 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
888 (decode_miscellaneous): Delete.
889 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
890 (decode_dp_misc): Delete.
891 (arm_decode_dp_misc): Renamed from decode_dp_misc.
892 (decode_ld_st_word_ubyte): Delete.
893 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
894 (decode_media): Delete.
895 (arm_decode_media): Renamed from decode_media.
896 (decode_b_bl_ldmstm): Delete.
897 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
898 (decode_ext_reg_ld_st): Delete.
899 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
900 (decode_unconditional): Delete.
901 (arm_decode_unconditional): Renamed from decode_unconditional.
903 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
905 Case insensitive lookups implementation.
906 * dwarf2read.c: Include ctype.h.
907 (struct mapped_index): New field version.
908 (mapped_index_string_hash): New parameter index_version. New comment
909 for it. Call tolower appropriately.
910 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
911 Choose the right index version for mapped_index_string_hash.
912 (dwarf2_read_index): Support also the index version 5. Initialize the
913 new struct mapped_index field version.
914 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
915 (find_slot): Explain the version needs. Pass INT_MAX for the new
917 (write_psymtabs_to_index): Produce version 5.
918 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
919 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
920 * psymtab.c (lookup_partial_symbol): Find the
921 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
923 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
925 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
926 (completion_list_add_name): New variable ncmp, initialize it, use it.
927 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
928 * utils.c (strcmp_iw): Support case_sensitive_off.
929 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
930 New function comment part. New variables saved_string1,
931 saved_string2 and case_pass. Add a proper second pass.
933 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
935 Replace re_comp/re_exec by regcomp/regexec.
936 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
937 (search_symbols_name_matches): Use them, use regexec.
938 (search_symbols): New variable retval_chain, adjust the use of
939 old_chain against it. Replace re_comp by regcomp. Use the new struct
940 search_symbols_data fields, use regexec instead of re_exec.
942 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
944 Format the code for the next patch.
945 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
946 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
947 New variables c1 and c2.
949 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
951 * infrun.c (proceed): Do not single-step into signal delivery
952 when stepping off a breakpoint location.
953 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
954 (insert_step_resume_breakpoint_at_caller): Likewise.
955 (insert_step_resume_breakpoint_at_sal): Likewise.
956 (insert_longjmp_resume_breakpoint): Likewise.
958 2011-04-27 Yao Qi <yao@codesourcery.com>
960 * common/linux-ptrace.h: Remove include <sys/wait.h>.
962 2011-04-27 Joel Brobecker <brobecker@adacore.com>
964 * procfs.c (procfs_pass_signals): Fix advance declaration.
966 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
968 * target.h (struct target_ops): Remove to_notice_signals;
970 (target_notice_signals): Remove.
971 (target_pass_signals): Add prototype.
972 * target.c (update_current_target): Remove to_notice_signals;
973 mention to_pass_signals.
974 (target_pass_signals): New function.
975 (debug_to_notice_signals): Remove.
976 (setup_target_debug): Do not install debug_to_notice_signals.
978 * infrun.c (signal_pass): New global.
979 (resume): Call target_pass_signals.
980 (handle_inferior_event): Report all signals while stepping over
981 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
982 are re-inserted when stepping over a signal handler.
983 (signal_cache_update): New function.
984 (signal_stop_update): Call it.
985 (signal_print_update): Likewise.
986 (signal_pass_update): Likewise.
987 (handle_command): Call signal_cache_update and target_pass_signals
988 instead of target_notice_signals.
989 (_initialize_infrun): Initialize signal_pass.
991 * linux-nat.c (pass_mask): New global.
992 (linux_nat_pass_signals): New function.
993 (linux_nat_create_inferior): Report all signals initially.
994 (linux_nat_attach): Likewise.
995 (linux_nat_resume): Use pass_mask to decide whether to directly
996 handle an inferior signal.
997 (linux_nat_wait_1): Likewise.
998 (linux_nat_add_target): Install to_pass_signals callback.
1000 * nto-procfs.c (notice_signals): Remove.
1001 (procfs_resume): Do not call notice_signals.
1002 (procfs_notice_signals): Remove.
1003 (procfs_pass_signals): New function.
1004 (init_procfs_ops): Install to_pass_signals callback instead of
1005 to_notice_signals callback.
1006 (_initialize_procfs): Report all signals initially.
1008 * procfs.c (procfs_notice_signals): Remove.
1009 (procfs_pass_signals): New function.
1010 (procfs_target): Install to_pass_signals callback instead of
1011 to_notice_signals callback.
1012 (register_gdb_signals): Remove.
1013 (procfs_debug_inferior): Report all signals initially.
1014 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1016 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1017 parameters; use them instead of calling signal_..._state routines.
1018 (remote_notice_signals): Remove.
1019 (remote_start_remote): Report all signals initially.
1020 (remote_resume): Do not call remote_pass_signals.
1021 (_initialize_remote): Install to_pass_signals callback instead of
1022 to_notice_signals callback.
1024 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1026 * breakpoint.c (user_settable_breakpoint): Delete.
1027 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1028 (delete_command): Check user_breakpoint_p instead of looking at
1029 the breakpoint's type.
1030 (disable_command): Ditto.
1031 (enable_command): Ditto.
1032 (delete_trace_command): Use user_breakpoint_p instead of looking
1033 at the breakpoint number directly. When checking if there are
1034 user visible tracepoints, in order to know whether to ask the user
1035 for confirmation, check whether the breakpoint is actually a
1038 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1040 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1043 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1045 MI breakpoint notifications.
1047 * annotate.c (breakpoint_changed): Adjust parameter type.
1048 * breakpoint.c (set_breakpoint_condition): Adjust to change
1049 in breakpoint_modified type.
1050 (breakpoint_set_commands): Likewise.
1051 (do_map_commands_command): Likewise.
1052 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1053 changed after bumping hit count.
1054 (bpstat_stop_status): Likewise.
1055 (print_one_breakpoint_location): Don't wrap in tuple here.
1056 (print_one_breakpoint): Always print individual locations.
1057 For locations, use unnamed tuple.
1058 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1060 (create_catchpoint, create_syscall_event_catchpoint): Call
1061 breakpoint_created obsever.
1062 (mention): Don't call breakpoint_created observer.
1063 (create_breakpoint_sal): Call breakpoint_created observer.
1064 (create_breakpoint, watch_command_1): Likewise.
1065 (create_ada_exception_breakpoint): Likewise.
1066 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1067 (locations_are_equal): New.
1068 (update_breakpoint_locations): If locations were changed, notify.
1069 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1070 Call breakpoint_modified observer.
1072 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1073 (mi_cmd_break_insert): Don't set observers for modify and delete.
1074 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1075 (mi_breakpoint_created, mi_breakpoint_deleted)
1076 (mi_breakpoint_modified): New.
1077 (mi_interpreter_init): Hook the above.
1078 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1079 while -break-* commands are executing.
1080 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1081 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1083 (mi_ui_out_impl): Hook in mi_redirect.
1084 (mi_field_skip): True to the name, skip the field, don't output
1085 a field with an empty value.
1087 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1088 (gdbpy_breakpoint_deleted): Adjust.
1089 * tui/tui-hooks.c (tui_event_create_breakpoint)
1090 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1092 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1094 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1095 (procfs_remove_hw_watchpoint): Likewise.
1097 2011-04-26 Michael Walle <michael@walle.cc>
1099 * remote.c (remote_start_remote): Ack packet after sending the
1102 2011-04-26 Yao Qi <yao@codesourcery.com>
1104 * linux-nat.c: Move common macros to ...
1105 Include linux-ptrace.h.
1106 * common/linux-ptrace.h: ... here. New.
1108 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1110 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1111 !objfile_has_partial_symbols. New comment.
1112 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1113 SYM_READ_PSYMBOLS is not present. Extend the comment.
1114 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1116 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1118 * defs.h (ENUM_BITFIELD): Remove.
1120 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 Eli Zaretskii <eliz@gnu.org>
1123 * NEWS: Document the new gdbserver --once option.
1125 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1127 * MAINTAINERS: Update my email address.
1129 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1131 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1132 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1133 function call if __STDC_ISO_10646__ macro is defined.
1134 (intermediate_encoding): New prototype.
1135 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1136 to generate compile time error for unsupported gdb_wchar_t size.
1137 (ENDIAN_SUFFIX): New macro.
1138 (intermediate_encoding): New function.
1140 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1142 * ada-lang.c (struct add_partial_datum): Update the comment for
1143 expand_partial_symbol_name.
1144 (ada_add_partial_symbol_completions): Rename to ...
1145 (ada_expand_partial_symbol_name): ... here, change return type, update
1146 function comment, call symbol_completion_match instead of
1147 symbol_completion_add.
1148 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1149 and ada_expand_partial_symbol_name.
1150 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1152 (dw2_map_symbol_names): Remove.
1153 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1154 * psymtab.c (map_symbol_names_psymtab): Remove.
1155 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1156 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1158 (psym_functions): Unlist map_symbol_names_psymtab.
1159 (map_partial_symbol_names): Rename to ...
1160 (expand_partial_symbol_names): ... here, change the FUN type, call
1161 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1162 * psymtab.h (map_partial_symbol_names): Rename to ...
1163 (expand_partial_symbol_names): ... here, change the FUN type.
1164 * symfile.h (struct quick_symbol_functions): Update the description of
1165 expand_symtabs_matching. Remove map_symbol_names.
1166 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1167 (struct add_name_data): Update the comment for
1168 expand_partial_symbol_name.
1169 (add_partial_symbol_name): Rename to ...
1170 (expand_partial_symbol_name): ... here. Replace
1171 completion_list_add_name call by strncmp.
1172 (default_make_symbol_completion_list_break_on): Use now
1173 expand_partial_symbol_names and expand_partial_symbol_name.
1174 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1176 2011-04-20 Tom Tromey <tromey@redhat.com>
1178 * dwarf2read.c (save_gdb_index_command): Replace format
1179 documentation with a pointer to the manual.
1181 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1183 * regcache.c: Include remote.h.
1184 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1185 (regcache_dump): Handle regcache_dump_remote.
1186 (maintenance_print_remote_registers): New function.
1187 (_initialize_regcache): Install "maint print remote-registers"
1189 * remote.c (map_regcache_remote_table): New function, factored out
1191 (init_remote_state): ... here.
1192 (remote_register_number_and_offset): New.
1193 * remote.h (remote_register_number_and_offset): Declare.
1195 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1197 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1198 null_ptid, assume and allow a NULL address space, instead of
1199 asking the target for the ptid's address space.
1200 * infrun.c (ptid_is_pid): Remove assertion.
1202 2011-04-19 Tom Tromey <tromey@redhat.com>
1204 * windows-tdep.c (windows_xfer_shared_library):
1205 * windows-nat.c (get_module_name, windows_make_so):
1206 * v850-tdep.c (v850_handle_pushm):
1207 * utils.c (null_cleanup, gdb_realpath):
1208 * ui-out.c (get_next_header):
1209 * tracepoint.c (clear_traceframe_info):
1210 * symtab.c (lookup_symtab):
1211 * serial.h (struct serial_ops):
1212 * mipsread.c (read_alphacoff_dynamic_symtab):
1213 * infcmd.c (print_return_value):
1214 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1215 * f-exp.y (parse_number):
1216 * exceptions.c (catch_exceptions):
1217 * dummy-frame.c (dummy_frame_this_id):
1218 * defs.h (struct cleanup):
1219 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1220 * arm-tdep.c (arm_push_dummy_call):
1221 * amd64-tdep.h (amd64_collect_xsave):
1222 * amd64-tdep.c (amd64_collect_xsave):
1223 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1224 * README (typing): Remove duplicate words.
1225 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1226 * infrun.c (siginfo_value_read): Fix typo.
1227 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1228 * top.c (source_line_number): Add comma.
1230 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1232 * thread.c (any_live_thread_of_process): Prioritize threads
1233 that are not executing.
1234 * gdbthread.h (any_live_thread_of_process): Update comment
1235 as per above change.
1237 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1239 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1240 (scan_xcoff_symtab): Likewise.
1242 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1244 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1247 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1248 Pedro Alves <pedro@codesourcery.com>
1250 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1251 variables to simplify code and avoid == operator at end of
1252 line as this is against GNU coding standards.
1254 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1256 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1257 lm_name to name_lm to avoid conflict with lm_name function.
1259 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1261 ARI fixes: Use only lowercase function name for static functions.
1262 * nto-tdep.c (LM_ADDR): Rename to...
1263 (lm_addr): New function name.
1264 (nto_relocate_section_addresses): Adapt to change above.
1265 * solib-sunos.c (LM_ADDR): Rename to...
1266 (lm_addr): New function name.
1267 (LM_NEXT): Rename to...
1268 (lm_next): New function name.
1269 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1270 function name changes above.
1271 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1272 (lm_addr_from_link_map): New function name.
1273 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1274 (has_lm_dynamic_from_link_map): New function name.
1275 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1276 (lm_dynamic_from_link_map): New function name.
1277 (LM_ADDR_CHECK): Rename to...
1278 (lm_addr_check): New function name.
1279 (LM_NEXT): Rename to...
1280 (lm_next): New function name.
1281 (LM_PREV): Rename to...
1282 (lm_prev): New function name.
1283 (LM_NAME): Rename to...
1284 (lm_name): New function name.
1285 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1286 (ignore_first_link_map_entry): New function name.
1287 (svr4_keep_data_in_core): Adapt to function name changes above.
1288 (svr4_current_sos): Likewise.
1289 (enable_break): Likewise.
1290 (svr4_relocate_section_addresses): Likewise.
1292 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1295 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1296 sprintf. Simplify code and avoid loosing memory.
1297 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1298 (call0_frame_cache): Remove && operator from end of line.
1300 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 Fix libraries displacement if they change whether they were prelinked.
1303 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1304 does not match. Comment why.
1306 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1308 * corelow.c: Include wrapper.h.
1309 (core_open): Call now gdb_target_find_new_threads.
1310 * wrapper.c: Include target.h.
1311 (gdb_target_find_new_threads): New.
1312 * wrapper.h (gdb_target_find_new_threads): New declaration.
1314 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1317 even if !TARGET_HAS_EXECUTION.
1319 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1321 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1322 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1323 bfd_get_synthetic_symtab.
1324 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1325 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1326 parameter parent, remove the call to add_separate_debug_objfile.
1327 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1328 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1329 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1330 parent, new comment for it, call add_separate_debug_objfile for it.
1331 (symbol_file_add_separate): Pass objfile as the parameter parent,
1332 remove the call to add_separate_debug_objfile.
1333 (symbol_file_add_from_bfd): New parameter parent, pass it.
1334 (symbol_file_add): Pass NULL to the new parameter parent.
1335 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1337 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1339 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1342 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 Fix Python access to inlined frames.
1345 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1346 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1348 2011-04-15 Tom Tromey <tromey@redhat.com>
1350 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1352 2011-04-15 Gary Benson <gbenson@redhat.com>
1354 * MAINTAINERS: Add myself to write-after-approval section.
1356 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1358 * remote-sim.c (sim_command_completer): New function.
1359 (_initialize_remote_sim): Set completer to sim_command_completer.
1361 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1363 * breakpoint.c (print_exception_catchpoint): Rename to ...
1364 (print_it_exception_catchpoint): ... this.
1365 (gnu_v3_exception_catchpoint_ops): Update with new name
1366 for print_it_exception_catchpoint.
1368 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1370 * MAINTAINERS: Add myself for write after approval privileges.
1372 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1374 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1376 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1378 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1380 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1382 * breakpoint.c (save_breakpoints): Verify whether
1383 breakpoint_ops.print_recreate is defined before calling it.
1385 2011-04-11 Gary Benson <gbenson@redhat.com>
1387 Fix failure with --enable-maintainer-mode.
1388 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1390 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1393 * symtab.c (search_symbols): Reorder the KIND description in the
1394 function comment. Remove the unused 4th element of types, types2,
1395 types3 and types4. New gdb_assert on KIND.
1396 (symtab_symbol_info): Remove the unused 4th element of classnames.
1397 New gdb_assert on KIND.
1398 * symtab.h (enum search_domain): New warning in the enum comment.
1399 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1402 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1404 Fix crash of gdb save-index on a STABS file.
1405 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1408 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1411 * dwarf2read.c: Include ctype.h.
1412 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1414 (dwarf2_add_field): Fix new_field->accessibility by calling
1415 dwarf2_default_access_attribute. Restructure setting accessibility
1417 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1418 is_private and is_protected by calling
1419 dwarf2_default_access_attribute.
1421 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1423 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1424 to the initialization.
1426 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1428 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1431 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1433 Remove support for old Cygwin 1.5 versions.
1434 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1435 function on old Cygwin version.
1436 * windows-nat.c: Remove cygwin version check and always define
1437 __USEWIDE for Cygwin compilation.
1439 2011-04-07 Yao Qi <yao@codesourcery.com>
1441 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1443 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1444 (arm_copy_svc): Remove parameters INSN and TO.
1445 (decode_svc_copro): Update caller.
1446 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1447 from function pointer `copy_svc_os'.
1449 2011-04-07 Yao Qi <yao@codesourcery.com>
1451 * arm-tdep.c (cleanup_branch): Set a correct return address in
1452 LR for ARM and Thumb.
1454 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1457 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1458 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1459 in the function comment, a new note on values compatibility.
1460 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1461 * symtab.h (SYMBOL_HASH_NEXT): New.
1463 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1465 * ppc-linux-nat.c (check_condition): Add len output parameter.
1466 Set it based on the memory region referenced in the condition
1467 expression. Update all callers.
1469 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1471 Fix crash regression on systems featuring .gdb_index.
1472 * objfiles.c (free_objfile): Move the
1473 forget_cached_source_info_for_objfile call earlier. Comment it.
1474 Extend the comment for objfile_free_data.
1476 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1478 Fix regression of displaying the debug format.
1479 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1482 2011-04-04 Tom Tromey <tromey@redhat.com>
1484 * cli/cli-interp.c (struct captured_execute_command_args):
1486 (do_captured_execute_command): Remove.
1487 (safe_execute_command): Use TRY_CATCH.
1488 * cli/cli-script.c (struct wrapped_read_command_file_args):
1490 (wrapped_read_command_file): Remove.
1491 (script_from_file): Use TRY_CATCH.
1492 * exceptions.c (catch_exception): Remove.
1493 * exceptions.h (catch_exception): Remove.
1494 (deprecated_throw_reason): Update comment.
1495 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1496 argument to 'context'.
1497 (mi_execute_command): Use TRY_CATCH.
1498 * remote.c (struct start_remote_args): Remove.
1499 (remote_start_remote): Update; change arguments.
1500 (remote_open_1): Use TRY_CATCH.
1502 2011-04-04 Tom Tromey <tromey@redhat.com>
1504 * tracepoint.c (scope_info): Update.
1505 * symtab.c (decode_line_spec): Update.
1506 * python/python.c (gdbpy_decode_line): Update.
1507 * linespec.h (decode_line_1): Update.
1508 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1509 (decode_compound, find_method, symtab_from_filename)
1510 (decode_variable): Likewise.
1511 * cli/cli-cmds.c (edit_command): Update.
1512 (list_command): Update.
1513 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1515 (create_breakpoint): Update.
1516 (until_break_command): Update.
1517 (addr_string_to_sals): Update.
1518 (decode_line_spec_1): Update.
1520 2011-04-04 Tom Tromey <tromey@redhat.com>
1522 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1523 (do_captured_parse_breakpoint): Remove.
1524 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1525 Use TRY_CATCH directly.
1527 2011-04-04 Tom Tromey <tromey@redhat.com>
1529 * symtab.h (free_symtab): Remove.
1530 (forget_cached_source_info_for_objfile): Declare.
1531 * symmisc.c (free_symtab): Remove.
1532 * source.c (forget_cached_source_info_for_objfile): New function.
1533 (forget_cached_source_info): Use it.
1534 * objfiles.c (free_objfile): Simplify check before calling
1535 clear_current_source_symtab_and_line. Call
1536 forget_cached_source_info_for_objfile.
1538 2011-04-04 Tom Tromey <tromey@redhat.com>
1540 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1541 (new_symtab): Don't set `free_code' on symtab.
1542 (new_linetable): Properly handle size==0.
1543 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1544 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1546 * jv-lang.c (struct jv_per_objfile_data): New.
1547 (jv_per_objfile_free): Free the data.
1548 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1549 (get_java_class_symtab): Set the `dict' field on the
1550 jv_per_objfile_data.
1551 (free_class_block): Remove.
1552 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1555 2011-04-04 Tom Tromey <tromey@redhat.com>
1557 * symfile.c (reread_symbols): Update.
1558 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1560 * objfiles.c (allocate_objfile): Update.
1561 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1563 * cp-namespace.c (lookup_symbol_file): Don't call
1564 lookup_possible_namespace_symbol.
1565 (initialize_namespace_symtab, get_possible_namespace_block)
1566 (free_namespace_block, cp_check_possible_namespace_symbols)
1567 (check_possible_namespace_symbols_loop)
1568 (check_one_possible_namespace_symbol)
1569 (lookup_possible_namespace_symbol): Remove.
1570 (maintenance_cplus_namespace): Replace with notice.
1571 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1573 2011-04-04 Tom Tromey <tromey@redhat.com>
1575 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1576 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1577 * symmisc.c (free_symtab): Don't free debugformat.
1578 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1579 (record_debugformat, record_producer): Document.
1580 * buildsym.c (end_symtab): Don't save debugformat and producer
1582 (end_symtab): Don't free debugformat and producer fields.
1583 (record_debugformat): Don't call xstrdup.
1584 (record_producer): Likewise.
1586 2011-04-04 Tom Tromey <tromey@redhat.com>
1588 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1589 (source_line_charpos, source_charpos_line): Remove.
1591 2011-04-04 Tom Tromey <tromey@redhat.com>
1593 * symtab.h (domain_enum): Split in two...
1594 (enum search_domain): New.
1595 (search_symbols): Update.
1596 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1597 redundant declarations.
1598 (search_symbols): Change 'kind' argument to search_domain.
1600 (print_symbol_info): Likewise.
1601 (symtab_symbol_info): Likewise.
1602 * symfile.h (struct quick_symbol_functions)
1603 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1604 <expand_symtabs_matching>: Likewise.
1605 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1606 (expand_symtabs_matching_via_partial): Update.
1607 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1608 (dw2_expand_symtabs_for_function): Update.
1609 * block.h: Moved anonymous enum...
1610 * defs.h (enum block_enum): ... here. Now named.
1612 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1614 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1615 * version.in: Bump version to 7.3.50.20110403-cvs.
1617 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1619 * NEWS: Create a new section for the next release branch.
1620 Rename the section of the current branch, now that it has
1623 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1625 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1626 for "fpscr" in target description.
1628 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1630 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1631 initialize it. Delay HASH initialization. Strip the part after open
1632 parenthesis for languages with qualifiers. Call do_cleanups.
1634 2011-04-01 Tom Tromey <tromey@redhat.com>
1636 * utils.c (report_command_stats): Don't print `-' for negative
1639 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1641 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1642 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1645 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1647 * breakpoint.h (bpdisp_text): Add declaration.
1648 * breakpoint.c (bpdisp_text): Make non-static.
1649 * ada-lang.c: #include "mi/mi-common.h".
1650 (print_it_exception): Rewrite to improve GDB/MI output.
1652 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1654 * arm-tdep.h (struct address_space): Add forward declaration.
1656 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1658 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1659 * arm-tdep.c (arm_override_mode): New global.
1660 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1661 execution mode heuristics.
1662 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1663 second single-step breakpoint if needed, using
1664 arm_insert_single_step_breakpoint.
1665 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1666 ARM execution mode, do not call thumb_get_next_pc_raw.
1667 (arm_get_next_pc): Encode execution mode in return value. Call
1668 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1669 (arm_insert_single_step_breakpoint): New function.
1670 (arm_software_single_step): Call it.
1671 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1672 argument to return execution mode of sigreturn target.
1673 (arm_linux_syscall_next_pc): Use it.
1674 (arm_linux_copy_svc): Update call.
1675 (arm_linux_software_single_step): Call
1676 arm_insert_single_step_breakpoint.
1678 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1680 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1683 2011-03-31 Tom Tromey <tromey@redhat.com>
1685 * varobj.c (update_dynamic_varobj_children): Properly handle
1686 errors from iterator.
1688 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1690 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1691 struct linkage name twice.
1693 2011-03-31 Tom Tromey <tromey@redhat.com>
1695 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1696 missing ">" to message.
1698 2011-03-31 Tom Tromey <tromey@redhat.com>
1700 * varobj.c (instantiate_pretty_printer): Remove duplicate
1703 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1705 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1706 if neither saved value nor register available (e.g. signal frame).
1708 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1710 * macroexp.c (expand): Avoid uninitialized variable
1713 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1715 * breakpoint.c (break_range_command): Fix typo in comment.
1717 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1718 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1720 Implement support for PowerPC BookE ranged breakpoints.
1721 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1722 * breakpoint.h (struct bp_target_info) <length>: New member
1724 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1725 instead of struct breakpoint as argument, and also add ASPACE
1726 and BP_ADDR arguments. Update all callers.
1727 (struct breakpoint_ops) <print_one_detail>: New method.
1728 (struct breakpoint) <addr_string_range_end>: New member variable.
1729 * breakpoint.c (breakpoint_location_address_match): Add function
1731 (insert_bp_location): Set bl->target_info.length.
1732 (breakpoint_here_p): Call breakpoint_location_address_match.
1733 (moribund_breakpoint_here_p): Likewise.
1734 (regular_breakpoint_inserted_here_p): Likewise.
1735 (breakpoint_thread_match): Likewise.
1736 (bpstat_stop_status): Likewise.
1737 (bpstat_check_location): Move call to
1738 breakpoint_ops.breakpoint_hit to the top.
1739 (print_one_breakpoint_location): Call
1740 breakpoint_ops.print_one_detail if available.
1741 (breakpoint_address_match_range): New function.
1742 (breakpoint_location_address_match): Likewise.
1743 (breakpoint_locations_match): Compare the length field of the
1745 (hw_breakpoint_used_count): Count resources used by all locations
1746 in a breakpoint, and use breakpoint_ops.resources_needed if
1748 (breakpoint_hit_ranged_breakpoint): New function.
1749 (resources_needed_ranged_breakpoint): Likewise.
1750 (print_it_ranged_breakpoint): Likewise.
1751 (print_one_ranged_breakpoint): Likewise.
1752 (print_one_detail_ranged_breakpoint): Likewise.
1753 (print_mention_ranged_breakpoint): Likewise.
1754 (print_recreate_ranged_breakpoint): Likewise.
1755 (ranged_breakpoint_ops): New structure.
1756 (find_breakpoint_range_end): New function.
1757 (break_range_command): Likewise.
1758 (delete_breakpoint): Free addr_string_range_end.
1759 (update_breakpoint_locations): Add SALS_END argument. Update
1760 all callers. Calculate breakpoint length if a non-zero SALS_END
1761 is given. Call breakpoint_locations_match instead of
1762 breakpoint_address_match.
1763 (reset_breakpoint): Find SaL of the end of the range if B is a
1765 (_initialize_breakpoint): Register break-range command.
1766 * defs.h (print_core_address): Add function prototype.
1767 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1769 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1770 (ppc_linux_remove_hw_breakpoint): Likewise.
1771 (_initialize_ppc_linux_nat): Initialize
1772 to_ranged_break_num_registers.
1773 * target.c (update_current_target): Add comment about
1774 to_ranged_break_num_registers.
1775 (target_ranged_break_num_registers): New function.
1776 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1778 (target_ranged_break_num_registers): Add function prototype.
1779 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1780 * utils.c (print_core_address): ... here.
1782 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1784 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1785 variable compiler warning.
1787 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1789 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1791 (re_set_breakpoint): ... to here ...
1792 (addr_string_to_sals): ... and here.
1794 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1796 * Makefile.in (SFILES): Add missing C sources.
1797 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1798 Add missing headers.
1800 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1802 * .gitignore: New file.
1804 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1806 * NEWS: Mention new cfi device simulation.
1808 2011-03-29 Tom Tromey <tromey@redhat.com>
1810 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1811 otherwise anonymous types.
1812 (dwarf2_name): Likewise.
1813 * valops.c (value_struct_elt_for_reference): Refine artificial
1814 type logic. Call error if j==-1.
1816 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1818 Fix false GCC warning.
1819 * infcall.c (find_function_addr): Initialize funaddr.
1821 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1823 Fix mingw compilation with --enable-targets=all.
1824 * remote-mips.c (gdb_usleep.h): Include header.
1825 (mips_enter_debug): Use gdb_usleep instead of sleep.
1827 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1829 Support resolution of STT_GNU_IFUNC via breakpoints.
1830 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1831 bp_gnu_ifunc_resolver_return.
1832 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1833 the loop. Support bp_gnu_ifunc_resolver and
1834 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1835 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1837 (bptype_string, print_one_breakpoint_location): Support
1838 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1839 (user_settable_breakpoint): Return true also for
1840 bp_gnu_ifunc_resolver.
1841 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1842 bp_gnu_ifunc_resolver_return.
1843 (set_breakpoint_location_function): New parameter explicit_loc,
1844 describe it. Call find_pc_partial_function_gnu_ifunc with new
1845 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1846 EXPLICIT_LOC is not set.
1847 (set_raw_breakpoint): Set EXPLICIT_LOC for
1848 set_breakpoint_location_function.
1849 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1850 set_breakpoint_location_function.
1851 (mention): Support bp_gnu_ifunc_resolver and
1852 bp_gnu_ifunc_resolver_return.
1853 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1854 set_breakpoint_location_function.
1855 (update_breakpoint_locations): Remove static.
1856 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1857 bp_gnu_ifunc_resolver_return.
1858 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1859 bp_gnu_ifunc_resolver_return.
1860 (update_breakpoint_locations): New declaration.
1861 * elfread.c: Include gdbthread.h and regcache.h.
1862 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1864 (elf_gnu_ifunc_fns): Install them.
1865 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1866 (stub_gnu_ifunc_resolver_return_stop): New functions.
1867 (stub_gnu_ifunc_fns): Install them.
1868 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1869 and gnu_ifunc_resolver_return_stop.
1870 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1872 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1874 STT_GNU_IFUNC reader implementation.
1875 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1876 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1877 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1878 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1879 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1880 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1881 (elf_gnu_ifunc_resolve_addr): New.
1882 (elf_symfile_read): Call elf_rel_plt_read.
1883 (elf_gnu_ifunc_fns): New.
1884 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1885 Install elf_gnu_ifunc_fns.
1886 * infcall.c (find_function_return_type): New function.
1887 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1888 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1889 (stub_gnu_ifunc_resolve_name): New functions.
1890 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1891 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1892 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1894 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1896 Code cleanup for later STT_GNU_IFUNC support.
1897 * infcall.c (find_function_addr): Remove variable code, use explicit
1898 dereferences for it. Move VALUE_TYPE initialization later.
1900 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1903 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1904 (clear_pc_function_cache): Clear it.
1905 (find_pc_partial_function): Rename to ...
1906 (find_pc_partial_function_gnu_ifunc): ... this function. New
1907 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1908 (find_pc_partial_function): New wrapper for this function.
1909 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1911 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1913 GDB internal type support for STT_GNU_IFUNC.
1914 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1915 (elf_symtab_read): Set mst_text_gnu_ifunc for
1916 BSF_GNU_INDIRECT_FUNCTION.
1917 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1918 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1919 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1920 nodebug_got_plt_symbol.
1921 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1922 (TYPE_GNU_IFUNC): New.
1923 (struct main_type): New field flag_gnu_ifunc.
1924 (struct builtin_type): New field builtin_func_func.
1925 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1926 nodebug_got_plt_symbol.
1927 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1928 (in_gnu_ifunc_stub): New.
1929 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1931 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1932 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1933 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1935 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1936 * symtab.c (search_symbols): Likewise.
1937 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1938 and mst_slot_got_plt.
1939 (in_gnu_ifunc_stub): New declaration.
1941 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 Support a ring of related breakpoints.
1944 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1945 other functions, add gdb_assert.
1946 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1947 watchpoint_del_at_next_stop.
1948 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1949 (bpstat_stop_status): Handle ring in related_breakpoint.
1950 (set_raw_breakpoint_without_location): Initialize ring in
1952 (delete_breakpoint): Handle ring in related_breakpoint, use
1953 watchpoint_del_at_next_stop.
1954 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1956 2011-03-28 Tom Tromey <tromey@redhat.com>
1959 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1960 with `language_minimal'.
1962 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1964 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1965 instead of checking for STT_ARM_TFUNC symbol type.
1967 2011-03-25 Tom Tromey <tromey@redhat.com>
1969 * linespec.c (symbol_found): Restore line-based result for
1970 non-LOC_LABEL symbols.
1972 2011-03-25 Kai Tietz <ktietz@redhat.com>
1974 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1975 instead of strcmp for comparison.
1976 (tui_source_is_displayed): Likewise.
1977 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1979 2011-03-24 Mark Wielaard <mjw@redhat.com>
1981 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1983 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1984 (find_partial_die_in_comp_unit): Likewise in comment.
1985 (read_attribute_value): Likewise.
1986 (lookup_die_type): Likewise.
1987 (dwarf_form_name): Likewise.
1988 (dump_die_shallow): Likewise.
1989 (follow_die_ref_or_sig): Likewise.
1991 2011-03-24 Tom Tromey <tromey@redhat.com>
1993 PR breakpoints/11816:
1994 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1995 (decode_compound): Update.
1996 (find_function_symbol): New function.
1997 (decode_dollar): Update.
1998 (decode_label): Add 'function_symbol' parameter. Handle
1999 function-relative labels.
2000 (decode_variable): Update.
2001 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2002 not its line. Set `special_display' and canonical name for
2005 2011-03-24 Tom Tromey <tromey@redhat.com>
2007 * linespec.h (struct linespec_result) <special_display>: New
2009 * breakpoint.h (struct breakpoint) <display_canonical>: New
2011 * breakpoint.c (print_breakpoint_location): Respect
2013 (create_breakpoint_sal): Add 'display_canonical' parameter.
2014 (create_breakpoints_sal): Update.
2015 (create_breakpoint): Update.
2017 2011-03-24 Tom Tromey <tromey@redhat.com>
2019 * symtab.c (decode_line_spec): Update.
2020 * linespec.c (build_canonical_line_spec): Change type of
2022 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2023 (find_method, decode_all_digits, decode_dollar, decode_label)
2024 (symbol_found): Likewise.
2025 (init_linespec_result): New function.
2026 * breakpoint.c (struct captured_parse_breakpoint_args)
2027 <canonical_p>: New field, replaces addr_string_p.
2028 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2030 (parse_breakpoint_sals): Likewise.
2031 (do_captured_parse_breakpoint): Update.
2032 (create_breakpoint): Use struct linespec_result.
2033 (until_break_command): Update.
2034 (breakpoint_re_set_one): Update.
2035 (decode_line_spec_1): Update.
2036 * linespec.h (struct linespec_result): New.
2037 (init_linespec_result): Declare.
2039 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2041 * regcache.c (regcache_raw_read): If the target didn't supply a
2042 given raw register, mark it as unavailable.
2044 2011-03-23 Kai Tietz <ktietz@redhat.com>
2046 * breakpoint.c (clear_command): Use filename_cmp
2047 instead of strcmp for comparison.
2048 * buildsym.c (watch_main_source_file_lossage): Likewise.
2049 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2050 checking just for slash.
2051 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2052 strrchr and filename_cmp instead of strcmp for filenames.
2053 (add_old_header_file): Use filename_cmp
2054 instead of strcmp for comparison.
2055 * exec.c (exec_set_section_address): Likewise.
2056 * macrotab.c (macro_lookup_inclusion): Likewise.
2057 (macro_lookup_inclusion): Likewise.
2058 * elfread.c (_initialize_elfread): Likewise.
2059 (elfstab_offset_sections): Likewise.
2060 (elfstab_offset_sections): Use lbasename instead of
2062 * mdebugread.c (parse_partial_symbols): Likewise.
2063 (arse_partial_symbols): Use filename_(n)cmp instead of
2064 str(n)cmp for comparison.
2065 * minsyms.c (lookup_minimal_symbol): Likewise.
2066 * psymtab.c (read_psymtabs_with_filename): Likewise.
2067 * solib.c (solib_read_symbols): Likewise.
2068 (reload_shared_libraries_1): Likewise.
2069 * symmisc.c (maintenance_print_symbols): Likewise.
2070 * symfile.c (separate_debug_file_exists): Likewise.
2071 (reread_symbols): Likewise.
2072 (find_separate_debug_file_by_debuglink): Likewise.
2073 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2074 * source.c (add_path): Likewise.
2075 * symtab.c (filename_seen): Likewise.
2076 (file_matches): Likewise.
2077 (print_symbol_info): Likewise.
2078 (maybe_add_partial_symtab_filename): Likewise.
2079 (make_source_files_completion_list): Likewise.
2080 * xml-syscall.c (init_sysinfo): Likewise.
2081 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2082 IS_DIR_SEPARATOR for checking for trailing path separator.
2084 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2087 label abort_expression.
2088 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2089 DWARF_VALUE_OPTIMIZED_OUT.
2091 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2095 to linkage_name. Invert its value. Update the function comment.
2096 (c_type_print_varspec_suffix): Invert it at the caller.
2097 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2099 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2101 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2102 errors when reading the `stop_pc'.
2103 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2106 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2108 * NEWS: Document gdb.Write stream keyword.
2110 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2113 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2114 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2115 (dwarf2_add_field): Fix new_field->accessibility for
2116 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2118 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2122 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2123 other error classes. Do not print stack trace.
2125 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2127 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2128 (dwarf2_add_field): Fix new_field->accessibility for
2129 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2131 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2133 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2134 encountering a load via a non-SP register.
2136 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2138 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2139 field in returned unwinder.
2141 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2145 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2147 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2150 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2152 * frame.c (frame_unwind_register): Throw an error if unwinding the
2154 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2155 an unwind stop reason.
2156 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2157 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2158 UNWIND_UNAVAILABLE>: New.
2159 * inline-frame.c (inline_frame_unwind): Install
2160 default_frame_unwind_stop_reason.
2161 * frame-unwind.c: Include "exceptions.h".
2162 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2163 (default_frame_unwind_stop_reason): New.
2164 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2165 (default_frame_unwind_stop_reason): Declare.
2166 (struct frame_unwind) <stop_reason>: New function pointer.
2168 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2169 * dwarf2-frame.c: Include exceptions.h.
2170 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2171 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2172 computing the CFA. If such an error was thrown, set
2173 unavailable_retaddr.
2174 (dwarf2_frame_unwind_stop_reason): New.
2175 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2177 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2178 (dwarf2_signal_frame_unwind): Ditto.
2180 * amd64-tdep.c: Include "exceptions.h".
2181 (struct amd64_frame_cache): New field "base_p".
2182 (amd64_init_frame_cache): Clear it.
2183 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2184 Avoid reading registers with functions that throw if the register
2185 is not necessary to compute the frame base.
2186 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2187 swallowing NOT_AVAILABLE_ERROR.
2188 (amd64_frame_unwind_stop_reason): New.
2189 (amd64_frame_this_id): Don't build a frame id if the frame base
2191 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2192 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2193 base_p if the frame base was computable.
2194 (amd64_sigtramp_frame_unwind_stop_reason): New.
2195 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2196 frame base was unavailable.
2197 (amd64_sigtramp_frame_unwind): Install
2198 amd64_sigtramp_frame_unwind_stop_reason.
2199 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2200 base_p if the frame base was computable.
2201 (amd64_epilogue_frame_unwind_stop_reason): New.
2202 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2203 frame base was unavailable.
2204 (amd64_epilogue_frame_unwind): Install
2205 amd64_epilogue_frame_unwind_stop_reason.
2206 * i386-tdep.c: Include "exceptions.h".
2207 (struct i386_frame_cache): New field "base_p".
2208 (i386_init_frame_cache): Clear it.
2209 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2210 Avoid reading registers with functions that throw if the register
2211 is not necessary to compute the frame base.
2212 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2213 swallowing NOT_AVAILABLE_ERROR.
2214 (i386_frame_unwind_stop_reason): New.
2215 (i386_frame_this_id): Don't build a frame id if the frame base was
2217 (i386_frame_prev_register): Handle unavailable SP.
2218 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2219 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2220 base_p if the frame base was computable.
2221 (i386_epilogue_frame_unwind_stop_reason): New.
2222 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2223 base was unavailable.
2224 (i386_epilogue_frame_unwind): Install
2225 i386_epilogue_frame_unwind_stop_reason.
2226 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2227 base_p if the frame base was computable.
2228 (i386_sigtramp_frame_unwind_stop_reason): New.
2229 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2230 base was unavailable.
2231 (i386_sigtramp_frame_unwind): Install
2232 i386_sigtramp_frame_unwind_stop_reason.
2233 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2234 type's size, not the register's.
2235 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2237 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2238 default_frame_unwind_stop_reason.
2239 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2240 (alpha_heuristic_frame_unwind): Ditto.
2241 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2242 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2243 * avr-tdep.c (avr_frame_unwind): Ditto.
2244 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2246 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2247 * frv-tdep.c (frv_frame_unwind): Ditto.
2248 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2249 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2250 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2251 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2252 (hppa_stub_frame_unwind): Ditto.
2253 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2254 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2255 (ia64_libunwind_frame_unwind)
2256 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2257 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2258 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2259 * m32c-tdep.c (m32c_unwind): Ditto.
2260 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2261 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2262 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2263 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2264 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2265 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2266 * mep-tdep.c (mep_frame_unwind): Ditto.
2267 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2268 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2269 (mips_stub_frame_unwind): Ditto.
2270 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2271 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2272 * mt-tdep.c (mt_frame_unwind): Ditto.
2273 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2274 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2275 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2276 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2277 (s390_sigtramp_frame_unwind): Ditto.
2278 * score-tdep.c (score_prologue_unwind): Ditto.
2279 * sh-tdep.c (sh_frame_unwind): Ditto.
2280 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2281 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2282 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2283 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2284 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2285 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2286 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2287 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2288 (sparc64obsd_trapframe_unwind): Ditto.
2289 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2290 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2291 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2292 * v850-tdep.c (v850_frame_unwind): Ditto.
2293 * vax-tdep.c (vax_frame_unwind): Ditto.
2294 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2295 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2296 * xtensa-tdep.c (xtensa_unwind): Ditto.
2298 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2300 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2301 there's always a frame. Use get_frame_pc_if_available instead of
2302 get_frame_pc, and if there's no PC available, don't look up a
2305 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2307 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2310 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2312 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2315 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2317 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2318 * frame.c (frame_unwind_caller_pc_if_available): New.
2319 * stack.c (frame_info): Handle unavailable PC.
2321 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2323 * frame.c (frame_unwind_pc): Rename to ...
2324 (frame_unwind_pc_if_available): ... this. New `pc' output
2325 parameter. Change return type to int. Gracefully handle
2326 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2327 happened, or 1 otherwise.
2328 (frame_unwind_pc): Reimplement on top of
2329 frame_unwind_pc_if_available.
2330 (get_frame_func): Rename to ...
2331 (get_frame_func_if_available): New `pc' output parameter. Change
2332 return type to int. Gracefully handle the PC not being available.
2333 (get_frame_func): Reimplement on top of
2334 get_frame_func_if_available.
2335 (select_frame): Handle the PC being unavailable.
2336 (get_prev_frame): Handle the PC being unavailable.
2337 (get_frame_pc_if_available): New.
2338 (get_frame_address_in_block_if_available): New.
2339 (find_frame_sal): Handle the frame PC not being available.
2340 * frame.h (get_frame_pc_if_available): Declare.
2341 (get_frame_address_in_block_if_available): Declare.
2342 (get_frame_func_if_available): Declare.
2343 * stack.c (print_frame_info): Handle the PC being unavailable.
2344 (find_frame_funname): Ditto.
2345 (print_frame): Handle the PC being unavailable.
2346 (get_frame_language): Ditto.
2347 * blockframe.c (get_frame_block): Ditto.
2348 * macroscope.c (default_macro_scope): Ditto.
2349 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2351 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2353 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2354 NOT_AVAILABLE_ERROR when evaluating the location expression.
2356 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2358 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2359 returning that the register piece is unavailable/optimized out.
2360 (write_pieced_value): Handle get_frame_register_bytes returning
2361 that the register piece is unavailable/optimized out when doing a
2362 read-modify write of a bitfield.
2363 * findvar.c (value_from_register): Handle get_frame_register_bytes
2364 returning that the register piece is unavailable/optimized out.
2365 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2366 and `unavailablep'. Throw error on bad debug info. Use
2367 frame_register instead of frame_register_read, to fill in the new
2369 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2371 * valops.c: (value_assign): Adjust, and handle
2372 get_frame_register_bytes failing.
2373 * spu-tdep.c: Include exceptions.h.
2374 (spu_software_single_step): Adjust, and handle
2375 get_frame_register_bytes failing.
2376 (spu_get_longjmp_target): Ditto.
2377 * gdbarch.sh (register_to_value): Change to return int. New
2378 parameters `optimizedp' and `unavailablep'.
2379 * gdbarch.h, gdbarch.c: Regenerate.
2380 * i386-tdep.c (i386_register_to_value): Adjust to new
2381 gdbarch_register_to_value interface.
2382 * i387-tdep.c (i387_register_to_value): Ditto.
2383 * i387-tdep.h (i387_register_to_value): Ditto.
2384 * alpha-tdep.c (alpha_register_to_value): Ditto.
2385 * ia64-tdep.c (ia64_register_to_value): Ditto.
2386 * m68k-tdep.c (m68k_register_to_value): Ditto.
2387 * mips-tdep.c (mips_register_to_value): Ditto.
2388 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2390 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2392 * findvar.c (value_of_register): Mark the value as unavailable, if
2393 the register is unavailable.
2394 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2395 (frame_register): New `unavailablep' parameter.
2396 (frame_register_read): Update comment.
2397 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2398 Set it if the register is unavailable. If the register is
2399 unavailable, clear the output buffer.
2400 (frame_register): New `unavailablep' parameter. Pass it down.
2401 (frame_unwind_register): Adjust.
2402 (put_frame_register): Adjust.
2403 (frame_register_read): Adjust. Also return false if the register
2405 (frame_register_unwind_location): Adjust.
2406 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2407 is unavailable, mark the value accordingly.
2408 * stack.c (frame_info): Handle unavailable registers.
2410 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2412 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2413 simplify, using regcache_cooked_read.
2415 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2417 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2418 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2419 (regcache_raw_read_unsigned, regcache_raw_read_part)
2420 (regcache_cooked_read, regcache_cooked_read_signed)
2421 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2422 (regcache_cooked_read_ftype): Change return to enum
2424 * regcache.c: Include exceptions.h
2425 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2426 (do_cooked_read): Change return to enum register_status. Always
2427 forward to regcache_cooked_read.
2428 (regcache_raw_read): Change return to enum register_status. If
2429 the register is not REG_VALID, memset the buffer. Return the
2431 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2432 return the register's status.
2433 (regcache_raw_read_unsigned): Ditto.
2434 (regcache_cooked_read): Change return to enum register_status.
2435 Assert that with read-only regcaches, the register's status must
2436 be known. If the regcache is read-only, and the register is not
2437 REG_VALID, memset the buffer. Return the register's status.
2438 (regcache_cooked_read_signed): Change return to enum
2439 register_status. Handle non-REG_VALID registers and return the
2441 (regcache_cooked_read_unsigned): Change return to enum
2442 register_status. Handle non-REG_VALID registers and return the
2444 (regcache_xfer_part, regcache_raw_read_part)
2445 (regcache_cooked_read_part): Change return to enum
2446 register_status. Return the register's status.
2447 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2449 (regcache_dump): Handle unavailable cooked registers.
2450 * frame.c (do_frame_register_read): Adjust interface to match
2451 regcache_cooked_read_ftype.
2452 * gdbarch.sh (pseudo_register_read): Change return to enum
2454 * gdbarch.h, gdbarch.c: Regenerate.
2456 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2458 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2459 register_status. If reading a raw register indicates the raw
2460 register is not valid, return the raw register's status,
2461 otherwise, return REG_VALID.
2462 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2463 register_status. Handle non-REG_VALID raw registers and return
2464 the register's status.
2465 * arm-tdep.c (arm_neon_quad_read)
2466 (arm_pseudo_read): Change return to enum register_status. Handle
2467 non-REG_VALID raw registers and return the register's status.
2468 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2469 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2470 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2471 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2472 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2474 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2475 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2476 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2477 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2478 (m32c_pseudo_register_read): Change return to enum
2479 register_status. Adjust.
2480 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2481 enum register_status. Return the register's status.
2482 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2483 register_status. Return the register's status.
2484 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2485 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2486 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2487 * rs6000-tdep.c (move_ev_register_func): New typedef.
2488 (e500_move_ev_register): Use it. Change return to enum
2489 register_status. Return the register's status.
2490 (do_regcache_raw_read): New function.
2491 (do_regcache_raw_write): New function.
2492 (e500_pseudo_register_read): Change return to enum
2493 register_status. Return the register's status. Use
2494 do_regcache_raw_read.
2495 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2496 (dfp_pseudo_register_read): Change return to enum register_status.
2497 Return the register's status.
2498 (vsx_pseudo_register_read): Ditto.
2499 (efpr_pseudo_register_read): Ditto.
2500 (rs6000_pseudo_register_read): Ditto.
2501 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2502 register_status. Return the register's status.
2503 * sh64-tdep.c (pseudo_register_read_portions): New function.
2504 (sh64_pseudo_register_read): Change return to enum
2505 register_status. Use pseudo_register_read_portions. Return the
2507 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2508 register_status. Return the register's status.
2509 * sh-tdep.c (pseudo_register_read_portions): New function.
2510 (sh_pseudo_register_read): Change return to enum register_status.
2511 Use pseudo_register_read_portions. Return the register's status.
2512 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2513 enum register_status. Return the register's status.
2514 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2515 * spu-tdep.c (spu_pseudo_register_read_spu)
2516 (spu_pseudo_register_read): Ditto.
2517 * xtensa-tdep.c (xtensa_register_read_masked)
2518 (xtensa_pseudo_register_read): Ditto.
2519 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2521 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2523 * python/py-value.c (valpy_getitem): Fix formatting of error function
2526 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2528 ARI fixes: Add missing internationalization markups throughout
2530 * darwin-nat-info.c: Ditto.
2533 * mi/mi-main.c: Ditto.
2535 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2537 ARI fixes: Add missing internationalization markups throughout
2540 * cp-name-parser.y: Ditto.
2543 * objc-exp.y: Ditto.
2546 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2548 ARI fixes: Messages should have no trailing new lines.
2549 * darwin-nat.c (mach_check_error): Remove trailing new line from
2550 warning function call message.
2551 * record.c (bfdcore_read): Idem for error call.
2553 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2555 * common/signals.c (target_signal_from_host): Add _ markup to error
2556 function call message.
2557 (target_signal_to_host): Add _ markup and remove trailing new line
2558 from warning call message.
2559 (target_signal_from_command): Add _ markup to error function call
2562 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2566 * python/python.c (gdbpy_write): Accept a stream argument and
2567 operate to the appropriate stream.
2568 (gdbpy_flush): Likewise.
2569 (_initialize_python): Add stream constants.
2570 (finish_python_initialization): Add GdbOutputErrorFile class.
2572 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2574 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2576 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2578 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2579 to store_signed_integer. Add debug message when relocating CALL
2580 instructions. Fix formatting of debug message.
2581 * i386-tdep.c (i386_relocate_instruction): Ditto.
2583 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2585 * target.h (struct target_ops): Remove to_lookup_symbol field.
2586 (target_lookup_symbol): Delete macro.
2587 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2588 (update_current_target, setup_target_debug): Remove handling
2589 of to_lookup_symbol target_ops field.
2590 * ada-tasks.c (get_known_tasks_addr): Remove use of
2591 target_lookup_symbol.
2592 * coffread.c (coff_symtab_read): Likewise.
2593 * dbxread.c (read_dbx_symtab): Ditto.
2595 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2598 * configure.ac: Add getthrds declaration check.
2599 * configure, config.in: Regenerate.
2600 * aix-thread.c (getthrds): Declare only if not already declared
2601 in procinfo.h. More declaration out of get_signaled_thread to
2604 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2606 * python/py-symtab.c: Populate symtab_object_methods,
2608 (stpy_is_valid): New function.
2609 (salpy_is_valid): Ditto.
2610 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2611 (sympy_is_valid): New function.
2612 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2613 (objfpy_is_valid): New function.
2614 * python/py-inferior.c: Populate inferior_object_methods.
2615 (infpy_is_valid): New function.
2616 * python/py-infthread.c: Populate thread_object_methods.
2617 (thpy_is_valid): New function.
2618 * python/py-block.c: Declare block_object_methods. Populate. Declare
2619 block_iterator_object_methods. Populate.
2620 (blpy_is_valid): New function.
2621 (blpy_iter_is_valid): Ditto.
2623 2011-03-16 Keith Seitz <keiths@redhat.com>
2625 * linespec.c (find_methods): Canonicalize NAME before looking
2627 (name_end): New function.
2628 (keep_name_info): New function.
2629 (decode_line_1): Use keep_name_info.
2630 (decode_compound): Likewise.
2631 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2632 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2635 * linespec.c (locate_first_half): Keep overload information, too.
2636 (decode_compound): Use a string to represent break characters
2638 If P points to a break character, do not increment it.
2639 For C++ and Java, keep overload information and relevant keywords.
2640 If we cannot find a symbol, search the minimal symbols.
2643 * linespec.c (decode_compound): Rename SAVED_ARG to
2645 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2647 Pass a valid block to lookup_symbol.
2648 (lookup_prefix_sym): Likewise.
2649 (find_method): Construct search name based on SYM_CLASS instead
2651 * psymtab.c (lookup_partial_symbol): Add language parameter.
2652 (lookup_symbol_aux_psymtabs): Likewise.
2653 Don't assume that the psymtab we found was the right one. Search
2654 for the desired symbol in the symtab to be certain.
2655 (psymtab_search_name): New function.
2656 (lookup_partial_symbol): Use psymtab_search_name.
2657 Add language parameter.
2658 (read_symtabs_for_function): Add language parameter and pass to
2659 lookup_partial_symbol.
2660 (find_symbol_file_from_partial): Likewise.
2662 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2665 * dwarf2read.c (noop_record_line): New function.
2666 (dwarf_decode_lines): Ignore line tables for GCd functions.
2668 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2670 Fix ARI warnings about new lines at the end of messages, which
2671 are unneeded as there is a new line added at the end of the message
2673 * darwin-nat.c (darwin_stop_inferior): Ditto.
2674 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2675 * dfp.c (decimal_to_number): Ditto.
2676 * exec.c (print_section_info): Ditto.
2677 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2678 * osdata.c (get_osdata): Ditto.
2679 * record.c (bfdcore_write): Ditto.
2680 * remote-mips.c (mips_readchar): Ditto.
2681 * remote.c (read_ptid): Ditto.
2682 * ser-mingw.c (ser_windows_raw): Ditto.
2683 * tracepoint.c (add_local_symbols): Ditto.
2684 * windows-nat.c (fake_create_process): Ditto.
2686 2011-03-16 Tom Tromey <tromey@redhat.com>
2688 * tracepoint.c (stop_tracing): Don't declare.
2689 * event-top.c (after_char_processing_hook): Add `(void)'.
2691 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2693 * NEWS: Add Parameter sub-classing description.
2695 2011-03-16 Kai Tietz <ktietz@redhat.com>
2697 * MAINTAINERS: Update my e-mail address.
2699 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2701 * MAINTAINERS: Add myself for write after approval privileges.
2703 2011-03-15 Michael Snyder <msnyder@vmware.com>
2705 * frame.c (find_frame_sal): Assert sym is not null.
2707 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2709 * objc-lang.c (selectors_info): Check strchr for null result.
2711 * stabsread.c (define_symbol): Guard against bad stabstring input.
2713 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2715 Remove trailing spaces and tabulations from pascal language
2720 p-valprint.c: Ditto.
2722 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2724 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2725 than LOW. Comment it.
2726 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2727 HIGHPC not strictly higher than LOWPC.
2729 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2731 Fix formatting of function declarations returning a pointer in
2733 * varobj.c (varobj_add_child): Ditto.
2734 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2735 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2737 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2739 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2740 for the "generic" vector ABI used with GCC 4.3 and later.
2741 (ppc64_sysv_abi_return_value): Likewise.
2743 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2745 * infcall.c (call_function_by_hand): Function return value is
2746 always a non_lval, even when using struct_return.
2748 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2750 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2751 (map_display_numbers): New.
2752 (do_delete_display): New.
2753 (undisplay_command): Use map_display_numbers.
2754 (do_enable_disable_display): New.
2755 (enable_disable_display_command): New function.
2756 (enable_display): Delete.
2757 (enable_display_command): New.
2758 (disable_display_command): Reimplement.
2759 (_initialize_printcmd): Adjust "enable display" command to use
2760 `enable_display_command' as callback.
2762 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2764 * NEWS: Add Python breakpoint 'stop' operation.
2766 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2768 * NEWS: Delete duplicate entry. Fix typo.
2770 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2772 Fix ARI warning about function names in first column.
2773 Put prototype declaration on same line as return type.
2774 * objc-exp.y: Ditto.
2776 * python/py-stopevent.h: Ditto.
2777 For long function names, split parameters to
2778 allow function name on same line as return type.
2779 * solib-pa64.c: Ditto.
2782 For long function declaration, use single line.
2783 * hppa-tdep.h: Ditto.
2784 * inferior.h: Ditto.
2786 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2788 * python/python.h: Declare gdbpy_should_stop and
2789 gdbpy_breakpoint_has_py_cond.
2790 * python/python.c: Add python.h to includes. Remove python.h from
2791 HAVE_PYTHON definition
2792 (gdbpy_should_stop): New dummy function.
2793 (gdbpy_breakpoint_has_py_cond): New dummy function.
2794 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2795 sub-classing capabilities.
2796 (gdbpy_should_stop): New function.
2797 (gdbpy_breakpoint_has_py_cond): New function.
2798 (local_setattro): New function.
2799 * breakpoint.c (condition_command): Add check for Python 'stop'
2801 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2802 operation function as part of stop/continue tests.
2804 2011-03-14 Tom Tromey <tromey@redhat.com>
2807 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2808 (needs_frame_dwarf_call): Likewise.
2810 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2812 Fix ARI warning about functions without parameters that do not
2814 * breakpoint.c (all_tracepoints): Replace () by (void).
2815 * f-exp.y (match_string_literal): Ditto.
2817 * m2-exp.y (yylex): Ditto.
2818 * mep-tdep.c (current_me_module): Ditto.
2819 (current_options): Ditto.
2820 (current_cop_data_bus_width): Ditto.
2821 (current_cr_names): Ditto.
2822 (current_cr_is_float): Ditto.
2823 (current_ccr_names): Ditto.
2824 * objc-exp.y (yylex): Ditto.
2825 * p-exp.y (yylex): Ditto.
2826 * remote.c (send_interrupt_sequence): Ditto.
2827 * tracepoint.c (current_trace_status): Ditto.
2828 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2829 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2831 2011-03-11 Michael Snyder <msnyder@vmware.com>
2833 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2834 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2835 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2836 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2837 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2839 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2840 (delete_async_event_handler): Ditto.
2842 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2844 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2846 * top.c (set_verbose): Assert showcmd was found.
2848 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2850 * xtensa-tdep.c (warning_once): Correct style issues.
2852 2011-03-11 Yao Qi <yao@codesourcery.com>
2854 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2856 2011-03-11 Andreas Schwab <schwab@redhat.com>
2858 * common/aclocal.m4: Remove.
2860 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2862 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2863 (xtensa_write_register, xtensa_read_register): Likewise.
2864 (xtensa_hextochar): Removed.
2865 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2867 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2869 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2870 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2871 (xtensa_alloc_frame_cache): Add initialization for new fields.
2872 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2873 (warning_once): New function.
2874 (xtensa_insn_kind): New item c0opc_and.
2875 (call0_classify_opcode): Add the case for AND instruction.
2876 (call0_track_op): Change arguments. New local variable litbase.
2877 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2878 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2880 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2881 (call0_analyze_prologue): Update the comments. Change arguments.
2882 Add the variety of updates to handle extended prologues, which now can
2883 conduct dynamic stack adjustments.
2884 (call0_frame_cache): Likewise.
2885 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2886 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2888 2011-03-10 Michael Snyder <msnyder@vmware.com>
2890 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2891 (cmd_qtframe): Ditto.
2892 (cmd_qtbuffer): Ditto.
2893 (cmd_bigqtbuffer): Ditto.
2895 2011-03-10 Tom Tromey <tromey@redhat.com>
2897 * tracepoint.c (trace_actions_command): Update.
2898 * thread.c (thread_apply_command): Update.
2899 * reverse.c (delete_bookmark_command): Update.
2900 (bookmarks_info): Update.
2901 * printcmd.c (undisplay_command): Update.
2902 * memattr.c (mem_enable_command): Update.
2903 (mem_disable_command): Update.
2904 (mem_delete_command): Update.
2905 * inferior.c (detach_inferior_command): Update.
2906 (kill_inferior_command): Update.
2907 (remove_inferior_command): Update.
2908 * cli/cli-utils.h (struct get_number_or_range_state): New.
2909 (init_number_or_range): Declare.
2910 (get_number_or_range): Update.
2911 * cli/cli-utils.c (init_number_or_range): New function.
2912 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2914 (number_is_in_list): Update.
2915 * breakpoint.h (get_tracepoint_by_number): Update.
2916 * breakpoint.c (map_breakpoint_numbers): Update for change to
2917 get_number_or_range.
2918 (find_location_by_number): Use get_number, not
2919 get_number_or_range.
2920 (trace_pass_set_count): New function.
2921 (trace_pass_command): Update for change to get_number_or_range.
2923 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2926 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2928 * python/py-param.c (add_setshow_generic): Add set/show callback
2929 parameters. Register Python object context.
2930 (get_show_value): New function.
2931 (get_set_value): New function.
2932 (call_doc_function): New function.
2933 (get_doc_string): Move behind get_show_value/get_set_value.
2935 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2937 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2939 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2941 * xtensa-tdep.c (xtensa_read_register): Add comment.
2942 (xtensa_write_register): Likewise.
2943 (xtensa_hextochar): Add comment and update to match coding conventions.
2944 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2945 (execute_l32e, execute_s32e, execute_code): Update comments.
2946 (xtensa_exception_handler_t): Update to match coding conventions.
2947 (xtensa_insn_kind): Likewise.
2949 2011-03-09 Michael Snyder <msnyder@vmware.com>
2951 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2953 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2955 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2957 2011-03-09 Tom Tromey <tromey@redhat.com>
2959 * thread.c (restore_selected_frame): Handle frame_level == -1.
2960 (make_cleanup_restore_current_thread): Use
2961 get_selected_frame_if_set.
2962 * frame.h (get_selected_frame_if_set): Declare.
2963 * frame.c (get_selected_frame_if_set): New function.
2965 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2967 * cli/cli-cmds.c (shell_escape): Use lbasename.
2968 * coffread.c (coff_start_symtab): Constify parameter.
2969 (complete_symtab): Constify `name' parameter.
2970 (coff_symtab_read): Constify `filestring' local.
2971 (coff_getfilename): Constify return and `result' local.
2973 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2974 * linux-fork.c (info_checkpoints_command): Use lbasename.
2975 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2976 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2977 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2978 * procfs.c (procfs_make_note_section): Use lbasename.
2979 * tui/tui-io.c (printable_part): Constity return and parameter.
2981 (print_filename): Constify parameters, and local `s'.
2982 (tui_rl_display_match_list): Constify local `temp'.
2984 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2988 Fix DWARF-3+ DW_AT_accessibility default assumption.
2989 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2990 cu->header.version >= 3.
2992 2011-03-09 Yao Qi <yao@codesourcery.com>
2994 * common/Makefile.in: Remove.
2995 * common/configure: Remove.
2996 * common/configure.ac: Remove.
2998 2011-03-09 Yao Qi <yao@codesourcery.com>
3001 2011-02-11 Yao Qi <yao@codesourcery.com>
3003 * common/Makefile.in: Add copyright header.
3005 2011-02-11 Yao Qi <yao@codesourcery.com>
3007 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3009 * configure.ac: Add common to sub dir.
3010 * configure: Regenerate.
3012 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3014 * xtensa-tdep.c (call0_ret): New function.
3015 (xtensa_skip_prologue): Speed up analysis.
3017 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3019 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3020 while executing MI command -data-list-changed-registers.
3022 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3024 * xtensa-tdep.c (xtensa_read_register): New function.
3025 (xtensa_write_register): New function.
3026 (xtensa_find_register_by_name): New function.
3027 (xtensa_windowed_frame_cache): Update comments in type description.
3028 (xtensa_frame_cache): Likewise.
3029 (xtensa_window_interrupt_insn): New function.
3030 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3031 (xtensa_insn_kind): Add new instructions.
3032 (rwx_special_register): New function.
3033 (call0_classify_opcode): Add new instructions to the analysis.
3034 (a0_saved, a7_saved, a11_saved): New variables.
3035 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3036 (execute_l32e): New function.
3037 (execute_s32e): New function.
3038 (xtensa_exception_handler_t): New type.
3039 (execute_code): New function.
3040 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3041 analysis for Xtensa Window Exception handlers.
3043 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3045 * xtensa-tdep.c (TX_PS): New.
3046 (windowing_enabled): Update to count for Call0 ABI.
3047 (xtensa_hextochar): New.
3048 (xtensa_init_reggroups): Make algorithm generic.
3049 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3051 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3053 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3055 2011-03-08 Michael Snyder <msnyder@vmware.com>
3057 * i386-tdep.c (i386_follow_jump): Check return value of
3059 (i386_analyze_struct_return): Ditto.
3060 (i386_skip_probe): Ditto.
3061 (i386_match_insn): Ditto.
3062 (i386_skip_noop): Ditto.
3063 (i386_analyze_frame_setup): Ditto.
3064 (i386_analyze_register_saves): Ditto.
3065 (i386_skip_prologue): Ditto.
3066 (i386_skip_main_prologue): Ditto.
3068 * target.c (read_whatever_is_readable): Fix memory leak.
3070 * i386-tdep.c (i386_process_record): Document fall through.
3072 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3074 Fix DWARF-3+ DW_AT_accessibility default assumption.
3075 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3076 cu->header.version >= 3.
3078 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3080 * remote.c (remote_check_symbols): Skip if the target has no
3083 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3085 * target.c (read_whatever_is_readable): Reformat comment,
3086 with a minor typo fix. Minor reformatting of the code.
3088 2011-03-08 Yao Qi <yao@codesourcery.com>
3090 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3091 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3092 Use cached result instead of calling displaced_in_arm_mode again.
3093 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3094 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3095 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3096 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3097 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3098 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3099 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3100 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3101 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3102 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3103 (arm_catch_kernel_helper_return): Likewise.
3104 * gdb/arm-tdep.h : Update function declarations.
3106 2011-03-07 Michael Snyder <msnyder@vmware.com>
3108 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3110 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3112 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3114 * elfread.c (elf_symtab_read): Stop memory leak.
3116 * main.c (captured_main): Fix memory leak.
3118 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3120 * ada-lang.c (compare_names): Call is_name_suffix with string1
3123 2011-03-07 Tom Tromey <tromey@redhat.com>
3125 * xcoffread.c (xcoff_sym_fns): Update.
3126 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3127 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3128 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3129 (symbol_file_add_with_addrs_or_offsets): Likewise.
3130 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3131 * somread.c (som_sym_fns): Update.
3132 * psymtab.h (require_partial_symbols): Declare.
3133 * psymtab.c (require_partial_symbols): New function.
3134 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3135 (ALL_OBJFILE_PSYMTABS): Undef.
3136 (ALL_PSYMTABS): Move from psympriv.h.
3137 (lookup_partial_symtab, find_pc_sect_psymtab)
3138 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3139 (find_last_source_symtab_from_partial)
3140 (forget_cached_source_info_partial)
3141 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3142 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3143 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3144 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3145 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3146 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3147 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3148 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3149 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3151 * mipsread.c (ecoff_sym_fns): Update.
3152 * machoread.c (macho_sym_fns): Update.
3153 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3154 (read_psyms): New function.
3155 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3156 (elf_sym_fns_lazy_psyms): New global.
3157 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3158 dwarf2_build_psymtabs.
3159 * dbxread.c (aout_sym_fns): Update.
3160 * coffread.c (coff_sym_fns): Update.
3162 2011-03-07 Tom Tromey <tromey@redhat.com>
3164 * infrun.c (print_exited_reason): Include inferior id and pid in
3167 2011-03-07 Tom Tromey <tromey@redhat.com>
3169 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3171 (target_has_execution_1): Update.
3172 (target_has_execution_current): Declare.
3173 (target_has_execution): Call target_has_execution_current.
3174 (default_child_has_execution): Update.
3175 * target.c (default_child_has_execution): Add 'the_ptid'
3177 (target_has_execution_1): Likewise.
3178 (target_has_execution_current): New function.
3179 (add_target): Update.
3180 (init_dummy_target): Update.
3181 * remote-m32r-sdi.c (m32r_has_execution): New function.
3182 (init_m32r_ops): Use it.
3183 * record.c (record_core_has_execution): Now static. Add
3184 'the_ptid' parameter.
3185 * inferior.c (have_live_inferiors): Don't save current thread.
3186 Use target_has_execution_1.
3188 2011-03-07 Yao Qi <yao@codesourcery.com>
3190 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3192 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3194 * elfread.c (elf_symtab_read): Minor reformatting.
3196 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3198 * objc-lang.c (selectors_info): Minor reformatting.
3200 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3202 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3204 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3205 Michael Snyder <msnyder@vmware.com>
3207 * ada-valprint.c (ada_val_print_array): Move the declaration of
3208 "byte_order" and "elttype" inside the block where these variables
3209 are actually used. Remove some special handling for the case
3210 where "elttype" and "eltlen" are null. Replace by a comment
3211 and a couple of assertion checks.
3213 2011-03-05 Michael Snyder <msnyder@vmware.com>
3215 * source.c (add_path): Replace semicolon at end of block.
3216 * dwarf2expr.c (execute_stack_op): Ditto.
3218 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3220 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3221 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3222 (bfin-*-*): Likewise.
3224 2011-03-05 Michael Snyder <msnyder@vmware.com>
3226 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3227 * mdebugread.c (parse_symbol): Ditto.
3228 * parse.c (parse_exp_in_context): Ditto.
3229 * source.c (add_path): Ditto.
3230 * utils.c (gnu_debuglink_crc32): Ditto.
3231 * varobj.c (variable_language): Ditto.
3233 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3235 2011-03-04 Michael Snyder <msnyder@vmware.com>
3237 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3239 * symfile.c (simple_overlay_update): Check for null return value
3240 from lookup_minimal_symbol.
3242 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3244 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3246 * eval.c (parse_and_eval_address_1): Remove function.
3247 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3248 instead of parse_and_eval_address_1.
3249 * value.h (parse_and_eval_address_1): Remove prototype.
3251 2011-03-04 Michael Snyder <msnyder@vmware.com>
3253 * remote.c (putpkt_binary): Document that case stmt falls through.
3255 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3257 * breakpointc (print_it_typical): Move NULL check from here...
3258 (print_bp_stop_message): ... to here.
3260 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3262 * breakpoint.c (enable_command): Use break instead of continue,
3263 and fill in a missing break.
3264 (disable_command): Ditto.
3266 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3268 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3269 (terminal_save_ours): Remove misleading comment.
3270 (inflow_inferior_data_cleanup): Free ttystate.
3271 (inflow_inferior_exit): Likewise.
3272 (copy_terminal_info): Copy ttystate.
3274 * serial.c (serial_copy_tty_state): New function.
3275 * serial.h (serial_copy_tty_state): Add prototype.
3276 (struct serial_ops): Add copy_tty_state callback.
3277 * ser-base.c (ser_base_copy_tty_state): New function.
3278 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3279 * ser-go32.c (dos_copy_tty_state): New function.
3280 (dos_ops): Install copy_tty_state callback.
3281 * ser-mingw.c (_initialize_ser_windows): Likewise.
3282 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3283 * ser-unix.c (hardwire_copy_tty_state): New function.
3284 (_initialize_ser_hardwire): Install it.
3286 2011-03-04 Michael Snyder <msnyder@vmware.com>
3288 * breakpoint.c (create_breakpoint): Add missing break statement.
3290 Reverting this patch:
3291 * infcall.c (call_function_by_hand): Add break statements for lint.
3293 Reverting this patch:
3294 * cli/cli-script.c (script_from_file): Add break for lint.
3296 2011-03-04 Michael Snyder <msnyder@vmware.com>
3298 * solib.c (reload_shared_libraries_1): Close memory leak.
3300 2011-03-03 Tom Tromey <tromey@redhat.com>
3303 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3306 2011-03-03 Michael Snyder <msnyder@vmware.com>
3308 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3309 fields of struct 'st' to zero.
3311 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3312 sal.pspace before calling set_current_source_symtab_and_line.
3314 2011-03-03 Yao Qi <yao@codesourcery.com>
3316 * Makefile.in (configure-common): Remove. Let Makefile
3317 in dir common to rebuild itself.
3318 (common/Makefile): Likewise.
3320 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3322 * utils.c (parse_escape): Add i18n markup in error message.
3324 2011-03-03 Yao Qi <yao@codesourcery.com>
3326 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3328 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3329 (displaced_write_reg, displaced_read_reg): Likewise.
3330 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3331 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3332 (cleanup_branch): Replace magic number 14 and 15 with
3333 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3335 2011-03-02 Michael Snyder <msnyder@vmware.com>
3337 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3339 * cli/cli-script.c (script_from_file): Add break for lint.
3341 * mdebugread.c (parse_partial_symbols): Fix indent.
3343 * target-descriptions.c (tdesc_gdb_type): No need to call
3344 xstrdup, callee saves a copy.
3346 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3348 * infcall.c (call_function_by_hand): Add break statements for lint.
3350 * utils.c (parse_escape): Escape the escape char.
3352 * python/py-inferior.c (build_inferior_list): Error out if
3353 PyList_Append fails.
3354 (gdbpy_inferiors): Error out if build_inferior_list fails.
3356 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3359 * record.c (record_restore): Move printf to before error return.
3361 2011-03-02 Yao Qi <yao@codesourcery.com>
3363 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3364 is_thumb and insn_size.
3365 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3366 on both ARM and Thumb mode.
3367 (arm_process_displaced_insn): Set is_thumb and insn_size.
3368 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3369 (arm_displaced_step_fixup): Likewise.
3371 2011-03-01 Michael Snyder <msnyder@vmware.com>
3373 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3375 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3377 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3379 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3381 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3384 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3385 which shadows function parameter.
3387 * tracepoint.c (create_tsv_from_upload): Superfluous call
3388 to xstrdup. Callee already calls xstrdup.
3390 * linespec.c (decode_line_1): Remove unnecessary null check.
3392 * tracepoint.c (scope_info): Fix mem leak, remove underused
3395 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3396 superfluous null check.
3398 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3399 (value_of_builtin_frame_fp_reg): Ditto.
3401 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3403 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3406 * linespec.c (decode_line_1): Check for null before dereference.
3408 * reverse.c (record_restore): Move null-check to before pointer
3411 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3413 * objc-lang.c (selectors_info): Add explanitory comment.
3414 (classes_info): Ditto.
3416 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3418 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3419 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3420 versions of the trampoline. Handle Thumb vs. ARM addresses.
3421 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3422 (arm_linux_init_abi): Install it.
3423 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3424 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3426 2011-02-28 Michael Snyder <msnyder@vmware.com>
3428 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3429 a little bigger, to avoid possibility of an overflow.
3431 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3432 buffers a little bigger, to avoid possibility of an overflow.
3434 * coffread.c (coff_getfilename): Add check to avoid overflow.
3436 * objc-lang.c (selectors_info): Add a small safety margin to
3438 (classes_info): Error out on too long REGEXP.
3440 * infrun.c (handle_inferior_event): Remove unused function call.
3442 * fork-child.c (fork_inferior): Remove ifdef'd code and
3445 * linux-thread-db.c (attach_thread): Discard unused value.
3447 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3449 * remote.c (remote_get_noisy_reply): Discard unused value.
3450 (remote_vcont_resume): Ditto.
3451 (remote_stop_ns): Ditto.
3453 * linespec.c (decode_objc): Delete unused variable.
3455 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3457 * dwarf2read.c (add_partial_symbol): Discard unused values.
3458 (read_base_type): Delete unused variable.
3460 * dbxread.c (read_dbx_symtab): Discard unused value.
3462 * eval.c (evaluate_subexp_standard): Delete unused variable,
3463 and discard unused values.
3465 * infcmd.c (_initialize_infcmd): Discard unused values.
3467 * stabsread.c (rs6000_builtin_type): Missing break statement.
3469 * dbxread.c (process_one_symbol): Discard unused value.
3471 * coffread.c (coff_end_symtab): Delete unused variable.
3473 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3474 (dwarf2_add_typedef): Delete unused variable.
3475 (read_namespace): Ditto.
3476 (dwarf_decode_macros): Ditto.
3478 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3480 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3482 * p-valprint.c (pascal_val_print): Discard unused value.
3484 * utils.c (nquery): Call va_end before return;
3488 * proc-service.c (ps_plog): Call va_end before return.
3490 2011-02-28 Tom Tromey <tromey@redhat.com>
3492 * python/python.c (gdbpy_value_cst): New global.
3493 (_initialize_python): Initialize it.
3494 * python/python-internal.h (gdbpy_value_cst): Declare.
3495 * python/py-value.c (convert_value_from_python): Use
3498 2011-02-28 Michael Snyder <msnyder@vmware.com>
3500 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3502 * breakpoint.c (catch_syscall_completer): Free malloced list.
3504 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3506 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3507 (lval_func_check_synthetic_pointer): Ditto.
3508 (lval_func_free_closure): Fix use-after-free.
3510 2011-02-28 Tom Tromey <tromey@redhat.com>
3512 * psymtab.c (expand_partial_symbol_tables): Use
3513 ALL_OBJFILE_PSYMTABS.
3515 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3517 * objc-lang.c (selectors_info): Error on too long REGEXP.
3519 2011-02-28 Michael Snyder <msnyder@vmware.com>
3521 * python/py-param.c (set_parameter_value): Add missing
3524 * linux-record.c (record_linux_system_call): Add missing
3527 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3529 * breakpoint.c (print_one_breakpoint_location): Remove unused
3530 argument PRINT_ADDRESS_BITS. Update callers.
3531 (print_one_breakpoint): Likewise.
3533 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3535 * breakpoint.c (wrap_indent_at_field): New function.
3536 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3537 Allocate ui_stream locally instead of using STB argument.
3538 (print_one_breakpoint_location): Update call.
3539 * ui-out.c (ui_out_query_field): New function.
3540 * ui-out.h (ui_out_query_field): Add prototype.
3542 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3544 From Michael Snyder <msnyder@vmware.com>
3545 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3547 2011-02-27 Michael Snyder <msnyder@vmware.com>
3549 * objc-lang.c (selectors_info): Prevent string overrun.
3551 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3554 * symtab.c (rbreak_command): Move variable 'file_name' to
3557 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3558 param with a local variable of the same name.
3560 2011-02-27 Michael Snyder <msnyder@vmware.com>
3562 * value.c (value_from_history_ref): New function.
3563 * value.h (value_from_history_ref): Export.
3564 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3565 to parse value history references.
3566 * cli/cli-utils.h (get_number_trailer): Update comment.
3568 2011-02-27 Michael Snyder <msnyder@vmware.com>
3570 * inferior.c (detach_inferior_command): Use get_number_or_range.
3571 (kill_inferior_command): Ditto.
3572 (remove_inferior_command): Ditto.
3573 (initialize_inferiors): Make command names plural.
3574 Update help strings.
3576 2011-02-27 Michael Snyder <msnyder@vmware.com>
3578 * darwin-nat-info.c: Fix comment typo.
3579 * dwarf2expr.h: Ditto.
3580 * fbsd-nat.c: Ditto.
3581 * fbsd-nat.h: Ditto.
3582 * frame-unwind.h: Ditto.
3584 * hppa-hpux-tdep.c: Ditto.
3585 * i386-linux-nat.c: Ditto.
3586 * linux-nat.c: Ditto.
3587 * nbsd-nat.c: Ditto.
3588 * nbsd-nat.h: Ditto.
3589 * ppc-linux-tdep.c: Ditto.
3592 * tui/tui-winsource.c: Ditto.
3594 2011-02-26 Michael Snyder <msnyder@vmware.com>
3596 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3598 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3600 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3601 with a local variable of the same name.
3603 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3604 param with a local variable of the same name.
3605 (i387_supply_xsave): Ditto.
3607 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3608 that it does not shadow a function parameter.
3610 * i386-nat.c (i386_length_and_rw_bits): Document that case
3611 statement is meant to fall through.
3613 * expprint.c (dump_subexp_body_standard): Document that case
3614 statement is meant to fall through.
3616 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3617 dead if statement. Condition can't be false.
3619 2011-02-25 Michael Snyder <msnyder@vmware.com>
3621 * arm-tdep.c: Fix typos in comments.
3622 * bsd-uthread.c: Ditto.
3623 * completer.c: Ditto.
3625 * cp-namespace.c: Ditto.
3626 * cp-support.c: Ditto.
3627 * cris-tdep.c: Ditto.
3629 * dwarf2read.c: Ditto.
3631 * gdbtypes.h: Ditto.
3632 * inferior.h: Ditto.
3633 * mdebugread.c: Ditto.
3634 * mips-tdep.c: Ditto.
3635 * ppc-linux-nat.c: Ditto.
3636 * ppc-linux-tdep.c: Ditto.
3637 * printcmd.c: Ditto.
3638 * sol-thread.c: Ditto.
3639 * solib-frv.c: Ditto.
3641 * sparc64-tdep.c: Ditto.
3642 * spu-tdep.c: Ditto.
3643 * stabsread.c: Ditto.
3648 * python/py-block.c: Ditto.
3649 * python/py-symbol.c: Ditto.
3650 * python/py-symtab.c: Ditto.
3651 * python/py-value.c: Ditto.
3652 * tui/tui-win.c: Ditto.
3654 2011-02-25 Michael Snyder <msnyder@vmware.com>
3656 * inferior.c (print_inferior): Accept a string instead of an int
3657 for requested_inferiors, and use get_number_or_range to parse it.
3658 (info_inferiors_command): Pass args string to print_inferior.
3659 (initialize_inferiors): Change help string for info inferiors.
3660 * inferior.h (print_inferior): Export prototype change.
3662 2011-02-25 Tom Tromey <tromey@redhat.com>
3664 * common/ax.def (invalid2): Set to 0x31.
3666 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3670 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3672 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3674 2011-02-24 Michael Snyder <msnyder@vmware.com>
3676 * Makefile.in (clean): Make clean should remove generated files
3677 observer.h and observer.inc.
3679 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3681 Revert the following patch (not approved yet):
3682 2011-02-21 Hui Zhu <teawater@gmail.com>
3683 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3684 * ax-gdb.c (gen_printf_expr_callback): New function.
3685 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3686 * ax-general.c (ax_memcpy): New function.
3687 (ax_print): Handle "printf".
3689 * ax.h (ax_memcpy): Forward declare.
3690 * common/ax.def (invalid2): Removed.
3691 (printf): New entry.
3692 * printcmd.c (printcmd.h): New include.
3693 (string_printf): New function.
3694 (ui_printf): Removed.
3695 (printf_command): Remove static. Call string_printf.
3696 (eval_command): Call string_printf.
3697 * printcmd.h: New file.
3698 * tracepoint.c (validate_actionline,
3699 encode_actions_1): handle printf_command.
3701 2011-02-23 Tom Tromey <tromey@redhat.com>
3703 * ax-general.c (ax_pick): Add missing newline.
3705 2011-02-23 Michael Snyder <msnyder@vmware.com>
3707 * breakpoint.c (breakpoint_1): Change first argument from an int
3708 to a char pointer, so that the function now accepts a list of
3709 breakpoints rather than just one. Use new function
3710 'number_is_in_list' to implement.
3711 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3712 (watchpoints_info): Ditto.
3713 (tracepoints_info): Ditto.
3714 (maintenance_info_breakpoints): Ditto.
3715 (_initialize_breakpoint): Update help strings to reflect the fact
3716 that these functions can now take more than one argument.
3717 * cli/cli-utils.c (number_is_in_list): New function.
3718 * cli/cli-utils.h (number_is_in_list): Export.
3720 2011-02-23 Michael Snyder <msnyder@vmware.com>
3722 * memattr.c (mem_enable_command): Use get_number_or_range.
3723 (mem_disable_command): Ditto.
3724 (mem_delete_command): Ditto.
3725 (_initialize_mem): Tweak usage message to reflect multiple
3728 2011-02-22 Doug Evans <dje@google.com>
3730 Add gdb.lookup_global_symbol python function.
3732 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3733 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3734 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3736 2011-02-22 Tom Tromey <tromey@redhat.com>
3738 * language.c (language_class_name_from_physname): Rename
3739 'curr_language' argument to 'lang'; use in body.
3741 2011-02-22 Michael Snyder <msnyder@vmware.com>
3743 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3745 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3747 * frame-unwind.h: Fix comment to mention the this frame, not the
3750 2011-02-22 Tom Tromey <tromey@redhat.com>
3752 * symfile.c (auto_solib_limit): Remove.
3753 * symfile.h (auto_solib_limit): Remove.
3755 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3757 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3759 2011-02-21 Michael Snyder <msnyder@vmware.com>
3761 * gdbthread.h (print_thread_info): Change prototype.
3762 * thread.c (print_thread_info): Accept char* instead of int for
3763 requested_threads argument. Use new function number_is_in_list
3764 to determine which threads to list.
3765 (info_threads_command): Pass char* to print_thread_info.
3766 * cli/cli-utils.c (number_is_in_list): New function.
3767 * cli/cli-utils.h (number_is_in_list): Export.
3768 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3770 (print_one_inferior): Ditto.
3771 (mi_cmd_list_thread_groups): Ditto.
3773 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3775 * common/Makefile.in (CFLAGS): New.
3776 (COMPILE): Add $(CFLAGS).
3778 2011-02-21 Tom Tromey <tromey@redhat.com>
3780 * breakpoint.c (catch_syscall_command_1): Fix typo.
3782 2011-02-21 Tom Tromey <tromey@redhat.com>
3784 * reverse.c: Include cli-utils.h.
3785 * printcmd.c: Include cli-utils.h.
3786 (string_printf): Use skip_spaces.
3787 * cli/cli-utils.h: New file.
3788 * cli/cli-utils.c: New file.
3789 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3790 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3791 * breakpoint.h (get_number, get_number_or_range): Move to
3793 * breakpoint.c: Include cli-utils.h.
3794 (get_number_trailer, get_number, get_number_or_range)
3795 (ep_skip_leading_whitespace): Move to cli-utils.c.
3796 (create_breakpoint_sal, find_condition_and_thread)
3797 (decode_static_tracepoint_spec, watch_command_1)
3798 (watch_maybe_just_location, ep_parse_optional_if_clause)
3799 (catch_fork_command_1, catch_exec_command_1)
3800 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3801 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3802 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3803 (HFILES_NO_SRCDIR): Add cli-utils.h.
3804 (cli-utils.o): New target.
3806 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3808 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3809 before calling discard_all_inferiors.
3811 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3813 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3814 (struct builtin_opencl_type): Remove.
3815 (builtin_opencl_type): Change return type to "struct type **".
3816 (lookup_opencl_vector_type): Update caller.
3817 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3818 (build_opencl_types): Install plain array of "struct type *"
3819 instead of "struct builtin_opencl_type".
3821 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3822 Ulrich Weigand <uweigand@de.ibm.com>
3824 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3825 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3826 (struct arm_linux_hwbp_cap): New type.
3827 (arm_linux_get_hwbp_cap): New function.
3828 (arm_linux_get_hw_breakpoint_count): Likewise.
3829 (arm_linux_get_hw_watchpoint_count): Likewise.
3830 (arm_linux_can_use_hw_breakpoint): Likewise.
3831 (arm_hwbp_type): New type.
3832 (arm_hwbp_control_t): Likewise.
3833 (struct arm_linux_hw_breakpoint): Likewise.
3834 (struct arm_linux_thread_points): Likewise.
3835 (arm_threads): New global variable.
3836 (arm_linux_find_breakpoints_by_tid): New function.
3837 (arm_hwbp_control_initialize): Likewise.
3838 (arm_hwbp_control_is_enabled): Likewise.
3839 (arm_hwbp_control_disable): Likewise.
3840 (arm_linux_hw_breakpoint_initialize): Likewise.
3841 (arm_linux_get_hwbp_type): Likewise.
3842 (arm_linux_hw_watchpoint_initialize): Likewise.
3843 (arm_linux_hw_breakpoint_equal): Likewise.
3844 (arm_linux_insert_hw_breakpoint1): Likewise.
3845 (arm_linux_remove_hw_breakpoint1): Likewise.
3846 (arm_linux_insert_hw_breakpoint): Likewise.
3847 (arm_linux_remove_hw_breakpoint): Likewise.
3848 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3849 (arm_linux_insert_watchpoint): Likewise.
3850 (arm_linux_remove_watchpoint): Likewise.
3851 (arm_linux_stopped_data_address): Likewise.
3852 (arm_linux_stopped_by_watchpoint): Likewise.
3853 (arm_linux_watchpoint_addr_within_range): Likewise.
3854 (arm_linux_new_thread): Likewise.
3855 (arm_linux_thread_exit): Likewise.
3856 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3857 related target callbacks. Register arm_linux_new_thread and
3858 arm_linux_thread_exit.
3859 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3860 * arm-tdep.c (arm_pc_is_thumb): Make global.
3861 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3863 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3865 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3866 per-frame locations while within a function epilogue.
3868 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3870 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3871 to GNU coding standards.
3873 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3875 Allow use of mingw native on Windows 95 OS.
3876 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3877 (ser_windows_close): Only call CancelIo if function exists.
3878 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3879 to check for existence of CancelIo function in kernel32 DLL.
3881 2011-02-21 Hui Zhu <teawater@gmail.com>
3883 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3884 * ax-gdb.c (gen_printf_expr_callback): New function.
3885 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3886 * ax-general.c (ax_memcpy): New function.
3887 (ax_print): Handle "printf".
3889 * ax.h (ax_memcpy): Forward declare.
3890 * common/ax.def (invalid2): Removed.
3891 (printf): New entry.
3892 * printcmd.c (printcmd.h): New include.
3893 (string_printf): New function.
3894 (ui_printf): Removed.
3895 (printf_command): Remove static. Call string_printf.
3896 (eval_command): Call string_printf.
3897 * printcmd.h: New file.
3898 * tracepoint.c (validate_actionline,
3899 encode_actions_1): handle printf_command.
3901 2011-02-19 Michael Snyder <msnyder@vmware.com>
3903 * reverse.c (delete_one_bookmark): Argument is now bookmark
3904 id rather than pointer to bookmark struct.
3905 (delete_bookmark_command): Use get_number_or_range.
3906 (goto_bookmark_command): Parse with get_number instead of strtoul.
3907 (bookmark_1): New function. Print info for one bookmark.
3908 (bookmarks_info): Use get_number_or_range and bookmark_1.
3910 2011-02-18 Michael Snyder <msnyder@vmware.com>
3912 * thread.c (info_threads_command): Re-implement using
3913 get_number_or_range.
3914 (thread_apply_command): Ditto.
3916 2011-02-18 Tom Tromey <tromey@redhat.com>
3918 * common/ax.def: New file.
3919 * ax.h (enum agent_op): Use ax.def.
3920 * ax-general.c (aop_map): Use ax.def.
3922 2011-02-18 Tom Tromey <tromey@redhat.com>
3924 * ax-general.c (aop_map): Add pick and rot.
3925 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3926 <DW_OP_rot>: Implement.
3927 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3929 * ax-general.c (ax_pick): New function.
3931 2011-02-18 Tom Tromey <tromey@redhat.com>
3933 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3935 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3936 Tom Tromey <tromey@redhat.com>
3938 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3939 make_symbol_overload_list_block with NULL BLOCK.
3940 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3942 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3944 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3945 * breakpoint.h (get_number_or_range): Declare.
3946 * printcmd.c (ALL_DISPLAYS): Declare.
3947 (delete_display): Reimplement taking a display pointer.
3948 (undisplay_command): Accept a range of displays to delete, using
3949 get_number_or_range.
3951 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3953 * c-valprint.c (c_val_print): Add embedded_offset to address
3954 for arrays of unspecified length.
3955 * p-valprint.c (pascal_val_print): Likewise.
3957 2011-02-18 Yao Qi <yao@codesourcery.com>
3959 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3960 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3961 (thumb_process_displaced_insn): New.
3962 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3963 call to arm_process_displaced_insn.
3964 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3966 2011-02-17 Tom Tromey <tromey@redhat.com>
3968 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3969 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3970 compile_dwarf_to_ax. No longer static. Call
3971 dwarf2_compile_cfa_to_ax.
3972 (locexpr_tracepoint_var_ref): Update.
3973 (loclist_tracepoint_var_ref): Update.
3974 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3975 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3976 argument; add 'gdbarch' and 'pc'.
3977 (dwarf2_compile_cfa_to_ax): New function.
3978 (dwarf2_frame_cache): Update.
3980 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3982 * ada-lang.c (ada_type_of_array): Fix the size of the array
3983 in the case of an unconstrained packed array.
3985 2011-02-17 Yao Qi <yao@codesourcery.com>
3987 * common/Makefile.in: Add more targets for make.
3989 2011-02-16 Tom Tromey <tromey@redhat.com>
3991 * dwarf2loc.c (unimplemented): Fix typo.
3993 2011-02-16 Tom Tromey <tromey@redhat.com>
3995 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3996 (compile_dwarf_to_ax) <default>: Use unimplemented.
3997 <DW_OP_deref>: Update.
3998 (disassemble_dwarf_expression): Update.
3999 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4000 (decode_locdesc): Update.
4001 * dwarf2expr.h (dwarf_stack_op_name): Update.
4003 2011-02-16 Tom Tromey <tromey@redhat.com>
4005 * ax.h (struct aop_map) <name>: Now const.
4007 2011-02-16 Tom Tromey <tromey@redhat.com>
4009 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4012 2011-02-16 Yao Qi <yao@codesourcery.com>
4014 * infrun.c (get_displaced_step_closure_by_addr): New.
4015 * inferior.h: Declare it.
4016 * arm-tdep.c: (arm_pc_is_thumb): Call
4017 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4020 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4021 Jan Kratochvil <jan.kratochvil@redhat.com>
4024 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4026 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4027 Jan Kratochvil <jan.kratochvil@redhat.com>
4029 * value.c (value_contents_copy_raw): Extend describing comment.
4030 Assert that the destination contents we're overwriting are wholly
4032 (value_contents_copy): Extend describing comment.
4034 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4035 Jan Kratochvil <jan.kratochvil@redhat.com>
4037 * value.c (value_available_contents_eq): Remove redundant local
4038 variables. Fix available contents comparision.
4039 * value.h (value_available_contents_eq): Extend describing
4042 2011-02-16 Yao Qi <yao@codesourcery.com>
4044 * thread.c (info_threads_command): Add missing i18n markup and remove
4047 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4049 * breakpoint.c (longjmp_names): New variable.
4050 (struct breakpoint_objfile_data): New type.
4051 (breakpoint_objfile_key): New variable.
4052 (msym_not_found): New variable.
4053 (msym_not_found_p): New predicate.
4054 (get_breakpoint_objfile_data): New function.
4055 (create_overlay_event_breakpoint): Check per-objfile cache for
4057 (create_longjmp_master_breakpoint): Likewise.
4058 (create_std_terminate_master_breakpoint): Likewise.
4059 (create_exception_master_breakpoint): Likewise.
4060 (_initialize_breakpoint): Register per-objfile data key.
4062 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4064 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4066 (create_longjmp_master_breakpoint): Loop over longjmp names.
4067 (create_std_terminate_master_breakpoint): Const-propagate parameter
4069 (update_breakpoints_after_exec): Adjust.
4070 (breakpoint_re_set): Adjust.
4072 2011-02-15 Michael Snyder <msnyder@vmware.com>
4074 * thread.c (info_threads_command): Process arg as thread id,
4075 or list of thread ids.
4076 (thread_find_command): New command.
4077 (_initialize_thread): Document argument for info threads.
4078 Document 'thread find' command.
4079 * NEWS: Document new command "thread find".
4081 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4083 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4084 * aclocal.m4: Regenerated with aclocal-1.11.1.
4085 * common/configure: Regenerate with autoconf-2.64.
4087 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4089 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4090 bool data type to a size of one byte.
4092 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4093 Jan Kratochvil <jan.kratochvil@redhat.com>
4095 * target.c (memory_xfer_live_readonly_partial): Document where to
4096 look for interface description.
4098 2011-02-15 Yao Qi <yao@codesourcery.com>
4101 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4102 order to store PC value on stack instead of text section.
4104 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4106 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4107 the EFP register set size.
4108 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4109 data from the VMX register.
4110 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4111 and write data from/to the VMX register.
4113 2011-02-14 Michael Snyder <msnyder@vmware.com>
4115 * command.h (enum command_class): New class 'no_set_class', for
4116 "show" commands without a corresponding "set" command.
4117 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4118 * copying.c (_initialize_copying): Ditto for "show copying" and
4120 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4122 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4123 which there is no corresponding "set" command (eg. "show copying").
4125 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4126 Jan Kratochvil <jan.kratochvil@redhat.com>
4128 * exec.c (section_table_available_memory): Change `len' parameter
4130 * exec.h (section_table_available_memory): Ditto.
4131 * value.h (read_value_memory): Rename the `offset' parameter to
4134 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4135 Jan Kratochvil <jan.kratochvil@redhat.com>
4137 * memrange.c (compare_mem_ranges): Mention sort order in
4139 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4140 * tracepoint.c (traceframe_available_memory): Extend comment to
4141 mention what happens to RESULT when the target does not support
4144 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4145 Jan Kratochvil <jan.kratochvil@redhat.com>
4147 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4150 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4152 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4153 No longer handle NULL values.
4155 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4157 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4158 * value.c: Include "exceptions.h".
4159 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4161 * cp-abi.c: Include gdb_assert.h.
4162 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4163 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4165 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4166 parameters. No longer returns -1 on error.
4167 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4169 * cp-valprint.c: Include exceptions.h.
4170 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4171 the baseclass_offset. Handle unavailable base classes. Use
4172 val_print_invalid_address.
4173 * p-valprint.c: Include exceptions.h.
4174 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4175 when fetching the baseclass_offset. No longer expect
4176 baseclass_offset returning -1. Handle unavailable base classes.
4177 Use val_print_invalid_address.
4178 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4179 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4180 `embedded_offset' and `val' parameters. Adjust.
4181 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4182 parameter, and change its type to gdb_byte pointer. Add
4183 `embedded_offset' and `val' parameters. Adjust. No longer expect
4184 baseclass_offset returning -1.
4185 (value_dynamic_cast): Use value_contents_for_printing rather than
4186 value_contents. Adjust.
4187 (search_struct_field): No longer expect baseclass_offset returning
4189 (search_struct_method): If reading memory from the target is
4190 necessary, wrap it in a new value to pass to baseclass_offset. No
4191 longer expect baseclass_offset returning -1.
4192 (find_method_list): No longer expect baseclass_offset returning
4193 -1. Use value_contents_for_printing rather than value_contents.
4194 * valprint.c (val_print_invalid_address): New function.
4195 * valprint.h (val_print_invalid_address): Declare.
4196 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4197 and `val' parameters. No longer expect baseclass_offset returning
4199 * gnu-v2-abi.c: Include "exceptions.h".
4200 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4201 parameters. Handle unavailable memory. Recurse through
4202 gnuv2_baseclass_offset directly, rather than through
4203 baseclass_offset. No longer returns -1 on not found, instead
4205 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4206 `val' parameters. Adjust.
4208 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4210 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4211 almost but not quite adjacent.
4213 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4215 * value.h (value_entirely_available): Declare.
4216 * value.c (value_entirely_available): New function.
4217 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4218 real type if the pointer is unavailable.
4220 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4222 * valops.c (value_repeat): Use read_value_memory instead of
4225 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4227 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4228 * value.c (value_contents_copy_raw, value_contents_copy): New
4230 (value_primitive_field): Use value_contents_copy_raw instead of
4232 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4234 (value_array, value_slice): Ditto.
4235 * valarith.c (value_subscripted_rvalue): Use
4236 value_contents_copy_raw instead of memcpy.
4238 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4240 <unavailable> references.
4242 * valops.c (get_value_at): Use value_from_contents_and_address,
4243 avoiding read_memory.
4245 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4247 * c-valprint.c (c_val_print): Print a string with unavailable
4248 contents as an array.
4250 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4252 * value.h (unpack_bits_as_long): Delete declaration.
4253 (unpack_value_bits_as_long): Declare.
4254 (unpack_value_field_as_long): Declare.
4255 (value_field_bitfield): Declare.
4256 * value.c (unpack_bits_as_long): Rename to...
4257 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4258 value parameters. Return the extracted result in a new output
4259 parameter. If the value contents are unavailable, return false,
4260 otherwise return true.
4261 (unpack_value_bits_as_long): New.
4262 (unpack_field_as_long): Rename to...
4263 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4264 Add embedded_offset and value parameters. Return the extracted
4265 result in a new output parameter. If the value contents are
4266 unavailable, return false, otherwise return true.
4267 (unpack_value_field_as_long): New.
4268 (unpack_field_as_long_1): New.
4269 (unpack_field_as_long): Reimplement as wrapper around
4270 unpack_value_field_as_long_1.
4271 (value_field_bitfield): New function.
4272 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4273 unpack_value_bits_as_long. Mark the value as unavailable, if it
4275 * jv-valprint.c (java_print_value_fields): Use
4276 value_field_bitfield.
4277 * p-valprint.c (pascal_object_print_value_fields): Use
4278 value_field_bitfield.
4279 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4281 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4283 * value.c (get_internalvar_integer): Also return the int value of
4284 TYPE_CODE_INT INTERNALVAR_VALUE values.
4285 (set_internalvar): Don't special case TYPE_CODE_INT.
4287 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4289 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4290 INTERNALVAR_POINTER.
4292 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4293 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4294 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4296 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4298 * value.h (value_available_contents_eq): Declare.
4299 * value.c (find_first_range_overlap): New function.
4300 (value_available_contents_eq): New function.
4301 * valprint.c (val_print_array_elements): Use
4302 value_available_contents_eq.
4303 * ada-valprint.c (val_print_packed_array_elements): Use
4304 value_available_contents_eq.
4305 * jv-valprint.c (java_value_print): Use
4306 value_available_contents_eq.
4308 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4310 * target.c (target_read_live_memory): New function.
4311 (memory_xfer_live_readonly_partial): New.
4312 (memory_xfer_partial): If reading from a traceframe, fallback to
4313 reading unavailable read-only memory from read-only regions of
4315 * tracepoint.c (disconnect_tracing): Adjust.
4316 (set_current_traceframe): New, factored out from
4317 set_traceframe_number.
4318 (set_traceframe_number): Reimplement to only change the traceframe
4319 number on the GDB side.
4320 (do_restore_current_traceframe_cleanup): Adjust.
4321 (make_cleanup_restore_traceframe_number): New.
4322 (cur_traceframe_number): New global.
4323 (tfile_open): Set cur_traceframe_number to no traceframe.
4324 (set_tfile_traceframe): New function.
4325 (tfile_trace_find): If looking up a traceframe using any method
4326 other than by number, make sure the current tfile traceframe
4327 matches gdb's current traceframe. Update the current tfile
4328 traceframe if the lookup succeeded.
4329 (tfile_fetch_registers, tfile_xfer_partial)
4330 (tfile_get_trace_state_variable_value): Make sure the remote
4331 traceframe matches gdb's current traceframe.
4332 * remote.c (remote_traceframe_number): New global.
4333 (remote_open_1): Set it to -1.
4334 (set_remote_traceframe): New function.
4335 (remote_fetch_registers, remote_store_registers)
4336 (remote_xfer_memory, remote_xfer_partial)
4337 (remote_get_trace_state_variable_value): Make sure the remote
4338 traceframe matches gdb's current traceframe.
4339 (remote_trace_find): If looking up a traceframe using any method
4340 other than by number, make sure the current remote traceframe
4341 matches gdb's current traceframe. Update the current remote
4342 traceframe if the lookup succeeded.
4343 * infrun.c (fetch_inferior_event): Adjust.
4344 * tracepoint.h (set_current_traceframe): Declare.
4345 (get_traceframe_number, set_traceframe_number): Add describing
4348 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4350 Mark pieces of values as unavailable if the corresponding memory
4353 * valops.c: Include tracepoint.h.
4354 (value_fetch_lazy): Use read_value_memory.
4355 (read_value_memory): New.
4356 * value.h (read_value_memory): Declare.
4357 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4358 * exec.c (section_table_available_memory): New function.
4359 * exec.h (section_table_available_memory): Declare.
4361 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4363 * Makefile.in (SFILES): Add memrange.c.
4364 (HFILES_NO_SRCDIR): Add memrange.h.
4365 (COMMON_OBS): Add memrange.o.
4366 * memrange.c: New file.
4367 * memrange.h: New file.
4368 * tracepoint.c: Include memrange.h.
4369 (struct mem_range): Delete.
4370 (mem_range_s): Delete.
4371 (traceframe_available_memory): New function.
4372 * tracepoint.h (traceframe_available_memory): Declare.
4374 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4376 * target.h (struct traceframe_info): Forward declare.
4377 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4378 (struct target_ops) <to_traceframe_info>: New field.
4379 (target_traceframe_info): New.
4380 * target.c (update_current_target): Inherit and default
4382 * remote.c (PACKET_qXfer_traceframe_info): New.
4383 (remote_protocol_features): Register qXfer:traceframe-info:read.
4384 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4385 (remote_traceframe_info): New.
4386 (init_remote_ops): Install it.
4387 (_initialize_remote): Install "set/show remote traceframe-info"
4389 * tracepoint.h (parse_traceframe_info): Declare.
4390 * tracepoint.c (struct mem_range): New.
4391 (mem_range_s): New typedef.
4392 (struct traceframe_info): New.
4393 (traceframe_info): New global.
4394 (free_traceframe_info): New function.
4395 (clear_traceframe_info): New function.
4396 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4398 (build_traceframe_info): New function.
4399 (tfile_traceframe_info): New function.
4400 (init_tfile_ops): Install tfile_traceframe_info.
4401 (traceframe_info_start_memory, free_result): New functions.
4402 (memory_attributes, traceframe_info_elements): New globals.
4403 (parse_traceframe_info, get_traceframe_info): New functions.
4404 * features/traceframe-info.dtd: New file.
4405 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4407 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4409 Base support for <unavailable> value contents.
4411 * value.h (value_bytes_available): Declare.
4412 (mark_value_bytes_unavailable): Declare.
4413 * value.c (struct range): New struct.
4414 (range_s): New typedef.
4415 (ranges_overlap): New function.
4416 (range_lessthan): New function.
4417 (ranges_contain_p): New function.
4418 (struct value) <unavailable>: New field.
4419 (value_bytes_available): New function.
4420 (mark_value_bytes_unavailable): New function.
4421 (require_not_optimized_out): Constify parameter.
4422 (require_available): New function.
4423 (value_contents_all, value_contents): Require all bytes be
4425 (value_free): Free `unavailable'.
4426 (value_copy): Copy `unavailable'.
4427 * valprint.h (val_print_unavailable): Declare.
4428 * valprint.c (valprint_check_validity): Rename `offset' parameter
4429 to `embedded_offset'. If printing a scalar, check whether the
4430 value chunk is available.
4431 (val_print_unavailable): New.
4432 (val_print_scalar_formatted): Check whether the value is
4434 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4435 pretty-printing unavailable values.
4437 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4439 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4440 * c-typeprint.c (c_type_print_args): Update the function comment. New
4441 variable param_type, initialize it. Remove const/volatile qualifiers
4442 for language_cplus and !show_artificial. Use param_type.
4444 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4446 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4447 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4448 * symtab.h (struct symtab) <next>: Comment extension.
4450 2011-02-12 Yao Qi <yao@codesourcery.com>
4452 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4454 2011-02-11 Yao Qi <yao@codesourcery.com>
4456 * common/Makefile.in: Add copyright header.
4458 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4460 * infrun.c (proceed): Move switching out and in of tfind mode from
4462 (fetch_inferior_event): ... to here.
4464 2011-02-11 Yao Qi <yao@codesourcery.com>
4466 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4468 * configure.ac: Add common to sub dir.
4469 * configure: Regenerate.
4471 2011-02-11 Yao Qi <yao@codesourcery.com>
4475 * common/Makefile.in: New.
4476 * common/configure.ac: New.
4477 * common/aclocal.m4: New.
4478 * common/configure: Generate.
4480 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4482 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4483 side of the parenthesis.
4486 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4487 * vec.h (VEC_block_remove): Fix comment.
4489 2011-02-08 Michael Snyder <msnyder@vmware.com>
4491 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4493 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4495 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4496 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4499 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4502 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4504 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4505 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4507 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4509 * dwarf2read.c (read_subroutine_type): Set special calling
4510 convention flag for functions compiled by IBM XL C for OpenCL.
4511 * ppc-sysv-tdep.c: Include "dwarf2.h"
4512 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4514 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4515 IBM OpenCL vector types calling convention.
4516 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4517 (ppc_sysv_abi_broken_return_value): Likewise.
4518 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4519 types calling convention.
4520 (ppc64_sysv_abi_return_value): Likewise.
4521 * spu-tdep.c: Include "dwarf2.h"
4522 (spu_return_value): Implement IBM OpenCL vector types calling
4525 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4527 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4528 correct ABI for AltiVec vector arguments.
4530 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4532 * valprint.c (val_print): Extend comment.
4533 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4534 interface explanation to val_print.
4535 (ada_val_print_array): Adjust comment to current interface.
4536 (print_field_values): Adjust comment to current interface.
4537 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4538 explanation to val_print.
4539 * f-valprint.c (f_val_print): Ditto.
4540 * jv-valprint.c (java_val_print): Ditto.
4541 * m2-valprint.c (m2_val_print): Ditto.
4542 * p-valprint.c (pascal_val_print): Ditto.
4544 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4546 * breakpoint.c (parse_breakpoint_sals): Fix description.
4548 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4549 Oguz Kayral <oguzkayral@gmail.com>
4551 * python/py-inferior.c (python_on_normal_stop): New function.
4552 (python_on_resume): New function.
4553 (python_inferior_exit): New function.
4554 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4555 inferior_exit observers.
4556 * python/py-evtregistry.c: New file.
4557 * python/py-threadevent.c : New file.
4558 * python/py-event.c: New file.
4559 * python/py-evts.c: New file.
4560 * python/py-continueevent.c: New file.
4561 * python/py-bpevent.c: New file.
4562 * python/py-signalevent.c: New file.
4563 * python/py-exetiedevent.c: New file.
4564 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4565 Move struct breakpoint_object from here...
4566 * python/python-internal.h: ... to here.
4567 * python/py-event.h: New file.
4568 * python/py-events.h: New file.
4569 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4570 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4571 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4572 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4573 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4574 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4575 Add build rules for all the above.
4577 2011-02-04 Tom Tromey <tromey@redhat.com>
4579 * dwarf2read.c (dwarf2_section_empty_p): New function.
4580 (dwarf2_read_section): Use dwarf2_section_empty_p.
4581 (dwarf2_section_size): New function.
4582 (dwarf2_get_section_info): Unconditionally read section.
4583 (dwarf2_read_index): Use dwarf2_section_empty_p.
4584 (partial_read_comp_unit_head): Use dwarf2_section_size.
4585 (dwarf2_symbol_mark_computed): Likewise.
4587 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4589 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4591 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4593 * mips-linux-tdep.c: Include xml-syscall.h.
4594 (mips_linux_get_syscall_number): New function.
4595 (mips_linux_init_abi): Add calls to
4596 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4597 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4598 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4599 * syscalls/mips-n32-linux.xml: New file.
4600 * syscalls/mips-n64-linux.xml: New file.
4601 * syscalls/mips-o32-linux.xml: New file.
4603 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4605 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4606 Complain about inverted range entries.
4607 (dwarf2_record_block_ranges): Likewise.
4609 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4612 * breakpoint.c (update_watchpoint): Fix name of the
4613 update_global_location_list function.
4614 (print_one_breakpoint): Fix typo.
4615 (_initialize_breakpoint): Remove extra space in hbreak help
4617 * breakpoint.h (struct bp_location) <length>: Fix field
4620 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4622 * regcache.c (registers_changed_ptid): Don't explictly always
4623 clear `current_regcache'. Only clear current_thread_ptid and
4624 current_thread_arch when PTID matches. Only reinit the frame
4625 cache if PTID matches the current inferior_ptid. Move alloca(0)
4627 (registers_changed): ... here.
4629 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4631 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4632 starts with __stack_chk_guard as stack guard symbol.
4634 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4636 * disasm.c (compare_lines): Handle the end of sequence markers
4637 within the line table to better support disassembling over
4638 compilation unit boundaries.
4640 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4642 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4643 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4644 implementation even if no symbols are available.
4645 (thumb_analyze_prologue): Update call to skip_prologue_function.
4646 (arm_analyze_prologue): Likewise.
4648 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4650 * arm-tdep.c: Include "observer.h".
4651 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4652 (arm_exidx_data_key): New static variable.
4653 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4654 (struct arm_exidx_data): Likewise.
4655 (arm_exidx_data_free): New function.
4656 (arm_compare_exidx_entries): Likewise.
4657 (arm_obj_section_from_vma): Likewise.
4658 (arm_exidx_new_objfile): Likewise.
4659 (arm_find_exidx_entry): Likewise.
4660 (arm_exidx_fill_cache): Likewise.
4661 (arm_exidx_unwind_sniffer): Likewise.
4662 (arm_exidx_unwind): New global variable.
4663 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4664 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4665 observer. Register arm_exidx_data_key as objfile data.
4667 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4669 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4670 due to accessing uninitialized variable. Fix indentation.
4672 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4674 * c-valprint.c (c_value_print): When doing virtual base pointer
4675 adjustment, create a new value with adjusted contents rather than
4676 changing the contents of the value being printed (and getting it
4679 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4681 * xml-support.c (xml_find_attribute): New.
4682 (xinclude_start_include): Use it.
4683 * xml-support.h (xml_find_attribute): Declare.
4684 * memory-map.c (memory_map_start_memory)
4685 (memory_map_start_property): Use xml_find_attribute.
4686 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4688 * remote.c (start_thread): Use xml_find_attribute.
4689 * solib-target.c (library_list_start_segment)
4690 (library_list_start_section, library_list_start_library)
4691 (library_list_start_list): Use xml_find_attribute.
4692 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4693 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4694 (tdesc_start_field): Use xml_find_attribute.
4696 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4698 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4699 (BUILD_OCL_VTYPES): Update.
4701 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4703 * configure.ac: Work around non-GNU sed limitation when computing
4704 python version number.
4705 * configure: Regenerate.
4707 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4709 Fix debug printing of TYPE_INSTANCE.
4710 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4711 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4713 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4715 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4716 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4717 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4718 * ada-operator.inc: Rename the file to ...
4719 * ada-operator.def: ... here, wrap all the entries by macro OP.
4720 * expprint.c (op_name_standard): Remove all the entries. Include
4721 "std-operator.def" instead.
4722 * expression.h (enum exp_opcode): Include "std-operator.def" and
4723 "ada-operator.def". Move all the entries ...
4724 * std-operator.def: ... here, wrap all the entries by macro OP.
4726 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4728 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4729 * breakpoint.c (remove_jit_event_breakpoints): New function.
4730 * jit.c (jit_descriptor_addr): Delete.
4731 (registering_code): Delete.
4732 (clear_int): Delete.
4733 (jit_inferior_data): New variable.
4734 (struct jit_inferior_data): New type.
4735 (get_jit_inferior_data): New function.
4736 (jit_inferior_data_cleanup): New function.
4737 (jit_read_descriptor): Adjust.
4738 (jit_register_code): Adjust.
4739 (jit_breakpoint_re_set_internal): New function; move code here ...
4740 (jit_inferior_init): ... from here.
4741 (jit_breakpoint_re_set): Adjust.
4742 (jit_reset_inferior_data_and_breakpoints): New function.
4743 (jit_inferior_created_observer): Adjust.
4744 (jit_inferior_exit_hook): Adjust.
4745 (jit_executable_changed_observer): New function.
4746 (jit_event_handler): Adjust.
4747 (_initialize_jit): Adjust.
4749 2011-01-31 Michael Snyder <msnyder@vmware.com>
4751 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4754 2011-01-31 Tom Tromey <tromey@redhat.com>
4757 * python/python.c (execute_gdb_command): Call
4758 prevent_dont_repeat.
4759 * top.c (suppress_dont_repeat): New global.
4760 (dont_repeat): Use it.
4761 (prevent_dont_repeat): New function.
4762 * command.h (prevent_dont_repeat): Declare.
4764 2011-01-31 Tom Tromey <tromey@redhat.com>
4766 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4767 * python/py-breakpoint.c (bppy_set_silent): Use
4768 breakpoint_set_silent.
4769 (bppy_set_thread): Use breakpoint_set_thread.
4770 (bppy_set_task): Use breakpoint_set_task.
4771 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4772 (breakpoint_set_task): Declare.
4773 (make_breakpoint_silent): Remove.
4774 * breakpoint.c (breakpoint_set_silent): New function.
4775 (breakpoint_set_thread): Likewise.
4776 (breakpoint_set_task): Likewise.
4777 (make_breakpoint_silent): Remove.
4779 2011-01-31 Tom Tromey <tromey@redhat.com>
4781 * breakpoint.h (user_breakpoint_p): Declare.
4782 * breakpoint.c (user_breakpoint_p): New function.
4783 (breakpoint_1): Use it.
4784 (save_breakpoints): Likewise.
4786 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4788 * configure.ac: Add handling of Python distribution on Windows.
4789 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4790 sysconfig variables are not defined, then do not use them.
4791 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4792 instead. On Windows, return all paths using forward-slashes
4793 rather than backslashes.
4795 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4797 * configure.ac: Remove fallback behavior for building
4798 against Python. Remove tweaking of Python include path.
4799 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4800 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4801 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4802 Always restore CPPFLAGS and LIBS after linking test.
4803 * configure: Regenerated.
4804 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4805 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4806 * python/python-internal.h: Adjust includes of Python .h files.
4808 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4810 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4813 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4815 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4818 2011-01-31 Yao Qi <yao@codesourcery.com>
4820 * arm-linux-nat.c: Update calls to regcache_register_status
4821 instead of regcache_valid_p.
4822 * aix-thread.c: Likewise.
4823 * i386gnu-nat.c: Likewise.
4825 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4828 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4829 touching TYPE_FIELD_ARTIFICIAL.
4831 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4833 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4836 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4838 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4839 selected, don't try iterating over the traceframe's blocks.
4840 (tfile_has_stack): If there's no traceframe selected, then there's
4842 (tfile_has_registers): If there's no traceframe selected, then
4843 there's no registers.
4845 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4847 * target.c (memory_xfer_partial): No need to restore shadows if we
4848 haven't read anything.
4850 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4852 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4853 and val_print_scalar_formatted.
4855 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4857 * tracepoint.c (tfile_read): New.
4858 (tfile_open): Use it.
4859 (tfile_get_traceframe_address): Use it.
4860 (tfile_trace_find): Use it.
4861 (walk_blocks_callback_func): New typedef.
4862 (match_blocktype): New function.
4863 (traceframe_walk_blocks): New function.
4864 (traceframe_find_block_type): New function.
4865 (tfile_fetch_registers, tfile_xfer_partial)
4866 (tfile_get_trace_state_variable_value): Use
4867 traceframe_find_block_type and tfile_read.
4869 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4871 * remote-mips.c: Add internationalization mark ups. Remove
4872 trailing \n from already marked up strings.
4874 2011-01-26 Tom Tromey <tromey@redhat.com>
4876 * python/py-prettyprint.c (print_string_repr): Clear
4877 'addressprint' option when calling val_print_string.
4878 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4879 option when calling val_print_string.
4881 2011-01-26 Tom Tromey <tromey@redhat.com>
4883 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4885 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4887 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4888 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4889 (gdb_py_long_as_ulongest): New defines.
4890 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4891 (gdb_py_int_as_long): Declare.
4892 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4893 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4894 (valpy_long): Add comment.
4895 * python/py-utils.c (get_addr_from_python): Use
4896 gdb_py_long_as_ulongest. Handle overflow properly.
4897 (gdb_py_object_from_longest): New function.
4898 (gdb_py_object_from_ulongest): Likewise.
4899 (gdb_py_int_as_long): Likewise.
4900 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4901 * python/py-symtab.c (salpy_get_pc): Use
4902 gdb_py_long_from_ulongest.
4903 (salpy_get_line): Use PyInt_FromLong.
4904 * python/py-param.c (set_parameter_value): Use
4906 * python/py-lazy-string.c (stpy_get_address): Use
4907 gdb_py_long_from_ulongest.
4908 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4909 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4910 * python/py-breakpoint.c (bppy_set_thread): Use
4912 (bppy_set_task): Likewise.
4913 (bppy_set_ignore_count): Likewise.
4914 (bppy_set_hit_count): Likewise.
4915 * python/py-block.c (blpy_get_start): Use
4916 gdb_py_object_from_ulongest.
4917 (blpy_get_end): Likewise.
4918 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4920 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4923 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4924 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4925 equality test for objfile, initialize addr_low if needed.
4927 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4929 * tui/tui-regs.c (tui_register_format): Remove dead code.
4931 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4933 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4934 instead of print_scalar_formatted.
4935 (print_scalar_formatted): Don't handle 's' format strings here,
4936 and add an assertion that we never see such format here.
4937 * valprint.h (val_print_scalar_formatted): Declare.
4938 * valprint.c (val_print_scalar_formatted): New.
4939 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4940 instead of print_scalar_formatted.
4941 * jv-valprint.c (java_val_print): Ditto.
4942 * p-valprint.c (pascal_val_print): Ditto.
4943 * ada-valprint.c (ada_val_print_1): Ditto.
4944 * f-valprint.c (f_val_print): Ditto.
4945 * infcmd.c (registers_info): Ditto.
4946 * m2-valprint.c (m2_val_print): Ditto.
4948 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4950 * m2-valprint.c (print_unbounded_array): Pass
4951 value_contents_for_printing rather than value_contents, to
4952 m2_print_array_contents. Also pass in the value.
4954 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4956 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4957 (save_gdb_index_command): Switch to .gdb_index version 4.
4959 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4961 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4962 than frame_register, and always pass a valid value to val_print.
4964 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4966 Centralize printing "<optimized out>".
4968 * valprint.h (val_print_optimized_out): Declare.
4969 * cp-valprint.c (cp_print_value_fields): Use
4970 val_print_optimized_out.
4971 * jv-valprint.c (java_print_value_fields): Ditto.
4972 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4973 * printcmd.c (print_formatted): Ditto.
4974 * valprint.c (valprint_check_validity): Ditto.
4975 (value_check_printable): Ditto.
4976 (val_print_optimized_out): New.
4978 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4980 * infcmd.c (default_print_registers_info): Allocate values so to
4981 never pass a NULL value to val_print.
4983 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4985 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4986 boolean. Make sure to always pass a value that matches the
4987 contents buffer to callees. Preserve `address' for following
4989 * value.c (value_contents_for_printing_const): New.
4990 (value_address): Constify value argument.
4991 * value.h (value_contents_for_printing_const): Declare.
4992 (value_address): Constify value argument.
4994 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4996 * regcache.c (struct regcache_descr): Rename
4997 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4998 and sizeof_cooked_register_valid_p to
4999 sizeof_cooked_register_status.
5000 (init_regcache_descr): Adjust.
5001 (struct regcache): Rename register_valid_p field to
5003 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5004 (do_cooked_read): Adjust.
5005 (regcache_valid_p): Rename to ...
5006 (regcache_register_status): ... this. Adjust.
5007 (regcache_invalidate): Adjust.
5008 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5010 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5011 as unavailable, not valid.
5012 (regcache_dump): Adjust.
5013 * regcache.h (enum register_status): New.
5014 (regcache_register_status): Declare.
5015 (regcache_invalidate): Delete declaration.
5016 * corelow.c (get_core_registers): Adjust.
5017 * tracepoint.c (tfile_fetch_registers): Adjust.
5018 * trad-frame.c (REG_VALUE): Rename to ...
5019 (TF_REG_VALUE): ... this.
5020 (REG_UNKNOWN): Rename to ...
5021 (TF_REG_UNKNOWN): ... this.
5022 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5023 * mi/mi-main.c (register_changed_p): Adjust.
5025 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5027 * regcache.c (struct regcache_descr): Remove outdated comment.
5028 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5030 (regcache_xmalloc): Rename to ...
5031 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5032 Allocate the regcache type accordingly.
5033 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5034 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5035 cooked registers, not raw.
5036 (regcache_dup_no_passthrough): Delete.
5037 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5038 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5039 mention obsolete write_register_bytes.
5040 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5042 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5044 Stop remote_read_bytes from handling partial reads itself.
5046 * remote-fileio.c: Include target.h.
5047 (remote_fileio_write_bytes): Delete.
5048 (remote_fileio_func_open, remote_fileio_func_write)
5049 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5051 (remote_fileio_func_stat): Use target_read_memory and
5052 target_write_memory.
5053 (remote_fileio_func_gettimeofday): Use target_write_memory.
5054 (remote_fileio_func_system): Use target_read_memory.
5055 * remote.c (remote_write_bytes): Make it static.
5056 (remote_read_bytes): Don't handle partial reads here.
5057 * remote.h (remote_read_bytes): Delete declaration.
5059 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5061 Simplify XML parsing a bit.
5063 * xml-support.h (gdb_xml_parse_quick): Declare.
5064 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5065 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5067 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5068 gdb_xml_create_parser_and_cleanup_1.
5069 (gdb_xml_parse_quick): New.
5070 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5071 * osdata.c (osdata_parse): Ditto.
5072 * remote.c (remote_threads_info): Ditto.
5073 * solib-target.c (solib_target_parse_libraries): Ditto.
5074 * xml-syscall.c (syscall_parse_xml): Ditto.
5075 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5077 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5079 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5080 with remote-mips.o added to gdb_target_obs.
5081 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5083 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5085 * ada-valprint.c (val_print_packed_array_elements): Pass the
5086 correct struct value to val_print.
5087 (ada_val_print_1): Ditto.
5089 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5091 Don't lose embedded_offset in printing routines throughout.
5093 * valprint.h (val_print_array_elements): Change prototype.
5094 * valprint.c (val_print_array_elements): Add `embedded_offset'
5095 parameter, and adjust to pass it down to val_print, while passing
5096 `valaddr' or `address' unmodified. Take embedded_offset into
5097 account when checking repetitions.
5098 * c-valprint.c (c_val_print): Pass embedded_offset to
5099 val_print_array_elements instead of adjusting `valaddr' and
5101 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5102 embedded_offset to val_print_array_elements instead of adjusting
5104 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5105 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5106 val_print_array_elements and pascal_object_print_value_fields
5107 instead of adjusting `valaddr'.
5108 (pascal_object_print_value_fields): Add `offset' parameter, and
5110 (pascal_object_print_value): Add `offset' parameter, and adjust to
5112 (pascal_object_print_static_field): Use
5113 value_contents_for_printing/value_embedded_offset, rather than
5115 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5116 parameter, and adjust to use it. Use
5117 value_contents_for_printing/value_embedded_offset, rather than
5119 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5120 (ada_val_print_array): Add `offset' parameter, and adjust to use
5122 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5123 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5124 Instead work with offsets. Use
5125 value_contents_for_printing/value_embedded_offset, rather than
5126 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5127 and use value_from_pointer to extract a target pointer, rather
5128 than value_from_longest.
5129 (print_variant_part): Add `offset' parameter. Replace
5130 `outer_valaddr' parameter by a new `outer_offset' parameter.
5131 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5132 (ada_value_print): Use
5133 value_contents_for_printing/value_embedded_offset, rather than
5135 (print_record): Add `offset' parameter, and adjust to pass it
5137 (print_field_values): Add `offset' parameter. Replace
5138 `outer_valaddr' parameter by a new `outer_offset' parameter.
5139 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5140 Use value_contents_for_printing/value_embedded_offset, rather than
5142 * d-valprint.c (dynamic_array_type): Use
5143 value_contents_for_printing/value_embedded_offset, rather than
5145 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5146 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5147 (java_print_value_fields): Take `offset' into account. Don't
5148 re-adjust `valaddr'. Instead pass down adjusted offsets.
5149 (java_val_print): Take `embedded_offset' into account. Pass it to
5150 java_print_value_fields.
5151 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5152 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5153 down adjusted offsets.
5154 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5155 (f_val_print): Take `embedded_offset' into account.
5157 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5159 * inflow.c: Include "gdbcmd.h".
5160 (interactive_mode): New static global, moved here from top.c.
5161 (show_interactive_mode): New function, moved here from top.c.
5162 use gdb_has_a_terminal instead of input_from_terminal_p to
5163 determine the current mode.
5164 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5166 (_initialize_inflow): Add the "set/show interactive-mode"
5167 commands. Moved here from top.c, after having adjusted slightly
5169 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5171 (input_from_terminal_p): Remove handling of "interactive-mode"
5172 setting, moved to infow.c.
5173 (init_main): Remove creation of the "set/show interactive-mode"
5174 commands, moved to inflow.c.
5176 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5178 * NEWS: Add entry for native ia64-hpux support.
5180 2011-01-19 Tom Tromey <tromey@redhat.com>
5183 * thread.c (free_thread): Free 'name'.
5184 (print_thread_info): Emit thread name. Change CLI output.
5185 (thread_name_command): New function.
5186 (do_captured_thread_select): Emit newline.
5187 (_initialize_thread): Register 'thread name' command.
5188 * target.h (struct target_ops) <to_thread_name>: New field.
5189 (target_thread_name): New macro.
5190 * target.c (update_current_target): Handle to_thread_name.
5191 * python/py-infthread.c (thpy_get_name): New function.
5192 (thpy_set_name): Likewise.
5193 (thread_object_getset): Add "name".
5194 * linux-nat.c (linux_nat_thread_name): New function.
5195 (linux_nat_add_target): Set to_thread_name.
5196 * gdbthread.h (struct thread_info) <name>: New field.
5198 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5200 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5201 (ada_val_print_1): Likewise.
5203 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5205 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5206 upper limit address is not greater than the function end address
5207 when the upper limit could not be computed using the debugging
5210 2011-01-17 Tom Tromey <tromey@redhat.com>
5212 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5214 * utils.c: Include gdb_regex.h.
5215 (do_regfree_cleanup): New function.
5216 (make_regfree_cleanup): Likewise.
5217 (get_regcomp_error): Likewise.
5218 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5220 2011-01-17 Tom Tromey <tromey@redhat.com>
5222 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5225 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5227 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5228 for internal variables.
5229 (last_was_structop): New static variable.
5230 (COMPLETE): New token.
5231 (field_exp): New rule to group all '.' suffix handling.
5232 Add mark_struct_expression calls when approriate to be able
5233 to correctly find fields for completion.
5234 (yylex): Adapt to handle field completion and set INTVAR when
5237 2011-01-14 Yao Qi <yao@codesourcery.com>
5239 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5240 save_reggroup, restore_reggroup and all_reggroup.
5242 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5244 * ada-valprint. (ada_printchar): Use the correct type length
5245 in call to ada_emit_char.
5246 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5248 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5250 * solib-som.h (hpux_major_release): Declare variable here.
5251 * solib-som.c: Remove <sys/utsname.h> header.
5252 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5253 (hpux_major_release): Make global, change default value to
5254 DEFAULT_HPUX_MAJOR_RELEASE.
5255 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5256 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5257 Add "solib-som.h" header.
5258 (set_hpux_major_release): New function.
5259 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5261 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5263 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5265 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5267 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5268 new-line at end of warning message.
5269 (ia64_hpux_store_register): Remove trailing new-line at end of
5271 * ia64-hpux-tdep.c: Rephrase comment.
5272 * solib-ia64-hpux.c (struct dld_info): Change type of field
5273 dld_flags from "long long" to ULONGEST.
5275 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5277 * target.h (deprecated_child_ops): Delete declaration.
5278 * target.c (deprecated_child_ops): Delete definition.
5280 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5282 * Makefile.in (hpux-thread.o): Delete rule.
5283 * configure.ac: Don't check for HPUX DCE threads support.
5284 * configure, config.in: Regenerate.
5285 * hppa-hpux-nat.c (child_suppress_run): Delete.
5286 (hppa_hpux_child_can_run): Delete.
5287 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5288 * hpux-thread.c: Delete.
5290 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5292 * hpux-thread.c (hpux_pid_to_str): Delete.
5294 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5296 * ada-valprint.c (ada_emit_char): Remove strange code.
5297 Check that c is <= UCHAR_MAX before passing it to isascii.
5298 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5300 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5302 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5303 to the case where instream is stdin.
5305 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5307 * ia64-tdep.h (struct regcache): Forward declare.
5308 (struct ia64_infcall_ops): New struct type.
5309 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5311 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5312 Renames ia64_find_global_pointer.
5313 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5314 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5315 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5317 (ia64_infcall_ops): New static global constant.
5318 (ia64_gdbarch_init): Set tdep->infcall_ops.
5319 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5320 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5321 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5322 (ia64_hpux_dummy_code): New static global constant.
5323 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5324 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5325 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5327 (ia64_hpux_infcall_ops): New static global constant.
5328 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5329 for inferior function calls to work properly on ia64-hpux.
5331 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5333 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5334 * ia64-tdep.h (struct frame_info): forward declaration.
5335 (struct gdbarch_tdep): Add field size_of_register_frame.
5336 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5337 to determine the size of the register frame.
5338 (ia64_size_of_register_frame): New function.
5339 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5340 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5341 (IA64_HPUX_UREG_REASON): New macro.
5342 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5344 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5345 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5346 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5349 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5351 Add support for ia64-hpux.
5352 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5353 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5355 * configure.host: Add handling for ia64-hpux hosts. Add associated
5357 * configure.tgt: Add handling for ia64-hpux targets.
5358 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5359 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5360 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5362 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5364 [ttrace] Compute thread list immediately after attach.
5365 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5367 (inf_ttrace_attach): Use it.
5369 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5371 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5372 if we could not determine the frame's function address. Instead,
5373 use the frame's PC, and then continue.
5375 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5377 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5378 not already defined.
5380 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5382 * ia64-tdep.c (ia64_struct_type_p): New function.
5383 (ia64_extract_return_value): Handle integral values that are
5384 less than 8 bytes long.
5385 (ia64_push_dummy_call): Likewise.
5387 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5389 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5390 floatformat_ia64_ext.
5391 (floatformat_ia64_ext_big): New static const.
5392 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5394 2011-01-12 Tom Tromey <tromey@redhat.com>
5396 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5398 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5399 (mi_cmd_thread_list_ids): Likewise.
5400 (mi_cmd_data_list_changed_registers): Likewise.
5401 (mi_cmd_data_list_register_values): Likewise.
5402 (mi_cmd_data_write_register_values): Likewise.
5403 (mi_cmd_data_evaluate_expression): Likewise.
5404 (mi_cmd_data_read_memory): Likewise.
5405 (mi_cmd_data_read_memory_bytes): Likewise.
5406 (mi_cmd_data_write_memory): Likewise.
5407 (mi_cmd_enable_timings): Likewise.
5408 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5409 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5410 (mi_cmd_var_delete): Likewise.
5411 (mi_cmd_var_set_format): Likewise.
5412 (mi_cmd_var_show_format): Likewise.
5413 (mi_cmd_var_info_num_children): Likewise.
5414 (mi_cmd_var_list_children): Likewise.
5415 (mi_cmd_var_info_type): Likewise.
5416 (mi_cmd_var_info_expression): Likewise.
5417 (mi_cmd_var_show_attributes): Likewise.
5418 (mi_cmd_var_assign): Likewise.
5419 (mi_cmd_var_update): Likewise.
5420 (mi_cmd_enable_pretty_printing): Likewise.
5421 (mi_cmd_var_set_update_range): Likewise.
5422 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5424 (mi_cmd_target_file_put): Likewise.
5425 (mi_cmd_target_file_delete): Likewise.
5426 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5428 (mi_cmd_stack_info_depth): Likewise.
5429 (mi_cmd_stack_list_locals): Likewise.
5430 (mi_cmd_stack_list_args): Likewise.
5431 (mi_cmd_stack_select_frame): Likewise.
5432 (mi_cmd_stack_select_frame): Likewise.
5433 (mi_cmd_stack_info_frame): Likewise.
5434 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5436 (mi_cmd_file_list_exec_source_files): Likewise.
5437 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5438 (mi_cmd_env_cd): Likewise.
5439 (mi_cmd_env_path): Likewise.
5440 (mi_cmd_env_dir): Likewise.
5441 (mi_cmd_inferior_tty_show): Likewise.
5442 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5443 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5444 (mi_cmd_break_watch): Likewise.
5446 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5448 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5449 (ppc_linux_insert_hw_breakpoint): Likewise.
5450 (ppc_linux_remove_hw_breakpoint): Likewise.
5451 (ppc_linux_insert_watchpoint): Likewise.
5453 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5454 Jan Kratochvil <jan.kratochvil@redhat.com>
5456 PR fortran/11104 and DWARF unbound arrays detection.
5457 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5458 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5459 unspecified upper bound.
5460 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5461 variables array_size_array, tmp_type and offset_item. New variable
5462 array. Remove call to f77_get_upperbound. New variables array_type
5463 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5464 the final call to deprecated_set_value_type.
5466 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5468 Make value allocations more lazy.
5469 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5470 instead of allocate_value and set_value_lazy when possible.
5471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5472 instead of allocate_value and set_value_lazy.
5473 * findvar.c (value_of_register_lazy): Likewise.
5474 (read_var_value): Remove V preallocation, call just check_typedef in
5475 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5476 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5477 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5478 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5479 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5480 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5481 the end, remove set_value_lazy there.
5482 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5483 instead of allocate_value and set_value_lazy when possible.
5484 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5485 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5486 of allocate_value and set_value_lazy.
5487 (value_from_contents_and_address): Use allocate_value_lazy instead of
5488 allocate_value and set_value_lazy when possible.
5490 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5492 * disasm.c (dump_insns): Support dumping opcodes for MI.
5493 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5494 dumping of instruction opcodes.
5496 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5498 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5501 2011-01-11 Tom Tromey <tromey@redhat.com>
5503 * thread.c (do_captured_thread_select): Emit newline before
5506 2011-01-11 Michael Snyder <msnyder@vmware.com>
5508 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5509 * score-tdep.c: Ditto.
5510 * score-tdep.h: Ditto.
5511 * ser-base.c: Ditto.
5512 * ser-go32.c: Ditto.
5515 * ser-mingw.c: Ditto.
5516 * ser-pipe.c: Ditto.
5518 * ser-unix.c: Ditto.
5519 * sh64-tdep.c: Ditto.
5520 * shnbsd-nat.c: Ditto.
5524 * solib-darwin.c: Ditto.
5525 * solib-frv.c: Ditto.
5527 * solib-irix.c: Ditto.
5528 * solib-osf.c: Ditto.
5529 * solib-pa64.c: Ditto.
5530 * solib-som.c: Ditto.
5531 * solib-spu.c: Ditto.
5532 * solib-sunos.c: Ditto.
5533 * solib-svr4.c: Ditto.
5535 * sol-thread.c: Ditto.
5539 * sparc64-linux-tdep.c: Ditto.
5540 * sparc64-tdep.c: Ditto.
5541 * sparc-linux-nat.c: Ditto.
5542 * sparc-linux-tdep.c: Ditto.
5543 * sparc-sol2-nat.c: Ditto.
5544 * sparc-sol2-tdep.c: Ditto.
5545 * sparc-tdep.c: Ditto.
5546 * sparc-tdep.h: Ditto.
5547 * spu-tdep.c: Ditto.
5548 * stabsread.c: Ditto.
5549 * stabsread.h: Ditto.
5557 * target-descriptions.c: Ditto.
5558 * target-descriptions.h: Ditto.
5560 * target-memory.c: Ditto.
5561 * terminal.h: Ditto.
5564 * tracepoint.c: Ditto.
5565 * tracepoint.h: Ditto.
5566 * trad-frame.h: Ditto.
5567 * typeprint.c: Ditto.
5569 2011-01-11 Michael Snyder <msnyder@vmware.com>
5571 * ui-file.c: Comment cleanup, mostly periods and spaces.
5576 * v850-tdep.c: Ditto.
5577 * valarith.c: Ditto.
5579 * valprint.c: Ditto.
5580 * valprint.h: Ditto.
5585 * vax-tdep.c: Ditto.
5589 * windows-nat.c: Ditto.
5590 * windows-tdep.c: Ditto.
5591 * xcoffread.c: Ditto.
5592 * xcoffsolib.c: Ditto.
5593 * xml-support.c: Ditto.
5594 * xstormy16-tdep.c: Ditto.
5595 * xtensa-tdep.c: Ditto.
5596 * xtensa-tdep.h: Ditto.
5598 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5600 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5601 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5603 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5604 Thiago Jung Bauermann <bauerman@br.ibm.com>
5606 Implement support for PowerPC BookE ranged watchpoints.
5608 (struct breakpoint_ops) <resources_needed>: New method.
5609 Initialize to NULL in all existing breakpoint_ops instances.
5610 (struct breakpoint) <exact>: New field.
5611 (target_exact_watchpoints): Declare external global.
5612 * breakpoint.c (target_exact_watchpoints): New global flag.
5613 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5614 b->enable_state to bp_enabled before calling
5615 hw_watchpoint_used_count.
5616 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5617 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5619 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5620 if the watchpoint is exact.
5621 (resources_needed_watchpoint): New function.
5622 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5623 (watch_command_1): Set b->exact if the user asked for an exact
5624 watchpoint and one can be set.
5625 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5626 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5627 the user asks for an exact watchpoint and one can be set. Return
5628 number of needed debug registers to watch the expression.
5629 * gdbtypes.c (is_scalar_type): New function, based on
5630 valprint.c:scalar_type_p.
5631 (is_scalar_type_recursive): New function.
5632 * gdbtypes.h (is_scalar_type_recursive): Declare.
5633 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5634 handle regions when ranged watchpoints are available.
5635 (create_watchpoint_request): New function.
5636 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5637 create_watchpoint_request.
5638 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5639 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5640 `set powerpc' and `show powerpc' commands.
5641 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5642 Mention documentation comment in the target macro.
5643 (target_region_ok_for_hw_watchpoint): Document return value.
5645 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5647 * breakpoint.c (update_watchpoint): Decide on using a software or
5648 hardware watchpoint after the bp_locations are created.
5650 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5652 Convert hardware watchpoints to use breakpoint_ops.
5653 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5654 <insert_location>: ... this. Return int instead of void.
5655 Accept pointer to struct bp_location instead of pointer to
5656 struct breakpoint. Adapt all implementations.
5657 (breakpoint_ops) <remove>: Rename to...
5658 <remove_location>: ... this. Accept pointer to struct bp_location
5659 instead of pointer to struct breakpoint. Adapt all implementations.
5660 * breakpoint.c (insert_catchpoint): Delete function.
5661 (insert_bp_location): Call the watchpoint or catchpoint's
5662 breakpoint_ops.insert method.
5663 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5664 breakpoint_ops.remove method.
5665 (insert_watchpoint, remove_watchpoint): New functions.
5666 (watchpoint_breakpoint_ops): New structure.
5667 (watch_command_1): Initialize the OPS field.
5668 * inf-child.c (inf_child_insert_fork_catchpoint)
5669 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5670 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5671 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5673 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5674 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5675 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5676 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5677 * target.c (update_current_target): Change default implementation of
5678 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5679 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5680 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5681 to_set_syscall_catchpoint to return_one.
5682 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5683 (debug_to_insert_exec_catchpoint): Report return value.
5684 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5685 (to_insert_exec_catchpoint): Change declaration to return int instead
5688 2011-01-11 Michael Snyder <msnyder@vmware.com>
5690 * arm-tdep.c: Internationalization.
5693 * fork-child.c: Ditto.
5694 * nto-procfs.c: Ditto.
5695 * ppc-sysv-tdep.c: Ditto.
5697 * remote-mips.c: Ditto.
5699 * rs6000-nat.c: Ditto.
5700 * rs6000-tdep.c: Ditto.
5704 * xml-support.c: Ditto.
5705 * mi/mi-cmd-break.c: Ditto.
5706 * mi/mi-cmd-var.c: Ditto.
5707 * mi/mi-interp.c: Ditto.
5708 * mi/mi-main.c: Ditto.
5710 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5712 * remote-sim.c (gdbsim_store_register): Update API to
5713 sim_store_register to check more error conditions.
5715 2011-01-10 Michael Snyder <msnyder@vmware.com>
5717 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5718 * nto-tdep.c: Ditto.
5719 * nto-tdep.h: Ditto.
5720 * objc-exp.y: Ditto.
5721 * objc-lang.c: Ditto.
5722 * objfiles.c: Ditto.
5723 * objfiles.h: Ditto.
5724 * observer.c: Ditto.
5725 * opencl-lang.c: Ditto.
5728 * parser-defs.h: Ditto.
5731 * posix-hdep.c: Ditto.
5732 * ppcbug-rom.c: Ditto.
5733 * ppc-linux-nat.c: Ditto.
5734 * ppc-linux-tdep.c: Ditto.
5735 * ppc-linux-tdep.h: Ditto.
5736 * ppcnbsd-tdep.c: Ditto.
5737 * ppcobsd-tdep.c: Ditto.
5738 * ppcobsd-tdep.h: Ditto.
5739 * ppc-sysv-tdep.c: Ditto.
5740 * ppc-tdep.h: Ditto.
5741 * printcmd.c: Ditto.
5742 * proc-abi.c: Ditto.
5743 * proc-flags.c: Ditto.
5745 * proc-utils.h: Ditto.
5746 * progspace.h: Ditto.
5747 * prologue-value.c: Ditto.
5748 * prologue-value.h: Ditto.
5749 * psympriv.h: Ditto.
5751 * p-typeprint.c: Ditto.
5752 * p-valprint.c: Ditto.
5753 * ravenscar-sparc-thread.c: Ditto.
5754 * ravenscar-thread.c: Ditto.
5755 * ravenscar-thread.h: Ditto.
5757 * regcache.c: Ditto.
5758 * regcache.h: Ditto.
5760 * remote-fileio.c: Ditto.
5761 * remote-fileio.h: Ditto.
5763 * remote-m32r-sdi.c: Ditto.
5764 * remote-mips.c: Ditto.
5765 * remote-sim.c: Ditto.
5766 * rs6000-aix-tdep.c: Ditto.
5767 * rs6000-nat.c: Ditto.
5768 * rs6000-tdep.c: Ditto.
5770 2011-01-10 Michael Snyder <msnyder@vmware.com>
5772 * charset.c (validate): Internationalization.
5773 * coffread.c (read_one_sym): Ditto.
5774 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5775 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5776 * inflow.c (new_tty): Ditto.
5777 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5778 * m32c-tdep.c (m32c_return_value): Ditto.
5779 * mep-tdep.c (mep_store_return_value): Ditto.
5780 * score-tdep.c (score7_fetch_insn): Ditto.
5781 * ser-mingw.c (pipe_windows_open): Ditto.
5782 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5783 * spu-tdep.c (spu_register_type): Ditto.
5784 * tracepoint.c (trace_find_command): Ditto.
5785 * valarith.c (value_pos): Ditto.
5787 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5789 * ada-valprint.c (printstr): Minor comment reformatting.
5791 2011-01-08 Michael Snyder <msnyder@vmware.com>
5793 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5796 2011-01-08 Michael Snyder <msnyder@vmware.com>
5798 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5799 * hppa-hpux-tdep.c: Ditto.
5800 * hppa-linux-nat.c: Ditto.
5801 * hppa-linux-tdep.c: Ditto.
5802 * hppanbsd-tdep.c: Ditto.
5803 * hppa-tdep.c: Ditto.
5804 * hppa-tdep.h: Ditto.
5805 * hpux-thread.c: Ditto.
5806 * i386-cygwin-tdep.c: Ditto.
5807 * i386-darwin-nat.c: Ditto.
5808 * i386gnu-nat.c: Ditto.
5809 * i386-linux-nat.c: Ditto.
5810 * i386-linux-tdep.c: Ditto.
5811 * i386-nat.c: Ditto.
5812 * i386-nat.h: Ditto.
5813 * i386nbsd-tdep.c: Ditto.
5814 * i386-sol2-nat.c: Ditto.
5815 * i386-stub.c: Ditto.
5816 * i386-tdep.c: Ditto.
5817 * i386-tdep.h: Ditto.
5818 * i387-tdep.c: Ditto.
5819 * ia64-linux-nat.c: Ditto.
5820 * ia64-linux-tdep.c: Ditto.
5821 * ia64-tdep.c: Ditto.
5825 * inferior.c: Ditto.
5826 * inferior.h: Ditto.
5832 * iq2000-tdep.c: Ditto.
5833 * irix5-nat.c: Ditto.
5839 * jv-typeprint.c: Ditto.
5840 * jv-valprint.c: Ditto.
5841 * language.c: Ditto.
5842 * language.h: Ditto.
5843 * linespec.c: Ditto.
5844 * linux-fork.c: Ditto.
5845 * linux-nat.c: Ditto.
5846 * linux-thread-db.c: Ditto.
5847 * lm32-tdep.c: Ditto.
5849 2011-01-08 Michael Snyder <msnyder@vmware.com>
5851 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5853 * m2-typeprint.c: Ditto.
5854 * m2-valprint.c: Ditto.
5855 * m32c-tdep.c: Ditto.
5856 * m32r-linux-nat.c: Ditto.
5857 * m32r-rom.c: Ditto.
5858 * m32r-tdep.c: Ditto.
5859 * m32r-tdep.h: Ditto.
5860 * m68hc11-tdep.c: Ditto.
5861 * m58klinux-nat.c: Ditto.
5862 * m68k-tdep.c: Ditto.
5863 * m88k-tdep.c: Ditto.
5864 * m88k-tdep.h: Ditto.
5865 * machoread.c: Ditto.
5866 * macrocmd.c: Ditto.
5867 * macroexp.c: Ditto.
5868 * macrotab.c: Ditto.
5871 * mdebugread.c: Ditto.
5872 * mdebugread.h: Ditto.
5875 * memory-map.h: Ditto.
5876 * mep-tdep.c: Ditto.
5877 * microblaze-rom.c: Ditto.
5878 * microblaze-tdep.c: Ditto.
5880 * mips-irix-tdep.c: Ditto.
5881 * mips-linux-nat.c: Ditto.
5882 * mips-linux-tdep.c: Ditto.
5883 * mips-linux-tdep.h: Ditto.
5884 * mipsnbsd-nat.c: Ditto.
5885 * mipsnbsd-tdep.c: Ditto.
5886 * mipsread.c: Ditto.
5887 * mips-tdep.c: Ditto.
5888 * mips-tdep.h: Ditto.
5889 * mn10300-linux-tdep.c: Ditto.
5890 * mn10300-tdep.c: Ditto.
5891 * mn10300-tdep.h: Ditto.
5894 * moxie-tdep.c: Ditto.
5895 * moxie-tdep.h: Ditto.
5898 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5900 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5902 2011-01-08 Robert Millan <rmh@gnu.org>
5904 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5906 2011-01-07 Michael Snyder <msnyder@vmware.com>
5908 * charset.c (_initialize_charset): Fix typo in string.
5910 2011-01-07 Michael Snyder <msnyder@vmware.com>
5912 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5914 * tui/tui-layout.c (tui_set_layout_for_display_command):
5915 Split line so that operator goes to beginning of line.
5916 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5917 assignment out of if statement.
5919 2011-01-07 Michael Snyder <msnyder@vmware.com>
5921 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5922 * ada-lang.h: Ditto.
5923 * ada-tasks.c: Ditto.
5924 * ada-valprint.c: Ditto.
5925 * aix-threads.c: Ditto.
5926 * alpha-linux-nat.c: Ditto.
5927 * alpha-linux-tdep.c: Ditto.
5928 * alpha-mdebug-tdep.c: Ditto.
5929 * alpha-nat.c: Ditto.
5930 * alpha-osf1-tdep.c: Ditto.
5931 * alpha-tdep.c: Ditto.
5932 * alphabsd-nat.c: Ditto.
5933 * alphabsd-tdep.c: Ditto.
5934 * amd64-darwin-tdep.c: Ditto.
5935 * amd64-linux-nat.c: Ditto.
5936 * amd64-linux-tdep.c: Ditto.
5937 * amd64-sol2-tdep.c: Ditto.
5938 * amd64-tdep.c: Ditto.
5939 * amd64-fbsd-tdep.c: Ditto.
5940 * amd64-nbsd-tdep.c: Ditto.
5941 * amd64-obsd-tdep.c: Ditto.
5942 * amd64-linux-nat.c: Ditto.
5943 * amd64-linux-tdep.c: Ditto.
5944 * arm-tdep.c: Ditto.
5945 * arm-tdep.h: Ditto.
5946 * armnbsd-nat.c: Ditto.
5947 * avr-tdep.c: Ditto.
5948 * bfin-tdep.c: Ditto.
5950 * c-typeprintc: Ditto.
5951 * c-valprint.c: Ditto.
5952 * coff-pe-read.h: Ditto.
5953 * coffreead.c: Ditto.
5954 * cris-tdep.c: Ditto.
5956 * darwin-nat-info.c: Ditto.
5957 * darwin-nat.c: Ditto.
5958 * dbug-rom.c: Ditto.
5962 * dec-thread.c: Ditto.
5964 * demangle.c: Ditto.
5965 * dicos-tdep.c: Ditto.
5966 * dictionary.c: Ditto.
5967 * dictionary.h: Ditto.
5968 * dink32-rom.c: Ditto.
5970 * doublest.c: Ditto.
5972 * dummy-frame.c: Ditto.
5973 * dwarf2-frame.c: Ditto.
5974 * dwarf2expr.c: Ditto.
5975 * dwarf2loc.c: Ditto.
5976 * dwarf2read.c: Ditto.
5980 * event-top.h: Ditto.
5981 * exceptions.c: Ditto.
5982 * exceptions.h: Ditto.
5984 * expprint.c: Ditto.
5985 * expression.h: Ditto.
5989 * f-typeprint.c: Ditto.
5990 * f-valprint.c: Ditto.
5991 * fbsd-nat.c: Ditto.
5993 * fork-child.c: Ditto.
5996 * frv-linux-tdep.c: Ditto.
5997 * frv-tdep.c: Ditto.
5999 * gdb-stabs.h: Ditto.
6000 * gdb_assert.h: Ditto.
6001 * gdb_string.h: Ditto.
6002 * gdb_thread_db.h: Ditto.
6003 * gdb_wait.h: Ditto.
6004 * gdbarch.sh: Ditto.
6006 * gdbthread.h: Ditto.
6007 * gdbtypes.c: Ditto.
6008 * gdbtypes.h: Ditto.
6011 * gnu-v2-abi.c: Ditto.
6012 * gnu-v3-abi.c: Ditto.
6013 * go32-nat.c: Ditto.
6014 * gdbarch.c: Regenerate.
6015 * gdbarch.h: Regenerate.
6017 2011-01-07 Michael Snyder <msnyder@vmware.com>
6019 * ax-gdb.c: Adjust some long output strings.
6020 * breakpoint.c: Ditto.
6025 * linux-nat.c: Ditto.
6026 * solib-pa64.c: Ditto.
6027 * solib-som.c: Ditto.
6029 2011-01-06 Tom Tromey <tromey@redhat.com>
6033 * python/python.c (GdbMethods): Add "newest_frame" method.
6034 * python/python-internal.h (gdbpy_newest_frame): Declare.
6035 * python/py-frame.c (gdbpy_newest_frame): New function.
6037 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6039 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6040 * jit.c (jit_debug): New variable.
6041 (show_jit_debug): New function.
6042 (struct target_buffer): Use ULONGEST.
6043 (bfd_open_from_target_memory): Likewise.
6044 (jit_register_code, jit_inferior_init): Add debug output.
6045 (_initialize_jit): Register "debug jit" command.
6047 2011-01-06 Tom Tromey <tromey@redhat.com>
6049 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6050 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6053 2011-01-06 Tom Tromey <tromey@redhat.com>
6055 * python/py-frame.c (frapy_block): Use get_frame_block.
6057 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6059 Do not stop on SIGPRIO signals by default
6060 * infrun.c (_initialize_infrun): Unset signal_stop and
6061 signal_print for TARGET_SIGNAL_PRIO.
6063 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6065 * ada-tasks.c: Fix style violation in comment.
6067 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6069 * linespec.c (decode_compound, find_method): Remove trailing \n
6070 at end of error string.
6071 * solib-irix.c (irix_current_sos): Likewise.
6072 * varobj.c (uninstall_variable): Likewise.
6074 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6076 * copyright.py: New script.
6077 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6078 Launch emacs without exec'ing. Call copyright.py afterwards.
6080 2011-01-05 Michael Snyder <msnyder@vmware.com>
6082 * addrmap.c: Shorten lines of >= 80 columns.
6083 * arch-utils.c: Ditto.
6084 * arch-utils.h: Ditto.
6086 * ax-general.c: Ditto.
6088 * blockframe.c: Ditto.
6089 * breakpoint.c: Ditto.
6090 * buildsym.c: Ditto.
6092 * c-typeprint.c: Ditto.
6094 * coffread.c: Ditto.
6098 * cp-namespace.c: Ditto.
6099 * cp-support.c: Ditto.
6100 * dbug-rom.c: Ditto.
6105 * dictionary.c: Ditto.
6107 * doublest.c: Ditto.
6108 * dwarf2-frame.c: Ditto.
6109 * dwarf2expr.c: Ditto.
6110 * dwarf2loc.c: Ditto.
6111 * dwarf2read.c: Ditto.
6114 * event-loop.c: Ditto.
6115 * event-loop.h: Ditto.
6116 * exceptions.h: Ditto.
6118 * expprint.c: Ditto.
6119 * expression.h: Ditto.
6121 * f-valprint.c: Ditto.
6123 * frame-base.c: Ditto.
6124 * frame-unwind.c: Ditto.
6125 * frame-unwind.h: Ditto.
6129 * gdb-stabs.h: Ditto.
6130 * gdb_assert.h: Ditto.
6131 * gdb_dirent.h: Ditto.
6132 * gdb_obstack.h: Ditto.
6134 * gdbtypes.c: Ditto.
6135 * gdbtypes.h: Ditto.
6136 * inf-ttrace.c: Ditto.
6141 * inline-frame.h: Ditto.
6142 * language.c: Ditto.
6143 * language.h: Ditto.
6144 * libunwind-frame.c: Ditto.
6145 * libunwind-frame.h: Ditto.
6146 * linespec.c: Ditto.
6147 * linux-nat.c: Ditto.
6148 * linux-nat.h: Ditto.
6149 * linux-thread-db.c: Ditto.
6150 * machoread.c: Ditto.
6151 * macroexp.c: Ditto.
6152 * macrotab.c: Ditto.
6155 * mdebugread.c: Ditto.
6160 * objfiles.c: Ditto.
6161 * objfiles.h: Ditto.
6163 * p-typeprint.c: Ditto.
6164 * p-valprint.c: Ditto.
6166 * printcmd.c: Ditto.
6167 * proc-events.c: Ditto.
6169 * progspace.c: Ditto.
6170 * progspace.h: Ditto.
6171 * psympriv.h: Ditto.
6174 * regcache.c: Ditto.
6175 * regcache.h: Ditto.
6176 * remote-fileio.c: Ditto.
6178 * ser-mingw.c: Ditto.
6180 * ser-unix.c: Ditto.
6183 * solib-frv.c: Ditto.
6184 * solib-irix.c: Ditto.
6185 * solib-osf.c: Ditto.
6186 * solib-pa64.c: Ditto.
6187 * solib-som.c: Ditto.
6188 * solib-sunos.c: Ditto.
6189 * solib-svr4.c: Ditto.
6190 * solib-target.c: Ditto.
6194 * stabsread.c: Ditto.
6195 * stabsread.c: Ditto.
6198 * symfile-mem.c: Ditto.
6204 * target-descriptions.c: Ditto.
6205 * target-memory.c: Ditto.
6208 * terminal.h: Ditto.
6211 * tracepoint.c: Ditto.
6212 * tracepoint.h: Ditto.
6216 * user-regs.c: Ditto.
6217 * user-regs.h: Ditto.
6219 * valarith.c: Ditto.
6221 * valprint.c: Ditto.
6222 * valprint.h: Ditto.
6227 * xcoffread.c: Ditto.
6228 * xcoffsolib.c: Ditto.
6229 * xcoffsolib.h: Ditto.
6230 * xml-syscall.c: Ditto.
6231 * xml-tdesc.c: Ditto.
6233 2011-01-05 Michael Snyder <msnyder@vmware.com>
6235 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6236 * cli/cli-decode.c: Ditto.
6237 * cli/cli-dump.c: Ditto.
6238 * cli/cli-logging.c: Ditto.
6239 * cli/cli-script.c: Ditto.
6240 * cli/cli-setshow.c: Ditto.
6241 * common/signals.c: Ditto.
6242 * mi/mi-cmd-break.c: Ditto.
6243 * mi/mi-cmd-disas.c: Ditto.
6244 * mi/mi-cmd-stack.c: Ditto.
6245 * mi/mi-cmd-var.c: Ditto.
6246 * mi/mi-cmds.c: Ditto.
6247 * mi/mi-common.h: Ditto.
6248 * mi/mi-console.c: Ditto.
6249 * mi/mi-interp.c: Ditto.
6250 * mi/mi-main.c: Ditto.
6251 * osf-share/cma_attr.c: Ditto.
6252 * osf-share/cma_deb_core.h: Ditto.
6253 * osf-share/cma_debug_client.h: Ditto.
6254 * osf-share/cma_handle.h: Ditto.
6255 * osf-share/cma_mutex.h: Ditto.
6256 * osf-share/cma_stack_int.h: Ditto.
6257 * osf-share/cma_tcb_defs.h: Ditto.
6258 * python/py-auto-load.c: Ditto.
6259 * python/py-breakpoint.c: Ditto.
6260 * python/py-cmd.c: Ditto.
6261 * python/py-frame.c: Ditto.
6262 * python/py-objfile.c: Ditto.
6263 * python/py-param.c: Ditto.
6264 * python/py-progspace.c: Ditto.
6265 * python/py-symbol.c: Ditto.
6266 * python/py-value.c: Ditto.
6267 * python/python-internal.h: Ditto.
6268 * python/python.c: Ditto.
6269 * tui/tui-data.c: Ditto.
6270 * tui/tui-disasm.c: Ditto.
6271 * tui/tui-hooks.c: Ditto.
6272 * tui/tui-io.c: Ditto.
6273 * tui/tui-layout.c: Ditto.
6274 * tui/tui-regs.c: Ditto.
6275 * tui/tui-source.c: Ditto.
6276 * tui/tui-stack.c: Ditto.
6277 * tui/tui-win.c: Ditto.
6278 * tui/tui-windata.c: Ditto.
6279 * tui/tui-winsource.c: Ditto.
6281 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6283 * configure.ac, gdb.1: Copyright year update.
6285 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6287 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6288 this_pc_in_block, morestack_msym and morestack_name. Check for
6289 "__morestack" minimal symbol there.
6291 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6293 * symfile.c (find_sym_fns): Add call to dont_repeat.
6295 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6297 Copyright year update in most files (performed by copyright.sh).
6299 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6301 * top.c (print_gdb_version): Update copyright year in version output.
6303 For older changes see ChangeLog-2010.
6309 version-control: never