1 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
3 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
5 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
7 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
10 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12 Fix compilation --without-expat.
13 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
15 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
17 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
18 Jan Kratochvil <jan.kratochvil@redhat.com>
20 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
21 * features/library-list-svr4.dtd: New file.
22 * remote.c (PACKET_qXfer_libraries_svr4): New.
23 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
24 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
25 * solib-svr4.c (struct svr4_library_list): New.
26 [HAVE_LIBEXPAT]: Include xml-support.h.
27 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
28 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
29 [HAVE_LIBEXPAT] (svr4_library_list_children)
30 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
31 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
32 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
33 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
34 (svr4_read_so_list): Extend the corruption message by addresses.
35 (svr4_current_sos): New variable library_list, call
36 svr4_current_sos_via_xfer_libraries.
37 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
39 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
42 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
43 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
45 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
48 * dwarf2read.c (process_psymtab_comp_unit): Set
49 PSYMTABS_ADDRMAP_SUPPORTED.
50 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
51 validity. New field psymtabs_addrmap_supported.
52 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
53 psymtabs_addrmap_supported.
54 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
55 !PSYMTABS_ADDRMAP_SUPPORTED.
56 (dump_psymtab, maintenance_info_psymtabs): Print also
57 psymtabs_addrmap_supported.
59 2011-12-01 Doug Evans <dje@google.com>
61 * python/py-type.c (type_object_methods): Fix "array" doc string.
63 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
65 * source.c (print_source_lines_base): Fix missing braces on else
66 clause leading to additional output.
68 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
70 * s390-nat.c (SUBOFF): Remove.
71 (s390_native_supply, s390_native_collect): New functions.
72 (supply_gregset, supply_fpregset): Use s390_native_supply.
73 (fill_gregset, fill_fpregset): Use s390_native_collect.
75 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
76 (s390_unwind_pseudo_register): New function.
77 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
78 registers instead of PC and CC.
79 (s390_backchain_frame_unwind_cache): Likewise.
80 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
82 (s390_trad_frame_prev_register): New function.
83 (s390_frame_prev_register): Use it.
84 (s390_sigtramp_frame_prev_register): Likewise.
85 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
86 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
87 special callback to unwind any pseudo.
89 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
90 * features/s390-core64.xml: Likewise.
91 * features/s390x-core64.xml: Likewise.
92 * features/s390-linux32.c: Regenerate.
93 * features/s390-linux64.c: Likewise.
94 * features/s390x-linux64.c: Likewise.
96 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
98 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
100 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
102 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
103 instruction. Add more diagnostic output.
105 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
107 * MAINTAINERS (Write After Approval): Add myself to the list.
109 2011-11-29 Sanjoy Das <sdas@igalia.com>
111 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
112 (jit_bfd_try_read_symtab): Fix comments.
114 2011-11-28 DJ Delorie <dj@redhat.com>
116 * NEWS: Mention RL78 simulator.
118 2011-11-28 Joel Brobecker <brobecker@adacore.com>
120 * symfile.h (struct quick_symbol_functions): Fix the documentation
121 of field map_matching_symbols, as symbols are sorted using
122 strcmp_iw_ordered, not strcmp_iw.
124 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
126 * symfile.h (struct quick_symbol_functions): Update the
127 documentation for field map_matching_symbols.
129 2011-11-28 Joel Brobecker <brobecker@adacore.com>
131 * ada-lang.c (compare_names): Fix wrong return value in case
132 string1 starts with the same contents as string2, followed
133 by an underscore that do not start a symbol name suffix.
135 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
140 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
141 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
142 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
144 * python/py-type.c (typy_strip_typedefs): Ditto.
145 (typy_legacy_template_argument): Ditto.
146 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
147 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
149 2011-11-27 Joel Brobecker <brobecker@acacore.com>
151 * remote.c (remote_get_tracepoint_status): Delete addrbuf
152 local variable. Avoid use of sprintf_vma.
154 2011-11-27 Sanjoy Das <sdas@igalia.com>
156 Fix regression in jit.exp.
157 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
158 (jit_register_code): Set the jit_objfile_data field to the correct
161 2011-11-25 Uros Bizjak <ubizjak@gmail.com>
163 * alpha-tdep.c (br_opcode): New.
164 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
165 (alpha_deal_with_atomic_sequence): New function.
166 (alpha_gdbarch_init): Handle single stepping of atomic sequences
167 with alpha_deal_with_atomic_sequence.
169 2011-11-24 Tristan Gingold <gingold@adacore.com>
171 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
172 fields. Add oso_sym, end_sym and nbr_syms.
173 (macho_register_oso): Change interface.
174 (macho_symtab_add_minsym): New function.
175 (macho_symtab_read): Rewritten.
176 (get_archive_prefix_len): Remove trailing blanks.
177 (oso_el_compare_name): Add comment.
178 (struct macho_sym_hash_entry): New structure.
179 (macho_relocate_common_syms): Remove.
180 (macho_sym_hash_newfunc): New function.
181 (macho_resolve_oso_sym_with_minsym): Likewise.
182 (macho_add_oso_symfile): Rewritten.
183 (macho_symfile_read_all_oso): Remove trailing blanks.
184 Adjust code to free oso vector.
185 (macho_symfile_read): Likewise.
186 Move code to initialize minimal symbol
188 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
190 * mips-tdep.c (extended_offset): Fix formatting.
192 2011-11-23 Doug Evans <dje@google.com>
194 * dwarf2read.c (dw2_lookup_symtab): Add comment.
195 (dw2_expand_symtabs_with_filename): Ditto.
196 (dw2_expand_symtabs_matching): Ditto.
197 (dw2_map_symbol_filenames): Ditto.
199 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
201 * ada-lang.c (assign_aggregate): Minor reformatting.
203 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
205 * ada-lang.c (assign_aggregate): Remove declaration of local
206 variable `i' which is shadowing another variable with the same
207 name declared in the outer scope.
209 2011-11-23 Joel Brobecker <brobecker@adacore.com>
211 * ada-lang.c (get_base_type): Renames base_type. Adjust all
212 calls throughout this file.
214 2011-11-23 Joel Brobecker <brobecker@adacore.com>
216 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
219 2011-11-22 Tom Tromey <tromey@redhat.com>
222 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
223 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
224 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
225 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
226 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
227 (print_it_catch_syscall, print_it_catch_exec)
228 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
229 (bpstat_print): Add 'kind' argument. Handle
230 TARGET_WAITKIND_LOADED.
231 * infrun.c (normal_stop): Update for bpstat_print change. Don't
232 handle TARGET_WAITKIND_LOADED here.
233 * breakpoint.h (bpstat_print): Update.
235 2011-11-22 Tom Tromey <tromey@redhat.com>
237 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
239 2011-11-22 Tom Tromey <tromey@redhat.com>
241 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
242 Use static_assert to check the size of
243 async_reason_string_lookup.
244 * common/gdb_assert.h (static_assert): New macro.
246 2011-11-22 Alan Modra <amodra@gmail.com>
248 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
249 destination calculation. Don't expect >> to sign extend. Don't
250 add a break if branch lands inside the sequence anywhere.
252 2011-11-21 Keith Seitz <keiths@redhat.com>
254 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
255 -var-evaluate-expression of an enumeration and fix expected result.
256 * gdb.mi/mi2-varvdisplay.exp: Likewise.
258 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
260 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
261 the case where osdata->items is empty. Rename column names to a
262 canonical form to avoid problems with unusual column names.
264 2011-11-21 Yao Qi <yao@codesourcery.com>
266 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
268 2011-11-20 Stan Shebs <stan@codesourcery.com>
270 * NEWS: Mention tracepoint additions.
271 * breakpoint.h (struct tracepoint): New field traceframe_usage.
272 * breakpoint.c (print_one_breakpoint_location): Identify
273 tracepoints as such when reporting hit counts, report
275 (create_tracepoint_from_upload): Copy status info.
276 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
277 add fields user_name, notes, start_time, stop_time.
278 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
279 * tracepoint.c (trace_user): New global.
280 (trace_notes): New global.
281 (trace_stop_notes): New global.
282 (start_tracing): Add argument and trace note handling.
283 (stop_tracing): Ditto.
284 (trace_start_command): Add notes argument.
285 (trace_stop_command): Ditto.
286 (trace_status_command): Report additional status info.
287 (trace_status_mi): Similarly.
288 (trace_save): Update, record tracepoint status.
289 (set_disconnected_tracing): Call target method directly.
290 (send_disconnected_tracing_value): Remove.
291 (set_trace_user): New function.
292 (set_trace_notes): New function.
293 (set_trace_stop_notes): New function.
294 (parse_trace_status): Handle additional status.
295 (parse_tracepoint_status): New function.
296 (parse_tracepoint_definition): Call it.
297 (tfile_get_tracepoint_status): New function.
298 (init_tfile_ops): Use it.
299 (_initialize_tracepoint): Add new setshows.
300 * target.h (struct target_ops): New methods to_get_tracepoint_status
301 and to_set_trace_notes.
302 (target_get_tracepoint_status): New macro.
303 (target_set_trace_notes): New macro.
304 * target.c (update_current_target): Add new methods.
305 * remote.c (remote_get_tracepoint_status): New function.
306 (remote_set_trace_notes): New function.
307 (init_remote_ops): Add them.
308 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
309 (mi_cmd_trace_stop): Ditto.
311 2011-11-20 Sanjoy Das <sdas@igalia.com>
313 * jit.c: Include regcache.h.
314 (jit_gdbarch_data, jit_frame_unwind): New static variables.
315 (jit_unwind_reg_set_impl, free_reg_value_impl)
316 (jit_unwind_reg_get_impl, jit_frame_sniffer)
317 (jit_frame_unwind_stop_reason, jit_frame_this_id)
318 (jit_frame_prev_register, jit_dealloc_cache)
319 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
320 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
321 jit_prepend_unwinder.
322 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
324 2011-11-20 Sanjoy Das <sdas@igalia.com>
326 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
327 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
328 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
329 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
330 (finalize_symtab, jit_object_close_impl)
331 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
332 (free_objfile_data): New functions.
333 (_initialize_jit): Register jit_objfile_data with a proper cleanup
336 2011-11-20 Sanjoy Das <sdas@igalia.com>
338 * jit.c: Include gdb-dlfcn.h.
339 (loaded_jit_reader, reader_init_fn_sym): New static variables.
340 (jit_reader_load, jit_reader_load_command)
341 (jit_reader_unload_command): New functions.
342 (_initialize_jit): Add commands "jit-reader-load" and
345 2011-11-20 Sanjoy Das <sdas@igalia.com>
347 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
348 * config.in: Add new #define HAVE_LIBDL.
349 * configure.ac: Add check for -ldl.
350 * configure: Re-generated by autoconf.
351 * gdb-dlfcn.c: New file.
352 * gdb-dlfcn.h: New file.
354 2011-11-20 Sanjoy Das <sdas@igalia.com>
356 * config.in: Add new #defines: JIT_READER_DIR and
357 JIT_READER_DIR_RELOCATABLE.
358 * configure.ac: New GDB directory entry for jit-reader-dir.
359 * configure: Re-generated by autoconf.
360 * jit.c: New static variable: const char *jit_reader_dir.
361 (_initialize_jit): Relocate jit_reader_dir.
363 2011-11-20 Sanjoy Das <sdas@igalia.com>
365 * Makefile.in: Add jit-reader.h as a header. Have it installed in
367 * configure.ac: Generate a correct value for TARGET_PTR for
368 jit-reader.h. Tell configure to generate jit-reader.h from
370 * configure: Re-generated by autoconf.
371 * jit-reader.in: New file.
372 * jit.c: Include jit-reader.h.
374 2011-11-20 Sanjoy Das <sdas@igalia.com>
376 * MAINTAINERS (Write After Approval): Add myself to the list.
378 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
380 * findvar.c (read_frame_register_value): Respect value_offset
381 of the register value. Remove big-endian special case.
383 2011-11-18 Tom Tromey <tromey@redhat.com>
386 * remote.c (putpkt_for_catch_errors): New function.
387 (remote_kill): Use it.
389 2011-11-18 Yao Qi <yao@codesourcery.com>
391 * breakpoint.c (create_breakpoint): Produce query message according to
393 Allocate tracepoint per correct type.
394 Don't check SALs for pending fast tracepoints.
395 * tracepoint.c (process_tracepoint_on_disconnect): New.
396 (disconnect_tracing): Call process_tracepoint_on_disconnect.
398 2011-11-18 Yao Qi <yao@codesourcery.com>
400 * breakpoint.c (install_breakpoint): Add one more parameter so that
401 update_global_location_list is called conditionally.
402 (create_fork_vfork_event_catchpoint): Update.
403 (create_syscall_event_catchpoint): Update.
404 (create_breakpoint_sal): Update.
405 (create_breakpoint_sal): Update. Call do_cleanups before
407 * ada-lang.c (create_ada_exception_catchpoint): Update.
408 * breakpoint.h (install_breakpoint): Update declaration.
410 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
412 * spu-tdep.c (spu_return_value): Fix handling of
413 TYPE_CALLING_CONVENTION annotation.
415 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
417 * skip.c (skip_function_command): Work around uninitialized
420 2011-11-16 David S. Miller <davem@davemloft.net>
422 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
423 'tv_usec' to long for printf since these fields have a type which
426 2011-11-15 Doug Evans <dje@google.com>
428 * buildsym.c (add_symbol_to_list): Delete outdated comment.
430 2011-11-15 Paul Koning <paul_koning@dell.com>
432 * python/py-type.c (typy_get_composite): New function.
433 (typy_nonzero): New function.
434 (typy_values): Rename from typy_fields.
435 (typy_fields): New function.
436 (typy_length): Raise exception if not struct, union, or enum type.
437 (typy_getitem): Ditto.
438 (typy_has_key): Ditto.
439 (typy_make_iter): Ditto.
441 2011-11-15 Doug Evans <dje@google.com>
443 * NEWS: Mention new parameter basenames-may-differ.
444 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
445 ! basenames_may_differ.
446 * psymtab.c (lookup_partial_symtab): Ditto.
447 * symtab.c (lookup_symtab): Ditto.
448 (basenames_may_differ): New global.
449 (_initialize_symtab): New parameter basenames-may-differ.
450 * symtab.h (basenames_may_differ): Declare.
452 2011-11-15 Pedro Alves <pedro@codesourcery.com>
453 Luis Machado <lgustavo@codesourcery.com>
455 * auxv.c: Include observer.h.
456 (auxv_inferior_data_cleanup): New.
457 (invalidate_auxv_cache_inf): New.
458 (invalidate_auxv_cache): New.
459 (get_auxv_inferior_data): New.
460 (auxv_inferior_data): New static global.
461 (auxv_info): New structure.
462 (target_auxv_search): Use get_auxv_inferior_data instead of
463 target_read_alloc and don't free cached buffers.
464 (fprint_target_auxv): Likewise
465 (_initialize_auxv): Register per-inferior auxv cache and register
466 observers to invalidate auxv cache when needed.
468 2011-11-14 Doug Evans <dje@google.com>
470 Make "!" an alias for "shell".
472 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
473 adding "!" command, always add it.
474 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
475 command of length one.
477 2011-11-14 Stan Shebs <stan@codesourcery.com>
478 Kwok Cheung Yeung <kcy@codesourcery.com>
480 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
481 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
482 the minimum instruction size for fast tracepoints.
483 * target.h (struct target_ops): Add new method
484 to_get_min_fast_tracepoint_insn_len.
485 (target_get_min_fast_tracepoint_insn_len): New.
486 * target.c (update_current_target): Set up new target operation.
487 * remote.c (remote_write_bytes_aux): Fix typo.
488 (remote_get_min_fast_tracepoint_insn_len): New.
489 (init_remote_ops): Initialize new field.
491 2011-11-14 Tom Tromey <tromey@redhat.com>
493 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
494 (encode_actions): Likewise.
496 2011-11-14 Yao Qi <yao@codesourcery.com>
498 * remote.c (struct remote_state): <install_in_trace> new field.
499 (PACKET_InstallInTrace): New enum value.
500 (remote_install_in_trace_feature): Support InstallInTrace.
501 (remote_supports_install_in_trace): Likewise.
502 (remote_protocol_features): Likewise.
503 (_initialize_remote): Likewise.
504 (remote_can_download_tracepoint): New.
505 * target.h (struct target): New field
506 `to_can_download_tracepoint'.
507 (target_can_download_tracepoint): New macro.
508 * target.c (update_current_target): Update.
509 * breakpoint.h (struct bp_location): Add comment on field
511 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
513 (remove_breakpoints): Don't remove tracepoints.
514 (tracepoint_locations_match ): New.
515 (breakpoint_locations_match): Call it.
516 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
517 (download_tracepoint_locations): New.
518 (update_global_location_list): Call it.
519 * tracepoint.c (find_matching_tracepoint): Delete.
520 (find_matching_tracepoint_location): Renamed from
521 find_matching_tracepoint. Return bp_location rather than
523 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
526 2011-11-14 Yao Qi <yao@codesourcery.com>
528 * target.h (struct target): <to_download_tracepoint> Change type
529 of parameter from tracepoint to bp_location.
530 * target.c (update_current_target): Update.
531 * tracepoint.c (start_tracing): Update.
532 * remote.c (remote_download_tracepoint): Remove loop for each location
535 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
537 * i386-nat.c (i386_insert_hw_breakpoint): Call
538 i386_update_inferior_debug_regs.
539 (i386_remove_hw_breakpoint): Likewise.
541 2011-11-14 Yao Qi <yao@codesourcery.com>
543 * breakpoint.c (init_raw_breakpoint): Call
544 add_location_to_breakpoint to replace duplicated code.
545 (add_location_to_breakpoint): Adjust the breakpoint's
546 address prior to allocating a location.
548 2011-11-12 Matt Rice <ratmice@gmail.com>
550 * macrocmd.c (macro_no_macro_info): New function.
551 (macro_expand_command): Use macro_no_macro_info.
552 (macro_expand_once_command): Ditto.
553 (info_macro_command): Add argument processing,
554 move info_definitions_command here.
555 (_initialize_macrocmd): Remove info definitions command.
556 Add arguments to info macro help text.
557 * NEWS: Replace info definitions command with new info macro options.
559 2011-11-11 Keith Seitz <keiths@redhat.com>
562 * linespec.c (locate_first_half): Keep ':' if it looks
563 like it could be part of a Windows path starting with
566 2011-11-10 Pedro Alves <pedro@codesourcery.com>
568 * linux-nat.c (linux_nat_wait): Don't force waking up the event
569 loop when returning a TARGET_WAITKIND_NO_RESUMED.
571 2011-11-10 Pedro Alves <pedro@codesourcery.com>
573 * target.c (target_waitstatus_to_string): Handle
574 TARGET_WAITKIND_NO_RESUMED.
576 2011-11-10 Doug Evans <dje@google.com>
578 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
580 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
581 (map_partial_symbol_filenames): Ditto. All callers updated.
582 * psymtab.h (map_partial_symbol_filenames): Update prototype.
583 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
584 parameter need_fullname.
586 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
587 * source.c (symtab_to_fullname): Ditto.
589 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
590 * gdb-demangle.h: ... here. New file.
591 * demangle.c: #include "gdb-demangle.h".
592 (_initialize_demangler): Use initialize_file_ftype for prototype.
593 Move "set demangle" and "set asm-demangle" parameters here from utils.c
594 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
596 * utils.c: Update. #include "gdb-demangle.h".
597 * symtab.h (asm_demangle): Delete.
598 (demangle): Move declaration next to use.
599 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
600 * dwarf2read.c: #include "gdb-demangle.h".
601 * gnu-v2-abi.c: Ditto.
602 * jv-typeprint.c: Ditto.
603 * mdebugread.c: Ditto.
604 * p-typeprint.c: Ditto.
605 * stabsread.c: Ditto.
607 (asm_demangle): Delete declaration.
608 * tui/tui-stack.c: #include "gdb-demangle.h".
610 * python/py-type.c (typy_fields_items): Call check_typedef.
612 2011-11-10 Joel Brobecker <brobecker@adacore.com>
614 * findvar.c (read_frame_register_value): Read the correct bytes
615 from registers on big-endian architectures.
617 2011-11-10 Tom Tromey <tromey@redhat.com>
619 * procfs.c (load_syscalls): Make a cleanup.
620 (open_procinfo_files): fd==0 is ok.
622 2011-11-10 Joel Brobecker <brobecker@adacore.com>
624 * procfs.c (iterate_over_mappings): Call do_cleanups before
627 2011-11-09 Doug Evans <dje@google.com>
629 * gdbtypes.c (check_typedef): Document that this function can
632 2011-11-09 Tom Tromey <tromey@redhat.com>
635 * valops.c (value_full_object): Return early if real type is
636 smaller than the enclosing type.
638 2011-11-08 Yao Qi <yao@codesourcery.com>
640 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
642 2011-11-08 Meador Inge <meadori@codesourcery.com>
644 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
645 register when the frame can't be determined.
646 * arm-tdep.c (arm_analyze_prologue): Ditto.
648 2011-11-07 Stan Shebs <stan@codesourcery.com>
650 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
652 2011-11-07 Joel Brobecker <brobecker@adacore.com>
654 * infrun.c (handle_inferior_event): Minor reformatting.
656 2011-11-05 Doug Evans <dje@google.com>
658 * source.c (forget_cached_source_info_for_objfile): Move call to
659 objfile->sf->qf->forget_cached_source_info outside of
660 ALL_OBJFILE_SYMTABS loop.
661 (forget_cached_source_info): Delete unused variable `s'.
663 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
665 * i386-nat.c (dr_ref_count): Remove unused variable.
667 2011-11-05 Doug Evans <dje@google.com>
669 * main.c (captured_main): Set lim_at_start before calling
670 make_command_stats_cleanup.
672 2011-11-04 Doug Evans <dje@google.com>
674 * utils.c: #include "timeval-utils.h".
675 (cmd_stats): Rename start_time to start_cpu_time.
676 New member start_wall_time.
677 (report_command_stats): Report wall time.
678 (make_command_stats_cleanup): Record start wall time.
680 2011-11-04 Tom Tromey <tromey@redhat.com>
682 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
684 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
686 * coff-pe-read.c: Include defs.h before bfd.h.
688 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
692 * python/python.c (python_run_simple_file): Expand tilde in path.
694 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
698 * python/py-type.c (typy_lookup_type): Do not return a type in
699 an exception handler.
701 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
702 Eli Zaretskii <eliz@gnu.org>
704 * linux-nat.c (_initialize_linux_nat): Improve help
705 for `info proc stat', `info proc status', `info proc cwd',
706 `info proc cmdline' and `info proc exe'.
708 2011-11-02 Stan Shebs <stan@codesourcery.com>
710 String collection for tracepoints.
711 * NEWS: Mention string collection.
712 * common/ax.def (tracenz): New bytecode.
713 * ax-gdb.h (trace_string_kludge): Declare.
714 * ax-gdb.c: Include valprint.h and c-lang.h.
715 (trace_string_kludge): New global.
716 (gen_traced_pop): Add string case.
717 (agent_command): Add string case.
718 * tracepoint.h (decode_agent_options): Declare.
719 * tracepoint.c: Include cli-utils.h.
720 (decode_agent_options): New function.
721 (validate_actionline): Call it.
722 (encode_actions_1): Ditto.
723 * target.h (struct target_ops): New method to_supports_string_tracing.
724 (target_supports_string_tracing): New macro.
725 * target.c (update_current_target): Add to_supports_string_tracing.
726 * remote.c (struct remote_state): New field string_tracing.
727 (remote_string_tracing_feature): New function.
728 (remote_protocol_features): New feature tracenz.
729 (remote_supports_string_tracing): New function.
730 (init_remote_ops): Set to_supports_string_tracing.
732 2011-11-02 Pedro Alves <pedro@codesourcery.com>
733 Jan Kratochvil <jan.kratochvil@redhat.com>
735 * linux-nat.c: Include cli/cli-utils.h.
736 (enum info_proc_what): New.
737 (linux_nat_info_proc_cmd): Rename to ...
738 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
739 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
740 status_f and stat_f from WHAT. Throw error on extra parameters.
741 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
742 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
743 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
744 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
745 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
746 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
747 `info proc cmdline', `info proc exe' and `info proc all' as real
748 subcommands of `info proc'.
750 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
752 * Makefile.in: (SFILES): Add skip.c.
753 (HFILES_NO_SRCDIR): Add skip.h.
754 (COMMON_OBS): Add skip.o.
755 * skip.h, skip.c: New.
756 * breakpoint.h (set_default_breakpoint): Remove.
757 (get_sal_arch): Declare.
758 * breakpoint.c: Remove default_breakpoint_valid,
759 default_breakpoint_address, default_breakpoint_symtab,
760 default_breakpoint_line, default_breakpoint_pspace variables.
761 (get_sal_arch): Make public.
762 (set_default_breakpoint): Remove.
763 (parse_breakpoint_sals, create_breakpoint, clear_command,
764 decode_line_spec_1): Remove uses of default_breakpoint variables;
765 replaced with function calls into stack.c.
766 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
767 * cli/cli-cmds.c: Add skiplist.
768 (init_cmd_lists): Initialize skiplist.
769 (init_cli_cmds): Fix comment (classes of commands appear in
771 * infrun.c (handle_inferior_event): Add check that we don't step into
772 a function whose pc is marked for skip.
773 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
774 last_displayed_addr, last_displayed_symtab, last_displayed_line
776 (set_last_displayed_sal): New static function.
777 (print_frame_info): Switch call to set_default_breakpoint to call to
778 set_last_displayed_sal.
779 (clear_last_displayed_sal, last_displayed_sal_is_valid,
780 get_last_displayed_pspace, get_last_displayed_addr,
781 get_last_displayed_symtab, get_last_displayed_line,
782 get_last_displayed_sal): New public functions.
783 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
784 get_last_displayed_pspace, get_last_displayed_addr,
785 get_last_displayed_symtab, get_last_displayed_line,
786 get_last_displayed_sal): Declare.
788 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
790 * MAINTAINERS (Write After Approval): Add myself to the list.
792 2011-10-29 Yao Qi <yao@codesourcery.com>
794 * infcmd.c (disconnect_command): Call disconnect_tracing.
796 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
799 * symtab.c (skip_prologue_sal): Code reformatting.
801 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
804 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
805 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
808 2011-10-28 Pedro Alves <pedro@codesourcery.com>
810 * linux-nat.c (linux_nat_filter_event): Remove `options'
811 parameter, and dead code that used it. If we're handling a
812 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
813 in our lwp list, re-add it.
814 (check_zombie_leaders): New.
815 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
816 wait for children with WNOHANG, and always wait for all children.
817 Don't check for no resumed children upfront. Simplify wait loop.
818 Check for zombie thread group leaders after handling all wait
819 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
820 unwaited-for children left.
821 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
822 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
823 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
824 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
826 2011-10-28 Sterling Augustine <saugustine@google.com>
828 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
829 * symtab.c (free_completion_list): New function.
830 (do_free_completion_list): Likewise.
831 (default_make_symbol_completion_list_break_on): New variable
832 back_to. Call make_cleanup and discard_cleanups.
833 (make_source_files_completion_list): Likewise.
835 2011-10-28 Paul Koning <paul_koning@dell.com>
837 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
838 * NEWS: Mention deep_items.
840 2011-10-28 Alen Skondro <askondro@gmail.com>
842 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
845 2011-10-27 Meador Inge <meadori@codesourcery.com>
847 * MAINTAINERS (Write After Approval): Add myself to the list.
849 2011-10-27 Joel Brobecker <brobecker@adacore.com>
851 * value.h (read_frame_register_value): Add declaration.
852 * findvar.c (read_frame_register_value): New function.
853 (value_from_register): Use read_frame_register_value
854 instead of get_frame_register_value + value_contents_copy
855 to get value contents.
857 2011-10-27 Doug Evans <dje@google.com>
859 * cli/cli-cmds.c (source_script_with_search): Pass full path to
860 source_script_from_stream if it may have been found on the search path.
861 * python/py-auto-load.c (source_section_scripts): Pass full path to
862 source_python_script_for_objfile.
863 * python/python.c (source_python_script): Delete stream parameter.
865 (source_python_script_for_objfile): Ditto.
866 * python/python-internal.h (source_python_script_for_objfile): Update.
867 * python/python.h (source_python_script): Update.
869 2011-10-27 Tom Tromey <tromey@redhat.com>
871 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
872 (ada_sals_for_line): Remove declarations.
874 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
876 Move unwind reasons to an external .def file
877 * frame.c (frame_stop_reason_string): Rewrite using
878 unwind_stop_reasons.def.
879 * frame.h (enum unwind_stop_reason): Likewise.
880 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
881 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
882 constants for bound-checking.
883 * unwind_stop_reasons.def: New file.
884 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
885 instead of a distinct value.
887 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
891 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
892 (convert_values_to_python): Return on Python tuple allocation
893 failure. Return NULL on value conversion error.
895 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
897 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
898 (bppy_set_task): Ditto.
899 (bppy_delete_breakpoint): Ditto.
900 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
901 (gdbpy_lookup_global_symbol): Ditto.
902 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
903 * python/py-frame.c (frapy_is_valid): Ditto.
904 (frame_info_to_frame_object): Ditto.
905 * python/py-type.c (typy_lookup_type): Ditto.
906 (typy_getitem): Ditto.
907 (typy_has_key): Ditto.
908 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
910 2011-10-26 Joel Brobecker <brobecker@adacore.com>
912 * gdbarch.h: Regenerate.
914 2011-10-26 Meador Inge <meadori@codesourcery.com>
916 * gdbarch.sh (function_list): Use 'pstring' when printing
918 * gdbarch.c: Regenerate.
920 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
922 * regcache.c (registers_changed_ptid): Invalidate thread architecture
923 and frame caches if PTID refers to all threads of a process.
925 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
927 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
928 to create_breakpoint.
930 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
932 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
933 (ppc_sysv_abi_push_dummy_call): Use it.
934 (do_ppc_sysv_return_value): Likewise.
935 (ppc64_sysv_abi_push_dummy_call): Likewise.
936 (ppc64_sysv_abi_return_value): Likewise.
938 2011-10-26 Paul Koning <paul_koning@dell.com>
940 * python/lib/gdb/types.py (deepitems): New function.
942 2011-10-25 Paul Koning <paul_koning@dell.com>
946 * python/py-value.c (value_to_value_object): Remove fetching of
947 the value if it was lazy.
948 (valpy_get_is_lazy): New function.
949 (valpy_fetch_lazy): New function.
951 2011-10-24 Joel Brobecker <brobecker@adacore.com>
953 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
954 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
956 2011-10-24 Pedro Alves <pedro@codesourcery.com>
958 * linux-nat.c (linux_handle_extended_wait): When handling a clone
959 event, in non-stop, if not stopping, make sure the new lwp has
960 last_resume_kind set to resume_continue. Assert that when we're
961 resuming the new lwp, its last_resume_kind is resume_continue.
963 2011-10-24 Pedro Alves <pedro@codesourcery.com>
965 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
966 already set when marking the event thread as not executing in
969 2011-10-24 Pedro Alves <pedro@codesourcery.com>
971 * infrun.c (handle_inferior_event): Add debug output for
972 TARGET_WAITKIND_NO_HISTORY.
974 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
976 * NEWS: Move set/show extended-prompt to "New Options". Expand
977 description. Fix typos.
979 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
983 * python/py-param.c (call_doc_function): Correctly deference on
986 2011-10-21 Joel Brobecker <brobecker@adacore.com>
988 * ada-tasks.c (print_ada_task_info): Fix computation of
989 number of tasks displayed in command output.
991 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
992 Ulrich Weigand <uweigand@de.ibm.com>
994 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
995 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
996 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
997 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1000 2011-10-20 Cary Coutant <ccoutant@google.com>
1002 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1004 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1005 flag. Adjust all callers.
1006 (process_psymtab_comp_unit): Remove adjustment for type section.
1008 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1010 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1011 arguments by adding OBJFILE. Instead of getting objfile from
1012 symbol's symtab, use new argument OBJFILE.
1013 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1014 arguments by adding OBJFILE.
1015 * gdb/dwarf2read.c (new_symbol_full): Change call to
1016 cp_scan_for_anonymous_namespaces to match new signature.
1017 * gdb/stabsread.c (define_symbol): Change call to
1018 cp_scan_for_anonymous_namespaces to match new signature.
1020 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1025 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1027 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1028 leak. Delete unused variables.
1030 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1034 * python/py-frame.c (frapy_read_var): Use const struct *block.
1035 * python/py-type.c (typy_lookup_typename): Likewise.
1036 (typy_lookup_type): Likewise.
1037 (typy_legacy_template_argument): Likewise.
1038 (typy_template_argument): Likewise.
1039 (gdbpy_lookup_type): Likewise.
1040 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1041 * python/py-block.c (blpy_block_object): Likewise.
1042 (blpy_iter): Likewise.
1043 (blpy_get_start): Likewise.
1044 (blpy_get_end): Likewise.
1045 (blpy_get_function): Likewise.
1046 (blpy_get_superblock): Likewise.
1047 (set_block): Likewise.
1048 (block_to_block_object): Likewise.
1049 (block_object_to_block): Likewise.
1050 (blpy_is_valid): Likewise.
1051 (blpy_get_global_block): New function.
1052 (blpy_get_static_block): New function.
1053 (blpy_is_global): New function.
1054 (blpy_is_static): New function.
1055 * blockframe.c (block_innermost_frame): Likewise.
1056 * valops.c (value_of_variable): Likewise.
1057 * frame.h: Update prototypes.
1058 * python/python-internal.h: Likewise.
1059 * value.h: Likewise.
1061 2011-10-19 Cary Coutant <ccoutant@google.com>
1063 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1066 2011-10-19 Cary Coutant <ccoutant@google.com>
1068 * dwarf2read.c (peek_abbrev_code): New function.
1069 (dw2_get_file_names): Check for dummy compilation units.
1070 (create_debug_types_hash_table): Likewise.
1071 (process_psymtab_comp_unit): Likewise.
1072 (load_partial_comp_unit): Likewise.
1073 (load_full_comp_unit): Likewise.
1075 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1077 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1078 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1079 pt_phdr if PT_PHDR was found.
1081 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1083 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1084 type or "<unnamed type"> when there is no name assigned.
1085 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1086 avoid a sigint when no name is assigned.
1088 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1091 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1092 * dwarf2expr.c (ctx_no_read_reg): New function.
1093 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1094 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1095 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1096 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1098 2011-10-16 Doug Evans <dje@google.com>
1100 * NEWS: Document python gdb.printing.register_pretty_printer's new
1101 `replace' parameter.
1103 2011-10-14 Keith Seitz <keiths@redhat.com>
1106 * eval.c (evaluate_subexp_standard): Do not construct
1107 an array of types; pass the value array directly to
1108 find_overload_match.
1109 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1110 (rank_function): Take an array of values instead of types.
1111 (rank_one_type): Add struct value * parameter.
1112 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1113 (rank_function): For each argument, pass the argument's
1114 value to rank_one_type.
1115 (rank_one_type): Add VALUE parameter.
1116 If the parameter type is a pointer and the argument type
1117 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1119 Update all calls to rank_one_type, passing NULL for new
1121 * valarith.c (value_user_defined_cpp_op): Do not construct
1122 an array of types; pass the value array directly to
1123 find_overload_match.
1124 * valops.c (find_overload_method_list): Take an array of
1125 values instead of types.
1126 Save the type of OBJP for later use.
1127 Update calls to find_oload_champ, and find_oload_champ_namespace.
1128 (find_oload_champ_namespace): Take an array of values instead
1130 (find_oload_champ_namespace_loop): Likewise.
1131 (find_oload_champ): Likewise.
1132 (classify_oload_match): Inspect all arguments
1133 until INCOMPATIBLE is found. Return the worst badness found
1135 (compare_parameters): Update call to rank_one_type.
1136 * value.h (find_overload_match): Take an array of values instead
1139 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1141 Drop lazy lm_info reading.
1142 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1143 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1144 (lm_info_read): New function.
1145 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1146 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1147 lm_dynamic_from_link_map.
1148 (lm_next, lm_prev, lm_name): Remove.
1149 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1150 initialization incl. read_memory. No longer use lm_name.
1151 (svr4_free_so): Drop lm_info->lm freeing.
1152 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1153 explicit lm_addr and lm initialization.
1154 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1155 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1158 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1159 Paul Pluzhnikov <ppluzhnikov@google.com>
1161 * defs.h (struct so_list): New forward declaration.
1162 (make_cleanup_free_so): New declaration.
1163 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1164 (svr4_free_so): Move the function here from downwards. Handle NULL
1166 (svr4_free_library_list): New.
1167 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1168 Use more cleanups. Use new parameter ignore_first instead of
1169 ignore_first_link_map_entry.
1170 (svr4_current_sos): New variable ignore_first, initialize it. New
1171 variable back_to, use it for svr4_free_library_list protection.
1172 (svr4_free_so): Remove - move upwards.
1173 * utils.c: Include solist.h.
1174 (do_free_so, make_cleanup_free_so): New functions.
1176 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1178 Fix internal error regression.
1179 * value.c (value_primitive_field): Handle value_optimized_out. Move
1180 packed bitfields comment.
1182 2011-10-13 Tom Tromey <tromey@redhat.com>
1184 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1187 2011-10-13 Tom Tromey <tromey@redhat.com>
1189 * python/py-type.c (typy_has_key): Make 'field' const.
1191 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1193 * remote.c (remote_save_trace_data): Invert comparison.
1195 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1197 * tracepoint.c (trace_save_command): Use filename instead of
1200 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1205 2011-10-13 Yao Qi <yao@codesourcery.com>
1208 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1209 whether insn is a 32-bit Thumb-2 instruction.
1210 (thumb_in_function_epilogue_p): Likewise.
1211 (thumb_get_next_pc_raw): Likewise.
1212 (arm_breakpoint_from_pc): Likewise.
1214 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1216 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1217 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1218 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1219 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1220 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1222 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1224 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1225 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1226 clear DATA on zero SIZE.
1228 2011-10-12 Doug Evans <dje@google.com>
1230 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1231 header->first_die_offset here. All callers updated.
1233 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1235 Fix compatibility with texinfo versions older than 4.12.
1236 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1237 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1238 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1239 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1240 * configure: Regenerate.
1241 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1242 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1243 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1245 2011-10-12 Gary Benson <gbenson@redhat.com>
1247 * breakpoint.h (pc_at_non_inline_function): Declare.
1248 * breakpoint.c (is_non_inline_function,
1249 pc_at_non_inline_function): New functions.
1250 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1251 if the stop is at a location where functions cannot be inlined.
1253 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1255 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1256 the core wanted them stopped, or if they now have a pending event
1258 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1259 down to stop_and_resume_callback.
1260 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1261 having new pending events after calling linux_nat_filter_event.
1263 2011-10-11 Sterling Augustine <saugustine@google.com>
1265 * dwarf2read.c: Undo inadvertent changes in previous commit.
1267 2011-10-11 Sterling Augustine <saugustine@google.com>
1269 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1272 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1274 * symfile.c (separate_debug_file_exists): Fix condition.
1276 2011-10-11 David S. Miller <davem@davemloft.net>
1278 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1280 * regcache.h (regcache_restore): Remove declaration.
1282 * gdbarch.sh: New field 'long_long_align_bit'.
1283 * gdbarch.c, gdbarch.h: Regenerate.
1284 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1285 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1287 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1289 Revert this part of:
1290 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1291 Support @entry in input expressions.
1292 * c-exp.y (ENTRY, unknown_cpp_name): New.
1293 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1294 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1295 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1296 (name_not_typename: ENTRY): New.
1297 (yylex): Recognize ENTRY.
1299 Reimplement @entry in input expressions.
1300 * c-exp.y (ENTRY): New.
1301 (variable: name_not_typename ENTRY): New.
1302 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1304 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1306 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1307 parent and child's pids as soon as we detect a clone event.
1308 Adjust another debug message.
1310 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1312 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1313 not zombie instead of reading the whole file.
1315 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1317 Fix separate debuginfo warning with "remote:" access.
1318 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1319 * symfile.c (get_file_crc): New function with the code moved from ...
1320 (separate_debug_file_exists): ... this function, specifically variables
1321 buffer and count. New variable verified_as_different, set it. Remove
1322 file_crc initialization. Verify also if both files are not the same
1323 manually, if needed.
1325 2011-10-11 Yao Qi <yao@codesourcery.com>
1327 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1330 2011-10-10 Doug Evans <dje@google.com>
1332 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1333 libthread_db when we load libpthread or the main symbol file.
1334 (thread_db_inferior_created): New function.
1335 (_initialize_thread_db): Attach inferior_created observer.
1336 * linux-nat.c (linux_child_post_attach): Remove call to
1337 check_for_thread_db.
1338 (linux_child_post_startup_inferior): Ditto.
1339 * objfiles.h (OBJF_MAINLINE): Define.
1340 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1341 allocate_objfile when appropriate.
1343 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1346 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1347 Remove unused variables.
1348 (get_linux_version): Remove function.
1349 (_initialize_arm_linux_nat): Do not call it.
1351 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1353 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1354 new clone lwp if the core asked it to stop. Don't pass on
1355 unexpected signals to the new clone; leave them pending instead.
1357 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1359 * linux-nat.c (resume_lwp): Remove redundant debug output.
1361 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1363 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1364 last_resume_kind before clearing it, and use the copy instead to
1365 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1366 resume_clear_callback in the non-stop path too.
1368 2011-10-09 Yao Qi <yao@codesourcery.com>
1370 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1371 Honor OPTIONS and VAL's type.
1372 (common_val_print, value_print): Update to pass one more parameter.
1374 2011-10-09 Doug Evans <dje@google.com>
1376 Add new "alias" command.
1377 * NEWS: Mention new command.
1378 * command.h (valid_user_defined_cmd_name_p): Declare.
1379 * defs.h (make_cleanup_dyn_string_delete): Declare.
1380 * utils.c: #include "dyn-string.h".
1381 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1382 * cli/cli-cmds.c: #include "dyn-string.h".
1383 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1384 (init_cli_cmds): Add new command.
1385 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1387 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1389 Fix compatibility with older GCCs.
1390 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1391 * stack.c (read_frame_arg): Initialize val_deref.
1393 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1395 Entry values NEWS entries, DWARF disassembly support.
1396 * NEWS: New entry values entry.
1397 (set print entry-values, show print entry-values)
1398 (set debug entry-values, show debug entry-values): New entries.
1399 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1400 indent. Remove variable start. Move header printing out. Respect
1401 INDENT. Support DW_OP_GNU_entry_value.
1402 (locexpr_describe_location_1): Move the header printing here, extend
1403 the disassemble_dwarf_expression passed parameters.
1405 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 Display @entry parameter values even for references.
1408 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1409 coerce_ref_if_computed.
1410 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1411 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1412 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1413 existing push_dwarf_reg_entry_value call. Add new detection calling
1414 dwarf_block_to_dwarf_reg_deref. Update the error message.
1415 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1417 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1418 parameter deref_size, describe it in the comment.
1419 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1420 (dwarf_block_to_dwarf_reg_deref): New declaration.
1421 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1422 deref_size, describe it in the function comment. New variables
1423 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1424 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1425 describe it in the function comment. Fetch the alternative block
1426 accoring to DEREF_SIZE.
1427 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1428 (entry_data_value_free_closure, entry_data_value_funcs): New.
1429 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1430 outer_val, target_val, val and addr. Try to fetch and create also
1431 referenced value content.
1432 (pieced_value_funcs): NULL value for coerce_ref.
1433 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1434 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1435 coerce_ref_if_computed.
1436 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1437 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1438 * stack.c (read_frame_arg): Compare also dereferenced values.
1439 * value.c (value_computed_funcs): Make the parameter v const, use
1440 value_lval_const for it.
1441 (value_lval_const, coerce_ref_if_computed): New function.
1442 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1443 * value.h (struct lval_funcs): New field coerce_ref.
1444 (value_computed_funcs): Make the parameter v const.
1445 (value_lval_const, coerce_ref_if_computed): New declarations.
1447 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1449 Support @entry in input expressions.
1450 * c-exp.y (ENTRY, unknown_cpp_name): New.
1451 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1452 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1453 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1454 (name_not_typename: ENTRY): New.
1455 (yylex): Recognize ENTRY.
1456 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1457 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1459 * parse.c (operator_length_standard): Likewise.
1460 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1462 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1464 Display referenced values in backtraces.
1465 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1466 * stack.c (print_frame_arg): Likewise.
1468 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1470 Make some lval_funcs methods to default on NULL.
1471 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1473 (value_assign): Check if lval_computed write method is NULL.
1474 * value.h (struct lval_funcs): Comment NULL values for read and write
1477 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1479 Display @entry parameter values (without references).
1480 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1482 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1484 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1486 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1487 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1489 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1490 (loclist_read_variable_at_entry): New function.
1491 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1492 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1493 DW_AT_location, call dwarf_block_to_sp_offset for it.
1494 * frame.h (print_entry_values_no, print_entry_values_only)
1495 (print_entry_values_preferred, print_entry_values_if_needed)
1496 (print_entry_values_both, print_entry_values_compact)
1497 (print_entry_values_default, print_entry_values): New declarations.
1498 (struct frame_arg): New field entry_kind.
1499 (read_frame_arg): New parameter entryargp.
1500 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1501 arg->entry_kind. Optionally print the `@entry' suffix.
1502 (list_args_or_locals): New variable entryarg, initialize it.
1503 Initialize also entry_kind of arg and entryarg. Conditionalize
1504 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1505 xfree for entryarg.error.
1506 * stack.c (print_entry_values_no, print_entry_values_only)
1507 (print_entry_values_preferred, print_entry_values_if_needed)
1508 (print_entry_values_both, print_entry_values_compact)
1509 (print_entry_values_default, print_entry_values_choices)
1510 (print_entry_values): New variables.
1511 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1512 print the `@entry' suffix, possibly in combination for
1513 print_entry_values_compact.
1514 (read_frame_arg): New parameter entryargp, new variables entryval,
1515 entryval_error and val_equal. Read in also entryargp, respect
1516 print_entry_values, compare the values using val_equal, fill in also
1517 argp->entry_kind (together with entryargp->entry_kind).
1518 (print_frame_args): New variable entryarg, initialize it.
1519 Conditionalize print_frame_arg for arg, add print_frame_arg for
1520 entryarg. Call xfree for entryarg.error.
1521 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1522 * symtab.h (struct symbol_computed_ops): New field
1523 read_variable_at_entry.
1525 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1528 * frame.h (struct frame_arg): New definition.
1529 (read_frame_arg): New declaration.
1530 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1531 (list_args_or_locals): ... the code here. New variable arg, call
1532 read_frame_arg and list_arg_or_local with it. Unify the
1533 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1535 * stack.c (print_frame_arg): New functiom from the code of
1537 (read_frame_arg): New function.
1538 (print_frame_args): Remove variable val. New variable arg, call
1539 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1541 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1543 Protect entry values against self tail calls.
1544 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1545 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1547 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1549 Recognize virtual tail call frames.
1550 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1551 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1552 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1553 * dwarf2-frame-tailcall.c: New file.
1554 * dwarf2-frame-tailcall.h: New file.
1555 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1556 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1557 REGS.PREV only after CIE execution.
1558 (struct dwarf2_frame_cache): New field tailcall_cache.
1559 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1560 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1561 parts, try to find entry_cfa_sp_offset. Call
1562 dwarf2_tailcall_sniffer_first.
1563 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1565 (dwarf2_frame_dealloc_cache): New function.
1566 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1567 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1568 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1569 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1570 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1571 * dwarf2loc.c (func_addr_to_tail_call_list)
1572 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1573 (call_site_find_chain_1, call_site_find_chain): New.
1574 * dwarf2loc.h (struct call_site_chain): New.
1575 (call_site_find_chain): New declaration.
1576 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1577 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1578 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1579 * stack.c (frame_info): Support also TAILCALL_FRAME.
1581 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1583 Tail call sites reader implementation.
1584 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1585 fill in TYPE_TAIL_CALL_LIST.
1586 * gdbtypes.h (struct func_type): New field tail_call_list.
1587 (struct call_site): New field tail_call_next.
1588 (TYPE_TAIL_CALL_LIST): New definition.
1590 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1592 Implement basic support for DW_TAG_GNU_call_site.
1593 * block.c: Include gdbtypes.h and exceptions.h.
1594 (call_site_for_pc): New function.
1595 * block.h (call_site_for_pc): New declaration.
1596 * defs.h: Include hashtab.h.
1597 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1599 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1600 ctx_no_push_dwarf_reg_entry_value.
1601 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1602 (dwarf_block_to_dwarf_reg): New function.
1603 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1604 (ctx_no_push_dwarf_reg_entry_value): New function.
1605 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1606 push_dwarf_reg_entry_value.
1607 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1609 * dwarf2loc.c: Include gdbcmd.h.
1610 (dwarf_expr_ctx_funcs): New forward declaration.
1611 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1612 (dwarf_expr_reg_to_entry_parameter)
1613 (dwarf_expr_push_dwarf_reg_entry_value): New.
1614 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1615 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1616 (needs_dwarf_reg_entry_value): New function.
1617 (needs_frame_ctx_funcs): Install it.
1618 (_initialize_dwarf2loc): New function.
1619 * dwarf2loc.h (entry_values_debug): New declaration.
1620 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1621 (read_call_site_scope): New forward declaration.
1622 (process_full_comp_unit): Copy call_site_htab.
1623 (process_die): Support DW_TAG_GNU_call_site.
1624 (read_call_site_scope): New function.
1625 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1626 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1627 (cleanup_htab): Delete.
1628 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1629 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1630 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1631 FIELD_LOC_KIND_DWARF_BLOCK.
1632 * gdbtypes.h (enum field_loc_kind): New entry
1633 FIELD_LOC_KIND_DWARF_BLOCK.
1634 (struct main_type): New loc entry dwarf_block.
1635 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1636 (TYPE_FIELD_DWARF_BLOCK): New.
1637 * python/py-type.c: Include dwarf2loc.h.
1638 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1639 internal_error call on unknown FIELD_LOC_KIND.
1640 * symtab.h (struct symtab): New field call_site_htab.
1641 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1642 (core_addr_hash, core_addr_eq): New functions.
1644 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1647 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1648 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1649 calling_convention under func_stuff there.
1650 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1651 (init_type) <TYPE_CODE_FUNC>: Likewise.
1652 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1653 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1654 * gdbtypes.h (enum type_specific_kind): Change
1655 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1656 (struct main_type) <type_specific>: Change calling_convention to
1657 func_stuff. Move calling_convention to ...
1658 (struct func_type): ... this new struct.
1659 (INIT_FUNC_SPECIFIC): New #define.
1660 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1662 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1665 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1666 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1667 ctx->ref_addr_size. Handle its invalid value.
1668 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1669 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1670 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1671 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1672 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1673 (dwarf2_per_cu_ref_addr_size): New function.
1675 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1678 * dwarf2read.c (per_cu_header_read_in): New function.
1679 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1680 variables cu_header_local and cu_headerp.
1682 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 Fix initial language detection with -readnow.
1685 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1686 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1687 searches only for global symbols.
1689 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1691 Fix printed anonymous struct name.
1692 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1693 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1694 (anonymous_struct_prefix): New function.
1695 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1696 (dwarf2_name): Strip for anonymous structs any prefixes.
1698 2011-10-07 Doug Evans <dje@google.com>
1700 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1703 * python/lib/gdb/printing.py: Whitespace cleanup.
1705 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1708 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1710 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1711 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1712 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1713 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1714 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1715 (arm_linux_remove_watchpoint): Adjust.
1716 * i386-linux-nat.c (i386_linux_dr_set_control)
1717 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1718 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1719 (ia64_linux_remove_watchpoint): Adjust.
1720 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1721 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1722 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1723 (ppc_linux_insert_mask_watchpoint)
1724 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1725 (ppc_linux_remove_watchpoint): Adjust.
1726 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1729 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1731 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1732 (clear_win32_environment): New function for Cygwin to clear out
1734 (windows_create_inferior): Prepare new environment from in_env
1737 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1740 * python/py-value.c (valpy_call): Check that arguments are
1742 (is_intlike): Remove call to CHECK_TYPEDEF.
1743 (valpy_nonzero): Catch GDB exceptions.
1744 (valpy_absolute): Ditto.
1745 (valpy_lazy_string): Ditto.
1746 (valpy_call): Ditto.
1747 (valpy_get_is_optimized_out): Ditto.
1748 (valpy_long): Ditto.
1749 (valpy_float): Ditto.
1750 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1751 (valpy_richcompare): Ditto.
1753 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1755 * inferior.h (disable_randomization): Declare.
1756 * infrun.c (disable_randomization): New global variable.
1757 (show_disable_randomization): New function.
1758 (set_disable_randomization): Likewise.
1759 (_initialize_infrun): Install set/show disable-randomization
1761 * linux-nat.c (disable_randomization): Remove.
1762 (show_disable_randomization): Likewise.
1763 (set_disable_randomization): Likewise.
1764 (_initialize_linux_nat): No longer install set/show
1765 disable-randomization commands here.
1766 (linux_nat_supports_disable_randomization): New function.
1767 (linux_nat_add_target): Install it.
1768 * remote.c (PACKET_QDisableRandomization): New enum value.
1769 (remote_protocol_packets): Support QDisableRandomization.
1770 (_initialize_remote): Likewise.
1771 (remote_supports_disable_randomization): New function.
1772 (init_remote_ops): Install it.
1773 (extended_remote_supports_disable_randomization): New function.
1774 (init_extended_remote_ops): Install it.
1775 (extended_remote_disable_randomization): New function.
1776 (extended_remote_create_inferior_1): Call it.
1777 * target.h (struct target_ops): Add to_supports_disable_randomization.
1778 (target_supports_disable_randomization): Add prototype.
1779 * target.c (target_supports_disable_randomization): New function.
1780 (find_default_supports_disable_randomization): Likewise.
1781 (init_dummy_target): Install it.
1783 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1785 Allow Python notification of new object-file loadings.
1786 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1787 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1788 Add build rule for this file.
1789 * python/py-event.h (emit_new_objfile_event): New prototype.
1790 (newobjfile): New Python event emitter.
1791 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1792 Python event registry.
1793 * python/py-inferior.c: Include objfiles.h
1794 (python_new_objfile): New function.
1795 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1797 * python/py-newobjfileevent.c: New file.
1798 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1800 * python/python.c (_initialize_python): Add
1801 gdbpy_initialize_new_objfile_event call.
1802 * NEWS: Add item for new Python event "gdb.newobjfile"
1804 2011-10-05 Tristan Gingold <gingold@adacore.com>
1806 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1807 Extract the ravenscar task name from the symbol for the atcb.
1809 2011-10-04 Paul Koning <paul_koning@dell.com>
1811 * python/py-type.c (typy_make_iter): Add forward declaration.
1812 (typy_fields_items): Use the gdb.Type iterator.
1814 2011-10-04 Paul Koning <paul_koning@dell.com>
1816 * NEWS: Add entry for Python gdb.Type mapping methods.
1818 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1820 PR python/12691: Add the inferior to Python exited event
1821 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1823 * python/py-event.h (emit_exited_event): Likewise
1824 * python/-inferior.c (python_inferior_exit): Likewise
1826 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1828 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1829 in output of -ada-task-info GDB/MI command.
1831 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1833 * ada-lang.h (struct inferior): Declare.
1834 (print_ada_task_info): Add declaration.
1835 * ada-tasks.c (print_ada_task_info): Make non-static.
1836 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1837 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1838 * mi/mi-main.c: #include "ada-lang.h".
1839 (mi_cmd_list_features): Add "ada-task-info" to the list
1840 of supported features.
1841 (mi_cmd_ada_task_info): New function.
1843 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1845 * python/python.c (python_run_simple_file): New function.
1846 (source_python_script, source_python_script_for_objfile):
1847 Replace call to PyRun_SimpleFile by call to
1848 python_run_simple_file.
1850 2011-10-03 Paul Koning <paul_koning@dell.com>
1852 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1853 (value_to_value_object): Fetch value if it was lazy.
1855 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1858 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1859 Rearrange the code for it.
1861 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1863 * breakpoint.c (bkpt_print_recreate): Add call to
1864 print_recreate_thread.
1866 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1868 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1869 PTRACE_GETFDPIC_INTERP): Define.
1871 2011-09-28 Yao Qi <yao@codesourcery.com>
1873 * symfile.c (add_symbol_file_command): Update message on usage.
1875 2011-09-28 Paul Koning <paul_koning@dell.com>
1877 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1878 (typy_length, typy_get, typy_has_key, typy_make_iter)
1879 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1880 (typy_iterator_iter, typy_iterator_iternext)
1881 (typy_iterator_dealloc): New functions to implement standard
1882 Python mapping methods on gdb.Type object.
1883 (gdb.TypeIterator): New Python type.
1884 * python/python-internal.h (gdbpy_iter_kind): New enum.
1886 2011-09-28 David S. Miller <davem@davemloft.net>
1888 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1889 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1890 * sparc-tdep.c (sparc_complex_floating_p): New function.
1891 (sparc32_store_arguments): Handle complex floats.
1892 (sparc32_extract_return_value): Likewise.
1893 (sparc32_store_return_value): Likewise.
1894 (sparc32_stabs_argument_has_addr): Likewise.
1895 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1896 (sparc64_store_floating_fields): Handle complex floats.
1897 (sparc64_store_arguments): Likewise.
1898 (sparc64_store_return_value): Likewise.
1900 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1902 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1903 before the change on 2006-12-09.
1904 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1905 generates the environment block for CreateProcessA, modulo the
1906 Cygwin-specific parts that are not needed here.
1908 2011-09-27 Tristan Gingold <gingold@adacore.com>
1910 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1911 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1912 (darwin_solib_get_all_image_info_addr_at_init): New function.
1913 (darwin_solib_read_all_image_info_addr): Likewise.
1914 (darwin_solib_create_inferior_hook): Use the above two functions.
1915 * darwin-nat.c (darwin_execvp): Renames retval to res.
1916 (darwin_read_write_inferior): Update comment.
1917 (darwin_read_dyld_info): New function.
1918 (darwin_xfer_partial): Handle DYLD_INFO.
1920 2011-09-27 Stan Shebs <stan@codesourcery.com>
1922 Add return address collection for tracepoints.
1923 * tracepoint.c (encode_actions_1): Add case for $_ret.
1924 (validate_actionline): Check for $_ret.
1925 (trace_dump_actions): Ditto.
1926 * ax-gdb.h (gen_trace_for_return_address): Declare.
1927 * ax-gdb.c: Include arch-utils.h.
1928 (gen_trace_for_return_address): New function.
1929 (agent_command): Add return address special case.
1930 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1931 (amd64_gen_return_address): New function.
1932 (amd64_init_abi): Call it.
1933 * i386-tdep.c: Include ax.h and ax-gdb.h.
1934 (i386_gen_return_address): New function.
1935 (i386_init_abi): Call it.
1936 * arch-utils.h (default_gen_return_address): Declare.
1937 * arch-utils.c (default_gen_return_address): New function.
1938 * gdbarch.sh (gen_return_address): New method.
1939 * gdbarch.h, gdbarch.c: Regenerate.
1941 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1944 * i386-tdep.c (i386_frame_align): New.
1945 (i386_gdbarch_init): Use i386_frame_align.
1947 2011-09-23 Yao Qi <yao@codesourcery.com>
1949 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1952 2011-09-22 Tristan Gingold <gingold@adacore.com>
1954 * fork-child.c (fork_inferior): Add exec_fun parameter.
1955 Call exec_fun or execvp.
1956 * inferior.h: Adjust prototype.
1957 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1958 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1959 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1960 * procfs.c (procfs_create_inferior): Ditto.
1961 * darwin-nat.c (darwin_execvp): New function.
1962 (darwin_create_inferior): Use it.
1964 2011-09-22 Yao Qi <yao@codesourcery.com>
1966 * infrun.c (context_switch): Print debug message when switching to
1969 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1971 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1972 complex and vector types.
1973 (s390_return_value_convention): Likewise.
1975 (s390_value_from_register): Call check_typedef.
1976 (extend_simple_arg): Likewise.
1977 (alignment_of): Likewise.
1978 (s390_push_dummy_call): Likewise.
1979 (s390_return_value): Likewise.
1981 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1983 * event-top.c (async_disconnect): If an exception is thrown from
1984 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1986 * top.c (quit_cover): Return void and take no arguments.
1987 * top.h (quit_cover): Update prototype.
1989 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1991 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1992 current_uiout, not uiout.
1994 2011-09-19 Doug Evans <dje@google.com>
1996 * python/py-auto-load.c (source_section_scripts): Fix file
1998 * python/python.c (source_python_script_for_objfile): Tweak comments.
2000 2011-09-18 Yao Qi <yao@codesourcery.com>
2001 Ulrich Weigand <ulrich.weigand@linaro.org>
2003 Support displaced stepping for Thumb 16-bit insns.
2004 * arm-tdep.c (THUMB_NOP) Define.
2005 (thumb_copy_unmodified_16bit): New.
2006 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2007 (thumb_copy_alu_reg): New.
2008 (arm_copy_svc): Move some common code to ...
2009 (install_svc): ... here. New.
2010 (thumb_copy_svc): New.
2011 (install_pc_relative): New.
2012 (thumb_copy_pc_relative_16bit): New.
2013 (thumb_decode_pc_relative_16bit): New.
2014 (thumb_copy_16bit_ldr_literal): New.
2015 (thumb_copy_cbnz_cbz): New.
2016 (cleanup_pop_pc_16bit_all): New.
2017 (thumb_copy_pop_pc_16bit): New.
2018 (thumb_process_displaced_16bit_insn): New.
2019 (thumb_process_displaced_32bit_insn): New.
2020 (thumb_process_displaced_insn): process thumb instruction.
2022 Support displaced stepping for Thumb 32-bit insns.
2023 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2024 (thumb2_copy_preload): New.
2025 (thumb2_copy_copro_load_store): New.
2026 (thumb2_copy_b_bl_blx): New.
2027 (thumb2_copy_alu_imm): New.
2028 (thumb2_copy_load_reg_imm): New.
2029 (thumb2_copy_load_literal): New
2030 (thumb2_copy_block_xfer): New.
2031 (thumb_32bit_copy_undef): New.
2032 (thumb_32bit_copy_unpred): New.
2033 (thumb2_decode_ext_reg_ld_st): New.
2034 (thumb2_decode_svc_copro): New.
2035 (decode_thumb_32bit_store_single_data_item): New.
2036 (thumb_copy_pc_relative_32bit): New.
2037 (thumb_decode_pc_relative_32bit): New.
2038 (decode_thumb_32bit_ld_mem_hints): New.
2039 (thumb2_copy_table_branch): New
2040 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2043 2011-09-18 Yao Qi <yao@codesourcery.com>
2045 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2046 (install_b_bl_blx): Likewise.
2048 2011-09-17 Yao Qi <yao@codesourcery.com>
2050 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2051 (install_load_store): ... this. New.
2052 Change parameter BYTE to SIZE.
2053 (arm_copy_ldr_str_ldrb_strb): Update caller.
2054 (arm_decode_ld_st_word_ubyte): Update caller.
2056 2011-09-17 Yao Qi <yao@codesourcery.com>
2058 * infrun.c (displaced_step_fixup): Move some code ...
2059 (displaced_step_restore): ... here. New function.
2060 (handle_inferior_event): Cleanup displaced stepping state for both
2061 child and parent when get forked or vforked event.
2062 * regcache.c (get_thread_arch_aspace_regcache): New function.
2063 get_thread_arch_regcache (): Call it.
2065 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2067 * ada-tasks.c (print_ada_task_info): New function, merging
2068 short_task_info and info_tasks together. Reimplement using
2069 ui-out instead of printing to stdout directly. Move the code
2070 building and checking the task list here, instead of leaving it
2071 in info_tasks_command.
2072 (info_task): Move the code building and checking the task
2073 list here, instead of leaving it in info_tasks_command.
2074 (info_tasks_command): Delete code building and checking
2075 the task list - moved elsewhere. Update calls to info_tasks
2078 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2080 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2082 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2084 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2086 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2088 * ada-lang.h (ada_build_task_list): Remove parameter
2090 * ada-tasks.c (ada_build_task_list): Remove parameter
2091 `warn_if_null'. Adjust implementation and documentation.
2092 (valid_task_id, ada_get_environment_task)
2093 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2094 (info_tasks_command): Adjust implementation.
2095 (task_command): Likewise.
2096 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2097 to ada_build_task_list.
2099 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2101 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2102 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2103 (ada_tasks_inferior_data_handle): New static global.
2104 (get_ada_tasks_inferior_data): New function.
2105 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2106 (ada_get_environment_task, iterate_over_live_ada_tasks)
2107 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2109 (ada_set_current_inferior_known_tasks_addr): New function.
2110 (read_known_tasks, ada_build_task_list, short_task_info)
2111 (info_tasks, info_task, info_tasks_command, task_command_1)
2112 (task_command, ada_task_list_changed): Adjust.
2113 (ada_tasks_invalidate_inferior_data): New function.
2114 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2115 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2116 * ada-lang.h (struct inferior): Add declaration.
2117 (ada_task_list_changed): Update profile.
2118 * remote-wtx-pd.c: #include "inferior.h".
2119 (switch_to_pd_internal): Update call to ada_task_list_changed.
2121 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2123 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2124 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2125 (atcb_fieldno): Delete these static globals.
2126 (struct ada_tasks_pspace_data): New struct.
2127 (ada_tasks_pspace_data_handle): New static global.
2128 (get_ada_tasks_pspace_data): New function.
2129 (ada_tasks_invalidate_pspace_data): New function.
2130 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2131 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2132 (_initialize_tasks): Create this module's per-progspace
2135 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2137 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2139 2011-09-16 Tristan Gingold <gingold@adacore.com>
2141 * fork-child.c (fork_inferior): Update comment. Use alloca
2142 instead of xmalloc for argv. Move len and shell_command
2143 declarations in the block where they are used.
2144 Only call execvp. Factorize failure code.
2146 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2149 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2150 `exp_element' instead of an element of the same and make the function
2152 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2153 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2154 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2155 Change argument of `write_exp_elt' function call.
2156 Remove extra spaces from comments.
2157 * parser-defs.h (write_exp_elt): Remove prototype.
2159 2011-09-15 Paul Koning <paul_koning@dell.com>
2161 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2162 count of item appended to list.
2163 * python/py-type.c (typy_fields): Likewise.
2165 2011-09-15 Paul Koning <paul_koning@dell.com>
2167 * MAINTAINERS (Write After Approval): Add myself to the list.
2169 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2172 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2173 processes with multiple threads.
2174 (inf_has_multiple_thread_cb): New function.
2175 (inf_has_multiple_threads): New function.
2177 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2179 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2180 * python/py-inferior.c (GdbMethods): New Python method definition.
2182 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2184 Handle multiple breakpoint hits in Python interface:
2185 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2186 variable to breakpoints.
2187 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2188 bps instead of single breakpoint. Fix some space typos.
2189 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2190 variable to breakpoints.
2192 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2194 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2195 note if the breakpoint is internal.
2197 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2199 * MAINTAINERS (Write After Approval): Add myself to the list
2201 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2203 * infrun.c (prepare_for_detach, wait_for_inferior)
2204 (fetch_inferior_event): Don't flush the register cache.
2205 * remote.c (struct stop_reply) <regcache>: Add comment.
2207 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 Remove excessive DWARF expressions memory duplication.
2210 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2212 (indirect_pieced_value): Remove variable result. Remove variable
2213 back_to and its use for baton.data.
2214 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2216 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2217 Update the function comment.
2219 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2221 * inferior.h (ALL_INFERIORS): New.
2222 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2223 for a stopped thread.
2224 (thread_db_find_new_threads): Look for threads in all inferiors.
2226 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2228 * breakpoint.c (update_watchpoint): Handle the case of the
2229 watchpoint to update not being in the breakpoint list yet.
2230 (hw_watchpoint_use_count): New, factored out from
2231 hw_watchpoint_used_count.
2232 (hw_watchpoint_used_count): Rename to ...
2233 (hw_watchpoint_used_count_others): ... this. Add `except'
2234 parameter. Don't count resources of `except'. Use
2235 hw_watchpoint_use_count.
2237 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2239 * gdbthread.h (enum thread_state): Moved here.
2240 (struct thread_info): Rename `executing_' field to `executing' and
2241 `state_' to `state'.
2242 * thread.c (enum thread_state): Moved to gdbthread.h.
2243 (new_thread, add_thread_silent, delete_thread_1)
2244 (any_live_thread_of_process, thread_alive, set_running)
2245 (set_running, is_thread_state, any_running, is_executing)
2246 (set_executing, finish_thread_state, print_thread_info)
2247 (do_captured_thread_select): Adjust.
2249 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2251 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2252 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2254 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2255 Matt Rice <ratmice@gmail.com>
2259 * interps.c (struct interp) <interpreter_out>: Delete field.
2260 (interp_new): Remove the data and uiout parameters and adjust.
2261 (interp_set): Only set the current_uiout from the interpreter's
2262 uiout after initializing the interpreter. Adjust call to
2264 (interp_ui_out): Adjust to call procs->ui_out_proc.
2265 (interp_data, interp_name): New.
2266 * interps.h (interp_init_ftype): Add `self' parameter.
2267 (interp_ui_out_ftype): New typedef.
2268 (struct interp_procs) <ui_out_proc>: New method pointer.
2269 (interp_new): Remove the data and uiout parameters.
2270 (interp_data, interp_name): Declare.
2271 * tui/tui-interp.c (tui_init): Adjust prototype.
2273 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2274 tui_out here. Adjust call to interp_new.
2275 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2276 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2278 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2279 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2280 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2281 Initialize mi->uiout depending on the mi_version as extracted from
2282 the interpreter's name.
2284 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2285 interp_new. Don't allocate the ui_out's of the interpreters here.
2287 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2289 * solib.c (solib_used): New function.
2290 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2291 by another so_list object before freeing it.
2293 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2296 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2299 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2302 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2303 (amd64_skip_xmm_prologue): ... this new function. Describe its
2304 parameters. No longer use amd64_prologue_line_bug.
2305 * defs.h (producer_is_gcc_ge_4): New declaration.
2306 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2307 (process_full_comp_unit): Update its caller. Remove
2308 amd64_prologue_line_bug initialization.
2309 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2310 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2312 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2314 * linux-nat.h (enum resume_kind): New.
2315 (struct lwp_info) <last_resume_kind>: New field.
2316 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2317 resume_stop on the new lwp.
2318 (add_lwp): Set last_resume_kind as resume_continue by default.
2319 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2320 (resume_lwp): New, factored out from resume_callback. Also check
2321 for pending status in lp->waitstatus.
2322 (resume_callback): Reimplement.
2323 (resume_clear_callback): Set last_resume_kind as resume_stop.
2324 (resume_set_callback): Set last_resume_kind as resume_continue.
2325 (linux_nat_resume, linux_handle_extended_wait): Set
2327 (running_callback): Also check lp->waitstatus for pending events.
2328 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2330 (stop_and_resume_callback): Don't re-resume if the core wanted the
2331 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2332 using an invalidated pointer.
2333 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2334 SIGSTOPs if the core wanted the LWP to stop.
2335 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2336 wanted the lwp to stop. If the core wanted the lwp to stop, and
2337 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2338 of TARGET_SIGNAL_STOP.
2339 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2340 here. Instead, signal the lwp, and set the last_resume_kind to
2343 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2345 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2346 -1 (error), if the lwp exits right after attaching.
2348 2011-09-08 Doug Evans <dje@google.com>
2350 * py-cmd.c: Some minor formatting fixes.
2351 (gdbpy_parse_command_name): Rename text arg to name, make const.
2352 All callers updated.
2353 * python-internal.h (gdbpy_parse_command_name): Update.
2355 * cli/cli-decode.c (add_cmd): Add comment.
2357 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2359 PR breakpoints/12435
2360 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2361 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2362 * dwarf2read.c (process_full_comp_unit): Initialize
2363 amd64_prologue_line_bug.
2364 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2366 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2368 Fix TUI screen corruption.
2369 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2372 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2374 * findvar.c (read_var_value): Never return NULL, throw an error
2375 instead. Update the function comment. State symbol name in the error
2377 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2379 * stack.c (print_frame_args): Likewise.
2380 * valops.c (value_of_variable): Likewise.
2382 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2384 * stack.c (print_frame_args): New variable except. Wrap
2385 read_var_value and common_val_print into TRY_CATCH.
2387 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2390 caller to value_of_this.
2391 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2393 * valops.c (value_of_this): Remove parameter complain and variable ret.
2394 Update function comment. Never return NULL by this code.
2395 (value_of_this_silent): New function.
2396 * value.h (value_of_this): Remove parameter complain.
2397 (value_of_this_silent): New declaration.
2399 2011-09-07 Yao Qi <yao@codesourcery.com>
2401 * gdbthread.h (struct thread_info): Remove fields
2402 `stepping_through_solib_after_catch' and
2403 `stepping_through_solib_catchpoints'.
2404 * infrun.c (init_thread_stepping_state): Update.
2405 (process_event_stop_test, currently_stepping): Update.
2406 (currently_stepping_or_nexting_callback): Update.
2408 2011-09-07 Yao Qi <yao@codesourcery.com>
2410 * gdbthread.h (struct thread_info): Comment on field
2411 `step_after_step_resume_breakpoint'.
2413 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2415 * remote.c (remote_console_output): Reindent.
2417 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2419 * frame.c (has_stack_frames): Check for currently selected
2422 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2424 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2425 (set_async_annotation_level, set_async_prompt, pop_prompt)
2426 (push_prompt, new_async_prompt): Delete declarations.
2427 * top.h (get_prompt, set_prompt): Change prototype.
2428 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2430 * top.c (command_loop):
2431 (top_prompt): New global.
2432 (get_prefix, set_prefix, get_suffix, ): Delete.
2433 (get_prompt, set_prompt): Rewrite.
2434 (show_new_async_prompt): Rename to ...
2435 (show_prompt): ... this.
2436 (init_main): Adjust. Don't handle --annotate=2 here.
2437 * event-top.c (new_async_prompt): Delete.
2438 (the_prompts): Delete.
2439 (more_to_come): Make static.
2440 (display_gdb_prompt): Use top_level_prompt() to compute the top
2441 level prompt, and don't notify the before_prompt observers
2442 directly here. Always trick readline into not trying to display
2443 the prompt if sync_execution and displaying the primary prompt.
2444 If displaying a local/secondary prompt, always show it, even if
2445 sync_execution is set.
2446 (change_annotation_level): Delete.
2447 (top_level_prompt): New, based on change_annotation_level.
2448 (push_prompt, pop_prompt): Delete.
2449 (async_disable_stdin): No longer pushes prompt.
2450 (command_line_handler): No longer pushes or pops prompt. If more
2451 input is expected, call display_gdb_prompt with an explicit empty
2453 (async_stop_sig): Adjust.
2454 (set_async_annotation_level, set_async_prompt): Delete.
2455 * python/python.c (before_prompt_hook): Adjust.
2457 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2461 * infrun.c (fetch_inferior_event): Check if there's a selected
2462 thread before checking if the selected thread is executing.
2464 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2466 * inf-loop.c (execute_command): Don't check if the current thread
2467 if running before synchronously waiting for command completion.
2468 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2470 (normal_stop): Call async_enable_stdin here.
2471 * inf-loop.c (inferior_event_handler): Don't call
2472 async_enable_stdin, nor handle "set exec-done-display" here.
2474 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2478 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2480 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2482 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2484 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2486 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2488 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2490 2011-09-02 Matt Rice <ratmice@gmail.com>
2493 * event-top.c (cli_command_loop): Replace readline setup with
2494 direct call to display_gdb_prompt.
2495 (display_gdb_prompt): Do not call observer mechanism during
2496 synchronous execution.
2498 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2500 * linux-nat.c (in_pid_list_p): New.
2501 (linux_record_stopped_pid): Delete.
2502 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2503 already attached to the LWP. Return an indication if so.
2504 (linux_nat_filter_event): Adjust.
2505 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2506 returning an indication to ignore this thread.
2508 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2510 * top.c: Include interps.h.
2511 (execute_command): If the target can async, but the interpreter is
2512 in sync mode, synchronously wait for the command to finish before
2514 (execute_command_to_string): Force the interpreter to sync mode.
2515 * infrun.c: Include interps.h.
2516 (fetch_inferior_event): Don't restore the prompt yet if the
2517 interpreter is in sync mode.
2518 * interps.c (interpreter_async): New global.
2519 * interps.h (interpreter_async): Declare.
2520 * inf-loop.c: Include interps.h.
2521 (inferior_event_handler): Don't print the language change or run
2522 breakpoint commands yet if the interpreter in is sync mode.
2523 * main.c (captured_command_loop): Flip the interpreter to async
2525 * cli/cli-script.c: Include interps.h.
2526 (execute_user_command, while_command, if_command): Force the
2527 interpreter to sync mode.
2528 * python/python.c: Include interps.h.
2529 (python_command, execute_gdb_command): Force the interpreter to
2532 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2534 * value.c (show_convenience): Catch errors thrown while printing
2535 each internal variable.
2536 * infrun.c (validate_siginfo_access): New function.
2537 (siginfo_value_read, siginfo_value_write): Call it.
2539 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2542 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2543 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2546 2011-08-29 Yao Qi <yao@codesourcery.com>
2548 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2550 (enable_break2): Update caller.
2551 * solib-frv.c (bfd_lookup_symbol): Removed.
2553 (enable_break2): Update caller.
2554 * solib-pa64.c (bfd_lookup_symbol): Removed.
2556 * solib-svr4.c (bfd_lookup_symbol): Removed.
2557 (cmp_name_and_sec_flags): New.
2558 (enable_break): Update caller.
2559 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2560 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2561 (gdb_bfd_lookup_symbol): New.
2562 * solib.h: Functions declarations.
2564 2011-08-29 Yao Qi <yao@codesourcery.com>
2566 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2569 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2571 Fix TUI stepi on code without symbols.
2572 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2575 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2578 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2579 and the static keyword.
2580 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2581 Make prefix an array.
2582 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2583 * mi/mi-main.c (get_register): Remove stb initialization and the static
2586 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2588 Code cleanup - make mi_opt const.
2589 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2591 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2592 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2593 (mi_cmd_env_dir): Likewise.
2594 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2595 (mi_cmd_target_file_put): Likewise.
2596 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2597 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2598 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2599 (mi_valid_noargs): Make opts const.
2600 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2601 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2602 (mi_cmd_data_read_memory): Likewise.
2603 (mi_cmd_data_read_memory_bytes): Likewise.
2604 (mi_cmd_data_write_memory): Likewise.
2606 2011-08-26 Matt Rice <ratmice@gmail.com>
2608 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2609 bcache_xmalloc, replace bcache_xmalloc with call to
2610 psymbol_bcache_init for psymbol_cache.
2611 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2613 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2615 * inf-loop.c (inferior_event_handler): Add exception_print in
2618 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2620 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2621 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2622 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2623 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2624 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2625 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2626 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2627 * infrun.c (fetch_inferior_event): Call
2628 make_bpstat_clear_actions_cleanup.
2629 * top.c (execute_command): New variable cleanup_if_error, call
2630 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2631 * utils.c (do_bpstat_clear_actions_cleanup)
2632 (make_bpstat_clear_actions_cleanup): New functions.
2634 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2636 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2637 either the parent or the child forks. Rename a couple locals.
2639 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2641 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2642 library call. Avoid reading the `status' local if all waitpid
2645 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2647 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2648 opening /proc/PID/task always succeeds.
2650 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2652 * linespec.c (symtab_from_filename): Check for the end of string.
2654 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2657 * varobj.c (cplus_describe_child): Add the keyword
2658 'class' to the output of the method when dealing
2659 with a cast to a base class.
2661 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2663 No functionality change.
2664 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2665 function comment a reference, new variables tp and bs, move here code
2666 from throw_exception.
2667 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2668 describe it in the comment.
2669 * exceptions.c (throw_exception): Remove variable tp, move the code for
2670 bpstat_clear_actions to bpstat_clear_actions.
2672 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2674 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2675 * linux-nat.c: Include linux-procfs.h.
2676 (linux_proc_get_tgid): Move to ...
2677 * common/linux-procfs.c: ... here. New file.
2678 * common/linux-procfs.h: New file.
2679 * linux-thread-db.c: Include linux-procfs.h.
2680 * Makefile.in: Update dependencies.
2681 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2682 * config/arm/linux.mh: Likewise.
2683 * config/i386/linux.mh: Likewise.
2684 * config/i386/linux64.mh: Likewise.
2685 * config/ia64/linux.mh: Likewise.
2686 * config/m32r/linux.mh: Likewise.
2687 * config/m68k/linux.mh: Likewise.
2688 * config/mips/linux.mh: Likewise.
2689 * config/pa/linux.mh: Likewise.
2690 * config/pa/linux.mh: Likewise.
2691 * config/powerpc/linux.mh: Likewise.
2692 * config/powerpc/ppc64-linux.mh: Likewise.
2693 * config/powerpc/spu-linux.mh: Likewise.
2694 * config/sparc/linux.mh: Likewise.
2695 * config/sparc/linux64.mh: Likewise.
2696 * config/xtensa/linux.mh: Likewise.
2698 2011-08-24 Hui Zhu <teawater@gmail.com>
2700 * tracepoint.c (cond_string_is_same): New function.
2701 (find_matching_tracepoint): Add condition check
2702 by cond_string_is_same.
2704 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2706 Fix build error in Darwin port.
2707 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2709 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2712 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2713 (command_line_is_silent): New function.
2714 (bpstat_do_actions_1): No longer use commands_left, use
2715 command_line_is_silent for commands.
2716 (bpstat_alloc): Remove clearing of commands_left.
2717 (bpstat_stop_status): Remove initialization of commands_left, use
2718 command_line_is_silent.
2719 * breakpoint.h (struct bpstats): Remove commands_left.
2721 2011-08-18 Keith Seitz <keiths@redhat.com>
2724 * cp-name-parser.y (struct demangle_info): Remove unused
2727 (allocate_info): Change return type to struct demangle_info *.
2728 Always allocate a new demangle_info.
2729 Remove unused PREV pointer.
2730 (cp_new_demangle_parse_info): New function.
2731 (cp_demangled_name_parse_free): New function.
2732 (do_demangled_name_parse_free_cleanup): New function.
2733 (make_cleanup_cp_demangled_name_parse_free): New function.
2734 (cp_demangled_name_to_comp): Change return type to
2735 struct demangle_parse_info *.
2736 Allocate a new storage for each call.
2737 (main): Update usage for cp_demangled_name_to_comp
2739 * cp-support.h (struct demangle_parse_info): New structure.
2740 (cp_demangled_name_to_comp): Update API change for
2742 (cp_new_demangle_parse_info): Declare.
2743 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2744 (cp_demangled_name_parse_free): Declare.
2745 * cp-support.c (cp_canonicalize_string): Update API
2746 change for cp_demangled_name_to_comp.
2747 (mangled_name_to_comp): Likewise.
2748 Return struct demangle_parse_info, too.
2749 (cp_class_name_from_physname): Update mangled_name_to_comp
2751 (method_name_from_physname): Likewise.
2752 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2753 (cp_remove_params): Likewise.
2754 * python/py-type.c (typy_legacy_template_argument): Likewise.
2756 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2757 (cp_merge_demangle_parse_infos): Declare.
2758 * cp-support.c (ignore_typedefs): New file global.
2759 (copy_string_to_obstack): New function.
2760 (inspect_type): New function.
2761 (replace_typedefs): New function.
2762 (replace_typedefs_qualified_name): New function.
2763 (cp_canonicalize_string_no_typedefs): New function.
2764 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2765 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2766 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2767 instead of cp_canonicalize_string.
2768 (find_method): Likewise.
2769 (decode_compound): Before looking up the name, call
2770 cp_canonicalize_string_no_typedefs.
2771 (decode_variable): Likewise.
2773 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2774 Tom Tromey <tromey@redhat.com>
2775 Matt Rice <ratmice@gmail.com>
2777 * python/lib/gdb/prompt.py: New file.
2778 * python/lib/gdb/command/prompt.py: New file.
2779 * NEWS: Document set extended-prompt and gdb.prompt library
2781 2011-08-16 Yao Qi <yao@codesourcery.com>
2783 * tic6x-linux-tdep.c: Move const arrays definition from here...
2784 * tic6x-tdep.c: to here ...
2786 2011-08-14 Yao Qi <yao@codesourcery.com>
2788 * NEWS: New port to Texas Instruments TMS320C6x.
2790 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2791 Bernd Schmidt <bernds@codesourcery.com>
2792 Yao Qi <yao@codesourcery.com>
2794 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2795 * solib-dsbt.c: New file. Support DSBT shared object.
2796 * tic6x-linux-tdep.c: New file.
2797 * tic6x-tdep.c: New file.
2798 * tic6x-tdep.h: New file.
2800 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2801 Yao Qi <yao@codesourcery.com>
2803 * remote.c (PACKET_qXfer_fdpic): New enum value.
2804 (remote_protocol_features): Add qXfer:fdpic:read packet.
2805 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2806 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2807 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2809 2011-08-14 Yao Qi <yao@codesourcery.com>
2811 Target description for tic6x.
2812 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2813 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2814 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2815 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2816 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2817 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2818 * features/tic6x-c64xp-linux.xml: New.
2819 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2820 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2821 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2822 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2823 * regformats/tic6x-c64xp.dat,
2824 regformats/tic6x-c62x-linux.dat: Generated.
2825 * regformats/tic6x-c64x-linux.dat,
2826 regformats/tic6x-c64xp-linux.dat: Generated.
2827 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2828 features/tic6x-*.c files.
2829 Add regformats/tic6x-*.dat files.
2831 2011-08-12 Doug Evans <dje@google.com>
2833 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2834 * python/py-symbol.c (sympy_get_type): New function.
2835 (symbol_object_getset): Add "type".
2837 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2841 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2843 (tui_show_register_group): Don't store a byte buffer in the data
2845 (tui_register_format): Skip registers with an empty name.
2846 (tui_get_register): Store a struct value in the data element's
2847 value field instead of a byte buffer holding the raw register
2848 contents. Account for optimized-out and unavailable registers
2849 when comparing register contents.
2851 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2853 * printcmd.c (current_display_number): Update comment.
2854 (disable_current_display_cleanup): Delete.
2855 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2856 catch errors thrown while evaluating and printing the display.
2858 2011-08-09 Tom Tromey <tromey@redhat.com>
2860 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2862 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2864 * elfread.c (elf_symtab_read): Rework comments.
2865 * maint.c (maintenance_command): Ditto.
2866 * somread.c (som_symtab_read): Ditto.
2867 * solib.c (solib_find, solib_map_sections, update_solib_list)
2868 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2869 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2870 (sharedlibrary_command, no_shared_libraries): Ditto.
2871 * solib-irix.c (locate_base, disable_break, enable_break)
2872 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2873 (irix_current_sos, irix_open_symbol_file_object)
2874 (irix_special_symbol_handling): Ditto.
2875 * solib-sunos.c (locate_base, first_link_map_member)
2876 (sunos_current_sos, disable_break, enable_break)
2877 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2879 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2880 (open_symbol_file_object, svr4_current_sos, enable_break)
2881 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2883 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2884 (frv_current_sos, enable_break, frv_special_symbol_handling)
2885 (frv_solib_create_inferior_hook): Ditto.
2886 * solist.h (struct target_so_ops): Extend the comments of the
2887 special_symbol_handling, current_sos and open_symbol_file_object
2890 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2892 * python/lib/gdb/__init__.py: Auto-load files in command and
2893 function directories.
2894 * python/python.c (finish_python_initialization): Use
2896 * python/lib/gdb/command/pretty_printers.py: Self register
2898 * NEWS: Document auto-loading.
2900 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2902 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2903 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2904 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2906 2011-08-08 Tom Tromey <tromey@redhat.com>
2908 * breakpoint.c (clean_up_filters): Remove.
2909 (catch_syscall_split_args): Use VEC_cleanup.
2911 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2913 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2914 (main): Uncomment "Demangling error\n".
2916 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2918 * solib-target.c (segment_attributes): Make them static.
2919 (section_attributes, library_children, library_attributes): Likewise.
2920 (library_list_children, library_list_attributes): Likesise.
2921 (library_list_elements): Likewise.
2923 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2925 * exceptions.c (throw_exception): Don't disable the current
2927 * printcmd.c (disable_current_display_cleanup): New function.
2928 (do_one_display): Install a cleanup to disable the current display
2929 if doing the display throws.
2931 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2933 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2934 initialization of the tp_new member to the corresponding
2935 gdbpy_initialize_* function.
2936 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2937 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2938 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2939 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2940 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2942 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2944 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2945 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2946 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2947 references to current_uiout.
2949 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2951 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2952 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2953 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2954 * top.c (gdb_readline_wrapper): Adjust.
2955 * tui/tui-interp.c (tui_command_loop):
2956 (_initialize_tui_interp): Don't install it.
2958 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2960 * ui-out.h (uiout): Rename to ...
2961 (current_uiout): ... this.
2962 * ui-out.c (uiout): Rename to ...
2963 (current_uiout): ... this.
2964 * ada-lang.c (print_it_exception, print_one_exception)
2965 (print_mention_exception): Adjust.
2966 * breakpoint.c (watchpoint_check): Adjust.
2967 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2968 (default_collect_info, watchpoints_info, print_one_catch_fork)
2969 (print_one_catch_vfork, print_one_catch_syscall)
2970 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2971 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2972 (print_it_watchpoint, print_mention_watchpoint)
2973 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2974 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2975 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2976 (bkpt_print_mention, momentary_bkpt_print_it)
2977 (tracepoint_print_mention, update_static_tracepoint)
2978 (tracepoints_info, save_breakpoints): Adjust.
2979 * cli-out.c (field_separator): Adjust.
2980 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2981 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2982 * frame.c (get_current_frame): Adjust.
2983 * infcmd.c (run_command_1, print_return_value): Adjust.
2984 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2985 * infrun.c (print_end_stepping_range_reason): Adjust.
2986 (print_signal_exited_reason, print_exited_reason): Adjust.
2987 (print_signal_received_reason, print_no_history_reason): Adjust.
2988 * interps.c (interp_set): Adjust.
2989 * osdata.c (info_osdata_command): Adjust.
2990 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2991 * remote-fileio.c (remote_fileio_request): Adjust.
2992 * remote.c (show_remote_cmd): Adjust.
2993 * solib.c (info_sharedlibrary_command): Adjust.
2994 * source.c (print_source_lines_base): Adjust.
2995 * stack.c (print_stack_frame): Adjust.
2996 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2997 * symfile-mem.c (add_vsyscall_page): Adjust.
2998 * symfile.c (load_progress, generic_load)
2999 (print_transfer_performance): Adjust.
3000 * thread.c (info_threads_command, restore_selected_frame)
3001 (thread_command): Adjust.
3002 * top.c (make_cleanup_restore_ui_file): Adjust.
3003 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3004 (print_one_static_tracepoint_marker): Adjust.
3005 * cli/cli-cmds.c (print_disassembly): Adjust.
3006 * cli/cli-decode.c (print_doc_line): Adjust.
3007 * cli/cli-interp.c (safe_execute_command): Adjust.
3008 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3009 (handle_redirections): Adjust.
3010 * cli/cli-script.c (show_user_1): Adjust.
3011 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3012 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3013 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3014 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3015 (mi_cmd_env_dir): Adjust.
3016 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3017 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3018 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3019 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3020 (list_args_or_locals): Adjust.
3021 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3022 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3023 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3024 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3025 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3026 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3027 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3028 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3029 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3030 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3031 (list_available_thread_groups, mi_cmd_list_thread_groups)
3032 (mi_cmd_data_list_register_names)
3033 (mi_cmd_data_list_changed_registers)
3034 (mi_cmd_data_list_register_values, get_register)
3035 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3036 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3037 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3038 (mi_execute_command, mi_load_progress): Adjust.
3039 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3040 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3042 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3043 * tui/tui-interp.c (tui_command_loop): Adjust.
3044 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3046 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3048 * exceptions.c (struct catcher): Remove saved_uiout field.
3049 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3050 no longer save/resvore the global ui_out builder.
3051 (catch_exceptions_with_msg): Save/override/restore the global
3052 ui_out builder manually instead of relying on TRY_CATCH to do it.
3053 (catch_errors): Save/restore the global ui_out builder manually
3054 instead of relying on TRY_CATCH to do it.
3055 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3057 (TRY_CATCH): Adjust.
3058 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3059 the global ui_out builder manually instead of relying on TRY_CATCH
3062 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3064 * breakpoint.c (update_global_location_list): Ensure
3065 invariant 'first loc marked not duplicated and inserted,
3066 following locs marked duplicated/not inserted' is respected
3067 for multiple locations at the same address.
3068 (unduplicated_should_be_inserted) New function.
3069 (swap_insertion) New function.
3071 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3073 * stack.c (print_frame_arguments_choices): Comment typo fix.
3075 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3078 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3079 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3080 argument. Update callers.
3082 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3085 * doublest.c (convert_doublest_to_floatformat): Pass correct
3086 mantissa length to put_field.
3088 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3090 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3091 exception_print code path.
3092 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3093 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3094 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3096 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3099 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3100 Remove, merge them into ...
3101 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3102 variable args and its initialization.
3103 (struct print_args_args, print_args_stub): Remove, merge them into
3105 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3107 (do_gdb_disassembly): ... here. Remove variable args and its
3109 (print_frame): Remove variable args and its initialization, new
3110 variable gdbarch and numargs (from print_args_stub), inline here
3111 print_args_stub with a TRY_CATCH.
3112 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3114 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3115 New variable e, remove variable btargs and its initialization.
3117 2011-08-01 Tristan Gingold <gingold@adacore.com>
3119 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3121 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3123 * breakpoint.c (insert_bp_location): Document return value.
3124 (insert_breakpoint_locations): Fix documentation.
3125 (remove_breakpoints): Add documentation.
3127 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3129 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3130 argument. Update callers.
3132 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3134 * stack.c (print_frame_info): Comment typo fix.
3136 2011-07-29 Sterling Augustine <saugustine@google.com>
3138 * MAINTAINERS (Write After Approval): Add myself to the list.
3140 2011-07-29 Tom Tromey <tromey@redhat.com>
3142 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3143 (library_list_start_segment): Update.
3144 (library_list_start_section): Update.
3146 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3148 * varobj.c (value_get_print_value): Move hint check later into the
3149 function. Comment function. Free thevalue before reusing it.
3151 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3152 Pedro Alves <pedro@codesourcery.com>
3154 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3156 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3157 Assert the result kind.
3158 * value.h (value_one): Remove parameter lv.
3160 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3162 Fix crash on lval_computed values.
3163 * valops.c (value_zero): Use not_lval for lval_computed.
3165 2011-07-27 Tom Tromey <tromey@redhat.com>
3167 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3168 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3170 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3172 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3173 "ptype" by their typedefs difference.
3175 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3177 * dwarf2expr.c (ctx_no_read_reg): New function.
3178 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3179 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3180 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3181 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3183 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3185 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3186 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3188 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3189 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3190 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3191 (ctx_no_get_base_type): Move the functions here.
3192 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3193 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3194 (ctx_no_get_base_type): New declarations.
3196 2011-07-27 Tom Tromey <tromey@redhat.com>
3198 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3200 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3201 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3203 2011-07-26 Sterling Augustine <saugustine@google.com>
3205 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3207 (dump_bfd_file): Likewise.
3209 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3211 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3212 (remote_hw_watchpoint_length_limit): New variable.
3213 (_initialize_remote) add set,show cmds for this new variable.
3214 * gdb.texinfo: document these new commands.
3215 * NEWS: Mention these new commands.
3217 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3219 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3220 true for software watchpoints.
3222 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3226 2011-07-26 Tom Tromey <tromey@redhat.com>
3228 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3229 * dwarf2read.c (read_indirect_string_at_offset): New function.
3230 (read_indirect_string): Use it.
3231 (dwarf_decode_macro_bytes): New function, taken from
3232 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3233 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3234 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3236 (struct dwarf2_per_objfile) <macro>: New field.
3237 (dwarf2_elf_names): Add .debug_macro.
3238 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3239 (dwarf2_locate_sections): Handle new section.
3240 (read_file_scope): Handle DW_AT_GNU_macros.
3241 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3243 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3245 * NEWS: Mention dcache configuration.
3246 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3247 (dcache_size, dcache_line_size): New variables.
3248 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3249 (struct dcache_block): Make it expandable.
3250 (struct dcache_struct): New field.
3251 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3252 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3253 (dcache_poke_byte, dcache_print_line): Adjust.
3254 (set_dcache_size, set_dcache_line_size): New functions.
3255 (set_dcache_command, show_dcache_command): New functions.
3256 (_initialize_dcache): Add new commands.
3258 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3260 * progspace.h (struct program_space): Add solib_add_generation.
3261 * infcmd.c (post_create_inferior): Only call solib_add if not
3263 * solib.c (solib_add): Increment solib_add_generation.
3265 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 Fix implicit pointer offsets.
3268 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3271 2011-07-25 Tom Tromey <tromey@redhat.com>
3273 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3275 (ada_exception_sal): Make 'ops' const.
3276 (ada_decode_exception_location): Likewise.
3277 (ada_decode_assert_location): Likewise.
3278 (catch_assert_command): Update.
3279 (catch_ada_exception_command): Update.
3280 (create_ada_exception_catchpoint): Make 'ops' const.
3281 * breakpoint.c (set_raw_breakpoint_without_location)
3282 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3284 (create_internal_breakpoint): Update.
3285 (init_raw_breakpoint_without_location): Make 'ops' const.
3286 (init_raw_breakpoint, init_catchpoint)
3287 (create_fork_vfork_event_catchpoint)
3288 (create_syscall_event_catchpoint, init_breakpoint_sal)
3289 (create_breakpoint_sal, create_breakpoints_sal)
3290 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3291 * breakpoint.h (struct breakpoint) <ops>: Now const.
3292 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3295 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3297 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3299 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3301 * breakpoint.h (print_recreate_thread): Declare.
3302 (struct breakpoint): Move step_count, pass_count,
3303 number_on_target, static_trace_marker_id,
3304 static_trace_marker_id_idx ...
3305 (struct tracepoint): ... to this new struct.
3306 (get_tracepoint, get_tracepoint_by_number_on_target)
3307 (get_tracepoint_by_number): Change return type to struct
3309 * breakpoint.c (is_tracepoint_type): New, factored out from
3311 (is_tracepoint): Adjust.
3312 (print_one_breakpoint_location): Cast to struct tracepoint as
3313 necessary, and adjust.
3314 (print_recreate_catch_fork, print_recreate_catch_vfork)
3315 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3316 print_recreate_thread.
3317 (init_breakpoint_sal): New, factored out from
3318 create_breakpoint_sal.
3319 (create_breakpoint_sal): Reimplement.
3320 (create_breakpoint): Allocate a struct tracecepoint if the caller
3321 wanted a tracepoint. Use init_breakpoint_sal and
3323 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3324 (print_recreate_masked_watchpoint)
3325 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3326 (tracepoint_print_one_detail): Adjust.
3327 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3328 Dump the pass count here.
3329 (update_static_tracepoint): Adjust.
3330 (addr_string_to_sals): Adjust.
3331 (create_tracepoint_from_upload): Adjust. Change return type to
3332 struct tracepoint pointer.
3333 (trace_pass_set_count): Change parameter type to struct tracepoint
3334 pointer, and adjust.
3335 (trace_pass_command): Adjust.
3336 (get_tracepoint, get_tracepoint_by_number_on_target)
3337 (get_tracepoint_by_number): Change return type to struct
3338 tracepoint pointer, and adjust.
3339 (print_recreate_thread): New, factored out from save_breakpoints.
3340 (save_breakpoints): Don't print thread and task and passcount
3342 * remote.c (remote_download_tracepoint): Adjust.
3343 * tracepoint.c (trace_actions_command, validate_actionline)
3344 (start_tracing, tfind_1, trace_find_tracepoint_command)
3345 (trace_dump_command): Adjust.
3346 (find_matching_tracepoint): Change return type to struct
3347 tracepoint pointer, and adjust.
3348 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3349 (tfile_trace_find, tfile_fetch_registers): Adjust.
3350 * tracepoint.h (create_tracepoint_from_upload): Change return type
3351 to struct tracepoint pointer.
3352 * ada-lang.c (print_recreate_exception): Call
3353 print_recreate_thread.
3354 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3356 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3358 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3359 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3360 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3361 watchpoint_thread, watchpoint_triggered ...
3362 (struct watchpoint): ... to this new struct.
3363 (is_watchpoint): Declare.
3364 (install_breakpoint): Add new `internal' parameter.
3365 * breakpoint.c (is_watchpoint): Delete declaration.
3366 (set_breakpoint_condition): Handle watchpoints.
3367 (is_watchpoint): Make public.
3368 (watchpoint_in_thread_scope): Change parameter type to struct
3370 (watchpoint_del_at_next_stop): Change parameter type to struct
3371 watchpoint. Remove assertion. Adjust.
3372 (update_watchpoint): Ditto.
3373 (insert_breakpoints, breakpoint_init_inferior)
3374 (watchpoints_triggered, watchpoint_check)
3375 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3376 (bpstat_stop_status, print_one_breakpoint_location)
3377 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3378 to struct watchpoint as necessary, and adjust.
3379 (install_breakpoint): Add `internal' argument. If true, don't
3380 mention the new breakpoint. Use set_breakpoint_number.
3381 (create_fork_vfork_event_catchpoint)
3382 (create_syscall_event_catchpoint): Adjust.
3383 (dtor_watchpoint): New.
3384 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3385 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3386 (print_it_watchpoint, print_mention_watchpoint)
3387 (print_recreate_watchpoint, insert_masked_watchpoint)
3388 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3389 (print_one_detail_masked_watchpoint)
3390 (print_mention_masked_watchpoint)
3391 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3392 necessary, and adjust.
3393 (watch_command_1): Allocate and initialize a struct watchpoint
3394 instead of a struct breakpoint. Use install_breakpoint.
3395 (catch_exec_command_1): Adjust.
3396 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3398 (delete_breakpoint, enable_breakpoint_disp)
3399 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3400 as necessary, and adjust.
3401 (initialize_breakpoint_ops): Install dtor_watchpoint as
3402 watchpoints' dtor method.
3403 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3404 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3405 to struct watchpoint as necessary, and adjust.
3407 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3409 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3410 the the base class ops table.
3411 (catch_exception_breakpoint_ops)
3412 (catch_exception_unhandled_breakpoint_ops)
3413 (catch_assert_breakpoint_ops): Don't statically initialize.
3414 (initialize_ada_catchpoint_ops): New.
3415 (_initialize_ada_language): Call it.
3416 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3417 (bkpt_breakpoint_ops): Forward declare.
3418 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3419 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3420 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3421 (masked_watchpoint_breakpoint_ops)
3422 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3423 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3424 base class ops table.
3425 (null_re_set, null_check_status, null_works_in_software_mode)
3426 (null_resources_needed, null_print_one_detail): Delete.
3427 (bkpt_dtor): Rename to ...
3428 (base_breakpoint_dtor): ... this. Make static.
3429 (bkpt_allocate_location): Rename to ...
3430 (base_breakpoint_allocate_location): ... this. Make static.
3431 (base_breakpoint_re_set): New.
3432 (internal_error_pure_virtual_called): New.
3433 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3434 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3435 (base_breakpoint_works_in_software_mode)
3436 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3437 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3438 (base_breakpoint_print_recreate): New functions.
3439 (base_breakpoint_ops): New global.
3440 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3441 (bkpt_breakpoint_hit): Make static.
3442 (bkpt_check_status): Delete.
3443 (bkpt_resources_needed): Make static.
3444 (bkpt_works_in_software_mode): Delete.
3445 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3447 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3448 (momentary_breakpoint_ops): Don't statically initialize.
3449 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3451 (tracepoint_insert_location, tracepoint_remove_location)
3452 (tracepoint_check_status, tracepoint_works_in_software_mode)
3453 (tracepoint_print_it): Delete.
3454 (tracepoint_breakpoint_ops): Don't statically initialize.
3455 (initialize_breakpoint_ops): New.
3456 (_initialize_breakpoint): Call it.
3457 * breakpoint.h (null_re_set, null_works_in_software_mode)
3458 (null_resources_needed, null_check_status, null_print_one_detail):
3459 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3460 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3461 (bkpt_check_status, bkpt_resources_needed)
3462 (bkpt_works_in_software_mode, bkpt_print_it)
3463 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3464 Delete declarations.
3465 (initialize_breakpoint_ops): Declare.
3467 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3469 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3470 (momentary_bkpt_print_it): Simplify.
3472 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3474 Split internal, momentary and user breakpoints breakpoint_ops
3477 * breakpoint.c (internal_breakpoint_ops)
3478 (momentary_breakpoint_ops): Forward declare.
3479 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3480 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3481 (create_overlay_event_breakpoint)
3482 (create_std_terminate_master_breakpoint)
3483 (create_exception_master_breakpoint): Create breakpoints with
3484 internal_breakpoint_ops vtable.
3485 (set_longjmp_breakpoint): Create momentary breakpoints with
3486 momentary_breakpoint_ops vtable, using
3487 momentary_breakpoint_from_master.
3488 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3489 (create_solib_event_breakpoint): Create breakpoints with
3490 internal_breakpoint_ops vtable.
3491 (set_momentary_breakpoint): Create breakpoints with
3492 momentary_breakpoint_ops vtable.
3493 (momentary_breakpoint_from_master): New, factored out from
3494 clone_momentary_breakpoint.
3495 (clone_momentary_breakpoint): Adjust.
3496 (watch_command_1): Create scope breakpoints with
3497 momentary_breakpoint_ops vtable.
3498 (bkpt_re_set): Remove handling of internal and momentary
3500 (bkpt_print_mention, bkpt_print_recreate): New.
3501 (bkpt_breakpoint_ops): Adjust.
3502 (internal_bkpt_re_set, internal_bkpt_check_status)
3503 (internal_bkpt_print_it, internal_bkpt_print_mention)
3504 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3505 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3506 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3507 (momentary_bkpt_print_recreate): New.
3508 (momentary_breakpoint_ops): New.
3510 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3512 Implement most breakpoint_ops methods for all breakpoint types,
3513 and move the default handlings to the proper callbacks.
3515 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3516 works_in_software_mode method.
3517 (insert_bp_location): Go through breakpoint_ops->insert_location
3518 for software and hardware watchpoints.
3519 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3521 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3522 for software and hardware watchpoints.
3523 (print_it_typical): Delete.
3524 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3526 (watchpoint_check): Adjust comment.
3527 (bpstat_check_location): Simply always call the breakpoint's
3528 breakpoint_hit method.
3529 (bpstat_stop_status): Always call the breakpoint's check_status
3530 method. Remove special cases for watchpoints and internal event
3531 breakpoints from here (moved to the check_status implementations).
3532 (print_one_breakpoint_location): Assume b->ops is never NULL.
3533 Remove static tracepoint marker id printing from here (moved to
3534 the print_one_detail callback implementation of tracepoints).
3535 (init_bp_location): Assert OPS is never NULL.
3536 (allocate_bp_location): Always call the breakpoint's
3537 allocate_location method, and remove the default code from here.
3538 (free_bp_location): Always call the location's dtor method, and
3539 remove the default code from here.
3540 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3541 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3542 parameter. Pass it down.
3543 (set_raw_breakpoint): Ditto.
3544 (print_it_catch_fork): Adjust to take a bpstat as argument.
3545 (catch_fork_breakpoint_ops): Install methods.
3546 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3547 (catch_vfork_breakpoint_ops): Install methods.
3548 (dtor_catch_syscall): Call the base dtor.
3549 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3550 (catch_syscall_breakpoint_ops): Install methods.
3551 (dtor_catch_exec): Call the base dtor.
3552 (print_it_catch_exec): Adjust to take a bpstat as argument.
3553 (catch_exec_breakpoint_ops): Install methods.
3554 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3555 the breakpoint's resources_needed method, and remove the default
3557 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3559 (clone_momentary_breakpoint): Clone the original's ops.
3560 (mention): Always call the breakpoint's print_mention method, and
3561 remove the default code from here.
3562 (create_breakpoint_sal): Adjust to pass the ops to
3563 set_raw_breakpoint rather than setting it manually.
3564 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3565 ops to set_raw_breakpoint_without_location rather than setting it
3567 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3568 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3569 (ranged_breakpoint_ops): Install methods.
3570 (break_range_command): Adjust to pass the ops to
3571 set_raw_breakpoint rather than setting it manually.
3572 (re_set_watchpoint, breakpoint_hit_watchpoint)
3573 (check_status_watchpoint, resources_needed_watchpoint)
3574 (works_in_software_mode_watchpoint, print_it_watchpoint)
3575 (print_mention_watchpoint, print_recreate_watchpoint): New
3577 (watchpoint_breakpoint_ops): Install new methods.
3578 (print_it_masked_watchpoint): New function.
3579 (masked_watchpoint_breakpoint_ops): Install new methods.
3580 (watch_command_1): Adjust to pass the right breakpoint_ops to
3581 set_raw_breakpoint_without_location rather than setting it
3582 manually later. Record the current pspace.
3583 (print_it_exception_catchpoint): Adjust to take a bpstat as
3585 (gnu_v3_exception_catchpoint_ops): Install new methods.
3586 (say_where): New function.
3587 (null_re_set, null_check_status, null_works_in_software_mode)
3588 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3590 (bp_location_ops): New global.
3591 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3592 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3593 (bkpt_check_status, bkpt_resources_needed)
3594 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3595 (bkpt_print_recreate): New functions.
3596 (bkpt_breakpoint_ops): New global.
3597 (tracepoint_re_set, tracepoint_insert_location)
3598 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3599 (tracepoint_check_status, tracepoint_works_in_software_mode)
3600 (tracepoint_print_it, tracepoint_print_one_detail)
3601 (tracepoint_print_mention, tracepoint_print_recreate): New
3603 (tracepoint_breakpoint_ops): New global.
3604 (delete_breakpoint): Always call the breakpoint's dtor method, and
3605 remove the default handling from here.
3606 (breakpoint_re_set_default): Make static.
3607 (breakpoint_re_set_one): Always call the breakpoints re_set
3608 method, and remove the default handling from here.
3609 (trace_command, ftrace_command, strace_command)
3610 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3611 to create_breakpoint.
3612 (save_breakpoints): Always call the breakpoint's print_recreate
3613 method, and remove the default handling from here.
3615 * ada-lang.c (dtor_exception): Call the base dtor.
3616 (re_set_exception): Call the base method.
3617 (print_it_exception, print_it_catch_exception): Adjust to take a
3619 (catch_exception_breakpoint_ops): Install methods.
3620 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3622 (catch_exception_unhandled_breakpoint_ops): Install methods.
3623 (print_it_catch_assert): Adjust to take a bpstat as argument.
3624 (catch_assert_breakpoint_ops): Install methods.
3626 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3627 to take a bpstat as argument.
3628 (enum print_stop_action): Add describing comments to each enum
3630 (breakpoint_re_set_default): Delete declaration.
3631 (null_re_set, null_works_in_software_mode, null_resources_needed)
3632 (null_check_status, null_print_one_detail): Declare.
3633 (bkpt_breakpoint_ops): Declare.
3634 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3635 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3636 (bkpt_check_status, bkpt_resources_needed)
3637 (bkpt_works_in_software_mode, bkpt_print_it)
3638 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3641 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3642 bkpt_breakpoint_ops.
3643 * python/py-breakpoint.c (bppy_init): Ditto.
3645 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3647 * MAINTAINERS (Write After Approval): Add myself to the list.
3649 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3651 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3653 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3655 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3656 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3657 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3659 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3660 (struct i386_debug_reg_state): New.
3661 (i386_init_dregs): New.
3663 (i386_cleanup_dregs): Use i386_init_dregs.
3664 (i386_show_dr): Add state parameter and adjust.
3665 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3667 (i386_remove_aligned_watchpoint): Likewise.
3668 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3669 (i386_update_inferior_debug_regs): New.
3670 (i386_insert_watchpoint): Work on a local mirror of the debug
3671 registers, and only update the inferior on success.
3672 (i386_remove_watchpoint): Ditto.
3673 (i386_region_ok_for_watchpoint): Adjust.
3674 (i386_stopped_data_address): Adjust.
3675 (i386_insert_hw_breakpoint): Adjust.
3676 (i386_remove_hw_breakpoint): Adjust.
3678 2011-07-22 Tom Tromey <tromey@redhat.com>
3680 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3681 from amd64_pseudo_register_read. Change arguments. Call
3682 mark_value_bytes_unavailable when needed.
3683 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3684 set_gdbarch_pseudo_register_read.
3685 * sentinel-frame.c (sentinel_frame_prev_register): Use
3686 regcache_cooked_read_value.
3687 * regcache.h (regcache_cooked_read_value): Declare.
3688 * regcache.c (regcache_cooked_read_value): New function.
3689 (regcache_cooked_read): Call
3690 gdbarch_pseudo_register_read_value if available.
3691 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3692 (i386_pseudo_register_read): Remove.
3693 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3694 i386_pseudo_register_read. Change arguments. Call
3695 mark_value_bytes_unavailable when needed.
3696 (i386_pseudo_register_read_value): New function.
3697 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3698 not set_gdbarch_pseudo_register_read.
3699 * gdbarch.sh (pseudo_register_read_value): New method.
3700 * gdbarch.c, gdbarch.h: Rebuild.
3701 * findvar.c (value_from_register): Call get_frame_register_value.
3703 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3705 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3707 (display_gdb_prompt): Likewise.
3708 (change_annotation_level): Likewise.
3709 (push_prompt): Likewise.
3710 (pop_prompt): Likewise.
3711 (handle_stop_sig): Use get_prompt with a level.
3712 * top.c (command_loop): Use get_prompt with a level.
3713 (set_async_annotation_level): Use set_prompt with a level.
3714 (get_prefix): New function.
3715 (set_prefix): Ditto.
3716 (set_suffix): Ditto.
3717 (get_suffix): Ditto.
3718 (get_prompt): Accept a level argument.
3719 (set_prompt): Accept a level argument. Free old prompts. Set
3720 new_async_prompt if level is 0.
3721 (init_main): Use set_prompt with a level. Do not set
3723 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3724 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3725 Modify set_prompt, get_prompt to account for levels.
3726 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3728 * python/python.c (before_prompt_hook): Use set_prompt.
3730 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3732 * defs.h: Add guard against inclusion in gdbserver.
3733 (struct ptid, ptid_t): Move to common/ptid.h.
3734 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3735 xsnprintf, internal_error): Move to common/common-utils.h.
3737 * gdb_assert.h: Move into common/ sub-directory.
3738 * gdb_locale.h: Ditto.
3739 * gdb_dirent.h: Ditto.
3740 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3741 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3742 Move into common/ptid.h.
3743 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3744 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3745 Change nomem to malloc_failure.
3746 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3747 * utils.c (nomem): Rename to malloc_failure.
3748 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3749 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3750 (gdb_buildargv): Change nomem to malloc_failure.
3751 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3752 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3753 ptid_is_pid): Move into common/ptid.c.
3754 (initialize_infrun): Delete initialization of null_ptid and
3756 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3757 linux_common_xfer_osdata.
3758 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3759 common/ptid.c and common/buffer.c.
3760 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3761 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3762 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3763 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3765 * common/gdb_assert.h: New.
3766 * common/gdb_dirent.h: New.
3767 * common/gdb_locale.h: New.
3768 * common/buffer.c: New.
3769 * common/buffer.h: New.
3770 * common/ptid.c: New.
3771 * common/ptid.h: New.
3772 * common/xml-utils.c: New.
3773 * common/xml-utils.h: New.
3774 * common/common-utils.c: New.
3775 * common/common-utils.h: New.
3776 * common/linux-osdata.c: New.
3777 * common/linux-osdata.h: New.
3778 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3779 * config/arm/linux.mh (NATDEPFILES): Ditto.
3780 * config/i386/linux.mh (NATDEPFILES): Ditto.
3781 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3782 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3783 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3784 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3785 * config/mips/linux.mh (NATDEPFILES): Ditto.
3786 * config/pa/linux.mh (NATDEPFILES): Ditto.
3787 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3788 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3789 * config/s390/s390.mh (NATDEPFILES): Ditto.
3790 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3791 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3792 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3794 2011-07-21 Matt Rice <ratmice@gmail.com>
3796 * NEWS: Add info macros and info definitions commands.
3798 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3800 * NEWS: Document Python prompt substitution hook.
3802 2011-07-18 Matt Rice <ratmice@gmail.com>
3805 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3806 * macrotab.c (foreach_macro): Ditto.
3807 (foreach_macro_in_scope): Ditto.
3808 * macrocmd.c (print_macro_callback): New function.
3809 (info_macro_command): Move some code to print_macro_definition.
3810 (print_macro_definition): New function.
3811 (print_one_macro): Add new arguments to callback.
3812 (info_definitions_command): New function.
3813 (info_macros_command): Ditto.
3814 (_initialize_macrocmd): Add info macros and info definitions commands.
3815 * symtab.c (add_macro_name): Add new arguments to callback.
3817 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3818 Tom Tromey <tromey@redhat.com>
3820 * top.c (set_prompt): Rewrite to free previous prompt, free
3821 asynch_new_prompt and set both on new prompts.
3822 * event-top.c (display_gdb_prompt): Add prompt substitution
3824 * python/python.c (before_prompt_hook): New function.
3826 2011-07-20 Matt Rice <ratmice@gmail.com>
3828 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3829 arguments to store_unsigned_integer.
3831 2011-07-20 Tom Tromey <tromey@redhat.com>
3833 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3834 in some declaration-only cases.
3836 2011-07-18 Tom Tromey <tromey@redhat.com>
3839 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3840 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3841 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3842 <debug_type_section>: New field.
3843 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3844 (load_cu): Use appropriate section.
3845 (create_signatured_type_table_from_index): Add 'section'
3847 (dwarf2_read_index): Only allow a single .debug_types section.
3848 (dw2_get_file_names): Use appropriate section.
3849 (read_type_comp_unit_head): Add 'section' argument.
3850 (create_debug_types_hash_table): Loop over all .debug_types
3852 (init_cu_die_reader): Use appropriate section.
3853 (process_psymtab_comp_unit, load_partial_comp_unit)
3854 (load_full_comp_unit, read_die_and_children, find_partial_die)
3855 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3856 (lookup_signatured_type_at_offset): Add 'section' argument.
3857 (read_signatured_type_at_offset): Add 'sect' argument.
3858 (read_signatured_type): Use appropriate section.
3859 (set_die_type, get_die_type_at_offset): Update.
3860 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3862 (write_psymtabs_to_index): Don't allow index with more than one
3863 .debug_types section.
3865 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3867 Fix crash if referenced CU is aged out.
3868 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3869 xfree of block.data.
3870 (indirect_pieced_value): New variable back_to, use to for xfree of
3872 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3874 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3875 (load_cu): New function from ...
3876 (dw2_do_instantiate_symtab): ... the code here ...
3877 (process_full_comp_unit): ... and here.
3878 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3881 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3883 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3886 2011-07-19 Gary Benson <gbenson@redhat.com>
3888 * infrun.c (struct execution_control_state): New member
3889 stop_func_filled_in.
3890 (clear_stop_func, fill_in_stop_func): New functions.
3891 (handle_inferior_event): Call clear_stop_func rather than
3892 manipulating the execution control state directly.
3893 Call fill_in_stop_func lazily as required rather than
3894 directly calling find_pc_partial_function in all cases.
3896 2011-07-18 Tom Tromey <tromey@redhat.com>
3898 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3899 checking for variable-sized array.
3901 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3903 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3904 of supported languages.
3905 * varobj.c: Add top definitions and basic implementation of the
3906 following callbacks: ada_number_of_children, ada_name_of_variable,
3907 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3908 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3909 (languages): Register Ada-specific callbacks.
3910 (variable_language): Add the Ada case in the language setter switch.
3912 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3914 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3916 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3919 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3920 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3921 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3922 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3923 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3924 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3925 (struct dwarf_expr_context_funcs): New, move here methods from ...
3926 (struct dwarf_expr_context): ... here. New fields funcs.
3927 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3928 (dwarf_expr_ctx_funcs): New.
3929 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3930 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3931 (needs_frame_ctx_funcs): New.
3932 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3934 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3936 * MAINTAINERS (Write After Approval): Add myself to the list.
3938 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3940 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3941 that CIE pointer of an FDE really points to a CIE .
3943 2011-07-15 Hui Zhu <teawater@gmail.com>
3945 * remote.c (remote_get_trace_status): Add comments.
3947 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 Code cleanup - constify struct lval_funcs.
3950 * dwarf2loc.c (pieced_value_funcs): Make it const.
3951 * infrun.c (siginfo_value_funcs): Likewise.
3952 * opencl-lang.c (opencl_value_funcs): Likewise.
3953 * valops.c (value_assign, value_ind): Make the funcs variable const.
3954 * value.c (struct value): Make location.computed.funcs target const.
3955 Rearrange the comments.
3956 (allocate_computed_value): Make the funcs parameter target const.
3957 (value_computed_funcs): Return the funcs target const.
3958 (value_free, value_copy, set_value_component_location): Make the funcs
3960 * value.h (allocate_computed_value): Make the funcs parameter target
3962 (value_computed_funcs): Return the funcs target const.
3963 * windows-tdep.c (tlb_value_funcs): Make it const.
3965 2011-07-14 Hui Zhu <teawater@gmail.com>
3967 * remote.c (remote_get_trace_status): Initialize p.
3969 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * remote.c (remote_get_trace_status): New variable ex. Put
3973 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3975 2011-07-13 Tom Tromey <tromey@redhat.com>
3977 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3978 value_from_contents for final conversion.
3980 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3983 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3984 Indent prototypes so they do not get into tags.
3986 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 Code cleanup making also optimized out values lazy.
3989 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3990 allocate_optimized_out_value. Twice.
3991 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3992 * findvar.c (read_var_value): Likewise.
3993 * value.c (allocate_optimized_out_value): New function.
3994 * value.h (allocate_optimized_out_value): New declaration.
3996 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 Fix occasional crash of CTRL-C during DWARF read in.
3999 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4001 2011-07-11 Tom Tromey <tromey@redhat.com>
4003 * regcache.c (struct regcache_descr): Fix typo.
4004 * i387-tdep.c (i387_supply_xsave): Fix typo.
4006 2011-07-11 Tom Tromey <tromey@redhat.com>
4008 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4009 (read_file_scope, read_type_unit_scope): Use it.
4011 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4016 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4019 * python/python.c: Set gdbpy_should_print_stack default to off.
4020 (set_python): Deprecate maint set python print-stack to
4022 (_initialize_python): Deprecate maint set/show python print-stack.
4023 Add new prefix command, python. Add new setting, print-backtrace.
4024 * NEWS: Document set python print-stack. Document default change.
4026 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4028 * python/py-inferior.c (infpy_dealloc): New function.
4029 (inferior_to_inferior_object): Return a new object, or a
4030 new reference to the existing object.
4031 (find_thread_object): Cleanup references to inferior.
4032 (delete_thread_object): Ditto.
4033 * python/py-infthread.c (create_thread_object): Do not increment
4034 inferior reference count.
4036 2011-07-08 Tom Tromey <tromey@redhat.com>
4038 * dwarf2loc.c (locexpr_regname): New function.
4039 (locexpr_describe_location_piece): Use it.
4040 (disassemble_dwarf_expression): Add per_cu argument. Use
4042 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4043 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4045 (locexpr_describe_location_1): Add per_cu argument.
4046 (locexpr_describe_location): Update.
4047 (loclist_describe_location): Update.
4049 2011-07-08 Tom Tromey <tromey@redhat.com>
4051 * dwarf2expr.c (execute_stack_op): Add QUIT.
4053 2011-07-07 Hui Zhu <teawater@gmail.com>
4056 2011-07-06 Hui Zhu <teawater@gmail.com>
4057 * remote.c (remote_start_remote): Add TRY_CATCH for
4058 remote_get_trace_status.
4059 * tracepoint.c (disconnect_tracing): Ditto.
4061 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4063 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4064 variables as signed, not unsigned.
4066 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4068 * jit.c (jit_inferior_init): Reformat forward declaration.
4070 2011-07-06 Matt Rice <ratmice@gmail.com>
4072 * MAINTAINERS (Write After Approval): Add myself to the list.
4074 2011-07-06 Hui Zhu <teawater@gmail.com>
4076 * remote.c (remote_start_remote): Add TRY_CATCH for
4077 remote_get_trace_status.
4078 * tracepoint.c (disconnect_tracing): Ditto.
4080 2011-07-05 Tom Tromey <tromey@redhat.com>
4082 * symtab.c (operator_chars): Now static.
4083 * linespec.c (operator_chars): Don't declare.
4085 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4087 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4089 2011-07-05 Tom Tromey <tromey@redhat.com>
4091 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4092 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4093 (TYPE_CPLUS_REALLY_JAVA): New macro.
4094 * dwarf2read.c (process_structure_scope): Set
4095 TYPE_CPLUS_REALLY_JAVA.
4097 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4099 * ada-lang.c: Fix typos.
4100 * amd64-tdep.c: Likewise.
4101 * breakpoint.c: Likewise.
4102 * cli/cli-decode.c: Likewise.
4103 * findcmd.c: Likewise.
4104 * inline-frame.c: Likewise.
4105 * mi/mi-main.c: Likewise.
4106 * minsyms.c: Likewise.
4107 * monitor.c: Likewise.
4108 * monitor.h: Likewise.
4109 * prologue-value.c: Likewise.
4110 * reverse.c: Likewise.
4111 * s390-tdep.c: Likewise.
4113 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4115 * jit.c (jit_inferior_init): Forward declare.
4116 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4118 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4120 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4122 2011-07-04 Tristan Gingold <gingold@adacore.com>
4124 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4125 (tcb_fieldno): Add activation_link field.
4126 (get_known_tasks_addr): Moved and rewritten.
4127 (get_tcb_types_info): Set activation_link field.
4128 (read_known_tasks_array): Add parameter. Rewritten.
4129 (read_known_tasks_list): New function.
4130 (read_known_tasks): New function.
4131 (ada_build_task_list): Call read_known_tasks instead of
4132 read_known_tasks_array.
4133 * ravenscar-thread.c: Add first_task_name constant.
4134 (has_ravenscar_runtime): Check for task list too.
4136 2011-07-04 Tristan Gingold <gingold@adacore.com>
4138 * ada-tasks.c: Renames fieldno to actb_fieldno.
4139 (ada_get_task_number): Indentation.
4140 (get_tcb_types_info): Remove all parameters. Write directly
4142 (ptid_from_atcb_common): Adjust.
4143 (read_atcb): Adjust.
4145 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4147 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4149 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4151 * ui-out.c (ui_out_field_core_addr): Mention that the function
4152 description is in the header file.
4153 * ui-out.h (ui_out_field_core_addr): Document function.
4155 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4157 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4158 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4160 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4162 * symtab.c (expand_line_sal): Remove empty line.
4164 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4166 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4167 same way as ELFOSABI_NONE.
4168 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4170 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4172 * breakpoint.c: Fix typos in comments.
4173 * linespec.c: Likewise.
4174 * symtab.c: Likewise.
4176 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4178 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4179 section in separate object files.
4181 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4183 Fix false GCC warning.
4184 * linespec.c (decode_line_1): Initialize values.
4186 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4188 * linespec.c (find_method): Accept the function type automatically only
4189 if it was specified with parameter types.
4191 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4193 Stop on first linespec terminator instead of eating what we can.
4194 * linespec.c (is_linespec_boundary): New function.
4195 (name_end): Remove function.
4196 (keep_name_info): New parameter on_boundary, replace the body.
4197 (decode_line_1): Provide the parameter to keep_name_info.
4198 (decode_compound): Likewise. Drop the trailing java return type
4201 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4203 Fall back linespec to minimal symbols.
4204 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4205 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4206 (find_method, symbol_found): Change error to cplusplus_error.
4208 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4212 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4213 Tom Tromey <tromey@redhat.com>
4215 * dwarf2read.c (check_physname): New variable.
4216 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4217 (show_check_physname): New function.
4218 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4220 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4222 * machoread.c (macho_symfile_read): Delete OBE comment.
4224 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4226 * machoread.c (struct macho_oso_data): Delete.
4227 (current_oso): Delete.
4228 (macho_relocate_common_syms): New function, mostly extracted
4230 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4231 Remove code that sets and unset current_oso.
4232 (macho_symfile_relocate): Delete handling of common symbols,
4233 now moved to macho_relocate_common_syms.
4235 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4237 * darwin-nat.c (darwin_ptrace): Add documentation.
4238 Set errno to zero before calling ptrace. If ptrace returns
4239 -1 and errno is zero, then change then return zero.
4240 (darwin_kill_inferior): Issue a warning instead of triggering
4241 a failed assertion when the PT_KILL ptrace operations returned
4244 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4246 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4247 only when inf->private->no_ptrace.
4249 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4251 * ada-lang.c (print_it_exception): Print temporary catchpoints
4252 as "Temporary catchpoint".
4253 (print_mention_exception): Likewise.
4255 2011-07-01 Tom Tromey <tromey@redhat.com>
4257 * jv-lang.c (java_language_defn): Use java_printchar,
4259 (java_get_encoding): New function.
4260 (java_emit_char): Use generic_emit_char.
4261 (java_printchar): New function.
4262 (java_printstr): Likewise.
4264 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4266 * ada-typeprint.c (print_record_type): If unable to decode
4267 the name of the parent type, use the encoded name.
4269 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4271 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4272 pointer to constrained packed array type output.
4273 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4274 packed array output.
4276 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4278 * ada-typeprint.c (print_array_type): removed if condition on show
4279 being negative for bounds printing.
4281 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4283 * ada-lang.c (ada_identical_enum_types_p): New function.
4284 (symbols_are_identical_enums): New function.
4285 (remove_extra_symbols): Do nothing if NSYMS < 2.
4286 Use symbols_are_identical_enums.
4288 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4290 * ada-valprint.c (ada_value_print): Handle typedefs.
4292 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4294 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4296 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4298 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4299 (decode_constrained_packed_array): Likewise.
4300 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4302 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4304 * ada-exp.y (convert_char_literal): Handle typedef types.
4306 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4308 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4310 2011-06-30 Tom Tromey <tromey@redhat.com>
4312 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4313 * valops.c (find_overload_match): Call do_cleanups on early exit
4315 * solib.c (solib_find): Call do_cleanups on early exit path.
4317 2011-06-30 Tom Tromey <tromey@redhat.com>
4319 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4320 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4321 return paths. Defer final do_cleanups until last return.
4322 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4325 2011-06-30 Tom Tromey <tromey@redhat.com>
4327 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4329 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4331 * MAINTAINERS (Write After Approval): Add myself to the list.
4333 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4335 Disable epilogue unwinders on recent GCCs.
4336 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4337 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4338 * dwarf2read.c (process_full_comp_unit): Initialize
4339 EPILOGUE_UNWIND_VALID.
4340 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4341 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4342 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4344 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4346 Code cleanup - reformatting.
4347 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4348 (producer_is_gcc_ge_4): ... here, change the return value.
4349 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4352 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4354 Fix non-only rename list for Fortran modules import.
4355 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4356 cp_add_using_directive caller.
4357 (cp_add_using_directive): New parameter excludes, describe it. New
4358 variables ix and param. Compare if also excludes match. Allocate NEW
4359 with variable size, initialize EXCLUDES there.
4360 (cp_lookup_symbol_imports): New variable excludep, test
4361 current->EXCLUDES with it.
4362 * cp-support.h: Include vec.h.
4363 (struct using_direct): New field excludes, describe it.
4364 (DEF_VEC_P (const_char_ptr)): New.
4365 (cp_add_using_directive): New parameter excludes.
4366 * defs.h (const_char_ptr): New typedef.
4367 * dwarf2read.c (read_import_statement): New variables child_die,
4368 excludes and cleanups, read in excludes.
4369 (read_namespace): Adjust the cp_add_using_directive caller.
4371 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4374 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4375 negative comparisons.
4377 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4379 * mi/mi-main.c (mi_cmd_list_features): Emit
4380 breakpoint-notifications.
4382 2011-06-29 Tom Tromey <tromey@redhat.com>
4385 * valprint.h (generic_emit_char, generic_printstr): Declare.
4386 * valprint.c (wchar_printable, append_string_as_wide)
4387 (print_wchar): Move from c-lang.c.
4388 (generic_emit_char): New function; mostly taken from c_emit_char.
4389 (generic_printstr): New function; mostly taken from c_printstr.
4390 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4391 represented as arrays.
4392 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4394 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4395 identically to TYPE_CODE_INT.
4396 * f-lang.c (f_get_encoding): New function.
4397 (f_emit_char): Use generic_emit_char.
4398 (f_printchar): Replace comment.
4399 (f_printstr): Use generic_printstr.
4400 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4401 "character" types specially.
4402 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4404 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4406 (c_emit_char): Call generic_emit_char.
4407 (c_printstr): Call generic_printstr.
4409 2011-06-29 Gary Benson <gbenson@redhat.com>
4411 * breakpoint.c (bpstat_what): Removed duplicated case.
4413 2011-06-28 Tom Tromey <tromey@redhat.com>
4415 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4417 2011-06-27 Tom Tromey <tromey@redhat.com>
4419 * valops.c (find_overload_match): Call do_cleanups before early
4421 * top.c (execute_command): Call do_cleanups before early return.
4422 (command_loop): Likewise.
4423 * stack.c (backtrace_command): Make a null cleanup early. Don't
4424 conditionally call do_cleanups.
4425 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4427 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4428 so cleanups are always run.
4429 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4430 * findcmd.c (parse_find_args): Call do_cleanups on early return
4432 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4433 Don't conditionally call do_cleanups.
4434 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4437 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4439 * MAINTAINERS (Write After Approval): Use default email address.
4441 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4443 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4445 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4447 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4448 saved_regs_mask and copied_regs_mask fields.
4449 (sparc_record_save_insn): New prototype.
4450 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4451 (sparc_record_save_insn): New function.
4452 (sparc_analyze_prologue): Add head comment. Recognize store insns
4453 of call-saved registers. Use OFFSET consistently. Recognize flat
4454 frames and cache their settings.
4455 (sparc32_skip_prologue): Handle flat frames.
4456 (sparc_frame_cache): Add frame_offset to the base address.
4457 (sparc32_frame_cache): Adjust to new frame description.
4458 (sparc32_frame_prev_register): Likewise.
4459 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4460 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4461 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4462 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4463 frame by calling sparc_record_save_insn.
4464 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4465 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4466 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4468 2011-06-27 Tristan Gingold <gingold@adacore.com>
4470 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4471 field by map_addr and map_len.
4472 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4473 (munmap_section_buffer): Likewise.
4475 2011-06-24 Tom Tromey <tromey@redhat.com>
4477 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4478 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4479 * python/python.c (gdbpy_parameter): Make 'arg' const.
4480 (execute_gdb_command): Likewise.
4481 (gdbpy_decode_line): Likewise. Copy it.
4482 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4483 (gdbpy_write): Make 'arg' const.
4484 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4486 (gdbpy_lookup_type): Likewise.
4487 * python/py-prettyprint.c (print_children): Make 'name' const.
4488 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4489 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4491 * python/py-function.c (fnpy_init): Make 'name' const.
4492 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4493 (gdbpy_string_to_argv): Make 'input' const.
4494 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4496 * gdbtypes.h (lookup_typename): Update.
4497 * gdbtypes.c (lookup_typename): Make 'name' const.
4498 (lookup_struct): Likewise.
4499 (lookup_union): Likewise.
4500 (lookup_enum): Likewise.
4502 2011-06-24 Tom Tromey <tromey@redhat.com>
4504 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4505 gdb_thread_db.h. Move all common/ entries to be together.
4506 (TAGS): Don't depend on DEPFILES.
4508 2011-06-23 Yao Qi <yao@codesourcery.com>
4510 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4511 * remote.c (remote_start_remote): ... here.
4512 * monitor.c (monitor_open): ... here.
4514 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4516 * gdbtypes.c (append_composite_type_field_aligned): Fix
4517 calculation of bit position based on alignment.
4519 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4521 * breakpoint.c (bpstat_stop_status): Call the check_status
4522 breakpoint_ops method.
4523 (print_one_breakpoint_location): Also print the condition for Ada
4524 exception catchpoints.
4525 (allocate_bp_location): New, factored out from
4526 allocate_bp_location.
4527 (allocate_bp_location): Adjust. Call the owner breakpoint's
4528 allocate_location method, if there is one.
4529 (free_bp_location): Call the locations's dtor method, if there is
4531 (init_raw_breakpoint_without_location): New breakpoint_ops
4533 (set_raw_breakpoint_without_location): Adjust.
4534 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4535 (set_raw_breakpoint): Adjust.
4536 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4537 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4538 re_set and check_status methods.
4539 (init_catchpoint): Don't memset, initialize thread, addr_string
4540 and enable_state. Pass the ops down to init_raw_breakpoint.
4541 (install_catchpoint): Rename to ...
4542 (install_breakpoint): ... this, and make extern.
4543 (create_fork_vfork_event_catchpoint): Adjust.
4544 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4545 re_set and check_status methods.
4546 (create_syscall_event_catchpoint): Adjust.
4547 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4548 (masked_watchpoint_breakpoint_ops): Install NULL
4549 allocate_location, re_set and check_status methods.
4550 (catch_exec_command_1): Adjust.
4551 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4552 re_set and check_status methods.
4553 (create_ada_exception_breakpoint): Rename to ...
4554 (init_ada_exception_breakpoint): ... this. Add a struct
4555 breakpoint parameter, and delete the exp_string, cond_string and
4556 cond parameters. Use init_raw_breakpoint, and don't install or
4557 mention the breakpoint yet. Don't clear breakpoint fields that
4558 init_raw_breakpoint already clears.
4559 (re_set_breakpoint): Delete, split into ...
4560 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4562 (breakpoint_re_set_one): Call the breakpoint's
4563 breakpoint_ops->re_set implementation, if there's one. Adjust.
4564 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4565 (struct bp_location_ops): New type.
4566 (struct bp_location): New field `ops'.
4567 (struct breakpoint_ops): New `allocate_location', `re_set' and
4568 `check_status' fields. Make `breakpoint_hit''s description match
4570 (init_bp_location): Declare.
4571 (breakpoint_re_set_default): Declare.
4572 (create_ada_exception_breakpoint): Rename to ...
4573 (init_ada_exception_breakpoint): ... this. Add a struct
4574 breakpoint parameter, and delete the exp_string, cond_string and
4576 (install_breakpoint): Declare.
4577 * ada-lang.c: Include exceptions.h.
4578 <Ada exceptions description>: Update.
4579 (struct ada_catchpoint_location): New type.
4580 (ada_catchpoint_location_dtor): New function.
4581 (ada_catchpoint_location_ops): New global.
4582 (ada_catchpoint): New type.
4583 (create_excep_cond_exprs): New function.
4584 (dtor_exception, allocate_location_exception, re_set_exception)
4585 (should_stop_exception, check_status_exception): New functions.
4586 (print_one_exception, print_mention_exception)
4587 (print_recreate_exception): Adjust.
4588 (dtor_catch_exception, allocate_location_catch_exception)
4589 (re_set_catch_exception, check_status_catch_exception): New
4591 (catch_exception_breakpoint_ops): Install them.
4592 (dtor_catch_exception_unhandled)
4593 (allocate_location_catch_exception_unhandled)
4594 (re_set_catch_exception_unhandled)
4595 (check_status_catch_exception_unhandled): New functions.
4596 (catch_exception_unhandled_breakpoint_ops): Install them.
4597 (dtor_catch_assert, allocate_location_catch_assert)
4598 (re_set_catch_assert, check_status_catch_assert): New functions.
4599 (catch_assert_breakpoint_ops): Install them.
4600 (ada_exception_catchpoint_p): Delete.
4601 (catch_ada_exception_command_split)
4602 (ada_exception_catchpoint_cond_string): Rename exp_string
4603 parameter to excep_string. Adjust.
4604 (ada_parse_catchpoint_condition): Delete.
4605 (ada_exception_sal): Rename the exp_string parameter to
4606 excep_string. Delete the cond_string and cond parameters.
4608 (ada_decode_exception_location): Rename the exp_string parameter
4609 to excep_string. Delete the cond_string and cond parameters.
4611 (create_ada_exception_catchpoint): New function.
4612 (catch_ada_exception_command, ada_decode_assert_location)
4613 (catch_assert_command): Adjust.
4614 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4616 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4618 * ada-lang.c: Include arch-utils.h.
4619 (ada_decode_exception_location): Make static.
4620 (catch_ada_exception_command): Moved here from breakpoint.c.
4621 (ada_decode_assert_location): Make static.
4622 (catch_assert_command): Moved here from breakpoint.c.
4623 (_initialize_ada_lang): Install the exception and assert
4624 catchpoint commands here.
4625 * ada-lang.h (ada_decode_exception_location)
4626 (ada_decode_assert_location): Delete declarations.
4627 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4629 (create_ada_exception_breakpoint): Make extern.
4630 (catch_ada_exception_command, catch_assert_command): Moved to
4632 (add_catch_command): Make extern.
4633 (_initilize_breakpoint): Don't install the exception and assert
4634 catchpoint commands here.
4635 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4637 (add_catch_command, create_ada_exception_breakpoint): Declare.
4639 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4641 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4642 the breakpoint to the breakpoint chain here.
4643 (set_raw_breakpoint_without_location): Add the breakpoint to the
4644 breakpoint chain here.
4645 (init_raw_breakpoint): Adjust comments.
4646 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4648 (init_catchpoint): Don't set the catchpoint's breakpoint number
4650 (install_catchpoint): New function.
4651 (create_fork_vfork_event_catchpoint)
4652 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4653 use install_catchpoint.
4655 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4657 * breakpoint.c (create_catchpoint_without_mention)
4658 (create_catchpoint): Delete.
4660 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4662 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4663 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4664 reference to exec_pathname.
4665 (struct exec_catchpoint): New type.
4666 (dtor_catch_exec): New function.
4667 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4668 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4669 (catch_exec_command_1): Adjust to use init_catchpoint.
4670 (delete_breakpoint): Remove reference to exec_pathname.
4672 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4674 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4675 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4676 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4677 reference to syscalls_to_be_caught.
4678 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4680 (struct syscall_catchpoint): New type.
4681 (dtor_catch_syscall): New function.
4682 (insert_catch_syscall, remove_catch_syscall)
4683 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4684 (print_recreate_catch_syscall): Adjust.
4685 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4686 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4687 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4688 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4689 (masked_watchpoint_breakpoint_ops)
4690 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4691 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4692 there is one. Remove references to syscalls_to_be_caught.
4693 (catching_syscall_number): Adjust.
4694 * ada-lang.c (catch_exception_breakpoint_ops)
4695 (catch_exception_unhandled_breakpoint_ops)
4696 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4698 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4700 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4702 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4703 reference to forked_inferior_pid.
4704 (struct fork_catchpoint): New type.
4705 (breakpoint_hit_catch_fork, print_it_catch_fork)
4706 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4707 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4708 (create_fork_vfork_event_catchpoint): Adjust to use
4711 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4713 * breakpoint.c (add_to_breakpoint_chain)
4714 (init_raw_breakpoint_without_location): New functions, factored
4716 (set_raw_breakpoint_without_location): ... this one.
4717 (init_raw_breakpoint): New function, factored out from
4718 set_raw_breakpoint and adjusted to use
4719 init_raw_breakpoint_without_location.
4720 (set_raw_breakpoint): Adjust.
4721 (init_catchpoint): New function, factored out from
4722 create_catchpoint_without_mention and adjusted to use
4723 init_raw_breakpoint.
4724 (create_catchpoint_without_mention): Adjust.
4726 2011-06-22 Tom Tromey <tromey@redhat.com>
4728 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4729 argument of 0 specially.
4731 2011-06-22 Yao Qi <yao@codesourcery.com>
4733 * infrun.c (handle_inferior_event): Remove write-only local variable
4734 `sw_single_step_trap_p'.
4736 2011-06-20 Tom Tromey <tromey@redhat.com>
4738 * symtab.c (lookup_language_this): End loop if block is NULL.
4740 2011-06-17 Tom Tromey <tromey@redhat.com>
4742 * valops.c (value_of_this): Use lookup_language_this.
4743 * symtab.h (lookup_language_this): Declare.
4744 * symtab.c (lookup_language_this): New function.
4745 (lookup_symbol_aux): Use lookup_language_this.
4746 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4748 2011-06-17 Tom Tromey <tromey@redhat.com>
4750 * value.h (value_of_this): Update.
4751 (value_of_local): Remove.
4752 * valops.c (value_of_this): Rename from value_of_local. Change
4754 * p-exp.y (exp): Update.
4755 (variable): Likewise.
4756 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4758 2011-06-17 Tom Tromey <tromey@redhat.com>
4760 * valops.c (value_of_local): Complain if NAME is NULL.
4761 * std-operator.def (OP_OBJC_SELF): Remove.
4762 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4763 * objc-exp.y (name_not_typename): Use OP_THIS.
4764 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4766 <OP_OBJC_SELF>: Remove.
4767 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4769 2011-06-16 Tristan Gingold <gingold@adacore.com>
4771 * python/py-events.h (gdb_py_events): Make it extern.
4772 * python/py-evtregistry.c (gdb_py_events): Declare.
4774 2011-06-16 Hui Zhu <teawater@gmail.com>
4776 * remote.c (remote_trace_set_readonly_regions): Add check for
4777 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4780 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4782 * arm-linux-tdep.c: Include "auxv.h".
4784 (ARM_LINUX_SIZEOF_VFP): Define.
4785 (arm_linux_supply_vfp): New function.
4786 (arm_linux_collect_vfp): Likewise.
4787 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4788 (arm_linux_fpa_regset_sections): New variable.
4789 (arm_linux_vfp_regset_sections): Likewise.
4790 (arm_linux_core_read_description): New function.
4791 (arm_linux_init_abi): Install arm_linux_core_read_description and
4792 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4793 appropriate for the architecture.
4794 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4795 (tdesc_arm_with_m): Declare.
4796 (tdesc_arm_with_iwmmxt): Likewise.
4797 (tdesc_arm_with_vfpv2): Likewise.
4798 (tdesc_arm_with_vfpv3): Likewise.
4799 (tdesc_arm_with_neon): Likewise.
4800 * arm-linux-nat.c: Move features/*.c includes ...
4801 * arm-tdep.c: ... here.
4802 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4803 target description data structures ...
4804 * arm-tdep.c (_initialize_arm_tdep): ... here.
4805 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4806 HWCAP_VFPv3D16): Move definitions ...
4807 * arm-linux-tdep.h: ... here.
4809 2011-06-15 Hui Zhu <teawater@gmail.com>
4811 * remote.c (remote_trace_set_readonly_regions): Add a check for
4814 2011-06-14 Tom Tromey <tromey@redhat.com>
4816 * coffread.c (coffread_objfile): Rename from current_objfile.
4817 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4818 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4820 2011-06-14 Tom Tromey <tromey@redhat.com>
4822 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4823 (class_symtab): Remove.
4824 (jv_dynamics_progspace_key): New global.
4825 (jv_per_objfile_free): Reset program space data. Update assert.
4826 Don't clear globals.
4827 (get_dynamics_objfile): Use and set program space data.
4828 (get_java_class_symtab): Use get_dynamics_objfile.
4829 (add_class_symbol): Likewise.
4830 (java_link_class_type): Likewise.
4831 (java_object_type, jv_clear_object_type, set_java_object_type):
4833 (get_java_object_type): Update. Don't cache result.
4834 (is_object_type): Don't call set_java_object_type.
4835 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4836 initialize jv_dynamics_progspace_key.
4838 2011-06-14 Tom Tromey <tromey@redhat.com>
4840 * symtab.h (current_objfile): Don't declare.
4841 * objfiles.h (current_objfile): Don't declare.
4842 * objfiles.c (current_objfile): Remove.
4843 * mdebugread.c (current_objfile): New file-scope global.
4844 * dbxread.c (current_objfile): New file-scope global.
4845 * coffread.c (current_objfile): New file-scope global.
4847 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4849 * top.h (line): Rename to ...
4850 (saved_command_line): ... this.
4851 (linesize): Rename to ...
4852 (saved_command_line_size): ... this.
4853 * top.c (line): Rename to ...
4854 (saved_command_line): ... this.
4855 (linesize): Rename to ...
4856 (saved_command_line_size): ... this.
4857 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4858 * event-top.c (command_line_handler): Adjust.
4859 * main.c (captured_main): Adjust.
4861 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4863 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4864 get_frame_func instead of get_frame_pc to determine the code
4865 address used to construct the frame ID.
4866 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4867 (i386_epilogue_frame_this_id): Likewise.
4868 (i386_epilogue_frame_prev_register): New function.
4869 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4870 (i386_stack_tramp_frame_sniffer): Fix coding style.
4871 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4872 (i386_gdbarch_init): Fix comments.
4874 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4876 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4877 instruction when walking back through the instruction stream.
4879 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4881 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4882 fullname parameters order.
4884 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4887 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4889 * psymtab.c (map_symbol_filenames_psymtab)
4890 (map_partial_symbol_filenames): Likewise.
4891 * psymtab.h: Include symfile.h.
4892 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4893 * symfile.h (symbol_filename_ftype): New.
4894 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4895 map_symbol_filenames, clarify more the naming in comment.
4897 2011-06-07 Doug Evans <dje@google.com>
4899 * cc-with-index.sh: Fix typos in comment.
4900 Look for ../../gdb, for fullname.exp.
4902 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4903 Pedro Alves <pedro@codesourcery.com>
4905 * cli/cli-cmds.c (shell_escape): Use waitpid.
4906 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4908 2011-06-07 Tristan Gingold <gingold@adacore.com>
4910 * xcoffread.c (dwarf2_xcoff_names): New variable.
4911 (aix_process_linenos): Add a guard.
4912 (xcoff_symfile_finish): Free dwarf2.
4913 (xcoff_initial_scan): Add dwarf2 support.
4915 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4917 * infcall.c (run_inferior_call): Don't mask async. Instead force
4918 a synchronous wait, if the target can async.
4920 * target.h (struct target_ops): Delete to_async_mask.
4921 (target_async_mask): Delete.
4922 * target.c (update_current_target): Delete references to to_async_mask.
4923 * linux-nat.c (linux_nat_async_mask_value): Delete.
4924 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4925 to linux_nat_async_mask_value.
4926 (linux_nat_async_mask): Delete.
4927 (linux_nat_async, linux_nat_close): Remove references to
4928 linux_nat_async_mask_value.
4929 * record.c (record_async_mask_value): Delete.
4930 (record_async): Remove references to record_async_mask_value.
4931 (record_async_mask): Delete.
4932 (record_can_async_p, record_is_async_p): Remove references to
4933 record_async_mask_value.
4934 (init_record_ops, init_record_core_ops): Remove references to
4936 * remote.c (remote_async_mask_value): Delete.
4937 (init_remote_ops): Remove reference to remote_async_mask.
4938 (remote_can_async_p, remote_is_async_p): Remove references to
4939 remote_async_mask_value.
4940 (remote_async): Remove references to remote_async_mask_value.
4941 (remote_async_mask): Delete.
4943 * infrun.c (fetch_inferior_event): Don't claim registers changed
4944 if the current thread is already not executing.
4946 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4948 From Stephen Kitt <steve@sk2.org>
4949 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4950 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4952 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4954 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4955 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4957 2011-06-03 Tom Tromey <tromey@redhat.com>
4959 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4961 * python/py-exitedevent.c (create_exited_event_object): Change
4962 type of 'exit_code'. Optionally add exit_code attribute.
4963 (emit_exited_event): Change type of 'exit_code'.
4964 * python/py-event.h (emit_exited_event): Update.
4965 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4966 * infrun.c (handle_inferior_event): Set exit code fields on
4968 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4970 * inferior.c (exit_inferior_1): Initialize new fields.
4972 2011-06-03 Tom Tromey <tromey@redhat.com>
4974 * dwarf2expr.c (get_signed_type): New function.
4975 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4977 2011-06-02 Keith Seitz <keiths@redhat.com>
4979 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4981 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4983 * top.h (simplified_command_loop): Delete declaration.
4985 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4987 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4988 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4990 2011-06-01 Yao Qi <yao@codesourcery.com>
4992 * objfiles.h (obj_section_addr): Update reference to objfile from
4994 (obj_section_endaddr): Likewise.
4996 2011-06-01 Daniel Jacobowitz <drow@false.org>
4998 * MAINTAINERS: Update my email address and affiliation. Also
4999 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5001 2010-05-31 Keith Seitz <keiths@redhat.com>
5004 * linespec.c (get_search_block): New function.
5005 (find_methods): Add FILE_SYMTATB parameter and use it and
5006 get_search_block to pass an appropriate block to
5007 lookup_symbol_in_namespace.
5008 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5009 Check if *ARGPTR starts with a filename first.
5010 If it does, call locate_first_half again to locate the next
5011 "first half" of the linespec.
5012 Pass FILE_SYMTATB to decode_objc and decode_compound.
5013 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5014 (locate_first_half): Stop on the first colon seen.
5015 (decode_compound): Add FILE_SYMTAB parameter.
5016 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5017 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5018 get_search_block with lookup_symbol.
5019 (find_method): Add FILE_SYMTAB parameter and pass it to
5021 (decode_objc): Use get_search_block.
5023 2010-05-31 Keith Seitz <keiths@redhat.com>
5026 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5027 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5028 and CP_ANONYMOUS_NAMESPACE_LEN.
5029 (cp_is_anonymous): Likewise.
5030 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5031 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5032 * dwarf2read.c (namespace_name): Likewise.
5033 (fixup_partial_die): Likewise.
5034 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5035 seen in the input, keep it.
5037 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5039 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5040 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5041 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5042 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5043 * remote.c (_initialize_remote): Register
5044 async_remote_interrupt_twice directly as
5045 sigint_remote_twice_token event.
5047 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5049 * target.h (enum inferior_event_type): Delete INF_ERROR.
5050 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5052 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5054 * interps.c (interp_set): Don't cancel continuations.
5056 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5058 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5060 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5062 * continuations.h (continuation_ftype): Add `err' parameter.
5063 Document parameters.
5064 (do_all_continuations, do_all_continuations_thread)
5065 (do_all_intermediate_continuations)
5066 (do_all_intermediate_continuations_thread)
5067 (do_all_inferior_continuations): Add `err' parameter.
5068 * continuations.c (do_my_continuations_1, do_my_continuations)
5069 (do_all_inferior_continuations, do_all_continuations_ptid)
5070 (do_all_continuations_thread_callback)
5071 (do_all_continuations_thread, do_all_continuations)
5072 (do_all_intermediate_continuations_thread_callback)
5073 (do_all_intermediate_continuations_thread)
5074 (do_all_intermediate_continuations): Add `err' parameter, and pass
5075 it down all the way to the continuations proper.
5076 * inf-loop.c (inferior_event_handler): If fetching an inferior
5077 event throws an error, don't pop the target, and still call the
5078 continuations, but with `err' set. Adjust all other continuation
5080 * breakpoint.c (until_break_command_continuation): Add `err'
5082 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5083 issue another step if `err' is set.
5084 (struct until_next_continuation_args): New.
5085 (until_next_continuation): Add `err' parameter. Adjust.
5086 (until_next_command): Adjust.
5087 (struct finish_command_continuation_args): Add `thread' field.
5088 (finish_command_continuation): Add `err' parameter. Handle it.
5089 (finish_forward): Adjust.
5090 (attach_command_continuation): Add `err' parameter. Handle it.
5091 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5092 cancel the continuations.
5093 * interps.c (interp_set): Adjust to cancel the continuations.
5094 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5095 continuations rather than discarding.
5096 (free_thread): Don't clear thread inferior resources here.
5097 (delete_thread_1): Do it here instead. And do it before removing
5098 the thread from the threads list. Tag the thread as exited before
5099 clearing thread inferior resources.
5101 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5103 * infcall.c (call_function_by_hand): Rephrase error message.
5105 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5107 * defs.h (struct thread_info, struct inferior): Delete forward
5109 * breakpoint.h (struct thread_info): New forward declaration.
5110 * observer.sh (struct inferior): New forward declaration.
5111 * python/python-internal.h (struct inferior): New forward
5114 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5116 * defs.h (struct continuation, continuation_ftype)
5117 (continuation_free_arg_ftype, add_continuation)
5118 (do_all_continuations, do_all_continuations_thread)
5119 (discard_all_continuations, discard_all_continuations_thread)
5120 (add_intermediate_continuation, do_all_intermediate_continuations)
5121 (do_all_intermediate_continuations_thread)
5122 (discard_all_intermediate_continuations)
5123 (discard_all_intermediate_continuations_thread)
5124 (add_inferior_continuation, do_all_inferior_continuations)
5125 (discard_all_inferior_continuations): Move to ...
5126 * continuations.h: ... this new file.
5127 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5128 infcmd.c, inferior.c, infrun.c, interps.c: Include
5131 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5132 Doug Evans <dje@google.com>
5134 Fix PR 10970, PR 12702.
5135 * linux-nat.c (linux_lwp_is_zombie): New function.
5136 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5137 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5139 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5141 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5143 (add_continuation, add_intermediate_continuation)
5144 (add_inferior_continuation): Use them.
5145 * continuations.c (struct continuation): Use them.
5146 (make_continuation_ftype): Delete.
5147 (make_continuation, add_inferior_continuation, add_continuation)
5148 (add_intermediate_continuation): Use continuation_ftype and
5149 continuation_free_arg_ftype. Rename parameters to shorter names.
5151 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5153 * continuations.c (make_continuation): Make it return void.
5154 (do_my_continuations): Rename to ...
5155 (do_my_continuations_1): ... this. Remove old_chain parameter and
5157 (do_my_continuations): New.
5158 (discard_my_continuations): Rename to ...
5159 (discard_my_continuations_1): ... this. Remove old_chain
5160 parameter and adjust.
5161 (discard_my_continuations): New.
5162 (add_inferior_continuation): Simplify.
5163 (do_all_inferior_continuations): Reimplement on top
5164 do_my_continuations.
5165 (discard_all_inferior_continuations): Simplify.
5166 (add_continuation): Simplify.
5167 (do_all_continuations_ptid): Simplify.
5168 (discard_all_continuations_thread_callback): Simplify.
5169 (add_intermediate_continuation): Simplify.
5170 (discard_all_intermediate_continuations_thread_callback):
5173 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5175 * utils.c (struct continuation, add_continuation)
5176 (add_inferior_continuation)
5177 (do_all_inferior_continuations, discard_all_inferior_continuations)
5178 (restore_thread_cleanup, do_all_continuations_ptid)
5179 (do_all_continuations_thread_callback)
5180 (do_all_continuations_thread, do_all_continuations)
5181 (discard_all_continuations_thread_callback)
5182 (discard_all_continuations_thread, discard_all_continuations)
5183 (add_intermediate_continuation)
5184 (do_all_intermediate_continuations_thread_callback)
5185 (do_all_intermediate_continuations_thread)
5186 (do_all_intermediate_continuations)
5187 (discard_all_intermediate_continuations_thread_callback)
5188 (discard_all_intermediate_continuations_thread)
5189 (discard_all_intermediate_continuations): Move to ...
5190 * continuations.c: ... this new file, and adjust to no longer
5191 implement continuations on top of cleanups.
5192 * Makefile.in (SFILES): Add continuations.c.
5193 (COMMON_OBS): Add continuations.o.
5195 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5197 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5198 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5199 Internal error on invalid values.
5200 * reverse.c: Don't handle EXEC_ERROR.
5201 * mi/mi-main.c: Don't handle EXEC_ERROR.
5203 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5205 * record.c: Include event-loop.h, inf-loop.h.
5206 (record_beneath_to_async): New global.
5207 (tmp_to_async): New global.
5208 (record_async_inferior_event_token): New global.
5209 (record_open_1): Don't error out if async is enabled.
5210 (record_open): Handle to_async. Create an async event source in
5212 (record_close): Delete the async event source.
5213 (record_resumed): New global.
5214 (record_execution_dir): New global.
5215 (record_resume, record_core_resume): Set them. Register the
5216 target on the event loop.
5217 (record_wait): Rename to ...
5218 (record_wait_1): ... this. Add more debug output. Handle
5219 TARGET_WNOHANG, and the target beneath returning
5220 TARGET_WAITKIND_IGNORE.
5221 (record_wait): Reimplement on top of record_wait_1.
5222 (record_async_mask_value): New global.
5223 (record_async, record_async_mask, record_can_async_p)
5224 (record_is_async_p, record_execution_direction): New functions.
5225 (init_record_ops, init_record_core_ops): Install new methods.
5226 * infrun.c (fetch_inferior_event): Temporarily switch the global
5227 execution direction to the direction the target was going.
5228 (execution_direction): Change type to int.
5229 * target.c (default_execution_direction): New function.
5230 (update_current_target): Inherit and de_fault
5231 to_execution_direction.
5232 * target.h (struct target_ops) <to_execution_direction>: New
5234 (target_execution_direction): New macro.
5235 * inferior.h (execution_direction): Change type to int.
5237 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5239 * infcall.c (call_function_by_hand): Don't allow calling functions
5240 in reverse execution mode.
5242 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5244 * infcmd.c (finish_command): Allow async finish in reverse.
5246 2011-05-26 Yao Qi <yao@codesourcery.com>
5248 * gdb_thread_db.h: Delete. Move to ...
5249 * common/gdb_thread_db.h: ... here.
5251 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5253 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5254 function's entry point instead of a manually managed momentary
5255 breakpoint, and only ever issue one proceed call.
5256 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5257 doing a reverse-finish, switch to stepi mode, to do another step.
5258 (insert_step_resume_breakpoint_at_sal): Make public.
5259 (normal_stop): No need to save function value return registers if
5261 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5263 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5265 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5266 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5267 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5269 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5270 step-resume breakpoints.
5271 (print_it_typical): Handle bp_hp_step_resume.
5272 (bpstat_what): Ditto.
5273 (bptype_string): Ditto.
5274 (print_one_breakpoint_location): Ditto.
5275 (allocate_bp_location): Ditto.
5277 (breakpoint_re_set_one): Ditto.
5278 * infrun.c (handle_inferior_event): Adjust. Split
5279 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5280 BPSTAT_WHAT_HP_STEP_RESUME.
5281 (insert_step_resume_breakpoint_at_sal): Rename to ...
5282 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5283 parameter. Handle it.
5284 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5285 insert_step_resume_breakpoint_at_sal_1.
5286 (insert_step_resume_breakpoint_at_frame): Rename to ...
5287 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5288 set a high-priority step-resume breakpoint.
5289 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5290 (insert_step_resume_breakpoint_at_caller): Ditto.
5292 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5294 * breakpoint.c (iterate_over_related_breakpoints): New.
5295 (do_map_delete_breakpoint): New.
5296 (delete_command): Pass do_map_delete_breakpoint to
5297 map_breakpoint_numbers.
5298 (do_disable_breakpoint): New.
5299 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5301 (do_enable_breakpoint): Rename to ...
5302 (enable_breakpoint_disp): ... this.
5303 (enable_breakpoint): Adjust.
5304 (do_enable_breakpoint): New.
5305 (enable_once_breakpoint): Delete.
5306 (do_map_enable_breakpoint): New.
5307 (do_map_enable_once_breakpoint): New.
5308 (enable_once_command, enable_delete_command)
5309 (delete_trace_command): Iterate over the breakpoint's related
5312 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5314 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5315 for ALPHA_ZERO_REGNUM.
5316 (alpha_supply_int_regs): Explicitly supply zero as the value for
5317 ALPHA_ZERO_REGNUM in the register cache.
5318 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5320 2011-05-26 Yao Qi <yao@codesourcery.com>
5322 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5324 2011-05-26 Tristan Gingold <gingold@adacore.com>
5326 * symfile.h (struct dwarf2_section_names): New type.
5327 (struct dwarf2_debug_sections): New type.
5328 (dwarf2_has_info): Add parameter.
5329 * dwarf2read.c (dwarf2_elf_names): New variable.
5330 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5331 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5332 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5333 (dwarf2_has_info): Add names parameter. Pass names
5334 to dwarf2_locate_sections.
5335 (section_is_p): Rewrite using the names parameter.
5336 (dwarf2_locate_sections): Use section names from the names parameter.
5337 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5338 * elfread.c (read_psyms): Ditto.
5339 * machoread.c (macho_symfile_read): Ditto.
5341 2011-05-25 Andreas Schwab <schwab@redhat.com>
5344 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5346 2011-05-24 Keith Seitz <keiths@redhat.com>
5349 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5350 (decode_compound): Unconditionally call keep_name_info.
5352 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5354 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5355 scope, clear its command list.
5356 (map_breakpoint_numbers): Don't walk the related breakpoints list
5359 2011-05-24 Tom Tromey <tromey@redhat.com>
5361 * MAINTAINERS: Move Jim Blandy to past maintainers.
5363 2011-05-24 Tristan Gingold <gingold@adacore.com>
5365 * symfile.h (enum dwarf2_section_enum): New type.
5366 (dwarf2_get_section_info): New prototype.
5367 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5368 section_name by sect. Use a switch to select the info.
5369 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5370 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5372 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5374 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5375 shared library event breakpoint if there's no execution.
5377 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5379 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5380 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5382 2011-05-23 Tom Tromey <tromey@redhat.com>
5384 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5387 2011-05-23 Doug Evans <dje@google.com>
5389 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5390 entry for RuntimeError to doc string.
5392 2011-05-23 Jerome Guitton <guitton@adacore.com>
5394 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5395 sequence for probing loops.
5397 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5399 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5402 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5404 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5405 zero as the value for %g0 in the register cache.
5406 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5407 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5409 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5411 * infrun.c (proceed): Set previous_inferior_ptid here.
5412 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5413 inferior_ptid, not null_ptid.
5414 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5415 (fetch_inferior_event): Nor here.
5417 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5419 * inf-loop.c (inferior_event_handler): Only output a message if
5422 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5424 * MAINTAINERS: Update my e-mail address.
5426 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5428 * infrun.c (proceed): Switch the inferior event loop to
5429 INF_EXEC_COMPLETE if the target refused to resume from a
5432 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5434 * infcmd.c: Include "inf-loop.h".
5435 (step_once): When stepping into an inline subroutine, pretend the
5436 target has run. If the target can async, switch the inferior
5437 event loop to INF_EXEC_COMPLETE.
5438 * inferior.h (user_visible_resume_ptid): Declare.
5439 * infrun.c (user_visible_resume_ptid): New function, factored out
5442 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5443 that the current thread is running. Merge async and sync
5446 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5448 * infcmd.c (step_1): Simplify synchronous case.
5450 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5452 * tracepoint.c: Include exceptions.h.
5453 (TFILE_PID): Move higher in file.
5454 (tfile_open): Delay pushing the tfile target until we're assured
5455 the tfile header is present in the file. Wrap reading the initial
5456 newline-terminated lines in TRY_CATCH. Pop the target if the
5457 initial setup failed. Add the tfile's thread immediately
5458 aftwards, before any non-essential setup. Don't skip
5459 post_create_inferior if there are no traceframes present in the
5461 (tfile_close): Remove redundant check for null before xfree call.
5462 (tfile_thread_alive): New function.
5463 (init_tfile_ops): Register it as to_thread_alive callback.
5465 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5467 * tracepoint.c (tfile_open): Delete #if 0'd code.
5469 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5471 Fix -readnow for -gdwarf-4 unused type units.
5472 * dwarf2read.c (struct signatured_type): Remove the field offset.
5473 (create_signatured_type_table_from_index): Remove its initialization.
5474 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5475 instead. Add a complaint call.
5476 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5477 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5478 (lookup_signatured_type_at_offset, read_signatured_type)
5479 (write_one_signatured_type): Update the field for per_cu.
5481 2011-05-19 Tom Tromey <tromey@redhat.com>
5483 * python/py-inferior.c (python_inferior_exit): Use
5485 (python_on_resume): Likewise.
5487 2011-05-19 Matt Rice <ratmice@gmail.com>
5489 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5491 2011-05-19 Hui Zhu <teawater@gmail.com>
5493 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5495 2011-05-19 Hui Zhu <teawater@gmail.com>
5497 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5499 2011-05-18 Tom Tromey <tromey@redhat.com>
5501 * dwarf2read.c (dwarf2_add_field): Constify.
5502 * value.c (value_static_field): Constify.
5503 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5505 * ax-gdb.c (gen_static_field): Constify
5507 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5509 * linux-nat.c (kill_callback): Use SIGKILL first.
5511 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5513 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5515 2011-05-18 Tom Tromey <tromey@redhat.com>
5517 * value.c (value_fn_field): Constify.
5518 * symtab.c (gdb_mangle_name): Constify.
5519 * stabsread.c (update_method_name_from_physname): Make 'physname'
5521 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5522 const. Use explicit fputc_filtered loop.
5523 (pascal_type_print_base): Constify.
5524 * p-lang.h (pascal_type_print_method_args): Update.
5525 * linespec.c (add_matching_methods): Constify.
5526 (add_constructors): Likewise.
5527 * jv-typeprint.c (java_type_print_base): Constify.
5528 * gdbtypes.h (struct cplus_struct_type)
5529 <fn_fieldlist.fn_field.physname>: Now const.
5530 * dwarf2read.c (compute_delayed_physnames): Constify.
5531 (dwarf2_add_member_fn): Likewise.
5532 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5534 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5536 * infrun.c (resume): Mention which is the current thread, and its
5537 current PC in debug output.
5538 (prepare_to_proceed): Mention the thread switching in debug
5541 2011-05-18 Tom Tromey <tromey@redhat.com>
5543 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5544 path check. Use xmalloc and cleanups.
5545 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5547 2011-05-17 Tom Tromey <tromey@redhat.com>
5549 * cp-valprint.c (cp_print_value_fields): Catch errors from
5552 2011-05-17 Tom Tromey <tromey@redhat.com>
5554 * dwarf2read.c (dwarf2_get_die_type): Call
5555 get_die_type_at_offset.
5556 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5557 get_base_type function.
5559 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5561 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5564 2011-05-16 Doug Evans <dje@google.com>
5566 * python/py-auto-load.c (source_section_scripts): Mention objfile
5569 2011-05-15 Doug Evans <dje@google.com>
5571 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5572 (try_thread_db_load_from_pdir): Call it. If unable to find
5573 libthread_db in directory of libpthread, see if we're looking at
5574 the separate-debug-info copy.
5576 * python/py-autoload.c (print_script): Print "Missing" instead of
5577 "No" for missing scripts.
5578 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5580 2011-05-13 Doug Evans <dje@google.com>
5582 * ui-file.c (stdio_file_write_async_safe): Add comment.
5584 2011-05-14 Hui Zhu <teawater@gmail.com>
5586 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5588 2011-05-13 Doug Evans <dje@google.com>
5590 Support $pdir and $sdir in libthread-db-search-path.
5591 * NEWS: Mention $sdir,$pdir.
5592 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5593 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5594 (try_thread_db_load_from_sdir): New function.
5595 (try_thread_db_load_from_dir): New function.
5596 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5597 system directories if search of libthread-db-search-path fails,
5598 that is now done via $sdir.
5599 (has_libpthread): New function.
5600 (thread_db_load): Remove search for libthread_db in directory of
5601 libpthread, that is now done via $pdir.
5603 * NEWS: Mention "info auto-load-scripts".
5604 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5605 script_not_found_warning_printed.
5606 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5607 all callers updated. Initialize script_not_found_warning_printed.
5608 (get_auto_load_pspace_data_for_loading): New function.
5609 (maybe_add_script): New function.
5610 (source_section_scripts): Simplify. Only print one warning regardless
5611 of the number of auto-load scripts not found.
5612 (clear_section_scripts): Clear script_not_found_warning_printed.
5613 (auto_load_objfile_script): Record script in hash table.
5614 (count_matching_scripts): New function.
5615 (maybe_print_script): Renamed from maybe_print_section_script, all
5616 callers updated. Rewrite to use ui_out_*.
5617 (info_auto_load_scripts): Renamed from
5618 maintenance_print_section_scripts, all callers updated.
5619 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5620 renamed as "info auto-load-scripts".
5622 2011-05-13 Tom Tromey <tromey@redhat.com>
5624 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5625 (read_sleb128): Likewise.
5627 2011-05-13 Tom Tromey <tromey@redhat.com>
5629 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5632 2011-05-13 Doug Evans <dje@google.com>
5634 * linux-nat.c (debug_linux_nat_async): Delete.
5635 Replace all references to use debug_linux_nat instead.
5636 (show_debug_linux_nat_async): Delete.
5637 (sigchld_handler): Call ui_file_write_async_safe instead of
5639 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5640 * ui-file.c (struct ui_file): New member to_write_async_safe.
5641 (null_file_write_async_safe): New function.
5642 (ui_file_write_async_safe): New function.
5643 (set_ui_file_write_async_safe): New function.
5644 (ui_file_new): Initialize to_write_async_safe.
5645 (stdio_file_write_async_safe): New function.
5646 (struct stdio_file): New member fd.
5647 (stdio_file_new): Initialize to_write_async_safe, fd.
5648 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5650 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5651 (set_ui_file_write_async_safe): Declare.
5652 (ui_file_write_async_safe): Declare.
5654 2011-05-13 Tom Tromey <tromey@redhat.com>
5656 * utils.c (do_value_free): New function.
5657 (make_cleanup_value_free): Likewise.
5658 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5660 (dwarf2_loc_desc_needs_frame): Call
5661 make_cleanup_value_free_to_mark.
5662 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5663 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5665 (new_dwarf_expr_context): Don't call value_mark.
5666 * dwarf2-frame.c (execute_stack_op): Call
5667 make_cleanup_value_free_to_mark.
5668 * defs.h (make_cleanup_value_free): Declare.
5670 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5672 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5673 prepare_execute_command.
5674 * top.c (prepare_execute_command): Return cleanup.
5675 (execute_command): Use cleanup from prepare_execute_command.
5676 * top.h (prepare_execute_command): Change prototype to return
5678 * defs.h (struct value): Add opaque declaration.
5679 (make_cleanup_value_free_to_mark): Add prototype.
5680 * utils.c (do_value_free_to_mark): New function.
5681 (make_cleanup_value_free_to_mark): Likewise.
5683 2011-05-12 Tom Tromey <tromey@redhat.com>
5685 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5686 cast left-hand-side to unsigned.
5688 2011-05-12 Tom Tromey <tromey@redhat.com>
5691 * value.h (value_from_contents): Declare.
5692 * value.c (value_from_contents): New function.
5693 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5694 (dwarf2_get_die_type): New function.
5695 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5696 (allocate_piece_closure): Acquire reference to values.
5697 (read_pieced_value): Update for value-based expressions.
5698 (write_pieced_value): Likewise.
5699 (free_pieced_value_closure): Call value_free as needed.
5700 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5701 Update for value-based expressions.
5702 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5703 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5704 <get_base_type>: New field.
5705 (struct dwarf_expr_piece) <v.value>: Change type.
5706 <v.regno>: New field.
5707 (struct dwarf_expr_context) <mark>: New field.
5708 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5709 (dwarf_expr_pop, dwarf_expr_push): Remove.
5710 (dwarf_expr_push_address): Declare.
5711 * dwarf2expr.c (dwarf_arch_cookie): New global.
5712 (struct dwarf_gdbarch_types): New.
5713 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5715 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5717 (dwarf_expr_push_address): New function.
5718 (dwarf_expr_pop): Now static.
5719 (dwarf_expr_fetch): Change return type.
5720 (dwarf_require_integral): New function.
5721 (dwarf_expr_fetch): Simplify.
5722 (add_piece): Update.
5723 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5725 (execute_stack_op) <sign_ext>: Remove.
5726 Use values for DWARF stack.
5727 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5728 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5730 (_initialize_dwarf2expr): New function.
5731 (add_piece): Update.
5732 (new_dwarf_expr_context): Set new field.
5733 (free_dwarf_expr_context): Call value_free_to_mark.
5734 * dwarf2-frame.c (no_base_type): New function.
5735 (execute_stack_op): Set get_base_type field. Update.
5737 2011-05-12 Tom Tromey <tromey@redhat.com>
5739 * dwarf2read.c (read_common_block): Fix formatting.
5741 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5743 * breakpoint.c (disable_breakpoint): Disable all locations
5744 associated with a tracepoint on target if a trace experiment is
5746 (disable_command): Disable a specific tracepoint location on target if
5747 a trace experiment is running.
5748 (do_enable_breakpoint): Enable all locations associated with a
5749 tracepoint on target if a trace experiment is running.
5750 (enable_command) Enable a specific tracepoint location on target if a
5751 trace experiment is running.
5752 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5753 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5754 to_disable_tracepoint.
5755 * target.h: Add declaration of struct bp_location.
5756 (struct target_ops): Add new functions
5757 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5758 to_disable_tracepoint to target operations.
5759 (target_supports_enable_disable_tracepoint): New macro.
5760 (target_enable_tracepoint): New macro.
5761 (target_disable_tracepoint): New macro.
5762 * remote.c (struct remote_state): Add new field.
5763 (remote_enable_disable_tracepoint_feature): New.
5764 (remote_protocol_features): Add new entry.
5765 (remote_supports_enable_disable_tracepoint): New.
5766 (remote_enable_tracepoint): New.
5767 (remote_disable_tracepoint): New.
5768 (init_remote_ops): Add remote_enable_tracepoint,
5769 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5770 to remote operations.
5771 * tracepoint.c (start_tracing): Allow tracing to start without any
5772 tracepoints enabled with just a warning if they can be re-enabled
5774 * NEWS: Add news item for the new behaviour of the enable and disable
5775 GDB commands when applied to tracepoints.
5776 Add news items for the new remote packets QTEnable and QTDisable.
5778 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5780 * config.in: Regenerate.
5781 * configure: Regenerate.
5782 * configure.ac <--with-system-readline> (for readline_echoing_p):
5784 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5785 (tui_old_rl_echoing_p): ... here.
5786 (tui_setup_io): Rename extern declaration readline_echoing_p to
5787 _rl_echoing_p. Adjust assignments for the both renames.
5789 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5791 * symtab.c (lookup_symtab): Run cleanup before returning.
5793 2011-05-11 Tom Tromey <tromey@redhat.com>
5795 * dwarf2read.c (handle_data_member_location): New function.
5796 (dwarf2_add_field): Use it.
5797 (read_common_block): Likewise.
5799 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5801 Make addrs->SECTINDEX always defined.
5802 * symfile.c (relative_addr_info_to_section_offsets): Check for
5803 SECTINDEX -1, not for zero ADDR.
5804 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5805 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5806 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5809 2011-05-10 Doug Evans <dje@google.com>
5811 * linux-thread-db.c: Whitespace cleanup.
5812 (try_thread_db_load_1): Fix comment.
5814 * linux-thread-db.c (set_libthread_db_search_path): New function.
5815 (_initialize_thread_db): Add setter for libthread-db-search-path.
5817 2011-05-09 Doug Evans <dje@google.com>
5819 * NEWS: Mention --with-iconv-bin.
5820 * configure.ac: New option --with-iconv-bin.
5821 * configure: Regenerate.
5822 * config.in: Regenerate.
5823 * defs.h (relocate_gdb_directory): Declare.
5824 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5825 removed progname parameter, and exported. All callers updated.
5826 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5828 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5829 adding missing call to restore_child_signals_mask.
5831 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5833 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5835 * infrun.c (proceed, start_remote): Adjust.
5836 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5837 and adjust to not handle it.
5838 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5839 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5840 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5841 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5842 * windows-nat.c (do_initial_windows_stuff): Adjust.
5843 * infcmd.c (attach_command): Adjust.
5844 (notice_new_inferior): Adjust.
5846 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5848 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5849 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5850 * spu-tdep.c (op_selb): Use correct value.
5852 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5854 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5855 "parent" parameter to symbol_file_add_from_bfd call.
5857 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5858 Thiago Jung Bauermann <bauerman@br.ibm.com>
5860 Implement support for PowerPC BookE masked watchpoints.
5861 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5863 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5864 method. Initialize to NULL in all existing breakpoint_ops instances.
5865 (struct breakpoint) <hw_wp_mask>: New field.
5866 * breakpoint.c (is_masked_watchpoint): Add prototype.
5867 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5868 breakpoint's breakpoint_ops.works_in_software_mode if available.
5869 (watchpoints_triggered): Handle the case of a hardware masked
5871 (watchpoint_check): Likewise.
5872 (works_in_software_mode_watchpoint): New function.
5873 (insert_masked_watchpoint, remove_masked_watchpoint)
5874 (resources_needed_masked_watchpoint)
5875 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5876 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5877 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5879 (masked_watchpoint_breakpoint_ops): New structure.
5880 (watch_command_1): Check for the existence of the `mask' parameter.
5881 Set b->ops according to the type of hardware watchpoint being created.
5882 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5883 (ppc_linux_remove_mask_watchpoint)
5884 (ppc_linux_masked_watch_num_registers): New functions.
5885 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5886 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5887 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5888 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5889 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5890 (target_masked_watch_num_registers): New functions.
5891 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5892 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5894 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5895 (target_masked_watch_num_registers): Add prototypes.
5897 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5900 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5901 (producer_is_gcc_ge_4_0): New function.
5902 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5903 symtab->language code.
5904 (var_decode_location): Set cu->has_loclist.
5905 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5906 skip. Intialize force_skip from locations_valid. Move the prologue
5907 skipping code into two passes.
5908 * symtab.h (struct symtab): Make the primary field a bitfield. New
5909 field locations_valid.
5911 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5913 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5914 (classify_inner_name): Call cp_lookup_nested_type with
5916 * cp-namespace.c (cp_lookup_nested_type): New variable
5917 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5918 type_name_no_tag_or_error with saved_parent_type.
5919 * dwarf2read.c (load_partial_dies): Read in any children of
5920 DW_TAG_typedef with complaint in such case.
5921 * gdbtypes.c (type_name_no_tag_or_error): New function.
5922 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5923 * valops.c (destructor_name_p): New comment for parameter type. Remove
5924 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5925 * value.h (destructor_name_p): Remove type const.
5927 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5929 * symtab.c (compare_symbol_name): New function.
5930 (completion_list_add_name, expand_partial_symbol_name): Call it,
5931 remove the variable ncmp.
5932 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5935 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5937 Demote to sw watchpoint only in update_watchpoint.
5938 * breakpoint.c (update_watchpoint): Change between software and
5939 hardware watchpoint for all kinds of watchpoints, not just
5940 read/write ones. Determine b->exact value here instead of
5941 in watch_command_1. Error out if there are not enough resources
5942 for a read or access hardware watchpoint.
5943 (watch_command_1): Remove logic of checking whether there are
5944 enough resources available, since update_watchpoint will do that
5945 work now. Don't set b->exact here. Catch exceptions thrown by
5946 update_watchpoint and delete the watchpoint.
5947 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5948 Use target_exact_watchpoints instead.
5949 (delete_breakpoint): Notify observers only if deleted watchpoint
5950 has a breakpoint number assigned to it.
5952 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5954 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5956 2011-05-05 Jerome Guitton <guitton@adacore.com>
5958 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5960 (i386_stack_tramp_frame_unwind): New static global.
5961 (i386_match_pattern): New function, extracted from i386_match_insn.
5962 (i386_match_insn): Use i386_match_pattern.
5963 (i386_match_insn_block): New function.
5964 (i386_tramp_chain_in_reg_insns)
5965 (i386_tramp_chain_on_stack_insns): New static variables.
5966 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5969 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5971 * configure.host (xscale*): Don't handle target.
5972 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5975 2011-05-04 Yao Qi <yao@codesourcery.com>
5977 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5979 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5982 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5983 | * elfread.c (elf_symtab_read): Stop memory leak.
5985 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5987 * nto-tdep.c (nto_target): Replace deprecated call to
5988 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5990 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5992 Fix false GCC warning.
5993 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5995 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5997 * breakpoint.c (update_watchpoint): Move code to change
5998 the enable state of breakpoint from here ...
5999 (do_enable_breakpoint): ... to here.
6001 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6003 * valprint.c (val_print_array_elements): Fixed poor performance
6004 of printing very large arrays with repeat_count_threshold set
6005 to unlimited. New comment.
6007 2011-04-29 Tom Tromey <tromey@redhat.com>
6009 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6010 (mi_parse): Likewise.
6011 * breakpoint.c (break_range_command): Use sizeof char*, not
6013 (create_breakpoint): Likewise.
6014 (parse_breakpoint_sals): Likewise.
6016 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6018 * linux-nat.c (linux_child_remove_fork_catchpoint)
6019 (linux_child_remove_vfork_catchpoint)
6020 (linux_child_remove_exec_catchpoint): New functions.
6021 (linux_target_install_ops): Install them.
6023 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6027 * varobj.c (install_default_visualizer): Do not install a
6028 visualizer if the varobj is CPLUS_FAKE_CHILD.
6029 (construct_visualizer): Likewise.
6031 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6033 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6034 case insensitive comparison.
6036 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6038 * infrun.c (proceed): Revert previous change.
6039 (resume): Instead, handle the case of signal delivery while stepping
6040 off a breakpoint location here, and only if software single-stepping
6041 is used. Handle nested signals.
6043 2011-04-28 Yao Qi <yao@codesourcery.com>
6045 * arm-tdep.c (copy_unmodified): Rename to ...
6046 (arm_copy_unmodified): .. this. New.
6047 (copy_preload): Move common part to ...
6048 (install_preload): .. this. New.
6049 (arm_copy_preload): New.
6050 (copy_preload_reg): Move common part to ...
6051 (install_preload_reg): ... this. New.
6052 (arm_copy_preload_reg): New.
6053 (copy_b_bl_blx): Move common part to ...
6054 (install_b_bl_blx): .. this. New.
6055 (arm_copy_b_bl_blx): New.
6056 (copy_bx_blx_reg): Move common part to ...
6057 (install_bx_blx_reg): ... this. New.
6058 (arm_copy_bx_blx_reg): New.
6059 (copy_alu_reg): Move common part to ...
6060 (install_alu_reg): ... this. New.
6061 (arm_copy_alu_reg): New.
6062 (copy_alu_shifted_reg): Move common part to ...
6063 (install_alu_shifted_reg): ... this. New.
6064 (copy_ldr_str_ldrb_strb): Move common part to ...
6065 (install_ldr_str_ldrb_strb): ... this. New.
6066 (arm_copy_ldr_str_ldrb_strb): New.
6067 (copy_copro_load_store): Move some common part to ...
6068 (install_copy_copro_load_store): ... this. New.
6069 (arm_copy_copro_load_store): New.
6071 (arm_copy_svc): Renamed from copy_svc.
6072 (copy_undef): Delete.
6073 (arm_copy_undef): Renamed from copy_undef.
6074 (decode_ext_reg_ld_st): Delete.
6075 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6076 (decode_svc_copro): Delete.
6077 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6078 (copy_copro_load_store, copy_alu_imm): update callers.
6079 (copy_extra_ld_st, copy_block_xfer): Likewise.
6080 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6081 (decode_miscellaneous, decode_dp_misc): Likewise.
6082 (decode_ld_st_word_ubyte, decode_media): Likewise.
6083 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6084 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6085 (decode_unconditional, decode_miscellaneous): Likewise.
6086 (decode_media, decode_b_bl_ldmstm): Likewise.
6087 (arm_process_displaced_insn): Likewise..
6088 (decode_misc_memhint_neon): Delete.
6089 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6090 (decode_miscellaneous): Delete.
6091 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6092 (decode_dp_misc): Delete.
6093 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6094 (decode_ld_st_word_ubyte): Delete.
6095 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6096 (decode_media): Delete.
6097 (arm_decode_media): Renamed from decode_media.
6098 (decode_b_bl_ldmstm): Delete.
6099 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6100 (decode_ext_reg_ld_st): Delete.
6101 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6102 (decode_unconditional): Delete.
6103 (arm_decode_unconditional): Renamed from decode_unconditional.
6105 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6107 Case insensitive lookups implementation.
6108 * dwarf2read.c: Include ctype.h.
6109 (struct mapped_index): New field version.
6110 (mapped_index_string_hash): New parameter index_version. New comment
6111 for it. Call tolower appropriately.
6112 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6113 Choose the right index version for mapped_index_string_hash.
6114 (dwarf2_read_index): Support also the index version 5. Initialize the
6115 new struct mapped_index field version.
6116 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6117 (find_slot): Explain the version needs. Pass INT_MAX for the new
6119 (write_psymtabs_to_index): Produce version 5.
6120 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6121 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6122 * psymtab.c (lookup_partial_symbol): Find the
6123 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6125 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6127 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6128 (completion_list_add_name): New variable ncmp, initialize it, use it.
6129 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6130 * utils.c (strcmp_iw): Support case_sensitive_off.
6131 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6132 New function comment part. New variables saved_string1,
6133 saved_string2 and case_pass. Add a proper second pass.
6135 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 Replace re_comp/re_exec by regcomp/regexec.
6138 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6139 (search_symbols_name_matches): Use them, use regexec.
6140 (search_symbols): New variable retval_chain, adjust the use of
6141 old_chain against it. Replace re_comp by regcomp. Use the new struct
6142 search_symbols_data fields, use regexec instead of re_exec.
6144 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6146 Format the code for the next patch.
6147 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6148 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6149 New variables c1 and c2.
6151 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6153 * infrun.c (proceed): Do not single-step into signal delivery
6154 when stepping off a breakpoint location.
6155 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6156 (insert_step_resume_breakpoint_at_caller): Likewise.
6157 (insert_step_resume_breakpoint_at_sal): Likewise.
6158 (insert_longjmp_resume_breakpoint): Likewise.
6160 2011-04-27 Yao Qi <yao@codesourcery.com>
6162 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6164 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6166 * procfs.c (procfs_pass_signals): Fix advance declaration.
6168 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6170 * target.h (struct target_ops): Remove to_notice_signals;
6171 add to_pass_signals.
6172 (target_notice_signals): Remove.
6173 (target_pass_signals): Add prototype.
6174 * target.c (update_current_target): Remove to_notice_signals;
6175 mention to_pass_signals.
6176 (target_pass_signals): New function.
6177 (debug_to_notice_signals): Remove.
6178 (setup_target_debug): Do not install debug_to_notice_signals.
6180 * infrun.c (signal_pass): New global.
6181 (resume): Call target_pass_signals.
6182 (handle_inferior_event): Report all signals while stepping over
6183 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6184 are re-inserted when stepping over a signal handler.
6185 (signal_cache_update): New function.
6186 (signal_stop_update): Call it.
6187 (signal_print_update): Likewise.
6188 (signal_pass_update): Likewise.
6189 (handle_command): Call signal_cache_update and target_pass_signals
6190 instead of target_notice_signals.
6191 (_initialize_infrun): Initialize signal_pass.
6193 * linux-nat.c (pass_mask): New global.
6194 (linux_nat_pass_signals): New function.
6195 (linux_nat_create_inferior): Report all signals initially.
6196 (linux_nat_attach): Likewise.
6197 (linux_nat_resume): Use pass_mask to decide whether to directly
6198 handle an inferior signal.
6199 (linux_nat_wait_1): Likewise.
6200 (linux_nat_add_target): Install to_pass_signals callback.
6202 * nto-procfs.c (notice_signals): Remove.
6203 (procfs_resume): Do not call notice_signals.
6204 (procfs_notice_signals): Remove.
6205 (procfs_pass_signals): New function.
6206 (init_procfs_ops): Install to_pass_signals callback instead of
6207 to_notice_signals callback.
6208 (_initialize_procfs): Report all signals initially.
6210 * procfs.c (procfs_notice_signals): Remove.
6211 (procfs_pass_signals): New function.
6212 (procfs_target): Install to_pass_signals callback instead of
6213 to_notice_signals callback.
6214 (register_gdb_signals): Remove.
6215 (procfs_debug_inferior): Report all signals initially.
6216 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6218 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6219 parameters; use them instead of calling signal_..._state routines.
6220 (remote_notice_signals): Remove.
6221 (remote_start_remote): Report all signals initially.
6222 (remote_resume): Do not call remote_pass_signals.
6223 (_initialize_remote): Install to_pass_signals callback instead of
6224 to_notice_signals callback.
6226 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6228 * breakpoint.c (user_settable_breakpoint): Delete.
6229 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6230 (delete_command): Check user_breakpoint_p instead of looking at
6231 the breakpoint's type.
6232 (disable_command): Ditto.
6233 (enable_command): Ditto.
6234 (delete_trace_command): Use user_breakpoint_p instead of looking
6235 at the breakpoint number directly. When checking if there are
6236 user visible tracepoints, in order to know whether to ask the user
6237 for confirmation, check whether the breakpoint is actually a
6240 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6242 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6245 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6247 MI breakpoint notifications.
6249 * annotate.c (breakpoint_changed): Adjust parameter type.
6250 * breakpoint.c (set_breakpoint_condition): Adjust to change
6251 in breakpoint_modified type.
6252 (breakpoint_set_commands): Likewise.
6253 (do_map_commands_command): Likewise.
6254 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6255 changed after bumping hit count.
6256 (bpstat_stop_status): Likewise.
6257 (print_one_breakpoint_location): Don't wrap in tuple here.
6258 (print_one_breakpoint): Always print individual locations.
6259 For locations, use unnamed tuple.
6260 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6262 (create_catchpoint, create_syscall_event_catchpoint): Call
6263 breakpoint_created obsever.
6264 (mention): Don't call breakpoint_created observer.
6265 (create_breakpoint_sal): Call breakpoint_created observer.
6266 (create_breakpoint, watch_command_1): Likewise.
6267 (create_ada_exception_breakpoint): Likewise.
6268 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6269 (locations_are_equal): New.
6270 (update_breakpoint_locations): If locations were changed, notify.
6271 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6272 Call breakpoint_modified observer.
6274 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6275 (mi_cmd_break_insert): Don't set observers for modify and delete.
6276 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6277 (mi_breakpoint_created, mi_breakpoint_deleted)
6278 (mi_breakpoint_modified): New.
6279 (mi_interpreter_init): Hook the above.
6280 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6281 while -break-* commands are executing.
6282 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6283 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6285 (mi_ui_out_impl): Hook in mi_redirect.
6286 (mi_field_skip): True to the name, skip the field, don't output
6287 a field with an empty value.
6289 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6290 (gdbpy_breakpoint_deleted): Adjust.
6291 * tui/tui-hooks.c (tui_event_create_breakpoint)
6292 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6294 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6296 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6297 (procfs_remove_hw_watchpoint): Likewise.
6299 2011-04-26 Michael Walle <michael@walle.cc>
6301 * remote.c (remote_start_remote): Ack packet after sending the
6304 2011-04-26 Yao Qi <yao@codesourcery.com>
6306 * linux-nat.c: Move common macros to ...
6307 Include linux-ptrace.h.
6308 * common/linux-ptrace.h: ... here. New.
6310 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6312 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6313 !objfile_has_partial_symbols. New comment.
6314 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6315 SYM_READ_PSYMBOLS is not present. Extend the comment.
6316 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6318 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6320 * defs.h (ENUM_BITFIELD): Remove.
6322 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6323 Eli Zaretskii <eliz@gnu.org>
6325 * NEWS: Document the new gdbserver --once option.
6327 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6329 * MAINTAINERS: Update my email address.
6331 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6333 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6334 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6335 function call if __STDC_ISO_10646__ macro is defined.
6336 (intermediate_encoding): New prototype.
6337 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6338 to generate compile time error for unsupported gdb_wchar_t size.
6339 (ENDIAN_SUFFIX): New macro.
6340 (intermediate_encoding): New function.
6342 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6344 * ada-lang.c (struct add_partial_datum): Update the comment for
6345 expand_partial_symbol_name.
6346 (ada_add_partial_symbol_completions): Rename to ...
6347 (ada_expand_partial_symbol_name): ... here, change return type, update
6348 function comment, call symbol_completion_match instead of
6349 symbol_completion_add.
6350 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6351 and ada_expand_partial_symbol_name.
6352 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6354 (dw2_map_symbol_names): Remove.
6355 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6356 * psymtab.c (map_symbol_names_psymtab): Remove.
6357 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6358 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6360 (psym_functions): Unlist map_symbol_names_psymtab.
6361 (map_partial_symbol_names): Rename to ...
6362 (expand_partial_symbol_names): ... here, change the FUN type, call
6363 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6364 * psymtab.h (map_partial_symbol_names): Rename to ...
6365 (expand_partial_symbol_names): ... here, change the FUN type.
6366 * symfile.h (struct quick_symbol_functions): Update the description of
6367 expand_symtabs_matching. Remove map_symbol_names.
6368 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6369 (struct add_name_data): Update the comment for
6370 expand_partial_symbol_name.
6371 (add_partial_symbol_name): Rename to ...
6372 (expand_partial_symbol_name): ... here. Replace
6373 completion_list_add_name call by strncmp.
6374 (default_make_symbol_completion_list_break_on): Use now
6375 expand_partial_symbol_names and expand_partial_symbol_name.
6376 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6378 2011-04-20 Tom Tromey <tromey@redhat.com>
6380 * dwarf2read.c (save_gdb_index_command): Replace format
6381 documentation with a pointer to the manual.
6383 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6385 * regcache.c: Include remote.h.
6386 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6387 (regcache_dump): Handle regcache_dump_remote.
6388 (maintenance_print_remote_registers): New function.
6389 (_initialize_regcache): Install "maint print remote-registers"
6391 * remote.c (map_regcache_remote_table): New function, factored out
6393 (init_remote_state): ... here.
6394 (remote_register_number_and_offset): New.
6395 * remote.h (remote_register_number_and_offset): Declare.
6397 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6399 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6400 null_ptid, assume and allow a NULL address space, instead of
6401 asking the target for the ptid's address space.
6402 * infrun.c (ptid_is_pid): Remove assertion.
6404 2011-04-19 Tom Tromey <tromey@redhat.com>
6406 * windows-tdep.c (windows_xfer_shared_library):
6407 * windows-nat.c (get_module_name, windows_make_so):
6408 * v850-tdep.c (v850_handle_pushm):
6409 * utils.c (null_cleanup, gdb_realpath):
6410 * ui-out.c (get_next_header):
6411 * tracepoint.c (clear_traceframe_info):
6412 * symtab.c (lookup_symtab):
6413 * serial.h (struct serial_ops):
6414 * mipsread.c (read_alphacoff_dynamic_symtab):
6415 * infcmd.c (print_return_value):
6416 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6417 * f-exp.y (parse_number):
6418 * exceptions.c (catch_exceptions):
6419 * dummy-frame.c (dummy_frame_this_id):
6420 * defs.h (struct cleanup):
6421 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6422 * arm-tdep.c (arm_push_dummy_call):
6423 * amd64-tdep.h (amd64_collect_xsave):
6424 * amd64-tdep.c (amd64_collect_xsave):
6425 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6426 * README (typing): Remove duplicate words.
6427 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6428 * infrun.c (siginfo_value_read): Fix typo.
6429 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6430 * top.c (source_line_number): Add comma.
6432 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6434 * thread.c (any_live_thread_of_process): Prioritize threads
6435 that are not executing.
6436 * gdbthread.h (any_live_thread_of_process): Update comment
6437 as per above change.
6439 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6441 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6442 (scan_xcoff_symtab): Likewise.
6444 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6446 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6449 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6450 Pedro Alves <pedro@codesourcery.com>
6452 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6453 variables to simplify code and avoid == operator at end of
6454 line as this is against GNU coding standards.
6456 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6458 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6459 lm_name to name_lm to avoid conflict with lm_name function.
6461 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6463 ARI fixes: Use only lowercase function name for static functions.
6464 * nto-tdep.c (LM_ADDR): Rename to...
6465 (lm_addr): New function name.
6466 (nto_relocate_section_addresses): Adapt to change above.
6467 * solib-sunos.c (LM_ADDR): Rename to...
6468 (lm_addr): New function name.
6469 (LM_NEXT): Rename to...
6470 (lm_next): New function name.
6471 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6472 function name changes above.
6473 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6474 (lm_addr_from_link_map): New function name.
6475 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6476 (has_lm_dynamic_from_link_map): New function name.
6477 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6478 (lm_dynamic_from_link_map): New function name.
6479 (LM_ADDR_CHECK): Rename to...
6480 (lm_addr_check): New function name.
6481 (LM_NEXT): Rename to...
6482 (lm_next): New function name.
6483 (LM_PREV): Rename to...
6484 (lm_prev): New function name.
6485 (LM_NAME): Rename to...
6486 (lm_name): New function name.
6487 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6488 (ignore_first_link_map_entry): New function name.
6489 (svr4_keep_data_in_core): Adapt to function name changes above.
6490 (svr4_current_sos): Likewise.
6491 (enable_break): Likewise.
6492 (svr4_relocate_section_addresses): Likewise.
6494 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6497 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6498 sprintf. Simplify code and avoid loosing memory.
6499 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6500 (call0_frame_cache): Remove && operator from end of line.
6502 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6504 Fix libraries displacement if they change whether they were prelinked.
6505 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6506 does not match. Comment why.
6508 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6510 * corelow.c: Include wrapper.h.
6511 (core_open): Call now gdb_target_find_new_threads.
6512 * wrapper.c: Include target.h.
6513 (gdb_target_find_new_threads): New.
6514 * wrapper.h (gdb_target_find_new_threads): New declaration.
6516 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6518 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6519 even if !TARGET_HAS_EXECUTION.
6521 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6524 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6525 bfd_get_synthetic_symtab.
6526 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6527 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6528 parameter parent, remove the call to add_separate_debug_objfile.
6529 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6530 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6531 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6532 parent, new comment for it, call add_separate_debug_objfile for it.
6533 (symbol_file_add_separate): Pass objfile as the parameter parent,
6534 remove the call to add_separate_debug_objfile.
6535 (symbol_file_add_from_bfd): New parameter parent, pass it.
6536 (symbol_file_add): Pass NULL to the new parameter parent.
6537 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6539 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6541 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6544 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6546 Fix Python access to inlined frames.
6547 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6548 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6550 2011-04-15 Tom Tromey <tromey@redhat.com>
6552 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6554 2011-04-15 Gary Benson <gbenson@redhat.com>
6556 * MAINTAINERS: Add myself to write-after-approval section.
6558 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6560 * remote-sim.c (sim_command_completer): New function.
6561 (_initialize_remote_sim): Set completer to sim_command_completer.
6563 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6565 * breakpoint.c (print_exception_catchpoint): Rename to ...
6566 (print_it_exception_catchpoint): ... this.
6567 (gnu_v3_exception_catchpoint_ops): Update with new name
6568 for print_it_exception_catchpoint.
6570 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6572 * MAINTAINERS: Add myself for write after approval privileges.
6574 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6576 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6578 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6580 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6582 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6584 * breakpoint.c (save_breakpoints): Verify whether
6585 breakpoint_ops.print_recreate is defined before calling it.
6587 2011-04-11 Gary Benson <gbenson@redhat.com>
6589 Fix failure with --enable-maintainer-mode.
6590 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6592 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6595 * symtab.c (search_symbols): Reorder the KIND description in the
6596 function comment. Remove the unused 4th element of types, types2,
6597 types3 and types4. New gdb_assert on KIND.
6598 (symtab_symbol_info): Remove the unused 4th element of classnames.
6599 New gdb_assert on KIND.
6600 * symtab.h (enum search_domain): New warning in the enum comment.
6601 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6604 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 Fix crash of gdb save-index on a STABS file.
6607 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6610 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6612 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6613 * dwarf2read.c: Include ctype.h.
6614 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6616 (dwarf2_add_field): Fix new_field->accessibility by calling
6617 dwarf2_default_access_attribute. Restructure setting accessibility
6619 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6620 is_private and is_protected by calling
6621 dwarf2_default_access_attribute.
6623 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6625 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6626 to the initialization.
6628 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6630 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6633 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6635 Remove support for old Cygwin 1.5 versions.
6636 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6637 function on old Cygwin version.
6638 * windows-nat.c: Remove cygwin version check and always define
6639 __USEWIDE for Cygwin compilation.
6641 2011-04-07 Yao Qi <yao@codesourcery.com>
6643 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6645 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6646 (arm_copy_svc): Remove parameters INSN and TO.
6647 (decode_svc_copro): Update caller.
6648 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6649 from function pointer `copy_svc_os'.
6651 2011-04-07 Yao Qi <yao@codesourcery.com>
6653 * arm-tdep.c (cleanup_branch): Set a correct return address in
6654 LR for ARM and Thumb.
6656 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6660 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6661 in the function comment, a new note on values compatibility.
6662 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6663 * symtab.h (SYMBOL_HASH_NEXT): New.
6665 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6667 * ppc-linux-nat.c (check_condition): Add len output parameter.
6668 Set it based on the memory region referenced in the condition
6669 expression. Update all callers.
6671 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6673 Fix crash regression on systems featuring .gdb_index.
6674 * objfiles.c (free_objfile): Move the
6675 forget_cached_source_info_for_objfile call earlier. Comment it.
6676 Extend the comment for objfile_free_data.
6678 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6680 Fix regression of displaying the debug format.
6681 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6684 2011-04-04 Tom Tromey <tromey@redhat.com>
6686 * cli/cli-interp.c (struct captured_execute_command_args):
6688 (do_captured_execute_command): Remove.
6689 (safe_execute_command): Use TRY_CATCH.
6690 * cli/cli-script.c (struct wrapped_read_command_file_args):
6692 (wrapped_read_command_file): Remove.
6693 (script_from_file): Use TRY_CATCH.
6694 * exceptions.c (catch_exception): Remove.
6695 * exceptions.h (catch_exception): Remove.
6696 (deprecated_throw_reason): Update comment.
6697 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6698 argument to 'context'.
6699 (mi_execute_command): Use TRY_CATCH.
6700 * remote.c (struct start_remote_args): Remove.
6701 (remote_start_remote): Update; change arguments.
6702 (remote_open_1): Use TRY_CATCH.
6704 2011-04-04 Tom Tromey <tromey@redhat.com>
6706 * tracepoint.c (scope_info): Update.
6707 * symtab.c (decode_line_spec): Update.
6708 * python/python.c (gdbpy_decode_line): Update.
6709 * linespec.h (decode_line_1): Update.
6710 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6711 (decode_compound, find_method, symtab_from_filename)
6712 (decode_variable): Likewise.
6713 * cli/cli-cmds.c (edit_command): Update.
6714 (list_command): Update.
6715 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6717 (create_breakpoint): Update.
6718 (until_break_command): Update.
6719 (addr_string_to_sals): Update.
6720 (decode_line_spec_1): Update.
6722 2011-04-04 Tom Tromey <tromey@redhat.com>
6724 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6725 (do_captured_parse_breakpoint): Remove.
6726 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6727 Use TRY_CATCH directly.
6729 2011-04-04 Tom Tromey <tromey@redhat.com>
6731 * symtab.h (free_symtab): Remove.
6732 (forget_cached_source_info_for_objfile): Declare.
6733 * symmisc.c (free_symtab): Remove.
6734 * source.c (forget_cached_source_info_for_objfile): New function.
6735 (forget_cached_source_info): Use it.
6736 * objfiles.c (free_objfile): Simplify check before calling
6737 clear_current_source_symtab_and_line. Call
6738 forget_cached_source_info_for_objfile.
6740 2011-04-04 Tom Tromey <tromey@redhat.com>
6742 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6743 (new_symtab): Don't set `free_code' on symtab.
6744 (new_linetable): Properly handle size==0.
6745 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6746 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6748 * jv-lang.c (struct jv_per_objfile_data): New.
6749 (jv_per_objfile_free): Free the data.
6750 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6751 (get_java_class_symtab): Set the `dict' field on the
6752 jv_per_objfile_data.
6753 (free_class_block): Remove.
6754 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6757 2011-04-04 Tom Tromey <tromey@redhat.com>
6759 * symfile.c (reread_symbols): Update.
6760 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6762 * objfiles.c (allocate_objfile): Update.
6763 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6765 * cp-namespace.c (lookup_symbol_file): Don't call
6766 lookup_possible_namespace_symbol.
6767 (initialize_namespace_symtab, get_possible_namespace_block)
6768 (free_namespace_block, cp_check_possible_namespace_symbols)
6769 (check_possible_namespace_symbols_loop)
6770 (check_one_possible_namespace_symbol)
6771 (lookup_possible_namespace_symbol): Remove.
6772 (maintenance_cplus_namespace): Replace with notice.
6773 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6775 2011-04-04 Tom Tromey <tromey@redhat.com>
6777 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6778 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6779 * symmisc.c (free_symtab): Don't free debugformat.
6780 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6781 (record_debugformat, record_producer): Document.
6782 * buildsym.c (end_symtab): Don't save debugformat and producer
6784 (end_symtab): Don't free debugformat and producer fields.
6785 (record_debugformat): Don't call xstrdup.
6786 (record_producer): Likewise.
6788 2011-04-04 Tom Tromey <tromey@redhat.com>
6790 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6791 (source_line_charpos, source_charpos_line): Remove.
6793 2011-04-04 Tom Tromey <tromey@redhat.com>
6795 * symtab.h (domain_enum): Split in two...
6796 (enum search_domain): New.
6797 (search_symbols): Update.
6798 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6799 redundant declarations.
6800 (search_symbols): Change 'kind' argument to search_domain.
6802 (print_symbol_info): Likewise.
6803 (symtab_symbol_info): Likewise.
6804 * symfile.h (struct quick_symbol_functions)
6805 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6806 <expand_symtabs_matching>: Likewise.
6807 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6808 (expand_symtabs_matching_via_partial): Update.
6809 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6810 (dw2_expand_symtabs_for_function): Update.
6811 * block.h: Moved anonymous enum...
6812 * defs.h (enum block_enum): ... here. Now named.
6814 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6816 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6817 * version.in: Bump version to 7.3.50.20110403-cvs.
6819 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6821 * NEWS: Create a new section for the next release branch.
6822 Rename the section of the current branch, now that it has
6825 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6827 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6828 for "fpscr" in target description.
6830 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6832 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6833 initialize it. Delay HASH initialization. Strip the part after open
6834 parenthesis for languages with qualifiers. Call do_cleanups.
6836 2011-04-01 Tom Tromey <tromey@redhat.com>
6838 * utils.c (report_command_stats): Don't print `-' for negative
6841 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6843 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6844 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6847 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6849 * breakpoint.h (bpdisp_text): Add declaration.
6850 * breakpoint.c (bpdisp_text): Make non-static.
6851 * ada-lang.c: #include "mi/mi-common.h".
6852 (print_it_exception): Rewrite to improve GDB/MI output.
6854 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6856 * arm-tdep.h (struct address_space): Add forward declaration.
6858 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6860 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6861 * arm-tdep.c (arm_override_mode): New global.
6862 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6863 execution mode heuristics.
6864 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6865 second single-step breakpoint if needed, using
6866 arm_insert_single_step_breakpoint.
6867 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6868 ARM execution mode, do not call thumb_get_next_pc_raw.
6869 (arm_get_next_pc): Encode execution mode in return value. Call
6870 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6871 (arm_insert_single_step_breakpoint): New function.
6872 (arm_software_single_step): Call it.
6873 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6874 argument to return execution mode of sigreturn target.
6875 (arm_linux_syscall_next_pc): Use it.
6876 (arm_linux_copy_svc): Update call.
6877 (arm_linux_software_single_step): Call
6878 arm_insert_single_step_breakpoint.
6880 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6882 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6885 2011-03-31 Tom Tromey <tromey@redhat.com>
6887 * varobj.c (update_dynamic_varobj_children): Properly handle
6888 errors from iterator.
6890 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6892 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6893 struct linkage name twice.
6895 2011-03-31 Tom Tromey <tromey@redhat.com>
6897 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6898 missing ">" to message.
6900 2011-03-31 Tom Tromey <tromey@redhat.com>
6902 * varobj.c (instantiate_pretty_printer): Remove duplicate
6905 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6907 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6908 if neither saved value nor register available (e.g. signal frame).
6910 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6912 * macroexp.c (expand): Avoid uninitialized variable
6915 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6917 * breakpoint.c (break_range_command): Fix typo in comment.
6919 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6920 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6922 Implement support for PowerPC BookE ranged breakpoints.
6923 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6924 * breakpoint.h (struct bp_target_info) <length>: New member
6926 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6927 instead of struct breakpoint as argument, and also add ASPACE
6928 and BP_ADDR arguments. Update all callers.
6929 (struct breakpoint_ops) <print_one_detail>: New method.
6930 (struct breakpoint) <addr_string_range_end>: New member variable.
6931 * breakpoint.c (breakpoint_location_address_match): Add function
6933 (insert_bp_location): Set bl->target_info.length.
6934 (breakpoint_here_p): Call breakpoint_location_address_match.
6935 (moribund_breakpoint_here_p): Likewise.
6936 (regular_breakpoint_inserted_here_p): Likewise.
6937 (breakpoint_thread_match): Likewise.
6938 (bpstat_stop_status): Likewise.
6939 (bpstat_check_location): Move call to
6940 breakpoint_ops.breakpoint_hit to the top.
6941 (print_one_breakpoint_location): Call
6942 breakpoint_ops.print_one_detail if available.
6943 (breakpoint_address_match_range): New function.
6944 (breakpoint_location_address_match): Likewise.
6945 (breakpoint_locations_match): Compare the length field of the
6947 (hw_breakpoint_used_count): Count resources used by all locations
6948 in a breakpoint, and use breakpoint_ops.resources_needed if
6950 (breakpoint_hit_ranged_breakpoint): New function.
6951 (resources_needed_ranged_breakpoint): Likewise.
6952 (print_it_ranged_breakpoint): Likewise.
6953 (print_one_ranged_breakpoint): Likewise.
6954 (print_one_detail_ranged_breakpoint): Likewise.
6955 (print_mention_ranged_breakpoint): Likewise.
6956 (print_recreate_ranged_breakpoint): Likewise.
6957 (ranged_breakpoint_ops): New structure.
6958 (find_breakpoint_range_end): New function.
6959 (break_range_command): Likewise.
6960 (delete_breakpoint): Free addr_string_range_end.
6961 (update_breakpoint_locations): Add SALS_END argument. Update
6962 all callers. Calculate breakpoint length if a non-zero SALS_END
6963 is given. Call breakpoint_locations_match instead of
6964 breakpoint_address_match.
6965 (reset_breakpoint): Find SaL of the end of the range if B is a
6967 (_initialize_breakpoint): Register break-range command.
6968 * defs.h (print_core_address): Add function prototype.
6969 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6971 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6972 (ppc_linux_remove_hw_breakpoint): Likewise.
6973 (_initialize_ppc_linux_nat): Initialize
6974 to_ranged_break_num_registers.
6975 * target.c (update_current_target): Add comment about
6976 to_ranged_break_num_registers.
6977 (target_ranged_break_num_registers): New function.
6978 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6980 (target_ranged_break_num_registers): Add function prototype.
6981 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6982 * utils.c (print_core_address): ... here.
6984 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6986 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6987 variable compiler warning.
6989 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6991 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6993 (re_set_breakpoint): ... to here ...
6994 (addr_string_to_sals): ... and here.
6996 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6998 * Makefile.in (SFILES): Add missing C sources.
6999 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7000 Add missing headers.
7002 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7004 * .gitignore: New file.
7006 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7008 * NEWS: Mention new cfi device simulation.
7010 2011-03-29 Tom Tromey <tromey@redhat.com>
7012 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7013 otherwise anonymous types.
7014 (dwarf2_name): Likewise.
7015 * valops.c (value_struct_elt_for_reference): Refine artificial
7016 type logic. Call error if j==-1.
7018 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7020 Fix false GCC warning.
7021 * infcall.c (find_function_addr): Initialize funaddr.
7023 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7025 Fix mingw compilation with --enable-targets=all.
7026 * remote-mips.c (gdb_usleep.h): Include header.
7027 (mips_enter_debug): Use gdb_usleep instead of sleep.
7029 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7031 Support resolution of STT_GNU_IFUNC via breakpoints.
7032 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7033 bp_gnu_ifunc_resolver_return.
7034 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7035 the loop. Support bp_gnu_ifunc_resolver and
7036 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7037 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7039 (bptype_string, print_one_breakpoint_location): Support
7040 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7041 (user_settable_breakpoint): Return true also for
7042 bp_gnu_ifunc_resolver.
7043 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7044 bp_gnu_ifunc_resolver_return.
7045 (set_breakpoint_location_function): New parameter explicit_loc,
7046 describe it. Call find_pc_partial_function_gnu_ifunc with new
7047 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7048 EXPLICIT_LOC is not set.
7049 (set_raw_breakpoint): Set EXPLICIT_LOC for
7050 set_breakpoint_location_function.
7051 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7052 set_breakpoint_location_function.
7053 (mention): Support bp_gnu_ifunc_resolver and
7054 bp_gnu_ifunc_resolver_return.
7055 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7056 set_breakpoint_location_function.
7057 (update_breakpoint_locations): Remove static.
7058 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7059 bp_gnu_ifunc_resolver_return.
7060 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7061 bp_gnu_ifunc_resolver_return.
7062 (update_breakpoint_locations): New declaration.
7063 * elfread.c: Include gdbthread.h and regcache.h.
7064 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7066 (elf_gnu_ifunc_fns): Install them.
7067 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7068 (stub_gnu_ifunc_resolver_return_stop): New functions.
7069 (stub_gnu_ifunc_fns): Install them.
7070 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7071 and gnu_ifunc_resolver_return_stop.
7072 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7074 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7076 STT_GNU_IFUNC reader implementation.
7077 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7078 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7079 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7080 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7081 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7082 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7083 (elf_gnu_ifunc_resolve_addr): New.
7084 (elf_symfile_read): Call elf_rel_plt_read.
7085 (elf_gnu_ifunc_fns): New.
7086 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7087 Install elf_gnu_ifunc_fns.
7088 * infcall.c (find_function_return_type): New function.
7089 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7090 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7091 (stub_gnu_ifunc_resolve_name): New functions.
7092 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7093 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7094 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7096 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7098 Code cleanup for later STT_GNU_IFUNC support.
7099 * infcall.c (find_function_addr): Remove variable code, use explicit
7100 dereferences for it. Move VALUE_TYPE initialization later.
7102 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7105 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7106 (clear_pc_function_cache): Clear it.
7107 (find_pc_partial_function): Rename to ...
7108 (find_pc_partial_function_gnu_ifunc): ... this function. New
7109 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7110 (find_pc_partial_function): New wrapper for this function.
7111 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7113 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7115 GDB internal type support for STT_GNU_IFUNC.
7116 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7117 (elf_symtab_read): Set mst_text_gnu_ifunc for
7118 BSF_GNU_INDIRECT_FUNCTION.
7119 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7120 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7121 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7122 nodebug_got_plt_symbol.
7123 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7124 (TYPE_GNU_IFUNC): New.
7125 (struct main_type): New field flag_gnu_ifunc.
7126 (struct builtin_type): New field builtin_func_func.
7127 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7128 nodebug_got_plt_symbol.
7129 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7130 (in_gnu_ifunc_stub): New.
7131 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7133 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7134 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7135 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7137 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7138 * symtab.c (search_symbols): Likewise.
7139 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7140 and mst_slot_got_plt.
7141 (in_gnu_ifunc_stub): New declaration.
7143 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7145 Support a ring of related breakpoints.
7146 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7147 other functions, add gdb_assert.
7148 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7149 watchpoint_del_at_next_stop.
7150 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7151 (bpstat_stop_status): Handle ring in related_breakpoint.
7152 (set_raw_breakpoint_without_location): Initialize ring in
7154 (delete_breakpoint): Handle ring in related_breakpoint, use
7155 watchpoint_del_at_next_stop.
7156 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7158 2011-03-28 Tom Tromey <tromey@redhat.com>
7161 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7162 with `language_minimal'.
7164 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7166 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7167 instead of checking for STT_ARM_TFUNC symbol type.
7169 2011-03-25 Tom Tromey <tromey@redhat.com>
7171 * linespec.c (symbol_found): Restore line-based result for
7172 non-LOC_LABEL symbols.
7174 2011-03-25 Kai Tietz <ktietz@redhat.com>
7176 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7177 instead of strcmp for comparison.
7178 (tui_source_is_displayed): Likewise.
7179 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7181 2011-03-24 Mark Wielaard <mjw@redhat.com>
7183 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7185 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7186 (find_partial_die_in_comp_unit): Likewise in comment.
7187 (read_attribute_value): Likewise.
7188 (lookup_die_type): Likewise.
7189 (dwarf_form_name): Likewise.
7190 (dump_die_shallow): Likewise.
7191 (follow_die_ref_or_sig): Likewise.
7193 2011-03-24 Tom Tromey <tromey@redhat.com>
7195 PR breakpoints/11816:
7196 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7197 (decode_compound): Update.
7198 (find_function_symbol): New function.
7199 (decode_dollar): Update.
7200 (decode_label): Add 'function_symbol' parameter. Handle
7201 function-relative labels.
7202 (decode_variable): Update.
7203 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7204 not its line. Set `special_display' and canonical name for
7207 2011-03-24 Tom Tromey <tromey@redhat.com>
7209 * linespec.h (struct linespec_result) <special_display>: New
7211 * breakpoint.h (struct breakpoint) <display_canonical>: New
7213 * breakpoint.c (print_breakpoint_location): Respect
7215 (create_breakpoint_sal): Add 'display_canonical' parameter.
7216 (create_breakpoints_sal): Update.
7217 (create_breakpoint): Update.
7219 2011-03-24 Tom Tromey <tromey@redhat.com>
7221 * symtab.c (decode_line_spec): Update.
7222 * linespec.c (build_canonical_line_spec): Change type of
7224 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7225 (find_method, decode_all_digits, decode_dollar, decode_label)
7226 (symbol_found): Likewise.
7227 (init_linespec_result): New function.
7228 * breakpoint.c (struct captured_parse_breakpoint_args)
7229 <canonical_p>: New field, replaces addr_string_p.
7230 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7232 (parse_breakpoint_sals): Likewise.
7233 (do_captured_parse_breakpoint): Update.
7234 (create_breakpoint): Use struct linespec_result.
7235 (until_break_command): Update.
7236 (breakpoint_re_set_one): Update.
7237 (decode_line_spec_1): Update.
7238 * linespec.h (struct linespec_result): New.
7239 (init_linespec_result): Declare.
7241 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7243 * regcache.c (regcache_raw_read): If the target didn't supply a
7244 given raw register, mark it as unavailable.
7246 2011-03-23 Kai Tietz <ktietz@redhat.com>
7248 * breakpoint.c (clear_command): Use filename_cmp
7249 instead of strcmp for comparison.
7250 * buildsym.c (watch_main_source_file_lossage): Likewise.
7251 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7252 checking just for slash.
7253 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7254 strrchr and filename_cmp instead of strcmp for filenames.
7255 (add_old_header_file): Use filename_cmp
7256 instead of strcmp for comparison.
7257 * exec.c (exec_set_section_address): Likewise.
7258 * macrotab.c (macro_lookup_inclusion): Likewise.
7259 (macro_lookup_inclusion): Likewise.
7260 * elfread.c (_initialize_elfread): Likewise.
7261 (elfstab_offset_sections): Likewise.
7262 (elfstab_offset_sections): Use lbasename instead of
7264 * mdebugread.c (parse_partial_symbols): Likewise.
7265 (arse_partial_symbols): Use filename_(n)cmp instead of
7266 str(n)cmp for comparison.
7267 * minsyms.c (lookup_minimal_symbol): Likewise.
7268 * psymtab.c (read_psymtabs_with_filename): Likewise.
7269 * solib.c (solib_read_symbols): Likewise.
7270 (reload_shared_libraries_1): Likewise.
7271 * symmisc.c (maintenance_print_symbols): Likewise.
7272 * symfile.c (separate_debug_file_exists): Likewise.
7273 (reread_symbols): Likewise.
7274 (find_separate_debug_file_by_debuglink): Likewise.
7275 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7276 * source.c (add_path): Likewise.
7277 * symtab.c (filename_seen): Likewise.
7278 (file_matches): Likewise.
7279 (print_symbol_info): Likewise.
7280 (maybe_add_partial_symtab_filename): Likewise.
7281 (make_source_files_completion_list): Likewise.
7282 * xml-syscall.c (init_sysinfo): Likewise.
7283 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7284 IS_DIR_SEPARATOR for checking for trailing path separator.
7286 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7288 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7289 label abort_expression.
7290 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7291 DWARF_VALUE_OPTIMIZED_OUT.
7293 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7296 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7297 to linkage_name. Invert its value. Update the function comment.
7298 (c_type_print_varspec_suffix): Invert it at the caller.
7299 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7301 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7303 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7304 errors when reading the `stop_pc'.
7305 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7308 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7310 * NEWS: Document gdb.Write stream keyword.
7312 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7315 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7316 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7317 (dwarf2_add_field): Fix new_field->accessibility for
7318 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7320 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7324 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7325 other error classes. Do not print stack trace.
7327 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7329 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7330 (dwarf2_add_field): Fix new_field->accessibility for
7331 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7333 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7335 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7336 encountering a load via a non-SP register.
7338 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7340 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7341 field in returned unwinder.
7343 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7347 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7349 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7352 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7354 * frame.c (frame_unwind_register): Throw an error if unwinding the
7356 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7357 an unwind stop reason.
7358 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7359 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7360 UNWIND_UNAVAILABLE>: New.
7361 * inline-frame.c (inline_frame_unwind): Install
7362 default_frame_unwind_stop_reason.
7363 * frame-unwind.c: Include "exceptions.h".
7364 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7365 (default_frame_unwind_stop_reason): New.
7366 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7367 (default_frame_unwind_stop_reason): Declare.
7368 (struct frame_unwind) <stop_reason>: New function pointer.
7370 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7371 * dwarf2-frame.c: Include exceptions.h.
7372 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7373 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7374 computing the CFA. If such an error was thrown, set
7375 unavailable_retaddr.
7376 (dwarf2_frame_unwind_stop_reason): New.
7377 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7379 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7380 (dwarf2_signal_frame_unwind): Ditto.
7382 * amd64-tdep.c: Include "exceptions.h".
7383 (struct amd64_frame_cache): New field "base_p".
7384 (amd64_init_frame_cache): Clear it.
7385 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7386 Avoid reading registers with functions that throw if the register
7387 is not necessary to compute the frame base.
7388 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7389 swallowing NOT_AVAILABLE_ERROR.
7390 (amd64_frame_unwind_stop_reason): New.
7391 (amd64_frame_this_id): Don't build a frame id if the frame base
7393 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7394 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7395 base_p if the frame base was computable.
7396 (amd64_sigtramp_frame_unwind_stop_reason): New.
7397 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7398 frame base was unavailable.
7399 (amd64_sigtramp_frame_unwind): Install
7400 amd64_sigtramp_frame_unwind_stop_reason.
7401 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7402 base_p if the frame base was computable.
7403 (amd64_epilogue_frame_unwind_stop_reason): New.
7404 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7405 frame base was unavailable.
7406 (amd64_epilogue_frame_unwind): Install
7407 amd64_epilogue_frame_unwind_stop_reason.
7408 * i386-tdep.c: Include "exceptions.h".
7409 (struct i386_frame_cache): New field "base_p".
7410 (i386_init_frame_cache): Clear it.
7411 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7412 Avoid reading registers with functions that throw if the register
7413 is not necessary to compute the frame base.
7414 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7415 swallowing NOT_AVAILABLE_ERROR.
7416 (i386_frame_unwind_stop_reason): New.
7417 (i386_frame_this_id): Don't build a frame id if the frame base was
7419 (i386_frame_prev_register): Handle unavailable SP.
7420 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7421 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7422 base_p if the frame base was computable.
7423 (i386_epilogue_frame_unwind_stop_reason): New.
7424 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7425 base was unavailable.
7426 (i386_epilogue_frame_unwind): Install
7427 i386_epilogue_frame_unwind_stop_reason.
7428 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7429 base_p if the frame base was computable.
7430 (i386_sigtramp_frame_unwind_stop_reason): New.
7431 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7432 base was unavailable.
7433 (i386_sigtramp_frame_unwind): Install
7434 i386_sigtramp_frame_unwind_stop_reason.
7435 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7436 type's size, not the register's.
7437 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7439 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7440 default_frame_unwind_stop_reason.
7441 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7442 (alpha_heuristic_frame_unwind): Ditto.
7443 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7444 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7445 * avr-tdep.c (avr_frame_unwind): Ditto.
7446 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7448 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7449 * frv-tdep.c (frv_frame_unwind): Ditto.
7450 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7451 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7452 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7453 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7454 (hppa_stub_frame_unwind): Ditto.
7455 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7456 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7457 (ia64_libunwind_frame_unwind)
7458 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7459 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7460 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7461 * m32c-tdep.c (m32c_unwind): Ditto.
7462 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7463 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7464 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7465 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7466 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7467 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7468 * mep-tdep.c (mep_frame_unwind): Ditto.
7469 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7470 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7471 (mips_stub_frame_unwind): Ditto.
7472 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7473 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7474 * mt-tdep.c (mt_frame_unwind): Ditto.
7475 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7476 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7477 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7478 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7479 (s390_sigtramp_frame_unwind): Ditto.
7480 * score-tdep.c (score_prologue_unwind): Ditto.
7481 * sh-tdep.c (sh_frame_unwind): Ditto.
7482 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7483 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7484 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7485 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7486 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7487 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7488 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7489 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7490 (sparc64obsd_trapframe_unwind): Ditto.
7491 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7492 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7493 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7494 * v850-tdep.c (v850_frame_unwind): Ditto.
7495 * vax-tdep.c (vax_frame_unwind): Ditto.
7496 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7497 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7498 * xtensa-tdep.c (xtensa_unwind): Ditto.
7500 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7502 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7503 there's always a frame. Use get_frame_pc_if_available instead of
7504 get_frame_pc, and if there's no PC available, don't look up a
7507 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7509 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7512 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7514 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7517 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7519 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7520 * frame.c (frame_unwind_caller_pc_if_available): New.
7521 * stack.c (frame_info): Handle unavailable PC.
7523 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7525 * frame.c (frame_unwind_pc): Rename to ...
7526 (frame_unwind_pc_if_available): ... this. New `pc' output
7527 parameter. Change return type to int. Gracefully handle
7528 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7529 happened, or 1 otherwise.
7530 (frame_unwind_pc): Reimplement on top of
7531 frame_unwind_pc_if_available.
7532 (get_frame_func): Rename to ...
7533 (get_frame_func_if_available): New `pc' output parameter. Change
7534 return type to int. Gracefully handle the PC not being available.
7535 (get_frame_func): Reimplement on top of
7536 get_frame_func_if_available.
7537 (select_frame): Handle the PC being unavailable.
7538 (get_prev_frame): Handle the PC being unavailable.
7539 (get_frame_pc_if_available): New.
7540 (get_frame_address_in_block_if_available): New.
7541 (find_frame_sal): Handle the frame PC not being available.
7542 * frame.h (get_frame_pc_if_available): Declare.
7543 (get_frame_address_in_block_if_available): Declare.
7544 (get_frame_func_if_available): Declare.
7545 * stack.c (print_frame_info): Handle the PC being unavailable.
7546 (find_frame_funname): Ditto.
7547 (print_frame): Handle the PC being unavailable.
7548 (get_frame_language): Ditto.
7549 * blockframe.c (get_frame_block): Ditto.
7550 * macroscope.c (default_macro_scope): Ditto.
7551 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7553 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7555 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7556 NOT_AVAILABLE_ERROR when evaluating the location expression.
7558 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7560 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7561 returning that the register piece is unavailable/optimized out.
7562 (write_pieced_value): Handle get_frame_register_bytes returning
7563 that the register piece is unavailable/optimized out when doing a
7564 read-modify write of a bitfield.
7565 * findvar.c (value_from_register): Handle get_frame_register_bytes
7566 returning that the register piece is unavailable/optimized out.
7567 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7568 and `unavailablep'. Throw error on bad debug info. Use
7569 frame_register instead of frame_register_read, to fill in the new
7571 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7573 * valops.c: (value_assign): Adjust, and handle
7574 get_frame_register_bytes failing.
7575 * spu-tdep.c: Include exceptions.h.
7576 (spu_software_single_step): Adjust, and handle
7577 get_frame_register_bytes failing.
7578 (spu_get_longjmp_target): Ditto.
7579 * gdbarch.sh (register_to_value): Change to return int. New
7580 parameters `optimizedp' and `unavailablep'.
7581 * gdbarch.h, gdbarch.c: Regenerate.
7582 * i386-tdep.c (i386_register_to_value): Adjust to new
7583 gdbarch_register_to_value interface.
7584 * i387-tdep.c (i387_register_to_value): Ditto.
7585 * i387-tdep.h (i387_register_to_value): Ditto.
7586 * alpha-tdep.c (alpha_register_to_value): Ditto.
7587 * ia64-tdep.c (ia64_register_to_value): Ditto.
7588 * m68k-tdep.c (m68k_register_to_value): Ditto.
7589 * mips-tdep.c (mips_register_to_value): Ditto.
7590 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7592 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7594 * findvar.c (value_of_register): Mark the value as unavailable, if
7595 the register is unavailable.
7596 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7597 (frame_register): New `unavailablep' parameter.
7598 (frame_register_read): Update comment.
7599 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7600 Set it if the register is unavailable. If the register is
7601 unavailable, clear the output buffer.
7602 (frame_register): New `unavailablep' parameter. Pass it down.
7603 (frame_unwind_register): Adjust.
7604 (put_frame_register): Adjust.
7605 (frame_register_read): Adjust. Also return false if the register
7607 (frame_register_unwind_location): Adjust.
7608 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7609 is unavailable, mark the value accordingly.
7610 * stack.c (frame_info): Handle unavailable registers.
7612 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7614 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7615 simplify, using regcache_cooked_read.
7617 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7619 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7620 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7621 (regcache_raw_read_unsigned, regcache_raw_read_part)
7622 (regcache_cooked_read, regcache_cooked_read_signed)
7623 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7624 (regcache_cooked_read_ftype): Change return to enum
7626 * regcache.c: Include exceptions.h
7627 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7628 (do_cooked_read): Change return to enum register_status. Always
7629 forward to regcache_cooked_read.
7630 (regcache_raw_read): Change return to enum register_status. If
7631 the register is not REG_VALID, memset the buffer. Return the
7633 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7634 return the register's status.
7635 (regcache_raw_read_unsigned): Ditto.
7636 (regcache_cooked_read): Change return to enum register_status.
7637 Assert that with read-only regcaches, the register's status must
7638 be known. If the regcache is read-only, and the register is not
7639 REG_VALID, memset the buffer. Return the register's status.
7640 (regcache_cooked_read_signed): Change return to enum
7641 register_status. Handle non-REG_VALID registers and return the
7643 (regcache_cooked_read_unsigned): Change return to enum
7644 register_status. Handle non-REG_VALID registers and return the
7646 (regcache_xfer_part, regcache_raw_read_part)
7647 (regcache_cooked_read_part): Change return to enum
7648 register_status. Return the register's status.
7649 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7651 (regcache_dump): Handle unavailable cooked registers.
7652 * frame.c (do_frame_register_read): Adjust interface to match
7653 regcache_cooked_read_ftype.
7654 * gdbarch.sh (pseudo_register_read): Change return to enum
7656 * gdbarch.h, gdbarch.c: Regenerate.
7658 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7660 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7661 register_status. If reading a raw register indicates the raw
7662 register is not valid, return the raw register's status,
7663 otherwise, return REG_VALID.
7664 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7665 register_status. Handle non-REG_VALID raw registers and return
7666 the register's status.
7667 * arm-tdep.c (arm_neon_quad_read)
7668 (arm_pseudo_read): Change return to enum register_status. Handle
7669 non-REG_VALID raw registers and return the register's status.
7670 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7671 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7672 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7673 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7674 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7676 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7677 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7678 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7679 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7680 (m32c_pseudo_register_read): Change return to enum
7681 register_status. Adjust.
7682 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7683 enum register_status. Return the register's status.
7684 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7685 register_status. Return the register's status.
7686 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7687 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7688 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7689 * rs6000-tdep.c (move_ev_register_func): New typedef.
7690 (e500_move_ev_register): Use it. Change return to enum
7691 register_status. Return the register's status.
7692 (do_regcache_raw_read): New function.
7693 (do_regcache_raw_write): New function.
7694 (e500_pseudo_register_read): Change return to enum
7695 register_status. Return the register's status. Use
7696 do_regcache_raw_read.
7697 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7698 (dfp_pseudo_register_read): Change return to enum register_status.
7699 Return the register's status.
7700 (vsx_pseudo_register_read): Ditto.
7701 (efpr_pseudo_register_read): Ditto.
7702 (rs6000_pseudo_register_read): Ditto.
7703 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7704 register_status. Return the register's status.
7705 * sh64-tdep.c (pseudo_register_read_portions): New function.
7706 (sh64_pseudo_register_read): Change return to enum
7707 register_status. Use pseudo_register_read_portions. Return the
7709 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7710 register_status. Return the register's status.
7711 * sh-tdep.c (pseudo_register_read_portions): New function.
7712 (sh_pseudo_register_read): Change return to enum register_status.
7713 Use pseudo_register_read_portions. Return the register's status.
7714 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7715 enum register_status. Return the register's status.
7716 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7717 * spu-tdep.c (spu_pseudo_register_read_spu)
7718 (spu_pseudo_register_read): Ditto.
7719 * xtensa-tdep.c (xtensa_register_read_masked)
7720 (xtensa_pseudo_register_read): Ditto.
7721 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7723 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7725 * python/py-value.c (valpy_getitem): Fix formatting of error function
7728 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7730 ARI fixes: Add missing internationalization markups throughout
7732 * darwin-nat-info.c: Ditto.
7735 * mi/mi-main.c: Ditto.
7737 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7739 ARI fixes: Add missing internationalization markups throughout
7742 * cp-name-parser.y: Ditto.
7745 * objc-exp.y: Ditto.
7748 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7750 ARI fixes: Messages should have no trailing new lines.
7751 * darwin-nat.c (mach_check_error): Remove trailing new line from
7752 warning function call message.
7753 * record.c (bfdcore_read): Idem for error call.
7755 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7757 * common/signals.c (target_signal_from_host): Add _ markup to error
7758 function call message.
7759 (target_signal_to_host): Add _ markup and remove trailing new line
7760 from warning call message.
7761 (target_signal_from_command): Add _ markup to error function call
7764 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7768 * python/python.c (gdbpy_write): Accept a stream argument and
7769 operate to the appropriate stream.
7770 (gdbpy_flush): Likewise.
7771 (_initialize_python): Add stream constants.
7772 (finish_python_initialization): Add GdbOutputErrorFile class.
7774 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7776 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7778 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7780 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7781 to store_signed_integer. Add debug message when relocating CALL
7782 instructions. Fix formatting of debug message.
7783 * i386-tdep.c (i386_relocate_instruction): Ditto.
7785 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7787 * target.h (struct target_ops): Remove to_lookup_symbol field.
7788 (target_lookup_symbol): Delete macro.
7789 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7790 (update_current_target, setup_target_debug): Remove handling
7791 of to_lookup_symbol target_ops field.
7792 * ada-tasks.c (get_known_tasks_addr): Remove use of
7793 target_lookup_symbol.
7794 * coffread.c (coff_symtab_read): Likewise.
7795 * dbxread.c (read_dbx_symtab): Ditto.
7797 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7800 * configure.ac: Add getthrds declaration check.
7801 * configure, config.in: Regenerate.
7802 * aix-thread.c (getthrds): Declare only if not already declared
7803 in procinfo.h. More declaration out of get_signaled_thread to
7806 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7808 * python/py-symtab.c: Populate symtab_object_methods,
7810 (stpy_is_valid): New function.
7811 (salpy_is_valid): Ditto.
7812 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7813 (sympy_is_valid): New function.
7814 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7815 (objfpy_is_valid): New function.
7816 * python/py-inferior.c: Populate inferior_object_methods.
7817 (infpy_is_valid): New function.
7818 * python/py-infthread.c: Populate thread_object_methods.
7819 (thpy_is_valid): New function.
7820 * python/py-block.c: Declare block_object_methods. Populate. Declare
7821 block_iterator_object_methods. Populate.
7822 (blpy_is_valid): New function.
7823 (blpy_iter_is_valid): Ditto.
7825 2011-03-16 Keith Seitz <keiths@redhat.com>
7827 * linespec.c (find_methods): Canonicalize NAME before looking
7829 (name_end): New function.
7830 (keep_name_info): New function.
7831 (decode_line_1): Use keep_name_info.
7832 (decode_compound): Likewise.
7833 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7834 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7837 * linespec.c (locate_first_half): Keep overload information, too.
7838 (decode_compound): Use a string to represent break characters
7840 If P points to a break character, do not increment it.
7841 For C++ and Java, keep overload information and relevant keywords.
7842 If we cannot find a symbol, search the minimal symbols.
7845 * linespec.c (decode_compound): Rename SAVED_ARG to
7847 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7849 Pass a valid block to lookup_symbol.
7850 (lookup_prefix_sym): Likewise.
7851 (find_method): Construct search name based on SYM_CLASS instead
7853 * psymtab.c (lookup_partial_symbol): Add language parameter.
7854 (lookup_symbol_aux_psymtabs): Likewise.
7855 Don't assume that the psymtab we found was the right one. Search
7856 for the desired symbol in the symtab to be certain.
7857 (psymtab_search_name): New function.
7858 (lookup_partial_symbol): Use psymtab_search_name.
7859 Add language parameter.
7860 (read_symtabs_for_function): Add language parameter and pass to
7861 lookup_partial_symbol.
7862 (find_symbol_file_from_partial): Likewise.
7864 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7867 * dwarf2read.c (noop_record_line): New function.
7868 (dwarf_decode_lines): Ignore line tables for GCd functions.
7870 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7872 Fix ARI warnings about new lines at the end of messages, which
7873 are unneeded as there is a new line added at the end of the message
7875 * darwin-nat.c (darwin_stop_inferior): Ditto.
7876 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7877 * dfp.c (decimal_to_number): Ditto.
7878 * exec.c (print_section_info): Ditto.
7879 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7880 * osdata.c (get_osdata): Ditto.
7881 * record.c (bfdcore_write): Ditto.
7882 * remote-mips.c (mips_readchar): Ditto.
7883 * remote.c (read_ptid): Ditto.
7884 * ser-mingw.c (ser_windows_raw): Ditto.
7885 * tracepoint.c (add_local_symbols): Ditto.
7886 * windows-nat.c (fake_create_process): Ditto.
7888 2011-03-16 Tom Tromey <tromey@redhat.com>
7890 * tracepoint.c (stop_tracing): Don't declare.
7891 * event-top.c (after_char_processing_hook): Add `(void)'.
7893 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7895 * NEWS: Add Parameter sub-classing description.
7897 2011-03-16 Kai Tietz <ktietz@redhat.com>
7899 * MAINTAINERS: Update my e-mail address.
7901 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7903 * MAINTAINERS: Add myself for write after approval privileges.
7905 2011-03-15 Michael Snyder <msnyder@vmware.com>
7907 * frame.c (find_frame_sal): Assert sym is not null.
7909 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7911 * objc-lang.c (selectors_info): Check strchr for null result.
7913 * stabsread.c (define_symbol): Guard against bad stabstring input.
7915 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7917 Remove trailing spaces and tabulations from pascal language
7922 p-valprint.c: Ditto.
7924 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7926 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7927 than LOW. Comment it.
7928 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7929 HIGHPC not strictly higher than LOWPC.
7931 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7933 Fix formatting of function declarations returning a pointer in
7935 * varobj.c (varobj_add_child): Ditto.
7936 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7937 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7939 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7941 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7942 for the "generic" vector ABI used with GCC 4.3 and later.
7943 (ppc64_sysv_abi_return_value): Likewise.
7945 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7947 * infcall.c (call_function_by_hand): Function return value is
7948 always a non_lval, even when using struct_return.
7950 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7952 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7953 (map_display_numbers): New.
7954 (do_delete_display): New.
7955 (undisplay_command): Use map_display_numbers.
7956 (do_enable_disable_display): New.
7957 (enable_disable_display_command): New function.
7958 (enable_display): Delete.
7959 (enable_display_command): New.
7960 (disable_display_command): Reimplement.
7961 (_initialize_printcmd): Adjust "enable display" command to use
7962 `enable_display_command' as callback.
7964 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7966 * NEWS: Add Python breakpoint 'stop' operation.
7968 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7970 * NEWS: Delete duplicate entry. Fix typo.
7972 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7974 Fix ARI warning about function names in first column.
7975 Put prototype declaration on same line as return type.
7976 * objc-exp.y: Ditto.
7978 * python/py-stopevent.h: Ditto.
7979 For long function names, split parameters to
7980 allow function name on same line as return type.
7981 * solib-pa64.c: Ditto.
7984 For long function declaration, use single line.
7985 * hppa-tdep.h: Ditto.
7986 * inferior.h: Ditto.
7988 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7990 * python/python.h: Declare gdbpy_should_stop and
7991 gdbpy_breakpoint_has_py_cond.
7992 * python/python.c: Add python.h to includes. Remove python.h from
7993 HAVE_PYTHON definition
7994 (gdbpy_should_stop): New dummy function.
7995 (gdbpy_breakpoint_has_py_cond): New dummy function.
7996 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7997 sub-classing capabilities.
7998 (gdbpy_should_stop): New function.
7999 (gdbpy_breakpoint_has_py_cond): New function.
8000 (local_setattro): New function.
8001 * breakpoint.c (condition_command): Add check for Python 'stop'
8003 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8004 operation function as part of stop/continue tests.
8006 2011-03-14 Tom Tromey <tromey@redhat.com>
8009 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8010 (needs_frame_dwarf_call): Likewise.
8012 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8014 Fix ARI warning about functions without parameters that do not
8016 * breakpoint.c (all_tracepoints): Replace () by (void).
8017 * f-exp.y (match_string_literal): Ditto.
8019 * m2-exp.y (yylex): Ditto.
8020 * mep-tdep.c (current_me_module): Ditto.
8021 (current_options): Ditto.
8022 (current_cop_data_bus_width): Ditto.
8023 (current_cr_names): Ditto.
8024 (current_cr_is_float): Ditto.
8025 (current_ccr_names): Ditto.
8026 * objc-exp.y (yylex): Ditto.
8027 * p-exp.y (yylex): Ditto.
8028 * remote.c (send_interrupt_sequence): Ditto.
8029 * tracepoint.c (current_trace_status): Ditto.
8030 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8031 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8033 2011-03-11 Michael Snyder <msnyder@vmware.com>
8035 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8036 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8037 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8038 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8039 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8041 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8042 (delete_async_event_handler): Ditto.
8044 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8046 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8048 * top.c (set_verbose): Assert showcmd was found.
8050 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8052 * xtensa-tdep.c (warning_once): Correct style issues.
8054 2011-03-11 Yao Qi <yao@codesourcery.com>
8056 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8058 2011-03-11 Andreas Schwab <schwab@redhat.com>
8060 * common/aclocal.m4: Remove.
8062 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8064 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8065 (xtensa_write_register, xtensa_read_register): Likewise.
8066 (xtensa_hextochar): Removed.
8067 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8069 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8071 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8072 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8073 (xtensa_alloc_frame_cache): Add initialization for new fields.
8074 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8075 (warning_once): New function.
8076 (xtensa_insn_kind): New item c0opc_and.
8077 (call0_classify_opcode): Add the case for AND instruction.
8078 (call0_track_op): Change arguments. New local variable litbase.
8079 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8080 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8082 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8083 (call0_analyze_prologue): Update the comments. Change arguments.
8084 Add the variety of updates to handle extended prologues, which now can
8085 conduct dynamic stack adjustments.
8086 (call0_frame_cache): Likewise.
8087 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8088 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8090 2011-03-10 Michael Snyder <msnyder@vmware.com>
8092 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8093 (cmd_qtframe): Ditto.
8094 (cmd_qtbuffer): Ditto.
8095 (cmd_bigqtbuffer): Ditto.
8097 2011-03-10 Tom Tromey <tromey@redhat.com>
8099 * tracepoint.c (trace_actions_command): Update.
8100 * thread.c (thread_apply_command): Update.
8101 * reverse.c (delete_bookmark_command): Update.
8102 (bookmarks_info): Update.
8103 * printcmd.c (undisplay_command): Update.
8104 * memattr.c (mem_enable_command): Update.
8105 (mem_disable_command): Update.
8106 (mem_delete_command): Update.
8107 * inferior.c (detach_inferior_command): Update.
8108 (kill_inferior_command): Update.
8109 (remove_inferior_command): Update.
8110 * cli/cli-utils.h (struct get_number_or_range_state): New.
8111 (init_number_or_range): Declare.
8112 (get_number_or_range): Update.
8113 * cli/cli-utils.c (init_number_or_range): New function.
8114 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8116 (number_is_in_list): Update.
8117 * breakpoint.h (get_tracepoint_by_number): Update.
8118 * breakpoint.c (map_breakpoint_numbers): Update for change to
8119 get_number_or_range.
8120 (find_location_by_number): Use get_number, not
8121 get_number_or_range.
8122 (trace_pass_set_count): New function.
8123 (trace_pass_command): Update for change to get_number_or_range.
8125 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8128 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8130 * python/py-param.c (add_setshow_generic): Add set/show callback
8131 parameters. Register Python object context.
8132 (get_show_value): New function.
8133 (get_set_value): New function.
8134 (call_doc_function): New function.
8135 (get_doc_string): Move behind get_show_value/get_set_value.
8137 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8139 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8141 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8143 * xtensa-tdep.c (xtensa_read_register): Add comment.
8144 (xtensa_write_register): Likewise.
8145 (xtensa_hextochar): Add comment and update to match coding conventions.
8146 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8147 (execute_l32e, execute_s32e, execute_code): Update comments.
8148 (xtensa_exception_handler_t): Update to match coding conventions.
8149 (xtensa_insn_kind): Likewise.
8151 2011-03-09 Michael Snyder <msnyder@vmware.com>
8153 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8155 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8157 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8159 2011-03-09 Tom Tromey <tromey@redhat.com>
8161 * thread.c (restore_selected_frame): Handle frame_level == -1.
8162 (make_cleanup_restore_current_thread): Use
8163 get_selected_frame_if_set.
8164 * frame.h (get_selected_frame_if_set): Declare.
8165 * frame.c (get_selected_frame_if_set): New function.
8167 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8169 * cli/cli-cmds.c (shell_escape): Use lbasename.
8170 * coffread.c (coff_start_symtab): Constify parameter.
8171 (complete_symtab): Constify `name' parameter.
8172 (coff_symtab_read): Constify `filestring' local.
8173 (coff_getfilename): Constify return and `result' local.
8175 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8176 * linux-fork.c (info_checkpoints_command): Use lbasename.
8177 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8178 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8179 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8180 * procfs.c (procfs_make_note_section): Use lbasename.
8181 * tui/tui-io.c (printable_part): Constity return and parameter.
8183 (print_filename): Constify parameters, and local `s'.
8184 (tui_rl_display_match_list): Constify local `temp'.
8186 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8189 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8190 Fix DWARF-3+ DW_AT_accessibility default assumption.
8191 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8192 cu->header.version >= 3.
8194 2011-03-09 Yao Qi <yao@codesourcery.com>
8196 * common/Makefile.in: Remove.
8197 * common/configure: Remove.
8198 * common/configure.ac: Remove.
8200 2011-03-09 Yao Qi <yao@codesourcery.com>
8203 2011-02-11 Yao Qi <yao@codesourcery.com>
8205 * common/Makefile.in: Add copyright header.
8207 2011-02-11 Yao Qi <yao@codesourcery.com>
8209 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8211 * configure.ac: Add common to sub dir.
8212 * configure: Regenerate.
8214 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8216 * xtensa-tdep.c (call0_ret): New function.
8217 (xtensa_skip_prologue): Speed up analysis.
8219 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8221 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8222 while executing MI command -data-list-changed-registers.
8224 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8226 * xtensa-tdep.c (xtensa_read_register): New function.
8227 (xtensa_write_register): New function.
8228 (xtensa_find_register_by_name): New function.
8229 (xtensa_windowed_frame_cache): Update comments in type description.
8230 (xtensa_frame_cache): Likewise.
8231 (xtensa_window_interrupt_insn): New function.
8232 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8233 (xtensa_insn_kind): Add new instructions.
8234 (rwx_special_register): New function.
8235 (call0_classify_opcode): Add new instructions to the analysis.
8236 (a0_saved, a7_saved, a11_saved): New variables.
8237 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8238 (execute_l32e): New function.
8239 (execute_s32e): New function.
8240 (xtensa_exception_handler_t): New type.
8241 (execute_code): New function.
8242 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8243 analysis for Xtensa Window Exception handlers.
8245 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8247 * xtensa-tdep.c (TX_PS): New.
8248 (windowing_enabled): Update to count for Call0 ABI.
8249 (xtensa_hextochar): New.
8250 (xtensa_init_reggroups): Make algorithm generic.
8251 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8253 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8255 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8257 2011-03-08 Michael Snyder <msnyder@vmware.com>
8259 * i386-tdep.c (i386_follow_jump): Check return value of
8261 (i386_analyze_struct_return): Ditto.
8262 (i386_skip_probe): Ditto.
8263 (i386_match_insn): Ditto.
8264 (i386_skip_noop): Ditto.
8265 (i386_analyze_frame_setup): Ditto.
8266 (i386_analyze_register_saves): Ditto.
8267 (i386_skip_prologue): Ditto.
8268 (i386_skip_main_prologue): Ditto.
8270 * target.c (read_whatever_is_readable): Fix memory leak.
8272 * i386-tdep.c (i386_process_record): Document fall through.
8274 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8276 Fix DWARF-3+ DW_AT_accessibility default assumption.
8277 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8278 cu->header.version >= 3.
8280 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8282 * remote.c (remote_check_symbols): Skip if the target has no
8285 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8287 * target.c (read_whatever_is_readable): Reformat comment,
8288 with a minor typo fix. Minor reformatting of the code.
8290 2011-03-08 Yao Qi <yao@codesourcery.com>
8292 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8293 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8294 Use cached result instead of calling displaced_in_arm_mode again.
8295 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8296 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8297 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8298 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8299 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8300 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8301 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8302 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8303 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8304 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8305 (arm_catch_kernel_helper_return): Likewise.
8306 * gdb/arm-tdep.h : Update function declarations.
8308 2011-03-07 Michael Snyder <msnyder@vmware.com>
8310 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8312 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8314 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8316 * elfread.c (elf_symtab_read): Stop memory leak.
8318 * main.c (captured_main): Fix memory leak.
8320 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8322 * ada-lang.c (compare_names): Call is_name_suffix with string1
8325 2011-03-07 Tom Tromey <tromey@redhat.com>
8327 * xcoffread.c (xcoff_sym_fns): Update.
8328 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8329 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8330 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8331 (symbol_file_add_with_addrs_or_offsets): Likewise.
8332 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8333 * somread.c (som_sym_fns): Update.
8334 * psymtab.h (require_partial_symbols): Declare.
8335 * psymtab.c (require_partial_symbols): New function.
8336 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8337 (ALL_OBJFILE_PSYMTABS): Undef.
8338 (ALL_PSYMTABS): Move from psympriv.h.
8339 (lookup_partial_symtab, find_pc_sect_psymtab)
8340 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8341 (find_last_source_symtab_from_partial)
8342 (forget_cached_source_info_partial)
8343 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8344 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8345 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8346 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8347 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8348 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8349 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8350 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8351 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8353 * mipsread.c (ecoff_sym_fns): Update.
8354 * machoread.c (macho_sym_fns): Update.
8355 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8356 (read_psyms): New function.
8357 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8358 (elf_sym_fns_lazy_psyms): New global.
8359 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8360 dwarf2_build_psymtabs.
8361 * dbxread.c (aout_sym_fns): Update.
8362 * coffread.c (coff_sym_fns): Update.
8364 2011-03-07 Tom Tromey <tromey@redhat.com>
8366 * infrun.c (print_exited_reason): Include inferior id and pid in
8369 2011-03-07 Tom Tromey <tromey@redhat.com>
8371 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8373 (target_has_execution_1): Update.
8374 (target_has_execution_current): Declare.
8375 (target_has_execution): Call target_has_execution_current.
8376 (default_child_has_execution): Update.
8377 * target.c (default_child_has_execution): Add 'the_ptid'
8379 (target_has_execution_1): Likewise.
8380 (target_has_execution_current): New function.
8381 (add_target): Update.
8382 (init_dummy_target): Update.
8383 * remote-m32r-sdi.c (m32r_has_execution): New function.
8384 (init_m32r_ops): Use it.
8385 * record.c (record_core_has_execution): Now static. Add
8386 'the_ptid' parameter.
8387 * inferior.c (have_live_inferiors): Don't save current thread.
8388 Use target_has_execution_1.
8390 2011-03-07 Yao Qi <yao@codesourcery.com>
8392 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8394 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8396 * elfread.c (elf_symtab_read): Minor reformatting.
8398 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8400 * objc-lang.c (selectors_info): Minor reformatting.
8402 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8404 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8406 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8407 Michael Snyder <msnyder@vmware.com>
8409 * ada-valprint.c (ada_val_print_array): Move the declaration of
8410 "byte_order" and "elttype" inside the block where these variables
8411 are actually used. Remove some special handling for the case
8412 where "elttype" and "eltlen" are null. Replace by a comment
8413 and a couple of assertion checks.
8415 2011-03-05 Michael Snyder <msnyder@vmware.com>
8417 * source.c (add_path): Replace semicolon at end of block.
8418 * dwarf2expr.c (execute_stack_op): Ditto.
8420 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8422 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8423 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8424 (bfin-*-*): Likewise.
8426 2011-03-05 Michael Snyder <msnyder@vmware.com>
8428 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8429 * mdebugread.c (parse_symbol): Ditto.
8430 * parse.c (parse_exp_in_context): Ditto.
8431 * source.c (add_path): Ditto.
8432 * utils.c (gnu_debuglink_crc32): Ditto.
8433 * varobj.c (variable_language): Ditto.
8435 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8437 2011-03-04 Michael Snyder <msnyder@vmware.com>
8439 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8441 * symfile.c (simple_overlay_update): Check for null return value
8442 from lookup_minimal_symbol.
8444 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8446 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8448 * eval.c (parse_and_eval_address_1): Remove function.
8449 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8450 instead of parse_and_eval_address_1.
8451 * value.h (parse_and_eval_address_1): Remove prototype.
8453 2011-03-04 Michael Snyder <msnyder@vmware.com>
8455 * remote.c (putpkt_binary): Document that case stmt falls through.
8457 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8459 * breakpointc (print_it_typical): Move NULL check from here...
8460 (print_bp_stop_message): ... to here.
8462 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8464 * breakpoint.c (enable_command): Use break instead of continue,
8465 and fill in a missing break.
8466 (disable_command): Ditto.
8468 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8470 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8471 (terminal_save_ours): Remove misleading comment.
8472 (inflow_inferior_data_cleanup): Free ttystate.
8473 (inflow_inferior_exit): Likewise.
8474 (copy_terminal_info): Copy ttystate.
8476 * serial.c (serial_copy_tty_state): New function.
8477 * serial.h (serial_copy_tty_state): Add prototype.
8478 (struct serial_ops): Add copy_tty_state callback.
8479 * ser-base.c (ser_base_copy_tty_state): New function.
8480 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8481 * ser-go32.c (dos_copy_tty_state): New function.
8482 (dos_ops): Install copy_tty_state callback.
8483 * ser-mingw.c (_initialize_ser_windows): Likewise.
8484 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8485 * ser-unix.c (hardwire_copy_tty_state): New function.
8486 (_initialize_ser_hardwire): Install it.
8488 2011-03-04 Michael Snyder <msnyder@vmware.com>
8490 * breakpoint.c (create_breakpoint): Add missing break statement.
8492 Reverting this patch:
8493 * infcall.c (call_function_by_hand): Add break statements for lint.
8495 Reverting this patch:
8496 * cli/cli-script.c (script_from_file): Add break for lint.
8498 2011-03-04 Michael Snyder <msnyder@vmware.com>
8500 * solib.c (reload_shared_libraries_1): Close memory leak.
8502 2011-03-03 Tom Tromey <tromey@redhat.com>
8505 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8508 2011-03-03 Michael Snyder <msnyder@vmware.com>
8510 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8511 fields of struct 'st' to zero.
8513 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8514 sal.pspace before calling set_current_source_symtab_and_line.
8516 2011-03-03 Yao Qi <yao@codesourcery.com>
8518 * Makefile.in (configure-common): Remove. Let Makefile
8519 in dir common to rebuild itself.
8520 (common/Makefile): Likewise.
8522 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8524 * utils.c (parse_escape): Add i18n markup in error message.
8526 2011-03-03 Yao Qi <yao@codesourcery.com>
8528 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8530 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8531 (displaced_write_reg, displaced_read_reg): Likewise.
8532 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8533 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8534 (cleanup_branch): Replace magic number 14 and 15 with
8535 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8537 2011-03-02 Michael Snyder <msnyder@vmware.com>
8539 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8541 * cli/cli-script.c (script_from_file): Add break for lint.
8543 * mdebugread.c (parse_partial_symbols): Fix indent.
8545 * target-descriptions.c (tdesc_gdb_type): No need to call
8546 xstrdup, callee saves a copy.
8548 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8550 * infcall.c (call_function_by_hand): Add break statements for lint.
8552 * utils.c (parse_escape): Escape the escape char.
8554 * python/py-inferior.c (build_inferior_list): Error out if
8555 PyList_Append fails.
8556 (gdbpy_inferiors): Error out if build_inferior_list fails.
8558 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8561 * record.c (record_restore): Move printf to before error return.
8563 2011-03-02 Yao Qi <yao@codesourcery.com>
8565 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8566 is_thumb and insn_size.
8567 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8568 on both ARM and Thumb mode.
8569 (arm_process_displaced_insn): Set is_thumb and insn_size.
8570 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8571 (arm_displaced_step_fixup): Likewise.
8573 2011-03-01 Michael Snyder <msnyder@vmware.com>
8575 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8577 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8579 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8581 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8583 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8586 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8587 which shadows function parameter.
8589 * tracepoint.c (create_tsv_from_upload): Superfluous call
8590 to xstrdup. Callee already calls xstrdup.
8592 * linespec.c (decode_line_1): Remove unnecessary null check.
8594 * tracepoint.c (scope_info): Fix mem leak, remove underused
8597 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8598 superfluous null check.
8600 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8601 (value_of_builtin_frame_fp_reg): Ditto.
8603 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8605 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8608 * linespec.c (decode_line_1): Check for null before dereference.
8610 * reverse.c (record_restore): Move null-check to before pointer
8613 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8615 * objc-lang.c (selectors_info): Add explanitory comment.
8616 (classes_info): Ditto.
8618 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8620 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8621 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8622 versions of the trampoline. Handle Thumb vs. ARM addresses.
8623 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8624 (arm_linux_init_abi): Install it.
8625 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8626 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8628 2011-02-28 Michael Snyder <msnyder@vmware.com>
8630 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8631 a little bigger, to avoid possibility of an overflow.
8633 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8634 buffers a little bigger, to avoid possibility of an overflow.
8636 * coffread.c (coff_getfilename): Add check to avoid overflow.
8638 * objc-lang.c (selectors_info): Add a small safety margin to
8640 (classes_info): Error out on too long REGEXP.
8642 * infrun.c (handle_inferior_event): Remove unused function call.
8644 * fork-child.c (fork_inferior): Remove ifdef'd code and
8647 * linux-thread-db.c (attach_thread): Discard unused value.
8649 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8651 * remote.c (remote_get_noisy_reply): Discard unused value.
8652 (remote_vcont_resume): Ditto.
8653 (remote_stop_ns): Ditto.
8655 * linespec.c (decode_objc): Delete unused variable.
8657 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8659 * dwarf2read.c (add_partial_symbol): Discard unused values.
8660 (read_base_type): Delete unused variable.
8662 * dbxread.c (read_dbx_symtab): Discard unused value.
8664 * eval.c (evaluate_subexp_standard): Delete unused variable,
8665 and discard unused values.
8667 * infcmd.c (_initialize_infcmd): Discard unused values.
8669 * stabsread.c (rs6000_builtin_type): Missing break statement.
8671 * dbxread.c (process_one_symbol): Discard unused value.
8673 * coffread.c (coff_end_symtab): Delete unused variable.
8675 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8676 (dwarf2_add_typedef): Delete unused variable.
8677 (read_namespace): Ditto.
8678 (dwarf_decode_macros): Ditto.
8680 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8682 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8684 * p-valprint.c (pascal_val_print): Discard unused value.
8686 * utils.c (nquery): Call va_end before return;
8690 * proc-service.c (ps_plog): Call va_end before return.
8692 2011-02-28 Tom Tromey <tromey@redhat.com>
8694 * python/python.c (gdbpy_value_cst): New global.
8695 (_initialize_python): Initialize it.
8696 * python/python-internal.h (gdbpy_value_cst): Declare.
8697 * python/py-value.c (convert_value_from_python): Use
8700 2011-02-28 Michael Snyder <msnyder@vmware.com>
8702 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8704 * breakpoint.c (catch_syscall_completer): Free malloced list.
8706 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8708 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8709 (lval_func_check_synthetic_pointer): Ditto.
8710 (lval_func_free_closure): Fix use-after-free.
8712 2011-02-28 Tom Tromey <tromey@redhat.com>
8714 * psymtab.c (expand_partial_symbol_tables): Use
8715 ALL_OBJFILE_PSYMTABS.
8717 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8719 * objc-lang.c (selectors_info): Error on too long REGEXP.
8721 2011-02-28 Michael Snyder <msnyder@vmware.com>
8723 * python/py-param.c (set_parameter_value): Add missing
8726 * linux-record.c (record_linux_system_call): Add missing
8729 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8731 * breakpoint.c (print_one_breakpoint_location): Remove unused
8732 argument PRINT_ADDRESS_BITS. Update callers.
8733 (print_one_breakpoint): Likewise.
8735 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8737 * breakpoint.c (wrap_indent_at_field): New function.
8738 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8739 Allocate ui_stream locally instead of using STB argument.
8740 (print_one_breakpoint_location): Update call.
8741 * ui-out.c (ui_out_query_field): New function.
8742 * ui-out.h (ui_out_query_field): Add prototype.
8744 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8746 From Michael Snyder <msnyder@vmware.com>
8747 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8749 2011-02-27 Michael Snyder <msnyder@vmware.com>
8751 * objc-lang.c (selectors_info): Prevent string overrun.
8753 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8756 * symtab.c (rbreak_command): Move variable 'file_name' to
8759 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8760 param with a local variable of the same name.
8762 2011-02-27 Michael Snyder <msnyder@vmware.com>
8764 * value.c (value_from_history_ref): New function.
8765 * value.h (value_from_history_ref): Export.
8766 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8767 to parse value history references.
8768 * cli/cli-utils.h (get_number_trailer): Update comment.
8770 2011-02-27 Michael Snyder <msnyder@vmware.com>
8772 * inferior.c (detach_inferior_command): Use get_number_or_range.
8773 (kill_inferior_command): Ditto.
8774 (remove_inferior_command): Ditto.
8775 (initialize_inferiors): Make command names plural.
8776 Update help strings.
8778 2011-02-27 Michael Snyder <msnyder@vmware.com>
8780 * darwin-nat-info.c: Fix comment typo.
8781 * dwarf2expr.h: Ditto.
8782 * fbsd-nat.c: Ditto.
8783 * fbsd-nat.h: Ditto.
8784 * frame-unwind.h: Ditto.
8786 * hppa-hpux-tdep.c: Ditto.
8787 * i386-linux-nat.c: Ditto.
8788 * linux-nat.c: Ditto.
8789 * nbsd-nat.c: Ditto.
8790 * nbsd-nat.h: Ditto.
8791 * ppc-linux-tdep.c: Ditto.
8794 * tui/tui-winsource.c: Ditto.
8796 2011-02-26 Michael Snyder <msnyder@vmware.com>
8798 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8800 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8802 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8803 with a local variable of the same name.
8805 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8806 param with a local variable of the same name.
8807 (i387_supply_xsave): Ditto.
8809 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8810 that it does not shadow a function parameter.
8812 * i386-nat.c (i386_length_and_rw_bits): Document that case
8813 statement is meant to fall through.
8815 * expprint.c (dump_subexp_body_standard): Document that case
8816 statement is meant to fall through.
8818 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8819 dead if statement. Condition can't be false.
8821 2011-02-25 Michael Snyder <msnyder@vmware.com>
8823 * arm-tdep.c: Fix typos in comments.
8824 * bsd-uthread.c: Ditto.
8825 * completer.c: Ditto.
8827 * cp-namespace.c: Ditto.
8828 * cp-support.c: Ditto.
8829 * cris-tdep.c: Ditto.
8831 * dwarf2read.c: Ditto.
8833 * gdbtypes.h: Ditto.
8834 * inferior.h: Ditto.
8835 * mdebugread.c: Ditto.
8836 * mips-tdep.c: Ditto.
8837 * ppc-linux-nat.c: Ditto.
8838 * ppc-linux-tdep.c: Ditto.
8839 * printcmd.c: Ditto.
8840 * sol-thread.c: Ditto.
8841 * solib-frv.c: Ditto.
8843 * sparc64-tdep.c: Ditto.
8844 * spu-tdep.c: Ditto.
8845 * stabsread.c: Ditto.
8850 * python/py-block.c: Ditto.
8851 * python/py-symbol.c: Ditto.
8852 * python/py-symtab.c: Ditto.
8853 * python/py-value.c: Ditto.
8854 * tui/tui-win.c: Ditto.
8856 2011-02-25 Michael Snyder <msnyder@vmware.com>
8858 * inferior.c (print_inferior): Accept a string instead of an int
8859 for requested_inferiors, and use get_number_or_range to parse it.
8860 (info_inferiors_command): Pass args string to print_inferior.
8861 (initialize_inferiors): Change help string for info inferiors.
8862 * inferior.h (print_inferior): Export prototype change.
8864 2011-02-25 Tom Tromey <tromey@redhat.com>
8866 * common/ax.def (invalid2): Set to 0x31.
8868 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8870 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8872 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8874 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8876 2011-02-24 Michael Snyder <msnyder@vmware.com>
8878 * Makefile.in (clean): Make clean should remove generated files
8879 observer.h and observer.inc.
8881 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8883 Revert the following patch (not approved yet):
8884 2011-02-21 Hui Zhu <teawater@gmail.com>
8885 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8886 * ax-gdb.c (gen_printf_expr_callback): New function.
8887 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8888 * ax-general.c (ax_memcpy): New function.
8889 (ax_print): Handle "printf".
8891 * ax.h (ax_memcpy): Forward declare.
8892 * common/ax.def (invalid2): Removed.
8893 (printf): New entry.
8894 * printcmd.c (printcmd.h): New include.
8895 (string_printf): New function.
8896 (ui_printf): Removed.
8897 (printf_command): Remove static. Call string_printf.
8898 (eval_command): Call string_printf.
8899 * printcmd.h: New file.
8900 * tracepoint.c (validate_actionline,
8901 encode_actions_1): handle printf_command.
8903 2011-02-23 Tom Tromey <tromey@redhat.com>
8905 * ax-general.c (ax_pick): Add missing newline.
8907 2011-02-23 Michael Snyder <msnyder@vmware.com>
8909 * breakpoint.c (breakpoint_1): Change first argument from an int
8910 to a char pointer, so that the function now accepts a list of
8911 breakpoints rather than just one. Use new function
8912 'number_is_in_list' to implement.
8913 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8914 (watchpoints_info): Ditto.
8915 (tracepoints_info): Ditto.
8916 (maintenance_info_breakpoints): Ditto.
8917 (_initialize_breakpoint): Update help strings to reflect the fact
8918 that these functions can now take more than one argument.
8919 * cli/cli-utils.c (number_is_in_list): New function.
8920 * cli/cli-utils.h (number_is_in_list): Export.
8922 2011-02-23 Michael Snyder <msnyder@vmware.com>
8924 * memattr.c (mem_enable_command): Use get_number_or_range.
8925 (mem_disable_command): Ditto.
8926 (mem_delete_command): Ditto.
8927 (_initialize_mem): Tweak usage message to reflect multiple
8930 2011-02-22 Doug Evans <dje@google.com>
8932 Add gdb.lookup_global_symbol python function.
8934 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8935 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8936 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8938 2011-02-22 Tom Tromey <tromey@redhat.com>
8940 * language.c (language_class_name_from_physname): Rename
8941 'curr_language' argument to 'lang'; use in body.
8943 2011-02-22 Michael Snyder <msnyder@vmware.com>
8945 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8947 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8949 * frame-unwind.h: Fix comment to mention the this frame, not the
8952 2011-02-22 Tom Tromey <tromey@redhat.com>
8954 * symfile.c (auto_solib_limit): Remove.
8955 * symfile.h (auto_solib_limit): Remove.
8957 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8959 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8961 2011-02-21 Michael Snyder <msnyder@vmware.com>
8963 * gdbthread.h (print_thread_info): Change prototype.
8964 * thread.c (print_thread_info): Accept char* instead of int for
8965 requested_threads argument. Use new function number_is_in_list
8966 to determine which threads to list.
8967 (info_threads_command): Pass char* to print_thread_info.
8968 * cli/cli-utils.c (number_is_in_list): New function.
8969 * cli/cli-utils.h (number_is_in_list): Export.
8970 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8972 (print_one_inferior): Ditto.
8973 (mi_cmd_list_thread_groups): Ditto.
8975 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8977 * common/Makefile.in (CFLAGS): New.
8978 (COMPILE): Add $(CFLAGS).
8980 2011-02-21 Tom Tromey <tromey@redhat.com>
8982 * breakpoint.c (catch_syscall_command_1): Fix typo.
8984 2011-02-21 Tom Tromey <tromey@redhat.com>
8986 * reverse.c: Include cli-utils.h.
8987 * printcmd.c: Include cli-utils.h.
8988 (string_printf): Use skip_spaces.
8989 * cli/cli-utils.h: New file.
8990 * cli/cli-utils.c: New file.
8991 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8992 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8993 * breakpoint.h (get_number, get_number_or_range): Move to
8995 * breakpoint.c: Include cli-utils.h.
8996 (get_number_trailer, get_number, get_number_or_range)
8997 (ep_skip_leading_whitespace): Move to cli-utils.c.
8998 (create_breakpoint_sal, find_condition_and_thread)
8999 (decode_static_tracepoint_spec, watch_command_1)
9000 (watch_maybe_just_location, ep_parse_optional_if_clause)
9001 (catch_fork_command_1, catch_exec_command_1)
9002 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9003 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9004 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9005 (HFILES_NO_SRCDIR): Add cli-utils.h.
9006 (cli-utils.o): New target.
9008 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9010 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9011 before calling discard_all_inferiors.
9013 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9015 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9016 (struct builtin_opencl_type): Remove.
9017 (builtin_opencl_type): Change return type to "struct type **".
9018 (lookup_opencl_vector_type): Update caller.
9019 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9020 (build_opencl_types): Install plain array of "struct type *"
9021 instead of "struct builtin_opencl_type".
9023 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9024 Ulrich Weigand <uweigand@de.ibm.com>
9026 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9027 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9028 (struct arm_linux_hwbp_cap): New type.
9029 (arm_linux_get_hwbp_cap): New function.
9030 (arm_linux_get_hw_breakpoint_count): Likewise.
9031 (arm_linux_get_hw_watchpoint_count): Likewise.
9032 (arm_linux_can_use_hw_breakpoint): Likewise.
9033 (arm_hwbp_type): New type.
9034 (arm_hwbp_control_t): Likewise.
9035 (struct arm_linux_hw_breakpoint): Likewise.
9036 (struct arm_linux_thread_points): Likewise.
9037 (arm_threads): New global variable.
9038 (arm_linux_find_breakpoints_by_tid): New function.
9039 (arm_hwbp_control_initialize): Likewise.
9040 (arm_hwbp_control_is_enabled): Likewise.
9041 (arm_hwbp_control_disable): Likewise.
9042 (arm_linux_hw_breakpoint_initialize): Likewise.
9043 (arm_linux_get_hwbp_type): Likewise.
9044 (arm_linux_hw_watchpoint_initialize): Likewise.
9045 (arm_linux_hw_breakpoint_equal): Likewise.
9046 (arm_linux_insert_hw_breakpoint1): Likewise.
9047 (arm_linux_remove_hw_breakpoint1): Likewise.
9048 (arm_linux_insert_hw_breakpoint): Likewise.
9049 (arm_linux_remove_hw_breakpoint): Likewise.
9050 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9051 (arm_linux_insert_watchpoint): Likewise.
9052 (arm_linux_remove_watchpoint): Likewise.
9053 (arm_linux_stopped_data_address): Likewise.
9054 (arm_linux_stopped_by_watchpoint): Likewise.
9055 (arm_linux_watchpoint_addr_within_range): Likewise.
9056 (arm_linux_new_thread): Likewise.
9057 (arm_linux_thread_exit): Likewise.
9058 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9059 related target callbacks. Register arm_linux_new_thread and
9060 arm_linux_thread_exit.
9061 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9062 * arm-tdep.c (arm_pc_is_thumb): Make global.
9063 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9065 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9067 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9068 per-frame locations while within a function epilogue.
9070 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9072 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9073 to GNU coding standards.
9075 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9077 Allow use of mingw native on Windows 95 OS.
9078 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9079 (ser_windows_close): Only call CancelIo if function exists.
9080 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9081 to check for existence of CancelIo function in kernel32 DLL.
9083 2011-02-21 Hui Zhu <teawater@gmail.com>
9085 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9086 * ax-gdb.c (gen_printf_expr_callback): New function.
9087 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9088 * ax-general.c (ax_memcpy): New function.
9089 (ax_print): Handle "printf".
9091 * ax.h (ax_memcpy): Forward declare.
9092 * common/ax.def (invalid2): Removed.
9093 (printf): New entry.
9094 * printcmd.c (printcmd.h): New include.
9095 (string_printf): New function.
9096 (ui_printf): Removed.
9097 (printf_command): Remove static. Call string_printf.
9098 (eval_command): Call string_printf.
9099 * printcmd.h: New file.
9100 * tracepoint.c (validate_actionline,
9101 encode_actions_1): handle printf_command.
9103 2011-02-19 Michael Snyder <msnyder@vmware.com>
9105 * reverse.c (delete_one_bookmark): Argument is now bookmark
9106 id rather than pointer to bookmark struct.
9107 (delete_bookmark_command): Use get_number_or_range.
9108 (goto_bookmark_command): Parse with get_number instead of strtoul.
9109 (bookmark_1): New function. Print info for one bookmark.
9110 (bookmarks_info): Use get_number_or_range and bookmark_1.
9112 2011-02-18 Michael Snyder <msnyder@vmware.com>
9114 * thread.c (info_threads_command): Re-implement using
9115 get_number_or_range.
9116 (thread_apply_command): Ditto.
9118 2011-02-18 Tom Tromey <tromey@redhat.com>
9120 * common/ax.def: New file.
9121 * ax.h (enum agent_op): Use ax.def.
9122 * ax-general.c (aop_map): Use ax.def.
9124 2011-02-18 Tom Tromey <tromey@redhat.com>
9126 * ax-general.c (aop_map): Add pick and rot.
9127 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9128 <DW_OP_rot>: Implement.
9129 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9131 * ax-general.c (ax_pick): New function.
9133 2011-02-18 Tom Tromey <tromey@redhat.com>
9135 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9137 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 Tom Tromey <tromey@redhat.com>
9140 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9141 make_symbol_overload_list_block with NULL BLOCK.
9142 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9144 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9146 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9147 * breakpoint.h (get_number_or_range): Declare.
9148 * printcmd.c (ALL_DISPLAYS): Declare.
9149 (delete_display): Reimplement taking a display pointer.
9150 (undisplay_command): Accept a range of displays to delete, using
9151 get_number_or_range.
9153 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9155 * c-valprint.c (c_val_print): Add embedded_offset to address
9156 for arrays of unspecified length.
9157 * p-valprint.c (pascal_val_print): Likewise.
9159 2011-02-18 Yao Qi <yao@codesourcery.com>
9161 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9162 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9163 (thumb_process_displaced_insn): New.
9164 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9165 call to arm_process_displaced_insn.
9166 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9168 2011-02-17 Tom Tromey <tromey@redhat.com>
9170 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9171 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9172 compile_dwarf_to_ax. No longer static. Call
9173 dwarf2_compile_cfa_to_ax.
9174 (locexpr_tracepoint_var_ref): Update.
9175 (loclist_tracepoint_var_ref): Update.
9176 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9177 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9178 argument; add 'gdbarch' and 'pc'.
9179 (dwarf2_compile_cfa_to_ax): New function.
9180 (dwarf2_frame_cache): Update.
9182 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9184 * ada-lang.c (ada_type_of_array): Fix the size of the array
9185 in the case of an unconstrained packed array.
9187 2011-02-17 Yao Qi <yao@codesourcery.com>
9189 * common/Makefile.in: Add more targets for make.
9191 2011-02-16 Tom Tromey <tromey@redhat.com>
9193 * dwarf2loc.c (unimplemented): Fix typo.
9195 2011-02-16 Tom Tromey <tromey@redhat.com>
9197 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9198 (compile_dwarf_to_ax) <default>: Use unimplemented.
9199 <DW_OP_deref>: Update.
9200 (disassemble_dwarf_expression): Update.
9201 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9202 (decode_locdesc): Update.
9203 * dwarf2expr.h (dwarf_stack_op_name): Update.
9205 2011-02-16 Tom Tromey <tromey@redhat.com>
9207 * ax.h (struct aop_map) <name>: Now const.
9209 2011-02-16 Tom Tromey <tromey@redhat.com>
9211 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9214 2011-02-16 Yao Qi <yao@codesourcery.com>
9216 * infrun.c (get_displaced_step_closure_by_addr): New.
9217 * inferior.h: Declare it.
9218 * arm-tdep.c: (arm_pc_is_thumb): Call
9219 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9222 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9223 Jan Kratochvil <jan.kratochvil@redhat.com>
9226 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9228 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9229 Jan Kratochvil <jan.kratochvil@redhat.com>
9231 * value.c (value_contents_copy_raw): Extend describing comment.
9232 Assert that the destination contents we're overwriting are wholly
9234 (value_contents_copy): Extend describing comment.
9236 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9237 Jan Kratochvil <jan.kratochvil@redhat.com>
9239 * value.c (value_available_contents_eq): Remove redundant local
9240 variables. Fix available contents comparision.
9241 * value.h (value_available_contents_eq): Extend describing
9244 2011-02-16 Yao Qi <yao@codesourcery.com>
9246 * thread.c (info_threads_command): Add missing i18n markup and remove
9249 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9251 * breakpoint.c (longjmp_names): New variable.
9252 (struct breakpoint_objfile_data): New type.
9253 (breakpoint_objfile_key): New variable.
9254 (msym_not_found): New variable.
9255 (msym_not_found_p): New predicate.
9256 (get_breakpoint_objfile_data): New function.
9257 (create_overlay_event_breakpoint): Check per-objfile cache for
9259 (create_longjmp_master_breakpoint): Likewise.
9260 (create_std_terminate_master_breakpoint): Likewise.
9261 (create_exception_master_breakpoint): Likewise.
9262 (_initialize_breakpoint): Register per-objfile data key.
9264 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9266 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9268 (create_longjmp_master_breakpoint): Loop over longjmp names.
9269 (create_std_terminate_master_breakpoint): Const-propagate parameter
9271 (update_breakpoints_after_exec): Adjust.
9272 (breakpoint_re_set): Adjust.
9274 2011-02-15 Michael Snyder <msnyder@vmware.com>
9276 * thread.c (info_threads_command): Process arg as thread id,
9277 or list of thread ids.
9278 (thread_find_command): New command.
9279 (_initialize_thread): Document argument for info threads.
9280 Document 'thread find' command.
9281 * NEWS: Document new command "thread find".
9283 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9285 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9286 * aclocal.m4: Regenerated with aclocal-1.11.1.
9287 * common/configure: Regenerate with autoconf-2.64.
9289 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9291 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9292 bool data type to a size of one byte.
9294 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9295 Jan Kratochvil <jan.kratochvil@redhat.com>
9297 * target.c (memory_xfer_live_readonly_partial): Document where to
9298 look for interface description.
9300 2011-02-15 Yao Qi <yao@codesourcery.com>
9303 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9304 order to store PC value on stack instead of text section.
9306 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9308 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9309 the EFP register set size.
9310 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9311 data from the VMX register.
9312 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9313 and write data from/to the VMX register.
9315 2011-02-14 Michael Snyder <msnyder@vmware.com>
9317 * command.h (enum command_class): New class 'no_set_class', for
9318 "show" commands without a corresponding "set" command.
9319 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9320 * copying.c (_initialize_copying): Ditto for "show copying" and
9322 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9324 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9325 which there is no corresponding "set" command (eg. "show copying").
9327 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9328 Jan Kratochvil <jan.kratochvil@redhat.com>
9330 * exec.c (section_table_available_memory): Change `len' parameter
9332 * exec.h (section_table_available_memory): Ditto.
9333 * value.h (read_value_memory): Rename the `offset' parameter to
9336 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9337 Jan Kratochvil <jan.kratochvil@redhat.com>
9339 * memrange.c (compare_mem_ranges): Mention sort order in
9341 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9342 * tracepoint.c (traceframe_available_memory): Extend comment to
9343 mention what happens to RESULT when the target does not support
9346 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9347 Jan Kratochvil <jan.kratochvil@redhat.com>
9349 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9352 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9354 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9355 No longer handle NULL values.
9357 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9359 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9360 * value.c: Include "exceptions.h".
9361 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9363 * cp-abi.c: Include gdb_assert.h.
9364 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9365 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9367 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9368 parameters. No longer returns -1 on error.
9369 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9371 * cp-valprint.c: Include exceptions.h.
9372 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9373 the baseclass_offset. Handle unavailable base classes. Use
9374 val_print_invalid_address.
9375 * p-valprint.c: Include exceptions.h.
9376 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9377 when fetching the baseclass_offset. No longer expect
9378 baseclass_offset returning -1. Handle unavailable base classes.
9379 Use val_print_invalid_address.
9380 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9381 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9382 `embedded_offset' and `val' parameters. Adjust.
9383 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9384 parameter, and change its type to gdb_byte pointer. Add
9385 `embedded_offset' and `val' parameters. Adjust. No longer expect
9386 baseclass_offset returning -1.
9387 (value_dynamic_cast): Use value_contents_for_printing rather than
9388 value_contents. Adjust.
9389 (search_struct_field): No longer expect baseclass_offset returning
9391 (search_struct_method): If reading memory from the target is
9392 necessary, wrap it in a new value to pass to baseclass_offset. No
9393 longer expect baseclass_offset returning -1.
9394 (find_method_list): No longer expect baseclass_offset returning
9395 -1. Use value_contents_for_printing rather than value_contents.
9396 * valprint.c (val_print_invalid_address): New function.
9397 * valprint.h (val_print_invalid_address): Declare.
9398 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9399 and `val' parameters. No longer expect baseclass_offset returning
9401 * gnu-v2-abi.c: Include "exceptions.h".
9402 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9403 parameters. Handle unavailable memory. Recurse through
9404 gnuv2_baseclass_offset directly, rather than through
9405 baseclass_offset. No longer returns -1 on not found, instead
9407 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9408 `val' parameters. Adjust.
9410 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9412 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9413 almost but not quite adjacent.
9415 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9417 * value.h (value_entirely_available): Declare.
9418 * value.c (value_entirely_available): New function.
9419 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9420 real type if the pointer is unavailable.
9422 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9424 * valops.c (value_repeat): Use read_value_memory instead of
9427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9429 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9430 * value.c (value_contents_copy_raw, value_contents_copy): New
9432 (value_primitive_field): Use value_contents_copy_raw instead of
9434 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9436 (value_array, value_slice): Ditto.
9437 * valarith.c (value_subscripted_rvalue): Use
9438 value_contents_copy_raw instead of memcpy.
9440 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9442 <unavailable> references.
9444 * valops.c (get_value_at): Use value_from_contents_and_address,
9445 avoiding read_memory.
9447 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9449 * c-valprint.c (c_val_print): Print a string with unavailable
9450 contents as an array.
9452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9454 * value.h (unpack_bits_as_long): Delete declaration.
9455 (unpack_value_bits_as_long): Declare.
9456 (unpack_value_field_as_long): Declare.
9457 (value_field_bitfield): Declare.
9458 * value.c (unpack_bits_as_long): Rename to...
9459 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9460 value parameters. Return the extracted result in a new output
9461 parameter. If the value contents are unavailable, return false,
9462 otherwise return true.
9463 (unpack_value_bits_as_long): New.
9464 (unpack_field_as_long): Rename to...
9465 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9466 Add embedded_offset and value parameters. Return the extracted
9467 result in a new output parameter. If the value contents are
9468 unavailable, return false, otherwise return true.
9469 (unpack_value_field_as_long): New.
9470 (unpack_field_as_long_1): New.
9471 (unpack_field_as_long): Reimplement as wrapper around
9472 unpack_value_field_as_long_1.
9473 (value_field_bitfield): New function.
9474 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9475 unpack_value_bits_as_long. Mark the value as unavailable, if it
9477 * jv-valprint.c (java_print_value_fields): Use
9478 value_field_bitfield.
9479 * p-valprint.c (pascal_object_print_value_fields): Use
9480 value_field_bitfield.
9481 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9483 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9485 * value.c (get_internalvar_integer): Also return the int value of
9486 TYPE_CODE_INT INTERNALVAR_VALUE values.
9487 (set_internalvar): Don't special case TYPE_CODE_INT.
9489 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9491 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9492 INTERNALVAR_POINTER.
9494 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9495 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9496 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9498 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9500 * value.h (value_available_contents_eq): Declare.
9501 * value.c (find_first_range_overlap): New function.
9502 (value_available_contents_eq): New function.
9503 * valprint.c (val_print_array_elements): Use
9504 value_available_contents_eq.
9505 * ada-valprint.c (val_print_packed_array_elements): Use
9506 value_available_contents_eq.
9507 * jv-valprint.c (java_value_print): Use
9508 value_available_contents_eq.
9510 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9512 * target.c (target_read_live_memory): New function.
9513 (memory_xfer_live_readonly_partial): New.
9514 (memory_xfer_partial): If reading from a traceframe, fallback to
9515 reading unavailable read-only memory from read-only regions of
9517 * tracepoint.c (disconnect_tracing): Adjust.
9518 (set_current_traceframe): New, factored out from
9519 set_traceframe_number.
9520 (set_traceframe_number): Reimplement to only change the traceframe
9521 number on the GDB side.
9522 (do_restore_current_traceframe_cleanup): Adjust.
9523 (make_cleanup_restore_traceframe_number): New.
9524 (cur_traceframe_number): New global.
9525 (tfile_open): Set cur_traceframe_number to no traceframe.
9526 (set_tfile_traceframe): New function.
9527 (tfile_trace_find): If looking up a traceframe using any method
9528 other than by number, make sure the current tfile traceframe
9529 matches gdb's current traceframe. Update the current tfile
9530 traceframe if the lookup succeeded.
9531 (tfile_fetch_registers, tfile_xfer_partial)
9532 (tfile_get_trace_state_variable_value): Make sure the remote
9533 traceframe matches gdb's current traceframe.
9534 * remote.c (remote_traceframe_number): New global.
9535 (remote_open_1): Set it to -1.
9536 (set_remote_traceframe): New function.
9537 (remote_fetch_registers, remote_store_registers)
9538 (remote_xfer_memory, remote_xfer_partial)
9539 (remote_get_trace_state_variable_value): Make sure the remote
9540 traceframe matches gdb's current traceframe.
9541 (remote_trace_find): If looking up a traceframe using any method
9542 other than by number, make sure the current remote traceframe
9543 matches gdb's current traceframe. Update the current remote
9544 traceframe if the lookup succeeded.
9545 * infrun.c (fetch_inferior_event): Adjust.
9546 * tracepoint.h (set_current_traceframe): Declare.
9547 (get_traceframe_number, set_traceframe_number): Add describing
9550 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9552 Mark pieces of values as unavailable if the corresponding memory
9555 * valops.c: Include tracepoint.h.
9556 (value_fetch_lazy): Use read_value_memory.
9557 (read_value_memory): New.
9558 * value.h (read_value_memory): Declare.
9559 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9560 * exec.c (section_table_available_memory): New function.
9561 * exec.h (section_table_available_memory): Declare.
9563 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9565 * Makefile.in (SFILES): Add memrange.c.
9566 (HFILES_NO_SRCDIR): Add memrange.h.
9567 (COMMON_OBS): Add memrange.o.
9568 * memrange.c: New file.
9569 * memrange.h: New file.
9570 * tracepoint.c: Include memrange.h.
9571 (struct mem_range): Delete.
9572 (mem_range_s): Delete.
9573 (traceframe_available_memory): New function.
9574 * tracepoint.h (traceframe_available_memory): Declare.
9576 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9578 * target.h (struct traceframe_info): Forward declare.
9579 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9580 (struct target_ops) <to_traceframe_info>: New field.
9581 (target_traceframe_info): New.
9582 * target.c (update_current_target): Inherit and default
9584 * remote.c (PACKET_qXfer_traceframe_info): New.
9585 (remote_protocol_features): Register qXfer:traceframe-info:read.
9586 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9587 (remote_traceframe_info): New.
9588 (init_remote_ops): Install it.
9589 (_initialize_remote): Install "set/show remote traceframe-info"
9591 * tracepoint.h (parse_traceframe_info): Declare.
9592 * tracepoint.c (struct mem_range): New.
9593 (mem_range_s): New typedef.
9594 (struct traceframe_info): New.
9595 (traceframe_info): New global.
9596 (free_traceframe_info): New function.
9597 (clear_traceframe_info): New function.
9598 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9600 (build_traceframe_info): New function.
9601 (tfile_traceframe_info): New function.
9602 (init_tfile_ops): Install tfile_traceframe_info.
9603 (traceframe_info_start_memory, free_result): New functions.
9604 (memory_attributes, traceframe_info_elements): New globals.
9605 (parse_traceframe_info, get_traceframe_info): New functions.
9606 * features/traceframe-info.dtd: New file.
9607 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9609 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9611 Base support for <unavailable> value contents.
9613 * value.h (value_bytes_available): Declare.
9614 (mark_value_bytes_unavailable): Declare.
9615 * value.c (struct range): New struct.
9616 (range_s): New typedef.
9617 (ranges_overlap): New function.
9618 (range_lessthan): New function.
9619 (ranges_contain_p): New function.
9620 (struct value) <unavailable>: New field.
9621 (value_bytes_available): New function.
9622 (mark_value_bytes_unavailable): New function.
9623 (require_not_optimized_out): Constify parameter.
9624 (require_available): New function.
9625 (value_contents_all, value_contents): Require all bytes be
9627 (value_free): Free `unavailable'.
9628 (value_copy): Copy `unavailable'.
9629 * valprint.h (val_print_unavailable): Declare.
9630 * valprint.c (valprint_check_validity): Rename `offset' parameter
9631 to `embedded_offset'. If printing a scalar, check whether the
9632 value chunk is available.
9633 (val_print_unavailable): New.
9634 (val_print_scalar_formatted): Check whether the value is
9636 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9637 pretty-printing unavailable values.
9639 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9641 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9642 * c-typeprint.c (c_type_print_args): Update the function comment. New
9643 variable param_type, initialize it. Remove const/volatile qualifiers
9644 for language_cplus and !show_artificial. Use param_type.
9646 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9648 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9649 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9650 * symtab.h (struct symtab) <next>: Comment extension.
9652 2011-02-12 Yao Qi <yao@codesourcery.com>
9654 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9656 2011-02-11 Yao Qi <yao@codesourcery.com>
9658 * common/Makefile.in: Add copyright header.
9660 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9662 * infrun.c (proceed): Move switching out and in of tfind mode from
9664 (fetch_inferior_event): ... to here.
9666 2011-02-11 Yao Qi <yao@codesourcery.com>
9668 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9670 * configure.ac: Add common to sub dir.
9671 * configure: Regenerate.
9673 2011-02-11 Yao Qi <yao@codesourcery.com>
9677 * common/Makefile.in: New.
9678 * common/configure.ac: New.
9679 * common/aclocal.m4: New.
9680 * common/configure: Generate.
9682 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9684 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9685 side of the parenthesis.
9688 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9689 * vec.h (VEC_block_remove): Fix comment.
9691 2011-02-08 Michael Snyder <msnyder@vmware.com>
9693 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9695 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9697 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9698 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9701 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9704 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9706 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9707 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9709 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9711 * dwarf2read.c (read_subroutine_type): Set special calling
9712 convention flag for functions compiled by IBM XL C for OpenCL.
9713 * ppc-sysv-tdep.c: Include "dwarf2.h"
9714 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9716 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9717 IBM OpenCL vector types calling convention.
9718 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9719 (ppc_sysv_abi_broken_return_value): Likewise.
9720 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9721 types calling convention.
9722 (ppc64_sysv_abi_return_value): Likewise.
9723 * spu-tdep.c: Include "dwarf2.h"
9724 (spu_return_value): Implement IBM OpenCL vector types calling
9727 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9729 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9730 correct ABI for AltiVec vector arguments.
9732 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9734 * valprint.c (val_print): Extend comment.
9735 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9736 interface explanation to val_print.
9737 (ada_val_print_array): Adjust comment to current interface.
9738 (print_field_values): Adjust comment to current interface.
9739 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9740 explanation to val_print.
9741 * f-valprint.c (f_val_print): Ditto.
9742 * jv-valprint.c (java_val_print): Ditto.
9743 * m2-valprint.c (m2_val_print): Ditto.
9744 * p-valprint.c (pascal_val_print): Ditto.
9746 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9748 * breakpoint.c (parse_breakpoint_sals): Fix description.
9750 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9751 Oguz Kayral <oguzkayral@gmail.com>
9753 * python/py-inferior.c (python_on_normal_stop): New function.
9754 (python_on_resume): New function.
9755 (python_inferior_exit): New function.
9756 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9757 inferior_exit observers.
9758 * python/py-evtregistry.c: New file.
9759 * python/py-threadevent.c : New file.
9760 * python/py-event.c: New file.
9761 * python/py-evts.c: New file.
9762 * python/py-continueevent.c: New file.
9763 * python/py-bpevent.c: New file.
9764 * python/py-signalevent.c: New file.
9765 * python/py-exetiedevent.c: New file.
9766 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9767 Move struct breakpoint_object from here...
9768 * python/python-internal.h: ... to here.
9769 * python/py-event.h: New file.
9770 * python/py-events.h: New file.
9771 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9772 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9773 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9774 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9775 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9776 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9777 Add build rules for all the above.
9779 2011-02-04 Tom Tromey <tromey@redhat.com>
9781 * dwarf2read.c (dwarf2_section_empty_p): New function.
9782 (dwarf2_read_section): Use dwarf2_section_empty_p.
9783 (dwarf2_section_size): New function.
9784 (dwarf2_get_section_info): Unconditionally read section.
9785 (dwarf2_read_index): Use dwarf2_section_empty_p.
9786 (partial_read_comp_unit_head): Use dwarf2_section_size.
9787 (dwarf2_symbol_mark_computed): Likewise.
9789 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9791 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9793 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9795 * mips-linux-tdep.c: Include xml-syscall.h.
9796 (mips_linux_get_syscall_number): New function.
9797 (mips_linux_init_abi): Add calls to
9798 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9799 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9800 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9801 * syscalls/mips-n32-linux.xml: New file.
9802 * syscalls/mips-n64-linux.xml: New file.
9803 * syscalls/mips-o32-linux.xml: New file.
9805 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9807 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9808 Complain about inverted range entries.
9809 (dwarf2_record_block_ranges): Likewise.
9811 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9814 * breakpoint.c (update_watchpoint): Fix name of the
9815 update_global_location_list function.
9816 (print_one_breakpoint): Fix typo.
9817 (_initialize_breakpoint): Remove extra space in hbreak help
9819 * breakpoint.h (struct bp_location) <length>: Fix field
9822 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9824 * regcache.c (registers_changed_ptid): Don't explictly always
9825 clear `current_regcache'. Only clear current_thread_ptid and
9826 current_thread_arch when PTID matches. Only reinit the frame
9827 cache if PTID matches the current inferior_ptid. Move alloca(0)
9829 (registers_changed): ... here.
9831 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9833 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9834 starts with __stack_chk_guard as stack guard symbol.
9836 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9838 * disasm.c (compare_lines): Handle the end of sequence markers
9839 within the line table to better support disassembling over
9840 compilation unit boundaries.
9842 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9844 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9845 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9846 implementation even if no symbols are available.
9847 (thumb_analyze_prologue): Update call to skip_prologue_function.
9848 (arm_analyze_prologue): Likewise.
9850 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9852 * arm-tdep.c: Include "observer.h".
9853 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9854 (arm_exidx_data_key): New static variable.
9855 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9856 (struct arm_exidx_data): Likewise.
9857 (arm_exidx_data_free): New function.
9858 (arm_compare_exidx_entries): Likewise.
9859 (arm_obj_section_from_vma): Likewise.
9860 (arm_exidx_new_objfile): Likewise.
9861 (arm_find_exidx_entry): Likewise.
9862 (arm_exidx_fill_cache): Likewise.
9863 (arm_exidx_unwind_sniffer): Likewise.
9864 (arm_exidx_unwind): New global variable.
9865 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9866 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9867 observer. Register arm_exidx_data_key as objfile data.
9869 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9871 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9872 due to accessing uninitialized variable. Fix indentation.
9874 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9876 * c-valprint.c (c_value_print): When doing virtual base pointer
9877 adjustment, create a new value with adjusted contents rather than
9878 changing the contents of the value being printed (and getting it
9881 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9883 * xml-support.c (xml_find_attribute): New.
9884 (xinclude_start_include): Use it.
9885 * xml-support.h (xml_find_attribute): Declare.
9886 * memory-map.c (memory_map_start_memory)
9887 (memory_map_start_property): Use xml_find_attribute.
9888 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9890 * remote.c (start_thread): Use xml_find_attribute.
9891 * solib-target.c (library_list_start_segment)
9892 (library_list_start_section, library_list_start_library)
9893 (library_list_start_list): Use xml_find_attribute.
9894 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9895 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9896 (tdesc_start_field): Use xml_find_attribute.
9898 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9900 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9901 (BUILD_OCL_VTYPES): Update.
9903 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9905 * configure.ac: Work around non-GNU sed limitation when computing
9906 python version number.
9907 * configure: Regenerate.
9909 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9911 Fix debug printing of TYPE_INSTANCE.
9912 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9913 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9915 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9917 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9918 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9919 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9920 * ada-operator.inc: Rename the file to ...
9921 * ada-operator.def: ... here, wrap all the entries by macro OP.
9922 * expprint.c (op_name_standard): Remove all the entries. Include
9923 "std-operator.def" instead.
9924 * expression.h (enum exp_opcode): Include "std-operator.def" and
9925 "ada-operator.def". Move all the entries ...
9926 * std-operator.def: ... here, wrap all the entries by macro OP.
9928 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9930 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9931 * breakpoint.c (remove_jit_event_breakpoints): New function.
9932 * jit.c (jit_descriptor_addr): Delete.
9933 (registering_code): Delete.
9934 (clear_int): Delete.
9935 (jit_inferior_data): New variable.
9936 (struct jit_inferior_data): New type.
9937 (get_jit_inferior_data): New function.
9938 (jit_inferior_data_cleanup): New function.
9939 (jit_read_descriptor): Adjust.
9940 (jit_register_code): Adjust.
9941 (jit_breakpoint_re_set_internal): New function; move code here ...
9942 (jit_inferior_init): ... from here.
9943 (jit_breakpoint_re_set): Adjust.
9944 (jit_reset_inferior_data_and_breakpoints): New function.
9945 (jit_inferior_created_observer): Adjust.
9946 (jit_inferior_exit_hook): Adjust.
9947 (jit_executable_changed_observer): New function.
9948 (jit_event_handler): Adjust.
9949 (_initialize_jit): Adjust.
9951 2011-01-31 Michael Snyder <msnyder@vmware.com>
9953 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9956 2011-01-31 Tom Tromey <tromey@redhat.com>
9959 * python/python.c (execute_gdb_command): Call
9960 prevent_dont_repeat.
9961 * top.c (suppress_dont_repeat): New global.
9962 (dont_repeat): Use it.
9963 (prevent_dont_repeat): New function.
9964 * command.h (prevent_dont_repeat): Declare.
9966 2011-01-31 Tom Tromey <tromey@redhat.com>
9968 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9969 * python/py-breakpoint.c (bppy_set_silent): Use
9970 breakpoint_set_silent.
9971 (bppy_set_thread): Use breakpoint_set_thread.
9972 (bppy_set_task): Use breakpoint_set_task.
9973 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9974 (breakpoint_set_task): Declare.
9975 (make_breakpoint_silent): Remove.
9976 * breakpoint.c (breakpoint_set_silent): New function.
9977 (breakpoint_set_thread): Likewise.
9978 (breakpoint_set_task): Likewise.
9979 (make_breakpoint_silent): Remove.
9981 2011-01-31 Tom Tromey <tromey@redhat.com>
9983 * breakpoint.h (user_breakpoint_p): Declare.
9984 * breakpoint.c (user_breakpoint_p): New function.
9985 (breakpoint_1): Use it.
9986 (save_breakpoints): Likewise.
9988 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9990 * configure.ac: Add handling of Python distribution on Windows.
9991 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9992 sysconfig variables are not defined, then do not use them.
9993 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9994 instead. On Windows, return all paths using forward-slashes
9995 rather than backslashes.
9997 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9999 * configure.ac: Remove fallback behavior for building
10000 against Python. Remove tweaking of Python include path.
10001 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10002 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10003 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10004 Always restore CPPFLAGS and LIBS after linking test.
10005 * configure: Regenerated.
10006 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10007 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10008 * python/python-internal.h: Adjust includes of Python .h files.
10010 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10012 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10015 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10017 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10020 2011-01-31 Yao Qi <yao@codesourcery.com>
10022 * arm-linux-nat.c: Update calls to regcache_register_status
10023 instead of regcache_valid_p.
10024 * aix-thread.c: Likewise.
10025 * i386gnu-nat.c: Likewise.
10027 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10030 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10031 touching TYPE_FIELD_ARTIFICIAL.
10033 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10035 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10038 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10040 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10041 selected, don't try iterating over the traceframe's blocks.
10042 (tfile_has_stack): If there's no traceframe selected, then there's
10044 (tfile_has_registers): If there's no traceframe selected, then
10045 there's no registers.
10047 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10049 * target.c (memory_xfer_partial): No need to restore shadows if we
10050 haven't read anything.
10052 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10054 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10055 and val_print_scalar_formatted.
10057 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10059 * tracepoint.c (tfile_read): New.
10060 (tfile_open): Use it.
10061 (tfile_get_traceframe_address): Use it.
10062 (tfile_trace_find): Use it.
10063 (walk_blocks_callback_func): New typedef.
10064 (match_blocktype): New function.
10065 (traceframe_walk_blocks): New function.
10066 (traceframe_find_block_type): New function.
10067 (tfile_fetch_registers, tfile_xfer_partial)
10068 (tfile_get_trace_state_variable_value): Use
10069 traceframe_find_block_type and tfile_read.
10071 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10073 * remote-mips.c: Add internationalization mark ups. Remove
10074 trailing \n from already marked up strings.
10076 2011-01-26 Tom Tromey <tromey@redhat.com>
10078 * python/py-prettyprint.c (print_string_repr): Clear
10079 'addressprint' option when calling val_print_string.
10080 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10081 option when calling val_print_string.
10083 2011-01-26 Tom Tromey <tromey@redhat.com>
10085 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10087 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10089 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10090 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10091 (gdb_py_long_as_ulongest): New defines.
10092 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10093 (gdb_py_int_as_long): Declare.
10094 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10095 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10096 (valpy_long): Add comment.
10097 * python/py-utils.c (get_addr_from_python): Use
10098 gdb_py_long_as_ulongest. Handle overflow properly.
10099 (gdb_py_object_from_longest): New function.
10100 (gdb_py_object_from_ulongest): Likewise.
10101 (gdb_py_int_as_long): Likewise.
10102 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10103 * python/py-symtab.c (salpy_get_pc): Use
10104 gdb_py_long_from_ulongest.
10105 (salpy_get_line): Use PyInt_FromLong.
10106 * python/py-param.c (set_parameter_value): Use
10107 gdb_py_int_as_long.
10108 * python/py-lazy-string.c (stpy_get_address): Use
10109 gdb_py_long_from_ulongest.
10110 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10111 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10112 * python/py-breakpoint.c (bppy_set_thread): Use
10113 gdb_py_int_as_long.
10114 (bppy_set_task): Likewise.
10115 (bppy_set_ignore_count): Likewise.
10116 (bppy_set_hit_count): Likewise.
10117 * python/py-block.c (blpy_get_start): Use
10118 gdb_py_object_from_ulongest.
10119 (blpy_get_end): Likewise.
10120 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10122 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10125 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10126 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10127 equality test for objfile, initialize addr_low if needed.
10129 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10131 * tui/tui-regs.c (tui_register_format): Remove dead code.
10133 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10135 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10136 instead of print_scalar_formatted.
10137 (print_scalar_formatted): Don't handle 's' format strings here,
10138 and add an assertion that we never see such format here.
10139 * valprint.h (val_print_scalar_formatted): Declare.
10140 * valprint.c (val_print_scalar_formatted): New.
10141 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10142 instead of print_scalar_formatted.
10143 * jv-valprint.c (java_val_print): Ditto.
10144 * p-valprint.c (pascal_val_print): Ditto.
10145 * ada-valprint.c (ada_val_print_1): Ditto.
10146 * f-valprint.c (f_val_print): Ditto.
10147 * infcmd.c (registers_info): Ditto.
10148 * m2-valprint.c (m2_val_print): Ditto.
10150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10152 * m2-valprint.c (print_unbounded_array): Pass
10153 value_contents_for_printing rather than value_contents, to
10154 m2_print_array_contents. Also pass in the value.
10156 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10158 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10159 (save_gdb_index_command): Switch to .gdb_index version 4.
10161 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10163 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10164 than frame_register, and always pass a valid value to val_print.
10166 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10168 Centralize printing "<optimized out>".
10170 * valprint.h (val_print_optimized_out): Declare.
10171 * cp-valprint.c (cp_print_value_fields): Use
10172 val_print_optimized_out.
10173 * jv-valprint.c (java_print_value_fields): Ditto.
10174 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10175 * printcmd.c (print_formatted): Ditto.
10176 * valprint.c (valprint_check_validity): Ditto.
10177 (value_check_printable): Ditto.
10178 (val_print_optimized_out): New.
10180 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10182 * infcmd.c (default_print_registers_info): Allocate values so to
10183 never pass a NULL value to val_print.
10185 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10187 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10188 boolean. Make sure to always pass a value that matches the
10189 contents buffer to callees. Preserve `address' for following
10191 * value.c (value_contents_for_printing_const): New.
10192 (value_address): Constify value argument.
10193 * value.h (value_contents_for_printing_const): Declare.
10194 (value_address): Constify value argument.
10196 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10198 * regcache.c (struct regcache_descr): Rename
10199 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10200 and sizeof_cooked_register_valid_p to
10201 sizeof_cooked_register_status.
10202 (init_regcache_descr): Adjust.
10203 (struct regcache): Rename register_valid_p field to
10205 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10206 (do_cooked_read): Adjust.
10207 (regcache_valid_p): Rename to ...
10208 (regcache_register_status): ... this. Adjust.
10209 (regcache_invalidate): Adjust.
10210 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10212 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10213 as unavailable, not valid.
10214 (regcache_dump): Adjust.
10215 * regcache.h (enum register_status): New.
10216 (regcache_register_status): Declare.
10217 (regcache_invalidate): Delete declaration.
10218 * corelow.c (get_core_registers): Adjust.
10219 * tracepoint.c (tfile_fetch_registers): Adjust.
10220 * trad-frame.c (REG_VALUE): Rename to ...
10221 (TF_REG_VALUE): ... this.
10222 (REG_UNKNOWN): Rename to ...
10223 (TF_REG_UNKNOWN): ... this.
10224 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10225 * mi/mi-main.c (register_changed_p): Adjust.
10227 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10229 * regcache.c (struct regcache_descr): Remove outdated comment.
10230 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10232 (regcache_xmalloc): Rename to ...
10233 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10234 Allocate the regcache type accordingly.
10235 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10236 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10237 cooked registers, not raw.
10238 (regcache_dup_no_passthrough): Delete.
10239 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10240 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10241 mention obsolete write_register_bytes.
10242 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10244 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10246 Stop remote_read_bytes from handling partial reads itself.
10248 * remote-fileio.c: Include target.h.
10249 (remote_fileio_write_bytes): Delete.
10250 (remote_fileio_func_open, remote_fileio_func_write)
10251 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10252 target_read_memory.
10253 (remote_fileio_func_stat): Use target_read_memory and
10254 target_write_memory.
10255 (remote_fileio_func_gettimeofday): Use target_write_memory.
10256 (remote_fileio_func_system): Use target_read_memory.
10257 * remote.c (remote_write_bytes): Make it static.
10258 (remote_read_bytes): Don't handle partial reads here.
10259 * remote.h (remote_read_bytes): Delete declaration.
10261 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10263 Simplify XML parsing a bit.
10265 * xml-support.h (gdb_xml_parse_quick): Declare.
10266 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10267 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10269 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10270 gdb_xml_create_parser_and_cleanup_1.
10271 (gdb_xml_parse_quick): New.
10272 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10273 * osdata.c (osdata_parse): Ditto.
10274 * remote.c (remote_threads_info): Ditto.
10275 * solib-target.c (solib_target_parse_libraries): Ditto.
10276 * xml-syscall.c (syscall_parse_xml): Ditto.
10277 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10279 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10281 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10282 with remote-mips.o added to gdb_target_obs.
10283 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10285 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10287 * ada-valprint.c (val_print_packed_array_elements): Pass the
10288 correct struct value to val_print.
10289 (ada_val_print_1): Ditto.
10291 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10293 Don't lose embedded_offset in printing routines throughout.
10295 * valprint.h (val_print_array_elements): Change prototype.
10296 * valprint.c (val_print_array_elements): Add `embedded_offset'
10297 parameter, and adjust to pass it down to val_print, while passing
10298 `valaddr' or `address' unmodified. Take embedded_offset into
10299 account when checking repetitions.
10300 * c-valprint.c (c_val_print): Pass embedded_offset to
10301 val_print_array_elements instead of adjusting `valaddr' and
10303 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10304 embedded_offset to val_print_array_elements instead of adjusting
10306 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10307 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10308 val_print_array_elements and pascal_object_print_value_fields
10309 instead of adjusting `valaddr'.
10310 (pascal_object_print_value_fields): Add `offset' parameter, and
10312 (pascal_object_print_value): Add `offset' parameter, and adjust to
10314 (pascal_object_print_static_field): Use
10315 value_contents_for_printing/value_embedded_offset, rather than
10317 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10318 parameter, and adjust to use it. Use
10319 value_contents_for_printing/value_embedded_offset, rather than
10321 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10322 (ada_val_print_array): Add `offset' parameter, and adjust to use
10324 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10325 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10326 Instead work with offsets. Use
10327 value_contents_for_printing/value_embedded_offset, rather than
10328 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10329 and use value_from_pointer to extract a target pointer, rather
10330 than value_from_longest.
10331 (print_variant_part): Add `offset' parameter. Replace
10332 `outer_valaddr' parameter by a new `outer_offset' parameter.
10333 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10334 (ada_value_print): Use
10335 value_contents_for_printing/value_embedded_offset, rather than
10337 (print_record): Add `offset' parameter, and adjust to pass it
10339 (print_field_values): Add `offset' parameter. Replace
10340 `outer_valaddr' parameter by a new `outer_offset' parameter.
10341 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10342 Use value_contents_for_printing/value_embedded_offset, rather than
10344 * d-valprint.c (dynamic_array_type): Use
10345 value_contents_for_printing/value_embedded_offset, rather than
10347 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10348 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10349 (java_print_value_fields): Take `offset' into account. Don't
10350 re-adjust `valaddr'. Instead pass down adjusted offsets.
10351 (java_val_print): Take `embedded_offset' into account. Pass it to
10352 java_print_value_fields.
10353 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10354 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10355 down adjusted offsets.
10356 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10357 (f_val_print): Take `embedded_offset' into account.
10359 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10361 * inflow.c: Include "gdbcmd.h".
10362 (interactive_mode): New static global, moved here from top.c.
10363 (show_interactive_mode): New function, moved here from top.c.
10364 use gdb_has_a_terminal instead of input_from_terminal_p to
10365 determine the current mode.
10366 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10368 (_initialize_inflow): Add the "set/show interactive-mode"
10369 commands. Moved here from top.c, after having adjusted slightly
10371 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10373 (input_from_terminal_p): Remove handling of "interactive-mode"
10374 setting, moved to infow.c.
10375 (init_main): Remove creation of the "set/show interactive-mode"
10376 commands, moved to inflow.c.
10378 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10380 * NEWS: Add entry for native ia64-hpux support.
10382 2011-01-19 Tom Tromey <tromey@redhat.com>
10385 * thread.c (free_thread): Free 'name'.
10386 (print_thread_info): Emit thread name. Change CLI output.
10387 (thread_name_command): New function.
10388 (do_captured_thread_select): Emit newline.
10389 (_initialize_thread): Register 'thread name' command.
10390 * target.h (struct target_ops) <to_thread_name>: New field.
10391 (target_thread_name): New macro.
10392 * target.c (update_current_target): Handle to_thread_name.
10393 * python/py-infthread.c (thpy_get_name): New function.
10394 (thpy_set_name): Likewise.
10395 (thread_object_getset): Add "name".
10396 * linux-nat.c (linux_nat_thread_name): New function.
10397 (linux_nat_add_target): Set to_thread_name.
10398 * gdbthread.h (struct thread_info) <name>: New field.
10400 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10402 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10403 (ada_val_print_1): Likewise.
10405 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10407 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10408 upper limit address is not greater than the function end address
10409 when the upper limit could not be computed using the debugging
10412 2011-01-17 Tom Tromey <tromey@redhat.com>
10414 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10416 * utils.c: Include gdb_regex.h.
10417 (do_regfree_cleanup): New function.
10418 (make_regfree_cleanup): Likewise.
10419 (get_regcomp_error): Likewise.
10420 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10422 2011-01-17 Tom Tromey <tromey@redhat.com>
10424 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10425 re_compile_fastmap.
10427 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10429 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10430 for internal variables.
10431 (last_was_structop): New static variable.
10432 (COMPLETE): New token.
10433 (field_exp): New rule to group all '.' suffix handling.
10434 Add mark_struct_expression calls when approriate to be able
10435 to correctly find fields for completion.
10436 (yylex): Adapt to handle field completion and set INTVAR when
10439 2011-01-14 Yao Qi <yao@codesourcery.com>
10441 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10442 save_reggroup, restore_reggroup and all_reggroup.
10444 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10446 * ada-valprint. (ada_printchar): Use the correct type length
10447 in call to ada_emit_char.
10448 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10450 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10452 * solib-som.h (hpux_major_release): Declare variable here.
10453 * solib-som.c: Remove <sys/utsname.h> header.
10454 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10455 (hpux_major_release): Make global, change default value to
10456 DEFAULT_HPUX_MAJOR_RELEASE.
10457 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10458 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10459 Add "solib-som.h" header.
10460 (set_hpux_major_release): New function.
10461 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10463 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10465 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10467 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10469 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10470 new-line at end of warning message.
10471 (ia64_hpux_store_register): Remove trailing new-line at end of
10473 * ia64-hpux-tdep.c: Rephrase comment.
10474 * solib-ia64-hpux.c (struct dld_info): Change type of field
10475 dld_flags from "long long" to ULONGEST.
10477 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10479 * target.h (deprecated_child_ops): Delete declaration.
10480 * target.c (deprecated_child_ops): Delete definition.
10482 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10484 * Makefile.in (hpux-thread.o): Delete rule.
10485 * configure.ac: Don't check for HPUX DCE threads support.
10486 * configure, config.in: Regenerate.
10487 * hppa-hpux-nat.c (child_suppress_run): Delete.
10488 (hppa_hpux_child_can_run): Delete.
10489 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10490 * hpux-thread.c: Delete.
10492 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10494 * hpux-thread.c (hpux_pid_to_str): Delete.
10496 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10498 * ada-valprint.c (ada_emit_char): Remove strange code.
10499 Check that c is <= UCHAR_MAX before passing it to isascii.
10500 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10502 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10504 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10505 to the case where instream is stdin.
10507 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10509 * ia64-tdep.h (struct regcache): Forward declare.
10510 (struct ia64_infcall_ops): New struct type.
10511 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10513 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10514 Renames ia64_find_global_pointer.
10515 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10516 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10517 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10519 (ia64_infcall_ops): New static global constant.
10520 (ia64_gdbarch_init): Set tdep->infcall_ops.
10521 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10522 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10523 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10524 (ia64_hpux_dummy_code): New static global constant.
10525 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10526 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10527 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10529 (ia64_hpux_infcall_ops): New static global constant.
10530 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10531 for inferior function calls to work properly on ia64-hpux.
10533 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10535 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10536 * ia64-tdep.h (struct frame_info): forward declaration.
10537 (struct gdbarch_tdep): Add field size_of_register_frame.
10538 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10539 to determine the size of the register frame.
10540 (ia64_size_of_register_frame): New function.
10541 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10542 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10543 (IA64_HPUX_UREG_REASON): New macro.
10544 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10546 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10547 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10548 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10551 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10553 Add support for ia64-hpux.
10554 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10555 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10557 * configure.host: Add handling for ia64-hpux hosts. Add associated
10559 * configure.tgt: Add handling for ia64-hpux targets.
10560 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10561 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10562 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10564 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10566 [ttrace] Compute thread list immediately after attach.
10567 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10569 (inf_ttrace_attach): Use it.
10571 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10573 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10574 if we could not determine the frame's function address. Instead,
10575 use the frame's PC, and then continue.
10577 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10579 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10580 not already defined.
10582 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10584 * ia64-tdep.c (ia64_struct_type_p): New function.
10585 (ia64_extract_return_value): Handle integral values that are
10586 less than 8 bytes long.
10587 (ia64_push_dummy_call): Likewise.
10589 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10591 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10592 floatformat_ia64_ext.
10593 (floatformat_ia64_ext_big): New static const.
10594 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10596 2011-01-12 Tom Tromey <tromey@redhat.com>
10598 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10600 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10601 (mi_cmd_thread_list_ids): Likewise.
10602 (mi_cmd_data_list_changed_registers): Likewise.
10603 (mi_cmd_data_list_register_values): Likewise.
10604 (mi_cmd_data_write_register_values): Likewise.
10605 (mi_cmd_data_evaluate_expression): Likewise.
10606 (mi_cmd_data_read_memory): Likewise.
10607 (mi_cmd_data_read_memory_bytes): Likewise.
10608 (mi_cmd_data_write_memory): Likewise.
10609 (mi_cmd_enable_timings): Likewise.
10610 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10611 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10612 (mi_cmd_var_delete): Likewise.
10613 (mi_cmd_var_set_format): Likewise.
10614 (mi_cmd_var_show_format): Likewise.
10615 (mi_cmd_var_info_num_children): Likewise.
10616 (mi_cmd_var_list_children): Likewise.
10617 (mi_cmd_var_info_type): Likewise.
10618 (mi_cmd_var_info_expression): Likewise.
10619 (mi_cmd_var_show_attributes): Likewise.
10620 (mi_cmd_var_assign): Likewise.
10621 (mi_cmd_var_update): Likewise.
10622 (mi_cmd_enable_pretty_printing): Likewise.
10623 (mi_cmd_var_set_update_range): Likewise.
10624 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10626 (mi_cmd_target_file_put): Likewise.
10627 (mi_cmd_target_file_delete): Likewise.
10628 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10630 (mi_cmd_stack_info_depth): Likewise.
10631 (mi_cmd_stack_list_locals): Likewise.
10632 (mi_cmd_stack_list_args): Likewise.
10633 (mi_cmd_stack_select_frame): Likewise.
10634 (mi_cmd_stack_select_frame): Likewise.
10635 (mi_cmd_stack_info_frame): Likewise.
10636 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10638 (mi_cmd_file_list_exec_source_files): Likewise.
10639 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10640 (mi_cmd_env_cd): Likewise.
10641 (mi_cmd_env_path): Likewise.
10642 (mi_cmd_env_dir): Likewise.
10643 (mi_cmd_inferior_tty_show): Likewise.
10644 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10645 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10646 (mi_cmd_break_watch): Likewise.
10648 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10650 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10651 (ppc_linux_insert_hw_breakpoint): Likewise.
10652 (ppc_linux_remove_hw_breakpoint): Likewise.
10653 (ppc_linux_insert_watchpoint): Likewise.
10655 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10656 Jan Kratochvil <jan.kratochvil@redhat.com>
10658 PR fortran/11104 and DWARF unbound arrays detection.
10659 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10660 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10661 unspecified upper bound.
10662 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10663 variables array_size_array, tmp_type and offset_item. New variable
10664 array. Remove call to f77_get_upperbound. New variables array_type
10665 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10666 the final call to deprecated_set_value_type.
10668 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10670 Make value allocations more lazy.
10671 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10672 instead of allocate_value and set_value_lazy when possible.
10673 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10674 instead of allocate_value and set_value_lazy.
10675 * findvar.c (value_of_register_lazy): Likewise.
10676 (read_var_value): Remove V preallocation, call just check_typedef in
10677 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10678 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10679 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10680 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10681 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10682 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10683 the end, remove set_value_lazy there.
10684 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10685 instead of allocate_value and set_value_lazy when possible.
10686 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10687 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10688 of allocate_value and set_value_lazy.
10689 (value_from_contents_and_address): Use allocate_value_lazy instead of
10690 allocate_value and set_value_lazy when possible.
10692 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10694 * disasm.c (dump_insns): Support dumping opcodes for MI.
10695 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10696 dumping of instruction opcodes.
10698 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10700 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10703 2011-01-11 Tom Tromey <tromey@redhat.com>
10705 * thread.c (do_captured_thread_select): Emit newline before
10708 2011-01-11 Michael Snyder <msnyder@vmware.com>
10710 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10711 * score-tdep.c: Ditto.
10712 * score-tdep.h: Ditto.
10713 * ser-base.c: Ditto.
10714 * ser-go32.c: Ditto.
10717 * ser-mingw.c: Ditto.
10718 * ser-pipe.c: Ditto.
10719 * ser-tcp.c: Ditto.
10720 * ser-unix.c: Ditto.
10721 * sh64-tdep.c: Ditto.
10722 * shnbsd-nat.c: Ditto.
10723 * sh-tdep.c: Ditto.
10724 * sh-tdep.h: Ditto.
10726 * solib-darwin.c: Ditto.
10727 * solib-frv.c: Ditto.
10729 * solib-irix.c: Ditto.
10730 * solib-osf.c: Ditto.
10731 * solib-pa64.c: Ditto.
10732 * solib-som.c: Ditto.
10733 * solib-spu.c: Ditto.
10734 * solib-sunos.c: Ditto.
10735 * solib-svr4.c: Ditto.
10737 * sol-thread.c: Ditto.
10738 * somread.c: Ditto.
10741 * sparc64-linux-tdep.c: Ditto.
10742 * sparc64-tdep.c: Ditto.
10743 * sparc-linux-nat.c: Ditto.
10744 * sparc-linux-tdep.c: Ditto.
10745 * sparc-sol2-nat.c: Ditto.
10746 * sparc-sol2-tdep.c: Ditto.
10747 * sparc-tdep.c: Ditto.
10748 * sparc-tdep.h: Ditto.
10749 * spu-tdep.c: Ditto.
10750 * stabsread.c: Ditto.
10751 * stabsread.h: Ditto.
10753 * symfile.c: Ditto.
10754 * symfile.h: Ditto.
10755 * symmisc.c: Ditto.
10759 * target-descriptions.c: Ditto.
10760 * target-descriptions.h: Ditto.
10762 * target-memory.c: Ditto.
10763 * terminal.h: Ditto.
10766 * tracepoint.c: Ditto.
10767 * tracepoint.h: Ditto.
10768 * trad-frame.h: Ditto.
10769 * typeprint.c: Ditto.
10771 2011-01-11 Michael Snyder <msnyder@vmware.com>
10773 * ui-file.c: Comment cleanup, mostly periods and spaces.
10774 * ui-file.h: Ditto.
10778 * v850-tdep.c: Ditto.
10779 * valarith.c: Ditto.
10781 * valprint.c: Ditto.
10782 * valprint.h: Ditto.
10787 * vax-tdep.c: Ditto.
10790 * version.h: Ditto.
10791 * windows-nat.c: Ditto.
10792 * windows-tdep.c: Ditto.
10793 * xcoffread.c: Ditto.
10794 * xcoffsolib.c: Ditto.
10795 * xml-support.c: Ditto.
10796 * xstormy16-tdep.c: Ditto.
10797 * xtensa-tdep.c: Ditto.
10798 * xtensa-tdep.h: Ditto.
10800 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10802 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10803 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10805 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10806 Thiago Jung Bauermann <bauerman@br.ibm.com>
10808 Implement support for PowerPC BookE ranged watchpoints.
10810 (struct breakpoint_ops) <resources_needed>: New method.
10811 Initialize to NULL in all existing breakpoint_ops instances.
10812 (struct breakpoint) <exact>: New field.
10813 (target_exact_watchpoints): Declare external global.
10814 * breakpoint.c (target_exact_watchpoints): New global flag.
10815 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10816 b->enable_state to bp_enabled before calling
10817 hw_watchpoint_used_count.
10818 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10819 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10821 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10822 if the watchpoint is exact.
10823 (resources_needed_watchpoint): New function.
10824 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10825 (watch_command_1): Set b->exact if the user asked for an exact
10826 watchpoint and one can be set.
10827 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10828 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10829 the user asks for an exact watchpoint and one can be set. Return
10830 number of needed debug registers to watch the expression.
10831 * gdbtypes.c (is_scalar_type): New function, based on
10832 valprint.c:scalar_type_p.
10833 (is_scalar_type_recursive): New function.
10834 * gdbtypes.h (is_scalar_type_recursive): Declare.
10835 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10836 handle regions when ranged watchpoints are available.
10837 (create_watchpoint_request): New function.
10838 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10839 create_watchpoint_request.
10840 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10841 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10842 `set powerpc' and `show powerpc' commands.
10843 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10844 Mention documentation comment in the target macro.
10845 (target_region_ok_for_hw_watchpoint): Document return value.
10847 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10849 * breakpoint.c (update_watchpoint): Decide on using a software or
10850 hardware watchpoint after the bp_locations are created.
10852 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10854 Convert hardware watchpoints to use breakpoint_ops.
10855 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10856 <insert_location>: ... this. Return int instead of void.
10857 Accept pointer to struct bp_location instead of pointer to
10858 struct breakpoint. Adapt all implementations.
10859 (breakpoint_ops) <remove>: Rename to...
10860 <remove_location>: ... this. Accept pointer to struct bp_location
10861 instead of pointer to struct breakpoint. Adapt all implementations.
10862 * breakpoint.c (insert_catchpoint): Delete function.
10863 (insert_bp_location): Call the watchpoint or catchpoint's
10864 breakpoint_ops.insert method.
10865 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10866 breakpoint_ops.remove method.
10867 (insert_watchpoint, remove_watchpoint): New functions.
10868 (watchpoint_breakpoint_ops): New structure.
10869 (watch_command_1): Initialize the OPS field.
10870 * inf-child.c (inf_child_insert_fork_catchpoint)
10871 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10872 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10873 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10875 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10876 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10877 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10878 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10879 * target.c (update_current_target): Change default implementation of
10880 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10881 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10882 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10883 to_set_syscall_catchpoint to return_one.
10884 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10885 (debug_to_insert_exec_catchpoint): Report return value.
10886 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10887 (to_insert_exec_catchpoint): Change declaration to return int instead
10890 2011-01-11 Michael Snyder <msnyder@vmware.com>
10892 * arm-tdep.c: Internationalization.
10894 * charset.c: Ditto.
10895 * fork-child.c: Ditto.
10896 * nto-procfs.c: Ditto.
10897 * ppc-sysv-tdep.c: Ditto.
10899 * remote-mips.c: Ditto.
10901 * rs6000-nat.c: Ditto.
10902 * rs6000-tdep.c: Ditto.
10906 * xml-support.c: Ditto.
10907 * mi/mi-cmd-break.c: Ditto.
10908 * mi/mi-cmd-var.c: Ditto.
10909 * mi/mi-interp.c: Ditto.
10910 * mi/mi-main.c: Ditto.
10912 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10914 * remote-sim.c (gdbsim_store_register): Update API to
10915 sim_store_register to check more error conditions.
10917 2011-01-10 Michael Snyder <msnyder@vmware.com>
10919 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10920 * nto-tdep.c: Ditto.
10921 * nto-tdep.h: Ditto.
10922 * objc-exp.y: Ditto.
10923 * objc-lang.c: Ditto.
10924 * objfiles.c: Ditto.
10925 * objfiles.h: Ditto.
10926 * observer.c: Ditto.
10927 * opencl-lang.c: Ditto.
10930 * parser-defs.h: Ditto.
10933 * posix-hdep.c: Ditto.
10934 * ppcbug-rom.c: Ditto.
10935 * ppc-linux-nat.c: Ditto.
10936 * ppc-linux-tdep.c: Ditto.
10937 * ppc-linux-tdep.h: Ditto.
10938 * ppcnbsd-tdep.c: Ditto.
10939 * ppcobsd-tdep.c: Ditto.
10940 * ppcobsd-tdep.h: Ditto.
10941 * ppc-sysv-tdep.c: Ditto.
10942 * ppc-tdep.h: Ditto.
10943 * printcmd.c: Ditto.
10944 * proc-abi.c: Ditto.
10945 * proc-flags.c: Ditto.
10947 * proc-utils.h: Ditto.
10948 * progspace.h: Ditto.
10949 * prologue-value.c: Ditto.
10950 * prologue-value.h: Ditto.
10951 * psympriv.h: Ditto.
10952 * psymtab.c: Ditto.
10953 * p-typeprint.c: Ditto.
10954 * p-valprint.c: Ditto.
10955 * ravenscar-sparc-thread.c: Ditto.
10956 * ravenscar-thread.c: Ditto.
10957 * ravenscar-thread.h: Ditto.
10959 * regcache.c: Ditto.
10960 * regcache.h: Ditto.
10962 * remote-fileio.c: Ditto.
10963 * remote-fileio.h: Ditto.
10965 * remote-m32r-sdi.c: Ditto.
10966 * remote-mips.c: Ditto.
10967 * remote-sim.c: Ditto.
10968 * rs6000-aix-tdep.c: Ditto.
10969 * rs6000-nat.c: Ditto.
10970 * rs6000-tdep.c: Ditto.
10972 2011-01-10 Michael Snyder <msnyder@vmware.com>
10974 * charset.c (validate): Internationalization.
10975 * coffread.c (read_one_sym): Ditto.
10976 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10977 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10978 * inflow.c (new_tty): Ditto.
10979 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10980 * m32c-tdep.c (m32c_return_value): Ditto.
10981 * mep-tdep.c (mep_store_return_value): Ditto.
10982 * score-tdep.c (score7_fetch_insn): Ditto.
10983 * ser-mingw.c (pipe_windows_open): Ditto.
10984 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10985 * spu-tdep.c (spu_register_type): Ditto.
10986 * tracepoint.c (trace_find_command): Ditto.
10987 * valarith.c (value_pos): Ditto.
10989 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10991 * ada-valprint.c (printstr): Minor comment reformatting.
10993 2011-01-08 Michael Snyder <msnyder@vmware.com>
10995 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10998 2011-01-08 Michael Snyder <msnyder@vmware.com>
11000 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11001 * hppa-hpux-tdep.c: Ditto.
11002 * hppa-linux-nat.c: Ditto.
11003 * hppa-linux-tdep.c: Ditto.
11004 * hppanbsd-tdep.c: Ditto.
11005 * hppa-tdep.c: Ditto.
11006 * hppa-tdep.h: Ditto.
11007 * hpux-thread.c: Ditto.
11008 * i386-cygwin-tdep.c: Ditto.
11009 * i386-darwin-nat.c: Ditto.
11010 * i386gnu-nat.c: Ditto.
11011 * i386-linux-nat.c: Ditto.
11012 * i386-linux-tdep.c: Ditto.
11013 * i386-nat.c: Ditto.
11014 * i386-nat.h: Ditto.
11015 * i386nbsd-tdep.c: Ditto.
11016 * i386-sol2-nat.c: Ditto.
11017 * i386-stub.c: Ditto.
11018 * i386-tdep.c: Ditto.
11019 * i386-tdep.h: Ditto.
11020 * i387-tdep.c: Ditto.
11021 * ia64-linux-nat.c: Ditto.
11022 * ia64-linux-tdep.c: Ditto.
11023 * ia64-tdep.c: Ditto.
11024 * infcall.c: Ditto.
11025 * infcall.h: Ditto.
11027 * inferior.c: Ditto.
11028 * inferior.h: Ditto.
11029 * infloop.c: Ditto.
11032 * interps.c: Ditto.
11033 * interps.h: Ditto.
11034 * iq2000-tdep.c: Ditto.
11035 * irix5-nat.c: Ditto.
11039 * jv-lang.c: Ditto.
11040 * jv-lang.h: Ditto.
11041 * jv-typeprint.c: Ditto.
11042 * jv-valprint.c: Ditto.
11043 * language.c: Ditto.
11044 * language.h: Ditto.
11045 * linespec.c: Ditto.
11046 * linux-fork.c: Ditto.
11047 * linux-nat.c: Ditto.
11048 * linux-thread-db.c: Ditto.
11049 * lm32-tdep.c: Ditto.
11051 2011-01-08 Michael Snyder <msnyder@vmware.com>
11053 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11054 * m2-lang.c: Ditto.
11055 * m2-typeprint.c: Ditto.
11056 * m2-valprint.c: Ditto.
11057 * m32c-tdep.c: Ditto.
11058 * m32r-linux-nat.c: Ditto.
11059 * m32r-rom.c: Ditto.
11060 * m32r-tdep.c: Ditto.
11061 * m32r-tdep.h: Ditto.
11062 * m68hc11-tdep.c: Ditto.
11063 * m58klinux-nat.c: Ditto.
11064 * m68k-tdep.c: Ditto.
11065 * m88k-tdep.c: Ditto.
11066 * m88k-tdep.h: Ditto.
11067 * machoread.c: Ditto.
11068 * macrocmd.c: Ditto.
11069 * macroexp.c: Ditto.
11070 * macrotab.c: Ditto.
11073 * mdebugread.c: Ditto.
11074 * mdebugread.h: Ditto.
11075 * memattr.c: Ditto.
11076 * memattr.h: Ditto.
11077 * memory-map.h: Ditto.
11078 * mep-tdep.c: Ditto.
11079 * microblaze-rom.c: Ditto.
11080 * microblaze-tdep.c: Ditto.
11081 * minsyms.c: Ditto.
11082 * mips-irix-tdep.c: Ditto.
11083 * mips-linux-nat.c: Ditto.
11084 * mips-linux-tdep.c: Ditto.
11085 * mips-linux-tdep.h: Ditto.
11086 * mipsnbsd-nat.c: Ditto.
11087 * mipsnbsd-tdep.c: Ditto.
11088 * mipsread.c: Ditto.
11089 * mips-tdep.c: Ditto.
11090 * mips-tdep.h: Ditto.
11091 * mn10300-linux-tdep.c: Ditto.
11092 * mn10300-tdep.c: Ditto.
11093 * mn10300-tdep.h: Ditto.
11094 * monitor.c: Ditto.
11095 * monitor.h: Ditto.
11096 * moxie-tdep.c: Ditto.
11097 * moxie-tdep.h: Ditto.
11098 * mt-tdep.c: Ditto.
11100 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11102 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11104 2011-01-08 Robert Millan <rmh@gnu.org>
11106 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11108 2011-01-07 Michael Snyder <msnyder@vmware.com>
11110 * charset.c (_initialize_charset): Fix typo in string.
11112 2011-01-07 Michael Snyder <msnyder@vmware.com>
11114 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11116 * tui/tui-layout.c (tui_set_layout_for_display_command):
11117 Split line so that operator goes to beginning of line.
11118 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11119 assignment out of if statement.
11121 2011-01-07 Michael Snyder <msnyder@vmware.com>
11123 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11124 * ada-lang.h: Ditto.
11125 * ada-tasks.c: Ditto.
11126 * ada-valprint.c: Ditto.
11127 * aix-threads.c: Ditto.
11128 * alpha-linux-nat.c: Ditto.
11129 * alpha-linux-tdep.c: Ditto.
11130 * alpha-mdebug-tdep.c: Ditto.
11131 * alpha-nat.c: Ditto.
11132 * alpha-osf1-tdep.c: Ditto.
11133 * alpha-tdep.c: Ditto.
11134 * alphabsd-nat.c: Ditto.
11135 * alphabsd-tdep.c: Ditto.
11136 * amd64-darwin-tdep.c: Ditto.
11137 * amd64-linux-nat.c: Ditto.
11138 * amd64-linux-tdep.c: Ditto.
11139 * amd64-sol2-tdep.c: Ditto.
11140 * amd64-tdep.c: Ditto.
11141 * amd64-fbsd-tdep.c: Ditto.
11142 * amd64-nbsd-tdep.c: Ditto.
11143 * amd64-obsd-tdep.c: Ditto.
11144 * amd64-linux-nat.c: Ditto.
11145 * amd64-linux-tdep.c: Ditto.
11146 * arm-tdep.c: Ditto.
11147 * arm-tdep.h: Ditto.
11148 * armnbsd-nat.c: Ditto.
11149 * avr-tdep.c: Ditto.
11150 * bfin-tdep.c: Ditto.
11151 * bsd-kvm.c: Ditto.
11152 * c-typeprintc: Ditto.
11153 * c-valprint.c: Ditto.
11154 * coff-pe-read.h: Ditto.
11155 * coffreead.c: Ditto.
11156 * cris-tdep.c: Ditto.
11158 * darwin-nat-info.c: Ditto.
11159 * darwin-nat.c: Ditto.
11160 * dbug-rom.c: Ditto.
11161 * dbxread.c: Ditto.
11164 * dec-thread.c: Ditto.
11166 * demangle.c: Ditto.
11167 * dicos-tdep.c: Ditto.
11168 * dictionary.c: Ditto.
11169 * dictionary.h: Ditto.
11170 * dink32-rom.c: Ditto.
11172 * doublest.c: Ditto.
11174 * dummy-frame.c: Ditto.
11175 * dwarf2-frame.c: Ditto.
11176 * dwarf2expr.c: Ditto.
11177 * dwarf2loc.c: Ditto.
11178 * dwarf2read.c: Ditto.
11179 * elfread.c: Ditto.
11180 * environ.c: Ditto.
11182 * event-top.h: Ditto.
11183 * exceptions.c: Ditto.
11184 * exceptions.h: Ditto.
11186 * expprint.c: Ditto.
11187 * expression.h: Ditto.
11191 * f-typeprint.c: Ditto.
11192 * f-valprint.c: Ditto.
11193 * fbsd-nat.c: Ditto.
11194 * findvar.c: Ditto.
11195 * fork-child.c: Ditto.
11198 * frv-linux-tdep.c: Ditto.
11199 * frv-tdep.c: Ditto.
11201 * gdb-stabs.h: Ditto.
11202 * gdb_assert.h: Ditto.
11203 * gdb_string.h: Ditto.
11204 * gdb_thread_db.h: Ditto.
11205 * gdb_wait.h: Ditto.
11206 * gdbarch.sh: Ditto.
11207 * gdbcore.h: Ditto.
11208 * gdbthread.h: Ditto.
11209 * gdbtypes.c: Ditto.
11210 * gdbtypes.h: Ditto.
11211 * gnu-nat.c: Ditto.
11212 * gnu-nat.h: Ditto.
11213 * gnu-v2-abi.c: Ditto.
11214 * gnu-v3-abi.c: Ditto.
11215 * go32-nat.c: Ditto.
11216 * gdbarch.c: Regenerate.
11217 * gdbarch.h: Regenerate.
11219 2011-01-07 Michael Snyder <msnyder@vmware.com>
11221 * ax-gdb.c: Adjust some long output strings.
11222 * breakpoint.c: Ditto.
11223 * charset.c: Ditto.
11225 * infcall.c: Ditto.
11227 * linux-nat.c: Ditto.
11228 * solib-pa64.c: Ditto.
11229 * solib-som.c: Ditto.
11231 2011-01-06 Tom Tromey <tromey@redhat.com>
11235 * python/python.c (GdbMethods): Add "newest_frame" method.
11236 * python/python-internal.h (gdbpy_newest_frame): Declare.
11237 * python/py-frame.c (gdbpy_newest_frame): New function.
11239 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11241 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11242 * jit.c (jit_debug): New variable.
11243 (show_jit_debug): New function.
11244 (struct target_buffer): Use ULONGEST.
11245 (bfd_open_from_target_memory): Likewise.
11246 (jit_register_code, jit_inferior_init): Add debug output.
11247 (_initialize_jit): Register "debug jit" command.
11249 2011-01-06 Tom Tromey <tromey@redhat.com>
11251 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11252 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11255 2011-01-06 Tom Tromey <tromey@redhat.com>
11257 * python/py-frame.c (frapy_block): Use get_frame_block.
11259 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11261 Do not stop on SIGPRIO signals by default
11262 * infrun.c (_initialize_infrun): Unset signal_stop and
11263 signal_print for TARGET_SIGNAL_PRIO.
11265 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11267 * ada-tasks.c: Fix style violation in comment.
11269 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11271 * linespec.c (decode_compound, find_method): Remove trailing \n
11272 at end of error string.
11273 * solib-irix.c (irix_current_sos): Likewise.
11274 * varobj.c (uninstall_variable): Likewise.
11276 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11278 * copyright.py: New script.
11279 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11280 Launch emacs without exec'ing. Call copyright.py afterwards.
11282 2011-01-05 Michael Snyder <msnyder@vmware.com>
11284 * addrmap.c: Shorten lines of >= 80 columns.
11285 * arch-utils.c: Ditto.
11286 * arch-utils.h: Ditto.
11288 * ax-general.c: Ditto.
11290 * blockframe.c: Ditto.
11291 * breakpoint.c: Ditto.
11292 * buildsym.c: Ditto.
11294 * c-typeprint.c: Ditto.
11295 * charset.c: Ditto.
11296 * coffread.c: Ditto.
11297 * command.h: Ditto.
11298 * corelow.c: Ditto.
11300 * cp-namespace.c: Ditto.
11301 * cp-support.c: Ditto.
11302 * dbug-rom.c: Ditto.
11303 * dbxread.c: Ditto.
11307 * dictionary.c: Ditto.
11309 * doublest.c: Ditto.
11310 * dwarf2-frame.c: Ditto.
11311 * dwarf2expr.c: Ditto.
11312 * dwarf2loc.c: Ditto.
11313 * dwarf2read.c: Ditto.
11314 * elfread.c: Ditto.
11316 * event-loop.c: Ditto.
11317 * event-loop.h: Ditto.
11318 * exceptions.h: Ditto.
11320 * expprint.c: Ditto.
11321 * expression.h: Ditto.
11323 * f-valprint.c: Ditto.
11324 * findcmd.c: Ditto.
11325 * frame-base.c: Ditto.
11326 * frame-unwind.c: Ditto.
11327 * frame-unwind.h: Ditto.
11331 * gdb-stabs.h: Ditto.
11332 * gdb_assert.h: Ditto.
11333 * gdb_dirent.h: Ditto.
11334 * gdb_obstack.h: Ditto.
11335 * gdbcore.h: Ditto.
11336 * gdbtypes.c: Ditto.
11337 * gdbtypes.h: Ditto.
11338 * inf-ttrace.c: Ditto.
11339 * infcall.c: Ditto.
11343 * inline-frame.h: Ditto.
11344 * language.c: Ditto.
11345 * language.h: Ditto.
11346 * libunwind-frame.c: Ditto.
11347 * libunwind-frame.h: Ditto.
11348 * linespec.c: Ditto.
11349 * linux-nat.c: Ditto.
11350 * linux-nat.h: Ditto.
11351 * linux-thread-db.c: Ditto.
11352 * machoread.c: Ditto.
11353 * macroexp.c: Ditto.
11354 * macrotab.c: Ditto.
11357 * mdebugread.c: Ditto.
11358 * memattr.c: Ditto.
11359 * minsyms.c: Ditto.
11360 * monitor.c: Ditto.
11361 * monitor.h: Ditto.
11362 * objfiles.c: Ditto.
11363 * objfiles.h: Ditto.
11365 * p-typeprint.c: Ditto.
11366 * p-valprint.c: Ditto.
11368 * printcmd.c: Ditto.
11369 * proc-events.c: Ditto.
11371 * progspace.c: Ditto.
11372 * progspace.h: Ditto.
11373 * psympriv.h: Ditto.
11374 * psymtab.c: Ditto.
11376 * regcache.c: Ditto.
11377 * regcache.h: Ditto.
11378 * remote-fileio.c: Ditto.
11380 * ser-mingw.c: Ditto.
11381 * ser-tcp.c: Ditto.
11382 * ser-unix.c: Ditto.
11385 * solib-frv.c: Ditto.
11386 * solib-irix.c: Ditto.
11387 * solib-osf.c: Ditto.
11388 * solib-pa64.c: Ditto.
11389 * solib-som.c: Ditto.
11390 * solib-sunos.c: Ditto.
11391 * solib-svr4.c: Ditto.
11392 * solib-target.c: Ditto.
11394 * somread.c: Ditto.
11396 * stabsread.c: Ditto.
11397 * stabsread.c: Ditto.
11400 * symfile-mem.c: Ditto.
11401 * symfile.c: Ditto.
11402 * symfile.h: Ditto.
11403 * symmisc.c: Ditto.
11406 * target-descriptions.c: Ditto.
11407 * target-memory.c: Ditto.
11410 * terminal.h: Ditto.
11413 * tracepoint.c: Ditto.
11414 * tracepoint.h: Ditto.
11415 * ui-file.c: Ditto.
11416 * ui-file.h: Ditto.
11418 * user-regs.c: Ditto.
11419 * user-regs.h: Ditto.
11421 * valarith.c: Ditto.
11423 * valprint.c: Ditto.
11424 * valprint.h: Ditto.
11429 * xcoffread.c: Ditto.
11430 * xcoffsolib.c: Ditto.
11431 * xcoffsolib.h: Ditto.
11432 * xml-syscall.c: Ditto.
11433 * xml-tdesc.c: Ditto.
11435 2011-01-05 Michael Snyder <msnyder@vmware.com>
11437 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11438 * cli/cli-decode.c: Ditto.
11439 * cli/cli-dump.c: Ditto.
11440 * cli/cli-logging.c: Ditto.
11441 * cli/cli-script.c: Ditto.
11442 * cli/cli-setshow.c: Ditto.
11443 * common/signals.c: Ditto.
11444 * mi/mi-cmd-break.c: Ditto.
11445 * mi/mi-cmd-disas.c: Ditto.
11446 * mi/mi-cmd-stack.c: Ditto.
11447 * mi/mi-cmd-var.c: Ditto.
11448 * mi/mi-cmds.c: Ditto.
11449 * mi/mi-common.h: Ditto.
11450 * mi/mi-console.c: Ditto.
11451 * mi/mi-interp.c: Ditto.
11452 * mi/mi-main.c: Ditto.
11453 * osf-share/cma_attr.c: Ditto.
11454 * osf-share/cma_deb_core.h: Ditto.
11455 * osf-share/cma_debug_client.h: Ditto.
11456 * osf-share/cma_handle.h: Ditto.
11457 * osf-share/cma_mutex.h: Ditto.
11458 * osf-share/cma_stack_int.h: Ditto.
11459 * osf-share/cma_tcb_defs.h: Ditto.
11460 * python/py-auto-load.c: Ditto.
11461 * python/py-breakpoint.c: Ditto.
11462 * python/py-cmd.c: Ditto.
11463 * python/py-frame.c: Ditto.
11464 * python/py-objfile.c: Ditto.
11465 * python/py-param.c: Ditto.
11466 * python/py-progspace.c: Ditto.
11467 * python/py-symbol.c: Ditto.
11468 * python/py-value.c: Ditto.
11469 * python/python-internal.h: Ditto.
11470 * python/python.c: Ditto.
11471 * tui/tui-data.c: Ditto.
11472 * tui/tui-disasm.c: Ditto.
11473 * tui/tui-hooks.c: Ditto.
11474 * tui/tui-io.c: Ditto.
11475 * tui/tui-layout.c: Ditto.
11476 * tui/tui-regs.c: Ditto.
11477 * tui/tui-source.c: Ditto.
11478 * tui/tui-stack.c: Ditto.
11479 * tui/tui-win.c: Ditto.
11480 * tui/tui-windata.c: Ditto.
11481 * tui/tui-winsource.c: Ditto.
11483 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11485 * configure.ac, gdb.1: Copyright year update.
11487 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11489 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11490 this_pc_in_block, morestack_msym and morestack_name. Check for
11491 "__morestack" minimal symbol there.
11493 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11495 * symfile.c (find_sym_fns): Add call to dont_repeat.
11497 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11499 Copyright year update in most files (performed by copyright.sh).
11501 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11503 * top.c (print_gdb_version): Update copyright year in version output.
11505 For older changes see ChangeLog-2010.
11511 version-control: never