bcd401e7f17fc08413dad7abb82e2ebd9c1620d6
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-05 Pedro Alves <pedro@codesourcery.com>
2
3 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
4 Reinstate perror_with_name call on ptrace error. Remove #if 0.
5 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
6 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
7
8 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
9
10 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
11 `i'(-Wshadow).
12
13 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
14
15 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
16
17 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
18
19 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
20 of `tdep'(-Wshadow).
21
22 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
23
24 Fix compilation --without-expat.
25 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
26 from ...
27 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
28
29 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
30 Jan Kratochvil <jan.kratochvil@redhat.com>
31
32 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
33 * features/library-list-svr4.dtd: New file.
34 * remote.c (PACKET_qXfer_libraries_svr4): New.
35 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
36 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
37 * solib-svr4.c (struct svr4_library_list): New.
38 [HAVE_LIBEXPAT]: Include xml-support.h.
39 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
40 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
41 [HAVE_LIBEXPAT] (svr4_library_list_children)
42 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
43 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
44 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
45 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
46 (svr4_read_so_list): Extend the corruption message by addresses.
47 (svr4_current_sos): New variable library_list, call
48 svr4_current_sos_via_xfer_libraries.
49 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
50
51 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 PR threads/13448
54 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
55 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
56
57 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
58
59 PR breakpoints/13346
60 * dwarf2read.c (process_psymtab_comp_unit): Set
61 PSYMTABS_ADDRMAP_SUPPORTED.
62 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
63 validity. New field psymtabs_addrmap_supported.
64 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
65 psymtabs_addrmap_supported.
66 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
67 !PSYMTABS_ADDRMAP_SUPPORTED.
68 (dump_psymtab, maintenance_info_psymtabs): Print also
69 psymtabs_addrmap_supported.
70
71 2011-12-01 Doug Evans <dje@google.com>
72
73 * python/py-type.c (type_object_methods): Fix "array" doc string.
74
75 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
76
77 * source.c (print_source_lines_base): Fix missing braces on else
78 clause leading to additional output.
79
80 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * s390-nat.c (SUBOFF): Remove.
83 (s390_native_supply, s390_native_collect): New functions.
84 (supply_gregset, supply_fpregset): Use s390_native_supply.
85 (fill_gregset, fill_fpregset): Use s390_native_collect.
86
87 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
88 (s390_unwind_pseudo_register): New function.
89 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
90 registers instead of PC and CC.
91 (s390_backchain_frame_unwind_cache): Likewise.
92 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
93 full GPR pseudos.
94 (s390_trad_frame_prev_register): New function.
95 (s390_frame_prev_register): Use it.
96 (s390_sigtramp_frame_prev_register): Likewise.
97 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
98 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
99 special callback to unwind any pseudo.
100
101 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
102 * features/s390-core64.xml: Likewise.
103 * features/s390x-core64.xml: Likewise.
104 * features/s390-linux32.c: Regenerate.
105 * features/s390-linux64.c: Likewise.
106 * features/s390x-linux64.c: Likewise.
107
108 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
109
110 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
111
112 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
113
114 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
115 instruction. Add more diagnostic output.
116
117 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
118
119 * MAINTAINERS (Write After Approval): Add myself to the list.
120
121 2011-11-29 Sanjoy Das <sdas@igalia.com>
122
123 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
124 (jit_bfd_try_read_symtab): Fix comments.
125
126 2011-11-28 DJ Delorie <dj@redhat.com>
127
128 * NEWS: Mention RL78 simulator.
129
130 2011-11-28 Joel Brobecker <brobecker@adacore.com>
131
132 * symfile.h (struct quick_symbol_functions): Fix the documentation
133 of field map_matching_symbols, as symbols are sorted using
134 strcmp_iw_ordered, not strcmp_iw.
135
136 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
137
138 * symfile.h (struct quick_symbol_functions): Update the
139 documentation for field map_matching_symbols.
140
141 2011-11-28 Joel Brobecker <brobecker@adacore.com>
142
143 * ada-lang.c (compare_names): Fix wrong return value in case
144 string1 starts with the same contents as string2, followed
145 by an underscore that do not start a symbol name suffix.
146
147 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
148
149 PR python/13369
150 PR python/13374
151
152 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
153 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
154 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
155 exceptions.
156 * python/py-type.c (typy_strip_typedefs): Ditto.
157 (typy_legacy_template_argument): Ditto.
158 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
159 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
160
161 2011-11-27 Joel Brobecker <brobecker@acacore.com>
162
163 * remote.c (remote_get_tracepoint_status): Delete addrbuf
164 local variable. Avoid use of sprintf_vma.
165
166 2011-11-27 Sanjoy Das <sdas@igalia.com>
167
168 Fix regression in jit.exp.
169 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
170 (jit_register_code): Set the jit_objfile_data field to the correct
171 value.
172
173 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
174
175 * alpha-tdep.c (br_opcode): New.
176 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
177 (alpha_deal_with_atomic_sequence): New function.
178 (alpha_gdbarch_init): Handle single stepping of atomic sequences
179 with alpha_deal_with_atomic_sequence.
180
181 2011-11-24 Tristan Gingold <gingold@adacore.com>
182
183 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
184 fields. Add oso_sym, end_sym and nbr_syms.
185 (macho_register_oso): Change interface.
186 (macho_symtab_add_minsym): New function.
187 (macho_symtab_read): Rewritten.
188 (get_archive_prefix_len): Remove trailing blanks.
189 (oso_el_compare_name): Add comment.
190 (struct macho_sym_hash_entry): New structure.
191 (macho_relocate_common_syms): Remove.
192 (macho_sym_hash_newfunc): New function.
193 (macho_resolve_oso_sym_with_minsym): Likewise.
194 (macho_add_oso_symfile): Rewritten.
195 (macho_symfile_read_all_oso): Remove trailing blanks.
196 Adjust code to free oso vector.
197 (macho_symfile_read): Likewise.
198 Move code to initialize minimal symbol
199
200 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
201
202 * mips-tdep.c (extended_offset): Fix formatting.
203
204 2011-11-23 Doug Evans <dje@google.com>
205
206 * dwarf2read.c (dw2_lookup_symtab): Add comment.
207 (dw2_expand_symtabs_with_filename): Ditto.
208 (dw2_expand_symtabs_matching): Ditto.
209 (dw2_map_symbol_filenames): Ditto.
210
211 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
212
213 * ada-lang.c (assign_aggregate): Minor reformatting.
214
215 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
216
217 * ada-lang.c (assign_aggregate): Remove declaration of local
218 variable `i' which is shadowing another variable with the same
219 name declared in the outer scope.
220
221 2011-11-23 Joel Brobecker <brobecker@adacore.com>
222
223 * ada-lang.c (get_base_type): Renames base_type. Adjust all
224 calls throughout this file.
225
226 2011-11-23 Joel Brobecker <brobecker@adacore.com>
227
228 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
229 FormatMessage.
230
231 2011-11-22 Tom Tromey <tromey@redhat.com>
232
233 PR mi/8444:
234 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
235 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
236 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
237 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
238 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
239 (print_it_catch_syscall, print_it_catch_exec)
240 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
241 (bpstat_print): Add 'kind' argument. Handle
242 TARGET_WAITKIND_LOADED.
243 * infrun.c (normal_stop): Update for bpstat_print change. Don't
244 handle TARGET_WAITKIND_LOADED here.
245 * breakpoint.h (bpstat_print): Update.
246
247 2011-11-22 Tom Tromey <tromey@redhat.com>
248
249 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
250
251 2011-11-22 Tom Tromey <tromey@redhat.com>
252
253 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
254 Use static_assert to check the size of
255 async_reason_string_lookup.
256 * common/gdb_assert.h (static_assert): New macro.
257
258 2011-11-22 Alan Modra <amodra@gmail.com>
259
260 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
261 destination calculation. Don't expect >> to sign extend. Don't
262 add a break if branch lands inside the sequence anywhere.
263
264 2011-11-21 Keith Seitz <keiths@redhat.com>
265
266 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
267 -var-evaluate-expression of an enumeration and fix expected result.
268 * gdb.mi/mi2-varvdisplay.exp: Likewise.
269
270 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
271
272 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
273 the case where osdata->items is empty. Rename column names to a
274 canonical form to avoid problems with unusual column names.
275
276 2011-11-21 Yao Qi <yao@codesourcery.com>
277
278 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
279
280 2011-11-20 Stan Shebs <stan@codesourcery.com>
281
282 * NEWS: Mention tracepoint additions.
283 * breakpoint.h (struct tracepoint): New field traceframe_usage.
284 * breakpoint.c (print_one_breakpoint_location): Identify
285 tracepoints as such when reporting hit counts, report
286 trace buffer usage.
287 (create_tracepoint_from_upload): Copy status info.
288 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
289 add fields user_name, notes, start_time, stop_time.
290 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
291 * tracepoint.c (trace_user): New global.
292 (trace_notes): New global.
293 (trace_stop_notes): New global.
294 (start_tracing): Add argument and trace note handling.
295 (stop_tracing): Ditto.
296 (trace_start_command): Add notes argument.
297 (trace_stop_command): Ditto.
298 (trace_status_command): Report additional status info.
299 (trace_status_mi): Similarly.
300 (trace_save): Update, record tracepoint status.
301 (set_disconnected_tracing): Call target method directly.
302 (send_disconnected_tracing_value): Remove.
303 (set_trace_user): New function.
304 (set_trace_notes): New function.
305 (set_trace_stop_notes): New function.
306 (parse_trace_status): Handle additional status.
307 (parse_tracepoint_status): New function.
308 (parse_tracepoint_definition): Call it.
309 (tfile_get_tracepoint_status): New function.
310 (init_tfile_ops): Use it.
311 (_initialize_tracepoint): Add new setshows.
312 * target.h (struct target_ops): New methods to_get_tracepoint_status
313 and to_set_trace_notes.
314 (target_get_tracepoint_status): New macro.
315 (target_set_trace_notes): New macro.
316 * target.c (update_current_target): Add new methods.
317 * remote.c (remote_get_tracepoint_status): New function.
318 (remote_set_trace_notes): New function.
319 (init_remote_ops): Add them.
320 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
321 (mi_cmd_trace_stop): Ditto.
322
323 2011-11-20 Sanjoy Das <sdas@igalia.com>
324
325 * jit.c: Include regcache.h.
326 (jit_gdbarch_data, jit_frame_unwind): New static variables.
327 (jit_unwind_reg_set_impl, free_reg_value_impl)
328 (jit_unwind_reg_get_impl, jit_frame_sniffer)
329 (jit_frame_unwind_stop_reason, jit_frame_this_id)
330 (jit_frame_prev_register, jit_dealloc_cache)
331 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
332 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
333 jit_prepend_unwinder.
334 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
335
336 2011-11-20 Sanjoy Das <sdas@igalia.com>
337
338 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
339 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
340 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
341 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
342 (finalize_symtab, jit_object_close_impl)
343 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
344 (free_objfile_data): New functions.
345 (_initialize_jit): Register jit_objfile_data with a proper cleanup
346 function.
347
348 2011-11-20 Sanjoy Das <sdas@igalia.com>
349
350 * jit.c: Include gdb-dlfcn.h.
351 (loaded_jit_reader, reader_init_fn_sym): New static variables.
352 (jit_reader_load, jit_reader_load_command)
353 (jit_reader_unload_command): New functions.
354 (_initialize_jit): Add commands "jit-reader-load" and
355 "jit-reader-unload".
356
357 2011-11-20 Sanjoy Das <sdas@igalia.com>
358
359 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
360 * config.in: Add new #define HAVE_LIBDL.
361 * configure.ac: Add check for -ldl.
362 * configure: Re-generated by autoconf.
363 * gdb-dlfcn.c: New file.
364 * gdb-dlfcn.h: New file.
365
366 2011-11-20 Sanjoy Das <sdas@igalia.com>
367
368 * config.in: Add new #defines: JIT_READER_DIR and
369 JIT_READER_DIR_RELOCATABLE.
370 * configure.ac: New GDB directory entry for jit-reader-dir.
371 * configure: Re-generated by autoconf.
372 * jit.c: New static variable: const char *jit_reader_dir.
373 (_initialize_jit): Relocate jit_reader_dir.
374
375 2011-11-20 Sanjoy Das <sdas@igalia.com>
376
377 * Makefile.in: Add jit-reader.h as a header. Have it installed in
378 $(includedir)/gdb.
379 * configure.ac: Generate a correct value for TARGET_PTR for
380 jit-reader.h. Tell configure to generate jit-reader.h from
381 jit-reader.in.
382 * configure: Re-generated by autoconf.
383 * jit-reader.in: New file.
384 * jit.c: Include jit-reader.h.
385
386 2011-11-20 Sanjoy Das <sdas@igalia.com>
387
388 * MAINTAINERS (Write After Approval): Add myself to the list.
389
390 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
391
392 * findvar.c (read_frame_register_value): Respect value_offset
393 of the register value. Remove big-endian special case.
394
395 2011-11-18 Tom Tromey <tromey@redhat.com>
396
397 PR build/7196:
398 * remote.c (putpkt_for_catch_errors): New function.
399 (remote_kill): Use it.
400
401 2011-11-18 Yao Qi <yao@codesourcery.com>
402
403 * breakpoint.c (create_breakpoint): Produce query message according to
404 breakpoint's type.
405 Allocate tracepoint per correct type.
406 Don't check SALs for pending fast tracepoints.
407 * tracepoint.c (process_tracepoint_on_disconnect): New.
408 (disconnect_tracing): Call process_tracepoint_on_disconnect.
409
410 2011-11-18 Yao Qi <yao@codesourcery.com>
411
412 * breakpoint.c (install_breakpoint): Add one more parameter so that
413 update_global_location_list is called conditionally.
414 (create_fork_vfork_event_catchpoint): Update.
415 (create_syscall_event_catchpoint): Update.
416 (create_breakpoint_sal): Update.
417 (create_breakpoint_sal): Update. Call do_cleanups before
418 install_breakpoint.
419 * ada-lang.c (create_ada_exception_catchpoint): Update.
420 * breakpoint.h (install_breakpoint): Update declaration.
421
422 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
423
424 * spu-tdep.c (spu_return_value): Fix handling of
425 TYPE_CALLING_CONVENTION annotation.
426
427 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
428
429 * skip.c (skip_function_command): Work around uninitialized
430 variable warning.
431
432 2011-11-16 David S. Miller <davem@davemloft.net>
433
434 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
435 'tv_usec' to long for printf since these fields have a type which
436 varies.
437
438 2011-11-15 Doug Evans <dje@google.com>
439
440 * buildsym.c (add_symbol_to_list): Delete outdated comment.
441
442 2011-11-15 Paul Koning <paul_koning@dell.com>
443
444 * python/py-type.c (typy_get_composite): New function.
445 (typy_nonzero): New function.
446 (typy_values): Rename from typy_fields.
447 (typy_fields): New function.
448 (typy_length): Raise exception if not struct, union, or enum type.
449 (typy_getitem): Ditto.
450 (typy_has_key): Ditto.
451 (typy_make_iter): Ditto.
452
453 2011-11-15 Doug Evans <dje@google.com>
454
455 * NEWS: Mention new parameter basenames-may-differ.
456 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
457 ! basenames_may_differ.
458 * psymtab.c (lookup_partial_symtab): Ditto.
459 * symtab.c (lookup_symtab): Ditto.
460 (basenames_may_differ): New global.
461 (_initialize_symtab): New parameter basenames-may-differ.
462 * symtab.h (basenames_may_differ): Declare.
463
464 2011-11-15 Pedro Alves <pedro@codesourcery.com>
465 Luis Machado <lgustavo@codesourcery.com>
466
467 * auxv.c: Include observer.h.
468 (auxv_inferior_data_cleanup): New.
469 (invalidate_auxv_cache_inf): New.
470 (invalidate_auxv_cache): New.
471 (get_auxv_inferior_data): New.
472 (auxv_inferior_data): New static global.
473 (auxv_info): New structure.
474 (target_auxv_search): Use get_auxv_inferior_data instead of
475 target_read_alloc and don't free cached buffers.
476 (fprint_target_auxv): Likewise
477 (_initialize_auxv): Register per-inferior auxv cache and register
478 observers to invalidate auxv cache when needed.
479
480 2011-11-14 Doug Evans <dje@google.com>
481
482 Make "!" an alias for "shell".
483 * NEWS: Add mention.
484 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
485 adding "!" command, always add it.
486 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
487 command of length one.
488
489 2011-11-14 Stan Shebs <stan@codesourcery.com>
490 Kwok Cheung Yeung <kcy@codesourcery.com>
491
492 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
493 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
494 the minimum instruction size for fast tracepoints.
495 * target.h (struct target_ops): Add new method
496 to_get_min_fast_tracepoint_insn_len.
497 (target_get_min_fast_tracepoint_insn_len): New.
498 * target.c (update_current_target): Set up new target operation.
499 * remote.c (remote_write_bytes_aux): Fix typo.
500 (remote_get_min_fast_tracepoint_insn_len): New.
501 (init_remote_ops): Initialize new field.
502
503 2011-11-14 Tom Tromey <tromey@redhat.com>
504
505 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
506 (encode_actions): Likewise.
507
508 2011-11-14 Yao Qi <yao@codesourcery.com>
509
510 * remote.c (struct remote_state): <install_in_trace> new field.
511 (PACKET_InstallInTrace): New enum value.
512 (remote_install_in_trace_feature): Support InstallInTrace.
513 (remote_supports_install_in_trace): Likewise.
514 (remote_protocol_features): Likewise.
515 (_initialize_remote): Likewise.
516 (remote_can_download_tracepoint): New.
517 * target.h (struct target): New field
518 `to_can_download_tracepoint'.
519 (target_can_download_tracepoint): New macro.
520 * target.c (update_current_target): Update.
521 * breakpoint.h (struct bp_location): Add comment on field
522 `duplicate'.
523 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
524 and tracepoint.
525 (remove_breakpoints): Don't remove tracepoints.
526 (tracepoint_locations_match ): New.
527 (breakpoint_locations_match): Call it.
528 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
529 (download_tracepoint_locations): New.
530 (update_global_location_list): Call it.
531 * tracepoint.c (find_matching_tracepoint): Delete.
532 (find_matching_tracepoint_location): Renamed from
533 find_matching_tracepoint. Return bp_location rather than
534 tracepoint.
535 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
536 tracepoint is found.
537
538 2011-11-14 Yao Qi <yao@codesourcery.com>
539
540 * target.h (struct target): <to_download_tracepoint> Change type
541 of parameter from tracepoint to bp_location.
542 * target.c (update_current_target): Update.
543 * tracepoint.c (start_tracing): Update.
544 * remote.c (remote_download_tracepoint): Remove loop for each location
545 of a tracepoint.
546
547 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
548
549 * i386-nat.c (i386_insert_hw_breakpoint): Call
550 i386_update_inferior_debug_regs.
551 (i386_remove_hw_breakpoint): Likewise.
552
553 2011-11-14 Yao Qi <yao@codesourcery.com>
554
555 * breakpoint.c (init_raw_breakpoint): Call
556 add_location_to_breakpoint to replace duplicated code.
557 (add_location_to_breakpoint): Adjust the breakpoint's
558 address prior to allocating a location.
559
560 2011-11-12 Matt Rice <ratmice@gmail.com>
561
562 * macrocmd.c (macro_no_macro_info): New function.
563 (macro_expand_command): Use macro_no_macro_info.
564 (macro_expand_once_command): Ditto.
565 (info_macro_command): Add argument processing,
566 move info_definitions_command here.
567 (_initialize_macrocmd): Remove info definitions command.
568 Add arguments to info macro help text.
569 * NEWS: Replace info definitions command with new info macro options.
570
571 2011-11-11 Keith Seitz <keiths@redhat.com>
572
573 PR gdb/12843
574 * linespec.c (locate_first_half): Keep ':' if it looks
575 like it could be part of a Windows path starting with
576 a drive letter.
577
578 2011-11-10 Pedro Alves <pedro@codesourcery.com>
579
580 * linux-nat.c (linux_nat_wait): Don't force waking up the event
581 loop when returning a TARGET_WAITKIND_NO_RESUMED.
582
583 2011-11-10 Pedro Alves <pedro@codesourcery.com>
584
585 * target.c (target_waitstatus_to_string): Handle
586 TARGET_WAITKIND_NO_RESUMED.
587
588 2011-11-10 Doug Evans <dje@google.com>
589
590 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
591 `need_fullname'.
592 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
593 (map_partial_symbol_filenames): Ditto. All callers updated.
594 * psymtab.h (map_partial_symbol_filenames): Update prototype.
595 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
596 parameter need_fullname.
597
598 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
599 * source.c (symtab_to_fullname): Ditto.
600
601 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
602 * gdb-demangle.h: ... here. New file.
603 * demangle.c: #include "gdb-demangle.h".
604 (_initialize_demangler): Use initialize_file_ftype for prototype.
605 Move "set demangle" and "set asm-demangle" parameters here from utils.c
606 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
607 from utils.c
608 * utils.c: Update. #include "gdb-demangle.h".
609 * symtab.h (asm_demangle): Delete.
610 (demangle): Move declaration next to use.
611 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
612 * dwarf2read.c: #include "gdb-demangle.h".
613 * gnu-v2-abi.c: Ditto.
614 * jv-typeprint.c: Ditto.
615 * mdebugread.c: Ditto.
616 * p-typeprint.c: Ditto.
617 * stabsread.c: Ditto.
618 * printcmd.c: Ditto.
619 (asm_demangle): Delete declaration.
620 * tui/tui-stack.c: #include "gdb-demangle.h".
621
622 * python/py-type.c (typy_fields_items): Call check_typedef.
623
624 2011-11-10 Joel Brobecker <brobecker@adacore.com>
625
626 * findvar.c (read_frame_register_value): Read the correct bytes
627 from registers on big-endian architectures.
628
629 2011-11-10 Tom Tromey <tromey@redhat.com>
630
631 * procfs.c (load_syscalls): Make a cleanup.
632 (open_procinfo_files): fd==0 is ok.
633
634 2011-11-10 Joel Brobecker <brobecker@adacore.com>
635
636 * procfs.c (iterate_over_mappings): Call do_cleanups before
637 returning.
638
639 2011-11-09 Doug Evans <dje@google.com>
640
641 * gdbtypes.c (check_typedef): Document that this function can
642 throw an exception.
643
644 2011-11-09 Tom Tromey <tromey@redhat.com>
645
646 PR c++/13342:
647 * valops.c (value_full_object): Return early if real type is
648 smaller than the enclosing type.
649
650 2011-11-08 Yao Qi <yao@codesourcery.com>
651
652 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
653
654 2011-11-08 Meador Inge <meadori@codesourcery.com>
655
656 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
657 register when the frame can't be determined.
658 * arm-tdep.c (arm_analyze_prologue): Ditto.
659
660 2011-11-07 Stan Shebs <stan@codesourcery.com>
661
662 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
663
664 2011-11-07 Joel Brobecker <brobecker@adacore.com>
665
666 * infrun.c (handle_inferior_event): Minor reformatting.
667
668 2011-11-05 Doug Evans <dje@google.com>
669
670 * source.c (forget_cached_source_info_for_objfile): Move call to
671 objfile->sf->qf->forget_cached_source_info outside of
672 ALL_OBJFILE_SYMTABS loop.
673 (forget_cached_source_info): Delete unused variable `s'.
674
675 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
676
677 * i386-nat.c (dr_ref_count): Remove unused variable.
678
679 2011-11-05 Doug Evans <dje@google.com>
680
681 * main.c (captured_main): Set lim_at_start before calling
682 make_command_stats_cleanup.
683
684 2011-11-04 Doug Evans <dje@google.com>
685
686 * utils.c: #include "timeval-utils.h".
687 (cmd_stats): Rename start_time to start_cpu_time.
688 New member start_wall_time.
689 (report_command_stats): Report wall time.
690 (make_command_stats_cleanup): Record start wall time.
691
692 2011-11-04 Tom Tromey <tromey@redhat.com>
693
694 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
695
696 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
697
698 * coff-pe-read.c: Include defs.h before bfd.h.
699
700 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
701
702 PR Python/13345
703
704 * python/python.c (python_run_simple_file): Expand tilde in path.
705
706 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
707
708 PR Python/13363
709
710 * python/py-type.c (typy_lookup_type): Do not return a type in
711 an exception handler.
712
713 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
714 Eli Zaretskii <eliz@gnu.org>
715
716 * linux-nat.c (_initialize_linux_nat): Improve help
717 for `info proc stat', `info proc status', `info proc cwd',
718 `info proc cmdline' and `info proc exe'.
719
720 2011-11-02 Stan Shebs <stan@codesourcery.com>
721
722 String collection for tracepoints.
723 * NEWS: Mention string collection.
724 * common/ax.def (tracenz): New bytecode.
725 * ax-gdb.h (trace_string_kludge): Declare.
726 * ax-gdb.c: Include valprint.h and c-lang.h.
727 (trace_string_kludge): New global.
728 (gen_traced_pop): Add string case.
729 (agent_command): Add string case.
730 * tracepoint.h (decode_agent_options): Declare.
731 * tracepoint.c: Include cli-utils.h.
732 (decode_agent_options): New function.
733 (validate_actionline): Call it.
734 (encode_actions_1): Ditto.
735 * target.h (struct target_ops): New method to_supports_string_tracing.
736 (target_supports_string_tracing): New macro.
737 * target.c (update_current_target): Add to_supports_string_tracing.
738 * remote.c (struct remote_state): New field string_tracing.
739 (remote_string_tracing_feature): New function.
740 (remote_protocol_features): New feature tracenz.
741 (remote_supports_string_tracing): New function.
742 (init_remote_ops): Set to_supports_string_tracing.
743
744 2011-11-02 Pedro Alves <pedro@codesourcery.com>
745 Jan Kratochvil <jan.kratochvil@redhat.com>
746
747 * linux-nat.c: Include cli/cli-utils.h.
748 (enum info_proc_what): New.
749 (linux_nat_info_proc_cmd): Rename to ...
750 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
751 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
752 status_f and stat_f from WHAT. Throw error on extra parameters.
753 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
754 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
755 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
756 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
757 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
758 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
759 `info proc cmdline', `info proc exe' and `info proc all' as real
760 subcommands of `info proc'.
761
762 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
763
764 * Makefile.in: (SFILES): Add skip.c.
765 (HFILES_NO_SRCDIR): Add skip.h.
766 (COMMON_OBS): Add skip.o.
767 * skip.h, skip.c: New.
768 * breakpoint.h (set_default_breakpoint): Remove.
769 (get_sal_arch): Declare.
770 * breakpoint.c: Remove default_breakpoint_valid,
771 default_breakpoint_address, default_breakpoint_symtab,
772 default_breakpoint_line, default_breakpoint_pspace variables.
773 (get_sal_arch): Make public.
774 (set_default_breakpoint): Remove.
775 (parse_breakpoint_sals, create_breakpoint, clear_command,
776 decode_line_spec_1): Remove uses of default_breakpoint variables;
777 replaced with function calls into stack.c.
778 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
779 * cli/cli-cmds.c: Add skiplist.
780 (init_cmd_lists): Initialize skiplist.
781 (init_cli_cmds): Fix comment (classes of commands appear in
782 alphabetical order).
783 * infrun.c (handle_inferior_event): Add check that we don't step into
784 a function whose pc is marked for skip.
785 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
786 last_displayed_addr, last_displayed_symtab, last_displayed_line
787 variables.
788 (set_last_displayed_sal): New static function.
789 (print_frame_info): Switch call to set_default_breakpoint to call to
790 set_last_displayed_sal.
791 (clear_last_displayed_sal, last_displayed_sal_is_valid,
792 get_last_displayed_pspace, get_last_displayed_addr,
793 get_last_displayed_symtab, get_last_displayed_line,
794 get_last_displayed_sal): New public functions.
795 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
796 get_last_displayed_pspace, get_last_displayed_addr,
797 get_last_displayed_symtab, get_last_displayed_line,
798 get_last_displayed_sal): Declare.
799
800 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
801
802 * MAINTAINERS (Write After Approval): Add myself to the list.
803
804 2011-10-29 Yao Qi <yao@codesourcery.com>
805
806 * infcmd.c (disconnect_command): Call disconnect_tracing.
807
808 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
809
810 Code cleanup.
811 * symtab.c (skip_prologue_sal): Code reformatting.
812
813 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
814
815 PR symtab/13208
816 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
817 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
818 SAI.
819
820 2011-10-28 Pedro Alves <pedro@codesourcery.com>
821
822 * linux-nat.c (linux_nat_filter_event): Remove `options'
823 parameter, and dead code that used it. If we're handling a
824 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
825 in our lwp list, re-add it.
826 (check_zombie_leaders): New.
827 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
828 wait for children with WNOHANG, and always wait for all children.
829 Don't check for no resumed children upfront. Simplify wait loop.
830 Check for zombie thread group leaders after handling all wait
831 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
832 unwaited-for children left.
833 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
834 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
835 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
836 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
837
838 2011-10-28 Sterling Augustine <saugustine@google.com>
839
840 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
841 * symtab.c (free_completion_list): New function.
842 (do_free_completion_list): Likewise.
843 (default_make_symbol_completion_list_break_on): New variable
844 back_to. Call make_cleanup and discard_cleanups.
845 (make_source_files_completion_list): Likewise.
846
847 2011-10-28 Paul Koning <paul_koning@dell.com>
848
849 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
850 * NEWS: Mention deep_items.
851
852 2011-10-28 Alen Skondro <askondro@gmail.com>
853
854 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
855 defined.
856
857 2011-10-27 Meador Inge <meadori@codesourcery.com>
858
859 * MAINTAINERS (Write After Approval): Add myself to the list.
860
861 2011-10-27 Joel Brobecker <brobecker@adacore.com>
862
863 * value.h (read_frame_register_value): Add declaration.
864 * findvar.c (read_frame_register_value): New function.
865 (value_from_register): Use read_frame_register_value
866 instead of get_frame_register_value + value_contents_copy
867 to get value contents.
868
869 2011-10-27 Doug Evans <dje@google.com>
870
871 * cli/cli-cmds.c (source_script_with_search): Pass full path to
872 source_script_from_stream if it may have been found on the search path.
873 * python/py-auto-load.c (source_section_scripts): Pass full path to
874 source_python_script_for_objfile.
875 * python/python.c (source_python_script): Delete stream parameter.
876 All callers updated.
877 (source_python_script_for_objfile): Ditto.
878 * python/python-internal.h (source_python_script_for_objfile): Update.
879 * python/python.h (source_python_script): Update.
880
881 2011-10-27 Tom Tromey <tromey@redhat.com>
882
883 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
884 (ada_sals_for_line): Remove declarations.
885
886 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
887
888 Move unwind reasons to an external .def file
889 * frame.c (frame_stop_reason_string): Rewrite using
890 unwind_stop_reasons.def.
891 * frame.h (enum unwind_stop_reason): Likewise.
892 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
893 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
894 constants for bound-checking.
895 * unwind_stop_reasons.def: New file.
896 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
897 instead of a distinct value.
898
899 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
900
901 PR python/13331
902
903 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
904 (convert_values_to_python): Return on Python tuple allocation
905 failure. Return NULL on value conversion error.
906
907 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
908
909 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
910 (bppy_set_task): Ditto.
911 (bppy_delete_breakpoint): Ditto.
912 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
913 (gdbpy_lookup_global_symbol): Ditto.
914 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
915 * python/py-frame.c (frapy_is_valid): Ditto.
916 (frame_info_to_frame_object): Ditto.
917 * python/py-type.c (typy_lookup_type): Ditto.
918 (typy_getitem): Ditto.
919 (typy_has_key): Ditto.
920 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
921
922 2011-10-26 Joel Brobecker <brobecker@adacore.com>
923
924 * gdbarch.h: Regenerate.
925
926 2011-10-26 Meador Inge <meadori@codesourcery.com>
927
928 * gdbarch.sh (function_list): Use 'pstring' when printing
929 'gcore_bfd_target'.
930 * gdbarch.c: Regenerate.
931
932 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
933
934 * regcache.c (registers_changed_ptid): Invalidate thread architecture
935 and frame caches if PTID refers to all threads of a process.
936
937 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
938
939 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
940 to create_breakpoint.
941
942 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
943
944 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
945 (ppc_sysv_abi_push_dummy_call): Use it.
946 (do_ppc_sysv_return_value): Likewise.
947 (ppc64_sysv_abi_push_dummy_call): Likewise.
948 (ppc64_sysv_abi_return_value): Likewise.
949
950 2011-10-26 Paul Koning <paul_koning@dell.com>
951
952 * python/lib/gdb/types.py (deepitems): New function.
953
954 2011-10-25 Paul Koning <paul_koning@dell.com>
955
956 PR python/13327
957
958 * python/py-value.c (value_to_value_object): Remove fetching of
959 the value if it was lazy.
960 (valpy_get_is_lazy): New function.
961 (valpy_fetch_lazy): New function.
962
963 2011-10-24 Joel Brobecker <brobecker@adacore.com>
964
965 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
966 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
967
968 2011-10-24 Pedro Alves <pedro@codesourcery.com>
969
970 * linux-nat.c (linux_handle_extended_wait): When handling a clone
971 event, in non-stop, if not stopping, make sure the new lwp has
972 last_resume_kind set to resume_continue. Assert that when we're
973 resuming the new lwp, its last_resume_kind is resume_continue.
974
975 2011-10-24 Pedro Alves <pedro@codesourcery.com>
976
977 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
978 already set when marking the event thread as not executing in
979 non-stop mode.
980
981 2011-10-24 Pedro Alves <pedro@codesourcery.com>
982
983 * infrun.c (handle_inferior_event): Add debug output for
984 TARGET_WAITKIND_NO_HISTORY.
985
986 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
987
988 * NEWS: Move set/show extended-prompt to "New Options". Expand
989 description. Fix typos.
990
991 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
992
993 PR python/13310
994
995 * python/py-param.c (call_doc_function): Correctly deference on
996 function exit.
997
998 2011-10-21 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-tasks.c (print_ada_task_info): Fix computation of
1001 number of tasks displayed in command output.
1002
1003 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 Ulrich Weigand <uweigand@de.ibm.com>
1005
1006 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1007 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1008 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1009 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1010 gdbarch_unwind_pc.
1011
1012 2011-10-20 Cary Coutant <ccoutant@google.com>
1013
1014 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1015 section to...
1016 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1017 flag. Adjust all callers.
1018 (process_psymtab_comp_unit): Remove adjustment for type section.
1019
1020 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1021
1022 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1023 arguments by adding OBJFILE. Instead of getting objfile from
1024 symbol's symtab, use new argument OBJFILE.
1025 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1026 arguments by adding OBJFILE.
1027 * gdb/dwarf2read.c (new_symbol_full): Change call to
1028 cp_scan_for_anonymous_namespaces to match new signature.
1029 * gdb/stabsread.c (define_symbol): Change call to
1030 cp_scan_for_anonymous_namespaces to match new signature.
1031
1032 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1033
1034 PR python/13308
1035 PR python/13309
1036
1037 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1038 leak.
1039 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1040 leak. Delete unused variables.
1041
1042 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1043
1044 PR python/12656
1045
1046 * python/py-frame.c (frapy_read_var): Use const struct *block.
1047 * python/py-type.c (typy_lookup_typename): Likewise.
1048 (typy_lookup_type): Likewise.
1049 (typy_legacy_template_argument): Likewise.
1050 (typy_template_argument): Likewise.
1051 (gdbpy_lookup_type): Likewise.
1052 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1053 * python/py-block.c (blpy_block_object): Likewise.
1054 (blpy_iter): Likewise.
1055 (blpy_get_start): Likewise.
1056 (blpy_get_end): Likewise.
1057 (blpy_get_function): Likewise.
1058 (blpy_get_superblock): Likewise.
1059 (set_block): Likewise.
1060 (block_to_block_object): Likewise.
1061 (block_object_to_block): Likewise.
1062 (blpy_is_valid): Likewise.
1063 (blpy_get_global_block): New function.
1064 (blpy_get_static_block): New function.
1065 (blpy_is_global): New function.
1066 (blpy_is_static): New function.
1067 * blockframe.c (block_innermost_frame): Likewise.
1068 * valops.c (value_of_variable): Likewise.
1069 * frame.h: Update prototypes.
1070 * python/python-internal.h: Likewise.
1071 * value.h: Likewise.
1072
1073 2011-10-19 Cary Coutant <ccoutant@google.com>
1074
1075 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1076 type_offset field.
1077
1078 2011-10-19 Cary Coutant <ccoutant@google.com>
1079
1080 * dwarf2read.c (peek_abbrev_code): New function.
1081 (dw2_get_file_names): Check for dummy compilation units.
1082 (create_debug_types_hash_table): Likewise.
1083 (process_psymtab_comp_unit): Likewise.
1084 (load_partial_comp_unit): Likewise.
1085 (load_full_comp_unit): Likewise.
1086
1087 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1088
1089 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1090 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1091 pt_phdr if PT_PHDR was found.
1092
1093 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1094
1095 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1096 type or "<unnamed type"> when there is no name assigned.
1097 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1098 avoid a sigint when no name is assigned.
1099
1100 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1101
1102 Revert:
1103 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1104 * dwarf2expr.c (ctx_no_read_reg): New function.
1105 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1106 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1107 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1108 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1109
1110 2011-10-16 Doug Evans <dje@google.com>
1111
1112 * NEWS: Document python gdb.printing.register_pretty_printer's new
1113 `replace' parameter.
1114
1115 2011-10-14 Keith Seitz <keiths@redhat.com>
1116
1117 PR c++/13225
1118 * eval.c (evaluate_subexp_standard): Do not construct
1119 an array of types; pass the value array directly to
1120 find_overload_match.
1121 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1122 (rank_function): Take an array of values instead of types.
1123 (rank_one_type): Add struct value * parameter.
1124 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1125 (rank_function): For each argument, pass the argument's
1126 value to rank_one_type.
1127 (rank_one_type): Add VALUE parameter.
1128 If the parameter type is a pointer and the argument type
1129 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1130 VALUE is zero.
1131 Update all calls to rank_one_type, passing NULL for new
1132 VALUE parameter.
1133 * valarith.c (value_user_defined_cpp_op): Do not construct
1134 an array of types; pass the value array directly to
1135 find_overload_match.
1136 * valops.c (find_overload_method_list): Take an array of
1137 values instead of types.
1138 Save the type of OBJP for later use.
1139 Update calls to find_oload_champ, and find_oload_champ_namespace.
1140 (find_oload_champ_namespace): Take an array of values instead
1141 of types.
1142 (find_oload_champ_namespace_loop): Likewise.
1143 (find_oload_champ): Likewise.
1144 (classify_oload_match): Inspect all arguments
1145 until INCOMPATIBLE is found. Return the worst badness found
1146 otherwise.
1147 (compare_parameters): Update call to rank_one_type.
1148 * value.h (find_overload_match): Take an array of values instead
1149 of types.
1150
1151 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1152
1153 Drop lazy lm_info reading.
1154 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1155 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1156 (lm_info_read): New function.
1157 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1158 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1159 lm_dynamic_from_link_map.
1160 (lm_next, lm_prev, lm_name): Remove.
1161 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1162 initialization incl. read_memory. No longer use lm_name.
1163 (svr4_free_so): Drop lm_info->lm freeing.
1164 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1165 explicit lm_addr and lm initialization.
1166 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1167 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1168 lm_name.
1169
1170 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 Paul Pluzhnikov <ppluzhnikov@google.com>
1172
1173 * defs.h (struct so_list): New forward declaration.
1174 (make_cleanup_free_so): New declaration.
1175 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1176 (svr4_free_so): Move the function here from downwards. Handle NULL
1177 so->lm_info.
1178 (svr4_free_library_list): New.
1179 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1180 Use more cleanups. Use new parameter ignore_first instead of
1181 ignore_first_link_map_entry.
1182 (svr4_current_sos): New variable ignore_first, initialize it. New
1183 variable back_to, use it for svr4_free_library_list protection.
1184 (svr4_free_so): Remove - move upwards.
1185 * utils.c: Include solist.h.
1186 (do_free_so, make_cleanup_free_so): New functions.
1187
1188 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1189
1190 Fix internal error regression.
1191 * value.c (value_primitive_field): Handle value_optimized_out. Move
1192 packed bitfields comment.
1193
1194 2011-10-13 Tom Tromey <tromey@redhat.com>
1195
1196 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1197 always released.
1198
1199 2011-10-13 Tom Tromey <tromey@redhat.com>
1200
1201 * python/py-type.c (typy_has_key): Make 'field' const.
1202
1203 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1204
1205 * remote.c (remote_save_trace_data): Invert comparison.
1206
1207 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1208
1209 * tracepoint.c (trace_save_command): Use filename instead of
1210 args when printing.
1211
1212 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1213
1214 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1215 if .size is 0.
1216
1217 2011-10-13 Yao Qi <yao@codesourcery.com>
1218
1219 PR gdb/12703
1220 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1221 whether insn is a 32-bit Thumb-2 instruction.
1222 (thumb_in_function_epilogue_p): Likewise.
1223 (thumb_get_next_pc_raw): Likewise.
1224 (arm_breakpoint_from_pc): Likewise.
1225
1226 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1227
1228 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1229 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1230 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1231 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1232 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1233 zero DATA.
1234 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1235 validity.
1236 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1237 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1238 clear DATA on zero SIZE.
1239
1240 2011-10-12 Doug Evans <dje@google.com>
1241
1242 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1243 header->first_die_offset here. All callers updated.
1244
1245 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1246
1247 Fix compatibility with texinfo versions older than 4.12.
1248 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1249 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1250 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1251 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1252 * configure: Regenerate.
1253 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1254 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1255 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1256
1257 2011-10-12 Gary Benson <gbenson@redhat.com>
1258
1259 * breakpoint.h (pc_at_non_inline_function): Declare.
1260 * breakpoint.c (is_non_inline_function,
1261 pc_at_non_inline_function): New functions.
1262 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1263 if the stop is at a location where functions cannot be inlined.
1264
1265 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1266
1267 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1268 the core wanted them stopped, or if they now have a pending event
1269 to report.
1270 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1271 down to stop_and_resume_callback.
1272 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1273 having new pending events after calling linux_nat_filter_event.
1274
1275 2011-10-11 Sterling Augustine <saugustine@google.com>
1276
1277 * dwarf2read.c: Undo inadvertent changes in previous commit.
1278
1279 2011-10-11 Sterling Augustine <saugustine@google.com>
1280
1281 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1282 logic.
1283
1284 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1285
1286 * symfile.c (separate_debug_file_exists): Fix condition.
1287
1288 2011-10-11 David S. Miller <davem@davemloft.net>
1289
1290 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1291 static.
1292 * regcache.h (regcache_restore): Remove declaration.
1293
1294 * gdbarch.sh: New field 'long_long_align_bit'.
1295 * gdbarch.c, gdbarch.h: Regenerate.
1296 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1297 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1298
1299 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 Revert this part of:
1302 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1303 Support @entry in input expressions.
1304 * c-exp.y (ENTRY, unknown_cpp_name): New.
1305 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1306 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1307 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1308 (name_not_typename: ENTRY): New.
1309 (yylex): Recognize ENTRY.
1310
1311 Reimplement @entry in input expressions.
1312 * c-exp.y (ENTRY): New.
1313 (variable: name_not_typename ENTRY): New.
1314 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1315
1316 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1317
1318 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1319 parent and child's pids as soon as we detect a clone event.
1320 Adjust another debug message.
1321
1322 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1323
1324 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1325 not zombie instead of reading the whole file.
1326
1327 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1328
1329 Fix separate debuginfo warning with "remote:" access.
1330 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1331 * symfile.c (get_file_crc): New function with the code moved from ...
1332 (separate_debug_file_exists): ... this function, specifically variables
1333 buffer and count. New variable verified_as_different, set it. Remove
1334 file_crc initialization. Verify also if both files are not the same
1335 manually, if needed.
1336
1337 2011-10-11 Yao Qi <yao@codesourcery.com>
1338
1339 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1340 to get address.
1341
1342 2011-10-10 Doug Evans <dje@google.com>
1343
1344 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1345 libthread_db when we load libpthread or the main symbol file.
1346 (thread_db_inferior_created): New function.
1347 (_initialize_thread_db): Attach inferior_created observer.
1348 * linux-nat.c (linux_child_post_attach): Remove call to
1349 check_for_thread_db.
1350 (linux_child_post_startup_inferior): Ditto.
1351 * objfiles.h (OBJF_MAINLINE): Define.
1352 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1353 allocate_objfile when appropriate.
1354
1355 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1356
1357 PR gdb/13218
1358 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1359 Remove unused variables.
1360 (get_linux_version): Remove function.
1361 (_initialize_arm_linux_nat): Do not call it.
1362
1363 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1364
1365 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1366 new clone lwp if the core asked it to stop. Don't pass on
1367 unexpected signals to the new clone; leave them pending instead.
1368
1369 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1370
1371 * linux-nat.c (resume_lwp): Remove redundant debug output.
1372
1373 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1374
1375 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1376 last_resume_kind before clearing it, and use the copy instead to
1377 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1378 resume_clear_callback in the non-stop path too.
1379
1380 2011-10-09 Yao Qi <yao@codesourcery.com>
1381
1382 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1383 Honor OPTIONS and VAL's type.
1384 (common_val_print, value_print): Update to pass one more parameter.
1385
1386 2011-10-09 Doug Evans <dje@google.com>
1387
1388 Add new "alias" command.
1389 * NEWS: Mention new command.
1390 * command.h (valid_user_defined_cmd_name_p): Declare.
1391 * defs.h (make_cleanup_dyn_string_delete): Declare.
1392 * utils.c: #include "dyn-string.h".
1393 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1394 * cli/cli-cmds.c: #include "dyn-string.h".
1395 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1396 (init_cli_cmds): Add new command.
1397 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1398
1399 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1400
1401 Fix compatibility with older GCCs.
1402 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1403 * stack.c (read_frame_arg): Initialize val_deref.
1404
1405 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 Entry values NEWS entries, DWARF disassembly support.
1408 * NEWS: New entry values entry.
1409 (set print entry-values, show print entry-values)
1410 (set debug entry-values, show debug entry-values): New entries.
1411 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1412 indent. Remove variable start. Move header printing out. Respect
1413 INDENT. Support DW_OP_GNU_entry_value.
1414 (locexpr_describe_location_1): Move the header printing here, extend
1415 the disassemble_dwarf_expression passed parameters.
1416
1417 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1418
1419 Display @entry parameter values even for references.
1420 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1421 coerce_ref_if_computed.
1422 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1423 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1424 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1425 existing push_dwarf_reg_entry_value call. Add new detection calling
1426 dwarf_block_to_dwarf_reg_deref. Update the error message.
1427 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1428 * dwarf2expr.h
1429 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1430 parameter deref_size, describe it in the comment.
1431 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1432 (dwarf_block_to_dwarf_reg_deref): New declaration.
1433 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1434 deref_size, describe it in the function comment. New variables
1435 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1436 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1437 describe it in the function comment. Fetch the alternative block
1438 accoring to DEREF_SIZE.
1439 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1440 (entry_data_value_free_closure, entry_data_value_funcs): New.
1441 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1442 outer_val, target_val, val and addr. Try to fetch and create also
1443 referenced value content.
1444 (pieced_value_funcs): NULL value for coerce_ref.
1445 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1446 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1447 coerce_ref_if_computed.
1448 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1449 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1450 * stack.c (read_frame_arg): Compare also dereferenced values.
1451 * value.c (value_computed_funcs): Make the parameter v const, use
1452 value_lval_const for it.
1453 (value_lval_const, coerce_ref_if_computed): New function.
1454 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1455 * value.h (struct lval_funcs): New field coerce_ref.
1456 (value_computed_funcs): Make the parameter v const.
1457 (value_lval_const, coerce_ref_if_computed): New declarations.
1458
1459 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1460
1461 Support @entry in input expressions.
1462 * c-exp.y (ENTRY, unknown_cpp_name): New.
1463 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1464 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1465 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1466 (name_not_typename: ENTRY): New.
1467 (yylex): Recognize ENTRY.
1468 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1469 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1470 Likewise.
1471 * parse.c (operator_length_standard): Likewise.
1472 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1473
1474 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 Display referenced values in backtraces.
1477 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1478 * stack.c (print_frame_arg): Likewise.
1479
1480 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 Make some lval_funcs methods to default on NULL.
1483 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1484 NULL.
1485 (value_assign): Check if lval_computed write method is NULL.
1486 * value.h (struct lval_funcs): Comment NULL values for read and write
1487 methods.
1488
1489 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1490
1491 Display @entry parameter values (without references).
1492 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1493 New functions.
1494 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1495 New declarations.
1496 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1497 entry record.
1498 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1499 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1500 functions.
1501 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1502 (loclist_read_variable_at_entry): New function.
1503 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1504 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1505 DW_AT_location, call dwarf_block_to_sp_offset for it.
1506 * frame.h (print_entry_values_no, print_entry_values_only)
1507 (print_entry_values_preferred, print_entry_values_if_needed)
1508 (print_entry_values_both, print_entry_values_compact)
1509 (print_entry_values_default, print_entry_values): New declarations.
1510 (struct frame_arg): New field entry_kind.
1511 (read_frame_arg): New parameter entryargp.
1512 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1513 arg->entry_kind. Optionally print the `@entry' suffix.
1514 (list_args_or_locals): New variable entryarg, initialize it.
1515 Initialize also entry_kind of arg and entryarg. Conditionalize
1516 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1517 xfree for entryarg.error.
1518 * stack.c (print_entry_values_no, print_entry_values_only)
1519 (print_entry_values_preferred, print_entry_values_if_needed)
1520 (print_entry_values_both, print_entry_values_compact)
1521 (print_entry_values_default, print_entry_values_choices)
1522 (print_entry_values): New variables.
1523 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1524 print the `@entry' suffix, possibly in combination for
1525 print_entry_values_compact.
1526 (read_frame_arg): New parameter entryargp, new variables entryval,
1527 entryval_error and val_equal. Read in also entryargp, respect
1528 print_entry_values, compare the values using val_equal, fill in also
1529 argp->entry_kind (together with entryargp->entry_kind).
1530 (print_frame_args): New variable entryarg, initialize it.
1531 Conditionalize print_frame_arg for arg, add print_frame_arg for
1532 entryarg. Call xfree for entryarg.error.
1533 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1534 * symtab.h (struct symbol_computed_ops): New field
1535 read_variable_at_entry.
1536
1537 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1538
1539 Code reshuffle.
1540 * frame.h (struct frame_arg): New definition.
1541 (read_frame_arg): New declaration.
1542 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1543 (list_args_or_locals): ... the code here. New variable arg, call
1544 read_frame_arg and list_arg_or_local with it. Unify the
1545 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1546 arg.error.
1547 * stack.c (print_frame_arg): New functiom from the code of
1548 print_frame_args.
1549 (read_frame_arg): New function.
1550 (print_frame_args): Remove variable val. New variable arg, call
1551 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1552
1553 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1554
1555 Protect entry values against self tail calls.
1556 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1557 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1558
1559 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1560
1561 Recognize virtual tail call frames.
1562 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1563 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1564 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1565 * dwarf2-frame-tailcall.c: New file.
1566 * dwarf2-frame-tailcall.h: New file.
1567 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1568 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1569 REGS.PREV only after CIE execution.
1570 (struct dwarf2_frame_cache): New field tailcall_cache.
1571 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1572 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1573 parts, try to find entry_cfa_sp_offset. Call
1574 dwarf2_tailcall_sniffer_first.
1575 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1576 when appropriate.
1577 (dwarf2_frame_dealloc_cache): New function.
1578 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1579 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1580 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1581 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1582 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1583 * dwarf2loc.c (func_addr_to_tail_call_list)
1584 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1585 (call_site_find_chain_1, call_site_find_chain): New.
1586 * dwarf2loc.h (struct call_site_chain): New.
1587 (call_site_find_chain): New declaration.
1588 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1589 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1590 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1591 * stack.c (frame_info): Support also TAILCALL_FRAME.
1592
1593 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1594
1595 Tail call sites reader implementation.
1596 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1597 fill in TYPE_TAIL_CALL_LIST.
1598 * gdbtypes.h (struct func_type): New field tail_call_list.
1599 (struct call_site): New field tail_call_next.
1600 (TYPE_TAIL_CALL_LIST): New definition.
1601
1602 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1603
1604 Implement basic support for DW_TAG_GNU_call_site.
1605 * block.c: Include gdbtypes.h and exceptions.h.
1606 (call_site_for_pc): New function.
1607 * block.h (call_site_for_pc): New declaration.
1608 * defs.h: Include hashtab.h.
1609 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1610 declarations.
1611 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1612 ctx_no_push_dwarf_reg_entry_value.
1613 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1614 (dwarf_block_to_dwarf_reg): New function.
1615 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1616 (ctx_no_push_dwarf_reg_entry_value): New function.
1617 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1618 push_dwarf_reg_entry_value.
1619 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1620 declarations.
1621 * dwarf2loc.c: Include gdbcmd.h.
1622 (dwarf_expr_ctx_funcs): New forward declaration.
1623 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1624 (dwarf_expr_reg_to_entry_parameter)
1625 (dwarf_expr_push_dwarf_reg_entry_value): New.
1626 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1627 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1628 (needs_dwarf_reg_entry_value): New function.
1629 (needs_frame_ctx_funcs): Install it.
1630 (_initialize_dwarf2loc): New function.
1631 * dwarf2loc.h (entry_values_debug): New declaration.
1632 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1633 (read_call_site_scope): New forward declaration.
1634 (process_full_comp_unit): Copy call_site_htab.
1635 (process_die): Support DW_TAG_GNU_call_site.
1636 (read_call_site_scope): New function.
1637 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1638 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1639 (cleanup_htab): Delete.
1640 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1641 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1642 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1643 FIELD_LOC_KIND_DWARF_BLOCK.
1644 * gdbtypes.h (enum field_loc_kind): New entry
1645 FIELD_LOC_KIND_DWARF_BLOCK.
1646 (struct main_type): New loc entry dwarf_block.
1647 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1648 (TYPE_FIELD_DWARF_BLOCK): New.
1649 * python/py-type.c: Include dwarf2loc.h.
1650 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1651 internal_error call on unknown FIELD_LOC_KIND.
1652 * symtab.h (struct symtab): New field call_site_htab.
1653 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1654 (core_addr_hash, core_addr_eq): New functions.
1655
1656 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1657
1658 Code reshuffle.
1659 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1660 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1661 calling_convention under func_stuff there.
1662 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1663 (init_type) <TYPE_CODE_FUNC>: Likewise.
1664 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1665 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1666 * gdbtypes.h (enum type_specific_kind): Change
1667 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1668 (struct main_type) <type_specific>: Change calling_convention to
1669 func_stuff. Move calling_convention to ...
1670 (struct func_type): ... this new struct.
1671 (INIT_FUNC_SPECIFIC): New #define.
1672 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1673
1674 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1675
1676 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1677 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1678 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1679 ctx->ref_addr_size. Handle its invalid value.
1680 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1681 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1682 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1683 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1684 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1685 (dwarf2_per_cu_ref_addr_size): New function.
1686
1687 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1688
1689 Code cleanup.
1690 * dwarf2read.c (per_cu_header_read_in): New function.
1691 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1692 variables cu_header_local and cu_headerp.
1693
1694 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 Fix initial language detection with -readnow.
1697 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1698 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1699 searches only for global symbols.
1700
1701 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1702
1703 Fix printed anonymous struct name.
1704 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1705 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1706 (anonymous_struct_prefix): New function.
1707 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1708 (dwarf2_name): Strip for anonymous structs any prefixes.
1709
1710 2011-10-07 Doug Evans <dje@google.com>
1711
1712 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1713 `replace'.
1714
1715 * python/lib/gdb/printing.py: Whitespace cleanup.
1716
1717 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1718 warning.
1719
1720 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1721
1722 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1723 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1724 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1725 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1726 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1727 (arm_linux_remove_watchpoint): Adjust.
1728 * i386-linux-nat.c (i386_linux_dr_set_control)
1729 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1730 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1731 (ia64_linux_remove_watchpoint): Adjust.
1732 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1733 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1734 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1735 (ppc_linux_insert_mask_watchpoint)
1736 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1737 (ppc_linux_remove_watchpoint): Adjust.
1738 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1739 Adjust.
1740
1741 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1742
1743 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1744 (clear_win32_environment): New function for Cygwin to clear out
1745 Win32 environment.
1746 (windows_create_inferior): Prepare new environment from in_env
1747 for Cygwin, too.
1748
1749 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1750
1751 PR python/13264
1752 * python/py-value.c (valpy_call): Check that arguments are
1753 a tuple.
1754 (is_intlike): Remove call to CHECK_TYPEDEF.
1755 (valpy_nonzero): Catch GDB exceptions.
1756 (valpy_absolute): Ditto.
1757 (valpy_lazy_string): Ditto.
1758 (valpy_call): Ditto.
1759 (valpy_get_is_optimized_out): Ditto.
1760 (valpy_long): Ditto.
1761 (valpy_float): Ditto.
1762 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1763 (valpy_richcompare): Ditto.
1764
1765 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1766
1767 * inferior.h (disable_randomization): Declare.
1768 * infrun.c (disable_randomization): New global variable.
1769 (show_disable_randomization): New function.
1770 (set_disable_randomization): Likewise.
1771 (_initialize_infrun): Install set/show disable-randomization
1772 commands.
1773 * linux-nat.c (disable_randomization): Remove.
1774 (show_disable_randomization): Likewise.
1775 (set_disable_randomization): Likewise.
1776 (_initialize_linux_nat): No longer install set/show
1777 disable-randomization commands here.
1778 (linux_nat_supports_disable_randomization): New function.
1779 (linux_nat_add_target): Install it.
1780 * remote.c (PACKET_QDisableRandomization): New enum value.
1781 (remote_protocol_packets): Support QDisableRandomization.
1782 (_initialize_remote): Likewise.
1783 (remote_supports_disable_randomization): New function.
1784 (init_remote_ops): Install it.
1785 (extended_remote_supports_disable_randomization): New function.
1786 (init_extended_remote_ops): Install it.
1787 (extended_remote_disable_randomization): New function.
1788 (extended_remote_create_inferior_1): Call it.
1789 * target.h (struct target_ops): Add to_supports_disable_randomization.
1790 (target_supports_disable_randomization): Add prototype.
1791 * target.c (target_supports_disable_randomization): New function.
1792 (find_default_supports_disable_randomization): Likewise.
1793 (init_dummy_target): Install it.
1794
1795 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1796
1797 Allow Python notification of new object-file loadings.
1798 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1799 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1800 Add build rule for this file.
1801 * python/py-event.h (emit_new_objfile_event): New prototype.
1802 (newobjfile): New Python event emitter.
1803 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1804 Python event registry.
1805 * python/py-inferior.c: Include objfiles.h
1806 (python_new_objfile): New function.
1807 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1808 observers.
1809 * python/py-newobjfileevent.c: New file.
1810 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1811 prototype.
1812 * python/python.c (_initialize_python): Add
1813 gdbpy_initialize_new_objfile_event call.
1814 * NEWS: Add item for new Python event "gdb.newobjfile"
1815
1816 2011-10-05 Tristan Gingold <gingold@adacore.com>
1817
1818 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1819 Extract the ravenscar task name from the symbol for the atcb.
1820
1821 2011-10-04 Paul Koning <paul_koning@dell.com>
1822
1823 * python/py-type.c (typy_make_iter): Add forward declaration.
1824 (typy_fields_items): Use the gdb.Type iterator.
1825
1826 2011-10-04 Paul Koning <paul_koning@dell.com>
1827
1828 * NEWS: Add entry for Python gdb.Type mapping methods.
1829
1830 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1831
1832 PR python/12691: Add the inferior to Python exited event
1833 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1834 to exited_event.
1835 * python/py-event.h (emit_exited_event): Likewise
1836 * python/-inferior.c (python_inferior_exit): Likewise
1837
1838 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1839
1840 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1841 in output of -ada-task-info GDB/MI command.
1842
1843 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1844
1845 * ada-lang.h (struct inferior): Declare.
1846 (print_ada_task_info): Add declaration.
1847 * ada-tasks.c (print_ada_task_info): Make non-static.
1848 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1849 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1850 * mi/mi-main.c: #include "ada-lang.h".
1851 (mi_cmd_list_features): Add "ada-task-info" to the list
1852 of supported features.
1853 (mi_cmd_ada_task_info): New function.
1854
1855 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1856
1857 * python/python.c (python_run_simple_file): New function.
1858 (source_python_script, source_python_script_for_objfile):
1859 Replace call to PyRun_SimpleFile by call to
1860 python_run_simple_file.
1861
1862 2011-10-03 Paul Koning <paul_koning@dell.com>
1863
1864 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1865 (value_to_value_object): Fetch value if it was lazy.
1866
1867 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1868
1869 Code cleanup.
1870 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1871 Rearrange the code for it.
1872
1873 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1874
1875 * breakpoint.c (bkpt_print_recreate): Add call to
1876 print_recreate_thread.
1877
1878 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1879
1880 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1881 PTRACE_GETFDPIC_INTERP): Define.
1882
1883 2011-09-28 Yao Qi <yao@codesourcery.com>
1884
1885 * symfile.c (add_symbol_file_command): Update message on usage.
1886
1887 2011-09-28 Paul Koning <paul_koning@dell.com>
1888
1889 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1890 (typy_length, typy_get, typy_has_key, typy_make_iter)
1891 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1892 (typy_iterator_iter, typy_iterator_iternext)
1893 (typy_iterator_dealloc): New functions to implement standard
1894 Python mapping methods on gdb.Type object.
1895 (gdb.TypeIterator): New Python type.
1896 * python/python-internal.h (gdbpy_iter_kind): New enum.
1897
1898 2011-09-28 David S. Miller <davem@davemloft.net>
1899
1900 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1901 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1902 * sparc-tdep.c (sparc_complex_floating_p): New function.
1903 (sparc32_store_arguments): Handle complex floats.
1904 (sparc32_extract_return_value): Likewise.
1905 (sparc32_store_return_value): Likewise.
1906 (sparc32_stabs_argument_has_addr): Likewise.
1907 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1908 (sparc64_store_floating_fields): Handle complex floats.
1909 (sparc64_store_arguments): Likewise.
1910 (sparc64_store_return_value): Likewise.
1911
1912 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1913
1914 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1915 before the change on 2006-12-09.
1916 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1917 generates the environment block for CreateProcessA, modulo the
1918 Cygwin-specific parts that are not needed here.
1919
1920 2011-09-27 Tristan Gingold <gingold@adacore.com>
1921
1922 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1923 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1924 (darwin_solib_get_all_image_info_addr_at_init): New function.
1925 (darwin_solib_read_all_image_info_addr): Likewise.
1926 (darwin_solib_create_inferior_hook): Use the above two functions.
1927 * darwin-nat.c (darwin_execvp): Renames retval to res.
1928 (darwin_read_write_inferior): Update comment.
1929 (darwin_read_dyld_info): New function.
1930 (darwin_xfer_partial): Handle DYLD_INFO.
1931
1932 2011-09-27 Stan Shebs <stan@codesourcery.com>
1933
1934 Add return address collection for tracepoints.
1935 * tracepoint.c (encode_actions_1): Add case for $_ret.
1936 (validate_actionline): Check for $_ret.
1937 (trace_dump_actions): Ditto.
1938 * ax-gdb.h (gen_trace_for_return_address): Declare.
1939 * ax-gdb.c: Include arch-utils.h.
1940 (gen_trace_for_return_address): New function.
1941 (agent_command): Add return address special case.
1942 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1943 (amd64_gen_return_address): New function.
1944 (amd64_init_abi): Call it.
1945 * i386-tdep.c: Include ax.h and ax-gdb.h.
1946 (i386_gen_return_address): New function.
1947 (i386_init_abi): Call it.
1948 * arch-utils.h (default_gen_return_address): Declare.
1949 * arch-utils.c (default_gen_return_address): New function.
1950 * gdbarch.sh (gen_return_address): New method.
1951 * gdbarch.h, gdbarch.c: Regenerate.
1952
1953 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1954
1955 PR gdb/13079
1956 * i386-tdep.c (i386_frame_align): New.
1957 (i386_gdbarch_init): Use i386_frame_align.
1958
1959 2011-09-23 Yao Qi <yao@codesourcery.com>
1960
1961 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1962 to get address.
1963
1964 2011-09-22 Tristan Gingold <gingold@adacore.com>
1965
1966 * fork-child.c (fork_inferior): Add exec_fun parameter.
1967 Call exec_fun or execvp.
1968 * inferior.h: Adjust prototype.
1969 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1970 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1971 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1972 * procfs.c (procfs_create_inferior): Ditto.
1973 * darwin-nat.c (darwin_execvp): New function.
1974 (darwin_create_inferior): Use it.
1975
1976 2011-09-22 Yao Qi <yao@codesourcery.com>
1977
1978 * infrun.c (context_switch): Print debug message when switching to
1979 a different thread.
1980
1981 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1982
1983 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1984 complex and vector types.
1985 (s390_return_value_convention): Likewise.
1986
1987 (s390_value_from_register): Call check_typedef.
1988 (extend_simple_arg): Likewise.
1989 (alignment_of): Likewise.
1990 (s390_push_dummy_call): Likewise.
1991 (s390_return_value): Likewise.
1992
1993 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1994
1995 * event-top.c (async_disconnect): If an exception is thrown from
1996 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1997 catch_errors.
1998 * top.c (quit_cover): Return void and take no arguments.
1999 * top.h (quit_cover): Update prototype.
2000
2001 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2002
2003 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2004 current_uiout, not uiout.
2005
2006 2011-09-19 Doug Evans <dje@google.com>
2007
2008 * python/py-auto-load.c (source_section_scripts): Fix file
2009 descriptor leak.
2010 * python/python.c (source_python_script_for_objfile): Tweak comments.
2011
2012 2011-09-18 Yao Qi <yao@codesourcery.com>
2013 Ulrich Weigand <ulrich.weigand@linaro.org>
2014
2015 Support displaced stepping for Thumb 16-bit insns.
2016 * arm-tdep.c (THUMB_NOP) Define.
2017 (thumb_copy_unmodified_16bit): New.
2018 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2019 (thumb_copy_alu_reg): New.
2020 (arm_copy_svc): Move some common code to ...
2021 (install_svc): ... here. New.
2022 (thumb_copy_svc): New.
2023 (install_pc_relative): New.
2024 (thumb_copy_pc_relative_16bit): New.
2025 (thumb_decode_pc_relative_16bit): New.
2026 (thumb_copy_16bit_ldr_literal): New.
2027 (thumb_copy_cbnz_cbz): New.
2028 (cleanup_pop_pc_16bit_all): New.
2029 (thumb_copy_pop_pc_16bit): New.
2030 (thumb_process_displaced_16bit_insn): New.
2031 (thumb_process_displaced_32bit_insn): New.
2032 (thumb_process_displaced_insn): process thumb instruction.
2033
2034 Support displaced stepping for Thumb 32-bit insns.
2035 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2036 (thumb2_copy_preload): New.
2037 (thumb2_copy_copro_load_store): New.
2038 (thumb2_copy_b_bl_blx): New.
2039 (thumb2_copy_alu_imm): New.
2040 (thumb2_copy_load_reg_imm): New.
2041 (thumb2_copy_load_literal): New
2042 (thumb2_copy_block_xfer): New.
2043 (thumb_32bit_copy_undef): New.
2044 (thumb_32bit_copy_unpred): New.
2045 (thumb2_decode_ext_reg_ld_st): New.
2046 (thumb2_decode_svc_copro): New.
2047 (decode_thumb_32bit_store_single_data_item): New.
2048 (thumb_copy_pc_relative_32bit): New.
2049 (thumb_decode_pc_relative_32bit): New.
2050 (decode_thumb_32bit_ld_mem_hints): New.
2051 (thumb2_copy_table_branch): New
2052 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2053 instructions.
2054
2055 2011-09-18 Yao Qi <yao@codesourcery.com>
2056
2057 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2058 (install_b_bl_blx): Likewise.
2059
2060 2011-09-17 Yao Qi <yao@codesourcery.com>
2061
2062 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2063 (install_load_store): ... this. New.
2064 Change parameter BYTE to SIZE.
2065 (arm_copy_ldr_str_ldrb_strb): Update caller.
2066 (arm_decode_ld_st_word_ubyte): Update caller.
2067
2068 2011-09-17 Yao Qi <yao@codesourcery.com>
2069
2070 * infrun.c (displaced_step_fixup): Move some code ...
2071 (displaced_step_restore): ... here. New function.
2072 (handle_inferior_event): Cleanup displaced stepping state for both
2073 child and parent when get forked or vforked event.
2074 * regcache.c (get_thread_arch_aspace_regcache): New function.
2075 get_thread_arch_regcache (): Call it.
2076
2077 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2078
2079 * ada-tasks.c (print_ada_task_info): New function, merging
2080 short_task_info and info_tasks together. Reimplement using
2081 ui-out instead of printing to stdout directly. Move the code
2082 building and checking the task list here, instead of leaving it
2083 in info_tasks_command.
2084 (info_task): Move the code building and checking the task
2085 list here, instead of leaving it in info_tasks_command.
2086 (info_tasks_command): Delete code building and checking
2087 the task list - moved elsewhere. Update calls to info_tasks
2088 and info_task.
2089
2090 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2091
2092 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2093
2094 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2095
2096 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2097
2098 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2099
2100 * ada-lang.h (ada_build_task_list): Remove parameter
2101 `warn_if_null'.
2102 * ada-tasks.c (ada_build_task_list): Remove parameter
2103 `warn_if_null'. Adjust implementation and documentation.
2104 (valid_task_id, ada_get_environment_task)
2105 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2106 (info_tasks_command): Adjust implementation.
2107 (task_command): Likewise.
2108 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2109 to ada_build_task_list.
2110
2111 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2112
2113 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2114 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2115 (ada_tasks_inferior_data_handle): New static global.
2116 (get_ada_tasks_inferior_data): New function.
2117 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2118 (ada_get_environment_task, iterate_over_live_ada_tasks)
2119 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2120 Adjust.
2121 (ada_set_current_inferior_known_tasks_addr): New function.
2122 (read_known_tasks, ada_build_task_list, short_task_info)
2123 (info_tasks, info_task, info_tasks_command, task_command_1)
2124 (task_command, ada_task_list_changed): Adjust.
2125 (ada_tasks_invalidate_inferior_data): New function.
2126 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2127 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2128 * ada-lang.h (struct inferior): Add declaration.
2129 (ada_task_list_changed): Update profile.
2130 * remote-wtx-pd.c: #include "inferior.h".
2131 (switch_to_pd_internal): Update call to ada_task_list_changed.
2132
2133 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2134
2135 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2136 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2137 (atcb_fieldno): Delete these static globals.
2138 (struct ada_tasks_pspace_data): New struct.
2139 (ada_tasks_pspace_data_handle): New static global.
2140 (get_ada_tasks_pspace_data): New function.
2141 (ada_tasks_invalidate_pspace_data): New function.
2142 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2143 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2144 (_initialize_tasks): Create this module's per-progspace
2145 data handle.
2146
2147 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2148
2149 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2150
2151 2011-09-16 Tristan Gingold <gingold@adacore.com>
2152
2153 * fork-child.c (fork_inferior): Update comment. Use alloca
2154 instead of xmalloc for argv. Move len and shell_command
2155 declarations in the block where they are used.
2156 Only call execvp. Factorize failure code.
2157
2158 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2159
2160 Code cleanup.
2161 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2162 `exp_element' instead of an element of the same and make the function
2163 static.
2164 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2165 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2166 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2167 Change argument of `write_exp_elt' function call.
2168 Remove extra spaces from comments.
2169 * parser-defs.h (write_exp_elt): Remove prototype.
2170
2171 2011-09-15 Paul Koning <paul_koning@dell.com>
2172
2173 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2174 count of item appended to list.
2175 * python/py-type.c (typy_fields): Likewise.
2176
2177 2011-09-15 Paul Koning <paul_koning@dell.com>
2178
2179 * MAINTAINERS (Write After Approval): Add myself to the list.
2180
2181 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2182
2183 PR threads/12628
2184 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2185 processes with multiple threads.
2186 (inf_has_multiple_thread_cb): New function.
2187 (inf_has_multiple_threads): New function.
2188
2189 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2190
2191 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2192 * python/py-inferior.c (GdbMethods): New Python method definition.
2193
2194 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2195
2196 Handle multiple breakpoint hits in Python interface:
2197 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2198 variable to breakpoints.
2199 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2200 bps instead of single breakpoint. Fix some space typos.
2201 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2202 variable to breakpoints.
2203
2204 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2205
2206 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2207 note if the breakpoint is internal.
2208
2209 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2210
2211 * MAINTAINERS (Write After Approval): Add myself to the list
2212
2213 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2214
2215 * infrun.c (prepare_for_detach, wait_for_inferior)
2216 (fetch_inferior_event): Don't flush the register cache.
2217 * remote.c (struct stop_reply) <regcache>: Add comment.
2218
2219 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 Remove excessive DWARF expressions memory duplication.
2222 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2223 for block.data.
2224 (indirect_pieced_value): Remove variable result. Remove variable
2225 back_to and its use for baton.data.
2226 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2227 block.data.
2228 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2229 Update the function comment.
2230
2231 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2232
2233 * inferior.h (ALL_INFERIORS): New.
2234 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2235 for a stopped thread.
2236 (thread_db_find_new_threads): Look for threads in all inferiors.
2237
2238 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2239
2240 * breakpoint.c (update_watchpoint): Handle the case of the
2241 watchpoint to update not being in the breakpoint list yet.
2242 (hw_watchpoint_use_count): New, factored out from
2243 hw_watchpoint_used_count.
2244 (hw_watchpoint_used_count): Rename to ...
2245 (hw_watchpoint_used_count_others): ... this. Add `except'
2246 parameter. Don't count resources of `except'. Use
2247 hw_watchpoint_use_count.
2248
2249 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2250
2251 * gdbthread.h (enum thread_state): Moved here.
2252 (struct thread_info): Rename `executing_' field to `executing' and
2253 `state_' to `state'.
2254 * thread.c (enum thread_state): Moved to gdbthread.h.
2255 (new_thread, add_thread_silent, delete_thread_1)
2256 (any_live_thread_of_process, thread_alive, set_running)
2257 (set_running, is_thread_state, any_running, is_executing)
2258 (set_executing, finish_thread_state, print_thread_info)
2259 (do_captured_thread_select): Adjust.
2260
2261 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2262
2263 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2264 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2265
2266 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2267 Matt Rice <ratmice@gmail.com>
2268
2269 PR gdb/13175
2270
2271 * interps.c (struct interp) <interpreter_out>: Delete field.
2272 (interp_new): Remove the data and uiout parameters and adjust.
2273 (interp_set): Only set the current_uiout from the interpreter's
2274 uiout after initializing the interpreter. Adjust call to
2275 init_proc.
2276 (interp_ui_out): Adjust to call procs->ui_out_proc.
2277 (interp_data, interp_name): New.
2278 * interps.h (interp_init_ftype): Add `self' parameter.
2279 (interp_ui_out_ftype): New typedef.
2280 (struct interp_procs) <ui_out_proc>: New method pointer.
2281 (interp_new): Remove the data and uiout parameters.
2282 (interp_data, interp_name): Declare.
2283 * tui/tui-interp.c (tui_init): Adjust prototype.
2284 (tui_ui_out): New.
2285 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2286 tui_out here. Adjust call to interp_new.
2287 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2288 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2289 (cli_ui_out): New.
2290 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2291 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2292 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2293 Initialize mi->uiout depending on the mi_version as extracted from
2294 the interpreter's name.
2295 (mi_ui_out): New.
2296 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2297 interp_new. Don't allocate the ui_out's of the interpreters here.
2298
2299 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2300
2301 * solib.c (solib_used): New function.
2302 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2303 by another so_list object before freeing it.
2304
2305 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2306
2307 Code cleanup.
2308 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2309 values.
2310
2311 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Code cleanup.
2314 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2315 (amd64_skip_xmm_prologue): ... this new function. Describe its
2316 parameters. No longer use amd64_prologue_line_bug.
2317 * defs.h (producer_is_gcc_ge_4): New declaration.
2318 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2319 (process_full_comp_unit): Update its caller. Remove
2320 amd64_prologue_line_bug initialization.
2321 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2322 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2323
2324 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2325
2326 * linux-nat.h (enum resume_kind): New.
2327 (struct lwp_info) <last_resume_kind>: New field.
2328 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2329 resume_stop on the new lwp.
2330 (add_lwp): Set last_resume_kind as resume_continue by default.
2331 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2332 (resume_lwp): New, factored out from resume_callback. Also check
2333 for pending status in lp->waitstatus.
2334 (resume_callback): Reimplement.
2335 (resume_clear_callback): Set last_resume_kind as resume_stop.
2336 (resume_set_callback): Set last_resume_kind as resume_continue.
2337 (linux_nat_resume, linux_handle_extended_wait): Set
2338 last_resume_kind.
2339 (running_callback): Also check lp->waitstatus for pending events.
2340 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2341 is resume_step.
2342 (stop_and_resume_callback): Don't re-resume if the core wanted the
2343 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2344 using an invalidated pointer.
2345 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2346 SIGSTOPs if the core wanted the LWP to stop.
2347 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2348 wanted the lwp to stop. If the core wanted the lwp to stop, and
2349 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2350 of TARGET_SIGNAL_STOP.
2351 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2352 here. Instead, signal the lwp, and set the last_resume_kind to
2353 resume_stop.
2354
2355 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2356
2357 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2358 -1 (error), if the lwp exits right after attaching.
2359
2360 2011-09-08 Doug Evans <dje@google.com>
2361
2362 * py-cmd.c: Some minor formatting fixes.
2363 (gdbpy_parse_command_name): Rename text arg to name, make const.
2364 All callers updated.
2365 * python-internal.h (gdbpy_parse_command_name): Update.
2366
2367 * cli/cli-decode.c (add_cmd): Add comment.
2368
2369 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2370
2371 PR breakpoints/12435
2372 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2373 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2374 * dwarf2read.c (process_full_comp_unit): Initialize
2375 amd64_prologue_line_bug.
2376 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2377
2378 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 Fix TUI screen corruption.
2381 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2382 batch_flag.
2383
2384 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 * findvar.c (read_var_value): Never return NULL, throw an error
2387 instead. Update the function comment. State symbol name in the error
2388 messages.
2389 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2390 read_var_value.
2391 * stack.c (print_frame_args): Likewise.
2392 * valops.c (value_of_variable): Likewise.
2393
2394 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2395
2396 * stack.c (print_frame_args): New variable except. Wrap
2397 read_var_value and common_val_print into TRY_CATCH.
2398
2399 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2402 caller to value_of_this.
2403 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2404 Twice.
2405 * valops.c (value_of_this): Remove parameter complain and variable ret.
2406 Update function comment. Never return NULL by this code.
2407 (value_of_this_silent): New function.
2408 * value.h (value_of_this): Remove parameter complain.
2409 (value_of_this_silent): New declaration.
2410
2411 2011-09-07 Yao Qi <yao@codesourcery.com>
2412
2413 * gdbthread.h (struct thread_info): Remove fields
2414 `stepping_through_solib_after_catch' and
2415 `stepping_through_solib_catchpoints'.
2416 * infrun.c (init_thread_stepping_state): Update.
2417 (process_event_stop_test, currently_stepping): Update.
2418 (currently_stepping_or_nexting_callback): Update.
2419
2420 2011-09-07 Yao Qi <yao@codesourcery.com>
2421
2422 * gdbthread.h (struct thread_info): Comment on field
2423 `step_after_step_resume_breakpoint'.
2424
2425 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2426
2427 * remote.c (remote_console_output): Reindent.
2428
2429 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2430
2431 * frame.c (has_stack_frames): Check for currently selected
2432 traceframe.
2433
2434 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2435
2436 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2437 (set_async_annotation_level, set_async_prompt, pop_prompt)
2438 (push_prompt, new_async_prompt): Delete declarations.
2439 * top.h (get_prompt, set_prompt): Change prototype.
2440 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2441 declarations.
2442 * top.c (command_loop):
2443 (top_prompt): New global.
2444 (get_prefix, set_prefix, get_suffix, ): Delete.
2445 (get_prompt, set_prompt): Rewrite.
2446 (show_new_async_prompt): Rename to ...
2447 (show_prompt): ... this.
2448 (init_main): Adjust. Don't handle --annotate=2 here.
2449 * event-top.c (new_async_prompt): Delete.
2450 (the_prompts): Delete.
2451 (more_to_come): Make static.
2452 (display_gdb_prompt): Use top_level_prompt() to compute the top
2453 level prompt, and don't notify the before_prompt observers
2454 directly here. Always trick readline into not trying to display
2455 the prompt if sync_execution and displaying the primary prompt.
2456 If displaying a local/secondary prompt, always show it, even if
2457 sync_execution is set.
2458 (change_annotation_level): Delete.
2459 (top_level_prompt): New, based on change_annotation_level.
2460 (push_prompt, pop_prompt): Delete.
2461 (async_disable_stdin): No longer pushes prompt.
2462 (command_line_handler): No longer pushes or pops prompt. If more
2463 input is expected, call display_gdb_prompt with an explicit empty
2464 prompt.
2465 (async_stop_sig): Adjust.
2466 (set_async_annotation_level, set_async_prompt): Delete.
2467 * python/python.c (before_prompt_hook): Adjust.
2468
2469 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2470
2471 PR cli/13110
2472
2473 * infrun.c (fetch_inferior_event): Check if there's a selected
2474 thread before checking if the selected thread is executing.
2475
2476 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2477
2478 * inf-loop.c (execute_command): Don't check if the current thread
2479 if running before synchronously waiting for command completion.
2480 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2481 here.
2482 (normal_stop): Call async_enable_stdin here.
2483 * inf-loop.c (inferior_event_handler): Don't call
2484 async_enable_stdin, nor handle "set exec-done-display" here.
2485
2486 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2487
2488 GDB 7.3.1 released.
2489
2490 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2491
2492 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2493
2494 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2495
2496 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2497
2498 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2499
2500 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2501
2502 2011-09-02 Matt Rice <ratmice@gmail.com>
2503
2504 PR gdb/10720
2505 * event-top.c (cli_command_loop): Replace readline setup with
2506 direct call to display_gdb_prompt.
2507 (display_gdb_prompt): Do not call observer mechanism during
2508 synchronous execution.
2509
2510 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2511
2512 * linux-nat.c (in_pid_list_p): New.
2513 (linux_record_stopped_pid): Delete.
2514 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2515 already attached to the LWP. Return an indication if so.
2516 (linux_nat_filter_event): Adjust.
2517 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2518 returning an indication to ignore this thread.
2519
2520 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2521
2522 * top.c: Include interps.h.
2523 (execute_command): If the target can async, but the interpreter is
2524 in sync mode, synchronously wait for the command to finish before
2525 returning.
2526 (execute_command_to_string): Force the interpreter to sync mode.
2527 * infrun.c: Include interps.h.
2528 (fetch_inferior_event): Don't restore the prompt yet if the
2529 interpreter is in sync mode.
2530 * interps.c (interpreter_async): New global.
2531 * interps.h (interpreter_async): Declare.
2532 * inf-loop.c: Include interps.h.
2533 (inferior_event_handler): Don't print the language change or run
2534 breakpoint commands yet if the interpreter in is sync mode.
2535 * main.c (captured_command_loop): Flip the interpreter to async
2536 mode.
2537 * cli/cli-script.c: Include interps.h.
2538 (execute_user_command, while_command, if_command): Force the
2539 interpreter to sync mode.
2540 * python/python.c: Include interps.h.
2541 (python_command, execute_gdb_command): Force the interpreter to
2542 sync mode.
2543
2544 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2545
2546 * value.c (show_convenience): Catch errors thrown while printing
2547 each internal variable.
2548 * infrun.c (validate_siginfo_access): New function.
2549 (siginfo_value_read, siginfo_value_write): Call it.
2550
2551 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2552
2553 Revert:
2554 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2555 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2556 attribute.
2557
2558 2011-08-29 Yao Qi <yao@codesourcery.com>
2559
2560 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2561 (cmp_name): New.
2562 (enable_break2): Update caller.
2563 * solib-frv.c (bfd_lookup_symbol): Removed.
2564 (cmp_name): New.
2565 (enable_break2): Update caller.
2566 * solib-pa64.c (bfd_lookup_symbol): Removed.
2567 (cmp_name): New.
2568 * solib-svr4.c (bfd_lookup_symbol): Removed.
2569 (cmp_name_and_sec_flags): New.
2570 (enable_break): Update caller.
2571 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2572 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2573 (gdb_bfd_lookup_symbol): New.
2574 * solib.h: Functions declarations.
2575
2576 2011-08-29 Yao Qi <yao@codesourcery.com>
2577
2578 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2579 and solib-dsbt.o.
2580
2581 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 Fix TUI stepi on code without symbols.
2584 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2585 current PC instead.
2586
2587 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2588
2589 Code cleanup.
2590 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2591 and the static keyword.
2592 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2593 Make prefix an array.
2594 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2595 * mi/mi-main.c (get_register): Remove stb initialization and the static
2596 keyword.
2597
2598 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 Code cleanup - make mi_opt const.
2601 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2602 opts const.
2603 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2604 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2605 (mi_cmd_env_dir): Likewise.
2606 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2607 (mi_cmd_target_file_put): Likewise.
2608 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2609 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2610 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2611 (mi_valid_noargs): Make opts const.
2612 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2613 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2614 (mi_cmd_data_read_memory): Likewise.
2615 (mi_cmd_data_read_memory_bytes): Likewise.
2616 (mi_cmd_data_write_memory): Likewise.
2617
2618 2011-08-26 Matt Rice <ratmice@gmail.com>
2619
2620 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2621 bcache_xmalloc, replace bcache_xmalloc with call to
2622 psymbol_bcache_init for psymbol_cache.
2623 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2624
2625 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2626
2627 * inf-loop.c (inferior_event_handler): Add exception_print in
2628 INF_EXEC_COMPLETE.
2629
2630 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2633 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2634 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2635 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2636 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2637 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2638 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2639 * infrun.c (fetch_inferior_event): Call
2640 make_bpstat_clear_actions_cleanup.
2641 * top.c (execute_command): New variable cleanup_if_error, call
2642 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2643 * utils.c (do_bpstat_clear_actions_cleanup)
2644 (make_bpstat_clear_actions_cleanup): New functions.
2645
2646 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2647
2648 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2649 either the parent or the child forks. Rename a couple locals.
2650
2651 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2652
2653 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2654 library call. Avoid reading the `status' local if all waitpid
2655 calls failed.
2656
2657 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2658
2659 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2660 opening /proc/PID/task always succeeds.
2661
2662 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2663
2664 * linespec.c (symtab_from_filename): Check for the end of string.
2665
2666 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2667
2668 PR mi/11912
2669 * varobj.c (cplus_describe_child): Add the keyword
2670 'class' to the output of the method when dealing
2671 with a cast to a base class.
2672
2673 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2674
2675 No functionality change.
2676 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2677 function comment a reference, new variables tp and bs, move here code
2678 from throw_exception.
2679 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2680 describe it in the comment.
2681 * exceptions.c (throw_exception): Remove variable tp, move the code for
2682 bpstat_clear_actions to bpstat_clear_actions.
2683
2684 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2685
2686 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2687 * linux-nat.c: Include linux-procfs.h.
2688 (linux_proc_get_tgid): Move to ...
2689 * common/linux-procfs.c: ... here. New file.
2690 * common/linux-procfs.h: New file.
2691 * linux-thread-db.c: Include linux-procfs.h.
2692 * Makefile.in: Update dependencies.
2693 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2694 * config/arm/linux.mh: Likewise.
2695 * config/i386/linux.mh: Likewise.
2696 * config/i386/linux64.mh: Likewise.
2697 * config/ia64/linux.mh: Likewise.
2698 * config/m32r/linux.mh: Likewise.
2699 * config/m68k/linux.mh: Likewise.
2700 * config/mips/linux.mh: Likewise.
2701 * config/pa/linux.mh: Likewise.
2702 * config/pa/linux.mh: Likewise.
2703 * config/powerpc/linux.mh: Likewise.
2704 * config/powerpc/ppc64-linux.mh: Likewise.
2705 * config/powerpc/spu-linux.mh: Likewise.
2706 * config/sparc/linux.mh: Likewise.
2707 * config/sparc/linux64.mh: Likewise.
2708 * config/xtensa/linux.mh: Likewise.
2709
2710 2011-08-24 Hui Zhu <teawater@gmail.com>
2711
2712 * tracepoint.c (cond_string_is_same): New function.
2713 (find_matching_tracepoint): Add condition check
2714 by cond_string_is_same.
2715
2716 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2717
2718 Fix build error in Darwin port.
2719 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2720
2721 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 Code cleanup.
2724 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2725 (command_line_is_silent): New function.
2726 (bpstat_do_actions_1): No longer use commands_left, use
2727 command_line_is_silent for commands.
2728 (bpstat_alloc): Remove clearing of commands_left.
2729 (bpstat_stop_status): Remove initialization of commands_left, use
2730 command_line_is_silent.
2731 * breakpoint.h (struct bpstats): Remove commands_left.
2732
2733 2011-08-18 Keith Seitz <keiths@redhat.com>
2734
2735 PR c++/12266
2736 * cp-name-parser.y (struct demangle_info): Remove unused
2737 member PREV.
2738 (d_grab): Likewise.
2739 (allocate_info): Change return type to struct demangle_info *.
2740 Always allocate a new demangle_info.
2741 Remove unused PREV pointer.
2742 (cp_new_demangle_parse_info): New function.
2743 (cp_demangled_name_parse_free): New function.
2744 (do_demangled_name_parse_free_cleanup): New function.
2745 (make_cleanup_cp_demangled_name_parse_free): New function.
2746 (cp_demangled_name_to_comp): Change return type to
2747 struct demangle_parse_info *.
2748 Allocate a new storage for each call.
2749 (main): Update usage for cp_demangled_name_to_comp
2750 API change.
2751 * cp-support.h (struct demangle_parse_info): New structure.
2752 (cp_demangled_name_to_comp): Update API change for
2753 return type.
2754 (cp_new_demangle_parse_info): Declare.
2755 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2756 (cp_demangled_name_parse_free): Declare.
2757 * cp-support.c (cp_canonicalize_string): Update API
2758 change for cp_demangled_name_to_comp.
2759 (mangled_name_to_comp): Likewise.
2760 Return struct demangle_parse_info, too.
2761 (cp_class_name_from_physname): Update mangled_name_to_comp
2762 API change.
2763 (method_name_from_physname): Likewise.
2764 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2765 (cp_remove_params): Likewise.
2766 * python/py-type.c (typy_legacy_template_argument): Likewise.
2767
2768 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2769 (cp_merge_demangle_parse_infos): Declare.
2770 * cp-support.c (ignore_typedefs): New file global.
2771 (copy_string_to_obstack): New function.
2772 (inspect_type): New function.
2773 (replace_typedefs): New function.
2774 (replace_typedefs_qualified_name): New function.
2775 (cp_canonicalize_string_no_typedefs): New function.
2776 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2777 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2778 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2779 instead of cp_canonicalize_string.
2780 (find_method): Likewise.
2781 (decode_compound): Before looking up the name, call
2782 cp_canonicalize_string_no_typedefs.
2783 (decode_variable): Likewise.
2784
2785 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2786 Tom Tromey <tromey@redhat.com>
2787 Matt Rice <ratmice@gmail.com>
2788
2789 * python/lib/gdb/prompt.py: New file.
2790 * python/lib/gdb/command/prompt.py: New file.
2791 * NEWS: Document set extended-prompt and gdb.prompt library
2792
2793 2011-08-16 Yao Qi <yao@codesourcery.com>
2794
2795 * tic6x-linux-tdep.c: Move const arrays definition from here...
2796 * tic6x-tdep.c: to here ...
2797
2798 2011-08-14 Yao Qi <yao@codesourcery.com>
2799
2800 * NEWS: New port to Texas Instruments TMS320C6x.
2801
2802 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2803 Bernd Schmidt <bernds@codesourcery.com>
2804 Yao Qi <yao@codesourcery.com>
2805
2806 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2807 * solib-dsbt.c: New file. Support DSBT shared object.
2808 * tic6x-linux-tdep.c: New file.
2809 * tic6x-tdep.c: New file.
2810 * tic6x-tdep.h: New file.
2811
2812 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2813 Yao Qi <yao@codesourcery.com>
2814
2815 * remote.c (PACKET_qXfer_fdpic): New enum value.
2816 (remote_protocol_features): Add qXfer:fdpic:read packet.
2817 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2818 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2819 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2820
2821 2011-08-14 Yao Qi <yao@codesourcery.com>
2822
2823 Target description for tic6x.
2824 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2825 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2826 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2827 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2828 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2829 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2830 * features/tic6x-c64xp-linux.xml: New.
2831 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2832 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2833 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2834 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2835 * regformats/tic6x-c64xp.dat,
2836 regformats/tic6x-c62x-linux.dat: Generated.
2837 * regformats/tic6x-c64x-linux.dat,
2838 regformats/tic6x-c64xp-linux.dat: Generated.
2839 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2840 features/tic6x-*.c files.
2841 Add regformats/tic6x-*.dat files.
2842
2843 2011-08-12 Doug Evans <dje@google.com>
2844
2845 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2846 * python/py-symbol.c (sympy_get_type): New function.
2847 (symbol_object_getset): Add "type".
2848
2849 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2850
2851 PR tui/13073
2852
2853 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2854 empty name.
2855 (tui_show_register_group): Don't store a byte buffer in the data
2856 element's value.
2857 (tui_register_format): Skip registers with an empty name.
2858 (tui_get_register): Store a struct value in the data element's
2859 value field instead of a byte buffer holding the raw register
2860 contents. Account for optimized-out and unavailable registers
2861 when comparing register contents.
2862
2863 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2864
2865 * printcmd.c (current_display_number): Update comment.
2866 (disable_current_display_cleanup): Delete.
2867 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2868 catch errors thrown while evaluating and printing the display.
2869
2870 2011-08-09 Tom Tromey <tromey@redhat.com>
2871
2872 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2873
2874 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2875
2876 * elfread.c (elf_symtab_read): Rework comments.
2877 * maint.c (maintenance_command): Ditto.
2878 * somread.c (som_symtab_read): Ditto.
2879 * solib.c (solib_find, solib_map_sections, update_solib_list)
2880 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2881 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2882 (sharedlibrary_command, no_shared_libraries): Ditto.
2883 * solib-irix.c (locate_base, disable_break, enable_break)
2884 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2885 (irix_current_sos, irix_open_symbol_file_object)
2886 (irix_special_symbol_handling): Ditto.
2887 * solib-sunos.c (locate_base, first_link_map_member)
2888 (sunos_current_sos, disable_break, enable_break)
2889 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2890 Ditto.
2891 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2892 (open_symbol_file_object, svr4_current_sos, enable_break)
2893 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2894 Ditto.
2895 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2896 (frv_current_sos, enable_break, frv_special_symbol_handling)
2897 (frv_solib_create_inferior_hook): Ditto.
2898 * solist.h (struct target_so_ops): Extend the comments of the
2899 special_symbol_handling, current_sos and open_symbol_file_object
2900 methods.
2901
2902 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2903
2904 * python/lib/gdb/__init__.py: Auto-load files in command and
2905 function directories.
2906 * python/python.c (finish_python_initialization): Use
2907 os.path.join.
2908 * python/lib/gdb/command/pretty_printers.py: Self register
2909 command.
2910 * NEWS: Document auto-loading.
2911
2912 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2913
2914 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2915 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2916 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2917
2918 2011-08-08 Tom Tromey <tromey@redhat.com>
2919
2920 * breakpoint.c (clean_up_filters): Remove.
2921 (catch_syscall_split_args): Use VEC_cleanup.
2922
2923 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2924
2925 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2926 (main): Uncomment "Demangling error\n".
2927
2928 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2929
2930 * solib-target.c (segment_attributes): Make them static.
2931 (section_attributes, library_children, library_attributes): Likewise.
2932 (library_list_children, library_list_attributes): Likesise.
2933 (library_list_elements): Likewise.
2934
2935 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2936
2937 * exceptions.c (throw_exception): Don't disable the current
2938 display.
2939 * printcmd.c (disable_current_display_cleanup): New function.
2940 (do_one_display): Install a cleanup to disable the current display
2941 if doing the display throws.
2942
2943 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2944
2945 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2946 initialization of the tp_new member to the corresponding
2947 gdbpy_initialize_* function.
2948 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2949 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2950 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2951 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2952 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2953
2954 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2955
2956 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2957 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2958 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2959 references to current_uiout.
2960
2961 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2962
2963 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2964 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2965 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2966 * top.c (gdb_readline_wrapper): Adjust.
2967 * tui/tui-interp.c (tui_command_loop):
2968 (_initialize_tui_interp): Don't install it.
2969
2970 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2971
2972 * ui-out.h (uiout): Rename to ...
2973 (current_uiout): ... this.
2974 * ui-out.c (uiout): Rename to ...
2975 (current_uiout): ... this.
2976 * ada-lang.c (print_it_exception, print_one_exception)
2977 (print_mention_exception): Adjust.
2978 * breakpoint.c (watchpoint_check): Adjust.
2979 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2980 (default_collect_info, watchpoints_info, print_one_catch_fork)
2981 (print_one_catch_vfork, print_one_catch_syscall)
2982 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2983 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2984 (print_it_watchpoint, print_mention_watchpoint)
2985 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2986 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2987 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2988 (bkpt_print_mention, momentary_bkpt_print_it)
2989 (tracepoint_print_mention, update_static_tracepoint)
2990 (tracepoints_info, save_breakpoints): Adjust.
2991 * cli-out.c (field_separator): Adjust.
2992 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2993 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2994 * frame.c (get_current_frame): Adjust.
2995 * infcmd.c (run_command_1, print_return_value): Adjust.
2996 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2997 * infrun.c (print_end_stepping_range_reason): Adjust.
2998 (print_signal_exited_reason, print_exited_reason): Adjust.
2999 (print_signal_received_reason, print_no_history_reason): Adjust.
3000 * interps.c (interp_set): Adjust.
3001 * osdata.c (info_osdata_command): Adjust.
3002 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3003 * remote-fileio.c (remote_fileio_request): Adjust.
3004 * remote.c (show_remote_cmd): Adjust.
3005 * solib.c (info_sharedlibrary_command): Adjust.
3006 * source.c (print_source_lines_base): Adjust.
3007 * stack.c (print_stack_frame): Adjust.
3008 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3009 * symfile-mem.c (add_vsyscall_page): Adjust.
3010 * symfile.c (load_progress, generic_load)
3011 (print_transfer_performance): Adjust.
3012 * thread.c (info_threads_command, restore_selected_frame)
3013 (thread_command): Adjust.
3014 * top.c (make_cleanup_restore_ui_file): Adjust.
3015 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3016 (print_one_static_tracepoint_marker): Adjust.
3017 * cli/cli-cmds.c (print_disassembly): Adjust.
3018 * cli/cli-decode.c (print_doc_line): Adjust.
3019 * cli/cli-interp.c (safe_execute_command): Adjust.
3020 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3021 (handle_redirections): Adjust.
3022 * cli/cli-script.c (show_user_1): Adjust.
3023 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3024 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3025 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3026 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3027 (mi_cmd_env_dir): Adjust.
3028 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3029 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3030 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3031 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3032 (list_args_or_locals): Adjust.
3033 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3034 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3035 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3036 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3037 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3038 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3039 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3040 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3041 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3042 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3043 (list_available_thread_groups, mi_cmd_list_thread_groups)
3044 (mi_cmd_data_list_register_names)
3045 (mi_cmd_data_list_changed_registers)
3046 (mi_cmd_data_list_register_values, get_register)
3047 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3048 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3049 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3050 (mi_execute_command, mi_load_progress): Adjust.
3051 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3052 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3053 Adjust.
3054 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3055 * tui/tui-interp.c (tui_command_loop): Adjust.
3056 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3057
3058 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3059
3060 * exceptions.c (struct catcher): Remove saved_uiout field.
3061 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3062 no longer save/resvore the global ui_out builder.
3063 (catch_exceptions_with_msg): Save/override/restore the global
3064 ui_out builder manually instead of relying on TRY_CATCH to do it.
3065 (catch_errors): Save/restore the global ui_out builder manually
3066 instead of relying on TRY_CATCH to do it.
3067 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3068 parameter.
3069 (TRY_CATCH): Adjust.
3070 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3071 the global ui_out builder manually instead of relying on TRY_CATCH
3072 to do it.
3073
3074 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3075
3076 * breakpoint.c (update_global_location_list): Ensure
3077 invariant 'first loc marked not duplicated and inserted,
3078 following locs marked duplicated/not inserted' is respected
3079 for multiple locations at the same address.
3080 (unduplicated_should_be_inserted) New function.
3081 (swap_insertion) New function.
3082
3083 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3084
3085 * stack.c (print_frame_arguments_choices): Comment typo fix.
3086
3087 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3088
3089 Revert:
3090 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3091 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3092 argument. Update callers.
3093
3094 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3095
3096 PR gdb/13045
3097 * doublest.c (convert_doublest_to_floatformat): Pass correct
3098 mantissa length to put_field.
3099
3100 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3101
3102 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3103 exception_print code path.
3104 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3105 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3106 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3107
3108 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3109
3110 Code cleanup.
3111 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3112 Remove, merge them into ...
3113 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3114 variable args and its initialization.
3115 (struct print_args_args, print_args_stub): Remove, merge them into
3116 print_frame.
3117 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3118 them into ...
3119 (do_gdb_disassembly): ... here. Remove variable args and its
3120 initialization.
3121 (print_frame): Remove variable args and its initialization, new
3122 variable gdbarch and numargs (from print_args_stub), inline here
3123 print_args_stub with a TRY_CATCH.
3124 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3125 them into ...
3126 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3127 New variable e, remove variable btargs and its initialization.
3128
3129 2011-08-01 Tristan Gingold <gingold@adacore.com>
3130
3131 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3132
3133 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3134
3135 * breakpoint.c (insert_bp_location): Document return value.
3136 (insert_breakpoint_locations): Fix documentation.
3137 (remove_breakpoints): Add documentation.
3138
3139 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3140
3141 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3142 argument. Update callers.
3143
3144 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 * stack.c (print_frame_info): Comment typo fix.
3147
3148 2011-07-29 Sterling Augustine <saugustine@google.com>
3149
3150 * MAINTAINERS (Write After Approval): Add myself to the list.
3151
3152 2011-07-29 Tom Tromey <tromey@redhat.com>
3153
3154 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3155 (library_list_start_segment): Update.
3156 (library_list_start_section): Update.
3157
3158 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3159
3160 * varobj.c (value_get_print_value): Move hint check later into the
3161 function. Comment function. Free thevalue before reusing it.
3162
3163 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3164 Pedro Alves <pedro@codesourcery.com>
3165
3166 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3167 value_one.
3168 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3169 Assert the result kind.
3170 * value.h (value_one): Remove parameter lv.
3171
3172 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3173
3174 Fix crash on lval_computed values.
3175 * valops.c (value_zero): Use not_lval for lval_computed.
3176
3177 2011-07-27 Tom Tromey <tromey@redhat.com>
3178
3179 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3180 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3181
3182 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3183
3184 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3185 "ptype" by their typedefs difference.
3186
3187 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3188
3189 * dwarf2expr.c (ctx_no_read_reg): New function.
3190 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3191 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3192 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3193 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3194
3195 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3198 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3199 file.
3200 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3201 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3202 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3203 (ctx_no_get_base_type): Move the functions here.
3204 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3205 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3206 (ctx_no_get_base_type): New declarations.
3207
3208 2011-07-27 Tom Tromey <tromey@redhat.com>
3209
3210 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3211 entries.
3212 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3213 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3214
3215 2011-07-26 Sterling Augustine <saugustine@google.com>
3216
3217 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3218 ULONGEST.
3219 (dump_bfd_file): Likewise.
3220
3221 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3222
3223 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3224 (remote_hw_watchpoint_length_limit): New variable.
3225 (_initialize_remote) add set,show cmds for this new variable.
3226 * gdb.texinfo: document these new commands.
3227 * NEWS: Mention these new commands.
3228
3229 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3230
3231 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3232 true for software watchpoints.
3233
3234 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3235
3236 GDB 7.3 released.
3237
3238 2011-07-26 Tom Tromey <tromey@redhat.com>
3239
3240 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3241 * dwarf2read.c (read_indirect_string_at_offset): New function.
3242 (read_indirect_string): Use it.
3243 (dwarf_decode_macro_bytes): New function, taken from
3244 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3245 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3246 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3247 New functions.
3248 (struct dwarf2_per_objfile) <macro>: New field.
3249 (dwarf2_elf_names): Add .debug_macro.
3250 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3251 (dwarf2_locate_sections): Handle new section.
3252 (read_file_scope): Handle DW_AT_GNU_macros.
3253 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3254
3255 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3256
3257 * NEWS: Mention dcache configuration.
3258 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3259 (dcache_size, dcache_line_size): New variables.
3260 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3261 (struct dcache_block): Make it expandable.
3262 (struct dcache_struct): New field.
3263 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3264 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3265 (dcache_poke_byte, dcache_print_line): Adjust.
3266 (set_dcache_size, set_dcache_line_size): New functions.
3267 (set_dcache_command, show_dcache_command): New functions.
3268 (_initialize_dcache): Add new commands.
3269
3270 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3271
3272 * progspace.h (struct program_space): Add solib_add_generation.
3273 * infcmd.c (post_create_inferior): Only call solib_add if not
3274 already done.
3275 * solib.c (solib_add): Increment solib_add_generation.
3276
3277 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3278
3279 Fix implicit pointer offsets.
3280 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3281 ptr.OFFSET.
3282
3283 2011-07-25 Tom Tromey <tromey@redhat.com>
3284
3285 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3286 const.
3287 (ada_exception_sal): Make 'ops' const.
3288 (ada_decode_exception_location): Likewise.
3289 (ada_decode_assert_location): Likewise.
3290 (catch_assert_command): Update.
3291 (catch_ada_exception_command): Update.
3292 (create_ada_exception_catchpoint): Make 'ops' const.
3293 * breakpoint.c (set_raw_breakpoint_without_location)
3294 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3295 const.
3296 (create_internal_breakpoint): Update.
3297 (init_raw_breakpoint_without_location): Make 'ops' const.
3298 (init_raw_breakpoint, init_catchpoint)
3299 (create_fork_vfork_event_catchpoint)
3300 (create_syscall_event_catchpoint, init_breakpoint_sal)
3301 (create_breakpoint_sal, create_breakpoints_sal)
3302 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3303 * breakpoint.h (struct breakpoint) <ops>: Now const.
3304 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3305 const.
3306
3307 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3308
3309 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3310
3311 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3312
3313 * breakpoint.h (print_recreate_thread): Declare.
3314 (struct breakpoint): Move step_count, pass_count,
3315 number_on_target, static_trace_marker_id,
3316 static_trace_marker_id_idx ...
3317 (struct tracepoint): ... to this new struct.
3318 (get_tracepoint, get_tracepoint_by_number_on_target)
3319 (get_tracepoint_by_number): Change return type to struct
3320 tracepoint pointer.
3321 * breakpoint.c (is_tracepoint_type): New, factored out from
3322 is_tracepoint.
3323 (is_tracepoint): Adjust.
3324 (print_one_breakpoint_location): Cast to struct tracepoint as
3325 necessary, and adjust.
3326 (print_recreate_catch_fork, print_recreate_catch_vfork)
3327 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3328 print_recreate_thread.
3329 (init_breakpoint_sal): New, factored out from
3330 create_breakpoint_sal.
3331 (create_breakpoint_sal): Reimplement.
3332 (create_breakpoint): Allocate a struct tracecepoint if the caller
3333 wanted a tracepoint. Use init_breakpoint_sal and
3334 install_breakpoint.
3335 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3336 (print_recreate_masked_watchpoint)
3337 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3338 (tracepoint_print_one_detail): Adjust.
3339 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3340 Dump the pass count here.
3341 (update_static_tracepoint): Adjust.
3342 (addr_string_to_sals): Adjust.
3343 (create_tracepoint_from_upload): Adjust. Change return type to
3344 struct tracepoint pointer.
3345 (trace_pass_set_count): Change parameter type to struct tracepoint
3346 pointer, and adjust.
3347 (trace_pass_command): Adjust.
3348 (get_tracepoint, get_tracepoint_by_number_on_target)
3349 (get_tracepoint_by_number): Change return type to struct
3350 tracepoint pointer, and adjust.
3351 (print_recreate_thread): New, factored out from save_breakpoints.
3352 (save_breakpoints): Don't print thread and task and passcount
3353 recreation here.
3354 * remote.c (remote_download_tracepoint): Adjust.
3355 * tracepoint.c (trace_actions_command, validate_actionline)
3356 (start_tracing, tfind_1, trace_find_tracepoint_command)
3357 (trace_dump_command): Adjust.
3358 (find_matching_tracepoint): Change return type to struct
3359 tracepoint pointer, and adjust.
3360 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3361 (tfile_trace_find, tfile_fetch_registers): Adjust.
3362 * tracepoint.h (create_tracepoint_from_upload): Change return type
3363 to struct tracepoint pointer.
3364 * ada-lang.c (print_recreate_exception): Call
3365 print_recreate_thread.
3366 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3367
3368 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3369
3370 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3371 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3372 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3373 watchpoint_thread, watchpoint_triggered ...
3374 (struct watchpoint): ... to this new struct.
3375 (is_watchpoint): Declare.
3376 (install_breakpoint): Add new `internal' parameter.
3377 * breakpoint.c (is_watchpoint): Delete declaration.
3378 (set_breakpoint_condition): Handle watchpoints.
3379 (is_watchpoint): Make public.
3380 (watchpoint_in_thread_scope): Change parameter type to struct
3381 watchpoint.
3382 (watchpoint_del_at_next_stop): Change parameter type to struct
3383 watchpoint. Remove assertion. Adjust.
3384 (update_watchpoint): Ditto.
3385 (insert_breakpoints, breakpoint_init_inferior)
3386 (watchpoints_triggered, watchpoint_check)
3387 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3388 (bpstat_stop_status, print_one_breakpoint_location)
3389 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3390 to struct watchpoint as necessary, and adjust.
3391 (install_breakpoint): Add `internal' argument. If true, don't
3392 mention the new breakpoint. Use set_breakpoint_number.
3393 (create_fork_vfork_event_catchpoint)
3394 (create_syscall_event_catchpoint): Adjust.
3395 (dtor_watchpoint): New.
3396 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3397 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3398 (print_it_watchpoint, print_mention_watchpoint)
3399 (print_recreate_watchpoint, insert_masked_watchpoint)
3400 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3401 (print_one_detail_masked_watchpoint)
3402 (print_mention_masked_watchpoint)
3403 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3404 necessary, and adjust.
3405 (watch_command_1): Allocate and initialize a struct watchpoint
3406 instead of a struct breakpoint. Use install_breakpoint.
3407 (catch_exec_command_1): Adjust.
3408 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3409 fields.
3410 (delete_breakpoint, enable_breakpoint_disp)
3411 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3412 as necessary, and adjust.
3413 (initialize_breakpoint_ops): Install dtor_watchpoint as
3414 watchpoints' dtor method.
3415 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3416 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3417 to struct watchpoint as necessary, and adjust.
3418
3419 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3420
3421 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3422 the the base class ops table.
3423 (catch_exception_breakpoint_ops)
3424 (catch_exception_unhandled_breakpoint_ops)
3425 (catch_assert_breakpoint_ops): Don't statically initialize.
3426 (initialize_ada_catchpoint_ops): New.
3427 (_initialize_ada_language): Call it.
3428 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3429 (bkpt_breakpoint_ops): Forward declare.
3430 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3431 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3432 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3433 (masked_watchpoint_breakpoint_ops)
3434 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3435 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3436 base class ops table.
3437 (null_re_set, null_check_status, null_works_in_software_mode)
3438 (null_resources_needed, null_print_one_detail): Delete.
3439 (bkpt_dtor): Rename to ...
3440 (base_breakpoint_dtor): ... this. Make static.
3441 (bkpt_allocate_location): Rename to ...
3442 (base_breakpoint_allocate_location): ... this. Make static.
3443 (base_breakpoint_re_set): New.
3444 (internal_error_pure_virtual_called): New.
3445 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3446 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3447 (base_breakpoint_works_in_software_mode)
3448 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3449 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3450 (base_breakpoint_print_recreate): New functions.
3451 (base_breakpoint_ops): New global.
3452 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3453 (bkpt_breakpoint_hit): Make static.
3454 (bkpt_check_status): Delete.
3455 (bkpt_resources_needed): Make static.
3456 (bkpt_works_in_software_mode): Delete.
3457 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3458 static.
3459 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3460 (momentary_breakpoint_ops): Don't statically initialize.
3461 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3462 Delete.
3463 (tracepoint_insert_location, tracepoint_remove_location)
3464 (tracepoint_check_status, tracepoint_works_in_software_mode)
3465 (tracepoint_print_it): Delete.
3466 (tracepoint_breakpoint_ops): Don't statically initialize.
3467 (initialize_breakpoint_ops): New.
3468 (_initialize_breakpoint): Call it.
3469 * breakpoint.h (null_re_set, null_works_in_software_mode)
3470 (null_resources_needed, null_check_status, null_print_one_detail):
3471 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3472 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3473 (bkpt_check_status, bkpt_resources_needed)
3474 (bkpt_works_in_software_mode, bkpt_print_it)
3475 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3476 Delete declarations.
3477 (initialize_breakpoint_ops): Declare.
3478
3479 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3480
3481 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3482 (momentary_bkpt_print_it): Simplify.
3483
3484 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3485
3486 Split internal, momentary and user breakpoints breakpoint_ops
3487 tables.
3488
3489 * breakpoint.c (internal_breakpoint_ops)
3490 (momentary_breakpoint_ops): Forward declare.
3491 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3492 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3493 (create_overlay_event_breakpoint)
3494 (create_std_terminate_master_breakpoint)
3495 (create_exception_master_breakpoint): Create breakpoints with
3496 internal_breakpoint_ops vtable.
3497 (set_longjmp_breakpoint): Create momentary breakpoints with
3498 momentary_breakpoint_ops vtable, using
3499 momentary_breakpoint_from_master.
3500 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3501 (create_solib_event_breakpoint): Create breakpoints with
3502 internal_breakpoint_ops vtable.
3503 (set_momentary_breakpoint): Create breakpoints with
3504 momentary_breakpoint_ops vtable.
3505 (momentary_breakpoint_from_master): New, factored out from
3506 clone_momentary_breakpoint.
3507 (clone_momentary_breakpoint): Adjust.
3508 (watch_command_1): Create scope breakpoints with
3509 momentary_breakpoint_ops vtable.
3510 (bkpt_re_set): Remove handling of internal and momentary
3511 breakpoints.
3512 (bkpt_print_mention, bkpt_print_recreate): New.
3513 (bkpt_breakpoint_ops): Adjust.
3514 (internal_bkpt_re_set, internal_bkpt_check_status)
3515 (internal_bkpt_print_it, internal_bkpt_print_mention)
3516 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3517 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3518 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3519 (momentary_bkpt_print_recreate): New.
3520 (momentary_breakpoint_ops): New.
3521
3522 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3523
3524 Implement most breakpoint_ops methods for all breakpoint types,
3525 and move the default handlings to the proper callbacks.
3526
3527 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3528 works_in_software_mode method.
3529 (insert_bp_location): Go through breakpoint_ops->insert_location
3530 for software and hardware watchpoints.
3531 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3532 breakpoint_ops.
3533 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3534 for software and hardware watchpoints.
3535 (print_it_typical): Delete.
3536 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3537 method.
3538 (watchpoint_check): Adjust comment.
3539 (bpstat_check_location): Simply always call the breakpoint's
3540 breakpoint_hit method.
3541 (bpstat_stop_status): Always call the breakpoint's check_status
3542 method. Remove special cases for watchpoints and internal event
3543 breakpoints from here (moved to the check_status implementations).
3544 (print_one_breakpoint_location): Assume b->ops is never NULL.
3545 Remove static tracepoint marker id printing from here (moved to
3546 the print_one_detail callback implementation of tracepoints).
3547 (init_bp_location): Assert OPS is never NULL.
3548 (allocate_bp_location): Always call the breakpoint's
3549 allocate_location method, and remove the default code from here.
3550 (free_bp_location): Always call the location's dtor method, and
3551 remove the default code from here.
3552 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3553 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3554 parameter. Pass it down.
3555 (set_raw_breakpoint): Ditto.
3556 (print_it_catch_fork): Adjust to take a bpstat as argument.
3557 (catch_fork_breakpoint_ops): Install methods.
3558 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3559 (catch_vfork_breakpoint_ops): Install methods.
3560 (dtor_catch_syscall): Call the base dtor.
3561 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3562 (catch_syscall_breakpoint_ops): Install methods.
3563 (dtor_catch_exec): Call the base dtor.
3564 (print_it_catch_exec): Adjust to take a bpstat as argument.
3565 (catch_exec_breakpoint_ops): Install methods.
3566 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3567 the breakpoint's resources_needed method, and remove the default
3568 code from here.
3569 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3570 breakpoint_ops.
3571 (clone_momentary_breakpoint): Clone the original's ops.
3572 (mention): Always call the breakpoint's print_mention method, and
3573 remove the default code from here.
3574 (create_breakpoint_sal): Adjust to pass the ops to
3575 set_raw_breakpoint rather than setting it manually.
3576 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3577 ops to set_raw_breakpoint_without_location rather than setting it
3578 manually.
3579 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3580 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3581 (ranged_breakpoint_ops): Install methods.
3582 (break_range_command): Adjust to pass the ops to
3583 set_raw_breakpoint rather than setting it manually.
3584 (re_set_watchpoint, breakpoint_hit_watchpoint)
3585 (check_status_watchpoint, resources_needed_watchpoint)
3586 (works_in_software_mode_watchpoint, print_it_watchpoint)
3587 (print_mention_watchpoint, print_recreate_watchpoint): New
3588 functions.
3589 (watchpoint_breakpoint_ops): Install new methods.
3590 (print_it_masked_watchpoint): New function.
3591 (masked_watchpoint_breakpoint_ops): Install new methods.
3592 (watch_command_1): Adjust to pass the right breakpoint_ops to
3593 set_raw_breakpoint_without_location rather than setting it
3594 manually later. Record the current pspace.
3595 (print_it_exception_catchpoint): Adjust to take a bpstat as
3596 argument.
3597 (gnu_v3_exception_catchpoint_ops): Install new methods.
3598 (say_where): New function.
3599 (null_re_set, null_check_status, null_works_in_software_mode)
3600 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3601 New functions.
3602 (bp_location_ops): New global.
3603 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3604 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3605 (bkpt_check_status, bkpt_resources_needed)
3606 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3607 (bkpt_print_recreate): New functions.
3608 (bkpt_breakpoint_ops): New global.
3609 (tracepoint_re_set, tracepoint_insert_location)
3610 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3611 (tracepoint_check_status, tracepoint_works_in_software_mode)
3612 (tracepoint_print_it, tracepoint_print_one_detail)
3613 (tracepoint_print_mention, tracepoint_print_recreate): New
3614 functions.
3615 (tracepoint_breakpoint_ops): New global.
3616 (delete_breakpoint): Always call the breakpoint's dtor method, and
3617 remove the default handling from here.
3618 (breakpoint_re_set_default): Make static.
3619 (breakpoint_re_set_one): Always call the breakpoints re_set
3620 method, and remove the default handling from here.
3621 (trace_command, ftrace_command, strace_command)
3622 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3623 to create_breakpoint.
3624 (save_breakpoints): Always call the breakpoint's print_recreate
3625 method, and remove the default handling from here.
3626
3627 * ada-lang.c (dtor_exception): Call the base dtor.
3628 (re_set_exception): Call the base method.
3629 (print_it_exception, print_it_catch_exception): Adjust to take a
3630 bpstat as argument.
3631 (catch_exception_breakpoint_ops): Install methods.
3632 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3633 argument.
3634 (catch_exception_unhandled_breakpoint_ops): Install methods.
3635 (print_it_catch_assert): Adjust to take a bpstat as argument.
3636 (catch_assert_breakpoint_ops): Install methods.
3637
3638 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3639 to take a bpstat as argument.
3640 (enum print_stop_action): Add describing comments to each enum
3641 value.
3642 (breakpoint_re_set_default): Delete declaration.
3643 (null_re_set, null_works_in_software_mode, null_resources_needed)
3644 (null_check_status, null_print_one_detail): Declare.
3645 (bkpt_breakpoint_ops): Declare.
3646 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3647 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3648 (bkpt_check_status, bkpt_resources_needed)
3649 (bkpt_works_in_software_mode, bkpt_print_it)
3650 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3651 Declare.
3652
3653 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3654 bkpt_breakpoint_ops.
3655 * python/py-breakpoint.c (bppy_init): Ditto.
3656
3657 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3658
3659 * MAINTAINERS (Write After Approval): Add myself to the list.
3660
3661 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3662
3663 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3664
3665 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3666
3667 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3668 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3669 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3670 adjust.
3671 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3672 (struct i386_debug_reg_state): New.
3673 (i386_init_dregs): New.
3674 (dr_mirror): New.
3675 (i386_cleanup_dregs): Use i386_init_dregs.
3676 (i386_show_dr): Add state parameter and adjust.
3677 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3678 the inferior here.
3679 (i386_remove_aligned_watchpoint): Likewise.
3680 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3681 (i386_update_inferior_debug_regs): New.
3682 (i386_insert_watchpoint): Work on a local mirror of the debug
3683 registers, and only update the inferior on success.
3684 (i386_remove_watchpoint): Ditto.
3685 (i386_region_ok_for_watchpoint): Adjust.
3686 (i386_stopped_data_address): Adjust.
3687 (i386_insert_hw_breakpoint): Adjust.
3688 (i386_remove_hw_breakpoint): Adjust.
3689
3690 2011-07-22 Tom Tromey <tromey@redhat.com>
3691
3692 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3693 from amd64_pseudo_register_read. Change arguments. Call
3694 mark_value_bytes_unavailable when needed.
3695 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3696 set_gdbarch_pseudo_register_read.
3697 * sentinel-frame.c (sentinel_frame_prev_register): Use
3698 regcache_cooked_read_value.
3699 * regcache.h (regcache_cooked_read_value): Declare.
3700 * regcache.c (regcache_cooked_read_value): New function.
3701 (regcache_cooked_read): Call
3702 gdbarch_pseudo_register_read_value if available.
3703 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3704 (i386_pseudo_register_read): Remove.
3705 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3706 i386_pseudo_register_read. Change arguments. Call
3707 mark_value_bytes_unavailable when needed.
3708 (i386_pseudo_register_read_value): New function.
3709 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3710 not set_gdbarch_pseudo_register_read.
3711 * gdbarch.sh (pseudo_register_read_value): New method.
3712 * gdbarch.c, gdbarch.h: Rebuild.
3713 * findvar.c (value_from_register): Call get_frame_register_value.
3714
3715 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3716
3717 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3718 get_prefix.
3719 (display_gdb_prompt): Likewise.
3720 (change_annotation_level): Likewise.
3721 (push_prompt): Likewise.
3722 (pop_prompt): Likewise.
3723 (handle_stop_sig): Use get_prompt with a level.
3724 * top.c (command_loop): Use get_prompt with a level.
3725 (set_async_annotation_level): Use set_prompt with a level.
3726 (get_prefix): New function.
3727 (set_prefix): Ditto.
3728 (set_suffix): Ditto.
3729 (get_suffix): Ditto.
3730 (get_prompt): Accept a level argument.
3731 (set_prompt): Accept a level argument. Free old prompts. Set
3732 new_async_prompt if level is 0.
3733 (init_main): Use set_prompt with a level. Do not set
3734 new_async_prompt.
3735 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3736 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3737 Modify set_prompt, get_prompt to account for levels.
3738 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3739 level.
3740 * python/python.c (before_prompt_hook): Use set_prompt.
3741
3742 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3743
3744 * defs.h: Add guard against inclusion in gdbserver.
3745 (struct ptid, ptid_t): Move to common/ptid.h.
3746 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3747 xsnprintf, internal_error): Move to common/common-utils.h.
3748 (nomem): Delete.
3749 * gdb_assert.h: Move into common/ sub-directory.
3750 * gdb_locale.h: Ditto.
3751 * gdb_dirent.h: Ditto.
3752 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3753 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3754 Move into common/ptid.h.
3755 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3756 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3757 Change nomem to malloc_failure.
3758 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3759 * utils.c (nomem): Rename to malloc_failure.
3760 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3761 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3762 (gdb_buildargv): Change nomem to malloc_failure.
3763 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3764 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3765 ptid_is_pid): Move into common/ptid.c.
3766 (initialize_infrun): Delete initialization of null_ptid and
3767 minus_one_ptid.
3768 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3769 linux_common_xfer_osdata.
3770 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3771 common/ptid.c and common/buffer.c.
3772 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3773 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3774 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3775 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3776 rules.
3777 * common/gdb_assert.h: New.
3778 * common/gdb_dirent.h: New.
3779 * common/gdb_locale.h: New.
3780 * common/buffer.c: New.
3781 * common/buffer.h: New.
3782 * common/ptid.c: New.
3783 * common/ptid.h: New.
3784 * common/xml-utils.c: New.
3785 * common/xml-utils.h: New.
3786 * common/common-utils.c: New.
3787 * common/common-utils.h: New.
3788 * common/linux-osdata.c: New.
3789 * common/linux-osdata.h: New.
3790 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3791 * config/arm/linux.mh (NATDEPFILES): Ditto.
3792 * config/i386/linux.mh (NATDEPFILES): Ditto.
3793 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3794 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3795 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3796 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3797 * config/mips/linux.mh (NATDEPFILES): Ditto.
3798 * config/pa/linux.mh (NATDEPFILES): Ditto.
3799 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3800 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3801 * config/s390/s390.mh (NATDEPFILES): Ditto.
3802 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3803 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3804 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3805
3806 2011-07-21 Matt Rice <ratmice@gmail.com>
3807
3808 * NEWS: Add info macros and info definitions commands.
3809
3810 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3811
3812 * NEWS: Document Python prompt substitution hook.
3813
3814 2011-07-18 Matt Rice <ratmice@gmail.com>
3815
3816 PR macros/12999
3817 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3818 * macrotab.c (foreach_macro): Ditto.
3819 (foreach_macro_in_scope): Ditto.
3820 * macrocmd.c (print_macro_callback): New function.
3821 (info_macro_command): Move some code to print_macro_definition.
3822 (print_macro_definition): New function.
3823 (print_one_macro): Add new arguments to callback.
3824 (info_definitions_command): New function.
3825 (info_macros_command): Ditto.
3826 (_initialize_macrocmd): Add info macros and info definitions commands.
3827 * symtab.c (add_macro_name): Add new arguments to callback.
3828
3829 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3830 Tom Tromey <tromey@redhat.com>
3831
3832 * top.c (set_prompt): Rewrite to free previous prompt, free
3833 asynch_new_prompt and set both on new prompts.
3834 * event-top.c (display_gdb_prompt): Add prompt substitution
3835 logic.
3836 * python/python.c (before_prompt_hook): New function.
3837
3838 2011-07-20 Matt Rice <ratmice@gmail.com>
3839
3840 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3841 arguments to store_unsigned_integer.
3842
3843 2011-07-20 Tom Tromey <tromey@redhat.com>
3844
3845 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3846 in some declaration-only cases.
3847
3848 2011-07-18 Tom Tromey <tromey@redhat.com>
3849
3850 PR symtab/12984:
3851 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3852 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3853 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3854 <debug_type_section>: New field.
3855 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3856 (load_cu): Use appropriate section.
3857 (create_signatured_type_table_from_index): Add 'section'
3858 argument.
3859 (dwarf2_read_index): Only allow a single .debug_types section.
3860 (dw2_get_file_names): Use appropriate section.
3861 (read_type_comp_unit_head): Add 'section' argument.
3862 (create_debug_types_hash_table): Loop over all .debug_types
3863 sections.
3864 (init_cu_die_reader): Use appropriate section.
3865 (process_psymtab_comp_unit, load_partial_comp_unit)
3866 (load_full_comp_unit, read_die_and_children, find_partial_die)
3867 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3868 (lookup_signatured_type_at_offset): Add 'section' argument.
3869 (read_signatured_type_at_offset): Add 'sect' argument.
3870 (read_signatured_type): Use appropriate section.
3871 (set_die_type, get_die_type_at_offset): Update.
3872 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3873 VEC.
3874 (write_psymtabs_to_index): Don't allow index with more than one
3875 .debug_types section.
3876
3877 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3878
3879 Fix crash if referenced CU is aged out.
3880 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3881 xfree of block.data.
3882 (indirect_pieced_value): New variable back_to, use to for xfree of
3883 baton.data.
3884 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3885 block.data.
3886 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3887 (load_cu): New function from ...
3888 (dw2_do_instantiate_symtab): ... the code here ...
3889 (process_full_comp_unit): ... and here.
3890 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3891 retval.data.
3892
3893 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3896 type.
3897
3898 2011-07-19 Gary Benson <gbenson@redhat.com>
3899
3900 * infrun.c (struct execution_control_state): New member
3901 stop_func_filled_in.
3902 (clear_stop_func, fill_in_stop_func): New functions.
3903 (handle_inferior_event): Call clear_stop_func rather than
3904 manipulating the execution control state directly.
3905 Call fill_in_stop_func lazily as required rather than
3906 directly calling find_pc_partial_function in all cases.
3907
3908 2011-07-18 Tom Tromey <tromey@redhat.com>
3909
3910 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3911 checking for variable-sized array.
3912
3913 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3914
3915 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3916 of supported languages.
3917 * varobj.c: Add top definitions and basic implementation of the
3918 following callbacks: ada_number_of_children, ada_name_of_variable,
3919 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3920 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3921 (languages): Register Ada-specific callbacks.
3922 (variable_language): Add the Ada case in the language setter switch.
3923
3924 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3925
3926 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3927
3928 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3929
3930 Code cleanup.
3931 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3932 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3933 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3934 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3935 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3936 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3937 (struct dwarf_expr_context_funcs): New, move here methods from ...
3938 (struct dwarf_expr_context): ... here. New fields funcs.
3939 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3940 (dwarf_expr_ctx_funcs): New.
3941 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3942 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3943 (needs_frame_ctx_funcs): New.
3944 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3945
3946 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3947
3948 * MAINTAINERS (Write After Approval): Add myself to the list.
3949
3950 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3951
3952 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3953 that CIE pointer of an FDE really points to a CIE .
3954
3955 2011-07-15 Hui Zhu <teawater@gmail.com>
3956
3957 * remote.c (remote_get_trace_status): Add comments.
3958
3959 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3960
3961 Code cleanup - constify struct lval_funcs.
3962 * dwarf2loc.c (pieced_value_funcs): Make it const.
3963 * infrun.c (siginfo_value_funcs): Likewise.
3964 * opencl-lang.c (opencl_value_funcs): Likewise.
3965 * valops.c (value_assign, value_ind): Make the funcs variable const.
3966 * value.c (struct value): Make location.computed.funcs target const.
3967 Rearrange the comments.
3968 (allocate_computed_value): Make the funcs parameter target const.
3969 (value_computed_funcs): Return the funcs target const.
3970 (value_free, value_copy, set_value_component_location): Make the funcs
3971 variable const.
3972 * value.h (allocate_computed_value): Make the funcs parameter target
3973 const.
3974 (value_computed_funcs): Return the funcs target const.
3975 * windows-tdep.c (tlb_value_funcs): Make it const.
3976
3977 2011-07-14 Hui Zhu <teawater@gmail.com>
3978
3979 * remote.c (remote_get_trace_status): Initialize p.
3980
3981 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3982
3983 Work around kgdb.
3984 * remote.c (remote_get_trace_status): New variable ex. Put
3985 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3986
3987 2011-07-13 Tom Tromey <tromey@redhat.com>
3988
3989 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3990 value_from_contents for final conversion.
3991
3992 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 Code cleanup.
3995 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3996 Indent prototypes so they do not get into tags.
3997
3998 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3999
4000 Code cleanup making also optimized out values lazy.
4001 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4002 allocate_optimized_out_value. Twice.
4003 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4004 * findvar.c (read_var_value): Likewise.
4005 * value.c (allocate_optimized_out_value): New function.
4006 * value.h (allocate_optimized_out_value): New declaration.
4007
4008 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4009
4010 Fix occasional crash of CTRL-C during DWARF read in.
4011 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4012
4013 2011-07-11 Tom Tromey <tromey@redhat.com>
4014
4015 * regcache.c (struct regcache_descr): Fix typo.
4016 * i387-tdep.c (i387_supply_xsave): Fix typo.
4017
4018 2011-07-11 Tom Tromey <tromey@redhat.com>
4019
4020 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4021 (read_file_scope, read_type_unit_scope): Use it.
4022
4023 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4024
4025 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4026 `int'.
4027
4028 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4029
4030 PR python/12438
4031 * python/python.c: Set gdbpy_should_print_stack default to off.
4032 (set_python): Deprecate maint set python print-stack to
4033 class_deprecate.
4034 (_initialize_python): Deprecate maint set/show python print-stack.
4035 Add new prefix command, python. Add new setting, print-backtrace.
4036 * NEWS: Document set python print-stack. Document default change.
4037
4038 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4039
4040 * python/py-inferior.c (infpy_dealloc): New function.
4041 (inferior_to_inferior_object): Return a new object, or a
4042 new reference to the existing object.
4043 (find_thread_object): Cleanup references to inferior.
4044 (delete_thread_object): Ditto.
4045 * python/py-infthread.c (create_thread_object): Do not increment
4046 inferior reference count.
4047
4048 2011-07-08 Tom Tromey <tromey@redhat.com>
4049
4050 * dwarf2loc.c (locexpr_regname): New function.
4051 (locexpr_describe_location_piece): Use it.
4052 (disassemble_dwarf_expression): Add per_cu argument. Use
4053 locexpr_regname.
4054 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4055 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4056 New cases.
4057 (locexpr_describe_location_1): Add per_cu argument.
4058 (locexpr_describe_location): Update.
4059 (loclist_describe_location): Update.
4060
4061 2011-07-08 Tom Tromey <tromey@redhat.com>
4062
4063 * dwarf2expr.c (execute_stack_op): Add QUIT.
4064
4065 2011-07-07 Hui Zhu <teawater@gmail.com>
4066
4067 Revert:
4068 2011-07-06 Hui Zhu <teawater@gmail.com>
4069 * remote.c (remote_start_remote): Add TRY_CATCH for
4070 remote_get_trace_status.
4071 * tracepoint.c (disconnect_tracing): Ditto.
4072
4073 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4074
4075 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4076 variables as signed, not unsigned.
4077
4078 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4079
4080 * jit.c (jit_inferior_init): Reformat forward declaration.
4081
4082 2011-07-06 Matt Rice <ratmice@gmail.com>
4083
4084 * MAINTAINERS (Write After Approval): Add myself to the list.
4085
4086 2011-07-06 Hui Zhu <teawater@gmail.com>
4087
4088 * remote.c (remote_start_remote): Add TRY_CATCH for
4089 remote_get_trace_status.
4090 * tracepoint.c (disconnect_tracing): Ditto.
4091
4092 2011-07-05 Tom Tromey <tromey@redhat.com>
4093
4094 * symtab.c (operator_chars): Now static.
4095 * linespec.c (operator_chars): Don't declare.
4096
4097 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4098
4099 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4100
4101 2011-07-05 Tom Tromey <tromey@redhat.com>
4102
4103 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4104 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4105 (TYPE_CPLUS_REALLY_JAVA): New macro.
4106 * dwarf2read.c (process_structure_scope): Set
4107 TYPE_CPLUS_REALLY_JAVA.
4108
4109 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4110
4111 * ada-lang.c: Fix typos.
4112 * amd64-tdep.c: Likewise.
4113 * breakpoint.c: Likewise.
4114 * cli/cli-decode.c: Likewise.
4115 * findcmd.c: Likewise.
4116 * inline-frame.c: Likewise.
4117 * mi/mi-main.c: Likewise.
4118 * minsyms.c: Likewise.
4119 * monitor.c: Likewise.
4120 * monitor.h: Likewise.
4121 * prologue-value.c: Likewise.
4122 * reverse.c: Likewise.
4123 * s390-tdep.c: Likewise.
4124
4125 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4126
4127 * jit.c (jit_inferior_init): Forward declare.
4128 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4129
4130 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4131
4132 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4133
4134 2011-07-04 Tristan Gingold <gingold@adacore.com>
4135
4136 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4137 (tcb_fieldno): Add activation_link field.
4138 (get_known_tasks_addr): Moved and rewritten.
4139 (get_tcb_types_info): Set activation_link field.
4140 (read_known_tasks_array): Add parameter. Rewritten.
4141 (read_known_tasks_list): New function.
4142 (read_known_tasks): New function.
4143 (ada_build_task_list): Call read_known_tasks instead of
4144 read_known_tasks_array.
4145 * ravenscar-thread.c: Add first_task_name constant.
4146 (has_ravenscar_runtime): Check for task list too.
4147
4148 2011-07-04 Tristan Gingold <gingold@adacore.com>
4149
4150 * ada-tasks.c: Renames fieldno to actb_fieldno.
4151 (ada_get_task_number): Indentation.
4152 (get_tcb_types_info): Remove all parameters. Write directly
4153 the globals.
4154 (ptid_from_atcb_common): Adjust.
4155 (read_atcb): Adjust.
4156
4157 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4158
4159 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4160
4161 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4162
4163 * ui-out.c (ui_out_field_core_addr): Mention that the function
4164 description is in the header file.
4165 * ui-out.h (ui_out_field_core_addr): Document function.
4166
4167 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4168
4169 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4170 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4171
4172 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4173
4174 * symtab.c (expand_line_sal): Remove empty line.
4175
4176 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4177
4178 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4179 same way as ELFOSABI_NONE.
4180 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4181
4182 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4183
4184 * breakpoint.c: Fix typos in comments.
4185 * linespec.c: Likewise.
4186 * symtab.c: Likewise.
4187
4188 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4189
4190 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4191 section in separate object files.
4192
4193 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4194
4195 Fix false GCC warning.
4196 * linespec.c (decode_line_1): Initialize values.
4197
4198 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 * linespec.c (find_method): Accept the function type automatically only
4201 if it was specified with parameter types.
4202
4203 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4204
4205 Stop on first linespec terminator instead of eating what we can.
4206 * linespec.c (is_linespec_boundary): New function.
4207 (name_end): Remove function.
4208 (keep_name_info): New parameter on_boundary, replace the body.
4209 (decode_line_1): Provide the parameter to keep_name_info.
4210 (decode_compound): Likewise. Drop the trailing java return type
4211 handling. Twice.
4212
4213 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4214
4215 Fall back linespec to minimal symbols.
4216 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4217 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4218 (find_method, symbol_found): Change error to cplusplus_error.
4219
4220 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4223
4224 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4225 Tom Tromey <tromey@redhat.com>
4226
4227 * dwarf2read.c (check_physname): New variable.
4228 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4229 (show_check_physname): New function.
4230 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4231
4232 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4233
4234 * machoread.c (macho_symfile_read): Delete OBE comment.
4235
4236 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4237
4238 * machoread.c (struct macho_oso_data): Delete.
4239 (current_oso): Delete.
4240 (macho_relocate_common_syms): New function, mostly extracted
4241 out of
4242 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4243 Remove code that sets and unset current_oso.
4244 (macho_symfile_relocate): Delete handling of common symbols,
4245 now moved to macho_relocate_common_syms.
4246
4247 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4248
4249 * darwin-nat.c (darwin_ptrace): Add documentation.
4250 Set errno to zero before calling ptrace. If ptrace returns
4251 -1 and errno is zero, then change then return zero.
4252 (darwin_kill_inferior): Issue a warning instead of triggering
4253 a failed assertion when the PT_KILL ptrace operations returned
4254 nonzero.
4255
4256 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4257
4258 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4259 only when inf->private->no_ptrace.
4260
4261 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4262
4263 * ada-lang.c (print_it_exception): Print temporary catchpoints
4264 as "Temporary catchpoint".
4265 (print_mention_exception): Likewise.
4266
4267 2011-07-01 Tom Tromey <tromey@redhat.com>
4268
4269 * jv-lang.c (java_language_defn): Use java_printchar,
4270 java_printstr.
4271 (java_get_encoding): New function.
4272 (java_emit_char): Use generic_emit_char.
4273 (java_printchar): New function.
4274 (java_printstr): Likewise.
4275
4276 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4277
4278 * ada-typeprint.c (print_record_type): If unable to decode
4279 the name of the parent type, use the encoded name.
4280
4281 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4282
4283 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4284 pointer to constrained packed array type output.
4285 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4286 packed array output.
4287
4288 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4289
4290 * ada-typeprint.c (print_array_type): removed if condition on show
4291 being negative for bounds printing.
4292
4293 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4294
4295 * ada-lang.c (ada_identical_enum_types_p): New function.
4296 (symbols_are_identical_enums): New function.
4297 (remove_extra_symbols): Do nothing if NSYMS < 2.
4298 Use symbols_are_identical_enums.
4299
4300 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4301
4302 * ada-valprint.c (ada_value_print): Handle typedefs.
4303
4304 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4305
4306 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4307
4308 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4309
4310 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4311 (decode_constrained_packed_array): Likewise.
4312 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4313
4314 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4315
4316 * ada-exp.y (convert_char_literal): Handle typedef types.
4317
4318 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4319
4320 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4321
4322 2011-06-30 Tom Tromey <tromey@redhat.com>
4323
4324 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4325 * valops.c (find_overload_match): Call do_cleanups on early exit
4326 path.
4327 * solib.c (solib_find): Call do_cleanups on early exit path.
4328
4329 2011-06-30 Tom Tromey <tromey@redhat.com>
4330
4331 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4332 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4333 return paths. Defer final do_cleanups until last return.
4334 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4335 early return.
4336
4337 2011-06-30 Tom Tromey <tromey@redhat.com>
4338
4339 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4340
4341 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4342
4343 * MAINTAINERS (Write After Approval): Add myself to the list.
4344
4345 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4346
4347 Disable epilogue unwinders on recent GCCs.
4348 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4349 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4350 * dwarf2read.c (process_full_comp_unit): Initialize
4351 EPILOGUE_UNWIND_VALID.
4352 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4353 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4354 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4355
4356 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4357
4358 Code cleanup - reformatting.
4359 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4360 (producer_is_gcc_ge_4): ... here, change the return value.
4361 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4362 interpretation.
4363
4364 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 Fix non-only rename list for Fortran modules import.
4367 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4368 cp_add_using_directive caller.
4369 (cp_add_using_directive): New parameter excludes, describe it. New
4370 variables ix and param. Compare if also excludes match. Allocate NEW
4371 with variable size, initialize EXCLUDES there.
4372 (cp_lookup_symbol_imports): New variable excludep, test
4373 current->EXCLUDES with it.
4374 * cp-support.h: Include vec.h.
4375 (struct using_direct): New field excludes, describe it.
4376 (DEF_VEC_P (const_char_ptr)): New.
4377 (cp_add_using_directive): New parameter excludes.
4378 * defs.h (const_char_ptr): New typedef.
4379 * dwarf2read.c (read_import_statement): New variables child_die,
4380 excludes and cleanups, read in excludes.
4381 (read_namespace): Adjust the cp_add_using_directive caller.
4382
4383 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4384
4385 Code cleanup.
4386 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4387 negative comparisons.
4388
4389 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4390
4391 * mi/mi-main.c (mi_cmd_list_features): Emit
4392 breakpoint-notifications.
4393
4394 2011-06-29 Tom Tromey <tromey@redhat.com>
4395
4396 PR fortran/10036:
4397 * valprint.h (generic_emit_char, generic_printstr): Declare.
4398 * valprint.c (wchar_printable, append_string_as_wide)
4399 (print_wchar): Move from c-lang.c.
4400 (generic_emit_char): New function; mostly taken from c_emit_char.
4401 (generic_printstr): New function; mostly taken from c_printstr.
4402 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4403 represented as arrays.
4404 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4405 type.
4406 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4407 identically to TYPE_CODE_INT.
4408 * f-lang.c (f_get_encoding): New function.
4409 (f_emit_char): Use generic_emit_char.
4410 (f_printchar): Replace comment.
4411 (f_printstr): Use generic_printstr.
4412 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4413 "character" types specially.
4414 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4415 for Fortran.
4416 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4417 Move to valprint.c
4418 (c_emit_char): Call generic_emit_char.
4419 (c_printstr): Call generic_printstr.
4420
4421 2011-06-29 Gary Benson <gbenson@redhat.com>
4422
4423 * breakpoint.c (bpstat_what): Removed duplicated case.
4424
4425 2011-06-28 Tom Tromey <tromey@redhat.com>
4426
4427 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4428
4429 2011-06-27 Tom Tromey <tromey@redhat.com>
4430
4431 * valops.c (find_overload_match): Call do_cleanups before early
4432 return.
4433 * top.c (execute_command): Call do_cleanups before early return.
4434 (command_loop): Likewise.
4435 * stack.c (backtrace_command): Make a null cleanup early. Don't
4436 conditionally call do_cleanups.
4437 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4438 TRY_CATCH.
4439 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4440 so cleanups are always run.
4441 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4442 * findcmd.c (parse_find_args): Call do_cleanups on early return
4443 path.
4444 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4445 Don't conditionally call do_cleanups.
4446 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4447 later.
4448
4449 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4450
4451 * MAINTAINERS (Write After Approval): Use default email address.
4452
4453 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4454
4455 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4456
4457 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4458
4459 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4460 saved_regs_mask and copied_regs_mask fields.
4461 (sparc_record_save_insn): New prototype.
4462 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4463 (sparc_record_save_insn): New function.
4464 (sparc_analyze_prologue): Add head comment. Recognize store insns
4465 of call-saved registers. Use OFFSET consistently. Recognize flat
4466 frames and cache their settings.
4467 (sparc32_skip_prologue): Handle flat frames.
4468 (sparc_frame_cache): Add frame_offset to the base address.
4469 (sparc32_frame_cache): Adjust to new frame description.
4470 (sparc32_frame_prev_register): Likewise.
4471 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4472 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4473 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4474 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4475 frame by calling sparc_record_save_insn.
4476 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4477 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4478 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4479
4480 2011-06-27 Tristan Gingold <gingold@adacore.com>
4481
4482 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4483 field by map_addr and map_len.
4484 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4485 (munmap_section_buffer): Likewise.
4486
4487 2011-06-24 Tom Tromey <tromey@redhat.com>
4488
4489 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4490 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4491 * python/python.c (gdbpy_parameter): Make 'arg' const.
4492 (execute_gdb_command): Likewise.
4493 (gdbpy_decode_line): Likewise. Copy it.
4494 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4495 (gdbpy_write): Make 'arg' const.
4496 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4497 const.
4498 (gdbpy_lookup_type): Likewise.
4499 * python/py-prettyprint.c (print_children): Make 'name' const.
4500 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4501 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4502 Py_ssize_t.
4503 * python/py-function.c (fnpy_init): Make 'name' const.
4504 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4505 (gdbpy_string_to_argv): Make 'input' const.
4506 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4507 it.
4508 * gdbtypes.h (lookup_typename): Update.
4509 * gdbtypes.c (lookup_typename): Make 'name' const.
4510 (lookup_struct): Likewise.
4511 (lookup_union): Likewise.
4512 (lookup_enum): Likewise.
4513
4514 2011-06-24 Tom Tromey <tromey@redhat.com>
4515
4516 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4517 gdb_thread_db.h. Move all common/ entries to be together.
4518 (TAGS): Don't depend on DEPFILES.
4519
4520 2011-06-23 Yao Qi <yao@codesourcery.com>
4521
4522 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4523 * remote.c (remote_start_remote): ... here.
4524 * monitor.c (monitor_open): ... here.
4525
4526 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4527
4528 * gdbtypes.c (append_composite_type_field_aligned): Fix
4529 calculation of bit position based on alignment.
4530
4531 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4532
4533 * breakpoint.c (bpstat_stop_status): Call the check_status
4534 breakpoint_ops method.
4535 (print_one_breakpoint_location): Also print the condition for Ada
4536 exception catchpoints.
4537 (allocate_bp_location): New, factored out from
4538 allocate_bp_location.
4539 (allocate_bp_location): Adjust. Call the owner breakpoint's
4540 allocate_location method, if there is one.
4541 (free_bp_location): Call the locations's dtor method, if there is
4542 one.
4543 (init_raw_breakpoint_without_location): New breakpoint_ops
4544 parameter. Use it.
4545 (set_raw_breakpoint_without_location): Adjust.
4546 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4547 (set_raw_breakpoint): Adjust.
4548 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4549 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4550 re_set and check_status methods.
4551 (init_catchpoint): Don't memset, initialize thread, addr_string
4552 and enable_state. Pass the ops down to init_raw_breakpoint.
4553 (install_catchpoint): Rename to ...
4554 (install_breakpoint): ... this, and make extern.
4555 (create_fork_vfork_event_catchpoint): Adjust.
4556 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4557 re_set and check_status methods.
4558 (create_syscall_event_catchpoint): Adjust.
4559 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4560 (masked_watchpoint_breakpoint_ops): Install NULL
4561 allocate_location, re_set and check_status methods.
4562 (catch_exec_command_1): Adjust.
4563 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4564 re_set and check_status methods.
4565 (create_ada_exception_breakpoint): Rename to ...
4566 (init_ada_exception_breakpoint): ... this. Add a struct
4567 breakpoint parameter, and delete the exp_string, cond_string and
4568 cond parameters. Use init_raw_breakpoint, and don't install or
4569 mention the breakpoint yet. Don't clear breakpoint fields that
4570 init_raw_breakpoint already clears.
4571 (re_set_breakpoint): Delete, split into ...
4572 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4573 functions.
4574 (breakpoint_re_set_one): Call the breakpoint's
4575 breakpoint_ops->re_set implementation, if there's one. Adjust.
4576 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4577 (struct bp_location_ops): New type.
4578 (struct bp_location): New field `ops'.
4579 (struct breakpoint_ops): New `allocate_location', `re_set' and
4580 `check_status' fields. Make `breakpoint_hit''s description match
4581 reality.
4582 (init_bp_location): Declare.
4583 (breakpoint_re_set_default): Declare.
4584 (create_ada_exception_breakpoint): Rename to ...
4585 (init_ada_exception_breakpoint): ... this. Add a struct
4586 breakpoint parameter, and delete the exp_string, cond_string and
4587 cond parameters.
4588 (install_breakpoint): Declare.
4589 * ada-lang.c: Include exceptions.h.
4590 <Ada exceptions description>: Update.
4591 (struct ada_catchpoint_location): New type.
4592 (ada_catchpoint_location_dtor): New function.
4593 (ada_catchpoint_location_ops): New global.
4594 (ada_catchpoint): New type.
4595 (create_excep_cond_exprs): New function.
4596 (dtor_exception, allocate_location_exception, re_set_exception)
4597 (should_stop_exception, check_status_exception): New functions.
4598 (print_one_exception, print_mention_exception)
4599 (print_recreate_exception): Adjust.
4600 (dtor_catch_exception, allocate_location_catch_exception)
4601 (re_set_catch_exception, check_status_catch_exception): New
4602 functions.
4603 (catch_exception_breakpoint_ops): Install them.
4604 (dtor_catch_exception_unhandled)
4605 (allocate_location_catch_exception_unhandled)
4606 (re_set_catch_exception_unhandled)
4607 (check_status_catch_exception_unhandled): New functions.
4608 (catch_exception_unhandled_breakpoint_ops): Install them.
4609 (dtor_catch_assert, allocate_location_catch_assert)
4610 (re_set_catch_assert, check_status_catch_assert): New functions.
4611 (catch_assert_breakpoint_ops): Install them.
4612 (ada_exception_catchpoint_p): Delete.
4613 (catch_ada_exception_command_split)
4614 (ada_exception_catchpoint_cond_string): Rename exp_string
4615 parameter to excep_string. Adjust.
4616 (ada_parse_catchpoint_condition): Delete.
4617 (ada_exception_sal): Rename the exp_string parameter to
4618 excep_string. Delete the cond_string and cond parameters.
4619 Adjust.
4620 (ada_decode_exception_location): Rename the exp_string parameter
4621 to excep_string. Delete the cond_string and cond parameters.
4622 Adjust.
4623 (create_ada_exception_catchpoint): New function.
4624 (catch_ada_exception_command, ada_decode_assert_location)
4625 (catch_assert_command): Adjust.
4626 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4627
4628 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4629
4630 * ada-lang.c: Include arch-utils.h.
4631 (ada_decode_exception_location): Make static.
4632 (catch_ada_exception_command): Moved here from breakpoint.c.
4633 (ada_decode_assert_location): Make static.
4634 (catch_assert_command): Moved here from breakpoint.c.
4635 (_initialize_ada_lang): Install the exception and assert
4636 catchpoint commands here.
4637 * ada-lang.h (ada_decode_exception_location)
4638 (ada_decode_assert_location): Delete declarations.
4639 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4640 breakpoint.h.
4641 (create_ada_exception_breakpoint): Make extern.
4642 (catch_ada_exception_command, catch_assert_command): Moved to
4643 ada-lang.c.
4644 (add_catch_command): Make extern.
4645 (_initilize_breakpoint): Don't install the exception and assert
4646 catchpoint commands here.
4647 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4648 breakpoint.c
4649 (add_catch_command, create_ada_exception_breakpoint): Declare.
4650
4651 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4652
4653 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4654 the breakpoint to the breakpoint chain here.
4655 (set_raw_breakpoint_without_location): Add the breakpoint to the
4656 breakpoint chain here.
4657 (init_raw_breakpoint): Adjust comments.
4658 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4659 here.
4660 (init_catchpoint): Don't set the catchpoint's breakpoint number
4661 here.
4662 (install_catchpoint): New function.
4663 (create_fork_vfork_event_catchpoint)
4664 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4665 use install_catchpoint.
4666
4667 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4668
4669 * breakpoint.c (create_catchpoint_without_mention)
4670 (create_catchpoint): Delete.
4671
4672 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4673
4674 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4675 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4676 reference to exec_pathname.
4677 (struct exec_catchpoint): New type.
4678 (dtor_catch_exec): New function.
4679 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4680 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4681 (catch_exec_command_1): Adjust to use init_catchpoint.
4682 (delete_breakpoint): Remove reference to exec_pathname.
4683
4684 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4685
4686 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4687 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4688 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4689 reference to syscalls_to_be_caught.
4690 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4691 NULL `dtor'.
4692 (struct syscall_catchpoint): New type.
4693 (dtor_catch_syscall): New function.
4694 (insert_catch_syscall, remove_catch_syscall)
4695 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4696 (print_recreate_catch_syscall): Adjust.
4697 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4698 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4699 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4700 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4701 (masked_watchpoint_breakpoint_ops)
4702 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4703 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4704 there is one. Remove references to syscalls_to_be_caught.
4705 (catching_syscall_number): Adjust.
4706 * ada-lang.c (catch_exception_breakpoint_ops)
4707 (catch_exception_unhandled_breakpoint_ops)
4708 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4709
4710 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4711
4712 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4713 field.
4714 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4715 reference to forked_inferior_pid.
4716 (struct fork_catchpoint): New type.
4717 (breakpoint_hit_catch_fork, print_it_catch_fork)
4718 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4719 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4720 (create_fork_vfork_event_catchpoint): Adjust to use
4721 init_catchpoint.
4722
4723 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4724
4725 * breakpoint.c (add_to_breakpoint_chain)
4726 (init_raw_breakpoint_without_location): New functions, factored
4727 out from ...
4728 (set_raw_breakpoint_without_location): ... this one.
4729 (init_raw_breakpoint): New function, factored out from
4730 set_raw_breakpoint and adjusted to use
4731 init_raw_breakpoint_without_location.
4732 (set_raw_breakpoint): Adjust.
4733 (init_catchpoint): New function, factored out from
4734 create_catchpoint_without_mention and adjusted to use
4735 init_raw_breakpoint.
4736 (create_catchpoint_without_mention): Adjust.
4737
4738 2011-06-22 Tom Tromey <tromey@redhat.com>
4739
4740 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4741 argument of 0 specially.
4742
4743 2011-06-22 Yao Qi <yao@codesourcery.com>
4744
4745 * infrun.c (handle_inferior_event): Remove write-only local variable
4746 `sw_single_step_trap_p'.
4747
4748 2011-06-20 Tom Tromey <tromey@redhat.com>
4749
4750 * symtab.c (lookup_language_this): End loop if block is NULL.
4751
4752 2011-06-17 Tom Tromey <tromey@redhat.com>
4753
4754 * valops.c (value_of_this): Use lookup_language_this.
4755 * symtab.h (lookup_language_this): Declare.
4756 * symtab.c (lookup_language_this): New function.
4757 (lookup_symbol_aux): Use lookup_language_this.
4758 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4759
4760 2011-06-17 Tom Tromey <tromey@redhat.com>
4761
4762 * value.h (value_of_this): Update.
4763 (value_of_local): Remove.
4764 * valops.c (value_of_this): Rename from value_of_local. Change
4765 parameters.
4766 * p-exp.y (exp): Update.
4767 (variable): Likewise.
4768 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4769
4770 2011-06-17 Tom Tromey <tromey@redhat.com>
4771
4772 * valops.c (value_of_local): Complain if NAME is NULL.
4773 * std-operator.def (OP_OBJC_SELF): Remove.
4774 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4775 * objc-exp.y (name_not_typename): Use OP_THIS.
4776 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4777 name for "this".
4778 <OP_OBJC_SELF>: Remove.
4779 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4780
4781 2011-06-16 Tristan Gingold <gingold@adacore.com>
4782
4783 * python/py-events.h (gdb_py_events): Make it extern.
4784 * python/py-evtregistry.c (gdb_py_events): Declare.
4785
4786 2011-06-16 Hui Zhu <teawater@gmail.com>
4787
4788 * remote.c (remote_trace_set_readonly_regions): Add check for
4789 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4790 output warning.
4791
4792 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4793
4794 * arm-linux-tdep.c: Include "auxv.h".
4795 (AT_HWCAP): Define.
4796 (ARM_LINUX_SIZEOF_VFP): Define.
4797 (arm_linux_supply_vfp): New function.
4798 (arm_linux_collect_vfp): Likewise.
4799 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4800 (arm_linux_fpa_regset_sections): New variable.
4801 (arm_linux_vfp_regset_sections): Likewise.
4802 (arm_linux_core_read_description): New function.
4803 (arm_linux_init_abi): Install arm_linux_core_read_description and
4804 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4805 appropriate for the architecture.
4806 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4807 (tdesc_arm_with_m): Declare.
4808 (tdesc_arm_with_iwmmxt): Likewise.
4809 (tdesc_arm_with_vfpv2): Likewise.
4810 (tdesc_arm_with_vfpv3): Likewise.
4811 (tdesc_arm_with_neon): Likewise.
4812 * arm-linux-nat.c: Move features/*.c includes ...
4813 * arm-tdep.c: ... here.
4814 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4815 target description data structures ...
4816 * arm-tdep.c (_initialize_arm_tdep): ... here.
4817 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4818 HWCAP_VFPv3D16): Move definitions ...
4819 * arm-linux-tdep.h: ... here.
4820
4821 2011-06-15 Hui Zhu <teawater@gmail.com>
4822
4823 * remote.c (remote_trace_set_readonly_regions): Add a check for
4824 target_buf_size.
4825
4826 2011-06-14 Tom Tromey <tromey@redhat.com>
4827
4828 * coffread.c (coffread_objfile): Rename from current_objfile.
4829 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4830 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4831
4832 2011-06-14 Tom Tromey <tromey@redhat.com>
4833
4834 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4835 (class_symtab): Remove.
4836 (jv_dynamics_progspace_key): New global.
4837 (jv_per_objfile_free): Reset program space data. Update assert.
4838 Don't clear globals.
4839 (get_dynamics_objfile): Use and set program space data.
4840 (get_java_class_symtab): Use get_dynamics_objfile.
4841 (add_class_symbol): Likewise.
4842 (java_link_class_type): Likewise.
4843 (java_object_type, jv_clear_object_type, set_java_object_type):
4844 Remove.
4845 (get_java_object_type): Update. Don't cache result.
4846 (is_object_type): Don't call set_java_object_type.
4847 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4848 initialize jv_dynamics_progspace_key.
4849
4850 2011-06-14 Tom Tromey <tromey@redhat.com>
4851
4852 * symtab.h (current_objfile): Don't declare.
4853 * objfiles.h (current_objfile): Don't declare.
4854 * objfiles.c (current_objfile): Remove.
4855 * mdebugread.c (current_objfile): New file-scope global.
4856 * dbxread.c (current_objfile): New file-scope global.
4857 * coffread.c (current_objfile): New file-scope global.
4858
4859 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4860
4861 * top.h (line): Rename to ...
4862 (saved_command_line): ... this.
4863 (linesize): Rename to ...
4864 (saved_command_line_size): ... this.
4865 * top.c (line): Rename to ...
4866 (saved_command_line): ... this.
4867 (linesize): Rename to ...
4868 (saved_command_line_size): ... this.
4869 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4870 * event-top.c (command_line_handler): Adjust.
4871 * main.c (captured_main): Adjust.
4872
4873 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4874
4875 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4876 get_frame_func instead of get_frame_pc to determine the code
4877 address used to construct the frame ID.
4878 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4879 (i386_epilogue_frame_this_id): Likewise.
4880 (i386_epilogue_frame_prev_register): New function.
4881 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4882 (i386_stack_tramp_frame_sniffer): Fix coding style.
4883 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4884 (i386_gdbarch_init): Fix comments.
4885
4886 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4887
4888 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4889 instruction when walking back through the instruction stream.
4890
4891 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4894 fullname parameters order.
4895
4896 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 Code cleanup.
4899 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4900 for fun.
4901 * psymtab.c (map_symbol_filenames_psymtab)
4902 (map_partial_symbol_filenames): Likewise.
4903 * psymtab.h: Include symfile.h.
4904 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4905 * symfile.h (symbol_filename_ftype): New.
4906 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4907 map_symbol_filenames, clarify more the naming in comment.
4908
4909 2011-06-07 Doug Evans <dje@google.com>
4910
4911 * cc-with-index.sh: Fix typos in comment.
4912 Look for ../../gdb, for fullname.exp.
4913
4914 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4915 Pedro Alves <pedro@codesourcery.com>
4916
4917 * cli/cli-cmds.c (shell_escape): Use waitpid.
4918 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4919
4920 2011-06-07 Tristan Gingold <gingold@adacore.com>
4921
4922 * xcoffread.c (dwarf2_xcoff_names): New variable.
4923 (aix_process_linenos): Add a guard.
4924 (xcoff_symfile_finish): Free dwarf2.
4925 (xcoff_initial_scan): Add dwarf2 support.
4926
4927 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4928
4929 * infcall.c (run_inferior_call): Don't mask async. Instead force
4930 a synchronous wait, if the target can async.
4931
4932 * target.h (struct target_ops): Delete to_async_mask.
4933 (target_async_mask): Delete.
4934 * target.c (update_current_target): Delete references to to_async_mask.
4935 * linux-nat.c (linux_nat_async_mask_value): Delete.
4936 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4937 to linux_nat_async_mask_value.
4938 (linux_nat_async_mask): Delete.
4939 (linux_nat_async, linux_nat_close): Remove references to
4940 linux_nat_async_mask_value.
4941 * record.c (record_async_mask_value): Delete.
4942 (record_async): Remove references to record_async_mask_value.
4943 (record_async_mask): Delete.
4944 (record_can_async_p, record_is_async_p): Remove references to
4945 record_async_mask_value.
4946 (init_record_ops, init_record_core_ops): Remove references to
4947 record_async_mask.
4948 * remote.c (remote_async_mask_value): Delete.
4949 (init_remote_ops): Remove reference to remote_async_mask.
4950 (remote_can_async_p, remote_is_async_p): Remove references to
4951 remote_async_mask_value.
4952 (remote_async): Remove references to remote_async_mask_value.
4953 (remote_async_mask): Delete.
4954
4955 * infrun.c (fetch_inferior_event): Don't claim registers changed
4956 if the current thread is already not executing.
4957
4958 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4959
4960 From Stephen Kitt <steve@sk2.org>
4961 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4962 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4963
4964 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4965
4966 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4967 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4968
4969 2011-06-03 Tom Tromey <tromey@redhat.com>
4970
4971 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4972 code fields.
4973 * python/py-exitedevent.c (create_exited_event_object): Change
4974 type of 'exit_code'. Optionally add exit_code attribute.
4975 (emit_exited_event): Change type of 'exit_code'.
4976 * python/py-event.h (emit_exited_event): Update.
4977 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4978 * infrun.c (handle_inferior_event): Set exit code fields on
4979 inferior.
4980 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4981 fields.
4982 * inferior.c (exit_inferior_1): Initialize new fields.
4983
4984 2011-06-03 Tom Tromey <tromey@redhat.com>
4985
4986 * dwarf2expr.c (get_signed_type): New function.
4987 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4988
4989 2011-06-02 Keith Seitz <keiths@redhat.com>
4990
4991 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4992
4993 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4994
4995 * top.h (simplified_command_loop): Delete declaration.
4996
4997 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4998
4999 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5000 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5001
5002 2011-06-01 Yao Qi <yao@codesourcery.com>
5003
5004 * objfiles.h (obj_section_addr): Update reference to objfile from
5005 `abfd' to `obfd'.
5006 (obj_section_endaddr): Likewise.
5007
5008 2011-06-01 Daniel Jacobowitz <drow@false.org>
5009
5010 * MAINTAINERS: Update my email address and affiliation. Also
5011 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5012
5013 2010-05-31 Keith Seitz <keiths@redhat.com>
5014
5015 PR c++/12750
5016 * linespec.c (get_search_block): New function.
5017 (find_methods): Add FILE_SYMTATB parameter and use it and
5018 get_search_block to pass an appropriate block to
5019 lookup_symbol_in_namespace.
5020 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5021 Check if *ARGPTR starts with a filename first.
5022 If it does, call locate_first_half again to locate the next
5023 "first half" of the linespec.
5024 Pass FILE_SYMTATB to decode_objc and decode_compound.
5025 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5026 (locate_first_half): Stop on the first colon seen.
5027 (decode_compound): Add FILE_SYMTAB parameter.
5028 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5029 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5030 get_search_block with lookup_symbol.
5031 (find_method): Add FILE_SYMTAB parameter and pass it to
5032 find_methods.
5033 (decode_objc): Use get_search_block.
5034
5035 2010-05-31 Keith Seitz <keiths@redhat.com>
5036
5037 PR symtab/12704
5038 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5039 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5040 and CP_ANONYMOUS_NAMESPACE_LEN.
5041 (cp_is_anonymous): Likewise.
5042 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5043 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5044 * dwarf2read.c (namespace_name): Likewise.
5045 (fixup_partial_die): Likewise.
5046 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5047 seen in the input, keep it.
5048
5049 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5050
5051 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5052 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5053 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5054 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5055 * remote.c (_initialize_remote): Register
5056 async_remote_interrupt_twice directly as
5057 sigint_remote_twice_token event.
5058
5059 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5060
5061 * target.h (enum inferior_event_type): Delete INF_ERROR.
5062 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5063
5064 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5065
5066 * interps.c (interp_set): Don't cancel continuations.
5067
5068 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5069
5070 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5071
5072 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5073
5074 * continuations.h (continuation_ftype): Add `err' parameter.
5075 Document parameters.
5076 (do_all_continuations, do_all_continuations_thread)
5077 (do_all_intermediate_continuations)
5078 (do_all_intermediate_continuations_thread)
5079 (do_all_inferior_continuations): Add `err' parameter.
5080 * continuations.c (do_my_continuations_1, do_my_continuations)
5081 (do_all_inferior_continuations, do_all_continuations_ptid)
5082 (do_all_continuations_thread_callback)
5083 (do_all_continuations_thread, do_all_continuations)
5084 (do_all_intermediate_continuations_thread_callback)
5085 (do_all_intermediate_continuations_thread)
5086 (do_all_intermediate_continuations): Add `err' parameter, and pass
5087 it down all the way to the continuations proper.
5088 * inf-loop.c (inferior_event_handler): If fetching an inferior
5089 event throws an error, don't pop the target, and still call the
5090 continuations, but with `err' set. Adjust all other continuation
5091 calls.
5092 * breakpoint.c (until_break_command_continuation): Add `err'
5093 parameter.
5094 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5095 issue another step if `err' is set.
5096 (struct until_next_continuation_args): New.
5097 (until_next_continuation): Add `err' parameter. Adjust.
5098 (until_next_command): Adjust.
5099 (struct finish_command_continuation_args): Add `thread' field.
5100 (finish_command_continuation): Add `err' parameter. Handle it.
5101 (finish_forward): Adjust.
5102 (attach_command_continuation): Add `err' parameter. Handle it.
5103 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5104 cancel the continuations.
5105 * interps.c (interp_set): Adjust to cancel the continuations.
5106 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5107 continuations rather than discarding.
5108 (free_thread): Don't clear thread inferior resources here.
5109 (delete_thread_1): Do it here instead. And do it before removing
5110 the thread from the threads list. Tag the thread as exited before
5111 clearing thread inferior resources.
5112
5113 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5114
5115 * infcall.c (call_function_by_hand): Rephrase error message.
5116
5117 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5118
5119 * defs.h (struct thread_info, struct inferior): Delete forward
5120 declarations.
5121 * breakpoint.h (struct thread_info): New forward declaration.
5122 * observer.sh (struct inferior): New forward declaration.
5123 * python/python-internal.h (struct inferior): New forward
5124 declaration.
5125
5126 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5127
5128 * defs.h (struct continuation, continuation_ftype)
5129 (continuation_free_arg_ftype, add_continuation)
5130 (do_all_continuations, do_all_continuations_thread)
5131 (discard_all_continuations, discard_all_continuations_thread)
5132 (add_intermediate_continuation, do_all_intermediate_continuations)
5133 (do_all_intermediate_continuations_thread)
5134 (discard_all_intermediate_continuations)
5135 (discard_all_intermediate_continuations_thread)
5136 (add_inferior_continuation, do_all_inferior_continuations)
5137 (discard_all_inferior_continuations): Move to ...
5138 * continuations.h: ... this new file.
5139 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5140 infcmd.c, inferior.c, infrun.c, interps.c: Include
5141 continuations.h.
5142
5143 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5144 Doug Evans <dje@google.com>
5145
5146 Fix PR 10970, PR 12702.
5147 * linux-nat.c (linux_lwp_is_zombie): New function.
5148 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5149 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5150
5151 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5152
5153 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5154 typedefs.
5155 (add_continuation, add_intermediate_continuation)
5156 (add_inferior_continuation): Use them.
5157 * continuations.c (struct continuation): Use them.
5158 (make_continuation_ftype): Delete.
5159 (make_continuation, add_inferior_continuation, add_continuation)
5160 (add_intermediate_continuation): Use continuation_ftype and
5161 continuation_free_arg_ftype. Rename parameters to shorter names.
5162
5163 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5164
5165 * continuations.c (make_continuation): Make it return void.
5166 (do_my_continuations): Rename to ...
5167 (do_my_continuations_1): ... this. Remove old_chain parameter and
5168 adjust.
5169 (do_my_continuations): New.
5170 (discard_my_continuations): Rename to ...
5171 (discard_my_continuations_1): ... this. Remove old_chain
5172 parameter and adjust.
5173 (discard_my_continuations): New.
5174 (add_inferior_continuation): Simplify.
5175 (do_all_inferior_continuations): Reimplement on top
5176 do_my_continuations.
5177 (discard_all_inferior_continuations): Simplify.
5178 (add_continuation): Simplify.
5179 (do_all_continuations_ptid): Simplify.
5180 (discard_all_continuations_thread_callback): Simplify.
5181 (add_intermediate_continuation): Simplify.
5182 (discard_all_intermediate_continuations_thread_callback):
5183 Simplify.
5184
5185 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5186
5187 * utils.c (struct continuation, add_continuation)
5188 (add_inferior_continuation)
5189 (do_all_inferior_continuations, discard_all_inferior_continuations)
5190 (restore_thread_cleanup, do_all_continuations_ptid)
5191 (do_all_continuations_thread_callback)
5192 (do_all_continuations_thread, do_all_continuations)
5193 (discard_all_continuations_thread_callback)
5194 (discard_all_continuations_thread, discard_all_continuations)
5195 (add_intermediate_continuation)
5196 (do_all_intermediate_continuations_thread_callback)
5197 (do_all_intermediate_continuations_thread)
5198 (do_all_intermediate_continuations)
5199 (discard_all_intermediate_continuations_thread_callback)
5200 (discard_all_intermediate_continuations_thread)
5201 (discard_all_intermediate_continuations): Move to ...
5202 * continuations.c: ... this new file, and adjust to no longer
5203 implement continuations on top of cleanups.
5204 * Makefile.in (SFILES): Add continuations.c.
5205 (COMMON_OBS): Add continuations.o.
5206
5207 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5208
5209 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5210 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5211 Internal error on invalid values.
5212 * reverse.c: Don't handle EXEC_ERROR.
5213 * mi/mi-main.c: Don't handle EXEC_ERROR.
5214
5215 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5216
5217 * record.c: Include event-loop.h, inf-loop.h.
5218 (record_beneath_to_async): New global.
5219 (tmp_to_async): New global.
5220 (record_async_inferior_event_token): New global.
5221 (record_open_1): Don't error out if async is enabled.
5222 (record_open): Handle to_async. Create an async event source in
5223 the event loop.
5224 (record_close): Delete the async event source.
5225 (record_resumed): New global.
5226 (record_execution_dir): New global.
5227 (record_resume, record_core_resume): Set them. Register the
5228 target on the event loop.
5229 (record_wait): Rename to ...
5230 (record_wait_1): ... this. Add more debug output. Handle
5231 TARGET_WNOHANG, and the target beneath returning
5232 TARGET_WAITKIND_IGNORE.
5233 (record_wait): Reimplement on top of record_wait_1.
5234 (record_async_mask_value): New global.
5235 (record_async, record_async_mask, record_can_async_p)
5236 (record_is_async_p, record_execution_direction): New functions.
5237 (init_record_ops, init_record_core_ops): Install new methods.
5238 * infrun.c (fetch_inferior_event): Temporarily switch the global
5239 execution direction to the direction the target was going.
5240 (execution_direction): Change type to int.
5241 * target.c (default_execution_direction): New function.
5242 (update_current_target): Inherit and de_fault
5243 to_execution_direction.
5244 * target.h (struct target_ops) <to_execution_direction>: New
5245 field.
5246 (target_execution_direction): New macro.
5247 * inferior.h (execution_direction): Change type to int.
5248
5249 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5250
5251 * infcall.c (call_function_by_hand): Don't allow calling functions
5252 in reverse execution mode.
5253
5254 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5255
5256 * infcmd.c (finish_command): Allow async finish in reverse.
5257
5258 2011-05-26 Yao Qi <yao@codesourcery.com>
5259
5260 * gdb_thread_db.h: Delete. Move to ...
5261 * common/gdb_thread_db.h: ... here.
5262
5263 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5264
5265 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5266 function's entry point instead of a manually managed momentary
5267 breakpoint, and only ever issue one proceed call.
5268 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5269 doing a reverse-finish, switch to stepi mode, to do another step.
5270 (insert_step_resume_breakpoint_at_sal): Make public.
5271 (normal_stop): No need to save function value return registers if
5272 going reverse.
5273 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5274
5275 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5276
5277 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5278 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5279 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5280 at the end.
5281 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5282 step-resume breakpoints.
5283 (print_it_typical): Handle bp_hp_step_resume.
5284 (bpstat_what): Ditto.
5285 (bptype_string): Ditto.
5286 (print_one_breakpoint_location): Ditto.
5287 (allocate_bp_location): Ditto.
5288 (mention): Ditto.
5289 (breakpoint_re_set_one): Ditto.
5290 * infrun.c (handle_inferior_event): Adjust. Split
5291 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5292 BPSTAT_WHAT_HP_STEP_RESUME.
5293 (insert_step_resume_breakpoint_at_sal): Rename to ...
5294 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5295 parameter. Handle it.
5296 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5297 insert_step_resume_breakpoint_at_sal_1.
5298 (insert_step_resume_breakpoint_at_frame): Rename to ...
5299 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5300 set a high-priority step-resume breakpoint.
5301 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5302 (insert_step_resume_breakpoint_at_caller): Ditto.
5303
5304 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5305
5306 * breakpoint.c (iterate_over_related_breakpoints): New.
5307 (do_map_delete_breakpoint): New.
5308 (delete_command): Pass do_map_delete_breakpoint to
5309 map_breakpoint_numbers.
5310 (do_disable_breakpoint): New.
5311 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5312 breakpoints.
5313 (do_enable_breakpoint): Rename to ...
5314 (enable_breakpoint_disp): ... this.
5315 (enable_breakpoint): Adjust.
5316 (do_enable_breakpoint): New.
5317 (enable_once_breakpoint): Delete.
5318 (do_map_enable_breakpoint): New.
5319 (do_map_enable_once_breakpoint): New.
5320 (enable_once_command, enable_delete_command)
5321 (delete_trace_command): Iterate over the breakpoint's related
5322 breakpoints.
5323
5324 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5325
5326 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5327 for ALPHA_ZERO_REGNUM.
5328 (alpha_supply_int_regs): Explicitly supply zero as the value for
5329 ALPHA_ZERO_REGNUM in the register cache.
5330 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5331
5332 2011-05-26 Yao Qi <yao@codesourcery.com>
5333
5334 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5335
5336 2011-05-26 Tristan Gingold <gingold@adacore.com>
5337
5338 * symfile.h (struct dwarf2_section_names): New type.
5339 (struct dwarf2_debug_sections): New type.
5340 (dwarf2_has_info): Add parameter.
5341 * dwarf2read.c (dwarf2_elf_names): New variable.
5342 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5343 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5344 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5345 (dwarf2_has_info): Add names parameter. Pass names
5346 to dwarf2_locate_sections.
5347 (section_is_p): Rewrite using the names parameter.
5348 (dwarf2_locate_sections): Use section names from the names parameter.
5349 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5350 * elfread.c (read_psyms): Ditto.
5351 * machoread.c (macho_symfile_read): Ditto.
5352
5353 2011-05-25 Andreas Schwab <schwab@redhat.com>
5354
5355 PR gdb/8677
5356 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5357
5358 2011-05-24 Keith Seitz <keiths@redhat.com>
5359
5360 PR breakpoint/12803
5361 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5362 (decode_compound): Unconditionally call keep_name_info.
5363
5364 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5365
5366 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5367 scope, clear its command list.
5368 (map_breakpoint_numbers): Don't walk the related breakpoints list
5369 of each breakpoint.
5370
5371 2011-05-24 Tom Tromey <tromey@redhat.com>
5372
5373 * MAINTAINERS: Move Jim Blandy to past maintainers.
5374
5375 2011-05-24 Tristan Gingold <gingold@adacore.com>
5376
5377 * symfile.h (enum dwarf2_section_enum): New type.
5378 (dwarf2_get_section_info): New prototype.
5379 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5380 section_name by sect. Use a switch to select the info.
5381 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5382 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5383
5384 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5385
5386 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5387 shared library event breakpoint if there's no execution.
5388
5389 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5390
5391 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5392 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5393
5394 2011-05-23 Tom Tromey <tromey@redhat.com>
5395
5396 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5397 NULL.
5398
5399 2011-05-23 Doug Evans <dje@google.com>
5400
5401 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5402 entry for RuntimeError to doc string.
5403
5404 2011-05-23 Jerome Guitton <guitton@adacore.com>
5405
5406 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5407 sequence for probing loops.
5408
5409 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5410
5411 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5412 comment.
5413
5414 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5415
5416 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5417 zero as the value for %g0 in the register cache.
5418 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5419 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5420
5421 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5422
5423 * infrun.c (proceed): Set previous_inferior_ptid here.
5424 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5425 inferior_ptid, not null_ptid.
5426 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5427 (fetch_inferior_event): Nor here.
5428
5429 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5430
5431 * inf-loop.c (inferior_event_handler): Only output a message if
5432 verbose.
5433
5434 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5435
5436 * MAINTAINERS: Update my e-mail address.
5437
5438 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5439
5440 * infrun.c (proceed): Switch the inferior event loop to
5441 INF_EXEC_COMPLETE if the target refused to resume from a
5442 vfork/fork.
5443
5444 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5445
5446 * infcmd.c: Include "inf-loop.h".
5447 (step_once): When stepping into an inline subroutine, pretend the
5448 target has run. If the target can async, switch the inferior
5449 event loop to INF_EXEC_COMPLETE.
5450 * inferior.h (user_visible_resume_ptid): Declare.
5451 * infrun.c (user_visible_resume_ptid): New function, factored out
5452 from `resume'.
5453 (resume): Use it.
5454 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5455 that the current thread is running. Merge async and sync
5456 branches.
5457
5458 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5459
5460 * infcmd.c (step_1): Simplify synchronous case.
5461
5462 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5463
5464 * tracepoint.c: Include exceptions.h.
5465 (TFILE_PID): Move higher in file.
5466 (tfile_open): Delay pushing the tfile target until we're assured
5467 the tfile header is present in the file. Wrap reading the initial
5468 newline-terminated lines in TRY_CATCH. Pop the target if the
5469 initial setup failed. Add the tfile's thread immediately
5470 aftwards, before any non-essential setup. Don't skip
5471 post_create_inferior if there are no traceframes present in the
5472 file.
5473 (tfile_close): Remove redundant check for null before xfree call.
5474 (tfile_thread_alive): New function.
5475 (init_tfile_ops): Register it as to_thread_alive callback.
5476
5477 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5478
5479 * tracepoint.c (tfile_open): Delete #if 0'd code.
5480
5481 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5482
5483 Fix -readnow for -gdwarf-4 unused type units.
5484 * dwarf2read.c (struct signatured_type): Remove the field offset.
5485 (create_signatured_type_table_from_index): Remove its initialization.
5486 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5487 instead. Add a complaint call.
5488 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5489 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5490 (lookup_signatured_type_at_offset, read_signatured_type)
5491 (write_one_signatured_type): Update the field for per_cu.
5492
5493 2011-05-19 Tom Tromey <tromey@redhat.com>
5494
5495 * python/py-inferior.c (python_inferior_exit): Use
5496 target_gdbarch.
5497 (python_on_resume): Likewise.
5498
5499 2011-05-19 Matt Rice <ratmice@gmail.com>
5500
5501 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5502
5503 2011-05-19 Hui Zhu <teawater@gmail.com>
5504
5505 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5506
5507 2011-05-19 Hui Zhu <teawater@gmail.com>
5508
5509 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5510
5511 2011-05-18 Tom Tromey <tromey@redhat.com>
5512
5513 * dwarf2read.c (dwarf2_add_field): Constify.
5514 * value.c (value_static_field): Constify.
5515 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5516 Now const.
5517 * ax-gdb.c (gen_static_field): Constify
5518
5519 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5520
5521 * linux-nat.c (kill_callback): Use SIGKILL first.
5522
5523 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5524
5525 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5526
5527 2011-05-18 Tom Tromey <tromey@redhat.com>
5528
5529 * value.c (value_fn_field): Constify.
5530 * symtab.c (gdb_mangle_name): Constify.
5531 * stabsread.c (update_method_name_from_physname): Make 'physname'
5532 argument const.
5533 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5534 const. Use explicit fputc_filtered loop.
5535 (pascal_type_print_base): Constify.
5536 * p-lang.h (pascal_type_print_method_args): Update.
5537 * linespec.c (add_matching_methods): Constify.
5538 (add_constructors): Likewise.
5539 * jv-typeprint.c (java_type_print_base): Constify.
5540 * gdbtypes.h (struct cplus_struct_type)
5541 <fn_fieldlist.fn_field.physname>: Now const.
5542 * dwarf2read.c (compute_delayed_physnames): Constify.
5543 (dwarf2_add_member_fn): Likewise.
5544 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5545
5546 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5547
5548 * infrun.c (resume): Mention which is the current thread, and its
5549 current PC in debug output.
5550 (prepare_to_proceed): Mention the thread switching in debug
5551 output.
5552
5553 2011-05-18 Tom Tromey <tromey@redhat.com>
5554
5555 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5556 path check. Use xmalloc and cleanups.
5557 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5558
5559 2011-05-17 Tom Tromey <tromey@redhat.com>
5560
5561 * cp-valprint.c (cp_print_value_fields): Catch errors from
5562 value_static_field.
5563
5564 2011-05-17 Tom Tromey <tromey@redhat.com>
5565
5566 * dwarf2read.c (dwarf2_get_die_type): Call
5567 get_die_type_at_offset.
5568 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5569 get_base_type function.
5570
5571 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5572
5573 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5574 trap_expected.
5575
5576 2011-05-16 Doug Evans <dje@google.com>
5577
5578 * python/py-auto-load.c (source_section_scripts): Mention objfile
5579 name in warning.
5580
5581 2011-05-15 Doug Evans <dje@google.com>
5582
5583 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5584 (try_thread_db_load_from_pdir): Call it. If unable to find
5585 libthread_db in directory of libpthread, see if we're looking at
5586 the separate-debug-info copy.
5587
5588 * python/py-autoload.c (print_script): Print "Missing" instead of
5589 "No" for missing scripts.
5590 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5591
5592 2011-05-13 Doug Evans <dje@google.com>
5593
5594 * ui-file.c (stdio_file_write_async_safe): Add comment.
5595
5596 2011-05-14 Hui Zhu <teawater@gmail.com>
5597
5598 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5599
5600 2011-05-13 Doug Evans <dje@google.com>
5601
5602 Support $pdir and $sdir in libthread-db-search-path.
5603 * NEWS: Mention $sdir,$pdir.
5604 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5605 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5606 (try_thread_db_load_from_sdir): New function.
5607 (try_thread_db_load_from_dir): New function.
5608 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5609 system directories if search of libthread-db-search-path fails,
5610 that is now done via $sdir.
5611 (has_libpthread): New function.
5612 (thread_db_load): Remove search for libthread_db in directory of
5613 libpthread, that is now done via $pdir.
5614
5615 * NEWS: Mention "info auto-load-scripts".
5616 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5617 script_not_found_warning_printed.
5618 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5619 all callers updated. Initialize script_not_found_warning_printed.
5620 (get_auto_load_pspace_data_for_loading): New function.
5621 (maybe_add_script): New function.
5622 (source_section_scripts): Simplify. Only print one warning regardless
5623 of the number of auto-load scripts not found.
5624 (clear_section_scripts): Clear script_not_found_warning_printed.
5625 (auto_load_objfile_script): Record script in hash table.
5626 (count_matching_scripts): New function.
5627 (maybe_print_script): Renamed from maybe_print_section_script, all
5628 callers updated. Rewrite to use ui_out_*.
5629 (info_auto_load_scripts): Renamed from
5630 maintenance_print_section_scripts, all callers updated.
5631 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5632 renamed as "info auto-load-scripts".
5633
5634 2011-05-13 Tom Tromey <tromey@redhat.com>
5635
5636 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5637 (read_sleb128): Likewise.
5638
5639 2011-05-13 Tom Tromey <tromey@redhat.com>
5640
5641 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5642 offset display.
5643
5644 2011-05-13 Doug Evans <dje@google.com>
5645
5646 * linux-nat.c (debug_linux_nat_async): Delete.
5647 Replace all references to use debug_linux_nat instead.
5648 (show_debug_linux_nat_async): Delete.
5649 (sigchld_handler): Call ui_file_write_async_safe instead of
5650 fprintf_unfiltered.
5651 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5652 * ui-file.c (struct ui_file): New member to_write_async_safe.
5653 (null_file_write_async_safe): New function.
5654 (ui_file_write_async_safe): New function.
5655 (set_ui_file_write_async_safe): New function.
5656 (ui_file_new): Initialize to_write_async_safe.
5657 (stdio_file_write_async_safe): New function.
5658 (struct stdio_file): New member fd.
5659 (stdio_file_new): Initialize to_write_async_safe, fd.
5660 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5661 fileno.
5662 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5663 (set_ui_file_write_async_safe): Declare.
5664 (ui_file_write_async_safe): Declare.
5665
5666 2011-05-13 Tom Tromey <tromey@redhat.com>
5667
5668 * utils.c (do_value_free): New function.
5669 (make_cleanup_value_free): Likewise.
5670 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5671 freeing correctly.
5672 (dwarf2_loc_desc_needs_frame): Call
5673 make_cleanup_value_free_to_mark.
5674 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5675 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5676 value_free_to_mark.
5677 (new_dwarf_expr_context): Don't call value_mark.
5678 * dwarf2-frame.c (execute_stack_op): Call
5679 make_cleanup_value_free_to_mark.
5680 * defs.h (make_cleanup_value_free): Declare.
5681
5682 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5683
5684 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5685 prepare_execute_command.
5686 * top.c (prepare_execute_command): Return cleanup.
5687 (execute_command): Use cleanup from prepare_execute_command.
5688 * top.h (prepare_execute_command): Change prototype to return
5689 cleanup.
5690 * defs.h (struct value): Add opaque declaration.
5691 (make_cleanup_value_free_to_mark): Add prototype.
5692 * utils.c (do_value_free_to_mark): New function.
5693 (make_cleanup_value_free_to_mark): Likewise.
5694
5695 2011-05-12 Tom Tromey <tromey@redhat.com>
5696
5697 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5698 cast left-hand-side to unsigned.
5699
5700 2011-05-12 Tom Tromey <tromey@redhat.com>
5701
5702 PR gdb/12617:
5703 * value.h (value_from_contents): Declare.
5704 * value.c (value_from_contents): New function.
5705 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5706 (dwarf2_get_die_type): New function.
5707 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5708 (allocate_piece_closure): Acquire reference to values.
5709 (read_pieced_value): Update for value-based expressions.
5710 (write_pieced_value): Likewise.
5711 (free_pieced_value_closure): Call value_free as needed.
5712 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5713 Update for value-based expressions.
5714 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5715 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5716 <get_base_type>: New field.
5717 (struct dwarf_expr_piece) <v.value>: Change type.
5718 <v.regno>: New field.
5719 (struct dwarf_expr_context) <mark>: New field.
5720 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5721 (dwarf_expr_pop, dwarf_expr_push): Remove.
5722 (dwarf_expr_push_address): Declare.
5723 * dwarf2expr.c (dwarf_arch_cookie): New global.
5724 (struct dwarf_gdbarch_types): New.
5725 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5726 functions.
5727 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5728 static.
5729 (dwarf_expr_push_address): New function.
5730 (dwarf_expr_pop): Now static.
5731 (dwarf_expr_fetch): Change return type.
5732 (dwarf_require_integral): New function.
5733 (dwarf_expr_fetch): Simplify.
5734 (add_piece): Update.
5735 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5736 functions.
5737 (execute_stack_op) <sign_ext>: Remove.
5738 Use values for DWARF stack.
5739 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5740 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5741 New cases.
5742 (_initialize_dwarf2expr): New function.
5743 (add_piece): Update.
5744 (new_dwarf_expr_context): Set new field.
5745 (free_dwarf_expr_context): Call value_free_to_mark.
5746 * dwarf2-frame.c (no_base_type): New function.
5747 (execute_stack_op): Set get_base_type field. Update.
5748
5749 2011-05-12 Tom Tromey <tromey@redhat.com>
5750
5751 * dwarf2read.c (read_common_block): Fix formatting.
5752
5753 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5754
5755 * breakpoint.c (disable_breakpoint): Disable all locations
5756 associated with a tracepoint on target if a trace experiment is
5757 running.
5758 (disable_command): Disable a specific tracepoint location on target if
5759 a trace experiment is running.
5760 (do_enable_breakpoint): Enable all locations associated with a
5761 tracepoint on target if a trace experiment is running.
5762 (enable_command) Enable a specific tracepoint location on target if a
5763 trace experiment is running.
5764 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5765 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5766 to_disable_tracepoint.
5767 * target.h: Add declaration of struct bp_location.
5768 (struct target_ops): Add new functions
5769 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5770 to_disable_tracepoint to target operations.
5771 (target_supports_enable_disable_tracepoint): New macro.
5772 (target_enable_tracepoint): New macro.
5773 (target_disable_tracepoint): New macro.
5774 * remote.c (struct remote_state): Add new field.
5775 (remote_enable_disable_tracepoint_feature): New.
5776 (remote_protocol_features): Add new entry.
5777 (remote_supports_enable_disable_tracepoint): New.
5778 (remote_enable_tracepoint): New.
5779 (remote_disable_tracepoint): New.
5780 (init_remote_ops): Add remote_enable_tracepoint,
5781 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5782 to remote operations.
5783 * tracepoint.c (start_tracing): Allow tracing to start without any
5784 tracepoints enabled with just a warning if they can be re-enabled
5785 later.
5786 * NEWS: Add news item for the new behaviour of the enable and disable
5787 GDB commands when applied to tracepoints.
5788 Add news items for the new remote packets QTEnable and QTDisable.
5789
5790 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 * config.in: Regenerate.
5793 * configure: Regenerate.
5794 * configure.ac <--with-system-readline> (for readline_echoing_p):
5795 Remove the test.
5796 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5797 (tui_old_rl_echoing_p): ... here.
5798 (tui_setup_io): Rename extern declaration readline_echoing_p to
5799 _rl_echoing_p. Adjust assignments for the both renames.
5800
5801 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5802
5803 * symtab.c (lookup_symtab): Run cleanup before returning.
5804
5805 2011-05-11 Tom Tromey <tromey@redhat.com>
5806
5807 * dwarf2read.c (handle_data_member_location): New function.
5808 (dwarf2_add_field): Use it.
5809 (read_common_block): Likewise.
5810
5811 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5812
5813 Make addrs->SECTINDEX always defined.
5814 * symfile.c (relative_addr_info_to_section_offsets): Check for
5815 SECTINDEX -1, not for zero ADDR.
5816 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5817 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5818 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5819 on its validity.
5820
5821 2011-05-10 Doug Evans <dje@google.com>
5822
5823 * linux-thread-db.c: Whitespace cleanup.
5824 (try_thread_db_load_1): Fix comment.
5825
5826 * linux-thread-db.c (set_libthread_db_search_path): New function.
5827 (_initialize_thread_db): Add setter for libthread-db-search-path.
5828
5829 2011-05-09 Doug Evans <dje@google.com>
5830
5831 * NEWS: Mention --with-iconv-bin.
5832 * configure.ac: New option --with-iconv-bin.
5833 * configure: Regenerate.
5834 * config.in: Regenerate.
5835 * defs.h (relocate_gdb_directory): Declare.
5836 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5837 removed progname parameter, and exported. All callers updated.
5838 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5839
5840 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5841 adding missing call to restore_child_signals_mask.
5842
5843 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5844
5845 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5846 parameter.
5847 * infrun.c (proceed, start_remote): Adjust.
5848 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5849 and adjust to not handle it.
5850 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5851 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5852 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5853 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5854 * windows-nat.c (do_initial_windows_stuff): Adjust.
5855 * infcmd.c (attach_command): Adjust.
5856 (notice_new_inferior): Adjust.
5857
5858 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5859
5860 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5861 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5862 * spu-tdep.c (op_selb): Use correct value.
5863
5864 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5865
5866 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5867 "parent" parameter to symbol_file_add_from_bfd call.
5868
5869 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5870 Thiago Jung Bauermann <bauerman@br.ibm.com>
5871
5872 Implement support for PowerPC BookE masked watchpoints.
5873 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5874 section.
5875 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5876 method. Initialize to NULL in all existing breakpoint_ops instances.
5877 (struct breakpoint) <hw_wp_mask>: New field.
5878 * breakpoint.c (is_masked_watchpoint): Add prototype.
5879 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5880 breakpoint's breakpoint_ops.works_in_software_mode if available.
5881 (watchpoints_triggered): Handle the case of a hardware masked
5882 watchpoint trigger.
5883 (watchpoint_check): Likewise.
5884 (works_in_software_mode_watchpoint): New function.
5885 (insert_masked_watchpoint, remove_masked_watchpoint)
5886 (resources_needed_masked_watchpoint)
5887 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5888 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5889 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5890 functions.
5891 (masked_watchpoint_breakpoint_ops): New structure.
5892 (watch_command_1): Check for the existence of the `mask' parameter.
5893 Set b->ops according to the type of hardware watchpoint being created.
5894 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5895 (ppc_linux_remove_mask_watchpoint)
5896 (ppc_linux_masked_watch_num_registers): New functions.
5897 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5898 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5899 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5900 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5901 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5902 (target_masked_watch_num_registers): New functions.
5903 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5904 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5905 methods.
5906 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5907 (target_masked_watch_num_registers): Add prototypes.
5908
5909 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5910
5911 PR 12573
5912 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5913 (producer_is_gcc_ge_4_0): New function.
5914 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5915 symtab->language code.
5916 (var_decode_location): Set cu->has_loclist.
5917 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5918 skip. Intialize force_skip from locations_valid. Move the prologue
5919 skipping code into two passes.
5920 * symtab.h (struct symtab): Make the primary field a bitfield. New
5921 field locations_valid.
5922
5923 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5924
5925 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5926 (classify_inner_name): Call cp_lookup_nested_type with
5927 yylval.tsym.type.
5928 * cp-namespace.c (cp_lookup_nested_type): New variable
5929 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5930 type_name_no_tag_or_error with saved_parent_type.
5931 * dwarf2read.c (load_partial_dies): Read in any children of
5932 DW_TAG_typedef with complaint in such case.
5933 * gdbtypes.c (type_name_no_tag_or_error): New function.
5934 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5935 * valops.c (destructor_name_p): New comment for parameter type. Remove
5936 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5937 * value.h (destructor_name_p): Remove type const.
5938
5939 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5940
5941 * symtab.c (compare_symbol_name): New function.
5942 (completion_list_add_name, expand_partial_symbol_name): Call it,
5943 remove the variable ncmp.
5944 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5945 gdb_assert it.
5946
5947 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5948
5949 Demote to sw watchpoint only in update_watchpoint.
5950 * breakpoint.c (update_watchpoint): Change between software and
5951 hardware watchpoint for all kinds of watchpoints, not just
5952 read/write ones. Determine b->exact value here instead of
5953 in watch_command_1. Error out if there are not enough resources
5954 for a read or access hardware watchpoint.
5955 (watch_command_1): Remove logic of checking whether there are
5956 enough resources available, since update_watchpoint will do that
5957 work now. Don't set b->exact here. Catch exceptions thrown by
5958 update_watchpoint and delete the watchpoint.
5959 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5960 Use target_exact_watchpoints instead.
5961 (delete_breakpoint): Notify observers only if deleted watchpoint
5962 has a breakpoint number assigned to it.
5963
5964 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5965
5966 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5967
5968 2011-05-05 Jerome Guitton <guitton@adacore.com>
5969
5970 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5971 New functions.
5972 (i386_stack_tramp_frame_unwind): New static global.
5973 (i386_match_pattern): New function, extracted from i386_match_insn.
5974 (i386_match_insn): Use i386_match_pattern.
5975 (i386_match_insn_block): New function.
5976 (i386_tramp_chain_in_reg_insns)
5977 (i386_tramp_chain_on_stack_insns): New static variables.
5978 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5979 of unwinders.
5980
5981 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5982
5983 * configure.host (xscale*): Don't handle target.
5984 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5985 handle targets.
5986
5987 2011-05-04 Yao Qi <yao@codesourcery.com>
5988
5989 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5990
5991 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5992
5993 Revert:
5994 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5995 | * elfread.c (elf_symtab_read): Stop memory leak.
5996
5997 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5998
5999 * nto-tdep.c (nto_target): Replace deprecated call to
6000 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6001
6002 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6003
6004 Fix false GCC warning.
6005 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6006
6007 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6008
6009 * breakpoint.c (update_watchpoint): Move code to change
6010 the enable state of breakpoint from here ...
6011 (do_enable_breakpoint): ... to here.
6012
6013 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6014
6015 * valprint.c (val_print_array_elements): Fixed poor performance
6016 of printing very large arrays with repeat_count_threshold set
6017 to unlimited. New comment.
6018
6019 2011-04-29 Tom Tromey <tromey@redhat.com>
6020
6021 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6022 (mi_parse): Likewise.
6023 * breakpoint.c (break_range_command): Use sizeof char*, not
6024 char**.
6025 (create_breakpoint): Likewise.
6026 (parse_breakpoint_sals): Likewise.
6027
6028 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6029
6030 * linux-nat.c (linux_child_remove_fork_catchpoint)
6031 (linux_child_remove_vfork_catchpoint)
6032 (linux_child_remove_exec_catchpoint): New functions.
6033 (linux_target_install_ops): Install them.
6034
6035 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6036
6037 PR mi/12531
6038
6039 * varobj.c (install_default_visualizer): Do not install a
6040 visualizer if the varobj is CPLUS_FAKE_CHILD.
6041 (construct_visualizer): Likewise.
6042
6043 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6044
6045 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6046 case insensitive comparison.
6047
6048 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6049
6050 * infrun.c (proceed): Revert previous change.
6051 (resume): Instead, handle the case of signal delivery while stepping
6052 off a breakpoint location here, and only if software single-stepping
6053 is used. Handle nested signals.
6054
6055 2011-04-28 Yao Qi <yao@codesourcery.com>
6056
6057 * arm-tdep.c (copy_unmodified): Rename to ...
6058 (arm_copy_unmodified): .. this. New.
6059 (copy_preload): Move common part to ...
6060 (install_preload): .. this. New.
6061 (arm_copy_preload): New.
6062 (copy_preload_reg): Move common part to ...
6063 (install_preload_reg): ... this. New.
6064 (arm_copy_preload_reg): New.
6065 (copy_b_bl_blx): Move common part to ...
6066 (install_b_bl_blx): .. this. New.
6067 (arm_copy_b_bl_blx): New.
6068 (copy_bx_blx_reg): Move common part to ...
6069 (install_bx_blx_reg): ... this. New.
6070 (arm_copy_bx_blx_reg): New.
6071 (copy_alu_reg): Move common part to ...
6072 (install_alu_reg): ... this. New.
6073 (arm_copy_alu_reg): New.
6074 (copy_alu_shifted_reg): Move common part to ...
6075 (install_alu_shifted_reg): ... this. New.
6076 (copy_ldr_str_ldrb_strb): Move common part to ...
6077 (install_ldr_str_ldrb_strb): ... this. New.
6078 (arm_copy_ldr_str_ldrb_strb): New.
6079 (copy_copro_load_store): Move some common part to ...
6080 (install_copy_copro_load_store): ... this. New.
6081 (arm_copy_copro_load_store): New.
6082 (copy_svc): Delete.
6083 (arm_copy_svc): Renamed from copy_svc.
6084 (copy_undef): Delete.
6085 (arm_copy_undef): Renamed from copy_undef.
6086 (decode_ext_reg_ld_st): Delete.
6087 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6088 (decode_svc_copro): Delete.
6089 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6090 (copy_copro_load_store, copy_alu_imm): update callers.
6091 (copy_extra_ld_st, copy_block_xfer): Likewise.
6092 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6093 (decode_miscellaneous, decode_dp_misc): Likewise.
6094 (decode_ld_st_word_ubyte, decode_media): Likewise.
6095 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6096 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6097 (decode_unconditional, decode_miscellaneous): Likewise.
6098 (decode_media, decode_b_bl_ldmstm): Likewise.
6099 (arm_process_displaced_insn): Likewise..
6100 (decode_misc_memhint_neon): Delete.
6101 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6102 (decode_miscellaneous): Delete.
6103 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6104 (decode_dp_misc): Delete.
6105 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6106 (decode_ld_st_word_ubyte): Delete.
6107 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6108 (decode_media): Delete.
6109 (arm_decode_media): Renamed from decode_media.
6110 (decode_b_bl_ldmstm): Delete.
6111 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6112 (decode_ext_reg_ld_st): Delete.
6113 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6114 (decode_unconditional): Delete.
6115 (arm_decode_unconditional): Renamed from decode_unconditional.
6116
6117 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6118
6119 Case insensitive lookups implementation.
6120 * dwarf2read.c: Include ctype.h.
6121 (struct mapped_index): New field version.
6122 (mapped_index_string_hash): New parameter index_version. New comment
6123 for it. Call tolower appropriately.
6124 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6125 Choose the right index version for mapped_index_string_hash.
6126 (dwarf2_read_index): Support also the index version 5. Initialize the
6127 new struct mapped_index field version.
6128 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6129 (find_slot): Explain the version needs. Pass INT_MAX for the new
6130 parameter.
6131 (write_psymtabs_to_index): Produce version 5.
6132 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6133 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6134 * psymtab.c (lookup_partial_symbol): Find the
6135 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6136 entries.
6137 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6138 NAME lowercasing.
6139 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6140 (completion_list_add_name): New variable ncmp, initialize it, use it.
6141 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6142 * utils.c (strcmp_iw): Support case_sensitive_off.
6143 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6144 New function comment part. New variables saved_string1,
6145 saved_string2 and case_pass. Add a proper second pass.
6146
6147 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6148
6149 Replace re_comp/re_exec by regcomp/regexec.
6150 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6151 (search_symbols_name_matches): Use them, use regexec.
6152 (search_symbols): New variable retval_chain, adjust the use of
6153 old_chain against it. Replace re_comp by regcomp. Use the new struct
6154 search_symbols_data fields, use regexec instead of re_exec.
6155
6156 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6157
6158 Format the code for the next patch.
6159 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6160 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6161 New variables c1 and c2.
6162
6163 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6164
6165 * infrun.c (proceed): Do not single-step into signal delivery
6166 when stepping off a breakpoint location.
6167 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6168 (insert_step_resume_breakpoint_at_caller): Likewise.
6169 (insert_step_resume_breakpoint_at_sal): Likewise.
6170 (insert_longjmp_resume_breakpoint): Likewise.
6171
6172 2011-04-27 Yao Qi <yao@codesourcery.com>
6173
6174 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6175
6176 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6177
6178 * procfs.c (procfs_pass_signals): Fix advance declaration.
6179
6180 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6181
6182 * target.h (struct target_ops): Remove to_notice_signals;
6183 add to_pass_signals.
6184 (target_notice_signals): Remove.
6185 (target_pass_signals): Add prototype.
6186 * target.c (update_current_target): Remove to_notice_signals;
6187 mention to_pass_signals.
6188 (target_pass_signals): New function.
6189 (debug_to_notice_signals): Remove.
6190 (setup_target_debug): Do not install debug_to_notice_signals.
6191
6192 * infrun.c (signal_pass): New global.
6193 (resume): Call target_pass_signals.
6194 (handle_inferior_event): Report all signals while stepping over
6195 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6196 are re-inserted when stepping over a signal handler.
6197 (signal_cache_update): New function.
6198 (signal_stop_update): Call it.
6199 (signal_print_update): Likewise.
6200 (signal_pass_update): Likewise.
6201 (handle_command): Call signal_cache_update and target_pass_signals
6202 instead of target_notice_signals.
6203 (_initialize_infrun): Initialize signal_pass.
6204
6205 * linux-nat.c (pass_mask): New global.
6206 (linux_nat_pass_signals): New function.
6207 (linux_nat_create_inferior): Report all signals initially.
6208 (linux_nat_attach): Likewise.
6209 (linux_nat_resume): Use pass_mask to decide whether to directly
6210 handle an inferior signal.
6211 (linux_nat_wait_1): Likewise.
6212 (linux_nat_add_target): Install to_pass_signals callback.
6213
6214 * nto-procfs.c (notice_signals): Remove.
6215 (procfs_resume): Do not call notice_signals.
6216 (procfs_notice_signals): Remove.
6217 (procfs_pass_signals): New function.
6218 (init_procfs_ops): Install to_pass_signals callback instead of
6219 to_notice_signals callback.
6220 (_initialize_procfs): Report all signals initially.
6221
6222 * procfs.c (procfs_notice_signals): Remove.
6223 (procfs_pass_signals): New function.
6224 (procfs_target): Install to_pass_signals callback instead of
6225 to_notice_signals callback.
6226 (register_gdb_signals): Remove.
6227 (procfs_debug_inferior): Report all signals initially.
6228 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6229
6230 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6231 parameters; use them instead of calling signal_..._state routines.
6232 (remote_notice_signals): Remove.
6233 (remote_start_remote): Report all signals initially.
6234 (remote_resume): Do not call remote_pass_signals.
6235 (_initialize_remote): Install to_pass_signals callback instead of
6236 to_notice_signals callback.
6237
6238 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6239
6240 * breakpoint.c (user_settable_breakpoint): Delete.
6241 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6242 (delete_command): Check user_breakpoint_p instead of looking at
6243 the breakpoint's type.
6244 (disable_command): Ditto.
6245 (enable_command): Ditto.
6246 (delete_trace_command): Use user_breakpoint_p instead of looking
6247 at the breakpoint number directly. When checking if there are
6248 user visible tracepoints, in order to know whether to ask the user
6249 for confirmation, check whether the breakpoint is actually a
6250 tracepoint.
6251
6252 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6253
6254 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6255 compilation.
6256
6257 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6258
6259 MI breakpoint notifications.
6260
6261 * annotate.c (breakpoint_changed): Adjust parameter type.
6262 * breakpoint.c (set_breakpoint_condition): Adjust to change
6263 in breakpoint_modified type.
6264 (breakpoint_set_commands): Likewise.
6265 (do_map_commands_command): Likewise.
6266 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6267 changed after bumping hit count.
6268 (bpstat_stop_status): Likewise.
6269 (print_one_breakpoint_location): Don't wrap in tuple here.
6270 (print_one_breakpoint): Always print individual locations.
6271 For locations, use unnamed tuple.
6272 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6273 has changed.
6274 (create_catchpoint, create_syscall_event_catchpoint): Call
6275 breakpoint_created obsever.
6276 (mention): Don't call breakpoint_created observer.
6277 (create_breakpoint_sal): Call breakpoint_created observer.
6278 (create_breakpoint, watch_command_1): Likewise.
6279 (create_ada_exception_breakpoint): Likewise.
6280 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6281 (locations_are_equal): New.
6282 (update_breakpoint_locations): If locations were changed, notify.
6283 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6284 Call breakpoint_modified observer.
6285
6286 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6287 (mi_cmd_break_insert): Don't set observers for modify and delete.
6288 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6289 (mi_breakpoint_created, mi_breakpoint_deleted)
6290 (mi_breakpoint_modified): New.
6291 (mi_interpreter_init): Hook the above.
6292 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6293 while -break-* commands are executing.
6294 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6295 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6296 (mi_redirect): New.
6297 (mi_ui_out_impl): Hook in mi_redirect.
6298 (mi_field_skip): True to the name, skip the field, don't output
6299 a field with an empty value.
6300
6301 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6302 (gdbpy_breakpoint_deleted): Adjust.
6303 * tui/tui-hooks.c (tui_event_create_breakpoint)
6304 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6305
6306 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6307
6308 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6309 (procfs_remove_hw_watchpoint): Likewise.
6310
6311 2011-04-26 Michael Walle <michael@walle.cc>
6312
6313 * remote.c (remote_start_remote): Ack packet after sending the
6314 interrupt sequence.
6315
6316 2011-04-26 Yao Qi <yao@codesourcery.com>
6317
6318 * linux-nat.c: Move common macros to ...
6319 Include linux-ptrace.h.
6320 * common/linux-ptrace.h: ... here. New.
6321
6322 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6323
6324 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6325 !objfile_has_partial_symbols. New comment.
6326 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6327 SYM_READ_PSYMBOLS is not present. Extend the comment.
6328 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6329
6330 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6331
6332 * defs.h (ENUM_BITFIELD): Remove.
6333
6334 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6335 Eli Zaretskii <eliz@gnu.org>
6336
6337 * NEWS: Document the new gdbserver --once option.
6338
6339 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6340
6341 * MAINTAINERS: Update my email address.
6342
6343 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6344
6345 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6346 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6347 function call if __STDC_ISO_10646__ macro is defined.
6348 (intermediate_encoding): New prototype.
6349 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6350 to generate compile time error for unsupported gdb_wchar_t size.
6351 (ENDIAN_SUFFIX): New macro.
6352 (intermediate_encoding): New function.
6353
6354 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6355
6356 * ada-lang.c (struct add_partial_datum): Update the comment for
6357 expand_partial_symbol_name.
6358 (ada_add_partial_symbol_completions): Rename to ...
6359 (ada_expand_partial_symbol_name): ... here, change return type, update
6360 function comment, call symbol_completion_match instead of
6361 symbol_completion_add.
6362 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6363 and ada_expand_partial_symbol_name.
6364 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6365 FILE_MATCHER.
6366 (dw2_map_symbol_names): Remove.
6367 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6368 * psymtab.c (map_symbol_names_psymtab): Remove.
6369 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6370 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6371 order.
6372 (psym_functions): Unlist map_symbol_names_psymtab.
6373 (map_partial_symbol_names): Rename to ...
6374 (expand_partial_symbol_names): ... here, change the FUN type, call
6375 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6376 * psymtab.h (map_partial_symbol_names): Rename to ...
6377 (expand_partial_symbol_names): ... here, change the FUN type.
6378 * symfile.h (struct quick_symbol_functions): Update the description of
6379 expand_symtabs_matching. Remove map_symbol_names.
6380 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6381 (struct add_name_data): Update the comment for
6382 expand_partial_symbol_name.
6383 (add_partial_symbol_name): Rename to ...
6384 (expand_partial_symbol_name): ... here. Replace
6385 completion_list_add_name call by strncmp.
6386 (default_make_symbol_completion_list_break_on): Use now
6387 expand_partial_symbol_names and expand_partial_symbol_name.
6388 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6389
6390 2011-04-20 Tom Tromey <tromey@redhat.com>
6391
6392 * dwarf2read.c (save_gdb_index_command): Replace format
6393 documentation with a pointer to the manual.
6394
6395 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6396
6397 * regcache.c: Include remote.h.
6398 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6399 (regcache_dump): Handle regcache_dump_remote.
6400 (maintenance_print_remote_registers): New function.
6401 (_initialize_regcache): Install "maint print remote-registers"
6402 command.
6403 * remote.c (map_regcache_remote_table): New function, factored out
6404 from ...
6405 (init_remote_state): ... here.
6406 (remote_register_number_and_offset): New.
6407 * remote.h (remote_register_number_and_offset): Declare.
6408
6409 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6410
6411 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6412 null_ptid, assume and allow a NULL address space, instead of
6413 asking the target for the ptid's address space.
6414 * infrun.c (ptid_is_pid): Remove assertion.
6415
6416 2011-04-19 Tom Tromey <tromey@redhat.com>
6417
6418 * windows-tdep.c (windows_xfer_shared_library):
6419 * windows-nat.c (get_module_name, windows_make_so):
6420 * v850-tdep.c (v850_handle_pushm):
6421 * utils.c (null_cleanup, gdb_realpath):
6422 * ui-out.c (get_next_header):
6423 * tracepoint.c (clear_traceframe_info):
6424 * symtab.c (lookup_symtab):
6425 * serial.h (struct serial_ops):
6426 * mipsread.c (read_alphacoff_dynamic_symtab):
6427 * infcmd.c (print_return_value):
6428 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6429 * f-exp.y (parse_number):
6430 * exceptions.c (catch_exceptions):
6431 * dummy-frame.c (dummy_frame_this_id):
6432 * defs.h (struct cleanup):
6433 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6434 * arm-tdep.c (arm_push_dummy_call):
6435 * amd64-tdep.h (amd64_collect_xsave):
6436 * amd64-tdep.c (amd64_collect_xsave):
6437 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6438 * README (typing): Remove duplicate words.
6439 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6440 * infrun.c (siginfo_value_read): Fix typo.
6441 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6442 * top.c (source_line_number): Add comma.
6443
6444 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6445
6446 * thread.c (any_live_thread_of_process): Prioritize threads
6447 that are not executing.
6448 * gdbthread.h (any_live_thread_of_process): Update comment
6449 as per above change.
6450
6451 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6452
6453 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6454 (scan_xcoff_symtab): Likewise.
6455
6456 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6457
6458 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6459 inside if clause.
6460
6461 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6462 Pedro Alves <pedro@codesourcery.com>
6463
6464 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6465 variables to simplify code and avoid == operator at end of
6466 line as this is against GNU coding standards.
6467
6468 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6469
6470 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6471 lm_name to name_lm to avoid conflict with lm_name function.
6472
6473 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6474
6475 ARI fixes: Use only lowercase function name for static functions.
6476 * nto-tdep.c (LM_ADDR): Rename to...
6477 (lm_addr): New function name.
6478 (nto_relocate_section_addresses): Adapt to change above.
6479 * solib-sunos.c (LM_ADDR): Rename to...
6480 (lm_addr): New function name.
6481 (LM_NEXT): Rename to...
6482 (lm_next): New function name.
6483 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6484 function name changes above.
6485 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6486 (lm_addr_from_link_map): New function name.
6487 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6488 (has_lm_dynamic_from_link_map): New function name.
6489 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6490 (lm_dynamic_from_link_map): New function name.
6491 (LM_ADDR_CHECK): Rename to...
6492 (lm_addr_check): New function name.
6493 (LM_NEXT): Rename to...
6494 (lm_next): New function name.
6495 (LM_PREV): Rename to...
6496 (lm_prev): New function name.
6497 (LM_NAME): Rename to...
6498 (lm_name): New function name.
6499 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6500 (ignore_first_link_map_entry): New function name.
6501 (svr4_keep_data_in_core): Adapt to function name changes above.
6502 (svr4_current_sos): Likewise.
6503 (enable_break): Likewise.
6504 (svr4_relocate_section_addresses): Likewise.
6505
6506 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6507
6508 ARI cleanup.
6509 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6510 sprintf. Simplify code and avoid loosing memory.
6511 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6512 (call0_frame_cache): Remove && operator from end of line.
6513
6514 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6515
6516 Fix libraries displacement if they change whether they were prelinked.
6517 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6518 does not match. Comment why.
6519
6520 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6521
6522 * corelow.c: Include wrapper.h.
6523 (core_open): Call now gdb_target_find_new_threads.
6524 * wrapper.c: Include target.h.
6525 (gdb_target_find_new_threads): New.
6526 * wrapper.h (gdb_target_find_new_threads): New declaration.
6527
6528 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6531 even if !TARGET_HAS_EXECUTION.
6532
6533 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6534
6535 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6536 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6537 bfd_get_synthetic_symtab.
6538 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6539 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6540 parameter parent, remove the call to add_separate_debug_objfile.
6541 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6542 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6543 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6544 parent, new comment for it, call add_separate_debug_objfile for it.
6545 (symbol_file_add_separate): Pass objfile as the parameter parent,
6546 remove the call to add_separate_debug_objfile.
6547 (symbol_file_add_from_bfd): New parameter parent, pass it.
6548 (symbol_file_add): Pass NULL to the new parameter parent.
6549 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6550
6551 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6552
6553 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6554 BSF_SYNTHETIC.
6555
6556 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6557
6558 Fix Python access to inlined frames.
6559 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6560 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6561
6562 2011-04-15 Tom Tromey <tromey@redhat.com>
6563
6564 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6565
6566 2011-04-15 Gary Benson <gbenson@redhat.com>
6567
6568 * MAINTAINERS: Add myself to write-after-approval section.
6569
6570 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6571
6572 * remote-sim.c (sim_command_completer): New function.
6573 (_initialize_remote_sim): Set completer to sim_command_completer.
6574
6575 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6576
6577 * breakpoint.c (print_exception_catchpoint): Rename to ...
6578 (print_it_exception_catchpoint): ... this.
6579 (gnu_v3_exception_catchpoint_ops): Update with new name
6580 for print_it_exception_catchpoint.
6581
6582 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6583
6584 * MAINTAINERS: Add myself for write after approval privileges.
6585
6586 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6587
6588 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6589
6590 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6591
6592 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6593
6594 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6595
6596 * breakpoint.c (save_breakpoints): Verify whether
6597 breakpoint_ops.print_recreate is defined before calling it.
6598
6599 2011-04-11 Gary Benson <gbenson@redhat.com>
6600
6601 Fix failure with --enable-maintainer-mode.
6602 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6603
6604 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6605
6606 Code cleanup.
6607 * symtab.c (search_symbols): Reorder the KIND description in the
6608 function comment. Remove the unused 4th element of types, types2,
6609 types3 and types4. New gdb_assert on KIND.
6610 (symtab_symbol_info): Remove the unused 4th element of classnames.
6611 New gdb_assert on KIND.
6612 * symtab.h (enum search_domain): New warning in the enum comment.
6613 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6614 TYPES_DOMAIN.
6615
6616 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6617
6618 Fix crash of gdb save-index on a STABS file.
6619 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6620 PSYMTABS_ADDRMAP.
6621
6622 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6623
6624 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6625 * dwarf2read.c: Include ctype.h.
6626 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6627 functions.
6628 (dwarf2_add_field): Fix new_field->accessibility by calling
6629 dwarf2_default_access_attribute. Restructure setting accessibility
6630 vs. virtuality.
6631 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6632 is_private and is_protected by calling
6633 dwarf2_default_access_attribute.
6634
6635 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6636
6637 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6638 to the initialization.
6639
6640 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6641
6642 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6643 initalization.
6644
6645 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6646
6647 Remove support for old Cygwin 1.5 versions.
6648 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6649 function on old Cygwin version.
6650 * windows-nat.c: Remove cygwin version check and always define
6651 __USEWIDE for Cygwin compilation.
6652
6653 2011-04-07 Yao Qi <yao@codesourcery.com>
6654
6655 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6656 and TO.
6657 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6658 (arm_copy_svc): Remove parameters INSN and TO.
6659 (decode_svc_copro): Update caller.
6660 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6661 from function pointer `copy_svc_os'.
6662
6663 2011-04-07 Yao Qi <yao@codesourcery.com>
6664
6665 * arm-tdep.c (cleanup_branch): Set a correct return address in
6666 LR for ARM and Thumb.
6667
6668 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6669
6670 Code cleanup.
6671 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6672 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6673 in the function comment, a new note on values compatibility.
6674 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6675 * symtab.h (SYMBOL_HASH_NEXT): New.
6676
6677 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6678
6679 * ppc-linux-nat.c (check_condition): Add len output parameter.
6680 Set it based on the memory region referenced in the condition
6681 expression. Update all callers.
6682
6683 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6684
6685 Fix crash regression on systems featuring .gdb_index.
6686 * objfiles.c (free_objfile): Move the
6687 forget_cached_source_info_for_objfile call earlier. Comment it.
6688 Extend the comment for objfile_free_data.
6689
6690 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6691
6692 Fix regression of displaying the debug format.
6693 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6694 subfile.
6695
6696 2011-04-04 Tom Tromey <tromey@redhat.com>
6697
6698 * cli/cli-interp.c (struct captured_execute_command_args):
6699 Remove.
6700 (do_captured_execute_command): Remove.
6701 (safe_execute_command): Use TRY_CATCH.
6702 * cli/cli-script.c (struct wrapped_read_command_file_args):
6703 Remove.
6704 (wrapped_read_command_file): Remove.
6705 (script_from_file): Use TRY_CATCH.
6706 * exceptions.c (catch_exception): Remove.
6707 * exceptions.h (catch_exception): Remove.
6708 (deprecated_throw_reason): Update comment.
6709 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6710 argument to 'context'.
6711 (mi_execute_command): Use TRY_CATCH.
6712 * remote.c (struct start_remote_args): Remove.
6713 (remote_start_remote): Update; change arguments.
6714 (remote_open_1): Use TRY_CATCH.
6715
6716 2011-04-04 Tom Tromey <tromey@redhat.com>
6717
6718 * tracepoint.c (scope_info): Update.
6719 * symtab.c (decode_line_spec): Update.
6720 * python/python.c (gdbpy_decode_line): Update.
6721 * linespec.h (decode_line_1): Update.
6722 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6723 (decode_compound, find_method, symtab_from_filename)
6724 (decode_variable): Likewise.
6725 * cli/cli-cmds.c (edit_command): Update.
6726 (list_command): Update.
6727 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6728 argument.
6729 (create_breakpoint): Update.
6730 (until_break_command): Update.
6731 (addr_string_to_sals): Update.
6732 (decode_line_spec_1): Update.
6733
6734 2011-04-04 Tom Tromey <tromey@redhat.com>
6735
6736 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6737 (do_captured_parse_breakpoint): Remove.
6738 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6739 Use TRY_CATCH directly.
6740
6741 2011-04-04 Tom Tromey <tromey@redhat.com>
6742
6743 * symtab.h (free_symtab): Remove.
6744 (forget_cached_source_info_for_objfile): Declare.
6745 * symmisc.c (free_symtab): Remove.
6746 * source.c (forget_cached_source_info_for_objfile): New function.
6747 (forget_cached_source_info): Use it.
6748 * objfiles.c (free_objfile): Simplify check before calling
6749 clear_current_source_symtab_and_line. Call
6750 forget_cached_source_info_for_objfile.
6751
6752 2011-04-04 Tom Tromey <tromey@redhat.com>
6753
6754 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6755 (new_symtab): Don't set `free_code' on symtab.
6756 (new_linetable): Properly handle size==0.
6757 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6758 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6759 free_func.
6760 * jv-lang.c (struct jv_per_objfile_data): New.
6761 (jv_per_objfile_free): Free the data.
6762 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6763 (get_java_class_symtab): Set the `dict' field on the
6764 jv_per_objfile_data.
6765 (free_class_block): Remove.
6766 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6767 the symtab.
6768
6769 2011-04-04 Tom Tromey <tromey@redhat.com>
6770
6771 * symfile.c (reread_symbols): Update.
6772 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6773 field.
6774 * objfiles.c (allocate_objfile): Update.
6775 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6776 declare.
6777 * cp-namespace.c (lookup_symbol_file): Don't call
6778 lookup_possible_namespace_symbol.
6779 (initialize_namespace_symtab, get_possible_namespace_block)
6780 (free_namespace_block, cp_check_possible_namespace_symbols)
6781 (check_possible_namespace_symbols_loop)
6782 (check_one_possible_namespace_symbol)
6783 (lookup_possible_namespace_symbol): Remove.
6784 (maintenance_cplus_namespace): Replace with notice.
6785 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6786
6787 2011-04-04 Tom Tromey <tromey@redhat.com>
6788
6789 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6790 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6791 * symmisc.c (free_symtab): Don't free debugformat.
6792 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6793 (record_debugformat, record_producer): Document.
6794 * buildsym.c (end_symtab): Don't save debugformat and producer
6795 names on obstack.
6796 (end_symtab): Don't free debugformat and producer fields.
6797 (record_debugformat): Don't call xstrdup.
6798 (record_producer): Likewise.
6799
6800 2011-04-04 Tom Tromey <tromey@redhat.com>
6801
6802 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6803 (source_line_charpos, source_charpos_line): Remove.
6804
6805 2011-04-04 Tom Tromey <tromey@redhat.com>
6806
6807 * symtab.h (domain_enum): Split in two...
6808 (enum search_domain): New.
6809 (search_symbols): Update.
6810 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6811 redundant declarations.
6812 (search_symbols): Change 'kind' argument to search_domain.
6813 Update.
6814 (print_symbol_info): Likewise.
6815 (symtab_symbol_info): Likewise.
6816 * symfile.h (struct quick_symbol_functions)
6817 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6818 <expand_symtabs_matching>: Likewise.
6819 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6820 (expand_symtabs_matching_via_partial): Update.
6821 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6822 (dw2_expand_symtabs_for_function): Update.
6823 * block.h: Moved anonymous enum...
6824 * defs.h (enum block_enum): ... here. Now named.
6825
6826 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6827
6828 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6829 * version.in: Bump version to 7.3.50.20110403-cvs.
6830
6831 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6832
6833 * NEWS: Create a new section for the next release branch.
6834 Rename the section of the current branch, now that it has
6835 been cut.
6836
6837 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6838
6839 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6840 for "fpscr" in target description.
6841
6842 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6843
6844 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6845 initialize it. Delay HASH initialization. Strip the part after open
6846 parenthesis for languages with qualifiers. Call do_cleanups.
6847
6848 2011-04-01 Tom Tromey <tromey@redhat.com>
6849
6850 * utils.c (report_command_stats): Don't print `-' for negative
6851 number.
6852
6853 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6854
6855 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6856 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6857 typedefs.
6858
6859 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6860
6861 * breakpoint.h (bpdisp_text): Add declaration.
6862 * breakpoint.c (bpdisp_text): Make non-static.
6863 * ada-lang.c: #include "mi/mi-common.h".
6864 (print_it_exception): Rewrite to improve GDB/MI output.
6865
6866 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6867
6868 * arm-tdep.h (struct address_space): Add forward declaration.
6869
6870 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6871
6872 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6873 * arm-tdep.c (arm_override_mode): New global.
6874 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6875 execution mode heuristics.
6876 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6877 second single-step breakpoint if needed, using
6878 arm_insert_single_step_breakpoint.
6879 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6880 ARM execution mode, do not call thumb_get_next_pc_raw.
6881 (arm_get_next_pc): Encode execution mode in return value. Call
6882 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6883 (arm_insert_single_step_breakpoint): New function.
6884 (arm_software_single_step): Call it.
6885 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6886 argument to return execution mode of sigreturn target.
6887 (arm_linux_syscall_next_pc): Use it.
6888 (arm_linux_copy_svc): Update call.
6889 (arm_linux_software_single_step): Call
6890 arm_insert_single_step_breakpoint.
6891
6892 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6893
6894 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6895 the comment.
6896
6897 2011-03-31 Tom Tromey <tromey@redhat.com>
6898
6899 * varobj.c (update_dynamic_varobj_children): Properly handle
6900 errors from iterator.
6901
6902 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6903
6904 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6905 struct linkage name twice.
6906
6907 2011-03-31 Tom Tromey <tromey@redhat.com>
6908
6909 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6910 missing ">" to message.
6911
6912 2011-03-31 Tom Tromey <tromey@redhat.com>
6913
6914 * varobj.c (instantiate_pretty_printer): Remove duplicate
6915 'return'.
6916
6917 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6918
6919 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6920 if neither saved value nor register available (e.g. signal frame).
6921
6922 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6923
6924 * macroexp.c (expand): Avoid uninitialized variable
6925 compiler warning.
6926
6927 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6928
6929 * breakpoint.c (break_range_command): Fix typo in comment.
6930
6931 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6932 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6933
6934 Implement support for PowerPC BookE ranged breakpoints.
6935 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6936 * breakpoint.h (struct bp_target_info) <length>: New member
6937 variable.
6938 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6939 instead of struct breakpoint as argument, and also add ASPACE
6940 and BP_ADDR arguments. Update all callers.
6941 (struct breakpoint_ops) <print_one_detail>: New method.
6942 (struct breakpoint) <addr_string_range_end>: New member variable.
6943 * breakpoint.c (breakpoint_location_address_match): Add function
6944 prototype.
6945 (insert_bp_location): Set bl->target_info.length.
6946 (breakpoint_here_p): Call breakpoint_location_address_match.
6947 (moribund_breakpoint_here_p): Likewise.
6948 (regular_breakpoint_inserted_here_p): Likewise.
6949 (breakpoint_thread_match): Likewise.
6950 (bpstat_stop_status): Likewise.
6951 (bpstat_check_location): Move call to
6952 breakpoint_ops.breakpoint_hit to the top.
6953 (print_one_breakpoint_location): Call
6954 breakpoint_ops.print_one_detail if available.
6955 (breakpoint_address_match_range): New function.
6956 (breakpoint_location_address_match): Likewise.
6957 (breakpoint_locations_match): Compare the length field of the
6958 locations too.
6959 (hw_breakpoint_used_count): Count resources used by all locations
6960 in a breakpoint, and use breakpoint_ops.resources_needed if
6961 available.
6962 (breakpoint_hit_ranged_breakpoint): New function.
6963 (resources_needed_ranged_breakpoint): Likewise.
6964 (print_it_ranged_breakpoint): Likewise.
6965 (print_one_ranged_breakpoint): Likewise.
6966 (print_one_detail_ranged_breakpoint): Likewise.
6967 (print_mention_ranged_breakpoint): Likewise.
6968 (print_recreate_ranged_breakpoint): Likewise.
6969 (ranged_breakpoint_ops): New structure.
6970 (find_breakpoint_range_end): New function.
6971 (break_range_command): Likewise.
6972 (delete_breakpoint): Free addr_string_range_end.
6973 (update_breakpoint_locations): Add SALS_END argument. Update
6974 all callers. Calculate breakpoint length if a non-zero SALS_END
6975 is given. Call breakpoint_locations_match instead of
6976 breakpoint_address_match.
6977 (reset_breakpoint): Find SaL of the end of the range if B is a
6978 ranged breakpoint.
6979 (_initialize_breakpoint): Register break-range command.
6980 * defs.h (print_core_address): Add function prototype.
6981 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6982 function.
6983 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6984 (ppc_linux_remove_hw_breakpoint): Likewise.
6985 (_initialize_ppc_linux_nat): Initialize
6986 to_ranged_break_num_registers.
6987 * target.c (update_current_target): Add comment about
6988 to_ranged_break_num_registers.
6989 (target_ranged_break_num_registers): New function.
6990 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6991 New method.
6992 (target_ranged_break_num_registers): Add function prototype.
6993 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6994 * utils.c (print_core_address): ... here.
6995
6996 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6997
6998 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6999 variable compiler warning.
7000
7001 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7002
7003 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7004 code from here ...
7005 (re_set_breakpoint): ... to here ...
7006 (addr_string_to_sals): ... and here.
7007
7008 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7009
7010 * Makefile.in (SFILES): Add missing C sources.
7011 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7012 Add missing headers.
7013
7014 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7015
7016 * .gitignore: New file.
7017
7018 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7019
7020 * NEWS: Mention new cfi device simulation.
7021
7022 2011-03-29 Tom Tromey <tromey@redhat.com>
7023
7024 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7025 otherwise anonymous types.
7026 (dwarf2_name): Likewise.
7027 * valops.c (value_struct_elt_for_reference): Refine artificial
7028 type logic. Call error if j==-1.
7029
7030 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7031
7032 Fix false GCC warning.
7033 * infcall.c (find_function_addr): Initialize funaddr.
7034
7035 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7036
7037 Fix mingw compilation with --enable-targets=all.
7038 * remote-mips.c (gdb_usleep.h): Include header.
7039 (mips_enter_debug): Use gdb_usleep instead of sleep.
7040
7041 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7042
7043 Support resolution of STT_GNU_IFUNC via breakpoints.
7044 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7045 bp_gnu_ifunc_resolver_return.
7046 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7047 the loop. Support bp_gnu_ifunc_resolver and
7048 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7049 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7050 breakpoints.
7051 (bptype_string, print_one_breakpoint_location): Support
7052 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7053 (user_settable_breakpoint): Return true also for
7054 bp_gnu_ifunc_resolver.
7055 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7056 bp_gnu_ifunc_resolver_return.
7057 (set_breakpoint_location_function): New parameter explicit_loc,
7058 describe it. Call find_pc_partial_function_gnu_ifunc with new
7059 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7060 EXPLICIT_LOC is not set.
7061 (set_raw_breakpoint): Set EXPLICIT_LOC for
7062 set_breakpoint_location_function.
7063 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7064 set_breakpoint_location_function.
7065 (mention): Support bp_gnu_ifunc_resolver and
7066 bp_gnu_ifunc_resolver_return.
7067 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7068 set_breakpoint_location_function.
7069 (update_breakpoint_locations): Remove static.
7070 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7071 bp_gnu_ifunc_resolver_return.
7072 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7073 bp_gnu_ifunc_resolver_return.
7074 (update_breakpoint_locations): New declaration.
7075 * elfread.c: Include gdbthread.h and regcache.h.
7076 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7077 functions.
7078 (elf_gnu_ifunc_fns): Install them.
7079 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7080 (stub_gnu_ifunc_resolver_return_stop): New functions.
7081 (stub_gnu_ifunc_fns): Install them.
7082 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7083 and gnu_ifunc_resolver_return_stop.
7084 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7085
7086 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7087
7088 STT_GNU_IFUNC reader implementation.
7089 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7090 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7091 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7092 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7093 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7094 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7095 (elf_gnu_ifunc_resolve_addr): New.
7096 (elf_symfile_read): Call elf_rel_plt_read.
7097 (elf_gnu_ifunc_fns): New.
7098 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7099 Install elf_gnu_ifunc_fns.
7100 * infcall.c (find_function_return_type): New function.
7101 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7102 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7103 (stub_gnu_ifunc_resolve_name): New functions.
7104 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7105 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7106 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7107
7108 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7109
7110 Code cleanup for later STT_GNU_IFUNC support.
7111 * infcall.c (find_function_addr): Remove variable code, use explicit
7112 dereferences for it. Move VALUE_TYPE initialization later.
7113
7114 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7117 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7118 (clear_pc_function_cache): Clear it.
7119 (find_pc_partial_function): Rename to ...
7120 (find_pc_partial_function_gnu_ifunc): ... this function. New
7121 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7122 (find_pc_partial_function): New wrapper for this function.
7123 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7124
7125 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7126
7127 GDB internal type support for STT_GNU_IFUNC.
7128 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7129 (elf_symtab_read): Set mst_text_gnu_ifunc for
7130 BSF_GNU_INDIRECT_FUNCTION.
7131 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7132 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7133 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7134 nodebug_got_plt_symbol.
7135 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7136 (TYPE_GNU_IFUNC): New.
7137 (struct main_type): New field flag_gnu_ifunc.
7138 (struct builtin_type): New field builtin_func_func.
7139 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7140 nodebug_got_plt_symbol.
7141 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7142 (in_gnu_ifunc_stub): New.
7143 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7144 mst_text_gnu_ifunc.
7145 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7146 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7147 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7148 in_gnu_ifunc_stub.
7149 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7150 * symtab.c (search_symbols): Likewise.
7151 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7152 and mst_slot_got_plt.
7153 (in_gnu_ifunc_stub): New declaration.
7154
7155 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7156
7157 Support a ring of related breakpoints.
7158 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7159 other functions, add gdb_assert.
7160 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7161 watchpoint_del_at_next_stop.
7162 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7163 (bpstat_stop_status): Handle ring in related_breakpoint.
7164 (set_raw_breakpoint_without_location): Initialize ring in
7165 related_breakpoint.
7166 (delete_breakpoint): Handle ring in related_breakpoint, use
7167 watchpoint_del_at_next_stop.
7168 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7169
7170 2011-03-28 Tom Tromey <tromey@redhat.com>
7171
7172 PR symtab/12441:
7173 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7174 with `language_minimal'.
7175
7176 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7177
7178 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7179 instead of checking for STT_ARM_TFUNC symbol type.
7180
7181 2011-03-25 Tom Tromey <tromey@redhat.com>
7182
7183 * linespec.c (symbol_found): Restore line-based result for
7184 non-LOC_LABEL symbols.
7185
7186 2011-03-25 Kai Tietz <ktietz@redhat.com>
7187
7188 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7189 instead of strcmp for comparison.
7190 (tui_source_is_displayed): Likewise.
7191 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7192
7193 2011-03-24 Mark Wielaard <mjw@redhat.com>
7194
7195 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7196 complaint.
7197 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7198 (find_partial_die_in_comp_unit): Likewise in comment.
7199 (read_attribute_value): Likewise.
7200 (lookup_die_type): Likewise.
7201 (dwarf_form_name): Likewise.
7202 (dump_die_shallow): Likewise.
7203 (follow_die_ref_or_sig): Likewise.
7204
7205 2011-03-24 Tom Tromey <tromey@redhat.com>
7206
7207 PR breakpoints/11816:
7208 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7209 (decode_compound): Update.
7210 (find_function_symbol): New function.
7211 (decode_dollar): Update.
7212 (decode_label): Add 'function_symbol' parameter. Handle
7213 function-relative labels.
7214 (decode_variable): Update.
7215 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7216 not its line. Set `special_display' and canonical name for
7217 labels.
7218
7219 2011-03-24 Tom Tromey <tromey@redhat.com>
7220
7221 * linespec.h (struct linespec_result) <special_display>: New
7222 field.
7223 * breakpoint.h (struct breakpoint) <display_canonical>: New
7224 field.
7225 * breakpoint.c (print_breakpoint_location): Respect
7226 display_canonical.
7227 (create_breakpoint_sal): Add 'display_canonical' parameter.
7228 (create_breakpoints_sal): Update.
7229 (create_breakpoint): Update.
7230
7231 2011-03-24 Tom Tromey <tromey@redhat.com>
7232
7233 * symtab.c (decode_line_spec): Update.
7234 * linespec.c (build_canonical_line_spec): Change type of
7235 'canonical'.
7236 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7237 (find_method, decode_all_digits, decode_dollar, decode_label)
7238 (symbol_found): Likewise.
7239 (init_linespec_result): New function.
7240 * breakpoint.c (struct captured_parse_breakpoint_args)
7241 <canonical_p>: New field, replaces addr_string_p.
7242 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7243 'addr_string'.
7244 (parse_breakpoint_sals): Likewise.
7245 (do_captured_parse_breakpoint): Update.
7246 (create_breakpoint): Use struct linespec_result.
7247 (until_break_command): Update.
7248 (breakpoint_re_set_one): Update.
7249 (decode_line_spec_1): Update.
7250 * linespec.h (struct linespec_result): New.
7251 (init_linespec_result): Declare.
7252
7253 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7254
7255 * regcache.c (regcache_raw_read): If the target didn't supply a
7256 given raw register, mark it as unavailable.
7257
7258 2011-03-23 Kai Tietz <ktietz@redhat.com>
7259
7260 * breakpoint.c (clear_command): Use filename_cmp
7261 instead of strcmp for comparison.
7262 * buildsym.c (watch_main_source_file_lossage): Likewise.
7263 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7264 checking just for slash.
7265 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7266 strrchr and filename_cmp instead of strcmp for filenames.
7267 (add_old_header_file): Use filename_cmp
7268 instead of strcmp for comparison.
7269 * exec.c (exec_set_section_address): Likewise.
7270 * macrotab.c (macro_lookup_inclusion): Likewise.
7271 (macro_lookup_inclusion): Likewise.
7272 * elfread.c (_initialize_elfread): Likewise.
7273 (elfstab_offset_sections): Likewise.
7274 (elfstab_offset_sections): Use lbasename instead of
7275 strrchr.
7276 * mdebugread.c (parse_partial_symbols): Likewise.
7277 (arse_partial_symbols): Use filename_(n)cmp instead of
7278 str(n)cmp for comparison.
7279 * minsyms.c (lookup_minimal_symbol): Likewise.
7280 * psymtab.c (read_psymtabs_with_filename): Likewise.
7281 * solib.c (solib_read_symbols): Likewise.
7282 (reload_shared_libraries_1): Likewise.
7283 * symmisc.c (maintenance_print_symbols): Likewise.
7284 * symfile.c (separate_debug_file_exists): Likewise.
7285 (reread_symbols): Likewise.
7286 (find_separate_debug_file_by_debuglink): Likewise.
7287 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7288 * source.c (add_path): Likewise.
7289 * symtab.c (filename_seen): Likewise.
7290 (file_matches): Likewise.
7291 (print_symbol_info): Likewise.
7292 (maybe_add_partial_symtab_filename): Likewise.
7293 (make_source_files_completion_list): Likewise.
7294 * xml-syscall.c (init_sysinfo): Likewise.
7295 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7296 IS_DIR_SEPARATOR for checking for trailing path separator.
7297
7298 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7299
7300 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7301 label abort_expression.
7302 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7303 DWARF_VALUE_OPTIMIZED_OUT.
7304
7305 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 Code cleanup.
7308 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7309 to linkage_name. Invert its value. Update the function comment.
7310 (c_type_print_varspec_suffix): Invert it at the caller.
7311 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7312
7313 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7314
7315 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7316 errors when reading the `stop_pc'.
7317 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7318 get_frame_pc.
7319
7320 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7321
7322 * NEWS: Document gdb.Write stream keyword.
7323
7324 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7325
7326 Revert:
7327 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7328 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7329 (dwarf2_add_field): Fix new_field->accessibility for
7330 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7331
7332 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7333
7334 PR python/12183
7335
7336 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7337 other error classes. Do not print stack trace.
7338
7339 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7340
7341 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7342 (dwarf2_add_field): Fix new_field->accessibility for
7343 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7344
7345 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7346
7347 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7348 encountering a load via a non-SP register.
7349
7350 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7351
7352 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7353 field in returned unwinder.
7354
7355 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7356
7357 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7358
7359 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7360
7361 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7362 of xmalloc.
7363
7364 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7365
7366 * frame.c (frame_unwind_register): Throw an error if unwinding the
7367 register failed.
7368 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7369 an unwind stop reason.
7370 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7371 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7372 UNWIND_UNAVAILABLE>: New.
7373 * inline-frame.c (inline_frame_unwind): Install
7374 default_frame_unwind_stop_reason.
7375 * frame-unwind.c: Include "exceptions.h".
7376 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7377 (default_frame_unwind_stop_reason): New.
7378 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7379 (default_frame_unwind_stop_reason): Declare.
7380 (struct frame_unwind) <stop_reason>: New function pointer.
7381
7382 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7383 * dwarf2-frame.c: Include exceptions.h.
7384 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7385 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7386 computing the CFA. If such an error was thrown, set
7387 unavailable_retaddr.
7388 (dwarf2_frame_unwind_stop_reason): New.
7389 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7390 unavailable.
7391 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7392 (dwarf2_signal_frame_unwind): Ditto.
7393
7394 * amd64-tdep.c: Include "exceptions.h".
7395 (struct amd64_frame_cache): New field "base_p".
7396 (amd64_init_frame_cache): Clear it.
7397 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7398 Avoid reading registers with functions that throw if the register
7399 is not necessary to compute the frame base.
7400 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7401 swallowing NOT_AVAILABLE_ERROR.
7402 (amd64_frame_unwind_stop_reason): New.
7403 (amd64_frame_this_id): Don't build a frame id if the frame base
7404 was unavailable.
7405 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7406 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7407 base_p if the frame base was computable.
7408 (amd64_sigtramp_frame_unwind_stop_reason): New.
7409 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7410 frame base was unavailable.
7411 (amd64_sigtramp_frame_unwind): Install
7412 amd64_sigtramp_frame_unwind_stop_reason.
7413 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7414 base_p if the frame base was computable.
7415 (amd64_epilogue_frame_unwind_stop_reason): New.
7416 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7417 frame base was unavailable.
7418 (amd64_epilogue_frame_unwind): Install
7419 amd64_epilogue_frame_unwind_stop_reason.
7420 * i386-tdep.c: Include "exceptions.h".
7421 (struct i386_frame_cache): New field "base_p".
7422 (i386_init_frame_cache): Clear it.
7423 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7424 Avoid reading registers with functions that throw if the register
7425 is not necessary to compute the frame base.
7426 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7427 swallowing NOT_AVAILABLE_ERROR.
7428 (i386_frame_unwind_stop_reason): New.
7429 (i386_frame_this_id): Don't build a frame id if the frame base was
7430 unavailable.
7431 (i386_frame_prev_register): Handle unavailable SP.
7432 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7433 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7434 base_p if the frame base was computable.
7435 (i386_epilogue_frame_unwind_stop_reason): New.
7436 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7437 base was unavailable.
7438 (i386_epilogue_frame_unwind): Install
7439 i386_epilogue_frame_unwind_stop_reason.
7440 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7441 base_p if the frame base was computable.
7442 (i386_sigtramp_frame_unwind_stop_reason): New.
7443 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7444 base was unavailable.
7445 (i386_sigtramp_frame_unwind): Install
7446 i386_sigtramp_frame_unwind_stop_reason.
7447 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7448 type's size, not the register's.
7449 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7450
7451 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7452 default_frame_unwind_stop_reason.
7453 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7454 (alpha_heuristic_frame_unwind): Ditto.
7455 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7456 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7457 * avr-tdep.c (avr_frame_unwind): Ditto.
7458 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7459 Ditto.
7460 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7461 * frv-tdep.c (frv_frame_unwind): Ditto.
7462 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7463 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7464 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7465 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7466 (hppa_stub_frame_unwind): Ditto.
7467 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7468 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7469 (ia64_libunwind_frame_unwind)
7470 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7471 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7472 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7473 * m32c-tdep.c (m32c_unwind): Ditto.
7474 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7475 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7476 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7477 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7478 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7479 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7480 * mep-tdep.c (mep_frame_unwind): Ditto.
7481 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7482 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7483 (mips_stub_frame_unwind): Ditto.
7484 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7485 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7486 * mt-tdep.c (mt_frame_unwind): Ditto.
7487 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7488 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7489 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7490 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7491 (s390_sigtramp_frame_unwind): Ditto.
7492 * score-tdep.c (score_prologue_unwind): Ditto.
7493 * sh-tdep.c (sh_frame_unwind): Ditto.
7494 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7495 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7496 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7497 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7498 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7499 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7500 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7501 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7502 (sparc64obsd_trapframe_unwind): Ditto.
7503 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7504 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7505 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7506 * v850-tdep.c (v850_frame_unwind): Ditto.
7507 * vax-tdep.c (vax_frame_unwind): Ditto.
7508 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7509 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7510 * xtensa-tdep.c (xtensa_unwind): Ditto.
7511
7512 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7513
7514 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7515 there's always a frame. Use get_frame_pc_if_available instead of
7516 get_frame_pc, and if there's no PC available, don't look up a
7517 symtab.
7518
7519 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7520
7521 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7522 unavailable PC.
7523
7524 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7525
7526 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7527 gracefully.
7528
7529 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7530
7531 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7532 * frame.c (frame_unwind_caller_pc_if_available): New.
7533 * stack.c (frame_info): Handle unavailable PC.
7534
7535 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7536
7537 * frame.c (frame_unwind_pc): Rename to ...
7538 (frame_unwind_pc_if_available): ... this. New `pc' output
7539 parameter. Change return type to int. Gracefully handle
7540 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7541 happened, or 1 otherwise.
7542 (frame_unwind_pc): Reimplement on top of
7543 frame_unwind_pc_if_available.
7544 (get_frame_func): Rename to ...
7545 (get_frame_func_if_available): New `pc' output parameter. Change
7546 return type to int. Gracefully handle the PC not being available.
7547 (get_frame_func): Reimplement on top of
7548 get_frame_func_if_available.
7549 (select_frame): Handle the PC being unavailable.
7550 (get_prev_frame): Handle the PC being unavailable.
7551 (get_frame_pc_if_available): New.
7552 (get_frame_address_in_block_if_available): New.
7553 (find_frame_sal): Handle the frame PC not being available.
7554 * frame.h (get_frame_pc_if_available): Declare.
7555 (get_frame_address_in_block_if_available): Declare.
7556 (get_frame_func_if_available): Declare.
7557 * stack.c (print_frame_info): Handle the PC being unavailable.
7558 (find_frame_funname): Ditto.
7559 (print_frame): Handle the PC being unavailable.
7560 (get_frame_language): Ditto.
7561 * blockframe.c (get_frame_block): Ditto.
7562 * macroscope.c (default_macro_scope): Ditto.
7563 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7564
7565 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7566
7567 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7568 NOT_AVAILABLE_ERROR when evaluating the location expression.
7569
7570 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7571
7572 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7573 returning that the register piece is unavailable/optimized out.
7574 (write_pieced_value): Handle get_frame_register_bytes returning
7575 that the register piece is unavailable/optimized out when doing a
7576 read-modify write of a bitfield.
7577 * findvar.c (value_from_register): Handle get_frame_register_bytes
7578 returning that the register piece is unavailable/optimized out.
7579 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7580 and `unavailablep'. Throw error on bad debug info. Use
7581 frame_register instead of frame_register_read, to fill in the new
7582 arguments.
7583 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7584 and `unavailablep'.
7585 * valops.c: (value_assign): Adjust, and handle
7586 get_frame_register_bytes failing.
7587 * spu-tdep.c: Include exceptions.h.
7588 (spu_software_single_step): Adjust, and handle
7589 get_frame_register_bytes failing.
7590 (spu_get_longjmp_target): Ditto.
7591 * gdbarch.sh (register_to_value): Change to return int. New
7592 parameters `optimizedp' and `unavailablep'.
7593 * gdbarch.h, gdbarch.c: Regenerate.
7594 * i386-tdep.c (i386_register_to_value): Adjust to new
7595 gdbarch_register_to_value interface.
7596 * i387-tdep.c (i387_register_to_value): Ditto.
7597 * i387-tdep.h (i387_register_to_value): Ditto.
7598 * alpha-tdep.c (alpha_register_to_value): Ditto.
7599 * ia64-tdep.c (ia64_register_to_value): Ditto.
7600 * m68k-tdep.c (m68k_register_to_value): Ditto.
7601 * mips-tdep.c (mips_register_to_value): Ditto.
7602 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7603
7604 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7605
7606 * findvar.c (value_of_register): Mark the value as unavailable, if
7607 the register is unavailable.
7608 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7609 (frame_register): New `unavailablep' parameter.
7610 (frame_register_read): Update comment.
7611 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7612 Set it if the register is unavailable. If the register is
7613 unavailable, clear the output buffer.
7614 (frame_register): New `unavailablep' parameter. Pass it down.
7615 (frame_unwind_register): Adjust.
7616 (put_frame_register): Adjust.
7617 (frame_register_read): Adjust. Also return false if the register
7618 is not available.
7619 (frame_register_unwind_location): Adjust.
7620 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7621 is unavailable, mark the value accordingly.
7622 * stack.c (frame_info): Handle unavailable registers.
7623
7624 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7625
7626 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7627 simplify, using regcache_cooked_read.
7628
7629 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7630
7631 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7632 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7633 (regcache_raw_read_unsigned, regcache_raw_read_part)
7634 (regcache_cooked_read, regcache_cooked_read_signed)
7635 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7636 (regcache_cooked_read_ftype): Change return to enum
7637 register_status.
7638 * regcache.c: Include exceptions.h
7639 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7640 (do_cooked_read): Change return to enum register_status. Always
7641 forward to regcache_cooked_read.
7642 (regcache_raw_read): Change return to enum register_status. If
7643 the register is not REG_VALID, memset the buffer. Return the
7644 register's status.
7645 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7646 return the register's status.
7647 (regcache_raw_read_unsigned): Ditto.
7648 (regcache_cooked_read): Change return to enum register_status.
7649 Assert that with read-only regcaches, the register's status must
7650 be known. If the regcache is read-only, and the register is not
7651 REG_VALID, memset the buffer. Return the register's status.
7652 (regcache_cooked_read_signed): Change return to enum
7653 register_status. Handle non-REG_VALID registers and return the
7654 register's status.
7655 (regcache_cooked_read_unsigned): Change return to enum
7656 register_status. Handle non-REG_VALID registers and return the
7657 register's status.
7658 (regcache_xfer_part, regcache_raw_read_part)
7659 (regcache_cooked_read_part): Change return to enum
7660 register_status. Return the register's status.
7661 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7662 unavailable.
7663 (regcache_dump): Handle unavailable cooked registers.
7664 * frame.c (do_frame_register_read): Adjust interface to match
7665 regcache_cooked_read_ftype.
7666 * gdbarch.sh (pseudo_register_read): Change return to enum
7667 register_status.
7668 * gdbarch.h, gdbarch.c: Regenerate.
7669
7670 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7671 register_status.
7672 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7673 register_status. If reading a raw register indicates the raw
7674 register is not valid, return the raw register's status,
7675 otherwise, return REG_VALID.
7676 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7677 register_status. Handle non-REG_VALID raw registers and return
7678 the register's status.
7679 * arm-tdep.c (arm_neon_quad_read)
7680 (arm_pseudo_read): Change return to enum register_status. Handle
7681 non-REG_VALID raw registers and return the register's status.
7682 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7683 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7684 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7685 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7686 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7687 register_status.
7688 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7689 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7690 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7691 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7692 (m32c_pseudo_register_read): Change return to enum
7693 register_status. Adjust.
7694 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7695 enum register_status. Return the register's status.
7696 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7697 register_status. Return the register's status.
7698 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7699 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7700 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7701 * rs6000-tdep.c (move_ev_register_func): New typedef.
7702 (e500_move_ev_register): Use it. Change return to enum
7703 register_status. Return the register's status.
7704 (do_regcache_raw_read): New function.
7705 (do_regcache_raw_write): New function.
7706 (e500_pseudo_register_read): Change return to enum
7707 register_status. Return the register's status. Use
7708 do_regcache_raw_read.
7709 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7710 (dfp_pseudo_register_read): Change return to enum register_status.
7711 Return the register's status.
7712 (vsx_pseudo_register_read): Ditto.
7713 (efpr_pseudo_register_read): Ditto.
7714 (rs6000_pseudo_register_read): Ditto.
7715 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7716 register_status. Return the register's status.
7717 * sh64-tdep.c (pseudo_register_read_portions): New function.
7718 (sh64_pseudo_register_read): Change return to enum
7719 register_status. Use pseudo_register_read_portions. Return the
7720 register's status.
7721 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7722 register_status. Return the register's status.
7723 * sh-tdep.c (pseudo_register_read_portions): New function.
7724 (sh_pseudo_register_read): Change return to enum register_status.
7725 Use pseudo_register_read_portions. Return the register's status.
7726 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7727 enum register_status. Return the register's status.
7728 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7729 * spu-tdep.c (spu_pseudo_register_read_spu)
7730 (spu_pseudo_register_read): Ditto.
7731 * xtensa-tdep.c (xtensa_register_read_masked)
7732 (xtensa_pseudo_register_read): Ditto.
7733 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7734
7735 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7736
7737 * python/py-value.c (valpy_getitem): Fix formatting of error function
7738 call.
7739
7740 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7741
7742 ARI fixes: Add missing internationalization markups throughout
7743 C source files.
7744 * darwin-nat-info.c: Ditto.
7745 * record.c: Ditto.
7746 * remote.c: Ditto.
7747 * mi/mi-main.c: Ditto.
7748
7749 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7750
7751 ARI fixes: Add missing internationalization markups throughout
7752 yacc files.
7753 * c-exp.y: Ditto.
7754 * cp-name-parser.y: Ditto.
7755 * f-exp.y: Ditto.
7756 * m2-exp.y: Ditto.
7757 * objc-exp.y: Ditto.
7758 * p-exp.y: Ditto.
7759
7760 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7761
7762 ARI fixes: Messages should have no trailing new lines.
7763 * darwin-nat.c (mach_check_error): Remove trailing new line from
7764 warning function call message.
7765 * record.c (bfdcore_read): Idem for error call.
7766
7767 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7768
7769 * common/signals.c (target_signal_from_host): Add _ markup to error
7770 function call message.
7771 (target_signal_to_host): Add _ markup and remove trailing new line
7772 from warning call message.
7773 (target_signal_from_command): Add _ markup to error function call
7774 message.
7775
7776 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7777
7778 PR python/12149
7779
7780 * python/python.c (gdbpy_write): Accept a stream argument and
7781 operate to the appropriate stream.
7782 (gdbpy_flush): Likewise.
7783 (_initialize_python): Add stream constants.
7784 (finish_python_initialization): Add GdbOutputErrorFile class.
7785
7786 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7787
7788 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7789
7790 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7791
7792 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7793 to store_signed_integer. Add debug message when relocating CALL
7794 instructions. Fix formatting of debug message.
7795 * i386-tdep.c (i386_relocate_instruction): Ditto.
7796
7797 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7798
7799 * target.h (struct target_ops): Remove to_lookup_symbol field.
7800 (target_lookup_symbol): Delete macro.
7801 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7802 (update_current_target, setup_target_debug): Remove handling
7803 of to_lookup_symbol target_ops field.
7804 * ada-tasks.c (get_known_tasks_addr): Remove use of
7805 target_lookup_symbol.
7806 * coffread.c (coff_symtab_read): Likewise.
7807 * dbxread.c (read_dbx_symtab): Ditto.
7808
7809 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7810
7811 PR gdb/12116:
7812 * configure.ac: Add getthrds declaration check.
7813 * configure, config.in: Regenerate.
7814 * aix-thread.c (getthrds): Declare only if not already declared
7815 in procinfo.h. More declaration out of get_signaled_thread to
7816 global scope.
7817
7818 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7819
7820 * python/py-symtab.c: Populate symtab_object_methods,
7821 sal_object_methods.
7822 (stpy_is_valid): New function.
7823 (salpy_is_valid): Ditto.
7824 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7825 (sympy_is_valid): New function.
7826 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7827 (objfpy_is_valid): New function.
7828 * python/py-inferior.c: Populate inferior_object_methods.
7829 (infpy_is_valid): New function.
7830 * python/py-infthread.c: Populate thread_object_methods.
7831 (thpy_is_valid): New function.
7832 * python/py-block.c: Declare block_object_methods. Populate. Declare
7833 block_iterator_object_methods. Populate.
7834 (blpy_is_valid): New function.
7835 (blpy_iter_is_valid): Ditto.
7836
7837 2011-03-16 Keith Seitz <keiths@redhat.com>
7838
7839 * linespec.c (find_methods): Canonicalize NAME before looking
7840 up the symbol.
7841 (name_end): New function.
7842 (keep_name_info): New function.
7843 (decode_line_1): Use keep_name_info.
7844 (decode_compound): Likewise.
7845 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7846 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7847
7848 PR c++/12273
7849 * linespec.c (locate_first_half): Keep overload information, too.
7850 (decode_compound): Use a string to represent break characters
7851 to escape the loop.
7852 If P points to a break character, do not increment it.
7853 For C++ and Java, keep overload information and relevant keywords.
7854 If we cannot find a symbol, search the minimal symbols.
7855
7856 PR c++/11734
7857 * linespec.c (decode_compound): Rename SAVED_ARG to
7858 THE_REAL_SAVED_ARG.
7859 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7860 single-quotes.
7861 Pass a valid block to lookup_symbol.
7862 (lookup_prefix_sym): Likewise.
7863 (find_method): Construct search name based on SYM_CLASS instead
7864 of SAVED_ARG.
7865 * psymtab.c (lookup_partial_symbol): Add language parameter.
7866 (lookup_symbol_aux_psymtabs): Likewise.
7867 Don't assume that the psymtab we found was the right one. Search
7868 for the desired symbol in the symtab to be certain.
7869 (psymtab_search_name): New function.
7870 (lookup_partial_symbol): Use psymtab_search_name.
7871 Add language parameter.
7872 (read_symtabs_for_function): Add language parameter and pass to
7873 lookup_partial_symbol.
7874 (find_symbol_file_from_partial): Likewise.
7875
7876 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7877
7878 PR gdb/12528
7879 * dwarf2read.c (noop_record_line): New function.
7880 (dwarf_decode_lines): Ignore line tables for GCd functions.
7881
7882 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7883
7884 Fix ARI warnings about new lines at the end of messages, which
7885 are unneeded as there is a new line added at the end of the message
7886 automatically.
7887 * darwin-nat.c (darwin_stop_inferior): Ditto.
7888 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7889 * dfp.c (decimal_to_number): Ditto.
7890 * exec.c (print_section_info): Ditto.
7891 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7892 * osdata.c (get_osdata): Ditto.
7893 * record.c (bfdcore_write): Ditto.
7894 * remote-mips.c (mips_readchar): Ditto.
7895 * remote.c (read_ptid): Ditto.
7896 * ser-mingw.c (ser_windows_raw): Ditto.
7897 * tracepoint.c (add_local_symbols): Ditto.
7898 * windows-nat.c (fake_create_process): Ditto.
7899
7900 2011-03-16 Tom Tromey <tromey@redhat.com>
7901
7902 * tracepoint.c (stop_tracing): Don't declare.
7903 * event-top.c (after_char_processing_hook): Add `(void)'.
7904
7905 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7906
7907 * NEWS: Add Parameter sub-classing description.
7908
7909 2011-03-16 Kai Tietz <ktietz@redhat.com>
7910
7911 * MAINTAINERS: Update my e-mail address.
7912
7913 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7914
7915 * MAINTAINERS: Add myself for write after approval privileges.
7916
7917 2011-03-15 Michael Snyder <msnyder@vmware.com>
7918
7919 * frame.c (find_frame_sal): Assert sym is not null.
7920
7921 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7922
7923 * objc-lang.c (selectors_info): Check strchr for null result.
7924
7925 * stabsread.c (define_symbol): Guard against bad stabstring input.
7926
7927 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7928
7929 Remove trailing spaces and tabulations from pascal language
7930 support sources.
7931 p-exp.y: Ditto.
7932 p-lang.c: Ditto.
7933 p-lang.h: Ditto.
7934 p-valprint.c: Ditto.
7935
7936 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7939 than LOW. Comment it.
7940 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7941 HIGHPC not strictly higher than LOWPC.
7942
7943 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7944
7945 Fix formatting of function declarations returning a pointer in
7946 previous commit.
7947 * varobj.c (varobj_add_child): Ditto.
7948 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7949 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7950
7951 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7952
7953 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7954 for the "generic" vector ABI used with GCC 4.3 and later.
7955 (ppc64_sysv_abi_return_value): Likewise.
7956
7957 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7958
7959 * infcall.c (call_function_by_hand): Function return value is
7960 always a non_lval, even when using struct_return.
7961
7962 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7963
7964 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7965 (map_display_numbers): New.
7966 (do_delete_display): New.
7967 (undisplay_command): Use map_display_numbers.
7968 (do_enable_disable_display): New.
7969 (enable_disable_display_command): New function.
7970 (enable_display): Delete.
7971 (enable_display_command): New.
7972 (disable_display_command): Reimplement.
7973 (_initialize_printcmd): Adjust "enable display" command to use
7974 `enable_display_command' as callback.
7975
7976 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7977
7978 * NEWS: Add Python breakpoint 'stop' operation.
7979
7980 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7981
7982 * NEWS: Delete duplicate entry. Fix typo.
7983
7984 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7985
7986 Fix ARI warning about function names in first column.
7987 Put prototype declaration on same line as return type.
7988 * objc-exp.y: Ditto.
7989 * p-exp.y: Ditto.
7990 * python/py-stopevent.h: Ditto.
7991 For long function names, split parameters to
7992 allow function name on same line as return type.
7993 * solib-pa64.c: Ditto.
7994 * varobj.c: Ditto.
7995 * varobj.h: Ditto.
7996 For long function declaration, use single line.
7997 * hppa-tdep.h: Ditto.
7998 * inferior.h: Ditto.
7999
8000 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8001
8002 * python/python.h: Declare gdbpy_should_stop and
8003 gdbpy_breakpoint_has_py_cond.
8004 * python/python.c: Add python.h to includes. Remove python.h from
8005 HAVE_PYTHON definition
8006 (gdbpy_should_stop): New dummy function.
8007 (gdbpy_breakpoint_has_py_cond): New dummy function.
8008 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8009 sub-classing capabilities.
8010 (gdbpy_should_stop): New function.
8011 (gdbpy_breakpoint_has_py_cond): New function.
8012 (local_setattro): New function.
8013 * breakpoint.c (condition_command): Add check for Python 'stop'
8014 operation.
8015 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8016 operation function as part of stop/continue tests.
8017
8018 2011-03-14 Tom Tromey <tromey@redhat.com>
8019
8020 PR gdb/12576:
8021 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8022 (needs_frame_dwarf_call): Likewise.
8023
8024 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8025
8026 Fix ARI warning about functions without parameters that do not
8027 use (void).
8028 * breakpoint.c (all_tracepoints): Replace () by (void).
8029 * f-exp.y (match_string_literal): Ditto.
8030 (yylex): Ditto.
8031 * m2-exp.y (yylex): Ditto.
8032 * mep-tdep.c (current_me_module): Ditto.
8033 (current_options): Ditto.
8034 (current_cop_data_bus_width): Ditto.
8035 (current_cr_names): Ditto.
8036 (current_cr_is_float): Ditto.
8037 (current_ccr_names): Ditto.
8038 * objc-exp.y (yylex): Ditto.
8039 * p-exp.y (yylex): Ditto.
8040 * remote.c (send_interrupt_sequence): Ditto.
8041 * tracepoint.c (current_trace_status): Ditto.
8042 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8043 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8044
8045 2011-03-11 Michael Snyder <msnyder@vmware.com>
8046
8047 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8048 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8049 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8050 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8051 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8052
8053 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8054 (delete_async_event_handler): Ditto.
8055
8056 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8057
8058 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8059
8060 * top.c (set_verbose): Assert showcmd was found.
8061
8062 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8063
8064 * xtensa-tdep.c (warning_once): Correct style issues.
8065
8066 2011-03-11 Yao Qi <yao@codesourcery.com>
8067
8068 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8069
8070 2011-03-11 Andreas Schwab <schwab@redhat.com>
8071
8072 * common/aclocal.m4: Remove.
8073
8074 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8075
8076 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8077 (xtensa_write_register, xtensa_read_register): Likewise.
8078 (xtensa_hextochar): Removed.
8079 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8080
8081 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8082
8083 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8084 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8085 (xtensa_alloc_frame_cache): Add initialization for new fields.
8086 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8087 (warning_once): New function.
8088 (xtensa_insn_kind): New item c0opc_and.
8089 (call0_classify_opcode): Add the case for AND instruction.
8090 (call0_track_op): Change arguments. New local variable litbase.
8091 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8092 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8093 in the prologue.
8094 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8095 (call0_analyze_prologue): Update the comments. Change arguments.
8096 Add the variety of updates to handle extended prologues, which now can
8097 conduct dynamic stack adjustments.
8098 (call0_frame_cache): Likewise.
8099 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8100 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8101
8102 2011-03-10 Michael Snyder <msnyder@vmware.com>
8103
8104 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8105 (cmd_qtframe): Ditto.
8106 (cmd_qtbuffer): Ditto.
8107 (cmd_bigqtbuffer): Ditto.
8108
8109 2011-03-10 Tom Tromey <tromey@redhat.com>
8110
8111 * tracepoint.c (trace_actions_command): Update.
8112 * thread.c (thread_apply_command): Update.
8113 * reverse.c (delete_bookmark_command): Update.
8114 (bookmarks_info): Update.
8115 * printcmd.c (undisplay_command): Update.
8116 * memattr.c (mem_enable_command): Update.
8117 (mem_disable_command): Update.
8118 (mem_delete_command): Update.
8119 * inferior.c (detach_inferior_command): Update.
8120 (kill_inferior_command): Update.
8121 (remove_inferior_command): Update.
8122 * cli/cli-utils.h (struct get_number_or_range_state): New.
8123 (init_number_or_range): Declare.
8124 (get_number_or_range): Update.
8125 * cli/cli-utils.c (init_number_or_range): New function.
8126 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8127 static variables.
8128 (number_is_in_list): Update.
8129 * breakpoint.h (get_tracepoint_by_number): Update.
8130 * breakpoint.c (map_breakpoint_numbers): Update for change to
8131 get_number_or_range.
8132 (find_location_by_number): Use get_number, not
8133 get_number_or_range.
8134 (trace_pass_set_count): New function.
8135 (trace_pass_command): Update for change to get_number_or_range.
8136 Rework loop logic.
8137 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8138 'state' parameter.
8139
8140 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8141
8142 * python/py-param.c (add_setshow_generic): Add set/show callback
8143 parameters. Register Python object context.
8144 (get_show_value): New function.
8145 (get_set_value): New function.
8146 (call_doc_function): New function.
8147 (get_doc_string): Move behind get_show_value/get_set_value.
8148
8149 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8150
8151 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8152
8153 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8154
8155 * xtensa-tdep.c (xtensa_read_register): Add comment.
8156 (xtensa_write_register): Likewise.
8157 (xtensa_hextochar): Add comment and update to match coding conventions.
8158 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8159 (execute_l32e, execute_s32e, execute_code): Update comments.
8160 (xtensa_exception_handler_t): Update to match coding conventions.
8161 (xtensa_insn_kind): Likewise.
8162
8163 2011-03-09 Michael Snyder <msnyder@vmware.com>
8164
8165 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8166
8167 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8168
8169 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8170
8171 2011-03-09 Tom Tromey <tromey@redhat.com>
8172
8173 * thread.c (restore_selected_frame): Handle frame_level == -1.
8174 (make_cleanup_restore_current_thread): Use
8175 get_selected_frame_if_set.
8176 * frame.h (get_selected_frame_if_set): Declare.
8177 * frame.c (get_selected_frame_if_set): New function.
8178
8179 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8180
8181 * cli/cli-cmds.c (shell_escape): Use lbasename.
8182 * coffread.c (coff_start_symtab): Constify parameter.
8183 (complete_symtab): Constify `name' parameter.
8184 (coff_symtab_read): Constify `filestring' local.
8185 (coff_getfilename): Constify return and `result' local.
8186 Use lbasename.
8187 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8188 * linux-fork.c (info_checkpoints_command): Use lbasename.
8189 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8190 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8191 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8192 * procfs.c (procfs_make_note_section): Use lbasename.
8193 * tui/tui-io.c (printable_part): Constity return and parameter.
8194 Use lbasename.
8195 (print_filename): Constify parameters, and local `s'.
8196 (tui_rl_display_match_list): Constify local `temp'.
8197
8198 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8199
8200 Revert:
8201 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8202 Fix DWARF-3+ DW_AT_accessibility default assumption.
8203 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8204 cu->header.version >= 3.
8205
8206 2011-03-09 Yao Qi <yao@codesourcery.com>
8207
8208 * common/Makefile.in: Remove.
8209 * common/configure: Remove.
8210 * common/configure.ac: Remove.
8211
8212 2011-03-09 Yao Qi <yao@codesourcery.com>
8213
8214 Revert:
8215 2011-02-11 Yao Qi <yao@codesourcery.com>
8216
8217 * common/Makefile.in: Add copyright header.
8218
8219 2011-02-11 Yao Qi <yao@codesourcery.com>
8220
8221 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8222 libcommon.a.
8223 * configure.ac: Add common to sub dir.
8224 * configure: Regenerate.
8225
8226 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8227
8228 * xtensa-tdep.c (call0_ret): New function.
8229 (xtensa_skip_prologue): Speed up analysis.
8230
8231 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8232
8233 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8234 while executing MI command -data-list-changed-registers.
8235
8236 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8237
8238 * xtensa-tdep.c (xtensa_read_register): New function.
8239 (xtensa_write_register): New function.
8240 (xtensa_find_register_by_name): New function.
8241 (xtensa_windowed_frame_cache): Update comments in type description.
8242 (xtensa_frame_cache): Likewise.
8243 (xtensa_window_interrupt_insn): New function.
8244 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8245 (xtensa_insn_kind): Add new instructions.
8246 (rwx_special_register): New function.
8247 (call0_classify_opcode): Add new instructions to the analysis.
8248 (a0_saved, a7_saved, a11_saved): New variables.
8249 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8250 (execute_l32e): New function.
8251 (execute_s32e): New function.
8252 (xtensa_exception_handler_t): New type.
8253 (execute_code): New function.
8254 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8255 analysis for Xtensa Window Exception handlers.
8256
8257 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8258
8259 * xtensa-tdep.c (TX_PS): New.
8260 (windowing_enabled): Update to count for Call0 ABI.
8261 (xtensa_hextochar): New.
8262 (xtensa_init_reggroups): Make algorithm generic.
8263 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8264
8265 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8266
8267 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8268
8269 2011-03-08 Michael Snyder <msnyder@vmware.com>
8270
8271 * i386-tdep.c (i386_follow_jump): Check return value of
8272 target_read_memory.
8273 (i386_analyze_struct_return): Ditto.
8274 (i386_skip_probe): Ditto.
8275 (i386_match_insn): Ditto.
8276 (i386_skip_noop): Ditto.
8277 (i386_analyze_frame_setup): Ditto.
8278 (i386_analyze_register_saves): Ditto.
8279 (i386_skip_prologue): Ditto.
8280 (i386_skip_main_prologue): Ditto.
8281
8282 * target.c (read_whatever_is_readable): Fix memory leak.
8283
8284 * i386-tdep.c (i386_process_record): Document fall through.
8285
8286 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8287
8288 Fix DWARF-3+ DW_AT_accessibility default assumption.
8289 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8290 cu->header.version >= 3.
8291
8292 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8293
8294 * remote.c (remote_check_symbols): Skip if the target has no
8295 execution.
8296
8297 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8298
8299 * target.c (read_whatever_is_readable): Reformat comment,
8300 with a minor typo fix. Minor reformatting of the code.
8301
8302 2011-03-08 Yao Qi <yao@codesourcery.com>
8303
8304 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8305 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8306 Use cached result instead of calling displaced_in_arm_mode again.
8307 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8308 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8309 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8310 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8311 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8312 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8313 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8314 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8315 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8316 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8317 (arm_catch_kernel_helper_return): Likewise.
8318 * gdb/arm-tdep.h : Update function declarations.
8319
8320 2011-03-07 Michael Snyder <msnyder@vmware.com>
8321
8322 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8323
8324 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8325
8326 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8327
8328 * elfread.c (elf_symtab_read): Stop memory leak.
8329
8330 * main.c (captured_main): Fix memory leak.
8331
8332 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8333
8334 * ada-lang.c (compare_names): Call is_name_suffix with string1
8335 instead of string2.
8336
8337 2011-03-07 Tom Tromey <tromey@redhat.com>
8338
8339 * xcoffread.c (xcoff_sym_fns): Update.
8340 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8341 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8342 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8343 (symbol_file_add_with_addrs_or_offsets): Likewise.
8344 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8345 * somread.c (som_sym_fns): Update.
8346 * psymtab.h (require_partial_symbols): Declare.
8347 * psymtab.c (require_partial_symbols): New function.
8348 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8349 (ALL_OBJFILE_PSYMTABS): Undef.
8350 (ALL_PSYMTABS): Move from psympriv.h.
8351 (lookup_partial_symtab, find_pc_sect_psymtab)
8352 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8353 (find_last_source_symtab_from_partial)
8354 (forget_cached_source_info_partial)
8355 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8356 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8357 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8358 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8359 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8360 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8361 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8362 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8363 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8364 psymtabs.
8365 * mipsread.c (ecoff_sym_fns): Update.
8366 * machoread.c (macho_sym_fns): Update.
8367 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8368 (read_psyms): New function.
8369 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8370 (elf_sym_fns_lazy_psyms): New global.
8371 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8372 dwarf2_build_psymtabs.
8373 * dbxread.c (aout_sym_fns): Update.
8374 * coffread.c (coff_sym_fns): Update.
8375
8376 2011-03-07 Tom Tromey <tromey@redhat.com>
8377
8378 * infrun.c (print_exited_reason): Include inferior id and pid in
8379 message.
8380
8381 2011-03-07 Tom Tromey <tromey@redhat.com>
8382
8383 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8384 parameter.
8385 (target_has_execution_1): Update.
8386 (target_has_execution_current): Declare.
8387 (target_has_execution): Call target_has_execution_current.
8388 (default_child_has_execution): Update.
8389 * target.c (default_child_has_execution): Add 'the_ptid'
8390 parameter.
8391 (target_has_execution_1): Likewise.
8392 (target_has_execution_current): New function.
8393 (add_target): Update.
8394 (init_dummy_target): Update.
8395 * remote-m32r-sdi.c (m32r_has_execution): New function.
8396 (init_m32r_ops): Use it.
8397 * record.c (record_core_has_execution): Now static. Add
8398 'the_ptid' parameter.
8399 * inferior.c (have_live_inferiors): Don't save current thread.
8400 Use target_has_execution_1.
8401
8402 2011-03-07 Yao Qi <yao@codesourcery.com>
8403
8404 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8405
8406 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8407
8408 * elfread.c (elf_symtab_read): Minor reformatting.
8409
8410 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8411
8412 * objc-lang.c (selectors_info): Minor reformatting.
8413
8414 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8415
8416 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8417
8418 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8419 Michael Snyder <msnyder@vmware.com>
8420
8421 * ada-valprint.c (ada_val_print_array): Move the declaration of
8422 "byte_order" and "elttype" inside the block where these variables
8423 are actually used. Remove some special handling for the case
8424 where "elttype" and "eltlen" are null. Replace by a comment
8425 and a couple of assertion checks.
8426
8427 2011-03-05 Michael Snyder <msnyder@vmware.com>
8428
8429 * source.c (add_path): Replace semicolon at end of block.
8430 * dwarf2expr.c (execute_stack_op): Ditto.
8431
8432 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8433
8434 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8435 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8436 (bfin-*-*): Likewise.
8437
8438 2011-03-05 Michael Snyder <msnyder@vmware.com>
8439
8440 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8441 * mdebugread.c (parse_symbol): Ditto.
8442 * parse.c (parse_exp_in_context): Ditto.
8443 * source.c (add_path): Ditto.
8444 * utils.c (gnu_debuglink_crc32): Ditto.
8445 * varobj.c (variable_language): Ditto.
8446
8447 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8448
8449 2011-03-04 Michael Snyder <msnyder@vmware.com>
8450
8451 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8452
8453 * symfile.c (simple_overlay_update): Check for null return value
8454 from lookup_minimal_symbol.
8455
8456 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8457
8458 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8459
8460 * eval.c (parse_and_eval_address_1): Remove function.
8461 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8462 instead of parse_and_eval_address_1.
8463 * value.h (parse_and_eval_address_1): Remove prototype.
8464
8465 2011-03-04 Michael Snyder <msnyder@vmware.com>
8466
8467 * remote.c (putpkt_binary): Document that case stmt falls through.
8468
8469 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8470
8471 * breakpointc (print_it_typical): Move NULL check from here...
8472 (print_bp_stop_message): ... to here.
8473
8474 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8475
8476 * breakpoint.c (enable_command): Use break instead of continue,
8477 and fill in a missing break.
8478 (disable_command): Ditto.
8479
8480 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8481
8482 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8483 (terminal_save_ours): Remove misleading comment.
8484 (inflow_inferior_data_cleanup): Free ttystate.
8485 (inflow_inferior_exit): Likewise.
8486 (copy_terminal_info): Copy ttystate.
8487
8488 * serial.c (serial_copy_tty_state): New function.
8489 * serial.h (serial_copy_tty_state): Add prototype.
8490 (struct serial_ops): Add copy_tty_state callback.
8491 * ser-base.c (ser_base_copy_tty_state): New function.
8492 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8493 * ser-go32.c (dos_copy_tty_state): New function.
8494 (dos_ops): Install copy_tty_state callback.
8495 * ser-mingw.c (_initialize_ser_windows): Likewise.
8496 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8497 * ser-unix.c (hardwire_copy_tty_state): New function.
8498 (_initialize_ser_hardwire): Install it.
8499
8500 2011-03-04 Michael Snyder <msnyder@vmware.com>
8501
8502 * breakpoint.c (create_breakpoint): Add missing break statement.
8503
8504 Reverting this patch:
8505 * infcall.c (call_function_by_hand): Add break statements for lint.
8506
8507 Reverting this patch:
8508 * cli/cli-script.c (script_from_file): Add break for lint.
8509
8510 2011-03-04 Michael Snyder <msnyder@vmware.com>
8511
8512 * solib.c (reload_shared_libraries_1): Close memory leak.
8513
8514 2011-03-03 Tom Tromey <tromey@redhat.com>
8515
8516 PR gdb/12538:
8517 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8518 DW_STRING is NULL.
8519
8520 2011-03-03 Michael Snyder <msnyder@vmware.com>
8521
8522 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8523 fields of struct 'st' to zero.
8524
8525 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8526 sal.pspace before calling set_current_source_symtab_and_line.
8527
8528 2011-03-03 Yao Qi <yao@codesourcery.com>
8529
8530 * Makefile.in (configure-common): Remove. Let Makefile
8531 in dir common to rebuild itself.
8532 (common/Makefile): Likewise.
8533
8534 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8535
8536 * utils.c (parse_escape): Add i18n markup in error message.
8537
8538 2011-03-03 Yao Qi <yao@codesourcery.com>
8539
8540 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8541 ARM_PC_REGNUM.
8542 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8543 (displaced_write_reg, displaced_read_reg): Likewise.
8544 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8545 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8546 (cleanup_branch): Replace magic number 14 and 15 with
8547 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8548
8549 2011-03-02 Michael Snyder <msnyder@vmware.com>
8550
8551 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8552
8553 * cli/cli-script.c (script_from_file): Add break for lint.
8554
8555 * mdebugread.c (parse_partial_symbols): Fix indent.
8556
8557 * target-descriptions.c (tdesc_gdb_type): No need to call
8558 xstrdup, callee saves a copy.
8559
8560 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8561
8562 * infcall.c (call_function_by_hand): Add break statements for lint.
8563
8564 * utils.c (parse_escape): Escape the escape char.
8565
8566 * python/py-inferior.c (build_inferior_list): Error out if
8567 PyList_Append fails.
8568 (gdbpy_inferiors): Error out if build_inferior_list fails.
8569
8570 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8571 a function call.
8572
8573 * record.c (record_restore): Move printf to before error return.
8574
8575 2011-03-02 Yao Qi <yao@codesourcery.com>
8576
8577 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8578 is_thumb and insn_size.
8579 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8580 on both ARM and Thumb mode.
8581 (arm_process_displaced_insn): Set is_thumb and insn_size.
8582 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8583 (arm_displaced_step_fixup): Likewise.
8584
8585 2011-03-01 Michael Snyder <msnyder@vmware.com>
8586
8587 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8588
8589 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8590
8591 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8592
8593 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8594
8595 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8596 with xmalloc.
8597
8598 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8599 which shadows function parameter.
8600
8601 * tracepoint.c (create_tsv_from_upload): Superfluous call
8602 to xstrdup. Callee already calls xstrdup.
8603
8604 * linespec.c (decode_line_1): Remove unnecessary null check.
8605
8606 * tracepoint.c (scope_info): Fix mem leak, remove underused
8607 variable.
8608
8609 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8610 superfluous null check.
8611
8612 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8613 (value_of_builtin_frame_fp_reg): Ditto.
8614
8615 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8616
8617 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8618 be null.
8619
8620 * linespec.c (decode_line_1): Check for null before dereference.
8621
8622 * reverse.c (record_restore): Move null-check to before pointer
8623 dereference.
8624
8625 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8626
8627 * objc-lang.c (selectors_info): Add explanitory comment.
8628 (classes_info): Ditto.
8629
8630 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8631
8632 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8633 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8634 versions of the trampoline. Handle Thumb vs. ARM addresses.
8635 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8636 (arm_linux_init_abi): Install it.
8637 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8638 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8639
8640 2011-02-28 Michael Snyder <msnyder@vmware.com>
8641
8642 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8643 a little bigger, to avoid possibility of an overflow.
8644
8645 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8646 buffers a little bigger, to avoid possibility of an overflow.
8647
8648 * coffread.c (coff_getfilename): Add check to avoid overflow.
8649
8650 * objc-lang.c (selectors_info): Add a small safety margin to
8651 avoid overflow.
8652 (classes_info): Error out on too long REGEXP.
8653
8654 * infrun.c (handle_inferior_event): Remove unused function call.
8655
8656 * fork-child.c (fork_inferior): Remove ifdef'd code and
8657 unused variable.
8658
8659 * linux-thread-db.c (attach_thread): Discard unused value.
8660
8661 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8662
8663 * remote.c (remote_get_noisy_reply): Discard unused value.
8664 (remote_vcont_resume): Ditto.
8665 (remote_stop_ns): Ditto.
8666
8667 * linespec.c (decode_objc): Delete unused variable.
8668
8669 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8670
8671 * dwarf2read.c (add_partial_symbol): Discard unused values.
8672 (read_base_type): Delete unused variable.
8673
8674 * dbxread.c (read_dbx_symtab): Discard unused value.
8675
8676 * eval.c (evaluate_subexp_standard): Delete unused variable,
8677 and discard unused values.
8678
8679 * infcmd.c (_initialize_infcmd): Discard unused values.
8680
8681 * stabsread.c (rs6000_builtin_type): Missing break statement.
8682
8683 * dbxread.c (process_one_symbol): Discard unused value.
8684
8685 * coffread.c (coff_end_symtab): Delete unused variable.
8686
8687 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8688 (dwarf2_add_typedef): Delete unused variable.
8689 (read_namespace): Ditto.
8690 (dwarf_decode_macros): Ditto.
8691
8692 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8693
8694 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8695
8696 * p-valprint.c (pascal_val_print): Discard unused value.
8697
8698 * utils.c (nquery): Call va_end before return;
8699 (yquery): Ditto.
8700 (query): Ditto.
8701
8702 * proc-service.c (ps_plog): Call va_end before return.
8703
8704 2011-02-28 Tom Tromey <tromey@redhat.com>
8705
8706 * python/python.c (gdbpy_value_cst): New global.
8707 (_initialize_python): Initialize it.
8708 * python/python-internal.h (gdbpy_value_cst): Declare.
8709 * python/py-value.c (convert_value_from_python): Use
8710 gdbpy_value_cst.
8711
8712 2011-02-28 Michael Snyder <msnyder@vmware.com>
8713
8714 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8715
8716 * breakpoint.c (catch_syscall_completer): Free malloced list.
8717
8718 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8719
8720 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8721 (lval_func_check_synthetic_pointer): Ditto.
8722 (lval_func_free_closure): Fix use-after-free.
8723
8724 2011-02-28 Tom Tromey <tromey@redhat.com>
8725
8726 * psymtab.c (expand_partial_symbol_tables): Use
8727 ALL_OBJFILE_PSYMTABS.
8728
8729 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8730
8731 * objc-lang.c (selectors_info): Error on too long REGEXP.
8732
8733 2011-02-28 Michael Snyder <msnyder@vmware.com>
8734
8735 * python/py-param.c (set_parameter_value): Add missing
8736 break statement.
8737
8738 * linux-record.c (record_linux_system_call): Add missing
8739 break statement.
8740
8741 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8742
8743 * breakpoint.c (print_one_breakpoint_location): Remove unused
8744 argument PRINT_ADDRESS_BITS. Update callers.
8745 (print_one_breakpoint): Likewise.
8746
8747 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8748
8749 * breakpoint.c (wrap_indent_at_field): New function.
8750 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8751 Allocate ui_stream locally instead of using STB argument.
8752 (print_one_breakpoint_location): Update call.
8753 * ui-out.c (ui_out_query_field): New function.
8754 * ui-out.h (ui_out_query_field): Add prototype.
8755
8756 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8757
8758 From Michael Snyder <msnyder@vmware.com>
8759 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8760
8761 2011-02-27 Michael Snyder <msnyder@vmware.com>
8762
8763 * objc-lang.c (selectors_info): Prevent string overrun.
8764
8765 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8766 error in strncpy.
8767
8768 * symtab.c (rbreak_command): Move variable 'file_name' to
8769 outer scope.
8770
8771 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8772 param with a local variable of the same name.
8773
8774 2011-02-27 Michael Snyder <msnyder@vmware.com>
8775
8776 * value.c (value_from_history_ref): New function.
8777 * value.h (value_from_history_ref): Export.
8778 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8779 to parse value history references.
8780 * cli/cli-utils.h (get_number_trailer): Update comment.
8781
8782 2011-02-27 Michael Snyder <msnyder@vmware.com>
8783
8784 * inferior.c (detach_inferior_command): Use get_number_or_range.
8785 (kill_inferior_command): Ditto.
8786 (remove_inferior_command): Ditto.
8787 (initialize_inferiors): Make command names plural.
8788 Update help strings.
8789
8790 2011-02-27 Michael Snyder <msnyder@vmware.com>
8791
8792 * darwin-nat-info.c: Fix comment typo.
8793 * dwarf2expr.h: Ditto.
8794 * fbsd-nat.c: Ditto.
8795 * fbsd-nat.h: Ditto.
8796 * frame-unwind.h: Ditto.
8797 * frame.h: Ditto.
8798 * hppa-hpux-tdep.c: Ditto.
8799 * i386-linux-nat.c: Ditto.
8800 * linux-nat.c: Ditto.
8801 * nbsd-nat.c: Ditto.
8802 * nbsd-nat.h: Ditto.
8803 * ppc-linux-tdep.c: Ditto.
8804 * serial.c: Ditto.
8805 * ui-file.h: Ditto.
8806 * tui/tui-winsource.c: Ditto.
8807
8808 2011-02-26 Michael Snyder <msnyder@vmware.com>
8809
8810 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8811
8812 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8813
8814 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8815 with a local variable of the same name.
8816
8817 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8818 param with a local variable of the same name.
8819 (i387_supply_xsave): Ditto.
8820
8821 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8822 that it does not shadow a function parameter.
8823
8824 * i386-nat.c (i386_length_and_rw_bits): Document that case
8825 statement is meant to fall through.
8826
8827 * expprint.c (dump_subexp_body_standard): Document that case
8828 statement is meant to fall through.
8829
8830 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8831 dead if statement. Condition can't be false.
8832
8833 2011-02-25 Michael Snyder <msnyder@vmware.com>
8834
8835 * arm-tdep.c: Fix typos in comments.
8836 * bsd-uthread.c: Ditto.
8837 * completer.c: Ditto.
8838 * corelow.c: Ditto.
8839 * cp-namespace.c: Ditto.
8840 * cp-support.c: Ditto.
8841 * cris-tdep.c: Ditto.
8842 * dbxread.c: Ditto.
8843 * dwarf2read.c: Ditto.
8844 * frame.h: Ditto.
8845 * gdbtypes.h: Ditto.
8846 * inferior.h: Ditto.
8847 * mdebugread.c: Ditto.
8848 * mips-tdep.c: Ditto.
8849 * ppc-linux-nat.c: Ditto.
8850 * ppc-linux-tdep.c: Ditto.
8851 * printcmd.c: Ditto.
8852 * sol-thread.c: Ditto.
8853 * solib-frv.c: Ditto.
8854 * solist.h: Ditto.
8855 * sparc64-tdep.c: Ditto.
8856 * spu-tdep.c: Ditto.
8857 * stabsread.c: Ditto.
8858 * symfile.c: Ditto.
8859 * valops.c: Ditto.
8860 * varobj.c: Ditto.
8861 * vax-nat.c: Ditto.
8862 * python/py-block.c: Ditto.
8863 * python/py-symbol.c: Ditto.
8864 * python/py-symtab.c: Ditto.
8865 * python/py-value.c: Ditto.
8866 * tui/tui-win.c: Ditto.
8867
8868 2011-02-25 Michael Snyder <msnyder@vmware.com>
8869
8870 * inferior.c (print_inferior): Accept a string instead of an int
8871 for requested_inferiors, and use get_number_or_range to parse it.
8872 (info_inferiors_command): Pass args string to print_inferior.
8873 (initialize_inferiors): Change help string for info inferiors.
8874 * inferior.h (print_inferior): Export prototype change.
8875
8876 2011-02-25 Tom Tromey <tromey@redhat.com>
8877
8878 * common/ax.def (invalid2): Set to 0x31.
8879
8880 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8881
8882 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8883 L and plongest.
8884 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8885 use L and plongest.
8886 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8887
8888 2011-02-24 Michael Snyder <msnyder@vmware.com>
8889
8890 * Makefile.in (clean): Make clean should remove generated files
8891 observer.h and observer.inc.
8892
8893 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8894
8895 Revert the following patch (not approved yet):
8896 2011-02-21 Hui Zhu <teawater@gmail.com>
8897 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8898 * ax-gdb.c (gen_printf_expr_callback): New function.
8899 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8900 * ax-general.c (ax_memcpy): New function.
8901 (ax_print): Handle "printf".
8902 (ax_reqs): Ditto.
8903 * ax.h (ax_memcpy): Forward declare.
8904 * common/ax.def (invalid2): Removed.
8905 (printf): New entry.
8906 * printcmd.c (printcmd.h): New include.
8907 (string_printf): New function.
8908 (ui_printf): Removed.
8909 (printf_command): Remove static. Call string_printf.
8910 (eval_command): Call string_printf.
8911 * printcmd.h: New file.
8912 * tracepoint.c (validate_actionline,
8913 encode_actions_1): handle printf_command.
8914
8915 2011-02-23 Tom Tromey <tromey@redhat.com>
8916
8917 * ax-general.c (ax_pick): Add missing newline.
8918
8919 2011-02-23 Michael Snyder <msnyder@vmware.com>
8920
8921 * breakpoint.c (breakpoint_1): Change first argument from an int
8922 to a char pointer, so that the function now accepts a list of
8923 breakpoints rather than just one. Use new function
8924 'number_is_in_list' to implement.
8925 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8926 (watchpoints_info): Ditto.
8927 (tracepoints_info): Ditto.
8928 (maintenance_info_breakpoints): Ditto.
8929 (_initialize_breakpoint): Update help strings to reflect the fact
8930 that these functions can now take more than one argument.
8931 * cli/cli-utils.c (number_is_in_list): New function.
8932 * cli/cli-utils.h (number_is_in_list): Export.
8933
8934 2011-02-23 Michael Snyder <msnyder@vmware.com>
8935
8936 * memattr.c (mem_enable_command): Use get_number_or_range.
8937 (mem_disable_command): Ditto.
8938 (mem_delete_command): Ditto.
8939 (_initialize_mem): Tweak usage message to reflect multiple
8940 arguments.
8941
8942 2011-02-22 Doug Evans <dje@google.com>
8943
8944 Add gdb.lookup_global_symbol python function.
8945 * NEWS: Add entry.
8946 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8947 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8948 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8949
8950 2011-02-22 Tom Tromey <tromey@redhat.com>
8951
8952 * language.c (language_class_name_from_physname): Rename
8953 'curr_language' argument to 'lang'; use in body.
8954
8955 2011-02-22 Michael Snyder <msnyder@vmware.com>
8956
8957 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8958
8959 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8960
8961 * frame-unwind.h: Fix comment to mention the this frame, not the
8962 next.
8963
8964 2011-02-22 Tom Tromey <tromey@redhat.com>
8965
8966 * symfile.c (auto_solib_limit): Remove.
8967 * symfile.h (auto_solib_limit): Remove.
8968
8969 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8970
8971 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8972
8973 2011-02-21 Michael Snyder <msnyder@vmware.com>
8974
8975 * gdbthread.h (print_thread_info): Change prototype.
8976 * thread.c (print_thread_info): Accept char* instead of int for
8977 requested_threads argument. Use new function number_is_in_list
8978 to determine which threads to list.
8979 (info_threads_command): Pass char* to print_thread_info.
8980 * cli/cli-utils.c (number_is_in_list): New function.
8981 * cli/cli-utils.h (number_is_in_list): Export.
8982 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8983 print_thread_info.
8984 (print_one_inferior): Ditto.
8985 (mi_cmd_list_thread_groups): Ditto.
8986
8987 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8988
8989 * common/Makefile.in (CFLAGS): New.
8990 (COMPILE): Add $(CFLAGS).
8991
8992 2011-02-21 Tom Tromey <tromey@redhat.com>
8993
8994 * breakpoint.c (catch_syscall_command_1): Fix typo.
8995
8996 2011-02-21 Tom Tromey <tromey@redhat.com>
8997
8998 * reverse.c: Include cli-utils.h.
8999 * printcmd.c: Include cli-utils.h.
9000 (string_printf): Use skip_spaces.
9001 * cli/cli-utils.h: New file.
9002 * cli/cli-utils.c: New file.
9003 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9004 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9005 * breakpoint.h (get_number, get_number_or_range): Move to
9006 cli-utils.h.
9007 * breakpoint.c: Include cli-utils.h.
9008 (get_number_trailer, get_number, get_number_or_range)
9009 (ep_skip_leading_whitespace): Move to cli-utils.c.
9010 (create_breakpoint_sal, find_condition_and_thread)
9011 (decode_static_tracepoint_spec, watch_command_1)
9012 (watch_maybe_just_location, ep_parse_optional_if_clause)
9013 (catch_fork_command_1, catch_exec_command_1)
9014 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9015 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9016 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9017 (HFILES_NO_SRCDIR): Add cli-utils.h.
9018 (cli-utils.o): New target.
9019
9020 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9021
9022 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9023 before calling discard_all_inferiors.
9024
9025 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9026
9027 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9028 (struct builtin_opencl_type): Remove.
9029 (builtin_opencl_type): Change return type to "struct type **".
9030 (lookup_opencl_vector_type): Update caller.
9031 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9032 (build_opencl_types): Install plain array of "struct type *"
9033 instead of "struct builtin_opencl_type".
9034
9035 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9036 Ulrich Weigand <uweigand@de.ibm.com>
9037
9038 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9039 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9040 (struct arm_linux_hwbp_cap): New type.
9041 (arm_linux_get_hwbp_cap): New function.
9042 (arm_linux_get_hw_breakpoint_count): Likewise.
9043 (arm_linux_get_hw_watchpoint_count): Likewise.
9044 (arm_linux_can_use_hw_breakpoint): Likewise.
9045 (arm_hwbp_type): New type.
9046 (arm_hwbp_control_t): Likewise.
9047 (struct arm_linux_hw_breakpoint): Likewise.
9048 (struct arm_linux_thread_points): Likewise.
9049 (arm_threads): New global variable.
9050 (arm_linux_find_breakpoints_by_tid): New function.
9051 (arm_hwbp_control_initialize): Likewise.
9052 (arm_hwbp_control_is_enabled): Likewise.
9053 (arm_hwbp_control_disable): Likewise.
9054 (arm_linux_hw_breakpoint_initialize): Likewise.
9055 (arm_linux_get_hwbp_type): Likewise.
9056 (arm_linux_hw_watchpoint_initialize): Likewise.
9057 (arm_linux_hw_breakpoint_equal): Likewise.
9058 (arm_linux_insert_hw_breakpoint1): Likewise.
9059 (arm_linux_remove_hw_breakpoint1): Likewise.
9060 (arm_linux_insert_hw_breakpoint): Likewise.
9061 (arm_linux_remove_hw_breakpoint): Likewise.
9062 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9063 (arm_linux_insert_watchpoint): Likewise.
9064 (arm_linux_remove_watchpoint): Likewise.
9065 (arm_linux_stopped_data_address): Likewise.
9066 (arm_linux_stopped_by_watchpoint): Likewise.
9067 (arm_linux_watchpoint_addr_within_range): Likewise.
9068 (arm_linux_new_thread): Likewise.
9069 (arm_linux_thread_exit): Likewise.
9070 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9071 related target callbacks. Register arm_linux_new_thread and
9072 arm_linux_thread_exit.
9073 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9074 * arm-tdep.c (arm_pc_is_thumb): Make global.
9075 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9076
9077 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9078
9079 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9080 per-frame locations while within a function epilogue.
9081
9082 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9083
9084 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9085 to GNU coding standards.
9086
9087 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9088
9089 Allow use of mingw native on Windows 95 OS.
9090 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9091 (ser_windows_close): Only call CancelIo if function exists.
9092 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9093 to check for existence of CancelIo function in kernel32 DLL.
9094
9095 2011-02-21 Hui Zhu <teawater@gmail.com>
9096
9097 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9098 * ax-gdb.c (gen_printf_expr_callback): New function.
9099 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9100 * ax-general.c (ax_memcpy): New function.
9101 (ax_print): Handle "printf".
9102 (ax_reqs): Ditto.
9103 * ax.h (ax_memcpy): Forward declare.
9104 * common/ax.def (invalid2): Removed.
9105 (printf): New entry.
9106 * printcmd.c (printcmd.h): New include.
9107 (string_printf): New function.
9108 (ui_printf): Removed.
9109 (printf_command): Remove static. Call string_printf.
9110 (eval_command): Call string_printf.
9111 * printcmd.h: New file.
9112 * tracepoint.c (validate_actionline,
9113 encode_actions_1): handle printf_command.
9114
9115 2011-02-19 Michael Snyder <msnyder@vmware.com>
9116
9117 * reverse.c (delete_one_bookmark): Argument is now bookmark
9118 id rather than pointer to bookmark struct.
9119 (delete_bookmark_command): Use get_number_or_range.
9120 (goto_bookmark_command): Parse with get_number instead of strtoul.
9121 (bookmark_1): New function. Print info for one bookmark.
9122 (bookmarks_info): Use get_number_or_range and bookmark_1.
9123
9124 2011-02-18 Michael Snyder <msnyder@vmware.com>
9125
9126 * thread.c (info_threads_command): Re-implement using
9127 get_number_or_range.
9128 (thread_apply_command): Ditto.
9129
9130 2011-02-18 Tom Tromey <tromey@redhat.com>
9131
9132 * common/ax.def: New file.
9133 * ax.h (enum agent_op): Use ax.def.
9134 * ax-general.c (aop_map): Use ax.def.
9135
9136 2011-02-18 Tom Tromey <tromey@redhat.com>
9137
9138 * ax-general.c (aop_map): Add pick and rot.
9139 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9140 <DW_OP_rot>: Implement.
9141 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9142 (ax_pick): Declare.
9143 * ax-general.c (ax_pick): New function.
9144
9145 2011-02-18 Tom Tromey <tromey@redhat.com>
9146
9147 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9148
9149 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9150 Tom Tromey <tromey@redhat.com>
9151
9152 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9153 make_symbol_overload_list_block with NULL BLOCK.
9154 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9155
9156 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9157
9158 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9159 * breakpoint.h (get_number_or_range): Declare.
9160 * printcmd.c (ALL_DISPLAYS): Declare.
9161 (delete_display): Reimplement taking a display pointer.
9162 (undisplay_command): Accept a range of displays to delete, using
9163 get_number_or_range.
9164
9165 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9166
9167 * c-valprint.c (c_val_print): Add embedded_offset to address
9168 for arrays of unspecified length.
9169 * p-valprint.c (pascal_val_print): Likewise.
9170
9171 2011-02-18 Yao Qi <yao@codesourcery.com>
9172
9173 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9174 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9175 (thumb_process_displaced_insn): New.
9176 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9177 call to arm_process_displaced_insn.
9178 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9179
9180 2011-02-17 Tom Tromey <tromey@redhat.com>
9181
9182 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9183 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9184 compile_dwarf_to_ax. No longer static. Call
9185 dwarf2_compile_cfa_to_ax.
9186 (locexpr_tracepoint_var_ref): Update.
9187 (loclist_tracepoint_var_ref): Update.
9188 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9189 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9190 argument; add 'gdbarch' and 'pc'.
9191 (dwarf2_compile_cfa_to_ax): New function.
9192 (dwarf2_frame_cache): Update.
9193
9194 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9195
9196 * ada-lang.c (ada_type_of_array): Fix the size of the array
9197 in the case of an unconstrained packed array.
9198
9199 2011-02-17 Yao Qi <yao@codesourcery.com>
9200
9201 * common/Makefile.in: Add more targets for make.
9202
9203 2011-02-16 Tom Tromey <tromey@redhat.com>
9204
9205 * dwarf2loc.c (unimplemented): Fix typo.
9206
9207 2011-02-16 Tom Tromey <tromey@redhat.com>
9208
9209 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9210 (compile_dwarf_to_ax) <default>: Use unimplemented.
9211 <DW_OP_deref>: Update.
9212 (disassemble_dwarf_expression): Update.
9213 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9214 (decode_locdesc): Update.
9215 * dwarf2expr.h (dwarf_stack_op_name): Update.
9216
9217 2011-02-16 Tom Tromey <tromey@redhat.com>
9218
9219 * ax.h (struct aop_map) <name>: Now const.
9220
9221 2011-02-16 Tom Tromey <tromey@redhat.com>
9222
9223 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9224 than axs_rvalue.
9225
9226 2011-02-16 Yao Qi <yao@codesourcery.com>
9227
9228 * infrun.c (get_displaced_step_closure_by_addr): New.
9229 * inferior.h: Declare it.
9230 * arm-tdep.c: (arm_pc_is_thumb): Call
9231 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9232 returns non-NULL.
9233
9234 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9235 Jan Kratochvil <jan.kratochvil@redhat.com>
9236
9237 gdb/
9238 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9239
9240 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9241 Jan Kratochvil <jan.kratochvil@redhat.com>
9242
9243 * value.c (value_contents_copy_raw): Extend describing comment.
9244 Assert that the destination contents we're overwriting are wholly
9245 available.
9246 (value_contents_copy): Extend describing comment.
9247
9248 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9249 Jan Kratochvil <jan.kratochvil@redhat.com>
9250
9251 * value.c (value_available_contents_eq): Remove redundant local
9252 variables. Fix available contents comparision.
9253 * value.h (value_available_contents_eq): Extend describing
9254 comment.
9255
9256 2011-02-16 Yao Qi <yao@codesourcery.com>
9257
9258 * thread.c (info_threads_command): Add missing i18n markup and remove
9259 trailing newline.
9260
9261 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9262
9263 * breakpoint.c (longjmp_names): New variable.
9264 (struct breakpoint_objfile_data): New type.
9265 (breakpoint_objfile_key): New variable.
9266 (msym_not_found): New variable.
9267 (msym_not_found_p): New predicate.
9268 (get_breakpoint_objfile_data): New function.
9269 (create_overlay_event_breakpoint): Check per-objfile cache for
9270 symbols first.
9271 (create_longjmp_master_breakpoint): Likewise.
9272 (create_std_terminate_master_breakpoint): Likewise.
9273 (create_exception_master_breakpoint): Likewise.
9274 (_initialize_breakpoint): Register per-objfile data key.
9275
9276 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9277
9278 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9279 parameter value.
9280 (create_longjmp_master_breakpoint): Loop over longjmp names.
9281 (create_std_terminate_master_breakpoint): Const-propagate parameter
9282 value.
9283 (update_breakpoints_after_exec): Adjust.
9284 (breakpoint_re_set): Adjust.
9285
9286 2011-02-15 Michael Snyder <msnyder@vmware.com>
9287
9288 * thread.c (info_threads_command): Process arg as thread id,
9289 or list of thread ids.
9290 (thread_find_command): New command.
9291 (_initialize_thread): Document argument for info threads.
9292 Document 'thread find' command.
9293 * NEWS: Document new command "thread find".
9294
9295 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9298 * aclocal.m4: Regenerated with aclocal-1.11.1.
9299 * common/configure: Regenerate with autoconf-2.64.
9300
9301 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9302
9303 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9304 bool data type to a size of one byte.
9305
9306 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9307 Jan Kratochvil <jan.kratochvil@redhat.com>
9308
9309 * target.c (memory_xfer_live_readonly_partial): Document where to
9310 look for interface description.
9311
9312 2011-02-15 Yao Qi <yao@codesourcery.com>
9313
9314 PR tdep/12352
9315 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9316 order to store PC value on stack instead of text section.
9317
9318 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9319
9320 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9321 the EFP register set size.
9322 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9323 data from the VMX register.
9324 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9325 and write data from/to the VMX register.
9326
9327 2011-02-14 Michael Snyder <msnyder@vmware.com>
9328
9329 * command.h (enum command_class): New class 'no_set_class', for
9330 "show" commands without a corresponding "set" command.
9331 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9332 * copying.c (_initialize_copying): Ditto for "show copying" and
9333 "show warranty".
9334 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9335 "show version".
9336 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9337 which there is no corresponding "set" command (eg. "show copying").
9338
9339 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9340 Jan Kratochvil <jan.kratochvil@redhat.com>
9341
9342 * exec.c (section_table_available_memory): Change `len' parameter
9343 type to ULONGEST.
9344 * exec.h (section_table_available_memory): Ditto.
9345 * value.h (read_value_memory): Rename the `offset' parameter to
9346 `embedded_offset'.
9347
9348 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9349 Jan Kratochvil <jan.kratochvil@redhat.com>
9350
9351 * memrange.c (compare_mem_ranges): Mention sort order in
9352 describing comment.
9353 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9354 * tracepoint.c (traceframe_available_memory): Extend comment to
9355 mention what happens to RESULT when the target does not support
9356 the query.
9357
9358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9359 Jan Kratochvil <jan.kratochvil@redhat.com>
9360
9361 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9362 range.
9363
9364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9365
9366 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9367 No longer handle NULL values.
9368
9369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9370
9371 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9372 * value.c: Include "exceptions.h".
9373 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9374 generic error.
9375 * cp-abi.c: Include gdb_assert.h.
9376 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9377 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9378 errors.
9379 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9380 parameters. No longer returns -1 on error.
9381 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9382 `val' parameters.
9383 * cp-valprint.c: Include exceptions.h.
9384 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9385 the baseclass_offset. Handle unavailable base classes. Use
9386 val_print_invalid_address.
9387 * p-valprint.c: Include exceptions.h.
9388 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9389 when fetching the baseclass_offset. No longer expect
9390 baseclass_offset returning -1. Handle unavailable base classes.
9391 Use val_print_invalid_address.
9392 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9393 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9394 `embedded_offset' and `val' parameters. Adjust.
9395 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9396 parameter, and change its type to gdb_byte pointer. Add
9397 `embedded_offset' and `val' parameters. Adjust. No longer expect
9398 baseclass_offset returning -1.
9399 (value_dynamic_cast): Use value_contents_for_printing rather than
9400 value_contents. Adjust.
9401 (search_struct_field): No longer expect baseclass_offset returning
9402 -1.
9403 (search_struct_method): If reading memory from the target is
9404 necessary, wrap it in a new value to pass to baseclass_offset. No
9405 longer expect baseclass_offset returning -1.
9406 (find_method_list): No longer expect baseclass_offset returning
9407 -1. Use value_contents_for_printing rather than value_contents.
9408 * valprint.c (val_print_invalid_address): New function.
9409 * valprint.h (val_print_invalid_address): Declare.
9410 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9411 and `val' parameters. No longer expect baseclass_offset returning
9412 -1. Adjust.
9413 * gnu-v2-abi.c: Include "exceptions.h".
9414 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9415 parameters. Handle unavailable memory. Recurse through
9416 gnuv2_baseclass_offset directly, rather than through
9417 baseclass_offset. No longer returns -1 on not found, instead
9418 throw an error.
9419 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9420 `val' parameters. Adjust.
9421
9422 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9423
9424 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9425 almost but not quite adjacent.
9426
9427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9428
9429 * value.h (value_entirely_available): Declare.
9430 * value.c (value_entirely_available): New function.
9431 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9432 real type if the pointer is unavailable.
9433
9434 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9435
9436 * valops.c (value_repeat): Use read_value_memory instead of
9437 read_memory.
9438
9439 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9440
9441 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9442 * value.c (value_contents_copy_raw, value_contents_copy): New
9443 functions.
9444 (value_primitive_field): Use value_contents_copy_raw instead of
9445 memcpy.
9446 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9447 memcpy.
9448 (value_array, value_slice): Ditto.
9449 * valarith.c (value_subscripted_rvalue): Use
9450 value_contents_copy_raw instead of memcpy.
9451
9452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9453
9454 <unavailable> references.
9455
9456 * valops.c (get_value_at): Use value_from_contents_and_address,
9457 avoiding read_memory.
9458
9459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9460
9461 * c-valprint.c (c_val_print): Print a string with unavailable
9462 contents as an array.
9463
9464 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9465
9466 * value.h (unpack_bits_as_long): Delete declaration.
9467 (unpack_value_bits_as_long): Declare.
9468 (unpack_value_field_as_long): Declare.
9469 (value_field_bitfield): Declare.
9470 * value.c (unpack_bits_as_long): Rename to...
9471 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9472 value parameters. Return the extracted result in a new output
9473 parameter. If the value contents are unavailable, return false,
9474 otherwise return true.
9475 (unpack_value_bits_as_long): New.
9476 (unpack_field_as_long): Rename to...
9477 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9478 Add embedded_offset and value parameters. Return the extracted
9479 result in a new output parameter. If the value contents are
9480 unavailable, return false, otherwise return true.
9481 (unpack_value_field_as_long): New.
9482 (unpack_field_as_long_1): New.
9483 (unpack_field_as_long): Reimplement as wrapper around
9484 unpack_value_field_as_long_1.
9485 (value_field_bitfield): New function.
9486 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9487 unpack_value_bits_as_long. Mark the value as unavailable, if it
9488 is unavailable.
9489 * jv-valprint.c (java_print_value_fields): Use
9490 value_field_bitfield.
9491 * p-valprint.c (pascal_object_print_value_fields): Use
9492 value_field_bitfield.
9493 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9494
9495 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9496
9497 * value.c (get_internalvar_integer): Also return the int value of
9498 TYPE_CODE_INT INTERNALVAR_VALUE values.
9499 (set_internalvar): Don't special case TYPE_CODE_INT.
9500
9501 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9502
9503 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9504 INTERNALVAR_POINTER.
9505 <pointer>: Delete.
9506 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9507 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9508 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9509
9510 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9511
9512 * value.h (value_available_contents_eq): Declare.
9513 * value.c (find_first_range_overlap): New function.
9514 (value_available_contents_eq): New function.
9515 * valprint.c (val_print_array_elements): Use
9516 value_available_contents_eq.
9517 * ada-valprint.c (val_print_packed_array_elements): Use
9518 value_available_contents_eq.
9519 * jv-valprint.c (java_value_print): Use
9520 value_available_contents_eq.
9521
9522 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9523
9524 * target.c (target_read_live_memory): New function.
9525 (memory_xfer_live_readonly_partial): New.
9526 (memory_xfer_partial): If reading from a traceframe, fallback to
9527 reading unavailable read-only memory from read-only regions of
9528 live target memory.
9529 * tracepoint.c (disconnect_tracing): Adjust.
9530 (set_current_traceframe): New, factored out from
9531 set_traceframe_number.
9532 (set_traceframe_number): Reimplement to only change the traceframe
9533 number on the GDB side.
9534 (do_restore_current_traceframe_cleanup): Adjust.
9535 (make_cleanup_restore_traceframe_number): New.
9536 (cur_traceframe_number): New global.
9537 (tfile_open): Set cur_traceframe_number to no traceframe.
9538 (set_tfile_traceframe): New function.
9539 (tfile_trace_find): If looking up a traceframe using any method
9540 other than by number, make sure the current tfile traceframe
9541 matches gdb's current traceframe. Update the current tfile
9542 traceframe if the lookup succeeded.
9543 (tfile_fetch_registers, tfile_xfer_partial)
9544 (tfile_get_trace_state_variable_value): Make sure the remote
9545 traceframe matches gdb's current traceframe.
9546 * remote.c (remote_traceframe_number): New global.
9547 (remote_open_1): Set it to -1.
9548 (set_remote_traceframe): New function.
9549 (remote_fetch_registers, remote_store_registers)
9550 (remote_xfer_memory, remote_xfer_partial)
9551 (remote_get_trace_state_variable_value): Make sure the remote
9552 traceframe matches gdb's current traceframe.
9553 (remote_trace_find): If looking up a traceframe using any method
9554 other than by number, make sure the current remote traceframe
9555 matches gdb's current traceframe. Update the current remote
9556 traceframe if the lookup succeeded.
9557 * infrun.c (fetch_inferior_event): Adjust.
9558 * tracepoint.h (set_current_traceframe): Declare.
9559 (get_traceframe_number, set_traceframe_number): Add describing
9560 comments.
9561
9562 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9563
9564 Mark pieces of values as unavailable if the corresponding memory
9565 is unavailable.
9566
9567 * valops.c: Include tracepoint.h.
9568 (value_fetch_lazy): Use read_value_memory.
9569 (read_value_memory): New.
9570 * value.h (read_value_memory): Declare.
9571 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9572 * exec.c (section_table_available_memory): New function.
9573 * exec.h (section_table_available_memory): Declare.
9574
9575 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9576
9577 * Makefile.in (SFILES): Add memrange.c.
9578 (HFILES_NO_SRCDIR): Add memrange.h.
9579 (COMMON_OBS): Add memrange.o.
9580 * memrange.c: New file.
9581 * memrange.h: New file.
9582 * tracepoint.c: Include memrange.h.
9583 (struct mem_range): Delete.
9584 (mem_range_s): Delete.
9585 (traceframe_available_memory): New function.
9586 * tracepoint.h (traceframe_available_memory): Declare.
9587
9588 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9589
9590 * target.h (struct traceframe_info): Forward declare.
9591 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9592 (struct target_ops) <to_traceframe_info>: New field.
9593 (target_traceframe_info): New.
9594 * target.c (update_current_target): Inherit and default
9595 to_traceframe_info.
9596 * remote.c (PACKET_qXfer_traceframe_info): New.
9597 (remote_protocol_features): Register qXfer:traceframe-info:read.
9598 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9599 (remote_traceframe_info): New.
9600 (init_remote_ops): Install it.
9601 (_initialize_remote): Install "set/show remote traceframe-info"
9602 commands.
9603 * tracepoint.h (parse_traceframe_info): Declare.
9604 * tracepoint.c (struct mem_range): New.
9605 (mem_range_s): New typedef.
9606 (struct traceframe_info): New.
9607 (traceframe_info): New global.
9608 (free_traceframe_info): New function.
9609 (clear_traceframe_info): New function.
9610 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9611 info.
9612 (build_traceframe_info): New function.
9613 (tfile_traceframe_info): New function.
9614 (init_tfile_ops): Install tfile_traceframe_info.
9615 (traceframe_info_start_memory, free_result): New functions.
9616 (memory_attributes, traceframe_info_elements): New globals.
9617 (parse_traceframe_info, get_traceframe_info): New functions.
9618 * features/traceframe-info.dtd: New file.
9619 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9620
9621 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9622
9623 Base support for <unavailable> value contents.
9624
9625 * value.h (value_bytes_available): Declare.
9626 (mark_value_bytes_unavailable): Declare.
9627 * value.c (struct range): New struct.
9628 (range_s): New typedef.
9629 (ranges_overlap): New function.
9630 (range_lessthan): New function.
9631 (ranges_contain_p): New function.
9632 (struct value) <unavailable>: New field.
9633 (value_bytes_available): New function.
9634 (mark_value_bytes_unavailable): New function.
9635 (require_not_optimized_out): Constify parameter.
9636 (require_available): New function.
9637 (value_contents_all, value_contents): Require all bytes be
9638 available.
9639 (value_free): Free `unavailable'.
9640 (value_copy): Copy `unavailable'.
9641 * valprint.h (val_print_unavailable): Declare.
9642 * valprint.c (valprint_check_validity): Rename `offset' parameter
9643 to `embedded_offset'. If printing a scalar, check whether the
9644 value chunk is available.
9645 (val_print_unavailable): New.
9646 (val_print_scalar_formatted): Check whether the value is
9647 available.
9648 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9649 pretty-printing unavailable values.
9650
9651 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9654 * c-typeprint.c (c_type_print_args): Update the function comment. New
9655 variable param_type, initialize it. Remove const/volatile qualifiers
9656 for language_cplus and !show_artificial. Use param_type.
9657
9658 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9659
9660 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9661 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9662 * symtab.h (struct symtab) <next>: Comment extension.
9663
9664 2011-02-12 Yao Qi <yao@codesourcery.com>
9665
9666 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9667
9668 2011-02-11 Yao Qi <yao@codesourcery.com>
9669
9670 * common/Makefile.in: Add copyright header.
9671
9672 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9673
9674 * infrun.c (proceed): Move switching out and in of tfind mode from
9675 here ...
9676 (fetch_inferior_event): ... to here.
9677
9678 2011-02-11 Yao Qi <yao@codesourcery.com>
9679
9680 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9681 libcommon.a.
9682 * configure.ac: Add common to sub dir.
9683 * configure: Regenerate.
9684
9685 2011-02-11 Yao Qi <yao@codesourcery.com>
9686
9687 Build libcommon.a.
9688
9689 * common/Makefile.in: New.
9690 * common/configure.ac: New.
9691 * common/aclocal.m4: New.
9692 * common/configure: Generate.
9693
9694 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9695
9696 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9697 side of the parenthesis.
9698
9699 Merge from GCC:
9700 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9701 * vec.h (VEC_block_remove): Fix comment.
9702
9703 2011-02-08 Michael Snyder <msnyder@vmware.com>
9704
9705 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9706
9707 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9708
9709 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9710 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9711 psubd and paddd.
9712
9713 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 PR 12361.
9716 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9717 phsubsw.
9718 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9719 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9720
9721 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9722
9723 * dwarf2read.c (read_subroutine_type): Set special calling
9724 convention flag for functions compiled by IBM XL C for OpenCL.
9725 * ppc-sysv-tdep.c: Include "dwarf2.h"
9726 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9727 calling convention.
9728 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9729 IBM OpenCL vector types calling convention.
9730 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9731 (ppc_sysv_abi_broken_return_value): Likewise.
9732 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9733 types calling convention.
9734 (ppc64_sysv_abi_return_value): Likewise.
9735 * spu-tdep.c: Include "dwarf2.h"
9736 (spu_return_value): Implement IBM OpenCL vector types calling
9737 convention.
9738
9739 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9740
9741 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9742 correct ABI for AltiVec vector arguments.
9743
9744 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9745
9746 * valprint.c (val_print): Extend comment.
9747 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9748 interface explanation to val_print.
9749 (ada_val_print_array): Adjust comment to current interface.
9750 (print_field_values): Adjust comment to current interface.
9751 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9752 explanation to val_print.
9753 * f-valprint.c (f_val_print): Ditto.
9754 * jv-valprint.c (java_val_print): Ditto.
9755 * m2-valprint.c (m2_val_print): Ditto.
9756 * p-valprint.c (pascal_val_print): Ditto.
9757
9758 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9759
9760 * breakpoint.c (parse_breakpoint_sals): Fix description.
9761
9762 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9763 Oguz Kayral <oguzkayral@gmail.com>
9764
9765 * python/py-inferior.c (python_on_normal_stop): New function.
9766 (python_on_resume): New function.
9767 (python_inferior_exit): New function.
9768 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9769 inferior_exit observers.
9770 * python/py-evtregistry.c: New file.
9771 * python/py-threadevent.c : New file.
9772 * python/py-event.c: New file.
9773 * python/py-evts.c: New file.
9774 * python/py-continueevent.c: New file.
9775 * python/py-bpevent.c: New file.
9776 * python/py-signalevent.c: New file.
9777 * python/py-exetiedevent.c: New file.
9778 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9779 Move struct breakpoint_object from here...
9780 * python/python-internal.h: ... to here.
9781 * python/py-event.h: New file.
9782 * python/py-events.h: New file.
9783 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9784 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9785 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9786 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9787 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9788 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9789 Add build rules for all the above.
9790
9791 2011-02-04 Tom Tromey <tromey@redhat.com>
9792
9793 * dwarf2read.c (dwarf2_section_empty_p): New function.
9794 (dwarf2_read_section): Use dwarf2_section_empty_p.
9795 (dwarf2_section_size): New function.
9796 (dwarf2_get_section_info): Unconditionally read section.
9797 (dwarf2_read_index): Use dwarf2_section_empty_p.
9798 (partial_read_comp_unit_head): Use dwarf2_section_size.
9799 (dwarf2_symbol_mark_computed): Likewise.
9800
9801 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9802
9803 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9804
9805 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9806
9807 * mips-linux-tdep.c: Include xml-syscall.h.
9808 (mips_linux_get_syscall_number): New function.
9809 (mips_linux_init_abi): Add calls to
9810 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9811 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9812 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9813 * syscalls/mips-n32-linux.xml: New file.
9814 * syscalls/mips-n64-linux.xml: New file.
9815 * syscalls/mips-o32-linux.xml: New file.
9816
9817 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9818
9819 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9820 Complain about inverted range entries.
9821 (dwarf2_record_block_ranges): Likewise.
9822
9823 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9824
9825 Fix some typos.
9826 * breakpoint.c (update_watchpoint): Fix name of the
9827 update_global_location_list function.
9828 (print_one_breakpoint): Fix typo.
9829 (_initialize_breakpoint): Remove extra space in hbreak help
9830 string.
9831 * breakpoint.h (struct bp_location) <length>: Fix field
9832 description.
9833
9834 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9835
9836 * regcache.c (registers_changed_ptid): Don't explictly always
9837 clear `current_regcache'. Only clear current_thread_ptid and
9838 current_thread_arch when PTID matches. Only reinit the frame
9839 cache if PTID matches the current inferior_ptid. Move alloca(0)
9840 call to ...
9841 (registers_changed): ... here.
9842
9843 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9844
9845 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9846 starts with __stack_chk_guard as stack guard symbol.
9847
9848 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9849
9850 * disasm.c (compare_lines): Handle the end of sequence markers
9851 within the line table to better support disassembling over
9852 compilation unit boundaries.
9853
9854 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9855
9856 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9857 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9858 implementation even if no symbols are available.
9859 (thumb_analyze_prologue): Update call to skip_prologue_function.
9860 (arm_analyze_prologue): Likewise.
9861
9862 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9863
9864 * arm-tdep.c: Include "observer.h".
9865 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9866 (arm_exidx_data_key): New static variable.
9867 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9868 (struct arm_exidx_data): Likewise.
9869 (arm_exidx_data_free): New function.
9870 (arm_compare_exidx_entries): Likewise.
9871 (arm_obj_section_from_vma): Likewise.
9872 (arm_exidx_new_objfile): Likewise.
9873 (arm_find_exidx_entry): Likewise.
9874 (arm_exidx_fill_cache): Likewise.
9875 (arm_exidx_unwind_sniffer): Likewise.
9876 (arm_exidx_unwind): New global variable.
9877 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9878 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9879 observer. Register arm_exidx_data_key as objfile data.
9880
9881 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9882
9883 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9884 due to accessing uninitialized variable. Fix indentation.
9885
9886 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9887
9888 * c-valprint.c (c_value_print): When doing virtual base pointer
9889 adjustment, create a new value with adjusted contents rather than
9890 changing the contents of the value being printed (and getting it
9891 wrong).
9892
9893 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9894
9895 * xml-support.c (xml_find_attribute): New.
9896 (xinclude_start_include): Use it.
9897 * xml-support.h (xml_find_attribute): Declare.
9898 * memory-map.c (memory_map_start_memory)
9899 (memory_map_start_property): Use xml_find_attribute.
9900 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9901 xml_find_attribute.
9902 * remote.c (start_thread): Use xml_find_attribute.
9903 * solib-target.c (library_list_start_segment)
9904 (library_list_start_section, library_list_start_library)
9905 (library_list_start_list): Use xml_find_attribute.
9906 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9907 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9908 (tdesc_start_field): Use xml_find_attribute.
9909
9910 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9911
9912 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9913 (BUILD_OCL_VTYPES): Update.
9914
9915 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9916
9917 * configure.ac: Work around non-GNU sed limitation when computing
9918 python version number.
9919 * configure: Regenerate.
9920
9921 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9922
9923 Fix debug printing of TYPE_INSTANCE.
9924 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9925 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9926
9927 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9930 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9931 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9932 * ada-operator.inc: Rename the file to ...
9933 * ada-operator.def: ... here, wrap all the entries by macro OP.
9934 * expprint.c (op_name_standard): Remove all the entries. Include
9935 "std-operator.def" instead.
9936 * expression.h (enum exp_opcode): Include "std-operator.def" and
9937 "ada-operator.def". Move all the entries ...
9938 * std-operator.def: ... here, wrap all the entries by macro OP.
9939
9940 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9941
9942 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9943 * breakpoint.c (remove_jit_event_breakpoints): New function.
9944 * jit.c (jit_descriptor_addr): Delete.
9945 (registering_code): Delete.
9946 (clear_int): Delete.
9947 (jit_inferior_data): New variable.
9948 (struct jit_inferior_data): New type.
9949 (get_jit_inferior_data): New function.
9950 (jit_inferior_data_cleanup): New function.
9951 (jit_read_descriptor): Adjust.
9952 (jit_register_code): Adjust.
9953 (jit_breakpoint_re_set_internal): New function; move code here ...
9954 (jit_inferior_init): ... from here.
9955 (jit_breakpoint_re_set): Adjust.
9956 (jit_reset_inferior_data_and_breakpoints): New function.
9957 (jit_inferior_created_observer): Adjust.
9958 (jit_inferior_exit_hook): Adjust.
9959 (jit_executable_changed_observer): New function.
9960 (jit_event_handler): Adjust.
9961 (_initialize_jit): Adjust.
9962
9963 2011-01-31 Michael Snyder <msnyder@vmware.com>
9964
9965 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9966 line.
9967
9968 2011-01-31 Tom Tromey <tromey@redhat.com>
9969
9970 PR python/12216:
9971 * python/python.c (execute_gdb_command): Call
9972 prevent_dont_repeat.
9973 * top.c (suppress_dont_repeat): New global.
9974 (dont_repeat): Use it.
9975 (prevent_dont_repeat): New function.
9976 * command.h (prevent_dont_repeat): Declare.
9977
9978 2011-01-31 Tom Tromey <tromey@redhat.com>
9979
9980 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9981 * python/py-breakpoint.c (bppy_set_silent): Use
9982 breakpoint_set_silent.
9983 (bppy_set_thread): Use breakpoint_set_thread.
9984 (bppy_set_task): Use breakpoint_set_task.
9985 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9986 (breakpoint_set_task): Declare.
9987 (make_breakpoint_silent): Remove.
9988 * breakpoint.c (breakpoint_set_silent): New function.
9989 (breakpoint_set_thread): Likewise.
9990 (breakpoint_set_task): Likewise.
9991 (make_breakpoint_silent): Remove.
9992
9993 2011-01-31 Tom Tromey <tromey@redhat.com>
9994
9995 * breakpoint.h (user_breakpoint_p): Declare.
9996 * breakpoint.c (user_breakpoint_p): New function.
9997 (breakpoint_1): Use it.
9998 (save_breakpoints): Likewise.
9999
10000 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10001
10002 * configure.ac: Add handling of Python distribution on Windows.
10003 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10004 sysconfig variables are not defined, then do not use them.
10005 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10006 instead. On Windows, return all paths using forward-slashes
10007 rather than backslashes.
10008
10009 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10010
10011 * configure.ac: Remove fallback behavior for building
10012 against Python. Remove tweaking of Python include path.
10013 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10014 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10015 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10016 Always restore CPPFLAGS and LIBS after linking test.
10017 * configure: Regenerated.
10018 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10019 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10020 * python/python-internal.h: Adjust includes of Python .h files.
10021
10022 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10023
10024 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10025 in error message.
10026
10027 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10028
10029 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10030 value test.
10031
10032 2011-01-31 Yao Qi <yao@codesourcery.com>
10033
10034 * arm-linux-nat.c: Update calls to regcache_register_status
10035 instead of regcache_valid_p.
10036 * aix-thread.c: Likewise.
10037 * i386gnu-nat.c: Likewise.
10038
10039 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10040
10041 Fix crash.
10042 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10043 touching TYPE_FIELD_ARTIFICIAL.
10044
10045 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10046
10047 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10048 Committers.
10049
10050 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10051
10052 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10053 selected, don't try iterating over the traceframe's blocks.
10054 (tfile_has_stack): If there's no traceframe selected, then there's
10055 no stack.
10056 (tfile_has_registers): If there's no traceframe selected, then
10057 there's no registers.
10058
10059 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10060
10061 * target.c (memory_xfer_partial): No need to restore shadows if we
10062 haven't read anything.
10063
10064 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10065
10066 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10067 and val_print_scalar_formatted.
10068
10069 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10070
10071 * tracepoint.c (tfile_read): New.
10072 (tfile_open): Use it.
10073 (tfile_get_traceframe_address): Use it.
10074 (tfile_trace_find): Use it.
10075 (walk_blocks_callback_func): New typedef.
10076 (match_blocktype): New function.
10077 (traceframe_walk_blocks): New function.
10078 (traceframe_find_block_type): New function.
10079 (tfile_fetch_registers, tfile_xfer_partial)
10080 (tfile_get_trace_state_variable_value): Use
10081 traceframe_find_block_type and tfile_read.
10082
10083 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10084
10085 * remote-mips.c: Add internationalization mark ups. Remove
10086 trailing \n from already marked up strings.
10087
10088 2011-01-26 Tom Tromey <tromey@redhat.com>
10089
10090 * python/py-prettyprint.c (print_string_repr): Clear
10091 'addressprint' option when calling val_print_string.
10092 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10093 option when calling val_print_string.
10094
10095 2011-01-26 Tom Tromey <tromey@redhat.com>
10096
10097 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10098 GDB_PY_LL_ARG.
10099 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10100 macros.
10101 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10102 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10103 (gdb_py_long_as_ulongest): New defines.
10104 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10105 (gdb_py_int_as_long): Declare.
10106 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10107 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10108 (valpy_long): Add comment.
10109 * python/py-utils.c (get_addr_from_python): Use
10110 gdb_py_long_as_ulongest. Handle overflow properly.
10111 (gdb_py_object_from_longest): New function.
10112 (gdb_py_object_from_ulongest): Likewise.
10113 (gdb_py_int_as_long): Likewise.
10114 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10115 * python/py-symtab.c (salpy_get_pc): Use
10116 gdb_py_long_from_ulongest.
10117 (salpy_get_line): Use PyInt_FromLong.
10118 * python/py-param.c (set_parameter_value): Use
10119 gdb_py_int_as_long.
10120 * python/py-lazy-string.c (stpy_get_address): Use
10121 gdb_py_long_from_ulongest.
10122 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10123 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10124 * python/py-breakpoint.c (bppy_set_thread): Use
10125 gdb_py_int_as_long.
10126 (bppy_set_task): Likewise.
10127 (bppy_set_ignore_count): Likewise.
10128 (bppy_set_hit_count): Likewise.
10129 * python/py-block.c (blpy_get_start): Use
10130 gdb_py_object_from_ulongest.
10131 (blpy_get_end): Likewise.
10132 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10133
10134 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10135
10136 PR/symtab 11766:
10137 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10138 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10139 equality test for objfile, initialize addr_low if needed.
10140
10141 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10142
10143 * tui/tui-regs.c (tui_register_format): Remove dead code.
10144
10145 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10146
10147 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10148 instead of print_scalar_formatted.
10149 (print_scalar_formatted): Don't handle 's' format strings here,
10150 and add an assertion that we never see such format here.
10151 * valprint.h (val_print_scalar_formatted): Declare.
10152 * valprint.c (val_print_scalar_formatted): New.
10153 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10154 instead of print_scalar_formatted.
10155 * jv-valprint.c (java_val_print): Ditto.
10156 * p-valprint.c (pascal_val_print): Ditto.
10157 * ada-valprint.c (ada_val_print_1): Ditto.
10158 * f-valprint.c (f_val_print): Ditto.
10159 * infcmd.c (registers_info): Ditto.
10160 * m2-valprint.c (m2_val_print): Ditto.
10161
10162 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10163
10164 * m2-valprint.c (print_unbounded_array): Pass
10165 value_contents_for_printing rather than value_contents, to
10166 m2_print_array_contents. Also pass in the value.
10167
10168 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10169
10170 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10171 (save_gdb_index_command): Switch to .gdb_index version 4.
10172
10173 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10174
10175 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10176 than frame_register, and always pass a valid value to val_print.
10177
10178 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10179
10180 Centralize printing "<optimized out>".
10181
10182 * valprint.h (val_print_optimized_out): Declare.
10183 * cp-valprint.c (cp_print_value_fields): Use
10184 val_print_optimized_out.
10185 * jv-valprint.c (java_print_value_fields): Ditto.
10186 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10187 * printcmd.c (print_formatted): Ditto.
10188 * valprint.c (valprint_check_validity): Ditto.
10189 (value_check_printable): Ditto.
10190 (val_print_optimized_out): New.
10191
10192 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10193
10194 * infcmd.c (default_print_registers_info): Allocate values so to
10195 never pass a NULL value to val_print.
10196
10197 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10198
10199 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10200 boolean. Make sure to always pass a value that matches the
10201 contents buffer to callees. Preserve `address' for following
10202 iterations.
10203 * value.c (value_contents_for_printing_const): New.
10204 (value_address): Constify value argument.
10205 * value.h (value_contents_for_printing_const): Declare.
10206 (value_address): Constify value argument.
10207
10208 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10209
10210 * regcache.c (struct regcache_descr): Rename
10211 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10212 and sizeof_cooked_register_valid_p to
10213 sizeof_cooked_register_status.
10214 (init_regcache_descr): Adjust.
10215 (struct regcache): Rename register_valid_p field to
10216 register_status.
10217 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10218 (do_cooked_read): Adjust.
10219 (regcache_valid_p): Rename to ...
10220 (regcache_register_status): ... this. Adjust.
10221 (regcache_invalidate): Adjust.
10222 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10223 Adjust.
10224 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10225 as unavailable, not valid.
10226 (regcache_dump): Adjust.
10227 * regcache.h (enum register_status): New.
10228 (regcache_register_status): Declare.
10229 (regcache_invalidate): Delete declaration.
10230 * corelow.c (get_core_registers): Adjust.
10231 * tracepoint.c (tfile_fetch_registers): Adjust.
10232 * trad-frame.c (REG_VALUE): Rename to ...
10233 (TF_REG_VALUE): ... this.
10234 (REG_UNKNOWN): Rename to ...
10235 (TF_REG_UNKNOWN): ... this.
10236 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10237 * mi/mi-main.c (register_changed_p): Adjust.
10238
10239 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10240
10241 * regcache.c (struct regcache_descr): Remove outdated comment.
10242 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10243 overallocate hack.
10244 (regcache_xmalloc): Rename to ...
10245 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10246 Allocate the regcache type accordingly.
10247 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10248 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10249 cooked registers, not raw.
10250 (regcache_dup_no_passthrough): Delete.
10251 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10252 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10253 mention obsolete write_register_bytes.
10254 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10255
10256 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10257
10258 Stop remote_read_bytes from handling partial reads itself.
10259
10260 * remote-fileio.c: Include target.h.
10261 (remote_fileio_write_bytes): Delete.
10262 (remote_fileio_func_open, remote_fileio_func_write)
10263 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10264 target_read_memory.
10265 (remote_fileio_func_stat): Use target_read_memory and
10266 target_write_memory.
10267 (remote_fileio_func_gettimeofday): Use target_write_memory.
10268 (remote_fileio_func_system): Use target_read_memory.
10269 * remote.c (remote_write_bytes): Make it static.
10270 (remote_read_bytes): Don't handle partial reads here.
10271 * remote.h (remote_read_bytes): Delete declaration.
10272
10273 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10274
10275 Simplify XML parsing a bit.
10276
10277 * xml-support.h (gdb_xml_parse_quick): Declare.
10278 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10279 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10280 parameter.
10281 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10282 gdb_xml_create_parser_and_cleanup_1.
10283 (gdb_xml_parse_quick): New.
10284 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10285 * osdata.c (osdata_parse): Ditto.
10286 * remote.c (remote_threads_info): Ditto.
10287 * solib-target.c (solib_target_parse_libraries): Ditto.
10288 * xml-syscall.c (syscall_parse_xml): Ditto.
10289 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10290
10291 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10292
10293 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10294 with remote-mips.o added to gdb_target_obs.
10295 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10296
10297 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10298
10299 * ada-valprint.c (val_print_packed_array_elements): Pass the
10300 correct struct value to val_print.
10301 (ada_val_print_1): Ditto.
10302
10303 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10304
10305 Don't lose embedded_offset in printing routines throughout.
10306
10307 * valprint.h (val_print_array_elements): Change prototype.
10308 * valprint.c (val_print_array_elements): Add `embedded_offset'
10309 parameter, and adjust to pass it down to val_print, while passing
10310 `valaddr' or `address' unmodified. Take embedded_offset into
10311 account when checking repetitions.
10312 * c-valprint.c (c_val_print): Pass embedded_offset to
10313 val_print_array_elements instead of adjusting `valaddr' and
10314 `address'.
10315 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10316 embedded_offset to val_print_array_elements instead of adjusting
10317 `valaddr'.
10318 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10319 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10320 val_print_array_elements and pascal_object_print_value_fields
10321 instead of adjusting `valaddr'.
10322 (pascal_object_print_value_fields): Add `offset' parameter, and
10323 adjust to use it.
10324 (pascal_object_print_value): Add `offset' parameter, and adjust to
10325 use it.
10326 (pascal_object_print_static_field): Use
10327 value_contents_for_printing/value_embedded_offset, rather than
10328 value_contents.
10329 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10330 parameter, and adjust to use it. Use
10331 value_contents_for_printing/value_embedded_offset, rather than
10332 value_contents.
10333 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10334 (ada_val_print_array): Add `offset' parameter, and adjust to use
10335 it.
10336 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10337 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10338 Instead work with offsets. Use
10339 value_contents_for_printing/value_embedded_offset, rather than
10340 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10341 and use value_from_pointer to extract a target pointer, rather
10342 than value_from_longest.
10343 (print_variant_part): Add `offset' parameter. Replace
10344 `outer_valaddr' parameter by a new `outer_offset' parameter.
10345 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10346 (ada_value_print): Use
10347 value_contents_for_printing/value_embedded_offset, rather than
10348 value_contents.
10349 (print_record): Add `offset' parameter, and adjust to pass it
10350 down.
10351 (print_field_values): Add `offset' parameter. Replace
10352 `outer_valaddr' parameter by a new `outer_offset' parameter.
10353 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10354 Use value_contents_for_printing/value_embedded_offset, rather than
10355 value_contents.
10356 * d-valprint.c (dynamic_array_type): Use
10357 value_contents_for_printing/value_embedded_offset, rather than
10358 value_contents.
10359 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10360 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10361 (java_print_value_fields): Take `offset' into account. Don't
10362 re-adjust `valaddr'. Instead pass down adjusted offsets.
10363 (java_val_print): Take `embedded_offset' into account. Pass it to
10364 java_print_value_fields.
10365 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10366 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10367 down adjusted offsets.
10368 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10369 (f_val_print): Take `embedded_offset' into account.
10370
10371 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10372
10373 * inflow.c: Include "gdbcmd.h".
10374 (interactive_mode): New static global, moved here from top.c.
10375 (show_interactive_mode): New function, moved here from top.c.
10376 use gdb_has_a_terminal instead of input_from_terminal_p to
10377 determine the current mode.
10378 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10379 setting.
10380 (_initialize_inflow): Add the "set/show interactive-mode"
10381 commands. Moved here from top.c, after having adjusted slightly
10382 the help text.
10383 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10384 to inflow.c.
10385 (input_from_terminal_p): Remove handling of "interactive-mode"
10386 setting, moved to infow.c.
10387 (init_main): Remove creation of the "set/show interactive-mode"
10388 commands, moved to inflow.c.
10389
10390 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10391
10392 * NEWS: Add entry for native ia64-hpux support.
10393
10394 2011-01-19 Tom Tromey <tromey@redhat.com>
10395
10396 PR mi/8618:
10397 * thread.c (free_thread): Free 'name'.
10398 (print_thread_info): Emit thread name. Change CLI output.
10399 (thread_name_command): New function.
10400 (do_captured_thread_select): Emit newline.
10401 (_initialize_thread): Register 'thread name' command.
10402 * target.h (struct target_ops) <to_thread_name>: New field.
10403 (target_thread_name): New macro.
10404 * target.c (update_current_target): Handle to_thread_name.
10405 * python/py-infthread.c (thpy_get_name): New function.
10406 (thpy_set_name): Likewise.
10407 (thread_object_getset): Add "name".
10408 * linux-nat.c (linux_nat_thread_name): New function.
10409 (linux_nat_add_target): Set to_thread_name.
10410 * gdbthread.h (struct thread_info) <name>: New field.
10411
10412 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10413
10414 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10415 (ada_val_print_1): Likewise.
10416
10417 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10418
10419 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10420 upper limit address is not greater than the function end address
10421 when the upper limit could not be computed using the debugging
10422 info.
10423
10424 2011-01-17 Tom Tromey <tromey@redhat.com>
10425
10426 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10427 get_regcomp_error.
10428 * utils.c: Include gdb_regex.h.
10429 (do_regfree_cleanup): New function.
10430 (make_regfree_cleanup): Likewise.
10431 (get_regcomp_error): Likewise.
10432 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10433
10434 2011-01-17 Tom Tromey <tromey@redhat.com>
10435
10436 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10437 re_compile_fastmap.
10438
10439 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10440
10441 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10442 for internal variables.
10443 (last_was_structop): New static variable.
10444 (COMPLETE): New token.
10445 (field_exp): New rule to group all '.' suffix handling.
10446 Add mark_struct_expression calls when approriate to be able
10447 to correctly find fields for completion.
10448 (yylex): Adapt to handle field completion and set INTVAR when
10449 required.
10450
10451 2011-01-14 Yao Qi <yao@codesourcery.com>
10452
10453 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10454 save_reggroup, restore_reggroup and all_reggroup.
10455
10456 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10457
10458 * ada-valprint. (ada_printchar): Use the correct type length
10459 in call to ada_emit_char.
10460 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10461
10462 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10463
10464 * solib-som.h (hpux_major_release): Declare variable here.
10465 * solib-som.c: Remove <sys/utsname.h> header.
10466 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10467 (hpux_major_release): Make global, change default value to
10468 DEFAULT_HPUX_MAJOR_RELEASE.
10469 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10470 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10471 Add "solib-som.h" header.
10472 (set_hpux_major_release): New function.
10473 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10474
10475 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10476
10477 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10478
10479 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10480
10481 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10482 new-line at end of warning message.
10483 (ia64_hpux_store_register): Remove trailing new-line at end of
10484 error message.
10485 * ia64-hpux-tdep.c: Rephrase comment.
10486 * solib-ia64-hpux.c (struct dld_info): Change type of field
10487 dld_flags from "long long" to ULONGEST.
10488
10489 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10490
10491 * target.h (deprecated_child_ops): Delete declaration.
10492 * target.c (deprecated_child_ops): Delete definition.
10493
10494 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10495
10496 * Makefile.in (hpux-thread.o): Delete rule.
10497 * configure.ac: Don't check for HPUX DCE threads support.
10498 * configure, config.in: Regenerate.
10499 * hppa-hpux-nat.c (child_suppress_run): Delete.
10500 (hppa_hpux_child_can_run): Delete.
10501 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10502 * hpux-thread.c: Delete.
10503
10504 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10505
10506 * hpux-thread.c (hpux_pid_to_str): Delete.
10507
10508 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10509
10510 * ada-valprint.c (ada_emit_char): Remove strange code.
10511 Check that c is <= UCHAR_MAX before passing it to isascii.
10512 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10513
10514 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10515
10516 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10517 to the case where instream is stdin.
10518
10519 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10520
10521 * ia64-tdep.h (struct regcache): Forward declare.
10522 (struct ia64_infcall_ops): New struct type.
10523 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10524 and "infcall_ops".
10525 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10526 Renames ia64_find_global_pointer.
10527 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10528 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10529 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10530 methods.
10531 (ia64_infcall_ops): New static global constant.
10532 (ia64_gdbarch_init): Set tdep->infcall_ops.
10533 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10534 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10535 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10536 (ia64_hpux_dummy_code): New static global constant.
10537 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10538 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10539 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10540 New function.
10541 (ia64_hpux_infcall_ops): New static global constant.
10542 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10543 for inferior function calls to work properly on ia64-hpux.
10544
10545 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10546
10547 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10548 * ia64-tdep.h (struct frame_info): forward declaration.
10549 (struct gdbarch_tdep): Add field size_of_register_frame.
10550 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10551 to determine the size of the register frame.
10552 (ia64_size_of_register_frame): New function.
10553 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10554 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10555 (IA64_HPUX_UREG_REASON): New macro.
10556 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10557 New functions.
10558 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10559 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10560 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10561 objects.
10562
10563 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10564
10565 Add support for ia64-hpux.
10566 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10567 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10568
10569 * configure.host: Add handling for ia64-hpux hosts. Add associated
10570 floatformats.
10571 * configure.tgt: Add handling for ia64-hpux targets.
10572 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10573 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10574 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10575
10576 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10577
10578 [ttrace] Compute thread list immediately after attach.
10579 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10580 New subprogram.
10581 (inf_ttrace_attach): Use it.
10582
10583 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10584
10585 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10586 if we could not determine the frame's function address. Instead,
10587 use the frame's PC, and then continue.
10588
10589 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10590
10591 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10592 not already defined.
10593
10594 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10595
10596 * ia64-tdep.c (ia64_struct_type_p): New function.
10597 (ia64_extract_return_value): Handle integral values that are
10598 less than 8 bytes long.
10599 (ia64_push_dummy_call): Likewise.
10600
10601 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10602
10603 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10604 floatformat_ia64_ext.
10605 (floatformat_ia64_ext_big): New static const.
10606 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10607
10608 2011-01-12 Tom Tromey <tromey@redhat.com>
10609
10610 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10611 messages.
10612 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10613 (mi_cmd_thread_list_ids): Likewise.
10614 (mi_cmd_data_list_changed_registers): Likewise.
10615 (mi_cmd_data_list_register_values): Likewise.
10616 (mi_cmd_data_write_register_values): Likewise.
10617 (mi_cmd_data_evaluate_expression): Likewise.
10618 (mi_cmd_data_read_memory): Likewise.
10619 (mi_cmd_data_read_memory_bytes): Likewise.
10620 (mi_cmd_data_write_memory): Likewise.
10621 (mi_cmd_enable_timings): Likewise.
10622 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10623 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10624 (mi_cmd_var_delete): Likewise.
10625 (mi_cmd_var_set_format): Likewise.
10626 (mi_cmd_var_show_format): Likewise.
10627 (mi_cmd_var_info_num_children): Likewise.
10628 (mi_cmd_var_list_children): Likewise.
10629 (mi_cmd_var_info_type): Likewise.
10630 (mi_cmd_var_info_expression): Likewise.
10631 (mi_cmd_var_show_attributes): Likewise.
10632 (mi_cmd_var_assign): Likewise.
10633 (mi_cmd_var_update): Likewise.
10634 (mi_cmd_enable_pretty_printing): Likewise.
10635 (mi_cmd_var_set_update_range): Likewise.
10636 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10637 messages.
10638 (mi_cmd_target_file_put): Likewise.
10639 (mi_cmd_target_file_delete): Likewise.
10640 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10641 messages.
10642 (mi_cmd_stack_info_depth): Likewise.
10643 (mi_cmd_stack_list_locals): Likewise.
10644 (mi_cmd_stack_list_args): Likewise.
10645 (mi_cmd_stack_select_frame): Likewise.
10646 (mi_cmd_stack_select_frame): Likewise.
10647 (mi_cmd_stack_info_frame): Likewise.
10648 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10649 messages.
10650 (mi_cmd_file_list_exec_source_files): Likewise.
10651 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10652 (mi_cmd_env_cd): Likewise.
10653 (mi_cmd_env_path): Likewise.
10654 (mi_cmd_env_dir): Likewise.
10655 (mi_cmd_inferior_tty_show): Likewise.
10656 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10657 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10658 (mi_cmd_break_watch): Likewise.
10659
10660 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10661
10662 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10663 (ppc_linux_insert_hw_breakpoint): Likewise.
10664 (ppc_linux_remove_hw_breakpoint): Likewise.
10665 (ppc_linux_insert_watchpoint): Likewise.
10666
10667 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10668 Jan Kratochvil <jan.kratochvil@redhat.com>
10669
10670 PR fortran/11104 and DWARF unbound arrays detection.
10671 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10672 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10673 unspecified upper bound.
10674 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10675 variables array_size_array, tmp_type and offset_item. New variable
10676 array. Remove call to f77_get_upperbound. New variables array_type
10677 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10678 the final call to deprecated_set_value_type.
10679
10680 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10681
10682 Make value allocations more lazy.
10683 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10684 instead of allocate_value and set_value_lazy when possible.
10685 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10686 instead of allocate_value and set_value_lazy.
10687 * findvar.c (value_of_register_lazy): Likewise.
10688 (read_var_value): Remove V preallocation, call just check_typedef in
10689 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10690 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10691 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10692 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10693 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10694 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10695 the end, remove set_value_lazy there.
10696 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10697 instead of allocate_value and set_value_lazy when possible.
10698 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10699 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10700 of allocate_value and set_value_lazy.
10701 (value_from_contents_and_address): Use allocate_value_lazy instead of
10702 allocate_value and set_value_lazy when possible.
10703
10704 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10705
10706 * disasm.c (dump_insns): Support dumping opcodes for MI.
10707 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10708 dumping of instruction opcodes.
10709
10710 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10711
10712 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10713 appropiately.
10714
10715 2011-01-11 Tom Tromey <tromey@redhat.com>
10716
10717 * thread.c (do_captured_thread_select): Emit newline before
10718 printing frame.
10719
10720 2011-01-11 Michael Snyder <msnyder@vmware.com>
10721
10722 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10723 * score-tdep.c: Ditto.
10724 * score-tdep.h: Ditto.
10725 * ser-base.c: Ditto.
10726 * ser-go32.c: Ditto.
10727 * serial.c: Ditto.
10728 * serial.h: Ditto.
10729 * ser-mingw.c: Ditto.
10730 * ser-pipe.c: Ditto.
10731 * ser-tcp.c: Ditto.
10732 * ser-unix.c: Ditto.
10733 * sh64-tdep.c: Ditto.
10734 * shnbsd-nat.c: Ditto.
10735 * sh-tdep.c: Ditto.
10736 * sh-tdep.h: Ditto.
10737 * solib.c: Ditto.
10738 * solib-darwin.c: Ditto.
10739 * solib-frv.c: Ditto.
10740 * solib.h: Ditto.
10741 * solib-irix.c: Ditto.
10742 * solib-osf.c: Ditto.
10743 * solib-pa64.c: Ditto.
10744 * solib-som.c: Ditto.
10745 * solib-spu.c: Ditto.
10746 * solib-sunos.c: Ditto.
10747 * solib-svr4.c: Ditto.
10748 * solist.h: Ditto.
10749 * sol-thread.c: Ditto.
10750 * somread.c: Ditto.
10751 * source.c: Ditto.
10752 * source.h: Ditto.
10753 * sparc64-linux-tdep.c: Ditto.
10754 * sparc64-tdep.c: Ditto.
10755 * sparc-linux-nat.c: Ditto.
10756 * sparc-linux-tdep.c: Ditto.
10757 * sparc-sol2-nat.c: Ditto.
10758 * sparc-sol2-tdep.c: Ditto.
10759 * sparc-tdep.c: Ditto.
10760 * sparc-tdep.h: Ditto.
10761 * spu-tdep.c: Ditto.
10762 * stabsread.c: Ditto.
10763 * stabsread.h: Ditto.
10764 * stack.c: Ditto.
10765 * symfile.c: Ditto.
10766 * symfile.h: Ditto.
10767 * symmisc.c: Ditto.
10768 * symtab.c: Ditto.
10769 * symtab.h: Ditto.
10770 * target.c: Ditto.
10771 * target-descriptions.c: Ditto.
10772 * target-descriptions.h: Ditto.
10773 * target.h: Ditto.
10774 * target-memory.c: Ditto.
10775 * terminal.h: Ditto.
10776 * thread.c: Ditto.
10777 * top.c: Ditto.
10778 * tracepoint.c: Ditto.
10779 * tracepoint.h: Ditto.
10780 * trad-frame.h: Ditto.
10781 * typeprint.c: Ditto.
10782
10783 2011-01-11 Michael Snyder <msnyder@vmware.com>
10784
10785 * ui-file.c: Comment cleanup, mostly periods and spaces.
10786 * ui-file.h: Ditto.
10787 * ui-out.c: Ditto.
10788 * ui-out.h: Ditto.
10789 * utils.c: Ditto.
10790 * v850-tdep.c: Ditto.
10791 * valarith.c: Ditto.
10792 * valops.c: Ditto.
10793 * valprint.c: Ditto.
10794 * valprint.h: Ditto.
10795 * value.c: Ditto.
10796 * value.h: Ditto.
10797 * varobj.c: Ditto.
10798 * varobj.h: Ditto.
10799 * vax-tdep.c: Ditto.
10800 * vec.c: Ditto.
10801 * vec.h: Ditto.
10802 * version.h: Ditto.
10803 * windows-nat.c: Ditto.
10804 * windows-tdep.c: Ditto.
10805 * xcoffread.c: Ditto.
10806 * xcoffsolib.c: Ditto.
10807 * xml-support.c: Ditto.
10808 * xstormy16-tdep.c: Ditto.
10809 * xtensa-tdep.c: Ditto.
10810 * xtensa-tdep.h: Ditto.
10811
10812 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10813
10814 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10815 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10816
10817 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10818 Thiago Jung Bauermann <bauerman@br.ibm.com>
10819
10820 Implement support for PowerPC BookE ranged watchpoints.
10821 * breakpoint.h
10822 (struct breakpoint_ops) <resources_needed>: New method.
10823 Initialize to NULL in all existing breakpoint_ops instances.
10824 (struct breakpoint) <exact>: New field.
10825 (target_exact_watchpoints): Declare external global.
10826 * breakpoint.c (target_exact_watchpoints): New global flag.
10827 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10828 b->enable_state to bp_enabled before calling
10829 hw_watchpoint_used_count.
10830 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10831 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10832 if available.
10833 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10834 if the watchpoint is exact.
10835 (resources_needed_watchpoint): New function.
10836 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10837 (watch_command_1): Set b->exact if the user asked for an exact
10838 watchpoint and one can be set.
10839 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10840 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10841 the user asks for an exact watchpoint and one can be set. Return
10842 number of needed debug registers to watch the expression.
10843 * gdbtypes.c (is_scalar_type): New function, based on
10844 valprint.c:scalar_type_p.
10845 (is_scalar_type_recursive): New function.
10846 * gdbtypes.h (is_scalar_type_recursive): Declare.
10847 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10848 handle regions when ranged watchpoints are available.
10849 (create_watchpoint_request): New function.
10850 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10851 create_watchpoint_request.
10852 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10853 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10854 `set powerpc' and `show powerpc' commands.
10855 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10856 Mention documentation comment in the target macro.
10857 (target_region_ok_for_hw_watchpoint): Document return value.
10858
10859 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10860
10861 * breakpoint.c (update_watchpoint): Decide on using a software or
10862 hardware watchpoint after the bp_locations are created.
10863
10864 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10865
10866 Convert hardware watchpoints to use breakpoint_ops.
10867 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10868 <insert_location>: ... this. Return int instead of void.
10869 Accept pointer to struct bp_location instead of pointer to
10870 struct breakpoint. Adapt all implementations.
10871 (breakpoint_ops) <remove>: Rename to...
10872 <remove_location>: ... this. Accept pointer to struct bp_location
10873 instead of pointer to struct breakpoint. Adapt all implementations.
10874 * breakpoint.c (insert_catchpoint): Delete function.
10875 (insert_bp_location): Call the watchpoint or catchpoint's
10876 breakpoint_ops.insert method.
10877 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10878 breakpoint_ops.remove method.
10879 (insert_watchpoint, remove_watchpoint): New functions.
10880 (watchpoint_breakpoint_ops): New structure.
10881 (watch_command_1): Initialize the OPS field.
10882 * inf-child.c (inf_child_insert_fork_catchpoint)
10883 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10884 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10885 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10886 Delete functions.
10887 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10888 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10889 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10890 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10891 * target.c (update_current_target): Change default implementation of
10892 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10893 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10894 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10895 to_set_syscall_catchpoint to return_one.
10896 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10897 (debug_to_insert_exec_catchpoint): Report return value.
10898 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10899 (to_insert_exec_catchpoint): Change declaration to return int instead
10900 of void.
10901
10902 2011-01-11 Michael Snyder <msnyder@vmware.com>
10903
10904 * arm-tdep.c: Internationalization.
10905 * c-lang.c: Ditto.
10906 * charset.c: Ditto.
10907 * fork-child.c: Ditto.
10908 * nto-procfs.c: Ditto.
10909 * ppc-sysv-tdep.c: Ditto.
10910 * procfs.c: Ditto.
10911 * remote-mips.c: Ditto.
10912 * remote.c: Ditto.
10913 * rs6000-nat.c: Ditto.
10914 * rs6000-tdep.c: Ditto.
10915 * target.c: Ditto.
10916 * valops.c: Ditto.
10917 * value.c: Ditto.
10918 * xml-support.c: Ditto.
10919 * mi/mi-cmd-break.c: Ditto.
10920 * mi/mi-cmd-var.c: Ditto.
10921 * mi/mi-interp.c: Ditto.
10922 * mi/mi-main.c: Ditto.
10923
10924 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10925
10926 * remote-sim.c (gdbsim_store_register): Update API to
10927 sim_store_register to check more error conditions.
10928
10929 2011-01-10 Michael Snyder <msnyder@vmware.com>
10930
10931 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10932 * nto-tdep.c: Ditto.
10933 * nto-tdep.h: Ditto.
10934 * objc-exp.y: Ditto.
10935 * objc-lang.c: Ditto.
10936 * objfiles.c: Ditto.
10937 * objfiles.h: Ditto.
10938 * observer.c: Ditto.
10939 * opencl-lang.c: Ditto.
10940 * osabi.c: Ditto.
10941 * parse.c: Ditto.
10942 * parser-defs.h: Ditto.
10943 * p-exp.y: Ditto.
10944 * p-lang.c: Ditto.
10945 * posix-hdep.c: Ditto.
10946 * ppcbug-rom.c: Ditto.
10947 * ppc-linux-nat.c: Ditto.
10948 * ppc-linux-tdep.c: Ditto.
10949 * ppc-linux-tdep.h: Ditto.
10950 * ppcnbsd-tdep.c: Ditto.
10951 * ppcobsd-tdep.c: Ditto.
10952 * ppcobsd-tdep.h: Ditto.
10953 * ppc-sysv-tdep.c: Ditto.
10954 * ppc-tdep.h: Ditto.
10955 * printcmd.c: Ditto.
10956 * proc-abi.c: Ditto.
10957 * proc-flags.c: Ditto.
10958 * procfs.c: Ditto.
10959 * proc-utils.h: Ditto.
10960 * progspace.h: Ditto.
10961 * prologue-value.c: Ditto.
10962 * prologue-value.h: Ditto.
10963 * psympriv.h: Ditto.
10964 * psymtab.c: Ditto.
10965 * p-typeprint.c: Ditto.
10966 * p-valprint.c: Ditto.
10967 * ravenscar-sparc-thread.c: Ditto.
10968 * ravenscar-thread.c: Ditto.
10969 * ravenscar-thread.h: Ditto.
10970 * record.c: Ditto.
10971 * regcache.c: Ditto.
10972 * regcache.h: Ditto.
10973 * remote.c: Ditto.
10974 * remote-fileio.c: Ditto.
10975 * remote-fileio.h: Ditto.
10976 * remote.h: Ditto.
10977 * remote-m32r-sdi.c: Ditto.
10978 * remote-mips.c: Ditto.
10979 * remote-sim.c: Ditto.
10980 * rs6000-aix-tdep.c: Ditto.
10981 * rs6000-nat.c: Ditto.
10982 * rs6000-tdep.c: Ditto.
10983
10984 2011-01-10 Michael Snyder <msnyder@vmware.com>
10985
10986 * charset.c (validate): Internationalization.
10987 * coffread.c (read_one_sym): Ditto.
10988 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10989 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10990 * inflow.c (new_tty): Ditto.
10991 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10992 * m32c-tdep.c (m32c_return_value): Ditto.
10993 * mep-tdep.c (mep_store_return_value): Ditto.
10994 * score-tdep.c (score7_fetch_insn): Ditto.
10995 * ser-mingw.c (pipe_windows_open): Ditto.
10996 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10997 * spu-tdep.c (spu_register_type): Ditto.
10998 * tracepoint.c (trace_find_command): Ditto.
10999 * valarith.c (value_pos): Ditto.
11000
11001 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11002
11003 * ada-valprint.c (printstr): Minor comment reformatting.
11004
11005 2011-01-08 Michael Snyder <msnyder@vmware.com>
11006
11007 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11008 markup.
11009
11010 2011-01-08 Michael Snyder <msnyder@vmware.com>
11011
11012 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11013 * hppa-hpux-tdep.c: Ditto.
11014 * hppa-linux-nat.c: Ditto.
11015 * hppa-linux-tdep.c: Ditto.
11016 * hppanbsd-tdep.c: Ditto.
11017 * hppa-tdep.c: Ditto.
11018 * hppa-tdep.h: Ditto.
11019 * hpux-thread.c: Ditto.
11020 * i386-cygwin-tdep.c: Ditto.
11021 * i386-darwin-nat.c: Ditto.
11022 * i386gnu-nat.c: Ditto.
11023 * i386-linux-nat.c: Ditto.
11024 * i386-linux-tdep.c: Ditto.
11025 * i386-nat.c: Ditto.
11026 * i386-nat.h: Ditto.
11027 * i386nbsd-tdep.c: Ditto.
11028 * i386-sol2-nat.c: Ditto.
11029 * i386-stub.c: Ditto.
11030 * i386-tdep.c: Ditto.
11031 * i386-tdep.h: Ditto.
11032 * i387-tdep.c: Ditto.
11033 * ia64-linux-nat.c: Ditto.
11034 * ia64-linux-tdep.c: Ditto.
11035 * ia64-tdep.c: Ditto.
11036 * infcall.c: Ditto.
11037 * infcall.h: Ditto.
11038 * infcmd.c: Ditto.
11039 * inferior.c: Ditto.
11040 * inferior.h: Ditto.
11041 * infloop.c: Ditto.
11042 * inflow.c: Ditto.
11043 * infrun.c: Ditto.
11044 * interps.c: Ditto.
11045 * interps.h: Ditto.
11046 * iq2000-tdep.c: Ditto.
11047 * irix5-nat.c: Ditto.
11048 * jit.c: Ditto.
11049 * jit.h: Ditto.
11050 * jv-exp.y: Ditto.
11051 * jv-lang.c: Ditto.
11052 * jv-lang.h: Ditto.
11053 * jv-typeprint.c: Ditto.
11054 * jv-valprint.c: Ditto.
11055 * language.c: Ditto.
11056 * language.h: Ditto.
11057 * linespec.c: Ditto.
11058 * linux-fork.c: Ditto.
11059 * linux-nat.c: Ditto.
11060 * linux-thread-db.c: Ditto.
11061 * lm32-tdep.c: Ditto.
11062
11063 2011-01-08 Michael Snyder <msnyder@vmware.com>
11064
11065 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11066 * m2-lang.c: Ditto.
11067 * m2-typeprint.c: Ditto.
11068 * m2-valprint.c: Ditto.
11069 * m32c-tdep.c: Ditto.
11070 * m32r-linux-nat.c: Ditto.
11071 * m32r-rom.c: Ditto.
11072 * m32r-tdep.c: Ditto.
11073 * m32r-tdep.h: Ditto.
11074 * m68hc11-tdep.c: Ditto.
11075 * m58klinux-nat.c: Ditto.
11076 * m68k-tdep.c: Ditto.
11077 * m88k-tdep.c: Ditto.
11078 * m88k-tdep.h: Ditto.
11079 * machoread.c: Ditto.
11080 * macrocmd.c: Ditto.
11081 * macroexp.c: Ditto.
11082 * macrotab.c: Ditto.
11083 * main.c: Ditto.
11084 * maint.c: Ditto.
11085 * mdebugread.c: Ditto.
11086 * mdebugread.h: Ditto.
11087 * memattr.c: Ditto.
11088 * memattr.h: Ditto.
11089 * memory-map.h: Ditto.
11090 * mep-tdep.c: Ditto.
11091 * microblaze-rom.c: Ditto.
11092 * microblaze-tdep.c: Ditto.
11093 * minsyms.c: Ditto.
11094 * mips-irix-tdep.c: Ditto.
11095 * mips-linux-nat.c: Ditto.
11096 * mips-linux-tdep.c: Ditto.
11097 * mips-linux-tdep.h: Ditto.
11098 * mipsnbsd-nat.c: Ditto.
11099 * mipsnbsd-tdep.c: Ditto.
11100 * mipsread.c: Ditto.
11101 * mips-tdep.c: Ditto.
11102 * mips-tdep.h: Ditto.
11103 * mn10300-linux-tdep.c: Ditto.
11104 * mn10300-tdep.c: Ditto.
11105 * mn10300-tdep.h: Ditto.
11106 * monitor.c: Ditto.
11107 * monitor.h: Ditto.
11108 * moxie-tdep.c: Ditto.
11109 * moxie-tdep.h: Ditto.
11110 * mt-tdep.c: Ditto.
11111
11112 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11113
11114 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11115
11116 2011-01-08 Robert Millan <rmh@gnu.org>
11117
11118 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11119
11120 2011-01-07 Michael Snyder <msnyder@vmware.com>
11121
11122 * charset.c (_initialize_charset): Fix typo in string.
11123
11124 2011-01-07 Michael Snyder <msnyder@vmware.com>
11125
11126 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11127 for i18n.
11128 * tui/tui-layout.c (tui_set_layout_for_display_command):
11129 Split line so that operator goes to beginning of line.
11130 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11131 assignment out of if statement.
11132
11133 2011-01-07 Michael Snyder <msnyder@vmware.com>
11134
11135 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11136 * ada-lang.h: Ditto.
11137 * ada-tasks.c: Ditto.
11138 * ada-valprint.c: Ditto.
11139 * aix-threads.c: Ditto.
11140 * alpha-linux-nat.c: Ditto.
11141 * alpha-linux-tdep.c: Ditto.
11142 * alpha-mdebug-tdep.c: Ditto.
11143 * alpha-nat.c: Ditto.
11144 * alpha-osf1-tdep.c: Ditto.
11145 * alpha-tdep.c: Ditto.
11146 * alphabsd-nat.c: Ditto.
11147 * alphabsd-tdep.c: Ditto.
11148 * amd64-darwin-tdep.c: Ditto.
11149 * amd64-linux-nat.c: Ditto.
11150 * amd64-linux-tdep.c: Ditto.
11151 * amd64-sol2-tdep.c: Ditto.
11152 * amd64-tdep.c: Ditto.
11153 * amd64-fbsd-tdep.c: Ditto.
11154 * amd64-nbsd-tdep.c: Ditto.
11155 * amd64-obsd-tdep.c: Ditto.
11156 * amd64-linux-nat.c: Ditto.
11157 * amd64-linux-tdep.c: Ditto.
11158 * arm-tdep.c: Ditto.
11159 * arm-tdep.h: Ditto.
11160 * armnbsd-nat.c: Ditto.
11161 * avr-tdep.c: Ditto.
11162 * bfin-tdep.c: Ditto.
11163 * bsd-kvm.c: Ditto.
11164 * c-typeprintc: Ditto.
11165 * c-valprint.c: Ditto.
11166 * coff-pe-read.h: Ditto.
11167 * coffreead.c: Ditto.
11168 * cris-tdep.c: Ditto.
11169 * d-lang.c: Ditto.
11170 * darwin-nat-info.c: Ditto.
11171 * darwin-nat.c: Ditto.
11172 * dbug-rom.c: Ditto.
11173 * dbxread.c: Ditto.
11174 * dcache.c: Ditto.
11175 * dcache.h: Ditto.
11176 * dec-thread.c: Ditto.
11177 * defs.h: Ditto.
11178 * demangle.c: Ditto.
11179 * dicos-tdep.c: Ditto.
11180 * dictionary.c: Ditto.
11181 * dictionary.h: Ditto.
11182 * dink32-rom.c: Ditto.
11183 * disasm.c: Ditto.
11184 * doublest.c: Ditto.
11185 * dsrec.c: Ditto.
11186 * dummy-frame.c: Ditto.
11187 * dwarf2-frame.c: Ditto.
11188 * dwarf2expr.c: Ditto.
11189 * dwarf2loc.c: Ditto.
11190 * dwarf2read.c: Ditto.
11191 * elfread.c: Ditto.
11192 * environ.c: Ditto.
11193 * eval.c: Ditto.
11194 * event-top.h: Ditto.
11195 * exceptions.c: Ditto.
11196 * exceptions.h: Ditto.
11197 * exec.c: Ditto.
11198 * expprint.c: Ditto.
11199 * expression.h: Ditto.
11200 * f-exp.y: Ditto.
11201 * f-lang.c: Ditto.
11202 * f-lang.h: Ditto.
11203 * f-typeprint.c: Ditto.
11204 * f-valprint.c: Ditto.
11205 * fbsd-nat.c: Ditto.
11206 * findvar.c: Ditto.
11207 * fork-child.c: Ditto.
11208 * frame.c: Ditto.
11209 * frame.h: Ditto.
11210 * frv-linux-tdep.c: Ditto.
11211 * frv-tdep.c: Ditto.
11212 * gcore.c: Ditto.
11213 * gdb-stabs.h: Ditto.
11214 * gdb_assert.h: Ditto.
11215 * gdb_string.h: Ditto.
11216 * gdb_thread_db.h: Ditto.
11217 * gdb_wait.h: Ditto.
11218 * gdbarch.sh: Ditto.
11219 * gdbcore.h: Ditto.
11220 * gdbthread.h: Ditto.
11221 * gdbtypes.c: Ditto.
11222 * gdbtypes.h: Ditto.
11223 * gnu-nat.c: Ditto.
11224 * gnu-nat.h: Ditto.
11225 * gnu-v2-abi.c: Ditto.
11226 * gnu-v3-abi.c: Ditto.
11227 * go32-nat.c: Ditto.
11228 * gdbarch.c: Regenerate.
11229 * gdbarch.h: Regenerate.
11230
11231 2011-01-07 Michael Snyder <msnyder@vmware.com>
11232
11233 * ax-gdb.c: Adjust some long output strings.
11234 * breakpoint.c: Ditto.
11235 * charset.c: Ditto.
11236 * cp-abi.c: Ditto.
11237 * infcall.c: Ditto.
11238 * infrun.c: Ditto.
11239 * linux-nat.c: Ditto.
11240 * solib-pa64.c: Ditto.
11241 * solib-som.c: Ditto.
11242
11243 2011-01-06 Tom Tromey <tromey@redhat.com>
11244
11245 PR python/12367:
11246 * NEWS: Add item.
11247 * python/python.c (GdbMethods): Add "newest_frame" method.
11248 * python/python-internal.h (gdbpy_newest_frame): Declare.
11249 * python/py-frame.c (gdbpy_newest_frame): New function.
11250
11251 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11252
11253 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11254 * jit.c (jit_debug): New variable.
11255 (show_jit_debug): New function.
11256 (struct target_buffer): Use ULONGEST.
11257 (bfd_open_from_target_memory): Likewise.
11258 (jit_register_code, jit_inferior_init): Add debug output.
11259 (_initialize_jit): Register "debug jit" command.
11260
11261 2011-01-06 Tom Tromey <tromey@redhat.com>
11262
11263 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11264 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11265 and ARCH_FRAME.
11266
11267 2011-01-06 Tom Tromey <tromey@redhat.com>
11268
11269 * python/py-frame.c (frapy_block): Use get_frame_block.
11270
11271 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11272
11273 Do not stop on SIGPRIO signals by default
11274 * infrun.c (_initialize_infrun): Unset signal_stop and
11275 signal_print for TARGET_SIGNAL_PRIO.
11276
11277 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11278
11279 * ada-tasks.c: Fix style violation in comment.
11280
11281 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11282
11283 * linespec.c (decode_compound, find_method): Remove trailing \n
11284 at end of error string.
11285 * solib-irix.c (irix_current_sos): Likewise.
11286 * varobj.c (uninstall_variable): Likewise.
11287
11288 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11289
11290 * copyright.py: New script.
11291 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11292 Launch emacs without exec'ing. Call copyright.py afterwards.
11293
11294 2011-01-05 Michael Snyder <msnyder@vmware.com>
11295
11296 * addrmap.c: Shorten lines of >= 80 columns.
11297 * arch-utils.c: Ditto.
11298 * arch-utils.h: Ditto.
11299 * ax-gdb.c: Ditto.
11300 * ax-general.c: Ditto.
11301 * bcache.c: Ditto.
11302 * blockframe.c: Ditto.
11303 * breakpoint.c: Ditto.
11304 * buildsym.c: Ditto.
11305 * c-lang.c: Ditto.
11306 * c-typeprint.c: Ditto.
11307 * charset.c: Ditto.
11308 * coffread.c: Ditto.
11309 * command.h: Ditto.
11310 * corelow.c: Ditto.
11311 * cp-abi.c: Ditto.
11312 * cp-namespace.c: Ditto.
11313 * cp-support.c: Ditto.
11314 * dbug-rom.c: Ditto.
11315 * dbxread.c: Ditto.
11316 * defs.h: Ditto.
11317 * dfp.c: Ditto.
11318 * dfp.h: Ditto.
11319 * dictionary.c: Ditto.
11320 * disasm.c: Ditto.
11321 * doublest.c: Ditto.
11322 * dwarf2-frame.c: Ditto.
11323 * dwarf2expr.c: Ditto.
11324 * dwarf2loc.c: Ditto.
11325 * dwarf2read.c: Ditto.
11326 * elfread.c: Ditto.
11327 * eval.c: Ditto.
11328 * event-loop.c: Ditto.
11329 * event-loop.h: Ditto.
11330 * exceptions.h: Ditto.
11331 * exec.c: Ditto.
11332 * expprint.c: Ditto.
11333 * expression.h: Ditto.
11334 * f-lang.c: Ditto.
11335 * f-valprint.c: Ditto.
11336 * findcmd.c: Ditto.
11337 * frame-base.c: Ditto.
11338 * frame-unwind.c: Ditto.
11339 * frame-unwind.h: Ditto.
11340 * frame.c: Ditto.
11341 * frame.h: Ditto.
11342 * gcore.c: Ditto.
11343 * gdb-stabs.h: Ditto.
11344 * gdb_assert.h: Ditto.
11345 * gdb_dirent.h: Ditto.
11346 * gdb_obstack.h: Ditto.
11347 * gdbcore.h: Ditto.
11348 * gdbtypes.c: Ditto.
11349 * gdbtypes.h: Ditto.
11350 * inf-ttrace.c: Ditto.
11351 * infcall.c: Ditto.
11352 * infcmd.c: Ditto.
11353 * inflow.c: Ditto.
11354 * infrun.c: Ditto.
11355 * inline-frame.h: Ditto.
11356 * language.c: Ditto.
11357 * language.h: Ditto.
11358 * libunwind-frame.c: Ditto.
11359 * libunwind-frame.h: Ditto.
11360 * linespec.c: Ditto.
11361 * linux-nat.c: Ditto.
11362 * linux-nat.h: Ditto.
11363 * linux-thread-db.c: Ditto.
11364 * machoread.c: Ditto.
11365 * macroexp.c: Ditto.
11366 * macrotab.c: Ditto.
11367 * main.c: Ditto.
11368 * maint.c: Ditto.
11369 * mdebugread.c: Ditto.
11370 * memattr.c: Ditto.
11371 * minsyms.c: Ditto.
11372 * monitor.c: Ditto.
11373 * monitor.h: Ditto.
11374 * objfiles.c: Ditto.
11375 * objfiles.h: Ditto.
11376 * osabi.c: Ditto.
11377 * p-typeprint.c: Ditto.
11378 * p-valprint.c: Ditto.
11379 * parse.c: Ditto.
11380 * printcmd.c: Ditto.
11381 * proc-events.c: Ditto.
11382 * procfs.c: Ditto.
11383 * progspace.c: Ditto.
11384 * progspace.h: Ditto.
11385 * psympriv.h: Ditto.
11386 * psymtab.c: Ditto.
11387 * record.c: Ditto.
11388 * regcache.c: Ditto.
11389 * regcache.h: Ditto.
11390 * remote-fileio.c: Ditto.
11391 * remote.c: Ditto.
11392 * ser-mingw.c: Ditto.
11393 * ser-tcp.c: Ditto.
11394 * ser-unix.c: Ditto.
11395 * serial.c: Ditto.
11396 * serial.h: Ditto.
11397 * solib-frv.c: Ditto.
11398 * solib-irix.c: Ditto.
11399 * solib-osf.c: Ditto.
11400 * solib-pa64.c: Ditto.
11401 * solib-som.c: Ditto.
11402 * solib-sunos.c: Ditto.
11403 * solib-svr4.c: Ditto.
11404 * solib-target.c: Ditto.
11405 * solib.c: Ditto.
11406 * somread.c: Ditto.
11407 * source.c: Ditto.
11408 * stabsread.c: Ditto.
11409 * stabsread.c: Ditto.
11410 * stack.c: Ditto.
11411 * stack.h: Ditto.
11412 * symfile-mem.c: Ditto.
11413 * symfile.c: Ditto.
11414 * symfile.h: Ditto.
11415 * symmisc.c: Ditto.
11416 * symtab.c: Ditto.
11417 * symtab.h: Ditto.
11418 * target-descriptions.c: Ditto.
11419 * target-memory.c: Ditto.
11420 * target.c: Ditto.
11421 * target.h: Ditto.
11422 * terminal.h: Ditto.
11423 * thread.c: Ditto.
11424 * top.c: Ditto.
11425 * tracepoint.c: Ditto.
11426 * tracepoint.h: Ditto.
11427 * ui-file.c: Ditto.
11428 * ui-file.h: Ditto.
11429 * ui-out.h: Ditto.
11430 * user-regs.c: Ditto.
11431 * user-regs.h: Ditto.
11432 * utils.c: Ditto.
11433 * valarith.c: Ditto.
11434 * valops.c: Ditto.
11435 * valprint.c: Ditto.
11436 * valprint.h: Ditto.
11437 * value.c: Ditto.
11438 * varobj.c: Ditto.
11439 * varobj.h: Ditto.
11440 * vec.h: Ditto.
11441 * xcoffread.c: Ditto.
11442 * xcoffsolib.c: Ditto.
11443 * xcoffsolib.h: Ditto.
11444 * xml-syscall.c: Ditto.
11445 * xml-tdesc.c: Ditto.
11446
11447 2011-01-05 Michael Snyder <msnyder@vmware.com>
11448
11449 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11450 * cli/cli-decode.c: Ditto.
11451 * cli/cli-dump.c: Ditto.
11452 * cli/cli-logging.c: Ditto.
11453 * cli/cli-script.c: Ditto.
11454 * cli/cli-setshow.c: Ditto.
11455 * common/signals.c: Ditto.
11456 * mi/mi-cmd-break.c: Ditto.
11457 * mi/mi-cmd-disas.c: Ditto.
11458 * mi/mi-cmd-stack.c: Ditto.
11459 * mi/mi-cmd-var.c: Ditto.
11460 * mi/mi-cmds.c: Ditto.
11461 * mi/mi-common.h: Ditto.
11462 * mi/mi-console.c: Ditto.
11463 * mi/mi-interp.c: Ditto.
11464 * mi/mi-main.c: Ditto.
11465 * osf-share/cma_attr.c: Ditto.
11466 * osf-share/cma_deb_core.h: Ditto.
11467 * osf-share/cma_debug_client.h: Ditto.
11468 * osf-share/cma_handle.h: Ditto.
11469 * osf-share/cma_mutex.h: Ditto.
11470 * osf-share/cma_stack_int.h: Ditto.
11471 * osf-share/cma_tcb_defs.h: Ditto.
11472 * python/py-auto-load.c: Ditto.
11473 * python/py-breakpoint.c: Ditto.
11474 * python/py-cmd.c: Ditto.
11475 * python/py-frame.c: Ditto.
11476 * python/py-objfile.c: Ditto.
11477 * python/py-param.c: Ditto.
11478 * python/py-progspace.c: Ditto.
11479 * python/py-symbol.c: Ditto.
11480 * python/py-value.c: Ditto.
11481 * python/python-internal.h: Ditto.
11482 * python/python.c: Ditto.
11483 * tui/tui-data.c: Ditto.
11484 * tui/tui-disasm.c: Ditto.
11485 * tui/tui-hooks.c: Ditto.
11486 * tui/tui-io.c: Ditto.
11487 * tui/tui-layout.c: Ditto.
11488 * tui/tui-regs.c: Ditto.
11489 * tui/tui-source.c: Ditto.
11490 * tui/tui-stack.c: Ditto.
11491 * tui/tui-win.c: Ditto.
11492 * tui/tui-windata.c: Ditto.
11493 * tui/tui-winsource.c: Ditto.
11494
11495 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11496
11497 * configure.ac, gdb.1: Copyright year update.
11498
11499 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11500
11501 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11502 this_pc_in_block, morestack_msym and morestack_name. Check for
11503 "__morestack" minimal symbol there.
11504
11505 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11506
11507 * symfile.c (find_sym_fns): Add call to dont_repeat.
11508
11509 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11510
11511 Copyright year update in most files (performed by copyright.sh).
11512
11513 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11514
11515 * top.c (print_gdb_version): Update copyright year in version output.
11516
11517 For older changes see ChangeLog-2010.
11518 \f
11519 Local Variables:
11520 mode: change-log
11521 left-margin: 8
11522 fill-column: 74
11523 version-control: never
11524 coding: utf-8
11525 End:
This page took 0.309462 seconds and 4 git commands to generate.