* python/py-type.c (type_object_methods): Fix "array" doc string.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-01 Doug Evans <dje@google.com>
2
3 * python/py-type.c (type_object_methods): Fix "array" doc string.
4
5 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
6
7 * source.c (print_source_lines_base): Fix missing braces on else
8 clause leading to additional output.
9
10 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
11
12 * s390-nat.c (SUBOFF): Remove.
13 (s390_native_supply, s390_native_collect): New functions.
14 (supply_gregset, supply_fpregset): Use s390_native_supply.
15 (fill_gregset, fill_fpregset): Use s390_native_collect.
16
17 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
18 (s390_unwind_pseudo_register): New function.
19 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
20 registers instead of PC and CC.
21 (s390_backchain_frame_unwind_cache): Likewise.
22 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
23 full GPR pseudos.
24 (s390_trad_frame_prev_register): New function.
25 (s390_frame_prev_register): Use it.
26 (s390_sigtramp_frame_prev_register): Likewise.
27 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
28 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
29 special callback to unwind any pseudo.
30
31 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
32 * features/s390-core64.xml: Likewise.
33 * features/s390x-core64.xml: Likewise.
34 * features/s390-linux32.c: Regenerate.
35 * features/s390-linux64.c: Likewise.
36 * features/s390x-linux64.c: Likewise.
37
38 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
39
40 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
41
42 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
43
44 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
45 instruction. Add more diagnostic output.
46
47 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
48
49 * MAINTAINERS (Write After Approval): Add myself to the list.
50
51 2011-11-29 Sanjoy Das <sdas@igalia.com>
52
53 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
54 (jit_bfd_try_read_symtab): Fix comments.
55
56 2011-11-28 DJ Delorie <dj@redhat.com>
57
58 * NEWS: Mention RL78 simulator.
59
60 2011-11-28 Joel Brobecker <brobecker@adacore.com>
61
62 * symfile.h (struct quick_symbol_functions): Fix the documentation
63 of field map_matching_symbols, as symbols are sorted using
64 strcmp_iw_ordered, not strcmp_iw.
65
66 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
67
68 * symfile.h (struct quick_symbol_functions): Update the
69 documentation for field map_matching_symbols.
70
71 2011-11-28 Joel Brobecker <brobecker@adacore.com>
72
73 * ada-lang.c (compare_names): Fix wrong return value in case
74 string1 starts with the same contents as string2, followed
75 by an underscore that do not start a symbol name suffix.
76
77 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
78
79 PR python/13369
80 PR python/13374
81
82 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
83 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
84 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
85 exceptions.
86 * python/py-type.c (typy_strip_typedefs): Ditto.
87 (typy_legacy_template_argument): Ditto.
88 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
89 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
90
91 2011-11-27 Joel Brobecker <brobecker@acacore.com>
92
93 * remote.c (remote_get_tracepoint_status): Delete addrbuf
94 local variable. Avoid use of sprintf_vma.
95
96 2011-11-27 Sanjoy Das <sdas@igalia.com>
97
98 Fix regression in jit.exp.
99 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
100 (jit_register_code): Set the jit_objfile_data field to the correct
101 value.
102
103 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
104
105 * alpha-tdep.c (br_opcode): New.
106 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
107 (alpha_deal_with_atomic_sequence): New function.
108 (alpha_gdbarch_init): Handle single stepping of atomic sequences
109 with alpha_deal_with_atomic_sequence.
110
111 2011-11-24 Tristan Gingold <gingold@adacore.com>
112
113 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
114 fields. Add oso_sym, end_sym and nbr_syms.
115 (macho_register_oso): Change interface.
116 (macho_symtab_add_minsym): New function.
117 (macho_symtab_read): Rewritten.
118 (get_archive_prefix_len): Remove trailing blanks.
119 (oso_el_compare_name): Add comment.
120 (struct macho_sym_hash_entry): New structure.
121 (macho_relocate_common_syms): Remove.
122 (macho_sym_hash_newfunc): New function.
123 (macho_resolve_oso_sym_with_minsym): Likewise.
124 (macho_add_oso_symfile): Rewritten.
125 (macho_symfile_read_all_oso): Remove trailing blanks.
126 Adjust code to free oso vector.
127 (macho_symfile_read): Likewise.
128 Move code to initialize minimal symbol
129
130 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
131
132 * mips-tdep.c (extended_offset): Fix formatting.
133
134 2011-11-23 Doug Evans <dje@google.com>
135
136 * dwarf2read.c (dw2_lookup_symtab): Add comment.
137 (dw2_expand_symtabs_with_filename): Ditto.
138 (dw2_expand_symtabs_matching): Ditto.
139 (dw2_map_symbol_filenames): Ditto.
140
141 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
142
143 * ada-lang.c (assign_aggregate): Minor reformatting.
144
145 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
146
147 * ada-lang.c (assign_aggregate): Remove declaration of local
148 variable `i' which is shadowing another variable with the same
149 name declared in the outer scope.
150
151 2011-11-23 Joel Brobecker <brobecker@adacore.com>
152
153 * ada-lang.c (get_base_type): Renames base_type. Adjust all
154 calls throughout this file.
155
156 2011-11-23 Joel Brobecker <brobecker@adacore.com>
157
158 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
159 FormatMessage.
160
161 2011-11-22 Tom Tromey <tromey@redhat.com>
162
163 PR mi/8444:
164 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
165 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
166 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
167 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
168 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
169 (print_it_catch_syscall, print_it_catch_exec)
170 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
171 (bpstat_print): Add 'kind' argument. Handle
172 TARGET_WAITKIND_LOADED.
173 * infrun.c (normal_stop): Update for bpstat_print change. Don't
174 handle TARGET_WAITKIND_LOADED here.
175 * breakpoint.h (bpstat_print): Update.
176
177 2011-11-22 Tom Tromey <tromey@redhat.com>
178
179 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
180
181 2011-11-22 Tom Tromey <tromey@redhat.com>
182
183 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
184 Use static_assert to check the size of
185 async_reason_string_lookup.
186 * common/gdb_assert.h (static_assert): New macro.
187
188 2011-11-22 Alan Modra <amodra@gmail.com>
189
190 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
191 destination calculation. Don't expect >> to sign extend. Don't
192 add a break if branch lands inside the sequence anywhere.
193
194 2011-11-21 Keith Seitz <keiths@redhat.com>
195
196 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
197 -var-evaluate-expression of an enumeration and fix expected result.
198 * gdb.mi/mi2-varvdisplay.exp: Likewise.
199
200 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
201
202 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
203 the case where osdata->items is empty. Rename column names to a
204 canonical form to avoid problems with unusual column names.
205
206 2011-11-21 Yao Qi <yao@codesourcery.com>
207
208 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
209
210 2011-11-20 Stan Shebs <stan@codesourcery.com>
211
212 * NEWS: Mention tracepoint additions.
213 * breakpoint.h (struct tracepoint): New field traceframe_usage.
214 * breakpoint.c (print_one_breakpoint_location): Identify
215 tracepoints as such when reporting hit counts, report
216 trace buffer usage.
217 (create_tracepoint_from_upload): Copy status info.
218 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
219 add fields user_name, notes, start_time, stop_time.
220 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
221 * tracepoint.c (trace_user): New global.
222 (trace_notes): New global.
223 (trace_stop_notes): New global.
224 (start_tracing): Add argument and trace note handling.
225 (stop_tracing): Ditto.
226 (trace_start_command): Add notes argument.
227 (trace_stop_command): Ditto.
228 (trace_status_command): Report additional status info.
229 (trace_status_mi): Similarly.
230 (trace_save): Update, record tracepoint status.
231 (set_disconnected_tracing): Call target method directly.
232 (send_disconnected_tracing_value): Remove.
233 (set_trace_user): New function.
234 (set_trace_notes): New function.
235 (set_trace_stop_notes): New function.
236 (parse_trace_status): Handle additional status.
237 (parse_tracepoint_status): New function.
238 (parse_tracepoint_definition): Call it.
239 (tfile_get_tracepoint_status): New function.
240 (init_tfile_ops): Use it.
241 (_initialize_tracepoint): Add new setshows.
242 * target.h (struct target_ops): New methods to_get_tracepoint_status
243 and to_set_trace_notes.
244 (target_get_tracepoint_status): New macro.
245 (target_set_trace_notes): New macro.
246 * target.c (update_current_target): Add new methods.
247 * remote.c (remote_get_tracepoint_status): New function.
248 (remote_set_trace_notes): New function.
249 (init_remote_ops): Add them.
250 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
251 (mi_cmd_trace_stop): Ditto.
252
253 2011-11-20 Sanjoy Das <sdas@igalia.com>
254
255 * jit.c: Include regcache.h.
256 (jit_gdbarch_data, jit_frame_unwind): New static variables.
257 (jit_unwind_reg_set_impl, free_reg_value_impl)
258 (jit_unwind_reg_get_impl, jit_frame_sniffer)
259 (jit_frame_unwind_stop_reason, jit_frame_this_id)
260 (jit_frame_prev_register, jit_dealloc_cache)
261 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
262 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
263 jit_prepend_unwinder.
264 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
265
266 2011-11-20 Sanjoy Das <sdas@igalia.com>
267
268 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
269 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
270 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
271 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
272 (finalize_symtab, jit_object_close_impl)
273 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
274 (free_objfile_data): New functions.
275 (_initialize_jit): Register jit_objfile_data with a proper cleanup
276 function.
277
278 2011-11-20 Sanjoy Das <sdas@igalia.com>
279
280 * jit.c: Include gdb-dlfcn.h.
281 (loaded_jit_reader, reader_init_fn_sym): New static variables.
282 (jit_reader_load, jit_reader_load_command)
283 (jit_reader_unload_command): New functions.
284 (_initialize_jit): Add commands "jit-reader-load" and
285 "jit-reader-unload".
286
287 2011-11-20 Sanjoy Das <sdas@igalia.com>
288
289 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
290 * config.in: Add new #define HAVE_LIBDL.
291 * configure.ac: Add check for -ldl.
292 * configure: Re-generated by autoconf.
293 * gdb-dlfcn.c: New file.
294 * gdb-dlfcn.h: New file.
295
296 2011-11-20 Sanjoy Das <sdas@igalia.com>
297
298 * config.in: Add new #defines: JIT_READER_DIR and
299 JIT_READER_DIR_RELOCATABLE.
300 * configure.ac: New GDB directory entry for jit-reader-dir.
301 * configure: Re-generated by autoconf.
302 * jit.c: New static variable: const char *jit_reader_dir.
303 (_initialize_jit): Relocate jit_reader_dir.
304
305 2011-11-20 Sanjoy Das <sdas@igalia.com>
306
307 * Makefile.in: Add jit-reader.h as a header. Have it installed in
308 $(includedir)/gdb.
309 * configure.ac: Generate a correct value for TARGET_PTR for
310 jit-reader.h. Tell configure to generate jit-reader.h from
311 jit-reader.in.
312 * configure: Re-generated by autoconf.
313 * jit-reader.in: New file.
314 * jit.c: Include jit-reader.h.
315
316 2011-11-20 Sanjoy Das <sdas@igalia.com>
317
318 * MAINTAINERS (Write After Approval): Add myself to the list.
319
320 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
321
322 * findvar.c (read_frame_register_value): Respect value_offset
323 of the register value. Remove big-endian special case.
324
325 2011-11-18 Tom Tromey <tromey@redhat.com>
326
327 PR build/7196:
328 * remote.c (putpkt_for_catch_errors): New function.
329 (remote_kill): Use it.
330
331 2011-11-18 Yao Qi <yao@codesourcery.com>
332
333 * breakpoint.c (create_breakpoint): Produce query message according to
334 breakpoint's type.
335 Allocate tracepoint per correct type.
336 Don't check SALs for pending fast tracepoints.
337 * tracepoint.c (process_tracepoint_on_disconnect): New.
338 (disconnect_tracing): Call process_tracepoint_on_disconnect.
339
340 2011-11-18 Yao Qi <yao@codesourcery.com>
341
342 * breakpoint.c (install_breakpoint): Add one more parameter so that
343 update_global_location_list is called conditionally.
344 (create_fork_vfork_event_catchpoint): Update.
345 (create_syscall_event_catchpoint): Update.
346 (create_breakpoint_sal): Update.
347 (create_breakpoint_sal): Update. Call do_cleanups before
348 install_breakpoint.
349 * ada-lang.c (create_ada_exception_catchpoint): Update.
350 * breakpoint.h (install_breakpoint): Update declaration.
351
352 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
353
354 * spu-tdep.c (spu_return_value): Fix handling of
355 TYPE_CALLING_CONVENTION annotation.
356
357 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
358
359 * skip.c (skip_function_command): Work around uninitialized
360 variable warning.
361
362 2011-11-16 David S. Miller <davem@davemloft.net>
363
364 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
365 'tv_usec' to long for printf since these fields have a type which
366 varies.
367
368 2011-11-15 Doug Evans <dje@google.com>
369
370 * buildsym.c (add_symbol_to_list): Delete outdated comment.
371
372 2011-11-15 Paul Koning <paul_koning@dell.com>
373
374 * python/py-type.c (typy_get_composite): New function.
375 (typy_nonzero): New function.
376 (typy_values): Rename from typy_fields.
377 (typy_fields): New function.
378 (typy_length): Raise exception if not struct, union, or enum type.
379 (typy_getitem): Ditto.
380 (typy_has_key): Ditto.
381 (typy_make_iter): Ditto.
382
383 2011-11-15 Doug Evans <dje@google.com>
384
385 * NEWS: Mention new parameter basenames-may-differ.
386 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
387 ! basenames_may_differ.
388 * psymtab.c (lookup_partial_symtab): Ditto.
389 * symtab.c (lookup_symtab): Ditto.
390 (basenames_may_differ): New global.
391 (_initialize_symtab): New parameter basenames-may-differ.
392 * symtab.h (basenames_may_differ): Declare.
393
394 2011-11-15 Pedro Alves <pedro@codesourcery.com>
395 Luis Machado <lgustavo@codesourcery.com>
396
397 * auxv.c: Include observer.h.
398 (auxv_inferior_data_cleanup): New.
399 (invalidate_auxv_cache_inf): New.
400 (invalidate_auxv_cache): New.
401 (get_auxv_inferior_data): New.
402 (auxv_inferior_data): New static global.
403 (auxv_info): New structure.
404 (target_auxv_search): Use get_auxv_inferior_data instead of
405 target_read_alloc and don't free cached buffers.
406 (fprint_target_auxv): Likewise
407 (_initialize_auxv): Register per-inferior auxv cache and register
408 observers to invalidate auxv cache when needed.
409
410 2011-11-14 Doug Evans <dje@google.com>
411
412 Make "!" an alias for "shell".
413 * NEWS: Add mention.
414 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
415 adding "!" command, always add it.
416 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
417 command of length one.
418
419 2011-11-14 Stan Shebs <stan@codesourcery.com>
420 Kwok Cheung Yeung <kcy@codesourcery.com>
421
422 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
423 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
424 the minimum instruction size for fast tracepoints.
425 * target.h (struct target_ops): Add new method
426 to_get_min_fast_tracepoint_insn_len.
427 (target_get_min_fast_tracepoint_insn_len): New.
428 * target.c (update_current_target): Set up new target operation.
429 * remote.c (remote_write_bytes_aux): Fix typo.
430 (remote_get_min_fast_tracepoint_insn_len): New.
431 (init_remote_ops): Initialize new field.
432
433 2011-11-14 Tom Tromey <tromey@redhat.com>
434
435 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
436 (encode_actions): Likewise.
437
438 2011-11-14 Yao Qi <yao@codesourcery.com>
439
440 * remote.c (struct remote_state): <install_in_trace> new field.
441 (PACKET_InstallInTrace): New enum value.
442 (remote_install_in_trace_feature): Support InstallInTrace.
443 (remote_supports_install_in_trace): Likewise.
444 (remote_protocol_features): Likewise.
445 (_initialize_remote): Likewise.
446 (remote_can_download_tracepoint): New.
447 * target.h (struct target): New field
448 `to_can_download_tracepoint'.
449 (target_can_download_tracepoint): New macro.
450 * target.c (update_current_target): Update.
451 * breakpoint.h (struct bp_location): Add comment on field
452 `duplicate'.
453 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
454 and tracepoint.
455 (remove_breakpoints): Don't remove tracepoints.
456 (tracepoint_locations_match ): New.
457 (breakpoint_locations_match): Call it.
458 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
459 (download_tracepoint_locations): New.
460 (update_global_location_list): Call it.
461 * tracepoint.c (find_matching_tracepoint): Delete.
462 (find_matching_tracepoint_location): Renamed from
463 find_matching_tracepoint. Return bp_location rather than
464 tracepoint.
465 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
466 tracepoint is found.
467
468 2011-11-14 Yao Qi <yao@codesourcery.com>
469
470 * target.h (struct target): <to_download_tracepoint> Change type
471 of parameter from tracepoint to bp_location.
472 * target.c (update_current_target): Update.
473 * tracepoint.c (start_tracing): Update.
474 * remote.c (remote_download_tracepoint): Remove loop for each location
475 of a tracepoint.
476
477 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
478
479 * i386-nat.c (i386_insert_hw_breakpoint): Call
480 i386_update_inferior_debug_regs.
481 (i386_remove_hw_breakpoint): Likewise.
482
483 2011-11-14 Yao Qi <yao@codesourcery.com>
484
485 * breakpoint.c (init_raw_breakpoint): Call
486 add_location_to_breakpoint to replace duplicated code.
487 (add_location_to_breakpoint): Adjust the breakpoint's
488 address prior to allocating a location.
489
490 2011-11-12 Matt Rice <ratmice@gmail.com>
491
492 * macrocmd.c (macro_no_macro_info): New function.
493 (macro_expand_command): Use macro_no_macro_info.
494 (macro_expand_once_command): Ditto.
495 (info_macro_command): Add argument processing,
496 move info_definitions_command here.
497 (_initialize_macrocmd): Remove info definitions command.
498 Add arguments to info macro help text.
499 * NEWS: Replace info definitions command with new info macro options.
500
501 2011-11-11 Keith Seitz <keiths@redhat.com>
502
503 PR gdb/12843
504 * linespec.c (locate_first_half): Keep ':' if it looks
505 like it could be part of a Windows path starting with
506 a drive letter.
507
508 2011-11-10 Pedro Alves <pedro@codesourcery.com>
509
510 * linux-nat.c (linux_nat_wait): Don't force waking up the event
511 loop when returning a TARGET_WAITKIND_NO_RESUMED.
512
513 2011-11-10 Pedro Alves <pedro@codesourcery.com>
514
515 * target.c (target_waitstatus_to_string): Handle
516 TARGET_WAITKIND_NO_RESUMED.
517
518 2011-11-10 Doug Evans <dje@google.com>
519
520 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
521 `need_fullname'.
522 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
523 (map_partial_symbol_filenames): Ditto. All callers updated.
524 * psymtab.h (map_partial_symbol_filenames): Update prototype.
525 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
526 parameter need_fullname.
527
528 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
529 * source.c (symtab_to_fullname): Ditto.
530
531 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
532 * gdb-demangle.h: ... here. New file.
533 * demangle.c: #include "gdb-demangle.h".
534 (_initialize_demangler): Use initialize_file_ftype for prototype.
535 Move "set demangle" and "set asm-demangle" parameters here from utils.c
536 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
537 from utils.c
538 * utils.c: Update. #include "gdb-demangle.h".
539 * symtab.h (asm_demangle): Delete.
540 (demangle): Move declaration next to use.
541 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
542 * dwarf2read.c: #include "gdb-demangle.h".
543 * gnu-v2-abi.c: Ditto.
544 * jv-typeprint.c: Ditto.
545 * mdebugread.c: Ditto.
546 * p-typeprint.c: Ditto.
547 * stabsread.c: Ditto.
548 * printcmd.c: Ditto.
549 (asm_demangle): Delete declaration.
550 * tui/tui-stack.c: #include "gdb-demangle.h".
551
552 * python/py-type.c (typy_fields_items): Call check_typedef.
553
554 2011-11-10 Joel Brobecker <brobecker@adacore.com>
555
556 * findvar.c (read_frame_register_value): Read the correct bytes
557 from registers on big-endian architectures.
558
559 2011-11-10 Tom Tromey <tromey@redhat.com>
560
561 * procfs.c (load_syscalls): Make a cleanup.
562 (open_procinfo_files): fd==0 is ok.
563
564 2011-11-10 Joel Brobecker <brobecker@adacore.com>
565
566 * procfs.c (iterate_over_mappings): Call do_cleanups before
567 returning.
568
569 2011-11-09 Doug Evans <dje@google.com>
570
571 * gdbtypes.c (check_typedef): Document that this function can
572 throw an exception.
573
574 2011-11-09 Tom Tromey <tromey@redhat.com>
575
576 PR c++/13342:
577 * valops.c (value_full_object): Return early if real type is
578 smaller than the enclosing type.
579
580 2011-11-08 Yao Qi <yao@codesourcery.com>
581
582 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
583
584 2011-11-08 Meador Inge <meadori@codesourcery.com>
585
586 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
587 register when the frame can't be determined.
588 * arm-tdep.c (arm_analyze_prologue): Ditto.
589
590 2011-11-07 Stan Shebs <stan@codesourcery.com>
591
592 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
593
594 2011-11-07 Joel Brobecker <brobecker@adacore.com>
595
596 * infrun.c (handle_inferior_event): Minor reformatting.
597
598 2011-11-05 Doug Evans <dje@google.com>
599
600 * source.c (forget_cached_source_info_for_objfile): Move call to
601 objfile->sf->qf->forget_cached_source_info outside of
602 ALL_OBJFILE_SYMTABS loop.
603 (forget_cached_source_info): Delete unused variable `s'.
604
605 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 * i386-nat.c (dr_ref_count): Remove unused variable.
608
609 2011-11-05 Doug Evans <dje@google.com>
610
611 * main.c (captured_main): Set lim_at_start before calling
612 make_command_stats_cleanup.
613
614 2011-11-04 Doug Evans <dje@google.com>
615
616 * utils.c: #include "timeval-utils.h".
617 (cmd_stats): Rename start_time to start_cpu_time.
618 New member start_wall_time.
619 (report_command_stats): Report wall time.
620 (make_command_stats_cleanup): Record start wall time.
621
622 2011-11-04 Tom Tromey <tromey@redhat.com>
623
624 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
625
626 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627
628 * coff-pe-read.c: Include defs.h before bfd.h.
629
630 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
631
632 PR Python/13345
633
634 * python/python.c (python_run_simple_file): Expand tilde in path.
635
636 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
637
638 PR Python/13363
639
640 * python/py-type.c (typy_lookup_type): Do not return a type in
641 an exception handler.
642
643 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
644 Eli Zaretskii <eliz@gnu.org>
645
646 * linux-nat.c (_initialize_linux_nat): Improve help
647 for `info proc stat', `info proc status', `info proc cwd',
648 `info proc cmdline' and `info proc exe'.
649
650 2011-11-02 Stan Shebs <stan@codesourcery.com>
651
652 String collection for tracepoints.
653 * NEWS: Mention string collection.
654 * common/ax.def (tracenz): New bytecode.
655 * ax-gdb.h (trace_string_kludge): Declare.
656 * ax-gdb.c: Include valprint.h and c-lang.h.
657 (trace_string_kludge): New global.
658 (gen_traced_pop): Add string case.
659 (agent_command): Add string case.
660 * tracepoint.h (decode_agent_options): Declare.
661 * tracepoint.c: Include cli-utils.h.
662 (decode_agent_options): New function.
663 (validate_actionline): Call it.
664 (encode_actions_1): Ditto.
665 * target.h (struct target_ops): New method to_supports_string_tracing.
666 (target_supports_string_tracing): New macro.
667 * target.c (update_current_target): Add to_supports_string_tracing.
668 * remote.c (struct remote_state): New field string_tracing.
669 (remote_string_tracing_feature): New function.
670 (remote_protocol_features): New feature tracenz.
671 (remote_supports_string_tracing): New function.
672 (init_remote_ops): Set to_supports_string_tracing.
673
674 2011-11-02 Pedro Alves <pedro@codesourcery.com>
675 Jan Kratochvil <jan.kratochvil@redhat.com>
676
677 * linux-nat.c: Include cli/cli-utils.h.
678 (enum info_proc_what): New.
679 (linux_nat_info_proc_cmd): Rename to ...
680 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
681 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
682 status_f and stat_f from WHAT. Throw error on extra parameters.
683 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
684 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
685 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
686 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
687 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
688 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
689 `info proc cmdline', `info proc exe' and `info proc all' as real
690 subcommands of `info proc'.
691
692 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
693
694 * Makefile.in: (SFILES): Add skip.c.
695 (HFILES_NO_SRCDIR): Add skip.h.
696 (COMMON_OBS): Add skip.o.
697 * skip.h, skip.c: New.
698 * breakpoint.h (set_default_breakpoint): Remove.
699 (get_sal_arch): Declare.
700 * breakpoint.c: Remove default_breakpoint_valid,
701 default_breakpoint_address, default_breakpoint_symtab,
702 default_breakpoint_line, default_breakpoint_pspace variables.
703 (get_sal_arch): Make public.
704 (set_default_breakpoint): Remove.
705 (parse_breakpoint_sals, create_breakpoint, clear_command,
706 decode_line_spec_1): Remove uses of default_breakpoint variables;
707 replaced with function calls into stack.c.
708 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
709 * cli/cli-cmds.c: Add skiplist.
710 (init_cmd_lists): Initialize skiplist.
711 (init_cli_cmds): Fix comment (classes of commands appear in
712 alphabetical order).
713 * infrun.c (handle_inferior_event): Add check that we don't step into
714 a function whose pc is marked for skip.
715 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
716 last_displayed_addr, last_displayed_symtab, last_displayed_line
717 variables.
718 (set_last_displayed_sal): New static function.
719 (print_frame_info): Switch call to set_default_breakpoint to call to
720 set_last_displayed_sal.
721 (clear_last_displayed_sal, last_displayed_sal_is_valid,
722 get_last_displayed_pspace, get_last_displayed_addr,
723 get_last_displayed_symtab, get_last_displayed_line,
724 get_last_displayed_sal): New public functions.
725 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
726 get_last_displayed_pspace, get_last_displayed_addr,
727 get_last_displayed_symtab, get_last_displayed_line,
728 get_last_displayed_sal): Declare.
729
730 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
731
732 * MAINTAINERS (Write After Approval): Add myself to the list.
733
734 2011-10-29 Yao Qi <yao@codesourcery.com>
735
736 * infcmd.c (disconnect_command): Call disconnect_tracing.
737
738 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
739
740 Code cleanup.
741 * symtab.c (skip_prologue_sal): Code reformatting.
742
743 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
744
745 PR symtab/13208
746 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
747 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
748 SAI.
749
750 2011-10-28 Pedro Alves <pedro@codesourcery.com>
751
752 * linux-nat.c (linux_nat_filter_event): Remove `options'
753 parameter, and dead code that used it. If we're handling a
754 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
755 in our lwp list, re-add it.
756 (check_zombie_leaders): New.
757 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
758 wait for children with WNOHANG, and always wait for all children.
759 Don't check for no resumed children upfront. Simplify wait loop.
760 Check for zombie thread group leaders after handling all wait
761 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
762 unwaited-for children left.
763 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
764 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
765 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
766 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
767
768 2011-10-28 Sterling Augustine <saugustine@google.com>
769
770 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
771 * symtab.c (free_completion_list): New function.
772 (do_free_completion_list): Likewise.
773 (default_make_symbol_completion_list_break_on): New variable
774 back_to. Call make_cleanup and discard_cleanups.
775 (make_source_files_completion_list): Likewise.
776
777 2011-10-28 Paul Koning <paul_koning@dell.com>
778
779 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
780 * NEWS: Mention deep_items.
781
782 2011-10-28 Alen Skondro <askondro@gmail.com>
783
784 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
785 defined.
786
787 2011-10-27 Meador Inge <meadori@codesourcery.com>
788
789 * MAINTAINERS (Write After Approval): Add myself to the list.
790
791 2011-10-27 Joel Brobecker <brobecker@adacore.com>
792
793 * value.h (read_frame_register_value): Add declaration.
794 * findvar.c (read_frame_register_value): New function.
795 (value_from_register): Use read_frame_register_value
796 instead of get_frame_register_value + value_contents_copy
797 to get value contents.
798
799 2011-10-27 Doug Evans <dje@google.com>
800
801 * cli/cli-cmds.c (source_script_with_search): Pass full path to
802 source_script_from_stream if it may have been found on the search path.
803 * python/py-auto-load.c (source_section_scripts): Pass full path to
804 source_python_script_for_objfile.
805 * python/python.c (source_python_script): Delete stream parameter.
806 All callers updated.
807 (source_python_script_for_objfile): Ditto.
808 * python/python-internal.h (source_python_script_for_objfile): Update.
809 * python/python.h (source_python_script): Update.
810
811 2011-10-27 Tom Tromey <tromey@redhat.com>
812
813 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
814 (ada_sals_for_line): Remove declarations.
815
816 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
817
818 Move unwind reasons to an external .def file
819 * frame.c (frame_stop_reason_string): Rewrite using
820 unwind_stop_reasons.def.
821 * frame.h (enum unwind_stop_reason): Likewise.
822 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
823 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
824 constants for bound-checking.
825 * unwind_stop_reasons.def: New file.
826 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
827 instead of a distinct value.
828
829 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
830
831 PR python/13331
832
833 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
834 (convert_values_to_python): Return on Python tuple allocation
835 failure. Return NULL on value conversion error.
836
837 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
838
839 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
840 (bppy_set_task): Ditto.
841 (bppy_delete_breakpoint): Ditto.
842 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
843 (gdbpy_lookup_global_symbol): Ditto.
844 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
845 * python/py-frame.c (frapy_is_valid): Ditto.
846 (frame_info_to_frame_object): Ditto.
847 * python/py-type.c (typy_lookup_type): Ditto.
848 (typy_getitem): Ditto.
849 (typy_has_key): Ditto.
850 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
851
852 2011-10-26 Joel Brobecker <brobecker@adacore.com>
853
854 * gdbarch.h: Regenerate.
855
856 2011-10-26 Meador Inge <meadori@codesourcery.com>
857
858 * gdbarch.sh (function_list): Use 'pstring' when printing
859 'gcore_bfd_target'.
860 * gdbarch.c: Regenerate.
861
862 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
863
864 * regcache.c (registers_changed_ptid): Invalidate thread architecture
865 and frame caches if PTID refers to all threads of a process.
866
867 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
868
869 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
870 to create_breakpoint.
871
872 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
873
874 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
875 (ppc_sysv_abi_push_dummy_call): Use it.
876 (do_ppc_sysv_return_value): Likewise.
877 (ppc64_sysv_abi_push_dummy_call): Likewise.
878 (ppc64_sysv_abi_return_value): Likewise.
879
880 2011-10-26 Paul Koning <paul_koning@dell.com>
881
882 * python/lib/gdb/types.py (deepitems): New function.
883
884 2011-10-25 Paul Koning <paul_koning@dell.com>
885
886 PR python/13327
887
888 * python/py-value.c (value_to_value_object): Remove fetching of
889 the value if it was lazy.
890 (valpy_get_is_lazy): New function.
891 (valpy_fetch_lazy): New function.
892
893 2011-10-24 Joel Brobecker <brobecker@adacore.com>
894
895 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
896 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
897
898 2011-10-24 Pedro Alves <pedro@codesourcery.com>
899
900 * linux-nat.c (linux_handle_extended_wait): When handling a clone
901 event, in non-stop, if not stopping, make sure the new lwp has
902 last_resume_kind set to resume_continue. Assert that when we're
903 resuming the new lwp, its last_resume_kind is resume_continue.
904
905 2011-10-24 Pedro Alves <pedro@codesourcery.com>
906
907 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
908 already set when marking the event thread as not executing in
909 non-stop mode.
910
911 2011-10-24 Pedro Alves <pedro@codesourcery.com>
912
913 * infrun.c (handle_inferior_event): Add debug output for
914 TARGET_WAITKIND_NO_HISTORY.
915
916 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
917
918 * NEWS: Move set/show extended-prompt to "New Options". Expand
919 description. Fix typos.
920
921 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
922
923 PR python/13310
924
925 * python/py-param.c (call_doc_function): Correctly deference on
926 function exit.
927
928 2011-10-21 Joel Brobecker <brobecker@adacore.com>
929
930 * ada-tasks.c (print_ada_task_info): Fix computation of
931 number of tasks displayed in command output.
932
933 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
934 Ulrich Weigand <uweigand@de.ibm.com>
935
936 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
937 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
938 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
939 gdbarch_pc_regnum and frame_unwind_register_unsigned by
940 gdbarch_unwind_pc.
941
942 2011-10-20 Cary Coutant <ccoutant@google.com>
943
944 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
945 section to...
946 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
947 flag. Adjust all callers.
948 (process_psymtab_comp_unit): Remove adjustment for type section.
949
950 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
951
952 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
953 arguments by adding OBJFILE. Instead of getting objfile from
954 symbol's symtab, use new argument OBJFILE.
955 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
956 arguments by adding OBJFILE.
957 * gdb/dwarf2read.c (new_symbol_full): Change call to
958 cp_scan_for_anonymous_namespaces to match new signature.
959 * gdb/stabsread.c (define_symbol): Change call to
960 cp_scan_for_anonymous_namespaces to match new signature.
961
962 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
963
964 PR python/13308
965 PR python/13309
966
967 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
968 leak.
969 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
970 leak. Delete unused variables.
971
972 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
973
974 PR python/12656
975
976 * python/py-frame.c (frapy_read_var): Use const struct *block.
977 * python/py-type.c (typy_lookup_typename): Likewise.
978 (typy_lookup_type): Likewise.
979 (typy_legacy_template_argument): Likewise.
980 (typy_template_argument): Likewise.
981 (gdbpy_lookup_type): Likewise.
982 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
983 * python/py-block.c (blpy_block_object): Likewise.
984 (blpy_iter): Likewise.
985 (blpy_get_start): Likewise.
986 (blpy_get_end): Likewise.
987 (blpy_get_function): Likewise.
988 (blpy_get_superblock): Likewise.
989 (set_block): Likewise.
990 (block_to_block_object): Likewise.
991 (block_object_to_block): Likewise.
992 (blpy_is_valid): Likewise.
993 (blpy_get_global_block): New function.
994 (blpy_get_static_block): New function.
995 (blpy_is_global): New function.
996 (blpy_is_static): New function.
997 * blockframe.c (block_innermost_frame): Likewise.
998 * valops.c (value_of_variable): Likewise.
999 * frame.h: Update prototypes.
1000 * python/python-internal.h: Likewise.
1001 * value.h: Likewise.
1002
1003 2011-10-19 Cary Coutant <ccoutant@google.com>
1004
1005 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1006 type_offset field.
1007
1008 2011-10-19 Cary Coutant <ccoutant@google.com>
1009
1010 * dwarf2read.c (peek_abbrev_code): New function.
1011 (dw2_get_file_names): Check for dummy compilation units.
1012 (create_debug_types_hash_table): Likewise.
1013 (process_psymtab_comp_unit): Likewise.
1014 (load_partial_comp_unit): Likewise.
1015 (load_full_comp_unit): Likewise.
1016
1017 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1018
1019 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1020 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1021 pt_phdr if PT_PHDR was found.
1022
1023 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1024
1025 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1026 type or "<unnamed type"> when there is no name assigned.
1027 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1028 avoid a sigint when no name is assigned.
1029
1030 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1031
1032 Revert:
1033 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * dwarf2expr.c (ctx_no_read_reg): New function.
1035 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1036 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1037 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1038 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1039
1040 2011-10-16 Doug Evans <dje@google.com>
1041
1042 * NEWS: Document python gdb.printing.register_pretty_printer's new
1043 `replace' parameter.
1044
1045 2011-10-14 Keith Seitz <keiths@redhat.com>
1046
1047 PR c++/13225
1048 * eval.c (evaluate_subexp_standard): Do not construct
1049 an array of types; pass the value array directly to
1050 find_overload_match.
1051 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1052 (rank_function): Take an array of values instead of types.
1053 (rank_one_type): Add struct value * parameter.
1054 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1055 (rank_function): For each argument, pass the argument's
1056 value to rank_one_type.
1057 (rank_one_type): Add VALUE parameter.
1058 If the parameter type is a pointer and the argument type
1059 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1060 VALUE is zero.
1061 Update all calls to rank_one_type, passing NULL for new
1062 VALUE parameter.
1063 * valarith.c (value_user_defined_cpp_op): Do not construct
1064 an array of types; pass the value array directly to
1065 find_overload_match.
1066 * valops.c (find_overload_method_list): Take an array of
1067 values instead of types.
1068 Save the type of OBJP for later use.
1069 Update calls to find_oload_champ, and find_oload_champ_namespace.
1070 (find_oload_champ_namespace): Take an array of values instead
1071 of types.
1072 (find_oload_champ_namespace_loop): Likewise.
1073 (find_oload_champ): Likewise.
1074 (classify_oload_match): Inspect all arguments
1075 until INCOMPATIBLE is found. Return the worst badness found
1076 otherwise.
1077 (compare_parameters): Update call to rank_one_type.
1078 * value.h (find_overload_match): Take an array of values instead
1079 of types.
1080
1081 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1082
1083 Drop lazy lm_info reading.
1084 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1085 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1086 (lm_info_read): New function.
1087 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1088 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1089 lm_dynamic_from_link_map.
1090 (lm_next, lm_prev, lm_name): Remove.
1091 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1092 initialization incl. read_memory. No longer use lm_name.
1093 (svr4_free_so): Drop lm_info->lm freeing.
1094 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1095 explicit lm_addr and lm initialization.
1096 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1097 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1098 lm_name.
1099
1100 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1101 Paul Pluzhnikov <ppluzhnikov@google.com>
1102
1103 * defs.h (struct so_list): New forward declaration.
1104 (make_cleanup_free_so): New declaration.
1105 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1106 (svr4_free_so): Move the function here from downwards. Handle NULL
1107 so->lm_info.
1108 (svr4_free_library_list): New.
1109 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1110 Use more cleanups. Use new parameter ignore_first instead of
1111 ignore_first_link_map_entry.
1112 (svr4_current_sos): New variable ignore_first, initialize it. New
1113 variable back_to, use it for svr4_free_library_list protection.
1114 (svr4_free_so): Remove - move upwards.
1115 * utils.c: Include solist.h.
1116 (do_free_so, make_cleanup_free_so): New functions.
1117
1118 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 Fix internal error regression.
1121 * value.c (value_primitive_field): Handle value_optimized_out. Move
1122 packed bitfields comment.
1123
1124 2011-10-13 Tom Tromey <tromey@redhat.com>
1125
1126 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1127 always released.
1128
1129 2011-10-13 Tom Tromey <tromey@redhat.com>
1130
1131 * python/py-type.c (typy_has_key): Make 'field' const.
1132
1133 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1134
1135 * remote.c (remote_save_trace_data): Invert comparison.
1136
1137 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1138
1139 * tracepoint.c (trace_save_command): Use filename instead of
1140 args when printing.
1141
1142 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1143
1144 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1145 if .size is 0.
1146
1147 2011-10-13 Yao Qi <yao@codesourcery.com>
1148
1149 PR gdb/12703
1150 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1151 whether insn is a 32-bit Thumb-2 instruction.
1152 (thumb_in_function_epilogue_p): Likewise.
1153 (thumb_get_next_pc_raw): Likewise.
1154 (arm_breakpoint_from_pc): Likewise.
1155
1156 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1157
1158 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1159 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1160 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1161 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1162 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1163 zero DATA.
1164 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1165 validity.
1166 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1167 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1168 clear DATA on zero SIZE.
1169
1170 2011-10-12 Doug Evans <dje@google.com>
1171
1172 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1173 header->first_die_offset here. All callers updated.
1174
1175 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 Fix compatibility with texinfo versions older than 4.12.
1178 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1179 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1180 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1181 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1182 * configure: Regenerate.
1183 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1184 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1185 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1186
1187 2011-10-12 Gary Benson <gbenson@redhat.com>
1188
1189 * breakpoint.h (pc_at_non_inline_function): Declare.
1190 * breakpoint.c (is_non_inline_function,
1191 pc_at_non_inline_function): New functions.
1192 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1193 if the stop is at a location where functions cannot be inlined.
1194
1195 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1196
1197 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1198 the core wanted them stopped, or if they now have a pending event
1199 to report.
1200 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1201 down to stop_and_resume_callback.
1202 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1203 having new pending events after calling linux_nat_filter_event.
1204
1205 2011-10-11 Sterling Augustine <saugustine@google.com>
1206
1207 * dwarf2read.c: Undo inadvertent changes in previous commit.
1208
1209 2011-10-11 Sterling Augustine <saugustine@google.com>
1210
1211 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1212 logic.
1213
1214 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1215
1216 * symfile.c (separate_debug_file_exists): Fix condition.
1217
1218 2011-10-11 David S. Miller <davem@davemloft.net>
1219
1220 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1221 static.
1222 * regcache.h (regcache_restore): Remove declaration.
1223
1224 * gdbarch.sh: New field 'long_long_align_bit'.
1225 * gdbarch.c, gdbarch.h: Regenerate.
1226 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1227 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1228
1229 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1230
1231 Revert this part of:
1232 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 Support @entry in input expressions.
1234 * c-exp.y (ENTRY, unknown_cpp_name): New.
1235 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1236 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1237 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1238 (name_not_typename: ENTRY): New.
1239 (yylex): Recognize ENTRY.
1240
1241 Reimplement @entry in input expressions.
1242 * c-exp.y (ENTRY): New.
1243 (variable: name_not_typename ENTRY): New.
1244 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1245
1246 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1247
1248 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1249 parent and child's pids as soon as we detect a clone event.
1250 Adjust another debug message.
1251
1252 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1253
1254 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1255 not zombie instead of reading the whole file.
1256
1257 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1258
1259 Fix separate debuginfo warning with "remote:" access.
1260 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1261 * symfile.c (get_file_crc): New function with the code moved from ...
1262 (separate_debug_file_exists): ... this function, specifically variables
1263 buffer and count. New variable verified_as_different, set it. Remove
1264 file_crc initialization. Verify also if both files are not the same
1265 manually, if needed.
1266
1267 2011-10-11 Yao Qi <yao@codesourcery.com>
1268
1269 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1270 to get address.
1271
1272 2011-10-10 Doug Evans <dje@google.com>
1273
1274 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1275 libthread_db when we load libpthread or the main symbol file.
1276 (thread_db_inferior_created): New function.
1277 (_initialize_thread_db): Attach inferior_created observer.
1278 * linux-nat.c (linux_child_post_attach): Remove call to
1279 check_for_thread_db.
1280 (linux_child_post_startup_inferior): Ditto.
1281 * objfiles.h (OBJF_MAINLINE): Define.
1282 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1283 allocate_objfile when appropriate.
1284
1285 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1286
1287 PR gdb/13218
1288 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1289 Remove unused variables.
1290 (get_linux_version): Remove function.
1291 (_initialize_arm_linux_nat): Do not call it.
1292
1293 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1294
1295 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1296 new clone lwp if the core asked it to stop. Don't pass on
1297 unexpected signals to the new clone; leave them pending instead.
1298
1299 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1300
1301 * linux-nat.c (resume_lwp): Remove redundant debug output.
1302
1303 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1304
1305 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1306 last_resume_kind before clearing it, and use the copy instead to
1307 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1308 resume_clear_callback in the non-stop path too.
1309
1310 2011-10-09 Yao Qi <yao@codesourcery.com>
1311
1312 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1313 Honor OPTIONS and VAL's type.
1314 (common_val_print, value_print): Update to pass one more parameter.
1315
1316 2011-10-09 Doug Evans <dje@google.com>
1317
1318 Add new "alias" command.
1319 * NEWS: Mention new command.
1320 * command.h (valid_user_defined_cmd_name_p): Declare.
1321 * defs.h (make_cleanup_dyn_string_delete): Declare.
1322 * utils.c: #include "dyn-string.h".
1323 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1324 * cli/cli-cmds.c: #include "dyn-string.h".
1325 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1326 (init_cli_cmds): Add new command.
1327 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1328
1329 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 Fix compatibility with older GCCs.
1332 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1333 * stack.c (read_frame_arg): Initialize val_deref.
1334
1335 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1336
1337 Entry values NEWS entries, DWARF disassembly support.
1338 * NEWS: New entry values entry.
1339 (set print entry-values, show print entry-values)
1340 (set debug entry-values, show debug entry-values): New entries.
1341 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1342 indent. Remove variable start. Move header printing out. Respect
1343 INDENT. Support DW_OP_GNU_entry_value.
1344 (locexpr_describe_location_1): Move the header printing here, extend
1345 the disassemble_dwarf_expression passed parameters.
1346
1347 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1348
1349 Display @entry parameter values even for references.
1350 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1351 coerce_ref_if_computed.
1352 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1353 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1354 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1355 existing push_dwarf_reg_entry_value call. Add new detection calling
1356 dwarf_block_to_dwarf_reg_deref. Update the error message.
1357 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1358 * dwarf2expr.h
1359 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1360 parameter deref_size, describe it in the comment.
1361 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1362 (dwarf_block_to_dwarf_reg_deref): New declaration.
1363 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1364 deref_size, describe it in the function comment. New variables
1365 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1366 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1367 describe it in the function comment. Fetch the alternative block
1368 accoring to DEREF_SIZE.
1369 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1370 (entry_data_value_free_closure, entry_data_value_funcs): New.
1371 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1372 outer_val, target_val, val and addr. Try to fetch and create also
1373 referenced value content.
1374 (pieced_value_funcs): NULL value for coerce_ref.
1375 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1376 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1377 coerce_ref_if_computed.
1378 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1379 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1380 * stack.c (read_frame_arg): Compare also dereferenced values.
1381 * value.c (value_computed_funcs): Make the parameter v const, use
1382 value_lval_const for it.
1383 (value_lval_const, coerce_ref_if_computed): New function.
1384 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1385 * value.h (struct lval_funcs): New field coerce_ref.
1386 (value_computed_funcs): Make the parameter v const.
1387 (value_lval_const, coerce_ref_if_computed): New declarations.
1388
1389 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1390
1391 Support @entry in input expressions.
1392 * c-exp.y (ENTRY, unknown_cpp_name): New.
1393 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1394 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1395 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1396 (name_not_typename: ENTRY): New.
1397 (yylex): Recognize ENTRY.
1398 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1399 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1400 Likewise.
1401 * parse.c (operator_length_standard): Likewise.
1402 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1403
1404 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1405
1406 Display referenced values in backtraces.
1407 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1408 * stack.c (print_frame_arg): Likewise.
1409
1410 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Make some lval_funcs methods to default on NULL.
1413 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1414 NULL.
1415 (value_assign): Check if lval_computed write method is NULL.
1416 * value.h (struct lval_funcs): Comment NULL values for read and write
1417 methods.
1418
1419 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 Display @entry parameter values (without references).
1422 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1423 New functions.
1424 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1425 New declarations.
1426 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1427 entry record.
1428 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1429 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1430 functions.
1431 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1432 (loclist_read_variable_at_entry): New function.
1433 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1434 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1435 DW_AT_location, call dwarf_block_to_sp_offset for it.
1436 * frame.h (print_entry_values_no, print_entry_values_only)
1437 (print_entry_values_preferred, print_entry_values_if_needed)
1438 (print_entry_values_both, print_entry_values_compact)
1439 (print_entry_values_default, print_entry_values): New declarations.
1440 (struct frame_arg): New field entry_kind.
1441 (read_frame_arg): New parameter entryargp.
1442 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1443 arg->entry_kind. Optionally print the `@entry' suffix.
1444 (list_args_or_locals): New variable entryarg, initialize it.
1445 Initialize also entry_kind of arg and entryarg. Conditionalize
1446 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1447 xfree for entryarg.error.
1448 * stack.c (print_entry_values_no, print_entry_values_only)
1449 (print_entry_values_preferred, print_entry_values_if_needed)
1450 (print_entry_values_both, print_entry_values_compact)
1451 (print_entry_values_default, print_entry_values_choices)
1452 (print_entry_values): New variables.
1453 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1454 print the `@entry' suffix, possibly in combination for
1455 print_entry_values_compact.
1456 (read_frame_arg): New parameter entryargp, new variables entryval,
1457 entryval_error and val_equal. Read in also entryargp, respect
1458 print_entry_values, compare the values using val_equal, fill in also
1459 argp->entry_kind (together with entryargp->entry_kind).
1460 (print_frame_args): New variable entryarg, initialize it.
1461 Conditionalize print_frame_arg for arg, add print_frame_arg for
1462 entryarg. Call xfree for entryarg.error.
1463 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1464 * symtab.h (struct symbol_computed_ops): New field
1465 read_variable_at_entry.
1466
1467 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1468
1469 Code reshuffle.
1470 * frame.h (struct frame_arg): New definition.
1471 (read_frame_arg): New declaration.
1472 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1473 (list_args_or_locals): ... the code here. New variable arg, call
1474 read_frame_arg and list_arg_or_local with it. Unify the
1475 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1476 arg.error.
1477 * stack.c (print_frame_arg): New functiom from the code of
1478 print_frame_args.
1479 (read_frame_arg): New function.
1480 (print_frame_args): Remove variable val. New variable arg, call
1481 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1482
1483 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1484
1485 Protect entry values against self tail calls.
1486 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1487 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1488
1489 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1490
1491 Recognize virtual tail call frames.
1492 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1493 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1494 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1495 * dwarf2-frame-tailcall.c: New file.
1496 * dwarf2-frame-tailcall.h: New file.
1497 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1498 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1499 REGS.PREV only after CIE execution.
1500 (struct dwarf2_frame_cache): New field tailcall_cache.
1501 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1502 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1503 parts, try to find entry_cfa_sp_offset. Call
1504 dwarf2_tailcall_sniffer_first.
1505 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1506 when appropriate.
1507 (dwarf2_frame_dealloc_cache): New function.
1508 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1509 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1510 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1511 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1512 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1513 * dwarf2loc.c (func_addr_to_tail_call_list)
1514 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1515 (call_site_find_chain_1, call_site_find_chain): New.
1516 * dwarf2loc.h (struct call_site_chain): New.
1517 (call_site_find_chain): New declaration.
1518 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1519 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1520 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1521 * stack.c (frame_info): Support also TAILCALL_FRAME.
1522
1523 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1524
1525 Tail call sites reader implementation.
1526 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1527 fill in TYPE_TAIL_CALL_LIST.
1528 * gdbtypes.h (struct func_type): New field tail_call_list.
1529 (struct call_site): New field tail_call_next.
1530 (TYPE_TAIL_CALL_LIST): New definition.
1531
1532 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1533
1534 Implement basic support for DW_TAG_GNU_call_site.
1535 * block.c: Include gdbtypes.h and exceptions.h.
1536 (call_site_for_pc): New function.
1537 * block.h (call_site_for_pc): New declaration.
1538 * defs.h: Include hashtab.h.
1539 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1540 declarations.
1541 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1542 ctx_no_push_dwarf_reg_entry_value.
1543 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1544 (dwarf_block_to_dwarf_reg): New function.
1545 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1546 (ctx_no_push_dwarf_reg_entry_value): New function.
1547 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1548 push_dwarf_reg_entry_value.
1549 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1550 declarations.
1551 * dwarf2loc.c: Include gdbcmd.h.
1552 (dwarf_expr_ctx_funcs): New forward declaration.
1553 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1554 (dwarf_expr_reg_to_entry_parameter)
1555 (dwarf_expr_push_dwarf_reg_entry_value): New.
1556 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1557 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1558 (needs_dwarf_reg_entry_value): New function.
1559 (needs_frame_ctx_funcs): Install it.
1560 (_initialize_dwarf2loc): New function.
1561 * dwarf2loc.h (entry_values_debug): New declaration.
1562 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1563 (read_call_site_scope): New forward declaration.
1564 (process_full_comp_unit): Copy call_site_htab.
1565 (process_die): Support DW_TAG_GNU_call_site.
1566 (read_call_site_scope): New function.
1567 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1568 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1569 (cleanup_htab): Delete.
1570 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1571 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1572 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1573 FIELD_LOC_KIND_DWARF_BLOCK.
1574 * gdbtypes.h (enum field_loc_kind): New entry
1575 FIELD_LOC_KIND_DWARF_BLOCK.
1576 (struct main_type): New loc entry dwarf_block.
1577 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1578 (TYPE_FIELD_DWARF_BLOCK): New.
1579 * python/py-type.c: Include dwarf2loc.h.
1580 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1581 internal_error call on unknown FIELD_LOC_KIND.
1582 * symtab.h (struct symtab): New field call_site_htab.
1583 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1584 (core_addr_hash, core_addr_eq): New functions.
1585
1586 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1587
1588 Code reshuffle.
1589 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1590 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1591 calling_convention under func_stuff there.
1592 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1593 (init_type) <TYPE_CODE_FUNC>: Likewise.
1594 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1595 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1596 * gdbtypes.h (enum type_specific_kind): Change
1597 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1598 (struct main_type) <type_specific>: Change calling_convention to
1599 func_stuff. Move calling_convention to ...
1600 (struct func_type): ... this new struct.
1601 (INIT_FUNC_SPECIFIC): New #define.
1602 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1603
1604 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1605
1606 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1607 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1608 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1609 ctx->ref_addr_size. Handle its invalid value.
1610 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1611 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1612 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1613 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1614 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1615 (dwarf2_per_cu_ref_addr_size): New function.
1616
1617 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1618
1619 Code cleanup.
1620 * dwarf2read.c (per_cu_header_read_in): New function.
1621 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1622 variables cu_header_local and cu_headerp.
1623
1624 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1625
1626 Fix initial language detection with -readnow.
1627 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1628 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1629 searches only for global symbols.
1630
1631 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1632
1633 Fix printed anonymous struct name.
1634 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1635 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1636 (anonymous_struct_prefix): New function.
1637 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1638 (dwarf2_name): Strip for anonymous structs any prefixes.
1639
1640 2011-10-07 Doug Evans <dje@google.com>
1641
1642 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1643 `replace'.
1644
1645 * python/lib/gdb/printing.py: Whitespace cleanup.
1646
1647 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1648 warning.
1649
1650 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1651
1652 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1653 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1654 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1655 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1656 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1657 (arm_linux_remove_watchpoint): Adjust.
1658 * i386-linux-nat.c (i386_linux_dr_set_control)
1659 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1660 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1661 (ia64_linux_remove_watchpoint): Adjust.
1662 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1663 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1664 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1665 (ppc_linux_insert_mask_watchpoint)
1666 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1667 (ppc_linux_remove_watchpoint): Adjust.
1668 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1669 Adjust.
1670
1671 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1672
1673 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1674 (clear_win32_environment): New function for Cygwin to clear out
1675 Win32 environment.
1676 (windows_create_inferior): Prepare new environment from in_env
1677 for Cygwin, too.
1678
1679 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1680
1681 PR python/13264
1682 * python/py-value.c (valpy_call): Check that arguments are
1683 a tuple.
1684 (is_intlike): Remove call to CHECK_TYPEDEF.
1685 (valpy_nonzero): Catch GDB exceptions.
1686 (valpy_absolute): Ditto.
1687 (valpy_lazy_string): Ditto.
1688 (valpy_call): Ditto.
1689 (valpy_get_is_optimized_out): Ditto.
1690 (valpy_long): Ditto.
1691 (valpy_float): Ditto.
1692 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1693 (valpy_richcompare): Ditto.
1694
1695 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1696
1697 * inferior.h (disable_randomization): Declare.
1698 * infrun.c (disable_randomization): New global variable.
1699 (show_disable_randomization): New function.
1700 (set_disable_randomization): Likewise.
1701 (_initialize_infrun): Install set/show disable-randomization
1702 commands.
1703 * linux-nat.c (disable_randomization): Remove.
1704 (show_disable_randomization): Likewise.
1705 (set_disable_randomization): Likewise.
1706 (_initialize_linux_nat): No longer install set/show
1707 disable-randomization commands here.
1708 (linux_nat_supports_disable_randomization): New function.
1709 (linux_nat_add_target): Install it.
1710 * remote.c (PACKET_QDisableRandomization): New enum value.
1711 (remote_protocol_packets): Support QDisableRandomization.
1712 (_initialize_remote): Likewise.
1713 (remote_supports_disable_randomization): New function.
1714 (init_remote_ops): Install it.
1715 (extended_remote_supports_disable_randomization): New function.
1716 (init_extended_remote_ops): Install it.
1717 (extended_remote_disable_randomization): New function.
1718 (extended_remote_create_inferior_1): Call it.
1719 * target.h (struct target_ops): Add to_supports_disable_randomization.
1720 (target_supports_disable_randomization): Add prototype.
1721 * target.c (target_supports_disable_randomization): New function.
1722 (find_default_supports_disable_randomization): Likewise.
1723 (init_dummy_target): Install it.
1724
1725 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1726
1727 Allow Python notification of new object-file loadings.
1728 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1729 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1730 Add build rule for this file.
1731 * python/py-event.h (emit_new_objfile_event): New prototype.
1732 (newobjfile): New Python event emitter.
1733 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1734 Python event registry.
1735 * python/py-inferior.c: Include objfiles.h
1736 (python_new_objfile): New function.
1737 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1738 observers.
1739 * python/py-newobjfileevent.c: New file.
1740 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1741 prototype.
1742 * python/python.c (_initialize_python): Add
1743 gdbpy_initialize_new_objfile_event call.
1744 * NEWS: Add item for new Python event "gdb.newobjfile"
1745
1746 2011-10-05 Tristan Gingold <gingold@adacore.com>
1747
1748 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1749 Extract the ravenscar task name from the symbol for the atcb.
1750
1751 2011-10-04 Paul Koning <paul_koning@dell.com>
1752
1753 * python/py-type.c (typy_make_iter): Add forward declaration.
1754 (typy_fields_items): Use the gdb.Type iterator.
1755
1756 2011-10-04 Paul Koning <paul_koning@dell.com>
1757
1758 * NEWS: Add entry for Python gdb.Type mapping methods.
1759
1760 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1761
1762 PR python/12691: Add the inferior to Python exited event
1763 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1764 to exited_event.
1765 * python/py-event.h (emit_exited_event): Likewise
1766 * python/-inferior.c (python_inferior_exit): Likewise
1767
1768 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1769
1770 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1771 in output of -ada-task-info GDB/MI command.
1772
1773 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1774
1775 * ada-lang.h (struct inferior): Declare.
1776 (print_ada_task_info): Add declaration.
1777 * ada-tasks.c (print_ada_task_info): Make non-static.
1778 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1779 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1780 * mi/mi-main.c: #include "ada-lang.h".
1781 (mi_cmd_list_features): Add "ada-task-info" to the list
1782 of supported features.
1783 (mi_cmd_ada_task_info): New function.
1784
1785 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1786
1787 * python/python.c (python_run_simple_file): New function.
1788 (source_python_script, source_python_script_for_objfile):
1789 Replace call to PyRun_SimpleFile by call to
1790 python_run_simple_file.
1791
1792 2011-10-03 Paul Koning <paul_koning@dell.com>
1793
1794 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1795 (value_to_value_object): Fetch value if it was lazy.
1796
1797 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 Code cleanup.
1800 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1801 Rearrange the code for it.
1802
1803 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1804
1805 * breakpoint.c (bkpt_print_recreate): Add call to
1806 print_recreate_thread.
1807
1808 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1809
1810 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1811 PTRACE_GETFDPIC_INTERP): Define.
1812
1813 2011-09-28 Yao Qi <yao@codesourcery.com>
1814
1815 * symfile.c (add_symbol_file_command): Update message on usage.
1816
1817 2011-09-28 Paul Koning <paul_koning@dell.com>
1818
1819 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1820 (typy_length, typy_get, typy_has_key, typy_make_iter)
1821 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1822 (typy_iterator_iter, typy_iterator_iternext)
1823 (typy_iterator_dealloc): New functions to implement standard
1824 Python mapping methods on gdb.Type object.
1825 (gdb.TypeIterator): New Python type.
1826 * python/python-internal.h (gdbpy_iter_kind): New enum.
1827
1828 2011-09-28 David S. Miller <davem@davemloft.net>
1829
1830 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1831 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1832 * sparc-tdep.c (sparc_complex_floating_p): New function.
1833 (sparc32_store_arguments): Handle complex floats.
1834 (sparc32_extract_return_value): Likewise.
1835 (sparc32_store_return_value): Likewise.
1836 (sparc32_stabs_argument_has_addr): Likewise.
1837 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1838 (sparc64_store_floating_fields): Handle complex floats.
1839 (sparc64_store_arguments): Likewise.
1840 (sparc64_store_return_value): Likewise.
1841
1842 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1843
1844 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1845 before the change on 2006-12-09.
1846 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1847 generates the environment block for CreateProcessA, modulo the
1848 Cygwin-specific parts that are not needed here.
1849
1850 2011-09-27 Tristan Gingold <gingold@adacore.com>
1851
1852 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1853 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1854 (darwin_solib_get_all_image_info_addr_at_init): New function.
1855 (darwin_solib_read_all_image_info_addr): Likewise.
1856 (darwin_solib_create_inferior_hook): Use the above two functions.
1857 * darwin-nat.c (darwin_execvp): Renames retval to res.
1858 (darwin_read_write_inferior): Update comment.
1859 (darwin_read_dyld_info): New function.
1860 (darwin_xfer_partial): Handle DYLD_INFO.
1861
1862 2011-09-27 Stan Shebs <stan@codesourcery.com>
1863
1864 Add return address collection for tracepoints.
1865 * tracepoint.c (encode_actions_1): Add case for $_ret.
1866 (validate_actionline): Check for $_ret.
1867 (trace_dump_actions): Ditto.
1868 * ax-gdb.h (gen_trace_for_return_address): Declare.
1869 * ax-gdb.c: Include arch-utils.h.
1870 (gen_trace_for_return_address): New function.
1871 (agent_command): Add return address special case.
1872 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1873 (amd64_gen_return_address): New function.
1874 (amd64_init_abi): Call it.
1875 * i386-tdep.c: Include ax.h and ax-gdb.h.
1876 (i386_gen_return_address): New function.
1877 (i386_init_abi): Call it.
1878 * arch-utils.h (default_gen_return_address): Declare.
1879 * arch-utils.c (default_gen_return_address): New function.
1880 * gdbarch.sh (gen_return_address): New method.
1881 * gdbarch.h, gdbarch.c: Regenerate.
1882
1883 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1884
1885 PR gdb/13079
1886 * i386-tdep.c (i386_frame_align): New.
1887 (i386_gdbarch_init): Use i386_frame_align.
1888
1889 2011-09-23 Yao Qi <yao@codesourcery.com>
1890
1891 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1892 to get address.
1893
1894 2011-09-22 Tristan Gingold <gingold@adacore.com>
1895
1896 * fork-child.c (fork_inferior): Add exec_fun parameter.
1897 Call exec_fun or execvp.
1898 * inferior.h: Adjust prototype.
1899 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1900 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1901 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1902 * procfs.c (procfs_create_inferior): Ditto.
1903 * darwin-nat.c (darwin_execvp): New function.
1904 (darwin_create_inferior): Use it.
1905
1906 2011-09-22 Yao Qi <yao@codesourcery.com>
1907
1908 * infrun.c (context_switch): Print debug message when switching to
1909 a different thread.
1910
1911 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1912
1913 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1914 complex and vector types.
1915 (s390_return_value_convention): Likewise.
1916
1917 (s390_value_from_register): Call check_typedef.
1918 (extend_simple_arg): Likewise.
1919 (alignment_of): Likewise.
1920 (s390_push_dummy_call): Likewise.
1921 (s390_return_value): Likewise.
1922
1923 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1924
1925 * event-top.c (async_disconnect): If an exception is thrown from
1926 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1927 catch_errors.
1928 * top.c (quit_cover): Return void and take no arguments.
1929 * top.h (quit_cover): Update prototype.
1930
1931 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1932
1933 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1934 current_uiout, not uiout.
1935
1936 2011-09-19 Doug Evans <dje@google.com>
1937
1938 * python/py-auto-load.c (source_section_scripts): Fix file
1939 descriptor leak.
1940 * python/python.c (source_python_script_for_objfile): Tweak comments.
1941
1942 2011-09-18 Yao Qi <yao@codesourcery.com>
1943 Ulrich Weigand <ulrich.weigand@linaro.org>
1944
1945 Support displaced stepping for Thumb 16-bit insns.
1946 * arm-tdep.c (THUMB_NOP) Define.
1947 (thumb_copy_unmodified_16bit): New.
1948 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1949 (thumb_copy_alu_reg): New.
1950 (arm_copy_svc): Move some common code to ...
1951 (install_svc): ... here. New.
1952 (thumb_copy_svc): New.
1953 (install_pc_relative): New.
1954 (thumb_copy_pc_relative_16bit): New.
1955 (thumb_decode_pc_relative_16bit): New.
1956 (thumb_copy_16bit_ldr_literal): New.
1957 (thumb_copy_cbnz_cbz): New.
1958 (cleanup_pop_pc_16bit_all): New.
1959 (thumb_copy_pop_pc_16bit): New.
1960 (thumb_process_displaced_16bit_insn): New.
1961 (thumb_process_displaced_32bit_insn): New.
1962 (thumb_process_displaced_insn): process thumb instruction.
1963
1964 Support displaced stepping for Thumb 32-bit insns.
1965 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1966 (thumb2_copy_preload): New.
1967 (thumb2_copy_copro_load_store): New.
1968 (thumb2_copy_b_bl_blx): New.
1969 (thumb2_copy_alu_imm): New.
1970 (thumb2_copy_load_reg_imm): New.
1971 (thumb2_copy_load_literal): New
1972 (thumb2_copy_block_xfer): New.
1973 (thumb_32bit_copy_undef): New.
1974 (thumb_32bit_copy_unpred): New.
1975 (thumb2_decode_ext_reg_ld_st): New.
1976 (thumb2_decode_svc_copro): New.
1977 (decode_thumb_32bit_store_single_data_item): New.
1978 (thumb_copy_pc_relative_32bit): New.
1979 (thumb_decode_pc_relative_32bit): New.
1980 (decode_thumb_32bit_ld_mem_hints): New.
1981 (thumb2_copy_table_branch): New
1982 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1983 instructions.
1984
1985 2011-09-18 Yao Qi <yao@codesourcery.com>
1986
1987 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1988 (install_b_bl_blx): Likewise.
1989
1990 2011-09-17 Yao Qi <yao@codesourcery.com>
1991
1992 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1993 (install_load_store): ... this. New.
1994 Change parameter BYTE to SIZE.
1995 (arm_copy_ldr_str_ldrb_strb): Update caller.
1996 (arm_decode_ld_st_word_ubyte): Update caller.
1997
1998 2011-09-17 Yao Qi <yao@codesourcery.com>
1999
2000 * infrun.c (displaced_step_fixup): Move some code ...
2001 (displaced_step_restore): ... here. New function.
2002 (handle_inferior_event): Cleanup displaced stepping state for both
2003 child and parent when get forked or vforked event.
2004 * regcache.c (get_thread_arch_aspace_regcache): New function.
2005 get_thread_arch_regcache (): Call it.
2006
2007 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2008
2009 * ada-tasks.c (print_ada_task_info): New function, merging
2010 short_task_info and info_tasks together. Reimplement using
2011 ui-out instead of printing to stdout directly. Move the code
2012 building and checking the task list here, instead of leaving it
2013 in info_tasks_command.
2014 (info_task): Move the code building and checking the task
2015 list here, instead of leaving it in info_tasks_command.
2016 (info_tasks_command): Delete code building and checking
2017 the task list - moved elsewhere. Update calls to info_tasks
2018 and info_task.
2019
2020 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2021
2022 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2023
2024 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2025
2026 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2027
2028 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2029
2030 * ada-lang.h (ada_build_task_list): Remove parameter
2031 `warn_if_null'.
2032 * ada-tasks.c (ada_build_task_list): Remove parameter
2033 `warn_if_null'. Adjust implementation and documentation.
2034 (valid_task_id, ada_get_environment_task)
2035 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2036 (info_tasks_command): Adjust implementation.
2037 (task_command): Likewise.
2038 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2039 to ada_build_task_list.
2040
2041 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2042
2043 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2044 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2045 (ada_tasks_inferior_data_handle): New static global.
2046 (get_ada_tasks_inferior_data): New function.
2047 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2048 (ada_get_environment_task, iterate_over_live_ada_tasks)
2049 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2050 Adjust.
2051 (ada_set_current_inferior_known_tasks_addr): New function.
2052 (read_known_tasks, ada_build_task_list, short_task_info)
2053 (info_tasks, info_task, info_tasks_command, task_command_1)
2054 (task_command, ada_task_list_changed): Adjust.
2055 (ada_tasks_invalidate_inferior_data): New function.
2056 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2057 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2058 * ada-lang.h (struct inferior): Add declaration.
2059 (ada_task_list_changed): Update profile.
2060 * remote-wtx-pd.c: #include "inferior.h".
2061 (switch_to_pd_internal): Update call to ada_task_list_changed.
2062
2063 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2064
2065 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2066 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2067 (atcb_fieldno): Delete these static globals.
2068 (struct ada_tasks_pspace_data): New struct.
2069 (ada_tasks_pspace_data_handle): New static global.
2070 (get_ada_tasks_pspace_data): New function.
2071 (ada_tasks_invalidate_pspace_data): New function.
2072 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2073 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2074 (_initialize_tasks): Create this module's per-progspace
2075 data handle.
2076
2077 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2078
2079 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2080
2081 2011-09-16 Tristan Gingold <gingold@adacore.com>
2082
2083 * fork-child.c (fork_inferior): Update comment. Use alloca
2084 instead of xmalloc for argv. Move len and shell_command
2085 declarations in the block where they are used.
2086 Only call execvp. Factorize failure code.
2087
2088 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2089
2090 Code cleanup.
2091 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2092 `exp_element' instead of an element of the same and make the function
2093 static.
2094 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2095 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2096 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2097 Change argument of `write_exp_elt' function call.
2098 Remove extra spaces from comments.
2099 * parser-defs.h (write_exp_elt): Remove prototype.
2100
2101 2011-09-15 Paul Koning <paul_koning@dell.com>
2102
2103 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2104 count of item appended to list.
2105 * python/py-type.c (typy_fields): Likewise.
2106
2107 2011-09-15 Paul Koning <paul_koning@dell.com>
2108
2109 * MAINTAINERS (Write After Approval): Add myself to the list.
2110
2111 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2112
2113 PR threads/12628
2114 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2115 processes with multiple threads.
2116 (inf_has_multiple_thread_cb): New function.
2117 (inf_has_multiple_threads): New function.
2118
2119 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2120
2121 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2122 * python/py-inferior.c (GdbMethods): New Python method definition.
2123
2124 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2125
2126 Handle multiple breakpoint hits in Python interface:
2127 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2128 variable to breakpoints.
2129 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2130 bps instead of single breakpoint. Fix some space typos.
2131 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2132 variable to breakpoints.
2133
2134 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2135
2136 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2137 note if the breakpoint is internal.
2138
2139 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2140
2141 * MAINTAINERS (Write After Approval): Add myself to the list
2142
2143 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2144
2145 * infrun.c (prepare_for_detach, wait_for_inferior)
2146 (fetch_inferior_event): Don't flush the register cache.
2147 * remote.c (struct stop_reply) <regcache>: Add comment.
2148
2149 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2150
2151 Remove excessive DWARF expressions memory duplication.
2152 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2153 for block.data.
2154 (indirect_pieced_value): Remove variable result. Remove variable
2155 back_to and its use for baton.data.
2156 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2157 block.data.
2158 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2159 Update the function comment.
2160
2161 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2162
2163 * inferior.h (ALL_INFERIORS): New.
2164 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2165 for a stopped thread.
2166 (thread_db_find_new_threads): Look for threads in all inferiors.
2167
2168 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2169
2170 * breakpoint.c (update_watchpoint): Handle the case of the
2171 watchpoint to update not being in the breakpoint list yet.
2172 (hw_watchpoint_use_count): New, factored out from
2173 hw_watchpoint_used_count.
2174 (hw_watchpoint_used_count): Rename to ...
2175 (hw_watchpoint_used_count_others): ... this. Add `except'
2176 parameter. Don't count resources of `except'. Use
2177 hw_watchpoint_use_count.
2178
2179 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2180
2181 * gdbthread.h (enum thread_state): Moved here.
2182 (struct thread_info): Rename `executing_' field to `executing' and
2183 `state_' to `state'.
2184 * thread.c (enum thread_state): Moved to gdbthread.h.
2185 (new_thread, add_thread_silent, delete_thread_1)
2186 (any_live_thread_of_process, thread_alive, set_running)
2187 (set_running, is_thread_state, any_running, is_executing)
2188 (set_executing, finish_thread_state, print_thread_info)
2189 (do_captured_thread_select): Adjust.
2190
2191 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2192
2193 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2194 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2195
2196 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2197 Matt Rice <ratmice@gmail.com>
2198
2199 PR gdb/13175
2200
2201 * interps.c (struct interp) <interpreter_out>: Delete field.
2202 (interp_new): Remove the data and uiout parameters and adjust.
2203 (interp_set): Only set the current_uiout from the interpreter's
2204 uiout after initializing the interpreter. Adjust call to
2205 init_proc.
2206 (interp_ui_out): Adjust to call procs->ui_out_proc.
2207 (interp_data, interp_name): New.
2208 * interps.h (interp_init_ftype): Add `self' parameter.
2209 (interp_ui_out_ftype): New typedef.
2210 (struct interp_procs) <ui_out_proc>: New method pointer.
2211 (interp_new): Remove the data and uiout parameters.
2212 (interp_data, interp_name): Declare.
2213 * tui/tui-interp.c (tui_init): Adjust prototype.
2214 (tui_ui_out): New.
2215 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2216 tui_out here. Adjust call to interp_new.
2217 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2218 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2219 (cli_ui_out): New.
2220 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2221 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2222 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2223 Initialize mi->uiout depending on the mi_version as extracted from
2224 the interpreter's name.
2225 (mi_ui_out): New.
2226 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2227 interp_new. Don't allocate the ui_out's of the interpreters here.
2228
2229 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2230
2231 * solib.c (solib_used): New function.
2232 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2233 by another so_list object before freeing it.
2234
2235 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 Code cleanup.
2238 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2239 values.
2240
2241 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2242
2243 Code cleanup.
2244 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2245 (amd64_skip_xmm_prologue): ... this new function. Describe its
2246 parameters. No longer use amd64_prologue_line_bug.
2247 * defs.h (producer_is_gcc_ge_4): New declaration.
2248 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2249 (process_full_comp_unit): Update its caller. Remove
2250 amd64_prologue_line_bug initialization.
2251 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2252 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2253
2254 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2255
2256 * linux-nat.h (enum resume_kind): New.
2257 (struct lwp_info) <last_resume_kind>: New field.
2258 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2259 resume_stop on the new lwp.
2260 (add_lwp): Set last_resume_kind as resume_continue by default.
2261 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2262 (resume_lwp): New, factored out from resume_callback. Also check
2263 for pending status in lp->waitstatus.
2264 (resume_callback): Reimplement.
2265 (resume_clear_callback): Set last_resume_kind as resume_stop.
2266 (resume_set_callback): Set last_resume_kind as resume_continue.
2267 (linux_nat_resume, linux_handle_extended_wait): Set
2268 last_resume_kind.
2269 (running_callback): Also check lp->waitstatus for pending events.
2270 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2271 is resume_step.
2272 (stop_and_resume_callback): Don't re-resume if the core wanted the
2273 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2274 using an invalidated pointer.
2275 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2276 SIGSTOPs if the core wanted the LWP to stop.
2277 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2278 wanted the lwp to stop. If the core wanted the lwp to stop, and
2279 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2280 of TARGET_SIGNAL_STOP.
2281 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2282 here. Instead, signal the lwp, and set the last_resume_kind to
2283 resume_stop.
2284
2285 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2286
2287 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2288 -1 (error), if the lwp exits right after attaching.
2289
2290 2011-09-08 Doug Evans <dje@google.com>
2291
2292 * py-cmd.c: Some minor formatting fixes.
2293 (gdbpy_parse_command_name): Rename text arg to name, make const.
2294 All callers updated.
2295 * python-internal.h (gdbpy_parse_command_name): Update.
2296
2297 * cli/cli-decode.c (add_cmd): Add comment.
2298
2299 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 PR breakpoints/12435
2302 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2303 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2304 * dwarf2read.c (process_full_comp_unit): Initialize
2305 amd64_prologue_line_bug.
2306 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2307
2308 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2309
2310 Fix TUI screen corruption.
2311 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2312 batch_flag.
2313
2314 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2315
2316 * findvar.c (read_var_value): Never return NULL, throw an error
2317 instead. Update the function comment. State symbol name in the error
2318 messages.
2319 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2320 read_var_value.
2321 * stack.c (print_frame_args): Likewise.
2322 * valops.c (value_of_variable): Likewise.
2323
2324 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 * stack.c (print_frame_args): New variable except. Wrap
2327 read_var_value and common_val_print into TRY_CATCH.
2328
2329 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2330
2331 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2332 caller to value_of_this.
2333 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2334 Twice.
2335 * valops.c (value_of_this): Remove parameter complain and variable ret.
2336 Update function comment. Never return NULL by this code.
2337 (value_of_this_silent): New function.
2338 * value.h (value_of_this): Remove parameter complain.
2339 (value_of_this_silent): New declaration.
2340
2341 2011-09-07 Yao Qi <yao@codesourcery.com>
2342
2343 * gdbthread.h (struct thread_info): Remove fields
2344 `stepping_through_solib_after_catch' and
2345 `stepping_through_solib_catchpoints'.
2346 * infrun.c (init_thread_stepping_state): Update.
2347 (process_event_stop_test, currently_stepping): Update.
2348 (currently_stepping_or_nexting_callback): Update.
2349
2350 2011-09-07 Yao Qi <yao@codesourcery.com>
2351
2352 * gdbthread.h (struct thread_info): Comment on field
2353 `step_after_step_resume_breakpoint'.
2354
2355 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2356
2357 * remote.c (remote_console_output): Reindent.
2358
2359 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2360
2361 * frame.c (has_stack_frames): Check for currently selected
2362 traceframe.
2363
2364 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2365
2366 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2367 (set_async_annotation_level, set_async_prompt, pop_prompt)
2368 (push_prompt, new_async_prompt): Delete declarations.
2369 * top.h (get_prompt, set_prompt): Change prototype.
2370 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2371 declarations.
2372 * top.c (command_loop):
2373 (top_prompt): New global.
2374 (get_prefix, set_prefix, get_suffix, ): Delete.
2375 (get_prompt, set_prompt): Rewrite.
2376 (show_new_async_prompt): Rename to ...
2377 (show_prompt): ... this.
2378 (init_main): Adjust. Don't handle --annotate=2 here.
2379 * event-top.c (new_async_prompt): Delete.
2380 (the_prompts): Delete.
2381 (more_to_come): Make static.
2382 (display_gdb_prompt): Use top_level_prompt() to compute the top
2383 level prompt, and don't notify the before_prompt observers
2384 directly here. Always trick readline into not trying to display
2385 the prompt if sync_execution and displaying the primary prompt.
2386 If displaying a local/secondary prompt, always show it, even if
2387 sync_execution is set.
2388 (change_annotation_level): Delete.
2389 (top_level_prompt): New, based on change_annotation_level.
2390 (push_prompt, pop_prompt): Delete.
2391 (async_disable_stdin): No longer pushes prompt.
2392 (command_line_handler): No longer pushes or pops prompt. If more
2393 input is expected, call display_gdb_prompt with an explicit empty
2394 prompt.
2395 (async_stop_sig): Adjust.
2396 (set_async_annotation_level, set_async_prompt): Delete.
2397 * python/python.c (before_prompt_hook): Adjust.
2398
2399 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2400
2401 PR cli/13110
2402
2403 * infrun.c (fetch_inferior_event): Check if there's a selected
2404 thread before checking if the selected thread is executing.
2405
2406 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2407
2408 * inf-loop.c (execute_command): Don't check if the current thread
2409 if running before synchronously waiting for command completion.
2410 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2411 here.
2412 (normal_stop): Call async_enable_stdin here.
2413 * inf-loop.c (inferior_event_handler): Don't call
2414 async_enable_stdin, nor handle "set exec-done-display" here.
2415
2416 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2417
2418 GDB 7.3.1 released.
2419
2420 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2421
2422 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2423
2424 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2425
2426 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2427
2428 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2429
2430 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2431
2432 2011-09-02 Matt Rice <ratmice@gmail.com>
2433
2434 PR gdb/10720
2435 * event-top.c (cli_command_loop): Replace readline setup with
2436 direct call to display_gdb_prompt.
2437 (display_gdb_prompt): Do not call observer mechanism during
2438 synchronous execution.
2439
2440 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2441
2442 * linux-nat.c (in_pid_list_p): New.
2443 (linux_record_stopped_pid): Delete.
2444 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2445 already attached to the LWP. Return an indication if so.
2446 (linux_nat_filter_event): Adjust.
2447 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2448 returning an indication to ignore this thread.
2449
2450 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2451
2452 * top.c: Include interps.h.
2453 (execute_command): If the target can async, but the interpreter is
2454 in sync mode, synchronously wait for the command to finish before
2455 returning.
2456 (execute_command_to_string): Force the interpreter to sync mode.
2457 * infrun.c: Include interps.h.
2458 (fetch_inferior_event): Don't restore the prompt yet if the
2459 interpreter is in sync mode.
2460 * interps.c (interpreter_async): New global.
2461 * interps.h (interpreter_async): Declare.
2462 * inf-loop.c: Include interps.h.
2463 (inferior_event_handler): Don't print the language change or run
2464 breakpoint commands yet if the interpreter in is sync mode.
2465 * main.c (captured_command_loop): Flip the interpreter to async
2466 mode.
2467 * cli/cli-script.c: Include interps.h.
2468 (execute_user_command, while_command, if_command): Force the
2469 interpreter to sync mode.
2470 * python/python.c: Include interps.h.
2471 (python_command, execute_gdb_command): Force the interpreter to
2472 sync mode.
2473
2474 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2475
2476 * value.c (show_convenience): Catch errors thrown while printing
2477 each internal variable.
2478 * infrun.c (validate_siginfo_access): New function.
2479 (siginfo_value_read, siginfo_value_write): Call it.
2480
2481 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2482
2483 Revert:
2484 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2485 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2486 attribute.
2487
2488 2011-08-29 Yao Qi <yao@codesourcery.com>
2489
2490 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2491 (cmp_name): New.
2492 (enable_break2): Update caller.
2493 * solib-frv.c (bfd_lookup_symbol): Removed.
2494 (cmp_name): New.
2495 (enable_break2): Update caller.
2496 * solib-pa64.c (bfd_lookup_symbol): Removed.
2497 (cmp_name): New.
2498 * solib-svr4.c (bfd_lookup_symbol): Removed.
2499 (cmp_name_and_sec_flags): New.
2500 (enable_break): Update caller.
2501 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2502 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2503 (gdb_bfd_lookup_symbol): New.
2504 * solib.h: Functions declarations.
2505
2506 2011-08-29 Yao Qi <yao@codesourcery.com>
2507
2508 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2509 and solib-dsbt.o.
2510
2511 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2512
2513 Fix TUI stepi on code without symbols.
2514 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2515 current PC instead.
2516
2517 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 Code cleanup.
2520 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2521 and the static keyword.
2522 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2523 Make prefix an array.
2524 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2525 * mi/mi-main.c (get_register): Remove stb initialization and the static
2526 keyword.
2527
2528 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2529
2530 Code cleanup - make mi_opt const.
2531 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2532 opts const.
2533 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2534 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2535 (mi_cmd_env_dir): Likewise.
2536 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2537 (mi_cmd_target_file_put): Likewise.
2538 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2539 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2540 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2541 (mi_valid_noargs): Make opts const.
2542 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2543 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2544 (mi_cmd_data_read_memory): Likewise.
2545 (mi_cmd_data_read_memory_bytes): Likewise.
2546 (mi_cmd_data_write_memory): Likewise.
2547
2548 2011-08-26 Matt Rice <ratmice@gmail.com>
2549
2550 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2551 bcache_xmalloc, replace bcache_xmalloc with call to
2552 psymbol_bcache_init for psymbol_cache.
2553 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2554
2555 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2556
2557 * inf-loop.c (inferior_event_handler): Add exception_print in
2558 INF_EXEC_COMPLETE.
2559
2560 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2561
2562 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2563 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2564 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2565 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2566 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2567 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2568 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2569 * infrun.c (fetch_inferior_event): Call
2570 make_bpstat_clear_actions_cleanup.
2571 * top.c (execute_command): New variable cleanup_if_error, call
2572 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2573 * utils.c (do_bpstat_clear_actions_cleanup)
2574 (make_bpstat_clear_actions_cleanup): New functions.
2575
2576 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2577
2578 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2579 either the parent or the child forks. Rename a couple locals.
2580
2581 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2582
2583 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2584 library call. Avoid reading the `status' local if all waitpid
2585 calls failed.
2586
2587 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2588
2589 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2590 opening /proc/PID/task always succeeds.
2591
2592 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2593
2594 * linespec.c (symtab_from_filename): Check for the end of string.
2595
2596 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2597
2598 PR mi/11912
2599 * varobj.c (cplus_describe_child): Add the keyword
2600 'class' to the output of the method when dealing
2601 with a cast to a base class.
2602
2603 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2604
2605 No functionality change.
2606 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2607 function comment a reference, new variables tp and bs, move here code
2608 from throw_exception.
2609 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2610 describe it in the comment.
2611 * exceptions.c (throw_exception): Remove variable tp, move the code for
2612 bpstat_clear_actions to bpstat_clear_actions.
2613
2614 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2615
2616 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2617 * linux-nat.c: Include linux-procfs.h.
2618 (linux_proc_get_tgid): Move to ...
2619 * common/linux-procfs.c: ... here. New file.
2620 * common/linux-procfs.h: New file.
2621 * linux-thread-db.c: Include linux-procfs.h.
2622 * Makefile.in: Update dependencies.
2623 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2624 * config/arm/linux.mh: Likewise.
2625 * config/i386/linux.mh: Likewise.
2626 * config/i386/linux64.mh: Likewise.
2627 * config/ia64/linux.mh: Likewise.
2628 * config/m32r/linux.mh: Likewise.
2629 * config/m68k/linux.mh: Likewise.
2630 * config/mips/linux.mh: Likewise.
2631 * config/pa/linux.mh: Likewise.
2632 * config/pa/linux.mh: Likewise.
2633 * config/powerpc/linux.mh: Likewise.
2634 * config/powerpc/ppc64-linux.mh: Likewise.
2635 * config/powerpc/spu-linux.mh: Likewise.
2636 * config/sparc/linux.mh: Likewise.
2637 * config/sparc/linux64.mh: Likewise.
2638 * config/xtensa/linux.mh: Likewise.
2639
2640 2011-08-24 Hui Zhu <teawater@gmail.com>
2641
2642 * tracepoint.c (cond_string_is_same): New function.
2643 (find_matching_tracepoint): Add condition check
2644 by cond_string_is_same.
2645
2646 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2647
2648 Fix build error in Darwin port.
2649 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2650
2651 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2652
2653 Code cleanup.
2654 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2655 (command_line_is_silent): New function.
2656 (bpstat_do_actions_1): No longer use commands_left, use
2657 command_line_is_silent for commands.
2658 (bpstat_alloc): Remove clearing of commands_left.
2659 (bpstat_stop_status): Remove initialization of commands_left, use
2660 command_line_is_silent.
2661 * breakpoint.h (struct bpstats): Remove commands_left.
2662
2663 2011-08-18 Keith Seitz <keiths@redhat.com>
2664
2665 PR c++/12266
2666 * cp-name-parser.y (struct demangle_info): Remove unused
2667 member PREV.
2668 (d_grab): Likewise.
2669 (allocate_info): Change return type to struct demangle_info *.
2670 Always allocate a new demangle_info.
2671 Remove unused PREV pointer.
2672 (cp_new_demangle_parse_info): New function.
2673 (cp_demangled_name_parse_free): New function.
2674 (do_demangled_name_parse_free_cleanup): New function.
2675 (make_cleanup_cp_demangled_name_parse_free): New function.
2676 (cp_demangled_name_to_comp): Change return type to
2677 struct demangle_parse_info *.
2678 Allocate a new storage for each call.
2679 (main): Update usage for cp_demangled_name_to_comp
2680 API change.
2681 * cp-support.h (struct demangle_parse_info): New structure.
2682 (cp_demangled_name_to_comp): Update API change for
2683 return type.
2684 (cp_new_demangle_parse_info): Declare.
2685 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2686 (cp_demangled_name_parse_free): Declare.
2687 * cp-support.c (cp_canonicalize_string): Update API
2688 change for cp_demangled_name_to_comp.
2689 (mangled_name_to_comp): Likewise.
2690 Return struct demangle_parse_info, too.
2691 (cp_class_name_from_physname): Update mangled_name_to_comp
2692 API change.
2693 (method_name_from_physname): Likewise.
2694 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2695 (cp_remove_params): Likewise.
2696 * python/py-type.c (typy_legacy_template_argument): Likewise.
2697
2698 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2699 (cp_merge_demangle_parse_infos): Declare.
2700 * cp-support.c (ignore_typedefs): New file global.
2701 (copy_string_to_obstack): New function.
2702 (inspect_type): New function.
2703 (replace_typedefs): New function.
2704 (replace_typedefs_qualified_name): New function.
2705 (cp_canonicalize_string_no_typedefs): New function.
2706 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2707 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2708 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2709 instead of cp_canonicalize_string.
2710 (find_method): Likewise.
2711 (decode_compound): Before looking up the name, call
2712 cp_canonicalize_string_no_typedefs.
2713 (decode_variable): Likewise.
2714
2715 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2716 Tom Tromey <tromey@redhat.com>
2717 Matt Rice <ratmice@gmail.com>
2718
2719 * python/lib/gdb/prompt.py: New file.
2720 * python/lib/gdb/command/prompt.py: New file.
2721 * NEWS: Document set extended-prompt and gdb.prompt library
2722
2723 2011-08-16 Yao Qi <yao@codesourcery.com>
2724
2725 * tic6x-linux-tdep.c: Move const arrays definition from here...
2726 * tic6x-tdep.c: to here ...
2727
2728 2011-08-14 Yao Qi <yao@codesourcery.com>
2729
2730 * NEWS: New port to Texas Instruments TMS320C6x.
2731
2732 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2733 Bernd Schmidt <bernds@codesourcery.com>
2734 Yao Qi <yao@codesourcery.com>
2735
2736 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2737 * solib-dsbt.c: New file. Support DSBT shared object.
2738 * tic6x-linux-tdep.c: New file.
2739 * tic6x-tdep.c: New file.
2740 * tic6x-tdep.h: New file.
2741
2742 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2743 Yao Qi <yao@codesourcery.com>
2744
2745 * remote.c (PACKET_qXfer_fdpic): New enum value.
2746 (remote_protocol_features): Add qXfer:fdpic:read packet.
2747 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2748 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2749 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2750
2751 2011-08-14 Yao Qi <yao@codesourcery.com>
2752
2753 Target description for tic6x.
2754 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2755 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2756 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2757 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2758 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2759 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2760 * features/tic6x-c64xp-linux.xml: New.
2761 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2762 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2763 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2764 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2765 * regformats/tic6x-c64xp.dat,
2766 regformats/tic6x-c62x-linux.dat: Generated.
2767 * regformats/tic6x-c64x-linux.dat,
2768 regformats/tic6x-c64xp-linux.dat: Generated.
2769 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2770 features/tic6x-*.c files.
2771 Add regformats/tic6x-*.dat files.
2772
2773 2011-08-12 Doug Evans <dje@google.com>
2774
2775 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2776 * python/py-symbol.c (sympy_get_type): New function.
2777 (symbol_object_getset): Add "type".
2778
2779 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2780
2781 PR tui/13073
2782
2783 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2784 empty name.
2785 (tui_show_register_group): Don't store a byte buffer in the data
2786 element's value.
2787 (tui_register_format): Skip registers with an empty name.
2788 (tui_get_register): Store a struct value in the data element's
2789 value field instead of a byte buffer holding the raw register
2790 contents. Account for optimized-out and unavailable registers
2791 when comparing register contents.
2792
2793 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2794
2795 * printcmd.c (current_display_number): Update comment.
2796 (disable_current_display_cleanup): Delete.
2797 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2798 catch errors thrown while evaluating and printing the display.
2799
2800 2011-08-09 Tom Tromey <tromey@redhat.com>
2801
2802 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2803
2804 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2805
2806 * elfread.c (elf_symtab_read): Rework comments.
2807 * maint.c (maintenance_command): Ditto.
2808 * somread.c (som_symtab_read): Ditto.
2809 * solib.c (solib_find, solib_map_sections, update_solib_list)
2810 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2811 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2812 (sharedlibrary_command, no_shared_libraries): Ditto.
2813 * solib-irix.c (locate_base, disable_break, enable_break)
2814 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2815 (irix_current_sos, irix_open_symbol_file_object)
2816 (irix_special_symbol_handling): Ditto.
2817 * solib-sunos.c (locate_base, first_link_map_member)
2818 (sunos_current_sos, disable_break, enable_break)
2819 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2820 Ditto.
2821 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2822 (open_symbol_file_object, svr4_current_sos, enable_break)
2823 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2824 Ditto.
2825 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2826 (frv_current_sos, enable_break, frv_special_symbol_handling)
2827 (frv_solib_create_inferior_hook): Ditto.
2828 * solist.h (struct target_so_ops): Extend the comments of the
2829 special_symbol_handling, current_sos and open_symbol_file_object
2830 methods.
2831
2832 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2833
2834 * python/lib/gdb/__init__.py: Auto-load files in command and
2835 function directories.
2836 * python/python.c (finish_python_initialization): Use
2837 os.path.join.
2838 * python/lib/gdb/command/pretty_printers.py: Self register
2839 command.
2840 * NEWS: Document auto-loading.
2841
2842 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2843
2844 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2845 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2846 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2847
2848 2011-08-08 Tom Tromey <tromey@redhat.com>
2849
2850 * breakpoint.c (clean_up_filters): Remove.
2851 (catch_syscall_split_args): Use VEC_cleanup.
2852
2853 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2854
2855 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2856 (main): Uncomment "Demangling error\n".
2857
2858 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2859
2860 * solib-target.c (segment_attributes): Make them static.
2861 (section_attributes, library_children, library_attributes): Likewise.
2862 (library_list_children, library_list_attributes): Likesise.
2863 (library_list_elements): Likewise.
2864
2865 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2866
2867 * exceptions.c (throw_exception): Don't disable the current
2868 display.
2869 * printcmd.c (disable_current_display_cleanup): New function.
2870 (do_one_display): Install a cleanup to disable the current display
2871 if doing the display throws.
2872
2873 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2874
2875 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2876 initialization of the tp_new member to the corresponding
2877 gdbpy_initialize_* function.
2878 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2879 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2880 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2881 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2882 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2883
2884 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2885
2886 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2887 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2888 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2889 references to current_uiout.
2890
2891 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2892
2893 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2894 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2895 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2896 * top.c (gdb_readline_wrapper): Adjust.
2897 * tui/tui-interp.c (tui_command_loop):
2898 (_initialize_tui_interp): Don't install it.
2899
2900 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2901
2902 * ui-out.h (uiout): Rename to ...
2903 (current_uiout): ... this.
2904 * ui-out.c (uiout): Rename to ...
2905 (current_uiout): ... this.
2906 * ada-lang.c (print_it_exception, print_one_exception)
2907 (print_mention_exception): Adjust.
2908 * breakpoint.c (watchpoint_check): Adjust.
2909 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2910 (default_collect_info, watchpoints_info, print_one_catch_fork)
2911 (print_one_catch_vfork, print_one_catch_syscall)
2912 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2913 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2914 (print_it_watchpoint, print_mention_watchpoint)
2915 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2916 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2917 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2918 (bkpt_print_mention, momentary_bkpt_print_it)
2919 (tracepoint_print_mention, update_static_tracepoint)
2920 (tracepoints_info, save_breakpoints): Adjust.
2921 * cli-out.c (field_separator): Adjust.
2922 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2923 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2924 * frame.c (get_current_frame): Adjust.
2925 * infcmd.c (run_command_1, print_return_value): Adjust.
2926 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2927 * infrun.c (print_end_stepping_range_reason): Adjust.
2928 (print_signal_exited_reason, print_exited_reason): Adjust.
2929 (print_signal_received_reason, print_no_history_reason): Adjust.
2930 * interps.c (interp_set): Adjust.
2931 * osdata.c (info_osdata_command): Adjust.
2932 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2933 * remote-fileio.c (remote_fileio_request): Adjust.
2934 * remote.c (show_remote_cmd): Adjust.
2935 * solib.c (info_sharedlibrary_command): Adjust.
2936 * source.c (print_source_lines_base): Adjust.
2937 * stack.c (print_stack_frame): Adjust.
2938 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2939 * symfile-mem.c (add_vsyscall_page): Adjust.
2940 * symfile.c (load_progress, generic_load)
2941 (print_transfer_performance): Adjust.
2942 * thread.c (info_threads_command, restore_selected_frame)
2943 (thread_command): Adjust.
2944 * top.c (make_cleanup_restore_ui_file): Adjust.
2945 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2946 (print_one_static_tracepoint_marker): Adjust.
2947 * cli/cli-cmds.c (print_disassembly): Adjust.
2948 * cli/cli-decode.c (print_doc_line): Adjust.
2949 * cli/cli-interp.c (safe_execute_command): Adjust.
2950 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2951 (handle_redirections): Adjust.
2952 * cli/cli-script.c (show_user_1): Adjust.
2953 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2954 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2955 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2956 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2957 (mi_cmd_env_dir): Adjust.
2958 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2959 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2960 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2961 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2962 (list_args_or_locals): Adjust.
2963 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2964 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2965 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2966 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2967 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2968 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2969 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2970 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2971 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2972 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2973 (list_available_thread_groups, mi_cmd_list_thread_groups)
2974 (mi_cmd_data_list_register_names)
2975 (mi_cmd_data_list_changed_registers)
2976 (mi_cmd_data_list_register_values, get_register)
2977 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2978 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2979 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2980 (mi_execute_command, mi_load_progress): Adjust.
2981 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2982 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2983 Adjust.
2984 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2985 * tui/tui-interp.c (tui_command_loop): Adjust.
2986 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2987
2988 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2989
2990 * exceptions.c (struct catcher): Remove saved_uiout field.
2991 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2992 no longer save/resvore the global ui_out builder.
2993 (catch_exceptions_with_msg): Save/override/restore the global
2994 ui_out builder manually instead of relying on TRY_CATCH to do it.
2995 (catch_errors): Save/restore the global ui_out builder manually
2996 instead of relying on TRY_CATCH to do it.
2997 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2998 parameter.
2999 (TRY_CATCH): Adjust.
3000 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3001 the global ui_out builder manually instead of relying on TRY_CATCH
3002 to do it.
3003
3004 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3005
3006 * breakpoint.c (update_global_location_list): Ensure
3007 invariant 'first loc marked not duplicated and inserted,
3008 following locs marked duplicated/not inserted' is respected
3009 for multiple locations at the same address.
3010 (unduplicated_should_be_inserted) New function.
3011 (swap_insertion) New function.
3012
3013 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3014
3015 * stack.c (print_frame_arguments_choices): Comment typo fix.
3016
3017 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3018
3019 Revert:
3020 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3021 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3022 argument. Update callers.
3023
3024 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3025
3026 PR gdb/13045
3027 * doublest.c (convert_doublest_to_floatformat): Pass correct
3028 mantissa length to put_field.
3029
3030 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3031
3032 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3033 exception_print code path.
3034 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3035 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3036 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3037
3038 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3039
3040 Code cleanup.
3041 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3042 Remove, merge them into ...
3043 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3044 variable args and its initialization.
3045 (struct print_args_args, print_args_stub): Remove, merge them into
3046 print_frame.
3047 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3048 them into ...
3049 (do_gdb_disassembly): ... here. Remove variable args and its
3050 initialization.
3051 (print_frame): Remove variable args and its initialization, new
3052 variable gdbarch and numargs (from print_args_stub), inline here
3053 print_args_stub with a TRY_CATCH.
3054 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3055 them into ...
3056 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3057 New variable e, remove variable btargs and its initialization.
3058
3059 2011-08-01 Tristan Gingold <gingold@adacore.com>
3060
3061 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3062
3063 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3064
3065 * breakpoint.c (insert_bp_location): Document return value.
3066 (insert_breakpoint_locations): Fix documentation.
3067 (remove_breakpoints): Add documentation.
3068
3069 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3070
3071 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3072 argument. Update callers.
3073
3074 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3075
3076 * stack.c (print_frame_info): Comment typo fix.
3077
3078 2011-07-29 Sterling Augustine <saugustine@google.com>
3079
3080 * MAINTAINERS (Write After Approval): Add myself to the list.
3081
3082 2011-07-29 Tom Tromey <tromey@redhat.com>
3083
3084 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3085 (library_list_start_segment): Update.
3086 (library_list_start_section): Update.
3087
3088 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3089
3090 * varobj.c (value_get_print_value): Move hint check later into the
3091 function. Comment function. Free thevalue before reusing it.
3092
3093 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3094 Pedro Alves <pedro@codesourcery.com>
3095
3096 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3097 value_one.
3098 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3099 Assert the result kind.
3100 * value.h (value_one): Remove parameter lv.
3101
3102 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3103
3104 Fix crash on lval_computed values.
3105 * valops.c (value_zero): Use not_lval for lval_computed.
3106
3107 2011-07-27 Tom Tromey <tromey@redhat.com>
3108
3109 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3110 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3111
3112 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3113
3114 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3115 "ptype" by their typedefs difference.
3116
3117 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3118
3119 * dwarf2expr.c (ctx_no_read_reg): New function.
3120 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3121 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3122 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3123 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3124
3125 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3128 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3129 file.
3130 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3131 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3132 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3133 (ctx_no_get_base_type): Move the functions here.
3134 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3135 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3136 (ctx_no_get_base_type): New declarations.
3137
3138 2011-07-27 Tom Tromey <tromey@redhat.com>
3139
3140 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3141 entries.
3142 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3143 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3144
3145 2011-07-26 Sterling Augustine <saugustine@google.com>
3146
3147 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3148 ULONGEST.
3149 (dump_bfd_file): Likewise.
3150
3151 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3152
3153 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3154 (remote_hw_watchpoint_length_limit): New variable.
3155 (_initialize_remote) add set,show cmds for this new variable.
3156 * gdb.texinfo: document these new commands.
3157 * NEWS: Mention these new commands.
3158
3159 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3160
3161 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3162 true for software watchpoints.
3163
3164 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3165
3166 GDB 7.3 released.
3167
3168 2011-07-26 Tom Tromey <tromey@redhat.com>
3169
3170 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3171 * dwarf2read.c (read_indirect_string_at_offset): New function.
3172 (read_indirect_string): Use it.
3173 (dwarf_decode_macro_bytes): New function, taken from
3174 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3175 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3176 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3177 New functions.
3178 (struct dwarf2_per_objfile) <macro>: New field.
3179 (dwarf2_elf_names): Add .debug_macro.
3180 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3181 (dwarf2_locate_sections): Handle new section.
3182 (read_file_scope): Handle DW_AT_GNU_macros.
3183 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3184
3185 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3186
3187 * NEWS: Mention dcache configuration.
3188 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3189 (dcache_size, dcache_line_size): New variables.
3190 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3191 (struct dcache_block): Make it expandable.
3192 (struct dcache_struct): New field.
3193 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3194 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3195 (dcache_poke_byte, dcache_print_line): Adjust.
3196 (set_dcache_size, set_dcache_line_size): New functions.
3197 (set_dcache_command, show_dcache_command): New functions.
3198 (_initialize_dcache): Add new commands.
3199
3200 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3201
3202 * progspace.h (struct program_space): Add solib_add_generation.
3203 * infcmd.c (post_create_inferior): Only call solib_add if not
3204 already done.
3205 * solib.c (solib_add): Increment solib_add_generation.
3206
3207 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3208
3209 Fix implicit pointer offsets.
3210 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3211 ptr.OFFSET.
3212
3213 2011-07-25 Tom Tromey <tromey@redhat.com>
3214
3215 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3216 const.
3217 (ada_exception_sal): Make 'ops' const.
3218 (ada_decode_exception_location): Likewise.
3219 (ada_decode_assert_location): Likewise.
3220 (catch_assert_command): Update.
3221 (catch_ada_exception_command): Update.
3222 (create_ada_exception_catchpoint): Make 'ops' const.
3223 * breakpoint.c (set_raw_breakpoint_without_location)
3224 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3225 const.
3226 (create_internal_breakpoint): Update.
3227 (init_raw_breakpoint_without_location): Make 'ops' const.
3228 (init_raw_breakpoint, init_catchpoint)
3229 (create_fork_vfork_event_catchpoint)
3230 (create_syscall_event_catchpoint, init_breakpoint_sal)
3231 (create_breakpoint_sal, create_breakpoints_sal)
3232 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3233 * breakpoint.h (struct breakpoint) <ops>: Now const.
3234 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3235 const.
3236
3237 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3238
3239 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3240
3241 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3242
3243 * breakpoint.h (print_recreate_thread): Declare.
3244 (struct breakpoint): Move step_count, pass_count,
3245 number_on_target, static_trace_marker_id,
3246 static_trace_marker_id_idx ...
3247 (struct tracepoint): ... to this new struct.
3248 (get_tracepoint, get_tracepoint_by_number_on_target)
3249 (get_tracepoint_by_number): Change return type to struct
3250 tracepoint pointer.
3251 * breakpoint.c (is_tracepoint_type): New, factored out from
3252 is_tracepoint.
3253 (is_tracepoint): Adjust.
3254 (print_one_breakpoint_location): Cast to struct tracepoint as
3255 necessary, and adjust.
3256 (print_recreate_catch_fork, print_recreate_catch_vfork)
3257 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3258 print_recreate_thread.
3259 (init_breakpoint_sal): New, factored out from
3260 create_breakpoint_sal.
3261 (create_breakpoint_sal): Reimplement.
3262 (create_breakpoint): Allocate a struct tracecepoint if the caller
3263 wanted a tracepoint. Use init_breakpoint_sal and
3264 install_breakpoint.
3265 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3266 (print_recreate_masked_watchpoint)
3267 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3268 (tracepoint_print_one_detail): Adjust.
3269 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3270 Dump the pass count here.
3271 (update_static_tracepoint): Adjust.
3272 (addr_string_to_sals): Adjust.
3273 (create_tracepoint_from_upload): Adjust. Change return type to
3274 struct tracepoint pointer.
3275 (trace_pass_set_count): Change parameter type to struct tracepoint
3276 pointer, and adjust.
3277 (trace_pass_command): Adjust.
3278 (get_tracepoint, get_tracepoint_by_number_on_target)
3279 (get_tracepoint_by_number): Change return type to struct
3280 tracepoint pointer, and adjust.
3281 (print_recreate_thread): New, factored out from save_breakpoints.
3282 (save_breakpoints): Don't print thread and task and passcount
3283 recreation here.
3284 * remote.c (remote_download_tracepoint): Adjust.
3285 * tracepoint.c (trace_actions_command, validate_actionline)
3286 (start_tracing, tfind_1, trace_find_tracepoint_command)
3287 (trace_dump_command): Adjust.
3288 (find_matching_tracepoint): Change return type to struct
3289 tracepoint pointer, and adjust.
3290 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3291 (tfile_trace_find, tfile_fetch_registers): Adjust.
3292 * tracepoint.h (create_tracepoint_from_upload): Change return type
3293 to struct tracepoint pointer.
3294 * ada-lang.c (print_recreate_exception): Call
3295 print_recreate_thread.
3296 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3297
3298 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3299
3300 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3301 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3302 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3303 watchpoint_thread, watchpoint_triggered ...
3304 (struct watchpoint): ... to this new struct.
3305 (is_watchpoint): Declare.
3306 (install_breakpoint): Add new `internal' parameter.
3307 * breakpoint.c (is_watchpoint): Delete declaration.
3308 (set_breakpoint_condition): Handle watchpoints.
3309 (is_watchpoint): Make public.
3310 (watchpoint_in_thread_scope): Change parameter type to struct
3311 watchpoint.
3312 (watchpoint_del_at_next_stop): Change parameter type to struct
3313 watchpoint. Remove assertion. Adjust.
3314 (update_watchpoint): Ditto.
3315 (insert_breakpoints, breakpoint_init_inferior)
3316 (watchpoints_triggered, watchpoint_check)
3317 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3318 (bpstat_stop_status, print_one_breakpoint_location)
3319 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3320 to struct watchpoint as necessary, and adjust.
3321 (install_breakpoint): Add `internal' argument. If true, don't
3322 mention the new breakpoint. Use set_breakpoint_number.
3323 (create_fork_vfork_event_catchpoint)
3324 (create_syscall_event_catchpoint): Adjust.
3325 (dtor_watchpoint): New.
3326 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3327 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3328 (print_it_watchpoint, print_mention_watchpoint)
3329 (print_recreate_watchpoint, insert_masked_watchpoint)
3330 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3331 (print_one_detail_masked_watchpoint)
3332 (print_mention_masked_watchpoint)
3333 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3334 necessary, and adjust.
3335 (watch_command_1): Allocate and initialize a struct watchpoint
3336 instead of a struct breakpoint. Use install_breakpoint.
3337 (catch_exec_command_1): Adjust.
3338 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3339 fields.
3340 (delete_breakpoint, enable_breakpoint_disp)
3341 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3342 as necessary, and adjust.
3343 (initialize_breakpoint_ops): Install dtor_watchpoint as
3344 watchpoints' dtor method.
3345 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3346 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3347 to struct watchpoint as necessary, and adjust.
3348
3349 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3350
3351 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3352 the the base class ops table.
3353 (catch_exception_breakpoint_ops)
3354 (catch_exception_unhandled_breakpoint_ops)
3355 (catch_assert_breakpoint_ops): Don't statically initialize.
3356 (initialize_ada_catchpoint_ops): New.
3357 (_initialize_ada_language): Call it.
3358 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3359 (bkpt_breakpoint_ops): Forward declare.
3360 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3361 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3362 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3363 (masked_watchpoint_breakpoint_ops)
3364 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3365 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3366 base class ops table.
3367 (null_re_set, null_check_status, null_works_in_software_mode)
3368 (null_resources_needed, null_print_one_detail): Delete.
3369 (bkpt_dtor): Rename to ...
3370 (base_breakpoint_dtor): ... this. Make static.
3371 (bkpt_allocate_location): Rename to ...
3372 (base_breakpoint_allocate_location): ... this. Make static.
3373 (base_breakpoint_re_set): New.
3374 (internal_error_pure_virtual_called): New.
3375 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3376 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3377 (base_breakpoint_works_in_software_mode)
3378 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3379 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3380 (base_breakpoint_print_recreate): New functions.
3381 (base_breakpoint_ops): New global.
3382 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3383 (bkpt_breakpoint_hit): Make static.
3384 (bkpt_check_status): Delete.
3385 (bkpt_resources_needed): Make static.
3386 (bkpt_works_in_software_mode): Delete.
3387 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3388 static.
3389 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3390 (momentary_breakpoint_ops): Don't statically initialize.
3391 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3392 Delete.
3393 (tracepoint_insert_location, tracepoint_remove_location)
3394 (tracepoint_check_status, tracepoint_works_in_software_mode)
3395 (tracepoint_print_it): Delete.
3396 (tracepoint_breakpoint_ops): Don't statically initialize.
3397 (initialize_breakpoint_ops): New.
3398 (_initialize_breakpoint): Call it.
3399 * breakpoint.h (null_re_set, null_works_in_software_mode)
3400 (null_resources_needed, null_check_status, null_print_one_detail):
3401 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3402 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3403 (bkpt_check_status, bkpt_resources_needed)
3404 (bkpt_works_in_software_mode, bkpt_print_it)
3405 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3406 Delete declarations.
3407 (initialize_breakpoint_ops): Declare.
3408
3409 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3410
3411 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3412 (momentary_bkpt_print_it): Simplify.
3413
3414 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3415
3416 Split internal, momentary and user breakpoints breakpoint_ops
3417 tables.
3418
3419 * breakpoint.c (internal_breakpoint_ops)
3420 (momentary_breakpoint_ops): Forward declare.
3421 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3422 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3423 (create_overlay_event_breakpoint)
3424 (create_std_terminate_master_breakpoint)
3425 (create_exception_master_breakpoint): Create breakpoints with
3426 internal_breakpoint_ops vtable.
3427 (set_longjmp_breakpoint): Create momentary breakpoints with
3428 momentary_breakpoint_ops vtable, using
3429 momentary_breakpoint_from_master.
3430 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3431 (create_solib_event_breakpoint): Create breakpoints with
3432 internal_breakpoint_ops vtable.
3433 (set_momentary_breakpoint): Create breakpoints with
3434 momentary_breakpoint_ops vtable.
3435 (momentary_breakpoint_from_master): New, factored out from
3436 clone_momentary_breakpoint.
3437 (clone_momentary_breakpoint): Adjust.
3438 (watch_command_1): Create scope breakpoints with
3439 momentary_breakpoint_ops vtable.
3440 (bkpt_re_set): Remove handling of internal and momentary
3441 breakpoints.
3442 (bkpt_print_mention, bkpt_print_recreate): New.
3443 (bkpt_breakpoint_ops): Adjust.
3444 (internal_bkpt_re_set, internal_bkpt_check_status)
3445 (internal_bkpt_print_it, internal_bkpt_print_mention)
3446 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3447 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3448 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3449 (momentary_bkpt_print_recreate): New.
3450 (momentary_breakpoint_ops): New.
3451
3452 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3453
3454 Implement most breakpoint_ops methods for all breakpoint types,
3455 and move the default handlings to the proper callbacks.
3456
3457 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3458 works_in_software_mode method.
3459 (insert_bp_location): Go through breakpoint_ops->insert_location
3460 for software and hardware watchpoints.
3461 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3462 breakpoint_ops.
3463 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3464 for software and hardware watchpoints.
3465 (print_it_typical): Delete.
3466 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3467 method.
3468 (watchpoint_check): Adjust comment.
3469 (bpstat_check_location): Simply always call the breakpoint's
3470 breakpoint_hit method.
3471 (bpstat_stop_status): Always call the breakpoint's check_status
3472 method. Remove special cases for watchpoints and internal event
3473 breakpoints from here (moved to the check_status implementations).
3474 (print_one_breakpoint_location): Assume b->ops is never NULL.
3475 Remove static tracepoint marker id printing from here (moved to
3476 the print_one_detail callback implementation of tracepoints).
3477 (init_bp_location): Assert OPS is never NULL.
3478 (allocate_bp_location): Always call the breakpoint's
3479 allocate_location method, and remove the default code from here.
3480 (free_bp_location): Always call the location's dtor method, and
3481 remove the default code from here.
3482 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3483 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3484 parameter. Pass it down.
3485 (set_raw_breakpoint): Ditto.
3486 (print_it_catch_fork): Adjust to take a bpstat as argument.
3487 (catch_fork_breakpoint_ops): Install methods.
3488 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3489 (catch_vfork_breakpoint_ops): Install methods.
3490 (dtor_catch_syscall): Call the base dtor.
3491 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3492 (catch_syscall_breakpoint_ops): Install methods.
3493 (dtor_catch_exec): Call the base dtor.
3494 (print_it_catch_exec): Adjust to take a bpstat as argument.
3495 (catch_exec_breakpoint_ops): Install methods.
3496 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3497 the breakpoint's resources_needed method, and remove the default
3498 code from here.
3499 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3500 breakpoint_ops.
3501 (clone_momentary_breakpoint): Clone the original's ops.
3502 (mention): Always call the breakpoint's print_mention method, and
3503 remove the default code from here.
3504 (create_breakpoint_sal): Adjust to pass the ops to
3505 set_raw_breakpoint rather than setting it manually.
3506 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3507 ops to set_raw_breakpoint_without_location rather than setting it
3508 manually.
3509 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3510 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3511 (ranged_breakpoint_ops): Install methods.
3512 (break_range_command): Adjust to pass the ops to
3513 set_raw_breakpoint rather than setting it manually.
3514 (re_set_watchpoint, breakpoint_hit_watchpoint)
3515 (check_status_watchpoint, resources_needed_watchpoint)
3516 (works_in_software_mode_watchpoint, print_it_watchpoint)
3517 (print_mention_watchpoint, print_recreate_watchpoint): New
3518 functions.
3519 (watchpoint_breakpoint_ops): Install new methods.
3520 (print_it_masked_watchpoint): New function.
3521 (masked_watchpoint_breakpoint_ops): Install new methods.
3522 (watch_command_1): Adjust to pass the right breakpoint_ops to
3523 set_raw_breakpoint_without_location rather than setting it
3524 manually later. Record the current pspace.
3525 (print_it_exception_catchpoint): Adjust to take a bpstat as
3526 argument.
3527 (gnu_v3_exception_catchpoint_ops): Install new methods.
3528 (say_where): New function.
3529 (null_re_set, null_check_status, null_works_in_software_mode)
3530 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3531 New functions.
3532 (bp_location_ops): New global.
3533 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3534 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3535 (bkpt_check_status, bkpt_resources_needed)
3536 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3537 (bkpt_print_recreate): New functions.
3538 (bkpt_breakpoint_ops): New global.
3539 (tracepoint_re_set, tracepoint_insert_location)
3540 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3541 (tracepoint_check_status, tracepoint_works_in_software_mode)
3542 (tracepoint_print_it, tracepoint_print_one_detail)
3543 (tracepoint_print_mention, tracepoint_print_recreate): New
3544 functions.
3545 (tracepoint_breakpoint_ops): New global.
3546 (delete_breakpoint): Always call the breakpoint's dtor method, and
3547 remove the default handling from here.
3548 (breakpoint_re_set_default): Make static.
3549 (breakpoint_re_set_one): Always call the breakpoints re_set
3550 method, and remove the default handling from here.
3551 (trace_command, ftrace_command, strace_command)
3552 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3553 to create_breakpoint.
3554 (save_breakpoints): Always call the breakpoint's print_recreate
3555 method, and remove the default handling from here.
3556
3557 * ada-lang.c (dtor_exception): Call the base dtor.
3558 (re_set_exception): Call the base method.
3559 (print_it_exception, print_it_catch_exception): Adjust to take a
3560 bpstat as argument.
3561 (catch_exception_breakpoint_ops): Install methods.
3562 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3563 argument.
3564 (catch_exception_unhandled_breakpoint_ops): Install methods.
3565 (print_it_catch_assert): Adjust to take a bpstat as argument.
3566 (catch_assert_breakpoint_ops): Install methods.
3567
3568 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3569 to take a bpstat as argument.
3570 (enum print_stop_action): Add describing comments to each enum
3571 value.
3572 (breakpoint_re_set_default): Delete declaration.
3573 (null_re_set, null_works_in_software_mode, null_resources_needed)
3574 (null_check_status, null_print_one_detail): Declare.
3575 (bkpt_breakpoint_ops): Declare.
3576 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3577 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3578 (bkpt_check_status, bkpt_resources_needed)
3579 (bkpt_works_in_software_mode, bkpt_print_it)
3580 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3581 Declare.
3582
3583 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3584 bkpt_breakpoint_ops.
3585 * python/py-breakpoint.c (bppy_init): Ditto.
3586
3587 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3588
3589 * MAINTAINERS (Write After Approval): Add myself to the list.
3590
3591 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3592
3593 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3594
3595 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3596
3597 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3598 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3599 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3600 adjust.
3601 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3602 (struct i386_debug_reg_state): New.
3603 (i386_init_dregs): New.
3604 (dr_mirror): New.
3605 (i386_cleanup_dregs): Use i386_init_dregs.
3606 (i386_show_dr): Add state parameter and adjust.
3607 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3608 the inferior here.
3609 (i386_remove_aligned_watchpoint): Likewise.
3610 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3611 (i386_update_inferior_debug_regs): New.
3612 (i386_insert_watchpoint): Work on a local mirror of the debug
3613 registers, and only update the inferior on success.
3614 (i386_remove_watchpoint): Ditto.
3615 (i386_region_ok_for_watchpoint): Adjust.
3616 (i386_stopped_data_address): Adjust.
3617 (i386_insert_hw_breakpoint): Adjust.
3618 (i386_remove_hw_breakpoint): Adjust.
3619
3620 2011-07-22 Tom Tromey <tromey@redhat.com>
3621
3622 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3623 from amd64_pseudo_register_read. Change arguments. Call
3624 mark_value_bytes_unavailable when needed.
3625 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3626 set_gdbarch_pseudo_register_read.
3627 * sentinel-frame.c (sentinel_frame_prev_register): Use
3628 regcache_cooked_read_value.
3629 * regcache.h (regcache_cooked_read_value): Declare.
3630 * regcache.c (regcache_cooked_read_value): New function.
3631 (regcache_cooked_read): Call
3632 gdbarch_pseudo_register_read_value if available.
3633 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3634 (i386_pseudo_register_read): Remove.
3635 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3636 i386_pseudo_register_read. Change arguments. Call
3637 mark_value_bytes_unavailable when needed.
3638 (i386_pseudo_register_read_value): New function.
3639 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3640 not set_gdbarch_pseudo_register_read.
3641 * gdbarch.sh (pseudo_register_read_value): New method.
3642 * gdbarch.c, gdbarch.h: Rebuild.
3643 * findvar.c (value_from_register): Call get_frame_register_value.
3644
3645 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3646
3647 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3648 get_prefix.
3649 (display_gdb_prompt): Likewise.
3650 (change_annotation_level): Likewise.
3651 (push_prompt): Likewise.
3652 (pop_prompt): Likewise.
3653 (handle_stop_sig): Use get_prompt with a level.
3654 * top.c (command_loop): Use get_prompt with a level.
3655 (set_async_annotation_level): Use set_prompt with a level.
3656 (get_prefix): New function.
3657 (set_prefix): Ditto.
3658 (set_suffix): Ditto.
3659 (get_suffix): Ditto.
3660 (get_prompt): Accept a level argument.
3661 (set_prompt): Accept a level argument. Free old prompts. Set
3662 new_async_prompt if level is 0.
3663 (init_main): Use set_prompt with a level. Do not set
3664 new_async_prompt.
3665 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3666 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3667 Modify set_prompt, get_prompt to account for levels.
3668 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3669 level.
3670 * python/python.c (before_prompt_hook): Use set_prompt.
3671
3672 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3673
3674 * defs.h: Add guard against inclusion in gdbserver.
3675 (struct ptid, ptid_t): Move to common/ptid.h.
3676 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3677 xsnprintf, internal_error): Move to common/common-utils.h.
3678 (nomem): Delete.
3679 * gdb_assert.h: Move into common/ sub-directory.
3680 * gdb_locale.h: Ditto.
3681 * gdb_dirent.h: Ditto.
3682 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3683 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3684 Move into common/ptid.h.
3685 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3686 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3687 Change nomem to malloc_failure.
3688 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3689 * utils.c (nomem): Rename to malloc_failure.
3690 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3691 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3692 (gdb_buildargv): Change nomem to malloc_failure.
3693 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3694 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3695 ptid_is_pid): Move into common/ptid.c.
3696 (initialize_infrun): Delete initialization of null_ptid and
3697 minus_one_ptid.
3698 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3699 linux_common_xfer_osdata.
3700 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3701 common/ptid.c and common/buffer.c.
3702 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3703 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3704 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3705 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3706 rules.
3707 * common/gdb_assert.h: New.
3708 * common/gdb_dirent.h: New.
3709 * common/gdb_locale.h: New.
3710 * common/buffer.c: New.
3711 * common/buffer.h: New.
3712 * common/ptid.c: New.
3713 * common/ptid.h: New.
3714 * common/xml-utils.c: New.
3715 * common/xml-utils.h: New.
3716 * common/common-utils.c: New.
3717 * common/common-utils.h: New.
3718 * common/linux-osdata.c: New.
3719 * common/linux-osdata.h: New.
3720 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3721 * config/arm/linux.mh (NATDEPFILES): Ditto.
3722 * config/i386/linux.mh (NATDEPFILES): Ditto.
3723 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3724 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3725 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3726 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3727 * config/mips/linux.mh (NATDEPFILES): Ditto.
3728 * config/pa/linux.mh (NATDEPFILES): Ditto.
3729 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3730 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3731 * config/s390/s390.mh (NATDEPFILES): Ditto.
3732 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3733 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3734 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3735
3736 2011-07-21 Matt Rice <ratmice@gmail.com>
3737
3738 * NEWS: Add info macros and info definitions commands.
3739
3740 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3741
3742 * NEWS: Document Python prompt substitution hook.
3743
3744 2011-07-18 Matt Rice <ratmice@gmail.com>
3745
3746 PR macros/12999
3747 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3748 * macrotab.c (foreach_macro): Ditto.
3749 (foreach_macro_in_scope): Ditto.
3750 * macrocmd.c (print_macro_callback): New function.
3751 (info_macro_command): Move some code to print_macro_definition.
3752 (print_macro_definition): New function.
3753 (print_one_macro): Add new arguments to callback.
3754 (info_definitions_command): New function.
3755 (info_macros_command): Ditto.
3756 (_initialize_macrocmd): Add info macros and info definitions commands.
3757 * symtab.c (add_macro_name): Add new arguments to callback.
3758
3759 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3760 Tom Tromey <tromey@redhat.com>
3761
3762 * top.c (set_prompt): Rewrite to free previous prompt, free
3763 asynch_new_prompt and set both on new prompts.
3764 * event-top.c (display_gdb_prompt): Add prompt substitution
3765 logic.
3766 * python/python.c (before_prompt_hook): New function.
3767
3768 2011-07-20 Matt Rice <ratmice@gmail.com>
3769
3770 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3771 arguments to store_unsigned_integer.
3772
3773 2011-07-20 Tom Tromey <tromey@redhat.com>
3774
3775 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3776 in some declaration-only cases.
3777
3778 2011-07-18 Tom Tromey <tromey@redhat.com>
3779
3780 PR symtab/12984:
3781 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3782 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3783 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3784 <debug_type_section>: New field.
3785 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3786 (load_cu): Use appropriate section.
3787 (create_signatured_type_table_from_index): Add 'section'
3788 argument.
3789 (dwarf2_read_index): Only allow a single .debug_types section.
3790 (dw2_get_file_names): Use appropriate section.
3791 (read_type_comp_unit_head): Add 'section' argument.
3792 (create_debug_types_hash_table): Loop over all .debug_types
3793 sections.
3794 (init_cu_die_reader): Use appropriate section.
3795 (process_psymtab_comp_unit, load_partial_comp_unit)
3796 (load_full_comp_unit, read_die_and_children, find_partial_die)
3797 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3798 (lookup_signatured_type_at_offset): Add 'section' argument.
3799 (read_signatured_type_at_offset): Add 'sect' argument.
3800 (read_signatured_type): Use appropriate section.
3801 (set_die_type, get_die_type_at_offset): Update.
3802 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3803 VEC.
3804 (write_psymtabs_to_index): Don't allow index with more than one
3805 .debug_types section.
3806
3807 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3808
3809 Fix crash if referenced CU is aged out.
3810 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3811 xfree of block.data.
3812 (indirect_pieced_value): New variable back_to, use to for xfree of
3813 baton.data.
3814 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3815 block.data.
3816 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3817 (load_cu): New function from ...
3818 (dw2_do_instantiate_symtab): ... the code here ...
3819 (process_full_comp_unit): ... and here.
3820 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3821 retval.data.
3822
3823 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3824
3825 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3826 type.
3827
3828 2011-07-19 Gary Benson <gbenson@redhat.com>
3829
3830 * infrun.c (struct execution_control_state): New member
3831 stop_func_filled_in.
3832 (clear_stop_func, fill_in_stop_func): New functions.
3833 (handle_inferior_event): Call clear_stop_func rather than
3834 manipulating the execution control state directly.
3835 Call fill_in_stop_func lazily as required rather than
3836 directly calling find_pc_partial_function in all cases.
3837
3838 2011-07-18 Tom Tromey <tromey@redhat.com>
3839
3840 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3841 checking for variable-sized array.
3842
3843 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3844
3845 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3846 of supported languages.
3847 * varobj.c: Add top definitions and basic implementation of the
3848 following callbacks: ada_number_of_children, ada_name_of_variable,
3849 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3850 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3851 (languages): Register Ada-specific callbacks.
3852 (variable_language): Add the Ada case in the language setter switch.
3853
3854 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3855
3856 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3857
3858 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 Code cleanup.
3861 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3862 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3863 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3864 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3865 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3866 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3867 (struct dwarf_expr_context_funcs): New, move here methods from ...
3868 (struct dwarf_expr_context): ... here. New fields funcs.
3869 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3870 (dwarf_expr_ctx_funcs): New.
3871 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3872 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3873 (needs_frame_ctx_funcs): New.
3874 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3875
3876 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3877
3878 * MAINTAINERS (Write After Approval): Add myself to the list.
3879
3880 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3881
3882 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3883 that CIE pointer of an FDE really points to a CIE .
3884
3885 2011-07-15 Hui Zhu <teawater@gmail.com>
3886
3887 * remote.c (remote_get_trace_status): Add comments.
3888
3889 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3890
3891 Code cleanup - constify struct lval_funcs.
3892 * dwarf2loc.c (pieced_value_funcs): Make it const.
3893 * infrun.c (siginfo_value_funcs): Likewise.
3894 * opencl-lang.c (opencl_value_funcs): Likewise.
3895 * valops.c (value_assign, value_ind): Make the funcs variable const.
3896 * value.c (struct value): Make location.computed.funcs target const.
3897 Rearrange the comments.
3898 (allocate_computed_value): Make the funcs parameter target const.
3899 (value_computed_funcs): Return the funcs target const.
3900 (value_free, value_copy, set_value_component_location): Make the funcs
3901 variable const.
3902 * value.h (allocate_computed_value): Make the funcs parameter target
3903 const.
3904 (value_computed_funcs): Return the funcs target const.
3905 * windows-tdep.c (tlb_value_funcs): Make it const.
3906
3907 2011-07-14 Hui Zhu <teawater@gmail.com>
3908
3909 * remote.c (remote_get_trace_status): Initialize p.
3910
3911 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3912
3913 Work around kgdb.
3914 * remote.c (remote_get_trace_status): New variable ex. Put
3915 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3916
3917 2011-07-13 Tom Tromey <tromey@redhat.com>
3918
3919 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3920 value_from_contents for final conversion.
3921
3922 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 Code cleanup.
3925 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3926 Indent prototypes so they do not get into tags.
3927
3928 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3929
3930 Code cleanup making also optimized out values lazy.
3931 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3932 allocate_optimized_out_value. Twice.
3933 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3934 * findvar.c (read_var_value): Likewise.
3935 * value.c (allocate_optimized_out_value): New function.
3936 * value.h (allocate_optimized_out_value): New declaration.
3937
3938 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3939
3940 Fix occasional crash of CTRL-C during DWARF read in.
3941 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3942
3943 2011-07-11 Tom Tromey <tromey@redhat.com>
3944
3945 * regcache.c (struct regcache_descr): Fix typo.
3946 * i387-tdep.c (i387_supply_xsave): Fix typo.
3947
3948 2011-07-11 Tom Tromey <tromey@redhat.com>
3949
3950 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3951 (read_file_scope, read_type_unit_scope): Use it.
3952
3953 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3954
3955 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3956 `int'.
3957
3958 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3959
3960 PR python/12438
3961 * python/python.c: Set gdbpy_should_print_stack default to off.
3962 (set_python): Deprecate maint set python print-stack to
3963 class_deprecate.
3964 (_initialize_python): Deprecate maint set/show python print-stack.
3965 Add new prefix command, python. Add new setting, print-backtrace.
3966 * NEWS: Document set python print-stack. Document default change.
3967
3968 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3969
3970 * python/py-inferior.c (infpy_dealloc): New function.
3971 (inferior_to_inferior_object): Return a new object, or a
3972 new reference to the existing object.
3973 (find_thread_object): Cleanup references to inferior.
3974 (delete_thread_object): Ditto.
3975 * python/py-infthread.c (create_thread_object): Do not increment
3976 inferior reference count.
3977
3978 2011-07-08 Tom Tromey <tromey@redhat.com>
3979
3980 * dwarf2loc.c (locexpr_regname): New function.
3981 (locexpr_describe_location_piece): Use it.
3982 (disassemble_dwarf_expression): Add per_cu argument. Use
3983 locexpr_regname.
3984 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3985 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3986 New cases.
3987 (locexpr_describe_location_1): Add per_cu argument.
3988 (locexpr_describe_location): Update.
3989 (loclist_describe_location): Update.
3990
3991 2011-07-08 Tom Tromey <tromey@redhat.com>
3992
3993 * dwarf2expr.c (execute_stack_op): Add QUIT.
3994
3995 2011-07-07 Hui Zhu <teawater@gmail.com>
3996
3997 Revert:
3998 2011-07-06 Hui Zhu <teawater@gmail.com>
3999 * remote.c (remote_start_remote): Add TRY_CATCH for
4000 remote_get_trace_status.
4001 * tracepoint.c (disconnect_tracing): Ditto.
4002
4003 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4004
4005 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4006 variables as signed, not unsigned.
4007
4008 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4009
4010 * jit.c (jit_inferior_init): Reformat forward declaration.
4011
4012 2011-07-06 Matt Rice <ratmice@gmail.com>
4013
4014 * MAINTAINERS (Write After Approval): Add myself to the list.
4015
4016 2011-07-06 Hui Zhu <teawater@gmail.com>
4017
4018 * remote.c (remote_start_remote): Add TRY_CATCH for
4019 remote_get_trace_status.
4020 * tracepoint.c (disconnect_tracing): Ditto.
4021
4022 2011-07-05 Tom Tromey <tromey@redhat.com>
4023
4024 * symtab.c (operator_chars): Now static.
4025 * linespec.c (operator_chars): Don't declare.
4026
4027 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4028
4029 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4030
4031 2011-07-05 Tom Tromey <tromey@redhat.com>
4032
4033 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4034 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4035 (TYPE_CPLUS_REALLY_JAVA): New macro.
4036 * dwarf2read.c (process_structure_scope): Set
4037 TYPE_CPLUS_REALLY_JAVA.
4038
4039 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4040
4041 * ada-lang.c: Fix typos.
4042 * amd64-tdep.c: Likewise.
4043 * breakpoint.c: Likewise.
4044 * cli/cli-decode.c: Likewise.
4045 * findcmd.c: Likewise.
4046 * inline-frame.c: Likewise.
4047 * mi/mi-main.c: Likewise.
4048 * minsyms.c: Likewise.
4049 * monitor.c: Likewise.
4050 * monitor.h: Likewise.
4051 * prologue-value.c: Likewise.
4052 * reverse.c: Likewise.
4053 * s390-tdep.c: Likewise.
4054
4055 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4056
4057 * jit.c (jit_inferior_init): Forward declare.
4058 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4059
4060 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4061
4062 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4063
4064 2011-07-04 Tristan Gingold <gingold@adacore.com>
4065
4066 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4067 (tcb_fieldno): Add activation_link field.
4068 (get_known_tasks_addr): Moved and rewritten.
4069 (get_tcb_types_info): Set activation_link field.
4070 (read_known_tasks_array): Add parameter. Rewritten.
4071 (read_known_tasks_list): New function.
4072 (read_known_tasks): New function.
4073 (ada_build_task_list): Call read_known_tasks instead of
4074 read_known_tasks_array.
4075 * ravenscar-thread.c: Add first_task_name constant.
4076 (has_ravenscar_runtime): Check for task list too.
4077
4078 2011-07-04 Tristan Gingold <gingold@adacore.com>
4079
4080 * ada-tasks.c: Renames fieldno to actb_fieldno.
4081 (ada_get_task_number): Indentation.
4082 (get_tcb_types_info): Remove all parameters. Write directly
4083 the globals.
4084 (ptid_from_atcb_common): Adjust.
4085 (read_atcb): Adjust.
4086
4087 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4088
4089 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4090
4091 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4092
4093 * ui-out.c (ui_out_field_core_addr): Mention that the function
4094 description is in the header file.
4095 * ui-out.h (ui_out_field_core_addr): Document function.
4096
4097 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4098
4099 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4100 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4101
4102 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4103
4104 * symtab.c (expand_line_sal): Remove empty line.
4105
4106 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4107
4108 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4109 same way as ELFOSABI_NONE.
4110 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4111
4112 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4113
4114 * breakpoint.c: Fix typos in comments.
4115 * linespec.c: Likewise.
4116 * symtab.c: Likewise.
4117
4118 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4119
4120 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4121 section in separate object files.
4122
4123 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4124
4125 Fix false GCC warning.
4126 * linespec.c (decode_line_1): Initialize values.
4127
4128 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4129
4130 * linespec.c (find_method): Accept the function type automatically only
4131 if it was specified with parameter types.
4132
4133 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4134
4135 Stop on first linespec terminator instead of eating what we can.
4136 * linespec.c (is_linespec_boundary): New function.
4137 (name_end): Remove function.
4138 (keep_name_info): New parameter on_boundary, replace the body.
4139 (decode_line_1): Provide the parameter to keep_name_info.
4140 (decode_compound): Likewise. Drop the trailing java return type
4141 handling. Twice.
4142
4143 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4144
4145 Fall back linespec to minimal symbols.
4146 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4147 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4148 (find_method, symbol_found): Change error to cplusplus_error.
4149
4150 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4151
4152 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4153
4154 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4155 Tom Tromey <tromey@redhat.com>
4156
4157 * dwarf2read.c (check_physname): New variable.
4158 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4159 (show_check_physname): New function.
4160 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4161
4162 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4163
4164 * machoread.c (macho_symfile_read): Delete OBE comment.
4165
4166 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4167
4168 * machoread.c (struct macho_oso_data): Delete.
4169 (current_oso): Delete.
4170 (macho_relocate_common_syms): New function, mostly extracted
4171 out of
4172 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4173 Remove code that sets and unset current_oso.
4174 (macho_symfile_relocate): Delete handling of common symbols,
4175 now moved to macho_relocate_common_syms.
4176
4177 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4178
4179 * darwin-nat.c (darwin_ptrace): Add documentation.
4180 Set errno to zero before calling ptrace. If ptrace returns
4181 -1 and errno is zero, then change then return zero.
4182 (darwin_kill_inferior): Issue a warning instead of triggering
4183 a failed assertion when the PT_KILL ptrace operations returned
4184 nonzero.
4185
4186 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4187
4188 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4189 only when inf->private->no_ptrace.
4190
4191 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4192
4193 * ada-lang.c (print_it_exception): Print temporary catchpoints
4194 as "Temporary catchpoint".
4195 (print_mention_exception): Likewise.
4196
4197 2011-07-01 Tom Tromey <tromey@redhat.com>
4198
4199 * jv-lang.c (java_language_defn): Use java_printchar,
4200 java_printstr.
4201 (java_get_encoding): New function.
4202 (java_emit_char): Use generic_emit_char.
4203 (java_printchar): New function.
4204 (java_printstr): Likewise.
4205
4206 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4207
4208 * ada-typeprint.c (print_record_type): If unable to decode
4209 the name of the parent type, use the encoded name.
4210
4211 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4212
4213 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4214 pointer to constrained packed array type output.
4215 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4216 packed array output.
4217
4218 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4219
4220 * ada-typeprint.c (print_array_type): removed if condition on show
4221 being negative for bounds printing.
4222
4223 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4224
4225 * ada-lang.c (ada_identical_enum_types_p): New function.
4226 (symbols_are_identical_enums): New function.
4227 (remove_extra_symbols): Do nothing if NSYMS < 2.
4228 Use symbols_are_identical_enums.
4229
4230 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4231
4232 * ada-valprint.c (ada_value_print): Handle typedefs.
4233
4234 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4235
4236 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4237
4238 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4239
4240 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4241 (decode_constrained_packed_array): Likewise.
4242 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4243
4244 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4245
4246 * ada-exp.y (convert_char_literal): Handle typedef types.
4247
4248 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4249
4250 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4251
4252 2011-06-30 Tom Tromey <tromey@redhat.com>
4253
4254 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4255 * valops.c (find_overload_match): Call do_cleanups on early exit
4256 path.
4257 * solib.c (solib_find): Call do_cleanups on early exit path.
4258
4259 2011-06-30 Tom Tromey <tromey@redhat.com>
4260
4261 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4262 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4263 return paths. Defer final do_cleanups until last return.
4264 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4265 early return.
4266
4267 2011-06-30 Tom Tromey <tromey@redhat.com>
4268
4269 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4270
4271 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4272
4273 * MAINTAINERS (Write After Approval): Add myself to the list.
4274
4275 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 Disable epilogue unwinders on recent GCCs.
4278 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4279 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4280 * dwarf2read.c (process_full_comp_unit): Initialize
4281 EPILOGUE_UNWIND_VALID.
4282 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4283 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4284 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4285
4286 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4287
4288 Code cleanup - reformatting.
4289 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4290 (producer_is_gcc_ge_4): ... here, change the return value.
4291 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4292 interpretation.
4293
4294 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4295
4296 Fix non-only rename list for Fortran modules import.
4297 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4298 cp_add_using_directive caller.
4299 (cp_add_using_directive): New parameter excludes, describe it. New
4300 variables ix and param. Compare if also excludes match. Allocate NEW
4301 with variable size, initialize EXCLUDES there.
4302 (cp_lookup_symbol_imports): New variable excludep, test
4303 current->EXCLUDES with it.
4304 * cp-support.h: Include vec.h.
4305 (struct using_direct): New field excludes, describe it.
4306 (DEF_VEC_P (const_char_ptr)): New.
4307 (cp_add_using_directive): New parameter excludes.
4308 * defs.h (const_char_ptr): New typedef.
4309 * dwarf2read.c (read_import_statement): New variables child_die,
4310 excludes and cleanups, read in excludes.
4311 (read_namespace): Adjust the cp_add_using_directive caller.
4312
4313 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4314
4315 Code cleanup.
4316 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4317 negative comparisons.
4318
4319 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4320
4321 * mi/mi-main.c (mi_cmd_list_features): Emit
4322 breakpoint-notifications.
4323
4324 2011-06-29 Tom Tromey <tromey@redhat.com>
4325
4326 PR fortran/10036:
4327 * valprint.h (generic_emit_char, generic_printstr): Declare.
4328 * valprint.c (wchar_printable, append_string_as_wide)
4329 (print_wchar): Move from c-lang.c.
4330 (generic_emit_char): New function; mostly taken from c_emit_char.
4331 (generic_printstr): New function; mostly taken from c_printstr.
4332 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4333 represented as arrays.
4334 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4335 type.
4336 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4337 identically to TYPE_CODE_INT.
4338 * f-lang.c (f_get_encoding): New function.
4339 (f_emit_char): Use generic_emit_char.
4340 (f_printchar): Replace comment.
4341 (f_printstr): Use generic_printstr.
4342 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4343 "character" types specially.
4344 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4345 for Fortran.
4346 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4347 Move to valprint.c
4348 (c_emit_char): Call generic_emit_char.
4349 (c_printstr): Call generic_printstr.
4350
4351 2011-06-29 Gary Benson <gbenson@redhat.com>
4352
4353 * breakpoint.c (bpstat_what): Removed duplicated case.
4354
4355 2011-06-28 Tom Tromey <tromey@redhat.com>
4356
4357 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4358
4359 2011-06-27 Tom Tromey <tromey@redhat.com>
4360
4361 * valops.c (find_overload_match): Call do_cleanups before early
4362 return.
4363 * top.c (execute_command): Call do_cleanups before early return.
4364 (command_loop): Likewise.
4365 * stack.c (backtrace_command): Make a null cleanup early. Don't
4366 conditionally call do_cleanups.
4367 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4368 TRY_CATCH.
4369 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4370 so cleanups are always run.
4371 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4372 * findcmd.c (parse_find_args): Call do_cleanups on early return
4373 path.
4374 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4375 Don't conditionally call do_cleanups.
4376 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4377 later.
4378
4379 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4380
4381 * MAINTAINERS (Write After Approval): Use default email address.
4382
4383 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4384
4385 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4386
4387 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4388
4389 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4390 saved_regs_mask and copied_regs_mask fields.
4391 (sparc_record_save_insn): New prototype.
4392 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4393 (sparc_record_save_insn): New function.
4394 (sparc_analyze_prologue): Add head comment. Recognize store insns
4395 of call-saved registers. Use OFFSET consistently. Recognize flat
4396 frames and cache their settings.
4397 (sparc32_skip_prologue): Handle flat frames.
4398 (sparc_frame_cache): Add frame_offset to the base address.
4399 (sparc32_frame_cache): Adjust to new frame description.
4400 (sparc32_frame_prev_register): Likewise.
4401 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4402 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4403 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4404 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4405 frame by calling sparc_record_save_insn.
4406 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4407 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4408 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4409
4410 2011-06-27 Tristan Gingold <gingold@adacore.com>
4411
4412 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4413 field by map_addr and map_len.
4414 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4415 (munmap_section_buffer): Likewise.
4416
4417 2011-06-24 Tom Tromey <tromey@redhat.com>
4418
4419 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4420 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4421 * python/python.c (gdbpy_parameter): Make 'arg' const.
4422 (execute_gdb_command): Likewise.
4423 (gdbpy_decode_line): Likewise. Copy it.
4424 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4425 (gdbpy_write): Make 'arg' const.
4426 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4427 const.
4428 (gdbpy_lookup_type): Likewise.
4429 * python/py-prettyprint.c (print_children): Make 'name' const.
4430 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4431 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4432 Py_ssize_t.
4433 * python/py-function.c (fnpy_init): Make 'name' const.
4434 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4435 (gdbpy_string_to_argv): Make 'input' const.
4436 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4437 it.
4438 * gdbtypes.h (lookup_typename): Update.
4439 * gdbtypes.c (lookup_typename): Make 'name' const.
4440 (lookup_struct): Likewise.
4441 (lookup_union): Likewise.
4442 (lookup_enum): Likewise.
4443
4444 2011-06-24 Tom Tromey <tromey@redhat.com>
4445
4446 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4447 gdb_thread_db.h. Move all common/ entries to be together.
4448 (TAGS): Don't depend on DEPFILES.
4449
4450 2011-06-23 Yao Qi <yao@codesourcery.com>
4451
4452 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4453 * remote.c (remote_start_remote): ... here.
4454 * monitor.c (monitor_open): ... here.
4455
4456 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4457
4458 * gdbtypes.c (append_composite_type_field_aligned): Fix
4459 calculation of bit position based on alignment.
4460
4461 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4462
4463 * breakpoint.c (bpstat_stop_status): Call the check_status
4464 breakpoint_ops method.
4465 (print_one_breakpoint_location): Also print the condition for Ada
4466 exception catchpoints.
4467 (allocate_bp_location): New, factored out from
4468 allocate_bp_location.
4469 (allocate_bp_location): Adjust. Call the owner breakpoint's
4470 allocate_location method, if there is one.
4471 (free_bp_location): Call the locations's dtor method, if there is
4472 one.
4473 (init_raw_breakpoint_without_location): New breakpoint_ops
4474 parameter. Use it.
4475 (set_raw_breakpoint_without_location): Adjust.
4476 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4477 (set_raw_breakpoint): Adjust.
4478 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4479 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4480 re_set and check_status methods.
4481 (init_catchpoint): Don't memset, initialize thread, addr_string
4482 and enable_state. Pass the ops down to init_raw_breakpoint.
4483 (install_catchpoint): Rename to ...
4484 (install_breakpoint): ... this, and make extern.
4485 (create_fork_vfork_event_catchpoint): Adjust.
4486 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4487 re_set and check_status methods.
4488 (create_syscall_event_catchpoint): Adjust.
4489 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4490 (masked_watchpoint_breakpoint_ops): Install NULL
4491 allocate_location, re_set and check_status methods.
4492 (catch_exec_command_1): Adjust.
4493 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4494 re_set and check_status methods.
4495 (create_ada_exception_breakpoint): Rename to ...
4496 (init_ada_exception_breakpoint): ... this. Add a struct
4497 breakpoint parameter, and delete the exp_string, cond_string and
4498 cond parameters. Use init_raw_breakpoint, and don't install or
4499 mention the breakpoint yet. Don't clear breakpoint fields that
4500 init_raw_breakpoint already clears.
4501 (re_set_breakpoint): Delete, split into ...
4502 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4503 functions.
4504 (breakpoint_re_set_one): Call the breakpoint's
4505 breakpoint_ops->re_set implementation, if there's one. Adjust.
4506 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4507 (struct bp_location_ops): New type.
4508 (struct bp_location): New field `ops'.
4509 (struct breakpoint_ops): New `allocate_location', `re_set' and
4510 `check_status' fields. Make `breakpoint_hit''s description match
4511 reality.
4512 (init_bp_location): Declare.
4513 (breakpoint_re_set_default): Declare.
4514 (create_ada_exception_breakpoint): Rename to ...
4515 (init_ada_exception_breakpoint): ... this. Add a struct
4516 breakpoint parameter, and delete the exp_string, cond_string and
4517 cond parameters.
4518 (install_breakpoint): Declare.
4519 * ada-lang.c: Include exceptions.h.
4520 <Ada exceptions description>: Update.
4521 (struct ada_catchpoint_location): New type.
4522 (ada_catchpoint_location_dtor): New function.
4523 (ada_catchpoint_location_ops): New global.
4524 (ada_catchpoint): New type.
4525 (create_excep_cond_exprs): New function.
4526 (dtor_exception, allocate_location_exception, re_set_exception)
4527 (should_stop_exception, check_status_exception): New functions.
4528 (print_one_exception, print_mention_exception)
4529 (print_recreate_exception): Adjust.
4530 (dtor_catch_exception, allocate_location_catch_exception)
4531 (re_set_catch_exception, check_status_catch_exception): New
4532 functions.
4533 (catch_exception_breakpoint_ops): Install them.
4534 (dtor_catch_exception_unhandled)
4535 (allocate_location_catch_exception_unhandled)
4536 (re_set_catch_exception_unhandled)
4537 (check_status_catch_exception_unhandled): New functions.
4538 (catch_exception_unhandled_breakpoint_ops): Install them.
4539 (dtor_catch_assert, allocate_location_catch_assert)
4540 (re_set_catch_assert, check_status_catch_assert): New functions.
4541 (catch_assert_breakpoint_ops): Install them.
4542 (ada_exception_catchpoint_p): Delete.
4543 (catch_ada_exception_command_split)
4544 (ada_exception_catchpoint_cond_string): Rename exp_string
4545 parameter to excep_string. Adjust.
4546 (ada_parse_catchpoint_condition): Delete.
4547 (ada_exception_sal): Rename the exp_string parameter to
4548 excep_string. Delete the cond_string and cond parameters.
4549 Adjust.
4550 (ada_decode_exception_location): Rename the exp_string parameter
4551 to excep_string. Delete the cond_string and cond parameters.
4552 Adjust.
4553 (create_ada_exception_catchpoint): New function.
4554 (catch_ada_exception_command, ada_decode_assert_location)
4555 (catch_assert_command): Adjust.
4556 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4557
4558 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4559
4560 * ada-lang.c: Include arch-utils.h.
4561 (ada_decode_exception_location): Make static.
4562 (catch_ada_exception_command): Moved here from breakpoint.c.
4563 (ada_decode_assert_location): Make static.
4564 (catch_assert_command): Moved here from breakpoint.c.
4565 (_initialize_ada_lang): Install the exception and assert
4566 catchpoint commands here.
4567 * ada-lang.h (ada_decode_exception_location)
4568 (ada_decode_assert_location): Delete declarations.
4569 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4570 breakpoint.h.
4571 (create_ada_exception_breakpoint): Make extern.
4572 (catch_ada_exception_command, catch_assert_command): Moved to
4573 ada-lang.c.
4574 (add_catch_command): Make extern.
4575 (_initilize_breakpoint): Don't install the exception and assert
4576 catchpoint commands here.
4577 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4578 breakpoint.c
4579 (add_catch_command, create_ada_exception_breakpoint): Declare.
4580
4581 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4582
4583 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4584 the breakpoint to the breakpoint chain here.
4585 (set_raw_breakpoint_without_location): Add the breakpoint to the
4586 breakpoint chain here.
4587 (init_raw_breakpoint): Adjust comments.
4588 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4589 here.
4590 (init_catchpoint): Don't set the catchpoint's breakpoint number
4591 here.
4592 (install_catchpoint): New function.
4593 (create_fork_vfork_event_catchpoint)
4594 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4595 use install_catchpoint.
4596
4597 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4598
4599 * breakpoint.c (create_catchpoint_without_mention)
4600 (create_catchpoint): Delete.
4601
4602 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4603
4604 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4605 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4606 reference to exec_pathname.
4607 (struct exec_catchpoint): New type.
4608 (dtor_catch_exec): New function.
4609 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4610 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4611 (catch_exec_command_1): Adjust to use init_catchpoint.
4612 (delete_breakpoint): Remove reference to exec_pathname.
4613
4614 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4615
4616 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4617 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4618 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4619 reference to syscalls_to_be_caught.
4620 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4621 NULL `dtor'.
4622 (struct syscall_catchpoint): New type.
4623 (dtor_catch_syscall): New function.
4624 (insert_catch_syscall, remove_catch_syscall)
4625 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4626 (print_recreate_catch_syscall): Adjust.
4627 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4628 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4629 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4630 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4631 (masked_watchpoint_breakpoint_ops)
4632 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4633 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4634 there is one. Remove references to syscalls_to_be_caught.
4635 (catching_syscall_number): Adjust.
4636 * ada-lang.c (catch_exception_breakpoint_ops)
4637 (catch_exception_unhandled_breakpoint_ops)
4638 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4639
4640 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4641
4642 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4643 field.
4644 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4645 reference to forked_inferior_pid.
4646 (struct fork_catchpoint): New type.
4647 (breakpoint_hit_catch_fork, print_it_catch_fork)
4648 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4649 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4650 (create_fork_vfork_event_catchpoint): Adjust to use
4651 init_catchpoint.
4652
4653 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4654
4655 * breakpoint.c (add_to_breakpoint_chain)
4656 (init_raw_breakpoint_without_location): New functions, factored
4657 out from ...
4658 (set_raw_breakpoint_without_location): ... this one.
4659 (init_raw_breakpoint): New function, factored out from
4660 set_raw_breakpoint and adjusted to use
4661 init_raw_breakpoint_without_location.
4662 (set_raw_breakpoint): Adjust.
4663 (init_catchpoint): New function, factored out from
4664 create_catchpoint_without_mention and adjusted to use
4665 init_raw_breakpoint.
4666 (create_catchpoint_without_mention): Adjust.
4667
4668 2011-06-22 Tom Tromey <tromey@redhat.com>
4669
4670 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4671 argument of 0 specially.
4672
4673 2011-06-22 Yao Qi <yao@codesourcery.com>
4674
4675 * infrun.c (handle_inferior_event): Remove write-only local variable
4676 `sw_single_step_trap_p'.
4677
4678 2011-06-20 Tom Tromey <tromey@redhat.com>
4679
4680 * symtab.c (lookup_language_this): End loop if block is NULL.
4681
4682 2011-06-17 Tom Tromey <tromey@redhat.com>
4683
4684 * valops.c (value_of_this): Use lookup_language_this.
4685 * symtab.h (lookup_language_this): Declare.
4686 * symtab.c (lookup_language_this): New function.
4687 (lookup_symbol_aux): Use lookup_language_this.
4688 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4689
4690 2011-06-17 Tom Tromey <tromey@redhat.com>
4691
4692 * value.h (value_of_this): Update.
4693 (value_of_local): Remove.
4694 * valops.c (value_of_this): Rename from value_of_local. Change
4695 parameters.
4696 * p-exp.y (exp): Update.
4697 (variable): Likewise.
4698 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4699
4700 2011-06-17 Tom Tromey <tromey@redhat.com>
4701
4702 * valops.c (value_of_local): Complain if NAME is NULL.
4703 * std-operator.def (OP_OBJC_SELF): Remove.
4704 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4705 * objc-exp.y (name_not_typename): Use OP_THIS.
4706 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4707 name for "this".
4708 <OP_OBJC_SELF>: Remove.
4709 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4710
4711 2011-06-16 Tristan Gingold <gingold@adacore.com>
4712
4713 * python/py-events.h (gdb_py_events): Make it extern.
4714 * python/py-evtregistry.c (gdb_py_events): Declare.
4715
4716 2011-06-16 Hui Zhu <teawater@gmail.com>
4717
4718 * remote.c (remote_trace_set_readonly_regions): Add check for
4719 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4720 output warning.
4721
4722 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4723
4724 * arm-linux-tdep.c: Include "auxv.h".
4725 (AT_HWCAP): Define.
4726 (ARM_LINUX_SIZEOF_VFP): Define.
4727 (arm_linux_supply_vfp): New function.
4728 (arm_linux_collect_vfp): Likewise.
4729 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4730 (arm_linux_fpa_regset_sections): New variable.
4731 (arm_linux_vfp_regset_sections): Likewise.
4732 (arm_linux_core_read_description): New function.
4733 (arm_linux_init_abi): Install arm_linux_core_read_description and
4734 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4735 appropriate for the architecture.
4736 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4737 (tdesc_arm_with_m): Declare.
4738 (tdesc_arm_with_iwmmxt): Likewise.
4739 (tdesc_arm_with_vfpv2): Likewise.
4740 (tdesc_arm_with_vfpv3): Likewise.
4741 (tdesc_arm_with_neon): Likewise.
4742 * arm-linux-nat.c: Move features/*.c includes ...
4743 * arm-tdep.c: ... here.
4744 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4745 target description data structures ...
4746 * arm-tdep.c (_initialize_arm_tdep): ... here.
4747 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4748 HWCAP_VFPv3D16): Move definitions ...
4749 * arm-linux-tdep.h: ... here.
4750
4751 2011-06-15 Hui Zhu <teawater@gmail.com>
4752
4753 * remote.c (remote_trace_set_readonly_regions): Add a check for
4754 target_buf_size.
4755
4756 2011-06-14 Tom Tromey <tromey@redhat.com>
4757
4758 * coffread.c (coffread_objfile): Rename from current_objfile.
4759 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4760 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4761
4762 2011-06-14 Tom Tromey <tromey@redhat.com>
4763
4764 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4765 (class_symtab): Remove.
4766 (jv_dynamics_progspace_key): New global.
4767 (jv_per_objfile_free): Reset program space data. Update assert.
4768 Don't clear globals.
4769 (get_dynamics_objfile): Use and set program space data.
4770 (get_java_class_symtab): Use get_dynamics_objfile.
4771 (add_class_symbol): Likewise.
4772 (java_link_class_type): Likewise.
4773 (java_object_type, jv_clear_object_type, set_java_object_type):
4774 Remove.
4775 (get_java_object_type): Update. Don't cache result.
4776 (is_object_type): Don't call set_java_object_type.
4777 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4778 initialize jv_dynamics_progspace_key.
4779
4780 2011-06-14 Tom Tromey <tromey@redhat.com>
4781
4782 * symtab.h (current_objfile): Don't declare.
4783 * objfiles.h (current_objfile): Don't declare.
4784 * objfiles.c (current_objfile): Remove.
4785 * mdebugread.c (current_objfile): New file-scope global.
4786 * dbxread.c (current_objfile): New file-scope global.
4787 * coffread.c (current_objfile): New file-scope global.
4788
4789 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4790
4791 * top.h (line): Rename to ...
4792 (saved_command_line): ... this.
4793 (linesize): Rename to ...
4794 (saved_command_line_size): ... this.
4795 * top.c (line): Rename to ...
4796 (saved_command_line): ... this.
4797 (linesize): Rename to ...
4798 (saved_command_line_size): ... this.
4799 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4800 * event-top.c (command_line_handler): Adjust.
4801 * main.c (captured_main): Adjust.
4802
4803 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4804
4805 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4806 get_frame_func instead of get_frame_pc to determine the code
4807 address used to construct the frame ID.
4808 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4809 (i386_epilogue_frame_this_id): Likewise.
4810 (i386_epilogue_frame_prev_register): New function.
4811 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4812 (i386_stack_tramp_frame_sniffer): Fix coding style.
4813 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4814 (i386_gdbarch_init): Fix comments.
4815
4816 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4817
4818 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4819 instruction when walking back through the instruction stream.
4820
4821 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4822
4823 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4824 fullname parameters order.
4825
4826 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4827
4828 Code cleanup.
4829 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4830 for fun.
4831 * psymtab.c (map_symbol_filenames_psymtab)
4832 (map_partial_symbol_filenames): Likewise.
4833 * psymtab.h: Include symfile.h.
4834 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4835 * symfile.h (symbol_filename_ftype): New.
4836 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4837 map_symbol_filenames, clarify more the naming in comment.
4838
4839 2011-06-07 Doug Evans <dje@google.com>
4840
4841 * cc-with-index.sh: Fix typos in comment.
4842 Look for ../../gdb, for fullname.exp.
4843
4844 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4845 Pedro Alves <pedro@codesourcery.com>
4846
4847 * cli/cli-cmds.c (shell_escape): Use waitpid.
4848 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4849
4850 2011-06-07 Tristan Gingold <gingold@adacore.com>
4851
4852 * xcoffread.c (dwarf2_xcoff_names): New variable.
4853 (aix_process_linenos): Add a guard.
4854 (xcoff_symfile_finish): Free dwarf2.
4855 (xcoff_initial_scan): Add dwarf2 support.
4856
4857 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4858
4859 * infcall.c (run_inferior_call): Don't mask async. Instead force
4860 a synchronous wait, if the target can async.
4861
4862 * target.h (struct target_ops): Delete to_async_mask.
4863 (target_async_mask): Delete.
4864 * target.c (update_current_target): Delete references to to_async_mask.
4865 * linux-nat.c (linux_nat_async_mask_value): Delete.
4866 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4867 to linux_nat_async_mask_value.
4868 (linux_nat_async_mask): Delete.
4869 (linux_nat_async, linux_nat_close): Remove references to
4870 linux_nat_async_mask_value.
4871 * record.c (record_async_mask_value): Delete.
4872 (record_async): Remove references to record_async_mask_value.
4873 (record_async_mask): Delete.
4874 (record_can_async_p, record_is_async_p): Remove references to
4875 record_async_mask_value.
4876 (init_record_ops, init_record_core_ops): Remove references to
4877 record_async_mask.
4878 * remote.c (remote_async_mask_value): Delete.
4879 (init_remote_ops): Remove reference to remote_async_mask.
4880 (remote_can_async_p, remote_is_async_p): Remove references to
4881 remote_async_mask_value.
4882 (remote_async): Remove references to remote_async_mask_value.
4883 (remote_async_mask): Delete.
4884
4885 * infrun.c (fetch_inferior_event): Don't claim registers changed
4886 if the current thread is already not executing.
4887
4888 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4889
4890 From Stephen Kitt <steve@sk2.org>
4891 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4892 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4893
4894 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4895
4896 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4897 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4898
4899 2011-06-03 Tom Tromey <tromey@redhat.com>
4900
4901 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4902 code fields.
4903 * python/py-exitedevent.c (create_exited_event_object): Change
4904 type of 'exit_code'. Optionally add exit_code attribute.
4905 (emit_exited_event): Change type of 'exit_code'.
4906 * python/py-event.h (emit_exited_event): Update.
4907 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4908 * infrun.c (handle_inferior_event): Set exit code fields on
4909 inferior.
4910 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4911 fields.
4912 * inferior.c (exit_inferior_1): Initialize new fields.
4913
4914 2011-06-03 Tom Tromey <tromey@redhat.com>
4915
4916 * dwarf2expr.c (get_signed_type): New function.
4917 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4918
4919 2011-06-02 Keith Seitz <keiths@redhat.com>
4920
4921 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4922
4923 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4924
4925 * top.h (simplified_command_loop): Delete declaration.
4926
4927 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4928
4929 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4930 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4931
4932 2011-06-01 Yao Qi <yao@codesourcery.com>
4933
4934 * objfiles.h (obj_section_addr): Update reference to objfile from
4935 `abfd' to `obfd'.
4936 (obj_section_endaddr): Likewise.
4937
4938 2011-06-01 Daniel Jacobowitz <drow@false.org>
4939
4940 * MAINTAINERS: Update my email address and affiliation. Also
4941 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4942
4943 2010-05-31 Keith Seitz <keiths@redhat.com>
4944
4945 PR c++/12750
4946 * linespec.c (get_search_block): New function.
4947 (find_methods): Add FILE_SYMTATB parameter and use it and
4948 get_search_block to pass an appropriate block to
4949 lookup_symbol_in_namespace.
4950 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4951 Check if *ARGPTR starts with a filename first.
4952 If it does, call locate_first_half again to locate the next
4953 "first half" of the linespec.
4954 Pass FILE_SYMTATB to decode_objc and decode_compound.
4955 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4956 (locate_first_half): Stop on the first colon seen.
4957 (decode_compound): Add FILE_SYMTAB parameter.
4958 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4959 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4960 get_search_block with lookup_symbol.
4961 (find_method): Add FILE_SYMTAB parameter and pass it to
4962 find_methods.
4963 (decode_objc): Use get_search_block.
4964
4965 2010-05-31 Keith Seitz <keiths@redhat.com>
4966
4967 PR symtab/12704
4968 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4969 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4970 and CP_ANONYMOUS_NAMESPACE_LEN.
4971 (cp_is_anonymous): Likewise.
4972 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4973 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4974 * dwarf2read.c (namespace_name): Likewise.
4975 (fixup_partial_die): Likewise.
4976 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4977 seen in the input, keep it.
4978
4979 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4980
4981 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4982 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4983 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4984 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4985 * remote.c (_initialize_remote): Register
4986 async_remote_interrupt_twice directly as
4987 sigint_remote_twice_token event.
4988
4989 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4990
4991 * target.h (enum inferior_event_type): Delete INF_ERROR.
4992 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4993
4994 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4995
4996 * interps.c (interp_set): Don't cancel continuations.
4997
4998 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4999
5000 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5001
5002 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5003
5004 * continuations.h (continuation_ftype): Add `err' parameter.
5005 Document parameters.
5006 (do_all_continuations, do_all_continuations_thread)
5007 (do_all_intermediate_continuations)
5008 (do_all_intermediate_continuations_thread)
5009 (do_all_inferior_continuations): Add `err' parameter.
5010 * continuations.c (do_my_continuations_1, do_my_continuations)
5011 (do_all_inferior_continuations, do_all_continuations_ptid)
5012 (do_all_continuations_thread_callback)
5013 (do_all_continuations_thread, do_all_continuations)
5014 (do_all_intermediate_continuations_thread_callback)
5015 (do_all_intermediate_continuations_thread)
5016 (do_all_intermediate_continuations): Add `err' parameter, and pass
5017 it down all the way to the continuations proper.
5018 * inf-loop.c (inferior_event_handler): If fetching an inferior
5019 event throws an error, don't pop the target, and still call the
5020 continuations, but with `err' set. Adjust all other continuation
5021 calls.
5022 * breakpoint.c (until_break_command_continuation): Add `err'
5023 parameter.
5024 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5025 issue another step if `err' is set.
5026 (struct until_next_continuation_args): New.
5027 (until_next_continuation): Add `err' parameter. Adjust.
5028 (until_next_command): Adjust.
5029 (struct finish_command_continuation_args): Add `thread' field.
5030 (finish_command_continuation): Add `err' parameter. Handle it.
5031 (finish_forward): Adjust.
5032 (attach_command_continuation): Add `err' parameter. Handle it.
5033 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5034 cancel the continuations.
5035 * interps.c (interp_set): Adjust to cancel the continuations.
5036 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5037 continuations rather than discarding.
5038 (free_thread): Don't clear thread inferior resources here.
5039 (delete_thread_1): Do it here instead. And do it before removing
5040 the thread from the threads list. Tag the thread as exited before
5041 clearing thread inferior resources.
5042
5043 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5044
5045 * infcall.c (call_function_by_hand): Rephrase error message.
5046
5047 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5048
5049 * defs.h (struct thread_info, struct inferior): Delete forward
5050 declarations.
5051 * breakpoint.h (struct thread_info): New forward declaration.
5052 * observer.sh (struct inferior): New forward declaration.
5053 * python/python-internal.h (struct inferior): New forward
5054 declaration.
5055
5056 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5057
5058 * defs.h (struct continuation, continuation_ftype)
5059 (continuation_free_arg_ftype, add_continuation)
5060 (do_all_continuations, do_all_continuations_thread)
5061 (discard_all_continuations, discard_all_continuations_thread)
5062 (add_intermediate_continuation, do_all_intermediate_continuations)
5063 (do_all_intermediate_continuations_thread)
5064 (discard_all_intermediate_continuations)
5065 (discard_all_intermediate_continuations_thread)
5066 (add_inferior_continuation, do_all_inferior_continuations)
5067 (discard_all_inferior_continuations): Move to ...
5068 * continuations.h: ... this new file.
5069 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5070 infcmd.c, inferior.c, infrun.c, interps.c: Include
5071 continuations.h.
5072
5073 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 Doug Evans <dje@google.com>
5075
5076 Fix PR 10970, PR 12702.
5077 * linux-nat.c (linux_lwp_is_zombie): New function.
5078 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5079 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5080
5081 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5082
5083 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5084 typedefs.
5085 (add_continuation, add_intermediate_continuation)
5086 (add_inferior_continuation): Use them.
5087 * continuations.c (struct continuation): Use them.
5088 (make_continuation_ftype): Delete.
5089 (make_continuation, add_inferior_continuation, add_continuation)
5090 (add_intermediate_continuation): Use continuation_ftype and
5091 continuation_free_arg_ftype. Rename parameters to shorter names.
5092
5093 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5094
5095 * continuations.c (make_continuation): Make it return void.
5096 (do_my_continuations): Rename to ...
5097 (do_my_continuations_1): ... this. Remove old_chain parameter and
5098 adjust.
5099 (do_my_continuations): New.
5100 (discard_my_continuations): Rename to ...
5101 (discard_my_continuations_1): ... this. Remove old_chain
5102 parameter and adjust.
5103 (discard_my_continuations): New.
5104 (add_inferior_continuation): Simplify.
5105 (do_all_inferior_continuations): Reimplement on top
5106 do_my_continuations.
5107 (discard_all_inferior_continuations): Simplify.
5108 (add_continuation): Simplify.
5109 (do_all_continuations_ptid): Simplify.
5110 (discard_all_continuations_thread_callback): Simplify.
5111 (add_intermediate_continuation): Simplify.
5112 (discard_all_intermediate_continuations_thread_callback):
5113 Simplify.
5114
5115 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5116
5117 * utils.c (struct continuation, add_continuation)
5118 (add_inferior_continuation)
5119 (do_all_inferior_continuations, discard_all_inferior_continuations)
5120 (restore_thread_cleanup, do_all_continuations_ptid)
5121 (do_all_continuations_thread_callback)
5122 (do_all_continuations_thread, do_all_continuations)
5123 (discard_all_continuations_thread_callback)
5124 (discard_all_continuations_thread, discard_all_continuations)
5125 (add_intermediate_continuation)
5126 (do_all_intermediate_continuations_thread_callback)
5127 (do_all_intermediate_continuations_thread)
5128 (do_all_intermediate_continuations)
5129 (discard_all_intermediate_continuations_thread_callback)
5130 (discard_all_intermediate_continuations_thread)
5131 (discard_all_intermediate_continuations): Move to ...
5132 * continuations.c: ... this new file, and adjust to no longer
5133 implement continuations on top of cleanups.
5134 * Makefile.in (SFILES): Add continuations.c.
5135 (COMMON_OBS): Add continuations.o.
5136
5137 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5138
5139 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5140 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5141 Internal error on invalid values.
5142 * reverse.c: Don't handle EXEC_ERROR.
5143 * mi/mi-main.c: Don't handle EXEC_ERROR.
5144
5145 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5146
5147 * record.c: Include event-loop.h, inf-loop.h.
5148 (record_beneath_to_async): New global.
5149 (tmp_to_async): New global.
5150 (record_async_inferior_event_token): New global.
5151 (record_open_1): Don't error out if async is enabled.
5152 (record_open): Handle to_async. Create an async event source in
5153 the event loop.
5154 (record_close): Delete the async event source.
5155 (record_resumed): New global.
5156 (record_execution_dir): New global.
5157 (record_resume, record_core_resume): Set them. Register the
5158 target on the event loop.
5159 (record_wait): Rename to ...
5160 (record_wait_1): ... this. Add more debug output. Handle
5161 TARGET_WNOHANG, and the target beneath returning
5162 TARGET_WAITKIND_IGNORE.
5163 (record_wait): Reimplement on top of record_wait_1.
5164 (record_async_mask_value): New global.
5165 (record_async, record_async_mask, record_can_async_p)
5166 (record_is_async_p, record_execution_direction): New functions.
5167 (init_record_ops, init_record_core_ops): Install new methods.
5168 * infrun.c (fetch_inferior_event): Temporarily switch the global
5169 execution direction to the direction the target was going.
5170 (execution_direction): Change type to int.
5171 * target.c (default_execution_direction): New function.
5172 (update_current_target): Inherit and de_fault
5173 to_execution_direction.
5174 * target.h (struct target_ops) <to_execution_direction>: New
5175 field.
5176 (target_execution_direction): New macro.
5177 * inferior.h (execution_direction): Change type to int.
5178
5179 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5180
5181 * infcall.c (call_function_by_hand): Don't allow calling functions
5182 in reverse execution mode.
5183
5184 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5185
5186 * infcmd.c (finish_command): Allow async finish in reverse.
5187
5188 2011-05-26 Yao Qi <yao@codesourcery.com>
5189
5190 * gdb_thread_db.h: Delete. Move to ...
5191 * common/gdb_thread_db.h: ... here.
5192
5193 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5194
5195 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5196 function's entry point instead of a manually managed momentary
5197 breakpoint, and only ever issue one proceed call.
5198 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5199 doing a reverse-finish, switch to stepi mode, to do another step.
5200 (insert_step_resume_breakpoint_at_sal): Make public.
5201 (normal_stop): No need to save function value return registers if
5202 going reverse.
5203 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5204
5205 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5206
5207 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5208 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5209 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5210 at the end.
5211 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5212 step-resume breakpoints.
5213 (print_it_typical): Handle bp_hp_step_resume.
5214 (bpstat_what): Ditto.
5215 (bptype_string): Ditto.
5216 (print_one_breakpoint_location): Ditto.
5217 (allocate_bp_location): Ditto.
5218 (mention): Ditto.
5219 (breakpoint_re_set_one): Ditto.
5220 * infrun.c (handle_inferior_event): Adjust. Split
5221 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5222 BPSTAT_WHAT_HP_STEP_RESUME.
5223 (insert_step_resume_breakpoint_at_sal): Rename to ...
5224 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5225 parameter. Handle it.
5226 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5227 insert_step_resume_breakpoint_at_sal_1.
5228 (insert_step_resume_breakpoint_at_frame): Rename to ...
5229 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5230 set a high-priority step-resume breakpoint.
5231 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5232 (insert_step_resume_breakpoint_at_caller): Ditto.
5233
5234 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5235
5236 * breakpoint.c (iterate_over_related_breakpoints): New.
5237 (do_map_delete_breakpoint): New.
5238 (delete_command): Pass do_map_delete_breakpoint to
5239 map_breakpoint_numbers.
5240 (do_disable_breakpoint): New.
5241 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5242 breakpoints.
5243 (do_enable_breakpoint): Rename to ...
5244 (enable_breakpoint_disp): ... this.
5245 (enable_breakpoint): Adjust.
5246 (do_enable_breakpoint): New.
5247 (enable_once_breakpoint): Delete.
5248 (do_map_enable_breakpoint): New.
5249 (do_map_enable_once_breakpoint): New.
5250 (enable_once_command, enable_delete_command)
5251 (delete_trace_command): Iterate over the breakpoint's related
5252 breakpoints.
5253
5254 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5255
5256 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5257 for ALPHA_ZERO_REGNUM.
5258 (alpha_supply_int_regs): Explicitly supply zero as the value for
5259 ALPHA_ZERO_REGNUM in the register cache.
5260 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5261
5262 2011-05-26 Yao Qi <yao@codesourcery.com>
5263
5264 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5265
5266 2011-05-26 Tristan Gingold <gingold@adacore.com>
5267
5268 * symfile.h (struct dwarf2_section_names): New type.
5269 (struct dwarf2_debug_sections): New type.
5270 (dwarf2_has_info): Add parameter.
5271 * dwarf2read.c (dwarf2_elf_names): New variable.
5272 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5273 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5274 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5275 (dwarf2_has_info): Add names parameter. Pass names
5276 to dwarf2_locate_sections.
5277 (section_is_p): Rewrite using the names parameter.
5278 (dwarf2_locate_sections): Use section names from the names parameter.
5279 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5280 * elfread.c (read_psyms): Ditto.
5281 * machoread.c (macho_symfile_read): Ditto.
5282
5283 2011-05-25 Andreas Schwab <schwab@redhat.com>
5284
5285 PR gdb/8677
5286 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5287
5288 2011-05-24 Keith Seitz <keiths@redhat.com>
5289
5290 PR breakpoint/12803
5291 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5292 (decode_compound): Unconditionally call keep_name_info.
5293
5294 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5295
5296 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5297 scope, clear its command list.
5298 (map_breakpoint_numbers): Don't walk the related breakpoints list
5299 of each breakpoint.
5300
5301 2011-05-24 Tom Tromey <tromey@redhat.com>
5302
5303 * MAINTAINERS: Move Jim Blandy to past maintainers.
5304
5305 2011-05-24 Tristan Gingold <gingold@adacore.com>
5306
5307 * symfile.h (enum dwarf2_section_enum): New type.
5308 (dwarf2_get_section_info): New prototype.
5309 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5310 section_name by sect. Use a switch to select the info.
5311 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5312 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5313
5314 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5315
5316 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5317 shared library event breakpoint if there's no execution.
5318
5319 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5320
5321 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5322 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5323
5324 2011-05-23 Tom Tromey <tromey@redhat.com>
5325
5326 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5327 NULL.
5328
5329 2011-05-23 Doug Evans <dje@google.com>
5330
5331 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5332 entry for RuntimeError to doc string.
5333
5334 2011-05-23 Jerome Guitton <guitton@adacore.com>
5335
5336 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5337 sequence for probing loops.
5338
5339 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5340
5341 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5342 comment.
5343
5344 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5345
5346 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5347 zero as the value for %g0 in the register cache.
5348 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5349 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5350
5351 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5352
5353 * infrun.c (proceed): Set previous_inferior_ptid here.
5354 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5355 inferior_ptid, not null_ptid.
5356 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5357 (fetch_inferior_event): Nor here.
5358
5359 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5360
5361 * inf-loop.c (inferior_event_handler): Only output a message if
5362 verbose.
5363
5364 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5365
5366 * MAINTAINERS: Update my e-mail address.
5367
5368 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5369
5370 * infrun.c (proceed): Switch the inferior event loop to
5371 INF_EXEC_COMPLETE if the target refused to resume from a
5372 vfork/fork.
5373
5374 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5375
5376 * infcmd.c: Include "inf-loop.h".
5377 (step_once): When stepping into an inline subroutine, pretend the
5378 target has run. If the target can async, switch the inferior
5379 event loop to INF_EXEC_COMPLETE.
5380 * inferior.h (user_visible_resume_ptid): Declare.
5381 * infrun.c (user_visible_resume_ptid): New function, factored out
5382 from `resume'.
5383 (resume): Use it.
5384 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5385 that the current thread is running. Merge async and sync
5386 branches.
5387
5388 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5389
5390 * infcmd.c (step_1): Simplify synchronous case.
5391
5392 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5393
5394 * tracepoint.c: Include exceptions.h.
5395 (TFILE_PID): Move higher in file.
5396 (tfile_open): Delay pushing the tfile target until we're assured
5397 the tfile header is present in the file. Wrap reading the initial
5398 newline-terminated lines in TRY_CATCH. Pop the target if the
5399 initial setup failed. Add the tfile's thread immediately
5400 aftwards, before any non-essential setup. Don't skip
5401 post_create_inferior if there are no traceframes present in the
5402 file.
5403 (tfile_close): Remove redundant check for null before xfree call.
5404 (tfile_thread_alive): New function.
5405 (init_tfile_ops): Register it as to_thread_alive callback.
5406
5407 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5408
5409 * tracepoint.c (tfile_open): Delete #if 0'd code.
5410
5411 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5412
5413 Fix -readnow for -gdwarf-4 unused type units.
5414 * dwarf2read.c (struct signatured_type): Remove the field offset.
5415 (create_signatured_type_table_from_index): Remove its initialization.
5416 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5417 instead. Add a complaint call.
5418 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5419 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5420 (lookup_signatured_type_at_offset, read_signatured_type)
5421 (write_one_signatured_type): Update the field for per_cu.
5422
5423 2011-05-19 Tom Tromey <tromey@redhat.com>
5424
5425 * python/py-inferior.c (python_inferior_exit): Use
5426 target_gdbarch.
5427 (python_on_resume): Likewise.
5428
5429 2011-05-19 Matt Rice <ratmice@gmail.com>
5430
5431 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5432
5433 2011-05-19 Hui Zhu <teawater@gmail.com>
5434
5435 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5436
5437 2011-05-19 Hui Zhu <teawater@gmail.com>
5438
5439 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5440
5441 2011-05-18 Tom Tromey <tromey@redhat.com>
5442
5443 * dwarf2read.c (dwarf2_add_field): Constify.
5444 * value.c (value_static_field): Constify.
5445 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5446 Now const.
5447 * ax-gdb.c (gen_static_field): Constify
5448
5449 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5450
5451 * linux-nat.c (kill_callback): Use SIGKILL first.
5452
5453 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5454
5455 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5456
5457 2011-05-18 Tom Tromey <tromey@redhat.com>
5458
5459 * value.c (value_fn_field): Constify.
5460 * symtab.c (gdb_mangle_name): Constify.
5461 * stabsread.c (update_method_name_from_physname): Make 'physname'
5462 argument const.
5463 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5464 const. Use explicit fputc_filtered loop.
5465 (pascal_type_print_base): Constify.
5466 * p-lang.h (pascal_type_print_method_args): Update.
5467 * linespec.c (add_matching_methods): Constify.
5468 (add_constructors): Likewise.
5469 * jv-typeprint.c (java_type_print_base): Constify.
5470 * gdbtypes.h (struct cplus_struct_type)
5471 <fn_fieldlist.fn_field.physname>: Now const.
5472 * dwarf2read.c (compute_delayed_physnames): Constify.
5473 (dwarf2_add_member_fn): Likewise.
5474 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5475
5476 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5477
5478 * infrun.c (resume): Mention which is the current thread, and its
5479 current PC in debug output.
5480 (prepare_to_proceed): Mention the thread switching in debug
5481 output.
5482
5483 2011-05-18 Tom Tromey <tromey@redhat.com>
5484
5485 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5486 path check. Use xmalloc and cleanups.
5487 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5488
5489 2011-05-17 Tom Tromey <tromey@redhat.com>
5490
5491 * cp-valprint.c (cp_print_value_fields): Catch errors from
5492 value_static_field.
5493
5494 2011-05-17 Tom Tromey <tromey@redhat.com>
5495
5496 * dwarf2read.c (dwarf2_get_die_type): Call
5497 get_die_type_at_offset.
5498 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5499 get_base_type function.
5500
5501 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5502
5503 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5504 trap_expected.
5505
5506 2011-05-16 Doug Evans <dje@google.com>
5507
5508 * python/py-auto-load.c (source_section_scripts): Mention objfile
5509 name in warning.
5510
5511 2011-05-15 Doug Evans <dje@google.com>
5512
5513 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5514 (try_thread_db_load_from_pdir): Call it. If unable to find
5515 libthread_db in directory of libpthread, see if we're looking at
5516 the separate-debug-info copy.
5517
5518 * python/py-autoload.c (print_script): Print "Missing" instead of
5519 "No" for missing scripts.
5520 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5521
5522 2011-05-13 Doug Evans <dje@google.com>
5523
5524 * ui-file.c (stdio_file_write_async_safe): Add comment.
5525
5526 2011-05-14 Hui Zhu <teawater@gmail.com>
5527
5528 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5529
5530 2011-05-13 Doug Evans <dje@google.com>
5531
5532 Support $pdir and $sdir in libthread-db-search-path.
5533 * NEWS: Mention $sdir,$pdir.
5534 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5535 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5536 (try_thread_db_load_from_sdir): New function.
5537 (try_thread_db_load_from_dir): New function.
5538 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5539 system directories if search of libthread-db-search-path fails,
5540 that is now done via $sdir.
5541 (has_libpthread): New function.
5542 (thread_db_load): Remove search for libthread_db in directory of
5543 libpthread, that is now done via $pdir.
5544
5545 * NEWS: Mention "info auto-load-scripts".
5546 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5547 script_not_found_warning_printed.
5548 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5549 all callers updated. Initialize script_not_found_warning_printed.
5550 (get_auto_load_pspace_data_for_loading): New function.
5551 (maybe_add_script): New function.
5552 (source_section_scripts): Simplify. Only print one warning regardless
5553 of the number of auto-load scripts not found.
5554 (clear_section_scripts): Clear script_not_found_warning_printed.
5555 (auto_load_objfile_script): Record script in hash table.
5556 (count_matching_scripts): New function.
5557 (maybe_print_script): Renamed from maybe_print_section_script, all
5558 callers updated. Rewrite to use ui_out_*.
5559 (info_auto_load_scripts): Renamed from
5560 maintenance_print_section_scripts, all callers updated.
5561 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5562 renamed as "info auto-load-scripts".
5563
5564 2011-05-13 Tom Tromey <tromey@redhat.com>
5565
5566 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5567 (read_sleb128): Likewise.
5568
5569 2011-05-13 Tom Tromey <tromey@redhat.com>
5570
5571 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5572 offset display.
5573
5574 2011-05-13 Doug Evans <dje@google.com>
5575
5576 * linux-nat.c (debug_linux_nat_async): Delete.
5577 Replace all references to use debug_linux_nat instead.
5578 (show_debug_linux_nat_async): Delete.
5579 (sigchld_handler): Call ui_file_write_async_safe instead of
5580 fprintf_unfiltered.
5581 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5582 * ui-file.c (struct ui_file): New member to_write_async_safe.
5583 (null_file_write_async_safe): New function.
5584 (ui_file_write_async_safe): New function.
5585 (set_ui_file_write_async_safe): New function.
5586 (ui_file_new): Initialize to_write_async_safe.
5587 (stdio_file_write_async_safe): New function.
5588 (struct stdio_file): New member fd.
5589 (stdio_file_new): Initialize to_write_async_safe, fd.
5590 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5591 fileno.
5592 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5593 (set_ui_file_write_async_safe): Declare.
5594 (ui_file_write_async_safe): Declare.
5595
5596 2011-05-13 Tom Tromey <tromey@redhat.com>
5597
5598 * utils.c (do_value_free): New function.
5599 (make_cleanup_value_free): Likewise.
5600 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5601 freeing correctly.
5602 (dwarf2_loc_desc_needs_frame): Call
5603 make_cleanup_value_free_to_mark.
5604 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5605 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5606 value_free_to_mark.
5607 (new_dwarf_expr_context): Don't call value_mark.
5608 * dwarf2-frame.c (execute_stack_op): Call
5609 make_cleanup_value_free_to_mark.
5610 * defs.h (make_cleanup_value_free): Declare.
5611
5612 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5613
5614 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5615 prepare_execute_command.
5616 * top.c (prepare_execute_command): Return cleanup.
5617 (execute_command): Use cleanup from prepare_execute_command.
5618 * top.h (prepare_execute_command): Change prototype to return
5619 cleanup.
5620 * defs.h (struct value): Add opaque declaration.
5621 (make_cleanup_value_free_to_mark): Add prototype.
5622 * utils.c (do_value_free_to_mark): New function.
5623 (make_cleanup_value_free_to_mark): Likewise.
5624
5625 2011-05-12 Tom Tromey <tromey@redhat.com>
5626
5627 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5628 cast left-hand-side to unsigned.
5629
5630 2011-05-12 Tom Tromey <tromey@redhat.com>
5631
5632 PR gdb/12617:
5633 * value.h (value_from_contents): Declare.
5634 * value.c (value_from_contents): New function.
5635 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5636 (dwarf2_get_die_type): New function.
5637 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5638 (allocate_piece_closure): Acquire reference to values.
5639 (read_pieced_value): Update for value-based expressions.
5640 (write_pieced_value): Likewise.
5641 (free_pieced_value_closure): Call value_free as needed.
5642 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5643 Update for value-based expressions.
5644 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5645 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5646 <get_base_type>: New field.
5647 (struct dwarf_expr_piece) <v.value>: Change type.
5648 <v.regno>: New field.
5649 (struct dwarf_expr_context) <mark>: New field.
5650 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5651 (dwarf_expr_pop, dwarf_expr_push): Remove.
5652 (dwarf_expr_push_address): Declare.
5653 * dwarf2expr.c (dwarf_arch_cookie): New global.
5654 (struct dwarf_gdbarch_types): New.
5655 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5656 functions.
5657 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5658 static.
5659 (dwarf_expr_push_address): New function.
5660 (dwarf_expr_pop): Now static.
5661 (dwarf_expr_fetch): Change return type.
5662 (dwarf_require_integral): New function.
5663 (dwarf_expr_fetch): Simplify.
5664 (add_piece): Update.
5665 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5666 functions.
5667 (execute_stack_op) <sign_ext>: Remove.
5668 Use values for DWARF stack.
5669 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5670 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5671 New cases.
5672 (_initialize_dwarf2expr): New function.
5673 (add_piece): Update.
5674 (new_dwarf_expr_context): Set new field.
5675 (free_dwarf_expr_context): Call value_free_to_mark.
5676 * dwarf2-frame.c (no_base_type): New function.
5677 (execute_stack_op): Set get_base_type field. Update.
5678
5679 2011-05-12 Tom Tromey <tromey@redhat.com>
5680
5681 * dwarf2read.c (read_common_block): Fix formatting.
5682
5683 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5684
5685 * breakpoint.c (disable_breakpoint): Disable all locations
5686 associated with a tracepoint on target if a trace experiment is
5687 running.
5688 (disable_command): Disable a specific tracepoint location on target if
5689 a trace experiment is running.
5690 (do_enable_breakpoint): Enable all locations associated with a
5691 tracepoint on target if a trace experiment is running.
5692 (enable_command) Enable a specific tracepoint location on target if a
5693 trace experiment is running.
5694 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5695 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5696 to_disable_tracepoint.
5697 * target.h: Add declaration of struct bp_location.
5698 (struct target_ops): Add new functions
5699 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5700 to_disable_tracepoint to target operations.
5701 (target_supports_enable_disable_tracepoint): New macro.
5702 (target_enable_tracepoint): New macro.
5703 (target_disable_tracepoint): New macro.
5704 * remote.c (struct remote_state): Add new field.
5705 (remote_enable_disable_tracepoint_feature): New.
5706 (remote_protocol_features): Add new entry.
5707 (remote_supports_enable_disable_tracepoint): New.
5708 (remote_enable_tracepoint): New.
5709 (remote_disable_tracepoint): New.
5710 (init_remote_ops): Add remote_enable_tracepoint,
5711 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5712 to remote operations.
5713 * tracepoint.c (start_tracing): Allow tracing to start without any
5714 tracepoints enabled with just a warning if they can be re-enabled
5715 later.
5716 * NEWS: Add news item for the new behaviour of the enable and disable
5717 GDB commands when applied to tracepoints.
5718 Add news items for the new remote packets QTEnable and QTDisable.
5719
5720 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5721
5722 * config.in: Regenerate.
5723 * configure: Regenerate.
5724 * configure.ac <--with-system-readline> (for readline_echoing_p):
5725 Remove the test.
5726 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5727 (tui_old_rl_echoing_p): ... here.
5728 (tui_setup_io): Rename extern declaration readline_echoing_p to
5729 _rl_echoing_p. Adjust assignments for the both renames.
5730
5731 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5732
5733 * symtab.c (lookup_symtab): Run cleanup before returning.
5734
5735 2011-05-11 Tom Tromey <tromey@redhat.com>
5736
5737 * dwarf2read.c (handle_data_member_location): New function.
5738 (dwarf2_add_field): Use it.
5739 (read_common_block): Likewise.
5740
5741 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5742
5743 Make addrs->SECTINDEX always defined.
5744 * symfile.c (relative_addr_info_to_section_offsets): Check for
5745 SECTINDEX -1, not for zero ADDR.
5746 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5747 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5748 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5749 on its validity.
5750
5751 2011-05-10 Doug Evans <dje@google.com>
5752
5753 * linux-thread-db.c: Whitespace cleanup.
5754 (try_thread_db_load_1): Fix comment.
5755
5756 * linux-thread-db.c (set_libthread_db_search_path): New function.
5757 (_initialize_thread_db): Add setter for libthread-db-search-path.
5758
5759 2011-05-09 Doug Evans <dje@google.com>
5760
5761 * NEWS: Mention --with-iconv-bin.
5762 * configure.ac: New option --with-iconv-bin.
5763 * configure: Regenerate.
5764 * config.in: Regenerate.
5765 * defs.h (relocate_gdb_directory): Declare.
5766 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5767 removed progname parameter, and exported. All callers updated.
5768 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5769
5770 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5771 adding missing call to restore_child_signals_mask.
5772
5773 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5774
5775 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5776 parameter.
5777 * infrun.c (proceed, start_remote): Adjust.
5778 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5779 and adjust to not handle it.
5780 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5781 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5782 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5783 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5784 * windows-nat.c (do_initial_windows_stuff): Adjust.
5785 * infcmd.c (attach_command): Adjust.
5786 (notice_new_inferior): Adjust.
5787
5788 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5789
5790 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5791 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5792 * spu-tdep.c (op_selb): Use correct value.
5793
5794 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5795
5796 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5797 "parent" parameter to symbol_file_add_from_bfd call.
5798
5799 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5800 Thiago Jung Bauermann <bauerman@br.ibm.com>
5801
5802 Implement support for PowerPC BookE masked watchpoints.
5803 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5804 section.
5805 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5806 method. Initialize to NULL in all existing breakpoint_ops instances.
5807 (struct breakpoint) <hw_wp_mask>: New field.
5808 * breakpoint.c (is_masked_watchpoint): Add prototype.
5809 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5810 breakpoint's breakpoint_ops.works_in_software_mode if available.
5811 (watchpoints_triggered): Handle the case of a hardware masked
5812 watchpoint trigger.
5813 (watchpoint_check): Likewise.
5814 (works_in_software_mode_watchpoint): New function.
5815 (insert_masked_watchpoint, remove_masked_watchpoint)
5816 (resources_needed_masked_watchpoint)
5817 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5818 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5819 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5820 functions.
5821 (masked_watchpoint_breakpoint_ops): New structure.
5822 (watch_command_1): Check for the existence of the `mask' parameter.
5823 Set b->ops according to the type of hardware watchpoint being created.
5824 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5825 (ppc_linux_remove_mask_watchpoint)
5826 (ppc_linux_masked_watch_num_registers): New functions.
5827 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5828 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5829 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5830 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5831 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5832 (target_masked_watch_num_registers): New functions.
5833 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5834 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5835 methods.
5836 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5837 (target_masked_watch_num_registers): Add prototypes.
5838
5839 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5840
5841 PR 12573
5842 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5843 (producer_is_gcc_ge_4_0): New function.
5844 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5845 symtab->language code.
5846 (var_decode_location): Set cu->has_loclist.
5847 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5848 skip. Intialize force_skip from locations_valid. Move the prologue
5849 skipping code into two passes.
5850 * symtab.h (struct symtab): Make the primary field a bitfield. New
5851 field locations_valid.
5852
5853 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5856 (classify_inner_name): Call cp_lookup_nested_type with
5857 yylval.tsym.type.
5858 * cp-namespace.c (cp_lookup_nested_type): New variable
5859 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5860 type_name_no_tag_or_error with saved_parent_type.
5861 * dwarf2read.c (load_partial_dies): Read in any children of
5862 DW_TAG_typedef with complaint in such case.
5863 * gdbtypes.c (type_name_no_tag_or_error): New function.
5864 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5865 * valops.c (destructor_name_p): New comment for parameter type. Remove
5866 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5867 * value.h (destructor_name_p): Remove type const.
5868
5869 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5870
5871 * symtab.c (compare_symbol_name): New function.
5872 (completion_list_add_name, expand_partial_symbol_name): Call it,
5873 remove the variable ncmp.
5874 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5875 gdb_assert it.
5876
5877 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5878
5879 Demote to sw watchpoint only in update_watchpoint.
5880 * breakpoint.c (update_watchpoint): Change between software and
5881 hardware watchpoint for all kinds of watchpoints, not just
5882 read/write ones. Determine b->exact value here instead of
5883 in watch_command_1. Error out if there are not enough resources
5884 for a read or access hardware watchpoint.
5885 (watch_command_1): Remove logic of checking whether there are
5886 enough resources available, since update_watchpoint will do that
5887 work now. Don't set b->exact here. Catch exceptions thrown by
5888 update_watchpoint and delete the watchpoint.
5889 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5890 Use target_exact_watchpoints instead.
5891 (delete_breakpoint): Notify observers only if deleted watchpoint
5892 has a breakpoint number assigned to it.
5893
5894 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5895
5896 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5897
5898 2011-05-05 Jerome Guitton <guitton@adacore.com>
5899
5900 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5901 New functions.
5902 (i386_stack_tramp_frame_unwind): New static global.
5903 (i386_match_pattern): New function, extracted from i386_match_insn.
5904 (i386_match_insn): Use i386_match_pattern.
5905 (i386_match_insn_block): New function.
5906 (i386_tramp_chain_in_reg_insns)
5907 (i386_tramp_chain_on_stack_insns): New static variables.
5908 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5909 of unwinders.
5910
5911 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5912
5913 * configure.host (xscale*): Don't handle target.
5914 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5915 handle targets.
5916
5917 2011-05-04 Yao Qi <yao@codesourcery.com>
5918
5919 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5920
5921 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5922
5923 Revert:
5924 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5925 | * elfread.c (elf_symtab_read): Stop memory leak.
5926
5927 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5928
5929 * nto-tdep.c (nto_target): Replace deprecated call to
5930 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5931
5932 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5933
5934 Fix false GCC warning.
5935 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5936
5937 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5938
5939 * breakpoint.c (update_watchpoint): Move code to change
5940 the enable state of breakpoint from here ...
5941 (do_enable_breakpoint): ... to here.
5942
5943 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5944
5945 * valprint.c (val_print_array_elements): Fixed poor performance
5946 of printing very large arrays with repeat_count_threshold set
5947 to unlimited. New comment.
5948
5949 2011-04-29 Tom Tromey <tromey@redhat.com>
5950
5951 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5952 (mi_parse): Likewise.
5953 * breakpoint.c (break_range_command): Use sizeof char*, not
5954 char**.
5955 (create_breakpoint): Likewise.
5956 (parse_breakpoint_sals): Likewise.
5957
5958 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5959
5960 * linux-nat.c (linux_child_remove_fork_catchpoint)
5961 (linux_child_remove_vfork_catchpoint)
5962 (linux_child_remove_exec_catchpoint): New functions.
5963 (linux_target_install_ops): Install them.
5964
5965 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5966
5967 PR mi/12531
5968
5969 * varobj.c (install_default_visualizer): Do not install a
5970 visualizer if the varobj is CPLUS_FAKE_CHILD.
5971 (construct_visualizer): Likewise.
5972
5973 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5974
5975 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5976 case insensitive comparison.
5977
5978 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5979
5980 * infrun.c (proceed): Revert previous change.
5981 (resume): Instead, handle the case of signal delivery while stepping
5982 off a breakpoint location here, and only if software single-stepping
5983 is used. Handle nested signals.
5984
5985 2011-04-28 Yao Qi <yao@codesourcery.com>
5986
5987 * arm-tdep.c (copy_unmodified): Rename to ...
5988 (arm_copy_unmodified): .. this. New.
5989 (copy_preload): Move common part to ...
5990 (install_preload): .. this. New.
5991 (arm_copy_preload): New.
5992 (copy_preload_reg): Move common part to ...
5993 (install_preload_reg): ... this. New.
5994 (arm_copy_preload_reg): New.
5995 (copy_b_bl_blx): Move common part to ...
5996 (install_b_bl_blx): .. this. New.
5997 (arm_copy_b_bl_blx): New.
5998 (copy_bx_blx_reg): Move common part to ...
5999 (install_bx_blx_reg): ... this. New.
6000 (arm_copy_bx_blx_reg): New.
6001 (copy_alu_reg): Move common part to ...
6002 (install_alu_reg): ... this. New.
6003 (arm_copy_alu_reg): New.
6004 (copy_alu_shifted_reg): Move common part to ...
6005 (install_alu_shifted_reg): ... this. New.
6006 (copy_ldr_str_ldrb_strb): Move common part to ...
6007 (install_ldr_str_ldrb_strb): ... this. New.
6008 (arm_copy_ldr_str_ldrb_strb): New.
6009 (copy_copro_load_store): Move some common part to ...
6010 (install_copy_copro_load_store): ... this. New.
6011 (arm_copy_copro_load_store): New.
6012 (copy_svc): Delete.
6013 (arm_copy_svc): Renamed from copy_svc.
6014 (copy_undef): Delete.
6015 (arm_copy_undef): Renamed from copy_undef.
6016 (decode_ext_reg_ld_st): Delete.
6017 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6018 (decode_svc_copro): Delete.
6019 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6020 (copy_copro_load_store, copy_alu_imm): update callers.
6021 (copy_extra_ld_st, copy_block_xfer): Likewise.
6022 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6023 (decode_miscellaneous, decode_dp_misc): Likewise.
6024 (decode_ld_st_word_ubyte, decode_media): Likewise.
6025 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6026 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6027 (decode_unconditional, decode_miscellaneous): Likewise.
6028 (decode_media, decode_b_bl_ldmstm): Likewise.
6029 (arm_process_displaced_insn): Likewise..
6030 (decode_misc_memhint_neon): Delete.
6031 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6032 (decode_miscellaneous): Delete.
6033 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6034 (decode_dp_misc): Delete.
6035 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6036 (decode_ld_st_word_ubyte): Delete.
6037 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6038 (decode_media): Delete.
6039 (arm_decode_media): Renamed from decode_media.
6040 (decode_b_bl_ldmstm): Delete.
6041 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6042 (decode_ext_reg_ld_st): Delete.
6043 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6044 (decode_unconditional): Delete.
6045 (arm_decode_unconditional): Renamed from decode_unconditional.
6046
6047 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6048
6049 Case insensitive lookups implementation.
6050 * dwarf2read.c: Include ctype.h.
6051 (struct mapped_index): New field version.
6052 (mapped_index_string_hash): New parameter index_version. New comment
6053 for it. Call tolower appropriately.
6054 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6055 Choose the right index version for mapped_index_string_hash.
6056 (dwarf2_read_index): Support also the index version 5. Initialize the
6057 new struct mapped_index field version.
6058 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6059 (find_slot): Explain the version needs. Pass INT_MAX for the new
6060 parameter.
6061 (write_psymtabs_to_index): Produce version 5.
6062 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6063 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6064 * psymtab.c (lookup_partial_symbol): Find the
6065 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6066 entries.
6067 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6068 NAME lowercasing.
6069 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6070 (completion_list_add_name): New variable ncmp, initialize it, use it.
6071 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6072 * utils.c (strcmp_iw): Support case_sensitive_off.
6073 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6074 New function comment part. New variables saved_string1,
6075 saved_string2 and case_pass. Add a proper second pass.
6076
6077 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6078
6079 Replace re_comp/re_exec by regcomp/regexec.
6080 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6081 (search_symbols_name_matches): Use them, use regexec.
6082 (search_symbols): New variable retval_chain, adjust the use of
6083 old_chain against it. Replace re_comp by regcomp. Use the new struct
6084 search_symbols_data fields, use regexec instead of re_exec.
6085
6086 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6087
6088 Format the code for the next patch.
6089 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6090 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6091 New variables c1 and c2.
6092
6093 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6094
6095 * infrun.c (proceed): Do not single-step into signal delivery
6096 when stepping off a breakpoint location.
6097 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6098 (insert_step_resume_breakpoint_at_caller): Likewise.
6099 (insert_step_resume_breakpoint_at_sal): Likewise.
6100 (insert_longjmp_resume_breakpoint): Likewise.
6101
6102 2011-04-27 Yao Qi <yao@codesourcery.com>
6103
6104 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6105
6106 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6107
6108 * procfs.c (procfs_pass_signals): Fix advance declaration.
6109
6110 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6111
6112 * target.h (struct target_ops): Remove to_notice_signals;
6113 add to_pass_signals.
6114 (target_notice_signals): Remove.
6115 (target_pass_signals): Add prototype.
6116 * target.c (update_current_target): Remove to_notice_signals;
6117 mention to_pass_signals.
6118 (target_pass_signals): New function.
6119 (debug_to_notice_signals): Remove.
6120 (setup_target_debug): Do not install debug_to_notice_signals.
6121
6122 * infrun.c (signal_pass): New global.
6123 (resume): Call target_pass_signals.
6124 (handle_inferior_event): Report all signals while stepping over
6125 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6126 are re-inserted when stepping over a signal handler.
6127 (signal_cache_update): New function.
6128 (signal_stop_update): Call it.
6129 (signal_print_update): Likewise.
6130 (signal_pass_update): Likewise.
6131 (handle_command): Call signal_cache_update and target_pass_signals
6132 instead of target_notice_signals.
6133 (_initialize_infrun): Initialize signal_pass.
6134
6135 * linux-nat.c (pass_mask): New global.
6136 (linux_nat_pass_signals): New function.
6137 (linux_nat_create_inferior): Report all signals initially.
6138 (linux_nat_attach): Likewise.
6139 (linux_nat_resume): Use pass_mask to decide whether to directly
6140 handle an inferior signal.
6141 (linux_nat_wait_1): Likewise.
6142 (linux_nat_add_target): Install to_pass_signals callback.
6143
6144 * nto-procfs.c (notice_signals): Remove.
6145 (procfs_resume): Do not call notice_signals.
6146 (procfs_notice_signals): Remove.
6147 (procfs_pass_signals): New function.
6148 (init_procfs_ops): Install to_pass_signals callback instead of
6149 to_notice_signals callback.
6150 (_initialize_procfs): Report all signals initially.
6151
6152 * procfs.c (procfs_notice_signals): Remove.
6153 (procfs_pass_signals): New function.
6154 (procfs_target): Install to_pass_signals callback instead of
6155 to_notice_signals callback.
6156 (register_gdb_signals): Remove.
6157 (procfs_debug_inferior): Report all signals initially.
6158 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6159
6160 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6161 parameters; use them instead of calling signal_..._state routines.
6162 (remote_notice_signals): Remove.
6163 (remote_start_remote): Report all signals initially.
6164 (remote_resume): Do not call remote_pass_signals.
6165 (_initialize_remote): Install to_pass_signals callback instead of
6166 to_notice_signals callback.
6167
6168 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6169
6170 * breakpoint.c (user_settable_breakpoint): Delete.
6171 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6172 (delete_command): Check user_breakpoint_p instead of looking at
6173 the breakpoint's type.
6174 (disable_command): Ditto.
6175 (enable_command): Ditto.
6176 (delete_trace_command): Use user_breakpoint_p instead of looking
6177 at the breakpoint number directly. When checking if there are
6178 user visible tracepoints, in order to know whether to ask the user
6179 for confirmation, check whether the breakpoint is actually a
6180 tracepoint.
6181
6182 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6183
6184 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6185 compilation.
6186
6187 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6188
6189 MI breakpoint notifications.
6190
6191 * annotate.c (breakpoint_changed): Adjust parameter type.
6192 * breakpoint.c (set_breakpoint_condition): Adjust to change
6193 in breakpoint_modified type.
6194 (breakpoint_set_commands): Likewise.
6195 (do_map_commands_command): Likewise.
6196 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6197 changed after bumping hit count.
6198 (bpstat_stop_status): Likewise.
6199 (print_one_breakpoint_location): Don't wrap in tuple here.
6200 (print_one_breakpoint): Always print individual locations.
6201 For locations, use unnamed tuple.
6202 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6203 has changed.
6204 (create_catchpoint, create_syscall_event_catchpoint): Call
6205 breakpoint_created obsever.
6206 (mention): Don't call breakpoint_created observer.
6207 (create_breakpoint_sal): Call breakpoint_created observer.
6208 (create_breakpoint, watch_command_1): Likewise.
6209 (create_ada_exception_breakpoint): Likewise.
6210 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6211 (locations_are_equal): New.
6212 (update_breakpoint_locations): If locations were changed, notify.
6213 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6214 Call breakpoint_modified observer.
6215
6216 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6217 (mi_cmd_break_insert): Don't set observers for modify and delete.
6218 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6219 (mi_breakpoint_created, mi_breakpoint_deleted)
6220 (mi_breakpoint_modified): New.
6221 (mi_interpreter_init): Hook the above.
6222 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6223 while -break-* commands are executing.
6224 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6225 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6226 (mi_redirect): New.
6227 (mi_ui_out_impl): Hook in mi_redirect.
6228 (mi_field_skip): True to the name, skip the field, don't output
6229 a field with an empty value.
6230
6231 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6232 (gdbpy_breakpoint_deleted): Adjust.
6233 * tui/tui-hooks.c (tui_event_create_breakpoint)
6234 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6235
6236 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6237
6238 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6239 (procfs_remove_hw_watchpoint): Likewise.
6240
6241 2011-04-26 Michael Walle <michael@walle.cc>
6242
6243 * remote.c (remote_start_remote): Ack packet after sending the
6244 interrupt sequence.
6245
6246 2011-04-26 Yao Qi <yao@codesourcery.com>
6247
6248 * linux-nat.c: Move common macros to ...
6249 Include linux-ptrace.h.
6250 * common/linux-ptrace.h: ... here. New.
6251
6252 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6253
6254 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6255 !objfile_has_partial_symbols. New comment.
6256 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6257 SYM_READ_PSYMBOLS is not present. Extend the comment.
6258 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6259
6260 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6261
6262 * defs.h (ENUM_BITFIELD): Remove.
6263
6264 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6265 Eli Zaretskii <eliz@gnu.org>
6266
6267 * NEWS: Document the new gdbserver --once option.
6268
6269 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6270
6271 * MAINTAINERS: Update my email address.
6272
6273 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6274
6275 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6276 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6277 function call if __STDC_ISO_10646__ macro is defined.
6278 (intermediate_encoding): New prototype.
6279 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6280 to generate compile time error for unsupported gdb_wchar_t size.
6281 (ENDIAN_SUFFIX): New macro.
6282 (intermediate_encoding): New function.
6283
6284 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6285
6286 * ada-lang.c (struct add_partial_datum): Update the comment for
6287 expand_partial_symbol_name.
6288 (ada_add_partial_symbol_completions): Rename to ...
6289 (ada_expand_partial_symbol_name): ... here, change return type, update
6290 function comment, call symbol_completion_match instead of
6291 symbol_completion_add.
6292 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6293 and ada_expand_partial_symbol_name.
6294 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6295 FILE_MATCHER.
6296 (dw2_map_symbol_names): Remove.
6297 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6298 * psymtab.c (map_symbol_names_psymtab): Remove.
6299 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6300 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6301 order.
6302 (psym_functions): Unlist map_symbol_names_psymtab.
6303 (map_partial_symbol_names): Rename to ...
6304 (expand_partial_symbol_names): ... here, change the FUN type, call
6305 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6306 * psymtab.h (map_partial_symbol_names): Rename to ...
6307 (expand_partial_symbol_names): ... here, change the FUN type.
6308 * symfile.h (struct quick_symbol_functions): Update the description of
6309 expand_symtabs_matching. Remove map_symbol_names.
6310 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6311 (struct add_name_data): Update the comment for
6312 expand_partial_symbol_name.
6313 (add_partial_symbol_name): Rename to ...
6314 (expand_partial_symbol_name): ... here. Replace
6315 completion_list_add_name call by strncmp.
6316 (default_make_symbol_completion_list_break_on): Use now
6317 expand_partial_symbol_names and expand_partial_symbol_name.
6318 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6319
6320 2011-04-20 Tom Tromey <tromey@redhat.com>
6321
6322 * dwarf2read.c (save_gdb_index_command): Replace format
6323 documentation with a pointer to the manual.
6324
6325 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6326
6327 * regcache.c: Include remote.h.
6328 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6329 (regcache_dump): Handle regcache_dump_remote.
6330 (maintenance_print_remote_registers): New function.
6331 (_initialize_regcache): Install "maint print remote-registers"
6332 command.
6333 * remote.c (map_regcache_remote_table): New function, factored out
6334 from ...
6335 (init_remote_state): ... here.
6336 (remote_register_number_and_offset): New.
6337 * remote.h (remote_register_number_and_offset): Declare.
6338
6339 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6340
6341 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6342 null_ptid, assume and allow a NULL address space, instead of
6343 asking the target for the ptid's address space.
6344 * infrun.c (ptid_is_pid): Remove assertion.
6345
6346 2011-04-19 Tom Tromey <tromey@redhat.com>
6347
6348 * windows-tdep.c (windows_xfer_shared_library):
6349 * windows-nat.c (get_module_name, windows_make_so):
6350 * v850-tdep.c (v850_handle_pushm):
6351 * utils.c (null_cleanup, gdb_realpath):
6352 * ui-out.c (get_next_header):
6353 * tracepoint.c (clear_traceframe_info):
6354 * symtab.c (lookup_symtab):
6355 * serial.h (struct serial_ops):
6356 * mipsread.c (read_alphacoff_dynamic_symtab):
6357 * infcmd.c (print_return_value):
6358 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6359 * f-exp.y (parse_number):
6360 * exceptions.c (catch_exceptions):
6361 * dummy-frame.c (dummy_frame_this_id):
6362 * defs.h (struct cleanup):
6363 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6364 * arm-tdep.c (arm_push_dummy_call):
6365 * amd64-tdep.h (amd64_collect_xsave):
6366 * amd64-tdep.c (amd64_collect_xsave):
6367 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6368 * README (typing): Remove duplicate words.
6369 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6370 * infrun.c (siginfo_value_read): Fix typo.
6371 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6372 * top.c (source_line_number): Add comma.
6373
6374 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6375
6376 * thread.c (any_live_thread_of_process): Prioritize threads
6377 that are not executing.
6378 * gdbthread.h (any_live_thread_of_process): Update comment
6379 as per above change.
6380
6381 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6382
6383 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6384 (scan_xcoff_symtab): Likewise.
6385
6386 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6387
6388 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6389 inside if clause.
6390
6391 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6392 Pedro Alves <pedro@codesourcery.com>
6393
6394 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6395 variables to simplify code and avoid == operator at end of
6396 line as this is against GNU coding standards.
6397
6398 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6399
6400 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6401 lm_name to name_lm to avoid conflict with lm_name function.
6402
6403 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6404
6405 ARI fixes: Use only lowercase function name for static functions.
6406 * nto-tdep.c (LM_ADDR): Rename to...
6407 (lm_addr): New function name.
6408 (nto_relocate_section_addresses): Adapt to change above.
6409 * solib-sunos.c (LM_ADDR): Rename to...
6410 (lm_addr): New function name.
6411 (LM_NEXT): Rename to...
6412 (lm_next): New function name.
6413 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6414 function name changes above.
6415 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6416 (lm_addr_from_link_map): New function name.
6417 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6418 (has_lm_dynamic_from_link_map): New function name.
6419 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6420 (lm_dynamic_from_link_map): New function name.
6421 (LM_ADDR_CHECK): Rename to...
6422 (lm_addr_check): New function name.
6423 (LM_NEXT): Rename to...
6424 (lm_next): New function name.
6425 (LM_PREV): Rename to...
6426 (lm_prev): New function name.
6427 (LM_NAME): Rename to...
6428 (lm_name): New function name.
6429 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6430 (ignore_first_link_map_entry): New function name.
6431 (svr4_keep_data_in_core): Adapt to function name changes above.
6432 (svr4_current_sos): Likewise.
6433 (enable_break): Likewise.
6434 (svr4_relocate_section_addresses): Likewise.
6435
6436 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6437
6438 ARI cleanup.
6439 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6440 sprintf. Simplify code and avoid loosing memory.
6441 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6442 (call0_frame_cache): Remove && operator from end of line.
6443
6444 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6445
6446 Fix libraries displacement if they change whether they were prelinked.
6447 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6448 does not match. Comment why.
6449
6450 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6451
6452 * corelow.c: Include wrapper.h.
6453 (core_open): Call now gdb_target_find_new_threads.
6454 * wrapper.c: Include target.h.
6455 (gdb_target_find_new_threads): New.
6456 * wrapper.h (gdb_target_find_new_threads): New declaration.
6457
6458 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6459
6460 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6461 even if !TARGET_HAS_EXECUTION.
6462
6463 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6464
6465 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6466 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6467 bfd_get_synthetic_symtab.
6468 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6469 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6470 parameter parent, remove the call to add_separate_debug_objfile.
6471 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6472 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6473 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6474 parent, new comment for it, call add_separate_debug_objfile for it.
6475 (symbol_file_add_separate): Pass objfile as the parameter parent,
6476 remove the call to add_separate_debug_objfile.
6477 (symbol_file_add_from_bfd): New parameter parent, pass it.
6478 (symbol_file_add): Pass NULL to the new parameter parent.
6479 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6480
6481 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6482
6483 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6484 BSF_SYNTHETIC.
6485
6486 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6487
6488 Fix Python access to inlined frames.
6489 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6490 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6491
6492 2011-04-15 Tom Tromey <tromey@redhat.com>
6493
6494 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6495
6496 2011-04-15 Gary Benson <gbenson@redhat.com>
6497
6498 * MAINTAINERS: Add myself to write-after-approval section.
6499
6500 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6501
6502 * remote-sim.c (sim_command_completer): New function.
6503 (_initialize_remote_sim): Set completer to sim_command_completer.
6504
6505 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6506
6507 * breakpoint.c (print_exception_catchpoint): Rename to ...
6508 (print_it_exception_catchpoint): ... this.
6509 (gnu_v3_exception_catchpoint_ops): Update with new name
6510 for print_it_exception_catchpoint.
6511
6512 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6513
6514 * MAINTAINERS: Add myself for write after approval privileges.
6515
6516 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6517
6518 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6519
6520 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6521
6522 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6523
6524 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6525
6526 * breakpoint.c (save_breakpoints): Verify whether
6527 breakpoint_ops.print_recreate is defined before calling it.
6528
6529 2011-04-11 Gary Benson <gbenson@redhat.com>
6530
6531 Fix failure with --enable-maintainer-mode.
6532 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6533
6534 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6535
6536 Code cleanup.
6537 * symtab.c (search_symbols): Reorder the KIND description in the
6538 function comment. Remove the unused 4th element of types, types2,
6539 types3 and types4. New gdb_assert on KIND.
6540 (symtab_symbol_info): Remove the unused 4th element of classnames.
6541 New gdb_assert on KIND.
6542 * symtab.h (enum search_domain): New warning in the enum comment.
6543 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6544 TYPES_DOMAIN.
6545
6546 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6547
6548 Fix crash of gdb save-index on a STABS file.
6549 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6550 PSYMTABS_ADDRMAP.
6551
6552 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6553
6554 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6555 * dwarf2read.c: Include ctype.h.
6556 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6557 functions.
6558 (dwarf2_add_field): Fix new_field->accessibility by calling
6559 dwarf2_default_access_attribute. Restructure setting accessibility
6560 vs. virtuality.
6561 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6562 is_private and is_protected by calling
6563 dwarf2_default_access_attribute.
6564
6565 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6566
6567 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6568 to the initialization.
6569
6570 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6571
6572 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6573 initalization.
6574
6575 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6576
6577 Remove support for old Cygwin 1.5 versions.
6578 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6579 function on old Cygwin version.
6580 * windows-nat.c: Remove cygwin version check and always define
6581 __USEWIDE for Cygwin compilation.
6582
6583 2011-04-07 Yao Qi <yao@codesourcery.com>
6584
6585 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6586 and TO.
6587 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6588 (arm_copy_svc): Remove parameters INSN and TO.
6589 (decode_svc_copro): Update caller.
6590 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6591 from function pointer `copy_svc_os'.
6592
6593 2011-04-07 Yao Qi <yao@codesourcery.com>
6594
6595 * arm-tdep.c (cleanup_branch): Set a correct return address in
6596 LR for ARM and Thumb.
6597
6598 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6599
6600 Code cleanup.
6601 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6602 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6603 in the function comment, a new note on values compatibility.
6604 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6605 * symtab.h (SYMBOL_HASH_NEXT): New.
6606
6607 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6608
6609 * ppc-linux-nat.c (check_condition): Add len output parameter.
6610 Set it based on the memory region referenced in the condition
6611 expression. Update all callers.
6612
6613 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6614
6615 Fix crash regression on systems featuring .gdb_index.
6616 * objfiles.c (free_objfile): Move the
6617 forget_cached_source_info_for_objfile call earlier. Comment it.
6618 Extend the comment for objfile_free_data.
6619
6620 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6621
6622 Fix regression of displaying the debug format.
6623 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6624 subfile.
6625
6626 2011-04-04 Tom Tromey <tromey@redhat.com>
6627
6628 * cli/cli-interp.c (struct captured_execute_command_args):
6629 Remove.
6630 (do_captured_execute_command): Remove.
6631 (safe_execute_command): Use TRY_CATCH.
6632 * cli/cli-script.c (struct wrapped_read_command_file_args):
6633 Remove.
6634 (wrapped_read_command_file): Remove.
6635 (script_from_file): Use TRY_CATCH.
6636 * exceptions.c (catch_exception): Remove.
6637 * exceptions.h (catch_exception): Remove.
6638 (deprecated_throw_reason): Update comment.
6639 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6640 argument to 'context'.
6641 (mi_execute_command): Use TRY_CATCH.
6642 * remote.c (struct start_remote_args): Remove.
6643 (remote_start_remote): Update; change arguments.
6644 (remote_open_1): Use TRY_CATCH.
6645
6646 2011-04-04 Tom Tromey <tromey@redhat.com>
6647
6648 * tracepoint.c (scope_info): Update.
6649 * symtab.c (decode_line_spec): Update.
6650 * python/python.c (gdbpy_decode_line): Update.
6651 * linespec.h (decode_line_1): Update.
6652 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6653 (decode_compound, find_method, symtab_from_filename)
6654 (decode_variable): Likewise.
6655 * cli/cli-cmds.c (edit_command): Update.
6656 (list_command): Update.
6657 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6658 argument.
6659 (create_breakpoint): Update.
6660 (until_break_command): Update.
6661 (addr_string_to_sals): Update.
6662 (decode_line_spec_1): Update.
6663
6664 2011-04-04 Tom Tromey <tromey@redhat.com>
6665
6666 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6667 (do_captured_parse_breakpoint): Remove.
6668 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6669 Use TRY_CATCH directly.
6670
6671 2011-04-04 Tom Tromey <tromey@redhat.com>
6672
6673 * symtab.h (free_symtab): Remove.
6674 (forget_cached_source_info_for_objfile): Declare.
6675 * symmisc.c (free_symtab): Remove.
6676 * source.c (forget_cached_source_info_for_objfile): New function.
6677 (forget_cached_source_info): Use it.
6678 * objfiles.c (free_objfile): Simplify check before calling
6679 clear_current_source_symtab_and_line. Call
6680 forget_cached_source_info_for_objfile.
6681
6682 2011-04-04 Tom Tromey <tromey@redhat.com>
6683
6684 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6685 (new_symtab): Don't set `free_code' on symtab.
6686 (new_linetable): Properly handle size==0.
6687 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6688 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6689 free_func.
6690 * jv-lang.c (struct jv_per_objfile_data): New.
6691 (jv_per_objfile_free): Free the data.
6692 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6693 (get_java_class_symtab): Set the `dict' field on the
6694 jv_per_objfile_data.
6695 (free_class_block): Remove.
6696 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6697 the symtab.
6698
6699 2011-04-04 Tom Tromey <tromey@redhat.com>
6700
6701 * symfile.c (reread_symbols): Update.
6702 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6703 field.
6704 * objfiles.c (allocate_objfile): Update.
6705 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6706 declare.
6707 * cp-namespace.c (lookup_symbol_file): Don't call
6708 lookup_possible_namespace_symbol.
6709 (initialize_namespace_symtab, get_possible_namespace_block)
6710 (free_namespace_block, cp_check_possible_namespace_symbols)
6711 (check_possible_namespace_symbols_loop)
6712 (check_one_possible_namespace_symbol)
6713 (lookup_possible_namespace_symbol): Remove.
6714 (maintenance_cplus_namespace): Replace with notice.
6715 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6716
6717 2011-04-04 Tom Tromey <tromey@redhat.com>
6718
6719 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6720 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6721 * symmisc.c (free_symtab): Don't free debugformat.
6722 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6723 (record_debugformat, record_producer): Document.
6724 * buildsym.c (end_symtab): Don't save debugformat and producer
6725 names on obstack.
6726 (end_symtab): Don't free debugformat and producer fields.
6727 (record_debugformat): Don't call xstrdup.
6728 (record_producer): Likewise.
6729
6730 2011-04-04 Tom Tromey <tromey@redhat.com>
6731
6732 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6733 (source_line_charpos, source_charpos_line): Remove.
6734
6735 2011-04-04 Tom Tromey <tromey@redhat.com>
6736
6737 * symtab.h (domain_enum): Split in two...
6738 (enum search_domain): New.
6739 (search_symbols): Update.
6740 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6741 redundant declarations.
6742 (search_symbols): Change 'kind' argument to search_domain.
6743 Update.
6744 (print_symbol_info): Likewise.
6745 (symtab_symbol_info): Likewise.
6746 * symfile.h (struct quick_symbol_functions)
6747 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6748 <expand_symtabs_matching>: Likewise.
6749 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6750 (expand_symtabs_matching_via_partial): Update.
6751 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6752 (dw2_expand_symtabs_for_function): Update.
6753 * block.h: Moved anonymous enum...
6754 * defs.h (enum block_enum): ... here. Now named.
6755
6756 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6757
6758 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6759 * version.in: Bump version to 7.3.50.20110403-cvs.
6760
6761 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6762
6763 * NEWS: Create a new section for the next release branch.
6764 Rename the section of the current branch, now that it has
6765 been cut.
6766
6767 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6768
6769 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6770 for "fpscr" in target description.
6771
6772 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6773
6774 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6775 initialize it. Delay HASH initialization. Strip the part after open
6776 parenthesis for languages with qualifiers. Call do_cleanups.
6777
6778 2011-04-01 Tom Tromey <tromey@redhat.com>
6779
6780 * utils.c (report_command_stats): Don't print `-' for negative
6781 number.
6782
6783 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6784
6785 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6786 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6787 typedefs.
6788
6789 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6790
6791 * breakpoint.h (bpdisp_text): Add declaration.
6792 * breakpoint.c (bpdisp_text): Make non-static.
6793 * ada-lang.c: #include "mi/mi-common.h".
6794 (print_it_exception): Rewrite to improve GDB/MI output.
6795
6796 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6797
6798 * arm-tdep.h (struct address_space): Add forward declaration.
6799
6800 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6801
6802 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6803 * arm-tdep.c (arm_override_mode): New global.
6804 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6805 execution mode heuristics.
6806 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6807 second single-step breakpoint if needed, using
6808 arm_insert_single_step_breakpoint.
6809 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6810 ARM execution mode, do not call thumb_get_next_pc_raw.
6811 (arm_get_next_pc): Encode execution mode in return value. Call
6812 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6813 (arm_insert_single_step_breakpoint): New function.
6814 (arm_software_single_step): Call it.
6815 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6816 argument to return execution mode of sigreturn target.
6817 (arm_linux_syscall_next_pc): Use it.
6818 (arm_linux_copy_svc): Update call.
6819 (arm_linux_software_single_step): Call
6820 arm_insert_single_step_breakpoint.
6821
6822 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6823
6824 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6825 the comment.
6826
6827 2011-03-31 Tom Tromey <tromey@redhat.com>
6828
6829 * varobj.c (update_dynamic_varobj_children): Properly handle
6830 errors from iterator.
6831
6832 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6833
6834 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6835 struct linkage name twice.
6836
6837 2011-03-31 Tom Tromey <tromey@redhat.com>
6838
6839 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6840 missing ">" to message.
6841
6842 2011-03-31 Tom Tromey <tromey@redhat.com>
6843
6844 * varobj.c (instantiate_pretty_printer): Remove duplicate
6845 'return'.
6846
6847 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6848
6849 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6850 if neither saved value nor register available (e.g. signal frame).
6851
6852 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6853
6854 * macroexp.c (expand): Avoid uninitialized variable
6855 compiler warning.
6856
6857 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6858
6859 * breakpoint.c (break_range_command): Fix typo in comment.
6860
6861 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6862 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6863
6864 Implement support for PowerPC BookE ranged breakpoints.
6865 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6866 * breakpoint.h (struct bp_target_info) <length>: New member
6867 variable.
6868 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6869 instead of struct breakpoint as argument, and also add ASPACE
6870 and BP_ADDR arguments. Update all callers.
6871 (struct breakpoint_ops) <print_one_detail>: New method.
6872 (struct breakpoint) <addr_string_range_end>: New member variable.
6873 * breakpoint.c (breakpoint_location_address_match): Add function
6874 prototype.
6875 (insert_bp_location): Set bl->target_info.length.
6876 (breakpoint_here_p): Call breakpoint_location_address_match.
6877 (moribund_breakpoint_here_p): Likewise.
6878 (regular_breakpoint_inserted_here_p): Likewise.
6879 (breakpoint_thread_match): Likewise.
6880 (bpstat_stop_status): Likewise.
6881 (bpstat_check_location): Move call to
6882 breakpoint_ops.breakpoint_hit to the top.
6883 (print_one_breakpoint_location): Call
6884 breakpoint_ops.print_one_detail if available.
6885 (breakpoint_address_match_range): New function.
6886 (breakpoint_location_address_match): Likewise.
6887 (breakpoint_locations_match): Compare the length field of the
6888 locations too.
6889 (hw_breakpoint_used_count): Count resources used by all locations
6890 in a breakpoint, and use breakpoint_ops.resources_needed if
6891 available.
6892 (breakpoint_hit_ranged_breakpoint): New function.
6893 (resources_needed_ranged_breakpoint): Likewise.
6894 (print_it_ranged_breakpoint): Likewise.
6895 (print_one_ranged_breakpoint): Likewise.
6896 (print_one_detail_ranged_breakpoint): Likewise.
6897 (print_mention_ranged_breakpoint): Likewise.
6898 (print_recreate_ranged_breakpoint): Likewise.
6899 (ranged_breakpoint_ops): New structure.
6900 (find_breakpoint_range_end): New function.
6901 (break_range_command): Likewise.
6902 (delete_breakpoint): Free addr_string_range_end.
6903 (update_breakpoint_locations): Add SALS_END argument. Update
6904 all callers. Calculate breakpoint length if a non-zero SALS_END
6905 is given. Call breakpoint_locations_match instead of
6906 breakpoint_address_match.
6907 (reset_breakpoint): Find SaL of the end of the range if B is a
6908 ranged breakpoint.
6909 (_initialize_breakpoint): Register break-range command.
6910 * defs.h (print_core_address): Add function prototype.
6911 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6912 function.
6913 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6914 (ppc_linux_remove_hw_breakpoint): Likewise.
6915 (_initialize_ppc_linux_nat): Initialize
6916 to_ranged_break_num_registers.
6917 * target.c (update_current_target): Add comment about
6918 to_ranged_break_num_registers.
6919 (target_ranged_break_num_registers): New function.
6920 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6921 New method.
6922 (target_ranged_break_num_registers): Add function prototype.
6923 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6924 * utils.c (print_core_address): ... here.
6925
6926 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6927
6928 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6929 variable compiler warning.
6930
6931 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6932
6933 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6934 code from here ...
6935 (re_set_breakpoint): ... to here ...
6936 (addr_string_to_sals): ... and here.
6937
6938 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6939
6940 * Makefile.in (SFILES): Add missing C sources.
6941 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6942 Add missing headers.
6943
6944 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6945
6946 * .gitignore: New file.
6947
6948 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6949
6950 * NEWS: Mention new cfi device simulation.
6951
6952 2011-03-29 Tom Tromey <tromey@redhat.com>
6953
6954 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6955 otherwise anonymous types.
6956 (dwarf2_name): Likewise.
6957 * valops.c (value_struct_elt_for_reference): Refine artificial
6958 type logic. Call error if j==-1.
6959
6960 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6961
6962 Fix false GCC warning.
6963 * infcall.c (find_function_addr): Initialize funaddr.
6964
6965 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6966
6967 Fix mingw compilation with --enable-targets=all.
6968 * remote-mips.c (gdb_usleep.h): Include header.
6969 (mips_enter_debug): Use gdb_usleep instead of sleep.
6970
6971 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6972
6973 Support resolution of STT_GNU_IFUNC via breakpoints.
6974 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6975 bp_gnu_ifunc_resolver_return.
6976 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6977 the loop. Support bp_gnu_ifunc_resolver and
6978 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6979 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6980 breakpoints.
6981 (bptype_string, print_one_breakpoint_location): Support
6982 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6983 (user_settable_breakpoint): Return true also for
6984 bp_gnu_ifunc_resolver.
6985 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6986 bp_gnu_ifunc_resolver_return.
6987 (set_breakpoint_location_function): New parameter explicit_loc,
6988 describe it. Call find_pc_partial_function_gnu_ifunc with new
6989 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6990 EXPLICIT_LOC is not set.
6991 (set_raw_breakpoint): Set EXPLICIT_LOC for
6992 set_breakpoint_location_function.
6993 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6994 set_breakpoint_location_function.
6995 (mention): Support bp_gnu_ifunc_resolver and
6996 bp_gnu_ifunc_resolver_return.
6997 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6998 set_breakpoint_location_function.
6999 (update_breakpoint_locations): Remove static.
7000 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7001 bp_gnu_ifunc_resolver_return.
7002 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7003 bp_gnu_ifunc_resolver_return.
7004 (update_breakpoint_locations): New declaration.
7005 * elfread.c: Include gdbthread.h and regcache.h.
7006 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7007 functions.
7008 (elf_gnu_ifunc_fns): Install them.
7009 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7010 (stub_gnu_ifunc_resolver_return_stop): New functions.
7011 (stub_gnu_ifunc_fns): Install them.
7012 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7013 and gnu_ifunc_resolver_return_stop.
7014 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7015
7016 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7017
7018 STT_GNU_IFUNC reader implementation.
7019 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7020 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7021 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7022 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7023 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7024 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7025 (elf_gnu_ifunc_resolve_addr): New.
7026 (elf_symfile_read): Call elf_rel_plt_read.
7027 (elf_gnu_ifunc_fns): New.
7028 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7029 Install elf_gnu_ifunc_fns.
7030 * infcall.c (find_function_return_type): New function.
7031 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7032 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7033 (stub_gnu_ifunc_resolve_name): New functions.
7034 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7035 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7036 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7037
7038 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7039
7040 Code cleanup for later STT_GNU_IFUNC support.
7041 * infcall.c (find_function_addr): Remove variable code, use explicit
7042 dereferences for it. Move VALUE_TYPE initialization later.
7043
7044 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7045
7046 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7047 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7048 (clear_pc_function_cache): Clear it.
7049 (find_pc_partial_function): Rename to ...
7050 (find_pc_partial_function_gnu_ifunc): ... this function. New
7051 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7052 (find_pc_partial_function): New wrapper for this function.
7053 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7054
7055 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7056
7057 GDB internal type support for STT_GNU_IFUNC.
7058 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7059 (elf_symtab_read): Set mst_text_gnu_ifunc for
7060 BSF_GNU_INDIRECT_FUNCTION.
7061 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7062 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7063 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7064 nodebug_got_plt_symbol.
7065 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7066 (TYPE_GNU_IFUNC): New.
7067 (struct main_type): New field flag_gnu_ifunc.
7068 (struct builtin_type): New field builtin_func_func.
7069 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7070 nodebug_got_plt_symbol.
7071 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7072 (in_gnu_ifunc_stub): New.
7073 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7074 mst_text_gnu_ifunc.
7075 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7076 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7077 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7078 in_gnu_ifunc_stub.
7079 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7080 * symtab.c (search_symbols): Likewise.
7081 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7082 and mst_slot_got_plt.
7083 (in_gnu_ifunc_stub): New declaration.
7084
7085 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7086
7087 Support a ring of related breakpoints.
7088 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7089 other functions, add gdb_assert.
7090 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7091 watchpoint_del_at_next_stop.
7092 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7093 (bpstat_stop_status): Handle ring in related_breakpoint.
7094 (set_raw_breakpoint_without_location): Initialize ring in
7095 related_breakpoint.
7096 (delete_breakpoint): Handle ring in related_breakpoint, use
7097 watchpoint_del_at_next_stop.
7098 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7099
7100 2011-03-28 Tom Tromey <tromey@redhat.com>
7101
7102 PR symtab/12441:
7103 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7104 with `language_minimal'.
7105
7106 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7107
7108 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7109 instead of checking for STT_ARM_TFUNC symbol type.
7110
7111 2011-03-25 Tom Tromey <tromey@redhat.com>
7112
7113 * linespec.c (symbol_found): Restore line-based result for
7114 non-LOC_LABEL symbols.
7115
7116 2011-03-25 Kai Tietz <ktietz@redhat.com>
7117
7118 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7119 instead of strcmp for comparison.
7120 (tui_source_is_displayed): Likewise.
7121 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7122
7123 2011-03-24 Mark Wielaard <mjw@redhat.com>
7124
7125 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7126 complaint.
7127 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7128 (find_partial_die_in_comp_unit): Likewise in comment.
7129 (read_attribute_value): Likewise.
7130 (lookup_die_type): Likewise.
7131 (dwarf_form_name): Likewise.
7132 (dump_die_shallow): Likewise.
7133 (follow_die_ref_or_sig): Likewise.
7134
7135 2011-03-24 Tom Tromey <tromey@redhat.com>
7136
7137 PR breakpoints/11816:
7138 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7139 (decode_compound): Update.
7140 (find_function_symbol): New function.
7141 (decode_dollar): Update.
7142 (decode_label): Add 'function_symbol' parameter. Handle
7143 function-relative labels.
7144 (decode_variable): Update.
7145 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7146 not its line. Set `special_display' and canonical name for
7147 labels.
7148
7149 2011-03-24 Tom Tromey <tromey@redhat.com>
7150
7151 * linespec.h (struct linespec_result) <special_display>: New
7152 field.
7153 * breakpoint.h (struct breakpoint) <display_canonical>: New
7154 field.
7155 * breakpoint.c (print_breakpoint_location): Respect
7156 display_canonical.
7157 (create_breakpoint_sal): Add 'display_canonical' parameter.
7158 (create_breakpoints_sal): Update.
7159 (create_breakpoint): Update.
7160
7161 2011-03-24 Tom Tromey <tromey@redhat.com>
7162
7163 * symtab.c (decode_line_spec): Update.
7164 * linespec.c (build_canonical_line_spec): Change type of
7165 'canonical'.
7166 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7167 (find_method, decode_all_digits, decode_dollar, decode_label)
7168 (symbol_found): Likewise.
7169 (init_linespec_result): New function.
7170 * breakpoint.c (struct captured_parse_breakpoint_args)
7171 <canonical_p>: New field, replaces addr_string_p.
7172 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7173 'addr_string'.
7174 (parse_breakpoint_sals): Likewise.
7175 (do_captured_parse_breakpoint): Update.
7176 (create_breakpoint): Use struct linespec_result.
7177 (until_break_command): Update.
7178 (breakpoint_re_set_one): Update.
7179 (decode_line_spec_1): Update.
7180 * linespec.h (struct linespec_result): New.
7181 (init_linespec_result): Declare.
7182
7183 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7184
7185 * regcache.c (regcache_raw_read): If the target didn't supply a
7186 given raw register, mark it as unavailable.
7187
7188 2011-03-23 Kai Tietz <ktietz@redhat.com>
7189
7190 * breakpoint.c (clear_command): Use filename_cmp
7191 instead of strcmp for comparison.
7192 * buildsym.c (watch_main_source_file_lossage): Likewise.
7193 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7194 checking just for slash.
7195 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7196 strrchr and filename_cmp instead of strcmp for filenames.
7197 (add_old_header_file): Use filename_cmp
7198 instead of strcmp for comparison.
7199 * exec.c (exec_set_section_address): Likewise.
7200 * macrotab.c (macro_lookup_inclusion): Likewise.
7201 (macro_lookup_inclusion): Likewise.
7202 * elfread.c (_initialize_elfread): Likewise.
7203 (elfstab_offset_sections): Likewise.
7204 (elfstab_offset_sections): Use lbasename instead of
7205 strrchr.
7206 * mdebugread.c (parse_partial_symbols): Likewise.
7207 (arse_partial_symbols): Use filename_(n)cmp instead of
7208 str(n)cmp for comparison.
7209 * minsyms.c (lookup_minimal_symbol): Likewise.
7210 * psymtab.c (read_psymtabs_with_filename): Likewise.
7211 * solib.c (solib_read_symbols): Likewise.
7212 (reload_shared_libraries_1): Likewise.
7213 * symmisc.c (maintenance_print_symbols): Likewise.
7214 * symfile.c (separate_debug_file_exists): Likewise.
7215 (reread_symbols): Likewise.
7216 (find_separate_debug_file_by_debuglink): Likewise.
7217 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7218 * source.c (add_path): Likewise.
7219 * symtab.c (filename_seen): Likewise.
7220 (file_matches): Likewise.
7221 (print_symbol_info): Likewise.
7222 (maybe_add_partial_symtab_filename): Likewise.
7223 (make_source_files_completion_list): Likewise.
7224 * xml-syscall.c (init_sysinfo): Likewise.
7225 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7226 IS_DIR_SEPARATOR for checking for trailing path separator.
7227
7228 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7229
7230 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7231 label abort_expression.
7232 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7233 DWARF_VALUE_OPTIMIZED_OUT.
7234
7235 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7236
7237 Code cleanup.
7238 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7239 to linkage_name. Invert its value. Update the function comment.
7240 (c_type_print_varspec_suffix): Invert it at the caller.
7241 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7242
7243 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7244
7245 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7246 errors when reading the `stop_pc'.
7247 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7248 get_frame_pc.
7249
7250 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7251
7252 * NEWS: Document gdb.Write stream keyword.
7253
7254 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 Revert:
7257 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7258 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7259 (dwarf2_add_field): Fix new_field->accessibility for
7260 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7261
7262 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7263
7264 PR python/12183
7265
7266 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7267 other error classes. Do not print stack trace.
7268
7269 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7270
7271 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7272 (dwarf2_add_field): Fix new_field->accessibility for
7273 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7274
7275 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7276
7277 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7278 encountering a load via a non-SP register.
7279
7280 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7281
7282 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7283 field in returned unwinder.
7284
7285 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7286
7287 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7288
7289 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7290
7291 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7292 of xmalloc.
7293
7294 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7295
7296 * frame.c (frame_unwind_register): Throw an error if unwinding the
7297 register failed.
7298 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7299 an unwind stop reason.
7300 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7301 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7302 UNWIND_UNAVAILABLE>: New.
7303 * inline-frame.c (inline_frame_unwind): Install
7304 default_frame_unwind_stop_reason.
7305 * frame-unwind.c: Include "exceptions.h".
7306 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7307 (default_frame_unwind_stop_reason): New.
7308 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7309 (default_frame_unwind_stop_reason): Declare.
7310 (struct frame_unwind) <stop_reason>: New function pointer.
7311
7312 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7313 * dwarf2-frame.c: Include exceptions.h.
7314 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7315 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7316 computing the CFA. If such an error was thrown, set
7317 unavailable_retaddr.
7318 (dwarf2_frame_unwind_stop_reason): New.
7319 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7320 unavailable.
7321 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7322 (dwarf2_signal_frame_unwind): Ditto.
7323
7324 * amd64-tdep.c: Include "exceptions.h".
7325 (struct amd64_frame_cache): New field "base_p".
7326 (amd64_init_frame_cache): Clear it.
7327 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7328 Avoid reading registers with functions that throw if the register
7329 is not necessary to compute the frame base.
7330 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7331 swallowing NOT_AVAILABLE_ERROR.
7332 (amd64_frame_unwind_stop_reason): New.
7333 (amd64_frame_this_id): Don't build a frame id if the frame base
7334 was unavailable.
7335 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7336 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7337 base_p if the frame base was computable.
7338 (amd64_sigtramp_frame_unwind_stop_reason): New.
7339 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7340 frame base was unavailable.
7341 (amd64_sigtramp_frame_unwind): Install
7342 amd64_sigtramp_frame_unwind_stop_reason.
7343 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7344 base_p if the frame base was computable.
7345 (amd64_epilogue_frame_unwind_stop_reason): New.
7346 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7347 frame base was unavailable.
7348 (amd64_epilogue_frame_unwind): Install
7349 amd64_epilogue_frame_unwind_stop_reason.
7350 * i386-tdep.c: Include "exceptions.h".
7351 (struct i386_frame_cache): New field "base_p".
7352 (i386_init_frame_cache): Clear it.
7353 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7354 Avoid reading registers with functions that throw if the register
7355 is not necessary to compute the frame base.
7356 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7357 swallowing NOT_AVAILABLE_ERROR.
7358 (i386_frame_unwind_stop_reason): New.
7359 (i386_frame_this_id): Don't build a frame id if the frame base was
7360 unavailable.
7361 (i386_frame_prev_register): Handle unavailable SP.
7362 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7363 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7364 base_p if the frame base was computable.
7365 (i386_epilogue_frame_unwind_stop_reason): New.
7366 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7367 base was unavailable.
7368 (i386_epilogue_frame_unwind): Install
7369 i386_epilogue_frame_unwind_stop_reason.
7370 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7371 base_p if the frame base was computable.
7372 (i386_sigtramp_frame_unwind_stop_reason): New.
7373 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7374 base was unavailable.
7375 (i386_sigtramp_frame_unwind): Install
7376 i386_sigtramp_frame_unwind_stop_reason.
7377 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7378 type's size, not the register's.
7379 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7380
7381 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7382 default_frame_unwind_stop_reason.
7383 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7384 (alpha_heuristic_frame_unwind): Ditto.
7385 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7386 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7387 * avr-tdep.c (avr_frame_unwind): Ditto.
7388 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7389 Ditto.
7390 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7391 * frv-tdep.c (frv_frame_unwind): Ditto.
7392 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7393 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7394 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7395 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7396 (hppa_stub_frame_unwind): Ditto.
7397 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7398 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7399 (ia64_libunwind_frame_unwind)
7400 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7401 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7402 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7403 * m32c-tdep.c (m32c_unwind): Ditto.
7404 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7405 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7406 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7407 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7408 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7409 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7410 * mep-tdep.c (mep_frame_unwind): Ditto.
7411 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7412 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7413 (mips_stub_frame_unwind): Ditto.
7414 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7415 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7416 * mt-tdep.c (mt_frame_unwind): Ditto.
7417 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7418 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7419 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7420 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7421 (s390_sigtramp_frame_unwind): Ditto.
7422 * score-tdep.c (score_prologue_unwind): Ditto.
7423 * sh-tdep.c (sh_frame_unwind): Ditto.
7424 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7425 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7426 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7427 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7428 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7429 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7430 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7431 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7432 (sparc64obsd_trapframe_unwind): Ditto.
7433 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7434 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7435 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7436 * v850-tdep.c (v850_frame_unwind): Ditto.
7437 * vax-tdep.c (vax_frame_unwind): Ditto.
7438 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7439 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7440 * xtensa-tdep.c (xtensa_unwind): Ditto.
7441
7442 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7443
7444 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7445 there's always a frame. Use get_frame_pc_if_available instead of
7446 get_frame_pc, and if there's no PC available, don't look up a
7447 symtab.
7448
7449 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7450
7451 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7452 unavailable PC.
7453
7454 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7455
7456 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7457 gracefully.
7458
7459 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7460
7461 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7462 * frame.c (frame_unwind_caller_pc_if_available): New.
7463 * stack.c (frame_info): Handle unavailable PC.
7464
7465 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7466
7467 * frame.c (frame_unwind_pc): Rename to ...
7468 (frame_unwind_pc_if_available): ... this. New `pc' output
7469 parameter. Change return type to int. Gracefully handle
7470 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7471 happened, or 1 otherwise.
7472 (frame_unwind_pc): Reimplement on top of
7473 frame_unwind_pc_if_available.
7474 (get_frame_func): Rename to ...
7475 (get_frame_func_if_available): New `pc' output parameter. Change
7476 return type to int. Gracefully handle the PC not being available.
7477 (get_frame_func): Reimplement on top of
7478 get_frame_func_if_available.
7479 (select_frame): Handle the PC being unavailable.
7480 (get_prev_frame): Handle the PC being unavailable.
7481 (get_frame_pc_if_available): New.
7482 (get_frame_address_in_block_if_available): New.
7483 (find_frame_sal): Handle the frame PC not being available.
7484 * frame.h (get_frame_pc_if_available): Declare.
7485 (get_frame_address_in_block_if_available): Declare.
7486 (get_frame_func_if_available): Declare.
7487 * stack.c (print_frame_info): Handle the PC being unavailable.
7488 (find_frame_funname): Ditto.
7489 (print_frame): Handle the PC being unavailable.
7490 (get_frame_language): Ditto.
7491 * blockframe.c (get_frame_block): Ditto.
7492 * macroscope.c (default_macro_scope): Ditto.
7493 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7494
7495 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7496
7497 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7498 NOT_AVAILABLE_ERROR when evaluating the location expression.
7499
7500 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7501
7502 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7503 returning that the register piece is unavailable/optimized out.
7504 (write_pieced_value): Handle get_frame_register_bytes returning
7505 that the register piece is unavailable/optimized out when doing a
7506 read-modify write of a bitfield.
7507 * findvar.c (value_from_register): Handle get_frame_register_bytes
7508 returning that the register piece is unavailable/optimized out.
7509 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7510 and `unavailablep'. Throw error on bad debug info. Use
7511 frame_register instead of frame_register_read, to fill in the new
7512 arguments.
7513 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7514 and `unavailablep'.
7515 * valops.c: (value_assign): Adjust, and handle
7516 get_frame_register_bytes failing.
7517 * spu-tdep.c: Include exceptions.h.
7518 (spu_software_single_step): Adjust, and handle
7519 get_frame_register_bytes failing.
7520 (spu_get_longjmp_target): Ditto.
7521 * gdbarch.sh (register_to_value): Change to return int. New
7522 parameters `optimizedp' and `unavailablep'.
7523 * gdbarch.h, gdbarch.c: Regenerate.
7524 * i386-tdep.c (i386_register_to_value): Adjust to new
7525 gdbarch_register_to_value interface.
7526 * i387-tdep.c (i387_register_to_value): Ditto.
7527 * i387-tdep.h (i387_register_to_value): Ditto.
7528 * alpha-tdep.c (alpha_register_to_value): Ditto.
7529 * ia64-tdep.c (ia64_register_to_value): Ditto.
7530 * m68k-tdep.c (m68k_register_to_value): Ditto.
7531 * mips-tdep.c (mips_register_to_value): Ditto.
7532 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7533
7534 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7535
7536 * findvar.c (value_of_register): Mark the value as unavailable, if
7537 the register is unavailable.
7538 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7539 (frame_register): New `unavailablep' parameter.
7540 (frame_register_read): Update comment.
7541 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7542 Set it if the register is unavailable. If the register is
7543 unavailable, clear the output buffer.
7544 (frame_register): New `unavailablep' parameter. Pass it down.
7545 (frame_unwind_register): Adjust.
7546 (put_frame_register): Adjust.
7547 (frame_register_read): Adjust. Also return false if the register
7548 is not available.
7549 (frame_register_unwind_location): Adjust.
7550 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7551 is unavailable, mark the value accordingly.
7552 * stack.c (frame_info): Handle unavailable registers.
7553
7554 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7555
7556 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7557 simplify, using regcache_cooked_read.
7558
7559 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7560
7561 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7562 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7563 (regcache_raw_read_unsigned, regcache_raw_read_part)
7564 (regcache_cooked_read, regcache_cooked_read_signed)
7565 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7566 (regcache_cooked_read_ftype): Change return to enum
7567 register_status.
7568 * regcache.c: Include exceptions.h
7569 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7570 (do_cooked_read): Change return to enum register_status. Always
7571 forward to regcache_cooked_read.
7572 (regcache_raw_read): Change return to enum register_status. If
7573 the register is not REG_VALID, memset the buffer. Return the
7574 register's status.
7575 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7576 return the register's status.
7577 (regcache_raw_read_unsigned): Ditto.
7578 (regcache_cooked_read): Change return to enum register_status.
7579 Assert that with read-only regcaches, the register's status must
7580 be known. If the regcache is read-only, and the register is not
7581 REG_VALID, memset the buffer. Return the register's status.
7582 (regcache_cooked_read_signed): Change return to enum
7583 register_status. Handle non-REG_VALID registers and return the
7584 register's status.
7585 (regcache_cooked_read_unsigned): Change return to enum
7586 register_status. Handle non-REG_VALID registers and return the
7587 register's status.
7588 (regcache_xfer_part, regcache_raw_read_part)
7589 (regcache_cooked_read_part): Change return to enum
7590 register_status. Return the register's status.
7591 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7592 unavailable.
7593 (regcache_dump): Handle unavailable cooked registers.
7594 * frame.c (do_frame_register_read): Adjust interface to match
7595 regcache_cooked_read_ftype.
7596 * gdbarch.sh (pseudo_register_read): Change return to enum
7597 register_status.
7598 * gdbarch.h, gdbarch.c: Regenerate.
7599
7600 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7601 register_status.
7602 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7603 register_status. If reading a raw register indicates the raw
7604 register is not valid, return the raw register's status,
7605 otherwise, return REG_VALID.
7606 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7607 register_status. Handle non-REG_VALID raw registers and return
7608 the register's status.
7609 * arm-tdep.c (arm_neon_quad_read)
7610 (arm_pseudo_read): Change return to enum register_status. Handle
7611 non-REG_VALID raw registers and return the register's status.
7612 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7613 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7614 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7615 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7616 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7617 register_status.
7618 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7619 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7620 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7621 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7622 (m32c_pseudo_register_read): Change return to enum
7623 register_status. Adjust.
7624 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7625 enum register_status. Return the register's status.
7626 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7627 register_status. Return the register's status.
7628 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7629 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7630 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7631 * rs6000-tdep.c (move_ev_register_func): New typedef.
7632 (e500_move_ev_register): Use it. Change return to enum
7633 register_status. Return the register's status.
7634 (do_regcache_raw_read): New function.
7635 (do_regcache_raw_write): New function.
7636 (e500_pseudo_register_read): Change return to enum
7637 register_status. Return the register's status. Use
7638 do_regcache_raw_read.
7639 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7640 (dfp_pseudo_register_read): Change return to enum register_status.
7641 Return the register's status.
7642 (vsx_pseudo_register_read): Ditto.
7643 (efpr_pseudo_register_read): Ditto.
7644 (rs6000_pseudo_register_read): Ditto.
7645 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7646 register_status. Return the register's status.
7647 * sh64-tdep.c (pseudo_register_read_portions): New function.
7648 (sh64_pseudo_register_read): Change return to enum
7649 register_status. Use pseudo_register_read_portions. Return the
7650 register's status.
7651 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7652 register_status. Return the register's status.
7653 * sh-tdep.c (pseudo_register_read_portions): New function.
7654 (sh_pseudo_register_read): Change return to enum register_status.
7655 Use pseudo_register_read_portions. Return the register's status.
7656 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7657 enum register_status. Return the register's status.
7658 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7659 * spu-tdep.c (spu_pseudo_register_read_spu)
7660 (spu_pseudo_register_read): Ditto.
7661 * xtensa-tdep.c (xtensa_register_read_masked)
7662 (xtensa_pseudo_register_read): Ditto.
7663 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7664
7665 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7666
7667 * python/py-value.c (valpy_getitem): Fix formatting of error function
7668 call.
7669
7670 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7671
7672 ARI fixes: Add missing internationalization markups throughout
7673 C source files.
7674 * darwin-nat-info.c: Ditto.
7675 * record.c: Ditto.
7676 * remote.c: Ditto.
7677 * mi/mi-main.c: Ditto.
7678
7679 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7680
7681 ARI fixes: Add missing internationalization markups throughout
7682 yacc files.
7683 * c-exp.y: Ditto.
7684 * cp-name-parser.y: Ditto.
7685 * f-exp.y: Ditto.
7686 * m2-exp.y: Ditto.
7687 * objc-exp.y: Ditto.
7688 * p-exp.y: Ditto.
7689
7690 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7691
7692 ARI fixes: Messages should have no trailing new lines.
7693 * darwin-nat.c (mach_check_error): Remove trailing new line from
7694 warning function call message.
7695 * record.c (bfdcore_read): Idem for error call.
7696
7697 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7698
7699 * common/signals.c (target_signal_from_host): Add _ markup to error
7700 function call message.
7701 (target_signal_to_host): Add _ markup and remove trailing new line
7702 from warning call message.
7703 (target_signal_from_command): Add _ markup to error function call
7704 message.
7705
7706 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7707
7708 PR python/12149
7709
7710 * python/python.c (gdbpy_write): Accept a stream argument and
7711 operate to the appropriate stream.
7712 (gdbpy_flush): Likewise.
7713 (_initialize_python): Add stream constants.
7714 (finish_python_initialization): Add GdbOutputErrorFile class.
7715
7716 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7717
7718 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7719
7720 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7721
7722 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7723 to store_signed_integer. Add debug message when relocating CALL
7724 instructions. Fix formatting of debug message.
7725 * i386-tdep.c (i386_relocate_instruction): Ditto.
7726
7727 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7728
7729 * target.h (struct target_ops): Remove to_lookup_symbol field.
7730 (target_lookup_symbol): Delete macro.
7731 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7732 (update_current_target, setup_target_debug): Remove handling
7733 of to_lookup_symbol target_ops field.
7734 * ada-tasks.c (get_known_tasks_addr): Remove use of
7735 target_lookup_symbol.
7736 * coffread.c (coff_symtab_read): Likewise.
7737 * dbxread.c (read_dbx_symtab): Ditto.
7738
7739 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7740
7741 PR gdb/12116:
7742 * configure.ac: Add getthrds declaration check.
7743 * configure, config.in: Regenerate.
7744 * aix-thread.c (getthrds): Declare only if not already declared
7745 in procinfo.h. More declaration out of get_signaled_thread to
7746 global scope.
7747
7748 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7749
7750 * python/py-symtab.c: Populate symtab_object_methods,
7751 sal_object_methods.
7752 (stpy_is_valid): New function.
7753 (salpy_is_valid): Ditto.
7754 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7755 (sympy_is_valid): New function.
7756 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7757 (objfpy_is_valid): New function.
7758 * python/py-inferior.c: Populate inferior_object_methods.
7759 (infpy_is_valid): New function.
7760 * python/py-infthread.c: Populate thread_object_methods.
7761 (thpy_is_valid): New function.
7762 * python/py-block.c: Declare block_object_methods. Populate. Declare
7763 block_iterator_object_methods. Populate.
7764 (blpy_is_valid): New function.
7765 (blpy_iter_is_valid): Ditto.
7766
7767 2011-03-16 Keith Seitz <keiths@redhat.com>
7768
7769 * linespec.c (find_methods): Canonicalize NAME before looking
7770 up the symbol.
7771 (name_end): New function.
7772 (keep_name_info): New function.
7773 (decode_line_1): Use keep_name_info.
7774 (decode_compound): Likewise.
7775 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7776 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7777
7778 PR c++/12273
7779 * linespec.c (locate_first_half): Keep overload information, too.
7780 (decode_compound): Use a string to represent break characters
7781 to escape the loop.
7782 If P points to a break character, do not increment it.
7783 For C++ and Java, keep overload information and relevant keywords.
7784 If we cannot find a symbol, search the minimal symbols.
7785
7786 PR c++/11734
7787 * linespec.c (decode_compound): Rename SAVED_ARG to
7788 THE_REAL_SAVED_ARG.
7789 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7790 single-quotes.
7791 Pass a valid block to lookup_symbol.
7792 (lookup_prefix_sym): Likewise.
7793 (find_method): Construct search name based on SYM_CLASS instead
7794 of SAVED_ARG.
7795 * psymtab.c (lookup_partial_symbol): Add language parameter.
7796 (lookup_symbol_aux_psymtabs): Likewise.
7797 Don't assume that the psymtab we found was the right one. Search
7798 for the desired symbol in the symtab to be certain.
7799 (psymtab_search_name): New function.
7800 (lookup_partial_symbol): Use psymtab_search_name.
7801 Add language parameter.
7802 (read_symtabs_for_function): Add language parameter and pass to
7803 lookup_partial_symbol.
7804 (find_symbol_file_from_partial): Likewise.
7805
7806 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7807
7808 PR gdb/12528
7809 * dwarf2read.c (noop_record_line): New function.
7810 (dwarf_decode_lines): Ignore line tables for GCd functions.
7811
7812 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7813
7814 Fix ARI warnings about new lines at the end of messages, which
7815 are unneeded as there is a new line added at the end of the message
7816 automatically.
7817 * darwin-nat.c (darwin_stop_inferior): Ditto.
7818 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7819 * dfp.c (decimal_to_number): Ditto.
7820 * exec.c (print_section_info): Ditto.
7821 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7822 * osdata.c (get_osdata): Ditto.
7823 * record.c (bfdcore_write): Ditto.
7824 * remote-mips.c (mips_readchar): Ditto.
7825 * remote.c (read_ptid): Ditto.
7826 * ser-mingw.c (ser_windows_raw): Ditto.
7827 * tracepoint.c (add_local_symbols): Ditto.
7828 * windows-nat.c (fake_create_process): Ditto.
7829
7830 2011-03-16 Tom Tromey <tromey@redhat.com>
7831
7832 * tracepoint.c (stop_tracing): Don't declare.
7833 * event-top.c (after_char_processing_hook): Add `(void)'.
7834
7835 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7836
7837 * NEWS: Add Parameter sub-classing description.
7838
7839 2011-03-16 Kai Tietz <ktietz@redhat.com>
7840
7841 * MAINTAINERS: Update my e-mail address.
7842
7843 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7844
7845 * MAINTAINERS: Add myself for write after approval privileges.
7846
7847 2011-03-15 Michael Snyder <msnyder@vmware.com>
7848
7849 * frame.c (find_frame_sal): Assert sym is not null.
7850
7851 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7852
7853 * objc-lang.c (selectors_info): Check strchr for null result.
7854
7855 * stabsread.c (define_symbol): Guard against bad stabstring input.
7856
7857 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7858
7859 Remove trailing spaces and tabulations from pascal language
7860 support sources.
7861 p-exp.y: Ditto.
7862 p-lang.c: Ditto.
7863 p-lang.h: Ditto.
7864 p-valprint.c: Ditto.
7865
7866 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7867
7868 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7869 than LOW. Comment it.
7870 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7871 HIGHPC not strictly higher than LOWPC.
7872
7873 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7874
7875 Fix formatting of function declarations returning a pointer in
7876 previous commit.
7877 * varobj.c (varobj_add_child): Ditto.
7878 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7879 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7880
7881 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7882
7883 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7884 for the "generic" vector ABI used with GCC 4.3 and later.
7885 (ppc64_sysv_abi_return_value): Likewise.
7886
7887 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7888
7889 * infcall.c (call_function_by_hand): Function return value is
7890 always a non_lval, even when using struct_return.
7891
7892 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7893
7894 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7895 (map_display_numbers): New.
7896 (do_delete_display): New.
7897 (undisplay_command): Use map_display_numbers.
7898 (do_enable_disable_display): New.
7899 (enable_disable_display_command): New function.
7900 (enable_display): Delete.
7901 (enable_display_command): New.
7902 (disable_display_command): Reimplement.
7903 (_initialize_printcmd): Adjust "enable display" command to use
7904 `enable_display_command' as callback.
7905
7906 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7907
7908 * NEWS: Add Python breakpoint 'stop' operation.
7909
7910 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7911
7912 * NEWS: Delete duplicate entry. Fix typo.
7913
7914 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7915
7916 Fix ARI warning about function names in first column.
7917 Put prototype declaration on same line as return type.
7918 * objc-exp.y: Ditto.
7919 * p-exp.y: Ditto.
7920 * python/py-stopevent.h: Ditto.
7921 For long function names, split parameters to
7922 allow function name on same line as return type.
7923 * solib-pa64.c: Ditto.
7924 * varobj.c: Ditto.
7925 * varobj.h: Ditto.
7926 For long function declaration, use single line.
7927 * hppa-tdep.h: Ditto.
7928 * inferior.h: Ditto.
7929
7930 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7931
7932 * python/python.h: Declare gdbpy_should_stop and
7933 gdbpy_breakpoint_has_py_cond.
7934 * python/python.c: Add python.h to includes. Remove python.h from
7935 HAVE_PYTHON definition
7936 (gdbpy_should_stop): New dummy function.
7937 (gdbpy_breakpoint_has_py_cond): New dummy function.
7938 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7939 sub-classing capabilities.
7940 (gdbpy_should_stop): New function.
7941 (gdbpy_breakpoint_has_py_cond): New function.
7942 (local_setattro): New function.
7943 * breakpoint.c (condition_command): Add check for Python 'stop'
7944 operation.
7945 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7946 operation function as part of stop/continue tests.
7947
7948 2011-03-14 Tom Tromey <tromey@redhat.com>
7949
7950 PR gdb/12576:
7951 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7952 (needs_frame_dwarf_call): Likewise.
7953
7954 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7955
7956 Fix ARI warning about functions without parameters that do not
7957 use (void).
7958 * breakpoint.c (all_tracepoints): Replace () by (void).
7959 * f-exp.y (match_string_literal): Ditto.
7960 (yylex): Ditto.
7961 * m2-exp.y (yylex): Ditto.
7962 * mep-tdep.c (current_me_module): Ditto.
7963 (current_options): Ditto.
7964 (current_cop_data_bus_width): Ditto.
7965 (current_cr_names): Ditto.
7966 (current_cr_is_float): Ditto.
7967 (current_ccr_names): Ditto.
7968 * objc-exp.y (yylex): Ditto.
7969 * p-exp.y (yylex): Ditto.
7970 * remote.c (send_interrupt_sequence): Ditto.
7971 * tracepoint.c (current_trace_status): Ditto.
7972 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7973 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7974
7975 2011-03-11 Michael Snyder <msnyder@vmware.com>
7976
7977 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7978 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7979 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7980 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7981 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7982
7983 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7984 (delete_async_event_handler): Ditto.
7985
7986 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7987
7988 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7989
7990 * top.c (set_verbose): Assert showcmd was found.
7991
7992 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7993
7994 * xtensa-tdep.c (warning_once): Correct style issues.
7995
7996 2011-03-11 Yao Qi <yao@codesourcery.com>
7997
7998 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7999
8000 2011-03-11 Andreas Schwab <schwab@redhat.com>
8001
8002 * common/aclocal.m4: Remove.
8003
8004 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8005
8006 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8007 (xtensa_write_register, xtensa_read_register): Likewise.
8008 (xtensa_hextochar): Removed.
8009 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8010
8011 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8012
8013 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8014 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8015 (xtensa_alloc_frame_cache): Add initialization for new fields.
8016 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8017 (warning_once): New function.
8018 (xtensa_insn_kind): New item c0opc_and.
8019 (call0_classify_opcode): Add the case for AND instruction.
8020 (call0_track_op): Change arguments. New local variable litbase.
8021 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8022 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8023 in the prologue.
8024 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8025 (call0_analyze_prologue): Update the comments. Change arguments.
8026 Add the variety of updates to handle extended prologues, which now can
8027 conduct dynamic stack adjustments.
8028 (call0_frame_cache): Likewise.
8029 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8030 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8031
8032 2011-03-10 Michael Snyder <msnyder@vmware.com>
8033
8034 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8035 (cmd_qtframe): Ditto.
8036 (cmd_qtbuffer): Ditto.
8037 (cmd_bigqtbuffer): Ditto.
8038
8039 2011-03-10 Tom Tromey <tromey@redhat.com>
8040
8041 * tracepoint.c (trace_actions_command): Update.
8042 * thread.c (thread_apply_command): Update.
8043 * reverse.c (delete_bookmark_command): Update.
8044 (bookmarks_info): Update.
8045 * printcmd.c (undisplay_command): Update.
8046 * memattr.c (mem_enable_command): Update.
8047 (mem_disable_command): Update.
8048 (mem_delete_command): Update.
8049 * inferior.c (detach_inferior_command): Update.
8050 (kill_inferior_command): Update.
8051 (remove_inferior_command): Update.
8052 * cli/cli-utils.h (struct get_number_or_range_state): New.
8053 (init_number_or_range): Declare.
8054 (get_number_or_range): Update.
8055 * cli/cli-utils.c (init_number_or_range): New function.
8056 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8057 static variables.
8058 (number_is_in_list): Update.
8059 * breakpoint.h (get_tracepoint_by_number): Update.
8060 * breakpoint.c (map_breakpoint_numbers): Update for change to
8061 get_number_or_range.
8062 (find_location_by_number): Use get_number, not
8063 get_number_or_range.
8064 (trace_pass_set_count): New function.
8065 (trace_pass_command): Update for change to get_number_or_range.
8066 Rework loop logic.
8067 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8068 'state' parameter.
8069
8070 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8071
8072 * python/py-param.c (add_setshow_generic): Add set/show callback
8073 parameters. Register Python object context.
8074 (get_show_value): New function.
8075 (get_set_value): New function.
8076 (call_doc_function): New function.
8077 (get_doc_string): Move behind get_show_value/get_set_value.
8078
8079 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8080
8081 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8082
8083 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8084
8085 * xtensa-tdep.c (xtensa_read_register): Add comment.
8086 (xtensa_write_register): Likewise.
8087 (xtensa_hextochar): Add comment and update to match coding conventions.
8088 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8089 (execute_l32e, execute_s32e, execute_code): Update comments.
8090 (xtensa_exception_handler_t): Update to match coding conventions.
8091 (xtensa_insn_kind): Likewise.
8092
8093 2011-03-09 Michael Snyder <msnyder@vmware.com>
8094
8095 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8096
8097 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8098
8099 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8100
8101 2011-03-09 Tom Tromey <tromey@redhat.com>
8102
8103 * thread.c (restore_selected_frame): Handle frame_level == -1.
8104 (make_cleanup_restore_current_thread): Use
8105 get_selected_frame_if_set.
8106 * frame.h (get_selected_frame_if_set): Declare.
8107 * frame.c (get_selected_frame_if_set): New function.
8108
8109 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8110
8111 * cli/cli-cmds.c (shell_escape): Use lbasename.
8112 * coffread.c (coff_start_symtab): Constify parameter.
8113 (complete_symtab): Constify `name' parameter.
8114 (coff_symtab_read): Constify `filestring' local.
8115 (coff_getfilename): Constify return and `result' local.
8116 Use lbasename.
8117 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8118 * linux-fork.c (info_checkpoints_command): Use lbasename.
8119 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8120 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8121 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8122 * procfs.c (procfs_make_note_section): Use lbasename.
8123 * tui/tui-io.c (printable_part): Constity return and parameter.
8124 Use lbasename.
8125 (print_filename): Constify parameters, and local `s'.
8126 (tui_rl_display_match_list): Constify local `temp'.
8127
8128 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 Revert:
8131 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8132 Fix DWARF-3+ DW_AT_accessibility default assumption.
8133 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8134 cu->header.version >= 3.
8135
8136 2011-03-09 Yao Qi <yao@codesourcery.com>
8137
8138 * common/Makefile.in: Remove.
8139 * common/configure: Remove.
8140 * common/configure.ac: Remove.
8141
8142 2011-03-09 Yao Qi <yao@codesourcery.com>
8143
8144 Revert:
8145 2011-02-11 Yao Qi <yao@codesourcery.com>
8146
8147 * common/Makefile.in: Add copyright header.
8148
8149 2011-02-11 Yao Qi <yao@codesourcery.com>
8150
8151 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8152 libcommon.a.
8153 * configure.ac: Add common to sub dir.
8154 * configure: Regenerate.
8155
8156 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8157
8158 * xtensa-tdep.c (call0_ret): New function.
8159 (xtensa_skip_prologue): Speed up analysis.
8160
8161 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8162
8163 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8164 while executing MI command -data-list-changed-registers.
8165
8166 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8167
8168 * xtensa-tdep.c (xtensa_read_register): New function.
8169 (xtensa_write_register): New function.
8170 (xtensa_find_register_by_name): New function.
8171 (xtensa_windowed_frame_cache): Update comments in type description.
8172 (xtensa_frame_cache): Likewise.
8173 (xtensa_window_interrupt_insn): New function.
8174 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8175 (xtensa_insn_kind): Add new instructions.
8176 (rwx_special_register): New function.
8177 (call0_classify_opcode): Add new instructions to the analysis.
8178 (a0_saved, a7_saved, a11_saved): New variables.
8179 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8180 (execute_l32e): New function.
8181 (execute_s32e): New function.
8182 (xtensa_exception_handler_t): New type.
8183 (execute_code): New function.
8184 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8185 analysis for Xtensa Window Exception handlers.
8186
8187 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8188
8189 * xtensa-tdep.c (TX_PS): New.
8190 (windowing_enabled): Update to count for Call0 ABI.
8191 (xtensa_hextochar): New.
8192 (xtensa_init_reggroups): Make algorithm generic.
8193 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8194
8195 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8196
8197 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8198
8199 2011-03-08 Michael Snyder <msnyder@vmware.com>
8200
8201 * i386-tdep.c (i386_follow_jump): Check return value of
8202 target_read_memory.
8203 (i386_analyze_struct_return): Ditto.
8204 (i386_skip_probe): Ditto.
8205 (i386_match_insn): Ditto.
8206 (i386_skip_noop): Ditto.
8207 (i386_analyze_frame_setup): Ditto.
8208 (i386_analyze_register_saves): Ditto.
8209 (i386_skip_prologue): Ditto.
8210 (i386_skip_main_prologue): Ditto.
8211
8212 * target.c (read_whatever_is_readable): Fix memory leak.
8213
8214 * i386-tdep.c (i386_process_record): Document fall through.
8215
8216 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8217
8218 Fix DWARF-3+ DW_AT_accessibility default assumption.
8219 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8220 cu->header.version >= 3.
8221
8222 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8223
8224 * remote.c (remote_check_symbols): Skip if the target has no
8225 execution.
8226
8227 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8228
8229 * target.c (read_whatever_is_readable): Reformat comment,
8230 with a minor typo fix. Minor reformatting of the code.
8231
8232 2011-03-08 Yao Qi <yao@codesourcery.com>
8233
8234 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8235 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8236 Use cached result instead of calling displaced_in_arm_mode again.
8237 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8238 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8239 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8240 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8241 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8242 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8243 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8244 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8245 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8246 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8247 (arm_catch_kernel_helper_return): Likewise.
8248 * gdb/arm-tdep.h : Update function declarations.
8249
8250 2011-03-07 Michael Snyder <msnyder@vmware.com>
8251
8252 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8253
8254 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8255
8256 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8257
8258 * elfread.c (elf_symtab_read): Stop memory leak.
8259
8260 * main.c (captured_main): Fix memory leak.
8261
8262 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8263
8264 * ada-lang.c (compare_names): Call is_name_suffix with string1
8265 instead of string2.
8266
8267 2011-03-07 Tom Tromey <tromey@redhat.com>
8268
8269 * xcoffread.c (xcoff_sym_fns): Update.
8270 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8271 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8272 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8273 (symbol_file_add_with_addrs_or_offsets): Likewise.
8274 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8275 * somread.c (som_sym_fns): Update.
8276 * psymtab.h (require_partial_symbols): Declare.
8277 * psymtab.c (require_partial_symbols): New function.
8278 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8279 (ALL_OBJFILE_PSYMTABS): Undef.
8280 (ALL_PSYMTABS): Move from psympriv.h.
8281 (lookup_partial_symtab, find_pc_sect_psymtab)
8282 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8283 (find_last_source_symtab_from_partial)
8284 (forget_cached_source_info_partial)
8285 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8286 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8287 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8288 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8289 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8290 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8291 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8292 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8293 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8294 psymtabs.
8295 * mipsread.c (ecoff_sym_fns): Update.
8296 * machoread.c (macho_sym_fns): Update.
8297 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8298 (read_psyms): New function.
8299 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8300 (elf_sym_fns_lazy_psyms): New global.
8301 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8302 dwarf2_build_psymtabs.
8303 * dbxread.c (aout_sym_fns): Update.
8304 * coffread.c (coff_sym_fns): Update.
8305
8306 2011-03-07 Tom Tromey <tromey@redhat.com>
8307
8308 * infrun.c (print_exited_reason): Include inferior id and pid in
8309 message.
8310
8311 2011-03-07 Tom Tromey <tromey@redhat.com>
8312
8313 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8314 parameter.
8315 (target_has_execution_1): Update.
8316 (target_has_execution_current): Declare.
8317 (target_has_execution): Call target_has_execution_current.
8318 (default_child_has_execution): Update.
8319 * target.c (default_child_has_execution): Add 'the_ptid'
8320 parameter.
8321 (target_has_execution_1): Likewise.
8322 (target_has_execution_current): New function.
8323 (add_target): Update.
8324 (init_dummy_target): Update.
8325 * remote-m32r-sdi.c (m32r_has_execution): New function.
8326 (init_m32r_ops): Use it.
8327 * record.c (record_core_has_execution): Now static. Add
8328 'the_ptid' parameter.
8329 * inferior.c (have_live_inferiors): Don't save current thread.
8330 Use target_has_execution_1.
8331
8332 2011-03-07 Yao Qi <yao@codesourcery.com>
8333
8334 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8335
8336 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8337
8338 * elfread.c (elf_symtab_read): Minor reformatting.
8339
8340 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8341
8342 * objc-lang.c (selectors_info): Minor reformatting.
8343
8344 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8345
8346 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8347
8348 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8349 Michael Snyder <msnyder@vmware.com>
8350
8351 * ada-valprint.c (ada_val_print_array): Move the declaration of
8352 "byte_order" and "elttype" inside the block where these variables
8353 are actually used. Remove some special handling for the case
8354 where "elttype" and "eltlen" are null. Replace by a comment
8355 and a couple of assertion checks.
8356
8357 2011-03-05 Michael Snyder <msnyder@vmware.com>
8358
8359 * source.c (add_path): Replace semicolon at end of block.
8360 * dwarf2expr.c (execute_stack_op): Ditto.
8361
8362 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8363
8364 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8365 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8366 (bfin-*-*): Likewise.
8367
8368 2011-03-05 Michael Snyder <msnyder@vmware.com>
8369
8370 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8371 * mdebugread.c (parse_symbol): Ditto.
8372 * parse.c (parse_exp_in_context): Ditto.
8373 * source.c (add_path): Ditto.
8374 * utils.c (gnu_debuglink_crc32): Ditto.
8375 * varobj.c (variable_language): Ditto.
8376
8377 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8378
8379 2011-03-04 Michael Snyder <msnyder@vmware.com>
8380
8381 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8382
8383 * symfile.c (simple_overlay_update): Check for null return value
8384 from lookup_minimal_symbol.
8385
8386 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8387
8388 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8389
8390 * eval.c (parse_and_eval_address_1): Remove function.
8391 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8392 instead of parse_and_eval_address_1.
8393 * value.h (parse_and_eval_address_1): Remove prototype.
8394
8395 2011-03-04 Michael Snyder <msnyder@vmware.com>
8396
8397 * remote.c (putpkt_binary): Document that case stmt falls through.
8398
8399 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8400
8401 * breakpointc (print_it_typical): Move NULL check from here...
8402 (print_bp_stop_message): ... to here.
8403
8404 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8405
8406 * breakpoint.c (enable_command): Use break instead of continue,
8407 and fill in a missing break.
8408 (disable_command): Ditto.
8409
8410 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8411
8412 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8413 (terminal_save_ours): Remove misleading comment.
8414 (inflow_inferior_data_cleanup): Free ttystate.
8415 (inflow_inferior_exit): Likewise.
8416 (copy_terminal_info): Copy ttystate.
8417
8418 * serial.c (serial_copy_tty_state): New function.
8419 * serial.h (serial_copy_tty_state): Add prototype.
8420 (struct serial_ops): Add copy_tty_state callback.
8421 * ser-base.c (ser_base_copy_tty_state): New function.
8422 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8423 * ser-go32.c (dos_copy_tty_state): New function.
8424 (dos_ops): Install copy_tty_state callback.
8425 * ser-mingw.c (_initialize_ser_windows): Likewise.
8426 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8427 * ser-unix.c (hardwire_copy_tty_state): New function.
8428 (_initialize_ser_hardwire): Install it.
8429
8430 2011-03-04 Michael Snyder <msnyder@vmware.com>
8431
8432 * breakpoint.c (create_breakpoint): Add missing break statement.
8433
8434 Reverting this patch:
8435 * infcall.c (call_function_by_hand): Add break statements for lint.
8436
8437 Reverting this patch:
8438 * cli/cli-script.c (script_from_file): Add break for lint.
8439
8440 2011-03-04 Michael Snyder <msnyder@vmware.com>
8441
8442 * solib.c (reload_shared_libraries_1): Close memory leak.
8443
8444 2011-03-03 Tom Tromey <tromey@redhat.com>
8445
8446 PR gdb/12538:
8447 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8448 DW_STRING is NULL.
8449
8450 2011-03-03 Michael Snyder <msnyder@vmware.com>
8451
8452 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8453 fields of struct 'st' to zero.
8454
8455 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8456 sal.pspace before calling set_current_source_symtab_and_line.
8457
8458 2011-03-03 Yao Qi <yao@codesourcery.com>
8459
8460 * Makefile.in (configure-common): Remove. Let Makefile
8461 in dir common to rebuild itself.
8462 (common/Makefile): Likewise.
8463
8464 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8465
8466 * utils.c (parse_escape): Add i18n markup in error message.
8467
8468 2011-03-03 Yao Qi <yao@codesourcery.com>
8469
8470 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8471 ARM_PC_REGNUM.
8472 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8473 (displaced_write_reg, displaced_read_reg): Likewise.
8474 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8475 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8476 (cleanup_branch): Replace magic number 14 and 15 with
8477 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8478
8479 2011-03-02 Michael Snyder <msnyder@vmware.com>
8480
8481 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8482
8483 * cli/cli-script.c (script_from_file): Add break for lint.
8484
8485 * mdebugread.c (parse_partial_symbols): Fix indent.
8486
8487 * target-descriptions.c (tdesc_gdb_type): No need to call
8488 xstrdup, callee saves a copy.
8489
8490 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8491
8492 * infcall.c (call_function_by_hand): Add break statements for lint.
8493
8494 * utils.c (parse_escape): Escape the escape char.
8495
8496 * python/py-inferior.c (build_inferior_list): Error out if
8497 PyList_Append fails.
8498 (gdbpy_inferiors): Error out if build_inferior_list fails.
8499
8500 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8501 a function call.
8502
8503 * record.c (record_restore): Move printf to before error return.
8504
8505 2011-03-02 Yao Qi <yao@codesourcery.com>
8506
8507 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8508 is_thumb and insn_size.
8509 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8510 on both ARM and Thumb mode.
8511 (arm_process_displaced_insn): Set is_thumb and insn_size.
8512 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8513 (arm_displaced_step_fixup): Likewise.
8514
8515 2011-03-01 Michael Snyder <msnyder@vmware.com>
8516
8517 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8518
8519 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8520
8521 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8522
8523 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8524
8525 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8526 with xmalloc.
8527
8528 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8529 which shadows function parameter.
8530
8531 * tracepoint.c (create_tsv_from_upload): Superfluous call
8532 to xstrdup. Callee already calls xstrdup.
8533
8534 * linespec.c (decode_line_1): Remove unnecessary null check.
8535
8536 * tracepoint.c (scope_info): Fix mem leak, remove underused
8537 variable.
8538
8539 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8540 superfluous null check.
8541
8542 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8543 (value_of_builtin_frame_fp_reg): Ditto.
8544
8545 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8546
8547 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8548 be null.
8549
8550 * linespec.c (decode_line_1): Check for null before dereference.
8551
8552 * reverse.c (record_restore): Move null-check to before pointer
8553 dereference.
8554
8555 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8556
8557 * objc-lang.c (selectors_info): Add explanitory comment.
8558 (classes_info): Ditto.
8559
8560 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8561
8562 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8563 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8564 versions of the trampoline. Handle Thumb vs. ARM addresses.
8565 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8566 (arm_linux_init_abi): Install it.
8567 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8568 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8569
8570 2011-02-28 Michael Snyder <msnyder@vmware.com>
8571
8572 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8573 a little bigger, to avoid possibility of an overflow.
8574
8575 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8576 buffers a little bigger, to avoid possibility of an overflow.
8577
8578 * coffread.c (coff_getfilename): Add check to avoid overflow.
8579
8580 * objc-lang.c (selectors_info): Add a small safety margin to
8581 avoid overflow.
8582 (classes_info): Error out on too long REGEXP.
8583
8584 * infrun.c (handle_inferior_event): Remove unused function call.
8585
8586 * fork-child.c (fork_inferior): Remove ifdef'd code and
8587 unused variable.
8588
8589 * linux-thread-db.c (attach_thread): Discard unused value.
8590
8591 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8592
8593 * remote.c (remote_get_noisy_reply): Discard unused value.
8594 (remote_vcont_resume): Ditto.
8595 (remote_stop_ns): Ditto.
8596
8597 * linespec.c (decode_objc): Delete unused variable.
8598
8599 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8600
8601 * dwarf2read.c (add_partial_symbol): Discard unused values.
8602 (read_base_type): Delete unused variable.
8603
8604 * dbxread.c (read_dbx_symtab): Discard unused value.
8605
8606 * eval.c (evaluate_subexp_standard): Delete unused variable,
8607 and discard unused values.
8608
8609 * infcmd.c (_initialize_infcmd): Discard unused values.
8610
8611 * stabsread.c (rs6000_builtin_type): Missing break statement.
8612
8613 * dbxread.c (process_one_symbol): Discard unused value.
8614
8615 * coffread.c (coff_end_symtab): Delete unused variable.
8616
8617 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8618 (dwarf2_add_typedef): Delete unused variable.
8619 (read_namespace): Ditto.
8620 (dwarf_decode_macros): Ditto.
8621
8622 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8623
8624 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8625
8626 * p-valprint.c (pascal_val_print): Discard unused value.
8627
8628 * utils.c (nquery): Call va_end before return;
8629 (yquery): Ditto.
8630 (query): Ditto.
8631
8632 * proc-service.c (ps_plog): Call va_end before return.
8633
8634 2011-02-28 Tom Tromey <tromey@redhat.com>
8635
8636 * python/python.c (gdbpy_value_cst): New global.
8637 (_initialize_python): Initialize it.
8638 * python/python-internal.h (gdbpy_value_cst): Declare.
8639 * python/py-value.c (convert_value_from_python): Use
8640 gdbpy_value_cst.
8641
8642 2011-02-28 Michael Snyder <msnyder@vmware.com>
8643
8644 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8645
8646 * breakpoint.c (catch_syscall_completer): Free malloced list.
8647
8648 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8649
8650 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8651 (lval_func_check_synthetic_pointer): Ditto.
8652 (lval_func_free_closure): Fix use-after-free.
8653
8654 2011-02-28 Tom Tromey <tromey@redhat.com>
8655
8656 * psymtab.c (expand_partial_symbol_tables): Use
8657 ALL_OBJFILE_PSYMTABS.
8658
8659 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8660
8661 * objc-lang.c (selectors_info): Error on too long REGEXP.
8662
8663 2011-02-28 Michael Snyder <msnyder@vmware.com>
8664
8665 * python/py-param.c (set_parameter_value): Add missing
8666 break statement.
8667
8668 * linux-record.c (record_linux_system_call): Add missing
8669 break statement.
8670
8671 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8672
8673 * breakpoint.c (print_one_breakpoint_location): Remove unused
8674 argument PRINT_ADDRESS_BITS. Update callers.
8675 (print_one_breakpoint): Likewise.
8676
8677 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8678
8679 * breakpoint.c (wrap_indent_at_field): New function.
8680 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8681 Allocate ui_stream locally instead of using STB argument.
8682 (print_one_breakpoint_location): Update call.
8683 * ui-out.c (ui_out_query_field): New function.
8684 * ui-out.h (ui_out_query_field): Add prototype.
8685
8686 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8687
8688 From Michael Snyder <msnyder@vmware.com>
8689 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8690
8691 2011-02-27 Michael Snyder <msnyder@vmware.com>
8692
8693 * objc-lang.c (selectors_info): Prevent string overrun.
8694
8695 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8696 error in strncpy.
8697
8698 * symtab.c (rbreak_command): Move variable 'file_name' to
8699 outer scope.
8700
8701 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8702 param with a local variable of the same name.
8703
8704 2011-02-27 Michael Snyder <msnyder@vmware.com>
8705
8706 * value.c (value_from_history_ref): New function.
8707 * value.h (value_from_history_ref): Export.
8708 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8709 to parse value history references.
8710 * cli/cli-utils.h (get_number_trailer): Update comment.
8711
8712 2011-02-27 Michael Snyder <msnyder@vmware.com>
8713
8714 * inferior.c (detach_inferior_command): Use get_number_or_range.
8715 (kill_inferior_command): Ditto.
8716 (remove_inferior_command): Ditto.
8717 (initialize_inferiors): Make command names plural.
8718 Update help strings.
8719
8720 2011-02-27 Michael Snyder <msnyder@vmware.com>
8721
8722 * darwin-nat-info.c: Fix comment typo.
8723 * dwarf2expr.h: Ditto.
8724 * fbsd-nat.c: Ditto.
8725 * fbsd-nat.h: Ditto.
8726 * frame-unwind.h: Ditto.
8727 * frame.h: Ditto.
8728 * hppa-hpux-tdep.c: Ditto.
8729 * i386-linux-nat.c: Ditto.
8730 * linux-nat.c: Ditto.
8731 * nbsd-nat.c: Ditto.
8732 * nbsd-nat.h: Ditto.
8733 * ppc-linux-tdep.c: Ditto.
8734 * serial.c: Ditto.
8735 * ui-file.h: Ditto.
8736 * tui/tui-winsource.c: Ditto.
8737
8738 2011-02-26 Michael Snyder <msnyder@vmware.com>
8739
8740 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8741
8742 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8743
8744 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8745 with a local variable of the same name.
8746
8747 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8748 param with a local variable of the same name.
8749 (i387_supply_xsave): Ditto.
8750
8751 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8752 that it does not shadow a function parameter.
8753
8754 * i386-nat.c (i386_length_and_rw_bits): Document that case
8755 statement is meant to fall through.
8756
8757 * expprint.c (dump_subexp_body_standard): Document that case
8758 statement is meant to fall through.
8759
8760 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8761 dead if statement. Condition can't be false.
8762
8763 2011-02-25 Michael Snyder <msnyder@vmware.com>
8764
8765 * arm-tdep.c: Fix typos in comments.
8766 * bsd-uthread.c: Ditto.
8767 * completer.c: Ditto.
8768 * corelow.c: Ditto.
8769 * cp-namespace.c: Ditto.
8770 * cp-support.c: Ditto.
8771 * cris-tdep.c: Ditto.
8772 * dbxread.c: Ditto.
8773 * dwarf2read.c: Ditto.
8774 * frame.h: Ditto.
8775 * gdbtypes.h: Ditto.
8776 * inferior.h: Ditto.
8777 * mdebugread.c: Ditto.
8778 * mips-tdep.c: Ditto.
8779 * ppc-linux-nat.c: Ditto.
8780 * ppc-linux-tdep.c: Ditto.
8781 * printcmd.c: Ditto.
8782 * sol-thread.c: Ditto.
8783 * solib-frv.c: Ditto.
8784 * solist.h: Ditto.
8785 * sparc64-tdep.c: Ditto.
8786 * spu-tdep.c: Ditto.
8787 * stabsread.c: Ditto.
8788 * symfile.c: Ditto.
8789 * valops.c: Ditto.
8790 * varobj.c: Ditto.
8791 * vax-nat.c: Ditto.
8792 * python/py-block.c: Ditto.
8793 * python/py-symbol.c: Ditto.
8794 * python/py-symtab.c: Ditto.
8795 * python/py-value.c: Ditto.
8796 * tui/tui-win.c: Ditto.
8797
8798 2011-02-25 Michael Snyder <msnyder@vmware.com>
8799
8800 * inferior.c (print_inferior): Accept a string instead of an int
8801 for requested_inferiors, and use get_number_or_range to parse it.
8802 (info_inferiors_command): Pass args string to print_inferior.
8803 (initialize_inferiors): Change help string for info inferiors.
8804 * inferior.h (print_inferior): Export prototype change.
8805
8806 2011-02-25 Tom Tromey <tromey@redhat.com>
8807
8808 * common/ax.def (invalid2): Set to 0x31.
8809
8810 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8811
8812 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8813 L and plongest.
8814 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8815 use L and plongest.
8816 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8817
8818 2011-02-24 Michael Snyder <msnyder@vmware.com>
8819
8820 * Makefile.in (clean): Make clean should remove generated files
8821 observer.h and observer.inc.
8822
8823 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8824
8825 Revert the following patch (not approved yet):
8826 2011-02-21 Hui Zhu <teawater@gmail.com>
8827 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8828 * ax-gdb.c (gen_printf_expr_callback): New function.
8829 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8830 * ax-general.c (ax_memcpy): New function.
8831 (ax_print): Handle "printf".
8832 (ax_reqs): Ditto.
8833 * ax.h (ax_memcpy): Forward declare.
8834 * common/ax.def (invalid2): Removed.
8835 (printf): New entry.
8836 * printcmd.c (printcmd.h): New include.
8837 (string_printf): New function.
8838 (ui_printf): Removed.
8839 (printf_command): Remove static. Call string_printf.
8840 (eval_command): Call string_printf.
8841 * printcmd.h: New file.
8842 * tracepoint.c (validate_actionline,
8843 encode_actions_1): handle printf_command.
8844
8845 2011-02-23 Tom Tromey <tromey@redhat.com>
8846
8847 * ax-general.c (ax_pick): Add missing newline.
8848
8849 2011-02-23 Michael Snyder <msnyder@vmware.com>
8850
8851 * breakpoint.c (breakpoint_1): Change first argument from an int
8852 to a char pointer, so that the function now accepts a list of
8853 breakpoints rather than just one. Use new function
8854 'number_is_in_list' to implement.
8855 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8856 (watchpoints_info): Ditto.
8857 (tracepoints_info): Ditto.
8858 (maintenance_info_breakpoints): Ditto.
8859 (_initialize_breakpoint): Update help strings to reflect the fact
8860 that these functions can now take more than one argument.
8861 * cli/cli-utils.c (number_is_in_list): New function.
8862 * cli/cli-utils.h (number_is_in_list): Export.
8863
8864 2011-02-23 Michael Snyder <msnyder@vmware.com>
8865
8866 * memattr.c (mem_enable_command): Use get_number_or_range.
8867 (mem_disable_command): Ditto.
8868 (mem_delete_command): Ditto.
8869 (_initialize_mem): Tweak usage message to reflect multiple
8870 arguments.
8871
8872 2011-02-22 Doug Evans <dje@google.com>
8873
8874 Add gdb.lookup_global_symbol python function.
8875 * NEWS: Add entry.
8876 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8877 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8878 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8879
8880 2011-02-22 Tom Tromey <tromey@redhat.com>
8881
8882 * language.c (language_class_name_from_physname): Rename
8883 'curr_language' argument to 'lang'; use in body.
8884
8885 2011-02-22 Michael Snyder <msnyder@vmware.com>
8886
8887 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8888
8889 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8890
8891 * frame-unwind.h: Fix comment to mention the this frame, not the
8892 next.
8893
8894 2011-02-22 Tom Tromey <tromey@redhat.com>
8895
8896 * symfile.c (auto_solib_limit): Remove.
8897 * symfile.h (auto_solib_limit): Remove.
8898
8899 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8900
8901 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8902
8903 2011-02-21 Michael Snyder <msnyder@vmware.com>
8904
8905 * gdbthread.h (print_thread_info): Change prototype.
8906 * thread.c (print_thread_info): Accept char* instead of int for
8907 requested_threads argument. Use new function number_is_in_list
8908 to determine which threads to list.
8909 (info_threads_command): Pass char* to print_thread_info.
8910 * cli/cli-utils.c (number_is_in_list): New function.
8911 * cli/cli-utils.h (number_is_in_list): Export.
8912 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8913 print_thread_info.
8914 (print_one_inferior): Ditto.
8915 (mi_cmd_list_thread_groups): Ditto.
8916
8917 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8918
8919 * common/Makefile.in (CFLAGS): New.
8920 (COMPILE): Add $(CFLAGS).
8921
8922 2011-02-21 Tom Tromey <tromey@redhat.com>
8923
8924 * breakpoint.c (catch_syscall_command_1): Fix typo.
8925
8926 2011-02-21 Tom Tromey <tromey@redhat.com>
8927
8928 * reverse.c: Include cli-utils.h.
8929 * printcmd.c: Include cli-utils.h.
8930 (string_printf): Use skip_spaces.
8931 * cli/cli-utils.h: New file.
8932 * cli/cli-utils.c: New file.
8933 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8934 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8935 * breakpoint.h (get_number, get_number_or_range): Move to
8936 cli-utils.h.
8937 * breakpoint.c: Include cli-utils.h.
8938 (get_number_trailer, get_number, get_number_or_range)
8939 (ep_skip_leading_whitespace): Move to cli-utils.c.
8940 (create_breakpoint_sal, find_condition_and_thread)
8941 (decode_static_tracepoint_spec, watch_command_1)
8942 (watch_maybe_just_location, ep_parse_optional_if_clause)
8943 (catch_fork_command_1, catch_exec_command_1)
8944 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8945 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8946 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8947 (HFILES_NO_SRCDIR): Add cli-utils.h.
8948 (cli-utils.o): New target.
8949
8950 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8951
8952 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8953 before calling discard_all_inferiors.
8954
8955 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8956
8957 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8958 (struct builtin_opencl_type): Remove.
8959 (builtin_opencl_type): Change return type to "struct type **".
8960 (lookup_opencl_vector_type): Update caller.
8961 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8962 (build_opencl_types): Install plain array of "struct type *"
8963 instead of "struct builtin_opencl_type".
8964
8965 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8966 Ulrich Weigand <uweigand@de.ibm.com>
8967
8968 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8969 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8970 (struct arm_linux_hwbp_cap): New type.
8971 (arm_linux_get_hwbp_cap): New function.
8972 (arm_linux_get_hw_breakpoint_count): Likewise.
8973 (arm_linux_get_hw_watchpoint_count): Likewise.
8974 (arm_linux_can_use_hw_breakpoint): Likewise.
8975 (arm_hwbp_type): New type.
8976 (arm_hwbp_control_t): Likewise.
8977 (struct arm_linux_hw_breakpoint): Likewise.
8978 (struct arm_linux_thread_points): Likewise.
8979 (arm_threads): New global variable.
8980 (arm_linux_find_breakpoints_by_tid): New function.
8981 (arm_hwbp_control_initialize): Likewise.
8982 (arm_hwbp_control_is_enabled): Likewise.
8983 (arm_hwbp_control_disable): Likewise.
8984 (arm_linux_hw_breakpoint_initialize): Likewise.
8985 (arm_linux_get_hwbp_type): Likewise.
8986 (arm_linux_hw_watchpoint_initialize): Likewise.
8987 (arm_linux_hw_breakpoint_equal): Likewise.
8988 (arm_linux_insert_hw_breakpoint1): Likewise.
8989 (arm_linux_remove_hw_breakpoint1): Likewise.
8990 (arm_linux_insert_hw_breakpoint): Likewise.
8991 (arm_linux_remove_hw_breakpoint): Likewise.
8992 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8993 (arm_linux_insert_watchpoint): Likewise.
8994 (arm_linux_remove_watchpoint): Likewise.
8995 (arm_linux_stopped_data_address): Likewise.
8996 (arm_linux_stopped_by_watchpoint): Likewise.
8997 (arm_linux_watchpoint_addr_within_range): Likewise.
8998 (arm_linux_new_thread): Likewise.
8999 (arm_linux_thread_exit): Likewise.
9000 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9001 related target callbacks. Register arm_linux_new_thread and
9002 arm_linux_thread_exit.
9003 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9004 * arm-tdep.c (arm_pc_is_thumb): Make global.
9005 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9006
9007 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9008
9009 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9010 per-frame locations while within a function epilogue.
9011
9012 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9013
9014 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9015 to GNU coding standards.
9016
9017 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9018
9019 Allow use of mingw native on Windows 95 OS.
9020 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9021 (ser_windows_close): Only call CancelIo if function exists.
9022 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9023 to check for existence of CancelIo function in kernel32 DLL.
9024
9025 2011-02-21 Hui Zhu <teawater@gmail.com>
9026
9027 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9028 * ax-gdb.c (gen_printf_expr_callback): New function.
9029 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9030 * ax-general.c (ax_memcpy): New function.
9031 (ax_print): Handle "printf".
9032 (ax_reqs): Ditto.
9033 * ax.h (ax_memcpy): Forward declare.
9034 * common/ax.def (invalid2): Removed.
9035 (printf): New entry.
9036 * printcmd.c (printcmd.h): New include.
9037 (string_printf): New function.
9038 (ui_printf): Removed.
9039 (printf_command): Remove static. Call string_printf.
9040 (eval_command): Call string_printf.
9041 * printcmd.h: New file.
9042 * tracepoint.c (validate_actionline,
9043 encode_actions_1): handle printf_command.
9044
9045 2011-02-19 Michael Snyder <msnyder@vmware.com>
9046
9047 * reverse.c (delete_one_bookmark): Argument is now bookmark
9048 id rather than pointer to bookmark struct.
9049 (delete_bookmark_command): Use get_number_or_range.
9050 (goto_bookmark_command): Parse with get_number instead of strtoul.
9051 (bookmark_1): New function. Print info for one bookmark.
9052 (bookmarks_info): Use get_number_or_range and bookmark_1.
9053
9054 2011-02-18 Michael Snyder <msnyder@vmware.com>
9055
9056 * thread.c (info_threads_command): Re-implement using
9057 get_number_or_range.
9058 (thread_apply_command): Ditto.
9059
9060 2011-02-18 Tom Tromey <tromey@redhat.com>
9061
9062 * common/ax.def: New file.
9063 * ax.h (enum agent_op): Use ax.def.
9064 * ax-general.c (aop_map): Use ax.def.
9065
9066 2011-02-18 Tom Tromey <tromey@redhat.com>
9067
9068 * ax-general.c (aop_map): Add pick and rot.
9069 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9070 <DW_OP_rot>: Implement.
9071 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9072 (ax_pick): Declare.
9073 * ax-general.c (ax_pick): New function.
9074
9075 2011-02-18 Tom Tromey <tromey@redhat.com>
9076
9077 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9078
9079 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9080 Tom Tromey <tromey@redhat.com>
9081
9082 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9083 make_symbol_overload_list_block with NULL BLOCK.
9084 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9085
9086 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9087
9088 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9089 * breakpoint.h (get_number_or_range): Declare.
9090 * printcmd.c (ALL_DISPLAYS): Declare.
9091 (delete_display): Reimplement taking a display pointer.
9092 (undisplay_command): Accept a range of displays to delete, using
9093 get_number_or_range.
9094
9095 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9096
9097 * c-valprint.c (c_val_print): Add embedded_offset to address
9098 for arrays of unspecified length.
9099 * p-valprint.c (pascal_val_print): Likewise.
9100
9101 2011-02-18 Yao Qi <yao@codesourcery.com>
9102
9103 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9104 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9105 (thumb_process_displaced_insn): New.
9106 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9107 call to arm_process_displaced_insn.
9108 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9109
9110 2011-02-17 Tom Tromey <tromey@redhat.com>
9111
9112 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9113 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9114 compile_dwarf_to_ax. No longer static. Call
9115 dwarf2_compile_cfa_to_ax.
9116 (locexpr_tracepoint_var_ref): Update.
9117 (loclist_tracepoint_var_ref): Update.
9118 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9119 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9120 argument; add 'gdbarch' and 'pc'.
9121 (dwarf2_compile_cfa_to_ax): New function.
9122 (dwarf2_frame_cache): Update.
9123
9124 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9125
9126 * ada-lang.c (ada_type_of_array): Fix the size of the array
9127 in the case of an unconstrained packed array.
9128
9129 2011-02-17 Yao Qi <yao@codesourcery.com>
9130
9131 * common/Makefile.in: Add more targets for make.
9132
9133 2011-02-16 Tom Tromey <tromey@redhat.com>
9134
9135 * dwarf2loc.c (unimplemented): Fix typo.
9136
9137 2011-02-16 Tom Tromey <tromey@redhat.com>
9138
9139 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9140 (compile_dwarf_to_ax) <default>: Use unimplemented.
9141 <DW_OP_deref>: Update.
9142 (disassemble_dwarf_expression): Update.
9143 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9144 (decode_locdesc): Update.
9145 * dwarf2expr.h (dwarf_stack_op_name): Update.
9146
9147 2011-02-16 Tom Tromey <tromey@redhat.com>
9148
9149 * ax.h (struct aop_map) <name>: Now const.
9150
9151 2011-02-16 Tom Tromey <tromey@redhat.com>
9152
9153 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9154 than axs_rvalue.
9155
9156 2011-02-16 Yao Qi <yao@codesourcery.com>
9157
9158 * infrun.c (get_displaced_step_closure_by_addr): New.
9159 * inferior.h: Declare it.
9160 * arm-tdep.c: (arm_pc_is_thumb): Call
9161 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9162 returns non-NULL.
9163
9164 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9165 Jan Kratochvil <jan.kratochvil@redhat.com>
9166
9167 gdb/
9168 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9169
9170 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9171 Jan Kratochvil <jan.kratochvil@redhat.com>
9172
9173 * value.c (value_contents_copy_raw): Extend describing comment.
9174 Assert that the destination contents we're overwriting are wholly
9175 available.
9176 (value_contents_copy): Extend describing comment.
9177
9178 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9179 Jan Kratochvil <jan.kratochvil@redhat.com>
9180
9181 * value.c (value_available_contents_eq): Remove redundant local
9182 variables. Fix available contents comparision.
9183 * value.h (value_available_contents_eq): Extend describing
9184 comment.
9185
9186 2011-02-16 Yao Qi <yao@codesourcery.com>
9187
9188 * thread.c (info_threads_command): Add missing i18n markup and remove
9189 trailing newline.
9190
9191 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9192
9193 * breakpoint.c (longjmp_names): New variable.
9194 (struct breakpoint_objfile_data): New type.
9195 (breakpoint_objfile_key): New variable.
9196 (msym_not_found): New variable.
9197 (msym_not_found_p): New predicate.
9198 (get_breakpoint_objfile_data): New function.
9199 (create_overlay_event_breakpoint): Check per-objfile cache for
9200 symbols first.
9201 (create_longjmp_master_breakpoint): Likewise.
9202 (create_std_terminate_master_breakpoint): Likewise.
9203 (create_exception_master_breakpoint): Likewise.
9204 (_initialize_breakpoint): Register per-objfile data key.
9205
9206 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9207
9208 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9209 parameter value.
9210 (create_longjmp_master_breakpoint): Loop over longjmp names.
9211 (create_std_terminate_master_breakpoint): Const-propagate parameter
9212 value.
9213 (update_breakpoints_after_exec): Adjust.
9214 (breakpoint_re_set): Adjust.
9215
9216 2011-02-15 Michael Snyder <msnyder@vmware.com>
9217
9218 * thread.c (info_threads_command): Process arg as thread id,
9219 or list of thread ids.
9220 (thread_find_command): New command.
9221 (_initialize_thread): Document argument for info threads.
9222 Document 'thread find' command.
9223 * NEWS: Document new command "thread find".
9224
9225 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9226
9227 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9228 * aclocal.m4: Regenerated with aclocal-1.11.1.
9229 * common/configure: Regenerate with autoconf-2.64.
9230
9231 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9232
9233 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9234 bool data type to a size of one byte.
9235
9236 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9237 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 * target.c (memory_xfer_live_readonly_partial): Document where to
9240 look for interface description.
9241
9242 2011-02-15 Yao Qi <yao@codesourcery.com>
9243
9244 PR tdep/12352
9245 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9246 order to store PC value on stack instead of text section.
9247
9248 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9249
9250 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9251 the EFP register set size.
9252 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9253 data from the VMX register.
9254 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9255 and write data from/to the VMX register.
9256
9257 2011-02-14 Michael Snyder <msnyder@vmware.com>
9258
9259 * command.h (enum command_class): New class 'no_set_class', for
9260 "show" commands without a corresponding "set" command.
9261 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9262 * copying.c (_initialize_copying): Ditto for "show copying" and
9263 "show warranty".
9264 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9265 "show version".
9266 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9267 which there is no corresponding "set" command (eg. "show copying").
9268
9269 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9270 Jan Kratochvil <jan.kratochvil@redhat.com>
9271
9272 * exec.c (section_table_available_memory): Change `len' parameter
9273 type to ULONGEST.
9274 * exec.h (section_table_available_memory): Ditto.
9275 * value.h (read_value_memory): Rename the `offset' parameter to
9276 `embedded_offset'.
9277
9278 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9279 Jan Kratochvil <jan.kratochvil@redhat.com>
9280
9281 * memrange.c (compare_mem_ranges): Mention sort order in
9282 describing comment.
9283 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9284 * tracepoint.c (traceframe_available_memory): Extend comment to
9285 mention what happens to RESULT when the target does not support
9286 the query.
9287
9288 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9289 Jan Kratochvil <jan.kratochvil@redhat.com>
9290
9291 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9292 range.
9293
9294 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9295
9296 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9297 No longer handle NULL values.
9298
9299 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9300
9301 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9302 * value.c: Include "exceptions.h".
9303 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9304 generic error.
9305 * cp-abi.c: Include gdb_assert.h.
9306 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9307 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9308 errors.
9309 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9310 parameters. No longer returns -1 on error.
9311 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9312 `val' parameters.
9313 * cp-valprint.c: Include exceptions.h.
9314 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9315 the baseclass_offset. Handle unavailable base classes. Use
9316 val_print_invalid_address.
9317 * p-valprint.c: Include exceptions.h.
9318 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9319 when fetching the baseclass_offset. No longer expect
9320 baseclass_offset returning -1. Handle unavailable base classes.
9321 Use val_print_invalid_address.
9322 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9323 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9324 `embedded_offset' and `val' parameters. Adjust.
9325 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9326 parameter, and change its type to gdb_byte pointer. Add
9327 `embedded_offset' and `val' parameters. Adjust. No longer expect
9328 baseclass_offset returning -1.
9329 (value_dynamic_cast): Use value_contents_for_printing rather than
9330 value_contents. Adjust.
9331 (search_struct_field): No longer expect baseclass_offset returning
9332 -1.
9333 (search_struct_method): If reading memory from the target is
9334 necessary, wrap it in a new value to pass to baseclass_offset. No
9335 longer expect baseclass_offset returning -1.
9336 (find_method_list): No longer expect baseclass_offset returning
9337 -1. Use value_contents_for_printing rather than value_contents.
9338 * valprint.c (val_print_invalid_address): New function.
9339 * valprint.h (val_print_invalid_address): Declare.
9340 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9341 and `val' parameters. No longer expect baseclass_offset returning
9342 -1. Adjust.
9343 * gnu-v2-abi.c: Include "exceptions.h".
9344 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9345 parameters. Handle unavailable memory. Recurse through
9346 gnuv2_baseclass_offset directly, rather than through
9347 baseclass_offset. No longer returns -1 on not found, instead
9348 throw an error.
9349 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9350 `val' parameters. Adjust.
9351
9352 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9353
9354 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9355 almost but not quite adjacent.
9356
9357 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9358
9359 * value.h (value_entirely_available): Declare.
9360 * value.c (value_entirely_available): New function.
9361 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9362 real type if the pointer is unavailable.
9363
9364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9365
9366 * valops.c (value_repeat): Use read_value_memory instead of
9367 read_memory.
9368
9369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9370
9371 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9372 * value.c (value_contents_copy_raw, value_contents_copy): New
9373 functions.
9374 (value_primitive_field): Use value_contents_copy_raw instead of
9375 memcpy.
9376 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9377 memcpy.
9378 (value_array, value_slice): Ditto.
9379 * valarith.c (value_subscripted_rvalue): Use
9380 value_contents_copy_raw instead of memcpy.
9381
9382 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9383
9384 <unavailable> references.
9385
9386 * valops.c (get_value_at): Use value_from_contents_and_address,
9387 avoiding read_memory.
9388
9389 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9390
9391 * c-valprint.c (c_val_print): Print a string with unavailable
9392 contents as an array.
9393
9394 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9395
9396 * value.h (unpack_bits_as_long): Delete declaration.
9397 (unpack_value_bits_as_long): Declare.
9398 (unpack_value_field_as_long): Declare.
9399 (value_field_bitfield): Declare.
9400 * value.c (unpack_bits_as_long): Rename to...
9401 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9402 value parameters. Return the extracted result in a new output
9403 parameter. If the value contents are unavailable, return false,
9404 otherwise return true.
9405 (unpack_value_bits_as_long): New.
9406 (unpack_field_as_long): Rename to...
9407 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9408 Add embedded_offset and value parameters. Return the extracted
9409 result in a new output parameter. If the value contents are
9410 unavailable, return false, otherwise return true.
9411 (unpack_value_field_as_long): New.
9412 (unpack_field_as_long_1): New.
9413 (unpack_field_as_long): Reimplement as wrapper around
9414 unpack_value_field_as_long_1.
9415 (value_field_bitfield): New function.
9416 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9417 unpack_value_bits_as_long. Mark the value as unavailable, if it
9418 is unavailable.
9419 * jv-valprint.c (java_print_value_fields): Use
9420 value_field_bitfield.
9421 * p-valprint.c (pascal_object_print_value_fields): Use
9422 value_field_bitfield.
9423 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9424
9425 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9426
9427 * value.c (get_internalvar_integer): Also return the int value of
9428 TYPE_CODE_INT INTERNALVAR_VALUE values.
9429 (set_internalvar): Don't special case TYPE_CODE_INT.
9430
9431 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9432
9433 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9434 INTERNALVAR_POINTER.
9435 <pointer>: Delete.
9436 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9437 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9438 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9439
9440 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9441
9442 * value.h (value_available_contents_eq): Declare.
9443 * value.c (find_first_range_overlap): New function.
9444 (value_available_contents_eq): New function.
9445 * valprint.c (val_print_array_elements): Use
9446 value_available_contents_eq.
9447 * ada-valprint.c (val_print_packed_array_elements): Use
9448 value_available_contents_eq.
9449 * jv-valprint.c (java_value_print): Use
9450 value_available_contents_eq.
9451
9452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9453
9454 * target.c (target_read_live_memory): New function.
9455 (memory_xfer_live_readonly_partial): New.
9456 (memory_xfer_partial): If reading from a traceframe, fallback to
9457 reading unavailable read-only memory from read-only regions of
9458 live target memory.
9459 * tracepoint.c (disconnect_tracing): Adjust.
9460 (set_current_traceframe): New, factored out from
9461 set_traceframe_number.
9462 (set_traceframe_number): Reimplement to only change the traceframe
9463 number on the GDB side.
9464 (do_restore_current_traceframe_cleanup): Adjust.
9465 (make_cleanup_restore_traceframe_number): New.
9466 (cur_traceframe_number): New global.
9467 (tfile_open): Set cur_traceframe_number to no traceframe.
9468 (set_tfile_traceframe): New function.
9469 (tfile_trace_find): If looking up a traceframe using any method
9470 other than by number, make sure the current tfile traceframe
9471 matches gdb's current traceframe. Update the current tfile
9472 traceframe if the lookup succeeded.
9473 (tfile_fetch_registers, tfile_xfer_partial)
9474 (tfile_get_trace_state_variable_value): Make sure the remote
9475 traceframe matches gdb's current traceframe.
9476 * remote.c (remote_traceframe_number): New global.
9477 (remote_open_1): Set it to -1.
9478 (set_remote_traceframe): New function.
9479 (remote_fetch_registers, remote_store_registers)
9480 (remote_xfer_memory, remote_xfer_partial)
9481 (remote_get_trace_state_variable_value): Make sure the remote
9482 traceframe matches gdb's current traceframe.
9483 (remote_trace_find): If looking up a traceframe using any method
9484 other than by number, make sure the current remote traceframe
9485 matches gdb's current traceframe. Update the current remote
9486 traceframe if the lookup succeeded.
9487 * infrun.c (fetch_inferior_event): Adjust.
9488 * tracepoint.h (set_current_traceframe): Declare.
9489 (get_traceframe_number, set_traceframe_number): Add describing
9490 comments.
9491
9492 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9493
9494 Mark pieces of values as unavailable if the corresponding memory
9495 is unavailable.
9496
9497 * valops.c: Include tracepoint.h.
9498 (value_fetch_lazy): Use read_value_memory.
9499 (read_value_memory): New.
9500 * value.h (read_value_memory): Declare.
9501 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9502 * exec.c (section_table_available_memory): New function.
9503 * exec.h (section_table_available_memory): Declare.
9504
9505 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9506
9507 * Makefile.in (SFILES): Add memrange.c.
9508 (HFILES_NO_SRCDIR): Add memrange.h.
9509 (COMMON_OBS): Add memrange.o.
9510 * memrange.c: New file.
9511 * memrange.h: New file.
9512 * tracepoint.c: Include memrange.h.
9513 (struct mem_range): Delete.
9514 (mem_range_s): Delete.
9515 (traceframe_available_memory): New function.
9516 * tracepoint.h (traceframe_available_memory): Declare.
9517
9518 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9519
9520 * target.h (struct traceframe_info): Forward declare.
9521 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9522 (struct target_ops) <to_traceframe_info>: New field.
9523 (target_traceframe_info): New.
9524 * target.c (update_current_target): Inherit and default
9525 to_traceframe_info.
9526 * remote.c (PACKET_qXfer_traceframe_info): New.
9527 (remote_protocol_features): Register qXfer:traceframe-info:read.
9528 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9529 (remote_traceframe_info): New.
9530 (init_remote_ops): Install it.
9531 (_initialize_remote): Install "set/show remote traceframe-info"
9532 commands.
9533 * tracepoint.h (parse_traceframe_info): Declare.
9534 * tracepoint.c (struct mem_range): New.
9535 (mem_range_s): New typedef.
9536 (struct traceframe_info): New.
9537 (traceframe_info): New global.
9538 (free_traceframe_info): New function.
9539 (clear_traceframe_info): New function.
9540 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9541 info.
9542 (build_traceframe_info): New function.
9543 (tfile_traceframe_info): New function.
9544 (init_tfile_ops): Install tfile_traceframe_info.
9545 (traceframe_info_start_memory, free_result): New functions.
9546 (memory_attributes, traceframe_info_elements): New globals.
9547 (parse_traceframe_info, get_traceframe_info): New functions.
9548 * features/traceframe-info.dtd: New file.
9549 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9550
9551 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9552
9553 Base support for <unavailable> value contents.
9554
9555 * value.h (value_bytes_available): Declare.
9556 (mark_value_bytes_unavailable): Declare.
9557 * value.c (struct range): New struct.
9558 (range_s): New typedef.
9559 (ranges_overlap): New function.
9560 (range_lessthan): New function.
9561 (ranges_contain_p): New function.
9562 (struct value) <unavailable>: New field.
9563 (value_bytes_available): New function.
9564 (mark_value_bytes_unavailable): New function.
9565 (require_not_optimized_out): Constify parameter.
9566 (require_available): New function.
9567 (value_contents_all, value_contents): Require all bytes be
9568 available.
9569 (value_free): Free `unavailable'.
9570 (value_copy): Copy `unavailable'.
9571 * valprint.h (val_print_unavailable): Declare.
9572 * valprint.c (valprint_check_validity): Rename `offset' parameter
9573 to `embedded_offset'. If printing a scalar, check whether the
9574 value chunk is available.
9575 (val_print_unavailable): New.
9576 (val_print_scalar_formatted): Check whether the value is
9577 available.
9578 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9579 pretty-printing unavailable values.
9580
9581 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9582
9583 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9584 * c-typeprint.c (c_type_print_args): Update the function comment. New
9585 variable param_type, initialize it. Remove const/volatile qualifiers
9586 for language_cplus and !show_artificial. Use param_type.
9587
9588 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9589
9590 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9591 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9592 * symtab.h (struct symtab) <next>: Comment extension.
9593
9594 2011-02-12 Yao Qi <yao@codesourcery.com>
9595
9596 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9597
9598 2011-02-11 Yao Qi <yao@codesourcery.com>
9599
9600 * common/Makefile.in: Add copyright header.
9601
9602 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9603
9604 * infrun.c (proceed): Move switching out and in of tfind mode from
9605 here ...
9606 (fetch_inferior_event): ... to here.
9607
9608 2011-02-11 Yao Qi <yao@codesourcery.com>
9609
9610 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9611 libcommon.a.
9612 * configure.ac: Add common to sub dir.
9613 * configure: Regenerate.
9614
9615 2011-02-11 Yao Qi <yao@codesourcery.com>
9616
9617 Build libcommon.a.
9618
9619 * common/Makefile.in: New.
9620 * common/configure.ac: New.
9621 * common/aclocal.m4: New.
9622 * common/configure: Generate.
9623
9624 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9625
9626 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9627 side of the parenthesis.
9628
9629 Merge from GCC:
9630 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9631 * vec.h (VEC_block_remove): Fix comment.
9632
9633 2011-02-08 Michael Snyder <msnyder@vmware.com>
9634
9635 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9636
9637 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9638
9639 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9640 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9641 psubd and paddd.
9642
9643 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9644
9645 PR 12361.
9646 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9647 phsubsw.
9648 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9649 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9650
9651 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9652
9653 * dwarf2read.c (read_subroutine_type): Set special calling
9654 convention flag for functions compiled by IBM XL C for OpenCL.
9655 * ppc-sysv-tdep.c: Include "dwarf2.h"
9656 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9657 calling convention.
9658 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9659 IBM OpenCL vector types calling convention.
9660 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9661 (ppc_sysv_abi_broken_return_value): Likewise.
9662 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9663 types calling convention.
9664 (ppc64_sysv_abi_return_value): Likewise.
9665 * spu-tdep.c: Include "dwarf2.h"
9666 (spu_return_value): Implement IBM OpenCL vector types calling
9667 convention.
9668
9669 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9670
9671 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9672 correct ABI for AltiVec vector arguments.
9673
9674 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9675
9676 * valprint.c (val_print): Extend comment.
9677 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9678 interface explanation to val_print.
9679 (ada_val_print_array): Adjust comment to current interface.
9680 (print_field_values): Adjust comment to current interface.
9681 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9682 explanation to val_print.
9683 * f-valprint.c (f_val_print): Ditto.
9684 * jv-valprint.c (java_val_print): Ditto.
9685 * m2-valprint.c (m2_val_print): Ditto.
9686 * p-valprint.c (pascal_val_print): Ditto.
9687
9688 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9689
9690 * breakpoint.c (parse_breakpoint_sals): Fix description.
9691
9692 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9693 Oguz Kayral <oguzkayral@gmail.com>
9694
9695 * python/py-inferior.c (python_on_normal_stop): New function.
9696 (python_on_resume): New function.
9697 (python_inferior_exit): New function.
9698 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9699 inferior_exit observers.
9700 * python/py-evtregistry.c: New file.
9701 * python/py-threadevent.c : New file.
9702 * python/py-event.c: New file.
9703 * python/py-evts.c: New file.
9704 * python/py-continueevent.c: New file.
9705 * python/py-bpevent.c: New file.
9706 * python/py-signalevent.c: New file.
9707 * python/py-exetiedevent.c: New file.
9708 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9709 Move struct breakpoint_object from here...
9710 * python/python-internal.h: ... to here.
9711 * python/py-event.h: New file.
9712 * python/py-events.h: New file.
9713 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9714 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9715 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9716 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9717 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9718 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9719 Add build rules for all the above.
9720
9721 2011-02-04 Tom Tromey <tromey@redhat.com>
9722
9723 * dwarf2read.c (dwarf2_section_empty_p): New function.
9724 (dwarf2_read_section): Use dwarf2_section_empty_p.
9725 (dwarf2_section_size): New function.
9726 (dwarf2_get_section_info): Unconditionally read section.
9727 (dwarf2_read_index): Use dwarf2_section_empty_p.
9728 (partial_read_comp_unit_head): Use dwarf2_section_size.
9729 (dwarf2_symbol_mark_computed): Likewise.
9730
9731 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9732
9733 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9734
9735 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9736
9737 * mips-linux-tdep.c: Include xml-syscall.h.
9738 (mips_linux_get_syscall_number): New function.
9739 (mips_linux_init_abi): Add calls to
9740 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9741 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9742 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9743 * syscalls/mips-n32-linux.xml: New file.
9744 * syscalls/mips-n64-linux.xml: New file.
9745 * syscalls/mips-o32-linux.xml: New file.
9746
9747 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9748
9749 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9750 Complain about inverted range entries.
9751 (dwarf2_record_block_ranges): Likewise.
9752
9753 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9754
9755 Fix some typos.
9756 * breakpoint.c (update_watchpoint): Fix name of the
9757 update_global_location_list function.
9758 (print_one_breakpoint): Fix typo.
9759 (_initialize_breakpoint): Remove extra space in hbreak help
9760 string.
9761 * breakpoint.h (struct bp_location) <length>: Fix field
9762 description.
9763
9764 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9765
9766 * regcache.c (registers_changed_ptid): Don't explictly always
9767 clear `current_regcache'. Only clear current_thread_ptid and
9768 current_thread_arch when PTID matches. Only reinit the frame
9769 cache if PTID matches the current inferior_ptid. Move alloca(0)
9770 call to ...
9771 (registers_changed): ... here.
9772
9773 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9774
9775 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9776 starts with __stack_chk_guard as stack guard symbol.
9777
9778 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9779
9780 * disasm.c (compare_lines): Handle the end of sequence markers
9781 within the line table to better support disassembling over
9782 compilation unit boundaries.
9783
9784 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9785
9786 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9787 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9788 implementation even if no symbols are available.
9789 (thumb_analyze_prologue): Update call to skip_prologue_function.
9790 (arm_analyze_prologue): Likewise.
9791
9792 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9793
9794 * arm-tdep.c: Include "observer.h".
9795 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9796 (arm_exidx_data_key): New static variable.
9797 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9798 (struct arm_exidx_data): Likewise.
9799 (arm_exidx_data_free): New function.
9800 (arm_compare_exidx_entries): Likewise.
9801 (arm_obj_section_from_vma): Likewise.
9802 (arm_exidx_new_objfile): Likewise.
9803 (arm_find_exidx_entry): Likewise.
9804 (arm_exidx_fill_cache): Likewise.
9805 (arm_exidx_unwind_sniffer): Likewise.
9806 (arm_exidx_unwind): New global variable.
9807 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9808 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9809 observer. Register arm_exidx_data_key as objfile data.
9810
9811 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9812
9813 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9814 due to accessing uninitialized variable. Fix indentation.
9815
9816 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9817
9818 * c-valprint.c (c_value_print): When doing virtual base pointer
9819 adjustment, create a new value with adjusted contents rather than
9820 changing the contents of the value being printed (and getting it
9821 wrong).
9822
9823 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9824
9825 * xml-support.c (xml_find_attribute): New.
9826 (xinclude_start_include): Use it.
9827 * xml-support.h (xml_find_attribute): Declare.
9828 * memory-map.c (memory_map_start_memory)
9829 (memory_map_start_property): Use xml_find_attribute.
9830 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9831 xml_find_attribute.
9832 * remote.c (start_thread): Use xml_find_attribute.
9833 * solib-target.c (library_list_start_segment)
9834 (library_list_start_section, library_list_start_library)
9835 (library_list_start_list): Use xml_find_attribute.
9836 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9837 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9838 (tdesc_start_field): Use xml_find_attribute.
9839
9840 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9841
9842 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9843 (BUILD_OCL_VTYPES): Update.
9844
9845 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9846
9847 * configure.ac: Work around non-GNU sed limitation when computing
9848 python version number.
9849 * configure: Regenerate.
9850
9851 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9852
9853 Fix debug printing of TYPE_INSTANCE.
9854 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9855 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9856
9857 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9860 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9861 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9862 * ada-operator.inc: Rename the file to ...
9863 * ada-operator.def: ... here, wrap all the entries by macro OP.
9864 * expprint.c (op_name_standard): Remove all the entries. Include
9865 "std-operator.def" instead.
9866 * expression.h (enum exp_opcode): Include "std-operator.def" and
9867 "ada-operator.def". Move all the entries ...
9868 * std-operator.def: ... here, wrap all the entries by macro OP.
9869
9870 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9871
9872 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9873 * breakpoint.c (remove_jit_event_breakpoints): New function.
9874 * jit.c (jit_descriptor_addr): Delete.
9875 (registering_code): Delete.
9876 (clear_int): Delete.
9877 (jit_inferior_data): New variable.
9878 (struct jit_inferior_data): New type.
9879 (get_jit_inferior_data): New function.
9880 (jit_inferior_data_cleanup): New function.
9881 (jit_read_descriptor): Adjust.
9882 (jit_register_code): Adjust.
9883 (jit_breakpoint_re_set_internal): New function; move code here ...
9884 (jit_inferior_init): ... from here.
9885 (jit_breakpoint_re_set): Adjust.
9886 (jit_reset_inferior_data_and_breakpoints): New function.
9887 (jit_inferior_created_observer): Adjust.
9888 (jit_inferior_exit_hook): Adjust.
9889 (jit_executable_changed_observer): New function.
9890 (jit_event_handler): Adjust.
9891 (_initialize_jit): Adjust.
9892
9893 2011-01-31 Michael Snyder <msnyder@vmware.com>
9894
9895 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9896 line.
9897
9898 2011-01-31 Tom Tromey <tromey@redhat.com>
9899
9900 PR python/12216:
9901 * python/python.c (execute_gdb_command): Call
9902 prevent_dont_repeat.
9903 * top.c (suppress_dont_repeat): New global.
9904 (dont_repeat): Use it.
9905 (prevent_dont_repeat): New function.
9906 * command.h (prevent_dont_repeat): Declare.
9907
9908 2011-01-31 Tom Tromey <tromey@redhat.com>
9909
9910 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9911 * python/py-breakpoint.c (bppy_set_silent): Use
9912 breakpoint_set_silent.
9913 (bppy_set_thread): Use breakpoint_set_thread.
9914 (bppy_set_task): Use breakpoint_set_task.
9915 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9916 (breakpoint_set_task): Declare.
9917 (make_breakpoint_silent): Remove.
9918 * breakpoint.c (breakpoint_set_silent): New function.
9919 (breakpoint_set_thread): Likewise.
9920 (breakpoint_set_task): Likewise.
9921 (make_breakpoint_silent): Remove.
9922
9923 2011-01-31 Tom Tromey <tromey@redhat.com>
9924
9925 * breakpoint.h (user_breakpoint_p): Declare.
9926 * breakpoint.c (user_breakpoint_p): New function.
9927 (breakpoint_1): Use it.
9928 (save_breakpoints): Likewise.
9929
9930 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9931
9932 * configure.ac: Add handling of Python distribution on Windows.
9933 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9934 sysconfig variables are not defined, then do not use them.
9935 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9936 instead. On Windows, return all paths using forward-slashes
9937 rather than backslashes.
9938
9939 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9940
9941 * configure.ac: Remove fallback behavior for building
9942 against Python. Remove tweaking of Python include path.
9943 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9944 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9945 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9946 Always restore CPPFLAGS and LIBS after linking test.
9947 * configure: Regenerated.
9948 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9949 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9950 * python/python-internal.h: Adjust includes of Python .h files.
9951
9952 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9953
9954 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9955 in error message.
9956
9957 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9958
9959 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9960 value test.
9961
9962 2011-01-31 Yao Qi <yao@codesourcery.com>
9963
9964 * arm-linux-nat.c: Update calls to regcache_register_status
9965 instead of regcache_valid_p.
9966 * aix-thread.c: Likewise.
9967 * i386gnu-nat.c: Likewise.
9968
9969 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9970
9971 Fix crash.
9972 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9973 touching TYPE_FIELD_ARTIFICIAL.
9974
9975 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9976
9977 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9978 Committers.
9979
9980 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9981
9982 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9983 selected, don't try iterating over the traceframe's blocks.
9984 (tfile_has_stack): If there's no traceframe selected, then there's
9985 no stack.
9986 (tfile_has_registers): If there's no traceframe selected, then
9987 there's no registers.
9988
9989 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9990
9991 * target.c (memory_xfer_partial): No need to restore shadows if we
9992 haven't read anything.
9993
9994 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9995
9996 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9997 and val_print_scalar_formatted.
9998
9999 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10000
10001 * tracepoint.c (tfile_read): New.
10002 (tfile_open): Use it.
10003 (tfile_get_traceframe_address): Use it.
10004 (tfile_trace_find): Use it.
10005 (walk_blocks_callback_func): New typedef.
10006 (match_blocktype): New function.
10007 (traceframe_walk_blocks): New function.
10008 (traceframe_find_block_type): New function.
10009 (tfile_fetch_registers, tfile_xfer_partial)
10010 (tfile_get_trace_state_variable_value): Use
10011 traceframe_find_block_type and tfile_read.
10012
10013 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10014
10015 * remote-mips.c: Add internationalization mark ups. Remove
10016 trailing \n from already marked up strings.
10017
10018 2011-01-26 Tom Tromey <tromey@redhat.com>
10019
10020 * python/py-prettyprint.c (print_string_repr): Clear
10021 'addressprint' option when calling val_print_string.
10022 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10023 option when calling val_print_string.
10024
10025 2011-01-26 Tom Tromey <tromey@redhat.com>
10026
10027 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10028 GDB_PY_LL_ARG.
10029 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10030 macros.
10031 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10032 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10033 (gdb_py_long_as_ulongest): New defines.
10034 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10035 (gdb_py_int_as_long): Declare.
10036 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10037 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10038 (valpy_long): Add comment.
10039 * python/py-utils.c (get_addr_from_python): Use
10040 gdb_py_long_as_ulongest. Handle overflow properly.
10041 (gdb_py_object_from_longest): New function.
10042 (gdb_py_object_from_ulongest): Likewise.
10043 (gdb_py_int_as_long): Likewise.
10044 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10045 * python/py-symtab.c (salpy_get_pc): Use
10046 gdb_py_long_from_ulongest.
10047 (salpy_get_line): Use PyInt_FromLong.
10048 * python/py-param.c (set_parameter_value): Use
10049 gdb_py_int_as_long.
10050 * python/py-lazy-string.c (stpy_get_address): Use
10051 gdb_py_long_from_ulongest.
10052 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10053 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10054 * python/py-breakpoint.c (bppy_set_thread): Use
10055 gdb_py_int_as_long.
10056 (bppy_set_task): Likewise.
10057 (bppy_set_ignore_count): Likewise.
10058 (bppy_set_hit_count): Likewise.
10059 * python/py-block.c (blpy_get_start): Use
10060 gdb_py_object_from_ulongest.
10061 (blpy_get_end): Likewise.
10062 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10063
10064 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10065
10066 PR/symtab 11766:
10067 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10068 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10069 equality test for objfile, initialize addr_low if needed.
10070
10071 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10072
10073 * tui/tui-regs.c (tui_register_format): Remove dead code.
10074
10075 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10076
10077 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10078 instead of print_scalar_formatted.
10079 (print_scalar_formatted): Don't handle 's' format strings here,
10080 and add an assertion that we never see such format here.
10081 * valprint.h (val_print_scalar_formatted): Declare.
10082 * valprint.c (val_print_scalar_formatted): New.
10083 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10084 instead of print_scalar_formatted.
10085 * jv-valprint.c (java_val_print): Ditto.
10086 * p-valprint.c (pascal_val_print): Ditto.
10087 * ada-valprint.c (ada_val_print_1): Ditto.
10088 * f-valprint.c (f_val_print): Ditto.
10089 * infcmd.c (registers_info): Ditto.
10090 * m2-valprint.c (m2_val_print): Ditto.
10091
10092 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10093
10094 * m2-valprint.c (print_unbounded_array): Pass
10095 value_contents_for_printing rather than value_contents, to
10096 m2_print_array_contents. Also pass in the value.
10097
10098 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10101 (save_gdb_index_command): Switch to .gdb_index version 4.
10102
10103 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10104
10105 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10106 than frame_register, and always pass a valid value to val_print.
10107
10108 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10109
10110 Centralize printing "<optimized out>".
10111
10112 * valprint.h (val_print_optimized_out): Declare.
10113 * cp-valprint.c (cp_print_value_fields): Use
10114 val_print_optimized_out.
10115 * jv-valprint.c (java_print_value_fields): Ditto.
10116 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10117 * printcmd.c (print_formatted): Ditto.
10118 * valprint.c (valprint_check_validity): Ditto.
10119 (value_check_printable): Ditto.
10120 (val_print_optimized_out): New.
10121
10122 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10123
10124 * infcmd.c (default_print_registers_info): Allocate values so to
10125 never pass a NULL value to val_print.
10126
10127 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10128
10129 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10130 boolean. Make sure to always pass a value that matches the
10131 contents buffer to callees. Preserve `address' for following
10132 iterations.
10133 * value.c (value_contents_for_printing_const): New.
10134 (value_address): Constify value argument.
10135 * value.h (value_contents_for_printing_const): Declare.
10136 (value_address): Constify value argument.
10137
10138 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10139
10140 * regcache.c (struct regcache_descr): Rename
10141 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10142 and sizeof_cooked_register_valid_p to
10143 sizeof_cooked_register_status.
10144 (init_regcache_descr): Adjust.
10145 (struct regcache): Rename register_valid_p field to
10146 register_status.
10147 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10148 (do_cooked_read): Adjust.
10149 (regcache_valid_p): Rename to ...
10150 (regcache_register_status): ... this. Adjust.
10151 (regcache_invalidate): Adjust.
10152 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10153 Adjust.
10154 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10155 as unavailable, not valid.
10156 (regcache_dump): Adjust.
10157 * regcache.h (enum register_status): New.
10158 (regcache_register_status): Declare.
10159 (regcache_invalidate): Delete declaration.
10160 * corelow.c (get_core_registers): Adjust.
10161 * tracepoint.c (tfile_fetch_registers): Adjust.
10162 * trad-frame.c (REG_VALUE): Rename to ...
10163 (TF_REG_VALUE): ... this.
10164 (REG_UNKNOWN): Rename to ...
10165 (TF_REG_UNKNOWN): ... this.
10166 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10167 * mi/mi-main.c (register_changed_p): Adjust.
10168
10169 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10170
10171 * regcache.c (struct regcache_descr): Remove outdated comment.
10172 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10173 overallocate hack.
10174 (regcache_xmalloc): Rename to ...
10175 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10176 Allocate the regcache type accordingly.
10177 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10178 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10179 cooked registers, not raw.
10180 (regcache_dup_no_passthrough): Delete.
10181 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10182 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10183 mention obsolete write_register_bytes.
10184 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10185
10186 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10187
10188 Stop remote_read_bytes from handling partial reads itself.
10189
10190 * remote-fileio.c: Include target.h.
10191 (remote_fileio_write_bytes): Delete.
10192 (remote_fileio_func_open, remote_fileio_func_write)
10193 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10194 target_read_memory.
10195 (remote_fileio_func_stat): Use target_read_memory and
10196 target_write_memory.
10197 (remote_fileio_func_gettimeofday): Use target_write_memory.
10198 (remote_fileio_func_system): Use target_read_memory.
10199 * remote.c (remote_write_bytes): Make it static.
10200 (remote_read_bytes): Don't handle partial reads here.
10201 * remote.h (remote_read_bytes): Delete declaration.
10202
10203 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10204
10205 Simplify XML parsing a bit.
10206
10207 * xml-support.h (gdb_xml_parse_quick): Declare.
10208 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10209 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10210 parameter.
10211 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10212 gdb_xml_create_parser_and_cleanup_1.
10213 (gdb_xml_parse_quick): New.
10214 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10215 * osdata.c (osdata_parse): Ditto.
10216 * remote.c (remote_threads_info): Ditto.
10217 * solib-target.c (solib_target_parse_libraries): Ditto.
10218 * xml-syscall.c (syscall_parse_xml): Ditto.
10219 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10220
10221 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10222
10223 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10224 with remote-mips.o added to gdb_target_obs.
10225 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10226
10227 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10228
10229 * ada-valprint.c (val_print_packed_array_elements): Pass the
10230 correct struct value to val_print.
10231 (ada_val_print_1): Ditto.
10232
10233 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10234
10235 Don't lose embedded_offset in printing routines throughout.
10236
10237 * valprint.h (val_print_array_elements): Change prototype.
10238 * valprint.c (val_print_array_elements): Add `embedded_offset'
10239 parameter, and adjust to pass it down to val_print, while passing
10240 `valaddr' or `address' unmodified. Take embedded_offset into
10241 account when checking repetitions.
10242 * c-valprint.c (c_val_print): Pass embedded_offset to
10243 val_print_array_elements instead of adjusting `valaddr' and
10244 `address'.
10245 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10246 embedded_offset to val_print_array_elements instead of adjusting
10247 `valaddr'.
10248 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10249 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10250 val_print_array_elements and pascal_object_print_value_fields
10251 instead of adjusting `valaddr'.
10252 (pascal_object_print_value_fields): Add `offset' parameter, and
10253 adjust to use it.
10254 (pascal_object_print_value): Add `offset' parameter, and adjust to
10255 use it.
10256 (pascal_object_print_static_field): Use
10257 value_contents_for_printing/value_embedded_offset, rather than
10258 value_contents.
10259 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10260 parameter, and adjust to use it. Use
10261 value_contents_for_printing/value_embedded_offset, rather than
10262 value_contents.
10263 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10264 (ada_val_print_array): Add `offset' parameter, and adjust to use
10265 it.
10266 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10267 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10268 Instead work with offsets. Use
10269 value_contents_for_printing/value_embedded_offset, rather than
10270 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10271 and use value_from_pointer to extract a target pointer, rather
10272 than value_from_longest.
10273 (print_variant_part): Add `offset' parameter. Replace
10274 `outer_valaddr' parameter by a new `outer_offset' parameter.
10275 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10276 (ada_value_print): Use
10277 value_contents_for_printing/value_embedded_offset, rather than
10278 value_contents.
10279 (print_record): Add `offset' parameter, and adjust to pass it
10280 down.
10281 (print_field_values): Add `offset' parameter. Replace
10282 `outer_valaddr' parameter by a new `outer_offset' parameter.
10283 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10284 Use value_contents_for_printing/value_embedded_offset, rather than
10285 value_contents.
10286 * d-valprint.c (dynamic_array_type): Use
10287 value_contents_for_printing/value_embedded_offset, rather than
10288 value_contents.
10289 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10290 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10291 (java_print_value_fields): Take `offset' into account. Don't
10292 re-adjust `valaddr'. Instead pass down adjusted offsets.
10293 (java_val_print): Take `embedded_offset' into account. Pass it to
10294 java_print_value_fields.
10295 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10296 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10297 down adjusted offsets.
10298 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10299 (f_val_print): Take `embedded_offset' into account.
10300
10301 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10302
10303 * inflow.c: Include "gdbcmd.h".
10304 (interactive_mode): New static global, moved here from top.c.
10305 (show_interactive_mode): New function, moved here from top.c.
10306 use gdb_has_a_terminal instead of input_from_terminal_p to
10307 determine the current mode.
10308 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10309 setting.
10310 (_initialize_inflow): Add the "set/show interactive-mode"
10311 commands. Moved here from top.c, after having adjusted slightly
10312 the help text.
10313 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10314 to inflow.c.
10315 (input_from_terminal_p): Remove handling of "interactive-mode"
10316 setting, moved to infow.c.
10317 (init_main): Remove creation of the "set/show interactive-mode"
10318 commands, moved to inflow.c.
10319
10320 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10321
10322 * NEWS: Add entry for native ia64-hpux support.
10323
10324 2011-01-19 Tom Tromey <tromey@redhat.com>
10325
10326 PR mi/8618:
10327 * thread.c (free_thread): Free 'name'.
10328 (print_thread_info): Emit thread name. Change CLI output.
10329 (thread_name_command): New function.
10330 (do_captured_thread_select): Emit newline.
10331 (_initialize_thread): Register 'thread name' command.
10332 * target.h (struct target_ops) <to_thread_name>: New field.
10333 (target_thread_name): New macro.
10334 * target.c (update_current_target): Handle to_thread_name.
10335 * python/py-infthread.c (thpy_get_name): New function.
10336 (thpy_set_name): Likewise.
10337 (thread_object_getset): Add "name".
10338 * linux-nat.c (linux_nat_thread_name): New function.
10339 (linux_nat_add_target): Set to_thread_name.
10340 * gdbthread.h (struct thread_info) <name>: New field.
10341
10342 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10343
10344 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10345 (ada_val_print_1): Likewise.
10346
10347 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10348
10349 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10350 upper limit address is not greater than the function end address
10351 when the upper limit could not be computed using the debugging
10352 info.
10353
10354 2011-01-17 Tom Tromey <tromey@redhat.com>
10355
10356 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10357 get_regcomp_error.
10358 * utils.c: Include gdb_regex.h.
10359 (do_regfree_cleanup): New function.
10360 (make_regfree_cleanup): Likewise.
10361 (get_regcomp_error): Likewise.
10362 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10363
10364 2011-01-17 Tom Tromey <tromey@redhat.com>
10365
10366 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10367 re_compile_fastmap.
10368
10369 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10370
10371 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10372 for internal variables.
10373 (last_was_structop): New static variable.
10374 (COMPLETE): New token.
10375 (field_exp): New rule to group all '.' suffix handling.
10376 Add mark_struct_expression calls when approriate to be able
10377 to correctly find fields for completion.
10378 (yylex): Adapt to handle field completion and set INTVAR when
10379 required.
10380
10381 2011-01-14 Yao Qi <yao@codesourcery.com>
10382
10383 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10384 save_reggroup, restore_reggroup and all_reggroup.
10385
10386 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10387
10388 * ada-valprint. (ada_printchar): Use the correct type length
10389 in call to ada_emit_char.
10390 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10391
10392 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10393
10394 * solib-som.h (hpux_major_release): Declare variable here.
10395 * solib-som.c: Remove <sys/utsname.h> header.
10396 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10397 (hpux_major_release): Make global, change default value to
10398 DEFAULT_HPUX_MAJOR_RELEASE.
10399 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10400 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10401 Add "solib-som.h" header.
10402 (set_hpux_major_release): New function.
10403 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10404
10405 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10406
10407 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10408
10409 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10410
10411 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10412 new-line at end of warning message.
10413 (ia64_hpux_store_register): Remove trailing new-line at end of
10414 error message.
10415 * ia64-hpux-tdep.c: Rephrase comment.
10416 * solib-ia64-hpux.c (struct dld_info): Change type of field
10417 dld_flags from "long long" to ULONGEST.
10418
10419 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10420
10421 * target.h (deprecated_child_ops): Delete declaration.
10422 * target.c (deprecated_child_ops): Delete definition.
10423
10424 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10425
10426 * Makefile.in (hpux-thread.o): Delete rule.
10427 * configure.ac: Don't check for HPUX DCE threads support.
10428 * configure, config.in: Regenerate.
10429 * hppa-hpux-nat.c (child_suppress_run): Delete.
10430 (hppa_hpux_child_can_run): Delete.
10431 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10432 * hpux-thread.c: Delete.
10433
10434 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10435
10436 * hpux-thread.c (hpux_pid_to_str): Delete.
10437
10438 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10439
10440 * ada-valprint.c (ada_emit_char): Remove strange code.
10441 Check that c is <= UCHAR_MAX before passing it to isascii.
10442 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10443
10444 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10445
10446 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10447 to the case where instream is stdin.
10448
10449 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10450
10451 * ia64-tdep.h (struct regcache): Forward declare.
10452 (struct ia64_infcall_ops): New struct type.
10453 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10454 and "infcall_ops".
10455 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10456 Renames ia64_find_global_pointer.
10457 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10458 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10459 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10460 methods.
10461 (ia64_infcall_ops): New static global constant.
10462 (ia64_gdbarch_init): Set tdep->infcall_ops.
10463 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10464 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10465 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10466 (ia64_hpux_dummy_code): New static global constant.
10467 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10468 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10469 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10470 New function.
10471 (ia64_hpux_infcall_ops): New static global constant.
10472 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10473 for inferior function calls to work properly on ia64-hpux.
10474
10475 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10476
10477 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10478 * ia64-tdep.h (struct frame_info): forward declaration.
10479 (struct gdbarch_tdep): Add field size_of_register_frame.
10480 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10481 to determine the size of the register frame.
10482 (ia64_size_of_register_frame): New function.
10483 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10484 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10485 (IA64_HPUX_UREG_REASON): New macro.
10486 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10487 New functions.
10488 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10489 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10490 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10491 objects.
10492
10493 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10494
10495 Add support for ia64-hpux.
10496 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10497 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10498
10499 * configure.host: Add handling for ia64-hpux hosts. Add associated
10500 floatformats.
10501 * configure.tgt: Add handling for ia64-hpux targets.
10502 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10503 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10504 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10505
10506 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10507
10508 [ttrace] Compute thread list immediately after attach.
10509 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10510 New subprogram.
10511 (inf_ttrace_attach): Use it.
10512
10513 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10514
10515 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10516 if we could not determine the frame's function address. Instead,
10517 use the frame's PC, and then continue.
10518
10519 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10520
10521 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10522 not already defined.
10523
10524 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10525
10526 * ia64-tdep.c (ia64_struct_type_p): New function.
10527 (ia64_extract_return_value): Handle integral values that are
10528 less than 8 bytes long.
10529 (ia64_push_dummy_call): Likewise.
10530
10531 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10532
10533 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10534 floatformat_ia64_ext.
10535 (floatformat_ia64_ext_big): New static const.
10536 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10537
10538 2011-01-12 Tom Tromey <tromey@redhat.com>
10539
10540 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10541 messages.
10542 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10543 (mi_cmd_thread_list_ids): Likewise.
10544 (mi_cmd_data_list_changed_registers): Likewise.
10545 (mi_cmd_data_list_register_values): Likewise.
10546 (mi_cmd_data_write_register_values): Likewise.
10547 (mi_cmd_data_evaluate_expression): Likewise.
10548 (mi_cmd_data_read_memory): Likewise.
10549 (mi_cmd_data_read_memory_bytes): Likewise.
10550 (mi_cmd_data_write_memory): Likewise.
10551 (mi_cmd_enable_timings): Likewise.
10552 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10553 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10554 (mi_cmd_var_delete): Likewise.
10555 (mi_cmd_var_set_format): Likewise.
10556 (mi_cmd_var_show_format): Likewise.
10557 (mi_cmd_var_info_num_children): Likewise.
10558 (mi_cmd_var_list_children): Likewise.
10559 (mi_cmd_var_info_type): Likewise.
10560 (mi_cmd_var_info_expression): Likewise.
10561 (mi_cmd_var_show_attributes): Likewise.
10562 (mi_cmd_var_assign): Likewise.
10563 (mi_cmd_var_update): Likewise.
10564 (mi_cmd_enable_pretty_printing): Likewise.
10565 (mi_cmd_var_set_update_range): Likewise.
10566 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10567 messages.
10568 (mi_cmd_target_file_put): Likewise.
10569 (mi_cmd_target_file_delete): Likewise.
10570 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10571 messages.
10572 (mi_cmd_stack_info_depth): Likewise.
10573 (mi_cmd_stack_list_locals): Likewise.
10574 (mi_cmd_stack_list_args): Likewise.
10575 (mi_cmd_stack_select_frame): Likewise.
10576 (mi_cmd_stack_select_frame): Likewise.
10577 (mi_cmd_stack_info_frame): Likewise.
10578 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10579 messages.
10580 (mi_cmd_file_list_exec_source_files): Likewise.
10581 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10582 (mi_cmd_env_cd): Likewise.
10583 (mi_cmd_env_path): Likewise.
10584 (mi_cmd_env_dir): Likewise.
10585 (mi_cmd_inferior_tty_show): Likewise.
10586 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10587 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10588 (mi_cmd_break_watch): Likewise.
10589
10590 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10591
10592 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10593 (ppc_linux_insert_hw_breakpoint): Likewise.
10594 (ppc_linux_remove_hw_breakpoint): Likewise.
10595 (ppc_linux_insert_watchpoint): Likewise.
10596
10597 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10598 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 PR fortran/11104 and DWARF unbound arrays detection.
10601 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10602 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10603 unspecified upper bound.
10604 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10605 variables array_size_array, tmp_type and offset_item. New variable
10606 array. Remove call to f77_get_upperbound. New variables array_type
10607 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10608 the final call to deprecated_set_value_type.
10609
10610 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 Make value allocations more lazy.
10613 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10614 instead of allocate_value and set_value_lazy when possible.
10615 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10616 instead of allocate_value and set_value_lazy.
10617 * findvar.c (value_of_register_lazy): Likewise.
10618 (read_var_value): Remove V preallocation, call just check_typedef in
10619 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10620 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10621 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10622 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10623 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10624 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10625 the end, remove set_value_lazy there.
10626 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10627 instead of allocate_value and set_value_lazy when possible.
10628 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10629 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10630 of allocate_value and set_value_lazy.
10631 (value_from_contents_and_address): Use allocate_value_lazy instead of
10632 allocate_value and set_value_lazy when possible.
10633
10634 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10635
10636 * disasm.c (dump_insns): Support dumping opcodes for MI.
10637 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10638 dumping of instruction opcodes.
10639
10640 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10641
10642 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10643 appropiately.
10644
10645 2011-01-11 Tom Tromey <tromey@redhat.com>
10646
10647 * thread.c (do_captured_thread_select): Emit newline before
10648 printing frame.
10649
10650 2011-01-11 Michael Snyder <msnyder@vmware.com>
10651
10652 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10653 * score-tdep.c: Ditto.
10654 * score-tdep.h: Ditto.
10655 * ser-base.c: Ditto.
10656 * ser-go32.c: Ditto.
10657 * serial.c: Ditto.
10658 * serial.h: Ditto.
10659 * ser-mingw.c: Ditto.
10660 * ser-pipe.c: Ditto.
10661 * ser-tcp.c: Ditto.
10662 * ser-unix.c: Ditto.
10663 * sh64-tdep.c: Ditto.
10664 * shnbsd-nat.c: Ditto.
10665 * sh-tdep.c: Ditto.
10666 * sh-tdep.h: Ditto.
10667 * solib.c: Ditto.
10668 * solib-darwin.c: Ditto.
10669 * solib-frv.c: Ditto.
10670 * solib.h: Ditto.
10671 * solib-irix.c: Ditto.
10672 * solib-osf.c: Ditto.
10673 * solib-pa64.c: Ditto.
10674 * solib-som.c: Ditto.
10675 * solib-spu.c: Ditto.
10676 * solib-sunos.c: Ditto.
10677 * solib-svr4.c: Ditto.
10678 * solist.h: Ditto.
10679 * sol-thread.c: Ditto.
10680 * somread.c: Ditto.
10681 * source.c: Ditto.
10682 * source.h: Ditto.
10683 * sparc64-linux-tdep.c: Ditto.
10684 * sparc64-tdep.c: Ditto.
10685 * sparc-linux-nat.c: Ditto.
10686 * sparc-linux-tdep.c: Ditto.
10687 * sparc-sol2-nat.c: Ditto.
10688 * sparc-sol2-tdep.c: Ditto.
10689 * sparc-tdep.c: Ditto.
10690 * sparc-tdep.h: Ditto.
10691 * spu-tdep.c: Ditto.
10692 * stabsread.c: Ditto.
10693 * stabsread.h: Ditto.
10694 * stack.c: Ditto.
10695 * symfile.c: Ditto.
10696 * symfile.h: Ditto.
10697 * symmisc.c: Ditto.
10698 * symtab.c: Ditto.
10699 * symtab.h: Ditto.
10700 * target.c: Ditto.
10701 * target-descriptions.c: Ditto.
10702 * target-descriptions.h: Ditto.
10703 * target.h: Ditto.
10704 * target-memory.c: Ditto.
10705 * terminal.h: Ditto.
10706 * thread.c: Ditto.
10707 * top.c: Ditto.
10708 * tracepoint.c: Ditto.
10709 * tracepoint.h: Ditto.
10710 * trad-frame.h: Ditto.
10711 * typeprint.c: Ditto.
10712
10713 2011-01-11 Michael Snyder <msnyder@vmware.com>
10714
10715 * ui-file.c: Comment cleanup, mostly periods and spaces.
10716 * ui-file.h: Ditto.
10717 * ui-out.c: Ditto.
10718 * ui-out.h: Ditto.
10719 * utils.c: Ditto.
10720 * v850-tdep.c: Ditto.
10721 * valarith.c: Ditto.
10722 * valops.c: Ditto.
10723 * valprint.c: Ditto.
10724 * valprint.h: Ditto.
10725 * value.c: Ditto.
10726 * value.h: Ditto.
10727 * varobj.c: Ditto.
10728 * varobj.h: Ditto.
10729 * vax-tdep.c: Ditto.
10730 * vec.c: Ditto.
10731 * vec.h: Ditto.
10732 * version.h: Ditto.
10733 * windows-nat.c: Ditto.
10734 * windows-tdep.c: Ditto.
10735 * xcoffread.c: Ditto.
10736 * xcoffsolib.c: Ditto.
10737 * xml-support.c: Ditto.
10738 * xstormy16-tdep.c: Ditto.
10739 * xtensa-tdep.c: Ditto.
10740 * xtensa-tdep.h: Ditto.
10741
10742 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10743
10744 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10745 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10746
10747 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10748 Thiago Jung Bauermann <bauerman@br.ibm.com>
10749
10750 Implement support for PowerPC BookE ranged watchpoints.
10751 * breakpoint.h
10752 (struct breakpoint_ops) <resources_needed>: New method.
10753 Initialize to NULL in all existing breakpoint_ops instances.
10754 (struct breakpoint) <exact>: New field.
10755 (target_exact_watchpoints): Declare external global.
10756 * breakpoint.c (target_exact_watchpoints): New global flag.
10757 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10758 b->enable_state to bp_enabled before calling
10759 hw_watchpoint_used_count.
10760 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10761 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10762 if available.
10763 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10764 if the watchpoint is exact.
10765 (resources_needed_watchpoint): New function.
10766 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10767 (watch_command_1): Set b->exact if the user asked for an exact
10768 watchpoint and one can be set.
10769 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10770 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10771 the user asks for an exact watchpoint and one can be set. Return
10772 number of needed debug registers to watch the expression.
10773 * gdbtypes.c (is_scalar_type): New function, based on
10774 valprint.c:scalar_type_p.
10775 (is_scalar_type_recursive): New function.
10776 * gdbtypes.h (is_scalar_type_recursive): Declare.
10777 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10778 handle regions when ranged watchpoints are available.
10779 (create_watchpoint_request): New function.
10780 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10781 create_watchpoint_request.
10782 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10783 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10784 `set powerpc' and `show powerpc' commands.
10785 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10786 Mention documentation comment in the target macro.
10787 (target_region_ok_for_hw_watchpoint): Document return value.
10788
10789 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10790
10791 * breakpoint.c (update_watchpoint): Decide on using a software or
10792 hardware watchpoint after the bp_locations are created.
10793
10794 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10795
10796 Convert hardware watchpoints to use breakpoint_ops.
10797 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10798 <insert_location>: ... this. Return int instead of void.
10799 Accept pointer to struct bp_location instead of pointer to
10800 struct breakpoint. Adapt all implementations.
10801 (breakpoint_ops) <remove>: Rename to...
10802 <remove_location>: ... this. Accept pointer to struct bp_location
10803 instead of pointer to struct breakpoint. Adapt all implementations.
10804 * breakpoint.c (insert_catchpoint): Delete function.
10805 (insert_bp_location): Call the watchpoint or catchpoint's
10806 breakpoint_ops.insert method.
10807 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10808 breakpoint_ops.remove method.
10809 (insert_watchpoint, remove_watchpoint): New functions.
10810 (watchpoint_breakpoint_ops): New structure.
10811 (watch_command_1): Initialize the OPS field.
10812 * inf-child.c (inf_child_insert_fork_catchpoint)
10813 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10814 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10815 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10816 Delete functions.
10817 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10818 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10819 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10820 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10821 * target.c (update_current_target): Change default implementation of
10822 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10823 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10824 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10825 to_set_syscall_catchpoint to return_one.
10826 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10827 (debug_to_insert_exec_catchpoint): Report return value.
10828 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10829 (to_insert_exec_catchpoint): Change declaration to return int instead
10830 of void.
10831
10832 2011-01-11 Michael Snyder <msnyder@vmware.com>
10833
10834 * arm-tdep.c: Internationalization.
10835 * c-lang.c: Ditto.
10836 * charset.c: Ditto.
10837 * fork-child.c: Ditto.
10838 * nto-procfs.c: Ditto.
10839 * ppc-sysv-tdep.c: Ditto.
10840 * procfs.c: Ditto.
10841 * remote-mips.c: Ditto.
10842 * remote.c: Ditto.
10843 * rs6000-nat.c: Ditto.
10844 * rs6000-tdep.c: Ditto.
10845 * target.c: Ditto.
10846 * valops.c: Ditto.
10847 * value.c: Ditto.
10848 * xml-support.c: Ditto.
10849 * mi/mi-cmd-break.c: Ditto.
10850 * mi/mi-cmd-var.c: Ditto.
10851 * mi/mi-interp.c: Ditto.
10852 * mi/mi-main.c: Ditto.
10853
10854 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10855
10856 * remote-sim.c (gdbsim_store_register): Update API to
10857 sim_store_register to check more error conditions.
10858
10859 2011-01-10 Michael Snyder <msnyder@vmware.com>
10860
10861 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10862 * nto-tdep.c: Ditto.
10863 * nto-tdep.h: Ditto.
10864 * objc-exp.y: Ditto.
10865 * objc-lang.c: Ditto.
10866 * objfiles.c: Ditto.
10867 * objfiles.h: Ditto.
10868 * observer.c: Ditto.
10869 * opencl-lang.c: Ditto.
10870 * osabi.c: Ditto.
10871 * parse.c: Ditto.
10872 * parser-defs.h: Ditto.
10873 * p-exp.y: Ditto.
10874 * p-lang.c: Ditto.
10875 * posix-hdep.c: Ditto.
10876 * ppcbug-rom.c: Ditto.
10877 * ppc-linux-nat.c: Ditto.
10878 * ppc-linux-tdep.c: Ditto.
10879 * ppc-linux-tdep.h: Ditto.
10880 * ppcnbsd-tdep.c: Ditto.
10881 * ppcobsd-tdep.c: Ditto.
10882 * ppcobsd-tdep.h: Ditto.
10883 * ppc-sysv-tdep.c: Ditto.
10884 * ppc-tdep.h: Ditto.
10885 * printcmd.c: Ditto.
10886 * proc-abi.c: Ditto.
10887 * proc-flags.c: Ditto.
10888 * procfs.c: Ditto.
10889 * proc-utils.h: Ditto.
10890 * progspace.h: Ditto.
10891 * prologue-value.c: Ditto.
10892 * prologue-value.h: Ditto.
10893 * psympriv.h: Ditto.
10894 * psymtab.c: Ditto.
10895 * p-typeprint.c: Ditto.
10896 * p-valprint.c: Ditto.
10897 * ravenscar-sparc-thread.c: Ditto.
10898 * ravenscar-thread.c: Ditto.
10899 * ravenscar-thread.h: Ditto.
10900 * record.c: Ditto.
10901 * regcache.c: Ditto.
10902 * regcache.h: Ditto.
10903 * remote.c: Ditto.
10904 * remote-fileio.c: Ditto.
10905 * remote-fileio.h: Ditto.
10906 * remote.h: Ditto.
10907 * remote-m32r-sdi.c: Ditto.
10908 * remote-mips.c: Ditto.
10909 * remote-sim.c: Ditto.
10910 * rs6000-aix-tdep.c: Ditto.
10911 * rs6000-nat.c: Ditto.
10912 * rs6000-tdep.c: Ditto.
10913
10914 2011-01-10 Michael Snyder <msnyder@vmware.com>
10915
10916 * charset.c (validate): Internationalization.
10917 * coffread.c (read_one_sym): Ditto.
10918 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10919 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10920 * inflow.c (new_tty): Ditto.
10921 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10922 * m32c-tdep.c (m32c_return_value): Ditto.
10923 * mep-tdep.c (mep_store_return_value): Ditto.
10924 * score-tdep.c (score7_fetch_insn): Ditto.
10925 * ser-mingw.c (pipe_windows_open): Ditto.
10926 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10927 * spu-tdep.c (spu_register_type): Ditto.
10928 * tracepoint.c (trace_find_command): Ditto.
10929 * valarith.c (value_pos): Ditto.
10930
10931 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10932
10933 * ada-valprint.c (printstr): Minor comment reformatting.
10934
10935 2011-01-08 Michael Snyder <msnyder@vmware.com>
10936
10937 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10938 markup.
10939
10940 2011-01-08 Michael Snyder <msnyder@vmware.com>
10941
10942 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10943 * hppa-hpux-tdep.c: Ditto.
10944 * hppa-linux-nat.c: Ditto.
10945 * hppa-linux-tdep.c: Ditto.
10946 * hppanbsd-tdep.c: Ditto.
10947 * hppa-tdep.c: Ditto.
10948 * hppa-tdep.h: Ditto.
10949 * hpux-thread.c: Ditto.
10950 * i386-cygwin-tdep.c: Ditto.
10951 * i386-darwin-nat.c: Ditto.
10952 * i386gnu-nat.c: Ditto.
10953 * i386-linux-nat.c: Ditto.
10954 * i386-linux-tdep.c: Ditto.
10955 * i386-nat.c: Ditto.
10956 * i386-nat.h: Ditto.
10957 * i386nbsd-tdep.c: Ditto.
10958 * i386-sol2-nat.c: Ditto.
10959 * i386-stub.c: Ditto.
10960 * i386-tdep.c: Ditto.
10961 * i386-tdep.h: Ditto.
10962 * i387-tdep.c: Ditto.
10963 * ia64-linux-nat.c: Ditto.
10964 * ia64-linux-tdep.c: Ditto.
10965 * ia64-tdep.c: Ditto.
10966 * infcall.c: Ditto.
10967 * infcall.h: Ditto.
10968 * infcmd.c: Ditto.
10969 * inferior.c: Ditto.
10970 * inferior.h: Ditto.
10971 * infloop.c: Ditto.
10972 * inflow.c: Ditto.
10973 * infrun.c: Ditto.
10974 * interps.c: Ditto.
10975 * interps.h: Ditto.
10976 * iq2000-tdep.c: Ditto.
10977 * irix5-nat.c: Ditto.
10978 * jit.c: Ditto.
10979 * jit.h: Ditto.
10980 * jv-exp.y: Ditto.
10981 * jv-lang.c: Ditto.
10982 * jv-lang.h: Ditto.
10983 * jv-typeprint.c: Ditto.
10984 * jv-valprint.c: Ditto.
10985 * language.c: Ditto.
10986 * language.h: Ditto.
10987 * linespec.c: Ditto.
10988 * linux-fork.c: Ditto.
10989 * linux-nat.c: Ditto.
10990 * linux-thread-db.c: Ditto.
10991 * lm32-tdep.c: Ditto.
10992
10993 2011-01-08 Michael Snyder <msnyder@vmware.com>
10994
10995 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10996 * m2-lang.c: Ditto.
10997 * m2-typeprint.c: Ditto.
10998 * m2-valprint.c: Ditto.
10999 * m32c-tdep.c: Ditto.
11000 * m32r-linux-nat.c: Ditto.
11001 * m32r-rom.c: Ditto.
11002 * m32r-tdep.c: Ditto.
11003 * m32r-tdep.h: Ditto.
11004 * m68hc11-tdep.c: Ditto.
11005 * m58klinux-nat.c: Ditto.
11006 * m68k-tdep.c: Ditto.
11007 * m88k-tdep.c: Ditto.
11008 * m88k-tdep.h: Ditto.
11009 * machoread.c: Ditto.
11010 * macrocmd.c: Ditto.
11011 * macroexp.c: Ditto.
11012 * macrotab.c: Ditto.
11013 * main.c: Ditto.
11014 * maint.c: Ditto.
11015 * mdebugread.c: Ditto.
11016 * mdebugread.h: Ditto.
11017 * memattr.c: Ditto.
11018 * memattr.h: Ditto.
11019 * memory-map.h: Ditto.
11020 * mep-tdep.c: Ditto.
11021 * microblaze-rom.c: Ditto.
11022 * microblaze-tdep.c: Ditto.
11023 * minsyms.c: Ditto.
11024 * mips-irix-tdep.c: Ditto.
11025 * mips-linux-nat.c: Ditto.
11026 * mips-linux-tdep.c: Ditto.
11027 * mips-linux-tdep.h: Ditto.
11028 * mipsnbsd-nat.c: Ditto.
11029 * mipsnbsd-tdep.c: Ditto.
11030 * mipsread.c: Ditto.
11031 * mips-tdep.c: Ditto.
11032 * mips-tdep.h: Ditto.
11033 * mn10300-linux-tdep.c: Ditto.
11034 * mn10300-tdep.c: Ditto.
11035 * mn10300-tdep.h: Ditto.
11036 * monitor.c: Ditto.
11037 * monitor.h: Ditto.
11038 * moxie-tdep.c: Ditto.
11039 * moxie-tdep.h: Ditto.
11040 * mt-tdep.c: Ditto.
11041
11042 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11043
11044 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11045
11046 2011-01-08 Robert Millan <rmh@gnu.org>
11047
11048 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11049
11050 2011-01-07 Michael Snyder <msnyder@vmware.com>
11051
11052 * charset.c (_initialize_charset): Fix typo in string.
11053
11054 2011-01-07 Michael Snyder <msnyder@vmware.com>
11055
11056 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11057 for i18n.
11058 * tui/tui-layout.c (tui_set_layout_for_display_command):
11059 Split line so that operator goes to beginning of line.
11060 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11061 assignment out of if statement.
11062
11063 2011-01-07 Michael Snyder <msnyder@vmware.com>
11064
11065 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11066 * ada-lang.h: Ditto.
11067 * ada-tasks.c: Ditto.
11068 * ada-valprint.c: Ditto.
11069 * aix-threads.c: Ditto.
11070 * alpha-linux-nat.c: Ditto.
11071 * alpha-linux-tdep.c: Ditto.
11072 * alpha-mdebug-tdep.c: Ditto.
11073 * alpha-nat.c: Ditto.
11074 * alpha-osf1-tdep.c: Ditto.
11075 * alpha-tdep.c: Ditto.
11076 * alphabsd-nat.c: Ditto.
11077 * alphabsd-tdep.c: Ditto.
11078 * amd64-darwin-tdep.c: Ditto.
11079 * amd64-linux-nat.c: Ditto.
11080 * amd64-linux-tdep.c: Ditto.
11081 * amd64-sol2-tdep.c: Ditto.
11082 * amd64-tdep.c: Ditto.
11083 * amd64-fbsd-tdep.c: Ditto.
11084 * amd64-nbsd-tdep.c: Ditto.
11085 * amd64-obsd-tdep.c: Ditto.
11086 * amd64-linux-nat.c: Ditto.
11087 * amd64-linux-tdep.c: Ditto.
11088 * arm-tdep.c: Ditto.
11089 * arm-tdep.h: Ditto.
11090 * armnbsd-nat.c: Ditto.
11091 * avr-tdep.c: Ditto.
11092 * bfin-tdep.c: Ditto.
11093 * bsd-kvm.c: Ditto.
11094 * c-typeprintc: Ditto.
11095 * c-valprint.c: Ditto.
11096 * coff-pe-read.h: Ditto.
11097 * coffreead.c: Ditto.
11098 * cris-tdep.c: Ditto.
11099 * d-lang.c: Ditto.
11100 * darwin-nat-info.c: Ditto.
11101 * darwin-nat.c: Ditto.
11102 * dbug-rom.c: Ditto.
11103 * dbxread.c: Ditto.
11104 * dcache.c: Ditto.
11105 * dcache.h: Ditto.
11106 * dec-thread.c: Ditto.
11107 * defs.h: Ditto.
11108 * demangle.c: Ditto.
11109 * dicos-tdep.c: Ditto.
11110 * dictionary.c: Ditto.
11111 * dictionary.h: Ditto.
11112 * dink32-rom.c: Ditto.
11113 * disasm.c: Ditto.
11114 * doublest.c: Ditto.
11115 * dsrec.c: Ditto.
11116 * dummy-frame.c: Ditto.
11117 * dwarf2-frame.c: Ditto.
11118 * dwarf2expr.c: Ditto.
11119 * dwarf2loc.c: Ditto.
11120 * dwarf2read.c: Ditto.
11121 * elfread.c: Ditto.
11122 * environ.c: Ditto.
11123 * eval.c: Ditto.
11124 * event-top.h: Ditto.
11125 * exceptions.c: Ditto.
11126 * exceptions.h: Ditto.
11127 * exec.c: Ditto.
11128 * expprint.c: Ditto.
11129 * expression.h: Ditto.
11130 * f-exp.y: Ditto.
11131 * f-lang.c: Ditto.
11132 * f-lang.h: Ditto.
11133 * f-typeprint.c: Ditto.
11134 * f-valprint.c: Ditto.
11135 * fbsd-nat.c: Ditto.
11136 * findvar.c: Ditto.
11137 * fork-child.c: Ditto.
11138 * frame.c: Ditto.
11139 * frame.h: Ditto.
11140 * frv-linux-tdep.c: Ditto.
11141 * frv-tdep.c: Ditto.
11142 * gcore.c: Ditto.
11143 * gdb-stabs.h: Ditto.
11144 * gdb_assert.h: Ditto.
11145 * gdb_string.h: Ditto.
11146 * gdb_thread_db.h: Ditto.
11147 * gdb_wait.h: Ditto.
11148 * gdbarch.sh: Ditto.
11149 * gdbcore.h: Ditto.
11150 * gdbthread.h: Ditto.
11151 * gdbtypes.c: Ditto.
11152 * gdbtypes.h: Ditto.
11153 * gnu-nat.c: Ditto.
11154 * gnu-nat.h: Ditto.
11155 * gnu-v2-abi.c: Ditto.
11156 * gnu-v3-abi.c: Ditto.
11157 * go32-nat.c: Ditto.
11158 * gdbarch.c: Regenerate.
11159 * gdbarch.h: Regenerate.
11160
11161 2011-01-07 Michael Snyder <msnyder@vmware.com>
11162
11163 * ax-gdb.c: Adjust some long output strings.
11164 * breakpoint.c: Ditto.
11165 * charset.c: Ditto.
11166 * cp-abi.c: Ditto.
11167 * infcall.c: Ditto.
11168 * infrun.c: Ditto.
11169 * linux-nat.c: Ditto.
11170 * solib-pa64.c: Ditto.
11171 * solib-som.c: Ditto.
11172
11173 2011-01-06 Tom Tromey <tromey@redhat.com>
11174
11175 PR python/12367:
11176 * NEWS: Add item.
11177 * python/python.c (GdbMethods): Add "newest_frame" method.
11178 * python/python-internal.h (gdbpy_newest_frame): Declare.
11179 * python/py-frame.c (gdbpy_newest_frame): New function.
11180
11181 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11182
11183 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11184 * jit.c (jit_debug): New variable.
11185 (show_jit_debug): New function.
11186 (struct target_buffer): Use ULONGEST.
11187 (bfd_open_from_target_memory): Likewise.
11188 (jit_register_code, jit_inferior_init): Add debug output.
11189 (_initialize_jit): Register "debug jit" command.
11190
11191 2011-01-06 Tom Tromey <tromey@redhat.com>
11192
11193 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11194 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11195 and ARCH_FRAME.
11196
11197 2011-01-06 Tom Tromey <tromey@redhat.com>
11198
11199 * python/py-frame.c (frapy_block): Use get_frame_block.
11200
11201 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11202
11203 Do not stop on SIGPRIO signals by default
11204 * infrun.c (_initialize_infrun): Unset signal_stop and
11205 signal_print for TARGET_SIGNAL_PRIO.
11206
11207 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11208
11209 * ada-tasks.c: Fix style violation in comment.
11210
11211 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11212
11213 * linespec.c (decode_compound, find_method): Remove trailing \n
11214 at end of error string.
11215 * solib-irix.c (irix_current_sos): Likewise.
11216 * varobj.c (uninstall_variable): Likewise.
11217
11218 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11219
11220 * copyright.py: New script.
11221 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11222 Launch emacs without exec'ing. Call copyright.py afterwards.
11223
11224 2011-01-05 Michael Snyder <msnyder@vmware.com>
11225
11226 * addrmap.c: Shorten lines of >= 80 columns.
11227 * arch-utils.c: Ditto.
11228 * arch-utils.h: Ditto.
11229 * ax-gdb.c: Ditto.
11230 * ax-general.c: Ditto.
11231 * bcache.c: Ditto.
11232 * blockframe.c: Ditto.
11233 * breakpoint.c: Ditto.
11234 * buildsym.c: Ditto.
11235 * c-lang.c: Ditto.
11236 * c-typeprint.c: Ditto.
11237 * charset.c: Ditto.
11238 * coffread.c: Ditto.
11239 * command.h: Ditto.
11240 * corelow.c: Ditto.
11241 * cp-abi.c: Ditto.
11242 * cp-namespace.c: Ditto.
11243 * cp-support.c: Ditto.
11244 * dbug-rom.c: Ditto.
11245 * dbxread.c: Ditto.
11246 * defs.h: Ditto.
11247 * dfp.c: Ditto.
11248 * dfp.h: Ditto.
11249 * dictionary.c: Ditto.
11250 * disasm.c: Ditto.
11251 * doublest.c: Ditto.
11252 * dwarf2-frame.c: Ditto.
11253 * dwarf2expr.c: Ditto.
11254 * dwarf2loc.c: Ditto.
11255 * dwarf2read.c: Ditto.
11256 * elfread.c: Ditto.
11257 * eval.c: Ditto.
11258 * event-loop.c: Ditto.
11259 * event-loop.h: Ditto.
11260 * exceptions.h: Ditto.
11261 * exec.c: Ditto.
11262 * expprint.c: Ditto.
11263 * expression.h: Ditto.
11264 * f-lang.c: Ditto.
11265 * f-valprint.c: Ditto.
11266 * findcmd.c: Ditto.
11267 * frame-base.c: Ditto.
11268 * frame-unwind.c: Ditto.
11269 * frame-unwind.h: Ditto.
11270 * frame.c: Ditto.
11271 * frame.h: Ditto.
11272 * gcore.c: Ditto.
11273 * gdb-stabs.h: Ditto.
11274 * gdb_assert.h: Ditto.
11275 * gdb_dirent.h: Ditto.
11276 * gdb_obstack.h: Ditto.
11277 * gdbcore.h: Ditto.
11278 * gdbtypes.c: Ditto.
11279 * gdbtypes.h: Ditto.
11280 * inf-ttrace.c: Ditto.
11281 * infcall.c: Ditto.
11282 * infcmd.c: Ditto.
11283 * inflow.c: Ditto.
11284 * infrun.c: Ditto.
11285 * inline-frame.h: Ditto.
11286 * language.c: Ditto.
11287 * language.h: Ditto.
11288 * libunwind-frame.c: Ditto.
11289 * libunwind-frame.h: Ditto.
11290 * linespec.c: Ditto.
11291 * linux-nat.c: Ditto.
11292 * linux-nat.h: Ditto.
11293 * linux-thread-db.c: Ditto.
11294 * machoread.c: Ditto.
11295 * macroexp.c: Ditto.
11296 * macrotab.c: Ditto.
11297 * main.c: Ditto.
11298 * maint.c: Ditto.
11299 * mdebugread.c: Ditto.
11300 * memattr.c: Ditto.
11301 * minsyms.c: Ditto.
11302 * monitor.c: Ditto.
11303 * monitor.h: Ditto.
11304 * objfiles.c: Ditto.
11305 * objfiles.h: Ditto.
11306 * osabi.c: Ditto.
11307 * p-typeprint.c: Ditto.
11308 * p-valprint.c: Ditto.
11309 * parse.c: Ditto.
11310 * printcmd.c: Ditto.
11311 * proc-events.c: Ditto.
11312 * procfs.c: Ditto.
11313 * progspace.c: Ditto.
11314 * progspace.h: Ditto.
11315 * psympriv.h: Ditto.
11316 * psymtab.c: Ditto.
11317 * record.c: Ditto.
11318 * regcache.c: Ditto.
11319 * regcache.h: Ditto.
11320 * remote-fileio.c: Ditto.
11321 * remote.c: Ditto.
11322 * ser-mingw.c: Ditto.
11323 * ser-tcp.c: Ditto.
11324 * ser-unix.c: Ditto.
11325 * serial.c: Ditto.
11326 * serial.h: Ditto.
11327 * solib-frv.c: Ditto.
11328 * solib-irix.c: Ditto.
11329 * solib-osf.c: Ditto.
11330 * solib-pa64.c: Ditto.
11331 * solib-som.c: Ditto.
11332 * solib-sunos.c: Ditto.
11333 * solib-svr4.c: Ditto.
11334 * solib-target.c: Ditto.
11335 * solib.c: Ditto.
11336 * somread.c: Ditto.
11337 * source.c: Ditto.
11338 * stabsread.c: Ditto.
11339 * stabsread.c: Ditto.
11340 * stack.c: Ditto.
11341 * stack.h: Ditto.
11342 * symfile-mem.c: Ditto.
11343 * symfile.c: Ditto.
11344 * symfile.h: Ditto.
11345 * symmisc.c: Ditto.
11346 * symtab.c: Ditto.
11347 * symtab.h: Ditto.
11348 * target-descriptions.c: Ditto.
11349 * target-memory.c: Ditto.
11350 * target.c: Ditto.
11351 * target.h: Ditto.
11352 * terminal.h: Ditto.
11353 * thread.c: Ditto.
11354 * top.c: Ditto.
11355 * tracepoint.c: Ditto.
11356 * tracepoint.h: Ditto.
11357 * ui-file.c: Ditto.
11358 * ui-file.h: Ditto.
11359 * ui-out.h: Ditto.
11360 * user-regs.c: Ditto.
11361 * user-regs.h: Ditto.
11362 * utils.c: Ditto.
11363 * valarith.c: Ditto.
11364 * valops.c: Ditto.
11365 * valprint.c: Ditto.
11366 * valprint.h: Ditto.
11367 * value.c: Ditto.
11368 * varobj.c: Ditto.
11369 * varobj.h: Ditto.
11370 * vec.h: Ditto.
11371 * xcoffread.c: Ditto.
11372 * xcoffsolib.c: Ditto.
11373 * xcoffsolib.h: Ditto.
11374 * xml-syscall.c: Ditto.
11375 * xml-tdesc.c: Ditto.
11376
11377 2011-01-05 Michael Snyder <msnyder@vmware.com>
11378
11379 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11380 * cli/cli-decode.c: Ditto.
11381 * cli/cli-dump.c: Ditto.
11382 * cli/cli-logging.c: Ditto.
11383 * cli/cli-script.c: Ditto.
11384 * cli/cli-setshow.c: Ditto.
11385 * common/signals.c: Ditto.
11386 * mi/mi-cmd-break.c: Ditto.
11387 * mi/mi-cmd-disas.c: Ditto.
11388 * mi/mi-cmd-stack.c: Ditto.
11389 * mi/mi-cmd-var.c: Ditto.
11390 * mi/mi-cmds.c: Ditto.
11391 * mi/mi-common.h: Ditto.
11392 * mi/mi-console.c: Ditto.
11393 * mi/mi-interp.c: Ditto.
11394 * mi/mi-main.c: Ditto.
11395 * osf-share/cma_attr.c: Ditto.
11396 * osf-share/cma_deb_core.h: Ditto.
11397 * osf-share/cma_debug_client.h: Ditto.
11398 * osf-share/cma_handle.h: Ditto.
11399 * osf-share/cma_mutex.h: Ditto.
11400 * osf-share/cma_stack_int.h: Ditto.
11401 * osf-share/cma_tcb_defs.h: Ditto.
11402 * python/py-auto-load.c: Ditto.
11403 * python/py-breakpoint.c: Ditto.
11404 * python/py-cmd.c: Ditto.
11405 * python/py-frame.c: Ditto.
11406 * python/py-objfile.c: Ditto.
11407 * python/py-param.c: Ditto.
11408 * python/py-progspace.c: Ditto.
11409 * python/py-symbol.c: Ditto.
11410 * python/py-value.c: Ditto.
11411 * python/python-internal.h: Ditto.
11412 * python/python.c: Ditto.
11413 * tui/tui-data.c: Ditto.
11414 * tui/tui-disasm.c: Ditto.
11415 * tui/tui-hooks.c: Ditto.
11416 * tui/tui-io.c: Ditto.
11417 * tui/tui-layout.c: Ditto.
11418 * tui/tui-regs.c: Ditto.
11419 * tui/tui-source.c: Ditto.
11420 * tui/tui-stack.c: Ditto.
11421 * tui/tui-win.c: Ditto.
11422 * tui/tui-windata.c: Ditto.
11423 * tui/tui-winsource.c: Ditto.
11424
11425 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11426
11427 * configure.ac, gdb.1: Copyright year update.
11428
11429 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11430
11431 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11432 this_pc_in_block, morestack_msym and morestack_name. Check for
11433 "__morestack" minimal symbol there.
11434
11435 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11436
11437 * symfile.c (find_sym_fns): Add call to dont_repeat.
11438
11439 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11440
11441 Copyright year update in most files (performed by copyright.sh).
11442
11443 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11444
11445 * top.c (print_gdb_version): Update copyright year in version output.
11446
11447 For older changes see ChangeLog-2010.
11448 \f
11449 Local Variables:
11450 mode: change-log
11451 left-margin: 8
11452 fill-column: 74
11453 version-control: never
11454 coding: utf-8
11455 End:
This page took 0.268859 seconds and 5 git commands to generate.