1 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
3 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
6 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
8 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
10 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
15 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
17 Fix compilation --without-expat.
18 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
20 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
22 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
23 Jan Kratochvil <jan.kratochvil@redhat.com>
25 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
26 * features/library-list-svr4.dtd: New file.
27 * remote.c (PACKET_qXfer_libraries_svr4): New.
28 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
29 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
30 * solib-svr4.c (struct svr4_library_list): New.
31 [HAVE_LIBEXPAT]: Include xml-support.h.
32 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
33 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
34 [HAVE_LIBEXPAT] (svr4_library_list_children)
35 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
36 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
37 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
38 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
39 (svr4_read_so_list): Extend the corruption message by addresses.
40 (svr4_current_sos): New variable library_list, call
41 svr4_current_sos_via_xfer_libraries.
42 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
44 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
47 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
48 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
50 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
53 * dwarf2read.c (process_psymtab_comp_unit): Set
54 PSYMTABS_ADDRMAP_SUPPORTED.
55 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
56 validity. New field psymtabs_addrmap_supported.
57 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
58 psymtabs_addrmap_supported.
59 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
60 !PSYMTABS_ADDRMAP_SUPPORTED.
61 (dump_psymtab, maintenance_info_psymtabs): Print also
62 psymtabs_addrmap_supported.
64 2011-12-01 Doug Evans <dje@google.com>
66 * python/py-type.c (type_object_methods): Fix "array" doc string.
68 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
70 * source.c (print_source_lines_base): Fix missing braces on else
71 clause leading to additional output.
73 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
75 * s390-nat.c (SUBOFF): Remove.
76 (s390_native_supply, s390_native_collect): New functions.
77 (supply_gregset, supply_fpregset): Use s390_native_supply.
78 (fill_gregset, fill_fpregset): Use s390_native_collect.
80 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
81 (s390_unwind_pseudo_register): New function.
82 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
83 registers instead of PC and CC.
84 (s390_backchain_frame_unwind_cache): Likewise.
85 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
87 (s390_trad_frame_prev_register): New function.
88 (s390_frame_prev_register): Use it.
89 (s390_sigtramp_frame_prev_register): Likewise.
90 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
91 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
92 special callback to unwind any pseudo.
94 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
95 * features/s390-core64.xml: Likewise.
96 * features/s390x-core64.xml: Likewise.
97 * features/s390-linux32.c: Regenerate.
98 * features/s390-linux64.c: Likewise.
99 * features/s390x-linux64.c: Likewise.
101 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
103 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
105 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
107 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
108 instruction. Add more diagnostic output.
110 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
112 * MAINTAINERS (Write After Approval): Add myself to the list.
114 2011-11-29 Sanjoy Das <sdas@igalia.com>
116 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
117 (jit_bfd_try_read_symtab): Fix comments.
119 2011-11-28 DJ Delorie <dj@redhat.com>
121 * NEWS: Mention RL78 simulator.
123 2011-11-28 Joel Brobecker <brobecker@adacore.com>
125 * symfile.h (struct quick_symbol_functions): Fix the documentation
126 of field map_matching_symbols, as symbols are sorted using
127 strcmp_iw_ordered, not strcmp_iw.
129 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
131 * symfile.h (struct quick_symbol_functions): Update the
132 documentation for field map_matching_symbols.
134 2011-11-28 Joel Brobecker <brobecker@adacore.com>
136 * ada-lang.c (compare_names): Fix wrong return value in case
137 string1 starts with the same contents as string2, followed
138 by an underscore that do not start a symbol name suffix.
140 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
145 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
146 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
147 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
149 * python/py-type.c (typy_strip_typedefs): Ditto.
150 (typy_legacy_template_argument): Ditto.
151 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
152 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
154 2011-11-27 Joel Brobecker <brobecker@acacore.com>
156 * remote.c (remote_get_tracepoint_status): Delete addrbuf
157 local variable. Avoid use of sprintf_vma.
159 2011-11-27 Sanjoy Das <sdas@igalia.com>
161 Fix regression in jit.exp.
162 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
163 (jit_register_code): Set the jit_objfile_data field to the correct
166 2011-11-25 Uros Bizjak <ubizjak@gmail.com>
168 * alpha-tdep.c (br_opcode): New.
169 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
170 (alpha_deal_with_atomic_sequence): New function.
171 (alpha_gdbarch_init): Handle single stepping of atomic sequences
172 with alpha_deal_with_atomic_sequence.
174 2011-11-24 Tristan Gingold <gingold@adacore.com>
176 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
177 fields. Add oso_sym, end_sym and nbr_syms.
178 (macho_register_oso): Change interface.
179 (macho_symtab_add_minsym): New function.
180 (macho_symtab_read): Rewritten.
181 (get_archive_prefix_len): Remove trailing blanks.
182 (oso_el_compare_name): Add comment.
183 (struct macho_sym_hash_entry): New structure.
184 (macho_relocate_common_syms): Remove.
185 (macho_sym_hash_newfunc): New function.
186 (macho_resolve_oso_sym_with_minsym): Likewise.
187 (macho_add_oso_symfile): Rewritten.
188 (macho_symfile_read_all_oso): Remove trailing blanks.
189 Adjust code to free oso vector.
190 (macho_symfile_read): Likewise.
191 Move code to initialize minimal symbol
193 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
195 * mips-tdep.c (extended_offset): Fix formatting.
197 2011-11-23 Doug Evans <dje@google.com>
199 * dwarf2read.c (dw2_lookup_symtab): Add comment.
200 (dw2_expand_symtabs_with_filename): Ditto.
201 (dw2_expand_symtabs_matching): Ditto.
202 (dw2_map_symbol_filenames): Ditto.
204 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
206 * ada-lang.c (assign_aggregate): Minor reformatting.
208 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
210 * ada-lang.c (assign_aggregate): Remove declaration of local
211 variable `i' which is shadowing another variable with the same
212 name declared in the outer scope.
214 2011-11-23 Joel Brobecker <brobecker@adacore.com>
216 * ada-lang.c (get_base_type): Renames base_type. Adjust all
217 calls throughout this file.
219 2011-11-23 Joel Brobecker <brobecker@adacore.com>
221 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
224 2011-11-22 Tom Tromey <tromey@redhat.com>
227 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
228 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
229 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
230 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
231 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
232 (print_it_catch_syscall, print_it_catch_exec)
233 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
234 (bpstat_print): Add 'kind' argument. Handle
235 TARGET_WAITKIND_LOADED.
236 * infrun.c (normal_stop): Update for bpstat_print change. Don't
237 handle TARGET_WAITKIND_LOADED here.
238 * breakpoint.h (bpstat_print): Update.
240 2011-11-22 Tom Tromey <tromey@redhat.com>
242 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
244 2011-11-22 Tom Tromey <tromey@redhat.com>
246 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
247 Use static_assert to check the size of
248 async_reason_string_lookup.
249 * common/gdb_assert.h (static_assert): New macro.
251 2011-11-22 Alan Modra <amodra@gmail.com>
253 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
254 destination calculation. Don't expect >> to sign extend. Don't
255 add a break if branch lands inside the sequence anywhere.
257 2011-11-21 Keith Seitz <keiths@redhat.com>
259 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
260 -var-evaluate-expression of an enumeration and fix expected result.
261 * gdb.mi/mi2-varvdisplay.exp: Likewise.
263 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
265 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
266 the case where osdata->items is empty. Rename column names to a
267 canonical form to avoid problems with unusual column names.
269 2011-11-21 Yao Qi <yao@codesourcery.com>
271 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
273 2011-11-20 Stan Shebs <stan@codesourcery.com>
275 * NEWS: Mention tracepoint additions.
276 * breakpoint.h (struct tracepoint): New field traceframe_usage.
277 * breakpoint.c (print_one_breakpoint_location): Identify
278 tracepoints as such when reporting hit counts, report
280 (create_tracepoint_from_upload): Copy status info.
281 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
282 add fields user_name, notes, start_time, stop_time.
283 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
284 * tracepoint.c (trace_user): New global.
285 (trace_notes): New global.
286 (trace_stop_notes): New global.
287 (start_tracing): Add argument and trace note handling.
288 (stop_tracing): Ditto.
289 (trace_start_command): Add notes argument.
290 (trace_stop_command): Ditto.
291 (trace_status_command): Report additional status info.
292 (trace_status_mi): Similarly.
293 (trace_save): Update, record tracepoint status.
294 (set_disconnected_tracing): Call target method directly.
295 (send_disconnected_tracing_value): Remove.
296 (set_trace_user): New function.
297 (set_trace_notes): New function.
298 (set_trace_stop_notes): New function.
299 (parse_trace_status): Handle additional status.
300 (parse_tracepoint_status): New function.
301 (parse_tracepoint_definition): Call it.
302 (tfile_get_tracepoint_status): New function.
303 (init_tfile_ops): Use it.
304 (_initialize_tracepoint): Add new setshows.
305 * target.h (struct target_ops): New methods to_get_tracepoint_status
306 and to_set_trace_notes.
307 (target_get_tracepoint_status): New macro.
308 (target_set_trace_notes): New macro.
309 * target.c (update_current_target): Add new methods.
310 * remote.c (remote_get_tracepoint_status): New function.
311 (remote_set_trace_notes): New function.
312 (init_remote_ops): Add them.
313 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
314 (mi_cmd_trace_stop): Ditto.
316 2011-11-20 Sanjoy Das <sdas@igalia.com>
318 * jit.c: Include regcache.h.
319 (jit_gdbarch_data, jit_frame_unwind): New static variables.
320 (jit_unwind_reg_set_impl, free_reg_value_impl)
321 (jit_unwind_reg_get_impl, jit_frame_sniffer)
322 (jit_frame_unwind_stop_reason, jit_frame_this_id)
323 (jit_frame_prev_register, jit_dealloc_cache)
324 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
325 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
326 jit_prepend_unwinder.
327 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
329 2011-11-20 Sanjoy Das <sdas@igalia.com>
331 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
332 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
333 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
334 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
335 (finalize_symtab, jit_object_close_impl)
336 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
337 (free_objfile_data): New functions.
338 (_initialize_jit): Register jit_objfile_data with a proper cleanup
341 2011-11-20 Sanjoy Das <sdas@igalia.com>
343 * jit.c: Include gdb-dlfcn.h.
344 (loaded_jit_reader, reader_init_fn_sym): New static variables.
345 (jit_reader_load, jit_reader_load_command)
346 (jit_reader_unload_command): New functions.
347 (_initialize_jit): Add commands "jit-reader-load" and
350 2011-11-20 Sanjoy Das <sdas@igalia.com>
352 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
353 * config.in: Add new #define HAVE_LIBDL.
354 * configure.ac: Add check for -ldl.
355 * configure: Re-generated by autoconf.
356 * gdb-dlfcn.c: New file.
357 * gdb-dlfcn.h: New file.
359 2011-11-20 Sanjoy Das <sdas@igalia.com>
361 * config.in: Add new #defines: JIT_READER_DIR and
362 JIT_READER_DIR_RELOCATABLE.
363 * configure.ac: New GDB directory entry for jit-reader-dir.
364 * configure: Re-generated by autoconf.
365 * jit.c: New static variable: const char *jit_reader_dir.
366 (_initialize_jit): Relocate jit_reader_dir.
368 2011-11-20 Sanjoy Das <sdas@igalia.com>
370 * Makefile.in: Add jit-reader.h as a header. Have it installed in
372 * configure.ac: Generate a correct value for TARGET_PTR for
373 jit-reader.h. Tell configure to generate jit-reader.h from
375 * configure: Re-generated by autoconf.
376 * jit-reader.in: New file.
377 * jit.c: Include jit-reader.h.
379 2011-11-20 Sanjoy Das <sdas@igalia.com>
381 * MAINTAINERS (Write After Approval): Add myself to the list.
383 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
385 * findvar.c (read_frame_register_value): Respect value_offset
386 of the register value. Remove big-endian special case.
388 2011-11-18 Tom Tromey <tromey@redhat.com>
391 * remote.c (putpkt_for_catch_errors): New function.
392 (remote_kill): Use it.
394 2011-11-18 Yao Qi <yao@codesourcery.com>
396 * breakpoint.c (create_breakpoint): Produce query message according to
398 Allocate tracepoint per correct type.
399 Don't check SALs for pending fast tracepoints.
400 * tracepoint.c (process_tracepoint_on_disconnect): New.
401 (disconnect_tracing): Call process_tracepoint_on_disconnect.
403 2011-11-18 Yao Qi <yao@codesourcery.com>
405 * breakpoint.c (install_breakpoint): Add one more parameter so that
406 update_global_location_list is called conditionally.
407 (create_fork_vfork_event_catchpoint): Update.
408 (create_syscall_event_catchpoint): Update.
409 (create_breakpoint_sal): Update.
410 (create_breakpoint_sal): Update. Call do_cleanups before
412 * ada-lang.c (create_ada_exception_catchpoint): Update.
413 * breakpoint.h (install_breakpoint): Update declaration.
415 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
417 * spu-tdep.c (spu_return_value): Fix handling of
418 TYPE_CALLING_CONVENTION annotation.
420 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
422 * skip.c (skip_function_command): Work around uninitialized
425 2011-11-16 David S. Miller <davem@davemloft.net>
427 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
428 'tv_usec' to long for printf since these fields have a type which
431 2011-11-15 Doug Evans <dje@google.com>
433 * buildsym.c (add_symbol_to_list): Delete outdated comment.
435 2011-11-15 Paul Koning <paul_koning@dell.com>
437 * python/py-type.c (typy_get_composite): New function.
438 (typy_nonzero): New function.
439 (typy_values): Rename from typy_fields.
440 (typy_fields): New function.
441 (typy_length): Raise exception if not struct, union, or enum type.
442 (typy_getitem): Ditto.
443 (typy_has_key): Ditto.
444 (typy_make_iter): Ditto.
446 2011-11-15 Doug Evans <dje@google.com>
448 * NEWS: Mention new parameter basenames-may-differ.
449 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
450 ! basenames_may_differ.
451 * psymtab.c (lookup_partial_symtab): Ditto.
452 * symtab.c (lookup_symtab): Ditto.
453 (basenames_may_differ): New global.
454 (_initialize_symtab): New parameter basenames-may-differ.
455 * symtab.h (basenames_may_differ): Declare.
457 2011-11-15 Pedro Alves <pedro@codesourcery.com>
458 Luis Machado <lgustavo@codesourcery.com>
460 * auxv.c: Include observer.h.
461 (auxv_inferior_data_cleanup): New.
462 (invalidate_auxv_cache_inf): New.
463 (invalidate_auxv_cache): New.
464 (get_auxv_inferior_data): New.
465 (auxv_inferior_data): New static global.
466 (auxv_info): New structure.
467 (target_auxv_search): Use get_auxv_inferior_data instead of
468 target_read_alloc and don't free cached buffers.
469 (fprint_target_auxv): Likewise
470 (_initialize_auxv): Register per-inferior auxv cache and register
471 observers to invalidate auxv cache when needed.
473 2011-11-14 Doug Evans <dje@google.com>
475 Make "!" an alias for "shell".
477 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
478 adding "!" command, always add it.
479 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
480 command of length one.
482 2011-11-14 Stan Shebs <stan@codesourcery.com>
483 Kwok Cheung Yeung <kcy@codesourcery.com>
485 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
486 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
487 the minimum instruction size for fast tracepoints.
488 * target.h (struct target_ops): Add new method
489 to_get_min_fast_tracepoint_insn_len.
490 (target_get_min_fast_tracepoint_insn_len): New.
491 * target.c (update_current_target): Set up new target operation.
492 * remote.c (remote_write_bytes_aux): Fix typo.
493 (remote_get_min_fast_tracepoint_insn_len): New.
494 (init_remote_ops): Initialize new field.
496 2011-11-14 Tom Tromey <tromey@redhat.com>
498 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
499 (encode_actions): Likewise.
501 2011-11-14 Yao Qi <yao@codesourcery.com>
503 * remote.c (struct remote_state): <install_in_trace> new field.
504 (PACKET_InstallInTrace): New enum value.
505 (remote_install_in_trace_feature): Support InstallInTrace.
506 (remote_supports_install_in_trace): Likewise.
507 (remote_protocol_features): Likewise.
508 (_initialize_remote): Likewise.
509 (remote_can_download_tracepoint): New.
510 * target.h (struct target): New field
511 `to_can_download_tracepoint'.
512 (target_can_download_tracepoint): New macro.
513 * target.c (update_current_target): Update.
514 * breakpoint.h (struct bp_location): Add comment on field
516 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
518 (remove_breakpoints): Don't remove tracepoints.
519 (tracepoint_locations_match ): New.
520 (breakpoint_locations_match): Call it.
521 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
522 (download_tracepoint_locations): New.
523 (update_global_location_list): Call it.
524 * tracepoint.c (find_matching_tracepoint): Delete.
525 (find_matching_tracepoint_location): Renamed from
526 find_matching_tracepoint. Return bp_location rather than
528 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
531 2011-11-14 Yao Qi <yao@codesourcery.com>
533 * target.h (struct target): <to_download_tracepoint> Change type
534 of parameter from tracepoint to bp_location.
535 * target.c (update_current_target): Update.
536 * tracepoint.c (start_tracing): Update.
537 * remote.c (remote_download_tracepoint): Remove loop for each location
540 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
542 * i386-nat.c (i386_insert_hw_breakpoint): Call
543 i386_update_inferior_debug_regs.
544 (i386_remove_hw_breakpoint): Likewise.
546 2011-11-14 Yao Qi <yao@codesourcery.com>
548 * breakpoint.c (init_raw_breakpoint): Call
549 add_location_to_breakpoint to replace duplicated code.
550 (add_location_to_breakpoint): Adjust the breakpoint's
551 address prior to allocating a location.
553 2011-11-12 Matt Rice <ratmice@gmail.com>
555 * macrocmd.c (macro_no_macro_info): New function.
556 (macro_expand_command): Use macro_no_macro_info.
557 (macro_expand_once_command): Ditto.
558 (info_macro_command): Add argument processing,
559 move info_definitions_command here.
560 (_initialize_macrocmd): Remove info definitions command.
561 Add arguments to info macro help text.
562 * NEWS: Replace info definitions command with new info macro options.
564 2011-11-11 Keith Seitz <keiths@redhat.com>
567 * linespec.c (locate_first_half): Keep ':' if it looks
568 like it could be part of a Windows path starting with
571 2011-11-10 Pedro Alves <pedro@codesourcery.com>
573 * linux-nat.c (linux_nat_wait): Don't force waking up the event
574 loop when returning a TARGET_WAITKIND_NO_RESUMED.
576 2011-11-10 Pedro Alves <pedro@codesourcery.com>
578 * target.c (target_waitstatus_to_string): Handle
579 TARGET_WAITKIND_NO_RESUMED.
581 2011-11-10 Doug Evans <dje@google.com>
583 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
585 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
586 (map_partial_symbol_filenames): Ditto. All callers updated.
587 * psymtab.h (map_partial_symbol_filenames): Update prototype.
588 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
589 parameter need_fullname.
591 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
592 * source.c (symtab_to_fullname): Ditto.
594 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
595 * gdb-demangle.h: ... here. New file.
596 * demangle.c: #include "gdb-demangle.h".
597 (_initialize_demangler): Use initialize_file_ftype for prototype.
598 Move "set demangle" and "set asm-demangle" parameters here from utils.c
599 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
601 * utils.c: Update. #include "gdb-demangle.h".
602 * symtab.h (asm_demangle): Delete.
603 (demangle): Move declaration next to use.
604 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
605 * dwarf2read.c: #include "gdb-demangle.h".
606 * gnu-v2-abi.c: Ditto.
607 * jv-typeprint.c: Ditto.
608 * mdebugread.c: Ditto.
609 * p-typeprint.c: Ditto.
610 * stabsread.c: Ditto.
612 (asm_demangle): Delete declaration.
613 * tui/tui-stack.c: #include "gdb-demangle.h".
615 * python/py-type.c (typy_fields_items): Call check_typedef.
617 2011-11-10 Joel Brobecker <brobecker@adacore.com>
619 * findvar.c (read_frame_register_value): Read the correct bytes
620 from registers on big-endian architectures.
622 2011-11-10 Tom Tromey <tromey@redhat.com>
624 * procfs.c (load_syscalls): Make a cleanup.
625 (open_procinfo_files): fd==0 is ok.
627 2011-11-10 Joel Brobecker <brobecker@adacore.com>
629 * procfs.c (iterate_over_mappings): Call do_cleanups before
632 2011-11-09 Doug Evans <dje@google.com>
634 * gdbtypes.c (check_typedef): Document that this function can
637 2011-11-09 Tom Tromey <tromey@redhat.com>
640 * valops.c (value_full_object): Return early if real type is
641 smaller than the enclosing type.
643 2011-11-08 Yao Qi <yao@codesourcery.com>
645 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
647 2011-11-08 Meador Inge <meadori@codesourcery.com>
649 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
650 register when the frame can't be determined.
651 * arm-tdep.c (arm_analyze_prologue): Ditto.
653 2011-11-07 Stan Shebs <stan@codesourcery.com>
655 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
657 2011-11-07 Joel Brobecker <brobecker@adacore.com>
659 * infrun.c (handle_inferior_event): Minor reformatting.
661 2011-11-05 Doug Evans <dje@google.com>
663 * source.c (forget_cached_source_info_for_objfile): Move call to
664 objfile->sf->qf->forget_cached_source_info outside of
665 ALL_OBJFILE_SYMTABS loop.
666 (forget_cached_source_info): Delete unused variable `s'.
668 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
670 * i386-nat.c (dr_ref_count): Remove unused variable.
672 2011-11-05 Doug Evans <dje@google.com>
674 * main.c (captured_main): Set lim_at_start before calling
675 make_command_stats_cleanup.
677 2011-11-04 Doug Evans <dje@google.com>
679 * utils.c: #include "timeval-utils.h".
680 (cmd_stats): Rename start_time to start_cpu_time.
681 New member start_wall_time.
682 (report_command_stats): Report wall time.
683 (make_command_stats_cleanup): Record start wall time.
685 2011-11-04 Tom Tromey <tromey@redhat.com>
687 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
689 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
691 * coff-pe-read.c: Include defs.h before bfd.h.
693 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
697 * python/python.c (python_run_simple_file): Expand tilde in path.
699 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
703 * python/py-type.c (typy_lookup_type): Do not return a type in
704 an exception handler.
706 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
707 Eli Zaretskii <eliz@gnu.org>
709 * linux-nat.c (_initialize_linux_nat): Improve help
710 for `info proc stat', `info proc status', `info proc cwd',
711 `info proc cmdline' and `info proc exe'.
713 2011-11-02 Stan Shebs <stan@codesourcery.com>
715 String collection for tracepoints.
716 * NEWS: Mention string collection.
717 * common/ax.def (tracenz): New bytecode.
718 * ax-gdb.h (trace_string_kludge): Declare.
719 * ax-gdb.c: Include valprint.h and c-lang.h.
720 (trace_string_kludge): New global.
721 (gen_traced_pop): Add string case.
722 (agent_command): Add string case.
723 * tracepoint.h (decode_agent_options): Declare.
724 * tracepoint.c: Include cli-utils.h.
725 (decode_agent_options): New function.
726 (validate_actionline): Call it.
727 (encode_actions_1): Ditto.
728 * target.h (struct target_ops): New method to_supports_string_tracing.
729 (target_supports_string_tracing): New macro.
730 * target.c (update_current_target): Add to_supports_string_tracing.
731 * remote.c (struct remote_state): New field string_tracing.
732 (remote_string_tracing_feature): New function.
733 (remote_protocol_features): New feature tracenz.
734 (remote_supports_string_tracing): New function.
735 (init_remote_ops): Set to_supports_string_tracing.
737 2011-11-02 Pedro Alves <pedro@codesourcery.com>
738 Jan Kratochvil <jan.kratochvil@redhat.com>
740 * linux-nat.c: Include cli/cli-utils.h.
741 (enum info_proc_what): New.
742 (linux_nat_info_proc_cmd): Rename to ...
743 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
744 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
745 status_f and stat_f from WHAT. Throw error on extra parameters.
746 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
747 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
748 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
749 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
750 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
751 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
752 `info proc cmdline', `info proc exe' and `info proc all' as real
753 subcommands of `info proc'.
755 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
757 * Makefile.in: (SFILES): Add skip.c.
758 (HFILES_NO_SRCDIR): Add skip.h.
759 (COMMON_OBS): Add skip.o.
760 * skip.h, skip.c: New.
761 * breakpoint.h (set_default_breakpoint): Remove.
762 (get_sal_arch): Declare.
763 * breakpoint.c: Remove default_breakpoint_valid,
764 default_breakpoint_address, default_breakpoint_symtab,
765 default_breakpoint_line, default_breakpoint_pspace variables.
766 (get_sal_arch): Make public.
767 (set_default_breakpoint): Remove.
768 (parse_breakpoint_sals, create_breakpoint, clear_command,
769 decode_line_spec_1): Remove uses of default_breakpoint variables;
770 replaced with function calls into stack.c.
771 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
772 * cli/cli-cmds.c: Add skiplist.
773 (init_cmd_lists): Initialize skiplist.
774 (init_cli_cmds): Fix comment (classes of commands appear in
776 * infrun.c (handle_inferior_event): Add check that we don't step into
777 a function whose pc is marked for skip.
778 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
779 last_displayed_addr, last_displayed_symtab, last_displayed_line
781 (set_last_displayed_sal): New static function.
782 (print_frame_info): Switch call to set_default_breakpoint to call to
783 set_last_displayed_sal.
784 (clear_last_displayed_sal, last_displayed_sal_is_valid,
785 get_last_displayed_pspace, get_last_displayed_addr,
786 get_last_displayed_symtab, get_last_displayed_line,
787 get_last_displayed_sal): New public functions.
788 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
789 get_last_displayed_pspace, get_last_displayed_addr,
790 get_last_displayed_symtab, get_last_displayed_line,
791 get_last_displayed_sal): Declare.
793 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
795 * MAINTAINERS (Write After Approval): Add myself to the list.
797 2011-10-29 Yao Qi <yao@codesourcery.com>
799 * infcmd.c (disconnect_command): Call disconnect_tracing.
801 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
804 * symtab.c (skip_prologue_sal): Code reformatting.
806 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
809 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
810 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
813 2011-10-28 Pedro Alves <pedro@codesourcery.com>
815 * linux-nat.c (linux_nat_filter_event): Remove `options'
816 parameter, and dead code that used it. If we're handling a
817 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
818 in our lwp list, re-add it.
819 (check_zombie_leaders): New.
820 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
821 wait for children with WNOHANG, and always wait for all children.
822 Don't check for no resumed children upfront. Simplify wait loop.
823 Check for zombie thread group leaders after handling all wait
824 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
825 unwaited-for children left.
826 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
827 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
828 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
829 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
831 2011-10-28 Sterling Augustine <saugustine@google.com>
833 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
834 * symtab.c (free_completion_list): New function.
835 (do_free_completion_list): Likewise.
836 (default_make_symbol_completion_list_break_on): New variable
837 back_to. Call make_cleanup and discard_cleanups.
838 (make_source_files_completion_list): Likewise.
840 2011-10-28 Paul Koning <paul_koning@dell.com>
842 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
843 * NEWS: Mention deep_items.
845 2011-10-28 Alen Skondro <askondro@gmail.com>
847 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
850 2011-10-27 Meador Inge <meadori@codesourcery.com>
852 * MAINTAINERS (Write After Approval): Add myself to the list.
854 2011-10-27 Joel Brobecker <brobecker@adacore.com>
856 * value.h (read_frame_register_value): Add declaration.
857 * findvar.c (read_frame_register_value): New function.
858 (value_from_register): Use read_frame_register_value
859 instead of get_frame_register_value + value_contents_copy
860 to get value contents.
862 2011-10-27 Doug Evans <dje@google.com>
864 * cli/cli-cmds.c (source_script_with_search): Pass full path to
865 source_script_from_stream if it may have been found on the search path.
866 * python/py-auto-load.c (source_section_scripts): Pass full path to
867 source_python_script_for_objfile.
868 * python/python.c (source_python_script): Delete stream parameter.
870 (source_python_script_for_objfile): Ditto.
871 * python/python-internal.h (source_python_script_for_objfile): Update.
872 * python/python.h (source_python_script): Update.
874 2011-10-27 Tom Tromey <tromey@redhat.com>
876 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
877 (ada_sals_for_line): Remove declarations.
879 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
881 Move unwind reasons to an external .def file
882 * frame.c (frame_stop_reason_string): Rewrite using
883 unwind_stop_reasons.def.
884 * frame.h (enum unwind_stop_reason): Likewise.
885 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
886 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
887 constants for bound-checking.
888 * unwind_stop_reasons.def: New file.
889 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
890 instead of a distinct value.
892 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
896 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
897 (convert_values_to_python): Return on Python tuple allocation
898 failure. Return NULL on value conversion error.
900 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
902 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
903 (bppy_set_task): Ditto.
904 (bppy_delete_breakpoint): Ditto.
905 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
906 (gdbpy_lookup_global_symbol): Ditto.
907 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
908 * python/py-frame.c (frapy_is_valid): Ditto.
909 (frame_info_to_frame_object): Ditto.
910 * python/py-type.c (typy_lookup_type): Ditto.
911 (typy_getitem): Ditto.
912 (typy_has_key): Ditto.
913 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
915 2011-10-26 Joel Brobecker <brobecker@adacore.com>
917 * gdbarch.h: Regenerate.
919 2011-10-26 Meador Inge <meadori@codesourcery.com>
921 * gdbarch.sh (function_list): Use 'pstring' when printing
923 * gdbarch.c: Regenerate.
925 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
927 * regcache.c (registers_changed_ptid): Invalidate thread architecture
928 and frame caches if PTID refers to all threads of a process.
930 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
932 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
933 to create_breakpoint.
935 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
937 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
938 (ppc_sysv_abi_push_dummy_call): Use it.
939 (do_ppc_sysv_return_value): Likewise.
940 (ppc64_sysv_abi_push_dummy_call): Likewise.
941 (ppc64_sysv_abi_return_value): Likewise.
943 2011-10-26 Paul Koning <paul_koning@dell.com>
945 * python/lib/gdb/types.py (deepitems): New function.
947 2011-10-25 Paul Koning <paul_koning@dell.com>
951 * python/py-value.c (value_to_value_object): Remove fetching of
952 the value if it was lazy.
953 (valpy_get_is_lazy): New function.
954 (valpy_fetch_lazy): New function.
956 2011-10-24 Joel Brobecker <brobecker@adacore.com>
958 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
959 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
961 2011-10-24 Pedro Alves <pedro@codesourcery.com>
963 * linux-nat.c (linux_handle_extended_wait): When handling a clone
964 event, in non-stop, if not stopping, make sure the new lwp has
965 last_resume_kind set to resume_continue. Assert that when we're
966 resuming the new lwp, its last_resume_kind is resume_continue.
968 2011-10-24 Pedro Alves <pedro@codesourcery.com>
970 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
971 already set when marking the event thread as not executing in
974 2011-10-24 Pedro Alves <pedro@codesourcery.com>
976 * infrun.c (handle_inferior_event): Add debug output for
977 TARGET_WAITKIND_NO_HISTORY.
979 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
981 * NEWS: Move set/show extended-prompt to "New Options". Expand
982 description. Fix typos.
984 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
988 * python/py-param.c (call_doc_function): Correctly deference on
991 2011-10-21 Joel Brobecker <brobecker@adacore.com>
993 * ada-tasks.c (print_ada_task_info): Fix computation of
994 number of tasks displayed in command output.
996 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
997 Ulrich Weigand <uweigand@de.ibm.com>
999 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1000 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1001 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1002 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1005 2011-10-20 Cary Coutant <ccoutant@google.com>
1007 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1009 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1010 flag. Adjust all callers.
1011 (process_psymtab_comp_unit): Remove adjustment for type section.
1013 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1015 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1016 arguments by adding OBJFILE. Instead of getting objfile from
1017 symbol's symtab, use new argument OBJFILE.
1018 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1019 arguments by adding OBJFILE.
1020 * gdb/dwarf2read.c (new_symbol_full): Change call to
1021 cp_scan_for_anonymous_namespaces to match new signature.
1022 * gdb/stabsread.c (define_symbol): Change call to
1023 cp_scan_for_anonymous_namespaces to match new signature.
1025 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1030 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1032 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1033 leak. Delete unused variables.
1035 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1039 * python/py-frame.c (frapy_read_var): Use const struct *block.
1040 * python/py-type.c (typy_lookup_typename): Likewise.
1041 (typy_lookup_type): Likewise.
1042 (typy_legacy_template_argument): Likewise.
1043 (typy_template_argument): Likewise.
1044 (gdbpy_lookup_type): Likewise.
1045 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1046 * python/py-block.c (blpy_block_object): Likewise.
1047 (blpy_iter): Likewise.
1048 (blpy_get_start): Likewise.
1049 (blpy_get_end): Likewise.
1050 (blpy_get_function): Likewise.
1051 (blpy_get_superblock): Likewise.
1052 (set_block): Likewise.
1053 (block_to_block_object): Likewise.
1054 (block_object_to_block): Likewise.
1055 (blpy_is_valid): Likewise.
1056 (blpy_get_global_block): New function.
1057 (blpy_get_static_block): New function.
1058 (blpy_is_global): New function.
1059 (blpy_is_static): New function.
1060 * blockframe.c (block_innermost_frame): Likewise.
1061 * valops.c (value_of_variable): Likewise.
1062 * frame.h: Update prototypes.
1063 * python/python-internal.h: Likewise.
1064 * value.h: Likewise.
1066 2011-10-19 Cary Coutant <ccoutant@google.com>
1068 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1071 2011-10-19 Cary Coutant <ccoutant@google.com>
1073 * dwarf2read.c (peek_abbrev_code): New function.
1074 (dw2_get_file_names): Check for dummy compilation units.
1075 (create_debug_types_hash_table): Likewise.
1076 (process_psymtab_comp_unit): Likewise.
1077 (load_partial_comp_unit): Likewise.
1078 (load_full_comp_unit): Likewise.
1080 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1082 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1083 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1084 pt_phdr if PT_PHDR was found.
1086 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1088 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1089 type or "<unnamed type"> when there is no name assigned.
1090 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1091 avoid a sigint when no name is assigned.
1093 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1096 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 * dwarf2expr.c (ctx_no_read_reg): New function.
1098 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1099 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1100 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1101 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1103 2011-10-16 Doug Evans <dje@google.com>
1105 * NEWS: Document python gdb.printing.register_pretty_printer's new
1106 `replace' parameter.
1108 2011-10-14 Keith Seitz <keiths@redhat.com>
1111 * eval.c (evaluate_subexp_standard): Do not construct
1112 an array of types; pass the value array directly to
1113 find_overload_match.
1114 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1115 (rank_function): Take an array of values instead of types.
1116 (rank_one_type): Add struct value * parameter.
1117 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1118 (rank_function): For each argument, pass the argument's
1119 value to rank_one_type.
1120 (rank_one_type): Add VALUE parameter.
1121 If the parameter type is a pointer and the argument type
1122 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1124 Update all calls to rank_one_type, passing NULL for new
1126 * valarith.c (value_user_defined_cpp_op): Do not construct
1127 an array of types; pass the value array directly to
1128 find_overload_match.
1129 * valops.c (find_overload_method_list): Take an array of
1130 values instead of types.
1131 Save the type of OBJP for later use.
1132 Update calls to find_oload_champ, and find_oload_champ_namespace.
1133 (find_oload_champ_namespace): Take an array of values instead
1135 (find_oload_champ_namespace_loop): Likewise.
1136 (find_oload_champ): Likewise.
1137 (classify_oload_match): Inspect all arguments
1138 until INCOMPATIBLE is found. Return the worst badness found
1140 (compare_parameters): Update call to rank_one_type.
1141 * value.h (find_overload_match): Take an array of values instead
1144 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1146 Drop lazy lm_info reading.
1147 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1148 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1149 (lm_info_read): New function.
1150 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1151 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1152 lm_dynamic_from_link_map.
1153 (lm_next, lm_prev, lm_name): Remove.
1154 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1155 initialization incl. read_memory. No longer use lm_name.
1156 (svr4_free_so): Drop lm_info->lm freeing.
1157 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1158 explicit lm_addr and lm initialization.
1159 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1160 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1163 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1164 Paul Pluzhnikov <ppluzhnikov@google.com>
1166 * defs.h (struct so_list): New forward declaration.
1167 (make_cleanup_free_so): New declaration.
1168 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1169 (svr4_free_so): Move the function here from downwards. Handle NULL
1171 (svr4_free_library_list): New.
1172 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1173 Use more cleanups. Use new parameter ignore_first instead of
1174 ignore_first_link_map_entry.
1175 (svr4_current_sos): New variable ignore_first, initialize it. New
1176 variable back_to, use it for svr4_free_library_list protection.
1177 (svr4_free_so): Remove - move upwards.
1178 * utils.c: Include solist.h.
1179 (do_free_so, make_cleanup_free_so): New functions.
1181 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1183 Fix internal error regression.
1184 * value.c (value_primitive_field): Handle value_optimized_out. Move
1185 packed bitfields comment.
1187 2011-10-13 Tom Tromey <tromey@redhat.com>
1189 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1192 2011-10-13 Tom Tromey <tromey@redhat.com>
1194 * python/py-type.c (typy_has_key): Make 'field' const.
1196 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1198 * remote.c (remote_save_trace_data): Invert comparison.
1200 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1202 * tracepoint.c (trace_save_command): Use filename instead of
1205 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1207 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1210 2011-10-13 Yao Qi <yao@codesourcery.com>
1213 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1214 whether insn is a 32-bit Thumb-2 instruction.
1215 (thumb_in_function_epilogue_p): Likewise.
1216 (thumb_get_next_pc_raw): Likewise.
1217 (arm_breakpoint_from_pc): Likewise.
1219 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1221 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1222 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1223 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1224 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1225 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1227 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1229 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1230 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1231 clear DATA on zero SIZE.
1233 2011-10-12 Doug Evans <dje@google.com>
1235 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1236 header->first_die_offset here. All callers updated.
1238 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1240 Fix compatibility with texinfo versions older than 4.12.
1241 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1242 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1243 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1244 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1245 * configure: Regenerate.
1246 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1247 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1248 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1250 2011-10-12 Gary Benson <gbenson@redhat.com>
1252 * breakpoint.h (pc_at_non_inline_function): Declare.
1253 * breakpoint.c (is_non_inline_function,
1254 pc_at_non_inline_function): New functions.
1255 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1256 if the stop is at a location where functions cannot be inlined.
1258 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1260 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1261 the core wanted them stopped, or if they now have a pending event
1263 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1264 down to stop_and_resume_callback.
1265 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1266 having new pending events after calling linux_nat_filter_event.
1268 2011-10-11 Sterling Augustine <saugustine@google.com>
1270 * dwarf2read.c: Undo inadvertent changes in previous commit.
1272 2011-10-11 Sterling Augustine <saugustine@google.com>
1274 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1277 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1279 * symfile.c (separate_debug_file_exists): Fix condition.
1281 2011-10-11 David S. Miller <davem@davemloft.net>
1283 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1285 * regcache.h (regcache_restore): Remove declaration.
1287 * gdbarch.sh: New field 'long_long_align_bit'.
1288 * gdbarch.c, gdbarch.h: Regenerate.
1289 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1290 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1292 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1294 Revert this part of:
1295 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1296 Support @entry in input expressions.
1297 * c-exp.y (ENTRY, unknown_cpp_name): New.
1298 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1299 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1300 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1301 (name_not_typename: ENTRY): New.
1302 (yylex): Recognize ENTRY.
1304 Reimplement @entry in input expressions.
1305 * c-exp.y (ENTRY): New.
1306 (variable: name_not_typename ENTRY): New.
1307 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1309 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1311 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1312 parent and child's pids as soon as we detect a clone event.
1313 Adjust another debug message.
1315 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1317 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1318 not zombie instead of reading the whole file.
1320 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1322 Fix separate debuginfo warning with "remote:" access.
1323 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1324 * symfile.c (get_file_crc): New function with the code moved from ...
1325 (separate_debug_file_exists): ... this function, specifically variables
1326 buffer and count. New variable verified_as_different, set it. Remove
1327 file_crc initialization. Verify also if both files are not the same
1328 manually, if needed.
1330 2011-10-11 Yao Qi <yao@codesourcery.com>
1332 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1335 2011-10-10 Doug Evans <dje@google.com>
1337 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1338 libthread_db when we load libpthread or the main symbol file.
1339 (thread_db_inferior_created): New function.
1340 (_initialize_thread_db): Attach inferior_created observer.
1341 * linux-nat.c (linux_child_post_attach): Remove call to
1342 check_for_thread_db.
1343 (linux_child_post_startup_inferior): Ditto.
1344 * objfiles.h (OBJF_MAINLINE): Define.
1345 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1346 allocate_objfile when appropriate.
1348 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1351 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1352 Remove unused variables.
1353 (get_linux_version): Remove function.
1354 (_initialize_arm_linux_nat): Do not call it.
1356 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1358 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1359 new clone lwp if the core asked it to stop. Don't pass on
1360 unexpected signals to the new clone; leave them pending instead.
1362 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1364 * linux-nat.c (resume_lwp): Remove redundant debug output.
1366 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1368 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1369 last_resume_kind before clearing it, and use the copy instead to
1370 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1371 resume_clear_callback in the non-stop path too.
1373 2011-10-09 Yao Qi <yao@codesourcery.com>
1375 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1376 Honor OPTIONS and VAL's type.
1377 (common_val_print, value_print): Update to pass one more parameter.
1379 2011-10-09 Doug Evans <dje@google.com>
1381 Add new "alias" command.
1382 * NEWS: Mention new command.
1383 * command.h (valid_user_defined_cmd_name_p): Declare.
1384 * defs.h (make_cleanup_dyn_string_delete): Declare.
1385 * utils.c: #include "dyn-string.h".
1386 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1387 * cli/cli-cmds.c: #include "dyn-string.h".
1388 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1389 (init_cli_cmds): Add new command.
1390 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1392 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1394 Fix compatibility with older GCCs.
1395 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1396 * stack.c (read_frame_arg): Initialize val_deref.
1398 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1400 Entry values NEWS entries, DWARF disassembly support.
1401 * NEWS: New entry values entry.
1402 (set print entry-values, show print entry-values)
1403 (set debug entry-values, show debug entry-values): New entries.
1404 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1405 indent. Remove variable start. Move header printing out. Respect
1406 INDENT. Support DW_OP_GNU_entry_value.
1407 (locexpr_describe_location_1): Move the header printing here, extend
1408 the disassemble_dwarf_expression passed parameters.
1410 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1412 Display @entry parameter values even for references.
1413 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1414 coerce_ref_if_computed.
1415 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1416 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1417 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1418 existing push_dwarf_reg_entry_value call. Add new detection calling
1419 dwarf_block_to_dwarf_reg_deref. Update the error message.
1420 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1422 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1423 parameter deref_size, describe it in the comment.
1424 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1425 (dwarf_block_to_dwarf_reg_deref): New declaration.
1426 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1427 deref_size, describe it in the function comment. New variables
1428 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1429 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1430 describe it in the function comment. Fetch the alternative block
1431 accoring to DEREF_SIZE.
1432 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1433 (entry_data_value_free_closure, entry_data_value_funcs): New.
1434 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1435 outer_val, target_val, val and addr. Try to fetch and create also
1436 referenced value content.
1437 (pieced_value_funcs): NULL value for coerce_ref.
1438 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1439 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1440 coerce_ref_if_computed.
1441 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1442 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1443 * stack.c (read_frame_arg): Compare also dereferenced values.
1444 * value.c (value_computed_funcs): Make the parameter v const, use
1445 value_lval_const for it.
1446 (value_lval_const, coerce_ref_if_computed): New function.
1447 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1448 * value.h (struct lval_funcs): New field coerce_ref.
1449 (value_computed_funcs): Make the parameter v const.
1450 (value_lval_const, coerce_ref_if_computed): New declarations.
1452 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1454 Support @entry in input expressions.
1455 * c-exp.y (ENTRY, unknown_cpp_name): New.
1456 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1457 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1458 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1459 (name_not_typename: ENTRY): New.
1460 (yylex): Recognize ENTRY.
1461 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1462 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1464 * parse.c (operator_length_standard): Likewise.
1465 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1467 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1469 Display referenced values in backtraces.
1470 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1471 * stack.c (print_frame_arg): Likewise.
1473 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1475 Make some lval_funcs methods to default on NULL.
1476 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1478 (value_assign): Check if lval_computed write method is NULL.
1479 * value.h (struct lval_funcs): Comment NULL values for read and write
1482 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1484 Display @entry parameter values (without references).
1485 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1487 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1489 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1491 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1492 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1494 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1495 (loclist_read_variable_at_entry): New function.
1496 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1497 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1498 DW_AT_location, call dwarf_block_to_sp_offset for it.
1499 * frame.h (print_entry_values_no, print_entry_values_only)
1500 (print_entry_values_preferred, print_entry_values_if_needed)
1501 (print_entry_values_both, print_entry_values_compact)
1502 (print_entry_values_default, print_entry_values): New declarations.
1503 (struct frame_arg): New field entry_kind.
1504 (read_frame_arg): New parameter entryargp.
1505 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1506 arg->entry_kind. Optionally print the `@entry' suffix.
1507 (list_args_or_locals): New variable entryarg, initialize it.
1508 Initialize also entry_kind of arg and entryarg. Conditionalize
1509 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1510 xfree for entryarg.error.
1511 * stack.c (print_entry_values_no, print_entry_values_only)
1512 (print_entry_values_preferred, print_entry_values_if_needed)
1513 (print_entry_values_both, print_entry_values_compact)
1514 (print_entry_values_default, print_entry_values_choices)
1515 (print_entry_values): New variables.
1516 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1517 print the `@entry' suffix, possibly in combination for
1518 print_entry_values_compact.
1519 (read_frame_arg): New parameter entryargp, new variables entryval,
1520 entryval_error and val_equal. Read in also entryargp, respect
1521 print_entry_values, compare the values using val_equal, fill in also
1522 argp->entry_kind (together with entryargp->entry_kind).
1523 (print_frame_args): New variable entryarg, initialize it.
1524 Conditionalize print_frame_arg for arg, add print_frame_arg for
1525 entryarg. Call xfree for entryarg.error.
1526 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1527 * symtab.h (struct symbol_computed_ops): New field
1528 read_variable_at_entry.
1530 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1533 * frame.h (struct frame_arg): New definition.
1534 (read_frame_arg): New declaration.
1535 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1536 (list_args_or_locals): ... the code here. New variable arg, call
1537 read_frame_arg and list_arg_or_local with it. Unify the
1538 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1540 * stack.c (print_frame_arg): New functiom from the code of
1542 (read_frame_arg): New function.
1543 (print_frame_args): Remove variable val. New variable arg, call
1544 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1546 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1548 Protect entry values against self tail calls.
1549 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1550 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1552 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 Recognize virtual tail call frames.
1555 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1556 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1557 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1558 * dwarf2-frame-tailcall.c: New file.
1559 * dwarf2-frame-tailcall.h: New file.
1560 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1561 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1562 REGS.PREV only after CIE execution.
1563 (struct dwarf2_frame_cache): New field tailcall_cache.
1564 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1565 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1566 parts, try to find entry_cfa_sp_offset. Call
1567 dwarf2_tailcall_sniffer_first.
1568 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1570 (dwarf2_frame_dealloc_cache): New function.
1571 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1572 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1573 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1574 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1575 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1576 * dwarf2loc.c (func_addr_to_tail_call_list)
1577 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1578 (call_site_find_chain_1, call_site_find_chain): New.
1579 * dwarf2loc.h (struct call_site_chain): New.
1580 (call_site_find_chain): New declaration.
1581 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1582 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1583 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1584 * stack.c (frame_info): Support also TAILCALL_FRAME.
1586 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 Tail call sites reader implementation.
1589 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1590 fill in TYPE_TAIL_CALL_LIST.
1591 * gdbtypes.h (struct func_type): New field tail_call_list.
1592 (struct call_site): New field tail_call_next.
1593 (TYPE_TAIL_CALL_LIST): New definition.
1595 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1597 Implement basic support for DW_TAG_GNU_call_site.
1598 * block.c: Include gdbtypes.h and exceptions.h.
1599 (call_site_for_pc): New function.
1600 * block.h (call_site_for_pc): New declaration.
1601 * defs.h: Include hashtab.h.
1602 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1604 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1605 ctx_no_push_dwarf_reg_entry_value.
1606 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1607 (dwarf_block_to_dwarf_reg): New function.
1608 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1609 (ctx_no_push_dwarf_reg_entry_value): New function.
1610 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1611 push_dwarf_reg_entry_value.
1612 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1614 * dwarf2loc.c: Include gdbcmd.h.
1615 (dwarf_expr_ctx_funcs): New forward declaration.
1616 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1617 (dwarf_expr_reg_to_entry_parameter)
1618 (dwarf_expr_push_dwarf_reg_entry_value): New.
1619 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1620 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1621 (needs_dwarf_reg_entry_value): New function.
1622 (needs_frame_ctx_funcs): Install it.
1623 (_initialize_dwarf2loc): New function.
1624 * dwarf2loc.h (entry_values_debug): New declaration.
1625 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1626 (read_call_site_scope): New forward declaration.
1627 (process_full_comp_unit): Copy call_site_htab.
1628 (process_die): Support DW_TAG_GNU_call_site.
1629 (read_call_site_scope): New function.
1630 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1631 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1632 (cleanup_htab): Delete.
1633 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1634 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1635 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1636 FIELD_LOC_KIND_DWARF_BLOCK.
1637 * gdbtypes.h (enum field_loc_kind): New entry
1638 FIELD_LOC_KIND_DWARF_BLOCK.
1639 (struct main_type): New loc entry dwarf_block.
1640 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1641 (TYPE_FIELD_DWARF_BLOCK): New.
1642 * python/py-type.c: Include dwarf2loc.h.
1643 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1644 internal_error call on unknown FIELD_LOC_KIND.
1645 * symtab.h (struct symtab): New field call_site_htab.
1646 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1647 (core_addr_hash, core_addr_eq): New functions.
1649 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1653 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1654 calling_convention under func_stuff there.
1655 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1656 (init_type) <TYPE_CODE_FUNC>: Likewise.
1657 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1658 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1659 * gdbtypes.h (enum type_specific_kind): Change
1660 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1661 (struct main_type) <type_specific>: Change calling_convention to
1662 func_stuff. Move calling_convention to ...
1663 (struct func_type): ... this new struct.
1664 (INIT_FUNC_SPECIFIC): New #define.
1665 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1667 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1669 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1670 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1671 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1672 ctx->ref_addr_size. Handle its invalid value.
1673 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1674 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1675 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1676 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1677 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1678 (dwarf2_per_cu_ref_addr_size): New function.
1680 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1683 * dwarf2read.c (per_cu_header_read_in): New function.
1684 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1685 variables cu_header_local and cu_headerp.
1687 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 Fix initial language detection with -readnow.
1690 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1691 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1692 searches only for global symbols.
1694 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 Fix printed anonymous struct name.
1697 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1698 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1699 (anonymous_struct_prefix): New function.
1700 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1701 (dwarf2_name): Strip for anonymous structs any prefixes.
1703 2011-10-07 Doug Evans <dje@google.com>
1705 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1708 * python/lib/gdb/printing.py: Whitespace cleanup.
1710 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1713 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1715 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1716 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1717 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1718 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1719 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1720 (arm_linux_remove_watchpoint): Adjust.
1721 * i386-linux-nat.c (i386_linux_dr_set_control)
1722 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1723 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1724 (ia64_linux_remove_watchpoint): Adjust.
1725 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1726 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1727 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1728 (ppc_linux_insert_mask_watchpoint)
1729 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1730 (ppc_linux_remove_watchpoint): Adjust.
1731 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1734 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1736 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1737 (clear_win32_environment): New function for Cygwin to clear out
1739 (windows_create_inferior): Prepare new environment from in_env
1742 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1745 * python/py-value.c (valpy_call): Check that arguments are
1747 (is_intlike): Remove call to CHECK_TYPEDEF.
1748 (valpy_nonzero): Catch GDB exceptions.
1749 (valpy_absolute): Ditto.
1750 (valpy_lazy_string): Ditto.
1751 (valpy_call): Ditto.
1752 (valpy_get_is_optimized_out): Ditto.
1753 (valpy_long): Ditto.
1754 (valpy_float): Ditto.
1755 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1756 (valpy_richcompare): Ditto.
1758 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1760 * inferior.h (disable_randomization): Declare.
1761 * infrun.c (disable_randomization): New global variable.
1762 (show_disable_randomization): New function.
1763 (set_disable_randomization): Likewise.
1764 (_initialize_infrun): Install set/show disable-randomization
1766 * linux-nat.c (disable_randomization): Remove.
1767 (show_disable_randomization): Likewise.
1768 (set_disable_randomization): Likewise.
1769 (_initialize_linux_nat): No longer install set/show
1770 disable-randomization commands here.
1771 (linux_nat_supports_disable_randomization): New function.
1772 (linux_nat_add_target): Install it.
1773 * remote.c (PACKET_QDisableRandomization): New enum value.
1774 (remote_protocol_packets): Support QDisableRandomization.
1775 (_initialize_remote): Likewise.
1776 (remote_supports_disable_randomization): New function.
1777 (init_remote_ops): Install it.
1778 (extended_remote_supports_disable_randomization): New function.
1779 (init_extended_remote_ops): Install it.
1780 (extended_remote_disable_randomization): New function.
1781 (extended_remote_create_inferior_1): Call it.
1782 * target.h (struct target_ops): Add to_supports_disable_randomization.
1783 (target_supports_disable_randomization): Add prototype.
1784 * target.c (target_supports_disable_randomization): New function.
1785 (find_default_supports_disable_randomization): Likewise.
1786 (init_dummy_target): Install it.
1788 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1790 Allow Python notification of new object-file loadings.
1791 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1792 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1793 Add build rule for this file.
1794 * python/py-event.h (emit_new_objfile_event): New prototype.
1795 (newobjfile): New Python event emitter.
1796 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1797 Python event registry.
1798 * python/py-inferior.c: Include objfiles.h
1799 (python_new_objfile): New function.
1800 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1802 * python/py-newobjfileevent.c: New file.
1803 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1805 * python/python.c (_initialize_python): Add
1806 gdbpy_initialize_new_objfile_event call.
1807 * NEWS: Add item for new Python event "gdb.newobjfile"
1809 2011-10-05 Tristan Gingold <gingold@adacore.com>
1811 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1812 Extract the ravenscar task name from the symbol for the atcb.
1814 2011-10-04 Paul Koning <paul_koning@dell.com>
1816 * python/py-type.c (typy_make_iter): Add forward declaration.
1817 (typy_fields_items): Use the gdb.Type iterator.
1819 2011-10-04 Paul Koning <paul_koning@dell.com>
1821 * NEWS: Add entry for Python gdb.Type mapping methods.
1823 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1825 PR python/12691: Add the inferior to Python exited event
1826 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1828 * python/py-event.h (emit_exited_event): Likewise
1829 * python/-inferior.c (python_inferior_exit): Likewise
1831 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1833 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1834 in output of -ada-task-info GDB/MI command.
1836 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1838 * ada-lang.h (struct inferior): Declare.
1839 (print_ada_task_info): Add declaration.
1840 * ada-tasks.c (print_ada_task_info): Make non-static.
1841 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1842 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1843 * mi/mi-main.c: #include "ada-lang.h".
1844 (mi_cmd_list_features): Add "ada-task-info" to the list
1845 of supported features.
1846 (mi_cmd_ada_task_info): New function.
1848 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1850 * python/python.c (python_run_simple_file): New function.
1851 (source_python_script, source_python_script_for_objfile):
1852 Replace call to PyRun_SimpleFile by call to
1853 python_run_simple_file.
1855 2011-10-03 Paul Koning <paul_koning@dell.com>
1857 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1858 (value_to_value_object): Fetch value if it was lazy.
1860 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1864 Rearrange the code for it.
1866 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1868 * breakpoint.c (bkpt_print_recreate): Add call to
1869 print_recreate_thread.
1871 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1873 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1874 PTRACE_GETFDPIC_INTERP): Define.
1876 2011-09-28 Yao Qi <yao@codesourcery.com>
1878 * symfile.c (add_symbol_file_command): Update message on usage.
1880 2011-09-28 Paul Koning <paul_koning@dell.com>
1882 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1883 (typy_length, typy_get, typy_has_key, typy_make_iter)
1884 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1885 (typy_iterator_iter, typy_iterator_iternext)
1886 (typy_iterator_dealloc): New functions to implement standard
1887 Python mapping methods on gdb.Type object.
1888 (gdb.TypeIterator): New Python type.
1889 * python/python-internal.h (gdbpy_iter_kind): New enum.
1891 2011-09-28 David S. Miller <davem@davemloft.net>
1893 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1894 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1895 * sparc-tdep.c (sparc_complex_floating_p): New function.
1896 (sparc32_store_arguments): Handle complex floats.
1897 (sparc32_extract_return_value): Likewise.
1898 (sparc32_store_return_value): Likewise.
1899 (sparc32_stabs_argument_has_addr): Likewise.
1900 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1901 (sparc64_store_floating_fields): Handle complex floats.
1902 (sparc64_store_arguments): Likewise.
1903 (sparc64_store_return_value): Likewise.
1905 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1907 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1908 before the change on 2006-12-09.
1909 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1910 generates the environment block for CreateProcessA, modulo the
1911 Cygwin-specific parts that are not needed here.
1913 2011-09-27 Tristan Gingold <gingold@adacore.com>
1915 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1916 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1917 (darwin_solib_get_all_image_info_addr_at_init): New function.
1918 (darwin_solib_read_all_image_info_addr): Likewise.
1919 (darwin_solib_create_inferior_hook): Use the above two functions.
1920 * darwin-nat.c (darwin_execvp): Renames retval to res.
1921 (darwin_read_write_inferior): Update comment.
1922 (darwin_read_dyld_info): New function.
1923 (darwin_xfer_partial): Handle DYLD_INFO.
1925 2011-09-27 Stan Shebs <stan@codesourcery.com>
1927 Add return address collection for tracepoints.
1928 * tracepoint.c (encode_actions_1): Add case for $_ret.
1929 (validate_actionline): Check for $_ret.
1930 (trace_dump_actions): Ditto.
1931 * ax-gdb.h (gen_trace_for_return_address): Declare.
1932 * ax-gdb.c: Include arch-utils.h.
1933 (gen_trace_for_return_address): New function.
1934 (agent_command): Add return address special case.
1935 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1936 (amd64_gen_return_address): New function.
1937 (amd64_init_abi): Call it.
1938 * i386-tdep.c: Include ax.h and ax-gdb.h.
1939 (i386_gen_return_address): New function.
1940 (i386_init_abi): Call it.
1941 * arch-utils.h (default_gen_return_address): Declare.
1942 * arch-utils.c (default_gen_return_address): New function.
1943 * gdbarch.sh (gen_return_address): New method.
1944 * gdbarch.h, gdbarch.c: Regenerate.
1946 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1949 * i386-tdep.c (i386_frame_align): New.
1950 (i386_gdbarch_init): Use i386_frame_align.
1952 2011-09-23 Yao Qi <yao@codesourcery.com>
1954 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1957 2011-09-22 Tristan Gingold <gingold@adacore.com>
1959 * fork-child.c (fork_inferior): Add exec_fun parameter.
1960 Call exec_fun or execvp.
1961 * inferior.h: Adjust prototype.
1962 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1963 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1964 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1965 * procfs.c (procfs_create_inferior): Ditto.
1966 * darwin-nat.c (darwin_execvp): New function.
1967 (darwin_create_inferior): Use it.
1969 2011-09-22 Yao Qi <yao@codesourcery.com>
1971 * infrun.c (context_switch): Print debug message when switching to
1974 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1976 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1977 complex and vector types.
1978 (s390_return_value_convention): Likewise.
1980 (s390_value_from_register): Call check_typedef.
1981 (extend_simple_arg): Likewise.
1982 (alignment_of): Likewise.
1983 (s390_push_dummy_call): Likewise.
1984 (s390_return_value): Likewise.
1986 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1988 * event-top.c (async_disconnect): If an exception is thrown from
1989 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1991 * top.c (quit_cover): Return void and take no arguments.
1992 * top.h (quit_cover): Update prototype.
1994 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1996 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1997 current_uiout, not uiout.
1999 2011-09-19 Doug Evans <dje@google.com>
2001 * python/py-auto-load.c (source_section_scripts): Fix file
2003 * python/python.c (source_python_script_for_objfile): Tweak comments.
2005 2011-09-18 Yao Qi <yao@codesourcery.com>
2006 Ulrich Weigand <ulrich.weigand@linaro.org>
2008 Support displaced stepping for Thumb 16-bit insns.
2009 * arm-tdep.c (THUMB_NOP) Define.
2010 (thumb_copy_unmodified_16bit): New.
2011 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2012 (thumb_copy_alu_reg): New.
2013 (arm_copy_svc): Move some common code to ...
2014 (install_svc): ... here. New.
2015 (thumb_copy_svc): New.
2016 (install_pc_relative): New.
2017 (thumb_copy_pc_relative_16bit): New.
2018 (thumb_decode_pc_relative_16bit): New.
2019 (thumb_copy_16bit_ldr_literal): New.
2020 (thumb_copy_cbnz_cbz): New.
2021 (cleanup_pop_pc_16bit_all): New.
2022 (thumb_copy_pop_pc_16bit): New.
2023 (thumb_process_displaced_16bit_insn): New.
2024 (thumb_process_displaced_32bit_insn): New.
2025 (thumb_process_displaced_insn): process thumb instruction.
2027 Support displaced stepping for Thumb 32-bit insns.
2028 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2029 (thumb2_copy_preload): New.
2030 (thumb2_copy_copro_load_store): New.
2031 (thumb2_copy_b_bl_blx): New.
2032 (thumb2_copy_alu_imm): New.
2033 (thumb2_copy_load_reg_imm): New.
2034 (thumb2_copy_load_literal): New
2035 (thumb2_copy_block_xfer): New.
2036 (thumb_32bit_copy_undef): New.
2037 (thumb_32bit_copy_unpred): New.
2038 (thumb2_decode_ext_reg_ld_st): New.
2039 (thumb2_decode_svc_copro): New.
2040 (decode_thumb_32bit_store_single_data_item): New.
2041 (thumb_copy_pc_relative_32bit): New.
2042 (thumb_decode_pc_relative_32bit): New.
2043 (decode_thumb_32bit_ld_mem_hints): New.
2044 (thumb2_copy_table_branch): New
2045 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2048 2011-09-18 Yao Qi <yao@codesourcery.com>
2050 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2051 (install_b_bl_blx): Likewise.
2053 2011-09-17 Yao Qi <yao@codesourcery.com>
2055 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2056 (install_load_store): ... this. New.
2057 Change parameter BYTE to SIZE.
2058 (arm_copy_ldr_str_ldrb_strb): Update caller.
2059 (arm_decode_ld_st_word_ubyte): Update caller.
2061 2011-09-17 Yao Qi <yao@codesourcery.com>
2063 * infrun.c (displaced_step_fixup): Move some code ...
2064 (displaced_step_restore): ... here. New function.
2065 (handle_inferior_event): Cleanup displaced stepping state for both
2066 child and parent when get forked or vforked event.
2067 * regcache.c (get_thread_arch_aspace_regcache): New function.
2068 get_thread_arch_regcache (): Call it.
2070 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2072 * ada-tasks.c (print_ada_task_info): New function, merging
2073 short_task_info and info_tasks together. Reimplement using
2074 ui-out instead of printing to stdout directly. Move the code
2075 building and checking the task list here, instead of leaving it
2076 in info_tasks_command.
2077 (info_task): Move the code building and checking the task
2078 list here, instead of leaving it in info_tasks_command.
2079 (info_tasks_command): Delete code building and checking
2080 the task list - moved elsewhere. Update calls to info_tasks
2083 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2085 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2087 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2089 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2091 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2093 * ada-lang.h (ada_build_task_list): Remove parameter
2095 * ada-tasks.c (ada_build_task_list): Remove parameter
2096 `warn_if_null'. Adjust implementation and documentation.
2097 (valid_task_id, ada_get_environment_task)
2098 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2099 (info_tasks_command): Adjust implementation.
2100 (task_command): Likewise.
2101 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2102 to ada_build_task_list.
2104 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2106 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2107 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2108 (ada_tasks_inferior_data_handle): New static global.
2109 (get_ada_tasks_inferior_data): New function.
2110 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2111 (ada_get_environment_task, iterate_over_live_ada_tasks)
2112 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2114 (ada_set_current_inferior_known_tasks_addr): New function.
2115 (read_known_tasks, ada_build_task_list, short_task_info)
2116 (info_tasks, info_task, info_tasks_command, task_command_1)
2117 (task_command, ada_task_list_changed): Adjust.
2118 (ada_tasks_invalidate_inferior_data): New function.
2119 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2120 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2121 * ada-lang.h (struct inferior): Add declaration.
2122 (ada_task_list_changed): Update profile.
2123 * remote-wtx-pd.c: #include "inferior.h".
2124 (switch_to_pd_internal): Update call to ada_task_list_changed.
2126 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2128 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2129 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2130 (atcb_fieldno): Delete these static globals.
2131 (struct ada_tasks_pspace_data): New struct.
2132 (ada_tasks_pspace_data_handle): New static global.
2133 (get_ada_tasks_pspace_data): New function.
2134 (ada_tasks_invalidate_pspace_data): New function.
2135 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2136 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2137 (_initialize_tasks): Create this module's per-progspace
2140 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2142 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2144 2011-09-16 Tristan Gingold <gingold@adacore.com>
2146 * fork-child.c (fork_inferior): Update comment. Use alloca
2147 instead of xmalloc for argv. Move len and shell_command
2148 declarations in the block where they are used.
2149 Only call execvp. Factorize failure code.
2151 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2154 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2155 `exp_element' instead of an element of the same and make the function
2157 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2158 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2159 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2160 Change argument of `write_exp_elt' function call.
2161 Remove extra spaces from comments.
2162 * parser-defs.h (write_exp_elt): Remove prototype.
2164 2011-09-15 Paul Koning <paul_koning@dell.com>
2166 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2167 count of item appended to list.
2168 * python/py-type.c (typy_fields): Likewise.
2170 2011-09-15 Paul Koning <paul_koning@dell.com>
2172 * MAINTAINERS (Write After Approval): Add myself to the list.
2174 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2177 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2178 processes with multiple threads.
2179 (inf_has_multiple_thread_cb): New function.
2180 (inf_has_multiple_threads): New function.
2182 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2184 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2185 * python/py-inferior.c (GdbMethods): New Python method definition.
2187 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2189 Handle multiple breakpoint hits in Python interface:
2190 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2191 variable to breakpoints.
2192 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2193 bps instead of single breakpoint. Fix some space typos.
2194 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2195 variable to breakpoints.
2197 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2199 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2200 note if the breakpoint is internal.
2202 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2204 * MAINTAINERS (Write After Approval): Add myself to the list
2206 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2208 * infrun.c (prepare_for_detach, wait_for_inferior)
2209 (fetch_inferior_event): Don't flush the register cache.
2210 * remote.c (struct stop_reply) <regcache>: Add comment.
2212 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2214 Remove excessive DWARF expressions memory duplication.
2215 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2217 (indirect_pieced_value): Remove variable result. Remove variable
2218 back_to and its use for baton.data.
2219 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2221 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2222 Update the function comment.
2224 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2226 * inferior.h (ALL_INFERIORS): New.
2227 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2228 for a stopped thread.
2229 (thread_db_find_new_threads): Look for threads in all inferiors.
2231 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2233 * breakpoint.c (update_watchpoint): Handle the case of the
2234 watchpoint to update not being in the breakpoint list yet.
2235 (hw_watchpoint_use_count): New, factored out from
2236 hw_watchpoint_used_count.
2237 (hw_watchpoint_used_count): Rename to ...
2238 (hw_watchpoint_used_count_others): ... this. Add `except'
2239 parameter. Don't count resources of `except'. Use
2240 hw_watchpoint_use_count.
2242 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2244 * gdbthread.h (enum thread_state): Moved here.
2245 (struct thread_info): Rename `executing_' field to `executing' and
2246 `state_' to `state'.
2247 * thread.c (enum thread_state): Moved to gdbthread.h.
2248 (new_thread, add_thread_silent, delete_thread_1)
2249 (any_live_thread_of_process, thread_alive, set_running)
2250 (set_running, is_thread_state, any_running, is_executing)
2251 (set_executing, finish_thread_state, print_thread_info)
2252 (do_captured_thread_select): Adjust.
2254 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2256 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2257 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2259 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2260 Matt Rice <ratmice@gmail.com>
2264 * interps.c (struct interp) <interpreter_out>: Delete field.
2265 (interp_new): Remove the data and uiout parameters and adjust.
2266 (interp_set): Only set the current_uiout from the interpreter's
2267 uiout after initializing the interpreter. Adjust call to
2269 (interp_ui_out): Adjust to call procs->ui_out_proc.
2270 (interp_data, interp_name): New.
2271 * interps.h (interp_init_ftype): Add `self' parameter.
2272 (interp_ui_out_ftype): New typedef.
2273 (struct interp_procs) <ui_out_proc>: New method pointer.
2274 (interp_new): Remove the data and uiout parameters.
2275 (interp_data, interp_name): Declare.
2276 * tui/tui-interp.c (tui_init): Adjust prototype.
2278 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2279 tui_out here. Adjust call to interp_new.
2280 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2281 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2283 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2284 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2285 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2286 Initialize mi->uiout depending on the mi_version as extracted from
2287 the interpreter's name.
2289 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2290 interp_new. Don't allocate the ui_out's of the interpreters here.
2292 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2294 * solib.c (solib_used): New function.
2295 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2296 by another so_list object before freeing it.
2298 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2301 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2304 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2307 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2308 (amd64_skip_xmm_prologue): ... this new function. Describe its
2309 parameters. No longer use amd64_prologue_line_bug.
2310 * defs.h (producer_is_gcc_ge_4): New declaration.
2311 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2312 (process_full_comp_unit): Update its caller. Remove
2313 amd64_prologue_line_bug initialization.
2314 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2315 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2317 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2319 * linux-nat.h (enum resume_kind): New.
2320 (struct lwp_info) <last_resume_kind>: New field.
2321 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2322 resume_stop on the new lwp.
2323 (add_lwp): Set last_resume_kind as resume_continue by default.
2324 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2325 (resume_lwp): New, factored out from resume_callback. Also check
2326 for pending status in lp->waitstatus.
2327 (resume_callback): Reimplement.
2328 (resume_clear_callback): Set last_resume_kind as resume_stop.
2329 (resume_set_callback): Set last_resume_kind as resume_continue.
2330 (linux_nat_resume, linux_handle_extended_wait): Set
2332 (running_callback): Also check lp->waitstatus for pending events.
2333 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2335 (stop_and_resume_callback): Don't re-resume if the core wanted the
2336 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2337 using an invalidated pointer.
2338 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2339 SIGSTOPs if the core wanted the LWP to stop.
2340 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2341 wanted the lwp to stop. If the core wanted the lwp to stop, and
2342 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2343 of TARGET_SIGNAL_STOP.
2344 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2345 here. Instead, signal the lwp, and set the last_resume_kind to
2348 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2350 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2351 -1 (error), if the lwp exits right after attaching.
2353 2011-09-08 Doug Evans <dje@google.com>
2355 * py-cmd.c: Some minor formatting fixes.
2356 (gdbpy_parse_command_name): Rename text arg to name, make const.
2357 All callers updated.
2358 * python-internal.h (gdbpy_parse_command_name): Update.
2360 * cli/cli-decode.c (add_cmd): Add comment.
2362 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2364 PR breakpoints/12435
2365 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2366 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2367 * dwarf2read.c (process_full_comp_unit): Initialize
2368 amd64_prologue_line_bug.
2369 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2371 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 Fix TUI screen corruption.
2374 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2377 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 * findvar.c (read_var_value): Never return NULL, throw an error
2380 instead. Update the function comment. State symbol name in the error
2382 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2384 * stack.c (print_frame_args): Likewise.
2385 * valops.c (value_of_variable): Likewise.
2387 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * stack.c (print_frame_args): New variable except. Wrap
2390 read_var_value and common_val_print into TRY_CATCH.
2392 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2395 caller to value_of_this.
2396 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2398 * valops.c (value_of_this): Remove parameter complain and variable ret.
2399 Update function comment. Never return NULL by this code.
2400 (value_of_this_silent): New function.
2401 * value.h (value_of_this): Remove parameter complain.
2402 (value_of_this_silent): New declaration.
2404 2011-09-07 Yao Qi <yao@codesourcery.com>
2406 * gdbthread.h (struct thread_info): Remove fields
2407 `stepping_through_solib_after_catch' and
2408 `stepping_through_solib_catchpoints'.
2409 * infrun.c (init_thread_stepping_state): Update.
2410 (process_event_stop_test, currently_stepping): Update.
2411 (currently_stepping_or_nexting_callback): Update.
2413 2011-09-07 Yao Qi <yao@codesourcery.com>
2415 * gdbthread.h (struct thread_info): Comment on field
2416 `step_after_step_resume_breakpoint'.
2418 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2420 * remote.c (remote_console_output): Reindent.
2422 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2424 * frame.c (has_stack_frames): Check for currently selected
2427 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2429 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2430 (set_async_annotation_level, set_async_prompt, pop_prompt)
2431 (push_prompt, new_async_prompt): Delete declarations.
2432 * top.h (get_prompt, set_prompt): Change prototype.
2433 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2435 * top.c (command_loop):
2436 (top_prompt): New global.
2437 (get_prefix, set_prefix, get_suffix, ): Delete.
2438 (get_prompt, set_prompt): Rewrite.
2439 (show_new_async_prompt): Rename to ...
2440 (show_prompt): ... this.
2441 (init_main): Adjust. Don't handle --annotate=2 here.
2442 * event-top.c (new_async_prompt): Delete.
2443 (the_prompts): Delete.
2444 (more_to_come): Make static.
2445 (display_gdb_prompt): Use top_level_prompt() to compute the top
2446 level prompt, and don't notify the before_prompt observers
2447 directly here. Always trick readline into not trying to display
2448 the prompt if sync_execution and displaying the primary prompt.
2449 If displaying a local/secondary prompt, always show it, even if
2450 sync_execution is set.
2451 (change_annotation_level): Delete.
2452 (top_level_prompt): New, based on change_annotation_level.
2453 (push_prompt, pop_prompt): Delete.
2454 (async_disable_stdin): No longer pushes prompt.
2455 (command_line_handler): No longer pushes or pops prompt. If more
2456 input is expected, call display_gdb_prompt with an explicit empty
2458 (async_stop_sig): Adjust.
2459 (set_async_annotation_level, set_async_prompt): Delete.
2460 * python/python.c (before_prompt_hook): Adjust.
2462 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2466 * infrun.c (fetch_inferior_event): Check if there's a selected
2467 thread before checking if the selected thread is executing.
2469 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2471 * inf-loop.c (execute_command): Don't check if the current thread
2472 if running before synchronously waiting for command completion.
2473 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2475 (normal_stop): Call async_enable_stdin here.
2476 * inf-loop.c (inferior_event_handler): Don't call
2477 async_enable_stdin, nor handle "set exec-done-display" here.
2479 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2483 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2485 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2487 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2489 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2491 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2493 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2495 2011-09-02 Matt Rice <ratmice@gmail.com>
2498 * event-top.c (cli_command_loop): Replace readline setup with
2499 direct call to display_gdb_prompt.
2500 (display_gdb_prompt): Do not call observer mechanism during
2501 synchronous execution.
2503 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2505 * linux-nat.c (in_pid_list_p): New.
2506 (linux_record_stopped_pid): Delete.
2507 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2508 already attached to the LWP. Return an indication if so.
2509 (linux_nat_filter_event): Adjust.
2510 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2511 returning an indication to ignore this thread.
2513 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2515 * top.c: Include interps.h.
2516 (execute_command): If the target can async, but the interpreter is
2517 in sync mode, synchronously wait for the command to finish before
2519 (execute_command_to_string): Force the interpreter to sync mode.
2520 * infrun.c: Include interps.h.
2521 (fetch_inferior_event): Don't restore the prompt yet if the
2522 interpreter is in sync mode.
2523 * interps.c (interpreter_async): New global.
2524 * interps.h (interpreter_async): Declare.
2525 * inf-loop.c: Include interps.h.
2526 (inferior_event_handler): Don't print the language change or run
2527 breakpoint commands yet if the interpreter in is sync mode.
2528 * main.c (captured_command_loop): Flip the interpreter to async
2530 * cli/cli-script.c: Include interps.h.
2531 (execute_user_command, while_command, if_command): Force the
2532 interpreter to sync mode.
2533 * python/python.c: Include interps.h.
2534 (python_command, execute_gdb_command): Force the interpreter to
2537 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2539 * value.c (show_convenience): Catch errors thrown while printing
2540 each internal variable.
2541 * infrun.c (validate_siginfo_access): New function.
2542 (siginfo_value_read, siginfo_value_write): Call it.
2544 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2547 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2548 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2551 2011-08-29 Yao Qi <yao@codesourcery.com>
2553 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2555 (enable_break2): Update caller.
2556 * solib-frv.c (bfd_lookup_symbol): Removed.
2558 (enable_break2): Update caller.
2559 * solib-pa64.c (bfd_lookup_symbol): Removed.
2561 * solib-svr4.c (bfd_lookup_symbol): Removed.
2562 (cmp_name_and_sec_flags): New.
2563 (enable_break): Update caller.
2564 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2565 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2566 (gdb_bfd_lookup_symbol): New.
2567 * solib.h: Functions declarations.
2569 2011-08-29 Yao Qi <yao@codesourcery.com>
2571 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2574 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2576 Fix TUI stepi on code without symbols.
2577 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2580 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2583 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2584 and the static keyword.
2585 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2586 Make prefix an array.
2587 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2588 * mi/mi-main.c (get_register): Remove stb initialization and the static
2591 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2593 Code cleanup - make mi_opt const.
2594 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2596 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2597 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2598 (mi_cmd_env_dir): Likewise.
2599 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2600 (mi_cmd_target_file_put): Likewise.
2601 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2602 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2603 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2604 (mi_valid_noargs): Make opts const.
2605 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2606 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2607 (mi_cmd_data_read_memory): Likewise.
2608 (mi_cmd_data_read_memory_bytes): Likewise.
2609 (mi_cmd_data_write_memory): Likewise.
2611 2011-08-26 Matt Rice <ratmice@gmail.com>
2613 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2614 bcache_xmalloc, replace bcache_xmalloc with call to
2615 psymbol_bcache_init for psymbol_cache.
2616 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2618 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2620 * inf-loop.c (inferior_event_handler): Add exception_print in
2623 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2625 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2626 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2627 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2628 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2629 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2630 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2631 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2632 * infrun.c (fetch_inferior_event): Call
2633 make_bpstat_clear_actions_cleanup.
2634 * top.c (execute_command): New variable cleanup_if_error, call
2635 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2636 * utils.c (do_bpstat_clear_actions_cleanup)
2637 (make_bpstat_clear_actions_cleanup): New functions.
2639 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2641 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2642 either the parent or the child forks. Rename a couple locals.
2644 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2646 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2647 library call. Avoid reading the `status' local if all waitpid
2650 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2652 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2653 opening /proc/PID/task always succeeds.
2655 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2657 * linespec.c (symtab_from_filename): Check for the end of string.
2659 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2662 * varobj.c (cplus_describe_child): Add the keyword
2663 'class' to the output of the method when dealing
2664 with a cast to a base class.
2666 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2668 No functionality change.
2669 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2670 function comment a reference, new variables tp and bs, move here code
2671 from throw_exception.
2672 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2673 describe it in the comment.
2674 * exceptions.c (throw_exception): Remove variable tp, move the code for
2675 bpstat_clear_actions to bpstat_clear_actions.
2677 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2679 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2680 * linux-nat.c: Include linux-procfs.h.
2681 (linux_proc_get_tgid): Move to ...
2682 * common/linux-procfs.c: ... here. New file.
2683 * common/linux-procfs.h: New file.
2684 * linux-thread-db.c: Include linux-procfs.h.
2685 * Makefile.in: Update dependencies.
2686 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2687 * config/arm/linux.mh: Likewise.
2688 * config/i386/linux.mh: Likewise.
2689 * config/i386/linux64.mh: Likewise.
2690 * config/ia64/linux.mh: Likewise.
2691 * config/m32r/linux.mh: Likewise.
2692 * config/m68k/linux.mh: Likewise.
2693 * config/mips/linux.mh: Likewise.
2694 * config/pa/linux.mh: Likewise.
2695 * config/pa/linux.mh: Likewise.
2696 * config/powerpc/linux.mh: Likewise.
2697 * config/powerpc/ppc64-linux.mh: Likewise.
2698 * config/powerpc/spu-linux.mh: Likewise.
2699 * config/sparc/linux.mh: Likewise.
2700 * config/sparc/linux64.mh: Likewise.
2701 * config/xtensa/linux.mh: Likewise.
2703 2011-08-24 Hui Zhu <teawater@gmail.com>
2705 * tracepoint.c (cond_string_is_same): New function.
2706 (find_matching_tracepoint): Add condition check
2707 by cond_string_is_same.
2709 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2711 Fix build error in Darwin port.
2712 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2714 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2717 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2718 (command_line_is_silent): New function.
2719 (bpstat_do_actions_1): No longer use commands_left, use
2720 command_line_is_silent for commands.
2721 (bpstat_alloc): Remove clearing of commands_left.
2722 (bpstat_stop_status): Remove initialization of commands_left, use
2723 command_line_is_silent.
2724 * breakpoint.h (struct bpstats): Remove commands_left.
2726 2011-08-18 Keith Seitz <keiths@redhat.com>
2729 * cp-name-parser.y (struct demangle_info): Remove unused
2732 (allocate_info): Change return type to struct demangle_info *.
2733 Always allocate a new demangle_info.
2734 Remove unused PREV pointer.
2735 (cp_new_demangle_parse_info): New function.
2736 (cp_demangled_name_parse_free): New function.
2737 (do_demangled_name_parse_free_cleanup): New function.
2738 (make_cleanup_cp_demangled_name_parse_free): New function.
2739 (cp_demangled_name_to_comp): Change return type to
2740 struct demangle_parse_info *.
2741 Allocate a new storage for each call.
2742 (main): Update usage for cp_demangled_name_to_comp
2744 * cp-support.h (struct demangle_parse_info): New structure.
2745 (cp_demangled_name_to_comp): Update API change for
2747 (cp_new_demangle_parse_info): Declare.
2748 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2749 (cp_demangled_name_parse_free): Declare.
2750 * cp-support.c (cp_canonicalize_string): Update API
2751 change for cp_demangled_name_to_comp.
2752 (mangled_name_to_comp): Likewise.
2753 Return struct demangle_parse_info, too.
2754 (cp_class_name_from_physname): Update mangled_name_to_comp
2756 (method_name_from_physname): Likewise.
2757 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2758 (cp_remove_params): Likewise.
2759 * python/py-type.c (typy_legacy_template_argument): Likewise.
2761 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2762 (cp_merge_demangle_parse_infos): Declare.
2763 * cp-support.c (ignore_typedefs): New file global.
2764 (copy_string_to_obstack): New function.
2765 (inspect_type): New function.
2766 (replace_typedefs): New function.
2767 (replace_typedefs_qualified_name): New function.
2768 (cp_canonicalize_string_no_typedefs): New function.
2769 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2770 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2771 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2772 instead of cp_canonicalize_string.
2773 (find_method): Likewise.
2774 (decode_compound): Before looking up the name, call
2775 cp_canonicalize_string_no_typedefs.
2776 (decode_variable): Likewise.
2778 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2779 Tom Tromey <tromey@redhat.com>
2780 Matt Rice <ratmice@gmail.com>
2782 * python/lib/gdb/prompt.py: New file.
2783 * python/lib/gdb/command/prompt.py: New file.
2784 * NEWS: Document set extended-prompt and gdb.prompt library
2786 2011-08-16 Yao Qi <yao@codesourcery.com>
2788 * tic6x-linux-tdep.c: Move const arrays definition from here...
2789 * tic6x-tdep.c: to here ...
2791 2011-08-14 Yao Qi <yao@codesourcery.com>
2793 * NEWS: New port to Texas Instruments TMS320C6x.
2795 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2796 Bernd Schmidt <bernds@codesourcery.com>
2797 Yao Qi <yao@codesourcery.com>
2799 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2800 * solib-dsbt.c: New file. Support DSBT shared object.
2801 * tic6x-linux-tdep.c: New file.
2802 * tic6x-tdep.c: New file.
2803 * tic6x-tdep.h: New file.
2805 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2806 Yao Qi <yao@codesourcery.com>
2808 * remote.c (PACKET_qXfer_fdpic): New enum value.
2809 (remote_protocol_features): Add qXfer:fdpic:read packet.
2810 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2811 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2812 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2814 2011-08-14 Yao Qi <yao@codesourcery.com>
2816 Target description for tic6x.
2817 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2818 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2819 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2820 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2821 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2822 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2823 * features/tic6x-c64xp-linux.xml: New.
2824 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2825 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2826 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2827 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2828 * regformats/tic6x-c64xp.dat,
2829 regformats/tic6x-c62x-linux.dat: Generated.
2830 * regformats/tic6x-c64x-linux.dat,
2831 regformats/tic6x-c64xp-linux.dat: Generated.
2832 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2833 features/tic6x-*.c files.
2834 Add regformats/tic6x-*.dat files.
2836 2011-08-12 Doug Evans <dje@google.com>
2838 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2839 * python/py-symbol.c (sympy_get_type): New function.
2840 (symbol_object_getset): Add "type".
2842 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2846 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2848 (tui_show_register_group): Don't store a byte buffer in the data
2850 (tui_register_format): Skip registers with an empty name.
2851 (tui_get_register): Store a struct value in the data element's
2852 value field instead of a byte buffer holding the raw register
2853 contents. Account for optimized-out and unavailable registers
2854 when comparing register contents.
2856 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2858 * printcmd.c (current_display_number): Update comment.
2859 (disable_current_display_cleanup): Delete.
2860 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2861 catch errors thrown while evaluating and printing the display.
2863 2011-08-09 Tom Tromey <tromey@redhat.com>
2865 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2867 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2869 * elfread.c (elf_symtab_read): Rework comments.
2870 * maint.c (maintenance_command): Ditto.
2871 * somread.c (som_symtab_read): Ditto.
2872 * solib.c (solib_find, solib_map_sections, update_solib_list)
2873 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2874 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2875 (sharedlibrary_command, no_shared_libraries): Ditto.
2876 * solib-irix.c (locate_base, disable_break, enable_break)
2877 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2878 (irix_current_sos, irix_open_symbol_file_object)
2879 (irix_special_symbol_handling): Ditto.
2880 * solib-sunos.c (locate_base, first_link_map_member)
2881 (sunos_current_sos, disable_break, enable_break)
2882 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2884 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2885 (open_symbol_file_object, svr4_current_sos, enable_break)
2886 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2888 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2889 (frv_current_sos, enable_break, frv_special_symbol_handling)
2890 (frv_solib_create_inferior_hook): Ditto.
2891 * solist.h (struct target_so_ops): Extend the comments of the
2892 special_symbol_handling, current_sos and open_symbol_file_object
2895 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2897 * python/lib/gdb/__init__.py: Auto-load files in command and
2898 function directories.
2899 * python/python.c (finish_python_initialization): Use
2901 * python/lib/gdb/command/pretty_printers.py: Self register
2903 * NEWS: Document auto-loading.
2905 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2907 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2908 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2909 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2911 2011-08-08 Tom Tromey <tromey@redhat.com>
2913 * breakpoint.c (clean_up_filters): Remove.
2914 (catch_syscall_split_args): Use VEC_cleanup.
2916 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2918 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2919 (main): Uncomment "Demangling error\n".
2921 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2923 * solib-target.c (segment_attributes): Make them static.
2924 (section_attributes, library_children, library_attributes): Likewise.
2925 (library_list_children, library_list_attributes): Likesise.
2926 (library_list_elements): Likewise.
2928 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2930 * exceptions.c (throw_exception): Don't disable the current
2932 * printcmd.c (disable_current_display_cleanup): New function.
2933 (do_one_display): Install a cleanup to disable the current display
2934 if doing the display throws.
2936 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2938 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2939 initialization of the tp_new member to the corresponding
2940 gdbpy_initialize_* function.
2941 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2942 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2943 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2944 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2945 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2947 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2949 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2950 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2951 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2952 references to current_uiout.
2954 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2956 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2957 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2958 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2959 * top.c (gdb_readline_wrapper): Adjust.
2960 * tui/tui-interp.c (tui_command_loop):
2961 (_initialize_tui_interp): Don't install it.
2963 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2965 * ui-out.h (uiout): Rename to ...
2966 (current_uiout): ... this.
2967 * ui-out.c (uiout): Rename to ...
2968 (current_uiout): ... this.
2969 * ada-lang.c (print_it_exception, print_one_exception)
2970 (print_mention_exception): Adjust.
2971 * breakpoint.c (watchpoint_check): Adjust.
2972 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2973 (default_collect_info, watchpoints_info, print_one_catch_fork)
2974 (print_one_catch_vfork, print_one_catch_syscall)
2975 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2976 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2977 (print_it_watchpoint, print_mention_watchpoint)
2978 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2979 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2980 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2981 (bkpt_print_mention, momentary_bkpt_print_it)
2982 (tracepoint_print_mention, update_static_tracepoint)
2983 (tracepoints_info, save_breakpoints): Adjust.
2984 * cli-out.c (field_separator): Adjust.
2985 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2986 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2987 * frame.c (get_current_frame): Adjust.
2988 * infcmd.c (run_command_1, print_return_value): Adjust.
2989 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2990 * infrun.c (print_end_stepping_range_reason): Adjust.
2991 (print_signal_exited_reason, print_exited_reason): Adjust.
2992 (print_signal_received_reason, print_no_history_reason): Adjust.
2993 * interps.c (interp_set): Adjust.
2994 * osdata.c (info_osdata_command): Adjust.
2995 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2996 * remote-fileio.c (remote_fileio_request): Adjust.
2997 * remote.c (show_remote_cmd): Adjust.
2998 * solib.c (info_sharedlibrary_command): Adjust.
2999 * source.c (print_source_lines_base): Adjust.
3000 * stack.c (print_stack_frame): Adjust.
3001 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3002 * symfile-mem.c (add_vsyscall_page): Adjust.
3003 * symfile.c (load_progress, generic_load)
3004 (print_transfer_performance): Adjust.
3005 * thread.c (info_threads_command, restore_selected_frame)
3006 (thread_command): Adjust.
3007 * top.c (make_cleanup_restore_ui_file): Adjust.
3008 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3009 (print_one_static_tracepoint_marker): Adjust.
3010 * cli/cli-cmds.c (print_disassembly): Adjust.
3011 * cli/cli-decode.c (print_doc_line): Adjust.
3012 * cli/cli-interp.c (safe_execute_command): Adjust.
3013 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3014 (handle_redirections): Adjust.
3015 * cli/cli-script.c (show_user_1): Adjust.
3016 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3017 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3018 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3019 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3020 (mi_cmd_env_dir): Adjust.
3021 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3022 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3023 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3024 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3025 (list_args_or_locals): Adjust.
3026 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3027 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3028 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3029 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3030 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3031 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3032 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3033 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3034 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3035 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3036 (list_available_thread_groups, mi_cmd_list_thread_groups)
3037 (mi_cmd_data_list_register_names)
3038 (mi_cmd_data_list_changed_registers)
3039 (mi_cmd_data_list_register_values, get_register)
3040 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3041 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3042 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3043 (mi_execute_command, mi_load_progress): Adjust.
3044 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3045 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3047 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3048 * tui/tui-interp.c (tui_command_loop): Adjust.
3049 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3051 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3053 * exceptions.c (struct catcher): Remove saved_uiout field.
3054 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3055 no longer save/resvore the global ui_out builder.
3056 (catch_exceptions_with_msg): Save/override/restore the global
3057 ui_out builder manually instead of relying on TRY_CATCH to do it.
3058 (catch_errors): Save/restore the global ui_out builder manually
3059 instead of relying on TRY_CATCH to do it.
3060 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3062 (TRY_CATCH): Adjust.
3063 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3064 the global ui_out builder manually instead of relying on TRY_CATCH
3067 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3069 * breakpoint.c (update_global_location_list): Ensure
3070 invariant 'first loc marked not duplicated and inserted,
3071 following locs marked duplicated/not inserted' is respected
3072 for multiple locations at the same address.
3073 (unduplicated_should_be_inserted) New function.
3074 (swap_insertion) New function.
3076 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3078 * stack.c (print_frame_arguments_choices): Comment typo fix.
3080 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3083 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3084 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3085 argument. Update callers.
3087 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3090 * doublest.c (convert_doublest_to_floatformat): Pass correct
3091 mantissa length to put_field.
3093 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3095 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3096 exception_print code path.
3097 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3098 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3099 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3101 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3105 Remove, merge them into ...
3106 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3107 variable args and its initialization.
3108 (struct print_args_args, print_args_stub): Remove, merge them into
3110 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3112 (do_gdb_disassembly): ... here. Remove variable args and its
3114 (print_frame): Remove variable args and its initialization, new
3115 variable gdbarch and numargs (from print_args_stub), inline here
3116 print_args_stub with a TRY_CATCH.
3117 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3119 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3120 New variable e, remove variable btargs and its initialization.
3122 2011-08-01 Tristan Gingold <gingold@adacore.com>
3124 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3126 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3128 * breakpoint.c (insert_bp_location): Document return value.
3129 (insert_breakpoint_locations): Fix documentation.
3130 (remove_breakpoints): Add documentation.
3132 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3134 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3135 argument. Update callers.
3137 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3139 * stack.c (print_frame_info): Comment typo fix.
3141 2011-07-29 Sterling Augustine <saugustine@google.com>
3143 * MAINTAINERS (Write After Approval): Add myself to the list.
3145 2011-07-29 Tom Tromey <tromey@redhat.com>
3147 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3148 (library_list_start_segment): Update.
3149 (library_list_start_section): Update.
3151 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3153 * varobj.c (value_get_print_value): Move hint check later into the
3154 function. Comment function. Free thevalue before reusing it.
3156 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3157 Pedro Alves <pedro@codesourcery.com>
3159 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3161 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3162 Assert the result kind.
3163 * value.h (value_one): Remove parameter lv.
3165 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3167 Fix crash on lval_computed values.
3168 * valops.c (value_zero): Use not_lval for lval_computed.
3170 2011-07-27 Tom Tromey <tromey@redhat.com>
3172 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3173 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3175 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3177 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3178 "ptype" by their typedefs difference.
3180 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3182 * dwarf2expr.c (ctx_no_read_reg): New function.
3183 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3184 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3185 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3186 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3188 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3190 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3191 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3193 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3194 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3195 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3196 (ctx_no_get_base_type): Move the functions here.
3197 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3198 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3199 (ctx_no_get_base_type): New declarations.
3201 2011-07-27 Tom Tromey <tromey@redhat.com>
3203 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3205 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3206 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3208 2011-07-26 Sterling Augustine <saugustine@google.com>
3210 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3212 (dump_bfd_file): Likewise.
3214 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3216 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3217 (remote_hw_watchpoint_length_limit): New variable.
3218 (_initialize_remote) add set,show cmds for this new variable.
3219 * gdb.texinfo: document these new commands.
3220 * NEWS: Mention these new commands.
3222 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3224 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3225 true for software watchpoints.
3227 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3231 2011-07-26 Tom Tromey <tromey@redhat.com>
3233 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3234 * dwarf2read.c (read_indirect_string_at_offset): New function.
3235 (read_indirect_string): Use it.
3236 (dwarf_decode_macro_bytes): New function, taken from
3237 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3238 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3239 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3241 (struct dwarf2_per_objfile) <macro>: New field.
3242 (dwarf2_elf_names): Add .debug_macro.
3243 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3244 (dwarf2_locate_sections): Handle new section.
3245 (read_file_scope): Handle DW_AT_GNU_macros.
3246 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3248 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3250 * NEWS: Mention dcache configuration.
3251 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3252 (dcache_size, dcache_line_size): New variables.
3253 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3254 (struct dcache_block): Make it expandable.
3255 (struct dcache_struct): New field.
3256 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3257 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3258 (dcache_poke_byte, dcache_print_line): Adjust.
3259 (set_dcache_size, set_dcache_line_size): New functions.
3260 (set_dcache_command, show_dcache_command): New functions.
3261 (_initialize_dcache): Add new commands.
3263 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3265 * progspace.h (struct program_space): Add solib_add_generation.
3266 * infcmd.c (post_create_inferior): Only call solib_add if not
3268 * solib.c (solib_add): Increment solib_add_generation.
3270 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3272 Fix implicit pointer offsets.
3273 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3276 2011-07-25 Tom Tromey <tromey@redhat.com>
3278 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3280 (ada_exception_sal): Make 'ops' const.
3281 (ada_decode_exception_location): Likewise.
3282 (ada_decode_assert_location): Likewise.
3283 (catch_assert_command): Update.
3284 (catch_ada_exception_command): Update.
3285 (create_ada_exception_catchpoint): Make 'ops' const.
3286 * breakpoint.c (set_raw_breakpoint_without_location)
3287 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3289 (create_internal_breakpoint): Update.
3290 (init_raw_breakpoint_without_location): Make 'ops' const.
3291 (init_raw_breakpoint, init_catchpoint)
3292 (create_fork_vfork_event_catchpoint)
3293 (create_syscall_event_catchpoint, init_breakpoint_sal)
3294 (create_breakpoint_sal, create_breakpoints_sal)
3295 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3296 * breakpoint.h (struct breakpoint) <ops>: Now const.
3297 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3300 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3302 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3304 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3306 * breakpoint.h (print_recreate_thread): Declare.
3307 (struct breakpoint): Move step_count, pass_count,
3308 number_on_target, static_trace_marker_id,
3309 static_trace_marker_id_idx ...
3310 (struct tracepoint): ... to this new struct.
3311 (get_tracepoint, get_tracepoint_by_number_on_target)
3312 (get_tracepoint_by_number): Change return type to struct
3314 * breakpoint.c (is_tracepoint_type): New, factored out from
3316 (is_tracepoint): Adjust.
3317 (print_one_breakpoint_location): Cast to struct tracepoint as
3318 necessary, and adjust.
3319 (print_recreate_catch_fork, print_recreate_catch_vfork)
3320 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3321 print_recreate_thread.
3322 (init_breakpoint_sal): New, factored out from
3323 create_breakpoint_sal.
3324 (create_breakpoint_sal): Reimplement.
3325 (create_breakpoint): Allocate a struct tracecepoint if the caller
3326 wanted a tracepoint. Use init_breakpoint_sal and
3328 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3329 (print_recreate_masked_watchpoint)
3330 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3331 (tracepoint_print_one_detail): Adjust.
3332 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3333 Dump the pass count here.
3334 (update_static_tracepoint): Adjust.
3335 (addr_string_to_sals): Adjust.
3336 (create_tracepoint_from_upload): Adjust. Change return type to
3337 struct tracepoint pointer.
3338 (trace_pass_set_count): Change parameter type to struct tracepoint
3339 pointer, and adjust.
3340 (trace_pass_command): Adjust.
3341 (get_tracepoint, get_tracepoint_by_number_on_target)
3342 (get_tracepoint_by_number): Change return type to struct
3343 tracepoint pointer, and adjust.
3344 (print_recreate_thread): New, factored out from save_breakpoints.
3345 (save_breakpoints): Don't print thread and task and passcount
3347 * remote.c (remote_download_tracepoint): Adjust.
3348 * tracepoint.c (trace_actions_command, validate_actionline)
3349 (start_tracing, tfind_1, trace_find_tracepoint_command)
3350 (trace_dump_command): Adjust.
3351 (find_matching_tracepoint): Change return type to struct
3352 tracepoint pointer, and adjust.
3353 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3354 (tfile_trace_find, tfile_fetch_registers): Adjust.
3355 * tracepoint.h (create_tracepoint_from_upload): Change return type
3356 to struct tracepoint pointer.
3357 * ada-lang.c (print_recreate_exception): Call
3358 print_recreate_thread.
3359 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3361 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3363 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3364 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3365 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3366 watchpoint_thread, watchpoint_triggered ...
3367 (struct watchpoint): ... to this new struct.
3368 (is_watchpoint): Declare.
3369 (install_breakpoint): Add new `internal' parameter.
3370 * breakpoint.c (is_watchpoint): Delete declaration.
3371 (set_breakpoint_condition): Handle watchpoints.
3372 (is_watchpoint): Make public.
3373 (watchpoint_in_thread_scope): Change parameter type to struct
3375 (watchpoint_del_at_next_stop): Change parameter type to struct
3376 watchpoint. Remove assertion. Adjust.
3377 (update_watchpoint): Ditto.
3378 (insert_breakpoints, breakpoint_init_inferior)
3379 (watchpoints_triggered, watchpoint_check)
3380 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3381 (bpstat_stop_status, print_one_breakpoint_location)
3382 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3383 to struct watchpoint as necessary, and adjust.
3384 (install_breakpoint): Add `internal' argument. If true, don't
3385 mention the new breakpoint. Use set_breakpoint_number.
3386 (create_fork_vfork_event_catchpoint)
3387 (create_syscall_event_catchpoint): Adjust.
3388 (dtor_watchpoint): New.
3389 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3390 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3391 (print_it_watchpoint, print_mention_watchpoint)
3392 (print_recreate_watchpoint, insert_masked_watchpoint)
3393 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3394 (print_one_detail_masked_watchpoint)
3395 (print_mention_masked_watchpoint)
3396 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3397 necessary, and adjust.
3398 (watch_command_1): Allocate and initialize a struct watchpoint
3399 instead of a struct breakpoint. Use install_breakpoint.
3400 (catch_exec_command_1): Adjust.
3401 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3403 (delete_breakpoint, enable_breakpoint_disp)
3404 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3405 as necessary, and adjust.
3406 (initialize_breakpoint_ops): Install dtor_watchpoint as
3407 watchpoints' dtor method.
3408 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3409 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3410 to struct watchpoint as necessary, and adjust.
3412 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3414 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3415 the the base class ops table.
3416 (catch_exception_breakpoint_ops)
3417 (catch_exception_unhandled_breakpoint_ops)
3418 (catch_assert_breakpoint_ops): Don't statically initialize.
3419 (initialize_ada_catchpoint_ops): New.
3420 (_initialize_ada_language): Call it.
3421 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3422 (bkpt_breakpoint_ops): Forward declare.
3423 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3424 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3425 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3426 (masked_watchpoint_breakpoint_ops)
3427 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3428 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3429 base class ops table.
3430 (null_re_set, null_check_status, null_works_in_software_mode)
3431 (null_resources_needed, null_print_one_detail): Delete.
3432 (bkpt_dtor): Rename to ...
3433 (base_breakpoint_dtor): ... this. Make static.
3434 (bkpt_allocate_location): Rename to ...
3435 (base_breakpoint_allocate_location): ... this. Make static.
3436 (base_breakpoint_re_set): New.
3437 (internal_error_pure_virtual_called): New.
3438 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3439 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3440 (base_breakpoint_works_in_software_mode)
3441 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3442 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3443 (base_breakpoint_print_recreate): New functions.
3444 (base_breakpoint_ops): New global.
3445 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3446 (bkpt_breakpoint_hit): Make static.
3447 (bkpt_check_status): Delete.
3448 (bkpt_resources_needed): Make static.
3449 (bkpt_works_in_software_mode): Delete.
3450 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3452 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3453 (momentary_breakpoint_ops): Don't statically initialize.
3454 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3456 (tracepoint_insert_location, tracepoint_remove_location)
3457 (tracepoint_check_status, tracepoint_works_in_software_mode)
3458 (tracepoint_print_it): Delete.
3459 (tracepoint_breakpoint_ops): Don't statically initialize.
3460 (initialize_breakpoint_ops): New.
3461 (_initialize_breakpoint): Call it.
3462 * breakpoint.h (null_re_set, null_works_in_software_mode)
3463 (null_resources_needed, null_check_status, null_print_one_detail):
3464 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3465 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3466 (bkpt_check_status, bkpt_resources_needed)
3467 (bkpt_works_in_software_mode, bkpt_print_it)
3468 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3469 Delete declarations.
3470 (initialize_breakpoint_ops): Declare.
3472 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3474 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3475 (momentary_bkpt_print_it): Simplify.
3477 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3479 Split internal, momentary and user breakpoints breakpoint_ops
3482 * breakpoint.c (internal_breakpoint_ops)
3483 (momentary_breakpoint_ops): Forward declare.
3484 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3485 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3486 (create_overlay_event_breakpoint)
3487 (create_std_terminate_master_breakpoint)
3488 (create_exception_master_breakpoint): Create breakpoints with
3489 internal_breakpoint_ops vtable.
3490 (set_longjmp_breakpoint): Create momentary breakpoints with
3491 momentary_breakpoint_ops vtable, using
3492 momentary_breakpoint_from_master.
3493 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3494 (create_solib_event_breakpoint): Create breakpoints with
3495 internal_breakpoint_ops vtable.
3496 (set_momentary_breakpoint): Create breakpoints with
3497 momentary_breakpoint_ops vtable.
3498 (momentary_breakpoint_from_master): New, factored out from
3499 clone_momentary_breakpoint.
3500 (clone_momentary_breakpoint): Adjust.
3501 (watch_command_1): Create scope breakpoints with
3502 momentary_breakpoint_ops vtable.
3503 (bkpt_re_set): Remove handling of internal and momentary
3505 (bkpt_print_mention, bkpt_print_recreate): New.
3506 (bkpt_breakpoint_ops): Adjust.
3507 (internal_bkpt_re_set, internal_bkpt_check_status)
3508 (internal_bkpt_print_it, internal_bkpt_print_mention)
3509 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3510 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3511 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3512 (momentary_bkpt_print_recreate): New.
3513 (momentary_breakpoint_ops): New.
3515 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3517 Implement most breakpoint_ops methods for all breakpoint types,
3518 and move the default handlings to the proper callbacks.
3520 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3521 works_in_software_mode method.
3522 (insert_bp_location): Go through breakpoint_ops->insert_location
3523 for software and hardware watchpoints.
3524 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3526 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3527 for software and hardware watchpoints.
3528 (print_it_typical): Delete.
3529 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3531 (watchpoint_check): Adjust comment.
3532 (bpstat_check_location): Simply always call the breakpoint's
3533 breakpoint_hit method.
3534 (bpstat_stop_status): Always call the breakpoint's check_status
3535 method. Remove special cases for watchpoints and internal event
3536 breakpoints from here (moved to the check_status implementations).
3537 (print_one_breakpoint_location): Assume b->ops is never NULL.
3538 Remove static tracepoint marker id printing from here (moved to
3539 the print_one_detail callback implementation of tracepoints).
3540 (init_bp_location): Assert OPS is never NULL.
3541 (allocate_bp_location): Always call the breakpoint's
3542 allocate_location method, and remove the default code from here.
3543 (free_bp_location): Always call the location's dtor method, and
3544 remove the default code from here.
3545 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3546 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3547 parameter. Pass it down.
3548 (set_raw_breakpoint): Ditto.
3549 (print_it_catch_fork): Adjust to take a bpstat as argument.
3550 (catch_fork_breakpoint_ops): Install methods.
3551 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3552 (catch_vfork_breakpoint_ops): Install methods.
3553 (dtor_catch_syscall): Call the base dtor.
3554 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3555 (catch_syscall_breakpoint_ops): Install methods.
3556 (dtor_catch_exec): Call the base dtor.
3557 (print_it_catch_exec): Adjust to take a bpstat as argument.
3558 (catch_exec_breakpoint_ops): Install methods.
3559 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3560 the breakpoint's resources_needed method, and remove the default
3562 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3564 (clone_momentary_breakpoint): Clone the original's ops.
3565 (mention): Always call the breakpoint's print_mention method, and
3566 remove the default code from here.
3567 (create_breakpoint_sal): Adjust to pass the ops to
3568 set_raw_breakpoint rather than setting it manually.
3569 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3570 ops to set_raw_breakpoint_without_location rather than setting it
3572 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3573 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3574 (ranged_breakpoint_ops): Install methods.
3575 (break_range_command): Adjust to pass the ops to
3576 set_raw_breakpoint rather than setting it manually.
3577 (re_set_watchpoint, breakpoint_hit_watchpoint)
3578 (check_status_watchpoint, resources_needed_watchpoint)
3579 (works_in_software_mode_watchpoint, print_it_watchpoint)
3580 (print_mention_watchpoint, print_recreate_watchpoint): New
3582 (watchpoint_breakpoint_ops): Install new methods.
3583 (print_it_masked_watchpoint): New function.
3584 (masked_watchpoint_breakpoint_ops): Install new methods.
3585 (watch_command_1): Adjust to pass the right breakpoint_ops to
3586 set_raw_breakpoint_without_location rather than setting it
3587 manually later. Record the current pspace.
3588 (print_it_exception_catchpoint): Adjust to take a bpstat as
3590 (gnu_v3_exception_catchpoint_ops): Install new methods.
3591 (say_where): New function.
3592 (null_re_set, null_check_status, null_works_in_software_mode)
3593 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3595 (bp_location_ops): New global.
3596 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3597 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3598 (bkpt_check_status, bkpt_resources_needed)
3599 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3600 (bkpt_print_recreate): New functions.
3601 (bkpt_breakpoint_ops): New global.
3602 (tracepoint_re_set, tracepoint_insert_location)
3603 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3604 (tracepoint_check_status, tracepoint_works_in_software_mode)
3605 (tracepoint_print_it, tracepoint_print_one_detail)
3606 (tracepoint_print_mention, tracepoint_print_recreate): New
3608 (tracepoint_breakpoint_ops): New global.
3609 (delete_breakpoint): Always call the breakpoint's dtor method, and
3610 remove the default handling from here.
3611 (breakpoint_re_set_default): Make static.
3612 (breakpoint_re_set_one): Always call the breakpoints re_set
3613 method, and remove the default handling from here.
3614 (trace_command, ftrace_command, strace_command)
3615 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3616 to create_breakpoint.
3617 (save_breakpoints): Always call the breakpoint's print_recreate
3618 method, and remove the default handling from here.
3620 * ada-lang.c (dtor_exception): Call the base dtor.
3621 (re_set_exception): Call the base method.
3622 (print_it_exception, print_it_catch_exception): Adjust to take a
3624 (catch_exception_breakpoint_ops): Install methods.
3625 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3627 (catch_exception_unhandled_breakpoint_ops): Install methods.
3628 (print_it_catch_assert): Adjust to take a bpstat as argument.
3629 (catch_assert_breakpoint_ops): Install methods.
3631 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3632 to take a bpstat as argument.
3633 (enum print_stop_action): Add describing comments to each enum
3635 (breakpoint_re_set_default): Delete declaration.
3636 (null_re_set, null_works_in_software_mode, null_resources_needed)
3637 (null_check_status, null_print_one_detail): Declare.
3638 (bkpt_breakpoint_ops): Declare.
3639 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3640 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3641 (bkpt_check_status, bkpt_resources_needed)
3642 (bkpt_works_in_software_mode, bkpt_print_it)
3643 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3646 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3647 bkpt_breakpoint_ops.
3648 * python/py-breakpoint.c (bppy_init): Ditto.
3650 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3652 * MAINTAINERS (Write After Approval): Add myself to the list.
3654 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3656 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3658 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3660 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3661 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3662 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3664 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3665 (struct i386_debug_reg_state): New.
3666 (i386_init_dregs): New.
3668 (i386_cleanup_dregs): Use i386_init_dregs.
3669 (i386_show_dr): Add state parameter and adjust.
3670 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3672 (i386_remove_aligned_watchpoint): Likewise.
3673 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3674 (i386_update_inferior_debug_regs): New.
3675 (i386_insert_watchpoint): Work on a local mirror of the debug
3676 registers, and only update the inferior on success.
3677 (i386_remove_watchpoint): Ditto.
3678 (i386_region_ok_for_watchpoint): Adjust.
3679 (i386_stopped_data_address): Adjust.
3680 (i386_insert_hw_breakpoint): Adjust.
3681 (i386_remove_hw_breakpoint): Adjust.
3683 2011-07-22 Tom Tromey <tromey@redhat.com>
3685 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3686 from amd64_pseudo_register_read. Change arguments. Call
3687 mark_value_bytes_unavailable when needed.
3688 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3689 set_gdbarch_pseudo_register_read.
3690 * sentinel-frame.c (sentinel_frame_prev_register): Use
3691 regcache_cooked_read_value.
3692 * regcache.h (regcache_cooked_read_value): Declare.
3693 * regcache.c (regcache_cooked_read_value): New function.
3694 (regcache_cooked_read): Call
3695 gdbarch_pseudo_register_read_value if available.
3696 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3697 (i386_pseudo_register_read): Remove.
3698 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3699 i386_pseudo_register_read. Change arguments. Call
3700 mark_value_bytes_unavailable when needed.
3701 (i386_pseudo_register_read_value): New function.
3702 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3703 not set_gdbarch_pseudo_register_read.
3704 * gdbarch.sh (pseudo_register_read_value): New method.
3705 * gdbarch.c, gdbarch.h: Rebuild.
3706 * findvar.c (value_from_register): Call get_frame_register_value.
3708 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3710 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3712 (display_gdb_prompt): Likewise.
3713 (change_annotation_level): Likewise.
3714 (push_prompt): Likewise.
3715 (pop_prompt): Likewise.
3716 (handle_stop_sig): Use get_prompt with a level.
3717 * top.c (command_loop): Use get_prompt with a level.
3718 (set_async_annotation_level): Use set_prompt with a level.
3719 (get_prefix): New function.
3720 (set_prefix): Ditto.
3721 (set_suffix): Ditto.
3722 (get_suffix): Ditto.
3723 (get_prompt): Accept a level argument.
3724 (set_prompt): Accept a level argument. Free old prompts. Set
3725 new_async_prompt if level is 0.
3726 (init_main): Use set_prompt with a level. Do not set
3728 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3729 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3730 Modify set_prompt, get_prompt to account for levels.
3731 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3733 * python/python.c (before_prompt_hook): Use set_prompt.
3735 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3737 * defs.h: Add guard against inclusion in gdbserver.
3738 (struct ptid, ptid_t): Move to common/ptid.h.
3739 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3740 xsnprintf, internal_error): Move to common/common-utils.h.
3742 * gdb_assert.h: Move into common/ sub-directory.
3743 * gdb_locale.h: Ditto.
3744 * gdb_dirent.h: Ditto.
3745 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3746 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3747 Move into common/ptid.h.
3748 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3749 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3750 Change nomem to malloc_failure.
3751 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3752 * utils.c (nomem): Rename to malloc_failure.
3753 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3754 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3755 (gdb_buildargv): Change nomem to malloc_failure.
3756 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3757 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3758 ptid_is_pid): Move into common/ptid.c.
3759 (initialize_infrun): Delete initialization of null_ptid and
3761 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3762 linux_common_xfer_osdata.
3763 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3764 common/ptid.c and common/buffer.c.
3765 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3766 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3767 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3768 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3770 * common/gdb_assert.h: New.
3771 * common/gdb_dirent.h: New.
3772 * common/gdb_locale.h: New.
3773 * common/buffer.c: New.
3774 * common/buffer.h: New.
3775 * common/ptid.c: New.
3776 * common/ptid.h: New.
3777 * common/xml-utils.c: New.
3778 * common/xml-utils.h: New.
3779 * common/common-utils.c: New.
3780 * common/common-utils.h: New.
3781 * common/linux-osdata.c: New.
3782 * common/linux-osdata.h: New.
3783 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3784 * config/arm/linux.mh (NATDEPFILES): Ditto.
3785 * config/i386/linux.mh (NATDEPFILES): Ditto.
3786 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3787 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3788 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3789 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3790 * config/mips/linux.mh (NATDEPFILES): Ditto.
3791 * config/pa/linux.mh (NATDEPFILES): Ditto.
3792 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3793 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3794 * config/s390/s390.mh (NATDEPFILES): Ditto.
3795 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3796 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3797 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3799 2011-07-21 Matt Rice <ratmice@gmail.com>
3801 * NEWS: Add info macros and info definitions commands.
3803 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3805 * NEWS: Document Python prompt substitution hook.
3807 2011-07-18 Matt Rice <ratmice@gmail.com>
3810 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3811 * macrotab.c (foreach_macro): Ditto.
3812 (foreach_macro_in_scope): Ditto.
3813 * macrocmd.c (print_macro_callback): New function.
3814 (info_macro_command): Move some code to print_macro_definition.
3815 (print_macro_definition): New function.
3816 (print_one_macro): Add new arguments to callback.
3817 (info_definitions_command): New function.
3818 (info_macros_command): Ditto.
3819 (_initialize_macrocmd): Add info macros and info definitions commands.
3820 * symtab.c (add_macro_name): Add new arguments to callback.
3822 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3823 Tom Tromey <tromey@redhat.com>
3825 * top.c (set_prompt): Rewrite to free previous prompt, free
3826 asynch_new_prompt and set both on new prompts.
3827 * event-top.c (display_gdb_prompt): Add prompt substitution
3829 * python/python.c (before_prompt_hook): New function.
3831 2011-07-20 Matt Rice <ratmice@gmail.com>
3833 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3834 arguments to store_unsigned_integer.
3836 2011-07-20 Tom Tromey <tromey@redhat.com>
3838 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3839 in some declaration-only cases.
3841 2011-07-18 Tom Tromey <tromey@redhat.com>
3844 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3845 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3846 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3847 <debug_type_section>: New field.
3848 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3849 (load_cu): Use appropriate section.
3850 (create_signatured_type_table_from_index): Add 'section'
3852 (dwarf2_read_index): Only allow a single .debug_types section.
3853 (dw2_get_file_names): Use appropriate section.
3854 (read_type_comp_unit_head): Add 'section' argument.
3855 (create_debug_types_hash_table): Loop over all .debug_types
3857 (init_cu_die_reader): Use appropriate section.
3858 (process_psymtab_comp_unit, load_partial_comp_unit)
3859 (load_full_comp_unit, read_die_and_children, find_partial_die)
3860 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3861 (lookup_signatured_type_at_offset): Add 'section' argument.
3862 (read_signatured_type_at_offset): Add 'sect' argument.
3863 (read_signatured_type): Use appropriate section.
3864 (set_die_type, get_die_type_at_offset): Update.
3865 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3867 (write_psymtabs_to_index): Don't allow index with more than one
3868 .debug_types section.
3870 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3872 Fix crash if referenced CU is aged out.
3873 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3874 xfree of block.data.
3875 (indirect_pieced_value): New variable back_to, use to for xfree of
3877 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3879 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3880 (load_cu): New function from ...
3881 (dw2_do_instantiate_symtab): ... the code here ...
3882 (process_full_comp_unit): ... and here.
3883 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3886 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3888 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3891 2011-07-19 Gary Benson <gbenson@redhat.com>
3893 * infrun.c (struct execution_control_state): New member
3894 stop_func_filled_in.
3895 (clear_stop_func, fill_in_stop_func): New functions.
3896 (handle_inferior_event): Call clear_stop_func rather than
3897 manipulating the execution control state directly.
3898 Call fill_in_stop_func lazily as required rather than
3899 directly calling find_pc_partial_function in all cases.
3901 2011-07-18 Tom Tromey <tromey@redhat.com>
3903 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3904 checking for variable-sized array.
3906 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3908 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3909 of supported languages.
3910 * varobj.c: Add top definitions and basic implementation of the
3911 following callbacks: ada_number_of_children, ada_name_of_variable,
3912 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3913 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3914 (languages): Register Ada-specific callbacks.
3915 (variable_language): Add the Ada case in the language setter switch.
3917 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3919 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3921 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3924 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3925 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3926 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3927 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3928 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3929 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3930 (struct dwarf_expr_context_funcs): New, move here methods from ...
3931 (struct dwarf_expr_context): ... here. New fields funcs.
3932 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3933 (dwarf_expr_ctx_funcs): New.
3934 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3935 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3936 (needs_frame_ctx_funcs): New.
3937 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3939 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3941 * MAINTAINERS (Write After Approval): Add myself to the list.
3943 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3945 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3946 that CIE pointer of an FDE really points to a CIE .
3948 2011-07-15 Hui Zhu <teawater@gmail.com>
3950 * remote.c (remote_get_trace_status): Add comments.
3952 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3954 Code cleanup - constify struct lval_funcs.
3955 * dwarf2loc.c (pieced_value_funcs): Make it const.
3956 * infrun.c (siginfo_value_funcs): Likewise.
3957 * opencl-lang.c (opencl_value_funcs): Likewise.
3958 * valops.c (value_assign, value_ind): Make the funcs variable const.
3959 * value.c (struct value): Make location.computed.funcs target const.
3960 Rearrange the comments.
3961 (allocate_computed_value): Make the funcs parameter target const.
3962 (value_computed_funcs): Return the funcs target const.
3963 (value_free, value_copy, set_value_component_location): Make the funcs
3965 * value.h (allocate_computed_value): Make the funcs parameter target
3967 (value_computed_funcs): Return the funcs target const.
3968 * windows-tdep.c (tlb_value_funcs): Make it const.
3970 2011-07-14 Hui Zhu <teawater@gmail.com>
3972 * remote.c (remote_get_trace_status): Initialize p.
3974 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3977 * remote.c (remote_get_trace_status): New variable ex. Put
3978 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3980 2011-07-13 Tom Tromey <tromey@redhat.com>
3982 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3983 value_from_contents for final conversion.
3985 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3989 Indent prototypes so they do not get into tags.
3991 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3993 Code cleanup making also optimized out values lazy.
3994 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3995 allocate_optimized_out_value. Twice.
3996 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3997 * findvar.c (read_var_value): Likewise.
3998 * value.c (allocate_optimized_out_value): New function.
3999 * value.h (allocate_optimized_out_value): New declaration.
4001 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4003 Fix occasional crash of CTRL-C during DWARF read in.
4004 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4006 2011-07-11 Tom Tromey <tromey@redhat.com>
4008 * regcache.c (struct regcache_descr): Fix typo.
4009 * i387-tdep.c (i387_supply_xsave): Fix typo.
4011 2011-07-11 Tom Tromey <tromey@redhat.com>
4013 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4014 (read_file_scope, read_type_unit_scope): Use it.
4016 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4018 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4021 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4024 * python/python.c: Set gdbpy_should_print_stack default to off.
4025 (set_python): Deprecate maint set python print-stack to
4027 (_initialize_python): Deprecate maint set/show python print-stack.
4028 Add new prefix command, python. Add new setting, print-backtrace.
4029 * NEWS: Document set python print-stack. Document default change.
4031 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4033 * python/py-inferior.c (infpy_dealloc): New function.
4034 (inferior_to_inferior_object): Return a new object, or a
4035 new reference to the existing object.
4036 (find_thread_object): Cleanup references to inferior.
4037 (delete_thread_object): Ditto.
4038 * python/py-infthread.c (create_thread_object): Do not increment
4039 inferior reference count.
4041 2011-07-08 Tom Tromey <tromey@redhat.com>
4043 * dwarf2loc.c (locexpr_regname): New function.
4044 (locexpr_describe_location_piece): Use it.
4045 (disassemble_dwarf_expression): Add per_cu argument. Use
4047 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4048 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4050 (locexpr_describe_location_1): Add per_cu argument.
4051 (locexpr_describe_location): Update.
4052 (loclist_describe_location): Update.
4054 2011-07-08 Tom Tromey <tromey@redhat.com>
4056 * dwarf2expr.c (execute_stack_op): Add QUIT.
4058 2011-07-07 Hui Zhu <teawater@gmail.com>
4061 2011-07-06 Hui Zhu <teawater@gmail.com>
4062 * remote.c (remote_start_remote): Add TRY_CATCH for
4063 remote_get_trace_status.
4064 * tracepoint.c (disconnect_tracing): Ditto.
4066 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4068 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4069 variables as signed, not unsigned.
4071 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4073 * jit.c (jit_inferior_init): Reformat forward declaration.
4075 2011-07-06 Matt Rice <ratmice@gmail.com>
4077 * MAINTAINERS (Write After Approval): Add myself to the list.
4079 2011-07-06 Hui Zhu <teawater@gmail.com>
4081 * remote.c (remote_start_remote): Add TRY_CATCH for
4082 remote_get_trace_status.
4083 * tracepoint.c (disconnect_tracing): Ditto.
4085 2011-07-05 Tom Tromey <tromey@redhat.com>
4087 * symtab.c (operator_chars): Now static.
4088 * linespec.c (operator_chars): Don't declare.
4090 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4092 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4094 2011-07-05 Tom Tromey <tromey@redhat.com>
4096 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4097 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4098 (TYPE_CPLUS_REALLY_JAVA): New macro.
4099 * dwarf2read.c (process_structure_scope): Set
4100 TYPE_CPLUS_REALLY_JAVA.
4102 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4104 * ada-lang.c: Fix typos.
4105 * amd64-tdep.c: Likewise.
4106 * breakpoint.c: Likewise.
4107 * cli/cli-decode.c: Likewise.
4108 * findcmd.c: Likewise.
4109 * inline-frame.c: Likewise.
4110 * mi/mi-main.c: Likewise.
4111 * minsyms.c: Likewise.
4112 * monitor.c: Likewise.
4113 * monitor.h: Likewise.
4114 * prologue-value.c: Likewise.
4115 * reverse.c: Likewise.
4116 * s390-tdep.c: Likewise.
4118 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4120 * jit.c (jit_inferior_init): Forward declare.
4121 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4123 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4125 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4127 2011-07-04 Tristan Gingold <gingold@adacore.com>
4129 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4130 (tcb_fieldno): Add activation_link field.
4131 (get_known_tasks_addr): Moved and rewritten.
4132 (get_tcb_types_info): Set activation_link field.
4133 (read_known_tasks_array): Add parameter. Rewritten.
4134 (read_known_tasks_list): New function.
4135 (read_known_tasks): New function.
4136 (ada_build_task_list): Call read_known_tasks instead of
4137 read_known_tasks_array.
4138 * ravenscar-thread.c: Add first_task_name constant.
4139 (has_ravenscar_runtime): Check for task list too.
4141 2011-07-04 Tristan Gingold <gingold@adacore.com>
4143 * ada-tasks.c: Renames fieldno to actb_fieldno.
4144 (ada_get_task_number): Indentation.
4145 (get_tcb_types_info): Remove all parameters. Write directly
4147 (ptid_from_atcb_common): Adjust.
4148 (read_atcb): Adjust.
4150 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4152 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4154 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4156 * ui-out.c (ui_out_field_core_addr): Mention that the function
4157 description is in the header file.
4158 * ui-out.h (ui_out_field_core_addr): Document function.
4160 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4162 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4163 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4165 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4167 * symtab.c (expand_line_sal): Remove empty line.
4169 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4171 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4172 same way as ELFOSABI_NONE.
4173 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4175 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4177 * breakpoint.c: Fix typos in comments.
4178 * linespec.c: Likewise.
4179 * symtab.c: Likewise.
4181 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4183 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4184 section in separate object files.
4186 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4188 Fix false GCC warning.
4189 * linespec.c (decode_line_1): Initialize values.
4191 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 * linespec.c (find_method): Accept the function type automatically only
4194 if it was specified with parameter types.
4196 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4198 Stop on first linespec terminator instead of eating what we can.
4199 * linespec.c (is_linespec_boundary): New function.
4200 (name_end): Remove function.
4201 (keep_name_info): New parameter on_boundary, replace the body.
4202 (decode_line_1): Provide the parameter to keep_name_info.
4203 (decode_compound): Likewise. Drop the trailing java return type
4206 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4208 Fall back linespec to minimal symbols.
4209 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4210 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4211 (find_method, symbol_found): Change error to cplusplus_error.
4213 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4217 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4218 Tom Tromey <tromey@redhat.com>
4220 * dwarf2read.c (check_physname): New variable.
4221 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4222 (show_check_physname): New function.
4223 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4225 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4227 * machoread.c (macho_symfile_read): Delete OBE comment.
4229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4231 * machoread.c (struct macho_oso_data): Delete.
4232 (current_oso): Delete.
4233 (macho_relocate_common_syms): New function, mostly extracted
4235 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4236 Remove code that sets and unset current_oso.
4237 (macho_symfile_relocate): Delete handling of common symbols,
4238 now moved to macho_relocate_common_syms.
4240 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4242 * darwin-nat.c (darwin_ptrace): Add documentation.
4243 Set errno to zero before calling ptrace. If ptrace returns
4244 -1 and errno is zero, then change then return zero.
4245 (darwin_kill_inferior): Issue a warning instead of triggering
4246 a failed assertion when the PT_KILL ptrace operations returned
4249 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4251 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4252 only when inf->private->no_ptrace.
4254 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4256 * ada-lang.c (print_it_exception): Print temporary catchpoints
4257 as "Temporary catchpoint".
4258 (print_mention_exception): Likewise.
4260 2011-07-01 Tom Tromey <tromey@redhat.com>
4262 * jv-lang.c (java_language_defn): Use java_printchar,
4264 (java_get_encoding): New function.
4265 (java_emit_char): Use generic_emit_char.
4266 (java_printchar): New function.
4267 (java_printstr): Likewise.
4269 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4271 * ada-typeprint.c (print_record_type): If unable to decode
4272 the name of the parent type, use the encoded name.
4274 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4276 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4277 pointer to constrained packed array type output.
4278 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4279 packed array output.
4281 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4283 * ada-typeprint.c (print_array_type): removed if condition on show
4284 being negative for bounds printing.
4286 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4288 * ada-lang.c (ada_identical_enum_types_p): New function.
4289 (symbols_are_identical_enums): New function.
4290 (remove_extra_symbols): Do nothing if NSYMS < 2.
4291 Use symbols_are_identical_enums.
4293 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4295 * ada-valprint.c (ada_value_print): Handle typedefs.
4297 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4299 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4301 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4303 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4304 (decode_constrained_packed_array): Likewise.
4305 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4307 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4309 * ada-exp.y (convert_char_literal): Handle typedef types.
4311 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4313 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4315 2011-06-30 Tom Tromey <tromey@redhat.com>
4317 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4318 * valops.c (find_overload_match): Call do_cleanups on early exit
4320 * solib.c (solib_find): Call do_cleanups on early exit path.
4322 2011-06-30 Tom Tromey <tromey@redhat.com>
4324 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4325 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4326 return paths. Defer final do_cleanups until last return.
4327 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4330 2011-06-30 Tom Tromey <tromey@redhat.com>
4332 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4334 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4336 * MAINTAINERS (Write After Approval): Add myself to the list.
4338 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4340 Disable epilogue unwinders on recent GCCs.
4341 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4342 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4343 * dwarf2read.c (process_full_comp_unit): Initialize
4344 EPILOGUE_UNWIND_VALID.
4345 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4346 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4347 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4349 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4351 Code cleanup - reformatting.
4352 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4353 (producer_is_gcc_ge_4): ... here, change the return value.
4354 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4357 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 Fix non-only rename list for Fortran modules import.
4360 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4361 cp_add_using_directive caller.
4362 (cp_add_using_directive): New parameter excludes, describe it. New
4363 variables ix and param. Compare if also excludes match. Allocate NEW
4364 with variable size, initialize EXCLUDES there.
4365 (cp_lookup_symbol_imports): New variable excludep, test
4366 current->EXCLUDES with it.
4367 * cp-support.h: Include vec.h.
4368 (struct using_direct): New field excludes, describe it.
4369 (DEF_VEC_P (const_char_ptr)): New.
4370 (cp_add_using_directive): New parameter excludes.
4371 * defs.h (const_char_ptr): New typedef.
4372 * dwarf2read.c (read_import_statement): New variables child_die,
4373 excludes and cleanups, read in excludes.
4374 (read_namespace): Adjust the cp_add_using_directive caller.
4376 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4379 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4380 negative comparisons.
4382 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4384 * mi/mi-main.c (mi_cmd_list_features): Emit
4385 breakpoint-notifications.
4387 2011-06-29 Tom Tromey <tromey@redhat.com>
4390 * valprint.h (generic_emit_char, generic_printstr): Declare.
4391 * valprint.c (wchar_printable, append_string_as_wide)
4392 (print_wchar): Move from c-lang.c.
4393 (generic_emit_char): New function; mostly taken from c_emit_char.
4394 (generic_printstr): New function; mostly taken from c_printstr.
4395 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4396 represented as arrays.
4397 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4399 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4400 identically to TYPE_CODE_INT.
4401 * f-lang.c (f_get_encoding): New function.
4402 (f_emit_char): Use generic_emit_char.
4403 (f_printchar): Replace comment.
4404 (f_printstr): Use generic_printstr.
4405 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4406 "character" types specially.
4407 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4409 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4411 (c_emit_char): Call generic_emit_char.
4412 (c_printstr): Call generic_printstr.
4414 2011-06-29 Gary Benson <gbenson@redhat.com>
4416 * breakpoint.c (bpstat_what): Removed duplicated case.
4418 2011-06-28 Tom Tromey <tromey@redhat.com>
4420 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4422 2011-06-27 Tom Tromey <tromey@redhat.com>
4424 * valops.c (find_overload_match): Call do_cleanups before early
4426 * top.c (execute_command): Call do_cleanups before early return.
4427 (command_loop): Likewise.
4428 * stack.c (backtrace_command): Make a null cleanup early. Don't
4429 conditionally call do_cleanups.
4430 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4432 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4433 so cleanups are always run.
4434 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4435 * findcmd.c (parse_find_args): Call do_cleanups on early return
4437 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4438 Don't conditionally call do_cleanups.
4439 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4442 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4444 * MAINTAINERS (Write After Approval): Use default email address.
4446 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4448 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4450 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4452 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4453 saved_regs_mask and copied_regs_mask fields.
4454 (sparc_record_save_insn): New prototype.
4455 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4456 (sparc_record_save_insn): New function.
4457 (sparc_analyze_prologue): Add head comment. Recognize store insns
4458 of call-saved registers. Use OFFSET consistently. Recognize flat
4459 frames and cache their settings.
4460 (sparc32_skip_prologue): Handle flat frames.
4461 (sparc_frame_cache): Add frame_offset to the base address.
4462 (sparc32_frame_cache): Adjust to new frame description.
4463 (sparc32_frame_prev_register): Likewise.
4464 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4465 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4466 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4467 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4468 frame by calling sparc_record_save_insn.
4469 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4470 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4471 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4473 2011-06-27 Tristan Gingold <gingold@adacore.com>
4475 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4476 field by map_addr and map_len.
4477 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4478 (munmap_section_buffer): Likewise.
4480 2011-06-24 Tom Tromey <tromey@redhat.com>
4482 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4483 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4484 * python/python.c (gdbpy_parameter): Make 'arg' const.
4485 (execute_gdb_command): Likewise.
4486 (gdbpy_decode_line): Likewise. Copy it.
4487 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4488 (gdbpy_write): Make 'arg' const.
4489 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4491 (gdbpy_lookup_type): Likewise.
4492 * python/py-prettyprint.c (print_children): Make 'name' const.
4493 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4494 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4496 * python/py-function.c (fnpy_init): Make 'name' const.
4497 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4498 (gdbpy_string_to_argv): Make 'input' const.
4499 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4501 * gdbtypes.h (lookup_typename): Update.
4502 * gdbtypes.c (lookup_typename): Make 'name' const.
4503 (lookup_struct): Likewise.
4504 (lookup_union): Likewise.
4505 (lookup_enum): Likewise.
4507 2011-06-24 Tom Tromey <tromey@redhat.com>
4509 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4510 gdb_thread_db.h. Move all common/ entries to be together.
4511 (TAGS): Don't depend on DEPFILES.
4513 2011-06-23 Yao Qi <yao@codesourcery.com>
4515 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4516 * remote.c (remote_start_remote): ... here.
4517 * monitor.c (monitor_open): ... here.
4519 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4521 * gdbtypes.c (append_composite_type_field_aligned): Fix
4522 calculation of bit position based on alignment.
4524 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4526 * breakpoint.c (bpstat_stop_status): Call the check_status
4527 breakpoint_ops method.
4528 (print_one_breakpoint_location): Also print the condition for Ada
4529 exception catchpoints.
4530 (allocate_bp_location): New, factored out from
4531 allocate_bp_location.
4532 (allocate_bp_location): Adjust. Call the owner breakpoint's
4533 allocate_location method, if there is one.
4534 (free_bp_location): Call the locations's dtor method, if there is
4536 (init_raw_breakpoint_without_location): New breakpoint_ops
4538 (set_raw_breakpoint_without_location): Adjust.
4539 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4540 (set_raw_breakpoint): Adjust.
4541 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4542 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4543 re_set and check_status methods.
4544 (init_catchpoint): Don't memset, initialize thread, addr_string
4545 and enable_state. Pass the ops down to init_raw_breakpoint.
4546 (install_catchpoint): Rename to ...
4547 (install_breakpoint): ... this, and make extern.
4548 (create_fork_vfork_event_catchpoint): Adjust.
4549 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4550 re_set and check_status methods.
4551 (create_syscall_event_catchpoint): Adjust.
4552 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4553 (masked_watchpoint_breakpoint_ops): Install NULL
4554 allocate_location, re_set and check_status methods.
4555 (catch_exec_command_1): Adjust.
4556 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4557 re_set and check_status methods.
4558 (create_ada_exception_breakpoint): Rename to ...
4559 (init_ada_exception_breakpoint): ... this. Add a struct
4560 breakpoint parameter, and delete the exp_string, cond_string and
4561 cond parameters. Use init_raw_breakpoint, and don't install or
4562 mention the breakpoint yet. Don't clear breakpoint fields that
4563 init_raw_breakpoint already clears.
4564 (re_set_breakpoint): Delete, split into ...
4565 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4567 (breakpoint_re_set_one): Call the breakpoint's
4568 breakpoint_ops->re_set implementation, if there's one. Adjust.
4569 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4570 (struct bp_location_ops): New type.
4571 (struct bp_location): New field `ops'.
4572 (struct breakpoint_ops): New `allocate_location', `re_set' and
4573 `check_status' fields. Make `breakpoint_hit''s description match
4575 (init_bp_location): Declare.
4576 (breakpoint_re_set_default): Declare.
4577 (create_ada_exception_breakpoint): Rename to ...
4578 (init_ada_exception_breakpoint): ... this. Add a struct
4579 breakpoint parameter, and delete the exp_string, cond_string and
4581 (install_breakpoint): Declare.
4582 * ada-lang.c: Include exceptions.h.
4583 <Ada exceptions description>: Update.
4584 (struct ada_catchpoint_location): New type.
4585 (ada_catchpoint_location_dtor): New function.
4586 (ada_catchpoint_location_ops): New global.
4587 (ada_catchpoint): New type.
4588 (create_excep_cond_exprs): New function.
4589 (dtor_exception, allocate_location_exception, re_set_exception)
4590 (should_stop_exception, check_status_exception): New functions.
4591 (print_one_exception, print_mention_exception)
4592 (print_recreate_exception): Adjust.
4593 (dtor_catch_exception, allocate_location_catch_exception)
4594 (re_set_catch_exception, check_status_catch_exception): New
4596 (catch_exception_breakpoint_ops): Install them.
4597 (dtor_catch_exception_unhandled)
4598 (allocate_location_catch_exception_unhandled)
4599 (re_set_catch_exception_unhandled)
4600 (check_status_catch_exception_unhandled): New functions.
4601 (catch_exception_unhandled_breakpoint_ops): Install them.
4602 (dtor_catch_assert, allocate_location_catch_assert)
4603 (re_set_catch_assert, check_status_catch_assert): New functions.
4604 (catch_assert_breakpoint_ops): Install them.
4605 (ada_exception_catchpoint_p): Delete.
4606 (catch_ada_exception_command_split)
4607 (ada_exception_catchpoint_cond_string): Rename exp_string
4608 parameter to excep_string. Adjust.
4609 (ada_parse_catchpoint_condition): Delete.
4610 (ada_exception_sal): Rename the exp_string parameter to
4611 excep_string. Delete the cond_string and cond parameters.
4613 (ada_decode_exception_location): Rename the exp_string parameter
4614 to excep_string. Delete the cond_string and cond parameters.
4616 (create_ada_exception_catchpoint): New function.
4617 (catch_ada_exception_command, ada_decode_assert_location)
4618 (catch_assert_command): Adjust.
4619 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4621 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4623 * ada-lang.c: Include arch-utils.h.
4624 (ada_decode_exception_location): Make static.
4625 (catch_ada_exception_command): Moved here from breakpoint.c.
4626 (ada_decode_assert_location): Make static.
4627 (catch_assert_command): Moved here from breakpoint.c.
4628 (_initialize_ada_lang): Install the exception and assert
4629 catchpoint commands here.
4630 * ada-lang.h (ada_decode_exception_location)
4631 (ada_decode_assert_location): Delete declarations.
4632 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4634 (create_ada_exception_breakpoint): Make extern.
4635 (catch_ada_exception_command, catch_assert_command): Moved to
4637 (add_catch_command): Make extern.
4638 (_initilize_breakpoint): Don't install the exception and assert
4639 catchpoint commands here.
4640 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4642 (add_catch_command, create_ada_exception_breakpoint): Declare.
4644 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4646 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4647 the breakpoint to the breakpoint chain here.
4648 (set_raw_breakpoint_without_location): Add the breakpoint to the
4649 breakpoint chain here.
4650 (init_raw_breakpoint): Adjust comments.
4651 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4653 (init_catchpoint): Don't set the catchpoint's breakpoint number
4655 (install_catchpoint): New function.
4656 (create_fork_vfork_event_catchpoint)
4657 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4658 use install_catchpoint.
4660 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4662 * breakpoint.c (create_catchpoint_without_mention)
4663 (create_catchpoint): Delete.
4665 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4667 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4668 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4669 reference to exec_pathname.
4670 (struct exec_catchpoint): New type.
4671 (dtor_catch_exec): New function.
4672 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4673 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4674 (catch_exec_command_1): Adjust to use init_catchpoint.
4675 (delete_breakpoint): Remove reference to exec_pathname.
4677 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4679 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4680 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4681 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4682 reference to syscalls_to_be_caught.
4683 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4685 (struct syscall_catchpoint): New type.
4686 (dtor_catch_syscall): New function.
4687 (insert_catch_syscall, remove_catch_syscall)
4688 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4689 (print_recreate_catch_syscall): Adjust.
4690 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4691 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4692 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4693 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4694 (masked_watchpoint_breakpoint_ops)
4695 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4696 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4697 there is one. Remove references to syscalls_to_be_caught.
4698 (catching_syscall_number): Adjust.
4699 * ada-lang.c (catch_exception_breakpoint_ops)
4700 (catch_exception_unhandled_breakpoint_ops)
4701 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4703 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4705 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4707 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4708 reference to forked_inferior_pid.
4709 (struct fork_catchpoint): New type.
4710 (breakpoint_hit_catch_fork, print_it_catch_fork)
4711 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4712 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4713 (create_fork_vfork_event_catchpoint): Adjust to use
4716 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4718 * breakpoint.c (add_to_breakpoint_chain)
4719 (init_raw_breakpoint_without_location): New functions, factored
4721 (set_raw_breakpoint_without_location): ... this one.
4722 (init_raw_breakpoint): New function, factored out from
4723 set_raw_breakpoint and adjusted to use
4724 init_raw_breakpoint_without_location.
4725 (set_raw_breakpoint): Adjust.
4726 (init_catchpoint): New function, factored out from
4727 create_catchpoint_without_mention and adjusted to use
4728 init_raw_breakpoint.
4729 (create_catchpoint_without_mention): Adjust.
4731 2011-06-22 Tom Tromey <tromey@redhat.com>
4733 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4734 argument of 0 specially.
4736 2011-06-22 Yao Qi <yao@codesourcery.com>
4738 * infrun.c (handle_inferior_event): Remove write-only local variable
4739 `sw_single_step_trap_p'.
4741 2011-06-20 Tom Tromey <tromey@redhat.com>
4743 * symtab.c (lookup_language_this): End loop if block is NULL.
4745 2011-06-17 Tom Tromey <tromey@redhat.com>
4747 * valops.c (value_of_this): Use lookup_language_this.
4748 * symtab.h (lookup_language_this): Declare.
4749 * symtab.c (lookup_language_this): New function.
4750 (lookup_symbol_aux): Use lookup_language_this.
4751 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4753 2011-06-17 Tom Tromey <tromey@redhat.com>
4755 * value.h (value_of_this): Update.
4756 (value_of_local): Remove.
4757 * valops.c (value_of_this): Rename from value_of_local. Change
4759 * p-exp.y (exp): Update.
4760 (variable): Likewise.
4761 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4763 2011-06-17 Tom Tromey <tromey@redhat.com>
4765 * valops.c (value_of_local): Complain if NAME is NULL.
4766 * std-operator.def (OP_OBJC_SELF): Remove.
4767 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4768 * objc-exp.y (name_not_typename): Use OP_THIS.
4769 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4771 <OP_OBJC_SELF>: Remove.
4772 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4774 2011-06-16 Tristan Gingold <gingold@adacore.com>
4776 * python/py-events.h (gdb_py_events): Make it extern.
4777 * python/py-evtregistry.c (gdb_py_events): Declare.
4779 2011-06-16 Hui Zhu <teawater@gmail.com>
4781 * remote.c (remote_trace_set_readonly_regions): Add check for
4782 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4785 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4787 * arm-linux-tdep.c: Include "auxv.h".
4789 (ARM_LINUX_SIZEOF_VFP): Define.
4790 (arm_linux_supply_vfp): New function.
4791 (arm_linux_collect_vfp): Likewise.
4792 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4793 (arm_linux_fpa_regset_sections): New variable.
4794 (arm_linux_vfp_regset_sections): Likewise.
4795 (arm_linux_core_read_description): New function.
4796 (arm_linux_init_abi): Install arm_linux_core_read_description and
4797 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4798 appropriate for the architecture.
4799 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4800 (tdesc_arm_with_m): Declare.
4801 (tdesc_arm_with_iwmmxt): Likewise.
4802 (tdesc_arm_with_vfpv2): Likewise.
4803 (tdesc_arm_with_vfpv3): Likewise.
4804 (tdesc_arm_with_neon): Likewise.
4805 * arm-linux-nat.c: Move features/*.c includes ...
4806 * arm-tdep.c: ... here.
4807 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4808 target description data structures ...
4809 * arm-tdep.c (_initialize_arm_tdep): ... here.
4810 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4811 HWCAP_VFPv3D16): Move definitions ...
4812 * arm-linux-tdep.h: ... here.
4814 2011-06-15 Hui Zhu <teawater@gmail.com>
4816 * remote.c (remote_trace_set_readonly_regions): Add a check for
4819 2011-06-14 Tom Tromey <tromey@redhat.com>
4821 * coffread.c (coffread_objfile): Rename from current_objfile.
4822 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4823 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4825 2011-06-14 Tom Tromey <tromey@redhat.com>
4827 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4828 (class_symtab): Remove.
4829 (jv_dynamics_progspace_key): New global.
4830 (jv_per_objfile_free): Reset program space data. Update assert.
4831 Don't clear globals.
4832 (get_dynamics_objfile): Use and set program space data.
4833 (get_java_class_symtab): Use get_dynamics_objfile.
4834 (add_class_symbol): Likewise.
4835 (java_link_class_type): Likewise.
4836 (java_object_type, jv_clear_object_type, set_java_object_type):
4838 (get_java_object_type): Update. Don't cache result.
4839 (is_object_type): Don't call set_java_object_type.
4840 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4841 initialize jv_dynamics_progspace_key.
4843 2011-06-14 Tom Tromey <tromey@redhat.com>
4845 * symtab.h (current_objfile): Don't declare.
4846 * objfiles.h (current_objfile): Don't declare.
4847 * objfiles.c (current_objfile): Remove.
4848 * mdebugread.c (current_objfile): New file-scope global.
4849 * dbxread.c (current_objfile): New file-scope global.
4850 * coffread.c (current_objfile): New file-scope global.
4852 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4854 * top.h (line): Rename to ...
4855 (saved_command_line): ... this.
4856 (linesize): Rename to ...
4857 (saved_command_line_size): ... this.
4858 * top.c (line): Rename to ...
4859 (saved_command_line): ... this.
4860 (linesize): Rename to ...
4861 (saved_command_line_size): ... this.
4862 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4863 * event-top.c (command_line_handler): Adjust.
4864 * main.c (captured_main): Adjust.
4866 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4868 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4869 get_frame_func instead of get_frame_pc to determine the code
4870 address used to construct the frame ID.
4871 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4872 (i386_epilogue_frame_this_id): Likewise.
4873 (i386_epilogue_frame_prev_register): New function.
4874 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4875 (i386_stack_tramp_frame_sniffer): Fix coding style.
4876 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4877 (i386_gdbarch_init): Fix comments.
4879 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4881 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4882 instruction when walking back through the instruction stream.
4884 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4886 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4887 fullname parameters order.
4889 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4892 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4894 * psymtab.c (map_symbol_filenames_psymtab)
4895 (map_partial_symbol_filenames): Likewise.
4896 * psymtab.h: Include symfile.h.
4897 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4898 * symfile.h (symbol_filename_ftype): New.
4899 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4900 map_symbol_filenames, clarify more the naming in comment.
4902 2011-06-07 Doug Evans <dje@google.com>
4904 * cc-with-index.sh: Fix typos in comment.
4905 Look for ../../gdb, for fullname.exp.
4907 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4908 Pedro Alves <pedro@codesourcery.com>
4910 * cli/cli-cmds.c (shell_escape): Use waitpid.
4911 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4913 2011-06-07 Tristan Gingold <gingold@adacore.com>
4915 * xcoffread.c (dwarf2_xcoff_names): New variable.
4916 (aix_process_linenos): Add a guard.
4917 (xcoff_symfile_finish): Free dwarf2.
4918 (xcoff_initial_scan): Add dwarf2 support.
4920 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4922 * infcall.c (run_inferior_call): Don't mask async. Instead force
4923 a synchronous wait, if the target can async.
4925 * target.h (struct target_ops): Delete to_async_mask.
4926 (target_async_mask): Delete.
4927 * target.c (update_current_target): Delete references to to_async_mask.
4928 * linux-nat.c (linux_nat_async_mask_value): Delete.
4929 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4930 to linux_nat_async_mask_value.
4931 (linux_nat_async_mask): Delete.
4932 (linux_nat_async, linux_nat_close): Remove references to
4933 linux_nat_async_mask_value.
4934 * record.c (record_async_mask_value): Delete.
4935 (record_async): Remove references to record_async_mask_value.
4936 (record_async_mask): Delete.
4937 (record_can_async_p, record_is_async_p): Remove references to
4938 record_async_mask_value.
4939 (init_record_ops, init_record_core_ops): Remove references to
4941 * remote.c (remote_async_mask_value): Delete.
4942 (init_remote_ops): Remove reference to remote_async_mask.
4943 (remote_can_async_p, remote_is_async_p): Remove references to
4944 remote_async_mask_value.
4945 (remote_async): Remove references to remote_async_mask_value.
4946 (remote_async_mask): Delete.
4948 * infrun.c (fetch_inferior_event): Don't claim registers changed
4949 if the current thread is already not executing.
4951 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4953 From Stephen Kitt <steve@sk2.org>
4954 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4955 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4957 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4959 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4960 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4962 2011-06-03 Tom Tromey <tromey@redhat.com>
4964 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4966 * python/py-exitedevent.c (create_exited_event_object): Change
4967 type of 'exit_code'. Optionally add exit_code attribute.
4968 (emit_exited_event): Change type of 'exit_code'.
4969 * python/py-event.h (emit_exited_event): Update.
4970 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4971 * infrun.c (handle_inferior_event): Set exit code fields on
4973 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4975 * inferior.c (exit_inferior_1): Initialize new fields.
4977 2011-06-03 Tom Tromey <tromey@redhat.com>
4979 * dwarf2expr.c (get_signed_type): New function.
4980 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4982 2011-06-02 Keith Seitz <keiths@redhat.com>
4984 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4986 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4988 * top.h (simplified_command_loop): Delete declaration.
4990 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4992 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4993 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4995 2011-06-01 Yao Qi <yao@codesourcery.com>
4997 * objfiles.h (obj_section_addr): Update reference to objfile from
4999 (obj_section_endaddr): Likewise.
5001 2011-06-01 Daniel Jacobowitz <drow@false.org>
5003 * MAINTAINERS: Update my email address and affiliation. Also
5004 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5006 2010-05-31 Keith Seitz <keiths@redhat.com>
5009 * linespec.c (get_search_block): New function.
5010 (find_methods): Add FILE_SYMTATB parameter and use it and
5011 get_search_block to pass an appropriate block to
5012 lookup_symbol_in_namespace.
5013 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5014 Check if *ARGPTR starts with a filename first.
5015 If it does, call locate_first_half again to locate the next
5016 "first half" of the linespec.
5017 Pass FILE_SYMTATB to decode_objc and decode_compound.
5018 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5019 (locate_first_half): Stop on the first colon seen.
5020 (decode_compound): Add FILE_SYMTAB parameter.
5021 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5022 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5023 get_search_block with lookup_symbol.
5024 (find_method): Add FILE_SYMTAB parameter and pass it to
5026 (decode_objc): Use get_search_block.
5028 2010-05-31 Keith Seitz <keiths@redhat.com>
5031 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5032 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5033 and CP_ANONYMOUS_NAMESPACE_LEN.
5034 (cp_is_anonymous): Likewise.
5035 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5036 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5037 * dwarf2read.c (namespace_name): Likewise.
5038 (fixup_partial_die): Likewise.
5039 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5040 seen in the input, keep it.
5042 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5044 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5045 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5046 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5047 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5048 * remote.c (_initialize_remote): Register
5049 async_remote_interrupt_twice directly as
5050 sigint_remote_twice_token event.
5052 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5054 * target.h (enum inferior_event_type): Delete INF_ERROR.
5055 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5057 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5059 * interps.c (interp_set): Don't cancel continuations.
5061 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5063 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5065 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5067 * continuations.h (continuation_ftype): Add `err' parameter.
5068 Document parameters.
5069 (do_all_continuations, do_all_continuations_thread)
5070 (do_all_intermediate_continuations)
5071 (do_all_intermediate_continuations_thread)
5072 (do_all_inferior_continuations): Add `err' parameter.
5073 * continuations.c (do_my_continuations_1, do_my_continuations)
5074 (do_all_inferior_continuations, do_all_continuations_ptid)
5075 (do_all_continuations_thread_callback)
5076 (do_all_continuations_thread, do_all_continuations)
5077 (do_all_intermediate_continuations_thread_callback)
5078 (do_all_intermediate_continuations_thread)
5079 (do_all_intermediate_continuations): Add `err' parameter, and pass
5080 it down all the way to the continuations proper.
5081 * inf-loop.c (inferior_event_handler): If fetching an inferior
5082 event throws an error, don't pop the target, and still call the
5083 continuations, but with `err' set. Adjust all other continuation
5085 * breakpoint.c (until_break_command_continuation): Add `err'
5087 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5088 issue another step if `err' is set.
5089 (struct until_next_continuation_args): New.
5090 (until_next_continuation): Add `err' parameter. Adjust.
5091 (until_next_command): Adjust.
5092 (struct finish_command_continuation_args): Add `thread' field.
5093 (finish_command_continuation): Add `err' parameter. Handle it.
5094 (finish_forward): Adjust.
5095 (attach_command_continuation): Add `err' parameter. Handle it.
5096 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5097 cancel the continuations.
5098 * interps.c (interp_set): Adjust to cancel the continuations.
5099 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5100 continuations rather than discarding.
5101 (free_thread): Don't clear thread inferior resources here.
5102 (delete_thread_1): Do it here instead. And do it before removing
5103 the thread from the threads list. Tag the thread as exited before
5104 clearing thread inferior resources.
5106 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5108 * infcall.c (call_function_by_hand): Rephrase error message.
5110 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5112 * defs.h (struct thread_info, struct inferior): Delete forward
5114 * breakpoint.h (struct thread_info): New forward declaration.
5115 * observer.sh (struct inferior): New forward declaration.
5116 * python/python-internal.h (struct inferior): New forward
5119 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5121 * defs.h (struct continuation, continuation_ftype)
5122 (continuation_free_arg_ftype, add_continuation)
5123 (do_all_continuations, do_all_continuations_thread)
5124 (discard_all_continuations, discard_all_continuations_thread)
5125 (add_intermediate_continuation, do_all_intermediate_continuations)
5126 (do_all_intermediate_continuations_thread)
5127 (discard_all_intermediate_continuations)
5128 (discard_all_intermediate_continuations_thread)
5129 (add_inferior_continuation, do_all_inferior_continuations)
5130 (discard_all_inferior_continuations): Move to ...
5131 * continuations.h: ... this new file.
5132 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5133 infcmd.c, inferior.c, infrun.c, interps.c: Include
5136 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5137 Doug Evans <dje@google.com>
5139 Fix PR 10970, PR 12702.
5140 * linux-nat.c (linux_lwp_is_zombie): New function.
5141 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5142 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5144 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5146 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5148 (add_continuation, add_intermediate_continuation)
5149 (add_inferior_continuation): Use them.
5150 * continuations.c (struct continuation): Use them.
5151 (make_continuation_ftype): Delete.
5152 (make_continuation, add_inferior_continuation, add_continuation)
5153 (add_intermediate_continuation): Use continuation_ftype and
5154 continuation_free_arg_ftype. Rename parameters to shorter names.
5156 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5158 * continuations.c (make_continuation): Make it return void.
5159 (do_my_continuations): Rename to ...
5160 (do_my_continuations_1): ... this. Remove old_chain parameter and
5162 (do_my_continuations): New.
5163 (discard_my_continuations): Rename to ...
5164 (discard_my_continuations_1): ... this. Remove old_chain
5165 parameter and adjust.
5166 (discard_my_continuations): New.
5167 (add_inferior_continuation): Simplify.
5168 (do_all_inferior_continuations): Reimplement on top
5169 do_my_continuations.
5170 (discard_all_inferior_continuations): Simplify.
5171 (add_continuation): Simplify.
5172 (do_all_continuations_ptid): Simplify.
5173 (discard_all_continuations_thread_callback): Simplify.
5174 (add_intermediate_continuation): Simplify.
5175 (discard_all_intermediate_continuations_thread_callback):
5178 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5180 * utils.c (struct continuation, add_continuation)
5181 (add_inferior_continuation)
5182 (do_all_inferior_continuations, discard_all_inferior_continuations)
5183 (restore_thread_cleanup, do_all_continuations_ptid)
5184 (do_all_continuations_thread_callback)
5185 (do_all_continuations_thread, do_all_continuations)
5186 (discard_all_continuations_thread_callback)
5187 (discard_all_continuations_thread, discard_all_continuations)
5188 (add_intermediate_continuation)
5189 (do_all_intermediate_continuations_thread_callback)
5190 (do_all_intermediate_continuations_thread)
5191 (do_all_intermediate_continuations)
5192 (discard_all_intermediate_continuations_thread_callback)
5193 (discard_all_intermediate_continuations_thread)
5194 (discard_all_intermediate_continuations): Move to ...
5195 * continuations.c: ... this new file, and adjust to no longer
5196 implement continuations on top of cleanups.
5197 * Makefile.in (SFILES): Add continuations.c.
5198 (COMMON_OBS): Add continuations.o.
5200 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5202 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5203 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5204 Internal error on invalid values.
5205 * reverse.c: Don't handle EXEC_ERROR.
5206 * mi/mi-main.c: Don't handle EXEC_ERROR.
5208 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5210 * record.c: Include event-loop.h, inf-loop.h.
5211 (record_beneath_to_async): New global.
5212 (tmp_to_async): New global.
5213 (record_async_inferior_event_token): New global.
5214 (record_open_1): Don't error out if async is enabled.
5215 (record_open): Handle to_async. Create an async event source in
5217 (record_close): Delete the async event source.
5218 (record_resumed): New global.
5219 (record_execution_dir): New global.
5220 (record_resume, record_core_resume): Set them. Register the
5221 target on the event loop.
5222 (record_wait): Rename to ...
5223 (record_wait_1): ... this. Add more debug output. Handle
5224 TARGET_WNOHANG, and the target beneath returning
5225 TARGET_WAITKIND_IGNORE.
5226 (record_wait): Reimplement on top of record_wait_1.
5227 (record_async_mask_value): New global.
5228 (record_async, record_async_mask, record_can_async_p)
5229 (record_is_async_p, record_execution_direction): New functions.
5230 (init_record_ops, init_record_core_ops): Install new methods.
5231 * infrun.c (fetch_inferior_event): Temporarily switch the global
5232 execution direction to the direction the target was going.
5233 (execution_direction): Change type to int.
5234 * target.c (default_execution_direction): New function.
5235 (update_current_target): Inherit and de_fault
5236 to_execution_direction.
5237 * target.h (struct target_ops) <to_execution_direction>: New
5239 (target_execution_direction): New macro.
5240 * inferior.h (execution_direction): Change type to int.
5242 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5244 * infcall.c (call_function_by_hand): Don't allow calling functions
5245 in reverse execution mode.
5247 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5249 * infcmd.c (finish_command): Allow async finish in reverse.
5251 2011-05-26 Yao Qi <yao@codesourcery.com>
5253 * gdb_thread_db.h: Delete. Move to ...
5254 * common/gdb_thread_db.h: ... here.
5256 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5258 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5259 function's entry point instead of a manually managed momentary
5260 breakpoint, and only ever issue one proceed call.
5261 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5262 doing a reverse-finish, switch to stepi mode, to do another step.
5263 (insert_step_resume_breakpoint_at_sal): Make public.
5264 (normal_stop): No need to save function value return registers if
5266 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5268 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5270 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5271 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5272 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5274 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5275 step-resume breakpoints.
5276 (print_it_typical): Handle bp_hp_step_resume.
5277 (bpstat_what): Ditto.
5278 (bptype_string): Ditto.
5279 (print_one_breakpoint_location): Ditto.
5280 (allocate_bp_location): Ditto.
5282 (breakpoint_re_set_one): Ditto.
5283 * infrun.c (handle_inferior_event): Adjust. Split
5284 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5285 BPSTAT_WHAT_HP_STEP_RESUME.
5286 (insert_step_resume_breakpoint_at_sal): Rename to ...
5287 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5288 parameter. Handle it.
5289 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5290 insert_step_resume_breakpoint_at_sal_1.
5291 (insert_step_resume_breakpoint_at_frame): Rename to ...
5292 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5293 set a high-priority step-resume breakpoint.
5294 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5295 (insert_step_resume_breakpoint_at_caller): Ditto.
5297 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5299 * breakpoint.c (iterate_over_related_breakpoints): New.
5300 (do_map_delete_breakpoint): New.
5301 (delete_command): Pass do_map_delete_breakpoint to
5302 map_breakpoint_numbers.
5303 (do_disable_breakpoint): New.
5304 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5306 (do_enable_breakpoint): Rename to ...
5307 (enable_breakpoint_disp): ... this.
5308 (enable_breakpoint): Adjust.
5309 (do_enable_breakpoint): New.
5310 (enable_once_breakpoint): Delete.
5311 (do_map_enable_breakpoint): New.
5312 (do_map_enable_once_breakpoint): New.
5313 (enable_once_command, enable_delete_command)
5314 (delete_trace_command): Iterate over the breakpoint's related
5317 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5319 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5320 for ALPHA_ZERO_REGNUM.
5321 (alpha_supply_int_regs): Explicitly supply zero as the value for
5322 ALPHA_ZERO_REGNUM in the register cache.
5323 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5325 2011-05-26 Yao Qi <yao@codesourcery.com>
5327 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5329 2011-05-26 Tristan Gingold <gingold@adacore.com>
5331 * symfile.h (struct dwarf2_section_names): New type.
5332 (struct dwarf2_debug_sections): New type.
5333 (dwarf2_has_info): Add parameter.
5334 * dwarf2read.c (dwarf2_elf_names): New variable.
5335 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5336 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5337 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5338 (dwarf2_has_info): Add names parameter. Pass names
5339 to dwarf2_locate_sections.
5340 (section_is_p): Rewrite using the names parameter.
5341 (dwarf2_locate_sections): Use section names from the names parameter.
5342 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5343 * elfread.c (read_psyms): Ditto.
5344 * machoread.c (macho_symfile_read): Ditto.
5346 2011-05-25 Andreas Schwab <schwab@redhat.com>
5349 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5351 2011-05-24 Keith Seitz <keiths@redhat.com>
5354 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5355 (decode_compound): Unconditionally call keep_name_info.
5357 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5359 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5360 scope, clear its command list.
5361 (map_breakpoint_numbers): Don't walk the related breakpoints list
5364 2011-05-24 Tom Tromey <tromey@redhat.com>
5366 * MAINTAINERS: Move Jim Blandy to past maintainers.
5368 2011-05-24 Tristan Gingold <gingold@adacore.com>
5370 * symfile.h (enum dwarf2_section_enum): New type.
5371 (dwarf2_get_section_info): New prototype.
5372 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5373 section_name by sect. Use a switch to select the info.
5374 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5375 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5377 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5379 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5380 shared library event breakpoint if there's no execution.
5382 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5384 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5385 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5387 2011-05-23 Tom Tromey <tromey@redhat.com>
5389 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5392 2011-05-23 Doug Evans <dje@google.com>
5394 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5395 entry for RuntimeError to doc string.
5397 2011-05-23 Jerome Guitton <guitton@adacore.com>
5399 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5400 sequence for probing loops.
5402 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5404 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5407 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5409 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5410 zero as the value for %g0 in the register cache.
5411 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5412 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5414 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5416 * infrun.c (proceed): Set previous_inferior_ptid here.
5417 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5418 inferior_ptid, not null_ptid.
5419 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5420 (fetch_inferior_event): Nor here.
5422 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5424 * inf-loop.c (inferior_event_handler): Only output a message if
5427 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5429 * MAINTAINERS: Update my e-mail address.
5431 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5433 * infrun.c (proceed): Switch the inferior event loop to
5434 INF_EXEC_COMPLETE if the target refused to resume from a
5437 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5439 * infcmd.c: Include "inf-loop.h".
5440 (step_once): When stepping into an inline subroutine, pretend the
5441 target has run. If the target can async, switch the inferior
5442 event loop to INF_EXEC_COMPLETE.
5443 * inferior.h (user_visible_resume_ptid): Declare.
5444 * infrun.c (user_visible_resume_ptid): New function, factored out
5447 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5448 that the current thread is running. Merge async and sync
5451 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5453 * infcmd.c (step_1): Simplify synchronous case.
5455 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5457 * tracepoint.c: Include exceptions.h.
5458 (TFILE_PID): Move higher in file.
5459 (tfile_open): Delay pushing the tfile target until we're assured
5460 the tfile header is present in the file. Wrap reading the initial
5461 newline-terminated lines in TRY_CATCH. Pop the target if the
5462 initial setup failed. Add the tfile's thread immediately
5463 aftwards, before any non-essential setup. Don't skip
5464 post_create_inferior if there are no traceframes present in the
5466 (tfile_close): Remove redundant check for null before xfree call.
5467 (tfile_thread_alive): New function.
5468 (init_tfile_ops): Register it as to_thread_alive callback.
5470 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5472 * tracepoint.c (tfile_open): Delete #if 0'd code.
5474 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5476 Fix -readnow for -gdwarf-4 unused type units.
5477 * dwarf2read.c (struct signatured_type): Remove the field offset.
5478 (create_signatured_type_table_from_index): Remove its initialization.
5479 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5480 instead. Add a complaint call.
5481 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5482 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5483 (lookup_signatured_type_at_offset, read_signatured_type)
5484 (write_one_signatured_type): Update the field for per_cu.
5486 2011-05-19 Tom Tromey <tromey@redhat.com>
5488 * python/py-inferior.c (python_inferior_exit): Use
5490 (python_on_resume): Likewise.
5492 2011-05-19 Matt Rice <ratmice@gmail.com>
5494 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5496 2011-05-19 Hui Zhu <teawater@gmail.com>
5498 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5500 2011-05-19 Hui Zhu <teawater@gmail.com>
5502 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5504 2011-05-18 Tom Tromey <tromey@redhat.com>
5506 * dwarf2read.c (dwarf2_add_field): Constify.
5507 * value.c (value_static_field): Constify.
5508 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5510 * ax-gdb.c (gen_static_field): Constify
5512 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5514 * linux-nat.c (kill_callback): Use SIGKILL first.
5516 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5518 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5520 2011-05-18 Tom Tromey <tromey@redhat.com>
5522 * value.c (value_fn_field): Constify.
5523 * symtab.c (gdb_mangle_name): Constify.
5524 * stabsread.c (update_method_name_from_physname): Make 'physname'
5526 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5527 const. Use explicit fputc_filtered loop.
5528 (pascal_type_print_base): Constify.
5529 * p-lang.h (pascal_type_print_method_args): Update.
5530 * linespec.c (add_matching_methods): Constify.
5531 (add_constructors): Likewise.
5532 * jv-typeprint.c (java_type_print_base): Constify.
5533 * gdbtypes.h (struct cplus_struct_type)
5534 <fn_fieldlist.fn_field.physname>: Now const.
5535 * dwarf2read.c (compute_delayed_physnames): Constify.
5536 (dwarf2_add_member_fn): Likewise.
5537 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5539 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5541 * infrun.c (resume): Mention which is the current thread, and its
5542 current PC in debug output.
5543 (prepare_to_proceed): Mention the thread switching in debug
5546 2011-05-18 Tom Tromey <tromey@redhat.com>
5548 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5549 path check. Use xmalloc and cleanups.
5550 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5552 2011-05-17 Tom Tromey <tromey@redhat.com>
5554 * cp-valprint.c (cp_print_value_fields): Catch errors from
5557 2011-05-17 Tom Tromey <tromey@redhat.com>
5559 * dwarf2read.c (dwarf2_get_die_type): Call
5560 get_die_type_at_offset.
5561 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5562 get_base_type function.
5564 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5566 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5569 2011-05-16 Doug Evans <dje@google.com>
5571 * python/py-auto-load.c (source_section_scripts): Mention objfile
5574 2011-05-15 Doug Evans <dje@google.com>
5576 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5577 (try_thread_db_load_from_pdir): Call it. If unable to find
5578 libthread_db in directory of libpthread, see if we're looking at
5579 the separate-debug-info copy.
5581 * python/py-autoload.c (print_script): Print "Missing" instead of
5582 "No" for missing scripts.
5583 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5585 2011-05-13 Doug Evans <dje@google.com>
5587 * ui-file.c (stdio_file_write_async_safe): Add comment.
5589 2011-05-14 Hui Zhu <teawater@gmail.com>
5591 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5593 2011-05-13 Doug Evans <dje@google.com>
5595 Support $pdir and $sdir in libthread-db-search-path.
5596 * NEWS: Mention $sdir,$pdir.
5597 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5598 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5599 (try_thread_db_load_from_sdir): New function.
5600 (try_thread_db_load_from_dir): New function.
5601 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5602 system directories if search of libthread-db-search-path fails,
5603 that is now done via $sdir.
5604 (has_libpthread): New function.
5605 (thread_db_load): Remove search for libthread_db in directory of
5606 libpthread, that is now done via $pdir.
5608 * NEWS: Mention "info auto-load-scripts".
5609 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5610 script_not_found_warning_printed.
5611 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5612 all callers updated. Initialize script_not_found_warning_printed.
5613 (get_auto_load_pspace_data_for_loading): New function.
5614 (maybe_add_script): New function.
5615 (source_section_scripts): Simplify. Only print one warning regardless
5616 of the number of auto-load scripts not found.
5617 (clear_section_scripts): Clear script_not_found_warning_printed.
5618 (auto_load_objfile_script): Record script in hash table.
5619 (count_matching_scripts): New function.
5620 (maybe_print_script): Renamed from maybe_print_section_script, all
5621 callers updated. Rewrite to use ui_out_*.
5622 (info_auto_load_scripts): Renamed from
5623 maintenance_print_section_scripts, all callers updated.
5624 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5625 renamed as "info auto-load-scripts".
5627 2011-05-13 Tom Tromey <tromey@redhat.com>
5629 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5630 (read_sleb128): Likewise.
5632 2011-05-13 Tom Tromey <tromey@redhat.com>
5634 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5637 2011-05-13 Doug Evans <dje@google.com>
5639 * linux-nat.c (debug_linux_nat_async): Delete.
5640 Replace all references to use debug_linux_nat instead.
5641 (show_debug_linux_nat_async): Delete.
5642 (sigchld_handler): Call ui_file_write_async_safe instead of
5644 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5645 * ui-file.c (struct ui_file): New member to_write_async_safe.
5646 (null_file_write_async_safe): New function.
5647 (ui_file_write_async_safe): New function.
5648 (set_ui_file_write_async_safe): New function.
5649 (ui_file_new): Initialize to_write_async_safe.
5650 (stdio_file_write_async_safe): New function.
5651 (struct stdio_file): New member fd.
5652 (stdio_file_new): Initialize to_write_async_safe, fd.
5653 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5655 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5656 (set_ui_file_write_async_safe): Declare.
5657 (ui_file_write_async_safe): Declare.
5659 2011-05-13 Tom Tromey <tromey@redhat.com>
5661 * utils.c (do_value_free): New function.
5662 (make_cleanup_value_free): Likewise.
5663 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5665 (dwarf2_loc_desc_needs_frame): Call
5666 make_cleanup_value_free_to_mark.
5667 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5668 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5670 (new_dwarf_expr_context): Don't call value_mark.
5671 * dwarf2-frame.c (execute_stack_op): Call
5672 make_cleanup_value_free_to_mark.
5673 * defs.h (make_cleanup_value_free): Declare.
5675 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5677 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5678 prepare_execute_command.
5679 * top.c (prepare_execute_command): Return cleanup.
5680 (execute_command): Use cleanup from prepare_execute_command.
5681 * top.h (prepare_execute_command): Change prototype to return
5683 * defs.h (struct value): Add opaque declaration.
5684 (make_cleanup_value_free_to_mark): Add prototype.
5685 * utils.c (do_value_free_to_mark): New function.
5686 (make_cleanup_value_free_to_mark): Likewise.
5688 2011-05-12 Tom Tromey <tromey@redhat.com>
5690 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5691 cast left-hand-side to unsigned.
5693 2011-05-12 Tom Tromey <tromey@redhat.com>
5696 * value.h (value_from_contents): Declare.
5697 * value.c (value_from_contents): New function.
5698 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5699 (dwarf2_get_die_type): New function.
5700 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5701 (allocate_piece_closure): Acquire reference to values.
5702 (read_pieced_value): Update for value-based expressions.
5703 (write_pieced_value): Likewise.
5704 (free_pieced_value_closure): Call value_free as needed.
5705 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5706 Update for value-based expressions.
5707 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5708 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5709 <get_base_type>: New field.
5710 (struct dwarf_expr_piece) <v.value>: Change type.
5711 <v.regno>: New field.
5712 (struct dwarf_expr_context) <mark>: New field.
5713 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5714 (dwarf_expr_pop, dwarf_expr_push): Remove.
5715 (dwarf_expr_push_address): Declare.
5716 * dwarf2expr.c (dwarf_arch_cookie): New global.
5717 (struct dwarf_gdbarch_types): New.
5718 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5720 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5722 (dwarf_expr_push_address): New function.
5723 (dwarf_expr_pop): Now static.
5724 (dwarf_expr_fetch): Change return type.
5725 (dwarf_require_integral): New function.
5726 (dwarf_expr_fetch): Simplify.
5727 (add_piece): Update.
5728 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5730 (execute_stack_op) <sign_ext>: Remove.
5731 Use values for DWARF stack.
5732 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5733 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5735 (_initialize_dwarf2expr): New function.
5736 (add_piece): Update.
5737 (new_dwarf_expr_context): Set new field.
5738 (free_dwarf_expr_context): Call value_free_to_mark.
5739 * dwarf2-frame.c (no_base_type): New function.
5740 (execute_stack_op): Set get_base_type field. Update.
5742 2011-05-12 Tom Tromey <tromey@redhat.com>
5744 * dwarf2read.c (read_common_block): Fix formatting.
5746 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5748 * breakpoint.c (disable_breakpoint): Disable all locations
5749 associated with a tracepoint on target if a trace experiment is
5751 (disable_command): Disable a specific tracepoint location on target if
5752 a trace experiment is running.
5753 (do_enable_breakpoint): Enable all locations associated with a
5754 tracepoint on target if a trace experiment is running.
5755 (enable_command) Enable a specific tracepoint location on target if a
5756 trace experiment is running.
5757 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5758 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5759 to_disable_tracepoint.
5760 * target.h: Add declaration of struct bp_location.
5761 (struct target_ops): Add new functions
5762 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5763 to_disable_tracepoint to target operations.
5764 (target_supports_enable_disable_tracepoint): New macro.
5765 (target_enable_tracepoint): New macro.
5766 (target_disable_tracepoint): New macro.
5767 * remote.c (struct remote_state): Add new field.
5768 (remote_enable_disable_tracepoint_feature): New.
5769 (remote_protocol_features): Add new entry.
5770 (remote_supports_enable_disable_tracepoint): New.
5771 (remote_enable_tracepoint): New.
5772 (remote_disable_tracepoint): New.
5773 (init_remote_ops): Add remote_enable_tracepoint,
5774 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5775 to remote operations.
5776 * tracepoint.c (start_tracing): Allow tracing to start without any
5777 tracepoints enabled with just a warning if they can be re-enabled
5779 * NEWS: Add news item for the new behaviour of the enable and disable
5780 GDB commands when applied to tracepoints.
5781 Add news items for the new remote packets QTEnable and QTDisable.
5783 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5785 * config.in: Regenerate.
5786 * configure: Regenerate.
5787 * configure.ac <--with-system-readline> (for readline_echoing_p):
5789 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5790 (tui_old_rl_echoing_p): ... here.
5791 (tui_setup_io): Rename extern declaration readline_echoing_p to
5792 _rl_echoing_p. Adjust assignments for the both renames.
5794 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5796 * symtab.c (lookup_symtab): Run cleanup before returning.
5798 2011-05-11 Tom Tromey <tromey@redhat.com>
5800 * dwarf2read.c (handle_data_member_location): New function.
5801 (dwarf2_add_field): Use it.
5802 (read_common_block): Likewise.
5804 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5806 Make addrs->SECTINDEX always defined.
5807 * symfile.c (relative_addr_info_to_section_offsets): Check for
5808 SECTINDEX -1, not for zero ADDR.
5809 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5810 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5811 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5814 2011-05-10 Doug Evans <dje@google.com>
5816 * linux-thread-db.c: Whitespace cleanup.
5817 (try_thread_db_load_1): Fix comment.
5819 * linux-thread-db.c (set_libthread_db_search_path): New function.
5820 (_initialize_thread_db): Add setter for libthread-db-search-path.
5822 2011-05-09 Doug Evans <dje@google.com>
5824 * NEWS: Mention --with-iconv-bin.
5825 * configure.ac: New option --with-iconv-bin.
5826 * configure: Regenerate.
5827 * config.in: Regenerate.
5828 * defs.h (relocate_gdb_directory): Declare.
5829 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5830 removed progname parameter, and exported. All callers updated.
5831 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5833 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5834 adding missing call to restore_child_signals_mask.
5836 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5838 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5840 * infrun.c (proceed, start_remote): Adjust.
5841 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5842 and adjust to not handle it.
5843 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5844 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5845 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5846 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5847 * windows-nat.c (do_initial_windows_stuff): Adjust.
5848 * infcmd.c (attach_command): Adjust.
5849 (notice_new_inferior): Adjust.
5851 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5853 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5854 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5855 * spu-tdep.c (op_selb): Use correct value.
5857 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5859 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5860 "parent" parameter to symbol_file_add_from_bfd call.
5862 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5863 Thiago Jung Bauermann <bauerman@br.ibm.com>
5865 Implement support for PowerPC BookE masked watchpoints.
5866 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5868 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5869 method. Initialize to NULL in all existing breakpoint_ops instances.
5870 (struct breakpoint) <hw_wp_mask>: New field.
5871 * breakpoint.c (is_masked_watchpoint): Add prototype.
5872 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5873 breakpoint's breakpoint_ops.works_in_software_mode if available.
5874 (watchpoints_triggered): Handle the case of a hardware masked
5876 (watchpoint_check): Likewise.
5877 (works_in_software_mode_watchpoint): New function.
5878 (insert_masked_watchpoint, remove_masked_watchpoint)
5879 (resources_needed_masked_watchpoint)
5880 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5881 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5882 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5884 (masked_watchpoint_breakpoint_ops): New structure.
5885 (watch_command_1): Check for the existence of the `mask' parameter.
5886 Set b->ops according to the type of hardware watchpoint being created.
5887 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5888 (ppc_linux_remove_mask_watchpoint)
5889 (ppc_linux_masked_watch_num_registers): New functions.
5890 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5891 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5892 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5893 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5894 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5895 (target_masked_watch_num_registers): New functions.
5896 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5897 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5899 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5900 (target_masked_watch_num_registers): Add prototypes.
5902 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5905 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5906 (producer_is_gcc_ge_4_0): New function.
5907 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5908 symtab->language code.
5909 (var_decode_location): Set cu->has_loclist.
5910 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5911 skip. Intialize force_skip from locations_valid. Move the prologue
5912 skipping code into two passes.
5913 * symtab.h (struct symtab): Make the primary field a bitfield. New
5914 field locations_valid.
5916 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5918 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5919 (classify_inner_name): Call cp_lookup_nested_type with
5921 * cp-namespace.c (cp_lookup_nested_type): New variable
5922 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5923 type_name_no_tag_or_error with saved_parent_type.
5924 * dwarf2read.c (load_partial_dies): Read in any children of
5925 DW_TAG_typedef with complaint in such case.
5926 * gdbtypes.c (type_name_no_tag_or_error): New function.
5927 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5928 * valops.c (destructor_name_p): New comment for parameter type. Remove
5929 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5930 * value.h (destructor_name_p): Remove type const.
5932 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5934 * symtab.c (compare_symbol_name): New function.
5935 (completion_list_add_name, expand_partial_symbol_name): Call it,
5936 remove the variable ncmp.
5937 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5940 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5942 Demote to sw watchpoint only in update_watchpoint.
5943 * breakpoint.c (update_watchpoint): Change between software and
5944 hardware watchpoint for all kinds of watchpoints, not just
5945 read/write ones. Determine b->exact value here instead of
5946 in watch_command_1. Error out if there are not enough resources
5947 for a read or access hardware watchpoint.
5948 (watch_command_1): Remove logic of checking whether there are
5949 enough resources available, since update_watchpoint will do that
5950 work now. Don't set b->exact here. Catch exceptions thrown by
5951 update_watchpoint and delete the watchpoint.
5952 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5953 Use target_exact_watchpoints instead.
5954 (delete_breakpoint): Notify observers only if deleted watchpoint
5955 has a breakpoint number assigned to it.
5957 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5959 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5961 2011-05-05 Jerome Guitton <guitton@adacore.com>
5963 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5965 (i386_stack_tramp_frame_unwind): New static global.
5966 (i386_match_pattern): New function, extracted from i386_match_insn.
5967 (i386_match_insn): Use i386_match_pattern.
5968 (i386_match_insn_block): New function.
5969 (i386_tramp_chain_in_reg_insns)
5970 (i386_tramp_chain_on_stack_insns): New static variables.
5971 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5974 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5976 * configure.host (xscale*): Don't handle target.
5977 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5980 2011-05-04 Yao Qi <yao@codesourcery.com>
5982 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5984 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5987 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5988 | * elfread.c (elf_symtab_read): Stop memory leak.
5990 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5992 * nto-tdep.c (nto_target): Replace deprecated call to
5993 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5995 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5997 Fix false GCC warning.
5998 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6000 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6002 * breakpoint.c (update_watchpoint): Move code to change
6003 the enable state of breakpoint from here ...
6004 (do_enable_breakpoint): ... to here.
6006 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6008 * valprint.c (val_print_array_elements): Fixed poor performance
6009 of printing very large arrays with repeat_count_threshold set
6010 to unlimited. New comment.
6012 2011-04-29 Tom Tromey <tromey@redhat.com>
6014 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6015 (mi_parse): Likewise.
6016 * breakpoint.c (break_range_command): Use sizeof char*, not
6018 (create_breakpoint): Likewise.
6019 (parse_breakpoint_sals): Likewise.
6021 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6023 * linux-nat.c (linux_child_remove_fork_catchpoint)
6024 (linux_child_remove_vfork_catchpoint)
6025 (linux_child_remove_exec_catchpoint): New functions.
6026 (linux_target_install_ops): Install them.
6028 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6032 * varobj.c (install_default_visualizer): Do not install a
6033 visualizer if the varobj is CPLUS_FAKE_CHILD.
6034 (construct_visualizer): Likewise.
6036 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6038 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6039 case insensitive comparison.
6041 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6043 * infrun.c (proceed): Revert previous change.
6044 (resume): Instead, handle the case of signal delivery while stepping
6045 off a breakpoint location here, and only if software single-stepping
6046 is used. Handle nested signals.
6048 2011-04-28 Yao Qi <yao@codesourcery.com>
6050 * arm-tdep.c (copy_unmodified): Rename to ...
6051 (arm_copy_unmodified): .. this. New.
6052 (copy_preload): Move common part to ...
6053 (install_preload): .. this. New.
6054 (arm_copy_preload): New.
6055 (copy_preload_reg): Move common part to ...
6056 (install_preload_reg): ... this. New.
6057 (arm_copy_preload_reg): New.
6058 (copy_b_bl_blx): Move common part to ...
6059 (install_b_bl_blx): .. this. New.
6060 (arm_copy_b_bl_blx): New.
6061 (copy_bx_blx_reg): Move common part to ...
6062 (install_bx_blx_reg): ... this. New.
6063 (arm_copy_bx_blx_reg): New.
6064 (copy_alu_reg): Move common part to ...
6065 (install_alu_reg): ... this. New.
6066 (arm_copy_alu_reg): New.
6067 (copy_alu_shifted_reg): Move common part to ...
6068 (install_alu_shifted_reg): ... this. New.
6069 (copy_ldr_str_ldrb_strb): Move common part to ...
6070 (install_ldr_str_ldrb_strb): ... this. New.
6071 (arm_copy_ldr_str_ldrb_strb): New.
6072 (copy_copro_load_store): Move some common part to ...
6073 (install_copy_copro_load_store): ... this. New.
6074 (arm_copy_copro_load_store): New.
6076 (arm_copy_svc): Renamed from copy_svc.
6077 (copy_undef): Delete.
6078 (arm_copy_undef): Renamed from copy_undef.
6079 (decode_ext_reg_ld_st): Delete.
6080 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6081 (decode_svc_copro): Delete.
6082 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6083 (copy_copro_load_store, copy_alu_imm): update callers.
6084 (copy_extra_ld_st, copy_block_xfer): Likewise.
6085 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6086 (decode_miscellaneous, decode_dp_misc): Likewise.
6087 (decode_ld_st_word_ubyte, decode_media): Likewise.
6088 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6089 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6090 (decode_unconditional, decode_miscellaneous): Likewise.
6091 (decode_media, decode_b_bl_ldmstm): Likewise.
6092 (arm_process_displaced_insn): Likewise..
6093 (decode_misc_memhint_neon): Delete.
6094 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6095 (decode_miscellaneous): Delete.
6096 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6097 (decode_dp_misc): Delete.
6098 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6099 (decode_ld_st_word_ubyte): Delete.
6100 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6101 (decode_media): Delete.
6102 (arm_decode_media): Renamed from decode_media.
6103 (decode_b_bl_ldmstm): Delete.
6104 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6105 (decode_ext_reg_ld_st): Delete.
6106 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6107 (decode_unconditional): Delete.
6108 (arm_decode_unconditional): Renamed from decode_unconditional.
6110 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Case insensitive lookups implementation.
6113 * dwarf2read.c: Include ctype.h.
6114 (struct mapped_index): New field version.
6115 (mapped_index_string_hash): New parameter index_version. New comment
6116 for it. Call tolower appropriately.
6117 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6118 Choose the right index version for mapped_index_string_hash.
6119 (dwarf2_read_index): Support also the index version 5. Initialize the
6120 new struct mapped_index field version.
6121 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6122 (find_slot): Explain the version needs. Pass INT_MAX for the new
6124 (write_psymtabs_to_index): Produce version 5.
6125 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6126 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6127 * psymtab.c (lookup_partial_symbol): Find the
6128 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6130 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6132 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6133 (completion_list_add_name): New variable ncmp, initialize it, use it.
6134 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6135 * utils.c (strcmp_iw): Support case_sensitive_off.
6136 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6137 New function comment part. New variables saved_string1,
6138 saved_string2 and case_pass. Add a proper second pass.
6140 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6142 Replace re_comp/re_exec by regcomp/regexec.
6143 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6144 (search_symbols_name_matches): Use them, use regexec.
6145 (search_symbols): New variable retval_chain, adjust the use of
6146 old_chain against it. Replace re_comp by regcomp. Use the new struct
6147 search_symbols_data fields, use regexec instead of re_exec.
6149 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6151 Format the code for the next patch.
6152 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6153 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6154 New variables c1 and c2.
6156 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6158 * infrun.c (proceed): Do not single-step into signal delivery
6159 when stepping off a breakpoint location.
6160 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6161 (insert_step_resume_breakpoint_at_caller): Likewise.
6162 (insert_step_resume_breakpoint_at_sal): Likewise.
6163 (insert_longjmp_resume_breakpoint): Likewise.
6165 2011-04-27 Yao Qi <yao@codesourcery.com>
6167 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6169 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6171 * procfs.c (procfs_pass_signals): Fix advance declaration.
6173 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6175 * target.h (struct target_ops): Remove to_notice_signals;
6176 add to_pass_signals.
6177 (target_notice_signals): Remove.
6178 (target_pass_signals): Add prototype.
6179 * target.c (update_current_target): Remove to_notice_signals;
6180 mention to_pass_signals.
6181 (target_pass_signals): New function.
6182 (debug_to_notice_signals): Remove.
6183 (setup_target_debug): Do not install debug_to_notice_signals.
6185 * infrun.c (signal_pass): New global.
6186 (resume): Call target_pass_signals.
6187 (handle_inferior_event): Report all signals while stepping over
6188 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6189 are re-inserted when stepping over a signal handler.
6190 (signal_cache_update): New function.
6191 (signal_stop_update): Call it.
6192 (signal_print_update): Likewise.
6193 (signal_pass_update): Likewise.
6194 (handle_command): Call signal_cache_update and target_pass_signals
6195 instead of target_notice_signals.
6196 (_initialize_infrun): Initialize signal_pass.
6198 * linux-nat.c (pass_mask): New global.
6199 (linux_nat_pass_signals): New function.
6200 (linux_nat_create_inferior): Report all signals initially.
6201 (linux_nat_attach): Likewise.
6202 (linux_nat_resume): Use pass_mask to decide whether to directly
6203 handle an inferior signal.
6204 (linux_nat_wait_1): Likewise.
6205 (linux_nat_add_target): Install to_pass_signals callback.
6207 * nto-procfs.c (notice_signals): Remove.
6208 (procfs_resume): Do not call notice_signals.
6209 (procfs_notice_signals): Remove.
6210 (procfs_pass_signals): New function.
6211 (init_procfs_ops): Install to_pass_signals callback instead of
6212 to_notice_signals callback.
6213 (_initialize_procfs): Report all signals initially.
6215 * procfs.c (procfs_notice_signals): Remove.
6216 (procfs_pass_signals): New function.
6217 (procfs_target): Install to_pass_signals callback instead of
6218 to_notice_signals callback.
6219 (register_gdb_signals): Remove.
6220 (procfs_debug_inferior): Report all signals initially.
6221 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6223 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6224 parameters; use them instead of calling signal_..._state routines.
6225 (remote_notice_signals): Remove.
6226 (remote_start_remote): Report all signals initially.
6227 (remote_resume): Do not call remote_pass_signals.
6228 (_initialize_remote): Install to_pass_signals callback instead of
6229 to_notice_signals callback.
6231 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6233 * breakpoint.c (user_settable_breakpoint): Delete.
6234 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6235 (delete_command): Check user_breakpoint_p instead of looking at
6236 the breakpoint's type.
6237 (disable_command): Ditto.
6238 (enable_command): Ditto.
6239 (delete_trace_command): Use user_breakpoint_p instead of looking
6240 at the breakpoint number directly. When checking if there are
6241 user visible tracepoints, in order to know whether to ask the user
6242 for confirmation, check whether the breakpoint is actually a
6245 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6247 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6250 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6252 MI breakpoint notifications.
6254 * annotate.c (breakpoint_changed): Adjust parameter type.
6255 * breakpoint.c (set_breakpoint_condition): Adjust to change
6256 in breakpoint_modified type.
6257 (breakpoint_set_commands): Likewise.
6258 (do_map_commands_command): Likewise.
6259 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6260 changed after bumping hit count.
6261 (bpstat_stop_status): Likewise.
6262 (print_one_breakpoint_location): Don't wrap in tuple here.
6263 (print_one_breakpoint): Always print individual locations.
6264 For locations, use unnamed tuple.
6265 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6267 (create_catchpoint, create_syscall_event_catchpoint): Call
6268 breakpoint_created obsever.
6269 (mention): Don't call breakpoint_created observer.
6270 (create_breakpoint_sal): Call breakpoint_created observer.
6271 (create_breakpoint, watch_command_1): Likewise.
6272 (create_ada_exception_breakpoint): Likewise.
6273 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6274 (locations_are_equal): New.
6275 (update_breakpoint_locations): If locations were changed, notify.
6276 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6277 Call breakpoint_modified observer.
6279 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6280 (mi_cmd_break_insert): Don't set observers for modify and delete.
6281 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6282 (mi_breakpoint_created, mi_breakpoint_deleted)
6283 (mi_breakpoint_modified): New.
6284 (mi_interpreter_init): Hook the above.
6285 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6286 while -break-* commands are executing.
6287 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6288 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6290 (mi_ui_out_impl): Hook in mi_redirect.
6291 (mi_field_skip): True to the name, skip the field, don't output
6292 a field with an empty value.
6294 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6295 (gdbpy_breakpoint_deleted): Adjust.
6296 * tui/tui-hooks.c (tui_event_create_breakpoint)
6297 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6299 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6301 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6302 (procfs_remove_hw_watchpoint): Likewise.
6304 2011-04-26 Michael Walle <michael@walle.cc>
6306 * remote.c (remote_start_remote): Ack packet after sending the
6309 2011-04-26 Yao Qi <yao@codesourcery.com>
6311 * linux-nat.c: Move common macros to ...
6312 Include linux-ptrace.h.
6313 * common/linux-ptrace.h: ... here. New.
6315 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6318 !objfile_has_partial_symbols. New comment.
6319 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6320 SYM_READ_PSYMBOLS is not present. Extend the comment.
6321 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6323 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6325 * defs.h (ENUM_BITFIELD): Remove.
6327 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 Eli Zaretskii <eliz@gnu.org>
6330 * NEWS: Document the new gdbserver --once option.
6332 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6334 * MAINTAINERS: Update my email address.
6336 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6338 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6339 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6340 function call if __STDC_ISO_10646__ macro is defined.
6341 (intermediate_encoding): New prototype.
6342 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6343 to generate compile time error for unsupported gdb_wchar_t size.
6344 (ENDIAN_SUFFIX): New macro.
6345 (intermediate_encoding): New function.
6347 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6349 * ada-lang.c (struct add_partial_datum): Update the comment for
6350 expand_partial_symbol_name.
6351 (ada_add_partial_symbol_completions): Rename to ...
6352 (ada_expand_partial_symbol_name): ... here, change return type, update
6353 function comment, call symbol_completion_match instead of
6354 symbol_completion_add.
6355 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6356 and ada_expand_partial_symbol_name.
6357 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6359 (dw2_map_symbol_names): Remove.
6360 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6361 * psymtab.c (map_symbol_names_psymtab): Remove.
6362 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6363 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6365 (psym_functions): Unlist map_symbol_names_psymtab.
6366 (map_partial_symbol_names): Rename to ...
6367 (expand_partial_symbol_names): ... here, change the FUN type, call
6368 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6369 * psymtab.h (map_partial_symbol_names): Rename to ...
6370 (expand_partial_symbol_names): ... here, change the FUN type.
6371 * symfile.h (struct quick_symbol_functions): Update the description of
6372 expand_symtabs_matching. Remove map_symbol_names.
6373 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6374 (struct add_name_data): Update the comment for
6375 expand_partial_symbol_name.
6376 (add_partial_symbol_name): Rename to ...
6377 (expand_partial_symbol_name): ... here. Replace
6378 completion_list_add_name call by strncmp.
6379 (default_make_symbol_completion_list_break_on): Use now
6380 expand_partial_symbol_names and expand_partial_symbol_name.
6381 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6383 2011-04-20 Tom Tromey <tromey@redhat.com>
6385 * dwarf2read.c (save_gdb_index_command): Replace format
6386 documentation with a pointer to the manual.
6388 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6390 * regcache.c: Include remote.h.
6391 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6392 (regcache_dump): Handle regcache_dump_remote.
6393 (maintenance_print_remote_registers): New function.
6394 (_initialize_regcache): Install "maint print remote-registers"
6396 * remote.c (map_regcache_remote_table): New function, factored out
6398 (init_remote_state): ... here.
6399 (remote_register_number_and_offset): New.
6400 * remote.h (remote_register_number_and_offset): Declare.
6402 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6404 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6405 null_ptid, assume and allow a NULL address space, instead of
6406 asking the target for the ptid's address space.
6407 * infrun.c (ptid_is_pid): Remove assertion.
6409 2011-04-19 Tom Tromey <tromey@redhat.com>
6411 * windows-tdep.c (windows_xfer_shared_library):
6412 * windows-nat.c (get_module_name, windows_make_so):
6413 * v850-tdep.c (v850_handle_pushm):
6414 * utils.c (null_cleanup, gdb_realpath):
6415 * ui-out.c (get_next_header):
6416 * tracepoint.c (clear_traceframe_info):
6417 * symtab.c (lookup_symtab):
6418 * serial.h (struct serial_ops):
6419 * mipsread.c (read_alphacoff_dynamic_symtab):
6420 * infcmd.c (print_return_value):
6421 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6422 * f-exp.y (parse_number):
6423 * exceptions.c (catch_exceptions):
6424 * dummy-frame.c (dummy_frame_this_id):
6425 * defs.h (struct cleanup):
6426 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6427 * arm-tdep.c (arm_push_dummy_call):
6428 * amd64-tdep.h (amd64_collect_xsave):
6429 * amd64-tdep.c (amd64_collect_xsave):
6430 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6431 * README (typing): Remove duplicate words.
6432 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6433 * infrun.c (siginfo_value_read): Fix typo.
6434 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6435 * top.c (source_line_number): Add comma.
6437 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6439 * thread.c (any_live_thread_of_process): Prioritize threads
6440 that are not executing.
6441 * gdbthread.h (any_live_thread_of_process): Update comment
6442 as per above change.
6444 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6446 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6447 (scan_xcoff_symtab): Likewise.
6449 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6451 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6454 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6455 Pedro Alves <pedro@codesourcery.com>
6457 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6458 variables to simplify code and avoid == operator at end of
6459 line as this is against GNU coding standards.
6461 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6463 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6464 lm_name to name_lm to avoid conflict with lm_name function.
6466 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6468 ARI fixes: Use only lowercase function name for static functions.
6469 * nto-tdep.c (LM_ADDR): Rename to...
6470 (lm_addr): New function name.
6471 (nto_relocate_section_addresses): Adapt to change above.
6472 * solib-sunos.c (LM_ADDR): Rename to...
6473 (lm_addr): New function name.
6474 (LM_NEXT): Rename to...
6475 (lm_next): New function name.
6476 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6477 function name changes above.
6478 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6479 (lm_addr_from_link_map): New function name.
6480 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6481 (has_lm_dynamic_from_link_map): New function name.
6482 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6483 (lm_dynamic_from_link_map): New function name.
6484 (LM_ADDR_CHECK): Rename to...
6485 (lm_addr_check): New function name.
6486 (LM_NEXT): Rename to...
6487 (lm_next): New function name.
6488 (LM_PREV): Rename to...
6489 (lm_prev): New function name.
6490 (LM_NAME): Rename to...
6491 (lm_name): New function name.
6492 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6493 (ignore_first_link_map_entry): New function name.
6494 (svr4_keep_data_in_core): Adapt to function name changes above.
6495 (svr4_current_sos): Likewise.
6496 (enable_break): Likewise.
6497 (svr4_relocate_section_addresses): Likewise.
6499 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6502 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6503 sprintf. Simplify code and avoid loosing memory.
6504 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6505 (call0_frame_cache): Remove && operator from end of line.
6507 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6509 Fix libraries displacement if they change whether they were prelinked.
6510 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6511 does not match. Comment why.
6513 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6515 * corelow.c: Include wrapper.h.
6516 (core_open): Call now gdb_target_find_new_threads.
6517 * wrapper.c: Include target.h.
6518 (gdb_target_find_new_threads): New.
6519 * wrapper.h (gdb_target_find_new_threads): New declaration.
6521 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6524 even if !TARGET_HAS_EXECUTION.
6526 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6528 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6529 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6530 bfd_get_synthetic_symtab.
6531 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6532 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6533 parameter parent, remove the call to add_separate_debug_objfile.
6534 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6535 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6536 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6537 parent, new comment for it, call add_separate_debug_objfile for it.
6538 (symbol_file_add_separate): Pass objfile as the parameter parent,
6539 remove the call to add_separate_debug_objfile.
6540 (symbol_file_add_from_bfd): New parameter parent, pass it.
6541 (symbol_file_add): Pass NULL to the new parameter parent.
6542 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6544 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6546 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6549 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6551 Fix Python access to inlined frames.
6552 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6553 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6555 2011-04-15 Tom Tromey <tromey@redhat.com>
6557 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6559 2011-04-15 Gary Benson <gbenson@redhat.com>
6561 * MAINTAINERS: Add myself to write-after-approval section.
6563 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6565 * remote-sim.c (sim_command_completer): New function.
6566 (_initialize_remote_sim): Set completer to sim_command_completer.
6568 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6570 * breakpoint.c (print_exception_catchpoint): Rename to ...
6571 (print_it_exception_catchpoint): ... this.
6572 (gnu_v3_exception_catchpoint_ops): Update with new name
6573 for print_it_exception_catchpoint.
6575 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6577 * MAINTAINERS: Add myself for write after approval privileges.
6579 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6581 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6583 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6585 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6587 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6589 * breakpoint.c (save_breakpoints): Verify whether
6590 breakpoint_ops.print_recreate is defined before calling it.
6592 2011-04-11 Gary Benson <gbenson@redhat.com>
6594 Fix failure with --enable-maintainer-mode.
6595 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6597 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6600 * symtab.c (search_symbols): Reorder the KIND description in the
6601 function comment. Remove the unused 4th element of types, types2,
6602 types3 and types4. New gdb_assert on KIND.
6603 (symtab_symbol_info): Remove the unused 4th element of classnames.
6604 New gdb_assert on KIND.
6605 * symtab.h (enum search_domain): New warning in the enum comment.
6606 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6609 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6611 Fix crash of gdb save-index on a STABS file.
6612 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6615 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6617 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6618 * dwarf2read.c: Include ctype.h.
6619 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6621 (dwarf2_add_field): Fix new_field->accessibility by calling
6622 dwarf2_default_access_attribute. Restructure setting accessibility
6624 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6625 is_private and is_protected by calling
6626 dwarf2_default_access_attribute.
6628 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6630 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6631 to the initialization.
6633 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6635 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6638 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6640 Remove support for old Cygwin 1.5 versions.
6641 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6642 function on old Cygwin version.
6643 * windows-nat.c: Remove cygwin version check and always define
6644 __USEWIDE for Cygwin compilation.
6646 2011-04-07 Yao Qi <yao@codesourcery.com>
6648 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6650 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6651 (arm_copy_svc): Remove parameters INSN and TO.
6652 (decode_svc_copro): Update caller.
6653 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6654 from function pointer `copy_svc_os'.
6656 2011-04-07 Yao Qi <yao@codesourcery.com>
6658 * arm-tdep.c (cleanup_branch): Set a correct return address in
6659 LR for ARM and Thumb.
6661 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6665 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6666 in the function comment, a new note on values compatibility.
6667 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6668 * symtab.h (SYMBOL_HASH_NEXT): New.
6670 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6672 * ppc-linux-nat.c (check_condition): Add len output parameter.
6673 Set it based on the memory region referenced in the condition
6674 expression. Update all callers.
6676 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6678 Fix crash regression on systems featuring .gdb_index.
6679 * objfiles.c (free_objfile): Move the
6680 forget_cached_source_info_for_objfile call earlier. Comment it.
6681 Extend the comment for objfile_free_data.
6683 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6685 Fix regression of displaying the debug format.
6686 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6689 2011-04-04 Tom Tromey <tromey@redhat.com>
6691 * cli/cli-interp.c (struct captured_execute_command_args):
6693 (do_captured_execute_command): Remove.
6694 (safe_execute_command): Use TRY_CATCH.
6695 * cli/cli-script.c (struct wrapped_read_command_file_args):
6697 (wrapped_read_command_file): Remove.
6698 (script_from_file): Use TRY_CATCH.
6699 * exceptions.c (catch_exception): Remove.
6700 * exceptions.h (catch_exception): Remove.
6701 (deprecated_throw_reason): Update comment.
6702 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6703 argument to 'context'.
6704 (mi_execute_command): Use TRY_CATCH.
6705 * remote.c (struct start_remote_args): Remove.
6706 (remote_start_remote): Update; change arguments.
6707 (remote_open_1): Use TRY_CATCH.
6709 2011-04-04 Tom Tromey <tromey@redhat.com>
6711 * tracepoint.c (scope_info): Update.
6712 * symtab.c (decode_line_spec): Update.
6713 * python/python.c (gdbpy_decode_line): Update.
6714 * linespec.h (decode_line_1): Update.
6715 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6716 (decode_compound, find_method, symtab_from_filename)
6717 (decode_variable): Likewise.
6718 * cli/cli-cmds.c (edit_command): Update.
6719 (list_command): Update.
6720 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6722 (create_breakpoint): Update.
6723 (until_break_command): Update.
6724 (addr_string_to_sals): Update.
6725 (decode_line_spec_1): Update.
6727 2011-04-04 Tom Tromey <tromey@redhat.com>
6729 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6730 (do_captured_parse_breakpoint): Remove.
6731 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6732 Use TRY_CATCH directly.
6734 2011-04-04 Tom Tromey <tromey@redhat.com>
6736 * symtab.h (free_symtab): Remove.
6737 (forget_cached_source_info_for_objfile): Declare.
6738 * symmisc.c (free_symtab): Remove.
6739 * source.c (forget_cached_source_info_for_objfile): New function.
6740 (forget_cached_source_info): Use it.
6741 * objfiles.c (free_objfile): Simplify check before calling
6742 clear_current_source_symtab_and_line. Call
6743 forget_cached_source_info_for_objfile.
6745 2011-04-04 Tom Tromey <tromey@redhat.com>
6747 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6748 (new_symtab): Don't set `free_code' on symtab.
6749 (new_linetable): Properly handle size==0.
6750 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6751 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6753 * jv-lang.c (struct jv_per_objfile_data): New.
6754 (jv_per_objfile_free): Free the data.
6755 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6756 (get_java_class_symtab): Set the `dict' field on the
6757 jv_per_objfile_data.
6758 (free_class_block): Remove.
6759 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6762 2011-04-04 Tom Tromey <tromey@redhat.com>
6764 * symfile.c (reread_symbols): Update.
6765 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6767 * objfiles.c (allocate_objfile): Update.
6768 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6770 * cp-namespace.c (lookup_symbol_file): Don't call
6771 lookup_possible_namespace_symbol.
6772 (initialize_namespace_symtab, get_possible_namespace_block)
6773 (free_namespace_block, cp_check_possible_namespace_symbols)
6774 (check_possible_namespace_symbols_loop)
6775 (check_one_possible_namespace_symbol)
6776 (lookup_possible_namespace_symbol): Remove.
6777 (maintenance_cplus_namespace): Replace with notice.
6778 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6780 2011-04-04 Tom Tromey <tromey@redhat.com>
6782 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6783 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6784 * symmisc.c (free_symtab): Don't free debugformat.
6785 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6786 (record_debugformat, record_producer): Document.
6787 * buildsym.c (end_symtab): Don't save debugformat and producer
6789 (end_symtab): Don't free debugformat and producer fields.
6790 (record_debugformat): Don't call xstrdup.
6791 (record_producer): Likewise.
6793 2011-04-04 Tom Tromey <tromey@redhat.com>
6795 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6796 (source_line_charpos, source_charpos_line): Remove.
6798 2011-04-04 Tom Tromey <tromey@redhat.com>
6800 * symtab.h (domain_enum): Split in two...
6801 (enum search_domain): New.
6802 (search_symbols): Update.
6803 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6804 redundant declarations.
6805 (search_symbols): Change 'kind' argument to search_domain.
6807 (print_symbol_info): Likewise.
6808 (symtab_symbol_info): Likewise.
6809 * symfile.h (struct quick_symbol_functions)
6810 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6811 <expand_symtabs_matching>: Likewise.
6812 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6813 (expand_symtabs_matching_via_partial): Update.
6814 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6815 (dw2_expand_symtabs_for_function): Update.
6816 * block.h: Moved anonymous enum...
6817 * defs.h (enum block_enum): ... here. Now named.
6819 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6821 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6822 * version.in: Bump version to 7.3.50.20110403-cvs.
6824 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6826 * NEWS: Create a new section for the next release branch.
6827 Rename the section of the current branch, now that it has
6830 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6832 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6833 for "fpscr" in target description.
6835 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6838 initialize it. Delay HASH initialization. Strip the part after open
6839 parenthesis for languages with qualifiers. Call do_cleanups.
6841 2011-04-01 Tom Tromey <tromey@redhat.com>
6843 * utils.c (report_command_stats): Don't print `-' for negative
6846 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6848 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6849 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6852 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6854 * breakpoint.h (bpdisp_text): Add declaration.
6855 * breakpoint.c (bpdisp_text): Make non-static.
6856 * ada-lang.c: #include "mi/mi-common.h".
6857 (print_it_exception): Rewrite to improve GDB/MI output.
6859 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6861 * arm-tdep.h (struct address_space): Add forward declaration.
6863 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6865 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6866 * arm-tdep.c (arm_override_mode): New global.
6867 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6868 execution mode heuristics.
6869 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6870 second single-step breakpoint if needed, using
6871 arm_insert_single_step_breakpoint.
6872 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6873 ARM execution mode, do not call thumb_get_next_pc_raw.
6874 (arm_get_next_pc): Encode execution mode in return value. Call
6875 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6876 (arm_insert_single_step_breakpoint): New function.
6877 (arm_software_single_step): Call it.
6878 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6879 argument to return execution mode of sigreturn target.
6880 (arm_linux_syscall_next_pc): Use it.
6881 (arm_linux_copy_svc): Update call.
6882 (arm_linux_software_single_step): Call
6883 arm_insert_single_step_breakpoint.
6885 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6887 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6890 2011-03-31 Tom Tromey <tromey@redhat.com>
6892 * varobj.c (update_dynamic_varobj_children): Properly handle
6893 errors from iterator.
6895 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6897 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6898 struct linkage name twice.
6900 2011-03-31 Tom Tromey <tromey@redhat.com>
6902 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6903 missing ">" to message.
6905 2011-03-31 Tom Tromey <tromey@redhat.com>
6907 * varobj.c (instantiate_pretty_printer): Remove duplicate
6910 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6912 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6913 if neither saved value nor register available (e.g. signal frame).
6915 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6917 * macroexp.c (expand): Avoid uninitialized variable
6920 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6922 * breakpoint.c (break_range_command): Fix typo in comment.
6924 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6925 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6927 Implement support for PowerPC BookE ranged breakpoints.
6928 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6929 * breakpoint.h (struct bp_target_info) <length>: New member
6931 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6932 instead of struct breakpoint as argument, and also add ASPACE
6933 and BP_ADDR arguments. Update all callers.
6934 (struct breakpoint_ops) <print_one_detail>: New method.
6935 (struct breakpoint) <addr_string_range_end>: New member variable.
6936 * breakpoint.c (breakpoint_location_address_match): Add function
6938 (insert_bp_location): Set bl->target_info.length.
6939 (breakpoint_here_p): Call breakpoint_location_address_match.
6940 (moribund_breakpoint_here_p): Likewise.
6941 (regular_breakpoint_inserted_here_p): Likewise.
6942 (breakpoint_thread_match): Likewise.
6943 (bpstat_stop_status): Likewise.
6944 (bpstat_check_location): Move call to
6945 breakpoint_ops.breakpoint_hit to the top.
6946 (print_one_breakpoint_location): Call
6947 breakpoint_ops.print_one_detail if available.
6948 (breakpoint_address_match_range): New function.
6949 (breakpoint_location_address_match): Likewise.
6950 (breakpoint_locations_match): Compare the length field of the
6952 (hw_breakpoint_used_count): Count resources used by all locations
6953 in a breakpoint, and use breakpoint_ops.resources_needed if
6955 (breakpoint_hit_ranged_breakpoint): New function.
6956 (resources_needed_ranged_breakpoint): Likewise.
6957 (print_it_ranged_breakpoint): Likewise.
6958 (print_one_ranged_breakpoint): Likewise.
6959 (print_one_detail_ranged_breakpoint): Likewise.
6960 (print_mention_ranged_breakpoint): Likewise.
6961 (print_recreate_ranged_breakpoint): Likewise.
6962 (ranged_breakpoint_ops): New structure.
6963 (find_breakpoint_range_end): New function.
6964 (break_range_command): Likewise.
6965 (delete_breakpoint): Free addr_string_range_end.
6966 (update_breakpoint_locations): Add SALS_END argument. Update
6967 all callers. Calculate breakpoint length if a non-zero SALS_END
6968 is given. Call breakpoint_locations_match instead of
6969 breakpoint_address_match.
6970 (reset_breakpoint): Find SaL of the end of the range if B is a
6972 (_initialize_breakpoint): Register break-range command.
6973 * defs.h (print_core_address): Add function prototype.
6974 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6976 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6977 (ppc_linux_remove_hw_breakpoint): Likewise.
6978 (_initialize_ppc_linux_nat): Initialize
6979 to_ranged_break_num_registers.
6980 * target.c (update_current_target): Add comment about
6981 to_ranged_break_num_registers.
6982 (target_ranged_break_num_registers): New function.
6983 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6985 (target_ranged_break_num_registers): Add function prototype.
6986 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6987 * utils.c (print_core_address): ... here.
6989 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6991 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6992 variable compiler warning.
6994 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6996 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6998 (re_set_breakpoint): ... to here ...
6999 (addr_string_to_sals): ... and here.
7001 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7003 * Makefile.in (SFILES): Add missing C sources.
7004 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7005 Add missing headers.
7007 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7009 * .gitignore: New file.
7011 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7013 * NEWS: Mention new cfi device simulation.
7015 2011-03-29 Tom Tromey <tromey@redhat.com>
7017 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7018 otherwise anonymous types.
7019 (dwarf2_name): Likewise.
7020 * valops.c (value_struct_elt_for_reference): Refine artificial
7021 type logic. Call error if j==-1.
7023 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7025 Fix false GCC warning.
7026 * infcall.c (find_function_addr): Initialize funaddr.
7028 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7030 Fix mingw compilation with --enable-targets=all.
7031 * remote-mips.c (gdb_usleep.h): Include header.
7032 (mips_enter_debug): Use gdb_usleep instead of sleep.
7034 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 Support resolution of STT_GNU_IFUNC via breakpoints.
7037 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7038 bp_gnu_ifunc_resolver_return.
7039 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7040 the loop. Support bp_gnu_ifunc_resolver and
7041 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7042 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7044 (bptype_string, print_one_breakpoint_location): Support
7045 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7046 (user_settable_breakpoint): Return true also for
7047 bp_gnu_ifunc_resolver.
7048 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7049 bp_gnu_ifunc_resolver_return.
7050 (set_breakpoint_location_function): New parameter explicit_loc,
7051 describe it. Call find_pc_partial_function_gnu_ifunc with new
7052 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7053 EXPLICIT_LOC is not set.
7054 (set_raw_breakpoint): Set EXPLICIT_LOC for
7055 set_breakpoint_location_function.
7056 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7057 set_breakpoint_location_function.
7058 (mention): Support bp_gnu_ifunc_resolver and
7059 bp_gnu_ifunc_resolver_return.
7060 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7061 set_breakpoint_location_function.
7062 (update_breakpoint_locations): Remove static.
7063 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7064 bp_gnu_ifunc_resolver_return.
7065 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7066 bp_gnu_ifunc_resolver_return.
7067 (update_breakpoint_locations): New declaration.
7068 * elfread.c: Include gdbthread.h and regcache.h.
7069 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7071 (elf_gnu_ifunc_fns): Install them.
7072 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7073 (stub_gnu_ifunc_resolver_return_stop): New functions.
7074 (stub_gnu_ifunc_fns): Install them.
7075 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7076 and gnu_ifunc_resolver_return_stop.
7077 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7079 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7081 STT_GNU_IFUNC reader implementation.
7082 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7083 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7084 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7085 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7086 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7087 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7088 (elf_gnu_ifunc_resolve_addr): New.
7089 (elf_symfile_read): Call elf_rel_plt_read.
7090 (elf_gnu_ifunc_fns): New.
7091 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7092 Install elf_gnu_ifunc_fns.
7093 * infcall.c (find_function_return_type): New function.
7094 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7095 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7096 (stub_gnu_ifunc_resolve_name): New functions.
7097 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7098 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7099 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7101 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7103 Code cleanup for later STT_GNU_IFUNC support.
7104 * infcall.c (find_function_addr): Remove variable code, use explicit
7105 dereferences for it. Move VALUE_TYPE initialization later.
7107 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7109 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7110 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7111 (clear_pc_function_cache): Clear it.
7112 (find_pc_partial_function): Rename to ...
7113 (find_pc_partial_function_gnu_ifunc): ... this function. New
7114 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7115 (find_pc_partial_function): New wrapper for this function.
7116 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7118 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7120 GDB internal type support for STT_GNU_IFUNC.
7121 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7122 (elf_symtab_read): Set mst_text_gnu_ifunc for
7123 BSF_GNU_INDIRECT_FUNCTION.
7124 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7125 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7126 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7127 nodebug_got_plt_symbol.
7128 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7129 (TYPE_GNU_IFUNC): New.
7130 (struct main_type): New field flag_gnu_ifunc.
7131 (struct builtin_type): New field builtin_func_func.
7132 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7133 nodebug_got_plt_symbol.
7134 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7135 (in_gnu_ifunc_stub): New.
7136 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7138 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7139 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7140 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7142 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7143 * symtab.c (search_symbols): Likewise.
7144 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7145 and mst_slot_got_plt.
7146 (in_gnu_ifunc_stub): New declaration.
7148 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7150 Support a ring of related breakpoints.
7151 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7152 other functions, add gdb_assert.
7153 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7154 watchpoint_del_at_next_stop.
7155 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7156 (bpstat_stop_status): Handle ring in related_breakpoint.
7157 (set_raw_breakpoint_without_location): Initialize ring in
7159 (delete_breakpoint): Handle ring in related_breakpoint, use
7160 watchpoint_del_at_next_stop.
7161 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7163 2011-03-28 Tom Tromey <tromey@redhat.com>
7166 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7167 with `language_minimal'.
7169 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7171 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7172 instead of checking for STT_ARM_TFUNC symbol type.
7174 2011-03-25 Tom Tromey <tromey@redhat.com>
7176 * linespec.c (symbol_found): Restore line-based result for
7177 non-LOC_LABEL symbols.
7179 2011-03-25 Kai Tietz <ktietz@redhat.com>
7181 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7182 instead of strcmp for comparison.
7183 (tui_source_is_displayed): Likewise.
7184 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7186 2011-03-24 Mark Wielaard <mjw@redhat.com>
7188 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7190 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7191 (find_partial_die_in_comp_unit): Likewise in comment.
7192 (read_attribute_value): Likewise.
7193 (lookup_die_type): Likewise.
7194 (dwarf_form_name): Likewise.
7195 (dump_die_shallow): Likewise.
7196 (follow_die_ref_or_sig): Likewise.
7198 2011-03-24 Tom Tromey <tromey@redhat.com>
7200 PR breakpoints/11816:
7201 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7202 (decode_compound): Update.
7203 (find_function_symbol): New function.
7204 (decode_dollar): Update.
7205 (decode_label): Add 'function_symbol' parameter. Handle
7206 function-relative labels.
7207 (decode_variable): Update.
7208 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7209 not its line. Set `special_display' and canonical name for
7212 2011-03-24 Tom Tromey <tromey@redhat.com>
7214 * linespec.h (struct linespec_result) <special_display>: New
7216 * breakpoint.h (struct breakpoint) <display_canonical>: New
7218 * breakpoint.c (print_breakpoint_location): Respect
7220 (create_breakpoint_sal): Add 'display_canonical' parameter.
7221 (create_breakpoints_sal): Update.
7222 (create_breakpoint): Update.
7224 2011-03-24 Tom Tromey <tromey@redhat.com>
7226 * symtab.c (decode_line_spec): Update.
7227 * linespec.c (build_canonical_line_spec): Change type of
7229 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7230 (find_method, decode_all_digits, decode_dollar, decode_label)
7231 (symbol_found): Likewise.
7232 (init_linespec_result): New function.
7233 * breakpoint.c (struct captured_parse_breakpoint_args)
7234 <canonical_p>: New field, replaces addr_string_p.
7235 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7237 (parse_breakpoint_sals): Likewise.
7238 (do_captured_parse_breakpoint): Update.
7239 (create_breakpoint): Use struct linespec_result.
7240 (until_break_command): Update.
7241 (breakpoint_re_set_one): Update.
7242 (decode_line_spec_1): Update.
7243 * linespec.h (struct linespec_result): New.
7244 (init_linespec_result): Declare.
7246 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7248 * regcache.c (regcache_raw_read): If the target didn't supply a
7249 given raw register, mark it as unavailable.
7251 2011-03-23 Kai Tietz <ktietz@redhat.com>
7253 * breakpoint.c (clear_command): Use filename_cmp
7254 instead of strcmp for comparison.
7255 * buildsym.c (watch_main_source_file_lossage): Likewise.
7256 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7257 checking just for slash.
7258 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7259 strrchr and filename_cmp instead of strcmp for filenames.
7260 (add_old_header_file): Use filename_cmp
7261 instead of strcmp for comparison.
7262 * exec.c (exec_set_section_address): Likewise.
7263 * macrotab.c (macro_lookup_inclusion): Likewise.
7264 (macro_lookup_inclusion): Likewise.
7265 * elfread.c (_initialize_elfread): Likewise.
7266 (elfstab_offset_sections): Likewise.
7267 (elfstab_offset_sections): Use lbasename instead of
7269 * mdebugread.c (parse_partial_symbols): Likewise.
7270 (arse_partial_symbols): Use filename_(n)cmp instead of
7271 str(n)cmp for comparison.
7272 * minsyms.c (lookup_minimal_symbol): Likewise.
7273 * psymtab.c (read_psymtabs_with_filename): Likewise.
7274 * solib.c (solib_read_symbols): Likewise.
7275 (reload_shared_libraries_1): Likewise.
7276 * symmisc.c (maintenance_print_symbols): Likewise.
7277 * symfile.c (separate_debug_file_exists): Likewise.
7278 (reread_symbols): Likewise.
7279 (find_separate_debug_file_by_debuglink): Likewise.
7280 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7281 * source.c (add_path): Likewise.
7282 * symtab.c (filename_seen): Likewise.
7283 (file_matches): Likewise.
7284 (print_symbol_info): Likewise.
7285 (maybe_add_partial_symtab_filename): Likewise.
7286 (make_source_files_completion_list): Likewise.
7287 * xml-syscall.c (init_sysinfo): Likewise.
7288 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7289 IS_DIR_SEPARATOR for checking for trailing path separator.
7291 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7293 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7294 label abort_expression.
7295 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7296 DWARF_VALUE_OPTIMIZED_OUT.
7298 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7301 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7302 to linkage_name. Invert its value. Update the function comment.
7303 (c_type_print_varspec_suffix): Invert it at the caller.
7304 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7306 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7308 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7309 errors when reading the `stop_pc'.
7310 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7313 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7315 * NEWS: Document gdb.Write stream keyword.
7317 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7320 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7321 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7322 (dwarf2_add_field): Fix new_field->accessibility for
7323 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7325 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7329 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7330 other error classes. Do not print stack trace.
7332 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7334 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7335 (dwarf2_add_field): Fix new_field->accessibility for
7336 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7338 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7340 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7341 encountering a load via a non-SP register.
7343 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7345 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7346 field in returned unwinder.
7348 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7350 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7352 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7354 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7357 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7359 * frame.c (frame_unwind_register): Throw an error if unwinding the
7361 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7362 an unwind stop reason.
7363 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7364 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7365 UNWIND_UNAVAILABLE>: New.
7366 * inline-frame.c (inline_frame_unwind): Install
7367 default_frame_unwind_stop_reason.
7368 * frame-unwind.c: Include "exceptions.h".
7369 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7370 (default_frame_unwind_stop_reason): New.
7371 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7372 (default_frame_unwind_stop_reason): Declare.
7373 (struct frame_unwind) <stop_reason>: New function pointer.
7375 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7376 * dwarf2-frame.c: Include exceptions.h.
7377 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7378 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7379 computing the CFA. If such an error was thrown, set
7380 unavailable_retaddr.
7381 (dwarf2_frame_unwind_stop_reason): New.
7382 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7384 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7385 (dwarf2_signal_frame_unwind): Ditto.
7387 * amd64-tdep.c: Include "exceptions.h".
7388 (struct amd64_frame_cache): New field "base_p".
7389 (amd64_init_frame_cache): Clear it.
7390 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7391 Avoid reading registers with functions that throw if the register
7392 is not necessary to compute the frame base.
7393 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7394 swallowing NOT_AVAILABLE_ERROR.
7395 (amd64_frame_unwind_stop_reason): New.
7396 (amd64_frame_this_id): Don't build a frame id if the frame base
7398 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7399 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7400 base_p if the frame base was computable.
7401 (amd64_sigtramp_frame_unwind_stop_reason): New.
7402 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7403 frame base was unavailable.
7404 (amd64_sigtramp_frame_unwind): Install
7405 amd64_sigtramp_frame_unwind_stop_reason.
7406 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7407 base_p if the frame base was computable.
7408 (amd64_epilogue_frame_unwind_stop_reason): New.
7409 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7410 frame base was unavailable.
7411 (amd64_epilogue_frame_unwind): Install
7412 amd64_epilogue_frame_unwind_stop_reason.
7413 * i386-tdep.c: Include "exceptions.h".
7414 (struct i386_frame_cache): New field "base_p".
7415 (i386_init_frame_cache): Clear it.
7416 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7417 Avoid reading registers with functions that throw if the register
7418 is not necessary to compute the frame base.
7419 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7420 swallowing NOT_AVAILABLE_ERROR.
7421 (i386_frame_unwind_stop_reason): New.
7422 (i386_frame_this_id): Don't build a frame id if the frame base was
7424 (i386_frame_prev_register): Handle unavailable SP.
7425 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7426 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7427 base_p if the frame base was computable.
7428 (i386_epilogue_frame_unwind_stop_reason): New.
7429 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7430 base was unavailable.
7431 (i386_epilogue_frame_unwind): Install
7432 i386_epilogue_frame_unwind_stop_reason.
7433 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7434 base_p if the frame base was computable.
7435 (i386_sigtramp_frame_unwind_stop_reason): New.
7436 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7437 base was unavailable.
7438 (i386_sigtramp_frame_unwind): Install
7439 i386_sigtramp_frame_unwind_stop_reason.
7440 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7441 type's size, not the register's.
7442 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7444 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7445 default_frame_unwind_stop_reason.
7446 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7447 (alpha_heuristic_frame_unwind): Ditto.
7448 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7449 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7450 * avr-tdep.c (avr_frame_unwind): Ditto.
7451 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7453 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7454 * frv-tdep.c (frv_frame_unwind): Ditto.
7455 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7456 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7457 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7458 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7459 (hppa_stub_frame_unwind): Ditto.
7460 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7461 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7462 (ia64_libunwind_frame_unwind)
7463 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7464 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7465 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7466 * m32c-tdep.c (m32c_unwind): Ditto.
7467 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7468 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7469 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7470 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7471 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7472 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7473 * mep-tdep.c (mep_frame_unwind): Ditto.
7474 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7475 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7476 (mips_stub_frame_unwind): Ditto.
7477 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7478 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7479 * mt-tdep.c (mt_frame_unwind): Ditto.
7480 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7481 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7482 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7483 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7484 (s390_sigtramp_frame_unwind): Ditto.
7485 * score-tdep.c (score_prologue_unwind): Ditto.
7486 * sh-tdep.c (sh_frame_unwind): Ditto.
7487 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7488 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7489 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7490 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7491 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7492 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7493 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7494 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7495 (sparc64obsd_trapframe_unwind): Ditto.
7496 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7497 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7498 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7499 * v850-tdep.c (v850_frame_unwind): Ditto.
7500 * vax-tdep.c (vax_frame_unwind): Ditto.
7501 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7502 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7503 * xtensa-tdep.c (xtensa_unwind): Ditto.
7505 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7507 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7508 there's always a frame. Use get_frame_pc_if_available instead of
7509 get_frame_pc, and if there's no PC available, don't look up a
7512 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7514 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7517 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7519 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7522 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7524 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7525 * frame.c (frame_unwind_caller_pc_if_available): New.
7526 * stack.c (frame_info): Handle unavailable PC.
7528 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7530 * frame.c (frame_unwind_pc): Rename to ...
7531 (frame_unwind_pc_if_available): ... this. New `pc' output
7532 parameter. Change return type to int. Gracefully handle
7533 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7534 happened, or 1 otherwise.
7535 (frame_unwind_pc): Reimplement on top of
7536 frame_unwind_pc_if_available.
7537 (get_frame_func): Rename to ...
7538 (get_frame_func_if_available): New `pc' output parameter. Change
7539 return type to int. Gracefully handle the PC not being available.
7540 (get_frame_func): Reimplement on top of
7541 get_frame_func_if_available.
7542 (select_frame): Handle the PC being unavailable.
7543 (get_prev_frame): Handle the PC being unavailable.
7544 (get_frame_pc_if_available): New.
7545 (get_frame_address_in_block_if_available): New.
7546 (find_frame_sal): Handle the frame PC not being available.
7547 * frame.h (get_frame_pc_if_available): Declare.
7548 (get_frame_address_in_block_if_available): Declare.
7549 (get_frame_func_if_available): Declare.
7550 * stack.c (print_frame_info): Handle the PC being unavailable.
7551 (find_frame_funname): Ditto.
7552 (print_frame): Handle the PC being unavailable.
7553 (get_frame_language): Ditto.
7554 * blockframe.c (get_frame_block): Ditto.
7555 * macroscope.c (default_macro_scope): Ditto.
7556 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7558 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7560 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7561 NOT_AVAILABLE_ERROR when evaluating the location expression.
7563 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7565 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7566 returning that the register piece is unavailable/optimized out.
7567 (write_pieced_value): Handle get_frame_register_bytes returning
7568 that the register piece is unavailable/optimized out when doing a
7569 read-modify write of a bitfield.
7570 * findvar.c (value_from_register): Handle get_frame_register_bytes
7571 returning that the register piece is unavailable/optimized out.
7572 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7573 and `unavailablep'. Throw error on bad debug info. Use
7574 frame_register instead of frame_register_read, to fill in the new
7576 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7578 * valops.c: (value_assign): Adjust, and handle
7579 get_frame_register_bytes failing.
7580 * spu-tdep.c: Include exceptions.h.
7581 (spu_software_single_step): Adjust, and handle
7582 get_frame_register_bytes failing.
7583 (spu_get_longjmp_target): Ditto.
7584 * gdbarch.sh (register_to_value): Change to return int. New
7585 parameters `optimizedp' and `unavailablep'.
7586 * gdbarch.h, gdbarch.c: Regenerate.
7587 * i386-tdep.c (i386_register_to_value): Adjust to new
7588 gdbarch_register_to_value interface.
7589 * i387-tdep.c (i387_register_to_value): Ditto.
7590 * i387-tdep.h (i387_register_to_value): Ditto.
7591 * alpha-tdep.c (alpha_register_to_value): Ditto.
7592 * ia64-tdep.c (ia64_register_to_value): Ditto.
7593 * m68k-tdep.c (m68k_register_to_value): Ditto.
7594 * mips-tdep.c (mips_register_to_value): Ditto.
7595 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7597 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7599 * findvar.c (value_of_register): Mark the value as unavailable, if
7600 the register is unavailable.
7601 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7602 (frame_register): New `unavailablep' parameter.
7603 (frame_register_read): Update comment.
7604 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7605 Set it if the register is unavailable. If the register is
7606 unavailable, clear the output buffer.
7607 (frame_register): New `unavailablep' parameter. Pass it down.
7608 (frame_unwind_register): Adjust.
7609 (put_frame_register): Adjust.
7610 (frame_register_read): Adjust. Also return false if the register
7612 (frame_register_unwind_location): Adjust.
7613 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7614 is unavailable, mark the value accordingly.
7615 * stack.c (frame_info): Handle unavailable registers.
7617 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7619 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7620 simplify, using regcache_cooked_read.
7622 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7624 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7625 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7626 (regcache_raw_read_unsigned, regcache_raw_read_part)
7627 (regcache_cooked_read, regcache_cooked_read_signed)
7628 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7629 (regcache_cooked_read_ftype): Change return to enum
7631 * regcache.c: Include exceptions.h
7632 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7633 (do_cooked_read): Change return to enum register_status. Always
7634 forward to regcache_cooked_read.
7635 (regcache_raw_read): Change return to enum register_status. If
7636 the register is not REG_VALID, memset the buffer. Return the
7638 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7639 return the register's status.
7640 (regcache_raw_read_unsigned): Ditto.
7641 (regcache_cooked_read): Change return to enum register_status.
7642 Assert that with read-only regcaches, the register's status must
7643 be known. If the regcache is read-only, and the register is not
7644 REG_VALID, memset the buffer. Return the register's status.
7645 (regcache_cooked_read_signed): Change return to enum
7646 register_status. Handle non-REG_VALID registers and return the
7648 (regcache_cooked_read_unsigned): Change return to enum
7649 register_status. Handle non-REG_VALID registers and return the
7651 (regcache_xfer_part, regcache_raw_read_part)
7652 (regcache_cooked_read_part): Change return to enum
7653 register_status. Return the register's status.
7654 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7656 (regcache_dump): Handle unavailable cooked registers.
7657 * frame.c (do_frame_register_read): Adjust interface to match
7658 regcache_cooked_read_ftype.
7659 * gdbarch.sh (pseudo_register_read): Change return to enum
7661 * gdbarch.h, gdbarch.c: Regenerate.
7663 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7665 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7666 register_status. If reading a raw register indicates the raw
7667 register is not valid, return the raw register's status,
7668 otherwise, return REG_VALID.
7669 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7670 register_status. Handle non-REG_VALID raw registers and return
7671 the register's status.
7672 * arm-tdep.c (arm_neon_quad_read)
7673 (arm_pseudo_read): Change return to enum register_status. Handle
7674 non-REG_VALID raw registers and return the register's status.
7675 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7676 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7677 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7678 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7679 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7681 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7682 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7683 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7684 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7685 (m32c_pseudo_register_read): Change return to enum
7686 register_status. Adjust.
7687 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7688 enum register_status. Return the register's status.
7689 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7690 register_status. Return the register's status.
7691 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7692 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7693 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7694 * rs6000-tdep.c (move_ev_register_func): New typedef.
7695 (e500_move_ev_register): Use it. Change return to enum
7696 register_status. Return the register's status.
7697 (do_regcache_raw_read): New function.
7698 (do_regcache_raw_write): New function.
7699 (e500_pseudo_register_read): Change return to enum
7700 register_status. Return the register's status. Use
7701 do_regcache_raw_read.
7702 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7703 (dfp_pseudo_register_read): Change return to enum register_status.
7704 Return the register's status.
7705 (vsx_pseudo_register_read): Ditto.
7706 (efpr_pseudo_register_read): Ditto.
7707 (rs6000_pseudo_register_read): Ditto.
7708 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7709 register_status. Return the register's status.
7710 * sh64-tdep.c (pseudo_register_read_portions): New function.
7711 (sh64_pseudo_register_read): Change return to enum
7712 register_status. Use pseudo_register_read_portions. Return the
7714 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7715 register_status. Return the register's status.
7716 * sh-tdep.c (pseudo_register_read_portions): New function.
7717 (sh_pseudo_register_read): Change return to enum register_status.
7718 Use pseudo_register_read_portions. Return the register's status.
7719 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7720 enum register_status. Return the register's status.
7721 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7722 * spu-tdep.c (spu_pseudo_register_read_spu)
7723 (spu_pseudo_register_read): Ditto.
7724 * xtensa-tdep.c (xtensa_register_read_masked)
7725 (xtensa_pseudo_register_read): Ditto.
7726 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7728 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7730 * python/py-value.c (valpy_getitem): Fix formatting of error function
7733 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7735 ARI fixes: Add missing internationalization markups throughout
7737 * darwin-nat-info.c: Ditto.
7740 * mi/mi-main.c: Ditto.
7742 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7744 ARI fixes: Add missing internationalization markups throughout
7747 * cp-name-parser.y: Ditto.
7750 * objc-exp.y: Ditto.
7753 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7755 ARI fixes: Messages should have no trailing new lines.
7756 * darwin-nat.c (mach_check_error): Remove trailing new line from
7757 warning function call message.
7758 * record.c (bfdcore_read): Idem for error call.
7760 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7762 * common/signals.c (target_signal_from_host): Add _ markup to error
7763 function call message.
7764 (target_signal_to_host): Add _ markup and remove trailing new line
7765 from warning call message.
7766 (target_signal_from_command): Add _ markup to error function call
7769 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7773 * python/python.c (gdbpy_write): Accept a stream argument and
7774 operate to the appropriate stream.
7775 (gdbpy_flush): Likewise.
7776 (_initialize_python): Add stream constants.
7777 (finish_python_initialization): Add GdbOutputErrorFile class.
7779 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7781 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7783 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7785 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7786 to store_signed_integer. Add debug message when relocating CALL
7787 instructions. Fix formatting of debug message.
7788 * i386-tdep.c (i386_relocate_instruction): Ditto.
7790 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7792 * target.h (struct target_ops): Remove to_lookup_symbol field.
7793 (target_lookup_symbol): Delete macro.
7794 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7795 (update_current_target, setup_target_debug): Remove handling
7796 of to_lookup_symbol target_ops field.
7797 * ada-tasks.c (get_known_tasks_addr): Remove use of
7798 target_lookup_symbol.
7799 * coffread.c (coff_symtab_read): Likewise.
7800 * dbxread.c (read_dbx_symtab): Ditto.
7802 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7805 * configure.ac: Add getthrds declaration check.
7806 * configure, config.in: Regenerate.
7807 * aix-thread.c (getthrds): Declare only if not already declared
7808 in procinfo.h. More declaration out of get_signaled_thread to
7811 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7813 * python/py-symtab.c: Populate symtab_object_methods,
7815 (stpy_is_valid): New function.
7816 (salpy_is_valid): Ditto.
7817 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7818 (sympy_is_valid): New function.
7819 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7820 (objfpy_is_valid): New function.
7821 * python/py-inferior.c: Populate inferior_object_methods.
7822 (infpy_is_valid): New function.
7823 * python/py-infthread.c: Populate thread_object_methods.
7824 (thpy_is_valid): New function.
7825 * python/py-block.c: Declare block_object_methods. Populate. Declare
7826 block_iterator_object_methods. Populate.
7827 (blpy_is_valid): New function.
7828 (blpy_iter_is_valid): Ditto.
7830 2011-03-16 Keith Seitz <keiths@redhat.com>
7832 * linespec.c (find_methods): Canonicalize NAME before looking
7834 (name_end): New function.
7835 (keep_name_info): New function.
7836 (decode_line_1): Use keep_name_info.
7837 (decode_compound): Likewise.
7838 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7839 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7842 * linespec.c (locate_first_half): Keep overload information, too.
7843 (decode_compound): Use a string to represent break characters
7845 If P points to a break character, do not increment it.
7846 For C++ and Java, keep overload information and relevant keywords.
7847 If we cannot find a symbol, search the minimal symbols.
7850 * linespec.c (decode_compound): Rename SAVED_ARG to
7852 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7854 Pass a valid block to lookup_symbol.
7855 (lookup_prefix_sym): Likewise.
7856 (find_method): Construct search name based on SYM_CLASS instead
7858 * psymtab.c (lookup_partial_symbol): Add language parameter.
7859 (lookup_symbol_aux_psymtabs): Likewise.
7860 Don't assume that the psymtab we found was the right one. Search
7861 for the desired symbol in the symtab to be certain.
7862 (psymtab_search_name): New function.
7863 (lookup_partial_symbol): Use psymtab_search_name.
7864 Add language parameter.
7865 (read_symtabs_for_function): Add language parameter and pass to
7866 lookup_partial_symbol.
7867 (find_symbol_file_from_partial): Likewise.
7869 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7872 * dwarf2read.c (noop_record_line): New function.
7873 (dwarf_decode_lines): Ignore line tables for GCd functions.
7875 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7877 Fix ARI warnings about new lines at the end of messages, which
7878 are unneeded as there is a new line added at the end of the message
7880 * darwin-nat.c (darwin_stop_inferior): Ditto.
7881 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7882 * dfp.c (decimal_to_number): Ditto.
7883 * exec.c (print_section_info): Ditto.
7884 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7885 * osdata.c (get_osdata): Ditto.
7886 * record.c (bfdcore_write): Ditto.
7887 * remote-mips.c (mips_readchar): Ditto.
7888 * remote.c (read_ptid): Ditto.
7889 * ser-mingw.c (ser_windows_raw): Ditto.
7890 * tracepoint.c (add_local_symbols): Ditto.
7891 * windows-nat.c (fake_create_process): Ditto.
7893 2011-03-16 Tom Tromey <tromey@redhat.com>
7895 * tracepoint.c (stop_tracing): Don't declare.
7896 * event-top.c (after_char_processing_hook): Add `(void)'.
7898 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7900 * NEWS: Add Parameter sub-classing description.
7902 2011-03-16 Kai Tietz <ktietz@redhat.com>
7904 * MAINTAINERS: Update my e-mail address.
7906 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7908 * MAINTAINERS: Add myself for write after approval privileges.
7910 2011-03-15 Michael Snyder <msnyder@vmware.com>
7912 * frame.c (find_frame_sal): Assert sym is not null.
7914 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7916 * objc-lang.c (selectors_info): Check strchr for null result.
7918 * stabsread.c (define_symbol): Guard against bad stabstring input.
7920 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7922 Remove trailing spaces and tabulations from pascal language
7927 p-valprint.c: Ditto.
7929 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7931 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7932 than LOW. Comment it.
7933 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7934 HIGHPC not strictly higher than LOWPC.
7936 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7938 Fix formatting of function declarations returning a pointer in
7940 * varobj.c (varobj_add_child): Ditto.
7941 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7942 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7944 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7946 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7947 for the "generic" vector ABI used with GCC 4.3 and later.
7948 (ppc64_sysv_abi_return_value): Likewise.
7950 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7952 * infcall.c (call_function_by_hand): Function return value is
7953 always a non_lval, even when using struct_return.
7955 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7957 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7958 (map_display_numbers): New.
7959 (do_delete_display): New.
7960 (undisplay_command): Use map_display_numbers.
7961 (do_enable_disable_display): New.
7962 (enable_disable_display_command): New function.
7963 (enable_display): Delete.
7964 (enable_display_command): New.
7965 (disable_display_command): Reimplement.
7966 (_initialize_printcmd): Adjust "enable display" command to use
7967 `enable_display_command' as callback.
7969 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7971 * NEWS: Add Python breakpoint 'stop' operation.
7973 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7975 * NEWS: Delete duplicate entry. Fix typo.
7977 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7979 Fix ARI warning about function names in first column.
7980 Put prototype declaration on same line as return type.
7981 * objc-exp.y: Ditto.
7983 * python/py-stopevent.h: Ditto.
7984 For long function names, split parameters to
7985 allow function name on same line as return type.
7986 * solib-pa64.c: Ditto.
7989 For long function declaration, use single line.
7990 * hppa-tdep.h: Ditto.
7991 * inferior.h: Ditto.
7993 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7995 * python/python.h: Declare gdbpy_should_stop and
7996 gdbpy_breakpoint_has_py_cond.
7997 * python/python.c: Add python.h to includes. Remove python.h from
7998 HAVE_PYTHON definition
7999 (gdbpy_should_stop): New dummy function.
8000 (gdbpy_breakpoint_has_py_cond): New dummy function.
8001 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8002 sub-classing capabilities.
8003 (gdbpy_should_stop): New function.
8004 (gdbpy_breakpoint_has_py_cond): New function.
8005 (local_setattro): New function.
8006 * breakpoint.c (condition_command): Add check for Python 'stop'
8008 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8009 operation function as part of stop/continue tests.
8011 2011-03-14 Tom Tromey <tromey@redhat.com>
8014 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8015 (needs_frame_dwarf_call): Likewise.
8017 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8019 Fix ARI warning about functions without parameters that do not
8021 * breakpoint.c (all_tracepoints): Replace () by (void).
8022 * f-exp.y (match_string_literal): Ditto.
8024 * m2-exp.y (yylex): Ditto.
8025 * mep-tdep.c (current_me_module): Ditto.
8026 (current_options): Ditto.
8027 (current_cop_data_bus_width): Ditto.
8028 (current_cr_names): Ditto.
8029 (current_cr_is_float): Ditto.
8030 (current_ccr_names): Ditto.
8031 * objc-exp.y (yylex): Ditto.
8032 * p-exp.y (yylex): Ditto.
8033 * remote.c (send_interrupt_sequence): Ditto.
8034 * tracepoint.c (current_trace_status): Ditto.
8035 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8036 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8038 2011-03-11 Michael Snyder <msnyder@vmware.com>
8040 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8041 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8042 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8043 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8044 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8046 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8047 (delete_async_event_handler): Ditto.
8049 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8051 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8053 * top.c (set_verbose): Assert showcmd was found.
8055 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8057 * xtensa-tdep.c (warning_once): Correct style issues.
8059 2011-03-11 Yao Qi <yao@codesourcery.com>
8061 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8063 2011-03-11 Andreas Schwab <schwab@redhat.com>
8065 * common/aclocal.m4: Remove.
8067 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8069 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8070 (xtensa_write_register, xtensa_read_register): Likewise.
8071 (xtensa_hextochar): Removed.
8072 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8074 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8076 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8077 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8078 (xtensa_alloc_frame_cache): Add initialization for new fields.
8079 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8080 (warning_once): New function.
8081 (xtensa_insn_kind): New item c0opc_and.
8082 (call0_classify_opcode): Add the case for AND instruction.
8083 (call0_track_op): Change arguments. New local variable litbase.
8084 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8085 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8087 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8088 (call0_analyze_prologue): Update the comments. Change arguments.
8089 Add the variety of updates to handle extended prologues, which now can
8090 conduct dynamic stack adjustments.
8091 (call0_frame_cache): Likewise.
8092 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8093 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8095 2011-03-10 Michael Snyder <msnyder@vmware.com>
8097 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8098 (cmd_qtframe): Ditto.
8099 (cmd_qtbuffer): Ditto.
8100 (cmd_bigqtbuffer): Ditto.
8102 2011-03-10 Tom Tromey <tromey@redhat.com>
8104 * tracepoint.c (trace_actions_command): Update.
8105 * thread.c (thread_apply_command): Update.
8106 * reverse.c (delete_bookmark_command): Update.
8107 (bookmarks_info): Update.
8108 * printcmd.c (undisplay_command): Update.
8109 * memattr.c (mem_enable_command): Update.
8110 (mem_disable_command): Update.
8111 (mem_delete_command): Update.
8112 * inferior.c (detach_inferior_command): Update.
8113 (kill_inferior_command): Update.
8114 (remove_inferior_command): Update.
8115 * cli/cli-utils.h (struct get_number_or_range_state): New.
8116 (init_number_or_range): Declare.
8117 (get_number_or_range): Update.
8118 * cli/cli-utils.c (init_number_or_range): New function.
8119 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8121 (number_is_in_list): Update.
8122 * breakpoint.h (get_tracepoint_by_number): Update.
8123 * breakpoint.c (map_breakpoint_numbers): Update for change to
8124 get_number_or_range.
8125 (find_location_by_number): Use get_number, not
8126 get_number_or_range.
8127 (trace_pass_set_count): New function.
8128 (trace_pass_command): Update for change to get_number_or_range.
8130 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8133 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8135 * python/py-param.c (add_setshow_generic): Add set/show callback
8136 parameters. Register Python object context.
8137 (get_show_value): New function.
8138 (get_set_value): New function.
8139 (call_doc_function): New function.
8140 (get_doc_string): Move behind get_show_value/get_set_value.
8142 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8144 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8146 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8148 * xtensa-tdep.c (xtensa_read_register): Add comment.
8149 (xtensa_write_register): Likewise.
8150 (xtensa_hextochar): Add comment and update to match coding conventions.
8151 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8152 (execute_l32e, execute_s32e, execute_code): Update comments.
8153 (xtensa_exception_handler_t): Update to match coding conventions.
8154 (xtensa_insn_kind): Likewise.
8156 2011-03-09 Michael Snyder <msnyder@vmware.com>
8158 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8160 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8162 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8164 2011-03-09 Tom Tromey <tromey@redhat.com>
8166 * thread.c (restore_selected_frame): Handle frame_level == -1.
8167 (make_cleanup_restore_current_thread): Use
8168 get_selected_frame_if_set.
8169 * frame.h (get_selected_frame_if_set): Declare.
8170 * frame.c (get_selected_frame_if_set): New function.
8172 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8174 * cli/cli-cmds.c (shell_escape): Use lbasename.
8175 * coffread.c (coff_start_symtab): Constify parameter.
8176 (complete_symtab): Constify `name' parameter.
8177 (coff_symtab_read): Constify `filestring' local.
8178 (coff_getfilename): Constify return and `result' local.
8180 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8181 * linux-fork.c (info_checkpoints_command): Use lbasename.
8182 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8183 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8184 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8185 * procfs.c (procfs_make_note_section): Use lbasename.
8186 * tui/tui-io.c (printable_part): Constity return and parameter.
8188 (print_filename): Constify parameters, and local `s'.
8189 (tui_rl_display_match_list): Constify local `temp'.
8191 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8194 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8195 Fix DWARF-3+ DW_AT_accessibility default assumption.
8196 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8197 cu->header.version >= 3.
8199 2011-03-09 Yao Qi <yao@codesourcery.com>
8201 * common/Makefile.in: Remove.
8202 * common/configure: Remove.
8203 * common/configure.ac: Remove.
8205 2011-03-09 Yao Qi <yao@codesourcery.com>
8208 2011-02-11 Yao Qi <yao@codesourcery.com>
8210 * common/Makefile.in: Add copyright header.
8212 2011-02-11 Yao Qi <yao@codesourcery.com>
8214 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8216 * configure.ac: Add common to sub dir.
8217 * configure: Regenerate.
8219 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8221 * xtensa-tdep.c (call0_ret): New function.
8222 (xtensa_skip_prologue): Speed up analysis.
8224 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8226 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8227 while executing MI command -data-list-changed-registers.
8229 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8231 * xtensa-tdep.c (xtensa_read_register): New function.
8232 (xtensa_write_register): New function.
8233 (xtensa_find_register_by_name): New function.
8234 (xtensa_windowed_frame_cache): Update comments in type description.
8235 (xtensa_frame_cache): Likewise.
8236 (xtensa_window_interrupt_insn): New function.
8237 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8238 (xtensa_insn_kind): Add new instructions.
8239 (rwx_special_register): New function.
8240 (call0_classify_opcode): Add new instructions to the analysis.
8241 (a0_saved, a7_saved, a11_saved): New variables.
8242 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8243 (execute_l32e): New function.
8244 (execute_s32e): New function.
8245 (xtensa_exception_handler_t): New type.
8246 (execute_code): New function.
8247 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8248 analysis for Xtensa Window Exception handlers.
8250 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8252 * xtensa-tdep.c (TX_PS): New.
8253 (windowing_enabled): Update to count for Call0 ABI.
8254 (xtensa_hextochar): New.
8255 (xtensa_init_reggroups): Make algorithm generic.
8256 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8258 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8260 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8262 2011-03-08 Michael Snyder <msnyder@vmware.com>
8264 * i386-tdep.c (i386_follow_jump): Check return value of
8266 (i386_analyze_struct_return): Ditto.
8267 (i386_skip_probe): Ditto.
8268 (i386_match_insn): Ditto.
8269 (i386_skip_noop): Ditto.
8270 (i386_analyze_frame_setup): Ditto.
8271 (i386_analyze_register_saves): Ditto.
8272 (i386_skip_prologue): Ditto.
8273 (i386_skip_main_prologue): Ditto.
8275 * target.c (read_whatever_is_readable): Fix memory leak.
8277 * i386-tdep.c (i386_process_record): Document fall through.
8279 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8281 Fix DWARF-3+ DW_AT_accessibility default assumption.
8282 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8283 cu->header.version >= 3.
8285 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8287 * remote.c (remote_check_symbols): Skip if the target has no
8290 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8292 * target.c (read_whatever_is_readable): Reformat comment,
8293 with a minor typo fix. Minor reformatting of the code.
8295 2011-03-08 Yao Qi <yao@codesourcery.com>
8297 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8298 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8299 Use cached result instead of calling displaced_in_arm_mode again.
8300 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8301 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8302 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8303 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8304 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8305 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8306 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8307 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8308 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8309 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8310 (arm_catch_kernel_helper_return): Likewise.
8311 * gdb/arm-tdep.h : Update function declarations.
8313 2011-03-07 Michael Snyder <msnyder@vmware.com>
8315 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8317 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8319 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8321 * elfread.c (elf_symtab_read): Stop memory leak.
8323 * main.c (captured_main): Fix memory leak.
8325 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8327 * ada-lang.c (compare_names): Call is_name_suffix with string1
8330 2011-03-07 Tom Tromey <tromey@redhat.com>
8332 * xcoffread.c (xcoff_sym_fns): Update.
8333 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8334 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8335 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8336 (symbol_file_add_with_addrs_or_offsets): Likewise.
8337 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8338 * somread.c (som_sym_fns): Update.
8339 * psymtab.h (require_partial_symbols): Declare.
8340 * psymtab.c (require_partial_symbols): New function.
8341 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8342 (ALL_OBJFILE_PSYMTABS): Undef.
8343 (ALL_PSYMTABS): Move from psympriv.h.
8344 (lookup_partial_symtab, find_pc_sect_psymtab)
8345 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8346 (find_last_source_symtab_from_partial)
8347 (forget_cached_source_info_partial)
8348 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8349 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8350 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8351 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8352 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8353 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8354 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8355 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8356 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8358 * mipsread.c (ecoff_sym_fns): Update.
8359 * machoread.c (macho_sym_fns): Update.
8360 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8361 (read_psyms): New function.
8362 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8363 (elf_sym_fns_lazy_psyms): New global.
8364 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8365 dwarf2_build_psymtabs.
8366 * dbxread.c (aout_sym_fns): Update.
8367 * coffread.c (coff_sym_fns): Update.
8369 2011-03-07 Tom Tromey <tromey@redhat.com>
8371 * infrun.c (print_exited_reason): Include inferior id and pid in
8374 2011-03-07 Tom Tromey <tromey@redhat.com>
8376 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8378 (target_has_execution_1): Update.
8379 (target_has_execution_current): Declare.
8380 (target_has_execution): Call target_has_execution_current.
8381 (default_child_has_execution): Update.
8382 * target.c (default_child_has_execution): Add 'the_ptid'
8384 (target_has_execution_1): Likewise.
8385 (target_has_execution_current): New function.
8386 (add_target): Update.
8387 (init_dummy_target): Update.
8388 * remote-m32r-sdi.c (m32r_has_execution): New function.
8389 (init_m32r_ops): Use it.
8390 * record.c (record_core_has_execution): Now static. Add
8391 'the_ptid' parameter.
8392 * inferior.c (have_live_inferiors): Don't save current thread.
8393 Use target_has_execution_1.
8395 2011-03-07 Yao Qi <yao@codesourcery.com>
8397 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8399 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8401 * elfread.c (elf_symtab_read): Minor reformatting.
8403 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8405 * objc-lang.c (selectors_info): Minor reformatting.
8407 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8409 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8411 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8412 Michael Snyder <msnyder@vmware.com>
8414 * ada-valprint.c (ada_val_print_array): Move the declaration of
8415 "byte_order" and "elttype" inside the block where these variables
8416 are actually used. Remove some special handling for the case
8417 where "elttype" and "eltlen" are null. Replace by a comment
8418 and a couple of assertion checks.
8420 2011-03-05 Michael Snyder <msnyder@vmware.com>
8422 * source.c (add_path): Replace semicolon at end of block.
8423 * dwarf2expr.c (execute_stack_op): Ditto.
8425 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8427 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8428 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8429 (bfin-*-*): Likewise.
8431 2011-03-05 Michael Snyder <msnyder@vmware.com>
8433 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8434 * mdebugread.c (parse_symbol): Ditto.
8435 * parse.c (parse_exp_in_context): Ditto.
8436 * source.c (add_path): Ditto.
8437 * utils.c (gnu_debuglink_crc32): Ditto.
8438 * varobj.c (variable_language): Ditto.
8440 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8442 2011-03-04 Michael Snyder <msnyder@vmware.com>
8444 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8446 * symfile.c (simple_overlay_update): Check for null return value
8447 from lookup_minimal_symbol.
8449 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8451 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8453 * eval.c (parse_and_eval_address_1): Remove function.
8454 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8455 instead of parse_and_eval_address_1.
8456 * value.h (parse_and_eval_address_1): Remove prototype.
8458 2011-03-04 Michael Snyder <msnyder@vmware.com>
8460 * remote.c (putpkt_binary): Document that case stmt falls through.
8462 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8464 * breakpointc (print_it_typical): Move NULL check from here...
8465 (print_bp_stop_message): ... to here.
8467 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8469 * breakpoint.c (enable_command): Use break instead of continue,
8470 and fill in a missing break.
8471 (disable_command): Ditto.
8473 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8475 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8476 (terminal_save_ours): Remove misleading comment.
8477 (inflow_inferior_data_cleanup): Free ttystate.
8478 (inflow_inferior_exit): Likewise.
8479 (copy_terminal_info): Copy ttystate.
8481 * serial.c (serial_copy_tty_state): New function.
8482 * serial.h (serial_copy_tty_state): Add prototype.
8483 (struct serial_ops): Add copy_tty_state callback.
8484 * ser-base.c (ser_base_copy_tty_state): New function.
8485 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8486 * ser-go32.c (dos_copy_tty_state): New function.
8487 (dos_ops): Install copy_tty_state callback.
8488 * ser-mingw.c (_initialize_ser_windows): Likewise.
8489 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8490 * ser-unix.c (hardwire_copy_tty_state): New function.
8491 (_initialize_ser_hardwire): Install it.
8493 2011-03-04 Michael Snyder <msnyder@vmware.com>
8495 * breakpoint.c (create_breakpoint): Add missing break statement.
8497 Reverting this patch:
8498 * infcall.c (call_function_by_hand): Add break statements for lint.
8500 Reverting this patch:
8501 * cli/cli-script.c (script_from_file): Add break for lint.
8503 2011-03-04 Michael Snyder <msnyder@vmware.com>
8505 * solib.c (reload_shared_libraries_1): Close memory leak.
8507 2011-03-03 Tom Tromey <tromey@redhat.com>
8510 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8513 2011-03-03 Michael Snyder <msnyder@vmware.com>
8515 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8516 fields of struct 'st' to zero.
8518 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8519 sal.pspace before calling set_current_source_symtab_and_line.
8521 2011-03-03 Yao Qi <yao@codesourcery.com>
8523 * Makefile.in (configure-common): Remove. Let Makefile
8524 in dir common to rebuild itself.
8525 (common/Makefile): Likewise.
8527 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8529 * utils.c (parse_escape): Add i18n markup in error message.
8531 2011-03-03 Yao Qi <yao@codesourcery.com>
8533 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8535 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8536 (displaced_write_reg, displaced_read_reg): Likewise.
8537 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8538 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8539 (cleanup_branch): Replace magic number 14 and 15 with
8540 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8542 2011-03-02 Michael Snyder <msnyder@vmware.com>
8544 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8546 * cli/cli-script.c (script_from_file): Add break for lint.
8548 * mdebugread.c (parse_partial_symbols): Fix indent.
8550 * target-descriptions.c (tdesc_gdb_type): No need to call
8551 xstrdup, callee saves a copy.
8553 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8555 * infcall.c (call_function_by_hand): Add break statements for lint.
8557 * utils.c (parse_escape): Escape the escape char.
8559 * python/py-inferior.c (build_inferior_list): Error out if
8560 PyList_Append fails.
8561 (gdbpy_inferiors): Error out if build_inferior_list fails.
8563 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8566 * record.c (record_restore): Move printf to before error return.
8568 2011-03-02 Yao Qi <yao@codesourcery.com>
8570 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8571 is_thumb and insn_size.
8572 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8573 on both ARM and Thumb mode.
8574 (arm_process_displaced_insn): Set is_thumb and insn_size.
8575 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8576 (arm_displaced_step_fixup): Likewise.
8578 2011-03-01 Michael Snyder <msnyder@vmware.com>
8580 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8582 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8584 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8586 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8588 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8591 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8592 which shadows function parameter.
8594 * tracepoint.c (create_tsv_from_upload): Superfluous call
8595 to xstrdup. Callee already calls xstrdup.
8597 * linespec.c (decode_line_1): Remove unnecessary null check.
8599 * tracepoint.c (scope_info): Fix mem leak, remove underused
8602 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8603 superfluous null check.
8605 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8606 (value_of_builtin_frame_fp_reg): Ditto.
8608 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8610 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8613 * linespec.c (decode_line_1): Check for null before dereference.
8615 * reverse.c (record_restore): Move null-check to before pointer
8618 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8620 * objc-lang.c (selectors_info): Add explanitory comment.
8621 (classes_info): Ditto.
8623 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8625 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8626 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8627 versions of the trampoline. Handle Thumb vs. ARM addresses.
8628 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8629 (arm_linux_init_abi): Install it.
8630 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8631 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8633 2011-02-28 Michael Snyder <msnyder@vmware.com>
8635 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8636 a little bigger, to avoid possibility of an overflow.
8638 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8639 buffers a little bigger, to avoid possibility of an overflow.
8641 * coffread.c (coff_getfilename): Add check to avoid overflow.
8643 * objc-lang.c (selectors_info): Add a small safety margin to
8645 (classes_info): Error out on too long REGEXP.
8647 * infrun.c (handle_inferior_event): Remove unused function call.
8649 * fork-child.c (fork_inferior): Remove ifdef'd code and
8652 * linux-thread-db.c (attach_thread): Discard unused value.
8654 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8656 * remote.c (remote_get_noisy_reply): Discard unused value.
8657 (remote_vcont_resume): Ditto.
8658 (remote_stop_ns): Ditto.
8660 * linespec.c (decode_objc): Delete unused variable.
8662 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8664 * dwarf2read.c (add_partial_symbol): Discard unused values.
8665 (read_base_type): Delete unused variable.
8667 * dbxread.c (read_dbx_symtab): Discard unused value.
8669 * eval.c (evaluate_subexp_standard): Delete unused variable,
8670 and discard unused values.
8672 * infcmd.c (_initialize_infcmd): Discard unused values.
8674 * stabsread.c (rs6000_builtin_type): Missing break statement.
8676 * dbxread.c (process_one_symbol): Discard unused value.
8678 * coffread.c (coff_end_symtab): Delete unused variable.
8680 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8681 (dwarf2_add_typedef): Delete unused variable.
8682 (read_namespace): Ditto.
8683 (dwarf_decode_macros): Ditto.
8685 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8687 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8689 * p-valprint.c (pascal_val_print): Discard unused value.
8691 * utils.c (nquery): Call va_end before return;
8695 * proc-service.c (ps_plog): Call va_end before return.
8697 2011-02-28 Tom Tromey <tromey@redhat.com>
8699 * python/python.c (gdbpy_value_cst): New global.
8700 (_initialize_python): Initialize it.
8701 * python/python-internal.h (gdbpy_value_cst): Declare.
8702 * python/py-value.c (convert_value_from_python): Use
8705 2011-02-28 Michael Snyder <msnyder@vmware.com>
8707 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8709 * breakpoint.c (catch_syscall_completer): Free malloced list.
8711 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8713 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8714 (lval_func_check_synthetic_pointer): Ditto.
8715 (lval_func_free_closure): Fix use-after-free.
8717 2011-02-28 Tom Tromey <tromey@redhat.com>
8719 * psymtab.c (expand_partial_symbol_tables): Use
8720 ALL_OBJFILE_PSYMTABS.
8722 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8724 * objc-lang.c (selectors_info): Error on too long REGEXP.
8726 2011-02-28 Michael Snyder <msnyder@vmware.com>
8728 * python/py-param.c (set_parameter_value): Add missing
8731 * linux-record.c (record_linux_system_call): Add missing
8734 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8736 * breakpoint.c (print_one_breakpoint_location): Remove unused
8737 argument PRINT_ADDRESS_BITS. Update callers.
8738 (print_one_breakpoint): Likewise.
8740 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8742 * breakpoint.c (wrap_indent_at_field): New function.
8743 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8744 Allocate ui_stream locally instead of using STB argument.
8745 (print_one_breakpoint_location): Update call.
8746 * ui-out.c (ui_out_query_field): New function.
8747 * ui-out.h (ui_out_query_field): Add prototype.
8749 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8751 From Michael Snyder <msnyder@vmware.com>
8752 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8754 2011-02-27 Michael Snyder <msnyder@vmware.com>
8756 * objc-lang.c (selectors_info): Prevent string overrun.
8758 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8761 * symtab.c (rbreak_command): Move variable 'file_name' to
8764 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8765 param with a local variable of the same name.
8767 2011-02-27 Michael Snyder <msnyder@vmware.com>
8769 * value.c (value_from_history_ref): New function.
8770 * value.h (value_from_history_ref): Export.
8771 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8772 to parse value history references.
8773 * cli/cli-utils.h (get_number_trailer): Update comment.
8775 2011-02-27 Michael Snyder <msnyder@vmware.com>
8777 * inferior.c (detach_inferior_command): Use get_number_or_range.
8778 (kill_inferior_command): Ditto.
8779 (remove_inferior_command): Ditto.
8780 (initialize_inferiors): Make command names plural.
8781 Update help strings.
8783 2011-02-27 Michael Snyder <msnyder@vmware.com>
8785 * darwin-nat-info.c: Fix comment typo.
8786 * dwarf2expr.h: Ditto.
8787 * fbsd-nat.c: Ditto.
8788 * fbsd-nat.h: Ditto.
8789 * frame-unwind.h: Ditto.
8791 * hppa-hpux-tdep.c: Ditto.
8792 * i386-linux-nat.c: Ditto.
8793 * linux-nat.c: Ditto.
8794 * nbsd-nat.c: Ditto.
8795 * nbsd-nat.h: Ditto.
8796 * ppc-linux-tdep.c: Ditto.
8799 * tui/tui-winsource.c: Ditto.
8801 2011-02-26 Michael Snyder <msnyder@vmware.com>
8803 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8805 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8807 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8808 with a local variable of the same name.
8810 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8811 param with a local variable of the same name.
8812 (i387_supply_xsave): Ditto.
8814 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8815 that it does not shadow a function parameter.
8817 * i386-nat.c (i386_length_and_rw_bits): Document that case
8818 statement is meant to fall through.
8820 * expprint.c (dump_subexp_body_standard): Document that case
8821 statement is meant to fall through.
8823 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8824 dead if statement. Condition can't be false.
8826 2011-02-25 Michael Snyder <msnyder@vmware.com>
8828 * arm-tdep.c: Fix typos in comments.
8829 * bsd-uthread.c: Ditto.
8830 * completer.c: Ditto.
8832 * cp-namespace.c: Ditto.
8833 * cp-support.c: Ditto.
8834 * cris-tdep.c: Ditto.
8836 * dwarf2read.c: Ditto.
8838 * gdbtypes.h: Ditto.
8839 * inferior.h: Ditto.
8840 * mdebugread.c: Ditto.
8841 * mips-tdep.c: Ditto.
8842 * ppc-linux-nat.c: Ditto.
8843 * ppc-linux-tdep.c: Ditto.
8844 * printcmd.c: Ditto.
8845 * sol-thread.c: Ditto.
8846 * solib-frv.c: Ditto.
8848 * sparc64-tdep.c: Ditto.
8849 * spu-tdep.c: Ditto.
8850 * stabsread.c: Ditto.
8855 * python/py-block.c: Ditto.
8856 * python/py-symbol.c: Ditto.
8857 * python/py-symtab.c: Ditto.
8858 * python/py-value.c: Ditto.
8859 * tui/tui-win.c: Ditto.
8861 2011-02-25 Michael Snyder <msnyder@vmware.com>
8863 * inferior.c (print_inferior): Accept a string instead of an int
8864 for requested_inferiors, and use get_number_or_range to parse it.
8865 (info_inferiors_command): Pass args string to print_inferior.
8866 (initialize_inferiors): Change help string for info inferiors.
8867 * inferior.h (print_inferior): Export prototype change.
8869 2011-02-25 Tom Tromey <tromey@redhat.com>
8871 * common/ax.def (invalid2): Set to 0x31.
8873 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8875 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8877 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8879 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8881 2011-02-24 Michael Snyder <msnyder@vmware.com>
8883 * Makefile.in (clean): Make clean should remove generated files
8884 observer.h and observer.inc.
8886 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8888 Revert the following patch (not approved yet):
8889 2011-02-21 Hui Zhu <teawater@gmail.com>
8890 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8891 * ax-gdb.c (gen_printf_expr_callback): New function.
8892 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8893 * ax-general.c (ax_memcpy): New function.
8894 (ax_print): Handle "printf".
8896 * ax.h (ax_memcpy): Forward declare.
8897 * common/ax.def (invalid2): Removed.
8898 (printf): New entry.
8899 * printcmd.c (printcmd.h): New include.
8900 (string_printf): New function.
8901 (ui_printf): Removed.
8902 (printf_command): Remove static. Call string_printf.
8903 (eval_command): Call string_printf.
8904 * printcmd.h: New file.
8905 * tracepoint.c (validate_actionline,
8906 encode_actions_1): handle printf_command.
8908 2011-02-23 Tom Tromey <tromey@redhat.com>
8910 * ax-general.c (ax_pick): Add missing newline.
8912 2011-02-23 Michael Snyder <msnyder@vmware.com>
8914 * breakpoint.c (breakpoint_1): Change first argument from an int
8915 to a char pointer, so that the function now accepts a list of
8916 breakpoints rather than just one. Use new function
8917 'number_is_in_list' to implement.
8918 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8919 (watchpoints_info): Ditto.
8920 (tracepoints_info): Ditto.
8921 (maintenance_info_breakpoints): Ditto.
8922 (_initialize_breakpoint): Update help strings to reflect the fact
8923 that these functions can now take more than one argument.
8924 * cli/cli-utils.c (number_is_in_list): New function.
8925 * cli/cli-utils.h (number_is_in_list): Export.
8927 2011-02-23 Michael Snyder <msnyder@vmware.com>
8929 * memattr.c (mem_enable_command): Use get_number_or_range.
8930 (mem_disable_command): Ditto.
8931 (mem_delete_command): Ditto.
8932 (_initialize_mem): Tweak usage message to reflect multiple
8935 2011-02-22 Doug Evans <dje@google.com>
8937 Add gdb.lookup_global_symbol python function.
8939 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8940 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8941 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8943 2011-02-22 Tom Tromey <tromey@redhat.com>
8945 * language.c (language_class_name_from_physname): Rename
8946 'curr_language' argument to 'lang'; use in body.
8948 2011-02-22 Michael Snyder <msnyder@vmware.com>
8950 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8952 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8954 * frame-unwind.h: Fix comment to mention the this frame, not the
8957 2011-02-22 Tom Tromey <tromey@redhat.com>
8959 * symfile.c (auto_solib_limit): Remove.
8960 * symfile.h (auto_solib_limit): Remove.
8962 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8964 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8966 2011-02-21 Michael Snyder <msnyder@vmware.com>
8968 * gdbthread.h (print_thread_info): Change prototype.
8969 * thread.c (print_thread_info): Accept char* instead of int for
8970 requested_threads argument. Use new function number_is_in_list
8971 to determine which threads to list.
8972 (info_threads_command): Pass char* to print_thread_info.
8973 * cli/cli-utils.c (number_is_in_list): New function.
8974 * cli/cli-utils.h (number_is_in_list): Export.
8975 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8977 (print_one_inferior): Ditto.
8978 (mi_cmd_list_thread_groups): Ditto.
8980 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8982 * common/Makefile.in (CFLAGS): New.
8983 (COMPILE): Add $(CFLAGS).
8985 2011-02-21 Tom Tromey <tromey@redhat.com>
8987 * breakpoint.c (catch_syscall_command_1): Fix typo.
8989 2011-02-21 Tom Tromey <tromey@redhat.com>
8991 * reverse.c: Include cli-utils.h.
8992 * printcmd.c: Include cli-utils.h.
8993 (string_printf): Use skip_spaces.
8994 * cli/cli-utils.h: New file.
8995 * cli/cli-utils.c: New file.
8996 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8997 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8998 * breakpoint.h (get_number, get_number_or_range): Move to
9000 * breakpoint.c: Include cli-utils.h.
9001 (get_number_trailer, get_number, get_number_or_range)
9002 (ep_skip_leading_whitespace): Move to cli-utils.c.
9003 (create_breakpoint_sal, find_condition_and_thread)
9004 (decode_static_tracepoint_spec, watch_command_1)
9005 (watch_maybe_just_location, ep_parse_optional_if_clause)
9006 (catch_fork_command_1, catch_exec_command_1)
9007 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9008 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9009 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9010 (HFILES_NO_SRCDIR): Add cli-utils.h.
9011 (cli-utils.o): New target.
9013 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9015 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9016 before calling discard_all_inferiors.
9018 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9020 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9021 (struct builtin_opencl_type): Remove.
9022 (builtin_opencl_type): Change return type to "struct type **".
9023 (lookup_opencl_vector_type): Update caller.
9024 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9025 (build_opencl_types): Install plain array of "struct type *"
9026 instead of "struct builtin_opencl_type".
9028 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9029 Ulrich Weigand <uweigand@de.ibm.com>
9031 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9032 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9033 (struct arm_linux_hwbp_cap): New type.
9034 (arm_linux_get_hwbp_cap): New function.
9035 (arm_linux_get_hw_breakpoint_count): Likewise.
9036 (arm_linux_get_hw_watchpoint_count): Likewise.
9037 (arm_linux_can_use_hw_breakpoint): Likewise.
9038 (arm_hwbp_type): New type.
9039 (arm_hwbp_control_t): Likewise.
9040 (struct arm_linux_hw_breakpoint): Likewise.
9041 (struct arm_linux_thread_points): Likewise.
9042 (arm_threads): New global variable.
9043 (arm_linux_find_breakpoints_by_tid): New function.
9044 (arm_hwbp_control_initialize): Likewise.
9045 (arm_hwbp_control_is_enabled): Likewise.
9046 (arm_hwbp_control_disable): Likewise.
9047 (arm_linux_hw_breakpoint_initialize): Likewise.
9048 (arm_linux_get_hwbp_type): Likewise.
9049 (arm_linux_hw_watchpoint_initialize): Likewise.
9050 (arm_linux_hw_breakpoint_equal): Likewise.
9051 (arm_linux_insert_hw_breakpoint1): Likewise.
9052 (arm_linux_remove_hw_breakpoint1): Likewise.
9053 (arm_linux_insert_hw_breakpoint): Likewise.
9054 (arm_linux_remove_hw_breakpoint): Likewise.
9055 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9056 (arm_linux_insert_watchpoint): Likewise.
9057 (arm_linux_remove_watchpoint): Likewise.
9058 (arm_linux_stopped_data_address): Likewise.
9059 (arm_linux_stopped_by_watchpoint): Likewise.
9060 (arm_linux_watchpoint_addr_within_range): Likewise.
9061 (arm_linux_new_thread): Likewise.
9062 (arm_linux_thread_exit): Likewise.
9063 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9064 related target callbacks. Register arm_linux_new_thread and
9065 arm_linux_thread_exit.
9066 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9067 * arm-tdep.c (arm_pc_is_thumb): Make global.
9068 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9070 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9072 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9073 per-frame locations while within a function epilogue.
9075 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9077 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9078 to GNU coding standards.
9080 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9082 Allow use of mingw native on Windows 95 OS.
9083 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9084 (ser_windows_close): Only call CancelIo if function exists.
9085 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9086 to check for existence of CancelIo function in kernel32 DLL.
9088 2011-02-21 Hui Zhu <teawater@gmail.com>
9090 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9091 * ax-gdb.c (gen_printf_expr_callback): New function.
9092 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9093 * ax-general.c (ax_memcpy): New function.
9094 (ax_print): Handle "printf".
9096 * ax.h (ax_memcpy): Forward declare.
9097 * common/ax.def (invalid2): Removed.
9098 (printf): New entry.
9099 * printcmd.c (printcmd.h): New include.
9100 (string_printf): New function.
9101 (ui_printf): Removed.
9102 (printf_command): Remove static. Call string_printf.
9103 (eval_command): Call string_printf.
9104 * printcmd.h: New file.
9105 * tracepoint.c (validate_actionline,
9106 encode_actions_1): handle printf_command.
9108 2011-02-19 Michael Snyder <msnyder@vmware.com>
9110 * reverse.c (delete_one_bookmark): Argument is now bookmark
9111 id rather than pointer to bookmark struct.
9112 (delete_bookmark_command): Use get_number_or_range.
9113 (goto_bookmark_command): Parse with get_number instead of strtoul.
9114 (bookmark_1): New function. Print info for one bookmark.
9115 (bookmarks_info): Use get_number_or_range and bookmark_1.
9117 2011-02-18 Michael Snyder <msnyder@vmware.com>
9119 * thread.c (info_threads_command): Re-implement using
9120 get_number_or_range.
9121 (thread_apply_command): Ditto.
9123 2011-02-18 Tom Tromey <tromey@redhat.com>
9125 * common/ax.def: New file.
9126 * ax.h (enum agent_op): Use ax.def.
9127 * ax-general.c (aop_map): Use ax.def.
9129 2011-02-18 Tom Tromey <tromey@redhat.com>
9131 * ax-general.c (aop_map): Add pick and rot.
9132 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9133 <DW_OP_rot>: Implement.
9134 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9136 * ax-general.c (ax_pick): New function.
9138 2011-02-18 Tom Tromey <tromey@redhat.com>
9140 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9142 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9143 Tom Tromey <tromey@redhat.com>
9145 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9146 make_symbol_overload_list_block with NULL BLOCK.
9147 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9149 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9151 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9152 * breakpoint.h (get_number_or_range): Declare.
9153 * printcmd.c (ALL_DISPLAYS): Declare.
9154 (delete_display): Reimplement taking a display pointer.
9155 (undisplay_command): Accept a range of displays to delete, using
9156 get_number_or_range.
9158 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9160 * c-valprint.c (c_val_print): Add embedded_offset to address
9161 for arrays of unspecified length.
9162 * p-valprint.c (pascal_val_print): Likewise.
9164 2011-02-18 Yao Qi <yao@codesourcery.com>
9166 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9167 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9168 (thumb_process_displaced_insn): New.
9169 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9170 call to arm_process_displaced_insn.
9171 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9173 2011-02-17 Tom Tromey <tromey@redhat.com>
9175 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9176 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9177 compile_dwarf_to_ax. No longer static. Call
9178 dwarf2_compile_cfa_to_ax.
9179 (locexpr_tracepoint_var_ref): Update.
9180 (loclist_tracepoint_var_ref): Update.
9181 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9182 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9183 argument; add 'gdbarch' and 'pc'.
9184 (dwarf2_compile_cfa_to_ax): New function.
9185 (dwarf2_frame_cache): Update.
9187 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9189 * ada-lang.c (ada_type_of_array): Fix the size of the array
9190 in the case of an unconstrained packed array.
9192 2011-02-17 Yao Qi <yao@codesourcery.com>
9194 * common/Makefile.in: Add more targets for make.
9196 2011-02-16 Tom Tromey <tromey@redhat.com>
9198 * dwarf2loc.c (unimplemented): Fix typo.
9200 2011-02-16 Tom Tromey <tromey@redhat.com>
9202 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9203 (compile_dwarf_to_ax) <default>: Use unimplemented.
9204 <DW_OP_deref>: Update.
9205 (disassemble_dwarf_expression): Update.
9206 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9207 (decode_locdesc): Update.
9208 * dwarf2expr.h (dwarf_stack_op_name): Update.
9210 2011-02-16 Tom Tromey <tromey@redhat.com>
9212 * ax.h (struct aop_map) <name>: Now const.
9214 2011-02-16 Tom Tromey <tromey@redhat.com>
9216 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9219 2011-02-16 Yao Qi <yao@codesourcery.com>
9221 * infrun.c (get_displaced_step_closure_by_addr): New.
9222 * inferior.h: Declare it.
9223 * arm-tdep.c: (arm_pc_is_thumb): Call
9224 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9227 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9228 Jan Kratochvil <jan.kratochvil@redhat.com>
9231 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9233 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9234 Jan Kratochvil <jan.kratochvil@redhat.com>
9236 * value.c (value_contents_copy_raw): Extend describing comment.
9237 Assert that the destination contents we're overwriting are wholly
9239 (value_contents_copy): Extend describing comment.
9241 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9242 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 * value.c (value_available_contents_eq): Remove redundant local
9245 variables. Fix available contents comparision.
9246 * value.h (value_available_contents_eq): Extend describing
9249 2011-02-16 Yao Qi <yao@codesourcery.com>
9251 * thread.c (info_threads_command): Add missing i18n markup and remove
9254 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9256 * breakpoint.c (longjmp_names): New variable.
9257 (struct breakpoint_objfile_data): New type.
9258 (breakpoint_objfile_key): New variable.
9259 (msym_not_found): New variable.
9260 (msym_not_found_p): New predicate.
9261 (get_breakpoint_objfile_data): New function.
9262 (create_overlay_event_breakpoint): Check per-objfile cache for
9264 (create_longjmp_master_breakpoint): Likewise.
9265 (create_std_terminate_master_breakpoint): Likewise.
9266 (create_exception_master_breakpoint): Likewise.
9267 (_initialize_breakpoint): Register per-objfile data key.
9269 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9271 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9273 (create_longjmp_master_breakpoint): Loop over longjmp names.
9274 (create_std_terminate_master_breakpoint): Const-propagate parameter
9276 (update_breakpoints_after_exec): Adjust.
9277 (breakpoint_re_set): Adjust.
9279 2011-02-15 Michael Snyder <msnyder@vmware.com>
9281 * thread.c (info_threads_command): Process arg as thread id,
9282 or list of thread ids.
9283 (thread_find_command): New command.
9284 (_initialize_thread): Document argument for info threads.
9285 Document 'thread find' command.
9286 * NEWS: Document new command "thread find".
9288 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9290 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9291 * aclocal.m4: Regenerated with aclocal-1.11.1.
9292 * common/configure: Regenerate with autoconf-2.64.
9294 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9296 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9297 bool data type to a size of one byte.
9299 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9300 Jan Kratochvil <jan.kratochvil@redhat.com>
9302 * target.c (memory_xfer_live_readonly_partial): Document where to
9303 look for interface description.
9305 2011-02-15 Yao Qi <yao@codesourcery.com>
9308 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9309 order to store PC value on stack instead of text section.
9311 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9313 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9314 the EFP register set size.
9315 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9316 data from the VMX register.
9317 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9318 and write data from/to the VMX register.
9320 2011-02-14 Michael Snyder <msnyder@vmware.com>
9322 * command.h (enum command_class): New class 'no_set_class', for
9323 "show" commands without a corresponding "set" command.
9324 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9325 * copying.c (_initialize_copying): Ditto for "show copying" and
9327 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9329 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9330 which there is no corresponding "set" command (eg. "show copying").
9332 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9333 Jan Kratochvil <jan.kratochvil@redhat.com>
9335 * exec.c (section_table_available_memory): Change `len' parameter
9337 * exec.h (section_table_available_memory): Ditto.
9338 * value.h (read_value_memory): Rename the `offset' parameter to
9341 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9342 Jan Kratochvil <jan.kratochvil@redhat.com>
9344 * memrange.c (compare_mem_ranges): Mention sort order in
9346 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9347 * tracepoint.c (traceframe_available_memory): Extend comment to
9348 mention what happens to RESULT when the target does not support
9351 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9352 Jan Kratochvil <jan.kratochvil@redhat.com>
9354 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9357 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9359 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9360 No longer handle NULL values.
9362 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9364 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9365 * value.c: Include "exceptions.h".
9366 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9368 * cp-abi.c: Include gdb_assert.h.
9369 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9370 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9372 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9373 parameters. No longer returns -1 on error.
9374 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9376 * cp-valprint.c: Include exceptions.h.
9377 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9378 the baseclass_offset. Handle unavailable base classes. Use
9379 val_print_invalid_address.
9380 * p-valprint.c: Include exceptions.h.
9381 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9382 when fetching the baseclass_offset. No longer expect
9383 baseclass_offset returning -1. Handle unavailable base classes.
9384 Use val_print_invalid_address.
9385 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9386 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9387 `embedded_offset' and `val' parameters. Adjust.
9388 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9389 parameter, and change its type to gdb_byte pointer. Add
9390 `embedded_offset' and `val' parameters. Adjust. No longer expect
9391 baseclass_offset returning -1.
9392 (value_dynamic_cast): Use value_contents_for_printing rather than
9393 value_contents. Adjust.
9394 (search_struct_field): No longer expect baseclass_offset returning
9396 (search_struct_method): If reading memory from the target is
9397 necessary, wrap it in a new value to pass to baseclass_offset. No
9398 longer expect baseclass_offset returning -1.
9399 (find_method_list): No longer expect baseclass_offset returning
9400 -1. Use value_contents_for_printing rather than value_contents.
9401 * valprint.c (val_print_invalid_address): New function.
9402 * valprint.h (val_print_invalid_address): Declare.
9403 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9404 and `val' parameters. No longer expect baseclass_offset returning
9406 * gnu-v2-abi.c: Include "exceptions.h".
9407 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9408 parameters. Handle unavailable memory. Recurse through
9409 gnuv2_baseclass_offset directly, rather than through
9410 baseclass_offset. No longer returns -1 on not found, instead
9412 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9413 `val' parameters. Adjust.
9415 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9417 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9418 almost but not quite adjacent.
9420 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9422 * value.h (value_entirely_available): Declare.
9423 * value.c (value_entirely_available): New function.
9424 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9425 real type if the pointer is unavailable.
9427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9429 * valops.c (value_repeat): Use read_value_memory instead of
9432 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9434 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9435 * value.c (value_contents_copy_raw, value_contents_copy): New
9437 (value_primitive_field): Use value_contents_copy_raw instead of
9439 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9441 (value_array, value_slice): Ditto.
9442 * valarith.c (value_subscripted_rvalue): Use
9443 value_contents_copy_raw instead of memcpy.
9445 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9447 <unavailable> references.
9449 * valops.c (get_value_at): Use value_from_contents_and_address,
9450 avoiding read_memory.
9452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9454 * c-valprint.c (c_val_print): Print a string with unavailable
9455 contents as an array.
9457 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9459 * value.h (unpack_bits_as_long): Delete declaration.
9460 (unpack_value_bits_as_long): Declare.
9461 (unpack_value_field_as_long): Declare.
9462 (value_field_bitfield): Declare.
9463 * value.c (unpack_bits_as_long): Rename to...
9464 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9465 value parameters. Return the extracted result in a new output
9466 parameter. If the value contents are unavailable, return false,
9467 otherwise return true.
9468 (unpack_value_bits_as_long): New.
9469 (unpack_field_as_long): Rename to...
9470 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9471 Add embedded_offset and value parameters. Return the extracted
9472 result in a new output parameter. If the value contents are
9473 unavailable, return false, otherwise return true.
9474 (unpack_value_field_as_long): New.
9475 (unpack_field_as_long_1): New.
9476 (unpack_field_as_long): Reimplement as wrapper around
9477 unpack_value_field_as_long_1.
9478 (value_field_bitfield): New function.
9479 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9480 unpack_value_bits_as_long. Mark the value as unavailable, if it
9482 * jv-valprint.c (java_print_value_fields): Use
9483 value_field_bitfield.
9484 * p-valprint.c (pascal_object_print_value_fields): Use
9485 value_field_bitfield.
9486 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9490 * value.c (get_internalvar_integer): Also return the int value of
9491 TYPE_CODE_INT INTERNALVAR_VALUE values.
9492 (set_internalvar): Don't special case TYPE_CODE_INT.
9494 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9496 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9497 INTERNALVAR_POINTER.
9499 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9500 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9501 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9503 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9505 * value.h (value_available_contents_eq): Declare.
9506 * value.c (find_first_range_overlap): New function.
9507 (value_available_contents_eq): New function.
9508 * valprint.c (val_print_array_elements): Use
9509 value_available_contents_eq.
9510 * ada-valprint.c (val_print_packed_array_elements): Use
9511 value_available_contents_eq.
9512 * jv-valprint.c (java_value_print): Use
9513 value_available_contents_eq.
9515 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9517 * target.c (target_read_live_memory): New function.
9518 (memory_xfer_live_readonly_partial): New.
9519 (memory_xfer_partial): If reading from a traceframe, fallback to
9520 reading unavailable read-only memory from read-only regions of
9522 * tracepoint.c (disconnect_tracing): Adjust.
9523 (set_current_traceframe): New, factored out from
9524 set_traceframe_number.
9525 (set_traceframe_number): Reimplement to only change the traceframe
9526 number on the GDB side.
9527 (do_restore_current_traceframe_cleanup): Adjust.
9528 (make_cleanup_restore_traceframe_number): New.
9529 (cur_traceframe_number): New global.
9530 (tfile_open): Set cur_traceframe_number to no traceframe.
9531 (set_tfile_traceframe): New function.
9532 (tfile_trace_find): If looking up a traceframe using any method
9533 other than by number, make sure the current tfile traceframe
9534 matches gdb's current traceframe. Update the current tfile
9535 traceframe if the lookup succeeded.
9536 (tfile_fetch_registers, tfile_xfer_partial)
9537 (tfile_get_trace_state_variable_value): Make sure the remote
9538 traceframe matches gdb's current traceframe.
9539 * remote.c (remote_traceframe_number): New global.
9540 (remote_open_1): Set it to -1.
9541 (set_remote_traceframe): New function.
9542 (remote_fetch_registers, remote_store_registers)
9543 (remote_xfer_memory, remote_xfer_partial)
9544 (remote_get_trace_state_variable_value): Make sure the remote
9545 traceframe matches gdb's current traceframe.
9546 (remote_trace_find): If looking up a traceframe using any method
9547 other than by number, make sure the current remote traceframe
9548 matches gdb's current traceframe. Update the current remote
9549 traceframe if the lookup succeeded.
9550 * infrun.c (fetch_inferior_event): Adjust.
9551 * tracepoint.h (set_current_traceframe): Declare.
9552 (get_traceframe_number, set_traceframe_number): Add describing
9555 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9557 Mark pieces of values as unavailable if the corresponding memory
9560 * valops.c: Include tracepoint.h.
9561 (value_fetch_lazy): Use read_value_memory.
9562 (read_value_memory): New.
9563 * value.h (read_value_memory): Declare.
9564 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9565 * exec.c (section_table_available_memory): New function.
9566 * exec.h (section_table_available_memory): Declare.
9568 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9570 * Makefile.in (SFILES): Add memrange.c.
9571 (HFILES_NO_SRCDIR): Add memrange.h.
9572 (COMMON_OBS): Add memrange.o.
9573 * memrange.c: New file.
9574 * memrange.h: New file.
9575 * tracepoint.c: Include memrange.h.
9576 (struct mem_range): Delete.
9577 (mem_range_s): Delete.
9578 (traceframe_available_memory): New function.
9579 * tracepoint.h (traceframe_available_memory): Declare.
9581 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9583 * target.h (struct traceframe_info): Forward declare.
9584 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9585 (struct target_ops) <to_traceframe_info>: New field.
9586 (target_traceframe_info): New.
9587 * target.c (update_current_target): Inherit and default
9589 * remote.c (PACKET_qXfer_traceframe_info): New.
9590 (remote_protocol_features): Register qXfer:traceframe-info:read.
9591 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9592 (remote_traceframe_info): New.
9593 (init_remote_ops): Install it.
9594 (_initialize_remote): Install "set/show remote traceframe-info"
9596 * tracepoint.h (parse_traceframe_info): Declare.
9597 * tracepoint.c (struct mem_range): New.
9598 (mem_range_s): New typedef.
9599 (struct traceframe_info): New.
9600 (traceframe_info): New global.
9601 (free_traceframe_info): New function.
9602 (clear_traceframe_info): New function.
9603 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9605 (build_traceframe_info): New function.
9606 (tfile_traceframe_info): New function.
9607 (init_tfile_ops): Install tfile_traceframe_info.
9608 (traceframe_info_start_memory, free_result): New functions.
9609 (memory_attributes, traceframe_info_elements): New globals.
9610 (parse_traceframe_info, get_traceframe_info): New functions.
9611 * features/traceframe-info.dtd: New file.
9612 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9614 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9616 Base support for <unavailable> value contents.
9618 * value.h (value_bytes_available): Declare.
9619 (mark_value_bytes_unavailable): Declare.
9620 * value.c (struct range): New struct.
9621 (range_s): New typedef.
9622 (ranges_overlap): New function.
9623 (range_lessthan): New function.
9624 (ranges_contain_p): New function.
9625 (struct value) <unavailable>: New field.
9626 (value_bytes_available): New function.
9627 (mark_value_bytes_unavailable): New function.
9628 (require_not_optimized_out): Constify parameter.
9629 (require_available): New function.
9630 (value_contents_all, value_contents): Require all bytes be
9632 (value_free): Free `unavailable'.
9633 (value_copy): Copy `unavailable'.
9634 * valprint.h (val_print_unavailable): Declare.
9635 * valprint.c (valprint_check_validity): Rename `offset' parameter
9636 to `embedded_offset'. If printing a scalar, check whether the
9637 value chunk is available.
9638 (val_print_unavailable): New.
9639 (val_print_scalar_formatted): Check whether the value is
9641 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9642 pretty-printing unavailable values.
9644 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9646 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9647 * c-typeprint.c (c_type_print_args): Update the function comment. New
9648 variable param_type, initialize it. Remove const/volatile qualifiers
9649 for language_cplus and !show_artificial. Use param_type.
9651 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9653 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9654 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9655 * symtab.h (struct symtab) <next>: Comment extension.
9657 2011-02-12 Yao Qi <yao@codesourcery.com>
9659 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9661 2011-02-11 Yao Qi <yao@codesourcery.com>
9663 * common/Makefile.in: Add copyright header.
9665 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9667 * infrun.c (proceed): Move switching out and in of tfind mode from
9669 (fetch_inferior_event): ... to here.
9671 2011-02-11 Yao Qi <yao@codesourcery.com>
9673 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9675 * configure.ac: Add common to sub dir.
9676 * configure: Regenerate.
9678 2011-02-11 Yao Qi <yao@codesourcery.com>
9682 * common/Makefile.in: New.
9683 * common/configure.ac: New.
9684 * common/aclocal.m4: New.
9685 * common/configure: Generate.
9687 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9689 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9690 side of the parenthesis.
9693 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9694 * vec.h (VEC_block_remove): Fix comment.
9696 2011-02-08 Michael Snyder <msnyder@vmware.com>
9698 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9700 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9702 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9703 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9706 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9709 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9711 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9712 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9714 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9716 * dwarf2read.c (read_subroutine_type): Set special calling
9717 convention flag for functions compiled by IBM XL C for OpenCL.
9718 * ppc-sysv-tdep.c: Include "dwarf2.h"
9719 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9721 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9722 IBM OpenCL vector types calling convention.
9723 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9724 (ppc_sysv_abi_broken_return_value): Likewise.
9725 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9726 types calling convention.
9727 (ppc64_sysv_abi_return_value): Likewise.
9728 * spu-tdep.c: Include "dwarf2.h"
9729 (spu_return_value): Implement IBM OpenCL vector types calling
9732 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9734 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9735 correct ABI for AltiVec vector arguments.
9737 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9739 * valprint.c (val_print): Extend comment.
9740 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9741 interface explanation to val_print.
9742 (ada_val_print_array): Adjust comment to current interface.
9743 (print_field_values): Adjust comment to current interface.
9744 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9745 explanation to val_print.
9746 * f-valprint.c (f_val_print): Ditto.
9747 * jv-valprint.c (java_val_print): Ditto.
9748 * m2-valprint.c (m2_val_print): Ditto.
9749 * p-valprint.c (pascal_val_print): Ditto.
9751 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9753 * breakpoint.c (parse_breakpoint_sals): Fix description.
9755 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9756 Oguz Kayral <oguzkayral@gmail.com>
9758 * python/py-inferior.c (python_on_normal_stop): New function.
9759 (python_on_resume): New function.
9760 (python_inferior_exit): New function.
9761 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9762 inferior_exit observers.
9763 * python/py-evtregistry.c: New file.
9764 * python/py-threadevent.c : New file.
9765 * python/py-event.c: New file.
9766 * python/py-evts.c: New file.
9767 * python/py-continueevent.c: New file.
9768 * python/py-bpevent.c: New file.
9769 * python/py-signalevent.c: New file.
9770 * python/py-exetiedevent.c: New file.
9771 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9772 Move struct breakpoint_object from here...
9773 * python/python-internal.h: ... to here.
9774 * python/py-event.h: New file.
9775 * python/py-events.h: New file.
9776 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9777 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9778 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9779 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9780 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9781 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9782 Add build rules for all the above.
9784 2011-02-04 Tom Tromey <tromey@redhat.com>
9786 * dwarf2read.c (dwarf2_section_empty_p): New function.
9787 (dwarf2_read_section): Use dwarf2_section_empty_p.
9788 (dwarf2_section_size): New function.
9789 (dwarf2_get_section_info): Unconditionally read section.
9790 (dwarf2_read_index): Use dwarf2_section_empty_p.
9791 (partial_read_comp_unit_head): Use dwarf2_section_size.
9792 (dwarf2_symbol_mark_computed): Likewise.
9794 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9796 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9798 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9800 * mips-linux-tdep.c: Include xml-syscall.h.
9801 (mips_linux_get_syscall_number): New function.
9802 (mips_linux_init_abi): Add calls to
9803 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9804 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9805 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9806 * syscalls/mips-n32-linux.xml: New file.
9807 * syscalls/mips-n64-linux.xml: New file.
9808 * syscalls/mips-o32-linux.xml: New file.
9810 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9812 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9813 Complain about inverted range entries.
9814 (dwarf2_record_block_ranges): Likewise.
9816 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9819 * breakpoint.c (update_watchpoint): Fix name of the
9820 update_global_location_list function.
9821 (print_one_breakpoint): Fix typo.
9822 (_initialize_breakpoint): Remove extra space in hbreak help
9824 * breakpoint.h (struct bp_location) <length>: Fix field
9827 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9829 * regcache.c (registers_changed_ptid): Don't explictly always
9830 clear `current_regcache'. Only clear current_thread_ptid and
9831 current_thread_arch when PTID matches. Only reinit the frame
9832 cache if PTID matches the current inferior_ptid. Move alloca(0)
9834 (registers_changed): ... here.
9836 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9838 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9839 starts with __stack_chk_guard as stack guard symbol.
9841 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9843 * disasm.c (compare_lines): Handle the end of sequence markers
9844 within the line table to better support disassembling over
9845 compilation unit boundaries.
9847 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9849 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9850 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9851 implementation even if no symbols are available.
9852 (thumb_analyze_prologue): Update call to skip_prologue_function.
9853 (arm_analyze_prologue): Likewise.
9855 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9857 * arm-tdep.c: Include "observer.h".
9858 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9859 (arm_exidx_data_key): New static variable.
9860 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9861 (struct arm_exidx_data): Likewise.
9862 (arm_exidx_data_free): New function.
9863 (arm_compare_exidx_entries): Likewise.
9864 (arm_obj_section_from_vma): Likewise.
9865 (arm_exidx_new_objfile): Likewise.
9866 (arm_find_exidx_entry): Likewise.
9867 (arm_exidx_fill_cache): Likewise.
9868 (arm_exidx_unwind_sniffer): Likewise.
9869 (arm_exidx_unwind): New global variable.
9870 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9871 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9872 observer. Register arm_exidx_data_key as objfile data.
9874 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9876 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9877 due to accessing uninitialized variable. Fix indentation.
9879 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9881 * c-valprint.c (c_value_print): When doing virtual base pointer
9882 adjustment, create a new value with adjusted contents rather than
9883 changing the contents of the value being printed (and getting it
9886 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9888 * xml-support.c (xml_find_attribute): New.
9889 (xinclude_start_include): Use it.
9890 * xml-support.h (xml_find_attribute): Declare.
9891 * memory-map.c (memory_map_start_memory)
9892 (memory_map_start_property): Use xml_find_attribute.
9893 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9895 * remote.c (start_thread): Use xml_find_attribute.
9896 * solib-target.c (library_list_start_segment)
9897 (library_list_start_section, library_list_start_library)
9898 (library_list_start_list): Use xml_find_attribute.
9899 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9900 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9901 (tdesc_start_field): Use xml_find_attribute.
9903 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9905 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9906 (BUILD_OCL_VTYPES): Update.
9908 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9910 * configure.ac: Work around non-GNU sed limitation when computing
9911 python version number.
9912 * configure: Regenerate.
9914 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9916 Fix debug printing of TYPE_INSTANCE.
9917 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9918 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9920 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9922 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9923 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9924 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9925 * ada-operator.inc: Rename the file to ...
9926 * ada-operator.def: ... here, wrap all the entries by macro OP.
9927 * expprint.c (op_name_standard): Remove all the entries. Include
9928 "std-operator.def" instead.
9929 * expression.h (enum exp_opcode): Include "std-operator.def" and
9930 "ada-operator.def". Move all the entries ...
9931 * std-operator.def: ... here, wrap all the entries by macro OP.
9933 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9935 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9936 * breakpoint.c (remove_jit_event_breakpoints): New function.
9937 * jit.c (jit_descriptor_addr): Delete.
9938 (registering_code): Delete.
9939 (clear_int): Delete.
9940 (jit_inferior_data): New variable.
9941 (struct jit_inferior_data): New type.
9942 (get_jit_inferior_data): New function.
9943 (jit_inferior_data_cleanup): New function.
9944 (jit_read_descriptor): Adjust.
9945 (jit_register_code): Adjust.
9946 (jit_breakpoint_re_set_internal): New function; move code here ...
9947 (jit_inferior_init): ... from here.
9948 (jit_breakpoint_re_set): Adjust.
9949 (jit_reset_inferior_data_and_breakpoints): New function.
9950 (jit_inferior_created_observer): Adjust.
9951 (jit_inferior_exit_hook): Adjust.
9952 (jit_executable_changed_observer): New function.
9953 (jit_event_handler): Adjust.
9954 (_initialize_jit): Adjust.
9956 2011-01-31 Michael Snyder <msnyder@vmware.com>
9958 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9961 2011-01-31 Tom Tromey <tromey@redhat.com>
9964 * python/python.c (execute_gdb_command): Call
9965 prevent_dont_repeat.
9966 * top.c (suppress_dont_repeat): New global.
9967 (dont_repeat): Use it.
9968 (prevent_dont_repeat): New function.
9969 * command.h (prevent_dont_repeat): Declare.
9971 2011-01-31 Tom Tromey <tromey@redhat.com>
9973 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9974 * python/py-breakpoint.c (bppy_set_silent): Use
9975 breakpoint_set_silent.
9976 (bppy_set_thread): Use breakpoint_set_thread.
9977 (bppy_set_task): Use breakpoint_set_task.
9978 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9979 (breakpoint_set_task): Declare.
9980 (make_breakpoint_silent): Remove.
9981 * breakpoint.c (breakpoint_set_silent): New function.
9982 (breakpoint_set_thread): Likewise.
9983 (breakpoint_set_task): Likewise.
9984 (make_breakpoint_silent): Remove.
9986 2011-01-31 Tom Tromey <tromey@redhat.com>
9988 * breakpoint.h (user_breakpoint_p): Declare.
9989 * breakpoint.c (user_breakpoint_p): New function.
9990 (breakpoint_1): Use it.
9991 (save_breakpoints): Likewise.
9993 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9995 * configure.ac: Add handling of Python distribution on Windows.
9996 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9997 sysconfig variables are not defined, then do not use them.
9998 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9999 instead. On Windows, return all paths using forward-slashes
10000 rather than backslashes.
10002 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10004 * configure.ac: Remove fallback behavior for building
10005 against Python. Remove tweaking of Python include path.
10006 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10007 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10008 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10009 Always restore CPPFLAGS and LIBS after linking test.
10010 * configure: Regenerated.
10011 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10012 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10013 * python/python-internal.h: Adjust includes of Python .h files.
10015 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10017 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10020 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10022 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10025 2011-01-31 Yao Qi <yao@codesourcery.com>
10027 * arm-linux-nat.c: Update calls to regcache_register_status
10028 instead of regcache_valid_p.
10029 * aix-thread.c: Likewise.
10030 * i386gnu-nat.c: Likewise.
10032 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10035 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10036 touching TYPE_FIELD_ARTIFICIAL.
10038 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10040 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10043 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10045 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10046 selected, don't try iterating over the traceframe's blocks.
10047 (tfile_has_stack): If there's no traceframe selected, then there's
10049 (tfile_has_registers): If there's no traceframe selected, then
10050 there's no registers.
10052 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10054 * target.c (memory_xfer_partial): No need to restore shadows if we
10055 haven't read anything.
10057 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10059 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10060 and val_print_scalar_formatted.
10062 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10064 * tracepoint.c (tfile_read): New.
10065 (tfile_open): Use it.
10066 (tfile_get_traceframe_address): Use it.
10067 (tfile_trace_find): Use it.
10068 (walk_blocks_callback_func): New typedef.
10069 (match_blocktype): New function.
10070 (traceframe_walk_blocks): New function.
10071 (traceframe_find_block_type): New function.
10072 (tfile_fetch_registers, tfile_xfer_partial)
10073 (tfile_get_trace_state_variable_value): Use
10074 traceframe_find_block_type and tfile_read.
10076 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10078 * remote-mips.c: Add internationalization mark ups. Remove
10079 trailing \n from already marked up strings.
10081 2011-01-26 Tom Tromey <tromey@redhat.com>
10083 * python/py-prettyprint.c (print_string_repr): Clear
10084 'addressprint' option when calling val_print_string.
10085 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10086 option when calling val_print_string.
10088 2011-01-26 Tom Tromey <tromey@redhat.com>
10090 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10092 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10094 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10095 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10096 (gdb_py_long_as_ulongest): New defines.
10097 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10098 (gdb_py_int_as_long): Declare.
10099 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10100 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10101 (valpy_long): Add comment.
10102 * python/py-utils.c (get_addr_from_python): Use
10103 gdb_py_long_as_ulongest. Handle overflow properly.
10104 (gdb_py_object_from_longest): New function.
10105 (gdb_py_object_from_ulongest): Likewise.
10106 (gdb_py_int_as_long): Likewise.
10107 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10108 * python/py-symtab.c (salpy_get_pc): Use
10109 gdb_py_long_from_ulongest.
10110 (salpy_get_line): Use PyInt_FromLong.
10111 * python/py-param.c (set_parameter_value): Use
10112 gdb_py_int_as_long.
10113 * python/py-lazy-string.c (stpy_get_address): Use
10114 gdb_py_long_from_ulongest.
10115 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10116 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10117 * python/py-breakpoint.c (bppy_set_thread): Use
10118 gdb_py_int_as_long.
10119 (bppy_set_task): Likewise.
10120 (bppy_set_ignore_count): Likewise.
10121 (bppy_set_hit_count): Likewise.
10122 * python/py-block.c (blpy_get_start): Use
10123 gdb_py_object_from_ulongest.
10124 (blpy_get_end): Likewise.
10125 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10127 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10130 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10131 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10132 equality test for objfile, initialize addr_low if needed.
10134 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10136 * tui/tui-regs.c (tui_register_format): Remove dead code.
10138 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10140 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10141 instead of print_scalar_formatted.
10142 (print_scalar_formatted): Don't handle 's' format strings here,
10143 and add an assertion that we never see such format here.
10144 * valprint.h (val_print_scalar_formatted): Declare.
10145 * valprint.c (val_print_scalar_formatted): New.
10146 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10147 instead of print_scalar_formatted.
10148 * jv-valprint.c (java_val_print): Ditto.
10149 * p-valprint.c (pascal_val_print): Ditto.
10150 * ada-valprint.c (ada_val_print_1): Ditto.
10151 * f-valprint.c (f_val_print): Ditto.
10152 * infcmd.c (registers_info): Ditto.
10153 * m2-valprint.c (m2_val_print): Ditto.
10155 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10157 * m2-valprint.c (print_unbounded_array): Pass
10158 value_contents_for_printing rather than value_contents, to
10159 m2_print_array_contents. Also pass in the value.
10161 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10163 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10164 (save_gdb_index_command): Switch to .gdb_index version 4.
10166 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10168 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10169 than frame_register, and always pass a valid value to val_print.
10171 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10173 Centralize printing "<optimized out>".
10175 * valprint.h (val_print_optimized_out): Declare.
10176 * cp-valprint.c (cp_print_value_fields): Use
10177 val_print_optimized_out.
10178 * jv-valprint.c (java_print_value_fields): Ditto.
10179 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10180 * printcmd.c (print_formatted): Ditto.
10181 * valprint.c (valprint_check_validity): Ditto.
10182 (value_check_printable): Ditto.
10183 (val_print_optimized_out): New.
10185 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10187 * infcmd.c (default_print_registers_info): Allocate values so to
10188 never pass a NULL value to val_print.
10190 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10192 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10193 boolean. Make sure to always pass a value that matches the
10194 contents buffer to callees. Preserve `address' for following
10196 * value.c (value_contents_for_printing_const): New.
10197 (value_address): Constify value argument.
10198 * value.h (value_contents_for_printing_const): Declare.
10199 (value_address): Constify value argument.
10201 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10203 * regcache.c (struct regcache_descr): Rename
10204 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10205 and sizeof_cooked_register_valid_p to
10206 sizeof_cooked_register_status.
10207 (init_regcache_descr): Adjust.
10208 (struct regcache): Rename register_valid_p field to
10210 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10211 (do_cooked_read): Adjust.
10212 (regcache_valid_p): Rename to ...
10213 (regcache_register_status): ... this. Adjust.
10214 (regcache_invalidate): Adjust.
10215 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10217 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10218 as unavailable, not valid.
10219 (regcache_dump): Adjust.
10220 * regcache.h (enum register_status): New.
10221 (regcache_register_status): Declare.
10222 (regcache_invalidate): Delete declaration.
10223 * corelow.c (get_core_registers): Adjust.
10224 * tracepoint.c (tfile_fetch_registers): Adjust.
10225 * trad-frame.c (REG_VALUE): Rename to ...
10226 (TF_REG_VALUE): ... this.
10227 (REG_UNKNOWN): Rename to ...
10228 (TF_REG_UNKNOWN): ... this.
10229 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10230 * mi/mi-main.c (register_changed_p): Adjust.
10232 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10234 * regcache.c (struct regcache_descr): Remove outdated comment.
10235 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10237 (regcache_xmalloc): Rename to ...
10238 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10239 Allocate the regcache type accordingly.
10240 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10241 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10242 cooked registers, not raw.
10243 (regcache_dup_no_passthrough): Delete.
10244 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10245 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10246 mention obsolete write_register_bytes.
10247 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10249 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10251 Stop remote_read_bytes from handling partial reads itself.
10253 * remote-fileio.c: Include target.h.
10254 (remote_fileio_write_bytes): Delete.
10255 (remote_fileio_func_open, remote_fileio_func_write)
10256 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10257 target_read_memory.
10258 (remote_fileio_func_stat): Use target_read_memory and
10259 target_write_memory.
10260 (remote_fileio_func_gettimeofday): Use target_write_memory.
10261 (remote_fileio_func_system): Use target_read_memory.
10262 * remote.c (remote_write_bytes): Make it static.
10263 (remote_read_bytes): Don't handle partial reads here.
10264 * remote.h (remote_read_bytes): Delete declaration.
10266 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10268 Simplify XML parsing a bit.
10270 * xml-support.h (gdb_xml_parse_quick): Declare.
10271 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10272 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10274 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10275 gdb_xml_create_parser_and_cleanup_1.
10276 (gdb_xml_parse_quick): New.
10277 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10278 * osdata.c (osdata_parse): Ditto.
10279 * remote.c (remote_threads_info): Ditto.
10280 * solib-target.c (solib_target_parse_libraries): Ditto.
10281 * xml-syscall.c (syscall_parse_xml): Ditto.
10282 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10284 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10286 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10287 with remote-mips.o added to gdb_target_obs.
10288 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10290 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10292 * ada-valprint.c (val_print_packed_array_elements): Pass the
10293 correct struct value to val_print.
10294 (ada_val_print_1): Ditto.
10296 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10298 Don't lose embedded_offset in printing routines throughout.
10300 * valprint.h (val_print_array_elements): Change prototype.
10301 * valprint.c (val_print_array_elements): Add `embedded_offset'
10302 parameter, and adjust to pass it down to val_print, while passing
10303 `valaddr' or `address' unmodified. Take embedded_offset into
10304 account when checking repetitions.
10305 * c-valprint.c (c_val_print): Pass embedded_offset to
10306 val_print_array_elements instead of adjusting `valaddr' and
10308 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10309 embedded_offset to val_print_array_elements instead of adjusting
10311 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10312 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10313 val_print_array_elements and pascal_object_print_value_fields
10314 instead of adjusting `valaddr'.
10315 (pascal_object_print_value_fields): Add `offset' parameter, and
10317 (pascal_object_print_value): Add `offset' parameter, and adjust to
10319 (pascal_object_print_static_field): Use
10320 value_contents_for_printing/value_embedded_offset, rather than
10322 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10323 parameter, and adjust to use it. Use
10324 value_contents_for_printing/value_embedded_offset, rather than
10326 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10327 (ada_val_print_array): Add `offset' parameter, and adjust to use
10329 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10330 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10331 Instead work with offsets. Use
10332 value_contents_for_printing/value_embedded_offset, rather than
10333 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10334 and use value_from_pointer to extract a target pointer, rather
10335 than value_from_longest.
10336 (print_variant_part): Add `offset' parameter. Replace
10337 `outer_valaddr' parameter by a new `outer_offset' parameter.
10338 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10339 (ada_value_print): Use
10340 value_contents_for_printing/value_embedded_offset, rather than
10342 (print_record): Add `offset' parameter, and adjust to pass it
10344 (print_field_values): Add `offset' parameter. Replace
10345 `outer_valaddr' parameter by a new `outer_offset' parameter.
10346 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10347 Use value_contents_for_printing/value_embedded_offset, rather than
10349 * d-valprint.c (dynamic_array_type): Use
10350 value_contents_for_printing/value_embedded_offset, rather than
10352 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10353 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10354 (java_print_value_fields): Take `offset' into account. Don't
10355 re-adjust `valaddr'. Instead pass down adjusted offsets.
10356 (java_val_print): Take `embedded_offset' into account. Pass it to
10357 java_print_value_fields.
10358 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10359 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10360 down adjusted offsets.
10361 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10362 (f_val_print): Take `embedded_offset' into account.
10364 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10366 * inflow.c: Include "gdbcmd.h".
10367 (interactive_mode): New static global, moved here from top.c.
10368 (show_interactive_mode): New function, moved here from top.c.
10369 use gdb_has_a_terminal instead of input_from_terminal_p to
10370 determine the current mode.
10371 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10373 (_initialize_inflow): Add the "set/show interactive-mode"
10374 commands. Moved here from top.c, after having adjusted slightly
10376 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10378 (input_from_terminal_p): Remove handling of "interactive-mode"
10379 setting, moved to infow.c.
10380 (init_main): Remove creation of the "set/show interactive-mode"
10381 commands, moved to inflow.c.
10383 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10385 * NEWS: Add entry for native ia64-hpux support.
10387 2011-01-19 Tom Tromey <tromey@redhat.com>
10390 * thread.c (free_thread): Free 'name'.
10391 (print_thread_info): Emit thread name. Change CLI output.
10392 (thread_name_command): New function.
10393 (do_captured_thread_select): Emit newline.
10394 (_initialize_thread): Register 'thread name' command.
10395 * target.h (struct target_ops) <to_thread_name>: New field.
10396 (target_thread_name): New macro.
10397 * target.c (update_current_target): Handle to_thread_name.
10398 * python/py-infthread.c (thpy_get_name): New function.
10399 (thpy_set_name): Likewise.
10400 (thread_object_getset): Add "name".
10401 * linux-nat.c (linux_nat_thread_name): New function.
10402 (linux_nat_add_target): Set to_thread_name.
10403 * gdbthread.h (struct thread_info) <name>: New field.
10405 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10407 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10408 (ada_val_print_1): Likewise.
10410 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10412 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10413 upper limit address is not greater than the function end address
10414 when the upper limit could not be computed using the debugging
10417 2011-01-17 Tom Tromey <tromey@redhat.com>
10419 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10421 * utils.c: Include gdb_regex.h.
10422 (do_regfree_cleanup): New function.
10423 (make_regfree_cleanup): Likewise.
10424 (get_regcomp_error): Likewise.
10425 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10427 2011-01-17 Tom Tromey <tromey@redhat.com>
10429 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10430 re_compile_fastmap.
10432 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10434 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10435 for internal variables.
10436 (last_was_structop): New static variable.
10437 (COMPLETE): New token.
10438 (field_exp): New rule to group all '.' suffix handling.
10439 Add mark_struct_expression calls when approriate to be able
10440 to correctly find fields for completion.
10441 (yylex): Adapt to handle field completion and set INTVAR when
10444 2011-01-14 Yao Qi <yao@codesourcery.com>
10446 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10447 save_reggroup, restore_reggroup and all_reggroup.
10449 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10451 * ada-valprint. (ada_printchar): Use the correct type length
10452 in call to ada_emit_char.
10453 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10455 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10457 * solib-som.h (hpux_major_release): Declare variable here.
10458 * solib-som.c: Remove <sys/utsname.h> header.
10459 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10460 (hpux_major_release): Make global, change default value to
10461 DEFAULT_HPUX_MAJOR_RELEASE.
10462 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10463 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10464 Add "solib-som.h" header.
10465 (set_hpux_major_release): New function.
10466 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10468 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10470 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10472 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10474 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10475 new-line at end of warning message.
10476 (ia64_hpux_store_register): Remove trailing new-line at end of
10478 * ia64-hpux-tdep.c: Rephrase comment.
10479 * solib-ia64-hpux.c (struct dld_info): Change type of field
10480 dld_flags from "long long" to ULONGEST.
10482 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10484 * target.h (deprecated_child_ops): Delete declaration.
10485 * target.c (deprecated_child_ops): Delete definition.
10487 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10489 * Makefile.in (hpux-thread.o): Delete rule.
10490 * configure.ac: Don't check for HPUX DCE threads support.
10491 * configure, config.in: Regenerate.
10492 * hppa-hpux-nat.c (child_suppress_run): Delete.
10493 (hppa_hpux_child_can_run): Delete.
10494 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10495 * hpux-thread.c: Delete.
10497 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10499 * hpux-thread.c (hpux_pid_to_str): Delete.
10501 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10503 * ada-valprint.c (ada_emit_char): Remove strange code.
10504 Check that c is <= UCHAR_MAX before passing it to isascii.
10505 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10507 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10509 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10510 to the case where instream is stdin.
10512 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10514 * ia64-tdep.h (struct regcache): Forward declare.
10515 (struct ia64_infcall_ops): New struct type.
10516 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10518 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10519 Renames ia64_find_global_pointer.
10520 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10521 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10522 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10524 (ia64_infcall_ops): New static global constant.
10525 (ia64_gdbarch_init): Set tdep->infcall_ops.
10526 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10527 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10528 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10529 (ia64_hpux_dummy_code): New static global constant.
10530 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10531 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10532 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10534 (ia64_hpux_infcall_ops): New static global constant.
10535 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10536 for inferior function calls to work properly on ia64-hpux.
10538 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10540 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10541 * ia64-tdep.h (struct frame_info): forward declaration.
10542 (struct gdbarch_tdep): Add field size_of_register_frame.
10543 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10544 to determine the size of the register frame.
10545 (ia64_size_of_register_frame): New function.
10546 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10547 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10548 (IA64_HPUX_UREG_REASON): New macro.
10549 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10551 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10552 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10553 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10556 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10558 Add support for ia64-hpux.
10559 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10560 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10562 * configure.host: Add handling for ia64-hpux hosts. Add associated
10564 * configure.tgt: Add handling for ia64-hpux targets.
10565 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10566 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10567 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10569 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10571 [ttrace] Compute thread list immediately after attach.
10572 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10574 (inf_ttrace_attach): Use it.
10576 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10578 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10579 if we could not determine the frame's function address. Instead,
10580 use the frame's PC, and then continue.
10582 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10584 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10585 not already defined.
10587 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10589 * ia64-tdep.c (ia64_struct_type_p): New function.
10590 (ia64_extract_return_value): Handle integral values that are
10591 less than 8 bytes long.
10592 (ia64_push_dummy_call): Likewise.
10594 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10596 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10597 floatformat_ia64_ext.
10598 (floatformat_ia64_ext_big): New static const.
10599 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10601 2011-01-12 Tom Tromey <tromey@redhat.com>
10603 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10605 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10606 (mi_cmd_thread_list_ids): Likewise.
10607 (mi_cmd_data_list_changed_registers): Likewise.
10608 (mi_cmd_data_list_register_values): Likewise.
10609 (mi_cmd_data_write_register_values): Likewise.
10610 (mi_cmd_data_evaluate_expression): Likewise.
10611 (mi_cmd_data_read_memory): Likewise.
10612 (mi_cmd_data_read_memory_bytes): Likewise.
10613 (mi_cmd_data_write_memory): Likewise.
10614 (mi_cmd_enable_timings): Likewise.
10615 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10616 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10617 (mi_cmd_var_delete): Likewise.
10618 (mi_cmd_var_set_format): Likewise.
10619 (mi_cmd_var_show_format): Likewise.
10620 (mi_cmd_var_info_num_children): Likewise.
10621 (mi_cmd_var_list_children): Likewise.
10622 (mi_cmd_var_info_type): Likewise.
10623 (mi_cmd_var_info_expression): Likewise.
10624 (mi_cmd_var_show_attributes): Likewise.
10625 (mi_cmd_var_assign): Likewise.
10626 (mi_cmd_var_update): Likewise.
10627 (mi_cmd_enable_pretty_printing): Likewise.
10628 (mi_cmd_var_set_update_range): Likewise.
10629 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10631 (mi_cmd_target_file_put): Likewise.
10632 (mi_cmd_target_file_delete): Likewise.
10633 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10635 (mi_cmd_stack_info_depth): Likewise.
10636 (mi_cmd_stack_list_locals): Likewise.
10637 (mi_cmd_stack_list_args): Likewise.
10638 (mi_cmd_stack_select_frame): Likewise.
10639 (mi_cmd_stack_select_frame): Likewise.
10640 (mi_cmd_stack_info_frame): Likewise.
10641 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10643 (mi_cmd_file_list_exec_source_files): Likewise.
10644 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10645 (mi_cmd_env_cd): Likewise.
10646 (mi_cmd_env_path): Likewise.
10647 (mi_cmd_env_dir): Likewise.
10648 (mi_cmd_inferior_tty_show): Likewise.
10649 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10650 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10651 (mi_cmd_break_watch): Likewise.
10653 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10655 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10656 (ppc_linux_insert_hw_breakpoint): Likewise.
10657 (ppc_linux_remove_hw_breakpoint): Likewise.
10658 (ppc_linux_insert_watchpoint): Likewise.
10660 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10661 Jan Kratochvil <jan.kratochvil@redhat.com>
10663 PR fortran/11104 and DWARF unbound arrays detection.
10664 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10665 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10666 unspecified upper bound.
10667 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10668 variables array_size_array, tmp_type and offset_item. New variable
10669 array. Remove call to f77_get_upperbound. New variables array_type
10670 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10671 the final call to deprecated_set_value_type.
10673 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10675 Make value allocations more lazy.
10676 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10677 instead of allocate_value and set_value_lazy when possible.
10678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10679 instead of allocate_value and set_value_lazy.
10680 * findvar.c (value_of_register_lazy): Likewise.
10681 (read_var_value): Remove V preallocation, call just check_typedef in
10682 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10683 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10684 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10685 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10686 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10687 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10688 the end, remove set_value_lazy there.
10689 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10690 instead of allocate_value and set_value_lazy when possible.
10691 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10692 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10693 of allocate_value and set_value_lazy.
10694 (value_from_contents_and_address): Use allocate_value_lazy instead of
10695 allocate_value and set_value_lazy when possible.
10697 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10699 * disasm.c (dump_insns): Support dumping opcodes for MI.
10700 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10701 dumping of instruction opcodes.
10703 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10705 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10708 2011-01-11 Tom Tromey <tromey@redhat.com>
10710 * thread.c (do_captured_thread_select): Emit newline before
10713 2011-01-11 Michael Snyder <msnyder@vmware.com>
10715 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10716 * score-tdep.c: Ditto.
10717 * score-tdep.h: Ditto.
10718 * ser-base.c: Ditto.
10719 * ser-go32.c: Ditto.
10722 * ser-mingw.c: Ditto.
10723 * ser-pipe.c: Ditto.
10724 * ser-tcp.c: Ditto.
10725 * ser-unix.c: Ditto.
10726 * sh64-tdep.c: Ditto.
10727 * shnbsd-nat.c: Ditto.
10728 * sh-tdep.c: Ditto.
10729 * sh-tdep.h: Ditto.
10731 * solib-darwin.c: Ditto.
10732 * solib-frv.c: Ditto.
10734 * solib-irix.c: Ditto.
10735 * solib-osf.c: Ditto.
10736 * solib-pa64.c: Ditto.
10737 * solib-som.c: Ditto.
10738 * solib-spu.c: Ditto.
10739 * solib-sunos.c: Ditto.
10740 * solib-svr4.c: Ditto.
10742 * sol-thread.c: Ditto.
10743 * somread.c: Ditto.
10746 * sparc64-linux-tdep.c: Ditto.
10747 * sparc64-tdep.c: Ditto.
10748 * sparc-linux-nat.c: Ditto.
10749 * sparc-linux-tdep.c: Ditto.
10750 * sparc-sol2-nat.c: Ditto.
10751 * sparc-sol2-tdep.c: Ditto.
10752 * sparc-tdep.c: Ditto.
10753 * sparc-tdep.h: Ditto.
10754 * spu-tdep.c: Ditto.
10755 * stabsread.c: Ditto.
10756 * stabsread.h: Ditto.
10758 * symfile.c: Ditto.
10759 * symfile.h: Ditto.
10760 * symmisc.c: Ditto.
10764 * target-descriptions.c: Ditto.
10765 * target-descriptions.h: Ditto.
10767 * target-memory.c: Ditto.
10768 * terminal.h: Ditto.
10771 * tracepoint.c: Ditto.
10772 * tracepoint.h: Ditto.
10773 * trad-frame.h: Ditto.
10774 * typeprint.c: Ditto.
10776 2011-01-11 Michael Snyder <msnyder@vmware.com>
10778 * ui-file.c: Comment cleanup, mostly periods and spaces.
10779 * ui-file.h: Ditto.
10783 * v850-tdep.c: Ditto.
10784 * valarith.c: Ditto.
10786 * valprint.c: Ditto.
10787 * valprint.h: Ditto.
10792 * vax-tdep.c: Ditto.
10795 * version.h: Ditto.
10796 * windows-nat.c: Ditto.
10797 * windows-tdep.c: Ditto.
10798 * xcoffread.c: Ditto.
10799 * xcoffsolib.c: Ditto.
10800 * xml-support.c: Ditto.
10801 * xstormy16-tdep.c: Ditto.
10802 * xtensa-tdep.c: Ditto.
10803 * xtensa-tdep.h: Ditto.
10805 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10807 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10808 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10810 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10811 Thiago Jung Bauermann <bauerman@br.ibm.com>
10813 Implement support for PowerPC BookE ranged watchpoints.
10815 (struct breakpoint_ops) <resources_needed>: New method.
10816 Initialize to NULL in all existing breakpoint_ops instances.
10817 (struct breakpoint) <exact>: New field.
10818 (target_exact_watchpoints): Declare external global.
10819 * breakpoint.c (target_exact_watchpoints): New global flag.
10820 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10821 b->enable_state to bp_enabled before calling
10822 hw_watchpoint_used_count.
10823 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10824 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10826 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10827 if the watchpoint is exact.
10828 (resources_needed_watchpoint): New function.
10829 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10830 (watch_command_1): Set b->exact if the user asked for an exact
10831 watchpoint and one can be set.
10832 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10833 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10834 the user asks for an exact watchpoint and one can be set. Return
10835 number of needed debug registers to watch the expression.
10836 * gdbtypes.c (is_scalar_type): New function, based on
10837 valprint.c:scalar_type_p.
10838 (is_scalar_type_recursive): New function.
10839 * gdbtypes.h (is_scalar_type_recursive): Declare.
10840 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10841 handle regions when ranged watchpoints are available.
10842 (create_watchpoint_request): New function.
10843 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10844 create_watchpoint_request.
10845 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10846 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10847 `set powerpc' and `show powerpc' commands.
10848 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10849 Mention documentation comment in the target macro.
10850 (target_region_ok_for_hw_watchpoint): Document return value.
10852 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10854 * breakpoint.c (update_watchpoint): Decide on using a software or
10855 hardware watchpoint after the bp_locations are created.
10857 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10859 Convert hardware watchpoints to use breakpoint_ops.
10860 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10861 <insert_location>: ... this. Return int instead of void.
10862 Accept pointer to struct bp_location instead of pointer to
10863 struct breakpoint. Adapt all implementations.
10864 (breakpoint_ops) <remove>: Rename to...
10865 <remove_location>: ... this. Accept pointer to struct bp_location
10866 instead of pointer to struct breakpoint. Adapt all implementations.
10867 * breakpoint.c (insert_catchpoint): Delete function.
10868 (insert_bp_location): Call the watchpoint or catchpoint's
10869 breakpoint_ops.insert method.
10870 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10871 breakpoint_ops.remove method.
10872 (insert_watchpoint, remove_watchpoint): New functions.
10873 (watchpoint_breakpoint_ops): New structure.
10874 (watch_command_1): Initialize the OPS field.
10875 * inf-child.c (inf_child_insert_fork_catchpoint)
10876 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10877 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10878 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10880 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10881 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10882 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10883 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10884 * target.c (update_current_target): Change default implementation of
10885 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10886 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10887 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10888 to_set_syscall_catchpoint to return_one.
10889 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10890 (debug_to_insert_exec_catchpoint): Report return value.
10891 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10892 (to_insert_exec_catchpoint): Change declaration to return int instead
10895 2011-01-11 Michael Snyder <msnyder@vmware.com>
10897 * arm-tdep.c: Internationalization.
10899 * charset.c: Ditto.
10900 * fork-child.c: Ditto.
10901 * nto-procfs.c: Ditto.
10902 * ppc-sysv-tdep.c: Ditto.
10904 * remote-mips.c: Ditto.
10906 * rs6000-nat.c: Ditto.
10907 * rs6000-tdep.c: Ditto.
10911 * xml-support.c: Ditto.
10912 * mi/mi-cmd-break.c: Ditto.
10913 * mi/mi-cmd-var.c: Ditto.
10914 * mi/mi-interp.c: Ditto.
10915 * mi/mi-main.c: Ditto.
10917 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10919 * remote-sim.c (gdbsim_store_register): Update API to
10920 sim_store_register to check more error conditions.
10922 2011-01-10 Michael Snyder <msnyder@vmware.com>
10924 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10925 * nto-tdep.c: Ditto.
10926 * nto-tdep.h: Ditto.
10927 * objc-exp.y: Ditto.
10928 * objc-lang.c: Ditto.
10929 * objfiles.c: Ditto.
10930 * objfiles.h: Ditto.
10931 * observer.c: Ditto.
10932 * opencl-lang.c: Ditto.
10935 * parser-defs.h: Ditto.
10938 * posix-hdep.c: Ditto.
10939 * ppcbug-rom.c: Ditto.
10940 * ppc-linux-nat.c: Ditto.
10941 * ppc-linux-tdep.c: Ditto.
10942 * ppc-linux-tdep.h: Ditto.
10943 * ppcnbsd-tdep.c: Ditto.
10944 * ppcobsd-tdep.c: Ditto.
10945 * ppcobsd-tdep.h: Ditto.
10946 * ppc-sysv-tdep.c: Ditto.
10947 * ppc-tdep.h: Ditto.
10948 * printcmd.c: Ditto.
10949 * proc-abi.c: Ditto.
10950 * proc-flags.c: Ditto.
10952 * proc-utils.h: Ditto.
10953 * progspace.h: Ditto.
10954 * prologue-value.c: Ditto.
10955 * prologue-value.h: Ditto.
10956 * psympriv.h: Ditto.
10957 * psymtab.c: Ditto.
10958 * p-typeprint.c: Ditto.
10959 * p-valprint.c: Ditto.
10960 * ravenscar-sparc-thread.c: Ditto.
10961 * ravenscar-thread.c: Ditto.
10962 * ravenscar-thread.h: Ditto.
10964 * regcache.c: Ditto.
10965 * regcache.h: Ditto.
10967 * remote-fileio.c: Ditto.
10968 * remote-fileio.h: Ditto.
10970 * remote-m32r-sdi.c: Ditto.
10971 * remote-mips.c: Ditto.
10972 * remote-sim.c: Ditto.
10973 * rs6000-aix-tdep.c: Ditto.
10974 * rs6000-nat.c: Ditto.
10975 * rs6000-tdep.c: Ditto.
10977 2011-01-10 Michael Snyder <msnyder@vmware.com>
10979 * charset.c (validate): Internationalization.
10980 * coffread.c (read_one_sym): Ditto.
10981 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10982 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10983 * inflow.c (new_tty): Ditto.
10984 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10985 * m32c-tdep.c (m32c_return_value): Ditto.
10986 * mep-tdep.c (mep_store_return_value): Ditto.
10987 * score-tdep.c (score7_fetch_insn): Ditto.
10988 * ser-mingw.c (pipe_windows_open): Ditto.
10989 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10990 * spu-tdep.c (spu_register_type): Ditto.
10991 * tracepoint.c (trace_find_command): Ditto.
10992 * valarith.c (value_pos): Ditto.
10994 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10996 * ada-valprint.c (printstr): Minor comment reformatting.
10998 2011-01-08 Michael Snyder <msnyder@vmware.com>
11000 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11003 2011-01-08 Michael Snyder <msnyder@vmware.com>
11005 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11006 * hppa-hpux-tdep.c: Ditto.
11007 * hppa-linux-nat.c: Ditto.
11008 * hppa-linux-tdep.c: Ditto.
11009 * hppanbsd-tdep.c: Ditto.
11010 * hppa-tdep.c: Ditto.
11011 * hppa-tdep.h: Ditto.
11012 * hpux-thread.c: Ditto.
11013 * i386-cygwin-tdep.c: Ditto.
11014 * i386-darwin-nat.c: Ditto.
11015 * i386gnu-nat.c: Ditto.
11016 * i386-linux-nat.c: Ditto.
11017 * i386-linux-tdep.c: Ditto.
11018 * i386-nat.c: Ditto.
11019 * i386-nat.h: Ditto.
11020 * i386nbsd-tdep.c: Ditto.
11021 * i386-sol2-nat.c: Ditto.
11022 * i386-stub.c: Ditto.
11023 * i386-tdep.c: Ditto.
11024 * i386-tdep.h: Ditto.
11025 * i387-tdep.c: Ditto.
11026 * ia64-linux-nat.c: Ditto.
11027 * ia64-linux-tdep.c: Ditto.
11028 * ia64-tdep.c: Ditto.
11029 * infcall.c: Ditto.
11030 * infcall.h: Ditto.
11032 * inferior.c: Ditto.
11033 * inferior.h: Ditto.
11034 * infloop.c: Ditto.
11037 * interps.c: Ditto.
11038 * interps.h: Ditto.
11039 * iq2000-tdep.c: Ditto.
11040 * irix5-nat.c: Ditto.
11044 * jv-lang.c: Ditto.
11045 * jv-lang.h: Ditto.
11046 * jv-typeprint.c: Ditto.
11047 * jv-valprint.c: Ditto.
11048 * language.c: Ditto.
11049 * language.h: Ditto.
11050 * linespec.c: Ditto.
11051 * linux-fork.c: Ditto.
11052 * linux-nat.c: Ditto.
11053 * linux-thread-db.c: Ditto.
11054 * lm32-tdep.c: Ditto.
11056 2011-01-08 Michael Snyder <msnyder@vmware.com>
11058 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11059 * m2-lang.c: Ditto.
11060 * m2-typeprint.c: Ditto.
11061 * m2-valprint.c: Ditto.
11062 * m32c-tdep.c: Ditto.
11063 * m32r-linux-nat.c: Ditto.
11064 * m32r-rom.c: Ditto.
11065 * m32r-tdep.c: Ditto.
11066 * m32r-tdep.h: Ditto.
11067 * m68hc11-tdep.c: Ditto.
11068 * m58klinux-nat.c: Ditto.
11069 * m68k-tdep.c: Ditto.
11070 * m88k-tdep.c: Ditto.
11071 * m88k-tdep.h: Ditto.
11072 * machoread.c: Ditto.
11073 * macrocmd.c: Ditto.
11074 * macroexp.c: Ditto.
11075 * macrotab.c: Ditto.
11078 * mdebugread.c: Ditto.
11079 * mdebugread.h: Ditto.
11080 * memattr.c: Ditto.
11081 * memattr.h: Ditto.
11082 * memory-map.h: Ditto.
11083 * mep-tdep.c: Ditto.
11084 * microblaze-rom.c: Ditto.
11085 * microblaze-tdep.c: Ditto.
11086 * minsyms.c: Ditto.
11087 * mips-irix-tdep.c: Ditto.
11088 * mips-linux-nat.c: Ditto.
11089 * mips-linux-tdep.c: Ditto.
11090 * mips-linux-tdep.h: Ditto.
11091 * mipsnbsd-nat.c: Ditto.
11092 * mipsnbsd-tdep.c: Ditto.
11093 * mipsread.c: Ditto.
11094 * mips-tdep.c: Ditto.
11095 * mips-tdep.h: Ditto.
11096 * mn10300-linux-tdep.c: Ditto.
11097 * mn10300-tdep.c: Ditto.
11098 * mn10300-tdep.h: Ditto.
11099 * monitor.c: Ditto.
11100 * monitor.h: Ditto.
11101 * moxie-tdep.c: Ditto.
11102 * moxie-tdep.h: Ditto.
11103 * mt-tdep.c: Ditto.
11105 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11107 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11109 2011-01-08 Robert Millan <rmh@gnu.org>
11111 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11113 2011-01-07 Michael Snyder <msnyder@vmware.com>
11115 * charset.c (_initialize_charset): Fix typo in string.
11117 2011-01-07 Michael Snyder <msnyder@vmware.com>
11119 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11121 * tui/tui-layout.c (tui_set_layout_for_display_command):
11122 Split line so that operator goes to beginning of line.
11123 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11124 assignment out of if statement.
11126 2011-01-07 Michael Snyder <msnyder@vmware.com>
11128 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11129 * ada-lang.h: Ditto.
11130 * ada-tasks.c: Ditto.
11131 * ada-valprint.c: Ditto.
11132 * aix-threads.c: Ditto.
11133 * alpha-linux-nat.c: Ditto.
11134 * alpha-linux-tdep.c: Ditto.
11135 * alpha-mdebug-tdep.c: Ditto.
11136 * alpha-nat.c: Ditto.
11137 * alpha-osf1-tdep.c: Ditto.
11138 * alpha-tdep.c: Ditto.
11139 * alphabsd-nat.c: Ditto.
11140 * alphabsd-tdep.c: Ditto.
11141 * amd64-darwin-tdep.c: Ditto.
11142 * amd64-linux-nat.c: Ditto.
11143 * amd64-linux-tdep.c: Ditto.
11144 * amd64-sol2-tdep.c: Ditto.
11145 * amd64-tdep.c: Ditto.
11146 * amd64-fbsd-tdep.c: Ditto.
11147 * amd64-nbsd-tdep.c: Ditto.
11148 * amd64-obsd-tdep.c: Ditto.
11149 * amd64-linux-nat.c: Ditto.
11150 * amd64-linux-tdep.c: Ditto.
11151 * arm-tdep.c: Ditto.
11152 * arm-tdep.h: Ditto.
11153 * armnbsd-nat.c: Ditto.
11154 * avr-tdep.c: Ditto.
11155 * bfin-tdep.c: Ditto.
11156 * bsd-kvm.c: Ditto.
11157 * c-typeprintc: Ditto.
11158 * c-valprint.c: Ditto.
11159 * coff-pe-read.h: Ditto.
11160 * coffreead.c: Ditto.
11161 * cris-tdep.c: Ditto.
11163 * darwin-nat-info.c: Ditto.
11164 * darwin-nat.c: Ditto.
11165 * dbug-rom.c: Ditto.
11166 * dbxread.c: Ditto.
11169 * dec-thread.c: Ditto.
11171 * demangle.c: Ditto.
11172 * dicos-tdep.c: Ditto.
11173 * dictionary.c: Ditto.
11174 * dictionary.h: Ditto.
11175 * dink32-rom.c: Ditto.
11177 * doublest.c: Ditto.
11179 * dummy-frame.c: Ditto.
11180 * dwarf2-frame.c: Ditto.
11181 * dwarf2expr.c: Ditto.
11182 * dwarf2loc.c: Ditto.
11183 * dwarf2read.c: Ditto.
11184 * elfread.c: Ditto.
11185 * environ.c: Ditto.
11187 * event-top.h: Ditto.
11188 * exceptions.c: Ditto.
11189 * exceptions.h: Ditto.
11191 * expprint.c: Ditto.
11192 * expression.h: Ditto.
11196 * f-typeprint.c: Ditto.
11197 * f-valprint.c: Ditto.
11198 * fbsd-nat.c: Ditto.
11199 * findvar.c: Ditto.
11200 * fork-child.c: Ditto.
11203 * frv-linux-tdep.c: Ditto.
11204 * frv-tdep.c: Ditto.
11206 * gdb-stabs.h: Ditto.
11207 * gdb_assert.h: Ditto.
11208 * gdb_string.h: Ditto.
11209 * gdb_thread_db.h: Ditto.
11210 * gdb_wait.h: Ditto.
11211 * gdbarch.sh: Ditto.
11212 * gdbcore.h: Ditto.
11213 * gdbthread.h: Ditto.
11214 * gdbtypes.c: Ditto.
11215 * gdbtypes.h: Ditto.
11216 * gnu-nat.c: Ditto.
11217 * gnu-nat.h: Ditto.
11218 * gnu-v2-abi.c: Ditto.
11219 * gnu-v3-abi.c: Ditto.
11220 * go32-nat.c: Ditto.
11221 * gdbarch.c: Regenerate.
11222 * gdbarch.h: Regenerate.
11224 2011-01-07 Michael Snyder <msnyder@vmware.com>
11226 * ax-gdb.c: Adjust some long output strings.
11227 * breakpoint.c: Ditto.
11228 * charset.c: Ditto.
11230 * infcall.c: Ditto.
11232 * linux-nat.c: Ditto.
11233 * solib-pa64.c: Ditto.
11234 * solib-som.c: Ditto.
11236 2011-01-06 Tom Tromey <tromey@redhat.com>
11240 * python/python.c (GdbMethods): Add "newest_frame" method.
11241 * python/python-internal.h (gdbpy_newest_frame): Declare.
11242 * python/py-frame.c (gdbpy_newest_frame): New function.
11244 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11246 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11247 * jit.c (jit_debug): New variable.
11248 (show_jit_debug): New function.
11249 (struct target_buffer): Use ULONGEST.
11250 (bfd_open_from_target_memory): Likewise.
11251 (jit_register_code, jit_inferior_init): Add debug output.
11252 (_initialize_jit): Register "debug jit" command.
11254 2011-01-06 Tom Tromey <tromey@redhat.com>
11256 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11257 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11260 2011-01-06 Tom Tromey <tromey@redhat.com>
11262 * python/py-frame.c (frapy_block): Use get_frame_block.
11264 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11266 Do not stop on SIGPRIO signals by default
11267 * infrun.c (_initialize_infrun): Unset signal_stop and
11268 signal_print for TARGET_SIGNAL_PRIO.
11270 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11272 * ada-tasks.c: Fix style violation in comment.
11274 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11276 * linespec.c (decode_compound, find_method): Remove trailing \n
11277 at end of error string.
11278 * solib-irix.c (irix_current_sos): Likewise.
11279 * varobj.c (uninstall_variable): Likewise.
11281 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11283 * copyright.py: New script.
11284 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11285 Launch emacs without exec'ing. Call copyright.py afterwards.
11287 2011-01-05 Michael Snyder <msnyder@vmware.com>
11289 * addrmap.c: Shorten lines of >= 80 columns.
11290 * arch-utils.c: Ditto.
11291 * arch-utils.h: Ditto.
11293 * ax-general.c: Ditto.
11295 * blockframe.c: Ditto.
11296 * breakpoint.c: Ditto.
11297 * buildsym.c: Ditto.
11299 * c-typeprint.c: Ditto.
11300 * charset.c: Ditto.
11301 * coffread.c: Ditto.
11302 * command.h: Ditto.
11303 * corelow.c: Ditto.
11305 * cp-namespace.c: Ditto.
11306 * cp-support.c: Ditto.
11307 * dbug-rom.c: Ditto.
11308 * dbxread.c: Ditto.
11312 * dictionary.c: Ditto.
11314 * doublest.c: Ditto.
11315 * dwarf2-frame.c: Ditto.
11316 * dwarf2expr.c: Ditto.
11317 * dwarf2loc.c: Ditto.
11318 * dwarf2read.c: Ditto.
11319 * elfread.c: Ditto.
11321 * event-loop.c: Ditto.
11322 * event-loop.h: Ditto.
11323 * exceptions.h: Ditto.
11325 * expprint.c: Ditto.
11326 * expression.h: Ditto.
11328 * f-valprint.c: Ditto.
11329 * findcmd.c: Ditto.
11330 * frame-base.c: Ditto.
11331 * frame-unwind.c: Ditto.
11332 * frame-unwind.h: Ditto.
11336 * gdb-stabs.h: Ditto.
11337 * gdb_assert.h: Ditto.
11338 * gdb_dirent.h: Ditto.
11339 * gdb_obstack.h: Ditto.
11340 * gdbcore.h: Ditto.
11341 * gdbtypes.c: Ditto.
11342 * gdbtypes.h: Ditto.
11343 * inf-ttrace.c: Ditto.
11344 * infcall.c: Ditto.
11348 * inline-frame.h: Ditto.
11349 * language.c: Ditto.
11350 * language.h: Ditto.
11351 * libunwind-frame.c: Ditto.
11352 * libunwind-frame.h: Ditto.
11353 * linespec.c: Ditto.
11354 * linux-nat.c: Ditto.
11355 * linux-nat.h: Ditto.
11356 * linux-thread-db.c: Ditto.
11357 * machoread.c: Ditto.
11358 * macroexp.c: Ditto.
11359 * macrotab.c: Ditto.
11362 * mdebugread.c: Ditto.
11363 * memattr.c: Ditto.
11364 * minsyms.c: Ditto.
11365 * monitor.c: Ditto.
11366 * monitor.h: Ditto.
11367 * objfiles.c: Ditto.
11368 * objfiles.h: Ditto.
11370 * p-typeprint.c: Ditto.
11371 * p-valprint.c: Ditto.
11373 * printcmd.c: Ditto.
11374 * proc-events.c: Ditto.
11376 * progspace.c: Ditto.
11377 * progspace.h: Ditto.
11378 * psympriv.h: Ditto.
11379 * psymtab.c: Ditto.
11381 * regcache.c: Ditto.
11382 * regcache.h: Ditto.
11383 * remote-fileio.c: Ditto.
11385 * ser-mingw.c: Ditto.
11386 * ser-tcp.c: Ditto.
11387 * ser-unix.c: Ditto.
11390 * solib-frv.c: Ditto.
11391 * solib-irix.c: Ditto.
11392 * solib-osf.c: Ditto.
11393 * solib-pa64.c: Ditto.
11394 * solib-som.c: Ditto.
11395 * solib-sunos.c: Ditto.
11396 * solib-svr4.c: Ditto.
11397 * solib-target.c: Ditto.
11399 * somread.c: Ditto.
11401 * stabsread.c: Ditto.
11402 * stabsread.c: Ditto.
11405 * symfile-mem.c: Ditto.
11406 * symfile.c: Ditto.
11407 * symfile.h: Ditto.
11408 * symmisc.c: Ditto.
11411 * target-descriptions.c: Ditto.
11412 * target-memory.c: Ditto.
11415 * terminal.h: Ditto.
11418 * tracepoint.c: Ditto.
11419 * tracepoint.h: Ditto.
11420 * ui-file.c: Ditto.
11421 * ui-file.h: Ditto.
11423 * user-regs.c: Ditto.
11424 * user-regs.h: Ditto.
11426 * valarith.c: Ditto.
11428 * valprint.c: Ditto.
11429 * valprint.h: Ditto.
11434 * xcoffread.c: Ditto.
11435 * xcoffsolib.c: Ditto.
11436 * xcoffsolib.h: Ditto.
11437 * xml-syscall.c: Ditto.
11438 * xml-tdesc.c: Ditto.
11440 2011-01-05 Michael Snyder <msnyder@vmware.com>
11442 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11443 * cli/cli-decode.c: Ditto.
11444 * cli/cli-dump.c: Ditto.
11445 * cli/cli-logging.c: Ditto.
11446 * cli/cli-script.c: Ditto.
11447 * cli/cli-setshow.c: Ditto.
11448 * common/signals.c: Ditto.
11449 * mi/mi-cmd-break.c: Ditto.
11450 * mi/mi-cmd-disas.c: Ditto.
11451 * mi/mi-cmd-stack.c: Ditto.
11452 * mi/mi-cmd-var.c: Ditto.
11453 * mi/mi-cmds.c: Ditto.
11454 * mi/mi-common.h: Ditto.
11455 * mi/mi-console.c: Ditto.
11456 * mi/mi-interp.c: Ditto.
11457 * mi/mi-main.c: Ditto.
11458 * osf-share/cma_attr.c: Ditto.
11459 * osf-share/cma_deb_core.h: Ditto.
11460 * osf-share/cma_debug_client.h: Ditto.
11461 * osf-share/cma_handle.h: Ditto.
11462 * osf-share/cma_mutex.h: Ditto.
11463 * osf-share/cma_stack_int.h: Ditto.
11464 * osf-share/cma_tcb_defs.h: Ditto.
11465 * python/py-auto-load.c: Ditto.
11466 * python/py-breakpoint.c: Ditto.
11467 * python/py-cmd.c: Ditto.
11468 * python/py-frame.c: Ditto.
11469 * python/py-objfile.c: Ditto.
11470 * python/py-param.c: Ditto.
11471 * python/py-progspace.c: Ditto.
11472 * python/py-symbol.c: Ditto.
11473 * python/py-value.c: Ditto.
11474 * python/python-internal.h: Ditto.
11475 * python/python.c: Ditto.
11476 * tui/tui-data.c: Ditto.
11477 * tui/tui-disasm.c: Ditto.
11478 * tui/tui-hooks.c: Ditto.
11479 * tui/tui-io.c: Ditto.
11480 * tui/tui-layout.c: Ditto.
11481 * tui/tui-regs.c: Ditto.
11482 * tui/tui-source.c: Ditto.
11483 * tui/tui-stack.c: Ditto.
11484 * tui/tui-win.c: Ditto.
11485 * tui/tui-windata.c: Ditto.
11486 * tui/tui-winsource.c: Ditto.
11488 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11490 * configure.ac, gdb.1: Copyright year update.
11492 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11494 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11495 this_pc_in_block, morestack_msym and morestack_name. Check for
11496 "__morestack" minimal symbol there.
11498 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11500 * symfile.c (find_sym_fns): Add call to dont_repeat.
11502 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11504 Copyright year update in most files (performed by copyright.sh).
11506 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11508 * top.c (print_gdb_version): Update copyright year in version output.
11510 For older changes see ChangeLog-2010.
11516 version-control: never