gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
3
4 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
5 * features/library-list-svr4.dtd: New file.
6 * remote.c (PACKET_qXfer_libraries_svr4): New.
7 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
8 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
9 * solib-svr4.c (struct svr4_library_list): New.
10 [HAVE_LIBEXPAT]: Include xml-support.h.
11 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
12 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
13 [HAVE_LIBEXPAT] (svr4_library_list_children)
14 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
15 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
16 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
17 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
18 (svr4_read_so_list): Extend the corruption message by addresses.
19 (svr4_current_sos): New variable library_list, call
20 svr4_current_sos_via_xfer_libraries.
21 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
22
23 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
24
25 PR threads/13448
26 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
27 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
28
29 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
30
31 PR breakpoints/13346
32 * dwarf2read.c (process_psymtab_comp_unit): Set
33 PSYMTABS_ADDRMAP_SUPPORTED.
34 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
35 validity. New field psymtabs_addrmap_supported.
36 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
37 psymtabs_addrmap_supported.
38 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
39 !PSYMTABS_ADDRMAP_SUPPORTED.
40 (dump_psymtab, maintenance_info_psymtabs): Print also
41 psymtabs_addrmap_supported.
42
43 2011-12-01 Doug Evans <dje@google.com>
44
45 * python/py-type.c (type_object_methods): Fix "array" doc string.
46
47 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
48
49 * source.c (print_source_lines_base): Fix missing braces on else
50 clause leading to additional output.
51
52 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
53
54 * s390-nat.c (SUBOFF): Remove.
55 (s390_native_supply, s390_native_collect): New functions.
56 (supply_gregset, supply_fpregset): Use s390_native_supply.
57 (fill_gregset, fill_fpregset): Use s390_native_collect.
58
59 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
60 (s390_unwind_pseudo_register): New function.
61 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
62 registers instead of PC and CC.
63 (s390_backchain_frame_unwind_cache): Likewise.
64 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
65 full GPR pseudos.
66 (s390_trad_frame_prev_register): New function.
67 (s390_frame_prev_register): Use it.
68 (s390_sigtramp_frame_prev_register): Likewise.
69 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
70 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
71 special callback to unwind any pseudo.
72
73 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
74 * features/s390-core64.xml: Likewise.
75 * features/s390x-core64.xml: Likewise.
76 * features/s390-linux32.c: Regenerate.
77 * features/s390-linux64.c: Likewise.
78 * features/s390x-linux64.c: Likewise.
79
80 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
83
84 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
85
86 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
87 instruction. Add more diagnostic output.
88
89 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
90
91 * MAINTAINERS (Write After Approval): Add myself to the list.
92
93 2011-11-29 Sanjoy Das <sdas@igalia.com>
94
95 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
96 (jit_bfd_try_read_symtab): Fix comments.
97
98 2011-11-28 DJ Delorie <dj@redhat.com>
99
100 * NEWS: Mention RL78 simulator.
101
102 2011-11-28 Joel Brobecker <brobecker@adacore.com>
103
104 * symfile.h (struct quick_symbol_functions): Fix the documentation
105 of field map_matching_symbols, as symbols are sorted using
106 strcmp_iw_ordered, not strcmp_iw.
107
108 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
109
110 * symfile.h (struct quick_symbol_functions): Update the
111 documentation for field map_matching_symbols.
112
113 2011-11-28 Joel Brobecker <brobecker@adacore.com>
114
115 * ada-lang.c (compare_names): Fix wrong return value in case
116 string1 starts with the same contents as string2, followed
117 by an underscore that do not start a symbol name suffix.
118
119 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
120
121 PR python/13369
122 PR python/13374
123
124 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
125 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
126 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
127 exceptions.
128 * python/py-type.c (typy_strip_typedefs): Ditto.
129 (typy_legacy_template_argument): Ditto.
130 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
131 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
132
133 2011-11-27 Joel Brobecker <brobecker@acacore.com>
134
135 * remote.c (remote_get_tracepoint_status): Delete addrbuf
136 local variable. Avoid use of sprintf_vma.
137
138 2011-11-27 Sanjoy Das <sdas@igalia.com>
139
140 Fix regression in jit.exp.
141 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
142 (jit_register_code): Set the jit_objfile_data field to the correct
143 value.
144
145 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
146
147 * alpha-tdep.c (br_opcode): New.
148 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
149 (alpha_deal_with_atomic_sequence): New function.
150 (alpha_gdbarch_init): Handle single stepping of atomic sequences
151 with alpha_deal_with_atomic_sequence.
152
153 2011-11-24 Tristan Gingold <gingold@adacore.com>
154
155 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
156 fields. Add oso_sym, end_sym and nbr_syms.
157 (macho_register_oso): Change interface.
158 (macho_symtab_add_minsym): New function.
159 (macho_symtab_read): Rewritten.
160 (get_archive_prefix_len): Remove trailing blanks.
161 (oso_el_compare_name): Add comment.
162 (struct macho_sym_hash_entry): New structure.
163 (macho_relocate_common_syms): Remove.
164 (macho_sym_hash_newfunc): New function.
165 (macho_resolve_oso_sym_with_minsym): Likewise.
166 (macho_add_oso_symfile): Rewritten.
167 (macho_symfile_read_all_oso): Remove trailing blanks.
168 Adjust code to free oso vector.
169 (macho_symfile_read): Likewise.
170 Move code to initialize minimal symbol
171
172 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
173
174 * mips-tdep.c (extended_offset): Fix formatting.
175
176 2011-11-23 Doug Evans <dje@google.com>
177
178 * dwarf2read.c (dw2_lookup_symtab): Add comment.
179 (dw2_expand_symtabs_with_filename): Ditto.
180 (dw2_expand_symtabs_matching): Ditto.
181 (dw2_map_symbol_filenames): Ditto.
182
183 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
184
185 * ada-lang.c (assign_aggregate): Minor reformatting.
186
187 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
188
189 * ada-lang.c (assign_aggregate): Remove declaration of local
190 variable `i' which is shadowing another variable with the same
191 name declared in the outer scope.
192
193 2011-11-23 Joel Brobecker <brobecker@adacore.com>
194
195 * ada-lang.c (get_base_type): Renames base_type. Adjust all
196 calls throughout this file.
197
198 2011-11-23 Joel Brobecker <brobecker@adacore.com>
199
200 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
201 FormatMessage.
202
203 2011-11-22 Tom Tromey <tromey@redhat.com>
204
205 PR mi/8444:
206 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
207 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
208 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
209 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
210 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
211 (print_it_catch_syscall, print_it_catch_exec)
212 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
213 (bpstat_print): Add 'kind' argument. Handle
214 TARGET_WAITKIND_LOADED.
215 * infrun.c (normal_stop): Update for bpstat_print change. Don't
216 handle TARGET_WAITKIND_LOADED here.
217 * breakpoint.h (bpstat_print): Update.
218
219 2011-11-22 Tom Tromey <tromey@redhat.com>
220
221 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
222
223 2011-11-22 Tom Tromey <tromey@redhat.com>
224
225 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
226 Use static_assert to check the size of
227 async_reason_string_lookup.
228 * common/gdb_assert.h (static_assert): New macro.
229
230 2011-11-22 Alan Modra <amodra@gmail.com>
231
232 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
233 destination calculation. Don't expect >> to sign extend. Don't
234 add a break if branch lands inside the sequence anywhere.
235
236 2011-11-21 Keith Seitz <keiths@redhat.com>
237
238 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
239 -var-evaluate-expression of an enumeration and fix expected result.
240 * gdb.mi/mi2-varvdisplay.exp: Likewise.
241
242 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
243
244 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
245 the case where osdata->items is empty. Rename column names to a
246 canonical form to avoid problems with unusual column names.
247
248 2011-11-21 Yao Qi <yao@codesourcery.com>
249
250 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
251
252 2011-11-20 Stan Shebs <stan@codesourcery.com>
253
254 * NEWS: Mention tracepoint additions.
255 * breakpoint.h (struct tracepoint): New field traceframe_usage.
256 * breakpoint.c (print_one_breakpoint_location): Identify
257 tracepoints as such when reporting hit counts, report
258 trace buffer usage.
259 (create_tracepoint_from_upload): Copy status info.
260 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
261 add fields user_name, notes, start_time, stop_time.
262 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
263 * tracepoint.c (trace_user): New global.
264 (trace_notes): New global.
265 (trace_stop_notes): New global.
266 (start_tracing): Add argument and trace note handling.
267 (stop_tracing): Ditto.
268 (trace_start_command): Add notes argument.
269 (trace_stop_command): Ditto.
270 (trace_status_command): Report additional status info.
271 (trace_status_mi): Similarly.
272 (trace_save): Update, record tracepoint status.
273 (set_disconnected_tracing): Call target method directly.
274 (send_disconnected_tracing_value): Remove.
275 (set_trace_user): New function.
276 (set_trace_notes): New function.
277 (set_trace_stop_notes): New function.
278 (parse_trace_status): Handle additional status.
279 (parse_tracepoint_status): New function.
280 (parse_tracepoint_definition): Call it.
281 (tfile_get_tracepoint_status): New function.
282 (init_tfile_ops): Use it.
283 (_initialize_tracepoint): Add new setshows.
284 * target.h (struct target_ops): New methods to_get_tracepoint_status
285 and to_set_trace_notes.
286 (target_get_tracepoint_status): New macro.
287 (target_set_trace_notes): New macro.
288 * target.c (update_current_target): Add new methods.
289 * remote.c (remote_get_tracepoint_status): New function.
290 (remote_set_trace_notes): New function.
291 (init_remote_ops): Add them.
292 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
293 (mi_cmd_trace_stop): Ditto.
294
295 2011-11-20 Sanjoy Das <sdas@igalia.com>
296
297 * jit.c: Include regcache.h.
298 (jit_gdbarch_data, jit_frame_unwind): New static variables.
299 (jit_unwind_reg_set_impl, free_reg_value_impl)
300 (jit_unwind_reg_get_impl, jit_frame_sniffer)
301 (jit_frame_unwind_stop_reason, jit_frame_this_id)
302 (jit_frame_prev_register, jit_dealloc_cache)
303 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
304 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
305 jit_prepend_unwinder.
306 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
307
308 2011-11-20 Sanjoy Das <sdas@igalia.com>
309
310 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
311 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
312 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
313 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
314 (finalize_symtab, jit_object_close_impl)
315 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
316 (free_objfile_data): New functions.
317 (_initialize_jit): Register jit_objfile_data with a proper cleanup
318 function.
319
320 2011-11-20 Sanjoy Das <sdas@igalia.com>
321
322 * jit.c: Include gdb-dlfcn.h.
323 (loaded_jit_reader, reader_init_fn_sym): New static variables.
324 (jit_reader_load, jit_reader_load_command)
325 (jit_reader_unload_command): New functions.
326 (_initialize_jit): Add commands "jit-reader-load" and
327 "jit-reader-unload".
328
329 2011-11-20 Sanjoy Das <sdas@igalia.com>
330
331 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
332 * config.in: Add new #define HAVE_LIBDL.
333 * configure.ac: Add check for -ldl.
334 * configure: Re-generated by autoconf.
335 * gdb-dlfcn.c: New file.
336 * gdb-dlfcn.h: New file.
337
338 2011-11-20 Sanjoy Das <sdas@igalia.com>
339
340 * config.in: Add new #defines: JIT_READER_DIR and
341 JIT_READER_DIR_RELOCATABLE.
342 * configure.ac: New GDB directory entry for jit-reader-dir.
343 * configure: Re-generated by autoconf.
344 * jit.c: New static variable: const char *jit_reader_dir.
345 (_initialize_jit): Relocate jit_reader_dir.
346
347 2011-11-20 Sanjoy Das <sdas@igalia.com>
348
349 * Makefile.in: Add jit-reader.h as a header. Have it installed in
350 $(includedir)/gdb.
351 * configure.ac: Generate a correct value for TARGET_PTR for
352 jit-reader.h. Tell configure to generate jit-reader.h from
353 jit-reader.in.
354 * configure: Re-generated by autoconf.
355 * jit-reader.in: New file.
356 * jit.c: Include jit-reader.h.
357
358 2011-11-20 Sanjoy Das <sdas@igalia.com>
359
360 * MAINTAINERS (Write After Approval): Add myself to the list.
361
362 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
363
364 * findvar.c (read_frame_register_value): Respect value_offset
365 of the register value. Remove big-endian special case.
366
367 2011-11-18 Tom Tromey <tromey@redhat.com>
368
369 PR build/7196:
370 * remote.c (putpkt_for_catch_errors): New function.
371 (remote_kill): Use it.
372
373 2011-11-18 Yao Qi <yao@codesourcery.com>
374
375 * breakpoint.c (create_breakpoint): Produce query message according to
376 breakpoint's type.
377 Allocate tracepoint per correct type.
378 Don't check SALs for pending fast tracepoints.
379 * tracepoint.c (process_tracepoint_on_disconnect): New.
380 (disconnect_tracing): Call process_tracepoint_on_disconnect.
381
382 2011-11-18 Yao Qi <yao@codesourcery.com>
383
384 * breakpoint.c (install_breakpoint): Add one more parameter so that
385 update_global_location_list is called conditionally.
386 (create_fork_vfork_event_catchpoint): Update.
387 (create_syscall_event_catchpoint): Update.
388 (create_breakpoint_sal): Update.
389 (create_breakpoint_sal): Update. Call do_cleanups before
390 install_breakpoint.
391 * ada-lang.c (create_ada_exception_catchpoint): Update.
392 * breakpoint.h (install_breakpoint): Update declaration.
393
394 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
395
396 * spu-tdep.c (spu_return_value): Fix handling of
397 TYPE_CALLING_CONVENTION annotation.
398
399 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
400
401 * skip.c (skip_function_command): Work around uninitialized
402 variable warning.
403
404 2011-11-16 David S. Miller <davem@davemloft.net>
405
406 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
407 'tv_usec' to long for printf since these fields have a type which
408 varies.
409
410 2011-11-15 Doug Evans <dje@google.com>
411
412 * buildsym.c (add_symbol_to_list): Delete outdated comment.
413
414 2011-11-15 Paul Koning <paul_koning@dell.com>
415
416 * python/py-type.c (typy_get_composite): New function.
417 (typy_nonzero): New function.
418 (typy_values): Rename from typy_fields.
419 (typy_fields): New function.
420 (typy_length): Raise exception if not struct, union, or enum type.
421 (typy_getitem): Ditto.
422 (typy_has_key): Ditto.
423 (typy_make_iter): Ditto.
424
425 2011-11-15 Doug Evans <dje@google.com>
426
427 * NEWS: Mention new parameter basenames-may-differ.
428 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
429 ! basenames_may_differ.
430 * psymtab.c (lookup_partial_symtab): Ditto.
431 * symtab.c (lookup_symtab): Ditto.
432 (basenames_may_differ): New global.
433 (_initialize_symtab): New parameter basenames-may-differ.
434 * symtab.h (basenames_may_differ): Declare.
435
436 2011-11-15 Pedro Alves <pedro@codesourcery.com>
437 Luis Machado <lgustavo@codesourcery.com>
438
439 * auxv.c: Include observer.h.
440 (auxv_inferior_data_cleanup): New.
441 (invalidate_auxv_cache_inf): New.
442 (invalidate_auxv_cache): New.
443 (get_auxv_inferior_data): New.
444 (auxv_inferior_data): New static global.
445 (auxv_info): New structure.
446 (target_auxv_search): Use get_auxv_inferior_data instead of
447 target_read_alloc and don't free cached buffers.
448 (fprint_target_auxv): Likewise
449 (_initialize_auxv): Register per-inferior auxv cache and register
450 observers to invalidate auxv cache when needed.
451
452 2011-11-14 Doug Evans <dje@google.com>
453
454 Make "!" an alias for "shell".
455 * NEWS: Add mention.
456 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
457 adding "!" command, always add it.
458 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
459 command of length one.
460
461 2011-11-14 Stan Shebs <stan@codesourcery.com>
462 Kwok Cheung Yeung <kcy@codesourcery.com>
463
464 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
465 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
466 the minimum instruction size for fast tracepoints.
467 * target.h (struct target_ops): Add new method
468 to_get_min_fast_tracepoint_insn_len.
469 (target_get_min_fast_tracepoint_insn_len): New.
470 * target.c (update_current_target): Set up new target operation.
471 * remote.c (remote_write_bytes_aux): Fix typo.
472 (remote_get_min_fast_tracepoint_insn_len): New.
473 (init_remote_ops): Initialize new field.
474
475 2011-11-14 Tom Tromey <tromey@redhat.com>
476
477 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
478 (encode_actions): Likewise.
479
480 2011-11-14 Yao Qi <yao@codesourcery.com>
481
482 * remote.c (struct remote_state): <install_in_trace> new field.
483 (PACKET_InstallInTrace): New enum value.
484 (remote_install_in_trace_feature): Support InstallInTrace.
485 (remote_supports_install_in_trace): Likewise.
486 (remote_protocol_features): Likewise.
487 (_initialize_remote): Likewise.
488 (remote_can_download_tracepoint): New.
489 * target.h (struct target): New field
490 `to_can_download_tracepoint'.
491 (target_can_download_tracepoint): New macro.
492 * target.c (update_current_target): Update.
493 * breakpoint.h (struct bp_location): Add comment on field
494 `duplicate'.
495 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
496 and tracepoint.
497 (remove_breakpoints): Don't remove tracepoints.
498 (tracepoint_locations_match ): New.
499 (breakpoint_locations_match): Call it.
500 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
501 (download_tracepoint_locations): New.
502 (update_global_location_list): Call it.
503 * tracepoint.c (find_matching_tracepoint): Delete.
504 (find_matching_tracepoint_location): Renamed from
505 find_matching_tracepoint. Return bp_location rather than
506 tracepoint.
507 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
508 tracepoint is found.
509
510 2011-11-14 Yao Qi <yao@codesourcery.com>
511
512 * target.h (struct target): <to_download_tracepoint> Change type
513 of parameter from tracepoint to bp_location.
514 * target.c (update_current_target): Update.
515 * tracepoint.c (start_tracing): Update.
516 * remote.c (remote_download_tracepoint): Remove loop for each location
517 of a tracepoint.
518
519 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
520
521 * i386-nat.c (i386_insert_hw_breakpoint): Call
522 i386_update_inferior_debug_regs.
523 (i386_remove_hw_breakpoint): Likewise.
524
525 2011-11-14 Yao Qi <yao@codesourcery.com>
526
527 * breakpoint.c (init_raw_breakpoint): Call
528 add_location_to_breakpoint to replace duplicated code.
529 (add_location_to_breakpoint): Adjust the breakpoint's
530 address prior to allocating a location.
531
532 2011-11-12 Matt Rice <ratmice@gmail.com>
533
534 * macrocmd.c (macro_no_macro_info): New function.
535 (macro_expand_command): Use macro_no_macro_info.
536 (macro_expand_once_command): Ditto.
537 (info_macro_command): Add argument processing,
538 move info_definitions_command here.
539 (_initialize_macrocmd): Remove info definitions command.
540 Add arguments to info macro help text.
541 * NEWS: Replace info definitions command with new info macro options.
542
543 2011-11-11 Keith Seitz <keiths@redhat.com>
544
545 PR gdb/12843
546 * linespec.c (locate_first_half): Keep ':' if it looks
547 like it could be part of a Windows path starting with
548 a drive letter.
549
550 2011-11-10 Pedro Alves <pedro@codesourcery.com>
551
552 * linux-nat.c (linux_nat_wait): Don't force waking up the event
553 loop when returning a TARGET_WAITKIND_NO_RESUMED.
554
555 2011-11-10 Pedro Alves <pedro@codesourcery.com>
556
557 * target.c (target_waitstatus_to_string): Handle
558 TARGET_WAITKIND_NO_RESUMED.
559
560 2011-11-10 Doug Evans <dje@google.com>
561
562 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
563 `need_fullname'.
564 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
565 (map_partial_symbol_filenames): Ditto. All callers updated.
566 * psymtab.h (map_partial_symbol_filenames): Update prototype.
567 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
568 parameter need_fullname.
569
570 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
571 * source.c (symtab_to_fullname): Ditto.
572
573 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
574 * gdb-demangle.h: ... here. New file.
575 * demangle.c: #include "gdb-demangle.h".
576 (_initialize_demangler): Use initialize_file_ftype for prototype.
577 Move "set demangle" and "set asm-demangle" parameters here from utils.c
578 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
579 from utils.c
580 * utils.c: Update. #include "gdb-demangle.h".
581 * symtab.h (asm_demangle): Delete.
582 (demangle): Move declaration next to use.
583 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
584 * dwarf2read.c: #include "gdb-demangle.h".
585 * gnu-v2-abi.c: Ditto.
586 * jv-typeprint.c: Ditto.
587 * mdebugread.c: Ditto.
588 * p-typeprint.c: Ditto.
589 * stabsread.c: Ditto.
590 * printcmd.c: Ditto.
591 (asm_demangle): Delete declaration.
592 * tui/tui-stack.c: #include "gdb-demangle.h".
593
594 * python/py-type.c (typy_fields_items): Call check_typedef.
595
596 2011-11-10 Joel Brobecker <brobecker@adacore.com>
597
598 * findvar.c (read_frame_register_value): Read the correct bytes
599 from registers on big-endian architectures.
600
601 2011-11-10 Tom Tromey <tromey@redhat.com>
602
603 * procfs.c (load_syscalls): Make a cleanup.
604 (open_procinfo_files): fd==0 is ok.
605
606 2011-11-10 Joel Brobecker <brobecker@adacore.com>
607
608 * procfs.c (iterate_over_mappings): Call do_cleanups before
609 returning.
610
611 2011-11-09 Doug Evans <dje@google.com>
612
613 * gdbtypes.c (check_typedef): Document that this function can
614 throw an exception.
615
616 2011-11-09 Tom Tromey <tromey@redhat.com>
617
618 PR c++/13342:
619 * valops.c (value_full_object): Return early if real type is
620 smaller than the enclosing type.
621
622 2011-11-08 Yao Qi <yao@codesourcery.com>
623
624 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
625
626 2011-11-08 Meador Inge <meadori@codesourcery.com>
627
628 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
629 register when the frame can't be determined.
630 * arm-tdep.c (arm_analyze_prologue): Ditto.
631
632 2011-11-07 Stan Shebs <stan@codesourcery.com>
633
634 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
635
636 2011-11-07 Joel Brobecker <brobecker@adacore.com>
637
638 * infrun.c (handle_inferior_event): Minor reformatting.
639
640 2011-11-05 Doug Evans <dje@google.com>
641
642 * source.c (forget_cached_source_info_for_objfile): Move call to
643 objfile->sf->qf->forget_cached_source_info outside of
644 ALL_OBJFILE_SYMTABS loop.
645 (forget_cached_source_info): Delete unused variable `s'.
646
647 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 * i386-nat.c (dr_ref_count): Remove unused variable.
650
651 2011-11-05 Doug Evans <dje@google.com>
652
653 * main.c (captured_main): Set lim_at_start before calling
654 make_command_stats_cleanup.
655
656 2011-11-04 Doug Evans <dje@google.com>
657
658 * utils.c: #include "timeval-utils.h".
659 (cmd_stats): Rename start_time to start_cpu_time.
660 New member start_wall_time.
661 (report_command_stats): Report wall time.
662 (make_command_stats_cleanup): Record start wall time.
663
664 2011-11-04 Tom Tromey <tromey@redhat.com>
665
666 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
667
668 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669
670 * coff-pe-read.c: Include defs.h before bfd.h.
671
672 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
673
674 PR Python/13345
675
676 * python/python.c (python_run_simple_file): Expand tilde in path.
677
678 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
679
680 PR Python/13363
681
682 * python/py-type.c (typy_lookup_type): Do not return a type in
683 an exception handler.
684
685 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
686 Eli Zaretskii <eliz@gnu.org>
687
688 * linux-nat.c (_initialize_linux_nat): Improve help
689 for `info proc stat', `info proc status', `info proc cwd',
690 `info proc cmdline' and `info proc exe'.
691
692 2011-11-02 Stan Shebs <stan@codesourcery.com>
693
694 String collection for tracepoints.
695 * NEWS: Mention string collection.
696 * common/ax.def (tracenz): New bytecode.
697 * ax-gdb.h (trace_string_kludge): Declare.
698 * ax-gdb.c: Include valprint.h and c-lang.h.
699 (trace_string_kludge): New global.
700 (gen_traced_pop): Add string case.
701 (agent_command): Add string case.
702 * tracepoint.h (decode_agent_options): Declare.
703 * tracepoint.c: Include cli-utils.h.
704 (decode_agent_options): New function.
705 (validate_actionline): Call it.
706 (encode_actions_1): Ditto.
707 * target.h (struct target_ops): New method to_supports_string_tracing.
708 (target_supports_string_tracing): New macro.
709 * target.c (update_current_target): Add to_supports_string_tracing.
710 * remote.c (struct remote_state): New field string_tracing.
711 (remote_string_tracing_feature): New function.
712 (remote_protocol_features): New feature tracenz.
713 (remote_supports_string_tracing): New function.
714 (init_remote_ops): Set to_supports_string_tracing.
715
716 2011-11-02 Pedro Alves <pedro@codesourcery.com>
717 Jan Kratochvil <jan.kratochvil@redhat.com>
718
719 * linux-nat.c: Include cli/cli-utils.h.
720 (enum info_proc_what): New.
721 (linux_nat_info_proc_cmd): Rename to ...
722 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
723 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
724 status_f and stat_f from WHAT. Throw error on extra parameters.
725 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
726 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
727 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
728 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
729 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
730 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
731 `info proc cmdline', `info proc exe' and `info proc all' as real
732 subcommands of `info proc'.
733
734 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
735
736 * Makefile.in: (SFILES): Add skip.c.
737 (HFILES_NO_SRCDIR): Add skip.h.
738 (COMMON_OBS): Add skip.o.
739 * skip.h, skip.c: New.
740 * breakpoint.h (set_default_breakpoint): Remove.
741 (get_sal_arch): Declare.
742 * breakpoint.c: Remove default_breakpoint_valid,
743 default_breakpoint_address, default_breakpoint_symtab,
744 default_breakpoint_line, default_breakpoint_pspace variables.
745 (get_sal_arch): Make public.
746 (set_default_breakpoint): Remove.
747 (parse_breakpoint_sals, create_breakpoint, clear_command,
748 decode_line_spec_1): Remove uses of default_breakpoint variables;
749 replaced with function calls into stack.c.
750 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
751 * cli/cli-cmds.c: Add skiplist.
752 (init_cmd_lists): Initialize skiplist.
753 (init_cli_cmds): Fix comment (classes of commands appear in
754 alphabetical order).
755 * infrun.c (handle_inferior_event): Add check that we don't step into
756 a function whose pc is marked for skip.
757 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
758 last_displayed_addr, last_displayed_symtab, last_displayed_line
759 variables.
760 (set_last_displayed_sal): New static function.
761 (print_frame_info): Switch call to set_default_breakpoint to call to
762 set_last_displayed_sal.
763 (clear_last_displayed_sal, last_displayed_sal_is_valid,
764 get_last_displayed_pspace, get_last_displayed_addr,
765 get_last_displayed_symtab, get_last_displayed_line,
766 get_last_displayed_sal): New public functions.
767 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
768 get_last_displayed_pspace, get_last_displayed_addr,
769 get_last_displayed_symtab, get_last_displayed_line,
770 get_last_displayed_sal): Declare.
771
772 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
773
774 * MAINTAINERS (Write After Approval): Add myself to the list.
775
776 2011-10-29 Yao Qi <yao@codesourcery.com>
777
778 * infcmd.c (disconnect_command): Call disconnect_tracing.
779
780 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
781
782 Code cleanup.
783 * symtab.c (skip_prologue_sal): Code reformatting.
784
785 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
786
787 PR symtab/13208
788 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
789 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
790 SAI.
791
792 2011-10-28 Pedro Alves <pedro@codesourcery.com>
793
794 * linux-nat.c (linux_nat_filter_event): Remove `options'
795 parameter, and dead code that used it. If we're handling a
796 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
797 in our lwp list, re-add it.
798 (check_zombie_leaders): New.
799 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
800 wait for children with WNOHANG, and always wait for all children.
801 Don't check for no resumed children upfront. Simplify wait loop.
802 Check for zombie thread group leaders after handling all wait
803 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
804 unwaited-for children left.
805 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
806 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
807 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
808 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
809
810 2011-10-28 Sterling Augustine <saugustine@google.com>
811
812 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
813 * symtab.c (free_completion_list): New function.
814 (do_free_completion_list): Likewise.
815 (default_make_symbol_completion_list_break_on): New variable
816 back_to. Call make_cleanup and discard_cleanups.
817 (make_source_files_completion_list): Likewise.
818
819 2011-10-28 Paul Koning <paul_koning@dell.com>
820
821 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
822 * NEWS: Mention deep_items.
823
824 2011-10-28 Alen Skondro <askondro@gmail.com>
825
826 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
827 defined.
828
829 2011-10-27 Meador Inge <meadori@codesourcery.com>
830
831 * MAINTAINERS (Write After Approval): Add myself to the list.
832
833 2011-10-27 Joel Brobecker <brobecker@adacore.com>
834
835 * value.h (read_frame_register_value): Add declaration.
836 * findvar.c (read_frame_register_value): New function.
837 (value_from_register): Use read_frame_register_value
838 instead of get_frame_register_value + value_contents_copy
839 to get value contents.
840
841 2011-10-27 Doug Evans <dje@google.com>
842
843 * cli/cli-cmds.c (source_script_with_search): Pass full path to
844 source_script_from_stream if it may have been found on the search path.
845 * python/py-auto-load.c (source_section_scripts): Pass full path to
846 source_python_script_for_objfile.
847 * python/python.c (source_python_script): Delete stream parameter.
848 All callers updated.
849 (source_python_script_for_objfile): Ditto.
850 * python/python-internal.h (source_python_script_for_objfile): Update.
851 * python/python.h (source_python_script): Update.
852
853 2011-10-27 Tom Tromey <tromey@redhat.com>
854
855 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
856 (ada_sals_for_line): Remove declarations.
857
858 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
859
860 Move unwind reasons to an external .def file
861 * frame.c (frame_stop_reason_string): Rewrite using
862 unwind_stop_reasons.def.
863 * frame.h (enum unwind_stop_reason): Likewise.
864 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
865 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
866 constants for bound-checking.
867 * unwind_stop_reasons.def: New file.
868 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
869 instead of a distinct value.
870
871 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
872
873 PR python/13331
874
875 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
876 (convert_values_to_python): Return on Python tuple allocation
877 failure. Return NULL on value conversion error.
878
879 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
880
881 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
882 (bppy_set_task): Ditto.
883 (bppy_delete_breakpoint): Ditto.
884 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
885 (gdbpy_lookup_global_symbol): Ditto.
886 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
887 * python/py-frame.c (frapy_is_valid): Ditto.
888 (frame_info_to_frame_object): Ditto.
889 * python/py-type.c (typy_lookup_type): Ditto.
890 (typy_getitem): Ditto.
891 (typy_has_key): Ditto.
892 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
893
894 2011-10-26 Joel Brobecker <brobecker@adacore.com>
895
896 * gdbarch.h: Regenerate.
897
898 2011-10-26 Meador Inge <meadori@codesourcery.com>
899
900 * gdbarch.sh (function_list): Use 'pstring' when printing
901 'gcore_bfd_target'.
902 * gdbarch.c: Regenerate.
903
904 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
905
906 * regcache.c (registers_changed_ptid): Invalidate thread architecture
907 and frame caches if PTID refers to all threads of a process.
908
909 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
910
911 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
912 to create_breakpoint.
913
914 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
915
916 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
917 (ppc_sysv_abi_push_dummy_call): Use it.
918 (do_ppc_sysv_return_value): Likewise.
919 (ppc64_sysv_abi_push_dummy_call): Likewise.
920 (ppc64_sysv_abi_return_value): Likewise.
921
922 2011-10-26 Paul Koning <paul_koning@dell.com>
923
924 * python/lib/gdb/types.py (deepitems): New function.
925
926 2011-10-25 Paul Koning <paul_koning@dell.com>
927
928 PR python/13327
929
930 * python/py-value.c (value_to_value_object): Remove fetching of
931 the value if it was lazy.
932 (valpy_get_is_lazy): New function.
933 (valpy_fetch_lazy): New function.
934
935 2011-10-24 Joel Brobecker <brobecker@adacore.com>
936
937 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
938 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
939
940 2011-10-24 Pedro Alves <pedro@codesourcery.com>
941
942 * linux-nat.c (linux_handle_extended_wait): When handling a clone
943 event, in non-stop, if not stopping, make sure the new lwp has
944 last_resume_kind set to resume_continue. Assert that when we're
945 resuming the new lwp, its last_resume_kind is resume_continue.
946
947 2011-10-24 Pedro Alves <pedro@codesourcery.com>
948
949 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
950 already set when marking the event thread as not executing in
951 non-stop mode.
952
953 2011-10-24 Pedro Alves <pedro@codesourcery.com>
954
955 * infrun.c (handle_inferior_event): Add debug output for
956 TARGET_WAITKIND_NO_HISTORY.
957
958 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
959
960 * NEWS: Move set/show extended-prompt to "New Options". Expand
961 description. Fix typos.
962
963 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
964
965 PR python/13310
966
967 * python/py-param.c (call_doc_function): Correctly deference on
968 function exit.
969
970 2011-10-21 Joel Brobecker <brobecker@adacore.com>
971
972 * ada-tasks.c (print_ada_task_info): Fix computation of
973 number of tasks displayed in command output.
974
975 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
976 Ulrich Weigand <uweigand@de.ibm.com>
977
978 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
979 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
980 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
981 gdbarch_pc_regnum and frame_unwind_register_unsigned by
982 gdbarch_unwind_pc.
983
984 2011-10-20 Cary Coutant <ccoutant@google.com>
985
986 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
987 section to...
988 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
989 flag. Adjust all callers.
990 (process_psymtab_comp_unit): Remove adjustment for type section.
991
992 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
993
994 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
995 arguments by adding OBJFILE. Instead of getting objfile from
996 symbol's symtab, use new argument OBJFILE.
997 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
998 arguments by adding OBJFILE.
999 * gdb/dwarf2read.c (new_symbol_full): Change call to
1000 cp_scan_for_anonymous_namespaces to match new signature.
1001 * gdb/stabsread.c (define_symbol): Change call to
1002 cp_scan_for_anonymous_namespaces to match new signature.
1003
1004 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1005
1006 PR python/13308
1007 PR python/13309
1008
1009 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1010 leak.
1011 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1012 leak. Delete unused variables.
1013
1014 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1015
1016 PR python/12656
1017
1018 * python/py-frame.c (frapy_read_var): Use const struct *block.
1019 * python/py-type.c (typy_lookup_typename): Likewise.
1020 (typy_lookup_type): Likewise.
1021 (typy_legacy_template_argument): Likewise.
1022 (typy_template_argument): Likewise.
1023 (gdbpy_lookup_type): Likewise.
1024 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1025 * python/py-block.c (blpy_block_object): Likewise.
1026 (blpy_iter): Likewise.
1027 (blpy_get_start): Likewise.
1028 (blpy_get_end): Likewise.
1029 (blpy_get_function): Likewise.
1030 (blpy_get_superblock): Likewise.
1031 (set_block): Likewise.
1032 (block_to_block_object): Likewise.
1033 (block_object_to_block): Likewise.
1034 (blpy_is_valid): Likewise.
1035 (blpy_get_global_block): New function.
1036 (blpy_get_static_block): New function.
1037 (blpy_is_global): New function.
1038 (blpy_is_static): New function.
1039 * blockframe.c (block_innermost_frame): Likewise.
1040 * valops.c (value_of_variable): Likewise.
1041 * frame.h: Update prototypes.
1042 * python/python-internal.h: Likewise.
1043 * value.h: Likewise.
1044
1045 2011-10-19 Cary Coutant <ccoutant@google.com>
1046
1047 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1048 type_offset field.
1049
1050 2011-10-19 Cary Coutant <ccoutant@google.com>
1051
1052 * dwarf2read.c (peek_abbrev_code): New function.
1053 (dw2_get_file_names): Check for dummy compilation units.
1054 (create_debug_types_hash_table): Likewise.
1055 (process_psymtab_comp_unit): Likewise.
1056 (load_partial_comp_unit): Likewise.
1057 (load_full_comp_unit): Likewise.
1058
1059 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1060
1061 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1062 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1063 pt_phdr if PT_PHDR was found.
1064
1065 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1066
1067 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1068 type or "<unnamed type"> when there is no name assigned.
1069 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1070 avoid a sigint when no name is assigned.
1071
1072 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1073
1074 Revert:
1075 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1076 * dwarf2expr.c (ctx_no_read_reg): New function.
1077 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1078 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1079 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1080 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1081
1082 2011-10-16 Doug Evans <dje@google.com>
1083
1084 * NEWS: Document python gdb.printing.register_pretty_printer's new
1085 `replace' parameter.
1086
1087 2011-10-14 Keith Seitz <keiths@redhat.com>
1088
1089 PR c++/13225
1090 * eval.c (evaluate_subexp_standard): Do not construct
1091 an array of types; pass the value array directly to
1092 find_overload_match.
1093 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1094 (rank_function): Take an array of values instead of types.
1095 (rank_one_type): Add struct value * parameter.
1096 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1097 (rank_function): For each argument, pass the argument's
1098 value to rank_one_type.
1099 (rank_one_type): Add VALUE parameter.
1100 If the parameter type is a pointer and the argument type
1101 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1102 VALUE is zero.
1103 Update all calls to rank_one_type, passing NULL for new
1104 VALUE parameter.
1105 * valarith.c (value_user_defined_cpp_op): Do not construct
1106 an array of types; pass the value array directly to
1107 find_overload_match.
1108 * valops.c (find_overload_method_list): Take an array of
1109 values instead of types.
1110 Save the type of OBJP for later use.
1111 Update calls to find_oload_champ, and find_oload_champ_namespace.
1112 (find_oload_champ_namespace): Take an array of values instead
1113 of types.
1114 (find_oload_champ_namespace_loop): Likewise.
1115 (find_oload_champ): Likewise.
1116 (classify_oload_match): Inspect all arguments
1117 until INCOMPATIBLE is found. Return the worst badness found
1118 otherwise.
1119 (compare_parameters): Update call to rank_one_type.
1120 * value.h (find_overload_match): Take an array of values instead
1121 of types.
1122
1123 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1124
1125 Drop lazy lm_info reading.
1126 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1127 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1128 (lm_info_read): New function.
1129 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1130 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1131 lm_dynamic_from_link_map.
1132 (lm_next, lm_prev, lm_name): Remove.
1133 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1134 initialization incl. read_memory. No longer use lm_name.
1135 (svr4_free_so): Drop lm_info->lm freeing.
1136 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1137 explicit lm_addr and lm initialization.
1138 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1139 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1140 lm_name.
1141
1142 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1143 Paul Pluzhnikov <ppluzhnikov@google.com>
1144
1145 * defs.h (struct so_list): New forward declaration.
1146 (make_cleanup_free_so): New declaration.
1147 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1148 (svr4_free_so): Move the function here from downwards. Handle NULL
1149 so->lm_info.
1150 (svr4_free_library_list): New.
1151 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1152 Use more cleanups. Use new parameter ignore_first instead of
1153 ignore_first_link_map_entry.
1154 (svr4_current_sos): New variable ignore_first, initialize it. New
1155 variable back_to, use it for svr4_free_library_list protection.
1156 (svr4_free_so): Remove - move upwards.
1157 * utils.c: Include solist.h.
1158 (do_free_so, make_cleanup_free_so): New functions.
1159
1160 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1161
1162 Fix internal error regression.
1163 * value.c (value_primitive_field): Handle value_optimized_out. Move
1164 packed bitfields comment.
1165
1166 2011-10-13 Tom Tromey <tromey@redhat.com>
1167
1168 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1169 always released.
1170
1171 2011-10-13 Tom Tromey <tromey@redhat.com>
1172
1173 * python/py-type.c (typy_has_key): Make 'field' const.
1174
1175 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1176
1177 * remote.c (remote_save_trace_data): Invert comparison.
1178
1179 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1180
1181 * tracepoint.c (trace_save_command): Use filename instead of
1182 args when printing.
1183
1184 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1185
1186 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1187 if .size is 0.
1188
1189 2011-10-13 Yao Qi <yao@codesourcery.com>
1190
1191 PR gdb/12703
1192 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1193 whether insn is a 32-bit Thumb-2 instruction.
1194 (thumb_in_function_epilogue_p): Likewise.
1195 (thumb_get_next_pc_raw): Likewise.
1196 (arm_breakpoint_from_pc): Likewise.
1197
1198 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1199
1200 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1201 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1202 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1203 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1204 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1205 zero DATA.
1206 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1207 validity.
1208 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1209 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1210 clear DATA on zero SIZE.
1211
1212 2011-10-12 Doug Evans <dje@google.com>
1213
1214 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1215 header->first_die_offset here. All callers updated.
1216
1217 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1218
1219 Fix compatibility with texinfo versions older than 4.12.
1220 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1221 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1222 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1223 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1224 * configure: Regenerate.
1225 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1226 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1227 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1228
1229 2011-10-12 Gary Benson <gbenson@redhat.com>
1230
1231 * breakpoint.h (pc_at_non_inline_function): Declare.
1232 * breakpoint.c (is_non_inline_function,
1233 pc_at_non_inline_function): New functions.
1234 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1235 if the stop is at a location where functions cannot be inlined.
1236
1237 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1238
1239 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1240 the core wanted them stopped, or if they now have a pending event
1241 to report.
1242 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1243 down to stop_and_resume_callback.
1244 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1245 having new pending events after calling linux_nat_filter_event.
1246
1247 2011-10-11 Sterling Augustine <saugustine@google.com>
1248
1249 * dwarf2read.c: Undo inadvertent changes in previous commit.
1250
1251 2011-10-11 Sterling Augustine <saugustine@google.com>
1252
1253 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1254 logic.
1255
1256 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1257
1258 * symfile.c (separate_debug_file_exists): Fix condition.
1259
1260 2011-10-11 David S. Miller <davem@davemloft.net>
1261
1262 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1263 static.
1264 * regcache.h (regcache_restore): Remove declaration.
1265
1266 * gdbarch.sh: New field 'long_long_align_bit'.
1267 * gdbarch.c, gdbarch.h: Regenerate.
1268 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1269 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1270
1271 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1272
1273 Revert this part of:
1274 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1275 Support @entry in input expressions.
1276 * c-exp.y (ENTRY, unknown_cpp_name): New.
1277 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1278 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1279 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1280 (name_not_typename: ENTRY): New.
1281 (yylex): Recognize ENTRY.
1282
1283 Reimplement @entry in input expressions.
1284 * c-exp.y (ENTRY): New.
1285 (variable: name_not_typename ENTRY): New.
1286 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1287
1288 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1289
1290 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1291 parent and child's pids as soon as we detect a clone event.
1292 Adjust another debug message.
1293
1294 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1295
1296 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1297 not zombie instead of reading the whole file.
1298
1299 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 Fix separate debuginfo warning with "remote:" access.
1302 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1303 * symfile.c (get_file_crc): New function with the code moved from ...
1304 (separate_debug_file_exists): ... this function, specifically variables
1305 buffer and count. New variable verified_as_different, set it. Remove
1306 file_crc initialization. Verify also if both files are not the same
1307 manually, if needed.
1308
1309 2011-10-11 Yao Qi <yao@codesourcery.com>
1310
1311 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1312 to get address.
1313
1314 2011-10-10 Doug Evans <dje@google.com>
1315
1316 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1317 libthread_db when we load libpthread or the main symbol file.
1318 (thread_db_inferior_created): New function.
1319 (_initialize_thread_db): Attach inferior_created observer.
1320 * linux-nat.c (linux_child_post_attach): Remove call to
1321 check_for_thread_db.
1322 (linux_child_post_startup_inferior): Ditto.
1323 * objfiles.h (OBJF_MAINLINE): Define.
1324 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1325 allocate_objfile when appropriate.
1326
1327 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1328
1329 PR gdb/13218
1330 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1331 Remove unused variables.
1332 (get_linux_version): Remove function.
1333 (_initialize_arm_linux_nat): Do not call it.
1334
1335 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1336
1337 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1338 new clone lwp if the core asked it to stop. Don't pass on
1339 unexpected signals to the new clone; leave them pending instead.
1340
1341 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1342
1343 * linux-nat.c (resume_lwp): Remove redundant debug output.
1344
1345 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1346
1347 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1348 last_resume_kind before clearing it, and use the copy instead to
1349 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1350 resume_clear_callback in the non-stop path too.
1351
1352 2011-10-09 Yao Qi <yao@codesourcery.com>
1353
1354 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1355 Honor OPTIONS and VAL's type.
1356 (common_val_print, value_print): Update to pass one more parameter.
1357
1358 2011-10-09 Doug Evans <dje@google.com>
1359
1360 Add new "alias" command.
1361 * NEWS: Mention new command.
1362 * command.h (valid_user_defined_cmd_name_p): Declare.
1363 * defs.h (make_cleanup_dyn_string_delete): Declare.
1364 * utils.c: #include "dyn-string.h".
1365 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1366 * cli/cli-cmds.c: #include "dyn-string.h".
1367 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1368 (init_cli_cmds): Add new command.
1369 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1370
1371 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 Fix compatibility with older GCCs.
1374 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1375 * stack.c (read_frame_arg): Initialize val_deref.
1376
1377 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1378
1379 Entry values NEWS entries, DWARF disassembly support.
1380 * NEWS: New entry values entry.
1381 (set print entry-values, show print entry-values)
1382 (set debug entry-values, show debug entry-values): New entries.
1383 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1384 indent. Remove variable start. Move header printing out. Respect
1385 INDENT. Support DW_OP_GNU_entry_value.
1386 (locexpr_describe_location_1): Move the header printing here, extend
1387 the disassemble_dwarf_expression passed parameters.
1388
1389 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1390
1391 Display @entry parameter values even for references.
1392 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1393 coerce_ref_if_computed.
1394 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1395 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1396 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1397 existing push_dwarf_reg_entry_value call. Add new detection calling
1398 dwarf_block_to_dwarf_reg_deref. Update the error message.
1399 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1400 * dwarf2expr.h
1401 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1402 parameter deref_size, describe it in the comment.
1403 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1404 (dwarf_block_to_dwarf_reg_deref): New declaration.
1405 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1406 deref_size, describe it in the function comment. New variables
1407 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1408 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1409 describe it in the function comment. Fetch the alternative block
1410 accoring to DEREF_SIZE.
1411 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1412 (entry_data_value_free_closure, entry_data_value_funcs): New.
1413 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1414 outer_val, target_val, val and addr. Try to fetch and create also
1415 referenced value content.
1416 (pieced_value_funcs): NULL value for coerce_ref.
1417 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1418 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1419 coerce_ref_if_computed.
1420 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1421 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1422 * stack.c (read_frame_arg): Compare also dereferenced values.
1423 * value.c (value_computed_funcs): Make the parameter v const, use
1424 value_lval_const for it.
1425 (value_lval_const, coerce_ref_if_computed): New function.
1426 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1427 * value.h (struct lval_funcs): New field coerce_ref.
1428 (value_computed_funcs): Make the parameter v const.
1429 (value_lval_const, coerce_ref_if_computed): New declarations.
1430
1431 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1432
1433 Support @entry in input expressions.
1434 * c-exp.y (ENTRY, unknown_cpp_name): New.
1435 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1436 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1437 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1438 (name_not_typename: ENTRY): New.
1439 (yylex): Recognize ENTRY.
1440 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1441 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1442 Likewise.
1443 * parse.c (operator_length_standard): Likewise.
1444 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1445
1446 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1447
1448 Display referenced values in backtraces.
1449 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1450 * stack.c (print_frame_arg): Likewise.
1451
1452 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1453
1454 Make some lval_funcs methods to default on NULL.
1455 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1456 NULL.
1457 (value_assign): Check if lval_computed write method is NULL.
1458 * value.h (struct lval_funcs): Comment NULL values for read and write
1459 methods.
1460
1461 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1462
1463 Display @entry parameter values (without references).
1464 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1465 New functions.
1466 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1467 New declarations.
1468 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1469 entry record.
1470 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1471 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1472 functions.
1473 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1474 (loclist_read_variable_at_entry): New function.
1475 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1476 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1477 DW_AT_location, call dwarf_block_to_sp_offset for it.
1478 * frame.h (print_entry_values_no, print_entry_values_only)
1479 (print_entry_values_preferred, print_entry_values_if_needed)
1480 (print_entry_values_both, print_entry_values_compact)
1481 (print_entry_values_default, print_entry_values): New declarations.
1482 (struct frame_arg): New field entry_kind.
1483 (read_frame_arg): New parameter entryargp.
1484 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1485 arg->entry_kind. Optionally print the `@entry' suffix.
1486 (list_args_or_locals): New variable entryarg, initialize it.
1487 Initialize also entry_kind of arg and entryarg. Conditionalize
1488 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1489 xfree for entryarg.error.
1490 * stack.c (print_entry_values_no, print_entry_values_only)
1491 (print_entry_values_preferred, print_entry_values_if_needed)
1492 (print_entry_values_both, print_entry_values_compact)
1493 (print_entry_values_default, print_entry_values_choices)
1494 (print_entry_values): New variables.
1495 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1496 print the `@entry' suffix, possibly in combination for
1497 print_entry_values_compact.
1498 (read_frame_arg): New parameter entryargp, new variables entryval,
1499 entryval_error and val_equal. Read in also entryargp, respect
1500 print_entry_values, compare the values using val_equal, fill in also
1501 argp->entry_kind (together with entryargp->entry_kind).
1502 (print_frame_args): New variable entryarg, initialize it.
1503 Conditionalize print_frame_arg for arg, add print_frame_arg for
1504 entryarg. Call xfree for entryarg.error.
1505 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1506 * symtab.h (struct symbol_computed_ops): New field
1507 read_variable_at_entry.
1508
1509 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1510
1511 Code reshuffle.
1512 * frame.h (struct frame_arg): New definition.
1513 (read_frame_arg): New declaration.
1514 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1515 (list_args_or_locals): ... the code here. New variable arg, call
1516 read_frame_arg and list_arg_or_local with it. Unify the
1517 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1518 arg.error.
1519 * stack.c (print_frame_arg): New functiom from the code of
1520 print_frame_args.
1521 (read_frame_arg): New function.
1522 (print_frame_args): Remove variable val. New variable arg, call
1523 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1524
1525 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 Protect entry values against self tail calls.
1528 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1529 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1530
1531 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 Recognize virtual tail call frames.
1534 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1535 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1536 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1537 * dwarf2-frame-tailcall.c: New file.
1538 * dwarf2-frame-tailcall.h: New file.
1539 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1540 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1541 REGS.PREV only after CIE execution.
1542 (struct dwarf2_frame_cache): New field tailcall_cache.
1543 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1544 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1545 parts, try to find entry_cfa_sp_offset. Call
1546 dwarf2_tailcall_sniffer_first.
1547 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1548 when appropriate.
1549 (dwarf2_frame_dealloc_cache): New function.
1550 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1551 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1552 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1553 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1554 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1555 * dwarf2loc.c (func_addr_to_tail_call_list)
1556 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1557 (call_site_find_chain_1, call_site_find_chain): New.
1558 * dwarf2loc.h (struct call_site_chain): New.
1559 (call_site_find_chain): New declaration.
1560 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1561 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1562 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1563 * stack.c (frame_info): Support also TAILCALL_FRAME.
1564
1565 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 Tail call sites reader implementation.
1568 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1569 fill in TYPE_TAIL_CALL_LIST.
1570 * gdbtypes.h (struct func_type): New field tail_call_list.
1571 (struct call_site): New field tail_call_next.
1572 (TYPE_TAIL_CALL_LIST): New definition.
1573
1574 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1575
1576 Implement basic support for DW_TAG_GNU_call_site.
1577 * block.c: Include gdbtypes.h and exceptions.h.
1578 (call_site_for_pc): New function.
1579 * block.h (call_site_for_pc): New declaration.
1580 * defs.h: Include hashtab.h.
1581 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1582 declarations.
1583 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1584 ctx_no_push_dwarf_reg_entry_value.
1585 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1586 (dwarf_block_to_dwarf_reg): New function.
1587 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1588 (ctx_no_push_dwarf_reg_entry_value): New function.
1589 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1590 push_dwarf_reg_entry_value.
1591 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1592 declarations.
1593 * dwarf2loc.c: Include gdbcmd.h.
1594 (dwarf_expr_ctx_funcs): New forward declaration.
1595 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1596 (dwarf_expr_reg_to_entry_parameter)
1597 (dwarf_expr_push_dwarf_reg_entry_value): New.
1598 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1599 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1600 (needs_dwarf_reg_entry_value): New function.
1601 (needs_frame_ctx_funcs): Install it.
1602 (_initialize_dwarf2loc): New function.
1603 * dwarf2loc.h (entry_values_debug): New declaration.
1604 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1605 (read_call_site_scope): New forward declaration.
1606 (process_full_comp_unit): Copy call_site_htab.
1607 (process_die): Support DW_TAG_GNU_call_site.
1608 (read_call_site_scope): New function.
1609 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1610 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1611 (cleanup_htab): Delete.
1612 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1613 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1614 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1615 FIELD_LOC_KIND_DWARF_BLOCK.
1616 * gdbtypes.h (enum field_loc_kind): New entry
1617 FIELD_LOC_KIND_DWARF_BLOCK.
1618 (struct main_type): New loc entry dwarf_block.
1619 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1620 (TYPE_FIELD_DWARF_BLOCK): New.
1621 * python/py-type.c: Include dwarf2loc.h.
1622 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1623 internal_error call on unknown FIELD_LOC_KIND.
1624 * symtab.h (struct symtab): New field call_site_htab.
1625 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1626 (core_addr_hash, core_addr_eq): New functions.
1627
1628 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 Code reshuffle.
1631 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1632 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1633 calling_convention under func_stuff there.
1634 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1635 (init_type) <TYPE_CODE_FUNC>: Likewise.
1636 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1637 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1638 * gdbtypes.h (enum type_specific_kind): Change
1639 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1640 (struct main_type) <type_specific>: Change calling_convention to
1641 func_stuff. Move calling_convention to ...
1642 (struct func_type): ... this new struct.
1643 (INIT_FUNC_SPECIFIC): New #define.
1644 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1645
1646 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1649 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1650 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1651 ctx->ref_addr_size. Handle its invalid value.
1652 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1653 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1654 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1655 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1656 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1657 (dwarf2_per_cu_ref_addr_size): New function.
1658
1659 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1660
1661 Code cleanup.
1662 * dwarf2read.c (per_cu_header_read_in): New function.
1663 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1664 variables cu_header_local and cu_headerp.
1665
1666 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1667
1668 Fix initial language detection with -readnow.
1669 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1670 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1671 searches only for global symbols.
1672
1673 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1674
1675 Fix printed anonymous struct name.
1676 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1677 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1678 (anonymous_struct_prefix): New function.
1679 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1680 (dwarf2_name): Strip for anonymous structs any prefixes.
1681
1682 2011-10-07 Doug Evans <dje@google.com>
1683
1684 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1685 `replace'.
1686
1687 * python/lib/gdb/printing.py: Whitespace cleanup.
1688
1689 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1690 warning.
1691
1692 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1693
1694 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1695 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1696 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1697 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1698 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1699 (arm_linux_remove_watchpoint): Adjust.
1700 * i386-linux-nat.c (i386_linux_dr_set_control)
1701 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1702 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1703 (ia64_linux_remove_watchpoint): Adjust.
1704 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1705 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1706 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1707 (ppc_linux_insert_mask_watchpoint)
1708 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1709 (ppc_linux_remove_watchpoint): Adjust.
1710 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1711 Adjust.
1712
1713 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1714
1715 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1716 (clear_win32_environment): New function for Cygwin to clear out
1717 Win32 environment.
1718 (windows_create_inferior): Prepare new environment from in_env
1719 for Cygwin, too.
1720
1721 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1722
1723 PR python/13264
1724 * python/py-value.c (valpy_call): Check that arguments are
1725 a tuple.
1726 (is_intlike): Remove call to CHECK_TYPEDEF.
1727 (valpy_nonzero): Catch GDB exceptions.
1728 (valpy_absolute): Ditto.
1729 (valpy_lazy_string): Ditto.
1730 (valpy_call): Ditto.
1731 (valpy_get_is_optimized_out): Ditto.
1732 (valpy_long): Ditto.
1733 (valpy_float): Ditto.
1734 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1735 (valpy_richcompare): Ditto.
1736
1737 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1738
1739 * inferior.h (disable_randomization): Declare.
1740 * infrun.c (disable_randomization): New global variable.
1741 (show_disable_randomization): New function.
1742 (set_disable_randomization): Likewise.
1743 (_initialize_infrun): Install set/show disable-randomization
1744 commands.
1745 * linux-nat.c (disable_randomization): Remove.
1746 (show_disable_randomization): Likewise.
1747 (set_disable_randomization): Likewise.
1748 (_initialize_linux_nat): No longer install set/show
1749 disable-randomization commands here.
1750 (linux_nat_supports_disable_randomization): New function.
1751 (linux_nat_add_target): Install it.
1752 * remote.c (PACKET_QDisableRandomization): New enum value.
1753 (remote_protocol_packets): Support QDisableRandomization.
1754 (_initialize_remote): Likewise.
1755 (remote_supports_disable_randomization): New function.
1756 (init_remote_ops): Install it.
1757 (extended_remote_supports_disable_randomization): New function.
1758 (init_extended_remote_ops): Install it.
1759 (extended_remote_disable_randomization): New function.
1760 (extended_remote_create_inferior_1): Call it.
1761 * target.h (struct target_ops): Add to_supports_disable_randomization.
1762 (target_supports_disable_randomization): Add prototype.
1763 * target.c (target_supports_disable_randomization): New function.
1764 (find_default_supports_disable_randomization): Likewise.
1765 (init_dummy_target): Install it.
1766
1767 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1768
1769 Allow Python notification of new object-file loadings.
1770 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1771 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1772 Add build rule for this file.
1773 * python/py-event.h (emit_new_objfile_event): New prototype.
1774 (newobjfile): New Python event emitter.
1775 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1776 Python event registry.
1777 * python/py-inferior.c: Include objfiles.h
1778 (python_new_objfile): New function.
1779 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1780 observers.
1781 * python/py-newobjfileevent.c: New file.
1782 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1783 prototype.
1784 * python/python.c (_initialize_python): Add
1785 gdbpy_initialize_new_objfile_event call.
1786 * NEWS: Add item for new Python event "gdb.newobjfile"
1787
1788 2011-10-05 Tristan Gingold <gingold@adacore.com>
1789
1790 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1791 Extract the ravenscar task name from the symbol for the atcb.
1792
1793 2011-10-04 Paul Koning <paul_koning@dell.com>
1794
1795 * python/py-type.c (typy_make_iter): Add forward declaration.
1796 (typy_fields_items): Use the gdb.Type iterator.
1797
1798 2011-10-04 Paul Koning <paul_koning@dell.com>
1799
1800 * NEWS: Add entry for Python gdb.Type mapping methods.
1801
1802 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1803
1804 PR python/12691: Add the inferior to Python exited event
1805 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1806 to exited_event.
1807 * python/py-event.h (emit_exited_event): Likewise
1808 * python/-inferior.c (python_inferior_exit): Likewise
1809
1810 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1811
1812 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1813 in output of -ada-task-info GDB/MI command.
1814
1815 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1816
1817 * ada-lang.h (struct inferior): Declare.
1818 (print_ada_task_info): Add declaration.
1819 * ada-tasks.c (print_ada_task_info): Make non-static.
1820 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1821 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1822 * mi/mi-main.c: #include "ada-lang.h".
1823 (mi_cmd_list_features): Add "ada-task-info" to the list
1824 of supported features.
1825 (mi_cmd_ada_task_info): New function.
1826
1827 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1828
1829 * python/python.c (python_run_simple_file): New function.
1830 (source_python_script, source_python_script_for_objfile):
1831 Replace call to PyRun_SimpleFile by call to
1832 python_run_simple_file.
1833
1834 2011-10-03 Paul Koning <paul_koning@dell.com>
1835
1836 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1837 (value_to_value_object): Fetch value if it was lazy.
1838
1839 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1840
1841 Code cleanup.
1842 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1843 Rearrange the code for it.
1844
1845 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1846
1847 * breakpoint.c (bkpt_print_recreate): Add call to
1848 print_recreate_thread.
1849
1850 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1851
1852 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1853 PTRACE_GETFDPIC_INTERP): Define.
1854
1855 2011-09-28 Yao Qi <yao@codesourcery.com>
1856
1857 * symfile.c (add_symbol_file_command): Update message on usage.
1858
1859 2011-09-28 Paul Koning <paul_koning@dell.com>
1860
1861 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1862 (typy_length, typy_get, typy_has_key, typy_make_iter)
1863 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1864 (typy_iterator_iter, typy_iterator_iternext)
1865 (typy_iterator_dealloc): New functions to implement standard
1866 Python mapping methods on gdb.Type object.
1867 (gdb.TypeIterator): New Python type.
1868 * python/python-internal.h (gdbpy_iter_kind): New enum.
1869
1870 2011-09-28 David S. Miller <davem@davemloft.net>
1871
1872 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1873 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1874 * sparc-tdep.c (sparc_complex_floating_p): New function.
1875 (sparc32_store_arguments): Handle complex floats.
1876 (sparc32_extract_return_value): Likewise.
1877 (sparc32_store_return_value): Likewise.
1878 (sparc32_stabs_argument_has_addr): Likewise.
1879 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1880 (sparc64_store_floating_fields): Handle complex floats.
1881 (sparc64_store_arguments): Likewise.
1882 (sparc64_store_return_value): Likewise.
1883
1884 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1885
1886 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1887 before the change on 2006-12-09.
1888 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1889 generates the environment block for CreateProcessA, modulo the
1890 Cygwin-specific parts that are not needed here.
1891
1892 2011-09-27 Tristan Gingold <gingold@adacore.com>
1893
1894 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1895 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1896 (darwin_solib_get_all_image_info_addr_at_init): New function.
1897 (darwin_solib_read_all_image_info_addr): Likewise.
1898 (darwin_solib_create_inferior_hook): Use the above two functions.
1899 * darwin-nat.c (darwin_execvp): Renames retval to res.
1900 (darwin_read_write_inferior): Update comment.
1901 (darwin_read_dyld_info): New function.
1902 (darwin_xfer_partial): Handle DYLD_INFO.
1903
1904 2011-09-27 Stan Shebs <stan@codesourcery.com>
1905
1906 Add return address collection for tracepoints.
1907 * tracepoint.c (encode_actions_1): Add case for $_ret.
1908 (validate_actionline): Check for $_ret.
1909 (trace_dump_actions): Ditto.
1910 * ax-gdb.h (gen_trace_for_return_address): Declare.
1911 * ax-gdb.c: Include arch-utils.h.
1912 (gen_trace_for_return_address): New function.
1913 (agent_command): Add return address special case.
1914 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1915 (amd64_gen_return_address): New function.
1916 (amd64_init_abi): Call it.
1917 * i386-tdep.c: Include ax.h and ax-gdb.h.
1918 (i386_gen_return_address): New function.
1919 (i386_init_abi): Call it.
1920 * arch-utils.h (default_gen_return_address): Declare.
1921 * arch-utils.c (default_gen_return_address): New function.
1922 * gdbarch.sh (gen_return_address): New method.
1923 * gdbarch.h, gdbarch.c: Regenerate.
1924
1925 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1926
1927 PR gdb/13079
1928 * i386-tdep.c (i386_frame_align): New.
1929 (i386_gdbarch_init): Use i386_frame_align.
1930
1931 2011-09-23 Yao Qi <yao@codesourcery.com>
1932
1933 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1934 to get address.
1935
1936 2011-09-22 Tristan Gingold <gingold@adacore.com>
1937
1938 * fork-child.c (fork_inferior): Add exec_fun parameter.
1939 Call exec_fun or execvp.
1940 * inferior.h: Adjust prototype.
1941 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1942 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1943 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1944 * procfs.c (procfs_create_inferior): Ditto.
1945 * darwin-nat.c (darwin_execvp): New function.
1946 (darwin_create_inferior): Use it.
1947
1948 2011-09-22 Yao Qi <yao@codesourcery.com>
1949
1950 * infrun.c (context_switch): Print debug message when switching to
1951 a different thread.
1952
1953 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1954
1955 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1956 complex and vector types.
1957 (s390_return_value_convention): Likewise.
1958
1959 (s390_value_from_register): Call check_typedef.
1960 (extend_simple_arg): Likewise.
1961 (alignment_of): Likewise.
1962 (s390_push_dummy_call): Likewise.
1963 (s390_return_value): Likewise.
1964
1965 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1966
1967 * event-top.c (async_disconnect): If an exception is thrown from
1968 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1969 catch_errors.
1970 * top.c (quit_cover): Return void and take no arguments.
1971 * top.h (quit_cover): Update prototype.
1972
1973 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1974
1975 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1976 current_uiout, not uiout.
1977
1978 2011-09-19 Doug Evans <dje@google.com>
1979
1980 * python/py-auto-load.c (source_section_scripts): Fix file
1981 descriptor leak.
1982 * python/python.c (source_python_script_for_objfile): Tweak comments.
1983
1984 2011-09-18 Yao Qi <yao@codesourcery.com>
1985 Ulrich Weigand <ulrich.weigand@linaro.org>
1986
1987 Support displaced stepping for Thumb 16-bit insns.
1988 * arm-tdep.c (THUMB_NOP) Define.
1989 (thumb_copy_unmodified_16bit): New.
1990 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1991 (thumb_copy_alu_reg): New.
1992 (arm_copy_svc): Move some common code to ...
1993 (install_svc): ... here. New.
1994 (thumb_copy_svc): New.
1995 (install_pc_relative): New.
1996 (thumb_copy_pc_relative_16bit): New.
1997 (thumb_decode_pc_relative_16bit): New.
1998 (thumb_copy_16bit_ldr_literal): New.
1999 (thumb_copy_cbnz_cbz): New.
2000 (cleanup_pop_pc_16bit_all): New.
2001 (thumb_copy_pop_pc_16bit): New.
2002 (thumb_process_displaced_16bit_insn): New.
2003 (thumb_process_displaced_32bit_insn): New.
2004 (thumb_process_displaced_insn): process thumb instruction.
2005
2006 Support displaced stepping for Thumb 32-bit insns.
2007 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2008 (thumb2_copy_preload): New.
2009 (thumb2_copy_copro_load_store): New.
2010 (thumb2_copy_b_bl_blx): New.
2011 (thumb2_copy_alu_imm): New.
2012 (thumb2_copy_load_reg_imm): New.
2013 (thumb2_copy_load_literal): New
2014 (thumb2_copy_block_xfer): New.
2015 (thumb_32bit_copy_undef): New.
2016 (thumb_32bit_copy_unpred): New.
2017 (thumb2_decode_ext_reg_ld_st): New.
2018 (thumb2_decode_svc_copro): New.
2019 (decode_thumb_32bit_store_single_data_item): New.
2020 (thumb_copy_pc_relative_32bit): New.
2021 (thumb_decode_pc_relative_32bit): New.
2022 (decode_thumb_32bit_ld_mem_hints): New.
2023 (thumb2_copy_table_branch): New
2024 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2025 instructions.
2026
2027 2011-09-18 Yao Qi <yao@codesourcery.com>
2028
2029 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2030 (install_b_bl_blx): Likewise.
2031
2032 2011-09-17 Yao Qi <yao@codesourcery.com>
2033
2034 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2035 (install_load_store): ... this. New.
2036 Change parameter BYTE to SIZE.
2037 (arm_copy_ldr_str_ldrb_strb): Update caller.
2038 (arm_decode_ld_st_word_ubyte): Update caller.
2039
2040 2011-09-17 Yao Qi <yao@codesourcery.com>
2041
2042 * infrun.c (displaced_step_fixup): Move some code ...
2043 (displaced_step_restore): ... here. New function.
2044 (handle_inferior_event): Cleanup displaced stepping state for both
2045 child and parent when get forked or vforked event.
2046 * regcache.c (get_thread_arch_aspace_regcache): New function.
2047 get_thread_arch_regcache (): Call it.
2048
2049 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2050
2051 * ada-tasks.c (print_ada_task_info): New function, merging
2052 short_task_info and info_tasks together. Reimplement using
2053 ui-out instead of printing to stdout directly. Move the code
2054 building and checking the task list here, instead of leaving it
2055 in info_tasks_command.
2056 (info_task): Move the code building and checking the task
2057 list here, instead of leaving it in info_tasks_command.
2058 (info_tasks_command): Delete code building and checking
2059 the task list - moved elsewhere. Update calls to info_tasks
2060 and info_task.
2061
2062 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2063
2064 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2065
2066 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2067
2068 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2069
2070 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2071
2072 * ada-lang.h (ada_build_task_list): Remove parameter
2073 `warn_if_null'.
2074 * ada-tasks.c (ada_build_task_list): Remove parameter
2075 `warn_if_null'. Adjust implementation and documentation.
2076 (valid_task_id, ada_get_environment_task)
2077 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2078 (info_tasks_command): Adjust implementation.
2079 (task_command): Likewise.
2080 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2081 to ada_build_task_list.
2082
2083 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2084
2085 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2086 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2087 (ada_tasks_inferior_data_handle): New static global.
2088 (get_ada_tasks_inferior_data): New function.
2089 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2090 (ada_get_environment_task, iterate_over_live_ada_tasks)
2091 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2092 Adjust.
2093 (ada_set_current_inferior_known_tasks_addr): New function.
2094 (read_known_tasks, ada_build_task_list, short_task_info)
2095 (info_tasks, info_task, info_tasks_command, task_command_1)
2096 (task_command, ada_task_list_changed): Adjust.
2097 (ada_tasks_invalidate_inferior_data): New function.
2098 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2099 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2100 * ada-lang.h (struct inferior): Add declaration.
2101 (ada_task_list_changed): Update profile.
2102 * remote-wtx-pd.c: #include "inferior.h".
2103 (switch_to_pd_internal): Update call to ada_task_list_changed.
2104
2105 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2106
2107 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2108 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2109 (atcb_fieldno): Delete these static globals.
2110 (struct ada_tasks_pspace_data): New struct.
2111 (ada_tasks_pspace_data_handle): New static global.
2112 (get_ada_tasks_pspace_data): New function.
2113 (ada_tasks_invalidate_pspace_data): New function.
2114 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2115 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2116 (_initialize_tasks): Create this module's per-progspace
2117 data handle.
2118
2119 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2120
2121 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2122
2123 2011-09-16 Tristan Gingold <gingold@adacore.com>
2124
2125 * fork-child.c (fork_inferior): Update comment. Use alloca
2126 instead of xmalloc for argv. Move len and shell_command
2127 declarations in the block where they are used.
2128 Only call execvp. Factorize failure code.
2129
2130 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2131
2132 Code cleanup.
2133 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2134 `exp_element' instead of an element of the same and make the function
2135 static.
2136 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2137 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2138 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2139 Change argument of `write_exp_elt' function call.
2140 Remove extra spaces from comments.
2141 * parser-defs.h (write_exp_elt): Remove prototype.
2142
2143 2011-09-15 Paul Koning <paul_koning@dell.com>
2144
2145 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2146 count of item appended to list.
2147 * python/py-type.c (typy_fields): Likewise.
2148
2149 2011-09-15 Paul Koning <paul_koning@dell.com>
2150
2151 * MAINTAINERS (Write After Approval): Add myself to the list.
2152
2153 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2154
2155 PR threads/12628
2156 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2157 processes with multiple threads.
2158 (inf_has_multiple_thread_cb): New function.
2159 (inf_has_multiple_threads): New function.
2160
2161 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2162
2163 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2164 * python/py-inferior.c (GdbMethods): New Python method definition.
2165
2166 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2167
2168 Handle multiple breakpoint hits in Python interface:
2169 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2170 variable to breakpoints.
2171 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2172 bps instead of single breakpoint. Fix some space typos.
2173 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2174 variable to breakpoints.
2175
2176 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2177
2178 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2179 note if the breakpoint is internal.
2180
2181 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2182
2183 * MAINTAINERS (Write After Approval): Add myself to the list
2184
2185 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2186
2187 * infrun.c (prepare_for_detach, wait_for_inferior)
2188 (fetch_inferior_event): Don't flush the register cache.
2189 * remote.c (struct stop_reply) <regcache>: Add comment.
2190
2191 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2192
2193 Remove excessive DWARF expressions memory duplication.
2194 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2195 for block.data.
2196 (indirect_pieced_value): Remove variable result. Remove variable
2197 back_to and its use for baton.data.
2198 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2199 block.data.
2200 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2201 Update the function comment.
2202
2203 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2204
2205 * inferior.h (ALL_INFERIORS): New.
2206 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2207 for a stopped thread.
2208 (thread_db_find_new_threads): Look for threads in all inferiors.
2209
2210 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2211
2212 * breakpoint.c (update_watchpoint): Handle the case of the
2213 watchpoint to update not being in the breakpoint list yet.
2214 (hw_watchpoint_use_count): New, factored out from
2215 hw_watchpoint_used_count.
2216 (hw_watchpoint_used_count): Rename to ...
2217 (hw_watchpoint_used_count_others): ... this. Add `except'
2218 parameter. Don't count resources of `except'. Use
2219 hw_watchpoint_use_count.
2220
2221 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2222
2223 * gdbthread.h (enum thread_state): Moved here.
2224 (struct thread_info): Rename `executing_' field to `executing' and
2225 `state_' to `state'.
2226 * thread.c (enum thread_state): Moved to gdbthread.h.
2227 (new_thread, add_thread_silent, delete_thread_1)
2228 (any_live_thread_of_process, thread_alive, set_running)
2229 (set_running, is_thread_state, any_running, is_executing)
2230 (set_executing, finish_thread_state, print_thread_info)
2231 (do_captured_thread_select): Adjust.
2232
2233 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2234
2235 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2236 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2237
2238 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2239 Matt Rice <ratmice@gmail.com>
2240
2241 PR gdb/13175
2242
2243 * interps.c (struct interp) <interpreter_out>: Delete field.
2244 (interp_new): Remove the data and uiout parameters and adjust.
2245 (interp_set): Only set the current_uiout from the interpreter's
2246 uiout after initializing the interpreter. Adjust call to
2247 init_proc.
2248 (interp_ui_out): Adjust to call procs->ui_out_proc.
2249 (interp_data, interp_name): New.
2250 * interps.h (interp_init_ftype): Add `self' parameter.
2251 (interp_ui_out_ftype): New typedef.
2252 (struct interp_procs) <ui_out_proc>: New method pointer.
2253 (interp_new): Remove the data and uiout parameters.
2254 (interp_data, interp_name): Declare.
2255 * tui/tui-interp.c (tui_init): Adjust prototype.
2256 (tui_ui_out): New.
2257 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2258 tui_out here. Adjust call to interp_new.
2259 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2260 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2261 (cli_ui_out): New.
2262 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2263 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2264 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2265 Initialize mi->uiout depending on the mi_version as extracted from
2266 the interpreter's name.
2267 (mi_ui_out): New.
2268 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2269 interp_new. Don't allocate the ui_out's of the interpreters here.
2270
2271 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2272
2273 * solib.c (solib_used): New function.
2274 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2275 by another so_list object before freeing it.
2276
2277 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2278
2279 Code cleanup.
2280 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2281 values.
2282
2283 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2284
2285 Code cleanup.
2286 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2287 (amd64_skip_xmm_prologue): ... this new function. Describe its
2288 parameters. No longer use amd64_prologue_line_bug.
2289 * defs.h (producer_is_gcc_ge_4): New declaration.
2290 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2291 (process_full_comp_unit): Update its caller. Remove
2292 amd64_prologue_line_bug initialization.
2293 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2294 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2295
2296 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2297
2298 * linux-nat.h (enum resume_kind): New.
2299 (struct lwp_info) <last_resume_kind>: New field.
2300 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2301 resume_stop on the new lwp.
2302 (add_lwp): Set last_resume_kind as resume_continue by default.
2303 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2304 (resume_lwp): New, factored out from resume_callback. Also check
2305 for pending status in lp->waitstatus.
2306 (resume_callback): Reimplement.
2307 (resume_clear_callback): Set last_resume_kind as resume_stop.
2308 (resume_set_callback): Set last_resume_kind as resume_continue.
2309 (linux_nat_resume, linux_handle_extended_wait): Set
2310 last_resume_kind.
2311 (running_callback): Also check lp->waitstatus for pending events.
2312 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2313 is resume_step.
2314 (stop_and_resume_callback): Don't re-resume if the core wanted the
2315 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2316 using an invalidated pointer.
2317 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2318 SIGSTOPs if the core wanted the LWP to stop.
2319 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2320 wanted the lwp to stop. If the core wanted the lwp to stop, and
2321 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2322 of TARGET_SIGNAL_STOP.
2323 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2324 here. Instead, signal the lwp, and set the last_resume_kind to
2325 resume_stop.
2326
2327 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2328
2329 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2330 -1 (error), if the lwp exits right after attaching.
2331
2332 2011-09-08 Doug Evans <dje@google.com>
2333
2334 * py-cmd.c: Some minor formatting fixes.
2335 (gdbpy_parse_command_name): Rename text arg to name, make const.
2336 All callers updated.
2337 * python-internal.h (gdbpy_parse_command_name): Update.
2338
2339 * cli/cli-decode.c (add_cmd): Add comment.
2340
2341 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2342
2343 PR breakpoints/12435
2344 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2345 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2346 * dwarf2read.c (process_full_comp_unit): Initialize
2347 amd64_prologue_line_bug.
2348 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2349
2350 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2351
2352 Fix TUI screen corruption.
2353 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2354 batch_flag.
2355
2356 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 * findvar.c (read_var_value): Never return NULL, throw an error
2359 instead. Update the function comment. State symbol name in the error
2360 messages.
2361 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2362 read_var_value.
2363 * stack.c (print_frame_args): Likewise.
2364 * valops.c (value_of_variable): Likewise.
2365
2366 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2367
2368 * stack.c (print_frame_args): New variable except. Wrap
2369 read_var_value and common_val_print into TRY_CATCH.
2370
2371 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2372
2373 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2374 caller to value_of_this.
2375 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2376 Twice.
2377 * valops.c (value_of_this): Remove parameter complain and variable ret.
2378 Update function comment. Never return NULL by this code.
2379 (value_of_this_silent): New function.
2380 * value.h (value_of_this): Remove parameter complain.
2381 (value_of_this_silent): New declaration.
2382
2383 2011-09-07 Yao Qi <yao@codesourcery.com>
2384
2385 * gdbthread.h (struct thread_info): Remove fields
2386 `stepping_through_solib_after_catch' and
2387 `stepping_through_solib_catchpoints'.
2388 * infrun.c (init_thread_stepping_state): Update.
2389 (process_event_stop_test, currently_stepping): Update.
2390 (currently_stepping_or_nexting_callback): Update.
2391
2392 2011-09-07 Yao Qi <yao@codesourcery.com>
2393
2394 * gdbthread.h (struct thread_info): Comment on field
2395 `step_after_step_resume_breakpoint'.
2396
2397 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2398
2399 * remote.c (remote_console_output): Reindent.
2400
2401 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2402
2403 * frame.c (has_stack_frames): Check for currently selected
2404 traceframe.
2405
2406 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2407
2408 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2409 (set_async_annotation_level, set_async_prompt, pop_prompt)
2410 (push_prompt, new_async_prompt): Delete declarations.
2411 * top.h (get_prompt, set_prompt): Change prototype.
2412 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2413 declarations.
2414 * top.c (command_loop):
2415 (top_prompt): New global.
2416 (get_prefix, set_prefix, get_suffix, ): Delete.
2417 (get_prompt, set_prompt): Rewrite.
2418 (show_new_async_prompt): Rename to ...
2419 (show_prompt): ... this.
2420 (init_main): Adjust. Don't handle --annotate=2 here.
2421 * event-top.c (new_async_prompt): Delete.
2422 (the_prompts): Delete.
2423 (more_to_come): Make static.
2424 (display_gdb_prompt): Use top_level_prompt() to compute the top
2425 level prompt, and don't notify the before_prompt observers
2426 directly here. Always trick readline into not trying to display
2427 the prompt if sync_execution and displaying the primary prompt.
2428 If displaying a local/secondary prompt, always show it, even if
2429 sync_execution is set.
2430 (change_annotation_level): Delete.
2431 (top_level_prompt): New, based on change_annotation_level.
2432 (push_prompt, pop_prompt): Delete.
2433 (async_disable_stdin): No longer pushes prompt.
2434 (command_line_handler): No longer pushes or pops prompt. If more
2435 input is expected, call display_gdb_prompt with an explicit empty
2436 prompt.
2437 (async_stop_sig): Adjust.
2438 (set_async_annotation_level, set_async_prompt): Delete.
2439 * python/python.c (before_prompt_hook): Adjust.
2440
2441 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2442
2443 PR cli/13110
2444
2445 * infrun.c (fetch_inferior_event): Check if there's a selected
2446 thread before checking if the selected thread is executing.
2447
2448 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2449
2450 * inf-loop.c (execute_command): Don't check if the current thread
2451 if running before synchronously waiting for command completion.
2452 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2453 here.
2454 (normal_stop): Call async_enable_stdin here.
2455 * inf-loop.c (inferior_event_handler): Don't call
2456 async_enable_stdin, nor handle "set exec-done-display" here.
2457
2458 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2459
2460 GDB 7.3.1 released.
2461
2462 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2463
2464 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2465
2466 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2467
2468 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2469
2470 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2471
2472 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2473
2474 2011-09-02 Matt Rice <ratmice@gmail.com>
2475
2476 PR gdb/10720
2477 * event-top.c (cli_command_loop): Replace readline setup with
2478 direct call to display_gdb_prompt.
2479 (display_gdb_prompt): Do not call observer mechanism during
2480 synchronous execution.
2481
2482 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2483
2484 * linux-nat.c (in_pid_list_p): New.
2485 (linux_record_stopped_pid): Delete.
2486 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2487 already attached to the LWP. Return an indication if so.
2488 (linux_nat_filter_event): Adjust.
2489 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2490 returning an indication to ignore this thread.
2491
2492 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2493
2494 * top.c: Include interps.h.
2495 (execute_command): If the target can async, but the interpreter is
2496 in sync mode, synchronously wait for the command to finish before
2497 returning.
2498 (execute_command_to_string): Force the interpreter to sync mode.
2499 * infrun.c: Include interps.h.
2500 (fetch_inferior_event): Don't restore the prompt yet if the
2501 interpreter is in sync mode.
2502 * interps.c (interpreter_async): New global.
2503 * interps.h (interpreter_async): Declare.
2504 * inf-loop.c: Include interps.h.
2505 (inferior_event_handler): Don't print the language change or run
2506 breakpoint commands yet if the interpreter in is sync mode.
2507 * main.c (captured_command_loop): Flip the interpreter to async
2508 mode.
2509 * cli/cli-script.c: Include interps.h.
2510 (execute_user_command, while_command, if_command): Force the
2511 interpreter to sync mode.
2512 * python/python.c: Include interps.h.
2513 (python_command, execute_gdb_command): Force the interpreter to
2514 sync mode.
2515
2516 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2517
2518 * value.c (show_convenience): Catch errors thrown while printing
2519 each internal variable.
2520 * infrun.c (validate_siginfo_access): New function.
2521 (siginfo_value_read, siginfo_value_write): Call it.
2522
2523 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 Revert:
2526 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2527 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2528 attribute.
2529
2530 2011-08-29 Yao Qi <yao@codesourcery.com>
2531
2532 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2533 (cmp_name): New.
2534 (enable_break2): Update caller.
2535 * solib-frv.c (bfd_lookup_symbol): Removed.
2536 (cmp_name): New.
2537 (enable_break2): Update caller.
2538 * solib-pa64.c (bfd_lookup_symbol): Removed.
2539 (cmp_name): New.
2540 * solib-svr4.c (bfd_lookup_symbol): Removed.
2541 (cmp_name_and_sec_flags): New.
2542 (enable_break): Update caller.
2543 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2544 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2545 (gdb_bfd_lookup_symbol): New.
2546 * solib.h: Functions declarations.
2547
2548 2011-08-29 Yao Qi <yao@codesourcery.com>
2549
2550 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2551 and solib-dsbt.o.
2552
2553 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2554
2555 Fix TUI stepi on code without symbols.
2556 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2557 current PC instead.
2558
2559 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2560
2561 Code cleanup.
2562 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2563 and the static keyword.
2564 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2565 Make prefix an array.
2566 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2567 * mi/mi-main.c (get_register): Remove stb initialization and the static
2568 keyword.
2569
2570 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2571
2572 Code cleanup - make mi_opt const.
2573 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2574 opts const.
2575 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2576 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2577 (mi_cmd_env_dir): Likewise.
2578 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2579 (mi_cmd_target_file_put): Likewise.
2580 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2581 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2582 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2583 (mi_valid_noargs): Make opts const.
2584 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2585 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2586 (mi_cmd_data_read_memory): Likewise.
2587 (mi_cmd_data_read_memory_bytes): Likewise.
2588 (mi_cmd_data_write_memory): Likewise.
2589
2590 2011-08-26 Matt Rice <ratmice@gmail.com>
2591
2592 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2593 bcache_xmalloc, replace bcache_xmalloc with call to
2594 psymbol_bcache_init for psymbol_cache.
2595 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2596
2597 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2598
2599 * inf-loop.c (inferior_event_handler): Add exception_print in
2600 INF_EXEC_COMPLETE.
2601
2602 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2605 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2606 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2607 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2608 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2609 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2610 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2611 * infrun.c (fetch_inferior_event): Call
2612 make_bpstat_clear_actions_cleanup.
2613 * top.c (execute_command): New variable cleanup_if_error, call
2614 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2615 * utils.c (do_bpstat_clear_actions_cleanup)
2616 (make_bpstat_clear_actions_cleanup): New functions.
2617
2618 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2619
2620 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2621 either the parent or the child forks. Rename a couple locals.
2622
2623 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2624
2625 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2626 library call. Avoid reading the `status' local if all waitpid
2627 calls failed.
2628
2629 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2630
2631 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2632 opening /proc/PID/task always succeeds.
2633
2634 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2635
2636 * linespec.c (symtab_from_filename): Check for the end of string.
2637
2638 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2639
2640 PR mi/11912
2641 * varobj.c (cplus_describe_child): Add the keyword
2642 'class' to the output of the method when dealing
2643 with a cast to a base class.
2644
2645 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2646
2647 No functionality change.
2648 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2649 function comment a reference, new variables tp and bs, move here code
2650 from throw_exception.
2651 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2652 describe it in the comment.
2653 * exceptions.c (throw_exception): Remove variable tp, move the code for
2654 bpstat_clear_actions to bpstat_clear_actions.
2655
2656 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2657
2658 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2659 * linux-nat.c: Include linux-procfs.h.
2660 (linux_proc_get_tgid): Move to ...
2661 * common/linux-procfs.c: ... here. New file.
2662 * common/linux-procfs.h: New file.
2663 * linux-thread-db.c: Include linux-procfs.h.
2664 * Makefile.in: Update dependencies.
2665 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2666 * config/arm/linux.mh: Likewise.
2667 * config/i386/linux.mh: Likewise.
2668 * config/i386/linux64.mh: Likewise.
2669 * config/ia64/linux.mh: Likewise.
2670 * config/m32r/linux.mh: Likewise.
2671 * config/m68k/linux.mh: Likewise.
2672 * config/mips/linux.mh: Likewise.
2673 * config/pa/linux.mh: Likewise.
2674 * config/pa/linux.mh: Likewise.
2675 * config/powerpc/linux.mh: Likewise.
2676 * config/powerpc/ppc64-linux.mh: Likewise.
2677 * config/powerpc/spu-linux.mh: Likewise.
2678 * config/sparc/linux.mh: Likewise.
2679 * config/sparc/linux64.mh: Likewise.
2680 * config/xtensa/linux.mh: Likewise.
2681
2682 2011-08-24 Hui Zhu <teawater@gmail.com>
2683
2684 * tracepoint.c (cond_string_is_same): New function.
2685 (find_matching_tracepoint): Add condition check
2686 by cond_string_is_same.
2687
2688 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2689
2690 Fix build error in Darwin port.
2691 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2692
2693 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 Code cleanup.
2696 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2697 (command_line_is_silent): New function.
2698 (bpstat_do_actions_1): No longer use commands_left, use
2699 command_line_is_silent for commands.
2700 (bpstat_alloc): Remove clearing of commands_left.
2701 (bpstat_stop_status): Remove initialization of commands_left, use
2702 command_line_is_silent.
2703 * breakpoint.h (struct bpstats): Remove commands_left.
2704
2705 2011-08-18 Keith Seitz <keiths@redhat.com>
2706
2707 PR c++/12266
2708 * cp-name-parser.y (struct demangle_info): Remove unused
2709 member PREV.
2710 (d_grab): Likewise.
2711 (allocate_info): Change return type to struct demangle_info *.
2712 Always allocate a new demangle_info.
2713 Remove unused PREV pointer.
2714 (cp_new_demangle_parse_info): New function.
2715 (cp_demangled_name_parse_free): New function.
2716 (do_demangled_name_parse_free_cleanup): New function.
2717 (make_cleanup_cp_demangled_name_parse_free): New function.
2718 (cp_demangled_name_to_comp): Change return type to
2719 struct demangle_parse_info *.
2720 Allocate a new storage for each call.
2721 (main): Update usage for cp_demangled_name_to_comp
2722 API change.
2723 * cp-support.h (struct demangle_parse_info): New structure.
2724 (cp_demangled_name_to_comp): Update API change for
2725 return type.
2726 (cp_new_demangle_parse_info): Declare.
2727 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2728 (cp_demangled_name_parse_free): Declare.
2729 * cp-support.c (cp_canonicalize_string): Update API
2730 change for cp_demangled_name_to_comp.
2731 (mangled_name_to_comp): Likewise.
2732 Return struct demangle_parse_info, too.
2733 (cp_class_name_from_physname): Update mangled_name_to_comp
2734 API change.
2735 (method_name_from_physname): Likewise.
2736 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2737 (cp_remove_params): Likewise.
2738 * python/py-type.c (typy_legacy_template_argument): Likewise.
2739
2740 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2741 (cp_merge_demangle_parse_infos): Declare.
2742 * cp-support.c (ignore_typedefs): New file global.
2743 (copy_string_to_obstack): New function.
2744 (inspect_type): New function.
2745 (replace_typedefs): New function.
2746 (replace_typedefs_qualified_name): New function.
2747 (cp_canonicalize_string_no_typedefs): New function.
2748 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2749 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2750 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2751 instead of cp_canonicalize_string.
2752 (find_method): Likewise.
2753 (decode_compound): Before looking up the name, call
2754 cp_canonicalize_string_no_typedefs.
2755 (decode_variable): Likewise.
2756
2757 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2758 Tom Tromey <tromey@redhat.com>
2759 Matt Rice <ratmice@gmail.com>
2760
2761 * python/lib/gdb/prompt.py: New file.
2762 * python/lib/gdb/command/prompt.py: New file.
2763 * NEWS: Document set extended-prompt and gdb.prompt library
2764
2765 2011-08-16 Yao Qi <yao@codesourcery.com>
2766
2767 * tic6x-linux-tdep.c: Move const arrays definition from here...
2768 * tic6x-tdep.c: to here ...
2769
2770 2011-08-14 Yao Qi <yao@codesourcery.com>
2771
2772 * NEWS: New port to Texas Instruments TMS320C6x.
2773
2774 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2775 Bernd Schmidt <bernds@codesourcery.com>
2776 Yao Qi <yao@codesourcery.com>
2777
2778 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2779 * solib-dsbt.c: New file. Support DSBT shared object.
2780 * tic6x-linux-tdep.c: New file.
2781 * tic6x-tdep.c: New file.
2782 * tic6x-tdep.h: New file.
2783
2784 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2785 Yao Qi <yao@codesourcery.com>
2786
2787 * remote.c (PACKET_qXfer_fdpic): New enum value.
2788 (remote_protocol_features): Add qXfer:fdpic:read packet.
2789 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2790 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2791 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2792
2793 2011-08-14 Yao Qi <yao@codesourcery.com>
2794
2795 Target description for tic6x.
2796 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2797 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2798 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2799 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2800 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2801 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2802 * features/tic6x-c64xp-linux.xml: New.
2803 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2804 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2805 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2806 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2807 * regformats/tic6x-c64xp.dat,
2808 regformats/tic6x-c62x-linux.dat: Generated.
2809 * regformats/tic6x-c64x-linux.dat,
2810 regformats/tic6x-c64xp-linux.dat: Generated.
2811 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2812 features/tic6x-*.c files.
2813 Add regformats/tic6x-*.dat files.
2814
2815 2011-08-12 Doug Evans <dje@google.com>
2816
2817 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2818 * python/py-symbol.c (sympy_get_type): New function.
2819 (symbol_object_getset): Add "type".
2820
2821 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2822
2823 PR tui/13073
2824
2825 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2826 empty name.
2827 (tui_show_register_group): Don't store a byte buffer in the data
2828 element's value.
2829 (tui_register_format): Skip registers with an empty name.
2830 (tui_get_register): Store a struct value in the data element's
2831 value field instead of a byte buffer holding the raw register
2832 contents. Account for optimized-out and unavailable registers
2833 when comparing register contents.
2834
2835 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2836
2837 * printcmd.c (current_display_number): Update comment.
2838 (disable_current_display_cleanup): Delete.
2839 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2840 catch errors thrown while evaluating and printing the display.
2841
2842 2011-08-09 Tom Tromey <tromey@redhat.com>
2843
2844 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2845
2846 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2847
2848 * elfread.c (elf_symtab_read): Rework comments.
2849 * maint.c (maintenance_command): Ditto.
2850 * somread.c (som_symtab_read): Ditto.
2851 * solib.c (solib_find, solib_map_sections, update_solib_list)
2852 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2853 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2854 (sharedlibrary_command, no_shared_libraries): Ditto.
2855 * solib-irix.c (locate_base, disable_break, enable_break)
2856 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2857 (irix_current_sos, irix_open_symbol_file_object)
2858 (irix_special_symbol_handling): Ditto.
2859 * solib-sunos.c (locate_base, first_link_map_member)
2860 (sunos_current_sos, disable_break, enable_break)
2861 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2862 Ditto.
2863 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2864 (open_symbol_file_object, svr4_current_sos, enable_break)
2865 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2866 Ditto.
2867 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2868 (frv_current_sos, enable_break, frv_special_symbol_handling)
2869 (frv_solib_create_inferior_hook): Ditto.
2870 * solist.h (struct target_so_ops): Extend the comments of the
2871 special_symbol_handling, current_sos and open_symbol_file_object
2872 methods.
2873
2874 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2875
2876 * python/lib/gdb/__init__.py: Auto-load files in command and
2877 function directories.
2878 * python/python.c (finish_python_initialization): Use
2879 os.path.join.
2880 * python/lib/gdb/command/pretty_printers.py: Self register
2881 command.
2882 * NEWS: Document auto-loading.
2883
2884 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2885
2886 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2887 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2888 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2889
2890 2011-08-08 Tom Tromey <tromey@redhat.com>
2891
2892 * breakpoint.c (clean_up_filters): Remove.
2893 (catch_syscall_split_args): Use VEC_cleanup.
2894
2895 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2898 (main): Uncomment "Demangling error\n".
2899
2900 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2901
2902 * solib-target.c (segment_attributes): Make them static.
2903 (section_attributes, library_children, library_attributes): Likewise.
2904 (library_list_children, library_list_attributes): Likesise.
2905 (library_list_elements): Likewise.
2906
2907 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2908
2909 * exceptions.c (throw_exception): Don't disable the current
2910 display.
2911 * printcmd.c (disable_current_display_cleanup): New function.
2912 (do_one_display): Install a cleanup to disable the current display
2913 if doing the display throws.
2914
2915 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2916
2917 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2918 initialization of the tp_new member to the corresponding
2919 gdbpy_initialize_* function.
2920 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2921 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2922 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2923 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2924 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2925
2926 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2929 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2930 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2931 references to current_uiout.
2932
2933 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2934
2935 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2936 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2937 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2938 * top.c (gdb_readline_wrapper): Adjust.
2939 * tui/tui-interp.c (tui_command_loop):
2940 (_initialize_tui_interp): Don't install it.
2941
2942 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2943
2944 * ui-out.h (uiout): Rename to ...
2945 (current_uiout): ... this.
2946 * ui-out.c (uiout): Rename to ...
2947 (current_uiout): ... this.
2948 * ada-lang.c (print_it_exception, print_one_exception)
2949 (print_mention_exception): Adjust.
2950 * breakpoint.c (watchpoint_check): Adjust.
2951 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2952 (default_collect_info, watchpoints_info, print_one_catch_fork)
2953 (print_one_catch_vfork, print_one_catch_syscall)
2954 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2955 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2956 (print_it_watchpoint, print_mention_watchpoint)
2957 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2958 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2959 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2960 (bkpt_print_mention, momentary_bkpt_print_it)
2961 (tracepoint_print_mention, update_static_tracepoint)
2962 (tracepoints_info, save_breakpoints): Adjust.
2963 * cli-out.c (field_separator): Adjust.
2964 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2965 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2966 * frame.c (get_current_frame): Adjust.
2967 * infcmd.c (run_command_1, print_return_value): Adjust.
2968 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2969 * infrun.c (print_end_stepping_range_reason): Adjust.
2970 (print_signal_exited_reason, print_exited_reason): Adjust.
2971 (print_signal_received_reason, print_no_history_reason): Adjust.
2972 * interps.c (interp_set): Adjust.
2973 * osdata.c (info_osdata_command): Adjust.
2974 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2975 * remote-fileio.c (remote_fileio_request): Adjust.
2976 * remote.c (show_remote_cmd): Adjust.
2977 * solib.c (info_sharedlibrary_command): Adjust.
2978 * source.c (print_source_lines_base): Adjust.
2979 * stack.c (print_stack_frame): Adjust.
2980 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2981 * symfile-mem.c (add_vsyscall_page): Adjust.
2982 * symfile.c (load_progress, generic_load)
2983 (print_transfer_performance): Adjust.
2984 * thread.c (info_threads_command, restore_selected_frame)
2985 (thread_command): Adjust.
2986 * top.c (make_cleanup_restore_ui_file): Adjust.
2987 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2988 (print_one_static_tracepoint_marker): Adjust.
2989 * cli/cli-cmds.c (print_disassembly): Adjust.
2990 * cli/cli-decode.c (print_doc_line): Adjust.
2991 * cli/cli-interp.c (safe_execute_command): Adjust.
2992 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2993 (handle_redirections): Adjust.
2994 * cli/cli-script.c (show_user_1): Adjust.
2995 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2996 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2997 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2998 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2999 (mi_cmd_env_dir): Adjust.
3000 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3001 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3002 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3003 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3004 (list_args_or_locals): Adjust.
3005 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3006 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3007 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3008 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3009 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3010 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3011 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3012 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3013 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3014 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3015 (list_available_thread_groups, mi_cmd_list_thread_groups)
3016 (mi_cmd_data_list_register_names)
3017 (mi_cmd_data_list_changed_registers)
3018 (mi_cmd_data_list_register_values, get_register)
3019 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3020 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3021 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3022 (mi_execute_command, mi_load_progress): Adjust.
3023 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3024 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3025 Adjust.
3026 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3027 * tui/tui-interp.c (tui_command_loop): Adjust.
3028 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3029
3030 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3031
3032 * exceptions.c (struct catcher): Remove saved_uiout field.
3033 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3034 no longer save/resvore the global ui_out builder.
3035 (catch_exceptions_with_msg): Save/override/restore the global
3036 ui_out builder manually instead of relying on TRY_CATCH to do it.
3037 (catch_errors): Save/restore the global ui_out builder manually
3038 instead of relying on TRY_CATCH to do it.
3039 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3040 parameter.
3041 (TRY_CATCH): Adjust.
3042 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3043 the global ui_out builder manually instead of relying on TRY_CATCH
3044 to do it.
3045
3046 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3047
3048 * breakpoint.c (update_global_location_list): Ensure
3049 invariant 'first loc marked not duplicated and inserted,
3050 following locs marked duplicated/not inserted' is respected
3051 for multiple locations at the same address.
3052 (unduplicated_should_be_inserted) New function.
3053 (swap_insertion) New function.
3054
3055 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3056
3057 * stack.c (print_frame_arguments_choices): Comment typo fix.
3058
3059 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3060
3061 Revert:
3062 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3063 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3064 argument. Update callers.
3065
3066 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3067
3068 PR gdb/13045
3069 * doublest.c (convert_doublest_to_floatformat): Pass correct
3070 mantissa length to put_field.
3071
3072 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3075 exception_print code path.
3076 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3077 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3078 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3079
3080 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3081
3082 Code cleanup.
3083 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3084 Remove, merge them into ...
3085 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3086 variable args and its initialization.
3087 (struct print_args_args, print_args_stub): Remove, merge them into
3088 print_frame.
3089 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3090 them into ...
3091 (do_gdb_disassembly): ... here. Remove variable args and its
3092 initialization.
3093 (print_frame): Remove variable args and its initialization, new
3094 variable gdbarch and numargs (from print_args_stub), inline here
3095 print_args_stub with a TRY_CATCH.
3096 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3097 them into ...
3098 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3099 New variable e, remove variable btargs and its initialization.
3100
3101 2011-08-01 Tristan Gingold <gingold@adacore.com>
3102
3103 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3104
3105 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3106
3107 * breakpoint.c (insert_bp_location): Document return value.
3108 (insert_breakpoint_locations): Fix documentation.
3109 (remove_breakpoints): Add documentation.
3110
3111 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3112
3113 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3114 argument. Update callers.
3115
3116 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * stack.c (print_frame_info): Comment typo fix.
3119
3120 2011-07-29 Sterling Augustine <saugustine@google.com>
3121
3122 * MAINTAINERS (Write After Approval): Add myself to the list.
3123
3124 2011-07-29 Tom Tromey <tromey@redhat.com>
3125
3126 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3127 (library_list_start_segment): Update.
3128 (library_list_start_section): Update.
3129
3130 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3131
3132 * varobj.c (value_get_print_value): Move hint check later into the
3133 function. Comment function. Free thevalue before reusing it.
3134
3135 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3136 Pedro Alves <pedro@codesourcery.com>
3137
3138 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3139 value_one.
3140 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3141 Assert the result kind.
3142 * value.h (value_one): Remove parameter lv.
3143
3144 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 Fix crash on lval_computed values.
3147 * valops.c (value_zero): Use not_lval for lval_computed.
3148
3149 2011-07-27 Tom Tromey <tromey@redhat.com>
3150
3151 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3152 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3153
3154 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3157 "ptype" by their typedefs difference.
3158
3159 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3160
3161 * dwarf2expr.c (ctx_no_read_reg): New function.
3162 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3163 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3164 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3165 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3166
3167 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3168
3169 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3170 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3171 file.
3172 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3173 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3174 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3175 (ctx_no_get_base_type): Move the functions here.
3176 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3177 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3178 (ctx_no_get_base_type): New declarations.
3179
3180 2011-07-27 Tom Tromey <tromey@redhat.com>
3181
3182 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3183 entries.
3184 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3185 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3186
3187 2011-07-26 Sterling Augustine <saugustine@google.com>
3188
3189 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3190 ULONGEST.
3191 (dump_bfd_file): Likewise.
3192
3193 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3194
3195 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3196 (remote_hw_watchpoint_length_limit): New variable.
3197 (_initialize_remote) add set,show cmds for this new variable.
3198 * gdb.texinfo: document these new commands.
3199 * NEWS: Mention these new commands.
3200
3201 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3202
3203 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3204 true for software watchpoints.
3205
3206 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3207
3208 GDB 7.3 released.
3209
3210 2011-07-26 Tom Tromey <tromey@redhat.com>
3211
3212 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3213 * dwarf2read.c (read_indirect_string_at_offset): New function.
3214 (read_indirect_string): Use it.
3215 (dwarf_decode_macro_bytes): New function, taken from
3216 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3217 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3218 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3219 New functions.
3220 (struct dwarf2_per_objfile) <macro>: New field.
3221 (dwarf2_elf_names): Add .debug_macro.
3222 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3223 (dwarf2_locate_sections): Handle new section.
3224 (read_file_scope): Handle DW_AT_GNU_macros.
3225 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3226
3227 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3228
3229 * NEWS: Mention dcache configuration.
3230 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3231 (dcache_size, dcache_line_size): New variables.
3232 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3233 (struct dcache_block): Make it expandable.
3234 (struct dcache_struct): New field.
3235 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3236 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3237 (dcache_poke_byte, dcache_print_line): Adjust.
3238 (set_dcache_size, set_dcache_line_size): New functions.
3239 (set_dcache_command, show_dcache_command): New functions.
3240 (_initialize_dcache): Add new commands.
3241
3242 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3243
3244 * progspace.h (struct program_space): Add solib_add_generation.
3245 * infcmd.c (post_create_inferior): Only call solib_add if not
3246 already done.
3247 * solib.c (solib_add): Increment solib_add_generation.
3248
3249 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3250
3251 Fix implicit pointer offsets.
3252 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3253 ptr.OFFSET.
3254
3255 2011-07-25 Tom Tromey <tromey@redhat.com>
3256
3257 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3258 const.
3259 (ada_exception_sal): Make 'ops' const.
3260 (ada_decode_exception_location): Likewise.
3261 (ada_decode_assert_location): Likewise.
3262 (catch_assert_command): Update.
3263 (catch_ada_exception_command): Update.
3264 (create_ada_exception_catchpoint): Make 'ops' const.
3265 * breakpoint.c (set_raw_breakpoint_without_location)
3266 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3267 const.
3268 (create_internal_breakpoint): Update.
3269 (init_raw_breakpoint_without_location): Make 'ops' const.
3270 (init_raw_breakpoint, init_catchpoint)
3271 (create_fork_vfork_event_catchpoint)
3272 (create_syscall_event_catchpoint, init_breakpoint_sal)
3273 (create_breakpoint_sal, create_breakpoints_sal)
3274 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3275 * breakpoint.h (struct breakpoint) <ops>: Now const.
3276 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3277 const.
3278
3279 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3280
3281 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3282
3283 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3284
3285 * breakpoint.h (print_recreate_thread): Declare.
3286 (struct breakpoint): Move step_count, pass_count,
3287 number_on_target, static_trace_marker_id,
3288 static_trace_marker_id_idx ...
3289 (struct tracepoint): ... to this new struct.
3290 (get_tracepoint, get_tracepoint_by_number_on_target)
3291 (get_tracepoint_by_number): Change return type to struct
3292 tracepoint pointer.
3293 * breakpoint.c (is_tracepoint_type): New, factored out from
3294 is_tracepoint.
3295 (is_tracepoint): Adjust.
3296 (print_one_breakpoint_location): Cast to struct tracepoint as
3297 necessary, and adjust.
3298 (print_recreate_catch_fork, print_recreate_catch_vfork)
3299 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3300 print_recreate_thread.
3301 (init_breakpoint_sal): New, factored out from
3302 create_breakpoint_sal.
3303 (create_breakpoint_sal): Reimplement.
3304 (create_breakpoint): Allocate a struct tracecepoint if the caller
3305 wanted a tracepoint. Use init_breakpoint_sal and
3306 install_breakpoint.
3307 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3308 (print_recreate_masked_watchpoint)
3309 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3310 (tracepoint_print_one_detail): Adjust.
3311 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3312 Dump the pass count here.
3313 (update_static_tracepoint): Adjust.
3314 (addr_string_to_sals): Adjust.
3315 (create_tracepoint_from_upload): Adjust. Change return type to
3316 struct tracepoint pointer.
3317 (trace_pass_set_count): Change parameter type to struct tracepoint
3318 pointer, and adjust.
3319 (trace_pass_command): Adjust.
3320 (get_tracepoint, get_tracepoint_by_number_on_target)
3321 (get_tracepoint_by_number): Change return type to struct
3322 tracepoint pointer, and adjust.
3323 (print_recreate_thread): New, factored out from save_breakpoints.
3324 (save_breakpoints): Don't print thread and task and passcount
3325 recreation here.
3326 * remote.c (remote_download_tracepoint): Adjust.
3327 * tracepoint.c (trace_actions_command, validate_actionline)
3328 (start_tracing, tfind_1, trace_find_tracepoint_command)
3329 (trace_dump_command): Adjust.
3330 (find_matching_tracepoint): Change return type to struct
3331 tracepoint pointer, and adjust.
3332 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3333 (tfile_trace_find, tfile_fetch_registers): Adjust.
3334 * tracepoint.h (create_tracepoint_from_upload): Change return type
3335 to struct tracepoint pointer.
3336 * ada-lang.c (print_recreate_exception): Call
3337 print_recreate_thread.
3338 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3339
3340 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3341
3342 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3343 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3344 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3345 watchpoint_thread, watchpoint_triggered ...
3346 (struct watchpoint): ... to this new struct.
3347 (is_watchpoint): Declare.
3348 (install_breakpoint): Add new `internal' parameter.
3349 * breakpoint.c (is_watchpoint): Delete declaration.
3350 (set_breakpoint_condition): Handle watchpoints.
3351 (is_watchpoint): Make public.
3352 (watchpoint_in_thread_scope): Change parameter type to struct
3353 watchpoint.
3354 (watchpoint_del_at_next_stop): Change parameter type to struct
3355 watchpoint. Remove assertion. Adjust.
3356 (update_watchpoint): Ditto.
3357 (insert_breakpoints, breakpoint_init_inferior)
3358 (watchpoints_triggered, watchpoint_check)
3359 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3360 (bpstat_stop_status, print_one_breakpoint_location)
3361 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3362 to struct watchpoint as necessary, and adjust.
3363 (install_breakpoint): Add `internal' argument. If true, don't
3364 mention the new breakpoint. Use set_breakpoint_number.
3365 (create_fork_vfork_event_catchpoint)
3366 (create_syscall_event_catchpoint): Adjust.
3367 (dtor_watchpoint): New.
3368 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3369 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3370 (print_it_watchpoint, print_mention_watchpoint)
3371 (print_recreate_watchpoint, insert_masked_watchpoint)
3372 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3373 (print_one_detail_masked_watchpoint)
3374 (print_mention_masked_watchpoint)
3375 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3376 necessary, and adjust.
3377 (watch_command_1): Allocate and initialize a struct watchpoint
3378 instead of a struct breakpoint. Use install_breakpoint.
3379 (catch_exec_command_1): Adjust.
3380 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3381 fields.
3382 (delete_breakpoint, enable_breakpoint_disp)
3383 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3384 as necessary, and adjust.
3385 (initialize_breakpoint_ops): Install dtor_watchpoint as
3386 watchpoints' dtor method.
3387 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3388 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3389 to struct watchpoint as necessary, and adjust.
3390
3391 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3392
3393 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3394 the the base class ops table.
3395 (catch_exception_breakpoint_ops)
3396 (catch_exception_unhandled_breakpoint_ops)
3397 (catch_assert_breakpoint_ops): Don't statically initialize.
3398 (initialize_ada_catchpoint_ops): New.
3399 (_initialize_ada_language): Call it.
3400 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3401 (bkpt_breakpoint_ops): Forward declare.
3402 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3403 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3404 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3405 (masked_watchpoint_breakpoint_ops)
3406 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3407 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3408 base class ops table.
3409 (null_re_set, null_check_status, null_works_in_software_mode)
3410 (null_resources_needed, null_print_one_detail): Delete.
3411 (bkpt_dtor): Rename to ...
3412 (base_breakpoint_dtor): ... this. Make static.
3413 (bkpt_allocate_location): Rename to ...
3414 (base_breakpoint_allocate_location): ... this. Make static.
3415 (base_breakpoint_re_set): New.
3416 (internal_error_pure_virtual_called): New.
3417 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3418 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3419 (base_breakpoint_works_in_software_mode)
3420 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3421 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3422 (base_breakpoint_print_recreate): New functions.
3423 (base_breakpoint_ops): New global.
3424 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3425 (bkpt_breakpoint_hit): Make static.
3426 (bkpt_check_status): Delete.
3427 (bkpt_resources_needed): Make static.
3428 (bkpt_works_in_software_mode): Delete.
3429 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3430 static.
3431 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3432 (momentary_breakpoint_ops): Don't statically initialize.
3433 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3434 Delete.
3435 (tracepoint_insert_location, tracepoint_remove_location)
3436 (tracepoint_check_status, tracepoint_works_in_software_mode)
3437 (tracepoint_print_it): Delete.
3438 (tracepoint_breakpoint_ops): Don't statically initialize.
3439 (initialize_breakpoint_ops): New.
3440 (_initialize_breakpoint): Call it.
3441 * breakpoint.h (null_re_set, null_works_in_software_mode)
3442 (null_resources_needed, null_check_status, null_print_one_detail):
3443 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3444 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3445 (bkpt_check_status, bkpt_resources_needed)
3446 (bkpt_works_in_software_mode, bkpt_print_it)
3447 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3448 Delete declarations.
3449 (initialize_breakpoint_ops): Declare.
3450
3451 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3452
3453 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3454 (momentary_bkpt_print_it): Simplify.
3455
3456 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3457
3458 Split internal, momentary and user breakpoints breakpoint_ops
3459 tables.
3460
3461 * breakpoint.c (internal_breakpoint_ops)
3462 (momentary_breakpoint_ops): Forward declare.
3463 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3464 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3465 (create_overlay_event_breakpoint)
3466 (create_std_terminate_master_breakpoint)
3467 (create_exception_master_breakpoint): Create breakpoints with
3468 internal_breakpoint_ops vtable.
3469 (set_longjmp_breakpoint): Create momentary breakpoints with
3470 momentary_breakpoint_ops vtable, using
3471 momentary_breakpoint_from_master.
3472 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3473 (create_solib_event_breakpoint): Create breakpoints with
3474 internal_breakpoint_ops vtable.
3475 (set_momentary_breakpoint): Create breakpoints with
3476 momentary_breakpoint_ops vtable.
3477 (momentary_breakpoint_from_master): New, factored out from
3478 clone_momentary_breakpoint.
3479 (clone_momentary_breakpoint): Adjust.
3480 (watch_command_1): Create scope breakpoints with
3481 momentary_breakpoint_ops vtable.
3482 (bkpt_re_set): Remove handling of internal and momentary
3483 breakpoints.
3484 (bkpt_print_mention, bkpt_print_recreate): New.
3485 (bkpt_breakpoint_ops): Adjust.
3486 (internal_bkpt_re_set, internal_bkpt_check_status)
3487 (internal_bkpt_print_it, internal_bkpt_print_mention)
3488 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3489 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3490 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3491 (momentary_bkpt_print_recreate): New.
3492 (momentary_breakpoint_ops): New.
3493
3494 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3495
3496 Implement most breakpoint_ops methods for all breakpoint types,
3497 and move the default handlings to the proper callbacks.
3498
3499 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3500 works_in_software_mode method.
3501 (insert_bp_location): Go through breakpoint_ops->insert_location
3502 for software and hardware watchpoints.
3503 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3504 breakpoint_ops.
3505 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3506 for software and hardware watchpoints.
3507 (print_it_typical): Delete.
3508 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3509 method.
3510 (watchpoint_check): Adjust comment.
3511 (bpstat_check_location): Simply always call the breakpoint's
3512 breakpoint_hit method.
3513 (bpstat_stop_status): Always call the breakpoint's check_status
3514 method. Remove special cases for watchpoints and internal event
3515 breakpoints from here (moved to the check_status implementations).
3516 (print_one_breakpoint_location): Assume b->ops is never NULL.
3517 Remove static tracepoint marker id printing from here (moved to
3518 the print_one_detail callback implementation of tracepoints).
3519 (init_bp_location): Assert OPS is never NULL.
3520 (allocate_bp_location): Always call the breakpoint's
3521 allocate_location method, and remove the default code from here.
3522 (free_bp_location): Always call the location's dtor method, and
3523 remove the default code from here.
3524 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3525 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3526 parameter. Pass it down.
3527 (set_raw_breakpoint): Ditto.
3528 (print_it_catch_fork): Adjust to take a bpstat as argument.
3529 (catch_fork_breakpoint_ops): Install methods.
3530 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3531 (catch_vfork_breakpoint_ops): Install methods.
3532 (dtor_catch_syscall): Call the base dtor.
3533 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3534 (catch_syscall_breakpoint_ops): Install methods.
3535 (dtor_catch_exec): Call the base dtor.
3536 (print_it_catch_exec): Adjust to take a bpstat as argument.
3537 (catch_exec_breakpoint_ops): Install methods.
3538 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3539 the breakpoint's resources_needed method, and remove the default
3540 code from here.
3541 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3542 breakpoint_ops.
3543 (clone_momentary_breakpoint): Clone the original's ops.
3544 (mention): Always call the breakpoint's print_mention method, and
3545 remove the default code from here.
3546 (create_breakpoint_sal): Adjust to pass the ops to
3547 set_raw_breakpoint rather than setting it manually.
3548 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3549 ops to set_raw_breakpoint_without_location rather than setting it
3550 manually.
3551 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3552 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3553 (ranged_breakpoint_ops): Install methods.
3554 (break_range_command): Adjust to pass the ops to
3555 set_raw_breakpoint rather than setting it manually.
3556 (re_set_watchpoint, breakpoint_hit_watchpoint)
3557 (check_status_watchpoint, resources_needed_watchpoint)
3558 (works_in_software_mode_watchpoint, print_it_watchpoint)
3559 (print_mention_watchpoint, print_recreate_watchpoint): New
3560 functions.
3561 (watchpoint_breakpoint_ops): Install new methods.
3562 (print_it_masked_watchpoint): New function.
3563 (masked_watchpoint_breakpoint_ops): Install new methods.
3564 (watch_command_1): Adjust to pass the right breakpoint_ops to
3565 set_raw_breakpoint_without_location rather than setting it
3566 manually later. Record the current pspace.
3567 (print_it_exception_catchpoint): Adjust to take a bpstat as
3568 argument.
3569 (gnu_v3_exception_catchpoint_ops): Install new methods.
3570 (say_where): New function.
3571 (null_re_set, null_check_status, null_works_in_software_mode)
3572 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3573 New functions.
3574 (bp_location_ops): New global.
3575 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3576 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3577 (bkpt_check_status, bkpt_resources_needed)
3578 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3579 (bkpt_print_recreate): New functions.
3580 (bkpt_breakpoint_ops): New global.
3581 (tracepoint_re_set, tracepoint_insert_location)
3582 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3583 (tracepoint_check_status, tracepoint_works_in_software_mode)
3584 (tracepoint_print_it, tracepoint_print_one_detail)
3585 (tracepoint_print_mention, tracepoint_print_recreate): New
3586 functions.
3587 (tracepoint_breakpoint_ops): New global.
3588 (delete_breakpoint): Always call the breakpoint's dtor method, and
3589 remove the default handling from here.
3590 (breakpoint_re_set_default): Make static.
3591 (breakpoint_re_set_one): Always call the breakpoints re_set
3592 method, and remove the default handling from here.
3593 (trace_command, ftrace_command, strace_command)
3594 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3595 to create_breakpoint.
3596 (save_breakpoints): Always call the breakpoint's print_recreate
3597 method, and remove the default handling from here.
3598
3599 * ada-lang.c (dtor_exception): Call the base dtor.
3600 (re_set_exception): Call the base method.
3601 (print_it_exception, print_it_catch_exception): Adjust to take a
3602 bpstat as argument.
3603 (catch_exception_breakpoint_ops): Install methods.
3604 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3605 argument.
3606 (catch_exception_unhandled_breakpoint_ops): Install methods.
3607 (print_it_catch_assert): Adjust to take a bpstat as argument.
3608 (catch_assert_breakpoint_ops): Install methods.
3609
3610 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3611 to take a bpstat as argument.
3612 (enum print_stop_action): Add describing comments to each enum
3613 value.
3614 (breakpoint_re_set_default): Delete declaration.
3615 (null_re_set, null_works_in_software_mode, null_resources_needed)
3616 (null_check_status, null_print_one_detail): Declare.
3617 (bkpt_breakpoint_ops): Declare.
3618 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3619 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3620 (bkpt_check_status, bkpt_resources_needed)
3621 (bkpt_works_in_software_mode, bkpt_print_it)
3622 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3623 Declare.
3624
3625 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3626 bkpt_breakpoint_ops.
3627 * python/py-breakpoint.c (bppy_init): Ditto.
3628
3629 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3630
3631 * MAINTAINERS (Write After Approval): Add myself to the list.
3632
3633 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3634
3635 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3636
3637 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3638
3639 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3640 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3641 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3642 adjust.
3643 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3644 (struct i386_debug_reg_state): New.
3645 (i386_init_dregs): New.
3646 (dr_mirror): New.
3647 (i386_cleanup_dregs): Use i386_init_dregs.
3648 (i386_show_dr): Add state parameter and adjust.
3649 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3650 the inferior here.
3651 (i386_remove_aligned_watchpoint): Likewise.
3652 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3653 (i386_update_inferior_debug_regs): New.
3654 (i386_insert_watchpoint): Work on a local mirror of the debug
3655 registers, and only update the inferior on success.
3656 (i386_remove_watchpoint): Ditto.
3657 (i386_region_ok_for_watchpoint): Adjust.
3658 (i386_stopped_data_address): Adjust.
3659 (i386_insert_hw_breakpoint): Adjust.
3660 (i386_remove_hw_breakpoint): Adjust.
3661
3662 2011-07-22 Tom Tromey <tromey@redhat.com>
3663
3664 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3665 from amd64_pseudo_register_read. Change arguments. Call
3666 mark_value_bytes_unavailable when needed.
3667 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3668 set_gdbarch_pseudo_register_read.
3669 * sentinel-frame.c (sentinel_frame_prev_register): Use
3670 regcache_cooked_read_value.
3671 * regcache.h (regcache_cooked_read_value): Declare.
3672 * regcache.c (regcache_cooked_read_value): New function.
3673 (regcache_cooked_read): Call
3674 gdbarch_pseudo_register_read_value if available.
3675 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3676 (i386_pseudo_register_read): Remove.
3677 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3678 i386_pseudo_register_read. Change arguments. Call
3679 mark_value_bytes_unavailable when needed.
3680 (i386_pseudo_register_read_value): New function.
3681 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3682 not set_gdbarch_pseudo_register_read.
3683 * gdbarch.sh (pseudo_register_read_value): New method.
3684 * gdbarch.c, gdbarch.h: Rebuild.
3685 * findvar.c (value_from_register): Call get_frame_register_value.
3686
3687 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3688
3689 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3690 get_prefix.
3691 (display_gdb_prompt): Likewise.
3692 (change_annotation_level): Likewise.
3693 (push_prompt): Likewise.
3694 (pop_prompt): Likewise.
3695 (handle_stop_sig): Use get_prompt with a level.
3696 * top.c (command_loop): Use get_prompt with a level.
3697 (set_async_annotation_level): Use set_prompt with a level.
3698 (get_prefix): New function.
3699 (set_prefix): Ditto.
3700 (set_suffix): Ditto.
3701 (get_suffix): Ditto.
3702 (get_prompt): Accept a level argument.
3703 (set_prompt): Accept a level argument. Free old prompts. Set
3704 new_async_prompt if level is 0.
3705 (init_main): Use set_prompt with a level. Do not set
3706 new_async_prompt.
3707 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3708 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3709 Modify set_prompt, get_prompt to account for levels.
3710 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3711 level.
3712 * python/python.c (before_prompt_hook): Use set_prompt.
3713
3714 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3715
3716 * defs.h: Add guard against inclusion in gdbserver.
3717 (struct ptid, ptid_t): Move to common/ptid.h.
3718 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3719 xsnprintf, internal_error): Move to common/common-utils.h.
3720 (nomem): Delete.
3721 * gdb_assert.h: Move into common/ sub-directory.
3722 * gdb_locale.h: Ditto.
3723 * gdb_dirent.h: Ditto.
3724 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3725 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3726 Move into common/ptid.h.
3727 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3728 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3729 Change nomem to malloc_failure.
3730 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3731 * utils.c (nomem): Rename to malloc_failure.
3732 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3733 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3734 (gdb_buildargv): Change nomem to malloc_failure.
3735 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3736 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3737 ptid_is_pid): Move into common/ptid.c.
3738 (initialize_infrun): Delete initialization of null_ptid and
3739 minus_one_ptid.
3740 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3741 linux_common_xfer_osdata.
3742 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3743 common/ptid.c and common/buffer.c.
3744 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3745 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3746 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3747 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3748 rules.
3749 * common/gdb_assert.h: New.
3750 * common/gdb_dirent.h: New.
3751 * common/gdb_locale.h: New.
3752 * common/buffer.c: New.
3753 * common/buffer.h: New.
3754 * common/ptid.c: New.
3755 * common/ptid.h: New.
3756 * common/xml-utils.c: New.
3757 * common/xml-utils.h: New.
3758 * common/common-utils.c: New.
3759 * common/common-utils.h: New.
3760 * common/linux-osdata.c: New.
3761 * common/linux-osdata.h: New.
3762 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3763 * config/arm/linux.mh (NATDEPFILES): Ditto.
3764 * config/i386/linux.mh (NATDEPFILES): Ditto.
3765 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3766 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3767 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3768 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3769 * config/mips/linux.mh (NATDEPFILES): Ditto.
3770 * config/pa/linux.mh (NATDEPFILES): Ditto.
3771 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3772 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3773 * config/s390/s390.mh (NATDEPFILES): Ditto.
3774 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3775 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3776 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3777
3778 2011-07-21 Matt Rice <ratmice@gmail.com>
3779
3780 * NEWS: Add info macros and info definitions commands.
3781
3782 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3783
3784 * NEWS: Document Python prompt substitution hook.
3785
3786 2011-07-18 Matt Rice <ratmice@gmail.com>
3787
3788 PR macros/12999
3789 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3790 * macrotab.c (foreach_macro): Ditto.
3791 (foreach_macro_in_scope): Ditto.
3792 * macrocmd.c (print_macro_callback): New function.
3793 (info_macro_command): Move some code to print_macro_definition.
3794 (print_macro_definition): New function.
3795 (print_one_macro): Add new arguments to callback.
3796 (info_definitions_command): New function.
3797 (info_macros_command): Ditto.
3798 (_initialize_macrocmd): Add info macros and info definitions commands.
3799 * symtab.c (add_macro_name): Add new arguments to callback.
3800
3801 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3802 Tom Tromey <tromey@redhat.com>
3803
3804 * top.c (set_prompt): Rewrite to free previous prompt, free
3805 asynch_new_prompt and set both on new prompts.
3806 * event-top.c (display_gdb_prompt): Add prompt substitution
3807 logic.
3808 * python/python.c (before_prompt_hook): New function.
3809
3810 2011-07-20 Matt Rice <ratmice@gmail.com>
3811
3812 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3813 arguments to store_unsigned_integer.
3814
3815 2011-07-20 Tom Tromey <tromey@redhat.com>
3816
3817 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3818 in some declaration-only cases.
3819
3820 2011-07-18 Tom Tromey <tromey@redhat.com>
3821
3822 PR symtab/12984:
3823 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3824 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3825 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3826 <debug_type_section>: New field.
3827 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3828 (load_cu): Use appropriate section.
3829 (create_signatured_type_table_from_index): Add 'section'
3830 argument.
3831 (dwarf2_read_index): Only allow a single .debug_types section.
3832 (dw2_get_file_names): Use appropriate section.
3833 (read_type_comp_unit_head): Add 'section' argument.
3834 (create_debug_types_hash_table): Loop over all .debug_types
3835 sections.
3836 (init_cu_die_reader): Use appropriate section.
3837 (process_psymtab_comp_unit, load_partial_comp_unit)
3838 (load_full_comp_unit, read_die_and_children, find_partial_die)
3839 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3840 (lookup_signatured_type_at_offset): Add 'section' argument.
3841 (read_signatured_type_at_offset): Add 'sect' argument.
3842 (read_signatured_type): Use appropriate section.
3843 (set_die_type, get_die_type_at_offset): Update.
3844 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3845 VEC.
3846 (write_psymtabs_to_index): Don't allow index with more than one
3847 .debug_types section.
3848
3849 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3850
3851 Fix crash if referenced CU is aged out.
3852 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3853 xfree of block.data.
3854 (indirect_pieced_value): New variable back_to, use to for xfree of
3855 baton.data.
3856 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3857 block.data.
3858 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3859 (load_cu): New function from ...
3860 (dw2_do_instantiate_symtab): ... the code here ...
3861 (process_full_comp_unit): ... and here.
3862 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3863 retval.data.
3864
3865 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3866
3867 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3868 type.
3869
3870 2011-07-19 Gary Benson <gbenson@redhat.com>
3871
3872 * infrun.c (struct execution_control_state): New member
3873 stop_func_filled_in.
3874 (clear_stop_func, fill_in_stop_func): New functions.
3875 (handle_inferior_event): Call clear_stop_func rather than
3876 manipulating the execution control state directly.
3877 Call fill_in_stop_func lazily as required rather than
3878 directly calling find_pc_partial_function in all cases.
3879
3880 2011-07-18 Tom Tromey <tromey@redhat.com>
3881
3882 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3883 checking for variable-sized array.
3884
3885 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3886
3887 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3888 of supported languages.
3889 * varobj.c: Add top definitions and basic implementation of the
3890 following callbacks: ada_number_of_children, ada_name_of_variable,
3891 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3892 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3893 (languages): Register Ada-specific callbacks.
3894 (variable_language): Add the Ada case in the language setter switch.
3895
3896 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3897
3898 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3899
3900 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 Code cleanup.
3903 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3904 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3905 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3906 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3907 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3908 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3909 (struct dwarf_expr_context_funcs): New, move here methods from ...
3910 (struct dwarf_expr_context): ... here. New fields funcs.
3911 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3912 (dwarf_expr_ctx_funcs): New.
3913 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3914 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3915 (needs_frame_ctx_funcs): New.
3916 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3917
3918 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3919
3920 * MAINTAINERS (Write After Approval): Add myself to the list.
3921
3922 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3923
3924 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3925 that CIE pointer of an FDE really points to a CIE .
3926
3927 2011-07-15 Hui Zhu <teawater@gmail.com>
3928
3929 * remote.c (remote_get_trace_status): Add comments.
3930
3931 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3932
3933 Code cleanup - constify struct lval_funcs.
3934 * dwarf2loc.c (pieced_value_funcs): Make it const.
3935 * infrun.c (siginfo_value_funcs): Likewise.
3936 * opencl-lang.c (opencl_value_funcs): Likewise.
3937 * valops.c (value_assign, value_ind): Make the funcs variable const.
3938 * value.c (struct value): Make location.computed.funcs target const.
3939 Rearrange the comments.
3940 (allocate_computed_value): Make the funcs parameter target const.
3941 (value_computed_funcs): Return the funcs target const.
3942 (value_free, value_copy, set_value_component_location): Make the funcs
3943 variable const.
3944 * value.h (allocate_computed_value): Make the funcs parameter target
3945 const.
3946 (value_computed_funcs): Return the funcs target const.
3947 * windows-tdep.c (tlb_value_funcs): Make it const.
3948
3949 2011-07-14 Hui Zhu <teawater@gmail.com>
3950
3951 * remote.c (remote_get_trace_status): Initialize p.
3952
3953 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3954
3955 Work around kgdb.
3956 * remote.c (remote_get_trace_status): New variable ex. Put
3957 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3958
3959 2011-07-13 Tom Tromey <tromey@redhat.com>
3960
3961 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3962 value_from_contents for final conversion.
3963
3964 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3965
3966 Code cleanup.
3967 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3968 Indent prototypes so they do not get into tags.
3969
3970 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3971
3972 Code cleanup making also optimized out values lazy.
3973 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3974 allocate_optimized_out_value. Twice.
3975 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3976 * findvar.c (read_var_value): Likewise.
3977 * value.c (allocate_optimized_out_value): New function.
3978 * value.h (allocate_optimized_out_value): New declaration.
3979
3980 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3981
3982 Fix occasional crash of CTRL-C during DWARF read in.
3983 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3984
3985 2011-07-11 Tom Tromey <tromey@redhat.com>
3986
3987 * regcache.c (struct regcache_descr): Fix typo.
3988 * i387-tdep.c (i387_supply_xsave): Fix typo.
3989
3990 2011-07-11 Tom Tromey <tromey@redhat.com>
3991
3992 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3993 (read_file_scope, read_type_unit_scope): Use it.
3994
3995 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3996
3997 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3998 `int'.
3999
4000 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4001
4002 PR python/12438
4003 * python/python.c: Set gdbpy_should_print_stack default to off.
4004 (set_python): Deprecate maint set python print-stack to
4005 class_deprecate.
4006 (_initialize_python): Deprecate maint set/show python print-stack.
4007 Add new prefix command, python. Add new setting, print-backtrace.
4008 * NEWS: Document set python print-stack. Document default change.
4009
4010 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4011
4012 * python/py-inferior.c (infpy_dealloc): New function.
4013 (inferior_to_inferior_object): Return a new object, or a
4014 new reference to the existing object.
4015 (find_thread_object): Cleanup references to inferior.
4016 (delete_thread_object): Ditto.
4017 * python/py-infthread.c (create_thread_object): Do not increment
4018 inferior reference count.
4019
4020 2011-07-08 Tom Tromey <tromey@redhat.com>
4021
4022 * dwarf2loc.c (locexpr_regname): New function.
4023 (locexpr_describe_location_piece): Use it.
4024 (disassemble_dwarf_expression): Add per_cu argument. Use
4025 locexpr_regname.
4026 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4027 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4028 New cases.
4029 (locexpr_describe_location_1): Add per_cu argument.
4030 (locexpr_describe_location): Update.
4031 (loclist_describe_location): Update.
4032
4033 2011-07-08 Tom Tromey <tromey@redhat.com>
4034
4035 * dwarf2expr.c (execute_stack_op): Add QUIT.
4036
4037 2011-07-07 Hui Zhu <teawater@gmail.com>
4038
4039 Revert:
4040 2011-07-06 Hui Zhu <teawater@gmail.com>
4041 * remote.c (remote_start_remote): Add TRY_CATCH for
4042 remote_get_trace_status.
4043 * tracepoint.c (disconnect_tracing): Ditto.
4044
4045 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4046
4047 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4048 variables as signed, not unsigned.
4049
4050 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4051
4052 * jit.c (jit_inferior_init): Reformat forward declaration.
4053
4054 2011-07-06 Matt Rice <ratmice@gmail.com>
4055
4056 * MAINTAINERS (Write After Approval): Add myself to the list.
4057
4058 2011-07-06 Hui Zhu <teawater@gmail.com>
4059
4060 * remote.c (remote_start_remote): Add TRY_CATCH for
4061 remote_get_trace_status.
4062 * tracepoint.c (disconnect_tracing): Ditto.
4063
4064 2011-07-05 Tom Tromey <tromey@redhat.com>
4065
4066 * symtab.c (operator_chars): Now static.
4067 * linespec.c (operator_chars): Don't declare.
4068
4069 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4070
4071 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4072
4073 2011-07-05 Tom Tromey <tromey@redhat.com>
4074
4075 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4076 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4077 (TYPE_CPLUS_REALLY_JAVA): New macro.
4078 * dwarf2read.c (process_structure_scope): Set
4079 TYPE_CPLUS_REALLY_JAVA.
4080
4081 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4082
4083 * ada-lang.c: Fix typos.
4084 * amd64-tdep.c: Likewise.
4085 * breakpoint.c: Likewise.
4086 * cli/cli-decode.c: Likewise.
4087 * findcmd.c: Likewise.
4088 * inline-frame.c: Likewise.
4089 * mi/mi-main.c: Likewise.
4090 * minsyms.c: Likewise.
4091 * monitor.c: Likewise.
4092 * monitor.h: Likewise.
4093 * prologue-value.c: Likewise.
4094 * reverse.c: Likewise.
4095 * s390-tdep.c: Likewise.
4096
4097 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4098
4099 * jit.c (jit_inferior_init): Forward declare.
4100 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4101
4102 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4103
4104 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4105
4106 2011-07-04 Tristan Gingold <gingold@adacore.com>
4107
4108 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4109 (tcb_fieldno): Add activation_link field.
4110 (get_known_tasks_addr): Moved and rewritten.
4111 (get_tcb_types_info): Set activation_link field.
4112 (read_known_tasks_array): Add parameter. Rewritten.
4113 (read_known_tasks_list): New function.
4114 (read_known_tasks): New function.
4115 (ada_build_task_list): Call read_known_tasks instead of
4116 read_known_tasks_array.
4117 * ravenscar-thread.c: Add first_task_name constant.
4118 (has_ravenscar_runtime): Check for task list too.
4119
4120 2011-07-04 Tristan Gingold <gingold@adacore.com>
4121
4122 * ada-tasks.c: Renames fieldno to actb_fieldno.
4123 (ada_get_task_number): Indentation.
4124 (get_tcb_types_info): Remove all parameters. Write directly
4125 the globals.
4126 (ptid_from_atcb_common): Adjust.
4127 (read_atcb): Adjust.
4128
4129 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4130
4131 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4132
4133 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4134
4135 * ui-out.c (ui_out_field_core_addr): Mention that the function
4136 description is in the header file.
4137 * ui-out.h (ui_out_field_core_addr): Document function.
4138
4139 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4140
4141 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4142 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4143
4144 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4145
4146 * symtab.c (expand_line_sal): Remove empty line.
4147
4148 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4149
4150 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4151 same way as ELFOSABI_NONE.
4152 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4153
4154 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4155
4156 * breakpoint.c: Fix typos in comments.
4157 * linespec.c: Likewise.
4158 * symtab.c: Likewise.
4159
4160 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4161
4162 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4163 section in separate object files.
4164
4165 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4166
4167 Fix false GCC warning.
4168 * linespec.c (decode_line_1): Initialize values.
4169
4170 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4171
4172 * linespec.c (find_method): Accept the function type automatically only
4173 if it was specified with parameter types.
4174
4175 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4176
4177 Stop on first linespec terminator instead of eating what we can.
4178 * linespec.c (is_linespec_boundary): New function.
4179 (name_end): Remove function.
4180 (keep_name_info): New parameter on_boundary, replace the body.
4181 (decode_line_1): Provide the parameter to keep_name_info.
4182 (decode_compound): Likewise. Drop the trailing java return type
4183 handling. Twice.
4184
4185 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 Fall back linespec to minimal symbols.
4188 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4189 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4190 (find_method, symbol_found): Change error to cplusplus_error.
4191
4192 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4193
4194 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4195
4196 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4197 Tom Tromey <tromey@redhat.com>
4198
4199 * dwarf2read.c (check_physname): New variable.
4200 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4201 (show_check_physname): New function.
4202 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4203
4204 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4205
4206 * machoread.c (macho_symfile_read): Delete OBE comment.
4207
4208 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4209
4210 * machoread.c (struct macho_oso_data): Delete.
4211 (current_oso): Delete.
4212 (macho_relocate_common_syms): New function, mostly extracted
4213 out of
4214 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4215 Remove code that sets and unset current_oso.
4216 (macho_symfile_relocate): Delete handling of common symbols,
4217 now moved to macho_relocate_common_syms.
4218
4219 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4220
4221 * darwin-nat.c (darwin_ptrace): Add documentation.
4222 Set errno to zero before calling ptrace. If ptrace returns
4223 -1 and errno is zero, then change then return zero.
4224 (darwin_kill_inferior): Issue a warning instead of triggering
4225 a failed assertion when the PT_KILL ptrace operations returned
4226 nonzero.
4227
4228 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4229
4230 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4231 only when inf->private->no_ptrace.
4232
4233 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4234
4235 * ada-lang.c (print_it_exception): Print temporary catchpoints
4236 as "Temporary catchpoint".
4237 (print_mention_exception): Likewise.
4238
4239 2011-07-01 Tom Tromey <tromey@redhat.com>
4240
4241 * jv-lang.c (java_language_defn): Use java_printchar,
4242 java_printstr.
4243 (java_get_encoding): New function.
4244 (java_emit_char): Use generic_emit_char.
4245 (java_printchar): New function.
4246 (java_printstr): Likewise.
4247
4248 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4249
4250 * ada-typeprint.c (print_record_type): If unable to decode
4251 the name of the parent type, use the encoded name.
4252
4253 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4254
4255 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4256 pointer to constrained packed array type output.
4257 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4258 packed array output.
4259
4260 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4261
4262 * ada-typeprint.c (print_array_type): removed if condition on show
4263 being negative for bounds printing.
4264
4265 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4266
4267 * ada-lang.c (ada_identical_enum_types_p): New function.
4268 (symbols_are_identical_enums): New function.
4269 (remove_extra_symbols): Do nothing if NSYMS < 2.
4270 Use symbols_are_identical_enums.
4271
4272 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4273
4274 * ada-valprint.c (ada_value_print): Handle typedefs.
4275
4276 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4277
4278 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4279
4280 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4281
4282 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4283 (decode_constrained_packed_array): Likewise.
4284 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4285
4286 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4287
4288 * ada-exp.y (convert_char_literal): Handle typedef types.
4289
4290 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4291
4292 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4293
4294 2011-06-30 Tom Tromey <tromey@redhat.com>
4295
4296 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4297 * valops.c (find_overload_match): Call do_cleanups on early exit
4298 path.
4299 * solib.c (solib_find): Call do_cleanups on early exit path.
4300
4301 2011-06-30 Tom Tromey <tromey@redhat.com>
4302
4303 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4304 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4305 return paths. Defer final do_cleanups until last return.
4306 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4307 early return.
4308
4309 2011-06-30 Tom Tromey <tromey@redhat.com>
4310
4311 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4312
4313 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4314
4315 * MAINTAINERS (Write After Approval): Add myself to the list.
4316
4317 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4318
4319 Disable epilogue unwinders on recent GCCs.
4320 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4321 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4322 * dwarf2read.c (process_full_comp_unit): Initialize
4323 EPILOGUE_UNWIND_VALID.
4324 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4325 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4326 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4327
4328 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 Code cleanup - reformatting.
4331 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4332 (producer_is_gcc_ge_4): ... here, change the return value.
4333 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4334 interpretation.
4335
4336 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4337
4338 Fix non-only rename list for Fortran modules import.
4339 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4340 cp_add_using_directive caller.
4341 (cp_add_using_directive): New parameter excludes, describe it. New
4342 variables ix and param. Compare if also excludes match. Allocate NEW
4343 with variable size, initialize EXCLUDES there.
4344 (cp_lookup_symbol_imports): New variable excludep, test
4345 current->EXCLUDES with it.
4346 * cp-support.h: Include vec.h.
4347 (struct using_direct): New field excludes, describe it.
4348 (DEF_VEC_P (const_char_ptr)): New.
4349 (cp_add_using_directive): New parameter excludes.
4350 * defs.h (const_char_ptr): New typedef.
4351 * dwarf2read.c (read_import_statement): New variables child_die,
4352 excludes and cleanups, read in excludes.
4353 (read_namespace): Adjust the cp_add_using_directive caller.
4354
4355 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 Code cleanup.
4358 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4359 negative comparisons.
4360
4361 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4362
4363 * mi/mi-main.c (mi_cmd_list_features): Emit
4364 breakpoint-notifications.
4365
4366 2011-06-29 Tom Tromey <tromey@redhat.com>
4367
4368 PR fortran/10036:
4369 * valprint.h (generic_emit_char, generic_printstr): Declare.
4370 * valprint.c (wchar_printable, append_string_as_wide)
4371 (print_wchar): Move from c-lang.c.
4372 (generic_emit_char): New function; mostly taken from c_emit_char.
4373 (generic_printstr): New function; mostly taken from c_printstr.
4374 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4375 represented as arrays.
4376 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4377 type.
4378 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4379 identically to TYPE_CODE_INT.
4380 * f-lang.c (f_get_encoding): New function.
4381 (f_emit_char): Use generic_emit_char.
4382 (f_printchar): Replace comment.
4383 (f_printstr): Use generic_printstr.
4384 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4385 "character" types specially.
4386 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4387 for Fortran.
4388 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4389 Move to valprint.c
4390 (c_emit_char): Call generic_emit_char.
4391 (c_printstr): Call generic_printstr.
4392
4393 2011-06-29 Gary Benson <gbenson@redhat.com>
4394
4395 * breakpoint.c (bpstat_what): Removed duplicated case.
4396
4397 2011-06-28 Tom Tromey <tromey@redhat.com>
4398
4399 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4400
4401 2011-06-27 Tom Tromey <tromey@redhat.com>
4402
4403 * valops.c (find_overload_match): Call do_cleanups before early
4404 return.
4405 * top.c (execute_command): Call do_cleanups before early return.
4406 (command_loop): Likewise.
4407 * stack.c (backtrace_command): Make a null cleanup early. Don't
4408 conditionally call do_cleanups.
4409 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4410 TRY_CATCH.
4411 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4412 so cleanups are always run.
4413 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4414 * findcmd.c (parse_find_args): Call do_cleanups on early return
4415 path.
4416 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4417 Don't conditionally call do_cleanups.
4418 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4419 later.
4420
4421 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4422
4423 * MAINTAINERS (Write After Approval): Use default email address.
4424
4425 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4426
4427 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4428
4429 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4430
4431 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4432 saved_regs_mask and copied_regs_mask fields.
4433 (sparc_record_save_insn): New prototype.
4434 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4435 (sparc_record_save_insn): New function.
4436 (sparc_analyze_prologue): Add head comment. Recognize store insns
4437 of call-saved registers. Use OFFSET consistently. Recognize flat
4438 frames and cache their settings.
4439 (sparc32_skip_prologue): Handle flat frames.
4440 (sparc_frame_cache): Add frame_offset to the base address.
4441 (sparc32_frame_cache): Adjust to new frame description.
4442 (sparc32_frame_prev_register): Likewise.
4443 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4444 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4445 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4446 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4447 frame by calling sparc_record_save_insn.
4448 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4449 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4450 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4451
4452 2011-06-27 Tristan Gingold <gingold@adacore.com>
4453
4454 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4455 field by map_addr and map_len.
4456 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4457 (munmap_section_buffer): Likewise.
4458
4459 2011-06-24 Tom Tromey <tromey@redhat.com>
4460
4461 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4462 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4463 * python/python.c (gdbpy_parameter): Make 'arg' const.
4464 (execute_gdb_command): Likewise.
4465 (gdbpy_decode_line): Likewise. Copy it.
4466 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4467 (gdbpy_write): Make 'arg' const.
4468 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4469 const.
4470 (gdbpy_lookup_type): Likewise.
4471 * python/py-prettyprint.c (print_children): Make 'name' const.
4472 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4473 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4474 Py_ssize_t.
4475 * python/py-function.c (fnpy_init): Make 'name' const.
4476 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4477 (gdbpy_string_to_argv): Make 'input' const.
4478 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4479 it.
4480 * gdbtypes.h (lookup_typename): Update.
4481 * gdbtypes.c (lookup_typename): Make 'name' const.
4482 (lookup_struct): Likewise.
4483 (lookup_union): Likewise.
4484 (lookup_enum): Likewise.
4485
4486 2011-06-24 Tom Tromey <tromey@redhat.com>
4487
4488 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4489 gdb_thread_db.h. Move all common/ entries to be together.
4490 (TAGS): Don't depend on DEPFILES.
4491
4492 2011-06-23 Yao Qi <yao@codesourcery.com>
4493
4494 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4495 * remote.c (remote_start_remote): ... here.
4496 * monitor.c (monitor_open): ... here.
4497
4498 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4499
4500 * gdbtypes.c (append_composite_type_field_aligned): Fix
4501 calculation of bit position based on alignment.
4502
4503 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4504
4505 * breakpoint.c (bpstat_stop_status): Call the check_status
4506 breakpoint_ops method.
4507 (print_one_breakpoint_location): Also print the condition for Ada
4508 exception catchpoints.
4509 (allocate_bp_location): New, factored out from
4510 allocate_bp_location.
4511 (allocate_bp_location): Adjust. Call the owner breakpoint's
4512 allocate_location method, if there is one.
4513 (free_bp_location): Call the locations's dtor method, if there is
4514 one.
4515 (init_raw_breakpoint_without_location): New breakpoint_ops
4516 parameter. Use it.
4517 (set_raw_breakpoint_without_location): Adjust.
4518 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4519 (set_raw_breakpoint): Adjust.
4520 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4521 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4522 re_set and check_status methods.
4523 (init_catchpoint): Don't memset, initialize thread, addr_string
4524 and enable_state. Pass the ops down to init_raw_breakpoint.
4525 (install_catchpoint): Rename to ...
4526 (install_breakpoint): ... this, and make extern.
4527 (create_fork_vfork_event_catchpoint): Adjust.
4528 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4529 re_set and check_status methods.
4530 (create_syscall_event_catchpoint): Adjust.
4531 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4532 (masked_watchpoint_breakpoint_ops): Install NULL
4533 allocate_location, re_set and check_status methods.
4534 (catch_exec_command_1): Adjust.
4535 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4536 re_set and check_status methods.
4537 (create_ada_exception_breakpoint): Rename to ...
4538 (init_ada_exception_breakpoint): ... this. Add a struct
4539 breakpoint parameter, and delete the exp_string, cond_string and
4540 cond parameters. Use init_raw_breakpoint, and don't install or
4541 mention the breakpoint yet. Don't clear breakpoint fields that
4542 init_raw_breakpoint already clears.
4543 (re_set_breakpoint): Delete, split into ...
4544 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4545 functions.
4546 (breakpoint_re_set_one): Call the breakpoint's
4547 breakpoint_ops->re_set implementation, if there's one. Adjust.
4548 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4549 (struct bp_location_ops): New type.
4550 (struct bp_location): New field `ops'.
4551 (struct breakpoint_ops): New `allocate_location', `re_set' and
4552 `check_status' fields. Make `breakpoint_hit''s description match
4553 reality.
4554 (init_bp_location): Declare.
4555 (breakpoint_re_set_default): Declare.
4556 (create_ada_exception_breakpoint): Rename to ...
4557 (init_ada_exception_breakpoint): ... this. Add a struct
4558 breakpoint parameter, and delete the exp_string, cond_string and
4559 cond parameters.
4560 (install_breakpoint): Declare.
4561 * ada-lang.c: Include exceptions.h.
4562 <Ada exceptions description>: Update.
4563 (struct ada_catchpoint_location): New type.
4564 (ada_catchpoint_location_dtor): New function.
4565 (ada_catchpoint_location_ops): New global.
4566 (ada_catchpoint): New type.
4567 (create_excep_cond_exprs): New function.
4568 (dtor_exception, allocate_location_exception, re_set_exception)
4569 (should_stop_exception, check_status_exception): New functions.
4570 (print_one_exception, print_mention_exception)
4571 (print_recreate_exception): Adjust.
4572 (dtor_catch_exception, allocate_location_catch_exception)
4573 (re_set_catch_exception, check_status_catch_exception): New
4574 functions.
4575 (catch_exception_breakpoint_ops): Install them.
4576 (dtor_catch_exception_unhandled)
4577 (allocate_location_catch_exception_unhandled)
4578 (re_set_catch_exception_unhandled)
4579 (check_status_catch_exception_unhandled): New functions.
4580 (catch_exception_unhandled_breakpoint_ops): Install them.
4581 (dtor_catch_assert, allocate_location_catch_assert)
4582 (re_set_catch_assert, check_status_catch_assert): New functions.
4583 (catch_assert_breakpoint_ops): Install them.
4584 (ada_exception_catchpoint_p): Delete.
4585 (catch_ada_exception_command_split)
4586 (ada_exception_catchpoint_cond_string): Rename exp_string
4587 parameter to excep_string. Adjust.
4588 (ada_parse_catchpoint_condition): Delete.
4589 (ada_exception_sal): Rename the exp_string parameter to
4590 excep_string. Delete the cond_string and cond parameters.
4591 Adjust.
4592 (ada_decode_exception_location): Rename the exp_string parameter
4593 to excep_string. Delete the cond_string and cond parameters.
4594 Adjust.
4595 (create_ada_exception_catchpoint): New function.
4596 (catch_ada_exception_command, ada_decode_assert_location)
4597 (catch_assert_command): Adjust.
4598 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4599
4600 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4601
4602 * ada-lang.c: Include arch-utils.h.
4603 (ada_decode_exception_location): Make static.
4604 (catch_ada_exception_command): Moved here from breakpoint.c.
4605 (ada_decode_assert_location): Make static.
4606 (catch_assert_command): Moved here from breakpoint.c.
4607 (_initialize_ada_lang): Install the exception and assert
4608 catchpoint commands here.
4609 * ada-lang.h (ada_decode_exception_location)
4610 (ada_decode_assert_location): Delete declarations.
4611 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4612 breakpoint.h.
4613 (create_ada_exception_breakpoint): Make extern.
4614 (catch_ada_exception_command, catch_assert_command): Moved to
4615 ada-lang.c.
4616 (add_catch_command): Make extern.
4617 (_initilize_breakpoint): Don't install the exception and assert
4618 catchpoint commands here.
4619 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4620 breakpoint.c
4621 (add_catch_command, create_ada_exception_breakpoint): Declare.
4622
4623 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4624
4625 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4626 the breakpoint to the breakpoint chain here.
4627 (set_raw_breakpoint_without_location): Add the breakpoint to the
4628 breakpoint chain here.
4629 (init_raw_breakpoint): Adjust comments.
4630 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4631 here.
4632 (init_catchpoint): Don't set the catchpoint's breakpoint number
4633 here.
4634 (install_catchpoint): New function.
4635 (create_fork_vfork_event_catchpoint)
4636 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4637 use install_catchpoint.
4638
4639 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4640
4641 * breakpoint.c (create_catchpoint_without_mention)
4642 (create_catchpoint): Delete.
4643
4644 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4645
4646 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4647 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4648 reference to exec_pathname.
4649 (struct exec_catchpoint): New type.
4650 (dtor_catch_exec): New function.
4651 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4652 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4653 (catch_exec_command_1): Adjust to use init_catchpoint.
4654 (delete_breakpoint): Remove reference to exec_pathname.
4655
4656 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4657
4658 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4659 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4660 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4661 reference to syscalls_to_be_caught.
4662 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4663 NULL `dtor'.
4664 (struct syscall_catchpoint): New type.
4665 (dtor_catch_syscall): New function.
4666 (insert_catch_syscall, remove_catch_syscall)
4667 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4668 (print_recreate_catch_syscall): Adjust.
4669 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4670 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4671 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4672 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4673 (masked_watchpoint_breakpoint_ops)
4674 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4675 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4676 there is one. Remove references to syscalls_to_be_caught.
4677 (catching_syscall_number): Adjust.
4678 * ada-lang.c (catch_exception_breakpoint_ops)
4679 (catch_exception_unhandled_breakpoint_ops)
4680 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4681
4682 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4683
4684 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4685 field.
4686 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4687 reference to forked_inferior_pid.
4688 (struct fork_catchpoint): New type.
4689 (breakpoint_hit_catch_fork, print_it_catch_fork)
4690 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4691 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4692 (create_fork_vfork_event_catchpoint): Adjust to use
4693 init_catchpoint.
4694
4695 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4696
4697 * breakpoint.c (add_to_breakpoint_chain)
4698 (init_raw_breakpoint_without_location): New functions, factored
4699 out from ...
4700 (set_raw_breakpoint_without_location): ... this one.
4701 (init_raw_breakpoint): New function, factored out from
4702 set_raw_breakpoint and adjusted to use
4703 init_raw_breakpoint_without_location.
4704 (set_raw_breakpoint): Adjust.
4705 (init_catchpoint): New function, factored out from
4706 create_catchpoint_without_mention and adjusted to use
4707 init_raw_breakpoint.
4708 (create_catchpoint_without_mention): Adjust.
4709
4710 2011-06-22 Tom Tromey <tromey@redhat.com>
4711
4712 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4713 argument of 0 specially.
4714
4715 2011-06-22 Yao Qi <yao@codesourcery.com>
4716
4717 * infrun.c (handle_inferior_event): Remove write-only local variable
4718 `sw_single_step_trap_p'.
4719
4720 2011-06-20 Tom Tromey <tromey@redhat.com>
4721
4722 * symtab.c (lookup_language_this): End loop if block is NULL.
4723
4724 2011-06-17 Tom Tromey <tromey@redhat.com>
4725
4726 * valops.c (value_of_this): Use lookup_language_this.
4727 * symtab.h (lookup_language_this): Declare.
4728 * symtab.c (lookup_language_this): New function.
4729 (lookup_symbol_aux): Use lookup_language_this.
4730 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4731
4732 2011-06-17 Tom Tromey <tromey@redhat.com>
4733
4734 * value.h (value_of_this): Update.
4735 (value_of_local): Remove.
4736 * valops.c (value_of_this): Rename from value_of_local. Change
4737 parameters.
4738 * p-exp.y (exp): Update.
4739 (variable): Likewise.
4740 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4741
4742 2011-06-17 Tom Tromey <tromey@redhat.com>
4743
4744 * valops.c (value_of_local): Complain if NAME is NULL.
4745 * std-operator.def (OP_OBJC_SELF): Remove.
4746 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4747 * objc-exp.y (name_not_typename): Use OP_THIS.
4748 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4749 name for "this".
4750 <OP_OBJC_SELF>: Remove.
4751 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4752
4753 2011-06-16 Tristan Gingold <gingold@adacore.com>
4754
4755 * python/py-events.h (gdb_py_events): Make it extern.
4756 * python/py-evtregistry.c (gdb_py_events): Declare.
4757
4758 2011-06-16 Hui Zhu <teawater@gmail.com>
4759
4760 * remote.c (remote_trace_set_readonly_regions): Add check for
4761 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4762 output warning.
4763
4764 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4765
4766 * arm-linux-tdep.c: Include "auxv.h".
4767 (AT_HWCAP): Define.
4768 (ARM_LINUX_SIZEOF_VFP): Define.
4769 (arm_linux_supply_vfp): New function.
4770 (arm_linux_collect_vfp): Likewise.
4771 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4772 (arm_linux_fpa_regset_sections): New variable.
4773 (arm_linux_vfp_regset_sections): Likewise.
4774 (arm_linux_core_read_description): New function.
4775 (arm_linux_init_abi): Install arm_linux_core_read_description and
4776 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4777 appropriate for the architecture.
4778 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4779 (tdesc_arm_with_m): Declare.
4780 (tdesc_arm_with_iwmmxt): Likewise.
4781 (tdesc_arm_with_vfpv2): Likewise.
4782 (tdesc_arm_with_vfpv3): Likewise.
4783 (tdesc_arm_with_neon): Likewise.
4784 * arm-linux-nat.c: Move features/*.c includes ...
4785 * arm-tdep.c: ... here.
4786 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4787 target description data structures ...
4788 * arm-tdep.c (_initialize_arm_tdep): ... here.
4789 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4790 HWCAP_VFPv3D16): Move definitions ...
4791 * arm-linux-tdep.h: ... here.
4792
4793 2011-06-15 Hui Zhu <teawater@gmail.com>
4794
4795 * remote.c (remote_trace_set_readonly_regions): Add a check for
4796 target_buf_size.
4797
4798 2011-06-14 Tom Tromey <tromey@redhat.com>
4799
4800 * coffread.c (coffread_objfile): Rename from current_objfile.
4801 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4802 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4803
4804 2011-06-14 Tom Tromey <tromey@redhat.com>
4805
4806 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4807 (class_symtab): Remove.
4808 (jv_dynamics_progspace_key): New global.
4809 (jv_per_objfile_free): Reset program space data. Update assert.
4810 Don't clear globals.
4811 (get_dynamics_objfile): Use and set program space data.
4812 (get_java_class_symtab): Use get_dynamics_objfile.
4813 (add_class_symbol): Likewise.
4814 (java_link_class_type): Likewise.
4815 (java_object_type, jv_clear_object_type, set_java_object_type):
4816 Remove.
4817 (get_java_object_type): Update. Don't cache result.
4818 (is_object_type): Don't call set_java_object_type.
4819 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4820 initialize jv_dynamics_progspace_key.
4821
4822 2011-06-14 Tom Tromey <tromey@redhat.com>
4823
4824 * symtab.h (current_objfile): Don't declare.
4825 * objfiles.h (current_objfile): Don't declare.
4826 * objfiles.c (current_objfile): Remove.
4827 * mdebugread.c (current_objfile): New file-scope global.
4828 * dbxread.c (current_objfile): New file-scope global.
4829 * coffread.c (current_objfile): New file-scope global.
4830
4831 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4832
4833 * top.h (line): Rename to ...
4834 (saved_command_line): ... this.
4835 (linesize): Rename to ...
4836 (saved_command_line_size): ... this.
4837 * top.c (line): Rename to ...
4838 (saved_command_line): ... this.
4839 (linesize): Rename to ...
4840 (saved_command_line_size): ... this.
4841 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4842 * event-top.c (command_line_handler): Adjust.
4843 * main.c (captured_main): Adjust.
4844
4845 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4846
4847 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4848 get_frame_func instead of get_frame_pc to determine the code
4849 address used to construct the frame ID.
4850 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4851 (i386_epilogue_frame_this_id): Likewise.
4852 (i386_epilogue_frame_prev_register): New function.
4853 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4854 (i386_stack_tramp_frame_sniffer): Fix coding style.
4855 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4856 (i386_gdbarch_init): Fix comments.
4857
4858 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4859
4860 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4861 instruction when walking back through the instruction stream.
4862
4863 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4864
4865 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4866 fullname parameters order.
4867
4868 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4869
4870 Code cleanup.
4871 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4872 for fun.
4873 * psymtab.c (map_symbol_filenames_psymtab)
4874 (map_partial_symbol_filenames): Likewise.
4875 * psymtab.h: Include symfile.h.
4876 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4877 * symfile.h (symbol_filename_ftype): New.
4878 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4879 map_symbol_filenames, clarify more the naming in comment.
4880
4881 2011-06-07 Doug Evans <dje@google.com>
4882
4883 * cc-with-index.sh: Fix typos in comment.
4884 Look for ../../gdb, for fullname.exp.
4885
4886 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4887 Pedro Alves <pedro@codesourcery.com>
4888
4889 * cli/cli-cmds.c (shell_escape): Use waitpid.
4890 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4891
4892 2011-06-07 Tristan Gingold <gingold@adacore.com>
4893
4894 * xcoffread.c (dwarf2_xcoff_names): New variable.
4895 (aix_process_linenos): Add a guard.
4896 (xcoff_symfile_finish): Free dwarf2.
4897 (xcoff_initial_scan): Add dwarf2 support.
4898
4899 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4900
4901 * infcall.c (run_inferior_call): Don't mask async. Instead force
4902 a synchronous wait, if the target can async.
4903
4904 * target.h (struct target_ops): Delete to_async_mask.
4905 (target_async_mask): Delete.
4906 * target.c (update_current_target): Delete references to to_async_mask.
4907 * linux-nat.c (linux_nat_async_mask_value): Delete.
4908 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4909 to linux_nat_async_mask_value.
4910 (linux_nat_async_mask): Delete.
4911 (linux_nat_async, linux_nat_close): Remove references to
4912 linux_nat_async_mask_value.
4913 * record.c (record_async_mask_value): Delete.
4914 (record_async): Remove references to record_async_mask_value.
4915 (record_async_mask): Delete.
4916 (record_can_async_p, record_is_async_p): Remove references to
4917 record_async_mask_value.
4918 (init_record_ops, init_record_core_ops): Remove references to
4919 record_async_mask.
4920 * remote.c (remote_async_mask_value): Delete.
4921 (init_remote_ops): Remove reference to remote_async_mask.
4922 (remote_can_async_p, remote_is_async_p): Remove references to
4923 remote_async_mask_value.
4924 (remote_async): Remove references to remote_async_mask_value.
4925 (remote_async_mask): Delete.
4926
4927 * infrun.c (fetch_inferior_event): Don't claim registers changed
4928 if the current thread is already not executing.
4929
4930 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4931
4932 From Stephen Kitt <steve@sk2.org>
4933 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4934 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4935
4936 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4937
4938 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4939 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4940
4941 2011-06-03 Tom Tromey <tromey@redhat.com>
4942
4943 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4944 code fields.
4945 * python/py-exitedevent.c (create_exited_event_object): Change
4946 type of 'exit_code'. Optionally add exit_code attribute.
4947 (emit_exited_event): Change type of 'exit_code'.
4948 * python/py-event.h (emit_exited_event): Update.
4949 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4950 * infrun.c (handle_inferior_event): Set exit code fields on
4951 inferior.
4952 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4953 fields.
4954 * inferior.c (exit_inferior_1): Initialize new fields.
4955
4956 2011-06-03 Tom Tromey <tromey@redhat.com>
4957
4958 * dwarf2expr.c (get_signed_type): New function.
4959 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4960
4961 2011-06-02 Keith Seitz <keiths@redhat.com>
4962
4963 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4964
4965 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4966
4967 * top.h (simplified_command_loop): Delete declaration.
4968
4969 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4970
4971 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4972 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4973
4974 2011-06-01 Yao Qi <yao@codesourcery.com>
4975
4976 * objfiles.h (obj_section_addr): Update reference to objfile from
4977 `abfd' to `obfd'.
4978 (obj_section_endaddr): Likewise.
4979
4980 2011-06-01 Daniel Jacobowitz <drow@false.org>
4981
4982 * MAINTAINERS: Update my email address and affiliation. Also
4983 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4984
4985 2010-05-31 Keith Seitz <keiths@redhat.com>
4986
4987 PR c++/12750
4988 * linespec.c (get_search_block): New function.
4989 (find_methods): Add FILE_SYMTATB parameter and use it and
4990 get_search_block to pass an appropriate block to
4991 lookup_symbol_in_namespace.
4992 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4993 Check if *ARGPTR starts with a filename first.
4994 If it does, call locate_first_half again to locate the next
4995 "first half" of the linespec.
4996 Pass FILE_SYMTATB to decode_objc and decode_compound.
4997 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4998 (locate_first_half): Stop on the first colon seen.
4999 (decode_compound): Add FILE_SYMTAB parameter.
5000 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5001 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5002 get_search_block with lookup_symbol.
5003 (find_method): Add FILE_SYMTAB parameter and pass it to
5004 find_methods.
5005 (decode_objc): Use get_search_block.
5006
5007 2010-05-31 Keith Seitz <keiths@redhat.com>
5008
5009 PR symtab/12704
5010 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5011 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5012 and CP_ANONYMOUS_NAMESPACE_LEN.
5013 (cp_is_anonymous): Likewise.
5014 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5015 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5016 * dwarf2read.c (namespace_name): Likewise.
5017 (fixup_partial_die): Likewise.
5018 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5019 seen in the input, keep it.
5020
5021 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5022
5023 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5024 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5025 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5026 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5027 * remote.c (_initialize_remote): Register
5028 async_remote_interrupt_twice directly as
5029 sigint_remote_twice_token event.
5030
5031 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5032
5033 * target.h (enum inferior_event_type): Delete INF_ERROR.
5034 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5035
5036 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5037
5038 * interps.c (interp_set): Don't cancel continuations.
5039
5040 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5041
5042 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5043
5044 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5045
5046 * continuations.h (continuation_ftype): Add `err' parameter.
5047 Document parameters.
5048 (do_all_continuations, do_all_continuations_thread)
5049 (do_all_intermediate_continuations)
5050 (do_all_intermediate_continuations_thread)
5051 (do_all_inferior_continuations): Add `err' parameter.
5052 * continuations.c (do_my_continuations_1, do_my_continuations)
5053 (do_all_inferior_continuations, do_all_continuations_ptid)
5054 (do_all_continuations_thread_callback)
5055 (do_all_continuations_thread, do_all_continuations)
5056 (do_all_intermediate_continuations_thread_callback)
5057 (do_all_intermediate_continuations_thread)
5058 (do_all_intermediate_continuations): Add `err' parameter, and pass
5059 it down all the way to the continuations proper.
5060 * inf-loop.c (inferior_event_handler): If fetching an inferior
5061 event throws an error, don't pop the target, and still call the
5062 continuations, but with `err' set. Adjust all other continuation
5063 calls.
5064 * breakpoint.c (until_break_command_continuation): Add `err'
5065 parameter.
5066 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5067 issue another step if `err' is set.
5068 (struct until_next_continuation_args): New.
5069 (until_next_continuation): Add `err' parameter. Adjust.
5070 (until_next_command): Adjust.
5071 (struct finish_command_continuation_args): Add `thread' field.
5072 (finish_command_continuation): Add `err' parameter. Handle it.
5073 (finish_forward): Adjust.
5074 (attach_command_continuation): Add `err' parameter. Handle it.
5075 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5076 cancel the continuations.
5077 * interps.c (interp_set): Adjust to cancel the continuations.
5078 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5079 continuations rather than discarding.
5080 (free_thread): Don't clear thread inferior resources here.
5081 (delete_thread_1): Do it here instead. And do it before removing
5082 the thread from the threads list. Tag the thread as exited before
5083 clearing thread inferior resources.
5084
5085 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5086
5087 * infcall.c (call_function_by_hand): Rephrase error message.
5088
5089 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5090
5091 * defs.h (struct thread_info, struct inferior): Delete forward
5092 declarations.
5093 * breakpoint.h (struct thread_info): New forward declaration.
5094 * observer.sh (struct inferior): New forward declaration.
5095 * python/python-internal.h (struct inferior): New forward
5096 declaration.
5097
5098 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5099
5100 * defs.h (struct continuation, continuation_ftype)
5101 (continuation_free_arg_ftype, add_continuation)
5102 (do_all_continuations, do_all_continuations_thread)
5103 (discard_all_continuations, discard_all_continuations_thread)
5104 (add_intermediate_continuation, do_all_intermediate_continuations)
5105 (do_all_intermediate_continuations_thread)
5106 (discard_all_intermediate_continuations)
5107 (discard_all_intermediate_continuations_thread)
5108 (add_inferior_continuation, do_all_inferior_continuations)
5109 (discard_all_inferior_continuations): Move to ...
5110 * continuations.h: ... this new file.
5111 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5112 infcmd.c, inferior.c, infrun.c, interps.c: Include
5113 continuations.h.
5114
5115 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5116 Doug Evans <dje@google.com>
5117
5118 Fix PR 10970, PR 12702.
5119 * linux-nat.c (linux_lwp_is_zombie): New function.
5120 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5121 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5122
5123 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5124
5125 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5126 typedefs.
5127 (add_continuation, add_intermediate_continuation)
5128 (add_inferior_continuation): Use them.
5129 * continuations.c (struct continuation): Use them.
5130 (make_continuation_ftype): Delete.
5131 (make_continuation, add_inferior_continuation, add_continuation)
5132 (add_intermediate_continuation): Use continuation_ftype and
5133 continuation_free_arg_ftype. Rename parameters to shorter names.
5134
5135 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5136
5137 * continuations.c (make_continuation): Make it return void.
5138 (do_my_continuations): Rename to ...
5139 (do_my_continuations_1): ... this. Remove old_chain parameter and
5140 adjust.
5141 (do_my_continuations): New.
5142 (discard_my_continuations): Rename to ...
5143 (discard_my_continuations_1): ... this. Remove old_chain
5144 parameter and adjust.
5145 (discard_my_continuations): New.
5146 (add_inferior_continuation): Simplify.
5147 (do_all_inferior_continuations): Reimplement on top
5148 do_my_continuations.
5149 (discard_all_inferior_continuations): Simplify.
5150 (add_continuation): Simplify.
5151 (do_all_continuations_ptid): Simplify.
5152 (discard_all_continuations_thread_callback): Simplify.
5153 (add_intermediate_continuation): Simplify.
5154 (discard_all_intermediate_continuations_thread_callback):
5155 Simplify.
5156
5157 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5158
5159 * utils.c (struct continuation, add_continuation)
5160 (add_inferior_continuation)
5161 (do_all_inferior_continuations, discard_all_inferior_continuations)
5162 (restore_thread_cleanup, do_all_continuations_ptid)
5163 (do_all_continuations_thread_callback)
5164 (do_all_continuations_thread, do_all_continuations)
5165 (discard_all_continuations_thread_callback)
5166 (discard_all_continuations_thread, discard_all_continuations)
5167 (add_intermediate_continuation)
5168 (do_all_intermediate_continuations_thread_callback)
5169 (do_all_intermediate_continuations_thread)
5170 (do_all_intermediate_continuations)
5171 (discard_all_intermediate_continuations_thread_callback)
5172 (discard_all_intermediate_continuations_thread)
5173 (discard_all_intermediate_continuations): Move to ...
5174 * continuations.c: ... this new file, and adjust to no longer
5175 implement continuations on top of cleanups.
5176 * Makefile.in (SFILES): Add continuations.c.
5177 (COMMON_OBS): Add continuations.o.
5178
5179 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5180
5181 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5182 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5183 Internal error on invalid values.
5184 * reverse.c: Don't handle EXEC_ERROR.
5185 * mi/mi-main.c: Don't handle EXEC_ERROR.
5186
5187 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5188
5189 * record.c: Include event-loop.h, inf-loop.h.
5190 (record_beneath_to_async): New global.
5191 (tmp_to_async): New global.
5192 (record_async_inferior_event_token): New global.
5193 (record_open_1): Don't error out if async is enabled.
5194 (record_open): Handle to_async. Create an async event source in
5195 the event loop.
5196 (record_close): Delete the async event source.
5197 (record_resumed): New global.
5198 (record_execution_dir): New global.
5199 (record_resume, record_core_resume): Set them. Register the
5200 target on the event loop.
5201 (record_wait): Rename to ...
5202 (record_wait_1): ... this. Add more debug output. Handle
5203 TARGET_WNOHANG, and the target beneath returning
5204 TARGET_WAITKIND_IGNORE.
5205 (record_wait): Reimplement on top of record_wait_1.
5206 (record_async_mask_value): New global.
5207 (record_async, record_async_mask, record_can_async_p)
5208 (record_is_async_p, record_execution_direction): New functions.
5209 (init_record_ops, init_record_core_ops): Install new methods.
5210 * infrun.c (fetch_inferior_event): Temporarily switch the global
5211 execution direction to the direction the target was going.
5212 (execution_direction): Change type to int.
5213 * target.c (default_execution_direction): New function.
5214 (update_current_target): Inherit and de_fault
5215 to_execution_direction.
5216 * target.h (struct target_ops) <to_execution_direction>: New
5217 field.
5218 (target_execution_direction): New macro.
5219 * inferior.h (execution_direction): Change type to int.
5220
5221 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5222
5223 * infcall.c (call_function_by_hand): Don't allow calling functions
5224 in reverse execution mode.
5225
5226 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5227
5228 * infcmd.c (finish_command): Allow async finish in reverse.
5229
5230 2011-05-26 Yao Qi <yao@codesourcery.com>
5231
5232 * gdb_thread_db.h: Delete. Move to ...
5233 * common/gdb_thread_db.h: ... here.
5234
5235 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5236
5237 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5238 function's entry point instead of a manually managed momentary
5239 breakpoint, and only ever issue one proceed call.
5240 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5241 doing a reverse-finish, switch to stepi mode, to do another step.
5242 (insert_step_resume_breakpoint_at_sal): Make public.
5243 (normal_stop): No need to save function value return registers if
5244 going reverse.
5245 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5246
5247 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5248
5249 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5250 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5251 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5252 at the end.
5253 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5254 step-resume breakpoints.
5255 (print_it_typical): Handle bp_hp_step_resume.
5256 (bpstat_what): Ditto.
5257 (bptype_string): Ditto.
5258 (print_one_breakpoint_location): Ditto.
5259 (allocate_bp_location): Ditto.
5260 (mention): Ditto.
5261 (breakpoint_re_set_one): Ditto.
5262 * infrun.c (handle_inferior_event): Adjust. Split
5263 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5264 BPSTAT_WHAT_HP_STEP_RESUME.
5265 (insert_step_resume_breakpoint_at_sal): Rename to ...
5266 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5267 parameter. Handle it.
5268 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5269 insert_step_resume_breakpoint_at_sal_1.
5270 (insert_step_resume_breakpoint_at_frame): Rename to ...
5271 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5272 set a high-priority step-resume breakpoint.
5273 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5274 (insert_step_resume_breakpoint_at_caller): Ditto.
5275
5276 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5277
5278 * breakpoint.c (iterate_over_related_breakpoints): New.
5279 (do_map_delete_breakpoint): New.
5280 (delete_command): Pass do_map_delete_breakpoint to
5281 map_breakpoint_numbers.
5282 (do_disable_breakpoint): New.
5283 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5284 breakpoints.
5285 (do_enable_breakpoint): Rename to ...
5286 (enable_breakpoint_disp): ... this.
5287 (enable_breakpoint): Adjust.
5288 (do_enable_breakpoint): New.
5289 (enable_once_breakpoint): Delete.
5290 (do_map_enable_breakpoint): New.
5291 (do_map_enable_once_breakpoint): New.
5292 (enable_once_command, enable_delete_command)
5293 (delete_trace_command): Iterate over the breakpoint's related
5294 breakpoints.
5295
5296 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5297
5298 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5299 for ALPHA_ZERO_REGNUM.
5300 (alpha_supply_int_regs): Explicitly supply zero as the value for
5301 ALPHA_ZERO_REGNUM in the register cache.
5302 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5303
5304 2011-05-26 Yao Qi <yao@codesourcery.com>
5305
5306 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5307
5308 2011-05-26 Tristan Gingold <gingold@adacore.com>
5309
5310 * symfile.h (struct dwarf2_section_names): New type.
5311 (struct dwarf2_debug_sections): New type.
5312 (dwarf2_has_info): Add parameter.
5313 * dwarf2read.c (dwarf2_elf_names): New variable.
5314 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5315 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5316 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5317 (dwarf2_has_info): Add names parameter. Pass names
5318 to dwarf2_locate_sections.
5319 (section_is_p): Rewrite using the names parameter.
5320 (dwarf2_locate_sections): Use section names from the names parameter.
5321 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5322 * elfread.c (read_psyms): Ditto.
5323 * machoread.c (macho_symfile_read): Ditto.
5324
5325 2011-05-25 Andreas Schwab <schwab@redhat.com>
5326
5327 PR gdb/8677
5328 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5329
5330 2011-05-24 Keith Seitz <keiths@redhat.com>
5331
5332 PR breakpoint/12803
5333 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5334 (decode_compound): Unconditionally call keep_name_info.
5335
5336 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5337
5338 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5339 scope, clear its command list.
5340 (map_breakpoint_numbers): Don't walk the related breakpoints list
5341 of each breakpoint.
5342
5343 2011-05-24 Tom Tromey <tromey@redhat.com>
5344
5345 * MAINTAINERS: Move Jim Blandy to past maintainers.
5346
5347 2011-05-24 Tristan Gingold <gingold@adacore.com>
5348
5349 * symfile.h (enum dwarf2_section_enum): New type.
5350 (dwarf2_get_section_info): New prototype.
5351 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5352 section_name by sect. Use a switch to select the info.
5353 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5354 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5355
5356 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5357
5358 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5359 shared library event breakpoint if there's no execution.
5360
5361 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5362
5363 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5364 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5365
5366 2011-05-23 Tom Tromey <tromey@redhat.com>
5367
5368 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5369 NULL.
5370
5371 2011-05-23 Doug Evans <dje@google.com>
5372
5373 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5374 entry for RuntimeError to doc string.
5375
5376 2011-05-23 Jerome Guitton <guitton@adacore.com>
5377
5378 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5379 sequence for probing loops.
5380
5381 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5382
5383 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5384 comment.
5385
5386 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5387
5388 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5389 zero as the value for %g0 in the register cache.
5390 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5391 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5392
5393 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5394
5395 * infrun.c (proceed): Set previous_inferior_ptid here.
5396 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5397 inferior_ptid, not null_ptid.
5398 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5399 (fetch_inferior_event): Nor here.
5400
5401 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5402
5403 * inf-loop.c (inferior_event_handler): Only output a message if
5404 verbose.
5405
5406 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5407
5408 * MAINTAINERS: Update my e-mail address.
5409
5410 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5411
5412 * infrun.c (proceed): Switch the inferior event loop to
5413 INF_EXEC_COMPLETE if the target refused to resume from a
5414 vfork/fork.
5415
5416 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5417
5418 * infcmd.c: Include "inf-loop.h".
5419 (step_once): When stepping into an inline subroutine, pretend the
5420 target has run. If the target can async, switch the inferior
5421 event loop to INF_EXEC_COMPLETE.
5422 * inferior.h (user_visible_resume_ptid): Declare.
5423 * infrun.c (user_visible_resume_ptid): New function, factored out
5424 from `resume'.
5425 (resume): Use it.
5426 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5427 that the current thread is running. Merge async and sync
5428 branches.
5429
5430 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5431
5432 * infcmd.c (step_1): Simplify synchronous case.
5433
5434 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5435
5436 * tracepoint.c: Include exceptions.h.
5437 (TFILE_PID): Move higher in file.
5438 (tfile_open): Delay pushing the tfile target until we're assured
5439 the tfile header is present in the file. Wrap reading the initial
5440 newline-terminated lines in TRY_CATCH. Pop the target if the
5441 initial setup failed. Add the tfile's thread immediately
5442 aftwards, before any non-essential setup. Don't skip
5443 post_create_inferior if there are no traceframes present in the
5444 file.
5445 (tfile_close): Remove redundant check for null before xfree call.
5446 (tfile_thread_alive): New function.
5447 (init_tfile_ops): Register it as to_thread_alive callback.
5448
5449 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5450
5451 * tracepoint.c (tfile_open): Delete #if 0'd code.
5452
5453 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5454
5455 Fix -readnow for -gdwarf-4 unused type units.
5456 * dwarf2read.c (struct signatured_type): Remove the field offset.
5457 (create_signatured_type_table_from_index): Remove its initialization.
5458 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5459 instead. Add a complaint call.
5460 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5461 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5462 (lookup_signatured_type_at_offset, read_signatured_type)
5463 (write_one_signatured_type): Update the field for per_cu.
5464
5465 2011-05-19 Tom Tromey <tromey@redhat.com>
5466
5467 * python/py-inferior.c (python_inferior_exit): Use
5468 target_gdbarch.
5469 (python_on_resume): Likewise.
5470
5471 2011-05-19 Matt Rice <ratmice@gmail.com>
5472
5473 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5474
5475 2011-05-19 Hui Zhu <teawater@gmail.com>
5476
5477 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5478
5479 2011-05-19 Hui Zhu <teawater@gmail.com>
5480
5481 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5482
5483 2011-05-18 Tom Tromey <tromey@redhat.com>
5484
5485 * dwarf2read.c (dwarf2_add_field): Constify.
5486 * value.c (value_static_field): Constify.
5487 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5488 Now const.
5489 * ax-gdb.c (gen_static_field): Constify
5490
5491 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5492
5493 * linux-nat.c (kill_callback): Use SIGKILL first.
5494
5495 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5496
5497 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5498
5499 2011-05-18 Tom Tromey <tromey@redhat.com>
5500
5501 * value.c (value_fn_field): Constify.
5502 * symtab.c (gdb_mangle_name): Constify.
5503 * stabsread.c (update_method_name_from_physname): Make 'physname'
5504 argument const.
5505 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5506 const. Use explicit fputc_filtered loop.
5507 (pascal_type_print_base): Constify.
5508 * p-lang.h (pascal_type_print_method_args): Update.
5509 * linespec.c (add_matching_methods): Constify.
5510 (add_constructors): Likewise.
5511 * jv-typeprint.c (java_type_print_base): Constify.
5512 * gdbtypes.h (struct cplus_struct_type)
5513 <fn_fieldlist.fn_field.physname>: Now const.
5514 * dwarf2read.c (compute_delayed_physnames): Constify.
5515 (dwarf2_add_member_fn): Likewise.
5516 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5517
5518 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5519
5520 * infrun.c (resume): Mention which is the current thread, and its
5521 current PC in debug output.
5522 (prepare_to_proceed): Mention the thread switching in debug
5523 output.
5524
5525 2011-05-18 Tom Tromey <tromey@redhat.com>
5526
5527 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5528 path check. Use xmalloc and cleanups.
5529 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5530
5531 2011-05-17 Tom Tromey <tromey@redhat.com>
5532
5533 * cp-valprint.c (cp_print_value_fields): Catch errors from
5534 value_static_field.
5535
5536 2011-05-17 Tom Tromey <tromey@redhat.com>
5537
5538 * dwarf2read.c (dwarf2_get_die_type): Call
5539 get_die_type_at_offset.
5540 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5541 get_base_type function.
5542
5543 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5544
5545 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5546 trap_expected.
5547
5548 2011-05-16 Doug Evans <dje@google.com>
5549
5550 * python/py-auto-load.c (source_section_scripts): Mention objfile
5551 name in warning.
5552
5553 2011-05-15 Doug Evans <dje@google.com>
5554
5555 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5556 (try_thread_db_load_from_pdir): Call it. If unable to find
5557 libthread_db in directory of libpthread, see if we're looking at
5558 the separate-debug-info copy.
5559
5560 * python/py-autoload.c (print_script): Print "Missing" instead of
5561 "No" for missing scripts.
5562 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5563
5564 2011-05-13 Doug Evans <dje@google.com>
5565
5566 * ui-file.c (stdio_file_write_async_safe): Add comment.
5567
5568 2011-05-14 Hui Zhu <teawater@gmail.com>
5569
5570 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5571
5572 2011-05-13 Doug Evans <dje@google.com>
5573
5574 Support $pdir and $sdir in libthread-db-search-path.
5575 * NEWS: Mention $sdir,$pdir.
5576 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5577 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5578 (try_thread_db_load_from_sdir): New function.
5579 (try_thread_db_load_from_dir): New function.
5580 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5581 system directories if search of libthread-db-search-path fails,
5582 that is now done via $sdir.
5583 (has_libpthread): New function.
5584 (thread_db_load): Remove search for libthread_db in directory of
5585 libpthread, that is now done via $pdir.
5586
5587 * NEWS: Mention "info auto-load-scripts".
5588 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5589 script_not_found_warning_printed.
5590 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5591 all callers updated. Initialize script_not_found_warning_printed.
5592 (get_auto_load_pspace_data_for_loading): New function.
5593 (maybe_add_script): New function.
5594 (source_section_scripts): Simplify. Only print one warning regardless
5595 of the number of auto-load scripts not found.
5596 (clear_section_scripts): Clear script_not_found_warning_printed.
5597 (auto_load_objfile_script): Record script in hash table.
5598 (count_matching_scripts): New function.
5599 (maybe_print_script): Renamed from maybe_print_section_script, all
5600 callers updated. Rewrite to use ui_out_*.
5601 (info_auto_load_scripts): Renamed from
5602 maintenance_print_section_scripts, all callers updated.
5603 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5604 renamed as "info auto-load-scripts".
5605
5606 2011-05-13 Tom Tromey <tromey@redhat.com>
5607
5608 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5609 (read_sleb128): Likewise.
5610
5611 2011-05-13 Tom Tromey <tromey@redhat.com>
5612
5613 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5614 offset display.
5615
5616 2011-05-13 Doug Evans <dje@google.com>
5617
5618 * linux-nat.c (debug_linux_nat_async): Delete.
5619 Replace all references to use debug_linux_nat instead.
5620 (show_debug_linux_nat_async): Delete.
5621 (sigchld_handler): Call ui_file_write_async_safe instead of
5622 fprintf_unfiltered.
5623 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5624 * ui-file.c (struct ui_file): New member to_write_async_safe.
5625 (null_file_write_async_safe): New function.
5626 (ui_file_write_async_safe): New function.
5627 (set_ui_file_write_async_safe): New function.
5628 (ui_file_new): Initialize to_write_async_safe.
5629 (stdio_file_write_async_safe): New function.
5630 (struct stdio_file): New member fd.
5631 (stdio_file_new): Initialize to_write_async_safe, fd.
5632 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5633 fileno.
5634 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5635 (set_ui_file_write_async_safe): Declare.
5636 (ui_file_write_async_safe): Declare.
5637
5638 2011-05-13 Tom Tromey <tromey@redhat.com>
5639
5640 * utils.c (do_value_free): New function.
5641 (make_cleanup_value_free): Likewise.
5642 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5643 freeing correctly.
5644 (dwarf2_loc_desc_needs_frame): Call
5645 make_cleanup_value_free_to_mark.
5646 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5647 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5648 value_free_to_mark.
5649 (new_dwarf_expr_context): Don't call value_mark.
5650 * dwarf2-frame.c (execute_stack_op): Call
5651 make_cleanup_value_free_to_mark.
5652 * defs.h (make_cleanup_value_free): Declare.
5653
5654 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5655
5656 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5657 prepare_execute_command.
5658 * top.c (prepare_execute_command): Return cleanup.
5659 (execute_command): Use cleanup from prepare_execute_command.
5660 * top.h (prepare_execute_command): Change prototype to return
5661 cleanup.
5662 * defs.h (struct value): Add opaque declaration.
5663 (make_cleanup_value_free_to_mark): Add prototype.
5664 * utils.c (do_value_free_to_mark): New function.
5665 (make_cleanup_value_free_to_mark): Likewise.
5666
5667 2011-05-12 Tom Tromey <tromey@redhat.com>
5668
5669 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5670 cast left-hand-side to unsigned.
5671
5672 2011-05-12 Tom Tromey <tromey@redhat.com>
5673
5674 PR gdb/12617:
5675 * value.h (value_from_contents): Declare.
5676 * value.c (value_from_contents): New function.
5677 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5678 (dwarf2_get_die_type): New function.
5679 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5680 (allocate_piece_closure): Acquire reference to values.
5681 (read_pieced_value): Update for value-based expressions.
5682 (write_pieced_value): Likewise.
5683 (free_pieced_value_closure): Call value_free as needed.
5684 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5685 Update for value-based expressions.
5686 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5687 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5688 <get_base_type>: New field.
5689 (struct dwarf_expr_piece) <v.value>: Change type.
5690 <v.regno>: New field.
5691 (struct dwarf_expr_context) <mark>: New field.
5692 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5693 (dwarf_expr_pop, dwarf_expr_push): Remove.
5694 (dwarf_expr_push_address): Declare.
5695 * dwarf2expr.c (dwarf_arch_cookie): New global.
5696 (struct dwarf_gdbarch_types): New.
5697 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5698 functions.
5699 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5700 static.
5701 (dwarf_expr_push_address): New function.
5702 (dwarf_expr_pop): Now static.
5703 (dwarf_expr_fetch): Change return type.
5704 (dwarf_require_integral): New function.
5705 (dwarf_expr_fetch): Simplify.
5706 (add_piece): Update.
5707 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5708 functions.
5709 (execute_stack_op) <sign_ext>: Remove.
5710 Use values for DWARF stack.
5711 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5712 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5713 New cases.
5714 (_initialize_dwarf2expr): New function.
5715 (add_piece): Update.
5716 (new_dwarf_expr_context): Set new field.
5717 (free_dwarf_expr_context): Call value_free_to_mark.
5718 * dwarf2-frame.c (no_base_type): New function.
5719 (execute_stack_op): Set get_base_type field. Update.
5720
5721 2011-05-12 Tom Tromey <tromey@redhat.com>
5722
5723 * dwarf2read.c (read_common_block): Fix formatting.
5724
5725 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5726
5727 * breakpoint.c (disable_breakpoint): Disable all locations
5728 associated with a tracepoint on target if a trace experiment is
5729 running.
5730 (disable_command): Disable a specific tracepoint location on target if
5731 a trace experiment is running.
5732 (do_enable_breakpoint): Enable all locations associated with a
5733 tracepoint on target if a trace experiment is running.
5734 (enable_command) Enable a specific tracepoint location on target if a
5735 trace experiment is running.
5736 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5737 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5738 to_disable_tracepoint.
5739 * target.h: Add declaration of struct bp_location.
5740 (struct target_ops): Add new functions
5741 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5742 to_disable_tracepoint to target operations.
5743 (target_supports_enable_disable_tracepoint): New macro.
5744 (target_enable_tracepoint): New macro.
5745 (target_disable_tracepoint): New macro.
5746 * remote.c (struct remote_state): Add new field.
5747 (remote_enable_disable_tracepoint_feature): New.
5748 (remote_protocol_features): Add new entry.
5749 (remote_supports_enable_disable_tracepoint): New.
5750 (remote_enable_tracepoint): New.
5751 (remote_disable_tracepoint): New.
5752 (init_remote_ops): Add remote_enable_tracepoint,
5753 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5754 to remote operations.
5755 * tracepoint.c (start_tracing): Allow tracing to start without any
5756 tracepoints enabled with just a warning if they can be re-enabled
5757 later.
5758 * NEWS: Add news item for the new behaviour of the enable and disable
5759 GDB commands when applied to tracepoints.
5760 Add news items for the new remote packets QTEnable and QTDisable.
5761
5762 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5763
5764 * config.in: Regenerate.
5765 * configure: Regenerate.
5766 * configure.ac <--with-system-readline> (for readline_echoing_p):
5767 Remove the test.
5768 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5769 (tui_old_rl_echoing_p): ... here.
5770 (tui_setup_io): Rename extern declaration readline_echoing_p to
5771 _rl_echoing_p. Adjust assignments for the both renames.
5772
5773 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5774
5775 * symtab.c (lookup_symtab): Run cleanup before returning.
5776
5777 2011-05-11 Tom Tromey <tromey@redhat.com>
5778
5779 * dwarf2read.c (handle_data_member_location): New function.
5780 (dwarf2_add_field): Use it.
5781 (read_common_block): Likewise.
5782
5783 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5784
5785 Make addrs->SECTINDEX always defined.
5786 * symfile.c (relative_addr_info_to_section_offsets): Check for
5787 SECTINDEX -1, not for zero ADDR.
5788 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5789 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5790 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5791 on its validity.
5792
5793 2011-05-10 Doug Evans <dje@google.com>
5794
5795 * linux-thread-db.c: Whitespace cleanup.
5796 (try_thread_db_load_1): Fix comment.
5797
5798 * linux-thread-db.c (set_libthread_db_search_path): New function.
5799 (_initialize_thread_db): Add setter for libthread-db-search-path.
5800
5801 2011-05-09 Doug Evans <dje@google.com>
5802
5803 * NEWS: Mention --with-iconv-bin.
5804 * configure.ac: New option --with-iconv-bin.
5805 * configure: Regenerate.
5806 * config.in: Regenerate.
5807 * defs.h (relocate_gdb_directory): Declare.
5808 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5809 removed progname parameter, and exported. All callers updated.
5810 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5811
5812 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5813 adding missing call to restore_child_signals_mask.
5814
5815 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5816
5817 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5818 parameter.
5819 * infrun.c (proceed, start_remote): Adjust.
5820 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5821 and adjust to not handle it.
5822 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5823 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5824 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5825 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5826 * windows-nat.c (do_initial_windows_stuff): Adjust.
5827 * infcmd.c (attach_command): Adjust.
5828 (notice_new_inferior): Adjust.
5829
5830 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5831
5832 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5833 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5834 * spu-tdep.c (op_selb): Use correct value.
5835
5836 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5837
5838 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5839 "parent" parameter to symbol_file_add_from_bfd call.
5840
5841 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5842 Thiago Jung Bauermann <bauerman@br.ibm.com>
5843
5844 Implement support for PowerPC BookE masked watchpoints.
5845 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5846 section.
5847 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5848 method. Initialize to NULL in all existing breakpoint_ops instances.
5849 (struct breakpoint) <hw_wp_mask>: New field.
5850 * breakpoint.c (is_masked_watchpoint): Add prototype.
5851 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5852 breakpoint's breakpoint_ops.works_in_software_mode if available.
5853 (watchpoints_triggered): Handle the case of a hardware masked
5854 watchpoint trigger.
5855 (watchpoint_check): Likewise.
5856 (works_in_software_mode_watchpoint): New function.
5857 (insert_masked_watchpoint, remove_masked_watchpoint)
5858 (resources_needed_masked_watchpoint)
5859 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5860 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5861 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5862 functions.
5863 (masked_watchpoint_breakpoint_ops): New structure.
5864 (watch_command_1): Check for the existence of the `mask' parameter.
5865 Set b->ops according to the type of hardware watchpoint being created.
5866 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5867 (ppc_linux_remove_mask_watchpoint)
5868 (ppc_linux_masked_watch_num_registers): New functions.
5869 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5870 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5871 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5872 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5873 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5874 (target_masked_watch_num_registers): New functions.
5875 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5876 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5877 methods.
5878 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5879 (target_masked_watch_num_registers): Add prototypes.
5880
5881 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5882
5883 PR 12573
5884 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5885 (producer_is_gcc_ge_4_0): New function.
5886 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5887 symtab->language code.
5888 (var_decode_location): Set cu->has_loclist.
5889 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5890 skip. Intialize force_skip from locations_valid. Move the prologue
5891 skipping code into two passes.
5892 * symtab.h (struct symtab): Make the primary field a bitfield. New
5893 field locations_valid.
5894
5895 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5896
5897 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5898 (classify_inner_name): Call cp_lookup_nested_type with
5899 yylval.tsym.type.
5900 * cp-namespace.c (cp_lookup_nested_type): New variable
5901 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5902 type_name_no_tag_or_error with saved_parent_type.
5903 * dwarf2read.c (load_partial_dies): Read in any children of
5904 DW_TAG_typedef with complaint in such case.
5905 * gdbtypes.c (type_name_no_tag_or_error): New function.
5906 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5907 * valops.c (destructor_name_p): New comment for parameter type. Remove
5908 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5909 * value.h (destructor_name_p): Remove type const.
5910
5911 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5912
5913 * symtab.c (compare_symbol_name): New function.
5914 (completion_list_add_name, expand_partial_symbol_name): Call it,
5915 remove the variable ncmp.
5916 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5917 gdb_assert it.
5918
5919 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5920
5921 Demote to sw watchpoint only in update_watchpoint.
5922 * breakpoint.c (update_watchpoint): Change between software and
5923 hardware watchpoint for all kinds of watchpoints, not just
5924 read/write ones. Determine b->exact value here instead of
5925 in watch_command_1. Error out if there are not enough resources
5926 for a read or access hardware watchpoint.
5927 (watch_command_1): Remove logic of checking whether there are
5928 enough resources available, since update_watchpoint will do that
5929 work now. Don't set b->exact here. Catch exceptions thrown by
5930 update_watchpoint and delete the watchpoint.
5931 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5932 Use target_exact_watchpoints instead.
5933 (delete_breakpoint): Notify observers only if deleted watchpoint
5934 has a breakpoint number assigned to it.
5935
5936 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5937
5938 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5939
5940 2011-05-05 Jerome Guitton <guitton@adacore.com>
5941
5942 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5943 New functions.
5944 (i386_stack_tramp_frame_unwind): New static global.
5945 (i386_match_pattern): New function, extracted from i386_match_insn.
5946 (i386_match_insn): Use i386_match_pattern.
5947 (i386_match_insn_block): New function.
5948 (i386_tramp_chain_in_reg_insns)
5949 (i386_tramp_chain_on_stack_insns): New static variables.
5950 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5951 of unwinders.
5952
5953 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5954
5955 * configure.host (xscale*): Don't handle target.
5956 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5957 handle targets.
5958
5959 2011-05-04 Yao Qi <yao@codesourcery.com>
5960
5961 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5962
5963 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5964
5965 Revert:
5966 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5967 | * elfread.c (elf_symtab_read): Stop memory leak.
5968
5969 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5970
5971 * nto-tdep.c (nto_target): Replace deprecated call to
5972 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5973
5974 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5975
5976 Fix false GCC warning.
5977 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5978
5979 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5980
5981 * breakpoint.c (update_watchpoint): Move code to change
5982 the enable state of breakpoint from here ...
5983 (do_enable_breakpoint): ... to here.
5984
5985 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5986
5987 * valprint.c (val_print_array_elements): Fixed poor performance
5988 of printing very large arrays with repeat_count_threshold set
5989 to unlimited. New comment.
5990
5991 2011-04-29 Tom Tromey <tromey@redhat.com>
5992
5993 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5994 (mi_parse): Likewise.
5995 * breakpoint.c (break_range_command): Use sizeof char*, not
5996 char**.
5997 (create_breakpoint): Likewise.
5998 (parse_breakpoint_sals): Likewise.
5999
6000 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6001
6002 * linux-nat.c (linux_child_remove_fork_catchpoint)
6003 (linux_child_remove_vfork_catchpoint)
6004 (linux_child_remove_exec_catchpoint): New functions.
6005 (linux_target_install_ops): Install them.
6006
6007 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6008
6009 PR mi/12531
6010
6011 * varobj.c (install_default_visualizer): Do not install a
6012 visualizer if the varobj is CPLUS_FAKE_CHILD.
6013 (construct_visualizer): Likewise.
6014
6015 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6016
6017 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6018 case insensitive comparison.
6019
6020 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6021
6022 * infrun.c (proceed): Revert previous change.
6023 (resume): Instead, handle the case of signal delivery while stepping
6024 off a breakpoint location here, and only if software single-stepping
6025 is used. Handle nested signals.
6026
6027 2011-04-28 Yao Qi <yao@codesourcery.com>
6028
6029 * arm-tdep.c (copy_unmodified): Rename to ...
6030 (arm_copy_unmodified): .. this. New.
6031 (copy_preload): Move common part to ...
6032 (install_preload): .. this. New.
6033 (arm_copy_preload): New.
6034 (copy_preload_reg): Move common part to ...
6035 (install_preload_reg): ... this. New.
6036 (arm_copy_preload_reg): New.
6037 (copy_b_bl_blx): Move common part to ...
6038 (install_b_bl_blx): .. this. New.
6039 (arm_copy_b_bl_blx): New.
6040 (copy_bx_blx_reg): Move common part to ...
6041 (install_bx_blx_reg): ... this. New.
6042 (arm_copy_bx_blx_reg): New.
6043 (copy_alu_reg): Move common part to ...
6044 (install_alu_reg): ... this. New.
6045 (arm_copy_alu_reg): New.
6046 (copy_alu_shifted_reg): Move common part to ...
6047 (install_alu_shifted_reg): ... this. New.
6048 (copy_ldr_str_ldrb_strb): Move common part to ...
6049 (install_ldr_str_ldrb_strb): ... this. New.
6050 (arm_copy_ldr_str_ldrb_strb): New.
6051 (copy_copro_load_store): Move some common part to ...
6052 (install_copy_copro_load_store): ... this. New.
6053 (arm_copy_copro_load_store): New.
6054 (copy_svc): Delete.
6055 (arm_copy_svc): Renamed from copy_svc.
6056 (copy_undef): Delete.
6057 (arm_copy_undef): Renamed from copy_undef.
6058 (decode_ext_reg_ld_st): Delete.
6059 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6060 (decode_svc_copro): Delete.
6061 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6062 (copy_copro_load_store, copy_alu_imm): update callers.
6063 (copy_extra_ld_st, copy_block_xfer): Likewise.
6064 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6065 (decode_miscellaneous, decode_dp_misc): Likewise.
6066 (decode_ld_st_word_ubyte, decode_media): Likewise.
6067 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6068 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6069 (decode_unconditional, decode_miscellaneous): Likewise.
6070 (decode_media, decode_b_bl_ldmstm): Likewise.
6071 (arm_process_displaced_insn): Likewise..
6072 (decode_misc_memhint_neon): Delete.
6073 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6074 (decode_miscellaneous): Delete.
6075 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6076 (decode_dp_misc): Delete.
6077 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6078 (decode_ld_st_word_ubyte): Delete.
6079 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6080 (decode_media): Delete.
6081 (arm_decode_media): Renamed from decode_media.
6082 (decode_b_bl_ldmstm): Delete.
6083 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6084 (decode_ext_reg_ld_st): Delete.
6085 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6086 (decode_unconditional): Delete.
6087 (arm_decode_unconditional): Renamed from decode_unconditional.
6088
6089 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6090
6091 Case insensitive lookups implementation.
6092 * dwarf2read.c: Include ctype.h.
6093 (struct mapped_index): New field version.
6094 (mapped_index_string_hash): New parameter index_version. New comment
6095 for it. Call tolower appropriately.
6096 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6097 Choose the right index version for mapped_index_string_hash.
6098 (dwarf2_read_index): Support also the index version 5. Initialize the
6099 new struct mapped_index field version.
6100 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6101 (find_slot): Explain the version needs. Pass INT_MAX for the new
6102 parameter.
6103 (write_psymtabs_to_index): Produce version 5.
6104 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6105 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6106 * psymtab.c (lookup_partial_symbol): Find the
6107 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6108 entries.
6109 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6110 NAME lowercasing.
6111 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6112 (completion_list_add_name): New variable ncmp, initialize it, use it.
6113 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6114 * utils.c (strcmp_iw): Support case_sensitive_off.
6115 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6116 New function comment part. New variables saved_string1,
6117 saved_string2 and case_pass. Add a proper second pass.
6118
6119 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6120
6121 Replace re_comp/re_exec by regcomp/regexec.
6122 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6123 (search_symbols_name_matches): Use them, use regexec.
6124 (search_symbols): New variable retval_chain, adjust the use of
6125 old_chain against it. Replace re_comp by regcomp. Use the new struct
6126 search_symbols_data fields, use regexec instead of re_exec.
6127
6128 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6129
6130 Format the code for the next patch.
6131 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6132 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6133 New variables c1 and c2.
6134
6135 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6136
6137 * infrun.c (proceed): Do not single-step into signal delivery
6138 when stepping off a breakpoint location.
6139 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6140 (insert_step_resume_breakpoint_at_caller): Likewise.
6141 (insert_step_resume_breakpoint_at_sal): Likewise.
6142 (insert_longjmp_resume_breakpoint): Likewise.
6143
6144 2011-04-27 Yao Qi <yao@codesourcery.com>
6145
6146 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6147
6148 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6149
6150 * procfs.c (procfs_pass_signals): Fix advance declaration.
6151
6152 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6153
6154 * target.h (struct target_ops): Remove to_notice_signals;
6155 add to_pass_signals.
6156 (target_notice_signals): Remove.
6157 (target_pass_signals): Add prototype.
6158 * target.c (update_current_target): Remove to_notice_signals;
6159 mention to_pass_signals.
6160 (target_pass_signals): New function.
6161 (debug_to_notice_signals): Remove.
6162 (setup_target_debug): Do not install debug_to_notice_signals.
6163
6164 * infrun.c (signal_pass): New global.
6165 (resume): Call target_pass_signals.
6166 (handle_inferior_event): Report all signals while stepping over
6167 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6168 are re-inserted when stepping over a signal handler.
6169 (signal_cache_update): New function.
6170 (signal_stop_update): Call it.
6171 (signal_print_update): Likewise.
6172 (signal_pass_update): Likewise.
6173 (handle_command): Call signal_cache_update and target_pass_signals
6174 instead of target_notice_signals.
6175 (_initialize_infrun): Initialize signal_pass.
6176
6177 * linux-nat.c (pass_mask): New global.
6178 (linux_nat_pass_signals): New function.
6179 (linux_nat_create_inferior): Report all signals initially.
6180 (linux_nat_attach): Likewise.
6181 (linux_nat_resume): Use pass_mask to decide whether to directly
6182 handle an inferior signal.
6183 (linux_nat_wait_1): Likewise.
6184 (linux_nat_add_target): Install to_pass_signals callback.
6185
6186 * nto-procfs.c (notice_signals): Remove.
6187 (procfs_resume): Do not call notice_signals.
6188 (procfs_notice_signals): Remove.
6189 (procfs_pass_signals): New function.
6190 (init_procfs_ops): Install to_pass_signals callback instead of
6191 to_notice_signals callback.
6192 (_initialize_procfs): Report all signals initially.
6193
6194 * procfs.c (procfs_notice_signals): Remove.
6195 (procfs_pass_signals): New function.
6196 (procfs_target): Install to_pass_signals callback instead of
6197 to_notice_signals callback.
6198 (register_gdb_signals): Remove.
6199 (procfs_debug_inferior): Report all signals initially.
6200 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6201
6202 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6203 parameters; use them instead of calling signal_..._state routines.
6204 (remote_notice_signals): Remove.
6205 (remote_start_remote): Report all signals initially.
6206 (remote_resume): Do not call remote_pass_signals.
6207 (_initialize_remote): Install to_pass_signals callback instead of
6208 to_notice_signals callback.
6209
6210 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6211
6212 * breakpoint.c (user_settable_breakpoint): Delete.
6213 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6214 (delete_command): Check user_breakpoint_p instead of looking at
6215 the breakpoint's type.
6216 (disable_command): Ditto.
6217 (enable_command): Ditto.
6218 (delete_trace_command): Use user_breakpoint_p instead of looking
6219 at the breakpoint number directly. When checking if there are
6220 user visible tracepoints, in order to know whether to ask the user
6221 for confirmation, check whether the breakpoint is actually a
6222 tracepoint.
6223
6224 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6225
6226 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6227 compilation.
6228
6229 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6230
6231 MI breakpoint notifications.
6232
6233 * annotate.c (breakpoint_changed): Adjust parameter type.
6234 * breakpoint.c (set_breakpoint_condition): Adjust to change
6235 in breakpoint_modified type.
6236 (breakpoint_set_commands): Likewise.
6237 (do_map_commands_command): Likewise.
6238 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6239 changed after bumping hit count.
6240 (bpstat_stop_status): Likewise.
6241 (print_one_breakpoint_location): Don't wrap in tuple here.
6242 (print_one_breakpoint): Always print individual locations.
6243 For locations, use unnamed tuple.
6244 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6245 has changed.
6246 (create_catchpoint, create_syscall_event_catchpoint): Call
6247 breakpoint_created obsever.
6248 (mention): Don't call breakpoint_created observer.
6249 (create_breakpoint_sal): Call breakpoint_created observer.
6250 (create_breakpoint, watch_command_1): Likewise.
6251 (create_ada_exception_breakpoint): Likewise.
6252 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6253 (locations_are_equal): New.
6254 (update_breakpoint_locations): If locations were changed, notify.
6255 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6256 Call breakpoint_modified observer.
6257
6258 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6259 (mi_cmd_break_insert): Don't set observers for modify and delete.
6260 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6261 (mi_breakpoint_created, mi_breakpoint_deleted)
6262 (mi_breakpoint_modified): New.
6263 (mi_interpreter_init): Hook the above.
6264 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6265 while -break-* commands are executing.
6266 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6267 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6268 (mi_redirect): New.
6269 (mi_ui_out_impl): Hook in mi_redirect.
6270 (mi_field_skip): True to the name, skip the field, don't output
6271 a field with an empty value.
6272
6273 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6274 (gdbpy_breakpoint_deleted): Adjust.
6275 * tui/tui-hooks.c (tui_event_create_breakpoint)
6276 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6277
6278 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6279
6280 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6281 (procfs_remove_hw_watchpoint): Likewise.
6282
6283 2011-04-26 Michael Walle <michael@walle.cc>
6284
6285 * remote.c (remote_start_remote): Ack packet after sending the
6286 interrupt sequence.
6287
6288 2011-04-26 Yao Qi <yao@codesourcery.com>
6289
6290 * linux-nat.c: Move common macros to ...
6291 Include linux-ptrace.h.
6292 * common/linux-ptrace.h: ... here. New.
6293
6294 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6295
6296 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6297 !objfile_has_partial_symbols. New comment.
6298 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6299 SYM_READ_PSYMBOLS is not present. Extend the comment.
6300 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6301
6302 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6303
6304 * defs.h (ENUM_BITFIELD): Remove.
6305
6306 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6307 Eli Zaretskii <eliz@gnu.org>
6308
6309 * NEWS: Document the new gdbserver --once option.
6310
6311 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6312
6313 * MAINTAINERS: Update my email address.
6314
6315 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6316
6317 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6318 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6319 function call if __STDC_ISO_10646__ macro is defined.
6320 (intermediate_encoding): New prototype.
6321 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6322 to generate compile time error for unsupported gdb_wchar_t size.
6323 (ENDIAN_SUFFIX): New macro.
6324 (intermediate_encoding): New function.
6325
6326 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 * ada-lang.c (struct add_partial_datum): Update the comment for
6329 expand_partial_symbol_name.
6330 (ada_add_partial_symbol_completions): Rename to ...
6331 (ada_expand_partial_symbol_name): ... here, change return type, update
6332 function comment, call symbol_completion_match instead of
6333 symbol_completion_add.
6334 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6335 and ada_expand_partial_symbol_name.
6336 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6337 FILE_MATCHER.
6338 (dw2_map_symbol_names): Remove.
6339 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6340 * psymtab.c (map_symbol_names_psymtab): Remove.
6341 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6342 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6343 order.
6344 (psym_functions): Unlist map_symbol_names_psymtab.
6345 (map_partial_symbol_names): Rename to ...
6346 (expand_partial_symbol_names): ... here, change the FUN type, call
6347 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6348 * psymtab.h (map_partial_symbol_names): Rename to ...
6349 (expand_partial_symbol_names): ... here, change the FUN type.
6350 * symfile.h (struct quick_symbol_functions): Update the description of
6351 expand_symtabs_matching. Remove map_symbol_names.
6352 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6353 (struct add_name_data): Update the comment for
6354 expand_partial_symbol_name.
6355 (add_partial_symbol_name): Rename to ...
6356 (expand_partial_symbol_name): ... here. Replace
6357 completion_list_add_name call by strncmp.
6358 (default_make_symbol_completion_list_break_on): Use now
6359 expand_partial_symbol_names and expand_partial_symbol_name.
6360 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6361
6362 2011-04-20 Tom Tromey <tromey@redhat.com>
6363
6364 * dwarf2read.c (save_gdb_index_command): Replace format
6365 documentation with a pointer to the manual.
6366
6367 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6368
6369 * regcache.c: Include remote.h.
6370 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6371 (regcache_dump): Handle regcache_dump_remote.
6372 (maintenance_print_remote_registers): New function.
6373 (_initialize_regcache): Install "maint print remote-registers"
6374 command.
6375 * remote.c (map_regcache_remote_table): New function, factored out
6376 from ...
6377 (init_remote_state): ... here.
6378 (remote_register_number_and_offset): New.
6379 * remote.h (remote_register_number_and_offset): Declare.
6380
6381 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6382
6383 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6384 null_ptid, assume and allow a NULL address space, instead of
6385 asking the target for the ptid's address space.
6386 * infrun.c (ptid_is_pid): Remove assertion.
6387
6388 2011-04-19 Tom Tromey <tromey@redhat.com>
6389
6390 * windows-tdep.c (windows_xfer_shared_library):
6391 * windows-nat.c (get_module_name, windows_make_so):
6392 * v850-tdep.c (v850_handle_pushm):
6393 * utils.c (null_cleanup, gdb_realpath):
6394 * ui-out.c (get_next_header):
6395 * tracepoint.c (clear_traceframe_info):
6396 * symtab.c (lookup_symtab):
6397 * serial.h (struct serial_ops):
6398 * mipsread.c (read_alphacoff_dynamic_symtab):
6399 * infcmd.c (print_return_value):
6400 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6401 * f-exp.y (parse_number):
6402 * exceptions.c (catch_exceptions):
6403 * dummy-frame.c (dummy_frame_this_id):
6404 * defs.h (struct cleanup):
6405 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6406 * arm-tdep.c (arm_push_dummy_call):
6407 * amd64-tdep.h (amd64_collect_xsave):
6408 * amd64-tdep.c (amd64_collect_xsave):
6409 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6410 * README (typing): Remove duplicate words.
6411 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6412 * infrun.c (siginfo_value_read): Fix typo.
6413 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6414 * top.c (source_line_number): Add comma.
6415
6416 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6417
6418 * thread.c (any_live_thread_of_process): Prioritize threads
6419 that are not executing.
6420 * gdbthread.h (any_live_thread_of_process): Update comment
6421 as per above change.
6422
6423 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6424
6425 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6426 (scan_xcoff_symtab): Likewise.
6427
6428 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6429
6430 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6431 inside if clause.
6432
6433 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6434 Pedro Alves <pedro@codesourcery.com>
6435
6436 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6437 variables to simplify code and avoid == operator at end of
6438 line as this is against GNU coding standards.
6439
6440 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6441
6442 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6443 lm_name to name_lm to avoid conflict with lm_name function.
6444
6445 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6446
6447 ARI fixes: Use only lowercase function name for static functions.
6448 * nto-tdep.c (LM_ADDR): Rename to...
6449 (lm_addr): New function name.
6450 (nto_relocate_section_addresses): Adapt to change above.
6451 * solib-sunos.c (LM_ADDR): Rename to...
6452 (lm_addr): New function name.
6453 (LM_NEXT): Rename to...
6454 (lm_next): New function name.
6455 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6456 function name changes above.
6457 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6458 (lm_addr_from_link_map): New function name.
6459 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6460 (has_lm_dynamic_from_link_map): New function name.
6461 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6462 (lm_dynamic_from_link_map): New function name.
6463 (LM_ADDR_CHECK): Rename to...
6464 (lm_addr_check): New function name.
6465 (LM_NEXT): Rename to...
6466 (lm_next): New function name.
6467 (LM_PREV): Rename to...
6468 (lm_prev): New function name.
6469 (LM_NAME): Rename to...
6470 (lm_name): New function name.
6471 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6472 (ignore_first_link_map_entry): New function name.
6473 (svr4_keep_data_in_core): Adapt to function name changes above.
6474 (svr4_current_sos): Likewise.
6475 (enable_break): Likewise.
6476 (svr4_relocate_section_addresses): Likewise.
6477
6478 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6479
6480 ARI cleanup.
6481 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6482 sprintf. Simplify code and avoid loosing memory.
6483 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6484 (call0_frame_cache): Remove && operator from end of line.
6485
6486 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6487
6488 Fix libraries displacement if they change whether they were prelinked.
6489 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6490 does not match. Comment why.
6491
6492 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6493
6494 * corelow.c: Include wrapper.h.
6495 (core_open): Call now gdb_target_find_new_threads.
6496 * wrapper.c: Include target.h.
6497 (gdb_target_find_new_threads): New.
6498 * wrapper.h (gdb_target_find_new_threads): New declaration.
6499
6500 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6501
6502 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6503 even if !TARGET_HAS_EXECUTION.
6504
6505 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6506
6507 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6508 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6509 bfd_get_synthetic_symtab.
6510 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6511 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6512 parameter parent, remove the call to add_separate_debug_objfile.
6513 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6514 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6515 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6516 parent, new comment for it, call add_separate_debug_objfile for it.
6517 (symbol_file_add_separate): Pass objfile as the parameter parent,
6518 remove the call to add_separate_debug_objfile.
6519 (symbol_file_add_from_bfd): New parameter parent, pass it.
6520 (symbol_file_add): Pass NULL to the new parameter parent.
6521 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6522
6523 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6524
6525 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6526 BSF_SYNTHETIC.
6527
6528 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 Fix Python access to inlined frames.
6531 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6532 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6533
6534 2011-04-15 Tom Tromey <tromey@redhat.com>
6535
6536 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6537
6538 2011-04-15 Gary Benson <gbenson@redhat.com>
6539
6540 * MAINTAINERS: Add myself to write-after-approval section.
6541
6542 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6543
6544 * remote-sim.c (sim_command_completer): New function.
6545 (_initialize_remote_sim): Set completer to sim_command_completer.
6546
6547 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6548
6549 * breakpoint.c (print_exception_catchpoint): Rename to ...
6550 (print_it_exception_catchpoint): ... this.
6551 (gnu_v3_exception_catchpoint_ops): Update with new name
6552 for print_it_exception_catchpoint.
6553
6554 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6555
6556 * MAINTAINERS: Add myself for write after approval privileges.
6557
6558 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6559
6560 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6561
6562 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6563
6564 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6565
6566 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6567
6568 * breakpoint.c (save_breakpoints): Verify whether
6569 breakpoint_ops.print_recreate is defined before calling it.
6570
6571 2011-04-11 Gary Benson <gbenson@redhat.com>
6572
6573 Fix failure with --enable-maintainer-mode.
6574 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6575
6576 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6577
6578 Code cleanup.
6579 * symtab.c (search_symbols): Reorder the KIND description in the
6580 function comment. Remove the unused 4th element of types, types2,
6581 types3 and types4. New gdb_assert on KIND.
6582 (symtab_symbol_info): Remove the unused 4th element of classnames.
6583 New gdb_assert on KIND.
6584 * symtab.h (enum search_domain): New warning in the enum comment.
6585 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6586 TYPES_DOMAIN.
6587
6588 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6589
6590 Fix crash of gdb save-index on a STABS file.
6591 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6592 PSYMTABS_ADDRMAP.
6593
6594 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6595
6596 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6597 * dwarf2read.c: Include ctype.h.
6598 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6599 functions.
6600 (dwarf2_add_field): Fix new_field->accessibility by calling
6601 dwarf2_default_access_attribute. Restructure setting accessibility
6602 vs. virtuality.
6603 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6604 is_private and is_protected by calling
6605 dwarf2_default_access_attribute.
6606
6607 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6608
6609 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6610 to the initialization.
6611
6612 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6613
6614 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6615 initalization.
6616
6617 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6618
6619 Remove support for old Cygwin 1.5 versions.
6620 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6621 function on old Cygwin version.
6622 * windows-nat.c: Remove cygwin version check and always define
6623 __USEWIDE for Cygwin compilation.
6624
6625 2011-04-07 Yao Qi <yao@codesourcery.com>
6626
6627 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6628 and TO.
6629 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6630 (arm_copy_svc): Remove parameters INSN and TO.
6631 (decode_svc_copro): Update caller.
6632 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6633 from function pointer `copy_svc_os'.
6634
6635 2011-04-07 Yao Qi <yao@codesourcery.com>
6636
6637 * arm-tdep.c (cleanup_branch): Set a correct return address in
6638 LR for ARM and Thumb.
6639
6640 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6641
6642 Code cleanup.
6643 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6644 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6645 in the function comment, a new note on values compatibility.
6646 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6647 * symtab.h (SYMBOL_HASH_NEXT): New.
6648
6649 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6650
6651 * ppc-linux-nat.c (check_condition): Add len output parameter.
6652 Set it based on the memory region referenced in the condition
6653 expression. Update all callers.
6654
6655 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6656
6657 Fix crash regression on systems featuring .gdb_index.
6658 * objfiles.c (free_objfile): Move the
6659 forget_cached_source_info_for_objfile call earlier. Comment it.
6660 Extend the comment for objfile_free_data.
6661
6662 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6663
6664 Fix regression of displaying the debug format.
6665 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6666 subfile.
6667
6668 2011-04-04 Tom Tromey <tromey@redhat.com>
6669
6670 * cli/cli-interp.c (struct captured_execute_command_args):
6671 Remove.
6672 (do_captured_execute_command): Remove.
6673 (safe_execute_command): Use TRY_CATCH.
6674 * cli/cli-script.c (struct wrapped_read_command_file_args):
6675 Remove.
6676 (wrapped_read_command_file): Remove.
6677 (script_from_file): Use TRY_CATCH.
6678 * exceptions.c (catch_exception): Remove.
6679 * exceptions.h (catch_exception): Remove.
6680 (deprecated_throw_reason): Update comment.
6681 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6682 argument to 'context'.
6683 (mi_execute_command): Use TRY_CATCH.
6684 * remote.c (struct start_remote_args): Remove.
6685 (remote_start_remote): Update; change arguments.
6686 (remote_open_1): Use TRY_CATCH.
6687
6688 2011-04-04 Tom Tromey <tromey@redhat.com>
6689
6690 * tracepoint.c (scope_info): Update.
6691 * symtab.c (decode_line_spec): Update.
6692 * python/python.c (gdbpy_decode_line): Update.
6693 * linespec.h (decode_line_1): Update.
6694 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6695 (decode_compound, find_method, symtab_from_filename)
6696 (decode_variable): Likewise.
6697 * cli/cli-cmds.c (edit_command): Update.
6698 (list_command): Update.
6699 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6700 argument.
6701 (create_breakpoint): Update.
6702 (until_break_command): Update.
6703 (addr_string_to_sals): Update.
6704 (decode_line_spec_1): Update.
6705
6706 2011-04-04 Tom Tromey <tromey@redhat.com>
6707
6708 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6709 (do_captured_parse_breakpoint): Remove.
6710 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6711 Use TRY_CATCH directly.
6712
6713 2011-04-04 Tom Tromey <tromey@redhat.com>
6714
6715 * symtab.h (free_symtab): Remove.
6716 (forget_cached_source_info_for_objfile): Declare.
6717 * symmisc.c (free_symtab): Remove.
6718 * source.c (forget_cached_source_info_for_objfile): New function.
6719 (forget_cached_source_info): Use it.
6720 * objfiles.c (free_objfile): Simplify check before calling
6721 clear_current_source_symtab_and_line. Call
6722 forget_cached_source_info_for_objfile.
6723
6724 2011-04-04 Tom Tromey <tromey@redhat.com>
6725
6726 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6727 (new_symtab): Don't set `free_code' on symtab.
6728 (new_linetable): Properly handle size==0.
6729 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6730 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6731 free_func.
6732 * jv-lang.c (struct jv_per_objfile_data): New.
6733 (jv_per_objfile_free): Free the data.
6734 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6735 (get_java_class_symtab): Set the `dict' field on the
6736 jv_per_objfile_data.
6737 (free_class_block): Remove.
6738 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6739 the symtab.
6740
6741 2011-04-04 Tom Tromey <tromey@redhat.com>
6742
6743 * symfile.c (reread_symbols): Update.
6744 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6745 field.
6746 * objfiles.c (allocate_objfile): Update.
6747 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6748 declare.
6749 * cp-namespace.c (lookup_symbol_file): Don't call
6750 lookup_possible_namespace_symbol.
6751 (initialize_namespace_symtab, get_possible_namespace_block)
6752 (free_namespace_block, cp_check_possible_namespace_symbols)
6753 (check_possible_namespace_symbols_loop)
6754 (check_one_possible_namespace_symbol)
6755 (lookup_possible_namespace_symbol): Remove.
6756 (maintenance_cplus_namespace): Replace with notice.
6757 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6758
6759 2011-04-04 Tom Tromey <tromey@redhat.com>
6760
6761 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6762 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6763 * symmisc.c (free_symtab): Don't free debugformat.
6764 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6765 (record_debugformat, record_producer): Document.
6766 * buildsym.c (end_symtab): Don't save debugformat and producer
6767 names on obstack.
6768 (end_symtab): Don't free debugformat and producer fields.
6769 (record_debugformat): Don't call xstrdup.
6770 (record_producer): Likewise.
6771
6772 2011-04-04 Tom Tromey <tromey@redhat.com>
6773
6774 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6775 (source_line_charpos, source_charpos_line): Remove.
6776
6777 2011-04-04 Tom Tromey <tromey@redhat.com>
6778
6779 * symtab.h (domain_enum): Split in two...
6780 (enum search_domain): New.
6781 (search_symbols): Update.
6782 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6783 redundant declarations.
6784 (search_symbols): Change 'kind' argument to search_domain.
6785 Update.
6786 (print_symbol_info): Likewise.
6787 (symtab_symbol_info): Likewise.
6788 * symfile.h (struct quick_symbol_functions)
6789 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6790 <expand_symtabs_matching>: Likewise.
6791 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6792 (expand_symtabs_matching_via_partial): Update.
6793 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6794 (dw2_expand_symtabs_for_function): Update.
6795 * block.h: Moved anonymous enum...
6796 * defs.h (enum block_enum): ... here. Now named.
6797
6798 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6799
6800 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6801 * version.in: Bump version to 7.3.50.20110403-cvs.
6802
6803 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6804
6805 * NEWS: Create a new section for the next release branch.
6806 Rename the section of the current branch, now that it has
6807 been cut.
6808
6809 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6810
6811 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6812 for "fpscr" in target description.
6813
6814 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6815
6816 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6817 initialize it. Delay HASH initialization. Strip the part after open
6818 parenthesis for languages with qualifiers. Call do_cleanups.
6819
6820 2011-04-01 Tom Tromey <tromey@redhat.com>
6821
6822 * utils.c (report_command_stats): Don't print `-' for negative
6823 number.
6824
6825 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6826
6827 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6828 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6829 typedefs.
6830
6831 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6832
6833 * breakpoint.h (bpdisp_text): Add declaration.
6834 * breakpoint.c (bpdisp_text): Make non-static.
6835 * ada-lang.c: #include "mi/mi-common.h".
6836 (print_it_exception): Rewrite to improve GDB/MI output.
6837
6838 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6839
6840 * arm-tdep.h (struct address_space): Add forward declaration.
6841
6842 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6843
6844 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6845 * arm-tdep.c (arm_override_mode): New global.
6846 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6847 execution mode heuristics.
6848 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6849 second single-step breakpoint if needed, using
6850 arm_insert_single_step_breakpoint.
6851 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6852 ARM execution mode, do not call thumb_get_next_pc_raw.
6853 (arm_get_next_pc): Encode execution mode in return value. Call
6854 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6855 (arm_insert_single_step_breakpoint): New function.
6856 (arm_software_single_step): Call it.
6857 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6858 argument to return execution mode of sigreturn target.
6859 (arm_linux_syscall_next_pc): Use it.
6860 (arm_linux_copy_svc): Update call.
6861 (arm_linux_software_single_step): Call
6862 arm_insert_single_step_breakpoint.
6863
6864 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6867 the comment.
6868
6869 2011-03-31 Tom Tromey <tromey@redhat.com>
6870
6871 * varobj.c (update_dynamic_varobj_children): Properly handle
6872 errors from iterator.
6873
6874 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6877 struct linkage name twice.
6878
6879 2011-03-31 Tom Tromey <tromey@redhat.com>
6880
6881 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6882 missing ">" to message.
6883
6884 2011-03-31 Tom Tromey <tromey@redhat.com>
6885
6886 * varobj.c (instantiate_pretty_printer): Remove duplicate
6887 'return'.
6888
6889 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6890
6891 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6892 if neither saved value nor register available (e.g. signal frame).
6893
6894 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6895
6896 * macroexp.c (expand): Avoid uninitialized variable
6897 compiler warning.
6898
6899 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6900
6901 * breakpoint.c (break_range_command): Fix typo in comment.
6902
6903 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6904 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6905
6906 Implement support for PowerPC BookE ranged breakpoints.
6907 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6908 * breakpoint.h (struct bp_target_info) <length>: New member
6909 variable.
6910 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6911 instead of struct breakpoint as argument, and also add ASPACE
6912 and BP_ADDR arguments. Update all callers.
6913 (struct breakpoint_ops) <print_one_detail>: New method.
6914 (struct breakpoint) <addr_string_range_end>: New member variable.
6915 * breakpoint.c (breakpoint_location_address_match): Add function
6916 prototype.
6917 (insert_bp_location): Set bl->target_info.length.
6918 (breakpoint_here_p): Call breakpoint_location_address_match.
6919 (moribund_breakpoint_here_p): Likewise.
6920 (regular_breakpoint_inserted_here_p): Likewise.
6921 (breakpoint_thread_match): Likewise.
6922 (bpstat_stop_status): Likewise.
6923 (bpstat_check_location): Move call to
6924 breakpoint_ops.breakpoint_hit to the top.
6925 (print_one_breakpoint_location): Call
6926 breakpoint_ops.print_one_detail if available.
6927 (breakpoint_address_match_range): New function.
6928 (breakpoint_location_address_match): Likewise.
6929 (breakpoint_locations_match): Compare the length field of the
6930 locations too.
6931 (hw_breakpoint_used_count): Count resources used by all locations
6932 in a breakpoint, and use breakpoint_ops.resources_needed if
6933 available.
6934 (breakpoint_hit_ranged_breakpoint): New function.
6935 (resources_needed_ranged_breakpoint): Likewise.
6936 (print_it_ranged_breakpoint): Likewise.
6937 (print_one_ranged_breakpoint): Likewise.
6938 (print_one_detail_ranged_breakpoint): Likewise.
6939 (print_mention_ranged_breakpoint): Likewise.
6940 (print_recreate_ranged_breakpoint): Likewise.
6941 (ranged_breakpoint_ops): New structure.
6942 (find_breakpoint_range_end): New function.
6943 (break_range_command): Likewise.
6944 (delete_breakpoint): Free addr_string_range_end.
6945 (update_breakpoint_locations): Add SALS_END argument. Update
6946 all callers. Calculate breakpoint length if a non-zero SALS_END
6947 is given. Call breakpoint_locations_match instead of
6948 breakpoint_address_match.
6949 (reset_breakpoint): Find SaL of the end of the range if B is a
6950 ranged breakpoint.
6951 (_initialize_breakpoint): Register break-range command.
6952 * defs.h (print_core_address): Add function prototype.
6953 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6954 function.
6955 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6956 (ppc_linux_remove_hw_breakpoint): Likewise.
6957 (_initialize_ppc_linux_nat): Initialize
6958 to_ranged_break_num_registers.
6959 * target.c (update_current_target): Add comment about
6960 to_ranged_break_num_registers.
6961 (target_ranged_break_num_registers): New function.
6962 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6963 New method.
6964 (target_ranged_break_num_registers): Add function prototype.
6965 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6966 * utils.c (print_core_address): ... here.
6967
6968 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6969
6970 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6971 variable compiler warning.
6972
6973 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6974
6975 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6976 code from here ...
6977 (re_set_breakpoint): ... to here ...
6978 (addr_string_to_sals): ... and here.
6979
6980 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6981
6982 * Makefile.in (SFILES): Add missing C sources.
6983 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6984 Add missing headers.
6985
6986 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6987
6988 * .gitignore: New file.
6989
6990 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6991
6992 * NEWS: Mention new cfi device simulation.
6993
6994 2011-03-29 Tom Tromey <tromey@redhat.com>
6995
6996 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6997 otherwise anonymous types.
6998 (dwarf2_name): Likewise.
6999 * valops.c (value_struct_elt_for_reference): Refine artificial
7000 type logic. Call error if j==-1.
7001
7002 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7003
7004 Fix false GCC warning.
7005 * infcall.c (find_function_addr): Initialize funaddr.
7006
7007 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7008
7009 Fix mingw compilation with --enable-targets=all.
7010 * remote-mips.c (gdb_usleep.h): Include header.
7011 (mips_enter_debug): Use gdb_usleep instead of sleep.
7012
7013 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7014
7015 Support resolution of STT_GNU_IFUNC via breakpoints.
7016 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7017 bp_gnu_ifunc_resolver_return.
7018 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7019 the loop. Support bp_gnu_ifunc_resolver and
7020 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7021 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7022 breakpoints.
7023 (bptype_string, print_one_breakpoint_location): Support
7024 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7025 (user_settable_breakpoint): Return true also for
7026 bp_gnu_ifunc_resolver.
7027 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7028 bp_gnu_ifunc_resolver_return.
7029 (set_breakpoint_location_function): New parameter explicit_loc,
7030 describe it. Call find_pc_partial_function_gnu_ifunc with new
7031 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7032 EXPLICIT_LOC is not set.
7033 (set_raw_breakpoint): Set EXPLICIT_LOC for
7034 set_breakpoint_location_function.
7035 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7036 set_breakpoint_location_function.
7037 (mention): Support bp_gnu_ifunc_resolver and
7038 bp_gnu_ifunc_resolver_return.
7039 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7040 set_breakpoint_location_function.
7041 (update_breakpoint_locations): Remove static.
7042 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7043 bp_gnu_ifunc_resolver_return.
7044 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7045 bp_gnu_ifunc_resolver_return.
7046 (update_breakpoint_locations): New declaration.
7047 * elfread.c: Include gdbthread.h and regcache.h.
7048 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7049 functions.
7050 (elf_gnu_ifunc_fns): Install them.
7051 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7052 (stub_gnu_ifunc_resolver_return_stop): New functions.
7053 (stub_gnu_ifunc_fns): Install them.
7054 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7055 and gnu_ifunc_resolver_return_stop.
7056 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7057
7058 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7059
7060 STT_GNU_IFUNC reader implementation.
7061 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7062 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7063 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7064 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7065 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7066 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7067 (elf_gnu_ifunc_resolve_addr): New.
7068 (elf_symfile_read): Call elf_rel_plt_read.
7069 (elf_gnu_ifunc_fns): New.
7070 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7071 Install elf_gnu_ifunc_fns.
7072 * infcall.c (find_function_return_type): New function.
7073 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7074 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7075 (stub_gnu_ifunc_resolve_name): New functions.
7076 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7077 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7078 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7079
7080 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7081
7082 Code cleanup for later STT_GNU_IFUNC support.
7083 * infcall.c (find_function_addr): Remove variable code, use explicit
7084 dereferences for it. Move VALUE_TYPE initialization later.
7085
7086 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7087
7088 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7089 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7090 (clear_pc_function_cache): Clear it.
7091 (find_pc_partial_function): Rename to ...
7092 (find_pc_partial_function_gnu_ifunc): ... this function. New
7093 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7094 (find_pc_partial_function): New wrapper for this function.
7095 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7096
7097 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7098
7099 GDB internal type support for STT_GNU_IFUNC.
7100 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7101 (elf_symtab_read): Set mst_text_gnu_ifunc for
7102 BSF_GNU_INDIRECT_FUNCTION.
7103 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7104 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7105 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7106 nodebug_got_plt_symbol.
7107 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7108 (TYPE_GNU_IFUNC): New.
7109 (struct main_type): New field flag_gnu_ifunc.
7110 (struct builtin_type): New field builtin_func_func.
7111 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7112 nodebug_got_plt_symbol.
7113 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7114 (in_gnu_ifunc_stub): New.
7115 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7116 mst_text_gnu_ifunc.
7117 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7118 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7119 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7120 in_gnu_ifunc_stub.
7121 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7122 * symtab.c (search_symbols): Likewise.
7123 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7124 and mst_slot_got_plt.
7125 (in_gnu_ifunc_stub): New declaration.
7126
7127 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7128
7129 Support a ring of related breakpoints.
7130 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7131 other functions, add gdb_assert.
7132 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7133 watchpoint_del_at_next_stop.
7134 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7135 (bpstat_stop_status): Handle ring in related_breakpoint.
7136 (set_raw_breakpoint_without_location): Initialize ring in
7137 related_breakpoint.
7138 (delete_breakpoint): Handle ring in related_breakpoint, use
7139 watchpoint_del_at_next_stop.
7140 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7141
7142 2011-03-28 Tom Tromey <tromey@redhat.com>
7143
7144 PR symtab/12441:
7145 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7146 with `language_minimal'.
7147
7148 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7149
7150 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7151 instead of checking for STT_ARM_TFUNC symbol type.
7152
7153 2011-03-25 Tom Tromey <tromey@redhat.com>
7154
7155 * linespec.c (symbol_found): Restore line-based result for
7156 non-LOC_LABEL symbols.
7157
7158 2011-03-25 Kai Tietz <ktietz@redhat.com>
7159
7160 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7161 instead of strcmp for comparison.
7162 (tui_source_is_displayed): Likewise.
7163 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7164
7165 2011-03-24 Mark Wielaard <mjw@redhat.com>
7166
7167 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7168 complaint.
7169 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7170 (find_partial_die_in_comp_unit): Likewise in comment.
7171 (read_attribute_value): Likewise.
7172 (lookup_die_type): Likewise.
7173 (dwarf_form_name): Likewise.
7174 (dump_die_shallow): Likewise.
7175 (follow_die_ref_or_sig): Likewise.
7176
7177 2011-03-24 Tom Tromey <tromey@redhat.com>
7178
7179 PR breakpoints/11816:
7180 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7181 (decode_compound): Update.
7182 (find_function_symbol): New function.
7183 (decode_dollar): Update.
7184 (decode_label): Add 'function_symbol' parameter. Handle
7185 function-relative labels.
7186 (decode_variable): Update.
7187 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7188 not its line. Set `special_display' and canonical name for
7189 labels.
7190
7191 2011-03-24 Tom Tromey <tromey@redhat.com>
7192
7193 * linespec.h (struct linespec_result) <special_display>: New
7194 field.
7195 * breakpoint.h (struct breakpoint) <display_canonical>: New
7196 field.
7197 * breakpoint.c (print_breakpoint_location): Respect
7198 display_canonical.
7199 (create_breakpoint_sal): Add 'display_canonical' parameter.
7200 (create_breakpoints_sal): Update.
7201 (create_breakpoint): Update.
7202
7203 2011-03-24 Tom Tromey <tromey@redhat.com>
7204
7205 * symtab.c (decode_line_spec): Update.
7206 * linespec.c (build_canonical_line_spec): Change type of
7207 'canonical'.
7208 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7209 (find_method, decode_all_digits, decode_dollar, decode_label)
7210 (symbol_found): Likewise.
7211 (init_linespec_result): New function.
7212 * breakpoint.c (struct captured_parse_breakpoint_args)
7213 <canonical_p>: New field, replaces addr_string_p.
7214 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7215 'addr_string'.
7216 (parse_breakpoint_sals): Likewise.
7217 (do_captured_parse_breakpoint): Update.
7218 (create_breakpoint): Use struct linespec_result.
7219 (until_break_command): Update.
7220 (breakpoint_re_set_one): Update.
7221 (decode_line_spec_1): Update.
7222 * linespec.h (struct linespec_result): New.
7223 (init_linespec_result): Declare.
7224
7225 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7226
7227 * regcache.c (regcache_raw_read): If the target didn't supply a
7228 given raw register, mark it as unavailable.
7229
7230 2011-03-23 Kai Tietz <ktietz@redhat.com>
7231
7232 * breakpoint.c (clear_command): Use filename_cmp
7233 instead of strcmp for comparison.
7234 * buildsym.c (watch_main_source_file_lossage): Likewise.
7235 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7236 checking just for slash.
7237 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7238 strrchr and filename_cmp instead of strcmp for filenames.
7239 (add_old_header_file): Use filename_cmp
7240 instead of strcmp for comparison.
7241 * exec.c (exec_set_section_address): Likewise.
7242 * macrotab.c (macro_lookup_inclusion): Likewise.
7243 (macro_lookup_inclusion): Likewise.
7244 * elfread.c (_initialize_elfread): Likewise.
7245 (elfstab_offset_sections): Likewise.
7246 (elfstab_offset_sections): Use lbasename instead of
7247 strrchr.
7248 * mdebugread.c (parse_partial_symbols): Likewise.
7249 (arse_partial_symbols): Use filename_(n)cmp instead of
7250 str(n)cmp for comparison.
7251 * minsyms.c (lookup_minimal_symbol): Likewise.
7252 * psymtab.c (read_psymtabs_with_filename): Likewise.
7253 * solib.c (solib_read_symbols): Likewise.
7254 (reload_shared_libraries_1): Likewise.
7255 * symmisc.c (maintenance_print_symbols): Likewise.
7256 * symfile.c (separate_debug_file_exists): Likewise.
7257 (reread_symbols): Likewise.
7258 (find_separate_debug_file_by_debuglink): Likewise.
7259 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7260 * source.c (add_path): Likewise.
7261 * symtab.c (filename_seen): Likewise.
7262 (file_matches): Likewise.
7263 (print_symbol_info): Likewise.
7264 (maybe_add_partial_symtab_filename): Likewise.
7265 (make_source_files_completion_list): Likewise.
7266 * xml-syscall.c (init_sysinfo): Likewise.
7267 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7268 IS_DIR_SEPARATOR for checking for trailing path separator.
7269
7270 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7271
7272 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7273 label abort_expression.
7274 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7275 DWARF_VALUE_OPTIMIZED_OUT.
7276
7277 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 Code cleanup.
7280 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7281 to linkage_name. Invert its value. Update the function comment.
7282 (c_type_print_varspec_suffix): Invert it at the caller.
7283 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7284
7285 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7286
7287 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7288 errors when reading the `stop_pc'.
7289 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7290 get_frame_pc.
7291
7292 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7293
7294 * NEWS: Document gdb.Write stream keyword.
7295
7296 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7297
7298 Revert:
7299 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7300 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7301 (dwarf2_add_field): Fix new_field->accessibility for
7302 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7303
7304 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7305
7306 PR python/12183
7307
7308 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7309 other error classes. Do not print stack trace.
7310
7311 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7312
7313 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7314 (dwarf2_add_field): Fix new_field->accessibility for
7315 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7316
7317 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7318
7319 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7320 encountering a load via a non-SP register.
7321
7322 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7323
7324 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7325 field in returned unwinder.
7326
7327 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7328
7329 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7330
7331 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7332
7333 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7334 of xmalloc.
7335
7336 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7337
7338 * frame.c (frame_unwind_register): Throw an error if unwinding the
7339 register failed.
7340 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7341 an unwind stop reason.
7342 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7343 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7344 UNWIND_UNAVAILABLE>: New.
7345 * inline-frame.c (inline_frame_unwind): Install
7346 default_frame_unwind_stop_reason.
7347 * frame-unwind.c: Include "exceptions.h".
7348 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7349 (default_frame_unwind_stop_reason): New.
7350 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7351 (default_frame_unwind_stop_reason): Declare.
7352 (struct frame_unwind) <stop_reason>: New function pointer.
7353
7354 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7355 * dwarf2-frame.c: Include exceptions.h.
7356 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7357 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7358 computing the CFA. If such an error was thrown, set
7359 unavailable_retaddr.
7360 (dwarf2_frame_unwind_stop_reason): New.
7361 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7362 unavailable.
7363 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7364 (dwarf2_signal_frame_unwind): Ditto.
7365
7366 * amd64-tdep.c: Include "exceptions.h".
7367 (struct amd64_frame_cache): New field "base_p".
7368 (amd64_init_frame_cache): Clear it.
7369 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7370 Avoid reading registers with functions that throw if the register
7371 is not necessary to compute the frame base.
7372 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7373 swallowing NOT_AVAILABLE_ERROR.
7374 (amd64_frame_unwind_stop_reason): New.
7375 (amd64_frame_this_id): Don't build a frame id if the frame base
7376 was unavailable.
7377 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7378 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7379 base_p if the frame base was computable.
7380 (amd64_sigtramp_frame_unwind_stop_reason): New.
7381 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7382 frame base was unavailable.
7383 (amd64_sigtramp_frame_unwind): Install
7384 amd64_sigtramp_frame_unwind_stop_reason.
7385 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7386 base_p if the frame base was computable.
7387 (amd64_epilogue_frame_unwind_stop_reason): New.
7388 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7389 frame base was unavailable.
7390 (amd64_epilogue_frame_unwind): Install
7391 amd64_epilogue_frame_unwind_stop_reason.
7392 * i386-tdep.c: Include "exceptions.h".
7393 (struct i386_frame_cache): New field "base_p".
7394 (i386_init_frame_cache): Clear it.
7395 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7396 Avoid reading registers with functions that throw if the register
7397 is not necessary to compute the frame base.
7398 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7399 swallowing NOT_AVAILABLE_ERROR.
7400 (i386_frame_unwind_stop_reason): New.
7401 (i386_frame_this_id): Don't build a frame id if the frame base was
7402 unavailable.
7403 (i386_frame_prev_register): Handle unavailable SP.
7404 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7405 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7406 base_p if the frame base was computable.
7407 (i386_epilogue_frame_unwind_stop_reason): New.
7408 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7409 base was unavailable.
7410 (i386_epilogue_frame_unwind): Install
7411 i386_epilogue_frame_unwind_stop_reason.
7412 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7413 base_p if the frame base was computable.
7414 (i386_sigtramp_frame_unwind_stop_reason): New.
7415 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7416 base was unavailable.
7417 (i386_sigtramp_frame_unwind): Install
7418 i386_sigtramp_frame_unwind_stop_reason.
7419 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7420 type's size, not the register's.
7421 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7422
7423 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7424 default_frame_unwind_stop_reason.
7425 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7426 (alpha_heuristic_frame_unwind): Ditto.
7427 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7428 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7429 * avr-tdep.c (avr_frame_unwind): Ditto.
7430 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7431 Ditto.
7432 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7433 * frv-tdep.c (frv_frame_unwind): Ditto.
7434 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7435 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7436 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7437 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7438 (hppa_stub_frame_unwind): Ditto.
7439 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7440 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7441 (ia64_libunwind_frame_unwind)
7442 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7443 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7444 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7445 * m32c-tdep.c (m32c_unwind): Ditto.
7446 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7447 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7448 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7449 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7450 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7451 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7452 * mep-tdep.c (mep_frame_unwind): Ditto.
7453 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7454 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7455 (mips_stub_frame_unwind): Ditto.
7456 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7457 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7458 * mt-tdep.c (mt_frame_unwind): Ditto.
7459 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7460 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7461 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7462 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7463 (s390_sigtramp_frame_unwind): Ditto.
7464 * score-tdep.c (score_prologue_unwind): Ditto.
7465 * sh-tdep.c (sh_frame_unwind): Ditto.
7466 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7467 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7468 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7469 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7470 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7471 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7472 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7473 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7474 (sparc64obsd_trapframe_unwind): Ditto.
7475 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7476 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7477 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7478 * v850-tdep.c (v850_frame_unwind): Ditto.
7479 * vax-tdep.c (vax_frame_unwind): Ditto.
7480 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7481 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7482 * xtensa-tdep.c (xtensa_unwind): Ditto.
7483
7484 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7485
7486 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7487 there's always a frame. Use get_frame_pc_if_available instead of
7488 get_frame_pc, and if there's no PC available, don't look up a
7489 symtab.
7490
7491 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7492
7493 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7494 unavailable PC.
7495
7496 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7497
7498 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7499 gracefully.
7500
7501 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7502
7503 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7504 * frame.c (frame_unwind_caller_pc_if_available): New.
7505 * stack.c (frame_info): Handle unavailable PC.
7506
7507 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7508
7509 * frame.c (frame_unwind_pc): Rename to ...
7510 (frame_unwind_pc_if_available): ... this. New `pc' output
7511 parameter. Change return type to int. Gracefully handle
7512 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7513 happened, or 1 otherwise.
7514 (frame_unwind_pc): Reimplement on top of
7515 frame_unwind_pc_if_available.
7516 (get_frame_func): Rename to ...
7517 (get_frame_func_if_available): New `pc' output parameter. Change
7518 return type to int. Gracefully handle the PC not being available.
7519 (get_frame_func): Reimplement on top of
7520 get_frame_func_if_available.
7521 (select_frame): Handle the PC being unavailable.
7522 (get_prev_frame): Handle the PC being unavailable.
7523 (get_frame_pc_if_available): New.
7524 (get_frame_address_in_block_if_available): New.
7525 (find_frame_sal): Handle the frame PC not being available.
7526 * frame.h (get_frame_pc_if_available): Declare.
7527 (get_frame_address_in_block_if_available): Declare.
7528 (get_frame_func_if_available): Declare.
7529 * stack.c (print_frame_info): Handle the PC being unavailable.
7530 (find_frame_funname): Ditto.
7531 (print_frame): Handle the PC being unavailable.
7532 (get_frame_language): Ditto.
7533 * blockframe.c (get_frame_block): Ditto.
7534 * macroscope.c (default_macro_scope): Ditto.
7535 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7536
7537 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7538
7539 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7540 NOT_AVAILABLE_ERROR when evaluating the location expression.
7541
7542 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7543
7544 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7545 returning that the register piece is unavailable/optimized out.
7546 (write_pieced_value): Handle get_frame_register_bytes returning
7547 that the register piece is unavailable/optimized out when doing a
7548 read-modify write of a bitfield.
7549 * findvar.c (value_from_register): Handle get_frame_register_bytes
7550 returning that the register piece is unavailable/optimized out.
7551 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7552 and `unavailablep'. Throw error on bad debug info. Use
7553 frame_register instead of frame_register_read, to fill in the new
7554 arguments.
7555 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7556 and `unavailablep'.
7557 * valops.c: (value_assign): Adjust, and handle
7558 get_frame_register_bytes failing.
7559 * spu-tdep.c: Include exceptions.h.
7560 (spu_software_single_step): Adjust, and handle
7561 get_frame_register_bytes failing.
7562 (spu_get_longjmp_target): Ditto.
7563 * gdbarch.sh (register_to_value): Change to return int. New
7564 parameters `optimizedp' and `unavailablep'.
7565 * gdbarch.h, gdbarch.c: Regenerate.
7566 * i386-tdep.c (i386_register_to_value): Adjust to new
7567 gdbarch_register_to_value interface.
7568 * i387-tdep.c (i387_register_to_value): Ditto.
7569 * i387-tdep.h (i387_register_to_value): Ditto.
7570 * alpha-tdep.c (alpha_register_to_value): Ditto.
7571 * ia64-tdep.c (ia64_register_to_value): Ditto.
7572 * m68k-tdep.c (m68k_register_to_value): Ditto.
7573 * mips-tdep.c (mips_register_to_value): Ditto.
7574 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7575
7576 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7577
7578 * findvar.c (value_of_register): Mark the value as unavailable, if
7579 the register is unavailable.
7580 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7581 (frame_register): New `unavailablep' parameter.
7582 (frame_register_read): Update comment.
7583 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7584 Set it if the register is unavailable. If the register is
7585 unavailable, clear the output buffer.
7586 (frame_register): New `unavailablep' parameter. Pass it down.
7587 (frame_unwind_register): Adjust.
7588 (put_frame_register): Adjust.
7589 (frame_register_read): Adjust. Also return false if the register
7590 is not available.
7591 (frame_register_unwind_location): Adjust.
7592 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7593 is unavailable, mark the value accordingly.
7594 * stack.c (frame_info): Handle unavailable registers.
7595
7596 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7597
7598 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7599 simplify, using regcache_cooked_read.
7600
7601 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7602
7603 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7604 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7605 (regcache_raw_read_unsigned, regcache_raw_read_part)
7606 (regcache_cooked_read, regcache_cooked_read_signed)
7607 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7608 (regcache_cooked_read_ftype): Change return to enum
7609 register_status.
7610 * regcache.c: Include exceptions.h
7611 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7612 (do_cooked_read): Change return to enum register_status. Always
7613 forward to regcache_cooked_read.
7614 (regcache_raw_read): Change return to enum register_status. If
7615 the register is not REG_VALID, memset the buffer. Return the
7616 register's status.
7617 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7618 return the register's status.
7619 (regcache_raw_read_unsigned): Ditto.
7620 (regcache_cooked_read): Change return to enum register_status.
7621 Assert that with read-only regcaches, the register's status must
7622 be known. If the regcache is read-only, and the register is not
7623 REG_VALID, memset the buffer. Return the register's status.
7624 (regcache_cooked_read_signed): Change return to enum
7625 register_status. Handle non-REG_VALID registers and return the
7626 register's status.
7627 (regcache_cooked_read_unsigned): Change return to enum
7628 register_status. Handle non-REG_VALID registers and return the
7629 register's status.
7630 (regcache_xfer_part, regcache_raw_read_part)
7631 (regcache_cooked_read_part): Change return to enum
7632 register_status. Return the register's status.
7633 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7634 unavailable.
7635 (regcache_dump): Handle unavailable cooked registers.
7636 * frame.c (do_frame_register_read): Adjust interface to match
7637 regcache_cooked_read_ftype.
7638 * gdbarch.sh (pseudo_register_read): Change return to enum
7639 register_status.
7640 * gdbarch.h, gdbarch.c: Regenerate.
7641
7642 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7643 register_status.
7644 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7645 register_status. If reading a raw register indicates the raw
7646 register is not valid, return the raw register's status,
7647 otherwise, return REG_VALID.
7648 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7649 register_status. Handle non-REG_VALID raw registers and return
7650 the register's status.
7651 * arm-tdep.c (arm_neon_quad_read)
7652 (arm_pseudo_read): Change return to enum register_status. Handle
7653 non-REG_VALID raw registers and return the register's status.
7654 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7655 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7656 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7657 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7658 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7659 register_status.
7660 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7661 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7662 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7663 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7664 (m32c_pseudo_register_read): Change return to enum
7665 register_status. Adjust.
7666 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7667 enum register_status. Return the register's status.
7668 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7669 register_status. Return the register's status.
7670 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7671 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7672 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7673 * rs6000-tdep.c (move_ev_register_func): New typedef.
7674 (e500_move_ev_register): Use it. Change return to enum
7675 register_status. Return the register's status.
7676 (do_regcache_raw_read): New function.
7677 (do_regcache_raw_write): New function.
7678 (e500_pseudo_register_read): Change return to enum
7679 register_status. Return the register's status. Use
7680 do_regcache_raw_read.
7681 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7682 (dfp_pseudo_register_read): Change return to enum register_status.
7683 Return the register's status.
7684 (vsx_pseudo_register_read): Ditto.
7685 (efpr_pseudo_register_read): Ditto.
7686 (rs6000_pseudo_register_read): Ditto.
7687 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7688 register_status. Return the register's status.
7689 * sh64-tdep.c (pseudo_register_read_portions): New function.
7690 (sh64_pseudo_register_read): Change return to enum
7691 register_status. Use pseudo_register_read_portions. Return the
7692 register's status.
7693 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7694 register_status. Return the register's status.
7695 * sh-tdep.c (pseudo_register_read_portions): New function.
7696 (sh_pseudo_register_read): Change return to enum register_status.
7697 Use pseudo_register_read_portions. Return the register's status.
7698 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7699 enum register_status. Return the register's status.
7700 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7701 * spu-tdep.c (spu_pseudo_register_read_spu)
7702 (spu_pseudo_register_read): Ditto.
7703 * xtensa-tdep.c (xtensa_register_read_masked)
7704 (xtensa_pseudo_register_read): Ditto.
7705 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7706
7707 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7708
7709 * python/py-value.c (valpy_getitem): Fix formatting of error function
7710 call.
7711
7712 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7713
7714 ARI fixes: Add missing internationalization markups throughout
7715 C source files.
7716 * darwin-nat-info.c: Ditto.
7717 * record.c: Ditto.
7718 * remote.c: Ditto.
7719 * mi/mi-main.c: Ditto.
7720
7721 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7722
7723 ARI fixes: Add missing internationalization markups throughout
7724 yacc files.
7725 * c-exp.y: Ditto.
7726 * cp-name-parser.y: Ditto.
7727 * f-exp.y: Ditto.
7728 * m2-exp.y: Ditto.
7729 * objc-exp.y: Ditto.
7730 * p-exp.y: Ditto.
7731
7732 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7733
7734 ARI fixes: Messages should have no trailing new lines.
7735 * darwin-nat.c (mach_check_error): Remove trailing new line from
7736 warning function call message.
7737 * record.c (bfdcore_read): Idem for error call.
7738
7739 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7740
7741 * common/signals.c (target_signal_from_host): Add _ markup to error
7742 function call message.
7743 (target_signal_to_host): Add _ markup and remove trailing new line
7744 from warning call message.
7745 (target_signal_from_command): Add _ markup to error function call
7746 message.
7747
7748 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7749
7750 PR python/12149
7751
7752 * python/python.c (gdbpy_write): Accept a stream argument and
7753 operate to the appropriate stream.
7754 (gdbpy_flush): Likewise.
7755 (_initialize_python): Add stream constants.
7756 (finish_python_initialization): Add GdbOutputErrorFile class.
7757
7758 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7759
7760 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7761
7762 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7763
7764 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7765 to store_signed_integer. Add debug message when relocating CALL
7766 instructions. Fix formatting of debug message.
7767 * i386-tdep.c (i386_relocate_instruction): Ditto.
7768
7769 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7770
7771 * target.h (struct target_ops): Remove to_lookup_symbol field.
7772 (target_lookup_symbol): Delete macro.
7773 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7774 (update_current_target, setup_target_debug): Remove handling
7775 of to_lookup_symbol target_ops field.
7776 * ada-tasks.c (get_known_tasks_addr): Remove use of
7777 target_lookup_symbol.
7778 * coffread.c (coff_symtab_read): Likewise.
7779 * dbxread.c (read_dbx_symtab): Ditto.
7780
7781 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7782
7783 PR gdb/12116:
7784 * configure.ac: Add getthrds declaration check.
7785 * configure, config.in: Regenerate.
7786 * aix-thread.c (getthrds): Declare only if not already declared
7787 in procinfo.h. More declaration out of get_signaled_thread to
7788 global scope.
7789
7790 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7791
7792 * python/py-symtab.c: Populate symtab_object_methods,
7793 sal_object_methods.
7794 (stpy_is_valid): New function.
7795 (salpy_is_valid): Ditto.
7796 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7797 (sympy_is_valid): New function.
7798 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7799 (objfpy_is_valid): New function.
7800 * python/py-inferior.c: Populate inferior_object_methods.
7801 (infpy_is_valid): New function.
7802 * python/py-infthread.c: Populate thread_object_methods.
7803 (thpy_is_valid): New function.
7804 * python/py-block.c: Declare block_object_methods. Populate. Declare
7805 block_iterator_object_methods. Populate.
7806 (blpy_is_valid): New function.
7807 (blpy_iter_is_valid): Ditto.
7808
7809 2011-03-16 Keith Seitz <keiths@redhat.com>
7810
7811 * linespec.c (find_methods): Canonicalize NAME before looking
7812 up the symbol.
7813 (name_end): New function.
7814 (keep_name_info): New function.
7815 (decode_line_1): Use keep_name_info.
7816 (decode_compound): Likewise.
7817 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7818 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7819
7820 PR c++/12273
7821 * linespec.c (locate_first_half): Keep overload information, too.
7822 (decode_compound): Use a string to represent break characters
7823 to escape the loop.
7824 If P points to a break character, do not increment it.
7825 For C++ and Java, keep overload information and relevant keywords.
7826 If we cannot find a symbol, search the minimal symbols.
7827
7828 PR c++/11734
7829 * linespec.c (decode_compound): Rename SAVED_ARG to
7830 THE_REAL_SAVED_ARG.
7831 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7832 single-quotes.
7833 Pass a valid block to lookup_symbol.
7834 (lookup_prefix_sym): Likewise.
7835 (find_method): Construct search name based on SYM_CLASS instead
7836 of SAVED_ARG.
7837 * psymtab.c (lookup_partial_symbol): Add language parameter.
7838 (lookup_symbol_aux_psymtabs): Likewise.
7839 Don't assume that the psymtab we found was the right one. Search
7840 for the desired symbol in the symtab to be certain.
7841 (psymtab_search_name): New function.
7842 (lookup_partial_symbol): Use psymtab_search_name.
7843 Add language parameter.
7844 (read_symtabs_for_function): Add language parameter and pass to
7845 lookup_partial_symbol.
7846 (find_symbol_file_from_partial): Likewise.
7847
7848 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7849
7850 PR gdb/12528
7851 * dwarf2read.c (noop_record_line): New function.
7852 (dwarf_decode_lines): Ignore line tables for GCd functions.
7853
7854 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7855
7856 Fix ARI warnings about new lines at the end of messages, which
7857 are unneeded as there is a new line added at the end of the message
7858 automatically.
7859 * darwin-nat.c (darwin_stop_inferior): Ditto.
7860 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7861 * dfp.c (decimal_to_number): Ditto.
7862 * exec.c (print_section_info): Ditto.
7863 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7864 * osdata.c (get_osdata): Ditto.
7865 * record.c (bfdcore_write): Ditto.
7866 * remote-mips.c (mips_readchar): Ditto.
7867 * remote.c (read_ptid): Ditto.
7868 * ser-mingw.c (ser_windows_raw): Ditto.
7869 * tracepoint.c (add_local_symbols): Ditto.
7870 * windows-nat.c (fake_create_process): Ditto.
7871
7872 2011-03-16 Tom Tromey <tromey@redhat.com>
7873
7874 * tracepoint.c (stop_tracing): Don't declare.
7875 * event-top.c (after_char_processing_hook): Add `(void)'.
7876
7877 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7878
7879 * NEWS: Add Parameter sub-classing description.
7880
7881 2011-03-16 Kai Tietz <ktietz@redhat.com>
7882
7883 * MAINTAINERS: Update my e-mail address.
7884
7885 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7886
7887 * MAINTAINERS: Add myself for write after approval privileges.
7888
7889 2011-03-15 Michael Snyder <msnyder@vmware.com>
7890
7891 * frame.c (find_frame_sal): Assert sym is not null.
7892
7893 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7894
7895 * objc-lang.c (selectors_info): Check strchr for null result.
7896
7897 * stabsread.c (define_symbol): Guard against bad stabstring input.
7898
7899 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7900
7901 Remove trailing spaces and tabulations from pascal language
7902 support sources.
7903 p-exp.y: Ditto.
7904 p-lang.c: Ditto.
7905 p-lang.h: Ditto.
7906 p-valprint.c: Ditto.
7907
7908 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7909
7910 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7911 than LOW. Comment it.
7912 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7913 HIGHPC not strictly higher than LOWPC.
7914
7915 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7916
7917 Fix formatting of function declarations returning a pointer in
7918 previous commit.
7919 * varobj.c (varobj_add_child): Ditto.
7920 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7921 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7922
7923 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7924
7925 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7926 for the "generic" vector ABI used with GCC 4.3 and later.
7927 (ppc64_sysv_abi_return_value): Likewise.
7928
7929 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7930
7931 * infcall.c (call_function_by_hand): Function return value is
7932 always a non_lval, even when using struct_return.
7933
7934 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7935
7936 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7937 (map_display_numbers): New.
7938 (do_delete_display): New.
7939 (undisplay_command): Use map_display_numbers.
7940 (do_enable_disable_display): New.
7941 (enable_disable_display_command): New function.
7942 (enable_display): Delete.
7943 (enable_display_command): New.
7944 (disable_display_command): Reimplement.
7945 (_initialize_printcmd): Adjust "enable display" command to use
7946 `enable_display_command' as callback.
7947
7948 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7949
7950 * NEWS: Add Python breakpoint 'stop' operation.
7951
7952 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7953
7954 * NEWS: Delete duplicate entry. Fix typo.
7955
7956 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7957
7958 Fix ARI warning about function names in first column.
7959 Put prototype declaration on same line as return type.
7960 * objc-exp.y: Ditto.
7961 * p-exp.y: Ditto.
7962 * python/py-stopevent.h: Ditto.
7963 For long function names, split parameters to
7964 allow function name on same line as return type.
7965 * solib-pa64.c: Ditto.
7966 * varobj.c: Ditto.
7967 * varobj.h: Ditto.
7968 For long function declaration, use single line.
7969 * hppa-tdep.h: Ditto.
7970 * inferior.h: Ditto.
7971
7972 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7973
7974 * python/python.h: Declare gdbpy_should_stop and
7975 gdbpy_breakpoint_has_py_cond.
7976 * python/python.c: Add python.h to includes. Remove python.h from
7977 HAVE_PYTHON definition
7978 (gdbpy_should_stop): New dummy function.
7979 (gdbpy_breakpoint_has_py_cond): New dummy function.
7980 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7981 sub-classing capabilities.
7982 (gdbpy_should_stop): New function.
7983 (gdbpy_breakpoint_has_py_cond): New function.
7984 (local_setattro): New function.
7985 * breakpoint.c (condition_command): Add check for Python 'stop'
7986 operation.
7987 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7988 operation function as part of stop/continue tests.
7989
7990 2011-03-14 Tom Tromey <tromey@redhat.com>
7991
7992 PR gdb/12576:
7993 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7994 (needs_frame_dwarf_call): Likewise.
7995
7996 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7997
7998 Fix ARI warning about functions without parameters that do not
7999 use (void).
8000 * breakpoint.c (all_tracepoints): Replace () by (void).
8001 * f-exp.y (match_string_literal): Ditto.
8002 (yylex): Ditto.
8003 * m2-exp.y (yylex): Ditto.
8004 * mep-tdep.c (current_me_module): Ditto.
8005 (current_options): Ditto.
8006 (current_cop_data_bus_width): Ditto.
8007 (current_cr_names): Ditto.
8008 (current_cr_is_float): Ditto.
8009 (current_ccr_names): Ditto.
8010 * objc-exp.y (yylex): Ditto.
8011 * p-exp.y (yylex): Ditto.
8012 * remote.c (send_interrupt_sequence): Ditto.
8013 * tracepoint.c (current_trace_status): Ditto.
8014 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8015 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8016
8017 2011-03-11 Michael Snyder <msnyder@vmware.com>
8018
8019 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8020 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8021 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8022 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8023 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8024
8025 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8026 (delete_async_event_handler): Ditto.
8027
8028 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8029
8030 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8031
8032 * top.c (set_verbose): Assert showcmd was found.
8033
8034 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8035
8036 * xtensa-tdep.c (warning_once): Correct style issues.
8037
8038 2011-03-11 Yao Qi <yao@codesourcery.com>
8039
8040 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8041
8042 2011-03-11 Andreas Schwab <schwab@redhat.com>
8043
8044 * common/aclocal.m4: Remove.
8045
8046 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8047
8048 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8049 (xtensa_write_register, xtensa_read_register): Likewise.
8050 (xtensa_hextochar): Removed.
8051 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8052
8053 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8054
8055 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8056 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8057 (xtensa_alloc_frame_cache): Add initialization for new fields.
8058 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8059 (warning_once): New function.
8060 (xtensa_insn_kind): New item c0opc_and.
8061 (call0_classify_opcode): Add the case for AND instruction.
8062 (call0_track_op): Change arguments. New local variable litbase.
8063 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8064 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8065 in the prologue.
8066 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8067 (call0_analyze_prologue): Update the comments. Change arguments.
8068 Add the variety of updates to handle extended prologues, which now can
8069 conduct dynamic stack adjustments.
8070 (call0_frame_cache): Likewise.
8071 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8072 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8073
8074 2011-03-10 Michael Snyder <msnyder@vmware.com>
8075
8076 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8077 (cmd_qtframe): Ditto.
8078 (cmd_qtbuffer): Ditto.
8079 (cmd_bigqtbuffer): Ditto.
8080
8081 2011-03-10 Tom Tromey <tromey@redhat.com>
8082
8083 * tracepoint.c (trace_actions_command): Update.
8084 * thread.c (thread_apply_command): Update.
8085 * reverse.c (delete_bookmark_command): Update.
8086 (bookmarks_info): Update.
8087 * printcmd.c (undisplay_command): Update.
8088 * memattr.c (mem_enable_command): Update.
8089 (mem_disable_command): Update.
8090 (mem_delete_command): Update.
8091 * inferior.c (detach_inferior_command): Update.
8092 (kill_inferior_command): Update.
8093 (remove_inferior_command): Update.
8094 * cli/cli-utils.h (struct get_number_or_range_state): New.
8095 (init_number_or_range): Declare.
8096 (get_number_or_range): Update.
8097 * cli/cli-utils.c (init_number_or_range): New function.
8098 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8099 static variables.
8100 (number_is_in_list): Update.
8101 * breakpoint.h (get_tracepoint_by_number): Update.
8102 * breakpoint.c (map_breakpoint_numbers): Update for change to
8103 get_number_or_range.
8104 (find_location_by_number): Use get_number, not
8105 get_number_or_range.
8106 (trace_pass_set_count): New function.
8107 (trace_pass_command): Update for change to get_number_or_range.
8108 Rework loop logic.
8109 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8110 'state' parameter.
8111
8112 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8113
8114 * python/py-param.c (add_setshow_generic): Add set/show callback
8115 parameters. Register Python object context.
8116 (get_show_value): New function.
8117 (get_set_value): New function.
8118 (call_doc_function): New function.
8119 (get_doc_string): Move behind get_show_value/get_set_value.
8120
8121 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8122
8123 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8124
8125 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8126
8127 * xtensa-tdep.c (xtensa_read_register): Add comment.
8128 (xtensa_write_register): Likewise.
8129 (xtensa_hextochar): Add comment and update to match coding conventions.
8130 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8131 (execute_l32e, execute_s32e, execute_code): Update comments.
8132 (xtensa_exception_handler_t): Update to match coding conventions.
8133 (xtensa_insn_kind): Likewise.
8134
8135 2011-03-09 Michael Snyder <msnyder@vmware.com>
8136
8137 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8138
8139 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8140
8141 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8142
8143 2011-03-09 Tom Tromey <tromey@redhat.com>
8144
8145 * thread.c (restore_selected_frame): Handle frame_level == -1.
8146 (make_cleanup_restore_current_thread): Use
8147 get_selected_frame_if_set.
8148 * frame.h (get_selected_frame_if_set): Declare.
8149 * frame.c (get_selected_frame_if_set): New function.
8150
8151 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8152
8153 * cli/cli-cmds.c (shell_escape): Use lbasename.
8154 * coffread.c (coff_start_symtab): Constify parameter.
8155 (complete_symtab): Constify `name' parameter.
8156 (coff_symtab_read): Constify `filestring' local.
8157 (coff_getfilename): Constify return and `result' local.
8158 Use lbasename.
8159 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8160 * linux-fork.c (info_checkpoints_command): Use lbasename.
8161 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8162 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8163 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8164 * procfs.c (procfs_make_note_section): Use lbasename.
8165 * tui/tui-io.c (printable_part): Constity return and parameter.
8166 Use lbasename.
8167 (print_filename): Constify parameters, and local `s'.
8168 (tui_rl_display_match_list): Constify local `temp'.
8169
8170 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8171
8172 Revert:
8173 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8174 Fix DWARF-3+ DW_AT_accessibility default assumption.
8175 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8176 cu->header.version >= 3.
8177
8178 2011-03-09 Yao Qi <yao@codesourcery.com>
8179
8180 * common/Makefile.in: Remove.
8181 * common/configure: Remove.
8182 * common/configure.ac: Remove.
8183
8184 2011-03-09 Yao Qi <yao@codesourcery.com>
8185
8186 Revert:
8187 2011-02-11 Yao Qi <yao@codesourcery.com>
8188
8189 * common/Makefile.in: Add copyright header.
8190
8191 2011-02-11 Yao Qi <yao@codesourcery.com>
8192
8193 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8194 libcommon.a.
8195 * configure.ac: Add common to sub dir.
8196 * configure: Regenerate.
8197
8198 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8199
8200 * xtensa-tdep.c (call0_ret): New function.
8201 (xtensa_skip_prologue): Speed up analysis.
8202
8203 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8204
8205 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8206 while executing MI command -data-list-changed-registers.
8207
8208 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8209
8210 * xtensa-tdep.c (xtensa_read_register): New function.
8211 (xtensa_write_register): New function.
8212 (xtensa_find_register_by_name): New function.
8213 (xtensa_windowed_frame_cache): Update comments in type description.
8214 (xtensa_frame_cache): Likewise.
8215 (xtensa_window_interrupt_insn): New function.
8216 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8217 (xtensa_insn_kind): Add new instructions.
8218 (rwx_special_register): New function.
8219 (call0_classify_opcode): Add new instructions to the analysis.
8220 (a0_saved, a7_saved, a11_saved): New variables.
8221 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8222 (execute_l32e): New function.
8223 (execute_s32e): New function.
8224 (xtensa_exception_handler_t): New type.
8225 (execute_code): New function.
8226 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8227 analysis for Xtensa Window Exception handlers.
8228
8229 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8230
8231 * xtensa-tdep.c (TX_PS): New.
8232 (windowing_enabled): Update to count for Call0 ABI.
8233 (xtensa_hextochar): New.
8234 (xtensa_init_reggroups): Make algorithm generic.
8235 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8236
8237 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8238
8239 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8240
8241 2011-03-08 Michael Snyder <msnyder@vmware.com>
8242
8243 * i386-tdep.c (i386_follow_jump): Check return value of
8244 target_read_memory.
8245 (i386_analyze_struct_return): Ditto.
8246 (i386_skip_probe): Ditto.
8247 (i386_match_insn): Ditto.
8248 (i386_skip_noop): Ditto.
8249 (i386_analyze_frame_setup): Ditto.
8250 (i386_analyze_register_saves): Ditto.
8251 (i386_skip_prologue): Ditto.
8252 (i386_skip_main_prologue): Ditto.
8253
8254 * target.c (read_whatever_is_readable): Fix memory leak.
8255
8256 * i386-tdep.c (i386_process_record): Document fall through.
8257
8258 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8259
8260 Fix DWARF-3+ DW_AT_accessibility default assumption.
8261 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8262 cu->header.version >= 3.
8263
8264 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8265
8266 * remote.c (remote_check_symbols): Skip if the target has no
8267 execution.
8268
8269 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8270
8271 * target.c (read_whatever_is_readable): Reformat comment,
8272 with a minor typo fix. Minor reformatting of the code.
8273
8274 2011-03-08 Yao Qi <yao@codesourcery.com>
8275
8276 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8277 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8278 Use cached result instead of calling displaced_in_arm_mode again.
8279 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8280 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8281 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8282 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8283 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8284 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8285 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8286 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8287 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8288 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8289 (arm_catch_kernel_helper_return): Likewise.
8290 * gdb/arm-tdep.h : Update function declarations.
8291
8292 2011-03-07 Michael Snyder <msnyder@vmware.com>
8293
8294 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8295
8296 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8297
8298 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8299
8300 * elfread.c (elf_symtab_read): Stop memory leak.
8301
8302 * main.c (captured_main): Fix memory leak.
8303
8304 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8305
8306 * ada-lang.c (compare_names): Call is_name_suffix with string1
8307 instead of string2.
8308
8309 2011-03-07 Tom Tromey <tromey@redhat.com>
8310
8311 * xcoffread.c (xcoff_sym_fns): Update.
8312 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8313 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8314 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8315 (symbol_file_add_with_addrs_or_offsets): Likewise.
8316 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8317 * somread.c (som_sym_fns): Update.
8318 * psymtab.h (require_partial_symbols): Declare.
8319 * psymtab.c (require_partial_symbols): New function.
8320 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8321 (ALL_OBJFILE_PSYMTABS): Undef.
8322 (ALL_PSYMTABS): Move from psympriv.h.
8323 (lookup_partial_symtab, find_pc_sect_psymtab)
8324 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8325 (find_last_source_symtab_from_partial)
8326 (forget_cached_source_info_partial)
8327 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8328 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8329 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8330 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8331 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8332 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8333 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8334 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8335 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8336 psymtabs.
8337 * mipsread.c (ecoff_sym_fns): Update.
8338 * machoread.c (macho_sym_fns): Update.
8339 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8340 (read_psyms): New function.
8341 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8342 (elf_sym_fns_lazy_psyms): New global.
8343 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8344 dwarf2_build_psymtabs.
8345 * dbxread.c (aout_sym_fns): Update.
8346 * coffread.c (coff_sym_fns): Update.
8347
8348 2011-03-07 Tom Tromey <tromey@redhat.com>
8349
8350 * infrun.c (print_exited_reason): Include inferior id and pid in
8351 message.
8352
8353 2011-03-07 Tom Tromey <tromey@redhat.com>
8354
8355 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8356 parameter.
8357 (target_has_execution_1): Update.
8358 (target_has_execution_current): Declare.
8359 (target_has_execution): Call target_has_execution_current.
8360 (default_child_has_execution): Update.
8361 * target.c (default_child_has_execution): Add 'the_ptid'
8362 parameter.
8363 (target_has_execution_1): Likewise.
8364 (target_has_execution_current): New function.
8365 (add_target): Update.
8366 (init_dummy_target): Update.
8367 * remote-m32r-sdi.c (m32r_has_execution): New function.
8368 (init_m32r_ops): Use it.
8369 * record.c (record_core_has_execution): Now static. Add
8370 'the_ptid' parameter.
8371 * inferior.c (have_live_inferiors): Don't save current thread.
8372 Use target_has_execution_1.
8373
8374 2011-03-07 Yao Qi <yao@codesourcery.com>
8375
8376 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8377
8378 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8379
8380 * elfread.c (elf_symtab_read): Minor reformatting.
8381
8382 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8383
8384 * objc-lang.c (selectors_info): Minor reformatting.
8385
8386 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8387
8388 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8389
8390 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8391 Michael Snyder <msnyder@vmware.com>
8392
8393 * ada-valprint.c (ada_val_print_array): Move the declaration of
8394 "byte_order" and "elttype" inside the block where these variables
8395 are actually used. Remove some special handling for the case
8396 where "elttype" and "eltlen" are null. Replace by a comment
8397 and a couple of assertion checks.
8398
8399 2011-03-05 Michael Snyder <msnyder@vmware.com>
8400
8401 * source.c (add_path): Replace semicolon at end of block.
8402 * dwarf2expr.c (execute_stack_op): Ditto.
8403
8404 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8405
8406 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8407 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8408 (bfin-*-*): Likewise.
8409
8410 2011-03-05 Michael Snyder <msnyder@vmware.com>
8411
8412 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8413 * mdebugread.c (parse_symbol): Ditto.
8414 * parse.c (parse_exp_in_context): Ditto.
8415 * source.c (add_path): Ditto.
8416 * utils.c (gnu_debuglink_crc32): Ditto.
8417 * varobj.c (variable_language): Ditto.
8418
8419 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8420
8421 2011-03-04 Michael Snyder <msnyder@vmware.com>
8422
8423 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8424
8425 * symfile.c (simple_overlay_update): Check for null return value
8426 from lookup_minimal_symbol.
8427
8428 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8429
8430 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8431
8432 * eval.c (parse_and_eval_address_1): Remove function.
8433 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8434 instead of parse_and_eval_address_1.
8435 * value.h (parse_and_eval_address_1): Remove prototype.
8436
8437 2011-03-04 Michael Snyder <msnyder@vmware.com>
8438
8439 * remote.c (putpkt_binary): Document that case stmt falls through.
8440
8441 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8442
8443 * breakpointc (print_it_typical): Move NULL check from here...
8444 (print_bp_stop_message): ... to here.
8445
8446 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8447
8448 * breakpoint.c (enable_command): Use break instead of continue,
8449 and fill in a missing break.
8450 (disable_command): Ditto.
8451
8452 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8453
8454 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8455 (terminal_save_ours): Remove misleading comment.
8456 (inflow_inferior_data_cleanup): Free ttystate.
8457 (inflow_inferior_exit): Likewise.
8458 (copy_terminal_info): Copy ttystate.
8459
8460 * serial.c (serial_copy_tty_state): New function.
8461 * serial.h (serial_copy_tty_state): Add prototype.
8462 (struct serial_ops): Add copy_tty_state callback.
8463 * ser-base.c (ser_base_copy_tty_state): New function.
8464 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8465 * ser-go32.c (dos_copy_tty_state): New function.
8466 (dos_ops): Install copy_tty_state callback.
8467 * ser-mingw.c (_initialize_ser_windows): Likewise.
8468 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8469 * ser-unix.c (hardwire_copy_tty_state): New function.
8470 (_initialize_ser_hardwire): Install it.
8471
8472 2011-03-04 Michael Snyder <msnyder@vmware.com>
8473
8474 * breakpoint.c (create_breakpoint): Add missing break statement.
8475
8476 Reverting this patch:
8477 * infcall.c (call_function_by_hand): Add break statements for lint.
8478
8479 Reverting this patch:
8480 * cli/cli-script.c (script_from_file): Add break for lint.
8481
8482 2011-03-04 Michael Snyder <msnyder@vmware.com>
8483
8484 * solib.c (reload_shared_libraries_1): Close memory leak.
8485
8486 2011-03-03 Tom Tromey <tromey@redhat.com>
8487
8488 PR gdb/12538:
8489 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8490 DW_STRING is NULL.
8491
8492 2011-03-03 Michael Snyder <msnyder@vmware.com>
8493
8494 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8495 fields of struct 'st' to zero.
8496
8497 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8498 sal.pspace before calling set_current_source_symtab_and_line.
8499
8500 2011-03-03 Yao Qi <yao@codesourcery.com>
8501
8502 * Makefile.in (configure-common): Remove. Let Makefile
8503 in dir common to rebuild itself.
8504 (common/Makefile): Likewise.
8505
8506 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8507
8508 * utils.c (parse_escape): Add i18n markup in error message.
8509
8510 2011-03-03 Yao Qi <yao@codesourcery.com>
8511
8512 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8513 ARM_PC_REGNUM.
8514 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8515 (displaced_write_reg, displaced_read_reg): Likewise.
8516 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8517 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8518 (cleanup_branch): Replace magic number 14 and 15 with
8519 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8520
8521 2011-03-02 Michael Snyder <msnyder@vmware.com>
8522
8523 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8524
8525 * cli/cli-script.c (script_from_file): Add break for lint.
8526
8527 * mdebugread.c (parse_partial_symbols): Fix indent.
8528
8529 * target-descriptions.c (tdesc_gdb_type): No need to call
8530 xstrdup, callee saves a copy.
8531
8532 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8533
8534 * infcall.c (call_function_by_hand): Add break statements for lint.
8535
8536 * utils.c (parse_escape): Escape the escape char.
8537
8538 * python/py-inferior.c (build_inferior_list): Error out if
8539 PyList_Append fails.
8540 (gdbpy_inferiors): Error out if build_inferior_list fails.
8541
8542 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8543 a function call.
8544
8545 * record.c (record_restore): Move printf to before error return.
8546
8547 2011-03-02 Yao Qi <yao@codesourcery.com>
8548
8549 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8550 is_thumb and insn_size.
8551 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8552 on both ARM and Thumb mode.
8553 (arm_process_displaced_insn): Set is_thumb and insn_size.
8554 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8555 (arm_displaced_step_fixup): Likewise.
8556
8557 2011-03-01 Michael Snyder <msnyder@vmware.com>
8558
8559 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8560
8561 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8562
8563 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8564
8565 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8566
8567 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8568 with xmalloc.
8569
8570 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8571 which shadows function parameter.
8572
8573 * tracepoint.c (create_tsv_from_upload): Superfluous call
8574 to xstrdup. Callee already calls xstrdup.
8575
8576 * linespec.c (decode_line_1): Remove unnecessary null check.
8577
8578 * tracepoint.c (scope_info): Fix mem leak, remove underused
8579 variable.
8580
8581 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8582 superfluous null check.
8583
8584 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8585 (value_of_builtin_frame_fp_reg): Ditto.
8586
8587 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8588
8589 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8590 be null.
8591
8592 * linespec.c (decode_line_1): Check for null before dereference.
8593
8594 * reverse.c (record_restore): Move null-check to before pointer
8595 dereference.
8596
8597 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8598
8599 * objc-lang.c (selectors_info): Add explanitory comment.
8600 (classes_info): Ditto.
8601
8602 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8603
8604 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8605 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8606 versions of the trampoline. Handle Thumb vs. ARM addresses.
8607 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8608 (arm_linux_init_abi): Install it.
8609 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8610 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8611
8612 2011-02-28 Michael Snyder <msnyder@vmware.com>
8613
8614 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8615 a little bigger, to avoid possibility of an overflow.
8616
8617 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8618 buffers a little bigger, to avoid possibility of an overflow.
8619
8620 * coffread.c (coff_getfilename): Add check to avoid overflow.
8621
8622 * objc-lang.c (selectors_info): Add a small safety margin to
8623 avoid overflow.
8624 (classes_info): Error out on too long REGEXP.
8625
8626 * infrun.c (handle_inferior_event): Remove unused function call.
8627
8628 * fork-child.c (fork_inferior): Remove ifdef'd code and
8629 unused variable.
8630
8631 * linux-thread-db.c (attach_thread): Discard unused value.
8632
8633 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8634
8635 * remote.c (remote_get_noisy_reply): Discard unused value.
8636 (remote_vcont_resume): Ditto.
8637 (remote_stop_ns): Ditto.
8638
8639 * linespec.c (decode_objc): Delete unused variable.
8640
8641 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8642
8643 * dwarf2read.c (add_partial_symbol): Discard unused values.
8644 (read_base_type): Delete unused variable.
8645
8646 * dbxread.c (read_dbx_symtab): Discard unused value.
8647
8648 * eval.c (evaluate_subexp_standard): Delete unused variable,
8649 and discard unused values.
8650
8651 * infcmd.c (_initialize_infcmd): Discard unused values.
8652
8653 * stabsread.c (rs6000_builtin_type): Missing break statement.
8654
8655 * dbxread.c (process_one_symbol): Discard unused value.
8656
8657 * coffread.c (coff_end_symtab): Delete unused variable.
8658
8659 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8660 (dwarf2_add_typedef): Delete unused variable.
8661 (read_namespace): Ditto.
8662 (dwarf_decode_macros): Ditto.
8663
8664 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8665
8666 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8667
8668 * p-valprint.c (pascal_val_print): Discard unused value.
8669
8670 * utils.c (nquery): Call va_end before return;
8671 (yquery): Ditto.
8672 (query): Ditto.
8673
8674 * proc-service.c (ps_plog): Call va_end before return.
8675
8676 2011-02-28 Tom Tromey <tromey@redhat.com>
8677
8678 * python/python.c (gdbpy_value_cst): New global.
8679 (_initialize_python): Initialize it.
8680 * python/python-internal.h (gdbpy_value_cst): Declare.
8681 * python/py-value.c (convert_value_from_python): Use
8682 gdbpy_value_cst.
8683
8684 2011-02-28 Michael Snyder <msnyder@vmware.com>
8685
8686 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8687
8688 * breakpoint.c (catch_syscall_completer): Free malloced list.
8689
8690 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8691
8692 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8693 (lval_func_check_synthetic_pointer): Ditto.
8694 (lval_func_free_closure): Fix use-after-free.
8695
8696 2011-02-28 Tom Tromey <tromey@redhat.com>
8697
8698 * psymtab.c (expand_partial_symbol_tables): Use
8699 ALL_OBJFILE_PSYMTABS.
8700
8701 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8702
8703 * objc-lang.c (selectors_info): Error on too long REGEXP.
8704
8705 2011-02-28 Michael Snyder <msnyder@vmware.com>
8706
8707 * python/py-param.c (set_parameter_value): Add missing
8708 break statement.
8709
8710 * linux-record.c (record_linux_system_call): Add missing
8711 break statement.
8712
8713 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8714
8715 * breakpoint.c (print_one_breakpoint_location): Remove unused
8716 argument PRINT_ADDRESS_BITS. Update callers.
8717 (print_one_breakpoint): Likewise.
8718
8719 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8720
8721 * breakpoint.c (wrap_indent_at_field): New function.
8722 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8723 Allocate ui_stream locally instead of using STB argument.
8724 (print_one_breakpoint_location): Update call.
8725 * ui-out.c (ui_out_query_field): New function.
8726 * ui-out.h (ui_out_query_field): Add prototype.
8727
8728 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8729
8730 From Michael Snyder <msnyder@vmware.com>
8731 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8732
8733 2011-02-27 Michael Snyder <msnyder@vmware.com>
8734
8735 * objc-lang.c (selectors_info): Prevent string overrun.
8736
8737 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8738 error in strncpy.
8739
8740 * symtab.c (rbreak_command): Move variable 'file_name' to
8741 outer scope.
8742
8743 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8744 param with a local variable of the same name.
8745
8746 2011-02-27 Michael Snyder <msnyder@vmware.com>
8747
8748 * value.c (value_from_history_ref): New function.
8749 * value.h (value_from_history_ref): Export.
8750 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8751 to parse value history references.
8752 * cli/cli-utils.h (get_number_trailer): Update comment.
8753
8754 2011-02-27 Michael Snyder <msnyder@vmware.com>
8755
8756 * inferior.c (detach_inferior_command): Use get_number_or_range.
8757 (kill_inferior_command): Ditto.
8758 (remove_inferior_command): Ditto.
8759 (initialize_inferiors): Make command names plural.
8760 Update help strings.
8761
8762 2011-02-27 Michael Snyder <msnyder@vmware.com>
8763
8764 * darwin-nat-info.c: Fix comment typo.
8765 * dwarf2expr.h: Ditto.
8766 * fbsd-nat.c: Ditto.
8767 * fbsd-nat.h: Ditto.
8768 * frame-unwind.h: Ditto.
8769 * frame.h: Ditto.
8770 * hppa-hpux-tdep.c: Ditto.
8771 * i386-linux-nat.c: Ditto.
8772 * linux-nat.c: Ditto.
8773 * nbsd-nat.c: Ditto.
8774 * nbsd-nat.h: Ditto.
8775 * ppc-linux-tdep.c: Ditto.
8776 * serial.c: Ditto.
8777 * ui-file.h: Ditto.
8778 * tui/tui-winsource.c: Ditto.
8779
8780 2011-02-26 Michael Snyder <msnyder@vmware.com>
8781
8782 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8783
8784 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8785
8786 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8787 with a local variable of the same name.
8788
8789 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8790 param with a local variable of the same name.
8791 (i387_supply_xsave): Ditto.
8792
8793 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8794 that it does not shadow a function parameter.
8795
8796 * i386-nat.c (i386_length_and_rw_bits): Document that case
8797 statement is meant to fall through.
8798
8799 * expprint.c (dump_subexp_body_standard): Document that case
8800 statement is meant to fall through.
8801
8802 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8803 dead if statement. Condition can't be false.
8804
8805 2011-02-25 Michael Snyder <msnyder@vmware.com>
8806
8807 * arm-tdep.c: Fix typos in comments.
8808 * bsd-uthread.c: Ditto.
8809 * completer.c: Ditto.
8810 * corelow.c: Ditto.
8811 * cp-namespace.c: Ditto.
8812 * cp-support.c: Ditto.
8813 * cris-tdep.c: Ditto.
8814 * dbxread.c: Ditto.
8815 * dwarf2read.c: Ditto.
8816 * frame.h: Ditto.
8817 * gdbtypes.h: Ditto.
8818 * inferior.h: Ditto.
8819 * mdebugread.c: Ditto.
8820 * mips-tdep.c: Ditto.
8821 * ppc-linux-nat.c: Ditto.
8822 * ppc-linux-tdep.c: Ditto.
8823 * printcmd.c: Ditto.
8824 * sol-thread.c: Ditto.
8825 * solib-frv.c: Ditto.
8826 * solist.h: Ditto.
8827 * sparc64-tdep.c: Ditto.
8828 * spu-tdep.c: Ditto.
8829 * stabsread.c: Ditto.
8830 * symfile.c: Ditto.
8831 * valops.c: Ditto.
8832 * varobj.c: Ditto.
8833 * vax-nat.c: Ditto.
8834 * python/py-block.c: Ditto.
8835 * python/py-symbol.c: Ditto.
8836 * python/py-symtab.c: Ditto.
8837 * python/py-value.c: Ditto.
8838 * tui/tui-win.c: Ditto.
8839
8840 2011-02-25 Michael Snyder <msnyder@vmware.com>
8841
8842 * inferior.c (print_inferior): Accept a string instead of an int
8843 for requested_inferiors, and use get_number_or_range to parse it.
8844 (info_inferiors_command): Pass args string to print_inferior.
8845 (initialize_inferiors): Change help string for info inferiors.
8846 * inferior.h (print_inferior): Export prototype change.
8847
8848 2011-02-25 Tom Tromey <tromey@redhat.com>
8849
8850 * common/ax.def (invalid2): Set to 0x31.
8851
8852 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8853
8854 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8855 L and plongest.
8856 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8857 use L and plongest.
8858 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8859
8860 2011-02-24 Michael Snyder <msnyder@vmware.com>
8861
8862 * Makefile.in (clean): Make clean should remove generated files
8863 observer.h and observer.inc.
8864
8865 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8866
8867 Revert the following patch (not approved yet):
8868 2011-02-21 Hui Zhu <teawater@gmail.com>
8869 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8870 * ax-gdb.c (gen_printf_expr_callback): New function.
8871 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8872 * ax-general.c (ax_memcpy): New function.
8873 (ax_print): Handle "printf".
8874 (ax_reqs): Ditto.
8875 * ax.h (ax_memcpy): Forward declare.
8876 * common/ax.def (invalid2): Removed.
8877 (printf): New entry.
8878 * printcmd.c (printcmd.h): New include.
8879 (string_printf): New function.
8880 (ui_printf): Removed.
8881 (printf_command): Remove static. Call string_printf.
8882 (eval_command): Call string_printf.
8883 * printcmd.h: New file.
8884 * tracepoint.c (validate_actionline,
8885 encode_actions_1): handle printf_command.
8886
8887 2011-02-23 Tom Tromey <tromey@redhat.com>
8888
8889 * ax-general.c (ax_pick): Add missing newline.
8890
8891 2011-02-23 Michael Snyder <msnyder@vmware.com>
8892
8893 * breakpoint.c (breakpoint_1): Change first argument from an int
8894 to a char pointer, so that the function now accepts a list of
8895 breakpoints rather than just one. Use new function
8896 'number_is_in_list' to implement.
8897 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8898 (watchpoints_info): Ditto.
8899 (tracepoints_info): Ditto.
8900 (maintenance_info_breakpoints): Ditto.
8901 (_initialize_breakpoint): Update help strings to reflect the fact
8902 that these functions can now take more than one argument.
8903 * cli/cli-utils.c (number_is_in_list): New function.
8904 * cli/cli-utils.h (number_is_in_list): Export.
8905
8906 2011-02-23 Michael Snyder <msnyder@vmware.com>
8907
8908 * memattr.c (mem_enable_command): Use get_number_or_range.
8909 (mem_disable_command): Ditto.
8910 (mem_delete_command): Ditto.
8911 (_initialize_mem): Tweak usage message to reflect multiple
8912 arguments.
8913
8914 2011-02-22 Doug Evans <dje@google.com>
8915
8916 Add gdb.lookup_global_symbol python function.
8917 * NEWS: Add entry.
8918 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8919 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8920 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8921
8922 2011-02-22 Tom Tromey <tromey@redhat.com>
8923
8924 * language.c (language_class_name_from_physname): Rename
8925 'curr_language' argument to 'lang'; use in body.
8926
8927 2011-02-22 Michael Snyder <msnyder@vmware.com>
8928
8929 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8930
8931 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8932
8933 * frame-unwind.h: Fix comment to mention the this frame, not the
8934 next.
8935
8936 2011-02-22 Tom Tromey <tromey@redhat.com>
8937
8938 * symfile.c (auto_solib_limit): Remove.
8939 * symfile.h (auto_solib_limit): Remove.
8940
8941 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8942
8943 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8944
8945 2011-02-21 Michael Snyder <msnyder@vmware.com>
8946
8947 * gdbthread.h (print_thread_info): Change prototype.
8948 * thread.c (print_thread_info): Accept char* instead of int for
8949 requested_threads argument. Use new function number_is_in_list
8950 to determine which threads to list.
8951 (info_threads_command): Pass char* to print_thread_info.
8952 * cli/cli-utils.c (number_is_in_list): New function.
8953 * cli/cli-utils.h (number_is_in_list): Export.
8954 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8955 print_thread_info.
8956 (print_one_inferior): Ditto.
8957 (mi_cmd_list_thread_groups): Ditto.
8958
8959 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8960
8961 * common/Makefile.in (CFLAGS): New.
8962 (COMPILE): Add $(CFLAGS).
8963
8964 2011-02-21 Tom Tromey <tromey@redhat.com>
8965
8966 * breakpoint.c (catch_syscall_command_1): Fix typo.
8967
8968 2011-02-21 Tom Tromey <tromey@redhat.com>
8969
8970 * reverse.c: Include cli-utils.h.
8971 * printcmd.c: Include cli-utils.h.
8972 (string_printf): Use skip_spaces.
8973 * cli/cli-utils.h: New file.
8974 * cli/cli-utils.c: New file.
8975 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8976 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8977 * breakpoint.h (get_number, get_number_or_range): Move to
8978 cli-utils.h.
8979 * breakpoint.c: Include cli-utils.h.
8980 (get_number_trailer, get_number, get_number_or_range)
8981 (ep_skip_leading_whitespace): Move to cli-utils.c.
8982 (create_breakpoint_sal, find_condition_and_thread)
8983 (decode_static_tracepoint_spec, watch_command_1)
8984 (watch_maybe_just_location, ep_parse_optional_if_clause)
8985 (catch_fork_command_1, catch_exec_command_1)
8986 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8987 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8988 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8989 (HFILES_NO_SRCDIR): Add cli-utils.h.
8990 (cli-utils.o): New target.
8991
8992 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8993
8994 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8995 before calling discard_all_inferiors.
8996
8997 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8998
8999 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9000 (struct builtin_opencl_type): Remove.
9001 (builtin_opencl_type): Change return type to "struct type **".
9002 (lookup_opencl_vector_type): Update caller.
9003 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9004 (build_opencl_types): Install plain array of "struct type *"
9005 instead of "struct builtin_opencl_type".
9006
9007 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9008 Ulrich Weigand <uweigand@de.ibm.com>
9009
9010 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9011 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9012 (struct arm_linux_hwbp_cap): New type.
9013 (arm_linux_get_hwbp_cap): New function.
9014 (arm_linux_get_hw_breakpoint_count): Likewise.
9015 (arm_linux_get_hw_watchpoint_count): Likewise.
9016 (arm_linux_can_use_hw_breakpoint): Likewise.
9017 (arm_hwbp_type): New type.
9018 (arm_hwbp_control_t): Likewise.
9019 (struct arm_linux_hw_breakpoint): Likewise.
9020 (struct arm_linux_thread_points): Likewise.
9021 (arm_threads): New global variable.
9022 (arm_linux_find_breakpoints_by_tid): New function.
9023 (arm_hwbp_control_initialize): Likewise.
9024 (arm_hwbp_control_is_enabled): Likewise.
9025 (arm_hwbp_control_disable): Likewise.
9026 (arm_linux_hw_breakpoint_initialize): Likewise.
9027 (arm_linux_get_hwbp_type): Likewise.
9028 (arm_linux_hw_watchpoint_initialize): Likewise.
9029 (arm_linux_hw_breakpoint_equal): Likewise.
9030 (arm_linux_insert_hw_breakpoint1): Likewise.
9031 (arm_linux_remove_hw_breakpoint1): Likewise.
9032 (arm_linux_insert_hw_breakpoint): Likewise.
9033 (arm_linux_remove_hw_breakpoint): Likewise.
9034 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9035 (arm_linux_insert_watchpoint): Likewise.
9036 (arm_linux_remove_watchpoint): Likewise.
9037 (arm_linux_stopped_data_address): Likewise.
9038 (arm_linux_stopped_by_watchpoint): Likewise.
9039 (arm_linux_watchpoint_addr_within_range): Likewise.
9040 (arm_linux_new_thread): Likewise.
9041 (arm_linux_thread_exit): Likewise.
9042 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9043 related target callbacks. Register arm_linux_new_thread and
9044 arm_linux_thread_exit.
9045 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9046 * arm-tdep.c (arm_pc_is_thumb): Make global.
9047 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9048
9049 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9050
9051 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9052 per-frame locations while within a function epilogue.
9053
9054 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9055
9056 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9057 to GNU coding standards.
9058
9059 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9060
9061 Allow use of mingw native on Windows 95 OS.
9062 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9063 (ser_windows_close): Only call CancelIo if function exists.
9064 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9065 to check for existence of CancelIo function in kernel32 DLL.
9066
9067 2011-02-21 Hui Zhu <teawater@gmail.com>
9068
9069 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9070 * ax-gdb.c (gen_printf_expr_callback): New function.
9071 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9072 * ax-general.c (ax_memcpy): New function.
9073 (ax_print): Handle "printf".
9074 (ax_reqs): Ditto.
9075 * ax.h (ax_memcpy): Forward declare.
9076 * common/ax.def (invalid2): Removed.
9077 (printf): New entry.
9078 * printcmd.c (printcmd.h): New include.
9079 (string_printf): New function.
9080 (ui_printf): Removed.
9081 (printf_command): Remove static. Call string_printf.
9082 (eval_command): Call string_printf.
9083 * printcmd.h: New file.
9084 * tracepoint.c (validate_actionline,
9085 encode_actions_1): handle printf_command.
9086
9087 2011-02-19 Michael Snyder <msnyder@vmware.com>
9088
9089 * reverse.c (delete_one_bookmark): Argument is now bookmark
9090 id rather than pointer to bookmark struct.
9091 (delete_bookmark_command): Use get_number_or_range.
9092 (goto_bookmark_command): Parse with get_number instead of strtoul.
9093 (bookmark_1): New function. Print info for one bookmark.
9094 (bookmarks_info): Use get_number_or_range and bookmark_1.
9095
9096 2011-02-18 Michael Snyder <msnyder@vmware.com>
9097
9098 * thread.c (info_threads_command): Re-implement using
9099 get_number_or_range.
9100 (thread_apply_command): Ditto.
9101
9102 2011-02-18 Tom Tromey <tromey@redhat.com>
9103
9104 * common/ax.def: New file.
9105 * ax.h (enum agent_op): Use ax.def.
9106 * ax-general.c (aop_map): Use ax.def.
9107
9108 2011-02-18 Tom Tromey <tromey@redhat.com>
9109
9110 * ax-general.c (aop_map): Add pick and rot.
9111 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9112 <DW_OP_rot>: Implement.
9113 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9114 (ax_pick): Declare.
9115 * ax-general.c (ax_pick): New function.
9116
9117 2011-02-18 Tom Tromey <tromey@redhat.com>
9118
9119 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9120
9121 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9122 Tom Tromey <tromey@redhat.com>
9123
9124 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9125 make_symbol_overload_list_block with NULL BLOCK.
9126 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9127
9128 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9129
9130 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9131 * breakpoint.h (get_number_or_range): Declare.
9132 * printcmd.c (ALL_DISPLAYS): Declare.
9133 (delete_display): Reimplement taking a display pointer.
9134 (undisplay_command): Accept a range of displays to delete, using
9135 get_number_or_range.
9136
9137 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9138
9139 * c-valprint.c (c_val_print): Add embedded_offset to address
9140 for arrays of unspecified length.
9141 * p-valprint.c (pascal_val_print): Likewise.
9142
9143 2011-02-18 Yao Qi <yao@codesourcery.com>
9144
9145 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9146 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9147 (thumb_process_displaced_insn): New.
9148 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9149 call to arm_process_displaced_insn.
9150 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9151
9152 2011-02-17 Tom Tromey <tromey@redhat.com>
9153
9154 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9155 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9156 compile_dwarf_to_ax. No longer static. Call
9157 dwarf2_compile_cfa_to_ax.
9158 (locexpr_tracepoint_var_ref): Update.
9159 (loclist_tracepoint_var_ref): Update.
9160 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9161 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9162 argument; add 'gdbarch' and 'pc'.
9163 (dwarf2_compile_cfa_to_ax): New function.
9164 (dwarf2_frame_cache): Update.
9165
9166 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9167
9168 * ada-lang.c (ada_type_of_array): Fix the size of the array
9169 in the case of an unconstrained packed array.
9170
9171 2011-02-17 Yao Qi <yao@codesourcery.com>
9172
9173 * common/Makefile.in: Add more targets for make.
9174
9175 2011-02-16 Tom Tromey <tromey@redhat.com>
9176
9177 * dwarf2loc.c (unimplemented): Fix typo.
9178
9179 2011-02-16 Tom Tromey <tromey@redhat.com>
9180
9181 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9182 (compile_dwarf_to_ax) <default>: Use unimplemented.
9183 <DW_OP_deref>: Update.
9184 (disassemble_dwarf_expression): Update.
9185 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9186 (decode_locdesc): Update.
9187 * dwarf2expr.h (dwarf_stack_op_name): Update.
9188
9189 2011-02-16 Tom Tromey <tromey@redhat.com>
9190
9191 * ax.h (struct aop_map) <name>: Now const.
9192
9193 2011-02-16 Tom Tromey <tromey@redhat.com>
9194
9195 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9196 than axs_rvalue.
9197
9198 2011-02-16 Yao Qi <yao@codesourcery.com>
9199
9200 * infrun.c (get_displaced_step_closure_by_addr): New.
9201 * inferior.h: Declare it.
9202 * arm-tdep.c: (arm_pc_is_thumb): Call
9203 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9204 returns non-NULL.
9205
9206 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9207 Jan Kratochvil <jan.kratochvil@redhat.com>
9208
9209 gdb/
9210 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9211
9212 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9213 Jan Kratochvil <jan.kratochvil@redhat.com>
9214
9215 * value.c (value_contents_copy_raw): Extend describing comment.
9216 Assert that the destination contents we're overwriting are wholly
9217 available.
9218 (value_contents_copy): Extend describing comment.
9219
9220 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9221 Jan Kratochvil <jan.kratochvil@redhat.com>
9222
9223 * value.c (value_available_contents_eq): Remove redundant local
9224 variables. Fix available contents comparision.
9225 * value.h (value_available_contents_eq): Extend describing
9226 comment.
9227
9228 2011-02-16 Yao Qi <yao@codesourcery.com>
9229
9230 * thread.c (info_threads_command): Add missing i18n markup and remove
9231 trailing newline.
9232
9233 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9234
9235 * breakpoint.c (longjmp_names): New variable.
9236 (struct breakpoint_objfile_data): New type.
9237 (breakpoint_objfile_key): New variable.
9238 (msym_not_found): New variable.
9239 (msym_not_found_p): New predicate.
9240 (get_breakpoint_objfile_data): New function.
9241 (create_overlay_event_breakpoint): Check per-objfile cache for
9242 symbols first.
9243 (create_longjmp_master_breakpoint): Likewise.
9244 (create_std_terminate_master_breakpoint): Likewise.
9245 (create_exception_master_breakpoint): Likewise.
9246 (_initialize_breakpoint): Register per-objfile data key.
9247
9248 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9249
9250 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9251 parameter value.
9252 (create_longjmp_master_breakpoint): Loop over longjmp names.
9253 (create_std_terminate_master_breakpoint): Const-propagate parameter
9254 value.
9255 (update_breakpoints_after_exec): Adjust.
9256 (breakpoint_re_set): Adjust.
9257
9258 2011-02-15 Michael Snyder <msnyder@vmware.com>
9259
9260 * thread.c (info_threads_command): Process arg as thread id,
9261 or list of thread ids.
9262 (thread_find_command): New command.
9263 (_initialize_thread): Document argument for info threads.
9264 Document 'thread find' command.
9265 * NEWS: Document new command "thread find".
9266
9267 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9268
9269 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9270 * aclocal.m4: Regenerated with aclocal-1.11.1.
9271 * common/configure: Regenerate with autoconf-2.64.
9272
9273 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9274
9275 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9276 bool data type to a size of one byte.
9277
9278 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9279 Jan Kratochvil <jan.kratochvil@redhat.com>
9280
9281 * target.c (memory_xfer_live_readonly_partial): Document where to
9282 look for interface description.
9283
9284 2011-02-15 Yao Qi <yao@codesourcery.com>
9285
9286 PR tdep/12352
9287 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9288 order to store PC value on stack instead of text section.
9289
9290 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9291
9292 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9293 the EFP register set size.
9294 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9295 data from the VMX register.
9296 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9297 and write data from/to the VMX register.
9298
9299 2011-02-14 Michael Snyder <msnyder@vmware.com>
9300
9301 * command.h (enum command_class): New class 'no_set_class', for
9302 "show" commands without a corresponding "set" command.
9303 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9304 * copying.c (_initialize_copying): Ditto for "show copying" and
9305 "show warranty".
9306 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9307 "show version".
9308 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9309 which there is no corresponding "set" command (eg. "show copying").
9310
9311 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9312 Jan Kratochvil <jan.kratochvil@redhat.com>
9313
9314 * exec.c (section_table_available_memory): Change `len' parameter
9315 type to ULONGEST.
9316 * exec.h (section_table_available_memory): Ditto.
9317 * value.h (read_value_memory): Rename the `offset' parameter to
9318 `embedded_offset'.
9319
9320 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9321 Jan Kratochvil <jan.kratochvil@redhat.com>
9322
9323 * memrange.c (compare_mem_ranges): Mention sort order in
9324 describing comment.
9325 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9326 * tracepoint.c (traceframe_available_memory): Extend comment to
9327 mention what happens to RESULT when the target does not support
9328 the query.
9329
9330 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9331 Jan Kratochvil <jan.kratochvil@redhat.com>
9332
9333 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9334 range.
9335
9336 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9337
9338 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9339 No longer handle NULL values.
9340
9341 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9342
9343 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9344 * value.c: Include "exceptions.h".
9345 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9346 generic error.
9347 * cp-abi.c: Include gdb_assert.h.
9348 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9349 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9350 errors.
9351 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9352 parameters. No longer returns -1 on error.
9353 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9354 `val' parameters.
9355 * cp-valprint.c: Include exceptions.h.
9356 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9357 the baseclass_offset. Handle unavailable base classes. Use
9358 val_print_invalid_address.
9359 * p-valprint.c: Include exceptions.h.
9360 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9361 when fetching the baseclass_offset. No longer expect
9362 baseclass_offset returning -1. Handle unavailable base classes.
9363 Use val_print_invalid_address.
9364 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9365 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9366 `embedded_offset' and `val' parameters. Adjust.
9367 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9368 parameter, and change its type to gdb_byte pointer. Add
9369 `embedded_offset' and `val' parameters. Adjust. No longer expect
9370 baseclass_offset returning -1.
9371 (value_dynamic_cast): Use value_contents_for_printing rather than
9372 value_contents. Adjust.
9373 (search_struct_field): No longer expect baseclass_offset returning
9374 -1.
9375 (search_struct_method): If reading memory from the target is
9376 necessary, wrap it in a new value to pass to baseclass_offset. No
9377 longer expect baseclass_offset returning -1.
9378 (find_method_list): No longer expect baseclass_offset returning
9379 -1. Use value_contents_for_printing rather than value_contents.
9380 * valprint.c (val_print_invalid_address): New function.
9381 * valprint.h (val_print_invalid_address): Declare.
9382 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9383 and `val' parameters. No longer expect baseclass_offset returning
9384 -1. Adjust.
9385 * gnu-v2-abi.c: Include "exceptions.h".
9386 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9387 parameters. Handle unavailable memory. Recurse through
9388 gnuv2_baseclass_offset directly, rather than through
9389 baseclass_offset. No longer returns -1 on not found, instead
9390 throw an error.
9391 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9392 `val' parameters. Adjust.
9393
9394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9395
9396 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9397 almost but not quite adjacent.
9398
9399 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9400
9401 * value.h (value_entirely_available): Declare.
9402 * value.c (value_entirely_available): New function.
9403 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9404 real type if the pointer is unavailable.
9405
9406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9407
9408 * valops.c (value_repeat): Use read_value_memory instead of
9409 read_memory.
9410
9411 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9412
9413 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9414 * value.c (value_contents_copy_raw, value_contents_copy): New
9415 functions.
9416 (value_primitive_field): Use value_contents_copy_raw instead of
9417 memcpy.
9418 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9419 memcpy.
9420 (value_array, value_slice): Ditto.
9421 * valarith.c (value_subscripted_rvalue): Use
9422 value_contents_copy_raw instead of memcpy.
9423
9424 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9425
9426 <unavailable> references.
9427
9428 * valops.c (get_value_at): Use value_from_contents_and_address,
9429 avoiding read_memory.
9430
9431 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9432
9433 * c-valprint.c (c_val_print): Print a string with unavailable
9434 contents as an array.
9435
9436 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9437
9438 * value.h (unpack_bits_as_long): Delete declaration.
9439 (unpack_value_bits_as_long): Declare.
9440 (unpack_value_field_as_long): Declare.
9441 (value_field_bitfield): Declare.
9442 * value.c (unpack_bits_as_long): Rename to...
9443 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9444 value parameters. Return the extracted result in a new output
9445 parameter. If the value contents are unavailable, return false,
9446 otherwise return true.
9447 (unpack_value_bits_as_long): New.
9448 (unpack_field_as_long): Rename to...
9449 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9450 Add embedded_offset and value parameters. Return the extracted
9451 result in a new output parameter. If the value contents are
9452 unavailable, return false, otherwise return true.
9453 (unpack_value_field_as_long): New.
9454 (unpack_field_as_long_1): New.
9455 (unpack_field_as_long): Reimplement as wrapper around
9456 unpack_value_field_as_long_1.
9457 (value_field_bitfield): New function.
9458 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9459 unpack_value_bits_as_long. Mark the value as unavailable, if it
9460 is unavailable.
9461 * jv-valprint.c (java_print_value_fields): Use
9462 value_field_bitfield.
9463 * p-valprint.c (pascal_object_print_value_fields): Use
9464 value_field_bitfield.
9465 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9466
9467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9468
9469 * value.c (get_internalvar_integer): Also return the int value of
9470 TYPE_CODE_INT INTERNALVAR_VALUE values.
9471 (set_internalvar): Don't special case TYPE_CODE_INT.
9472
9473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9474
9475 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9476 INTERNALVAR_POINTER.
9477 <pointer>: Delete.
9478 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9479 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9480 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9481
9482 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9483
9484 * value.h (value_available_contents_eq): Declare.
9485 * value.c (find_first_range_overlap): New function.
9486 (value_available_contents_eq): New function.
9487 * valprint.c (val_print_array_elements): Use
9488 value_available_contents_eq.
9489 * ada-valprint.c (val_print_packed_array_elements): Use
9490 value_available_contents_eq.
9491 * jv-valprint.c (java_value_print): Use
9492 value_available_contents_eq.
9493
9494 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9495
9496 * target.c (target_read_live_memory): New function.
9497 (memory_xfer_live_readonly_partial): New.
9498 (memory_xfer_partial): If reading from a traceframe, fallback to
9499 reading unavailable read-only memory from read-only regions of
9500 live target memory.
9501 * tracepoint.c (disconnect_tracing): Adjust.
9502 (set_current_traceframe): New, factored out from
9503 set_traceframe_number.
9504 (set_traceframe_number): Reimplement to only change the traceframe
9505 number on the GDB side.
9506 (do_restore_current_traceframe_cleanup): Adjust.
9507 (make_cleanup_restore_traceframe_number): New.
9508 (cur_traceframe_number): New global.
9509 (tfile_open): Set cur_traceframe_number to no traceframe.
9510 (set_tfile_traceframe): New function.
9511 (tfile_trace_find): If looking up a traceframe using any method
9512 other than by number, make sure the current tfile traceframe
9513 matches gdb's current traceframe. Update the current tfile
9514 traceframe if the lookup succeeded.
9515 (tfile_fetch_registers, tfile_xfer_partial)
9516 (tfile_get_trace_state_variable_value): Make sure the remote
9517 traceframe matches gdb's current traceframe.
9518 * remote.c (remote_traceframe_number): New global.
9519 (remote_open_1): Set it to -1.
9520 (set_remote_traceframe): New function.
9521 (remote_fetch_registers, remote_store_registers)
9522 (remote_xfer_memory, remote_xfer_partial)
9523 (remote_get_trace_state_variable_value): Make sure the remote
9524 traceframe matches gdb's current traceframe.
9525 (remote_trace_find): If looking up a traceframe using any method
9526 other than by number, make sure the current remote traceframe
9527 matches gdb's current traceframe. Update the current remote
9528 traceframe if the lookup succeeded.
9529 * infrun.c (fetch_inferior_event): Adjust.
9530 * tracepoint.h (set_current_traceframe): Declare.
9531 (get_traceframe_number, set_traceframe_number): Add describing
9532 comments.
9533
9534 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9535
9536 Mark pieces of values as unavailable if the corresponding memory
9537 is unavailable.
9538
9539 * valops.c: Include tracepoint.h.
9540 (value_fetch_lazy): Use read_value_memory.
9541 (read_value_memory): New.
9542 * value.h (read_value_memory): Declare.
9543 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9544 * exec.c (section_table_available_memory): New function.
9545 * exec.h (section_table_available_memory): Declare.
9546
9547 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9548
9549 * Makefile.in (SFILES): Add memrange.c.
9550 (HFILES_NO_SRCDIR): Add memrange.h.
9551 (COMMON_OBS): Add memrange.o.
9552 * memrange.c: New file.
9553 * memrange.h: New file.
9554 * tracepoint.c: Include memrange.h.
9555 (struct mem_range): Delete.
9556 (mem_range_s): Delete.
9557 (traceframe_available_memory): New function.
9558 * tracepoint.h (traceframe_available_memory): Declare.
9559
9560 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9561
9562 * target.h (struct traceframe_info): Forward declare.
9563 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9564 (struct target_ops) <to_traceframe_info>: New field.
9565 (target_traceframe_info): New.
9566 * target.c (update_current_target): Inherit and default
9567 to_traceframe_info.
9568 * remote.c (PACKET_qXfer_traceframe_info): New.
9569 (remote_protocol_features): Register qXfer:traceframe-info:read.
9570 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9571 (remote_traceframe_info): New.
9572 (init_remote_ops): Install it.
9573 (_initialize_remote): Install "set/show remote traceframe-info"
9574 commands.
9575 * tracepoint.h (parse_traceframe_info): Declare.
9576 * tracepoint.c (struct mem_range): New.
9577 (mem_range_s): New typedef.
9578 (struct traceframe_info): New.
9579 (traceframe_info): New global.
9580 (free_traceframe_info): New function.
9581 (clear_traceframe_info): New function.
9582 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9583 info.
9584 (build_traceframe_info): New function.
9585 (tfile_traceframe_info): New function.
9586 (init_tfile_ops): Install tfile_traceframe_info.
9587 (traceframe_info_start_memory, free_result): New functions.
9588 (memory_attributes, traceframe_info_elements): New globals.
9589 (parse_traceframe_info, get_traceframe_info): New functions.
9590 * features/traceframe-info.dtd: New file.
9591 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9592
9593 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9594
9595 Base support for <unavailable> value contents.
9596
9597 * value.h (value_bytes_available): Declare.
9598 (mark_value_bytes_unavailable): Declare.
9599 * value.c (struct range): New struct.
9600 (range_s): New typedef.
9601 (ranges_overlap): New function.
9602 (range_lessthan): New function.
9603 (ranges_contain_p): New function.
9604 (struct value) <unavailable>: New field.
9605 (value_bytes_available): New function.
9606 (mark_value_bytes_unavailable): New function.
9607 (require_not_optimized_out): Constify parameter.
9608 (require_available): New function.
9609 (value_contents_all, value_contents): Require all bytes be
9610 available.
9611 (value_free): Free `unavailable'.
9612 (value_copy): Copy `unavailable'.
9613 * valprint.h (val_print_unavailable): Declare.
9614 * valprint.c (valprint_check_validity): Rename `offset' parameter
9615 to `embedded_offset'. If printing a scalar, check whether the
9616 value chunk is available.
9617 (val_print_unavailable): New.
9618 (val_print_scalar_formatted): Check whether the value is
9619 available.
9620 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9621 pretty-printing unavailable values.
9622
9623 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9626 * c-typeprint.c (c_type_print_args): Update the function comment. New
9627 variable param_type, initialize it. Remove const/volatile qualifiers
9628 for language_cplus and !show_artificial. Use param_type.
9629
9630 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9631
9632 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9633 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9634 * symtab.h (struct symtab) <next>: Comment extension.
9635
9636 2011-02-12 Yao Qi <yao@codesourcery.com>
9637
9638 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9639
9640 2011-02-11 Yao Qi <yao@codesourcery.com>
9641
9642 * common/Makefile.in: Add copyright header.
9643
9644 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9645
9646 * infrun.c (proceed): Move switching out and in of tfind mode from
9647 here ...
9648 (fetch_inferior_event): ... to here.
9649
9650 2011-02-11 Yao Qi <yao@codesourcery.com>
9651
9652 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9653 libcommon.a.
9654 * configure.ac: Add common to sub dir.
9655 * configure: Regenerate.
9656
9657 2011-02-11 Yao Qi <yao@codesourcery.com>
9658
9659 Build libcommon.a.
9660
9661 * common/Makefile.in: New.
9662 * common/configure.ac: New.
9663 * common/aclocal.m4: New.
9664 * common/configure: Generate.
9665
9666 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9667
9668 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9669 side of the parenthesis.
9670
9671 Merge from GCC:
9672 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9673 * vec.h (VEC_block_remove): Fix comment.
9674
9675 2011-02-08 Michael Snyder <msnyder@vmware.com>
9676
9677 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9678
9679 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9680
9681 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9682 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9683 psubd and paddd.
9684
9685 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9686
9687 PR 12361.
9688 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9689 phsubsw.
9690 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9691 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9692
9693 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9694
9695 * dwarf2read.c (read_subroutine_type): Set special calling
9696 convention flag for functions compiled by IBM XL C for OpenCL.
9697 * ppc-sysv-tdep.c: Include "dwarf2.h"
9698 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9699 calling convention.
9700 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9701 IBM OpenCL vector types calling convention.
9702 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9703 (ppc_sysv_abi_broken_return_value): Likewise.
9704 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9705 types calling convention.
9706 (ppc64_sysv_abi_return_value): Likewise.
9707 * spu-tdep.c: Include "dwarf2.h"
9708 (spu_return_value): Implement IBM OpenCL vector types calling
9709 convention.
9710
9711 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9712
9713 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9714 correct ABI for AltiVec vector arguments.
9715
9716 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9717
9718 * valprint.c (val_print): Extend comment.
9719 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9720 interface explanation to val_print.
9721 (ada_val_print_array): Adjust comment to current interface.
9722 (print_field_values): Adjust comment to current interface.
9723 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9724 explanation to val_print.
9725 * f-valprint.c (f_val_print): Ditto.
9726 * jv-valprint.c (java_val_print): Ditto.
9727 * m2-valprint.c (m2_val_print): Ditto.
9728 * p-valprint.c (pascal_val_print): Ditto.
9729
9730 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9731
9732 * breakpoint.c (parse_breakpoint_sals): Fix description.
9733
9734 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9735 Oguz Kayral <oguzkayral@gmail.com>
9736
9737 * python/py-inferior.c (python_on_normal_stop): New function.
9738 (python_on_resume): New function.
9739 (python_inferior_exit): New function.
9740 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9741 inferior_exit observers.
9742 * python/py-evtregistry.c: New file.
9743 * python/py-threadevent.c : New file.
9744 * python/py-event.c: New file.
9745 * python/py-evts.c: New file.
9746 * python/py-continueevent.c: New file.
9747 * python/py-bpevent.c: New file.
9748 * python/py-signalevent.c: New file.
9749 * python/py-exetiedevent.c: New file.
9750 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9751 Move struct breakpoint_object from here...
9752 * python/python-internal.h: ... to here.
9753 * python/py-event.h: New file.
9754 * python/py-events.h: New file.
9755 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9756 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9757 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9758 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9759 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9760 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9761 Add build rules for all the above.
9762
9763 2011-02-04 Tom Tromey <tromey@redhat.com>
9764
9765 * dwarf2read.c (dwarf2_section_empty_p): New function.
9766 (dwarf2_read_section): Use dwarf2_section_empty_p.
9767 (dwarf2_section_size): New function.
9768 (dwarf2_get_section_info): Unconditionally read section.
9769 (dwarf2_read_index): Use dwarf2_section_empty_p.
9770 (partial_read_comp_unit_head): Use dwarf2_section_size.
9771 (dwarf2_symbol_mark_computed): Likewise.
9772
9773 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9774
9775 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9776
9777 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9778
9779 * mips-linux-tdep.c: Include xml-syscall.h.
9780 (mips_linux_get_syscall_number): New function.
9781 (mips_linux_init_abi): Add calls to
9782 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9783 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9784 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9785 * syscalls/mips-n32-linux.xml: New file.
9786 * syscalls/mips-n64-linux.xml: New file.
9787 * syscalls/mips-o32-linux.xml: New file.
9788
9789 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9790
9791 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9792 Complain about inverted range entries.
9793 (dwarf2_record_block_ranges): Likewise.
9794
9795 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9796
9797 Fix some typos.
9798 * breakpoint.c (update_watchpoint): Fix name of the
9799 update_global_location_list function.
9800 (print_one_breakpoint): Fix typo.
9801 (_initialize_breakpoint): Remove extra space in hbreak help
9802 string.
9803 * breakpoint.h (struct bp_location) <length>: Fix field
9804 description.
9805
9806 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9807
9808 * regcache.c (registers_changed_ptid): Don't explictly always
9809 clear `current_regcache'. Only clear current_thread_ptid and
9810 current_thread_arch when PTID matches. Only reinit the frame
9811 cache if PTID matches the current inferior_ptid. Move alloca(0)
9812 call to ...
9813 (registers_changed): ... here.
9814
9815 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9816
9817 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9818 starts with __stack_chk_guard as stack guard symbol.
9819
9820 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9821
9822 * disasm.c (compare_lines): Handle the end of sequence markers
9823 within the line table to better support disassembling over
9824 compilation unit boundaries.
9825
9826 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9827
9828 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9829 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9830 implementation even if no symbols are available.
9831 (thumb_analyze_prologue): Update call to skip_prologue_function.
9832 (arm_analyze_prologue): Likewise.
9833
9834 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9835
9836 * arm-tdep.c: Include "observer.h".
9837 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9838 (arm_exidx_data_key): New static variable.
9839 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9840 (struct arm_exidx_data): Likewise.
9841 (arm_exidx_data_free): New function.
9842 (arm_compare_exidx_entries): Likewise.
9843 (arm_obj_section_from_vma): Likewise.
9844 (arm_exidx_new_objfile): Likewise.
9845 (arm_find_exidx_entry): Likewise.
9846 (arm_exidx_fill_cache): Likewise.
9847 (arm_exidx_unwind_sniffer): Likewise.
9848 (arm_exidx_unwind): New global variable.
9849 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9850 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9851 observer. Register arm_exidx_data_key as objfile data.
9852
9853 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9854
9855 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9856 due to accessing uninitialized variable. Fix indentation.
9857
9858 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9859
9860 * c-valprint.c (c_value_print): When doing virtual base pointer
9861 adjustment, create a new value with adjusted contents rather than
9862 changing the contents of the value being printed (and getting it
9863 wrong).
9864
9865 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9866
9867 * xml-support.c (xml_find_attribute): New.
9868 (xinclude_start_include): Use it.
9869 * xml-support.h (xml_find_attribute): Declare.
9870 * memory-map.c (memory_map_start_memory)
9871 (memory_map_start_property): Use xml_find_attribute.
9872 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9873 xml_find_attribute.
9874 * remote.c (start_thread): Use xml_find_attribute.
9875 * solib-target.c (library_list_start_segment)
9876 (library_list_start_section, library_list_start_library)
9877 (library_list_start_list): Use xml_find_attribute.
9878 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9879 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9880 (tdesc_start_field): Use xml_find_attribute.
9881
9882 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9883
9884 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9885 (BUILD_OCL_VTYPES): Update.
9886
9887 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9888
9889 * configure.ac: Work around non-GNU sed limitation when computing
9890 python version number.
9891 * configure: Regenerate.
9892
9893 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9894
9895 Fix debug printing of TYPE_INSTANCE.
9896 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9897 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9898
9899 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9902 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9903 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9904 * ada-operator.inc: Rename the file to ...
9905 * ada-operator.def: ... here, wrap all the entries by macro OP.
9906 * expprint.c (op_name_standard): Remove all the entries. Include
9907 "std-operator.def" instead.
9908 * expression.h (enum exp_opcode): Include "std-operator.def" and
9909 "ada-operator.def". Move all the entries ...
9910 * std-operator.def: ... here, wrap all the entries by macro OP.
9911
9912 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9913
9914 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9915 * breakpoint.c (remove_jit_event_breakpoints): New function.
9916 * jit.c (jit_descriptor_addr): Delete.
9917 (registering_code): Delete.
9918 (clear_int): Delete.
9919 (jit_inferior_data): New variable.
9920 (struct jit_inferior_data): New type.
9921 (get_jit_inferior_data): New function.
9922 (jit_inferior_data_cleanup): New function.
9923 (jit_read_descriptor): Adjust.
9924 (jit_register_code): Adjust.
9925 (jit_breakpoint_re_set_internal): New function; move code here ...
9926 (jit_inferior_init): ... from here.
9927 (jit_breakpoint_re_set): Adjust.
9928 (jit_reset_inferior_data_and_breakpoints): New function.
9929 (jit_inferior_created_observer): Adjust.
9930 (jit_inferior_exit_hook): Adjust.
9931 (jit_executable_changed_observer): New function.
9932 (jit_event_handler): Adjust.
9933 (_initialize_jit): Adjust.
9934
9935 2011-01-31 Michael Snyder <msnyder@vmware.com>
9936
9937 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9938 line.
9939
9940 2011-01-31 Tom Tromey <tromey@redhat.com>
9941
9942 PR python/12216:
9943 * python/python.c (execute_gdb_command): Call
9944 prevent_dont_repeat.
9945 * top.c (suppress_dont_repeat): New global.
9946 (dont_repeat): Use it.
9947 (prevent_dont_repeat): New function.
9948 * command.h (prevent_dont_repeat): Declare.
9949
9950 2011-01-31 Tom Tromey <tromey@redhat.com>
9951
9952 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9953 * python/py-breakpoint.c (bppy_set_silent): Use
9954 breakpoint_set_silent.
9955 (bppy_set_thread): Use breakpoint_set_thread.
9956 (bppy_set_task): Use breakpoint_set_task.
9957 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9958 (breakpoint_set_task): Declare.
9959 (make_breakpoint_silent): Remove.
9960 * breakpoint.c (breakpoint_set_silent): New function.
9961 (breakpoint_set_thread): Likewise.
9962 (breakpoint_set_task): Likewise.
9963 (make_breakpoint_silent): Remove.
9964
9965 2011-01-31 Tom Tromey <tromey@redhat.com>
9966
9967 * breakpoint.h (user_breakpoint_p): Declare.
9968 * breakpoint.c (user_breakpoint_p): New function.
9969 (breakpoint_1): Use it.
9970 (save_breakpoints): Likewise.
9971
9972 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9973
9974 * configure.ac: Add handling of Python distribution on Windows.
9975 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9976 sysconfig variables are not defined, then do not use them.
9977 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9978 instead. On Windows, return all paths using forward-slashes
9979 rather than backslashes.
9980
9981 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9982
9983 * configure.ac: Remove fallback behavior for building
9984 against Python. Remove tweaking of Python include path.
9985 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9986 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9987 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9988 Always restore CPPFLAGS and LIBS after linking test.
9989 * configure: Regenerated.
9990 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9991 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9992 * python/python-internal.h: Adjust includes of Python .h files.
9993
9994 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9995
9996 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9997 in error message.
9998
9999 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10000
10001 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10002 value test.
10003
10004 2011-01-31 Yao Qi <yao@codesourcery.com>
10005
10006 * arm-linux-nat.c: Update calls to regcache_register_status
10007 instead of regcache_valid_p.
10008 * aix-thread.c: Likewise.
10009 * i386gnu-nat.c: Likewise.
10010
10011 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10012
10013 Fix crash.
10014 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10015 touching TYPE_FIELD_ARTIFICIAL.
10016
10017 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10018
10019 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10020 Committers.
10021
10022 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10023
10024 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10025 selected, don't try iterating over the traceframe's blocks.
10026 (tfile_has_stack): If there's no traceframe selected, then there's
10027 no stack.
10028 (tfile_has_registers): If there's no traceframe selected, then
10029 there's no registers.
10030
10031 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10032
10033 * target.c (memory_xfer_partial): No need to restore shadows if we
10034 haven't read anything.
10035
10036 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10037
10038 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10039 and val_print_scalar_formatted.
10040
10041 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10042
10043 * tracepoint.c (tfile_read): New.
10044 (tfile_open): Use it.
10045 (tfile_get_traceframe_address): Use it.
10046 (tfile_trace_find): Use it.
10047 (walk_blocks_callback_func): New typedef.
10048 (match_blocktype): New function.
10049 (traceframe_walk_blocks): New function.
10050 (traceframe_find_block_type): New function.
10051 (tfile_fetch_registers, tfile_xfer_partial)
10052 (tfile_get_trace_state_variable_value): Use
10053 traceframe_find_block_type and tfile_read.
10054
10055 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10056
10057 * remote-mips.c: Add internationalization mark ups. Remove
10058 trailing \n from already marked up strings.
10059
10060 2011-01-26 Tom Tromey <tromey@redhat.com>
10061
10062 * python/py-prettyprint.c (print_string_repr): Clear
10063 'addressprint' option when calling val_print_string.
10064 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10065 option when calling val_print_string.
10066
10067 2011-01-26 Tom Tromey <tromey@redhat.com>
10068
10069 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10070 GDB_PY_LL_ARG.
10071 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10072 macros.
10073 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10074 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10075 (gdb_py_long_as_ulongest): New defines.
10076 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10077 (gdb_py_int_as_long): Declare.
10078 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10079 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10080 (valpy_long): Add comment.
10081 * python/py-utils.c (get_addr_from_python): Use
10082 gdb_py_long_as_ulongest. Handle overflow properly.
10083 (gdb_py_object_from_longest): New function.
10084 (gdb_py_object_from_ulongest): Likewise.
10085 (gdb_py_int_as_long): Likewise.
10086 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10087 * python/py-symtab.c (salpy_get_pc): Use
10088 gdb_py_long_from_ulongest.
10089 (salpy_get_line): Use PyInt_FromLong.
10090 * python/py-param.c (set_parameter_value): Use
10091 gdb_py_int_as_long.
10092 * python/py-lazy-string.c (stpy_get_address): Use
10093 gdb_py_long_from_ulongest.
10094 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10095 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10096 * python/py-breakpoint.c (bppy_set_thread): Use
10097 gdb_py_int_as_long.
10098 (bppy_set_task): Likewise.
10099 (bppy_set_ignore_count): Likewise.
10100 (bppy_set_hit_count): Likewise.
10101 * python/py-block.c (blpy_get_start): Use
10102 gdb_py_object_from_ulongest.
10103 (blpy_get_end): Likewise.
10104 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10105
10106 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10107
10108 PR/symtab 11766:
10109 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10110 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10111 equality test for objfile, initialize addr_low if needed.
10112
10113 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10114
10115 * tui/tui-regs.c (tui_register_format): Remove dead code.
10116
10117 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10118
10119 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10120 instead of print_scalar_formatted.
10121 (print_scalar_formatted): Don't handle 's' format strings here,
10122 and add an assertion that we never see such format here.
10123 * valprint.h (val_print_scalar_formatted): Declare.
10124 * valprint.c (val_print_scalar_formatted): New.
10125 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10126 instead of print_scalar_formatted.
10127 * jv-valprint.c (java_val_print): Ditto.
10128 * p-valprint.c (pascal_val_print): Ditto.
10129 * ada-valprint.c (ada_val_print_1): Ditto.
10130 * f-valprint.c (f_val_print): Ditto.
10131 * infcmd.c (registers_info): Ditto.
10132 * m2-valprint.c (m2_val_print): Ditto.
10133
10134 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10135
10136 * m2-valprint.c (print_unbounded_array): Pass
10137 value_contents_for_printing rather than value_contents, to
10138 m2_print_array_contents. Also pass in the value.
10139
10140 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10143 (save_gdb_index_command): Switch to .gdb_index version 4.
10144
10145 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10146
10147 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10148 than frame_register, and always pass a valid value to val_print.
10149
10150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10151
10152 Centralize printing "<optimized out>".
10153
10154 * valprint.h (val_print_optimized_out): Declare.
10155 * cp-valprint.c (cp_print_value_fields): Use
10156 val_print_optimized_out.
10157 * jv-valprint.c (java_print_value_fields): Ditto.
10158 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10159 * printcmd.c (print_formatted): Ditto.
10160 * valprint.c (valprint_check_validity): Ditto.
10161 (value_check_printable): Ditto.
10162 (val_print_optimized_out): New.
10163
10164 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10165
10166 * infcmd.c (default_print_registers_info): Allocate values so to
10167 never pass a NULL value to val_print.
10168
10169 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10170
10171 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10172 boolean. Make sure to always pass a value that matches the
10173 contents buffer to callees. Preserve `address' for following
10174 iterations.
10175 * value.c (value_contents_for_printing_const): New.
10176 (value_address): Constify value argument.
10177 * value.h (value_contents_for_printing_const): Declare.
10178 (value_address): Constify value argument.
10179
10180 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10181
10182 * regcache.c (struct regcache_descr): Rename
10183 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10184 and sizeof_cooked_register_valid_p to
10185 sizeof_cooked_register_status.
10186 (init_regcache_descr): Adjust.
10187 (struct regcache): Rename register_valid_p field to
10188 register_status.
10189 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10190 (do_cooked_read): Adjust.
10191 (regcache_valid_p): Rename to ...
10192 (regcache_register_status): ... this. Adjust.
10193 (regcache_invalidate): Adjust.
10194 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10195 Adjust.
10196 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10197 as unavailable, not valid.
10198 (regcache_dump): Adjust.
10199 * regcache.h (enum register_status): New.
10200 (regcache_register_status): Declare.
10201 (regcache_invalidate): Delete declaration.
10202 * corelow.c (get_core_registers): Adjust.
10203 * tracepoint.c (tfile_fetch_registers): Adjust.
10204 * trad-frame.c (REG_VALUE): Rename to ...
10205 (TF_REG_VALUE): ... this.
10206 (REG_UNKNOWN): Rename to ...
10207 (TF_REG_UNKNOWN): ... this.
10208 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10209 * mi/mi-main.c (register_changed_p): Adjust.
10210
10211 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10212
10213 * regcache.c (struct regcache_descr): Remove outdated comment.
10214 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10215 overallocate hack.
10216 (regcache_xmalloc): Rename to ...
10217 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10218 Allocate the regcache type accordingly.
10219 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10220 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10221 cooked registers, not raw.
10222 (regcache_dup_no_passthrough): Delete.
10223 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10224 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10225 mention obsolete write_register_bytes.
10226 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10227
10228 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10229
10230 Stop remote_read_bytes from handling partial reads itself.
10231
10232 * remote-fileio.c: Include target.h.
10233 (remote_fileio_write_bytes): Delete.
10234 (remote_fileio_func_open, remote_fileio_func_write)
10235 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10236 target_read_memory.
10237 (remote_fileio_func_stat): Use target_read_memory and
10238 target_write_memory.
10239 (remote_fileio_func_gettimeofday): Use target_write_memory.
10240 (remote_fileio_func_system): Use target_read_memory.
10241 * remote.c (remote_write_bytes): Make it static.
10242 (remote_read_bytes): Don't handle partial reads here.
10243 * remote.h (remote_read_bytes): Delete declaration.
10244
10245 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10246
10247 Simplify XML parsing a bit.
10248
10249 * xml-support.h (gdb_xml_parse_quick): Declare.
10250 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10251 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10252 parameter.
10253 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10254 gdb_xml_create_parser_and_cleanup_1.
10255 (gdb_xml_parse_quick): New.
10256 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10257 * osdata.c (osdata_parse): Ditto.
10258 * remote.c (remote_threads_info): Ditto.
10259 * solib-target.c (solib_target_parse_libraries): Ditto.
10260 * xml-syscall.c (syscall_parse_xml): Ditto.
10261 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10262
10263 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10264
10265 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10266 with remote-mips.o added to gdb_target_obs.
10267 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10268
10269 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10270
10271 * ada-valprint.c (val_print_packed_array_elements): Pass the
10272 correct struct value to val_print.
10273 (ada_val_print_1): Ditto.
10274
10275 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10276
10277 Don't lose embedded_offset in printing routines throughout.
10278
10279 * valprint.h (val_print_array_elements): Change prototype.
10280 * valprint.c (val_print_array_elements): Add `embedded_offset'
10281 parameter, and adjust to pass it down to val_print, while passing
10282 `valaddr' or `address' unmodified. Take embedded_offset into
10283 account when checking repetitions.
10284 * c-valprint.c (c_val_print): Pass embedded_offset to
10285 val_print_array_elements instead of adjusting `valaddr' and
10286 `address'.
10287 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10288 embedded_offset to val_print_array_elements instead of adjusting
10289 `valaddr'.
10290 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10291 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10292 val_print_array_elements and pascal_object_print_value_fields
10293 instead of adjusting `valaddr'.
10294 (pascal_object_print_value_fields): Add `offset' parameter, and
10295 adjust to use it.
10296 (pascal_object_print_value): Add `offset' parameter, and adjust to
10297 use it.
10298 (pascal_object_print_static_field): Use
10299 value_contents_for_printing/value_embedded_offset, rather than
10300 value_contents.
10301 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10302 parameter, and adjust to use it. Use
10303 value_contents_for_printing/value_embedded_offset, rather than
10304 value_contents.
10305 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10306 (ada_val_print_array): Add `offset' parameter, and adjust to use
10307 it.
10308 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10309 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10310 Instead work with offsets. Use
10311 value_contents_for_printing/value_embedded_offset, rather than
10312 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10313 and use value_from_pointer to extract a target pointer, rather
10314 than value_from_longest.
10315 (print_variant_part): Add `offset' parameter. Replace
10316 `outer_valaddr' parameter by a new `outer_offset' parameter.
10317 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10318 (ada_value_print): Use
10319 value_contents_for_printing/value_embedded_offset, rather than
10320 value_contents.
10321 (print_record): Add `offset' parameter, and adjust to pass it
10322 down.
10323 (print_field_values): Add `offset' parameter. Replace
10324 `outer_valaddr' parameter by a new `outer_offset' parameter.
10325 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10326 Use value_contents_for_printing/value_embedded_offset, rather than
10327 value_contents.
10328 * d-valprint.c (dynamic_array_type): Use
10329 value_contents_for_printing/value_embedded_offset, rather than
10330 value_contents.
10331 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10332 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10333 (java_print_value_fields): Take `offset' into account. Don't
10334 re-adjust `valaddr'. Instead pass down adjusted offsets.
10335 (java_val_print): Take `embedded_offset' into account. Pass it to
10336 java_print_value_fields.
10337 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10338 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10339 down adjusted offsets.
10340 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10341 (f_val_print): Take `embedded_offset' into account.
10342
10343 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10344
10345 * inflow.c: Include "gdbcmd.h".
10346 (interactive_mode): New static global, moved here from top.c.
10347 (show_interactive_mode): New function, moved here from top.c.
10348 use gdb_has_a_terminal instead of input_from_terminal_p to
10349 determine the current mode.
10350 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10351 setting.
10352 (_initialize_inflow): Add the "set/show interactive-mode"
10353 commands. Moved here from top.c, after having adjusted slightly
10354 the help text.
10355 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10356 to inflow.c.
10357 (input_from_terminal_p): Remove handling of "interactive-mode"
10358 setting, moved to infow.c.
10359 (init_main): Remove creation of the "set/show interactive-mode"
10360 commands, moved to inflow.c.
10361
10362 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10363
10364 * NEWS: Add entry for native ia64-hpux support.
10365
10366 2011-01-19 Tom Tromey <tromey@redhat.com>
10367
10368 PR mi/8618:
10369 * thread.c (free_thread): Free 'name'.
10370 (print_thread_info): Emit thread name. Change CLI output.
10371 (thread_name_command): New function.
10372 (do_captured_thread_select): Emit newline.
10373 (_initialize_thread): Register 'thread name' command.
10374 * target.h (struct target_ops) <to_thread_name>: New field.
10375 (target_thread_name): New macro.
10376 * target.c (update_current_target): Handle to_thread_name.
10377 * python/py-infthread.c (thpy_get_name): New function.
10378 (thpy_set_name): Likewise.
10379 (thread_object_getset): Add "name".
10380 * linux-nat.c (linux_nat_thread_name): New function.
10381 (linux_nat_add_target): Set to_thread_name.
10382 * gdbthread.h (struct thread_info) <name>: New field.
10383
10384 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10385
10386 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10387 (ada_val_print_1): Likewise.
10388
10389 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10390
10391 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10392 upper limit address is not greater than the function end address
10393 when the upper limit could not be computed using the debugging
10394 info.
10395
10396 2011-01-17 Tom Tromey <tromey@redhat.com>
10397
10398 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10399 get_regcomp_error.
10400 * utils.c: Include gdb_regex.h.
10401 (do_regfree_cleanup): New function.
10402 (make_regfree_cleanup): Likewise.
10403 (get_regcomp_error): Likewise.
10404 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10405
10406 2011-01-17 Tom Tromey <tromey@redhat.com>
10407
10408 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10409 re_compile_fastmap.
10410
10411 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10412
10413 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10414 for internal variables.
10415 (last_was_structop): New static variable.
10416 (COMPLETE): New token.
10417 (field_exp): New rule to group all '.' suffix handling.
10418 Add mark_struct_expression calls when approriate to be able
10419 to correctly find fields for completion.
10420 (yylex): Adapt to handle field completion and set INTVAR when
10421 required.
10422
10423 2011-01-14 Yao Qi <yao@codesourcery.com>
10424
10425 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10426 save_reggroup, restore_reggroup and all_reggroup.
10427
10428 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10429
10430 * ada-valprint. (ada_printchar): Use the correct type length
10431 in call to ada_emit_char.
10432 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10433
10434 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10435
10436 * solib-som.h (hpux_major_release): Declare variable here.
10437 * solib-som.c: Remove <sys/utsname.h> header.
10438 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10439 (hpux_major_release): Make global, change default value to
10440 DEFAULT_HPUX_MAJOR_RELEASE.
10441 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10442 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10443 Add "solib-som.h" header.
10444 (set_hpux_major_release): New function.
10445 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10446
10447 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10448
10449 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10450
10451 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10452
10453 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10454 new-line at end of warning message.
10455 (ia64_hpux_store_register): Remove trailing new-line at end of
10456 error message.
10457 * ia64-hpux-tdep.c: Rephrase comment.
10458 * solib-ia64-hpux.c (struct dld_info): Change type of field
10459 dld_flags from "long long" to ULONGEST.
10460
10461 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10462
10463 * target.h (deprecated_child_ops): Delete declaration.
10464 * target.c (deprecated_child_ops): Delete definition.
10465
10466 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10467
10468 * Makefile.in (hpux-thread.o): Delete rule.
10469 * configure.ac: Don't check for HPUX DCE threads support.
10470 * configure, config.in: Regenerate.
10471 * hppa-hpux-nat.c (child_suppress_run): Delete.
10472 (hppa_hpux_child_can_run): Delete.
10473 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10474 * hpux-thread.c: Delete.
10475
10476 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10477
10478 * hpux-thread.c (hpux_pid_to_str): Delete.
10479
10480 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10481
10482 * ada-valprint.c (ada_emit_char): Remove strange code.
10483 Check that c is <= UCHAR_MAX before passing it to isascii.
10484 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10485
10486 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10487
10488 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10489 to the case where instream is stdin.
10490
10491 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10492
10493 * ia64-tdep.h (struct regcache): Forward declare.
10494 (struct ia64_infcall_ops): New struct type.
10495 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10496 and "infcall_ops".
10497 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10498 Renames ia64_find_global_pointer.
10499 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10500 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10501 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10502 methods.
10503 (ia64_infcall_ops): New static global constant.
10504 (ia64_gdbarch_init): Set tdep->infcall_ops.
10505 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10506 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10507 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10508 (ia64_hpux_dummy_code): New static global constant.
10509 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10510 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10511 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10512 New function.
10513 (ia64_hpux_infcall_ops): New static global constant.
10514 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10515 for inferior function calls to work properly on ia64-hpux.
10516
10517 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10518
10519 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10520 * ia64-tdep.h (struct frame_info): forward declaration.
10521 (struct gdbarch_tdep): Add field size_of_register_frame.
10522 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10523 to determine the size of the register frame.
10524 (ia64_size_of_register_frame): New function.
10525 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10526 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10527 (IA64_HPUX_UREG_REASON): New macro.
10528 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10529 New functions.
10530 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10531 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10532 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10533 objects.
10534
10535 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10536
10537 Add support for ia64-hpux.
10538 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10539 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10540
10541 * configure.host: Add handling for ia64-hpux hosts. Add associated
10542 floatformats.
10543 * configure.tgt: Add handling for ia64-hpux targets.
10544 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10545 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10546 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10547
10548 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10549
10550 [ttrace] Compute thread list immediately after attach.
10551 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10552 New subprogram.
10553 (inf_ttrace_attach): Use it.
10554
10555 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10556
10557 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10558 if we could not determine the frame's function address. Instead,
10559 use the frame's PC, and then continue.
10560
10561 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10562
10563 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10564 not already defined.
10565
10566 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10567
10568 * ia64-tdep.c (ia64_struct_type_p): New function.
10569 (ia64_extract_return_value): Handle integral values that are
10570 less than 8 bytes long.
10571 (ia64_push_dummy_call): Likewise.
10572
10573 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10574
10575 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10576 floatformat_ia64_ext.
10577 (floatformat_ia64_ext_big): New static const.
10578 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10579
10580 2011-01-12 Tom Tromey <tromey@redhat.com>
10581
10582 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10583 messages.
10584 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10585 (mi_cmd_thread_list_ids): Likewise.
10586 (mi_cmd_data_list_changed_registers): Likewise.
10587 (mi_cmd_data_list_register_values): Likewise.
10588 (mi_cmd_data_write_register_values): Likewise.
10589 (mi_cmd_data_evaluate_expression): Likewise.
10590 (mi_cmd_data_read_memory): Likewise.
10591 (mi_cmd_data_read_memory_bytes): Likewise.
10592 (mi_cmd_data_write_memory): Likewise.
10593 (mi_cmd_enable_timings): Likewise.
10594 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10595 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10596 (mi_cmd_var_delete): Likewise.
10597 (mi_cmd_var_set_format): Likewise.
10598 (mi_cmd_var_show_format): Likewise.
10599 (mi_cmd_var_info_num_children): Likewise.
10600 (mi_cmd_var_list_children): Likewise.
10601 (mi_cmd_var_info_type): Likewise.
10602 (mi_cmd_var_info_expression): Likewise.
10603 (mi_cmd_var_show_attributes): Likewise.
10604 (mi_cmd_var_assign): Likewise.
10605 (mi_cmd_var_update): Likewise.
10606 (mi_cmd_enable_pretty_printing): Likewise.
10607 (mi_cmd_var_set_update_range): Likewise.
10608 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10609 messages.
10610 (mi_cmd_target_file_put): Likewise.
10611 (mi_cmd_target_file_delete): Likewise.
10612 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10613 messages.
10614 (mi_cmd_stack_info_depth): Likewise.
10615 (mi_cmd_stack_list_locals): Likewise.
10616 (mi_cmd_stack_list_args): Likewise.
10617 (mi_cmd_stack_select_frame): Likewise.
10618 (mi_cmd_stack_select_frame): Likewise.
10619 (mi_cmd_stack_info_frame): Likewise.
10620 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10621 messages.
10622 (mi_cmd_file_list_exec_source_files): Likewise.
10623 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10624 (mi_cmd_env_cd): Likewise.
10625 (mi_cmd_env_path): Likewise.
10626 (mi_cmd_env_dir): Likewise.
10627 (mi_cmd_inferior_tty_show): Likewise.
10628 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10629 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10630 (mi_cmd_break_watch): Likewise.
10631
10632 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10633
10634 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10635 (ppc_linux_insert_hw_breakpoint): Likewise.
10636 (ppc_linux_remove_hw_breakpoint): Likewise.
10637 (ppc_linux_insert_watchpoint): Likewise.
10638
10639 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10640 Jan Kratochvil <jan.kratochvil@redhat.com>
10641
10642 PR fortran/11104 and DWARF unbound arrays detection.
10643 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10644 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10645 unspecified upper bound.
10646 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10647 variables array_size_array, tmp_type and offset_item. New variable
10648 array. Remove call to f77_get_upperbound. New variables array_type
10649 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10650 the final call to deprecated_set_value_type.
10651
10652 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10653
10654 Make value allocations more lazy.
10655 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10656 instead of allocate_value and set_value_lazy when possible.
10657 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10658 instead of allocate_value and set_value_lazy.
10659 * findvar.c (value_of_register_lazy): Likewise.
10660 (read_var_value): Remove V preallocation, call just check_typedef in
10661 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10662 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10663 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10664 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10665 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10666 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10667 the end, remove set_value_lazy there.
10668 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10669 instead of allocate_value and set_value_lazy when possible.
10670 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10671 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10672 of allocate_value and set_value_lazy.
10673 (value_from_contents_and_address): Use allocate_value_lazy instead of
10674 allocate_value and set_value_lazy when possible.
10675
10676 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10677
10678 * disasm.c (dump_insns): Support dumping opcodes for MI.
10679 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10680 dumping of instruction opcodes.
10681
10682 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10683
10684 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10685 appropiately.
10686
10687 2011-01-11 Tom Tromey <tromey@redhat.com>
10688
10689 * thread.c (do_captured_thread_select): Emit newline before
10690 printing frame.
10691
10692 2011-01-11 Michael Snyder <msnyder@vmware.com>
10693
10694 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10695 * score-tdep.c: Ditto.
10696 * score-tdep.h: Ditto.
10697 * ser-base.c: Ditto.
10698 * ser-go32.c: Ditto.
10699 * serial.c: Ditto.
10700 * serial.h: Ditto.
10701 * ser-mingw.c: Ditto.
10702 * ser-pipe.c: Ditto.
10703 * ser-tcp.c: Ditto.
10704 * ser-unix.c: Ditto.
10705 * sh64-tdep.c: Ditto.
10706 * shnbsd-nat.c: Ditto.
10707 * sh-tdep.c: Ditto.
10708 * sh-tdep.h: Ditto.
10709 * solib.c: Ditto.
10710 * solib-darwin.c: Ditto.
10711 * solib-frv.c: Ditto.
10712 * solib.h: Ditto.
10713 * solib-irix.c: Ditto.
10714 * solib-osf.c: Ditto.
10715 * solib-pa64.c: Ditto.
10716 * solib-som.c: Ditto.
10717 * solib-spu.c: Ditto.
10718 * solib-sunos.c: Ditto.
10719 * solib-svr4.c: Ditto.
10720 * solist.h: Ditto.
10721 * sol-thread.c: Ditto.
10722 * somread.c: Ditto.
10723 * source.c: Ditto.
10724 * source.h: Ditto.
10725 * sparc64-linux-tdep.c: Ditto.
10726 * sparc64-tdep.c: Ditto.
10727 * sparc-linux-nat.c: Ditto.
10728 * sparc-linux-tdep.c: Ditto.
10729 * sparc-sol2-nat.c: Ditto.
10730 * sparc-sol2-tdep.c: Ditto.
10731 * sparc-tdep.c: Ditto.
10732 * sparc-tdep.h: Ditto.
10733 * spu-tdep.c: Ditto.
10734 * stabsread.c: Ditto.
10735 * stabsread.h: Ditto.
10736 * stack.c: Ditto.
10737 * symfile.c: Ditto.
10738 * symfile.h: Ditto.
10739 * symmisc.c: Ditto.
10740 * symtab.c: Ditto.
10741 * symtab.h: Ditto.
10742 * target.c: Ditto.
10743 * target-descriptions.c: Ditto.
10744 * target-descriptions.h: Ditto.
10745 * target.h: Ditto.
10746 * target-memory.c: Ditto.
10747 * terminal.h: Ditto.
10748 * thread.c: Ditto.
10749 * top.c: Ditto.
10750 * tracepoint.c: Ditto.
10751 * tracepoint.h: Ditto.
10752 * trad-frame.h: Ditto.
10753 * typeprint.c: Ditto.
10754
10755 2011-01-11 Michael Snyder <msnyder@vmware.com>
10756
10757 * ui-file.c: Comment cleanup, mostly periods and spaces.
10758 * ui-file.h: Ditto.
10759 * ui-out.c: Ditto.
10760 * ui-out.h: Ditto.
10761 * utils.c: Ditto.
10762 * v850-tdep.c: Ditto.
10763 * valarith.c: Ditto.
10764 * valops.c: Ditto.
10765 * valprint.c: Ditto.
10766 * valprint.h: Ditto.
10767 * value.c: Ditto.
10768 * value.h: Ditto.
10769 * varobj.c: Ditto.
10770 * varobj.h: Ditto.
10771 * vax-tdep.c: Ditto.
10772 * vec.c: Ditto.
10773 * vec.h: Ditto.
10774 * version.h: Ditto.
10775 * windows-nat.c: Ditto.
10776 * windows-tdep.c: Ditto.
10777 * xcoffread.c: Ditto.
10778 * xcoffsolib.c: Ditto.
10779 * xml-support.c: Ditto.
10780 * xstormy16-tdep.c: Ditto.
10781 * xtensa-tdep.c: Ditto.
10782 * xtensa-tdep.h: Ditto.
10783
10784 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10785
10786 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10787 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10788
10789 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10790 Thiago Jung Bauermann <bauerman@br.ibm.com>
10791
10792 Implement support for PowerPC BookE ranged watchpoints.
10793 * breakpoint.h
10794 (struct breakpoint_ops) <resources_needed>: New method.
10795 Initialize to NULL in all existing breakpoint_ops instances.
10796 (struct breakpoint) <exact>: New field.
10797 (target_exact_watchpoints): Declare external global.
10798 * breakpoint.c (target_exact_watchpoints): New global flag.
10799 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10800 b->enable_state to bp_enabled before calling
10801 hw_watchpoint_used_count.
10802 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10803 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10804 if available.
10805 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10806 if the watchpoint is exact.
10807 (resources_needed_watchpoint): New function.
10808 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10809 (watch_command_1): Set b->exact if the user asked for an exact
10810 watchpoint and one can be set.
10811 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10812 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10813 the user asks for an exact watchpoint and one can be set. Return
10814 number of needed debug registers to watch the expression.
10815 * gdbtypes.c (is_scalar_type): New function, based on
10816 valprint.c:scalar_type_p.
10817 (is_scalar_type_recursive): New function.
10818 * gdbtypes.h (is_scalar_type_recursive): Declare.
10819 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10820 handle regions when ranged watchpoints are available.
10821 (create_watchpoint_request): New function.
10822 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10823 create_watchpoint_request.
10824 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10825 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10826 `set powerpc' and `show powerpc' commands.
10827 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10828 Mention documentation comment in the target macro.
10829 (target_region_ok_for_hw_watchpoint): Document return value.
10830
10831 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10832
10833 * breakpoint.c (update_watchpoint): Decide on using a software or
10834 hardware watchpoint after the bp_locations are created.
10835
10836 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10837
10838 Convert hardware watchpoints to use breakpoint_ops.
10839 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10840 <insert_location>: ... this. Return int instead of void.
10841 Accept pointer to struct bp_location instead of pointer to
10842 struct breakpoint. Adapt all implementations.
10843 (breakpoint_ops) <remove>: Rename to...
10844 <remove_location>: ... this. Accept pointer to struct bp_location
10845 instead of pointer to struct breakpoint. Adapt all implementations.
10846 * breakpoint.c (insert_catchpoint): Delete function.
10847 (insert_bp_location): Call the watchpoint or catchpoint's
10848 breakpoint_ops.insert method.
10849 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10850 breakpoint_ops.remove method.
10851 (insert_watchpoint, remove_watchpoint): New functions.
10852 (watchpoint_breakpoint_ops): New structure.
10853 (watch_command_1): Initialize the OPS field.
10854 * inf-child.c (inf_child_insert_fork_catchpoint)
10855 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10856 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10857 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10858 Delete functions.
10859 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10860 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10861 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10862 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10863 * target.c (update_current_target): Change default implementation of
10864 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10865 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10866 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10867 to_set_syscall_catchpoint to return_one.
10868 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10869 (debug_to_insert_exec_catchpoint): Report return value.
10870 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10871 (to_insert_exec_catchpoint): Change declaration to return int instead
10872 of void.
10873
10874 2011-01-11 Michael Snyder <msnyder@vmware.com>
10875
10876 * arm-tdep.c: Internationalization.
10877 * c-lang.c: Ditto.
10878 * charset.c: Ditto.
10879 * fork-child.c: Ditto.
10880 * nto-procfs.c: Ditto.
10881 * ppc-sysv-tdep.c: Ditto.
10882 * procfs.c: Ditto.
10883 * remote-mips.c: Ditto.
10884 * remote.c: Ditto.
10885 * rs6000-nat.c: Ditto.
10886 * rs6000-tdep.c: Ditto.
10887 * target.c: Ditto.
10888 * valops.c: Ditto.
10889 * value.c: Ditto.
10890 * xml-support.c: Ditto.
10891 * mi/mi-cmd-break.c: Ditto.
10892 * mi/mi-cmd-var.c: Ditto.
10893 * mi/mi-interp.c: Ditto.
10894 * mi/mi-main.c: Ditto.
10895
10896 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10897
10898 * remote-sim.c (gdbsim_store_register): Update API to
10899 sim_store_register to check more error conditions.
10900
10901 2011-01-10 Michael Snyder <msnyder@vmware.com>
10902
10903 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10904 * nto-tdep.c: Ditto.
10905 * nto-tdep.h: Ditto.
10906 * objc-exp.y: Ditto.
10907 * objc-lang.c: Ditto.
10908 * objfiles.c: Ditto.
10909 * objfiles.h: Ditto.
10910 * observer.c: Ditto.
10911 * opencl-lang.c: Ditto.
10912 * osabi.c: Ditto.
10913 * parse.c: Ditto.
10914 * parser-defs.h: Ditto.
10915 * p-exp.y: Ditto.
10916 * p-lang.c: Ditto.
10917 * posix-hdep.c: Ditto.
10918 * ppcbug-rom.c: Ditto.
10919 * ppc-linux-nat.c: Ditto.
10920 * ppc-linux-tdep.c: Ditto.
10921 * ppc-linux-tdep.h: Ditto.
10922 * ppcnbsd-tdep.c: Ditto.
10923 * ppcobsd-tdep.c: Ditto.
10924 * ppcobsd-tdep.h: Ditto.
10925 * ppc-sysv-tdep.c: Ditto.
10926 * ppc-tdep.h: Ditto.
10927 * printcmd.c: Ditto.
10928 * proc-abi.c: Ditto.
10929 * proc-flags.c: Ditto.
10930 * procfs.c: Ditto.
10931 * proc-utils.h: Ditto.
10932 * progspace.h: Ditto.
10933 * prologue-value.c: Ditto.
10934 * prologue-value.h: Ditto.
10935 * psympriv.h: Ditto.
10936 * psymtab.c: Ditto.
10937 * p-typeprint.c: Ditto.
10938 * p-valprint.c: Ditto.
10939 * ravenscar-sparc-thread.c: Ditto.
10940 * ravenscar-thread.c: Ditto.
10941 * ravenscar-thread.h: Ditto.
10942 * record.c: Ditto.
10943 * regcache.c: Ditto.
10944 * regcache.h: Ditto.
10945 * remote.c: Ditto.
10946 * remote-fileio.c: Ditto.
10947 * remote-fileio.h: Ditto.
10948 * remote.h: Ditto.
10949 * remote-m32r-sdi.c: Ditto.
10950 * remote-mips.c: Ditto.
10951 * remote-sim.c: Ditto.
10952 * rs6000-aix-tdep.c: Ditto.
10953 * rs6000-nat.c: Ditto.
10954 * rs6000-tdep.c: Ditto.
10955
10956 2011-01-10 Michael Snyder <msnyder@vmware.com>
10957
10958 * charset.c (validate): Internationalization.
10959 * coffread.c (read_one_sym): Ditto.
10960 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10961 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10962 * inflow.c (new_tty): Ditto.
10963 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10964 * m32c-tdep.c (m32c_return_value): Ditto.
10965 * mep-tdep.c (mep_store_return_value): Ditto.
10966 * score-tdep.c (score7_fetch_insn): Ditto.
10967 * ser-mingw.c (pipe_windows_open): Ditto.
10968 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10969 * spu-tdep.c (spu_register_type): Ditto.
10970 * tracepoint.c (trace_find_command): Ditto.
10971 * valarith.c (value_pos): Ditto.
10972
10973 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10974
10975 * ada-valprint.c (printstr): Minor comment reformatting.
10976
10977 2011-01-08 Michael Snyder <msnyder@vmware.com>
10978
10979 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10980 markup.
10981
10982 2011-01-08 Michael Snyder <msnyder@vmware.com>
10983
10984 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10985 * hppa-hpux-tdep.c: Ditto.
10986 * hppa-linux-nat.c: Ditto.
10987 * hppa-linux-tdep.c: Ditto.
10988 * hppanbsd-tdep.c: Ditto.
10989 * hppa-tdep.c: Ditto.
10990 * hppa-tdep.h: Ditto.
10991 * hpux-thread.c: Ditto.
10992 * i386-cygwin-tdep.c: Ditto.
10993 * i386-darwin-nat.c: Ditto.
10994 * i386gnu-nat.c: Ditto.
10995 * i386-linux-nat.c: Ditto.
10996 * i386-linux-tdep.c: Ditto.
10997 * i386-nat.c: Ditto.
10998 * i386-nat.h: Ditto.
10999 * i386nbsd-tdep.c: Ditto.
11000 * i386-sol2-nat.c: Ditto.
11001 * i386-stub.c: Ditto.
11002 * i386-tdep.c: Ditto.
11003 * i386-tdep.h: Ditto.
11004 * i387-tdep.c: Ditto.
11005 * ia64-linux-nat.c: Ditto.
11006 * ia64-linux-tdep.c: Ditto.
11007 * ia64-tdep.c: Ditto.
11008 * infcall.c: Ditto.
11009 * infcall.h: Ditto.
11010 * infcmd.c: Ditto.
11011 * inferior.c: Ditto.
11012 * inferior.h: Ditto.
11013 * infloop.c: Ditto.
11014 * inflow.c: Ditto.
11015 * infrun.c: Ditto.
11016 * interps.c: Ditto.
11017 * interps.h: Ditto.
11018 * iq2000-tdep.c: Ditto.
11019 * irix5-nat.c: Ditto.
11020 * jit.c: Ditto.
11021 * jit.h: Ditto.
11022 * jv-exp.y: Ditto.
11023 * jv-lang.c: Ditto.
11024 * jv-lang.h: Ditto.
11025 * jv-typeprint.c: Ditto.
11026 * jv-valprint.c: Ditto.
11027 * language.c: Ditto.
11028 * language.h: Ditto.
11029 * linespec.c: Ditto.
11030 * linux-fork.c: Ditto.
11031 * linux-nat.c: Ditto.
11032 * linux-thread-db.c: Ditto.
11033 * lm32-tdep.c: Ditto.
11034
11035 2011-01-08 Michael Snyder <msnyder@vmware.com>
11036
11037 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11038 * m2-lang.c: Ditto.
11039 * m2-typeprint.c: Ditto.
11040 * m2-valprint.c: Ditto.
11041 * m32c-tdep.c: Ditto.
11042 * m32r-linux-nat.c: Ditto.
11043 * m32r-rom.c: Ditto.
11044 * m32r-tdep.c: Ditto.
11045 * m32r-tdep.h: Ditto.
11046 * m68hc11-tdep.c: Ditto.
11047 * m58klinux-nat.c: Ditto.
11048 * m68k-tdep.c: Ditto.
11049 * m88k-tdep.c: Ditto.
11050 * m88k-tdep.h: Ditto.
11051 * machoread.c: Ditto.
11052 * macrocmd.c: Ditto.
11053 * macroexp.c: Ditto.
11054 * macrotab.c: Ditto.
11055 * main.c: Ditto.
11056 * maint.c: Ditto.
11057 * mdebugread.c: Ditto.
11058 * mdebugread.h: Ditto.
11059 * memattr.c: Ditto.
11060 * memattr.h: Ditto.
11061 * memory-map.h: Ditto.
11062 * mep-tdep.c: Ditto.
11063 * microblaze-rom.c: Ditto.
11064 * microblaze-tdep.c: Ditto.
11065 * minsyms.c: Ditto.
11066 * mips-irix-tdep.c: Ditto.
11067 * mips-linux-nat.c: Ditto.
11068 * mips-linux-tdep.c: Ditto.
11069 * mips-linux-tdep.h: Ditto.
11070 * mipsnbsd-nat.c: Ditto.
11071 * mipsnbsd-tdep.c: Ditto.
11072 * mipsread.c: Ditto.
11073 * mips-tdep.c: Ditto.
11074 * mips-tdep.h: Ditto.
11075 * mn10300-linux-tdep.c: Ditto.
11076 * mn10300-tdep.c: Ditto.
11077 * mn10300-tdep.h: Ditto.
11078 * monitor.c: Ditto.
11079 * monitor.h: Ditto.
11080 * moxie-tdep.c: Ditto.
11081 * moxie-tdep.h: Ditto.
11082 * mt-tdep.c: Ditto.
11083
11084 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11085
11086 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11087
11088 2011-01-08 Robert Millan <rmh@gnu.org>
11089
11090 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11091
11092 2011-01-07 Michael Snyder <msnyder@vmware.com>
11093
11094 * charset.c (_initialize_charset): Fix typo in string.
11095
11096 2011-01-07 Michael Snyder <msnyder@vmware.com>
11097
11098 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11099 for i18n.
11100 * tui/tui-layout.c (tui_set_layout_for_display_command):
11101 Split line so that operator goes to beginning of line.
11102 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11103 assignment out of if statement.
11104
11105 2011-01-07 Michael Snyder <msnyder@vmware.com>
11106
11107 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11108 * ada-lang.h: Ditto.
11109 * ada-tasks.c: Ditto.
11110 * ada-valprint.c: Ditto.
11111 * aix-threads.c: Ditto.
11112 * alpha-linux-nat.c: Ditto.
11113 * alpha-linux-tdep.c: Ditto.
11114 * alpha-mdebug-tdep.c: Ditto.
11115 * alpha-nat.c: Ditto.
11116 * alpha-osf1-tdep.c: Ditto.
11117 * alpha-tdep.c: Ditto.
11118 * alphabsd-nat.c: Ditto.
11119 * alphabsd-tdep.c: Ditto.
11120 * amd64-darwin-tdep.c: Ditto.
11121 * amd64-linux-nat.c: Ditto.
11122 * amd64-linux-tdep.c: Ditto.
11123 * amd64-sol2-tdep.c: Ditto.
11124 * amd64-tdep.c: Ditto.
11125 * amd64-fbsd-tdep.c: Ditto.
11126 * amd64-nbsd-tdep.c: Ditto.
11127 * amd64-obsd-tdep.c: Ditto.
11128 * amd64-linux-nat.c: Ditto.
11129 * amd64-linux-tdep.c: Ditto.
11130 * arm-tdep.c: Ditto.
11131 * arm-tdep.h: Ditto.
11132 * armnbsd-nat.c: Ditto.
11133 * avr-tdep.c: Ditto.
11134 * bfin-tdep.c: Ditto.
11135 * bsd-kvm.c: Ditto.
11136 * c-typeprintc: Ditto.
11137 * c-valprint.c: Ditto.
11138 * coff-pe-read.h: Ditto.
11139 * coffreead.c: Ditto.
11140 * cris-tdep.c: Ditto.
11141 * d-lang.c: Ditto.
11142 * darwin-nat-info.c: Ditto.
11143 * darwin-nat.c: Ditto.
11144 * dbug-rom.c: Ditto.
11145 * dbxread.c: Ditto.
11146 * dcache.c: Ditto.
11147 * dcache.h: Ditto.
11148 * dec-thread.c: Ditto.
11149 * defs.h: Ditto.
11150 * demangle.c: Ditto.
11151 * dicos-tdep.c: Ditto.
11152 * dictionary.c: Ditto.
11153 * dictionary.h: Ditto.
11154 * dink32-rom.c: Ditto.
11155 * disasm.c: Ditto.
11156 * doublest.c: Ditto.
11157 * dsrec.c: Ditto.
11158 * dummy-frame.c: Ditto.
11159 * dwarf2-frame.c: Ditto.
11160 * dwarf2expr.c: Ditto.
11161 * dwarf2loc.c: Ditto.
11162 * dwarf2read.c: Ditto.
11163 * elfread.c: Ditto.
11164 * environ.c: Ditto.
11165 * eval.c: Ditto.
11166 * event-top.h: Ditto.
11167 * exceptions.c: Ditto.
11168 * exceptions.h: Ditto.
11169 * exec.c: Ditto.
11170 * expprint.c: Ditto.
11171 * expression.h: Ditto.
11172 * f-exp.y: Ditto.
11173 * f-lang.c: Ditto.
11174 * f-lang.h: Ditto.
11175 * f-typeprint.c: Ditto.
11176 * f-valprint.c: Ditto.
11177 * fbsd-nat.c: Ditto.
11178 * findvar.c: Ditto.
11179 * fork-child.c: Ditto.
11180 * frame.c: Ditto.
11181 * frame.h: Ditto.
11182 * frv-linux-tdep.c: Ditto.
11183 * frv-tdep.c: Ditto.
11184 * gcore.c: Ditto.
11185 * gdb-stabs.h: Ditto.
11186 * gdb_assert.h: Ditto.
11187 * gdb_string.h: Ditto.
11188 * gdb_thread_db.h: Ditto.
11189 * gdb_wait.h: Ditto.
11190 * gdbarch.sh: Ditto.
11191 * gdbcore.h: Ditto.
11192 * gdbthread.h: Ditto.
11193 * gdbtypes.c: Ditto.
11194 * gdbtypes.h: Ditto.
11195 * gnu-nat.c: Ditto.
11196 * gnu-nat.h: Ditto.
11197 * gnu-v2-abi.c: Ditto.
11198 * gnu-v3-abi.c: Ditto.
11199 * go32-nat.c: Ditto.
11200 * gdbarch.c: Regenerate.
11201 * gdbarch.h: Regenerate.
11202
11203 2011-01-07 Michael Snyder <msnyder@vmware.com>
11204
11205 * ax-gdb.c: Adjust some long output strings.
11206 * breakpoint.c: Ditto.
11207 * charset.c: Ditto.
11208 * cp-abi.c: Ditto.
11209 * infcall.c: Ditto.
11210 * infrun.c: Ditto.
11211 * linux-nat.c: Ditto.
11212 * solib-pa64.c: Ditto.
11213 * solib-som.c: Ditto.
11214
11215 2011-01-06 Tom Tromey <tromey@redhat.com>
11216
11217 PR python/12367:
11218 * NEWS: Add item.
11219 * python/python.c (GdbMethods): Add "newest_frame" method.
11220 * python/python-internal.h (gdbpy_newest_frame): Declare.
11221 * python/py-frame.c (gdbpy_newest_frame): New function.
11222
11223 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11224
11225 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11226 * jit.c (jit_debug): New variable.
11227 (show_jit_debug): New function.
11228 (struct target_buffer): Use ULONGEST.
11229 (bfd_open_from_target_memory): Likewise.
11230 (jit_register_code, jit_inferior_init): Add debug output.
11231 (_initialize_jit): Register "debug jit" command.
11232
11233 2011-01-06 Tom Tromey <tromey@redhat.com>
11234
11235 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11236 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11237 and ARCH_FRAME.
11238
11239 2011-01-06 Tom Tromey <tromey@redhat.com>
11240
11241 * python/py-frame.c (frapy_block): Use get_frame_block.
11242
11243 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11244
11245 Do not stop on SIGPRIO signals by default
11246 * infrun.c (_initialize_infrun): Unset signal_stop and
11247 signal_print for TARGET_SIGNAL_PRIO.
11248
11249 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11250
11251 * ada-tasks.c: Fix style violation in comment.
11252
11253 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11254
11255 * linespec.c (decode_compound, find_method): Remove trailing \n
11256 at end of error string.
11257 * solib-irix.c (irix_current_sos): Likewise.
11258 * varobj.c (uninstall_variable): Likewise.
11259
11260 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11261
11262 * copyright.py: New script.
11263 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11264 Launch emacs without exec'ing. Call copyright.py afterwards.
11265
11266 2011-01-05 Michael Snyder <msnyder@vmware.com>
11267
11268 * addrmap.c: Shorten lines of >= 80 columns.
11269 * arch-utils.c: Ditto.
11270 * arch-utils.h: Ditto.
11271 * ax-gdb.c: Ditto.
11272 * ax-general.c: Ditto.
11273 * bcache.c: Ditto.
11274 * blockframe.c: Ditto.
11275 * breakpoint.c: Ditto.
11276 * buildsym.c: Ditto.
11277 * c-lang.c: Ditto.
11278 * c-typeprint.c: Ditto.
11279 * charset.c: Ditto.
11280 * coffread.c: Ditto.
11281 * command.h: Ditto.
11282 * corelow.c: Ditto.
11283 * cp-abi.c: Ditto.
11284 * cp-namespace.c: Ditto.
11285 * cp-support.c: Ditto.
11286 * dbug-rom.c: Ditto.
11287 * dbxread.c: Ditto.
11288 * defs.h: Ditto.
11289 * dfp.c: Ditto.
11290 * dfp.h: Ditto.
11291 * dictionary.c: Ditto.
11292 * disasm.c: Ditto.
11293 * doublest.c: Ditto.
11294 * dwarf2-frame.c: Ditto.
11295 * dwarf2expr.c: Ditto.
11296 * dwarf2loc.c: Ditto.
11297 * dwarf2read.c: Ditto.
11298 * elfread.c: Ditto.
11299 * eval.c: Ditto.
11300 * event-loop.c: Ditto.
11301 * event-loop.h: Ditto.
11302 * exceptions.h: Ditto.
11303 * exec.c: Ditto.
11304 * expprint.c: Ditto.
11305 * expression.h: Ditto.
11306 * f-lang.c: Ditto.
11307 * f-valprint.c: Ditto.
11308 * findcmd.c: Ditto.
11309 * frame-base.c: Ditto.
11310 * frame-unwind.c: Ditto.
11311 * frame-unwind.h: Ditto.
11312 * frame.c: Ditto.
11313 * frame.h: Ditto.
11314 * gcore.c: Ditto.
11315 * gdb-stabs.h: Ditto.
11316 * gdb_assert.h: Ditto.
11317 * gdb_dirent.h: Ditto.
11318 * gdb_obstack.h: Ditto.
11319 * gdbcore.h: Ditto.
11320 * gdbtypes.c: Ditto.
11321 * gdbtypes.h: Ditto.
11322 * inf-ttrace.c: Ditto.
11323 * infcall.c: Ditto.
11324 * infcmd.c: Ditto.
11325 * inflow.c: Ditto.
11326 * infrun.c: Ditto.
11327 * inline-frame.h: Ditto.
11328 * language.c: Ditto.
11329 * language.h: Ditto.
11330 * libunwind-frame.c: Ditto.
11331 * libunwind-frame.h: Ditto.
11332 * linespec.c: Ditto.
11333 * linux-nat.c: Ditto.
11334 * linux-nat.h: Ditto.
11335 * linux-thread-db.c: Ditto.
11336 * machoread.c: Ditto.
11337 * macroexp.c: Ditto.
11338 * macrotab.c: Ditto.
11339 * main.c: Ditto.
11340 * maint.c: Ditto.
11341 * mdebugread.c: Ditto.
11342 * memattr.c: Ditto.
11343 * minsyms.c: Ditto.
11344 * monitor.c: Ditto.
11345 * monitor.h: Ditto.
11346 * objfiles.c: Ditto.
11347 * objfiles.h: Ditto.
11348 * osabi.c: Ditto.
11349 * p-typeprint.c: Ditto.
11350 * p-valprint.c: Ditto.
11351 * parse.c: Ditto.
11352 * printcmd.c: Ditto.
11353 * proc-events.c: Ditto.
11354 * procfs.c: Ditto.
11355 * progspace.c: Ditto.
11356 * progspace.h: Ditto.
11357 * psympriv.h: Ditto.
11358 * psymtab.c: Ditto.
11359 * record.c: Ditto.
11360 * regcache.c: Ditto.
11361 * regcache.h: Ditto.
11362 * remote-fileio.c: Ditto.
11363 * remote.c: Ditto.
11364 * ser-mingw.c: Ditto.
11365 * ser-tcp.c: Ditto.
11366 * ser-unix.c: Ditto.
11367 * serial.c: Ditto.
11368 * serial.h: Ditto.
11369 * solib-frv.c: Ditto.
11370 * solib-irix.c: Ditto.
11371 * solib-osf.c: Ditto.
11372 * solib-pa64.c: Ditto.
11373 * solib-som.c: Ditto.
11374 * solib-sunos.c: Ditto.
11375 * solib-svr4.c: Ditto.
11376 * solib-target.c: Ditto.
11377 * solib.c: Ditto.
11378 * somread.c: Ditto.
11379 * source.c: Ditto.
11380 * stabsread.c: Ditto.
11381 * stabsread.c: Ditto.
11382 * stack.c: Ditto.
11383 * stack.h: Ditto.
11384 * symfile-mem.c: Ditto.
11385 * symfile.c: Ditto.
11386 * symfile.h: Ditto.
11387 * symmisc.c: Ditto.
11388 * symtab.c: Ditto.
11389 * symtab.h: Ditto.
11390 * target-descriptions.c: Ditto.
11391 * target-memory.c: Ditto.
11392 * target.c: Ditto.
11393 * target.h: Ditto.
11394 * terminal.h: Ditto.
11395 * thread.c: Ditto.
11396 * top.c: Ditto.
11397 * tracepoint.c: Ditto.
11398 * tracepoint.h: Ditto.
11399 * ui-file.c: Ditto.
11400 * ui-file.h: Ditto.
11401 * ui-out.h: Ditto.
11402 * user-regs.c: Ditto.
11403 * user-regs.h: Ditto.
11404 * utils.c: Ditto.
11405 * valarith.c: Ditto.
11406 * valops.c: Ditto.
11407 * valprint.c: Ditto.
11408 * valprint.h: Ditto.
11409 * value.c: Ditto.
11410 * varobj.c: Ditto.
11411 * varobj.h: Ditto.
11412 * vec.h: Ditto.
11413 * xcoffread.c: Ditto.
11414 * xcoffsolib.c: Ditto.
11415 * xcoffsolib.h: Ditto.
11416 * xml-syscall.c: Ditto.
11417 * xml-tdesc.c: Ditto.
11418
11419 2011-01-05 Michael Snyder <msnyder@vmware.com>
11420
11421 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11422 * cli/cli-decode.c: Ditto.
11423 * cli/cli-dump.c: Ditto.
11424 * cli/cli-logging.c: Ditto.
11425 * cli/cli-script.c: Ditto.
11426 * cli/cli-setshow.c: Ditto.
11427 * common/signals.c: Ditto.
11428 * mi/mi-cmd-break.c: Ditto.
11429 * mi/mi-cmd-disas.c: Ditto.
11430 * mi/mi-cmd-stack.c: Ditto.
11431 * mi/mi-cmd-var.c: Ditto.
11432 * mi/mi-cmds.c: Ditto.
11433 * mi/mi-common.h: Ditto.
11434 * mi/mi-console.c: Ditto.
11435 * mi/mi-interp.c: Ditto.
11436 * mi/mi-main.c: Ditto.
11437 * osf-share/cma_attr.c: Ditto.
11438 * osf-share/cma_deb_core.h: Ditto.
11439 * osf-share/cma_debug_client.h: Ditto.
11440 * osf-share/cma_handle.h: Ditto.
11441 * osf-share/cma_mutex.h: Ditto.
11442 * osf-share/cma_stack_int.h: Ditto.
11443 * osf-share/cma_tcb_defs.h: Ditto.
11444 * python/py-auto-load.c: Ditto.
11445 * python/py-breakpoint.c: Ditto.
11446 * python/py-cmd.c: Ditto.
11447 * python/py-frame.c: Ditto.
11448 * python/py-objfile.c: Ditto.
11449 * python/py-param.c: Ditto.
11450 * python/py-progspace.c: Ditto.
11451 * python/py-symbol.c: Ditto.
11452 * python/py-value.c: Ditto.
11453 * python/python-internal.h: Ditto.
11454 * python/python.c: Ditto.
11455 * tui/tui-data.c: Ditto.
11456 * tui/tui-disasm.c: Ditto.
11457 * tui/tui-hooks.c: Ditto.
11458 * tui/tui-io.c: Ditto.
11459 * tui/tui-layout.c: Ditto.
11460 * tui/tui-regs.c: Ditto.
11461 * tui/tui-source.c: Ditto.
11462 * tui/tui-stack.c: Ditto.
11463 * tui/tui-win.c: Ditto.
11464 * tui/tui-windata.c: Ditto.
11465 * tui/tui-winsource.c: Ditto.
11466
11467 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11468
11469 * configure.ac, gdb.1: Copyright year update.
11470
11471 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11472
11473 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11474 this_pc_in_block, morestack_msym and morestack_name. Check for
11475 "__morestack" minimal symbol there.
11476
11477 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11478
11479 * symfile.c (find_sym_fns): Add call to dont_repeat.
11480
11481 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11482
11483 Copyright year update in most files (performed by copyright.sh).
11484
11485 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11486
11487 * top.c (print_gdb_version): Update copyright year in version output.
11488
11489 For older changes see ChangeLog-2010.
11490 \f
11491 Local Variables:
11492 mode: change-log
11493 left-margin: 8
11494 fill-column: 74
11495 version-control: never
11496 coding: utf-8
11497 End:
This page took 0.284148 seconds and 4 git commands to generate.