1 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3 * defs.h (struct thread_info, struct inferior): Delete forward
5 * breakpoint.h (struct thread_info): New forward declaration.
6 * observer.sh (struct inferior): New forward declaration.
7 * python/python-internal.h (struct inferior): New forward
10 2011-05-27 Pedro Alves <pedro@codesourcery.com>
12 * defs.h (struct continuation, continuation_ftype)
13 (continuation_free_arg_ftype, add_continuation)
14 (do_all_continuations, do_all_continuations_thread)
15 (discard_all_continuations, discard_all_continuations_thread)
16 (add_intermediate_continuation, do_all_intermediate_continuations)
17 (do_all_intermediate_continuations_thread)
18 (discard_all_intermediate_continuations)
19 (discard_all_intermediate_continuations_thread)
20 (add_inferior_continuation, do_all_inferior_continuations)
21 (discard_all_inferior_continuations): Move to ...
22 * continuations.h: ... this new file.
23 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
24 infcmd.c, inferior.c, infrun.c, interps.c: Include
27 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
28 Doug Evans <dje@google.com>
30 Fix PR 10970, PR 12702.
31 * linux-nat.c (linux_lwp_is_zombie): New function.
32 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
33 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
35 2011-05-27 Pedro Alves <pedro@codesourcery.com>
37 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
39 (add_continuation, add_intermediate_continuation)
40 (add_inferior_continuation): Use them.
41 * continuations.c (struct continuation): Use them.
42 (make_continuation_ftype): Delete.
43 (make_continuation, add_inferior_continuation, add_continuation)
44 (add_intermediate_continuation): Use continuation_ftype and
45 continuation_free_arg_ftype. Rename parameters to shorter names.
47 2011-05-27 Pedro Alves <pedro@codesourcery.com>
49 * continuations.c (make_continuation): Make it return void.
50 (do_my_continuations): Rename to ...
51 (do_my_continuations_1): ... this. Remove old_chain parameter and
53 (do_my_continuations): New.
54 (discard_my_continuations): Rename to ...
55 (discard_my_continuations_1): ... this. Remove old_chain
57 (discard_my_continuations): New.
58 (add_inferior_continuation): Simplify.
59 (do_all_inferior_continuations): Reimplement on top
61 (discard_all_inferior_continuations): Simplify.
62 (add_continuation): Simplify.
63 (do_all_continuations_ptid): Simplify.
64 (discard_all_continuations_thread_callback): Simplify.
65 (add_intermediate_continuation): Simplify.
66 (discard_all_intermediate_continuations_thread_callback):
69 2011-05-27 Pedro Alves <pedro@codesourcery.com>
71 * utils.c (struct continuation, add_continuation)
72 (add_inferior_continuation)
73 (do_all_inferior_continuations, discard_all_inferior_continuations)
74 (restore_thread_cleanup, do_all_continuations_ptid)
75 (do_all_continuations_thread_callback)
76 (do_all_continuations_thread, do_all_continuations)
77 (discard_all_continuations_thread_callback)
78 (discard_all_continuations_thread, discard_all_continuations)
79 (add_intermediate_continuation)
80 (do_all_intermediate_continuations_thread_callback)
81 (do_all_intermediate_continuations_thread)
82 (do_all_intermediate_continuations)
83 (discard_all_intermediate_continuations_thread_callback)
84 (discard_all_intermediate_continuations_thread)
85 (discard_all_intermediate_continuations): Move to ...
86 * continuations.c: ... this new file, and adjust to no longer
87 implement continuations on top of cleanups.
88 * Makefile.in (SFILES): Add continuations.c.
89 (COMMON_OBS): Add continuations.o.
91 2011-05-26 Pedro Alves <pedro@codesourcery.com>
93 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
94 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
95 Internal error on invalid values.
96 * reverse.c: Don't handle EXEC_ERROR.
97 * mi/mi-main.c: Don't handle EXEC_ERROR.
99 2011-05-26 Pedro Alves <pedro@codesourcery.com>
101 * record.c: Include event-loop.h, inf-loop.h.
102 (record_beneath_to_async): New global.
103 (tmp_to_async): New global.
104 (record_async_inferior_event_token): New global.
105 (record_open_1): Don't error out if async is enabled.
106 (record_open): Handle to_async. Create an async event source in
108 (record_close): Delete the async event source.
109 (record_resumed): New global.
110 (record_execution_dir): New global.
111 (record_resume, record_core_resume): Set them. Register the
112 target on the event loop.
113 (record_wait): Rename to ...
114 (record_wait_1): ... this. Add more debug output. Handle
115 TARGET_WNOHANG, and the target beneath returning
116 TARGET_WAITKIND_IGNORE.
117 (record_wait): Reimplement on top of record_wait_1.
118 (record_async_mask_value): New global.
119 (record_async, record_async_mask, record_can_async_p)
120 (record_is_async_p, record_execution_direction): New functions.
121 (init_record_ops, init_record_core_ops): Install new methods.
122 * infrun.c (fetch_inferior_event): Temporarily switch the global
123 execution direction to the direction the target was going.
124 (execution_direction): Change type to int.
125 * target.c (default_execution_direction): New function.
126 (update_current_target): Inherit and de_fault
127 to_execution_direction.
128 * target.h (struct target_ops) <to_execution_direction>: New
130 (target_execution_direction): New macro.
131 * inferior.h (execution_direction): Change type to int.
133 2011-05-26 Pedro Alves <pedro@codesourcery.com>
135 * infcall.c (call_function_by_hand): Don't allow calling functions
136 in reverse execution mode.
138 2011-05-26 Pedro Alves <pedro@codesourcery.com>
140 * infcmd.c (finish_command): Allow async finish in reverse.
142 2011-05-26 Yao Qi <yao@codesourcery.com>
144 * gdb_thread_db.h: Delete. Move to ...
145 * common/gdb_thread_db.h: ... here.
147 2011-05-26 Pedro Alves <pedro@codesourcery.com>
149 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
150 function's entry point instead of a manually managed momentary
151 breakpoint, and only ever issue one proceed call.
152 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
153 doing a reverse-finish, switch to stepi mode, to do another step.
154 (insert_step_resume_breakpoint_at_sal): Make public.
155 (normal_stop): No need to save function value return registers if
157 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
159 2011-05-26 Pedro Alves <pedro@codesourcery.com>
161 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
162 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
163 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
165 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
166 step-resume breakpoints.
167 (print_it_typical): Handle bp_hp_step_resume.
168 (bpstat_what): Ditto.
169 (bptype_string): Ditto.
170 (print_one_breakpoint_location): Ditto.
171 (allocate_bp_location): Ditto.
173 (breakpoint_re_set_one): Ditto.
174 * infrun.c (handle_inferior_event): Adjust. Split
175 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
176 BPSTAT_WHAT_HP_STEP_RESUME.
177 (insert_step_resume_breakpoint_at_sal): Rename to ...
178 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
179 parameter. Handle it.
180 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
181 insert_step_resume_breakpoint_at_sal_1.
182 (insert_step_resume_breakpoint_at_frame): Rename to ...
183 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
184 set a high-priority step-resume breakpoint.
185 (insert_step_resume_breakpoint_at_frame): Adjust comment.
186 (insert_step_resume_breakpoint_at_caller): Ditto.
188 2011-05-26 Pedro Alves <pedro@codesourcery.com>
190 * breakpoint.c (iterate_over_related_breakpoints): New.
191 (do_map_delete_breakpoint): New.
192 (delete_command): Pass do_map_delete_breakpoint to
193 map_breakpoint_numbers.
194 (do_disable_breakpoint): New.
195 (do_map_disable_breakpoint): Iterate over the breakpoint's related
197 (do_enable_breakpoint): Rename to ...
198 (enable_breakpoint_disp): ... this.
199 (enable_breakpoint): Adjust.
200 (do_enable_breakpoint): New.
201 (enable_once_breakpoint): Delete.
202 (do_map_enable_breakpoint): New.
203 (do_map_enable_once_breakpoint): New.
204 (enable_once_command, enable_delete_command)
205 (delete_trace_command): Iterate over the breakpoint's related
208 2011-05-26 Pedro Alves <pedro@codesourcery.com>
210 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
211 for ALPHA_ZERO_REGNUM.
212 (alpha_supply_int_regs): Explicitly supply zero as the value for
213 ALPHA_ZERO_REGNUM in the register cache.
214 * alpha-nat.c (fetch_osf_core_registers): Ditto.
216 2011-05-26 Yao Qi <yao@codesourcery.com>
218 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
220 2011-05-26 Tristan Gingold <gingold@adacore.com>
222 * symfile.h (struct dwarf2_section_names): New type.
223 (struct dwarf2_debug_sections): New type.
224 (dwarf2_has_info): Add parameter.
225 * dwarf2read.c (dwarf2_elf_names): New variable.
226 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
227 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
228 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
229 (dwarf2_has_info): Add names parameter. Pass names
230 to dwarf2_locate_sections.
231 (section_is_p): Rewrite using the names parameter.
232 (dwarf2_locate_sections): Use section names from the names parameter.
233 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
234 * elfread.c (read_psyms): Ditto.
235 * machoread.c (macho_symfile_read): Ditto.
237 2011-05-25 Andreas Schwab <schwab@redhat.com>
240 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
242 2011-05-24 Keith Seitz <keiths@redhat.com>
245 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
246 (decode_compound): Unconditionally call keep_name_info.
248 2011-05-24 Pedro Alves <pedro@codesourcery.com>
250 * breakpoint.c (watchpoint_check): If the watchpoint went out of
251 scope, clear its command list.
252 (map_breakpoint_numbers): Don't walk the related breakpoints list
255 2011-05-24 Tom Tromey <tromey@redhat.com>
257 * MAINTAINERS: Move Jim Blandy to past maintainers.
259 2011-05-24 Tristan Gingold <gingold@adacore.com>
261 * symfile.h (enum dwarf2_section_enum): New type.
262 (dwarf2_get_section_info): New prototype.
263 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
264 section_name by sect. Use a switch to select the info.
265 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
266 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
268 2011-05-24 Pedro Alves <pedro@codesourcery.com>
270 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
271 shared library event breakpoint if there's no execution.
273 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
275 * breakpont.c (remove_hw_watchpoints): Remove unused function.
276 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
278 2011-05-23 Tom Tromey <tromey@redhat.com>
280 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
283 2011-05-23 Doug Evans <dje@google.com>
285 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
286 entry for RuntimeError to doc string.
288 2011-05-23 Jerome Guitton <guitton@adacore.com>
290 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
291 sequence for probing loops.
293 2011-05-23 Pedro Alves <pedro@codesourcery.com>
295 * infrun.c (user_visible_resume_ptid): Fix typos in describing
298 2011-05-21 Mark Kettenis <kettenis@gnu.org>
300 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
301 zero as the value for %g0 in the register cache.
302 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
303 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
305 2011-05-20 Pedro Alves <pedro@codesourcery.com>
307 * infrun.c (proceed): Set previous_inferior_ptid here.
308 (init_wait_for_inferior): Initialize previous_inferior_ptid from
309 inferior_ptid, not null_ptid.
310 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
311 (fetch_inferior_event): Nor here.
313 2011-05-20 Pedro Alves <pedro@codesourcery.com>
315 * inf-loop.c (inferior_event_handler): Only output a message if
318 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
320 * MAINTAINERS: Update my e-mail address.
322 2011-05-20 Pedro Alves <pedro@codesourcery.com>
324 * infrun.c (proceed): Switch the inferior event loop to
325 INF_EXEC_COMPLETE if the target refused to resume from a
328 2011-05-20 Pedro Alves <pedro@codesourcery.com>
330 * infcmd.c: Include "inf-loop.h".
331 (step_once): When stepping into an inline subroutine, pretend the
332 target has run. If the target can async, switch the inferior
333 event loop to INF_EXEC_COMPLETE.
334 * inferior.h (user_visible_resume_ptid): Declare.
335 * infrun.c (user_visible_resume_ptid): New function, factored out
338 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
339 that the current thread is running. Merge async and sync
342 2011-05-20 Pedro Alves <pedro@codesourcery.com>
344 * infcmd.c (step_1): Simplify synchronous case.
346 2011-05-20 Pedro Alves <pedro@codesourcery.com>
348 * tracepoint.c: Include exceptions.h.
349 (TFILE_PID): Move higher in file.
350 (tfile_open): Delay pushing the tfile target until we're assured
351 the tfile header is present in the file. Wrap reading the initial
352 newline-terminated lines in TRY_CATCH. Pop the target if the
353 initial setup failed. Add the tfile's thread immediately
354 aftwards, before any non-essential setup. Don't skip
355 post_create_inferior if there are no traceframes present in the
357 (tfile_close): Remove redundant check for null before xfree call.
358 (tfile_thread_alive): New function.
359 (init_tfile_ops): Register it as to_thread_alive callback.
361 2011-05-20 Pedro Alves <pedro@codesourcery.com>
363 * tracepoint.c (tfile_open): Delete #if 0'd code.
365 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
367 Fix -readnow for -gdwarf-4 unused type units.
368 * dwarf2read.c (struct signatured_type): Remove the field offset.
369 (create_signatured_type_table_from_index): Remove its initialization.
370 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
371 instead. Add a complaint call.
372 (process_psymtab_comp_unit): Change assignment to gdb_assert.
373 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
374 (lookup_signatured_type_at_offset, read_signatured_type)
375 (write_one_signatured_type): Update the field for per_cu.
377 2011-05-19 Tom Tromey <tromey@redhat.com>
379 * python/py-inferior.c (python_inferior_exit): Use
381 (python_on_resume): Likewise.
383 2011-05-19 Matt Rice <ratmice@gmail.com>
385 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
387 2011-05-19 Hui Zhu <teawater@gmail.com>
389 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
391 2011-05-19 Hui Zhu <teawater@gmail.com>
393 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
395 2011-05-18 Tom Tromey <tromey@redhat.com>
397 * dwarf2read.c (dwarf2_add_field): Constify.
398 * value.c (value_static_field): Constify.
399 * gdbtypes.h (struct main_type) <field.field_location.physname>:
401 * ax-gdb.c (gen_static_field): Constify
403 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
405 * linux-nat.c (kill_callback): Use SIGKILL first.
407 2011-05-18 Joel Brobecker <brobecker@adacore.com>
409 * ada-lang.c (print_it_exception): Avoid use of sprintf.
411 2011-05-18 Tom Tromey <tromey@redhat.com>
413 * value.c (value_fn_field): Constify.
414 * symtab.c (gdb_mangle_name): Constify.
415 * stabsread.c (update_method_name_from_physname): Make 'physname'
417 * p-typeprint.c (pascal_type_print_method_args): Make arguments
418 const. Use explicit fputc_filtered loop.
419 (pascal_type_print_base): Constify.
420 * p-lang.h (pascal_type_print_method_args): Update.
421 * linespec.c (add_matching_methods): Constify.
422 (add_constructors): Likewise.
423 * jv-typeprint.c (java_type_print_base): Constify.
424 * gdbtypes.h (struct cplus_struct_type)
425 <fn_fieldlist.fn_field.physname>: Now const.
426 * dwarf2read.c (compute_delayed_physnames): Constify.
427 (dwarf2_add_member_fn): Likewise.
428 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
430 2011-05-18 Pedro Alves <pedro@codesourcery.com>
432 * infrun.c (resume): Mention which is the current thread, and its
433 current PC in debug output.
434 (prepare_to_proceed): Mention the thread switching in debug
437 2011-05-18 Tom Tromey <tromey@redhat.com>
439 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
440 path check. Use xmalloc and cleanups.
441 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
443 2011-05-17 Tom Tromey <tromey@redhat.com>
445 * cp-valprint.c (cp_print_value_fields): Catch errors from
448 2011-05-17 Tom Tromey <tromey@redhat.com>
450 * dwarf2read.c (dwarf2_get_die_type): Call
451 get_die_type_at_offset.
452 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
453 get_base_type function.
455 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
457 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
460 2011-05-16 Doug Evans <dje@google.com>
462 * python/py-auto-load.c (source_section_scripts): Mention objfile
465 2011-05-15 Doug Evans <dje@google.com>
467 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
468 (try_thread_db_load_from_pdir): Call it. If unable to find
469 libthread_db in directory of libpthread, see if we're looking at
470 the separate-debug-info copy.
472 * python/py-autoload.c (print_script): Print "Missing" instead of
473 "No" for missing scripts.
474 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
476 2011-05-13 Doug Evans <dje@google.com>
478 * ui-file.c (stdio_file_write_async_safe): Add comment.
480 2011-05-14 Hui Zhu <teawater@gmail.com>
482 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
484 2011-05-13 Doug Evans <dje@google.com>
486 Support $pdir and $sdir in libthread-db-search-path.
487 * NEWS: Mention $sdir,$pdir.
488 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
489 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
490 (try_thread_db_load_from_sdir): New function.
491 (try_thread_db_load_from_dir): New function.
492 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
493 system directories if search of libthread-db-search-path fails,
494 that is now done via $sdir.
495 (has_libpthread): New function.
496 (thread_db_load): Remove search for libthread_db in directory of
497 libpthread, that is now done via $pdir.
499 * NEWS: Mention "info auto-load-scripts".
500 * python/py-auto-load.c (struct auto_load_pspace_info): New member
501 script_not_found_warning_printed.
502 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
503 all callers updated. Initialize script_not_found_warning_printed.
504 (get_auto_load_pspace_data_for_loading): New function.
505 (maybe_add_script): New function.
506 (source_section_scripts): Simplify. Only print one warning regardless
507 of the number of auto-load scripts not found.
508 (clear_section_scripts): Clear script_not_found_warning_printed.
509 (auto_load_objfile_script): Record script in hash table.
510 (count_matching_scripts): New function.
511 (maybe_print_script): Renamed from maybe_print_section_script, all
512 callers updated. Rewrite to use ui_out_*.
513 (info_auto_load_scripts): Renamed from
514 maintenance_print_section_scripts, all callers updated.
515 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
516 renamed as "info auto-load-scripts".
518 2011-05-13 Tom Tromey <tromey@redhat.com>
520 * dwarf2expr.c (read_uleb128): Cast intermediate result.
521 (read_sleb128): Likewise.
523 2011-05-13 Tom Tromey <tromey@redhat.com>
525 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
528 2011-05-13 Doug Evans <dje@google.com>
530 * linux-nat.c (debug_linux_nat_async): Delete.
531 Replace all references to use debug_linux_nat instead.
532 (show_debug_linux_nat_async): Delete.
533 (sigchld_handler): Call ui_file_write_async_safe instead of
535 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
536 * ui-file.c (struct ui_file): New member to_write_async_safe.
537 (null_file_write_async_safe): New function.
538 (ui_file_write_async_safe): New function.
539 (set_ui_file_write_async_safe): New function.
540 (ui_file_new): Initialize to_write_async_safe.
541 (stdio_file_write_async_safe): New function.
542 (struct stdio_file): New member fd.
543 (stdio_file_new): Initialize to_write_async_safe, fd.
544 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
546 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
547 (set_ui_file_write_async_safe): Declare.
548 (ui_file_write_async_safe): Declare.
550 2011-05-13 Tom Tromey <tromey@redhat.com>
552 * utils.c (do_value_free): New function.
553 (make_cleanup_value_free): Likewise.
554 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
556 (dwarf2_loc_desc_needs_frame): Call
557 make_cleanup_value_free_to_mark.
558 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
559 * dwarf2expr.c (free_dwarf_expr_context): Don't call
561 (new_dwarf_expr_context): Don't call value_mark.
562 * dwarf2-frame.c (execute_stack_op): Call
563 make_cleanup_value_free_to_mark.
564 * defs.h (make_cleanup_value_free): Declare.
566 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
568 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
569 prepare_execute_command.
570 * top.c (prepare_execute_command): Return cleanup.
571 (execute_command): Use cleanup from prepare_execute_command.
572 * top.h (prepare_execute_command): Change prototype to return
574 * defs.h (struct value): Add opaque declaration.
575 (make_cleanup_value_free_to_mark): Add prototype.
576 * utils.c (do_value_free_to_mark): New function.
577 (make_cleanup_value_free_to_mark): Likewise.
579 2011-05-12 Tom Tromey <tromey@redhat.com>
581 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
582 cast left-hand-side to unsigned.
584 2011-05-12 Tom Tromey <tromey@redhat.com>
587 * value.h (value_from_contents): Declare.
588 * value.c (value_from_contents): New function.
589 * dwarf2read.c (dwarf_stack_op_name): Add new values.
590 (dwarf2_get_die_type): New function.
591 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
592 (allocate_piece_closure): Acquire reference to values.
593 (read_pieced_value): Update for value-based expressions.
594 (write_pieced_value): Likewise.
595 (free_pieced_value_closure): Call value_free as needed.
596 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
597 Update for value-based expressions.
598 * dwarf2loc.h (dwarf2_get_die_type): Declare.
599 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
600 <get_base_type>: New field.
601 (struct dwarf_expr_piece) <v.value>: Change type.
602 <v.regno>: New field.
603 (struct dwarf_expr_context) <mark>: New field.
604 (dwarf_expr_piece, dwarf_expr_fetch): Update.
605 (dwarf_expr_pop, dwarf_expr_push): Remove.
606 (dwarf_expr_push_address): Declare.
607 * dwarf2expr.c (dwarf_arch_cookie): New global.
608 (struct dwarf_gdbarch_types): New.
609 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
611 (dwarf_expr_push): Change type of 'value' argument. Update. Now
613 (dwarf_expr_push_address): New function.
614 (dwarf_expr_pop): Now static.
615 (dwarf_expr_fetch): Change return type.
616 (dwarf_require_integral): New function.
617 (dwarf_expr_fetch): Simplify.
619 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
621 (execute_stack_op) <sign_ext>: Remove.
622 Use values for DWARF stack.
623 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
624 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
626 (_initialize_dwarf2expr): New function.
628 (new_dwarf_expr_context): Set new field.
629 (free_dwarf_expr_context): Call value_free_to_mark.
630 * dwarf2-frame.c (no_base_type): New function.
631 (execute_stack_op): Set get_base_type field. Update.
633 2011-05-12 Tom Tromey <tromey@redhat.com>
635 * dwarf2read.c (read_common_block): Fix formatting.
637 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
639 * breakpoint.c (disable_breakpoint): Disable all locations
640 associated with a tracepoint on target if a trace experiment is
642 (disable_command): Disable a specific tracepoint location on target if
643 a trace experiment is running.
644 (do_enable_breakpoint): Enable all locations associated with a
645 tracepoint on target if a trace experiment is running.
646 (enable_command) Enable a specific tracepoint location on target if a
647 trace experiment is running.
648 * target.c (update_current_target): Add INHERIT and de_fault clauses for
649 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
650 to_disable_tracepoint.
651 * target.h: Add declaration of struct bp_location.
652 (struct target_ops): Add new functions
653 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
654 to_disable_tracepoint to target operations.
655 (target_supports_enable_disable_tracepoint): New macro.
656 (target_enable_tracepoint): New macro.
657 (target_disable_tracepoint): New macro.
658 * remote.c (struct remote_state): Add new field.
659 (remote_enable_disable_tracepoint_feature): New.
660 (remote_protocol_features): Add new entry.
661 (remote_supports_enable_disable_tracepoint): New.
662 (remote_enable_tracepoint): New.
663 (remote_disable_tracepoint): New.
664 (init_remote_ops): Add remote_enable_tracepoint,
665 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
666 to remote operations.
667 * tracepoint.c (start_tracing): Allow tracing to start without any
668 tracepoints enabled with just a warning if they can be re-enabled
670 * NEWS: Add news item for the new behaviour of the enable and disable
671 GDB commands when applied to tracepoints.
672 Add news items for the new remote packets QTEnable and QTDisable.
674 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
676 * config.in: Regenerate.
677 * configure: Regenerate.
678 * configure.ac <--with-system-readline> (for readline_echoing_p):
680 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
681 (tui_old_rl_echoing_p): ... here.
682 (tui_setup_io): Rename extern declaration readline_echoing_p to
683 _rl_echoing_p. Adjust assignments for the both renames.
685 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
687 * symtab.c (lookup_symtab): Run cleanup before returning.
689 2011-05-11 Tom Tromey <tromey@redhat.com>
691 * dwarf2read.c (handle_data_member_location): New function.
692 (dwarf2_add_field): Use it.
693 (read_common_block): Likewise.
695 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
697 Make addrs->SECTINDEX always defined.
698 * symfile.c (relative_addr_info_to_section_offsets): Check for
699 SECTINDEX -1, not for zero ADDR.
700 (addrs_section_compar): Remove checking for invalid SECTINDEX.
701 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
702 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
705 2011-05-10 Doug Evans <dje@google.com>
707 * linux-thread-db.c: Whitespace cleanup.
708 (try_thread_db_load_1): Fix comment.
710 * linux-thread-db.c (set_libthread_db_search_path): New function.
711 (_initialize_thread_db): Add setter for libthread-db-search-path.
713 2011-05-09 Doug Evans <dje@google.com>
715 * NEWS: Mention --with-iconv-bin.
716 * configure.ac: New option --with-iconv-bin.
717 * configure: Regenerate.
718 * config.in: Regenerate.
719 * defs.h (relocate_gdb_directory): Declare.
720 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
721 removed progname parameter, and exported. All callers updated.
722 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
724 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
725 adding missing call to restore_child_signals_mask.
727 2011-05-09 Pedro Alves <pedro@codesourcery.com>
729 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
731 * infrun.c (proceed, start_remote): Adjust.
732 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
733 and adjust to not handle it.
734 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
735 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
736 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
737 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
738 * windows-nat.c (do_initial_windows_stuff): Adjust.
739 * infcmd.c (attach_command): Adjust.
740 (notice_new_inferior): Adjust.
742 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
744 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
745 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
746 * spu-tdep.c (op_selb): Use correct value.
748 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
750 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
751 "parent" parameter to symbol_file_add_from_bfd call.
753 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
754 Thiago Jung Bauermann <bauerman@br.ibm.com>
756 Implement support for PowerPC BookE masked watchpoints.
757 * NEWS: Mention masked watchpoint support. Create "Changed commands"
759 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
760 method. Initialize to NULL in all existing breakpoint_ops instances.
761 (struct breakpoint) <hw_wp_mask>: New field.
762 * breakpoint.c (is_masked_watchpoint): Add prototype.
763 (update_watchpoint): Don't set b->val for masked watchpoints. Call
764 breakpoint's breakpoint_ops.works_in_software_mode if available.
765 (watchpoints_triggered): Handle the case of a hardware masked
767 (watchpoint_check): Likewise.
768 (works_in_software_mode_watchpoint): New function.
769 (insert_masked_watchpoint, remove_masked_watchpoint)
770 (resources_needed_masked_watchpoint)
771 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
772 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
773 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
775 (masked_watchpoint_breakpoint_ops): New structure.
776 (watch_command_1): Check for the existence of the `mask' parameter.
777 Set b->ops according to the type of hardware watchpoint being created.
778 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
779 (ppc_linux_remove_mask_watchpoint)
780 (ppc_linux_masked_watch_num_registers): New functions.
781 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
782 to_remove_mask_watchpoint and to_masked_watch_num_registers.
783 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
784 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
785 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
786 (target_masked_watch_num_registers): New functions.
787 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
788 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
790 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
791 (target_masked_watch_num_registers): Add prototypes.
793 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
796 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
797 (producer_is_gcc_ge_4_0): New function.
798 (process_full_comp_unit): Set also symtab->locations_valid. Move the
799 symtab->language code.
800 (var_decode_location): Set cu->has_loclist.
801 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
802 skip. Intialize force_skip from locations_valid. Move the prologue
803 skipping code into two passes.
804 * symtab.h (struct symtab): Make the primary field a bitfield. New
805 field locations_valid.
807 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
809 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
810 (classify_inner_name): Call cp_lookup_nested_type with
812 * cp-namespace.c (cp_lookup_nested_type): New variable
813 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
814 type_name_no_tag_or_error with saved_parent_type.
815 * dwarf2read.c (load_partial_dies): Read in any children of
816 DW_TAG_typedef with complaint in such case.
817 * gdbtypes.c (type_name_no_tag_or_error): New function.
818 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
819 * valops.c (destructor_name_p): New comment for parameter type. Remove
820 type const. Make dname and cp const. Call type_name_no_tag_or_error.
821 * value.h (destructor_name_p): Remove type const.
823 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
825 * symtab.c (compare_symbol_name): New function.
826 (completion_list_add_name, expand_partial_symbol_name): Call it,
827 remove the variable ncmp.
828 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
831 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
833 Demote to sw watchpoint only in update_watchpoint.
834 * breakpoint.c (update_watchpoint): Change between software and
835 hardware watchpoint for all kinds of watchpoints, not just
836 read/write ones. Determine b->exact value here instead of
837 in watch_command_1. Error out if there are not enough resources
838 for a read or access hardware watchpoint.
839 (watch_command_1): Remove logic of checking whether there are
840 enough resources available, since update_watchpoint will do that
841 work now. Don't set b->exact here. Catch exceptions thrown by
842 update_watchpoint and delete the watchpoint.
843 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
844 Use target_exact_watchpoints instead.
845 (delete_breakpoint): Notify observers only if deleted watchpoint
846 has a breakpoint number assigned to it.
848 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
850 * MAINTAINERS: Add myself as a write-after-approval maintainer.
852 2011-05-05 Jerome Guitton <guitton@adacore.com>
854 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
856 (i386_stack_tramp_frame_unwind): New static global.
857 (i386_match_pattern): New function, extracted from i386_match_insn.
858 (i386_match_insn): Use i386_match_pattern.
859 (i386_match_insn_block): New function.
860 (i386_tramp_chain_in_reg_insns)
861 (i386_tramp_chain_on_stack_insns): New static variables.
862 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
865 2011-05-04 Joseph Myers <joseph@codesourcery.com>
867 * configure.host (xscale*): Don't handle target.
868 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
871 2011-05-04 Yao Qi <yao@codesourcery.com>
873 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
875 2011-05-03 Joel Brobecker <brobecker@adacore.com>
878 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
879 | * elfread.c (elf_symtab_read): Stop memory leak.
881 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
883 * nto-tdep.c (nto_target): Replace deprecated call to
884 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
886 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
888 Fix false GCC warning.
889 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
891 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
893 * breakpoint.c (update_watchpoint): Move code to change
894 the enable state of breakpoint from here ...
895 (do_enable_breakpoint): ... to here.
897 2011-04-26 Andrew Gontarek <andrewg@cray.com>
899 * valprint.c (val_print_array_elements): Fixed poor performance
900 of printing very large arrays with repeat_count_threshold set
901 to unlimited. New comment.
903 2011-04-29 Tom Tromey <tromey@redhat.com>
905 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
906 (mi_parse): Likewise.
907 * breakpoint.c (break_range_command): Use sizeof char*, not
909 (create_breakpoint): Likewise.
910 (parse_breakpoint_sals): Likewise.
912 2011-04-29 Pedro Alves <pedro@codesourcery.com>
914 * linux-nat.c (linux_child_remove_fork_catchpoint)
915 (linux_child_remove_vfork_catchpoint)
916 (linux_child_remove_exec_catchpoint): New functions.
917 (linux_target_install_ops): Install them.
919 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
923 * varobj.c (install_default_visualizer): Do not install a
924 visualizer if the varobj is CPLUS_FAKE_CHILD.
925 (construct_visualizer): Likewise.
927 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
929 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
930 case insensitive comparison.
932 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
934 * infrun.c (proceed): Revert previous change.
935 (resume): Instead, handle the case of signal delivery while stepping
936 off a breakpoint location here, and only if software single-stepping
937 is used. Handle nested signals.
939 2011-04-28 Yao Qi <yao@codesourcery.com>
941 * arm-tdep.c (copy_unmodified): Rename to ...
942 (arm_copy_unmodified): .. this. New.
943 (copy_preload): Move common part to ...
944 (install_preload): .. this. New.
945 (arm_copy_preload): New.
946 (copy_preload_reg): Move common part to ...
947 (install_preload_reg): ... this. New.
948 (arm_copy_preload_reg): New.
949 (copy_b_bl_blx): Move common part to ...
950 (install_b_bl_blx): .. this. New.
951 (arm_copy_b_bl_blx): New.
952 (copy_bx_blx_reg): Move common part to ...
953 (install_bx_blx_reg): ... this. New.
954 (arm_copy_bx_blx_reg): New.
955 (copy_alu_reg): Move common part to ...
956 (install_alu_reg): ... this. New.
957 (arm_copy_alu_reg): New.
958 (copy_alu_shifted_reg): Move common part to ...
959 (install_alu_shifted_reg): ... this. New.
960 (copy_ldr_str_ldrb_strb): Move common part to ...
961 (install_ldr_str_ldrb_strb): ... this. New.
962 (arm_copy_ldr_str_ldrb_strb): New.
963 (copy_copro_load_store): Move some common part to ...
964 (install_copy_copro_load_store): ... this. New.
965 (arm_copy_copro_load_store): New.
967 (arm_copy_svc): Renamed from copy_svc.
968 (copy_undef): Delete.
969 (arm_copy_undef): Renamed from copy_undef.
970 (decode_ext_reg_ld_st): Delete.
971 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
972 (decode_svc_copro): Delete.
973 (arm_decode_svc_copro): Renamed from decode_svc_copro.
974 (copy_copro_load_store, copy_alu_imm): update callers.
975 (copy_extra_ld_st, copy_block_xfer): Likewise.
976 (decode_misc_memhint_neon, decode_unconditional): Likewise.
977 (decode_miscellaneous, decode_dp_misc): Likewise.
978 (decode_ld_st_word_ubyte, decode_media): Likewise.
979 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
980 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
981 (decode_unconditional, decode_miscellaneous): Likewise.
982 (decode_media, decode_b_bl_ldmstm): Likewise.
983 (arm_process_displaced_insn): Likewise..
984 (decode_misc_memhint_neon): Delete.
985 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
986 (decode_miscellaneous): Delete.
987 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
988 (decode_dp_misc): Delete.
989 (arm_decode_dp_misc): Renamed from decode_dp_misc.
990 (decode_ld_st_word_ubyte): Delete.
991 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
992 (decode_media): Delete.
993 (arm_decode_media): Renamed from decode_media.
994 (decode_b_bl_ldmstm): Delete.
995 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
996 (decode_ext_reg_ld_st): Delete.
997 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
998 (decode_unconditional): Delete.
999 (arm_decode_unconditional): Renamed from decode_unconditional.
1001 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 Case insensitive lookups implementation.
1004 * dwarf2read.c: Include ctype.h.
1005 (struct mapped_index): New field version.
1006 (mapped_index_string_hash): New parameter index_version. New comment
1007 for it. Call tolower appropriately.
1008 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1009 Choose the right index version for mapped_index_string_hash.
1010 (dwarf2_read_index): Support also the index version 5. Initialize the
1011 new struct mapped_index field version.
1012 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1013 (find_slot): Explain the version needs. Pass INT_MAX for the new
1015 (write_psymtabs_to_index): Produce version 5.
1016 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1017 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1018 * psymtab.c (lookup_partial_symbol): Find the
1019 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1021 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1023 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1024 (completion_list_add_name): New variable ncmp, initialize it, use it.
1025 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1026 * utils.c (strcmp_iw): Support case_sensitive_off.
1027 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1028 New function comment part. New variables saved_string1,
1029 saved_string2 and case_pass. Add a proper second pass.
1031 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 Replace re_comp/re_exec by regcomp/regexec.
1034 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1035 (search_symbols_name_matches): Use them, use regexec.
1036 (search_symbols): New variable retval_chain, adjust the use of
1037 old_chain against it. Replace re_comp by regcomp. Use the new struct
1038 search_symbols_data fields, use regexec instead of re_exec.
1040 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1042 Format the code for the next patch.
1043 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1044 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1045 New variables c1 and c2.
1047 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1049 * infrun.c (proceed): Do not single-step into signal delivery
1050 when stepping off a breakpoint location.
1051 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1052 (insert_step_resume_breakpoint_at_caller): Likewise.
1053 (insert_step_resume_breakpoint_at_sal): Likewise.
1054 (insert_longjmp_resume_breakpoint): Likewise.
1056 2011-04-27 Yao Qi <yao@codesourcery.com>
1058 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1060 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1062 * procfs.c (procfs_pass_signals): Fix advance declaration.
1064 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1066 * target.h (struct target_ops): Remove to_notice_signals;
1067 add to_pass_signals.
1068 (target_notice_signals): Remove.
1069 (target_pass_signals): Add prototype.
1070 * target.c (update_current_target): Remove to_notice_signals;
1071 mention to_pass_signals.
1072 (target_pass_signals): New function.
1073 (debug_to_notice_signals): Remove.
1074 (setup_target_debug): Do not install debug_to_notice_signals.
1076 * infrun.c (signal_pass): New global.
1077 (resume): Call target_pass_signals.
1078 (handle_inferior_event): Report all signals while stepping over
1079 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1080 are re-inserted when stepping over a signal handler.
1081 (signal_cache_update): New function.
1082 (signal_stop_update): Call it.
1083 (signal_print_update): Likewise.
1084 (signal_pass_update): Likewise.
1085 (handle_command): Call signal_cache_update and target_pass_signals
1086 instead of target_notice_signals.
1087 (_initialize_infrun): Initialize signal_pass.
1089 * linux-nat.c (pass_mask): New global.
1090 (linux_nat_pass_signals): New function.
1091 (linux_nat_create_inferior): Report all signals initially.
1092 (linux_nat_attach): Likewise.
1093 (linux_nat_resume): Use pass_mask to decide whether to directly
1094 handle an inferior signal.
1095 (linux_nat_wait_1): Likewise.
1096 (linux_nat_add_target): Install to_pass_signals callback.
1098 * nto-procfs.c (notice_signals): Remove.
1099 (procfs_resume): Do not call notice_signals.
1100 (procfs_notice_signals): Remove.
1101 (procfs_pass_signals): New function.
1102 (init_procfs_ops): Install to_pass_signals callback instead of
1103 to_notice_signals callback.
1104 (_initialize_procfs): Report all signals initially.
1106 * procfs.c (procfs_notice_signals): Remove.
1107 (procfs_pass_signals): New function.
1108 (procfs_target): Install to_pass_signals callback instead of
1109 to_notice_signals callback.
1110 (register_gdb_signals): Remove.
1111 (procfs_debug_inferior): Report all signals initially.
1112 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1114 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1115 parameters; use them instead of calling signal_..._state routines.
1116 (remote_notice_signals): Remove.
1117 (remote_start_remote): Report all signals initially.
1118 (remote_resume): Do not call remote_pass_signals.
1119 (_initialize_remote): Install to_pass_signals callback instead of
1120 to_notice_signals callback.
1122 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1124 * breakpoint.c (user_settable_breakpoint): Delete.
1125 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1126 (delete_command): Check user_breakpoint_p instead of looking at
1127 the breakpoint's type.
1128 (disable_command): Ditto.
1129 (enable_command): Ditto.
1130 (delete_trace_command): Use user_breakpoint_p instead of looking
1131 at the breakpoint number directly. When checking if there are
1132 user visible tracepoints, in order to know whether to ask the user
1133 for confirmation, check whether the breakpoint is actually a
1136 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1138 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1141 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1143 MI breakpoint notifications.
1145 * annotate.c (breakpoint_changed): Adjust parameter type.
1146 * breakpoint.c (set_breakpoint_condition): Adjust to change
1147 in breakpoint_modified type.
1148 (breakpoint_set_commands): Likewise.
1149 (do_map_commands_command): Likewise.
1150 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1151 changed after bumping hit count.
1152 (bpstat_stop_status): Likewise.
1153 (print_one_breakpoint_location): Don't wrap in tuple here.
1154 (print_one_breakpoint): Always print individual locations.
1155 For locations, use unnamed tuple.
1156 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1158 (create_catchpoint, create_syscall_event_catchpoint): Call
1159 breakpoint_created obsever.
1160 (mention): Don't call breakpoint_created observer.
1161 (create_breakpoint_sal): Call breakpoint_created observer.
1162 (create_breakpoint, watch_command_1): Likewise.
1163 (create_ada_exception_breakpoint): Likewise.
1164 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1165 (locations_are_equal): New.
1166 (update_breakpoint_locations): If locations were changed, notify.
1167 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1168 Call breakpoint_modified observer.
1170 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1171 (mi_cmd_break_insert): Don't set observers for modify and delete.
1172 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1173 (mi_breakpoint_created, mi_breakpoint_deleted)
1174 (mi_breakpoint_modified): New.
1175 (mi_interpreter_init): Hook the above.
1176 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1177 while -break-* commands are executing.
1178 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1179 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1181 (mi_ui_out_impl): Hook in mi_redirect.
1182 (mi_field_skip): True to the name, skip the field, don't output
1183 a field with an empty value.
1185 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1186 (gdbpy_breakpoint_deleted): Adjust.
1187 * tui/tui-hooks.c (tui_event_create_breakpoint)
1188 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1190 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1192 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1193 (procfs_remove_hw_watchpoint): Likewise.
1195 2011-04-26 Michael Walle <michael@walle.cc>
1197 * remote.c (remote_start_remote): Ack packet after sending the
1200 2011-04-26 Yao Qi <yao@codesourcery.com>
1202 * linux-nat.c: Move common macros to ...
1203 Include linux-ptrace.h.
1204 * common/linux-ptrace.h: ... here. New.
1206 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1208 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1209 !objfile_has_partial_symbols. New comment.
1210 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1211 SYM_READ_PSYMBOLS is not present. Extend the comment.
1212 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1214 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1216 * defs.h (ENUM_BITFIELD): Remove.
1218 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1219 Eli Zaretskii <eliz@gnu.org>
1221 * NEWS: Document the new gdbserver --once option.
1223 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1225 * MAINTAINERS: Update my email address.
1227 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1229 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1230 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1231 function call if __STDC_ISO_10646__ macro is defined.
1232 (intermediate_encoding): New prototype.
1233 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1234 to generate compile time error for unsupported gdb_wchar_t size.
1235 (ENDIAN_SUFFIX): New macro.
1236 (intermediate_encoding): New function.
1238 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1240 * ada-lang.c (struct add_partial_datum): Update the comment for
1241 expand_partial_symbol_name.
1242 (ada_add_partial_symbol_completions): Rename to ...
1243 (ada_expand_partial_symbol_name): ... here, change return type, update
1244 function comment, call symbol_completion_match instead of
1245 symbol_completion_add.
1246 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1247 and ada_expand_partial_symbol_name.
1248 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1250 (dw2_map_symbol_names): Remove.
1251 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1252 * psymtab.c (map_symbol_names_psymtab): Remove.
1253 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1254 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1256 (psym_functions): Unlist map_symbol_names_psymtab.
1257 (map_partial_symbol_names): Rename to ...
1258 (expand_partial_symbol_names): ... here, change the FUN type, call
1259 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1260 * psymtab.h (map_partial_symbol_names): Rename to ...
1261 (expand_partial_symbol_names): ... here, change the FUN type.
1262 * symfile.h (struct quick_symbol_functions): Update the description of
1263 expand_symtabs_matching. Remove map_symbol_names.
1264 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1265 (struct add_name_data): Update the comment for
1266 expand_partial_symbol_name.
1267 (add_partial_symbol_name): Rename to ...
1268 (expand_partial_symbol_name): ... here. Replace
1269 completion_list_add_name call by strncmp.
1270 (default_make_symbol_completion_list_break_on): Use now
1271 expand_partial_symbol_names and expand_partial_symbol_name.
1272 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1274 2011-04-20 Tom Tromey <tromey@redhat.com>
1276 * dwarf2read.c (save_gdb_index_command): Replace format
1277 documentation with a pointer to the manual.
1279 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1281 * regcache.c: Include remote.h.
1282 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1283 (regcache_dump): Handle regcache_dump_remote.
1284 (maintenance_print_remote_registers): New function.
1285 (_initialize_regcache): Install "maint print remote-registers"
1287 * remote.c (map_regcache_remote_table): New function, factored out
1289 (init_remote_state): ... here.
1290 (remote_register_number_and_offset): New.
1291 * remote.h (remote_register_number_and_offset): Declare.
1293 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1295 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1296 null_ptid, assume and allow a NULL address space, instead of
1297 asking the target for the ptid's address space.
1298 * infrun.c (ptid_is_pid): Remove assertion.
1300 2011-04-19 Tom Tromey <tromey@redhat.com>
1302 * windows-tdep.c (windows_xfer_shared_library):
1303 * windows-nat.c (get_module_name, windows_make_so):
1304 * v850-tdep.c (v850_handle_pushm):
1305 * utils.c (null_cleanup, gdb_realpath):
1306 * ui-out.c (get_next_header):
1307 * tracepoint.c (clear_traceframe_info):
1308 * symtab.c (lookup_symtab):
1309 * serial.h (struct serial_ops):
1310 * mipsread.c (read_alphacoff_dynamic_symtab):
1311 * infcmd.c (print_return_value):
1312 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1313 * f-exp.y (parse_number):
1314 * exceptions.c (catch_exceptions):
1315 * dummy-frame.c (dummy_frame_this_id):
1316 * defs.h (struct cleanup):
1317 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1318 * arm-tdep.c (arm_push_dummy_call):
1319 * amd64-tdep.h (amd64_collect_xsave):
1320 * amd64-tdep.c (amd64_collect_xsave):
1321 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1322 * README (typing): Remove duplicate words.
1323 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1324 * infrun.c (siginfo_value_read): Fix typo.
1325 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1326 * top.c (source_line_number): Add comma.
1328 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1330 * thread.c (any_live_thread_of_process): Prioritize threads
1331 that are not executing.
1332 * gdbthread.h (any_live_thread_of_process): Update comment
1333 as per above change.
1335 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1337 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1338 (scan_xcoff_symtab): Likewise.
1340 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1342 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1345 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1346 Pedro Alves <pedro@codesourcery.com>
1348 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1349 variables to simplify code and avoid == operator at end of
1350 line as this is against GNU coding standards.
1352 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1354 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1355 lm_name to name_lm to avoid conflict with lm_name function.
1357 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1359 ARI fixes: Use only lowercase function name for static functions.
1360 * nto-tdep.c (LM_ADDR): Rename to...
1361 (lm_addr): New function name.
1362 (nto_relocate_section_addresses): Adapt to change above.
1363 * solib-sunos.c (LM_ADDR): Rename to...
1364 (lm_addr): New function name.
1365 (LM_NEXT): Rename to...
1366 (lm_next): New function name.
1367 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1368 function name changes above.
1369 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1370 (lm_addr_from_link_map): New function name.
1371 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1372 (has_lm_dynamic_from_link_map): New function name.
1373 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1374 (lm_dynamic_from_link_map): New function name.
1375 (LM_ADDR_CHECK): Rename to...
1376 (lm_addr_check): New function name.
1377 (LM_NEXT): Rename to...
1378 (lm_next): New function name.
1379 (LM_PREV): Rename to...
1380 (lm_prev): New function name.
1381 (LM_NAME): Rename to...
1382 (lm_name): New function name.
1383 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1384 (ignore_first_link_map_entry): New function name.
1385 (svr4_keep_data_in_core): Adapt to function name changes above.
1386 (svr4_current_sos): Likewise.
1387 (enable_break): Likewise.
1388 (svr4_relocate_section_addresses): Likewise.
1390 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1393 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1394 sprintf. Simplify code and avoid loosing memory.
1395 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1396 (call0_frame_cache): Remove && operator from end of line.
1398 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1400 Fix libraries displacement if they change whether they were prelinked.
1401 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1402 does not match. Comment why.
1404 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 * corelow.c: Include wrapper.h.
1407 (core_open): Call now gdb_target_find_new_threads.
1408 * wrapper.c: Include target.h.
1409 (gdb_target_find_new_threads): New.
1410 * wrapper.h (gdb_target_find_new_threads): New declaration.
1412 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1414 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1415 even if !TARGET_HAS_EXECUTION.
1417 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1419 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1420 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1421 bfd_get_synthetic_symtab.
1422 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1423 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1424 parameter parent, remove the call to add_separate_debug_objfile.
1425 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1426 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1427 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1428 parent, new comment for it, call add_separate_debug_objfile for it.
1429 (symbol_file_add_separate): Pass objfile as the parameter parent,
1430 remove the call to add_separate_debug_objfile.
1431 (symbol_file_add_from_bfd): New parameter parent, pass it.
1432 (symbol_file_add): Pass NULL to the new parameter parent.
1433 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1435 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1437 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1440 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1442 Fix Python access to inlined frames.
1443 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1444 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1446 2011-04-15 Tom Tromey <tromey@redhat.com>
1448 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1450 2011-04-15 Gary Benson <gbenson@redhat.com>
1452 * MAINTAINERS: Add myself to write-after-approval section.
1454 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1456 * remote-sim.c (sim_command_completer): New function.
1457 (_initialize_remote_sim): Set completer to sim_command_completer.
1459 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1461 * breakpoint.c (print_exception_catchpoint): Rename to ...
1462 (print_it_exception_catchpoint): ... this.
1463 (gnu_v3_exception_catchpoint_ops): Update with new name
1464 for print_it_exception_catchpoint.
1466 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1468 * MAINTAINERS: Add myself for write after approval privileges.
1470 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1472 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1474 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1476 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1478 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1480 * breakpoint.c (save_breakpoints): Verify whether
1481 breakpoint_ops.print_recreate is defined before calling it.
1483 2011-04-11 Gary Benson <gbenson@redhat.com>
1485 Fix failure with --enable-maintainer-mode.
1486 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1488 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 * symtab.c (search_symbols): Reorder the KIND description in the
1492 function comment. Remove the unused 4th element of types, types2,
1493 types3 and types4. New gdb_assert on KIND.
1494 (symtab_symbol_info): Remove the unused 4th element of classnames.
1495 New gdb_assert on KIND.
1496 * symtab.h (enum search_domain): New warning in the enum comment.
1497 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1500 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1502 Fix crash of gdb save-index on a STABS file.
1503 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1506 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1508 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1509 * dwarf2read.c: Include ctype.h.
1510 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1512 (dwarf2_add_field): Fix new_field->accessibility by calling
1513 dwarf2_default_access_attribute. Restructure setting accessibility
1515 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1516 is_private and is_protected by calling
1517 dwarf2_default_access_attribute.
1519 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1521 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1522 to the initialization.
1524 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1526 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1529 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1531 Remove support for old Cygwin 1.5 versions.
1532 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1533 function on old Cygwin version.
1534 * windows-nat.c: Remove cygwin version check and always define
1535 __USEWIDE for Cygwin compilation.
1537 2011-04-07 Yao Qi <yao@codesourcery.com>
1539 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1541 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1542 (arm_copy_svc): Remove parameters INSN and TO.
1543 (decode_svc_copro): Update caller.
1544 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1545 from function pointer `copy_svc_os'.
1547 2011-04-07 Yao Qi <yao@codesourcery.com>
1549 * arm-tdep.c (cleanup_branch): Set a correct return address in
1550 LR for ARM and Thumb.
1552 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1555 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1556 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1557 in the function comment, a new note on values compatibility.
1558 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1559 * symtab.h (SYMBOL_HASH_NEXT): New.
1561 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1563 * ppc-linux-nat.c (check_condition): Add len output parameter.
1564 Set it based on the memory region referenced in the condition
1565 expression. Update all callers.
1567 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1569 Fix crash regression on systems featuring .gdb_index.
1570 * objfiles.c (free_objfile): Move the
1571 forget_cached_source_info_for_objfile call earlier. Comment it.
1572 Extend the comment for objfile_free_data.
1574 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 Fix regression of displaying the debug format.
1577 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1580 2011-04-04 Tom Tromey <tromey@redhat.com>
1582 * cli/cli-interp.c (struct captured_execute_command_args):
1584 (do_captured_execute_command): Remove.
1585 (safe_execute_command): Use TRY_CATCH.
1586 * cli/cli-script.c (struct wrapped_read_command_file_args):
1588 (wrapped_read_command_file): Remove.
1589 (script_from_file): Use TRY_CATCH.
1590 * exceptions.c (catch_exception): Remove.
1591 * exceptions.h (catch_exception): Remove.
1592 (deprecated_throw_reason): Update comment.
1593 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1594 argument to 'context'.
1595 (mi_execute_command): Use TRY_CATCH.
1596 * remote.c (struct start_remote_args): Remove.
1597 (remote_start_remote): Update; change arguments.
1598 (remote_open_1): Use TRY_CATCH.
1600 2011-04-04 Tom Tromey <tromey@redhat.com>
1602 * tracepoint.c (scope_info): Update.
1603 * symtab.c (decode_line_spec): Update.
1604 * python/python.c (gdbpy_decode_line): Update.
1605 * linespec.h (decode_line_1): Update.
1606 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1607 (decode_compound, find_method, symtab_from_filename)
1608 (decode_variable): Likewise.
1609 * cli/cli-cmds.c (edit_command): Update.
1610 (list_command): Update.
1611 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1613 (create_breakpoint): Update.
1614 (until_break_command): Update.
1615 (addr_string_to_sals): Update.
1616 (decode_line_spec_1): Update.
1618 2011-04-04 Tom Tromey <tromey@redhat.com>
1620 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1621 (do_captured_parse_breakpoint): Remove.
1622 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1623 Use TRY_CATCH directly.
1625 2011-04-04 Tom Tromey <tromey@redhat.com>
1627 * symtab.h (free_symtab): Remove.
1628 (forget_cached_source_info_for_objfile): Declare.
1629 * symmisc.c (free_symtab): Remove.
1630 * source.c (forget_cached_source_info_for_objfile): New function.
1631 (forget_cached_source_info): Use it.
1632 * objfiles.c (free_objfile): Simplify check before calling
1633 clear_current_source_symtab_and_line. Call
1634 forget_cached_source_info_for_objfile.
1636 2011-04-04 Tom Tromey <tromey@redhat.com>
1638 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1639 (new_symtab): Don't set `free_code' on symtab.
1640 (new_linetable): Properly handle size==0.
1641 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1642 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1644 * jv-lang.c (struct jv_per_objfile_data): New.
1645 (jv_per_objfile_free): Free the data.
1646 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1647 (get_java_class_symtab): Set the `dict' field on the
1648 jv_per_objfile_data.
1649 (free_class_block): Remove.
1650 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1653 2011-04-04 Tom Tromey <tromey@redhat.com>
1655 * symfile.c (reread_symbols): Update.
1656 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1658 * objfiles.c (allocate_objfile): Update.
1659 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1661 * cp-namespace.c (lookup_symbol_file): Don't call
1662 lookup_possible_namespace_symbol.
1663 (initialize_namespace_symtab, get_possible_namespace_block)
1664 (free_namespace_block, cp_check_possible_namespace_symbols)
1665 (check_possible_namespace_symbols_loop)
1666 (check_one_possible_namespace_symbol)
1667 (lookup_possible_namespace_symbol): Remove.
1668 (maintenance_cplus_namespace): Replace with notice.
1669 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1671 2011-04-04 Tom Tromey <tromey@redhat.com>
1673 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1674 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1675 * symmisc.c (free_symtab): Don't free debugformat.
1676 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1677 (record_debugformat, record_producer): Document.
1678 * buildsym.c (end_symtab): Don't save debugformat and producer
1680 (end_symtab): Don't free debugformat and producer fields.
1681 (record_debugformat): Don't call xstrdup.
1682 (record_producer): Likewise.
1684 2011-04-04 Tom Tromey <tromey@redhat.com>
1686 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1687 (source_line_charpos, source_charpos_line): Remove.
1689 2011-04-04 Tom Tromey <tromey@redhat.com>
1691 * symtab.h (domain_enum): Split in two...
1692 (enum search_domain): New.
1693 (search_symbols): Update.
1694 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1695 redundant declarations.
1696 (search_symbols): Change 'kind' argument to search_domain.
1698 (print_symbol_info): Likewise.
1699 (symtab_symbol_info): Likewise.
1700 * symfile.h (struct quick_symbol_functions)
1701 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1702 <expand_symtabs_matching>: Likewise.
1703 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1704 (expand_symtabs_matching_via_partial): Update.
1705 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1706 (dw2_expand_symtabs_for_function): Update.
1707 * block.h: Moved anonymous enum...
1708 * defs.h (enum block_enum): ... here. Now named.
1710 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1712 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1713 * version.in: Bump version to 7.3.50.20110403-cvs.
1715 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1717 * NEWS: Create a new section for the next release branch.
1718 Rename the section of the current branch, now that it has
1721 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1723 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1724 for "fpscr" in target description.
1726 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1729 initialize it. Delay HASH initialization. Strip the part after open
1730 parenthesis for languages with qualifiers. Call do_cleanups.
1732 2011-04-01 Tom Tromey <tromey@redhat.com>
1734 * utils.c (report_command_stats): Don't print `-' for negative
1737 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1739 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1740 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1743 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1745 * breakpoint.h (bpdisp_text): Add declaration.
1746 * breakpoint.c (bpdisp_text): Make non-static.
1747 * ada-lang.c: #include "mi/mi-common.h".
1748 (print_it_exception): Rewrite to improve GDB/MI output.
1750 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1752 * arm-tdep.h (struct address_space): Add forward declaration.
1754 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1756 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1757 * arm-tdep.c (arm_override_mode): New global.
1758 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1759 execution mode heuristics.
1760 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1761 second single-step breakpoint if needed, using
1762 arm_insert_single_step_breakpoint.
1763 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1764 ARM execution mode, do not call thumb_get_next_pc_raw.
1765 (arm_get_next_pc): Encode execution mode in return value. Call
1766 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1767 (arm_insert_single_step_breakpoint): New function.
1768 (arm_software_single_step): Call it.
1769 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1770 argument to return execution mode of sigreturn target.
1771 (arm_linux_syscall_next_pc): Use it.
1772 (arm_linux_copy_svc): Update call.
1773 (arm_linux_software_single_step): Call
1774 arm_insert_single_step_breakpoint.
1776 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1778 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1781 2011-03-31 Tom Tromey <tromey@redhat.com>
1783 * varobj.c (update_dynamic_varobj_children): Properly handle
1784 errors from iterator.
1786 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1788 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1789 struct linkage name twice.
1791 2011-03-31 Tom Tromey <tromey@redhat.com>
1793 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1794 missing ">" to message.
1796 2011-03-31 Tom Tromey <tromey@redhat.com>
1798 * varobj.c (instantiate_pretty_printer): Remove duplicate
1801 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1803 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1804 if neither saved value nor register available (e.g. signal frame).
1806 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1808 * macroexp.c (expand): Avoid uninitialized variable
1811 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1813 * breakpoint.c (break_range_command): Fix typo in comment.
1815 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1816 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1818 Implement support for PowerPC BookE ranged breakpoints.
1819 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1820 * breakpoint.h (struct bp_target_info) <length>: New member
1822 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1823 instead of struct breakpoint as argument, and also add ASPACE
1824 and BP_ADDR arguments. Update all callers.
1825 (struct breakpoint_ops) <print_one_detail>: New method.
1826 (struct breakpoint) <addr_string_range_end>: New member variable.
1827 * breakpoint.c (breakpoint_location_address_match): Add function
1829 (insert_bp_location): Set bl->target_info.length.
1830 (breakpoint_here_p): Call breakpoint_location_address_match.
1831 (moribund_breakpoint_here_p): Likewise.
1832 (regular_breakpoint_inserted_here_p): Likewise.
1833 (breakpoint_thread_match): Likewise.
1834 (bpstat_stop_status): Likewise.
1835 (bpstat_check_location): Move call to
1836 breakpoint_ops.breakpoint_hit to the top.
1837 (print_one_breakpoint_location): Call
1838 breakpoint_ops.print_one_detail if available.
1839 (breakpoint_address_match_range): New function.
1840 (breakpoint_location_address_match): Likewise.
1841 (breakpoint_locations_match): Compare the length field of the
1843 (hw_breakpoint_used_count): Count resources used by all locations
1844 in a breakpoint, and use breakpoint_ops.resources_needed if
1846 (breakpoint_hit_ranged_breakpoint): New function.
1847 (resources_needed_ranged_breakpoint): Likewise.
1848 (print_it_ranged_breakpoint): Likewise.
1849 (print_one_ranged_breakpoint): Likewise.
1850 (print_one_detail_ranged_breakpoint): Likewise.
1851 (print_mention_ranged_breakpoint): Likewise.
1852 (print_recreate_ranged_breakpoint): Likewise.
1853 (ranged_breakpoint_ops): New structure.
1854 (find_breakpoint_range_end): New function.
1855 (break_range_command): Likewise.
1856 (delete_breakpoint): Free addr_string_range_end.
1857 (update_breakpoint_locations): Add SALS_END argument. Update
1858 all callers. Calculate breakpoint length if a non-zero SALS_END
1859 is given. Call breakpoint_locations_match instead of
1860 breakpoint_address_match.
1861 (reset_breakpoint): Find SaL of the end of the range if B is a
1863 (_initialize_breakpoint): Register break-range command.
1864 * defs.h (print_core_address): Add function prototype.
1865 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1867 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1868 (ppc_linux_remove_hw_breakpoint): Likewise.
1869 (_initialize_ppc_linux_nat): Initialize
1870 to_ranged_break_num_registers.
1871 * target.c (update_current_target): Add comment about
1872 to_ranged_break_num_registers.
1873 (target_ranged_break_num_registers): New function.
1874 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1876 (target_ranged_break_num_registers): Add function prototype.
1877 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1878 * utils.c (print_core_address): ... here.
1880 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1882 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1883 variable compiler warning.
1885 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1887 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1889 (re_set_breakpoint): ... to here ...
1890 (addr_string_to_sals): ... and here.
1892 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1894 * Makefile.in (SFILES): Add missing C sources.
1895 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1896 Add missing headers.
1898 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1900 * .gitignore: New file.
1902 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1904 * NEWS: Mention new cfi device simulation.
1906 2011-03-29 Tom Tromey <tromey@redhat.com>
1908 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1909 otherwise anonymous types.
1910 (dwarf2_name): Likewise.
1911 * valops.c (value_struct_elt_for_reference): Refine artificial
1912 type logic. Call error if j==-1.
1914 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1916 Fix false GCC warning.
1917 * infcall.c (find_function_addr): Initialize funaddr.
1919 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1921 Fix mingw compilation with --enable-targets=all.
1922 * remote-mips.c (gdb_usleep.h): Include header.
1923 (mips_enter_debug): Use gdb_usleep instead of sleep.
1925 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1927 Support resolution of STT_GNU_IFUNC via breakpoints.
1928 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1929 bp_gnu_ifunc_resolver_return.
1930 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1931 the loop. Support bp_gnu_ifunc_resolver and
1932 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1933 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1935 (bptype_string, print_one_breakpoint_location): Support
1936 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1937 (user_settable_breakpoint): Return true also for
1938 bp_gnu_ifunc_resolver.
1939 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1940 bp_gnu_ifunc_resolver_return.
1941 (set_breakpoint_location_function): New parameter explicit_loc,
1942 describe it. Call find_pc_partial_function_gnu_ifunc with new
1943 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1944 EXPLICIT_LOC is not set.
1945 (set_raw_breakpoint): Set EXPLICIT_LOC for
1946 set_breakpoint_location_function.
1947 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1948 set_breakpoint_location_function.
1949 (mention): Support bp_gnu_ifunc_resolver and
1950 bp_gnu_ifunc_resolver_return.
1951 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1952 set_breakpoint_location_function.
1953 (update_breakpoint_locations): Remove static.
1954 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1955 bp_gnu_ifunc_resolver_return.
1956 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1957 bp_gnu_ifunc_resolver_return.
1958 (update_breakpoint_locations): New declaration.
1959 * elfread.c: Include gdbthread.h and regcache.h.
1960 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1962 (elf_gnu_ifunc_fns): Install them.
1963 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1964 (stub_gnu_ifunc_resolver_return_stop): New functions.
1965 (stub_gnu_ifunc_fns): Install them.
1966 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1967 and gnu_ifunc_resolver_return_stop.
1968 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1970 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1972 STT_GNU_IFUNC reader implementation.
1973 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1974 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1975 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1976 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1977 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1978 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1979 (elf_gnu_ifunc_resolve_addr): New.
1980 (elf_symfile_read): Call elf_rel_plt_read.
1981 (elf_gnu_ifunc_fns): New.
1982 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1983 Install elf_gnu_ifunc_fns.
1984 * infcall.c (find_function_return_type): New function.
1985 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1986 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1987 (stub_gnu_ifunc_resolve_name): New functions.
1988 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1989 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1990 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1992 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1994 Code cleanup for later STT_GNU_IFUNC support.
1995 * infcall.c (find_function_addr): Remove variable code, use explicit
1996 dereferences for it. Move VALUE_TYPE initialization later.
1998 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2001 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2002 (clear_pc_function_cache): Clear it.
2003 (find_pc_partial_function): Rename to ...
2004 (find_pc_partial_function_gnu_ifunc): ... this function. New
2005 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2006 (find_pc_partial_function): New wrapper for this function.
2007 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2009 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2011 GDB internal type support for STT_GNU_IFUNC.
2012 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2013 (elf_symtab_read): Set mst_text_gnu_ifunc for
2014 BSF_GNU_INDIRECT_FUNCTION.
2015 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2016 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2017 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2018 nodebug_got_plt_symbol.
2019 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2020 (TYPE_GNU_IFUNC): New.
2021 (struct main_type): New field flag_gnu_ifunc.
2022 (struct builtin_type): New field builtin_func_func.
2023 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2024 nodebug_got_plt_symbol.
2025 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2026 (in_gnu_ifunc_stub): New.
2027 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2029 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2030 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2031 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2033 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2034 * symtab.c (search_symbols): Likewise.
2035 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2036 and mst_slot_got_plt.
2037 (in_gnu_ifunc_stub): New declaration.
2039 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2041 Support a ring of related breakpoints.
2042 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2043 other functions, add gdb_assert.
2044 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2045 watchpoint_del_at_next_stop.
2046 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2047 (bpstat_stop_status): Handle ring in related_breakpoint.
2048 (set_raw_breakpoint_without_location): Initialize ring in
2050 (delete_breakpoint): Handle ring in related_breakpoint, use
2051 watchpoint_del_at_next_stop.
2052 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2054 2011-03-28 Tom Tromey <tromey@redhat.com>
2057 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2058 with `language_minimal'.
2060 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2062 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2063 instead of checking for STT_ARM_TFUNC symbol type.
2065 2011-03-25 Tom Tromey <tromey@redhat.com>
2067 * linespec.c (symbol_found): Restore line-based result for
2068 non-LOC_LABEL symbols.
2070 2011-03-25 Kai Tietz <ktietz@redhat.com>
2072 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2073 instead of strcmp for comparison.
2074 (tui_source_is_displayed): Likewise.
2075 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2077 2011-03-24 Mark Wielaard <mjw@redhat.com>
2079 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2081 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2082 (find_partial_die_in_comp_unit): Likewise in comment.
2083 (read_attribute_value): Likewise.
2084 (lookup_die_type): Likewise.
2085 (dwarf_form_name): Likewise.
2086 (dump_die_shallow): Likewise.
2087 (follow_die_ref_or_sig): Likewise.
2089 2011-03-24 Tom Tromey <tromey@redhat.com>
2091 PR breakpoints/11816:
2092 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2093 (decode_compound): Update.
2094 (find_function_symbol): New function.
2095 (decode_dollar): Update.
2096 (decode_label): Add 'function_symbol' parameter. Handle
2097 function-relative labels.
2098 (decode_variable): Update.
2099 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2100 not its line. Set `special_display' and canonical name for
2103 2011-03-24 Tom Tromey <tromey@redhat.com>
2105 * linespec.h (struct linespec_result) <special_display>: New
2107 * breakpoint.h (struct breakpoint) <display_canonical>: New
2109 * breakpoint.c (print_breakpoint_location): Respect
2111 (create_breakpoint_sal): Add 'display_canonical' parameter.
2112 (create_breakpoints_sal): Update.
2113 (create_breakpoint): Update.
2115 2011-03-24 Tom Tromey <tromey@redhat.com>
2117 * symtab.c (decode_line_spec): Update.
2118 * linespec.c (build_canonical_line_spec): Change type of
2120 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2121 (find_method, decode_all_digits, decode_dollar, decode_label)
2122 (symbol_found): Likewise.
2123 (init_linespec_result): New function.
2124 * breakpoint.c (struct captured_parse_breakpoint_args)
2125 <canonical_p>: New field, replaces addr_string_p.
2126 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2128 (parse_breakpoint_sals): Likewise.
2129 (do_captured_parse_breakpoint): Update.
2130 (create_breakpoint): Use struct linespec_result.
2131 (until_break_command): Update.
2132 (breakpoint_re_set_one): Update.
2133 (decode_line_spec_1): Update.
2134 * linespec.h (struct linespec_result): New.
2135 (init_linespec_result): Declare.
2137 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2139 * regcache.c (regcache_raw_read): If the target didn't supply a
2140 given raw register, mark it as unavailable.
2142 2011-03-23 Kai Tietz <ktietz@redhat.com>
2144 * breakpoint.c (clear_command): Use filename_cmp
2145 instead of strcmp for comparison.
2146 * buildsym.c (watch_main_source_file_lossage): Likewise.
2147 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2148 checking just for slash.
2149 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2150 strrchr and filename_cmp instead of strcmp for filenames.
2151 (add_old_header_file): Use filename_cmp
2152 instead of strcmp for comparison.
2153 * exec.c (exec_set_section_address): Likewise.
2154 * macrotab.c (macro_lookup_inclusion): Likewise.
2155 (macro_lookup_inclusion): Likewise.
2156 * elfread.c (_initialize_elfread): Likewise.
2157 (elfstab_offset_sections): Likewise.
2158 (elfstab_offset_sections): Use lbasename instead of
2160 * mdebugread.c (parse_partial_symbols): Likewise.
2161 (arse_partial_symbols): Use filename_(n)cmp instead of
2162 str(n)cmp for comparison.
2163 * minsyms.c (lookup_minimal_symbol): Likewise.
2164 * psymtab.c (read_psymtabs_with_filename): Likewise.
2165 * solib.c (solib_read_symbols): Likewise.
2166 (reload_shared_libraries_1): Likewise.
2167 * symmisc.c (maintenance_print_symbols): Likewise.
2168 * symfile.c (separate_debug_file_exists): Likewise.
2169 (reread_symbols): Likewise.
2170 (find_separate_debug_file_by_debuglink): Likewise.
2171 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2172 * source.c (add_path): Likewise.
2173 * symtab.c (filename_seen): Likewise.
2174 (file_matches): Likewise.
2175 (print_symbol_info): Likewise.
2176 (maybe_add_partial_symtab_filename): Likewise.
2177 (make_source_files_completion_list): Likewise.
2178 * xml-syscall.c (init_sysinfo): Likewise.
2179 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2180 IS_DIR_SEPARATOR for checking for trailing path separator.
2182 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2185 label abort_expression.
2186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2187 DWARF_VALUE_OPTIMIZED_OUT.
2189 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2192 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2193 to linkage_name. Invert its value. Update the function comment.
2194 (c_type_print_varspec_suffix): Invert it at the caller.
2195 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2197 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2199 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2200 errors when reading the `stop_pc'.
2201 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2204 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2206 * NEWS: Document gdb.Write stream keyword.
2208 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2213 (dwarf2_add_field): Fix new_field->accessibility for
2214 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2216 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2220 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2221 other error classes. Do not print stack trace.
2223 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2225 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2226 (dwarf2_add_field): Fix new_field->accessibility for
2227 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2229 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2231 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2232 encountering a load via a non-SP register.
2234 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2236 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2237 field in returned unwinder.
2239 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2241 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2243 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2245 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2248 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2250 * frame.c (frame_unwind_register): Throw an error if unwinding the
2252 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2253 an unwind stop reason.
2254 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2255 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2256 UNWIND_UNAVAILABLE>: New.
2257 * inline-frame.c (inline_frame_unwind): Install
2258 default_frame_unwind_stop_reason.
2259 * frame-unwind.c: Include "exceptions.h".
2260 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2261 (default_frame_unwind_stop_reason): New.
2262 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2263 (default_frame_unwind_stop_reason): Declare.
2264 (struct frame_unwind) <stop_reason>: New function pointer.
2266 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2267 * dwarf2-frame.c: Include exceptions.h.
2268 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2269 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2270 computing the CFA. If such an error was thrown, set
2271 unavailable_retaddr.
2272 (dwarf2_frame_unwind_stop_reason): New.
2273 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2275 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2276 (dwarf2_signal_frame_unwind): Ditto.
2278 * amd64-tdep.c: Include "exceptions.h".
2279 (struct amd64_frame_cache): New field "base_p".
2280 (amd64_init_frame_cache): Clear it.
2281 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2282 Avoid reading registers with functions that throw if the register
2283 is not necessary to compute the frame base.
2284 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2285 swallowing NOT_AVAILABLE_ERROR.
2286 (amd64_frame_unwind_stop_reason): New.
2287 (amd64_frame_this_id): Don't build a frame id if the frame base
2289 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2290 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2291 base_p if the frame base was computable.
2292 (amd64_sigtramp_frame_unwind_stop_reason): New.
2293 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2294 frame base was unavailable.
2295 (amd64_sigtramp_frame_unwind): Install
2296 amd64_sigtramp_frame_unwind_stop_reason.
2297 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2298 base_p if the frame base was computable.
2299 (amd64_epilogue_frame_unwind_stop_reason): New.
2300 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2301 frame base was unavailable.
2302 (amd64_epilogue_frame_unwind): Install
2303 amd64_epilogue_frame_unwind_stop_reason.
2304 * i386-tdep.c: Include "exceptions.h".
2305 (struct i386_frame_cache): New field "base_p".
2306 (i386_init_frame_cache): Clear it.
2307 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2308 Avoid reading registers with functions that throw if the register
2309 is not necessary to compute the frame base.
2310 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2311 swallowing NOT_AVAILABLE_ERROR.
2312 (i386_frame_unwind_stop_reason): New.
2313 (i386_frame_this_id): Don't build a frame id if the frame base was
2315 (i386_frame_prev_register): Handle unavailable SP.
2316 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2317 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2318 base_p if the frame base was computable.
2319 (i386_epilogue_frame_unwind_stop_reason): New.
2320 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2321 base was unavailable.
2322 (i386_epilogue_frame_unwind): Install
2323 i386_epilogue_frame_unwind_stop_reason.
2324 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2325 base_p if the frame base was computable.
2326 (i386_sigtramp_frame_unwind_stop_reason): New.
2327 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2328 base was unavailable.
2329 (i386_sigtramp_frame_unwind): Install
2330 i386_sigtramp_frame_unwind_stop_reason.
2331 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2332 type's size, not the register's.
2333 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2335 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2336 default_frame_unwind_stop_reason.
2337 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2338 (alpha_heuristic_frame_unwind): Ditto.
2339 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2340 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2341 * avr-tdep.c (avr_frame_unwind): Ditto.
2342 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2344 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2345 * frv-tdep.c (frv_frame_unwind): Ditto.
2346 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2347 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2348 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2349 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2350 (hppa_stub_frame_unwind): Ditto.
2351 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2352 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2353 (ia64_libunwind_frame_unwind)
2354 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2355 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2356 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2357 * m32c-tdep.c (m32c_unwind): Ditto.
2358 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2359 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2360 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2361 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2362 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2363 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2364 * mep-tdep.c (mep_frame_unwind): Ditto.
2365 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2366 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2367 (mips_stub_frame_unwind): Ditto.
2368 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2369 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2370 * mt-tdep.c (mt_frame_unwind): Ditto.
2371 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2372 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2373 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2374 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2375 (s390_sigtramp_frame_unwind): Ditto.
2376 * score-tdep.c (score_prologue_unwind): Ditto.
2377 * sh-tdep.c (sh_frame_unwind): Ditto.
2378 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2379 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2380 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2381 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2382 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2383 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2384 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2385 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2386 (sparc64obsd_trapframe_unwind): Ditto.
2387 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2388 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2389 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2390 * v850-tdep.c (v850_frame_unwind): Ditto.
2391 * vax-tdep.c (vax_frame_unwind): Ditto.
2392 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2393 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2394 * xtensa-tdep.c (xtensa_unwind): Ditto.
2396 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2398 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2399 there's always a frame. Use get_frame_pc_if_available instead of
2400 get_frame_pc, and if there's no PC available, don't look up a
2403 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2405 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2408 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2410 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2413 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2415 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2416 * frame.c (frame_unwind_caller_pc_if_available): New.
2417 * stack.c (frame_info): Handle unavailable PC.
2419 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2421 * frame.c (frame_unwind_pc): Rename to ...
2422 (frame_unwind_pc_if_available): ... this. New `pc' output
2423 parameter. Change return type to int. Gracefully handle
2424 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2425 happened, or 1 otherwise.
2426 (frame_unwind_pc): Reimplement on top of
2427 frame_unwind_pc_if_available.
2428 (get_frame_func): Rename to ...
2429 (get_frame_func_if_available): New `pc' output parameter. Change
2430 return type to int. Gracefully handle the PC not being available.
2431 (get_frame_func): Reimplement on top of
2432 get_frame_func_if_available.
2433 (select_frame): Handle the PC being unavailable.
2434 (get_prev_frame): Handle the PC being unavailable.
2435 (get_frame_pc_if_available): New.
2436 (get_frame_address_in_block_if_available): New.
2437 (find_frame_sal): Handle the frame PC not being available.
2438 * frame.h (get_frame_pc_if_available): Declare.
2439 (get_frame_address_in_block_if_available): Declare.
2440 (get_frame_func_if_available): Declare.
2441 * stack.c (print_frame_info): Handle the PC being unavailable.
2442 (find_frame_funname): Ditto.
2443 (print_frame): Handle the PC being unavailable.
2444 (get_frame_language): Ditto.
2445 * blockframe.c (get_frame_block): Ditto.
2446 * macroscope.c (default_macro_scope): Ditto.
2447 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2449 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2451 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2452 NOT_AVAILABLE_ERROR when evaluating the location expression.
2454 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2456 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2457 returning that the register piece is unavailable/optimized out.
2458 (write_pieced_value): Handle get_frame_register_bytes returning
2459 that the register piece is unavailable/optimized out when doing a
2460 read-modify write of a bitfield.
2461 * findvar.c (value_from_register): Handle get_frame_register_bytes
2462 returning that the register piece is unavailable/optimized out.
2463 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2464 and `unavailablep'. Throw error on bad debug info. Use
2465 frame_register instead of frame_register_read, to fill in the new
2467 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2469 * valops.c: (value_assign): Adjust, and handle
2470 get_frame_register_bytes failing.
2471 * spu-tdep.c: Include exceptions.h.
2472 (spu_software_single_step): Adjust, and handle
2473 get_frame_register_bytes failing.
2474 (spu_get_longjmp_target): Ditto.
2475 * gdbarch.sh (register_to_value): Change to return int. New
2476 parameters `optimizedp' and `unavailablep'.
2477 * gdbarch.h, gdbarch.c: Regenerate.
2478 * i386-tdep.c (i386_register_to_value): Adjust to new
2479 gdbarch_register_to_value interface.
2480 * i387-tdep.c (i387_register_to_value): Ditto.
2481 * i387-tdep.h (i387_register_to_value): Ditto.
2482 * alpha-tdep.c (alpha_register_to_value): Ditto.
2483 * ia64-tdep.c (ia64_register_to_value): Ditto.
2484 * m68k-tdep.c (m68k_register_to_value): Ditto.
2485 * mips-tdep.c (mips_register_to_value): Ditto.
2486 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2488 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2490 * findvar.c (value_of_register): Mark the value as unavailable, if
2491 the register is unavailable.
2492 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2493 (frame_register): New `unavailablep' parameter.
2494 (frame_register_read): Update comment.
2495 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2496 Set it if the register is unavailable. If the register is
2497 unavailable, clear the output buffer.
2498 (frame_register): New `unavailablep' parameter. Pass it down.
2499 (frame_unwind_register): Adjust.
2500 (put_frame_register): Adjust.
2501 (frame_register_read): Adjust. Also return false if the register
2503 (frame_register_unwind_location): Adjust.
2504 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2505 is unavailable, mark the value accordingly.
2506 * stack.c (frame_info): Handle unavailable registers.
2508 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2510 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2511 simplify, using regcache_cooked_read.
2513 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2515 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2516 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2517 (regcache_raw_read_unsigned, regcache_raw_read_part)
2518 (regcache_cooked_read, regcache_cooked_read_signed)
2519 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2520 (regcache_cooked_read_ftype): Change return to enum
2522 * regcache.c: Include exceptions.h
2523 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2524 (do_cooked_read): Change return to enum register_status. Always
2525 forward to regcache_cooked_read.
2526 (regcache_raw_read): Change return to enum register_status. If
2527 the register is not REG_VALID, memset the buffer. Return the
2529 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2530 return the register's status.
2531 (regcache_raw_read_unsigned): Ditto.
2532 (regcache_cooked_read): Change return to enum register_status.
2533 Assert that with read-only regcaches, the register's status must
2534 be known. If the regcache is read-only, and the register is not
2535 REG_VALID, memset the buffer. Return the register's status.
2536 (regcache_cooked_read_signed): Change return to enum
2537 register_status. Handle non-REG_VALID registers and return the
2539 (regcache_cooked_read_unsigned): Change return to enum
2540 register_status. Handle non-REG_VALID registers and return the
2542 (regcache_xfer_part, regcache_raw_read_part)
2543 (regcache_cooked_read_part): Change return to enum
2544 register_status. Return the register's status.
2545 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2547 (regcache_dump): Handle unavailable cooked registers.
2548 * frame.c (do_frame_register_read): Adjust interface to match
2549 regcache_cooked_read_ftype.
2550 * gdbarch.sh (pseudo_register_read): Change return to enum
2552 * gdbarch.h, gdbarch.c: Regenerate.
2554 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2556 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2557 register_status. If reading a raw register indicates the raw
2558 register is not valid, return the raw register's status,
2559 otherwise, return REG_VALID.
2560 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2561 register_status. Handle non-REG_VALID raw registers and return
2562 the register's status.
2563 * arm-tdep.c (arm_neon_quad_read)
2564 (arm_pseudo_read): Change return to enum register_status. Handle
2565 non-REG_VALID raw registers and return the register's status.
2566 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2567 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2568 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2569 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2570 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2572 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2573 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2574 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2575 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2576 (m32c_pseudo_register_read): Change return to enum
2577 register_status. Adjust.
2578 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2579 enum register_status. Return the register's status.
2580 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2581 register_status. Return the register's status.
2582 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2583 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2584 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2585 * rs6000-tdep.c (move_ev_register_func): New typedef.
2586 (e500_move_ev_register): Use it. Change return to enum
2587 register_status. Return the register's status.
2588 (do_regcache_raw_read): New function.
2589 (do_regcache_raw_write): New function.
2590 (e500_pseudo_register_read): Change return to enum
2591 register_status. Return the register's status. Use
2592 do_regcache_raw_read.
2593 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2594 (dfp_pseudo_register_read): Change return to enum register_status.
2595 Return the register's status.
2596 (vsx_pseudo_register_read): Ditto.
2597 (efpr_pseudo_register_read): Ditto.
2598 (rs6000_pseudo_register_read): Ditto.
2599 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2600 register_status. Return the register's status.
2601 * sh64-tdep.c (pseudo_register_read_portions): New function.
2602 (sh64_pseudo_register_read): Change return to enum
2603 register_status. Use pseudo_register_read_portions. Return the
2605 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2606 register_status. Return the register's status.
2607 * sh-tdep.c (pseudo_register_read_portions): New function.
2608 (sh_pseudo_register_read): Change return to enum register_status.
2609 Use pseudo_register_read_portions. Return the register's status.
2610 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2611 enum register_status. Return the register's status.
2612 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2613 * spu-tdep.c (spu_pseudo_register_read_spu)
2614 (spu_pseudo_register_read): Ditto.
2615 * xtensa-tdep.c (xtensa_register_read_masked)
2616 (xtensa_pseudo_register_read): Ditto.
2617 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2619 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2621 * python/py-value.c (valpy_getitem): Fix formatting of error function
2624 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2626 ARI fixes: Add missing internationalization markups throughout
2628 * darwin-nat-info.c: Ditto.
2631 * mi/mi-main.c: Ditto.
2633 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2635 ARI fixes: Add missing internationalization markups throughout
2638 * cp-name-parser.y: Ditto.
2641 * objc-exp.y: Ditto.
2644 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2646 ARI fixes: Messages should have no trailing new lines.
2647 * darwin-nat.c (mach_check_error): Remove trailing new line from
2648 warning function call message.
2649 * record.c (bfdcore_read): Idem for error call.
2651 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2653 * common/signals.c (target_signal_from_host): Add _ markup to error
2654 function call message.
2655 (target_signal_to_host): Add _ markup and remove trailing new line
2656 from warning call message.
2657 (target_signal_from_command): Add _ markup to error function call
2660 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2664 * python/python.c (gdbpy_write): Accept a stream argument and
2665 operate to the appropriate stream.
2666 (gdbpy_flush): Likewise.
2667 (_initialize_python): Add stream constants.
2668 (finish_python_initialization): Add GdbOutputErrorFile class.
2670 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2672 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2674 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2676 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2677 to store_signed_integer. Add debug message when relocating CALL
2678 instructions. Fix formatting of debug message.
2679 * i386-tdep.c (i386_relocate_instruction): Ditto.
2681 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2683 * target.h (struct target_ops): Remove to_lookup_symbol field.
2684 (target_lookup_symbol): Delete macro.
2685 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2686 (update_current_target, setup_target_debug): Remove handling
2687 of to_lookup_symbol target_ops field.
2688 * ada-tasks.c (get_known_tasks_addr): Remove use of
2689 target_lookup_symbol.
2690 * coffread.c (coff_symtab_read): Likewise.
2691 * dbxread.c (read_dbx_symtab): Ditto.
2693 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2696 * configure.ac: Add getthrds declaration check.
2697 * configure, config.in: Regenerate.
2698 * aix-thread.c (getthrds): Declare only if not already declared
2699 in procinfo.h. More declaration out of get_signaled_thread to
2702 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2704 * python/py-symtab.c: Populate symtab_object_methods,
2706 (stpy_is_valid): New function.
2707 (salpy_is_valid): Ditto.
2708 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2709 (sympy_is_valid): New function.
2710 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2711 (objfpy_is_valid): New function.
2712 * python/py-inferior.c: Populate inferior_object_methods.
2713 (infpy_is_valid): New function.
2714 * python/py-infthread.c: Populate thread_object_methods.
2715 (thpy_is_valid): New function.
2716 * python/py-block.c: Declare block_object_methods. Populate. Declare
2717 block_iterator_object_methods. Populate.
2718 (blpy_is_valid): New function.
2719 (blpy_iter_is_valid): Ditto.
2721 2011-03-16 Keith Seitz <keiths@redhat.com>
2723 * linespec.c (find_methods): Canonicalize NAME before looking
2725 (name_end): New function.
2726 (keep_name_info): New function.
2727 (decode_line_1): Use keep_name_info.
2728 (decode_compound): Likewise.
2729 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2730 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2733 * linespec.c (locate_first_half): Keep overload information, too.
2734 (decode_compound): Use a string to represent break characters
2736 If P points to a break character, do not increment it.
2737 For C++ and Java, keep overload information and relevant keywords.
2738 If we cannot find a symbol, search the minimal symbols.
2741 * linespec.c (decode_compound): Rename SAVED_ARG to
2743 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2745 Pass a valid block to lookup_symbol.
2746 (lookup_prefix_sym): Likewise.
2747 (find_method): Construct search name based on SYM_CLASS instead
2749 * psymtab.c (lookup_partial_symbol): Add language parameter.
2750 (lookup_symbol_aux_psymtabs): Likewise.
2751 Don't assume that the psymtab we found was the right one. Search
2752 for the desired symbol in the symtab to be certain.
2753 (psymtab_search_name): New function.
2754 (lookup_partial_symbol): Use psymtab_search_name.
2755 Add language parameter.
2756 (read_symtabs_for_function): Add language parameter and pass to
2757 lookup_partial_symbol.
2758 (find_symbol_file_from_partial): Likewise.
2760 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2763 * dwarf2read.c (noop_record_line): New function.
2764 (dwarf_decode_lines): Ignore line tables for GCd functions.
2766 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2768 Fix ARI warnings about new lines at the end of messages, which
2769 are unneeded as there is a new line added at the end of the message
2771 * darwin-nat.c (darwin_stop_inferior): Ditto.
2772 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2773 * dfp.c (decimal_to_number): Ditto.
2774 * exec.c (print_section_info): Ditto.
2775 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2776 * osdata.c (get_osdata): Ditto.
2777 * record.c (bfdcore_write): Ditto.
2778 * remote-mips.c (mips_readchar): Ditto.
2779 * remote.c (read_ptid): Ditto.
2780 * ser-mingw.c (ser_windows_raw): Ditto.
2781 * tracepoint.c (add_local_symbols): Ditto.
2782 * windows-nat.c (fake_create_process): Ditto.
2784 2011-03-16 Tom Tromey <tromey@redhat.com>
2786 * tracepoint.c (stop_tracing): Don't declare.
2787 * event-top.c (after_char_processing_hook): Add `(void)'.
2789 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2791 * NEWS: Add Parameter sub-classing description.
2793 2011-03-16 Kai Tietz <ktietz@redhat.com>
2795 * MAINTAINERS: Update my e-mail address.
2797 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2799 * MAINTAINERS: Add myself for write after approval privileges.
2801 2011-03-15 Michael Snyder <msnyder@vmware.com>
2803 * frame.c (find_frame_sal): Assert sym is not null.
2805 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2807 * objc-lang.c (selectors_info): Check strchr for null result.
2809 * stabsread.c (define_symbol): Guard against bad stabstring input.
2811 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2813 Remove trailing spaces and tabulations from pascal language
2818 p-valprint.c: Ditto.
2820 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2823 than LOW. Comment it.
2824 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2825 HIGHPC not strictly higher than LOWPC.
2827 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2829 Fix formatting of function declarations returning a pointer in
2831 * varobj.c (varobj_add_child): Ditto.
2832 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2833 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2835 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2837 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2838 for the "generic" vector ABI used with GCC 4.3 and later.
2839 (ppc64_sysv_abi_return_value): Likewise.
2841 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2843 * infcall.c (call_function_by_hand): Function return value is
2844 always a non_lval, even when using struct_return.
2846 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2848 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2849 (map_display_numbers): New.
2850 (do_delete_display): New.
2851 (undisplay_command): Use map_display_numbers.
2852 (do_enable_disable_display): New.
2853 (enable_disable_display_command): New function.
2854 (enable_display): Delete.
2855 (enable_display_command): New.
2856 (disable_display_command): Reimplement.
2857 (_initialize_printcmd): Adjust "enable display" command to use
2858 `enable_display_command' as callback.
2860 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2862 * NEWS: Add Python breakpoint 'stop' operation.
2864 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2866 * NEWS: Delete duplicate entry. Fix typo.
2868 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2870 Fix ARI warning about function names in first column.
2871 Put prototype declaration on same line as return type.
2872 * objc-exp.y: Ditto.
2874 * python/py-stopevent.h: Ditto.
2875 For long function names, split parameters to
2876 allow function name on same line as return type.
2877 * solib-pa64.c: Ditto.
2880 For long function declaration, use single line.
2881 * hppa-tdep.h: Ditto.
2882 * inferior.h: Ditto.
2884 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2886 * python/python.h: Declare gdbpy_should_stop and
2887 gdbpy_breakpoint_has_py_cond.
2888 * python/python.c: Add python.h to includes. Remove python.h from
2889 HAVE_PYTHON definition
2890 (gdbpy_should_stop): New dummy function.
2891 (gdbpy_breakpoint_has_py_cond): New dummy function.
2892 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2893 sub-classing capabilities.
2894 (gdbpy_should_stop): New function.
2895 (gdbpy_breakpoint_has_py_cond): New function.
2896 (local_setattro): New function.
2897 * breakpoint.c (condition_command): Add check for Python 'stop'
2899 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2900 operation function as part of stop/continue tests.
2902 2011-03-14 Tom Tromey <tromey@redhat.com>
2905 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2906 (needs_frame_dwarf_call): Likewise.
2908 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2910 Fix ARI warning about functions without parameters that do not
2912 * breakpoint.c (all_tracepoints): Replace () by (void).
2913 * f-exp.y (match_string_literal): Ditto.
2915 * m2-exp.y (yylex): Ditto.
2916 * mep-tdep.c (current_me_module): Ditto.
2917 (current_options): Ditto.
2918 (current_cop_data_bus_width): Ditto.
2919 (current_cr_names): Ditto.
2920 (current_cr_is_float): Ditto.
2921 (current_ccr_names): Ditto.
2922 * objc-exp.y (yylex): Ditto.
2923 * p-exp.y (yylex): Ditto.
2924 * remote.c (send_interrupt_sequence): Ditto.
2925 * tracepoint.c (current_trace_status): Ditto.
2926 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2927 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2929 2011-03-11 Michael Snyder <msnyder@vmware.com>
2931 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2932 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2933 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2934 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2935 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2937 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2938 (delete_async_event_handler): Ditto.
2940 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2942 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2944 * top.c (set_verbose): Assert showcmd was found.
2946 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2948 * xtensa-tdep.c (warning_once): Correct style issues.
2950 2011-03-11 Yao Qi <yao@codesourcery.com>
2952 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2954 2011-03-11 Andreas Schwab <schwab@redhat.com>
2956 * common/aclocal.m4: Remove.
2958 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2960 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2961 (xtensa_write_register, xtensa_read_register): Likewise.
2962 (xtensa_hextochar): Removed.
2963 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2965 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2967 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2968 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2969 (xtensa_alloc_frame_cache): Add initialization for new fields.
2970 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2971 (warning_once): New function.
2972 (xtensa_insn_kind): New item c0opc_and.
2973 (call0_classify_opcode): Add the case for AND instruction.
2974 (call0_track_op): Change arguments. New local variable litbase.
2975 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2976 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2978 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2979 (call0_analyze_prologue): Update the comments. Change arguments.
2980 Add the variety of updates to handle extended prologues, which now can
2981 conduct dynamic stack adjustments.
2982 (call0_frame_cache): Likewise.
2983 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2984 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2986 2011-03-10 Michael Snyder <msnyder@vmware.com>
2988 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2989 (cmd_qtframe): Ditto.
2990 (cmd_qtbuffer): Ditto.
2991 (cmd_bigqtbuffer): Ditto.
2993 2011-03-10 Tom Tromey <tromey@redhat.com>
2995 * tracepoint.c (trace_actions_command): Update.
2996 * thread.c (thread_apply_command): Update.
2997 * reverse.c (delete_bookmark_command): Update.
2998 (bookmarks_info): Update.
2999 * printcmd.c (undisplay_command): Update.
3000 * memattr.c (mem_enable_command): Update.
3001 (mem_disable_command): Update.
3002 (mem_delete_command): Update.
3003 * inferior.c (detach_inferior_command): Update.
3004 (kill_inferior_command): Update.
3005 (remove_inferior_command): Update.
3006 * cli/cli-utils.h (struct get_number_or_range_state): New.
3007 (init_number_or_range): Declare.
3008 (get_number_or_range): Update.
3009 * cli/cli-utils.c (init_number_or_range): New function.
3010 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3012 (number_is_in_list): Update.
3013 * breakpoint.h (get_tracepoint_by_number): Update.
3014 * breakpoint.c (map_breakpoint_numbers): Update for change to
3015 get_number_or_range.
3016 (find_location_by_number): Use get_number, not
3017 get_number_or_range.
3018 (trace_pass_set_count): New function.
3019 (trace_pass_command): Update for change to get_number_or_range.
3021 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3024 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3026 * python/py-param.c (add_setshow_generic): Add set/show callback
3027 parameters. Register Python object context.
3028 (get_show_value): New function.
3029 (get_set_value): New function.
3030 (call_doc_function): New function.
3031 (get_doc_string): Move behind get_show_value/get_set_value.
3033 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3035 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3037 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3039 * xtensa-tdep.c (xtensa_read_register): Add comment.
3040 (xtensa_write_register): Likewise.
3041 (xtensa_hextochar): Add comment and update to match coding conventions.
3042 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3043 (execute_l32e, execute_s32e, execute_code): Update comments.
3044 (xtensa_exception_handler_t): Update to match coding conventions.
3045 (xtensa_insn_kind): Likewise.
3047 2011-03-09 Michael Snyder <msnyder@vmware.com>
3049 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3051 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3053 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3055 2011-03-09 Tom Tromey <tromey@redhat.com>
3057 * thread.c (restore_selected_frame): Handle frame_level == -1.
3058 (make_cleanup_restore_current_thread): Use
3059 get_selected_frame_if_set.
3060 * frame.h (get_selected_frame_if_set): Declare.
3061 * frame.c (get_selected_frame_if_set): New function.
3063 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3065 * cli/cli-cmds.c (shell_escape): Use lbasename.
3066 * coffread.c (coff_start_symtab): Constify parameter.
3067 (complete_symtab): Constify `name' parameter.
3068 (coff_symtab_read): Constify `filestring' local.
3069 (coff_getfilename): Constify return and `result' local.
3071 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3072 * linux-fork.c (info_checkpoints_command): Use lbasename.
3073 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3074 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3075 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3076 * procfs.c (procfs_make_note_section): Use lbasename.
3077 * tui/tui-io.c (printable_part): Constity return and parameter.
3079 (print_filename): Constify parameters, and local `s'.
3080 (tui_rl_display_match_list): Constify local `temp'.
3082 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3085 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3086 Fix DWARF-3+ DW_AT_accessibility default assumption.
3087 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3088 cu->header.version >= 3.
3090 2011-03-09 Yao Qi <yao@codesourcery.com>
3092 * common/Makefile.in: Remove.
3093 * common/configure: Remove.
3094 * common/configure.ac: Remove.
3096 2011-03-09 Yao Qi <yao@codesourcery.com>
3099 2011-02-11 Yao Qi <yao@codesourcery.com>
3101 * common/Makefile.in: Add copyright header.
3103 2011-02-11 Yao Qi <yao@codesourcery.com>
3105 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3107 * configure.ac: Add common to sub dir.
3108 * configure: Regenerate.
3110 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3112 * xtensa-tdep.c (call0_ret): New function.
3113 (xtensa_skip_prologue): Speed up analysis.
3115 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3117 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3118 while executing MI command -data-list-changed-registers.
3120 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3122 * xtensa-tdep.c (xtensa_read_register): New function.
3123 (xtensa_write_register): New function.
3124 (xtensa_find_register_by_name): New function.
3125 (xtensa_windowed_frame_cache): Update comments in type description.
3126 (xtensa_frame_cache): Likewise.
3127 (xtensa_window_interrupt_insn): New function.
3128 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3129 (xtensa_insn_kind): Add new instructions.
3130 (rwx_special_register): New function.
3131 (call0_classify_opcode): Add new instructions to the analysis.
3132 (a0_saved, a7_saved, a11_saved): New variables.
3133 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3134 (execute_l32e): New function.
3135 (execute_s32e): New function.
3136 (xtensa_exception_handler_t): New type.
3137 (execute_code): New function.
3138 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3139 analysis for Xtensa Window Exception handlers.
3141 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3143 * xtensa-tdep.c (TX_PS): New.
3144 (windowing_enabled): Update to count for Call0 ABI.
3145 (xtensa_hextochar): New.
3146 (xtensa_init_reggroups): Make algorithm generic.
3147 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3149 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3151 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3153 2011-03-08 Michael Snyder <msnyder@vmware.com>
3155 * i386-tdep.c (i386_follow_jump): Check return value of
3157 (i386_analyze_struct_return): Ditto.
3158 (i386_skip_probe): Ditto.
3159 (i386_match_insn): Ditto.
3160 (i386_skip_noop): Ditto.
3161 (i386_analyze_frame_setup): Ditto.
3162 (i386_analyze_register_saves): Ditto.
3163 (i386_skip_prologue): Ditto.
3164 (i386_skip_main_prologue): Ditto.
3166 * target.c (read_whatever_is_readable): Fix memory leak.
3168 * i386-tdep.c (i386_process_record): Document fall through.
3170 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3172 Fix DWARF-3+ DW_AT_accessibility default assumption.
3173 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3174 cu->header.version >= 3.
3176 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3178 * remote.c (remote_check_symbols): Skip if the target has no
3181 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3183 * target.c (read_whatever_is_readable): Reformat comment,
3184 with a minor typo fix. Minor reformatting of the code.
3186 2011-03-08 Yao Qi <yao@codesourcery.com>
3188 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3189 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3190 Use cached result instead of calling displaced_in_arm_mode again.
3191 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3192 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3193 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3194 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3195 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3196 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3197 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3198 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3199 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3200 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3201 (arm_catch_kernel_helper_return): Likewise.
3202 * gdb/arm-tdep.h : Update function declarations.
3204 2011-03-07 Michael Snyder <msnyder@vmware.com>
3206 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3208 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3210 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3212 * elfread.c (elf_symtab_read): Stop memory leak.
3214 * main.c (captured_main): Fix memory leak.
3216 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3218 * ada-lang.c (compare_names): Call is_name_suffix with string1
3221 2011-03-07 Tom Tromey <tromey@redhat.com>
3223 * xcoffread.c (xcoff_sym_fns): Update.
3224 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3225 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3226 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3227 (symbol_file_add_with_addrs_or_offsets): Likewise.
3228 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3229 * somread.c (som_sym_fns): Update.
3230 * psymtab.h (require_partial_symbols): Declare.
3231 * psymtab.c (require_partial_symbols): New function.
3232 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3233 (ALL_OBJFILE_PSYMTABS): Undef.
3234 (ALL_PSYMTABS): Move from psympriv.h.
3235 (lookup_partial_symtab, find_pc_sect_psymtab)
3236 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3237 (find_last_source_symtab_from_partial)
3238 (forget_cached_source_info_partial)
3239 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3240 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3241 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3242 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3243 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3244 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3245 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3246 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3247 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3249 * mipsread.c (ecoff_sym_fns): Update.
3250 * machoread.c (macho_sym_fns): Update.
3251 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3252 (read_psyms): New function.
3253 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3254 (elf_sym_fns_lazy_psyms): New global.
3255 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3256 dwarf2_build_psymtabs.
3257 * dbxread.c (aout_sym_fns): Update.
3258 * coffread.c (coff_sym_fns): Update.
3260 2011-03-07 Tom Tromey <tromey@redhat.com>
3262 * infrun.c (print_exited_reason): Include inferior id and pid in
3265 2011-03-07 Tom Tromey <tromey@redhat.com>
3267 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3269 (target_has_execution_1): Update.
3270 (target_has_execution_current): Declare.
3271 (target_has_execution): Call target_has_execution_current.
3272 (default_child_has_execution): Update.
3273 * target.c (default_child_has_execution): Add 'the_ptid'
3275 (target_has_execution_1): Likewise.
3276 (target_has_execution_current): New function.
3277 (add_target): Update.
3278 (init_dummy_target): Update.
3279 * remote-m32r-sdi.c (m32r_has_execution): New function.
3280 (init_m32r_ops): Use it.
3281 * record.c (record_core_has_execution): Now static. Add
3282 'the_ptid' parameter.
3283 * inferior.c (have_live_inferiors): Don't save current thread.
3284 Use target_has_execution_1.
3286 2011-03-07 Yao Qi <yao@codesourcery.com>
3288 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3290 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3292 * elfread.c (elf_symtab_read): Minor reformatting.
3294 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3296 * objc-lang.c (selectors_info): Minor reformatting.
3298 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3300 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3302 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3303 Michael Snyder <msnyder@vmware.com>
3305 * ada-valprint.c (ada_val_print_array): Move the declaration of
3306 "byte_order" and "elttype" inside the block where these variables
3307 are actually used. Remove some special handling for the case
3308 where "elttype" and "eltlen" are null. Replace by a comment
3309 and a couple of assertion checks.
3311 2011-03-05 Michael Snyder <msnyder@vmware.com>
3313 * source.c (add_path): Replace semicolon at end of block.
3314 * dwarf2expr.c (execute_stack_op): Ditto.
3316 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3318 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3319 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3320 (bfin-*-*): Likewise.
3322 2011-03-05 Michael Snyder <msnyder@vmware.com>
3324 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3325 * mdebugread.c (parse_symbol): Ditto.
3326 * parse.c (parse_exp_in_context): Ditto.
3327 * source.c (add_path): Ditto.
3328 * utils.c (gnu_debuglink_crc32): Ditto.
3329 * varobj.c (variable_language): Ditto.
3331 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3333 2011-03-04 Michael Snyder <msnyder@vmware.com>
3335 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3337 * symfile.c (simple_overlay_update): Check for null return value
3338 from lookup_minimal_symbol.
3340 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3342 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3344 * eval.c (parse_and_eval_address_1): Remove function.
3345 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3346 instead of parse_and_eval_address_1.
3347 * value.h (parse_and_eval_address_1): Remove prototype.
3349 2011-03-04 Michael Snyder <msnyder@vmware.com>
3351 * remote.c (putpkt_binary): Document that case stmt falls through.
3353 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3355 * breakpointc (print_it_typical): Move NULL check from here...
3356 (print_bp_stop_message): ... to here.
3358 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3360 * breakpoint.c (enable_command): Use break instead of continue,
3361 and fill in a missing break.
3362 (disable_command): Ditto.
3364 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3366 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3367 (terminal_save_ours): Remove misleading comment.
3368 (inflow_inferior_data_cleanup): Free ttystate.
3369 (inflow_inferior_exit): Likewise.
3370 (copy_terminal_info): Copy ttystate.
3372 * serial.c (serial_copy_tty_state): New function.
3373 * serial.h (serial_copy_tty_state): Add prototype.
3374 (struct serial_ops): Add copy_tty_state callback.
3375 * ser-base.c (ser_base_copy_tty_state): New function.
3376 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3377 * ser-go32.c (dos_copy_tty_state): New function.
3378 (dos_ops): Install copy_tty_state callback.
3379 * ser-mingw.c (_initialize_ser_windows): Likewise.
3380 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3381 * ser-unix.c (hardwire_copy_tty_state): New function.
3382 (_initialize_ser_hardwire): Install it.
3384 2011-03-04 Michael Snyder <msnyder@vmware.com>
3386 * breakpoint.c (create_breakpoint): Add missing break statement.
3388 Reverting this patch:
3389 * infcall.c (call_function_by_hand): Add break statements for lint.
3391 Reverting this patch:
3392 * cli/cli-script.c (script_from_file): Add break for lint.
3394 2011-03-04 Michael Snyder <msnyder@vmware.com>
3396 * solib.c (reload_shared_libraries_1): Close memory leak.
3398 2011-03-03 Tom Tromey <tromey@redhat.com>
3401 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3404 2011-03-03 Michael Snyder <msnyder@vmware.com>
3406 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3407 fields of struct 'st' to zero.
3409 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3410 sal.pspace before calling set_current_source_symtab_and_line.
3412 2011-03-03 Yao Qi <yao@codesourcery.com>
3414 * Makefile.in (configure-common): Remove. Let Makefile
3415 in dir common to rebuild itself.
3416 (common/Makefile): Likewise.
3418 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3420 * utils.c (parse_escape): Add i18n markup in error message.
3422 2011-03-03 Yao Qi <yao@codesourcery.com>
3424 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3426 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3427 (displaced_write_reg, displaced_read_reg): Likewise.
3428 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3429 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3430 (cleanup_branch): Replace magic number 14 and 15 with
3431 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3433 2011-03-02 Michael Snyder <msnyder@vmware.com>
3435 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3437 * cli/cli-script.c (script_from_file): Add break for lint.
3439 * mdebugread.c (parse_partial_symbols): Fix indent.
3441 * target-descriptions.c (tdesc_gdb_type): No need to call
3442 xstrdup, callee saves a copy.
3444 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3446 * infcall.c (call_function_by_hand): Add break statements for lint.
3448 * utils.c (parse_escape): Escape the escape char.
3450 * python/py-inferior.c (build_inferior_list): Error out if
3451 PyList_Append fails.
3452 (gdbpy_inferiors): Error out if build_inferior_list fails.
3454 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3457 * record.c (record_restore): Move printf to before error return.
3459 2011-03-02 Yao Qi <yao@codesourcery.com>
3461 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3462 is_thumb and insn_size.
3463 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3464 on both ARM and Thumb mode.
3465 (arm_process_displaced_insn): Set is_thumb and insn_size.
3466 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3467 (arm_displaced_step_fixup): Likewise.
3469 2011-03-01 Michael Snyder <msnyder@vmware.com>
3471 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3473 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3475 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3477 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3479 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3482 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3483 which shadows function parameter.
3485 * tracepoint.c (create_tsv_from_upload): Superfluous call
3486 to xstrdup. Callee already calls xstrdup.
3488 * linespec.c (decode_line_1): Remove unnecessary null check.
3490 * tracepoint.c (scope_info): Fix mem leak, remove underused
3493 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3494 superfluous null check.
3496 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3497 (value_of_builtin_frame_fp_reg): Ditto.
3499 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3501 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3504 * linespec.c (decode_line_1): Check for null before dereference.
3506 * reverse.c (record_restore): Move null-check to before pointer
3509 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3511 * objc-lang.c (selectors_info): Add explanitory comment.
3512 (classes_info): Ditto.
3514 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3516 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3517 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3518 versions of the trampoline. Handle Thumb vs. ARM addresses.
3519 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3520 (arm_linux_init_abi): Install it.
3521 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3522 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3524 2011-02-28 Michael Snyder <msnyder@vmware.com>
3526 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3527 a little bigger, to avoid possibility of an overflow.
3529 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3530 buffers a little bigger, to avoid possibility of an overflow.
3532 * coffread.c (coff_getfilename): Add check to avoid overflow.
3534 * objc-lang.c (selectors_info): Add a small safety margin to
3536 (classes_info): Error out on too long REGEXP.
3538 * infrun.c (handle_inferior_event): Remove unused function call.
3540 * fork-child.c (fork_inferior): Remove ifdef'd code and
3543 * linux-thread-db.c (attach_thread): Discard unused value.
3545 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3547 * remote.c (remote_get_noisy_reply): Discard unused value.
3548 (remote_vcont_resume): Ditto.
3549 (remote_stop_ns): Ditto.
3551 * linespec.c (decode_objc): Delete unused variable.
3553 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3555 * dwarf2read.c (add_partial_symbol): Discard unused values.
3556 (read_base_type): Delete unused variable.
3558 * dbxread.c (read_dbx_symtab): Discard unused value.
3560 * eval.c (evaluate_subexp_standard): Delete unused variable,
3561 and discard unused values.
3563 * infcmd.c (_initialize_infcmd): Discard unused values.
3565 * stabsread.c (rs6000_builtin_type): Missing break statement.
3567 * dbxread.c (process_one_symbol): Discard unused value.
3569 * coffread.c (coff_end_symtab): Delete unused variable.
3571 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3572 (dwarf2_add_typedef): Delete unused variable.
3573 (read_namespace): Ditto.
3574 (dwarf_decode_macros): Ditto.
3576 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3578 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3580 * p-valprint.c (pascal_val_print): Discard unused value.
3582 * utils.c (nquery): Call va_end before return;
3586 * proc-service.c (ps_plog): Call va_end before return.
3588 2011-02-28 Tom Tromey <tromey@redhat.com>
3590 * python/python.c (gdbpy_value_cst): New global.
3591 (_initialize_python): Initialize it.
3592 * python/python-internal.h (gdbpy_value_cst): Declare.
3593 * python/py-value.c (convert_value_from_python): Use
3596 2011-02-28 Michael Snyder <msnyder@vmware.com>
3598 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3600 * breakpoint.c (catch_syscall_completer): Free malloced list.
3602 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3604 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3605 (lval_func_check_synthetic_pointer): Ditto.
3606 (lval_func_free_closure): Fix use-after-free.
3608 2011-02-28 Tom Tromey <tromey@redhat.com>
3610 * psymtab.c (expand_partial_symbol_tables): Use
3611 ALL_OBJFILE_PSYMTABS.
3613 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 * objc-lang.c (selectors_info): Error on too long REGEXP.
3617 2011-02-28 Michael Snyder <msnyder@vmware.com>
3619 * python/py-param.c (set_parameter_value): Add missing
3622 * linux-record.c (record_linux_system_call): Add missing
3625 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3627 * breakpoint.c (print_one_breakpoint_location): Remove unused
3628 argument PRINT_ADDRESS_BITS. Update callers.
3629 (print_one_breakpoint): Likewise.
3631 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3633 * breakpoint.c (wrap_indent_at_field): New function.
3634 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3635 Allocate ui_stream locally instead of using STB argument.
3636 (print_one_breakpoint_location): Update call.
3637 * ui-out.c (ui_out_query_field): New function.
3638 * ui-out.h (ui_out_query_field): Add prototype.
3640 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3642 From Michael Snyder <msnyder@vmware.com>
3643 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3645 2011-02-27 Michael Snyder <msnyder@vmware.com>
3647 * objc-lang.c (selectors_info): Prevent string overrun.
3649 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3652 * symtab.c (rbreak_command): Move variable 'file_name' to
3655 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3656 param with a local variable of the same name.
3658 2011-02-27 Michael Snyder <msnyder@vmware.com>
3660 * value.c (value_from_history_ref): New function.
3661 * value.h (value_from_history_ref): Export.
3662 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3663 to parse value history references.
3664 * cli/cli-utils.h (get_number_trailer): Update comment.
3666 2011-02-27 Michael Snyder <msnyder@vmware.com>
3668 * inferior.c (detach_inferior_command): Use get_number_or_range.
3669 (kill_inferior_command): Ditto.
3670 (remove_inferior_command): Ditto.
3671 (initialize_inferiors): Make command names plural.
3672 Update help strings.
3674 2011-02-27 Michael Snyder <msnyder@vmware.com>
3676 * darwin-nat-info.c: Fix comment typo.
3677 * dwarf2expr.h: Ditto.
3678 * fbsd-nat.c: Ditto.
3679 * fbsd-nat.h: Ditto.
3680 * frame-unwind.h: Ditto.
3682 * hppa-hpux-tdep.c: Ditto.
3683 * i386-linux-nat.c: Ditto.
3684 * linux-nat.c: Ditto.
3685 * nbsd-nat.c: Ditto.
3686 * nbsd-nat.h: Ditto.
3687 * ppc-linux-tdep.c: Ditto.
3690 * tui/tui-winsource.c: Ditto.
3692 2011-02-26 Michael Snyder <msnyder@vmware.com>
3694 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3696 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3698 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3699 with a local variable of the same name.
3701 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3702 param with a local variable of the same name.
3703 (i387_supply_xsave): Ditto.
3705 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3706 that it does not shadow a function parameter.
3708 * i386-nat.c (i386_length_and_rw_bits): Document that case
3709 statement is meant to fall through.
3711 * expprint.c (dump_subexp_body_standard): Document that case
3712 statement is meant to fall through.
3714 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3715 dead if statement. Condition can't be false.
3717 2011-02-25 Michael Snyder <msnyder@vmware.com>
3719 * arm-tdep.c: Fix typos in comments.
3720 * bsd-uthread.c: Ditto.
3721 * completer.c: Ditto.
3723 * cp-namespace.c: Ditto.
3724 * cp-support.c: Ditto.
3725 * cris-tdep.c: Ditto.
3727 * dwarf2read.c: Ditto.
3729 * gdbtypes.h: Ditto.
3730 * inferior.h: Ditto.
3731 * mdebugread.c: Ditto.
3732 * mips-tdep.c: Ditto.
3733 * ppc-linux-nat.c: Ditto.
3734 * ppc-linux-tdep.c: Ditto.
3735 * printcmd.c: Ditto.
3736 * sol-thread.c: Ditto.
3737 * solib-frv.c: Ditto.
3739 * sparc64-tdep.c: Ditto.
3740 * spu-tdep.c: Ditto.
3741 * stabsread.c: Ditto.
3746 * python/py-block.c: Ditto.
3747 * python/py-symbol.c: Ditto.
3748 * python/py-symtab.c: Ditto.
3749 * python/py-value.c: Ditto.
3750 * tui/tui-win.c: Ditto.
3752 2011-02-25 Michael Snyder <msnyder@vmware.com>
3754 * inferior.c (print_inferior): Accept a string instead of an int
3755 for requested_inferiors, and use get_number_or_range to parse it.
3756 (info_inferiors_command): Pass args string to print_inferior.
3757 (initialize_inferiors): Change help string for info inferiors.
3758 * inferior.h (print_inferior): Export prototype change.
3760 2011-02-25 Tom Tromey <tromey@redhat.com>
3762 * common/ax.def (invalid2): Set to 0x31.
3764 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3766 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3768 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3770 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3772 2011-02-24 Michael Snyder <msnyder@vmware.com>
3774 * Makefile.in (clean): Make clean should remove generated files
3775 observer.h and observer.inc.
3777 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3779 Revert the following patch (not approved yet):
3780 2011-02-21 Hui Zhu <teawater@gmail.com>
3781 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3782 * ax-gdb.c (gen_printf_expr_callback): New function.
3783 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3784 * ax-general.c (ax_memcpy): New function.
3785 (ax_print): Handle "printf".
3787 * ax.h (ax_memcpy): Forward declare.
3788 * common/ax.def (invalid2): Removed.
3789 (printf): New entry.
3790 * printcmd.c (printcmd.h): New include.
3791 (string_printf): New function.
3792 (ui_printf): Removed.
3793 (printf_command): Remove static. Call string_printf.
3794 (eval_command): Call string_printf.
3795 * printcmd.h: New file.
3796 * tracepoint.c (validate_actionline,
3797 encode_actions_1): handle printf_command.
3799 2011-02-23 Tom Tromey <tromey@redhat.com>
3801 * ax-general.c (ax_pick): Add missing newline.
3803 2011-02-23 Michael Snyder <msnyder@vmware.com>
3805 * breakpoint.c (breakpoint_1): Change first argument from an int
3806 to a char pointer, so that the function now accepts a list of
3807 breakpoints rather than just one. Use new function
3808 'number_is_in_list' to implement.
3809 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3810 (watchpoints_info): Ditto.
3811 (tracepoints_info): Ditto.
3812 (maintenance_info_breakpoints): Ditto.
3813 (_initialize_breakpoint): Update help strings to reflect the fact
3814 that these functions can now take more than one argument.
3815 * cli/cli-utils.c (number_is_in_list): New function.
3816 * cli/cli-utils.h (number_is_in_list): Export.
3818 2011-02-23 Michael Snyder <msnyder@vmware.com>
3820 * memattr.c (mem_enable_command): Use get_number_or_range.
3821 (mem_disable_command): Ditto.
3822 (mem_delete_command): Ditto.
3823 (_initialize_mem): Tweak usage message to reflect multiple
3826 2011-02-22 Doug Evans <dje@google.com>
3828 Add gdb.lookup_global_symbol python function.
3830 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3831 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3832 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3834 2011-02-22 Tom Tromey <tromey@redhat.com>
3836 * language.c (language_class_name_from_physname): Rename
3837 'curr_language' argument to 'lang'; use in body.
3839 2011-02-22 Michael Snyder <msnyder@vmware.com>
3841 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3843 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3845 * frame-unwind.h: Fix comment to mention the this frame, not the
3848 2011-02-22 Tom Tromey <tromey@redhat.com>
3850 * symfile.c (auto_solib_limit): Remove.
3851 * symfile.h (auto_solib_limit): Remove.
3853 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3855 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3857 2011-02-21 Michael Snyder <msnyder@vmware.com>
3859 * gdbthread.h (print_thread_info): Change prototype.
3860 * thread.c (print_thread_info): Accept char* instead of int for
3861 requested_threads argument. Use new function number_is_in_list
3862 to determine which threads to list.
3863 (info_threads_command): Pass char* to print_thread_info.
3864 * cli/cli-utils.c (number_is_in_list): New function.
3865 * cli/cli-utils.h (number_is_in_list): Export.
3866 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3868 (print_one_inferior): Ditto.
3869 (mi_cmd_list_thread_groups): Ditto.
3871 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3873 * common/Makefile.in (CFLAGS): New.
3874 (COMPILE): Add $(CFLAGS).
3876 2011-02-21 Tom Tromey <tromey@redhat.com>
3878 * breakpoint.c (catch_syscall_command_1): Fix typo.
3880 2011-02-21 Tom Tromey <tromey@redhat.com>
3882 * reverse.c: Include cli-utils.h.
3883 * printcmd.c: Include cli-utils.h.
3884 (string_printf): Use skip_spaces.
3885 * cli/cli-utils.h: New file.
3886 * cli/cli-utils.c: New file.
3887 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3888 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3889 * breakpoint.h (get_number, get_number_or_range): Move to
3891 * breakpoint.c: Include cli-utils.h.
3892 (get_number_trailer, get_number, get_number_or_range)
3893 (ep_skip_leading_whitespace): Move to cli-utils.c.
3894 (create_breakpoint_sal, find_condition_and_thread)
3895 (decode_static_tracepoint_spec, watch_command_1)
3896 (watch_maybe_just_location, ep_parse_optional_if_clause)
3897 (catch_fork_command_1, catch_exec_command_1)
3898 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3899 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3900 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3901 (HFILES_NO_SRCDIR): Add cli-utils.h.
3902 (cli-utils.o): New target.
3904 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3906 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3907 before calling discard_all_inferiors.
3909 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3911 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3912 (struct builtin_opencl_type): Remove.
3913 (builtin_opencl_type): Change return type to "struct type **".
3914 (lookup_opencl_vector_type): Update caller.
3915 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3916 (build_opencl_types): Install plain array of "struct type *"
3917 instead of "struct builtin_opencl_type".
3919 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3920 Ulrich Weigand <uweigand@de.ibm.com>
3922 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3923 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3924 (struct arm_linux_hwbp_cap): New type.
3925 (arm_linux_get_hwbp_cap): New function.
3926 (arm_linux_get_hw_breakpoint_count): Likewise.
3927 (arm_linux_get_hw_watchpoint_count): Likewise.
3928 (arm_linux_can_use_hw_breakpoint): Likewise.
3929 (arm_hwbp_type): New type.
3930 (arm_hwbp_control_t): Likewise.
3931 (struct arm_linux_hw_breakpoint): Likewise.
3932 (struct arm_linux_thread_points): Likewise.
3933 (arm_threads): New global variable.
3934 (arm_linux_find_breakpoints_by_tid): New function.
3935 (arm_hwbp_control_initialize): Likewise.
3936 (arm_hwbp_control_is_enabled): Likewise.
3937 (arm_hwbp_control_disable): Likewise.
3938 (arm_linux_hw_breakpoint_initialize): Likewise.
3939 (arm_linux_get_hwbp_type): Likewise.
3940 (arm_linux_hw_watchpoint_initialize): Likewise.
3941 (arm_linux_hw_breakpoint_equal): Likewise.
3942 (arm_linux_insert_hw_breakpoint1): Likewise.
3943 (arm_linux_remove_hw_breakpoint1): Likewise.
3944 (arm_linux_insert_hw_breakpoint): Likewise.
3945 (arm_linux_remove_hw_breakpoint): Likewise.
3946 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3947 (arm_linux_insert_watchpoint): Likewise.
3948 (arm_linux_remove_watchpoint): Likewise.
3949 (arm_linux_stopped_data_address): Likewise.
3950 (arm_linux_stopped_by_watchpoint): Likewise.
3951 (arm_linux_watchpoint_addr_within_range): Likewise.
3952 (arm_linux_new_thread): Likewise.
3953 (arm_linux_thread_exit): Likewise.
3954 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3955 related target callbacks. Register arm_linux_new_thread and
3956 arm_linux_thread_exit.
3957 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3958 * arm-tdep.c (arm_pc_is_thumb): Make global.
3959 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3961 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3963 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3964 per-frame locations while within a function epilogue.
3966 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3968 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3969 to GNU coding standards.
3971 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3973 Allow use of mingw native on Windows 95 OS.
3974 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3975 (ser_windows_close): Only call CancelIo if function exists.
3976 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3977 to check for existence of CancelIo function in kernel32 DLL.
3979 2011-02-21 Hui Zhu <teawater@gmail.com>
3981 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3982 * ax-gdb.c (gen_printf_expr_callback): New function.
3983 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3984 * ax-general.c (ax_memcpy): New function.
3985 (ax_print): Handle "printf".
3987 * ax.h (ax_memcpy): Forward declare.
3988 * common/ax.def (invalid2): Removed.
3989 (printf): New entry.
3990 * printcmd.c (printcmd.h): New include.
3991 (string_printf): New function.
3992 (ui_printf): Removed.
3993 (printf_command): Remove static. Call string_printf.
3994 (eval_command): Call string_printf.
3995 * printcmd.h: New file.
3996 * tracepoint.c (validate_actionline,
3997 encode_actions_1): handle printf_command.
3999 2011-02-19 Michael Snyder <msnyder@vmware.com>
4001 * reverse.c (delete_one_bookmark): Argument is now bookmark
4002 id rather than pointer to bookmark struct.
4003 (delete_bookmark_command): Use get_number_or_range.
4004 (goto_bookmark_command): Parse with get_number instead of strtoul.
4005 (bookmark_1): New function. Print info for one bookmark.
4006 (bookmarks_info): Use get_number_or_range and bookmark_1.
4008 2011-02-18 Michael Snyder <msnyder@vmware.com>
4010 * thread.c (info_threads_command): Re-implement using
4011 get_number_or_range.
4012 (thread_apply_command): Ditto.
4014 2011-02-18 Tom Tromey <tromey@redhat.com>
4016 * common/ax.def: New file.
4017 * ax.h (enum agent_op): Use ax.def.
4018 * ax-general.c (aop_map): Use ax.def.
4020 2011-02-18 Tom Tromey <tromey@redhat.com>
4022 * ax-general.c (aop_map): Add pick and rot.
4023 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4024 <DW_OP_rot>: Implement.
4025 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4027 * ax-general.c (ax_pick): New function.
4029 2011-02-18 Tom Tromey <tromey@redhat.com>
4031 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4033 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4034 Tom Tromey <tromey@redhat.com>
4036 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4037 make_symbol_overload_list_block with NULL BLOCK.
4038 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4040 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4042 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4043 * breakpoint.h (get_number_or_range): Declare.
4044 * printcmd.c (ALL_DISPLAYS): Declare.
4045 (delete_display): Reimplement taking a display pointer.
4046 (undisplay_command): Accept a range of displays to delete, using
4047 get_number_or_range.
4049 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4051 * c-valprint.c (c_val_print): Add embedded_offset to address
4052 for arrays of unspecified length.
4053 * p-valprint.c (pascal_val_print): Likewise.
4055 2011-02-18 Yao Qi <yao@codesourcery.com>
4057 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4058 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4059 (thumb_process_displaced_insn): New.
4060 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4061 call to arm_process_displaced_insn.
4062 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4064 2011-02-17 Tom Tromey <tromey@redhat.com>
4066 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4067 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4068 compile_dwarf_to_ax. No longer static. Call
4069 dwarf2_compile_cfa_to_ax.
4070 (locexpr_tracepoint_var_ref): Update.
4071 (loclist_tracepoint_var_ref): Update.
4072 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4073 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4074 argument; add 'gdbarch' and 'pc'.
4075 (dwarf2_compile_cfa_to_ax): New function.
4076 (dwarf2_frame_cache): Update.
4078 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4080 * ada-lang.c (ada_type_of_array): Fix the size of the array
4081 in the case of an unconstrained packed array.
4083 2011-02-17 Yao Qi <yao@codesourcery.com>
4085 * common/Makefile.in: Add more targets for make.
4087 2011-02-16 Tom Tromey <tromey@redhat.com>
4089 * dwarf2loc.c (unimplemented): Fix typo.
4091 2011-02-16 Tom Tromey <tromey@redhat.com>
4093 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4094 (compile_dwarf_to_ax) <default>: Use unimplemented.
4095 <DW_OP_deref>: Update.
4096 (disassemble_dwarf_expression): Update.
4097 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4098 (decode_locdesc): Update.
4099 * dwarf2expr.h (dwarf_stack_op_name): Update.
4101 2011-02-16 Tom Tromey <tromey@redhat.com>
4103 * ax.h (struct aop_map) <name>: Now const.
4105 2011-02-16 Tom Tromey <tromey@redhat.com>
4107 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4110 2011-02-16 Yao Qi <yao@codesourcery.com>
4112 * infrun.c (get_displaced_step_closure_by_addr): New.
4113 * inferior.h: Declare it.
4114 * arm-tdep.c: (arm_pc_is_thumb): Call
4115 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4118 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4119 Jan Kratochvil <jan.kratochvil@redhat.com>
4122 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4124 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4125 Jan Kratochvil <jan.kratochvil@redhat.com>
4127 * value.c (value_contents_copy_raw): Extend describing comment.
4128 Assert that the destination contents we're overwriting are wholly
4130 (value_contents_copy): Extend describing comment.
4132 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4133 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 * value.c (value_available_contents_eq): Remove redundant local
4136 variables. Fix available contents comparision.
4137 * value.h (value_available_contents_eq): Extend describing
4140 2011-02-16 Yao Qi <yao@codesourcery.com>
4142 * thread.c (info_threads_command): Add missing i18n markup and remove
4145 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4147 * breakpoint.c (longjmp_names): New variable.
4148 (struct breakpoint_objfile_data): New type.
4149 (breakpoint_objfile_key): New variable.
4150 (msym_not_found): New variable.
4151 (msym_not_found_p): New predicate.
4152 (get_breakpoint_objfile_data): New function.
4153 (create_overlay_event_breakpoint): Check per-objfile cache for
4155 (create_longjmp_master_breakpoint): Likewise.
4156 (create_std_terminate_master_breakpoint): Likewise.
4157 (create_exception_master_breakpoint): Likewise.
4158 (_initialize_breakpoint): Register per-objfile data key.
4160 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4162 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4164 (create_longjmp_master_breakpoint): Loop over longjmp names.
4165 (create_std_terminate_master_breakpoint): Const-propagate parameter
4167 (update_breakpoints_after_exec): Adjust.
4168 (breakpoint_re_set): Adjust.
4170 2011-02-15 Michael Snyder <msnyder@vmware.com>
4172 * thread.c (info_threads_command): Process arg as thread id,
4173 or list of thread ids.
4174 (thread_find_command): New command.
4175 (_initialize_thread): Document argument for info threads.
4176 Document 'thread find' command.
4177 * NEWS: Document new command "thread find".
4179 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4181 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4182 * aclocal.m4: Regenerated with aclocal-1.11.1.
4183 * common/configure: Regenerate with autoconf-2.64.
4185 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4187 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4188 bool data type to a size of one byte.
4190 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4191 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 * target.c (memory_xfer_live_readonly_partial): Document where to
4194 look for interface description.
4196 2011-02-15 Yao Qi <yao@codesourcery.com>
4199 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4200 order to store PC value on stack instead of text section.
4202 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4204 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4205 the EFP register set size.
4206 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4207 data from the VMX register.
4208 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4209 and write data from/to the VMX register.
4211 2011-02-14 Michael Snyder <msnyder@vmware.com>
4213 * command.h (enum command_class): New class 'no_set_class', for
4214 "show" commands without a corresponding "set" command.
4215 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4216 * copying.c (_initialize_copying): Ditto for "show copying" and
4218 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4220 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4221 which there is no corresponding "set" command (eg. "show copying").
4223 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4224 Jan Kratochvil <jan.kratochvil@redhat.com>
4226 * exec.c (section_table_available_memory): Change `len' parameter
4228 * exec.h (section_table_available_memory): Ditto.
4229 * value.h (read_value_memory): Rename the `offset' parameter to
4232 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4233 Jan Kratochvil <jan.kratochvil@redhat.com>
4235 * memrange.c (compare_mem_ranges): Mention sort order in
4237 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4238 * tracepoint.c (traceframe_available_memory): Extend comment to
4239 mention what happens to RESULT when the target does not support
4242 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4243 Jan Kratochvil <jan.kratochvil@redhat.com>
4245 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4248 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4250 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4251 No longer handle NULL values.
4253 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4255 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4256 * value.c: Include "exceptions.h".
4257 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4259 * cp-abi.c: Include gdb_assert.h.
4260 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4261 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4263 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4264 parameters. No longer returns -1 on error.
4265 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4267 * cp-valprint.c: Include exceptions.h.
4268 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4269 the baseclass_offset. Handle unavailable base classes. Use
4270 val_print_invalid_address.
4271 * p-valprint.c: Include exceptions.h.
4272 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4273 when fetching the baseclass_offset. No longer expect
4274 baseclass_offset returning -1. Handle unavailable base classes.
4275 Use val_print_invalid_address.
4276 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4277 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4278 `embedded_offset' and `val' parameters. Adjust.
4279 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4280 parameter, and change its type to gdb_byte pointer. Add
4281 `embedded_offset' and `val' parameters. Adjust. No longer expect
4282 baseclass_offset returning -1.
4283 (value_dynamic_cast): Use value_contents_for_printing rather than
4284 value_contents. Adjust.
4285 (search_struct_field): No longer expect baseclass_offset returning
4287 (search_struct_method): If reading memory from the target is
4288 necessary, wrap it in a new value to pass to baseclass_offset. No
4289 longer expect baseclass_offset returning -1.
4290 (find_method_list): No longer expect baseclass_offset returning
4291 -1. Use value_contents_for_printing rather than value_contents.
4292 * valprint.c (val_print_invalid_address): New function.
4293 * valprint.h (val_print_invalid_address): Declare.
4294 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4295 and `val' parameters. No longer expect baseclass_offset returning
4297 * gnu-v2-abi.c: Include "exceptions.h".
4298 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4299 parameters. Handle unavailable memory. Recurse through
4300 gnuv2_baseclass_offset directly, rather than through
4301 baseclass_offset. No longer returns -1 on not found, instead
4303 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4304 `val' parameters. Adjust.
4306 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4308 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4309 almost but not quite adjacent.
4311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4313 * value.h (value_entirely_available): Declare.
4314 * value.c (value_entirely_available): New function.
4315 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4316 real type if the pointer is unavailable.
4318 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4320 * valops.c (value_repeat): Use read_value_memory instead of
4323 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4325 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4326 * value.c (value_contents_copy_raw, value_contents_copy): New
4328 (value_primitive_field): Use value_contents_copy_raw instead of
4330 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4332 (value_array, value_slice): Ditto.
4333 * valarith.c (value_subscripted_rvalue): Use
4334 value_contents_copy_raw instead of memcpy.
4336 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4338 <unavailable> references.
4340 * valops.c (get_value_at): Use value_from_contents_and_address,
4341 avoiding read_memory.
4343 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4345 * c-valprint.c (c_val_print): Print a string with unavailable
4346 contents as an array.
4348 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4350 * value.h (unpack_bits_as_long): Delete declaration.
4351 (unpack_value_bits_as_long): Declare.
4352 (unpack_value_field_as_long): Declare.
4353 (value_field_bitfield): Declare.
4354 * value.c (unpack_bits_as_long): Rename to...
4355 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4356 value parameters. Return the extracted result in a new output
4357 parameter. If the value contents are unavailable, return false,
4358 otherwise return true.
4359 (unpack_value_bits_as_long): New.
4360 (unpack_field_as_long): Rename to...
4361 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4362 Add embedded_offset and value parameters. Return the extracted
4363 result in a new output parameter. If the value contents are
4364 unavailable, return false, otherwise return true.
4365 (unpack_value_field_as_long): New.
4366 (unpack_field_as_long_1): New.
4367 (unpack_field_as_long): Reimplement as wrapper around
4368 unpack_value_field_as_long_1.
4369 (value_field_bitfield): New function.
4370 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4371 unpack_value_bits_as_long. Mark the value as unavailable, if it
4373 * jv-valprint.c (java_print_value_fields): Use
4374 value_field_bitfield.
4375 * p-valprint.c (pascal_object_print_value_fields): Use
4376 value_field_bitfield.
4377 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4379 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4381 * value.c (get_internalvar_integer): Also return the int value of
4382 TYPE_CODE_INT INTERNALVAR_VALUE values.
4383 (set_internalvar): Don't special case TYPE_CODE_INT.
4385 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4387 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4388 INTERNALVAR_POINTER.
4390 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4391 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4392 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4396 * value.h (value_available_contents_eq): Declare.
4397 * value.c (find_first_range_overlap): New function.
4398 (value_available_contents_eq): New function.
4399 * valprint.c (val_print_array_elements): Use
4400 value_available_contents_eq.
4401 * ada-valprint.c (val_print_packed_array_elements): Use
4402 value_available_contents_eq.
4403 * jv-valprint.c (java_value_print): Use
4404 value_available_contents_eq.
4406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4408 * target.c (target_read_live_memory): New function.
4409 (memory_xfer_live_readonly_partial): New.
4410 (memory_xfer_partial): If reading from a traceframe, fallback to
4411 reading unavailable read-only memory from read-only regions of
4413 * tracepoint.c (disconnect_tracing): Adjust.
4414 (set_current_traceframe): New, factored out from
4415 set_traceframe_number.
4416 (set_traceframe_number): Reimplement to only change the traceframe
4417 number on the GDB side.
4418 (do_restore_current_traceframe_cleanup): Adjust.
4419 (make_cleanup_restore_traceframe_number): New.
4420 (cur_traceframe_number): New global.
4421 (tfile_open): Set cur_traceframe_number to no traceframe.
4422 (set_tfile_traceframe): New function.
4423 (tfile_trace_find): If looking up a traceframe using any method
4424 other than by number, make sure the current tfile traceframe
4425 matches gdb's current traceframe. Update the current tfile
4426 traceframe if the lookup succeeded.
4427 (tfile_fetch_registers, tfile_xfer_partial)
4428 (tfile_get_trace_state_variable_value): Make sure the remote
4429 traceframe matches gdb's current traceframe.
4430 * remote.c (remote_traceframe_number): New global.
4431 (remote_open_1): Set it to -1.
4432 (set_remote_traceframe): New function.
4433 (remote_fetch_registers, remote_store_registers)
4434 (remote_xfer_memory, remote_xfer_partial)
4435 (remote_get_trace_state_variable_value): Make sure the remote
4436 traceframe matches gdb's current traceframe.
4437 (remote_trace_find): If looking up a traceframe using any method
4438 other than by number, make sure the current remote traceframe
4439 matches gdb's current traceframe. Update the current remote
4440 traceframe if the lookup succeeded.
4441 * infrun.c (fetch_inferior_event): Adjust.
4442 * tracepoint.h (set_current_traceframe): Declare.
4443 (get_traceframe_number, set_traceframe_number): Add describing
4446 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4448 Mark pieces of values as unavailable if the corresponding memory
4451 * valops.c: Include tracepoint.h.
4452 (value_fetch_lazy): Use read_value_memory.
4453 (read_value_memory): New.
4454 * value.h (read_value_memory): Declare.
4455 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4456 * exec.c (section_table_available_memory): New function.
4457 * exec.h (section_table_available_memory): Declare.
4459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4461 * Makefile.in (SFILES): Add memrange.c.
4462 (HFILES_NO_SRCDIR): Add memrange.h.
4463 (COMMON_OBS): Add memrange.o.
4464 * memrange.c: New file.
4465 * memrange.h: New file.
4466 * tracepoint.c: Include memrange.h.
4467 (struct mem_range): Delete.
4468 (mem_range_s): Delete.
4469 (traceframe_available_memory): New function.
4470 * tracepoint.h (traceframe_available_memory): Declare.
4472 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4474 * target.h (struct traceframe_info): Forward declare.
4475 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4476 (struct target_ops) <to_traceframe_info>: New field.
4477 (target_traceframe_info): New.
4478 * target.c (update_current_target): Inherit and default
4480 * remote.c (PACKET_qXfer_traceframe_info): New.
4481 (remote_protocol_features): Register qXfer:traceframe-info:read.
4482 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4483 (remote_traceframe_info): New.
4484 (init_remote_ops): Install it.
4485 (_initialize_remote): Install "set/show remote traceframe-info"
4487 * tracepoint.h (parse_traceframe_info): Declare.
4488 * tracepoint.c (struct mem_range): New.
4489 (mem_range_s): New typedef.
4490 (struct traceframe_info): New.
4491 (traceframe_info): New global.
4492 (free_traceframe_info): New function.
4493 (clear_traceframe_info): New function.
4494 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4496 (build_traceframe_info): New function.
4497 (tfile_traceframe_info): New function.
4498 (init_tfile_ops): Install tfile_traceframe_info.
4499 (traceframe_info_start_memory, free_result): New functions.
4500 (memory_attributes, traceframe_info_elements): New globals.
4501 (parse_traceframe_info, get_traceframe_info): New functions.
4502 * features/traceframe-info.dtd: New file.
4503 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4505 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4507 Base support for <unavailable> value contents.
4509 * value.h (value_bytes_available): Declare.
4510 (mark_value_bytes_unavailable): Declare.
4511 * value.c (struct range): New struct.
4512 (range_s): New typedef.
4513 (ranges_overlap): New function.
4514 (range_lessthan): New function.
4515 (ranges_contain_p): New function.
4516 (struct value) <unavailable>: New field.
4517 (value_bytes_available): New function.
4518 (mark_value_bytes_unavailable): New function.
4519 (require_not_optimized_out): Constify parameter.
4520 (require_available): New function.
4521 (value_contents_all, value_contents): Require all bytes be
4523 (value_free): Free `unavailable'.
4524 (value_copy): Copy `unavailable'.
4525 * valprint.h (val_print_unavailable): Declare.
4526 * valprint.c (valprint_check_validity): Rename `offset' parameter
4527 to `embedded_offset'. If printing a scalar, check whether the
4528 value chunk is available.
4529 (val_print_unavailable): New.
4530 (val_print_scalar_formatted): Check whether the value is
4532 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4533 pretty-printing unavailable values.
4535 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4537 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4538 * c-typeprint.c (c_type_print_args): Update the function comment. New
4539 variable param_type, initialize it. Remove const/volatile qualifiers
4540 for language_cplus and !show_artificial. Use param_type.
4542 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4544 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4545 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4546 * symtab.h (struct symtab) <next>: Comment extension.
4548 2011-02-12 Yao Qi <yao@codesourcery.com>
4550 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4552 2011-02-11 Yao Qi <yao@codesourcery.com>
4554 * common/Makefile.in: Add copyright header.
4556 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4558 * infrun.c (proceed): Move switching out and in of tfind mode from
4560 (fetch_inferior_event): ... to here.
4562 2011-02-11 Yao Qi <yao@codesourcery.com>
4564 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4566 * configure.ac: Add common to sub dir.
4567 * configure: Regenerate.
4569 2011-02-11 Yao Qi <yao@codesourcery.com>
4573 * common/Makefile.in: New.
4574 * common/configure.ac: New.
4575 * common/aclocal.m4: New.
4576 * common/configure: Generate.
4578 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4580 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4581 side of the parenthesis.
4584 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4585 * vec.h (VEC_block_remove): Fix comment.
4587 2011-02-08 Michael Snyder <msnyder@vmware.com>
4589 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4591 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4593 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4594 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4597 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4600 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4602 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4603 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4605 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4607 * dwarf2read.c (read_subroutine_type): Set special calling
4608 convention flag for functions compiled by IBM XL C for OpenCL.
4609 * ppc-sysv-tdep.c: Include "dwarf2.h"
4610 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4612 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4613 IBM OpenCL vector types calling convention.
4614 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4615 (ppc_sysv_abi_broken_return_value): Likewise.
4616 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4617 types calling convention.
4618 (ppc64_sysv_abi_return_value): Likewise.
4619 * spu-tdep.c: Include "dwarf2.h"
4620 (spu_return_value): Implement IBM OpenCL vector types calling
4623 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4625 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4626 correct ABI for AltiVec vector arguments.
4628 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4630 * valprint.c (val_print): Extend comment.
4631 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4632 interface explanation to val_print.
4633 (ada_val_print_array): Adjust comment to current interface.
4634 (print_field_values): Adjust comment to current interface.
4635 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4636 explanation to val_print.
4637 * f-valprint.c (f_val_print): Ditto.
4638 * jv-valprint.c (java_val_print): Ditto.
4639 * m2-valprint.c (m2_val_print): Ditto.
4640 * p-valprint.c (pascal_val_print): Ditto.
4642 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4644 * breakpoint.c (parse_breakpoint_sals): Fix description.
4646 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4647 Oguz Kayral <oguzkayral@gmail.com>
4649 * python/py-inferior.c (python_on_normal_stop): New function.
4650 (python_on_resume): New function.
4651 (python_inferior_exit): New function.
4652 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4653 inferior_exit observers.
4654 * python/py-evtregistry.c: New file.
4655 * python/py-threadevent.c : New file.
4656 * python/py-event.c: New file.
4657 * python/py-evts.c: New file.
4658 * python/py-continueevent.c: New file.
4659 * python/py-bpevent.c: New file.
4660 * python/py-signalevent.c: New file.
4661 * python/py-exetiedevent.c: New file.
4662 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4663 Move struct breakpoint_object from here...
4664 * python/python-internal.h: ... to here.
4665 * python/py-event.h: New file.
4666 * python/py-events.h: New file.
4667 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4668 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4669 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4670 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4671 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4672 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4673 Add build rules for all the above.
4675 2011-02-04 Tom Tromey <tromey@redhat.com>
4677 * dwarf2read.c (dwarf2_section_empty_p): New function.
4678 (dwarf2_read_section): Use dwarf2_section_empty_p.
4679 (dwarf2_section_size): New function.
4680 (dwarf2_get_section_info): Unconditionally read section.
4681 (dwarf2_read_index): Use dwarf2_section_empty_p.
4682 (partial_read_comp_unit_head): Use dwarf2_section_size.
4683 (dwarf2_symbol_mark_computed): Likewise.
4685 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4687 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4689 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4691 * mips-linux-tdep.c: Include xml-syscall.h.
4692 (mips_linux_get_syscall_number): New function.
4693 (mips_linux_init_abi): Add calls to
4694 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4695 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4696 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4697 * syscalls/mips-n32-linux.xml: New file.
4698 * syscalls/mips-n64-linux.xml: New file.
4699 * syscalls/mips-o32-linux.xml: New file.
4701 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4703 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4704 Complain about inverted range entries.
4705 (dwarf2_record_block_ranges): Likewise.
4707 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4710 * breakpoint.c (update_watchpoint): Fix name of the
4711 update_global_location_list function.
4712 (print_one_breakpoint): Fix typo.
4713 (_initialize_breakpoint): Remove extra space in hbreak help
4715 * breakpoint.h (struct bp_location) <length>: Fix field
4718 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4720 * regcache.c (registers_changed_ptid): Don't explictly always
4721 clear `current_regcache'. Only clear current_thread_ptid and
4722 current_thread_arch when PTID matches. Only reinit the frame
4723 cache if PTID matches the current inferior_ptid. Move alloca(0)
4725 (registers_changed): ... here.
4727 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4729 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4730 starts with __stack_chk_guard as stack guard symbol.
4732 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4734 * disasm.c (compare_lines): Handle the end of sequence markers
4735 within the line table to better support disassembling over
4736 compilation unit boundaries.
4738 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4740 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4741 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4742 implementation even if no symbols are available.
4743 (thumb_analyze_prologue): Update call to skip_prologue_function.
4744 (arm_analyze_prologue): Likewise.
4746 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4748 * arm-tdep.c: Include "observer.h".
4749 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4750 (arm_exidx_data_key): New static variable.
4751 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4752 (struct arm_exidx_data): Likewise.
4753 (arm_exidx_data_free): New function.
4754 (arm_compare_exidx_entries): Likewise.
4755 (arm_obj_section_from_vma): Likewise.
4756 (arm_exidx_new_objfile): Likewise.
4757 (arm_find_exidx_entry): Likewise.
4758 (arm_exidx_fill_cache): Likewise.
4759 (arm_exidx_unwind_sniffer): Likewise.
4760 (arm_exidx_unwind): New global variable.
4761 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4762 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4763 observer. Register arm_exidx_data_key as objfile data.
4765 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4767 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4768 due to accessing uninitialized variable. Fix indentation.
4770 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4772 * c-valprint.c (c_value_print): When doing virtual base pointer
4773 adjustment, create a new value with adjusted contents rather than
4774 changing the contents of the value being printed (and getting it
4777 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4779 * xml-support.c (xml_find_attribute): New.
4780 (xinclude_start_include): Use it.
4781 * xml-support.h (xml_find_attribute): Declare.
4782 * memory-map.c (memory_map_start_memory)
4783 (memory_map_start_property): Use xml_find_attribute.
4784 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4786 * remote.c (start_thread): Use xml_find_attribute.
4787 * solib-target.c (library_list_start_segment)
4788 (library_list_start_section, library_list_start_library)
4789 (library_list_start_list): Use xml_find_attribute.
4790 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4791 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4792 (tdesc_start_field): Use xml_find_attribute.
4794 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4796 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4797 (BUILD_OCL_VTYPES): Update.
4799 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4801 * configure.ac: Work around non-GNU sed limitation when computing
4802 python version number.
4803 * configure: Regenerate.
4805 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4807 Fix debug printing of TYPE_INSTANCE.
4808 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4809 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4811 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4814 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4815 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4816 * ada-operator.inc: Rename the file to ...
4817 * ada-operator.def: ... here, wrap all the entries by macro OP.
4818 * expprint.c (op_name_standard): Remove all the entries. Include
4819 "std-operator.def" instead.
4820 * expression.h (enum exp_opcode): Include "std-operator.def" and
4821 "ada-operator.def". Move all the entries ...
4822 * std-operator.def: ... here, wrap all the entries by macro OP.
4824 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4826 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4827 * breakpoint.c (remove_jit_event_breakpoints): New function.
4828 * jit.c (jit_descriptor_addr): Delete.
4829 (registering_code): Delete.
4830 (clear_int): Delete.
4831 (jit_inferior_data): New variable.
4832 (struct jit_inferior_data): New type.
4833 (get_jit_inferior_data): New function.
4834 (jit_inferior_data_cleanup): New function.
4835 (jit_read_descriptor): Adjust.
4836 (jit_register_code): Adjust.
4837 (jit_breakpoint_re_set_internal): New function; move code here ...
4838 (jit_inferior_init): ... from here.
4839 (jit_breakpoint_re_set): Adjust.
4840 (jit_reset_inferior_data_and_breakpoints): New function.
4841 (jit_inferior_created_observer): Adjust.
4842 (jit_inferior_exit_hook): Adjust.
4843 (jit_executable_changed_observer): New function.
4844 (jit_event_handler): Adjust.
4845 (_initialize_jit): Adjust.
4847 2011-01-31 Michael Snyder <msnyder@vmware.com>
4849 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4852 2011-01-31 Tom Tromey <tromey@redhat.com>
4855 * python/python.c (execute_gdb_command): Call
4856 prevent_dont_repeat.
4857 * top.c (suppress_dont_repeat): New global.
4858 (dont_repeat): Use it.
4859 (prevent_dont_repeat): New function.
4860 * command.h (prevent_dont_repeat): Declare.
4862 2011-01-31 Tom Tromey <tromey@redhat.com>
4864 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4865 * python/py-breakpoint.c (bppy_set_silent): Use
4866 breakpoint_set_silent.
4867 (bppy_set_thread): Use breakpoint_set_thread.
4868 (bppy_set_task): Use breakpoint_set_task.
4869 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4870 (breakpoint_set_task): Declare.
4871 (make_breakpoint_silent): Remove.
4872 * breakpoint.c (breakpoint_set_silent): New function.
4873 (breakpoint_set_thread): Likewise.
4874 (breakpoint_set_task): Likewise.
4875 (make_breakpoint_silent): Remove.
4877 2011-01-31 Tom Tromey <tromey@redhat.com>
4879 * breakpoint.h (user_breakpoint_p): Declare.
4880 * breakpoint.c (user_breakpoint_p): New function.
4881 (breakpoint_1): Use it.
4882 (save_breakpoints): Likewise.
4884 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4886 * configure.ac: Add handling of Python distribution on Windows.
4887 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4888 sysconfig variables are not defined, then do not use them.
4889 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4890 instead. On Windows, return all paths using forward-slashes
4891 rather than backslashes.
4893 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4895 * configure.ac: Remove fallback behavior for building
4896 against Python. Remove tweaking of Python include path.
4897 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4898 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4899 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4900 Always restore CPPFLAGS and LIBS after linking test.
4901 * configure: Regenerated.
4902 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4903 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4904 * python/python-internal.h: Adjust includes of Python .h files.
4906 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4908 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4911 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4913 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4916 2011-01-31 Yao Qi <yao@codesourcery.com>
4918 * arm-linux-nat.c: Update calls to regcache_register_status
4919 instead of regcache_valid_p.
4920 * aix-thread.c: Likewise.
4921 * i386gnu-nat.c: Likewise.
4923 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4927 touching TYPE_FIELD_ARTIFICIAL.
4929 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4931 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4934 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4936 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4937 selected, don't try iterating over the traceframe's blocks.
4938 (tfile_has_stack): If there's no traceframe selected, then there's
4940 (tfile_has_registers): If there's no traceframe selected, then
4941 there's no registers.
4943 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4945 * target.c (memory_xfer_partial): No need to restore shadows if we
4946 haven't read anything.
4948 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4950 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4951 and val_print_scalar_formatted.
4953 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4955 * tracepoint.c (tfile_read): New.
4956 (tfile_open): Use it.
4957 (tfile_get_traceframe_address): Use it.
4958 (tfile_trace_find): Use it.
4959 (walk_blocks_callback_func): New typedef.
4960 (match_blocktype): New function.
4961 (traceframe_walk_blocks): New function.
4962 (traceframe_find_block_type): New function.
4963 (tfile_fetch_registers, tfile_xfer_partial)
4964 (tfile_get_trace_state_variable_value): Use
4965 traceframe_find_block_type and tfile_read.
4967 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4969 * remote-mips.c: Add internationalization mark ups. Remove
4970 trailing \n from already marked up strings.
4972 2011-01-26 Tom Tromey <tromey@redhat.com>
4974 * python/py-prettyprint.c (print_string_repr): Clear
4975 'addressprint' option when calling val_print_string.
4976 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4977 option when calling val_print_string.
4979 2011-01-26 Tom Tromey <tromey@redhat.com>
4981 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4983 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4985 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4986 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4987 (gdb_py_long_as_ulongest): New defines.
4988 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4989 (gdb_py_int_as_long): Declare.
4990 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4991 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4992 (valpy_long): Add comment.
4993 * python/py-utils.c (get_addr_from_python): Use
4994 gdb_py_long_as_ulongest. Handle overflow properly.
4995 (gdb_py_object_from_longest): New function.
4996 (gdb_py_object_from_ulongest): Likewise.
4997 (gdb_py_int_as_long): Likewise.
4998 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4999 * python/py-symtab.c (salpy_get_pc): Use
5000 gdb_py_long_from_ulongest.
5001 (salpy_get_line): Use PyInt_FromLong.
5002 * python/py-param.c (set_parameter_value): Use
5004 * python/py-lazy-string.c (stpy_get_address): Use
5005 gdb_py_long_from_ulongest.
5006 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5007 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5008 * python/py-breakpoint.c (bppy_set_thread): Use
5010 (bppy_set_task): Likewise.
5011 (bppy_set_ignore_count): Likewise.
5012 (bppy_set_hit_count): Likewise.
5013 * python/py-block.c (blpy_get_start): Use
5014 gdb_py_object_from_ulongest.
5015 (blpy_get_end): Likewise.
5016 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5018 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5021 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5022 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5023 equality test for objfile, initialize addr_low if needed.
5025 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5027 * tui/tui-regs.c (tui_register_format): Remove dead code.
5029 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5031 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5032 instead of print_scalar_formatted.
5033 (print_scalar_formatted): Don't handle 's' format strings here,
5034 and add an assertion that we never see such format here.
5035 * valprint.h (val_print_scalar_formatted): Declare.
5036 * valprint.c (val_print_scalar_formatted): New.
5037 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5038 instead of print_scalar_formatted.
5039 * jv-valprint.c (java_val_print): Ditto.
5040 * p-valprint.c (pascal_val_print): Ditto.
5041 * ada-valprint.c (ada_val_print_1): Ditto.
5042 * f-valprint.c (f_val_print): Ditto.
5043 * infcmd.c (registers_info): Ditto.
5044 * m2-valprint.c (m2_val_print): Ditto.
5046 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5048 * m2-valprint.c (print_unbounded_array): Pass
5049 value_contents_for_printing rather than value_contents, to
5050 m2_print_array_contents. Also pass in the value.
5052 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5054 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5055 (save_gdb_index_command): Switch to .gdb_index version 4.
5057 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5059 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5060 than frame_register, and always pass a valid value to val_print.
5062 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5064 Centralize printing "<optimized out>".
5066 * valprint.h (val_print_optimized_out): Declare.
5067 * cp-valprint.c (cp_print_value_fields): Use
5068 val_print_optimized_out.
5069 * jv-valprint.c (java_print_value_fields): Ditto.
5070 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5071 * printcmd.c (print_formatted): Ditto.
5072 * valprint.c (valprint_check_validity): Ditto.
5073 (value_check_printable): Ditto.
5074 (val_print_optimized_out): New.
5076 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5078 * infcmd.c (default_print_registers_info): Allocate values so to
5079 never pass a NULL value to val_print.
5081 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5083 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5084 boolean. Make sure to always pass a value that matches the
5085 contents buffer to callees. Preserve `address' for following
5087 * value.c (value_contents_for_printing_const): New.
5088 (value_address): Constify value argument.
5089 * value.h (value_contents_for_printing_const): Declare.
5090 (value_address): Constify value argument.
5092 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5094 * regcache.c (struct regcache_descr): Rename
5095 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5096 and sizeof_cooked_register_valid_p to
5097 sizeof_cooked_register_status.
5098 (init_regcache_descr): Adjust.
5099 (struct regcache): Rename register_valid_p field to
5101 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5102 (do_cooked_read): Adjust.
5103 (regcache_valid_p): Rename to ...
5104 (regcache_register_status): ... this. Adjust.
5105 (regcache_invalidate): Adjust.
5106 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5108 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5109 as unavailable, not valid.
5110 (regcache_dump): Adjust.
5111 * regcache.h (enum register_status): New.
5112 (regcache_register_status): Declare.
5113 (regcache_invalidate): Delete declaration.
5114 * corelow.c (get_core_registers): Adjust.
5115 * tracepoint.c (tfile_fetch_registers): Adjust.
5116 * trad-frame.c (REG_VALUE): Rename to ...
5117 (TF_REG_VALUE): ... this.
5118 (REG_UNKNOWN): Rename to ...
5119 (TF_REG_UNKNOWN): ... this.
5120 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5121 * mi/mi-main.c (register_changed_p): Adjust.
5123 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5125 * regcache.c (struct regcache_descr): Remove outdated comment.
5126 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5128 (regcache_xmalloc): Rename to ...
5129 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5130 Allocate the regcache type accordingly.
5131 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5132 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5133 cooked registers, not raw.
5134 (regcache_dup_no_passthrough): Delete.
5135 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5136 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5137 mention obsolete write_register_bytes.
5138 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5140 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5142 Stop remote_read_bytes from handling partial reads itself.
5144 * remote-fileio.c: Include target.h.
5145 (remote_fileio_write_bytes): Delete.
5146 (remote_fileio_func_open, remote_fileio_func_write)
5147 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5149 (remote_fileio_func_stat): Use target_read_memory and
5150 target_write_memory.
5151 (remote_fileio_func_gettimeofday): Use target_write_memory.
5152 (remote_fileio_func_system): Use target_read_memory.
5153 * remote.c (remote_write_bytes): Make it static.
5154 (remote_read_bytes): Don't handle partial reads here.
5155 * remote.h (remote_read_bytes): Delete declaration.
5157 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5159 Simplify XML parsing a bit.
5161 * xml-support.h (gdb_xml_parse_quick): Declare.
5162 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5163 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5165 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5166 gdb_xml_create_parser_and_cleanup_1.
5167 (gdb_xml_parse_quick): New.
5168 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5169 * osdata.c (osdata_parse): Ditto.
5170 * remote.c (remote_threads_info): Ditto.
5171 * solib-target.c (solib_target_parse_libraries): Ditto.
5172 * xml-syscall.c (syscall_parse_xml): Ditto.
5173 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5175 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5177 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5178 with remote-mips.o added to gdb_target_obs.
5179 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5181 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5183 * ada-valprint.c (val_print_packed_array_elements): Pass the
5184 correct struct value to val_print.
5185 (ada_val_print_1): Ditto.
5187 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5189 Don't lose embedded_offset in printing routines throughout.
5191 * valprint.h (val_print_array_elements): Change prototype.
5192 * valprint.c (val_print_array_elements): Add `embedded_offset'
5193 parameter, and adjust to pass it down to val_print, while passing
5194 `valaddr' or `address' unmodified. Take embedded_offset into
5195 account when checking repetitions.
5196 * c-valprint.c (c_val_print): Pass embedded_offset to
5197 val_print_array_elements instead of adjusting `valaddr' and
5199 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5200 embedded_offset to val_print_array_elements instead of adjusting
5202 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5203 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5204 val_print_array_elements and pascal_object_print_value_fields
5205 instead of adjusting `valaddr'.
5206 (pascal_object_print_value_fields): Add `offset' parameter, and
5208 (pascal_object_print_value): Add `offset' parameter, and adjust to
5210 (pascal_object_print_static_field): Use
5211 value_contents_for_printing/value_embedded_offset, rather than
5213 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5214 parameter, and adjust to use it. Use
5215 value_contents_for_printing/value_embedded_offset, rather than
5217 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5218 (ada_val_print_array): Add `offset' parameter, and adjust to use
5220 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5221 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5222 Instead work with offsets. Use
5223 value_contents_for_printing/value_embedded_offset, rather than
5224 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5225 and use value_from_pointer to extract a target pointer, rather
5226 than value_from_longest.
5227 (print_variant_part): Add `offset' parameter. Replace
5228 `outer_valaddr' parameter by a new `outer_offset' parameter.
5229 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5230 (ada_value_print): Use
5231 value_contents_for_printing/value_embedded_offset, rather than
5233 (print_record): Add `offset' parameter, and adjust to pass it
5235 (print_field_values): Add `offset' parameter. Replace
5236 `outer_valaddr' parameter by a new `outer_offset' parameter.
5237 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5238 Use value_contents_for_printing/value_embedded_offset, rather than
5240 * d-valprint.c (dynamic_array_type): Use
5241 value_contents_for_printing/value_embedded_offset, rather than
5243 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5244 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5245 (java_print_value_fields): Take `offset' into account. Don't
5246 re-adjust `valaddr'. Instead pass down adjusted offsets.
5247 (java_val_print): Take `embedded_offset' into account. Pass it to
5248 java_print_value_fields.
5249 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5250 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5251 down adjusted offsets.
5252 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5253 (f_val_print): Take `embedded_offset' into account.
5255 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5257 * inflow.c: Include "gdbcmd.h".
5258 (interactive_mode): New static global, moved here from top.c.
5259 (show_interactive_mode): New function, moved here from top.c.
5260 use gdb_has_a_terminal instead of input_from_terminal_p to
5261 determine the current mode.
5262 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5264 (_initialize_inflow): Add the "set/show interactive-mode"
5265 commands. Moved here from top.c, after having adjusted slightly
5267 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5269 (input_from_terminal_p): Remove handling of "interactive-mode"
5270 setting, moved to infow.c.
5271 (init_main): Remove creation of the "set/show interactive-mode"
5272 commands, moved to inflow.c.
5274 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5276 * NEWS: Add entry for native ia64-hpux support.
5278 2011-01-19 Tom Tromey <tromey@redhat.com>
5281 * thread.c (free_thread): Free 'name'.
5282 (print_thread_info): Emit thread name. Change CLI output.
5283 (thread_name_command): New function.
5284 (do_captured_thread_select): Emit newline.
5285 (_initialize_thread): Register 'thread name' command.
5286 * target.h (struct target_ops) <to_thread_name>: New field.
5287 (target_thread_name): New macro.
5288 * target.c (update_current_target): Handle to_thread_name.
5289 * python/py-infthread.c (thpy_get_name): New function.
5290 (thpy_set_name): Likewise.
5291 (thread_object_getset): Add "name".
5292 * linux-nat.c (linux_nat_thread_name): New function.
5293 (linux_nat_add_target): Set to_thread_name.
5294 * gdbthread.h (struct thread_info) <name>: New field.
5296 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5298 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5299 (ada_val_print_1): Likewise.
5301 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5303 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5304 upper limit address is not greater than the function end address
5305 when the upper limit could not be computed using the debugging
5308 2011-01-17 Tom Tromey <tromey@redhat.com>
5310 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5312 * utils.c: Include gdb_regex.h.
5313 (do_regfree_cleanup): New function.
5314 (make_regfree_cleanup): Likewise.
5315 (get_regcomp_error): Likewise.
5316 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5318 2011-01-17 Tom Tromey <tromey@redhat.com>
5320 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5323 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5325 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5326 for internal variables.
5327 (last_was_structop): New static variable.
5328 (COMPLETE): New token.
5329 (field_exp): New rule to group all '.' suffix handling.
5330 Add mark_struct_expression calls when approriate to be able
5331 to correctly find fields for completion.
5332 (yylex): Adapt to handle field completion and set INTVAR when
5335 2011-01-14 Yao Qi <yao@codesourcery.com>
5337 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5338 save_reggroup, restore_reggroup and all_reggroup.
5340 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5342 * ada-valprint. (ada_printchar): Use the correct type length
5343 in call to ada_emit_char.
5344 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5346 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5348 * solib-som.h (hpux_major_release): Declare variable here.
5349 * solib-som.c: Remove <sys/utsname.h> header.
5350 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5351 (hpux_major_release): Make global, change default value to
5352 DEFAULT_HPUX_MAJOR_RELEASE.
5353 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5354 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5355 Add "solib-som.h" header.
5356 (set_hpux_major_release): New function.
5357 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5359 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5361 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5363 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5365 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5366 new-line at end of warning message.
5367 (ia64_hpux_store_register): Remove trailing new-line at end of
5369 * ia64-hpux-tdep.c: Rephrase comment.
5370 * solib-ia64-hpux.c (struct dld_info): Change type of field
5371 dld_flags from "long long" to ULONGEST.
5373 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5375 * target.h (deprecated_child_ops): Delete declaration.
5376 * target.c (deprecated_child_ops): Delete definition.
5378 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5380 * Makefile.in (hpux-thread.o): Delete rule.
5381 * configure.ac: Don't check for HPUX DCE threads support.
5382 * configure, config.in: Regenerate.
5383 * hppa-hpux-nat.c (child_suppress_run): Delete.
5384 (hppa_hpux_child_can_run): Delete.
5385 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5386 * hpux-thread.c: Delete.
5388 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5390 * hpux-thread.c (hpux_pid_to_str): Delete.
5392 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5394 * ada-valprint.c (ada_emit_char): Remove strange code.
5395 Check that c is <= UCHAR_MAX before passing it to isascii.
5396 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5398 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5400 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5401 to the case where instream is stdin.
5403 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5405 * ia64-tdep.h (struct regcache): Forward declare.
5406 (struct ia64_infcall_ops): New struct type.
5407 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5409 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5410 Renames ia64_find_global_pointer.
5411 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5412 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5413 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5415 (ia64_infcall_ops): New static global constant.
5416 (ia64_gdbarch_init): Set tdep->infcall_ops.
5417 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5418 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5419 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5420 (ia64_hpux_dummy_code): New static global constant.
5421 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5422 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5423 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5425 (ia64_hpux_infcall_ops): New static global constant.
5426 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5427 for inferior function calls to work properly on ia64-hpux.
5429 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5431 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5432 * ia64-tdep.h (struct frame_info): forward declaration.
5433 (struct gdbarch_tdep): Add field size_of_register_frame.
5434 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5435 to determine the size of the register frame.
5436 (ia64_size_of_register_frame): New function.
5437 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5438 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5439 (IA64_HPUX_UREG_REASON): New macro.
5440 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5442 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5443 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5444 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5447 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5449 Add support for ia64-hpux.
5450 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5451 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5453 * configure.host: Add handling for ia64-hpux hosts. Add associated
5455 * configure.tgt: Add handling for ia64-hpux targets.
5456 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5457 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5458 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5460 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5462 [ttrace] Compute thread list immediately after attach.
5463 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5465 (inf_ttrace_attach): Use it.
5467 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5469 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5470 if we could not determine the frame's function address. Instead,
5471 use the frame's PC, and then continue.
5473 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5475 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5476 not already defined.
5478 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5480 * ia64-tdep.c (ia64_struct_type_p): New function.
5481 (ia64_extract_return_value): Handle integral values that are
5482 less than 8 bytes long.
5483 (ia64_push_dummy_call): Likewise.
5485 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5487 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5488 floatformat_ia64_ext.
5489 (floatformat_ia64_ext_big): New static const.
5490 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5492 2011-01-12 Tom Tromey <tromey@redhat.com>
5494 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5496 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5497 (mi_cmd_thread_list_ids): Likewise.
5498 (mi_cmd_data_list_changed_registers): Likewise.
5499 (mi_cmd_data_list_register_values): Likewise.
5500 (mi_cmd_data_write_register_values): Likewise.
5501 (mi_cmd_data_evaluate_expression): Likewise.
5502 (mi_cmd_data_read_memory): Likewise.
5503 (mi_cmd_data_read_memory_bytes): Likewise.
5504 (mi_cmd_data_write_memory): Likewise.
5505 (mi_cmd_enable_timings): Likewise.
5506 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5507 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5508 (mi_cmd_var_delete): Likewise.
5509 (mi_cmd_var_set_format): Likewise.
5510 (mi_cmd_var_show_format): Likewise.
5511 (mi_cmd_var_info_num_children): Likewise.
5512 (mi_cmd_var_list_children): Likewise.
5513 (mi_cmd_var_info_type): Likewise.
5514 (mi_cmd_var_info_expression): Likewise.
5515 (mi_cmd_var_show_attributes): Likewise.
5516 (mi_cmd_var_assign): Likewise.
5517 (mi_cmd_var_update): Likewise.
5518 (mi_cmd_enable_pretty_printing): Likewise.
5519 (mi_cmd_var_set_update_range): Likewise.
5520 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5522 (mi_cmd_target_file_put): Likewise.
5523 (mi_cmd_target_file_delete): Likewise.
5524 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5526 (mi_cmd_stack_info_depth): Likewise.
5527 (mi_cmd_stack_list_locals): Likewise.
5528 (mi_cmd_stack_list_args): Likewise.
5529 (mi_cmd_stack_select_frame): Likewise.
5530 (mi_cmd_stack_select_frame): Likewise.
5531 (mi_cmd_stack_info_frame): Likewise.
5532 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5534 (mi_cmd_file_list_exec_source_files): Likewise.
5535 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5536 (mi_cmd_env_cd): Likewise.
5537 (mi_cmd_env_path): Likewise.
5538 (mi_cmd_env_dir): Likewise.
5539 (mi_cmd_inferior_tty_show): Likewise.
5540 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5541 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5542 (mi_cmd_break_watch): Likewise.
5544 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5546 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5547 (ppc_linux_insert_hw_breakpoint): Likewise.
5548 (ppc_linux_remove_hw_breakpoint): Likewise.
5549 (ppc_linux_insert_watchpoint): Likewise.
5551 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5552 Jan Kratochvil <jan.kratochvil@redhat.com>
5554 PR fortran/11104 and DWARF unbound arrays detection.
5555 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5556 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5557 unspecified upper bound.
5558 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5559 variables array_size_array, tmp_type and offset_item. New variable
5560 array. Remove call to f77_get_upperbound. New variables array_type
5561 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5562 the final call to deprecated_set_value_type.
5564 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5566 Make value allocations more lazy.
5567 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5568 instead of allocate_value and set_value_lazy when possible.
5569 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5570 instead of allocate_value and set_value_lazy.
5571 * findvar.c (value_of_register_lazy): Likewise.
5572 (read_var_value): Remove V preallocation, call just check_typedef in
5573 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5574 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5575 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5576 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5577 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5578 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5579 the end, remove set_value_lazy there.
5580 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5581 instead of allocate_value and set_value_lazy when possible.
5582 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5583 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5584 of allocate_value and set_value_lazy.
5585 (value_from_contents_and_address): Use allocate_value_lazy instead of
5586 allocate_value and set_value_lazy when possible.
5588 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5590 * disasm.c (dump_insns): Support dumping opcodes for MI.
5591 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5592 dumping of instruction opcodes.
5594 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5596 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5599 2011-01-11 Tom Tromey <tromey@redhat.com>
5601 * thread.c (do_captured_thread_select): Emit newline before
5604 2011-01-11 Michael Snyder <msnyder@vmware.com>
5606 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5607 * score-tdep.c: Ditto.
5608 * score-tdep.h: Ditto.
5609 * ser-base.c: Ditto.
5610 * ser-go32.c: Ditto.
5613 * ser-mingw.c: Ditto.
5614 * ser-pipe.c: Ditto.
5616 * ser-unix.c: Ditto.
5617 * sh64-tdep.c: Ditto.
5618 * shnbsd-nat.c: Ditto.
5622 * solib-darwin.c: Ditto.
5623 * solib-frv.c: Ditto.
5625 * solib-irix.c: Ditto.
5626 * solib-osf.c: Ditto.
5627 * solib-pa64.c: Ditto.
5628 * solib-som.c: Ditto.
5629 * solib-spu.c: Ditto.
5630 * solib-sunos.c: Ditto.
5631 * solib-svr4.c: Ditto.
5633 * sol-thread.c: Ditto.
5637 * sparc64-linux-tdep.c: Ditto.
5638 * sparc64-tdep.c: Ditto.
5639 * sparc-linux-nat.c: Ditto.
5640 * sparc-linux-tdep.c: Ditto.
5641 * sparc-sol2-nat.c: Ditto.
5642 * sparc-sol2-tdep.c: Ditto.
5643 * sparc-tdep.c: Ditto.
5644 * sparc-tdep.h: Ditto.
5645 * spu-tdep.c: Ditto.
5646 * stabsread.c: Ditto.
5647 * stabsread.h: Ditto.
5655 * target-descriptions.c: Ditto.
5656 * target-descriptions.h: Ditto.
5658 * target-memory.c: Ditto.
5659 * terminal.h: Ditto.
5662 * tracepoint.c: Ditto.
5663 * tracepoint.h: Ditto.
5664 * trad-frame.h: Ditto.
5665 * typeprint.c: Ditto.
5667 2011-01-11 Michael Snyder <msnyder@vmware.com>
5669 * ui-file.c: Comment cleanup, mostly periods and spaces.
5674 * v850-tdep.c: Ditto.
5675 * valarith.c: Ditto.
5677 * valprint.c: Ditto.
5678 * valprint.h: Ditto.
5683 * vax-tdep.c: Ditto.
5687 * windows-nat.c: Ditto.
5688 * windows-tdep.c: Ditto.
5689 * xcoffread.c: Ditto.
5690 * xcoffsolib.c: Ditto.
5691 * xml-support.c: Ditto.
5692 * xstormy16-tdep.c: Ditto.
5693 * xtensa-tdep.c: Ditto.
5694 * xtensa-tdep.h: Ditto.
5696 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5698 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5699 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5701 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5702 Thiago Jung Bauermann <bauerman@br.ibm.com>
5704 Implement support for PowerPC BookE ranged watchpoints.
5706 (struct breakpoint_ops) <resources_needed>: New method.
5707 Initialize to NULL in all existing breakpoint_ops instances.
5708 (struct breakpoint) <exact>: New field.
5709 (target_exact_watchpoints): Declare external global.
5710 * breakpoint.c (target_exact_watchpoints): New global flag.
5711 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5712 b->enable_state to bp_enabled before calling
5713 hw_watchpoint_used_count.
5714 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5715 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5717 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5718 if the watchpoint is exact.
5719 (resources_needed_watchpoint): New function.
5720 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5721 (watch_command_1): Set b->exact if the user asked for an exact
5722 watchpoint and one can be set.
5723 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5724 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5725 the user asks for an exact watchpoint and one can be set. Return
5726 number of needed debug registers to watch the expression.
5727 * gdbtypes.c (is_scalar_type): New function, based on
5728 valprint.c:scalar_type_p.
5729 (is_scalar_type_recursive): New function.
5730 * gdbtypes.h (is_scalar_type_recursive): Declare.
5731 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5732 handle regions when ranged watchpoints are available.
5733 (create_watchpoint_request): New function.
5734 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5735 create_watchpoint_request.
5736 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5737 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5738 `set powerpc' and `show powerpc' commands.
5739 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5740 Mention documentation comment in the target macro.
5741 (target_region_ok_for_hw_watchpoint): Document return value.
5743 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5745 * breakpoint.c (update_watchpoint): Decide on using a software or
5746 hardware watchpoint after the bp_locations are created.
5748 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5750 Convert hardware watchpoints to use breakpoint_ops.
5751 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5752 <insert_location>: ... this. Return int instead of void.
5753 Accept pointer to struct bp_location instead of pointer to
5754 struct breakpoint. Adapt all implementations.
5755 (breakpoint_ops) <remove>: Rename to...
5756 <remove_location>: ... this. Accept pointer to struct bp_location
5757 instead of pointer to struct breakpoint. Adapt all implementations.
5758 * breakpoint.c (insert_catchpoint): Delete function.
5759 (insert_bp_location): Call the watchpoint or catchpoint's
5760 breakpoint_ops.insert method.
5761 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5762 breakpoint_ops.remove method.
5763 (insert_watchpoint, remove_watchpoint): New functions.
5764 (watchpoint_breakpoint_ops): New structure.
5765 (watch_command_1): Initialize the OPS field.
5766 * inf-child.c (inf_child_insert_fork_catchpoint)
5767 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5768 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5769 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5771 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5772 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5773 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5774 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5775 * target.c (update_current_target): Change default implementation of
5776 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5777 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5778 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5779 to_set_syscall_catchpoint to return_one.
5780 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5781 (debug_to_insert_exec_catchpoint): Report return value.
5782 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5783 (to_insert_exec_catchpoint): Change declaration to return int instead
5786 2011-01-11 Michael Snyder <msnyder@vmware.com>
5788 * arm-tdep.c: Internationalization.
5791 * fork-child.c: Ditto.
5792 * nto-procfs.c: Ditto.
5793 * ppc-sysv-tdep.c: Ditto.
5795 * remote-mips.c: Ditto.
5797 * rs6000-nat.c: Ditto.
5798 * rs6000-tdep.c: Ditto.
5802 * xml-support.c: Ditto.
5803 * mi/mi-cmd-break.c: Ditto.
5804 * mi/mi-cmd-var.c: Ditto.
5805 * mi/mi-interp.c: Ditto.
5806 * mi/mi-main.c: Ditto.
5808 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5810 * remote-sim.c (gdbsim_store_register): Update API to
5811 sim_store_register to check more error conditions.
5813 2011-01-10 Michael Snyder <msnyder@vmware.com>
5815 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5816 * nto-tdep.c: Ditto.
5817 * nto-tdep.h: Ditto.
5818 * objc-exp.y: Ditto.
5819 * objc-lang.c: Ditto.
5820 * objfiles.c: Ditto.
5821 * objfiles.h: Ditto.
5822 * observer.c: Ditto.
5823 * opencl-lang.c: Ditto.
5826 * parser-defs.h: Ditto.
5829 * posix-hdep.c: Ditto.
5830 * ppcbug-rom.c: Ditto.
5831 * ppc-linux-nat.c: Ditto.
5832 * ppc-linux-tdep.c: Ditto.
5833 * ppc-linux-tdep.h: Ditto.
5834 * ppcnbsd-tdep.c: Ditto.
5835 * ppcobsd-tdep.c: Ditto.
5836 * ppcobsd-tdep.h: Ditto.
5837 * ppc-sysv-tdep.c: Ditto.
5838 * ppc-tdep.h: Ditto.
5839 * printcmd.c: Ditto.
5840 * proc-abi.c: Ditto.
5841 * proc-flags.c: Ditto.
5843 * proc-utils.h: Ditto.
5844 * progspace.h: Ditto.
5845 * prologue-value.c: Ditto.
5846 * prologue-value.h: Ditto.
5847 * psympriv.h: Ditto.
5849 * p-typeprint.c: Ditto.
5850 * p-valprint.c: Ditto.
5851 * ravenscar-sparc-thread.c: Ditto.
5852 * ravenscar-thread.c: Ditto.
5853 * ravenscar-thread.h: Ditto.
5855 * regcache.c: Ditto.
5856 * regcache.h: Ditto.
5858 * remote-fileio.c: Ditto.
5859 * remote-fileio.h: Ditto.
5861 * remote-m32r-sdi.c: Ditto.
5862 * remote-mips.c: Ditto.
5863 * remote-sim.c: Ditto.
5864 * rs6000-aix-tdep.c: Ditto.
5865 * rs6000-nat.c: Ditto.
5866 * rs6000-tdep.c: Ditto.
5868 2011-01-10 Michael Snyder <msnyder@vmware.com>
5870 * charset.c (validate): Internationalization.
5871 * coffread.c (read_one_sym): Ditto.
5872 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5873 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5874 * inflow.c (new_tty): Ditto.
5875 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5876 * m32c-tdep.c (m32c_return_value): Ditto.
5877 * mep-tdep.c (mep_store_return_value): Ditto.
5878 * score-tdep.c (score7_fetch_insn): Ditto.
5879 * ser-mingw.c (pipe_windows_open): Ditto.
5880 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5881 * spu-tdep.c (spu_register_type): Ditto.
5882 * tracepoint.c (trace_find_command): Ditto.
5883 * valarith.c (value_pos): Ditto.
5885 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5887 * ada-valprint.c (printstr): Minor comment reformatting.
5889 2011-01-08 Michael Snyder <msnyder@vmware.com>
5891 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5894 2011-01-08 Michael Snyder <msnyder@vmware.com>
5896 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5897 * hppa-hpux-tdep.c: Ditto.
5898 * hppa-linux-nat.c: Ditto.
5899 * hppa-linux-tdep.c: Ditto.
5900 * hppanbsd-tdep.c: Ditto.
5901 * hppa-tdep.c: Ditto.
5902 * hppa-tdep.h: Ditto.
5903 * hpux-thread.c: Ditto.
5904 * i386-cygwin-tdep.c: Ditto.
5905 * i386-darwin-nat.c: Ditto.
5906 * i386gnu-nat.c: Ditto.
5907 * i386-linux-nat.c: Ditto.
5908 * i386-linux-tdep.c: Ditto.
5909 * i386-nat.c: Ditto.
5910 * i386-nat.h: Ditto.
5911 * i386nbsd-tdep.c: Ditto.
5912 * i386-sol2-nat.c: Ditto.
5913 * i386-stub.c: Ditto.
5914 * i386-tdep.c: Ditto.
5915 * i386-tdep.h: Ditto.
5916 * i387-tdep.c: Ditto.
5917 * ia64-linux-nat.c: Ditto.
5918 * ia64-linux-tdep.c: Ditto.
5919 * ia64-tdep.c: Ditto.
5923 * inferior.c: Ditto.
5924 * inferior.h: Ditto.
5930 * iq2000-tdep.c: Ditto.
5931 * irix5-nat.c: Ditto.
5937 * jv-typeprint.c: Ditto.
5938 * jv-valprint.c: Ditto.
5939 * language.c: Ditto.
5940 * language.h: Ditto.
5941 * linespec.c: Ditto.
5942 * linux-fork.c: Ditto.
5943 * linux-nat.c: Ditto.
5944 * linux-thread-db.c: Ditto.
5945 * lm32-tdep.c: Ditto.
5947 2011-01-08 Michael Snyder <msnyder@vmware.com>
5949 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5951 * m2-typeprint.c: Ditto.
5952 * m2-valprint.c: Ditto.
5953 * m32c-tdep.c: Ditto.
5954 * m32r-linux-nat.c: Ditto.
5955 * m32r-rom.c: Ditto.
5956 * m32r-tdep.c: Ditto.
5957 * m32r-tdep.h: Ditto.
5958 * m68hc11-tdep.c: Ditto.
5959 * m58klinux-nat.c: Ditto.
5960 * m68k-tdep.c: Ditto.
5961 * m88k-tdep.c: Ditto.
5962 * m88k-tdep.h: Ditto.
5963 * machoread.c: Ditto.
5964 * macrocmd.c: Ditto.
5965 * macroexp.c: Ditto.
5966 * macrotab.c: Ditto.
5969 * mdebugread.c: Ditto.
5970 * mdebugread.h: Ditto.
5973 * memory-map.h: Ditto.
5974 * mep-tdep.c: Ditto.
5975 * microblaze-rom.c: Ditto.
5976 * microblaze-tdep.c: Ditto.
5978 * mips-irix-tdep.c: Ditto.
5979 * mips-linux-nat.c: Ditto.
5980 * mips-linux-tdep.c: Ditto.
5981 * mips-linux-tdep.h: Ditto.
5982 * mipsnbsd-nat.c: Ditto.
5983 * mipsnbsd-tdep.c: Ditto.
5984 * mipsread.c: Ditto.
5985 * mips-tdep.c: Ditto.
5986 * mips-tdep.h: Ditto.
5987 * mn10300-linux-tdep.c: Ditto.
5988 * mn10300-tdep.c: Ditto.
5989 * mn10300-tdep.h: Ditto.
5992 * moxie-tdep.c: Ditto.
5993 * moxie-tdep.h: Ditto.
5996 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5998 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6000 2011-01-08 Robert Millan <rmh@gnu.org>
6002 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6004 2011-01-07 Michael Snyder <msnyder@vmware.com>
6006 * charset.c (_initialize_charset): Fix typo in string.
6008 2011-01-07 Michael Snyder <msnyder@vmware.com>
6010 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6012 * tui/tui-layout.c (tui_set_layout_for_display_command):
6013 Split line so that operator goes to beginning of line.
6014 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6015 assignment out of if statement.
6017 2011-01-07 Michael Snyder <msnyder@vmware.com>
6019 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6020 * ada-lang.h: Ditto.
6021 * ada-tasks.c: Ditto.
6022 * ada-valprint.c: Ditto.
6023 * aix-threads.c: Ditto.
6024 * alpha-linux-nat.c: Ditto.
6025 * alpha-linux-tdep.c: Ditto.
6026 * alpha-mdebug-tdep.c: Ditto.
6027 * alpha-nat.c: Ditto.
6028 * alpha-osf1-tdep.c: Ditto.
6029 * alpha-tdep.c: Ditto.
6030 * alphabsd-nat.c: Ditto.
6031 * alphabsd-tdep.c: Ditto.
6032 * amd64-darwin-tdep.c: Ditto.
6033 * amd64-linux-nat.c: Ditto.
6034 * amd64-linux-tdep.c: Ditto.
6035 * amd64-sol2-tdep.c: Ditto.
6036 * amd64-tdep.c: Ditto.
6037 * amd64-fbsd-tdep.c: Ditto.
6038 * amd64-nbsd-tdep.c: Ditto.
6039 * amd64-obsd-tdep.c: Ditto.
6040 * amd64-linux-nat.c: Ditto.
6041 * amd64-linux-tdep.c: Ditto.
6042 * arm-tdep.c: Ditto.
6043 * arm-tdep.h: Ditto.
6044 * armnbsd-nat.c: Ditto.
6045 * avr-tdep.c: Ditto.
6046 * bfin-tdep.c: Ditto.
6048 * c-typeprintc: Ditto.
6049 * c-valprint.c: Ditto.
6050 * coff-pe-read.h: Ditto.
6051 * coffreead.c: Ditto.
6052 * cris-tdep.c: Ditto.
6054 * darwin-nat-info.c: Ditto.
6055 * darwin-nat.c: Ditto.
6056 * dbug-rom.c: Ditto.
6060 * dec-thread.c: Ditto.
6062 * demangle.c: Ditto.
6063 * dicos-tdep.c: Ditto.
6064 * dictionary.c: Ditto.
6065 * dictionary.h: Ditto.
6066 * dink32-rom.c: Ditto.
6068 * doublest.c: Ditto.
6070 * dummy-frame.c: Ditto.
6071 * dwarf2-frame.c: Ditto.
6072 * dwarf2expr.c: Ditto.
6073 * dwarf2loc.c: Ditto.
6074 * dwarf2read.c: Ditto.
6078 * event-top.h: Ditto.
6079 * exceptions.c: Ditto.
6080 * exceptions.h: Ditto.
6082 * expprint.c: Ditto.
6083 * expression.h: Ditto.
6087 * f-typeprint.c: Ditto.
6088 * f-valprint.c: Ditto.
6089 * fbsd-nat.c: Ditto.
6091 * fork-child.c: Ditto.
6094 * frv-linux-tdep.c: Ditto.
6095 * frv-tdep.c: Ditto.
6097 * gdb-stabs.h: Ditto.
6098 * gdb_assert.h: Ditto.
6099 * gdb_string.h: Ditto.
6100 * gdb_thread_db.h: Ditto.
6101 * gdb_wait.h: Ditto.
6102 * gdbarch.sh: Ditto.
6104 * gdbthread.h: Ditto.
6105 * gdbtypes.c: Ditto.
6106 * gdbtypes.h: Ditto.
6109 * gnu-v2-abi.c: Ditto.
6110 * gnu-v3-abi.c: Ditto.
6111 * go32-nat.c: Ditto.
6112 * gdbarch.c: Regenerate.
6113 * gdbarch.h: Regenerate.
6115 2011-01-07 Michael Snyder <msnyder@vmware.com>
6117 * ax-gdb.c: Adjust some long output strings.
6118 * breakpoint.c: Ditto.
6123 * linux-nat.c: Ditto.
6124 * solib-pa64.c: Ditto.
6125 * solib-som.c: Ditto.
6127 2011-01-06 Tom Tromey <tromey@redhat.com>
6131 * python/python.c (GdbMethods): Add "newest_frame" method.
6132 * python/python-internal.h (gdbpy_newest_frame): Declare.
6133 * python/py-frame.c (gdbpy_newest_frame): New function.
6135 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6137 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6138 * jit.c (jit_debug): New variable.
6139 (show_jit_debug): New function.
6140 (struct target_buffer): Use ULONGEST.
6141 (bfd_open_from_target_memory): Likewise.
6142 (jit_register_code, jit_inferior_init): Add debug output.
6143 (_initialize_jit): Register "debug jit" command.
6145 2011-01-06 Tom Tromey <tromey@redhat.com>
6147 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6148 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6151 2011-01-06 Tom Tromey <tromey@redhat.com>
6153 * python/py-frame.c (frapy_block): Use get_frame_block.
6155 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6157 Do not stop on SIGPRIO signals by default
6158 * infrun.c (_initialize_infrun): Unset signal_stop and
6159 signal_print for TARGET_SIGNAL_PRIO.
6161 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6163 * ada-tasks.c: Fix style violation in comment.
6165 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6167 * linespec.c (decode_compound, find_method): Remove trailing \n
6168 at end of error string.
6169 * solib-irix.c (irix_current_sos): Likewise.
6170 * varobj.c (uninstall_variable): Likewise.
6172 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6174 * copyright.py: New script.
6175 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6176 Launch emacs without exec'ing. Call copyright.py afterwards.
6178 2011-01-05 Michael Snyder <msnyder@vmware.com>
6180 * addrmap.c: Shorten lines of >= 80 columns.
6181 * arch-utils.c: Ditto.
6182 * arch-utils.h: Ditto.
6184 * ax-general.c: Ditto.
6186 * blockframe.c: Ditto.
6187 * breakpoint.c: Ditto.
6188 * buildsym.c: Ditto.
6190 * c-typeprint.c: Ditto.
6192 * coffread.c: Ditto.
6196 * cp-namespace.c: Ditto.
6197 * cp-support.c: Ditto.
6198 * dbug-rom.c: Ditto.
6203 * dictionary.c: Ditto.
6205 * doublest.c: Ditto.
6206 * dwarf2-frame.c: Ditto.
6207 * dwarf2expr.c: Ditto.
6208 * dwarf2loc.c: Ditto.
6209 * dwarf2read.c: Ditto.
6212 * event-loop.c: Ditto.
6213 * event-loop.h: Ditto.
6214 * exceptions.h: Ditto.
6216 * expprint.c: Ditto.
6217 * expression.h: Ditto.
6219 * f-valprint.c: Ditto.
6221 * frame-base.c: Ditto.
6222 * frame-unwind.c: Ditto.
6223 * frame-unwind.h: Ditto.
6227 * gdb-stabs.h: Ditto.
6228 * gdb_assert.h: Ditto.
6229 * gdb_dirent.h: Ditto.
6230 * gdb_obstack.h: Ditto.
6232 * gdbtypes.c: Ditto.
6233 * gdbtypes.h: Ditto.
6234 * inf-ttrace.c: Ditto.
6239 * inline-frame.h: Ditto.
6240 * language.c: Ditto.
6241 * language.h: Ditto.
6242 * libunwind-frame.c: Ditto.
6243 * libunwind-frame.h: Ditto.
6244 * linespec.c: Ditto.
6245 * linux-nat.c: Ditto.
6246 * linux-nat.h: Ditto.
6247 * linux-thread-db.c: Ditto.
6248 * machoread.c: Ditto.
6249 * macroexp.c: Ditto.
6250 * macrotab.c: Ditto.
6253 * mdebugread.c: Ditto.
6258 * objfiles.c: Ditto.
6259 * objfiles.h: Ditto.
6261 * p-typeprint.c: Ditto.
6262 * p-valprint.c: Ditto.
6264 * printcmd.c: Ditto.
6265 * proc-events.c: Ditto.
6267 * progspace.c: Ditto.
6268 * progspace.h: Ditto.
6269 * psympriv.h: Ditto.
6272 * regcache.c: Ditto.
6273 * regcache.h: Ditto.
6274 * remote-fileio.c: Ditto.
6276 * ser-mingw.c: Ditto.
6278 * ser-unix.c: Ditto.
6281 * solib-frv.c: Ditto.
6282 * solib-irix.c: Ditto.
6283 * solib-osf.c: Ditto.
6284 * solib-pa64.c: Ditto.
6285 * solib-som.c: Ditto.
6286 * solib-sunos.c: Ditto.
6287 * solib-svr4.c: Ditto.
6288 * solib-target.c: Ditto.
6292 * stabsread.c: Ditto.
6293 * stabsread.c: Ditto.
6296 * symfile-mem.c: Ditto.
6302 * target-descriptions.c: Ditto.
6303 * target-memory.c: Ditto.
6306 * terminal.h: Ditto.
6309 * tracepoint.c: Ditto.
6310 * tracepoint.h: Ditto.
6314 * user-regs.c: Ditto.
6315 * user-regs.h: Ditto.
6317 * valarith.c: Ditto.
6319 * valprint.c: Ditto.
6320 * valprint.h: Ditto.
6325 * xcoffread.c: Ditto.
6326 * xcoffsolib.c: Ditto.
6327 * xcoffsolib.h: Ditto.
6328 * xml-syscall.c: Ditto.
6329 * xml-tdesc.c: Ditto.
6331 2011-01-05 Michael Snyder <msnyder@vmware.com>
6333 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6334 * cli/cli-decode.c: Ditto.
6335 * cli/cli-dump.c: Ditto.
6336 * cli/cli-logging.c: Ditto.
6337 * cli/cli-script.c: Ditto.
6338 * cli/cli-setshow.c: Ditto.
6339 * common/signals.c: Ditto.
6340 * mi/mi-cmd-break.c: Ditto.
6341 * mi/mi-cmd-disas.c: Ditto.
6342 * mi/mi-cmd-stack.c: Ditto.
6343 * mi/mi-cmd-var.c: Ditto.
6344 * mi/mi-cmds.c: Ditto.
6345 * mi/mi-common.h: Ditto.
6346 * mi/mi-console.c: Ditto.
6347 * mi/mi-interp.c: Ditto.
6348 * mi/mi-main.c: Ditto.
6349 * osf-share/cma_attr.c: Ditto.
6350 * osf-share/cma_deb_core.h: Ditto.
6351 * osf-share/cma_debug_client.h: Ditto.
6352 * osf-share/cma_handle.h: Ditto.
6353 * osf-share/cma_mutex.h: Ditto.
6354 * osf-share/cma_stack_int.h: Ditto.
6355 * osf-share/cma_tcb_defs.h: Ditto.
6356 * python/py-auto-load.c: Ditto.
6357 * python/py-breakpoint.c: Ditto.
6358 * python/py-cmd.c: Ditto.
6359 * python/py-frame.c: Ditto.
6360 * python/py-objfile.c: Ditto.
6361 * python/py-param.c: Ditto.
6362 * python/py-progspace.c: Ditto.
6363 * python/py-symbol.c: Ditto.
6364 * python/py-value.c: Ditto.
6365 * python/python-internal.h: Ditto.
6366 * python/python.c: Ditto.
6367 * tui/tui-data.c: Ditto.
6368 * tui/tui-disasm.c: Ditto.
6369 * tui/tui-hooks.c: Ditto.
6370 * tui/tui-io.c: Ditto.
6371 * tui/tui-layout.c: Ditto.
6372 * tui/tui-regs.c: Ditto.
6373 * tui/tui-source.c: Ditto.
6374 * tui/tui-stack.c: Ditto.
6375 * tui/tui-win.c: Ditto.
6376 * tui/tui-windata.c: Ditto.
6377 * tui/tui-winsource.c: Ditto.
6379 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6381 * configure.ac, gdb.1: Copyright year update.
6383 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6385 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6386 this_pc_in_block, morestack_msym and morestack_name. Check for
6387 "__morestack" minimal symbol there.
6389 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6391 * symfile.c (find_sym_fns): Add call to dont_repeat.
6393 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6395 Copyright year update in most files (performed by copyright.sh).
6397 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6399 * top.c (print_gdb_version): Update copyright year in version output.
6401 For older changes see ChangeLog-2010.
6407 version-control: never