Further fix the documentation in struct quick_symbol_functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-11-28 Joel Brobecker <brobecker@adacore.com>
2
3 * symfile.h (struct quick_symbol_functions): Fix the documentation
4 of field map_matching_symbols, as symbols are sorted using
5 strcmp_iw_ordered, not strcmp_iw.
6
7 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
8
9 * symfile.h (struct quick_symbol_functions): Update the
10 documentation for field map_matching_symbols.
11
12 2011-11-28 Joel Brobecker <brobecker@adacore.com>
13
14 * ada-lang.c (compare_names): Fix wrong return value in case
15 string1 starts with the same contents as string2, followed
16 by an underscore that do not start a symbol name suffix.
17
18 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
19
20 PR python/13369
21 PR python/13374
22
23 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
24 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
25 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
26 exceptions.
27 * python/py-type.c (typy_strip_typedefs): Ditto.
28 (typy_legacy_template_argument): Ditto.
29 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
30 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
31
32 2011-11-27 Joel Brobecker <brobecker@acacore.com>
33
34 * remote.c (remote_get_tracepoint_status): Delete addrbuf
35 local variable. Avoid use of sprintf_vma.
36
37 2011-11-27 Sanjoy Das <sdas@igalia.com>
38
39 Fix regression in jit.exp.
40 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
41 (jit_register_code): Set the jit_objfile_data field to the correct
42 value.
43
44 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
45
46 * alpha-tdep.c (br_opcode): New.
47 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
48 (alpha_deal_with_atomic_sequence): New function.
49 (alpha_gdbarch_init): Handle single stepping of atomic sequences
50 with alpha_deal_with_atomic_sequence.
51
52 2011-11-24 Tristan Gingold <gingold@adacore.com>
53
54 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
55 fields. Add oso_sym, end_sym and nbr_syms.
56 (macho_register_oso): Change interface.
57 (macho_symtab_add_minsym): New function.
58 (macho_symtab_read): Rewritten.
59 (get_archive_prefix_len): Remove trailing blanks.
60 (oso_el_compare_name): Add comment.
61 (struct macho_sym_hash_entry): New structure.
62 (macho_relocate_common_syms): Remove.
63 (macho_sym_hash_newfunc): New function.
64 (macho_resolve_oso_sym_with_minsym): Likewise.
65 (macho_add_oso_symfile): Rewritten.
66 (macho_symfile_read_all_oso): Remove trailing blanks.
67 Adjust code to free oso vector.
68 (macho_symfile_read): Likewise.
69 Move code to initialize minimal symbol
70
71 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
72
73 * mips-tdep.c (extended_offset): Fix formatting.
74
75 2011-11-23 Doug Evans <dje@google.com>
76
77 * dwarf2read.c (dw2_lookup_symtab): Add comment.
78 (dw2_expand_symtabs_with_filename): Ditto.
79 (dw2_expand_symtabs_matching): Ditto.
80 (dw2_map_symbol_filenames): Ditto.
81
82 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
83
84 * ada-lang.c (assign_aggregate): Minor reformatting.
85
86 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
87
88 * ada-lang.c (assign_aggregate): Remove declaration of local
89 variable `i' which is shadowing another variable with the same
90 name declared in the outer scope.
91
92 2011-11-23 Joel Brobecker <brobecker@adacore.com>
93
94 * ada-lang.c (get_base_type): Renames base_type. Adjust all
95 calls throughout this file.
96
97 2011-11-23 Joel Brobecker <brobecker@adacore.com>
98
99 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
100 FormatMessage.
101
102 2011-11-22 Tom Tromey <tromey@redhat.com>
103
104 PR mi/8444:
105 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
106 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
107 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
108 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
109 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
110 (print_it_catch_syscall, print_it_catch_exec)
111 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
112 (bpstat_print): Add 'kind' argument. Handle
113 TARGET_WAITKIND_LOADED.
114 * infrun.c (normal_stop): Update for bpstat_print change. Don't
115 handle TARGET_WAITKIND_LOADED here.
116 * breakpoint.h (bpstat_print): Update.
117
118 2011-11-22 Tom Tromey <tromey@redhat.com>
119
120 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
121
122 2011-11-22 Tom Tromey <tromey@redhat.com>
123
124 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
125 Use static_assert to check the size of
126 async_reason_string_lookup.
127 * common/gdb_assert.h (static_assert): New macro.
128
129 2011-11-22 Alan Modra <amodra@gmail.com>
130
131 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
132 destination calculation. Don't expect >> to sign extend. Don't
133 add a break if branch lands inside the sequence anywhere.
134
135 2011-11-21 Keith Seitz <keiths@redhat.com>
136
137 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
138 -var-evaluate-expression of an enumeration and fix expected result.
139 * gdb.mi/mi2-varvdisplay.exp: Likewise.
140
141 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
142
143 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
144 the case where osdata->items is empty. Rename column names to a
145 canonical form to avoid problems with unusual column names.
146
147 2011-11-21 Yao Qi <yao@codesourcery.com>
148
149 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
150
151 2011-11-20 Stan Shebs <stan@codesourcery.com>
152
153 * NEWS: Mention tracepoint additions.
154 * breakpoint.h (struct tracepoint): New field traceframe_usage.
155 * breakpoint.c (print_one_breakpoint_location): Identify
156 tracepoints as such when reporting hit counts, report
157 trace buffer usage.
158 (create_tracepoint_from_upload): Copy status info.
159 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
160 add fields user_name, notes, start_time, stop_time.
161 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
162 * tracepoint.c (trace_user): New global.
163 (trace_notes): New global.
164 (trace_stop_notes): New global.
165 (start_tracing): Add argument and trace note handling.
166 (stop_tracing): Ditto.
167 (trace_start_command): Add notes argument.
168 (trace_stop_command): Ditto.
169 (trace_status_command): Report additional status info.
170 (trace_status_mi): Similarly.
171 (trace_save): Update, record tracepoint status.
172 (set_disconnected_tracing): Call target method directly.
173 (send_disconnected_tracing_value): Remove.
174 (set_trace_user): New function.
175 (set_trace_notes): New function.
176 (set_trace_stop_notes): New function.
177 (parse_trace_status): Handle additional status.
178 (parse_tracepoint_status): New function.
179 (parse_tracepoint_definition): Call it.
180 (tfile_get_tracepoint_status): New function.
181 (init_tfile_ops): Use it.
182 (_initialize_tracepoint): Add new setshows.
183 * target.h (struct target_ops): New methods to_get_tracepoint_status
184 and to_set_trace_notes.
185 (target_get_tracepoint_status): New macro.
186 (target_set_trace_notes): New macro.
187 * target.c (update_current_target): Add new methods.
188 * remote.c (remote_get_tracepoint_status): New function.
189 (remote_set_trace_notes): New function.
190 (init_remote_ops): Add them.
191 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
192 (mi_cmd_trace_stop): Ditto.
193
194 2011-11-20 Sanjoy Das <sdas@igalia.com>
195
196 * jit.c: Include regcache.h.
197 (jit_gdbarch_data, jit_frame_unwind): New static variables.
198 (jit_unwind_reg_set_impl, free_reg_value_impl)
199 (jit_unwind_reg_get_impl, jit_frame_sniffer)
200 (jit_frame_unwind_stop_reason, jit_frame_this_id)
201 (jit_frame_prev_register, jit_dealloc_cache)
202 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
203 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
204 jit_prepend_unwinder.
205 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
206
207 2011-11-20 Sanjoy Das <sdas@igalia.com>
208
209 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
210 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
211 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
212 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
213 (finalize_symtab, jit_object_close_impl)
214 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
215 (free_objfile_data): New functions.
216 (_initialize_jit): Register jit_objfile_data with a proper cleanup
217 function.
218
219 2011-11-20 Sanjoy Das <sdas@igalia.com>
220
221 * jit.c: Include gdb-dlfcn.h.
222 (loaded_jit_reader, reader_init_fn_sym): New static variables.
223 (jit_reader_load, jit_reader_load_command)
224 (jit_reader_unload_command): New functions.
225 (_initialize_jit): Add commands "jit-reader-load" and
226 "jit-reader-unload".
227
228 2011-11-20 Sanjoy Das <sdas@igalia.com>
229
230 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
231 * config.in: Add new #define HAVE_LIBDL.
232 * configure.ac: Add check for -ldl.
233 * configure: Re-generated by autoconf.
234 * gdb-dlfcn.c: New file.
235 * gdb-dlfcn.h: New file.
236
237 2011-11-20 Sanjoy Das <sdas@igalia.com>
238
239 * config.in: Add new #defines: JIT_READER_DIR and
240 JIT_READER_DIR_RELOCATABLE.
241 * configure.ac: New GDB directory entry for jit-reader-dir.
242 * configure: Re-generated by autoconf.
243 * jit.c: New static variable: const char *jit_reader_dir.
244 (_initialize_jit): Relocate jit_reader_dir.
245
246 2011-11-20 Sanjoy Das <sdas@igalia.com>
247
248 * Makefile.in: Add jit-reader.h as a header. Have it installed in
249 $(includedir)/gdb.
250 * configure.ac: Generate a correct value for TARGET_PTR for
251 jit-reader.h. Tell configure to generate jit-reader.h from
252 jit-reader.in.
253 * configure: Re-generated by autoconf.
254 * jit-reader.in: New file.
255 * jit.c: Include jit-reader.h.
256
257 2011-11-20 Sanjoy Das <sdas@igalia.com>
258
259 * MAINTAINERS (Write After Approval): Add myself to the list.
260
261 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
262
263 * findvar.c (read_frame_register_value): Respect value_offset
264 of the register value. Remove big-endian special case.
265
266 2011-11-18 Tom Tromey <tromey@redhat.com>
267
268 PR build/7196:
269 * remote.c (putpkt_for_catch_errors): New function.
270 (remote_kill): Use it.
271
272 2011-11-18 Yao Qi <yao@codesourcery.com>
273
274 * breakpoint.c (create_breakpoint): Produce query message according to
275 breakpoint's type.
276 Allocate tracepoint per correct type.
277 Don't check SALs for pending fast tracepoints.
278 * tracepoint.c (process_tracepoint_on_disconnect): New.
279 (disconnect_tracing): Call process_tracepoint_on_disconnect.
280
281 2011-11-18 Yao Qi <yao@codesourcery.com>
282
283 * breakpoint.c (install_breakpoint): Add one more parameter so that
284 update_global_location_list is called conditionally.
285 (create_fork_vfork_event_catchpoint): Update.
286 (create_syscall_event_catchpoint): Update.
287 (create_breakpoint_sal): Update.
288 (create_breakpoint_sal): Update. Call do_cleanups before
289 install_breakpoint.
290 * ada-lang.c (create_ada_exception_catchpoint): Update.
291 * breakpoint.h (install_breakpoint): Update declaration.
292
293 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
294
295 * spu-tdep.c (spu_return_value): Fix handling of
296 TYPE_CALLING_CONVENTION annotation.
297
298 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
299
300 * skip.c (skip_function_command): Work around uninitialized
301 variable warning.
302
303 2011-11-16 David S. Miller <davem@davemloft.net>
304
305 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
306 'tv_usec' to long for printf since these fields have a type which
307 varies.
308
309 2011-11-15 Doug Evans <dje@google.com>
310
311 * buildsym.c (add_symbol_to_list): Delete outdated comment.
312
313 2011-11-15 Paul Koning <paul_koning@dell.com>
314
315 * python/py-type.c (typy_get_composite): New function.
316 (typy_nonzero): New function.
317 (typy_values): Rename from typy_fields.
318 (typy_fields): New function.
319 (typy_length): Raise exception if not struct, union, or enum type.
320 (typy_getitem): Ditto.
321 (typy_has_key): Ditto.
322 (typy_make_iter): Ditto.
323
324 2011-11-15 Doug Evans <dje@google.com>
325
326 * NEWS: Mention new parameter basenames-may-differ.
327 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
328 ! basenames_may_differ.
329 * psymtab.c (lookup_partial_symtab): Ditto.
330 * symtab.c (lookup_symtab): Ditto.
331 (basenames_may_differ): New global.
332 (_initialize_symtab): New parameter basenames-may-differ.
333 * symtab.h (basenames_may_differ): Declare.
334
335 2011-11-15 Pedro Alves <pedro@codesourcery.com>
336 Luis Machado <lgustavo@codesourcery.com>
337
338 * auxv.c: Include observer.h.
339 (auxv_inferior_data_cleanup): New.
340 (invalidate_auxv_cache_inf): New.
341 (invalidate_auxv_cache): New.
342 (get_auxv_inferior_data): New.
343 (auxv_inferior_data): New static global.
344 (auxv_info): New structure.
345 (target_auxv_search): Use get_auxv_inferior_data instead of
346 target_read_alloc and don't free cached buffers.
347 (fprint_target_auxv): Likewise
348 (_initialize_auxv): Register per-inferior auxv cache and register
349 observers to invalidate auxv cache when needed.
350
351 2011-11-14 Doug Evans <dje@google.com>
352
353 Make "!" an alias for "shell".
354 * NEWS: Add mention.
355 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
356 adding "!" command, always add it.
357 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
358 command of length one.
359
360 2011-11-14 Stan Shebs <stan@codesourcery.com>
361 Kwok Cheung Yeung <kcy@codesourcery.com>
362
363 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
364 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
365 the minimum instruction size for fast tracepoints.
366 * target.h (struct target_ops): Add new method
367 to_get_min_fast_tracepoint_insn_len.
368 (target_get_min_fast_tracepoint_insn_len): New.
369 * target.c (update_current_target): Set up new target operation.
370 * remote.c (remote_write_bytes_aux): Fix typo.
371 (remote_get_min_fast_tracepoint_insn_len): New.
372 (init_remote_ops): Initialize new field.
373
374 2011-11-14 Tom Tromey <tromey@redhat.com>
375
376 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
377 (encode_actions): Likewise.
378
379 2011-11-14 Yao Qi <yao@codesourcery.com>
380
381 * remote.c (struct remote_state): <install_in_trace> new field.
382 (PACKET_InstallInTrace): New enum value.
383 (remote_install_in_trace_feature): Support InstallInTrace.
384 (remote_supports_install_in_trace): Likewise.
385 (remote_protocol_features): Likewise.
386 (_initialize_remote): Likewise.
387 (remote_can_download_tracepoint): New.
388 * target.h (struct target): New field
389 `to_can_download_tracepoint'.
390 (target_can_download_tracepoint): New macro.
391 * target.c (update_current_target): Update.
392 * breakpoint.h (struct bp_location): Add comment on field
393 `duplicate'.
394 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
395 and tracepoint.
396 (remove_breakpoints): Don't remove tracepoints.
397 (tracepoint_locations_match ): New.
398 (breakpoint_locations_match): Call it.
399 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
400 (download_tracepoint_locations): New.
401 (update_global_location_list): Call it.
402 * tracepoint.c (find_matching_tracepoint): Delete.
403 (find_matching_tracepoint_location): Renamed from
404 find_matching_tracepoint. Return bp_location rather than
405 tracepoint.
406 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
407 tracepoint is found.
408
409 2011-11-14 Yao Qi <yao@codesourcery.com>
410
411 * target.h (struct target): <to_download_tracepoint> Change type
412 of parameter from tracepoint to bp_location.
413 * target.c (update_current_target): Update.
414 * tracepoint.c (start_tracing): Update.
415 * remote.c (remote_download_tracepoint): Remove loop for each location
416 of a tracepoint.
417
418 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
419
420 * i386-nat.c (i386_insert_hw_breakpoint): Call
421 i386_update_inferior_debug_regs.
422 (i386_remove_hw_breakpoint): Likewise.
423
424 2011-11-14 Yao Qi <yao@codesourcery.com>
425
426 * breakpoint.c (init_raw_breakpoint): Call
427 add_location_to_breakpoint to replace duplicated code.
428 (add_location_to_breakpoint): Adjust the breakpoint's
429 address prior to allocating a location.
430
431 2011-11-12 Matt Rice <ratmice@gmail.com>
432
433 * macrocmd.c (macro_no_macro_info): New function.
434 (macro_expand_command): Use macro_no_macro_info.
435 (macro_expand_once_command): Ditto.
436 (info_macro_command): Add argument processing,
437 move info_definitions_command here.
438 (_initialize_macrocmd): Remove info definitions command.
439 Add arguments to info macro help text.
440 * NEWS: Replace info definitions command with new info macro options.
441
442 2011-11-11 Keith Seitz <keiths@redhat.com>
443
444 PR gdb/12843
445 * linespec.c (locate_first_half): Keep ':' if it looks
446 like it could be part of a Windows path starting with
447 a drive letter.
448
449 2011-11-10 Pedro Alves <pedro@codesourcery.com>
450
451 * linux-nat.c (linux_nat_wait): Don't force waking up the event
452 loop when returning a TARGET_WAITKIND_NO_RESUMED.
453
454 2011-11-10 Pedro Alves <pedro@codesourcery.com>
455
456 * target.c (target_waitstatus_to_string): Handle
457 TARGET_WAITKIND_NO_RESUMED.
458
459 2011-11-10 Doug Evans <dje@google.com>
460
461 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
462 `need_fullname'.
463 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
464 (map_partial_symbol_filenames): Ditto. All callers updated.
465 * psymtab.h (map_partial_symbol_filenames): Update prototype.
466 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
467 parameter need_fullname.
468
469 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
470 * source.c (symtab_to_fullname): Ditto.
471
472 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
473 * gdb-demangle.h: ... here. New file.
474 * demangle.c: #include "gdb-demangle.h".
475 (_initialize_demangler): Use initialize_file_ftype for prototype.
476 Move "set demangle" and "set asm-demangle" parameters here from utils.c
477 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
478 from utils.c
479 * utils.c: Update. #include "gdb-demangle.h".
480 * symtab.h (asm_demangle): Delete.
481 (demangle): Move declaration next to use.
482 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
483 * dwarf2read.c: #include "gdb-demangle.h".
484 * gnu-v2-abi.c: Ditto.
485 * jv-typeprint.c: Ditto.
486 * mdebugread.c: Ditto.
487 * p-typeprint.c: Ditto.
488 * stabsread.c: Ditto.
489 * printcmd.c: Ditto.
490 (asm_demangle): Delete declaration.
491 * tui/tui-stack.c: #include "gdb-demangle.h".
492
493 * python/py-type.c (typy_fields_items): Call check_typedef.
494
495 2011-11-10 Joel Brobecker <brobecker@adacore.com>
496
497 * findvar.c (read_frame_register_value): Read the correct bytes
498 from registers on big-endian architectures.
499
500 2011-11-10 Tom Tromey <tromey@redhat.com>
501
502 * procfs.c (load_syscalls): Make a cleanup.
503 (open_procinfo_files): fd==0 is ok.
504
505 2011-11-10 Joel Brobecker <brobecker@adacore.com>
506
507 * procfs.c (iterate_over_mappings): Call do_cleanups before
508 returning.
509
510 2011-11-09 Doug Evans <dje@google.com>
511
512 * gdbtypes.c (check_typedef): Document that this function can
513 throw an exception.
514
515 2011-11-09 Tom Tromey <tromey@redhat.com>
516
517 PR c++/13342:
518 * valops.c (value_full_object): Return early if real type is
519 smaller than the enclosing type.
520
521 2011-11-08 Yao Qi <yao@codesourcery.com>
522
523 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
524
525 2011-11-08 Meador Inge <meadori@codesourcery.com>
526
527 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
528 register when the frame can't be determined.
529 * arm-tdep.c (arm_analyze_prologue): Ditto.
530
531 2011-11-07 Stan Shebs <stan@codesourcery.com>
532
533 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
534
535 2011-11-07 Joel Brobecker <brobecker@adacore.com>
536
537 * infrun.c (handle_inferior_event): Minor reformatting.
538
539 2011-11-05 Doug Evans <dje@google.com>
540
541 * source.c (forget_cached_source_info_for_objfile): Move call to
542 objfile->sf->qf->forget_cached_source_info outside of
543 ALL_OBJFILE_SYMTABS loop.
544 (forget_cached_source_info): Delete unused variable `s'.
545
546 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
547
548 * i386-nat.c (dr_ref_count): Remove unused variable.
549
550 2011-11-05 Doug Evans <dje@google.com>
551
552 * main.c (captured_main): Set lim_at_start before calling
553 make_command_stats_cleanup.
554
555 2011-11-04 Doug Evans <dje@google.com>
556
557 * utils.c: #include "timeval-utils.h".
558 (cmd_stats): Rename start_time to start_cpu_time.
559 New member start_wall_time.
560 (report_command_stats): Report wall time.
561 (make_command_stats_cleanup): Record start wall time.
562
563 2011-11-04 Tom Tromey <tromey@redhat.com>
564
565 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
566
567 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
568
569 * coff-pe-read.c: Include defs.h before bfd.h.
570
571 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
572
573 PR Python/13345
574
575 * python/python.c (python_run_simple_file): Expand tilde in path.
576
577 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
578
579 PR Python/13363
580
581 * python/py-type.c (typy_lookup_type): Do not return a type in
582 an exception handler.
583
584 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
585 Eli Zaretskii <eliz@gnu.org>
586
587 * linux-nat.c (_initialize_linux_nat): Improve help
588 for `info proc stat', `info proc status', `info proc cwd',
589 `info proc cmdline' and `info proc exe'.
590
591 2011-11-02 Stan Shebs <stan@codesourcery.com>
592
593 String collection for tracepoints.
594 * NEWS: Mention string collection.
595 * common/ax.def (tracenz): New bytecode.
596 * ax-gdb.h (trace_string_kludge): Declare.
597 * ax-gdb.c: Include valprint.h and c-lang.h.
598 (trace_string_kludge): New global.
599 (gen_traced_pop): Add string case.
600 (agent_command): Add string case.
601 * tracepoint.h (decode_agent_options): Declare.
602 * tracepoint.c: Include cli-utils.h.
603 (decode_agent_options): New function.
604 (validate_actionline): Call it.
605 (encode_actions_1): Ditto.
606 * target.h (struct target_ops): New method to_supports_string_tracing.
607 (target_supports_string_tracing): New macro.
608 * target.c (update_current_target): Add to_supports_string_tracing.
609 * remote.c (struct remote_state): New field string_tracing.
610 (remote_string_tracing_feature): New function.
611 (remote_protocol_features): New feature tracenz.
612 (remote_supports_string_tracing): New function.
613 (init_remote_ops): Set to_supports_string_tracing.
614
615 2011-11-02 Pedro Alves <pedro@codesourcery.com>
616 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 * linux-nat.c: Include cli/cli-utils.h.
619 (enum info_proc_what): New.
620 (linux_nat_info_proc_cmd): Rename to ...
621 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
622 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
623 status_f and stat_f from WHAT. Throw error on extra parameters.
624 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
625 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
626 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
627 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
628 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
629 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
630 `info proc cmdline', `info proc exe' and `info proc all' as real
631 subcommands of `info proc'.
632
633 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
634
635 * Makefile.in: (SFILES): Add skip.c.
636 (HFILES_NO_SRCDIR): Add skip.h.
637 (COMMON_OBS): Add skip.o.
638 * skip.h, skip.c: New.
639 * breakpoint.h (set_default_breakpoint): Remove.
640 (get_sal_arch): Declare.
641 * breakpoint.c: Remove default_breakpoint_valid,
642 default_breakpoint_address, default_breakpoint_symtab,
643 default_breakpoint_line, default_breakpoint_pspace variables.
644 (get_sal_arch): Make public.
645 (set_default_breakpoint): Remove.
646 (parse_breakpoint_sals, create_breakpoint, clear_command,
647 decode_line_spec_1): Remove uses of default_breakpoint variables;
648 replaced with function calls into stack.c.
649 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
650 * cli/cli-cmds.c: Add skiplist.
651 (init_cmd_lists): Initialize skiplist.
652 (init_cli_cmds): Fix comment (classes of commands appear in
653 alphabetical order).
654 * infrun.c (handle_inferior_event): Add check that we don't step into
655 a function whose pc is marked for skip.
656 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
657 last_displayed_addr, last_displayed_symtab, last_displayed_line
658 variables.
659 (set_last_displayed_sal): New static function.
660 (print_frame_info): Switch call to set_default_breakpoint to call to
661 set_last_displayed_sal.
662 (clear_last_displayed_sal, last_displayed_sal_is_valid,
663 get_last_displayed_pspace, get_last_displayed_addr,
664 get_last_displayed_symtab, get_last_displayed_line,
665 get_last_displayed_sal): New public functions.
666 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
667 get_last_displayed_pspace, get_last_displayed_addr,
668 get_last_displayed_symtab, get_last_displayed_line,
669 get_last_displayed_sal): Declare.
670
671 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
672
673 * MAINTAINERS (Write After Approval): Add myself to the list.
674
675 2011-10-29 Yao Qi <yao@codesourcery.com>
676
677 * infcmd.c (disconnect_command): Call disconnect_tracing.
678
679 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
680
681 Code cleanup.
682 * symtab.c (skip_prologue_sal): Code reformatting.
683
684 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
685
686 PR symtab/13208
687 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
688 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
689 SAI.
690
691 2011-10-28 Pedro Alves <pedro@codesourcery.com>
692
693 * linux-nat.c (linux_nat_filter_event): Remove `options'
694 parameter, and dead code that used it. If we're handling a
695 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
696 in our lwp list, re-add it.
697 (check_zombie_leaders): New.
698 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
699 wait for children with WNOHANG, and always wait for all children.
700 Don't check for no resumed children upfront. Simplify wait loop.
701 Check for zombie thread group leaders after handling all wait
702 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
703 unwaited-for children left.
704 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
705 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
706 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
707 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
708
709 2011-10-28 Sterling Augustine <saugustine@google.com>
710
711 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
712 * symtab.c (free_completion_list): New function.
713 (do_free_completion_list): Likewise.
714 (default_make_symbol_completion_list_break_on): New variable
715 back_to. Call make_cleanup and discard_cleanups.
716 (make_source_files_completion_list): Likewise.
717
718 2011-10-28 Paul Koning <paul_koning@dell.com>
719
720 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
721 * NEWS: Mention deep_items.
722
723 2011-10-28 Alen Skondro <askondro@gmail.com>
724
725 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
726 defined.
727
728 2011-10-27 Meador Inge <meadori@codesourcery.com>
729
730 * MAINTAINERS (Write After Approval): Add myself to the list.
731
732 2011-10-27 Joel Brobecker <brobecker@adacore.com>
733
734 * value.h (read_frame_register_value): Add declaration.
735 * findvar.c (read_frame_register_value): New function.
736 (value_from_register): Use read_frame_register_value
737 instead of get_frame_register_value + value_contents_copy
738 to get value contents.
739
740 2011-10-27 Doug Evans <dje@google.com>
741
742 * cli/cli-cmds.c (source_script_with_search): Pass full path to
743 source_script_from_stream if it may have been found on the search path.
744 * python/py-auto-load.c (source_section_scripts): Pass full path to
745 source_python_script_for_objfile.
746 * python/python.c (source_python_script): Delete stream parameter.
747 All callers updated.
748 (source_python_script_for_objfile): Ditto.
749 * python/python-internal.h (source_python_script_for_objfile): Update.
750 * python/python.h (source_python_script): Update.
751
752 2011-10-27 Tom Tromey <tromey@redhat.com>
753
754 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
755 (ada_sals_for_line): Remove declarations.
756
757 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
758
759 Move unwind reasons to an external .def file
760 * frame.c (frame_stop_reason_string): Rewrite using
761 unwind_stop_reasons.def.
762 * frame.h (enum unwind_stop_reason): Likewise.
763 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
764 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
765 constants for bound-checking.
766 * unwind_stop_reasons.def: New file.
767 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
768 instead of a distinct value.
769
770 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
771
772 PR python/13331
773
774 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
775 (convert_values_to_python): Return on Python tuple allocation
776 failure. Return NULL on value conversion error.
777
778 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
779
780 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
781 (bppy_set_task): Ditto.
782 (bppy_delete_breakpoint): Ditto.
783 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
784 (gdbpy_lookup_global_symbol): Ditto.
785 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
786 * python/py-frame.c (frapy_is_valid): Ditto.
787 (frame_info_to_frame_object): Ditto.
788 * python/py-type.c (typy_lookup_type): Ditto.
789 (typy_getitem): Ditto.
790 (typy_has_key): Ditto.
791 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
792
793 2011-10-26 Joel Brobecker <brobecker@adacore.com>
794
795 * gdbarch.h: Regenerate.
796
797 2011-10-26 Meador Inge <meadori@codesourcery.com>
798
799 * gdbarch.sh (function_list): Use 'pstring' when printing
800 'gcore_bfd_target'.
801 * gdbarch.c: Regenerate.
802
803 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
804
805 * regcache.c (registers_changed_ptid): Invalidate thread architecture
806 and frame caches if PTID refers to all threads of a process.
807
808 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
809
810 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
811 to create_breakpoint.
812
813 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
814
815 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
816 (ppc_sysv_abi_push_dummy_call): Use it.
817 (do_ppc_sysv_return_value): Likewise.
818 (ppc64_sysv_abi_push_dummy_call): Likewise.
819 (ppc64_sysv_abi_return_value): Likewise.
820
821 2011-10-26 Paul Koning <paul_koning@dell.com>
822
823 * python/lib/gdb/types.py (deepitems): New function.
824
825 2011-10-25 Paul Koning <paul_koning@dell.com>
826
827 PR python/13327
828
829 * python/py-value.c (value_to_value_object): Remove fetching of
830 the value if it was lazy.
831 (valpy_get_is_lazy): New function.
832 (valpy_fetch_lazy): New function.
833
834 2011-10-24 Joel Brobecker <brobecker@adacore.com>
835
836 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
837 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
838
839 2011-10-24 Pedro Alves <pedro@codesourcery.com>
840
841 * linux-nat.c (linux_handle_extended_wait): When handling a clone
842 event, in non-stop, if not stopping, make sure the new lwp has
843 last_resume_kind set to resume_continue. Assert that when we're
844 resuming the new lwp, its last_resume_kind is resume_continue.
845
846 2011-10-24 Pedro Alves <pedro@codesourcery.com>
847
848 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
849 already set when marking the event thread as not executing in
850 non-stop mode.
851
852 2011-10-24 Pedro Alves <pedro@codesourcery.com>
853
854 * infrun.c (handle_inferior_event): Add debug output for
855 TARGET_WAITKIND_NO_HISTORY.
856
857 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
858
859 * NEWS: Move set/show extended-prompt to "New Options". Expand
860 description. Fix typos.
861
862 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
863
864 PR python/13310
865
866 * python/py-param.c (call_doc_function): Correctly deference on
867 function exit.
868
869 2011-10-21 Joel Brobecker <brobecker@adacore.com>
870
871 * ada-tasks.c (print_ada_task_info): Fix computation of
872 number of tasks displayed in command output.
873
874 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
875 Ulrich Weigand <uweigand@de.ibm.com>
876
877 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
878 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
879 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
880 gdbarch_pc_regnum and frame_unwind_register_unsigned by
881 gdbarch_unwind_pc.
882
883 2011-10-20 Cary Coutant <ccoutant@google.com>
884
885 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
886 section to...
887 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
888 flag. Adjust all callers.
889 (process_psymtab_comp_unit): Remove adjustment for type section.
890
891 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
892
893 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
894 arguments by adding OBJFILE. Instead of getting objfile from
895 symbol's symtab, use new argument OBJFILE.
896 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
897 arguments by adding OBJFILE.
898 * gdb/dwarf2read.c (new_symbol_full): Change call to
899 cp_scan_for_anonymous_namespaces to match new signature.
900 * gdb/stabsread.c (define_symbol): Change call to
901 cp_scan_for_anonymous_namespaces to match new signature.
902
903 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
904
905 PR python/13308
906 PR python/13309
907
908 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
909 leak.
910 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
911 leak. Delete unused variables.
912
913 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
914
915 PR python/12656
916
917 * python/py-frame.c (frapy_read_var): Use const struct *block.
918 * python/py-type.c (typy_lookup_typename): Likewise.
919 (typy_lookup_type): Likewise.
920 (typy_legacy_template_argument): Likewise.
921 (typy_template_argument): Likewise.
922 (gdbpy_lookup_type): Likewise.
923 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
924 * python/py-block.c (blpy_block_object): Likewise.
925 (blpy_iter): Likewise.
926 (blpy_get_start): Likewise.
927 (blpy_get_end): Likewise.
928 (blpy_get_function): Likewise.
929 (blpy_get_superblock): Likewise.
930 (set_block): Likewise.
931 (block_to_block_object): Likewise.
932 (block_object_to_block): Likewise.
933 (blpy_is_valid): Likewise.
934 (blpy_get_global_block): New function.
935 (blpy_get_static_block): New function.
936 (blpy_is_global): New function.
937 (blpy_is_static): New function.
938 * blockframe.c (block_innermost_frame): Likewise.
939 * valops.c (value_of_variable): Likewise.
940 * frame.h: Update prototypes.
941 * python/python-internal.h: Likewise.
942 * value.h: Likewise.
943
944 2011-10-19 Cary Coutant <ccoutant@google.com>
945
946 * dwarf2read.c (create_debug_types_hash_table): Fix size of
947 type_offset field.
948
949 2011-10-19 Cary Coutant <ccoutant@google.com>
950
951 * dwarf2read.c (peek_abbrev_code): New function.
952 (dw2_get_file_names): Check for dummy compilation units.
953 (create_debug_types_hash_table): Likewise.
954 (process_psymtab_comp_unit): Likewise.
955 (load_partial_comp_unit): Likewise.
956 (load_full_comp_unit): Likewise.
957
958 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
959
960 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
961 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
962 pt_phdr if PT_PHDR was found.
963
964 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
965
966 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
967 type or "<unnamed type"> when there is no name assigned.
968 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
969 avoid a sigint when no name is assigned.
970
971 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
972
973 Revert:
974 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
975 * dwarf2expr.c (ctx_no_read_reg): New function.
976 * dwarf2expr.h (ctx_no_read_reg): New declaration.
977 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
978 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
979 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
980
981 2011-10-16 Doug Evans <dje@google.com>
982
983 * NEWS: Document python gdb.printing.register_pretty_printer's new
984 `replace' parameter.
985
986 2011-10-14 Keith Seitz <keiths@redhat.com>
987
988 PR c++/13225
989 * eval.c (evaluate_subexp_standard): Do not construct
990 an array of types; pass the value array directly to
991 find_overload_match.
992 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
993 (rank_function): Take an array of values instead of types.
994 (rank_one_type): Add struct value * parameter.
995 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
996 (rank_function): For each argument, pass the argument's
997 value to rank_one_type.
998 (rank_one_type): Add VALUE parameter.
999 If the parameter type is a pointer and the argument type
1000 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1001 VALUE is zero.
1002 Update all calls to rank_one_type, passing NULL for new
1003 VALUE parameter.
1004 * valarith.c (value_user_defined_cpp_op): Do not construct
1005 an array of types; pass the value array directly to
1006 find_overload_match.
1007 * valops.c (find_overload_method_list): Take an array of
1008 values instead of types.
1009 Save the type of OBJP for later use.
1010 Update calls to find_oload_champ, and find_oload_champ_namespace.
1011 (find_oload_champ_namespace): Take an array of values instead
1012 of types.
1013 (find_oload_champ_namespace_loop): Likewise.
1014 (find_oload_champ): Likewise.
1015 (classify_oload_match): Inspect all arguments
1016 until INCOMPATIBLE is found. Return the worst badness found
1017 otherwise.
1018 (compare_parameters): Update call to rank_one_type.
1019 * value.h (find_overload_match): Take an array of values instead
1020 of types.
1021
1022 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1023
1024 Drop lazy lm_info reading.
1025 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1026 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1027 (lm_info_read): New function.
1028 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1029 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1030 lm_dynamic_from_link_map.
1031 (lm_next, lm_prev, lm_name): Remove.
1032 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1033 initialization incl. read_memory. No longer use lm_name.
1034 (svr4_free_so): Drop lm_info->lm freeing.
1035 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1036 explicit lm_addr and lm initialization.
1037 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1038 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1039 lm_name.
1040
1041 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1042 Paul Pluzhnikov <ppluzhnikov@google.com>
1043
1044 * defs.h (struct so_list): New forward declaration.
1045 (make_cleanup_free_so): New declaration.
1046 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1047 (svr4_free_so): Move the function here from downwards. Handle NULL
1048 so->lm_info.
1049 (svr4_free_library_list): New.
1050 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1051 Use more cleanups. Use new parameter ignore_first instead of
1052 ignore_first_link_map_entry.
1053 (svr4_current_sos): New variable ignore_first, initialize it. New
1054 variable back_to, use it for svr4_free_library_list protection.
1055 (svr4_free_so): Remove - move upwards.
1056 * utils.c: Include solist.h.
1057 (do_free_so, make_cleanup_free_so): New functions.
1058
1059 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1060
1061 Fix internal error regression.
1062 * value.c (value_primitive_field): Handle value_optimized_out. Move
1063 packed bitfields comment.
1064
1065 2011-10-13 Tom Tromey <tromey@redhat.com>
1066
1067 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1068 always released.
1069
1070 2011-10-13 Tom Tromey <tromey@redhat.com>
1071
1072 * python/py-type.c (typy_has_key): Make 'field' const.
1073
1074 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1075
1076 * remote.c (remote_save_trace_data): Invert comparison.
1077
1078 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1079
1080 * tracepoint.c (trace_save_command): Use filename instead of
1081 args when printing.
1082
1083 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1084
1085 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1086 if .size is 0.
1087
1088 2011-10-13 Yao Qi <yao@codesourcery.com>
1089
1090 PR gdb/12703
1091 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1092 whether insn is a 32-bit Thumb-2 instruction.
1093 (thumb_in_function_epilogue_p): Likewise.
1094 (thumb_get_next_pc_raw): Likewise.
1095 (arm_breakpoint_from_pc): Likewise.
1096
1097 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1100 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1101 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1102 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1103 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1104 zero DATA.
1105 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1106 validity.
1107 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1108 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1109 clear DATA on zero SIZE.
1110
1111 2011-10-12 Doug Evans <dje@google.com>
1112
1113 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1114 header->first_die_offset here. All callers updated.
1115
1116 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 Fix compatibility with texinfo versions older than 4.12.
1119 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1120 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1121 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1122 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1123 * configure: Regenerate.
1124 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1125 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1126 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1127
1128 2011-10-12 Gary Benson <gbenson@redhat.com>
1129
1130 * breakpoint.h (pc_at_non_inline_function): Declare.
1131 * breakpoint.c (is_non_inline_function,
1132 pc_at_non_inline_function): New functions.
1133 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1134 if the stop is at a location where functions cannot be inlined.
1135
1136 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1137
1138 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1139 the core wanted them stopped, or if they now have a pending event
1140 to report.
1141 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1142 down to stop_and_resume_callback.
1143 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1144 having new pending events after calling linux_nat_filter_event.
1145
1146 2011-10-11 Sterling Augustine <saugustine@google.com>
1147
1148 * dwarf2read.c: Undo inadvertent changes in previous commit.
1149
1150 2011-10-11 Sterling Augustine <saugustine@google.com>
1151
1152 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1153 logic.
1154
1155 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1156
1157 * symfile.c (separate_debug_file_exists): Fix condition.
1158
1159 2011-10-11 David S. Miller <davem@davemloft.net>
1160
1161 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1162 static.
1163 * regcache.h (regcache_restore): Remove declaration.
1164
1165 * gdbarch.sh: New field 'long_long_align_bit'.
1166 * gdbarch.c, gdbarch.h: Regenerate.
1167 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1168 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1169
1170 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1171
1172 Revert this part of:
1173 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1174 Support @entry in input expressions.
1175 * c-exp.y (ENTRY, unknown_cpp_name): New.
1176 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1177 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1178 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1179 (name_not_typename: ENTRY): New.
1180 (yylex): Recognize ENTRY.
1181
1182 Reimplement @entry in input expressions.
1183 * c-exp.y (ENTRY): New.
1184 (variable: name_not_typename ENTRY): New.
1185 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1186
1187 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1188
1189 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1190 parent and child's pids as soon as we detect a clone event.
1191 Adjust another debug message.
1192
1193 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1194
1195 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1196 not zombie instead of reading the whole file.
1197
1198 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1199
1200 Fix separate debuginfo warning with "remote:" access.
1201 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1202 * symfile.c (get_file_crc): New function with the code moved from ...
1203 (separate_debug_file_exists): ... this function, specifically variables
1204 buffer and count. New variable verified_as_different, set it. Remove
1205 file_crc initialization. Verify also if both files are not the same
1206 manually, if needed.
1207
1208 2011-10-11 Yao Qi <yao@codesourcery.com>
1209
1210 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1211 to get address.
1212
1213 2011-10-10 Doug Evans <dje@google.com>
1214
1215 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1216 libthread_db when we load libpthread or the main symbol file.
1217 (thread_db_inferior_created): New function.
1218 (_initialize_thread_db): Attach inferior_created observer.
1219 * linux-nat.c (linux_child_post_attach): Remove call to
1220 check_for_thread_db.
1221 (linux_child_post_startup_inferior): Ditto.
1222 * objfiles.h (OBJF_MAINLINE): Define.
1223 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1224 allocate_objfile when appropriate.
1225
1226 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1227
1228 PR gdb/13218
1229 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1230 Remove unused variables.
1231 (get_linux_version): Remove function.
1232 (_initialize_arm_linux_nat): Do not call it.
1233
1234 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1235
1236 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1237 new clone lwp if the core asked it to stop. Don't pass on
1238 unexpected signals to the new clone; leave them pending instead.
1239
1240 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1241
1242 * linux-nat.c (resume_lwp): Remove redundant debug output.
1243
1244 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1245
1246 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1247 last_resume_kind before clearing it, and use the copy instead to
1248 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1249 resume_clear_callback in the non-stop path too.
1250
1251 2011-10-09 Yao Qi <yao@codesourcery.com>
1252
1253 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1254 Honor OPTIONS and VAL's type.
1255 (common_val_print, value_print): Update to pass one more parameter.
1256
1257 2011-10-09 Doug Evans <dje@google.com>
1258
1259 Add new "alias" command.
1260 * NEWS: Mention new command.
1261 * command.h (valid_user_defined_cmd_name_p): Declare.
1262 * defs.h (make_cleanup_dyn_string_delete): Declare.
1263 * utils.c: #include "dyn-string.h".
1264 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1265 * cli/cli-cmds.c: #include "dyn-string.h".
1266 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1267 (init_cli_cmds): Add new command.
1268 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1269
1270 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 Fix compatibility with older GCCs.
1273 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1274 * stack.c (read_frame_arg): Initialize val_deref.
1275
1276 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1277
1278 Entry values NEWS entries, DWARF disassembly support.
1279 * NEWS: New entry values entry.
1280 (set print entry-values, show print entry-values)
1281 (set debug entry-values, show debug entry-values): New entries.
1282 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1283 indent. Remove variable start. Move header printing out. Respect
1284 INDENT. Support DW_OP_GNU_entry_value.
1285 (locexpr_describe_location_1): Move the header printing here, extend
1286 the disassemble_dwarf_expression passed parameters.
1287
1288 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1289
1290 Display @entry parameter values even for references.
1291 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1292 coerce_ref_if_computed.
1293 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1294 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1295 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1296 existing push_dwarf_reg_entry_value call. Add new detection calling
1297 dwarf_block_to_dwarf_reg_deref. Update the error message.
1298 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1299 * dwarf2expr.h
1300 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1301 parameter deref_size, describe it in the comment.
1302 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1303 (dwarf_block_to_dwarf_reg_deref): New declaration.
1304 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1305 deref_size, describe it in the function comment. New variables
1306 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1307 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1308 describe it in the function comment. Fetch the alternative block
1309 accoring to DEREF_SIZE.
1310 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1311 (entry_data_value_free_closure, entry_data_value_funcs): New.
1312 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1313 outer_val, target_val, val and addr. Try to fetch and create also
1314 referenced value content.
1315 (pieced_value_funcs): NULL value for coerce_ref.
1316 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1317 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1318 coerce_ref_if_computed.
1319 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1320 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1321 * stack.c (read_frame_arg): Compare also dereferenced values.
1322 * value.c (value_computed_funcs): Make the parameter v const, use
1323 value_lval_const for it.
1324 (value_lval_const, coerce_ref_if_computed): New function.
1325 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1326 * value.h (struct lval_funcs): New field coerce_ref.
1327 (value_computed_funcs): Make the parameter v const.
1328 (value_lval_const, coerce_ref_if_computed): New declarations.
1329
1330 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1331
1332 Support @entry in input expressions.
1333 * c-exp.y (ENTRY, unknown_cpp_name): New.
1334 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1335 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1336 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1337 (name_not_typename: ENTRY): New.
1338 (yylex): Recognize ENTRY.
1339 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1340 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1341 Likewise.
1342 * parse.c (operator_length_standard): Likewise.
1343 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1344
1345 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1346
1347 Display referenced values in backtraces.
1348 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1349 * stack.c (print_frame_arg): Likewise.
1350
1351 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1352
1353 Make some lval_funcs methods to default on NULL.
1354 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1355 NULL.
1356 (value_assign): Check if lval_computed write method is NULL.
1357 * value.h (struct lval_funcs): Comment NULL values for read and write
1358 methods.
1359
1360 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1361
1362 Display @entry parameter values (without references).
1363 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1364 New functions.
1365 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1366 New declarations.
1367 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1368 entry record.
1369 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1370 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1371 functions.
1372 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1373 (loclist_read_variable_at_entry): New function.
1374 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1375 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1376 DW_AT_location, call dwarf_block_to_sp_offset for it.
1377 * frame.h (print_entry_values_no, print_entry_values_only)
1378 (print_entry_values_preferred, print_entry_values_if_needed)
1379 (print_entry_values_both, print_entry_values_compact)
1380 (print_entry_values_default, print_entry_values): New declarations.
1381 (struct frame_arg): New field entry_kind.
1382 (read_frame_arg): New parameter entryargp.
1383 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1384 arg->entry_kind. Optionally print the `@entry' suffix.
1385 (list_args_or_locals): New variable entryarg, initialize it.
1386 Initialize also entry_kind of arg and entryarg. Conditionalize
1387 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1388 xfree for entryarg.error.
1389 * stack.c (print_entry_values_no, print_entry_values_only)
1390 (print_entry_values_preferred, print_entry_values_if_needed)
1391 (print_entry_values_both, print_entry_values_compact)
1392 (print_entry_values_default, print_entry_values_choices)
1393 (print_entry_values): New variables.
1394 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1395 print the `@entry' suffix, possibly in combination for
1396 print_entry_values_compact.
1397 (read_frame_arg): New parameter entryargp, new variables entryval,
1398 entryval_error and val_equal. Read in also entryargp, respect
1399 print_entry_values, compare the values using val_equal, fill in also
1400 argp->entry_kind (together with entryargp->entry_kind).
1401 (print_frame_args): New variable entryarg, initialize it.
1402 Conditionalize print_frame_arg for arg, add print_frame_arg for
1403 entryarg. Call xfree for entryarg.error.
1404 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1405 * symtab.h (struct symbol_computed_ops): New field
1406 read_variable_at_entry.
1407
1408 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1409
1410 Code reshuffle.
1411 * frame.h (struct frame_arg): New definition.
1412 (read_frame_arg): New declaration.
1413 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1414 (list_args_or_locals): ... the code here. New variable arg, call
1415 read_frame_arg and list_arg_or_local with it. Unify the
1416 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1417 arg.error.
1418 * stack.c (print_frame_arg): New functiom from the code of
1419 print_frame_args.
1420 (read_frame_arg): New function.
1421 (print_frame_args): Remove variable val. New variable arg, call
1422 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1423
1424 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1425
1426 Protect entry values against self tail calls.
1427 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1428 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1429
1430 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1431
1432 Recognize virtual tail call frames.
1433 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1434 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1435 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1436 * dwarf2-frame-tailcall.c: New file.
1437 * dwarf2-frame-tailcall.h: New file.
1438 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1439 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1440 REGS.PREV only after CIE execution.
1441 (struct dwarf2_frame_cache): New field tailcall_cache.
1442 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1443 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1444 parts, try to find entry_cfa_sp_offset. Call
1445 dwarf2_tailcall_sniffer_first.
1446 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1447 when appropriate.
1448 (dwarf2_frame_dealloc_cache): New function.
1449 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1450 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1451 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1452 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1453 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1454 * dwarf2loc.c (func_addr_to_tail_call_list)
1455 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1456 (call_site_find_chain_1, call_site_find_chain): New.
1457 * dwarf2loc.h (struct call_site_chain): New.
1458 (call_site_find_chain): New declaration.
1459 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1460 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1461 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1462 * stack.c (frame_info): Support also TAILCALL_FRAME.
1463
1464 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 Tail call sites reader implementation.
1467 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1468 fill in TYPE_TAIL_CALL_LIST.
1469 * gdbtypes.h (struct func_type): New field tail_call_list.
1470 (struct call_site): New field tail_call_next.
1471 (TYPE_TAIL_CALL_LIST): New definition.
1472
1473 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1474
1475 Implement basic support for DW_TAG_GNU_call_site.
1476 * block.c: Include gdbtypes.h and exceptions.h.
1477 (call_site_for_pc): New function.
1478 * block.h (call_site_for_pc): New declaration.
1479 * defs.h: Include hashtab.h.
1480 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1481 declarations.
1482 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1483 ctx_no_push_dwarf_reg_entry_value.
1484 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1485 (dwarf_block_to_dwarf_reg): New function.
1486 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1487 (ctx_no_push_dwarf_reg_entry_value): New function.
1488 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1489 push_dwarf_reg_entry_value.
1490 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1491 declarations.
1492 * dwarf2loc.c: Include gdbcmd.h.
1493 (dwarf_expr_ctx_funcs): New forward declaration.
1494 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1495 (dwarf_expr_reg_to_entry_parameter)
1496 (dwarf_expr_push_dwarf_reg_entry_value): New.
1497 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1498 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1499 (needs_dwarf_reg_entry_value): New function.
1500 (needs_frame_ctx_funcs): Install it.
1501 (_initialize_dwarf2loc): New function.
1502 * dwarf2loc.h (entry_values_debug): New declaration.
1503 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1504 (read_call_site_scope): New forward declaration.
1505 (process_full_comp_unit): Copy call_site_htab.
1506 (process_die): Support DW_TAG_GNU_call_site.
1507 (read_call_site_scope): New function.
1508 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1509 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1510 (cleanup_htab): Delete.
1511 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1512 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1513 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1514 FIELD_LOC_KIND_DWARF_BLOCK.
1515 * gdbtypes.h (enum field_loc_kind): New entry
1516 FIELD_LOC_KIND_DWARF_BLOCK.
1517 (struct main_type): New loc entry dwarf_block.
1518 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1519 (TYPE_FIELD_DWARF_BLOCK): New.
1520 * python/py-type.c: Include dwarf2loc.h.
1521 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1522 internal_error call on unknown FIELD_LOC_KIND.
1523 * symtab.h (struct symtab): New field call_site_htab.
1524 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1525 (core_addr_hash, core_addr_eq): New functions.
1526
1527 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 Code reshuffle.
1530 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1531 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1532 calling_convention under func_stuff there.
1533 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1534 (init_type) <TYPE_CODE_FUNC>: Likewise.
1535 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1536 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1537 * gdbtypes.h (enum type_specific_kind): Change
1538 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1539 (struct main_type) <type_specific>: Change calling_convention to
1540 func_stuff. Move calling_convention to ...
1541 (struct func_type): ... this new struct.
1542 (INIT_FUNC_SPECIFIC): New #define.
1543 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1544
1545 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1548 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1549 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1550 ctx->ref_addr_size. Handle its invalid value.
1551 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1552 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1553 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1554 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1555 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1556 (dwarf2_per_cu_ref_addr_size): New function.
1557
1558 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 Code cleanup.
1561 * dwarf2read.c (per_cu_header_read_in): New function.
1562 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1563 variables cu_header_local and cu_headerp.
1564
1565 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 Fix initial language detection with -readnow.
1568 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1569 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1570 searches only for global symbols.
1571
1572 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1573
1574 Fix printed anonymous struct name.
1575 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1576 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1577 (anonymous_struct_prefix): New function.
1578 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1579 (dwarf2_name): Strip for anonymous structs any prefixes.
1580
1581 2011-10-07 Doug Evans <dje@google.com>
1582
1583 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1584 `replace'.
1585
1586 * python/lib/gdb/printing.py: Whitespace cleanup.
1587
1588 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1589 warning.
1590
1591 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1592
1593 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1594 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1595 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1596 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1597 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1598 (arm_linux_remove_watchpoint): Adjust.
1599 * i386-linux-nat.c (i386_linux_dr_set_control)
1600 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1601 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1602 (ia64_linux_remove_watchpoint): Adjust.
1603 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1604 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1605 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1606 (ppc_linux_insert_mask_watchpoint)
1607 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1608 (ppc_linux_remove_watchpoint): Adjust.
1609 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1610 Adjust.
1611
1612 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1613
1614 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1615 (clear_win32_environment): New function for Cygwin to clear out
1616 Win32 environment.
1617 (windows_create_inferior): Prepare new environment from in_env
1618 for Cygwin, too.
1619
1620 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1621
1622 PR python/13264
1623 * python/py-value.c (valpy_call): Check that arguments are
1624 a tuple.
1625 (is_intlike): Remove call to CHECK_TYPEDEF.
1626 (valpy_nonzero): Catch GDB exceptions.
1627 (valpy_absolute): Ditto.
1628 (valpy_lazy_string): Ditto.
1629 (valpy_call): Ditto.
1630 (valpy_get_is_optimized_out): Ditto.
1631 (valpy_long): Ditto.
1632 (valpy_float): Ditto.
1633 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1634 (valpy_richcompare): Ditto.
1635
1636 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1637
1638 * inferior.h (disable_randomization): Declare.
1639 * infrun.c (disable_randomization): New global variable.
1640 (show_disable_randomization): New function.
1641 (set_disable_randomization): Likewise.
1642 (_initialize_infrun): Install set/show disable-randomization
1643 commands.
1644 * linux-nat.c (disable_randomization): Remove.
1645 (show_disable_randomization): Likewise.
1646 (set_disable_randomization): Likewise.
1647 (_initialize_linux_nat): No longer install set/show
1648 disable-randomization commands here.
1649 (linux_nat_supports_disable_randomization): New function.
1650 (linux_nat_add_target): Install it.
1651 * remote.c (PACKET_QDisableRandomization): New enum value.
1652 (remote_protocol_packets): Support QDisableRandomization.
1653 (_initialize_remote): Likewise.
1654 (remote_supports_disable_randomization): New function.
1655 (init_remote_ops): Install it.
1656 (extended_remote_supports_disable_randomization): New function.
1657 (init_extended_remote_ops): Install it.
1658 (extended_remote_disable_randomization): New function.
1659 (extended_remote_create_inferior_1): Call it.
1660 * target.h (struct target_ops): Add to_supports_disable_randomization.
1661 (target_supports_disable_randomization): Add prototype.
1662 * target.c (target_supports_disable_randomization): New function.
1663 (find_default_supports_disable_randomization): Likewise.
1664 (init_dummy_target): Install it.
1665
1666 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1667
1668 Allow Python notification of new object-file loadings.
1669 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1670 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1671 Add build rule for this file.
1672 * python/py-event.h (emit_new_objfile_event): New prototype.
1673 (newobjfile): New Python event emitter.
1674 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1675 Python event registry.
1676 * python/py-inferior.c: Include objfiles.h
1677 (python_new_objfile): New function.
1678 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1679 observers.
1680 * python/py-newobjfileevent.c: New file.
1681 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1682 prototype.
1683 * python/python.c (_initialize_python): Add
1684 gdbpy_initialize_new_objfile_event call.
1685 * NEWS: Add item for new Python event "gdb.newobjfile"
1686
1687 2011-10-05 Tristan Gingold <gingold@adacore.com>
1688
1689 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1690 Extract the ravenscar task name from the symbol for the atcb.
1691
1692 2011-10-04 Paul Koning <paul_koning@dell.com>
1693
1694 * python/py-type.c (typy_make_iter): Add forward declaration.
1695 (typy_fields_items): Use the gdb.Type iterator.
1696
1697 2011-10-04 Paul Koning <paul_koning@dell.com>
1698
1699 * NEWS: Add entry for Python gdb.Type mapping methods.
1700
1701 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1702
1703 PR python/12691: Add the inferior to Python exited event
1704 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1705 to exited_event.
1706 * python/py-event.h (emit_exited_event): Likewise
1707 * python/-inferior.c (python_inferior_exit): Likewise
1708
1709 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1710
1711 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1712 in output of -ada-task-info GDB/MI command.
1713
1714 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1715
1716 * ada-lang.h (struct inferior): Declare.
1717 (print_ada_task_info): Add declaration.
1718 * ada-tasks.c (print_ada_task_info): Make non-static.
1719 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1720 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1721 * mi/mi-main.c: #include "ada-lang.h".
1722 (mi_cmd_list_features): Add "ada-task-info" to the list
1723 of supported features.
1724 (mi_cmd_ada_task_info): New function.
1725
1726 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1727
1728 * python/python.c (python_run_simple_file): New function.
1729 (source_python_script, source_python_script_for_objfile):
1730 Replace call to PyRun_SimpleFile by call to
1731 python_run_simple_file.
1732
1733 2011-10-03 Paul Koning <paul_koning@dell.com>
1734
1735 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1736 (value_to_value_object): Fetch value if it was lazy.
1737
1738 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 Code cleanup.
1741 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1742 Rearrange the code for it.
1743
1744 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1745
1746 * breakpoint.c (bkpt_print_recreate): Add call to
1747 print_recreate_thread.
1748
1749 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1750
1751 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1752 PTRACE_GETFDPIC_INTERP): Define.
1753
1754 2011-09-28 Yao Qi <yao@codesourcery.com>
1755
1756 * symfile.c (add_symbol_file_command): Update message on usage.
1757
1758 2011-09-28 Paul Koning <paul_koning@dell.com>
1759
1760 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1761 (typy_length, typy_get, typy_has_key, typy_make_iter)
1762 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1763 (typy_iterator_iter, typy_iterator_iternext)
1764 (typy_iterator_dealloc): New functions to implement standard
1765 Python mapping methods on gdb.Type object.
1766 (gdb.TypeIterator): New Python type.
1767 * python/python-internal.h (gdbpy_iter_kind): New enum.
1768
1769 2011-09-28 David S. Miller <davem@davemloft.net>
1770
1771 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1772 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1773 * sparc-tdep.c (sparc_complex_floating_p): New function.
1774 (sparc32_store_arguments): Handle complex floats.
1775 (sparc32_extract_return_value): Likewise.
1776 (sparc32_store_return_value): Likewise.
1777 (sparc32_stabs_argument_has_addr): Likewise.
1778 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1779 (sparc64_store_floating_fields): Handle complex floats.
1780 (sparc64_store_arguments): Likewise.
1781 (sparc64_store_return_value): Likewise.
1782
1783 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1784
1785 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1786 before the change on 2006-12-09.
1787 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1788 generates the environment block for CreateProcessA, modulo the
1789 Cygwin-specific parts that are not needed here.
1790
1791 2011-09-27 Tristan Gingold <gingold@adacore.com>
1792
1793 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1794 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1795 (darwin_solib_get_all_image_info_addr_at_init): New function.
1796 (darwin_solib_read_all_image_info_addr): Likewise.
1797 (darwin_solib_create_inferior_hook): Use the above two functions.
1798 * darwin-nat.c (darwin_execvp): Renames retval to res.
1799 (darwin_read_write_inferior): Update comment.
1800 (darwin_read_dyld_info): New function.
1801 (darwin_xfer_partial): Handle DYLD_INFO.
1802
1803 2011-09-27 Stan Shebs <stan@codesourcery.com>
1804
1805 Add return address collection for tracepoints.
1806 * tracepoint.c (encode_actions_1): Add case for $_ret.
1807 (validate_actionline): Check for $_ret.
1808 (trace_dump_actions): Ditto.
1809 * ax-gdb.h (gen_trace_for_return_address): Declare.
1810 * ax-gdb.c: Include arch-utils.h.
1811 (gen_trace_for_return_address): New function.
1812 (agent_command): Add return address special case.
1813 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1814 (amd64_gen_return_address): New function.
1815 (amd64_init_abi): Call it.
1816 * i386-tdep.c: Include ax.h and ax-gdb.h.
1817 (i386_gen_return_address): New function.
1818 (i386_init_abi): Call it.
1819 * arch-utils.h (default_gen_return_address): Declare.
1820 * arch-utils.c (default_gen_return_address): New function.
1821 * gdbarch.sh (gen_return_address): New method.
1822 * gdbarch.h, gdbarch.c: Regenerate.
1823
1824 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1825
1826 PR gdb/13079
1827 * i386-tdep.c (i386_frame_align): New.
1828 (i386_gdbarch_init): Use i386_frame_align.
1829
1830 2011-09-23 Yao Qi <yao@codesourcery.com>
1831
1832 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1833 to get address.
1834
1835 2011-09-22 Tristan Gingold <gingold@adacore.com>
1836
1837 * fork-child.c (fork_inferior): Add exec_fun parameter.
1838 Call exec_fun or execvp.
1839 * inferior.h: Adjust prototype.
1840 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1841 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1842 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1843 * procfs.c (procfs_create_inferior): Ditto.
1844 * darwin-nat.c (darwin_execvp): New function.
1845 (darwin_create_inferior): Use it.
1846
1847 2011-09-22 Yao Qi <yao@codesourcery.com>
1848
1849 * infrun.c (context_switch): Print debug message when switching to
1850 a different thread.
1851
1852 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1853
1854 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1855 complex and vector types.
1856 (s390_return_value_convention): Likewise.
1857
1858 (s390_value_from_register): Call check_typedef.
1859 (extend_simple_arg): Likewise.
1860 (alignment_of): Likewise.
1861 (s390_push_dummy_call): Likewise.
1862 (s390_return_value): Likewise.
1863
1864 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1865
1866 * event-top.c (async_disconnect): If an exception is thrown from
1867 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1868 catch_errors.
1869 * top.c (quit_cover): Return void and take no arguments.
1870 * top.h (quit_cover): Update prototype.
1871
1872 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1873
1874 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1875 current_uiout, not uiout.
1876
1877 2011-09-19 Doug Evans <dje@google.com>
1878
1879 * python/py-auto-load.c (source_section_scripts): Fix file
1880 descriptor leak.
1881 * python/python.c (source_python_script_for_objfile): Tweak comments.
1882
1883 2011-09-18 Yao Qi <yao@codesourcery.com>
1884 Ulrich Weigand <ulrich.weigand@linaro.org>
1885
1886 Support displaced stepping for Thumb 16-bit insns.
1887 * arm-tdep.c (THUMB_NOP) Define.
1888 (thumb_copy_unmodified_16bit): New.
1889 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1890 (thumb_copy_alu_reg): New.
1891 (arm_copy_svc): Move some common code to ...
1892 (install_svc): ... here. New.
1893 (thumb_copy_svc): New.
1894 (install_pc_relative): New.
1895 (thumb_copy_pc_relative_16bit): New.
1896 (thumb_decode_pc_relative_16bit): New.
1897 (thumb_copy_16bit_ldr_literal): New.
1898 (thumb_copy_cbnz_cbz): New.
1899 (cleanup_pop_pc_16bit_all): New.
1900 (thumb_copy_pop_pc_16bit): New.
1901 (thumb_process_displaced_16bit_insn): New.
1902 (thumb_process_displaced_32bit_insn): New.
1903 (thumb_process_displaced_insn): process thumb instruction.
1904
1905 Support displaced stepping for Thumb 32-bit insns.
1906 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1907 (thumb2_copy_preload): New.
1908 (thumb2_copy_copro_load_store): New.
1909 (thumb2_copy_b_bl_blx): New.
1910 (thumb2_copy_alu_imm): New.
1911 (thumb2_copy_load_reg_imm): New.
1912 (thumb2_copy_load_literal): New
1913 (thumb2_copy_block_xfer): New.
1914 (thumb_32bit_copy_undef): New.
1915 (thumb_32bit_copy_unpred): New.
1916 (thumb2_decode_ext_reg_ld_st): New.
1917 (thumb2_decode_svc_copro): New.
1918 (decode_thumb_32bit_store_single_data_item): New.
1919 (thumb_copy_pc_relative_32bit): New.
1920 (thumb_decode_pc_relative_32bit): New.
1921 (decode_thumb_32bit_ld_mem_hints): New.
1922 (thumb2_copy_table_branch): New
1923 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1924 instructions.
1925
1926 2011-09-18 Yao Qi <yao@codesourcery.com>
1927
1928 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1929 (install_b_bl_blx): Likewise.
1930
1931 2011-09-17 Yao Qi <yao@codesourcery.com>
1932
1933 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1934 (install_load_store): ... this. New.
1935 Change parameter BYTE to SIZE.
1936 (arm_copy_ldr_str_ldrb_strb): Update caller.
1937 (arm_decode_ld_st_word_ubyte): Update caller.
1938
1939 2011-09-17 Yao Qi <yao@codesourcery.com>
1940
1941 * infrun.c (displaced_step_fixup): Move some code ...
1942 (displaced_step_restore): ... here. New function.
1943 (handle_inferior_event): Cleanup displaced stepping state for both
1944 child and parent when get forked or vforked event.
1945 * regcache.c (get_thread_arch_aspace_regcache): New function.
1946 get_thread_arch_regcache (): Call it.
1947
1948 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1949
1950 * ada-tasks.c (print_ada_task_info): New function, merging
1951 short_task_info and info_tasks together. Reimplement using
1952 ui-out instead of printing to stdout directly. Move the code
1953 building and checking the task list here, instead of leaving it
1954 in info_tasks_command.
1955 (info_task): Move the code building and checking the task
1956 list here, instead of leaving it in info_tasks_command.
1957 (info_tasks_command): Delete code building and checking
1958 the task list - moved elsewhere. Update calls to info_tasks
1959 and info_task.
1960
1961 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1962
1963 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1964
1965 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1966
1967 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1968
1969 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1970
1971 * ada-lang.h (ada_build_task_list): Remove parameter
1972 `warn_if_null'.
1973 * ada-tasks.c (ada_build_task_list): Remove parameter
1974 `warn_if_null'. Adjust implementation and documentation.
1975 (valid_task_id, ada_get_environment_task)
1976 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1977 (info_tasks_command): Adjust implementation.
1978 (task_command): Likewise.
1979 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1980 to ada_build_task_list.
1981
1982 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1983
1984 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1985 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1986 (ada_tasks_inferior_data_handle): New static global.
1987 (get_ada_tasks_inferior_data): New function.
1988 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1989 (ada_get_environment_task, iterate_over_live_ada_tasks)
1990 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1991 Adjust.
1992 (ada_set_current_inferior_known_tasks_addr): New function.
1993 (read_known_tasks, ada_build_task_list, short_task_info)
1994 (info_tasks, info_task, info_tasks_command, task_command_1)
1995 (task_command, ada_task_list_changed): Adjust.
1996 (ada_tasks_invalidate_inferior_data): New function.
1997 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1998 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1999 * ada-lang.h (struct inferior): Add declaration.
2000 (ada_task_list_changed): Update profile.
2001 * remote-wtx-pd.c: #include "inferior.h".
2002 (switch_to_pd_internal): Update call to ada_task_list_changed.
2003
2004 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2005
2006 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2007 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2008 (atcb_fieldno): Delete these static globals.
2009 (struct ada_tasks_pspace_data): New struct.
2010 (ada_tasks_pspace_data_handle): New static global.
2011 (get_ada_tasks_pspace_data): New function.
2012 (ada_tasks_invalidate_pspace_data): New function.
2013 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2014 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2015 (_initialize_tasks): Create this module's per-progspace
2016 data handle.
2017
2018 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2019
2020 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2021
2022 2011-09-16 Tristan Gingold <gingold@adacore.com>
2023
2024 * fork-child.c (fork_inferior): Update comment. Use alloca
2025 instead of xmalloc for argv. Move len and shell_command
2026 declarations in the block where they are used.
2027 Only call execvp. Factorize failure code.
2028
2029 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2030
2031 Code cleanup.
2032 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2033 `exp_element' instead of an element of the same and make the function
2034 static.
2035 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2036 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2037 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2038 Change argument of `write_exp_elt' function call.
2039 Remove extra spaces from comments.
2040 * parser-defs.h (write_exp_elt): Remove prototype.
2041
2042 2011-09-15 Paul Koning <paul_koning@dell.com>
2043
2044 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2045 count of item appended to list.
2046 * python/py-type.c (typy_fields): Likewise.
2047
2048 2011-09-15 Paul Koning <paul_koning@dell.com>
2049
2050 * MAINTAINERS (Write After Approval): Add myself to the list.
2051
2052 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2053
2054 PR threads/12628
2055 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2056 processes with multiple threads.
2057 (inf_has_multiple_thread_cb): New function.
2058 (inf_has_multiple_threads): New function.
2059
2060 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2061
2062 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2063 * python/py-inferior.c (GdbMethods): New Python method definition.
2064
2065 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2066
2067 Handle multiple breakpoint hits in Python interface:
2068 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2069 variable to breakpoints.
2070 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2071 bps instead of single breakpoint. Fix some space typos.
2072 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2073 variable to breakpoints.
2074
2075 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2076
2077 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2078 note if the breakpoint is internal.
2079
2080 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2081
2082 * MAINTAINERS (Write After Approval): Add myself to the list
2083
2084 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2085
2086 * infrun.c (prepare_for_detach, wait_for_inferior)
2087 (fetch_inferior_event): Don't flush the register cache.
2088 * remote.c (struct stop_reply) <regcache>: Add comment.
2089
2090 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2091
2092 Remove excessive DWARF expressions memory duplication.
2093 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2094 for block.data.
2095 (indirect_pieced_value): Remove variable result. Remove variable
2096 back_to and its use for baton.data.
2097 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2098 block.data.
2099 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2100 Update the function comment.
2101
2102 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2103
2104 * inferior.h (ALL_INFERIORS): New.
2105 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2106 for a stopped thread.
2107 (thread_db_find_new_threads): Look for threads in all inferiors.
2108
2109 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2110
2111 * breakpoint.c (update_watchpoint): Handle the case of the
2112 watchpoint to update not being in the breakpoint list yet.
2113 (hw_watchpoint_use_count): New, factored out from
2114 hw_watchpoint_used_count.
2115 (hw_watchpoint_used_count): Rename to ...
2116 (hw_watchpoint_used_count_others): ... this. Add `except'
2117 parameter. Don't count resources of `except'. Use
2118 hw_watchpoint_use_count.
2119
2120 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2121
2122 * gdbthread.h (enum thread_state): Moved here.
2123 (struct thread_info): Rename `executing_' field to `executing' and
2124 `state_' to `state'.
2125 * thread.c (enum thread_state): Moved to gdbthread.h.
2126 (new_thread, add_thread_silent, delete_thread_1)
2127 (any_live_thread_of_process, thread_alive, set_running)
2128 (set_running, is_thread_state, any_running, is_executing)
2129 (set_executing, finish_thread_state, print_thread_info)
2130 (do_captured_thread_select): Adjust.
2131
2132 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2133
2134 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2135 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2136
2137 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2138 Matt Rice <ratmice@gmail.com>
2139
2140 PR gdb/13175
2141
2142 * interps.c (struct interp) <interpreter_out>: Delete field.
2143 (interp_new): Remove the data and uiout parameters and adjust.
2144 (interp_set): Only set the current_uiout from the interpreter's
2145 uiout after initializing the interpreter. Adjust call to
2146 init_proc.
2147 (interp_ui_out): Adjust to call procs->ui_out_proc.
2148 (interp_data, interp_name): New.
2149 * interps.h (interp_init_ftype): Add `self' parameter.
2150 (interp_ui_out_ftype): New typedef.
2151 (struct interp_procs) <ui_out_proc>: New method pointer.
2152 (interp_new): Remove the data and uiout parameters.
2153 (interp_data, interp_name): Declare.
2154 * tui/tui-interp.c (tui_init): Adjust prototype.
2155 (tui_ui_out): New.
2156 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2157 tui_out here. Adjust call to interp_new.
2158 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2159 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2160 (cli_ui_out): New.
2161 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2162 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2163 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2164 Initialize mi->uiout depending on the mi_version as extracted from
2165 the interpreter's name.
2166 (mi_ui_out): New.
2167 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2168 interp_new. Don't allocate the ui_out's of the interpreters here.
2169
2170 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2171
2172 * solib.c (solib_used): New function.
2173 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2174 by another so_list object before freeing it.
2175
2176 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 Code cleanup.
2179 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2180 values.
2181
2182 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2183
2184 Code cleanup.
2185 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2186 (amd64_skip_xmm_prologue): ... this new function. Describe its
2187 parameters. No longer use amd64_prologue_line_bug.
2188 * defs.h (producer_is_gcc_ge_4): New declaration.
2189 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2190 (process_full_comp_unit): Update its caller. Remove
2191 amd64_prologue_line_bug initialization.
2192 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2193 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2194
2195 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2196
2197 * linux-nat.h (enum resume_kind): New.
2198 (struct lwp_info) <last_resume_kind>: New field.
2199 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2200 resume_stop on the new lwp.
2201 (add_lwp): Set last_resume_kind as resume_continue by default.
2202 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2203 (resume_lwp): New, factored out from resume_callback. Also check
2204 for pending status in lp->waitstatus.
2205 (resume_callback): Reimplement.
2206 (resume_clear_callback): Set last_resume_kind as resume_stop.
2207 (resume_set_callback): Set last_resume_kind as resume_continue.
2208 (linux_nat_resume, linux_handle_extended_wait): Set
2209 last_resume_kind.
2210 (running_callback): Also check lp->waitstatus for pending events.
2211 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2212 is resume_step.
2213 (stop_and_resume_callback): Don't re-resume if the core wanted the
2214 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2215 using an invalidated pointer.
2216 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2217 SIGSTOPs if the core wanted the LWP to stop.
2218 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2219 wanted the lwp to stop. If the core wanted the lwp to stop, and
2220 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2221 of TARGET_SIGNAL_STOP.
2222 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2223 here. Instead, signal the lwp, and set the last_resume_kind to
2224 resume_stop.
2225
2226 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2227
2228 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2229 -1 (error), if the lwp exits right after attaching.
2230
2231 2011-09-08 Doug Evans <dje@google.com>
2232
2233 * py-cmd.c: Some minor formatting fixes.
2234 (gdbpy_parse_command_name): Rename text arg to name, make const.
2235 All callers updated.
2236 * python-internal.h (gdbpy_parse_command_name): Update.
2237
2238 * cli/cli-decode.c (add_cmd): Add comment.
2239
2240 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2241
2242 PR breakpoints/12435
2243 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2244 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2245 * dwarf2read.c (process_full_comp_unit): Initialize
2246 amd64_prologue_line_bug.
2247 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2248
2249 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2250
2251 Fix TUI screen corruption.
2252 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2253 batch_flag.
2254
2255 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 * findvar.c (read_var_value): Never return NULL, throw an error
2258 instead. Update the function comment. State symbol name in the error
2259 messages.
2260 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2261 read_var_value.
2262 * stack.c (print_frame_args): Likewise.
2263 * valops.c (value_of_variable): Likewise.
2264
2265 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2266
2267 * stack.c (print_frame_args): New variable except. Wrap
2268 read_var_value and common_val_print into TRY_CATCH.
2269
2270 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2271
2272 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2273 caller to value_of_this.
2274 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2275 Twice.
2276 * valops.c (value_of_this): Remove parameter complain and variable ret.
2277 Update function comment. Never return NULL by this code.
2278 (value_of_this_silent): New function.
2279 * value.h (value_of_this): Remove parameter complain.
2280 (value_of_this_silent): New declaration.
2281
2282 2011-09-07 Yao Qi <yao@codesourcery.com>
2283
2284 * gdbthread.h (struct thread_info): Remove fields
2285 `stepping_through_solib_after_catch' and
2286 `stepping_through_solib_catchpoints'.
2287 * infrun.c (init_thread_stepping_state): Update.
2288 (process_event_stop_test, currently_stepping): Update.
2289 (currently_stepping_or_nexting_callback): Update.
2290
2291 2011-09-07 Yao Qi <yao@codesourcery.com>
2292
2293 * gdbthread.h (struct thread_info): Comment on field
2294 `step_after_step_resume_breakpoint'.
2295
2296 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2297
2298 * remote.c (remote_console_output): Reindent.
2299
2300 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2301
2302 * frame.c (has_stack_frames): Check for currently selected
2303 traceframe.
2304
2305 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2306
2307 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2308 (set_async_annotation_level, set_async_prompt, pop_prompt)
2309 (push_prompt, new_async_prompt): Delete declarations.
2310 * top.h (get_prompt, set_prompt): Change prototype.
2311 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2312 declarations.
2313 * top.c (command_loop):
2314 (top_prompt): New global.
2315 (get_prefix, set_prefix, get_suffix, ): Delete.
2316 (get_prompt, set_prompt): Rewrite.
2317 (show_new_async_prompt): Rename to ...
2318 (show_prompt): ... this.
2319 (init_main): Adjust. Don't handle --annotate=2 here.
2320 * event-top.c (new_async_prompt): Delete.
2321 (the_prompts): Delete.
2322 (more_to_come): Make static.
2323 (display_gdb_prompt): Use top_level_prompt() to compute the top
2324 level prompt, and don't notify the before_prompt observers
2325 directly here. Always trick readline into not trying to display
2326 the prompt if sync_execution and displaying the primary prompt.
2327 If displaying a local/secondary prompt, always show it, even if
2328 sync_execution is set.
2329 (change_annotation_level): Delete.
2330 (top_level_prompt): New, based on change_annotation_level.
2331 (push_prompt, pop_prompt): Delete.
2332 (async_disable_stdin): No longer pushes prompt.
2333 (command_line_handler): No longer pushes or pops prompt. If more
2334 input is expected, call display_gdb_prompt with an explicit empty
2335 prompt.
2336 (async_stop_sig): Adjust.
2337 (set_async_annotation_level, set_async_prompt): Delete.
2338 * python/python.c (before_prompt_hook): Adjust.
2339
2340 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2341
2342 PR cli/13110
2343
2344 * infrun.c (fetch_inferior_event): Check if there's a selected
2345 thread before checking if the selected thread is executing.
2346
2347 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2348
2349 * inf-loop.c (execute_command): Don't check if the current thread
2350 if running before synchronously waiting for command completion.
2351 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2352 here.
2353 (normal_stop): Call async_enable_stdin here.
2354 * inf-loop.c (inferior_event_handler): Don't call
2355 async_enable_stdin, nor handle "set exec-done-display" here.
2356
2357 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2358
2359 GDB 7.3.1 released.
2360
2361 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2362
2363 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2364
2365 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2366
2367 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2368
2369 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2370
2371 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2372
2373 2011-09-02 Matt Rice <ratmice@gmail.com>
2374
2375 PR gdb/10720
2376 * event-top.c (cli_command_loop): Replace readline setup with
2377 direct call to display_gdb_prompt.
2378 (display_gdb_prompt): Do not call observer mechanism during
2379 synchronous execution.
2380
2381 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2382
2383 * linux-nat.c (in_pid_list_p): New.
2384 (linux_record_stopped_pid): Delete.
2385 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2386 already attached to the LWP. Return an indication if so.
2387 (linux_nat_filter_event): Adjust.
2388 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2389 returning an indication to ignore this thread.
2390
2391 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2392
2393 * top.c: Include interps.h.
2394 (execute_command): If the target can async, but the interpreter is
2395 in sync mode, synchronously wait for the command to finish before
2396 returning.
2397 (execute_command_to_string): Force the interpreter to sync mode.
2398 * infrun.c: Include interps.h.
2399 (fetch_inferior_event): Don't restore the prompt yet if the
2400 interpreter is in sync mode.
2401 * interps.c (interpreter_async): New global.
2402 * interps.h (interpreter_async): Declare.
2403 * inf-loop.c: Include interps.h.
2404 (inferior_event_handler): Don't print the language change or run
2405 breakpoint commands yet if the interpreter in is sync mode.
2406 * main.c (captured_command_loop): Flip the interpreter to async
2407 mode.
2408 * cli/cli-script.c: Include interps.h.
2409 (execute_user_command, while_command, if_command): Force the
2410 interpreter to sync mode.
2411 * python/python.c: Include interps.h.
2412 (python_command, execute_gdb_command): Force the interpreter to
2413 sync mode.
2414
2415 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2416
2417 * value.c (show_convenience): Catch errors thrown while printing
2418 each internal variable.
2419 * infrun.c (validate_siginfo_access): New function.
2420 (siginfo_value_read, siginfo_value_write): Call it.
2421
2422 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 Revert:
2425 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2426 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2427 attribute.
2428
2429 2011-08-29 Yao Qi <yao@codesourcery.com>
2430
2431 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2432 (cmp_name): New.
2433 (enable_break2): Update caller.
2434 * solib-frv.c (bfd_lookup_symbol): Removed.
2435 (cmp_name): New.
2436 (enable_break2): Update caller.
2437 * solib-pa64.c (bfd_lookup_symbol): Removed.
2438 (cmp_name): New.
2439 * solib-svr4.c (bfd_lookup_symbol): Removed.
2440 (cmp_name_and_sec_flags): New.
2441 (enable_break): Update caller.
2442 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2443 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2444 (gdb_bfd_lookup_symbol): New.
2445 * solib.h: Functions declarations.
2446
2447 2011-08-29 Yao Qi <yao@codesourcery.com>
2448
2449 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2450 and solib-dsbt.o.
2451
2452 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2453
2454 Fix TUI stepi on code without symbols.
2455 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2456 current PC instead.
2457
2458 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2459
2460 Code cleanup.
2461 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2462 and the static keyword.
2463 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2464 Make prefix an array.
2465 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2466 * mi/mi-main.c (get_register): Remove stb initialization and the static
2467 keyword.
2468
2469 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2470
2471 Code cleanup - make mi_opt const.
2472 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2473 opts const.
2474 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2475 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2476 (mi_cmd_env_dir): Likewise.
2477 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2478 (mi_cmd_target_file_put): Likewise.
2479 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2480 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2481 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2482 (mi_valid_noargs): Make opts const.
2483 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2484 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2485 (mi_cmd_data_read_memory): Likewise.
2486 (mi_cmd_data_read_memory_bytes): Likewise.
2487 (mi_cmd_data_write_memory): Likewise.
2488
2489 2011-08-26 Matt Rice <ratmice@gmail.com>
2490
2491 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2492 bcache_xmalloc, replace bcache_xmalloc with call to
2493 psymbol_bcache_init for psymbol_cache.
2494 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2495
2496 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2497
2498 * inf-loop.c (inferior_event_handler): Add exception_print in
2499 INF_EXEC_COMPLETE.
2500
2501 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2504 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2505 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2506 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2507 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2508 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2509 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2510 * infrun.c (fetch_inferior_event): Call
2511 make_bpstat_clear_actions_cleanup.
2512 * top.c (execute_command): New variable cleanup_if_error, call
2513 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2514 * utils.c (do_bpstat_clear_actions_cleanup)
2515 (make_bpstat_clear_actions_cleanup): New functions.
2516
2517 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2518
2519 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2520 either the parent or the child forks. Rename a couple locals.
2521
2522 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2523
2524 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2525 library call. Avoid reading the `status' local if all waitpid
2526 calls failed.
2527
2528 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2529
2530 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2531 opening /proc/PID/task always succeeds.
2532
2533 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2534
2535 * linespec.c (symtab_from_filename): Check for the end of string.
2536
2537 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2538
2539 PR mi/11912
2540 * varobj.c (cplus_describe_child): Add the keyword
2541 'class' to the output of the method when dealing
2542 with a cast to a base class.
2543
2544 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 No functionality change.
2547 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2548 function comment a reference, new variables tp and bs, move here code
2549 from throw_exception.
2550 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2551 describe it in the comment.
2552 * exceptions.c (throw_exception): Remove variable tp, move the code for
2553 bpstat_clear_actions to bpstat_clear_actions.
2554
2555 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2556
2557 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2558 * linux-nat.c: Include linux-procfs.h.
2559 (linux_proc_get_tgid): Move to ...
2560 * common/linux-procfs.c: ... here. New file.
2561 * common/linux-procfs.h: New file.
2562 * linux-thread-db.c: Include linux-procfs.h.
2563 * Makefile.in: Update dependencies.
2564 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2565 * config/arm/linux.mh: Likewise.
2566 * config/i386/linux.mh: Likewise.
2567 * config/i386/linux64.mh: Likewise.
2568 * config/ia64/linux.mh: Likewise.
2569 * config/m32r/linux.mh: Likewise.
2570 * config/m68k/linux.mh: Likewise.
2571 * config/mips/linux.mh: Likewise.
2572 * config/pa/linux.mh: Likewise.
2573 * config/pa/linux.mh: Likewise.
2574 * config/powerpc/linux.mh: Likewise.
2575 * config/powerpc/ppc64-linux.mh: Likewise.
2576 * config/powerpc/spu-linux.mh: Likewise.
2577 * config/sparc/linux.mh: Likewise.
2578 * config/sparc/linux64.mh: Likewise.
2579 * config/xtensa/linux.mh: Likewise.
2580
2581 2011-08-24 Hui Zhu <teawater@gmail.com>
2582
2583 * tracepoint.c (cond_string_is_same): New function.
2584 (find_matching_tracepoint): Add condition check
2585 by cond_string_is_same.
2586
2587 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2588
2589 Fix build error in Darwin port.
2590 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2591
2592 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2593
2594 Code cleanup.
2595 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2596 (command_line_is_silent): New function.
2597 (bpstat_do_actions_1): No longer use commands_left, use
2598 command_line_is_silent for commands.
2599 (bpstat_alloc): Remove clearing of commands_left.
2600 (bpstat_stop_status): Remove initialization of commands_left, use
2601 command_line_is_silent.
2602 * breakpoint.h (struct bpstats): Remove commands_left.
2603
2604 2011-08-18 Keith Seitz <keiths@redhat.com>
2605
2606 PR c++/12266
2607 * cp-name-parser.y (struct demangle_info): Remove unused
2608 member PREV.
2609 (d_grab): Likewise.
2610 (allocate_info): Change return type to struct demangle_info *.
2611 Always allocate a new demangle_info.
2612 Remove unused PREV pointer.
2613 (cp_new_demangle_parse_info): New function.
2614 (cp_demangled_name_parse_free): New function.
2615 (do_demangled_name_parse_free_cleanup): New function.
2616 (make_cleanup_cp_demangled_name_parse_free): New function.
2617 (cp_demangled_name_to_comp): Change return type to
2618 struct demangle_parse_info *.
2619 Allocate a new storage for each call.
2620 (main): Update usage for cp_demangled_name_to_comp
2621 API change.
2622 * cp-support.h (struct demangle_parse_info): New structure.
2623 (cp_demangled_name_to_comp): Update API change for
2624 return type.
2625 (cp_new_demangle_parse_info): Declare.
2626 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2627 (cp_demangled_name_parse_free): Declare.
2628 * cp-support.c (cp_canonicalize_string): Update API
2629 change for cp_demangled_name_to_comp.
2630 (mangled_name_to_comp): Likewise.
2631 Return struct demangle_parse_info, too.
2632 (cp_class_name_from_physname): Update mangled_name_to_comp
2633 API change.
2634 (method_name_from_physname): Likewise.
2635 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2636 (cp_remove_params): Likewise.
2637 * python/py-type.c (typy_legacy_template_argument): Likewise.
2638
2639 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2640 (cp_merge_demangle_parse_infos): Declare.
2641 * cp-support.c (ignore_typedefs): New file global.
2642 (copy_string_to_obstack): New function.
2643 (inspect_type): New function.
2644 (replace_typedefs): New function.
2645 (replace_typedefs_qualified_name): New function.
2646 (cp_canonicalize_string_no_typedefs): New function.
2647 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2648 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2649 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2650 instead of cp_canonicalize_string.
2651 (find_method): Likewise.
2652 (decode_compound): Before looking up the name, call
2653 cp_canonicalize_string_no_typedefs.
2654 (decode_variable): Likewise.
2655
2656 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2657 Tom Tromey <tromey@redhat.com>
2658 Matt Rice <ratmice@gmail.com>
2659
2660 * python/lib/gdb/prompt.py: New file.
2661 * python/lib/gdb/command/prompt.py: New file.
2662 * NEWS: Document set extended-prompt and gdb.prompt library
2663
2664 2011-08-16 Yao Qi <yao@codesourcery.com>
2665
2666 * tic6x-linux-tdep.c: Move const arrays definition from here...
2667 * tic6x-tdep.c: to here ...
2668
2669 2011-08-14 Yao Qi <yao@codesourcery.com>
2670
2671 * NEWS: New port to Texas Instruments TMS320C6x.
2672
2673 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2674 Bernd Schmidt <bernds@codesourcery.com>
2675 Yao Qi <yao@codesourcery.com>
2676
2677 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2678 * solib-dsbt.c: New file. Support DSBT shared object.
2679 * tic6x-linux-tdep.c: New file.
2680 * tic6x-tdep.c: New file.
2681 * tic6x-tdep.h: New file.
2682
2683 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2684 Yao Qi <yao@codesourcery.com>
2685
2686 * remote.c (PACKET_qXfer_fdpic): New enum value.
2687 (remote_protocol_features): Add qXfer:fdpic:read packet.
2688 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2689 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2690 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2691
2692 2011-08-14 Yao Qi <yao@codesourcery.com>
2693
2694 Target description for tic6x.
2695 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2696 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2697 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2698 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2699 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2700 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2701 * features/tic6x-c64xp-linux.xml: New.
2702 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2703 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2704 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2705 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2706 * regformats/tic6x-c64xp.dat,
2707 regformats/tic6x-c62x-linux.dat: Generated.
2708 * regformats/tic6x-c64x-linux.dat,
2709 regformats/tic6x-c64xp-linux.dat: Generated.
2710 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2711 features/tic6x-*.c files.
2712 Add regformats/tic6x-*.dat files.
2713
2714 2011-08-12 Doug Evans <dje@google.com>
2715
2716 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2717 * python/py-symbol.c (sympy_get_type): New function.
2718 (symbol_object_getset): Add "type".
2719
2720 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2721
2722 PR tui/13073
2723
2724 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2725 empty name.
2726 (tui_show_register_group): Don't store a byte buffer in the data
2727 element's value.
2728 (tui_register_format): Skip registers with an empty name.
2729 (tui_get_register): Store a struct value in the data element's
2730 value field instead of a byte buffer holding the raw register
2731 contents. Account for optimized-out and unavailable registers
2732 when comparing register contents.
2733
2734 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2735
2736 * printcmd.c (current_display_number): Update comment.
2737 (disable_current_display_cleanup): Delete.
2738 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2739 catch errors thrown while evaluating and printing the display.
2740
2741 2011-08-09 Tom Tromey <tromey@redhat.com>
2742
2743 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2744
2745 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2746
2747 * elfread.c (elf_symtab_read): Rework comments.
2748 * maint.c (maintenance_command): Ditto.
2749 * somread.c (som_symtab_read): Ditto.
2750 * solib.c (solib_find, solib_map_sections, update_solib_list)
2751 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2752 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2753 (sharedlibrary_command, no_shared_libraries): Ditto.
2754 * solib-irix.c (locate_base, disable_break, enable_break)
2755 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2756 (irix_current_sos, irix_open_symbol_file_object)
2757 (irix_special_symbol_handling): Ditto.
2758 * solib-sunos.c (locate_base, first_link_map_member)
2759 (sunos_current_sos, disable_break, enable_break)
2760 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2761 Ditto.
2762 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2763 (open_symbol_file_object, svr4_current_sos, enable_break)
2764 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2765 Ditto.
2766 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2767 (frv_current_sos, enable_break, frv_special_symbol_handling)
2768 (frv_solib_create_inferior_hook): Ditto.
2769 * solist.h (struct target_so_ops): Extend the comments of the
2770 special_symbol_handling, current_sos and open_symbol_file_object
2771 methods.
2772
2773 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2774
2775 * python/lib/gdb/__init__.py: Auto-load files in command and
2776 function directories.
2777 * python/python.c (finish_python_initialization): Use
2778 os.path.join.
2779 * python/lib/gdb/command/pretty_printers.py: Self register
2780 command.
2781 * NEWS: Document auto-loading.
2782
2783 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2786 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2787 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2788
2789 2011-08-08 Tom Tromey <tromey@redhat.com>
2790
2791 * breakpoint.c (clean_up_filters): Remove.
2792 (catch_syscall_split_args): Use VEC_cleanup.
2793
2794 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2797 (main): Uncomment "Demangling error\n".
2798
2799 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2800
2801 * solib-target.c (segment_attributes): Make them static.
2802 (section_attributes, library_children, library_attributes): Likewise.
2803 (library_list_children, library_list_attributes): Likesise.
2804 (library_list_elements): Likewise.
2805
2806 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2807
2808 * exceptions.c (throw_exception): Don't disable the current
2809 display.
2810 * printcmd.c (disable_current_display_cleanup): New function.
2811 (do_one_display): Install a cleanup to disable the current display
2812 if doing the display throws.
2813
2814 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2815
2816 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2817 initialization of the tp_new member to the corresponding
2818 gdbpy_initialize_* function.
2819 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2820 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2821 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2822 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2823 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2824
2825 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2828 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2829 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2830 references to current_uiout.
2831
2832 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2833
2834 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2835 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2836 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2837 * top.c (gdb_readline_wrapper): Adjust.
2838 * tui/tui-interp.c (tui_command_loop):
2839 (_initialize_tui_interp): Don't install it.
2840
2841 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2842
2843 * ui-out.h (uiout): Rename to ...
2844 (current_uiout): ... this.
2845 * ui-out.c (uiout): Rename to ...
2846 (current_uiout): ... this.
2847 * ada-lang.c (print_it_exception, print_one_exception)
2848 (print_mention_exception): Adjust.
2849 * breakpoint.c (watchpoint_check): Adjust.
2850 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2851 (default_collect_info, watchpoints_info, print_one_catch_fork)
2852 (print_one_catch_vfork, print_one_catch_syscall)
2853 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2854 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2855 (print_it_watchpoint, print_mention_watchpoint)
2856 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2857 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2858 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2859 (bkpt_print_mention, momentary_bkpt_print_it)
2860 (tracepoint_print_mention, update_static_tracepoint)
2861 (tracepoints_info, save_breakpoints): Adjust.
2862 * cli-out.c (field_separator): Adjust.
2863 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2864 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2865 * frame.c (get_current_frame): Adjust.
2866 * infcmd.c (run_command_1, print_return_value): Adjust.
2867 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2868 * infrun.c (print_end_stepping_range_reason): Adjust.
2869 (print_signal_exited_reason, print_exited_reason): Adjust.
2870 (print_signal_received_reason, print_no_history_reason): Adjust.
2871 * interps.c (interp_set): Adjust.
2872 * osdata.c (info_osdata_command): Adjust.
2873 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2874 * remote-fileio.c (remote_fileio_request): Adjust.
2875 * remote.c (show_remote_cmd): Adjust.
2876 * solib.c (info_sharedlibrary_command): Adjust.
2877 * source.c (print_source_lines_base): Adjust.
2878 * stack.c (print_stack_frame): Adjust.
2879 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2880 * symfile-mem.c (add_vsyscall_page): Adjust.
2881 * symfile.c (load_progress, generic_load)
2882 (print_transfer_performance): Adjust.
2883 * thread.c (info_threads_command, restore_selected_frame)
2884 (thread_command): Adjust.
2885 * top.c (make_cleanup_restore_ui_file): Adjust.
2886 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2887 (print_one_static_tracepoint_marker): Adjust.
2888 * cli/cli-cmds.c (print_disassembly): Adjust.
2889 * cli/cli-decode.c (print_doc_line): Adjust.
2890 * cli/cli-interp.c (safe_execute_command): Adjust.
2891 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2892 (handle_redirections): Adjust.
2893 * cli/cli-script.c (show_user_1): Adjust.
2894 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2895 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2896 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2897 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2898 (mi_cmd_env_dir): Adjust.
2899 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2900 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2901 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2902 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2903 (list_args_or_locals): Adjust.
2904 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2905 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2906 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2907 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2908 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2909 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2910 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2911 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2912 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2913 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2914 (list_available_thread_groups, mi_cmd_list_thread_groups)
2915 (mi_cmd_data_list_register_names)
2916 (mi_cmd_data_list_changed_registers)
2917 (mi_cmd_data_list_register_values, get_register)
2918 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2919 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2920 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2921 (mi_execute_command, mi_load_progress): Adjust.
2922 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2923 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2924 Adjust.
2925 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2926 * tui/tui-interp.c (tui_command_loop): Adjust.
2927 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2928
2929 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2930
2931 * exceptions.c (struct catcher): Remove saved_uiout field.
2932 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2933 no longer save/resvore the global ui_out builder.
2934 (catch_exceptions_with_msg): Save/override/restore the global
2935 ui_out builder manually instead of relying on TRY_CATCH to do it.
2936 (catch_errors): Save/restore the global ui_out builder manually
2937 instead of relying on TRY_CATCH to do it.
2938 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2939 parameter.
2940 (TRY_CATCH): Adjust.
2941 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2942 the global ui_out builder manually instead of relying on TRY_CATCH
2943 to do it.
2944
2945 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2946
2947 * breakpoint.c (update_global_location_list): Ensure
2948 invariant 'first loc marked not duplicated and inserted,
2949 following locs marked duplicated/not inserted' is respected
2950 for multiple locations at the same address.
2951 (unduplicated_should_be_inserted) New function.
2952 (swap_insertion) New function.
2953
2954 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2955
2956 * stack.c (print_frame_arguments_choices): Comment typo fix.
2957
2958 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2959
2960 Revert:
2961 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2962 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2963 argument. Update callers.
2964
2965 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2966
2967 PR gdb/13045
2968 * doublest.c (convert_doublest_to_floatformat): Pass correct
2969 mantissa length to put_field.
2970
2971 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2972
2973 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2974 exception_print code path.
2975 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2976 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2977 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2978
2979 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2980
2981 Code cleanup.
2982 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2983 Remove, merge them into ...
2984 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2985 variable args and its initialization.
2986 (struct print_args_args, print_args_stub): Remove, merge them into
2987 print_frame.
2988 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2989 them into ...
2990 (do_gdb_disassembly): ... here. Remove variable args and its
2991 initialization.
2992 (print_frame): Remove variable args and its initialization, new
2993 variable gdbarch and numargs (from print_args_stub), inline here
2994 print_args_stub with a TRY_CATCH.
2995 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2996 them into ...
2997 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2998 New variable e, remove variable btargs and its initialization.
2999
3000 2011-08-01 Tristan Gingold <gingold@adacore.com>
3001
3002 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3003
3004 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3005
3006 * breakpoint.c (insert_bp_location): Document return value.
3007 (insert_breakpoint_locations): Fix documentation.
3008 (remove_breakpoints): Add documentation.
3009
3010 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3011
3012 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3013 argument. Update callers.
3014
3015 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3016
3017 * stack.c (print_frame_info): Comment typo fix.
3018
3019 2011-07-29 Sterling Augustine <saugustine@google.com>
3020
3021 * MAINTAINERS (Write After Approval): Add myself to the list.
3022
3023 2011-07-29 Tom Tromey <tromey@redhat.com>
3024
3025 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3026 (library_list_start_segment): Update.
3027 (library_list_start_section): Update.
3028
3029 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3030
3031 * varobj.c (value_get_print_value): Move hint check later into the
3032 function. Comment function. Free thevalue before reusing it.
3033
3034 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3035 Pedro Alves <pedro@codesourcery.com>
3036
3037 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3038 value_one.
3039 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3040 Assert the result kind.
3041 * value.h (value_one): Remove parameter lv.
3042
3043 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3044
3045 Fix crash on lval_computed values.
3046 * valops.c (value_zero): Use not_lval for lval_computed.
3047
3048 2011-07-27 Tom Tromey <tromey@redhat.com>
3049
3050 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3051 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3052
3053 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3054
3055 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3056 "ptype" by their typedefs difference.
3057
3058 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 * dwarf2expr.c (ctx_no_read_reg): New function.
3061 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3062 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3063 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3064 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3065
3066 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3067
3068 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3069 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3070 file.
3071 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3072 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3073 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3074 (ctx_no_get_base_type): Move the functions here.
3075 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3076 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3077 (ctx_no_get_base_type): New declarations.
3078
3079 2011-07-27 Tom Tromey <tromey@redhat.com>
3080
3081 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3082 entries.
3083 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3084 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3085
3086 2011-07-26 Sterling Augustine <saugustine@google.com>
3087
3088 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3089 ULONGEST.
3090 (dump_bfd_file): Likewise.
3091
3092 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3093
3094 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3095 (remote_hw_watchpoint_length_limit): New variable.
3096 (_initialize_remote) add set,show cmds for this new variable.
3097 * gdb.texinfo: document these new commands.
3098 * NEWS: Mention these new commands.
3099
3100 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3101
3102 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3103 true for software watchpoints.
3104
3105 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3106
3107 GDB 7.3 released.
3108
3109 2011-07-26 Tom Tromey <tromey@redhat.com>
3110
3111 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3112 * dwarf2read.c (read_indirect_string_at_offset): New function.
3113 (read_indirect_string): Use it.
3114 (dwarf_decode_macro_bytes): New function, taken from
3115 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3116 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3117 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3118 New functions.
3119 (struct dwarf2_per_objfile) <macro>: New field.
3120 (dwarf2_elf_names): Add .debug_macro.
3121 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3122 (dwarf2_locate_sections): Handle new section.
3123 (read_file_scope): Handle DW_AT_GNU_macros.
3124 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3125
3126 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3127
3128 * NEWS: Mention dcache configuration.
3129 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3130 (dcache_size, dcache_line_size): New variables.
3131 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3132 (struct dcache_block): Make it expandable.
3133 (struct dcache_struct): New field.
3134 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3135 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3136 (dcache_poke_byte, dcache_print_line): Adjust.
3137 (set_dcache_size, set_dcache_line_size): New functions.
3138 (set_dcache_command, show_dcache_command): New functions.
3139 (_initialize_dcache): Add new commands.
3140
3141 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3142
3143 * progspace.h (struct program_space): Add solib_add_generation.
3144 * infcmd.c (post_create_inferior): Only call solib_add if not
3145 already done.
3146 * solib.c (solib_add): Increment solib_add_generation.
3147
3148 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3149
3150 Fix implicit pointer offsets.
3151 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3152 ptr.OFFSET.
3153
3154 2011-07-25 Tom Tromey <tromey@redhat.com>
3155
3156 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3157 const.
3158 (ada_exception_sal): Make 'ops' const.
3159 (ada_decode_exception_location): Likewise.
3160 (ada_decode_assert_location): Likewise.
3161 (catch_assert_command): Update.
3162 (catch_ada_exception_command): Update.
3163 (create_ada_exception_catchpoint): Make 'ops' const.
3164 * breakpoint.c (set_raw_breakpoint_without_location)
3165 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3166 const.
3167 (create_internal_breakpoint): Update.
3168 (init_raw_breakpoint_without_location): Make 'ops' const.
3169 (init_raw_breakpoint, init_catchpoint)
3170 (create_fork_vfork_event_catchpoint)
3171 (create_syscall_event_catchpoint, init_breakpoint_sal)
3172 (create_breakpoint_sal, create_breakpoints_sal)
3173 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3174 * breakpoint.h (struct breakpoint) <ops>: Now const.
3175 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3176 const.
3177
3178 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3179
3180 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3181
3182 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3183
3184 * breakpoint.h (print_recreate_thread): Declare.
3185 (struct breakpoint): Move step_count, pass_count,
3186 number_on_target, static_trace_marker_id,
3187 static_trace_marker_id_idx ...
3188 (struct tracepoint): ... to this new struct.
3189 (get_tracepoint, get_tracepoint_by_number_on_target)
3190 (get_tracepoint_by_number): Change return type to struct
3191 tracepoint pointer.
3192 * breakpoint.c (is_tracepoint_type): New, factored out from
3193 is_tracepoint.
3194 (is_tracepoint): Adjust.
3195 (print_one_breakpoint_location): Cast to struct tracepoint as
3196 necessary, and adjust.
3197 (print_recreate_catch_fork, print_recreate_catch_vfork)
3198 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3199 print_recreate_thread.
3200 (init_breakpoint_sal): New, factored out from
3201 create_breakpoint_sal.
3202 (create_breakpoint_sal): Reimplement.
3203 (create_breakpoint): Allocate a struct tracecepoint if the caller
3204 wanted a tracepoint. Use init_breakpoint_sal and
3205 install_breakpoint.
3206 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3207 (print_recreate_masked_watchpoint)
3208 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3209 (tracepoint_print_one_detail): Adjust.
3210 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3211 Dump the pass count here.
3212 (update_static_tracepoint): Adjust.
3213 (addr_string_to_sals): Adjust.
3214 (create_tracepoint_from_upload): Adjust. Change return type to
3215 struct tracepoint pointer.
3216 (trace_pass_set_count): Change parameter type to struct tracepoint
3217 pointer, and adjust.
3218 (trace_pass_command): Adjust.
3219 (get_tracepoint, get_tracepoint_by_number_on_target)
3220 (get_tracepoint_by_number): Change return type to struct
3221 tracepoint pointer, and adjust.
3222 (print_recreate_thread): New, factored out from save_breakpoints.
3223 (save_breakpoints): Don't print thread and task and passcount
3224 recreation here.
3225 * remote.c (remote_download_tracepoint): Adjust.
3226 * tracepoint.c (trace_actions_command, validate_actionline)
3227 (start_tracing, tfind_1, trace_find_tracepoint_command)
3228 (trace_dump_command): Adjust.
3229 (find_matching_tracepoint): Change return type to struct
3230 tracepoint pointer, and adjust.
3231 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3232 (tfile_trace_find, tfile_fetch_registers): Adjust.
3233 * tracepoint.h (create_tracepoint_from_upload): Change return type
3234 to struct tracepoint pointer.
3235 * ada-lang.c (print_recreate_exception): Call
3236 print_recreate_thread.
3237 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3238
3239 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3240
3241 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3242 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3243 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3244 watchpoint_thread, watchpoint_triggered ...
3245 (struct watchpoint): ... to this new struct.
3246 (is_watchpoint): Declare.
3247 (install_breakpoint): Add new `internal' parameter.
3248 * breakpoint.c (is_watchpoint): Delete declaration.
3249 (set_breakpoint_condition): Handle watchpoints.
3250 (is_watchpoint): Make public.
3251 (watchpoint_in_thread_scope): Change parameter type to struct
3252 watchpoint.
3253 (watchpoint_del_at_next_stop): Change parameter type to struct
3254 watchpoint. Remove assertion. Adjust.
3255 (update_watchpoint): Ditto.
3256 (insert_breakpoints, breakpoint_init_inferior)
3257 (watchpoints_triggered, watchpoint_check)
3258 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3259 (bpstat_stop_status, print_one_breakpoint_location)
3260 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3261 to struct watchpoint as necessary, and adjust.
3262 (install_breakpoint): Add `internal' argument. If true, don't
3263 mention the new breakpoint. Use set_breakpoint_number.
3264 (create_fork_vfork_event_catchpoint)
3265 (create_syscall_event_catchpoint): Adjust.
3266 (dtor_watchpoint): New.
3267 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3268 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3269 (print_it_watchpoint, print_mention_watchpoint)
3270 (print_recreate_watchpoint, insert_masked_watchpoint)
3271 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3272 (print_one_detail_masked_watchpoint)
3273 (print_mention_masked_watchpoint)
3274 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3275 necessary, and adjust.
3276 (watch_command_1): Allocate and initialize a struct watchpoint
3277 instead of a struct breakpoint. Use install_breakpoint.
3278 (catch_exec_command_1): Adjust.
3279 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3280 fields.
3281 (delete_breakpoint, enable_breakpoint_disp)
3282 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3283 as necessary, and adjust.
3284 (initialize_breakpoint_ops): Install dtor_watchpoint as
3285 watchpoints' dtor method.
3286 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3287 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3288 to struct watchpoint as necessary, and adjust.
3289
3290 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3291
3292 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3293 the the base class ops table.
3294 (catch_exception_breakpoint_ops)
3295 (catch_exception_unhandled_breakpoint_ops)
3296 (catch_assert_breakpoint_ops): Don't statically initialize.
3297 (initialize_ada_catchpoint_ops): New.
3298 (_initialize_ada_language): Call it.
3299 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3300 (bkpt_breakpoint_ops): Forward declare.
3301 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3302 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3303 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3304 (masked_watchpoint_breakpoint_ops)
3305 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3306 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3307 base class ops table.
3308 (null_re_set, null_check_status, null_works_in_software_mode)
3309 (null_resources_needed, null_print_one_detail): Delete.
3310 (bkpt_dtor): Rename to ...
3311 (base_breakpoint_dtor): ... this. Make static.
3312 (bkpt_allocate_location): Rename to ...
3313 (base_breakpoint_allocate_location): ... this. Make static.
3314 (base_breakpoint_re_set): New.
3315 (internal_error_pure_virtual_called): New.
3316 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3317 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3318 (base_breakpoint_works_in_software_mode)
3319 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3320 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3321 (base_breakpoint_print_recreate): New functions.
3322 (base_breakpoint_ops): New global.
3323 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3324 (bkpt_breakpoint_hit): Make static.
3325 (bkpt_check_status): Delete.
3326 (bkpt_resources_needed): Make static.
3327 (bkpt_works_in_software_mode): Delete.
3328 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3329 static.
3330 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3331 (momentary_breakpoint_ops): Don't statically initialize.
3332 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3333 Delete.
3334 (tracepoint_insert_location, tracepoint_remove_location)
3335 (tracepoint_check_status, tracepoint_works_in_software_mode)
3336 (tracepoint_print_it): Delete.
3337 (tracepoint_breakpoint_ops): Don't statically initialize.
3338 (initialize_breakpoint_ops): New.
3339 (_initialize_breakpoint): Call it.
3340 * breakpoint.h (null_re_set, null_works_in_software_mode)
3341 (null_resources_needed, null_check_status, null_print_one_detail):
3342 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3343 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3344 (bkpt_check_status, bkpt_resources_needed)
3345 (bkpt_works_in_software_mode, bkpt_print_it)
3346 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3347 Delete declarations.
3348 (initialize_breakpoint_ops): Declare.
3349
3350 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3351
3352 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3353 (momentary_bkpt_print_it): Simplify.
3354
3355 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3356
3357 Split internal, momentary and user breakpoints breakpoint_ops
3358 tables.
3359
3360 * breakpoint.c (internal_breakpoint_ops)
3361 (momentary_breakpoint_ops): Forward declare.
3362 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3363 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3364 (create_overlay_event_breakpoint)
3365 (create_std_terminate_master_breakpoint)
3366 (create_exception_master_breakpoint): Create breakpoints with
3367 internal_breakpoint_ops vtable.
3368 (set_longjmp_breakpoint): Create momentary breakpoints with
3369 momentary_breakpoint_ops vtable, using
3370 momentary_breakpoint_from_master.
3371 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3372 (create_solib_event_breakpoint): Create breakpoints with
3373 internal_breakpoint_ops vtable.
3374 (set_momentary_breakpoint): Create breakpoints with
3375 momentary_breakpoint_ops vtable.
3376 (momentary_breakpoint_from_master): New, factored out from
3377 clone_momentary_breakpoint.
3378 (clone_momentary_breakpoint): Adjust.
3379 (watch_command_1): Create scope breakpoints with
3380 momentary_breakpoint_ops vtable.
3381 (bkpt_re_set): Remove handling of internal and momentary
3382 breakpoints.
3383 (bkpt_print_mention, bkpt_print_recreate): New.
3384 (bkpt_breakpoint_ops): Adjust.
3385 (internal_bkpt_re_set, internal_bkpt_check_status)
3386 (internal_bkpt_print_it, internal_bkpt_print_mention)
3387 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3388 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3389 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3390 (momentary_bkpt_print_recreate): New.
3391 (momentary_breakpoint_ops): New.
3392
3393 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3394
3395 Implement most breakpoint_ops methods for all breakpoint types,
3396 and move the default handlings to the proper callbacks.
3397
3398 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3399 works_in_software_mode method.
3400 (insert_bp_location): Go through breakpoint_ops->insert_location
3401 for software and hardware watchpoints.
3402 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3403 breakpoint_ops.
3404 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3405 for software and hardware watchpoints.
3406 (print_it_typical): Delete.
3407 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3408 method.
3409 (watchpoint_check): Adjust comment.
3410 (bpstat_check_location): Simply always call the breakpoint's
3411 breakpoint_hit method.
3412 (bpstat_stop_status): Always call the breakpoint's check_status
3413 method. Remove special cases for watchpoints and internal event
3414 breakpoints from here (moved to the check_status implementations).
3415 (print_one_breakpoint_location): Assume b->ops is never NULL.
3416 Remove static tracepoint marker id printing from here (moved to
3417 the print_one_detail callback implementation of tracepoints).
3418 (init_bp_location): Assert OPS is never NULL.
3419 (allocate_bp_location): Always call the breakpoint's
3420 allocate_location method, and remove the default code from here.
3421 (free_bp_location): Always call the location's dtor method, and
3422 remove the default code from here.
3423 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3424 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3425 parameter. Pass it down.
3426 (set_raw_breakpoint): Ditto.
3427 (print_it_catch_fork): Adjust to take a bpstat as argument.
3428 (catch_fork_breakpoint_ops): Install methods.
3429 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3430 (catch_vfork_breakpoint_ops): Install methods.
3431 (dtor_catch_syscall): Call the base dtor.
3432 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3433 (catch_syscall_breakpoint_ops): Install methods.
3434 (dtor_catch_exec): Call the base dtor.
3435 (print_it_catch_exec): Adjust to take a bpstat as argument.
3436 (catch_exec_breakpoint_ops): Install methods.
3437 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3438 the breakpoint's resources_needed method, and remove the default
3439 code from here.
3440 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3441 breakpoint_ops.
3442 (clone_momentary_breakpoint): Clone the original's ops.
3443 (mention): Always call the breakpoint's print_mention method, and
3444 remove the default code from here.
3445 (create_breakpoint_sal): Adjust to pass the ops to
3446 set_raw_breakpoint rather than setting it manually.
3447 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3448 ops to set_raw_breakpoint_without_location rather than setting it
3449 manually.
3450 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3451 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3452 (ranged_breakpoint_ops): Install methods.
3453 (break_range_command): Adjust to pass the ops to
3454 set_raw_breakpoint rather than setting it manually.
3455 (re_set_watchpoint, breakpoint_hit_watchpoint)
3456 (check_status_watchpoint, resources_needed_watchpoint)
3457 (works_in_software_mode_watchpoint, print_it_watchpoint)
3458 (print_mention_watchpoint, print_recreate_watchpoint): New
3459 functions.
3460 (watchpoint_breakpoint_ops): Install new methods.
3461 (print_it_masked_watchpoint): New function.
3462 (masked_watchpoint_breakpoint_ops): Install new methods.
3463 (watch_command_1): Adjust to pass the right breakpoint_ops to
3464 set_raw_breakpoint_without_location rather than setting it
3465 manually later. Record the current pspace.
3466 (print_it_exception_catchpoint): Adjust to take a bpstat as
3467 argument.
3468 (gnu_v3_exception_catchpoint_ops): Install new methods.
3469 (say_where): New function.
3470 (null_re_set, null_check_status, null_works_in_software_mode)
3471 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3472 New functions.
3473 (bp_location_ops): New global.
3474 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3475 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3476 (bkpt_check_status, bkpt_resources_needed)
3477 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3478 (bkpt_print_recreate): New functions.
3479 (bkpt_breakpoint_ops): New global.
3480 (tracepoint_re_set, tracepoint_insert_location)
3481 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3482 (tracepoint_check_status, tracepoint_works_in_software_mode)
3483 (tracepoint_print_it, tracepoint_print_one_detail)
3484 (tracepoint_print_mention, tracepoint_print_recreate): New
3485 functions.
3486 (tracepoint_breakpoint_ops): New global.
3487 (delete_breakpoint): Always call the breakpoint's dtor method, and
3488 remove the default handling from here.
3489 (breakpoint_re_set_default): Make static.
3490 (breakpoint_re_set_one): Always call the breakpoints re_set
3491 method, and remove the default handling from here.
3492 (trace_command, ftrace_command, strace_command)
3493 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3494 to create_breakpoint.
3495 (save_breakpoints): Always call the breakpoint's print_recreate
3496 method, and remove the default handling from here.
3497
3498 * ada-lang.c (dtor_exception): Call the base dtor.
3499 (re_set_exception): Call the base method.
3500 (print_it_exception, print_it_catch_exception): Adjust to take a
3501 bpstat as argument.
3502 (catch_exception_breakpoint_ops): Install methods.
3503 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3504 argument.
3505 (catch_exception_unhandled_breakpoint_ops): Install methods.
3506 (print_it_catch_assert): Adjust to take a bpstat as argument.
3507 (catch_assert_breakpoint_ops): Install methods.
3508
3509 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3510 to take a bpstat as argument.
3511 (enum print_stop_action): Add describing comments to each enum
3512 value.
3513 (breakpoint_re_set_default): Delete declaration.
3514 (null_re_set, null_works_in_software_mode, null_resources_needed)
3515 (null_check_status, null_print_one_detail): Declare.
3516 (bkpt_breakpoint_ops): Declare.
3517 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3518 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3519 (bkpt_check_status, bkpt_resources_needed)
3520 (bkpt_works_in_software_mode, bkpt_print_it)
3521 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3522 Declare.
3523
3524 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3525 bkpt_breakpoint_ops.
3526 * python/py-breakpoint.c (bppy_init): Ditto.
3527
3528 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3529
3530 * MAINTAINERS (Write After Approval): Add myself to the list.
3531
3532 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3533
3534 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3535
3536 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3537
3538 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3539 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3540 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3541 adjust.
3542 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3543 (struct i386_debug_reg_state): New.
3544 (i386_init_dregs): New.
3545 (dr_mirror): New.
3546 (i386_cleanup_dregs): Use i386_init_dregs.
3547 (i386_show_dr): Add state parameter and adjust.
3548 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3549 the inferior here.
3550 (i386_remove_aligned_watchpoint): Likewise.
3551 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3552 (i386_update_inferior_debug_regs): New.
3553 (i386_insert_watchpoint): Work on a local mirror of the debug
3554 registers, and only update the inferior on success.
3555 (i386_remove_watchpoint): Ditto.
3556 (i386_region_ok_for_watchpoint): Adjust.
3557 (i386_stopped_data_address): Adjust.
3558 (i386_insert_hw_breakpoint): Adjust.
3559 (i386_remove_hw_breakpoint): Adjust.
3560
3561 2011-07-22 Tom Tromey <tromey@redhat.com>
3562
3563 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3564 from amd64_pseudo_register_read. Change arguments. Call
3565 mark_value_bytes_unavailable when needed.
3566 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3567 set_gdbarch_pseudo_register_read.
3568 * sentinel-frame.c (sentinel_frame_prev_register): Use
3569 regcache_cooked_read_value.
3570 * regcache.h (regcache_cooked_read_value): Declare.
3571 * regcache.c (regcache_cooked_read_value): New function.
3572 (regcache_cooked_read): Call
3573 gdbarch_pseudo_register_read_value if available.
3574 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3575 (i386_pseudo_register_read): Remove.
3576 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3577 i386_pseudo_register_read. Change arguments. Call
3578 mark_value_bytes_unavailable when needed.
3579 (i386_pseudo_register_read_value): New function.
3580 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3581 not set_gdbarch_pseudo_register_read.
3582 * gdbarch.sh (pseudo_register_read_value): New method.
3583 * gdbarch.c, gdbarch.h: Rebuild.
3584 * findvar.c (value_from_register): Call get_frame_register_value.
3585
3586 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3587
3588 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3589 get_prefix.
3590 (display_gdb_prompt): Likewise.
3591 (change_annotation_level): Likewise.
3592 (push_prompt): Likewise.
3593 (pop_prompt): Likewise.
3594 (handle_stop_sig): Use get_prompt with a level.
3595 * top.c (command_loop): Use get_prompt with a level.
3596 (set_async_annotation_level): Use set_prompt with a level.
3597 (get_prefix): New function.
3598 (set_prefix): Ditto.
3599 (set_suffix): Ditto.
3600 (get_suffix): Ditto.
3601 (get_prompt): Accept a level argument.
3602 (set_prompt): Accept a level argument. Free old prompts. Set
3603 new_async_prompt if level is 0.
3604 (init_main): Use set_prompt with a level. Do not set
3605 new_async_prompt.
3606 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3607 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3608 Modify set_prompt, get_prompt to account for levels.
3609 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3610 level.
3611 * python/python.c (before_prompt_hook): Use set_prompt.
3612
3613 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3614
3615 * defs.h: Add guard against inclusion in gdbserver.
3616 (struct ptid, ptid_t): Move to common/ptid.h.
3617 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3618 xsnprintf, internal_error): Move to common/common-utils.h.
3619 (nomem): Delete.
3620 * gdb_assert.h: Move into common/ sub-directory.
3621 * gdb_locale.h: Ditto.
3622 * gdb_dirent.h: Ditto.
3623 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3624 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3625 Move into common/ptid.h.
3626 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3627 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3628 Change nomem to malloc_failure.
3629 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3630 * utils.c (nomem): Rename to malloc_failure.
3631 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3632 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3633 (gdb_buildargv): Change nomem to malloc_failure.
3634 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3635 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3636 ptid_is_pid): Move into common/ptid.c.
3637 (initialize_infrun): Delete initialization of null_ptid and
3638 minus_one_ptid.
3639 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3640 linux_common_xfer_osdata.
3641 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3642 common/ptid.c and common/buffer.c.
3643 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3644 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3645 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3646 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3647 rules.
3648 * common/gdb_assert.h: New.
3649 * common/gdb_dirent.h: New.
3650 * common/gdb_locale.h: New.
3651 * common/buffer.c: New.
3652 * common/buffer.h: New.
3653 * common/ptid.c: New.
3654 * common/ptid.h: New.
3655 * common/xml-utils.c: New.
3656 * common/xml-utils.h: New.
3657 * common/common-utils.c: New.
3658 * common/common-utils.h: New.
3659 * common/linux-osdata.c: New.
3660 * common/linux-osdata.h: New.
3661 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3662 * config/arm/linux.mh (NATDEPFILES): Ditto.
3663 * config/i386/linux.mh (NATDEPFILES): Ditto.
3664 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3665 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3666 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3667 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3668 * config/mips/linux.mh (NATDEPFILES): Ditto.
3669 * config/pa/linux.mh (NATDEPFILES): Ditto.
3670 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3671 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3672 * config/s390/s390.mh (NATDEPFILES): Ditto.
3673 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3674 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3675 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3676
3677 2011-07-21 Matt Rice <ratmice@gmail.com>
3678
3679 * NEWS: Add info macros and info definitions commands.
3680
3681 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3682
3683 * NEWS: Document Python prompt substitution hook.
3684
3685 2011-07-18 Matt Rice <ratmice@gmail.com>
3686
3687 PR macros/12999
3688 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3689 * macrotab.c (foreach_macro): Ditto.
3690 (foreach_macro_in_scope): Ditto.
3691 * macrocmd.c (print_macro_callback): New function.
3692 (info_macro_command): Move some code to print_macro_definition.
3693 (print_macro_definition): New function.
3694 (print_one_macro): Add new arguments to callback.
3695 (info_definitions_command): New function.
3696 (info_macros_command): Ditto.
3697 (_initialize_macrocmd): Add info macros and info definitions commands.
3698 * symtab.c (add_macro_name): Add new arguments to callback.
3699
3700 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3701 Tom Tromey <tromey@redhat.com>
3702
3703 * top.c (set_prompt): Rewrite to free previous prompt, free
3704 asynch_new_prompt and set both on new prompts.
3705 * event-top.c (display_gdb_prompt): Add prompt substitution
3706 logic.
3707 * python/python.c (before_prompt_hook): New function.
3708
3709 2011-07-20 Matt Rice <ratmice@gmail.com>
3710
3711 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3712 arguments to store_unsigned_integer.
3713
3714 2011-07-20 Tom Tromey <tromey@redhat.com>
3715
3716 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3717 in some declaration-only cases.
3718
3719 2011-07-18 Tom Tromey <tromey@redhat.com>
3720
3721 PR symtab/12984:
3722 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3723 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3724 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3725 <debug_type_section>: New field.
3726 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3727 (load_cu): Use appropriate section.
3728 (create_signatured_type_table_from_index): Add 'section'
3729 argument.
3730 (dwarf2_read_index): Only allow a single .debug_types section.
3731 (dw2_get_file_names): Use appropriate section.
3732 (read_type_comp_unit_head): Add 'section' argument.
3733 (create_debug_types_hash_table): Loop over all .debug_types
3734 sections.
3735 (init_cu_die_reader): Use appropriate section.
3736 (process_psymtab_comp_unit, load_partial_comp_unit)
3737 (load_full_comp_unit, read_die_and_children, find_partial_die)
3738 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3739 (lookup_signatured_type_at_offset): Add 'section' argument.
3740 (read_signatured_type_at_offset): Add 'sect' argument.
3741 (read_signatured_type): Use appropriate section.
3742 (set_die_type, get_die_type_at_offset): Update.
3743 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3744 VEC.
3745 (write_psymtabs_to_index): Don't allow index with more than one
3746 .debug_types section.
3747
3748 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3749
3750 Fix crash if referenced CU is aged out.
3751 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3752 xfree of block.data.
3753 (indirect_pieced_value): New variable back_to, use to for xfree of
3754 baton.data.
3755 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3756 block.data.
3757 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3758 (load_cu): New function from ...
3759 (dw2_do_instantiate_symtab): ... the code here ...
3760 (process_full_comp_unit): ... and here.
3761 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3762 retval.data.
3763
3764 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3765
3766 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3767 type.
3768
3769 2011-07-19 Gary Benson <gbenson@redhat.com>
3770
3771 * infrun.c (struct execution_control_state): New member
3772 stop_func_filled_in.
3773 (clear_stop_func, fill_in_stop_func): New functions.
3774 (handle_inferior_event): Call clear_stop_func rather than
3775 manipulating the execution control state directly.
3776 Call fill_in_stop_func lazily as required rather than
3777 directly calling find_pc_partial_function in all cases.
3778
3779 2011-07-18 Tom Tromey <tromey@redhat.com>
3780
3781 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3782 checking for variable-sized array.
3783
3784 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3785
3786 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3787 of supported languages.
3788 * varobj.c: Add top definitions and basic implementation of the
3789 following callbacks: ada_number_of_children, ada_name_of_variable,
3790 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3791 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3792 (languages): Register Ada-specific callbacks.
3793 (variable_language): Add the Ada case in the language setter switch.
3794
3795 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3796
3797 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3798
3799 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3800
3801 Code cleanup.
3802 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3803 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3804 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3805 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3806 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3807 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3808 (struct dwarf_expr_context_funcs): New, move here methods from ...
3809 (struct dwarf_expr_context): ... here. New fields funcs.
3810 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3811 (dwarf_expr_ctx_funcs): New.
3812 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3813 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3814 (needs_frame_ctx_funcs): New.
3815 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3816
3817 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3818
3819 * MAINTAINERS (Write After Approval): Add myself to the list.
3820
3821 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3822
3823 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3824 that CIE pointer of an FDE really points to a CIE .
3825
3826 2011-07-15 Hui Zhu <teawater@gmail.com>
3827
3828 * remote.c (remote_get_trace_status): Add comments.
3829
3830 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 Code cleanup - constify struct lval_funcs.
3833 * dwarf2loc.c (pieced_value_funcs): Make it const.
3834 * infrun.c (siginfo_value_funcs): Likewise.
3835 * opencl-lang.c (opencl_value_funcs): Likewise.
3836 * valops.c (value_assign, value_ind): Make the funcs variable const.
3837 * value.c (struct value): Make location.computed.funcs target const.
3838 Rearrange the comments.
3839 (allocate_computed_value): Make the funcs parameter target const.
3840 (value_computed_funcs): Return the funcs target const.
3841 (value_free, value_copy, set_value_component_location): Make the funcs
3842 variable const.
3843 * value.h (allocate_computed_value): Make the funcs parameter target
3844 const.
3845 (value_computed_funcs): Return the funcs target const.
3846 * windows-tdep.c (tlb_value_funcs): Make it const.
3847
3848 2011-07-14 Hui Zhu <teawater@gmail.com>
3849
3850 * remote.c (remote_get_trace_status): Initialize p.
3851
3852 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3853
3854 Work around kgdb.
3855 * remote.c (remote_get_trace_status): New variable ex. Put
3856 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3857
3858 2011-07-13 Tom Tromey <tromey@redhat.com>
3859
3860 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3861 value_from_contents for final conversion.
3862
3863 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 Code cleanup.
3866 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3867 Indent prototypes so they do not get into tags.
3868
3869 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3870
3871 Code cleanup making also optimized out values lazy.
3872 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3873 allocate_optimized_out_value. Twice.
3874 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3875 * findvar.c (read_var_value): Likewise.
3876 * value.c (allocate_optimized_out_value): New function.
3877 * value.h (allocate_optimized_out_value): New declaration.
3878
3879 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3880
3881 Fix occasional crash of CTRL-C during DWARF read in.
3882 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3883
3884 2011-07-11 Tom Tromey <tromey@redhat.com>
3885
3886 * regcache.c (struct regcache_descr): Fix typo.
3887 * i387-tdep.c (i387_supply_xsave): Fix typo.
3888
3889 2011-07-11 Tom Tromey <tromey@redhat.com>
3890
3891 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3892 (read_file_scope, read_type_unit_scope): Use it.
3893
3894 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3895
3896 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3897 `int'.
3898
3899 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3900
3901 PR python/12438
3902 * python/python.c: Set gdbpy_should_print_stack default to off.
3903 (set_python): Deprecate maint set python print-stack to
3904 class_deprecate.
3905 (_initialize_python): Deprecate maint set/show python print-stack.
3906 Add new prefix command, python. Add new setting, print-backtrace.
3907 * NEWS: Document set python print-stack. Document default change.
3908
3909 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3910
3911 * python/py-inferior.c (infpy_dealloc): New function.
3912 (inferior_to_inferior_object): Return a new object, or a
3913 new reference to the existing object.
3914 (find_thread_object): Cleanup references to inferior.
3915 (delete_thread_object): Ditto.
3916 * python/py-infthread.c (create_thread_object): Do not increment
3917 inferior reference count.
3918
3919 2011-07-08 Tom Tromey <tromey@redhat.com>
3920
3921 * dwarf2loc.c (locexpr_regname): New function.
3922 (locexpr_describe_location_piece): Use it.
3923 (disassemble_dwarf_expression): Add per_cu argument. Use
3924 locexpr_regname.
3925 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3926 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3927 New cases.
3928 (locexpr_describe_location_1): Add per_cu argument.
3929 (locexpr_describe_location): Update.
3930 (loclist_describe_location): Update.
3931
3932 2011-07-08 Tom Tromey <tromey@redhat.com>
3933
3934 * dwarf2expr.c (execute_stack_op): Add QUIT.
3935
3936 2011-07-07 Hui Zhu <teawater@gmail.com>
3937
3938 Revert:
3939 2011-07-06 Hui Zhu <teawater@gmail.com>
3940 * remote.c (remote_start_remote): Add TRY_CATCH for
3941 remote_get_trace_status.
3942 * tracepoint.c (disconnect_tracing): Ditto.
3943
3944 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3945
3946 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3947 variables as signed, not unsigned.
3948
3949 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3950
3951 * jit.c (jit_inferior_init): Reformat forward declaration.
3952
3953 2011-07-06 Matt Rice <ratmice@gmail.com>
3954
3955 * MAINTAINERS (Write After Approval): Add myself to the list.
3956
3957 2011-07-06 Hui Zhu <teawater@gmail.com>
3958
3959 * remote.c (remote_start_remote): Add TRY_CATCH for
3960 remote_get_trace_status.
3961 * tracepoint.c (disconnect_tracing): Ditto.
3962
3963 2011-07-05 Tom Tromey <tromey@redhat.com>
3964
3965 * symtab.c (operator_chars): Now static.
3966 * linespec.c (operator_chars): Don't declare.
3967
3968 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3969
3970 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3971
3972 2011-07-05 Tom Tromey <tromey@redhat.com>
3973
3974 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3975 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3976 (TYPE_CPLUS_REALLY_JAVA): New macro.
3977 * dwarf2read.c (process_structure_scope): Set
3978 TYPE_CPLUS_REALLY_JAVA.
3979
3980 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3981
3982 * ada-lang.c: Fix typos.
3983 * amd64-tdep.c: Likewise.
3984 * breakpoint.c: Likewise.
3985 * cli/cli-decode.c: Likewise.
3986 * findcmd.c: Likewise.
3987 * inline-frame.c: Likewise.
3988 * mi/mi-main.c: Likewise.
3989 * minsyms.c: Likewise.
3990 * monitor.c: Likewise.
3991 * monitor.h: Likewise.
3992 * prologue-value.c: Likewise.
3993 * reverse.c: Likewise.
3994 * s390-tdep.c: Likewise.
3995
3996 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3997
3998 * jit.c (jit_inferior_init): Forward declare.
3999 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4000
4001 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4002
4003 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4004
4005 2011-07-04 Tristan Gingold <gingold@adacore.com>
4006
4007 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4008 (tcb_fieldno): Add activation_link field.
4009 (get_known_tasks_addr): Moved and rewritten.
4010 (get_tcb_types_info): Set activation_link field.
4011 (read_known_tasks_array): Add parameter. Rewritten.
4012 (read_known_tasks_list): New function.
4013 (read_known_tasks): New function.
4014 (ada_build_task_list): Call read_known_tasks instead of
4015 read_known_tasks_array.
4016 * ravenscar-thread.c: Add first_task_name constant.
4017 (has_ravenscar_runtime): Check for task list too.
4018
4019 2011-07-04 Tristan Gingold <gingold@adacore.com>
4020
4021 * ada-tasks.c: Renames fieldno to actb_fieldno.
4022 (ada_get_task_number): Indentation.
4023 (get_tcb_types_info): Remove all parameters. Write directly
4024 the globals.
4025 (ptid_from_atcb_common): Adjust.
4026 (read_atcb): Adjust.
4027
4028 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4029
4030 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4031
4032 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4033
4034 * ui-out.c (ui_out_field_core_addr): Mention that the function
4035 description is in the header file.
4036 * ui-out.h (ui_out_field_core_addr): Document function.
4037
4038 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4039
4040 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4041 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4042
4043 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4044
4045 * symtab.c (expand_line_sal): Remove empty line.
4046
4047 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4048
4049 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4050 same way as ELFOSABI_NONE.
4051 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4052
4053 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4054
4055 * breakpoint.c: Fix typos in comments.
4056 * linespec.c: Likewise.
4057 * symtab.c: Likewise.
4058
4059 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4060
4061 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4062 section in separate object files.
4063
4064 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4065
4066 Fix false GCC warning.
4067 * linespec.c (decode_line_1): Initialize values.
4068
4069 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4070
4071 * linespec.c (find_method): Accept the function type automatically only
4072 if it was specified with parameter types.
4073
4074 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4075
4076 Stop on first linespec terminator instead of eating what we can.
4077 * linespec.c (is_linespec_boundary): New function.
4078 (name_end): Remove function.
4079 (keep_name_info): New parameter on_boundary, replace the body.
4080 (decode_line_1): Provide the parameter to keep_name_info.
4081 (decode_compound): Likewise. Drop the trailing java return type
4082 handling. Twice.
4083
4084 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4085
4086 Fall back linespec to minimal symbols.
4087 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4088 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4089 (find_method, symbol_found): Change error to cplusplus_error.
4090
4091 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4092
4093 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4094
4095 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4096 Tom Tromey <tromey@redhat.com>
4097
4098 * dwarf2read.c (check_physname): New variable.
4099 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4100 (show_check_physname): New function.
4101 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4102
4103 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4104
4105 * machoread.c (macho_symfile_read): Delete OBE comment.
4106
4107 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4108
4109 * machoread.c (struct macho_oso_data): Delete.
4110 (current_oso): Delete.
4111 (macho_relocate_common_syms): New function, mostly extracted
4112 out of
4113 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4114 Remove code that sets and unset current_oso.
4115 (macho_symfile_relocate): Delete handling of common symbols,
4116 now moved to macho_relocate_common_syms.
4117
4118 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4119
4120 * darwin-nat.c (darwin_ptrace): Add documentation.
4121 Set errno to zero before calling ptrace. If ptrace returns
4122 -1 and errno is zero, then change then return zero.
4123 (darwin_kill_inferior): Issue a warning instead of triggering
4124 a failed assertion when the PT_KILL ptrace operations returned
4125 nonzero.
4126
4127 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4128
4129 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4130 only when inf->private->no_ptrace.
4131
4132 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4133
4134 * ada-lang.c (print_it_exception): Print temporary catchpoints
4135 as "Temporary catchpoint".
4136 (print_mention_exception): Likewise.
4137
4138 2011-07-01 Tom Tromey <tromey@redhat.com>
4139
4140 * jv-lang.c (java_language_defn): Use java_printchar,
4141 java_printstr.
4142 (java_get_encoding): New function.
4143 (java_emit_char): Use generic_emit_char.
4144 (java_printchar): New function.
4145 (java_printstr): Likewise.
4146
4147 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4148
4149 * ada-typeprint.c (print_record_type): If unable to decode
4150 the name of the parent type, use the encoded name.
4151
4152 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4153
4154 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4155 pointer to constrained packed array type output.
4156 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4157 packed array output.
4158
4159 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4160
4161 * ada-typeprint.c (print_array_type): removed if condition on show
4162 being negative for bounds printing.
4163
4164 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4165
4166 * ada-lang.c (ada_identical_enum_types_p): New function.
4167 (symbols_are_identical_enums): New function.
4168 (remove_extra_symbols): Do nothing if NSYMS < 2.
4169 Use symbols_are_identical_enums.
4170
4171 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4172
4173 * ada-valprint.c (ada_value_print): Handle typedefs.
4174
4175 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4176
4177 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4178
4179 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4180
4181 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4182 (decode_constrained_packed_array): Likewise.
4183 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4184
4185 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4186
4187 * ada-exp.y (convert_char_literal): Handle typedef types.
4188
4189 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4190
4191 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4192
4193 2011-06-30 Tom Tromey <tromey@redhat.com>
4194
4195 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4196 * valops.c (find_overload_match): Call do_cleanups on early exit
4197 path.
4198 * solib.c (solib_find): Call do_cleanups on early exit path.
4199
4200 2011-06-30 Tom Tromey <tromey@redhat.com>
4201
4202 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4203 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4204 return paths. Defer final do_cleanups until last return.
4205 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4206 early return.
4207
4208 2011-06-30 Tom Tromey <tromey@redhat.com>
4209
4210 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4211
4212 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4213
4214 * MAINTAINERS (Write After Approval): Add myself to the list.
4215
4216 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4217
4218 Disable epilogue unwinders on recent GCCs.
4219 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4220 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4221 * dwarf2read.c (process_full_comp_unit): Initialize
4222 EPILOGUE_UNWIND_VALID.
4223 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4224 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4225 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4226
4227 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4228
4229 Code cleanup - reformatting.
4230 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4231 (producer_is_gcc_ge_4): ... here, change the return value.
4232 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4233 interpretation.
4234
4235 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4236
4237 Fix non-only rename list for Fortran modules import.
4238 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4239 cp_add_using_directive caller.
4240 (cp_add_using_directive): New parameter excludes, describe it. New
4241 variables ix and param. Compare if also excludes match. Allocate NEW
4242 with variable size, initialize EXCLUDES there.
4243 (cp_lookup_symbol_imports): New variable excludep, test
4244 current->EXCLUDES with it.
4245 * cp-support.h: Include vec.h.
4246 (struct using_direct): New field excludes, describe it.
4247 (DEF_VEC_P (const_char_ptr)): New.
4248 (cp_add_using_directive): New parameter excludes.
4249 * defs.h (const_char_ptr): New typedef.
4250 * dwarf2read.c (read_import_statement): New variables child_die,
4251 excludes and cleanups, read in excludes.
4252 (read_namespace): Adjust the cp_add_using_directive caller.
4253
4254 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4255
4256 Code cleanup.
4257 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4258 negative comparisons.
4259
4260 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4261
4262 * mi/mi-main.c (mi_cmd_list_features): Emit
4263 breakpoint-notifications.
4264
4265 2011-06-29 Tom Tromey <tromey@redhat.com>
4266
4267 PR fortran/10036:
4268 * valprint.h (generic_emit_char, generic_printstr): Declare.
4269 * valprint.c (wchar_printable, append_string_as_wide)
4270 (print_wchar): Move from c-lang.c.
4271 (generic_emit_char): New function; mostly taken from c_emit_char.
4272 (generic_printstr): New function; mostly taken from c_printstr.
4273 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4274 represented as arrays.
4275 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4276 type.
4277 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4278 identically to TYPE_CODE_INT.
4279 * f-lang.c (f_get_encoding): New function.
4280 (f_emit_char): Use generic_emit_char.
4281 (f_printchar): Replace comment.
4282 (f_printstr): Use generic_printstr.
4283 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4284 "character" types specially.
4285 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4286 for Fortran.
4287 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4288 Move to valprint.c
4289 (c_emit_char): Call generic_emit_char.
4290 (c_printstr): Call generic_printstr.
4291
4292 2011-06-29 Gary Benson <gbenson@redhat.com>
4293
4294 * breakpoint.c (bpstat_what): Removed duplicated case.
4295
4296 2011-06-28 Tom Tromey <tromey@redhat.com>
4297
4298 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4299
4300 2011-06-27 Tom Tromey <tromey@redhat.com>
4301
4302 * valops.c (find_overload_match): Call do_cleanups before early
4303 return.
4304 * top.c (execute_command): Call do_cleanups before early return.
4305 (command_loop): Likewise.
4306 * stack.c (backtrace_command): Make a null cleanup early. Don't
4307 conditionally call do_cleanups.
4308 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4309 TRY_CATCH.
4310 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4311 so cleanups are always run.
4312 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4313 * findcmd.c (parse_find_args): Call do_cleanups on early return
4314 path.
4315 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4316 Don't conditionally call do_cleanups.
4317 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4318 later.
4319
4320 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4321
4322 * MAINTAINERS (Write After Approval): Use default email address.
4323
4324 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4325
4326 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4327
4328 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4329
4330 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4331 saved_regs_mask and copied_regs_mask fields.
4332 (sparc_record_save_insn): New prototype.
4333 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4334 (sparc_record_save_insn): New function.
4335 (sparc_analyze_prologue): Add head comment. Recognize store insns
4336 of call-saved registers. Use OFFSET consistently. Recognize flat
4337 frames and cache their settings.
4338 (sparc32_skip_prologue): Handle flat frames.
4339 (sparc_frame_cache): Add frame_offset to the base address.
4340 (sparc32_frame_cache): Adjust to new frame description.
4341 (sparc32_frame_prev_register): Likewise.
4342 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4343 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4344 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4345 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4346 frame by calling sparc_record_save_insn.
4347 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4348 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4349 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4350
4351 2011-06-27 Tristan Gingold <gingold@adacore.com>
4352
4353 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4354 field by map_addr and map_len.
4355 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4356 (munmap_section_buffer): Likewise.
4357
4358 2011-06-24 Tom Tromey <tromey@redhat.com>
4359
4360 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4361 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4362 * python/python.c (gdbpy_parameter): Make 'arg' const.
4363 (execute_gdb_command): Likewise.
4364 (gdbpy_decode_line): Likewise. Copy it.
4365 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4366 (gdbpy_write): Make 'arg' const.
4367 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4368 const.
4369 (gdbpy_lookup_type): Likewise.
4370 * python/py-prettyprint.c (print_children): Make 'name' const.
4371 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4372 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4373 Py_ssize_t.
4374 * python/py-function.c (fnpy_init): Make 'name' const.
4375 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4376 (gdbpy_string_to_argv): Make 'input' const.
4377 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4378 it.
4379 * gdbtypes.h (lookup_typename): Update.
4380 * gdbtypes.c (lookup_typename): Make 'name' const.
4381 (lookup_struct): Likewise.
4382 (lookup_union): Likewise.
4383 (lookup_enum): Likewise.
4384
4385 2011-06-24 Tom Tromey <tromey@redhat.com>
4386
4387 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4388 gdb_thread_db.h. Move all common/ entries to be together.
4389 (TAGS): Don't depend on DEPFILES.
4390
4391 2011-06-23 Yao Qi <yao@codesourcery.com>
4392
4393 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4394 * remote.c (remote_start_remote): ... here.
4395 * monitor.c (monitor_open): ... here.
4396
4397 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4398
4399 * gdbtypes.c (append_composite_type_field_aligned): Fix
4400 calculation of bit position based on alignment.
4401
4402 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4403
4404 * breakpoint.c (bpstat_stop_status): Call the check_status
4405 breakpoint_ops method.
4406 (print_one_breakpoint_location): Also print the condition for Ada
4407 exception catchpoints.
4408 (allocate_bp_location): New, factored out from
4409 allocate_bp_location.
4410 (allocate_bp_location): Adjust. Call the owner breakpoint's
4411 allocate_location method, if there is one.
4412 (free_bp_location): Call the locations's dtor method, if there is
4413 one.
4414 (init_raw_breakpoint_without_location): New breakpoint_ops
4415 parameter. Use it.
4416 (set_raw_breakpoint_without_location): Adjust.
4417 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4418 (set_raw_breakpoint): Adjust.
4419 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4420 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4421 re_set and check_status methods.
4422 (init_catchpoint): Don't memset, initialize thread, addr_string
4423 and enable_state. Pass the ops down to init_raw_breakpoint.
4424 (install_catchpoint): Rename to ...
4425 (install_breakpoint): ... this, and make extern.
4426 (create_fork_vfork_event_catchpoint): Adjust.
4427 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4428 re_set and check_status methods.
4429 (create_syscall_event_catchpoint): Adjust.
4430 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4431 (masked_watchpoint_breakpoint_ops): Install NULL
4432 allocate_location, re_set and check_status methods.
4433 (catch_exec_command_1): Adjust.
4434 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4435 re_set and check_status methods.
4436 (create_ada_exception_breakpoint): Rename to ...
4437 (init_ada_exception_breakpoint): ... this. Add a struct
4438 breakpoint parameter, and delete the exp_string, cond_string and
4439 cond parameters. Use init_raw_breakpoint, and don't install or
4440 mention the breakpoint yet. Don't clear breakpoint fields that
4441 init_raw_breakpoint already clears.
4442 (re_set_breakpoint): Delete, split into ...
4443 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4444 functions.
4445 (breakpoint_re_set_one): Call the breakpoint's
4446 breakpoint_ops->re_set implementation, if there's one. Adjust.
4447 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4448 (struct bp_location_ops): New type.
4449 (struct bp_location): New field `ops'.
4450 (struct breakpoint_ops): New `allocate_location', `re_set' and
4451 `check_status' fields. Make `breakpoint_hit''s description match
4452 reality.
4453 (init_bp_location): Declare.
4454 (breakpoint_re_set_default): Declare.
4455 (create_ada_exception_breakpoint): Rename to ...
4456 (init_ada_exception_breakpoint): ... this. Add a struct
4457 breakpoint parameter, and delete the exp_string, cond_string and
4458 cond parameters.
4459 (install_breakpoint): Declare.
4460 * ada-lang.c: Include exceptions.h.
4461 <Ada exceptions description>: Update.
4462 (struct ada_catchpoint_location): New type.
4463 (ada_catchpoint_location_dtor): New function.
4464 (ada_catchpoint_location_ops): New global.
4465 (ada_catchpoint): New type.
4466 (create_excep_cond_exprs): New function.
4467 (dtor_exception, allocate_location_exception, re_set_exception)
4468 (should_stop_exception, check_status_exception): New functions.
4469 (print_one_exception, print_mention_exception)
4470 (print_recreate_exception): Adjust.
4471 (dtor_catch_exception, allocate_location_catch_exception)
4472 (re_set_catch_exception, check_status_catch_exception): New
4473 functions.
4474 (catch_exception_breakpoint_ops): Install them.
4475 (dtor_catch_exception_unhandled)
4476 (allocate_location_catch_exception_unhandled)
4477 (re_set_catch_exception_unhandled)
4478 (check_status_catch_exception_unhandled): New functions.
4479 (catch_exception_unhandled_breakpoint_ops): Install them.
4480 (dtor_catch_assert, allocate_location_catch_assert)
4481 (re_set_catch_assert, check_status_catch_assert): New functions.
4482 (catch_assert_breakpoint_ops): Install them.
4483 (ada_exception_catchpoint_p): Delete.
4484 (catch_ada_exception_command_split)
4485 (ada_exception_catchpoint_cond_string): Rename exp_string
4486 parameter to excep_string. Adjust.
4487 (ada_parse_catchpoint_condition): Delete.
4488 (ada_exception_sal): Rename the exp_string parameter to
4489 excep_string. Delete the cond_string and cond parameters.
4490 Adjust.
4491 (ada_decode_exception_location): Rename the exp_string parameter
4492 to excep_string. Delete the cond_string and cond parameters.
4493 Adjust.
4494 (create_ada_exception_catchpoint): New function.
4495 (catch_ada_exception_command, ada_decode_assert_location)
4496 (catch_assert_command): Adjust.
4497 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4498
4499 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4500
4501 * ada-lang.c: Include arch-utils.h.
4502 (ada_decode_exception_location): Make static.
4503 (catch_ada_exception_command): Moved here from breakpoint.c.
4504 (ada_decode_assert_location): Make static.
4505 (catch_assert_command): Moved here from breakpoint.c.
4506 (_initialize_ada_lang): Install the exception and assert
4507 catchpoint commands here.
4508 * ada-lang.h (ada_decode_exception_location)
4509 (ada_decode_assert_location): Delete declarations.
4510 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4511 breakpoint.h.
4512 (create_ada_exception_breakpoint): Make extern.
4513 (catch_ada_exception_command, catch_assert_command): Moved to
4514 ada-lang.c.
4515 (add_catch_command): Make extern.
4516 (_initilize_breakpoint): Don't install the exception and assert
4517 catchpoint commands here.
4518 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4519 breakpoint.c
4520 (add_catch_command, create_ada_exception_breakpoint): Declare.
4521
4522 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4523
4524 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4525 the breakpoint to the breakpoint chain here.
4526 (set_raw_breakpoint_without_location): Add the breakpoint to the
4527 breakpoint chain here.
4528 (init_raw_breakpoint): Adjust comments.
4529 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4530 here.
4531 (init_catchpoint): Don't set the catchpoint's breakpoint number
4532 here.
4533 (install_catchpoint): New function.
4534 (create_fork_vfork_event_catchpoint)
4535 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4536 use install_catchpoint.
4537
4538 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4539
4540 * breakpoint.c (create_catchpoint_without_mention)
4541 (create_catchpoint): Delete.
4542
4543 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4544
4545 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4546 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4547 reference to exec_pathname.
4548 (struct exec_catchpoint): New type.
4549 (dtor_catch_exec): New function.
4550 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4551 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4552 (catch_exec_command_1): Adjust to use init_catchpoint.
4553 (delete_breakpoint): Remove reference to exec_pathname.
4554
4555 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4556
4557 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4558 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4559 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4560 reference to syscalls_to_be_caught.
4561 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4562 NULL `dtor'.
4563 (struct syscall_catchpoint): New type.
4564 (dtor_catch_syscall): New function.
4565 (insert_catch_syscall, remove_catch_syscall)
4566 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4567 (print_recreate_catch_syscall): Adjust.
4568 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4569 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4570 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4571 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4572 (masked_watchpoint_breakpoint_ops)
4573 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4574 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4575 there is one. Remove references to syscalls_to_be_caught.
4576 (catching_syscall_number): Adjust.
4577 * ada-lang.c (catch_exception_breakpoint_ops)
4578 (catch_exception_unhandled_breakpoint_ops)
4579 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4580
4581 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4582
4583 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4584 field.
4585 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4586 reference to forked_inferior_pid.
4587 (struct fork_catchpoint): New type.
4588 (breakpoint_hit_catch_fork, print_it_catch_fork)
4589 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4590 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4591 (create_fork_vfork_event_catchpoint): Adjust to use
4592 init_catchpoint.
4593
4594 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4595
4596 * breakpoint.c (add_to_breakpoint_chain)
4597 (init_raw_breakpoint_without_location): New functions, factored
4598 out from ...
4599 (set_raw_breakpoint_without_location): ... this one.
4600 (init_raw_breakpoint): New function, factored out from
4601 set_raw_breakpoint and adjusted to use
4602 init_raw_breakpoint_without_location.
4603 (set_raw_breakpoint): Adjust.
4604 (init_catchpoint): New function, factored out from
4605 create_catchpoint_without_mention and adjusted to use
4606 init_raw_breakpoint.
4607 (create_catchpoint_without_mention): Adjust.
4608
4609 2011-06-22 Tom Tromey <tromey@redhat.com>
4610
4611 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4612 argument of 0 specially.
4613
4614 2011-06-22 Yao Qi <yao@codesourcery.com>
4615
4616 * infrun.c (handle_inferior_event): Remove write-only local variable
4617 `sw_single_step_trap_p'.
4618
4619 2011-06-20 Tom Tromey <tromey@redhat.com>
4620
4621 * symtab.c (lookup_language_this): End loop if block is NULL.
4622
4623 2011-06-17 Tom Tromey <tromey@redhat.com>
4624
4625 * valops.c (value_of_this): Use lookup_language_this.
4626 * symtab.h (lookup_language_this): Declare.
4627 * symtab.c (lookup_language_this): New function.
4628 (lookup_symbol_aux): Use lookup_language_this.
4629 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4630
4631 2011-06-17 Tom Tromey <tromey@redhat.com>
4632
4633 * value.h (value_of_this): Update.
4634 (value_of_local): Remove.
4635 * valops.c (value_of_this): Rename from value_of_local. Change
4636 parameters.
4637 * p-exp.y (exp): Update.
4638 (variable): Likewise.
4639 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4640
4641 2011-06-17 Tom Tromey <tromey@redhat.com>
4642
4643 * valops.c (value_of_local): Complain if NAME is NULL.
4644 * std-operator.def (OP_OBJC_SELF): Remove.
4645 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4646 * objc-exp.y (name_not_typename): Use OP_THIS.
4647 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4648 name for "this".
4649 <OP_OBJC_SELF>: Remove.
4650 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4651
4652 2011-06-16 Tristan Gingold <gingold@adacore.com>
4653
4654 * python/py-events.h (gdb_py_events): Make it extern.
4655 * python/py-evtregistry.c (gdb_py_events): Declare.
4656
4657 2011-06-16 Hui Zhu <teawater@gmail.com>
4658
4659 * remote.c (remote_trace_set_readonly_regions): Add check for
4660 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4661 output warning.
4662
4663 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4664
4665 * arm-linux-tdep.c: Include "auxv.h".
4666 (AT_HWCAP): Define.
4667 (ARM_LINUX_SIZEOF_VFP): Define.
4668 (arm_linux_supply_vfp): New function.
4669 (arm_linux_collect_vfp): Likewise.
4670 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4671 (arm_linux_fpa_regset_sections): New variable.
4672 (arm_linux_vfp_regset_sections): Likewise.
4673 (arm_linux_core_read_description): New function.
4674 (arm_linux_init_abi): Install arm_linux_core_read_description and
4675 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4676 appropriate for the architecture.
4677 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4678 (tdesc_arm_with_m): Declare.
4679 (tdesc_arm_with_iwmmxt): Likewise.
4680 (tdesc_arm_with_vfpv2): Likewise.
4681 (tdesc_arm_with_vfpv3): Likewise.
4682 (tdesc_arm_with_neon): Likewise.
4683 * arm-linux-nat.c: Move features/*.c includes ...
4684 * arm-tdep.c: ... here.
4685 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4686 target description data structures ...
4687 * arm-tdep.c (_initialize_arm_tdep): ... here.
4688 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4689 HWCAP_VFPv3D16): Move definitions ...
4690 * arm-linux-tdep.h: ... here.
4691
4692 2011-06-15 Hui Zhu <teawater@gmail.com>
4693
4694 * remote.c (remote_trace_set_readonly_regions): Add a check for
4695 target_buf_size.
4696
4697 2011-06-14 Tom Tromey <tromey@redhat.com>
4698
4699 * coffread.c (coffread_objfile): Rename from current_objfile.
4700 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4701 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4702
4703 2011-06-14 Tom Tromey <tromey@redhat.com>
4704
4705 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4706 (class_symtab): Remove.
4707 (jv_dynamics_progspace_key): New global.
4708 (jv_per_objfile_free): Reset program space data. Update assert.
4709 Don't clear globals.
4710 (get_dynamics_objfile): Use and set program space data.
4711 (get_java_class_symtab): Use get_dynamics_objfile.
4712 (add_class_symbol): Likewise.
4713 (java_link_class_type): Likewise.
4714 (java_object_type, jv_clear_object_type, set_java_object_type):
4715 Remove.
4716 (get_java_object_type): Update. Don't cache result.
4717 (is_object_type): Don't call set_java_object_type.
4718 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4719 initialize jv_dynamics_progspace_key.
4720
4721 2011-06-14 Tom Tromey <tromey@redhat.com>
4722
4723 * symtab.h (current_objfile): Don't declare.
4724 * objfiles.h (current_objfile): Don't declare.
4725 * objfiles.c (current_objfile): Remove.
4726 * mdebugread.c (current_objfile): New file-scope global.
4727 * dbxread.c (current_objfile): New file-scope global.
4728 * coffread.c (current_objfile): New file-scope global.
4729
4730 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4731
4732 * top.h (line): Rename to ...
4733 (saved_command_line): ... this.
4734 (linesize): Rename to ...
4735 (saved_command_line_size): ... this.
4736 * top.c (line): Rename to ...
4737 (saved_command_line): ... this.
4738 (linesize): Rename to ...
4739 (saved_command_line_size): ... this.
4740 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4741 * event-top.c (command_line_handler): Adjust.
4742 * main.c (captured_main): Adjust.
4743
4744 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4745
4746 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4747 get_frame_func instead of get_frame_pc to determine the code
4748 address used to construct the frame ID.
4749 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4750 (i386_epilogue_frame_this_id): Likewise.
4751 (i386_epilogue_frame_prev_register): New function.
4752 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4753 (i386_stack_tramp_frame_sniffer): Fix coding style.
4754 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4755 (i386_gdbarch_init): Fix comments.
4756
4757 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4758
4759 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4760 instruction when walking back through the instruction stream.
4761
4762 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4763
4764 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4765 fullname parameters order.
4766
4767 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4768
4769 Code cleanup.
4770 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4771 for fun.
4772 * psymtab.c (map_symbol_filenames_psymtab)
4773 (map_partial_symbol_filenames): Likewise.
4774 * psymtab.h: Include symfile.h.
4775 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4776 * symfile.h (symbol_filename_ftype): New.
4777 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4778 map_symbol_filenames, clarify more the naming in comment.
4779
4780 2011-06-07 Doug Evans <dje@google.com>
4781
4782 * cc-with-index.sh: Fix typos in comment.
4783 Look for ../../gdb, for fullname.exp.
4784
4785 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4786 Pedro Alves <pedro@codesourcery.com>
4787
4788 * cli/cli-cmds.c (shell_escape): Use waitpid.
4789 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4790
4791 2011-06-07 Tristan Gingold <gingold@adacore.com>
4792
4793 * xcoffread.c (dwarf2_xcoff_names): New variable.
4794 (aix_process_linenos): Add a guard.
4795 (xcoff_symfile_finish): Free dwarf2.
4796 (xcoff_initial_scan): Add dwarf2 support.
4797
4798 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4799
4800 * infcall.c (run_inferior_call): Don't mask async. Instead force
4801 a synchronous wait, if the target can async.
4802
4803 * target.h (struct target_ops): Delete to_async_mask.
4804 (target_async_mask): Delete.
4805 * target.c (update_current_target): Delete references to to_async_mask.
4806 * linux-nat.c (linux_nat_async_mask_value): Delete.
4807 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4808 to linux_nat_async_mask_value.
4809 (linux_nat_async_mask): Delete.
4810 (linux_nat_async, linux_nat_close): Remove references to
4811 linux_nat_async_mask_value.
4812 * record.c (record_async_mask_value): Delete.
4813 (record_async): Remove references to record_async_mask_value.
4814 (record_async_mask): Delete.
4815 (record_can_async_p, record_is_async_p): Remove references to
4816 record_async_mask_value.
4817 (init_record_ops, init_record_core_ops): Remove references to
4818 record_async_mask.
4819 * remote.c (remote_async_mask_value): Delete.
4820 (init_remote_ops): Remove reference to remote_async_mask.
4821 (remote_can_async_p, remote_is_async_p): Remove references to
4822 remote_async_mask_value.
4823 (remote_async): Remove references to remote_async_mask_value.
4824 (remote_async_mask): Delete.
4825
4826 * infrun.c (fetch_inferior_event): Don't claim registers changed
4827 if the current thread is already not executing.
4828
4829 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4830
4831 From Stephen Kitt <steve@sk2.org>
4832 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4833 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4834
4835 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4836
4837 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4838 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4839
4840 2011-06-03 Tom Tromey <tromey@redhat.com>
4841
4842 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4843 code fields.
4844 * python/py-exitedevent.c (create_exited_event_object): Change
4845 type of 'exit_code'. Optionally add exit_code attribute.
4846 (emit_exited_event): Change type of 'exit_code'.
4847 * python/py-event.h (emit_exited_event): Update.
4848 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4849 * infrun.c (handle_inferior_event): Set exit code fields on
4850 inferior.
4851 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4852 fields.
4853 * inferior.c (exit_inferior_1): Initialize new fields.
4854
4855 2011-06-03 Tom Tromey <tromey@redhat.com>
4856
4857 * dwarf2expr.c (get_signed_type): New function.
4858 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4859
4860 2011-06-02 Keith Seitz <keiths@redhat.com>
4861
4862 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4863
4864 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4865
4866 * top.h (simplified_command_loop): Delete declaration.
4867
4868 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4869
4870 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4871 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4872
4873 2011-06-01 Yao Qi <yao@codesourcery.com>
4874
4875 * objfiles.h (obj_section_addr): Update reference to objfile from
4876 `abfd' to `obfd'.
4877 (obj_section_endaddr): Likewise.
4878
4879 2011-06-01 Daniel Jacobowitz <drow@false.org>
4880
4881 * MAINTAINERS: Update my email address and affiliation. Also
4882 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4883
4884 2010-05-31 Keith Seitz <keiths@redhat.com>
4885
4886 PR c++/12750
4887 * linespec.c (get_search_block): New function.
4888 (find_methods): Add FILE_SYMTATB parameter and use it and
4889 get_search_block to pass an appropriate block to
4890 lookup_symbol_in_namespace.
4891 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4892 Check if *ARGPTR starts with a filename first.
4893 If it does, call locate_first_half again to locate the next
4894 "first half" of the linespec.
4895 Pass FILE_SYMTATB to decode_objc and decode_compound.
4896 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4897 (locate_first_half): Stop on the first colon seen.
4898 (decode_compound): Add FILE_SYMTAB parameter.
4899 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4900 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4901 get_search_block with lookup_symbol.
4902 (find_method): Add FILE_SYMTAB parameter and pass it to
4903 find_methods.
4904 (decode_objc): Use get_search_block.
4905
4906 2010-05-31 Keith Seitz <keiths@redhat.com>
4907
4908 PR symtab/12704
4909 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4910 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4911 and CP_ANONYMOUS_NAMESPACE_LEN.
4912 (cp_is_anonymous): Likewise.
4913 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4914 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4915 * dwarf2read.c (namespace_name): Likewise.
4916 (fixup_partial_die): Likewise.
4917 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4918 seen in the input, keep it.
4919
4920 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4921
4922 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4923 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4924 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4925 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4926 * remote.c (_initialize_remote): Register
4927 async_remote_interrupt_twice directly as
4928 sigint_remote_twice_token event.
4929
4930 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4931
4932 * target.h (enum inferior_event_type): Delete INF_ERROR.
4933 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4934
4935 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4936
4937 * interps.c (interp_set): Don't cancel continuations.
4938
4939 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4940
4941 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4942
4943 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4944
4945 * continuations.h (continuation_ftype): Add `err' parameter.
4946 Document parameters.
4947 (do_all_continuations, do_all_continuations_thread)
4948 (do_all_intermediate_continuations)
4949 (do_all_intermediate_continuations_thread)
4950 (do_all_inferior_continuations): Add `err' parameter.
4951 * continuations.c (do_my_continuations_1, do_my_continuations)
4952 (do_all_inferior_continuations, do_all_continuations_ptid)
4953 (do_all_continuations_thread_callback)
4954 (do_all_continuations_thread, do_all_continuations)
4955 (do_all_intermediate_continuations_thread_callback)
4956 (do_all_intermediate_continuations_thread)
4957 (do_all_intermediate_continuations): Add `err' parameter, and pass
4958 it down all the way to the continuations proper.
4959 * inf-loop.c (inferior_event_handler): If fetching an inferior
4960 event throws an error, don't pop the target, and still call the
4961 continuations, but with `err' set. Adjust all other continuation
4962 calls.
4963 * breakpoint.c (until_break_command_continuation): Add `err'
4964 parameter.
4965 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4966 issue another step if `err' is set.
4967 (struct until_next_continuation_args): New.
4968 (until_next_continuation): Add `err' parameter. Adjust.
4969 (until_next_command): Adjust.
4970 (struct finish_command_continuation_args): Add `thread' field.
4971 (finish_command_continuation): Add `err' parameter. Handle it.
4972 (finish_forward): Adjust.
4973 (attach_command_continuation): Add `err' parameter. Handle it.
4974 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4975 cancel the continuations.
4976 * interps.c (interp_set): Adjust to cancel the continuations.
4977 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4978 continuations rather than discarding.
4979 (free_thread): Don't clear thread inferior resources here.
4980 (delete_thread_1): Do it here instead. And do it before removing
4981 the thread from the threads list. Tag the thread as exited before
4982 clearing thread inferior resources.
4983
4984 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4985
4986 * infcall.c (call_function_by_hand): Rephrase error message.
4987
4988 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4989
4990 * defs.h (struct thread_info, struct inferior): Delete forward
4991 declarations.
4992 * breakpoint.h (struct thread_info): New forward declaration.
4993 * observer.sh (struct inferior): New forward declaration.
4994 * python/python-internal.h (struct inferior): New forward
4995 declaration.
4996
4997 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4998
4999 * defs.h (struct continuation, continuation_ftype)
5000 (continuation_free_arg_ftype, add_continuation)
5001 (do_all_continuations, do_all_continuations_thread)
5002 (discard_all_continuations, discard_all_continuations_thread)
5003 (add_intermediate_continuation, do_all_intermediate_continuations)
5004 (do_all_intermediate_continuations_thread)
5005 (discard_all_intermediate_continuations)
5006 (discard_all_intermediate_continuations_thread)
5007 (add_inferior_continuation, do_all_inferior_continuations)
5008 (discard_all_inferior_continuations): Move to ...
5009 * continuations.h: ... this new file.
5010 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5011 infcmd.c, inferior.c, infrun.c, interps.c: Include
5012 continuations.h.
5013
5014 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5015 Doug Evans <dje@google.com>
5016
5017 Fix PR 10970, PR 12702.
5018 * linux-nat.c (linux_lwp_is_zombie): New function.
5019 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5020 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5021
5022 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5023
5024 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5025 typedefs.
5026 (add_continuation, add_intermediate_continuation)
5027 (add_inferior_continuation): Use them.
5028 * continuations.c (struct continuation): Use them.
5029 (make_continuation_ftype): Delete.
5030 (make_continuation, add_inferior_continuation, add_continuation)
5031 (add_intermediate_continuation): Use continuation_ftype and
5032 continuation_free_arg_ftype. Rename parameters to shorter names.
5033
5034 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5035
5036 * continuations.c (make_continuation): Make it return void.
5037 (do_my_continuations): Rename to ...
5038 (do_my_continuations_1): ... this. Remove old_chain parameter and
5039 adjust.
5040 (do_my_continuations): New.
5041 (discard_my_continuations): Rename to ...
5042 (discard_my_continuations_1): ... this. Remove old_chain
5043 parameter and adjust.
5044 (discard_my_continuations): New.
5045 (add_inferior_continuation): Simplify.
5046 (do_all_inferior_continuations): Reimplement on top
5047 do_my_continuations.
5048 (discard_all_inferior_continuations): Simplify.
5049 (add_continuation): Simplify.
5050 (do_all_continuations_ptid): Simplify.
5051 (discard_all_continuations_thread_callback): Simplify.
5052 (add_intermediate_continuation): Simplify.
5053 (discard_all_intermediate_continuations_thread_callback):
5054 Simplify.
5055
5056 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5057
5058 * utils.c (struct continuation, add_continuation)
5059 (add_inferior_continuation)
5060 (do_all_inferior_continuations, discard_all_inferior_continuations)
5061 (restore_thread_cleanup, do_all_continuations_ptid)
5062 (do_all_continuations_thread_callback)
5063 (do_all_continuations_thread, do_all_continuations)
5064 (discard_all_continuations_thread_callback)
5065 (discard_all_continuations_thread, discard_all_continuations)
5066 (add_intermediate_continuation)
5067 (do_all_intermediate_continuations_thread_callback)
5068 (do_all_intermediate_continuations_thread)
5069 (do_all_intermediate_continuations)
5070 (discard_all_intermediate_continuations_thread_callback)
5071 (discard_all_intermediate_continuations_thread)
5072 (discard_all_intermediate_continuations): Move to ...
5073 * continuations.c: ... this new file, and adjust to no longer
5074 implement continuations on top of cleanups.
5075 * Makefile.in (SFILES): Add continuations.c.
5076 (COMMON_OBS): Add continuations.o.
5077
5078 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5079
5080 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5081 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5082 Internal error on invalid values.
5083 * reverse.c: Don't handle EXEC_ERROR.
5084 * mi/mi-main.c: Don't handle EXEC_ERROR.
5085
5086 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5087
5088 * record.c: Include event-loop.h, inf-loop.h.
5089 (record_beneath_to_async): New global.
5090 (tmp_to_async): New global.
5091 (record_async_inferior_event_token): New global.
5092 (record_open_1): Don't error out if async is enabled.
5093 (record_open): Handle to_async. Create an async event source in
5094 the event loop.
5095 (record_close): Delete the async event source.
5096 (record_resumed): New global.
5097 (record_execution_dir): New global.
5098 (record_resume, record_core_resume): Set them. Register the
5099 target on the event loop.
5100 (record_wait): Rename to ...
5101 (record_wait_1): ... this. Add more debug output. Handle
5102 TARGET_WNOHANG, and the target beneath returning
5103 TARGET_WAITKIND_IGNORE.
5104 (record_wait): Reimplement on top of record_wait_1.
5105 (record_async_mask_value): New global.
5106 (record_async, record_async_mask, record_can_async_p)
5107 (record_is_async_p, record_execution_direction): New functions.
5108 (init_record_ops, init_record_core_ops): Install new methods.
5109 * infrun.c (fetch_inferior_event): Temporarily switch the global
5110 execution direction to the direction the target was going.
5111 (execution_direction): Change type to int.
5112 * target.c (default_execution_direction): New function.
5113 (update_current_target): Inherit and de_fault
5114 to_execution_direction.
5115 * target.h (struct target_ops) <to_execution_direction>: New
5116 field.
5117 (target_execution_direction): New macro.
5118 * inferior.h (execution_direction): Change type to int.
5119
5120 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5121
5122 * infcall.c (call_function_by_hand): Don't allow calling functions
5123 in reverse execution mode.
5124
5125 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5126
5127 * infcmd.c (finish_command): Allow async finish in reverse.
5128
5129 2011-05-26 Yao Qi <yao@codesourcery.com>
5130
5131 * gdb_thread_db.h: Delete. Move to ...
5132 * common/gdb_thread_db.h: ... here.
5133
5134 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5135
5136 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5137 function's entry point instead of a manually managed momentary
5138 breakpoint, and only ever issue one proceed call.
5139 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5140 doing a reverse-finish, switch to stepi mode, to do another step.
5141 (insert_step_resume_breakpoint_at_sal): Make public.
5142 (normal_stop): No need to save function value return registers if
5143 going reverse.
5144 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5145
5146 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5147
5148 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5149 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5150 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5151 at the end.
5152 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5153 step-resume breakpoints.
5154 (print_it_typical): Handle bp_hp_step_resume.
5155 (bpstat_what): Ditto.
5156 (bptype_string): Ditto.
5157 (print_one_breakpoint_location): Ditto.
5158 (allocate_bp_location): Ditto.
5159 (mention): Ditto.
5160 (breakpoint_re_set_one): Ditto.
5161 * infrun.c (handle_inferior_event): Adjust. Split
5162 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5163 BPSTAT_WHAT_HP_STEP_RESUME.
5164 (insert_step_resume_breakpoint_at_sal): Rename to ...
5165 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5166 parameter. Handle it.
5167 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5168 insert_step_resume_breakpoint_at_sal_1.
5169 (insert_step_resume_breakpoint_at_frame): Rename to ...
5170 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5171 set a high-priority step-resume breakpoint.
5172 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5173 (insert_step_resume_breakpoint_at_caller): Ditto.
5174
5175 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5176
5177 * breakpoint.c (iterate_over_related_breakpoints): New.
5178 (do_map_delete_breakpoint): New.
5179 (delete_command): Pass do_map_delete_breakpoint to
5180 map_breakpoint_numbers.
5181 (do_disable_breakpoint): New.
5182 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5183 breakpoints.
5184 (do_enable_breakpoint): Rename to ...
5185 (enable_breakpoint_disp): ... this.
5186 (enable_breakpoint): Adjust.
5187 (do_enable_breakpoint): New.
5188 (enable_once_breakpoint): Delete.
5189 (do_map_enable_breakpoint): New.
5190 (do_map_enable_once_breakpoint): New.
5191 (enable_once_command, enable_delete_command)
5192 (delete_trace_command): Iterate over the breakpoint's related
5193 breakpoints.
5194
5195 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5196
5197 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5198 for ALPHA_ZERO_REGNUM.
5199 (alpha_supply_int_regs): Explicitly supply zero as the value for
5200 ALPHA_ZERO_REGNUM in the register cache.
5201 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5202
5203 2011-05-26 Yao Qi <yao@codesourcery.com>
5204
5205 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5206
5207 2011-05-26 Tristan Gingold <gingold@adacore.com>
5208
5209 * symfile.h (struct dwarf2_section_names): New type.
5210 (struct dwarf2_debug_sections): New type.
5211 (dwarf2_has_info): Add parameter.
5212 * dwarf2read.c (dwarf2_elf_names): New variable.
5213 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5214 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5215 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5216 (dwarf2_has_info): Add names parameter. Pass names
5217 to dwarf2_locate_sections.
5218 (section_is_p): Rewrite using the names parameter.
5219 (dwarf2_locate_sections): Use section names from the names parameter.
5220 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5221 * elfread.c (read_psyms): Ditto.
5222 * machoread.c (macho_symfile_read): Ditto.
5223
5224 2011-05-25 Andreas Schwab <schwab@redhat.com>
5225
5226 PR gdb/8677
5227 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5228
5229 2011-05-24 Keith Seitz <keiths@redhat.com>
5230
5231 PR breakpoint/12803
5232 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5233 (decode_compound): Unconditionally call keep_name_info.
5234
5235 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5236
5237 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5238 scope, clear its command list.
5239 (map_breakpoint_numbers): Don't walk the related breakpoints list
5240 of each breakpoint.
5241
5242 2011-05-24 Tom Tromey <tromey@redhat.com>
5243
5244 * MAINTAINERS: Move Jim Blandy to past maintainers.
5245
5246 2011-05-24 Tristan Gingold <gingold@adacore.com>
5247
5248 * symfile.h (enum dwarf2_section_enum): New type.
5249 (dwarf2_get_section_info): New prototype.
5250 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5251 section_name by sect. Use a switch to select the info.
5252 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5253 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5254
5255 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5256
5257 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5258 shared library event breakpoint if there's no execution.
5259
5260 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5261
5262 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5263 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5264
5265 2011-05-23 Tom Tromey <tromey@redhat.com>
5266
5267 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5268 NULL.
5269
5270 2011-05-23 Doug Evans <dje@google.com>
5271
5272 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5273 entry for RuntimeError to doc string.
5274
5275 2011-05-23 Jerome Guitton <guitton@adacore.com>
5276
5277 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5278 sequence for probing loops.
5279
5280 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5281
5282 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5283 comment.
5284
5285 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5286
5287 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5288 zero as the value for %g0 in the register cache.
5289 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5290 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5291
5292 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5293
5294 * infrun.c (proceed): Set previous_inferior_ptid here.
5295 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5296 inferior_ptid, not null_ptid.
5297 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5298 (fetch_inferior_event): Nor here.
5299
5300 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5301
5302 * inf-loop.c (inferior_event_handler): Only output a message if
5303 verbose.
5304
5305 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5306
5307 * MAINTAINERS: Update my e-mail address.
5308
5309 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5310
5311 * infrun.c (proceed): Switch the inferior event loop to
5312 INF_EXEC_COMPLETE if the target refused to resume from a
5313 vfork/fork.
5314
5315 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5316
5317 * infcmd.c: Include "inf-loop.h".
5318 (step_once): When stepping into an inline subroutine, pretend the
5319 target has run. If the target can async, switch the inferior
5320 event loop to INF_EXEC_COMPLETE.
5321 * inferior.h (user_visible_resume_ptid): Declare.
5322 * infrun.c (user_visible_resume_ptid): New function, factored out
5323 from `resume'.
5324 (resume): Use it.
5325 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5326 that the current thread is running. Merge async and sync
5327 branches.
5328
5329 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5330
5331 * infcmd.c (step_1): Simplify synchronous case.
5332
5333 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5334
5335 * tracepoint.c: Include exceptions.h.
5336 (TFILE_PID): Move higher in file.
5337 (tfile_open): Delay pushing the tfile target until we're assured
5338 the tfile header is present in the file. Wrap reading the initial
5339 newline-terminated lines in TRY_CATCH. Pop the target if the
5340 initial setup failed. Add the tfile's thread immediately
5341 aftwards, before any non-essential setup. Don't skip
5342 post_create_inferior if there are no traceframes present in the
5343 file.
5344 (tfile_close): Remove redundant check for null before xfree call.
5345 (tfile_thread_alive): New function.
5346 (init_tfile_ops): Register it as to_thread_alive callback.
5347
5348 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5349
5350 * tracepoint.c (tfile_open): Delete #if 0'd code.
5351
5352 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5353
5354 Fix -readnow for -gdwarf-4 unused type units.
5355 * dwarf2read.c (struct signatured_type): Remove the field offset.
5356 (create_signatured_type_table_from_index): Remove its initialization.
5357 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5358 instead. Add a complaint call.
5359 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5360 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5361 (lookup_signatured_type_at_offset, read_signatured_type)
5362 (write_one_signatured_type): Update the field for per_cu.
5363
5364 2011-05-19 Tom Tromey <tromey@redhat.com>
5365
5366 * python/py-inferior.c (python_inferior_exit): Use
5367 target_gdbarch.
5368 (python_on_resume): Likewise.
5369
5370 2011-05-19 Matt Rice <ratmice@gmail.com>
5371
5372 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5373
5374 2011-05-19 Hui Zhu <teawater@gmail.com>
5375
5376 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5377
5378 2011-05-19 Hui Zhu <teawater@gmail.com>
5379
5380 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5381
5382 2011-05-18 Tom Tromey <tromey@redhat.com>
5383
5384 * dwarf2read.c (dwarf2_add_field): Constify.
5385 * value.c (value_static_field): Constify.
5386 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5387 Now const.
5388 * ax-gdb.c (gen_static_field): Constify
5389
5390 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5391
5392 * linux-nat.c (kill_callback): Use SIGKILL first.
5393
5394 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5395
5396 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5397
5398 2011-05-18 Tom Tromey <tromey@redhat.com>
5399
5400 * value.c (value_fn_field): Constify.
5401 * symtab.c (gdb_mangle_name): Constify.
5402 * stabsread.c (update_method_name_from_physname): Make 'physname'
5403 argument const.
5404 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5405 const. Use explicit fputc_filtered loop.
5406 (pascal_type_print_base): Constify.
5407 * p-lang.h (pascal_type_print_method_args): Update.
5408 * linespec.c (add_matching_methods): Constify.
5409 (add_constructors): Likewise.
5410 * jv-typeprint.c (java_type_print_base): Constify.
5411 * gdbtypes.h (struct cplus_struct_type)
5412 <fn_fieldlist.fn_field.physname>: Now const.
5413 * dwarf2read.c (compute_delayed_physnames): Constify.
5414 (dwarf2_add_member_fn): Likewise.
5415 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5416
5417 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5418
5419 * infrun.c (resume): Mention which is the current thread, and its
5420 current PC in debug output.
5421 (prepare_to_proceed): Mention the thread switching in debug
5422 output.
5423
5424 2011-05-18 Tom Tromey <tromey@redhat.com>
5425
5426 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5427 path check. Use xmalloc and cleanups.
5428 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5429
5430 2011-05-17 Tom Tromey <tromey@redhat.com>
5431
5432 * cp-valprint.c (cp_print_value_fields): Catch errors from
5433 value_static_field.
5434
5435 2011-05-17 Tom Tromey <tromey@redhat.com>
5436
5437 * dwarf2read.c (dwarf2_get_die_type): Call
5438 get_die_type_at_offset.
5439 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5440 get_base_type function.
5441
5442 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5443
5444 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5445 trap_expected.
5446
5447 2011-05-16 Doug Evans <dje@google.com>
5448
5449 * python/py-auto-load.c (source_section_scripts): Mention objfile
5450 name in warning.
5451
5452 2011-05-15 Doug Evans <dje@google.com>
5453
5454 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5455 (try_thread_db_load_from_pdir): Call it. If unable to find
5456 libthread_db in directory of libpthread, see if we're looking at
5457 the separate-debug-info copy.
5458
5459 * python/py-autoload.c (print_script): Print "Missing" instead of
5460 "No" for missing scripts.
5461 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5462
5463 2011-05-13 Doug Evans <dje@google.com>
5464
5465 * ui-file.c (stdio_file_write_async_safe): Add comment.
5466
5467 2011-05-14 Hui Zhu <teawater@gmail.com>
5468
5469 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5470
5471 2011-05-13 Doug Evans <dje@google.com>
5472
5473 Support $pdir and $sdir in libthread-db-search-path.
5474 * NEWS: Mention $sdir,$pdir.
5475 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5476 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5477 (try_thread_db_load_from_sdir): New function.
5478 (try_thread_db_load_from_dir): New function.
5479 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5480 system directories if search of libthread-db-search-path fails,
5481 that is now done via $sdir.
5482 (has_libpthread): New function.
5483 (thread_db_load): Remove search for libthread_db in directory of
5484 libpthread, that is now done via $pdir.
5485
5486 * NEWS: Mention "info auto-load-scripts".
5487 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5488 script_not_found_warning_printed.
5489 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5490 all callers updated. Initialize script_not_found_warning_printed.
5491 (get_auto_load_pspace_data_for_loading): New function.
5492 (maybe_add_script): New function.
5493 (source_section_scripts): Simplify. Only print one warning regardless
5494 of the number of auto-load scripts not found.
5495 (clear_section_scripts): Clear script_not_found_warning_printed.
5496 (auto_load_objfile_script): Record script in hash table.
5497 (count_matching_scripts): New function.
5498 (maybe_print_script): Renamed from maybe_print_section_script, all
5499 callers updated. Rewrite to use ui_out_*.
5500 (info_auto_load_scripts): Renamed from
5501 maintenance_print_section_scripts, all callers updated.
5502 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5503 renamed as "info auto-load-scripts".
5504
5505 2011-05-13 Tom Tromey <tromey@redhat.com>
5506
5507 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5508 (read_sleb128): Likewise.
5509
5510 2011-05-13 Tom Tromey <tromey@redhat.com>
5511
5512 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5513 offset display.
5514
5515 2011-05-13 Doug Evans <dje@google.com>
5516
5517 * linux-nat.c (debug_linux_nat_async): Delete.
5518 Replace all references to use debug_linux_nat instead.
5519 (show_debug_linux_nat_async): Delete.
5520 (sigchld_handler): Call ui_file_write_async_safe instead of
5521 fprintf_unfiltered.
5522 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5523 * ui-file.c (struct ui_file): New member to_write_async_safe.
5524 (null_file_write_async_safe): New function.
5525 (ui_file_write_async_safe): New function.
5526 (set_ui_file_write_async_safe): New function.
5527 (ui_file_new): Initialize to_write_async_safe.
5528 (stdio_file_write_async_safe): New function.
5529 (struct stdio_file): New member fd.
5530 (stdio_file_new): Initialize to_write_async_safe, fd.
5531 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5532 fileno.
5533 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5534 (set_ui_file_write_async_safe): Declare.
5535 (ui_file_write_async_safe): Declare.
5536
5537 2011-05-13 Tom Tromey <tromey@redhat.com>
5538
5539 * utils.c (do_value_free): New function.
5540 (make_cleanup_value_free): Likewise.
5541 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5542 freeing correctly.
5543 (dwarf2_loc_desc_needs_frame): Call
5544 make_cleanup_value_free_to_mark.
5545 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5546 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5547 value_free_to_mark.
5548 (new_dwarf_expr_context): Don't call value_mark.
5549 * dwarf2-frame.c (execute_stack_op): Call
5550 make_cleanup_value_free_to_mark.
5551 * defs.h (make_cleanup_value_free): Declare.
5552
5553 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5554
5555 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5556 prepare_execute_command.
5557 * top.c (prepare_execute_command): Return cleanup.
5558 (execute_command): Use cleanup from prepare_execute_command.
5559 * top.h (prepare_execute_command): Change prototype to return
5560 cleanup.
5561 * defs.h (struct value): Add opaque declaration.
5562 (make_cleanup_value_free_to_mark): Add prototype.
5563 * utils.c (do_value_free_to_mark): New function.
5564 (make_cleanup_value_free_to_mark): Likewise.
5565
5566 2011-05-12 Tom Tromey <tromey@redhat.com>
5567
5568 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5569 cast left-hand-side to unsigned.
5570
5571 2011-05-12 Tom Tromey <tromey@redhat.com>
5572
5573 PR gdb/12617:
5574 * value.h (value_from_contents): Declare.
5575 * value.c (value_from_contents): New function.
5576 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5577 (dwarf2_get_die_type): New function.
5578 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5579 (allocate_piece_closure): Acquire reference to values.
5580 (read_pieced_value): Update for value-based expressions.
5581 (write_pieced_value): Likewise.
5582 (free_pieced_value_closure): Call value_free as needed.
5583 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5584 Update for value-based expressions.
5585 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5586 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5587 <get_base_type>: New field.
5588 (struct dwarf_expr_piece) <v.value>: Change type.
5589 <v.regno>: New field.
5590 (struct dwarf_expr_context) <mark>: New field.
5591 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5592 (dwarf_expr_pop, dwarf_expr_push): Remove.
5593 (dwarf_expr_push_address): Declare.
5594 * dwarf2expr.c (dwarf_arch_cookie): New global.
5595 (struct dwarf_gdbarch_types): New.
5596 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5597 functions.
5598 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5599 static.
5600 (dwarf_expr_push_address): New function.
5601 (dwarf_expr_pop): Now static.
5602 (dwarf_expr_fetch): Change return type.
5603 (dwarf_require_integral): New function.
5604 (dwarf_expr_fetch): Simplify.
5605 (add_piece): Update.
5606 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5607 functions.
5608 (execute_stack_op) <sign_ext>: Remove.
5609 Use values for DWARF stack.
5610 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5611 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5612 New cases.
5613 (_initialize_dwarf2expr): New function.
5614 (add_piece): Update.
5615 (new_dwarf_expr_context): Set new field.
5616 (free_dwarf_expr_context): Call value_free_to_mark.
5617 * dwarf2-frame.c (no_base_type): New function.
5618 (execute_stack_op): Set get_base_type field. Update.
5619
5620 2011-05-12 Tom Tromey <tromey@redhat.com>
5621
5622 * dwarf2read.c (read_common_block): Fix formatting.
5623
5624 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5625
5626 * breakpoint.c (disable_breakpoint): Disable all locations
5627 associated with a tracepoint on target if a trace experiment is
5628 running.
5629 (disable_command): Disable a specific tracepoint location on target if
5630 a trace experiment is running.
5631 (do_enable_breakpoint): Enable all locations associated with a
5632 tracepoint on target if a trace experiment is running.
5633 (enable_command) Enable a specific tracepoint location on target if a
5634 trace experiment is running.
5635 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5636 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5637 to_disable_tracepoint.
5638 * target.h: Add declaration of struct bp_location.
5639 (struct target_ops): Add new functions
5640 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5641 to_disable_tracepoint to target operations.
5642 (target_supports_enable_disable_tracepoint): New macro.
5643 (target_enable_tracepoint): New macro.
5644 (target_disable_tracepoint): New macro.
5645 * remote.c (struct remote_state): Add new field.
5646 (remote_enable_disable_tracepoint_feature): New.
5647 (remote_protocol_features): Add new entry.
5648 (remote_supports_enable_disable_tracepoint): New.
5649 (remote_enable_tracepoint): New.
5650 (remote_disable_tracepoint): New.
5651 (init_remote_ops): Add remote_enable_tracepoint,
5652 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5653 to remote operations.
5654 * tracepoint.c (start_tracing): Allow tracing to start without any
5655 tracepoints enabled with just a warning if they can be re-enabled
5656 later.
5657 * NEWS: Add news item for the new behaviour of the enable and disable
5658 GDB commands when applied to tracepoints.
5659 Add news items for the new remote packets QTEnable and QTDisable.
5660
5661 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5662
5663 * config.in: Regenerate.
5664 * configure: Regenerate.
5665 * configure.ac <--with-system-readline> (for readline_echoing_p):
5666 Remove the test.
5667 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5668 (tui_old_rl_echoing_p): ... here.
5669 (tui_setup_io): Rename extern declaration readline_echoing_p to
5670 _rl_echoing_p. Adjust assignments for the both renames.
5671
5672 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5673
5674 * symtab.c (lookup_symtab): Run cleanup before returning.
5675
5676 2011-05-11 Tom Tromey <tromey@redhat.com>
5677
5678 * dwarf2read.c (handle_data_member_location): New function.
5679 (dwarf2_add_field): Use it.
5680 (read_common_block): Likewise.
5681
5682 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5683
5684 Make addrs->SECTINDEX always defined.
5685 * symfile.c (relative_addr_info_to_section_offsets): Check for
5686 SECTINDEX -1, not for zero ADDR.
5687 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5688 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5689 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5690 on its validity.
5691
5692 2011-05-10 Doug Evans <dje@google.com>
5693
5694 * linux-thread-db.c: Whitespace cleanup.
5695 (try_thread_db_load_1): Fix comment.
5696
5697 * linux-thread-db.c (set_libthread_db_search_path): New function.
5698 (_initialize_thread_db): Add setter for libthread-db-search-path.
5699
5700 2011-05-09 Doug Evans <dje@google.com>
5701
5702 * NEWS: Mention --with-iconv-bin.
5703 * configure.ac: New option --with-iconv-bin.
5704 * configure: Regenerate.
5705 * config.in: Regenerate.
5706 * defs.h (relocate_gdb_directory): Declare.
5707 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5708 removed progname parameter, and exported. All callers updated.
5709 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5710
5711 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5712 adding missing call to restore_child_signals_mask.
5713
5714 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5715
5716 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5717 parameter.
5718 * infrun.c (proceed, start_remote): Adjust.
5719 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5720 and adjust to not handle it.
5721 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5722 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5723 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5724 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5725 * windows-nat.c (do_initial_windows_stuff): Adjust.
5726 * infcmd.c (attach_command): Adjust.
5727 (notice_new_inferior): Adjust.
5728
5729 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5730
5731 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5732 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5733 * spu-tdep.c (op_selb): Use correct value.
5734
5735 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5736
5737 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5738 "parent" parameter to symbol_file_add_from_bfd call.
5739
5740 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5741 Thiago Jung Bauermann <bauerman@br.ibm.com>
5742
5743 Implement support for PowerPC BookE masked watchpoints.
5744 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5745 section.
5746 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5747 method. Initialize to NULL in all existing breakpoint_ops instances.
5748 (struct breakpoint) <hw_wp_mask>: New field.
5749 * breakpoint.c (is_masked_watchpoint): Add prototype.
5750 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5751 breakpoint's breakpoint_ops.works_in_software_mode if available.
5752 (watchpoints_triggered): Handle the case of a hardware masked
5753 watchpoint trigger.
5754 (watchpoint_check): Likewise.
5755 (works_in_software_mode_watchpoint): New function.
5756 (insert_masked_watchpoint, remove_masked_watchpoint)
5757 (resources_needed_masked_watchpoint)
5758 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5759 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5760 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5761 functions.
5762 (masked_watchpoint_breakpoint_ops): New structure.
5763 (watch_command_1): Check for the existence of the `mask' parameter.
5764 Set b->ops according to the type of hardware watchpoint being created.
5765 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5766 (ppc_linux_remove_mask_watchpoint)
5767 (ppc_linux_masked_watch_num_registers): New functions.
5768 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5769 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5770 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5771 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5772 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5773 (target_masked_watch_num_registers): New functions.
5774 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5775 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5776 methods.
5777 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5778 (target_masked_watch_num_registers): Add prototypes.
5779
5780 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5781
5782 PR 12573
5783 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5784 (producer_is_gcc_ge_4_0): New function.
5785 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5786 symtab->language code.
5787 (var_decode_location): Set cu->has_loclist.
5788 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5789 skip. Intialize force_skip from locations_valid. Move the prologue
5790 skipping code into two passes.
5791 * symtab.h (struct symtab): Make the primary field a bitfield. New
5792 field locations_valid.
5793
5794 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5795
5796 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5797 (classify_inner_name): Call cp_lookup_nested_type with
5798 yylval.tsym.type.
5799 * cp-namespace.c (cp_lookup_nested_type): New variable
5800 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5801 type_name_no_tag_or_error with saved_parent_type.
5802 * dwarf2read.c (load_partial_dies): Read in any children of
5803 DW_TAG_typedef with complaint in such case.
5804 * gdbtypes.c (type_name_no_tag_or_error): New function.
5805 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5806 * valops.c (destructor_name_p): New comment for parameter type. Remove
5807 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5808 * value.h (destructor_name_p): Remove type const.
5809
5810 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5811
5812 * symtab.c (compare_symbol_name): New function.
5813 (completion_list_add_name, expand_partial_symbol_name): Call it,
5814 remove the variable ncmp.
5815 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5816 gdb_assert it.
5817
5818 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5819
5820 Demote to sw watchpoint only in update_watchpoint.
5821 * breakpoint.c (update_watchpoint): Change between software and
5822 hardware watchpoint for all kinds of watchpoints, not just
5823 read/write ones. Determine b->exact value here instead of
5824 in watch_command_1. Error out if there are not enough resources
5825 for a read or access hardware watchpoint.
5826 (watch_command_1): Remove logic of checking whether there are
5827 enough resources available, since update_watchpoint will do that
5828 work now. Don't set b->exact here. Catch exceptions thrown by
5829 update_watchpoint and delete the watchpoint.
5830 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5831 Use target_exact_watchpoints instead.
5832 (delete_breakpoint): Notify observers only if deleted watchpoint
5833 has a breakpoint number assigned to it.
5834
5835 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5836
5837 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5838
5839 2011-05-05 Jerome Guitton <guitton@adacore.com>
5840
5841 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5842 New functions.
5843 (i386_stack_tramp_frame_unwind): New static global.
5844 (i386_match_pattern): New function, extracted from i386_match_insn.
5845 (i386_match_insn): Use i386_match_pattern.
5846 (i386_match_insn_block): New function.
5847 (i386_tramp_chain_in_reg_insns)
5848 (i386_tramp_chain_on_stack_insns): New static variables.
5849 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5850 of unwinders.
5851
5852 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5853
5854 * configure.host (xscale*): Don't handle target.
5855 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5856 handle targets.
5857
5858 2011-05-04 Yao Qi <yao@codesourcery.com>
5859
5860 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5861
5862 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5863
5864 Revert:
5865 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5866 | * elfread.c (elf_symtab_read): Stop memory leak.
5867
5868 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5869
5870 * nto-tdep.c (nto_target): Replace deprecated call to
5871 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5872
5873 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5874
5875 Fix false GCC warning.
5876 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5877
5878 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5879
5880 * breakpoint.c (update_watchpoint): Move code to change
5881 the enable state of breakpoint from here ...
5882 (do_enable_breakpoint): ... to here.
5883
5884 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5885
5886 * valprint.c (val_print_array_elements): Fixed poor performance
5887 of printing very large arrays with repeat_count_threshold set
5888 to unlimited. New comment.
5889
5890 2011-04-29 Tom Tromey <tromey@redhat.com>
5891
5892 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5893 (mi_parse): Likewise.
5894 * breakpoint.c (break_range_command): Use sizeof char*, not
5895 char**.
5896 (create_breakpoint): Likewise.
5897 (parse_breakpoint_sals): Likewise.
5898
5899 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5900
5901 * linux-nat.c (linux_child_remove_fork_catchpoint)
5902 (linux_child_remove_vfork_catchpoint)
5903 (linux_child_remove_exec_catchpoint): New functions.
5904 (linux_target_install_ops): Install them.
5905
5906 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5907
5908 PR mi/12531
5909
5910 * varobj.c (install_default_visualizer): Do not install a
5911 visualizer if the varobj is CPLUS_FAKE_CHILD.
5912 (construct_visualizer): Likewise.
5913
5914 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5915
5916 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5917 case insensitive comparison.
5918
5919 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5920
5921 * infrun.c (proceed): Revert previous change.
5922 (resume): Instead, handle the case of signal delivery while stepping
5923 off a breakpoint location here, and only if software single-stepping
5924 is used. Handle nested signals.
5925
5926 2011-04-28 Yao Qi <yao@codesourcery.com>
5927
5928 * arm-tdep.c (copy_unmodified): Rename to ...
5929 (arm_copy_unmodified): .. this. New.
5930 (copy_preload): Move common part to ...
5931 (install_preload): .. this. New.
5932 (arm_copy_preload): New.
5933 (copy_preload_reg): Move common part to ...
5934 (install_preload_reg): ... this. New.
5935 (arm_copy_preload_reg): New.
5936 (copy_b_bl_blx): Move common part to ...
5937 (install_b_bl_blx): .. this. New.
5938 (arm_copy_b_bl_blx): New.
5939 (copy_bx_blx_reg): Move common part to ...
5940 (install_bx_blx_reg): ... this. New.
5941 (arm_copy_bx_blx_reg): New.
5942 (copy_alu_reg): Move common part to ...
5943 (install_alu_reg): ... this. New.
5944 (arm_copy_alu_reg): New.
5945 (copy_alu_shifted_reg): Move common part to ...
5946 (install_alu_shifted_reg): ... this. New.
5947 (copy_ldr_str_ldrb_strb): Move common part to ...
5948 (install_ldr_str_ldrb_strb): ... this. New.
5949 (arm_copy_ldr_str_ldrb_strb): New.
5950 (copy_copro_load_store): Move some common part to ...
5951 (install_copy_copro_load_store): ... this. New.
5952 (arm_copy_copro_load_store): New.
5953 (copy_svc): Delete.
5954 (arm_copy_svc): Renamed from copy_svc.
5955 (copy_undef): Delete.
5956 (arm_copy_undef): Renamed from copy_undef.
5957 (decode_ext_reg_ld_st): Delete.
5958 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5959 (decode_svc_copro): Delete.
5960 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5961 (copy_copro_load_store, copy_alu_imm): update callers.
5962 (copy_extra_ld_st, copy_block_xfer): Likewise.
5963 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5964 (decode_miscellaneous, decode_dp_misc): Likewise.
5965 (decode_ld_st_word_ubyte, decode_media): Likewise.
5966 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5967 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5968 (decode_unconditional, decode_miscellaneous): Likewise.
5969 (decode_media, decode_b_bl_ldmstm): Likewise.
5970 (arm_process_displaced_insn): Likewise..
5971 (decode_misc_memhint_neon): Delete.
5972 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5973 (decode_miscellaneous): Delete.
5974 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5975 (decode_dp_misc): Delete.
5976 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5977 (decode_ld_st_word_ubyte): Delete.
5978 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5979 (decode_media): Delete.
5980 (arm_decode_media): Renamed from decode_media.
5981 (decode_b_bl_ldmstm): Delete.
5982 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5983 (decode_ext_reg_ld_st): Delete.
5984 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5985 (decode_unconditional): Delete.
5986 (arm_decode_unconditional): Renamed from decode_unconditional.
5987
5988 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 Case insensitive lookups implementation.
5991 * dwarf2read.c: Include ctype.h.
5992 (struct mapped_index): New field version.
5993 (mapped_index_string_hash): New parameter index_version. New comment
5994 for it. Call tolower appropriately.
5995 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5996 Choose the right index version for mapped_index_string_hash.
5997 (dwarf2_read_index): Support also the index version 5. Initialize the
5998 new struct mapped_index field version.
5999 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6000 (find_slot): Explain the version needs. Pass INT_MAX for the new
6001 parameter.
6002 (write_psymtabs_to_index): Produce version 5.
6003 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6004 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6005 * psymtab.c (lookup_partial_symbol): Find the
6006 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6007 entries.
6008 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6009 NAME lowercasing.
6010 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6011 (completion_list_add_name): New variable ncmp, initialize it, use it.
6012 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6013 * utils.c (strcmp_iw): Support case_sensitive_off.
6014 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6015 New function comment part. New variables saved_string1,
6016 saved_string2 and case_pass. Add a proper second pass.
6017
6018 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6019
6020 Replace re_comp/re_exec by regcomp/regexec.
6021 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6022 (search_symbols_name_matches): Use them, use regexec.
6023 (search_symbols): New variable retval_chain, adjust the use of
6024 old_chain against it. Replace re_comp by regcomp. Use the new struct
6025 search_symbols_data fields, use regexec instead of re_exec.
6026
6027 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6028
6029 Format the code for the next patch.
6030 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6031 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6032 New variables c1 and c2.
6033
6034 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6035
6036 * infrun.c (proceed): Do not single-step into signal delivery
6037 when stepping off a breakpoint location.
6038 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6039 (insert_step_resume_breakpoint_at_caller): Likewise.
6040 (insert_step_resume_breakpoint_at_sal): Likewise.
6041 (insert_longjmp_resume_breakpoint): Likewise.
6042
6043 2011-04-27 Yao Qi <yao@codesourcery.com>
6044
6045 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6046
6047 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6048
6049 * procfs.c (procfs_pass_signals): Fix advance declaration.
6050
6051 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6052
6053 * target.h (struct target_ops): Remove to_notice_signals;
6054 add to_pass_signals.
6055 (target_notice_signals): Remove.
6056 (target_pass_signals): Add prototype.
6057 * target.c (update_current_target): Remove to_notice_signals;
6058 mention to_pass_signals.
6059 (target_pass_signals): New function.
6060 (debug_to_notice_signals): Remove.
6061 (setup_target_debug): Do not install debug_to_notice_signals.
6062
6063 * infrun.c (signal_pass): New global.
6064 (resume): Call target_pass_signals.
6065 (handle_inferior_event): Report all signals while stepping over
6066 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6067 are re-inserted when stepping over a signal handler.
6068 (signal_cache_update): New function.
6069 (signal_stop_update): Call it.
6070 (signal_print_update): Likewise.
6071 (signal_pass_update): Likewise.
6072 (handle_command): Call signal_cache_update and target_pass_signals
6073 instead of target_notice_signals.
6074 (_initialize_infrun): Initialize signal_pass.
6075
6076 * linux-nat.c (pass_mask): New global.
6077 (linux_nat_pass_signals): New function.
6078 (linux_nat_create_inferior): Report all signals initially.
6079 (linux_nat_attach): Likewise.
6080 (linux_nat_resume): Use pass_mask to decide whether to directly
6081 handle an inferior signal.
6082 (linux_nat_wait_1): Likewise.
6083 (linux_nat_add_target): Install to_pass_signals callback.
6084
6085 * nto-procfs.c (notice_signals): Remove.
6086 (procfs_resume): Do not call notice_signals.
6087 (procfs_notice_signals): Remove.
6088 (procfs_pass_signals): New function.
6089 (init_procfs_ops): Install to_pass_signals callback instead of
6090 to_notice_signals callback.
6091 (_initialize_procfs): Report all signals initially.
6092
6093 * procfs.c (procfs_notice_signals): Remove.
6094 (procfs_pass_signals): New function.
6095 (procfs_target): Install to_pass_signals callback instead of
6096 to_notice_signals callback.
6097 (register_gdb_signals): Remove.
6098 (procfs_debug_inferior): Report all signals initially.
6099 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6100
6101 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6102 parameters; use them instead of calling signal_..._state routines.
6103 (remote_notice_signals): Remove.
6104 (remote_start_remote): Report all signals initially.
6105 (remote_resume): Do not call remote_pass_signals.
6106 (_initialize_remote): Install to_pass_signals callback instead of
6107 to_notice_signals callback.
6108
6109 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6110
6111 * breakpoint.c (user_settable_breakpoint): Delete.
6112 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6113 (delete_command): Check user_breakpoint_p instead of looking at
6114 the breakpoint's type.
6115 (disable_command): Ditto.
6116 (enable_command): Ditto.
6117 (delete_trace_command): Use user_breakpoint_p instead of looking
6118 at the breakpoint number directly. When checking if there are
6119 user visible tracepoints, in order to know whether to ask the user
6120 for confirmation, check whether the breakpoint is actually a
6121 tracepoint.
6122
6123 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6124
6125 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6126 compilation.
6127
6128 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6129
6130 MI breakpoint notifications.
6131
6132 * annotate.c (breakpoint_changed): Adjust parameter type.
6133 * breakpoint.c (set_breakpoint_condition): Adjust to change
6134 in breakpoint_modified type.
6135 (breakpoint_set_commands): Likewise.
6136 (do_map_commands_command): Likewise.
6137 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6138 changed after bumping hit count.
6139 (bpstat_stop_status): Likewise.
6140 (print_one_breakpoint_location): Don't wrap in tuple here.
6141 (print_one_breakpoint): Always print individual locations.
6142 For locations, use unnamed tuple.
6143 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6144 has changed.
6145 (create_catchpoint, create_syscall_event_catchpoint): Call
6146 breakpoint_created obsever.
6147 (mention): Don't call breakpoint_created observer.
6148 (create_breakpoint_sal): Call breakpoint_created observer.
6149 (create_breakpoint, watch_command_1): Likewise.
6150 (create_ada_exception_breakpoint): Likewise.
6151 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6152 (locations_are_equal): New.
6153 (update_breakpoint_locations): If locations were changed, notify.
6154 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6155 Call breakpoint_modified observer.
6156
6157 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6158 (mi_cmd_break_insert): Don't set observers for modify and delete.
6159 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6160 (mi_breakpoint_created, mi_breakpoint_deleted)
6161 (mi_breakpoint_modified): New.
6162 (mi_interpreter_init): Hook the above.
6163 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6164 while -break-* commands are executing.
6165 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6166 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6167 (mi_redirect): New.
6168 (mi_ui_out_impl): Hook in mi_redirect.
6169 (mi_field_skip): True to the name, skip the field, don't output
6170 a field with an empty value.
6171
6172 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6173 (gdbpy_breakpoint_deleted): Adjust.
6174 * tui/tui-hooks.c (tui_event_create_breakpoint)
6175 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6176
6177 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6178
6179 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6180 (procfs_remove_hw_watchpoint): Likewise.
6181
6182 2011-04-26 Michael Walle <michael@walle.cc>
6183
6184 * remote.c (remote_start_remote): Ack packet after sending the
6185 interrupt sequence.
6186
6187 2011-04-26 Yao Qi <yao@codesourcery.com>
6188
6189 * linux-nat.c: Move common macros to ...
6190 Include linux-ptrace.h.
6191 * common/linux-ptrace.h: ... here. New.
6192
6193 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6196 !objfile_has_partial_symbols. New comment.
6197 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6198 SYM_READ_PSYMBOLS is not present. Extend the comment.
6199 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6200
6201 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6202
6203 * defs.h (ENUM_BITFIELD): Remove.
6204
6205 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6206 Eli Zaretskii <eliz@gnu.org>
6207
6208 * NEWS: Document the new gdbserver --once option.
6209
6210 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6211
6212 * MAINTAINERS: Update my email address.
6213
6214 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6215
6216 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6217 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6218 function call if __STDC_ISO_10646__ macro is defined.
6219 (intermediate_encoding): New prototype.
6220 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6221 to generate compile time error for unsupported gdb_wchar_t size.
6222 (ENDIAN_SUFFIX): New macro.
6223 (intermediate_encoding): New function.
6224
6225 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6226
6227 * ada-lang.c (struct add_partial_datum): Update the comment for
6228 expand_partial_symbol_name.
6229 (ada_add_partial_symbol_completions): Rename to ...
6230 (ada_expand_partial_symbol_name): ... here, change return type, update
6231 function comment, call symbol_completion_match instead of
6232 symbol_completion_add.
6233 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6234 and ada_expand_partial_symbol_name.
6235 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6236 FILE_MATCHER.
6237 (dw2_map_symbol_names): Remove.
6238 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6239 * psymtab.c (map_symbol_names_psymtab): Remove.
6240 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6241 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6242 order.
6243 (psym_functions): Unlist map_symbol_names_psymtab.
6244 (map_partial_symbol_names): Rename to ...
6245 (expand_partial_symbol_names): ... here, change the FUN type, call
6246 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6247 * psymtab.h (map_partial_symbol_names): Rename to ...
6248 (expand_partial_symbol_names): ... here, change the FUN type.
6249 * symfile.h (struct quick_symbol_functions): Update the description of
6250 expand_symtabs_matching. Remove map_symbol_names.
6251 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6252 (struct add_name_data): Update the comment for
6253 expand_partial_symbol_name.
6254 (add_partial_symbol_name): Rename to ...
6255 (expand_partial_symbol_name): ... here. Replace
6256 completion_list_add_name call by strncmp.
6257 (default_make_symbol_completion_list_break_on): Use now
6258 expand_partial_symbol_names and expand_partial_symbol_name.
6259 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6260
6261 2011-04-20 Tom Tromey <tromey@redhat.com>
6262
6263 * dwarf2read.c (save_gdb_index_command): Replace format
6264 documentation with a pointer to the manual.
6265
6266 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6267
6268 * regcache.c: Include remote.h.
6269 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6270 (regcache_dump): Handle regcache_dump_remote.
6271 (maintenance_print_remote_registers): New function.
6272 (_initialize_regcache): Install "maint print remote-registers"
6273 command.
6274 * remote.c (map_regcache_remote_table): New function, factored out
6275 from ...
6276 (init_remote_state): ... here.
6277 (remote_register_number_and_offset): New.
6278 * remote.h (remote_register_number_and_offset): Declare.
6279
6280 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6281
6282 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6283 null_ptid, assume and allow a NULL address space, instead of
6284 asking the target for the ptid's address space.
6285 * infrun.c (ptid_is_pid): Remove assertion.
6286
6287 2011-04-19 Tom Tromey <tromey@redhat.com>
6288
6289 * windows-tdep.c (windows_xfer_shared_library):
6290 * windows-nat.c (get_module_name, windows_make_so):
6291 * v850-tdep.c (v850_handle_pushm):
6292 * utils.c (null_cleanup, gdb_realpath):
6293 * ui-out.c (get_next_header):
6294 * tracepoint.c (clear_traceframe_info):
6295 * symtab.c (lookup_symtab):
6296 * serial.h (struct serial_ops):
6297 * mipsread.c (read_alphacoff_dynamic_symtab):
6298 * infcmd.c (print_return_value):
6299 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6300 * f-exp.y (parse_number):
6301 * exceptions.c (catch_exceptions):
6302 * dummy-frame.c (dummy_frame_this_id):
6303 * defs.h (struct cleanup):
6304 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6305 * arm-tdep.c (arm_push_dummy_call):
6306 * amd64-tdep.h (amd64_collect_xsave):
6307 * amd64-tdep.c (amd64_collect_xsave):
6308 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6309 * README (typing): Remove duplicate words.
6310 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6311 * infrun.c (siginfo_value_read): Fix typo.
6312 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6313 * top.c (source_line_number): Add comma.
6314
6315 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6316
6317 * thread.c (any_live_thread_of_process): Prioritize threads
6318 that are not executing.
6319 * gdbthread.h (any_live_thread_of_process): Update comment
6320 as per above change.
6321
6322 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6323
6324 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6325 (scan_xcoff_symtab): Likewise.
6326
6327 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6328
6329 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6330 inside if clause.
6331
6332 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6333 Pedro Alves <pedro@codesourcery.com>
6334
6335 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6336 variables to simplify code and avoid == operator at end of
6337 line as this is against GNU coding standards.
6338
6339 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6340
6341 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6342 lm_name to name_lm to avoid conflict with lm_name function.
6343
6344 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6345
6346 ARI fixes: Use only lowercase function name for static functions.
6347 * nto-tdep.c (LM_ADDR): Rename to...
6348 (lm_addr): New function name.
6349 (nto_relocate_section_addresses): Adapt to change above.
6350 * solib-sunos.c (LM_ADDR): Rename to...
6351 (lm_addr): New function name.
6352 (LM_NEXT): Rename to...
6353 (lm_next): New function name.
6354 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6355 function name changes above.
6356 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6357 (lm_addr_from_link_map): New function name.
6358 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6359 (has_lm_dynamic_from_link_map): New function name.
6360 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6361 (lm_dynamic_from_link_map): New function name.
6362 (LM_ADDR_CHECK): Rename to...
6363 (lm_addr_check): New function name.
6364 (LM_NEXT): Rename to...
6365 (lm_next): New function name.
6366 (LM_PREV): Rename to...
6367 (lm_prev): New function name.
6368 (LM_NAME): Rename to...
6369 (lm_name): New function name.
6370 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6371 (ignore_first_link_map_entry): New function name.
6372 (svr4_keep_data_in_core): Adapt to function name changes above.
6373 (svr4_current_sos): Likewise.
6374 (enable_break): Likewise.
6375 (svr4_relocate_section_addresses): Likewise.
6376
6377 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6378
6379 ARI cleanup.
6380 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6381 sprintf. Simplify code and avoid loosing memory.
6382 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6383 (call0_frame_cache): Remove && operator from end of line.
6384
6385 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6386
6387 Fix libraries displacement if they change whether they were prelinked.
6388 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6389 does not match. Comment why.
6390
6391 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6392
6393 * corelow.c: Include wrapper.h.
6394 (core_open): Call now gdb_target_find_new_threads.
6395 * wrapper.c: Include target.h.
6396 (gdb_target_find_new_threads): New.
6397 * wrapper.h (gdb_target_find_new_threads): New declaration.
6398
6399 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6400
6401 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6402 even if !TARGET_HAS_EXECUTION.
6403
6404 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6405
6406 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6407 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6408 bfd_get_synthetic_symtab.
6409 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6410 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6411 parameter parent, remove the call to add_separate_debug_objfile.
6412 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6413 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6414 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6415 parent, new comment for it, call add_separate_debug_objfile for it.
6416 (symbol_file_add_separate): Pass objfile as the parameter parent,
6417 remove the call to add_separate_debug_objfile.
6418 (symbol_file_add_from_bfd): New parameter parent, pass it.
6419 (symbol_file_add): Pass NULL to the new parameter parent.
6420 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6421
6422 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6423
6424 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6425 BSF_SYNTHETIC.
6426
6427 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6428
6429 Fix Python access to inlined frames.
6430 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6431 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6432
6433 2011-04-15 Tom Tromey <tromey@redhat.com>
6434
6435 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6436
6437 2011-04-15 Gary Benson <gbenson@redhat.com>
6438
6439 * MAINTAINERS: Add myself to write-after-approval section.
6440
6441 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6442
6443 * remote-sim.c (sim_command_completer): New function.
6444 (_initialize_remote_sim): Set completer to sim_command_completer.
6445
6446 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6447
6448 * breakpoint.c (print_exception_catchpoint): Rename to ...
6449 (print_it_exception_catchpoint): ... this.
6450 (gnu_v3_exception_catchpoint_ops): Update with new name
6451 for print_it_exception_catchpoint.
6452
6453 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6454
6455 * MAINTAINERS: Add myself for write after approval privileges.
6456
6457 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6458
6459 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6460
6461 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6462
6463 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6464
6465 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6466
6467 * breakpoint.c (save_breakpoints): Verify whether
6468 breakpoint_ops.print_recreate is defined before calling it.
6469
6470 2011-04-11 Gary Benson <gbenson@redhat.com>
6471
6472 Fix failure with --enable-maintainer-mode.
6473 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6474
6475 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6476
6477 Code cleanup.
6478 * symtab.c (search_symbols): Reorder the KIND description in the
6479 function comment. Remove the unused 4th element of types, types2,
6480 types3 and types4. New gdb_assert on KIND.
6481 (symtab_symbol_info): Remove the unused 4th element of classnames.
6482 New gdb_assert on KIND.
6483 * symtab.h (enum search_domain): New warning in the enum comment.
6484 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6485 TYPES_DOMAIN.
6486
6487 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 Fix crash of gdb save-index on a STABS file.
6490 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6491 PSYMTABS_ADDRMAP.
6492
6493 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6494
6495 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6496 * dwarf2read.c: Include ctype.h.
6497 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6498 functions.
6499 (dwarf2_add_field): Fix new_field->accessibility by calling
6500 dwarf2_default_access_attribute. Restructure setting accessibility
6501 vs. virtuality.
6502 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6503 is_private and is_protected by calling
6504 dwarf2_default_access_attribute.
6505
6506 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6507
6508 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6509 to the initialization.
6510
6511 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6512
6513 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6514 initalization.
6515
6516 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6517
6518 Remove support for old Cygwin 1.5 versions.
6519 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6520 function on old Cygwin version.
6521 * windows-nat.c: Remove cygwin version check and always define
6522 __USEWIDE for Cygwin compilation.
6523
6524 2011-04-07 Yao Qi <yao@codesourcery.com>
6525
6526 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6527 and TO.
6528 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6529 (arm_copy_svc): Remove parameters INSN and TO.
6530 (decode_svc_copro): Update caller.
6531 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6532 from function pointer `copy_svc_os'.
6533
6534 2011-04-07 Yao Qi <yao@codesourcery.com>
6535
6536 * arm-tdep.c (cleanup_branch): Set a correct return address in
6537 LR for ARM and Thumb.
6538
6539 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 Code cleanup.
6542 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6543 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6544 in the function comment, a new note on values compatibility.
6545 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6546 * symtab.h (SYMBOL_HASH_NEXT): New.
6547
6548 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6549
6550 * ppc-linux-nat.c (check_condition): Add len output parameter.
6551 Set it based on the memory region referenced in the condition
6552 expression. Update all callers.
6553
6554 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6555
6556 Fix crash regression on systems featuring .gdb_index.
6557 * objfiles.c (free_objfile): Move the
6558 forget_cached_source_info_for_objfile call earlier. Comment it.
6559 Extend the comment for objfile_free_data.
6560
6561 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6562
6563 Fix regression of displaying the debug format.
6564 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6565 subfile.
6566
6567 2011-04-04 Tom Tromey <tromey@redhat.com>
6568
6569 * cli/cli-interp.c (struct captured_execute_command_args):
6570 Remove.
6571 (do_captured_execute_command): Remove.
6572 (safe_execute_command): Use TRY_CATCH.
6573 * cli/cli-script.c (struct wrapped_read_command_file_args):
6574 Remove.
6575 (wrapped_read_command_file): Remove.
6576 (script_from_file): Use TRY_CATCH.
6577 * exceptions.c (catch_exception): Remove.
6578 * exceptions.h (catch_exception): Remove.
6579 (deprecated_throw_reason): Update comment.
6580 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6581 argument to 'context'.
6582 (mi_execute_command): Use TRY_CATCH.
6583 * remote.c (struct start_remote_args): Remove.
6584 (remote_start_remote): Update; change arguments.
6585 (remote_open_1): Use TRY_CATCH.
6586
6587 2011-04-04 Tom Tromey <tromey@redhat.com>
6588
6589 * tracepoint.c (scope_info): Update.
6590 * symtab.c (decode_line_spec): Update.
6591 * python/python.c (gdbpy_decode_line): Update.
6592 * linespec.h (decode_line_1): Update.
6593 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6594 (decode_compound, find_method, symtab_from_filename)
6595 (decode_variable): Likewise.
6596 * cli/cli-cmds.c (edit_command): Update.
6597 (list_command): Update.
6598 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6599 argument.
6600 (create_breakpoint): Update.
6601 (until_break_command): Update.
6602 (addr_string_to_sals): Update.
6603 (decode_line_spec_1): Update.
6604
6605 2011-04-04 Tom Tromey <tromey@redhat.com>
6606
6607 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6608 (do_captured_parse_breakpoint): Remove.
6609 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6610 Use TRY_CATCH directly.
6611
6612 2011-04-04 Tom Tromey <tromey@redhat.com>
6613
6614 * symtab.h (free_symtab): Remove.
6615 (forget_cached_source_info_for_objfile): Declare.
6616 * symmisc.c (free_symtab): Remove.
6617 * source.c (forget_cached_source_info_for_objfile): New function.
6618 (forget_cached_source_info): Use it.
6619 * objfiles.c (free_objfile): Simplify check before calling
6620 clear_current_source_symtab_and_line. Call
6621 forget_cached_source_info_for_objfile.
6622
6623 2011-04-04 Tom Tromey <tromey@redhat.com>
6624
6625 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6626 (new_symtab): Don't set `free_code' on symtab.
6627 (new_linetable): Properly handle size==0.
6628 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6629 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6630 free_func.
6631 * jv-lang.c (struct jv_per_objfile_data): New.
6632 (jv_per_objfile_free): Free the data.
6633 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6634 (get_java_class_symtab): Set the `dict' field on the
6635 jv_per_objfile_data.
6636 (free_class_block): Remove.
6637 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6638 the symtab.
6639
6640 2011-04-04 Tom Tromey <tromey@redhat.com>
6641
6642 * symfile.c (reread_symbols): Update.
6643 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6644 field.
6645 * objfiles.c (allocate_objfile): Update.
6646 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6647 declare.
6648 * cp-namespace.c (lookup_symbol_file): Don't call
6649 lookup_possible_namespace_symbol.
6650 (initialize_namespace_symtab, get_possible_namespace_block)
6651 (free_namespace_block, cp_check_possible_namespace_symbols)
6652 (check_possible_namespace_symbols_loop)
6653 (check_one_possible_namespace_symbol)
6654 (lookup_possible_namespace_symbol): Remove.
6655 (maintenance_cplus_namespace): Replace with notice.
6656 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6657
6658 2011-04-04 Tom Tromey <tromey@redhat.com>
6659
6660 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6661 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6662 * symmisc.c (free_symtab): Don't free debugformat.
6663 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6664 (record_debugformat, record_producer): Document.
6665 * buildsym.c (end_symtab): Don't save debugformat and producer
6666 names on obstack.
6667 (end_symtab): Don't free debugformat and producer fields.
6668 (record_debugformat): Don't call xstrdup.
6669 (record_producer): Likewise.
6670
6671 2011-04-04 Tom Tromey <tromey@redhat.com>
6672
6673 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6674 (source_line_charpos, source_charpos_line): Remove.
6675
6676 2011-04-04 Tom Tromey <tromey@redhat.com>
6677
6678 * symtab.h (domain_enum): Split in two...
6679 (enum search_domain): New.
6680 (search_symbols): Update.
6681 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6682 redundant declarations.
6683 (search_symbols): Change 'kind' argument to search_domain.
6684 Update.
6685 (print_symbol_info): Likewise.
6686 (symtab_symbol_info): Likewise.
6687 * symfile.h (struct quick_symbol_functions)
6688 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6689 <expand_symtabs_matching>: Likewise.
6690 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6691 (expand_symtabs_matching_via_partial): Update.
6692 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6693 (dw2_expand_symtabs_for_function): Update.
6694 * block.h: Moved anonymous enum...
6695 * defs.h (enum block_enum): ... here. Now named.
6696
6697 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6698
6699 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6700 * version.in: Bump version to 7.3.50.20110403-cvs.
6701
6702 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6703
6704 * NEWS: Create a new section for the next release branch.
6705 Rename the section of the current branch, now that it has
6706 been cut.
6707
6708 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6709
6710 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6711 for "fpscr" in target description.
6712
6713 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6714
6715 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6716 initialize it. Delay HASH initialization. Strip the part after open
6717 parenthesis for languages with qualifiers. Call do_cleanups.
6718
6719 2011-04-01 Tom Tromey <tromey@redhat.com>
6720
6721 * utils.c (report_command_stats): Don't print `-' for negative
6722 number.
6723
6724 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6725
6726 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6727 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6728 typedefs.
6729
6730 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6731
6732 * breakpoint.h (bpdisp_text): Add declaration.
6733 * breakpoint.c (bpdisp_text): Make non-static.
6734 * ada-lang.c: #include "mi/mi-common.h".
6735 (print_it_exception): Rewrite to improve GDB/MI output.
6736
6737 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6738
6739 * arm-tdep.h (struct address_space): Add forward declaration.
6740
6741 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6742
6743 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6744 * arm-tdep.c (arm_override_mode): New global.
6745 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6746 execution mode heuristics.
6747 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6748 second single-step breakpoint if needed, using
6749 arm_insert_single_step_breakpoint.
6750 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6751 ARM execution mode, do not call thumb_get_next_pc_raw.
6752 (arm_get_next_pc): Encode execution mode in return value. Call
6753 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6754 (arm_insert_single_step_breakpoint): New function.
6755 (arm_software_single_step): Call it.
6756 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6757 argument to return execution mode of sigreturn target.
6758 (arm_linux_syscall_next_pc): Use it.
6759 (arm_linux_copy_svc): Update call.
6760 (arm_linux_software_single_step): Call
6761 arm_insert_single_step_breakpoint.
6762
6763 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6764
6765 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6766 the comment.
6767
6768 2011-03-31 Tom Tromey <tromey@redhat.com>
6769
6770 * varobj.c (update_dynamic_varobj_children): Properly handle
6771 errors from iterator.
6772
6773 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6774
6775 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6776 struct linkage name twice.
6777
6778 2011-03-31 Tom Tromey <tromey@redhat.com>
6779
6780 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6781 missing ">" to message.
6782
6783 2011-03-31 Tom Tromey <tromey@redhat.com>
6784
6785 * varobj.c (instantiate_pretty_printer): Remove duplicate
6786 'return'.
6787
6788 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6789
6790 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6791 if neither saved value nor register available (e.g. signal frame).
6792
6793 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6794
6795 * macroexp.c (expand): Avoid uninitialized variable
6796 compiler warning.
6797
6798 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6799
6800 * breakpoint.c (break_range_command): Fix typo in comment.
6801
6802 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6803 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6804
6805 Implement support for PowerPC BookE ranged breakpoints.
6806 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6807 * breakpoint.h (struct bp_target_info) <length>: New member
6808 variable.
6809 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6810 instead of struct breakpoint as argument, and also add ASPACE
6811 and BP_ADDR arguments. Update all callers.
6812 (struct breakpoint_ops) <print_one_detail>: New method.
6813 (struct breakpoint) <addr_string_range_end>: New member variable.
6814 * breakpoint.c (breakpoint_location_address_match): Add function
6815 prototype.
6816 (insert_bp_location): Set bl->target_info.length.
6817 (breakpoint_here_p): Call breakpoint_location_address_match.
6818 (moribund_breakpoint_here_p): Likewise.
6819 (regular_breakpoint_inserted_here_p): Likewise.
6820 (breakpoint_thread_match): Likewise.
6821 (bpstat_stop_status): Likewise.
6822 (bpstat_check_location): Move call to
6823 breakpoint_ops.breakpoint_hit to the top.
6824 (print_one_breakpoint_location): Call
6825 breakpoint_ops.print_one_detail if available.
6826 (breakpoint_address_match_range): New function.
6827 (breakpoint_location_address_match): Likewise.
6828 (breakpoint_locations_match): Compare the length field of the
6829 locations too.
6830 (hw_breakpoint_used_count): Count resources used by all locations
6831 in a breakpoint, and use breakpoint_ops.resources_needed if
6832 available.
6833 (breakpoint_hit_ranged_breakpoint): New function.
6834 (resources_needed_ranged_breakpoint): Likewise.
6835 (print_it_ranged_breakpoint): Likewise.
6836 (print_one_ranged_breakpoint): Likewise.
6837 (print_one_detail_ranged_breakpoint): Likewise.
6838 (print_mention_ranged_breakpoint): Likewise.
6839 (print_recreate_ranged_breakpoint): Likewise.
6840 (ranged_breakpoint_ops): New structure.
6841 (find_breakpoint_range_end): New function.
6842 (break_range_command): Likewise.
6843 (delete_breakpoint): Free addr_string_range_end.
6844 (update_breakpoint_locations): Add SALS_END argument. Update
6845 all callers. Calculate breakpoint length if a non-zero SALS_END
6846 is given. Call breakpoint_locations_match instead of
6847 breakpoint_address_match.
6848 (reset_breakpoint): Find SaL of the end of the range if B is a
6849 ranged breakpoint.
6850 (_initialize_breakpoint): Register break-range command.
6851 * defs.h (print_core_address): Add function prototype.
6852 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6853 function.
6854 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6855 (ppc_linux_remove_hw_breakpoint): Likewise.
6856 (_initialize_ppc_linux_nat): Initialize
6857 to_ranged_break_num_registers.
6858 * target.c (update_current_target): Add comment about
6859 to_ranged_break_num_registers.
6860 (target_ranged_break_num_registers): New function.
6861 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6862 New method.
6863 (target_ranged_break_num_registers): Add function prototype.
6864 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6865 * utils.c (print_core_address): ... here.
6866
6867 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6868
6869 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6870 variable compiler warning.
6871
6872 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6873
6874 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6875 code from here ...
6876 (re_set_breakpoint): ... to here ...
6877 (addr_string_to_sals): ... and here.
6878
6879 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6880
6881 * Makefile.in (SFILES): Add missing C sources.
6882 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6883 Add missing headers.
6884
6885 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6886
6887 * .gitignore: New file.
6888
6889 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6890
6891 * NEWS: Mention new cfi device simulation.
6892
6893 2011-03-29 Tom Tromey <tromey@redhat.com>
6894
6895 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6896 otherwise anonymous types.
6897 (dwarf2_name): Likewise.
6898 * valops.c (value_struct_elt_for_reference): Refine artificial
6899 type logic. Call error if j==-1.
6900
6901 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6902
6903 Fix false GCC warning.
6904 * infcall.c (find_function_addr): Initialize funaddr.
6905
6906 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6907
6908 Fix mingw compilation with --enable-targets=all.
6909 * remote-mips.c (gdb_usleep.h): Include header.
6910 (mips_enter_debug): Use gdb_usleep instead of sleep.
6911
6912 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6913
6914 Support resolution of STT_GNU_IFUNC via breakpoints.
6915 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6916 bp_gnu_ifunc_resolver_return.
6917 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6918 the loop. Support bp_gnu_ifunc_resolver and
6919 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6920 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6921 breakpoints.
6922 (bptype_string, print_one_breakpoint_location): Support
6923 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6924 (user_settable_breakpoint): Return true also for
6925 bp_gnu_ifunc_resolver.
6926 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6927 bp_gnu_ifunc_resolver_return.
6928 (set_breakpoint_location_function): New parameter explicit_loc,
6929 describe it. Call find_pc_partial_function_gnu_ifunc with new
6930 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6931 EXPLICIT_LOC is not set.
6932 (set_raw_breakpoint): Set EXPLICIT_LOC for
6933 set_breakpoint_location_function.
6934 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6935 set_breakpoint_location_function.
6936 (mention): Support bp_gnu_ifunc_resolver and
6937 bp_gnu_ifunc_resolver_return.
6938 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6939 set_breakpoint_location_function.
6940 (update_breakpoint_locations): Remove static.
6941 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6942 bp_gnu_ifunc_resolver_return.
6943 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6944 bp_gnu_ifunc_resolver_return.
6945 (update_breakpoint_locations): New declaration.
6946 * elfread.c: Include gdbthread.h and regcache.h.
6947 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6948 functions.
6949 (elf_gnu_ifunc_fns): Install them.
6950 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6951 (stub_gnu_ifunc_resolver_return_stop): New functions.
6952 (stub_gnu_ifunc_fns): Install them.
6953 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6954 and gnu_ifunc_resolver_return_stop.
6955 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6956
6957 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6958
6959 STT_GNU_IFUNC reader implementation.
6960 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6961 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6962 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6963 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6964 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6965 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6966 (elf_gnu_ifunc_resolve_addr): New.
6967 (elf_symfile_read): Call elf_rel_plt_read.
6968 (elf_gnu_ifunc_fns): New.
6969 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6970 Install elf_gnu_ifunc_fns.
6971 * infcall.c (find_function_return_type): New function.
6972 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6973 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6974 (stub_gnu_ifunc_resolve_name): New functions.
6975 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6976 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6977 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6978
6979 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6980
6981 Code cleanup for later STT_GNU_IFUNC support.
6982 * infcall.c (find_function_addr): Remove variable code, use explicit
6983 dereferences for it. Move VALUE_TYPE initialization later.
6984
6985 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6988 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6989 (clear_pc_function_cache): Clear it.
6990 (find_pc_partial_function): Rename to ...
6991 (find_pc_partial_function_gnu_ifunc): ... this function. New
6992 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6993 (find_pc_partial_function): New wrapper for this function.
6994 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6995
6996 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6997
6998 GDB internal type support for STT_GNU_IFUNC.
6999 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7000 (elf_symtab_read): Set mst_text_gnu_ifunc for
7001 BSF_GNU_INDIRECT_FUNCTION.
7002 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7003 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7004 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7005 nodebug_got_plt_symbol.
7006 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7007 (TYPE_GNU_IFUNC): New.
7008 (struct main_type): New field flag_gnu_ifunc.
7009 (struct builtin_type): New field builtin_func_func.
7010 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7011 nodebug_got_plt_symbol.
7012 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7013 (in_gnu_ifunc_stub): New.
7014 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7015 mst_text_gnu_ifunc.
7016 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7017 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7018 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7019 in_gnu_ifunc_stub.
7020 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7021 * symtab.c (search_symbols): Likewise.
7022 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7023 and mst_slot_got_plt.
7024 (in_gnu_ifunc_stub): New declaration.
7025
7026 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7027
7028 Support a ring of related breakpoints.
7029 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7030 other functions, add gdb_assert.
7031 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7032 watchpoint_del_at_next_stop.
7033 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7034 (bpstat_stop_status): Handle ring in related_breakpoint.
7035 (set_raw_breakpoint_without_location): Initialize ring in
7036 related_breakpoint.
7037 (delete_breakpoint): Handle ring in related_breakpoint, use
7038 watchpoint_del_at_next_stop.
7039 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7040
7041 2011-03-28 Tom Tromey <tromey@redhat.com>
7042
7043 PR symtab/12441:
7044 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7045 with `language_minimal'.
7046
7047 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7048
7049 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7050 instead of checking for STT_ARM_TFUNC symbol type.
7051
7052 2011-03-25 Tom Tromey <tromey@redhat.com>
7053
7054 * linespec.c (symbol_found): Restore line-based result for
7055 non-LOC_LABEL symbols.
7056
7057 2011-03-25 Kai Tietz <ktietz@redhat.com>
7058
7059 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7060 instead of strcmp for comparison.
7061 (tui_source_is_displayed): Likewise.
7062 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7063
7064 2011-03-24 Mark Wielaard <mjw@redhat.com>
7065
7066 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7067 complaint.
7068 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7069 (find_partial_die_in_comp_unit): Likewise in comment.
7070 (read_attribute_value): Likewise.
7071 (lookup_die_type): Likewise.
7072 (dwarf_form_name): Likewise.
7073 (dump_die_shallow): Likewise.
7074 (follow_die_ref_or_sig): Likewise.
7075
7076 2011-03-24 Tom Tromey <tromey@redhat.com>
7077
7078 PR breakpoints/11816:
7079 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7080 (decode_compound): Update.
7081 (find_function_symbol): New function.
7082 (decode_dollar): Update.
7083 (decode_label): Add 'function_symbol' parameter. Handle
7084 function-relative labels.
7085 (decode_variable): Update.
7086 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7087 not its line. Set `special_display' and canonical name for
7088 labels.
7089
7090 2011-03-24 Tom Tromey <tromey@redhat.com>
7091
7092 * linespec.h (struct linespec_result) <special_display>: New
7093 field.
7094 * breakpoint.h (struct breakpoint) <display_canonical>: New
7095 field.
7096 * breakpoint.c (print_breakpoint_location): Respect
7097 display_canonical.
7098 (create_breakpoint_sal): Add 'display_canonical' parameter.
7099 (create_breakpoints_sal): Update.
7100 (create_breakpoint): Update.
7101
7102 2011-03-24 Tom Tromey <tromey@redhat.com>
7103
7104 * symtab.c (decode_line_spec): Update.
7105 * linespec.c (build_canonical_line_spec): Change type of
7106 'canonical'.
7107 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7108 (find_method, decode_all_digits, decode_dollar, decode_label)
7109 (symbol_found): Likewise.
7110 (init_linespec_result): New function.
7111 * breakpoint.c (struct captured_parse_breakpoint_args)
7112 <canonical_p>: New field, replaces addr_string_p.
7113 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7114 'addr_string'.
7115 (parse_breakpoint_sals): Likewise.
7116 (do_captured_parse_breakpoint): Update.
7117 (create_breakpoint): Use struct linespec_result.
7118 (until_break_command): Update.
7119 (breakpoint_re_set_one): Update.
7120 (decode_line_spec_1): Update.
7121 * linespec.h (struct linespec_result): New.
7122 (init_linespec_result): Declare.
7123
7124 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7125
7126 * regcache.c (regcache_raw_read): If the target didn't supply a
7127 given raw register, mark it as unavailable.
7128
7129 2011-03-23 Kai Tietz <ktietz@redhat.com>
7130
7131 * breakpoint.c (clear_command): Use filename_cmp
7132 instead of strcmp for comparison.
7133 * buildsym.c (watch_main_source_file_lossage): Likewise.
7134 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7135 checking just for slash.
7136 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7137 strrchr and filename_cmp instead of strcmp for filenames.
7138 (add_old_header_file): Use filename_cmp
7139 instead of strcmp for comparison.
7140 * exec.c (exec_set_section_address): Likewise.
7141 * macrotab.c (macro_lookup_inclusion): Likewise.
7142 (macro_lookup_inclusion): Likewise.
7143 * elfread.c (_initialize_elfread): Likewise.
7144 (elfstab_offset_sections): Likewise.
7145 (elfstab_offset_sections): Use lbasename instead of
7146 strrchr.
7147 * mdebugread.c (parse_partial_symbols): Likewise.
7148 (arse_partial_symbols): Use filename_(n)cmp instead of
7149 str(n)cmp for comparison.
7150 * minsyms.c (lookup_minimal_symbol): Likewise.
7151 * psymtab.c (read_psymtabs_with_filename): Likewise.
7152 * solib.c (solib_read_symbols): Likewise.
7153 (reload_shared_libraries_1): Likewise.
7154 * symmisc.c (maintenance_print_symbols): Likewise.
7155 * symfile.c (separate_debug_file_exists): Likewise.
7156 (reread_symbols): Likewise.
7157 (find_separate_debug_file_by_debuglink): Likewise.
7158 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7159 * source.c (add_path): Likewise.
7160 * symtab.c (filename_seen): Likewise.
7161 (file_matches): Likewise.
7162 (print_symbol_info): Likewise.
7163 (maybe_add_partial_symtab_filename): Likewise.
7164 (make_source_files_completion_list): Likewise.
7165 * xml-syscall.c (init_sysinfo): Likewise.
7166 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7167 IS_DIR_SEPARATOR for checking for trailing path separator.
7168
7169 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7170
7171 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7172 label abort_expression.
7173 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7174 DWARF_VALUE_OPTIMIZED_OUT.
7175
7176 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7177
7178 Code cleanup.
7179 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7180 to linkage_name. Invert its value. Update the function comment.
7181 (c_type_print_varspec_suffix): Invert it at the caller.
7182 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7183
7184 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7185
7186 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7187 errors when reading the `stop_pc'.
7188 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7189 get_frame_pc.
7190
7191 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7192
7193 * NEWS: Document gdb.Write stream keyword.
7194
7195 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7196
7197 Revert:
7198 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7199 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7200 (dwarf2_add_field): Fix new_field->accessibility for
7201 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7202
7203 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7204
7205 PR python/12183
7206
7207 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7208 other error classes. Do not print stack trace.
7209
7210 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7211
7212 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7213 (dwarf2_add_field): Fix new_field->accessibility for
7214 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7215
7216 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7217
7218 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7219 encountering a load via a non-SP register.
7220
7221 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7222
7223 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7224 field in returned unwinder.
7225
7226 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7227
7228 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7229
7230 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7231
7232 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7233 of xmalloc.
7234
7235 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7236
7237 * frame.c (frame_unwind_register): Throw an error if unwinding the
7238 register failed.
7239 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7240 an unwind stop reason.
7241 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7242 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7243 UNWIND_UNAVAILABLE>: New.
7244 * inline-frame.c (inline_frame_unwind): Install
7245 default_frame_unwind_stop_reason.
7246 * frame-unwind.c: Include "exceptions.h".
7247 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7248 (default_frame_unwind_stop_reason): New.
7249 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7250 (default_frame_unwind_stop_reason): Declare.
7251 (struct frame_unwind) <stop_reason>: New function pointer.
7252
7253 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7254 * dwarf2-frame.c: Include exceptions.h.
7255 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7256 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7257 computing the CFA. If such an error was thrown, set
7258 unavailable_retaddr.
7259 (dwarf2_frame_unwind_stop_reason): New.
7260 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7261 unavailable.
7262 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7263 (dwarf2_signal_frame_unwind): Ditto.
7264
7265 * amd64-tdep.c: Include "exceptions.h".
7266 (struct amd64_frame_cache): New field "base_p".
7267 (amd64_init_frame_cache): Clear it.
7268 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7269 Avoid reading registers with functions that throw if the register
7270 is not necessary to compute the frame base.
7271 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7272 swallowing NOT_AVAILABLE_ERROR.
7273 (amd64_frame_unwind_stop_reason): New.
7274 (amd64_frame_this_id): Don't build a frame id if the frame base
7275 was unavailable.
7276 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7277 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7278 base_p if the frame base was computable.
7279 (amd64_sigtramp_frame_unwind_stop_reason): New.
7280 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7281 frame base was unavailable.
7282 (amd64_sigtramp_frame_unwind): Install
7283 amd64_sigtramp_frame_unwind_stop_reason.
7284 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7285 base_p if the frame base was computable.
7286 (amd64_epilogue_frame_unwind_stop_reason): New.
7287 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7288 frame base was unavailable.
7289 (amd64_epilogue_frame_unwind): Install
7290 amd64_epilogue_frame_unwind_stop_reason.
7291 * i386-tdep.c: Include "exceptions.h".
7292 (struct i386_frame_cache): New field "base_p".
7293 (i386_init_frame_cache): Clear it.
7294 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7295 Avoid reading registers with functions that throw if the register
7296 is not necessary to compute the frame base.
7297 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7298 swallowing NOT_AVAILABLE_ERROR.
7299 (i386_frame_unwind_stop_reason): New.
7300 (i386_frame_this_id): Don't build a frame id if the frame base was
7301 unavailable.
7302 (i386_frame_prev_register): Handle unavailable SP.
7303 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7304 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7305 base_p if the frame base was computable.
7306 (i386_epilogue_frame_unwind_stop_reason): New.
7307 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7308 base was unavailable.
7309 (i386_epilogue_frame_unwind): Install
7310 i386_epilogue_frame_unwind_stop_reason.
7311 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7312 base_p if the frame base was computable.
7313 (i386_sigtramp_frame_unwind_stop_reason): New.
7314 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7315 base was unavailable.
7316 (i386_sigtramp_frame_unwind): Install
7317 i386_sigtramp_frame_unwind_stop_reason.
7318 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7319 type's size, not the register's.
7320 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7321
7322 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7323 default_frame_unwind_stop_reason.
7324 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7325 (alpha_heuristic_frame_unwind): Ditto.
7326 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7327 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7328 * avr-tdep.c (avr_frame_unwind): Ditto.
7329 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7330 Ditto.
7331 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7332 * frv-tdep.c (frv_frame_unwind): Ditto.
7333 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7334 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7335 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7336 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7337 (hppa_stub_frame_unwind): Ditto.
7338 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7339 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7340 (ia64_libunwind_frame_unwind)
7341 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7342 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7343 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7344 * m32c-tdep.c (m32c_unwind): Ditto.
7345 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7346 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7347 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7348 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7349 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7350 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7351 * mep-tdep.c (mep_frame_unwind): Ditto.
7352 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7353 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7354 (mips_stub_frame_unwind): Ditto.
7355 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7356 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7357 * mt-tdep.c (mt_frame_unwind): Ditto.
7358 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7359 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7360 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7361 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7362 (s390_sigtramp_frame_unwind): Ditto.
7363 * score-tdep.c (score_prologue_unwind): Ditto.
7364 * sh-tdep.c (sh_frame_unwind): Ditto.
7365 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7366 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7367 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7368 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7369 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7370 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7371 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7372 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7373 (sparc64obsd_trapframe_unwind): Ditto.
7374 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7375 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7376 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7377 * v850-tdep.c (v850_frame_unwind): Ditto.
7378 * vax-tdep.c (vax_frame_unwind): Ditto.
7379 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7380 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7381 * xtensa-tdep.c (xtensa_unwind): Ditto.
7382
7383 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7384
7385 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7386 there's always a frame. Use get_frame_pc_if_available instead of
7387 get_frame_pc, and if there's no PC available, don't look up a
7388 symtab.
7389
7390 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7391
7392 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7393 unavailable PC.
7394
7395 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7396
7397 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7398 gracefully.
7399
7400 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7401
7402 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7403 * frame.c (frame_unwind_caller_pc_if_available): New.
7404 * stack.c (frame_info): Handle unavailable PC.
7405
7406 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7407
7408 * frame.c (frame_unwind_pc): Rename to ...
7409 (frame_unwind_pc_if_available): ... this. New `pc' output
7410 parameter. Change return type to int. Gracefully handle
7411 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7412 happened, or 1 otherwise.
7413 (frame_unwind_pc): Reimplement on top of
7414 frame_unwind_pc_if_available.
7415 (get_frame_func): Rename to ...
7416 (get_frame_func_if_available): New `pc' output parameter. Change
7417 return type to int. Gracefully handle the PC not being available.
7418 (get_frame_func): Reimplement on top of
7419 get_frame_func_if_available.
7420 (select_frame): Handle the PC being unavailable.
7421 (get_prev_frame): Handle the PC being unavailable.
7422 (get_frame_pc_if_available): New.
7423 (get_frame_address_in_block_if_available): New.
7424 (find_frame_sal): Handle the frame PC not being available.
7425 * frame.h (get_frame_pc_if_available): Declare.
7426 (get_frame_address_in_block_if_available): Declare.
7427 (get_frame_func_if_available): Declare.
7428 * stack.c (print_frame_info): Handle the PC being unavailable.
7429 (find_frame_funname): Ditto.
7430 (print_frame): Handle the PC being unavailable.
7431 (get_frame_language): Ditto.
7432 * blockframe.c (get_frame_block): Ditto.
7433 * macroscope.c (default_macro_scope): Ditto.
7434 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7435
7436 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7437
7438 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7439 NOT_AVAILABLE_ERROR when evaluating the location expression.
7440
7441 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7442
7443 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7444 returning that the register piece is unavailable/optimized out.
7445 (write_pieced_value): Handle get_frame_register_bytes returning
7446 that the register piece is unavailable/optimized out when doing a
7447 read-modify write of a bitfield.
7448 * findvar.c (value_from_register): Handle get_frame_register_bytes
7449 returning that the register piece is unavailable/optimized out.
7450 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7451 and `unavailablep'. Throw error on bad debug info. Use
7452 frame_register instead of frame_register_read, to fill in the new
7453 arguments.
7454 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7455 and `unavailablep'.
7456 * valops.c: (value_assign): Adjust, and handle
7457 get_frame_register_bytes failing.
7458 * spu-tdep.c: Include exceptions.h.
7459 (spu_software_single_step): Adjust, and handle
7460 get_frame_register_bytes failing.
7461 (spu_get_longjmp_target): Ditto.
7462 * gdbarch.sh (register_to_value): Change to return int. New
7463 parameters `optimizedp' and `unavailablep'.
7464 * gdbarch.h, gdbarch.c: Regenerate.
7465 * i386-tdep.c (i386_register_to_value): Adjust to new
7466 gdbarch_register_to_value interface.
7467 * i387-tdep.c (i387_register_to_value): Ditto.
7468 * i387-tdep.h (i387_register_to_value): Ditto.
7469 * alpha-tdep.c (alpha_register_to_value): Ditto.
7470 * ia64-tdep.c (ia64_register_to_value): Ditto.
7471 * m68k-tdep.c (m68k_register_to_value): Ditto.
7472 * mips-tdep.c (mips_register_to_value): Ditto.
7473 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7474
7475 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7476
7477 * findvar.c (value_of_register): Mark the value as unavailable, if
7478 the register is unavailable.
7479 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7480 (frame_register): New `unavailablep' parameter.
7481 (frame_register_read): Update comment.
7482 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7483 Set it if the register is unavailable. If the register is
7484 unavailable, clear the output buffer.
7485 (frame_register): New `unavailablep' parameter. Pass it down.
7486 (frame_unwind_register): Adjust.
7487 (put_frame_register): Adjust.
7488 (frame_register_read): Adjust. Also return false if the register
7489 is not available.
7490 (frame_register_unwind_location): Adjust.
7491 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7492 is unavailable, mark the value accordingly.
7493 * stack.c (frame_info): Handle unavailable registers.
7494
7495 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7496
7497 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7498 simplify, using regcache_cooked_read.
7499
7500 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7501
7502 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7503 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7504 (regcache_raw_read_unsigned, regcache_raw_read_part)
7505 (regcache_cooked_read, regcache_cooked_read_signed)
7506 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7507 (regcache_cooked_read_ftype): Change return to enum
7508 register_status.
7509 * regcache.c: Include exceptions.h
7510 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7511 (do_cooked_read): Change return to enum register_status. Always
7512 forward to regcache_cooked_read.
7513 (regcache_raw_read): Change return to enum register_status. If
7514 the register is not REG_VALID, memset the buffer. Return the
7515 register's status.
7516 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7517 return the register's status.
7518 (regcache_raw_read_unsigned): Ditto.
7519 (regcache_cooked_read): Change return to enum register_status.
7520 Assert that with read-only regcaches, the register's status must
7521 be known. If the regcache is read-only, and the register is not
7522 REG_VALID, memset the buffer. Return the register's status.
7523 (regcache_cooked_read_signed): Change return to enum
7524 register_status. Handle non-REG_VALID registers and return the
7525 register's status.
7526 (regcache_cooked_read_unsigned): Change return to enum
7527 register_status. Handle non-REG_VALID registers and return the
7528 register's status.
7529 (regcache_xfer_part, regcache_raw_read_part)
7530 (regcache_cooked_read_part): Change return to enum
7531 register_status. Return the register's status.
7532 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7533 unavailable.
7534 (regcache_dump): Handle unavailable cooked registers.
7535 * frame.c (do_frame_register_read): Adjust interface to match
7536 regcache_cooked_read_ftype.
7537 * gdbarch.sh (pseudo_register_read): Change return to enum
7538 register_status.
7539 * gdbarch.h, gdbarch.c: Regenerate.
7540
7541 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7542 register_status.
7543 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7544 register_status. If reading a raw register indicates the raw
7545 register is not valid, return the raw register's status,
7546 otherwise, return REG_VALID.
7547 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7548 register_status. Handle non-REG_VALID raw registers and return
7549 the register's status.
7550 * arm-tdep.c (arm_neon_quad_read)
7551 (arm_pseudo_read): Change return to enum register_status. Handle
7552 non-REG_VALID raw registers and return the register's status.
7553 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7554 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7555 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7556 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7557 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7558 register_status.
7559 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7560 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7561 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7562 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7563 (m32c_pseudo_register_read): Change return to enum
7564 register_status. Adjust.
7565 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7566 enum register_status. Return the register's status.
7567 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7568 register_status. Return the register's status.
7569 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7570 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7571 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7572 * rs6000-tdep.c (move_ev_register_func): New typedef.
7573 (e500_move_ev_register): Use it. Change return to enum
7574 register_status. Return the register's status.
7575 (do_regcache_raw_read): New function.
7576 (do_regcache_raw_write): New function.
7577 (e500_pseudo_register_read): Change return to enum
7578 register_status. Return the register's status. Use
7579 do_regcache_raw_read.
7580 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7581 (dfp_pseudo_register_read): Change return to enum register_status.
7582 Return the register's status.
7583 (vsx_pseudo_register_read): Ditto.
7584 (efpr_pseudo_register_read): Ditto.
7585 (rs6000_pseudo_register_read): Ditto.
7586 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7587 register_status. Return the register's status.
7588 * sh64-tdep.c (pseudo_register_read_portions): New function.
7589 (sh64_pseudo_register_read): Change return to enum
7590 register_status. Use pseudo_register_read_portions. Return the
7591 register's status.
7592 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7593 register_status. Return the register's status.
7594 * sh-tdep.c (pseudo_register_read_portions): New function.
7595 (sh_pseudo_register_read): Change return to enum register_status.
7596 Use pseudo_register_read_portions. Return the register's status.
7597 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7598 enum register_status. Return the register's status.
7599 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7600 * spu-tdep.c (spu_pseudo_register_read_spu)
7601 (spu_pseudo_register_read): Ditto.
7602 * xtensa-tdep.c (xtensa_register_read_masked)
7603 (xtensa_pseudo_register_read): Ditto.
7604 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7605
7606 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7607
7608 * python/py-value.c (valpy_getitem): Fix formatting of error function
7609 call.
7610
7611 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7612
7613 ARI fixes: Add missing internationalization markups throughout
7614 C source files.
7615 * darwin-nat-info.c: Ditto.
7616 * record.c: Ditto.
7617 * remote.c: Ditto.
7618 * mi/mi-main.c: Ditto.
7619
7620 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7621
7622 ARI fixes: Add missing internationalization markups throughout
7623 yacc files.
7624 * c-exp.y: Ditto.
7625 * cp-name-parser.y: Ditto.
7626 * f-exp.y: Ditto.
7627 * m2-exp.y: Ditto.
7628 * objc-exp.y: Ditto.
7629 * p-exp.y: Ditto.
7630
7631 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7632
7633 ARI fixes: Messages should have no trailing new lines.
7634 * darwin-nat.c (mach_check_error): Remove trailing new line from
7635 warning function call message.
7636 * record.c (bfdcore_read): Idem for error call.
7637
7638 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7639
7640 * common/signals.c (target_signal_from_host): Add _ markup to error
7641 function call message.
7642 (target_signal_to_host): Add _ markup and remove trailing new line
7643 from warning call message.
7644 (target_signal_from_command): Add _ markup to error function call
7645 message.
7646
7647 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7648
7649 PR python/12149
7650
7651 * python/python.c (gdbpy_write): Accept a stream argument and
7652 operate to the appropriate stream.
7653 (gdbpy_flush): Likewise.
7654 (_initialize_python): Add stream constants.
7655 (finish_python_initialization): Add GdbOutputErrorFile class.
7656
7657 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7658
7659 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7660
7661 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7662
7663 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7664 to store_signed_integer. Add debug message when relocating CALL
7665 instructions. Fix formatting of debug message.
7666 * i386-tdep.c (i386_relocate_instruction): Ditto.
7667
7668 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7669
7670 * target.h (struct target_ops): Remove to_lookup_symbol field.
7671 (target_lookup_symbol): Delete macro.
7672 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7673 (update_current_target, setup_target_debug): Remove handling
7674 of to_lookup_symbol target_ops field.
7675 * ada-tasks.c (get_known_tasks_addr): Remove use of
7676 target_lookup_symbol.
7677 * coffread.c (coff_symtab_read): Likewise.
7678 * dbxread.c (read_dbx_symtab): Ditto.
7679
7680 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7681
7682 PR gdb/12116:
7683 * configure.ac: Add getthrds declaration check.
7684 * configure, config.in: Regenerate.
7685 * aix-thread.c (getthrds): Declare only if not already declared
7686 in procinfo.h. More declaration out of get_signaled_thread to
7687 global scope.
7688
7689 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7690
7691 * python/py-symtab.c: Populate symtab_object_methods,
7692 sal_object_methods.
7693 (stpy_is_valid): New function.
7694 (salpy_is_valid): Ditto.
7695 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7696 (sympy_is_valid): New function.
7697 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7698 (objfpy_is_valid): New function.
7699 * python/py-inferior.c: Populate inferior_object_methods.
7700 (infpy_is_valid): New function.
7701 * python/py-infthread.c: Populate thread_object_methods.
7702 (thpy_is_valid): New function.
7703 * python/py-block.c: Declare block_object_methods. Populate. Declare
7704 block_iterator_object_methods. Populate.
7705 (blpy_is_valid): New function.
7706 (blpy_iter_is_valid): Ditto.
7707
7708 2011-03-16 Keith Seitz <keiths@redhat.com>
7709
7710 * linespec.c (find_methods): Canonicalize NAME before looking
7711 up the symbol.
7712 (name_end): New function.
7713 (keep_name_info): New function.
7714 (decode_line_1): Use keep_name_info.
7715 (decode_compound): Likewise.
7716 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7717 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7718
7719 PR c++/12273
7720 * linespec.c (locate_first_half): Keep overload information, too.
7721 (decode_compound): Use a string to represent break characters
7722 to escape the loop.
7723 If P points to a break character, do not increment it.
7724 For C++ and Java, keep overload information and relevant keywords.
7725 If we cannot find a symbol, search the minimal symbols.
7726
7727 PR c++/11734
7728 * linespec.c (decode_compound): Rename SAVED_ARG to
7729 THE_REAL_SAVED_ARG.
7730 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7731 single-quotes.
7732 Pass a valid block to lookup_symbol.
7733 (lookup_prefix_sym): Likewise.
7734 (find_method): Construct search name based on SYM_CLASS instead
7735 of SAVED_ARG.
7736 * psymtab.c (lookup_partial_symbol): Add language parameter.
7737 (lookup_symbol_aux_psymtabs): Likewise.
7738 Don't assume that the psymtab we found was the right one. Search
7739 for the desired symbol in the symtab to be certain.
7740 (psymtab_search_name): New function.
7741 (lookup_partial_symbol): Use psymtab_search_name.
7742 Add language parameter.
7743 (read_symtabs_for_function): Add language parameter and pass to
7744 lookup_partial_symbol.
7745 (find_symbol_file_from_partial): Likewise.
7746
7747 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7748
7749 PR gdb/12528
7750 * dwarf2read.c (noop_record_line): New function.
7751 (dwarf_decode_lines): Ignore line tables for GCd functions.
7752
7753 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7754
7755 Fix ARI warnings about new lines at the end of messages, which
7756 are unneeded as there is a new line added at the end of the message
7757 automatically.
7758 * darwin-nat.c (darwin_stop_inferior): Ditto.
7759 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7760 * dfp.c (decimal_to_number): Ditto.
7761 * exec.c (print_section_info): Ditto.
7762 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7763 * osdata.c (get_osdata): Ditto.
7764 * record.c (bfdcore_write): Ditto.
7765 * remote-mips.c (mips_readchar): Ditto.
7766 * remote.c (read_ptid): Ditto.
7767 * ser-mingw.c (ser_windows_raw): Ditto.
7768 * tracepoint.c (add_local_symbols): Ditto.
7769 * windows-nat.c (fake_create_process): Ditto.
7770
7771 2011-03-16 Tom Tromey <tromey@redhat.com>
7772
7773 * tracepoint.c (stop_tracing): Don't declare.
7774 * event-top.c (after_char_processing_hook): Add `(void)'.
7775
7776 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7777
7778 * NEWS: Add Parameter sub-classing description.
7779
7780 2011-03-16 Kai Tietz <ktietz@redhat.com>
7781
7782 * MAINTAINERS: Update my e-mail address.
7783
7784 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7785
7786 * MAINTAINERS: Add myself for write after approval privileges.
7787
7788 2011-03-15 Michael Snyder <msnyder@vmware.com>
7789
7790 * frame.c (find_frame_sal): Assert sym is not null.
7791
7792 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7793
7794 * objc-lang.c (selectors_info): Check strchr for null result.
7795
7796 * stabsread.c (define_symbol): Guard against bad stabstring input.
7797
7798 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7799
7800 Remove trailing spaces and tabulations from pascal language
7801 support sources.
7802 p-exp.y: Ditto.
7803 p-lang.c: Ditto.
7804 p-lang.h: Ditto.
7805 p-valprint.c: Ditto.
7806
7807 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7808
7809 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7810 than LOW. Comment it.
7811 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7812 HIGHPC not strictly higher than LOWPC.
7813
7814 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7815
7816 Fix formatting of function declarations returning a pointer in
7817 previous commit.
7818 * varobj.c (varobj_add_child): Ditto.
7819 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7820 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7821
7822 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7823
7824 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7825 for the "generic" vector ABI used with GCC 4.3 and later.
7826 (ppc64_sysv_abi_return_value): Likewise.
7827
7828 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7829
7830 * infcall.c (call_function_by_hand): Function return value is
7831 always a non_lval, even when using struct_return.
7832
7833 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7834
7835 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7836 (map_display_numbers): New.
7837 (do_delete_display): New.
7838 (undisplay_command): Use map_display_numbers.
7839 (do_enable_disable_display): New.
7840 (enable_disable_display_command): New function.
7841 (enable_display): Delete.
7842 (enable_display_command): New.
7843 (disable_display_command): Reimplement.
7844 (_initialize_printcmd): Adjust "enable display" command to use
7845 `enable_display_command' as callback.
7846
7847 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7848
7849 * NEWS: Add Python breakpoint 'stop' operation.
7850
7851 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7852
7853 * NEWS: Delete duplicate entry. Fix typo.
7854
7855 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7856
7857 Fix ARI warning about function names in first column.
7858 Put prototype declaration on same line as return type.
7859 * objc-exp.y: Ditto.
7860 * p-exp.y: Ditto.
7861 * python/py-stopevent.h: Ditto.
7862 For long function names, split parameters to
7863 allow function name on same line as return type.
7864 * solib-pa64.c: Ditto.
7865 * varobj.c: Ditto.
7866 * varobj.h: Ditto.
7867 For long function declaration, use single line.
7868 * hppa-tdep.h: Ditto.
7869 * inferior.h: Ditto.
7870
7871 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7872
7873 * python/python.h: Declare gdbpy_should_stop and
7874 gdbpy_breakpoint_has_py_cond.
7875 * python/python.c: Add python.h to includes. Remove python.h from
7876 HAVE_PYTHON definition
7877 (gdbpy_should_stop): New dummy function.
7878 (gdbpy_breakpoint_has_py_cond): New dummy function.
7879 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7880 sub-classing capabilities.
7881 (gdbpy_should_stop): New function.
7882 (gdbpy_breakpoint_has_py_cond): New function.
7883 (local_setattro): New function.
7884 * breakpoint.c (condition_command): Add check for Python 'stop'
7885 operation.
7886 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7887 operation function as part of stop/continue tests.
7888
7889 2011-03-14 Tom Tromey <tromey@redhat.com>
7890
7891 PR gdb/12576:
7892 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7893 (needs_frame_dwarf_call): Likewise.
7894
7895 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7896
7897 Fix ARI warning about functions without parameters that do not
7898 use (void).
7899 * breakpoint.c (all_tracepoints): Replace () by (void).
7900 * f-exp.y (match_string_literal): Ditto.
7901 (yylex): Ditto.
7902 * m2-exp.y (yylex): Ditto.
7903 * mep-tdep.c (current_me_module): Ditto.
7904 (current_options): Ditto.
7905 (current_cop_data_bus_width): Ditto.
7906 (current_cr_names): Ditto.
7907 (current_cr_is_float): Ditto.
7908 (current_ccr_names): Ditto.
7909 * objc-exp.y (yylex): Ditto.
7910 * p-exp.y (yylex): Ditto.
7911 * remote.c (send_interrupt_sequence): Ditto.
7912 * tracepoint.c (current_trace_status): Ditto.
7913 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7914 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7915
7916 2011-03-11 Michael Snyder <msnyder@vmware.com>
7917
7918 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7919 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7920 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7921 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7922 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7923
7924 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7925 (delete_async_event_handler): Ditto.
7926
7927 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7928
7929 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7930
7931 * top.c (set_verbose): Assert showcmd was found.
7932
7933 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7934
7935 * xtensa-tdep.c (warning_once): Correct style issues.
7936
7937 2011-03-11 Yao Qi <yao@codesourcery.com>
7938
7939 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7940
7941 2011-03-11 Andreas Schwab <schwab@redhat.com>
7942
7943 * common/aclocal.m4: Remove.
7944
7945 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7946
7947 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7948 (xtensa_write_register, xtensa_read_register): Likewise.
7949 (xtensa_hextochar): Removed.
7950 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7951
7952 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7953
7954 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7955 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7956 (xtensa_alloc_frame_cache): Add initialization for new fields.
7957 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7958 (warning_once): New function.
7959 (xtensa_insn_kind): New item c0opc_and.
7960 (call0_classify_opcode): Add the case for AND instruction.
7961 (call0_track_op): Change arguments. New local variable litbase.
7962 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7963 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7964 in the prologue.
7965 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7966 (call0_analyze_prologue): Update the comments. Change arguments.
7967 Add the variety of updates to handle extended prologues, which now can
7968 conduct dynamic stack adjustments.
7969 (call0_frame_cache): Likewise.
7970 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7971 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7972
7973 2011-03-10 Michael Snyder <msnyder@vmware.com>
7974
7975 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7976 (cmd_qtframe): Ditto.
7977 (cmd_qtbuffer): Ditto.
7978 (cmd_bigqtbuffer): Ditto.
7979
7980 2011-03-10 Tom Tromey <tromey@redhat.com>
7981
7982 * tracepoint.c (trace_actions_command): Update.
7983 * thread.c (thread_apply_command): Update.
7984 * reverse.c (delete_bookmark_command): Update.
7985 (bookmarks_info): Update.
7986 * printcmd.c (undisplay_command): Update.
7987 * memattr.c (mem_enable_command): Update.
7988 (mem_disable_command): Update.
7989 (mem_delete_command): Update.
7990 * inferior.c (detach_inferior_command): Update.
7991 (kill_inferior_command): Update.
7992 (remove_inferior_command): Update.
7993 * cli/cli-utils.h (struct get_number_or_range_state): New.
7994 (init_number_or_range): Declare.
7995 (get_number_or_range): Update.
7996 * cli/cli-utils.c (init_number_or_range): New function.
7997 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7998 static variables.
7999 (number_is_in_list): Update.
8000 * breakpoint.h (get_tracepoint_by_number): Update.
8001 * breakpoint.c (map_breakpoint_numbers): Update for change to
8002 get_number_or_range.
8003 (find_location_by_number): Use get_number, not
8004 get_number_or_range.
8005 (trace_pass_set_count): New function.
8006 (trace_pass_command): Update for change to get_number_or_range.
8007 Rework loop logic.
8008 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8009 'state' parameter.
8010
8011 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8012
8013 * python/py-param.c (add_setshow_generic): Add set/show callback
8014 parameters. Register Python object context.
8015 (get_show_value): New function.
8016 (get_set_value): New function.
8017 (call_doc_function): New function.
8018 (get_doc_string): Move behind get_show_value/get_set_value.
8019
8020 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8021
8022 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8023
8024 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8025
8026 * xtensa-tdep.c (xtensa_read_register): Add comment.
8027 (xtensa_write_register): Likewise.
8028 (xtensa_hextochar): Add comment and update to match coding conventions.
8029 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8030 (execute_l32e, execute_s32e, execute_code): Update comments.
8031 (xtensa_exception_handler_t): Update to match coding conventions.
8032 (xtensa_insn_kind): Likewise.
8033
8034 2011-03-09 Michael Snyder <msnyder@vmware.com>
8035
8036 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8037
8038 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8039
8040 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8041
8042 2011-03-09 Tom Tromey <tromey@redhat.com>
8043
8044 * thread.c (restore_selected_frame): Handle frame_level == -1.
8045 (make_cleanup_restore_current_thread): Use
8046 get_selected_frame_if_set.
8047 * frame.h (get_selected_frame_if_set): Declare.
8048 * frame.c (get_selected_frame_if_set): New function.
8049
8050 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8051
8052 * cli/cli-cmds.c (shell_escape): Use lbasename.
8053 * coffread.c (coff_start_symtab): Constify parameter.
8054 (complete_symtab): Constify `name' parameter.
8055 (coff_symtab_read): Constify `filestring' local.
8056 (coff_getfilename): Constify return and `result' local.
8057 Use lbasename.
8058 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8059 * linux-fork.c (info_checkpoints_command): Use lbasename.
8060 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8061 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8062 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8063 * procfs.c (procfs_make_note_section): Use lbasename.
8064 * tui/tui-io.c (printable_part): Constity return and parameter.
8065 Use lbasename.
8066 (print_filename): Constify parameters, and local `s'.
8067 (tui_rl_display_match_list): Constify local `temp'.
8068
8069 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8070
8071 Revert:
8072 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8073 Fix DWARF-3+ DW_AT_accessibility default assumption.
8074 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8075 cu->header.version >= 3.
8076
8077 2011-03-09 Yao Qi <yao@codesourcery.com>
8078
8079 * common/Makefile.in: Remove.
8080 * common/configure: Remove.
8081 * common/configure.ac: Remove.
8082
8083 2011-03-09 Yao Qi <yao@codesourcery.com>
8084
8085 Revert:
8086 2011-02-11 Yao Qi <yao@codesourcery.com>
8087
8088 * common/Makefile.in: Add copyright header.
8089
8090 2011-02-11 Yao Qi <yao@codesourcery.com>
8091
8092 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8093 libcommon.a.
8094 * configure.ac: Add common to sub dir.
8095 * configure: Regenerate.
8096
8097 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8098
8099 * xtensa-tdep.c (call0_ret): New function.
8100 (xtensa_skip_prologue): Speed up analysis.
8101
8102 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8103
8104 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8105 while executing MI command -data-list-changed-registers.
8106
8107 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8108
8109 * xtensa-tdep.c (xtensa_read_register): New function.
8110 (xtensa_write_register): New function.
8111 (xtensa_find_register_by_name): New function.
8112 (xtensa_windowed_frame_cache): Update comments in type description.
8113 (xtensa_frame_cache): Likewise.
8114 (xtensa_window_interrupt_insn): New function.
8115 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8116 (xtensa_insn_kind): Add new instructions.
8117 (rwx_special_register): New function.
8118 (call0_classify_opcode): Add new instructions to the analysis.
8119 (a0_saved, a7_saved, a11_saved): New variables.
8120 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8121 (execute_l32e): New function.
8122 (execute_s32e): New function.
8123 (xtensa_exception_handler_t): New type.
8124 (execute_code): New function.
8125 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8126 analysis for Xtensa Window Exception handlers.
8127
8128 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8129
8130 * xtensa-tdep.c (TX_PS): New.
8131 (windowing_enabled): Update to count for Call0 ABI.
8132 (xtensa_hextochar): New.
8133 (xtensa_init_reggroups): Make algorithm generic.
8134 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8135
8136 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8137
8138 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8139
8140 2011-03-08 Michael Snyder <msnyder@vmware.com>
8141
8142 * i386-tdep.c (i386_follow_jump): Check return value of
8143 target_read_memory.
8144 (i386_analyze_struct_return): Ditto.
8145 (i386_skip_probe): Ditto.
8146 (i386_match_insn): Ditto.
8147 (i386_skip_noop): Ditto.
8148 (i386_analyze_frame_setup): Ditto.
8149 (i386_analyze_register_saves): Ditto.
8150 (i386_skip_prologue): Ditto.
8151 (i386_skip_main_prologue): Ditto.
8152
8153 * target.c (read_whatever_is_readable): Fix memory leak.
8154
8155 * i386-tdep.c (i386_process_record): Document fall through.
8156
8157 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8158
8159 Fix DWARF-3+ DW_AT_accessibility default assumption.
8160 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8161 cu->header.version >= 3.
8162
8163 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8164
8165 * remote.c (remote_check_symbols): Skip if the target has no
8166 execution.
8167
8168 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8169
8170 * target.c (read_whatever_is_readable): Reformat comment,
8171 with a minor typo fix. Minor reformatting of the code.
8172
8173 2011-03-08 Yao Qi <yao@codesourcery.com>
8174
8175 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8176 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8177 Use cached result instead of calling displaced_in_arm_mode again.
8178 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8179 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8180 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8181 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8182 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8183 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8184 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8185 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8186 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8187 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8188 (arm_catch_kernel_helper_return): Likewise.
8189 * gdb/arm-tdep.h : Update function declarations.
8190
8191 2011-03-07 Michael Snyder <msnyder@vmware.com>
8192
8193 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8194
8195 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8196
8197 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8198
8199 * elfread.c (elf_symtab_read): Stop memory leak.
8200
8201 * main.c (captured_main): Fix memory leak.
8202
8203 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8204
8205 * ada-lang.c (compare_names): Call is_name_suffix with string1
8206 instead of string2.
8207
8208 2011-03-07 Tom Tromey <tromey@redhat.com>
8209
8210 * xcoffread.c (xcoff_sym_fns): Update.
8211 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8212 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8213 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8214 (symbol_file_add_with_addrs_or_offsets): Likewise.
8215 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8216 * somread.c (som_sym_fns): Update.
8217 * psymtab.h (require_partial_symbols): Declare.
8218 * psymtab.c (require_partial_symbols): New function.
8219 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8220 (ALL_OBJFILE_PSYMTABS): Undef.
8221 (ALL_PSYMTABS): Move from psympriv.h.
8222 (lookup_partial_symtab, find_pc_sect_psymtab)
8223 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8224 (find_last_source_symtab_from_partial)
8225 (forget_cached_source_info_partial)
8226 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8227 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8228 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8229 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8230 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8231 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8232 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8233 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8234 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8235 psymtabs.
8236 * mipsread.c (ecoff_sym_fns): Update.
8237 * machoread.c (macho_sym_fns): Update.
8238 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8239 (read_psyms): New function.
8240 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8241 (elf_sym_fns_lazy_psyms): New global.
8242 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8243 dwarf2_build_psymtabs.
8244 * dbxread.c (aout_sym_fns): Update.
8245 * coffread.c (coff_sym_fns): Update.
8246
8247 2011-03-07 Tom Tromey <tromey@redhat.com>
8248
8249 * infrun.c (print_exited_reason): Include inferior id and pid in
8250 message.
8251
8252 2011-03-07 Tom Tromey <tromey@redhat.com>
8253
8254 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8255 parameter.
8256 (target_has_execution_1): Update.
8257 (target_has_execution_current): Declare.
8258 (target_has_execution): Call target_has_execution_current.
8259 (default_child_has_execution): Update.
8260 * target.c (default_child_has_execution): Add 'the_ptid'
8261 parameter.
8262 (target_has_execution_1): Likewise.
8263 (target_has_execution_current): New function.
8264 (add_target): Update.
8265 (init_dummy_target): Update.
8266 * remote-m32r-sdi.c (m32r_has_execution): New function.
8267 (init_m32r_ops): Use it.
8268 * record.c (record_core_has_execution): Now static. Add
8269 'the_ptid' parameter.
8270 * inferior.c (have_live_inferiors): Don't save current thread.
8271 Use target_has_execution_1.
8272
8273 2011-03-07 Yao Qi <yao@codesourcery.com>
8274
8275 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8276
8277 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8278
8279 * elfread.c (elf_symtab_read): Minor reformatting.
8280
8281 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8282
8283 * objc-lang.c (selectors_info): Minor reformatting.
8284
8285 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8286
8287 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8288
8289 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8290 Michael Snyder <msnyder@vmware.com>
8291
8292 * ada-valprint.c (ada_val_print_array): Move the declaration of
8293 "byte_order" and "elttype" inside the block where these variables
8294 are actually used. Remove some special handling for the case
8295 where "elttype" and "eltlen" are null. Replace by a comment
8296 and a couple of assertion checks.
8297
8298 2011-03-05 Michael Snyder <msnyder@vmware.com>
8299
8300 * source.c (add_path): Replace semicolon at end of block.
8301 * dwarf2expr.c (execute_stack_op): Ditto.
8302
8303 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8304
8305 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8306 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8307 (bfin-*-*): Likewise.
8308
8309 2011-03-05 Michael Snyder <msnyder@vmware.com>
8310
8311 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8312 * mdebugread.c (parse_symbol): Ditto.
8313 * parse.c (parse_exp_in_context): Ditto.
8314 * source.c (add_path): Ditto.
8315 * utils.c (gnu_debuglink_crc32): Ditto.
8316 * varobj.c (variable_language): Ditto.
8317
8318 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8319
8320 2011-03-04 Michael Snyder <msnyder@vmware.com>
8321
8322 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8323
8324 * symfile.c (simple_overlay_update): Check for null return value
8325 from lookup_minimal_symbol.
8326
8327 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8328
8329 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8330
8331 * eval.c (parse_and_eval_address_1): Remove function.
8332 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8333 instead of parse_and_eval_address_1.
8334 * value.h (parse_and_eval_address_1): Remove prototype.
8335
8336 2011-03-04 Michael Snyder <msnyder@vmware.com>
8337
8338 * remote.c (putpkt_binary): Document that case stmt falls through.
8339
8340 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8341
8342 * breakpointc (print_it_typical): Move NULL check from here...
8343 (print_bp_stop_message): ... to here.
8344
8345 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8346
8347 * breakpoint.c (enable_command): Use break instead of continue,
8348 and fill in a missing break.
8349 (disable_command): Ditto.
8350
8351 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8352
8353 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8354 (terminal_save_ours): Remove misleading comment.
8355 (inflow_inferior_data_cleanup): Free ttystate.
8356 (inflow_inferior_exit): Likewise.
8357 (copy_terminal_info): Copy ttystate.
8358
8359 * serial.c (serial_copy_tty_state): New function.
8360 * serial.h (serial_copy_tty_state): Add prototype.
8361 (struct serial_ops): Add copy_tty_state callback.
8362 * ser-base.c (ser_base_copy_tty_state): New function.
8363 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8364 * ser-go32.c (dos_copy_tty_state): New function.
8365 (dos_ops): Install copy_tty_state callback.
8366 * ser-mingw.c (_initialize_ser_windows): Likewise.
8367 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8368 * ser-unix.c (hardwire_copy_tty_state): New function.
8369 (_initialize_ser_hardwire): Install it.
8370
8371 2011-03-04 Michael Snyder <msnyder@vmware.com>
8372
8373 * breakpoint.c (create_breakpoint): Add missing break statement.
8374
8375 Reverting this patch:
8376 * infcall.c (call_function_by_hand): Add break statements for lint.
8377
8378 Reverting this patch:
8379 * cli/cli-script.c (script_from_file): Add break for lint.
8380
8381 2011-03-04 Michael Snyder <msnyder@vmware.com>
8382
8383 * solib.c (reload_shared_libraries_1): Close memory leak.
8384
8385 2011-03-03 Tom Tromey <tromey@redhat.com>
8386
8387 PR gdb/12538:
8388 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8389 DW_STRING is NULL.
8390
8391 2011-03-03 Michael Snyder <msnyder@vmware.com>
8392
8393 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8394 fields of struct 'st' to zero.
8395
8396 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8397 sal.pspace before calling set_current_source_symtab_and_line.
8398
8399 2011-03-03 Yao Qi <yao@codesourcery.com>
8400
8401 * Makefile.in (configure-common): Remove. Let Makefile
8402 in dir common to rebuild itself.
8403 (common/Makefile): Likewise.
8404
8405 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8406
8407 * utils.c (parse_escape): Add i18n markup in error message.
8408
8409 2011-03-03 Yao Qi <yao@codesourcery.com>
8410
8411 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8412 ARM_PC_REGNUM.
8413 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8414 (displaced_write_reg, displaced_read_reg): Likewise.
8415 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8416 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8417 (cleanup_branch): Replace magic number 14 and 15 with
8418 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8419
8420 2011-03-02 Michael Snyder <msnyder@vmware.com>
8421
8422 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8423
8424 * cli/cli-script.c (script_from_file): Add break for lint.
8425
8426 * mdebugread.c (parse_partial_symbols): Fix indent.
8427
8428 * target-descriptions.c (tdesc_gdb_type): No need to call
8429 xstrdup, callee saves a copy.
8430
8431 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8432
8433 * infcall.c (call_function_by_hand): Add break statements for lint.
8434
8435 * utils.c (parse_escape): Escape the escape char.
8436
8437 * python/py-inferior.c (build_inferior_list): Error out if
8438 PyList_Append fails.
8439 (gdbpy_inferiors): Error out if build_inferior_list fails.
8440
8441 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8442 a function call.
8443
8444 * record.c (record_restore): Move printf to before error return.
8445
8446 2011-03-02 Yao Qi <yao@codesourcery.com>
8447
8448 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8449 is_thumb and insn_size.
8450 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8451 on both ARM and Thumb mode.
8452 (arm_process_displaced_insn): Set is_thumb and insn_size.
8453 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8454 (arm_displaced_step_fixup): Likewise.
8455
8456 2011-03-01 Michael Snyder <msnyder@vmware.com>
8457
8458 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8459
8460 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8461
8462 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8463
8464 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8465
8466 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8467 with xmalloc.
8468
8469 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8470 which shadows function parameter.
8471
8472 * tracepoint.c (create_tsv_from_upload): Superfluous call
8473 to xstrdup. Callee already calls xstrdup.
8474
8475 * linespec.c (decode_line_1): Remove unnecessary null check.
8476
8477 * tracepoint.c (scope_info): Fix mem leak, remove underused
8478 variable.
8479
8480 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8481 superfluous null check.
8482
8483 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8484 (value_of_builtin_frame_fp_reg): Ditto.
8485
8486 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8487
8488 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8489 be null.
8490
8491 * linespec.c (decode_line_1): Check for null before dereference.
8492
8493 * reverse.c (record_restore): Move null-check to before pointer
8494 dereference.
8495
8496 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8497
8498 * objc-lang.c (selectors_info): Add explanitory comment.
8499 (classes_info): Ditto.
8500
8501 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8502
8503 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8504 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8505 versions of the trampoline. Handle Thumb vs. ARM addresses.
8506 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8507 (arm_linux_init_abi): Install it.
8508 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8509 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8510
8511 2011-02-28 Michael Snyder <msnyder@vmware.com>
8512
8513 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8514 a little bigger, to avoid possibility of an overflow.
8515
8516 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8517 buffers a little bigger, to avoid possibility of an overflow.
8518
8519 * coffread.c (coff_getfilename): Add check to avoid overflow.
8520
8521 * objc-lang.c (selectors_info): Add a small safety margin to
8522 avoid overflow.
8523 (classes_info): Error out on too long REGEXP.
8524
8525 * infrun.c (handle_inferior_event): Remove unused function call.
8526
8527 * fork-child.c (fork_inferior): Remove ifdef'd code and
8528 unused variable.
8529
8530 * linux-thread-db.c (attach_thread): Discard unused value.
8531
8532 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8533
8534 * remote.c (remote_get_noisy_reply): Discard unused value.
8535 (remote_vcont_resume): Ditto.
8536 (remote_stop_ns): Ditto.
8537
8538 * linespec.c (decode_objc): Delete unused variable.
8539
8540 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8541
8542 * dwarf2read.c (add_partial_symbol): Discard unused values.
8543 (read_base_type): Delete unused variable.
8544
8545 * dbxread.c (read_dbx_symtab): Discard unused value.
8546
8547 * eval.c (evaluate_subexp_standard): Delete unused variable,
8548 and discard unused values.
8549
8550 * infcmd.c (_initialize_infcmd): Discard unused values.
8551
8552 * stabsread.c (rs6000_builtin_type): Missing break statement.
8553
8554 * dbxread.c (process_one_symbol): Discard unused value.
8555
8556 * coffread.c (coff_end_symtab): Delete unused variable.
8557
8558 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8559 (dwarf2_add_typedef): Delete unused variable.
8560 (read_namespace): Ditto.
8561 (dwarf_decode_macros): Ditto.
8562
8563 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8564
8565 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8566
8567 * p-valprint.c (pascal_val_print): Discard unused value.
8568
8569 * utils.c (nquery): Call va_end before return;
8570 (yquery): Ditto.
8571 (query): Ditto.
8572
8573 * proc-service.c (ps_plog): Call va_end before return.
8574
8575 2011-02-28 Tom Tromey <tromey@redhat.com>
8576
8577 * python/python.c (gdbpy_value_cst): New global.
8578 (_initialize_python): Initialize it.
8579 * python/python-internal.h (gdbpy_value_cst): Declare.
8580 * python/py-value.c (convert_value_from_python): Use
8581 gdbpy_value_cst.
8582
8583 2011-02-28 Michael Snyder <msnyder@vmware.com>
8584
8585 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8586
8587 * breakpoint.c (catch_syscall_completer): Free malloced list.
8588
8589 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8590
8591 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8592 (lval_func_check_synthetic_pointer): Ditto.
8593 (lval_func_free_closure): Fix use-after-free.
8594
8595 2011-02-28 Tom Tromey <tromey@redhat.com>
8596
8597 * psymtab.c (expand_partial_symbol_tables): Use
8598 ALL_OBJFILE_PSYMTABS.
8599
8600 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8601
8602 * objc-lang.c (selectors_info): Error on too long REGEXP.
8603
8604 2011-02-28 Michael Snyder <msnyder@vmware.com>
8605
8606 * python/py-param.c (set_parameter_value): Add missing
8607 break statement.
8608
8609 * linux-record.c (record_linux_system_call): Add missing
8610 break statement.
8611
8612 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8613
8614 * breakpoint.c (print_one_breakpoint_location): Remove unused
8615 argument PRINT_ADDRESS_BITS. Update callers.
8616 (print_one_breakpoint): Likewise.
8617
8618 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8619
8620 * breakpoint.c (wrap_indent_at_field): New function.
8621 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8622 Allocate ui_stream locally instead of using STB argument.
8623 (print_one_breakpoint_location): Update call.
8624 * ui-out.c (ui_out_query_field): New function.
8625 * ui-out.h (ui_out_query_field): Add prototype.
8626
8627 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8628
8629 From Michael Snyder <msnyder@vmware.com>
8630 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8631
8632 2011-02-27 Michael Snyder <msnyder@vmware.com>
8633
8634 * objc-lang.c (selectors_info): Prevent string overrun.
8635
8636 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8637 error in strncpy.
8638
8639 * symtab.c (rbreak_command): Move variable 'file_name' to
8640 outer scope.
8641
8642 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8643 param with a local variable of the same name.
8644
8645 2011-02-27 Michael Snyder <msnyder@vmware.com>
8646
8647 * value.c (value_from_history_ref): New function.
8648 * value.h (value_from_history_ref): Export.
8649 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8650 to parse value history references.
8651 * cli/cli-utils.h (get_number_trailer): Update comment.
8652
8653 2011-02-27 Michael Snyder <msnyder@vmware.com>
8654
8655 * inferior.c (detach_inferior_command): Use get_number_or_range.
8656 (kill_inferior_command): Ditto.
8657 (remove_inferior_command): Ditto.
8658 (initialize_inferiors): Make command names plural.
8659 Update help strings.
8660
8661 2011-02-27 Michael Snyder <msnyder@vmware.com>
8662
8663 * darwin-nat-info.c: Fix comment typo.
8664 * dwarf2expr.h: Ditto.
8665 * fbsd-nat.c: Ditto.
8666 * fbsd-nat.h: Ditto.
8667 * frame-unwind.h: Ditto.
8668 * frame.h: Ditto.
8669 * hppa-hpux-tdep.c: Ditto.
8670 * i386-linux-nat.c: Ditto.
8671 * linux-nat.c: Ditto.
8672 * nbsd-nat.c: Ditto.
8673 * nbsd-nat.h: Ditto.
8674 * ppc-linux-tdep.c: Ditto.
8675 * serial.c: Ditto.
8676 * ui-file.h: Ditto.
8677 * tui/tui-winsource.c: Ditto.
8678
8679 2011-02-26 Michael Snyder <msnyder@vmware.com>
8680
8681 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8682
8683 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8684
8685 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8686 with a local variable of the same name.
8687
8688 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8689 param with a local variable of the same name.
8690 (i387_supply_xsave): Ditto.
8691
8692 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8693 that it does not shadow a function parameter.
8694
8695 * i386-nat.c (i386_length_and_rw_bits): Document that case
8696 statement is meant to fall through.
8697
8698 * expprint.c (dump_subexp_body_standard): Document that case
8699 statement is meant to fall through.
8700
8701 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8702 dead if statement. Condition can't be false.
8703
8704 2011-02-25 Michael Snyder <msnyder@vmware.com>
8705
8706 * arm-tdep.c: Fix typos in comments.
8707 * bsd-uthread.c: Ditto.
8708 * completer.c: Ditto.
8709 * corelow.c: Ditto.
8710 * cp-namespace.c: Ditto.
8711 * cp-support.c: Ditto.
8712 * cris-tdep.c: Ditto.
8713 * dbxread.c: Ditto.
8714 * dwarf2read.c: Ditto.
8715 * frame.h: Ditto.
8716 * gdbtypes.h: Ditto.
8717 * inferior.h: Ditto.
8718 * mdebugread.c: Ditto.
8719 * mips-tdep.c: Ditto.
8720 * ppc-linux-nat.c: Ditto.
8721 * ppc-linux-tdep.c: Ditto.
8722 * printcmd.c: Ditto.
8723 * sol-thread.c: Ditto.
8724 * solib-frv.c: Ditto.
8725 * solist.h: Ditto.
8726 * sparc64-tdep.c: Ditto.
8727 * spu-tdep.c: Ditto.
8728 * stabsread.c: Ditto.
8729 * symfile.c: Ditto.
8730 * valops.c: Ditto.
8731 * varobj.c: Ditto.
8732 * vax-nat.c: Ditto.
8733 * python/py-block.c: Ditto.
8734 * python/py-symbol.c: Ditto.
8735 * python/py-symtab.c: Ditto.
8736 * python/py-value.c: Ditto.
8737 * tui/tui-win.c: Ditto.
8738
8739 2011-02-25 Michael Snyder <msnyder@vmware.com>
8740
8741 * inferior.c (print_inferior): Accept a string instead of an int
8742 for requested_inferiors, and use get_number_or_range to parse it.
8743 (info_inferiors_command): Pass args string to print_inferior.
8744 (initialize_inferiors): Change help string for info inferiors.
8745 * inferior.h (print_inferior): Export prototype change.
8746
8747 2011-02-25 Tom Tromey <tromey@redhat.com>
8748
8749 * common/ax.def (invalid2): Set to 0x31.
8750
8751 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8752
8753 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8754 L and plongest.
8755 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8756 use L and plongest.
8757 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8758
8759 2011-02-24 Michael Snyder <msnyder@vmware.com>
8760
8761 * Makefile.in (clean): Make clean should remove generated files
8762 observer.h and observer.inc.
8763
8764 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8765
8766 Revert the following patch (not approved yet):
8767 2011-02-21 Hui Zhu <teawater@gmail.com>
8768 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8769 * ax-gdb.c (gen_printf_expr_callback): New function.
8770 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8771 * ax-general.c (ax_memcpy): New function.
8772 (ax_print): Handle "printf".
8773 (ax_reqs): Ditto.
8774 * ax.h (ax_memcpy): Forward declare.
8775 * common/ax.def (invalid2): Removed.
8776 (printf): New entry.
8777 * printcmd.c (printcmd.h): New include.
8778 (string_printf): New function.
8779 (ui_printf): Removed.
8780 (printf_command): Remove static. Call string_printf.
8781 (eval_command): Call string_printf.
8782 * printcmd.h: New file.
8783 * tracepoint.c (validate_actionline,
8784 encode_actions_1): handle printf_command.
8785
8786 2011-02-23 Tom Tromey <tromey@redhat.com>
8787
8788 * ax-general.c (ax_pick): Add missing newline.
8789
8790 2011-02-23 Michael Snyder <msnyder@vmware.com>
8791
8792 * breakpoint.c (breakpoint_1): Change first argument from an int
8793 to a char pointer, so that the function now accepts a list of
8794 breakpoints rather than just one. Use new function
8795 'number_is_in_list' to implement.
8796 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8797 (watchpoints_info): Ditto.
8798 (tracepoints_info): Ditto.
8799 (maintenance_info_breakpoints): Ditto.
8800 (_initialize_breakpoint): Update help strings to reflect the fact
8801 that these functions can now take more than one argument.
8802 * cli/cli-utils.c (number_is_in_list): New function.
8803 * cli/cli-utils.h (number_is_in_list): Export.
8804
8805 2011-02-23 Michael Snyder <msnyder@vmware.com>
8806
8807 * memattr.c (mem_enable_command): Use get_number_or_range.
8808 (mem_disable_command): Ditto.
8809 (mem_delete_command): Ditto.
8810 (_initialize_mem): Tweak usage message to reflect multiple
8811 arguments.
8812
8813 2011-02-22 Doug Evans <dje@google.com>
8814
8815 Add gdb.lookup_global_symbol python function.
8816 * NEWS: Add entry.
8817 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8818 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8819 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8820
8821 2011-02-22 Tom Tromey <tromey@redhat.com>
8822
8823 * language.c (language_class_name_from_physname): Rename
8824 'curr_language' argument to 'lang'; use in body.
8825
8826 2011-02-22 Michael Snyder <msnyder@vmware.com>
8827
8828 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8829
8830 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8831
8832 * frame-unwind.h: Fix comment to mention the this frame, not the
8833 next.
8834
8835 2011-02-22 Tom Tromey <tromey@redhat.com>
8836
8837 * symfile.c (auto_solib_limit): Remove.
8838 * symfile.h (auto_solib_limit): Remove.
8839
8840 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8841
8842 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8843
8844 2011-02-21 Michael Snyder <msnyder@vmware.com>
8845
8846 * gdbthread.h (print_thread_info): Change prototype.
8847 * thread.c (print_thread_info): Accept char* instead of int for
8848 requested_threads argument. Use new function number_is_in_list
8849 to determine which threads to list.
8850 (info_threads_command): Pass char* to print_thread_info.
8851 * cli/cli-utils.c (number_is_in_list): New function.
8852 * cli/cli-utils.h (number_is_in_list): Export.
8853 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8854 print_thread_info.
8855 (print_one_inferior): Ditto.
8856 (mi_cmd_list_thread_groups): Ditto.
8857
8858 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8859
8860 * common/Makefile.in (CFLAGS): New.
8861 (COMPILE): Add $(CFLAGS).
8862
8863 2011-02-21 Tom Tromey <tromey@redhat.com>
8864
8865 * breakpoint.c (catch_syscall_command_1): Fix typo.
8866
8867 2011-02-21 Tom Tromey <tromey@redhat.com>
8868
8869 * reverse.c: Include cli-utils.h.
8870 * printcmd.c: Include cli-utils.h.
8871 (string_printf): Use skip_spaces.
8872 * cli/cli-utils.h: New file.
8873 * cli/cli-utils.c: New file.
8874 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8875 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8876 * breakpoint.h (get_number, get_number_or_range): Move to
8877 cli-utils.h.
8878 * breakpoint.c: Include cli-utils.h.
8879 (get_number_trailer, get_number, get_number_or_range)
8880 (ep_skip_leading_whitespace): Move to cli-utils.c.
8881 (create_breakpoint_sal, find_condition_and_thread)
8882 (decode_static_tracepoint_spec, watch_command_1)
8883 (watch_maybe_just_location, ep_parse_optional_if_clause)
8884 (catch_fork_command_1, catch_exec_command_1)
8885 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8886 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8887 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8888 (HFILES_NO_SRCDIR): Add cli-utils.h.
8889 (cli-utils.o): New target.
8890
8891 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8892
8893 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8894 before calling discard_all_inferiors.
8895
8896 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8897
8898 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8899 (struct builtin_opencl_type): Remove.
8900 (builtin_opencl_type): Change return type to "struct type **".
8901 (lookup_opencl_vector_type): Update caller.
8902 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8903 (build_opencl_types): Install plain array of "struct type *"
8904 instead of "struct builtin_opencl_type".
8905
8906 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8907 Ulrich Weigand <uweigand@de.ibm.com>
8908
8909 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8910 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8911 (struct arm_linux_hwbp_cap): New type.
8912 (arm_linux_get_hwbp_cap): New function.
8913 (arm_linux_get_hw_breakpoint_count): Likewise.
8914 (arm_linux_get_hw_watchpoint_count): Likewise.
8915 (arm_linux_can_use_hw_breakpoint): Likewise.
8916 (arm_hwbp_type): New type.
8917 (arm_hwbp_control_t): Likewise.
8918 (struct arm_linux_hw_breakpoint): Likewise.
8919 (struct arm_linux_thread_points): Likewise.
8920 (arm_threads): New global variable.
8921 (arm_linux_find_breakpoints_by_tid): New function.
8922 (arm_hwbp_control_initialize): Likewise.
8923 (arm_hwbp_control_is_enabled): Likewise.
8924 (arm_hwbp_control_disable): Likewise.
8925 (arm_linux_hw_breakpoint_initialize): Likewise.
8926 (arm_linux_get_hwbp_type): Likewise.
8927 (arm_linux_hw_watchpoint_initialize): Likewise.
8928 (arm_linux_hw_breakpoint_equal): Likewise.
8929 (arm_linux_insert_hw_breakpoint1): Likewise.
8930 (arm_linux_remove_hw_breakpoint1): Likewise.
8931 (arm_linux_insert_hw_breakpoint): Likewise.
8932 (arm_linux_remove_hw_breakpoint): Likewise.
8933 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8934 (arm_linux_insert_watchpoint): Likewise.
8935 (arm_linux_remove_watchpoint): Likewise.
8936 (arm_linux_stopped_data_address): Likewise.
8937 (arm_linux_stopped_by_watchpoint): Likewise.
8938 (arm_linux_watchpoint_addr_within_range): Likewise.
8939 (arm_linux_new_thread): Likewise.
8940 (arm_linux_thread_exit): Likewise.
8941 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8942 related target callbacks. Register arm_linux_new_thread and
8943 arm_linux_thread_exit.
8944 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8945 * arm-tdep.c (arm_pc_is_thumb): Make global.
8946 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8947
8948 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8949
8950 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8951 per-frame locations while within a function epilogue.
8952
8953 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8954
8955 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8956 to GNU coding standards.
8957
8958 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8959
8960 Allow use of mingw native on Windows 95 OS.
8961 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8962 (ser_windows_close): Only call CancelIo if function exists.
8963 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8964 to check for existence of CancelIo function in kernel32 DLL.
8965
8966 2011-02-21 Hui Zhu <teawater@gmail.com>
8967
8968 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8969 * ax-gdb.c (gen_printf_expr_callback): New function.
8970 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8971 * ax-general.c (ax_memcpy): New function.
8972 (ax_print): Handle "printf".
8973 (ax_reqs): Ditto.
8974 * ax.h (ax_memcpy): Forward declare.
8975 * common/ax.def (invalid2): Removed.
8976 (printf): New entry.
8977 * printcmd.c (printcmd.h): New include.
8978 (string_printf): New function.
8979 (ui_printf): Removed.
8980 (printf_command): Remove static. Call string_printf.
8981 (eval_command): Call string_printf.
8982 * printcmd.h: New file.
8983 * tracepoint.c (validate_actionline,
8984 encode_actions_1): handle printf_command.
8985
8986 2011-02-19 Michael Snyder <msnyder@vmware.com>
8987
8988 * reverse.c (delete_one_bookmark): Argument is now bookmark
8989 id rather than pointer to bookmark struct.
8990 (delete_bookmark_command): Use get_number_or_range.
8991 (goto_bookmark_command): Parse with get_number instead of strtoul.
8992 (bookmark_1): New function. Print info for one bookmark.
8993 (bookmarks_info): Use get_number_or_range and bookmark_1.
8994
8995 2011-02-18 Michael Snyder <msnyder@vmware.com>
8996
8997 * thread.c (info_threads_command): Re-implement using
8998 get_number_or_range.
8999 (thread_apply_command): Ditto.
9000
9001 2011-02-18 Tom Tromey <tromey@redhat.com>
9002
9003 * common/ax.def: New file.
9004 * ax.h (enum agent_op): Use ax.def.
9005 * ax-general.c (aop_map): Use ax.def.
9006
9007 2011-02-18 Tom Tromey <tromey@redhat.com>
9008
9009 * ax-general.c (aop_map): Add pick and rot.
9010 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9011 <DW_OP_rot>: Implement.
9012 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9013 (ax_pick): Declare.
9014 * ax-general.c (ax_pick): New function.
9015
9016 2011-02-18 Tom Tromey <tromey@redhat.com>
9017
9018 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9019
9020 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9021 Tom Tromey <tromey@redhat.com>
9022
9023 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9024 make_symbol_overload_list_block with NULL BLOCK.
9025 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9026
9027 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9028
9029 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9030 * breakpoint.h (get_number_or_range): Declare.
9031 * printcmd.c (ALL_DISPLAYS): Declare.
9032 (delete_display): Reimplement taking a display pointer.
9033 (undisplay_command): Accept a range of displays to delete, using
9034 get_number_or_range.
9035
9036 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9037
9038 * c-valprint.c (c_val_print): Add embedded_offset to address
9039 for arrays of unspecified length.
9040 * p-valprint.c (pascal_val_print): Likewise.
9041
9042 2011-02-18 Yao Qi <yao@codesourcery.com>
9043
9044 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9045 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9046 (thumb_process_displaced_insn): New.
9047 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9048 call to arm_process_displaced_insn.
9049 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9050
9051 2011-02-17 Tom Tromey <tromey@redhat.com>
9052
9053 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9054 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9055 compile_dwarf_to_ax. No longer static. Call
9056 dwarf2_compile_cfa_to_ax.
9057 (locexpr_tracepoint_var_ref): Update.
9058 (loclist_tracepoint_var_ref): Update.
9059 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9060 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9061 argument; add 'gdbarch' and 'pc'.
9062 (dwarf2_compile_cfa_to_ax): New function.
9063 (dwarf2_frame_cache): Update.
9064
9065 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9066
9067 * ada-lang.c (ada_type_of_array): Fix the size of the array
9068 in the case of an unconstrained packed array.
9069
9070 2011-02-17 Yao Qi <yao@codesourcery.com>
9071
9072 * common/Makefile.in: Add more targets for make.
9073
9074 2011-02-16 Tom Tromey <tromey@redhat.com>
9075
9076 * dwarf2loc.c (unimplemented): Fix typo.
9077
9078 2011-02-16 Tom Tromey <tromey@redhat.com>
9079
9080 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9081 (compile_dwarf_to_ax) <default>: Use unimplemented.
9082 <DW_OP_deref>: Update.
9083 (disassemble_dwarf_expression): Update.
9084 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9085 (decode_locdesc): Update.
9086 * dwarf2expr.h (dwarf_stack_op_name): Update.
9087
9088 2011-02-16 Tom Tromey <tromey@redhat.com>
9089
9090 * ax.h (struct aop_map) <name>: Now const.
9091
9092 2011-02-16 Tom Tromey <tromey@redhat.com>
9093
9094 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9095 than axs_rvalue.
9096
9097 2011-02-16 Yao Qi <yao@codesourcery.com>
9098
9099 * infrun.c (get_displaced_step_closure_by_addr): New.
9100 * inferior.h: Declare it.
9101 * arm-tdep.c: (arm_pc_is_thumb): Call
9102 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9103 returns non-NULL.
9104
9105 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9106 Jan Kratochvil <jan.kratochvil@redhat.com>
9107
9108 gdb/
9109 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9110
9111 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9112 Jan Kratochvil <jan.kratochvil@redhat.com>
9113
9114 * value.c (value_contents_copy_raw): Extend describing comment.
9115 Assert that the destination contents we're overwriting are wholly
9116 available.
9117 (value_contents_copy): Extend describing comment.
9118
9119 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9120 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 * value.c (value_available_contents_eq): Remove redundant local
9123 variables. Fix available contents comparision.
9124 * value.h (value_available_contents_eq): Extend describing
9125 comment.
9126
9127 2011-02-16 Yao Qi <yao@codesourcery.com>
9128
9129 * thread.c (info_threads_command): Add missing i18n markup and remove
9130 trailing newline.
9131
9132 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9133
9134 * breakpoint.c (longjmp_names): New variable.
9135 (struct breakpoint_objfile_data): New type.
9136 (breakpoint_objfile_key): New variable.
9137 (msym_not_found): New variable.
9138 (msym_not_found_p): New predicate.
9139 (get_breakpoint_objfile_data): New function.
9140 (create_overlay_event_breakpoint): Check per-objfile cache for
9141 symbols first.
9142 (create_longjmp_master_breakpoint): Likewise.
9143 (create_std_terminate_master_breakpoint): Likewise.
9144 (create_exception_master_breakpoint): Likewise.
9145 (_initialize_breakpoint): Register per-objfile data key.
9146
9147 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9148
9149 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9150 parameter value.
9151 (create_longjmp_master_breakpoint): Loop over longjmp names.
9152 (create_std_terminate_master_breakpoint): Const-propagate parameter
9153 value.
9154 (update_breakpoints_after_exec): Adjust.
9155 (breakpoint_re_set): Adjust.
9156
9157 2011-02-15 Michael Snyder <msnyder@vmware.com>
9158
9159 * thread.c (info_threads_command): Process arg as thread id,
9160 or list of thread ids.
9161 (thread_find_command): New command.
9162 (_initialize_thread): Document argument for info threads.
9163 Document 'thread find' command.
9164 * NEWS: Document new command "thread find".
9165
9166 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9167
9168 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9169 * aclocal.m4: Regenerated with aclocal-1.11.1.
9170 * common/configure: Regenerate with autoconf-2.64.
9171
9172 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9173
9174 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9175 bool data type to a size of one byte.
9176
9177 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9178 Jan Kratochvil <jan.kratochvil@redhat.com>
9179
9180 * target.c (memory_xfer_live_readonly_partial): Document where to
9181 look for interface description.
9182
9183 2011-02-15 Yao Qi <yao@codesourcery.com>
9184
9185 PR tdep/12352
9186 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9187 order to store PC value on stack instead of text section.
9188
9189 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9190
9191 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9192 the EFP register set size.
9193 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9194 data from the VMX register.
9195 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9196 and write data from/to the VMX register.
9197
9198 2011-02-14 Michael Snyder <msnyder@vmware.com>
9199
9200 * command.h (enum command_class): New class 'no_set_class', for
9201 "show" commands without a corresponding "set" command.
9202 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9203 * copying.c (_initialize_copying): Ditto for "show copying" and
9204 "show warranty".
9205 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9206 "show version".
9207 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9208 which there is no corresponding "set" command (eg. "show copying").
9209
9210 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9211 Jan Kratochvil <jan.kratochvil@redhat.com>
9212
9213 * exec.c (section_table_available_memory): Change `len' parameter
9214 type to ULONGEST.
9215 * exec.h (section_table_available_memory): Ditto.
9216 * value.h (read_value_memory): Rename the `offset' parameter to
9217 `embedded_offset'.
9218
9219 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9220 Jan Kratochvil <jan.kratochvil@redhat.com>
9221
9222 * memrange.c (compare_mem_ranges): Mention sort order in
9223 describing comment.
9224 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9225 * tracepoint.c (traceframe_available_memory): Extend comment to
9226 mention what happens to RESULT when the target does not support
9227 the query.
9228
9229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9230 Jan Kratochvil <jan.kratochvil@redhat.com>
9231
9232 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9233 range.
9234
9235 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9236
9237 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9238 No longer handle NULL values.
9239
9240 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9241
9242 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9243 * value.c: Include "exceptions.h".
9244 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9245 generic error.
9246 * cp-abi.c: Include gdb_assert.h.
9247 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9248 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9249 errors.
9250 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9251 parameters. No longer returns -1 on error.
9252 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9253 `val' parameters.
9254 * cp-valprint.c: Include exceptions.h.
9255 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9256 the baseclass_offset. Handle unavailable base classes. Use
9257 val_print_invalid_address.
9258 * p-valprint.c: Include exceptions.h.
9259 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9260 when fetching the baseclass_offset. No longer expect
9261 baseclass_offset returning -1. Handle unavailable base classes.
9262 Use val_print_invalid_address.
9263 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9264 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9265 `embedded_offset' and `val' parameters. Adjust.
9266 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9267 parameter, and change its type to gdb_byte pointer. Add
9268 `embedded_offset' and `val' parameters. Adjust. No longer expect
9269 baseclass_offset returning -1.
9270 (value_dynamic_cast): Use value_contents_for_printing rather than
9271 value_contents. Adjust.
9272 (search_struct_field): No longer expect baseclass_offset returning
9273 -1.
9274 (search_struct_method): If reading memory from the target is
9275 necessary, wrap it in a new value to pass to baseclass_offset. No
9276 longer expect baseclass_offset returning -1.
9277 (find_method_list): No longer expect baseclass_offset returning
9278 -1. Use value_contents_for_printing rather than value_contents.
9279 * valprint.c (val_print_invalid_address): New function.
9280 * valprint.h (val_print_invalid_address): Declare.
9281 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9282 and `val' parameters. No longer expect baseclass_offset returning
9283 -1. Adjust.
9284 * gnu-v2-abi.c: Include "exceptions.h".
9285 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9286 parameters. Handle unavailable memory. Recurse through
9287 gnuv2_baseclass_offset directly, rather than through
9288 baseclass_offset. No longer returns -1 on not found, instead
9289 throw an error.
9290 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9291 `val' parameters. Adjust.
9292
9293 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9294
9295 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9296 almost but not quite adjacent.
9297
9298 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9299
9300 * value.h (value_entirely_available): Declare.
9301 * value.c (value_entirely_available): New function.
9302 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9303 real type if the pointer is unavailable.
9304
9305 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9306
9307 * valops.c (value_repeat): Use read_value_memory instead of
9308 read_memory.
9309
9310 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9311
9312 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9313 * value.c (value_contents_copy_raw, value_contents_copy): New
9314 functions.
9315 (value_primitive_field): Use value_contents_copy_raw instead of
9316 memcpy.
9317 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9318 memcpy.
9319 (value_array, value_slice): Ditto.
9320 * valarith.c (value_subscripted_rvalue): Use
9321 value_contents_copy_raw instead of memcpy.
9322
9323 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9324
9325 <unavailable> references.
9326
9327 * valops.c (get_value_at): Use value_from_contents_and_address,
9328 avoiding read_memory.
9329
9330 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9331
9332 * c-valprint.c (c_val_print): Print a string with unavailable
9333 contents as an array.
9334
9335 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9336
9337 * value.h (unpack_bits_as_long): Delete declaration.
9338 (unpack_value_bits_as_long): Declare.
9339 (unpack_value_field_as_long): Declare.
9340 (value_field_bitfield): Declare.
9341 * value.c (unpack_bits_as_long): Rename to...
9342 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9343 value parameters. Return the extracted result in a new output
9344 parameter. If the value contents are unavailable, return false,
9345 otherwise return true.
9346 (unpack_value_bits_as_long): New.
9347 (unpack_field_as_long): Rename to...
9348 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9349 Add embedded_offset and value parameters. Return the extracted
9350 result in a new output parameter. If the value contents are
9351 unavailable, return false, otherwise return true.
9352 (unpack_value_field_as_long): New.
9353 (unpack_field_as_long_1): New.
9354 (unpack_field_as_long): Reimplement as wrapper around
9355 unpack_value_field_as_long_1.
9356 (value_field_bitfield): New function.
9357 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9358 unpack_value_bits_as_long. Mark the value as unavailable, if it
9359 is unavailable.
9360 * jv-valprint.c (java_print_value_fields): Use
9361 value_field_bitfield.
9362 * p-valprint.c (pascal_object_print_value_fields): Use
9363 value_field_bitfield.
9364 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9365
9366 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9367
9368 * value.c (get_internalvar_integer): Also return the int value of
9369 TYPE_CODE_INT INTERNALVAR_VALUE values.
9370 (set_internalvar): Don't special case TYPE_CODE_INT.
9371
9372 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9373
9374 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9375 INTERNALVAR_POINTER.
9376 <pointer>: Delete.
9377 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9378 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9379 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9380
9381 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9382
9383 * value.h (value_available_contents_eq): Declare.
9384 * value.c (find_first_range_overlap): New function.
9385 (value_available_contents_eq): New function.
9386 * valprint.c (val_print_array_elements): Use
9387 value_available_contents_eq.
9388 * ada-valprint.c (val_print_packed_array_elements): Use
9389 value_available_contents_eq.
9390 * jv-valprint.c (java_value_print): Use
9391 value_available_contents_eq.
9392
9393 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9394
9395 * target.c (target_read_live_memory): New function.
9396 (memory_xfer_live_readonly_partial): New.
9397 (memory_xfer_partial): If reading from a traceframe, fallback to
9398 reading unavailable read-only memory from read-only regions of
9399 live target memory.
9400 * tracepoint.c (disconnect_tracing): Adjust.
9401 (set_current_traceframe): New, factored out from
9402 set_traceframe_number.
9403 (set_traceframe_number): Reimplement to only change the traceframe
9404 number on the GDB side.
9405 (do_restore_current_traceframe_cleanup): Adjust.
9406 (make_cleanup_restore_traceframe_number): New.
9407 (cur_traceframe_number): New global.
9408 (tfile_open): Set cur_traceframe_number to no traceframe.
9409 (set_tfile_traceframe): New function.
9410 (tfile_trace_find): If looking up a traceframe using any method
9411 other than by number, make sure the current tfile traceframe
9412 matches gdb's current traceframe. Update the current tfile
9413 traceframe if the lookup succeeded.
9414 (tfile_fetch_registers, tfile_xfer_partial)
9415 (tfile_get_trace_state_variable_value): Make sure the remote
9416 traceframe matches gdb's current traceframe.
9417 * remote.c (remote_traceframe_number): New global.
9418 (remote_open_1): Set it to -1.
9419 (set_remote_traceframe): New function.
9420 (remote_fetch_registers, remote_store_registers)
9421 (remote_xfer_memory, remote_xfer_partial)
9422 (remote_get_trace_state_variable_value): Make sure the remote
9423 traceframe matches gdb's current traceframe.
9424 (remote_trace_find): If looking up a traceframe using any method
9425 other than by number, make sure the current remote traceframe
9426 matches gdb's current traceframe. Update the current remote
9427 traceframe if the lookup succeeded.
9428 * infrun.c (fetch_inferior_event): Adjust.
9429 * tracepoint.h (set_current_traceframe): Declare.
9430 (get_traceframe_number, set_traceframe_number): Add describing
9431 comments.
9432
9433 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9434
9435 Mark pieces of values as unavailable if the corresponding memory
9436 is unavailable.
9437
9438 * valops.c: Include tracepoint.h.
9439 (value_fetch_lazy): Use read_value_memory.
9440 (read_value_memory): New.
9441 * value.h (read_value_memory): Declare.
9442 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9443 * exec.c (section_table_available_memory): New function.
9444 * exec.h (section_table_available_memory): Declare.
9445
9446 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9447
9448 * Makefile.in (SFILES): Add memrange.c.
9449 (HFILES_NO_SRCDIR): Add memrange.h.
9450 (COMMON_OBS): Add memrange.o.
9451 * memrange.c: New file.
9452 * memrange.h: New file.
9453 * tracepoint.c: Include memrange.h.
9454 (struct mem_range): Delete.
9455 (mem_range_s): Delete.
9456 (traceframe_available_memory): New function.
9457 * tracepoint.h (traceframe_available_memory): Declare.
9458
9459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9460
9461 * target.h (struct traceframe_info): Forward declare.
9462 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9463 (struct target_ops) <to_traceframe_info>: New field.
9464 (target_traceframe_info): New.
9465 * target.c (update_current_target): Inherit and default
9466 to_traceframe_info.
9467 * remote.c (PACKET_qXfer_traceframe_info): New.
9468 (remote_protocol_features): Register qXfer:traceframe-info:read.
9469 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9470 (remote_traceframe_info): New.
9471 (init_remote_ops): Install it.
9472 (_initialize_remote): Install "set/show remote traceframe-info"
9473 commands.
9474 * tracepoint.h (parse_traceframe_info): Declare.
9475 * tracepoint.c (struct mem_range): New.
9476 (mem_range_s): New typedef.
9477 (struct traceframe_info): New.
9478 (traceframe_info): New global.
9479 (free_traceframe_info): New function.
9480 (clear_traceframe_info): New function.
9481 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9482 info.
9483 (build_traceframe_info): New function.
9484 (tfile_traceframe_info): New function.
9485 (init_tfile_ops): Install tfile_traceframe_info.
9486 (traceframe_info_start_memory, free_result): New functions.
9487 (memory_attributes, traceframe_info_elements): New globals.
9488 (parse_traceframe_info, get_traceframe_info): New functions.
9489 * features/traceframe-info.dtd: New file.
9490 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9491
9492 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9493
9494 Base support for <unavailable> value contents.
9495
9496 * value.h (value_bytes_available): Declare.
9497 (mark_value_bytes_unavailable): Declare.
9498 * value.c (struct range): New struct.
9499 (range_s): New typedef.
9500 (ranges_overlap): New function.
9501 (range_lessthan): New function.
9502 (ranges_contain_p): New function.
9503 (struct value) <unavailable>: New field.
9504 (value_bytes_available): New function.
9505 (mark_value_bytes_unavailable): New function.
9506 (require_not_optimized_out): Constify parameter.
9507 (require_available): New function.
9508 (value_contents_all, value_contents): Require all bytes be
9509 available.
9510 (value_free): Free `unavailable'.
9511 (value_copy): Copy `unavailable'.
9512 * valprint.h (val_print_unavailable): Declare.
9513 * valprint.c (valprint_check_validity): Rename `offset' parameter
9514 to `embedded_offset'. If printing a scalar, check whether the
9515 value chunk is available.
9516 (val_print_unavailable): New.
9517 (val_print_scalar_formatted): Check whether the value is
9518 available.
9519 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9520 pretty-printing unavailable values.
9521
9522 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9523
9524 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9525 * c-typeprint.c (c_type_print_args): Update the function comment. New
9526 variable param_type, initialize it. Remove const/volatile qualifiers
9527 for language_cplus and !show_artificial. Use param_type.
9528
9529 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9530
9531 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9532 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9533 * symtab.h (struct symtab) <next>: Comment extension.
9534
9535 2011-02-12 Yao Qi <yao@codesourcery.com>
9536
9537 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9538
9539 2011-02-11 Yao Qi <yao@codesourcery.com>
9540
9541 * common/Makefile.in: Add copyright header.
9542
9543 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9544
9545 * infrun.c (proceed): Move switching out and in of tfind mode from
9546 here ...
9547 (fetch_inferior_event): ... to here.
9548
9549 2011-02-11 Yao Qi <yao@codesourcery.com>
9550
9551 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9552 libcommon.a.
9553 * configure.ac: Add common to sub dir.
9554 * configure: Regenerate.
9555
9556 2011-02-11 Yao Qi <yao@codesourcery.com>
9557
9558 Build libcommon.a.
9559
9560 * common/Makefile.in: New.
9561 * common/configure.ac: New.
9562 * common/aclocal.m4: New.
9563 * common/configure: Generate.
9564
9565 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9566
9567 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9568 side of the parenthesis.
9569
9570 Merge from GCC:
9571 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9572 * vec.h (VEC_block_remove): Fix comment.
9573
9574 2011-02-08 Michael Snyder <msnyder@vmware.com>
9575
9576 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9577
9578 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9579
9580 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9581 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9582 psubd and paddd.
9583
9584 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 PR 12361.
9587 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9588 phsubsw.
9589 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9590 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9591
9592 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9593
9594 * dwarf2read.c (read_subroutine_type): Set special calling
9595 convention flag for functions compiled by IBM XL C for OpenCL.
9596 * ppc-sysv-tdep.c: Include "dwarf2.h"
9597 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9598 calling convention.
9599 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9600 IBM OpenCL vector types calling convention.
9601 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9602 (ppc_sysv_abi_broken_return_value): Likewise.
9603 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9604 types calling convention.
9605 (ppc64_sysv_abi_return_value): Likewise.
9606 * spu-tdep.c: Include "dwarf2.h"
9607 (spu_return_value): Implement IBM OpenCL vector types calling
9608 convention.
9609
9610 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9611
9612 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9613 correct ABI for AltiVec vector arguments.
9614
9615 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9616
9617 * valprint.c (val_print): Extend comment.
9618 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9619 interface explanation to val_print.
9620 (ada_val_print_array): Adjust comment to current interface.
9621 (print_field_values): Adjust comment to current interface.
9622 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9623 explanation to val_print.
9624 * f-valprint.c (f_val_print): Ditto.
9625 * jv-valprint.c (java_val_print): Ditto.
9626 * m2-valprint.c (m2_val_print): Ditto.
9627 * p-valprint.c (pascal_val_print): Ditto.
9628
9629 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9630
9631 * breakpoint.c (parse_breakpoint_sals): Fix description.
9632
9633 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9634 Oguz Kayral <oguzkayral@gmail.com>
9635
9636 * python/py-inferior.c (python_on_normal_stop): New function.
9637 (python_on_resume): New function.
9638 (python_inferior_exit): New function.
9639 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9640 inferior_exit observers.
9641 * python/py-evtregistry.c: New file.
9642 * python/py-threadevent.c : New file.
9643 * python/py-event.c: New file.
9644 * python/py-evts.c: New file.
9645 * python/py-continueevent.c: New file.
9646 * python/py-bpevent.c: New file.
9647 * python/py-signalevent.c: New file.
9648 * python/py-exetiedevent.c: New file.
9649 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9650 Move struct breakpoint_object from here...
9651 * python/python-internal.h: ... to here.
9652 * python/py-event.h: New file.
9653 * python/py-events.h: New file.
9654 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9655 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9656 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9657 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9658 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9659 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9660 Add build rules for all the above.
9661
9662 2011-02-04 Tom Tromey <tromey@redhat.com>
9663
9664 * dwarf2read.c (dwarf2_section_empty_p): New function.
9665 (dwarf2_read_section): Use dwarf2_section_empty_p.
9666 (dwarf2_section_size): New function.
9667 (dwarf2_get_section_info): Unconditionally read section.
9668 (dwarf2_read_index): Use dwarf2_section_empty_p.
9669 (partial_read_comp_unit_head): Use dwarf2_section_size.
9670 (dwarf2_symbol_mark_computed): Likewise.
9671
9672 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9673
9674 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9675
9676 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9677
9678 * mips-linux-tdep.c: Include xml-syscall.h.
9679 (mips_linux_get_syscall_number): New function.
9680 (mips_linux_init_abi): Add calls to
9681 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9682 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9683 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9684 * syscalls/mips-n32-linux.xml: New file.
9685 * syscalls/mips-n64-linux.xml: New file.
9686 * syscalls/mips-o32-linux.xml: New file.
9687
9688 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9689
9690 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9691 Complain about inverted range entries.
9692 (dwarf2_record_block_ranges): Likewise.
9693
9694 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9695
9696 Fix some typos.
9697 * breakpoint.c (update_watchpoint): Fix name of the
9698 update_global_location_list function.
9699 (print_one_breakpoint): Fix typo.
9700 (_initialize_breakpoint): Remove extra space in hbreak help
9701 string.
9702 * breakpoint.h (struct bp_location) <length>: Fix field
9703 description.
9704
9705 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9706
9707 * regcache.c (registers_changed_ptid): Don't explictly always
9708 clear `current_regcache'. Only clear current_thread_ptid and
9709 current_thread_arch when PTID matches. Only reinit the frame
9710 cache if PTID matches the current inferior_ptid. Move alloca(0)
9711 call to ...
9712 (registers_changed): ... here.
9713
9714 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9715
9716 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9717 starts with __stack_chk_guard as stack guard symbol.
9718
9719 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9720
9721 * disasm.c (compare_lines): Handle the end of sequence markers
9722 within the line table to better support disassembling over
9723 compilation unit boundaries.
9724
9725 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9726
9727 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9728 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9729 implementation even if no symbols are available.
9730 (thumb_analyze_prologue): Update call to skip_prologue_function.
9731 (arm_analyze_prologue): Likewise.
9732
9733 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9734
9735 * arm-tdep.c: Include "observer.h".
9736 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9737 (arm_exidx_data_key): New static variable.
9738 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9739 (struct arm_exidx_data): Likewise.
9740 (arm_exidx_data_free): New function.
9741 (arm_compare_exidx_entries): Likewise.
9742 (arm_obj_section_from_vma): Likewise.
9743 (arm_exidx_new_objfile): Likewise.
9744 (arm_find_exidx_entry): Likewise.
9745 (arm_exidx_fill_cache): Likewise.
9746 (arm_exidx_unwind_sniffer): Likewise.
9747 (arm_exidx_unwind): New global variable.
9748 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9749 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9750 observer. Register arm_exidx_data_key as objfile data.
9751
9752 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9753
9754 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9755 due to accessing uninitialized variable. Fix indentation.
9756
9757 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9758
9759 * c-valprint.c (c_value_print): When doing virtual base pointer
9760 adjustment, create a new value with adjusted contents rather than
9761 changing the contents of the value being printed (and getting it
9762 wrong).
9763
9764 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9765
9766 * xml-support.c (xml_find_attribute): New.
9767 (xinclude_start_include): Use it.
9768 * xml-support.h (xml_find_attribute): Declare.
9769 * memory-map.c (memory_map_start_memory)
9770 (memory_map_start_property): Use xml_find_attribute.
9771 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9772 xml_find_attribute.
9773 * remote.c (start_thread): Use xml_find_attribute.
9774 * solib-target.c (library_list_start_segment)
9775 (library_list_start_section, library_list_start_library)
9776 (library_list_start_list): Use xml_find_attribute.
9777 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9778 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9779 (tdesc_start_field): Use xml_find_attribute.
9780
9781 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9782
9783 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9784 (BUILD_OCL_VTYPES): Update.
9785
9786 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9787
9788 * configure.ac: Work around non-GNU sed limitation when computing
9789 python version number.
9790 * configure: Regenerate.
9791
9792 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9793
9794 Fix debug printing of TYPE_INSTANCE.
9795 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9796 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9797
9798 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9799
9800 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9801 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9802 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9803 * ada-operator.inc: Rename the file to ...
9804 * ada-operator.def: ... here, wrap all the entries by macro OP.
9805 * expprint.c (op_name_standard): Remove all the entries. Include
9806 "std-operator.def" instead.
9807 * expression.h (enum exp_opcode): Include "std-operator.def" and
9808 "ada-operator.def". Move all the entries ...
9809 * std-operator.def: ... here, wrap all the entries by macro OP.
9810
9811 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9812
9813 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9814 * breakpoint.c (remove_jit_event_breakpoints): New function.
9815 * jit.c (jit_descriptor_addr): Delete.
9816 (registering_code): Delete.
9817 (clear_int): Delete.
9818 (jit_inferior_data): New variable.
9819 (struct jit_inferior_data): New type.
9820 (get_jit_inferior_data): New function.
9821 (jit_inferior_data_cleanup): New function.
9822 (jit_read_descriptor): Adjust.
9823 (jit_register_code): Adjust.
9824 (jit_breakpoint_re_set_internal): New function; move code here ...
9825 (jit_inferior_init): ... from here.
9826 (jit_breakpoint_re_set): Adjust.
9827 (jit_reset_inferior_data_and_breakpoints): New function.
9828 (jit_inferior_created_observer): Adjust.
9829 (jit_inferior_exit_hook): Adjust.
9830 (jit_executable_changed_observer): New function.
9831 (jit_event_handler): Adjust.
9832 (_initialize_jit): Adjust.
9833
9834 2011-01-31 Michael Snyder <msnyder@vmware.com>
9835
9836 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9837 line.
9838
9839 2011-01-31 Tom Tromey <tromey@redhat.com>
9840
9841 PR python/12216:
9842 * python/python.c (execute_gdb_command): Call
9843 prevent_dont_repeat.
9844 * top.c (suppress_dont_repeat): New global.
9845 (dont_repeat): Use it.
9846 (prevent_dont_repeat): New function.
9847 * command.h (prevent_dont_repeat): Declare.
9848
9849 2011-01-31 Tom Tromey <tromey@redhat.com>
9850
9851 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9852 * python/py-breakpoint.c (bppy_set_silent): Use
9853 breakpoint_set_silent.
9854 (bppy_set_thread): Use breakpoint_set_thread.
9855 (bppy_set_task): Use breakpoint_set_task.
9856 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9857 (breakpoint_set_task): Declare.
9858 (make_breakpoint_silent): Remove.
9859 * breakpoint.c (breakpoint_set_silent): New function.
9860 (breakpoint_set_thread): Likewise.
9861 (breakpoint_set_task): Likewise.
9862 (make_breakpoint_silent): Remove.
9863
9864 2011-01-31 Tom Tromey <tromey@redhat.com>
9865
9866 * breakpoint.h (user_breakpoint_p): Declare.
9867 * breakpoint.c (user_breakpoint_p): New function.
9868 (breakpoint_1): Use it.
9869 (save_breakpoints): Likewise.
9870
9871 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9872
9873 * configure.ac: Add handling of Python distribution on Windows.
9874 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9875 sysconfig variables are not defined, then do not use them.
9876 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9877 instead. On Windows, return all paths using forward-slashes
9878 rather than backslashes.
9879
9880 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9881
9882 * configure.ac: Remove fallback behavior for building
9883 against Python. Remove tweaking of Python include path.
9884 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9885 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9886 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9887 Always restore CPPFLAGS and LIBS after linking test.
9888 * configure: Regenerated.
9889 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9890 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9891 * python/python-internal.h: Adjust includes of Python .h files.
9892
9893 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9894
9895 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9896 in error message.
9897
9898 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9899
9900 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9901 value test.
9902
9903 2011-01-31 Yao Qi <yao@codesourcery.com>
9904
9905 * arm-linux-nat.c: Update calls to regcache_register_status
9906 instead of regcache_valid_p.
9907 * aix-thread.c: Likewise.
9908 * i386gnu-nat.c: Likewise.
9909
9910 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9911
9912 Fix crash.
9913 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9914 touching TYPE_FIELD_ARTIFICIAL.
9915
9916 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9917
9918 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9919 Committers.
9920
9921 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9922
9923 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9924 selected, don't try iterating over the traceframe's blocks.
9925 (tfile_has_stack): If there's no traceframe selected, then there's
9926 no stack.
9927 (tfile_has_registers): If there's no traceframe selected, then
9928 there's no registers.
9929
9930 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9931
9932 * target.c (memory_xfer_partial): No need to restore shadows if we
9933 haven't read anything.
9934
9935 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9936
9937 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9938 and val_print_scalar_formatted.
9939
9940 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9941
9942 * tracepoint.c (tfile_read): New.
9943 (tfile_open): Use it.
9944 (tfile_get_traceframe_address): Use it.
9945 (tfile_trace_find): Use it.
9946 (walk_blocks_callback_func): New typedef.
9947 (match_blocktype): New function.
9948 (traceframe_walk_blocks): New function.
9949 (traceframe_find_block_type): New function.
9950 (tfile_fetch_registers, tfile_xfer_partial)
9951 (tfile_get_trace_state_variable_value): Use
9952 traceframe_find_block_type and tfile_read.
9953
9954 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9955
9956 * remote-mips.c: Add internationalization mark ups. Remove
9957 trailing \n from already marked up strings.
9958
9959 2011-01-26 Tom Tromey <tromey@redhat.com>
9960
9961 * python/py-prettyprint.c (print_string_repr): Clear
9962 'addressprint' option when calling val_print_string.
9963 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9964 option when calling val_print_string.
9965
9966 2011-01-26 Tom Tromey <tromey@redhat.com>
9967
9968 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9969 GDB_PY_LL_ARG.
9970 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9971 macros.
9972 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9973 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9974 (gdb_py_long_as_ulongest): New defines.
9975 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9976 (gdb_py_int_as_long): Declare.
9977 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9978 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9979 (valpy_long): Add comment.
9980 * python/py-utils.c (get_addr_from_python): Use
9981 gdb_py_long_as_ulongest. Handle overflow properly.
9982 (gdb_py_object_from_longest): New function.
9983 (gdb_py_object_from_ulongest): Likewise.
9984 (gdb_py_int_as_long): Likewise.
9985 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9986 * python/py-symtab.c (salpy_get_pc): Use
9987 gdb_py_long_from_ulongest.
9988 (salpy_get_line): Use PyInt_FromLong.
9989 * python/py-param.c (set_parameter_value): Use
9990 gdb_py_int_as_long.
9991 * python/py-lazy-string.c (stpy_get_address): Use
9992 gdb_py_long_from_ulongest.
9993 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9994 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9995 * python/py-breakpoint.c (bppy_set_thread): Use
9996 gdb_py_int_as_long.
9997 (bppy_set_task): Likewise.
9998 (bppy_set_ignore_count): Likewise.
9999 (bppy_set_hit_count): Likewise.
10000 * python/py-block.c (blpy_get_start): Use
10001 gdb_py_object_from_ulongest.
10002 (blpy_get_end): Likewise.
10003 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10004
10005 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10006
10007 PR/symtab 11766:
10008 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10009 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10010 equality test for objfile, initialize addr_low if needed.
10011
10012 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10013
10014 * tui/tui-regs.c (tui_register_format): Remove dead code.
10015
10016 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10017
10018 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10019 instead of print_scalar_formatted.
10020 (print_scalar_formatted): Don't handle 's' format strings here,
10021 and add an assertion that we never see such format here.
10022 * valprint.h (val_print_scalar_formatted): Declare.
10023 * valprint.c (val_print_scalar_formatted): New.
10024 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10025 instead of print_scalar_formatted.
10026 * jv-valprint.c (java_val_print): Ditto.
10027 * p-valprint.c (pascal_val_print): Ditto.
10028 * ada-valprint.c (ada_val_print_1): Ditto.
10029 * f-valprint.c (f_val_print): Ditto.
10030 * infcmd.c (registers_info): Ditto.
10031 * m2-valprint.c (m2_val_print): Ditto.
10032
10033 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10034
10035 * m2-valprint.c (print_unbounded_array): Pass
10036 value_contents_for_printing rather than value_contents, to
10037 m2_print_array_contents. Also pass in the value.
10038
10039 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10040
10041 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10042 (save_gdb_index_command): Switch to .gdb_index version 4.
10043
10044 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10045
10046 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10047 than frame_register, and always pass a valid value to val_print.
10048
10049 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10050
10051 Centralize printing "<optimized out>".
10052
10053 * valprint.h (val_print_optimized_out): Declare.
10054 * cp-valprint.c (cp_print_value_fields): Use
10055 val_print_optimized_out.
10056 * jv-valprint.c (java_print_value_fields): Ditto.
10057 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10058 * printcmd.c (print_formatted): Ditto.
10059 * valprint.c (valprint_check_validity): Ditto.
10060 (value_check_printable): Ditto.
10061 (val_print_optimized_out): New.
10062
10063 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10064
10065 * infcmd.c (default_print_registers_info): Allocate values so to
10066 never pass a NULL value to val_print.
10067
10068 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10069
10070 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10071 boolean. Make sure to always pass a value that matches the
10072 contents buffer to callees. Preserve `address' for following
10073 iterations.
10074 * value.c (value_contents_for_printing_const): New.
10075 (value_address): Constify value argument.
10076 * value.h (value_contents_for_printing_const): Declare.
10077 (value_address): Constify value argument.
10078
10079 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10080
10081 * regcache.c (struct regcache_descr): Rename
10082 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10083 and sizeof_cooked_register_valid_p to
10084 sizeof_cooked_register_status.
10085 (init_regcache_descr): Adjust.
10086 (struct regcache): Rename register_valid_p field to
10087 register_status.
10088 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10089 (do_cooked_read): Adjust.
10090 (regcache_valid_p): Rename to ...
10091 (regcache_register_status): ... this. Adjust.
10092 (regcache_invalidate): Adjust.
10093 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10094 Adjust.
10095 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10096 as unavailable, not valid.
10097 (regcache_dump): Adjust.
10098 * regcache.h (enum register_status): New.
10099 (regcache_register_status): Declare.
10100 (regcache_invalidate): Delete declaration.
10101 * corelow.c (get_core_registers): Adjust.
10102 * tracepoint.c (tfile_fetch_registers): Adjust.
10103 * trad-frame.c (REG_VALUE): Rename to ...
10104 (TF_REG_VALUE): ... this.
10105 (REG_UNKNOWN): Rename to ...
10106 (TF_REG_UNKNOWN): ... this.
10107 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10108 * mi/mi-main.c (register_changed_p): Adjust.
10109
10110 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10111
10112 * regcache.c (struct regcache_descr): Remove outdated comment.
10113 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10114 overallocate hack.
10115 (regcache_xmalloc): Rename to ...
10116 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10117 Allocate the regcache type accordingly.
10118 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10119 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10120 cooked registers, not raw.
10121 (regcache_dup_no_passthrough): Delete.
10122 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10123 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10124 mention obsolete write_register_bytes.
10125 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10126
10127 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10128
10129 Stop remote_read_bytes from handling partial reads itself.
10130
10131 * remote-fileio.c: Include target.h.
10132 (remote_fileio_write_bytes): Delete.
10133 (remote_fileio_func_open, remote_fileio_func_write)
10134 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10135 target_read_memory.
10136 (remote_fileio_func_stat): Use target_read_memory and
10137 target_write_memory.
10138 (remote_fileio_func_gettimeofday): Use target_write_memory.
10139 (remote_fileio_func_system): Use target_read_memory.
10140 * remote.c (remote_write_bytes): Make it static.
10141 (remote_read_bytes): Don't handle partial reads here.
10142 * remote.h (remote_read_bytes): Delete declaration.
10143
10144 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10145
10146 Simplify XML parsing a bit.
10147
10148 * xml-support.h (gdb_xml_parse_quick): Declare.
10149 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10150 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10151 parameter.
10152 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10153 gdb_xml_create_parser_and_cleanup_1.
10154 (gdb_xml_parse_quick): New.
10155 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10156 * osdata.c (osdata_parse): Ditto.
10157 * remote.c (remote_threads_info): Ditto.
10158 * solib-target.c (solib_target_parse_libraries): Ditto.
10159 * xml-syscall.c (syscall_parse_xml): Ditto.
10160 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10161
10162 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10163
10164 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10165 with remote-mips.o added to gdb_target_obs.
10166 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10167
10168 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10169
10170 * ada-valprint.c (val_print_packed_array_elements): Pass the
10171 correct struct value to val_print.
10172 (ada_val_print_1): Ditto.
10173
10174 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10175
10176 Don't lose embedded_offset in printing routines throughout.
10177
10178 * valprint.h (val_print_array_elements): Change prototype.
10179 * valprint.c (val_print_array_elements): Add `embedded_offset'
10180 parameter, and adjust to pass it down to val_print, while passing
10181 `valaddr' or `address' unmodified. Take embedded_offset into
10182 account when checking repetitions.
10183 * c-valprint.c (c_val_print): Pass embedded_offset to
10184 val_print_array_elements instead of adjusting `valaddr' and
10185 `address'.
10186 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10187 embedded_offset to val_print_array_elements instead of adjusting
10188 `valaddr'.
10189 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10190 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10191 val_print_array_elements and pascal_object_print_value_fields
10192 instead of adjusting `valaddr'.
10193 (pascal_object_print_value_fields): Add `offset' parameter, and
10194 adjust to use it.
10195 (pascal_object_print_value): Add `offset' parameter, and adjust to
10196 use it.
10197 (pascal_object_print_static_field): Use
10198 value_contents_for_printing/value_embedded_offset, rather than
10199 value_contents.
10200 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10201 parameter, and adjust to use it. Use
10202 value_contents_for_printing/value_embedded_offset, rather than
10203 value_contents.
10204 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10205 (ada_val_print_array): Add `offset' parameter, and adjust to use
10206 it.
10207 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10208 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10209 Instead work with offsets. Use
10210 value_contents_for_printing/value_embedded_offset, rather than
10211 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10212 and use value_from_pointer to extract a target pointer, rather
10213 than value_from_longest.
10214 (print_variant_part): Add `offset' parameter. Replace
10215 `outer_valaddr' parameter by a new `outer_offset' parameter.
10216 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10217 (ada_value_print): Use
10218 value_contents_for_printing/value_embedded_offset, rather than
10219 value_contents.
10220 (print_record): Add `offset' parameter, and adjust to pass it
10221 down.
10222 (print_field_values): Add `offset' parameter. Replace
10223 `outer_valaddr' parameter by a new `outer_offset' parameter.
10224 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10225 Use value_contents_for_printing/value_embedded_offset, rather than
10226 value_contents.
10227 * d-valprint.c (dynamic_array_type): Use
10228 value_contents_for_printing/value_embedded_offset, rather than
10229 value_contents.
10230 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10231 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10232 (java_print_value_fields): Take `offset' into account. Don't
10233 re-adjust `valaddr'. Instead pass down adjusted offsets.
10234 (java_val_print): Take `embedded_offset' into account. Pass it to
10235 java_print_value_fields.
10236 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10237 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10238 down adjusted offsets.
10239 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10240 (f_val_print): Take `embedded_offset' into account.
10241
10242 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10243
10244 * inflow.c: Include "gdbcmd.h".
10245 (interactive_mode): New static global, moved here from top.c.
10246 (show_interactive_mode): New function, moved here from top.c.
10247 use gdb_has_a_terminal instead of input_from_terminal_p to
10248 determine the current mode.
10249 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10250 setting.
10251 (_initialize_inflow): Add the "set/show interactive-mode"
10252 commands. Moved here from top.c, after having adjusted slightly
10253 the help text.
10254 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10255 to inflow.c.
10256 (input_from_terminal_p): Remove handling of "interactive-mode"
10257 setting, moved to infow.c.
10258 (init_main): Remove creation of the "set/show interactive-mode"
10259 commands, moved to inflow.c.
10260
10261 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10262
10263 * NEWS: Add entry for native ia64-hpux support.
10264
10265 2011-01-19 Tom Tromey <tromey@redhat.com>
10266
10267 PR mi/8618:
10268 * thread.c (free_thread): Free 'name'.
10269 (print_thread_info): Emit thread name. Change CLI output.
10270 (thread_name_command): New function.
10271 (do_captured_thread_select): Emit newline.
10272 (_initialize_thread): Register 'thread name' command.
10273 * target.h (struct target_ops) <to_thread_name>: New field.
10274 (target_thread_name): New macro.
10275 * target.c (update_current_target): Handle to_thread_name.
10276 * python/py-infthread.c (thpy_get_name): New function.
10277 (thpy_set_name): Likewise.
10278 (thread_object_getset): Add "name".
10279 * linux-nat.c (linux_nat_thread_name): New function.
10280 (linux_nat_add_target): Set to_thread_name.
10281 * gdbthread.h (struct thread_info) <name>: New field.
10282
10283 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10284
10285 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10286 (ada_val_print_1): Likewise.
10287
10288 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10289
10290 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10291 upper limit address is not greater than the function end address
10292 when the upper limit could not be computed using the debugging
10293 info.
10294
10295 2011-01-17 Tom Tromey <tromey@redhat.com>
10296
10297 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10298 get_regcomp_error.
10299 * utils.c: Include gdb_regex.h.
10300 (do_regfree_cleanup): New function.
10301 (make_regfree_cleanup): Likewise.
10302 (get_regcomp_error): Likewise.
10303 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10304
10305 2011-01-17 Tom Tromey <tromey@redhat.com>
10306
10307 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10308 re_compile_fastmap.
10309
10310 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10311
10312 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10313 for internal variables.
10314 (last_was_structop): New static variable.
10315 (COMPLETE): New token.
10316 (field_exp): New rule to group all '.' suffix handling.
10317 Add mark_struct_expression calls when approriate to be able
10318 to correctly find fields for completion.
10319 (yylex): Adapt to handle field completion and set INTVAR when
10320 required.
10321
10322 2011-01-14 Yao Qi <yao@codesourcery.com>
10323
10324 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10325 save_reggroup, restore_reggroup and all_reggroup.
10326
10327 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10328
10329 * ada-valprint. (ada_printchar): Use the correct type length
10330 in call to ada_emit_char.
10331 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10332
10333 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10334
10335 * solib-som.h (hpux_major_release): Declare variable here.
10336 * solib-som.c: Remove <sys/utsname.h> header.
10337 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10338 (hpux_major_release): Make global, change default value to
10339 DEFAULT_HPUX_MAJOR_RELEASE.
10340 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10341 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10342 Add "solib-som.h" header.
10343 (set_hpux_major_release): New function.
10344 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10345
10346 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10347
10348 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10349
10350 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10351
10352 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10353 new-line at end of warning message.
10354 (ia64_hpux_store_register): Remove trailing new-line at end of
10355 error message.
10356 * ia64-hpux-tdep.c: Rephrase comment.
10357 * solib-ia64-hpux.c (struct dld_info): Change type of field
10358 dld_flags from "long long" to ULONGEST.
10359
10360 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10361
10362 * target.h (deprecated_child_ops): Delete declaration.
10363 * target.c (deprecated_child_ops): Delete definition.
10364
10365 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10366
10367 * Makefile.in (hpux-thread.o): Delete rule.
10368 * configure.ac: Don't check for HPUX DCE threads support.
10369 * configure, config.in: Regenerate.
10370 * hppa-hpux-nat.c (child_suppress_run): Delete.
10371 (hppa_hpux_child_can_run): Delete.
10372 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10373 * hpux-thread.c: Delete.
10374
10375 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10376
10377 * hpux-thread.c (hpux_pid_to_str): Delete.
10378
10379 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10380
10381 * ada-valprint.c (ada_emit_char): Remove strange code.
10382 Check that c is <= UCHAR_MAX before passing it to isascii.
10383 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10384
10385 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10386
10387 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10388 to the case where instream is stdin.
10389
10390 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10391
10392 * ia64-tdep.h (struct regcache): Forward declare.
10393 (struct ia64_infcall_ops): New struct type.
10394 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10395 and "infcall_ops".
10396 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10397 Renames ia64_find_global_pointer.
10398 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10399 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10400 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10401 methods.
10402 (ia64_infcall_ops): New static global constant.
10403 (ia64_gdbarch_init): Set tdep->infcall_ops.
10404 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10405 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10406 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10407 (ia64_hpux_dummy_code): New static global constant.
10408 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10409 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10410 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10411 New function.
10412 (ia64_hpux_infcall_ops): New static global constant.
10413 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10414 for inferior function calls to work properly on ia64-hpux.
10415
10416 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10417
10418 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10419 * ia64-tdep.h (struct frame_info): forward declaration.
10420 (struct gdbarch_tdep): Add field size_of_register_frame.
10421 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10422 to determine the size of the register frame.
10423 (ia64_size_of_register_frame): New function.
10424 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10425 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10426 (IA64_HPUX_UREG_REASON): New macro.
10427 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10428 New functions.
10429 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10430 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10431 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10432 objects.
10433
10434 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10435
10436 Add support for ia64-hpux.
10437 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10438 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10439
10440 * configure.host: Add handling for ia64-hpux hosts. Add associated
10441 floatformats.
10442 * configure.tgt: Add handling for ia64-hpux targets.
10443 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10444 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10445 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10446
10447 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10448
10449 [ttrace] Compute thread list immediately after attach.
10450 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10451 New subprogram.
10452 (inf_ttrace_attach): Use it.
10453
10454 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10455
10456 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10457 if we could not determine the frame's function address. Instead,
10458 use the frame's PC, and then continue.
10459
10460 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10461
10462 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10463 not already defined.
10464
10465 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10466
10467 * ia64-tdep.c (ia64_struct_type_p): New function.
10468 (ia64_extract_return_value): Handle integral values that are
10469 less than 8 bytes long.
10470 (ia64_push_dummy_call): Likewise.
10471
10472 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10473
10474 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10475 floatformat_ia64_ext.
10476 (floatformat_ia64_ext_big): New static const.
10477 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10478
10479 2011-01-12 Tom Tromey <tromey@redhat.com>
10480
10481 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10482 messages.
10483 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10484 (mi_cmd_thread_list_ids): Likewise.
10485 (mi_cmd_data_list_changed_registers): Likewise.
10486 (mi_cmd_data_list_register_values): Likewise.
10487 (mi_cmd_data_write_register_values): Likewise.
10488 (mi_cmd_data_evaluate_expression): Likewise.
10489 (mi_cmd_data_read_memory): Likewise.
10490 (mi_cmd_data_read_memory_bytes): Likewise.
10491 (mi_cmd_data_write_memory): Likewise.
10492 (mi_cmd_enable_timings): Likewise.
10493 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10494 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10495 (mi_cmd_var_delete): Likewise.
10496 (mi_cmd_var_set_format): Likewise.
10497 (mi_cmd_var_show_format): Likewise.
10498 (mi_cmd_var_info_num_children): Likewise.
10499 (mi_cmd_var_list_children): Likewise.
10500 (mi_cmd_var_info_type): Likewise.
10501 (mi_cmd_var_info_expression): Likewise.
10502 (mi_cmd_var_show_attributes): Likewise.
10503 (mi_cmd_var_assign): Likewise.
10504 (mi_cmd_var_update): Likewise.
10505 (mi_cmd_enable_pretty_printing): Likewise.
10506 (mi_cmd_var_set_update_range): Likewise.
10507 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10508 messages.
10509 (mi_cmd_target_file_put): Likewise.
10510 (mi_cmd_target_file_delete): Likewise.
10511 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10512 messages.
10513 (mi_cmd_stack_info_depth): Likewise.
10514 (mi_cmd_stack_list_locals): Likewise.
10515 (mi_cmd_stack_list_args): Likewise.
10516 (mi_cmd_stack_select_frame): Likewise.
10517 (mi_cmd_stack_select_frame): Likewise.
10518 (mi_cmd_stack_info_frame): Likewise.
10519 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10520 messages.
10521 (mi_cmd_file_list_exec_source_files): Likewise.
10522 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10523 (mi_cmd_env_cd): Likewise.
10524 (mi_cmd_env_path): Likewise.
10525 (mi_cmd_env_dir): Likewise.
10526 (mi_cmd_inferior_tty_show): Likewise.
10527 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10528 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10529 (mi_cmd_break_watch): Likewise.
10530
10531 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10532
10533 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10534 (ppc_linux_insert_hw_breakpoint): Likewise.
10535 (ppc_linux_remove_hw_breakpoint): Likewise.
10536 (ppc_linux_insert_watchpoint): Likewise.
10537
10538 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10539 Jan Kratochvil <jan.kratochvil@redhat.com>
10540
10541 PR fortran/11104 and DWARF unbound arrays detection.
10542 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10543 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10544 unspecified upper bound.
10545 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10546 variables array_size_array, tmp_type and offset_item. New variable
10547 array. Remove call to f77_get_upperbound. New variables array_type
10548 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10549 the final call to deprecated_set_value_type.
10550
10551 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 Make value allocations more lazy.
10554 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10555 instead of allocate_value and set_value_lazy when possible.
10556 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10557 instead of allocate_value and set_value_lazy.
10558 * findvar.c (value_of_register_lazy): Likewise.
10559 (read_var_value): Remove V preallocation, call just check_typedef in
10560 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10561 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10562 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10563 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10564 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10565 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10566 the end, remove set_value_lazy there.
10567 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10568 instead of allocate_value and set_value_lazy when possible.
10569 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10570 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10571 of allocate_value and set_value_lazy.
10572 (value_from_contents_and_address): Use allocate_value_lazy instead of
10573 allocate_value and set_value_lazy when possible.
10574
10575 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10576
10577 * disasm.c (dump_insns): Support dumping opcodes for MI.
10578 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10579 dumping of instruction opcodes.
10580
10581 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10582
10583 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10584 appropiately.
10585
10586 2011-01-11 Tom Tromey <tromey@redhat.com>
10587
10588 * thread.c (do_captured_thread_select): Emit newline before
10589 printing frame.
10590
10591 2011-01-11 Michael Snyder <msnyder@vmware.com>
10592
10593 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10594 * score-tdep.c: Ditto.
10595 * score-tdep.h: Ditto.
10596 * ser-base.c: Ditto.
10597 * ser-go32.c: Ditto.
10598 * serial.c: Ditto.
10599 * serial.h: Ditto.
10600 * ser-mingw.c: Ditto.
10601 * ser-pipe.c: Ditto.
10602 * ser-tcp.c: Ditto.
10603 * ser-unix.c: Ditto.
10604 * sh64-tdep.c: Ditto.
10605 * shnbsd-nat.c: Ditto.
10606 * sh-tdep.c: Ditto.
10607 * sh-tdep.h: Ditto.
10608 * solib.c: Ditto.
10609 * solib-darwin.c: Ditto.
10610 * solib-frv.c: Ditto.
10611 * solib.h: Ditto.
10612 * solib-irix.c: Ditto.
10613 * solib-osf.c: Ditto.
10614 * solib-pa64.c: Ditto.
10615 * solib-som.c: Ditto.
10616 * solib-spu.c: Ditto.
10617 * solib-sunos.c: Ditto.
10618 * solib-svr4.c: Ditto.
10619 * solist.h: Ditto.
10620 * sol-thread.c: Ditto.
10621 * somread.c: Ditto.
10622 * source.c: Ditto.
10623 * source.h: Ditto.
10624 * sparc64-linux-tdep.c: Ditto.
10625 * sparc64-tdep.c: Ditto.
10626 * sparc-linux-nat.c: Ditto.
10627 * sparc-linux-tdep.c: Ditto.
10628 * sparc-sol2-nat.c: Ditto.
10629 * sparc-sol2-tdep.c: Ditto.
10630 * sparc-tdep.c: Ditto.
10631 * sparc-tdep.h: Ditto.
10632 * spu-tdep.c: Ditto.
10633 * stabsread.c: Ditto.
10634 * stabsread.h: Ditto.
10635 * stack.c: Ditto.
10636 * symfile.c: Ditto.
10637 * symfile.h: Ditto.
10638 * symmisc.c: Ditto.
10639 * symtab.c: Ditto.
10640 * symtab.h: Ditto.
10641 * target.c: Ditto.
10642 * target-descriptions.c: Ditto.
10643 * target-descriptions.h: Ditto.
10644 * target.h: Ditto.
10645 * target-memory.c: Ditto.
10646 * terminal.h: Ditto.
10647 * thread.c: Ditto.
10648 * top.c: Ditto.
10649 * tracepoint.c: Ditto.
10650 * tracepoint.h: Ditto.
10651 * trad-frame.h: Ditto.
10652 * typeprint.c: Ditto.
10653
10654 2011-01-11 Michael Snyder <msnyder@vmware.com>
10655
10656 * ui-file.c: Comment cleanup, mostly periods and spaces.
10657 * ui-file.h: Ditto.
10658 * ui-out.c: Ditto.
10659 * ui-out.h: Ditto.
10660 * utils.c: Ditto.
10661 * v850-tdep.c: Ditto.
10662 * valarith.c: Ditto.
10663 * valops.c: Ditto.
10664 * valprint.c: Ditto.
10665 * valprint.h: Ditto.
10666 * value.c: Ditto.
10667 * value.h: Ditto.
10668 * varobj.c: Ditto.
10669 * varobj.h: Ditto.
10670 * vax-tdep.c: Ditto.
10671 * vec.c: Ditto.
10672 * vec.h: Ditto.
10673 * version.h: Ditto.
10674 * windows-nat.c: Ditto.
10675 * windows-tdep.c: Ditto.
10676 * xcoffread.c: Ditto.
10677 * xcoffsolib.c: Ditto.
10678 * xml-support.c: Ditto.
10679 * xstormy16-tdep.c: Ditto.
10680 * xtensa-tdep.c: Ditto.
10681 * xtensa-tdep.h: Ditto.
10682
10683 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10684
10685 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10686 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10687
10688 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10689 Thiago Jung Bauermann <bauerman@br.ibm.com>
10690
10691 Implement support for PowerPC BookE ranged watchpoints.
10692 * breakpoint.h
10693 (struct breakpoint_ops) <resources_needed>: New method.
10694 Initialize to NULL in all existing breakpoint_ops instances.
10695 (struct breakpoint) <exact>: New field.
10696 (target_exact_watchpoints): Declare external global.
10697 * breakpoint.c (target_exact_watchpoints): New global flag.
10698 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10699 b->enable_state to bp_enabled before calling
10700 hw_watchpoint_used_count.
10701 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10702 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10703 if available.
10704 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10705 if the watchpoint is exact.
10706 (resources_needed_watchpoint): New function.
10707 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10708 (watch_command_1): Set b->exact if the user asked for an exact
10709 watchpoint and one can be set.
10710 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10711 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10712 the user asks for an exact watchpoint and one can be set. Return
10713 number of needed debug registers to watch the expression.
10714 * gdbtypes.c (is_scalar_type): New function, based on
10715 valprint.c:scalar_type_p.
10716 (is_scalar_type_recursive): New function.
10717 * gdbtypes.h (is_scalar_type_recursive): Declare.
10718 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10719 handle regions when ranged watchpoints are available.
10720 (create_watchpoint_request): New function.
10721 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10722 create_watchpoint_request.
10723 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10724 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10725 `set powerpc' and `show powerpc' commands.
10726 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10727 Mention documentation comment in the target macro.
10728 (target_region_ok_for_hw_watchpoint): Document return value.
10729
10730 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10731
10732 * breakpoint.c (update_watchpoint): Decide on using a software or
10733 hardware watchpoint after the bp_locations are created.
10734
10735 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10736
10737 Convert hardware watchpoints to use breakpoint_ops.
10738 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10739 <insert_location>: ... this. Return int instead of void.
10740 Accept pointer to struct bp_location instead of pointer to
10741 struct breakpoint. Adapt all implementations.
10742 (breakpoint_ops) <remove>: Rename to...
10743 <remove_location>: ... this. Accept pointer to struct bp_location
10744 instead of pointer to struct breakpoint. Adapt all implementations.
10745 * breakpoint.c (insert_catchpoint): Delete function.
10746 (insert_bp_location): Call the watchpoint or catchpoint's
10747 breakpoint_ops.insert method.
10748 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10749 breakpoint_ops.remove method.
10750 (insert_watchpoint, remove_watchpoint): New functions.
10751 (watchpoint_breakpoint_ops): New structure.
10752 (watch_command_1): Initialize the OPS field.
10753 * inf-child.c (inf_child_insert_fork_catchpoint)
10754 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10755 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10756 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10757 Delete functions.
10758 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10759 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10760 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10761 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10762 * target.c (update_current_target): Change default implementation of
10763 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10764 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10765 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10766 to_set_syscall_catchpoint to return_one.
10767 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10768 (debug_to_insert_exec_catchpoint): Report return value.
10769 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10770 (to_insert_exec_catchpoint): Change declaration to return int instead
10771 of void.
10772
10773 2011-01-11 Michael Snyder <msnyder@vmware.com>
10774
10775 * arm-tdep.c: Internationalization.
10776 * c-lang.c: Ditto.
10777 * charset.c: Ditto.
10778 * fork-child.c: Ditto.
10779 * nto-procfs.c: Ditto.
10780 * ppc-sysv-tdep.c: Ditto.
10781 * procfs.c: Ditto.
10782 * remote-mips.c: Ditto.
10783 * remote.c: Ditto.
10784 * rs6000-nat.c: Ditto.
10785 * rs6000-tdep.c: Ditto.
10786 * target.c: Ditto.
10787 * valops.c: Ditto.
10788 * value.c: Ditto.
10789 * xml-support.c: Ditto.
10790 * mi/mi-cmd-break.c: Ditto.
10791 * mi/mi-cmd-var.c: Ditto.
10792 * mi/mi-interp.c: Ditto.
10793 * mi/mi-main.c: Ditto.
10794
10795 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10796
10797 * remote-sim.c (gdbsim_store_register): Update API to
10798 sim_store_register to check more error conditions.
10799
10800 2011-01-10 Michael Snyder <msnyder@vmware.com>
10801
10802 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10803 * nto-tdep.c: Ditto.
10804 * nto-tdep.h: Ditto.
10805 * objc-exp.y: Ditto.
10806 * objc-lang.c: Ditto.
10807 * objfiles.c: Ditto.
10808 * objfiles.h: Ditto.
10809 * observer.c: Ditto.
10810 * opencl-lang.c: Ditto.
10811 * osabi.c: Ditto.
10812 * parse.c: Ditto.
10813 * parser-defs.h: Ditto.
10814 * p-exp.y: Ditto.
10815 * p-lang.c: Ditto.
10816 * posix-hdep.c: Ditto.
10817 * ppcbug-rom.c: Ditto.
10818 * ppc-linux-nat.c: Ditto.
10819 * ppc-linux-tdep.c: Ditto.
10820 * ppc-linux-tdep.h: Ditto.
10821 * ppcnbsd-tdep.c: Ditto.
10822 * ppcobsd-tdep.c: Ditto.
10823 * ppcobsd-tdep.h: Ditto.
10824 * ppc-sysv-tdep.c: Ditto.
10825 * ppc-tdep.h: Ditto.
10826 * printcmd.c: Ditto.
10827 * proc-abi.c: Ditto.
10828 * proc-flags.c: Ditto.
10829 * procfs.c: Ditto.
10830 * proc-utils.h: Ditto.
10831 * progspace.h: Ditto.
10832 * prologue-value.c: Ditto.
10833 * prologue-value.h: Ditto.
10834 * psympriv.h: Ditto.
10835 * psymtab.c: Ditto.
10836 * p-typeprint.c: Ditto.
10837 * p-valprint.c: Ditto.
10838 * ravenscar-sparc-thread.c: Ditto.
10839 * ravenscar-thread.c: Ditto.
10840 * ravenscar-thread.h: Ditto.
10841 * record.c: Ditto.
10842 * regcache.c: Ditto.
10843 * regcache.h: Ditto.
10844 * remote.c: Ditto.
10845 * remote-fileio.c: Ditto.
10846 * remote-fileio.h: Ditto.
10847 * remote.h: Ditto.
10848 * remote-m32r-sdi.c: Ditto.
10849 * remote-mips.c: Ditto.
10850 * remote-sim.c: Ditto.
10851 * rs6000-aix-tdep.c: Ditto.
10852 * rs6000-nat.c: Ditto.
10853 * rs6000-tdep.c: Ditto.
10854
10855 2011-01-10 Michael Snyder <msnyder@vmware.com>
10856
10857 * charset.c (validate): Internationalization.
10858 * coffread.c (read_one_sym): Ditto.
10859 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10860 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10861 * inflow.c (new_tty): Ditto.
10862 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10863 * m32c-tdep.c (m32c_return_value): Ditto.
10864 * mep-tdep.c (mep_store_return_value): Ditto.
10865 * score-tdep.c (score7_fetch_insn): Ditto.
10866 * ser-mingw.c (pipe_windows_open): Ditto.
10867 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10868 * spu-tdep.c (spu_register_type): Ditto.
10869 * tracepoint.c (trace_find_command): Ditto.
10870 * valarith.c (value_pos): Ditto.
10871
10872 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10873
10874 * ada-valprint.c (printstr): Minor comment reformatting.
10875
10876 2011-01-08 Michael Snyder <msnyder@vmware.com>
10877
10878 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10879 markup.
10880
10881 2011-01-08 Michael Snyder <msnyder@vmware.com>
10882
10883 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10884 * hppa-hpux-tdep.c: Ditto.
10885 * hppa-linux-nat.c: Ditto.
10886 * hppa-linux-tdep.c: Ditto.
10887 * hppanbsd-tdep.c: Ditto.
10888 * hppa-tdep.c: Ditto.
10889 * hppa-tdep.h: Ditto.
10890 * hpux-thread.c: Ditto.
10891 * i386-cygwin-tdep.c: Ditto.
10892 * i386-darwin-nat.c: Ditto.
10893 * i386gnu-nat.c: Ditto.
10894 * i386-linux-nat.c: Ditto.
10895 * i386-linux-tdep.c: Ditto.
10896 * i386-nat.c: Ditto.
10897 * i386-nat.h: Ditto.
10898 * i386nbsd-tdep.c: Ditto.
10899 * i386-sol2-nat.c: Ditto.
10900 * i386-stub.c: Ditto.
10901 * i386-tdep.c: Ditto.
10902 * i386-tdep.h: Ditto.
10903 * i387-tdep.c: Ditto.
10904 * ia64-linux-nat.c: Ditto.
10905 * ia64-linux-tdep.c: Ditto.
10906 * ia64-tdep.c: Ditto.
10907 * infcall.c: Ditto.
10908 * infcall.h: Ditto.
10909 * infcmd.c: Ditto.
10910 * inferior.c: Ditto.
10911 * inferior.h: Ditto.
10912 * infloop.c: Ditto.
10913 * inflow.c: Ditto.
10914 * infrun.c: Ditto.
10915 * interps.c: Ditto.
10916 * interps.h: Ditto.
10917 * iq2000-tdep.c: Ditto.
10918 * irix5-nat.c: Ditto.
10919 * jit.c: Ditto.
10920 * jit.h: Ditto.
10921 * jv-exp.y: Ditto.
10922 * jv-lang.c: Ditto.
10923 * jv-lang.h: Ditto.
10924 * jv-typeprint.c: Ditto.
10925 * jv-valprint.c: Ditto.
10926 * language.c: Ditto.
10927 * language.h: Ditto.
10928 * linespec.c: Ditto.
10929 * linux-fork.c: Ditto.
10930 * linux-nat.c: Ditto.
10931 * linux-thread-db.c: Ditto.
10932 * lm32-tdep.c: Ditto.
10933
10934 2011-01-08 Michael Snyder <msnyder@vmware.com>
10935
10936 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10937 * m2-lang.c: Ditto.
10938 * m2-typeprint.c: Ditto.
10939 * m2-valprint.c: Ditto.
10940 * m32c-tdep.c: Ditto.
10941 * m32r-linux-nat.c: Ditto.
10942 * m32r-rom.c: Ditto.
10943 * m32r-tdep.c: Ditto.
10944 * m32r-tdep.h: Ditto.
10945 * m68hc11-tdep.c: Ditto.
10946 * m58klinux-nat.c: Ditto.
10947 * m68k-tdep.c: Ditto.
10948 * m88k-tdep.c: Ditto.
10949 * m88k-tdep.h: Ditto.
10950 * machoread.c: Ditto.
10951 * macrocmd.c: Ditto.
10952 * macroexp.c: Ditto.
10953 * macrotab.c: Ditto.
10954 * main.c: Ditto.
10955 * maint.c: Ditto.
10956 * mdebugread.c: Ditto.
10957 * mdebugread.h: Ditto.
10958 * memattr.c: Ditto.
10959 * memattr.h: Ditto.
10960 * memory-map.h: Ditto.
10961 * mep-tdep.c: Ditto.
10962 * microblaze-rom.c: Ditto.
10963 * microblaze-tdep.c: Ditto.
10964 * minsyms.c: Ditto.
10965 * mips-irix-tdep.c: Ditto.
10966 * mips-linux-nat.c: Ditto.
10967 * mips-linux-tdep.c: Ditto.
10968 * mips-linux-tdep.h: Ditto.
10969 * mipsnbsd-nat.c: Ditto.
10970 * mipsnbsd-tdep.c: Ditto.
10971 * mipsread.c: Ditto.
10972 * mips-tdep.c: Ditto.
10973 * mips-tdep.h: Ditto.
10974 * mn10300-linux-tdep.c: Ditto.
10975 * mn10300-tdep.c: Ditto.
10976 * mn10300-tdep.h: Ditto.
10977 * monitor.c: Ditto.
10978 * monitor.h: Ditto.
10979 * moxie-tdep.c: Ditto.
10980 * moxie-tdep.h: Ditto.
10981 * mt-tdep.c: Ditto.
10982
10983 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10984
10985 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10986
10987 2011-01-08 Robert Millan <rmh@gnu.org>
10988
10989 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10990
10991 2011-01-07 Michael Snyder <msnyder@vmware.com>
10992
10993 * charset.c (_initialize_charset): Fix typo in string.
10994
10995 2011-01-07 Michael Snyder <msnyder@vmware.com>
10996
10997 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10998 for i18n.
10999 * tui/tui-layout.c (tui_set_layout_for_display_command):
11000 Split line so that operator goes to beginning of line.
11001 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11002 assignment out of if statement.
11003
11004 2011-01-07 Michael Snyder <msnyder@vmware.com>
11005
11006 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11007 * ada-lang.h: Ditto.
11008 * ada-tasks.c: Ditto.
11009 * ada-valprint.c: Ditto.
11010 * aix-threads.c: Ditto.
11011 * alpha-linux-nat.c: Ditto.
11012 * alpha-linux-tdep.c: Ditto.
11013 * alpha-mdebug-tdep.c: Ditto.
11014 * alpha-nat.c: Ditto.
11015 * alpha-osf1-tdep.c: Ditto.
11016 * alpha-tdep.c: Ditto.
11017 * alphabsd-nat.c: Ditto.
11018 * alphabsd-tdep.c: Ditto.
11019 * amd64-darwin-tdep.c: Ditto.
11020 * amd64-linux-nat.c: Ditto.
11021 * amd64-linux-tdep.c: Ditto.
11022 * amd64-sol2-tdep.c: Ditto.
11023 * amd64-tdep.c: Ditto.
11024 * amd64-fbsd-tdep.c: Ditto.
11025 * amd64-nbsd-tdep.c: Ditto.
11026 * amd64-obsd-tdep.c: Ditto.
11027 * amd64-linux-nat.c: Ditto.
11028 * amd64-linux-tdep.c: Ditto.
11029 * arm-tdep.c: Ditto.
11030 * arm-tdep.h: Ditto.
11031 * armnbsd-nat.c: Ditto.
11032 * avr-tdep.c: Ditto.
11033 * bfin-tdep.c: Ditto.
11034 * bsd-kvm.c: Ditto.
11035 * c-typeprintc: Ditto.
11036 * c-valprint.c: Ditto.
11037 * coff-pe-read.h: Ditto.
11038 * coffreead.c: Ditto.
11039 * cris-tdep.c: Ditto.
11040 * d-lang.c: Ditto.
11041 * darwin-nat-info.c: Ditto.
11042 * darwin-nat.c: Ditto.
11043 * dbug-rom.c: Ditto.
11044 * dbxread.c: Ditto.
11045 * dcache.c: Ditto.
11046 * dcache.h: Ditto.
11047 * dec-thread.c: Ditto.
11048 * defs.h: Ditto.
11049 * demangle.c: Ditto.
11050 * dicos-tdep.c: Ditto.
11051 * dictionary.c: Ditto.
11052 * dictionary.h: Ditto.
11053 * dink32-rom.c: Ditto.
11054 * disasm.c: Ditto.
11055 * doublest.c: Ditto.
11056 * dsrec.c: Ditto.
11057 * dummy-frame.c: Ditto.
11058 * dwarf2-frame.c: Ditto.
11059 * dwarf2expr.c: Ditto.
11060 * dwarf2loc.c: Ditto.
11061 * dwarf2read.c: Ditto.
11062 * elfread.c: Ditto.
11063 * environ.c: Ditto.
11064 * eval.c: Ditto.
11065 * event-top.h: Ditto.
11066 * exceptions.c: Ditto.
11067 * exceptions.h: Ditto.
11068 * exec.c: Ditto.
11069 * expprint.c: Ditto.
11070 * expression.h: Ditto.
11071 * f-exp.y: Ditto.
11072 * f-lang.c: Ditto.
11073 * f-lang.h: Ditto.
11074 * f-typeprint.c: Ditto.
11075 * f-valprint.c: Ditto.
11076 * fbsd-nat.c: Ditto.
11077 * findvar.c: Ditto.
11078 * fork-child.c: Ditto.
11079 * frame.c: Ditto.
11080 * frame.h: Ditto.
11081 * frv-linux-tdep.c: Ditto.
11082 * frv-tdep.c: Ditto.
11083 * gcore.c: Ditto.
11084 * gdb-stabs.h: Ditto.
11085 * gdb_assert.h: Ditto.
11086 * gdb_string.h: Ditto.
11087 * gdb_thread_db.h: Ditto.
11088 * gdb_wait.h: Ditto.
11089 * gdbarch.sh: Ditto.
11090 * gdbcore.h: Ditto.
11091 * gdbthread.h: Ditto.
11092 * gdbtypes.c: Ditto.
11093 * gdbtypes.h: Ditto.
11094 * gnu-nat.c: Ditto.
11095 * gnu-nat.h: Ditto.
11096 * gnu-v2-abi.c: Ditto.
11097 * gnu-v3-abi.c: Ditto.
11098 * go32-nat.c: Ditto.
11099 * gdbarch.c: Regenerate.
11100 * gdbarch.h: Regenerate.
11101
11102 2011-01-07 Michael Snyder <msnyder@vmware.com>
11103
11104 * ax-gdb.c: Adjust some long output strings.
11105 * breakpoint.c: Ditto.
11106 * charset.c: Ditto.
11107 * cp-abi.c: Ditto.
11108 * infcall.c: Ditto.
11109 * infrun.c: Ditto.
11110 * linux-nat.c: Ditto.
11111 * solib-pa64.c: Ditto.
11112 * solib-som.c: Ditto.
11113
11114 2011-01-06 Tom Tromey <tromey@redhat.com>
11115
11116 PR python/12367:
11117 * NEWS: Add item.
11118 * python/python.c (GdbMethods): Add "newest_frame" method.
11119 * python/python-internal.h (gdbpy_newest_frame): Declare.
11120 * python/py-frame.c (gdbpy_newest_frame): New function.
11121
11122 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11123
11124 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11125 * jit.c (jit_debug): New variable.
11126 (show_jit_debug): New function.
11127 (struct target_buffer): Use ULONGEST.
11128 (bfd_open_from_target_memory): Likewise.
11129 (jit_register_code, jit_inferior_init): Add debug output.
11130 (_initialize_jit): Register "debug jit" command.
11131
11132 2011-01-06 Tom Tromey <tromey@redhat.com>
11133
11134 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11135 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11136 and ARCH_FRAME.
11137
11138 2011-01-06 Tom Tromey <tromey@redhat.com>
11139
11140 * python/py-frame.c (frapy_block): Use get_frame_block.
11141
11142 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11143
11144 Do not stop on SIGPRIO signals by default
11145 * infrun.c (_initialize_infrun): Unset signal_stop and
11146 signal_print for TARGET_SIGNAL_PRIO.
11147
11148 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11149
11150 * ada-tasks.c: Fix style violation in comment.
11151
11152 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11153
11154 * linespec.c (decode_compound, find_method): Remove trailing \n
11155 at end of error string.
11156 * solib-irix.c (irix_current_sos): Likewise.
11157 * varobj.c (uninstall_variable): Likewise.
11158
11159 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11160
11161 * copyright.py: New script.
11162 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11163 Launch emacs without exec'ing. Call copyright.py afterwards.
11164
11165 2011-01-05 Michael Snyder <msnyder@vmware.com>
11166
11167 * addrmap.c: Shorten lines of >= 80 columns.
11168 * arch-utils.c: Ditto.
11169 * arch-utils.h: Ditto.
11170 * ax-gdb.c: Ditto.
11171 * ax-general.c: Ditto.
11172 * bcache.c: Ditto.
11173 * blockframe.c: Ditto.
11174 * breakpoint.c: Ditto.
11175 * buildsym.c: Ditto.
11176 * c-lang.c: Ditto.
11177 * c-typeprint.c: Ditto.
11178 * charset.c: Ditto.
11179 * coffread.c: Ditto.
11180 * command.h: Ditto.
11181 * corelow.c: Ditto.
11182 * cp-abi.c: Ditto.
11183 * cp-namespace.c: Ditto.
11184 * cp-support.c: Ditto.
11185 * dbug-rom.c: Ditto.
11186 * dbxread.c: Ditto.
11187 * defs.h: Ditto.
11188 * dfp.c: Ditto.
11189 * dfp.h: Ditto.
11190 * dictionary.c: Ditto.
11191 * disasm.c: Ditto.
11192 * doublest.c: Ditto.
11193 * dwarf2-frame.c: Ditto.
11194 * dwarf2expr.c: Ditto.
11195 * dwarf2loc.c: Ditto.
11196 * dwarf2read.c: Ditto.
11197 * elfread.c: Ditto.
11198 * eval.c: Ditto.
11199 * event-loop.c: Ditto.
11200 * event-loop.h: Ditto.
11201 * exceptions.h: Ditto.
11202 * exec.c: Ditto.
11203 * expprint.c: Ditto.
11204 * expression.h: Ditto.
11205 * f-lang.c: Ditto.
11206 * f-valprint.c: Ditto.
11207 * findcmd.c: Ditto.
11208 * frame-base.c: Ditto.
11209 * frame-unwind.c: Ditto.
11210 * frame-unwind.h: Ditto.
11211 * frame.c: Ditto.
11212 * frame.h: Ditto.
11213 * gcore.c: Ditto.
11214 * gdb-stabs.h: Ditto.
11215 * gdb_assert.h: Ditto.
11216 * gdb_dirent.h: Ditto.
11217 * gdb_obstack.h: Ditto.
11218 * gdbcore.h: Ditto.
11219 * gdbtypes.c: Ditto.
11220 * gdbtypes.h: Ditto.
11221 * inf-ttrace.c: Ditto.
11222 * infcall.c: Ditto.
11223 * infcmd.c: Ditto.
11224 * inflow.c: Ditto.
11225 * infrun.c: Ditto.
11226 * inline-frame.h: Ditto.
11227 * language.c: Ditto.
11228 * language.h: Ditto.
11229 * libunwind-frame.c: Ditto.
11230 * libunwind-frame.h: Ditto.
11231 * linespec.c: Ditto.
11232 * linux-nat.c: Ditto.
11233 * linux-nat.h: Ditto.
11234 * linux-thread-db.c: Ditto.
11235 * machoread.c: Ditto.
11236 * macroexp.c: Ditto.
11237 * macrotab.c: Ditto.
11238 * main.c: Ditto.
11239 * maint.c: Ditto.
11240 * mdebugread.c: Ditto.
11241 * memattr.c: Ditto.
11242 * minsyms.c: Ditto.
11243 * monitor.c: Ditto.
11244 * monitor.h: Ditto.
11245 * objfiles.c: Ditto.
11246 * objfiles.h: Ditto.
11247 * osabi.c: Ditto.
11248 * p-typeprint.c: Ditto.
11249 * p-valprint.c: Ditto.
11250 * parse.c: Ditto.
11251 * printcmd.c: Ditto.
11252 * proc-events.c: Ditto.
11253 * procfs.c: Ditto.
11254 * progspace.c: Ditto.
11255 * progspace.h: Ditto.
11256 * psympriv.h: Ditto.
11257 * psymtab.c: Ditto.
11258 * record.c: Ditto.
11259 * regcache.c: Ditto.
11260 * regcache.h: Ditto.
11261 * remote-fileio.c: Ditto.
11262 * remote.c: Ditto.
11263 * ser-mingw.c: Ditto.
11264 * ser-tcp.c: Ditto.
11265 * ser-unix.c: Ditto.
11266 * serial.c: Ditto.
11267 * serial.h: Ditto.
11268 * solib-frv.c: Ditto.
11269 * solib-irix.c: Ditto.
11270 * solib-osf.c: Ditto.
11271 * solib-pa64.c: Ditto.
11272 * solib-som.c: Ditto.
11273 * solib-sunos.c: Ditto.
11274 * solib-svr4.c: Ditto.
11275 * solib-target.c: Ditto.
11276 * solib.c: Ditto.
11277 * somread.c: Ditto.
11278 * source.c: Ditto.
11279 * stabsread.c: Ditto.
11280 * stabsread.c: Ditto.
11281 * stack.c: Ditto.
11282 * stack.h: Ditto.
11283 * symfile-mem.c: Ditto.
11284 * symfile.c: Ditto.
11285 * symfile.h: Ditto.
11286 * symmisc.c: Ditto.
11287 * symtab.c: Ditto.
11288 * symtab.h: Ditto.
11289 * target-descriptions.c: Ditto.
11290 * target-memory.c: Ditto.
11291 * target.c: Ditto.
11292 * target.h: Ditto.
11293 * terminal.h: Ditto.
11294 * thread.c: Ditto.
11295 * top.c: Ditto.
11296 * tracepoint.c: Ditto.
11297 * tracepoint.h: Ditto.
11298 * ui-file.c: Ditto.
11299 * ui-file.h: Ditto.
11300 * ui-out.h: Ditto.
11301 * user-regs.c: Ditto.
11302 * user-regs.h: Ditto.
11303 * utils.c: Ditto.
11304 * valarith.c: Ditto.
11305 * valops.c: Ditto.
11306 * valprint.c: Ditto.
11307 * valprint.h: Ditto.
11308 * value.c: Ditto.
11309 * varobj.c: Ditto.
11310 * varobj.h: Ditto.
11311 * vec.h: Ditto.
11312 * xcoffread.c: Ditto.
11313 * xcoffsolib.c: Ditto.
11314 * xcoffsolib.h: Ditto.
11315 * xml-syscall.c: Ditto.
11316 * xml-tdesc.c: Ditto.
11317
11318 2011-01-05 Michael Snyder <msnyder@vmware.com>
11319
11320 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11321 * cli/cli-decode.c: Ditto.
11322 * cli/cli-dump.c: Ditto.
11323 * cli/cli-logging.c: Ditto.
11324 * cli/cli-script.c: Ditto.
11325 * cli/cli-setshow.c: Ditto.
11326 * common/signals.c: Ditto.
11327 * mi/mi-cmd-break.c: Ditto.
11328 * mi/mi-cmd-disas.c: Ditto.
11329 * mi/mi-cmd-stack.c: Ditto.
11330 * mi/mi-cmd-var.c: Ditto.
11331 * mi/mi-cmds.c: Ditto.
11332 * mi/mi-common.h: Ditto.
11333 * mi/mi-console.c: Ditto.
11334 * mi/mi-interp.c: Ditto.
11335 * mi/mi-main.c: Ditto.
11336 * osf-share/cma_attr.c: Ditto.
11337 * osf-share/cma_deb_core.h: Ditto.
11338 * osf-share/cma_debug_client.h: Ditto.
11339 * osf-share/cma_handle.h: Ditto.
11340 * osf-share/cma_mutex.h: Ditto.
11341 * osf-share/cma_stack_int.h: Ditto.
11342 * osf-share/cma_tcb_defs.h: Ditto.
11343 * python/py-auto-load.c: Ditto.
11344 * python/py-breakpoint.c: Ditto.
11345 * python/py-cmd.c: Ditto.
11346 * python/py-frame.c: Ditto.
11347 * python/py-objfile.c: Ditto.
11348 * python/py-param.c: Ditto.
11349 * python/py-progspace.c: Ditto.
11350 * python/py-symbol.c: Ditto.
11351 * python/py-value.c: Ditto.
11352 * python/python-internal.h: Ditto.
11353 * python/python.c: Ditto.
11354 * tui/tui-data.c: Ditto.
11355 * tui/tui-disasm.c: Ditto.
11356 * tui/tui-hooks.c: Ditto.
11357 * tui/tui-io.c: Ditto.
11358 * tui/tui-layout.c: Ditto.
11359 * tui/tui-regs.c: Ditto.
11360 * tui/tui-source.c: Ditto.
11361 * tui/tui-stack.c: Ditto.
11362 * tui/tui-win.c: Ditto.
11363 * tui/tui-windata.c: Ditto.
11364 * tui/tui-winsource.c: Ditto.
11365
11366 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11367
11368 * configure.ac, gdb.1: Copyright year update.
11369
11370 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11371
11372 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11373 this_pc_in_block, morestack_msym and morestack_name. Check for
11374 "__morestack" minimal symbol there.
11375
11376 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11377
11378 * symfile.c (find_sym_fns): Add call to dont_repeat.
11379
11380 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11381
11382 Copyright year update in most files (performed by copyright.sh).
11383
11384 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11385
11386 * top.c (print_gdb_version): Update copyright year in version output.
11387
11388 For older changes see ChangeLog-2010.
11389 \f
11390 Local Variables:
11391 mode: change-log
11392 left-margin: 8
11393 fill-column: 74
11394 version-control: never
11395 coding: utf-8
11396 End:
This page took 0.276707 seconds and 4 git commands to generate.